shalu-dashboard-ui.cjs 2.6 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509
  1. "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const h=require("vue");var er=(t=>(t[t.STATIC=0]="STATIC",t[t.API=1]="API",t[t.BASIC_PATH=2]="BASIC_PATH",t[t.VIEW_CODE=3]="VIEW_CODE",t))(er||{});const kl=(t,e,{checkForDefaultPrevented:n=!0}={})=>i=>{const o=t==null?void 0:t(i);if(n===!1||!o)return e==null?void 0:e(i)};var wz;const dr=typeof window<"u",owe=t=>typeof t=="string",EJ=()=>{},awe=dr&&((wz=window==null?void 0:window.navigator)==null?void 0:wz.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function nL(t){return typeof t=="function"?t():h.unref(t)}function swe(t){return t}function iT(t){return h.getCurrentScope()?(h.onScopeDispose(t),!0):!1}function lwe(t,e=!0){h.getCurrentInstance()?h.onMounted(t):e?t():h.nextTick(t)}function xz(t,e,n={}){const{immediate:r=!0}=n,i=h.ref(!1);let o=null;function a(){o&&(clearTimeout(o),o=null)}function s(){i.value=!1,a()}function l(...u){a(),i.value=!0,o=setTimeout(()=>{i.value=!1,o=null,t(...u)},nL(e))}return r&&(i.value=!0,dr&&l()),iT(s),{isPending:h.readonly(i),start:l,stop:s}}function tc(t){var e;const n=nL(t);return(e=n==null?void 0:n.$el)!=null?e:n}const rL=dr?window:void 0;function W0(...t){let e,n,r,i;if(owe(t[0])||Array.isArray(t[0])?([n,r,i]=t,e=rL):[e,n,r,i]=t,!e)return EJ;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],a=()=>{o.forEach(c=>c()),o.length=0},s=(c,f,d,p)=>(c.addEventListener(f,d,p),()=>c.removeEventListener(f,d,p)),l=h.watch(()=>[tc(e),nL(i)],([c,f])=>{a(),c&&o.push(...n.flatMap(d=>r.map(p=>s(c,d,p,f))))},{immediate:!0,flush:"post"}),u=()=>{l(),a()};return iT(u),u}let Sz=!1;function uwe(t,e,n={}){const{window:r=rL,ignore:i=[],capture:o=!0,detectIframe:a=!1}=n;if(!r)return;awe&&!Sz&&(Sz=!0,Array.from(r.document.body.children).forEach(d=>d.addEventListener("click",EJ)));let s=!0;const l=d=>i.some(p=>{if(typeof p=="string")return Array.from(r.document.querySelectorAll(p)).some(v=>v===d.target||d.composedPath().includes(v));{const v=tc(p);return v&&(d.target===v||d.composedPath().includes(v))}}),c=[W0(r,"click",d=>{const p=tc(t);if(!(!p||p===d.target||d.composedPath().includes(p))){if(d.detail===0&&(s=!l(d)),!s){s=!0;return}e(d)}},{passive:!0,capture:o}),W0(r,"pointerdown",d=>{const p=tc(t);p&&(s=!d.composedPath().includes(p)&&!l(d))},{passive:!0}),a&&W0(r,"blur",d=>{var p;const v=tc(t);((p=r.document.activeElement)==null?void 0:p.tagName)==="IFRAME"&&!(v!=null&&v.contains(r.document.activeElement))&&e(d)})].filter(Boolean);return()=>c.forEach(d=>d())}function cwe(t,e=!1){const n=h.ref(),r=()=>n.value=!!t();return r(),lwe(r,e),n}const Cz=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Tz="__vueuse_ssr_handlers__";Cz[Tz]=Cz[Tz]||{};var Pz=Object.getOwnPropertySymbols,fwe=Object.prototype.hasOwnProperty,dwe=Object.prototype.propertyIsEnumerable,hwe=(t,e)=>{var n={};for(var r in t)fwe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Pz)for(var r of Pz(t))e.indexOf(r)<0&&dwe.call(t,r)&&(n[r]=t[r]);return n};function pwe(t,e,n={}){const r=n,{window:i=rL}=r,o=hwe(r,["window"]);let a;const s=cwe(()=>i&&"ResizeObserver"in i),l=()=>{a&&(a.disconnect(),a=void 0)},u=h.watch(()=>tc(t),f=>{l(),s.value&&i&&f&&(a=new ResizeObserver(e),a.observe(f,o))},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return iT(c),{isSupported:s,stop:c}}var $z;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})($z||($z={}));var vwe=Object.defineProperty,Az=Object.getOwnPropertySymbols,gwe=Object.prototype.hasOwnProperty,mwe=Object.prototype.propertyIsEnumerable,Ez=(t,e,n)=>e in t?vwe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ywe=(t,e)=>{for(var n in e||(e={}))gwe.call(e,n)&&Ez(t,n,e[n]);if(Az)for(var n of Az(e))mwe.call(e,n)&&Ez(t,n,e[n]);return t};const bwe={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};ywe({linear:swe},bwe);const _we=()=>dr&&/firefox/i.test(window.navigator.userAgent),iL=t=>{let e,n;return t.type==="touchend"?(n=t.changedTouches[0].clientY,e=t.changedTouches[0].clientX):t.type.startsWith("touch")?(n=t.touches[0].clientY,e=t.touches[0].clientX):(n=t.clientY,e=t.clientX),{clientX:e,clientY:n}};/**
  2. * @vue/shared v3.4.31
  3. * (c) 2018-present Yuxi (Evan) You and Vue contributors
  4. * @license MIT
  5. **/process.env.NODE_ENV!=="production"&&Object.freeze({});process.env.NODE_ENV!=="production"&&Object.freeze([]);const pc=()=>{},Owe=Object.prototype.hasOwnProperty,Yd=(t,e)=>Owe.call(t,e),xv=Array.isArray,pd=t=>typeof t=="function",Pi=t=>typeof t=="string",qd=t=>t!==null&&typeof t=="object",wwe=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},xwe=/-(\w)/g,Swe=wwe(t=>t.replace(xwe,(e,n)=>n?n.toUpperCase():""));var MJ=typeof global=="object"&&global&&global.Object===Object&&global,Cwe=typeof self=="object"&&self&&self.Object===Object&&self,ps=MJ||Cwe||Function("return this")(),Oa=ps.Symbol,IJ=Object.prototype,Twe=IJ.hasOwnProperty,Pwe=IJ.toString,Sm=Oa?Oa.toStringTag:void 0;function $we(t){var e=Twe.call(t,Sm),n=t[Sm];try{t[Sm]=void 0;var r=!0}catch{}var i=Pwe.call(t);return r&&(e?t[Sm]=n:delete t[Sm]),i}var Awe=Object.prototype,Ewe=Awe.toString;function Mwe(t){return Ewe.call(t)}var Iwe="[object Null]",Dwe="[object Undefined]",Mz=Oa?Oa.toStringTag:void 0;function Hc(t){return t==null?t===void 0?Dwe:Iwe:Mz&&Mz in Object(t)?$we(t):Mwe(t)}function os(t){return t!=null&&typeof t=="object"}var Rwe="[object Symbol]";function oT(t){return typeof t=="symbol"||os(t)&&Hc(t)==Rwe}function aT(t,e){for(var n=-1,r=t==null?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}var lo=Array.isArray,kwe=1/0,Iz=Oa?Oa.prototype:void 0,Dz=Iz?Iz.toString:void 0;function DJ(t){if(typeof t=="string")return t;if(lo(t))return aT(t,DJ)+"";if(oT(t))return Dz?Dz.call(t):"";var e=t+"";return e=="0"&&1/t==-kwe?"-0":e}var Nwe=/\s/;function Lwe(t){for(var e=t.length;e--&&Nwe.test(t.charAt(e)););return e}var Bwe=/^\s+/;function Vwe(t){return t&&t.slice(0,Lwe(t)+1).replace(Bwe,"")}function Xr(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Rz=NaN,zwe=/^[-+]0x[0-9a-f]+$/i,Fwe=/^0b[01]+$/i,Wwe=/^0o[0-7]+$/i,Qwe=parseInt;function ZI(t){if(typeof t=="number")return t;if(oT(t))return Rz;if(Xr(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Xr(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=Vwe(t);var n=Fwe.test(t);return n||Wwe.test(t)?Qwe(t.slice(2),n?2:8):zwe.test(t)?Rz:+t}var kz=1/0,Hwe=17976931348623157e292;function Gwe(t){if(!t)return t===0?t:0;if(t=ZI(t),t===kz||t===-kz){var e=t<0?-1:1;return e*Hwe}return t===t?t:0}function jwe(t){var e=Gwe(t),n=e%1;return e===e?n?e-n:e:0}function oL(t){return t}var Uwe="[object AsyncFunction]",Zwe="[object Function]",Xwe="[object GeneratorFunction]",Ywe="[object Proxy]";function aL(t){if(!Xr(t))return!1;var e=Hc(t);return e==Zwe||e==Xwe||e==Uwe||e==Ywe}var z$=ps["__core-js_shared__"],Nz=function(){var t=/[^.]+$/.exec(z$&&z$.keys&&z$.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function qwe(t){return!!Nz&&Nz in t}var Kwe=Function.prototype,Jwe=Kwe.toString;function _h(t){if(t!=null){try{return Jwe.call(t)}catch{}try{return t+""}catch{}}return""}var exe=/[\\^$.*+?()[\]{}|]/g,txe=/^\[object .+?Constructor\]$/,nxe=Function.prototype,rxe=Object.prototype,ixe=nxe.toString,oxe=rxe.hasOwnProperty,axe=RegExp("^"+ixe.call(oxe).replace(exe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function sxe(t){if(!Xr(t)||qwe(t))return!1;var e=aL(t)?axe:txe;return e.test(_h(t))}function lxe(t,e){return t==null?void 0:t[e]}function Oh(t,e){var n=lxe(t,e);return sxe(n)?n:void 0}var XI=Oh(ps,"WeakMap"),Lz=Object.create,uxe=function(){function t(){}return function(e){if(!Xr(e))return{};if(Lz)return Lz(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function RJ(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function cxe(){}function kJ(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var fxe=800,dxe=16,hxe=Date.now;function pxe(t){var e=0,n=0;return function(){var r=hxe(),i=dxe-(r-n);if(n=r,i>0){if(++e>=fxe)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function vxe(t){return function(){return t}}var Gx=function(){try{var t=Oh(Object,"defineProperty");return t({},"",{}),t}catch{}}(),gxe=Gx?function(t,e){return Gx(t,"toString",{configurable:!0,enumerable:!1,value:vxe(e),writable:!0})}:oL,NJ=pxe(gxe);function mxe(t,e){for(var n=-1,r=t==null?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}function LJ(t,e,n,r){for(var i=t.length,o=n+-1;++o<i;)if(e(t[o],o,t))return o;return-1}function yxe(t){return t!==t}function bxe(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function _xe(t,e,n){return e===e?bxe(t,e,n):LJ(t,yxe,n)}function BJ(t,e){var n=t==null?0:t.length;return!!n&&_xe(t,e,0)>-1}var Oxe=9007199254740991,wxe=/^(?:0|[1-9]\d*)$/;function sT(t,e){var n=typeof t;return e=e??Oxe,!!e&&(n=="number"||n!="symbol"&&wxe.test(t))&&t>-1&&t%1==0&&t<e}function sL(t,e,n){e=="__proto__"&&Gx?Gx(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Qb(t,e){return t===e||t!==t&&e!==e}var xxe=Object.prototype,Sxe=xxe.hasOwnProperty;function lL(t,e,n){var r=t[e];(!(Sxe.call(t,e)&&Qb(r,n))||n===void 0&&!(e in t))&&sL(t,e,n)}function vg(t,e,n,r){var i=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var s=e[o],l=void 0;l===void 0&&(l=t[s]),i?sL(n,s,l):lL(n,s,l)}return n}var Bz=Math.max;function VJ(t,e,n){return e=Bz(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=Bz(r.length-e,0),a=Array(o);++i<o;)a[i]=r[e+i];i=-1;for(var s=Array(e+1);++i<e;)s[i]=r[i];return s[e]=n(a),RJ(t,this,s)}}function uL(t,e){return NJ(VJ(t,e,oL),t+"")}var Cxe=9007199254740991;function cL(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Cxe}function gg(t){return t!=null&&cL(t.length)&&!aL(t)}function Txe(t,e,n){if(!Xr(n))return!1;var r=typeof e;return(r=="number"?gg(n)&&sT(e,n.length):r=="string"&&e in n)?Qb(n[e],t):!1}function Pxe(t){return uL(function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=t.length>3&&typeof o=="function"?(i--,o):void 0,a&&Txe(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),e=Object(e);++r<i;){var s=n[r];s&&t(e,s,r,o)}return e})}var $xe=Object.prototype;function lT(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||$xe;return t===n}function Axe(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var Exe="[object Arguments]";function Vz(t){return os(t)&&Hc(t)==Exe}var zJ=Object.prototype,Mxe=zJ.hasOwnProperty,Ixe=zJ.propertyIsEnumerable,Sv=Vz(function(){return arguments}())?Vz:function(t){return os(t)&&Mxe.call(t,"callee")&&!Ixe.call(t,"callee")};function Dxe(){return!1}var FJ=typeof exports=="object"&&exports&&!exports.nodeType&&exports,zz=FJ&&typeof module=="object"&&module&&!module.nodeType&&module,Rxe=zz&&zz.exports===FJ,Fz=Rxe?ps.Buffer:void 0,kxe=Fz?Fz.isBuffer:void 0,Cv=kxe||Dxe,Nxe="[object Arguments]",Lxe="[object Array]",Bxe="[object Boolean]",Vxe="[object Date]",zxe="[object Error]",Fxe="[object Function]",Wxe="[object Map]",Qxe="[object Number]",Hxe="[object Object]",Gxe="[object RegExp]",jxe="[object Set]",Uxe="[object String]",Zxe="[object WeakMap]",Xxe="[object ArrayBuffer]",Yxe="[object DataView]",qxe="[object Float32Array]",Kxe="[object Float64Array]",Jxe="[object Int8Array]",eSe="[object Int16Array]",tSe="[object Int32Array]",nSe="[object Uint8Array]",rSe="[object Uint8ClampedArray]",iSe="[object Uint16Array]",oSe="[object Uint32Array]",Pn={};Pn[qxe]=Pn[Kxe]=Pn[Jxe]=Pn[eSe]=Pn[tSe]=Pn[nSe]=Pn[rSe]=Pn[iSe]=Pn[oSe]=!0;Pn[Nxe]=Pn[Lxe]=Pn[Xxe]=Pn[Bxe]=Pn[Yxe]=Pn[Vxe]=Pn[zxe]=Pn[Fxe]=Pn[Wxe]=Pn[Qxe]=Pn[Hxe]=Pn[Gxe]=Pn[jxe]=Pn[Uxe]=Pn[Zxe]=!1;function aSe(t){return os(t)&&cL(t.length)&&!!Pn[Hc(t)]}function uT(t){return function(e){return t(e)}}var WJ=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Q0=WJ&&typeof module=="object"&&module&&!module.nodeType&&module,sSe=Q0&&Q0.exports===WJ,F$=sSe&&MJ.process,Tv=function(){try{var t=Q0&&Q0.require&&Q0.require("util").types;return t||F$&&F$.binding&&F$.binding("util")}catch{}}(),Wz=Tv&&Tv.isTypedArray,cT=Wz?uT(Wz):aSe,lSe=Object.prototype,uSe=lSe.hasOwnProperty;function QJ(t,e){var n=lo(t),r=!n&&Sv(t),i=!n&&!r&&Cv(t),o=!n&&!r&&!i&&cT(t),a=n||r||i||o,s=a?Axe(t.length,String):[],l=s.length;for(var u in t)(e||uSe.call(t,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||sT(u,l)))&&s.push(u);return s}function HJ(t,e){return function(n){return t(e(n))}}var cSe=HJ(Object.keys,Object),fSe=Object.prototype,dSe=fSe.hasOwnProperty;function GJ(t){if(!lT(t))return cSe(t);var e=[];for(var n in Object(t))dSe.call(t,n)&&n!="constructor"&&e.push(n);return e}function Hb(t){return gg(t)?QJ(t):GJ(t)}function hSe(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var pSe=Object.prototype,vSe=pSe.hasOwnProperty;function gSe(t){if(!Xr(t))return hSe(t);var e=lT(t),n=[];for(var r in t)r=="constructor"&&(e||!vSe.call(t,r))||n.push(r);return n}function Gb(t){return gg(t)?QJ(t,!0):gSe(t)}var mSe=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ySe=/^\w*$/;function fL(t,e){if(lo(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||oT(t)?!0:ySe.test(t)||!mSe.test(t)||e!=null&&t in Object(e)}var Ay=Oh(Object,"create");function bSe(){this.__data__=Ay?Ay(null):{},this.size=0}function _Se(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var OSe="__lodash_hash_undefined__",wSe=Object.prototype,xSe=wSe.hasOwnProperty;function SSe(t){var e=this.__data__;if(Ay){var n=e[t];return n===OSe?void 0:n}return xSe.call(e,t)?e[t]:void 0}var CSe=Object.prototype,TSe=CSe.hasOwnProperty;function PSe(t){var e=this.__data__;return Ay?e[t]!==void 0:TSe.call(e,t)}var $Se="__lodash_hash_undefined__";function ASe(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Ay&&e===void 0?$Se:e,this}function Kd(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Kd.prototype.clear=bSe;Kd.prototype.delete=_Se;Kd.prototype.get=SSe;Kd.prototype.has=PSe;Kd.prototype.set=ASe;function ESe(){this.__data__=[],this.size=0}function fT(t,e){for(var n=t.length;n--;)if(Qb(t[n][0],e))return n;return-1}var MSe=Array.prototype,ISe=MSe.splice;function DSe(t){var e=this.__data__,n=fT(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():ISe.call(e,n,1),--this.size,!0}function RSe(t){var e=this.__data__,n=fT(e,t);return n<0?void 0:e[n][1]}function kSe(t){return fT(this.__data__,t)>-1}function NSe(t,e){var n=this.__data__,r=fT(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function pu(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}pu.prototype.clear=ESe;pu.prototype.delete=DSe;pu.prototype.get=RSe;pu.prototype.has=kSe;pu.prototype.set=NSe;var Ey=Oh(ps,"Map");function LSe(){this.size=0,this.__data__={hash:new Kd,map:new(Ey||pu),string:new Kd}}function BSe(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function dT(t,e){var n=t.__data__;return BSe(e)?n[typeof e=="string"?"string":"hash"]:n.map}function VSe(t){var e=dT(this,t).delete(t);return this.size-=e?1:0,e}function zSe(t){return dT(this,t).get(t)}function FSe(t){return dT(this,t).has(t)}function WSe(t,e){var n=dT(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function vu(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}vu.prototype.clear=LSe;vu.prototype.delete=VSe;vu.prototype.get=zSe;vu.prototype.has=FSe;vu.prototype.set=WSe;var QSe="Expected a function";function dL(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(QSe);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(dL.Cache||vu),n}dL.Cache=vu;var HSe=500;function GSe(t){var e=dL(t,function(r){return n.size===HSe&&n.clear(),r}),n=e.cache;return e}var jSe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,USe=/\\(\\)?/g,ZSe=GSe(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(jSe,function(n,r,i,o){e.push(i?o.replace(USe,"$1"):r||n)}),e});function XSe(t){return t==null?"":DJ(t)}function mg(t,e){return lo(t)?t:fL(t,e)?[t]:ZSe(XSe(t))}var YSe=1/0;function yg(t){if(typeof t=="string"||oT(t))return t;var e=t+"";return e=="0"&&1/t==-YSe?"-0":e}function hT(t,e){e=mg(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[yg(e[n++])];return n&&n==r?t:void 0}function Ut(t,e,n){var r=t==null?void 0:hT(t,e);return r===void 0?n:r}function hL(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var Qz=Oa?Oa.isConcatSpreadable:void 0;function qSe(t){return lo(t)||Sv(t)||!!(Qz&&t&&t[Qz])}function KSe(t,e,n,r,i){var o=-1,a=t.length;for(n||(n=qSe),i||(i=[]);++o<a;){var s=t[o];n(s)?hL(i,s):i[i.length]=s}return i}function JSe(t){var e=t==null?0:t.length;return e?KSe(t):[]}function jJ(t){return NJ(VJ(t,void 0,JSe),t+"")}var pL=HJ(Object.getPrototypeOf,Object),eCe="[object Object]",tCe=Function.prototype,nCe=Object.prototype,UJ=tCe.toString,rCe=nCe.hasOwnProperty,iCe=UJ.call(Object);function vL(t){if(!os(t)||Hc(t)!=eCe)return!1;var e=pL(t);if(e===null)return!0;var n=rCe.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&UJ.call(n)==iCe}function oCe(t,e,n){var r=-1,i=t.length;e<0&&(e=-e>i?0:i+e),n=n>i?i:n,n<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r<i;)o[r]=t[r+e];return o}function aCe(){this.__data__=new pu,this.size=0}function sCe(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function lCe(t){return this.__data__.get(t)}function uCe(t){return this.__data__.has(t)}var cCe=200;function fCe(t,e){var n=this.__data__;if(n instanceof pu){var r=n.__data__;if(!Ey||r.length<cCe-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new vu(r)}return n.set(t,e),this.size=n.size,this}function Ja(t){var e=this.__data__=new pu(t);this.size=e.size}Ja.prototype.clear=aCe;Ja.prototype.delete=sCe;Ja.prototype.get=lCe;Ja.prototype.has=uCe;Ja.prototype.set=fCe;function dCe(t,e){return t&&vg(e,Hb(e),t)}function hCe(t,e){return t&&vg(e,Gb(e),t)}var ZJ=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Hz=ZJ&&typeof module=="object"&&module&&!module.nodeType&&module,pCe=Hz&&Hz.exports===ZJ,Gz=pCe?ps.Buffer:void 0,jz=Gz?Gz.allocUnsafe:void 0;function XJ(t,e){if(e)return t.slice();var n=t.length,r=jz?jz(n):new t.constructor(n);return t.copy(r),r}function vCe(t,e){for(var n=-1,r=t==null?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}function YJ(){return[]}var gCe=Object.prototype,mCe=gCe.propertyIsEnumerable,Uz=Object.getOwnPropertySymbols,gL=Uz?function(t){return t==null?[]:(t=Object(t),vCe(Uz(t),function(e){return mCe.call(t,e)}))}:YJ;function yCe(t,e){return vg(t,gL(t),e)}var bCe=Object.getOwnPropertySymbols,qJ=bCe?function(t){for(var e=[];t;)hL(e,gL(t)),t=pL(t);return e}:YJ;function _Ce(t,e){return vg(t,qJ(t),e)}function KJ(t,e,n){var r=e(t);return lo(t)?r:hL(r,n(t))}function YI(t){return KJ(t,Hb,gL)}function JJ(t){return KJ(t,Gb,qJ)}var qI=Oh(ps,"DataView"),KI=Oh(ps,"Promise"),tv=Oh(ps,"Set"),Zz="[object Map]",OCe="[object Object]",Xz="[object Promise]",Yz="[object Set]",qz="[object WeakMap]",Kz="[object DataView]",wCe=_h(qI),xCe=_h(Ey),SCe=_h(KI),CCe=_h(tv),TCe=_h(XI),ua=Hc;(qI&&ua(new qI(new ArrayBuffer(1)))!=Kz||Ey&&ua(new Ey)!=Zz||KI&&ua(KI.resolve())!=Xz||tv&&ua(new tv)!=Yz||XI&&ua(new XI)!=qz)&&(ua=function(t){var e=Hc(t),n=e==OCe?t.constructor:void 0,r=n?_h(n):"";if(r)switch(r){case wCe:return Kz;case xCe:return Zz;case SCe:return Xz;case CCe:return Yz;case TCe:return qz}return e});var PCe=Object.prototype,$Ce=PCe.hasOwnProperty;function ACe(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&$Ce.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var jx=ps.Uint8Array;function mL(t){var e=new t.constructor(t.byteLength);return new jx(e).set(new jx(t)),e}function ECe(t,e){var n=e?mL(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var MCe=/\w*$/;function ICe(t){var e=new t.constructor(t.source,MCe.exec(t));return e.lastIndex=t.lastIndex,e}var Jz=Oa?Oa.prototype:void 0,eF=Jz?Jz.valueOf:void 0;function DCe(t){return eF?Object(eF.call(t)):{}}function eee(t,e){var n=e?mL(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var RCe="[object Boolean]",kCe="[object Date]",NCe="[object Map]",LCe="[object Number]",BCe="[object RegExp]",VCe="[object Set]",zCe="[object String]",FCe="[object Symbol]",WCe="[object ArrayBuffer]",QCe="[object DataView]",HCe="[object Float32Array]",GCe="[object Float64Array]",jCe="[object Int8Array]",UCe="[object Int16Array]",ZCe="[object Int32Array]",XCe="[object Uint8Array]",YCe="[object Uint8ClampedArray]",qCe="[object Uint16Array]",KCe="[object Uint32Array]";function JCe(t,e,n){var r=t.constructor;switch(e){case WCe:return mL(t);case RCe:case kCe:return new r(+t);case QCe:return ECe(t,n);case HCe:case GCe:case jCe:case UCe:case ZCe:case XCe:case YCe:case qCe:case KCe:return eee(t,n);case NCe:return new r;case LCe:case zCe:return new r(t);case BCe:return ICe(t);case VCe:return new r;case FCe:return DCe(t)}}function tee(t){return typeof t.constructor=="function"&&!lT(t)?uxe(pL(t)):{}}var eTe="[object Map]";function tTe(t){return os(t)&&ua(t)==eTe}var tF=Tv&&Tv.isMap,nTe=tF?uT(tF):tTe,rTe="[object Set]";function iTe(t){return os(t)&&ua(t)==rTe}var nF=Tv&&Tv.isSet,oTe=nF?uT(nF):iTe,aTe=1,sTe=2,lTe=4,nee="[object Arguments]",uTe="[object Array]",cTe="[object Boolean]",fTe="[object Date]",dTe="[object Error]",ree="[object Function]",hTe="[object GeneratorFunction]",pTe="[object Map]",vTe="[object Number]",iee="[object Object]",gTe="[object RegExp]",mTe="[object Set]",yTe="[object String]",bTe="[object Symbol]",_Te="[object WeakMap]",OTe="[object ArrayBuffer]",wTe="[object DataView]",xTe="[object Float32Array]",STe="[object Float64Array]",CTe="[object Int8Array]",TTe="[object Int16Array]",PTe="[object Int32Array]",$Te="[object Uint8Array]",ATe="[object Uint8ClampedArray]",ETe="[object Uint16Array]",MTe="[object Uint32Array]",xn={};xn[nee]=xn[uTe]=xn[OTe]=xn[wTe]=xn[cTe]=xn[fTe]=xn[xTe]=xn[STe]=xn[CTe]=xn[TTe]=xn[PTe]=xn[pTe]=xn[vTe]=xn[iee]=xn[gTe]=xn[mTe]=xn[yTe]=xn[bTe]=xn[$Te]=xn[ATe]=xn[ETe]=xn[MTe]=!0;xn[dTe]=xn[ree]=xn[_Te]=!1;function H0(t,e,n,r,i,o){var a,s=e&aTe,l=e&sTe,u=e&lTe;if(n&&(a=i?n(t,r,i,o):n(t)),a!==void 0)return a;if(!Xr(t))return t;var c=lo(t);if(c){if(a=ACe(t),!s)return kJ(t,a)}else{var f=ua(t),d=f==ree||f==hTe;if(Cv(t))return XJ(t,s);if(f==iee||f==nee||d&&!i){if(a=l||d?{}:tee(t),!s)return l?_Ce(t,hCe(a,t)):yCe(t,dCe(a,t))}else{if(!xn[f])return i?t:{};a=JCe(t,f,s)}}o||(o=new Ja);var p=o.get(t);if(p)return p;o.set(t,a),oTe(t)?t.forEach(function(m){a.add(H0(m,e,n,m,t,o))}):nTe(t)&&t.forEach(function(m,y){a.set(y,H0(m,e,n,y,t,o))});var v=u?l?JJ:YI:l?Gb:Hb,g=c?void 0:v(t);return mxe(g||t,function(m,y){g&&(y=m,m=t[y]),lL(a,y,H0(m,e,n,y,t,o))}),a}var ITe=1,DTe=4;function $d(t){return H0(t,ITe|DTe)}var RTe="__lodash_hash_undefined__";function kTe(t){return this.__data__.set(t,RTe),this}function NTe(t){return this.__data__.has(t)}function Pv(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new vu;++e<n;)this.add(t[e])}Pv.prototype.add=Pv.prototype.push=kTe;Pv.prototype.has=NTe;function LTe(t,e){for(var n=-1,r=t==null?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}function Ux(t,e){return t.has(e)}var BTe=1,VTe=2;function oee(t,e,n,r,i,o){var a=n&BTe,s=t.length,l=e.length;if(s!=l&&!(a&&l>s))return!1;var u=o.get(t),c=o.get(e);if(u&&c)return u==e&&c==t;var f=-1,d=!0,p=n&VTe?new Pv:void 0;for(o.set(t,e),o.set(e,t);++f<s;){var v=t[f],g=e[f];if(r)var m=a?r(g,v,f,e,t,o):r(v,g,f,t,e,o);if(m!==void 0){if(m)continue;d=!1;break}if(p){if(!LTe(e,function(y,b){if(!Ux(p,b)&&(v===y||i(v,y,n,r,o)))return p.push(b)})){d=!1;break}}else if(!(v===g||i(v,g,n,r,o))){d=!1;break}}return o.delete(t),o.delete(e),d}function zTe(t){var e=-1,n=Array(t.size);return t.forEach(function(r,i){n[++e]=[i,r]}),n}function yL(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var FTe=1,WTe=2,QTe="[object Boolean]",HTe="[object Date]",GTe="[object Error]",jTe="[object Map]",UTe="[object Number]",ZTe="[object RegExp]",XTe="[object Set]",YTe="[object String]",qTe="[object Symbol]",KTe="[object ArrayBuffer]",JTe="[object DataView]",rF=Oa?Oa.prototype:void 0,W$=rF?rF.valueOf:void 0;function ePe(t,e,n,r,i,o,a){switch(n){case JTe:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case KTe:return!(t.byteLength!=e.byteLength||!o(new jx(t),new jx(e)));case QTe:case HTe:case UTe:return Qb(+t,+e);case GTe:return t.name==e.name&&t.message==e.message;case ZTe:case YTe:return t==e+"";case jTe:var s=zTe;case XTe:var l=r&FTe;if(s||(s=yL),t.size!=e.size&&!l)return!1;var u=a.get(t);if(u)return u==e;r|=WTe,a.set(t,e);var c=oee(s(t),s(e),r,i,o,a);return a.delete(t),c;case qTe:if(W$)return W$.call(t)==W$.call(e)}return!1}var tPe=1,nPe=Object.prototype,rPe=nPe.hasOwnProperty;function iPe(t,e,n,r,i,o){var a=n&tPe,s=YI(t),l=s.length,u=YI(e),c=u.length;if(l!=c&&!a)return!1;for(var f=l;f--;){var d=s[f];if(!(a?d in e:rPe.call(e,d)))return!1}var p=o.get(t),v=o.get(e);if(p&&v)return p==e&&v==t;var g=!0;o.set(t,e),o.set(e,t);for(var m=a;++f<l;){d=s[f];var y=t[d],b=e[d];if(r)var O=a?r(b,y,d,e,t,o):r(y,b,d,t,e,o);if(!(O===void 0?y===b||i(y,b,n,r,o):O)){g=!1;break}m||(m=d=="constructor")}if(g&&!m){var w=t.constructor,x=e.constructor;w!=x&&"constructor"in t&&"constructor"in e&&!(typeof w=="function"&&w instanceof w&&typeof x=="function"&&x instanceof x)&&(g=!1)}return o.delete(t),o.delete(e),g}var oPe=1,iF="[object Arguments]",oF="[object Array]",V1="[object Object]",aPe=Object.prototype,aF=aPe.hasOwnProperty;function sPe(t,e,n,r,i,o){var a=lo(t),s=lo(e),l=a?oF:ua(t),u=s?oF:ua(e);l=l==iF?V1:l,u=u==iF?V1:u;var c=l==V1,f=u==V1,d=l==u;if(d&&Cv(t)){if(!Cv(e))return!1;a=!0,c=!1}if(d&&!c)return o||(o=new Ja),a||cT(t)?oee(t,e,n,r,i,o):ePe(t,e,l,n,r,i,o);if(!(n&oPe)){var p=c&&aF.call(t,"__wrapped__"),v=f&&aF.call(e,"__wrapped__");if(p||v){var g=p?t.value():t,m=v?e.value():e;return o||(o=new Ja),i(g,m,n,r,o)}}return d?(o||(o=new Ja),iPe(t,e,n,r,i,o)):!1}function pT(t,e,n,r,i){return t===e?!0:t==null||e==null||!os(t)&&!os(e)?t!==t&&e!==e:sPe(t,e,n,r,pT,i)}var lPe=1,uPe=2;function cPe(t,e,n,r){var i=n.length,o=i;if(t==null)return!o;for(t=Object(t);i--;){var a=n[i];if(a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++i<o;){a=n[i];var s=a[0],l=t[s],u=a[1];if(a[2]){if(l===void 0&&!(s in t))return!1}else{var c=new Ja,f;if(!(f===void 0?pT(u,l,lPe|uPe,r,c):f))return!1}}return!0}function aee(t){return t===t&&!Xr(t)}function fPe(t){for(var e=Hb(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,aee(i)]}return e}function see(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}function dPe(t){var e=fPe(t);return e.length==1&&e[0][2]?see(e[0][0],e[0][1]):function(n){return n===t||cPe(n,t,e)}}function hPe(t,e){return t!=null&&e in Object(t)}function pPe(t,e,n){e=mg(e,t);for(var r=-1,i=e.length,o=!1;++r<i;){var a=yg(e[r]);if(!(o=t!=null&&n(t,a)))break;t=t[a]}return o||++r!=i?o:(i=t==null?0:t.length,!!i&&cL(i)&&sT(a,i)&&(lo(t)||Sv(t)))}function lee(t,e){return t!=null&&pPe(t,e,hPe)}var vPe=1,gPe=2;function mPe(t,e){return fL(t)&&aee(e)?see(yg(t),e):function(n){var r=Ut(n,t);return r===void 0&&r===e?lee(n,t):pT(e,r,vPe|gPe)}}function yPe(t){return function(e){return e==null?void 0:e[t]}}function bPe(t){return function(e){return hT(e,t)}}function _Pe(t){return fL(t)?yPe(yg(t)):bPe(t)}function uee(t){return typeof t=="function"?t:t==null?oL:typeof t=="object"?lo(t)?mPe(t[0],t[1]):dPe(t):_Pe(t)}function OPe(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var l=a[++i];if(n(o[l],l,o)===!1)break}return e}}var wPe=OPe(),Q$=function(){return ps.Date.now()},xPe="Expected a function",SPe=Math.max,CPe=Math.min;function bL(t,e,n){var r,i,o,a,s,l,u=0,c=!1,f=!1,d=!0;if(typeof t!="function")throw new TypeError(xPe);e=ZI(e)||0,Xr(n)&&(c=!!n.leading,f="maxWait"in n,o=f?SPe(ZI(n.maxWait)||0,e):o,d="trailing"in n?!!n.trailing:d);function p(S){var T=r,$=i;return r=i=void 0,u=S,a=t.apply($,T),a}function v(S){return u=S,s=setTimeout(y,e),c?p(S):a}function g(S){var T=S-l,$=S-u,A=e-T;return f?CPe(A,o-$):A}function m(S){var T=S-l,$=S-u;return l===void 0||T>=e||T<0||f&&$>=o}function y(){var S=Q$();if(m(S))return b(S);s=setTimeout(y,g(S))}function b(S){return s=void 0,d&&r?p(S):(r=i=void 0,a)}function O(){s!==void 0&&clearTimeout(s),u=0,r=l=i=s=void 0}function w(){return s===void 0?a:b(Q$())}function x(){var S=Q$(),T=m(S);if(r=arguments,i=this,l=S,T){if(s===void 0)return v(l);if(f)return clearTimeout(s),s=setTimeout(y,e),p(l)}return s===void 0&&(s=setTimeout(y,e)),a}return x.cancel=O,x.flush=w,x}function JI(t,e,n){(n!==void 0&&!Qb(t[e],n)||n===void 0&&!(e in t))&&sL(t,e,n)}function cee(t){return os(t)&&gg(t)}function eD(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function TPe(t){return vg(t,Gb(t))}function PPe(t,e,n,r,i,o,a){var s=eD(t,n),l=eD(e,n),u=a.get(l);if(u){JI(t,n,u);return}var c=o?o(s,l,n+"",t,e,a):void 0,f=c===void 0;if(f){var d=lo(l),p=!d&&Cv(l),v=!d&&!p&&cT(l);c=l,d||p||v?lo(s)?c=s:cee(s)?c=kJ(s):p?(f=!1,c=XJ(l,!0)):v?(f=!1,c=eee(l,!0)):c=[]:vL(l)||Sv(l)?(c=s,Sv(s)?c=TPe(s):(!Xr(s)||aL(s))&&(c=tee(l))):f=!1}f&&(a.set(l,c),i(c,l,r,o,a),a.delete(l)),JI(t,n,c)}function _L(t,e,n,r,i){t!==e&&wPe(e,function(o,a){if(i||(i=new Ja),Xr(o))PPe(t,e,a,n,_L,r,i);else{var s=r?r(eD(t,a),o,a+"",t,e,i):void 0;s===void 0&&(s=o),JI(t,a,s)}},Gb)}function fee(t,e,n,r,i,o){return Xr(t)&&Xr(e)&&(o.set(e,t),_L(t,e,void 0,fee,o),o.delete(e)),t}var $Pe=Pxe(function(t,e,n,r){_L(t,e,n,r)}),dee=uL(function(t){return t.push(void 0,fee),RJ($Pe,void 0,t)});function APe(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}function EPe(t){return function(e,n,r){var i=Object(e);if(!gg(e)){var o=uee(n);e=Hb(e),n=function(s){return o(i[s],s,i)}}var a=t(e,n,r);return a>-1?i[o?e[a]:a]:void 0}}var MPe=Math.max;function IPe(t,e,n){var r=t==null?0:t.length;if(!r)return-1;var i=n==null?0:jwe(n);return i<0&&(i=MPe(r+i,0)),LJ(t,uee(e),i)}var DPe=EPe(IPe);function Zx(t){for(var e=-1,n=t==null?0:t.length,r={};++e<n;){var i=t[e];r[i[0]]=i[1]}return r}var RPe=Math.min;function kPe(t,e,n){for(var r=BJ,i=t[0].length,o=t.length,a=o,s=Array(o),l=1/0,u=[];a--;){var c=t[a];a&&e&&(c=aT(c,uT(e))),l=RPe(c.length,l),s[a]=i>=120&&c.length>=120?new Pv(a&&c):void 0}c=t[0];var f=-1,d=s[0];e:for(;++f<i&&u.length<l;){var p=c[f],v=p;if(p=p!==0?p:0,!(d?Ux(d,v):r(u,v))){for(a=o;--a;){var g=s[a];if(!(g?Ux(g,v):r(t[a],v)))continue e}d&&d.push(v),u.push(p)}}return u}function NPe(t){return cee(t)?t:[]}var LPe=uL(function(t){var e=aT(t,NPe);return e.length&&e[0]===t[0]?kPe(e):[]});function BPe(t,e){return e.length<2?t:hT(t,oCe(e,0,-1))}var VPe="[object Map]",zPe="[object Set]",FPe=Object.prototype,WPe=FPe.hasOwnProperty;function hee(t){if(t==null)return!0;if(gg(t)&&(lo(t)||typeof t=="string"||typeof t.splice=="function"||Cv(t)||cT(t)||Sv(t)))return!t.length;var e=ua(t);if(e==VPe||e==zPe)return!t.size;if(lT(t))return!GJ(t).length;for(var n in t)if(WPe.call(t,n))return!1;return!0}function jb(t,e){return pT(t,e)}var QPe="[object Number]";function HPe(t){return typeof t=="number"||os(t)&&Hc(t)==QPe}function vc(t){return t==null}function pee(t){return t===void 0}function GPe(t,e){return e=mg(e,t),t=BPe(t,e),t==null||delete t[yg(APe(e))]}function jPe(t){return vL(t)?void 0:t}var UPe=1,ZPe=2,XPe=4,vee=jJ(function(t,e){var n={};if(t==null)return n;var r=!1;e=aT(e,function(o){return o=mg(o,t),r||(r=o.length>1),o}),vg(t,JJ(t),n),r&&(n=H0(n,UPe|ZPe|XPe,jPe));for(var i=e.length;i--;)GPe(n,e[i]);return n});function gee(t,e,n,r){if(!Xr(t))return t;e=mg(e,t);for(var i=-1,o=e.length,a=o-1,s=t;s!=null&&++i<o;){var l=yg(e[i]),u=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return t;if(i!=a){var c=s[l];u=void 0,u===void 0&&(u=Xr(c)?c:sT(e[i+1])?[]:{})}lL(s,l,u),s=s[l]}return t}function YPe(t,e,n){for(var r=-1,i=e.length,o={};++r<i;){var a=e[r],s=hT(t,a);n(s,a)&&gee(o,mg(a,t),s)}return o}function qPe(t,e){return YPe(t,e,function(n,r){return lee(t,r)})}var $v=jJ(function(t,e){return t==null?{}:qPe(t,e)});function OL(t,e,n){return t==null?t:gee(t,e,n)}var KPe="Expected a function";function JPe(t,e,n){var r=!0,i=!0;if(typeof t!="function")throw new TypeError(KPe);return Xr(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),bL(t,e,{leading:r,maxWait:e,trailing:i})}var e2e=1/0,t2e=tv&&1/yL(new tv([,-0]))[1]==e2e?function(t){return new tv(t)}:cxe,n2e=200;function r2e(t,e,n){var r=-1,i=BJ,o=t.length,a=!0,s=[],l=s;if(o>=n2e){var u=t2e(t);if(u)return yL(u);a=!1,i=Ux,l=new Pv}else l=s;e:for(;++r<o;){var c=t[r],f=c;if(c=c!==0?c:0,a&&f===f){for(var d=l.length;d--;)if(l[d]===f)continue e;s.push(c)}else i(l,f,n)||(l!==s&&l.push(f),s.push(c))}return s}function H$(t){return t&&t.length?r2e(t):[]}const Xx=t=>t===void 0,Pc=t=>typeof t=="boolean",as=t=>typeof t=="number",My=t=>typeof Element>"u"?!1:t instanceof Element,Av=t=>vc(t),i2e=t=>Pi(t)?!Number.isNaN(Number(t)):!1;class mee extends Error{constructor(e){super(e),this.name="ElementPlusError"}}function o2e(t,e){throw new mee(`[${t}] ${e}`)}function ci(t,e){if(process.env.NODE_ENV!=="production"){const n=Pi(t)?new mee(`[${t}] ${e}`):t;console.warn(n)}}const a2e="utils/dom/style",yee=(t="")=>t.split(" ").filter(e=>!!e.trim()),sF=(t,e)=>{if(!t||!e)return!1;if(e.includes(" "))throw new Error("className should not contain space.");return t.classList.contains(e)},bee=(t,e)=>{!t||!e.trim()||t.classList.add(...yee(e))},Ww=(t,e)=>{!t||!e.trim()||t.classList.remove(...yee(e))},s2e=(t,e)=>{var n;if(!dr||!t||!e)return"";let r=Swe(e);r==="float"&&(r="cssFloat");try{const i=t.style[r];if(i)return i;const o=(n=document.defaultView)==null?void 0:n.getComputedStyle(t,"");return o?o[r]:""}catch{return t.style[r]}};function Ev(t,e="px"){if(!t)return"";if(as(t)||i2e(t))return`${t}${e}`;if(Pi(t))return t;ci(a2e,"binding value must be a string or number")}let z1;const l2e=t=>{var e;if(!dr)return 0;if(z1!==void 0)return z1;const n=document.createElement("div");n.className=`${t}-scrollbar__wrap`,n.style.visibility="hidden",n.style.width="100px",n.style.position="absolute",n.style.top="-9999px",document.body.appendChild(n);const r=n.offsetWidth;n.style.overflow="scroll";const i=document.createElement("div");i.style.width="100%",n.appendChild(i);const o=i.offsetWidth;return(e=n.parentNode)==null||e.removeChild(n),z1=r-o,z1};/*! Element Plus Icons Vue v2.3.1 */var u2e=h.defineComponent({name:"ArrowDown",__name:"arrow-down",setup(t){return(e,n)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("path",{fill:"currentColor",d:"M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"})]))}}),c2e=u2e,f2e=h.defineComponent({name:"CaretRight",__name:"caret-right",setup(t){return(e,n)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("path",{fill:"currentColor",d:"M384 192v640l384-320.064z"})]))}}),d2e=f2e,h2e=h.defineComponent({name:"CircleCheck",__name:"circle-check",setup(t){return(e,n)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),h.createElementVNode("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"})]))}}),p2e=h2e,v2e=h.defineComponent({name:"CircleClose",__name:"circle-close",setup(t){return(e,n)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),h.createElementVNode("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),_ee=v2e,g2e=h.defineComponent({name:"Close",__name:"close",setup(t){return(e,n)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Oee=g2e,m2e=h.defineComponent({name:"Hide",__name:"hide",setup(t){return(e,n)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"}),h.createElementVNode("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"})]))}}),y2e=m2e,b2e=h.defineComponent({name:"Loading",__name:"loading",setup(t){return(e,n)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"})]))}}),wL=b2e,_2e=h.defineComponent({name:"View",__name:"view",setup(t){return(e,n)=>(h.openBlock(),h.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[h.createElementVNode("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),O2e=_2e;const wee="__epPropKey",Xt=t=>t,w2e=t=>qd(t)&&!!t[wee],vT=(t,e)=>{if(!qd(t)||w2e(t))return t;const{values:n,required:r,default:i,type:o,validator:a}=t,l={type:o,required:!!r,validator:n||a?u=>{let c=!1,f=[];if(n&&(f=Array.from(n),Yd(t,"default")&&f.push(i),c||(c=f.includes(u))),a&&(c||(c=a(u))),!c&&f.length>0){const d=[...new Set(f)].map(p=>JSON.stringify(p)).join(", ");h.warn(`Invalid prop: validation failed${e?` for prop "${e}"`:""}. Expected one of [${d}], got value ${JSON.stringify(u)}.`)}return c}:void 0,[wee]:!0};return Yd(t,"default")&&(l.default=i),l},Fn=t=>Zx(Object.entries(t).map(([e,n])=>[e,vT(n,e)])),Mv=Xt([String,Object,Function]),x2e={Close:Oee},S2e={validating:wL,success:p2e,error:_ee},gu=(t,e)=>{if(t.install=n=>{for(const r of[t,...Object.values(e??{})])n.component(r.name,r)},e)for(const[n,r]of Object.entries(e))t[n]=r;return t},Ub=t=>(t.install=pc,t),C2e=(...t)=>e=>{t.forEach(n=>{pd(n)?n(e):n.value=e})},Ui={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},Di="update:modelValue",xee="change",T2e=["","default","small","large"];var Qw=(t=>(t[t.TEXT=1]="TEXT",t[t.CLASS=2]="CLASS",t[t.STYLE=4]="STYLE",t[t.PROPS=8]="PROPS",t[t.FULL_PROPS=16]="FULL_PROPS",t[t.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",t[t.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",t[t.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",t[t.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",t[t.NEED_PATCH=512]="NEED_PATCH",t[t.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",t[t.HOISTED=-1]="HOISTED",t[t.BAIL=-2]="BAIL",t))(Qw||{});const P2e=t=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(t),$2e=t=>t,A2e=["class","style"],E2e=/^on[A-Z]/,M2e=(t={})=>{const{excludeListeners:e=!1,excludeKeys:n}=t,r=h.computed(()=>((n==null?void 0:n.value)||[]).concat(A2e)),i=h.getCurrentInstance();return i?h.computed(()=>{var o;return Zx(Object.entries((o=i.proxy)==null?void 0:o.$attrs).filter(([a])=>!r.value.includes(a)&&!(e&&E2e.test(a))))}):(ci("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),h.computed(()=>({})))},Xa=({from:t,replacement:e,scope:n,version:r,ref:i,type:o="API"},a)=>{h.watch(()=>h.unref(a),s=>{s&&ci(n,`[${o}] ${t} is about to be deprecated in version ${r}, please use ${e} instead.
  6. For more detail, please visit: ${i}
  7. `)},{immediate:!0})},I2e=(t,e,n,r)=>{let i={offsetX:0,offsetY:0};const o=l=>{const u=l.clientX,c=l.clientY,{offsetX:f,offsetY:d}=i,p=t.value.getBoundingClientRect(),v=p.left,g=p.top,m=p.width,y=p.height,b=document.documentElement.clientWidth,O=document.documentElement.clientHeight,w=-v+f,x=-g+d,S=b-v-m+f,T=O-g-y+d,$=P=>{let M=f+P.clientX-u,I=d+P.clientY-c;r!=null&&r.value||(M=Math.min(Math.max(M,w),S),I=Math.min(Math.max(I,x),T)),i={offsetX:M,offsetY:I},t.value&&(t.value.style.transform=`translate(${Ev(M)}, ${Ev(I)})`)},A=()=>{document.removeEventListener("mousemove",$),document.removeEventListener("mouseup",A)};document.addEventListener("mousemove",$),document.addEventListener("mouseup",A)},a=()=>{e.value&&t.value&&e.value.addEventListener("mousedown",o)},s=()=>{e.value&&t.value&&e.value.removeEventListener("mousedown",o)};h.onMounted(()=>{h.watchEffect(()=>{n.value?a():s()})}),h.onBeforeUnmount(()=>{s()})};var D2e={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const R2e=t=>(e,n)=>k2e(e,n,h.unref(t)),k2e=(t,e,n)=>Ut(n,t,t).replace(/\{(\w+)\}/g,(r,i)=>{var o;return`${(o=e==null?void 0:e[i])!=null?o:`{${i}}`}`}),N2e=t=>{const e=h.computed(()=>h.unref(t).name),n=h.isRef(t)?t:h.ref(t);return{lang:e,locale:n,t:R2e(t)}},L2e=Symbol("localeContextKey"),xL=t=>{const e=h.inject(L2e,h.ref());return N2e(h.computed(()=>e.value||D2e))},Hw="el",B2e="is-",mf=(t,e,n,r,i)=>{let o=`${t}-${e}`;return n&&(o+=`-${n}`),r&&(o+=`__${r}`),i&&(o+=`--${i}`),o},V2e=Symbol("namespaceContextKey"),SL=t=>{const e=h.getCurrentInstance()?h.inject(V2e,h.ref(Hw)):h.ref(Hw);return h.computed(()=>h.unref(e)||Hw)},an=(t,e)=>{const n=SL();return{namespace:n,b:(g="")=>mf(n.value,t,g,"",""),e:g=>g?mf(n.value,t,"",g,""):"",m:g=>g?mf(n.value,t,"","",g):"",be:(g,m)=>g&&m?mf(n.value,t,g,m,""):"",em:(g,m)=>g&&m?mf(n.value,t,"",g,m):"",bm:(g,m)=>g&&m?mf(n.value,t,g,"",m):"",bem:(g,m,y)=>g&&m&&y?mf(n.value,t,g,m,y):"",is:(g,...m)=>{const y=m.length>=1?m[0]:!0;return g&&y?`${B2e}${g}`:""},cssVar:g=>{const m={};for(const y in g)g[y]&&(m[`--${n.value}-${y}`]=g[y]);return m},cssVarName:g=>`--${n.value}-${g}`,cssVarBlock:g=>{const m={};for(const y in g)g[y]&&(m[`--${n.value}-${t}-${y}`]=g[y]);return m},cssVarBlockName:g=>`--${n.value}-${t}-${g}`}},z2e=(t,e={})=>{h.isRef(t)||o2e("[useLockscreen]","You need to pass a ref param to this function");const n=e.ns||an("popup"),r=h.computed(()=>n.bm("parent","hidden"));if(!dr||sF(document.body,r.value))return;let i=0,o=!1,a="0";const s=()=>{setTimeout(()=>{Ww(document==null?void 0:document.body,r.value),o&&document&&(document.body.style.width=a)},200)};h.watch(t,l=>{if(!l){s();return}o=!sF(document.body,r.value),o&&(a=document.body.style.width),i=l2e(n.namespace.value);const u=document.documentElement.clientHeight<document.body.scrollHeight,c=s2e(document.body,"overflowY");i>0&&(u||c==="scroll")&&o&&(document.body.style.width=`calc(100% - ${i}px)`),bee(document.body,r.value)}),h.onScopeDispose(()=>s())},F2e=vT({type:Xt(Boolean),default:null}),W2e=vT({type:Xt(Function)}),See=t=>{const e=`update:${t}`,n=`onUpdate:${t}`,r=[e],i={[t]:F2e,[n]:W2e};return{useModelToggle:({indicator:a,toggleReason:s,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:c,onHide:f})=>{const d=h.getCurrentInstance(),{emit:p}=d,v=d.props,g=h.computed(()=>pd(v[n])),m=h.computed(()=>v[t]===null),y=T=>{a.value!==!0&&(a.value=!0,s&&(s.value=T),pd(c)&&c(T))},b=T=>{a.value!==!1&&(a.value=!1,s&&(s.value=T),pd(f)&&f(T))},O=T=>{if(v.disabled===!0||pd(u)&&!u())return;const $=g.value&&dr;$&&p(e,!0),(m.value||!$)&&y(T)},w=T=>{if(v.disabled===!0||!dr)return;const $=g.value&&dr;$&&p(e,!1),(m.value||!$)&&b(T)},x=T=>{Pc(T)&&(v.disabled&&T?g.value&&p(e,!1):a.value!==T&&(T?y():b()))},S=()=>{a.value?w():O()};return h.watch(()=>v[t],x),l&&d.appContext.config.globalProperties.$route!==void 0&&h.watch(()=>({...d.proxy.$route}),()=>{l.value&&a.value&&w()}),h.onMounted(()=>{x(v[t])}),{hide:w,show:O,toggle:S,hasUpdateHandler:g}},useModelToggleProps:i,useModelToggleEmits:r}};See("modelValue");const Cee=t=>{const e=h.getCurrentInstance();return h.computed(()=>{var n,r;return(r=(n=e==null?void 0:e.proxy)==null?void 0:n.$props)==null?void 0:r[t]})};var ro="top",wa="bottom",xa="right",io="left",CL="auto",Zb=[ro,wa,xa,io],Iv="start",Iy="end",Q2e="clippingParents",Tee="viewport",Cm="popper",H2e="reference",lF=Zb.reduce(function(t,e){return t.concat([e+"-"+Iv,e+"-"+Iy])},[]),TL=[].concat(Zb,[CL]).reduce(function(t,e){return t.concat([e,e+"-"+Iv,e+"-"+Iy])},[]),G2e="beforeRead",j2e="read",U2e="afterRead",Z2e="beforeMain",X2e="main",Y2e="afterMain",q2e="beforeWrite",K2e="write",J2e="afterWrite",e$e=[G2e,j2e,U2e,Z2e,X2e,Y2e,q2e,K2e,J2e];function rl(t){return t?(t.nodeName||"").toLowerCase():null}function vs(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Dv(t){var e=vs(t).Element;return t instanceof e||t instanceof Element}function ga(t){var e=vs(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function PL(t){if(typeof ShadowRoot>"u")return!1;var e=vs(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function t$e(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},i=e.attributes[n]||{},o=e.elements[n];!ga(o)||!rl(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 n$e(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach(function(r){var i=e.elements[r],o=e.attributes[r]||{},a=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),s=a.reduce(function(l,u){return l[u]="",l},{});!ga(i)||!rl(i)||(Object.assign(i.style,s),Object.keys(o).forEach(function(l){i.removeAttribute(l)}))})}}var Pee={name:"applyStyles",enabled:!0,phase:"write",fn:t$e,effect:n$e,requires:["computeStyles"]};function Ks(t){return t.split("-")[0]}var Ad=Math.max,Yx=Math.min,Rv=Math.round;function kv(t,e){e===void 0&&(e=!1);var n=t.getBoundingClientRect(),r=1,i=1;if(ga(t)&&e){var o=t.offsetHeight,a=t.offsetWidth;a>0&&(r=Rv(n.width)/a||1),o>0&&(i=Rv(n.height)/o||1)}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function $L(t){var e=kv(t),n=t.offsetWidth,r=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function $ee(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&PL(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Jl(t){return vs(t).getComputedStyle(t)}function r$e(t){return["table","td","th"].indexOf(rl(t))>=0}function Gc(t){return((Dv(t)?t.ownerDocument:t.document)||window.document).documentElement}function gT(t){return rl(t)==="html"?t:t.assignedSlot||t.parentNode||(PL(t)?t.host:null)||Gc(t)}function uF(t){return!ga(t)||Jl(t).position==="fixed"?null:t.offsetParent}function i$e(t){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&ga(t)){var r=Jl(t);if(r.position==="fixed")return null}var i=gT(t);for(PL(i)&&(i=i.host);ga(i)&&["html","body"].indexOf(rl(i))<0;){var o=Jl(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||e&&o.willChange==="filter"||e&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Xb(t){for(var e=vs(t),n=uF(t);n&&r$e(n)&&Jl(n).position==="static";)n=uF(n);return n&&(rl(n)==="html"||rl(n)==="body"&&Jl(n).position==="static")?e:n||i$e(t)||e}function AL(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function G0(t,e,n){return Ad(t,Yx(e,n))}function o$e(t,e,n){var r=G0(t,e,n);return r>n?n:r}function Aee(){return{top:0,right:0,bottom:0,left:0}}function Eee(t){return Object.assign({},Aee(),t)}function Mee(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var a$e=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,Eee(typeof t!="number"?t:Mee(t,Zb))};function s$e(t){var e,n=t.state,r=t.name,i=t.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Ks(n.placement),l=AL(s),u=[io,xa].indexOf(s)>=0,c=u?"height":"width";if(!(!o||!a)){var f=a$e(i.padding,n),d=$L(o),p=l==="y"?ro:io,v=l==="y"?wa:xa,g=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],m=a[l]-n.rects.reference[l],y=Xb(o),b=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,O=g/2-m/2,w=f[p],x=b-d[c]-f[v],S=b/2-d[c]/2+O,T=G0(w,S,x),$=l;n.modifiersData[r]=(e={},e[$]=T,e.centerOffset=T-S,e)}}function l$e(t){var e=t.state,n=t.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=e.elements.popper.querySelector(i),!i)||!$ee(e.elements.popper,i)||(e.elements.arrow=i))}var u$e={name:"arrow",enabled:!0,phase:"main",fn:s$e,effect:l$e,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Nv(t){return t.split("-")[1]}var c$e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function f$e(t){var e=t.x,n=t.y,r=window,i=r.devicePixelRatio||1;return{x:Rv(e*i)/i||0,y:Rv(n*i)/i||0}}function cF(t){var e,n=t.popper,r=t.popperRect,i=t.placement,o=t.variation,a=t.offsets,s=t.position,l=t.gpuAcceleration,u=t.adaptive,c=t.roundOffsets,f=t.isFixed,d=a.x,p=d===void 0?0:d,v=a.y,g=v===void 0?0:v,m=typeof c=="function"?c({x:p,y:g}):{x:p,y:g};p=m.x,g=m.y;var y=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),O=io,w=ro,x=window;if(u){var S=Xb(n),T="clientHeight",$="clientWidth";if(S===vs(n)&&(S=Gc(n),Jl(S).position!=="static"&&s==="absolute"&&(T="scrollHeight",$="scrollWidth")),S=S,i===ro||(i===io||i===xa)&&o===Iy){w=wa;var A=f&&S===x&&x.visualViewport?x.visualViewport.height:S[T];g-=A-r.height,g*=l?1:-1}if(i===io||(i===ro||i===wa)&&o===Iy){O=xa;var P=f&&S===x&&x.visualViewport?x.visualViewport.width:S[$];p-=P-r.width,p*=l?1:-1}}var M=Object.assign({position:s},u&&c$e),I=c===!0?f$e({x:p,y:g}):{x:p,y:g};if(p=I.x,g=I.y,l){var R;return Object.assign({},M,(R={},R[w]=b?"0":"",R[O]=y?"0":"",R.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",R))}return Object.assign({},M,(e={},e[w]=b?g+"px":"",e[O]=y?p+"px":"",e.transform="",e))}function d$e(t){var e=t.state,n=t.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:Ks(e.placement),variation:Nv(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,cF(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,cF(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var Iee={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:d$e,data:{}},F1={passive:!0};function h$e(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,o=i===void 0?!0:i,a=r.resize,s=a===void 0?!0:a,l=vs(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&u.forEach(function(c){c.addEventListener("scroll",n.update,F1)}),s&&l.addEventListener("resize",n.update,F1),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",n.update,F1)}),s&&l.removeEventListener("resize",n.update,F1)}}var Dee={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:h$e,data:{}},p$e={left:"right",right:"left",bottom:"top",top:"bottom"};function Gw(t){return t.replace(/left|right|bottom|top/g,function(e){return p$e[e]})}var v$e={start:"end",end:"start"};function fF(t){return t.replace(/start|end/g,function(e){return v$e[e]})}function EL(t){var e=vs(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function ML(t){return kv(Gc(t)).left+EL(t).scrollLeft}function g$e(t){var e=vs(t),n=Gc(t),r=e.visualViewport,i=n.clientWidth,o=n.clientHeight,a=0,s=0;return r&&(i=r.width,o=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:i,height:o,x:a+ML(t),y:s}}function m$e(t){var e,n=Gc(t),r=EL(t),i=(e=t.ownerDocument)==null?void 0:e.body,o=Ad(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=Ad(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+ML(t),l=-r.scrollTop;return Jl(i||n).direction==="rtl"&&(s+=Ad(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:a,x:s,y:l}}function IL(t){var e=Jl(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Ree(t){return["html","body","#document"].indexOf(rl(t))>=0?t.ownerDocument.body:ga(t)&&IL(t)?t:Ree(gT(t))}function j0(t,e){var n;e===void 0&&(e=[]);var r=Ree(t),i=r===((n=t.ownerDocument)==null?void 0:n.body),o=vs(r),a=i?[o].concat(o.visualViewport||[],IL(r)?r:[]):r,s=e.concat(a);return i?s:s.concat(j0(gT(a)))}function tD(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function y$e(t){var e=kv(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}function dF(t,e){return e===Tee?tD(g$e(t)):Dv(e)?y$e(e):tD(m$e(Gc(t)))}function b$e(t){var e=j0(gT(t)),n=["absolute","fixed"].indexOf(Jl(t).position)>=0,r=n&&ga(t)?Xb(t):t;return Dv(r)?e.filter(function(i){return Dv(i)&&$ee(i,r)&&rl(i)!=="body"}):[]}function _$e(t,e,n){var r=e==="clippingParents"?b$e(t):[].concat(e),i=[].concat(r,[n]),o=i[0],a=i.reduce(function(s,l){var u=dF(t,l);return s.top=Ad(u.top,s.top),s.right=Yx(u.right,s.right),s.bottom=Yx(u.bottom,s.bottom),s.left=Ad(u.left,s.left),s},dF(t,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function kee(t){var e=t.reference,n=t.element,r=t.placement,i=r?Ks(r):null,o=r?Nv(r):null,a=e.x+e.width/2-n.width/2,s=e.y+e.height/2-n.height/2,l;switch(i){case ro:l={x:a,y:e.y-n.height};break;case wa:l={x:a,y:e.y+e.height};break;case xa:l={x:e.x+e.width,y:s};break;case io:l={x:e.x-n.width,y:s};break;default:l={x:e.x,y:e.y}}var u=i?AL(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case Iv:l[u]=l[u]-(e[c]/2-n[c]/2);break;case Iy:l[u]=l[u]+(e[c]/2-n[c]/2);break}}return l}function Dy(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=r===void 0?t.placement:r,o=n.boundary,a=o===void 0?Q2e:o,s=n.rootBoundary,l=s===void 0?Tee:s,u=n.elementContext,c=u===void 0?Cm:u,f=n.altBoundary,d=f===void 0?!1:f,p=n.padding,v=p===void 0?0:p,g=Eee(typeof v!="number"?v:Mee(v,Zb)),m=c===Cm?H2e:Cm,y=t.rects.popper,b=t.elements[d?m:c],O=_$e(Dv(b)?b:b.contextElement||Gc(t.elements.popper),a,l),w=kv(t.elements.reference),x=kee({reference:w,element:y,strategy:"absolute",placement:i}),S=tD(Object.assign({},y,x)),T=c===Cm?S:w,$={top:O.top-T.top+g.top,bottom:T.bottom-O.bottom+g.bottom,left:O.left-T.left+g.left,right:T.right-O.right+g.right},A=t.modifiersData.offset;if(c===Cm&&A){var P=A[i];Object.keys($).forEach(function(M){var I=[xa,wa].indexOf(M)>=0?1:-1,R=[ro,wa].indexOf(M)>=0?"y":"x";$[M]+=P[R]*I})}return $}function O$e(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=n.boundary,o=n.rootBoundary,a=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?TL:l,c=Nv(r),f=c?s?lF:lF.filter(function(v){return Nv(v)===c}):Zb,d=f.filter(function(v){return u.indexOf(v)>=0});d.length===0&&(d=f);var p=d.reduce(function(v,g){return v[g]=Dy(t,{placement:g,boundary:i,rootBoundary:o,padding:a})[Ks(g)],v},{});return Object.keys(p).sort(function(v,g){return p[v]-p[g]})}function w$e(t){if(Ks(t)===CL)return[];var e=Gw(t);return[fF(t),e,fF(e)]}function x$e(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!0:a,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,v=p===void 0?!0:p,g=n.allowedAutoPlacements,m=e.options.placement,y=Ks(m),b=y===m,O=l||(b||!v?[Gw(m)]:w$e(m)),w=[m].concat(O).reduce(function(se,oe){return se.concat(Ks(oe)===CL?O$e(e,{placement:oe,boundary:c,rootBoundary:f,padding:u,flipVariations:v,allowedAutoPlacements:g}):oe)},[]),x=e.rects.reference,S=e.rects.popper,T=new Map,$=!0,A=w[0],P=0;P<w.length;P++){var M=w[P],I=Ks(M),R=Nv(M)===Iv,L=[ro,wa].indexOf(I)>=0,D=L?"width":"height",B=Dy(e,{placement:M,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),F=L?R?xa:io:R?wa:ro;x[D]>S[D]&&(F=Gw(F));var z=Gw(F),W=[];if(o&&W.push(B[I]<=0),s&&W.push(B[F]<=0,B[z]<=0),W.every(function(se){return se})){A=M,$=!1;break}T.set(M,W)}if($)for(var j=v?3:1,H=function(se){var oe=w.find(function(de){var re=T.get(de);if(re)return re.slice(0,se).every(function(ue){return ue})});if(oe)return A=oe,"break"},Z=j;Z>0;Z--){var J=H(Z);if(J==="break")break}e.placement!==A&&(e.modifiersData[r]._skip=!0,e.placement=A,e.reset=!0)}}var S$e={name:"flip",enabled:!0,phase:"main",fn:x$e,requiresIfExists:["offset"],data:{_skip:!1}};function hF(t,e,n){return n===void 0&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function pF(t){return[ro,xa,wa,io].some(function(e){return t[e]>=0})}function C$e(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,o=e.modifiersData.preventOverflow,a=Dy(e,{elementContext:"reference"}),s=Dy(e,{altBoundary:!0}),l=hF(a,r),u=hF(s,i,o),c=pF(l),f=pF(u);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}var T$e={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:C$e};function P$e(t,e,n){var r=Ks(t),i=[io,ro].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,a=o[0],s=o[1];return a=a||0,s=(s||0)*i,[io,xa].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function $$e(t){var e=t.state,n=t.options,r=t.name,i=n.offset,o=i===void 0?[0,0]:i,a=TL.reduce(function(c,f){return c[f]=P$e(f,e.rects,o),c},{}),s=a[e.placement],l=s.x,u=s.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=a}var A$e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:$$e};function E$e(t){var e=t.state,n=t.name;e.modifiersData[n]=kee({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var Nee={name:"popperOffsets",enabled:!0,phase:"read",fn:E$e,data:{}};function M$e(t){return t==="x"?"y":"x"}function I$e(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,o=i===void 0?!0:i,a=n.altAxis,s=a===void 0?!1:a,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,d=n.tether,p=d===void 0?!0:d,v=n.tetherOffset,g=v===void 0?0:v,m=Dy(e,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),y=Ks(e.placement),b=Nv(e.placement),O=!b,w=AL(y),x=M$e(w),S=e.modifiersData.popperOffsets,T=e.rects.reference,$=e.rects.popper,A=typeof g=="function"?g(Object.assign({},e.rects,{placement:e.placement})):g,P=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),M=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,I={x:0,y:0};if(S){if(o){var R,L=w==="y"?ro:io,D=w==="y"?wa:xa,B=w==="y"?"height":"width",F=S[w],z=F+m[L],W=F-m[D],j=p?-$[B]/2:0,H=b===Iv?T[B]:$[B],Z=b===Iv?-$[B]:-T[B],J=e.elements.arrow,se=p&&J?$L(J):{width:0,height:0},oe=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Aee(),de=oe[L],re=oe[D],ue=G0(0,T[B],se[B]),ee=O?T[B]/2-j-ue-de-P.mainAxis:H-ue-de-P.mainAxis,X=O?-T[B]/2+j+ue+re+P.mainAxis:Z+ue+re+P.mainAxis,Y=e.elements.arrow&&Xb(e.elements.arrow),le=Y?w==="y"?Y.clientTop||0:Y.clientLeft||0:0,ge=(R=M==null?void 0:M[w])!=null?R:0,me=F+ee-ge-le,Ne=F+X-ge,Le=G0(p?Yx(z,me):z,F,p?Ad(W,Ne):W);S[w]=Le,I[w]=Le-F}if(s){var Ee,$e=w==="x"?ro:io,_e=w==="x"?wa:xa,De=S[x],ze=x==="y"?"height":"width",lt=De+m[$e],gt=De-m[_e],Bt=[ro,io].indexOf(y)!==-1,we=(Ee=M==null?void 0:M[x])!=null?Ee:0,rt=Bt?lt:De-T[ze]-$[ze]-we+P.altAxis,At=Bt?De+T[ze]+$[ze]-we-P.altAxis:gt,vn=p&&Bt?o$e(rt,De,At):G0(p?rt:lt,De,p?At:gt);S[x]=vn,I[x]=vn-De}e.modifiersData[r]=I}}var D$e={name:"preventOverflow",enabled:!0,phase:"main",fn:I$e,requiresIfExists:["offset"]};function R$e(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function k$e(t){return t===vs(t)||!ga(t)?EL(t):R$e(t)}function N$e(t){var e=t.getBoundingClientRect(),n=Rv(e.width)/t.offsetWidth||1,r=Rv(e.height)/t.offsetHeight||1;return n!==1||r!==1}function L$e(t,e,n){n===void 0&&(n=!1);var r=ga(e),i=ga(e)&&N$e(e),o=Gc(e),a=kv(t,i),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((rl(e)!=="body"||IL(o))&&(s=k$e(e)),ga(e)?(l=kv(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):o&&(l.x=ML(o))),{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function B$e(t){var e=new Map,n=new Set,r=[];t.forEach(function(o){e.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=e.get(s);l&&i(l)}}),r.push(o)}return t.forEach(function(o){n.has(o.name)||i(o)}),r}function V$e(t){var e=B$e(t);return e$e.reduce(function(n,r){return n.concat(e.filter(function(i){return i.phase===r}))},[])}function z$e(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function F$e(t){var e=t.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(e).map(function(n){return e[n]})}var vF={placement:"bottom",modifiers:[],strategy:"absolute"};function gF(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function DL(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,i=e.defaultOptions,o=i===void 0?vF:i;return function(a,s,l){l===void 0&&(l=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},vF,o),modifiersData:{},elements:{reference:a,popper:s},attributes:{},styles:{}},c=[],f=!1,d={state:u,setOptions:function(g){var m=typeof g=="function"?g(u.options):g;v(),u.options=Object.assign({},o,u.options,m),u.scrollParents={reference:Dv(a)?j0(a):a.contextElement?j0(a.contextElement):[],popper:j0(s)};var y=V$e(F$e([].concat(r,u.options.modifiers)));return u.orderedModifiers=y.filter(function(b){return b.enabled}),p(),d.update()},forceUpdate:function(){if(!f){var g=u.elements,m=g.reference,y=g.popper;if(gF(m,y)){u.rects={reference:L$e(m,Xb(y),u.options.strategy==="fixed"),popper:$L(y)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function($){return u.modifiersData[$.name]=Object.assign({},$.data)});for(var b=0;b<u.orderedModifiers.length;b++){if(u.reset===!0){u.reset=!1,b=-1;continue}var O=u.orderedModifiers[b],w=O.fn,x=O.options,S=x===void 0?{}:x,T=O.name;typeof w=="function"&&(u=w({state:u,options:S,name:T,instance:d})||u)}}}},update:z$e(function(){return new Promise(function(g){d.forceUpdate(),g(u)})}),destroy:function(){v(),f=!0}};if(!gF(a,s))return d;d.setOptions(l).then(function(g){!f&&l.onFirstUpdate&&l.onFirstUpdate(g)});function p(){u.orderedModifiers.forEach(function(g){var m=g.name,y=g.options,b=y===void 0?{}:y,O=g.effect;if(typeof O=="function"){var w=O({state:u,name:m,instance:d,options:b}),x=function(){};c.push(w||x)}})}function v(){c.forEach(function(g){return g()}),c=[]}return d}}DL();var W$e=[Dee,Nee,Iee,Pee];DL({defaultModifiers:W$e});var Q$e=[Dee,Nee,Iee,Pee,A$e,S$e,D$e,u$e,T$e],H$e=DL({defaultModifiers:Q$e});const G$e=(t,e,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const u=j$e(l);Object.assign(a.value,u)},requires:["computeStyles"]},i=h.computed(()=>{const{onFirstUpdate:l,placement:u,strategy:c,modifiers:f}=h.unref(n);return{onFirstUpdate:l,placement:u||"bottom",strategy:c||"absolute",modifiers:[...f||[],r,{name:"applyStyles",enabled:!1}]}}),o=h.shallowRef(),a=h.ref({styles:{popper:{position:h.unref(i).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=()=>{o.value&&(o.value.destroy(),o.value=void 0)};return h.watch(i,l=>{const u=h.unref(o);u&&u.setOptions(l)},{deep:!0}),h.watch([t,e],([l,u])=>{s(),!(!l||!u)&&(o.value=H$e(l,u,h.unref(i)))}),h.onBeforeUnmount(()=>{s()}),{state:h.computed(()=>{var l;return{...((l=h.unref(o))==null?void 0:l.state)||{}}}),styles:h.computed(()=>h.unref(a).styles),attributes:h.computed(()=>h.unref(a).attributes),update:()=>{var l;return(l=h.unref(o))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=h.unref(o))==null?void 0:l.forceUpdate()},instanceRef:h.computed(()=>h.unref(o))}};function j$e(t){const e=Object.keys(t.elements),n=Zx(e.map(i=>[i,t.styles[i]||{}])),r=Zx(e.map(i=>[i,t.attributes[i]]));return{styles:n,attributes:r}}const Lee=t=>{if(!t)return{onClick:pc,onMousedown:pc,onMouseup:pc};let e=!1,n=!1;return{onClick:a=>{e&&n&&t(a),e=n=!1},onMousedown:a=>{e=a.target===a.currentTarget},onMouseup:a=>{n=a.target===a.currentTarget}}};function mF(){let t;const e=(r,i)=>{n(),t=window.setTimeout(r,i)},n=()=>window.clearTimeout(t);return iT(()=>n()),{registerTimeout:e,cancelTimeout:n}}const nD={prefix:Math.floor(Math.random()*1e4),current:0},U$e=Symbol("elIdInjection"),Bee=()=>h.getCurrentInstance()?h.inject(U$e,nD):nD,Ry=t=>{const e=Bee();!dr&&e===nD&&ci("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
  8. usage: app.provide(ID_INJECTION_KEY, {
  9. prefix: number,
  10. current: number,
  11. })`);const n=SL();return h.computed(()=>h.unref(t)||`${n.value}-id-${e.prefix}-${e.current++}`)};let Dp=[];const yF=t=>{const e=t;e.key===Ui.esc&&Dp.forEach(n=>n(e))},Z$e=t=>{h.onMounted(()=>{Dp.length===0&&document.addEventListener("keydown",yF),dr&&Dp.push(t)}),h.onBeforeUnmount(()=>{Dp=Dp.filter(e=>e!==t),Dp.length===0&&dr&&document.removeEventListener("keydown",yF)})};let bF;const Vee=()=>{const t=SL(),e=Bee(),n=h.computed(()=>`${t.value}-popper-container-${e.prefix}`),r=h.computed(()=>`#${n.value}`);return{id:n,selector:r}},X$e=t=>{const e=document.createElement("div");return e.id=t,document.body.appendChild(e),e},Y$e=()=>{const{id:t,selector:e}=Vee();return h.onBeforeMount(()=>{dr&&(process.env.NODE_ENV==="test"||!bF&&!document.body.querySelector(e.value))&&(bF=X$e(t.value))}),{id:t,selector:e}},q$e=Fn({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),K$e=({showAfter:t,hideAfter:e,autoClose:n,open:r,close:i})=>{const{registerTimeout:o}=mF(),{registerTimeout:a,cancelTimeout:s}=mF();return{onOpen:c=>{o(()=>{r(c);const f=h.unref(n);as(f)&&f>0&&a(()=>{i(c)},f)},h.unref(t))},onClose:c=>{s(),o(()=>{i(c)},h.unref(e))}}},zee=Symbol("elForwardRef"),J$e=t=>{const e=n=>{t.value=n};h.provide(zee,{setForwardRef:e})},eAe=t=>({mounted(e){t(e)},updated(e){t(e)},unmounted(){t(null)}}),_F={current:0},OF=h.ref(0),tAe=2e3,wF=Symbol("elZIndexContextKey"),nAe=Symbol("zIndexContextKey"),Fee=t=>{const e=h.getCurrentInstance()?h.inject(wF,_F):_F,n=h.getCurrentInstance()?h.inject(nAe,void 0):void 0,r=h.computed(()=>{const a=h.unref(n);return as(a)?a:tAe}),i=h.computed(()=>r.value+OF.value),o=()=>(e.current++,OF.value=e.current,i.value);return!dr&&!h.inject(wF)&&ci("ZIndexInjection",`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
  12. usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:r,currentZIndex:i,nextZIndex:o}};function rAe(t){const e=h.ref();function n(){if(t.value==null)return;const{selectionStart:i,selectionEnd:o,value:a}=t.value;if(i==null||o==null)return;const s=a.slice(0,Math.max(0,i)),l=a.slice(Math.max(0,o));e.value={selectionStart:i,selectionEnd:o,value:a,beforeTxt:s,afterTxt:l}}function r(){if(t.value==null||e.value==null)return;const{value:i}=t.value,{beforeTxt:o,afterTxt:a,selectionStart:s}=e.value;if(o==null||a==null||s==null)return;let l=i.length;if(i.endsWith(a))l=i.length-a.length;else if(i.startsWith(o))l=o.length;else{const u=o[s-1],c=i.indexOf(u,s-1);c!==-1&&(l=c+1)}t.value.setSelectionRange(l,l)}return[n,r]}const wh=vT({type:String,values:T2e,required:!1}),iAe=Symbol("size"),oAe=()=>{const t=h.inject(iAe,{});return h.computed(()=>h.unref(t.size)||"")};function Wee(t,{afterFocus:e,beforeBlur:n,afterBlur:r}={}){const i=h.getCurrentInstance(),{emit:o}=i,a=h.shallowRef(),s=h.ref(!1),l=f=>{s.value||(s.value=!0,o("focus",f),e==null||e())},u=f=>{var d;pd(n)&&n(f)||f.relatedTarget&&((d=a.value)!=null&&d.contains(f.relatedTarget))||(s.value=!1,o("blur",f),r==null||r())},c=()=>{var f;(f=t.value)==null||f.focus()};return h.watch(a,f=>{f&&f.setAttribute("tabindex","-1")}),W0(a,"click",c),{wrapperRef:a,isFocused:s,handleFocus:l,handleBlur:u}}const aAe=Fn({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),xh=t=>$v(aAe,t),sAe=Symbol(),xF=h.ref();function Qee(t,e=void 0){const n=h.getCurrentInstance()?h.inject(sAe,xF):xF;return t?h.computed(()=>{var r,i;return(i=(r=n.value)==null?void 0:r[t])!=null?i:e}):n}var pn=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n};const lAe=Fn({size:{type:Xt([Number,String])},color:{type:String}}),uAe=h.defineComponent({name:"ElIcon",inheritAttrs:!1}),cAe=h.defineComponent({...uAe,props:lAe,setup(t){const e=t,n=an("icon"),r=h.computed(()=>{const{size:i,color:o}=e;return!i&&!o?{}:{fontSize:Xx(i)?void 0:Ev(i),"--color":o}});return(i,o)=>(h.openBlock(),h.createElementBlock("i",h.mergeProps({class:h.unref(n).b(),style:h.unref(r)},i.$attrs),[h.renderSlot(i.$slots,"default")],16))}});var fAe=pn(cAe,[["__file","icon.vue"]]);const Za=gu(fAe),RL=Symbol("formContextKey"),ky=Symbol("formItemContextKey"),Lv=(t,e={})=>{const n=h.ref(void 0),r=e.prop?n:Cee("size"),i=e.global?n:oAe(),o=e.form?{size:void 0}:h.inject(RL,void 0),a=e.formItem?{size:void 0}:h.inject(ky,void 0);return h.computed(()=>r.value||h.unref(t)||(a==null?void 0:a.size)||(o==null?void 0:o.size)||i.value||"")},bg=t=>{const e=Cee("disabled"),n=h.inject(RL,void 0);return h.computed(()=>e.value||h.unref(t)||(n==null?void 0:n.disabled)||!1)},Sh=()=>{const t=h.inject(RL,void 0),e=h.inject(ky,void 0);return{form:t,formItem:e}},Yb=(t,{formItemContext:e,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=h.ref(!1)),r||(r=h.ref(!1));const i=h.ref();let o;const a=h.computed(()=>{var s;return!!(!(t.label||t.ariaLabel)&&e&&e.inputIds&&((s=e.inputIds)==null?void 0:s.length)<=1)});return h.onMounted(()=>{o=h.watch([h.toRef(t,"id"),n],([s,l])=>{const u=s??(l?void 0:Ry().value);u!==i.value&&(e!=null&&e.removeInputId&&(i.value&&e.removeInputId(i.value),!(r!=null&&r.value)&&!l&&u&&e.addInputId(u)),i.value=u)},{immediate:!0})}),h.onUnmounted(()=>{o&&o(),e!=null&&e.removeInputId&&i.value&&e.removeInputId(i.value)}),{isLabeledByFormItem:a,inputId:i}};function vd(){return vd=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},vd.apply(this,arguments)}function dAe(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Ny(t,e)}function rD(t){return rD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rD(t)}function Ny(t,e){return Ny=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Ny(t,e)}function hAe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function jw(t,e,n){return hAe()?jw=Reflect.construct.bind():jw=function(i,o,a){var s=[null];s.push.apply(s,o);var l=Function.bind.apply(i,s),u=new l;return a&&Ny(u,a.prototype),u},jw.apply(null,arguments)}function pAe(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function iD(t){var e=typeof Map=="function"?new Map:void 0;return iD=function(r){if(r===null||!pAe(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof e<"u"){if(e.has(r))return e.get(r);e.set(r,i)}function i(){return jw(r,arguments,rD(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Ny(i,r)},iD(t)}var vAe=/%[sdj%]/g,Hee=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(Hee=function(e,n){typeof console<"u"&&console.warn&&typeof ASYNC_VALIDATOR_NO_WARNING>"u"&&n.every(function(r){return typeof r=="string"})&&console.warn(e,n)});function oD(t){if(!t||!t.length)return null;var e={};return t.forEach(function(n){var r=n.field;e[r]=e[r]||[],e[r].push(n)}),e}function $o(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=0,o=n.length;if(typeof t=="function")return t.apply(null,n);if(typeof t=="string"){var a=t.replace(vAe,function(s){if(s==="%%")return"%";if(i>=o)return s;switch(s){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch{return"[Circular]"}break;default:return s}});return a}return t}function gAe(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function Sr(t,e){return!!(t==null||e==="array"&&Array.isArray(t)&&!t.length||gAe(e)&&typeof t=="string"&&!t)}function mAe(t,e,n){var r=[],i=0,o=t.length;function a(s){r.push.apply(r,s||[]),i++,i===o&&n(r)}t.forEach(function(s){e(s,a)})}function SF(t,e,n){var r=0,i=t.length;function o(a){if(a&&a.length){n(a);return}var s=r;r=r+1,s<i?e(t[s],o):n([])}o([])}function yAe(t){var e=[];return Object.keys(t).forEach(function(n){e.push.apply(e,t[n]||[])}),e}var CF=function(t){dAe(e,t);function e(n,r){var i;return i=t.call(this,"Async Validation Error")||this,i.errors=n,i.fields=r,i}return e}(iD(Error));function bAe(t,e,n,r,i){if(e.first){var o=new Promise(function(d,p){var v=function(y){return r(y),y.length?p(new CF(y,oD(y))):d(i)},g=yAe(t);SF(g,n,v)});return o.catch(function(d){return d}),o}var a=e.firstFields===!0?Object.keys(t):e.firstFields||[],s=Object.keys(t),l=s.length,u=0,c=[],f=new Promise(function(d,p){var v=function(m){if(c.push.apply(c,m),u++,u===l)return r(c),c.length?p(new CF(c,oD(c))):d(i)};s.length||(r(c),d(i)),s.forEach(function(g){var m=t[g];a.indexOf(g)!==-1?SF(m,n,v):mAe(m,n,v)})});return f.catch(function(d){return d}),f}function _Ae(t){return!!(t&&t.message!==void 0)}function OAe(t,e){for(var n=t,r=0;r<e.length;r++){if(n==null)return n;n=n[e[r]]}return n}function TF(t,e){return function(n){var r;return t.fullFields?r=OAe(e,t.fullFields):r=e[n.field||t.fullField],_Ae(n)?(n.field=n.field||t.fullField,n.fieldValue=r,n):{message:typeof n=="function"?n():n,fieldValue:r,field:n.field||t.fullField}}}function PF(t,e){if(e){for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];typeof r=="object"&&typeof t[n]=="object"?t[n]=vd({},t[n],r):t[n]=r}}return t}var Gee=function(e,n,r,i,o,a){e.required&&(!r.hasOwnProperty(e.field)||Sr(n,a||e.type))&&i.push($o(o.messages.required,e.fullField))},wAe=function(e,n,r,i,o){(/^\s+$/.test(n)||n==="")&&i.push($o(o.messages.whitespace,e.fullField))},W1,xAe=function(){if(W1)return W1;var t="[a-fA-F\\d:]",e=function(w){return w&&w.includeBoundaries?"(?:(?<=\\s|^)(?="+t+")|(?<="+t+")(?=\\s|$))":""},n="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",r="[a-fA-F\\d]{1,4}",i=(`
  13. (?:
  14. (?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
  15. (?:`+r+":){6}(?:"+n+"|:"+r+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
  16. (?:`+r+":){5}(?::"+n+"|(?::"+r+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
  17. (?:`+r+":){4}(?:(?::"+r+"){0,1}:"+n+"|(?::"+r+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
  18. (?:`+r+":){3}(?:(?::"+r+"){0,2}:"+n+"|(?::"+r+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
  19. (?:`+r+":){2}(?:(?::"+r+"){0,3}:"+n+"|(?::"+r+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
  20. (?:`+r+":){1}(?:(?::"+r+"){0,4}:"+n+"|(?::"+r+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
  21. (?::(?:(?::`+r+"){0,5}:"+n+"|(?::"+r+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
  22. )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
  23. `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp("(?:^"+n+"$)|(?:^"+i+"$)"),a=new RegExp("^"+n+"$"),s=new RegExp("^"+i+"$"),l=function(w){return w&&w.exact?o:new RegExp("(?:"+e(w)+n+e(w)+")|(?:"+e(w)+i+e(w)+")","g")};l.v4=function(O){return O&&O.exact?a:new RegExp(""+e(O)+n+e(O),"g")},l.v6=function(O){return O&&O.exact?s:new RegExp(""+e(O)+i+e(O),"g")};var u="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",f=l.v4().source,d=l.v6().source,p="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",g="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",m="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',b="(?:"+u+"|www\\.)"+c+"(?:localhost|"+f+"|"+d+"|"+p+v+g+")"+m+y;return W1=new RegExp("(?:^"+b+"$)","i"),W1},$F={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},b0={integer:function(e){return b0.number(e)&&parseInt(e,10)===e},float:function(e){return b0.number(e)&&!b0.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return typeof e=="object"&&!b0.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match($F.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(xAe())},hex:function(e){return typeof e=="string"&&!!e.match($F.hex)}},SAe=function(e,n,r,i,o){if(e.required&&n===void 0){Gee(e,n,r,i,o);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=e.type;a.indexOf(s)>-1?b0[s](n)||i.push($o(o.messages.types[s],e.fullField,e.type)):s&&typeof n!==e.type&&i.push($o(o.messages.types[s],e.fullField,e.type))},CAe=function(e,n,r,i,o){var a=typeof e.len=="number",s=typeof e.min=="number",l=typeof e.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=n,f=null,d=typeof n=="number",p=typeof n=="string",v=Array.isArray(n);if(d?f="number":p?f="string":v&&(f="array"),!f)return!1;v&&(c=n.length),p&&(c=n.replace(u,"_").length),a?c!==e.len&&i.push($o(o.messages[f].len,e.fullField,e.len)):s&&!l&&c<e.min?i.push($o(o.messages[f].min,e.fullField,e.min)):l&&!s&&c>e.max?i.push($o(o.messages[f].max,e.fullField,e.max)):s&&l&&(c<e.min||c>e.max)&&i.push($o(o.messages[f].range,e.fullField,e.min,e.max))},tp="enum",TAe=function(e,n,r,i,o){e[tp]=Array.isArray(e[tp])?e[tp]:[],e[tp].indexOf(n)===-1&&i.push($o(o.messages[tp],e.fullField,e[tp].join(", ")))},PAe=function(e,n,r,i,o){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(n)||i.push($o(o.messages.pattern.mismatch,e.fullField,n,e.pattern));else if(typeof e.pattern=="string"){var a=new RegExp(e.pattern);a.test(n)||i.push($o(o.messages.pattern.mismatch,e.fullField,n,e.pattern))}}},Ht={required:Gee,whitespace:wAe,type:SAe,range:CAe,enum:TAe,pattern:PAe},$Ae=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Sr(n,"string")&&!e.required)return r();Ht.required(e,n,i,a,o,"string"),Sr(n,"string")||(Ht.type(e,n,i,a,o),Ht.range(e,n,i,a,o),Ht.pattern(e,n,i,a,o),e.whitespace===!0&&Ht.whitespace(e,n,i,a,o))}r(a)},AAe=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Sr(n)&&!e.required)return r();Ht.required(e,n,i,a,o),n!==void 0&&Ht.type(e,n,i,a,o)}r(a)},EAe=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(n===""&&(n=void 0),Sr(n)&&!e.required)return r();Ht.required(e,n,i,a,o),n!==void 0&&(Ht.type(e,n,i,a,o),Ht.range(e,n,i,a,o))}r(a)},MAe=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Sr(n)&&!e.required)return r();Ht.required(e,n,i,a,o),n!==void 0&&Ht.type(e,n,i,a,o)}r(a)},IAe=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Sr(n)&&!e.required)return r();Ht.required(e,n,i,a,o),Sr(n)||Ht.type(e,n,i,a,o)}r(a)},DAe=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Sr(n)&&!e.required)return r();Ht.required(e,n,i,a,o),n!==void 0&&(Ht.type(e,n,i,a,o),Ht.range(e,n,i,a,o))}r(a)},RAe=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Sr(n)&&!e.required)return r();Ht.required(e,n,i,a,o),n!==void 0&&(Ht.type(e,n,i,a,o),Ht.range(e,n,i,a,o))}r(a)},kAe=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(n==null&&!e.required)return r();Ht.required(e,n,i,a,o,"array"),n!=null&&(Ht.type(e,n,i,a,o),Ht.range(e,n,i,a,o))}r(a)},NAe=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Sr(n)&&!e.required)return r();Ht.required(e,n,i,a,o),n!==void 0&&Ht.type(e,n,i,a,o)}r(a)},LAe="enum",BAe=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Sr(n)&&!e.required)return r();Ht.required(e,n,i,a,o),n!==void 0&&Ht[LAe](e,n,i,a,o)}r(a)},VAe=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Sr(n,"string")&&!e.required)return r();Ht.required(e,n,i,a,o),Sr(n,"string")||Ht.pattern(e,n,i,a,o)}r(a)},zAe=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Sr(n,"date")&&!e.required)return r();if(Ht.required(e,n,i,a,o),!Sr(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Ht.type(e,l,i,a,o),l&&Ht.range(e,l.getTime(),i,a,o)}}r(a)},FAe=function(e,n,r,i,o){var a=[],s=Array.isArray(n)?"array":typeof n;Ht.required(e,n,i,a,o,s),r(a)},G$=function(e,n,r,i,o){var a=e.type,s=[],l=e.required||!e.required&&i.hasOwnProperty(e.field);if(l){if(Sr(n,a)&&!e.required)return r();Ht.required(e,n,i,s,o,a),Sr(n,a)||Ht.type(e,n,i,s,o)}r(s)},WAe=function(e,n,r,i,o){var a=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(Sr(n)&&!e.required)return r();Ht.required(e,n,i,a,o)}r(a)},U0={string:$Ae,method:AAe,number:EAe,boolean:MAe,regexp:IAe,integer:DAe,float:RAe,array:kAe,object:NAe,enum:BAe,pattern:VAe,date:zAe,url:G$,hex:G$,email:G$,required:FAe,any:WAe};function aD(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var sD=aD(),qb=function(){function t(n){this.rules=null,this._messages=sD,this.define(n)}var e=t.prototype;return e.define=function(r){var i=this;if(!r)throw new Error("Cannot configure a schema with no rules");if(typeof r!="object"||Array.isArray(r))throw new Error("Rules must be an object");this.rules={},Object.keys(r).forEach(function(o){var a=r[o];i.rules[o]=Array.isArray(a)?a:[a]})},e.messages=function(r){return r&&(this._messages=PF(aD(),r)),this._messages},e.validate=function(r,i,o){var a=this;i===void 0&&(i={}),o===void 0&&(o=function(){});var s=r,l=i,u=o;if(typeof l=="function"&&(u=l,l={}),!this.rules||Object.keys(this.rules).length===0)return u&&u(null,s),Promise.resolve(s);function c(g){var m=[],y={};function b(w){if(Array.isArray(w)){var x;m=(x=m).concat.apply(x,w)}else m.push(w)}for(var O=0;O<g.length;O++)b(g[O]);m.length?(y=oD(m),u(m,y)):u(null,s)}if(l.messages){var f=this.messages();f===sD&&(f=aD()),PF(f,l.messages),l.messages=f}else l.messages=this.messages();var d={},p=l.keys||Object.keys(this.rules);p.forEach(function(g){var m=a.rules[g],y=s[g];m.forEach(function(b){var O=b;typeof O.transform=="function"&&(s===r&&(s=vd({},s)),y=s[g]=O.transform(y)),typeof O=="function"?O={validator:O}:O=vd({},O),O.validator=a.getValidationMethod(O),O.validator&&(O.field=g,O.fullField=O.fullField||g,O.type=a.getType(O),d[g]=d[g]||[],d[g].push({rule:O,value:y,source:s,field:g}))})});var v={};return bAe(d,l,function(g,m){var y=g.rule,b=(y.type==="object"||y.type==="array")&&(typeof y.fields=="object"||typeof y.defaultField=="object");b=b&&(y.required||!y.required&&g.value),y.field=g.field;function O(S,T){return vd({},T,{fullField:y.fullField+"."+S,fullFields:y.fullFields?[].concat(y.fullFields,[S]):[S]})}function w(S){S===void 0&&(S=[]);var T=Array.isArray(S)?S:[S];!l.suppressWarning&&T.length&&t.warning("async-validator:",T),T.length&&y.message!==void 0&&(T=[].concat(y.message));var $=T.map(TF(y,s));if(l.first&&$.length)return v[y.field]=1,m($);if(!b)m($);else{if(y.required&&!g.value)return y.message!==void 0?$=[].concat(y.message).map(TF(y,s)):l.error&&($=[l.error(y,$o(l.messages.required,y.field))]),m($);var A={};y.defaultField&&Object.keys(g.value).map(function(I){A[I]=y.defaultField}),A=vd({},A,g.rule.fields);var P={};Object.keys(A).forEach(function(I){var R=A[I],L=Array.isArray(R)?R:[R];P[I]=L.map(O.bind(null,I))});var M=new t(P);M.messages(l.messages),g.rule.options&&(g.rule.options.messages=l.messages,g.rule.options.error=l.error),M.validate(g.value,g.rule.options||l,function(I){var R=[];$&&$.length&&R.push.apply(R,$),I&&I.length&&R.push.apply(R,I),m(R.length?R:null)})}}var x;if(y.asyncValidator)x=y.asyncValidator(y,g.value,w,g.source,l);else if(y.validator){try{x=y.validator(y,g.value,w,g.source,l)}catch(S){console.error==null||console.error(S),l.suppressValidatorError||setTimeout(function(){throw S},0),w(S.message)}x===!0?w():x===!1?w(typeof y.message=="function"?y.message(y.fullField||y.field):y.message||(y.fullField||y.field)+" fails"):x instanceof Array?w(x):x instanceof Error&&w(x.message)}x&&x.then&&x.then(function(){return w()},function(S){return w(S)})},function(g){c(g)},s)},e.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!U0.hasOwnProperty(r.type))throw new Error($o("Unknown rule type %s",r.type));return r.type||"string"},e.getValidationMethod=function(r){if(typeof r.validator=="function")return r.validator;var i=Object.keys(r),o=i.indexOf("message");return o!==-1&&i.splice(o,1),i.length===1&&i[0]==="required"?U0.required:U0[this.getType(r)]||void 0},t}();qb.register=function(e,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");U0[e]=n};qb.warning=Hee;qb.messages=sD;qb.validators=U0;let Fa;const QAe=`
  24. height:0 !important;
  25. visibility:hidden !important;
  26. ${_we()?"":"overflow:hidden !important;"}
  27. position:absolute !important;
  28. z-index:-1000 !important;
  29. top:0 !important;
  30. right:0 !important;
  31. `,HAe=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function GAe(t){const e=window.getComputedStyle(t),n=e.getPropertyValue("box-sizing"),r=Number.parseFloat(e.getPropertyValue("padding-bottom"))+Number.parseFloat(e.getPropertyValue("padding-top")),i=Number.parseFloat(e.getPropertyValue("border-bottom-width"))+Number.parseFloat(e.getPropertyValue("border-top-width"));return{contextStyle:HAe.map(a=>`${a}:${e.getPropertyValue(a)}`).join(";"),paddingSize:r,borderSize:i,boxSizing:n}}function AF(t,e=1,n){var r;Fa||(Fa=document.createElement("textarea"),document.body.appendChild(Fa));const{paddingSize:i,borderSize:o,boxSizing:a,contextStyle:s}=GAe(t);Fa.setAttribute("style",`${s};${QAe}`),Fa.value=t.value||t.placeholder||"";let l=Fa.scrollHeight;const u={};a==="border-box"?l=l+o:a==="content-box"&&(l=l-i),Fa.value="";const c=Fa.scrollHeight-i;if(as(e)){let f=c*e;a==="border-box"&&(f=f+i+o),l=Math.max(f,l),u.minHeight=`${f}px`}if(as(n)){let f=c*n;a==="border-box"&&(f=f+i+o),l=Math.min(f,l)}return u.height=`${l}px`,(r=Fa.parentNode)==null||r.removeChild(Fa),Fa=void 0,u}const jAe=Fn({id:{type:String,default:void 0},size:wh,disabled:Boolean,modelValue:{type:Xt([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:Xt([Boolean,Object]),default:!1},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},showPassword:{type:Boolean,default:!1},showWordLimit:{type:Boolean,default:!1},suffixIcon:{type:Mv},prefixIcon:{type:Mv},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:!0},inputStyle:{type:Xt([Object,Array,String]),default:()=>$2e({})},autofocus:{type:Boolean,default:!1},...xh(["ariaLabel"])}),UAe={[Di]:t=>Pi(t),input:t=>Pi(t),change:t=>Pi(t),focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent,clear:()=>!0,mouseleave:t=>t instanceof MouseEvent,mouseenter:t=>t instanceof MouseEvent,keydown:t=>t instanceof Event,compositionstart:t=>t instanceof CompositionEvent,compositionupdate:t=>t instanceof CompositionEvent,compositionend:t=>t instanceof CompositionEvent},ZAe=["role"],XAe=["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],YAe=["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],qAe=h.defineComponent({name:"ElInput",inheritAttrs:!1}),KAe=h.defineComponent({...qAe,props:jAe,emits:UAe,setup(t,{expose:e,emit:n}){const r=t,i=h.useAttrs(),o=h.useSlots(),a=h.computed(()=>{const we={};return r.containerRole==="combobox"&&(we["aria-haspopup"]=i["aria-haspopup"],we["aria-owns"]=i["aria-owns"],we["aria-expanded"]=i["aria-expanded"]),we}),s=h.computed(()=>[r.type==="textarea"?m.b():g.b(),g.m(p.value),g.is("disabled",v.value),g.is("exceed",se.value),{[g.b("group")]:o.prepend||o.append,[g.m("prefix")]:o.prefix||r.prefixIcon,[g.m("suffix")]:o.suffix||r.suffixIcon||r.clearable||r.showPassword,[g.bm("suffix","password-clear")]:j.value&&H.value,[g.b("hidden")]:r.type==="hidden"},i.class]),l=h.computed(()=>[g.e("wrapper"),g.is("focus",P.value)]),u=M2e({excludeKeys:h.computed(()=>Object.keys(a.value))}),{form:c,formItem:f}=Sh(),{inputId:d}=Yb(r,{formItemContext:f}),p=Lv(),v=bg(),g=an("input"),m=an("textarea"),y=h.shallowRef(),b=h.shallowRef(),O=h.ref(!1),w=h.ref(!1),x=h.ref(!1),S=h.ref(),T=h.shallowRef(r.inputStyle),$=h.computed(()=>y.value||b.value),{wrapperRef:A,isFocused:P,handleFocus:M,handleBlur:I}=Wee($,{afterBlur(){var we;r.validateEvent&&((we=f==null?void 0:f.validate)==null||we.call(f,"blur").catch(rt=>ci(rt)))}}),R=h.computed(()=>{var we;return(we=c==null?void 0:c.statusIcon)!=null?we:!1}),L=h.computed(()=>(f==null?void 0:f.validateState)||""),D=h.computed(()=>L.value&&S2e[L.value]),B=h.computed(()=>x.value?O2e:y2e),F=h.computed(()=>[i.style]),z=h.computed(()=>[r.inputStyle,T.value,{resize:r.resize}]),W=h.computed(()=>vc(r.modelValue)?"":String(r.modelValue)),j=h.computed(()=>r.clearable&&!v.value&&!r.readonly&&!!W.value&&(P.value||O.value)),H=h.computed(()=>r.showPassword&&!v.value&&!r.readonly&&!!W.value&&(!!W.value||P.value)),Z=h.computed(()=>r.showWordLimit&&!!r.maxlength&&(r.type==="text"||r.type==="textarea")&&!v.value&&!r.readonly&&!r.showPassword),J=h.computed(()=>W.value.length),se=h.computed(()=>!!Z.value&&J.value>Number(r.maxlength)),oe=h.computed(()=>!!o.suffix||!!r.suffixIcon||j.value||r.showPassword||Z.value||!!L.value&&R.value),[de,re]=rAe(y);pwe(b,we=>{if(X(),!Z.value||r.resize!=="both")return;const rt=we[0],{width:At}=rt.contentRect;S.value={right:`calc(100% - ${At+15+6}px)`}});const ue=()=>{const{type:we,autosize:rt}=r;if(!(!dr||we!=="textarea"||!b.value))if(rt){const At=qd(rt)?rt.minRows:void 0,vn=qd(rt)?rt.maxRows:void 0,cn=AF(b.value,At,vn);T.value={overflowY:"hidden",...cn},h.nextTick(()=>{b.value.offsetHeight,T.value=cn})}else T.value={minHeight:AF(b.value).minHeight}},X=(we=>{let rt=!1;return()=>{var At;if(rt||!r.autosize)return;((At=b.value)==null?void 0:At.offsetParent)===null||(we(),rt=!0)}})(ue),Y=()=>{const we=$.value,rt=r.formatter?r.formatter(W.value):W.value;!we||we.value===rt||(we.value=rt)},le=async we=>{de();let{value:rt}=we.target;if(r.formatter&&(rt=r.parser?r.parser(rt):rt),!w.value){if(rt===W.value){Y();return}n(Di,rt),n("input",rt),await h.nextTick(),Y(),re()}},ge=we=>{n("change",we.target.value)},me=we=>{n("compositionstart",we),w.value=!0},Ne=we=>{var rt;n("compositionupdate",we);const At=(rt=we.target)==null?void 0:rt.value,vn=At[At.length-1]||"";w.value=!P2e(vn)},Le=we=>{n("compositionend",we),w.value&&(w.value=!1,le(we))},Ee=()=>{x.value=!x.value,$e()},$e=async()=>{var we;await h.nextTick(),(we=$.value)==null||we.focus()},_e=()=>{var we;return(we=$.value)==null?void 0:we.blur()},De=we=>{O.value=!1,n("mouseleave",we)},ze=we=>{O.value=!0,n("mouseenter",we)},lt=we=>{n("keydown",we)},gt=()=>{var we;(we=$.value)==null||we.select()},Bt=()=>{n(Di,""),n("change",""),n("clear"),n("input","")};return h.watch(()=>r.modelValue,()=>{var we;h.nextTick(()=>ue()),r.validateEvent&&((we=f==null?void 0:f.validate)==null||we.call(f,"change").catch(rt=>ci(rt)))}),h.watch(W,()=>Y()),h.watch(()=>r.type,async()=>{await h.nextTick(),Y(),ue()}),h.onMounted(()=>{!r.formatter&&r.parser&&ci("ElInput","If you set the parser, you also need to set the formatter."),Y(),h.nextTick(ue)}),Xa({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-input",ref:"https://element-plus.org/en-US/component/input.html"},h.computed(()=>!!r.label)),e({input:y,textarea:b,ref:$,textareaStyle:z,autosize:h.toRef(r,"autosize"),focus:$e,blur:_e,select:gt,clear:Bt,resizeTextarea:ue}),(we,rt)=>(h.openBlock(),h.createElementBlock("div",h.mergeProps(h.unref(a),{class:[h.unref(s),{[h.unref(g).bm("group","append")]:we.$slots.append,[h.unref(g).bm("group","prepend")]:we.$slots.prepend}],style:h.unref(F),role:we.containerRole,onMouseenter:ze,onMouseleave:De}),[h.createCommentVNode(" input "),we.type!=="textarea"?(h.openBlock(),h.createElementBlock(h.Fragment,{key:0},[h.createCommentVNode(" prepend slot "),we.$slots.prepend?(h.openBlock(),h.createElementBlock("div",{key:0,class:h.normalizeClass(h.unref(g).be("group","prepend"))},[h.renderSlot(we.$slots,"prepend")],2)):h.createCommentVNode("v-if",!0),h.createElementVNode("div",{ref_key:"wrapperRef",ref:A,class:h.normalizeClass(h.unref(l))},[h.createCommentVNode(" prefix slot "),we.$slots.prefix||we.prefixIcon?(h.openBlock(),h.createElementBlock("span",{key:0,class:h.normalizeClass(h.unref(g).e("prefix"))},[h.createElementVNode("span",{class:h.normalizeClass(h.unref(g).e("prefix-inner"))},[h.renderSlot(we.$slots,"prefix"),we.prefixIcon?(h.openBlock(),h.createBlock(h.unref(Za),{key:0,class:h.normalizeClass(h.unref(g).e("icon"))},{default:h.withCtx(()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(we.prefixIcon)))]),_:1},8,["class"])):h.createCommentVNode("v-if",!0)],2)],2)):h.createCommentVNode("v-if",!0),h.createElementVNode("input",h.mergeProps({id:h.unref(d),ref_key:"input",ref:y,class:h.unref(g).e("inner")},h.unref(u),{minlength:we.minlength,maxlength:we.maxlength,type:we.showPassword?x.value?"text":"password":we.type,disabled:h.unref(v),readonly:we.readonly,autocomplete:we.autocomplete,tabindex:we.tabindex,"aria-label":we.label||we.ariaLabel,placeholder:we.placeholder,style:we.inputStyle,form:we.form,autofocus:we.autofocus,onCompositionstart:me,onCompositionupdate:Ne,onCompositionend:Le,onInput:le,onFocus:rt[0]||(rt[0]=(...At)=>h.unref(M)&&h.unref(M)(...At)),onBlur:rt[1]||(rt[1]=(...At)=>h.unref(I)&&h.unref(I)(...At)),onChange:ge,onKeydown:lt}),null,16,XAe),h.createCommentVNode(" suffix slot "),h.unref(oe)?(h.openBlock(),h.createElementBlock("span",{key:1,class:h.normalizeClass(h.unref(g).e("suffix"))},[h.createElementVNode("span",{class:h.normalizeClass(h.unref(g).e("suffix-inner"))},[!h.unref(j)||!h.unref(H)||!h.unref(Z)?(h.openBlock(),h.createElementBlock(h.Fragment,{key:0},[h.renderSlot(we.$slots,"suffix"),we.suffixIcon?(h.openBlock(),h.createBlock(h.unref(Za),{key:0,class:h.normalizeClass(h.unref(g).e("icon"))},{default:h.withCtx(()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(we.suffixIcon)))]),_:1},8,["class"])):h.createCommentVNode("v-if",!0)],64)):h.createCommentVNode("v-if",!0),h.unref(j)?(h.openBlock(),h.createBlock(h.unref(Za),{key:1,class:h.normalizeClass([h.unref(g).e("icon"),h.unref(g).e("clear")]),onMousedown:h.withModifiers(h.unref(pc),["prevent"]),onClick:Bt},{default:h.withCtx(()=>[h.createVNode(h.unref(_ee))]),_:1},8,["class","onMousedown"])):h.createCommentVNode("v-if",!0),h.unref(H)?(h.openBlock(),h.createBlock(h.unref(Za),{key:2,class:h.normalizeClass([h.unref(g).e("icon"),h.unref(g).e("password")]),onClick:Ee},{default:h.withCtx(()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(h.unref(B))))]),_:1},8,["class"])):h.createCommentVNode("v-if",!0),h.unref(Z)?(h.openBlock(),h.createElementBlock("span",{key:3,class:h.normalizeClass(h.unref(g).e("count"))},[h.createElementVNode("span",{class:h.normalizeClass(h.unref(g).e("count-inner"))},h.toDisplayString(h.unref(J))+" / "+h.toDisplayString(we.maxlength),3)],2)):h.createCommentVNode("v-if",!0),h.unref(L)&&h.unref(D)&&h.unref(R)?(h.openBlock(),h.createBlock(h.unref(Za),{key:4,class:h.normalizeClass([h.unref(g).e("icon"),h.unref(g).e("validateIcon"),h.unref(g).is("loading",h.unref(L)==="validating")])},{default:h.withCtx(()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(h.unref(D))))]),_:1},8,["class"])):h.createCommentVNode("v-if",!0)],2)],2)):h.createCommentVNode("v-if",!0)],2),h.createCommentVNode(" append slot "),we.$slots.append?(h.openBlock(),h.createElementBlock("div",{key:1,class:h.normalizeClass(h.unref(g).be("group","append"))},[h.renderSlot(we.$slots,"append")],2)):h.createCommentVNode("v-if",!0)],64)):(h.openBlock(),h.createElementBlock(h.Fragment,{key:1},[h.createCommentVNode(" textarea "),h.createElementVNode("textarea",h.mergeProps({id:h.unref(d),ref_key:"textarea",ref:b,class:[h.unref(m).e("inner"),h.unref(g).is("focus",h.unref(P))]},h.unref(u),{minlength:we.minlength,maxlength:we.maxlength,tabindex:we.tabindex,disabled:h.unref(v),readonly:we.readonly,autocomplete:we.autocomplete,style:h.unref(z),"aria-label":we.label||we.ariaLabel,placeholder:we.placeholder,form:we.form,autofocus:we.autofocus,onCompositionstart:me,onCompositionupdate:Ne,onCompositionend:Le,onInput:le,onFocus:rt[2]||(rt[2]=(...At)=>h.unref(M)&&h.unref(M)(...At)),onBlur:rt[3]||(rt[3]=(...At)=>h.unref(I)&&h.unref(I)(...At)),onChange:ge,onKeydown:lt}),null,16,YAe),h.unref(Z)?(h.openBlock(),h.createElementBlock("span",{key:0,style:h.normalizeStyle(S.value),class:h.normalizeClass(h.unref(g).e("count"))},h.toDisplayString(h.unref(J))+" / "+h.toDisplayString(we.maxlength),7)):h.createCommentVNode("v-if",!0)],64))],16,ZAe))}});var JAe=pn(KAe,[["__file","input.vue"]]);const mT=gu(JAe),kL=Symbol("popper"),jee=Symbol("popperContent"),eEe=["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],Uee=Fn({role:{type:String,values:eEe,default:"tooltip"}}),tEe=h.defineComponent({name:"ElPopper",inheritAttrs:!1}),nEe=h.defineComponent({...tEe,props:Uee,setup(t,{expose:e}){const n=t,r=h.ref(),i=h.ref(),o=h.ref(),a=h.ref(),s=h.computed(()=>n.role),l={triggerRef:r,popperInstanceRef:i,contentRef:o,referenceRef:a,role:s};return e(l),h.provide(kL,l),(u,c)=>h.renderSlot(u.$slots,"default")}});var rEe=pn(nEe,[["__file","popper.vue"]]);const Zee=Fn({arrowOffset:{type:Number,default:5}}),iEe=h.defineComponent({name:"ElPopperArrow",inheritAttrs:!1}),oEe=h.defineComponent({...iEe,props:Zee,setup(t,{expose:e}){const n=t,r=an("popper"),{arrowOffset:i,arrowRef:o,arrowStyle:a}=h.inject(jee,void 0);return h.watch(()=>n.arrowOffset,s=>{i.value=s}),h.onBeforeUnmount(()=>{o.value=void 0}),e({arrowRef:o}),(s,l)=>(h.openBlock(),h.createElementBlock("span",{ref_key:"arrowRef",ref:o,class:h.normalizeClass(h.unref(r).e("arrow")),style:h.normalizeStyle(h.unref(a)),"data-popper-arrow":""},null,6))}});var aEe=pn(oEe,[["__file","arrow.vue"]]);const j$="ElOnlyChild",sEe=h.defineComponent({name:j$,setup(t,{slots:e,attrs:n}){var r;const i=h.inject(zee),o=eAe((r=i==null?void 0:i.setForwardRef)!=null?r:pc);return()=>{var a;const s=(a=e.default)==null?void 0:a.call(e,n);if(!s)return null;if(s.length>1)return ci(j$,"requires exact only one valid child."),null;const l=Xee(s);return l?h.withDirectives(h.cloneVNode(l,n),[[o]]):(ci(j$,"no valid child node found"),null)}}});function Xee(t){if(!t)return null;const e=t;for(const n of e){if(qd(n))switch(n.type){case h.Comment:continue;case h.Text:case"svg":return EF(n);case h.Fragment:return Xee(n.children);default:return n}return EF(n)}return null}function EF(t){const e=an("only-child");return h.createVNode("span",{class:e.e("content")},[t])}const Yee=Fn({virtualRef:{type:Xt(Object)},virtualTriggering:Boolean,onMouseenter:{type:Xt(Function)},onMouseleave:{type:Xt(Function)},onClick:{type:Xt(Function)},onKeydown:{type:Xt(Function)},onFocus:{type:Xt(Function)},onBlur:{type:Xt(Function)},onContextmenu:{type:Xt(Function)},id:String,open:Boolean}),lEe=h.defineComponent({name:"ElPopperTrigger",inheritAttrs:!1}),uEe=h.defineComponent({...lEe,props:Yee,setup(t,{expose:e}){const n=t,{role:r,triggerRef:i}=h.inject(kL,void 0);J$e(i);const o=h.computed(()=>s.value?n.id:void 0),a=h.computed(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),s=h.computed(()=>{if(r&&r.value!=="tooltip")return r.value}),l=h.computed(()=>s.value?`${n.open}`:void 0);let u;return h.onMounted(()=>{h.watch(()=>n.virtualRef,c=>{c&&(i.value=tc(c))},{immediate:!0}),h.watch(i,(c,f)=>{u==null||u(),u=void 0,My(c)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(d=>{var p;const v=n[d];v&&(c.addEventListener(d.slice(2).toLowerCase(),v),(p=f==null?void 0:f.removeEventListener)==null||p.call(f,d.slice(2).toLowerCase(),v))}),u=h.watch([o,a,s,l],d=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((p,v)=>{vc(d[v])?c.removeAttribute(p):c.setAttribute(p,d[v])})},{immediate:!0})),My(f)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(d=>f.removeAttribute(d))},{immediate:!0})}),h.onBeforeUnmount(()=>{u==null||u(),u=void 0}),e({triggerRef:i}),(c,f)=>c.virtualTriggering?h.createCommentVNode("v-if",!0):(h.openBlock(),h.createBlock(h.unref(sEe),h.mergeProps({key:0},c.$attrs,{"aria-controls":h.unref(o),"aria-describedby":h.unref(a),"aria-expanded":h.unref(l),"aria-haspopup":h.unref(s)}),{default:h.withCtx(()=>[h.renderSlot(c.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var cEe=pn(uEe,[["__file","trigger.vue"]]);const U$="focus-trap.focus-after-trapped",Z$="focus-trap.focus-after-released",fEe="focus-trap.focusout-prevented",MF={cancelable:!0,bubbles:!1},dEe={cancelable:!0,bubbles:!1},IF="focusAfterTrapped",DF="focusAfterReleased",qee=Symbol("elFocusTrap"),NL=h.ref(),yT=h.ref(0),LL=h.ref(0);let Q1=0;const Kee=t=>{const e=[],n=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)e.push(n.currentNode);return e},RF=(t,e)=>{for(const n of t)if(!hEe(n,e))return n},hEe=(t,e)=>{if(process.env.NODE_ENV==="test")return!1;if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1},pEe=t=>{const e=Kee(t),n=RF(e,t),r=RF(e.reverse(),t);return[n,r]},vEe=t=>t instanceof HTMLInputElement&&"select"in t,Qu=(t,e)=>{if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),LL.value=window.performance.now(),t!==n&&vEe(t)&&e&&t.select()}};function kF(t,e){const n=[...t],r=t.indexOf(e);return r!==-1&&n.splice(r,1),n}const gEe=()=>{let t=[];return{push:r=>{const i=t[0];i&&r!==i&&i.pause(),t=kF(t,r),t.unshift(r)},remove:r=>{var i,o;t=kF(t,r),(o=(i=t[0])==null?void 0:i.resume)==null||o.call(i)}}},mEe=(t,e=!1)=>{const n=document.activeElement;for(const r of t)if(Qu(r,e),document.activeElement!==n)return},NF=gEe(),yEe=()=>yT.value>LL.value,H1=()=>{NL.value="pointer",yT.value=window.performance.now()},LF=()=>{NL.value="keyboard",yT.value=window.performance.now()},bEe=()=>(h.onMounted(()=>{Q1===0&&(document.addEventListener("mousedown",H1),document.addEventListener("touchstart",H1),document.addEventListener("keydown",LF)),Q1++}),h.onBeforeUnmount(()=>{Q1--,Q1<=0&&(document.removeEventListener("mousedown",H1),document.removeEventListener("touchstart",H1),document.removeEventListener("keydown",LF))}),{focusReason:NL,lastUserFocusTimestamp:yT,lastAutomatedFocusTimestamp:LL}),G1=t=>new CustomEvent(fEe,{...dEe,detail:t}),_Ee=h.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[IF,DF,"focusin","focusout","focusout-prevented","release-requested"],setup(t,{emit:e}){const n=h.ref();let r,i;const{focusReason:o}=bEe();Z$e(v=>{t.trapped&&!a.paused&&e("release-requested",v)});const a={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=v=>{if(!t.loop&&!t.trapped||a.paused)return;const{key:g,altKey:m,ctrlKey:y,metaKey:b,currentTarget:O,shiftKey:w}=v,{loop:x}=t,S=g===Ui.tab&&!m&&!y&&!b,T=document.activeElement;if(S&&T){const $=O,[A,P]=pEe($);if(A&&P){if(!w&&T===P){const I=G1({focusReason:o.value});e("focusout-prevented",I),I.defaultPrevented||(v.preventDefault(),x&&Qu(A,!0))}else if(w&&[A,$].includes(T)){const I=G1({focusReason:o.value});e("focusout-prevented",I),I.defaultPrevented||(v.preventDefault(),x&&Qu(P,!0))}}else if(T===$){const I=G1({focusReason:o.value});e("focusout-prevented",I),I.defaultPrevented||v.preventDefault()}}};h.provide(qee,{focusTrapRef:n,onKeydown:s}),h.watch(()=>t.focusTrapEl,v=>{v&&(n.value=v)},{immediate:!0}),h.watch([n],([v],[g])=>{v&&(v.addEventListener("keydown",s),v.addEventListener("focusin",c),v.addEventListener("focusout",f)),g&&(g.removeEventListener("keydown",s),g.removeEventListener("focusin",c),g.removeEventListener("focusout",f))});const l=v=>{e(IF,v)},u=v=>e(DF,v),c=v=>{const g=h.unref(n);if(!g)return;const m=v.target,y=v.relatedTarget,b=m&&g.contains(m);t.trapped||y&&g.contains(y)||(r=y),b&&e("focusin",v),!a.paused&&t.trapped&&(b?i=m:Qu(i,!0))},f=v=>{const g=h.unref(n);if(!(a.paused||!g))if(t.trapped){const m=v.relatedTarget;!vc(m)&&!g.contains(m)&&setTimeout(()=>{if(!a.paused&&t.trapped){const y=G1({focusReason:o.value});e("focusout-prevented",y),y.defaultPrevented||Qu(i,!0)}},0)}else{const m=v.target;m&&g.contains(m)||e("focusout",v)}};async function d(){await h.nextTick();const v=h.unref(n);if(v){NF.push(a);const g=v.contains(document.activeElement)?r:document.activeElement;if(r=g,!v.contains(g)){const y=new Event(U$,MF);v.addEventListener(U$,l),v.dispatchEvent(y),y.defaultPrevented||h.nextTick(()=>{let b=t.focusStartEl;Pi(b)||(Qu(b),document.activeElement!==b&&(b="first")),b==="first"&&mEe(Kee(v),!0),(document.activeElement===g||b==="container")&&Qu(v)})}}}function p(){const v=h.unref(n);if(v){v.removeEventListener(U$,l);const g=new CustomEvent(Z$,{...MF,detail:{focusReason:o.value}});v.addEventListener(Z$,u),v.dispatchEvent(g),!g.defaultPrevented&&(o.value=="keyboard"||!yEe()||v.contains(document.activeElement))&&Qu(r??document.body),v.removeEventListener(Z$,u),NF.remove(a)}}return h.onMounted(()=>{t.trapped&&d(),h.watch(()=>t.trapped,v=>{v?d():p()})}),h.onBeforeUnmount(()=>{t.trapped&&p()}),{onKeydown:s}}});function OEe(t,e,n,r,i,o){return h.renderSlot(t.$slots,"default",{handleKeydown:t.onKeydown})}var Jee=pn(_Ee,[["render",OEe],["__file","focus-trap.vue"]]);const wEe=["fixed","absolute"],xEe=Fn({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Xt(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:TL,default:"bottom"},popperOptions:{type:Xt(Object),default:()=>({})},strategy:{type:String,values:wEe,default:"absolute"}}),ete=Fn({...xEe,id:String,style:{type:Xt([String,Array,Object])},className:{type:Xt([String,Array,Object])},effect:{type:String,default:"dark"},visible:Boolean,enterable:{type:Boolean,default:!0},pure:Boolean,focusOnShow:{type:Boolean,default:!1},trapping:{type:Boolean,default:!1},popperClass:{type:Xt([String,Array,Object])},popperStyle:{type:Xt([String,Array,Object])},referenceEl:{type:Xt(Object)},triggerTargetEl:{type:Xt(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...xh(["ariaLabel"])}),SEe={mouseenter:t=>t instanceof MouseEvent,mouseleave:t=>t instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},CEe=(t,e=[])=>{const{placement:n,strategy:r,popperOptions:i}=t,o={placement:n,strategy:r,...i,modifiers:[...PEe(t),...e]};return $Ee(o,i==null?void 0:i.modifiers),o},TEe=t=>{if(dr)return tc(t)};function PEe(t){const{offset:e,gpuAcceleration:n,fallbackPlacements:r}=t;return[{name:"offset",options:{offset:[0,e??12]}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5,fallbackPlacements:r}},{name:"computeStyles",options:{gpuAcceleration:n}}]}function $Ee(t,e){e&&(t.modifiers=[...t.modifiers,...e??[]])}const AEe=0,EEe=t=>{const{popperInstanceRef:e,contentRef:n,triggerRef:r,role:i}=h.inject(kL,void 0),o=h.ref(),a=h.ref(),s=h.computed(()=>({name:"eventListeners",enabled:!!t.visible})),l=h.computed(()=>{var y;const b=h.unref(o),O=(y=h.unref(a))!=null?y:AEe;return{name:"arrow",enabled:!pee(b),options:{element:b,padding:O}}}),u=h.computed(()=>({onFirstUpdate:()=>{v()},...CEe(t,[h.unref(l),h.unref(s)])})),c=h.computed(()=>TEe(t.referenceEl)||h.unref(r)),{attributes:f,state:d,styles:p,update:v,forceUpdate:g,instanceRef:m}=G$e(c,n,u);return h.watch(m,y=>e.value=y),h.onMounted(()=>{h.watch(()=>{var y;return(y=h.unref(c))==null?void 0:y.getBoundingClientRect()},()=>{v()})}),{attributes:f,arrowRef:o,contentRef:n,instanceRef:m,state:d,styles:p,role:i,forceUpdate:g,update:v}},MEe=(t,{attributes:e,styles:n,role:r})=>{const{nextZIndex:i}=Fee(),o=an("popper"),a=h.computed(()=>h.unref(e).popper),s=h.ref(as(t.zIndex)?t.zIndex:i()),l=h.computed(()=>[o.b(),o.is("pure",t.pure),o.is(t.effect),t.popperClass]),u=h.computed(()=>[{zIndex:h.unref(s)},h.unref(n).popper,t.popperStyle||{}]),c=h.computed(()=>r.value==="dialog"?"false":void 0),f=h.computed(()=>h.unref(n).arrow||{});return{ariaModal:c,arrowStyle:f,contentAttrs:a,contentClass:l,contentStyle:u,contentZIndex:s,updateZIndex:()=>{s.value=as(t.zIndex)?t.zIndex:i()}}},IEe=(t,e)=>{const n=h.ref(!1),r=h.ref();return{focusStartRef:r,trapped:n,onFocusAfterReleased:u=>{var c;((c=u.detail)==null?void 0:c.focusReason)!=="pointer"&&(r.value="first",e("blur"))},onFocusAfterTrapped:()=>{e("focus")},onFocusInTrap:u=>{t.visible&&!n.value&&(u.target&&(r.value=u.target),n.value=!0)},onFocusoutPrevented:u=>{t.trapping||(u.detail.focusReason==="pointer"&&u.preventDefault(),n.value=!1)},onReleaseRequested:()=>{n.value=!1,e("close")}}},DEe=h.defineComponent({name:"ElPopperContent"}),REe=h.defineComponent({...DEe,props:ete,emits:SEe,setup(t,{expose:e,emit:n}){const r=t,{focusStartRef:i,trapped:o,onFocusAfterReleased:a,onFocusAfterTrapped:s,onFocusInTrap:l,onFocusoutPrevented:u,onReleaseRequested:c}=IEe(r,n),{attributes:f,arrowRef:d,contentRef:p,styles:v,instanceRef:g,role:m,update:y}=EEe(r),{ariaModal:b,arrowStyle:O,contentAttrs:w,contentClass:x,contentStyle:S,updateZIndex:T}=MEe(r,{styles:v,attributes:f,role:m}),$=h.inject(ky,void 0),A=h.ref();h.provide(jee,{arrowStyle:O,arrowRef:d,arrowOffset:A}),$&&h.provide(ky,{...$,addInputId:pc,removeInputId:pc});let P;const M=(R=!0)=>{y(),R&&T()},I=()=>{M(!1),r.visible&&r.focusOnShow?o.value=!0:r.visible===!1&&(o.value=!1)};return h.onMounted(()=>{h.watch(()=>r.triggerTargetEl,(R,L)=>{P==null||P(),P=void 0;const D=h.unref(R||p.value),B=h.unref(L||p.value);My(D)&&(P=h.watch([m,()=>r.ariaLabel,b,()=>r.id],F=>{["role","aria-label","aria-modal","id"].forEach((z,W)=>{vc(F[W])?D.removeAttribute(z):D.setAttribute(z,F[W])})},{immediate:!0})),B!==D&&My(B)&&["role","aria-label","aria-modal","id"].forEach(F=>{B.removeAttribute(F)})},{immediate:!0}),h.watch(()=>r.visible,I,{immediate:!0})}),h.onBeforeUnmount(()=>{P==null||P(),P=void 0}),e({popperContentRef:p,popperInstanceRef:g,updatePopper:M,contentStyle:S}),(R,L)=>(h.openBlock(),h.createElementBlock("div",h.mergeProps({ref_key:"contentRef",ref:p},h.unref(w),{style:h.unref(S),class:h.unref(x),tabindex:"-1",onMouseenter:L[0]||(L[0]=D=>R.$emit("mouseenter",D)),onMouseleave:L[1]||(L[1]=D=>R.$emit("mouseleave",D))}),[h.createVNode(h.unref(Jee),{trapped:h.unref(o),"trap-on-focus-in":!0,"focus-trap-el":h.unref(p),"focus-start-el":h.unref(i),onFocusAfterTrapped:h.unref(s),onFocusAfterReleased:h.unref(a),onFocusin:h.unref(l),onFocusoutPrevented:h.unref(u),onReleaseRequested:h.unref(c)},{default:h.withCtx(()=>[h.renderSlot(R.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var kEe=pn(REe,[["__file","content.vue"]]);const NEe=gu(rEe),BL=Symbol("elTooltip"),VL=Fn({...q$e,...ete,appendTo:{type:Xt([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,visible:{type:Xt(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...xh(["ariaLabel"])}),tte=Fn({...Yee,disabled:Boolean,trigger:{type:Xt([String,Array]),default:"hover"},triggerKeys:{type:Xt(Array),default:()=>[Ui.enter,Ui.space]}}),{useModelToggleProps:LEe,useModelToggleEmits:BEe,useModelToggle:VEe}=See("visible"),zEe=Fn({...Uee,...LEe,...VL,...tte,...Zee,showArrow:{type:Boolean,default:!0}}),FEe=[...BEe,"before-show","before-hide","show","hide","open","close"],WEe=(t,e)=>xv(t)?t.includes(e):t===e,np=(t,e,n)=>r=>{WEe(h.unref(t),e)&&n(r)},QEe=h.defineComponent({name:"ElTooltipTrigger"}),HEe=h.defineComponent({...QEe,props:tte,setup(t,{expose:e}){const n=t,r=an("tooltip"),{controlled:i,id:o,open:a,onOpen:s,onClose:l,onToggle:u}=h.inject(BL,void 0),c=h.ref(null),f=()=>{if(h.unref(i)||n.disabled)return!0},d=h.toRef(n,"trigger"),p=kl(f,np(d,"hover",s)),v=kl(f,np(d,"hover",l)),g=kl(f,np(d,"click",w=>{w.button===0&&u(w)})),m=kl(f,np(d,"focus",s)),y=kl(f,np(d,"focus",l)),b=kl(f,np(d,"contextmenu",w=>{w.preventDefault(),u(w)})),O=kl(f,w=>{const{code:x}=w;n.triggerKeys.includes(x)&&(w.preventDefault(),u(w))});return e({triggerRef:c}),(w,x)=>(h.openBlock(),h.createBlock(h.unref(cEe),{id:h.unref(o),"virtual-ref":w.virtualRef,open:h.unref(a),"virtual-triggering":w.virtualTriggering,class:h.normalizeClass(h.unref(r).e("trigger")),onBlur:h.unref(y),onClick:h.unref(g),onContextmenu:h.unref(b),onFocus:h.unref(m),onMouseenter:h.unref(p),onMouseleave:h.unref(v),onKeydown:h.unref(O)},{default:h.withCtx(()=>[h.renderSlot(w.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var GEe=pn(HEe,[["__file","trigger.vue"]]);const jEe=h.defineComponent({name:"ElTooltipContent",inheritAttrs:!1}),UEe=h.defineComponent({...jEe,props:VL,setup(t,{expose:e}){const n=t,{selector:r}=Vee(),i=an("tooltip"),o=h.ref(null),a=h.ref(!1),{controlled:s,id:l,open:u,trigger:c,onClose:f,onOpen:d,onShow:p,onHide:v,onBeforeShow:g,onBeforeHide:m}=h.inject(BL,void 0),y=h.computed(()=>n.transition||`${i.namespace.value}-fade-in-linear`),b=h.computed(()=>process.env.NODE_ENV==="test"?!0:n.persistent);h.onBeforeUnmount(()=>{a.value=!0});const O=h.computed(()=>h.unref(b)?!0:h.unref(u)),w=h.computed(()=>n.disabled?!1:h.unref(u)),x=h.computed(()=>n.appendTo||r.value),S=h.computed(()=>{var F;return(F=n.style)!=null?F:{}}),T=h.computed(()=>!h.unref(u)),$=()=>{v()},A=()=>{if(h.unref(s))return!0},P=kl(A,()=>{n.enterable&&h.unref(c)==="hover"&&d()}),M=kl(A,()=>{h.unref(c)==="hover"&&f()}),I=()=>{var F,z;(z=(F=o.value)==null?void 0:F.updatePopper)==null||z.call(F),g==null||g()},R=()=>{m==null||m()},L=()=>{p(),B=uwe(h.computed(()=>{var F;return(F=o.value)==null?void 0:F.popperContentRef}),()=>{if(h.unref(s))return;h.unref(c)!=="hover"&&f()})},D=()=>{n.virtualTriggering||f()};let B;return h.watch(()=>h.unref(u),F=>{F||B==null||B()},{flush:"post"}),h.watch(()=>n.content,()=>{var F,z;(z=(F=o.value)==null?void 0:F.updatePopper)==null||z.call(F)}),e({contentRef:o}),(F,z)=>(h.openBlock(),h.createBlock(h.Teleport,{disabled:!F.teleported,to:h.unref(x)},[h.createVNode(h.Transition,{name:h.unref(y),onAfterLeave:$,onBeforeEnter:I,onAfterEnter:L,onBeforeLeave:R},{default:h.withCtx(()=>[h.unref(O)?h.withDirectives((h.openBlock(),h.createBlock(h.unref(kEe),h.mergeProps({key:0,id:h.unref(l),ref_key:"contentRef",ref:o},F.$attrs,{"aria-label":F.ariaLabel,"aria-hidden":h.unref(T),"boundaries-padding":F.boundariesPadding,"fallback-placements":F.fallbackPlacements,"gpu-acceleration":F.gpuAcceleration,offset:F.offset,placement:F.placement,"popper-options":F.popperOptions,strategy:F.strategy,effect:F.effect,enterable:F.enterable,pure:F.pure,"popper-class":F.popperClass,"popper-style":[F.popperStyle,h.unref(S)],"reference-el":F.referenceEl,"trigger-target-el":F.triggerTargetEl,visible:h.unref(w),"z-index":F.zIndex,onMouseenter:h.unref(P),onMouseleave:h.unref(M),onBlur:D,onClose:h.unref(f)}),{default:h.withCtx(()=>[a.value?h.createCommentVNode("v-if",!0):h.renderSlot(F.$slots,"default",{key:0})]),_:3},16,["id","aria-label","aria-hidden","boundaries-padding","fallback-placements","gpu-acceleration","offset","placement","popper-options","strategy","effect","enterable","pure","popper-class","popper-style","reference-el","trigger-target-el","visible","z-index","onMouseenter","onMouseleave","onClose"])),[[h.vShow,h.unref(w)]]):h.createCommentVNode("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var ZEe=pn(UEe,[["__file","content.vue"]]);const XEe=["innerHTML"],YEe={key:1},qEe=h.defineComponent({name:"ElTooltip"}),KEe=h.defineComponent({...qEe,props:zEe,emits:FEe,setup(t,{expose:e,emit:n}){const r=t;Y$e();const i=Ry(),o=h.ref(),a=h.ref(),s=()=>{var y;const b=h.unref(o);b&&((y=b.popperInstanceRef)==null||y.update())},l=h.ref(!1),u=h.ref(),{show:c,hide:f,hasUpdateHandler:d}=VEe({indicator:l,toggleReason:u}),{onOpen:p,onClose:v}=K$e({showAfter:h.toRef(r,"showAfter"),hideAfter:h.toRef(r,"hideAfter"),autoClose:h.toRef(r,"autoClose"),open:c,close:f}),g=h.computed(()=>Pc(r.visible)&&!d.value);h.provide(BL,{controlled:g,id:i,open:h.readonly(l),trigger:h.toRef(r,"trigger"),onOpen:y=>{p(y)},onClose:y=>{v(y)},onToggle:y=>{h.unref(l)?v(y):p(y)},onShow:()=>{n("show",u.value)},onHide:()=>{n("hide",u.value)},onBeforeShow:()=>{n("before-show",u.value)},onBeforeHide:()=>{n("before-hide",u.value)},updatePopper:s}),h.watch(()=>r.disabled,y=>{y&&l.value&&(l.value=!1)});const m=y=>{var b,O;const w=(O=(b=a.value)==null?void 0:b.contentRef)==null?void 0:O.popperContentRef,x=(y==null?void 0:y.relatedTarget)||document.activeElement;return w&&w.contains(x)};return h.onDeactivated(()=>l.value&&f()),e({popperRef:o,contentRef:a,isFocusInsideContent:m,updatePopper:s,onOpen:p,onClose:v,hide:f}),(y,b)=>(h.openBlock(),h.createBlock(h.unref(NEe),{ref_key:"popperRef",ref:o,role:y.role},{default:h.withCtx(()=>[h.createVNode(GEe,{disabled:y.disabled,trigger:y.trigger,"trigger-keys":y.triggerKeys,"virtual-ref":y.virtualRef,"virtual-triggering":y.virtualTriggering},{default:h.withCtx(()=>[y.$slots.default?h.renderSlot(y.$slots,"default",{key:0}):h.createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),h.createVNode(ZEe,{ref_key:"contentRef",ref:a,"aria-label":y.ariaLabel,"boundaries-padding":y.boundariesPadding,content:y.content,disabled:y.disabled,effect:y.effect,enterable:y.enterable,"fallback-placements":y.fallbackPlacements,"hide-after":y.hideAfter,"gpu-acceleration":y.gpuAcceleration,offset:y.offset,persistent:y.persistent,"popper-class":y.popperClass,"popper-style":y.popperStyle,placement:y.placement,"popper-options":y.popperOptions,pure:y.pure,"raw-content":y.rawContent,"reference-el":y.referenceEl,"trigger-target-el":y.triggerTargetEl,"show-after":y.showAfter,strategy:y.strategy,teleported:y.teleported,transition:y.transition,"virtual-triggering":y.virtualTriggering,"z-index":y.zIndex,"append-to":y.appendTo},{default:h.withCtx(()=>[h.renderSlot(y.$slots,"content",{},()=>[y.rawContent?(h.openBlock(),h.createElementBlock("span",{key:0,innerHTML:y.content},null,8,XEe)):(h.openBlock(),h.createElementBlock("span",YEe,h.toDisplayString(y.content),1))]),y.showArrow?(h.openBlock(),h.createBlock(h.unref(aEe),{key:0,"arrow-offset":y.arrowOffset},null,8,["arrow-offset"])):h.createCommentVNode("v-if",!0)]),_:3},8,["aria-label","boundaries-padding","content","disabled","effect","enterable","fallback-placements","hide-after","gpu-acceleration","offset","persistent","popper-class","popper-style","placement","popper-options","pure","raw-content","reference-el","trigger-target-el","show-after","strategy","teleported","transition","virtual-triggering","z-index","append-to"])]),_:3},8,["role"]))}});var JEe=pn(KEe,[["__file","tooltip.vue"]]);const eMe=gu(JEe),nte=Symbol("buttonGroupContextKey"),tMe=(t,e)=>{Xa({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},h.computed(()=>t.type==="text"));const n=h.inject(nte,void 0),r=Qee("button"),{form:i}=Sh(),o=Lv(h.computed(()=>n==null?void 0:n.size)),a=bg(),s=h.ref(),l=h.useSlots(),u=h.computed(()=>t.type||(n==null?void 0:n.type)||""),c=h.computed(()=>{var v,g,m;return(m=(g=t.autoInsertSpace)!=null?g:(v=r.value)==null?void 0:v.autoInsertSpace)!=null?m:!1}),f=h.computed(()=>t.tag==="button"?{ariaDisabled:a.value||t.loading,disabled:a.value||t.loading,autofocus:t.autofocus,type:t.nativeType}:{}),d=h.computed(()=>{var v;const g=(v=l.default)==null?void 0:v.call(l);if(c.value&&(g==null?void 0:g.length)===1){const m=g[0];if((m==null?void 0:m.type)===h.Text){const y=m.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(y.trim())}}return!1});return{_disabled:a,_size:o,_type:u,_ref:s,_props:f,shouldAddSpace:d,handleClick:v=>{t.nativeType==="reset"&&(i==null||i.resetFields()),e("click",v)}}},nMe=["default","primary","success","warning","info","danger","text",""],rMe=["button","submit","reset"],lD=Fn({size:wh,disabled:Boolean,type:{type:String,values:nMe,default:""},icon:{type:Mv},nativeType:{type:String,values:rMe,default:"button"},loading:Boolean,loadingIcon:{type:Mv,default:()=>wL},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:Xt([String,Object]),default:"button"}}),iMe={click:t=>t instanceof MouseEvent};function Zr(t,e){oMe(t)&&(t="100%");var n=aMe(t);return t=e===360?t:Math.min(e,Math.max(0,parseFloat(t))),n&&(t=parseInt(String(t*e),10)/100),Math.abs(t-e)<1e-6?1:(e===360?t=(t<0?t%e+e:t%e)/parseFloat(String(e)):t=t%e/parseFloat(String(e)),t)}function j1(t){return Math.min(1,Math.max(0,t))}function oMe(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function aMe(t){return typeof t=="string"&&t.indexOf("%")!==-1}function rte(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function U1(t){return t<=1?"".concat(Number(t)*100,"%"):t}function gd(t){return t.length===1?"0"+t:String(t)}function sMe(t,e,n){return{r:Zr(t,255)*255,g:Zr(e,255)*255,b:Zr(n,255)*255}}function BF(t,e,n){t=Zr(t,255),e=Zr(e,255),n=Zr(n,255);var r=Math.max(t,e,n),i=Math.min(t,e,n),o=0,a=0,s=(r+i)/2;if(r===i)a=0,o=0;else{var l=r-i;switch(a=s>.5?l/(2-r-i):l/(r+i),r){case t:o=(e-n)/l+(e<n?6:0);break;case e:o=(n-t)/l+2;break;case n:o=(t-e)/l+4;break}o/=6}return{h:o,s:a,l:s}}function X$(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*(6*n):n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function lMe(t,e,n){var r,i,o;if(t=Zr(t,360),e=Zr(e,100),n=Zr(n,100),e===0)i=n,o=n,r=n;else{var a=n<.5?n*(1+e):n+e-n*e,s=2*n-a;r=X$(s,a,t+1/3),i=X$(s,a,t),o=X$(s,a,t-1/3)}return{r:r*255,g:i*255,b:o*255}}function uD(t,e,n){t=Zr(t,255),e=Zr(e,255),n=Zr(n,255);var r=Math.max(t,e,n),i=Math.min(t,e,n),o=0,a=r,s=r-i,l=r===0?0:s/r;if(r===i)o=0;else{switch(r){case t:o=(e-n)/s+(e<n?6:0);break;case e:o=(n-t)/s+2;break;case n:o=(t-e)/s+4;break}o/=6}return{h:o,s:l,v:a}}function uMe(t,e,n){t=Zr(t,360)*6,e=Zr(e,100),n=Zr(n,100);var r=Math.floor(t),i=t-r,o=n*(1-e),a=n*(1-i*e),s=n*(1-(1-i)*e),l=r%6,u=[n,a,o,o,s,n][l],c=[s,n,n,a,o,o][l],f=[o,o,s,n,n,a][l];return{r:u*255,g:c*255,b:f*255}}function cD(t,e,n,r){var i=[gd(Math.round(t).toString(16)),gd(Math.round(e).toString(16)),gd(Math.round(n).toString(16))];return r&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function cMe(t,e,n,r,i){var o=[gd(Math.round(t).toString(16)),gd(Math.round(e).toString(16)),gd(Math.round(n).toString(16)),gd(fMe(r))];return i&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))&&o[3].startsWith(o[3].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0):o.join("")}function fMe(t){return Math.round(parseFloat(t)*255).toString(16)}function VF(t){return wo(t)/255}function wo(t){return parseInt(t,16)}function dMe(t){return{r:t>>16,g:(t&65280)>>8,b:t&255}}var fD={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Rp(t){var e={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;return typeof t=="string"&&(t=vMe(t)),typeof t=="object"&&(El(t.r)&&El(t.g)&&El(t.b)?(e=sMe(t.r,t.g,t.b),a=!0,s=String(t.r).substr(-1)==="%"?"prgb":"rgb"):El(t.h)&&El(t.s)&&El(t.v)?(r=U1(t.s),i=U1(t.v),e=uMe(t.h,r,i),a=!0,s="hsv"):El(t.h)&&El(t.s)&&El(t.l)&&(r=U1(t.s),o=U1(t.l),e=lMe(t.h,r,o),a=!0,s="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(n=t.a)),n=rte(n),{ok:a,format:t.format||s,r:Math.min(255,Math.max(e.r,0)),g:Math.min(255,Math.max(e.g,0)),b:Math.min(255,Math.max(e.b,0)),a:n}}var hMe="[-\\+]?\\d+%?",pMe="[-\\+]?\\d*\\.\\d+%?",nc="(?:".concat(pMe,")|(?:").concat(hMe,")"),Y$="[\\s|\\(]+(".concat(nc,")[,|\\s]+(").concat(nc,")[,|\\s]+(").concat(nc,")\\s*\\)?"),q$="[\\s|\\(]+(".concat(nc,")[,|\\s]+(").concat(nc,")[,|\\s]+(").concat(nc,")[,|\\s]+(").concat(nc,")\\s*\\)?"),Qa={CSS_UNIT:new RegExp(nc),rgb:new RegExp("rgb"+Y$),rgba:new RegExp("rgba"+q$),hsl:new RegExp("hsl"+Y$),hsla:new RegExp("hsla"+q$),hsv:new RegExp("hsv"+Y$),hsva:new RegExp("hsva"+q$),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function vMe(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;var e=!1;if(fD[t])t=fD[t],e=!0;else if(t==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=Qa.rgb.exec(t);return n?{r:n[1],g:n[2],b:n[3]}:(n=Qa.rgba.exec(t),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=Qa.hsl.exec(t),n?{h:n[1],s:n[2],l:n[3]}:(n=Qa.hsla.exec(t),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=Qa.hsv.exec(t),n?{h:n[1],s:n[2],v:n[3]}:(n=Qa.hsva.exec(t),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=Qa.hex8.exec(t),n?{r:wo(n[1]),g:wo(n[2]),b:wo(n[3]),a:VF(n[4]),format:e?"name":"hex8"}:(n=Qa.hex6.exec(t),n?{r:wo(n[1]),g:wo(n[2]),b:wo(n[3]),format:e?"name":"hex"}:(n=Qa.hex4.exec(t),n?{r:wo(n[1]+n[1]),g:wo(n[2]+n[2]),b:wo(n[3]+n[3]),a:VF(n[4]+n[4]),format:e?"name":"hex8"}:(n=Qa.hex3.exec(t),n?{r:wo(n[1]+n[1]),g:wo(n[2]+n[2]),b:wo(n[3]+n[3]),format:e?"name":"hex"}:!1)))))))))}function El(t){return!!Qa.CSS_UNIT.exec(String(t))}var _n=function(){function t(e,n){e===void 0&&(e=""),n===void 0&&(n={});var r;if(e instanceof t)return e;typeof e=="number"&&(e=dMe(e)),this.originalInput=e;var i=Rp(e);this.originalInput=e,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=n.format)!==null&&r!==void 0?r:i.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return t.prototype.isDark=function(){return this.getBrightness()<128},t.prototype.isLight=function(){return!this.isDark()},t.prototype.getBrightness=function(){var e=this.toRgb();return(e.r*299+e.g*587+e.b*114)/1e3},t.prototype.getLuminance=function(){var e=this.toRgb(),n,r,i,o=e.r/255,a=e.g/255,s=e.b/255;return o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),.2126*n+.7152*r+.0722*i},t.prototype.getAlpha=function(){return this.a},t.prototype.setAlpha=function(e){return this.a=rte(e),this.roundA=Math.round(100*this.a)/100,this},t.prototype.isMonochrome=function(){var e=this.toHsl().s;return e===0},t.prototype.toHsv=function(){var e=uD(this.r,this.g,this.b);return{h:e.h*360,s:e.s,v:e.v,a:this.a}},t.prototype.toHsvString=function(){var e=uD(this.r,this.g,this.b),n=Math.round(e.h*360),r=Math.round(e.s*100),i=Math.round(e.v*100);return this.a===1?"hsv(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsva(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},t.prototype.toHsl=function(){var e=BF(this.r,this.g,this.b);return{h:e.h*360,s:e.s,l:e.l,a:this.a}},t.prototype.toHslString=function(){var e=BF(this.r,this.g,this.b),n=Math.round(e.h*360),r=Math.round(e.s*100),i=Math.round(e.l*100);return this.a===1?"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)"):"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(this.roundA,")")},t.prototype.toHex=function(e){return e===void 0&&(e=!1),cD(this.r,this.g,this.b,e)},t.prototype.toHexString=function(e){return e===void 0&&(e=!1),"#"+this.toHex(e)},t.prototype.toHex8=function(e){return e===void 0&&(e=!1),cMe(this.r,this.g,this.b,this.a,e)},t.prototype.toHex8String=function(e){return e===void 0&&(e=!1),"#"+this.toHex8(e)},t.prototype.toHexShortString=function(e){return e===void 0&&(e=!1),this.a===1?this.toHexString(e):this.toHex8String(e)},t.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},t.prototype.toRgbString=function(){var e=Math.round(this.r),n=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(e,", ").concat(n,", ").concat(r,")"):"rgba(".concat(e,", ").concat(n,", ").concat(r,", ").concat(this.roundA,")")},t.prototype.toPercentageRgb=function(){var e=function(n){return"".concat(Math.round(Zr(n,255)*100),"%")};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},t.prototype.toPercentageRgbString=function(){var e=function(n){return Math.round(Zr(n,255)*100)};return this.a===1?"rgb(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%)"):"rgba(".concat(e(this.r),"%, ").concat(e(this.g),"%, ").concat(e(this.b),"%, ").concat(this.roundA,")")},t.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var e="#"+cD(this.r,this.g,this.b,!1),n=0,r=Object.entries(fD);n<r.length;n++){var i=r[n],o=i[0],a=i[1];if(e===a)return o}return!1},t.prototype.toString=function(e){var n=!!e;e=e??this.format;var r=!1,i=this.a<1&&this.a>=0,o=!n&&i&&(e.startsWith("hex")||e==="name");return o?e==="name"&&this.a===0?this.toName():this.toRgbString():(e==="rgb"&&(r=this.toRgbString()),e==="prgb"&&(r=this.toPercentageRgbString()),(e==="hex"||e==="hex6")&&(r=this.toHexString()),e==="hex3"&&(r=this.toHexString(!0)),e==="hex4"&&(r=this.toHex8String(!0)),e==="hex8"&&(r=this.toHex8String()),e==="name"&&(r=this.toName()),e==="hsl"&&(r=this.toHslString()),e==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},t.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},t.prototype.clone=function(){return new t(this.toString())},t.prototype.lighten=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l+=e/100,n.l=j1(n.l),new t(n)},t.prototype.brighten=function(e){e===void 0&&(e=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(255*-(e/100)))),n.g=Math.max(0,Math.min(255,n.g-Math.round(255*-(e/100)))),n.b=Math.max(0,Math.min(255,n.b-Math.round(255*-(e/100)))),new t(n)},t.prototype.darken=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.l-=e/100,n.l=j1(n.l),new t(n)},t.prototype.tint=function(e){return e===void 0&&(e=10),this.mix("white",e)},t.prototype.shade=function(e){return e===void 0&&(e=10),this.mix("black",e)},t.prototype.desaturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s-=e/100,n.s=j1(n.s),new t(n)},t.prototype.saturate=function(e){e===void 0&&(e=10);var n=this.toHsl();return n.s+=e/100,n.s=j1(n.s),new t(n)},t.prototype.greyscale=function(){return this.desaturate(100)},t.prototype.spin=function(e){var n=this.toHsl(),r=(n.h+e)%360;return n.h=r<0?360+r:r,new t(n)},t.prototype.mix=function(e,n){n===void 0&&(n=50);var r=this.toRgb(),i=new t(e).toRgb(),o=n/100,a={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return new t(a)},t.prototype.analogous=function(e,n){e===void 0&&(e=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,o=[this];for(r.h=(r.h-(i*e>>1)+720)%360;--e;)r.h=(r.h+i)%360,o.push(new t(r));return o},t.prototype.complement=function(){var e=this.toHsl();return e.h=(e.h+180)%360,new t(e)},t.prototype.monochromatic=function(e){e===void 0&&(e=6);for(var n=this.toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/e;e--;)a.push(new t({h:r,s:i,v:o})),o=(o+s)%1;return a},t.prototype.splitcomplement=function(){var e=this.toHsl(),n=e.h;return[this,new t({h:(n+72)%360,s:e.s,l:e.l}),new t({h:(n+216)%360,s:e.s,l:e.l})]},t.prototype.onBackground=function(e){var n=this.toRgb(),r=new t(e).toRgb(),i=n.a+r.a*(1-n.a);return new t({r:(n.r*n.a+r.r*r.a*(1-n.a))/i,g:(n.g*n.a+r.g*r.a*(1-n.a))/i,b:(n.b*n.a+r.b*r.a*(1-n.a))/i,a:i})},t.prototype.triad=function(){return this.polyad(3)},t.prototype.tetrad=function(){return this.polyad(4)},t.prototype.polyad=function(e){for(var n=this.toHsl(),r=n.h,i=[this],o=360/e,a=1;a<e;a++)i.push(new t({h:(r+a*o)%360,s:n.s,l:n.l}));return i},t.prototype.equals=function(e){return this.toRgbString()===new t(e).toRgbString()},t}();function Du(t,e=20){return t.mix("#141414",e).toString()}function gMe(t){const e=bg(),n=an("button");return h.computed(()=>{let r={},i=t.color;if(i){const o=i.match(/var\((.*?)\)/);o&&(i=window.getComputedStyle(window.document.documentElement).getPropertyValue(o[1]));const a=new _n(i),s=t.dark?a.tint(20).toString():Du(a,20);if(t.plain)r=n.cssVarBlock({"bg-color":t.dark?Du(a,90):a.tint(90).toString(),"text-color":i,"border-color":t.dark?Du(a,50):a.tint(50).toString(),"hover-text-color":`var(${n.cssVarName("color-white")})`,"hover-bg-color":i,"hover-border-color":i,"active-bg-color":s,"active-text-color":`var(${n.cssVarName("color-white")})`,"active-border-color":s}),e.value&&(r[n.cssVarBlockName("disabled-bg-color")]=t.dark?Du(a,90):a.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=t.dark?Du(a,50):a.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=t.dark?Du(a,80):a.tint(80).toString());else{const l=t.dark?Du(a,30):a.tint(30).toString(),u=a.isDark()?`var(${n.cssVarName("color-white")})`:`var(${n.cssVarName("color-black")})`;if(r=n.cssVarBlock({"bg-color":i,"text-color":u,"border-color":i,"hover-bg-color":l,"hover-text-color":u,"hover-border-color":l,"active-bg-color":s,"active-border-color":s}),e.value){const c=t.dark?Du(a,50):a.tint(50).toString();r[n.cssVarBlockName("disabled-bg-color")]=c,r[n.cssVarBlockName("disabled-text-color")]=t.dark?"rgba(255, 255, 255, 0.5)":`var(${n.cssVarName("color-white")})`,r[n.cssVarBlockName("disabled-border-color")]=c}}}return r})}const mMe=h.defineComponent({name:"ElButton"}),yMe=h.defineComponent({...mMe,props:lD,emits:iMe,setup(t,{expose:e,emit:n}){const r=t,i=gMe(r),o=an("button"),{_ref:a,_size:s,_type:l,_disabled:u,_props:c,shouldAddSpace:f,handleClick:d}=tMe(r,n),p=h.computed(()=>[o.b(),o.m(l.value),o.m(s.value),o.is("disabled",u.value),o.is("loading",r.loading),o.is("plain",r.plain),o.is("round",r.round),o.is("circle",r.circle),o.is("text",r.text),o.is("link",r.link),o.is("has-bg",r.bg)]);return e({ref:a,size:s,type:l,disabled:u,shouldAddSpace:f}),(v,g)=>(h.openBlock(),h.createBlock(h.resolveDynamicComponent(v.tag),h.mergeProps({ref_key:"_ref",ref:a},h.unref(c),{class:h.unref(p),style:h.unref(i),onClick:h.unref(d)}),{default:h.withCtx(()=>[v.loading?(h.openBlock(),h.createElementBlock(h.Fragment,{key:0},[v.$slots.loading?h.renderSlot(v.$slots,"loading",{key:0}):(h.openBlock(),h.createBlock(h.unref(Za),{key:1,class:h.normalizeClass(h.unref(o).is("loading"))},{default:h.withCtx(()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(v.loadingIcon)))]),_:1},8,["class"]))],64)):v.icon||v.$slots.icon?(h.openBlock(),h.createBlock(h.unref(Za),{key:1},{default:h.withCtx(()=>[v.icon?(h.openBlock(),h.createBlock(h.resolveDynamicComponent(v.icon),{key:0})):h.renderSlot(v.$slots,"icon",{key:1})]),_:3})):h.createCommentVNode("v-if",!0),v.$slots.default?(h.openBlock(),h.createElementBlock("span",{key:2,class:h.normalizeClass({[h.unref(o).em("text","expand")]:h.unref(f)})},[h.renderSlot(v.$slots,"default")],2)):h.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var bMe=pn(yMe,[["__file","button.vue"]]);const _Me={size:lD.size,type:lD.type},OMe=h.defineComponent({name:"ElButtonGroup"}),wMe=h.defineComponent({...OMe,props:_Me,setup(t){const e=t;h.provide(nte,h.reactive({size:h.toRef(e,"size"),type:h.toRef(e,"type")}));const n=an("button");return(r,i)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(`${h.unref(n).b("group")}`)},[h.renderSlot(r.$slots,"default")],2))}});var ite=pn(wMe,[["__file","button-group.vue"]]);const dD=gu(bMe,{ButtonGroup:ite});Ub(ite);var zl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bT(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}const Hu=new Map;let zF;dr&&(document.addEventListener("mousedown",t=>zF=t),document.addEventListener("mouseup",t=>{for(const e of Hu.values())for(const{documentHandler:n}of e)n(t,zF)}));function FF(t,e){let n=[];return Array.isArray(e.arg)?n=e.arg:My(e.arg)&&n.push(e.arg),function(r,i){const o=e.instance.popperRef,a=r.target,s=i==null?void 0:i.target,l=!e||!e.instance,u=!a||!s,c=t.contains(a)||t.contains(s),f=t===a,d=n.length&&n.some(v=>v==null?void 0:v.contains(a))||n.length&&n.includes(s),p=o&&(o.contains(a)||o.contains(s));l||u||c||f||d||p||e.value(r,i)}}const xMe={beforeMount(t,e){Hu.has(t)||Hu.set(t,[]),Hu.get(t).push({documentHandler:FF(t,e),bindingFn:e.value})},updated(t,e){Hu.has(t)||Hu.set(t,[]);const n=Hu.get(t),r=n.findIndex(o=>o.bindingFn===e.oldValue),i={documentHandler:FF(t,e),bindingFn:e.value};r>=0?n.splice(r,1,i):n.push(i)},unmounted(t){Hu.delete(t)}},ote={modelValue:{type:[Number,String,Boolean],default:void 0},label:{type:[String,Boolean,Number,Object],default:void 0},value:{type:[String,Boolean,Number,Object],default:void 0},indeterminate:Boolean,disabled:Boolean,checked:Boolean,name:{type:String,default:void 0},trueValue:{type:[String,Number],default:void 0},falseValue:{type:[String,Number],default:void 0},trueLabel:{type:[String,Number],default:void 0},falseLabel:{type:[String,Number],default:void 0},id:{type:String,default:void 0},controls:{type:String,default:void 0},border:Boolean,size:wh,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},...xh(["ariaControls"])},ate={[Di]:t=>Pi(t)||as(t)||Pc(t),change:t=>Pi(t)||as(t)||Pc(t)},_g=Symbol("checkboxGroupContextKey"),SMe=({model:t,isChecked:e})=>{const n=h.inject(_g,void 0),r=h.computed(()=>{var o,a;const s=(o=n==null?void 0:n.max)==null?void 0:o.value,l=(a=n==null?void 0:n.min)==null?void 0:a.value;return!Xx(s)&&t.value.length>=s&&!e.value||!Xx(l)&&t.value.length<=l&&e.value});return{isDisabled:bg(h.computed(()=>(n==null?void 0:n.disabled.value)||r.value)),isLimitDisabled:r}},CMe=(t,{model:e,isLimitExceeded:n,hasOwnLabel:r,isDisabled:i,isLabeledByFormItem:o})=>{const a=h.inject(_g,void 0),{formItem:s}=Sh(),{emit:l}=h.getCurrentInstance();function u(v){var g,m,y,b;return[!0,t.trueValue,t.trueLabel].includes(v)?(m=(g=t.trueValue)!=null?g:t.trueLabel)!=null?m:!0:(b=(y=t.falseValue)!=null?y:t.falseLabel)!=null?b:!1}function c(v,g){l("change",u(v),g)}function f(v){if(n.value)return;const g=v.target;l("change",u(g.checked),v)}async function d(v){n.value||!r.value&&!i.value&&o.value&&(v.composedPath().some(y=>y.tagName==="LABEL")||(e.value=u([!1,t.falseValue,t.falseLabel].includes(e.value)),await h.nextTick(),c(e.value,v)))}const p=h.computed(()=>(a==null?void 0:a.validateEvent)||t.validateEvent);return h.watch(()=>t.modelValue,()=>{p.value&&(s==null||s.validate("change").catch(v=>ci(v)))}),{handleChange:f,onClickRoot:d}},TMe=t=>{const e=h.ref(!1),{emit:n}=h.getCurrentInstance(),r=h.inject(_g,void 0),i=h.computed(()=>Xx(r)===!1),o=h.ref(!1),a=h.computed({get(){var s,l;return i.value?(s=r==null?void 0:r.modelValue)==null?void 0:s.value:(l=t.modelValue)!=null?l:e.value},set(s){var l,u;i.value&&xv(s)?(o.value=((l=r==null?void 0:r.max)==null?void 0:l.value)!==void 0&&s.length>(r==null?void 0:r.max.value)&&s.length>a.value.length,o.value===!1&&((u=r==null?void 0:r.changeEvent)==null||u.call(r,s))):(n(Di,s),e.value=s)}});return{model:a,isGroup:i,isLimitExceeded:o}},PMe=(t,e,{model:n})=>{const r=h.inject(_g,void 0),i=h.ref(!1),o=h.computed(()=>Av(t.value)?t.label:t.value),a=h.computed(()=>{const c=n.value;return Pc(c)?c:xv(c)?qd(o.value)?c.map(h.toRaw).some(f=>jb(f,o.value)):c.map(h.toRaw).includes(o.value):c!=null?c===t.trueValue||c===t.trueLabel:!!c}),s=Lv(h.computed(()=>{var c;return(c=r==null?void 0:r.size)==null?void 0:c.value}),{prop:!0}),l=Lv(h.computed(()=>{var c;return(c=r==null?void 0:r.size)==null?void 0:c.value})),u=h.computed(()=>!!e.default||!Av(o.value));return{checkboxButtonSize:s,isChecked:a,isFocused:i,checkboxSize:l,hasOwnLabel:u,actualValue:o}},ste=(t,e)=>{const{formItem:n}=Sh(),{model:r,isGroup:i,isLimitExceeded:o}=TMe(t),{isFocused:a,isChecked:s,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c,actualValue:f}=PMe(t,e,{model:r}),{isDisabled:d}=SMe({model:r,isChecked:s}),{inputId:p,isLabeledByFormItem:v}=Yb(t,{formItemContext:n,disableIdGeneration:c,disableIdManagement:i}),{handleChange:g,onClickRoot:m}=CMe(t,{model:r,isLimitExceeded:o,hasOwnLabel:c,isDisabled:d,isLabeledByFormItem:v});return(()=>{function b(){var O,w;xv(r.value)&&!r.value.includes(f.value)?r.value.push(f.value):r.value=(w=(O=t.trueValue)!=null?O:t.trueLabel)!=null?w:!0}t.checked&&b()})(),Xa({from:"controls",replacement:"aria-controls",version:"2.8.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},h.computed(()=>!!t.controls)),Xa({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},h.computed(()=>i.value&&Av(t.value))),Xa({from:"true-label",replacement:"true-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},h.computed(()=>!!t.trueLabel)),Xa({from:"false-label",replacement:"false-value",version:"3.0.0",scope:"el-checkbox",ref:"https://element-plus.org/en-US/component/checkbox.html"},h.computed(()=>!!t.falseLabel)),{inputId:p,isLabeledByFormItem:v,isChecked:s,isDisabled:d,isFocused:a,checkboxButtonSize:l,checkboxSize:u,hasOwnLabel:c,model:r,actualValue:f,handleChange:g,onClickRoot:m}},$Me=["id","indeterminate","name","tabindex","disabled","true-value","false-value"],AMe=["id","indeterminate","disabled","value","name","tabindex"],EMe=h.defineComponent({name:"ElCheckbox"}),MMe=h.defineComponent({...EMe,props:ote,emits:ate,setup(t){const e=t,n=h.useSlots(),{inputId:r,isLabeledByFormItem:i,isChecked:o,isDisabled:a,isFocused:s,checkboxSize:l,hasOwnLabel:u,model:c,actualValue:f,handleChange:d,onClickRoot:p}=ste(e,n),v=an("checkbox"),g=h.computed(()=>[v.b(),v.m(l.value),v.is("disabled",a.value),v.is("bordered",e.border),v.is("checked",o.value)]),m=h.computed(()=>[v.e("input"),v.is("disabled",a.value),v.is("checked",o.value),v.is("indeterminate",e.indeterminate),v.is("focus",s.value)]);return(y,b)=>(h.openBlock(),h.createBlock(h.resolveDynamicComponent(!h.unref(u)&&h.unref(i)?"span":"label"),{class:h.normalizeClass(h.unref(g)),"aria-controls":y.indeterminate?y.controls||y.ariaControls:null,onClick:h.unref(p)},{default:h.withCtx(()=>{var O,w;return[h.createElementVNode("span",{class:h.normalizeClass(h.unref(m))},[y.trueValue||y.falseValue||y.trueLabel||y.falseLabel?h.withDirectives((h.openBlock(),h.createElementBlock("input",{key:0,id:h.unref(r),"onUpdate:modelValue":b[0]||(b[0]=x=>h.isRef(c)?c.value=x:null),class:h.normalizeClass(h.unref(v).e("original")),type:"checkbox",indeterminate:y.indeterminate,name:y.name,tabindex:y.tabindex,disabled:h.unref(a),"true-value":(O=y.trueValue)!=null?O:y.trueLabel,"false-value":(w=y.falseValue)!=null?w:y.falseLabel,onChange:b[1]||(b[1]=(...x)=>h.unref(d)&&h.unref(d)(...x)),onFocus:b[2]||(b[2]=x=>s.value=!0),onBlur:b[3]||(b[3]=x=>s.value=!1),onClick:b[4]||(b[4]=h.withModifiers(()=>{},["stop"]))},null,42,$Me)),[[h.vModelCheckbox,h.unref(c)]]):h.withDirectives((h.openBlock(),h.createElementBlock("input",{key:1,id:h.unref(r),"onUpdate:modelValue":b[5]||(b[5]=x=>h.isRef(c)?c.value=x:null),class:h.normalizeClass(h.unref(v).e("original")),type:"checkbox",indeterminate:y.indeterminate,disabled:h.unref(a),value:h.unref(f),name:y.name,tabindex:y.tabindex,onChange:b[6]||(b[6]=(...x)=>h.unref(d)&&h.unref(d)(...x)),onFocus:b[7]||(b[7]=x=>s.value=!0),onBlur:b[8]||(b[8]=x=>s.value=!1),onClick:b[9]||(b[9]=h.withModifiers(()=>{},["stop"]))},null,42,AMe)),[[h.vModelCheckbox,h.unref(c)]]),h.createElementVNode("span",{class:h.normalizeClass(h.unref(v).e("inner"))},null,2)],2),h.unref(u)?(h.openBlock(),h.createElementBlock("span",{key:0,class:h.normalizeClass(h.unref(v).e("label"))},[h.renderSlot(y.$slots,"default"),y.$slots.default?h.createCommentVNode("v-if",!0):(h.openBlock(),h.createElementBlock(h.Fragment,{key:0},[h.createTextVNode(h.toDisplayString(y.label),1)],64))],2)):h.createCommentVNode("v-if",!0)]}),_:3},8,["class","aria-controls","onClick"]))}});var IMe=pn(MMe,[["__file","checkbox.vue"]]);const DMe=["name","tabindex","disabled","true-value","false-value"],RMe=["name","tabindex","disabled","value"],kMe=h.defineComponent({name:"ElCheckboxButton"}),NMe=h.defineComponent({...kMe,props:ote,emits:ate,setup(t){const e=t,n=h.useSlots(),{isFocused:r,isChecked:i,isDisabled:o,checkboxButtonSize:a,model:s,actualValue:l,handleChange:u}=ste(e,n),c=h.inject(_g,void 0),f=an("checkbox"),d=h.computed(()=>{var v,g,m,y;const b=(g=(v=c==null?void 0:c.fill)==null?void 0:v.value)!=null?g:"";return{backgroundColor:b,borderColor:b,color:(y=(m=c==null?void 0:c.textColor)==null?void 0:m.value)!=null?y:"",boxShadow:b?`-1px 0 0 0 ${b}`:void 0}}),p=h.computed(()=>[f.b("button"),f.bm("button",a.value),f.is("disabled",o.value),f.is("checked",i.value),f.is("focus",r.value)]);return(v,g)=>{var m,y;return h.openBlock(),h.createElementBlock("label",{class:h.normalizeClass(h.unref(p))},[v.trueValue||v.falseValue||v.trueLabel||v.falseLabel?h.withDirectives((h.openBlock(),h.createElementBlock("input",{key:0,"onUpdate:modelValue":g[0]||(g[0]=b=>h.isRef(s)?s.value=b:null),class:h.normalizeClass(h.unref(f).be("button","original")),type:"checkbox",name:v.name,tabindex:v.tabindex,disabled:h.unref(o),"true-value":(m=v.trueValue)!=null?m:v.trueLabel,"false-value":(y=v.falseValue)!=null?y:v.falseLabel,onChange:g[1]||(g[1]=(...b)=>h.unref(u)&&h.unref(u)(...b)),onFocus:g[2]||(g[2]=b=>r.value=!0),onBlur:g[3]||(g[3]=b=>r.value=!1),onClick:g[4]||(g[4]=h.withModifiers(()=>{},["stop"]))},null,42,DMe)),[[h.vModelCheckbox,h.unref(s)]]):h.withDirectives((h.openBlock(),h.createElementBlock("input",{key:1,"onUpdate:modelValue":g[5]||(g[5]=b=>h.isRef(s)?s.value=b:null),class:h.normalizeClass(h.unref(f).be("button","original")),type:"checkbox",name:v.name,tabindex:v.tabindex,disabled:h.unref(o),value:h.unref(l),onChange:g[6]||(g[6]=(...b)=>h.unref(u)&&h.unref(u)(...b)),onFocus:g[7]||(g[7]=b=>r.value=!0),onBlur:g[8]||(g[8]=b=>r.value=!1),onClick:g[9]||(g[9]=h.withModifiers(()=>{},["stop"]))},null,42,RMe)),[[h.vModelCheckbox,h.unref(s)]]),v.$slots.default||v.label?(h.openBlock(),h.createElementBlock("span",{key:2,class:h.normalizeClass(h.unref(f).be("button","inner")),style:h.normalizeStyle(h.unref(i)?h.unref(d):void 0)},[h.renderSlot(v.$slots,"default",{},()=>[h.createTextVNode(h.toDisplayString(v.label),1)])],6)):h.createCommentVNode("v-if",!0)],2)}}});var lte=pn(NMe,[["__file","checkbox-button.vue"]]);const LMe=Fn({modelValue:{type:Xt(Array),default:()=>[]},disabled:Boolean,min:Number,max:Number,size:wh,label:String,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},...xh(["ariaLabel"])}),BMe={[Di]:t=>xv(t),change:t=>xv(t)},VMe=h.defineComponent({name:"ElCheckboxGroup"}),zMe=h.defineComponent({...VMe,props:LMe,emits:BMe,setup(t,{emit:e}){const n=t,r=an("checkbox"),{formItem:i}=Sh(),{inputId:o,isLabeledByFormItem:a}=Yb(n,{formItemContext:i}),s=async u=>{e(Di,u),await h.nextTick(),e("change",u)},l=h.computed({get(){return n.modelValue},set(u){s(u)}});return h.provide(_g,{...$v(h.toRefs(n),["size","min","max","disabled","validateEvent","fill","textColor"]),modelValue:l,changeEvent:s}),Xa({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-checkbox-group",ref:"https://element-plus.org/en-US/component/checkbox.html"},h.computed(()=>!!n.label)),h.watch(()=>n.modelValue,()=>{n.validateEvent&&(i==null||i.validate("change").catch(u=>ci(u)))}),(u,c)=>{var f;return h.openBlock(),h.createBlock(h.resolveDynamicComponent(u.tag),{id:h.unref(o),class:h.normalizeClass(h.unref(r).b("group")),role:"group","aria-label":h.unref(a)?void 0:u.label||u.ariaLabel||"checkbox-group","aria-labelledby":h.unref(a)?(f=h.unref(i))==null?void 0:f.labelId:void 0},{default:h.withCtx(()=>[h.renderSlot(u.$slots,"default")]),_:3},8,["id","class","aria-label","aria-labelledby"])}}});var ute=pn(zMe,[["__file","checkbox-group.vue"]]);const FMe=gu(IMe,{CheckboxButton:lte,CheckboxGroup:ute});Ub(lte);Ub(ute);const cte=Fn({modelValue:{type:[String,Number,Boolean],default:void 0},size:wh,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),WMe=Fn({...cte,border:Boolean}),fte={[Di]:t=>Pi(t)||as(t)||Pc(t),[xee]:t=>Pi(t)||as(t)||Pc(t)},dte=Symbol("radioGroupKey"),hte=(t,e)=>{const n=h.ref(),r=h.inject(dte,void 0),i=h.computed(()=>!!r),o=h.computed(()=>Av(t.value)?t.label:t.value),a=h.computed({get(){return i.value?r.modelValue:t.modelValue},set(f){i.value?r.changeEvent(f):e&&e(Di,f),n.value.checked=t.modelValue===o.value}}),s=Lv(h.computed(()=>r==null?void 0:r.size)),l=bg(h.computed(()=>r==null?void 0:r.disabled)),u=h.ref(!1),c=h.computed(()=>l.value||i.value&&a.value!==o.value?-1:0);return Xa({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},h.computed(()=>i.value&&Av(t.value))),{radioRef:n,isGroup:i,radioGroup:r,focus:u,size:s,disabled:l,tabIndex:c,modelValue:a,actualValue:o}},QMe=["value","name","disabled"],HMe=h.defineComponent({name:"ElRadio"}),GMe=h.defineComponent({...HMe,props:WMe,emits:fte,setup(t,{emit:e}){const n=t,r=an("radio"),{radioRef:i,radioGroup:o,focus:a,size:s,disabled:l,modelValue:u,actualValue:c}=hte(n,e);function f(){h.nextTick(()=>e("change",u.value))}return(d,p)=>{var v;return h.openBlock(),h.createElementBlock("label",{class:h.normalizeClass([h.unref(r).b(),h.unref(r).is("disabled",h.unref(l)),h.unref(r).is("focus",h.unref(a)),h.unref(r).is("bordered",d.border),h.unref(r).is("checked",h.unref(u)===h.unref(c)),h.unref(r).m(h.unref(s))])},[h.createElementVNode("span",{class:h.normalizeClass([h.unref(r).e("input"),h.unref(r).is("disabled",h.unref(l)),h.unref(r).is("checked",h.unref(u)===h.unref(c))])},[h.withDirectives(h.createElementVNode("input",{ref_key:"radioRef",ref:i,"onUpdate:modelValue":p[0]||(p[0]=g=>h.isRef(u)?u.value=g:null),class:h.normalizeClass(h.unref(r).e("original")),value:h.unref(c),name:d.name||((v=h.unref(o))==null?void 0:v.name),disabled:h.unref(l),type:"radio",onFocus:p[1]||(p[1]=g=>a.value=!0),onBlur:p[2]||(p[2]=g=>a.value=!1),onChange:f,onClick:p[3]||(p[3]=h.withModifiers(()=>{},["stop"]))},null,42,QMe),[[h.vModelRadio,h.unref(u)]]),h.createElementVNode("span",{class:h.normalizeClass(h.unref(r).e("inner"))},null,2)],2),h.createElementVNode("span",{class:h.normalizeClass(h.unref(r).e("label")),onKeydown:p[4]||(p[4]=h.withModifiers(()=>{},["stop"]))},[h.renderSlot(d.$slots,"default",{},()=>[h.createTextVNode(h.toDisplayString(d.label),1)])],34)],2)}}});var jMe=pn(GMe,[["__file","radio.vue"]]);const UMe=Fn({...cte}),ZMe=["value","name","disabled"],XMe=h.defineComponent({name:"ElRadioButton"}),YMe=h.defineComponent({...XMe,props:UMe,setup(t){const e=t,n=an("radio"),{radioRef:r,focus:i,size:o,disabled:a,modelValue:s,radioGroup:l,actualValue:u}=hte(e),c=h.computed(()=>({backgroundColor:(l==null?void 0:l.fill)||"",borderColor:(l==null?void 0:l.fill)||"",boxShadow:l!=null&&l.fill?`-1px 0 0 0 ${l.fill}`:"",color:(l==null?void 0:l.textColor)||""}));return(f,d)=>{var p;return h.openBlock(),h.createElementBlock("label",{class:h.normalizeClass([h.unref(n).b("button"),h.unref(n).is("active",h.unref(s)===h.unref(u)),h.unref(n).is("disabled",h.unref(a)),h.unref(n).is("focus",h.unref(i)),h.unref(n).bm("button",h.unref(o))])},[h.withDirectives(h.createElementVNode("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":d[0]||(d[0]=v=>h.isRef(s)?s.value=v:null),class:h.normalizeClass(h.unref(n).be("button","original-radio")),value:h.unref(u),type:"radio",name:f.name||((p=h.unref(l))==null?void 0:p.name),disabled:h.unref(a),onFocus:d[1]||(d[1]=v=>i.value=!0),onBlur:d[2]||(d[2]=v=>i.value=!1),onClick:d[3]||(d[3]=h.withModifiers(()=>{},["stop"]))},null,42,ZMe),[[h.vModelRadio,h.unref(s)]]),h.createElementVNode("span",{class:h.normalizeClass(h.unref(n).be("button","inner")),style:h.normalizeStyle(h.unref(s)===h.unref(u)?h.unref(c):{}),onKeydown:d[4]||(d[4]=h.withModifiers(()=>{},["stop"]))},[h.renderSlot(f.$slots,"default",{},()=>[h.createTextVNode(h.toDisplayString(f.label),1)])],38)],2)}}});var pte=pn(YMe,[["__file","radio-button.vue"]]);const qMe=Fn({id:{type:String,default:void 0},size:wh,disabled:Boolean,modelValue:{type:[String,Number,Boolean],default:void 0},fill:{type:String,default:""},label:{type:String,default:void 0},textColor:{type:String,default:""},name:{type:String,default:void 0},validateEvent:{type:Boolean,default:!0},...xh(["ariaLabel"])}),KMe=fte,JMe=["id","aria-label","aria-labelledby"],eIe=h.defineComponent({name:"ElRadioGroup"}),tIe=h.defineComponent({...eIe,props:qMe,emits:KMe,setup(t,{emit:e}){const n=t,r=an("radio"),i=Ry(),o=h.ref(),{formItem:a}=Sh(),{inputId:s,isLabeledByFormItem:l}=Yb(n,{formItemContext:a}),u=f=>{e(Di,f),h.nextTick(()=>e("change",f))};h.onMounted(()=>{const f=o.value.querySelectorAll("[type=radio]"),d=f[0];!Array.from(f).some(p=>p.checked)&&d&&(d.tabIndex=0)});const c=h.computed(()=>n.name||i.value);return h.provide(dte,h.reactive({...h.toRefs(n),changeEvent:u,name:c})),h.watch(()=>n.modelValue,()=>{n.validateEvent&&(a==null||a.validate("change").catch(f=>ci(f)))}),Xa({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-radio-group",ref:"https://element-plus.org/en-US/component/radio.html"},h.computed(()=>!!n.label)),(f,d)=>(h.openBlock(),h.createElementBlock("div",{id:h.unref(s),ref_key:"radioGroupRef",ref:o,class:h.normalizeClass(h.unref(r).b("group")),role:"radiogroup","aria-label":h.unref(l)?void 0:f.label||f.ariaLabel||"radio-group","aria-labelledby":h.unref(l)?h.unref(a).labelId:void 0},[h.renderSlot(f.$slots,"default")],10,JMe))}});var vte=pn(tIe,[["__file","radio-group.vue"]]);gu(jMe,{RadioButton:pte,RadioGroup:vte});const gte=Ub(vte),Z0=Ub(pte),nIe=h.defineComponent({name:"ElCollapseTransition"}),rIe=h.defineComponent({...nIe,setup(t){const e=an("collapse-transition"),n=i=>{i.style.maxHeight="",i.style.overflow=i.dataset.oldOverflow,i.style.paddingTop=i.dataset.oldPaddingTop,i.style.paddingBottom=i.dataset.oldPaddingBottom},r={beforeEnter(i){i.dataset||(i.dataset={}),i.dataset.oldPaddingTop=i.style.paddingTop,i.dataset.oldPaddingBottom=i.style.paddingBottom,i.style.height&&(i.dataset.elExistsHeight=i.style.height),i.style.maxHeight=0,i.style.paddingTop=0,i.style.paddingBottom=0},enter(i){requestAnimationFrame(()=>{i.dataset.oldOverflow=i.style.overflow,i.dataset.elExistsHeight?i.style.maxHeight=i.dataset.elExistsHeight:i.scrollHeight!==0?i.style.maxHeight=`${i.scrollHeight}px`:i.style.maxHeight=0,i.style.paddingTop=i.dataset.oldPaddingTop,i.style.paddingBottom=i.dataset.oldPaddingBottom,i.style.overflow="hidden"})},afterEnter(i){i.style.maxHeight="",i.style.overflow=i.dataset.oldOverflow},enterCancelled(i){n(i)},beforeLeave(i){i.dataset||(i.dataset={}),i.dataset.oldPaddingTop=i.style.paddingTop,i.dataset.oldPaddingBottom=i.style.paddingBottom,i.dataset.oldOverflow=i.style.overflow,i.style.maxHeight=`${i.scrollHeight}px`,i.style.overflow="hidden"},leave(i){i.scrollHeight!==0&&(i.style.maxHeight=0,i.style.paddingTop=0,i.style.paddingBottom=0)},afterLeave(i){n(i)},leaveCancelled(i){n(i)}};return(i,o)=>(h.openBlock(),h.createBlock(h.Transition,h.mergeProps({name:h.unref(e).b()},h.toHandlers(r)),{default:h.withCtx(()=>[h.renderSlot(i.$slots,"default")]),_:3},16,["name"]))}});var Uw=pn(rIe,[["__file","collapse-transition.vue"]]);Uw.install=t=>{t.component(Uw.name,Uw)};const iIe=Uw,oIe=Fn({color:{type:Xt(Object),required:!0},vertical:{type:Boolean,default:!1}});let K$=!1;function Ly(t,e){if(!dr)return;const n=function(o){var a;(a=e.drag)==null||a.call(e,o)},r=function(o){var a;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r),document.onselectstart=null,document.ondragstart=null,K$=!1,(a=e.end)==null||a.call(e,o)},i=function(o){var a;K$||(o.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),document.addEventListener("touchmove",n),document.addEventListener("touchend",r),K$=!0,(a=e.start)==null||a.call(e,o))};t.addEventListener("mousedown",i),t.addEventListener("touchstart",i)}const aIe=t=>{const e=h.getCurrentInstance(),n=h.shallowRef(),r=h.shallowRef();function i(a){a.target!==n.value&&o(a)}function o(a){if(!r.value||!n.value)return;const l=e.vnode.el.getBoundingClientRect(),{clientX:u,clientY:c}=iL(a);if(t.vertical){let f=c-l.top;f=Math.max(n.value.offsetHeight/2,f),f=Math.min(f,l.height-n.value.offsetHeight/2),t.color.set("alpha",Math.round((f-n.value.offsetHeight/2)/(l.height-n.value.offsetHeight)*100))}else{let f=u-l.left;f=Math.max(n.value.offsetWidth/2,f),f=Math.min(f,l.width-n.value.offsetWidth/2),t.color.set("alpha",Math.round((f-n.value.offsetWidth/2)/(l.width-n.value.offsetWidth)*100))}}return{thumb:n,bar:r,handleDrag:o,handleClick:i}},sIe=(t,{bar:e,thumb:n,handleDrag:r})=>{const i=h.getCurrentInstance(),o=an("color-alpha-slider"),a=h.ref(0),s=h.ref(0),l=h.ref();function u(){if(!n.value||t.vertical)return 0;const b=i.vnode.el,O=t.color.get("alpha");return b?Math.round(O*(b.offsetWidth-n.value.offsetWidth/2)/100):0}function c(){if(!n.value)return 0;const b=i.vnode.el;if(!t.vertical)return 0;const O=t.color.get("alpha");return b?Math.round(O*(b.offsetHeight-n.value.offsetHeight/2)/100):0}function f(){if(t.color&&t.color.value){const{r:b,g:O,b:w}=t.color.toRgb();return`linear-gradient(to right, rgba(${b}, ${O}, ${w}, 0) 0%, rgba(${b}, ${O}, ${w}, 1) 100%)`}return""}function d(){a.value=u(),s.value=c(),l.value=f()}h.onMounted(()=>{if(!e.value||!n.value)return;const b={drag:O=>{r(O)},end:O=>{r(O)}};Ly(e.value,b),Ly(n.value,b),d()}),h.watch(()=>t.color.get("alpha"),()=>d()),h.watch(()=>t.color.value,()=>d());const p=h.computed(()=>[o.b(),o.is("vertical",t.vertical)]),v=h.computed(()=>o.e("bar")),g=h.computed(()=>o.e("thumb")),m=h.computed(()=>({background:l.value})),y=h.computed(()=>({left:Ev(a.value),top:Ev(s.value)}));return{rootKls:p,barKls:v,barStyle:m,thumbKls:g,thumbStyle:y,update:d}},lIe="ElColorAlphaSlider",uIe=h.defineComponent({name:lIe}),cIe=h.defineComponent({...uIe,props:oIe,setup(t,{expose:e}){const n=t,{bar:r,thumb:i,handleDrag:o,handleClick:a}=aIe(n),{rootKls:s,barKls:l,barStyle:u,thumbKls:c,thumbStyle:f,update:d}=sIe(n,{bar:r,thumb:i,handleDrag:o});return e({update:d,bar:r,thumb:i}),(p,v)=>(h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(h.unref(s))},[h.createElementVNode("div",{ref_key:"bar",ref:r,class:h.normalizeClass(h.unref(l)),style:h.normalizeStyle(h.unref(u)),onClick:v[0]||(v[0]=(...g)=>h.unref(a)&&h.unref(a)(...g))},null,6),h.createElementVNode("div",{ref_key:"thumb",ref:i,class:h.normalizeClass(h.unref(c)),style:h.normalizeStyle(h.unref(f))},null,6)],2))}});var fIe=pn(cIe,[["__file","alpha-slider.vue"]]);const dIe=h.defineComponent({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(t){const e=an("color-hue-slider"),n=h.getCurrentInstance(),r=h.ref(),i=h.ref(),o=h.ref(0),a=h.ref(0),s=h.computed(()=>t.color.get("hue"));h.watch(()=>s.value,()=>{d()});function l(p){p.target!==r.value&&u(p)}function u(p){if(!i.value||!r.value)return;const g=n.vnode.el.getBoundingClientRect(),{clientX:m,clientY:y}=iL(p);let b;if(t.vertical){let O=y-g.top;O=Math.min(O,g.height-r.value.offsetHeight/2),O=Math.max(r.value.offsetHeight/2,O),b=Math.round((O-r.value.offsetHeight/2)/(g.height-r.value.offsetHeight)*360)}else{let O=m-g.left;O=Math.min(O,g.width-r.value.offsetWidth/2),O=Math.max(r.value.offsetWidth/2,O),b=Math.round((O-r.value.offsetWidth/2)/(g.width-r.value.offsetWidth)*360)}t.color.set("hue",b)}function c(){if(!r.value)return 0;const p=n.vnode.el;if(t.vertical)return 0;const v=t.color.get("hue");return p?Math.round(v*(p.offsetWidth-r.value.offsetWidth/2)/360):0}function f(){if(!r.value)return 0;const p=n.vnode.el;if(!t.vertical)return 0;const v=t.color.get("hue");return p?Math.round(v*(p.offsetHeight-r.value.offsetHeight/2)/360):0}function d(){o.value=c(),a.value=f()}return h.onMounted(()=>{if(!i.value||!r.value)return;const p={drag:v=>{u(v)},end:v=>{u(v)}};Ly(i.value,p),Ly(r.value,p),d()}),{bar:i,thumb:r,thumbLeft:o,thumbTop:a,hueValue:s,handleClick:l,update:d,ns:e}}});function hIe(t,e,n,r,i,o){return h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass([t.ns.b(),t.ns.is("vertical",t.vertical)])},[h.createElementVNode("div",{ref:"bar",class:h.normalizeClass(t.ns.e("bar")),onClick:e[0]||(e[0]=(...a)=>t.handleClick&&t.handleClick(...a))},null,2),h.createElementVNode("div",{ref:"thumb",class:h.normalizeClass(t.ns.e("thumb")),style:h.normalizeStyle({left:t.thumbLeft+"px",top:t.thumbTop+"px"})},null,6)],2)}var pIe=pn(dIe,[["render",hIe],["__file","hue-slider.vue"]]);const vIe=Fn({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:wh,popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},teleported:VL.teleported,predefine:{type:Xt(Array)},validateEvent:{type:Boolean,default:!0},...xh(["ariaLabel"])}),gIe={[Di]:t=>Pi(t)||vc(t),[xee]:t=>Pi(t)||vc(t),activeChange:t=>Pi(t)||vc(t),focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent},mte=Symbol("colorPickerContextKey"),WF=function(t,e,n){return[t,e*n/((t=(2-e)*n)<1?t:2-t)||0,t/2]},mIe=function(t){return typeof t=="string"&&t.includes(".")&&Number.parseFloat(t)===1},yIe=function(t){return typeof t=="string"&&t.includes("%")},nv=function(t,e){mIe(t)&&(t="100%");const n=yIe(t);return t=Math.min(e,Math.max(0,Number.parseFloat(`${t}`))),n&&(t=Number.parseInt(`${t*e}`,10)/100),Math.abs(t-e)<1e-6?1:t%e/Number.parseFloat(e)},QF={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},Zw=t=>{t=Math.min(Math.round(t),255);const e=Math.floor(t/16),n=t%16;return`${QF[e]||e}${QF[n]||n}`},HF=function({r:t,g:e,b:n}){return Number.isNaN(+t)||Number.isNaN(+e)||Number.isNaN(+n)?"":`#${Zw(t)}${Zw(e)}${Zw(n)}`},J$={A:10,B:11,C:12,D:13,E:14,F:15},yf=function(t){return t.length===2?(J$[t[0].toUpperCase()]||+t[0])*16+(J$[t[1].toUpperCase()]||+t[1]):J$[t[1].toUpperCase()]||+t[1]},bIe=function(t,e,n){e=e/100,n=n/100;let r=e;const i=Math.max(n,.01);n*=2,e*=n<=1?n:2-n,r*=i<=1?i:2-i;const o=(n+e)/2,a=n===0?2*r/(i+r):2*e/(n+e);return{h:t,s:a*100,v:o*100}},GF=(t,e,n)=>{t=nv(t,255),e=nv(e,255),n=nv(n,255);const r=Math.max(t,e,n),i=Math.min(t,e,n);let o;const a=r,s=r-i,l=r===0?0:s/r;if(r===i)o=0;else{switch(r){case t:{o=(e-n)/s+(e<n?6:0);break}case e:{o=(n-t)/s+2;break}case n:{o=(t-e)/s+4;break}}o/=6}return{h:o*360,s:l*100,v:a*100}},Tm=function(t,e,n){t=nv(t,360)*6,e=nv(e,100),n=nv(n,100);const r=Math.floor(t),i=t-r,o=n*(1-e),a=n*(1-i*e),s=n*(1-(1-i)*e),l=r%6,u=[n,a,o,o,s,n][l],c=[s,n,n,a,o,o][l],f=[o,o,s,n,n,a][l];return{r:Math.round(u*255),g:Math.round(c*255),b:Math.round(f*255)}};class X0{constructor(e={}){this._hue=0,this._saturation=100,this._value=100,this._alpha=100,this.enableAlpha=!1,this.format="hex",this.value="";for(const n in e)Yd(e,n)&&(this[n]=e[n]);e.value?this.fromString(e.value):this.doOnChange()}set(e,n){if(arguments.length===1&&typeof e=="object"){for(const r in e)Yd(e,r)&&this.set(r,e[r]);return}this[`_${e}`]=n,this.doOnChange()}get(e){return e==="alpha"?Math.floor(this[`_${e}`]):this[`_${e}`]}toRgb(){return Tm(this._hue,this._saturation,this._value)}fromString(e){if(!e){this._hue=0,this._saturation=100,this._value=100,this.doOnChange();return}const n=(r,i,o)=>{this._hue=Math.max(0,Math.min(360,r)),this._saturation=Math.max(0,Math.min(100,i)),this._value=Math.max(0,Math.min(100,o)),this.doOnChange()};if(e.includes("hsl")){const r=e.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(i=>i!=="").map((i,o)=>o>2?Number.parseFloat(i):Number.parseInt(i,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:i,s:o,v:a}=bIe(r[0],r[1],r[2]);n(i,o,a)}}else if(e.includes("hsv")){const r=e.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(i=>i!=="").map((i,o)=>o>2?Number.parseFloat(i):Number.parseInt(i,10));r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3&&n(r[0],r[1],r[2])}else if(e.includes("rgb")){const r=e.replace(/rgba|rgb|\(|\)/gm,"").split(/\s|,/g).filter(i=>i!=="").map((i,o)=>o>2?Number.parseFloat(i):Number.parseInt(i,10));if(r.length===4?this._alpha=Number.parseFloat(r[3])*100:r.length===3&&(this._alpha=100),r.length>=3){const{h:i,s:o,v:a}=GF(r[0],r[1],r[2]);n(i,o,a)}}else if(e.includes("#")){const r=e.replace("#","").trim();if(!/^[0-9a-fA-F]{3}$|^[0-9a-fA-F]{6}$|^[0-9a-fA-F]{8}$/.test(r))return;let i,o,a;r.length===3?(i=yf(r[0]+r[0]),o=yf(r[1]+r[1]),a=yf(r[2]+r[2])):(r.length===6||r.length===8)&&(i=yf(r.slice(0,2)),o=yf(r.slice(2,4)),a=yf(r.slice(4,6))),r.length===8?this._alpha=yf(r.slice(6))/255*100:(r.length===3||r.length===6)&&(this._alpha=100);const{h:s,s:l,v:u}=GF(i,o,a);n(s,l,u)}}compare(e){return Math.abs(e._hue-this._hue)<2&&Math.abs(e._saturation-this._saturation)<1&&Math.abs(e._value-this._value)<1&&Math.abs(e._alpha-this._alpha)<1}doOnChange(){const{_hue:e,_saturation:n,_value:r,_alpha:i,format:o}=this;if(this.enableAlpha)switch(o){case"hsl":{const a=WF(e,n/100,r/100);this.value=`hsla(${e}, ${Math.round(a[1]*100)}%, ${Math.round(a[2]*100)}%, ${this.get("alpha")/100})`;break}case"hsv":{this.value=`hsva(${e}, ${Math.round(n)}%, ${Math.round(r)}%, ${this.get("alpha")/100})`;break}case"hex":{this.value=`${HF(Tm(e,n,r))}${Zw(i*255/100)}`;break}default:{const{r:a,g:s,b:l}=Tm(e,n,r);this.value=`rgba(${a}, ${s}, ${l}, ${this.get("alpha")/100})`}}else switch(o){case"hsl":{const a=WF(e,n/100,r/100);this.value=`hsl(${e}, ${Math.round(a[1]*100)}%, ${Math.round(a[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${e}, ${Math.round(n)}%, ${Math.round(r)}%)`;break}case"rgb":{const{r:a,g:s,b:l}=Tm(e,n,r);this.value=`rgb(${a}, ${s}, ${l})`;break}default:this.value=HF(Tm(e,n,r))}}}const _Ie=h.defineComponent({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0},enableAlpha:{type:Boolean,required:!0}},setup(t){const e=an("color-predefine"),{currentColor:n}=h.inject(mte),r=h.ref(o(t.colors,t.color));h.watch(()=>n.value,a=>{const s=new X0;s.fromString(a),r.value.forEach(l=>{l.selected=s.compare(l)})}),h.watchEffect(()=>{r.value=o(t.colors,t.color)});function i(a){t.color.fromString(t.colors[a])}function o(a,s){return a.map(l=>{const u=new X0;return u.enableAlpha=t.enableAlpha,u.format="rgba",u.fromString(l),u.selected=u.value===s.value,u})}return{rgbaColors:r,handleSelect:i,ns:e}}}),OIe=["onClick"];function wIe(t,e,n,r,i,o){return h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(t.ns.b())},[h.createElementVNode("div",{class:h.normalizeClass(t.ns.e("colors"))},[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t.rgbaColors,(a,s)=>(h.openBlock(),h.createElementBlock("div",{key:t.colors[s],class:h.normalizeClass([t.ns.e("color-selector"),t.ns.is("alpha",a._alpha<100),{selected:a.selected}]),onClick:l=>t.handleSelect(s)},[h.createElementVNode("div",{style:h.normalizeStyle({backgroundColor:a.value})},null,4)],10,OIe))),128))],2)],2)}var xIe=pn(_Ie,[["render",wIe],["__file","predefine.vue"]]);const SIe=h.defineComponent({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(t){const e=an("color-svpanel"),n=h.getCurrentInstance(),r=h.ref(0),i=h.ref(0),o=h.ref("hsl(0, 100%, 50%)"),a=h.computed(()=>{const u=t.color.get("hue"),c=t.color.get("value");return{hue:u,value:c}});function s(){const u=t.color.get("saturation"),c=t.color.get("value"),f=n.vnode.el,{clientWidth:d,clientHeight:p}=f;i.value=u*d/100,r.value=(100-c)*p/100,o.value=`hsl(${t.color.get("hue")}, 100%, 50%)`}function l(u){const f=n.vnode.el.getBoundingClientRect(),{clientX:d,clientY:p}=iL(u);let v=d-f.left,g=p-f.top;v=Math.max(0,v),v=Math.min(v,f.width),g=Math.max(0,g),g=Math.min(g,f.height),i.value=v,r.value=g,t.color.set({saturation:v/f.width*100,value:100-g/f.height*100})}return h.watch(()=>a.value,()=>{s()}),h.onMounted(()=>{Ly(n.vnode.el,{drag:u=>{l(u)},end:u=>{l(u)}}),s()}),{cursorTop:r,cursorLeft:i,background:o,colorValue:a,handleDrag:l,update:s,ns:e}}}),CIe=h.createElementVNode("div",null,null,-1),TIe=[CIe];function PIe(t,e,n,r,i,o){return h.openBlock(),h.createElementBlock("div",{class:h.normalizeClass(t.ns.b()),style:h.normalizeStyle({backgroundColor:t.background})},[h.createElementVNode("div",{class:h.normalizeClass(t.ns.e("white"))},null,2),h.createElementVNode("div",{class:h.normalizeClass(t.ns.e("black"))},null,2),h.createElementVNode("div",{class:h.normalizeClass(t.ns.e("cursor")),style:h.normalizeStyle({top:t.cursorTop+"px",left:t.cursorLeft+"px"})},TIe,6)],6)}var $Ie=pn(SIe,[["render",PIe],["__file","sv-panel.vue"]]);const AIe=["onKeydown"],EIe=["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex"],MIe=h.defineComponent({name:"ElColorPicker"}),IIe=h.defineComponent({...MIe,props:vIe,emits:gIe,setup(t,{expose:e,emit:n}){const r=t,{t:i}=xL(),o=an("color"),{formItem:a}=Sh(),s=Lv(),l=bg(),{inputId:u,isLabeledByFormItem:c}=Yb(r,{formItemContext:a}),f=h.ref(),d=h.ref(),p=h.ref(),v=h.ref(),g=h.ref(),m=h.ref(),{isFocused:y,handleFocus:b,handleBlur:O}=Wee(g,{beforeBlur(X){var Y;return(Y=v.value)==null?void 0:Y.isFocusInsideContent(X)},afterBlur(){B(!1),j()}}),w=X=>{if(l.value)return ee();b(X)};let x=!0;const S=h.reactive(new X0({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue})),T=h.ref(!1),$=h.ref(!1),A=h.ref(""),P=h.computed(()=>!r.modelValue&&!$.value?"transparent":D(S,r.showAlpha)),M=h.computed(()=>!r.modelValue&&!$.value?"":S.value),I=h.computed(()=>c.value?void 0:r.label||r.ariaLabel||i("el.colorpicker.defaultLabel"));Xa({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-color-picker",ref:"https://element-plus.org/en-US/component/color-picker.html"},h.computed(()=>!!r.label));const R=h.computed(()=>c.value?a==null?void 0:a.labelId:void 0),L=h.computed(()=>[o.b("picker"),o.is("disabled",l.value),o.bm("picker",s.value),o.is("focused",y.value)]);function D(X,Y){if(!(X instanceof X0))throw new TypeError("color should be instance of _color Class");const{r:le,g:ge,b:me}=X.toRgb();return Y?`rgba(${le}, ${ge}, ${me}, ${X.get("alpha")/100})`:`rgb(${le}, ${ge}, ${me})`}function B(X){T.value=X}const F=bL(B,100,{leading:!0});function z(){l.value||B(!0)}function W(){F(!1),j()}function j(){h.nextTick(()=>{r.modelValue?S.fromString(r.modelValue):(S.value="",h.nextTick(()=>{$.value=!1}))})}function H(){l.value||F(!T.value)}function Z(){S.fromString(A.value)}function J(){const X=S.value;n(Di,X),n("change",X),r.validateEvent&&(a==null||a.validate("change").catch(Y=>ci(Y))),F(!1),h.nextTick(()=>{const Y=new X0({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue});S.compare(Y)||j()})}function se(){F(!1),n(Di,null),n("change",null),r.modelValue!==null&&r.validateEvent&&(a==null||a.validate("change").catch(X=>ci(X))),j()}function oe(X){if(T.value&&(W(),y.value)){const Y=new FocusEvent("focus",X);O(Y)}}function de(X){X.preventDefault(),X.stopPropagation(),B(!1),j()}function re(X){switch(X.code){case Ui.enter:case Ui.space:X.preventDefault(),X.stopPropagation(),z(),m.value.focus();break;case Ui.esc:de(X);break}}function ue(){g.value.focus()}function ee(){g.value.blur()}return h.onMounted(()=>{r.modelValue&&(A.value=M.value)}),h.watch(()=>r.modelValue,X=>{X?X&&X!==S.value&&(x=!1,S.fromString(X)):$.value=!1}),h.watch(()=>M.value,X=>{A.value=X,x&&n("activeChange",X),x=!0}),h.watch(()=>S.value,()=>{!r.modelValue&&!$.value&&($.value=!0)}),h.watch(()=>T.value,()=>{h.nextTick(()=>{var X,Y,le;(X=f.value)==null||X.update(),(Y=d.value)==null||Y.update(),(le=p.value)==null||le.update()})}),h.provide(mte,{currentColor:M}),e({color:S,show:z,hide:W,focus:ue,blur:ee}),(X,Y)=>(h.openBlock(),h.createBlock(h.unref(eMe),{ref_key:"popper",ref:v,visible:T.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[h.unref(o).be("picker","panel"),h.unref(o).b("dropdown"),X.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",teleported:X.teleported,transition:`${h.unref(o).namespace.value}-zoom-in-top`,persistent:"",onHide:Y[2]||(Y[2]=le=>B(!1))},{content:h.withCtx(()=>[h.withDirectives((h.openBlock(),h.createElementBlock("div",{onKeydown:h.withKeys(de,["esc"])},[h.createElementVNode("div",{class:h.normalizeClass(h.unref(o).be("dropdown","main-wrapper"))},[h.createVNode(pIe,{ref_key:"hue",ref:f,class:"hue-slider",color:h.unref(S),vertical:""},null,8,["color"]),h.createVNode($Ie,{ref_key:"sv",ref:d,color:h.unref(S)},null,8,["color"])],2),X.showAlpha?(h.openBlock(),h.createBlock(fIe,{key:0,ref_key:"alpha",ref:p,color:h.unref(S)},null,8,["color"])):h.createCommentVNode("v-if",!0),X.predefine?(h.openBlock(),h.createBlock(xIe,{key:1,ref:"predefine","enable-alpha":X.showAlpha,color:h.unref(S),colors:X.predefine},null,8,["enable-alpha","color","colors"])):h.createCommentVNode("v-if",!0),h.createElementVNode("div",{class:h.normalizeClass(h.unref(o).be("dropdown","btns"))},[h.createElementVNode("span",{class:h.normalizeClass(h.unref(o).be("dropdown","value"))},[h.createVNode(h.unref(mT),{ref_key:"inputRef",ref:m,modelValue:A.value,"onUpdate:modelValue":Y[0]||(Y[0]=le=>A.value=le),"validate-event":!1,size:"small",onKeyup:h.withKeys(Z,["enter"]),onBlur:Z},null,8,["modelValue","onKeyup"])],2),h.createVNode(h.unref(dD),{class:h.normalizeClass(h.unref(o).be("dropdown","link-btn")),text:"",size:"small",onClick:se},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(h.unref(i)("el.colorpicker.clear")),1)]),_:1},8,["class"]),h.createVNode(h.unref(dD),{plain:"",size:"small",class:h.normalizeClass(h.unref(o).be("dropdown","btn")),onClick:J},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(h.unref(i)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)],40,AIe)),[[h.unref(xMe),oe]])]),default:h.withCtx(()=>[h.createElementVNode("div",h.mergeProps({id:h.unref(u),ref_key:"triggerRef",ref:g},X.$attrs,{class:h.unref(L),role:"button","aria-label":h.unref(I),"aria-labelledby":h.unref(R),"aria-description":h.unref(i)("el.colorpicker.description",{color:X.modelValue||""}),"aria-disabled":h.unref(l),tabindex:h.unref(l)?-1:X.tabindex,onKeydown:re,onFocus:w,onBlur:Y[1]||(Y[1]=(...le)=>h.unref(O)&&h.unref(O)(...le))}),[h.unref(l)?(h.openBlock(),h.createElementBlock("div",{key:0,class:h.normalizeClass(h.unref(o).be("picker","mask"))},null,2)):h.createCommentVNode("v-if",!0),h.createElementVNode("div",{class:h.normalizeClass(h.unref(o).be("picker","trigger")),onClick:H},[h.createElementVNode("span",{class:h.normalizeClass([h.unref(o).be("picker","color"),h.unref(o).is("alpha",X.showAlpha)])},[h.createElementVNode("span",{class:h.normalizeClass(h.unref(o).be("picker","color-inner")),style:h.normalizeStyle({backgroundColor:h.unref(P)})},[h.withDirectives(h.createVNode(h.unref(Za),{class:h.normalizeClass([h.unref(o).be("picker","icon"),h.unref(o).is("icon-arrow-down")])},{default:h.withCtx(()=>[h.createVNode(h.unref(c2e))]),_:1},8,["class"]),[[h.vShow,X.modelValue||$.value]]),h.withDirectives(h.createVNode(h.unref(Za),{class:h.normalizeClass([h.unref(o).be("picker","empty"),h.unref(o).is("icon-close")])},{default:h.withCtx(()=>[h.createVNode(h.unref(Oee))]),_:1},8,["class"]),[[h.vShow,!X.modelValue&&!$.value]])],6)],2)],2)],16,EIe)]),_:1},8,["visible","popper-class","teleported","transition"]))}});var DIe=pn(IIe,[["__file","color-picker.vue"]]);const rv=gu(DIe),RIe=Fn({mask:{type:Boolean,default:!0},customMaskEvent:{type:Boolean,default:!1},overlayClass:{type:Xt([String,Array,Object])},zIndex:{type:Xt([String,Number])}}),kIe={click:t=>t instanceof MouseEvent},NIe="overlay";var LIe=h.defineComponent({name:"ElOverlay",props:RIe,emits:kIe,setup(t,{slots:e,emit:n}){const r=an(NIe),i=l=>{n("click",l)},{onClick:o,onMousedown:a,onMouseup:s}=Lee(t.customMaskEvent?void 0:i);return()=>t.mask?h.createVNode("div",{class:[r.b(),t.overlayClass],style:{zIndex:t.zIndex},onClick:o,onMousedown:a,onMouseup:s},[h.renderSlot(e,"default")],Qw.STYLE|Qw.CLASS|Qw.PROPS,["onClick","onMouseup","onMousedown"]):h.h("div",{class:t.overlayClass,style:{zIndex:t.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[h.renderSlot(e,"default")])}});const BIe=LIe,yte=Symbol("dialogInjectionKey"),bte=Fn({center:Boolean,alignCenter:Boolean,closeIcon:{type:Mv},draggable:Boolean,overflow:Boolean,fullscreen:Boolean,showClose:{type:Boolean,default:!0},title:{type:String,default:""},ariaLevel:{type:String,default:"2"}}),VIe={close:()=>!0},zIe=["aria-level"],FIe=["aria-label"],WIe=["id"],QIe=h.defineComponent({name:"ElDialogContent"}),HIe=h.defineComponent({...QIe,props:bte,emits:VIe,setup(t){const e=t,{t:n}=xL(),{Close:r}=x2e,{dialogRef:i,headerRef:o,bodyId:a,ns:s,style:l}=h.inject(yte),{focusTrapRef:u}=h.inject(qee),c=h.computed(()=>[s.b(),s.is("fullscreen",e.fullscreen),s.is("draggable",e.draggable),s.is("align-center",e.alignCenter),{[s.m("center")]:e.center}]),f=C2e(u,i),d=h.computed(()=>e.draggable),p=h.computed(()=>e.overflow);return I2e(i,o,d,p),(v,g)=>(h.openBlock(),h.createElementBlock("div",{ref:h.unref(f),class:h.normalizeClass(h.unref(c)),style:h.normalizeStyle(h.unref(l)),tabindex:"-1"},[h.createElementVNode("header",{ref_key:"headerRef",ref:o,class:h.normalizeClass([h.unref(s).e("header"),{"show-close":v.showClose}])},[h.renderSlot(v.$slots,"header",{},()=>[h.createElementVNode("span",{role:"heading","aria-level":v.ariaLevel,class:h.normalizeClass(h.unref(s).e("title"))},h.toDisplayString(v.title),11,zIe)]),v.showClose?(h.openBlock(),h.createElementBlock("button",{key:0,"aria-label":h.unref(n)("el.dialog.close"),class:h.normalizeClass(h.unref(s).e("headerbtn")),type:"button",onClick:g[0]||(g[0]=m=>v.$emit("close"))},[h.createVNode(h.unref(Za),{class:h.normalizeClass(h.unref(s).e("close"))},{default:h.withCtx(()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(v.closeIcon||h.unref(r))))]),_:1},8,["class"])],10,FIe)):h.createCommentVNode("v-if",!0)],2),h.createElementVNode("div",{id:h.unref(a),class:h.normalizeClass(h.unref(s).e("body"))},[h.renderSlot(v.$slots,"default")],10,WIe),v.$slots.footer?(h.openBlock(),h.createElementBlock("footer",{key:0,class:h.normalizeClass(h.unref(s).e("footer"))},[h.renderSlot(v.$slots,"footer")],2)):h.createCommentVNode("v-if",!0)],6))}});var GIe=pn(HIe,[["__file","dialog-content.vue"]]);const jIe=Fn({...bte,appendToBody:Boolean,appendTo:{type:Xt(String),default:"body"},beforeClose:{type:Xt(Function)},destroyOnClose:Boolean,closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},modal:{type:Boolean,default:!0},openDelay:{type:Number,default:0},closeDelay:{type:Number,default:0},top:{type:String},modelValue:Boolean,modalClass:String,width:{type:[String,Number]},zIndex:{type:Number},trapFocus:{type:Boolean,default:!1},headerAriaLevel:{type:String,default:"2"}}),UIe={open:()=>!0,opened:()=>!0,close:()=>!0,closed:()=>!0,[Di]:t=>Pc(t),openAutoFocus:()=>!0,closeAutoFocus:()=>!0},ZIe=(t,e)=>{var n;const i=h.getCurrentInstance().emit,{nextZIndex:o}=Fee();let a="";const s=Ry(),l=Ry(),u=h.ref(!1),c=h.ref(!1),f=h.ref(!1),d=h.ref((n=t.zIndex)!=null?n:o());let p,v;const g=Qee("namespace",Hw),m=h.computed(()=>{const D={},B=`--${g.value}-dialog`;return t.fullscreen||(t.top&&(D[`${B}-margin-top`]=t.top),t.width&&(D[`${B}-width`]=Ev(t.width))),D}),y=h.computed(()=>t.alignCenter?{display:"flex"}:{});function b(){i("opened")}function O(){i("closed"),i(Di,!1),t.destroyOnClose&&(f.value=!1)}function w(){i("close")}function x(){v==null||v(),p==null||p(),t.openDelay&&t.openDelay>0?{stop:p}=xz(()=>A(),t.openDelay):A()}function S(){p==null||p(),v==null||v(),t.closeDelay&&t.closeDelay>0?{stop:v}=xz(()=>P(),t.closeDelay):P()}function T(){function D(B){B||(c.value=!0,u.value=!1)}t.beforeClose?t.beforeClose(D):S()}function $(){t.closeOnClickModal&&T()}function A(){dr&&(u.value=!0)}function P(){u.value=!1}function M(){i("openAutoFocus")}function I(){i("closeAutoFocus")}function R(D){var B;((B=D.detail)==null?void 0:B.focusReason)==="pointer"&&D.preventDefault()}t.lockScroll&&z2e(u);function L(){t.closeOnPressEscape&&T()}return h.watch(()=>t.modelValue,D=>{D?(c.value=!1,x(),f.value=!0,d.value=pee(t.zIndex)?o():d.value++,h.nextTick(()=>{i("open"),e.value&&(e.value.scrollTop=0)})):u.value&&S()}),h.watch(()=>t.fullscreen,D=>{e.value&&(D?(a=e.value.style.transform,e.value.style.transform=""):e.value.style.transform=a)}),h.onMounted(()=>{t.modelValue&&(u.value=!0,f.value=!0,x())}),{afterEnter:b,afterLeave:O,beforeLeave:w,handleClose:T,onModalClick:$,close:S,doClose:P,onOpenAutoFocus:M,onCloseAutoFocus:I,onCloseRequested:L,onFocusoutPrevented:R,titleId:s,bodyId:l,closed:c,style:m,overlayDialogStyle:y,rendered:f,visible:u,zIndex:d}},XIe=["aria-label","aria-labelledby","aria-describedby"],YIe=h.defineComponent({name:"ElDialog",inheritAttrs:!1}),qIe=h.defineComponent({...YIe,props:jIe,emits:UIe,setup(t,{expose:e}){const n=t,r=h.useSlots();Xa({scope:"el-dialog",from:"the title slot",replacement:"the header slot",version:"3.0.0",ref:"https://element-plus.org/en-US/component/dialog.html#slots"},h.computed(()=>!!r.title));const i=an("dialog"),o=h.ref(),a=h.ref(),s=h.ref(),{visible:l,titleId:u,bodyId:c,style:f,overlayDialogStyle:d,rendered:p,zIndex:v,afterEnter:g,afterLeave:m,beforeLeave:y,handleClose:b,onModalClick:O,onOpenAutoFocus:w,onCloseAutoFocus:x,onCloseRequested:S,onFocusoutPrevented:T}=ZIe(n,o);h.provide(yte,{dialogRef:o,headerRef:a,bodyId:c,ns:i,rendered:p,style:f});const $=Lee(O),A=h.computed(()=>n.draggable&&!n.fullscreen);return e({visible:l,dialogContentRef:s}),(P,M)=>(h.openBlock(),h.createBlock(h.Teleport,{to:P.appendTo,disabled:P.appendTo!=="body"?!1:!P.appendToBody},[h.createVNode(h.Transition,{name:"dialog-fade",onAfterEnter:h.unref(g),onAfterLeave:h.unref(m),onBeforeLeave:h.unref(y),persisted:""},{default:h.withCtx(()=>[h.withDirectives(h.createVNode(h.unref(BIe),{"custom-mask-event":"",mask:P.modal,"overlay-class":P.modalClass,"z-index":h.unref(v)},{default:h.withCtx(()=>[h.createElementVNode("div",{role:"dialog","aria-modal":"true","aria-label":P.title||void 0,"aria-labelledby":P.title?void 0:h.unref(u),"aria-describedby":h.unref(c),class:h.normalizeClass(`${h.unref(i).namespace.value}-overlay-dialog`),style:h.normalizeStyle(h.unref(d)),onClick:M[0]||(M[0]=(...I)=>h.unref($).onClick&&h.unref($).onClick(...I)),onMousedown:M[1]||(M[1]=(...I)=>h.unref($).onMousedown&&h.unref($).onMousedown(...I)),onMouseup:M[2]||(M[2]=(...I)=>h.unref($).onMouseup&&h.unref($).onMouseup(...I))},[h.createVNode(h.unref(Jee),{loop:"",trapped:h.unref(l),"focus-start-el":"container",onFocusAfterTrapped:h.unref(w),onFocusAfterReleased:h.unref(x),onFocusoutPrevented:h.unref(T),onReleaseRequested:h.unref(S)},{default:h.withCtx(()=>[h.unref(p)?(h.openBlock(),h.createBlock(GIe,h.mergeProps({key:0,ref_key:"dialogContentRef",ref:s},P.$attrs,{center:P.center,"align-center":P.alignCenter,"close-icon":P.closeIcon,draggable:h.unref(A),overflow:P.overflow,fullscreen:P.fullscreen,"show-close":P.showClose,title:P.title,"aria-level":P.headerAriaLevel,onClose:h.unref(b)}),h.createSlots({header:h.withCtx(()=>[P.$slots.title?h.renderSlot(P.$slots,"title",{key:1}):h.renderSlot(P.$slots,"header",{key:0,close:h.unref(b),titleId:h.unref(u),titleClass:h.unref(i).e("title")})]),default:h.withCtx(()=>[h.renderSlot(P.$slots,"default")]),_:2},[P.$slots.footer?{name:"footer",fn:h.withCtx(()=>[h.renderSlot(P.$slots,"footer")])}:void 0]),1040,["center","align-center","close-icon","draggable","overflow","fullscreen","show-close","title","aria-level","onClose"])):h.createCommentVNode("v-if",!0)]),_:3},8,["trapped","onFocusAfterTrapped","onFocusAfterReleased","onFocusoutPrevented","onReleaseRequested"])],46,XIe)]),_:3},8,["mask","overlay-class","z-index"]),[[h.vShow,h.unref(l)]])]),_:3},8,["onAfterEnter","onAfterLeave","onBeforeLeave"])],8,["to","disabled"]))}});var KIe=pn(qIe,[["__file","dialog.vue"]]);const JIe=gu(KIe),eDe=Symbol("ElSelect"),iv="$treeNodeId",jF=function(t,e){!e||e[iv]||Object.defineProperty(e,iv,{value:t.id,enumerable:!1,configurable:!1,writable:!1})},zL=function(t,e){return t?e[t]:e[iv]},hD=(t,e,n)=>{const r=t.value.currentNode;n();const i=t.value.currentNode;r!==i&&e("current-change",i?i.data:null,i)},pD=t=>{let e=!0,n=!0,r=!0;for(let i=0,o=t.length;i<o;i++){const a=t[i];(a.checked!==!0||a.indeterminate)&&(e=!1,a.disabled||(r=!1)),(a.checked!==!1||a.indeterminate)&&(n=!1)}return{all:e,none:n,allWithoutDisable:r,half:!e&&!n}},_0=function(t){if(t.childNodes.length===0||t.loading)return;const{all:e,none:n,half:r}=pD(t.childNodes);e?(t.checked=!0,t.indeterminate=!1):r?(t.checked=!1,t.indeterminate=!0):n&&(t.checked=!1,t.indeterminate=!1);const i=t.parent;!i||i.level===0||t.store.checkStrictly||_0(i)},Z1=function(t,e){const n=t.store.props,r=t.data||{},i=n[e];if(typeof i=="function")return i(r,t);if(typeof i=="string")return r[i];if(typeof i>"u"){const o=r[e];return o===void 0?"":o}};let tDe=0;class Ed{constructor(e){this.id=tDe++,this.text=null,this.checked=!1,this.indeterminate=!1,this.data=null,this.expanded=!1,this.parent=null,this.visible=!0,this.isCurrent=!1,this.canFocus=!1;for(const n in e)Yd(e,n)&&(this[n]=e[n]);this.level=0,this.loaded=!1,this.childNodes=[],this.loading=!1,this.parent&&(this.level=this.parent.level+1)}initialize(){const e=this.store;if(!e)throw new Error("[Node]store is required!");e.registerNode(this);const n=e.props;if(n&&typeof n.isLeaf<"u"){const o=Z1(this,"isLeaf");typeof o=="boolean"&&(this.isLeafByUser=o)}if(e.lazy!==!0&&this.data?(this.setData(this.data),e.defaultExpandAll&&(this.expanded=!0,this.canFocus=!0)):this.level>0&&e.lazy&&e.defaultExpandAll&&this.expand(),Array.isArray(this.data)||jF(this,this.data),!this.data)return;const r=e.defaultExpandedKeys,i=e.key;i&&r&&r.includes(this.key)&&this.expand(null,e.autoExpandParent),i&&e.currentNodeKey!==void 0&&this.key===e.currentNodeKey&&(e.currentNode=this,e.currentNode.isCurrent=!0),e.lazy&&e._initDefaultCheckedNode(this),this.updateLeafState(),this.parent&&(this.level===1||this.parent.expanded===!0)&&(this.canFocus=!0)}setData(e){Array.isArray(e)||jF(this,e),this.data=e,this.childNodes=[];let n;this.level===0&&Array.isArray(this.data)?n=this.data:n=Z1(this,"children")||[];for(let r=0,i=n.length;r<i;r++)this.insertChild({data:n[r]})}get label(){return Z1(this,"label")}get key(){const e=this.store.key;return this.data?this.data[e]:null}get disabled(){return Z1(this,"disabled")}get nextSibling(){const e=this.parent;if(e){const n=e.childNodes.indexOf(this);if(n>-1)return e.childNodes[n+1]}return null}get previousSibling(){const e=this.parent;if(e){const n=e.childNodes.indexOf(this);if(n>-1)return n>0?e.childNodes[n-1]:null}return null}contains(e,n=!0){return(this.childNodes||[]).some(r=>r===e||n&&r.contains(e))}remove(){const e=this.parent;e&&e.removeChild(this)}insertChild(e,n,r){if(!e)throw new Error("InsertChild error: child is required.");if(!(e instanceof Ed)){if(!r){const i=this.getChildren(!0);i.includes(e.data)||(typeof n>"u"||n<0?i.push(e.data):i.splice(n,0,e.data))}Object.assign(e,{parent:this,store:this.store}),e=h.reactive(new Ed(e)),e instanceof Ed&&e.initialize()}e.level=this.level+1,typeof n>"u"||n<0?this.childNodes.push(e):this.childNodes.splice(n,0,e),this.updateLeafState()}insertBefore(e,n){let r;n&&(r=this.childNodes.indexOf(n)),this.insertChild(e,r)}insertAfter(e,n){let r;n&&(r=this.childNodes.indexOf(n),r!==-1&&(r+=1)),this.insertChild(e,r)}removeChild(e){const n=this.getChildren()||[],r=n.indexOf(e.data);r>-1&&n.splice(r,1);const i=this.childNodes.indexOf(e);i>-1&&(this.store&&this.store.deregisterNode(e),e.parent=null,this.childNodes.splice(i,1)),this.updateLeafState()}removeChildByData(e){let n=null;for(let r=0;r<this.childNodes.length;r++)if(this.childNodes[r].data===e){n=this.childNodes[r];break}n&&this.removeChild(n)}expand(e,n){const r=()=>{if(n){let i=this.parent;for(;i.level>0;)i.expanded=!0,i=i.parent}this.expanded=!0,e&&e(),this.childNodes.forEach(i=>{i.canFocus=!0})};this.shouldLoadData()?this.loadData(i=>{Array.isArray(i)&&(this.checked?this.setChecked(!0,!0):this.store.checkStrictly||_0(this),r())}):r()}doCreateChildren(e,n={}){e.forEach(r=>{this.insertChild(Object.assign({data:r},n),void 0,!0)})}collapse(){this.expanded=!1,this.childNodes.forEach(e=>{e.canFocus=!1})}shouldLoadData(){return this.store.lazy===!0&&this.store.load&&!this.loaded}updateLeafState(){if(this.store.lazy===!0&&this.loaded!==!0&&typeof this.isLeafByUser<"u"){this.isLeaf=this.isLeafByUser;return}const e=this.childNodes;if(!this.store.lazy||this.store.lazy===!0&&this.loaded===!0){this.isLeaf=!e||e.length===0;return}this.isLeaf=!1}setChecked(e,n,r,i){if(this.indeterminate=e==="half",this.checked=e===!0,this.store.checkStrictly)return;if(!(this.shouldLoadData()&&!this.store.checkDescendants)){const{all:a,allWithoutDisable:s}=pD(this.childNodes);!this.isLeaf&&!a&&s&&(this.checked=!1,e=!1);const l=()=>{if(n){const u=this.childNodes;for(let d=0,p=u.length;d<p;d++){const v=u[d];i=i||e!==!1;const g=v.disabled?v.checked:i;v.setChecked(g,n,!0,i)}const{half:c,all:f}=pD(u);f||(this.checked=f,this.indeterminate=c)}};if(this.shouldLoadData()){this.loadData(()=>{l(),_0(this)},{checked:e!==!1});return}else l()}const o=this.parent;!o||o.level===0||r||_0(o)}getChildren(e=!1){if(this.level===0)return this.data;const n=this.data;if(!n)return null;const r=this.store.props;let i="children";return r&&(i=r.children||"children"),n[i]===void 0&&(n[i]=null),e&&!n[i]&&(n[i]=[]),n[i]}updateChildren(){const e=this.getChildren()||[],n=this.childNodes.map(o=>o.data),r={},i=[];e.forEach((o,a)=>{const s=o[iv];!!s&&n.findIndex(u=>u[iv]===s)>=0?r[s]={index:a,data:o}:i.push({index:a,data:o})}),this.store.lazy||n.forEach(o=>{r[o[iv]]||this.removeChildByData(o)}),i.forEach(({index:o,data:a})=>{this.insertChild({data:a},o)}),this.updateLeafState()}loadData(e,n={}){if(this.store.lazy===!0&&this.store.load&&!this.loaded&&(!this.loading||Object.keys(n).length)){this.loading=!0;const r=o=>{this.childNodes=[],this.doCreateChildren(o,n),this.loaded=!0,this.loading=!1,this.updateLeafState(),e&&e.call(this,o)},i=()=>{this.loading=!1};this.store.load(this,r,i)}else e&&e.call(this)}eachNode(e){const n=[this];for(;n.length;){const r=n.shift();n.unshift(...r.childNodes),e(r)}}reInitChecked(){this.store.checkStrictly||_0(this)}}class nDe{constructor(e){this.currentNode=null,this.currentNodeKey=null;for(const n in e)Yd(e,n)&&(this[n]=e[n]);this.nodesMap={}}initialize(){if(this.root=new Ed({data:this.data,store:this}),this.root.initialize(),this.lazy&&this.load){const e=this.load;e(this.root,n=>{this.root.doCreateChildren(n),this._initDefaultCheckedNodes()})}else this._initDefaultCheckedNodes()}filter(e){const n=this.filterNodeMethod,r=this.lazy,i=function(o){const a=o.root?o.root.childNodes:o.childNodes;if(a.forEach(s=>{s.visible=n.call(s,e,s.data,s),i(s)}),!o.visible&&a.length){let s=!0;s=!a.some(l=>l.visible),o.root?o.root.visible=s===!1:o.visible=s===!1}e&&o.visible&&!o.isLeaf&&(!r||o.loaded)&&o.expand()};i(this)}setData(e){e!==this.root.data?(this.root.setData(e),this._initDefaultCheckedNodes()):this.root.updateChildren()}getNode(e){if(e instanceof Ed)return e;const n=qd(e)?zL(this.key,e):e;return this.nodesMap[n]||null}insertBefore(e,n){const r=this.getNode(n);r.parent.insertBefore({data:e},r)}insertAfter(e,n){const r=this.getNode(n);r.parent.insertAfter({data:e},r)}remove(e){const n=this.getNode(e);n&&n.parent&&(n===this.currentNode&&(this.currentNode=null),n.parent.removeChild(n))}append(e,n){const r=Av(n)?this.root:this.getNode(n);r&&r.insertChild({data:e})}_initDefaultCheckedNodes(){const e=this.defaultCheckedKeys||[],n=this.nodesMap;e.forEach(r=>{const i=n[r];i&&i.setChecked(!0,!this.checkStrictly)})}_initDefaultCheckedNode(e){(this.defaultCheckedKeys||[]).includes(e.key)&&e.setChecked(!0,!this.checkStrictly)}setDefaultCheckedKey(e){e!==this.defaultCheckedKeys&&(this.defaultCheckedKeys=e,this._initDefaultCheckedNodes())}registerNode(e){const n=this.key;!e||!e.data||(n?e.key!==void 0&&(this.nodesMap[e.key]=e):this.nodesMap[e.id]=e)}deregisterNode(e){!this.key||!e||!e.data||(e.childNodes.forEach(r=>{this.deregisterNode(r)}),delete this.nodesMap[e.key])}getCheckedNodes(e=!1,n=!1){const r=[],i=function(o){(o.root?o.root.childNodes:o.childNodes).forEach(s=>{(s.checked||n&&s.indeterminate)&&(!e||e&&s.isLeaf)&&r.push(s.data),i(s)})};return i(this),r}getCheckedKeys(e=!1){return this.getCheckedNodes(e).map(n=>(n||{})[this.key])}getHalfCheckedNodes(){const e=[],n=function(r){(r.root?r.root.childNodes:r.childNodes).forEach(o=>{o.indeterminate&&e.push(o.data),n(o)})};return n(this),e}getHalfCheckedKeys(){return this.getHalfCheckedNodes().map(e=>(e||{})[this.key])}_getAllNodes(){const e=[],n=this.nodesMap;for(const r in n)Yd(n,r)&&e.push(n[r]);return e}updateChildren(e,n){const r=this.nodesMap[e];if(!r)return;const i=r.childNodes;for(let o=i.length-1;o>=0;o--){const a=i[o];this.remove(a.data)}for(let o=0,a=n.length;o<a;o++){const s=n[o];this.append(s,r.data)}}_setCheckedKeys(e,n=!1,r){const i=this._getAllNodes().sort((l,u)=>l.level-u.level),o=Object.create(null),a=Object.keys(r);i.forEach(l=>l.setChecked(!1,!1));const s=l=>{l.childNodes.forEach(u=>{var c;o[u.data[e]]=!0,(c=u.childNodes)!=null&&c.length&&s(u)})};for(let l=0,u=i.length;l<u;l++){const c=i[l],f=c.data[e].toString();if(!a.includes(f)){c.checked&&!o[f]&&c.setChecked(!1,!1);continue}if(c.childNodes.length&&s(c),c.isLeaf||this.checkStrictly){c.setChecked(!0,!1);continue}if(c.setChecked(!0,!0),n){c.setChecked(!1,!1);const p=function(v){v.childNodes.forEach(m=>{m.isLeaf||m.setChecked(!1,!1),p(m)})};p(c)}}}setCheckedNodes(e,n=!1){const r=this.key,i={};e.forEach(o=>{i[(o||{})[r]]=!0}),this._setCheckedKeys(r,n,i)}setCheckedKeys(e,n=!1){this.defaultCheckedKeys=e;const r=this.key,i={};e.forEach(o=>{i[o]=!0}),this._setCheckedKeys(r,n,i)}setDefaultExpandedKeys(e){e=e||[],this.defaultExpandedKeys=e,e.forEach(n=>{const r=this.getNode(n);r&&r.expand(null,this.autoExpandParent)})}setChecked(e,n,r){const i=this.getNode(e);i&&i.setChecked(!!n,r)}getCurrentNode(){return this.currentNode}setCurrentNode(e){const n=this.currentNode;n&&(n.isCurrent=!1),this.currentNode=e,this.currentNode.isCurrent=!0}setUserCurrentNode(e,n=!0){const r=e[this.key],i=this.nodesMap[r];this.setCurrentNode(i),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0)}setCurrentNodeKey(e,n=!0){if(e==null){this.currentNode&&(this.currentNode.isCurrent=!1),this.currentNode=null;return}const r=this.getNode(e);r&&(this.setCurrentNode(r),n&&this.currentNode.level>1&&this.currentNode.parent.expand(null,!0))}}const rDe=h.defineComponent({name:"ElTreeNodeContent",props:{node:{type:Object,required:!0},renderContent:Function},setup(t){const e=an("tree"),n=h.inject("NodeInstance"),r=h.inject("RootTree");return()=>{const i=t.node,{data:o,store:a}=i;return t.renderContent?t.renderContent(h.h,{_self:n,node:i,data:o,store:a}):h.renderSlot(r.ctx.slots,"default",{node:i,data:o},()=>[h.h("span",{class:e.be("node","label")},[i.label])])}}});var iDe=pn(rDe,[["__file","tree-node-content.vue"]]);function _te(t){const e=h.inject("TreeNodeMap",null),n={treeNodeExpand:r=>{t.node!==r&&t.node.collapse()},children:[]};return e&&e.children.push(n),h.provide("TreeNodeMap",n),{broadcastExpanded:r=>{if(t.accordion)for(const i of n.children)i.treeNodeExpand(r)}}}const Ote=Symbol("dragEvents");function oDe({props:t,ctx:e,el$:n,dropIndicator$:r,store:i}){const o=an("tree"),a=h.ref({showDropIndicator:!1,draggingNode:null,dropNode:null,allowDrop:!0,dropType:null}),s=({event:c,treeNode:f})=>{if(typeof t.allowDrag=="function"&&!t.allowDrag(f.node))return c.preventDefault(),!1;c.dataTransfer.effectAllowed="move";try{c.dataTransfer.setData("text/plain","")}catch{}a.value.draggingNode=f,e.emit("node-drag-start",f.node,c)},l=({event:c,treeNode:f})=>{const d=f,p=a.value.dropNode;p&&p.node.id!==d.node.id&&Ww(p.$el,o.is("drop-inner"));const v=a.value.draggingNode;if(!v||!d)return;let g=!0,m=!0,y=!0,b=!0;typeof t.allowDrop=="function"&&(g=t.allowDrop(v.node,d.node,"prev"),b=m=t.allowDrop(v.node,d.node,"inner"),y=t.allowDrop(v.node,d.node,"next")),c.dataTransfer.dropEffect=m||g||y?"move":"none",(g||m||y)&&(p==null?void 0:p.node.id)!==d.node.id&&(p&&e.emit("node-drag-leave",v.node,p.node,c),e.emit("node-drag-enter",v.node,d.node,c)),g||m||y?a.value.dropNode=d:a.value.dropNode=null,d.node.nextSibling===v.node&&(y=!1),d.node.previousSibling===v.node&&(g=!1),d.node.contains(v.node,!1)&&(m=!1),(v.node===d.node||v.node.contains(d.node))&&(g=!1,m=!1,y=!1);const O=d.$el.querySelector(`.${o.be("node","content")}`).getBoundingClientRect(),w=n.value.getBoundingClientRect();let x;const S=g?m?.25:y?.45:1:-1,T=y?m?.75:g?.55:0:1;let $=-9999;const A=c.clientY-O.top;A<O.height*S?x="before":A>O.height*T?x="after":m?x="inner":x="none";const P=d.$el.querySelector(`.${o.be("node","expand-icon")}`).getBoundingClientRect(),M=r.value;x==="before"?$=P.top-w.top:x==="after"&&($=P.bottom-w.top),M.style.top=`${$}px`,M.style.left=`${P.right-w.left}px`,x==="inner"?bee(d.$el,o.is("drop-inner")):Ww(d.$el,o.is("drop-inner")),a.value.showDropIndicator=x==="before"||x==="after",a.value.allowDrop=a.value.showDropIndicator||b,a.value.dropType=x,e.emit("node-drag-over",v.node,d.node,c)},u=c=>{const{draggingNode:f,dropType:d,dropNode:p}=a.value;if(c.preventDefault(),c.dataTransfer.dropEffect="move",f&&p){const v={data:f.node.data};d!=="none"&&f.node.remove(),d==="before"?p.node.parent.insertBefore(v,p.node):d==="after"?p.node.parent.insertAfter(v,p.node):d==="inner"&&p.node.insertChild(v),d!=="none"&&(i.value.registerNode(v),i.value.key&&f.node.eachNode(g=>{var m;(m=i.value.nodesMap[g.data[i.value.key]])==null||m.setChecked(g.checked,!i.value.checkStrictly)})),Ww(p.$el,o.is("drop-inner")),e.emit("node-drag-end",f.node,p.node,d,c),d!=="none"&&e.emit("node-drop",f.node,p.node,d,c)}f&&!p&&e.emit("node-drag-end",f.node,null,d,c),a.value.showDropIndicator=!1,a.value.draggingNode=null,a.value.dropNode=null,a.value.allowDrop=!0};return h.provide(Ote,{treeNodeDragStart:s,treeNodeDragOver:l,treeNodeDragEnd:u}),{dragState:a}}const aDe=h.defineComponent({name:"ElTreeNode",components:{ElCollapseTransition:iIe,ElCheckbox:FMe,NodeContent:iDe,ElIcon:Za,Loading:wL},props:{node:{type:Ed,default:()=>({})},props:{type:Object,default:()=>({})},accordion:Boolean,renderContent:Function,renderAfterExpand:Boolean,showCheckbox:{type:Boolean,default:!1}},emits:["node-expand"],setup(t,e){const n=an("tree"),{broadcastExpanded:r}=_te(t),i=h.inject("RootTree"),o=h.ref(!1),a=h.ref(!1),s=h.ref(null),l=h.ref(null),u=h.ref(null),c=h.inject(Ote),f=h.getCurrentInstance();h.provide("NodeInstance",f),i||ci("Tree","Can not find node's tree."),t.node.expanded&&(o.value=!0,a.value=!0);const d=i.props.props.children||"children";h.watch(()=>{const A=t.node.data[d];return A&&[...A]},()=>{t.node.updateChildren()}),h.watch(()=>t.node.indeterminate,A=>{g(t.node.checked,A)}),h.watch(()=>t.node.checked,A=>{g(A,t.node.indeterminate)}),h.watch(()=>t.node.childNodes.length,()=>t.node.reInitChecked()),h.watch(()=>t.node.expanded,A=>{h.nextTick(()=>o.value=A),A&&(a.value=!0)});const p=A=>zL(i.props.nodeKey,A.data),v=A=>{const P=t.props.class;if(!P)return{};let M;if(pd(P)){const{data:I}=A;M=P(I,A)}else M=P;return Pi(M)?{[M]:!0}:M},g=(A,P)=>{(s.value!==A||l.value!==P)&&i.ctx.emit("check-change",t.node.data,A,P),s.value=A,l.value=P},m=A=>{hD(i.store,i.ctx.emit,()=>i.store.value.setCurrentNode(t.node)),i.currentNode.value=t.node,i.props.expandOnClickNode&&b(),i.props.checkOnClickNode&&!t.node.disabled&&O(null,{target:{checked:!t.node.checked}}),i.ctx.emit("node-click",t.node.data,t.node,f,A)},y=A=>{i.instance.vnode.props.onNodeContextmenu&&(A.stopPropagation(),A.preventDefault()),i.ctx.emit("node-contextmenu",A,t.node.data,t.node,f)},b=()=>{t.node.isLeaf||(o.value?(i.ctx.emit("node-collapse",t.node.data,t.node,f),t.node.collapse()):(t.node.expand(),e.emit("node-expand",t.node.data,t.node,f)))},O=(A,P)=>{t.node.setChecked(P.target.checked,!i.props.checkStrictly),h.nextTick(()=>{const M=i.store.value;i.ctx.emit("check",t.node.data,{checkedNodes:M.getCheckedNodes(),checkedKeys:M.getCheckedKeys(),halfCheckedNodes:M.getHalfCheckedNodes(),halfCheckedKeys:M.getHalfCheckedKeys()})})};return{ns:n,node$:u,tree:i,expanded:o,childNodeRendered:a,oldChecked:s,oldIndeterminate:l,getNodeKey:p,getNodeClass:v,handleSelectChange:g,handleClick:m,handleContextMenu:y,handleExpandIconClick:b,handleCheckChange:O,handleChildNodeExpand:(A,P,M)=>{r(P),i.ctx.emit("node-expand",A,P,M)},handleDragStart:A=>{i.props.draggable&&c.treeNodeDragStart({event:A,treeNode:t})},handleDragOver:A=>{A.preventDefault(),i.props.draggable&&c.treeNodeDragOver({event:A,treeNode:{$el:u.value,node:t.node}})},handleDrop:A=>{A.preventDefault()},handleDragEnd:A=>{i.props.draggable&&c.treeNodeDragEnd(A)},CaretRight:d2e}}}),sDe=["aria-expanded","aria-disabled","aria-checked","draggable","data-key"],lDe=["aria-expanded"];function uDe(t,e,n,r,i,o){const a=h.resolveComponent("el-icon"),s=h.resolveComponent("el-checkbox"),l=h.resolveComponent("loading"),u=h.resolveComponent("node-content"),c=h.resolveComponent("el-tree-node"),f=h.resolveComponent("el-collapse-transition");return h.withDirectives((h.openBlock(),h.createElementBlock("div",{ref:"node$",class:h.normalizeClass([t.ns.b("node"),t.ns.is("expanded",t.expanded),t.ns.is("current",t.node.isCurrent),t.ns.is("hidden",!t.node.visible),t.ns.is("focusable",!t.node.disabled),t.ns.is("checked",!t.node.disabled&&t.node.checked),t.getNodeClass(t.node)]),role:"treeitem",tabindex:"-1","aria-expanded":t.expanded,"aria-disabled":t.node.disabled,"aria-checked":t.node.checked,draggable:t.tree.props.draggable,"data-key":t.getNodeKey(t.node),onClick:e[1]||(e[1]=h.withModifiers((...d)=>t.handleClick&&t.handleClick(...d),["stop"])),onContextmenu:e[2]||(e[2]=(...d)=>t.handleContextMenu&&t.handleContextMenu(...d)),onDragstart:e[3]||(e[3]=h.withModifiers((...d)=>t.handleDragStart&&t.handleDragStart(...d),["stop"])),onDragover:e[4]||(e[4]=h.withModifiers((...d)=>t.handleDragOver&&t.handleDragOver(...d),["stop"])),onDragend:e[5]||(e[5]=h.withModifiers((...d)=>t.handleDragEnd&&t.handleDragEnd(...d),["stop"])),onDrop:e[6]||(e[6]=h.withModifiers((...d)=>t.handleDrop&&t.handleDrop(...d),["stop"]))},[h.createElementVNode("div",{class:h.normalizeClass(t.ns.be("node","content")),style:h.normalizeStyle({paddingLeft:(t.node.level-1)*t.tree.props.indent+"px"})},[t.tree.props.icon||t.CaretRight?(h.openBlock(),h.createBlock(a,{key:0,class:h.normalizeClass([t.ns.be("node","expand-icon"),t.ns.is("leaf",t.node.isLeaf),{expanded:!t.node.isLeaf&&t.expanded}]),onClick:h.withModifiers(t.handleExpandIconClick,["stop"])},{default:h.withCtx(()=>[(h.openBlock(),h.createBlock(h.resolveDynamicComponent(t.tree.props.icon||t.CaretRight)))]),_:1},8,["class","onClick"])):h.createCommentVNode("v-if",!0),t.showCheckbox?(h.openBlock(),h.createBlock(s,{key:1,"model-value":t.node.checked,indeterminate:t.node.indeterminate,disabled:!!t.node.disabled,onClick:e[0]||(e[0]=h.withModifiers(()=>{},["stop"])),onChange:t.handleCheckChange},null,8,["model-value","indeterminate","disabled","onChange"])):h.createCommentVNode("v-if",!0),t.node.loading?(h.openBlock(),h.createBlock(a,{key:2,class:h.normalizeClass([t.ns.be("node","loading-icon"),t.ns.is("loading")])},{default:h.withCtx(()=>[h.createVNode(l)]),_:1},8,["class"])):h.createCommentVNode("v-if",!0),h.createVNode(u,{node:t.node,"render-content":t.renderContent},null,8,["node","render-content"])],6),h.createVNode(f,null,{default:h.withCtx(()=>[!t.renderAfterExpand||t.childNodeRendered?h.withDirectives((h.openBlock(),h.createElementBlock("div",{key:0,class:h.normalizeClass(t.ns.be("node","children")),role:"group","aria-expanded":t.expanded},[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t.node.childNodes,d=>(h.openBlock(),h.createBlock(c,{key:t.getNodeKey(d),"render-content":t.renderContent,"render-after-expand":t.renderAfterExpand,"show-checkbox":t.showCheckbox,node:d,accordion:t.accordion,props:t.props,onNodeExpand:t.handleChildNodeExpand},null,8,["render-content","render-after-expand","show-checkbox","node","accordion","props","onNodeExpand"]))),128))],10,lDe)),[[h.vShow,t.expanded]]):h.createCommentVNode("v-if",!0)]),_:1})],42,sDe)),[[h.vShow,t.node.visible]])}var cDe=pn(aDe,[["render",uDe],["__file","tree-node.vue"]]);function fDe({el$:t},e){const n=an("tree"),r=h.shallowRef([]),i=h.shallowRef([]);h.onMounted(()=>{a()}),h.onUpdated(()=>{r.value=Array.from(t.value.querySelectorAll("[role=treeitem]")),i.value=Array.from(t.value.querySelectorAll("input[type=checkbox]"))}),h.watch(i,s=>{s.forEach(l=>{l.setAttribute("tabindex","-1")})}),W0(t,"keydown",s=>{const l=s.target;if(!l.className.includes(n.b("node")))return;const u=s.code;r.value=Array.from(t.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`));const c=r.value.indexOf(l);let f;if([Ui.up,Ui.down].includes(u)){if(s.preventDefault(),u===Ui.up){f=c===-1?0:c!==0?c-1:r.value.length-1;const p=f;for(;!e.value.getNode(r.value[f].dataset.key).canFocus;){if(f--,f===p){f=-1;break}f<0&&(f=r.value.length-1)}}else{f=c===-1?0:c<r.value.length-1?c+1:0;const p=f;for(;!e.value.getNode(r.value[f].dataset.key).canFocus;){if(f++,f===p){f=-1;break}f>=r.value.length&&(f=0)}}f!==-1&&r.value[f].focus()}[Ui.left,Ui.right].includes(u)&&(s.preventDefault(),l.click());const d=l.querySelector('[type="checkbox"]');[Ui.enter,Ui.space].includes(u)&&d&&(s.preventDefault(),d.click())});const a=()=>{var s;r.value=Array.from(t.value.querySelectorAll(`.${n.is("focusable")}[role=treeitem]`)),i.value=Array.from(t.value.querySelectorAll("input[type=checkbox]"));const l=t.value.querySelectorAll(`.${n.is("checked")}[role=treeitem]`);if(l.length){l[0].setAttribute("tabindex","0");return}(s=r.value[0])==null||s.setAttribute("tabindex","0")}}const dDe=h.defineComponent({name:"ElTree",components:{ElTreeNode:cDe},props:{data:{type:Array,default:()=>[]},emptyText:{type:String},renderAfterExpand:{type:Boolean,default:!0},nodeKey:String,checkStrictly:Boolean,defaultExpandAll:Boolean,expandOnClickNode:{type:Boolean,default:!0},checkOnClickNode:Boolean,checkDescendants:{type:Boolean,default:!1},autoExpandParent:{type:Boolean,default:!0},defaultCheckedKeys:Array,defaultExpandedKeys:Array,currentNodeKey:[String,Number],renderContent:Function,showCheckbox:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},allowDrag:Function,allowDrop:Function,props:{type:Object,default:()=>({children:"children",label:"label",disabled:"disabled"})},lazy:{type:Boolean,default:!1},highlightCurrent:Boolean,load:Function,filterNodeMethod:Function,accordion:Boolean,indent:{type:Number,default:18},icon:{type:Mv}},emits:["check-change","current-change","node-click","node-contextmenu","node-collapse","node-expand","check","node-drag-start","node-drag-end","node-drop","node-drag-leave","node-drag-enter","node-drag-over"],setup(t,e){const{t:n}=xL(),r=an("tree"),i=h.inject(eDe,null),o=h.ref(new nDe({key:t.nodeKey,data:t.data,lazy:t.lazy,props:t.props,load:t.load,currentNodeKey:t.currentNodeKey,checkStrictly:t.checkStrictly,checkDescendants:t.checkDescendants,defaultCheckedKeys:t.defaultCheckedKeys,defaultExpandedKeys:t.defaultExpandedKeys,autoExpandParent:t.autoExpandParent,defaultExpandAll:t.defaultExpandAll,filterNodeMethod:t.filterNodeMethod}));o.value.initialize();const a=h.ref(o.value.root),s=h.ref(null),l=h.ref(null),u=h.ref(null),{broadcastExpanded:c}=_te(t),{dragState:f}=oDe({props:t,ctx:e,el$:l,dropIndicator$:u,store:o});fDe({el$:l},o);const d=h.computed(()=>{const{childNodes:z}=a.value,W=i?i.hasFilteredOptions!==0:!1;return(!z||z.length===0||z.every(({visible:j})=>!j))&&!W});h.watch(()=>t.currentNodeKey,z=>{o.value.setCurrentNodeKey(z)}),h.watch(()=>t.defaultCheckedKeys,z=>{o.value.setDefaultCheckedKey(z)}),h.watch(()=>t.defaultExpandedKeys,z=>{o.value.setDefaultExpandedKeys(z)}),h.watch(()=>t.data,z=>{o.value.setData(z)},{deep:!0}),h.watch(()=>t.checkStrictly,z=>{o.value.checkStrictly=z});const p=z=>{if(!t.filterNodeMethod)throw new Error("[Tree] filterNodeMethod is required when filter");o.value.filter(z)},v=z=>zL(t.nodeKey,z.data),g=z=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in getNodePath");const W=o.value.getNode(z);if(!W)return[];const j=[W.data];let H=W.parent;for(;H&&H!==a.value;)j.push(H.data),H=H.parent;return j.reverse()},m=(z,W)=>o.value.getCheckedNodes(z,W),y=z=>o.value.getCheckedKeys(z),b=()=>{const z=o.value.getCurrentNode();return z?z.data:null},O=()=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in getCurrentKey");const z=b();return z?z[t.nodeKey]:null},w=(z,W)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedNodes");o.value.setCheckedNodes(z,W)},x=(z,W)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCheckedKeys");o.value.setCheckedKeys(z,W)},S=(z,W,j)=>{o.value.setChecked(z,W,j)},T=()=>o.value.getHalfCheckedNodes(),$=()=>o.value.getHalfCheckedKeys(),A=(z,W=!0)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentNode");hD(o,e.emit,()=>o.value.setUserCurrentNode(z,W))},P=(z,W=!0)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in setCurrentKey");hD(o,e.emit,()=>o.value.setCurrentNodeKey(z,W))},M=z=>o.value.getNode(z),I=z=>{o.value.remove(z)},R=(z,W)=>{o.value.append(z,W)},L=(z,W)=>{o.value.insertBefore(z,W)},D=(z,W)=>{o.value.insertAfter(z,W)},B=(z,W,j)=>{c(W),e.emit("node-expand",z,W,j)},F=(z,W)=>{if(!t.nodeKey)throw new Error("[Tree] nodeKey is required in updateKeyChild");o.value.updateChildren(z,W)};return h.provide("RootTree",{ctx:e,props:t,store:o,root:a,currentNode:s,instance:h.getCurrentInstance()}),h.provide(ky,void 0),{ns:r,store:o,root:a,currentNode:s,dragState:f,el$:l,dropIndicator$:u,isEmpty:d,filter:p,getNodeKey:v,getNodePath:g,getCheckedNodes:m,getCheckedKeys:y,getCurrentNode:b,getCurrentKey:O,setCheckedNodes:w,setCheckedKeys:x,setChecked:S,getHalfCheckedNodes:T,getHalfCheckedKeys:$,setCurrentNode:A,setCurrentKey:P,t:n,getNode:M,remove:I,append:R,insertBefore:L,insertAfter:D,handleNodeExpand:B,updateKeyChildren:F}}});function hDe(t,e,n,r,i,o){const a=h.resolveComponent("el-tree-node");return h.openBlock(),h.createElementBlock("div",{ref:"el$",class:h.normalizeClass([t.ns.b(),t.ns.is("dragging",!!t.dragState.draggingNode),t.ns.is("drop-not-allow",!t.dragState.allowDrop),t.ns.is("drop-inner",t.dragState.dropType==="inner"),{[t.ns.m("highlight-current")]:t.highlightCurrent}]),role:"tree"},[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(t.root.childNodes,s=>(h.openBlock(),h.createBlock(a,{key:t.getNodeKey(s),node:s,props:t.props,accordion:t.accordion,"render-after-expand":t.renderAfterExpand,"show-checkbox":t.showCheckbox,"render-content":t.renderContent,onNodeExpand:t.handleNodeExpand},null,8,["node","props","accordion","render-after-expand","show-checkbox","render-content","onNodeExpand"]))),128)),t.isEmpty?(h.openBlock(),h.createElementBlock("div",{key:0,class:h.normalizeClass(t.ns.e("empty-block"))},[h.renderSlot(t.$slots,"empty",{},()=>{var s;return[h.createElementVNode("span",{class:h.normalizeClass(t.ns.e("empty-text"))},h.toDisplayString((s=t.emptyText)!=null?s:t.t("el.tree.emptyText")),3)]})],2)):h.createCommentVNode("v-if",!0),h.withDirectives(h.createElementVNode("div",{ref:"dropIndicator$",class:h.normalizeClass(t.ns.e("drop-indicator"))},null,2),[[h.vShow,t.dragState.showDropIndicator]])],2)}var Xw=pn(dDe,[["render",hDe],["__file","tree.vue"]]);Xw.install=t=>{t.component(Xw.name,Xw)};const pDe=Xw,UF=pDe;function By(t){"@babel/helpers - typeof";return By=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},By(t)}function vDe(t,e){if(By(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(By(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function gDe(t){var e=vDe(t,"string");return By(e)=="symbol"?e:e+""}function mDe(t,e,n){return(e=gDe(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ZF(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function K(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ZF(Object(n),!0).forEach(function(r){mDe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ZF(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function k(){return k=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)({}).hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},k.apply(null,arguments)}const yDe=t=>typeof t=="function",bDe=Array.isArray,_De=t=>typeof t=="string",ODe=t=>t!==null&&typeof t=="object",wDe=/^on[^a-z]/,xDe=t=>wDe.test(t),wte=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},SDe=/-(\w)/g,FL=wte(t=>t.replace(SDe,(e,n)=>n?n.toUpperCase():"")),CDe=/\B([A-Z])/g,TDe=wte(t=>t.replace(CDe,"-$1").toLowerCase()),PDe=Object.prototype.hasOwnProperty,XF=(t,e)=>PDe.call(t,e);function $De(t,e,n,r){const i=t[n];if(i!=null){const o=XF(i,"default");if(o&&r===void 0){const a=i.default;r=i.type!==Function&&yDe(a)?a():a}i.type===Boolean&&(!XF(e,n)&&!o?r=!1:r===""&&(r=!0))}return r}function ADe(t){return Object.keys(t).reduce((e,n)=>((n.startsWith("data-")||n.startsWith("aria-"))&&(e[n]=t[n]),e),{})}function Pm(t){return typeof t=="number"?`${t}px`:t}function Hp(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return typeof t=="function"?t(e):t??n}function EDe(t){let e;const n=new Promise(i=>{e=t(()=>{i(!0)})}),r=()=>{e==null||e()};return r.then=(i,o)=>n.then(i,o),r.promise=n,r}function Pe(){const t=[];for(let e=0;e<arguments.length;e++){const n=e<0||arguments.length<=e?void 0:arguments[e];if(n){if(_De(n))t.push(n);else if(bDe(n))for(let r=0;r<n.length;r++){const i=Pe(n[r]);i&&t.push(i)}else if(ODe(n))for(const r in n)n[r]&&t.push(r)}}return t.join(" ")}var xte=function(){if(typeof Map<"u")return Map;function t(e,n){var r=-1;return e.some(function(i,o){return i[0]===n?(r=o,!0):!1}),r}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(n){var r=t(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},e.prototype.set=function(n,r){var i=t(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},e.prototype.delete=function(n){var r=this.__entries__,i=t(r,n);~i&&r.splice(i,1)},e.prototype.has=function(n){return!!~t(this.__entries__,n)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,o=this.__entries__;i<o.length;i++){var a=o[i];n.call(r,a[1],a[0])}},e}()}(),vD=typeof window<"u"&&typeof document<"u"&&window.document===document,qx=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),MDe=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(qx):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)}}(),IDe=2;function DDe(t,e){var n=!1,r=!1,i=0;function o(){n&&(n=!1,t()),r&&s()}function a(){MDe(o)}function s(){var l=Date.now();if(n){if(l-i<IDe)return;r=!0}else n=!0,r=!1,setTimeout(a,e);i=l}return s}var RDe=20,kDe=["top","right","bottom","left","width","height","size","weight"],NDe=typeof MutationObserver<"u",LDe=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=DDe(this.refresh.bind(this),RDe)}return t.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},t.prototype.removeObserver=function(e){var n=this.observers_,r=n.indexOf(e);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},t.prototype.updateObservers_=function(){var e=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return e.forEach(function(n){return n.broadcastActive()}),e.length>0},t.prototype.connect_=function(){!vD||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),NDe?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){!vD||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(e){var n=e.propertyName,r=n===void 0?"":n,i=kDe.some(function(o){return!!~r.indexOf(o)});i&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),Ste=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];Object.defineProperty(t,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return t},Bv=function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||qx},Cte=_T(0,0,0,0);function Kx(t){return parseFloat(t)||0}function YF(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(r,i){var o=t["border-"+i+"-width"];return r+Kx(o)},0)}function BDe(t){for(var e=["top","right","bottom","left"],n={},r=0,i=e;r<i.length;r++){var o=i[r],a=t["padding-"+o];n[o]=Kx(a)}return n}function VDe(t){var e=t.getBBox();return _T(0,0,e.width,e.height)}function zDe(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return Cte;var r=Bv(t).getComputedStyle(t),i=BDe(r),o=i.left+i.right,a=i.top+i.bottom,s=Kx(r.width),l=Kx(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+o)!==e&&(s-=YF(r,"left","right")+o),Math.round(l+a)!==n&&(l-=YF(r,"top","bottom")+a)),!WDe(t)){var u=Math.round(s+o)-e,c=Math.round(l+a)-n;Math.abs(u)!==1&&(s-=u),Math.abs(c)!==1&&(l-=c)}return _T(i.left,i.top,s,l)}var FDe=function(){return typeof SVGGraphicsElement<"u"?function(t){return t instanceof Bv(t).SVGGraphicsElement}:function(t){return t instanceof Bv(t).SVGElement&&typeof t.getBBox=="function"}}();function WDe(t){return t===Bv(t).document.documentElement}function QDe(t){return vD?FDe(t)?VDe(t):zDe(t):Cte}function HDe(t){var e=t.x,n=t.y,r=t.width,i=t.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(o.prototype);return Ste(a,{x:e,y:n,width:r,height:i,top:n,right:e+r,bottom:i+n,left:e}),a}function _T(t,e,n,r){return{x:t,y:e,width:n,height:r}}var GDe=function(){function t(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=_T(0,0,0,0),this.target=e}return t.prototype.isActive=function(){var e=QDe(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},t}(),jDe=function(){function t(e,n){var r=HDe(n);Ste(this,{target:e,contentRect:r})}return t}(),UDe=function(){function t(e,n,r){if(this.activeObservations_=[],this.observations_=new xte,typeof e!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=n,this.callbackCtx_=r}return t.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof Bv(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)||(n.set(e,new GDe(e)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof Bv(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)&&(n.delete(e),n.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&e.activeObservations_.push(n)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new jDe(r.target,r.broadcastRect())});this.callback_.call(e,n,e),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),Tte=typeof WeakMap<"u"?new WeakMap:new xte,Pte=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=LDe.getInstance(),r=new UDe(e,n,this);Tte.set(this,r)}return t}();["observe","unobserve","disconnect"].forEach(function(t){Pte.prototype[t]=function(){var e;return(e=Tte.get(this))[t].apply(e,arguments)}});var $te=function(){return typeof qx.ResizeObserver<"u"?qx.ResizeObserver:Pte}();const gD=t=>t!=null&&t!=="",Ir=(t,e)=>{const n=k({},t);return Object.keys(e).forEach(r=>{const i=n[r];if(i)i.type||i.default?i.default=e[r]:i.def?i.def(e[r]):n[r]={type:i,default:e[r]};else throw new Error(`not have ${r} prop`)}),n},ZDe=t=>{const e=Object.keys(t),n={},r={},i={};for(let o=0,a=e.length;o<a;o++){const s=e[o];xDe(s)?(n[s[2].toLowerCase()+s.slice(3)]=t[s],r[s]=t[s]):i[s]=t[s]}return{onEvents:r,events:n,extraAttrs:i}},XDe=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n={},r=/;(?![^(]*\))/g,i=/:(.+)/;return typeof t=="object"?t:(t.split(r).forEach(function(o){if(o){const a=o.split(i);if(a.length>1){const s=e?FL(a[0].trim()):a[0].trim();n[s]=a[1].trim()}}}),n)},Jx=(t,e)=>t[e]!==void 0,Ate=Symbol("skipFlatten"),wr=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const n=Array.isArray(t)?t:[t],r=[];return n.forEach(i=>{Array.isArray(i)?r.push(...wr(i,e)):i&&i.type===h.Fragment?i.key===Ate?r.push(i):r.push(...wr(i.children,e)):i&&h.isVNode(i)?e&&!WL(i)?r.push(i):e||r.push(i):gD(i)&&r.push(i)}),r},Ete=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(h.isVNode(t))return t.type===h.Fragment?e==="default"?wr(t.children):[]:t.children&&t.children[e]?wr(t.children[e](n)):[];{const r=t.$slots[e]&&t.$slots[e](n);return wr(r)}},Fl=t=>{var e;let n=((e=t==null?void 0:t.vnode)===null||e===void 0?void 0:e.el)||t&&(t.$el||t);for(;n&&!n.tagName;)n=n.nextSibling;return n},YDe=t=>{const e={};if(t.$&&t.$.vnode){const n=t.$.vnode.props||{};Object.keys(t.$props).forEach(r=>{const i=t.$props[r],o=TDe(r);(i!==void 0||o in n)&&(e[r]=i)})}else if(h.isVNode(t)&&typeof t.type=="object"){const n=t.props||{},r={};Object.keys(n).forEach(o=>{r[FL(o)]=n[o]});const i=t.type.props||{};Object.keys(i).forEach(o=>{const a=$De(i,r,o,r[o]);(a!==void 0||o in r)&&(e[o]=a)})}return e},qDe=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i;if(t.$){const o=t[e];if(o!==void 0)return typeof o=="function"&&r?o(n):o;i=t.$slots[e],i=r&&i?i(n):i}else if(h.isVNode(t)){const o=t.props&&t.props[e];if(o!==void 0&&t.props!==null)return typeof o=="function"&&r?o(n):o;t.type===h.Fragment?i=t.children:t.children&&t.children[e]&&(i=t.children[e],i=r&&i?i(n):i)}return Array.isArray(i)&&(i=wr(i),i=i.length===1?i[0]:i,i=i.length===0?void 0:i),i};function qF(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n={};return t.$?n=k(k({},n),t.$attrs):n=k(k({},n),t.props),ZDe(n)[e?"onEvents":"events"]}function KDe(t,e){let r=((h.isVNode(t)?t.props:t.$attrs)||{}).style||{};return typeof r=="string"&&(r=XDe(r,e)),r}function JDe(t){return t.length===1&&t[0].type===h.Fragment}function WL(t){return t&&(t.type===h.Comment||t.type===h.Fragment&&t.children.length===0||t.type===h.Text&&t.children.trim()==="")}function fl(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const e=[];return t.forEach(n=>{Array.isArray(n)?e.push(...n):(n==null?void 0:n.type)===h.Fragment?e.push(...fl(n.children)):e.push(n)}),e.filter(n=>!WL(n))}function No(t){return Array.isArray(t)&&t.length===1&&(t=t[0]),t&&t.__v_isVNode&&typeof t.type!="symbol"}function OT(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"default";var r,i;return(r=e[n])!==null&&r!==void 0?r:(i=t[n])===null||i===void 0?void 0:i.call(t)}const Vv=h.defineComponent({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup(t,e){let{slots:n}=e;const r=h.reactive({width:0,height:0,offsetHeight:0,offsetWidth:0});let i=null,o=null;const a=()=>{o&&(o.disconnect(),o=null)},s=c=>{const{onResize:f}=t,d=c[0].target,{width:p,height:v}=d.getBoundingClientRect(),{offsetWidth:g,offsetHeight:m}=d,y=Math.floor(p),b=Math.floor(v);if(r.width!==y||r.height!==b||r.offsetWidth!==g||r.offsetHeight!==m){const O={width:y,height:b,offsetWidth:g,offsetHeight:m};k(r,O),f&&Promise.resolve().then(()=>{f(k(k({},O),{offsetWidth:g,offsetHeight:m}),d)})}},l=h.getCurrentInstance(),u=()=>{const{disabled:c}=t;if(c){a();return}const f=Fl(l);f!==i&&(a(),i=f),!o&&f&&(o=new $te(s),o.observe(f))};return h.onMounted(()=>{u()}),h.onUpdated(()=>{u()}),h.onUnmounted(()=>{a()}),h.watch(()=>t.disabled,()=>{u()},{flush:"post"}),()=>{var c;return(c=n.default)===null||c===void 0?void 0:c.call(n)[0]}}});let Mte=t=>setTimeout(t,16),Ite=t=>clearTimeout(t);typeof window<"u"&&"requestAnimationFrame"in window&&(Mte=t=>window.requestAnimationFrame(t),Ite=t=>window.cancelAnimationFrame(t));let KF=0;const QL=new Map;function Dte(t){QL.delete(t)}function Rt(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;KF+=1;const n=KF;function r(i){if(i===0)Dte(n),t();else{const o=Mte(()=>{r(i-1)});QL.set(n,o)}}return r(e),n}Rt.cancel=t=>{const e=QL.get(t);return Dte(e),Ite(e)};const $c=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e},Og=t=>{const e=t;return e.install=function(n){n.component(e.displayName||e.name,t)},t};function eS(){return{type:[Function,Array]}}function zt(t){return{type:Object,default:t}}function ft(t){return{type:Boolean,default:t}}function ct(t){return{type:Function,default:t}}function la(t,e){return{validator:()=>!0,default:t}}function Jd(t){return{type:Array,default:t}}function In(t){return{type:String,default:t}}function kn(t,e){return t?{type:t,default:e}:la(e)}let Fr=!1;try{const t=Object.defineProperty({},"passive",{get(){Fr=!0}});window.addEventListener("testPassive",null,t),window.removeEventListener("testPassive",null,t)}catch{}function Wr(t,e,n,r){if(t&&t.addEventListener){let i=r;i===void 0&&Fr&&(e==="touchstart"||e==="touchmove"||e==="wheel")&&(i={passive:!1}),t.addEventListener(e,n,i)}return{remove:()=>{t&&t.removeEventListener&&t.removeEventListener(e,n)}}}const HL="anticon",Rte=Symbol("GlobalFormContextKey"),eRe=t=>{h.provide(Rte,t)},tRe=()=>h.inject(Rte,{validateMessages:h.computed(()=>{})}),nRe=()=>({iconPrefixCls:String,getTargetContainer:{type:Function},getPopupContainer:{type:Function},prefixCls:String,getPrefixCls:{type:Function},renderEmpty:{type:Function},transformCellText:{type:Function},csp:zt(),input:zt(),autoInsertSpaceInButton:{type:Boolean,default:void 0},locale:zt(),pageHeader:zt(),componentSize:{type:String},componentDisabled:{type:Boolean,default:void 0},direction:{type:String,default:"ltr"},space:zt(),virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},form:zt(),pagination:zt(),theme:zt(),select:zt(),wave:zt()}),GL=Symbol("configProvider"),kte={getPrefixCls:(t,e)=>e||(t?`ant-${t}`:"ant"),iconPrefixCls:h.computed(()=>HL),getPopupContainer:h.computed(()=>()=>document.body),direction:h.computed(()=>"ltr")},wT=()=>h.inject(GL,kte),rRe=t=>h.provide(GL,t),Nte=Symbol("DisabledContextKey"),il=()=>h.inject(Nte,h.ref(void 0)),Lte=t=>{const e=il();return h.provide(Nte,h.computed(()=>{var n;return(n=t.value)!==null&&n!==void 0?n:e.value})),t},iRe={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages"},oRe={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"Ok",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},Bte={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},JF={lang:k({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},oRe),timePickerLocale:k({},Bte)},mo="${label} is not a valid ${type}",eu={locale:"en",Pagination:iRe,DatePicker:JF,TimePicker:Bte,Calendar:JF,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:mo,method:mo,array:mo,object:mo,number:mo,date:mo,boolean:mo,integer:mo,float:mo,regexp:mo,email:mo,url:mo,hex:mo},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"}},Vte=h.defineComponent({compatConfig:{MODE:3},name:"LocaleReceiver",props:{componentName:String,defaultLocale:{type:[Object,Function]},children:{type:Function}},setup(t,e){let{slots:n}=e;const r=h.inject("localeData",{}),i=h.computed(()=>{const{componentName:a="global",defaultLocale:s}=t,l=s||eu[a||"global"],{antLocale:u}=r,c=a&&u?u[a]:{};return k(k({},typeof l=="function"?l():l),c||{})}),o=h.computed(()=>{const{antLocale:a}=r,s=a&&a.locale;return a&&a.exist&&!s?eu.locale:s});return()=>{const a=t.children||n.default,{antLocale:s}=r;return a==null?void 0:a(i.value,o.value,s)}}});function xT(t,e,n){const r=h.inject("localeData",{});return[h.computed(()=>{const{antLocale:o}=r,a=h.unref(e)||eu[t||"global"],s=t&&o?o[t]:{};return k(k(k({},typeof a=="function"?a():a),s||{}),h.unref(n)||{})})]}function jL(t){for(var e=0,n,r=0,i=t.length;i>=4;++r,i-=4)n=t.charCodeAt(r)&255|(t.charCodeAt(++r)&255)<<8|(t.charCodeAt(++r)&255)<<16|(t.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(i){case 3:e^=(t.charCodeAt(r+2)&255)<<16;case 2:e^=(t.charCodeAt(r+1)&255)<<8;case 1:e^=t.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}const eW="%";class aRe{constructor(e){this.cache=new Map,this.instanceId=e}get(e){return this.cache.get(Array.isArray(e)?e.join(eW):e)||null}update(e,n){const r=Array.isArray(e)?e.join(eW):e,i=this.cache.get(r),o=n(i);o===null?this.cache.delete(r):this.cache.set(r,o)}}const zte="data-token-hash",Md="data-css-hash",sRe="data-cache-path",Gp="__cssinjs_instance__";function Vy(){const t=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const e=document.body.querySelectorAll(`style[${Md}]`)||[],{firstChild:n}=document.head;Array.from(e).forEach(i=>{i[Gp]=i[Gp]||t,i[Gp]===t&&document.head.insertBefore(i,n)});const r={};Array.from(document.querySelectorAll(`style[${Md}]`)).forEach(i=>{var o;const a=i.getAttribute(Md);r[a]?i[Gp]===t&&((o=i.parentNode)===null||o===void 0||o.removeChild(i)):r[a]=!0})}return new aRe(t)}const Fte=Symbol("StyleContextKey"),lRe=()=>{var t,e,n;const r=h.getCurrentInstance();let i;if(r&&r.appContext){const o=(n=(e=(t=r.appContext)===null||t===void 0?void 0:t.config)===null||e===void 0?void 0:e.globalProperties)===null||n===void 0?void 0:n.__ANTDV_CSSINJS_CACHE__;o?i=o:(i=Vy(),r.appContext.config.globalProperties&&(r.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=i))}else i=Vy();return i},Wte={cache:Vy(),defaultCache:!0,hashPriority:"low"},ST=()=>{const t=lRe();return h.inject(Fte,h.shallowRef(k(k({},Wte),{cache:t})))},uRe=t=>{const e=ST(),n=h.shallowRef(k(k({},Wte),{cache:Vy()}));return h.watch([()=>h.unref(t),e],()=>{const r=k({},e.value),i=h.unref(t);Object.keys(i).forEach(a=>{const s=i[a];i[a]!==void 0&&(r[a]=s)});const{cache:o}=i;r.cache=r.cache||Vy(),r.defaultCache=!o&&e.value.defaultCache,n.value=r},{immediate:!0}),h.provide(Fte,n),n},cRe=()=>({autoClear:ft(),mock:In(),cache:zt(),defaultCache:ft(),hashPriority:In(),container:kn(),ssrInline:ft(),transformers:Jd(),linters:Jd()});Og(h.defineComponent({name:"AStyleProvider",inheritAttrs:!1,props:cRe(),setup(t,e){let{slots:n}=e;return uRe(t),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}));function fRe(){return!1}let mD=!1;function dRe(){return mD}const hRe=process.env.NODE_ENV==="production"?fRe:dRe;if(process.env.NODE_ENV!=="production"&&typeof module<"u"&&module&&module.hot&&typeof window<"u"){const t=window;if(typeof t.webpackHotUpdate=="function"){const e=t.webpackHotUpdate;t.webpackHotUpdate=function(){return mD=!0,setTimeout(()=>{mD=!1},0),e(...arguments)}}}function Qte(t,e,n,r){const i=ST(),o=h.shallowRef(""),a=h.shallowRef();h.watchEffect(()=>{o.value=[t,...e.value].join("%")});const s=hRe(),l=u=>{i.value.cache.update(u,c=>{const[f=0,d]=c||[];return f-1===0?(r==null||r(d,!1),null):[f-1,d]})};return h.watch(o,(u,c)=>{c&&l(c),i.value.cache.update(u,f=>{const[d=0,p]=f||[];let v=p;process.env.NODE_ENV!=="production"&&p&&s&&(r==null||r(v,s),v=null);const g=v||n();return[d+1,g]}),a.value=i.value.cache.get(o.value)[1]},{immediate:!0}),h.onBeforeUnmount(()=>{l(o.value)}),a}function Sa(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function qu(t,e){return t&&t.contains?t.contains(e):!1}const tW="data-vc-order",pRe="vc-util-key",yD=new Map;function Hte(){let{mark:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return t?t.startsWith("data-")?t:`data-${t}`:pRe}function CT(t){return t.attachTo?t.attachTo:document.querySelector("head")||document.body}function vRe(t){return t==="queue"?"prependQueue":t?"prepend":"append"}function Gte(t){return Array.from((yD.get(t)||t).children).filter(e=>e.tagName==="STYLE")}function jte(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Sa())return null;const{csp:n,prepend:r}=e,i=document.createElement("style");i.setAttribute(tW,vRe(r)),n!=null&&n.nonce&&(i.nonce=n==null?void 0:n.nonce),i.innerHTML=t;const o=CT(e),{firstChild:a}=o;if(r){if(r==="queue"){const s=Gte(o).filter(l=>["prepend","prependQueue"].includes(l.getAttribute(tW)));if(s.length)return o.insertBefore(i,s[s.length-1].nextSibling),i}o.insertBefore(i,a)}else o.appendChild(i);return i}function Ute(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=CT(e);return Gte(n).find(r=>r.getAttribute(Hte(e))===t)}function tS(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=Ute(t,e);n&&CT(e).removeChild(n)}function gRe(t,e){const n=yD.get(t);if(!n||!qu(document,n)){const r=jte("",e),{parentNode:i}=r;yD.set(t,i),t.removeChild(r)}}function zy(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var r,i,o;const a=CT(n);gRe(a,n);const s=Ute(e,n);if(s)return!((r=n.csp)===null||r===void 0)&&r.nonce&&s.nonce!==((i=n.csp)===null||i===void 0?void 0:i.nonce)&&(s.nonce=(o=n.csp)===null||o===void 0?void 0:o.nonce),s.innerHTML!==t&&(s.innerHTML=t),s;const l=jte(t,n);return l.setAttribute(Hte(n),e),l}function mRe(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}class zv{constructor(){this.cache=new Map,this.keys=[],this.cacheCallTimes=0}size(){return this.keys.length}internalGet(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r={map:this.cache};return e.forEach(i=>{var o;r?r=(o=r==null?void 0:r.map)===null||o===void 0?void 0:o.get(i):r=void 0}),r!=null&&r.value&&n&&(r.value[1]=this.cacheCallTimes++),r==null?void 0:r.value}get(e){var n;return(n=this.internalGet(e,!0))===null||n===void 0?void 0:n[0]}has(e){return!!this.internalGet(e)}set(e,n){if(!this.has(e)){if(this.size()+1>zv.MAX_CACHE_SIZE+zv.MAX_CACHE_OFFSET){const[i]=this.keys.reduce((o,a)=>{const[,s]=o;return this.internalGet(a)[1]<s?[a,this.internalGet(a)[1]]:o},[this.keys[0],this.cacheCallTimes]);this.delete(i)}this.keys.push(e)}let r=this.cache;e.forEach((i,o)=>{if(o===e.length-1)r.set(i,{value:[n,this.cacheCallTimes++]});else{const a=r.get(i);a?a.map||(a.map=new Map):r.set(i,{map:new Map}),r=r.get(i).map}})}deleteByPath(e,n){var r;const i=e.get(n[0]);if(n.length===1)return i.map?e.set(n[0],{map:i.map}):e.delete(n[0]),(r=i.value)===null||r===void 0?void 0:r[0];const o=this.deleteByPath(i.map,n.slice(1));return(!i.map||i.map.size===0)&&!i.value&&e.delete(n[0]),o}delete(e){if(this.has(e))return this.keys=this.keys.filter(n=>!mRe(n,e)),this.deleteByPath(this.cache,e)}}zv.MAX_CACHE_SIZE=20;zv.MAX_CACHE_OFFSET=5;let bD={};function eh(t,e){process.env.NODE_ENV!=="production"&&!t&&console!==void 0&&console.error(`Warning: ${e}`)}function yRe(t,e){process.env.NODE_ENV!=="production"&&!t&&console!==void 0&&console.warn(`Note: ${e}`)}function bRe(){bD={}}function Zte(t,e,n){!e&&!bD[n]&&(t(!1,n),bD[n]=!0)}function ra(t,e){Zte(eh,t,e)}function nW(t,e){Zte(yRe,t,e)}function _Re(){}let $i=_Re;process.env.NODE_ENV!=="production"&&($i=(t,e,n)=>{ra(t,`[ant-design-vue: ${e}] ${n}`),process.env.NODE_ENV==="test"&&bRe()});let rW=0;class Xte{constructor(e){this.derivatives=Array.isArray(e)?e:[e],this.id=rW,e.length===0&&$i(e.length>0,"[Ant Design Vue CSS-in-JS] Theme should have at least one derivative function."),rW+=1}getDerivativeToken(e){return this.derivatives.reduce((n,r)=>r(e,n),void 0)}}const eA=new zv;function Yte(t){const e=Array.isArray(t)?t:[t];return eA.has(e)||eA.set(e,new Xte(e)),eA.get(e)}const iW=new WeakMap;function nS(t){let e=iW.get(t)||"";return e||(Object.keys(t).forEach(n=>{const r=t[n];e+=n,r instanceof Xte?e+=r.id:r&&typeof r=="object"?e+=nS(r):e+=r}),iW.set(t,e)),e}function ORe(t,e){return jL(`${e}_${nS(t)}`)}const Y0=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),qte="_bAmBoO_";function wRe(t,e,n){var r,i;if(Sa()){zy(t,Y0);const o=document.createElement("div");o.style.position="fixed",o.style.left="0",o.style.top="0",e==null||e(o),document.body.appendChild(o),process.env.NODE_ENV!=="production"&&(o.innerHTML="Test",o.style.zIndex="9999999");const a=n?n(o):(r=getComputedStyle(o).content)===null||r===void 0?void 0:r.includes(qte);return(i=o.parentNode)===null||i===void 0||i.removeChild(o),tS(Y0),a}return!1}let tA;function xRe(){return tA===void 0&&(tA=wRe(`@layer ${Y0} { .${Y0} { content: "${qte}"!important; } }`,t=>{t.className=Y0})),tA}const oW={},SRe=process.env.NODE_ENV==="production",CRe=process.env.NODE_ENV==="prerender",TRe=!SRe&&!CRe?"css-dev-only-do-not-override":"css",rd=new Map;function PRe(t){rd.set(t,(rd.get(t)||0)+1)}function $Re(t,e){typeof document<"u"&&document.querySelectorAll(`style[${zte}="${t}"]`).forEach(r=>{var i;r[Gp]===e&&((i=r.parentNode)===null||i===void 0||i.removeChild(r))})}const ARe=0;function ERe(t,e){rd.set(t,(rd.get(t)||0)-1);const n=Array.from(rd.keys()),r=n.filter(i=>(rd.get(i)||0)<=0);n.length-r.length>ARe&&r.forEach(i=>{$Re(i,e),rd.delete(i)})}const MRe=(t,e,n,r)=>{const i=n.getDerivativeToken(t);let o=k(k({},i),e);return r&&(o=r(o)),o};function IRe(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:h.ref({});const r=ST(),i=h.computed(()=>k({},...e.value)),o=h.computed(()=>nS(i.value)),a=h.computed(()=>nS(n.value.override||oW));return Qte("token",h.computed(()=>[n.value.salt||"",t.value.id,o.value,a.value]),()=>{const{salt:l="",override:u=oW,formatToken:c,getComputedToken:f}=n.value,d=f?f(i.value,u,t.value):MRe(i.value,u,t.value,c),p=ORe(d,l);d._tokenKey=p,PRe(p);const v=`${TRe}-${jL(p)}`;return d._hashId=v,[d,v]},l=>{var u;ERe(l[0]._tokenKey,(u=r.value)===null||u===void 0?void 0:u.cache.instanceId)})}var DRe={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Kte="comm",Jte="rule",ene="decl",RRe="@import",kRe="@keyframes",NRe="@layer",tne=Math.abs,UL=String.fromCharCode;function nne(t){return t.trim()}function Yw(t,e,n){return t.replace(e,n)}function LRe(t,e,n){return t.indexOf(e,n)}function Fy(t,e){return t.charCodeAt(e)|0}function Wy(t,e,n){return t.slice(e,n)}function Bl(t){return t.length}function BRe(t){return t.length}function X1(t,e){return e.push(t),t}var TT=1,Fv=1,rne=0,Ca=0,lr=0,wg="";function ZL(t,e,n,r,i,o,a,s){return{value:t,root:e,parent:n,type:r,props:i,children:o,line:TT,column:Fv,length:a,return:"",siblings:s}}function VRe(){return lr}function zRe(){return lr=Ca>0?Fy(wg,--Ca):0,Fv--,lr===10&&(Fv=1,TT--),lr}function es(){return lr=Ca<rne?Fy(wg,Ca++):0,Fv++,lr===10&&(Fv=1,TT++),lr}function Id(){return Fy(wg,Ca)}function qw(){return Ca}function PT(t,e){return Wy(wg,t,e)}function _D(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function FRe(t){return TT=Fv=1,rne=Bl(wg=t),Ca=0,[]}function WRe(t){return wg="",t}function nA(t){return nne(PT(Ca-1,OD(t===91?t+2:t===40?t+1:t)))}function QRe(t){for(;(lr=Id())&&lr<33;)es();return _D(t)>2||_D(lr)>3?"":" "}function HRe(t,e){for(;--e&&es()&&!(lr<48||lr>102||lr>57&&lr<65||lr>70&&lr<97););return PT(t,qw()+(e<6&&Id()==32&&es()==32))}function OD(t){for(;es();)switch(lr){case t:return Ca;case 34:case 39:t!==34&&t!==39&&OD(lr);break;case 40:t===41&&OD(t);break;case 92:es();break}return Ca}function GRe(t,e){for(;es()&&t+lr!==57;)if(t+lr===84&&Id()===47)break;return"/*"+PT(e,Ca-1)+"*"+UL(t===47?t:es())}function jRe(t){for(;!_D(Id());)es();return PT(t,Ca)}function URe(t){return WRe(Kw("",null,null,null,[""],t=FRe(t),0,[0],t))}function Kw(t,e,n,r,i,o,a,s,l){for(var u=0,c=0,f=a,d=0,p=0,v=0,g=1,m=1,y=1,b=0,O="",w=i,x=o,S=r,T=O;m;)switch(v=b,b=es()){case 40:if(v!=108&&Fy(T,f-1)==58){LRe(T+=Yw(nA(b),"&","&\f"),"&\f",tne(u?s[u-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:T+=nA(b);break;case 9:case 10:case 13:case 32:T+=QRe(v);break;case 92:T+=HRe(qw()-1,7);continue;case 47:switch(Id()){case 42:case 47:X1(ZRe(GRe(es(),qw()),e,n,l),l);break;default:T+="/"}break;case 123*g:s[u++]=Bl(T)*y;case 125*g:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+c:y==-1&&(T=Yw(T,/\f/g,"")),p>0&&Bl(T)-f&&X1(p>32?sW(T+";",r,n,f-1,l):sW(Yw(T," ","")+";",r,n,f-2,l),l);break;case 59:T+=";";default:if(X1(S=aW(T,e,n,u,c,i,s,O,w=[],x=[],f,o),o),b===123)if(c===0)Kw(T,e,S,S,w,o,f,s,x);else switch(d===99&&Fy(T,3)===110?100:d){case 100:case 108:case 109:case 115:Kw(t,S,S,r&&X1(aW(t,S,S,0,0,i,s,O,i,w=[],f,x),x),i,x,f,s,r?w:x);break;default:Kw(T,S,S,S,[""],x,0,s,x)}}u=c=p=0,g=y=1,O=T="",f=a;break;case 58:f=1+Bl(T),p=v;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&zRe()==125)continue}switch(T+=UL(b),b*g){case 38:y=c>0?1:(T+="\f",-1);break;case 44:s[u++]=(Bl(T)-1)*y,y=1;break;case 64:Id()===45&&(T+=nA(es())),d=Id(),c=f=Bl(O=T+=jRe(qw())),b++;break;case 45:v===45&&Bl(T)==2&&(g=0)}}return o}function aW(t,e,n,r,i,o,a,s,l,u,c,f){for(var d=i-1,p=i===0?o:[""],v=BRe(p),g=0,m=0,y=0;g<r;++g)for(var b=0,O=Wy(t,d+1,d=tne(m=a[g])),w=t;b<v;++b)(w=nne(m>0?p[b]+" "+O:Yw(O,/&\f/g,p[b])))&&(l[y++]=w);return ZL(t,e,n,i===0?Jte:s,l,u,c,f)}function ZRe(t,e,n,r){return ZL(t,e,n,Kte,UL(VRe()),Wy(t,2,-2),0,r)}function sW(t,e,n,r,i){return ZL(t,e,n,ene,Wy(t,0,r),Wy(t,r+1,-1),r,i)}function wD(t,e){for(var n="",r=0;r<t.length;r++)n+=e(t[r],r,t,e)||"";return n}function XRe(t,e,n,r){switch(t.type){case NRe:if(t.children.length)break;case RRe:case ene:return t.return=t.return||t.value;case Kte:return"";case kRe:return t.return=t.value+"{"+wD(t.children,r)+"}";case Jte:if(!Bl(t.value=t.props.join(",")))return""}return Bl(n=wD(t.children,r))?t.return=t.value+"{"+n+"}":""}function ine(t,e){const{path:n,parentSelectors:r}=e;ra(!1,`[Ant Design Vue CSS-in-JS] ${n?`Error in '${n}': `:""}${t}${r.length?` Selector info: ${r.join(" -> ")}`:""}`)}const YRe=(t,e,n)=>{if(t==="content"){const r=/(attr|counters?|url|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/;(typeof e!="string"||["normal","none","initial","inherit","unset"].indexOf(e)===-1&&!r.test(e)&&(e.charAt(0)!==e.charAt(e.length-1)||e.charAt(0)!=='"'&&e.charAt(0)!=="'"))&&ine(`You seem to be using a value for 'content' without quotes, try replacing it with \`content: '"${e}"'\`.`,n)}},qRe=(t,e,n)=>{t==="animation"&&n.hashId&&e!=="none"&&ine(`You seem to be using hashed animation '${e}', in which case 'animationName' with Keyframe as value is recommended.`,n)},lW="data-ant-cssinjs-cache-path",KRe="_FILE_STYLE__";let Dd,one=!0;function JRe(){var t;if(!Dd&&(Dd={},Sa())){const e=document.createElement("div");e.className=lW,e.style.position="fixed",e.style.visibility="hidden",e.style.top="-9999px",document.body.appendChild(e);let n=getComputedStyle(e).content||"";n=n.replace(/^"/,"").replace(/"$/,""),n.split(";").forEach(i=>{const[o,a]=i.split(":");Dd[o]=a});const r=document.querySelector(`style[${lW}]`);r&&(one=!1,(t=r.parentNode)===null||t===void 0||t.removeChild(r)),document.body.removeChild(e)}}function eke(t){return JRe(),!!Dd[t]}function tke(t){const e=Dd[t];let n=null;if(e&&Sa())if(one)n=KRe;else{const r=document.querySelector(`style[${Md}="${Dd[t]}"]`);r?n=r.innerHTML:delete Dd[t]}return[n,e]}const uW=Sa(),ane="_skip_check_",sne="_multi_value_";function cW(t){return wD(URe(t),XRe).replace(/\{%%%\:[^;];}/g,";")}function nke(t){return typeof t=="object"&&t&&(ane in t||sne in t)}function rke(t,e,n){if(!e)return t;const r=`.${e}`,i=n==="low"?`:where(${r})`:r;return t.split(",").map(a=>{var s;const l=a.trim().split(/\s+/);let u=l[0]||"";const c=((s=u.match(/^\w+/))===null||s===void 0?void 0:s[0])||"";return u=`${c}${i}${u.slice(c.length)}`,[u,...l.slice(1)].join(" ")}).join(",")}const xD=new Set;process.env.NODE_ENV;const SD=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{root:n,injectHash:r,parentSelectors:i}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]};const{hashId:o,layer:a,path:s,hashPriority:l,transformers:u=[],linters:c=[]}=e;let f="",d={};function p(m){const y=m.getName(o);if(!d[y]){const[b]=SD(m.style,e,{root:!1,parentSelectors:i});d[y]=`@keyframes ${m.getName(o)}${b}`}}function v(m){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return m.forEach(b=>{Array.isArray(b)?v(b,y):b&&y.push(b)}),y}if(v(Array.isArray(t)?t:[t]).forEach(m=>{const y=typeof m=="string"&&!n?{}:m;if(typeof y=="string")f+=`${y}
  32. `;else if(y._keyframe)p(y);else{const b=u.reduce((O,w)=>{var x;return((x=w==null?void 0:w.visit)===null||x===void 0?void 0:x.call(w,O))||O},y);Object.keys(b).forEach(O=>{var w;const x=b[O];if(typeof x=="object"&&x&&(O!=="animationName"||!x._keyframe)&&!nke(x)){let S=!1,T=O.trim(),$=!1;(n||r)&&o?T.startsWith("@")?S=!0:T=rke(O,o,l):n&&!o&&(T==="&"||T==="")&&(T="",$=!0);const[A,P]=SD(x,e,{root:$,injectHash:S,parentSelectors:[...i,T]});d=k(k({},d),P),f+=`${T}${A}`}else{let S=function($,A){process.env.NODE_ENV!=="production"&&(typeof x!="object"||!(x!=null&&x[ane]))&&[YRe,qRe,...c].forEach(I=>I($,A,{path:s,hashId:o,parentSelectors:i}));const P=$.replace(/[A-Z]/g,I=>`-${I.toLowerCase()}`);let M=A;!DRe[$]&&typeof M=="number"&&M!==0&&(M=`${M}px`),$==="animationName"&&(A!=null&&A._keyframe)&&(p(A),M=A.getName(o)),f+=`${P}:${M};`};const T=(w=x==null?void 0:x.value)!==null&&w!==void 0?w:x;typeof x=="object"&&(x!=null&&x[sne])&&Array.isArray(T)?T.forEach($=>{S(O,$)}):S(O,T)}})}}),!n)f=`{${f}}`;else if(a&&xRe()){const m=a.split(",");f=`@layer ${m[m.length-1].trim()} {${f}}`,m.length>1&&(f=`@layer ${a}{%%%:%}${f}`)}return[f,d]};function ike(t,e){return jL(`${t.join("%")}${e}`)}function CD(t,e){const n=ST(),r=h.computed(()=>t.value.token._tokenKey),i=h.computed(()=>[r.value,...t.value.path]);let o=uW;return process.env.NODE_ENV!=="production"&&n.value.mock!==void 0&&(o=n.value.mock==="client"),Qte("style",i,()=>{const{path:a,hashId:s,layer:l,nonce:u,clientOnly:c,order:f=0}=t.value,d=i.value.join("|");if(eke(d)){const[T,$]=tke(d);if(T)return[T,r.value,$,{},c,f]}const p=e(),{hashPriority:v,container:g,transformers:m,linters:y,cache:b}=n.value,[O,w]=SD(p,{hashId:s,hashPriority:v,layer:l,path:a.join("-"),transformers:m,linters:y}),x=cW(O),S=ike(i.value,x);if(o){const T={mark:Md,prepend:"queue",attachTo:g,priority:f},$=typeof u=="function"?u():u;$&&(T.csp={nonce:$});const A=zy(x,S,T);A[Gp]=b.instanceId,A.setAttribute(zte,r.value),process.env.NODE_ENV!=="production"&&A.setAttribute(sRe,i.value.join("|")),Object.keys(w).forEach(P=>{xD.has(P)||(xD.add(P),zy(cW(w[P]),`_effect-${P}`,{mark:Md,prepend:"queue",attachTo:g}))})}return[x,r.value,S,w,c,f]},(a,s)=>{let[,,l]=a;(s||n.value.autoClear)&&uW&&tS(l,{mark:Md})}),a=>a}class Mt{constructor(e,n){this._keyframe=!0,this.name=e,this.style=n}getName(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e?`${e}-${this.name}`:this.name}}const oke="4.2.3",rS=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];var Y1=2,fW=.16,ake=.05,ske=.05,lke=.15,lne=5,une=4,uke=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function dW(t){var e=t.r,n=t.g,r=t.b,i=uD(e,n,r);return{h:i.h*360,s:i.s,v:i.v}}function q1(t){var e=t.r,n=t.g,r=t.b;return"#".concat(cD(e,n,r,!1))}function cke(t,e,n){var r=n/100,i={r:(e.r-t.r)*r+t.r,g:(e.g-t.g)*r+t.g,b:(e.b-t.b)*r+t.b};return i}function hW(t,e,n){var r;return Math.round(t.h)>=60&&Math.round(t.h)<=240?r=n?Math.round(t.h)-Y1*e:Math.round(t.h)+Y1*e:r=n?Math.round(t.h)+Y1*e:Math.round(t.h)-Y1*e,r<0?r+=360:r>=360&&(r-=360),r}function pW(t,e,n){if(t.h===0&&t.s===0)return t.s;var r;return n?r=t.s-fW*e:e===une?r=t.s+fW:r=t.s+ake*e,r>1&&(r=1),n&&e===lne&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function vW(t,e,n){var r;return n?r=t.v+ske*e:r=t.v-lke*e,r>1&&(r=1),Number(r.toFixed(2))}function th(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=Rp(t),i=lne;i>0;i-=1){var o=dW(r),a=q1(Rp({h:hW(o,i,!0),s:pW(o,i,!0),v:vW(o,i,!0)}));n.push(a)}n.push(q1(r));for(var s=1;s<=une;s+=1){var l=dW(r),u=q1(Rp({h:hW(l,s),s:pW(l,s),v:vW(l,s)}));n.push(u)}return e.theme==="dark"?uke.map(function(c){var f=c.index,d=c.opacity,p=q1(cke(Rp(e.backgroundColor||"#141414"),Rp(n[f]),d*100));return p}):n}var rA={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},Jw={},iA={};Object.keys(rA).forEach(function(t){Jw[t]=th(rA[t]),Jw[t].primary=Jw[t][5],iA[t]=th(rA[t],{theme:"dark",backgroundColor:"#141414"}),iA[t].primary=iA[t][5]});var fke=Jw.blue;const dke=t=>{const{controlHeight:e}=t;return{controlHeightSM:e*.75,controlHeightXS:e*.5,controlHeightLG:e*1.25}};function hke(t){const{sizeUnit:e,sizeStep:n}=t;return{sizeXXL:e*(n+8),sizeXL:e*(n+4),sizeLG:e*(n+2),sizeMD:e*(n+1),sizeMS:e*n,size:e*n,sizeSM:e*(n-1),sizeXS:e*(n-2),sizeXXS:e*(n-3)}}const cne={blue:"#1677ff",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#eb2f96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},$T=k(k({},cne),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
  33. 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
  34. 'Noto Color Emoji'`,fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1});function pke(t,e){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=e;const{colorSuccess:i,colorWarning:o,colorError:a,colorInfo:s,colorPrimary:l,colorBgBase:u,colorTextBase:c}=t,f=n(l),d=n(i),p=n(o),v=n(a),g=n(s),m=r(u,c);return k(k({},m),{colorPrimaryBg:f[1],colorPrimaryBgHover:f[2],colorPrimaryBorder:f[3],colorPrimaryBorderHover:f[4],colorPrimaryHover:f[5],colorPrimary:f[6],colorPrimaryActive:f[7],colorPrimaryTextHover:f[8],colorPrimaryText:f[9],colorPrimaryTextActive:f[10],colorSuccessBg:d[1],colorSuccessBgHover:d[2],colorSuccessBorder:d[3],colorSuccessBorderHover:d[4],colorSuccessHover:d[4],colorSuccess:d[6],colorSuccessActive:d[7],colorSuccessTextHover:d[8],colorSuccessText:d[9],colorSuccessTextActive:d[10],colorErrorBg:v[1],colorErrorBgHover:v[2],colorErrorBorder:v[3],colorErrorBorderHover:v[4],colorErrorHover:v[5],colorError:v[6],colorErrorActive:v[7],colorErrorTextHover:v[8],colorErrorText:v[9],colorErrorTextActive:v[10],colorWarningBg:p[1],colorWarningBgHover:p[2],colorWarningBorder:p[3],colorWarningBorderHover:p[4],colorWarningHover:p[4],colorWarning:p[6],colorWarningActive:p[7],colorWarningTextHover:p[8],colorWarningText:p[9],colorWarningTextActive:p[10],colorInfoBg:g[1],colorInfoBgHover:g[2],colorInfoBorder:g[3],colorInfoBorderHover:g[4],colorInfoHover:g[4],colorInfo:g[6],colorInfoActive:g[7],colorInfoTextHover:g[8],colorInfoText:g[9],colorInfoTextActive:g[10],colorBgMask:new _n("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const vke=t=>{let e=t,n=t,r=t,i=t;return t<6&&t>=5?e=t+1:t<16&&t>=6?e=t+2:t>=16&&(e=16),t<7&&t>=5?n=4:t<8&&t>=7?n=5:t<14&&t>=8?n=6:t<16&&t>=14?n=7:t>=16&&(n=8),t<6&&t>=2?r=1:t>=6&&(r=2),t>4&&t<8?i=4:t>=8&&(i=6),{borderRadius:t>16?16:t,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:e,borderRadiusOuter:i}};function gke(t){const{motionUnit:e,motionBase:n,borderRadius:r,lineWidth:i}=t;return k({motionDurationFast:`${(n+e).toFixed(1)}s`,motionDurationMid:`${(n+e*2).toFixed(1)}s`,motionDurationSlow:`${(n+e*3).toFixed(1)}s`,lineWidthBold:i+1},vke(r))}const Ml=(t,e)=>new _n(t).setAlpha(e).toRgbString(),$m=(t,e)=>new _n(t).darken(e).toHexString(),mke=t=>{const e=th(t);return{1:e[0],2:e[1],3:e[2],4:e[3],5:e[4],6:e[5],7:e[6],8:e[4],9:e[5],10:e[6]}},yke=(t,e)=>{const n=t||"#fff",r=e||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Ml(r,.88),colorTextSecondary:Ml(r,.65),colorTextTertiary:Ml(r,.45),colorTextQuaternary:Ml(r,.25),colorFill:Ml(r,.15),colorFillSecondary:Ml(r,.06),colorFillTertiary:Ml(r,.04),colorFillQuaternary:Ml(r,.02),colorBgLayout:$m(n,4),colorBgContainer:$m(n,0),colorBgElevated:$m(n,0),colorBgSpotlight:Ml(r,.85),colorBorder:$m(n,15),colorBorderSecondary:$m(n,6)}};function bke(t){const e=new Array(10).fill(null).map((n,r)=>{const i=r-1,o=t*Math.pow(2.71828,i/5),a=r>1?Math.floor(o):Math.ceil(o);return Math.floor(a/2)*2});return e[1]=t,e.map(n=>{const r=n+8;return{size:n,lineHeight:r/n}})}const _ke=t=>{const e=bke(t),n=e.map(i=>i.size),r=e.map(i=>i.lineHeight);return{fontSizeSM:n[0],fontSize:n[1],fontSizeLG:n[2],fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:r[1],lineHeightLG:r[2],lineHeightSM:r[0],lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function Oke(t){const e=Object.keys(cne).map(n=>{const r=th(t[n]);return new Array(10).fill(1).reduce((i,o,a)=>(i[`${n}-${a+1}`]=r[a],i),{})}).reduce((n,r)=>(n=k(k({},n),r),n),{});return k(k(k(k(k(k(k({},t),e),pke(t,{generateColorPalettes:mke,generateNeutralColorPalettes:yke})),_ke(t.fontSize)),hke(t)),dke(t)),gke(t))}function oA(t){return t>=0&&t<=255}function K1(t,e){const{r:n,g:r,b:i,a:o}=new _n(t).toRgb();if(o<1)return t;const{r:a,g:s,b:l}=new _n(e).toRgb();for(let u=.01;u<=1;u+=.01){const c=Math.round((n-a*(1-u))/u),f=Math.round((r-s*(1-u))/u),d=Math.round((i-l*(1-u))/u);if(oA(c)&&oA(f)&&oA(d))return new _n({r:c,g:f,b:d,a:Math.round(u*100)/100}).toRgbString()}return new _n({r:n,g:r,b:i,a:1}).toRgbString()}var wke=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function xke(t){const{override:e}=t,n=wke(t,["override"]),r=k({},e);Object.keys($T).forEach(p=>{delete r[p]});const i=k(k({},n),r),o=480,a=576,s=768,l=992,u=1200,c=1600,f=2e3;return k(k(k({},i),{colorLink:i.colorInfoText,colorLinkHover:i.colorInfoHover,colorLinkActive:i.colorInfoActive,colorFillContent:i.colorFillSecondary,colorFillContentHover:i.colorFill,colorFillAlter:i.colorFillQuaternary,colorBgContainerDisabled:i.colorFillTertiary,colorBorderBg:i.colorBgContainer,colorSplit:K1(i.colorBorderSecondary,i.colorBgContainer),colorTextPlaceholder:i.colorTextQuaternary,colorTextDisabled:i.colorTextQuaternary,colorTextHeading:i.colorText,colorTextLabel:i.colorTextSecondary,colorTextDescription:i.colorTextTertiary,colorTextLightSolid:i.colorWhite,colorHighlight:i.colorError,colorBgTextHover:i.colorFillSecondary,colorBgTextActive:i.colorFill,colorIcon:i.colorTextTertiary,colorIconHover:i.colorText,colorErrorOutline:K1(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:K1(i.colorWarningBg,i.colorBgContainer),fontSizeIcon:i.fontSizeSM,lineWidth:i.lineWidth,controlOutlineWidth:i.lineWidth*2,controlInteractiveSize:i.controlHeight/2,controlItemBgHover:i.colorFillTertiary,controlItemBgActive:i.colorPrimaryBg,controlItemBgActiveHover:i.colorPrimaryBgHover,controlItemBgActiveDisabled:i.colorFill,controlTmpOutline:i.colorFillQuaternary,controlOutline:K1(i.colorPrimaryBg,i.colorBgContainer),lineType:i.lineType,borderRadius:i.borderRadius,borderRadiusXS:i.borderRadiusXS,borderRadiusSM:i.borderRadiusSM,borderRadiusLG:i.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:i.sizeXXS,paddingXS:i.sizeXS,paddingSM:i.sizeSM,padding:i.size,paddingMD:i.sizeMD,paddingLG:i.sizeLG,paddingXL:i.sizeXL,paddingContentHorizontalLG:i.sizeLG,paddingContentVerticalLG:i.sizeMS,paddingContentHorizontal:i.sizeMS,paddingContentVertical:i.sizeSM,paddingContentHorizontalSM:i.size,paddingContentVerticalSM:i.sizeXS,marginXXS:i.sizeXXS,marginXS:i.sizeXS,marginSM:i.sizeSM,margin:i.size,marginMD:i.sizeMD,marginLG:i.sizeLG,marginXL:i.sizeXL,marginXXL:i.sizeXXL,boxShadow:`
  35. 0 1px 2px 0 rgba(0, 0, 0, 0.03),
  36. 0 1px 6px -1px rgba(0, 0, 0, 0.02),
  37. 0 2px 4px 0 rgba(0, 0, 0, 0.02)
  38. `,boxShadowSecondary:`
  39. 0 6px 16px 0 rgba(0, 0, 0, 0.08),
  40. 0 3px 6px -4px rgba(0, 0, 0, 0.12),
  41. 0 9px 28px 8px rgba(0, 0, 0, 0.05)
  42. `,boxShadowTertiary:`
  43. 0 1px 2px 0 rgba(0, 0, 0, 0.03),
  44. 0 1px 6px -1px rgba(0, 0, 0, 0.02),
  45. 0 2px 4px 0 rgba(0, 0, 0, 0.02)
  46. `,screenXS:o,screenXSMin:o,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,screenLGMax:u-1,screenXL:u,screenXLMin:u,screenXLMax:c-1,screenXXL:c,screenXXLMin:c,screenXXLMax:f-1,screenXXXL:f,screenXXXLMin:f,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:`
  47. 0 1px 2px -2px ${new _n("rgba(0, 0, 0, 0.16)").toRgbString()},
  48. 0 3px 6px 0 ${new _n("rgba(0, 0, 0, 0.12)").toRgbString()},
  49. 0 5px 12px 4px ${new _n("rgba(0, 0, 0, 0.09)").toRgbString()}
  50. `,boxShadowDrawerRight:`
  51. -6px 0 16px 0 rgba(0, 0, 0, 0.08),
  52. -3px 0 6px -4px rgba(0, 0, 0, 0.12),
  53. -9px 0 28px 8px rgba(0, 0, 0, 0.05)
  54. `,boxShadowDrawerLeft:`
  55. 6px 0 16px 0 rgba(0, 0, 0, 0.08),
  56. 3px 0 6px -4px rgba(0, 0, 0, 0.12),
  57. 9px 0 28px 8px rgba(0, 0, 0, 0.05)
  58. `,boxShadowDrawerUp:`
  59. 0 6px 16px 0 rgba(0, 0, 0, 0.08),
  60. 0 3px 6px -4px rgba(0, 0, 0, 0.12),
  61. 0 9px 28px 8px rgba(0, 0, 0, 0.05)
  62. `,boxShadowDrawerDown:`
  63. 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
  64. 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
  65. 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
  66. `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}const Ske=(t,e,n,r,i)=>{const o=t/2,a=0,s=o,l=n*1/Math.sqrt(2),u=o-n*(1-1/Math.sqrt(2)),c=o-e*(1/Math.sqrt(2)),f=n*(Math.sqrt(2)-1)+e*(1/Math.sqrt(2)),d=2*o-c,p=f,v=2*o-l,g=u,m=2*o-a,y=s,b=o*Math.sqrt(2)+n*(Math.sqrt(2)-2),O=n*(Math.sqrt(2)-1);return{pointerEvents:"none",width:t,height:t,overflow:"hidden","&::after":{content:'""',position:"absolute",width:b,height:b,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${e}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:i,zIndex:0,background:"transparent"},"&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:t,height:t/2,background:r,clipPath:{_multi_value_:!0,value:[`polygon(${O}px 100%, 50% ${O}px, ${2*o-O}px 100%, ${O}px 100%)`,`path('M ${a} ${s} A ${n} ${n} 0 0 0 ${l} ${u} L ${c} ${f} A ${e} ${e} 0 0 1 ${d} ${p} L ${v} ${g} A ${n} ${n} 0 0 0 ${m} ${y} Z')`]},content:'""'}}};function Cke(t,e){return rS.reduce((n,r)=>{const i=t[`${r}-1`],o=t[`${r}-3`],a=t[`${r}-6`],s=t[`${r}-7`];return k(k({},n),e(r,{lightColor:i,lightBorderColor:o,darkColor:a,textColor:s}))},{})}const Wv={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},On=t=>({boxSizing:"border-box",margin:0,padding:0,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight,listStyle:"none",fontFamily:t.fontFamily}),xg=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),iS=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),Tke=t=>({a:{color:t.colorLink,textDecoration:t.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${t.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:t.colorLinkHover},"&:active":{color:t.colorLinkActive},"&:active,\n &:hover":{textDecoration:t.linkHoverDecoration,outline:0},"&:focus":{textDecoration:t.linkFocusDecoration,outline:0},"&[disabled]":{color:t.colorTextDisabled,cursor:"not-allowed"}}}),Pke=(t,e)=>{const{fontFamily:n,fontSize:r}=t,i=`[class^="${e}"], [class*=" ${e}"]`;return{[i]:{fontFamily:n,fontSize:r,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[i]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},Kb=t=>({outline:`${t.lineWidthBold}px solid ${t.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),AT=t=>({"&:focus-visible":k({},Kb(t))});function Wn(t,e,n){return r=>{const i=h.computed(()=>r==null?void 0:r.value),[o,a,s]=Sg(),{getPrefixCls:l,iconPrefixCls:u}=wT(),c=h.computed(()=>l()),f=h.computed(()=>({theme:o.value,token:a.value,hashId:s.value,path:["Shared",c.value]}));CD(f,()=>[{"&":Tke(a.value)}]);const d=h.computed(()=>({theme:o.value,token:a.value,hashId:s.value,path:[t,i.value,u.value]}));return[CD(d,()=>{const{token:p,flush:v}=Ake(a.value),g=typeof n=="function"?n(p):n,m=k(k({},g),a.value[t]),y=`.${i.value}`,b=qt(p,{componentCls:y,prefixCls:i.value,iconCls:`.${u.value}`,antCls:`.${c.value}`},m),O=e(b,{hashId:s.value,prefixCls:i.value,rootPrefixCls:c.value,iconPrefixCls:u.value,overrideComponentToken:a.value[t]});return v(t,m),[Pke(a.value,i.value),O]}),s]}}const fne=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u";let TD=!0;function qt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!fne)return k({},...e);TD=!1;const r={};return e.forEach(i=>{Object.keys(i).forEach(a=>{Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:()=>i[a]})})}),TD=!0,r}function $ke(){}function Ake(t){let e,n=t,r=$ke;return fne&&(e=new Set,n=new Proxy(t,{get(i,o){return TD&&e.add(o),i[o]}}),r=(i,o)=>{Array.from(e)}),{token:n,keys:e,flush:r}}const Eke=Yte(Oke),dne={token:$T,hashed:!0},hne=Symbol("DesignTokenContext"),PD=h.shallowRef(),Mke=t=>{h.provide(hne,t),h.watch(t,()=>{PD.value=h.unref(t),h.triggerRef(PD)},{immediate:!0,deep:!0})},Ike=h.defineComponent({props:{value:zt()},setup(t,e){let{slots:n}=e;return Mke(h.computed(()=>t.value)),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});function Sg(){const t=h.inject(hne,h.computed(()=>PD.value||dne)),e=h.computed(()=>`${oke}-${t.value.hashed||""}`),n=h.computed(()=>t.value.theme||Eke),r=IRe(n,h.computed(()=>[$T,t.value.token]),h.computed(()=>({salt:e.value,override:k({override:t.value.token},t.value.components),formatToken:xke})));return[n,h.computed(()=>r.value[0]),h.computed(()=>t.value.hashed?r.value[1]:"")]}const pne=h.defineComponent({compatConfig:{MODE:3},setup(){const[,t]=Sg(),e=h.computed(()=>new _n(t.value.colorBgBase).toHsl().l<.5?{opacity:.65}:{});return()=>h.createVNode("svg",{style:e.value,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},[h.createVNode("g",{fill:"none","fill-rule":"evenodd"},[h.createVNode("g",{transform:"translate(24 31.67)"},[h.createVNode("ellipse",{"fill-opacity":".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"},null),h.createVNode("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"},null),h.createVNode("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"},null),h.createVNode("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"},null),h.createVNode("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"},null)]),h.createVNode("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"},null),h.createVNode("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},[h.createVNode("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"},null),h.createVNode("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"},null)])])])}});pne.PRESENTED_IMAGE_DEFAULT=!0;const vne=h.defineComponent({compatConfig:{MODE:3},setup(){const[,t]=Sg(),e=h.computed(()=>{const{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:o}=t.value;return{borderColor:new _n(n).onBackground(o).toHexString(),shadowColor:new _n(r).onBackground(o).toHexString(),contentColor:new _n(i).onBackground(o).toHexString()}});return()=>h.createVNode("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},[h.createVNode("g",{transform:"translate(0 1)",fill:"none","fill-rule":"evenodd"},[h.createVNode("ellipse",{fill:e.value.shadowColor,cx:"32",cy:"33",rx:"32",ry:"7"},null),h.createVNode("g",{"fill-rule":"nonzero",stroke:e.value.borderColor},[h.createVNode("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"},null),h.createVNode("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:e.value.contentColor},null)])])])}});vne.PRESENTED_IMAGE_SIMPLE=!0;const Dke=t=>{const{componentCls:e,margin:n,marginXS:r,marginXL:i,fontSize:o,lineHeight:a}=t;return{[e]:{marginInline:r,fontSize:o,lineHeight:a,textAlign:"center",[`${e}-image`]:{height:t.emptyImgHeight,marginBottom:r,opacity:t.opacityImage,img:{height:"100%"},svg:{height:"100%",margin:"auto"}},[`${e}-footer`]:{marginTop:n},"&-normal":{marginBlock:i,color:t.colorTextDisabled,[`${e}-image`]:{height:t.emptyImgHeightMD}},"&-small":{marginBlock:r,color:t.colorTextDisabled,[`${e}-image`]:{height:t.emptyImgHeightSM}}}}},Rke=Wn("Empty",t=>{const{componentCls:e,controlHeightLG:n}=t,r=qt(t,{emptyImgCls:`${e}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return[Dke(r)]});var kke=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const gne=h.createVNode(pne,null,null),mne=h.createVNode(vne,null,null),Nke=()=>({prefixCls:String,imageStyle:zt(),image:la(),description:la()}),XL=h.defineComponent({name:"AEmpty",compatConfig:{MODE:3},inheritAttrs:!1,props:Nke(),setup(t,e){let{slots:n={},attrs:r}=e;const{direction:i,prefixCls:o}=Gt("empty",t),[a,s]=Rke(o);return()=>{var l,u;const c=o.value,f=k(k({},t),r),{image:d=((l=n.image)===null||l===void 0?void 0:l.call(n))||gne,description:p=((u=n.description)===null||u===void 0?void 0:u.call(n))||void 0,imageStyle:v,class:g=""}=f,m=kke(f,["image","description","imageStyle","class"]);return a(h.createVNode(Vte,{componentName:"Empty",children:y=>{const b=typeof p<"u"?p:y.description,O=typeof b=="string"?b:"empty";let w=null;return typeof d=="string"?w=h.createVNode("img",{alt:O,src:d},null):w=d,h.createVNode("div",K({class:Pe(c,g,s.value,{[`${c}-normal`]:d===mne,[`${c}-rtl`]:i.value==="rtl"})},m),[h.createVNode("div",{class:`${c}-image`,style:v},[w]),b&&h.createVNode("p",{class:`${c}-description`},[b]),n.default&&h.createVNode("div",{class:`${c}-footer`},[fl(n.default())])])}},null))}}});XL.PRESENTED_IMAGE_DEFAULT=gne;XL.PRESENTED_IMAGE_SIMPLE=mne;const Am=Og(XL),YL=t=>{const{prefixCls:e}=Gt("empty",t);return(r=>{switch(r){case"Table":case"List":return h.createVNode(Am,{image:Am.PRESENTED_IMAGE_SIMPLE},null);case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return h.createVNode(Am,{image:Am.PRESENTED_IMAGE_SIMPLE,class:`${e.value}-small`},null);default:return h.createVNode(Am,null,null)}})(t.componentName)};function Lke(t){return h.createVNode(YL,{componentName:t},null)}const yne=Symbol("SizeContextKey"),bne=()=>h.inject(yne,h.ref(void 0)),_ne=t=>{const e=bne();return h.provide(yne,h.computed(()=>t.value||e.value)),t},Gt=(t,e)=>{const n=bne(),r=il(),i=h.inject(GL,k(k({},kte),{renderEmpty:T=>h.h(YL,{componentName:T})})),o=h.computed(()=>i.getPrefixCls(t,e.prefixCls)),a=h.computed(()=>{var T,$;return(T=e.direction)!==null&&T!==void 0?T:($=i.direction)===null||$===void 0?void 0:$.value}),s=h.computed(()=>{var T;return(T=e.iconPrefixCls)!==null&&T!==void 0?T:i.iconPrefixCls.value}),l=h.computed(()=>i.getPrefixCls()),u=h.computed(()=>{var T;return(T=i.autoInsertSpaceInButton)===null||T===void 0?void 0:T.value}),c=i.renderEmpty,f=i.space,d=i.pageHeader,p=i.form,v=h.computed(()=>{var T,$;return(T=e.getTargetContainer)!==null&&T!==void 0?T:($=i.getTargetContainer)===null||$===void 0?void 0:$.value}),g=h.computed(()=>{var T,$,A;return($=(T=e.getContainer)!==null&&T!==void 0?T:e.getPopupContainer)!==null&&$!==void 0?$:(A=i.getPopupContainer)===null||A===void 0?void 0:A.value}),m=h.computed(()=>{var T,$;return(T=e.dropdownMatchSelectWidth)!==null&&T!==void 0?T:($=i.dropdownMatchSelectWidth)===null||$===void 0?void 0:$.value}),y=h.computed(()=>{var T;return(e.virtual===void 0?((T=i.virtual)===null||T===void 0?void 0:T.value)!==!1:e.virtual!==!1)&&m.value!==!1}),b=h.computed(()=>e.size||n.value),O=h.computed(()=>{var T,$,A;return(T=e.autocomplete)!==null&&T!==void 0?T:(A=($=i.input)===null||$===void 0?void 0:$.value)===null||A===void 0?void 0:A.autocomplete}),w=h.computed(()=>{var T;return(T=e.disabled)!==null&&T!==void 0?T:r.value}),x=h.computed(()=>{var T;return(T=e.csp)!==null&&T!==void 0?T:i.csp}),S=h.computed(()=>{var T,$;return(T=e.wave)!==null&&T!==void 0?T:($=i.wave)===null||$===void 0?void 0:$.value});return{configProvider:i,prefixCls:o,direction:a,size:b,getTargetContainer:v,getPopupContainer:g,space:f,pageHeader:d,form:p,autoInsertSpaceInButton:u,renderEmpty:c,virtual:y,dropdownMatchSelectWidth:m,rootPrefixCls:l,getPrefixCls:i.getPrefixCls,autocomplete:O,csp:x,iconPrefixCls:s,disabled:w,select:i.select,wave:S}};function Mr(t,e){const n=k({},t);for(let r=0;r<e.length;r+=1){const i=e[r];delete n[i]}return n}function gW(t){return typeof t=="object"&&t!=null&&t.nodeType===1}function mW(t,e){return(!e||t!=="hidden")&&t!=="visible"&&t!=="clip"}function aA(t,e){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var n=getComputedStyle(t,null);return mW(n.overflowY,e)||mW(n.overflowX,e)||function(r){var i=function(o){if(!o.ownerDocument||!o.ownerDocument.defaultView)return null;try{return o.ownerDocument.defaultView.frameElement}catch{return null}}(r);return!!i&&(i.clientHeight<r.scrollHeight||i.clientWidth<r.scrollWidth)}(t)}return!1}function J1(t,e,n,r,i,o,a,s){return o<t&&a>e||o>t&&a<e?0:o<=t&&s<=n||a>=e&&s>=n?o-t-r:a>e&&s<n||o<t&&s>n?a-e+i:0}var yW=function(t,e){var n=window,r=e.scrollMode,i=e.block,o=e.inline,a=e.boundary,s=e.skipOverflowHiddenElements,l=typeof a=="function"?a:function(me){return me!==a};if(!gW(t))throw new TypeError("Invalid target");for(var u,c,f=document.scrollingElement||document.documentElement,d=[],p=t;gW(p)&&l(p);){if((p=(c=(u=p).parentElement)==null?u.getRootNode().host||null:c)===f){d.push(p);break}p!=null&&p===document.body&&aA(p)&&!aA(document.documentElement)||p!=null&&aA(p,s)&&d.push(p)}for(var v=n.visualViewport?n.visualViewport.width:innerWidth,g=n.visualViewport?n.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,b=t.getBoundingClientRect(),O=b.height,w=b.width,x=b.top,S=b.right,T=b.bottom,$=b.left,A=i==="start"||i==="nearest"?x:i==="end"?T:x+O/2,P=o==="center"?$+w/2:o==="end"?S:$,M=[],I=0;I<d.length;I++){var R=d[I],L=R.getBoundingClientRect(),D=L.height,B=L.width,F=L.top,z=L.right,W=L.bottom,j=L.left;if(r==="if-needed"&&x>=0&&$>=0&&T<=g&&S<=v&&x>=F&&T<=W&&$>=j&&S<=z)return M;var H=getComputedStyle(R),Z=parseInt(H.borderLeftWidth,10),J=parseInt(H.borderTopWidth,10),se=parseInt(H.borderRightWidth,10),oe=parseInt(H.borderBottomWidth,10),de=0,re=0,ue="offsetWidth"in R?R.offsetWidth-R.clientWidth-Z-se:0,ee="offsetHeight"in R?R.offsetHeight-R.clientHeight-J-oe:0,X="offsetWidth"in R?R.offsetWidth===0?0:B/R.offsetWidth:0,Y="offsetHeight"in R?R.offsetHeight===0?0:D/R.offsetHeight:0;if(f===R)de=i==="start"?A:i==="end"?A-g:i==="nearest"?J1(y,y+g,g,J,oe,y+A,y+A+O,O):A-g/2,re=o==="start"?P:o==="center"?P-v/2:o==="end"?P-v:J1(m,m+v,v,Z,se,m+P,m+P+w,w),de=Math.max(0,de+y),re=Math.max(0,re+m);else{de=i==="start"?A-F-J:i==="end"?A-W+oe+ee:i==="nearest"?J1(F,W,D,J,oe+ee,A,A+O,O):A-(F+D/2)+ee/2,re=o==="start"?P-j-Z:o==="center"?P-(j+B/2)+ue/2:o==="end"?P-z+se+ue:J1(j,z,B,Z,se+ue,P,P+w,w);var le=R.scrollLeft,ge=R.scrollTop;A+=ge-(de=Math.max(0,Math.min(ge+de/Y,R.scrollHeight-D/Y+ee))),P+=le-(re=Math.max(0,Math.min(le+re/X,R.scrollWidth-B/X+ue)))}M.push({el:R,top:de,left:re})}return M};function One(t){return t===Object(t)&&Object.keys(t).length!==0}function Bke(t,e){e===void 0&&(e="auto");var n="scrollBehavior"in document.body.style;t.forEach(function(r){var i=r.el,o=r.top,a=r.left;i.scroll&&n?i.scroll({top:o,left:a,behavior:e}):(i.scrollTop=o,i.scrollLeft=a)})}function Vke(t){return t===!1?{block:"end",inline:"nearest"}:One(t)?t:{block:"start",inline:"nearest"}}function zke(t,e){var n=t.isConnected||t.ownerDocument.documentElement.contains(t);if(One(e)&&typeof e.behavior=="function")return e.behavior(n?yW(t,e):[]);if(n){var r=Vke(e);return Bke(yW(t,r),r.behavior)}}function Fke(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function wne(t,e,n){return n&&Fke(t,n),t}function ex(){return(ex=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function xne(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function Sne(t,e){if(t==null)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)e.indexOf(n=o[r])>=0||(i[n]=t[n]);return i}function bW(t){return((e=t)!=null&&typeof e=="object"&&Array.isArray(e)===!1)==1&&Object.prototype.toString.call(t)==="[object Object]";var e}var Cne=Object.prototype,Tne=Cne.toString,Wke=Cne.hasOwnProperty,Pne=/^\s*function (\w+)/;function _W(t){var e,n=(e=t==null?void 0:t.type)!==null&&e!==void 0?e:t;if(n){var r=n.toString().match(Pne);return r?r[1]:""}return""}var nh=function(t){var e,n;return bW(t)!==!1&&typeof(e=t.constructor)=="function"&&bW(n=e.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1},$ne=function(t){return t},si=$ne;if(process.env.NODE_ENV!=="production"){var Qke=typeof console<"u";si=Qke?function(t){console.warn("[VueTypes warn]: "+t)}:$ne}var Qy=function(t,e){return Wke.call(t,e)},Hke=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t},Qv=Array.isArray||function(t){return Tne.call(t)==="[object Array]"},Hv=function(t){return Tne.call(t)==="[object Function]"},oS=function(t){return nh(t)&&Qy(t,"_vueTypes_name")},Ane=function(t){return nh(t)&&(Qy(t,"type")||["_vueTypes_name","validator","default","required"].some(function(e){return Qy(t,e)}))};function qL(t,e){return Object.defineProperty(t.bind(e),"__original",{value:t})}function Ch(t,e,n){var r;n===void 0&&(n=!1);var i=!0,o="";r=nh(t)?t:{type:t};var a=oS(r)?r._vueTypes_name+" - ":"";if(Ane(r)&&r.type!==null){if(r.type===void 0||r.type===!0||!r.required&&e===void 0)return i;Qv(r.type)?(i=r.type.some(function(f){return Ch(f,e,!0)===!0}),o=r.type.map(function(f){return _W(f)}).join(" or ")):i=(o=_W(r))==="Array"?Qv(e):o==="Object"?nh(e):o==="String"||o==="Number"||o==="Boolean"||o==="Function"?function(f){if(f==null)return"";var d=f.constructor.toString().match(Pne);return d?d[1]:""}(e)===o:e instanceof r.type}if(!i){var s=a+'value "'+e+'" should be of type "'+o+'"';return n===!1?(si(s),!1):s}if(Qy(r,"validator")&&Hv(r.validator)){var l=si,u=[];if(si=function(f){u.push(f)},i=r.validator(e),si=l,!i){var c=(u.length>1?"* ":"")+u.join(`
  67. * `);return u.length=0,n===!1?(si(c),i):c}}return i}function Lo(t,e){var n=Object.defineProperties(e,{_vueTypes_name:{value:t,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(i){return i!==void 0||this.default?Hv(i)||Ch(this,i,!0)===!0?(this.default=Qv(i)?function(){return[].concat(i)}:nh(i)?function(){return Object.assign({},i)}:i,this):(si(this._vueTypes_name+' - invalid default value: "'+i+'"'),this):this}}}),r=n.validator;return Hv(r)&&(n.validator=qL(r,n)),n}function ol(t,e){var n=Lo(t,e);return Object.defineProperty(n,"validate",{value:function(r){return Hv(this.validator)&&si(this._vueTypes_name+` - calling .validate() will overwrite the current custom validator function. Validator info:
  68. `+JSON.stringify(this)),this.validator=qL(r,this),this}})}function OW(t,e,n){var r,i,o=(r=e,i={},Object.getOwnPropertyNames(r).forEach(function(f){i[f]=Object.getOwnPropertyDescriptor(r,f)}),Object.defineProperties({},i));if(o._vueTypes_name=t,!nh(n))return o;var a,s,l=n.validator,u=Sne(n,["validator"]);if(Hv(l)){var c=o.validator;c&&(c=(s=(a=c).__original)!==null&&s!==void 0?s:a),o.validator=qL(c?function(f){return c.call(this,f)&&l.call(this,f)}:l,o)}return Object.assign(o,u)}function ET(t){return t.replace(/^(?!\s*$)/gm," ")}var Gke=function(){return ol("any",{})},jke=function(){return ol("function",{type:Function})},Uke=function(){return ol("boolean",{type:Boolean})},Zke=function(){return ol("string",{type:String})},Xke=function(){return ol("number",{type:Number})},Yke=function(){return ol("array",{type:Array})},qke=function(){return ol("object",{type:Object})},Kke=function(){return Lo("integer",{type:Number,validator:function(t){return Hke(t)}})},Jke=function(){return Lo("symbol",{validator:function(t){return typeof t=="symbol"}})};function eNe(t,e){if(e===void 0&&(e="custom validation failed"),typeof t!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return Lo(t.name||"<<anonymous function>>",{validator:function(n){var r=t(n);return r||si(this._vueTypes_name+" - "+e),r}})}function tNe(t){if(!Qv(t))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var e='oneOf - value should be one of "'+t.join('", "')+'".',n=t.reduce(function(r,i){if(i!=null){var o=i.constructor;r.indexOf(o)===-1&&r.push(o)}return r},[]);return Lo("oneOf",{type:n.length>0?n:void 0,validator:function(r){var i=t.indexOf(r)!==-1;return i||si(e),i}})}function nNe(t){if(!Qv(t))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var e=!1,n=[],r=0;r<t.length;r+=1){var i=t[r];if(Ane(i)){if(oS(i)&&i._vueTypes_name==="oneOf"){n=n.concat(i.type);continue}if(Hv(i.validator)&&(e=!0),i.type!==!0&&i.type){n=n.concat(i.type);continue}}n.push(i)}return n=n.filter(function(o,a){return n.indexOf(o)===a}),Lo("oneOfType",e?{type:n,validator:function(o){var a=[],s=t.some(function(l){var u=Ch(oS(l)&&l._vueTypes_name==="oneOf"?l.type||null:l,o,!0);return typeof u=="string"&&a.push(u),u===!0});return s||si("oneOfType - provided value does not match any of the "+a.length+` passed-in validators:
  69. `+ET(a.join(`
  70. `))),s}}:{type:n})}function rNe(t){return Lo("arrayOf",{type:Array,validator:function(e){var n,r=e.every(function(i){return(n=Ch(t,i,!0))===!0});return r||si(`arrayOf - value validation error:
  71. `+ET(n)),r}})}function iNe(t){return Lo("instanceOf",{type:t})}function oNe(t){return Lo("objectOf",{type:Object,validator:function(e){var n,r=Object.keys(e).every(function(i){return(n=Ch(t,e[i],!0))===!0});return r||si(`objectOf - value validation error:
  72. `+ET(n)),r}})}function aNe(t){var e=Object.keys(t),n=e.filter(function(i){var o;return!!(!((o=t[i])===null||o===void 0)&&o.required)}),r=Lo("shape",{type:Object,validator:function(i){var o=this;if(!nh(i))return!1;var a=Object.keys(i);if(n.length>0&&n.some(function(l){return a.indexOf(l)===-1})){var s=n.filter(function(l){return a.indexOf(l)===-1});return si(s.length===1?'shape - required property "'+s[0]+'" is not defined.':'shape - required properties "'+s.join('", "')+'" are not defined.'),!1}return a.every(function(l){if(e.indexOf(l)===-1)return o._vueTypes_isLoose===!0||(si('shape - shape definition does not include a "'+l+'" property. Allowed keys: "'+e.join('", "')+'".'),!1);var u=Ch(t[l],i[l],!0);return typeof u=="string"&&si('shape - "'+l+`" property validation error:
  73. `+ET(u)),u===!0})}});return Object.defineProperty(r,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(r,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),r}var Ds=function(){function t(){}return t.extend=function(e){var n=this;if(Qv(e))return e.forEach(function(f){return n.extend(f)}),this;var r=e.name,i=e.validate,o=i!==void 0&&i,a=e.getter,s=a!==void 0&&a,l=Sne(e,["name","validate","getter"]);if(Qy(this,r))throw new TypeError('[VueTypes error]: Type "'+r+'" already defined');var u,c=l.type;return oS(c)?(delete l.type,Object.defineProperty(this,r,s?{get:function(){return OW(r,c,l)}}:{value:function(){var f,d=OW(r,c,l);return d.validator&&(d.validator=(f=d.validator).bind.apply(f,[d].concat([].slice.call(arguments)))),d}})):(u=s?{get:function(){var f=Object.assign({},l);return o?ol(r,f):Lo(r,f)},enumerable:!0}:{value:function(){var f,d,p=Object.assign({},l);return f=o?ol(r,p):Lo(r,p),p.validator&&(f.validator=(d=p.validator).bind.apply(d,[f].concat([].slice.call(arguments)))),f},enumerable:!0},Object.defineProperty(this,r,u))},wne(t,null,[{key:"any",get:function(){return Gke()}},{key:"func",get:function(){return jke().def(this.defaults.func)}},{key:"bool",get:function(){return Uke().def(this.defaults.bool)}},{key:"string",get:function(){return Zke().def(this.defaults.string)}},{key:"number",get:function(){return Xke().def(this.defaults.number)}},{key:"array",get:function(){return Yke().def(this.defaults.array)}},{key:"object",get:function(){return qke().def(this.defaults.object)}},{key:"integer",get:function(){return Kke().def(this.defaults.integer)}},{key:"symbol",get:function(){return Jke()}}]),t}();function Ene(t){var e;return t===void 0&&(t={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(e=function(n){function r(){return n.apply(this,arguments)||this}return xne(r,n),wne(r,null,[{key:"sensibleDefaults",get:function(){return ex({},this.defaults)},set:function(i){this.defaults=i!==!1?ex({},i!==!0?i:t):{}}}]),r}(Ds)).defaults=ex({},t),e}Ds.defaults={},Ds.custom=eNe,Ds.oneOf=tNe,Ds.instanceOf=iNe,Ds.oneOfType=nNe,Ds.arrayOf=rNe,Ds.objectOf=oNe,Ds.shape=aNe,Ds.utils={validate:function(t,e){return Ch(e,t,!0)===!0},toType:function(t,e,n){return n===void 0&&(n=!1),n?ol(t,e):Lo(t,e)}};(function(t){function e(){return t.apply(this,arguments)||this}return xne(e,t),e})(Ene());const ne=Ene({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});ne.extend([{name:"looseBool",getter:!0,type:Boolean,default:void 0},{name:"style",getter:!0,type:[String,Object],default:void 0},{name:"VueNode",getter:!0,type:null}]);function sNe(t){return t.default=void 0,t}const Io=(t,e,n)=>{ra(t,`[ant-design-vue: ${e}] ${n}`)};function wW(t,e){const{key:n}=t;let r;return"value"in t&&({value:r}=t),n??(r!==void 0?r:`rc-index-key-${e}`)}function Mne(t,e){const{label:n,value:r,options:i}=t||{};return{label:n||(e?"children":"label"),value:r||"value",options:i||"options"}}function lNe(t){let{fieldNames:e,childrenAsData:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=[],{label:i,value:o,options:a}=Mne(e,!1);function s(l,u){l.forEach(c=>{const f=c[i];if(u||!(a in c)){const d=c[o];r.push({key:wW(c,r.length),groupOption:u,data:c,label:f,value:d})}else{let d=f;d===void 0&&n&&(d=c.label),r.push({key:wW(c,r.length),group:!0,data:c,label:d}),s(c[a],!0)}})}return s(t,!1),r}function $D(t){const e=k({},t);return"props"in e||Object.defineProperty(e,"props",{get(){return eh(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),e}}),e}function uNe(t,e){if(!e||!e.length)return null;let n=!1;function r(o,a){let[s,...l]=a;if(!s)return[o];const u=o.split(s);return n=n||u.length>1,u.reduce((c,f)=>[...c,...r(f,l)],[]).filter(c=>c)}const i=r(t,e);return n?i:null}function cNe(){return""}function fNe(t){return t?t.ownerDocument:window.document}function Ine(){}const dNe=()=>({action:ne.oneOfType([ne.string,ne.arrayOf(ne.string)]).def([]),showAction:ne.any.def([]),hideAction:ne.any.def([]),getPopupClassNameFromAlign:ne.any.def(cNe),onPopupVisibleChange:Function,afterPopupVisibleChange:ne.func.def(Ine),popup:ne.any,arrow:ne.bool.def(!0),popupStyle:{type:Object,default:void 0},prefixCls:ne.string.def("rc-trigger-popup"),popupClassName:ne.string.def(""),popupPlacement:String,builtinPlacements:ne.object,popupTransitionName:String,popupAnimation:ne.any,mouseEnterDelay:ne.number.def(0),mouseLeaveDelay:ne.number.def(.1),zIndex:Number,focusDelay:ne.number.def(0),blurDelay:ne.number.def(.15),getPopupContainer:Function,getDocument:ne.func.def(fNe),forceRender:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:!1},mask:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},popupAlign:ne.object.def(()=>({})),popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},maskTransitionName:String,maskAnimation:String,stretch:String,alignPoint:{type:Boolean,default:void 0},autoDestroy:{type:Boolean,default:!1},mobile:Object,getTriggerDOMNode:Function}),KL={visible:Boolean,prefixCls:String,zIndex:Number,destroyPopupOnHide:Boolean,forceRender:Boolean,arrow:{type:Boolean,default:!0},animation:[String,Object],transitionName:String,stretch:{type:String},align:{type:Object},point:{type:Object},getRootDomNode:{type:Function},getClassNameFromAlign:{type:Function},onAlign:{type:Function},onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function},onTouchstart:{type:Function}},hNe=k(k({},KL),{mobile:{type:Object}}),pNe=k(k({},KL),{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});function JL(t){let{prefixCls:e,animation:n,transitionName:r}=t;return n?{name:`${e}-${n}`}:r?{name:r}:{}}function Dne(t){const{prefixCls:e,visible:n,zIndex:r,mask:i,maskAnimation:o,maskTransitionName:a}=t;if(!i)return null;let s={};return(a||o)&&(s=JL({prefixCls:e,transitionName:a,animation:o})),h.createVNode(h.Transition,K({appear:!0},s),{default:()=>[h.withDirectives(h.createVNode("div",{style:{zIndex:r},class:`${e}-mask`},null),[[h.resolveDirective("if"),n]])]})}Dne.displayName="Mask";const vNe=h.defineComponent({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:hNe,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(t,e){let{expose:n,slots:r}=e;const i=h.ref();return n({forceAlign:()=>{},getElement:()=>i.value}),()=>{var o;const{zIndex:a,visible:s,prefixCls:l,mobile:{popupClassName:u,popupStyle:c,popupMotion:f={},popupRender:d}={}}=t,p=k({zIndex:a},c);let v=wr((o=r.default)===null||o===void 0?void 0:o.call(r));v.length>1&&(v=h.createVNode("div",{class:`${l}-content`},[v])),d&&(v=d(v));const g=Pe(l,u);return h.createVNode(h.Transition,K({ref:i},f),{default:()=>[s?h.createVNode("div",{class:g,style:p},[v]):null]})}}});var gNe=function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(c){try{u(r.next(c))}catch(f){a(f)}}function l(c){try{u(r.throw(c))}catch(f){a(f)}}function u(c){c.done?o(c.value):i(c.value).then(s,l)}u((r=r.apply(t,e||[])).next())})};const xW=["measure","align",null,"motion"],mNe=(t,e)=>{const n=h.shallowRef(null),r=h.shallowRef(),i=h.shallowRef(!1);function o(l){i.value||(n.value=l)}function a(){Rt.cancel(r.value)}function s(l){a(),r.value=Rt(()=>{let u=n.value;switch(n.value){case"align":u="motion";break;case"motion":u="stable";break}o(u),l==null||l()})}return h.watch(t,()=>{o("measure")},{immediate:!0,flush:"post"}),h.onMounted(()=>{h.watch(n,()=>{switch(n.value){case"measure":e();break}n.value&&(r.value=Rt(()=>gNe(void 0,void 0,void 0,function*(){const l=xW.indexOf(n.value),u=xW[l+1];u&&l!==-1&&o(u)})))},{immediate:!0,flush:"post"})}),h.onBeforeUnmount(()=>{i.value=!0,a()}),[n,s]},yNe=t=>{const e=h.shallowRef({width:0,height:0});function n(i){e.value={width:i.offsetWidth,height:i.offsetHeight}}return[h.computed(()=>{const i={};if(t.value){const{width:o,height:a}=e.value;t.value.indexOf("height")!==-1&&a?i.height=`${a}px`:t.value.indexOf("minHeight")!==-1&&a&&(i.minHeight=`${a}px`),t.value.indexOf("width")!==-1&&o?i.width=`${o}px`:t.value.indexOf("minWidth")!==-1&&o&&(i.minWidth=`${o}px`)}return i}),n]};function SW(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function CW(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?SW(Object(n),!0).forEach(function(r){bNe(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):SW(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function AD(t){"@babel/helpers - typeof";return AD=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},AD(t)}function bNe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Em,_Ne={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function aS(){if(Em!==void 0)return Em;Em="";var t=document.createElement("p").style,e="Transform";for(var n in _Ne)n+e in t&&(Em=n);return Em}function Rne(){return aS()?"".concat(aS(),"TransitionProperty"):"transitionProperty"}function MT(){return aS()?"".concat(aS(),"Transform"):"transform"}function TW(t,e){var n=Rne();n&&(t.style[n]=e,n!=="transitionProperty"&&(t.style.transitionProperty=e))}function sA(t,e){var n=MT();n&&(t.style[n]=e,n!=="transform"&&(t.style.transform=e))}function ONe(t){return t.style.transitionProperty||t.style[Rne()]}function wNe(t){var e=window.getComputedStyle(t,null),n=e.getPropertyValue("transform")||e.getPropertyValue(MT());if(n&&n!=="none"){var r=n.replace(/[^0-9\-.,]/g,"").split(",");return{x:parseFloat(r[12]||r[4],0),y:parseFloat(r[13]||r[5],0)}}return{x:0,y:0}}var xNe=/matrix\((.*)\)/,SNe=/matrix3d\((.*)\)/;function CNe(t,e){var n=window.getComputedStyle(t,null),r=n.getPropertyValue("transform")||n.getPropertyValue(MT());if(r&&r!=="none"){var i,o=r.match(xNe);if(o)o=o[1],i=o.split(",").map(function(s){return parseFloat(s,10)}),i[4]=e.x,i[5]=e.y,sA(t,"matrix(".concat(i.join(","),")"));else{var a=r.match(SNe)[1];i=a.split(",").map(function(s){return parseFloat(s,10)}),i[12]=e.x,i[13]=e.y,sA(t,"matrix3d(".concat(i.join(","),")"))}}else sA(t,"translateX(".concat(e.x,"px) translateY(").concat(e.y,"px) translateZ(0)"))}var TNe=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,Jb;function PW(t){var e=t.style.display;t.style.display="none",t.offsetHeight,t.style.display=e}function ov(t,e,n){var r=n;if(AD(e)==="object"){for(var i in e)e.hasOwnProperty(i)&&ov(t,i,e[i]);return}if(typeof r<"u"){typeof r=="number"&&(r="".concat(r,"px")),t.style[e]=r;return}return Jb(t,e)}function PNe(t){var e,n,r,i=t.ownerDocument,o=i.body,a=i&&i.documentElement;return e=t.getBoundingClientRect(),n=Math.floor(e.left),r=Math.floor(e.top),n-=a.clientLeft||o.clientLeft||0,r-=a.clientTop||o.clientTop||0,{left:n,top:r}}function kne(t,e){var n=t["page".concat(e?"Y":"X","Offset")],r="scroll".concat(e?"Top":"Left");if(typeof n!="number"){var i=t.document;n=i.documentElement[r],typeof n!="number"&&(n=i.body[r])}return n}function Nne(t){return kne(t)}function Lne(t){return kne(t,!0)}function Hy(t){var e=PNe(t),n=t.ownerDocument,r=n.defaultView||n.parentWindow;return e.left+=Nne(r),e.top+=Lne(r),e}function e4(t){return t!=null&&t==t.window}function Bne(t){return e4(t)?t.document:t.nodeType===9?t:t.ownerDocument}function $Ne(t,e,n){var r=n,i="",o=Bne(t);return r=r||o.defaultView.getComputedStyle(t,null),r&&(i=r.getPropertyValue(e)||r[e]),i}var ANe=new RegExp("^(".concat(TNe,")(?!px)[a-z%]+$"),"i"),ENe=/^(top|right|bottom|left)$/,lA="currentStyle",uA="runtimeStyle",bf="left",MNe="px";function INe(t,e){var n=t[lA]&&t[lA][e];if(ANe.test(n)&&!ENe.test(e)){var r=t.style,i=r[bf],o=t[uA][bf];t[uA][bf]=t[lA][bf],r[bf]=e==="fontSize"?"1em":n||0,n=r.pixelLeft+MNe,r[bf]=i,t[uA][bf]=o}return n===""?"auto":n}typeof window<"u"&&(Jb=window.getComputedStyle?$Ne:INe);function eO(t,e){return t==="left"?e.useCssRight?"right":t:e.useCssBottom?"bottom":t}function $W(t){if(t==="left")return"right";if(t==="right")return"left";if(t==="top")return"bottom";if(t==="bottom")return"top"}function AW(t,e,n){ov(t,"position")==="static"&&(t.style.position="relative");var r=-999,i=-999,o=eO("left",n),a=eO("top",n),s=$W(o),l=$W(a);o!=="left"&&(r=999),a!=="top"&&(i=999);var u="",c=Hy(t);("left"in e||"top"in e)&&(u=ONe(t)||"",TW(t,"none")),"left"in e&&(t.style[s]="",t.style[o]="".concat(r,"px")),"top"in e&&(t.style[l]="",t.style[a]="".concat(i,"px")),PW(t);var f=Hy(t),d={};for(var p in e)if(e.hasOwnProperty(p)){var v=eO(p,n),g=p==="left"?r:i,m=c[p]-f[p];v===p?d[v]=g+m:d[v]=g-m}ov(t,d),PW(t),("left"in e||"top"in e)&&TW(t,u);var y={};for(var b in e)if(e.hasOwnProperty(b)){var O=eO(b,n),w=e[b]-c[b];b===O?y[O]=d[O]+w:y[O]=d[O]-w}ov(t,y)}function DNe(t,e){var n=Hy(t),r=wNe(t),i={x:r.x,y:r.y};"left"in e&&(i.x=r.x+e.left-n.left),"top"in e&&(i.y=r.y+e.top-n.top),CNe(t,i)}function RNe(t,e,n){if(n.ignoreShake){var r=Hy(t),i=r.left.toFixed(0),o=r.top.toFixed(0),a=e.left.toFixed(0),s=e.top.toFixed(0);if(i===a&&o===s)return}n.useCssRight||n.useCssBottom?AW(t,e,n):n.useCssTransform&&MT()in document.body.style?DNe(t,e):AW(t,e,n)}function t4(t,e){for(var n=0;n<t.length;n++)e(t[n])}function Vne(t){return Jb(t,"boxSizing")==="border-box"}var kNe=["margin","border","padding"],ED=-1,NNe=2,MD=1,LNe=0;function BNe(t,e,n){var r={},i=t.style,o;for(o in e)e.hasOwnProperty(o)&&(r[o]=i[o],i[o]=e[o]);n.call(t);for(o in e)e.hasOwnProperty(o)&&(i[o]=r[o])}function O0(t,e,n){var r=0,i,o,a;for(o=0;o<e.length;o++)if(i=e[o],i)for(a=0;a<n.length;a++){var s=void 0;i==="border"?s="".concat(i).concat(n[a],"Width"):s=i+n[a],r+=parseFloat(Jb(t,s))||0}return r}var Gs={getParent:function(e){var n=e;do n.nodeType===11&&n.host?n=n.host:n=n.parentNode;while(n&&n.nodeType!==1&&n.nodeType!==9);return n}};t4(["Width","Height"],function(t){Gs["doc".concat(t)]=function(e){var n=e.document;return Math.max(n.documentElement["scroll".concat(t)],n.body["scroll".concat(t)],Gs["viewport".concat(t)](n))},Gs["viewport".concat(t)]=function(e){var n="client".concat(t),r=e.document,i=r.body,o=r.documentElement,a=o[n];return r.compatMode==="CSS1Compat"&&a||i&&i[n]||a}});function EW(t,e,n){var r=n;if(e4(t))return e==="width"?Gs.viewportWidth(t):Gs.viewportHeight(t);if(t.nodeType===9)return e==="width"?Gs.docWidth(t):Gs.docHeight(t);var i=e==="width"?["Left","Right"]:["Top","Bottom"],o=Math.floor(e==="width"?t.getBoundingClientRect().width:t.getBoundingClientRect().height),a=Vne(t),s=0;(o==null||o<=0)&&(o=void 0,s=Jb(t,e),(s==null||Number(s)<0)&&(s=t.style[e]||0),s=Math.floor(parseFloat(s))||0),r===void 0&&(r=a?MD:ED);var l=o!==void 0||a,u=o||s;return r===ED?l?u-O0(t,["border","padding"],i):s:l?r===MD?u:u+(r===NNe?-O0(t,["border"],i):O0(t,["margin"],i)):s+O0(t,kNe.slice(r),i)}var VNe={position:"absolute",visibility:"hidden",display:"block"};function MW(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r,i=e[0];return i.offsetWidth!==0?r=EW.apply(void 0,e):BNe(i,VNe,function(){r=EW.apply(void 0,e)}),r}t4(["width","height"],function(t){var e=t.charAt(0).toUpperCase()+t.slice(1);Gs["outer".concat(e)]=function(r,i){return r&&MW(r,t,i?LNe:MD)};var n=t==="width"?["Left","Right"]:["Top","Bottom"];Gs[t]=function(r,i){var o=i;if(o!==void 0){if(r){var a=Vne(r);return a&&(o+=O0(r,["padding","border"],n)),ov(r,t,o)}return}return r&&MW(r,t,ED)}});function zne(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var Ot={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var n=e.ownerDocument||e;return n.defaultView||n.parentWindow},getDocument:Bne,offset:function(e,n,r){if(typeof n<"u")RNe(e,n,r||{});else return Hy(e)},isWindow:e4,each:t4,css:ov,clone:function(e){var n,r={};for(n in e)e.hasOwnProperty(n)&&(r[n]=e[n]);var i=e.overflow;if(i)for(n in e)e.hasOwnProperty(n)&&(r.overflow[n]=e.overflow[n]);return r},mix:zne,getWindowScrollLeft:function(e){return Nne(e)},getWindowScrollTop:function(e){return Lne(e)},merge:function(){for(var e={},n=0;n<arguments.length;n++)Ot.mix(e,n<0||arguments.length<=n?void 0:arguments[n]);return e},viewportWidth:0,viewportHeight:0};zne(Ot,Gs);var cA=Ot.getParent;function ID(t){if(Ot.isWindow(t)||t.nodeType===9)return null;var e=Ot.getDocument(t),n=e.body,r,i=Ot.css(t,"position"),o=i==="fixed"||i==="absolute";if(!o)return t.nodeName.toLowerCase()==="html"?null:cA(t);for(r=cA(t);r&&r!==n&&r.nodeType!==9;r=cA(r))if(i=Ot.css(r,"position"),i!=="static")return r;return null}var IW=Ot.getParent;function zNe(t){if(Ot.isWindow(t)||t.nodeType===9)return!1;var e=Ot.getDocument(t),n=e.body,r=null;for(r=IW(t);r&&r!==n&&r!==e;r=IW(r)){var i=Ot.css(r,"position");if(i==="fixed")return!0}return!1}function n4(t,e){for(var n={left:0,right:1/0,top:0,bottom:1/0},r=ID(t),i=Ot.getDocument(t),o=i.defaultView||i.parentWindow,a=i.body,s=i.documentElement;r;){if((navigator.userAgent.indexOf("MSIE")===-1||r.clientWidth!==0)&&r!==a&&r!==s&&Ot.css(r,"overflow")!=="visible"){var l=Ot.offset(r);l.left+=r.clientLeft,l.top+=r.clientTop,n.top=Math.max(n.top,l.top),n.right=Math.min(n.right,l.left+r.clientWidth),n.bottom=Math.min(n.bottom,l.top+r.clientHeight),n.left=Math.max(n.left,l.left)}else if(r===a||r===s)break;r=ID(r)}var u=null;if(!Ot.isWindow(t)&&t.nodeType!==9){u=t.style.position;var c=Ot.css(t,"position");c==="absolute"&&(t.style.position="fixed")}var f=Ot.getWindowScrollLeft(o),d=Ot.getWindowScrollTop(o),p=Ot.viewportWidth(o),v=Ot.viewportHeight(o),g=s.scrollWidth,m=s.scrollHeight,y=window.getComputedStyle(a);if(y.overflowX==="hidden"&&(g=o.innerWidth),y.overflowY==="hidden"&&(m=o.innerHeight),t.style&&(t.style.position=u),e||zNe(t))n.left=Math.max(n.left,f),n.top=Math.max(n.top,d),n.right=Math.min(n.right,f+p),n.bottom=Math.min(n.bottom,d+v);else{var b=Math.max(g,f+p);n.right=Math.min(n.right,b);var O=Math.max(m,d+v);n.bottom=Math.min(n.bottom,O)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function FNe(t,e,n,r){var i=Ot.clone(t),o={width:e.width,height:e.height};return r.adjustX&&i.left<n.left&&(i.left=n.left),r.resizeWidth&&i.left>=n.left&&i.left+o.width>n.right&&(o.width-=i.left+o.width-n.right),r.adjustX&&i.left+o.width>n.right&&(i.left=Math.max(n.right-o.width,n.left)),r.adjustY&&i.top<n.top&&(i.top=n.top),r.resizeHeight&&i.top>=n.top&&i.top+o.height>n.bottom&&(o.height-=i.top+o.height-n.bottom),r.adjustY&&i.top+o.height>n.bottom&&(i.top=Math.max(n.bottom-o.height,n.top)),Ot.mix(i,o)}function r4(t){var e,n,r;if(!Ot.isWindow(t)&&t.nodeType!==9)e=Ot.offset(t),n=Ot.outerWidth(t),r=Ot.outerHeight(t);else{var i=Ot.getWindow(t);e={left:Ot.getWindowScrollLeft(i),top:Ot.getWindowScrollTop(i)},n=Ot.viewportWidth(i),r=Ot.viewportHeight(i)}return e.width=n,e.height=r,e}function DW(t,e){var n=e.charAt(0),r=e.charAt(1),i=t.width,o=t.height,a=t.left,s=t.top;return n==="c"?s+=o/2:n==="b"&&(s+=o),r==="c"?a+=i/2:r==="r"&&(a+=i),{left:a,top:s}}function tO(t,e,n,r,i){var o=DW(e,n[1]),a=DW(t,n[0]),s=[a.left-o.left,a.top-o.top];return{left:Math.round(t.left-s[0]+r[0]-i[0]),top:Math.round(t.top-s[1]+r[1]-i[1])}}function RW(t,e,n){return t.left<n.left||t.left+e.width>n.right}function kW(t,e,n){return t.top<n.top||t.top+e.height>n.bottom}function WNe(t,e,n){return t.left>n.right||t.left+e.width<n.left}function QNe(t,e,n){return t.top>n.bottom||t.top+e.height<n.top}function nO(t,e,n){var r=[];return Ot.each(t,function(i){r.push(i.replace(e,function(o){return n[o]}))}),r}function rO(t,e){return t[e]=-t[e],t}function NW(t,e){var n;return/%$/.test(t)?n=parseInt(t.substring(0,t.length-1),10)/100*e:n=parseInt(t,10),n||0}function LW(t,e){t[0]=NW(t[0],e.width),t[1]=NW(t[1],e.height)}function Fne(t,e,n,r){var i=n.points,o=n.offset||[0,0],a=n.targetOffset||[0,0],s=n.overflow,l=n.source||t;o=[].concat(o),a=[].concat(a),s=s||{};var u={},c=0,f=!!(s&&s.alwaysByViewport),d=n4(l,f),p=r4(l);LW(o,p),LW(a,e);var v=tO(p,e,i,o,a),g=Ot.merge(p,v);if(d&&(s.adjustX||s.adjustY)&&r){if(s.adjustX&&RW(v,p,d)){var m=nO(i,/[lr]/gi,{l:"r",r:"l"}),y=rO(o,0),b=rO(a,0),O=tO(p,e,m,y,b);WNe(O,p,d)||(c=1,i=m,o=y,a=b)}if(s.adjustY&&kW(v,p,d)){var w=nO(i,/[tb]/gi,{t:"b",b:"t"}),x=rO(o,1),S=rO(a,1),T=tO(p,e,w,x,S);QNe(T,p,d)||(c=1,i=w,o=x,a=S)}c&&(v=tO(p,e,i,o,a),Ot.mix(g,v));var $=RW(v,p,d),A=kW(v,p,d);if($||A){var P=i;$&&(P=nO(i,/[lr]/gi,{l:"r",r:"l"})),A&&(P=nO(i,/[tb]/gi,{t:"b",b:"t"})),i=P,o=n.offset||[0,0],a=n.targetOffset||[0,0]}u.adjustX=s.adjustX&&$,u.adjustY=s.adjustY&&A,(u.adjustX||u.adjustY)&&(g=FNe(v,p,d,u))}return g.width!==p.width&&Ot.css(l,"width",Ot.width(l)+g.width-p.width),g.height!==p.height&&Ot.css(l,"height",Ot.height(l)+g.height-p.height),Ot.offset(l,{left:g.left,top:g.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:i,offset:o,targetOffset:a,overflow:u}}function HNe(t,e){var n=n4(t,e),r=r4(t);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}function i4(t,e,n){var r=n.target||e,i=r4(r),o=!HNe(r,n.overflow&&n.overflow.alwaysByViewport);return Fne(t,i,n,o)}i4.__getOffsetParent=ID;i4.__getVisibleRectForElement=n4;function GNe(t,e,n){var r,i,o=Ot.getDocument(t),a=o.defaultView||o.parentWindow,s=Ot.getWindowScrollLeft(a),l=Ot.getWindowScrollTop(a),u=Ot.viewportWidth(a),c=Ot.viewportHeight(a);"pageX"in e?r=e.pageX:r=s+e.clientX,"pageY"in e?i=e.pageY:i=l+e.clientY;var f={left:r,top:i,width:0,height:0},d=r>=0&&r<=s+u&&i>=0&&i<=l+c,p=[n.points[0],"cc"];return Fne(t,f,CW(CW({},n),{},{points:p}),d)}function Xn(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=t;if(Array.isArray(t)&&(i=fl(t)[0]),!i)return null;const o=h.cloneVNode(i,e,r);return o.props=n?k(k({},o.props),e):o.props,$i(typeof o.props.class!="object","class must be string"),o}function jNe(t,e,n){h.render(h.cloneVNode(t,k({},e)),n)}const Wne=t=>{if(!t)return!1;if(t.offsetParent)return!0;if(t.getBBox){const e=t.getBBox();if(e.width||e.height)return!0}if(t.getBoundingClientRect){const e=t.getBoundingClientRect();if(e.width||e.height)return!0}return!1};function UNe(t,e){return t===e?!0:!t||!e?!1:"pageX"in e&&"pageY"in e?t.pageX===e.pageX&&t.pageY===e.pageY:"clientX"in e&&"clientY"in e?t.clientX===e.clientX&&t.clientY===e.clientY:!1}function ZNe(t,e){t!==document.activeElement&&qu(e,t)&&typeof t.focus=="function"&&t.focus()}function BW(t,e){let n=null,r=null;function i(a){let[{target:s}]=a;if(!document.documentElement.contains(s))return;const{width:l,height:u}=s.getBoundingClientRect(),c=Math.floor(l),f=Math.floor(u);(n!==c||r!==f)&&Promise.resolve().then(()=>{e({width:c,height:f})}),n=c,r=f}const o=new $te(i);return t&&o.observe(t),()=>{o.disconnect()}}const XNe=(t,e)=>{let n=!1,r=null;function i(){clearTimeout(r)}function o(a){if(!n||a===!0){if(t()===!1)return;n=!0,i(),r=setTimeout(()=>{n=!1},e.value)}else i(),r=setTimeout(()=>{n=!1,o()},e.value)}return[o,()=>{n=!1,i()}]},YNe={align:Object,target:[Object,Function],onAlign:Function,monitorBufferTime:Number,monitorWindowResize:Boolean,disabled:Boolean};function VW(t){return typeof t!="function"?null:t()}function zW(t){return typeof t!="object"||!t?null:t}const qNe=h.defineComponent({compatConfig:{MODE:3},name:"Align",props:YNe,emits:["align"],setup(t,e){let{expose:n,slots:r}=e;const i=h.ref({}),o=h.ref(),[a,s]=XNe(()=>{const{disabled:d,target:p,align:v,onAlign:g}=t;if(!d&&p&&o.value){const m=o.value;let y;const b=VW(p),O=zW(p);i.value.element=b,i.value.point=O,i.value.align=v;const{activeElement:w}=document;return b&&Wne(b)?y=i4(m,b,v):O&&(y=GNe(m,O,v)),ZNe(w,m),g&&y&&g(m,y),!0}return!1},h.computed(()=>t.monitorBufferTime)),l=h.ref({cancel:()=>{}}),u=h.ref({cancel:()=>{}}),c=()=>{const d=t.target,p=VW(d),v=zW(d);o.value!==u.value.element&&(u.value.cancel(),u.value.element=o.value,u.value.cancel=BW(o.value,a)),(i.value.element!==p||!UNe(i.value.point,v)||!jb(i.value.align,t.align))&&(a(),l.value.element!==p&&(l.value.cancel(),l.value.element=p,l.value.cancel=BW(p,a)))};h.onMounted(()=>{h.nextTick(()=>{c()})}),h.onUpdated(()=>{h.nextTick(()=>{c()})}),h.watch(()=>t.disabled,d=>{d?s():a()},{immediate:!0,flush:"post"});const f=h.ref(null);return h.watch(()=>t.monitorWindowResize,d=>{d?f.value||(f.value=Wr(window,"resize",a)):f.value&&(f.value.remove(),f.value=null)},{flush:"post"}),h.onUnmounted(()=>{l.value.cancel(),u.value.cancel(),f.value&&f.value.remove(),s()}),n({forceAlign:()=>a(!0)}),()=>{const d=r==null?void 0:r.default();return d?Xn(d[0],{ref:o},!0,!0):null}}});$c("bottomLeft","bottomRight","topLeft","topRight");const KNe=t=>t!==void 0&&(t==="topLeft"||t==="topRight")?"slide-down":"slide-up",e_=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return k(t?{name:t,appear:!0,enterFromClass:`${t}-enter ${t}-enter-prepare ${t}-enter-start`,enterActiveClass:`${t}-enter ${t}-enter-prepare`,enterToClass:`${t}-enter ${t}-enter-active`,leaveFromClass:` ${t}-leave`,leaveActiveClass:`${t}-leave ${t}-leave-active`,leaveToClass:`${t}-leave ${t}-leave-active`}:{css:!1},e)},o4=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return k(t?{name:t,appear:!0,appearActiveClass:`${t}`,appearToClass:`${t}-appear ${t}-appear-active`,enterFromClass:`${t}-appear ${t}-enter ${t}-appear-prepare ${t}-enter-prepare`,enterActiveClass:`${t}`,enterToClass:`${t}-enter ${t}-appear ${t}-appear-active ${t}-enter-active`,leaveActiveClass:`${t} ${t}-leave`,leaveToClass:`${t}-leave-active`}:{css:!1},e)},al=(t,e,n)=>n!==void 0?n:`${t}-${e}`,JNe=h.defineComponent({compatConfig:{MODE:3},name:"PopupInner",inheritAttrs:!1,props:KL,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(t,e){let{expose:n,attrs:r,slots:i}=e;const o=h.shallowRef(),a=h.shallowRef(),s=h.shallowRef(),[l,u]=yNe(h.toRef(t,"stretch")),c=()=>{t.stretch&&u(t.getRootDomNode())},f=h.shallowRef(!1);let d;h.watch(()=>t.visible,S=>{clearTimeout(d),S?d=setTimeout(()=>{f.value=t.visible}):f.value=!1},{immediate:!0});const[p,v]=mNe(f,c),g=h.shallowRef(),m=()=>t.point?t.point:t.getRootDomNode,y=()=>{var S;(S=o.value)===null||S===void 0||S.forceAlign()},b=(S,T)=>{var $;const A=t.getClassNameFromAlign(T),P=s.value;s.value!==A&&(s.value=A),p.value==="align"&&(P!==A?Promise.resolve().then(()=>{y()}):v(()=>{var M;(M=g.value)===null||M===void 0||M.call(g)}),($=t.onAlign)===null||$===void 0||$.call(t,S,T))},O=h.computed(()=>{const S=typeof t.animation=="object"?t.animation:JL(t);return["onAfterEnter","onAfterLeave"].forEach(T=>{const $=S[T];S[T]=A=>{v(),p.value="stable",$==null||$(A)}}),S}),w=()=>new Promise(S=>{g.value=S});h.watch([O,p],()=>{!O.value&&p.value==="motion"&&v()},{immediate:!0}),n({forceAlign:y,getElement:()=>a.value.$el||a.value});const x=h.computed(()=>{var S;return!(!((S=t.align)===null||S===void 0)&&S.points&&(p.value==="align"||p.value==="stable"))});return()=>{var S;const{zIndex:T,align:$,prefixCls:A,destroyPopupOnHide:P,onMouseenter:M,onMouseleave:I,onTouchstart:R=()=>{},onMousedown:L}=t,D=p.value,B=[k(k({},l.value),{zIndex:T,opacity:D==="motion"||D==="stable"||!f.value?null:0,pointerEvents:!f.value&&D!=="stable"?"none":null}),r.style];let F=wr((S=i.default)===null||S===void 0?void 0:S.call(i,{visible:t.visible}));F.length>1&&(F=h.createVNode("div",{class:`${A}-content`},[F]));const z=Pe(A,r.class,s.value,!t.arrow&&`${A}-arrow-hidden`),j=f.value||!t.visible?e_(O.value.name,O.value):{};return h.createVNode(h.Transition,K(K({ref:a},j),{},{onBeforeEnter:w}),{default:()=>!P||t.visible?h.withDirectives(h.createVNode(qNe,{target:m(),key:"popup",ref:o,monitorWindowResize:!0,disabled:x.value,align:$,onAlign:b},{default:()=>h.createVNode("div",{class:z,onMouseenter:M,onMouseleave:I,onMousedown:h.withModifiers(L,["capture"]),[Fr?"onTouchstartPassive":"onTouchstart"]:h.withModifiers(R,["capture"]),style:B},[F])}),[[h.vShow,f.value]]):null})}}}),eLe=h.defineComponent({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:pNe,setup(t,e){let{attrs:n,slots:r,expose:i}=e;const o=h.shallowRef(!1),a=h.shallowRef(!1),s=h.shallowRef(),l=h.shallowRef();return h.watch([()=>t.visible,()=>t.mobile],()=>{o.value=t.visible,t.visible&&t.mobile&&(a.value=!0)},{immediate:!0,flush:"post"}),i({forceAlign:()=>{var u;(u=s.value)===null||u===void 0||u.forceAlign()},getElement:()=>{var u;return(u=s.value)===null||u===void 0?void 0:u.getElement()}}),()=>{const u=k(k(k({},t),n),{visible:o.value}),c=a.value?h.createVNode(vNe,K(K({},u),{},{mobile:t.mobile,ref:s}),{default:r.default}):h.createVNode(JNe,K(K({},u),{},{ref:s}),{default:r.default});return h.createVNode("div",{ref:l},[h.createVNode(Dne,u,null),c])}}});function tLe(t,e,n){return n?t[0]===e[0]:t[0]===e[0]&&t[1]===e[1]}function FW(t,e,n){const r=t[e]||{};return k(k({},r),n)}function nLe(t,e,n,r){const{points:i}=n,o=Object.keys(t);for(let a=0;a<o.length;a+=1){const s=o[a];if(tLe(t[s].points,i,r))return`${e}-placement-${s}`}return""}const IT={methods:{setState(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0,n=typeof t=="function"?t(this.$data,this.$props):t;if(this.getDerivedStateFromProps){const r=this.getDerivedStateFromProps(YDe(this),k(k({},this.$data),n));if(r===null)return;n=k(k({},n),r||{})}k(this.$data,n),this._.isMounted&&this.$forceUpdate(),h.nextTick(()=>{e&&e()})},__emit(){const t=[].slice.call(arguments,0);let e=t[0];e=`on${e[0].toUpperCase()}${e.substring(1)}`;const n=this.$props[e]||this.$attrs[e];if(t.length&&n)if(Array.isArray(n))for(let r=0,i=n.length;r<i;r++)n[r](...t.slice(1));else n(...t.slice(1))}}},Qne=Symbol("PortalContextKey"),a4=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inTriggerContext:!0};h.provide(Qne,{inTriggerContext:e.inTriggerContext,shouldRender:h.computed(()=>{const{sPopupVisible:n,popupRef:r,forceRender:i,autoDestroy:o}=t||{};let a=!1;return(n||r||i)&&(a=!0),!n&&o&&(a=!1),a})})},rLe=()=>{a4({},{inTriggerContext:!1});const t=h.inject(Qne,{shouldRender:h.computed(()=>!1),inTriggerContext:!1});return{shouldRender:h.computed(()=>t.shouldRender.value||t.inTriggerContext===!1)}},Hne=h.defineComponent({compatConfig:{MODE:3},name:"Portal",inheritAttrs:!1,props:{getContainer:ne.func.isRequired,didUpdate:Function},setup(t,e){let{slots:n}=e,r=!0,i;const{shouldRender:o}=rLe();function a(){o.value&&(i=t.getContainer())}h.onBeforeMount(()=>{r=!1,a()}),h.onMounted(()=>{i||a()});const s=h.watch(o,()=>{o.value&&!i&&(i=t.getContainer()),i&&s()});return h.onUpdated(()=>{h.nextTick(()=>{var l;o.value&&((l=t.didUpdate)===null||l===void 0||l.call(t,t))})}),()=>{var l;return o.value?r?(l=n.default)===null||l===void 0?void 0:l.call(n):i?h.createVNode(h.Teleport,{to:i},n):null:null}}});let fA;function iLe(t){if(typeof document>"u")return 0;if(fA===void 0){const e=document.createElement("div");e.style.width="100%",e.style.height="200px";const n=document.createElement("div"),r=n.style;r.position="absolute",r.top="0",r.left="0",r.pointerEvents="none",r.visibility="hidden",r.width="200px",r.height="150px",r.overflow="hidden",n.appendChild(e),document.body.appendChild(n);const i=e.offsetWidth;n.style.overflow="scroll";let o=e.offsetWidth;i===o&&(o=n.clientWidth),document.body.removeChild(n),fA=i-o}return fA}const oLe=`vc-util-locker-${Date.now()}`;let WW=0;function aLe(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}function sLe(t){const e=h.computed(()=>!!t&&!!t.value);WW+=1;const n=`${oLe}_${WW}`;h.watchEffect(r=>{if(Sa()){if(e.value){const i=iLe(),o=aLe();zy(`
  74. html body {
  75. overflow-y: hidden;
  76. ${o?`width: calc(100% - ${i}px);`:""}
  77. }`,n)}else tS(n);r(()=>{tS(n)})}},{flush:"post"})}let _f=0;const tx=Sa(),QW=t=>{if(!tx)return null;if(t){if(typeof t=="string")return document.querySelectorAll(t)[0];if(typeof t=="function")return t();if(typeof t=="object"&&t instanceof window.HTMLElement)return t}return document.body},Gne=h.defineComponent({compatConfig:{MODE:3},name:"PortalWrapper",inheritAttrs:!1,props:{wrapperClassName:String,forceRender:{type:Boolean,default:void 0},getContainer:ne.any,visible:{type:Boolean,default:void 0},autoLock:ft(),didUpdate:Function},setup(t,e){let{slots:n}=e;const r=h.shallowRef(),i=h.shallowRef(),o=h.shallowRef(),a=h.shallowRef(1),s=Sa()&&document.createElement("div"),l=()=>{var p,v;r.value===s&&((v=(p=r.value)===null||p===void 0?void 0:p.parentNode)===null||v===void 0||v.removeChild(r.value)),r.value=null};let u=null;const c=function(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)||r.value&&!r.value.parentNode?(u=QW(t.getContainer),u?(u.appendChild(r.value),!0):!1):!0},f=()=>tx?(r.value||(r.value=s,c(!0)),d(),r.value):null,d=()=>{const{wrapperClassName:p}=t;r.value&&p&&p!==r.value.className&&(r.value.className=p)};return h.onUpdated(()=>{d(),c()}),sLe(h.computed(()=>t.autoLock&&t.visible&&Sa()&&(r.value===document.body||r.value===s))),h.onMounted(()=>{let p=!1;h.watch([()=>t.visible,()=>t.getContainer],(v,g)=>{let[m,y]=v,[b,O]=g;tx&&(u=QW(t.getContainer),u===document.body&&(m&&!b?_f+=1:p&&(_f-=1))),p&&(typeof y=="function"&&typeof O=="function"?y.toString()!==O.toString():y!==O)&&l(),p=!0},{immediate:!0,flush:"post"}),h.nextTick(()=>{c()||(o.value=Rt(()=>{a.value+=1}))})}),h.onBeforeUnmount(()=>{const{visible:p}=t;tx&&u===document.body&&(_f=p&&_f?_f-1:_f),l(),Rt.cancel(o.value)}),()=>{const{forceRender:p,visible:v}=t;let g=null;const m={getOpenCount:()=>_f,getContainer:f};return a.value&&(p||v||i.value)&&(g=h.createVNode(Hne,{getContainer:f,ref:i,didUpdate:t.didUpdate},{default:()=>{var y;return(y=n.default)===null||y===void 0?void 0:y.call(n,m)}})),g}}}),lLe=["onClick","onMousedown","onTouchstart","onMouseenter","onMouseleave","onFocus","onBlur","onContextmenu"],DT=h.defineComponent({compatConfig:{MODE:3},name:"Trigger",mixins:[IT],inheritAttrs:!1,props:dNe(),setup(t){const e=h.computed(()=>{const{popupPlacement:i,popupAlign:o,builtinPlacements:a}=t;return i&&a?FW(a,i,o):o}),n=h.shallowRef(null),r=i=>{n.value=i};return{vcTriggerContext:h.inject("vcTriggerContext",{}),popupRef:n,setPopupRef:r,triggerRef:h.shallowRef(null),align:e,focusTime:null,clickOutsideHandler:null,contextmenuOutsideHandler1:null,contextmenuOutsideHandler2:null,touchOutsideHandler:null,attachId:null,delayTimer:null,hasPopupMouseDown:!1,preClickTime:null,preTouchTime:null,mouseDownTimeout:null,childOriginEvents:{}}},data(){const t=this.$props;let e;return this.popupVisible!==void 0?e=!!t.popupVisible:e=!!t.defaultPopupVisible,lLe.forEach(n=>{this[`fire${n}`]=r=>{this.fireEvents(n,r)}}),{prevPopupVisible:e,sPopupVisible:e,point:null}},watch:{popupVisible(t){t!==void 0&&(this.prevPopupVisible=this.sPopupVisible,this.sPopupVisible=t)}},created(){h.provide("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown,onPopupMouseenter:this.onPopupMouseenter,onPopupMouseleave:this.onPopupMouseleave}),a4(this)},deactivated(){this.setPopupVisible(!1)},mounted(){this.$nextTick(()=>{this.updatedCal()})},updated(){this.$nextTick(()=>{this.updatedCal()})},beforeUnmount(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),Rt.cancel(this.attachId)},methods:{updatedCal(){const t=this.$props;if(this.$data.sPopupVisible){let n;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextmenuToShow())&&(n=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Wr(n,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(n=n||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Wr(n,"touchstart",this.onDocumentClick,Fr?{passive:!1}:!1)),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(n=n||t.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=Wr(n,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=Wr(window,"blur",this.onContextmenuClose))}else this.clearOutsideHandler()},onMouseenter(t){const{mouseEnterDelay:e}=this.$props;this.fireEvents("onMouseenter",t),this.delaySetPopupVisible(!0,e,e?null:t)},onMouseMove(t){this.fireEvents("onMousemove",t),this.setPoint(t)},onMouseleave(t){this.fireEvents("onMouseleave",t),this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onPopupMouseenter(){const{vcTriggerContext:t={}}=this;t.onPopupMouseenter&&t.onPopupMouseenter(),this.clearDelayTimer()},onPopupMouseleave(t){var e;if(t&&t.relatedTarget&&!t.relatedTarget.setTimeout&&qu((e=this.popupRef)===null||e===void 0?void 0:e.getElement(),t.relatedTarget))return;this.isMouseLeaveToHide()&&this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay);const{vcTriggerContext:n={}}=this;n.onPopupMouseleave&&n.onPopupMouseleave(t)},onFocus(t){this.fireEvents("onFocus",t),this.clearDelayTimer(),this.isFocusToShow()&&(this.focusTime=Date.now(),this.delaySetPopupVisible(!0,this.$props.focusDelay))},onMousedown(t){this.fireEvents("onMousedown",t),this.preClickTime=Date.now()},onTouchstart(t){this.fireEvents("onTouchstart",t),this.preTouchTime=Date.now()},onBlur(t){qu(t.target,t.relatedTarget||document.activeElement)||(this.fireEvents("onBlur",t),this.clearDelayTimer(),this.isBlurToHide()&&this.delaySetPopupVisible(!1,this.$props.blurDelay))},onContextmenu(t){t.preventDefault(),this.fireEvents("onContextmenu",t),this.setPopupVisible(!0,t)},onContextmenuClose(){this.isContextmenuToShow()&&this.close()},onClick(t){if(this.fireEvents("onClick",t),this.focusTime){let n;if(this.preClickTime&&this.preTouchTime?n=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?n=this.preClickTime:this.preTouchTime&&(n=this.preTouchTime),Math.abs(n-this.focusTime)<20)return;this.focusTime=0}this.preClickTime=0,this.preTouchTime=0,this.isClickToShow()&&(this.isClickToHide()||this.isBlurToHide())&&t&&t.preventDefault&&t.preventDefault(),t&&t.domEvent&&t.domEvent.preventDefault();const e=!this.$data.sPopupVisible;(this.isClickToHide()&&!e||e&&this.isClickToShow())&&this.setPopupVisible(!this.$data.sPopupVisible,t)},onPopupMouseDown(){const{vcTriggerContext:t={}}=this;this.hasPopupMouseDown=!0,clearTimeout(this.mouseDownTimeout),this.mouseDownTimeout=setTimeout(()=>{this.hasPopupMouseDown=!1},0),t.onPopupMouseDown&&t.onPopupMouseDown(...arguments)},onDocumentClick(t){if(this.$props.mask&&!this.$props.maskClosable)return;const e=t.target,n=this.getRootDomNode(),r=this.getPopupDomNode();(!qu(n,e)||this.isContextMenuOnly())&&!qu(r,e)&&!this.hasPopupMouseDown&&this.delaySetPopupVisible(!1,.1)},getPopupDomNode(){var t;return((t=this.popupRef)===null||t===void 0?void 0:t.getElement())||null},getRootDomNode(){var t,e,n,r;const{getTriggerDOMNode:i}=this.$props;if(i){const o=((e=(t=this.triggerRef)===null||t===void 0?void 0:t.$el)===null||e===void 0?void 0:e.nodeName)==="#comment"?null:Fl(this.triggerRef);return Fl(i(o))}try{const o=((r=(n=this.triggerRef)===null||n===void 0?void 0:n.$el)===null||r===void 0?void 0:r.nodeName)==="#comment"?null:Fl(this.triggerRef);if(o)return o}catch{}return Fl(this)},handleGetPopupClassFromAlign(t){const e=[],n=this.$props,{popupPlacement:r,builtinPlacements:i,prefixCls:o,alignPoint:a,getPopupClassNameFromAlign:s}=n;return r&&i&&e.push(nLe(i,o,t,a)),s&&e.push(s(t)),e.join(" ")},getPopupAlign(){const t=this.$props,{popupPlacement:e,popupAlign:n,builtinPlacements:r}=t;return e&&r?FW(r,e,n):n},getComponent(){const t={};this.isMouseEnterToShow()&&(t.onMouseenter=this.onPopupMouseenter),this.isMouseLeaveToHide()&&(t.onMouseleave=this.onPopupMouseleave),t.onMousedown=this.onPopupMouseDown,t[Fr?"onTouchstartPassive":"onTouchstart"]=this.onPopupMouseDown;const{handleGetPopupClassFromAlign:e,getRootDomNode:n,$attrs:r}=this,{prefixCls:i,destroyPopupOnHide:o,popupClassName:a,popupAnimation:s,popupTransitionName:l,popupStyle:u,mask:c,maskAnimation:f,maskTransitionName:d,zIndex:p,stretch:v,alignPoint:g,mobile:m,arrow:y,forceRender:b}=this.$props,{sPopupVisible:O,point:w}=this.$data,x=k(k({prefixCls:i,arrow:y,destroyPopupOnHide:o,visible:O,point:g?w:null,align:this.align,animation:s,getClassNameFromAlign:e,stretch:v,getRootDomNode:n,mask:c,zIndex:p,transitionName:l,maskAnimation:f,maskTransitionName:d,class:a,style:u,onAlign:r.onPopupAlign||Ine},t),{ref:this.setPopupRef,mobile:m,forceRender:b});return h.createVNode(eLe,x,{default:this.$slots.popup||(()=>qDe(this,"popup"))})},attachParent(t){Rt.cancel(this.attachId);const{getPopupContainer:e,getDocument:n}=this.$props,r=this.getRootDomNode();let i;e?(r||e.length===0)&&(i=e(r)):i=n(this.getRootDomNode()).body,i?i.appendChild(t):this.attachId=Rt(()=>{this.attachParent(t)})},getContainer(){const{$props:t}=this,{getDocument:e}=t,n=e(this.getRootDomNode()).createElement("div");return n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%",this.attachParent(n),n},setPopupVisible(t,e){const{alignPoint:n,sPopupVisible:r,onPopupVisibleChange:i}=this;this.clearDelayTimer(),r!==t&&(Jx(this,"popupVisible")||this.setState({sPopupVisible:t,prevPopupVisible:r}),i&&i(t)),n&&e&&t&&this.setPoint(e)},setPoint(t){const{alignPoint:e}=this.$props;!e||!t||this.setState({point:{pageX:t.pageX,pageY:t.pageY}})},handlePortalUpdate(){this.prevPopupVisible!==this.sPopupVisible&&this.afterPopupVisibleChange(this.sPopupVisible)},delaySetPopupVisible(t,e,n){const r=e*1e3;if(this.clearDelayTimer(),r){const i=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=setTimeout(()=>{this.setPopupVisible(t,i),this.clearDelayTimer()},r)}else this.setPopupVisible(t,n)},clearDelayTimer(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)},clearOutsideHandler(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextmenuOutsideHandler1&&(this.contextmenuOutsideHandler1.remove(),this.contextmenuOutsideHandler1=null),this.contextmenuOutsideHandler2&&(this.contextmenuOutsideHandler2.remove(),this.contextmenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)},createTwoChains(t){let e=()=>{};const n=qF(this);return this.childOriginEvents[t]&&n[t]?this[`fire${t}`]:(e=this.childOriginEvents[t]||n[t]||e,e)},isClickToShow(){const{action:t,showAction:e}=this.$props;return t.indexOf("click")!==-1||e.indexOf("click")!==-1},isContextMenuOnly(){const{action:t}=this.$props;return t==="contextmenu"||t.length===1&&t[0]==="contextmenu"},isContextmenuToShow(){const{action:t,showAction:e}=this.$props;return t.indexOf("contextmenu")!==-1||e.indexOf("contextmenu")!==-1},isClickToHide(){const{action:t,hideAction:e}=this.$props;return t.indexOf("click")!==-1||e.indexOf("click")!==-1},isMouseEnterToShow(){const{action:t,showAction:e}=this.$props;return t.indexOf("hover")!==-1||e.indexOf("mouseenter")!==-1},isMouseLeaveToHide(){const{action:t,hideAction:e}=this.$props;return t.indexOf("hover")!==-1||e.indexOf("mouseleave")!==-1},isFocusToShow(){const{action:t,showAction:e}=this.$props;return t.indexOf("focus")!==-1||e.indexOf("focus")!==-1},isBlurToHide(){const{action:t,hideAction:e}=this.$props;return t.indexOf("focus")!==-1||e.indexOf("blur")!==-1},forcePopupAlign(){var t;this.$data.sPopupVisible&&((t=this.popupRef)===null||t===void 0||t.forceAlign())},fireEvents(t,e){this.childOriginEvents[t]&&this.childOriginEvents[t](e);const n=this.$props[t]||this.$attrs[t];n&&n(e)},close(){this.setPopupVisible(!1)}},render(){const{$attrs:t}=this,e=fl(Ete(this)),{alignPoint:n,getPopupContainer:r}=this.$props,i=e[0];this.childOriginEvents=qF(i);const o={key:"trigger"};this.isContextmenuToShow()?o.onContextmenu=this.onContextmenu:o.onContextmenu=this.createTwoChains("onContextmenu"),this.isClickToHide()||this.isClickToShow()?(o.onClick=this.onClick,o.onMousedown=this.onMousedown,o[Fr?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(o.onClick=this.createTwoChains("onClick"),o.onMousedown=this.createTwoChains("onMousedown"),o[Fr?"onTouchstartPassive":"onTouchstart"]=this.createTwoChains("onTouchstart")),this.isMouseEnterToShow()?(o.onMouseenter=this.onMouseenter,n&&(o.onMousemove=this.onMouseMove)):o.onMouseenter=this.createTwoChains("onMouseenter"),this.isMouseLeaveToHide()?o.onMouseleave=this.onMouseleave:o.onMouseleave=this.createTwoChains("onMouseleave"),this.isFocusToShow()||this.isBlurToHide()?(o.onFocus=this.onFocus,o.onBlur=this.onBlur):(o.onFocus=this.createTwoChains("onFocus"),o.onBlur=u=>{u&&(!u.relatedTarget||!qu(u.target,u.relatedTarget))&&this.createTwoChains("onBlur")(u)});const a=Pe(i&&i.props&&i.props.class,t.class);a&&(o.class=a);const s=Xn(i,k(k({},o),{ref:"triggerRef"}),!0,!0),l=h.createVNode(Gne,{key:"portal",getContainer:r&&(()=>r(this.getRootDomNode())),didUpdate:this.handlePortalUpdate,visible:this.$data.sPopupVisible},{default:this.getComponent});return h.createVNode(h.Fragment,null,[s,l])}});var uLe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const cLe=t=>{const e=t===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:e,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:e,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:e,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:e,adjustY:1}}}},fLe=h.defineComponent({name:"SelectTrigger",inheritAttrs:!1,props:{dropdownAlign:Object,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},dropdownClassName:String,dropdownStyle:ne.object,placement:String,empty:{type:Boolean,default:void 0},prefixCls:String,popupClassName:String,animation:String,transitionName:String,getPopupContainer:Function,dropdownRender:Function,containerWidth:Number,dropdownMatchSelectWidth:ne.oneOfType([Number,Boolean]).def(!0),popupElement:ne.any,direction:String,getTriggerDOMNode:Function,onPopupVisibleChange:Function,onPopupMouseEnter:Function,onPopupFocusin:Function,onPopupFocusout:Function},setup(t,e){let{slots:n,attrs:r,expose:i}=e;const o=h.computed(()=>{const{dropdownMatchSelectWidth:s}=t;return cLe(s)}),a=h.ref();return i({getPopupElement:()=>a.value}),()=>{const s=k(k({},t),r),{empty:l=!1}=s,u=uLe(s,["empty"]),{visible:c,dropdownAlign:f,prefixCls:d,popupElement:p,dropdownClassName:v,dropdownStyle:g,direction:m="ltr",placement:y,dropdownMatchSelectWidth:b,containerWidth:O,dropdownRender:w,animation:x,transitionName:S,getPopupContainer:T,getTriggerDOMNode:$,onPopupVisibleChange:A,onPopupMouseEnter:P,onPopupFocusin:M,onPopupFocusout:I}=u,R=`${d}-dropdown`;let L=p;w&&(L=w({menuNode:p,props:t}));const D=x?`${R}-${x}`:S,B=k({minWidth:`${O}px`},g);return typeof b=="number"?B.width=`${b}px`:b&&(B.width=`${O}px`),h.createVNode(DT,K(K({},t),{},{showAction:A?["click"]:[],hideAction:A?["click"]:[],popupPlacement:y||(m==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:o.value,prefixCls:R,popupTransitionName:D,popupAlign:f,popupVisible:c,getPopupContainer:T,popupClassName:Pe(v,{[`${R}-empty`]:l}),popupStyle:B,getTriggerDOMNode:$,onPopupVisibleChange:A}),{default:n.default,popup:()=>h.createVNode("div",{ref:a,onMouseenter:P,onFocusin:M,onFocusout:I},[L])})}}}),Se={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){const{keyCode:n}=e;if(e.altKey&&!e.ctrlKey||e.metaKey||n>=Se.F1&&n<=Se.F12)return!1;switch(n){case Se.ALT:case Se.CAPS_LOCK:case Se.CONTEXT_MENU:case Se.CTRL:case Se.DOWN:case Se.END:case Se.ESC:case Se.HOME:case Se.INSERT:case Se.LEFT:case Se.MAC_FF_META:case Se.META:case Se.NUMLOCK:case Se.NUM_CENTER:case Se.PAGE_DOWN:case Se.PAGE_UP:case Se.PAUSE:case Se.PRINT_SCREEN:case Se.RIGHT:case Se.SHIFT:case Se.UP:case Se.WIN_KEY:case Se.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=Se.ZERO&&e<=Se.NINE||e>=Se.NUM_ZERO&&e<=Se.NUM_MULTIPLY||e>=Se.A&&e<=Se.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&e===0)return!0;switch(e){case Se.SPACE:case Se.QUESTION_MARK:case Se.NUM_PLUS:case Se.NUM_MINUS:case Se.NUM_PERIOD:case Se.NUM_DIVISION:case Se.SEMICOLON:case Se.DASH:case Se.EQUALS:case Se.COMMA:case Se.PERIOD:case Se.SLASH:case Se.APOSTROPHE:case Se.SINGLE_QUOTE:case Se.OPEN_SQUARE_BRACKET:case Se.BACKSLASH:case Se.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},rh=(t,e)=>{let{slots:n}=e;var r;const{class:i,customizeIcon:o,customizeIconProps:a,onMousedown:s,onClick:l}=t;let u;return typeof o=="function"?u=o(a):u=h.isVNode(o)?h.cloneVNode(o):o,h.createVNode("span",{class:i,onMousedown:c=>{c.preventDefault(),s&&s(c)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:l,"aria-hidden":!0},[u!==void 0?u:h.createVNode("span",{class:i.split(/\s+/).map(c=>`${c}-icon`)},[(r=n.default)===null||r===void 0?void 0:r.call(n)])])};rh.inheritAttrs=!1;rh.displayName="TransBtn";rh.props={class:String,customizeIcon:ne.any,customizeIconProps:ne.any,onMousedown:Function,onClick:Function};var dLe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const hLe=h.defineComponent({compatConfig:{MODE:3},props:{disabled:ne.looseBool,type:ne.string,value:ne.any,tag:{type:String,default:"input"},size:ne.string,onChange:Function,onInput:Function,onBlur:Function,onFocus:Function,onKeydown:Function,onCompositionstart:Function,onCompositionend:Function,onKeyup:Function,onPaste:Function,onMousedown:Function},emits:["change","input","blur","keydown","focus","compositionstart","compositionend","keyup","paste","mousedown"],setup(t,e){let{expose:n}=e;const r=h.shallowRef(null);return n({focus:()=>{r.value&&r.value.focus()},blur:()=>{r.value&&r.value.blur()},input:r,setSelectionRange:(l,u,c)=>{var f;(f=r.value)===null||f===void 0||f.setSelectionRange(l,u,c)},select:()=>{var l;(l=r.value)===null||l===void 0||l.select()},getSelectionStart:()=>{var l;return(l=r.value)===null||l===void 0?void 0:l.selectionStart},getSelectionEnd:()=>{var l;return(l=r.value)===null||l===void 0?void 0:l.selectionEnd},getScrollTop:()=>{var l;return(l=r.value)===null||l===void 0?void 0:l.scrollTop}}),()=>{const{tag:l,value:u}=t,c=dLe(t,["tag","value"]);return h.createVNode(l,K(K({},c),{},{ref:r,value:u}),null)}}});function pLe(){const t=document.documentElement.clientWidth,e=window.innerHeight||document.documentElement.clientHeight;return{width:t,height:e}}function jne(t){const e=t.getBoundingClientRect(),n=document.documentElement;return{left:e.left+(window.scrollX||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:e.top+(window.scrollY||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}function vLe(t){return Object.keys(t).reduce((e,n)=>{const r=t[n];return typeof r>"u"||r===null||(e+=`${n}: ${t[n]};`),e},"")}var gLe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const s4=h.defineComponent({compatConfig:{MODE:3},inheritAttrs:!1,props:{disabled:ne.looseBool,type:ne.string,value:ne.any,lazy:ne.bool.def(!0),tag:{type:String,default:"input"},size:ne.string,style:ne.oneOfType([String,Object]),class:ne.string},emits:["change","input","blur","keydown","focus","compositionstart","compositionend","keyup","paste","mousedown"],setup(t,e){let{emit:n,attrs:r,expose:i}=e;const o=h.shallowRef(null),a=h.ref(),s=h.ref(!1);h.watch([()=>t.value,s],()=>{s.value||(a.value=t.value)},{immediate:!0});const l=T=>{n("change",T)},u=T=>{s.value=!0,T.target.composing=!0,n("compositionstart",T)},c=T=>{s.value=!1,T.target.composing=!1,n("compositionend",T);const $=document.createEvent("HTMLEvents");$.initEvent("input",!0,!0),T.target.dispatchEvent($),l(T)},f=T=>{if(s.value&&t.lazy){a.value=T.target.value;return}n("input",T)},d=T=>{n("blur",T)},p=T=>{n("focus",T)},v=()=>{o.value&&o.value.focus()},g=()=>{o.value&&o.value.blur()},m=T=>{n("keydown",T)},y=T=>{n("keyup",T)},b=(T,$,A)=>{var P;(P=o.value)===null||P===void 0||P.setSelectionRange(T,$,A)},O=()=>{var T;(T=o.value)===null||T===void 0||T.select()};i({focus:v,blur:g,input:h.computed(()=>{var T;return(T=o.value)===null||T===void 0?void 0:T.input}),setSelectionRange:b,select:O,getSelectionStart:()=>{var T;return(T=o.value)===null||T===void 0?void 0:T.getSelectionStart()},getSelectionEnd:()=>{var T;return(T=o.value)===null||T===void 0?void 0:T.getSelectionEnd()},getScrollTop:()=>{var T;return(T=o.value)===null||T===void 0?void 0:T.getScrollTop()}});const w=T=>{n("mousedown",T)},x=T=>{n("paste",T)},S=h.computed(()=>t.style&&typeof t.style!="string"?vLe(t.style):t.style);return()=>{const T=gLe(t,["style","lazy"]);return h.createVNode(hLe,K(K(K({},T),r),{},{style:S.value,onInput:f,onChange:l,onBlur:d,onFocus:p,ref:o,value:a.value,onCompositionstart:u,onCompositionend:c,onKeyup:y,onKeydown:m,onPaste:x,onMousedown:w}),null)}}}),mLe={inputRef:ne.any,prefixCls:String,id:String,inputElement:ne.VueNode,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,editable:{type:Boolean,default:void 0},activeDescendantId:String,value:String,open:{type:Boolean,default:void 0},tabindex:ne.oneOfType([ne.number,ne.string]),attrs:ne.object,onKeydown:{type:Function},onMousedown:{type:Function},onChange:{type:Function},onPaste:{type:Function},onCompositionstart:{type:Function},onCompositionend:{type:Function},onFocus:{type:Function},onBlur:{type:Function}},Une=h.defineComponent({compatConfig:{MODE:3},name:"SelectInput",inheritAttrs:!1,props:mLe,setup(t){let e=null;const n=h.inject("VCSelectContainerEvent");return()=>{var r;const{prefixCls:i,id:o,inputElement:a,disabled:s,tabindex:l,autofocus:u,autocomplete:c,editable:f,activeDescendantId:d,value:p,onKeydown:v,onMousedown:g,onChange:m,onPaste:y,onCompositionstart:b,onCompositionend:O,onFocus:w,onBlur:x,open:S,inputRef:T,attrs:$}=t;let A=a||h.createVNode(s4,null,null);const P=A.props||{},{onKeydown:M,onInput:I,onFocus:R,onBlur:L,onMousedown:D,onCompositionstart:B,onCompositionend:F,style:z}=P;return A=Xn(A,k(k(k(k(k({type:"search"},P),{id:o,ref:T,disabled:s,tabindex:l,lazy:!1,autocomplete:c||"off",autofocus:u,class:Pe(`${i}-selection-search-input`,(r=A==null?void 0:A.props)===null||r===void 0?void 0:r.class),role:"combobox","aria-expanded":S,"aria-haspopup":"listbox","aria-owns":`${o}_list`,"aria-autocomplete":"list","aria-controls":`${o}_list`,"aria-activedescendant":d}),$),{value:f?p:"",readonly:!f,unselectable:f?null:"on",style:k(k({},z),{opacity:f?null:0}),onKeydown:W=>{v(W),M&&M(W)},onMousedown:W=>{g(W),D&&D(W)},onInput:W=>{m(W),I&&I(W)},onCompositionstart(W){b(W),B&&B(W)},onCompositionend(W){O(W),F&&F(W)},onPaste:y,onFocus:function(){clearTimeout(e),R&&R(arguments.length<=0?void 0:arguments[0]),w&&w(arguments.length<=0?void 0:arguments[0]),n==null||n.focus(arguments.length<=0?void 0:arguments[0])},onBlur:function(){for(var W=arguments.length,j=new Array(W),H=0;H<W;H++)j[H]=arguments[H];e=setTimeout(()=>{L&&L(j[0]),x&&x(j[0]),n==null||n.blur(j[0])},100)}}),A.type==="textarea"?{}:{type:"search"}),!0,!0),A}}}),yLe=`accept acceptcharset accesskey action allowfullscreen allowtransparency
  78. alt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge
  79. charset checked classid classname colspan cols content contenteditable contextmenu
  80. controls coords crossorigin data datetime default defer dir disabled download draggable
  81. enctype form formaction formenctype formmethod formnovalidate formtarget frameborder
  82. headers height hidden high href hreflang htmlfor for httpequiv icon id inputmode integrity
  83. is keyparams keytype kind label lang list loop low manifest marginheight marginwidth max maxlength media
  84. mediagroup method min minlength multiple muted name novalidate nonce open
  85. optimum pattern placeholder poster preload radiogroup readonly rel required
  86. reversed role rowspan rows sandbox scope scoped scrolling seamless selected
  87. shape size sizes span spellcheck src srcdoc srclang srcset start step style
  88. summary tabindex target title type usemap value width wmode wrap`,bLe=`onCopy onCut onPaste onCompositionend onCompositionstart onCompositionupdate onKeydown
  89. onKeypress onKeyup onFocus onBlur onChange onInput onSubmit onClick onContextmenu onDoubleclick onDblclick
  90. onDrag onDragend onDragenter onDragexit onDragleave onDragover onDragstart onDrop onMousedown
  91. onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel
  92. onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough
  93. onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata
  94. onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError`,HW=`${yLe} ${bLe}`.split(/[\s\n]+/),_Le="aria-",OLe="data-";function GW(t,e){return t.indexOf(e)===0}function RT(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n;e===!1?n={aria:!0,data:!0,attr:!0}:e===!0?n={aria:!0}:n=k({},e);const r={};return Object.keys(t).forEach(i=>{(n.aria&&(i==="role"||GW(i,_Le))||n.data&&GW(i,OLe)||n.attr&&(HW.includes(i)||HW.includes(i.toLowerCase())))&&(r[i]=t[i])}),r}const Zne=Symbol("OverflowContextProviderKey"),DD=h.defineComponent({compatConfig:{MODE:3},name:"OverflowContextProvider",inheritAttrs:!1,props:{value:{type:Object}},setup(t,e){let{slots:n}=e;return h.provide(Zne,h.computed(()=>t.value)),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}),wLe=()=>h.inject(Zne,h.computed(()=>null));var xLe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const rp=void 0,nx=h.defineComponent({compatConfig:{MODE:3},name:"Item",props:{prefixCls:String,item:ne.any,renderItem:Function,responsive:Boolean,itemKey:{type:[String,Number]},registerSize:Function,display:Boolean,order:Number,component:ne.any,invalidate:Boolean},setup(t,e){let{slots:n,expose:r}=e;const i=h.computed(()=>t.responsive&&!t.display),o=h.ref();r({itemNodeRef:o});function a(s){t.registerSize(t.itemKey,s)}return h.onUnmounted(()=>{a(null)}),()=>{var s;const{prefixCls:l,invalidate:u,item:c,renderItem:f,responsive:d,registerSize:p,itemKey:v,display:g,order:m,component:y="div"}=t,b=xLe(t,["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","display","order","component"]),O=(s=n.default)===null||s===void 0?void 0:s.call(n),w=f&&c!==rp?f(c):O;let x;u||(x={opacity:i.value?0:1,height:i.value?0:rp,overflowY:i.value?"hidden":rp,order:d?m:rp,pointerEvents:i.value?"none":rp,position:i.value?"absolute":rp});const S={};return i.value&&(S["aria-hidden"]=!0),h.createVNode(Vv,{disabled:!d,onResize:T=>{let{offsetWidth:$}=T;a($)}},{default:()=>h.createVNode(y,K(K(K({class:Pe(!u&&l),style:x},S),b),{},{ref:o}),{default:()=>[w]})})}}});var dA=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const SLe=h.defineComponent({compatConfig:{MODE:3},name:"RawItem",inheritAttrs:!1,props:{component:ne.any,title:ne.any,id:String,onMouseenter:{type:Function},onMouseleave:{type:Function},onClick:{type:Function},onKeydown:{type:Function},onFocus:{type:Function},role:String,tabindex:Number},setup(t,e){let{slots:n,attrs:r}=e;const i=wLe();return()=>{var o;if(!i.value){const{component:f="div"}=t,d=dA(t,["component"]);return h.createVNode(f,K(K({},d),r),{default:()=>[(o=n.default)===null||o===void 0?void 0:o.call(n)]})}const a=i.value,{className:s}=a,l=dA(a,["className"]),{class:u}=r,c=dA(r,["class"]);return h.createVNode(DD,{value:null},{default:()=>[h.createVNode(nx,K(K(K({class:Pe(s,u)},l),c),t),n)]})}}});var CLe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const Xne="responsive",Yne="invalidate";function TLe(t){return`+ ${t.length} ...`}const PLe=()=>({id:String,prefixCls:String,data:Array,itemKey:[String,Number,Function],itemWidth:{type:Number,default:10},renderItem:Function,renderRawItem:Function,maxCount:[Number,String],renderRest:Function,renderRawRest:Function,suffix:ne.any,component:String,itemComponent:ne.any,onVisibleChange:Function,ssr:String,onMousedown:Function}),Ul=h.defineComponent({name:"Overflow",inheritAttrs:!1,props:PLe(),emits:["visibleChange"],setup(t,e){let{attrs:n,emit:r,slots:i}=e;const o=h.computed(()=>t.ssr==="full"),a=h.shallowRef(null),s=h.computed(()=>a.value||0),l=h.shallowRef(new Map),u=h.shallowRef(0),c=h.shallowRef(0),f=h.shallowRef(0),d=h.shallowRef(null),p=h.shallowRef(null),v=h.computed(()=>p.value===null&&o.value?Number.MAX_SAFE_INTEGER:p.value||0),g=h.shallowRef(!1),m=h.computed(()=>`${t.prefixCls}-item`),y=h.computed(()=>Math.max(u.value,c.value)),b=h.computed(()=>!!(t.data.length&&t.maxCount===Xne)),O=h.computed(()=>t.maxCount===Yne),w=h.computed(()=>b.value||typeof t.maxCount=="number"&&t.data.length>t.maxCount),x=h.computed(()=>{let D=t.data;return b.value?a.value===null&&o.value?D=t.data:D=t.data.slice(0,Math.min(t.data.length,s.value/t.itemWidth)):typeof t.maxCount=="number"&&(D=t.data.slice(0,t.maxCount)),D}),S=h.computed(()=>b.value?t.data.slice(v.value+1):t.data.slice(x.value.length)),T=(D,B)=>{var F;return typeof t.itemKey=="function"?t.itemKey(D):(F=t.itemKey&&(D==null?void 0:D[t.itemKey]))!==null&&F!==void 0?F:B},$=h.computed(()=>t.renderItem||(D=>D)),A=(D,B)=>{p.value=D,B||(g.value=D<t.data.length-1,r("visibleChange",D))},P=(D,B)=>{a.value=B.clientWidth},M=(D,B)=>{const F=new Map(l.value);B===null?F.delete(D):F.set(D,B),l.value=F},I=(D,B)=>{u.value=c.value,c.value=B},R=(D,B)=>{f.value=B},L=D=>l.value.get(T(x.value[D],D));return h.watch([s,l,c,f,()=>t.itemKey,x],()=>{if(s.value&&y.value&&x.value){let D=f.value;const B=x.value.length,F=B-1;if(!B){A(0),d.value=null;return}for(let z=0;z<B;z+=1){const W=L(z);if(W===void 0){A(z-1,!0);break}if(D+=W,F===0&&D<=s.value||z===F-1&&D+L(F)<=s.value){A(F),d.value=null;break}else if(D+y.value>s.value){A(z-1),d.value=D-W-f.value+c.value;break}}t.suffix&&L(0)+f.value>s.value&&(d.value=null)}}),()=>{const D=g.value&&!!S.value.length,{itemComponent:B,renderRawItem:F,renderRawRest:z,renderRest:W,prefixCls:j="rc-overflow",suffix:H,component:Z="div",id:J,onMousedown:se}=t,{class:oe,style:de}=n,re=CLe(n,["class","style"]);let ue={};d.value!==null&&b.value&&(ue={position:"absolute",left:`${d.value}px`,top:0});const ee={prefixCls:m.value,responsive:b.value,component:B,invalidate:O.value},X=F?(me,Ne)=>{const Le=T(me,Ne);return h.createVNode(DD,{key:Le,value:k(k({},ee),{order:Ne,item:me,itemKey:Le,registerSize:M,display:Ne<=v.value})},{default:()=>[F(me,Ne)]})}:(me,Ne)=>{const Le=T(me,Ne);return h.createVNode(nx,K(K({},ee),{},{order:Ne,key:Le,item:me,renderItem:$.value,itemKey:Le,registerSize:M,display:Ne<=v.value}),null)};let Y=()=>null;const le={order:D?v.value:Number.MAX_SAFE_INTEGER,className:`${m.value} ${m.value}-rest`,registerSize:I,display:D};if(z)z&&(Y=()=>h.createVNode(DD,{value:k(k({},ee),le)},{default:()=>[z(S.value)]}));else{const me=W||TLe;Y=()=>h.createVNode(nx,K(K({},ee),le),{default:()=>typeof me=="function"?me(S.value):me})}const ge=()=>{var me;return h.createVNode(Z,K({id:J,class:Pe(!O.value&&j,oe),style:de,onMousedown:se},re),{default:()=>[x.value.map(X),w.value?Y():null,H&&h.createVNode(nx,K(K({},ee),{},{order:v.value,class:`${m.value}-suffix`,registerSize:R,display:!0,style:ue}),{default:()=>H}),(me=i.default)===null||me===void 0?void 0:me.call(i)]})};return h.createVNode(Vv,{disabled:!b.value,onResize:P},{default:ge})}}});Ul.Item=SLe;Ul.RESPONSIVE=Xne;Ul.INVALIDATE=Yne;const $Le=Symbol("TreeSelectLegacyContextPropsKey");function l4(){return h.inject($Le,{})}const ALe={id:String,prefixCls:String,values:ne.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:ne.any,placeholder:ne.any,disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:ne.oneOfType([ne.number,ne.string]),compositionStatus:Boolean,removeIcon:ne.any,choiceTransitionName:String,maxTagCount:ne.oneOfType([ne.number,ne.string]),maxTagTextLength:Number,maxTagPlaceholder:ne.any.def(()=>t=>`+ ${t.length} ...`),tagRender:Function,onToggleOpen:{type:Function},onRemove:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},jW=t=>{t.preventDefault(),t.stopPropagation()},ELe=h.defineComponent({name:"MultipleSelectSelector",inheritAttrs:!1,props:ALe,setup(t){const e=h.shallowRef(),n=h.shallowRef(0),r=h.shallowRef(!1),i=l4(),o=h.computed(()=>`${t.prefixCls}-selection`),a=h.computed(()=>t.open||t.mode==="tags"?t.searchValue:""),s=h.computed(()=>t.mode==="tags"||t.showSearch&&(t.open||r.value)),l=h.ref("");h.watchEffect(()=>{l.value=a.value}),h.onMounted(()=>{h.watch(l,()=>{n.value=e.value.scrollWidth},{flush:"post",immediate:!0})});function u(v,g,m,y,b){return h.createVNode("span",{class:Pe(`${o.value}-item`,{[`${o.value}-item-disabled`]:m}),title:typeof v=="string"||typeof v=="number"?v.toString():void 0},[h.createVNode("span",{class:`${o.value}-item-content`},[g]),y&&h.createVNode(rh,{class:`${o.value}-item-remove`,onMousedown:jW,onClick:b,customizeIcon:t.removeIcon},{default:()=>[h.createTextVNode("×")]})])}function c(v,g,m,y,b,O){var w;const x=T=>{jW(T),t.onToggleOpen(!open)};let S=O;return i.keyEntities&&(S=((w=i.keyEntities[v])===null||w===void 0?void 0:w.node)||{}),h.createVNode("span",{key:v,onMousedown:x},[t.tagRender({label:g,value:v,disabled:m,closable:y,onClose:b,option:S})])}function f(v){const{disabled:g,label:m,value:y,option:b}=v,O=!t.disabled&&!g;let w=m;if(typeof t.maxTagTextLength=="number"&&(typeof m=="string"||typeof m=="number")){const S=String(w);S.length>t.maxTagTextLength&&(w=`${S.slice(0,t.maxTagTextLength)}...`)}const x=S=>{var T;S&&S.stopPropagation(),(T=t.onRemove)===null||T===void 0||T.call(t,v)};return typeof t.tagRender=="function"?c(y,w,g,O,x,b):u(m,w,g,O,x)}function d(v){const{maxTagPlaceholder:g=y=>`+ ${y.length} ...`}=t,m=typeof g=="function"?g(v):g;return u(m,m,!1)}const p=v=>{const g=v.target.composing;l.value=v.target.value,g||t.onInputChange(v)};return()=>{const{id:v,prefixCls:g,values:m,open:y,inputRef:b,placeholder:O,disabled:w,autofocus:x,autocomplete:S,activeDescendantId:T,tabindex:$,compositionStatus:A,onInputPaste:P,onInputKeyDown:M,onInputMouseDown:I,onInputCompositionStart:R,onInputCompositionEnd:L}=t,D=h.createVNode("div",{class:`${o.value}-search`,style:{width:n.value+"px"},key:"input"},[h.createVNode(Une,{inputRef:b,open:y,prefixCls:g,id:v,inputElement:null,disabled:w,autofocus:x,autocomplete:S,editable:s.value,activeDescendantId:T,value:l.value,onKeydown:M,onMousedown:I,onChange:p,onPaste:P,onCompositionstart:R,onCompositionend:L,tabindex:$,attrs:RT(t,!0),onFocus:()=>r.value=!0,onBlur:()=>r.value=!1},null),h.createVNode("span",{ref:e,class:`${o.value}-search-mirror`,"aria-hidden":!0},[l.value,h.createTextVNode(" ")])]),B=h.createVNode(Ul,{prefixCls:`${o.value}-overflow`,data:m,renderItem:f,renderRest:d,suffix:D,itemKey:"key",maxCount:t.maxTagCount,key:"overflow"},null);return h.createVNode(h.Fragment,null,[B,!m.length&&!a.value&&!A&&h.createVNode("span",{class:`${o.value}-placeholder`},[O])])}}}),MLe={inputElement:ne.any,id:String,prefixCls:String,values:ne.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:ne.any,placeholder:ne.any,compositionStatus:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},mode:String,showSearch:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},autocomplete:String,activeDescendantId:String,tabindex:ne.oneOfType([ne.number,ne.string]),activeValue:String,backfill:{type:Boolean,default:void 0},optionLabelRender:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},u4=h.defineComponent({name:"SingleSelector",setup(t){const e=h.shallowRef(!1),n=h.computed(()=>t.mode==="combobox"),r=h.computed(()=>n.value||t.showSearch),i=h.computed(()=>{let c=t.searchValue||"";return n.value&&t.activeValue&&!e.value&&(c=t.activeValue),c}),o=l4();h.watch([n,()=>t.activeValue],()=>{n.value&&(e.value=!1)},{immediate:!0});const a=h.computed(()=>t.mode!=="combobox"&&!t.open&&!t.showSearch?!1:!!i.value||t.compositionStatus),s=h.computed(()=>{const c=t.values[0];return c&&(typeof c.label=="string"||typeof c.label=="number")?c.label.toString():void 0}),l=()=>{if(t.values[0])return null;const c=a.value?{visibility:"hidden"}:void 0;return h.createVNode("span",{class:`${t.prefixCls}-selection-placeholder`,style:c},[t.placeholder])},u=c=>{c.target.composing||(e.value=!0,t.onInputChange(c))};return()=>{var c,f,d,p;const{inputElement:v,prefixCls:g,id:m,values:y,inputRef:b,disabled:O,autofocus:w,autocomplete:x,activeDescendantId:S,open:T,tabindex:$,optionLabelRender:A,onInputKeyDown:P,onInputMouseDown:M,onInputPaste:I,onInputCompositionStart:R,onInputCompositionEnd:L}=t,D=y[0];let B=null;if(D&&o.customSlots){const F=(c=D.key)!==null&&c!==void 0?c:D.value,z=((f=o.keyEntities[F])===null||f===void 0?void 0:f.node)||{};B=o.customSlots[(d=z.slots)===null||d===void 0?void 0:d.title]||o.customSlots.title||D.label,typeof B=="function"&&(B=B(z))}else B=A&&D?A(D.option):D==null?void 0:D.label;return h.createVNode(h.Fragment,null,[h.createVNode("span",{class:`${g}-selection-search`},[h.createVNode(Une,{inputRef:b,prefixCls:g,id:m,open:T,inputElement:v,disabled:O,autofocus:w,autocomplete:x,editable:r.value,activeDescendantId:S,value:i.value,onKeydown:P,onMousedown:M,onChange:u,onPaste:I,onCompositionstart:R,onCompositionend:L,tabindex:$,attrs:RT(t,!0)},null)]),!n.value&&D&&!a.value&&h.createVNode("span",{class:`${g}-selection-item`,title:s.value},[h.createVNode(h.Fragment,{key:(p=D.key)!==null&&p!==void 0?p:D.value},[B])]),l()])}}});u4.props=MLe;u4.inheritAttrs=!1;function ILe(t){return![Se.ESC,Se.SHIFT,Se.BACKSPACE,Se.TAB,Se.WIN_KEY,Se.ALT,Se.META,Se.WIN_KEY_RIGHT,Se.CTRL,Se.SEMICOLON,Se.EQUALS,Se.CAPS_LOCK,Se.CONTEXT_MENU,Se.F1,Se.F2,Se.F3,Se.F4,Se.F5,Se.F6,Se.F7,Se.F8,Se.F9,Se.F10,Se.F11,Se.F12].includes(t)}function qne(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,e=null,n;h.onBeforeUnmount(()=>{clearTimeout(n)});function r(i){(i||e===null)&&(e=i),clearTimeout(n),n=setTimeout(()=>{e=null},t)}return[()=>e,r]}function Gy(){const t=e=>{t.current=e};return t}const DLe=h.defineComponent({name:"Selector",inheritAttrs:!1,props:{id:String,prefixCls:String,showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},values:ne.array,multiple:{type:Boolean,default:void 0},mode:String,searchValue:String,activeValue:String,inputElement:ne.any,autofocus:{type:Boolean,default:void 0},activeDescendantId:String,tabindex:ne.oneOfType([ne.number,ne.string]),disabled:{type:Boolean,default:void 0},placeholder:ne.any,removeIcon:ne.any,maxTagCount:ne.oneOfType([ne.number,ne.string]),maxTagTextLength:Number,maxTagPlaceholder:ne.any,tagRender:Function,optionLabelRender:Function,tokenWithEnter:{type:Boolean,default:void 0},choiceTransitionName:String,onToggleOpen:{type:Function},onSearch:Function,onSearchSubmit:Function,onRemove:Function,onInputKeyDown:{type:Function},domRef:Function},setup(t,e){let{expose:n}=e;const r=Gy(),i=h.ref(!1),[o,a]=qne(0),s=y=>{const{which:b}=y;(b===Se.UP||b===Se.DOWN)&&y.preventDefault(),t.onInputKeyDown&&t.onInputKeyDown(y),b===Se.ENTER&&t.mode==="tags"&&!i.value&&!t.open&&t.onSearchSubmit(y.target.value),ILe(b)&&t.onToggleOpen(!0)},l=()=>{a(!0)};let u=null;const c=y=>{t.onSearch(y,!0,i.value)!==!1&&t.onToggleOpen(!0)},f=()=>{i.value=!0},d=y=>{i.value=!1,t.mode!=="combobox"&&c(y.target.value)},p=y=>{let{target:{value:b}}=y;if(t.tokenWithEnter&&u&&/[\r\n]/.test(u)){const O=u.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");b=b.replace(O,u)}u=null,c(b)},v=y=>{const{clipboardData:b}=y;u=b.getData("text")},g=y=>{let{target:b}=y;b!==r.current&&(document.body.style.msTouchAction!==void 0?setTimeout(()=>{r.current.focus()}):r.current.focus())},m=y=>{const b=o();y.target!==r.current&&!b&&y.preventDefault(),(t.mode!=="combobox"&&(!t.showSearch||!b)||!t.open)&&(t.open&&t.onSearch("",!0,!1),t.onToggleOpen())};return n({focus:()=>{r.current.focus()},blur:()=>{r.current.blur()}}),()=>{const{prefixCls:y,domRef:b,mode:O}=t,w={inputRef:r,onInputKeyDown:s,onInputMouseDown:l,onInputChange:p,onInputPaste:v,compositionStatus:i.value,onInputCompositionStart:f,onInputCompositionEnd:d},x=O==="multiple"||O==="tags"?h.createVNode(ELe,K(K({},t),w),null):h.createVNode(u4,K(K({},t),w),null);return h.createVNode("div",{ref:b,class:`${y}-selector`,onClick:g,onMousedown:m},[x])}}});function RLe(t,e,n){function r(i){var o,a,s;let l=i.target;l.shadowRoot&&i.composed&&(l=i.composedPath()[0]||l);const u=[(o=t[0])===null||o===void 0?void 0:o.value,(s=(a=t[1])===null||a===void 0?void 0:a.value)===null||s===void 0?void 0:s.getPopupElement()];e.value&&u.every(c=>c&&!c.contains(l)&&c!==l)&&n(!1)}h.onMounted(()=>{window.addEventListener("mousedown",r)}),h.onBeforeUnmount(()=>{window.removeEventListener("mousedown",r)})}function kLe(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10;const e=h.shallowRef(!1);let n;const r=()=>{clearTimeout(n)};return h.onMounted(()=>{r()}),[e,(o,a)=>{r(),n=setTimeout(()=>{e.value=o,a&&a()},t)},r]}const Kne=Symbol("BaseSelectContextKey");function NLe(t){return h.provide(Kne,t)}function LLe(){return h.inject(Kne,{})}const c4=()=>{if(typeof navigator>"u"||typeof window>"u")return!1;const t=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(t==null?void 0:t.substring(0,4))};function Jne(t){if(!h.isRef(t))return h.reactive(t);const e=new Proxy({},{get(n,r,i){return Reflect.get(t.value,r,i)},set(n,r,i){return t.value[r]=i,!0},deleteProperty(n,r){return Reflect.deleteProperty(t.value,r)},has(n,r){return Reflect.has(t.value,r)},ownKeys(){return Object.keys(t.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return h.reactive(e)}var BLe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const VLe=["value","onChange","removeIcon","placeholder","autofocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabindex","OptionList","notFoundContent"],zLe=()=>({prefixCls:String,id:String,omitDomProps:Array,displayValues:Array,onDisplayValuesChange:Function,activeValue:String,activeDescendantId:String,onActiveValueChange:Function,searchValue:String,onSearch:Function,onSearchSplit:Function,maxLength:Number,OptionList:ne.any,emptyOptions:Boolean}),ere=()=>({showSearch:{type:Boolean,default:void 0},tagRender:{type:Function},optionLabelRender:{type:Function},direction:{type:String},tabindex:Number,autofocus:Boolean,notFoundContent:ne.any,placeholder:ne.any,onClear:Function,choiceTransitionName:String,mode:String,disabled:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},defaultOpen:{type:Boolean,default:void 0},onDropdownVisibleChange:{type:Function},getInputElement:{type:Function},getRawInputElement:{type:Function},maxTagTextLength:Number,maxTagCount:{type:[String,Number]},maxTagPlaceholder:ne.any,tokenSeparators:{type:Array},allowClear:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},inputIcon:ne.any,clearIcon:ne.any,removeIcon:ne.any,animation:String,transitionName:String,dropdownStyle:{type:Object},dropdownClassName:String,dropdownMatchSelectWidth:{type:[Boolean,Number],default:void 0},dropdownRender:{type:Function},dropdownAlign:Object,placement:{type:String},getPopupContainer:{type:Function},showAction:{type:Array},onBlur:{type:Function},onFocus:{type:Function},onKeyup:Function,onKeydown:Function,onMousedown:Function,onPopupScroll:Function,onInputKeyDown:Function,onMouseenter:Function,onMouseleave:Function,onClick:Function}),FLe=()=>k(k({},zLe()),ere());function f4(t){return t==="tags"||t==="multiple"}const WLe=h.defineComponent({compatConfig:{MODE:3},name:"BaseSelect",inheritAttrs:!1,props:Ir(FLe(),{showAction:[],notFoundContent:"Not Found"}),setup(t,e){let{attrs:n,expose:r,slots:i}=e;const o=h.computed(()=>f4(t.mode)),a=h.computed(()=>t.showSearch!==void 0?t.showSearch:o.value||t.mode==="combobox"),s=h.shallowRef(!1);h.onMounted(()=>{s.value=c4()});const l=l4(),u=h.shallowRef(null),c=Gy(),f=h.shallowRef(null),d=h.shallowRef(null),p=h.shallowRef(null),v=h.ref(!1),[g,m,y]=kLe();r({focus:()=>{var X;(X=d.value)===null||X===void 0||X.focus()},blur:()=>{var X;(X=d.value)===null||X===void 0||X.blur()},scrollTo:X=>{var Y;return(Y=p.value)===null||Y===void 0?void 0:Y.scrollTo(X)}});const w=h.computed(()=>{var X;if(t.mode!=="combobox")return t.searchValue;const Y=(X=t.displayValues[0])===null||X===void 0?void 0:X.value;return typeof Y=="string"||typeof Y=="number"?String(Y):""}),x=t.open!==void 0?t.open:t.defaultOpen,S=h.shallowRef(x),T=h.shallowRef(x),$=X=>{S.value=t.open!==void 0?t.open:X,T.value=S.value};h.watch(()=>t.open,()=>{$(t.open)});const A=h.computed(()=>!t.notFoundContent&&t.emptyOptions);h.watchEffect(()=>{T.value=S.value,(t.disabled||A.value&&T.value&&t.mode==="combobox")&&(T.value=!1)});const P=h.computed(()=>A.value?!1:T.value),M=X=>{const Y=X!==void 0?X:!T.value;T.value!==Y&&!t.disabled&&($(Y),t.onDropdownVisibleChange&&t.onDropdownVisibleChange(Y))},I=h.computed(()=>(t.tokenSeparators||[]).some(X=>[`
  95. `,`\r
  96. `].includes(X))),R=(X,Y,le)=>{var ge,me;let Ne=!0,Le=X;(ge=t.onActiveValueChange)===null||ge===void 0||ge.call(t,null);const Ee=le?null:uNe(X,t.tokenSeparators);return t.mode!=="combobox"&&Ee&&(Le="",(me=t.onSearchSplit)===null||me===void 0||me.call(t,Ee),M(!1),Ne=!1),t.onSearch&&w.value!==Le&&t.onSearch(Le,{source:Y?"typing":"effect"}),Ne},L=X=>{var Y;!X||!X.trim()||(Y=t.onSearch)===null||Y===void 0||Y.call(t,X,{source:"submit"})};h.watch(T,()=>{!T.value&&!o.value&&t.mode!=="combobox"&&R("",!1,!1)},{immediate:!0,flush:"post"}),h.watch(()=>t.disabled,()=>{S.value&&t.disabled&&$(!1),t.disabled&&!v.value&&m(!1)},{immediate:!0});const[D,B]=qne(),F=function(X){var Y;const le=D(),{which:ge}=X;if(ge===Se.ENTER&&(t.mode!=="combobox"&&X.preventDefault(),T.value||M(!0)),B(!!w.value),ge===Se.BACKSPACE&&!le&&o.value&&!w.value&&t.displayValues.length){const Ee=[...t.displayValues];let $e=null;for(let _e=Ee.length-1;_e>=0;_e-=1){const De=Ee[_e];if(!De.disabled){Ee.splice(_e,1),$e=De;break}}$e&&t.onDisplayValuesChange(Ee,{type:"remove",values:[$e]})}for(var me=arguments.length,Ne=new Array(me>1?me-1:0),Le=1;Le<me;Le++)Ne[Le-1]=arguments[Le];T.value&&p.value&&p.value.onKeydown(X,...Ne),(Y=t.onKeydown)===null||Y===void 0||Y.call(t,X,...Ne)},z=function(X){for(var Y=arguments.length,le=new Array(Y>1?Y-1:0),ge=1;ge<Y;ge++)le[ge-1]=arguments[ge];T.value&&p.value&&p.value.onKeyup(X,...le),t.onKeyup&&t.onKeyup(X,...le)},W=X=>{const Y=t.displayValues.filter(le=>le!==X);t.onDisplayValuesChange(Y,{type:"remove",values:[X]})},j=h.shallowRef(!1),H=function(){m(!0),t.disabled||(t.onFocus&&!j.value&&t.onFocus(...arguments),t.showAction&&t.showAction.includes("focus")&&M(!0)),j.value=!0},Z=h.ref(!1),J=function(){if(Z.value||(v.value=!0,m(!1,()=>{j.value=!1,v.value=!1,M(!1)}),t.disabled))return;const X=w.value;X&&(t.mode==="tags"?t.onSearch(X,{source:"submit"}):t.mode==="multiple"&&t.onSearch("",{source:"blur"})),t.onBlur&&t.onBlur(...arguments)},se=()=>{Z.value=!0},oe=()=>{Z.value=!1};h.provide("VCSelectContainerEvent",{focus:H,blur:J});const de=[];h.onMounted(()=>{de.forEach(X=>clearTimeout(X)),de.splice(0,de.length)}),h.onBeforeUnmount(()=>{de.forEach(X=>clearTimeout(X)),de.splice(0,de.length)});const re=function(X){var Y,le;const{target:ge}=X,me=(Y=f.value)===null||Y===void 0?void 0:Y.getPopupElement();if(me&&me.contains(ge)){const $e=setTimeout(()=>{var _e;const De=de.indexOf($e);De!==-1&&de.splice(De,1),y(),!s.value&&!me.contains(document.activeElement)&&((_e=d.value)===null||_e===void 0||_e.focus())});de.push($e)}for(var Ne=arguments.length,Le=new Array(Ne>1?Ne-1:0),Ee=1;Ee<Ne;Ee++)Le[Ee-1]=arguments[Ee];(le=t.onMousedown)===null||le===void 0||le.call(t,X,...Le)},ue=h.shallowRef(null),ee=()=>{};return h.onMounted(()=>{h.watch(P,()=>{var X;if(P.value){const Y=Math.ceil((X=u.value)===null||X===void 0?void 0:X.offsetWidth);ue.value!==Y&&!Number.isNaN(Y)&&(ue.value=Y)}},{immediate:!0,flush:"post"})}),RLe([u,f],P,M),NLe(Jne(k(k({},h.toRefs(t)),{open:T,triggerOpen:P,showSearch:a,multiple:o,toggleOpen:M}))),()=>{const X=k(k({},t),n),{prefixCls:Y,id:le,open:ge,defaultOpen:me,mode:Ne,showSearch:Le,searchValue:Ee,onSearch:$e,allowClear:_e,clearIcon:De,showArrow:ze,inputIcon:lt,disabled:gt,loading:Bt,getInputElement:we,getPopupContainer:rt,placement:At,animation:vn,transitionName:cn,dropdownStyle:ar,dropdownClassName:vi,dropdownMatchSelectWidth:bl,dropdownRender:_l,dropdownAlign:wu,showAction:rf,direction:Os,tokenSeparators:of,tagRender:af,optionLabelRender:tm,onPopupScroll:xu,onDropdownVisibleChange:nm,onFocus:w2,onBlur:UB,onKeyup:ZB,onKeydown:XB,onMousedown:YB,onClear:Bh,omitDomProps:rm,getRawInputElement:j_,displayValues:Vh,onDisplayValuesChange:im,emptyOptions:x2,activeDescendantId:om,activeValue:S2,OptionList:C2}=X,T2=BLe(X,["prefixCls","id","open","defaultOpen","mode","showSearch","searchValue","onSearch","allowClear","clearIcon","showArrow","inputIcon","disabled","loading","getInputElement","getPopupContainer","placement","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","showAction","direction","tokenSeparators","tagRender","optionLabelRender","onPopupScroll","onDropdownVisibleChange","onFocus","onBlur","onKeyup","onKeydown","onMousedown","onClear","omitDomProps","getRawInputElement","displayValues","onDisplayValuesChange","emptyOptions","activeDescendantId","activeValue","OptionList"]),U_=Ne==="combobox"&&we&&we()||null,sf=typeof j_=="function"&&j_(),am=k({},T2);let Z_;sf&&(Z_=Vo=>{M(Vo)}),VLe.forEach(Vo=>{delete am[Vo]}),rm==null||rm.forEach(Vo=>{delete am[Vo]});const X_=ze!==void 0?ze:Bt||!o.value&&Ne!=="combobox";let sm;X_&&(sm=h.createVNode(rh,{class:Pe(`${Y}-arrow`,{[`${Y}-arrow-loading`]:Bt}),customizeIcon:lt,customizeIconProps:{loading:Bt,searchValue:w.value,open:T.value,focused:g.value,showSearch:a.value}},null));let Y_;const P2=()=>{Bh==null||Bh(),im([],{type:"clear",values:Vh}),R("",!1,!1)};!gt&&_e&&(Vh.length||w.value)&&(Y_=h.createVNode(rh,{class:`${Y}-clear`,onMousedown:P2,customizeIcon:De},{default:()=>[h.createTextVNode("×")]}));const $2=h.createVNode(C2,{ref:p},k(k({},l.customSlots),{option:i.option})),A2=Pe(Y,n.class,{[`${Y}-focused`]:g.value,[`${Y}-multiple`]:o.value,[`${Y}-single`]:!o.value,[`${Y}-allow-clear`]:_e,[`${Y}-show-arrow`]:X_,[`${Y}-disabled`]:gt,[`${Y}-loading`]:Bt,[`${Y}-open`]:T.value,[`${Y}-customize-input`]:U_,[`${Y}-show-search`]:a.value}),q_=h.createVNode(fLe,{ref:f,disabled:gt,prefixCls:Y,visible:P.value,popupElement:$2,containerWidth:ue.value,animation:vn,transitionName:cn,dropdownStyle:ar,dropdownClassName:vi,direction:Os,dropdownMatchSelectWidth:bl,dropdownRender:_l,dropdownAlign:wu,placement:At,getPopupContainer:rt,empty:x2,getTriggerDOMNode:()=>c.current,onPopupVisibleChange:Z_,onPopupMouseEnter:ee,onPopupFocusin:se,onPopupFocusout:oe},{default:()=>sf?No(sf)&&Xn(sf,{ref:c},!1,!0):h.createVNode(DLe,K(K({},t),{},{domRef:c,prefixCls:Y,inputElement:U_,ref:d,id:le,showSearch:a.value,mode:Ne,activeDescendantId:om,tagRender:af,optionLabelRender:tm,values:Vh,open:T.value,onToggleOpen:M,activeValue:S2,searchValue:w.value,onSearch:R,onSearchSubmit:L,onRemove:W,tokenWithEnter:I.value}),null)});let lm;return sf?lm=q_:lm=h.createVNode("div",K(K({},am),{},{class:A2,ref:u,onMousedown:re,onKeydown:F,onKeyup:z}),[g.value&&!T.value&&h.createVNode("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},[`${Vh.map(Vo=>{let{label:K_,value:zh}=Vo;return["number","string"].includes(typeof K_)?K_:zh}).join(", ")}`]),q_,sm,Y_]),lm}}}),kT=(t,e)=>{let{height:n,offset:r,prefixCls:i,onInnerResize:o}=t,{slots:a}=e;var s;let l={},u={display:"flex",flexDirection:"column"};return r!==void 0&&(l={height:`${n}px`,position:"relative",overflow:"hidden"},u=k(k({},u),{transform:`translateY(${r}px)`,position:"absolute",left:0,right:0,top:0})),h.createVNode("div",{style:l},[h.createVNode(Vv,{onResize:c=>{let{offsetHeight:f}=c;f&&o&&o()}},{default:()=>[h.createVNode("div",{style:u,class:Pe({[`${i}-holder-inner`]:i})},[(s=a.default)===null||s===void 0?void 0:s.call(a)])]})])};kT.displayName="Filter";kT.inheritAttrs=!1;kT.props={prefixCls:String,height:Number,offset:Number,onInnerResize:Function};const tre=(t,e)=>{let{setRef:n}=t,{slots:r}=e;var i;const o=wr((i=r.default)===null||i===void 0?void 0:i.call(r));return o&&o.length?h.cloneVNode(o[0],{ref:n}):o};tre.props={setRef:{type:Function,default:()=>{}}};const QLe=20;function UW(t){return"touches"in t?t.touches[0].pageY:t.pageY}const HLe=h.defineComponent({compatConfig:{MODE:3},name:"ScrollBar",inheritAttrs:!1,props:{prefixCls:String,scrollTop:Number,scrollHeight:Number,height:Number,count:Number,onScroll:{type:Function},onStartMove:{type:Function},onStopMove:{type:Function}},setup(){return{moveRaf:null,scrollbarRef:Gy(),thumbRef:Gy(),visibleTimeout:null,state:h.reactive({dragging:!1,pageY:null,startTop:null,visible:!1})}},watch:{scrollTop:{handler(){this.delayHidden()},flush:"post"}},mounted(){var t,e;(t=this.scrollbarRef.current)===null||t===void 0||t.addEventListener("touchstart",this.onScrollbarTouchStart,Fr?{passive:!1}:!1),(e=this.thumbRef.current)===null||e===void 0||e.addEventListener("touchstart",this.onMouseDown,Fr?{passive:!1}:!1)},beforeUnmount(){this.removeEvents(),clearTimeout(this.visibleTimeout)},methods:{delayHidden(){clearTimeout(this.visibleTimeout),this.state.visible=!0,this.visibleTimeout=setTimeout(()=>{this.state.visible=!1},2e3)},onScrollbarTouchStart(t){t.preventDefault()},onContainerMouseDown(t){t.stopPropagation(),t.preventDefault()},patchEvents(){window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp),this.thumbRef.current.addEventListener("touchmove",this.onMouseMove,Fr?{passive:!1}:!1),this.thumbRef.current.addEventListener("touchend",this.onMouseUp)},removeEvents(){window.removeEventListener("mousemove",this.onMouseMove),window.removeEventListener("mouseup",this.onMouseUp),this.scrollbarRef.current.removeEventListener("touchstart",this.onScrollbarTouchStart,Fr?{passive:!1}:!1),this.thumbRef.current&&(this.thumbRef.current.removeEventListener("touchstart",this.onMouseDown,Fr?{passive:!1}:!1),this.thumbRef.current.removeEventListener("touchmove",this.onMouseMove,Fr?{passive:!1}:!1),this.thumbRef.current.removeEventListener("touchend",this.onMouseUp)),Rt.cancel(this.moveRaf)},onMouseDown(t){const{onStartMove:e}=this.$props;k(this.state,{dragging:!0,pageY:UW(t),startTop:this.getTop()}),e(),this.patchEvents(),t.stopPropagation(),t.preventDefault()},onMouseMove(t){const{dragging:e,pageY:n,startTop:r}=this.state,{onScroll:i}=this.$props;if(Rt.cancel(this.moveRaf),e){const o=UW(t)-n,a=r+o,s=this.getEnableScrollRange(),l=this.getEnableHeightRange(),u=l?a/l:0,c=Math.ceil(u*s);this.moveRaf=Rt(()=>{i(c)})}},onMouseUp(){const{onStopMove:t}=this.$props;this.state.dragging=!1,t(),this.removeEvents()},getSpinHeight(){const{height:t,scrollHeight:e}=this.$props;let n=t/e*100;return n=Math.max(n,QLe),n=Math.min(n,t/2),Math.floor(n)},getEnableScrollRange(){const{scrollHeight:t,height:e}=this.$props;return t-e||0},getEnableHeightRange(){const{height:t}=this.$props,e=this.getSpinHeight();return t-e||0},getTop(){const{scrollTop:t}=this.$props,e=this.getEnableScrollRange(),n=this.getEnableHeightRange();return t===0||e===0?0:t/e*n},showScroll(){const{height:t,scrollHeight:e}=this.$props;return e>t}},render(){const{dragging:t,visible:e}=this.state,{prefixCls:n}=this.$props,r=this.getSpinHeight()+"px",i=this.getTop()+"px",o=this.showScroll(),a=o&&e;return h.createVNode("div",{ref:this.scrollbarRef,class:Pe(`${n}-scrollbar`,{[`${n}-scrollbar-show`]:o}),style:{width:"8px",top:0,bottom:0,right:0,position:"absolute",display:a?void 0:"none"},onMousedown:this.onContainerMouseDown,onMousemove:this.delayHidden},[h.createVNode("div",{ref:this.thumbRef,class:Pe(`${n}-scrollbar-thumb`,{[`${n}-scrollbar-thumb-moving`]:t}),style:{width:"100%",height:r,top:i,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:"99px",cursor:"pointer",userSelect:"none"},onMousedown:this.onMouseDown},null)])}});function GLe(t,e,n,r){const i=new Map,o=new Map,a=h.ref(Symbol("update"));h.watch(t,()=>{a.value=Symbol("update")});let s;function l(){Rt.cancel(s)}function u(){l(),s=Rt(()=>{i.forEach((f,d)=>{if(f&&f.offsetParent){const{offsetHeight:p}=f;o.get(d)!==p&&(a.value=Symbol("update"),o.set(d,f.offsetHeight))}})})}function c(f,d){const p=e(f);i.get(p),d?(i.set(p,d.$el||d),u()):i.delete(p)}return h.onUnmounted(()=>{l()}),[c,u,o,a]}function jLe(t,e,n,r,i,o,a,s){let l;return u=>{if(u==null){s();return}Rt.cancel(l);const c=e.value,f=r.itemHeight;if(typeof u=="number")a(u);else if(u&&typeof u=="object"){let d;const{align:p}=u;"index"in u?{index:d}=u:d=c.findIndex(m=>i(m)===u.key);const{offset:v=0}=u,g=(m,y)=>{if(m<0||!t.value)return;const b=t.value.clientHeight;let O=!1,w=y;if(b){const x=y||p;let S=0,T=0,$=0;const A=Math.min(c.length,d);for(let I=0;I<=A;I+=1){const R=i(c[I]);T=S;const L=n.get(R);$=T+(L===void 0?f:L),S=$,I===d&&L===void 0&&(O=!0)}const P=t.value.scrollTop;let M=null;switch(x){case"top":M=T-v;break;case"bottom":M=$-b+v;break;default:{const I=P+b;T<P?w="top":$>I&&(w="bottom")}}M!==null&&M!==P&&a(M)}l=Rt(()=>{O&&o(),g(m-1,w)},2)};g(5)}}}const ULe=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),nre=(t,e)=>{let n=!1,r=null;function i(){clearTimeout(r),n=!0,r=setTimeout(()=>{n=!1},50)}return function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const s=o<0&&t.value||o>0&&e.value;return a&&s?(clearTimeout(r),n=!1):(!s||n)&&i(),!n&&s}};function ZLe(t,e,n,r){let i=0,o=null,a=null,s=!1;const l=nre(e,n);function u(f){if(!t.value)return;Rt.cancel(o);const{deltaY:d}=f;i+=d,a=d,!l(d)&&(ULe||f.preventDefault(),o=Rt(()=>{r(i*(s?10:1)),i=0}))}function c(f){t.value&&(s=f.detail===a)}return[u,c]}const XLe=14/15;function YLe(t,e,n){let r=!1,i=0,o=null,a=null;const s=()=>{o&&(o.removeEventListener("touchmove",l),o.removeEventListener("touchend",u))},l=d=>{if(r){const p=Math.ceil(d.touches[0].pageY);let v=i-p;i=p,n(v)&&d.preventDefault(),clearInterval(a),a=setInterval(()=>{v*=XLe,(!n(v,!0)||Math.abs(v)<=.1)&&clearInterval(a)},16)}},u=()=>{r=!1,s()},c=d=>{s(),d.touches.length===1&&!r&&(r=!0,i=Math.ceil(d.touches[0].pageY),o=d.target,o.addEventListener("touchmove",l,{passive:!1}),o.addEventListener("touchend",u))},f=()=>{};h.onMounted(()=>{document.addEventListener("touchmove",f,{passive:!1}),h.watch(t,d=>{e.value.removeEventListener("touchstart",c),s(),clearInterval(a),d&&e.value.addEventListener("touchstart",c,{passive:!1})},{immediate:!0})}),h.onBeforeUnmount(()=>{document.removeEventListener("touchmove",f)})}var qLe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const KLe=[],JLe={overflowY:"auto",overflowAnchor:"none"};function e4e(t,e,n,r,i,o){let{getKey:a}=o;return t.slice(e,n+1).map((s,l)=>{const u=e+l,c=i(s,u,{}),f=a(s);return h.createVNode(tre,{key:f,setRef:d=>r(s,d)},{default:()=>[c]})})}const t4e=h.defineComponent({compatConfig:{MODE:3},name:"List",inheritAttrs:!1,props:{prefixCls:String,data:ne.array,height:Number,itemHeight:Number,fullHeight:{type:Boolean,default:void 0},itemKey:{type:[String,Number,Function],required:!0},component:{type:[String,Object]},virtual:{type:Boolean,default:void 0},children:Function,onScroll:Function,onMousedown:Function,onMouseenter:Function,onVisibleChange:Function},setup(t,e){let{expose:n}=e;const r=h.computed(()=>{const{height:W,itemHeight:j,virtual:H}=t;return!!(H!==!1&&W&&j)}),i=h.computed(()=>{const{height:W,itemHeight:j,data:H}=t;return r.value&&H&&j*H.length>W}),o=h.reactive({scrollTop:0,scrollMoving:!1}),a=h.computed(()=>t.data||KLe),s=h.shallowRef([]);h.watch(a,()=>{s.value=h.toRaw(a.value).slice()},{immediate:!0});const l=h.shallowRef(W=>{});h.watch(()=>t.itemKey,W=>{typeof W=="function"?l.value=W:l.value=j=>j==null?void 0:j[W]},{immediate:!0});const u=h.shallowRef(),c=h.shallowRef(),f=h.shallowRef(),d=W=>l.value(W),p={getKey:d};function v(W){let j;typeof W=="function"?j=W(o.scrollTop):j=W;const H=S(j);u.value&&(u.value.scrollTop=H),o.scrollTop=H}const[g,m,y,b]=GLe(s,d),O=h.reactive({scrollHeight:void 0,start:0,end:0,offset:void 0}),w=h.shallowRef(0);h.onMounted(()=>{h.nextTick(()=>{var W;w.value=((W=c.value)===null||W===void 0?void 0:W.offsetHeight)||0})}),h.onUpdated(()=>{h.nextTick(()=>{var W;w.value=((W=c.value)===null||W===void 0?void 0:W.offsetHeight)||0})}),h.watch([r,s],()=>{r.value||k(O,{scrollHeight:void 0,start:0,end:s.value.length-1,offset:void 0})},{immediate:!0}),h.watch([r,s,w,i],()=>{r.value&&!i.value&&k(O,{scrollHeight:w.value,start:0,end:s.value.length-1,offset:void 0}),u.value&&(o.scrollTop=u.value.scrollTop)},{immediate:!0}),h.watch([i,r,()=>o.scrollTop,s,b,()=>t.height,w],()=>{if(!r.value||!i.value)return;let W=0,j,H,Z;const J=s.value.length,se=s.value,oe=o.scrollTop,{itemHeight:de,height:re}=t,ue=oe+re;for(let ee=0;ee<J;ee+=1){const X=se[ee],Y=d(X);let le=y.get(Y);le===void 0&&(le=de);const ge=W+le;j===void 0&&ge>=oe&&(j=ee,H=W),Z===void 0&&ge>ue&&(Z=ee),W=ge}j===void 0&&(j=0,H=0,Z=Math.ceil(re/de)),Z===void 0&&(Z=J-1),Z=Math.min(Z+1,J),k(O,{scrollHeight:W,start:j,end:Z,offset:H})},{immediate:!0});const x=h.computed(()=>O.scrollHeight-t.height);function S(W){let j=W;return Number.isNaN(x.value)||(j=Math.min(j,x.value)),j=Math.max(j,0),j}const T=h.computed(()=>o.scrollTop<=0),$=h.computed(()=>o.scrollTop>=x.value),A=nre(T,$);function P(W){v(W)}function M(W){var j;const{scrollTop:H}=W.currentTarget;H!==o.scrollTop&&v(H),(j=t.onScroll)===null||j===void 0||j.call(t,W)}const[I,R]=ZLe(r,T,$,W=>{v(j=>j+W)});YLe(r,u,(W,j)=>A(W,j)?!1:(I({preventDefault(){},deltaY:W}),!0));function L(W){r.value&&W.preventDefault()}const D=()=>{u.value&&(u.value.removeEventListener("wheel",I,Fr?{passive:!1}:!1),u.value.removeEventListener("DOMMouseScroll",R),u.value.removeEventListener("MozMousePixelScroll",L))};h.watchEffect(()=>{h.nextTick(()=>{u.value&&(D(),u.value.addEventListener("wheel",I,Fr?{passive:!1}:!1),u.value.addEventListener("DOMMouseScroll",R),u.value.addEventListener("MozMousePixelScroll",L))})}),h.onBeforeUnmount(()=>{D()});const B=jLe(u,s,y,t,d,m,v,()=>{var W;(W=f.value)===null||W===void 0||W.delayHidden()});n({scrollTo:B});const F=h.computed(()=>{let W=null;return t.height&&(W=k({[t.fullHeight?"height":"maxHeight"]:t.height+"px"},JLe),r.value&&(W.overflowY="hidden",o.scrollMoving&&(W.pointerEvents="none"))),W});return h.watch([()=>O.start,()=>O.end,s],()=>{if(t.onVisibleChange){const W=s.value.slice(O.start,O.end+1);t.onVisibleChange(W,s.value)}},{flush:"post"}),{state:o,mergedData:s,componentStyle:F,onFallbackScroll:M,onScrollBar:P,componentRef:u,useVirtual:r,calRes:O,collectHeight:m,setInstance:g,sharedConfig:p,scrollBarRef:f,fillerInnerRef:c,delayHideScrollBar:()=>{var W;(W=f.value)===null||W===void 0||W.delayHidden()}}},render(){const t=k(k({},this.$props),this.$attrs),{prefixCls:e="rc-virtual-list",height:n,itemHeight:r,fullHeight:i,data:o,itemKey:a,virtual:s,component:l="div",onScroll:u,children:c=this.$slots.default,style:f,class:d}=t,p=qLe(t,["prefixCls","height","itemHeight","fullHeight","data","itemKey","virtual","component","onScroll","children","style","class"]),v=Pe(e,d),{scrollTop:g}=this.state,{scrollHeight:m,offset:y,start:b,end:O}=this.calRes,{componentStyle:w,onFallbackScroll:x,onScrollBar:S,useVirtual:T,collectHeight:$,sharedConfig:A,setInstance:P,mergedData:M,delayHideScrollBar:I}=this;return h.createVNode("div",K({style:k(k({},f),{position:"relative"}),class:v},p),[h.createVNode(l,{class:`${e}-holder`,style:w,ref:"componentRef",onScroll:x,onMouseenter:I},{default:()=>[h.createVNode(kT,{prefixCls:e,height:m,offset:y,onInnerResize:$,ref:"fillerInnerRef"},{default:()=>e4e(M,b,O,P,c,A)})]}),T&&h.createVNode(HLe,{ref:"scrollBarRef",prefixCls:e,scrollTop:g,height:n,scrollHeight:m,count:M.length,onScroll:S,onStartMove:()=>{this.state.scrollMoving=!0},onStopMove:()=>{this.state.scrollMoving=!1}},null)])}});function n4e(t,e,n){const r=h.ref(t());return h.watch(e,(i,o)=>{n?n(i,o)&&(r.value=t()):r.value=t()}),r}function r4e(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}const rre=Symbol("SelectContextKey");function i4e(t){return h.provide(rre,t)}function o4e(){return h.inject(rre,{})}var a4e=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function ZW(t){return typeof t=="string"||typeof t=="number"}const s4e=h.defineComponent({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(t,e){let{expose:n,slots:r}=e;const i=LLe(),o=o4e(),a=h.computed(()=>`${i.prefixCls}-item`),s=n4e(()=>o.flattenOptions,[()=>i.open,()=>o.flattenOptions],x=>x[0]),l=Gy(),u=x=>{x.preventDefault()},c=x=>{l.current&&l.current.scrollTo(typeof x=="number"?{index:x}:x)},f=function(x){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const T=s.value.length;for(let $=0;$<T;$+=1){const A=(x+$*S+T)%T,{group:P,data:M}=s.value[A];if(!P&&!M.disabled)return A}return-1},d=h.reactive({activeIndex:f(0)}),p=function(x){let S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;d.activeIndex=x;const T={source:S?"keyboard":"mouse"},$=s.value[x];if(!$){o.onActiveValue(null,-1,T);return}o.onActiveValue($.value,x,T)};h.watch([()=>s.value.length,()=>i.searchValue],()=>{p(o.defaultActiveFirstOption!==!1?f(0):-1)},{immediate:!0});const v=x=>o.rawValues.has(x)&&i.mode!=="combobox";h.watch([()=>i.open,()=>i.searchValue],()=>{if(!i.multiple&&i.open&&o.rawValues.size===1){const x=Array.from(o.rawValues)[0],S=h.toRaw(s.value).findIndex(T=>{let{data:$}=T;return $[o.fieldNames.value]===x});S!==-1&&(p(S),h.nextTick(()=>{c(S)}))}i.open&&h.nextTick(()=>{var x;(x=l.current)===null||x===void 0||x.scrollTo(void 0)})},{immediate:!0,flush:"post"});const g=x=>{x!==void 0&&o.onSelect(x,{selected:!o.rawValues.has(x)}),i.multiple||i.toggleOpen(!1)},m=x=>typeof x.label=="function"?x.label():x.label;function y(x){const S=s.value[x];if(!S)return null;const T=S.data||{},{value:$}=T,{group:A}=S,P=RT(T,!0),M=m(S);return S?h.createVNode("div",K(K({"aria-label":typeof M=="string"&&!A?M:null},P),{},{key:x,role:A?"presentation":"option",id:`${i.id}_list_${x}`,"aria-selected":v($)}),[$]):null}return n({onKeydown:x=>{const{which:S,ctrlKey:T}=x;switch(S){case Se.N:case Se.P:case Se.UP:case Se.DOWN:{let $=0;if(S===Se.UP?$=-1:S===Se.DOWN?$=1:r4e()&&T&&(S===Se.N?$=1:S===Se.P&&($=-1)),$!==0){const A=f(d.activeIndex+$,$);c(A),p(A,!0)}break}case Se.ENTER:{const $=s.value[d.activeIndex];$&&!$.data.disabled?g($.value):g(void 0),i.open&&x.preventDefault();break}case Se.ESC:i.toggleOpen(!1),i.open&&x.stopPropagation()}},onKeyup:()=>{},scrollTo:x=>{c(x)}}),()=>{const{id:x,notFoundContent:S,onPopupScroll:T}=i,{menuItemSelectedIcon:$,fieldNames:A,virtual:P,listHeight:M,listItemHeight:I}=o,R=r.option,{activeIndex:L}=d,D=Object.keys(A).map(B=>A[B]);return s.value.length===0?h.createVNode("div",{role:"listbox",id:`${x}_list`,class:`${a.value}-empty`,onMousedown:u},[S]):h.createVNode(h.Fragment,null,[h.createVNode("div",{role:"listbox",id:`${x}_list`,style:{height:0,width:0,overflow:"hidden"}},[y(L-1),y(L),y(L+1)]),h.createVNode(t4e,{itemKey:"key",ref:l,data:s.value,height:M,itemHeight:I,fullHeight:!1,onMousedown:u,onScroll:T,virtual:P},{default:(B,F)=>{var z;const{group:W,groupOption:j,data:H,value:Z}=B,{key:J}=H,se=typeof B.label=="function"?B.label():B.label;if(W){const De=(z=H.title)!==null&&z!==void 0?z:ZW(se)&&se;return h.createVNode("div",{class:Pe(a.value,`${a.value}-group`),title:De},[R?R(H):se!==void 0?se:J])}const{disabled:oe,title:de,children:re,style:ue,class:ee,className:X}=H,Y=a4e(H,["disabled","title","children","style","class","className"]),le=Mr(Y,D),ge=v(Z),me=`${a.value}-option`,Ne=Pe(a.value,me,ee,X,{[`${me}-grouped`]:j,[`${me}-active`]:L===F&&!oe,[`${me}-disabled`]:oe,[`${me}-selected`]:ge}),Le=m(B),Ee=!$||typeof $=="function"||ge,$e=typeof Le=="number"?Le:Le||Z;let _e=ZW($e)?$e.toString():void 0;return de!==void 0&&(_e=de),h.createVNode("div",K(K({},le),{},{"aria-selected":ge,class:Ne,title:_e,onMousemove:De=>{Y.onMousemove&&Y.onMousemove(De),!(L===F||oe)&&p(F)},onClick:De=>{oe||g(Z),Y.onClick&&Y.onClick(De)},style:ue}),[h.createVNode("div",{class:`${me}-content`},[R?R(H):$e]),No($)||ge,Ee&&h.createVNode(rh,{class:`${a.value}-option-state`,customizeIcon:$,customizeIconProps:{isSelected:ge}},{default:()=>[ge?"✓":null]})])}})])}}});var l4e=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function u4e(t){const e=t,{key:n,children:r}=e,i=e.props,{value:o,disabled:a}=i,s=l4e(i,["value","disabled"]),l=r==null?void 0:r.default;return k({key:n,value:o!==void 0?o:n,children:l,disabled:a||a===""},s)}function d4(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return wr(t).map((r,i)=>{var o;if(!No(r)||!r.type)return null;const{type:{isSelectOptGroup:a},key:s,children:l,props:u}=r;if(e||!a)return u4e(r);const c=l&&l.default?l.default():void 0,f=(u==null?void 0:u.label)||((o=l.label)===null||o===void 0?void 0:o.call(l))||s;return k(k({key:`__RC_SELECT_GRP__${s===null?i:String(s)}__`},u),{label:f,options:d4(c||[])})}).filter(r=>r)}function c4e(t,e,n){const r=h.shallowRef(),i=h.shallowRef(),o=h.shallowRef(),a=h.shallowRef([]);return h.watch([t,e],()=>{t.value?a.value=h.toRaw(t.value).slice():a.value=d4(e.value)},{immediate:!0,deep:!0}),h.watchEffect(()=>{const s=a.value,l=new Map,u=new Map,c=n.value;function f(d){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(let v=0;v<d.length;v+=1){const g=d[v];!g[c.options]||p?(l.set(g[c.value],g),u.set(g[c.label],g)):f(g[c.options],!0)}}f(s),r.value=s,i.value=l,o.value=u}),{options:r,valueOptions:i,labelOptions:o}}let XW=0;const f4e=process.env.NODE_ENV!=="test"&&Sa();function d4e(){let t;return f4e?(t=XW,XW+=1):t="TEST_OR_SSR",t}function h4e(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:h.ref("");const e=`rc_select_${d4e()}`;return t.value||e}function h4(t){return Array.isArray(t)?t:t!==void 0?[t]:[]}const p4e=typeof window<"u"&&window.document&&window.document.documentElement;process.env.NODE_ENV;function v4e(t){const{mode:e,options:n,children:r,backfill:i,allowClear:o,placeholder:a,getInputElement:s,showSearch:l,onSearch:u,defaultOpen:c,autofocus:f,labelInValue:d,value:p,inputValue:v,optionLabelProp:g}=t,m=f4(e),y=l!==void 0?l:m||e==="combobox",b=n||d4(r);if(ra(e!=="tags"||b.every(O=>!O.disabled),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),ra(e!=="combobox"||!g,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),ra(e==="combobox"||!i,"`backfill` only works with `combobox` mode."),ra(e==="combobox"||!s,"`getInputElement` only work with `combobox` mode."),nW(e!=="combobox"||!s||!o||!a,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),u&&!y&&e!=="combobox"&&e!=="tags"&&ra(!1,"`onSearch` should work with `showSearch` instead of use alone."),nW(!c||f,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autofocus` if needed."),p!=null){const O=h4(p);ra(!d||O.every(w=>typeof w=="object"&&("key"in w||"value"in w)),"`value` should in shape of `{ value: string | number, label?: any }` when you set `labelInValue` to `true`"),ra(!m||Array.isArray(p),"`value` should be array when `mode` is `multiple` or `tags`")}if(r){let O=null;r.some(w=>{var x;if(!No(w)||!w.type)return!1;const{type:S}=w;return S.isSelectOption?!1:S.isSelectOptGroup?!(((x=w.children)===null||x===void 0?void 0:x.default())||[]).every(A=>!No(A)||!w.type||A.type.isSelectOption?!0:(O=A.type,!1)):(O=S,!0)}),O&&ra(!1,`\`children\` should be \`Select.Option\` or \`Select.OptGroup\` instead of \`${O.displayName||O.name||O}\`.`),ra(v===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function hA(t,e){return h4(t).join("").toUpperCase().includes(e)}const g4e=(t,e,n,r,i)=>h.computed(()=>{const o=n.value,a=i==null?void 0:i.value,s=r==null?void 0:r.value;if(!o||s===!1)return t.value;const{options:l,label:u,value:c}=e.value,f=[],d=typeof s=="function",p=o.toUpperCase(),v=d?s:(m,y)=>a?hA(y[a],p):y[l]?hA(y[u!=="children"?u:"label"],p):hA(y[c],p),g=d?m=>$D(m):m=>m;return t.value.forEach(m=>{if(m[l]){if(v(o,g(m)))f.push(m);else{const b=m[l].filter(O=>v(o,g(O)));b.length&&f.push(k(k({},m),{[l]:b}))}return}v(o,g(m))&&f.push(m)}),f}),m4e=(t,e)=>{const n=h.shallowRef({values:new Map,options:new Map});return[h.computed(()=>{const{values:o,options:a}=n.value,s=t.value.map(c=>{var f;return c.label===void 0?k(k({},c),{label:(f=o.get(c.value))===null||f===void 0?void 0:f.label}):c}),l=new Map,u=new Map;return s.forEach(c=>{l.set(c.value,c),u.set(c.value,e.value.get(c.value)||a.get(c.value))}),n.value.values=l,n.value.options=u,s}),o=>e.value.get(o)||n.value.options.get(o)]};function Gv(t,e){const{defaultValue:n,value:r=h.ref()}=e||{};let i=typeof t=="function"?t():t;r.value!==void 0&&(i=h.unref(r)),n!==void 0&&(i=typeof n=="function"?n():n);const o=h.ref(i),a=h.ref(i);h.watchEffect(()=>{let l=r.value!==void 0?r.value:o.value;e.postState&&(l=e.postState(l)),a.value=l});function s(l){const u=a.value;o.value=l,h.toRaw(a.value)!==l&&e.onChange&&e.onChange(l,u)}return h.watch(r,()=>{o.value=r.value}),[a,s]}function En(t){const e=typeof t=="function"?t():t,n=h.ref(e);function r(i){n.value=i}return[n,r]}const y4e=["inputValue"];function ire(){return k(k({},ere()),{prefixCls:String,id:String,backfill:{type:Boolean,default:void 0},fieldNames:Object,inputValue:String,searchValue:String,onSearch:Function,autoClearSearchValue:{type:Boolean,default:void 0},onSelect:Function,onDeselect:Function,filterOption:{type:[Boolean,Function],default:void 0},filterSort:Function,optionFilterProp:String,optionLabelProp:String,options:Array,defaultActiveFirstOption:{type:Boolean,default:void 0},virtual:{type:Boolean,default:void 0},listHeight:Number,listItemHeight:Number,menuItemSelectedIcon:ne.any,mode:String,labelInValue:{type:Boolean,default:void 0},value:ne.any,defaultValue:ne.any,onChange:Function,children:Array})}function b4e(t){return!t||typeof t!="object"}const _4e=h.defineComponent({compatConfig:{MODE:3},name:"VcSelect",inheritAttrs:!1,props:Ir(ire(),{prefixCls:"vc-select",autoClearSearchValue:!0,listHeight:200,listItemHeight:20,dropdownMatchSelectWidth:!0}),setup(t,e){let{expose:n,attrs:r,slots:i}=e;const o=h4e(h.toRef(t,"id")),a=h.computed(()=>f4(t.mode)),s=h.computed(()=>!!(!t.options&&t.children)),l=h.computed(()=>t.filterOption===void 0&&t.mode==="combobox"?!1:t.filterOption),u=h.computed(()=>Mne(t.fieldNames,s.value)),[c,f]=Gv("",{value:h.computed(()=>t.searchValue!==void 0?t.searchValue:t.inputValue),postState:ee=>ee||""}),d=c4e(h.toRef(t,"options"),h.toRef(t,"children"),u),{valueOptions:p,labelOptions:v,options:g}=d,m=ee=>h4(ee).map(Y=>{var le,ge;let me,Ne,Le,Ee;b4e(Y)?me=Y:(Le=Y.key,Ne=Y.label,me=(le=Y.value)!==null&&le!==void 0?le:Le);const $e=p.value.get(me);return $e&&(Ne===void 0&&(Ne=$e==null?void 0:$e[t.optionLabelProp||u.value.label]),Le===void 0&&(Le=(ge=$e==null?void 0:$e.key)!==null&&ge!==void 0?ge:me),Ee=$e==null?void 0:$e.disabled),{label:Ne,value:me,key:Le,disabled:Ee,option:$e}}),[y,b]=Gv(t.defaultValue,{value:h.toRef(t,"value")}),O=h.computed(()=>{var ee;const X=m(y.value);return t.mode==="combobox"&&!(!((ee=X[0])===null||ee===void 0)&&ee.value)?[]:X}),[w,x]=m4e(O,p),S=h.computed(()=>{if(!t.mode&&w.value.length===1){const ee=w.value[0];if(ee.value===null&&(ee.label===null||ee.label===void 0))return[]}return w.value.map(ee=>{var X;return k(k({},ee),{label:(X=typeof ee.label=="function"?ee.label():ee.label)!==null&&X!==void 0?X:ee.value})})}),T=h.computed(()=>new Set(w.value.map(ee=>ee.value)));h.watchEffect(()=>{var ee;if(t.mode==="combobox"){const X=(ee=w.value[0])===null||ee===void 0?void 0:ee.value;X!=null&&f(String(X))}},{flush:"post"});const $=(ee,X)=>{const Y=X??ee;return{[u.value.value]:ee,[u.value.label]:Y}},A=h.shallowRef();h.watchEffect(()=>{if(t.mode!=="tags"){A.value=g.value;return}const ee=g.value.slice(),X=Y=>p.value.has(Y);[...w.value].sort((Y,le)=>Y.value<le.value?-1:1).forEach(Y=>{const le=Y.value;X(le)||ee.push($(le,Y.label))}),A.value=ee});const P=g4e(A,u,c,l,h.toRef(t,"optionFilterProp")),M=h.computed(()=>t.mode!=="tags"||!c.value||P.value.some(ee=>ee[t.optionFilterProp||"value"]===c.value)?P.value:[$(c.value),...P.value]),I=h.computed(()=>t.filterSort?[...M.value].sort((ee,X)=>t.filterSort(ee,X)):M.value),R=h.computed(()=>lNe(I.value,{fieldNames:u.value,childrenAsData:s.value})),L=ee=>{const X=m(ee);if(b(X),t.onChange&&(X.length!==w.value.length||X.some((Y,le)=>{var ge;return((ge=w.value[le])===null||ge===void 0?void 0:ge.value)!==(Y==null?void 0:Y.value)}))){const Y=t.labelInValue?X.map(ge=>k(k({},ge),{originLabel:ge.label,label:typeof ge.label=="function"?ge.label():ge.label})):X.map(ge=>ge.value),le=X.map(ge=>$D(x(ge.value)));t.onChange(a.value?Y:Y[0],a.value?le:le[0])}},[D,B]=En(null),[F,z]=En(0),W=h.computed(()=>t.defaultActiveFirstOption!==void 0?t.defaultActiveFirstOption:t.mode!=="combobox"),j=function(ee,X){let{source:Y="keyboard"}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};z(X),t.backfill&&t.mode==="combobox"&&ee!==null&&Y==="keyboard"&&B(String(ee))},H=(ee,X)=>{const Y=()=>{var le;const ge=x(ee),me=ge==null?void 0:ge[u.value.label];return[t.labelInValue?{label:typeof me=="function"?me():me,originLabel:me,value:ee,key:(le=ge==null?void 0:ge.key)!==null&&le!==void 0?le:ee}:ee,$D(ge)]};if(X&&t.onSelect){const[le,ge]=Y();t.onSelect(le,ge)}else if(!X&&t.onDeselect){const[le,ge]=Y();t.onDeselect(le,ge)}},Z=(ee,X)=>{let Y;const le=a.value?X.selected:!0;le?Y=a.value?[...w.value,ee]:[ee]:Y=w.value.filter(ge=>ge.value!==ee),L(Y),H(ee,le),t.mode==="combobox"?B(""):(!a.value||t.autoClearSearchValue)&&(f(""),B(""))},J=(ee,X)=>{L(ee),(X.type==="remove"||X.type==="clear")&&X.values.forEach(Y=>{H(Y.value,!1)})},se=(ee,X)=>{var Y;if(f(ee),B(null),X.source==="submit"){const le=(ee||"").trim();if(le){const ge=Array.from(new Set([...T.value,le]));L(ge),H(le,!0),f("")}return}X.source!=="blur"&&(t.mode==="combobox"&&L(ee),(Y=t.onSearch)===null||Y===void 0||Y.call(t,ee))},oe=ee=>{let X=ee;t.mode!=="tags"&&(X=ee.map(le=>{const ge=v.value.get(le);return ge==null?void 0:ge.value}).filter(le=>le!==void 0));const Y=Array.from(new Set([...T.value,...X]));L(Y),Y.forEach(le=>{H(le,!0)})},de=h.computed(()=>t.virtual!==!1&&t.dropdownMatchSelectWidth!==!1);i4e(Jne(k(k({},d),{flattenOptions:R,onActiveValue:j,defaultActiveFirstOption:W,onSelect:Z,menuItemSelectedIcon:h.toRef(t,"menuItemSelectedIcon"),rawValues:T,fieldNames:u,virtual:de,listHeight:h.toRef(t,"listHeight"),listItemHeight:h.toRef(t,"listItemHeight"),childrenAsData:s}))),process.env.NODE_ENV!=="production"&&h.watchEffect(()=>{v4e(t)},{flush:"post"});const re=h.ref();n({focus(){var ee;(ee=re.value)===null||ee===void 0||ee.focus()},blur(){var ee;(ee=re.value)===null||ee===void 0||ee.blur()},scrollTo(ee){var X;(X=re.value)===null||X===void 0||X.scrollTo(ee)}});const ue=h.computed(()=>Mr(t,["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"]));return()=>h.createVNode(WLe,K(K(K({},ue.value),r),{},{id:o,prefixCls:t.prefixCls,ref:re,omitDomProps:y4e,mode:t.mode,displayValues:S.value,onDisplayValuesChange:J,searchValue:c.value,onSearch:se,onSearchSplit:oe,dropdownMatchSelectWidth:t.dropdownMatchSelectWidth,OptionList:s4e,emptyOptions:!R.value.length,activeValue:D.value,activeDescendantId:`${o}_list_${F.value}`}),i)}}),p4=()=>null;p4.isSelectOption=!0;p4.displayName="ASelectOption";const v4=()=>null;v4.isSelectOptGroup=!0;v4.displayName="ASelectOptGroup";var O4e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},w4e=Symbol("iconContext"),ore=function(){return h.inject(w4e,{prefixCls:h.ref("anticon"),rootClassName:h.ref(""),csp:h.ref()})};function g4(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function x4e(t,e){return t&&t.contains?t.contains(e):!1}var YW="data-vc-order",S4e="vc-icon-key",RD=new Map;function are(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.mark;return e?e.startsWith("data-")?e:"data-".concat(e):S4e}function m4(t){if(t.attachTo)return t.attachTo;var e=document.querySelector("head");return e||document.body}function C4e(t){return t==="queue"?"prependQueue":t?"prepend":"append"}function sre(t){return Array.from((RD.get(t)||t).children).filter(function(e){return e.tagName==="STYLE"})}function lre(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!g4())return null;var n=e.csp,r=e.prepend,i=document.createElement("style");i.setAttribute(YW,C4e(r)),n&&n.nonce&&(i.nonce=n.nonce),i.innerHTML=t;var o=m4(e),a=o.firstChild;if(r){if(r==="queue"){var s=sre(o).filter(function(l){return["prepend","prependQueue"].includes(l.getAttribute(YW))});if(s.length)return o.insertBefore(i,s[s.length-1].nextSibling),i}o.insertBefore(i,a)}else o.appendChild(i);return i}function T4e(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=m4(e);return sre(n).find(function(r){return r.getAttribute(are(e))===t})}function P4e(t,e){var n=RD.get(t);if(!n||!x4e(document,n)){var r=lre("",e),i=r.parentNode;RD.set(t,i),t.removeChild(r)}}function $4e(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=m4(n);P4e(r,n);var i=T4e(e,n);if(i)return n.csp&&n.csp.nonce&&i.nonce!==n.csp.nonce&&(i.nonce=n.csp.nonce),i.innerHTML!==t&&(i.innerHTML=t),i;var o=lre(t,n);return o.setAttribute(are(n),e),o}function qW(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){A4e(t,i,n[i])})}return t}function A4e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function E4e(t,e){process.env.NODE_ENV!=="production"&&!t&&console!==void 0&&console.error("Warning: ".concat(e))}function M4e(t,e){E4e(t,"[@ant-design/icons-vue] ".concat(e))}function KW(t){return typeof t=="object"&&typeof t.name=="string"&&typeof t.theme=="string"&&(typeof t.icon=="object"||typeof t.icon=="function")}function kD(t,e,n){return n?h.h(t.tag,qW({key:e},n,t.attrs),(t.children||[]).map(function(r,i){return kD(r,"".concat(e,"-").concat(t.tag,"-").concat(i))})):h.h(t.tag,qW({key:e},t.attrs),(t.children||[]).map(function(r,i){return kD(r,"".concat(e,"-").concat(t.tag,"-").concat(i))}))}function ure(t){return th(t)[0]}function cre(t){return t?Array.isArray(t)?t:[t]:[]}var I4e=`
  97. .anticon {
  98. display: inline-block;
  99. color: inherit;
  100. font-style: normal;
  101. line-height: 0;
  102. text-align: center;
  103. text-transform: none;
  104. vertical-align: -0.125em;
  105. text-rendering: optimizeLegibility;
  106. -webkit-font-smoothing: antialiased;
  107. -moz-osx-font-smoothing: grayscale;
  108. }
  109. .anticon > * {
  110. line-height: 1;
  111. }
  112. .anticon svg {
  113. display: inline-block;
  114. }
  115. .anticon::before {
  116. display: none;
  117. }
  118. .anticon .anticon-icon {
  119. display: block;
  120. }
  121. .anticon[tabindex] {
  122. cursor: pointer;
  123. }
  124. .anticon-spin::before,
  125. .anticon-spin {
  126. display: inline-block;
  127. -webkit-animation: loadingCircle 1s infinite linear;
  128. animation: loadingCircle 1s infinite linear;
  129. }
  130. @-webkit-keyframes loadingCircle {
  131. 100% {
  132. -webkit-transform: rotate(360deg);
  133. transform: rotate(360deg);
  134. }
  135. }
  136. @keyframes loadingCircle {
  137. 100% {
  138. -webkit-transform: rotate(360deg);
  139. transform: rotate(360deg);
  140. }
  141. }
  142. `;function fre(t){return t&&t.getRootNode&&t.getRootNode()}function D4e(t){return g4()?fre(t)instanceof ShadowRoot:!1}function R4e(t){return D4e(t)?fre(t):null}var k4e=function(){var e=ore(),n=e.prefixCls,r=e.csp,i=h.getCurrentInstance(),o=I4e;n&&(o=o.replace(/anticon/g,n.value)),h.nextTick(function(){if(g4()){var a=i.vnode.el,s=R4e(a);$4e(o,"@ant-design-vue-icons",{prepend:!0,csp:r.value,attachTo:s})}})},N4e=["icon","primaryColor","secondaryColor"];function L4e(t,e){if(t==null)return{};var n=B4e(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function B4e(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function rx(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){V4e(t,i,n[i])})}return t}function V4e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var q0=h.reactive({primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1});function z4e(t){var e=t.primaryColor,n=t.secondaryColor;q0.primaryColor=e,q0.secondaryColor=n||ure(e),q0.calculated=!!n}function F4e(){return rx({},q0)}var jc=function(e,n){var r=rx({},e,n.attrs),i=r.icon,o=r.primaryColor,a=r.secondaryColor,s=L4e(r,N4e),l=q0;if(o&&(l={primaryColor:o,secondaryColor:a||ure(o)}),M4e(KW(i),"icon should be icon definiton, but got ".concat(i)),!KW(i))return null;var u=i;return u&&typeof u.icon=="function"&&(u=rx({},u,{icon:u.icon(l.primaryColor,l.secondaryColor)})),kD(u.icon,"svg-".concat(u.name),rx({},s,{"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};jc.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String};jc.inheritAttrs=!1;jc.displayName="IconBase";jc.getTwoToneColors=F4e;jc.setTwoToneColors=z4e;function W4e(t,e){return j4e(t)||G4e(t,e)||H4e(t,e)||Q4e()}function Q4e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  143. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function H4e(t,e){if(t){if(typeof t=="string")return JW(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return JW(t,e)}}function JW(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function G4e(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(t);!(i=(a=n.next()).done)&&(r.push(a.value),!(e&&r.length===e));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function j4e(t){if(Array.isArray(t))return t}function dre(t){var e=cre(t),n=W4e(e,2),r=n[0],i=n[1];return jc.setTwoToneColors({primaryColor:r,secondaryColor:i})}function U4e(){var t=jc.getTwoToneColors();return t.calculated?[t.primaryColor,t.secondaryColor]:t.primaryColor}var Z4e=h.defineComponent({name:"InsertStyles",setup:function(){return k4e(),function(){return null}}}),X4e=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function Y4e(t,e){return e8e(t)||J4e(t,e)||K4e(t,e)||q4e()}function q4e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  144. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function K4e(t,e){if(t){if(typeof t=="string")return e7(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e7(t,e)}}function e7(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function J4e(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,o=!1,a,s;try{for(n=n.call(t);!(i=(a=n.next()).done)&&(r.push(a.value),!(e&&r.length===e));i=!0);}catch(l){o=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(o)throw s}}return r}}function e8e(t){if(Array.isArray(t))return t}function t7(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){w0(t,i,n[i])})}return t}function w0(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function t8e(t,e){if(t==null)return{};var n=n8e(t,e),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(i=0;i<o.length;i++)r=o[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function n8e(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,o;for(o=0;o<r.length;o++)i=r[o],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}dre(fke.primary);var yt=function(e,n){var r,i=t7({},e,n.attrs),o=i.class,a=i.icon,s=i.spin,l=i.rotate,u=i.tabindex,c=i.twoToneColor,f=i.onClick,d=t8e(i,X4e),p=ore(),v=p.prefixCls,g=p.rootClassName,m=(r={},w0(r,g.value,!!g.value),w0(r,v.value,!0),w0(r,"".concat(v.value,"-").concat(a.name),!!a.name),w0(r,"".concat(v.value,"-spin"),!!s||a.name==="loading"),r),y=u;y===void 0&&f&&(y=-1);var b=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,O=cre(c),w=Y4e(O,2),x=w[0],S=w[1];return h.createVNode("span",t7({role:"img","aria-label":a.name},d,{onClick:f,class:[m,o],tabindex:y}),[h.createVNode(jc,{icon:a,primaryColor:x,secondaryColor:S,style:b},null),h.createVNode(Z4e,null,null)])};yt.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]};yt.displayName="AntdIcon";yt.inheritAttrs=!1;yt.getTwoToneColor=U4e;yt.setTwoToneColor=dre;function n7(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){r8e(t,i,n[i])})}return t}function r8e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var NT=function(e,n){var r=n7({},e,n.attrs);return h.createVNode(yt,n7({},r,{icon:O4e}),null)};NT.displayName="DownOutlined";NT.inheritAttrs=!1;var i8e={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"};function r7(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){o8e(t,i,n[i])})}return t}function o8e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var sl=function(e,n){var r=r7({},e,n.attrs);return h.createVNode(yt,r7({},r,{icon:i8e}),null)};sl.displayName="LoadingOutlined";sl.inheritAttrs=!1;var a8e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};function i7(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){s8e(t,i,n[i])})}return t}function s8e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var y4=function(e,n){var r=i7({},e,n.attrs);return h.createVNode(yt,i7({},r,{icon:a8e}),null)};y4.displayName="CheckOutlined";y4.inheritAttrs=!1;var l8e={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};function o7(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){u8e(t,i,n[i])})}return t}function u8e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var mu=function(e,n){var r=o7({},e,n.attrs);return h.createVNode(yt,o7({},r,{icon:l8e}),null)};mu.displayName="CloseOutlined";mu.inheritAttrs=!1;var c8e={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};function a7(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){f8e(t,i,n[i])})}return t}function f8e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ea=function(e,n){var r=a7({},e,n.attrs);return h.createVNode(yt,a7({},r,{icon:c8e}),null)};Ea.displayName="CloseCircleFilled";Ea.inheritAttrs=!1;var d8e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};function s7(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){h8e(t,i,n[i])})}return t}function h8e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var LT=function(e,n){var r=s7({},e,n.attrs);return h.createVNode(yt,s7({},r,{icon:d8e}),null)};LT.displayName="SearchOutlined";LT.inheritAttrs=!1;function p8e(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{loading:n,multiple:r,prefixCls:i,hasFeedback:o,feedbackIcon:a,showArrow:s}=t,l=t.suffixIcon||e.suffixIcon&&e.suffixIcon(),u=t.clearIcon||e.clearIcon&&e.clearIcon(),c=t.menuItemSelectedIcon||e.menuItemSelectedIcon&&e.menuItemSelectedIcon(),f=t.removeIcon||e.removeIcon&&e.removeIcon(),d=u??h.createVNode(Ea,null,null),p=y=>h.createVNode(h.Fragment,null,[s!==!1&&y,o&&a]);let v=null;if(l!==void 0)v=p(l);else if(n)v=p(h.createVNode(sl,{spin:!0},null));else{const y=`${i}-suffix`;v=b=>{let{open:O,showSearch:w}=b;return p(O&&w?h.createVNode(LT,{class:y},null):h.createVNode(NT,{class:y},null))}}let g=null;c!==void 0?g=c:r?g=h.createVNode(y4,null,null):g=null;let m=null;return f!==void 0?m=f:m=h.createVNode(mu,null,null),{clearIcon:d,suffixIcon:v,itemIcon:g,removeIcon:m}}function b4(t){const e=Symbol("contextKey");return{useProvide:(i,o)=>{const a=h.reactive({});return h.provide(e,a),h.watchEffect(()=>{k(a,i,o||{})}),a},useInject:()=>h.inject(e,t)||{}}}const sS=Symbol("ContextProps"),lS=Symbol("InternalContextProps"),v8e=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.computed(()=>!0);const n=h.ref(new Map),r=(a,s)=>{n.value.set(a,s),n.value=new Map(n.value)},i=a=>{n.value.delete(a),n.value=new Map(n.value)},o=h.getCurrentInstance();h.watch([e,n],()=>{if(process.env.NODE_ENV!=="production"&&e.value&&n.value.size>1){Io(!1,"Form.Item",`FormItem can only collect one field item, you haved set ${[...n.value.values()].map(s=>`\`${s.name}\``).join(", ")} ${n.value.size} field items.
  145. You can set not need to be collected fields into \`a-form-item-rest\``);let a=o;for(;a.parent;)console.warn("at",a.type),a=a.parent}}),h.provide(sS,t),h.provide(lS,{addFormItemField:r,removeFormItemField:i})},ND={id:h.computed(()=>{}),onFieldBlur:()=>{},onFieldChange:()=>{},clearValidate:()=>{}},LD={addFormItemField:()=>{},removeFormItemField:()=>{}},dl=()=>{const t=h.inject(lS,LD),e=Symbol("FormItemFieldKey"),n=h.getCurrentInstance();return t.addFormItemField(e,n.type),h.onBeforeUnmount(()=>{t.removeFormItemField(e)}),h.provide(lS,LD),h.provide(sS,ND),h.inject(sS,ND)},jy=h.defineComponent({compatConfig:{MODE:3},name:"AFormItemRest",setup(t,e){let{slots:n}=e;return h.provide(lS,LD),h.provide(sS,ND),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}),ss=b4({}),uS=h.defineComponent({name:"NoFormStatus",setup(t,e){let{slots:n}=e;return ss.useProvide({}),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});function Zl(t,e,n){return Pe({[`${t}-status-success`]:e==="success",[`${t}-status-warning`]:e==="warning",[`${t}-status-error`]:e==="error",[`${t}-status-validating`]:e==="validating",[`${t}-has-feedback`]:n})}const t_=(t,e)=>e||t,g8e=t=>{const{componentCls:e}=t;return{[e]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},m8e=t=>{const{componentCls:e}=t;return{[e]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},[`${e}-item`]:{"&:empty":{display:"none"}}}}},y8e=Wn("Space",t=>[m8e(t),g8e(t)]),b8e=()=>({compactSize:String,compactDirection:ne.oneOf($c("horizontal","vertical")).def("horizontal"),isFirstItem:ft(),isLastItem:ft()}),BT=b4(null),VT=(t,e)=>{const n=BT.useInject(),r=h.computed(()=>{if(!n||hee(n))return"";const{compactDirection:i,isFirstItem:o,isLastItem:a}=n,s=i==="vertical"?"-vertical-":"-";return Pe({[`${t.value}-compact${s}item`]:!0,[`${t.value}-compact${s}first-item`]:o,[`${t.value}-compact${s}last-item`]:a,[`${t.value}-compact${s}item-rtl`]:e.value==="rtl"})});return{compactSize:h.computed(()=>n==null?void 0:n.compactSize),compactDirection:h.computed(()=>n==null?void 0:n.compactDirection),compactItemClassnames:r}},cS=h.defineComponent({name:"NoCompactStyle",setup(t,e){let{slots:n}=e;return BT.useProvide(null),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}),_8e=()=>({prefixCls:String,size:{type:String},direction:ne.oneOf($c("horizontal","vertical")).def("horizontal"),align:ne.oneOf($c("start","end","center","baseline")),block:{type:Boolean,default:void 0}}),O8e=h.defineComponent({name:"CompactItem",props:b8e(),setup(t,e){let{slots:n}=e;return BT.useProvide(t),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});h.defineComponent({name:"ASpaceCompact",inheritAttrs:!1,props:_8e(),setup(t,e){let{attrs:n,slots:r}=e;const{prefixCls:i,direction:o}=Gt("space-compact",t),a=BT.useInject(),[s,l]=y8e(i),u=h.computed(()=>Pe(i.value,l.value,{[`${i.value}-rtl`]:o.value==="rtl",[`${i.value}-block`]:t.block,[`${i.value}-vertical`]:t.direction==="vertical"}));return()=>{var c;const f=wr(((c=r.default)===null||c===void 0?void 0:c.call(r))||[]);return f.length===0?null:s(h.createVNode("div",K(K({},n),{},{class:[u.value,n.class]}),[f.map((d,p)=>{var v;const g=d&&d.key||`${i.value}-item-${p}`,m=!a||hee(a);return h.createVNode(O8e,{key:g,compactSize:(v=t.size)!==null&&v!==void 0?v:"middle",compactDirection:t.direction,isFirstItem:p===0&&(m||(a==null?void 0:a.isFirstItem)),isLastItem:p===f.length-1&&(m||(a==null?void 0:a.isLastItem))},{default:()=>[d]})})]))}}});const w8e=t=>({animationDuration:t,animationFillMode:"both"}),x8e=t=>({animationDuration:t,animationFillMode:"both"}),zT=function(t,e,n,r){const o=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
  146. ${o}${t}-enter,
  147. ${o}${t}-appear
  148. `]:k(k({},w8e(r)),{animationPlayState:"paused"}),[`${o}${t}-leave`]:k(k({},x8e(r)),{animationPlayState:"paused"}),[`
  149. ${o}${t}-enter${t}-enter-active,
  150. ${o}${t}-appear${t}-appear-active
  151. `]:{animationName:e,animationPlayState:"running"},[`${o}${t}-leave${t}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},S8e=new Mt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),C8e=new Mt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),hre=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=t,r=`${n}-fade`,i=e?"&":"";return[zT(r,S8e,C8e,t.motionDurationMid,e),{[`
  152. ${i}${r}-enter,
  153. ${i}${r}-appear
  154. `]:{opacity:0,animationTimingFunction:"linear"},[`${i}${r}-leave`]:{animationTimingFunction:"linear"}}]},T8e=new Mt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),P8e=new Mt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),$8e=new Mt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),A8e=new Mt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),E8e=new Mt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),M8e=new Mt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),I8e=new Mt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),D8e=new Mt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),R8e={"move-up":{inKeyframes:I8e,outKeyframes:D8e},"move-down":{inKeyframes:T8e,outKeyframes:P8e},"move-left":{inKeyframes:$8e,outKeyframes:A8e},"move-right":{inKeyframes:E8e,outKeyframes:M8e}},l7=(t,e)=>{const{antCls:n}=t,r=`${n}-${e}`,{inKeyframes:i,outKeyframes:o}=R8e[e];return[zT(r,i,o,t.motionDurationMid),{[`
  155. ${r}-enter,
  156. ${r}-appear
  157. `]:{opacity:0,animationTimingFunction:t.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:t.motionEaseInOutCirc}}]},pre=new Mt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),vre=new Mt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),gre=new Mt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),mre=new Mt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),k8e=new Mt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),N8e=new Mt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),L8e=new Mt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),B8e=new Mt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),V8e={"slide-up":{inKeyframes:pre,outKeyframes:vre},"slide-down":{inKeyframes:gre,outKeyframes:mre},"slide-left":{inKeyframes:k8e,outKeyframes:N8e},"slide-right":{inKeyframes:L8e,outKeyframes:B8e}},jv=(t,e)=>{const{antCls:n}=t,r=`${n}-${e}`,{inKeyframes:i,outKeyframes:o}=V8e[e];return[zT(r,i,o,t.motionDurationMid),{[`
  158. ${r}-enter,
  159. ${r}-appear
  160. `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:t.motionEaseOutQuint},[`${r}-leave`]:{animationTimingFunction:t.motionEaseInQuint}}]},_4=new Mt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),z8e=new Mt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),u7=new Mt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),c7=new Mt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),F8e=new Mt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),W8e=new Mt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Q8e=new Mt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),H8e=new Mt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),G8e=new Mt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),j8e=new Mt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),U8e=new Mt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),Z8e=new Mt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),X8e={zoom:{inKeyframes:_4,outKeyframes:z8e},"zoom-big":{inKeyframes:u7,outKeyframes:c7},"zoom-big-fast":{inKeyframes:u7,outKeyframes:c7},"zoom-left":{inKeyframes:Q8e,outKeyframes:H8e},"zoom-right":{inKeyframes:G8e,outKeyframes:j8e},"zoom-up":{inKeyframes:F8e,outKeyframes:W8e},"zoom-down":{inKeyframes:U8e,outKeyframes:Z8e}},FT=(t,e)=>{const{antCls:n}=t,r=`${n}-${e}`,{inKeyframes:i,outKeyframes:o}=X8e[e];return[zT(r,i,o,e==="zoom-big-fast"?t.motionDurationFast:t.motionDurationMid),{[`
  161. ${r}-enter,
  162. ${r}-appear
  163. `]:{transform:"scale(0)",opacity:0,animationTimingFunction:t.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:t.motionEaseInOutCirc}}]},O4=t=>({[t.componentCls]:{[`${t.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${t.motionDurationMid} ${t.motionEaseInOut},
  164. opacity ${t.motionDurationMid} ${t.motionEaseInOut} !important`}},[`${t.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${t.motionDurationMid} ${t.motionEaseInOut},
  165. opacity ${t.motionDurationMid} ${t.motionEaseInOut} !important`}}}),f7=t=>{const{controlPaddingHorizontal:e}=t;return{position:"relative",display:"block",minHeight:t.controlHeight,padding:`${(t.controlHeight-t.fontSize*t.lineHeight)/2}px ${e}px`,color:t.colorText,fontWeight:"normal",fontSize:t.fontSize,lineHeight:t.lineHeight,boxSizing:"border-box"}},Y8e=t=>{const{antCls:e,componentCls:n}=t,r=`${n}-item`;return[{[`${n}-dropdown`]:k(k({},On(t)),{position:"absolute",top:-9999,zIndex:t.zIndexPopup,boxSizing:"border-box",padding:t.paddingXXS,overflow:"hidden",fontSize:t.fontSize,fontVariant:"initial",backgroundColor:t.colorBgElevated,borderRadius:t.borderRadiusLG,outline:"none",boxShadow:t.boxShadowSecondary,[`
  166. &${e}-slide-up-enter${e}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,
  167. &${e}-slide-up-appear${e}-slide-up-appear-active${n}-dropdown-placement-bottomLeft
  168. `]:{animationName:pre},[`
  169. &${e}-slide-up-enter${e}-slide-up-enter-active${n}-dropdown-placement-topLeft,
  170. &${e}-slide-up-appear${e}-slide-up-appear-active${n}-dropdown-placement-topLeft
  171. `]:{animationName:gre},[`&${e}-slide-up-leave${e}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:vre},[`&${e}-slide-up-leave${e}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:mre},"&-hidden":{display:"none"},"&-empty":{color:t.colorTextDisabled},[`${r}-empty`]:k(k({},f7(t)),{color:t.colorTextDisabled}),[`${r}`]:k(k({},f7(t)),{cursor:"pointer",transition:`background ${t.motionDurationSlow} ease`,borderRadius:t.borderRadiusSM,"&-group":{color:t.colorTextDescription,fontSize:t.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":k({flex:"auto"},Wv),"&-state":{flex:"none"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:t.controlItemBgHover},[`&-selected:not(${r}-option-disabled)`]:{color:t.colorText,fontWeight:t.fontWeightStrong,backgroundColor:t.controlItemBgActive,[`${r}-option-state`]:{color:t.colorPrimary}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:t.colorBgContainerDisabled},color:t.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:t.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},jv(t,"slide-up"),jv(t,"slide-down"),l7(t,"move-up"),l7(t,"move-down")]},ip=2;function yre(t){let{controlHeightSM:e,controlHeight:n,lineWidth:r}=t;const i=(n-e)/2-r,o=Math.ceil(i/2);return[i,o]}function pA(t,e){const{componentCls:n,iconCls:r}=t,i=`${n}-selection-overflow`,o=t.controlHeightSM,[a]=yre(t),s=e?`${n}-${e}`:"";return{[`${n}-multiple${s}`]:{fontSize:t.fontSize,[i]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${n}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${a-ip}px ${ip*2}px`,borderRadius:t.borderRadius,[`${n}-show-search&`]:{cursor:"text"},[`${n}-disabled&`]:{background:t.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${ip}px 0`,lineHeight:`${o}px`,content:'"\\a0"'}},[`
  172. &${n}-show-arrow ${n}-selector,
  173. &${n}-allow-clear ${n}-selector
  174. `]:{paddingInlineEnd:t.fontSizeIcon+t.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:o,marginTop:ip,marginBottom:ip,lineHeight:`${o-t.lineWidth*2}px`,background:t.colorFillSecondary,border:`${t.lineWidth}px solid ${t.colorSplit}`,borderRadius:t.borderRadiusSM,cursor:"default",transition:`font-size ${t.motionDurationSlow}, line-height ${t.motionDurationSlow}, height ${t.motionDurationSlow}`,userSelect:"none",marginInlineEnd:ip*2,paddingInlineStart:t.paddingXS,paddingInlineEnd:t.paddingXS/2,[`${n}-disabled&`]:{color:t.colorTextDisabled,borderColor:t.colorBorder,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:t.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":k(k({},xg()),{display:"inline-block",color:t.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${r}`]:{verticalAlign:"-0.2em"},"&:hover":{color:t.colorIconHover}})},[`${i}-item + ${i}-item`]:{[`${n}-selection-search`]:{marginInlineStart:0}},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:t.inputPaddingHorizontalBase-a,"\n &-input,\n &-mirror\n ":{height:o,fontFamily:t.fontFamily,lineHeight:`${o}px`,transition:`all ${t.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${n}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:t.inputPaddingHorizontalBase,insetInlineEnd:t.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${t.motionDurationSlow}`}}}}function q8e(t){const{componentCls:e}=t,n=qt(t,{controlHeight:t.controlHeightSM,controlHeightSM:t.controlHeightXS,borderRadius:t.borderRadiusSM,borderRadiusSM:t.borderRadiusXS}),[,r]=yre(t);return[pA(t),pA(n,"sm"),{[`${e}-multiple${e}-sm`]:{[`${e}-selection-placeholder`]:{insetInlineStart:t.controlPaddingHorizontalSM-t.lineWidth,insetInlineEnd:"auto"},[`${e}-selection-search`]:{marginInlineStart:r}}},pA(qt(t,{fontSize:t.fontSizeLG,controlHeight:t.controlHeightLG,controlHeightSM:t.controlHeight,borderRadius:t.borderRadiusLG,borderRadiusSM:t.borderRadius}),"lg")]}function vA(t,e){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:i}=t,o=t.controlHeight-t.lineWidth*2,a=Math.ceil(t.fontSize*1.25),s=e?`${n}-${e}`:"";return{[`${n}-single${s}`]:{fontSize:t.fontSize,[`${n}-selector`]:k(k({},On(t)),{display:"flex",borderRadius:i,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%"}},[`
  175. ${n}-selection-item,
  176. ${n}-selection-placeholder
  177. `]:{padding:0,lineHeight:`${o}px`,transition:`all ${t.motionDurationSlow}`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${o}px`}},[`${n}-selection-item`]:{position:"relative",userSelect:"none"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:after`,`${n}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
  178. &${n}-show-arrow ${n}-selection-item,
  179. &${n}-show-arrow ${n}-selection-placeholder
  180. `]:{paddingInlineEnd:a},[`&${n}-open ${n}-selection-item`]:{color:t.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:t.controlHeight,padding:`0 ${r}px`,[`${n}-selection-search-input`]:{height:o},"&:after":{lineHeight:`${o}px`}}},[`&${n}-customize-input`]:{[`${n}-selector`]:{"&:after":{display:"none"},[`${n}-selection-search`]:{position:"static",width:"100%"},[`${n}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${r}px`,"&:after":{display:"none"}}}}}}}function K8e(t){const{componentCls:e}=t,n=t.controlPaddingHorizontalSM-t.lineWidth;return[vA(t),vA(qt(t,{controlHeight:t.controlHeightSM,borderRadius:t.borderRadiusSM}),"sm"),{[`${e}-single${e}-sm`]:{[`&:not(${e}-customize-input)`]:{[`${e}-selection-search`]:{insetInlineStart:n,insetInlineEnd:n},[`${e}-selector`]:{padding:`0 ${n}px`},[`&${e}-show-arrow ${e}-selection-search`]:{insetInlineEnd:n+t.fontSize*1.5},[`
  181. &${e}-show-arrow ${e}-selection-item,
  182. &${e}-show-arrow ${e}-selection-placeholder
  183. `]:{paddingInlineEnd:t.fontSize*1.5}}}},vA(qt(t,{controlHeight:t.controlHeightLG,fontSize:t.fontSizeLG,borderRadius:t.borderRadiusLG}),"lg")]}function J8e(t,e,n){const{focusElCls:r,focus:i,borderElCls:o}=n,a=o?"> *":"",s=["hover",i?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${a}`).join(",");return{[`&-item:not(${e}-last-item)`]:{marginInlineEnd:-t.lineWidth},"&-item":k(k({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function e5e(t,e,n){const{borderElCls:r}=n,i=r?`> ${r}`:"";return{[`&-item:not(${e}-first-item):not(${e}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${e}-last-item)${e}-first-item`]:{[`& ${i}, &${t}-sm ${i}, &${t}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${e}-first-item)${e}-last-item`]:{[`& ${i}, &${t}-sm ${i}, &${t}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function WT(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=t,r=`${n}-compact`;return{[r]:k(k({},J8e(t,r,e)),e5e(n,r,e))}}const t5e=t=>{const{componentCls:e}=t;return{position:"relative",backgroundColor:t.colorBgContainer,border:`${t.lineWidth}px ${t.lineType} ${t.colorBorder}`,transition:`all ${t.motionDurationMid} ${t.motionEaseInOut}`,input:{cursor:"pointer"},[`${e}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${e}-disabled&`]:{color:t.colorTextDisabled,background:t.colorBgContainerDisabled,cursor:"not-allowed",[`${e}-multiple&`]:{background:t.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},gA=function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:r,borderHoverColor:i,outlineColor:o,antCls:a}=e,s=n?{[`${r}-selector`]:{borderColor:i}}:{};return{[t]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${a}-pagination-size-changer)`]:k(k({},s),{[`${r}-focused& ${r}-selector`]:{borderColor:i,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${o}`,borderInlineEndWidth:`${e.controlLineWidth}px !important`,outline:0},[`&:hover ${r}-selector`]:{borderColor:i,borderInlineEndWidth:`${e.controlLineWidth}px !important`}})}}},n5e=t=>{const{componentCls:e}=t;return{[`${e}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},r5e=t=>{const{componentCls:e,inputPaddingHorizontalBase:n,iconCls:r}=t;return{[e]:k(k({},On(t)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${e}-customize-input) ${e}-selector`]:k(k({},t5e(t)),n5e(t)),[`${e}-selection-item`]:k({flex:1,fontWeight:"normal"},Wv),[`${e}-selection-placeholder`]:k(k({},Wv),{flex:1,color:t.colorTextPlaceholder,pointerEvents:"none"}),[`${e}-arrow`]:k(k({},xg()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,height:t.fontSizeIcon,marginTop:-t.fontSizeIcon/2,color:t.colorTextQuaternary,fontSize:t.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[r]:{verticalAlign:"top",transition:`transform ${t.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${e}-suffix)`]:{pointerEvents:"auto"}},[`${e}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${e}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:n,zIndex:1,display:"inline-block",width:t.fontSizeIcon,height:t.fontSizeIcon,marginTop:-t.fontSizeIcon/2,color:t.colorTextQuaternary,fontSize:t.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:t.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${t.motionDurationMid} ease, opacity ${t.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:t.colorTextTertiary}},"&:hover":{[`${e}-clear`]:{opacity:1}}}),[`${e}-has-feedback`]:{[`${e}-clear`]:{insetInlineEnd:n+t.fontSize+t.paddingXXS}}}},i5e=t=>{const{componentCls:e}=t;return[{[e]:{[`&-borderless ${e}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${e}-in-form-item`]:{width:"100%"}}},r5e(t),K8e(t),q8e(t),Y8e(t),{[`${e}-rtl`]:{direction:"rtl"}},gA(e,qt(t,{borderHoverColor:t.colorPrimaryHover,outlineColor:t.controlOutline})),gA(`${e}-status-error`,qt(t,{borderHoverColor:t.colorErrorHover,outlineColor:t.colorErrorOutline}),!0),gA(`${e}-status-warning`,qt(t,{borderHoverColor:t.colorWarningHover,outlineColor:t.colorWarningOutline}),!0),WT(t,{borderElCls:`${e}-selector`,focusElCls:`${e}-focused`})]},o5e=Wn("Select",(t,e)=>{let{rootPrefixCls:n}=e;const r=qt(t,{rootPrefixCls:n,inputPaddingHorizontalBase:t.paddingSM-1});return[i5e(r)]},t=>({zIndexPopup:t.zIndexPopupBase+50})),a5e=()=>k(k({},Mr(ire(),["inputIcon","mode","getInputElement","getRawInputElement","backfill"])),{value:kn([Array,Object,String,Number]),defaultValue:kn([Array,Object,String,Number]),notFoundContent:ne.any,suffixIcon:ne.any,itemIcon:ne.any,size:In(),mode:In(),bordered:ft(!0),transitionName:String,choiceTransitionName:In(""),popupClassName:String,dropdownClassName:String,placement:In(),status:In(),"onUpdate:value":ct()}),d7="SECRET_COMBOBOX_MODE_DO_NOT_USE",Zi=h.defineComponent({compatConfig:{MODE:3},name:"ASelect",Option:p4,OptGroup:v4,inheritAttrs:!1,props:Ir(a5e(),{listHeight:256,listItemHeight:24}),SECRET_COMBOBOX_MODE_DO_NOT_USE:d7,slots:Object,setup(t,e){let{attrs:n,emit:r,slots:i,expose:o}=e;const a=h.ref(),s=dl(),l=ss.useInject(),u=h.computed(()=>t_(l.status,t.status)),c=()=>{var Z;(Z=a.value)===null||Z===void 0||Z.focus()},f=()=>{var Z;(Z=a.value)===null||Z===void 0||Z.blur()},d=Z=>{var J;(J=a.value)===null||J===void 0||J.scrollTo(Z)},p=h.computed(()=>{const{mode:Z}=t;if(Z!=="combobox")return Z===d7?"combobox":Z});process.env.NODE_ENV!=="production"&&Io(!t.dropdownClassName,"Select","`dropdownClassName` is deprecated. Please use `popupClassName` instead.");const{prefixCls:v,direction:g,configProvider:m,renderEmpty:y,size:b,getPrefixCls:O,getPopupContainer:w,disabled:x,select:S}=Gt("select",t),{compactSize:T,compactItemClassnames:$}=VT(v,g),A=h.computed(()=>T.value||b.value),P=il(),M=h.computed(()=>{var Z;return(Z=x.value)!==null&&Z!==void 0?Z:P.value}),[I,R]=o5e(v),L=h.computed(()=>O()),D=h.computed(()=>t.placement!==void 0?t.placement:g.value==="rtl"?"bottomRight":"bottomLeft"),B=h.computed(()=>al(L.value,KNe(D.value),t.transitionName)),F=h.computed(()=>Pe({[`${v.value}-lg`]:A.value==="large",[`${v.value}-sm`]:A.value==="small",[`${v.value}-rtl`]:g.value==="rtl",[`${v.value}-borderless`]:!t.bordered,[`${v.value}-in-form-item`]:l.isFormItemInput},Zl(v.value,u.value,l.hasFeedback),$.value,R.value)),z=function(){for(var Z=arguments.length,J=new Array(Z),se=0;se<Z;se++)J[se]=arguments[se];r("update:value",J[0]),r("change",...J),s.onFieldChange()},W=Z=>{r("blur",Z),s.onFieldBlur()};o({blur:f,focus:c,scrollTo:d});const j=h.computed(()=>p.value==="multiple"||p.value==="tags"),H=h.computed(()=>t.showArrow!==void 0?t.showArrow:t.loading||!(j.value||p.value==="combobox"));return()=>{var Z,J,se,oe;const{notFoundContent:de,listHeight:re=256,listItemHeight:ue=24,popupClassName:ee,dropdownClassName:X,virtual:Y,dropdownMatchSelectWidth:le,id:ge=s.id.value,placeholder:me=(Z=i.placeholder)===null||Z===void 0?void 0:Z.call(i),showArrow:Ne}=t,{hasFeedback:Le,feedbackIcon:Ee}=l;let $e;de!==void 0?$e=de:i.notFoundContent?$e=i.notFoundContent():p.value==="combobox"?$e=null:$e=(y==null?void 0:y("Select"))||h.createVNode(YL,{componentName:"Select"},null);const{suffixIcon:_e,itemIcon:De,removeIcon:ze,clearIcon:lt}=p8e(k(k({},t),{multiple:j.value,prefixCls:v.value,hasFeedback:Le,feedbackIcon:Ee,showArrow:H.value}),i),gt=Mr(t,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered","status"]),Bt=Pe(ee||X,{[`${v.value}-dropdown-${g.value}`]:g.value==="rtl"},R.value);return I(h.createVNode(_4e,K(K(K({ref:a,virtual:Y,dropdownMatchSelectWidth:le},gt),n),{},{showSearch:(J=t.showSearch)!==null&&J!==void 0?J:(se=S==null?void 0:S.value)===null||se===void 0?void 0:se.showSearch,placeholder:me,listHeight:re,listItemHeight:ue,mode:p.value,prefixCls:v.value,direction:g.value,inputIcon:_e,menuItemSelectedIcon:De,removeIcon:ze,clearIcon:lt,notFoundContent:$e,class:[F.value,n.class],getPopupContainer:w==null?void 0:w.value,dropdownClassName:Bt,onChange:z,onBlur:W,id:ge,dropdownRender:gt.dropdownRender||i.dropdownRender,transitionName:B.value,children:(oe=i.default)===null||oe===void 0?void 0:oe.call(i),tagRender:t.tagRender||i.tagRender,optionLabelRender:i.optionLabel,maxTagPlaceholder:t.maxTagPlaceholder||i.maxTagPlaceholder,showArrow:Le||Ne,disabled:M.value}),{option:i.option}))}}});Zi.install=function(t){return t.component(Zi.name,Zi),t.component(Zi.Option.displayName,Zi.Option),t.component(Zi.OptGroup.displayName,Zi.OptGroup),t};const jp=Zi.Option;Zi.OptGroup;var s5e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};function h7(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){l5e(t,i,n[i])})}return t}function l5e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var w4=function(e,n){var r=h7({},e,n.attrs);return h.createVNode(yt,h7({},r,{icon:s5e}),null)};w4.displayName="CheckCircleOutlined";w4.inheritAttrs=!1;var u5e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"};function p7(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){c5e(t,i,n[i])})}return t}function c5e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var x4=function(e,n){var r=p7({},e,n.attrs);return h.createVNode(yt,p7({},r,{icon:u5e}),null)};x4.displayName="ExclamationCircleOutlined";x4.inheritAttrs=!1;var f5e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};function v7(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){d5e(t,i,n[i])})}return t}function d5e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var QT=function(e,n){var r=v7({},e,n.attrs);return h.createVNode(yt,v7({},r,{icon:f5e}),null)};QT.displayName="InfoCircleOutlined";QT.inheritAttrs=!1;var h5e={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"};function g7(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){p5e(t,i,n[i])})}return t}function p5e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var S4=function(e,n){var r=g7({},e,n.attrs);return h.createVNode(yt,g7({},r,{icon:h5e}),null)};S4.displayName="CloseCircleOutlined";S4.inheritAttrs=!1;var v5e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"};function m7(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){g5e(t,i,n[i])})}return t}function g5e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Uc=function(e,n){var r=m7({},e,n.attrs);return h.createVNode(yt,m7({},r,{icon:v5e}),null)};Uc.displayName="CheckCircleFilled";Uc.inheritAttrs=!1;var m5e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"};function y7(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){y5e(t,i,n[i])})}return t}function y5e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Zc=function(e,n){var r=y7({},e,n.attrs);return h.createVNode(yt,y7({},r,{icon:m5e}),null)};Zc.displayName="ExclamationCircleFilled";Zc.inheritAttrs=!1;var b5e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};function b7(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){_5e(t,i,n[i])})}return t}function _5e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Th=function(e,n){var r=b7({},e,n.attrs);return h.createVNode(yt,b7({},r,{icon:b5e}),null)};Th.displayName="InfoCircleFilled";Th.inheritAttrs=!1;const iO=["xxxl","xxl","xl","lg","md","sm","xs"],O5e=t=>({xs:`(max-width: ${t.screenXSMax}px)`,sm:`(min-width: ${t.screenSM}px)`,md:`(min-width: ${t.screenMD}px)`,lg:`(min-width: ${t.screenLG}px)`,xl:`(min-width: ${t.screenXL}px)`,xxl:`(min-width: ${t.screenXXL}px)`,xxxl:`{min-width: ${t.screenXXXL}px}`});function w5e(){const[,t]=Sg();return h.computed(()=>{const e=O5e(t.value),n=new Map;let r=-1,i={};return{matchHandlers:{},dispatch(o){return i=o,n.forEach(a=>a(i)),n.size>=1},subscribe(o){return n.size||this.register(),r+=1,n.set(r,o),o(i),r},unsubscribe(o){n.delete(o),n.size||this.unregister()},unregister(){Object.keys(e).forEach(o=>{const a=e[o],s=this.matchHandlers[a];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),n.clear()},register(){Object.keys(e).forEach(o=>{const a=e[o],s=u=>{let{matches:c}=u;this.dispatch(k(k({},i),{[o]:c}))},l=window.matchMedia(a);l.addListener(s),this.matchHandlers[a]={mql:l,listener:s},s(l)})},responsiveMap:e}})}const Zo={adjustX:1,adjustY:1},Xo=[0,0],bre={left:{points:["cr","cl"],overflow:Zo,offset:[-4,0],targetOffset:Xo},right:{points:["cl","cr"],overflow:Zo,offset:[4,0],targetOffset:Xo},top:{points:["bc","tc"],overflow:Zo,offset:[0,-4],targetOffset:Xo},bottom:{points:["tc","bc"],overflow:Zo,offset:[0,4],targetOffset:Xo},topLeft:{points:["bl","tl"],overflow:Zo,offset:[0,-4],targetOffset:Xo},leftTop:{points:["tr","tl"],overflow:Zo,offset:[-4,0],targetOffset:Xo},topRight:{points:["br","tr"],overflow:Zo,offset:[0,-4],targetOffset:Xo},rightTop:{points:["tl","tr"],overflow:Zo,offset:[4,0],targetOffset:Xo},bottomRight:{points:["tr","br"],overflow:Zo,offset:[0,4],targetOffset:Xo},rightBottom:{points:["bl","br"],overflow:Zo,offset:[4,0],targetOffset:Xo},bottomLeft:{points:["tl","bl"],overflow:Zo,offset:[0,4],targetOffset:Xo},leftBottom:{points:["br","bl"],overflow:Zo,offset:[-4,0],targetOffset:Xo}},x5e={prefixCls:String,id:String,overlayInnerStyle:ne.any},S5e=h.defineComponent({compatConfig:{MODE:3},name:"TooltipContent",props:x5e,setup(t,e){let{slots:n}=e;return()=>{var r;return h.createVNode("div",{class:`${t.prefixCls}-inner`,id:t.id,role:"tooltip",style:t.overlayInnerStyle},[(r=n.overlay)===null||r===void 0?void 0:r.call(n)])}}});var C5e=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function _7(){}const T5e=h.defineComponent({compatConfig:{MODE:3},name:"Tooltip",inheritAttrs:!1,props:{trigger:ne.any.def(["hover"]),defaultVisible:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:ne.string.def("right"),transitionName:String,animation:ne.any,afterVisibleChange:ne.func.def(()=>{}),overlayStyle:{type:Object,default:void 0},overlayClassName:String,prefixCls:ne.string.def("rc-tooltip"),mouseEnterDelay:ne.number.def(.1),mouseLeaveDelay:ne.number.def(.1),getPopupContainer:Function,destroyTooltipOnHide:{type:Boolean,default:!1},align:ne.object.def(()=>({})),arrowContent:ne.any.def(null),tipId:String,builtinPlacements:ne.object,overlayInnerStyle:{type:Object,default:void 0},popupVisible:{type:Boolean,default:void 0},onVisibleChange:Function,onPopupAlign:Function,arrow:{type:Boolean,default:!0}},setup(t,e){let{slots:n,attrs:r,expose:i}=e;const o=h.shallowRef(),a=()=>{const{prefixCls:c,tipId:f,overlayInnerStyle:d}=t;return[t.arrow?h.createVNode("div",{class:`${c}-arrow`,key:"arrow"},[OT(n,t,"arrowContent")]):null,h.createVNode(S5e,{key:"content",prefixCls:c,id:f,overlayInnerStyle:d},{overlay:n.overlay})]};i({getPopupDomNode:()=>o.value.getPopupDomNode(),triggerDOM:o,forcePopupAlign:()=>{var c;return(c=o.value)===null||c===void 0?void 0:c.forcePopupAlign()}});const l=h.shallowRef(!1),u=h.shallowRef(!1);return h.watchEffect(()=>{const{destroyTooltipOnHide:c}=t;if(typeof c=="boolean")l.value=c;else if(c&&typeof c=="object"){const{keepParent:f}=c;l.value=f===!0,u.value=f===!1}}),()=>{const{overlayClassName:c,trigger:f,mouseEnterDelay:d,mouseLeaveDelay:p,overlayStyle:v,prefixCls:g,afterVisibleChange:m,transitionName:y,animation:b,placement:O,align:w,destroyTooltipOnHide:x,defaultVisible:S}=t,T=C5e(t,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible"]),$=k({},T);t.visible!==void 0&&($.popupVisible=t.visible);const A=k(k(k({popupClassName:c,prefixCls:g,action:f,builtinPlacements:bre,popupPlacement:O,popupAlign:w,afterPopupVisibleChange:m,popupTransitionName:y,popupAnimation:b,defaultPopupVisible:S,destroyPopupOnHide:l.value,autoDestroy:u.value,mouseLeaveDelay:p,popupStyle:v,mouseEnterDelay:d},$),r),{onPopupVisibleChange:t.onVisibleChange||_7,onPopupAlign:t.onPopupAlign||_7,ref:o,arrow:!!t.arrow,popup:a()});return h.createVNode(DT,A,{default:n.default})}}}),P5e=()=>({trigger:[String,Array],open:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:String,color:String,transitionName:String,overlayStyle:zt(),overlayInnerStyle:zt(),overlayClassName:String,openClassName:String,prefixCls:String,mouseEnterDelay:Number,mouseLeaveDelay:Number,getPopupContainer:Function,arrowPointAtCenter:{type:Boolean,default:void 0},arrow:{type:[Boolean,Object],default:!0},autoAdjustOverflow:{type:[Boolean,Object],default:void 0},destroyTooltipOnHide:{type:Boolean,default:void 0},align:zt(),builtinPlacements:zt(),children:Array,onVisibleChange:Function,"onUpdate:visible":Function,onOpenChange:Function,"onUpdate:open":Function}),$5e={adjustX:1,adjustY:1},O7={adjustX:0,adjustY:0},A5e=[0,0];function w7(t){return typeof t=="boolean"?t?$5e:O7:k(k({},O7),t)}function E5e(t){const{arrowWidth:e=4,horizontalArrowShift:n=16,verticalArrowShift:r=8,autoAdjustOverflow:i,arrowPointAtCenter:o}=t,a={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(n+e),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(r+e)]},topRight:{points:["br","tc"],offset:[n+e,-4]},rightTop:{points:["tl","cr"],offset:[4,-(r+e)]},bottomRight:{points:["tr","bc"],offset:[n+e,4]},rightBottom:{points:["bl","cr"],offset:[4,r+e]},bottomLeft:{points:["tl","bc"],offset:[-(n+e),4]},leftBottom:{points:["br","cl"],offset:[-4,r+e]}};return Object.keys(a).forEach(s=>{a[s]=o?k(k({},a[s]),{overflow:w7(i),targetOffset:A5e}):k(k({},bre[s]),{overflow:w7(i)}),a[s].ignoreShake=!0}),a}function _re(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];for(let e=0,n=t.length;e<n;e++)if(t[e]!==void 0)return t[e]}const M5e=rS.map(t=>`${t}-inverse`);function I5e(t){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[...M5e,...rS].includes(t):rS.includes(t)}function D5e(t,e){const n=I5e(e),r=Pe({[`${t}-${e}`]:e&&n}),i={},o={};return e&&!n&&(i.background=e,o["--antd-arrow-background-color"]=e),{className:r,overlayStyle:i,arrowStyle:o}}function oO(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return t.map(n=>`${e}${n}`).join(",")}const Ore=8;function R5e(t){const e=Ore,{sizePopupArrow:n,contentRadius:r,borderRadiusOuter:i,limitVerticalRadius:o}=t,a=n/2-Math.ceil(i*(Math.sqrt(2)-1)),s=(r>12?r+2:12)-a,l=o?e-a:s;return{dropdownArrowOffset:s,dropdownArrowOffsetVertical:l}}function k5e(t,e){const{componentCls:n,sizePopupArrow:r,marginXXS:i,borderRadiusXS:o,borderRadiusOuter:a,boxShadowPopoverArrow:s}=t,{colorBg:l,showArrowCls:u,contentRadius:c=t.borderRadiusLG,limitVerticalRadius:f}=e,{dropdownArrowOffsetVertical:d,dropdownArrowOffset:p}=R5e({sizePopupArrow:r,contentRadius:c,borderRadiusOuter:a,limitVerticalRadius:f}),v=r/2+i;return{[n]:{[`${n}-arrow`]:[k(k({position:"absolute",zIndex:1,display:"block"},Ske(r,o,a,l,s)),{"&:before":{background:l}})],[[`&-placement-top ${n}-arrow`,`&-placement-topLeft ${n}-arrow`,`&-placement-topRight ${n}-arrow`].join(",")]:{bottom:0,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:p}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:p}},[[`&-placement-bottom ${n}-arrow`,`&-placement-bottomLeft ${n}-arrow`,`&-placement-bottomRight ${n}-arrow`].join(",")]:{top:0,transform:"translateY(-100%)"},[`&-placement-bottom ${n}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${n}-arrow`]:{left:{_skip_check_:!0,value:p}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:p}},[[`&-placement-left ${n}-arrow`,`&-placement-leftTop ${n}-arrow`,`&-placement-leftBottom ${n}-arrow`].join(",")]:{right:{_skip_check_:!0,value:0},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${n}-arrow`]:{top:d},[`&-placement-leftBottom ${n}-arrow`]:{bottom:d},[[`&-placement-right ${n}-arrow`,`&-placement-rightTop ${n}-arrow`,`&-placement-rightBottom ${n}-arrow`].join(",")]:{left:{_skip_check_:!0,value:0},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${n}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${n}-arrow`]:{top:d},[`&-placement-rightBottom ${n}-arrow`]:{bottom:d},[oO(["&-placement-topLeft","&-placement-top","&-placement-topRight"].map(g=>g+=":not(&-arrow-hidden)"),u)]:{paddingBottom:v},[oO(["&-placement-bottomLeft","&-placement-bottom","&-placement-bottomRight"].map(g=>g+=":not(&-arrow-hidden)"),u)]:{paddingTop:v},[oO(["&-placement-leftTop","&-placement-left","&-placement-leftBottom"].map(g=>g+=":not(&-arrow-hidden)"),u)]:{paddingRight:{_skip_check_:!0,value:v}},[oO(["&-placement-rightTop","&-placement-right","&-placement-rightBottom"].map(g=>g+=":not(&-arrow-hidden)"),u)]:{paddingLeft:{_skip_check_:!0,value:v}}}}}const N5e=t=>{const{componentCls:e,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:i,tooltipBorderRadius:o,zIndexPopup:a,controlHeight:s,boxShadowSecondary:l,paddingSM:u,paddingXS:c,tooltipRadiusOuter:f}=t;return[{[e]:k(k(k(k({},On(t)),{position:"absolute",zIndex:a,display:"block","&":[{width:"max-content"},{width:"intrinsic"}],maxWidth:n,visibility:"visible","&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${e}-inner`]:{minWidth:s,minHeight:s,padding:`${u/2}px ${c}px`,color:r,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:o,boxShadow:l},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${e}-inner`]:{borderRadius:Math.min(o,Ore)}},[`${e}-content`]:{position:"relative"}}),Cke(t,(d,p)=>{let{darkColor:v}=p;return{[`&${e}-${d}`]:{[`${e}-inner`]:{backgroundColor:v},[`${e}-arrow`]:{"--antd-arrow-background-color":v}}}})),{"&-rtl":{direction:"rtl"}})},k5e(qt(t,{borderRadiusOuter:f}),{colorBg:"var(--antd-arrow-background-color)",showArrowCls:"",contentRadius:o,limitVerticalRadius:!0}),{[`${e}-pure`]:{position:"relative",maxWidth:"none"}}]},L5e=(t,e)=>Wn("Tooltip",r=>{if((e==null?void 0:e.value)===!1)return[];const{borderRadius:i,colorTextLightSolid:o,colorBgDefault:a,borderRadiusOuter:s}=r,l=qt(r,{tooltipMaxWidth:250,tooltipColor:o,tooltipBorderRadius:i,tooltipBg:a,tooltipRadiusOuter:s>4?4:s});return[N5e(l),FT(r,"zoom-big-fast")]},r=>{let{zIndexPopupBase:i,colorBgSpotlight:o}=r;return{zIndexPopup:i+70,colorBgDefault:o}})(t),B5e=(t,e)=>{const n={},r=k({},t);return e.forEach(i=>{t&&i in t&&(n[i]=t[i],delete r[i])}),{picked:n,omitted:r}},wre=()=>k(k({},P5e()),{title:ne.any}),V5e=h.defineComponent({compatConfig:{MODE:3},name:"ATooltip",inheritAttrs:!1,props:Ir(wre(),{trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),slots:Object,setup(t,e){let{slots:n,emit:r,attrs:i,expose:o}=e;process.env.NODE_ENV!=="production"&&[["visible","open"],["onVisibleChange","onOpenChange"]].forEach(P=>{let[M,I]=P;$i(t[M]===void 0,"Tooltip",`\`${M}\` is deprecated, please use \`${I}\` instead.`)});const{prefixCls:a,getPopupContainer:s,direction:l,rootPrefixCls:u}=Gt("tooltip",t),c=h.computed(()=>{var P;return(P=t.open)!==null&&P!==void 0?P:t.visible}),f=h.ref(_re([t.open,t.visible])),d=h.ref();let p;h.watch(c,P=>{Rt.cancel(p),p=Rt(()=>{f.value=!!P})});const v=()=>{var P;const M=(P=t.title)!==null&&P!==void 0?P:n.title;return!M&&M!==0},g=P=>{const M=v();c.value===void 0&&(f.value=M?!1:P),M||(r("update:visible",P),r("visibleChange",P),r("update:open",P),r("openChange",P))};o({getPopupDomNode:()=>d.value.getPopupDomNode(),open:f,forcePopupAlign:()=>{var P;return(P=d.value)===null||P===void 0?void 0:P.forcePopupAlign()}});const y=h.computed(()=>{var P;const{builtinPlacements:M,autoAdjustOverflow:I,arrow:R,arrowPointAtCenter:L}=t;let D=L;return typeof R=="object"&&(D=(P=R.pointAtCenter)!==null&&P!==void 0?P:L),M||E5e({arrowPointAtCenter:D,autoAdjustOverflow:I})}),b=P=>P||P==="",O=P=>{const M=P.type;if(typeof M=="object"&&P.props&&((M.__ANT_BUTTON===!0||M==="button")&&b(P.props.disabled)||M.__ANT_SWITCH===!0&&(b(P.props.disabled)||b(P.props.loading))||M.__ANT_RADIO===!0&&b(P.props.disabled))){const{picked:I,omitted:R}=B5e(KDe(P),["position","left","right","top","bottom","float","display","zIndex"]),L=k(k({display:"inline-block"},I),{cursor:"not-allowed",lineHeight:1,width:P.props&&P.props.block?"100%":void 0}),D=k(k({},R),{pointerEvents:"none"}),B=Xn(P,{style:D},!0);return h.createVNode("span",{style:L,class:`${a.value}-disabled-compatible-wrapper`},[B])}return P},w=()=>{var P,M;return(P=t.title)!==null&&P!==void 0?P:(M=n.title)===null||M===void 0?void 0:M.call(n)},x=(P,M)=>{const I=y.value,R=Object.keys(I).find(L=>{var D,B;return I[L].points[0]===((D=M.points)===null||D===void 0?void 0:D[0])&&I[L].points[1]===((B=M.points)===null||B===void 0?void 0:B[1])});if(R){const L=P.getBoundingClientRect(),D={top:"50%",left:"50%"};R.indexOf("top")>=0||R.indexOf("Bottom")>=0?D.top=`${L.height-M.offset[1]}px`:(R.indexOf("Top")>=0||R.indexOf("bottom")>=0)&&(D.top=`${-M.offset[1]}px`),R.indexOf("left")>=0||R.indexOf("Right")>=0?D.left=`${L.width-M.offset[0]}px`:(R.indexOf("right")>=0||R.indexOf("Left")>=0)&&(D.left=`${-M.offset[0]}px`),P.style.transformOrigin=`${D.left} ${D.top}`}},S=h.computed(()=>D5e(a.value,t.color)),T=h.computed(()=>i["data-popover-inject"]),[$,A]=L5e(a,h.computed(()=>!T.value));return()=>{var P,M;const{openClassName:I,overlayClassName:R,overlayStyle:L,overlayInnerStyle:D}=t;let B=(M=fl((P=n.default)===null||P===void 0?void 0:P.call(n)))!==null&&M!==void 0?M:null;B=B.length===1?B[0]:B;let F=f.value;if(c.value===void 0&&v()&&(F=!1),!B)return null;const z=O(No(B)&&!JDe(B)?B:h.createVNode("span",null,[B])),W=Pe({[I||`${a.value}-open`]:!0,[z.props&&z.props.class]:z.props&&z.props.class}),j=Pe(R,{[`${a.value}-rtl`]:l.value==="rtl"},S.value.className,A.value),H=k(k({},S.value.overlayStyle),D),Z=S.value.arrowStyle,J=k(k(k({},i),t),{prefixCls:a.value,arrow:!!t.arrow,getPopupContainer:s==null?void 0:s.value,builtinPlacements:y.value,visible:F,ref:d,overlayClassName:j,overlayStyle:k(k({},Z),L),overlayInnerStyle:H,onVisibleChange:g,onPopupAlign:x,transitionName:al(u.value,"zoom-big-fast",t.transitionName)});return $(h.createVNode(T5e,J,{default:()=>[f.value?Xn(z,{class:W}):z],arrowContent:()=>h.createVNode("span",{class:`${a.value}-arrow-content`},null),overlay:w}))}}}),HT=Og(V5e),op={adjustX:1,adjustY:1},ap=[0,0],z5e={topLeft:{points:["bl","tl"],overflow:op,offset:[0,-4],targetOffset:ap},topCenter:{points:["bc","tc"],overflow:op,offset:[0,-4],targetOffset:ap},topRight:{points:["br","tr"],overflow:op,offset:[0,-4],targetOffset:ap},bottomLeft:{points:["tl","bl"],overflow:op,offset:[0,4],targetOffset:ap},bottomCenter:{points:["tc","bc"],overflow:op,offset:[0,4],targetOffset:ap},bottomRight:{points:["tr","br"],overflow:op,offset:[0,4],targetOffset:ap}};var F5e=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const W5e=h.defineComponent({compatConfig:{MODE:3},props:{minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},arrow:{type:Boolean,default:!1},prefixCls:ne.string.def("rc-dropdown"),transitionName:String,overlayClassName:ne.string.def(""),openClassName:String,animation:ne.any,align:ne.object,overlayStyle:{type:Object,default:void 0},placement:ne.string.def("bottomLeft"),overlay:ne.any,trigger:ne.oneOfType([ne.string,ne.arrayOf(ne.string)]).def("hover"),alignPoint:{type:Boolean,default:void 0},showAction:ne.array,hideAction:ne.array,getPopupContainer:Function,visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},mouseEnterDelay:ne.number.def(.15),mouseLeaveDelay:ne.number.def(.1)},emits:["visibleChange","overlayClick"],setup(t,e){let{slots:n,emit:r,expose:i}=e;const o=h.ref(!!t.visible);h.watch(()=>t.visible,p=>{p!==void 0&&(o.value=p)});const a=h.ref();i({triggerRef:a});const s=p=>{t.visible===void 0&&(o.value=!1),r("overlayClick",p)},l=p=>{t.visible===void 0&&(o.value=p),r("visibleChange",p)},u=()=>{var p;const v=(p=n.overlay)===null||p===void 0?void 0:p.call(n),g={prefixCls:`${t.prefixCls}-menu`,onClick:s};return h.createVNode(h.Fragment,{key:Ate},[t.arrow&&h.createVNode("div",{class:`${t.prefixCls}-arrow`},null),Xn(v,g,!1)])},c=h.computed(()=>{const{minOverlayWidthMatchTrigger:p=!t.alignPoint}=t;return p}),f=()=>{var p;const v=(p=n.default)===null||p===void 0?void 0:p.call(n);return o.value&&v?Xn(v[0],{class:t.openClassName||`${t.prefixCls}-open`},!1):v},d=h.computed(()=>!t.hideAction&&t.trigger.indexOf("contextmenu")!==-1?["click"]:t.hideAction);return()=>{const{prefixCls:p,arrow:v,showAction:g,overlayStyle:m,trigger:y,placement:b,align:O,getPopupContainer:w,transitionName:x,animation:S,overlayClassName:T}=t,$=F5e(t,["prefixCls","arrow","showAction","overlayStyle","trigger","placement","align","getPopupContainer","transitionName","animation","overlayClassName"]);return h.createVNode(DT,K(K({},$),{},{prefixCls:p,ref:a,popupClassName:Pe(T,{[`${p}-show-arrow`]:v}),popupStyle:m,builtinPlacements:z5e,action:y,showAction:g,hideAction:d.value||[],popupPlacement:b,popupAlign:O,popupTransitionName:x,popupAnimation:S,popupVisible:o.value,stretch:c.value?"minWidth":"",onPopupVisibleChange:l,getPopupContainer:w}),{popup:u,default:f})}}}),Q5e=t=>{const{componentCls:e,colorPrimary:n}=t;return{[e]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${n})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${t.motionEaseOutCirc}`,`opacity 2s ${t.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0}}}}},H5e=Wn("Wave",t=>[Q5e(t)]);function G5e(t){const e=(t||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return e&&e[1]&&e[2]&&e[3]?!(e[1]===e[2]&&e[2]===e[3]):!0}function mA(t){return t&&t!=="#fff"&&t!=="#ffffff"&&t!=="rgb(255, 255, 255)"&&t!=="rgba(255, 255, 255, 1)"&&G5e(t)&&!/rgba\((?:\d*, ){3}0\)/.test(t)&&t!=="transparent"}function j5e(t){const{borderTopColor:e,borderColor:n,backgroundColor:r}=getComputedStyle(t);return mA(e)?e:mA(n)?n:mA(r)?r:null}function yA(t){return Number.isNaN(t)?0:t}const U5e=h.defineComponent({props:{target:zt(),className:String},setup(t){const e=h.shallowRef(null),[n,r]=En(null),[i,o]=En([]),[a,s]=En(0),[l,u]=En(0),[c,f]=En(0),[d,p]=En(0),[v,g]=En(!1);function m(){const{target:T}=t,$=getComputedStyle(T);r(j5e(T));const A=$.position==="static",{borderLeftWidth:P,borderTopWidth:M}=$;s(A?T.offsetLeft:yA(-parseFloat(P))),u(A?T.offsetTop:yA(-parseFloat(M))),f(T.offsetWidth),p(T.offsetHeight);const{borderTopLeftRadius:I,borderTopRightRadius:R,borderBottomLeftRadius:L,borderBottomRightRadius:D}=$;o([I,R,D,L].map(B=>yA(parseFloat(B))))}let y,b,O;const w=()=>{clearTimeout(O),Rt.cancel(b),y==null||y.disconnect()},x=()=>{var T;const $=(T=e.value)===null||T===void 0?void 0:T.parentElement;$&&(h.render(null,$),$.parentElement&&$.parentElement.removeChild($))};h.onMounted(()=>{w(),O=setTimeout(()=>{x()},5e3);const{target:T}=t;T&&(b=Rt(()=>{m(),g(!0)}),typeof ResizeObserver<"u"&&(y=new ResizeObserver(m),y.observe(T)))}),h.onBeforeUnmount(()=>{w()});const S=T=>{T.propertyName==="opacity"&&x()};return()=>{if(!v.value)return null;const T={left:`${a.value}px`,top:`${l.value}px`,width:`${c.value}px`,height:`${d.value}px`,borderRadius:i.value.map($=>`${$}px`).join(" ")};return n&&(T["--wave-color"]=n.value),h.createVNode(h.Transition,{appear:!0,name:"wave-motion",appearFromClass:"wave-motion-appear",appearActiveClass:"wave-motion-appear",appearToClass:"wave-motion-appear wave-motion-appear-active"},{default:()=>[h.createVNode("div",{ref:e,class:t.className,style:T,onTransitionend:S},null)]})}}});function Z5e(t,e){const n=document.createElement("div");n.style.position="absolute",n.style.left="0px",n.style.top="0px",t==null||t.insertBefore(n,t==null?void 0:t.firstChild),h.render(h.createVNode(U5e,{target:t,className:e},null),n)}function X5e(t,e,n){function r(){var i;const o=Fl(t);!((i=n==null?void 0:n.value)===null||i===void 0)&&i.disabled||!o||Z5e(o,e.value)}return r}const Y5e=h.defineComponent({compatConfig:{MODE:3},name:"Wave",props:{disabled:Boolean},setup(t,e){let{slots:n}=e;const r=h.getCurrentInstance(),{prefixCls:i,wave:o}=Gt("wave",t),[,a]=H5e(i),s=X5e(r,h.computed(()=>Pe(i.value,a.value)),o);let l;const u=()=>{Fl(r).removeEventListener("click",l,!0)};return h.onMounted(()=>{h.watch(()=>t.disabled,()=>{u(),h.nextTick(()=>{const c=Fl(r);c==null||c.removeEventListener("click",l,!0),!(!c||c.nodeType!==1||t.disabled)&&(l=f=>{f.target.tagName==="INPUT"||!Wne(f.target)||!c.getAttribute||c.getAttribute("disabled")||c.disabled||c.className.includes("disabled")||c.className.includes("-leave")||s()},c.addEventListener("click",l,!0))})},{immediate:!0,flush:"post"})}),h.onBeforeUnmount(()=>{u()}),()=>{var c;return(c=n.default)===null||c===void 0?void 0:c.call(n)[0]}}});function xre(t){return t==="danger"?{danger:!0}:{type:t}}const q5e=()=>({prefixCls:String,type:String,htmlType:{type:String,default:"button"},shape:{type:String},size:{type:String},loading:{type:[Boolean,Object],default:()=>!1},disabled:{type:Boolean,default:void 0},ghost:{type:Boolean,default:void 0},block:{type:Boolean,default:void 0},danger:{type:Boolean,default:void 0},icon:ne.any,href:String,target:String,title:String,onClick:eS(),onMousedown:eS()}),x7=t=>{t&&(t.style.width="0px",t.style.opacity="0",t.style.transform="scale(0)")},S7=t=>{h.nextTick(()=>{t&&(t.style.width=`${t.scrollWidth}px`,t.style.opacity="1",t.style.transform="scale(1)")})},C7=t=>{t&&t.style&&(t.style.width=null,t.style.opacity=null,t.style.transform=null)},K5e=h.defineComponent({compatConfig:{MODE:3},name:"LoadingIcon",props:{prefixCls:String,loading:[Boolean,Object],existIcon:Boolean},setup(t){return()=>{const{existIcon:e,prefixCls:n,loading:r}=t;if(e)return h.createVNode("span",{class:`${n}-loading-icon`},[h.createVNode(sl,null,null)]);const i=!!r;return h.createVNode(h.Transition,{name:`${n}-loading-icon-motion`,onBeforeEnter:x7,onEnter:S7,onAfterEnter:C7,onBeforeLeave:S7,onLeave:o=>{setTimeout(()=>{x7(o)})},onAfterLeave:C7},{default:()=>[i?h.createVNode("span",{class:`${n}-loading-icon`},[h.createVNode(sl,null,null)]):null]})}}}),T7=(t,e)=>({[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{"&:not(:disabled)":{borderInlineEndColor:e}}},"&:not(:first-child)":{[`&, & > ${t}`]:{"&:not(:disabled)":{borderInlineStartColor:e}}}}}),J5e=t=>{const{componentCls:e,fontSize:n,lineWidth:r,colorPrimaryHover:i,colorErrorHover:o}=t;return{[`${e}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-r,[`&, & > ${e}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[e]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${e}-icon-only`]:{fontSize:n}},T7(`${e}-primary`,i),T7(`${e}-danger`,o)]}};function e3e(t,e){return{[`&-item:not(${e}-last-item)`]:{marginBottom:-t.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function t3e(t,e){return{[`&-item:not(${e}-first-item):not(${e}-last-item)`]:{borderRadius:0},[`&-item${e}-first-item:not(${e}-last-item)`]:{[`&, &${t}-sm, &${t}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${e}-last-item:not(${e}-first-item)`]:{[`&, &${t}-sm, &${t}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function n3e(t){const e=`${t.componentCls}-compact-vertical`;return{[e]:k(k({},e3e(t,e)),t3e(t.componentCls,e))}}const r3e=t=>{const{componentCls:e,iconCls:n}=t;return{[e]:{outline:"none",position:"relative",display:"inline-block",fontWeight:400,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${t.lineWidth}px ${t.lineType} transparent`,cursor:"pointer",transition:`all ${t.motionDurationMid} ${t.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:t.lineHeight,color:t.colorText,"> span":{display:"inline-block"},[`> ${n} + span, > span + ${n}`]:{marginInlineStart:t.marginXS},"> a":{color:"currentColor"},"&:not(:disabled)":k({},AT(t)),[`&-icon-only${e}-compact-item`]:{flex:"none"},[`&-compact-item${e}-primary`]:{[`&:not([disabled]) + ${e}-compact-item${e}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-t.lineWidth,insetInlineStart:-t.lineWidth,display:"inline-block",width:t.lineWidth,height:`calc(100% + ${t.lineWidth*2}px)`,backgroundColor:t.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${e}-primary`]:{[`&:not([disabled]) + ${e}-compact-vertical-item${e}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-t.lineWidth,insetInlineStart:-t.lineWidth,display:"inline-block",width:`calc(100% + ${t.lineWidth*2}px)`,height:t.lineWidth,backgroundColor:t.colorPrimaryHover,content:'""'}}}}}}},tu=(t,e)=>({"&:not(:disabled)":{"&:hover":t,"&:active":e}}),i3e=t=>({minWidth:t.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),o3e=t=>({borderRadius:t.controlHeight,paddingInlineStart:t.controlHeight/2,paddingInlineEnd:t.controlHeight/2}),BD=t=>({cursor:"not-allowed",borderColor:t.colorBorder,color:t.colorTextDisabled,backgroundColor:t.colorBgContainerDisabled,boxShadow:"none"}),fS=(t,e,n,r,i,o,a)=>({[`&${t}-background-ghost`]:k(k({color:e||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},tu(k({backgroundColor:"transparent"},o),k({backgroundColor:"transparent"},a))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:i||void 0}})}),C4=t=>({"&:disabled":k({},BD(t))}),Sre=t=>k({},C4(t)),dS=t=>({"&:disabled":{cursor:"not-allowed",color:t.colorTextDisabled}}),Cre=t=>k(k(k(k(k({},Sre(t)),{backgroundColor:t.colorBgContainer,borderColor:t.colorBorder,boxShadow:`0 ${t.controlOutlineWidth}px 0 ${t.controlTmpOutline}`}),tu({color:t.colorPrimaryHover,borderColor:t.colorPrimaryHover},{color:t.colorPrimaryActive,borderColor:t.colorPrimaryActive})),fS(t.componentCls,t.colorBgContainer,t.colorBgContainer,t.colorTextDisabled,t.colorBorder)),{[`&${t.componentCls}-dangerous`]:k(k(k({color:t.colorError,borderColor:t.colorError},tu({color:t.colorErrorHover,borderColor:t.colorErrorBorderHover},{color:t.colorErrorActive,borderColor:t.colorErrorActive})),fS(t.componentCls,t.colorError,t.colorError,t.colorTextDisabled,t.colorBorder)),C4(t))}),a3e=t=>k(k(k(k(k({},Sre(t)),{color:t.colorTextLightSolid,backgroundColor:t.colorPrimary,boxShadow:`0 ${t.controlOutlineWidth}px 0 ${t.controlOutline}`}),tu({color:t.colorTextLightSolid,backgroundColor:t.colorPrimaryHover},{color:t.colorTextLightSolid,backgroundColor:t.colorPrimaryActive})),fS(t.componentCls,t.colorPrimary,t.colorPrimary,t.colorTextDisabled,t.colorBorder,{color:t.colorPrimaryHover,borderColor:t.colorPrimaryHover},{color:t.colorPrimaryActive,borderColor:t.colorPrimaryActive})),{[`&${t.componentCls}-dangerous`]:k(k(k({backgroundColor:t.colorError,boxShadow:`0 ${t.controlOutlineWidth}px 0 ${t.colorErrorOutline}`},tu({backgroundColor:t.colorErrorHover},{backgroundColor:t.colorErrorActive})),fS(t.componentCls,t.colorError,t.colorError,t.colorTextDisabled,t.colorBorder,{color:t.colorErrorHover,borderColor:t.colorErrorHover},{color:t.colorErrorActive,borderColor:t.colorErrorActive})),C4(t))}),s3e=t=>k(k({},Cre(t)),{borderStyle:"dashed"}),l3e=t=>k(k(k({color:t.colorLink},tu({color:t.colorLinkHover},{color:t.colorLinkActive})),dS(t)),{[`&${t.componentCls}-dangerous`]:k(k({color:t.colorError},tu({color:t.colorErrorHover},{color:t.colorErrorActive})),dS(t))}),u3e=t=>k(k(k({},tu({color:t.colorText,backgroundColor:t.colorBgTextHover},{color:t.colorText,backgroundColor:t.colorBgTextActive})),dS(t)),{[`&${t.componentCls}-dangerous`]:k(k({color:t.colorError},dS(t)),tu({color:t.colorErrorHover,backgroundColor:t.colorErrorBg},{color:t.colorErrorHover,backgroundColor:t.colorErrorBg}))}),c3e=t=>k(k({},BD(t)),{[`&${t.componentCls}:hover`]:k({},BD(t))}),f3e=t=>{const{componentCls:e}=t;return{[`${e}-default`]:Cre(t),[`${e}-primary`]:a3e(t),[`${e}-dashed`]:s3e(t),[`${e}-link`]:l3e(t),[`${e}-text`]:u3e(t),[`${e}-disabled`]:c3e(t)}},T4=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,iconCls:r,controlHeight:i,fontSize:o,lineHeight:a,lineWidth:s,borderRadius:l,buttonPaddingHorizontal:u}=t,c=Math.max(0,(i-o*a)/2-s),f=u-s,d=`${n}-icon-only`;return[{[`${n}${e}`]:{fontSize:o,height:i,padding:`${c}px ${f}px`,borderRadius:l,[`&${d}`]:{width:i,paddingInlineStart:0,paddingInlineEnd:0,[`&${n}-round`]:{width:"auto"},"> span":{transform:"scale(1.143)"}},[`&${n}-loading`]:{opacity:t.opacityLoading,cursor:"default"},[`${n}-loading-icon`]:{transition:`width ${t.motionDurationSlow} ${t.motionEaseInOut}, opacity ${t.motionDurationSlow} ${t.motionEaseInOut}`},[`&:not(${d}) ${n}-loading-icon > ${r}`]:{marginInlineEnd:t.marginXS}}},{[`${n}${n}-circle${e}`]:i3e(t)},{[`${n}${n}-round${e}`]:o3e(t)}]},d3e=t=>T4(t),h3e=t=>{const e=qt(t,{controlHeight:t.controlHeightSM,padding:t.paddingXS,buttonPaddingHorizontal:8,borderRadius:t.borderRadiusSM});return T4(e,`${t.componentCls}-sm`)},p3e=t=>{const e=qt(t,{controlHeight:t.controlHeightLG,fontSize:t.fontSizeLG,borderRadius:t.borderRadiusLG});return T4(e,`${t.componentCls}-lg`)},v3e=t=>{const{componentCls:e}=t;return{[e]:{[`&${e}-block`]:{width:"100%"}}}},g3e=Wn("Button",t=>{const{controlTmpOutline:e,paddingContentHorizontal:n}=t,r=qt(t,{colorOutlineDefault:e,buttonPaddingHorizontal:n});return[r3e(r),h3e(r),d3e(r),p3e(r),v3e(r),f3e(r),J5e(r),WT(t,{focus:!1}),n3e(t)]}),m3e=()=>({prefixCls:String,size:{type:String}}),Tre=b4(),VD=h.defineComponent({compatConfig:{MODE:3},name:"AButtonGroup",props:m3e(),setup(t,e){let{slots:n}=e;const{prefixCls:r,direction:i}=Gt("btn-group",t),[,,o]=Sg();Tre.useProvide(h.reactive({size:h.computed(()=>t.size)}));const a=h.computed(()=>{const{size:s}=t;let l="";switch(s){case"large":l="lg";break;case"small":l="sm";break;case"middle":case void 0:break;default:Io(!s,"Button.Group","Invalid prop `size`.")}return{[`${r.value}`]:!0,[`${r.value}-${l}`]:l,[`${r.value}-rtl`]:i.value==="rtl",[o.value]:!0}});return()=>{var s;return h.createVNode("div",{class:a.value},[wr((s=n.default)===null||s===void 0?void 0:s.call(n))])}}}),P7=/^[\u4e00-\u9fa5]{2}$/,$7=P7.test.bind(P7);function aO(t){return t==="text"||t==="link"}const ui=h.defineComponent({compatConfig:{MODE:3},name:"AButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:Ir(q5e(),{type:"default"}),slots:Object,setup(t,e){let{slots:n,attrs:r,emit:i,expose:o}=e;const{prefixCls:a,autoInsertSpaceInButton:s,direction:l,size:u}=Gt("btn",t),[c,f]=g3e(a),d=Tre.useInject(),p=il(),v=h.computed(()=>{var D;return(D=t.disabled)!==null&&D!==void 0?D:p.value}),g=h.shallowRef(null),m=h.shallowRef(void 0);let y=!1;const b=h.shallowRef(!1),O=h.shallowRef(!1),w=h.computed(()=>s.value!==!1),{compactSize:x,compactItemClassnames:S}=VT(a,l),T=h.computed(()=>typeof t.loading=="object"&&t.loading.delay?t.loading.delay||!0:!!t.loading);h.watch(T,D=>{clearTimeout(m.value),typeof T.value=="number"?m.value=setTimeout(()=>{b.value=D},T.value):b.value=D},{immediate:!0});const $=h.computed(()=>{const{type:D,shape:B="default",ghost:F,block:z,danger:W}=t,j=a.value,H={large:"lg",small:"sm",middle:void 0},Z=x.value||(d==null?void 0:d.size)||u.value,J=Z&&H[Z]||"";return[S.value,{[f.value]:!0,[`${j}`]:!0,[`${j}-${B}`]:B!=="default"&&B,[`${j}-${D}`]:D,[`${j}-${J}`]:J,[`${j}-loading`]:b.value,[`${j}-background-ghost`]:F&&!aO(D),[`${j}-two-chinese-chars`]:O.value&&w.value,[`${j}-block`]:z,[`${j}-dangerous`]:!!W,[`${j}-rtl`]:l.value==="rtl"}]}),A=()=>{const D=g.value;if(!D||s.value===!1)return;const B=D.textContent;y&&$7(B)?O.value||(O.value=!0):O.value&&(O.value=!1)},P=D=>{if(b.value||v.value){D.preventDefault();return}i("click",D)},M=D=>{i("mousedown",D)},I=(D,B)=>{const F=B?" ":"";if(D.type===h.Text){let z=D.children.trim();return $7(z)&&(z=z.split("").join(F)),h.createVNode("span",null,[z])}return D};return h.watchEffect(()=>{Io(!(t.ghost&&aO(t.type)),"Button","`link` or `text` button can't be a `ghost` button.")}),h.onMounted(A),h.onUpdated(A),h.onBeforeUnmount(()=>{m.value&&clearTimeout(m.value)}),o({focus:()=>{var D;(D=g.value)===null||D===void 0||D.focus()},blur:()=>{var D;(D=g.value)===null||D===void 0||D.blur()}}),()=>{var D,B;const{icon:F=(D=n.icon)===null||D===void 0?void 0:D.call(n)}=t,z=wr((B=n.default)===null||B===void 0?void 0:B.call(n));y=z.length===1&&!F&&!aO(t.type);const{type:W,htmlType:j,href:H,title:Z,target:J}=t,se=b.value?"loading":F,oe=k(k({},r),{title:Z,disabled:v.value,class:[$.value,r.class,{[`${a.value}-icon-only`]:z.length===0&&!!se}],onClick:P,onMousedown:M});v.value||delete oe.disabled;const de=F&&!b.value?F:h.createVNode(K5e,{existIcon:!!F,prefixCls:a.value,loading:!!b.value},null),re=z.map(ee=>I(ee,y&&w.value));if(H!==void 0)return c(h.createVNode("a",K(K({},oe),{},{href:H,target:J,ref:g}),[de,re]));let ue=h.createVNode("button",K(K({},oe),{},{ref:g,type:j}),[de,re]);if(!aO(W)){const ee=function(){return ue}();ue=h.createVNode(Y5e,{ref:"wave",disabled:!!b.value},{default:()=>[ee]})}return c(ue)}}});ui.Group=VD;ui.install=function(t){return t.component(ui.name,ui),t.component(VD.name,VD),t};var y3e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"};function A7(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){b3e(t,i,n[i])})}return t}function b3e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var GT=function(e,n){var r=A7({},e,n.attrs);return h.createVNode(yt,A7({},r,{icon:y3e}),null)};GT.displayName="EllipsisOutlined";GT.inheritAttrs=!1;var _3e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};function E7(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){O3e(t,i,n[i])})}return t}function O3e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var jT=function(e,n){var r=E7({},e,n.attrs);return h.createVNode(yt,E7({},r,{icon:_3e}),null)};jT.displayName="RightOutlined";jT.inheritAttrs=!1;const Pre=Symbol("OverrideContextKey"),$re=()=>h.inject(Pre,void 0),w3e=t=>{var e,n,r;const{prefixCls:i,mode:o,selectable:a,validator:s,onClick:l,expandIcon:u}=$re()||{};h.provide(Pre,{prefixCls:h.computed(()=>{var c,f;return(f=(c=t.prefixCls)===null||c===void 0?void 0:c.value)!==null&&f!==void 0?f:i==null?void 0:i.value}),mode:h.computed(()=>{var c,f;return(f=(c=t.mode)===null||c===void 0?void 0:c.value)!==null&&f!==void 0?f:o==null?void 0:o.value}),selectable:h.computed(()=>{var c,f;return(f=(c=t.selectable)===null||c===void 0?void 0:c.value)!==null&&f!==void 0?f:a==null?void 0:a.value}),validator:(e=t.validator)!==null&&e!==void 0?e:s,onClick:(n=t.onClick)!==null&&n!==void 0?n:l,expandIcon:(r=t.expandIcon)!==null&&r!==void 0?r:u==null?void 0:u.value})};function x3e(t,e,n,r){let i;if(i!==void 0)return!!i;if(t===e)return!0;if(typeof t!="object"||!t||typeof e!="object"||!e)return!1;const o=Object.keys(t),a=Object.keys(e);if(o.length!==a.length)return!1;const s=Object.prototype.hasOwnProperty.bind(e);for(let l=0;l<o.length;l++){const u=o[l];if(!s(u))return!1;const c=t[u],f=e[u];if(i=void 0,i===!1||i===void 0&&c!==f)return!1}return!0}function Mm(t,e){return x3e(h.toRaw(t),h.toRaw(e))}const Are=Symbol("menuContextKey"),Ere=t=>{h.provide(Are,t)},yu=()=>h.inject(Are),Mre=Symbol("ForceRenderKey"),S3e=t=>{h.provide(Mre,t)},Ire=()=>h.inject(Mre,!1),Dre=Symbol("menuFirstLevelContextKey"),Rre=t=>{h.provide(Dre,t)},C3e=()=>h.inject(Dre,!0),hS=h.defineComponent({compatConfig:{MODE:3},name:"MenuContextProvider",inheritAttrs:!1,props:{mode:{type:String,default:void 0},overflowDisabled:{type:Boolean,default:void 0}},setup(t,e){let{slots:n}=e;const r=yu(),i=k({},r);return t.mode!==void 0&&(i.mode=h.toRef(t,"mode")),t.overflowDisabled!==void 0&&(i.overflowDisabled=h.toRef(t,"overflowDisabled")),Ere(i),()=>{var o;return(o=n.default)===null||o===void 0?void 0:o.call(n)}}}),T3e=Ere,P3e=Symbol("siderCollapsed"),sO="$$__vc-menu-more__key",kre=Symbol("KeyPathContext"),P4=()=>h.inject(kre,{parentEventKeys:h.computed(()=>[]),parentKeys:h.computed(()=>[]),parentInfo:{}}),$3e=(t,e,n)=>{const{parentEventKeys:r,parentKeys:i}=P4(),o=h.computed(()=>[...r.value,t]),a=h.computed(()=>[...i.value,e]);return h.provide(kre,{parentEventKeys:o,parentKeys:a,parentInfo:n}),a},Nre=Symbol("measure"),M7=h.defineComponent({compatConfig:{MODE:3},setup(t,e){let{slots:n}=e;return h.provide(Nre,!0),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}),$4=()=>h.inject(Nre,!1),A3e=$3e;function Lre(t){const{mode:e,rtl:n,inlineIndent:r}=yu();return h.computed(()=>e.value!=="inline"?null:n.value?{paddingRight:`${t.value*r.value}px`}:{paddingLeft:`${t.value*r.value}px`})}let E3e=0;const M3e=()=>({id:String,role:String,disabled:Boolean,danger:Boolean,title:{type:[String,Boolean],default:void 0},icon:ne.any,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,originItemValue:zt()}),Uv=h.defineComponent({compatConfig:{MODE:3},name:"AMenuItem",inheritAttrs:!1,props:M3e(),slots:Object,setup(t,e){let{slots:n,emit:r,attrs:i}=e;const o=h.getCurrentInstance(),a=$4(),s=typeof o.vnode.key=="symbol"?String(o.vnode.key):o.vnode.key;Io(typeof o.vnode.key!="symbol","MenuItem",`MenuItem \`:key="${String(s)}"\` not support Symbol type`);const l=`menu_item_${++E3e}_$$_${s}`,{parentEventKeys:u,parentKeys:c}=P4(),{prefixCls:f,activeKeys:d,disabled:p,changeActiveKeys:v,rtl:g,inlineCollapsed:m,siderCollapsed:y,onItemClick:b,selectedKeys:O,registerMenuInfo:w,unRegisterMenuInfo:x}=yu(),S=C3e(),T=h.shallowRef(!1),$=h.computed(()=>[...c.value,s]);w(l,{eventKey:l,key:s,parentEventKeys:u,parentKeys:c,isLeaf:!0}),h.onBeforeUnmount(()=>{x(l)}),h.watch(d,()=>{T.value=!!d.value.find(H=>H===s)},{immediate:!0});const P=h.computed(()=>p.value||t.disabled),M=h.computed(()=>O.value.includes(s)),I=h.computed(()=>{const H=`${f.value}-item`;return{[`${H}`]:!0,[`${H}-danger`]:t.danger,[`${H}-active`]:T.value,[`${H}-selected`]:M.value,[`${H}-disabled`]:P.value}}),R=H=>({key:s,eventKey:l,keyPath:$.value,eventKeyPath:[...u.value,l],domEvent:H,item:k(k({},t),i)}),L=H=>{if(P.value)return;const Z=R(H);r("click",H),b(Z)},D=H=>{P.value||(v($.value),r("mouseenter",H))},B=H=>{P.value||(v([]),r("mouseleave",H))},F=H=>{if(r("keydown",H),H.which===Se.ENTER){const Z=R(H);r("click",H),b(Z)}},z=H=>{v($.value),r("focus",H)},W=(H,Z)=>{const J=h.createVNode("span",{class:`${f.value}-title-content`},[Z]);return(!H||No(Z)&&Z.type==="span")&&Z&&m.value&&S&&typeof Z=="string"?h.createVNode("div",{class:`${f.value}-inline-collapsed-noicon`},[Z.charAt(0)]):J},j=Lre(h.computed(()=>$.value.length));return()=>{var H,Z,J,se,oe;if(a)return null;const de=(H=t.title)!==null&&H!==void 0?H:(Z=n.title)===null||Z===void 0?void 0:Z.call(n),re=wr((J=n.default)===null||J===void 0?void 0:J.call(n)),ue=re.length;let ee=de;typeof de>"u"?ee=S&&ue?re:"":de===!1&&(ee="");const X={title:ee};!y.value&&!m.value&&(X.title=null,X.open=!1);const Y={};t.role==="option"&&(Y["aria-selected"]=M.value);const le=(se=t.icon)!==null&&se!==void 0?se:(oe=n.icon)===null||oe===void 0?void 0:oe.call(n,t);return h.createVNode(HT,K(K({},X),{},{placement:g.value?"left":"right",overlayClassName:`${f.value}-inline-collapsed-tooltip`}),{default:()=>[h.createVNode(Ul.Item,K(K(K({component:"li"},i),{},{id:t.id,style:k(k({},i.style||{}),j.value),class:[I.value,{[`${i.class}`]:!!i.class,[`${f.value}-item-only-child`]:(le?ue+1:ue)===1}],role:t.role||"menuitem",tabindex:t.disabled?null:-1,"data-menu-id":s,"aria-disabled":t.disabled},Y),{},{onMouseenter:D,onMouseleave:B,onClick:L,onKeydown:F,onFocus:z,title:typeof de=="string"?de:void 0}),{default:()=>[Xn(typeof le=="function"?le(t.originItemValue):le,{class:`${f.value}-item-icon`},!1),W(le,re)]})]})}}}),rc={adjustX:1,adjustY:1},I3e={topLeft:{points:["bl","tl"],overflow:rc,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:rc,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:rc,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:rc,offset:[4,0]}},D3e={topLeft:{points:["bl","tl"],overflow:rc,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:rc,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:rc,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:rc,offset:[4,0]}},R3e={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},I7=h.defineComponent({compatConfig:{MODE:3},name:"PopupTrigger",inheritAttrs:!1,props:{prefixCls:String,mode:String,visible:Boolean,popupClassName:String,popupOffset:Array,disabled:Boolean,onVisibleChange:Function},slots:Object,emits:["visibleChange"],setup(t,e){let{slots:n,emit:r}=e;const i=h.shallowRef(!1),{getPopupContainer:o,rtl:a,subMenuOpenDelay:s,subMenuCloseDelay:l,builtinPlacements:u,triggerSubMenuAction:c,forceSubMenuRender:f,motion:d,defaultMotions:p,rootClassName:v}=yu(),g=Ire(),m=h.computed(()=>a.value?k(k({},D3e),u.value):k(k({},I3e),u.value)),y=h.computed(()=>R3e[t.mode]),b=h.shallowRef();h.watch(()=>t.visible,x=>{Rt.cancel(b.value),b.value=Rt(()=>{i.value=x})},{immediate:!0}),h.onBeforeUnmount(()=>{Rt.cancel(b.value)});const O=x=>{r("visibleChange",x)},w=h.computed(()=>{var x,S;const T=d.value||((x=p.value)===null||x===void 0?void 0:x[t.mode])||((S=p.value)===null||S===void 0?void 0:S.other),$=typeof T=="function"?T():T;return $?e_($.name,{css:!0}):void 0});return()=>{const{prefixCls:x,popupClassName:S,mode:T,popupOffset:$,disabled:A}=t;return h.createVNode(DT,{prefixCls:x,popupClassName:Pe(`${x}-popup`,{[`${x}-rtl`]:a.value},S,v.value),stretch:T==="horizontal"?"minWidth":null,getPopupContainer:o.value,builtinPlacements:m.value,popupPlacement:y.value,popupVisible:i.value,popupAlign:$&&{offset:$},action:A?[]:[c.value],mouseEnterDelay:s.value,mouseLeaveDelay:l.value,onPopupVisibleChange:O,forceRender:g||f.value,popupAnimation:w.value},{popup:n.popup,default:n.default})}}}),A4=(t,e)=>{let{slots:n,attrs:r}=e;var i;const{prefixCls:o,mode:a}=yu();return h.createVNode("ul",K(K({},r),{},{class:Pe(o.value,`${o.value}-sub`,`${o.value}-${a.value==="inline"?"inline":"vertical"}`),"data-menu-list":!0}),[(i=n.default)===null||i===void 0?void 0:i.call(n)])};A4.displayName="SubMenuList";const k3e=h.defineComponent({compatConfig:{MODE:3},name:"InlineSubMenuList",inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup(t,e){let{slots:n}=e;const r=h.computed(()=>"inline"),{motion:i,mode:o,defaultMotions:a}=yu(),s=h.computed(()=>o.value===r.value),l=h.ref(!s.value),u=h.computed(()=>s.value?t.open:!1);h.watch(o,()=>{s.value&&(l.value=!1)},{flush:"post"});const c=h.computed(()=>{var f,d;const p=i.value||((f=a.value)===null||f===void 0?void 0:f[r.value])||((d=a.value)===null||d===void 0?void 0:d.other),v=typeof p=="function"?p():p;return k(k({},v),{appear:t.keyPath.length<=1})});return()=>{var f;return l.value?null:h.createVNode(hS,{mode:r.value},{default:()=>[h.createVNode(h.Transition,c.value,{default:()=>[h.withDirectives(h.createVNode(A4,{id:t.id},{default:()=>[(f=n.default)===null||f===void 0?void 0:f.call(n)]}),[[h.vShow,u.value]])]})]})}}});let D7=0;const N3e=()=>({icon:ne.any,title:ne.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,theme:String,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function,originItemValue:zt()}),Zv=h.defineComponent({compatConfig:{MODE:3},name:"ASubMenu",inheritAttrs:!1,props:N3e(),slots:Object,setup(t,e){let{slots:n,attrs:r,emit:i}=e;var o,a;Rre(!1);const s=$4(),l=h.getCurrentInstance(),u=typeof l.vnode.key=="symbol"?String(l.vnode.key):l.vnode.key;Io(typeof l.vnode.key!="symbol","SubMenu",`SubMenu \`:key="${String(u)}"\` not support Symbol type`);const c=gD(u)?u:`sub_menu_${++D7}_$$_not_set_key`,f=(o=t.eventKey)!==null&&o!==void 0?o:gD(u)?`sub_menu_${++D7}_$$_${u}`:c,{parentEventKeys:d,parentInfo:p,parentKeys:v}=P4(),g=h.computed(()=>[...v.value,c]),m=h.shallowRef([]),y={eventKey:f,key:c,parentEventKeys:d,childrenEventKeys:m,parentKeys:v};(a=p.childrenEventKeys)===null||a===void 0||a.value.push(f),h.onBeforeUnmount(()=>{var _e;p.childrenEventKeys&&(p.childrenEventKeys.value=(_e=p.childrenEventKeys)===null||_e===void 0?void 0:_e.value.filter(De=>De!=f))}),A3e(f,c,y);const{prefixCls:b,activeKeys:O,disabled:w,changeActiveKeys:x,mode:S,inlineCollapsed:T,openKeys:$,overflowDisabled:A,onOpenChange:P,registerMenuInfo:M,unRegisterMenuInfo:I,selectedSubMenuKeys:R,expandIcon:L,theme:D}=yu(),B=u!=null,F=!s&&(Ire()||!B);S3e(F),(s&&B||!s&&!B||F)&&(M(f,y),h.onBeforeUnmount(()=>{I(f)}));const z=h.computed(()=>`${b.value}-submenu`),W=h.computed(()=>w.value||t.disabled),j=h.shallowRef(),H=h.shallowRef(),Z=h.computed(()=>$.value.includes(c)),J=h.computed(()=>!A.value&&Z.value),se=h.computed(()=>R.value.includes(c)),oe=h.shallowRef(!1);h.watch(O,()=>{oe.value=!!O.value.find(_e=>_e===c)},{immediate:!0});const de=_e=>{W.value||(i("titleClick",_e,c),S.value==="inline"&&P(c,!Z.value))},re=_e=>{W.value||(x(g.value),i("mouseenter",_e))},ue=_e=>{W.value||(x([]),i("mouseleave",_e))},ee=Lre(h.computed(()=>g.value.length)),X=_e=>{S.value!=="inline"&&P(c,_e)},Y=()=>{x(g.value)},le=f&&`${f}-popup`,ge=h.computed(()=>Pe(b.value,`${b.value}-${t.theme||D.value}`,t.popupClassName)),me=(_e,De)=>{if(!De)return T.value&&!v.value.length&&_e&&typeof _e=="string"?h.createVNode("div",{class:`${b.value}-inline-collapsed-noicon`},[_e.charAt(0)]):h.createVNode("span",{class:`${b.value}-title-content`},[_e]);const ze=No(_e)&&_e.type==="span";return h.createVNode(h.Fragment,null,[Xn(typeof De=="function"?De(t.originItemValue):De,{class:`${b.value}-item-icon`},!1),ze?_e:h.createVNode("span",{class:`${b.value}-title-content`},[_e])])},Ne=h.computed(()=>S.value!=="inline"&&g.value.length>1?"vertical":S.value),Le=h.computed(()=>S.value==="horizontal"?"vertical":S.value),Ee=h.computed(()=>Ne.value==="horizontal"?"vertical":Ne.value),$e=()=>{var _e,De;const ze=z.value,lt=(_e=t.icon)!==null&&_e!==void 0?_e:(De=n.icon)===null||De===void 0?void 0:De.call(n,t),gt=t.expandIcon||n.expandIcon||L.value,Bt=me(OT(n,t,"title"),lt);return h.createVNode("div",{style:ee.value,class:`${ze}-title`,tabindex:W.value?null:-1,ref:j,title:typeof Bt=="string"?Bt:null,"data-menu-id":c,"aria-expanded":J.value,"aria-haspopup":!0,"aria-controls":le,"aria-disabled":W.value,onClick:de,onFocus:Y},[Bt,S.value!=="horizontal"&&gt?gt(k(k({},t),{isOpen:J.value})):h.createVNode("i",{class:`${ze}-arrow`},null)])};return()=>{var _e;if(s)return B?(_e=n.default)===null||_e===void 0?void 0:_e.call(n):null;const De=z.value;let ze=()=>null;if(!A.value&&S.value!=="inline"){const lt=S.value==="horizontal"?[0,8]:[10,0];ze=()=>h.createVNode(I7,{mode:Ne.value,prefixCls:De,visible:!t.internalPopupClose&&J.value,popupClassName:ge.value,popupOffset:t.popupOffset||lt,disabled:W.value,onVisibleChange:X},{default:()=>[$e()],popup:()=>h.createVNode(hS,{mode:Ee.value},{default:()=>[h.createVNode(A4,{id:le,ref:H},{default:n.default})]})})}else ze=()=>h.createVNode(I7,null,{default:$e});return h.createVNode(hS,{mode:Le.value},{default:()=>[h.createVNode(Ul.Item,K(K({component:"li"},r),{},{role:"none",class:Pe(De,`${De}-${S.value}`,r.class,{[`${De}-open`]:J.value,[`${De}-active`]:oe.value,[`${De}-selected`]:se.value,[`${De}-disabled`]:W.value}),onMouseenter:re,onMouseleave:ue,"data-submenu-id":c}),{default:()=>h.createVNode(h.Fragment,null,[ze(),!A.value&&h.createVNode(k3e,{id:le,open:J.value,keyPath:g.value},{default:n.default})])})]})}}});function Bre(t,e){return t.classList?t.classList.contains(e):` ${t.className} `.indexOf(` ${e} `)>-1}function R7(t,e){t.classList?t.classList.add(e):Bre(t,e)||(t.className=`${t.className} ${e}`)}function k7(t,e){if(t.classList)t.classList.remove(e);else if(Bre(t,e)){const n=t.className;t.className=` ${n} `.replace(` ${e} `," ")}}const E4=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant-motion-collapse",e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return{name:t,appear:e,css:!0,onBeforeEnter:n=>{n.style.height="0px",n.style.opacity="0",R7(n,t)},onEnter:n=>{h.nextTick(()=>{n.style.height=`${n.scrollHeight}px`,n.style.opacity="1"})},onAfterEnter:n=>{n&&(k7(n,t),n.style.height=null,n.style.opacity=null)},onBeforeLeave:n=>{R7(n,t),n.style.height=`${n.offsetHeight}px`,n.style.opacity=null},onLeave:n=>{setTimeout(()=>{n.style.height="0px",n.style.opacity="0"})},onAfterLeave:n=>{n&&(k7(n,t),n.style&&(n.style.height=null,n.style.opacity=null))}}},L3e=()=>({title:ne.any,originItemValue:zt()}),pS=h.defineComponent({compatConfig:{MODE:3},name:"AMenuItemGroup",inheritAttrs:!1,props:L3e(),slots:Object,setup(t,e){let{slots:n,attrs:r}=e;const{prefixCls:i}=yu(),o=h.computed(()=>`${i.value}-item-group`),a=$4();return()=>{var s,l;return a?(s=n.default)===null||s===void 0?void 0:s.call(n):h.createVNode("li",K(K({},r),{},{onClick:u=>u.stopPropagation(),class:o.value}),[h.createVNode("div",{title:typeof t.title=="string"?t.title:void 0,class:`${o.value}-title`},[OT(n,t,"title")]),h.createVNode("ul",{class:`${o.value}-list`},[(l=n.default)===null||l===void 0?void 0:l.call(n)])])}}}),B3e=()=>({prefixCls:String,dashed:Boolean}),vS=h.defineComponent({compatConfig:{MODE:3},name:"AMenuDivider",props:B3e(),setup(t){const{prefixCls:e}=yu(),n=h.computed(()=>({[`${e.value}-item-divider`]:!0,[`${e.value}-item-divider-dashed`]:!!t.dashed}));return()=>h.createVNode("li",{class:n.value},null)}});var V3e=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function zD(t,e,n){return(t||[]).map((r,i)=>{if(r&&typeof r=="object"){const o=r,{label:a,children:s,key:l,type:u}=o,c=V3e(o,["label","children","key","type"]),f=l??`tmp-${i}`,d=n?n.parentKeys.slice():[],p=[],v={eventKey:f,key:f,parentEventKeys:h.ref(d),parentKeys:h.ref(d),childrenEventKeys:h.ref(p),isLeaf:!1};if(s||u==="group"){if(u==="group"){const m=zD(s,e,n);return h.createVNode(pS,K(K({key:f},c),{},{title:a,originItemValue:r}),{default:()=>[m]})}e.set(f,v),n&&n.childrenEventKeys.push(f);const g=zD(s,e,{childrenEventKeys:p,parentKeys:[].concat(d,f)});return h.createVNode(Zv,K(K({key:f},c),{},{title:a,originItemValue:r}),{default:()=>[g]})}return u==="divider"?h.createVNode(vS,K({key:f},c),null):(v.isLeaf=!0,e.set(f,v),h.createVNode(Uv,K(K({key:f},c),{},{originItemValue:r}),{default:()=>[a]}))}return null}).filter(r=>r)}function z3e(t){const e=h.shallowRef([]),n=h.shallowRef(!1),r=h.shallowRef(new Map);return h.watch(()=>t.items,()=>{const i=new Map;n.value=!1,t.items?(n.value=!0,e.value=zD(t.items,i)):e.value=void 0,r.value=i},{immediate:!0,deep:!0}),{itemsNodes:e,store:r,hasItmes:n}}const F3e=t=>{const{componentCls:e,motionDurationSlow:n,menuHorizontalHeight:r,colorSplit:i,lineWidth:o,lineType:a,menuItemPaddingInline:s}=t;return{[`${e}-horizontal`]:{lineHeight:`${r}px`,border:0,borderBottom:`${o}px ${a} ${i}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${e}-item, ${e}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${e}-item:hover,
  184. > ${e}-item-active,
  185. > ${e}-submenu ${e}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${e}-item, ${e}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${e}-submenu-arrow`]:{display:"none"}}}},W3e=t=>{let{componentCls:e,menuArrowOffset:n}=t;return{[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
  186. ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},N7=t=>k({},Kb(t)),L7=(t,e)=>{const{componentCls:n,colorItemText:r,colorItemTextSelected:i,colorGroupTitle:o,colorItemBg:a,colorSubItemBg:s,colorItemBgSelected:l,colorActiveBarHeight:u,colorActiveBarWidth:c,colorActiveBarBorderSize:f,motionDurationSlow:d,motionEaseInOut:p,motionEaseOut:v,menuItemPaddingInline:g,motionDurationMid:m,colorItemTextHover:y,lineType:b,colorSplit:O,colorItemTextDisabled:w,colorDangerItemText:x,colorDangerItemTextHover:S,colorDangerItemTextSelected:T,colorDangerItemBgActive:$,colorDangerItemBgSelected:A,colorItemBgHover:P,menuSubMenuBg:M,colorItemTextSelectedHorizontal:I,colorItemBgSelectedHorizontal:R}=t;return{[`${n}-${e}`]:{color:r,background:a,[`&${n}-root:focus-visible`]:k({},N7(t)),[`${n}-item-group-title`]:{color:o},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:i}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${w} !important`},[`${n}-item:hover, ${n}-submenu-title:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:y}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:P},"&:active":{backgroundColor:l}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:P},"&:active":{backgroundColor:l}}},[`${n}-item-danger`]:{color:x,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:S}},[`&${n}-item:active`]:{background:$}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:T},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:A}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:k({},N7(t))},[`&${n}-submenu > ${n}`]:{backgroundColor:M},[`&${n}-popup > ${n}`]:{backgroundColor:a},[`&${n}-horizontal`]:k(k({},e==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:-f,marginBottom:0,borderRadius:0,"&::after":{position:"absolute",insetInline:g,bottom:0,borderBottom:`${u}px solid transparent`,transition:`border-color ${d} ${p}`,content:'""'},"&:hover, &-active, &-open":{"&::after":{borderBottomWidth:u,borderBottomColor:I}},"&-selected":{color:I,backgroundColor:R,"&::after":{borderBottomWidth:u,borderBottomColor:I}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${f}px ${b} ${O}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:s},[`${n}-item, ${n}-submenu-title`]:f&&c?{width:`calc(100% + ${f}px)`}:{},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${c}px solid ${i}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${m} ${v}`,`opacity ${m} ${v}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:T}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${m} ${p}`,`opacity ${m} ${p}`].join(",")}}}}}},B7=t=>{const{componentCls:e,menuItemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:o,marginXS:a,marginXXS:s}=t,l=i+o+a;return{[`${e}-item`]:{position:"relative"},[`${e}-item, ${e}-submenu-title`]:{height:n,lineHeight:`${n}px`,paddingInline:i,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:`calc(100% - ${r*2}px)`},[`${e}-submenu`]:{paddingBottom:.02},[`> ${e}-item,
  187. > ${e}-submenu > ${e}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${e}-item-group-list ${e}-submenu-title,
  188. ${e}-submenu-title`]:{paddingInlineEnd:l}}},Q3e=t=>{const{componentCls:e,iconCls:n,menuItemHeight:r,colorTextLightSolid:i,dropdownWidth:o,controlHeightLG:a,motionDurationMid:s,motionEaseOut:l,paddingXL:u,fontSizeSM:c,fontSizeLG:f,motionDurationSlow:d,paddingXS:p,boxShadowSecondary:v}=t,g={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[e]:{"&-inline, &-vertical":k({[`&${e}-root`]:{boxShadow:"none"}},B7(t))},[`${e}-submenu-popup`]:{[`${e}-vertical`]:k(k({},B7(t)),{boxShadow:v})}},{[`${e}-submenu-popup ${e}-vertical${e}-sub`]:{minWidth:o,maxHeight:`calc(100vh - ${a*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${e}-inline`]:{width:"100%",[`&${e}-root`]:{[`${e}-item, ${e}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${d}`,`background ${d}`,`padding ${s} ${l}`].join(","),[`> ${e}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${e}-sub${e}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${e}-submenu > ${e}-submenu-title`]:g,[`& ${e}-item-group-title`]:{paddingInlineStart:u}},[`${e}-item`]:g}},{[`${e}-inline-collapsed`]:{width:r*2,[`&${e}-root`]:{[`${e}-item, ${e}-submenu ${e}-submenu-title`]:{[`> ${e}-inline-collapsed-noicon`]:{fontSize:f,textAlign:"center"}}},[`> ${e}-item,
  189. > ${e}-item-group > ${e}-item-group-list > ${e}-item,
  190. > ${e}-item-group > ${e}-item-group-list > ${e}-submenu > ${e}-submenu-title,
  191. > ${e}-submenu > ${e}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${c}px)`,textOverflow:"clip",[`
  192. ${e}-submenu-arrow,
  193. ${e}-submenu-expand-icon
  194. `]:{opacity:0},[`${e}-item-icon, ${n}`]:{margin:0,fontSize:f,lineHeight:`${r}px`,"+ span":{display:"inline-block",opacity:0}}},[`${e}-item-icon, ${n}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${e}-item-icon, ${n}`]:{display:"none"},"a, a:hover":{color:i}},[`${e}-item-group-title`]:k(k({},Wv),{paddingInline:p})}}]},V7=t=>{const{componentCls:e,fontSize:n,motionDurationSlow:r,motionDurationMid:i,motionEaseInOut:o,motionEaseOut:a,iconCls:s,controlHeightSM:l}=t;return{[`${e}-item, ${e}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${r}`,`background ${r}`,`padding ${r} ${o}`].join(","),[`${e}-item-icon, ${s}`]:{minWidth:n,fontSize:n,transition:[`font-size ${i} ${a}`,`margin ${r} ${o}`,`color ${r}`].join(","),"+ span":{marginInlineStart:l-n,opacity:1,transition:[`opacity ${r} ${o}`,`margin ${r}`,`color ${r}`].join(",")}},[`${e}-item-icon`]:k({},xg()),[`&${e}-item-only-child`]:{[`> ${s}, > ${e}-item-icon`]:{marginInlineEnd:0}}},[`${e}-item-disabled, ${e}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${e}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},z7=t=>{const{componentCls:e,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:o,menuArrowOffset:a}=t;return{[`${e}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:t.margin,width:o,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:o*.6,height:o*.15,backgroundColor:"currentcolor",borderRadius:i,transition:[`background ${n} ${r}`,`transform ${n} ${r}`,`top ${n} ${r}`,`color ${n} ${r}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${a})`},"&::after":{transform:`rotate(-45deg) translateY(${a})`}}}}},H3e=t=>{const{antCls:e,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:o,motionEaseInOut:a,lineHeight:s,paddingXS:l,padding:u,colorSplit:c,lineWidth:f,zIndexPopup:d,borderRadiusLG:p,radiusSubMenuItem:v,menuArrowSize:g,menuArrowOffset:m,lineType:y,menuPanelMaskInset:b}=t;return[{"":{[`${n}`]:k(k({},iS()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:k(k(k(k(k(k(k({},On(t)),iS()),{marginBottom:0,paddingInlineStart:0,fontSize:r,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${i} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${n}-item`]:{flex:"none"}},[`${n}-item, ${n}-submenu, ${n}-submenu-title`]:{borderRadius:t.radiusItem},[`${n}-item-group-title`]:{padding:`${l}px ${u}px`,fontSize:r,lineHeight:s,transition:`all ${i}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${i} ${a}`,`background ${i} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i} ${a}`,`background ${i} ${a}`,`padding ${o} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${i} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-title-content`]:{transition:`color ${i}`},[`${n}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${n}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:y,borderWidth:0,borderTopWidth:f,marginBlock:f,padding:0,"&-dashed":{borderStyle:"dashed"}}}),V7(t)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${r*2}px ${u}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:d,background:"transparent",borderRadius:p,boxShadow:"none",transformOrigin:"0 0","&::before":{position:"absolute",inset:`${b}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:b},[`> ${n}`]:k(k(k({borderRadius:p},V7(t)),z7(t)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:v},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${a}`}})}}),z7(t)),{[`&-inline-collapsed ${n}-submenu-arrow,
  195. &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${m})`},"&::after":{transform:`rotate(45deg) translateX(-${m})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(-${g*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${m})`},"&::before":{transform:`rotate(45deg) translateX(${m})`}}})},{[`${e}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},G3e=(t,e)=>Wn("Menu",(r,i)=>{let{overrideComponentToken:o}=i;if((e==null?void 0:e.value)===!1)return[];const{colorBgElevated:a,colorPrimary:s,colorError:l,colorErrorHover:u,colorTextLightSolid:c}=r,{controlHeightLG:f,fontSize:d}=r,p=d/7*5,v=qt(r,{menuItemHeight:f,menuItemPaddingInline:r.margin,menuArrowSize:p,menuHorizontalHeight:f*1.15,menuArrowOffset:`${p*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:a}),g=new _n(c).setAlpha(.65).toRgbString(),m=qt(v,{colorItemText:g,colorItemTextHover:c,colorGroupTitle:g,colorItemTextSelected:c,colorItemBg:"#001529",colorSubItemBg:"#000c17",colorItemBgActive:"transparent",colorItemBgSelected:s,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemTextDisabled:new _n(c).setAlpha(.25).toRgbString(),colorDangerItemText:l,colorDangerItemTextHover:u,colorDangerItemTextSelected:c,colorDangerItemBgActive:l,colorDangerItemBgSelected:l,menuSubMenuBg:"#001529",colorItemTextSelectedHorizontal:c,colorItemBgSelectedHorizontal:s},k({},o));return[H3e(v),F3e(v),Q3e(v),L7(v,"light"),L7(m,"dark"),W3e(v),O4(v),jv(v,"slide-up"),jv(v,"slide-down"),FT(v,"zoom-big")]},r=>{const{colorPrimary:i,colorError:o,colorTextDisabled:a,colorErrorBg:s,colorText:l,colorTextDescription:u,colorBgContainer:c,colorFillAlter:f,colorFillContent:d,lineWidth:p,lineWidthBold:v,controlItemBgActive:g,colorBgTextHover:m}=r;return{dropdownWidth:160,zIndexPopup:r.zIndexPopupBase+50,radiusItem:r.borderRadiusLG,radiusSubMenuItem:r.borderRadiusSM,colorItemText:l,colorItemTextHover:l,colorItemTextHoverHorizontal:i,colorGroupTitle:u,colorItemTextSelected:i,colorItemTextSelectedHorizontal:i,colorItemBg:c,colorItemBgHover:m,colorItemBgActive:d,colorSubItemBg:f,colorItemBgSelected:g,colorItemBgSelectedHorizontal:"transparent",colorActiveBarWidth:0,colorActiveBarHeight:v,colorActiveBarBorderSize:p,colorItemTextDisabled:a,colorDangerItemText:o,colorDangerItemTextHover:o,colorDangerItemTextSelected:o,colorDangerItemBgActive:s,colorDangerItemBgSelected:s,itemMarginInline:r.marginXXS}})(t),j3e=()=>({id:String,prefixCls:String,items:Array,disabled:Boolean,inlineCollapsed:Boolean,disabledOverflow:Boolean,forceSubMenuRender:Boolean,openKeys:Array,selectedKeys:Array,activeKey:String,selectable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},tabindex:{type:[Number,String]},motion:Object,role:String,theme:{type:String,default:"light"},mode:{type:String,default:"vertical"},inlineIndent:{type:Number,default:24},subMenuOpenDelay:{type:Number,default:0},subMenuCloseDelay:{type:Number,default:.1},builtinPlacements:{type:Object},triggerSubMenuAction:{type:String,default:"hover"},getPopupContainer:Function,expandIcon:Function,onOpenChange:Function,onSelect:Function,onDeselect:Function,onClick:[Function,Array],onFocus:Function,onBlur:Function,onMousedown:Function,"onUpdate:openKeys":Function,"onUpdate:selectedKeys":Function,"onUpdate:activeKey":Function}),F7=[],gc=h.defineComponent({compatConfig:{MODE:3},name:"AMenu",inheritAttrs:!1,props:j3e(),slots:Object,setup(t,e){let{slots:n,emit:r,attrs:i}=e;const{direction:o,getPrefixCls:a}=Gt("menu",t),s=$re(),l=h.computed(()=>{var re;return a("menu",t.prefixCls||((re=s==null?void 0:s.prefixCls)===null||re===void 0?void 0:re.value))}),[u,c]=G3e(l,h.computed(()=>!s)),f=h.shallowRef(new Map),d=h.inject(P3e,h.ref(void 0)),p=h.computed(()=>d.value!==void 0?d.value:t.inlineCollapsed),{itemsNodes:v}=z3e(t),g=h.shallowRef(!1);h.onMounted(()=>{g.value=!0}),h.watchEffect(()=>{Io(!(t.inlineCollapsed===!0&&t.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),Io(!(d.value!==void 0&&t.inlineCollapsed===!0),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.")});const m=h.ref([]),y=h.ref([]),b=h.ref({});h.watch(f,()=>{const re={};for(const ue of f.value.values())re[ue.key]=ue;b.value=re},{flush:"post"}),h.watchEffect(()=>{if(t.activeKey!==void 0){let re=[];const ue=t.activeKey?b.value[t.activeKey]:void 0;ue&&t.activeKey!==void 0?re=H$([].concat(h.unref(ue.parentKeys),t.activeKey)):re=[],Mm(m.value,re)||(m.value=re)}}),h.watch(()=>t.selectedKeys,re=>{re&&(y.value=re.slice())},{immediate:!0,deep:!0});const O=h.ref([]);h.watch([b,y],()=>{let re=[];y.value.forEach(ue=>{const ee=b.value[ue];ee&&(re=re.concat(h.unref(ee.parentKeys)))}),re=H$(re),Mm(O.value,re)||(O.value=re)},{immediate:!0});const w=re=>{if(t.selectable){const{key:ue}=re,ee=y.value.includes(ue);let X;t.multiple?ee?X=y.value.filter(le=>le!==ue):X=[...y.value,ue]:X=[ue];const Y=k(k({},re),{selectedKeys:X});Mm(X,y.value)||(t.selectedKeys===void 0&&(y.value=X),r("update:selectedKeys",X),ee&&t.multiple?r("deselect",Y):r("select",Y))}P.value!=="inline"&&!t.multiple&&x.value.length&&R(F7)},x=h.ref([]);h.watch(()=>t.openKeys,function(){let re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:x.value;Mm(x.value,re)||(x.value=re.slice())},{immediate:!0,deep:!0});let S;const T=re=>{clearTimeout(S),S=setTimeout(()=>{t.activeKey===void 0&&(m.value=re),r("update:activeKey",re[re.length-1])})},$=h.computed(()=>!!t.disabled),A=h.computed(()=>o.value==="rtl"),P=h.ref("vertical"),M=h.shallowRef(!1);h.watchEffect(()=>{var re;(t.mode==="inline"||t.mode==="vertical")&&p.value?(P.value="vertical",M.value=p.value):(P.value=t.mode,M.value=!1),!((re=s==null?void 0:s.mode)===null||re===void 0)&&re.value&&(P.value=s.mode.value)});const I=h.computed(()=>P.value==="inline"),R=re=>{x.value=re,r("update:openKeys",re),r("openChange",re)},L=h.ref(x.value),D=h.shallowRef(!1);h.watch(x,()=>{I.value&&(L.value=x.value)},{immediate:!0}),h.watch(I,()=>{if(!D.value){D.value=!0;return}I.value?x.value=L.value:R(F7)},{immediate:!0});const B=h.computed(()=>({[`${l.value}`]:!0,[`${l.value}-root`]:!0,[`${l.value}-${P.value}`]:!0,[`${l.value}-inline-collapsed`]:M.value,[`${l.value}-rtl`]:A.value,[`${l.value}-${t.theme}`]:!0})),F=h.computed(()=>a()),z=h.computed(()=>({horizontal:{name:`${F.value}-slide-up`},inline:E4(`${F.value}-motion-collapse`),other:{name:`${F.value}-zoom-big`}}));Rre(!0);const W=function(){let re=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const ue=[],ee=f.value;return re.forEach(X=>{const{key:Y,childrenEventKeys:le}=ee.get(X);ue.push(Y,...W(h.unref(le)))}),ue},j=re=>{var ue;r("click",re),w(re),(ue=s==null?void 0:s.onClick)===null||ue===void 0||ue.call(s)},H=(re,ue)=>{var ee;const X=((ee=b.value[re])===null||ee===void 0?void 0:ee.childrenEventKeys)||[];let Y=x.value.filter(le=>le!==re);if(ue)Y.push(re);else if(P.value!=="inline"){const le=W(h.unref(X));Y=H$(Y.filter(ge=>!le.includes(ge)))}Mm(x,Y)||R(Y)},Z=(re,ue)=>{f.value.set(re,ue),f.value=new Map(f.value)},J=re=>{f.value.delete(re),f.value=new Map(f.value)},se=h.ref(0),oe=h.computed(()=>{var re;return t.expandIcon||n.expandIcon||!((re=s==null?void 0:s.expandIcon)===null||re===void 0)&&re.value?ue=>{let ee=t.expandIcon||n.expandIcon;return ee=typeof ee=="function"?ee(ue):ee,Xn(ee,{class:`${l.value}-submenu-expand-icon`},!1)}:null});T3e({prefixCls:l,activeKeys:m,openKeys:x,selectedKeys:y,changeActiveKeys:T,disabled:$,rtl:A,mode:P,inlineIndent:h.computed(()=>t.inlineIndent),subMenuCloseDelay:h.computed(()=>t.subMenuCloseDelay),subMenuOpenDelay:h.computed(()=>t.subMenuOpenDelay),builtinPlacements:h.computed(()=>t.builtinPlacements),triggerSubMenuAction:h.computed(()=>t.triggerSubMenuAction),getPopupContainer:h.computed(()=>t.getPopupContainer),inlineCollapsed:M,theme:h.computed(()=>t.theme),siderCollapsed:d,defaultMotions:h.computed(()=>g.value?z.value:null),motion:h.computed(()=>g.value?t.motion:null),overflowDisabled:h.shallowRef(void 0),onOpenChange:H,onItemClick:j,registerMenuInfo:Z,unRegisterMenuInfo:J,selectedSubMenuKeys:O,expandIcon:oe,forceSubMenuRender:h.computed(()=>t.forceSubMenuRender),rootClassName:c});const de=()=>{var re;return v.value||wr((re=n.default)===null||re===void 0?void 0:re.call(n))};return()=>{var re;const ue=de(),ee=se.value>=ue.length-1||P.value!=="horizontal"||t.disabledOverflow,X=le=>P.value!=="horizontal"||t.disabledOverflow?le:le.map((ge,me)=>h.createVNode(hS,{key:ge.key,overflowDisabled:me>se.value},{default:()=>ge})),Y=((re=n.overflowedIndicator)===null||re===void 0?void 0:re.call(n))||h.createVNode(GT,null,null);return u(h.createVNode(Ul,K(K({},i),{},{onMousedown:t.onMousedown,prefixCls:`${l.value}-overflow`,component:"ul",itemComponent:Uv,class:[B.value,i.class,c.value],role:"menu",id:t.id,data:X(ue),renderRawItem:le=>le,renderRawRest:le=>{const ge=le.length,me=ge?ue.slice(-ge):null;return h.createVNode(h.Fragment,null,[h.createVNode(Zv,{eventKey:sO,key:sO,title:Y,disabled:ee,internalPopupClose:ge===0},{default:()=>me}),h.createVNode(M7,null,{default:()=>[h.createVNode(Zv,{eventKey:sO,key:sO,title:Y,disabled:ee,internalPopupClose:ge===0},{default:()=>me})]})])},maxCount:P.value!=="horizontal"||t.disabledOverflow?Ul.INVALIDATE:Ul.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:le=>{se.value=le}}),{default:()=>[h.createVNode(h.Teleport,{to:"body"},{default:()=>[h.createVNode("div",{style:{display:"none"},"aria-hidden":!0},[h.createVNode(M7,null,{default:()=>[X(de())]})])]})]}))}}});gc.install=function(t){return t.component(gc.name,gc),t.component(Uv.name,Uv),t.component(Zv.name,Zv),t.component(vS.name,vS),t.component(pS.name,pS),t};gc.Item=Uv;gc.Divider=vS;gc.SubMenu=Zv;gc.ItemGroup=pS;var U3e=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const Z3e={prefixCls:String,name:String,id:String,type:String,defaultChecked:{type:[Boolean,Number],default:void 0},checked:{type:[Boolean,Number],default:void 0},disabled:Boolean,tabindex:{type:[Number,String]},readonly:Boolean,autofocus:Boolean,value:ne.any,required:Boolean},Vre=h.defineComponent({compatConfig:{MODE:3},name:"Checkbox",inheritAttrs:!1,props:Ir(Z3e,{prefixCls:"rc-checkbox",type:"checkbox",defaultChecked:!1}),emits:["click","change"],setup(t,e){let{attrs:n,emit:r,expose:i}=e;const o=h.ref(t.checked===void 0?t.defaultChecked:t.checked),a=h.ref();h.watch(()=>t.checked,()=>{o.value=t.checked}),i({focus(){var c;(c=a.value)===null||c===void 0||c.focus()},blur(){var c;(c=a.value)===null||c===void 0||c.blur()}});const s=h.ref(),l=c=>{if(t.disabled)return;t.checked===void 0&&(o.value=c.target.checked),c.shiftKey=s.value;const f={target:k(k({},t),{checked:c.target.checked}),stopPropagation(){c.stopPropagation()},preventDefault(){c.preventDefault()},nativeEvent:c};t.checked!==void 0&&(a.value.checked=!!t.checked),r("change",f),s.value=!1},u=c=>{r("click",c),s.value=c.shiftKey};return()=>{const{prefixCls:c,name:f,id:d,type:p,disabled:v,readonly:g,tabindex:m,autofocus:y,value:b,required:O}=t,w=U3e(t,["prefixCls","name","id","type","disabled","readonly","tabindex","autofocus","value","required"]),{class:x,onFocus:S,onBlur:T,onKeydown:$,onKeypress:A,onKeyup:P}=n,M=k(k({},w),n),I=Object.keys(M).reduce((D,B)=>((B.startsWith("data-")||B.startsWith("aria-")||B==="role")&&(D[B]=M[B]),D),{}),R=Pe(c,x,{[`${c}-checked`]:o.value,[`${c}-disabled`]:v}),L=k(k({name:f,id:d,type:p,readonly:g,disabled:v,tabindex:m,class:`${c}-input`,checked:!!o.value,autofocus:y,value:b},I),{onChange:l,onClick:u,onFocus:S,onBlur:T,onKeydown:$,onKeypress:A,onKeyup:P,required:O});return h.createVNode("span",{class:R},[h.createVNode("input",K({ref:a},L),null),h.createVNode("span",{class:`${c}-inner`},null)])}}}),zre=Symbol("radioGroupContextKey"),X3e=t=>{h.provide(zre,t)},Y3e=()=>h.inject(zre,void 0),Fre=Symbol("radioOptionTypeContextKey"),q3e=t=>{h.provide(Fre,t)},K3e=()=>h.inject(Fre,void 0),J3e=new Mt("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),eBe=t=>{const{componentCls:e,antCls:n}=t,r=`${e}-group`;return{[r]:k(k({},On(t)),{display:"inline-block",fontSize:0,[`&${r}-rtl`]:{direction:"rtl"},[`${n}-badge ${n}-badge-count`]:{zIndex:1},[`> ${n}-badge:not(:first-child) > ${n}-button-wrapper`]:{borderInlineStart:"none"}})}},tBe=t=>{const{componentCls:e,radioWrapperMarginRight:n,radioCheckedColor:r,radioSize:i,motionDurationSlow:o,motionDurationMid:a,motionEaseInOut:s,motionEaseInOutCirc:l,radioButtonBg:u,colorBorder:c,lineWidth:f,radioDotSize:d,colorBgContainerDisabled:p,colorTextDisabled:v,paddingXS:g,radioDotDisabledColor:m,lineType:y,radioDotDisabledSize:b,wireframe:O,colorWhite:w}=t,x=`${e}-inner`;return{[`${e}-wrapper`]:k(k({},On(t)),{position:"relative",display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:n,cursor:"pointer",[`&${e}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:t.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${e}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${f}px ${y} ${r}`,borderRadius:"50%",visibility:"hidden",animationName:J3e,animationDuration:o,animationTimingFunction:s,animationFillMode:"both",content:'""'},[e]:k(k({},On(t)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center"}),[`${e}-wrapper:hover &,
  196. &:hover ${x}`]:{borderColor:r},[`${e}-input:focus-visible + ${x}`]:k({},Kb(t)),[`${e}:hover::after, ${e}-wrapper:hover &::after`]:{visibility:"visible"},[`${e}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:i,height:i,marginBlockStart:i/-2,marginInlineStart:i/-2,backgroundColor:O?r:w,borderBlockStart:0,borderInlineStart:0,borderRadius:i,transform:"scale(0)",opacity:0,transition:`all ${o} ${l}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:i,height:i,backgroundColor:u,borderColor:c,borderStyle:"solid",borderWidth:f,borderRadius:"50%",transition:`all ${a}`},[`${e}-input`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,zIndex:1,cursor:"pointer",opacity:0},[`${e}-checked`]:{[x]:{borderColor:r,backgroundColor:O?u:r,"&::after":{transform:`scale(${d/i})`,opacity:1,transition:`all ${o} ${l}`}}},[`${e}-disabled`]:{cursor:"not-allowed",[x]:{backgroundColor:p,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:m}},[`${e}-input`]:{cursor:"not-allowed"},[`${e}-disabled + span`]:{color:v,cursor:"not-allowed"},[`&${e}-checked`]:{[x]:{"&::after":{transform:`scale(${b/i})`}}}},[`span${e} + *`]:{paddingInlineStart:g,paddingInlineEnd:g}})}},nBe=t=>{const{radioButtonColor:e,controlHeight:n,componentCls:r,lineWidth:i,lineType:o,colorBorder:a,motionDurationSlow:s,motionDurationMid:l,radioButtonPaddingHorizontal:u,fontSize:c,radioButtonBg:f,fontSizeLG:d,controlHeightLG:p,controlHeightSM:v,paddingXS:g,borderRadius:m,borderRadiusSM:y,borderRadiusLG:b,radioCheckedColor:O,radioButtonCheckedBg:w,radioButtonHoverColor:x,radioButtonActiveColor:S,radioSolidCheckedColor:T,colorTextDisabled:$,colorBgContainerDisabled:A,radioDisabledButtonCheckedColor:P,radioDisabledButtonCheckedBg:M}=t;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:u,paddingBlock:0,color:e,fontSize:c,lineHeight:`${n-i*2}px`,background:f,border:`${i}px ${o} ${a}`,borderBlockStartWidth:i+.02,borderInlineStartWidth:0,borderInlineEndWidth:i,cursor:"pointer",transition:[`color ${l}`,`background ${l}`,`border-color ${l}`,`box-shadow ${l}`].join(","),a:{color:e},[`> ${r}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-i,insetInlineStart:-i,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:i,paddingInline:0,backgroundColor:a,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${i}px ${o} ${a}`,borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m},"&:first-child:last-child":{borderRadius:m},[`${r}-group-large &`]:{height:p,fontSize:d,lineHeight:`${p-i*2}px`,"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${r}-group-small &`]:{height:v,paddingInline:g-i,paddingBlock:0,lineHeight:`${v-i*2}px`,"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},"&:hover":{position:"relative",color:O},"&:has(:focus-visible)":k({},Kb(t)),[`${r}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${r}-button-wrapper-disabled)`]:{zIndex:1,color:O,background:w,borderColor:O,"&::before":{backgroundColor:O},"&:first-child":{borderColor:O},"&:hover":{color:x,borderColor:x,"&::before":{backgroundColor:x}},"&:active":{color:S,borderColor:S,"&::before":{backgroundColor:S}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:T,background:O,borderColor:O,"&:hover":{color:T,background:x,borderColor:x},"&:active":{color:T,background:S,borderColor:S}},"&-disabled":{color:$,backgroundColor:A,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:$,backgroundColor:A,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:P,backgroundColor:M,borderColor:a,boxShadow:"none"}}}},Wre=Wn("Radio",t=>{const{padding:e,lineWidth:n,controlItemBgActiveDisabled:r,colorTextDisabled:i,colorBgContainer:o,fontSizeLG:a,controlOutline:s,colorPrimaryHover:l,colorPrimaryActive:u,colorText:c,colorPrimary:f,marginXS:d,controlOutlineWidth:p,colorTextLightSolid:v,wireframe:g}=t,m=`0 0 0 ${p}px ${s}`,y=m,b=a,O=4,w=b-O*2,x=g?w:b-(O+n)*2,S=f,T=c,$=l,A=u,P=e-n,R=qt(t,{radioFocusShadow:m,radioButtonFocusShadow:y,radioSize:b,radioDotSize:x,radioDotDisabledSize:w,radioCheckedColor:S,radioDotDisabledColor:i,radioSolidCheckedColor:v,radioButtonBg:o,radioButtonCheckedBg:o,radioButtonColor:T,radioButtonHoverColor:$,radioButtonActiveColor:A,radioButtonPaddingHorizontal:P,radioDisabledButtonCheckedBg:r,radioDisabledButtonCheckedColor:i,radioWrapperMarginRight:d});return[eBe(R),tBe(R),nBe(R)]});var rBe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const Qre=()=>({prefixCls:String,checked:ft(),disabled:ft(),isGroup:ft(),value:ne.any,name:String,id:String,autofocus:ft(),onChange:ct(),onFocus:ct(),onBlur:ct(),onClick:ct(),"onUpdate:checked":ct(),"onUpdate:value":ct()}),Xi=h.defineComponent({compatConfig:{MODE:3},name:"ARadio",inheritAttrs:!1,props:Qre(),setup(t,e){let{emit:n,expose:r,slots:i,attrs:o}=e;const a=dl(),s=ss.useInject(),l=K3e(),u=Y3e(),c=il(),f=h.computed(()=>{var $;return($=g.value)!==null&&$!==void 0?$:c.value}),d=h.ref(),{prefixCls:p,direction:v,disabled:g}=Gt("radio",t),m=h.computed(()=>(u==null?void 0:u.optionType.value)==="button"||l==="button"?`${p.value}-button`:p.value),y=il(),[b,O]=Wre(p);r({focus:()=>{d.value.focus()},blur:()=>{d.value.blur()}});const S=$=>{const A=$.target.checked;n("update:checked",A),n("update:value",A),n("change",$),a.onFieldChange()},T=$=>{n("change",$),u&&u.onChange&&u.onChange($)};return()=>{var $;const A=u,{prefixCls:P,id:M=a.id.value}=t,I=rBe(t,["prefixCls","id"]),R=k(k({prefixCls:m.value,id:M},Mr(I,["onUpdate:checked","onUpdate:value"])),{disabled:($=g.value)!==null&&$!==void 0?$:y.value});A?(R.name=A.name.value,R.onChange=T,R.checked=t.value===A.value.value,R.disabled=f.value||A.disabled.value):R.onChange=S;const L=Pe({[`${m.value}-wrapper`]:!0,[`${m.value}-wrapper-checked`]:R.checked,[`${m.value}-wrapper-disabled`]:R.disabled,[`${m.value}-wrapper-rtl`]:v.value==="rtl",[`${m.value}-wrapper-in-form-item`]:s.isFormItemInput},o.class,O.value);return b(h.createVNode("label",K(K({},o),{},{class:L}),[h.createVNode(Vre,K(K({},R),{},{type:"radio",ref:d}),null),i.default&&h.createVNode("span",null,[i.default()])]))}}}),iBe=()=>({prefixCls:String,value:ne.any,size:In(),options:Jd(),disabled:ft(),name:String,buttonStyle:In("outline"),id:String,optionType:In("default"),onChange:ct(),"onUpdate:value":ct()}),ih=h.defineComponent({compatConfig:{MODE:3},name:"ARadioGroup",inheritAttrs:!1,props:iBe(),setup(t,e){let{slots:n,emit:r,attrs:i}=e;const o=dl(),{prefixCls:a,direction:s,size:l}=Gt("radio",t),[u,c]=Wre(a),f=h.ref(t.value),d=h.ref(!1);return h.watch(()=>t.value,v=>{f.value=v,d.value=!1}),X3e({onChange:v=>{const g=f.value,{value:m}=v.target;"value"in t||(f.value=m),!d.value&&m!==g&&(d.value=!0,r("update:value",m),r("change",v),o.onFieldChange()),h.nextTick(()=>{d.value=!1})},value:f,disabled:h.computed(()=>t.disabled),name:h.computed(()=>t.name),optionType:h.computed(()=>t.optionType)}),()=>{var v;const{options:g,buttonStyle:m,id:y=o.id.value}=t,b=`${a.value}-group`,O=Pe(b,`${b}-${m}`,{[`${b}-${l.value}`]:l.value,[`${b}-rtl`]:s.value==="rtl"},i.class,c.value);let w=null;return g&&g.length>0?w=g.map(x=>{if(typeof x=="string"||typeof x=="number")return h.createVNode(Xi,{key:x,prefixCls:a.value,disabled:t.disabled,value:x,checked:f.value===x},{default:()=>[x]});const{value:S,disabled:T,label:$}=x;return h.createVNode(Xi,{key:`radio-group-value-options-${S}`,prefixCls:a.value,disabled:T||t.disabled,value:S,checked:f.value===S},{default:()=>[$]})}):w=(v=n.default)===null||v===void 0?void 0:v.call(n),u(h.createVNode("div",K(K({},i),{},{class:O,id:y}),[w]))}}}),Bs=h.defineComponent({compatConfig:{MODE:3},name:"ARadioButton",inheritAttrs:!1,props:Qre(),setup(t,e){let{slots:n,attrs:r}=e;const{prefixCls:i}=Gt("radio",t);return q3e("button"),()=>{var o;return h.createVNode(Xi,K(K(K({},r),t),{},{prefixCls:i.value}),{default:()=>[(o=n.default)===null||o===void 0?void 0:o.call(n)]})}}});Xi.Group=ih;Xi.Button=Bs;Xi.install=function(t){return t.component(Xi.name,Xi),t.component(Xi.Group.name,Xi.Group),t.component(Xi.Button.name,Xi.Button),t};const Hre=t=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:t,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),n_=t=>({borderColor:t.inputBorderHoverColor,borderInlineEndWidth:t.lineWidth}),gS=t=>({borderColor:t.inputBorderHoverColor,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${t.controlOutline}`,borderInlineEndWidth:t.lineWidth,outline:0}),Gre=t=>({color:t.colorTextDisabled,backgroundColor:t.colorBgContainerDisabled,borderColor:t.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":k({},n_(qt(t,{inputBorderHoverColor:t.colorBorder})))}),jre=t=>{const{inputPaddingVerticalLG:e,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:i,inputPaddingHorizontalLG:o}=t;return{padding:`${e}px ${o}px`,fontSize:n,lineHeight:r,borderRadius:i}},Ure=t=>({padding:`${t.inputPaddingVerticalSM}px ${t.controlPaddingHorizontalSM-1}px`,borderRadius:t.borderRadiusSM}),UT=(t,e)=>{const{componentCls:n,colorError:r,colorWarning:i,colorErrorOutline:o,colorWarningOutline:a,colorErrorBorderHover:s,colorWarningBorderHover:l}=t;return{[`&-status-error:not(${e}-disabled):not(${e}-borderless)${e}`]:{borderColor:r,"&:hover":{borderColor:s},"&:focus, &-focused":k({},gS(qt(t,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:o}))),[`${n}-prefix`]:{color:r}},[`&-status-warning:not(${e}-disabled):not(${e}-borderless)${e}`]:{borderColor:i,"&:hover":{borderColor:l},"&:focus, &-focused":k({},gS(qt(t,{inputBorderActiveColor:i,inputBorderHoverColor:i,controlOutline:a}))),[`${n}-prefix`]:{color:i}}}},ZT=t=>k(k({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${t.inputPaddingVertical}px ${t.inputPaddingHorizontal}px`,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight,backgroundColor:t.colorBgContainer,backgroundImage:"none",borderWidth:t.lineWidth,borderStyle:t.lineType,borderColor:t.colorBorder,borderRadius:t.borderRadius,transition:`all ${t.motionDurationMid}`},Hre(t.colorTextPlaceholder)),{"&:hover":k({},n_(t)),"&:focus, &-focused":k({},gS(t)),"&-disabled, &[disabled]":k({},Gre(t)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:t.controlHeight,lineHeight:t.lineHeight,verticalAlign:"bottom",transition:`all ${t.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":k({},jre(t)),"&-sm":k({},Ure(t)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),Zre=t=>{const{componentCls:e,antCls:n}=t;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:t.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${e}, &-lg > ${e}-group-addon`]:k({},jre(t)),[`&-sm ${e}, &-sm > ${e}-group-addon`]:k({},Ure(t)),[`> ${e}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${e}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${t.inputPaddingHorizontal}px`,color:t.colorText,fontWeight:"normal",fontSize:t.fontSize,textAlign:"center",backgroundColor:t.colorFillAlter,border:`${t.lineWidth}px ${t.lineType} ${t.colorBorder}`,borderRadius:t.borderRadius,transition:`all ${t.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`-${t.inputPaddingVertical+1}px -${t.inputPaddingHorizontal}px`,[`&${n}-select-single:not(${n}-select-customize-input)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${t.lineWidth}px ${t.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${n}-select-selector`]:{color:t.colorPrimary}}},[`${n}-cascader-picker`]:{margin:`-9px -${t.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${e}`]:{float:"inline-start",width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${e}-search-with-button &`]:{zIndex:0}}},[`> ${e}:first-child, ${e}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${e}-affix-wrapper`]:{[`&:not(:first-child) ${e}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${e}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${e}:last-child, ${e}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${e}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${e}-search &`]:{borderStartStartRadius:t.borderRadius,borderEndStartRadius:t.borderRadius}},[`&:not(:first-child), ${e}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${e}-group-compact`]:k(k({display:"block"},iS()),{[`${e}-group-addon, ${e}-group-wrap, > ${e}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:t.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`& > ${e}-affix-wrapper`]:{display:"inline-flex"},[`& > ${n}-picker-range`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-t.lineWidth,borderInlineEndWidth:t.lineWidth},[`${e}`]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
  197. & > ${n}-select-auto-complete ${e},
  198. & > ${n}-cascader-picker ${e},
  199. & > ${e}-group-wrapper ${e}`]:{borderInlineEndWidth:t.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
  200. & > ${n}-select:first-child > ${n}-select-selector,
  201. & > ${n}-select-auto-complete:first-child ${e},
  202. & > ${n}-cascader-picker:first-child ${e}`]:{borderStartStartRadius:t.borderRadius,borderEndStartRadius:t.borderRadius},[`& > *:last-child,
  203. & > ${n}-select:last-child > ${n}-select-selector,
  204. & > ${n}-cascader-picker:last-child ${e},
  205. & > ${n}-cascader-picker-focused:last-child ${e}`]:{borderInlineEndWidth:t.lineWidth,borderStartEndRadius:t.borderRadius,borderEndEndRadius:t.borderRadius},[`& > ${n}-select-auto-complete ${e}`]:{verticalAlign:"top"},[`${e}-group-wrapper + ${e}-group-wrapper`]:{marginInlineStart:-t.lineWidth,[`${e}-affix-wrapper`]:{borderRadius:0}},[`${e}-group-wrapper:not(:last-child)`]:{[`&${e}-search > ${e}-group`]:{[`& > ${e}-group-addon > ${e}-search-button`]:{borderRadius:0},[`& > ${e}`]:{borderStartStartRadius:t.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:t.borderRadius}}}}),[`&&-sm ${n}-btn`]:{fontSize:t.fontSizeSM,height:t.controlHeightSM,lineHeight:"normal"},[`&&-lg ${n}-btn`]:{fontSize:t.fontSizeLG,height:t.controlHeightLG,lineHeight:"normal"},[`&&-lg ${n}-select-single ${n}-select-selector`]:{height:`${t.controlHeightLG}px`,[`${n}-select-selection-item, ${n}-select-selection-placeholder`]:{lineHeight:`${t.controlHeightLG-2}px`},[`${n}-select-selection-search-input`]:{height:`${t.controlHeightLG}px`}},[`&&-sm ${n}-select-single ${n}-select-selector`]:{height:`${t.controlHeightSM}px`,[`${n}-select-selection-item, ${n}-select-selection-placeholder`]:{lineHeight:`${t.controlHeightSM-2}px`},[`${n}-select-selection-search-input`]:{height:`${t.controlHeightSM}px`}}}},oBe=t=>{const{componentCls:e,controlHeightSM:n,lineWidth:r}=t,o=(n-r*2-16)/2;return{[e]:k(k(k(k({},On(t)),ZT(t)),UT(t,e)),{'&[type="color"]':{height:t.controlHeight,[`&${e}-lg`]:{height:t.controlHeightLG},[`&${e}-sm`]:{height:n,paddingTop:o,paddingBottom:o}}})}},aBe=t=>{const{componentCls:e}=t;return{[`${e}-clear-icon`]:{margin:0,color:t.colorTextQuaternary,fontSize:t.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${t.motionDurationSlow}`,"&:hover":{color:t.colorTextTertiary},"&:active":{color:t.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${t.inputAffixPadding}px`}},"&-textarea-with-clear-btn":{padding:"0 !important",border:"0 !important",[`${e}-clear-icon`]:{position:"absolute",insetBlockStart:t.paddingXS,insetInlineEnd:t.paddingXS,zIndex:1}}}},sBe=t=>{const{componentCls:e,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:o,colorIconHover:a,iconCls:s}=t;return{[`${e}-affix-wrapper`]:k(k(k(k(k({},ZT(t)),{display:"inline-flex",[`&:not(${e}-affix-wrapper-disabled):hover`]:k(k({},n_(t)),{zIndex:1,[`${e}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${e}[disabled]`]:{background:"transparent"}},[`> input${e}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&:focus":{boxShadow:"none !important"}},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${e}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:t.paddingXS}},"&-show-count-suffix":{color:r},"&-show-count-has-suffix":{marginInlineEnd:t.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),aBe(t)),{[`${s}${e}-password-icon`]:{color:o,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:a}}}),UT(t,`${e}-affix-wrapper`))}},lBe=t=>{const{componentCls:e,colorError:n,colorSuccess:r,borderRadiusLG:i,borderRadiusSM:o}=t;return{[`${e}-group`]:k(k(k({},On(t)),Zre(t)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${e}-group-addon`]:{borderRadius:i}},"&-sm":{[`${e}-group-addon`]:{borderRadius:o}},"&-status-error":{[`${e}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${e}-group-addon:last-child`]:{color:r,borderColor:r}}}})}},uBe=t=>{const{componentCls:e,antCls:n}=t,r=`${e}-search`;return{[r]:{[`${e}`]:{"&:hover, &:focus":{borderColor:t.colorPrimaryHover,[`+ ${e}-group-addon ${r}-button:not(${n}-btn-primary)`]:{borderInlineStartColor:t.colorPrimaryHover}}},[`${e}-affix-wrapper`]:{borderRadius:0},[`${e}-lg`]:{lineHeight:t.lineHeightLG-2e-4},[`> ${e}-group`]:{[`> ${e}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:t.borderRadius,borderEndEndRadius:t.borderRadius,borderEndStartRadius:0},[`${r}-button:not(${n}-btn-primary)`]:{color:t.colorTextDescription,"&:hover":{color:t.colorPrimaryHover},"&:active":{color:t.colorPrimaryActive},[`&${n}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${r}-button`]:{height:t.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${r}-button`]:{height:t.controlHeightLG},[`&-small ${r}-button`]:{height:t.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${e}-compact-item`]:{[`&:not(${e}-compact-last-item)`]:{[`${e}-group-addon`]:{[`${e}-search-button`]:{marginInlineEnd:-t.lineWidth,borderRadius:0}}},[`&:not(${e}-compact-first-item)`]:{[`${e},${e}-affix-wrapper`]:{borderRadius:0}},[`> ${e}-group-addon ${e}-search-button,
  206. > ${e},
  207. ${e}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${e}-affix-wrapper-focused`]:{zIndex:2}}}}};function Xre(t){return qt(t,{inputAffixPadding:t.paddingXXS,inputPaddingVertical:Math.max(Math.round((t.controlHeight-t.fontSize*t.lineHeight)/2*10)/10-t.lineWidth,3),inputPaddingVerticalLG:Math.ceil((t.controlHeightLG-t.fontSizeLG*t.lineHeightLG)/2*10)/10-t.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((t.controlHeightSM-t.fontSize*t.lineHeight)/2*10)/10-t.lineWidth,0),inputPaddingHorizontal:t.paddingSM-t.lineWidth,inputPaddingHorizontalSM:t.paddingXS-t.lineWidth,inputPaddingHorizontalLG:t.controlPaddingHorizontal-t.lineWidth,inputBorderHoverColor:t.colorPrimaryHover,inputBorderActiveColor:t.colorPrimaryHover})}const cBe=t=>{const{componentCls:e,inputPaddingHorizontal:n,paddingLG:r}=t,i=`${e}-textarea`;return{[i]:{position:"relative",[`${i}-suffix`]:{position:"absolute",top:0,insetInlineEnd:n,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto"},"&-status-error,\n &-status-warning,\n &-status-success,\n &-status-validating":{[`&${i}-has-feedback`]:{[`${e}`]:{paddingInlineEnd:r}}},"&-show-count":{[`> ${e}`]:{height:"100%"},"&::after":{color:t.colorTextDescription,whiteSpace:"nowrap",content:"attr(data-count)",pointerEvents:"none",float:"right"}},"&-rtl":{"&::after":{float:"left"}}}}},M4=Wn("Input",t=>{const e=Xre(t);return[oBe(e),cBe(e),sBe(e),lBe(e),uBe(e),WT(e)]});function fBe(t){const e=h.shallowRef(),n=h.shallowRef(!1);function r(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];n.value||(Rt.cancel(e.value),e.value=Rt(()=>{t(...o)}))}return h.onBeforeUnmount(()=>{n.value=!0,Rt.cancel(e.value)}),r}function dBe(t){const e=h.shallowRef([]),n=h.shallowRef(typeof t=="function"?t():t),r=fBe(()=>{let o=n.value;e.value.forEach(a=>{o=a(o)}),e.value=[],n.value=o});function i(o){e.value.push(o),r()}return[n,i]}const hBe=h.defineComponent({compatConfig:{MODE:3},name:"TabNode",props:{id:{type:String},prefixCls:{type:String},tab:{type:Object},active:{type:Boolean},closable:{type:Boolean},editable:{type:Object},onClick:{type:Function},onResize:{type:Function},renderWrapper:{type:Function},removeAriaLabel:{type:String},onFocus:{type:Function}},emits:["click","resize","remove","focus"],setup(t,e){let{expose:n,attrs:r}=e;const i=h.ref();function o(l){var u;!((u=t.tab)===null||u===void 0)&&u.disabled||t.onClick(l)}n({domRef:i});function a(l){var u;l.preventDefault(),l.stopPropagation(),t.editable.onEdit("remove",{key:(u=t.tab)===null||u===void 0?void 0:u.key,event:l})}const s=h.computed(()=>{var l;return t.editable&&t.closable!==!1&&!(!((l=t.tab)===null||l===void 0)&&l.disabled)});return()=>{var l;const{prefixCls:u,id:c,active:f,tab:{key:d,tab:p,disabled:v,closeIcon:g},renderWrapper:m,removeAriaLabel:y,editable:b,onFocus:O}=t,w=`${u}-tab`,x=h.createVNode("div",{key:d,ref:i,class:Pe(w,{[`${w}-with-remove`]:s.value,[`${w}-active`]:f,[`${w}-disabled`]:v}),style:r.style,onClick:o},[h.createVNode("div",{role:"tab","aria-selected":f,id:c&&`${c}-tab-${d}`,class:`${w}-btn`,"aria-controls":c&&`${c}-panel-${d}`,"aria-disabled":v,tabindex:v?null:0,onClick:S=>{S.stopPropagation(),o(S)},onKeydown:S=>{[Se.SPACE,Se.ENTER].includes(S.which)&&(S.preventDefault(),o(S))},onFocus:O},[typeof p=="function"?p():p]),s.value&&h.createVNode("button",{type:"button","aria-label":y||"remove",tabindex:0,class:`${w}-remove`,onClick:S=>{S.stopPropagation(),a(S)}},[(g==null?void 0:g())||((l=b.removeIcon)===null||l===void 0?void 0:l.call(b))||"×"])]);return m?m(x):x}}}),W7={width:0,height:0,left:0,top:0};function pBe(t,e){const n=h.ref(new Map);return h.watchEffect(()=>{var r,i;const o=new Map,a=t.value,s=e.value.get((r=a[0])===null||r===void 0?void 0:r.key)||W7,l=s.left+s.width;for(let u=0;u<a.length;u+=1){const{key:c}=a[u];let f=e.value.get(c);f||(f=e.value.get((i=a[u-1])===null||i===void 0?void 0:i.key)||W7);const d=o.get(c)||k({},f);d.right=l-d.left-d.width,o.set(c,d)}n.value=new Map(o)}),n}const Yre=h.defineComponent({compatConfig:{MODE:3},name:"AddButton",inheritAttrs:!1,props:{prefixCls:String,editable:{type:Object},locale:{type:Object,default:void 0}},setup(t,e){let{expose:n,attrs:r}=e;const i=h.ref();return n({domRef:i}),()=>{const{prefixCls:o,editable:a,locale:s}=t;return!a||a.showAdd===!1?null:h.createVNode("button",{ref:i,type:"button",class:`${o}-nav-add`,style:r.style,"aria-label":(s==null?void 0:s.addAriaLabel)||"Add tab",onClick:l=>{a.onEdit("add",{event:l})}},[a.addIcon?a.addIcon():"+"])}}}),vBe={prefixCls:{type:String},id:{type:String},tabs:{type:Object},rtl:{type:Boolean},tabBarGutter:{type:Number},activeKey:{type:[String,Number]},mobile:{type:Boolean},moreIcon:ne.any,moreTransitionName:{type:String},editable:{type:Object},locale:{type:Object,default:void 0},removeAriaLabel:String,onTabClick:{type:Function},popupClassName:String,getPopupContainer:ct()},gBe=h.defineComponent({compatConfig:{MODE:3},name:"OperationNode",inheritAttrs:!1,props:vBe,emits:["tabClick"],slots:Object,setup(t,e){let{attrs:n,slots:r}=e;const[i,o]=En(!1),[a,s]=En(null),l=p=>{const v=t.tabs.filter(y=>!y.disabled);let g=v.findIndex(y=>y.key===a.value)||0;const m=v.length;for(let y=0;y<m;y+=1){g=(g+p+m)%m;const b=v[g];if(!b.disabled){s(b.key);return}}},u=p=>{const{which:v}=p;if(!i.value){[Se.DOWN,Se.SPACE,Se.ENTER].includes(v)&&(o(!0),p.preventDefault());return}switch(v){case Se.UP:l(-1),p.preventDefault();break;case Se.DOWN:l(1),p.preventDefault();break;case Se.ESC:o(!1);break;case Se.SPACE:case Se.ENTER:a.value!==null&&t.onTabClick(a.value,p);break}},c=h.computed(()=>`${t.id}-more-popup`),f=h.computed(()=>a.value!==null?`${c.value}-${a.value}`:null),d=(p,v)=>{p.preventDefault(),p.stopPropagation(),t.editable.onEdit("remove",{key:v,event:p})};return h.onMounted(()=>{h.watch(a,()=>{const p=document.getElementById(f.value);p&&p.scrollIntoView&&p.scrollIntoView(!1)},{flush:"post",immediate:!0})}),h.watch(i,()=>{i.value||s(null)}),w3e({}),()=>{var p;const{prefixCls:v,id:g,tabs:m,locale:y,mobile:b,moreIcon:O=((p=r.moreIcon)===null||p===void 0?void 0:p.call(r))||h.createVNode(GT,null,null),moreTransitionName:w,editable:x,tabBarGutter:S,rtl:T,onTabClick:$,popupClassName:A}=t;if(!m.length)return null;const P=`${v}-dropdown`,M=y==null?void 0:y.dropdownAriaLabel,I={[T?"marginRight":"marginLeft"]:S};m.length||(I.visibility="hidden",I.order=1);const R=Pe({[`${P}-rtl`]:T,[`${A}`]:!0}),L=b?null:h.createVNode(W5e,{prefixCls:P,trigger:["hover"],visible:i.value,transitionName:w,onVisibleChange:o,overlayClassName:R,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:t.getPopupContainer},{overlay:()=>h.createVNode(gc,{onClick:D=>{let{key:B,domEvent:F}=D;$(B,F),o(!1)},id:c.value,tabindex:-1,role:"listbox","aria-activedescendant":f.value,selectedKeys:[a.value],"aria-label":M!==void 0?M:"expanded dropdown"},{default:()=>[m.map(D=>{var B,F;const z=x&&D.closable!==!1&&!D.disabled;return h.createVNode(Uv,{key:D.key,id:`${c.value}-${D.key}`,role:"option","aria-controls":g&&`${g}-panel-${D.key}`,disabled:D.disabled},{default:()=>[h.createVNode("span",null,[typeof D.tab=="function"?D.tab():D.tab]),z&&h.createVNode("button",{type:"button","aria-label":t.removeAriaLabel||"remove",tabindex:0,class:`${P}-menu-item-remove`,onClick:W=>{W.stopPropagation(),d(W,D.key)}},[((B=D.closeIcon)===null||B===void 0?void 0:B.call(D))||((F=x.removeIcon)===null||F===void 0?void 0:F.call(x))||"×"])]})})]}),default:()=>h.createVNode("button",{type:"button",class:`${v}-nav-more`,style:I,tabindex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":c.value,id:`${g}-more`,"aria-expanded":i.value,onKeydown:u},[O])});return h.createVNode("div",{class:Pe(`${v}-nav-operations`,n.class),style:n.style},[L,h.createVNode(Yre,{prefixCls:v,locale:y,editable:x},null)])}}}),qre=Symbol("tabsContextKey"),Kre=t=>{h.provide(qre,t)},Jre=()=>h.inject(qre,{tabs:h.ref([]),prefixCls:h.ref()});h.defineComponent({compatConfig:{MODE:3},name:"TabsContextProvider",inheritAttrs:!1,props:{tabs:{type:Object,default:void 0},prefixCls:{type:String,default:void 0}},setup(t,e){let{slots:n}=e;return Kre(h.toRefs(t)),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});const mBe=.1,Q7=.01,ix=20,H7=Math.pow(.995,ix);function yBe(t,e){const[n,r]=En(),[i,o]=En(0),[a,s]=En(0),[l,u]=En(),c=h.ref();function f(x){const{screenX:S,screenY:T}=x.touches[0];r({x:S,y:T}),clearInterval(c.value)}function d(x){if(!n.value)return;x.preventDefault();const{screenX:S,screenY:T}=x.touches[0],$=S-n.value.x,A=T-n.value.y;e($,A),r({x:S,y:T});const P=Date.now();s(P-i.value),o(P),u({x:$,y:A})}function p(){if(!n.value)return;const x=l.value;if(r(null),u(null),x){const S=x.x/a.value,T=x.y/a.value,$=Math.abs(S),A=Math.abs(T);if(Math.max($,A)<mBe)return;let P=S,M=T;c.value=setInterval(()=>{if(Math.abs(P)<Q7&&Math.abs(M)<Q7){clearInterval(c.value);return}P*=H7,M*=H7,e(P*ix,M*ix)},ix)}}const v=h.ref();function g(x){const{deltaX:S,deltaY:T}=x;let $=0;const A=Math.abs(S),P=Math.abs(T);A===P?$=v.value==="x"?S:T:A>P?($=S,v.value="x"):($=T,v.value="y"),e(-$,-$)&&x.preventDefault()}const m=h.ref({onTouchStart:f,onTouchMove:d,onTouchEnd:p,onWheel:g});function y(x){m.value.onTouchStart(x)}function b(x){m.value.onTouchMove(x)}function O(x){m.value.onTouchEnd(x)}function w(x){m.value.onWheel(x)}h.onMounted(()=>{var x,S;document.addEventListener("touchmove",b,{passive:!1}),document.addEventListener("touchend",O,{passive:!1}),(x=t.value)===null||x===void 0||x.addEventListener("touchstart",y,{passive:!1}),(S=t.value)===null||S===void 0||S.addEventListener("wheel",w,{passive:!1})}),h.onBeforeUnmount(()=>{document.removeEventListener("touchmove",b),document.removeEventListener("touchend",O)})}function G7(t,e){const n=h.ref(t);function r(i){const o=typeof i=="function"?i(n.value):i;o!==n.value&&e(o,n.value),n.value=o}return[n,r]}const bBe=()=>{const t=h.ref(new Map),e=n=>r=>{t.value.set(n,r)};return h.onBeforeUpdate(()=>{t.value=new Map}),[e,t]},j7={width:0,height:0,left:0,top:0,right:0},_Be=()=>({id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:zt(),editable:zt(),moreIcon:ne.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:zt(),popupClassName:String,getPopupContainer:ct(),onTabClick:{type:Function},onTabScroll:{type:Function}}),OBe=(t,e)=>{const{offsetWidth:n,offsetHeight:r,offsetTop:i,offsetLeft:o}=t,{width:a,height:s,x:l,y:u}=t.getBoundingClientRect();return Math.abs(a-n)<1?[a,s,l-e.x,u-e.y]:[n,r,o,i]},U7=h.defineComponent({compatConfig:{MODE:3},name:"TabNavList",inheritAttrs:!1,props:_Be(),slots:Object,emits:["tabClick","tabScroll"],setup(t,e){let{attrs:n,slots:r}=e;const{tabs:i,prefixCls:o}=Jre(),a=h.shallowRef(),s=h.shallowRef(),l=h.shallowRef(),u=h.shallowRef(),[c,f]=bBe(),d=h.computed(()=>t.tabPosition==="top"||t.tabPosition==="bottom"),[p,v]=G7(0,($e,_e)=>{d.value&&t.onTabScroll&&t.onTabScroll({direction:$e>_e?"left":"right"})}),[g,m]=G7(0,($e,_e)=>{!d.value&&t.onTabScroll&&t.onTabScroll({direction:$e>_e?"top":"bottom"})}),[y,b]=En(0),[O,w]=En(0),[x,S]=En(null),[T,$]=En(null),[A,P]=En(0),[M,I]=En(0),[R,L]=dBe(new Map),D=pBe(i,R),B=h.computed(()=>`${o.value}-nav-operations-hidden`),F=h.shallowRef(0),z=h.shallowRef(0);h.watchEffect(()=>{d.value?t.rtl?(F.value=0,z.value=Math.max(0,y.value-x.value)):(F.value=Math.min(0,x.value-y.value),z.value=0):(F.value=Math.min(0,T.value-O.value),z.value=0)});const W=$e=>$e<F.value?F.value:$e>z.value?z.value:$e,j=h.shallowRef(),[H,Z]=En(),J=()=>{Z(Date.now())},se=()=>{clearTimeout(j.value)},oe=($e,_e)=>{$e(De=>W(De+_e))};yBe(a,($e,_e)=>{if(d.value){if(x.value>=y.value)return!1;oe(v,$e)}else{if(T.value>=O.value)return!1;oe(m,_e)}return se(),J(),!0}),h.watch(H,()=>{se(),H.value&&(j.value=setTimeout(()=>{Z(0)},100))});const de=function(){let $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.activeKey;const _e=D.value.get($e)||{width:0,height:0,left:0,right:0,top:0};if(d.value){let De=p.value;t.rtl?_e.right<p.value?De=_e.right:_e.right+_e.width>p.value+x.value&&(De=_e.right+_e.width-x.value):_e.left<-p.value?De=-_e.left:_e.left+_e.width>-p.value+x.value&&(De=-(_e.left+_e.width-x.value)),m(0),v(W(De))}else{let De=g.value;_e.top<-g.value?De=-_e.top:_e.top+_e.height>-g.value+T.value&&(De=-(_e.top+_e.height-T.value)),v(0),m(W(De))}},re=h.shallowRef(0),ue=h.shallowRef(0);h.watchEffect(()=>{let $e,_e,De,ze,lt,gt;const Bt=D.value;["top","bottom"].includes(t.tabPosition)?($e="width",ze=x.value,lt=y.value,gt=A.value,_e=t.rtl?"right":"left",De=Math.abs(p.value)):($e="height",ze=T.value,lt=y.value,gt=M.value,_e="top",De=-g.value);let we=ze;lt+gt>ze&&lt<ze&&(we=ze-gt);const rt=i.value;if(!rt.length)return[re.value,ue.value]=[0,0];const At=rt.length;let vn=At;for(let ar=0;ar<At;ar+=1){const vi=Bt.get(rt[ar].key)||j7;if(vi[_e]+vi[$e]>De+we){vn=ar-1;break}}let cn=0;for(let ar=At-1;ar>=0;ar-=1)if((Bt.get(rt[ar].key)||j7)[_e]<De){cn=ar+1;break}return[re.value,ue.value]=[cn,vn]});const ee=()=>{L(()=>{var $e;const _e=new Map,De=($e=s.value)===null||$e===void 0?void 0:$e.getBoundingClientRect();return i.value.forEach(ze=>{let{key:lt}=ze;const gt=f.value.get(lt),Bt=(gt==null?void 0:gt.$el)||gt;if(Bt){const[we,rt,At,vn]=OBe(Bt,De);_e.set(lt,{width:we,height:rt,left:At,top:vn})}}),_e})};h.watch(()=>i.value.map($e=>$e.key).join("%%"),()=>{ee()},{flush:"post"});const X=()=>{var $e,_e,De,ze,lt;const gt=(($e=a.value)===null||$e===void 0?void 0:$e.offsetWidth)||0,Bt=((_e=a.value)===null||_e===void 0?void 0:_e.offsetHeight)||0,we=((De=u.value)===null||De===void 0?void 0:De.$el)||{},rt=we.offsetWidth||0,At=we.offsetHeight||0;S(gt),$(Bt),P(rt),I(At);const vn=(((ze=s.value)===null||ze===void 0?void 0:ze.offsetWidth)||0)-rt,cn=(((lt=s.value)===null||lt===void 0?void 0:lt.offsetHeight)||0)-At;b(vn),w(cn),ee()},Y=h.computed(()=>[...i.value.slice(0,re.value),...i.value.slice(ue.value+1)]),[le,ge]=En(),me=h.computed(()=>D.value.get(t.activeKey)),Ne=h.shallowRef(),Le=()=>{Rt.cancel(Ne.value)};h.watch([me,d,()=>t.rtl],()=>{const $e={};me.value&&(d.value?(t.rtl?$e.right=Pm(me.value.right):$e.left=Pm(me.value.left),$e.width=Pm(me.value.width)):($e.top=Pm(me.value.top),$e.height=Pm(me.value.height))),Le(),Ne.value=Rt(()=>{ge($e)})}),h.watch([()=>t.activeKey,me,D,d],()=>{de()},{flush:"post"}),h.watch([()=>t.rtl,()=>t.tabBarGutter,()=>t.activeKey,()=>i.value],()=>{X()},{flush:"post"});const Ee=$e=>{let{position:_e,prefixCls:De,extra:ze}=$e;if(!ze)return null;const lt=ze==null?void 0:ze({position:_e});return lt?h.createVNode("div",{class:`${De}-extra-content`},[lt]):null};return h.onBeforeUnmount(()=>{se(),Le()}),()=>{const{id:$e,animated:_e,activeKey:De,rtl:ze,editable:lt,locale:gt,tabPosition:Bt,tabBarGutter:we,onTabClick:rt}=t,{class:At,style:vn}=n,cn=o.value,ar=!!Y.value.length,vi=`${cn}-nav-wrap`;let bl,_l,wu,rf;d.value?ze?(_l=p.value>0,bl=p.value+x.value<y.value):(bl=p.value<0,_l=-p.value+x.value<y.value):(wu=g.value<0,rf=-g.value+T.value<O.value);const Os={};Bt==="top"||Bt==="bottom"?Os[ze?"marginRight":"marginLeft"]=typeof we=="number"?`${we}px`:we:Os.marginTop=typeof we=="number"?`${we}px`:we;const of=i.value.map((af,tm)=>{const{key:xu}=af;return h.createVNode(hBe,{id:$e,prefixCls:cn,key:xu,tab:af,style:tm===0?void 0:Os,closable:af.closable,editable:lt,active:xu===De,removeAriaLabel:gt==null?void 0:gt.removeAriaLabel,ref:c(xu),onClick:nm=>{rt(xu,nm)},onFocus:()=>{de(xu),J(),a.value&&(ze||(a.value.scrollLeft=0),a.value.scrollTop=0)}},r)});return h.createVNode("div",{role:"tablist",class:Pe(`${cn}-nav`,At),style:vn,onKeydown:()=>{J()}},[h.createVNode(Ee,{position:"left",prefixCls:cn,extra:r.leftExtra},null),h.createVNode(Vv,{onResize:X},{default:()=>[h.createVNode("div",{class:Pe(vi,{[`${vi}-ping-left`]:bl,[`${vi}-ping-right`]:_l,[`${vi}-ping-top`]:wu,[`${vi}-ping-bottom`]:rf}),ref:a},[h.createVNode(Vv,{onResize:X},{default:()=>[h.createVNode("div",{ref:s,class:`${cn}-nav-list`,style:{transform:`translate(${p.value}px, ${g.value}px)`,transition:H.value?"none":void 0}},[of,h.createVNode(Yre,{ref:u,prefixCls:cn,locale:gt,editable:lt,style:k(k({},of.length===0?void 0:Os),{visibility:ar?"hidden":null})},null),h.createVNode("div",{class:Pe(`${cn}-ink-bar`,{[`${cn}-ink-bar-animated`]:_e.inkBar}),style:le.value},null)])]})])]}),h.createVNode(gBe,K(K({},t),{},{removeAriaLabel:gt==null?void 0:gt.removeAriaLabel,ref:l,prefixCls:cn,tabs:Y.value,class:!ar&&B.value}),$v(r,["moreIcon"])),h.createVNode(Ee,{position:"right",prefixCls:cn,extra:r.rightExtra},null),h.createVNode(Ee,{position:"right",prefixCls:cn,extra:r.tabBarExtraContent},null)])}}}),wBe=h.defineComponent({compatConfig:{MODE:3},name:"TabPanelList",inheritAttrs:!1,props:{activeKey:{type:[String,Number]},id:{type:String},rtl:{type:Boolean},animated:{type:Object,default:void 0},tabPosition:{type:String},destroyInactiveTabPane:{type:Boolean}},setup(t){const{tabs:e,prefixCls:n}=Jre();return()=>{const{id:r,activeKey:i,animated:o,tabPosition:a,rtl:s,destroyInactiveTabPane:l}=t,u=o.tabPane,c=n.value,f=e.value.findIndex(d=>d.key===i);return h.createVNode("div",{class:`${c}-content-holder`},[h.createVNode("div",{class:[`${c}-content`,`${c}-content-${a}`,{[`${c}-content-animated`]:u}],style:f&&u?{[s?"marginRight":"marginLeft"]:`-${f}00%`}:null},[e.value.map(d=>Xn(d.node,{key:d.key,prefixCls:c,tabKey:d.key,id:r,animated:u,active:d.key===i,destroyInactiveTabPane:l}))])])}}});var xBe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};function Z7(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){SBe(t,i,n[i])})}return t}function SBe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var XT=function(e,n){var r=Z7({},e,n.attrs);return h.createVNode(yt,Z7({},r,{icon:xBe}),null)};XT.displayName="PlusOutlined";XT.inheritAttrs=!1;const CBe=t=>{const{componentCls:e,motionDurationSlow:n}=t;return[{[e]:{[`${e}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[jv(t,"slide-up"),jv(t,"slide-down")]]},TBe=t=>{const{componentCls:e,tabsCardHorizontalPadding:n,tabsCardHeadBackground:r,tabsCardGutter:i,colorSplit:o}=t;return{[`${e}-card`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab`]:{margin:0,padding:n,background:r,border:`${t.lineWidth}px ${t.lineType} ${o}`,transition:`all ${t.motionDurationSlow} ${t.motionEaseInOut}`},[`${e}-tab-active`]:{color:t.colorPrimary,background:t.colorBgContainer},[`${e}-ink-bar`]:{visibility:"hidden"}},[`&${e}-top, &${e}-bottom`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab + ${e}-tab`]:{marginLeft:{_skip_check_:!0,value:`${i}px`}}}},[`&${e}-top`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab`]:{borderRadius:`${t.borderRadiusLG}px ${t.borderRadiusLG}px 0 0`},[`${e}-tab-active`]:{borderBottomColor:t.colorBgContainer}}},[`&${e}-bottom`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab`]:{borderRadius:`0 0 ${t.borderRadiusLG}px ${t.borderRadiusLG}px`},[`${e}-tab-active`]:{borderTopColor:t.colorBgContainer}}},[`&${e}-left, &${e}-right`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab + ${e}-tab`]:{marginTop:`${i}px`}}},[`&${e}-left`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab`]:{borderRadius:{_skip_check_:!0,value:`${t.borderRadiusLG}px 0 0 ${t.borderRadiusLG}px`}},[`${e}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:t.colorBgContainer}}}},[`&${e}-right`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${t.borderRadiusLG}px ${t.borderRadiusLG}px 0`}},[`${e}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:t.colorBgContainer}}}}}}},PBe=t=>{const{componentCls:e,tabsHoverColor:n,dropdownEdgeChildVerticalPadding:r}=t;return{[`${e}-dropdown`]:k(k({},On(t)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:t.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${e}-dropdown-menu`]:{maxHeight:t.tabsDropdownHeight,margin:0,padding:`${r}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:t.colorBgContainer,backgroundClip:"padding-box",borderRadius:t.borderRadiusLG,outline:"none",boxShadow:t.boxShadowSecondary,"&-item":k(k({},Wv),{display:"flex",alignItems:"center",minWidth:t.tabsDropdownWidth,margin:0,padding:`${t.paddingXXS}px ${t.paddingSM}px`,color:t.colorText,fontWeight:"normal",fontSize:t.fontSize,lineHeight:t.lineHeight,cursor:"pointer",transition:`all ${t.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:t.marginSM},color:t.colorTextDescription,fontSize:t.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:t.controlItemBgHover},"&-disabled":{"&, &:hover":{color:t.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},$Be=t=>{const{componentCls:e,margin:n,colorSplit:r}=t;return{[`${e}-top, ${e}-bottom`]:{flexDirection:"column",[`> ${e}-nav, > div > ${e}-nav`]:{margin:`0 0 ${n}px 0`,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${t.lineWidth}px ${t.lineType} ${r}`,content:"''"},[`${e}-ink-bar`]:{height:t.lineWidthBold,"&-animated":{transition:`width ${t.motionDurationSlow}, left ${t.motionDurationSlow},
  208. right ${t.motionDurationSlow}`}},[`${e}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:t.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:t.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:t.boxShadowTabsOverflowRight},[`&${e}-nav-wrap-ping-left::before`]:{opacity:1},[`&${e}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${e}-top`]:{[`> ${e}-nav,
  209. > div > ${e}-nav`]:{"&::before":{bottom:0},[`${e}-ink-bar`]:{bottom:0}}},[`${e}-bottom`]:{[`> ${e}-nav, > div > ${e}-nav`]:{order:1,marginTop:`${n}px`,marginBottom:0,"&::before":{top:0},[`${e}-ink-bar`]:{top:0}},[`> ${e}-content-holder, > div > ${e}-content-holder`]:{order:0}},[`${e}-left, ${e}-right`]:{[`> ${e}-nav, > div > ${e}-nav`]:{flexDirection:"column",minWidth:t.controlHeight*1.25,[`${e}-tab`]:{padding:`${t.paddingXS}px ${t.paddingLG}px`,textAlign:"center"},[`${e}-tab + ${e}-tab`]:{margin:`${t.margin}px 0 0 0`},[`${e}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:t.controlHeight},"&::before":{top:0,boxShadow:t.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:t.boxShadowTabsOverflowBottom},[`&${e}-nav-wrap-ping-top::before`]:{opacity:1},[`&${e}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${e}-ink-bar`]:{width:t.lineWidthBold,"&-animated":{transition:`height ${t.motionDurationSlow}, top ${t.motionDurationSlow}`}},[`${e}-nav-list, ${e}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${e}-left`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${e}-content-holder, > div > ${e}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${t.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${t.lineWidth}px ${t.lineType} ${t.colorBorder}`},[`> ${e}-content > ${e}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:t.paddingLG}}}},[`${e}-right`]:{[`> ${e}-nav, > div > ${e}-nav`]:{order:1,[`${e}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${e}-content-holder, > div > ${e}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-t.lineWidth},borderRight:{_skip_check_:!0,value:`${t.lineWidth}px ${t.lineType} ${t.colorBorder}`},[`> ${e}-content > ${e}-tabpane`]:{paddingRight:{_skip_check_:!0,value:t.paddingLG}}}}}},ABe=t=>{const{componentCls:e,padding:n}=t;return{[e]:{"&-small":{[`> ${e}-nav`]:{[`${e}-tab`]:{padding:`${t.paddingXS}px 0`,fontSize:t.fontSize}}},"&-large":{[`> ${e}-nav`]:{[`${e}-tab`]:{padding:`${n}px 0`,fontSize:t.fontSizeLG}}}},[`${e}-card`]:{[`&${e}-small`]:{[`> ${e}-nav`]:{[`${e}-tab`]:{padding:`${t.paddingXXS*1.5}px ${n}px`}},[`&${e}-bottom`]:{[`> ${e}-nav ${e}-tab`]:{borderRadius:`0 0 ${t.borderRadius}px ${t.borderRadius}px`}},[`&${e}-top`]:{[`> ${e}-nav ${e}-tab`]:{borderRadius:`${t.borderRadius}px ${t.borderRadius}px 0 0`}},[`&${e}-right`]:{[`> ${e}-nav ${e}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${t.borderRadius}px ${t.borderRadius}px 0`}}},[`&${e}-left`]:{[`> ${e}-nav ${e}-tab`]:{borderRadius:{_skip_check_:!0,value:`${t.borderRadius}px 0 0 ${t.borderRadius}px`}}}},[`&${e}-large`]:{[`> ${e}-nav`]:{[`${e}-tab`]:{padding:`${t.paddingXS}px ${n}px ${t.paddingXXS*1.5}px`}}}}}},EBe=t=>{const{componentCls:e,tabsActiveColor:n,tabsHoverColor:r,iconCls:i,tabsHorizontalGutter:o}=t,a=`${e}-tab`;return{[a]:{position:"relative",display:"inline-flex",alignItems:"center",padding:`${t.paddingSM}px 0`,fontSize:`${t.fontSize}px`,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":k({"&:focus:not(:focus-visible), &:active":{color:n}},AT(t)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-t.marginXXS},marginLeft:{_skip_check_:!0,value:t.marginXS},color:t.colorTextDescription,fontSize:t.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${t.motionDurationSlow}`,"&:hover":{color:t.colorTextHeading}},"&:hover":{color:r},[`&${a}-active ${a}-btn`]:{color:t.colorPrimary,textShadow:t.tabsActiveTextShadow},[`&${a}-disabled`]:{color:t.colorTextDisabled,cursor:"not-allowed"},[`&${a}-disabled ${a}-btn, &${a}-disabled ${e}-remove`]:{"&:focus, &:active":{color:t.colorTextDisabled}},[`& ${a}-remove ${i}`]:{margin:0},[i]:{marginRight:{_skip_check_:!0,value:t.marginSM}}},[`${a} + ${a}`]:{margin:{_skip_check_:!0,value:`0 0 0 ${o}px`}}}},MBe=t=>{const{componentCls:e,tabsHorizontalGutter:n,iconCls:r,tabsCardGutter:i}=t;return{[`${e}-rtl`]:{direction:"rtl",[`${e}-nav`]:{[`${e}-tab`]:{margin:{_skip_check_:!0,value:`0 0 0 ${n}px`},[`${e}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${t.marginSM}px`}},[`${e}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${t.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${t.marginXXS}px`},[r]:{margin:0}}}},[`&${e}-left`]:{[`> ${e}-nav`]:{order:1},[`> ${e}-content-holder`]:{order:0}},[`&${e}-right`]:{[`> ${e}-nav`]:{order:0},[`> ${e}-content-holder`]:{order:1}},[`&${e}-card${e}-top, &${e}-card${e}-bottom`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab + ${e}-tab`]:{marginRight:{_skip_check_:!0,value:`${i}px`},marginLeft:{_skip_check_:!0,value:0}}}}},[`${e}-dropdown-rtl`]:{direction:"rtl"},[`${e}-menu-item`]:{[`${e}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},IBe=t=>{const{componentCls:e,tabsCardHorizontalPadding:n,tabsCardHeight:r,tabsCardGutter:i,tabsHoverColor:o,tabsActiveColor:a,colorSplit:s}=t;return{[e]:k(k(k(k({},On(t)),{display:"flex",[`> ${e}-nav, > div > ${e}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${e}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${t.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${e}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${t.motionDurationSlow}`},[`${e}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${e}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${e}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:t.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${e}-nav-add`]:k({minWidth:`${r}px`,marginLeft:{_skip_check_:!0,value:`${i}px`},padding:`0 ${t.paddingXS}px`,background:"transparent",border:`${t.lineWidth}px ${t.lineType} ${s}`,borderRadius:`${t.borderRadiusLG}px ${t.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:t.colorText,transition:`all ${t.motionDurationSlow} ${t.motionEaseInOut}`,"&:hover":{color:o},"&:active, &:focus:not(:focus-visible)":{color:a}},AT(t))},[`${e}-extra-content`]:{flex:"none"},[`${e}-ink-bar`]:{position:"absolute",background:t.colorPrimary,pointerEvents:"none"}}),EBe(t)),{[`${e}-content`]:{position:"relative",display:"flex",width:"100%","&-animated":{transition:"margin 0.3s"}},[`${e}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${e}-tabpane`]:{outline:"none",flex:"none",width:"100%"}}),[`${e}-centered`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-nav-wrap`]:{[`&:not([class*='${e}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},DBe=Wn("Tabs",t=>{const e=t.controlHeightLG,n=qt(t,{tabsHoverColor:t.colorPrimaryHover,tabsActiveColor:t.colorPrimaryActive,tabsCardHorizontalPadding:`${(e-Math.round(t.fontSize*t.lineHeight))/2-t.lineWidth}px ${t.padding}px`,tabsCardHeight:e,tabsCardGutter:t.marginXXS/2,tabsHorizontalGutter:32,tabsCardHeadBackground:t.colorFillAlter,dropdownEdgeChildVerticalPadding:t.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120});return[ABe(n),MBe(n),$Be(n),PBe(n),TBe(n),IBe(n),CBe(n)]},t=>({zIndexPopup:t.zIndexPopupBase+50}));let X7=0;const eie=()=>({prefixCls:{type:String},id:{type:String},popupClassName:String,getPopupContainer:ct(),activeKey:{type:[String,Number]},defaultActiveKey:{type:[String,Number]},direction:In(),animated:kn([Boolean,Object]),renderTabBar:ct(),tabBarGutter:{type:Number},tabBarStyle:zt(),tabPosition:In(),destroyInactiveTabPane:ft(),hideAdd:Boolean,type:In(),size:In(),centered:Boolean,onEdit:ct(),onChange:ct(),onTabClick:ct(),onTabScroll:ct(),"onUpdate:activeKey":ct(),locale:zt(),onPrevClick:ct(),onNextClick:ct(),tabBarExtraContent:ne.any});function RBe(t){return t.map(e=>{if(No(e)){const n=k({},e.props||{});for(const[d,p]of Object.entries(n))delete n[d],n[FL(d)]=p;const r=e.children||{},i=e.key!==void 0?e.key:void 0,{tab:o=r.tab,disabled:a,forceRender:s,closable:l,animated:u,active:c,destroyInactiveTabPane:f}=n;return k(k({key:i},n),{node:e,closeIcon:r.closeIcon,tab:o,disabled:a===""||a,forceRender:s===""||s,closable:l===""||l,animated:u===""||u,active:c===""||c,destroyInactiveTabPane:f===""||f})}return null}).filter(e=>e)}const kBe=h.defineComponent({compatConfig:{MODE:3},name:"InternalTabs",inheritAttrs:!1,props:k(k({},Ir(eie(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}})),{tabs:Jd()}),slots:Object,setup(t,e){let{attrs:n,slots:r}=e;Io(t.onPrevClick===void 0&&t.onNextClick===void 0,"Tabs","`onPrevClick / @prevClick` and `onNextClick / @nextClick` has been removed. Please use `onTabScroll / @tabScroll` instead."),Io(t.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` prop has been removed. Please use `rightExtra` slot instead."),Io(r.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` slot is deprecated. Please use `rightExtra` slot instead.");const{prefixCls:i,direction:o,size:a,rootPrefixCls:s,getPopupContainer:l}=Gt("tabs",t),[u,c]=DBe(i),f=h.computed(()=>o.value==="rtl"),d=h.computed(()=>{const{animated:T,tabPosition:$}=t;return T===!1||["left","right"].includes($)?{inkBar:!1,tabPane:!1}:T===!0?{inkBar:!0,tabPane:!0}:k({inkBar:!0,tabPane:!1},typeof T=="object"?T:{})}),[p,v]=En(!1);h.onMounted(()=>{v(c4())});const[g,m]=Gv(()=>{var T;return(T=t.tabs[0])===null||T===void 0?void 0:T.key},{value:h.computed(()=>t.activeKey),defaultValue:t.defaultActiveKey}),[y,b]=En(()=>t.tabs.findIndex(T=>T.key===g.value));h.watchEffect(()=>{var T;let $=t.tabs.findIndex(A=>A.key===g.value);$===-1&&($=Math.max(0,Math.min(y.value,t.tabs.length-1)),m((T=t.tabs[$])===null||T===void 0?void 0:T.key)),b($)});const[O,w]=Gv(null,{value:h.computed(()=>t.id)}),x=h.computed(()=>p.value&&!["left","right"].includes(t.tabPosition)?"top":t.tabPosition);h.onMounted(()=>{t.id||(w(`rc-tabs-${process.env.NODE_ENV==="test"?"test":X7}`),X7+=1)});const S=(T,$)=>{var A,P;(A=t.onTabClick)===null||A===void 0||A.call(t,T,$);const M=T!==g.value;m(T),M&&((P=t.onChange)===null||P===void 0||P.call(t,T))};return Kre({tabs:h.computed(()=>t.tabs),prefixCls:i}),()=>{const{id:T,type:$,tabBarGutter:A,tabBarStyle:P,locale:M,destroyInactiveTabPane:I,renderTabBar:R=r.renderTabBar,onTabScroll:L,hideAdd:D,centered:B}=t,F={id:O.value,activeKey:g.value,animated:d.value,tabPosition:x.value,rtl:f.value,mobile:p.value};let z;$==="editable-card"&&(z={onEdit:(Z,J)=>{let{key:se,event:oe}=J;var de;(de=t.onEdit)===null||de===void 0||de.call(t,Z==="add"?oe:se,Z)},removeIcon:()=>h.createVNode(mu,null,null),addIcon:r.addIcon?r.addIcon:()=>h.createVNode(XT,null,null),showAdd:D!==!0});let W;const j=k(k({},F),{moreTransitionName:`${s.value}-slide-up`,editable:z,locale:M,tabBarGutter:A,onTabClick:S,onTabScroll:L,style:P,getPopupContainer:l.value,popupClassName:Pe(t.popupClassName,c.value)});R?W=R(k(k({},j),{DefaultTabBar:U7})):W=h.createVNode(U7,j,$v(r,["moreIcon","leftExtra","rightExtra","tabBarExtraContent"]));const H=i.value;return u(h.createVNode("div",K(K({},n),{},{id:T,class:Pe(H,`${H}-${x.value}`,{[c.value]:!0,[`${H}-${a.value}`]:a.value,[`${H}-card`]:["card","editable-card"].includes($),[`${H}-editable-card`]:$==="editable-card",[`${H}-centered`]:B,[`${H}-mobile`]:p.value,[`${H}-editable`]:$==="editable-card",[`${H}-rtl`]:f.value},n.class)}),[W,h.createVNode(wBe,K(K({destroyInactiveTabPane:I},F),{},{animated:d.value}),null)]))}}}),Rd=h.defineComponent({compatConfig:{MODE:3},name:"ATabs",inheritAttrs:!1,props:Ir(eie(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}}),slots:Object,setup(t,e){let{attrs:n,slots:r,emit:i}=e;const o=a=>{i("update:activeKey",a),i("change",a)};return()=>{var a;const s=RBe(wr((a=r.default)===null||a===void 0?void 0:a.call(r)));return h.createVNode(kBe,K(K(K({},Mr(t,["onUpdate:activeKey"])),n),{},{onChange:o,tabs:s}),r)}}}),NBe=()=>({tab:ne.any,disabled:{type:Boolean},forceRender:{type:Boolean},closable:{type:Boolean},animated:{type:Boolean},active:{type:Boolean},destroyInactiveTabPane:{type:Boolean},prefixCls:{type:String},tabKey:{type:[String,Number]},id:{type:String}}),nu=h.defineComponent({compatConfig:{MODE:3},name:"ATabPane",inheritAttrs:!1,__ANT_TAB_PANE:!0,props:NBe(),slots:Object,setup(t,e){let{attrs:n,slots:r}=e;const i=h.ref(t.forceRender);h.watch([()=>t.active,()=>t.destroyInactiveTabPane],()=>{t.active?i.value=!0:t.destroyInactiveTabPane&&(i.value=!1)},{immediate:!0});const o=h.computed(()=>t.active?{}:t.animated?{visibility:"hidden",height:0,overflowY:"hidden"}:{display:"none"});return()=>{var a;const{prefixCls:s,forceRender:l,id:u,active:c,tabKey:f}=t;return h.createVNode("div",{id:u&&`${u}-panel-${f}`,role:"tabpanel",tabindex:c?0:-1,"aria-labelledby":u&&`${u}-tab-${f}`,"aria-hidden":!c,style:[o.value,n.style],class:[`${s}-tabpane`,c&&`${s}-tabpane-active`,n.class]},[(c||i.value||l)&&((a=r.default)===null||a===void 0?void 0:a.call(r))])}}});Rd.TabPane=nu;Rd.install=function(t){return t.component(Rd.name,Rd),t.component(nu.name,nu),t};const LBe=()=>({prefixCls:String,activeKey:kn([Array,Number,String]),defaultActiveKey:kn([Array,Number,String]),accordion:ft(),destroyInactivePanel:ft(),bordered:ft(),expandIcon:ct(),openAnimation:ne.object,expandIconPosition:In(),collapsible:In(),ghost:ft(),onChange:ct(),"onUpdate:activeKey":ct()}),tie=()=>({openAnimation:ne.object,prefixCls:String,header:ne.any,headerClass:String,showArrow:ft(),isActive:ft(),destroyInactivePanel:ft(),disabled:ft(),accordion:ft(),forceRender:ft(),expandIcon:ct(),extra:ne.any,panelKey:kn(),collapsible:In(),role:String,onItemClick:ct()}),BBe=t=>{const{componentCls:e,collapseContentBg:n,padding:r,collapseContentPaddingHorizontal:i,collapseHeaderBg:o,collapseHeaderPadding:a,collapsePanelBorderRadius:s,lineWidth:l,lineType:u,colorBorder:c,colorText:f,colorTextHeading:d,colorTextDisabled:p,fontSize:v,lineHeight:g,marginSM:m,paddingSM:y,motionDurationSlow:b,fontSizeIcon:O}=t,w=`${l}px ${u} ${c}`;return{[e]:k(k({},On(t)),{backgroundColor:o,border:w,borderBottom:0,borderRadius:`${s}px`,"&-rtl":{direction:"rtl"},[`& > ${e}-item`]:{borderBottom:w,"&:last-child":{[`
  210. &,
  211. & > ${e}-header`]:{borderRadius:`0 0 ${s}px ${s}px`}},[`> ${e}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:a,color:d,lineHeight:g,cursor:"pointer",transition:`all ${b}, visibility 0s`,[`> ${e}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${e}-expand-icon`]:{height:v*g,display:"flex",alignItems:"center",paddingInlineEnd:m},[`${e}-arrow`]:k(k({},xg()),{fontSize:O,svg:{transition:`transform ${b}`}}),[`${e}-header-text`]:{marginInlineEnd:"auto"}},[`${e}-header-collapsible-only`]:{cursor:"default",[`${e}-header-text`]:{flex:"none",cursor:"pointer"},[`${e}-expand-icon`]:{cursor:"pointer"}},[`${e}-icon-collapsible-only`]:{cursor:"default",[`${e}-expand-icon`]:{cursor:"pointer"}},[`&${e}-no-arrow`]:{[`> ${e}-header`]:{paddingInlineStart:y}}},[`${e}-content`]:{color:f,backgroundColor:n,borderTop:w,[`& > ${e}-content-box`]:{padding:`${r}px ${i}px`},"&-hidden":{display:"none"}},[`${e}-item:last-child`]:{[`> ${e}-content`]:{borderRadius:`0 0 ${s}px ${s}px`}},[`& ${e}-item-disabled > ${e}-header`]:{"\n &,\n & > .arrow\n ":{color:p,cursor:"not-allowed"}},[`&${e}-icon-position-end`]:{[`& > ${e}-item`]:{[`> ${e}-header`]:{[`${e}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:m}}}}})}},VBe=t=>{const{componentCls:e}=t,n=`> ${e}-item > ${e}-header ${e}-arrow svg`;return{[`${e}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},zBe=t=>{const{componentCls:e,collapseHeaderBg:n,paddingXXS:r,colorBorder:i}=t;return{[`${e}-borderless`]:{backgroundColor:n,border:0,[`> ${e}-item`]:{borderBottom:`1px solid ${i}`},[`
  212. > ${e}-item:last-child,
  213. > ${e}-item:last-child ${e}-header
  214. `]:{borderRadius:0},[`> ${e}-item:last-child`]:{borderBottom:0},[`> ${e}-item > ${e}-content`]:{backgroundColor:"transparent",borderTop:0},[`> ${e}-item > ${e}-content > ${e}-content-box`]:{paddingTop:r}}}},FBe=t=>{const{componentCls:e,paddingSM:n}=t;return{[`${e}-ghost`]:{backgroundColor:"transparent",border:0,[`> ${e}-item`]:{borderBottom:0,[`> ${e}-content`]:{backgroundColor:"transparent",border:0,[`> ${e}-content-box`]:{paddingBlock:n}}}}}},WBe=Wn("Collapse",t=>{const e=qt(t,{collapseContentBg:t.colorBgContainer,collapseHeaderBg:t.colorFillAlter,collapseHeaderPadding:`${t.paddingSM}px ${t.padding}px`,collapsePanelBorderRadius:t.borderRadiusLG,collapseContentPaddingHorizontal:16});return[BBe(e),zBe(e),FBe(e),VBe(e),O4(e)]});function Y7(t){let e=t;if(!Array.isArray(e)){const n=typeof e;e=n==="number"||n==="string"?[e]:[]}return e.map(n=>String(n))}const K0=h.defineComponent({compatConfig:{MODE:3},name:"ACollapse",inheritAttrs:!1,props:Ir(LBe(),{accordion:!1,destroyInactivePanel:!1,bordered:!0,expandIconPosition:"start"}),slots:Object,setup(t,e){let{attrs:n,slots:r,emit:i}=e;const o=h.ref(Y7(_re([t.activeKey,t.defaultActiveKey])));h.watch(()=>t.activeKey,()=>{o.value=Y7(t.activeKey)},{deep:!0});const{prefixCls:a,direction:s,rootPrefixCls:l}=Gt("collapse",t),[u,c]=WBe(a),f=h.computed(()=>{const{expandIconPosition:y}=t;return y!==void 0?y:s.value==="rtl"?"end":"start"}),d=y=>{const{expandIcon:b=r.expandIcon}=t,O=b?b(y):h.createVNode(jT,{rotate:y.isActive?90:void 0},null);return h.createVNode("div",{class:[`${a.value}-expand-icon`,c.value],onClick:()=>["header","icon"].includes(t.collapsible)&&v(y.panelKey)},[No(Array.isArray(b)?O[0]:O)?Xn(O,{class:`${a.value}-arrow`},!1):O])},p=y=>{t.activeKey===void 0&&(o.value=y);const b=t.accordion?y[0]:y;i("update:activeKey",b),i("change",b)},v=y=>{let b=o.value;if(t.accordion)b=b[0]===y?[]:[y];else{b=[...b];const O=b.indexOf(y);O>-1?b.splice(O,1):b.push(y)}p(b)},g=(y,b)=>{var O,w,x;if(WL(y))return;const S=o.value,{accordion:T,destroyInactivePanel:$,collapsible:A,openAnimation:P}=t,M=P||E4(`${l.value}-motion-collapse`),I=String((O=y.key)!==null&&O!==void 0?O:b),{header:R=(x=(w=y.children)===null||w===void 0?void 0:w.header)===null||x===void 0?void 0:x.call(w),headerClass:L,collapsible:D,disabled:B}=y.props||{};let F=!1;T?F=S[0]===I:F=S.indexOf(I)>-1;let z=D??A;(B||B==="")&&(z="disabled");const W={key:I,panelKey:I,header:R,headerClass:L,isActive:F,prefixCls:a.value,destroyInactivePanel:$,openAnimation:M,accordion:T,onItemClick:z==="disabled"?null:v,expandIcon:d,collapsible:z};return Xn(y,W)},m=()=>{var y;return wr((y=r.default)===null||y===void 0?void 0:y.call(r)).map(g)};return()=>{const{accordion:y,bordered:b,ghost:O}=t,w=Pe(a.value,{[`${a.value}-borderless`]:!b,[`${a.value}-icon-position-${f.value}`]:!0,[`${a.value}-rtl`]:s.value==="rtl",[`${a.value}-ghost`]:!!O,[n.class]:!!n.class},c.value);return u(h.createVNode("div",K(K({class:w},ADe(n)),{},{style:n.style,role:y?"tablist":null}),[m()]))}}}),QBe=h.defineComponent({compatConfig:{MODE:3},name:"PanelContent",props:tie(),setup(t,e){let{slots:n}=e;const r=h.shallowRef(!1);return h.watchEffect(()=>{(t.isActive||t.forceRender)&&(r.value=!0)}),()=>{var i;if(!r.value)return null;const{prefixCls:o,isActive:a,role:s}=t;return h.createVNode("div",{class:Pe(`${o}-content`,{[`${o}-content-active`]:a,[`${o}-content-inactive`]:!a}),role:s},[h.createVNode("div",{class:`${o}-content-box`},[(i=n.default)===null||i===void 0?void 0:i.call(n)])])}}}),mS=h.defineComponent({compatConfig:{MODE:3},name:"ACollapsePanel",inheritAttrs:!1,props:Ir(tie(),{showArrow:!0,isActive:!1,onItemClick(){},headerClass:"",forceRender:!1}),slots:Object,setup(t,e){let{slots:n,emit:r,attrs:i}=e;Io(t.disabled===void 0,"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');const{prefixCls:o}=Gt("collapse",t),a=()=>{r("itemClick",t.panelKey)},s=l=>{(l.key==="Enter"||l.keyCode===13||l.which===13)&&a()};return()=>{var l,u;const{header:c=(l=n.header)===null||l===void 0?void 0:l.call(n),headerClass:f,isActive:d,showArrow:p,destroyInactivePanel:v,accordion:g,forceRender:m,openAnimation:y,expandIcon:b=n.expandIcon,extra:O=(u=n.extra)===null||u===void 0?void 0:u.call(n),collapsible:w}=t,x=w==="disabled",S=o.value,T=Pe(`${S}-header`,{[f]:f,[`${S}-header-collapsible-only`]:w==="header",[`${S}-icon-collapsible-only`]:w==="icon"}),$=Pe({[`${S}-item`]:!0,[`${S}-item-active`]:d,[`${S}-item-disabled`]:x,[`${S}-no-arrow`]:!p,[`${i.class}`]:!!i.class});let A=h.createVNode("i",{class:"arrow"},null);p&&typeof b=="function"&&(A=b(t));const P=h.withDirectives(h.createVNode(QBe,{prefixCls:S,isActive:d,forceRender:m,role:g?"tabpanel":null},{default:n.default}),[[h.vShow,d]]),M=k({appear:!1,css:!1},y);return h.createVNode("div",K(K({},i),{},{class:$}),[h.createVNode("div",{class:T,onClick:()=>!["header","icon"].includes(w)&&a(),role:g?"tab":"button",tabindex:x?-1:0,"aria-expanded":d,onKeypress:s},[p&&A,h.createVNode("span",{onClick:()=>w==="header"&&a(),class:`${S}-header-text`},[c]),O&&h.createVNode("div",{class:`${S}-extra`},[O])]),h.createVNode(h.Transition,M,{default:()=>[!v||d?P:null]})])}}});K0.Panel=mS;K0.install=function(t){return t.component(K0.name,K0),t.component(mS.name,mS),t};var HBe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"};function q7(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){GBe(t,i,n[i])})}return t}function GBe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var I4=function(e,n){var r=q7({},e,n.attrs);return h.createVNode(yt,q7({},r,{icon:HBe}),null)};I4.displayName="LeftOutlined";I4.inheritAttrs=!1;const nie=()=>Sa()&&window.document.documentElement;let lO;const jBe=()=>{if(!nie())return!1;if(lO!==void 0)return lO;const t=document.createElement("div");return t.style.display="flex",t.style.flexDirection="column",t.style.rowGap="1px",t.appendChild(document.createElement("div")),t.appendChild(document.createElement("div")),document.body.appendChild(t),lO=t.scrollHeight===1,document.body.removeChild(t),lO},UBe=()=>{const t=h.shallowRef(!1);return h.onMounted(()=>{t.value=jBe()}),t},rie=Symbol("rowContextKey"),ZBe=t=>{h.provide(rie,t)},XBe=()=>h.inject(rie,{gutter:h.computed(()=>{}),wrap:h.computed(()=>{}),supportFlexGap:h.computed(()=>{})}),YBe=t=>{const{componentCls:e}=t;return{[e]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around ":{justifyContent:"space-around"},"&-space-evenly ":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},qBe=t=>{const{componentCls:e}=t;return{[e]:{position:"relative",maxWidth:"100%",minHeight:1}}},KBe=(t,e)=>{const{componentCls:n,gridColumns:r}=t,i={};for(let o=r;o>=0;o--)o===0?(i[`${n}${e}-${o}`]={display:"none"},i[`${n}-push-${o}`]={insetInlineStart:"auto"},i[`${n}-pull-${o}`]={insetInlineEnd:"auto"},i[`${n}${e}-push-${o}`]={insetInlineStart:"auto"},i[`${n}${e}-pull-${o}`]={insetInlineEnd:"auto"},i[`${n}${e}-offset-${o}`]={marginInlineEnd:0},i[`${n}${e}-order-${o}`]={order:0}):(i[`${n}${e}-${o}`]={display:"block",flex:`0 0 ${o/r*100}%`,maxWidth:`${o/r*100}%`},i[`${n}${e}-push-${o}`]={insetInlineStart:`${o/r*100}%`},i[`${n}${e}-pull-${o}`]={insetInlineEnd:`${o/r*100}%`},i[`${n}${e}-offset-${o}`]={marginInlineStart:`${o/r*100}%`},i[`${n}${e}-order-${o}`]={order:o});return i},FD=(t,e)=>KBe(t,e),JBe=(t,e,n)=>({[`@media (min-width: ${e}px)`]:k({},FD(t,n))}),e6e=Wn("Grid",t=>[YBe(t)]),t6e=Wn("Grid",t=>{const e=qt(t,{gridColumns:24}),n={"-sm":e.screenSMMin,"-md":e.screenMDMin,"-lg":e.screenLGMin,"-xl":e.screenXLMin,"-xxl":e.screenXXLMin};return[qBe(e),FD(e,""),FD(e,"-xs"),Object.keys(n).map(r=>JBe(e,n[r],r)).reduce((r,i)=>k(k({},r),i),{})]}),n6e=()=>({align:kn([String,Object]),justify:kn([String,Object]),prefixCls:String,gutter:kn([Number,Array,Object],0),wrap:{type:Boolean,default:void 0}}),r6e=h.defineComponent({compatConfig:{MODE:3},name:"ARow",inheritAttrs:!1,props:n6e(),setup(t,e){let{slots:n,attrs:r}=e;const{prefixCls:i,direction:o}=Gt("row",t),[a,s]=e6e(i);let l;const u=w5e(),c=h.ref({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),f=h.ref({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),d=O=>h.computed(()=>{if(typeof t[O]=="string")return t[O];if(typeof t[O]!="object")return"";for(let w=0;w<iO.length;w++){const x=iO[w];if(!f.value[x])continue;const S=t[O][x];if(S!==void 0)return S}return""}),p=d("align"),v=d("justify"),g=UBe();h.onMounted(()=>{l=u.value.subscribe(O=>{f.value=O;const w=t.gutter||0;(!Array.isArray(w)&&typeof w=="object"||Array.isArray(w)&&(typeof w[0]=="object"||typeof w[1]=="object"))&&(c.value=O)})}),h.onBeforeUnmount(()=>{u.value.unsubscribe(l)});const m=h.computed(()=>{const O=[void 0,void 0],{gutter:w=0}=t;return(Array.isArray(w)?w:[w,void 0]).forEach((S,T)=>{if(typeof S=="object")for(let $=0;$<iO.length;$++){const A=iO[$];if(c.value[A]&&S[A]!==void 0){O[T]=S[A];break}}else O[T]=S}),O});ZBe({gutter:m,supportFlexGap:g,wrap:h.computed(()=>t.wrap)});const y=h.computed(()=>Pe(i.value,{[`${i.value}-no-wrap`]:t.wrap===!1,[`${i.value}-${v.value}`]:v.value,[`${i.value}-${p.value}`]:p.value,[`${i.value}-rtl`]:o.value==="rtl"},r.class,s.value)),b=h.computed(()=>{const O=m.value,w={},x=O[0]!=null&&O[0]>0?`${O[0]/-2}px`:void 0,S=O[1]!=null&&O[1]>0?`${O[1]/-2}px`:void 0;return x&&(w.marginLeft=x,w.marginRight=x),g.value?w.rowGap=`${O[1]}px`:S&&(w.marginTop=S,w.marginBottom=S),w});return()=>{var O;return a(h.createVNode("div",K(K({},r),{},{class:y.value,style:k(k({},b.value),r.style)}),[(O=n.default)===null||O===void 0?void 0:O.call(n)]))}}});function mc(t){return t==null?[]:Array.isArray(t)?t:[t]}function iie(t,e){let n=t;for(let r=0;r<e.length;r+=1){if(n==null)return;n=n[e[r]]}return n}function oie(t,e,n,r){if(!e.length)return n;const[i,...o]=e;let a;return!t&&typeof i=="number"?a=[]:Array.isArray(t)?a=[...t]:a=k({},t),r&&n===void 0&&o.length===1?delete a[i][o[0]]:a[i]=oie(a[i],o,n,r),a}function i6e(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return e.length&&r&&n===void 0&&!iie(t,e.slice(0,-1))?t:oie(t,e,n,r)}function WD(t){return mc(t)}function o6e(t,e){return iie(t,e)}function a6e(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return i6e(t,e,n,r)}function s6e(t,e){return t&&t.some(n=>u6e(n,e))}function K7(t){return typeof t=="object"&&t!==null&&Object.getPrototypeOf(t)===Object.prototype}function aie(t,e){const n=Array.isArray(t)?[...t]:k({},t);return e&&Object.keys(e).forEach(r=>{const i=n[r],o=e[r],a=K7(i)&&K7(o);n[r]=a?aie(i,o||{}):o}),n}function l6e(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return n.reduce((i,o)=>aie(i,o),t)}function J7(t,e){let n={};return e.forEach(r=>{const i=o6e(t,r);n=a6e(n,r,i)}),n}function u6e(t,e){return!t||!e||t.length!==e.length?!1:t.every((n,r)=>e[r]===n)}const yo="'${name}' is not a valid ${type}",YT={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:yo,method:yo,array:yo,object:yo,number:yo,date:yo,boolean:yo,integer:yo,float:yo,regexp:yo,email:yo,url:yo,hex:yo},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}};var qT=function(t,e,n,r){function i(o){return o instanceof n?o:new n(function(a){a(o)})}return new(n||(n=Promise))(function(o,a){function s(c){try{u(r.next(c))}catch(f){a(f)}}function l(c){try{u(r.throw(c))}catch(f){a(f)}}function u(c){c.done?o(c.value):i(c.value).then(s,l)}u((r=r.apply(t,e||[])).next())})};const c6e=qb;function f6e(t,e){return t.replace(/\$\{\w+\}/g,n=>{const r=n.slice(2,-1);return e[r]})}function QD(t,e,n,r,i){return qT(this,void 0,void 0,function*(){const o=k({},n);delete o.ruleIndex,delete o.trigger;let a=null;o&&o.type==="array"&&o.defaultField&&(a=o.defaultField,delete o.defaultField);const s=new c6e({[t]:[o]}),l=l6e({},YT,r.validateMessages);s.messages(l);let u=[];try{yield Promise.resolve(s.validate({[t]:e},k({},r)))}catch(d){d.errors?u=d.errors.map((p,v)=>{let{message:g}=p;return No(g)?h.cloneVNode(g,{key:`error_${v}`}):g}):(console.error(d),u=[l.default()])}if(!u.length&&a)return(yield Promise.all(e.map((p,v)=>QD(`${t}.${v}`,p,a,r,i)))).reduce((p,v)=>[...p,...v],[]);const c=k(k(k({},n),{name:t,enum:(n.enum||[]).join(", ")}),i);return u.map(d=>typeof d=="string"?f6e(d,c):d)})}function sie(t,e,n,r,i,o){const a=t.join("."),s=n.map((u,c)=>{const f=u.validator,d=k(k({},u),{ruleIndex:c});return f&&(d.validator=(p,v,g)=>{let m=!1;const b=f(p,v,function(){for(var O=arguments.length,w=new Array(O),x=0;x<O;x++)w[x]=arguments[x];Promise.resolve().then(()=>{eh(!m,"Your validator function has already return a promise. `callback` will be ignored."),m||g(...w)})});m=b&&typeof b.then=="function"&&typeof b.catch=="function",eh(m,"`callback` is deprecated. Please return a promise instead."),m&&b.then(()=>{g()}).catch(O=>{g(O||" ")})}),d}).sort((u,c)=>{let{warningOnly:f,ruleIndex:d}=u,{warningOnly:p,ruleIndex:v}=c;return!!f==!!p?d-v:f?1:-1});let l;if(i===!0)l=new Promise((u,c)=>qT(this,void 0,void 0,function*(){for(let f=0;f<s.length;f+=1){const d=s[f],p=yield QD(a,e,d,r,o);if(p.length){c([{errors:p,rule:d}]);return}}u([])}));else{const u=s.map(c=>QD(a,e,c,r,o).then(f=>({errors:f,rule:c})));l=(i?h6e(u):d6e(u)).then(c=>Promise.reject(c))}return l.catch(u=>u),l}function d6e(t){return qT(this,void 0,void 0,function*(){return Promise.all(t).then(e=>[].concat(...e))})}function h6e(t){return qT(this,void 0,void 0,function*(){let e=0;return new Promise(n=>{t.forEach(r=>{r.then(i=>{i.errors.length&&n([i]),e+=1,e===t.length&&n([])})})})})}const lie=Symbol("formContextKey"),uie=t=>{h.provide(lie,t)},D4=()=>h.inject(lie,{name:h.computed(()=>{}),labelAlign:h.computed(()=>"right"),vertical:h.computed(()=>!1),addField:(t,e)=>{},removeField:t=>{},model:h.computed(()=>{}),rules:h.computed(()=>{}),colon:h.computed(()=>{}),labelWrap:h.computed(()=>{}),labelCol:h.computed(()=>{}),requiredMark:h.computed(()=>!1),validateTrigger:h.computed(()=>{}),onValidate:()=>{},validateMessages:h.computed(()=>YT)}),cie=Symbol("formItemPrefixContextKey"),p6e=t=>{h.provide(cie,t)},v6e=()=>h.inject(cie,{prefixCls:h.computed(()=>"")});function g6e(t){return typeof t=="number"?`${t} ${t} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(t)?`0 0 ${t}`:t}const m6e=()=>({span:[String,Number],order:[String,Number],offset:[String,Number],push:[String,Number],pull:[String,Number],xs:{type:[String,Number,Object],default:void 0},sm:{type:[String,Number,Object],default:void 0},md:{type:[String,Number,Object],default:void 0},lg:{type:[String,Number,Object],default:void 0},xl:{type:[String,Number,Object],default:void 0},xxl:{type:[String,Number,Object],default:void 0},prefixCls:String,flex:[String,Number]}),y6e=["xs","sm","md","lg","xl","xxl"],fie=h.defineComponent({compatConfig:{MODE:3},name:"ACol",inheritAttrs:!1,props:m6e(),setup(t,e){let{slots:n,attrs:r}=e;const{gutter:i,supportFlexGap:o,wrap:a}=XBe(),{prefixCls:s,direction:l}=Gt("col",t),[u,c]=t6e(s),f=h.computed(()=>{const{span:p,order:v,offset:g,push:m,pull:y}=t,b=s.value;let O={};return y6e.forEach(w=>{let x={};const S=t[w];typeof S=="number"?x.span=S:typeof S=="object"&&(x=S||{}),O=k(k({},O),{[`${b}-${w}-${x.span}`]:x.span!==void 0,[`${b}-${w}-order-${x.order}`]:x.order||x.order===0,[`${b}-${w}-offset-${x.offset}`]:x.offset||x.offset===0,[`${b}-${w}-push-${x.push}`]:x.push||x.push===0,[`${b}-${w}-pull-${x.pull}`]:x.pull||x.pull===0,[`${b}-rtl`]:l.value==="rtl"})}),Pe(b,{[`${b}-${p}`]:p!==void 0,[`${b}-order-${v}`]:v,[`${b}-offset-${g}`]:g,[`${b}-push-${m}`]:m,[`${b}-pull-${y}`]:y},O,r.class,c.value)}),d=h.computed(()=>{const{flex:p}=t,v=i.value,g={};if(v&&v[0]>0){const m=`${v[0]/2}px`;g.paddingLeft=m,g.paddingRight=m}if(v&&v[1]>0&&!o.value){const m=`${v[1]/2}px`;g.paddingTop=m,g.paddingBottom=m}return p&&(g.flex=g6e(p),a.value===!1&&!g.minWidth&&(g.minWidth=0)),g});return()=>{var p;return u(h.createVNode("div",K(K({},r),{},{class:f.value,style:[d.value,r.style]}),[(p=n.default)===null||p===void 0?void 0:p.call(n)]))}}});var b6e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"};function eQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){_6e(t,i,n[i])})}return t}function _6e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var R4=function(e,n){var r=eQ({},e,n.attrs);return h.createVNode(yt,eQ({},r,{icon:b6e}),null)};R4.displayName="QuestionCircleOutlined";R4.inheritAttrs=!1;const k4=(t,e)=>{let{slots:n,emit:r,attrs:i}=e;var o,a,s,l,u;const{prefixCls:c,htmlFor:f,labelCol:d,labelAlign:p,colon:v,required:g,requiredMark:m}=k(k({},t),i),[y]=xT("Form"),b=(o=t.label)!==null&&o!==void 0?o:(a=n.label)===null||a===void 0?void 0:a.call(n);if(!b)return null;const{vertical:O,labelAlign:w,labelCol:x,labelWrap:S,colon:T}=D4(),$=d||(x==null?void 0:x.value)||{},A=p||(w==null?void 0:w.value),P=`${c}-item-label`,M=Pe(P,A==="left"&&`${P}-left`,$.class,{[`${P}-wrap`]:!!S.value});let I=b;const R=v===!0||(T==null?void 0:T.value)!==!1&&v!==!1;if(R&&!O.value&&typeof b=="string"&&b.trim()!==""&&(I=b.replace(/[:|:]\s*$/,"")),t.tooltip||n.tooltip){const B=h.createVNode("span",{class:`${c}-item-tooltip`},[h.createVNode(HT,{title:t.tooltip},{default:()=>[h.createVNode(R4,null,null)]})]);I=h.createVNode(h.Fragment,null,[I,n.tooltip?(s=n.tooltip)===null||s===void 0?void 0:s.call(n,{class:`${c}-item-tooltip`}):B])}m==="optional"&&!g&&(I=h.createVNode(h.Fragment,null,[I,h.createVNode("span",{class:`${c}-item-optional`},[((l=y.value)===null||l===void 0?void 0:l.optional)||((u=eu.Form)===null||u===void 0?void 0:u.optional)])]));const D=Pe({[`${c}-item-required`]:g,[`${c}-item-required-mark-optional`]:m==="optional",[`${c}-item-no-colon`]:!R});return h.createVNode(fie,K(K({},$),{},{class:M}),{default:()=>[h.createVNode("label",{for:f,class:D,title:typeof b=="string"?b:"",onClick:B=>r("click",B)},[I])]})};k4.displayName="FormItemLabel";k4.inheritAttrs=!1;const O6e=t=>{const{componentCls:e}=t,n=`${e}-show-help`,r=`${e}-show-help-item`;return{[n]:{transition:`opacity ${t.motionDurationSlow} ${t.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${t.motionDurationSlow} ${t.motionEaseInOut},
  215. opacity ${t.motionDurationSlow} ${t.motionEaseInOut},
  216. transform ${t.motionDurationSlow} ${t.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},w6e=t=>({legend:{display:"block",width:"100%",marginBottom:t.marginLG,padding:0,color:t.colorTextDescription,fontSize:t.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${t.lineWidth}px ${t.lineType} ${t.colorBorder}`},label:{fontSize:t.fontSize},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${t.controlOutline}`},output:{display:"block",paddingTop:15,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight}}),tQ=(t,e)=>{const{formItemCls:n}=t;return{[n]:{[`${n}-label > label`]:{height:e},[`${n}-control-input`]:{minHeight:e}}}},x6e=t=>{const{componentCls:e}=t;return{[t.componentCls]:k(k(k({},On(t)),w6e(t)),{[`${e}-text`]:{display:"inline-block",paddingInlineEnd:t.paddingSM},"&-small":k({},tQ(t,t.controlHeightSM)),"&-large":k({},tQ(t,t.controlHeightLG))})}},S6e=t=>{const{formItemCls:e,iconCls:n,componentCls:r,rootPrefixCls:i}=t;return{[e]:k(k({},On(t)),{marginBottom:t.marginLG,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
  217. &-hidden.${i}-row`]:{display:"none"},"&-has-warning":{[`${e}-split`]:{color:t.colorError}},"&-has-error":{[`${e}-split`]:{color:t.colorWarning}},[`${e}-label`]:{display:"inline-block",flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${t.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:t.controlHeight,color:t.colorTextHeading,fontSize:t.fontSize,[`> ${n}`]:{fontSize:t.fontSize,verticalAlign:"top"},[`&${e}-required:not(${e}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:t.marginXXS,color:t.colorError,fontSize:t.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${r}-hide-required-mark &`]:{display:"none"}},[`${e}-optional`]:{display:"inline-block",marginInlineStart:t.marginXXS,color:t.colorTextDescription,[`${r}-hide-required-mark &`]:{display:"none"}},[`${e}-tooltip`]:{color:t.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:t.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:t.marginXXS/2,marginInlineEnd:t.marginXS},[`&${e}-no-colon::after`]:{content:'" "'}}},[`${e}-control`]:{display:"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${i}-col-'"]):not([class*="' ${i}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:t.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[e]:{"&-explain, &-extra":{clear:"both",color:t.colorTextDescription,fontSize:t.fontSize,lineHeight:t.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:t.controlHeightSM,transition:`color ${t.motionDurationMid} ${t.motionEaseOut}`},"&-explain":{"&-error":{color:t.colorError},"&-warning":{color:t.colorWarning}}},[`&-with-help ${e}-explain`]:{height:"auto",opacity:1},[`${e}-feedback-icon`]:{fontSize:t.fontSize,textAlign:"center",visibility:"visible",animationName:_4,animationDuration:t.motionDurationMid,animationTimingFunction:t.motionEaseOutBack,pointerEvents:"none","&-success":{color:t.colorSuccess},"&-error":{color:t.colorError},"&-warning":{color:t.colorWarning},"&-validating":{color:t.colorPrimary}}})}},C6e=t=>{const{componentCls:e,formItemCls:n,rootPrefixCls:r}=t;return{[`${e}-horizontal`]:{[`${n}-label`]:{flexGrow:0},[`${n}-control`]:{flex:"1 1 0",minWidth:0},[`${n}-label.${r}-col-24 + ${n}-control`]:{minWidth:"unset"}}}},T6e=t=>{const{componentCls:e,formItemCls:n}=t;return{[`${e}-inline`]:{display:"flex",flexWrap:"wrap",[n]:{flex:"none",flexWrap:"nowrap",marginInlineEnd:t.margin,marginBottom:0,"&-with-help":{marginBottom:t.marginLG},[`> ${n}-label,
  218. > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${e}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},kp=t=>({margin:0,padding:`0 0 ${t.paddingXS}px`,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{display:"none"}}}),P6e=t=>{const{componentCls:e,formItemCls:n}=t;return{[`${n} ${n}-label`]:kp(t),[e]:{[n]:{flexWrap:"wrap",[`${n}-label,
  219. ${n}-control`]:{flex:"0 0 100%",maxWidth:"100%"}}}}},$6e=t=>{const{componentCls:e,formItemCls:n,rootPrefixCls:r}=t;return{[`${e}-vertical`]:{[n]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${e}-item-control`]:{width:"100%"}}},[`${e}-vertical ${n}-label,
  220. .${r}-col-24${n}-label,
  221. .${r}-col-xl-24${n}-label`]:kp(t),[`@media (max-width: ${t.screenXSMax}px)`]:[P6e(t),{[e]:{[`.${r}-col-xs-24${n}-label`]:kp(t)}}],[`@media (max-width: ${t.screenSMMax}px)`]:{[e]:{[`.${r}-col-sm-24${n}-label`]:kp(t)}},[`@media (max-width: ${t.screenMDMax}px)`]:{[e]:{[`.${r}-col-md-24${n}-label`]:kp(t)}},[`@media (max-width: ${t.screenLGMax}px)`]:{[e]:{[`.${r}-col-lg-24${n}-label`]:kp(t)}}}},N4=Wn("Form",(t,e)=>{let{rootPrefixCls:n}=e;const r=qt(t,{formItemCls:`${t.componentCls}-item`,rootPrefixCls:n});return[x6e(r),S6e(r),O6e(r),C6e(r),T6e(r),$6e(r),O4(r),_4]}),A6e=h.defineComponent({compatConfig:{MODE:3},name:"ErrorList",inheritAttrs:!1,props:["errors","help","onErrorVisibleChanged","helpStatus","warnings"],setup(t,e){let{attrs:n}=e;const{prefixCls:r,status:i}=v6e(),o=h.computed(()=>`${r.value}-item-explain`),a=h.computed(()=>!!(t.errors&&t.errors.length)),s=h.ref(i.value),[,l]=N4(r);return h.watch([a,i],()=>{a.value&&(s.value=i.value)}),()=>{var u,c;const f=E4(`${r.value}-show-help-item`),d=o4(`${r.value}-show-help-item`,f);return d.role="alert",d.class=[l.value,o.value,n.class,`${r.value}-show-help`],h.createVNode(h.Transition,K(K({},e_(`${r.value}-show-help`)),{},{onAfterEnter:()=>t.onErrorVisibleChanged(!0),onAfterLeave:()=>t.onErrorVisibleChanged(!1)}),{default:()=>[h.withDirectives(h.createVNode(h.TransitionGroup,K(K({},d),{},{tag:"div"}),{default:()=>[(c=t.errors)===null||c===void 0?void 0:c.map((p,v)=>h.createVNode("div",{key:v,class:s.value?`${o.value}-${s.value}`:""},[p]))]}),[[h.vShow,!!(!((u=t.errors)===null||u===void 0)&&u.length)]])]})}}}),E6e=h.defineComponent({compatConfig:{MODE:3},slots:Object,inheritAttrs:!1,props:["prefixCls","errors","hasFeedback","onDomErrorVisibleChange","wrapperCol","help","extra","status","marginBottom","onErrorVisibleChanged"],setup(t,e){let{slots:n}=e;const r=D4(),{wrapperCol:i}=r,o=k({},r);return delete o.labelCol,delete o.wrapperCol,uie(o),p6e({prefixCls:h.computed(()=>t.prefixCls),status:h.computed(()=>t.status)}),()=>{var a,s,l;const{prefixCls:u,wrapperCol:c,marginBottom:f,onErrorVisibleChanged:d,help:p=(a=n.help)===null||a===void 0?void 0:a.call(n),errors:v=fl((s=n.errors)===null||s===void 0?void 0:s.call(n)),extra:g=(l=n.extra)===null||l===void 0?void 0:l.call(n)}=t,m=`${u}-item`,y=c||(i==null?void 0:i.value)||{},b=Pe(`${m}-control`,y.class);return h.createVNode(fie,K(K({},y),{},{class:b}),{default:()=>{var O;return h.createVNode(h.Fragment,null,[h.createVNode("div",{class:`${m}-control-input`},[h.createVNode("div",{class:`${m}-control-input-content`},[(O=n.default)===null||O===void 0?void 0:O.call(n)])]),f!==null||v.length?h.createVNode("div",{style:{display:"flex",flexWrap:"nowrap"}},[h.createVNode(A6e,{errors:v,help:p,class:`${m}-explain-connected`,onErrorVisibleChanged:d},null),!!f&&h.createVNode("div",{style:{width:0,height:`${f}px`}},null)]):null,g?h.createVNode("div",{class:`${m}-extra`},[g]):null])}})}}});function M6e(t){const e=h.shallowRef(t.value.slice());let n=null;return h.watchEffect(()=>{clearTimeout(n),n=setTimeout(()=>{e.value=t.value},t.value.length?0:10)}),e}$c("success","warning","error","validating","");const I6e={success:Uc,warning:Zc,error:Ea,validating:sl};function bA(t,e,n){let r=t;const i=e;let o=0;try{for(let a=i.length;o<a-1&&!(!r&&!n);++o){const s=i[o];if(s in r)r=r[s];else{if(n)throw Error("please transfer a valid name path to form item!");break}}if(n&&!r)throw Error("please transfer a valid name path to form item!")}catch{console.error("please transfer a valid name path to form item!")}return{o:r,k:i[o],v:r?r[i[o]]:void 0}}const D6e=()=>({htmlFor:String,prefixCls:String,label:ne.any,help:ne.any,extra:ne.any,labelCol:{type:Object},wrapperCol:{type:Object},hasFeedback:{type:Boolean,default:!1},colon:{type:Boolean,default:void 0},labelAlign:String,prop:{type:[String,Number,Array]},name:{type:[String,Number,Array]},rules:[Array,Object],autoLink:{type:Boolean,default:!0},required:{type:Boolean,default:void 0},validateFirst:{type:Boolean,default:void 0},validateStatus:ne.oneOf($c("","success","warning","error","validating")),validateTrigger:{type:[String,Array]},messageVariables:{type:Object},hidden:Boolean,noStyle:Boolean,tooltip:String});let R6e=0;const k6e="form_item",die=h.defineComponent({compatConfig:{MODE:3},name:"AFormItem",inheritAttrs:!1,__ANT_NEW_FORM_ITEM:!0,props:D6e(),slots:Object,setup(t,e){let{slots:n,attrs:r,expose:i}=e;eh(t.prop===void 0,"`prop` is deprecated. Please use `name` instead.");const o=`form-item-${++R6e}`,{prefixCls:a}=Gt("form",t),[s,l]=N4(a),u=h.shallowRef(),c=D4(),f=h.computed(()=>t.name||t.prop),d=h.shallowRef([]),p=h.shallowRef(!1),v=h.shallowRef(),g=h.computed(()=>{const oe=f.value;return WD(oe)}),m=h.computed(()=>{if(g.value.length){const oe=c.name.value,de=g.value.join("_");return oe?`${oe}_${de}`:`${k6e}_${de}`}else return}),y=()=>{const oe=c.model.value;if(!(!oe||!f.value))return bA(oe,g.value,!0).v},b=h.computed(()=>y()),O=h.shallowRef($d(b.value)),w=h.computed(()=>{let oe=t.validateTrigger!==void 0?t.validateTrigger:c.validateTrigger.value;return oe=oe===void 0?"change":oe,mc(oe)}),x=h.computed(()=>{let oe=c.rules.value;const de=t.rules,re=t.required!==void 0?{required:!!t.required,trigger:w.value}:[],ue=bA(oe,g.value);oe=oe?ue.o[ue.k]||ue.v:[];const ee=[].concat(de||oe||[]);return DPe(ee,X=>X.required)?ee:ee.concat(re)}),S=h.computed(()=>{const oe=x.value;let de=!1;return oe&&oe.length&&oe.every(re=>re.required?(de=!0,!1):!0),de||t.required}),T=h.shallowRef();h.watchEffect(()=>{T.value=t.validateStatus});const $=h.computed(()=>{let oe={};return typeof t.label=="string"?oe.label=t.label:t.name&&(oe.label=String(t.name)),t.messageVariables&&(oe=k(k({},oe),t.messageVariables)),oe}),A=oe=>{if(g.value.length===0)return;const{validateFirst:de=!1}=t,{triggerName:re}=oe||{};let ue=x.value;if(re&&(ue=ue.filter(X=>{const{trigger:Y}=X;return!Y&&!w.value.length?!0:mc(Y||w.value).includes(re)})),!ue.length)return Promise.resolve();const ee=sie(g.value,b.value,ue,k({validateMessages:c.validateMessages.value},oe),de,$.value);return T.value="validating",d.value=[],ee.catch(X=>X).then(function(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(T.value==="validating"){const Y=X.filter(le=>le&&le.errors.length);T.value=Y.length?"error":"success",d.value=Y.map(le=>le.errors),c.onValidate(f.value,!d.value.length,d.value.length?h.toRaw(d.value[0]):null)}}),ee},P=()=>{A({triggerName:"blur"})},M=()=>{if(p.value){p.value=!1;return}A({triggerName:"change"})},I=()=>{T.value=t.validateStatus,p.value=!1,d.value=[]},R=()=>{var oe;T.value=t.validateStatus,p.value=!0,d.value=[];const de=c.model.value||{},re=b.value,ue=bA(de,g.value,!0);Array.isArray(re)?ue.o[ue.k]=[].concat((oe=O.value)!==null&&oe!==void 0?oe:[]):ue.o[ue.k]=O.value,h.nextTick(()=>{p.value=!1})},L=h.computed(()=>t.htmlFor===void 0?m.value:t.htmlFor),D=()=>{const oe=L.value;if(!oe||!v.value)return;const de=v.value.$el.querySelector(`[id="${oe}"]`);de&&de.focus&&de.focus()};i({onFieldBlur:P,onFieldChange:M,clearValidate:I,resetField:R}),v8e({id:m,onFieldBlur:()=>{t.autoLink&&P()},onFieldChange:()=>{t.autoLink&&M()},clearValidate:I},h.computed(()=>!!(t.autoLink&&c.model.value&&f.value)));let B=!1;h.watch(f,oe=>{oe?B||(B=!0,c.addField(o,{fieldValue:b,fieldId:m,fieldName:f,resetField:R,clearValidate:I,namePath:g,validateRules:A,rules:x})):(B=!1,c.removeField(o))},{immediate:!0}),h.onBeforeUnmount(()=>{c.removeField(o)});const F=M6e(d),z=h.computed(()=>t.validateStatus!==void 0?t.validateStatus:F.value.length?"error":T.value),W=h.computed(()=>({[`${a.value}-item`]:!0,[l.value]:!0,[`${a.value}-item-has-feedback`]:z.value&&t.hasFeedback,[`${a.value}-item-has-success`]:z.value==="success",[`${a.value}-item-has-warning`]:z.value==="warning",[`${a.value}-item-has-error`]:z.value==="error",[`${a.value}-item-is-validating`]:z.value==="validating",[`${a.value}-item-hidden`]:t.hidden})),j=h.reactive({});ss.useProvide(j),h.watchEffect(()=>{let oe;if(t.hasFeedback){const de=z.value&&I6e[z.value];oe=de?h.createVNode("span",{class:Pe(`${a.value}-item-feedback-icon`,`${a.value}-item-feedback-icon-${z.value}`)},[h.createVNode(de,null,null)]):null}k(j,{status:z.value,hasFeedback:t.hasFeedback,feedbackIcon:oe,isFormItemInput:!0})});const H=h.shallowRef(null),Z=h.shallowRef(!1),J=()=>{if(u.value){const oe=getComputedStyle(u.value);H.value=parseInt(oe.marginBottom,10)}};h.onMounted(()=>{h.watch(Z,()=>{Z.value&&J()},{flush:"post",immediate:!0})});const se=oe=>{oe||(H.value=null)};return()=>{var oe,de;if(t.noStyle)return(oe=n.default)===null||oe===void 0?void 0:oe.call(n);const re=(de=t.help)!==null&&de!==void 0?de:n.help?fl(n.help()):null,ue=!!(re!=null&&Array.isArray(re)&&re.length||F.value.length);return Z.value=ue,s(h.createVNode("div",{class:[W.value,ue?`${a.value}-item-with-help`:"",r.class],ref:u},[h.createVNode(r6e,K(K({},r),{},{class:`${a.value}-item-row`,key:"row"}),{default:()=>{var ee,X;return h.createVNode(h.Fragment,null,[h.createVNode(k4,K(K({},t),{},{htmlFor:L.value,required:S.value,requiredMark:c.requiredMark.value,prefixCls:a.value,onClick:D,label:t.label}),{label:n.label,tooltip:n.tooltip}),h.createVNode(E6e,K(K({},t),{},{errors:re!=null?mc(re):F.value,marginBottom:H.value,prefixCls:a.value,status:z.value,ref:v,help:re,extra:(ee=t.extra)!==null&&ee!==void 0?ee:(X=n.extra)===null||X===void 0?void 0:X.call(n),onErrorVisibleChanged:se}),{default:n.default})])}}),!!H.value&&h.createVNode("div",{class:`${a.value}-margin-offset`,style:{marginBottom:`-${H.value}px`}},null)]))}}});function hie(t){let e=!1,n=t.length;const r=[];return t.length?new Promise((i,o)=>{t.forEach((a,s)=>{a.catch(l=>(e=!0,l)).then(l=>{n-=1,r[s]=l,!(n>0)&&(e&&o(r),i(r))})})}):Promise.resolve([])}function nQ(t){let e=!1;return t&&t.length&&t.every(n=>n.required?(e=!0,!1):!0),e}function rQ(t){return t==null?[]:Array.isArray(t)?t:[t]}function _A(t,e,n){let r=t;e=e.replace(/\[(\w+)\]/g,".$1"),e=e.replace(/^\./,"");const i=e.split(".");let o=0;for(let a=i.length;o<a-1&&!(!r&&!n);++o){const s=i[o];if(s in r)r=r[s];else{if(n)throw new Error("please transfer a valid name path to validate!");break}}return{o:r,k:i[o],v:r?r[i[o]]:null,isValid:r&&i[o]in r}}function N6e(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h.ref({}),n=arguments.length>2?arguments[2]:void 0;const r=$d(h.unref(t)),i=h.reactive({}),o=h.shallowRef([]),a=O=>{k(h.unref(t),k(k({},$d(r)),O)),h.nextTick(()=>{Object.keys(i).forEach(w=>{i[w]={autoLink:!1,required:nQ(h.unref(e)[w])}})})},s=function(){let O=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],w=arguments.length>1?arguments[1]:void 0;return w.length?O.filter(x=>{const S=rQ(x.trigger||"change");return LPe(S,w).length}):O};let l=null;const u=function(O){let w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},x=arguments.length>2?arguments[2]:void 0;const S=[],T={};for(let P=0;P<O.length;P++){const M=O[P],I=_A(h.unref(t),M,x);if(!I.isValid)continue;T[M]=I.v;const R=s(h.unref(e)[M],rQ(w&&w.trigger));R.length&&S.push(c(M,I.v,R,w||{}).then(()=>({name:M,errors:[],warnings:[]})).catch(L=>{const D=[],B=[];return L.forEach(F=>{let{rule:{warningOnly:z},errors:W}=F;z?B.push(...W):D.push(...W)}),D.length?Promise.reject({name:M,errors:D,warnings:B}):{name:M,errors:D,warnings:B}}))}const $=hie(S);l=$;const A=$.then(()=>l===$?Promise.resolve(T):Promise.reject([])).catch(P=>{const M=P.filter(I=>I&&I.errors.length);return M.length?Promise.reject({values:T,errorFields:M,outOfDate:l!==$}):Promise.resolve(T)});return A.catch(P=>P),A},c=function(O,w,x){let S=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const T=sie([O],w,x,k({validateMessages:YT},S),!!S.validateFirst);return i[O]?(i[O].validateStatus="validating",T.catch($=>$).then(function(){let $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];var A;if(i[O].validateStatus==="validating"){const P=$.filter(M=>M&&M.errors.length);i[O].validateStatus=P.length?"error":"success",i[O].help=P.length?P.map(M=>M.errors):null,(A=n==null?void 0:n.onValidate)===null||A===void 0||A.call(n,O,!P.length,P.length?h.toRaw(i[O].help[0]):null)}}),T):T.catch($=>$)},f=(O,w)=>{let x=[],S=!0;O?Array.isArray(O)?x=O:x=[O]:(S=!1,x=o.value);const T=u(x,w||{},S);return T.catch($=>$),T},d=O=>{let w=[];O?Array.isArray(O)?w=O:w=[O]:w=o.value,w.forEach(x=>{i[x]&&k(i[x],{validateStatus:"",help:null})})},p=O=>{const w={autoLink:!1},x=[],S=Array.isArray(O)?O:[O];for(let T=0;T<S.length;T++){const $=S[T];($==null?void 0:$.validateStatus)==="error"&&(w.validateStatus="error",$.help&&x.push($.help)),w.required=w.required||($==null?void 0:$.required)}return w.help=x,w};let v=r,g=!0;const m=O=>{const w=[];o.value.forEach(x=>{const S=_A(O,x,!1),T=_A(v,x,!1);(g&&(n==null?void 0:n.immediate)&&S.isValid||!jb(S.v,T.v))&&w.push(x)}),f(w,{trigger:"change"}),g=!1,v=$d(h.toRaw(O))},y=n==null?void 0:n.debounce;let b=!0;return h.watch(e,()=>{o.value=e?Object.keys(h.unref(e)):[],!b&&n&&n.validateOnRuleChange&&f(),b=!1},{deep:!0,immediate:!0}),h.watch(o,()=>{const O={};o.value.forEach(w=>{O[w]=k({},i[w],{autoLink:!1,required:nQ(h.unref(e)[w])}),delete i[w]});for(const w in i)Object.prototype.hasOwnProperty.call(i,w)&&delete i[w];k(i,O)},{immediate:!0}),h.watch(t,y&&y.wait?bL(m,y.wait,vee(y,["wait"])):m,{immediate:n&&!!n.immediate,deep:!0}),{modelRef:t,rulesRef:e,initialModel:r,validateInfos:i,resetFields:a,validate:f,validateField:c,mergeValidateInfo:p,clearValidate:d}}const L6e=()=>({layout:ne.oneOf($c("horizontal","inline","vertical")),labelCol:zt(),wrapperCol:zt(),colon:ft(),labelAlign:In(),labelWrap:ft(),prefixCls:String,requiredMark:kn([String,Boolean]),hideRequiredMark:ft(),model:ne.object,rules:zt(),validateMessages:zt(),validateOnRuleChange:ft(),scrollToFirstError:la(),onSubmit:ct(),name:String,validateTrigger:kn([String,Array]),size:In(),disabled:ft(),onValuesChange:ct(),onFieldsChange:ct(),onFinish:ct(),onFinishFailed:ct(),onValidate:ct()});function B6e(t,e){return jb(mc(t),mc(e))}const gr=h.defineComponent({compatConfig:{MODE:3},name:"AForm",inheritAttrs:!1,props:Ir(L6e(),{layout:"horizontal",hideRequiredMark:!1,colon:!0}),Item:die,useForm:N6e,setup(t,e){let{emit:n,slots:r,expose:i,attrs:o}=e;const{prefixCls:a,direction:s,form:l,size:u,disabled:c}=Gt("form",t),f=h.computed(()=>t.requiredMark===""||t.requiredMark),d=h.computed(()=>{var F;return f.value!==void 0?f.value:l&&((F=l.value)===null||F===void 0?void 0:F.requiredMark)!==void 0?l.value.requiredMark:!t.hideRequiredMark});_ne(u),Lte(c);const p=h.computed(()=>{var F,z;return(F=t.colon)!==null&&F!==void 0?F:(z=l.value)===null||z===void 0?void 0:z.colon}),{validateMessages:v}=tRe(),g=h.computed(()=>k(k(k({},YT),v.value),t.validateMessages)),[m,y]=N4(a),b=h.computed(()=>Pe(a.value,{[`${a.value}-${t.layout}`]:!0,[`${a.value}-hide-required-mark`]:d.value===!1,[`${a.value}-rtl`]:s.value==="rtl",[`${a.value}-${u.value}`]:u.value},y.value)),O=h.ref(),w={},x=(F,z)=>{w[F]=z},S=F=>{delete w[F]},T=F=>{const z=!!F,W=z?mc(F).map(WD):[];return z?Object.values(w).filter(j=>W.findIndex(H=>B6e(H,j.fieldName.value))>-1):Object.values(w)},$=F=>{if(!t.model){$i(!1,"Form","model is required for resetFields to work.");return}T(F).forEach(z=>{z.resetField()})},A=F=>{T(F).forEach(z=>{z.clearValidate()})},P=F=>{const{scrollToFirstError:z}=t;if(n("finishFailed",F),z&&F.errorFields.length){let W={};typeof z=="object"&&(W=z),I(F.errorFields[0].name,W)}},M=function(){return D(...arguments)},I=function(F){let z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const W=T(F?[F]:void 0);if(W.length){const j=W[0].fieldId.value,H=j?document.getElementById(j):null;H&&zke(H,k({scrollMode:"if-needed",block:"nearest"},z))}},R=function(){let F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(F===!0){const z=[];return Object.values(w).forEach(W=>{let{namePath:j}=W;z.push(j.value)}),J7(t.model,z)}else return J7(t.model,F)},L=(F,z)=>{if($i(!(F instanceof Function),"Form","validateFields/validateField/validate not support callback, please use promise instead"),!t.model)return $i(!1,"Form","model is required for validateFields to work."),Promise.reject("Form `model` is required for validateFields to work.");const W=!!F,j=W?mc(F).map(WD):[],H=[];Object.values(w).forEach(se=>{var oe;if(W||j.push(se.namePath.value),!(!((oe=se.rules)===null||oe===void 0)&&oe.value.length))return;const de=se.namePath.value;if(!W||s6e(j,de)){const re=se.validateRules(k({validateMessages:g.value},z));H.push(re.then(()=>({name:de,errors:[],warnings:[]})).catch(ue=>{const ee=[],X=[];return ue.forEach(Y=>{let{rule:{warningOnly:le},errors:ge}=Y;le?X.push(...ge):ee.push(...ge)}),ee.length?Promise.reject({name:de,errors:ee,warnings:X}):{name:de,errors:ee,warnings:X}}))}});const Z=hie(H);O.value=Z;const J=Z.then(()=>O.value===Z?Promise.resolve(R(j)):Promise.reject([])).catch(se=>{const oe=se.filter(de=>de&&de.errors.length);return Promise.reject({values:R(j),errorFields:oe,outOfDate:O.value!==Z})});return J.catch(se=>se),J},D=function(){return L(...arguments)},B=F=>{F.preventDefault(),F.stopPropagation(),n("submit",F),t.model&&L().then(W=>{n("finish",W)}).catch(W=>{P(W)})};return i({resetFields:$,clearValidate:A,validateFields:L,getFieldsValue:R,validate:M,scrollToField:I}),uie({model:h.computed(()=>t.model),name:h.computed(()=>t.name),labelAlign:h.computed(()=>t.labelAlign),labelCol:h.computed(()=>t.labelCol),labelWrap:h.computed(()=>t.labelWrap),wrapperCol:h.computed(()=>t.wrapperCol),vertical:h.computed(()=>t.layout==="vertical"),colon:p,requiredMark:d,validateTrigger:h.computed(()=>t.validateTrigger),rules:h.computed(()=>t.rules),addField:x,removeField:S,onValidate:(F,z,W)=>{n("validate",F,z,W)},validateMessages:g}),h.watch(()=>t.rules,()=>{t.validateOnRuleChange&&L()}),()=>{var F;return m(h.createVNode("form",K(K({},o),{},{onSubmit:B,class:[b.value,o.class]}),[(F=r.default)===null||F===void 0?void 0:F.call(r)]))}}});gr.useInjectFormItemContext=dl;gr.ItemRest=jy;gr.install=function(t){return t.component(gr.name,gr),t.component(gr.Item.name,gr.Item),t.component(jy.name,jy),t};const V6e=new Mt("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),z6e=t=>{const{checkboxCls:e}=t,n=`${e}-wrapper`;return[{[`${e}-group`]:k(k({},On(t)),{display:"inline-flex",flexWrap:"wrap",columnGap:t.marginXS,[`> ${t.antCls}-row`]:{flex:1}}),[n]:k(k({},On(t)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${n}`]:{marginInlineStart:0},[`&${n}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[e]:k(k({},On(t)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",[`${e}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${e}-inner`]:k({},Kb(t))},[`${e}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:t.checkboxSize,height:t.checkboxSize,direction:"ltr",backgroundColor:t.colorBgContainer,border:`${t.lineWidth}px ${t.lineType} ${t.colorBorder}`,borderRadius:t.borderRadiusSM,borderCollapse:"separate",transition:`all ${t.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:t.checkboxSize/14*5,height:t.checkboxSize/14*8,border:`${t.lineWidthBold}px solid ${t.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${t.motionDurationFast} ${t.motionEaseInBack}, opacity ${t.motionDurationFast}`}},"& + span":{paddingInlineStart:t.paddingXS,paddingInlineEnd:t.paddingXS}})},{[e]:{"&-indeterminate":{[`${e}-inner`]:{"&:after":{top:"50%",insetInlineStart:"50%",width:t.fontSizeLG/2,height:t.fontSizeLG/2,backgroundColor:t.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${n}:hover ${e}:after`]:{visibility:"visible"},[`
  222. ${n}:not(${n}-disabled),
  223. ${e}:not(${e}-disabled)
  224. `]:{[`&:hover ${e}-inner`]:{borderColor:t.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${e}-checked:not(${e}-disabled) ${e}-inner`]:{backgroundColor:t.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${e}-checked:not(${e}-disabled):after`]:{borderColor:t.colorPrimaryHover}}},{[`${e}-checked`]:{[`${e}-inner`]:{backgroundColor:t.colorPrimary,borderColor:t.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${t.motionDurationMid} ${t.motionEaseOutBack} ${t.motionDurationFast}`}},"&:after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderRadius:t.borderRadiusSM,visibility:"hidden",border:`${t.lineWidthBold}px solid ${t.colorPrimary}`,animationName:V6e,animationDuration:t.motionDurationSlow,animationTimingFunction:"ease-in-out",animationFillMode:"backwards",content:'""',transition:`all ${t.motionDurationSlow}`}},[`
  225. ${n}-checked:not(${n}-disabled),
  226. ${e}-checked:not(${e}-disabled)
  227. `]:{[`&:hover ${e}-inner`]:{backgroundColor:t.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${e}:after`]:{borderColor:t.colorPrimaryHover}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${e}-disabled`]:{[`&, ${e}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${e}-inner`]:{background:t.colorBgContainerDisabled,borderColor:t.colorBorder,"&:after":{borderColor:t.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:t.colorTextDisabled},[`&${e}-indeterminate ${e}-inner::after`]:{background:t.colorTextDisabled}}}]};function F6e(t,e){const n=qt(e,{checkboxCls:`.${t}`,checkboxSize:e.controlInteractiveSize});return[z6e(n)]}const pie=Wn("Checkbox",(t,e)=>{let{prefixCls:n}=e;return[F6e(n,t)]}),W6e=()=>({name:String,prefixCls:String,options:Jd([]),disabled:Boolean,id:String}),Q6e=()=>k(k({},W6e()),{defaultValue:Jd(),value:Jd(),onChange:ct(),"onUpdate:value":ct()}),H6e=()=>({prefixCls:String,defaultChecked:ft(),checked:ft(),disabled:ft(),isGroup:ft(),value:ne.any,name:String,id:String,indeterminate:ft(),type:In("checkbox"),autofocus:ft(),onChange:ct(),"onUpdate:checked":ct(),onClick:ct(),skipGroup:ft(!1)}),G6e=()=>k(k({},H6e()),{indeterminate:ft(!1)}),vie=Symbol("CheckboxGroupContext");var iQ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const J0=h.defineComponent({compatConfig:{MODE:3},name:"ACheckbox",inheritAttrs:!1,__ANT_CHECKBOX:!0,props:G6e(),setup(t,e){let{emit:n,attrs:r,slots:i,expose:o}=e;const a=dl(),s=ss.useInject(),{prefixCls:l,direction:u,disabled:c}=Gt("checkbox",t),f=il(),[d,p]=pie(l),v=h.inject(vie,void 0),g=Symbol("checkboxUniId"),m=h.computed(()=>(v==null?void 0:v.disabled.value)||c.value);h.watchEffect(()=>{!t.skipGroup&&v&&v.registerValue(g,t.value)}),h.onBeforeUnmount(()=>{v&&v.cancelValue(g)}),h.onMounted(()=>{$i(!!(t.checked!==void 0||v||t.value===void 0),"Checkbox","`value` is not validate prop, do you mean `checked`?")});const y=x=>{const S=x.target.checked;n("update:checked",S),n("change",x),a.onFieldChange()},b=h.ref();return o({focus:()=>{var x;(x=b.value)===null||x===void 0||x.focus()},blur:()=>{var x;(x=b.value)===null||x===void 0||x.blur()}}),()=>{var x;const S=wr((x=i.default)===null||x===void 0?void 0:x.call(i)),{indeterminate:T,skipGroup:$,id:A=a.id.value}=t,P=iQ(t,["indeterminate","skipGroup","id"]),{onMouseenter:M,onMouseleave:I,onInput:R,class:L,style:D}=r,B=iQ(r,["onMouseenter","onMouseleave","onInput","class","style"]),F=k(k(k(k({},P),{id:A,prefixCls:l.value}),B),{disabled:m.value});v&&!$?(F.onChange=function(){for(var H=arguments.length,Z=new Array(H),J=0;J<H;J++)Z[J]=arguments[J];n("change",...Z),v.toggleOption({label:S,value:t.value})},F.name=v.name.value,F.checked=v.mergedValue.value.includes(t.value),F.disabled=m.value||f.value,F.indeterminate=T):F.onChange=y;const z=Pe({[`${l.value}-wrapper`]:!0,[`${l.value}-rtl`]:u.value==="rtl",[`${l.value}-wrapper-checked`]:F.checked,[`${l.value}-wrapper-disabled`]:F.disabled,[`${l.value}-wrapper-in-form-item`]:s.isFormItemInput},L,p.value),W=Pe({[`${l.value}-indeterminate`]:T},p.value),j=T?"mixed":void 0;return d(h.createVNode("label",{class:z,style:D,onMouseenter:M,onMouseleave:I},[h.createVNode(Vre,K(K({"aria-checked":j},F),{},{class:W,ref:b}),null),S.length?h.createVNode("span",null,[S]):null]))}}}),yS=h.defineComponent({compatConfig:{MODE:3},name:"ACheckboxGroup",inheritAttrs:!1,props:Q6e(),setup(t,e){let{slots:n,attrs:r,emit:i,expose:o}=e;const a=dl(),{prefixCls:s,direction:l}=Gt("checkbox",t),u=h.computed(()=>`${s.value}-group`),[c,f]=pie(u),d=h.ref((t.value===void 0?t.defaultValue:t.value)||[]);h.watch(()=>t.value,()=>{d.value=t.value||[]});const p=h.computed(()=>t.options.map(w=>typeof w=="string"||typeof w=="number"?{label:w,value:w}:w)),v=h.ref(Symbol()),g=h.ref(new Map),m=w=>{g.value.delete(w),v.value=Symbol()},y=(w,x)=>{g.value.set(w,x),v.value=Symbol()},b=h.ref(new Map);h.watch(v,()=>{const w=new Map;for(const x of g.value.values())w.set(x,!0);b.value=w});const O=w=>{const x=d.value.indexOf(w.value),S=[...d.value];x===-1?S.push(w.value):S.splice(x,1),t.value===void 0&&(d.value=S);const T=S.filter($=>b.value.has($)).sort(($,A)=>{const P=p.value.findIndex(I=>I.value===$),M=p.value.findIndex(I=>I.value===A);return P-M});i("update:value",T),i("change",T),a.onFieldChange()};return h.provide(vie,{cancelValue:m,registerValue:y,toggleOption:O,mergedValue:d,name:h.computed(()=>t.name),disabled:h.computed(()=>t.disabled)}),o({mergedValue:d}),()=>{var w;const{id:x=a.id.value}=t;let S=null;return p.value&&p.value.length>0&&(S=p.value.map(T=>{var $;return h.createVNode(J0,{prefixCls:s.value,key:T.value.toString(),disabled:"disabled"in T?T.disabled:t.disabled,indeterminate:T.indeterminate,value:T.value,checked:d.value.indexOf(T.value)!==-1,onChange:T.onChange,class:`${u.value}-item`},{default:()=>[n.label!==void 0?($=n.label)===null||$===void 0?void 0:$.call(n,T):T.label]})})),c(h.createVNode("div",K(K({},r),{},{class:[u.value,{[`${u.value}-rtl`]:l.value==="rtl"},r.class,f.value],id:x}),[S||((w=n.default)===null||w===void 0?void 0:w.call(n))]))}}});J0.Group=yS;J0.install=function(t){return t.component(J0.name,J0),t.component(yS.name,yS),t};let ox=k({},eu.Modal);function j6e(t){t?ox=k(k({},ox),t):ox=k({},eu.Modal)}function U6e(){return ox}const HD="internalMark",ax=h.defineComponent({compatConfig:{MODE:3},name:"ALocaleProvider",props:{locale:{type:Object},ANT_MARK__:String},setup(t,e){let{slots:n}=e;$i(t.ANT_MARK__===HD,"LocaleProvider","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead");const r=h.reactive({antLocale:k(k({},t.locale),{exist:!0}),ANT_MARK__:HD});return h.provide("localeData",r),h.watch(()=>t.locale,i=>{j6e(i&&i.Modal),r.antLocale=k(k({},i),{exist:!0})},{immediate:!0}),()=>{var i;return(i=n.default)===null||i===void 0?void 0:i.call(n)}}});ax.install=function(t){return t.component(ax.name,ax),t};const Z6e=Og(ax),KT=h.defineComponent({name:"Notice",inheritAttrs:!1,props:["prefixCls","duration","updateMark","noticeKey","closeIcon","closable","props","onClick","onClose","holder","visible"],setup(t,e){let{attrs:n,slots:r}=e,i,o=!1;const a=h.computed(()=>t.duration===void 0?4.5:t.duration),s=()=>{a.value&&!o&&(i=setTimeout(()=>{u()},a.value*1e3))},l=()=>{i&&(clearTimeout(i),i=null)},u=f=>{f&&f.stopPropagation(),l();const{onClose:d,noticeKey:p}=t;d&&d(p)},c=()=>{l(),s()};return h.onMounted(()=>{s()}),h.onUnmounted(()=>{o=!0,l()}),h.watch([a,()=>t.updateMark,()=>t.visible],(f,d)=>{let[p,v,g]=f,[m,y,b]=d;(p!==m||v!==y||g!==b&&b)&&c()},{flush:"post"}),()=>{var f,d;const{prefixCls:p,closable:v,closeIcon:g=(f=r.closeIcon)===null||f===void 0?void 0:f.call(r),onClick:m,holder:y}=t,{class:b,style:O}=n,w=`${p}-notice`,x=Object.keys(n).reduce((T,$)=>(($.startsWith("data-")||$.startsWith("aria-")||$==="role")&&(T[$]=n[$]),T),{}),S=h.createVNode("div",K({class:Pe(w,b,{[`${w}-closable`]:v}),style:O,onMouseenter:l,onMouseleave:s,onClick:m},x),[h.createVNode("div",{class:`${w}-content`},[(d=r.default)===null||d===void 0?void 0:d.call(r)]),v?h.createVNode("a",{tabindex:0,onClick:u,class:`${w}-close`},[g||h.createVNode("span",{class:`${w}-close-x`},null)]):null]);return y?h.createVNode(h.Teleport,{to:y},{default:()=>S}):S}}});var X6e=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let oQ=0;const Y6e=Date.now();function aQ(){const t=oQ;return oQ+=1,`rcNotification_${Y6e}_${t}`}const bS=h.defineComponent({name:"Notification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId"],setup(t,e){let{attrs:n,expose:r,slots:i}=e;const o=new Map,a=h.ref([]),s=h.computed(()=>{const{prefixCls:c,animation:f="fade"}=t;let d=t.transitionName;return!d&&f&&(d=`${c}-${f}`),o4(d)}),l=(c,f)=>{const d=c.key||aQ(),p=k(k({},c),{key:d}),{maxCount:v}=t,g=a.value.map(y=>y.notice.key).indexOf(d),m=a.value.concat();g!==-1?m.splice(g,1,{notice:p,holderCallback:f}):(v&&a.value.length>=v&&(p.key=m[0].notice.key,p.updateMark=aQ(),p.userPassKey=d,m.shift()),m.push({notice:p,holderCallback:f})),a.value=m},u=c=>{a.value=a.value.filter(f=>{let{notice:{key:d,userPassKey:p}}=f;return(p||d)!==c})};return r({add:l,remove:u,notices:a}),()=>{var c;const{prefixCls:f,closeIcon:d=(c=i.closeIcon)===null||c===void 0?void 0:c.call(i,{prefixCls:f})}=t,p=a.value.map((g,m)=>{let{notice:y,holderCallback:b}=g;const O=m===a.value.length-1?y.updateMark:void 0,{key:w,userPassKey:x}=y,{content:S}=y,T=k(k(k({prefixCls:f,closeIcon:typeof d=="function"?d({prefixCls:f}):d},y),y.props),{key:w,noticeKey:x||w,updateMark:O,onClose:$=>{var A;u($),(A=y.onClose)===null||A===void 0||A.call(y)},onClick:y.onClick});return b?h.createVNode("div",{key:w,class:`${f}-hook-holder`,ref:$=>{typeof w>"u"||($?(o.set(w,$),b($,T)):o.delete(w))}},null):h.createVNode(KT,K(K({},T),{},{class:Pe(T.class,t.hashId)}),{default:()=>[typeof S=="function"?S({prefixCls:f}):S]})}),v={[f]:1,[n.class]:!!n.class,[t.hashId]:!0};return h.createVNode("div",{class:v,style:n.style||{top:"65px",left:"50%"}},[h.createVNode(h.TransitionGroup,K({tag:"div"},s.value),{default:()=>[p]})])}}});bS.newInstance=function(e,n){const r=e||{},{name:i="notification",getContainer:o,appContext:a,prefixCls:s,rootPrefixCls:l,transitionName:u,hasTransitionName:c,useStyle:f}=r,d=X6e(r,["name","getContainer","appContext","prefixCls","rootPrefixCls","transitionName","hasTransitionName","useStyle"]),p=document.createElement("div");o?o().appendChild(p):document.body.appendChild(p);const v=h.defineComponent({compatConfig:{MODE:3},name:"NotificationWrapper",setup(m,y){let{attrs:b}=y;const O=h.shallowRef(),w=h.computed(()=>zr.getPrefixCls(i,s)),[,x]=f(w);return h.onMounted(()=>{n({notice(S){var T;(T=O.value)===null||T===void 0||T.add(S)},removeNotice(S){var T;(T=O.value)===null||T===void 0||T.remove(S)},destroy(){h.render(null,p),p.parentNode&&p.parentNode.removeChild(p)},component:O})}),()=>{const S=zr,T=S.getRootPrefixCls(l,w.value),$=c?u:`${w.value}-${u}`;return h.createVNode(sv,K(K({},S),{},{prefixCls:T}),{default:()=>[h.createVNode(bS,K(K({ref:O},b),{},{prefixCls:w.value,transitionName:$,hashId:x.value}),null)]})}}}),g=h.createVNode(v,d);g.appContext=a||g.appContext,h.render(g,p)};let sQ=0;const q6e=Date.now();function lQ(){const t=sQ;return sQ+=1,`rcNotification_${q6e}_${t}`}const K6e=h.defineComponent({name:"HookNotification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId","remove","notices","getStyles","getClassName","onAllRemoved","getContainer"],setup(t,e){let{attrs:n,slots:r}=e;const i=new Map,o=h.computed(()=>t.notices),a=h.computed(()=>{let c=t.transitionName;if(!c&&t.animation)switch(typeof t.animation){case"string":c=t.animation;break;case"function":c=t.animation().name;break;case"object":c=t.animation.name;break;default:c=`${t.prefixCls}-fade`;break}return o4(c)}),s=c=>t.remove(c),l=h.ref({});h.watch(o,()=>{const c={};Object.keys(l.value).forEach(f=>{c[f]=[]}),t.notices.forEach(f=>{const{placement:d="topRight"}=f.notice;d&&(c[d]=c[d]||[],c[d].push(f))}),l.value=c});const u=h.computed(()=>Object.keys(l.value));return()=>{var c;const{prefixCls:f,closeIcon:d=(c=r.closeIcon)===null||c===void 0?void 0:c.call(r,{prefixCls:f})}=t,p=u.value.map(v=>{var g,m;const y=l.value[v],b=(g=t.getClassName)===null||g===void 0?void 0:g.call(t,v),O=(m=t.getStyles)===null||m===void 0?void 0:m.call(t,v),w=y.map((T,$)=>{let{notice:A,holderCallback:P}=T;const M=$===o.value.length-1?A.updateMark:void 0,{key:I,userPassKey:R}=A,{content:L}=A,D=k(k(k({prefixCls:f,closeIcon:typeof d=="function"?d({prefixCls:f}):d},A),A.props),{key:I,noticeKey:R||I,updateMark:M,onClose:B=>{var F;s(B),(F=A.onClose)===null||F===void 0||F.call(A)},onClick:A.onClick});return P?h.createVNode("div",{key:I,class:`${f}-hook-holder`,ref:B=>{typeof I>"u"||(B?(i.set(I,B),P(B,D)):i.delete(I))}},null):h.createVNode(KT,K(K({},D),{},{class:Pe(D.class,t.hashId)}),{default:()=>[typeof L=="function"?L({prefixCls:f}):L]})}),x={[f]:1,[`${f}-${v}`]:1,[n.class]:!!n.class,[t.hashId]:!0,[b]:!!b};function S(){var T;y.length>0||(Reflect.deleteProperty(l.value,v),(T=t.onAllRemoved)===null||T===void 0||T.call(t))}return h.createVNode("div",{key:v,class:x,style:n.style||O||{top:"65px",left:"50%"}},[h.createVNode(h.TransitionGroup,K(K({tag:"div"},a.value),{},{onAfterLeave:S}),{default:()=>[w]})])});return h.createVNode(Hne,{getContainer:t.getContainer},{default:()=>[p]})}}}),J6e=K6e;var eVe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const tVe=()=>document.body;let uQ=0;function nVe(){const t={};for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.forEach(i=>{i&&Object.keys(i).forEach(o=>{const a=i[o];a!==void 0&&(t[o]=a)})}),t}function gie(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{getContainer:e=tVe,motion:n,prefixCls:r,maxCount:i,getClassName:o,getStyles:a,onAllRemoved:s}=t,l=eVe(t,["getContainer","motion","prefixCls","maxCount","getClassName","getStyles","onAllRemoved"]),u=h.shallowRef([]),c=h.shallowRef(),f=(y,b)=>{const O=y.key||lQ(),w=k(k({},y),{key:O}),x=u.value.map(T=>T.notice.key).indexOf(O),S=u.value.concat();x!==-1?S.splice(x,1,{notice:w,holderCallback:b}):(i&&u.value.length>=i&&(w.key=S[0].notice.key,w.updateMark=lQ(),w.userPassKey=O,S.shift()),S.push({notice:w,holderCallback:b})),u.value=S},d=y=>{u.value=u.value.filter(b=>{let{notice:{key:O,userPassKey:w}}=b;return(w||O)!==y})},p=()=>{u.value=[]},v=()=>h.createVNode(J6e,{ref:c,prefixCls:r,maxCount:i,notices:u.value,remove:d,getClassName:o,getStyles:a,animation:n,hashId:t.hashId,onAllRemoved:s,getContainer:e},null),g=h.shallowRef([]),m={open:y=>{const b=nVe(l,y);(b.key===null||b.key===void 0)&&(b.key=`vc-notification-${uQ}`,uQ+=1),g.value=[...g.value,{type:"open",config:b}]},close:y=>{g.value=[...g.value,{type:"close",key:y}]},destroy:()=>{g.value=[...g.value,{type:"destroy"}]}};return h.watch(g,()=>{g.value.length&&(g.value.forEach(y=>{switch(y.type){case"open":f(y.config);break;case"close":d(y.key);break;case"destroy":p();break}}),g.value=[])}),[m,v]}const rVe=t=>{const{componentCls:e,iconCls:n,boxShadowSecondary:r,colorBgElevated:i,colorSuccess:o,colorError:a,colorWarning:s,colorInfo:l,fontSizeLG:u,motionEaseInOutCirc:c,motionDurationSlow:f,marginXS:d,paddingXS:p,borderRadiusLG:v,zIndexPopup:g,messageNoticeContentPadding:m}=t,y=new Mt("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),b=new Mt("MessageMoveOut",{"0%":{maxHeight:t.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}});return[{[e]:k(k({},On(t)),{position:"fixed",top:d,left:"50%",transform:"translateX(-50%)",width:"100%",pointerEvents:"none",zIndex:g,[`${e}-move-up`]:{animationFillMode:"forwards"},[`
  228. ${e}-move-up-appear,
  229. ${e}-move-up-enter
  230. `]:{animationName:y,animationDuration:f,animationPlayState:"paused",animationTimingFunction:c},[`
  231. ${e}-move-up-appear${e}-move-up-appear-active,
  232. ${e}-move-up-enter${e}-move-up-enter-active
  233. `]:{animationPlayState:"running"},[`${e}-move-up-leave`]:{animationName:b,animationDuration:f,animationPlayState:"paused",animationTimingFunction:c},[`${e}-move-up-leave${e}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[`${e}-notice`]:{padding:p,textAlign:"center",[n]:{verticalAlign:"text-bottom",marginInlineEnd:d,fontSize:u},[`${e}-notice-content`]:{display:"inline-block",padding:m,background:i,borderRadius:v,boxShadow:r,pointerEvents:"all"},[`${e}-success ${n}`]:{color:o},[`${e}-error ${n}`]:{color:a},[`${e}-warning ${n}`]:{color:s},[`
  234. ${e}-info ${n},
  235. ${e}-loading ${n}`]:{color:l}}},{[`${e}-notice-pure-panel`]:{padding:0,textAlign:"start"}}]},L4=Wn("Message",t=>{const e=qt(t,{messageNoticeContentPadding:`${(t.controlHeightLG-t.fontSize*t.lineHeight)/2}px ${t.paddingSM}px`});return[rVe(e)]},t=>({height:150,zIndexPopup:t.zIndexPopupBase+10})),iVe={info:h.createVNode(Th,null,null),success:h.createVNode(Uc,null,null),error:h.createVNode(Ea,null,null),warning:h.createVNode(Zc,null,null),loading:h.createVNode(sl,null,null)},mie=h.defineComponent({name:"PureContent",inheritAttrs:!1,props:["prefixCls","type","icon"],setup(t,e){let{slots:n}=e;return()=>{var r;return h.createVNode("div",{class:Pe(`${t.prefixCls}-custom-content`,`${t.prefixCls}-${t.type}`)},[t.icon||iVe[t.type],h.createVNode("span",null,[(r=n.default)===null||r===void 0?void 0:r.call(n)])])}}});h.defineComponent({name:"PurePanel",inheritAttrs:!1,props:["prefixCls","class","type","icon","content"],setup(t,e){let{slots:n,attrs:r}=e;var i;const{getPrefixCls:o}=wT(),a=h.computed(()=>t.prefixCls||o("message")),[,s]=L4(a);return h.createVNode(KT,K(K({},r),{},{prefixCls:a.value,class:Pe(s.value,`${a.value}-notice-pure-panel`),noticeKey:"pure",duration:null}),{default:()=>[h.createVNode(mie,{prefixCls:a.value,type:t.type,icon:t.icon},{default:()=>[(i=n.default)===null||i===void 0?void 0:i.call(n)]})]})}});var oVe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const aVe=8,sVe=3,lVe=h.defineComponent({name:"Holder",inheritAttrs:!1,props:["top","prefixCls","getContainer","maxCount","duration","rtl","transitionName","onAllRemoved"],setup(t,e){let{expose:n}=e;var r,i;const{getPrefixCls:o,getPopupContainer:a}=Gt("message",t),s=h.computed(()=>o("message",t.prefixCls)),[,l]=L4(s),u=()=>{var g;const m=(g=t.top)!==null&&g!==void 0?g:aVe;return{left:"50%",transform:"translateX(-50%)",top:typeof m=="number"?`${m}px`:m}},c=()=>Pe(l.value,t.rtl?`${s.value}-rtl`:""),f=()=>{var g;return JL({prefixCls:s.value,animation:(g=t.animation)!==null&&g!==void 0?g:"move-up",transitionName:t.transitionName})},d=h.createVNode("span",{class:`${s.value}-close-x`},[h.createVNode(mu,{class:`${s.value}-close-icon`},null)]),[p,v]=gie({getStyles:u,prefixCls:s.value,getClassName:c,motion:f,closable:!1,closeIcon:d,duration:(r=t.duration)!==null&&r!==void 0?r:sVe,getContainer:(i=t.staticGetContainer)!==null&&i!==void 0?i:a.value,maxCount:t.maxCount,onAllRemoved:t.onAllRemoved});return n(k(k({},p),{prefixCls:s,hashId:l})),v}});let cQ=0;function uVe(t){const e=h.shallowRef(null),n=Symbol("messageHolderKey"),r=l=>{var u;(u=e.value)===null||u===void 0||u.close(l)},i=l=>{if(!e.value){const x=()=>{};return x.then=()=>{},x}const{open:u,prefixCls:c,hashId:f}=e.value,d=`${c}-notice`,{content:p,icon:v,type:g,key:m,class:y,onClose:b}=l,O=oVe(l,["content","icon","type","key","class","onClose"]);let w=m;return w==null&&(cQ+=1,w=`antd-message-${cQ}`),EDe(x=>(u(k(k({},O),{key:w,content:()=>h.createVNode(mie,{prefixCls:c,type:g,icon:typeof v=="function"?v():v},{default:()=>[typeof p=="function"?p():p]}),placement:"top",class:Pe(g&&`${d}-${g}`,f,y),onClose:()=>{b==null||b(),x()}})),()=>{r(w)}))},a={open:i,destroy:l=>{var u;l!==void 0?r(l):(u=e.value)===null||u===void 0||u.destroy()}};return["info","success","warning","error","loading"].forEach(l=>{const u=(c,f,d)=>{let p;c&&typeof c=="object"&&"content"in c?p=c:p={content:c};let v,g;typeof f=="function"?g=f:(v=f,g=d);const m=k(k({onClose:g,duration:v},p),{type:l});return i(m)};a[l]=u}),[a,()=>h.createVNode(lVe,K(K({key:n},t),{},{ref:e}),null)]}function cVe(t){return uVe(t)}let yie=3,bie,Ti,fVe=1,_ie="",Oie="move-up",wie=!1,xie=()=>document.body,Sie,Cie=!1;function dVe(){return fVe++}function hVe(t){t.top!==void 0&&(bie=t.top,Ti=null),t.duration!==void 0&&(yie=t.duration),t.prefixCls!==void 0&&(_ie=t.prefixCls),t.getContainer!==void 0&&(xie=t.getContainer,Ti=null),t.transitionName!==void 0&&(Oie=t.transitionName,Ti=null,wie=!0),t.maxCount!==void 0&&(Sie=t.maxCount,Ti=null),t.rtl!==void 0&&(Cie=t.rtl)}function pVe(t,e){if(Ti){e(Ti);return}bS.newInstance({appContext:t.appContext,prefixCls:t.prefixCls||_ie,rootPrefixCls:t.rootPrefixCls,transitionName:Oie,hasTransitionName:wie,style:{top:bie},getContainer:xie||t.getPopupContainer,maxCount:Sie,name:"message",useStyle:L4},n=>{if(Ti){e(Ti);return}Ti=n,e(n)})}const Tie={info:Th,success:Uc,error:Ea,warning:Zc,loading:sl},vVe=Object.keys(Tie);function gVe(t){const e=t.duration!==void 0?t.duration:yie,n=t.key||dVe(),r=new Promise(o=>{const a=()=>(typeof t.onClose=="function"&&t.onClose(),o(!0));pVe(t,s=>{s.notice({key:n,duration:e,style:t.style||{},class:t.class,content:l=>{let{prefixCls:u}=l;const c=Tie[t.type],f=c?h.createVNode(c,null,null):"",d=Pe(`${u}-custom-content`,{[`${u}-${t.type}`]:t.type,[`${u}-rtl`]:Cie===!0});return h.createVNode("div",{class:d},[typeof t.icon=="function"?t.icon():t.icon||f,h.createVNode("span",null,[typeof t.content=="function"?t.content():t.content])])},onClose:a,onClick:t.onClick})})}),i=()=>{Ti&&Ti.removeNotice(n)};return i.then=(o,a)=>r.then(o,a),i.promise=r,i}function mVe(t){return Object.prototype.toString.call(t)==="[object Object]"&&!!t.content}const oh={open:gVe,config:hVe,destroy(t){if(Ti)if(t){const{removeNotice:e}=Ti;e(t)}else{const{destroy:e}=Ti;e(),Ti=null}}};function yVe(t,e){t[e]=(n,r,i)=>mVe(n)?t.open(k(k({},n),{type:e})):(typeof r=="function"&&(i=r,r=void 0),t.open({content:n,duration:r,type:e,onClose:i}))}vVe.forEach(t=>yVe(oh,t));oh.warn=oh.warning;oh.useMessage=cVe;const bVe=t=>{const{componentCls:e,width:n,notificationMarginEdge:r}=t,i=new Mt("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}}),o=new Mt("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}}),a=new Mt("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:n},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}});return{[`&${e}-top, &${e}-bottom`]:{marginInline:0},[`&${e}-top`]:{[`${e}-fade-enter${e}-fade-enter-active, ${e}-fade-appear${e}-fade-appear-active`]:{animationName:i}},[`&${e}-bottom`]:{[`${e}-fade-enter${e}-fade-enter-active, ${e}-fade-appear${e}-fade-appear-active`]:{animationName:o}},[`&${e}-topLeft, &${e}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:r,[`${e}-fade-enter${e}-fade-enter-active, ${e}-fade-appear${e}-fade-appear-active`]:{animationName:a}}}},_Ve=t=>{const{iconCls:e,componentCls:n,boxShadowSecondary:r,fontSizeLG:i,notificationMarginBottom:o,borderRadiusLG:a,colorSuccess:s,colorInfo:l,colorWarning:u,colorError:c,colorTextHeading:f,notificationBg:d,notificationPadding:p,notificationMarginEdge:v,motionDurationMid:g,motionEaseInOut:m,fontSize:y,lineHeight:b,width:O,notificationIconSize:w}=t,x=`${n}-notice`,S=new Mt("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:O},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),T=new Mt("antNotificationFadeOut",{"0%":{maxHeight:t.animationMaxHeight,marginBottom:o,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[n]:k(k(k(k({},On(t)),{position:"fixed",zIndex:t.zIndexPopup,marginInlineEnd:v,[`${n}-hook-holder`]:{position:"relative"},[`&${n}-top, &${n}-bottom`]:{[`${n}-notice`]:{marginInline:"auto auto"}},[`&${n}-topLeft, &${n}-bottomLeft`]:{[`${n}-notice`]:{marginInlineEnd:"auto",marginInlineStart:0}},[`${n}-fade-enter, ${n}-fade-appear`]:{animationDuration:t.motionDurationMid,animationTimingFunction:m,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${n}-fade-leave`]:{animationTimingFunction:m,animationFillMode:"both",animationDuration:g,animationPlayState:"paused"},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:S,animationPlayState:"running"},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:T,animationPlayState:"running"}}),bVe(t)),{"&-rtl":{direction:"rtl",[`${n}-notice-btn`]:{float:"left"}}})},{[x]:{position:"relative",width:O,maxWidth:`calc(100vw - ${v*2}px)`,marginBottom:o,marginInlineStart:"auto",padding:p,overflow:"hidden",lineHeight:b,wordWrap:"break-word",background:d,borderRadius:a,boxShadow:r,[`${n}-close-icon`]:{fontSize:y,cursor:"pointer"},[`${x}-message`]:{marginBottom:t.marginXS,color:f,fontSize:i,lineHeight:t.lineHeightLG},[`${x}-description`]:{fontSize:y},[`&${x}-closable ${x}-message`]:{paddingInlineEnd:t.paddingLG},[`${x}-with-icon ${x}-message`]:{marginBottom:t.marginXS,marginInlineStart:t.marginSM+w,fontSize:i},[`${x}-with-icon ${x}-description`]:{marginInlineStart:t.marginSM+w,fontSize:y},[`${x}-icon`]:{position:"absolute",fontSize:w,lineHeight:0,[`&-success${e}`]:{color:s},[`&-info${e}`]:{color:l},[`&-warning${e}`]:{color:u},[`&-error${e}`]:{color:c}},[`${x}-close`]:{position:"absolute",top:t.notificationPaddingVertical,insetInlineEnd:t.notificationPaddingHorizontal,color:t.colorIcon,outline:"none",width:t.notificationCloseButtonSize,height:t.notificationCloseButtonSize,borderRadius:t.borderRadiusSM,transition:`background-color ${t.motionDurationMid}, color ${t.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:t.colorIconHover,backgroundColor:t.wireframe?"transparent":t.colorFillContent}},[`${x}-btn`]:{float:"right",marginTop:t.marginSM}}},{[`${x}-pure-panel`]:{margin:0}}]},B4=Wn("Notification",t=>{const e=t.paddingMD,n=t.paddingLG,r=qt(t,{notificationBg:t.colorBgElevated,notificationPaddingVertical:e,notificationPaddingHorizontal:n,notificationPadding:`${t.paddingMD}px ${t.paddingContentHorizontalLG}px`,notificationMarginBottom:t.margin,notificationMarginEdge:t.marginLG,animationMaxHeight:150,notificationIconSize:t.fontSizeLG*t.lineHeightLG,notificationCloseButtonSize:t.controlHeightLG*.55});return[_Ve(r)]},t=>({zIndexPopup:t.zIndexPopupBase+50,width:384}));function Pie(t,e){return e||h.createVNode("span",{class:`${t}-close-x`},[h.createVNode(mu,{class:`${t}-close-icon`},null)])}h.createVNode(Th,null,null),h.createVNode(Uc,null,null),h.createVNode(Ea,null,null),h.createVNode(Zc,null,null),h.createVNode(sl,null,null);const OVe={success:Uc,info:Th,error:Ea,warning:Zc};function $ie(t){let{prefixCls:e,icon:n,type:r,message:i,description:o,btn:a}=t,s=null;if(n)s=h.createVNode("span",{class:`${e}-icon`},[Hp(n)]);else if(r){const l=OVe[r];s=h.createVNode(l,{class:`${e}-icon ${e}-icon-${r}`},null)}return h.createVNode("div",{class:Pe({[`${e}-with-icon`]:s}),role:"alert"},[s,h.createVNode("div",{class:`${e}-message`},[i]),h.createVNode("div",{class:`${e}-description`},[o]),a&&h.createVNode("div",{class:`${e}-btn`},[a])])}h.defineComponent({name:"PurePanel",inheritAttrs:!1,props:["prefixCls","icon","type","message","description","btn","closeIcon"],setup(t){const{getPrefixCls:e}=Gt("notification",t),n=h.computed(()=>t.prefixCls||e("notification")),r=h.computed(()=>`${n.value}-notice`),[,i]=B4(n);return()=>h.createVNode(KT,K(K({},t),{},{prefixCls:n.value,class:Pe(i.value,`${r.value}-pure-panel`),noticeKey:"pure",duration:null,closable:t.closable,closeIcon:Pie(n.value,t.closeIcon)}),{default:()=>[h.createVNode($ie,{prefixCls:r.value,icon:t.icon,type:t.type,message:t.message,description:t.description,btn:t.btn},null)]})}});function Aie(t,e,n){let r;switch(e=typeof e=="number"?`${e}px`:e,n=typeof n=="number"?`${n}px`:n,t){case"top":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:e,bottom:"auto"};break;case"topLeft":r={left:0,top:e,bottom:"auto"};break;case"topRight":r={right:0,top:e,bottom:"auto"};break;case"bottom":r={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:n};break;case"bottomLeft":r={left:0,top:"auto",bottom:n};break;default:r={right:0,top:"auto",bottom:n};break}return r}function wVe(t){return{name:`${t}-fade`}}var xVe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const fQ=24,SVe=4.5,CVe=h.defineComponent({name:"Holder",inheritAttrs:!1,props:["prefixCls","class","type","icon","content","onAllRemoved"],setup(t,e){let{expose:n}=e;const{getPrefixCls:r,getPopupContainer:i}=Gt("notification",t),o=h.computed(()=>t.prefixCls||r("notification")),a=d=>{var p,v;return Aie(d,(p=t.top)!==null&&p!==void 0?p:fQ,(v=t.bottom)!==null&&v!==void 0?v:fQ)},[,s]=B4(o),l=()=>Pe(s.value,{[`${o.value}-rtl`]:t.rtl}),u=()=>wVe(o.value),[c,f]=gie({prefixCls:o.value,getStyles:a,getClassName:l,motion:u,closable:!0,closeIcon:Pie(o.value),duration:SVe,getContainer:()=>{var d,p;return((d=t.getPopupContainer)===null||d===void 0?void 0:d.call(t))||((p=i.value)===null||p===void 0?void 0:p.call(i))||document.body},maxCount:t.maxCount,hashId:s.value,onAllRemoved:t.onAllRemoved});return n(k(k({},c),{prefixCls:o.value,hashId:s})),f}});function TVe(t){const e=h.shallowRef(null),n=Symbol("notificationHolderKey"),r=s=>{if(!e.value)return;const{open:l,prefixCls:u,hashId:c}=e.value,f=`${u}-notice`,{message:d,description:p,icon:v,type:g,btn:m,class:y}=s,b=xVe(s,["message","description","icon","type","btn","class"]);return l(k(k({placement:"topRight"},b),{content:()=>h.createVNode($ie,{prefixCls:f,icon:typeof v=="function"?v():v,type:g,message:typeof d=="function"?d():d,description:typeof p=="function"?p():p,btn:typeof m=="function"?m():m},null),class:Pe(g&&`${f}-${g}`,c,y)}))},o={open:r,destroy:s=>{var l,u;s!==void 0?(l=e.value)===null||l===void 0||l.close(s):(u=e.value)===null||u===void 0||u.destroy()}};return["success","info","warning","error"].forEach(s=>{o[s]=l=>r(k(k({},l),{type:s}))}),[o,()=>h.createVNode(CVe,K(K({key:n},t),{},{ref:e}),null)]}function PVe(t){return TVe(t)}const id={};let Eie=4.5,Mie="24px",Iie="24px",GD="",Die="topRight",Rie=()=>document.body,kie=null,jD=!1,Nie;function $Ve(t){const{duration:e,placement:n,bottom:r,top:i,getContainer:o,closeIcon:a,prefixCls:s}=t;s!==void 0&&(GD=s),e!==void 0&&(Eie=e),n!==void 0&&(Die=n),r!==void 0&&(Iie=typeof r=="number"?`${r}px`:r),i!==void 0&&(Mie=typeof i=="number"?`${i}px`:i),o!==void 0&&(Rie=o),a!==void 0&&(kie=a),t.rtl!==void 0&&(jD=t.rtl),t.maxCount!==void 0&&(Nie=t.maxCount)}function AVe(t,e){let{prefixCls:n,placement:r=Die,getContainer:i=Rie,top:o,bottom:a,closeIcon:s=kie,appContext:l}=t;const{getPrefixCls:u}=FVe(),c=u("notification",n||GD),f=`${c}-${r}-${jD}`,d=id[f];if(d){Promise.resolve(d).then(v=>{e(v)});return}const p=Pe(`${c}-${r}`,{[`${c}-rtl`]:jD===!0});bS.newInstance({name:"notification",prefixCls:n||GD,useStyle:B4,class:p,style:Aie(r,o??Mie,a??Iie),appContext:l,getContainer:i,closeIcon:v=>{let{prefixCls:g}=v;return h.createVNode("span",{class:`${g}-close-x`},[Hp(s,{},h.createVNode(mu,{class:`${g}-close-icon`},null))])},maxCount:Nie,hasTransitionName:!0},v=>{id[f]=v,e(v)})}const EVe={success:w4,info:QT,error:S4,warning:x4};function MVe(t){const{icon:e,type:n,description:r,message:i,btn:o}=t,a=t.duration===void 0?Eie:t.duration;AVe(t,s=>{s.notice({content:l=>{let{prefixCls:u}=l;const c=`${u}-notice`;let f=null;if(e)f=()=>h.createVNode("span",{class:`${c}-icon`},[Hp(e)]);else if(n){const d=EVe[n];f=()=>h.createVNode(d,{class:`${c}-icon ${c}-icon-${n}`},null)}return h.createVNode("div",{class:f?`${c}-with-icon`:""},[f&&f(),h.createVNode("div",{class:`${c}-message`},[!r&&f?h.createVNode("span",{class:`${c}-message-single-line-auto-margin`},null):null,Hp(i)]),h.createVNode("div",{class:`${c}-description`},[Hp(r)]),o?h.createVNode("span",{class:`${c}-btn`},[Hp(o)]):null])},duration:a,closable:!0,onClose:t.onClose,onClick:t.onClick,key:t.key,style:t.style||{},class:t.class})})}const Xv={open:MVe,close(t){Object.keys(id).forEach(e=>Promise.resolve(id[e]).then(n=>{n.removeNotice(t)}))},config:$Ve,destroy(){Object.keys(id).forEach(t=>{Promise.resolve(id[t]).then(e=>{e.destroy()}),delete id[t]})}},IVe=["success","info","warning","error"];IVe.forEach(t=>{Xv[t]=e=>Xv.open(k(k({},e),{type:t}))});Xv.warn=Xv.warning;Xv.useNotification=PVe;const DVe=`-ant-${Date.now()}-${Math.random()}`;function RVe(t,e){const n={},r=(a,s)=>{let l=a.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},i=(a,s)=>{const l=new _n(a),u=th(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=u[1],n[`${s}-color-hover`]=u[4],n[`${s}-color-active`]=u[6],n[`${s}-color-outline`]=l.clone().setAlpha(.2).toRgbString(),n[`${s}-color-deprecated-bg`]=u[0],n[`${s}-color-deprecated-border`]=u[2]};if(e.primaryColor){i(e.primaryColor,"primary");const a=new _n(e.primaryColor),s=th(a.toRgbString());s.forEach((u,c)=>{n[`primary-${c+1}`]=u}),n["primary-color-deprecated-l-35"]=r(a,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(a,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(a,u=>u.setAlpha(u.getAlpha()*.12));const l=new _n(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,u=>u.setAlpha(u.getAlpha()*.3)),n["primary-color-active-deprecated-d-02"]=r(l,u=>u.darken(2))}return e.successColor&&i(e.successColor,"success"),e.warningColor&&i(e.warningColor,"warning"),e.errorColor&&i(e.errorColor,"error"),e.infoColor&&i(e.infoColor,"info"),`
  236. :root {
  237. ${Object.keys(n).map(a=>`--${t}-${a}: ${n[a]};`).join(`
  238. `)}
  239. }
  240. `.trim()}function kVe(t,e){const n=RVe(t,e);Sa()?zy(n,`${DVe}-dynamic-theme`):$i(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const NVe=t=>{const[e,n]=Sg();return CD(h.computed(()=>({theme:e.value,token:n.value,hashId:"",path:["ant-design-icons",t.value]})),()=>[{[`.${t.value}`]:k(k({},xg()),{[`.${t.value} .${t.value}-icon`]:{display:"block"}})}])};function LVe(t,e){const n=h.computed(()=>(t==null?void 0:t.value)||{}),r=h.computed(()=>n.value.inherit===!1||!(e!=null&&e.value)?dne:e.value);return h.computed(()=>{if(!(t!=null&&t.value))return e==null?void 0:e.value;const o=k({},r.value.components);return Object.keys(t.value.components||{}).forEach(a=>{o[a]=k(k({},o[a]),t.value.components[a])}),k(k(k({},r.value),n.value),{token:k(k({},r.value.token),n.value.token),components:o})})}var BVe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const VVe="ant";function av(){return zr.prefixCls||VVe}function Lie(){return zr.iconPrefixCls||HL}const V4=h.reactive({}),zr=h.reactive({});h.watchEffect(()=>{k(zr,V4),zr.prefixCls=av(),zr.iconPrefixCls=Lie(),zr.getPrefixCls=(t,e)=>e||(t?`${zr.prefixCls}-${t}`:zr.prefixCls),zr.getRootPrefixCls=()=>zr.prefixCls?zr.prefixCls:av()});let OA;const zVe=t=>{OA&&OA(),OA=h.watchEffect(()=>{k(V4,h.reactive(t)),k(zr,h.reactive(t))}),t.theme&&kVe(av(),t.theme)},FVe=()=>({getPrefixCls:(t,e)=>e||(t?`${av()}-${t}`:av()),getIconPrefixCls:Lie,getRootPrefixCls:()=>zr.prefixCls?zr.prefixCls:av()}),sv=h.defineComponent({compatConfig:{MODE:3},name:"AConfigProvider",inheritAttrs:!1,props:nRe(),setup(t,e){let{slots:n}=e;const r=wT(),i=(D,B)=>{const{prefixCls:F="ant"}=t;if(B)return B;const z=F||r.getPrefixCls("");return D?`${z}-${D}`:z},o=h.computed(()=>t.iconPrefixCls||r.iconPrefixCls.value||HL),a=h.computed(()=>o.value!==r.iconPrefixCls.value),s=h.computed(()=>{var D;return t.csp||((D=r.csp)===null||D===void 0?void 0:D.value)}),l=NVe(o),u=LVe(h.computed(()=>t.theme),h.computed(()=>{var D;return(D=r.theme)===null||D===void 0?void 0:D.value})),c=D=>(t.renderEmpty||n.renderEmpty||r.renderEmpty||Lke)(D),f=h.computed(()=>{var D,B;return(D=t.autoInsertSpaceInButton)!==null&&D!==void 0?D:(B=r.autoInsertSpaceInButton)===null||B===void 0?void 0:B.value}),d=h.computed(()=>{var D;return t.locale||((D=r.locale)===null||D===void 0?void 0:D.value)});h.watch(d,()=>{V4.locale=d.value},{immediate:!0});const p=h.computed(()=>{var D;return t.direction||((D=r.direction)===null||D===void 0?void 0:D.value)}),v=h.computed(()=>{var D,B;return(D=t.space)!==null&&D!==void 0?D:(B=r.space)===null||B===void 0?void 0:B.value}),g=h.computed(()=>{var D,B;return(D=t.virtual)!==null&&D!==void 0?D:(B=r.virtual)===null||B===void 0?void 0:B.value}),m=h.computed(()=>{var D,B;return(D=t.dropdownMatchSelectWidth)!==null&&D!==void 0?D:(B=r.dropdownMatchSelectWidth)===null||B===void 0?void 0:B.value}),y=h.computed(()=>{var D;return t.getTargetContainer!==void 0?t.getTargetContainer:(D=r.getTargetContainer)===null||D===void 0?void 0:D.value}),b=h.computed(()=>{var D;return t.getPopupContainer!==void 0?t.getPopupContainer:(D=r.getPopupContainer)===null||D===void 0?void 0:D.value}),O=h.computed(()=>{var D;return t.pageHeader!==void 0?t.pageHeader:(D=r.pageHeader)===null||D===void 0?void 0:D.value}),w=h.computed(()=>{var D;return t.input!==void 0?t.input:(D=r.input)===null||D===void 0?void 0:D.value}),x=h.computed(()=>{var D;return t.pagination!==void 0?t.pagination:(D=r.pagination)===null||D===void 0?void 0:D.value}),S=h.computed(()=>{var D;return t.form!==void 0?t.form:(D=r.form)===null||D===void 0?void 0:D.value}),T=h.computed(()=>{var D;return t.select!==void 0?t.select:(D=r.select)===null||D===void 0?void 0:D.value}),$=h.computed(()=>t.componentSize),A=h.computed(()=>t.componentDisabled),P=h.computed(()=>{var D,B;return(D=t.wave)!==null&&D!==void 0?D:(B=r.wave)===null||B===void 0?void 0:B.value}),M={csp:s,autoInsertSpaceInButton:f,locale:d,direction:p,space:v,virtual:g,dropdownMatchSelectWidth:m,getPrefixCls:i,iconPrefixCls:o,theme:h.computed(()=>{var D,B;return(D=u.value)!==null&&D!==void 0?D:(B=r.theme)===null||B===void 0?void 0:B.value}),renderEmpty:c,getTargetContainer:y,getPopupContainer:b,pageHeader:O,input:w,pagination:x,form:S,select:T,componentSize:$,componentDisabled:A,transformCellText:h.computed(()=>t.transformCellText),wave:P},I=h.computed(()=>{const D=u.value||{},{algorithm:B,token:F}=D,z=BVe(D,["algorithm","token"]),W=B&&(!Array.isArray(B)||B.length>0)?Yte(B):void 0;return k(k({},z),{theme:W,token:k(k({},$T),F)})}),R=h.computed(()=>{var D,B;let F={};return d.value&&(F=((D=d.value.Form)===null||D===void 0?void 0:D.defaultValidateMessages)||((B=eu.Form)===null||B===void 0?void 0:B.defaultValidateMessages)||{}),t.form&&t.form.validateMessages&&(F=k(k({},F),t.form.validateMessages)),F});rRe(M),eRe({validateMessages:R}),_ne($),Lte(A);const L=D=>{var B,F;let z=a.value?l((B=n.default)===null||B===void 0?void 0:B.call(n)):(F=n.default)===null||F===void 0?void 0:F.call(n);if(t.theme){const W=function(){return z}();z=h.createVNode(Ike,{value:I.value},{default:()=>[W]})}return h.createVNode(Z6e,{locale:d.value||D,ANT_MARK__:HD},{default:()=>[z]})};return h.watchEffect(()=>{p.value&&(oh.config({rtl:p.value==="rtl"}),Xv.config({rtl:p.value==="rtl"}))}),()=>h.createVNode(Vte,{children:(D,B,F)=>L(F)},null)}});sv.config=zVe;sv.install=function(t){t.component(sv.name,sv)};const WVe=t=>{const{componentCls:e,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:i}=t;return{[e]:k(k({},On(t)),{borderBlockStart:`${i}px solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${t.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${i}px solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${t.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${e}-with-text`]:{display:"flex",alignItems:"center",margin:`${t.dividerHorizontalWithTextGutterMargin}px 0`,color:t.colorTextHeading,fontWeight:500,fontSize:t.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${i}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${e}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${e}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${e}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${i}px 0 0`},[`&-horizontal${e}-with-text${e}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${e}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${e}-with-text`]:{color:t.colorText,fontWeight:"normal",fontSize:t.fontSize},[`&-horizontal${e}-with-text-left${e}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${e}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${e}-with-text-right${e}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${e}-inner-text`]:{paddingInlineEnd:n}}})}},QVe=Wn("Divider",t=>{const e=qt(t,{dividerVerticalGutterMargin:t.marginXS,dividerHorizontalWithTextGutterMargin:t.margin,dividerHorizontalGutterMargin:t.marginLG});return[WVe(e)]},{sizePaddingEdgeHorizontal:0}),HVe=()=>({prefixCls:String,type:{type:String,default:"horizontal"},dashed:{type:Boolean,default:!1},orientation:{type:String,default:"center"},plain:{type:Boolean,default:!1},orientationMargin:[String,Number]}),GVe=h.defineComponent({name:"ADivider",inheritAttrs:!1,compatConfig:{MODE:3},props:HVe(),setup(t,e){let{slots:n,attrs:r}=e;const{prefixCls:i,direction:o}=Gt("divider",t),[a,s]=QVe(i),l=h.computed(()=>t.orientation==="left"&&t.orientationMargin!=null),u=h.computed(()=>t.orientation==="right"&&t.orientationMargin!=null),c=h.computed(()=>{const{type:p,dashed:v,plain:g}=t,m=i.value;return{[m]:!0,[s.value]:!!s.value,[`${m}-${p}`]:!0,[`${m}-dashed`]:!!v,[`${m}-plain`]:!!g,[`${m}-rtl`]:o.value==="rtl",[`${m}-no-default-orientation-margin-left`]:l.value,[`${m}-no-default-orientation-margin-right`]:u.value}}),f=h.computed(()=>{const p=typeof t.orientationMargin=="number"?`${t.orientationMargin}px`:t.orientationMargin;return k(k({},l.value&&{marginLeft:p}),u.value&&{marginRight:p})}),d=h.computed(()=>t.orientation.length>0?"-"+t.orientation:t.orientation);return()=>{var p;const v=wr((p=n.default)===null||p===void 0?void 0:p.call(n));return a(h.createVNode("div",K(K({},r),{},{class:[c.value,v.length?`${i.value}-with-text ${i.value}-with-text${d.value}`:"",r.class],role:"separator"}),[v.length?h.createVNode("span",{class:`${i.value}-inner-text`,style:f.value},[v]):null]))}}}),jVe=Og(GVe),ey=t=>t!=null&&(Array.isArray(t)?fl(t).length:!0);function z4(t){return ey(t.prefix)||ey(t.suffix)||ey(t.allowClear)}function sx(t){return ey(t.addonBefore)||ey(t.addonAfter)}function UD(t){return typeof t>"u"||t===null?"":String(t)}function ty(t,e,n,r){if(!n)return;const i=e;if(e.type==="click"){Object.defineProperty(i,"target",{writable:!0}),Object.defineProperty(i,"currentTarget",{writable:!0});const o=t.cloneNode(!0);i.target=o,i.currentTarget=o,o.value="",n(i);return}if(r!==void 0){Object.defineProperty(i,"target",{writable:!0}),Object.defineProperty(i,"currentTarget",{writable:!0}),i.target=t,i.currentTarget=t,t.value=r,n(i);return}n(i)}function Bie(t,e){if(!t)return;t.focus(e);const{cursor:n}=e||{};if(n){const r=t.value.length;switch(n){case"start":t.setSelectionRange(0,0);break;case"end":t.setSelectionRange(r,r);break;default:t.setSelectionRange(0,r)}}}const UVe=()=>({addonBefore:ne.any,addonAfter:ne.any,prefix:ne.any,suffix:ne.any,clearIcon:ne.any,affixWrapperClassName:String,groupClassName:String,wrapperClassName:String,inputClassName:String,allowClear:{type:Boolean,default:void 0}}),Vie=()=>k(k({},UVe()),{value:{type:[String,Number,Symbol],default:void 0},defaultValue:{type:[String,Number,Symbol],default:void 0},inputElement:ne.any,prefixCls:String,disabled:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},triggerFocus:Function,readonly:{type:Boolean,default:void 0},handleReset:Function,hidden:{type:Boolean,default:void 0}}),zie=()=>k(k({},Vie()),{id:String,placeholder:{type:[String,Number]},autocomplete:String,type:In("text"),name:String,size:{type:String},autofocus:{type:Boolean,default:void 0},lazy:{type:Boolean,default:!0},maxlength:Number,loading:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},showCount:{type:[Boolean,Object]},htmlSize:Number,onPressEnter:Function,onKeydown:Function,onKeyup:Function,onFocus:Function,onBlur:Function,onChange:Function,onInput:Function,"onUpdate:value":Function,onCompositionstart:Function,onCompositionend:Function,valueModifiers:Object,hidden:{type:Boolean,default:void 0},status:String}),ZVe=h.defineComponent({name:"BaseInput",inheritAttrs:!1,props:Vie(),setup(t,e){let{slots:n,attrs:r}=e;const i=h.ref(),o=s=>{var l;if(!((l=i.value)===null||l===void 0)&&l.contains(s.target)){const{triggerFocus:u}=t;u==null||u()}},a=()=>{var s;const{allowClear:l,value:u,disabled:c,readonly:f,handleReset:d,suffix:p=n.suffix,prefixCls:v}=t;if(!l)return null;const g=!c&&!f&&u,m=`${v}-clear-icon`,y=((s=n.clearIcon)===null||s===void 0?void 0:s.call(n))||"*";return h.createVNode("span",{onClick:d,onMousedown:b=>b.preventDefault(),class:Pe({[`${m}-hidden`]:!g,[`${m}-has-suffix`]:!!p},m),role:"button",tabindex:-1},[y])};return()=>{var s,l;const{focused:u,value:c,disabled:f,allowClear:d,readonly:p,hidden:v,prefixCls:g,prefix:m=(s=n.prefix)===null||s===void 0?void 0:s.call(n),suffix:y=(l=n.suffix)===null||l===void 0?void 0:l.call(n),addonAfter:b=n.addonAfter,addonBefore:O=n.addonBefore,inputElement:w,affixWrapperClassName:x,wrapperClassName:S,groupClassName:T}=t;let $=Xn(w,{value:c,hidden:v});if(z4({prefix:m,suffix:y,allowClear:d})){const A=`${g}-affix-wrapper`,P=Pe(A,{[`${A}-disabled`]:f,[`${A}-focused`]:u,[`${A}-readonly`]:p,[`${A}-input-with-clear-btn`]:y&&d&&c},!sx({addonAfter:b,addonBefore:O})&&r.class,x),M=(y||d)&&h.createVNode("span",{class:`${g}-suffix`},[a(),y]);$=h.createVNode("span",{class:P,style:r.style,hidden:!sx({addonAfter:b,addonBefore:O})&&v,onMousedown:o,ref:i},[m&&h.createVNode("span",{class:`${g}-prefix`},[m]),Xn(w,{style:null,value:c,hidden:null}),M])}if(sx({addonAfter:b,addonBefore:O})){const A=`${g}-group`,P=`${A}-addon`,M=Pe(`${g}-wrapper`,A,S),I=Pe(`${g}-group-wrapper`,r.class,T);return h.createVNode("span",{class:I,style:r.style,hidden:v},[h.createVNode("span",{class:M},[O&&h.createVNode("span",{class:P},[O]),Xn($,{style:null,hidden:null}),b&&h.createVNode("span",{class:P},[b])])])}return $}}});var XVe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const YVe=h.defineComponent({name:"VCInput",inheritAttrs:!1,props:zie(),setup(t,e){let{slots:n,attrs:r,expose:i,emit:o}=e;const a=h.shallowRef(t.value===void 0?t.defaultValue:t.value),s=h.shallowRef(!1),l=h.shallowRef(),u=h.shallowRef();h.watch(()=>t.value,()=>{a.value=t.value}),h.watch(()=>t.disabled,()=>{t.disabled&&(s.value=!1)});const c=T=>{l.value&&Bie(l.value.input,T)},f=()=>{var T;(T=l.value.input)===null||T===void 0||T.blur()},d=(T,$,A)=>{var P;(P=l.value.input)===null||P===void 0||P.setSelectionRange(T,$,A)},p=()=>{var T;(T=l.value.input)===null||T===void 0||T.select()};i({focus:c,blur:f,input:h.computed(()=>{var T;return(T=l.value.input)===null||T===void 0?void 0:T.input}),stateValue:a,setSelectionRange:d,select:p});const v=T=>{o("change",T)},g=(T,$)=>{a.value!==T&&(t.value===void 0?a.value=T:h.nextTick(()=>{var A;l.value.input.value!==a.value&&((A=u.value)===null||A===void 0||A.$forceUpdate())}),h.nextTick(()=>{$&&$()}))},m=T=>{const{value:$}=T.target;if(a.value===$)return;const A=T.target.value;ty(l.value.input,T,v),g(A)},y=T=>{T.keyCode===13&&o("pressEnter",T),o("keydown",T)},b=T=>{s.value=!0,o("focus",T)},O=T=>{s.value=!1,o("blur",T)},w=T=>{ty(l.value.input,T,v),g("",()=>{c()})},x=()=>{var T,$;const{addonBefore:A=n.addonBefore,addonAfter:P=n.addonAfter,disabled:M,valueModifiers:I={},htmlSize:R,autocomplete:L,prefixCls:D,inputClassName:B,prefix:F=(T=n.prefix)===null||T===void 0?void 0:T.call(n),suffix:z=($=n.suffix)===null||$===void 0?void 0:$.call(n),allowClear:W,type:j="text"}=t,H=Mr(t,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","bordered","htmlSize","lazy","showCount","valueModifiers","showCount","affixWrapperClassName","groupClassName","inputClassName","wrapperClassName"]),Z=k(k(k({},H),r),{autocomplete:L,onChange:m,onInput:m,onFocus:b,onBlur:O,onKeydown:y,class:Pe(D,{[`${D}-disabled`]:M},B,!sx({addonAfter:P,addonBefore:A})&&!z4({prefix:F,suffix:z,allowClear:W})&&r.class),ref:l,key:"ant-input",size:R,type:j,lazy:t.lazy});return I.lazy&&delete Z.onInput,Z.autofocus||delete Z.autofocus,h.createVNode(s4,Mr(Z,["size"]),null)},S=()=>{var T;const{maxlength:$,suffix:A=(T=n.suffix)===null||T===void 0?void 0:T.call(n),showCount:P,prefixCls:M}=t,I=Number($)>0;if(A||P){const R=[...UD(a.value)].length,L=typeof P=="object"?P.formatter({count:R,maxlength:$}):`${R}${I?` / ${$}`:""}`;return h.createVNode(h.Fragment,null,[!!P&&h.createVNode("span",{class:Pe(`${M}-show-count-suffix`,{[`${M}-show-count-has-suffix`]:!!A})},[L]),A])}return null};return h.onMounted(()=>{process.env.NODE_ENV==="test"&&t.autofocus&&c()}),()=>{const{prefixCls:T,disabled:$}=t,A=XVe(t,["prefixCls","disabled"]);return h.createVNode(ZVe,K(K(K({},A),r),{},{ref:u,prefixCls:T,inputElement:x(),handleReset:w,value:UD(a.value),focused:s.value,triggerFocus:c,suffix:S(),disabled:$}),n)}}}),JT=()=>Mr(zie(),["wrapperClassName","groupClassName","inputClassName","affixWrapperClassName"]),Fie=()=>k(k({},Mr(JT(),["prefix","addonBefore","addonAfter","suffix"])),{rows:Number,autosize:{type:[Boolean,Object],default:void 0},autoSize:{type:[Boolean,Object],default:void 0},onResize:{type:Function},onCompositionstart:eS(),onCompositionend:eS(),valueModifiers:Object});var qVe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const Gn=h.defineComponent({compatConfig:{MODE:3},name:"AInput",inheritAttrs:!1,props:JT(),setup(t,e){let{slots:n,attrs:r,expose:i,emit:o}=e;const a=h.ref(),s=dl(),l=ss.useInject(),u=h.computed(()=>t_(l.status,t.status)),{direction:c,prefixCls:f,size:d,autocomplete:p}=Gt("input",t),{compactSize:v,compactItemClassnames:g}=VT(f,c),m=h.computed(()=>v.value||d.value),[y,b]=M4(f),O=il();i({focus:R=>{var L;(L=a.value)===null||L===void 0||L.focus(R)},blur:()=>{var R;(R=a.value)===null||R===void 0||R.blur()},input:a,setSelectionRange:(R,L,D)=>{var B;(B=a.value)===null||B===void 0||B.setSelectionRange(R,L,D)},select:()=>{var R;(R=a.value)===null||R===void 0||R.select()}});const $=h.ref([]),A=()=>{$.value.push(setTimeout(()=>{var R,L,D,B;!((R=a.value)===null||R===void 0)&&R.input&&((L=a.value)===null||L===void 0?void 0:L.input.getAttribute("type"))==="password"&&(!((D=a.value)===null||D===void 0)&&D.input.hasAttribute("value"))&&((B=a.value)===null||B===void 0||B.input.removeAttribute("value"))}))};h.onMounted(()=>{A()}),h.onBeforeUpdate(()=>{$.value.forEach(R=>clearTimeout(R))}),h.onBeforeUnmount(()=>{$.value.forEach(R=>clearTimeout(R))});const P=R=>{A(),o("blur",R),s.onFieldBlur()},M=R=>{A(),o("focus",R)},I=R=>{o("update:value",R.target.value),o("change",R),o("input",R),s.onFieldChange()};return()=>{var R,L,D,B,F,z;const{hasFeedback:W,feedbackIcon:j}=l,{allowClear:H,bordered:Z=!0,prefix:J=(R=n.prefix)===null||R===void 0?void 0:R.call(n),suffix:se=(L=n.suffix)===null||L===void 0?void 0:L.call(n),addonAfter:oe=(D=n.addonAfter)===null||D===void 0?void 0:D.call(n),addonBefore:de=(B=n.addonBefore)===null||B===void 0?void 0:B.call(n),id:re=(F=s.id)===null||F===void 0?void 0:F.value}=t,ue=qVe(t,["allowClear","bordered","prefix","suffix","addonAfter","addonBefore","id"]),ee=(W||se)&&h.createVNode(h.Fragment,null,[se,W&&j]),X=f.value,Y=z4({prefix:J,suffix:se})||!!W,le=n.clearIcon||(()=>h.createVNode(Ea,null,null));return y(h.createVNode(YVe,K(K(K({},r),Mr(ue,["onUpdate:value","onChange","onInput"])),{},{onChange:I,id:re,disabled:(z=t.disabled)!==null&&z!==void 0?z:O.value,ref:a,prefixCls:X,autocomplete:p.value,onBlur:P,onFocus:M,prefix:J,suffix:ee,allowClear:H,addonAfter:oe&&h.createVNode(cS,null,{default:()=>[h.createVNode(uS,null,{default:()=>[oe]})]}),addonBefore:de&&h.createVNode(cS,null,{default:()=>[h.createVNode(uS,null,{default:()=>[de]})]}),class:[r.class,g.value],inputClassName:Pe({[`${X}-sm`]:m.value==="small",[`${X}-lg`]:m.value==="large",[`${X}-rtl`]:c.value==="rtl",[`${X}-borderless`]:!Z},!Y&&Zl(X,u.value),b.value),affixWrapperClassName:Pe({[`${X}-affix-wrapper-sm`]:m.value==="small",[`${X}-affix-wrapper-lg`]:m.value==="large",[`${X}-affix-wrapper-rtl`]:c.value==="rtl",[`${X}-affix-wrapper-borderless`]:!Z},Zl(`${X}-affix-wrapper`,u.value,W),b.value),wrapperClassName:Pe({[`${X}-group-rtl`]:c.value==="rtl"},b.value),groupClassName:Pe({[`${X}-group-wrapper-sm`]:m.value==="small",[`${X}-group-wrapper-lg`]:m.value==="large",[`${X}-group-wrapper-rtl`]:c.value==="rtl"},Zl(`${X}-group-wrapper`,u.value,W),b.value)}),k(k({},n),{clearIcon:le})))}}}),KVe=h.defineComponent({compatConfig:{MODE:3},name:"AInputGroup",inheritAttrs:!1,props:{prefixCls:String,size:{type:String},compact:{type:Boolean,default:void 0}},setup(t,e){let{slots:n,attrs:r}=e;const{prefixCls:i,direction:o,getPrefixCls:a}=Gt("input-group",t),s=ss.useInject();ss.useProvide(s,{isFormItemInput:!1});const l=h.computed(()=>a("input")),[u,c]=M4(l),f=h.computed(()=>{const d=i.value;return{[`${d}`]:!0,[c.value]:!0,[`${d}-lg`]:t.size==="large",[`${d}-sm`]:t.size==="small",[`${d}-compact`]:t.compact,[`${d}-rtl`]:o.value==="rtl"}});return()=>{var d;return u(h.createVNode("span",K(K({},r),{},{class:Pe(f.value,r.class)}),[(d=n.default)===null||d===void 0?void 0:d.call(n)]))}}});var JVe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const eze=h.defineComponent({compatConfig:{MODE:3},name:"AInputSearch",inheritAttrs:!1,props:k(k({},JT()),{inputPrefixCls:String,enterButton:ne.any,onSearch:{type:Function}}),setup(t,e){let{slots:n,attrs:r,expose:i,emit:o}=e;const a=h.shallowRef(),s=h.shallowRef(!1);i({focus:()=>{var x;(x=a.value)===null||x===void 0||x.focus()},blur:()=>{var x;(x=a.value)===null||x===void 0||x.blur()}});const c=x=>{o("update:value",x.target.value),x&&x.target&&x.type==="click"&&o("search",x.target.value,x),o("change",x)},f=x=>{var S;document.activeElement===((S=a.value)===null||S===void 0?void 0:S.input)&&x.preventDefault()},d=x=>{var S,T;o("search",(T=(S=a.value)===null||S===void 0?void 0:S.input)===null||T===void 0?void 0:T.stateValue,x)},p=x=>{s.value||t.loading||d(x)},v=x=>{s.value=!0,o("compositionstart",x)},g=x=>{s.value=!1,o("compositionend",x)},{prefixCls:m,getPrefixCls:y,direction:b,size:O}=Gt("input-search",t),w=h.computed(()=>y("input",t.inputPrefixCls));return()=>{var x,S,T,$;const{disabled:A,loading:P,addonAfter:M=(x=n.addonAfter)===null||x===void 0?void 0:x.call(n),suffix:I=(S=n.suffix)===null||S===void 0?void 0:S.call(n)}=t,R=JVe(t,["disabled","loading","addonAfter","suffix"]);let{enterButton:L=($=(T=n.enterButton)===null||T===void 0?void 0:T.call(n))!==null&&$!==void 0?$:!1}=t;L=L||L==="";const D=typeof L=="boolean"?h.createVNode(LT,null,null):null,B=`${m.value}-button`,F=Array.isArray(L)?L[0]:L;let z;const W=F.type&&vL(F.type)&&F.type.__ANT_BUTTON;if(W||F.tagName==="button")z=Xn(F,k({onMousedown:f,onClick:d,key:"enterButton"},W?{class:B,size:O.value}:{}),!1);else{const H=D&&!L;z=h.createVNode(ui,{class:B,type:L?"primary":void 0,size:O.value,disabled:A,key:"enterButton",onMousedown:f,onClick:d,loading:P,icon:H?D:null},{default:()=>[H?null:D||L]})}M&&(z=[z,M]);const j=Pe(m.value,{[`${m.value}-rtl`]:b.value==="rtl",[`${m.value}-${O.value}`]:!!O.value,[`${m.value}-with-button`]:!!L},r.class);return h.createVNode(Gn,K(K(K({ref:a},Mr(R,["onUpdate:value","onSearch","enterButton"])),r),{},{onPressEnter:p,onCompositionstart:v,onCompositionend:g,size:O.value,prefixCls:w.value,addonAfter:z,suffix:I,onChange:c,class:j,disabled:A}),n)}}}),dQ=t=>t!=null&&(Array.isArray(t)?fl(t).length:!0);function tze(t){return dQ(t.addonBefore)||dQ(t.addonAfter)}const nze=["text","input"],rze=h.defineComponent({compatConfig:{MODE:3},name:"ClearableLabeledInput",inheritAttrs:!1,props:{prefixCls:String,inputType:ne.oneOf($c("text","input")),value:la(),defaultValue:la(),allowClear:{type:Boolean,default:void 0},element:la(),handleReset:Function,disabled:{type:Boolean,default:void 0},direction:{type:String},size:{type:String},suffix:la(),prefix:la(),addonBefore:la(),addonAfter:la(),readonly:{type:Boolean,default:void 0},focused:{type:Boolean,default:void 0},bordered:{type:Boolean,default:!0},triggerFocus:{type:Function},hidden:Boolean,status:String,hashId:String},setup(t,e){let{slots:n,attrs:r}=e;const i=ss.useInject(),o=s=>{const{value:l,disabled:u,readonly:c,handleReset:f,suffix:d=n.suffix}=t,p=!u&&!c&&l,v=`${s}-clear-icon`;return h.createVNode(Ea,{onClick:f,onMousedown:g=>g.preventDefault(),class:Pe({[`${v}-hidden`]:!p,[`${v}-has-suffix`]:!!d},v),role:"button"},null)},a=(s,l)=>{const{value:u,allowClear:c,direction:f,bordered:d,hidden:p,status:v,addonAfter:g=n.addonAfter,addonBefore:m=n.addonBefore,hashId:y}=t,{status:b,hasFeedback:O}=i;if(!c)return Xn(l,{value:u,disabled:t.disabled});const w=Pe(`${s}-affix-wrapper`,`${s}-affix-wrapper-textarea-with-clear-btn`,Zl(`${s}-affix-wrapper`,t_(b,v),O),{[`${s}-affix-wrapper-rtl`]:f==="rtl",[`${s}-affix-wrapper-borderless`]:!d,[`${r.class}`]:!tze({addonAfter:g,addonBefore:m})&&r.class},y);return h.createVNode("span",{class:w,style:r.style,hidden:p},[Xn(l,{style:null,value:u,disabled:t.disabled}),o(s)])};return()=>{var s;const{prefixCls:l,inputType:u,element:c=(s=n.element)===null||s===void 0?void 0:s.call(n)}=t;return u===nze[0]?a(l,c):null}}}),ize=`
  241. min-height:0 !important;
  242. max-height:none !important;
  243. height:0 !important;
  244. visibility:hidden !important;
  245. overflow:hidden !important;
  246. position:absolute !important;
  247. z-index:-1000 !important;
  248. top:0 !important;
  249. right:0 !important;
  250. pointer-events: none !important;
  251. `,oze=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],wA={};let Yo;function aze(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const n=t.getAttribute("id")||t.getAttribute("data-reactid")||t.getAttribute("name");if(e&&wA[n])return wA[n];const r=window.getComputedStyle(t),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),o=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l={sizingStyle:oze.map(u=>`${u}:${r.getPropertyValue(u)}`).join(";"),paddingSize:o,borderSize:a,boxSizing:i};return e&&n&&(wA[n]=l),l}function sze(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Yo||(Yo=document.createElement("textarea"),Yo.setAttribute("tab-index","-1"),Yo.setAttribute("aria-hidden","true"),document.body.appendChild(Yo)),t.getAttribute("wrap")?Yo.setAttribute("wrap",t.getAttribute("wrap")):Yo.removeAttribute("wrap");const{paddingSize:i,borderSize:o,boxSizing:a,sizingStyle:s}=aze(t,e);Yo.setAttribute("style",`${s};${ize}`),Yo.value=t.value||t.placeholder||"";let l,u,c,f=Yo.scrollHeight;if(a==="border-box"?f+=o:a==="content-box"&&(f-=i),n!==null||r!==null){Yo.value=" ";const p=Yo.scrollHeight-i;n!==null&&(l=p*n,a==="border-box"&&(l=l+i+o),f=Math.max(l,f)),r!==null&&(u=p*r,a==="border-box"&&(u=u+i+o),c=f>u?"":"hidden",f=Math.min(u,f))}const d={height:`${f}px`,overflowY:c,resize:"none"};return l&&(d.minHeight=`${l}px`),u&&(d.maxHeight=`${u}px`),d}const xA=0,SA=1,CA=2,lze=h.defineComponent({compatConfig:{MODE:3},name:"ResizableTextArea",inheritAttrs:!1,props:Fie(),setup(t,e){let{attrs:n,emit:r,expose:i}=e,o,a;const s=h.ref(),l=h.ref({}),u=h.ref(CA);h.onBeforeUnmount(()=>{Rt.cancel(o),Rt.cancel(a)});const c=()=>{try{if(s.value&&document.activeElement===s.value.input){const S=s.value.getSelectionStart(),T=s.value.getSelectionEnd(),$=s.value.getScrollTop();s.value.setSelectionRange(S,T),s.value.setScrollTop($)}}catch{}},f=h.ref(),d=h.ref();h.watchEffect(()=>{const S=t.autoSize||t.autosize;S?(f.value=S.minRows,d.value=S.maxRows):(f.value=void 0,d.value=void 0)});const p=h.computed(()=>!!(t.autoSize||t.autosize)),v=()=>{u.value=xA};h.watch([()=>t.value,f,d,p],()=>{p.value&&v()},{immediate:!0});const g=h.ref();h.watch([u,s],()=>{if(s.value)if(u.value===xA)u.value=SA;else if(u.value===SA){const S=sze(s.value.input,!1,f.value,d.value);u.value=CA,g.value=S}else c()},{immediate:!0,flush:"post"});const m=h.getCurrentInstance(),y=h.ref(),b=()=>{Rt.cancel(y.value)},O=S=>{u.value===CA&&(r("resize",S),p.value&&(b(),y.value=Rt(()=>{v()})))};h.onBeforeUnmount(()=>{b()}),i({resizeTextarea:()=>{v()},textArea:h.computed(()=>{var S;return(S=s.value)===null||S===void 0?void 0:S.input}),instance:m}),$i(t.autosize===void 0,"Input.TextArea","autosize is deprecated, please use autoSize instead.");const x=()=>{const{prefixCls:S,disabled:T}=t,$=Mr(t,["prefixCls","onPressEnter","autoSize","autosize","defaultValue","allowClear","type","maxlength","valueModifiers"]),A=Pe(S,n.class,{[`${S}-disabled`]:T}),P=p.value?g.value:null,M=[n.style,l.value,P],I=k(k(k({},$),n),{style:M,class:A});return(u.value===xA||u.value===SA)&&M.push({overflowX:"hidden",overflowY:"hidden"}),I.autofocus||delete I.autofocus,I.rows===0&&delete I.rows,h.createVNode(Vv,{onResize:O,disabled:!p.value},{default:()=>[h.createVNode(s4,K(K({},I),{},{ref:s,tag:"textarea"}),null)]})};return()=>x()}});function Wie(t,e){return[...t||""].slice(0,e).join("")}function hQ(t,e,n,r){let i=n;return t?i=Wie(n,r):[...e||""].length<n.length&&[...n||""].length>r&&(i=e),i}const uze=h.defineComponent({compatConfig:{MODE:3},name:"ATextarea",inheritAttrs:!1,props:Fie(),setup(t,e){let{attrs:n,expose:r,emit:i}=e;var o;const a=dl(),s=ss.useInject(),l=h.computed(()=>t_(s.status,t.status)),u=h.shallowRef((o=t.value)!==null&&o!==void 0?o:t.defaultValue),c=h.shallowRef(),f=h.shallowRef(""),{prefixCls:d,size:p,direction:v}=Gt("input",t),[g,m]=M4(d),y=il(),b=h.computed(()=>t.showCount===""||t.showCount||!1),O=h.computed(()=>Number(t.maxlength)>0),w=h.shallowRef(!1),x=h.shallowRef(),S=h.shallowRef(0),T=W=>{w.value=!0,x.value=f.value,S.value=W.currentTarget.selectionStart,i("compositionstart",W)},$=W=>{var j;w.value=!1;let H=W.currentTarget.value;if(O.value){const Z=S.value>=t.maxlength+1||S.value===((j=x.value)===null||j===void 0?void 0:j.length);H=hQ(Z,x.value,H,t.maxlength)}H!==f.value&&(I(H),ty(W.currentTarget,W,D,H)),i("compositionend",W)},A=h.getCurrentInstance();h.watch(()=>t.value,()=>{var W;"value"in A.vnode.props,u.value=(W=t.value)!==null&&W!==void 0?W:""});const P=W=>{var j;Bie((j=c.value)===null||j===void 0?void 0:j.textArea,W)},M=()=>{var W,j;(j=(W=c.value)===null||W===void 0?void 0:W.textArea)===null||j===void 0||j.blur()},I=(W,j)=>{u.value!==W&&(t.value===void 0?u.value=W:h.nextTick(()=>{var H,Z,J;c.value.textArea.value!==f.value&&((J=(H=c.value)===null||H===void 0?void 0:(Z=H.instance).update)===null||J===void 0||J.call(Z))}),h.nextTick(()=>{j&&j()}))},R=W=>{W.keyCode===13&&i("pressEnter",W),i("keydown",W)},L=W=>{const{onBlur:j}=t;j==null||j(W),a.onFieldBlur()},D=W=>{i("update:value",W.target.value),i("change",W),i("input",W),a.onFieldChange()},B=W=>{ty(c.value.textArea,W,D),I("",()=>{P()})},F=W=>{let j=W.target.value;if(u.value!==j){if(O.value){const H=W.target,Z=H.selectionStart>=t.maxlength+1||H.selectionStart===j.length||!H.selectionStart;j=hQ(Z,f.value,j,t.maxlength)}ty(W.currentTarget,W,D,j),I(j)}},z=()=>{var W,j;const{class:H}=n,{bordered:Z=!0}=t,J=k(k(k({},Mr(t,["allowClear"])),n),{class:[{[`${d.value}-borderless`]:!Z,[`${H}`]:H&&!b.value,[`${d.value}-sm`]:p.value==="small",[`${d.value}-lg`]:p.value==="large"},Zl(d.value,l.value),m.value],disabled:y.value,showCount:null,prefixCls:d.value,onInput:F,onChange:F,onBlur:L,onKeydown:R,onCompositionstart:T,onCompositionend:$});return!((W=t.valueModifiers)===null||W===void 0)&&W.lazy&&delete J.onInput,h.createVNode(lze,K(K({},J),{},{id:(j=J==null?void 0:J.id)!==null&&j!==void 0?j:a.id.value,ref:c,maxlength:t.maxlength,lazy:t.lazy}),null)};return r({focus:P,blur:M,resizableTextArea:c}),h.watchEffect(()=>{let W=UD(u.value);!w.value&&O.value&&(t.value===null||t.value===void 0)&&(W=Wie(W,t.maxlength)),f.value=W}),()=>{var W;const{maxlength:j,bordered:H=!0,hidden:Z}=t,{style:J,class:se}=n,oe=k(k(k({},t),n),{prefixCls:d.value,inputType:"text",handleReset:B,direction:v.value,bordered:H,style:b.value?void 0:J,hashId:m.value,disabled:(W=t.disabled)!==null&&W!==void 0?W:y.value});let de=h.createVNode(rze,K(K({},oe),{},{value:f.value,status:t.status}),{element:z});if(b.value||s.hasFeedback){const re=[...f.value].length;let ue="";typeof b.value=="object"?ue=b.value.formatter({value:f.value,count:re,maxlength:j}):ue=`${re}${O.value?` / ${j}`:""}`,de=h.createVNode("div",{hidden:Z,class:Pe(`${d.value}-textarea`,{[`${d.value}-textarea-rtl`]:v.value==="rtl",[`${d.value}-textarea-show-count`]:b.value,[`${d.value}-textarea-in-form-item`]:s.isFormItemInput},`${d.value}-textarea-show-count`,se,m.value),style:J,"data-count":typeof ue!="object"?ue:void 0},[de,s.hasFeedback&&h.createVNode("span",{class:`${d.value}-textarea-suffix`},[s.feedbackIcon])])}return g(de)}}});var cze={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"};function pQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){fze(t,i,n[i])})}return t}function fze(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var eP=function(e,n){var r=pQ({},e,n.attrs);return h.createVNode(yt,pQ({},r,{icon:cze}),null)};eP.displayName="EyeOutlined";eP.inheritAttrs=!1;var dze={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};function vQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){hze(t,i,n[i])})}return t}function hze(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var F4=function(e,n){var r=vQ({},e,n.attrs);return h.createVNode(yt,vQ({},r,{icon:dze}),null)};F4.displayName="EyeInvisibleOutlined";F4.inheritAttrs=!1;var pze=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const vze={click:"onClick",hover:"onMouseover"},gze=t=>t?h.createVNode(eP,null,null):h.createVNode(F4,null,null),mze=h.defineComponent({compatConfig:{MODE:3},name:"AInputPassword",inheritAttrs:!1,props:k(k({},JT()),{prefixCls:String,inputPrefixCls:String,action:{type:String,default:"click"},visibilityToggle:{type:Boolean,default:!0},visible:{type:Boolean,default:void 0},"onUpdate:visible":Function,iconRender:Function}),setup(t,e){let{slots:n,attrs:r,expose:i,emit:o}=e;const a=h.shallowRef(!1),s=()=>{const{disabled:m}=t;m||(a.value=!a.value,o("update:visible",a.value))};h.watchEffect(()=>{t.visible!==void 0&&(a.value=!!t.visible)});const l=h.shallowRef();i({focus:()=>{var m;(m=l.value)===null||m===void 0||m.focus()},blur:()=>{var m;(m=l.value)===null||m===void 0||m.blur()}});const f=m=>{const{action:y,iconRender:b=n.iconRender||gze}=t,O=vze[y]||"",w=b(a.value),x={[O]:s,class:`${m}-icon`,key:"passwordIcon",onMousedown:S=>{S.preventDefault()},onMouseup:S=>{S.preventDefault()}};return Xn(No(w)?w:h.createVNode("span",null,[w]),x)},{prefixCls:d,getPrefixCls:p}=Gt("input-password",t),v=h.computed(()=>p("input",t.inputPrefixCls)),g=()=>{const{size:m,visibilityToggle:y}=t,b=pze(t,["size","visibilityToggle"]),O=y&&f(d.value),w=Pe(d.value,r.class,{[`${d.value}-${m}`]:!!m}),x=k(k(k({},Mr(b,["suffix","iconRender","action"])),r),{type:a.value?"text":"password",class:w,prefixCls:v.value,suffix:O});return m&&(x.size=m),h.createVNode(Gn,K({ref:l},x),n)};return()=>g()}});Gn.Group=KVe;Gn.Search=eze;Gn.TextArea=uze;Gn.Password=mze;Gn.install=function(t){return t.component(Gn.name,Gn),t.component(Gn.Group.name,Gn.Group),t.component(Gn.Search.name,Gn.Search),t.component(Gn.TextArea.name,Gn.TextArea),t.component(Gn.Password.name,Gn.Password),t};function tP(){return{keyboard:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},afterClose:Function,closable:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},destroyOnClose:{type:Boolean,default:void 0},mousePosition:ne.shape({x:Number,y:Number}).loose,title:ne.any,footer:ne.any,transitionName:String,maskTransitionName:String,animation:ne.any,maskAnimation:ne.any,wrapStyle:{type:Object,default:void 0},bodyStyle:{type:Object,default:void 0},maskStyle:{type:Object,default:void 0},prefixCls:String,wrapClassName:String,rootClassName:String,width:[String,Number],height:[String,Number],zIndex:Number,bodyProps:ne.any,maskProps:ne.any,wrapProps:ne.any,getContainer:ne.any,dialogStyle:{type:Object,default:void 0},dialogClass:String,closeIcon:ne.any,forceRender:{type:Boolean,default:void 0},getOpenCount:Function,focusTriggerAfterClose:{type:Boolean,default:void 0},onClose:Function,modalRender:Function}}function gQ(t,e,n){let r=e;return!r&&n&&(r=`${t}-${n}`),r}let mQ=-1;function yze(){return mQ+=1,mQ}function yQ(t,e){let n=t[`page${e?"Y":"X"}Offset`];const r=`scroll${e?"Top":"Left"}`;if(typeof n!="number"){const i=t.document;n=i.documentElement[r],typeof n!="number"&&(n=i.body[r])}return n}function bze(t){const e=t.getBoundingClientRect(),n={left:e.left,top:e.top},r=t.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=yQ(i),n.top+=yQ(i,!0),n}const bQ={width:0,height:0,overflow:"hidden",outline:"none"},_ze=h.defineComponent({compatConfig:{MODE:3},name:"DialogContent",inheritAttrs:!1,props:k(k({},tP()),{motionName:String,ariaId:String,onVisibleChanged:Function,onMousedown:Function,onMouseup:Function}),setup(t,e){let{expose:n,slots:r,attrs:i}=e;const o=h.ref(),a=h.ref(),s=h.ref();n({focus:()=>{var d;(d=o.value)===null||d===void 0||d.focus()},changeActive:d=>{const{activeElement:p}=document;d&&p===a.value?o.value.focus():!d&&p===o.value&&a.value.focus()}});const l=h.ref(),u=h.computed(()=>{const{width:d,height:p}=t,v={};return d!==void 0&&(v.width=typeof d=="number"?`${d}px`:d),p!==void 0&&(v.height=typeof p=="number"?`${p}px`:p),l.value&&(v.transformOrigin=l.value),v}),c=()=>{h.nextTick(()=>{if(s.value){const d=bze(s.value);l.value=t.mousePosition?`${t.mousePosition.x-d.left}px ${t.mousePosition.y-d.top}px`:""}})},f=d=>{t.onVisibleChanged(d)};return()=>{var d,p,v,g;const{prefixCls:m,footer:y=(d=r.footer)===null||d===void 0?void 0:d.call(r),title:b=(p=r.title)===null||p===void 0?void 0:p.call(r),ariaId:O,closable:w,closeIcon:x=(v=r.closeIcon)===null||v===void 0?void 0:v.call(r),onClose:S,bodyStyle:T,bodyProps:$,onMousedown:A,onMouseup:P,visible:M,modalRender:I=r.modalRender,destroyOnClose:R,motionName:L}=t;let D;y&&(D=h.createVNode("div",{class:`${m}-footer`},[y]));let B;b&&(B=h.createVNode("div",{class:`${m}-header`},[h.createVNode("div",{class:`${m}-title`,id:O},[b])]));let F;w&&(F=h.createVNode("button",{type:"button",onClick:S,"aria-label":"Close",class:`${m}-close`},[x||h.createVNode("span",{class:`${m}-close-x`},null)]));const z=h.createVNode("div",{class:`${m}-content`},[F,B,h.createVNode("div",K({class:`${m}-body`,style:T},$),[(g=r.default)===null||g===void 0?void 0:g.call(r)]),D]),W=e_(L);return h.createVNode(h.Transition,K(K({},W),{},{onBeforeEnter:c,onAfterEnter:()=>f(!0),onAfterLeave:()=>f(!1)}),{default:()=>[M||!R?h.withDirectives(h.createVNode("div",K(K({},i),{},{ref:s,key:"dialog-element",role:"document",style:[u.value,i.style],class:[m,i.class],onMousedown:A,onMouseup:P}),[h.createVNode("div",{tabindex:0,ref:o,style:bQ,"aria-hidden":"true"},null),I?I({originVNode:z}):z,h.createVNode("div",{tabindex:0,ref:a,style:bQ,"aria-hidden":"true"},null)]),[[h.vShow,M]]):null]})}}}),Oze=h.defineComponent({compatConfig:{MODE:3},name:"DialogMask",props:{prefixCls:String,visible:Boolean,motionName:String,maskProps:Object},setup(t,e){return()=>{const{prefixCls:n,visible:r,maskProps:i,motionName:o}=t,a=e_(o);return h.createVNode(h.Transition,a,{default:()=>[h.withDirectives(h.createVNode("div",K({class:`${n}-mask`},i),null),[[h.vShow,r]])]})}}}),_Q=h.defineComponent({compatConfig:{MODE:3},name:"VcDialog",inheritAttrs:!1,props:Ir(k(k({},tP()),{getOpenCount:Function,scrollLocker:Object}),{mask:!0,visible:!1,keyboard:!0,closable:!0,maskClosable:!0,destroyOnClose:!1,prefixCls:"rc-dialog",getOpenCount:()=>null,focusTriggerAfterClose:!0}),setup(t,e){let{attrs:n,slots:r}=e;const i=h.shallowRef(),o=h.shallowRef(),a=h.shallowRef(),s=h.shallowRef(t.visible),l=h.shallowRef(`vcDialogTitle${yze()}`),u=y=>{var b,O;if(y)qu(o.value,document.activeElement)||(i.value=document.activeElement,(b=a.value)===null||b===void 0||b.focus());else{const w=s.value;if(s.value=!1,t.mask&&i.value&&t.focusTriggerAfterClose){try{i.value.focus({preventScroll:!0})}catch{}i.value=null}w&&((O=t.afterClose)===null||O===void 0||O.call(t))}},c=y=>{var b;(b=t.onClose)===null||b===void 0||b.call(t,y)},f=h.shallowRef(!1),d=h.shallowRef(),p=()=>{clearTimeout(d.value),f.value=!0},v=()=>{d.value=setTimeout(()=>{f.value=!1})},g=y=>{if(!t.maskClosable)return null;f.value?f.value=!1:o.value===y.target&&c(y)},m=y=>{if(t.keyboard&&y.keyCode===Se.ESC){y.stopPropagation(),c(y);return}t.visible&&y.keyCode===Se.TAB&&a.value.changeActive(!y.shiftKey)};return h.watch(()=>t.visible,()=>{t.visible&&(s.value=!0)},{flush:"post"}),h.onBeforeUnmount(()=>{var y;clearTimeout(d.value),(y=t.scrollLocker)===null||y===void 0||y.unLock()}),h.watchEffect(()=>{var y,b;(y=t.scrollLocker)===null||y===void 0||y.unLock(),s.value&&((b=t.scrollLocker)===null||b===void 0||b.lock())}),()=>{const{prefixCls:y,mask:b,visible:O,maskTransitionName:w,maskAnimation:x,zIndex:S,wrapClassName:T,rootClassName:$,wrapStyle:A,closable:P,maskProps:M,maskStyle:I,transitionName:R,animation:L,wrapProps:D,title:B=r.title}=t,{style:F,class:z}=n;return h.createVNode("div",K({class:[`${y}-root`,$]},RT(t,{data:!0})),[h.createVNode(Oze,{prefixCls:y,visible:b&&O,motionName:gQ(y,w,x),style:k({zIndex:S},I),maskProps:M},null),h.createVNode("div",K({tabIndex:-1,onKeydown:m,class:Pe(`${y}-wrap`,T),ref:o,onClick:g,role:"dialog","aria-labelledby":B?l.value:null,style:k(k({zIndex:S},A),{display:s.value?null:"none"})},D),[h.createVNode(_ze,K(K({},Mr(t,["scrollLocker"])),{},{style:F,class:z,onMousedown:p,onMouseup:v,ref:a,closable:P,ariaId:l.value,prefixCls:y,visible:O,onClose:c,onVisibleChanged:u,motionName:gQ(y,R,L)}),r)])])}}}),wze=tP(),Qie=h.defineComponent({compatConfig:{MODE:3},name:"DialogWrap",inheritAttrs:!1,props:Ir(wze,{visible:!1}),setup(t,e){let{attrs:n,slots:r}=e;const i=h.ref(t.visible);return a4({},{inTriggerContext:!1}),h.watch(()=>t.visible,()=>{t.visible&&(i.value=!0)},{flush:"post"}),()=>{const{visible:o,getContainer:a,forceRender:s,destroyOnClose:l=!1,afterClose:u}=t;let c=k(k(k({},t),n),{ref:"_component",key:"dialog"});return a===!1?h.createVNode(_Q,K(K({},c),{},{getOpenCount:()=>2}),r):!s&&l&&!i.value?null:h.createVNode(Gne,{autoLock:!0,visible:o,forceRender:s,getContainer:a},{default:f=>(c=k(k(k({},c),f),{afterClose:()=>{u==null||u(),i.value=!1}}),h.createVNode(_Q,c,r))})}}});function xze(t){const e=h.ref(null),n=h.reactive(k({},t)),r=h.ref([]),i=o=>{e.value===null&&(r.value=[],e.value=Rt(()=>{let a;r.value.forEach(s=>{a=k(k({},a),s)}),k(n,a),e.value=null})),r.value.push(o)};return h.onMounted(()=>{e.value&&Rt.cancel(e.value)}),[n,i]}function OQ(t,e,n,r){const i=e+n,o=(n-r)/2;if(n>r){if(e>0)return{[t]:o};if(e<0&&i<r)return{[t]:-o}}else if(e<0||i>r)return{[t]:e<0?o:-o};return{}}function Sze(t,e,n,r){const{width:i,height:o}=pLe();let a=null;return t<=i&&e<=o?a={x:0,y:0}:(t>i||e>o)&&(a=k(k({},OQ("x",n,t,i)),OQ("y",r,e,o))),a}var Cze=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const wQ=Symbol("previewGroupContext"),W4={provide:t=>{h.provide(wQ,t)},inject:()=>h.inject(wQ,{isPreviewGroup:h.shallowRef(!1),previewUrls:h.computed(()=>new Map),setPreviewUrls:()=>{},current:h.ref(null),setCurrent:()=>{},setShowPreview:()=>{},setMousePosition:()=>{},registerImage:null,rootClassName:""})},Tze=()=>({previewPrefixCls:String,preview:{type:[Boolean,Object],default:!0},icons:{type:Object,default:()=>({})}}),Pze=h.defineComponent({compatConfig:{MODE:3},name:"PreviewGroup",inheritAttrs:!1,props:Tze(),setup(t,e){let{slots:n}=e;const r=h.computed(()=>{const x={visible:void 0,onVisibleChange:()=>{},getContainer:void 0,current:0};return typeof t.preview=="object"?Uie(t.preview,x):x}),i=h.reactive(new Map),o=h.ref(),a=h.computed(()=>r.value.visible),s=h.computed(()=>r.value.getContainer),l=(x,S)=>{var T,$;($=(T=r.value).onVisibleChange)===null||$===void 0||$.call(T,x,S)},[u,c]=Gv(!!a.value,{value:a,onChange:l}),f=h.ref(null),d=h.computed(()=>a.value!==void 0),p=h.computed(()=>Array.from(i.keys())),v=h.computed(()=>p.value[r.value.current]),g=h.computed(()=>new Map(Array.from(i).filter(x=>{let[,{canPreview:S}]=x;return!!S}).map(x=>{let[S,{url:T}]=x;return[S,T]}))),m=function(x,S){let T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;i.set(x,{url:S,canPreview:T})},y=x=>{o.value=x},b=x=>{f.value=x},O=function(x,S){let T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const $=()=>{i.delete(x)};return i.set(x,{url:S,canPreview:T}),$},w=x=>{x==null||x.stopPropagation(),c(!1),b(null)};return h.watch(v,x=>{y(x)},{immediate:!0,flush:"post"}),h.watchEffect(()=>{u.value&&d.value&&y(v.value)},{flush:"post"}),W4.provide({isPreviewGroup:h.shallowRef(!0),previewUrls:g,setPreviewUrls:m,current:o,setCurrent:y,setShowPreview:c,setMousePosition:b,registerImage:O}),()=>{const x=Cze(r.value,[]);return h.createVNode(h.Fragment,null,[n.default&&n.default(),h.createVNode(Gie,K(K({},x),{},{"ria-hidden":!u.value,visible:u.value,prefixCls:t.previewPrefixCls,onClose:w,mousePosition:f.value,src:g.value.get(o.value),icons:t.icons,getContainer:s.value}),null)])}}}),Hie=Pze,Of={x:0,y:0},$ze=k(k({},tP()),{src:String,alt:String,rootClassName:String,icons:{type:Object,default:()=>({})}}),Gie=h.defineComponent({compatConfig:{MODE:3},name:"Preview",inheritAttrs:!1,props:$ze,emits:["close","afterClose"],setup(t,e){let{emit:n,attrs:r}=e;const{rotateLeft:i,rotateRight:o,zoomIn:a,zoomOut:s,close:l,left:u,right:c,flipX:f,flipY:d}=h.reactive(t.icons),p=h.shallowRef(1),v=h.shallowRef(0),g=h.reactive({x:1,y:1}),[m,y]=xze(Of),b=()=>n("close"),O=h.shallowRef(),w=h.reactive({originX:0,originY:0,deltaX:0,deltaY:0}),x=h.shallowRef(!1),S=W4.inject(),{previewUrls:T,current:$,isPreviewGroup:A,setCurrent:P}=S,M=h.computed(()=>T.value.size),I=h.computed(()=>Array.from(T.value.keys())),R=h.computed(()=>I.value.indexOf($.value)),L=h.computed(()=>A.value?T.value.get($.value):t.src),D=h.computed(()=>A.value&&M.value>1),B=h.shallowRef({wheelDirection:0}),F=()=>{p.value=1,v.value=0,g.x=1,g.y=1,y(Of),n("afterClose")},z=Ee=>{Ee?p.value+=.5:p.value++,y(Of)},W=Ee=>{p.value>1&&(Ee?p.value-=.5:p.value--),y(Of)},j=()=>{v.value+=90},H=()=>{v.value-=90},Z=()=>{g.x=-g.x},J=()=>{g.y=-g.y},se=Ee=>{Ee.preventDefault(),Ee.stopPropagation(),R.value>0&&P(I.value[R.value-1])},oe=Ee=>{Ee.preventDefault(),Ee.stopPropagation(),R.value<M.value-1&&P(I.value[R.value+1])},de=Pe({[`${t.prefixCls}-moving`]:x.value}),re=`${t.prefixCls}-operations-operation`,ue=`${t.prefixCls}-operations-icon`,ee=[{icon:l,onClick:b,type:"close"},{icon:a,onClick:()=>z(),type:"zoomIn"},{icon:s,onClick:()=>W(),type:"zoomOut",disabled:h.computed(()=>p.value===1)},{icon:o,onClick:j,type:"rotateRight"},{icon:i,onClick:H,type:"rotateLeft"},{icon:f,onClick:Z,type:"flipX"},{icon:d,onClick:J,type:"flipY"}],X=()=>{if(t.visible&&x.value){const Ee=O.value.offsetWidth*p.value,$e=O.value.offsetHeight*p.value,{left:_e,top:De}=jne(O.value),ze=v.value%180!==0;x.value=!1;const lt=Sze(ze?$e:Ee,ze?Ee:$e,_e,De);lt&&y(k({},lt))}},Y=Ee=>{Ee.button===0&&(Ee.preventDefault(),Ee.stopPropagation(),w.deltaX=Ee.pageX-m.x,w.deltaY=Ee.pageY-m.y,w.originX=m.x,w.originY=m.y,x.value=!0)},le=Ee=>{t.visible&&x.value&&y({x:Ee.pageX-w.deltaX,y:Ee.pageY-w.deltaY})},ge=Ee=>{if(!t.visible)return;Ee.preventDefault();const $e=Ee.deltaY;B.value={wheelDirection:$e}},me=Ee=>{!t.visible||!D.value||(Ee.preventDefault(),Ee.keyCode===Se.LEFT?R.value>0&&P(I.value[R.value-1]):Ee.keyCode===Se.RIGHT&&R.value<M.value-1&&P(I.value[R.value+1]))},Ne=()=>{t.visible&&(p.value!==1&&(p.value=1),(m.x!==Of.x||m.y!==Of.y)&&y(Of))};let Le=()=>{};return h.onMounted(()=>{h.watch([()=>t.visible,x],()=>{Le();let Ee,$e;const _e=Wr(window,"mouseup",X,!1),De=Wr(window,"mousemove",le,!1),ze=Wr(window,"wheel",ge,{passive:!1}),lt=Wr(window,"keydown",me,!1);try{window.top!==window.self&&(Ee=Wr(window.top,"mouseup",X,!1),$e=Wr(window.top,"mousemove",le,!1))}catch(gt){eh(!1,`[vc-image] ${gt}`)}Le=()=>{_e.remove(),De.remove(),ze.remove(),lt.remove(),Ee&&Ee.remove(),$e&&$e.remove()}},{flush:"post",immediate:!0}),h.watch([B],()=>{const{wheelDirection:Ee}=B.value;Ee>0?W(!0):Ee<0&&z(!0)})}),h.onUnmounted(()=>{Le()}),()=>{const{visible:Ee,prefixCls:$e,rootClassName:_e}=t;return h.createVNode(Qie,K(K({},r),{},{transitionName:t.transitionName,maskTransitionName:t.maskTransitionName,closable:!1,keyboard:!0,prefixCls:$e,onClose:b,afterClose:F,visible:Ee,wrapClassName:de,rootClassName:_e,getContainer:t.getContainer}),{default:()=>[h.createVNode("div",{class:[`${t.prefixCls}-operations-wrapper`,_e]},[h.createVNode("ul",{class:`${t.prefixCls}-operations`},[ee.map(De=>{let{icon:ze,onClick:lt,type:gt,disabled:Bt}=De;return h.createVNode("li",{class:Pe(re,{[`${t.prefixCls}-operations-operation-disabled`]:Bt&&(Bt==null?void 0:Bt.value)}),onClick:lt,key:gt},[h.cloneVNode(ze,{class:ue})])})])]),h.createVNode("div",{class:`${t.prefixCls}-img-wrapper`,style:{transform:`translate3d(${m.x}px, ${m.y}px, 0)`}},[h.createVNode("img",{onMousedown:Y,onDblclick:Ne,ref:O,class:`${t.prefixCls}-img`,src:L.value,alt:t.alt,style:{transform:`scale3d(${g.x*p.value}, ${g.y*p.value}, 1) rotate(${v.value}deg)`}},null)]),D.value&&h.createVNode("div",{class:Pe(`${t.prefixCls}-switch-left`,{[`${t.prefixCls}-switch-left-disabled`]:R.value<=0}),onClick:se},[u]),D.value&&h.createVNode("div",{class:Pe(`${t.prefixCls}-switch-right`,{[`${t.prefixCls}-switch-right-disabled`]:R.value>=M.value-1}),onClick:oe},[c])]})}}});var Aze=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const jie=()=>({src:String,wrapperClassName:String,wrapperStyle:{type:Object,default:void 0},rootClassName:String,prefixCls:String,previewPrefixCls:String,previewMask:{type:[Boolean,Function],default:void 0},placeholder:ne.any,fallback:String,preview:{type:[Boolean,Object],default:!0},onClick:{type:Function},onError:{type:Function}}),Uie=(t,e)=>{const n=k({},t);return Object.keys(e).forEach(r=>{t[r]===void 0&&(n[r]=e[r])}),n};let Eze=0;const Zie=h.defineComponent({compatConfig:{MODE:3},name:"VcImage",inheritAttrs:!1,props:jie(),emits:["click","error"],setup(t,e){let{attrs:n,slots:r,emit:i}=e;const o=h.computed(()=>t.prefixCls),a=h.computed(()=>`${o.value}-preview`),s=h.computed(()=>{const z={visible:void 0,onVisibleChange:()=>{},getContainer:void 0};return typeof t.preview=="object"?Uie(t.preview,z):z}),l=h.computed(()=>{var z;return(z=s.value.src)!==null&&z!==void 0?z:t.src}),u=h.computed(()=>t.placeholder&&t.placeholder!==!0||r.placeholder),c=h.computed(()=>s.value.visible),f=h.computed(()=>s.value.getContainer),d=h.computed(()=>c.value!==void 0),p=(z,W)=>{var j,H;(H=(j=s.value).onVisibleChange)===null||H===void 0||H.call(j,z,W)},[v,g]=Gv(!!c.value,{value:c,onChange:p}),m=h.ref(u.value?"loading":"normal");h.watch(()=>t.src,()=>{m.value=u.value?"loading":"normal"});const y=h.ref(null),b=h.computed(()=>m.value==="error"),O=W4.inject(),{isPreviewGroup:w,setCurrent:x,setShowPreview:S,setMousePosition:T,registerImage:$}=O,A=h.ref(Eze++),P=h.computed(()=>t.preview&&!b.value),M=()=>{m.value="normal"},I=z=>{m.value="error",i("error",z)},R=z=>{if(!d.value){const{left:W,top:j}=jne(z.target);w.value?(x(A.value),T({x:W,y:j})):y.value={x:W,y:j}}w.value?S(!0):g(!0),i("click",z)},L=()=>{g(!1),d.value||(y.value=null)},D=h.ref(null);h.watch(()=>D,()=>{m.value==="loading"&&D.value.complete&&(D.value.naturalWidth||D.value.naturalHeight)&&M()});let B=()=>{};h.onMounted(()=>{h.watch([l,P],()=>{if(B(),!w.value)return()=>{};B=$(A.value,l.value,P.value),P.value||B()},{flush:"post",immediate:!0})}),h.onUnmounted(()=>{B()});const F=z=>HPe(z)?z+"px":z;return()=>{const{prefixCls:z,wrapperClassName:W,fallback:j,src:H,placeholder:Z,wrapperStyle:J,rootClassName:se}=t,{width:oe,height:de,crossorigin:re,decoding:ue,alt:ee,sizes:X,srcset:Y,usemap:le,class:ge,style:me}=n,Ne=s.value,{icons:Le,maskClassName:Ee}=Ne,$e=Aze(Ne,["icons","maskClassName"]),_e=Pe(z,W,se,{[`${z}-error`]:b.value}),De=b.value&&j?j:l.value,ze={crossorigin:re,decoding:ue,alt:ee,sizes:X,srcset:Y,usemap:le,width:oe,height:de,class:Pe(`${z}-img`,{[`${z}-img-placeholder`]:Z===!0},ge),style:k({height:F(de)},me)};return h.createVNode(h.Fragment,null,[h.createVNode("div",{class:_e,onClick:P.value?R:lt=>{i("click",lt)},style:k({width:F(oe),height:F(de)},J)},[h.createVNode("img",K(K(K({},ze),b.value&&j?{src:j}:{onLoad:M,onError:I,src:H}),{},{ref:D}),null),m.value==="loading"&&h.createVNode("div",{"aria-hidden":"true",class:`${z}-placeholder`},[Z||r.placeholder&&r.placeholder()]),r.previewMask&&P.value&&h.createVNode("div",{class:[`${z}-mask`,Ee]},[r.previewMask()])]),!w.value&&P.value&&h.createVNode(Gie,K(K({},$e),{},{"aria-hidden":!v.value,visible:v.value,prefixCls:a.value,onClose:L,mousePosition:y.value,src:De,alt:ee,getContainer:f.value,icons:Le,rootClassName:se}),null)])}}});Zie.PreviewGroup=Hie;const Mze=Zie;var Ize={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M672 418H144c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H188V494h440v326z"}},{tag:"path",attrs:{d:"M819.3 328.5c-78.8-100.7-196-153.6-314.6-154.2l-.2-64c0-6.5-7.6-10.1-12.6-6.1l-128 101c-4 3.1-3.9 9.1 0 12.3L492 318.6c5.1 4 12.7.4 12.6-6.1v-63.9c12.9.1 25.9.9 38.8 2.5 42.1 5.2 82.1 18.2 119 38.7 38.1 21.2 71.2 49.7 98.4 84.3 27.1 34.7 46.7 73.7 58.1 115.8a325.95 325.95 0 016.5 140.9h74.9c14.8-103.6-11.3-213-81-302.3z"}}]},name:"rotate-left",theme:"outlined"};function xQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){Dze(t,i,n[i])})}return t}function Dze(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Q4=function(e,n){var r=xQ({},e,n.attrs);return h.createVNode(yt,xQ({},r,{icon:Ize}),null)};Q4.displayName="RotateLeftOutlined";Q4.inheritAttrs=!1;var Rze={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M480.5 251.2c13-1.6 25.9-2.4 38.8-2.5v63.9c0 6.5 7.5 10.1 12.6 6.1L660 217.6c4-3.2 4-9.2 0-12.3l-128-101c-5.1-4-12.6-.4-12.6 6.1l-.2 64c-118.6.5-235.8 53.4-314.6 154.2A399.75 399.75 0 00123.5 631h74.9c-.9-5.3-1.7-10.7-2.4-16.1-5.1-42.1-2.1-84.1 8.9-124.8 11.4-42.2 31-81.1 58.1-115.8 27.2-34.7 60.3-63.2 98.4-84.3 37-20.6 76.9-33.6 119.1-38.8z"}},{tag:"path",attrs:{d:"M880 418H352c-17.7 0-32 14.3-32 32v414c0 17.7 14.3 32 32 32h528c17.7 0 32-14.3 32-32V450c0-17.7-14.3-32-32-32zm-44 402H396V494h440v326z"}}]},name:"rotate-right",theme:"outlined"};function SQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){kze(t,i,n[i])})}return t}function kze(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var H4=function(e,n){var r=SQ({},e,n.attrs);return h.createVNode(yt,SQ({},r,{icon:Rze}),null)};H4.displayName="RotateRightOutlined";H4.inheritAttrs=!1;var Nze={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-in",theme:"outlined"};function CQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){Lze(t,i,n[i])})}return t}function Lze(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var G4=function(e,n){var r=CQ({},e,n.attrs);return h.createVNode(yt,CQ({},r,{icon:Nze}),null)};G4.displayName="ZoomInOutlined";G4.inheritAttrs=!1;var Bze={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"}}]},name:"zoom-out",theme:"outlined"};function TQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){Vze(t,i,n[i])})}return t}function Vze(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var j4=function(e,n){var r=TQ({},e,n.attrs);return h.createVNode(yt,TQ({},r,{icon:Bze}),null)};j4.displayName="ZoomOutOutlined";j4.inheritAttrs=!1;var zze={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M847.9 592H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h605.2L612.9 851c-4.1 5.2-.4 13 6.3 13h72.5c4.9 0 9.5-2.2 12.6-6.1l168.8-214.1c16.5-21 1.6-51.8-25.2-51.8zM872 356H266.8l144.3-183c4.1-5.2.4-13-6.3-13h-72.5c-4.9 0-9.5 2.2-12.6 6.1L150.9 380.2c-16.5 21-1.6 51.8 25.1 51.8h696c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"swap",theme:"outlined"};function PQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){Fze(t,i,n[i])})}return t}function Fze(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _S=function(e,n){var r=PQ({},e,n.attrs);return h.createVNode(yt,PQ({},r,{icon:zze}),null)};_S.displayName="SwapOutlined";_S.inheritAttrs=!1;function $Q(t){return{position:t,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0}}const Xie=t=>{const{componentCls:e}=t;return[{[`${e}-root`]:{[`${e}${t.antCls}-zoom-enter, ${e}${t.antCls}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:t.motionDurationSlow,userSelect:"none"},[`${e}${t.antCls}-zoom-leave ${e}-content`]:{pointerEvents:"none"},[`${e}-mask`]:k(k({},$Q("fixed")),{zIndex:t.zIndexPopupBase,height:"100%",backgroundColor:t.colorBgMask,[`${e}-hidden`]:{display:"none"}}),[`${e}-wrap`]:k(k({},$Q("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${e}-root`]:hre(t)}]},Wze=t=>{const{componentCls:e}=t;return[{[`${e}-root`]:{[`${e}-wrap`]:{zIndex:t.zIndexPopupBase,position:"fixed",inset:0,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"},[`${e}-wrap-rtl`]:{direction:"rtl"},[`${e}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[e]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${t.screenSMMax})`]:{[e]:{maxWidth:"calc(100vw - 16px)",margin:`${t.marginXS} auto`},[`${e}-centered`]:{[e]:{flex:1}}}}},{[e]:k(k({},On(t)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${t.margin*2}px)`,margin:"0 auto",paddingBottom:t.paddingLG,[`${e}-title`]:{margin:0,color:t.modalHeadingColor,fontWeight:t.fontWeightStrong,fontSize:t.modalHeaderTitleFontSize,lineHeight:t.modalHeaderTitleLineHeight,wordWrap:"break-word"},[`${e}-content`]:{position:"relative",backgroundColor:t.modalContentBg,backgroundClip:"padding-box",border:0,borderRadius:t.borderRadiusLG,boxShadow:t.boxShadowSecondary,pointerEvents:"auto",padding:`${t.paddingMD}px ${t.paddingContentHorizontalLG}px`},[`${e}-close`]:k({position:"absolute",top:(t.modalHeaderCloseSize-t.modalCloseBtnSize)/2,insetInlineEnd:(t.modalHeaderCloseSize-t.modalCloseBtnSize)/2,zIndex:t.zIndexPopupBase+10,padding:0,color:t.modalCloseColor,fontWeight:t.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:t.borderRadiusSM,width:t.modalConfirmIconSize,height:t.modalConfirmIconSize,border:0,outline:0,cursor:"pointer",transition:`color ${t.motionDurationMid}, background-color ${t.motionDurationMid}`,"&-x":{display:"block",fontSize:t.fontSizeLG,fontStyle:"normal",lineHeight:`${t.modalCloseBtnSize}px`,textAlign:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:t.modalIconHoverColor,backgroundColor:t.wireframe?"transparent":t.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:t.wireframe?"transparent":t.colorFillContentHover}},AT(t)),[`${e}-header`]:{color:t.colorText,background:t.modalHeaderBg,borderRadius:`${t.borderRadiusLG}px ${t.borderRadiusLG}px 0 0`,marginBottom:t.marginXS},[`${e}-body`]:{fontSize:t.fontSize,lineHeight:t.lineHeight,wordWrap:"break-word"},[`${e}-footer`]:{textAlign:"end",background:t.modalFooterBg,marginTop:t.marginSM,[`${t.antCls}-btn + ${t.antCls}-btn:not(${t.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:t.marginXS}},[`${e}-open`]:{overflow:"hidden"}})},{[`${e}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${e}-content,
  252. ${e}-body,
  253. ${e}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${e}-confirm-body`]:{marginBottom:"auto"}}}]},Qze=t=>{const{componentCls:e}=t,n=`${e}-confirm`;return{[n]:{"&-rtl":{direction:"rtl"},[`${t.antCls}-modal-header`]:{display:"none"},[`${n}-body-wrapper`]:k({},iS()),[`${n}-body`]:{display:"flex",flexWrap:"wrap",alignItems:"center",[`${n}-title`]:{flex:"0 0 100%",display:"block",overflow:"hidden",color:t.colorTextHeading,fontWeight:t.fontWeightStrong,fontSize:t.modalHeaderTitleFontSize,lineHeight:t.modalHeaderTitleLineHeight,[`+ ${n}-content`]:{marginBlockStart:t.marginXS,flexBasis:"100%",maxWidth:`calc(100% - ${t.modalConfirmIconSize+t.marginSM}px)`}},[`${n}-content`]:{color:t.colorText,fontSize:t.fontSize},[`> ${t.iconCls}`]:{flex:"none",marginInlineEnd:t.marginSM,fontSize:t.modalConfirmIconSize,[`+ ${n}-title`]:{flex:1},[`+ ${n}-title + ${n}-content`]:{marginInlineStart:t.modalConfirmIconSize+t.marginSM}}},[`${n}-btns`]:{textAlign:"end",marginTop:t.marginSM,[`${t.antCls}-btn + ${t.antCls}-btn`]:{marginBottom:0,marginInlineStart:t.marginXS}}},[`${n}-error ${n}-body > ${t.iconCls}`]:{color:t.colorError},[`${n}-warning ${n}-body > ${t.iconCls},
  254. ${n}-confirm ${n}-body > ${t.iconCls}`]:{color:t.colorWarning},[`${n}-info ${n}-body > ${t.iconCls}`]:{color:t.colorInfo},[`${n}-success ${n}-body > ${t.iconCls}`]:{color:t.colorSuccess},[`${e}-zoom-leave ${e}-btns`]:{pointerEvents:"none"}}},Hze=t=>{const{componentCls:e}=t;return{[`${e}-root`]:{[`${e}-wrap-rtl`]:{direction:"rtl",[`${e}-confirm-body`]:{direction:"rtl"}}}}},Gze=t=>{const{componentCls:e,antCls:n}=t,r=`${e}-confirm`;return{[e]:{[`${e}-content`]:{padding:0},[`${e}-header`]:{padding:t.modalHeaderPadding,borderBottom:`${t.modalHeaderBorderWidth}px ${t.modalHeaderBorderStyle} ${t.modalHeaderBorderColorSplit}`,marginBottom:0},[`${e}-body`]:{padding:t.modalBodyPadding},[`${e}-footer`]:{padding:`${t.modalFooterPaddingVertical}px ${t.modalFooterPaddingHorizontal}px`,borderTop:`${t.modalFooterBorderWidth}px ${t.modalFooterBorderStyle} ${t.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${t.borderRadiusLG}px ${t.borderRadiusLG}px`,marginTop:0}},[r]:{[`${n}-modal-body`]:{padding:`${t.padding*2}px ${t.padding*2}px ${t.paddingLG}px`},[`${r}-body`]:{[`> ${t.iconCls}`]:{marginInlineEnd:t.margin,[`+ ${r}-title + ${r}-content`]:{marginInlineStart:t.modalConfirmIconSize+t.margin}}},[`${r}-btns`]:{marginTop:t.marginLG}}}},jze=Wn("Modal",t=>{const e=t.padding,n=t.fontSizeHeading5,r=t.lineHeightHeading5,i=qt(t,{modalBodyPadding:t.paddingLG,modalHeaderBg:t.colorBgElevated,modalHeaderPadding:`${e}px ${t.paddingLG}px`,modalHeaderBorderWidth:t.lineWidth,modalHeaderBorderStyle:t.lineType,modalHeaderTitleLineHeight:r,modalHeaderTitleFontSize:n,modalHeaderBorderColorSplit:t.colorSplit,modalHeaderCloseSize:r*n+e*2,modalContentBg:t.colorBgElevated,modalHeadingColor:t.colorTextHeading,modalCloseColor:t.colorTextDescription,modalFooterBg:"transparent",modalFooterBorderColorSplit:t.colorSplit,modalFooterBorderStyle:t.lineType,modalFooterPaddingVertical:t.paddingXS,modalFooterPaddingHorizontal:t.padding,modalFooterBorderWidth:t.lineWidth,modalConfirmTitleFontSize:t.fontSizeLG,modalIconHoverColor:t.colorIconHover,modalConfirmIconSize:t.fontSize*t.lineHeight,modalCloseBtnSize:t.controlHeightLG*.55});return[Wze(i),Qze(i),Hze(i),Xie(i),t.wireframe&&Gze(i),FT(i,"zoom")]}),ZD=t=>({position:t||"absolute",inset:0}),Uze=t=>{const{iconCls:e,motionDurationSlow:n,paddingXXS:r,marginXXS:i,prefixCls:o}=t;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:"#fff",background:new _n("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${o}-mask-info`]:k(k({},Wv),{padding:`0 ${r}px`,[e]:{marginInlineEnd:i,svg:{verticalAlign:"baseline"}}})}},Zze=t=>{const{previewCls:e,modalMaskBg:n,paddingSM:r,previewOperationColorDisabled:i,motionDurationSlow:o}=t,a=new _n(n).setAlpha(.1),s=a.clone().setAlpha(.2);return{[`${e}-operations`]:k(k({},On(t)),{display:"flex",flexDirection:"row-reverse",alignItems:"center",color:t.previewOperationColor,listStyle:"none",background:a.toRgbString(),pointerEvents:"auto","&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${o}`,userSelect:"none","&:hover":{background:s.toRgbString()},"&-disabled":{color:i,pointerEvents:"none"},"&:last-of-type":{marginInlineStart:0}},"&-progress":{position:"absolute",left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%)"},"&-icon":{fontSize:t.previewOperationSize}})}},Xze=t=>{const{modalMaskBg:e,iconCls:n,previewOperationColorDisabled:r,previewCls:i,zIndexPopup:o,motionDurationSlow:a}=t,s=new _n(e).setAlpha(.1),l=s.clone().setAlpha(.2);return{[`${i}-switch-left, ${i}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:o+1,display:"flex",alignItems:"center",justifyContent:"center",width:t.imagePreviewSwitchSize,height:t.imagePreviewSwitchSize,marginTop:-t.imagePreviewSwitchSize/2,color:t.previewOperationColor,background:s.toRgbString(),borderRadius:"50%",transform:"translateY(-50%)",cursor:"pointer",transition:`all ${a}`,pointerEvents:"auto",userSelect:"none","&:hover":{background:l.toRgbString()},"&-disabled":{"&, &:hover":{color:r,background:"transparent",cursor:"not-allowed",[`> ${n}`]:{cursor:"not-allowed"}}},[`> ${n}`]:{fontSize:t.previewOperationSize}},[`${i}-switch-left`]:{insetInlineStart:t.marginSM},[`${i}-switch-right`]:{insetInlineEnd:t.marginSM}}},Yze=t=>{const{motionEaseOut:e,previewCls:n,motionDurationSlow:r,componentCls:i}=t;return[{[`${i}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:k(k({},ZD()),{overflow:"hidden"}),[`${n}-img`]:{maxWidth:"100%",maxHeight:"100%",verticalAlign:"middle",transform:"scale3d(1, 1, 1)",cursor:"grab",transition:`transform ${r} ${e} 0s`,userSelect:"none",pointerEvents:"auto","&-wrapper":k(k({},ZD()),{transition:`transform ${r} ${e} 0s`,display:"flex",justifyContent:"center",alignItems:"center","&::before":{display:"inline-block",width:1,height:"50%",marginInlineEnd:-1,content:'""'}})},[`${n}-moving`]:{[`${n}-preview-img`]:{cursor:"grabbing","&-wrapper":{transitionDuration:"0s"}}}}},{[`${i}-preview-root`]:{[`${n}-wrap`]:{zIndex:t.zIndexPopup}}},{[`${i}-preview-operations-wrapper`]:{position:"fixed",insetBlockStart:0,insetInlineEnd:0,zIndex:t.zIndexPopup+1,width:"100%"},"&":[Zze(t),Xze(t)]}]},qze=t=>{const{componentCls:e}=t;return{[e]:{position:"relative",display:"inline-block",[`${e}-img`]:{width:"100%",height:"auto",verticalAlign:"middle"},[`${e}-img-placeholder`]:{backgroundColor:t.colorBgContainerDisabled,backgroundImage:"url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHZpZXdCb3g9IjAgMCAxNiAxNiIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTQuNSAyLjVoLTEzQS41LjUgMCAwIDAgMSAzdjEwYS41LjUgMCAwIDAgLjUuNWgxM2EuNS41IDAgMCAwIC41LS41VjNhLjUuNSAwIDAgMC0uNS0uNXpNNS4yODEgNC43NWExIDEgMCAwIDEgMCAyIDEgMSAwIDAgMSAwLTJ6bTguMDMgNi44M2EuMTI3LjEyNyAwIDAgMS0uMDgxLjAzSDIuNzY5YS4xMjUuMTI1IDAgMCAxLS4wOTYtLjIwN2wyLjY2MS0zLjE1NmEuMTI2LjEyNiAwIDAgMSAuMTc3LS4wMTZsLjAxNi4wMTZMNy4wOCAxMC4wOWwyLjQ3LTIuOTNhLjEyNi4xMjYgMCAwIDEgLjE3Ny0uMDE2bC4wMTUuMDE2IDMuNTg4IDQuMjQ0YS4xMjcuMTI3IDAgMCAxLS4wMi4xNzV6IiBmaWxsPSIjOEM4QzhDIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=')",backgroundRepeat:"no-repeat",backgroundPosition:"center center",backgroundSize:"30%"},[`${e}-mask`]:k({},Uze(t)),[`${e}-mask:hover`]:{opacity:1},[`${e}-placeholder`]:k({},ZD())}}},Kze=t=>{const{previewCls:e}=t;return{[`${e}-root`]:FT(t,"zoom"),"&":hre(t,!0)}},Yie=Wn("Image",t=>{const e=`${t.componentCls}-preview`,n=qt(t,{previewCls:e,modalMaskBg:new _n("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:t.controlHeightLG});return[qze(n),Yze(n),Xie(qt(n,{componentCls:e})),Kze(n)]},t=>({zIndexPopup:t.zIndexPopupBase+80,previewOperationColor:new _n(t.colorTextLightSolid).toRgbString(),previewOperationColorDisabled:new _n(t.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:t.fontSizeIcon*1.5})),qie={rotateLeft:h.createVNode(Q4,null,null),rotateRight:h.createVNode(H4,null,null),zoomIn:h.createVNode(G4,null,null),zoomOut:h.createVNode(j4,null,null),close:h.createVNode(mu,null,null),left:h.createVNode(I4,null,null),right:h.createVNode(jT,null,null),flipX:h.createVNode(_S,null,null),flipY:h.createVNode(_S,{rotate:90},null)},Jze=()=>({previewPrefixCls:String,preview:la()}),eFe=h.defineComponent({compatConfig:{MODE:3},name:"AImagePreviewGroup",inheritAttrs:!1,props:Jze(),setup(t,e){let{attrs:n,slots:r}=e;const{prefixCls:i,rootPrefixCls:o}=Gt("image",t),a=h.computed(()=>`${i.value}-preview`),[s,l]=Yie(i),u=h.computed(()=>{const{preview:c}=t;if(c===!1)return c;const f=typeof c=="object"?c:{};return k(k({},f),{rootClassName:l.value,transitionName:al(o.value,"zoom",f.transitionName),maskTransitionName:al(o.value,"fade",f.maskTransitionName)})});return()=>s(h.createVNode(Hie,K(K({},k(k({},n),t)),{},{preview:u.value,icons:qie,previewPrefixCls:a.value}),r))}}),tFe=eFe,Ku=h.defineComponent({name:"AImage",inheritAttrs:!1,props:jie(),setup(t,e){let{slots:n,attrs:r}=e;const{prefixCls:i,rootPrefixCls:o,configProvider:a}=Gt("image",t),[s,l]=Yie(i),u=h.computed(()=>{const{preview:c}=t;if(c===!1)return c;const f=typeof c=="object"?c:{};return k(k({icons:qie},f),{transitionName:al(o.value,"zoom",f.transitionName),maskTransitionName:al(o.value,"fade",f.maskTransitionName)})});return()=>{var c,f;const d=((f=(c=a.locale)===null||c===void 0?void 0:c.value)===null||f===void 0?void 0:f.Image)||eu.Image,p=()=>h.createVNode("div",{class:`${i.value}-mask-info`},[h.createVNode(eP,null,null),d==null?void 0:d.preview]),{previewMask:v=n.previewMask||p}=t;return s(h.createVNode(Mze,K(K({},k(k(k({},r),t),{prefixCls:i.value})),{},{preview:u.value,rootClassName:Pe(t.rootClassName,l.value)}),k(k({},n),{previewMask:typeof v=="function"?v:null})))}}});Ku.PreviewGroup=tFe;Ku.install=function(t){return t.component(Ku.name,Ku),t.component(Ku.PreviewGroup.name,Ku.PreviewGroup),t};var nFe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"};function AQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){rFe(t,i,n[i])})}return t}function rFe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var U4=function(e,n){var r=AQ({},e,n.attrs);return h.createVNode(yt,AQ({},r,{icon:nFe}),null)};U4.displayName="UpOutlined";U4.inheritAttrs=!1;function XD(){return typeof BigInt=="function"}function ny(t){let e=t.trim(),n=e.startsWith("-");n&&(e=e.slice(1)),e=e.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),e.startsWith(".")&&(e=`0${e}`);const r=e||"0",i=r.split("."),o=i[0]||"0",a=i[1]||"0";o==="0"&&a==="0"&&(n=!1);const s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:o,decimalStr:a,fullStr:`${s}${r}`}}function Z4(t){const e=String(t);return!Number.isNaN(Number(e))&&e.includes("e")}function Uy(t){const e=String(t);if(Z4(t)){let n=Number(e.slice(e.indexOf("e-")+2));const r=e.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return e.includes(".")&&Y4(e)?e.length-e.indexOf(".")-1:0}function X4(t){let e=String(t);if(Z4(t)){if(t>Number.MAX_SAFE_INTEGER)return String(XD()?BigInt(t).toString():Number.MAX_SAFE_INTEGER);if(t<Number.MIN_SAFE_INTEGER)return String(XD()?BigInt(t).toString():Number.MIN_SAFE_INTEGER);e=t.toFixed(Uy(e))}return ny(e).fullStr}function Y4(t){return typeof t=="number"?!Number.isNaN(t):t?/^\s*-?\d+(\.\d+)?\s*$/.test(t)||/^\s*-?\d+\.\s*$/.test(t)||/^\s*-?\.\d+\s*$/.test(t):!1}function Kie(t){return!t&&t!==0&&!Number.isNaN(t)||!String(t).trim()}class od{constructor(e){if(this.origin="",Kie(e)){this.empty=!0;return}this.origin=String(e),this.number=Number(e)}negate(){return new od(-this.toNumber())}add(e){if(this.isInvalidate())return new od(e);const n=Number(e);if(Number.isNaN(n))return this;const r=this.number+n;if(r>Number.MAX_SAFE_INTEGER)return new od(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new od(Number.MIN_SAFE_INTEGER);const i=Math.max(Uy(this.number),Uy(n));return new od(r.toFixed(i))}isEmpty(){return this.empty}isNaN(){return Number.isNaN(this.number)}isInvalidate(){return this.isEmpty()||this.isNaN()}equals(e){return this.toNumber()===(e==null?void 0:e.toNumber())}lessEquals(e){return this.add(e.negate().toString()).toNumber()<=0}toNumber(){return this.number}toString(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0)?this.isInvalidate()?"":X4(this.number):this.origin}}class Up{constructor(e){if(this.origin="",Kie(e)){this.empty=!0;return}if(this.origin=String(e),e==="-"||Number.isNaN(e)){this.nan=!0;return}let n=e;if(Z4(n)&&(n=Number(n)),n=typeof n=="string"?n:X4(n),Y4(n)){const r=ny(n);this.negative=r.negative;const i=r.trimStr.split(".");this.integer=BigInt(i[0]);const o=i[1]||"0";this.decimal=BigInt(o),this.decimalLen=o.length}else this.nan=!0}getMark(){return this.negative?"-":""}getIntegerStr(){return this.integer.toString()}getDecimalStr(){return this.decimal.toString().padStart(this.decimalLen,"0")}alignDecimal(e){const n=`${this.getMark()}${this.getIntegerStr()}${this.getDecimalStr().padEnd(e,"0")}`;return BigInt(n)}negate(){const e=new Up(this.toString());return e.negative=!e.negative,e}add(e){if(this.isInvalidate())return new Up(e);const n=new Up(e);if(n.isInvalidate())return this;const r=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),i=this.alignDecimal(r),o=n.alignDecimal(r),a=(i+o).toString(),{negativeStr:s,trimStr:l}=ny(a),u=`${s}${l.padStart(r+1,"0")}`;return new Up(`${u.slice(0,-r)}.${u.slice(-r)}`)}isEmpty(){return this.empty}isNaN(){return this.nan}isInvalidate(){return this.isEmpty()||this.isNaN()}equals(e){return this.toString()===(e==null?void 0:e.toString())}lessEquals(e){return this.add(e.negate().toString()).toNumber()<=0}toNumber(){return this.isNaN()?NaN:Number(this.toString())}toString(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0)?this.isInvalidate()?"":ny(`${this.getMark()}${this.getIntegerStr()}.${this.getDecimalStr()}`).fullStr:this.origin}}function Ls(t){return XD()?new Up(t):new od(t)}function YD(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(t==="")return"";const{negativeStr:i,integerStr:o,decimalStr:a}=ny(t),s=`${e}${a}`,l=`${i}${o}`;if(n>=0){const u=Number(a[n]);if(u>=5&&!r){const c=Ls(t).add(`${i}0.${"0".repeat(n)}${10-u}`);return YD(c.toString(),e,n,r)}return n===0?l:`${l}${e}${a.padEnd(n,"0").slice(0,n)}`}return s===".0"?l:`${l}${s}`}const iFe=200,oFe=600,aFe=h.defineComponent({compatConfig:{MODE:3},name:"StepHandler",inheritAttrs:!1,props:{prefixCls:String,upDisabled:Boolean,downDisabled:Boolean,onStep:ct()},slots:Object,setup(t,e){let{slots:n,emit:r}=e;const i=h.ref(),o=(s,l)=>{s.preventDefault(),r("step",l);function u(){r("step",l),i.value=setTimeout(u,iFe)}i.value=setTimeout(u,oFe)},a=()=>{clearTimeout(i.value)};return h.onBeforeUnmount(()=>{a()}),()=>{if(c4())return null;const{prefixCls:s,upDisabled:l,downDisabled:u}=t,c=`${s}-handler`,f=Pe(c,`${c}-up`,{[`${c}-up-disabled`]:l}),d=Pe(c,`${c}-down`,{[`${c}-down-disabled`]:u}),p={unselectable:"on",role:"button",onMouseup:a,onMouseleave:a},{upNode:v,downNode:g}=n;return h.createVNode("div",{class:`${c}-wrap`},[h.createVNode("span",K(K({},p),{},{onMousedown:m=>{o(m,!0)},"aria-label":"Increase Value","aria-disabled":l,class:f}),[(v==null?void 0:v())||h.createVNode("span",{unselectable:"on",class:`${s}-handler-up-inner`},null)]),h.createVNode("span",K(K({},p),{},{onMousedown:m=>{o(m,!1)},"aria-label":"Decrease Value","aria-disabled":u,class:d}),[(g==null?void 0:g())||h.createVNode("span",{unselectable:"on",class:`${s}-handler-down-inner`},null)])])}}});function sFe(t,e){const n=h.ref(null);function r(){try{const{selectionStart:o,selectionEnd:a,value:s}=t.value,l=s.substring(0,o),u=s.substring(a);n.value={start:o,end:a,value:s,beforeTxt:l,afterTxt:u}}catch{}}function i(){if(t.value&&n.value&&e.value)try{const{value:o}=t.value,{beforeTxt:a,afterTxt:s,start:l}=n.value;let u=o.length;if(o.endsWith(s))u=o.length-n.value.afterTxt.length;else if(o.startsWith(a))u=a.length;else{const c=a[l-1],f=o.indexOf(c,l-1);f!==-1&&(u=f+1)}t.value.setSelectionRange(u,u)}catch(o){eh(!1,`Something warning of cursor restore. Please fire issue about this: ${o.message}`)}}return[r,i]}const lFe=()=>{const t=h.shallowRef(0),e=()=>{Rt.cancel(t.value)};return h.onBeforeUnmount(()=>{e()}),n=>{e(),t.value=Rt(()=>{n()})}};var uFe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const EQ=(t,e)=>t||e.isEmpty()?e.toString():e.toNumber(),MQ=t=>{const e=Ls(t);return e.isInvalidate()?null:e},Jie=()=>({stringMode:ft(),defaultValue:kn([String,Number]),value:kn([String,Number]),prefixCls:In(),min:kn([String,Number]),max:kn([String,Number]),step:kn([String,Number],1),tabindex:Number,controls:ft(!0),readonly:ft(),disabled:ft(),autofocus:ft(),keyboard:ft(!0),parser:ct(),formatter:ct(),precision:Number,decimalSeparator:String,onInput:ct(),onChange:ct(),onPressEnter:ct(),onStep:ct(),onBlur:ct(),onFocus:ct()}),cFe=h.defineComponent({compatConfig:{MODE:3},name:"InnerInputNumber",inheritAttrs:!1,props:k(k({},Jie()),{lazy:Boolean}),slots:Object,setup(t,e){let{attrs:n,slots:r,emit:i,expose:o}=e;const a=h.shallowRef(),s=h.shallowRef(!1),l=h.shallowRef(!1),u=h.shallowRef(!1),c=h.shallowRef(Ls(t.value));function f(H){t.value===void 0&&(c.value=H)}const d=(H,Z)=>{if(!Z)return t.precision>=0?t.precision:Math.max(Uy(H),Uy(t.step))},p=H=>{const Z=String(H);if(t.parser)return t.parser(Z);let J=Z;return t.decimalSeparator&&(J=J.replace(t.decimalSeparator,".")),J.replace(/[^\w.-]+/g,"")},v=h.shallowRef(""),g=(H,Z)=>{if(t.formatter)return t.formatter(H,{userTyping:Z,input:String(v.value)});let J=typeof H=="number"?X4(H):H;if(!Z){const se=d(J,Z);if(Y4(J)&&(t.decimalSeparator||se>=0)){const oe=t.decimalSeparator||".";J=YD(J,oe,se)}}return J},m=(()=>{const H=t.value;return c.value.isInvalidate()&&["string","number"].includes(typeof H)?Number.isNaN(H)?"":H:g(c.value.toString(),!1)})();v.value=m;function y(H,Z){v.value=g(H.isInvalidate()?H.toString(!1):H.toString(!Z),Z)}const b=h.computed(()=>MQ(t.max)),O=h.computed(()=>MQ(t.min)),w=h.computed(()=>!b.value||!c.value||c.value.isInvalidate()?!1:b.value.lessEquals(c.value)),x=h.computed(()=>!O.value||!c.value||c.value.isInvalidate()?!1:c.value.lessEquals(O.value)),[S,T]=sFe(a,s),$=H=>b.value&&!H.lessEquals(b.value)?b.value:O.value&&!O.value.lessEquals(H)?O.value:null,A=H=>!$(H),P=(H,Z)=>{var J;let se=H,oe=A(se)||se.isEmpty();if(!se.isEmpty()&&!Z&&(se=$(se)||se,oe=!0),!t.readonly&&!t.disabled&&oe){const de=se.toString(),re=d(de,Z);return re>=0&&(se=Ls(YD(de,".",re))),se.equals(c.value)||(f(se),(J=t.onChange)===null||J===void 0||J.call(t,se.isEmpty()?null:EQ(t.stringMode,se)),t.value===void 0&&y(se,Z)),se}return c.value},M=lFe(),I=H=>{var Z;if(S(),v.value=H,!u.value){const J=p(H),se=Ls(J);se.isNaN()||P(se,!0)}(Z=t.onInput)===null||Z===void 0||Z.call(t,H),M(()=>{let J=H;t.parser||(J=H.replace(/。/g,".")),J!==H&&I(J)})},R=()=>{u.value=!0},L=()=>{u.value=!1,I(a.value.value)},D=H=>{I(H.target.value)},B=H=>{var Z,J;if(H&&w.value||!H&&x.value)return;l.value=!1;let se=Ls(t.step);H||(se=se.negate());const oe=(c.value||Ls(0)).add(se.toString()),de=P(oe,!1);(Z=t.onStep)===null||Z===void 0||Z.call(t,EQ(t.stringMode,de),{offset:t.step,type:H?"up":"down"}),(J=a.value)===null||J===void 0||J.focus()},F=H=>{const Z=Ls(p(v.value));let J=Z;Z.isNaN()?J=c.value:J=P(Z,H),t.value!==void 0?y(c.value,!1):J.isNaN()||y(J,!1)},z=H=>{var Z;const{which:J}=H;l.value=!0,J===Se.ENTER&&(u.value||(l.value=!1),F(!1),(Z=t.onPressEnter)===null||Z===void 0||Z.call(t,H)),t.keyboard!==!1&&!u.value&&[Se.UP,Se.DOWN].includes(J)&&(B(Se.UP===J),H.preventDefault())},W=()=>{l.value=!1},j=H=>{F(!1),s.value=!1,l.value=!1,i("blur",H)};return h.watch(()=>t.precision,()=>{c.value.isInvalidate()||y(c.value,!1)},{flush:"post"}),h.watch(()=>t.value,()=>{const H=Ls(t.value);c.value=H;const Z=Ls(p(v.value));(!H.equals(Z)||!l.value||t.formatter)&&y(H,l.value)},{flush:"post"}),h.watch(v,()=>{t.formatter&&T()},{flush:"post"}),h.watch(()=>t.disabled,H=>{H&&(s.value=!1)}),o({focus:()=>{var H;(H=a.value)===null||H===void 0||H.focus()},blur:()=>{var H;(H=a.value)===null||H===void 0||H.blur()}}),()=>{const H=k(k({},n),t),{prefixCls:Z="rc-input-number",min:J,max:se,step:oe=1,defaultValue:de,value:re,disabled:ue,readonly:ee,keyboard:X,controls:Y=!0,autofocus:le,stringMode:ge,parser:me,formatter:Ne,precision:Le,decimalSeparator:Ee,onChange:$e,onInput:_e,onPressEnter:De,onStep:ze,lazy:lt,class:gt,style:Bt}=H,we=uFe(H,["prefixCls","min","max","step","defaultValue","value","disabled","readonly","keyboard","controls","autofocus","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","lazy","class","style"]),{upHandler:rt,downHandler:At}=r,vn=`${Z}-input`,cn={};return lt?cn.onChange=D:cn.onInput=D,h.createVNode("div",{class:Pe(Z,gt,{[`${Z}-focused`]:s.value,[`${Z}-disabled`]:ue,[`${Z}-readonly`]:ee,[`${Z}-not-a-number`]:c.value.isNaN(),[`${Z}-out-of-range`]:!c.value.isInvalidate()&&!A(c.value)}),style:Bt,onKeydown:z,onKeyup:W},[Y&&h.createVNode(aFe,{prefixCls:Z,upDisabled:w.value,downDisabled:x.value,onStep:B},{upNode:rt,downNode:At}),h.createVNode("div",{class:`${vn}-wrap`},[h.createVNode("input",K(K(K({autofocus:le,autocomplete:"off",role:"spinbutton","aria-valuemin":J,"aria-valuemax":se,"aria-valuenow":c.value.isInvalidate()?null:c.value.toString(),step:oe},we),{},{ref:a,class:vn,value:v.value,disabled:ue,readonly:ee,onFocus:ar=>{s.value=!0,i("focus",ar)}},cn),{},{onBlur:j,onCompositionstart:R,onCompositionend:L}),null)])])}}});function TA(t){return t!=null}const fFe=t=>{const{componentCls:e,lineWidth:n,lineType:r,colorBorder:i,borderRadius:o,fontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:u,inputPaddingHorizontalSM:c,colorTextDescription:f,motionDurationMid:d,colorPrimary:p,controlHeight:v,inputPaddingHorizontal:g,colorBgContainer:m,colorTextDisabled:y,borderRadiusSM:b,borderRadiusLG:O,controlWidth:w,handleVisible:x}=t;return[{[e]:k(k(k(k({},On(t)),ZT(t)),UT(t,e)),{display:"inline-block",width:w,margin:0,padding:0,border:`${n}px ${r} ${i}`,borderRadius:o,"&-rtl":{direction:"rtl",[`${e}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,borderRadius:O,[`input${e}-input`]:{height:s-2*n}},"&-sm":{padding:0,borderRadius:b,[`input${e}-input`]:{height:l-2*n,padding:`0 ${c}px`}},"&:hover":k({},n_(t)),"&-focused":k({},gS(t)),"&-disabled":k(k({},Gre(t)),{[`${e}-input`]:{cursor:"not-allowed"}}),"&-out-of-range":{input:{color:u}},"&-group":k(k(k({},On(t)),Zre(t)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${e}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${e}-group-addon`]:{borderRadius:O}},"&-sm":{[`${e}-group-addon`]:{borderRadius:b}}}}),[e]:{"&-input":k(k({width:"100%",height:v-2*n,padding:`0 ${g}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${d} linear`,appearance:"textfield",color:t.colorText,fontSize:"inherit",verticalAlign:"top"},Hre(t.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[e]:{[`&:hover ${e}-handler-wrap, &-focused ${e}-handler-wrap`]:{opacity:1},[`${e}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:t.handleWidth,height:"100%",background:m,borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,opacity:x===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${d} linear ${d}`,[`${e}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
  255. ${e}-handler-up-inner,
  256. ${e}-handler-down-inner
  257. `]:{marginInlineEnd:0,fontSize:t.handleFontSize}}},[`${e}-handler`]:{height:"50%",overflow:"hidden",color:f,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${n}px ${r} ${i}`,transition:`all ${d} linear`,"&:active":{background:t.colorFillAlter},"&:hover":{height:"60%",[`
  258. ${e}-handler-up-inner,
  259. ${e}-handler-down-inner
  260. `]:{color:p}},"&-up-inner, &-down-inner":k(k({},xg()),{color:f,transition:`all ${d} linear`,userSelect:"none"})},[`${e}-handler-up`]:{borderStartEndRadius:o},[`${e}-handler-down`]:{borderBlockStart:`${n}px ${r} ${i}`,borderEndEndRadius:o},"&-disabled, &-readonly":{[`${e}-handler-wrap`]:{display:"none"}},[`
  261. ${e}-handler-up-disabled,
  262. ${e}-handler-down-disabled
  263. `]:{cursor:"not-allowed"},[`
  264. ${e}-handler-up-disabled:hover &-handler-up-inner,
  265. ${e}-handler-down-disabled:hover &-handler-down-inner
  266. `]:{color:y}}},{[`${e}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${e}-handler-down`]:{borderBlockStartWidth:0}}}]},dFe=t=>{const{componentCls:e,inputPaddingHorizontal:n,inputAffixPadding:r,controlWidth:i,borderRadiusLG:o,borderRadiusSM:a}=t;return{[`${e}-affix-wrapper`]:k(k(k({},ZT(t)),UT(t,`${e}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:i,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:o},"&-sm":{borderRadius:a},[`&:not(${e}-affix-wrapper-disabled):hover`]:k(k({},n_(t)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${e}[disabled]`]:{background:"transparent"}},[`> div${e}`]:{width:"100%",border:"none",outline:"none",[`&${e}-focused`]:{boxShadow:"none !important"}},[`input${e}-input`]:{padding:0},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${e}-handler-wrap`]:{zIndex:2},[e]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:r},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:n,marginInlineStart:r}}})}},hFe=Wn("InputNumber",t=>{const e=Xre(t);return[fFe(e),dFe(e),WT(e)]},t=>({controlWidth:90,handleWidth:t.controlHeightSM-t.lineWidth*2,handleFontSize:t.fontSize/2,handleVisible:"auto"}));var pFe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const IQ=Jie(),vFe=()=>k(k({},IQ),{size:In(),bordered:ft(!0),placeholder:String,name:String,id:String,type:String,addonBefore:ne.any,addonAfter:ne.any,prefix:ne.any,"onUpdate:value":IQ.onChange,valueModifiers:Object,status:In()}),PA=h.defineComponent({compatConfig:{MODE:3},name:"AInputNumber",inheritAttrs:!1,props:vFe(),slots:Object,setup(t,e){let{emit:n,expose:r,attrs:i,slots:o}=e;var a;const s=dl(),l=ss.useInject(),u=h.computed(()=>t_(l.status,t.status)),{prefixCls:c,size:f,direction:d,disabled:p}=Gt("input-number",t),{compactSize:v,compactItemClassnames:g}=VT(c,d),m=il(),y=h.computed(()=>{var R;return(R=p.value)!==null&&R!==void 0?R:m.value}),[b,O]=hFe(c),w=h.computed(()=>v.value||f.value),x=h.shallowRef((a=t.value)!==null&&a!==void 0?a:t.defaultValue),S=h.shallowRef(!1);h.watch(()=>t.value,()=>{x.value=t.value});const T=h.shallowRef(null),$=()=>{var R;(R=T.value)===null||R===void 0||R.focus()};r({focus:$,blur:()=>{var R;(R=T.value)===null||R===void 0||R.blur()}});const P=R=>{t.value===void 0&&(x.value=R),n("update:value",R),n("change",R),s.onFieldChange()},M=R=>{S.value=!1,n("blur",R),s.onFieldBlur()},I=R=>{S.value=!0,n("focus",R)};return()=>{var R,L,D,B;const{hasFeedback:F,isFormItemInput:z,feedbackIcon:W}=l,j=(R=t.id)!==null&&R!==void 0?R:s.id.value,H=k(k(k({},i),t),{id:j,disabled:y.value}),{class:Z,bordered:J,readonly:se,style:oe,addonBefore:de=(L=o.addonBefore)===null||L===void 0?void 0:L.call(o),addonAfter:re=(D=o.addonAfter)===null||D===void 0?void 0:D.call(o),prefix:ue=(B=o.prefix)===null||B===void 0?void 0:B.call(o),valueModifiers:ee={}}=H,X=pFe(H,["class","bordered","readonly","style","addonBefore","addonAfter","prefix","valueModifiers"]),Y=c.value,le=Pe({[`${Y}-lg`]:w.value==="large",[`${Y}-sm`]:w.value==="small",[`${Y}-rtl`]:d.value==="rtl",[`${Y}-readonly`]:se,[`${Y}-borderless`]:!J,[`${Y}-in-form-item`]:z},Zl(Y,u.value),Z,g.value,O.value);let ge=h.createVNode(cFe,K(K({},Mr(X,["size","defaultValue"])),{},{ref:T,lazy:!!ee.lazy,value:x.value,class:le,prefixCls:Y,readonly:se,onChange:P,onBlur:M,onFocus:I}),{upHandler:o.upIcon?()=>h.createVNode("span",{class:`${Y}-handler-up-inner`},[o.upIcon()]):()=>h.createVNode(U4,{class:`${Y}-handler-up-inner`},null),downHandler:o.downIcon?()=>h.createVNode("span",{class:`${Y}-handler-down-inner`},[o.downIcon()]):()=>h.createVNode(NT,{class:`${Y}-handler-down-inner`},null)});const me=TA(de)||TA(re),Ne=TA(ue);if(Ne||F){const Le=Pe(`${Y}-affix-wrapper`,Zl(`${Y}-affix-wrapper`,u.value,F),{[`${Y}-affix-wrapper-focused`]:S.value,[`${Y}-affix-wrapper-disabled`]:y.value,[`${Y}-affix-wrapper-sm`]:w.value==="small",[`${Y}-affix-wrapper-lg`]:w.value==="large",[`${Y}-affix-wrapper-rtl`]:d.value==="rtl",[`${Y}-affix-wrapper-readonly`]:se,[`${Y}-affix-wrapper-borderless`]:!J,[`${Z}`]:!me&&Z},O.value);ge=h.createVNode("div",{class:Le,style:oe,onClick:$},[Ne&&h.createVNode("span",{class:`${Y}-prefix`},[ue]),ge,F&&h.createVNode("span",{class:`${Y}-suffix`},[W])])}if(me){const Le=`${Y}-group`,Ee=`${Le}-addon`,$e=de?h.createVNode("div",{class:Ee},[de]):null,_e=re?h.createVNode("div",{class:Ee},[re]):null,De=Pe(`${Y}-wrapper`,Le,{[`${Le}-rtl`]:d.value==="rtl"},O.value),ze=Pe(`${Y}-group-wrapper`,{[`${Y}-group-wrapper-sm`]:w.value==="small",[`${Y}-group-wrapper-lg`]:w.value==="large",[`${Y}-group-wrapper-rtl`]:d.value==="rtl"},Zl(`${c}-group-wrapper`,u.value,F),Z,O.value);ge=h.createVNode("div",{class:ze,style:oe},[h.createVNode("div",{class:De},[$e&&h.createVNode(cS,null,{default:()=>[h.createVNode(uS,null,{default:()=>[$e]})]}),ge,_e&&h.createVNode(cS,null,{default:()=>[h.createVNode(uS,null,{default:()=>[_e]})]})])])}return b(Xn(ge,{style:oe}))}}}),r_=k(PA,{install:t=>(t.component(PA.name,PA),t)});function gFe(t,e,n){var r=n||{},i=r.noTrailing,o=i===void 0?!1:i,a=r.noLeading,s=a===void 0?!1:a,l=r.debounceMode,u=l===void 0?void 0:l,c,f=!1,d=0;function p(){c&&clearTimeout(c)}function v(m){var y=m||{},b=y.upcomingOnly,O=b===void 0?!1:b;p(),f=!O}function g(){for(var m=arguments.length,y=new Array(m),b=0;b<m;b++)y[b]=arguments[b];var O=this,w=Date.now()-d;if(f)return;function x(){d=Date.now(),e.apply(O,y)}function S(){c=void 0}!s&&u&&!c&&x(),p(),u===void 0&&w>t?s?(d=Date.now(),o||(c=setTimeout(u?S:x,t))):x():o!==!0&&(c=setTimeout(u?S:x,u===void 0?t-w:t))}return g.cancel=v,g}function mFe(t,e,n){var r={},i=r.atBegin,o=i===void 0?!1:i;return gFe(t,e,{debounceMode:o!==!1})}const yFe=new Mt("antSpinMove",{to:{opacity:1}}),bFe=new Mt("antRotate",{to:{transform:"rotate(405deg)"}}),_Fe=t=>({[`${t.componentCls}`]:k(k({},On(t)),{position:"absolute",display:"none",color:t.colorPrimary,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${t.motionDurationSlow} ${t.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${t.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:t.contentHeight,[`${t.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-t.spinDotSize/2},[`${t.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(t.spinDotSize-t.fontSize)/2+2,textShadow:`0 1px 2px ${t.colorBgContainer}`},[`&${t.componentCls}-show-text ${t.componentCls}-dot`]:{marginTop:-(t.spinDotSize/2)-10},"&-sm":{[`${t.componentCls}-dot`]:{margin:-t.spinDotSizeSM/2},[`${t.componentCls}-text`]:{paddingTop:(t.spinDotSizeSM-t.fontSize)/2+2},[`&${t.componentCls}-show-text ${t.componentCls}-dot`]:{marginTop:-(t.spinDotSizeSM/2)-10}},"&-lg":{[`${t.componentCls}-dot`]:{margin:-(t.spinDotSizeLG/2)},[`${t.componentCls}-text`]:{paddingTop:(t.spinDotSizeLG-t.fontSize)/2+2},[`&${t.componentCls}-show-text ${t.componentCls}-dot`]:{marginTop:-(t.spinDotSizeLG/2)-10}}},[`${t.componentCls}-container`]:{position:"relative",transition:`opacity ${t.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:t.colorBgContainer,opacity:0,transition:`all ${t.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${t.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:t.spinDotDefault},[`${t.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:t.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(t.spinDotSize-t.marginXXS/2)/2,height:(t.spinDotSize-t.marginXXS/2)/2,backgroundColor:t.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:yFe,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"alternate","&:nth-child(1)":{top:0,insetInlineStart:0},"&:nth-child(2)":{top:0,insetInlineEnd:0,animationDelay:"0.4s"},"&:nth-child(3)":{insetInlineEnd:0,bottom:0,animationDelay:"0.8s"},"&:nth-child(4)":{bottom:0,insetInlineStart:0,animationDelay:"1.2s"}},"&-spin":{transform:"rotate(45deg)",animationName:bFe,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${t.componentCls}-dot`]:{fontSize:t.spinDotSizeSM,i:{width:(t.spinDotSizeSM-t.marginXXS/2)/2,height:(t.spinDotSizeSM-t.marginXXS/2)/2}},[`&-lg ${t.componentCls}-dot`]:{fontSize:t.spinDotSizeLG,i:{width:(t.spinDotSizeLG-t.marginXXS)/2,height:(t.spinDotSizeLG-t.marginXXS)/2}},[`&${t.componentCls}-show-text ${t.componentCls}-text`]:{display:"block"}})}),OFe=Wn("Spin",t=>{const e=qt(t,{spinDotDefault:t.colorTextDescription,spinDotSize:t.controlHeightLG/2,spinDotSizeSM:t.controlHeightLG*.35,spinDotSizeLG:t.controlHeight});return[_Fe(e)]},{contentHeight:400});var wFe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const xFe=()=>({prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:ne.any,delay:Number,indicator:ne.any});let lx=null;function SFe(t,e){return!!t&&!!e&&!isNaN(Number(e))}function CFe(t){const e=t.indicator;lx=typeof e=="function"?e:()=>h.createVNode(e,null,null)}const ry=h.defineComponent({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:Ir(xFe(),{size:"default",spinning:!0,wrapperClassName:""}),setup(t,e){let{attrs:n,slots:r}=e;const{prefixCls:i,size:o,direction:a}=Gt("spin",t),[s,l]=OFe(i),u=h.shallowRef(t.spinning&&!SFe(t.spinning,t.delay));let c;return h.watch([()=>t.spinning,()=>t.delay],()=>{c==null||c.cancel(),c=mFe(t.delay,()=>{u.value=t.spinning}),c==null||c()},{immediate:!0,flush:"post"}),h.onBeforeUnmount(()=>{c==null||c.cancel()}),()=>{var f,d;const{class:p}=n,v=wFe(n,["class"]),{tip:g=(f=r.tip)===null||f===void 0?void 0:f.call(r)}=t,m=(d=r.default)===null||d===void 0?void 0:d.call(r),y={[l.value]:!0,[i.value]:!0,[`${i.value}-sm`]:o.value==="small",[`${i.value}-lg`]:o.value==="large",[`${i.value}-spinning`]:u.value,[`${i.value}-show-text`]:!!g,[`${i.value}-rtl`]:a.value==="rtl",[p]:!!p};function b(w){const x=`${w}-dot`;let S=OT(r,t,"indicator");return S===null?null:(Array.isArray(S)&&(S=S.length===1?S[0]:S),h.isVNode(S)?h.cloneVNode(S,{class:x}):lx&&h.isVNode(lx())?h.cloneVNode(lx(),{class:x}):h.createVNode("span",{class:`${x} ${w}-dot-spin`},[h.createVNode("i",{class:`${w}-dot-item`},null),h.createVNode("i",{class:`${w}-dot-item`},null),h.createVNode("i",{class:`${w}-dot-item`},null),h.createVNode("i",{class:`${w}-dot-item`},null)]))}const O=h.createVNode("div",K(K({},v),{},{class:y,"aria-live":"polite","aria-busy":u.value}),[b(i.value),g?h.createVNode("div",{class:`${i.value}-text`},[g]):null]);if(m&&fl(m).length){const w={[`${i.value}-container`]:!0,[`${i.value}-blur`]:u.value};return s(h.createVNode("div",{class:[`${i.value}-nested-loading`,t.wrapperClassName,l.value]},[u.value&&h.createVNode("div",{key:"loading"},[O]),h.createVNode("div",{class:w,key:"container"},[m])]))}return s(O)}}});ry.setDefaultIndicator=CFe;ry.install=function(t){return t.component(ry.name,ry),t};var TFe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};let qD;const PFe=t=>{qD={x:t.pageX,y:t.pageY},setTimeout(()=>qD=null,100)};nie()&&Wr(document.documentElement,"click",PFe,!0);const $Fe=()=>({prefixCls:String,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},confirmLoading:{type:Boolean,default:void 0},title:ne.any,closable:{type:Boolean,default:void 0},closeIcon:ne.any,onOk:Function,onCancel:Function,"onUpdate:visible":Function,"onUpdate:open":Function,onChange:Function,afterClose:Function,centered:{type:Boolean,default:void 0},width:[String,Number],footer:ne.any,okText:ne.any,okType:String,cancelText:ne.any,icon:ne.any,maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:zt(),cancelButtonProps:zt(),destroyOnClose:{type:Boolean,default:void 0},wrapClassName:String,maskTransitionName:String,transitionName:String,getContainer:{type:[String,Function,Boolean,Object],default:void 0},zIndex:Number,bodyStyle:zt(),maskStyle:zt(),mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:Object,focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:Function,mousePosition:zt()}),Do=h.defineComponent({compatConfig:{MODE:3},name:"AModal",inheritAttrs:!1,props:Ir($Fe(),{width:520,confirmLoading:!1,okType:"primary"}),setup(t,e){let{emit:n,slots:r,attrs:i}=e;const[o]=xT("Modal"),{prefixCls:a,rootPrefixCls:s,direction:l,getPopupContainer:u}=Gt("modal",t),[c,f]=jze(a);$i(t.visible===void 0,"Modal","`visible` will be removed in next major version, please use `open` instead.");const d=g=>{n("update:visible",!1),n("update:open",!1),n("cancel",g),n("change",!1)},p=g=>{n("ok",g)},v=()=>{var g,m;const{okText:y=(g=r.okText)===null||g===void 0?void 0:g.call(r),okType:b,cancelText:O=(m=r.cancelText)===null||m===void 0?void 0:m.call(r),confirmLoading:w}=t;return h.createVNode(h.Fragment,null,[h.createVNode(ui,K({onClick:d},t.cancelButtonProps),{default:()=>[O||o.value.cancelText]}),h.createVNode(ui,K(K({},xre(b)),{},{loading:w,onClick:p},t.okButtonProps),{default:()=>[y||o.value.okText]})])};return()=>{var g,m;const{prefixCls:y,visible:b,open:O,wrapClassName:w,centered:x,getContainer:S,closeIcon:T=(g=r.closeIcon)===null||g===void 0?void 0:g.call(r),focusTriggerAfterClose:$=!0}=t,A=TFe(t,["prefixCls","visible","open","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose"]),P=Pe(w,{[`${a.value}-centered`]:!!x,[`${a.value}-wrap-rtl`]:l.value==="rtl"});return c(h.createVNode(Qie,K(K(K({},A),i),{},{rootClassName:f.value,class:Pe(f.value,i.class),getContainer:S||(u==null?void 0:u.value),prefixCls:a.value,wrapClassName:P,visible:O??b,onClose:d,focusTriggerAfterClose:$,transitionName:al(s.value,"zoom",t.transitionName),maskTransitionName:al(s.value,"fade",t.maskTransitionName),mousePosition:(m=A.mousePosition)!==null&&m!==void 0?m:qD}),k(k({},r),{footer:r.footer||v,closeIcon:()=>h.createVNode("span",{class:`${a.value}-close-x`},[T||h.createVNode(mu,{class:`${a.value}-close-icon`},null)])})))}}}),AFe=()=>{const t=h.shallowRef(!1);return h.onBeforeUnmount(()=>{t.value=!0}),t},EFe={type:{type:String},actionFn:Function,close:Function,autofocus:Boolean,prefixCls:String,buttonProps:zt(),emitEvent:Boolean,quitOnNullishReturnValue:Boolean};function DQ(t){return!!(t&&t.then)}const RQ=h.defineComponent({compatConfig:{MODE:3},name:"ActionButton",props:EFe,setup(t,e){let{slots:n}=e;const r=h.shallowRef(!1),i=h.shallowRef(),o=h.shallowRef(!1);let a;const s=AFe();h.onMounted(()=>{t.autofocus&&(a=setTimeout(()=>{var f,d;return(d=(f=Fl(i.value))===null||f===void 0?void 0:f.focus)===null||d===void 0?void 0:d.call(f)}))}),h.onBeforeUnmount(()=>{clearTimeout(a)});const l=function(){for(var f,d=arguments.length,p=new Array(d),v=0;v<d;v++)p[v]=arguments[v];(f=t.close)===null||f===void 0||f.call(t,...p)},u=f=>{DQ(f)&&(o.value=!0,f.then(function(){s.value||(o.value=!1),l(...arguments),r.value=!1},d=>(s.value||(o.value=!1),r.value=!1,Promise.reject(d))))},c=f=>{const{actionFn:d}=t;if(r.value)return;if(r.value=!0,!d){l();return}let p;if(t.emitEvent){if(p=d(f),t.quitOnNullishReturnValue&&!DQ(p)){r.value=!1,l(f);return}}else if(d.length)p=d(t.close),r.value=!1;else if(p=d(),!p){l();return}u(p)};return()=>{const{type:f,prefixCls:d,buttonProps:p}=t;return h.createVNode(ui,K(K(K({},xre(f)),{},{onClick:c,loading:o.value,prefixCls:d},p),{},{ref:i}),n)}}});function sp(t){return typeof t=="function"?t():t}const eoe=h.defineComponent({name:"ConfirmDialog",inheritAttrs:!1,props:["icon","onCancel","onOk","close","closable","zIndex","afterClose","visible","open","keyboard","centered","getContainer","maskStyle","okButtonProps","cancelButtonProps","okType","prefixCls","okCancel","width","mask","maskClosable","okText","cancelText","autoFocusButton","transitionName","maskTransitionName","type","title","content","direction","rootPrefixCls","bodyStyle","closeIcon","modalRender","focusTriggerAfterClose","wrapClassName","confirmPrefixCls","footer"],setup(t,e){let{attrs:n}=e;const[r]=xT("Modal");return process.env.NODE_ENV!=="production"&&$i(t.visible===void 0,"Modal","`visible` is deprecated, please use `open` instead."),()=>{const{icon:i,onCancel:o,onOk:a,close:s,okText:l,closable:u=!1,zIndex:c,afterClose:f,keyboard:d,centered:p,getContainer:v,maskStyle:g,okButtonProps:m,cancelButtonProps:y,okCancel:b,width:O=416,mask:w=!0,maskClosable:x=!1,type:S,open:T,title:$,content:A,direction:P,closeIcon:M,modalRender:I,focusTriggerAfterClose:R,rootPrefixCls:L,bodyStyle:D,wrapClassName:B,footer:F}=t;let z=i;if(!i&&i!==null)switch(S){case"info":z=h.createVNode(Th,null,null);break;case"success":z=h.createVNode(Uc,null,null);break;case"error":z=h.createVNode(Ea,null,null);break;default:z=h.createVNode(Zc,null,null)}const W=t.okType||"primary",j=t.prefixCls||"ant-modal",H=`${j}-confirm`,Z=n.style||{},J=b??S==="confirm",se=t.autoFocusButton===null?!1:t.autoFocusButton||"ok",oe=`${j}-confirm`,de=Pe(oe,`${oe}-${t.type}`,{[`${oe}-rtl`]:P==="rtl"},n.class),re=r.value,ue=J&&h.createVNode(RQ,{actionFn:o,close:s,autofocus:se==="cancel",buttonProps:y,prefixCls:`${L}-btn`},{default:()=>[sp(t.cancelText)||re.cancelText]});return h.createVNode(Do,{prefixCls:j,class:de,wrapClassName:Pe({[`${oe}-centered`]:!!p},B),onCancel:ee=>s==null?void 0:s({triggerCancel:!0},ee),open:T,title:"",footer:"",transitionName:al(L,"zoom",t.transitionName),maskTransitionName:al(L,"fade",t.maskTransitionName),mask:w,maskClosable:x,maskStyle:g,style:Z,bodyStyle:D,width:O,zIndex:c,afterClose:f,keyboard:d,centered:p,getContainer:v,closable:u,closeIcon:M,modalRender:I,focusTriggerAfterClose:R},{default:()=>[h.createVNode("div",{class:`${H}-body-wrapper`},[h.createVNode("div",{class:`${H}-body`},[sp(z),$===void 0?null:h.createVNode("span",{class:`${H}-title`},[sp($)]),h.createVNode("div",{class:`${H}-content`},[sp(A)])]),F!==void 0?sp(F):h.createVNode("div",{class:`${H}-btns`},[ue,h.createVNode(RQ,{type:W,actionFn:a,close:s,autofocus:se==="ok",buttonProps:m,prefixCls:`${L}-btn`},{default:()=>[sp(l)||(J?re.okText:re.justOkText)]})])])]})}}}),md=[],i_=t=>{const e=document.createDocumentFragment();let n=k(k({},Mr(t,["parentContext","appContext"])),{close:o,open:!0}),r=null;function i(){r&&(h.render(null,e),r=null);for(var u=arguments.length,c=new Array(u),f=0;f<u;f++)c[f]=arguments[f];const d=c.some(p=>p&&p.triggerCancel);t.onCancel&&d&&t.onCancel(()=>{},...c.slice(1));for(let p=0;p<md.length;p++)if(md[p]===o){md.splice(p,1);break}}function o(){for(var u=arguments.length,c=new Array(u),f=0;f<u;f++)c[f]=arguments[f];n=k(k({},n),{open:!1,afterClose:()=>{typeof t.afterClose=="function"&&t.afterClose(),i.apply(this,c)}}),n.visible&&delete n.visible,a(n)}function a(u){typeof u=="function"?n=u(n):n=k(k({},n),u),r&&jNe(r,n,e)}const s=u=>{const c=zr,f=c.prefixCls,d=u.prefixCls||`${f}-modal`,p=c.iconPrefixCls,v=U6e();return h.createVNode(sv,K(K({},c),{},{prefixCls:f}),{default:()=>[h.createVNode(eoe,K(K({},u),{},{rootPrefixCls:f,prefixCls:d,iconPrefixCls:p,locale:v,cancelText:u.cancelText||v.cancelText}),null)]})};function l(u){const c=h.createVNode(s,k({},u));return c.appContext=t.parentContext||t.appContext||c.appContext,h.render(c,e),c}return r=l(n),md.push(o),{destroy:o,update:a}};function toe(t){return k(k({},t),{type:"warning"})}function noe(t){return k(k({},t),{type:"info"})}function roe(t){return k(k({},t),{type:"success"})}function ioe(t){return k(k({},t),{type:"error"})}function ooe(t){return k(k({},t),{type:"confirm"})}const MFe=()=>({config:Object,afterClose:Function,destroyAction:Function,open:Boolean}),IFe=h.defineComponent({name:"HookModal",inheritAttrs:!1,props:Ir(MFe(),{config:{width:520,okType:"primary"}}),setup(t,e){let{expose:n}=e;var r;const i=h.computed(()=>t.open),o=h.computed(()=>t.config),{direction:a,getPrefixCls:s}=wT(),l=s("modal"),u=s(),c=()=>{var v,g;t==null||t.afterClose(),(g=(v=o.value).afterClose)===null||g===void 0||g.call(v)},f=function(){t.destroyAction(...arguments)};n({destroy:f});const d=(r=o.value.okCancel)!==null&&r!==void 0?r:o.value.type==="confirm",[p]=xT("Modal",eu.Modal);return()=>h.createVNode(eoe,K(K({prefixCls:l,rootPrefixCls:u},o.value),{},{close:f,open:i.value,afterClose:c,okText:o.value.okText||(d?p==null?void 0:p.value.okText:p==null?void 0:p.value.justOkText),direction:o.value.direction||a.value,cancelText:o.value.cancelText||(p==null?void 0:p.value.cancelText)}),null)}});let kQ=0;const DFe=h.defineComponent({name:"ElementsHolder",inheritAttrs:!1,setup(t,e){let{expose:n}=e;const r=h.shallowRef([]);return n({addModal:o=>(r.value.push(o),r.value=r.value.slice(),()=>{r.value=r.value.filter(a=>a!==o)})}),()=>r.value.map(o=>o())}});function RFe(){const t=h.shallowRef(null),e=h.shallowRef([]);h.watch(e,()=>{e.value.length&&([...e.value].forEach(a=>{a()}),e.value=[])},{immediate:!0});const n=o=>function(s){var l;kQ+=1;const u=h.shallowRef(!0),c=h.shallowRef(null),f=h.shallowRef(h.unref(s)),d=h.shallowRef({});h.watch(()=>s,O=>{m(k(k({},h.isRef(O)?O.value:O),d.value))});const p=function(){u.value=!1;for(var O=arguments.length,w=new Array(O),x=0;x<O;x++)w[x]=arguments[x];const S=w.some(T=>T&&T.triggerCancel);f.value.onCancel&&S&&f.value.onCancel(()=>{},...w.slice(1))};let v;const g=()=>h.createVNode(IFe,{key:`modal-${kQ}`,config:o(f.value),ref:c,open:u.value,destroyAction:p,afterClose:()=>{v==null||v()}},null);v=(l=t.value)===null||l===void 0?void 0:l.addModal(g),v&&md.push(v);const m=O=>{f.value=k(k({},f.value),O)};return{destroy:()=>{c.value?p():e.value=[...e.value,p]},update:O=>{d.value=O,c.value?m(O):e.value=[...e.value,()=>m(O)]}}},r=h.computed(()=>({info:n(noe),success:n(roe),error:n(ioe),warning:n(toe),confirm:n(ooe)})),i=Symbol("modalHolderKey");return[r.value,()=>h.createVNode(DFe,{key:i,ref:t},null)]}function aoe(t){return i_(toe(t))}Do.useModal=RFe;Do.info=function(e){return i_(noe(e))};Do.success=function(e){return i_(roe(e))};Do.error=function(e){return i_(ioe(e))};Do.warning=aoe;Do.warn=aoe;Do.confirm=function(e){return i_(ooe(e))};Do.destroyAll=function(){for(;md.length;){const e=md.pop();e&&e()}};Do.install=function(t){return t.component(Do.name,Do),t};const q4=(t,e)=>{let{attrs:n}=e;const{included:r,vertical:i,style:o,class:a}=n;let{length:s,offset:l,reverse:u}=n;s<0&&(u=!u,s=Math.abs(s),l=100-l);const c=i?{[u?"top":"bottom"]:`${l}%`,[u?"bottom":"top"]:"auto",height:`${s}%`}:{[u?"right":"left"]:`${l}%`,[u?"left":"right"]:"auto",width:`${s}%`},f=k(k({},o),c);return r?h.createVNode("div",{class:a,style:f},null):null};q4.inheritAttrs=!1;const kFe=(t,e,n,r,i,o)=>{$i(n?r>0:!0,"Slider","`Slider[step]` should be a positive number in order to make Slider[dots] work.");const a=Object.keys(e).map(parseFloat).sort((s,l)=>s-l);if(n&&r)for(let s=i;s<=o;s+=r)a.indexOf(s)===-1&&a.push(s);return a},soe=(t,e)=>{let{attrs:n}=e;const{prefixCls:r,vertical:i,reverse:o,marks:a,dots:s,step:l,included:u,lowerBound:c,upperBound:f,max:d,min:p,dotStyle:v,activeDotStyle:g}=n,m=d-p,y=kFe(i,a,s,l,p,d).map(b=>{const O=`${Math.abs(b-p)/m*100}%`,w=!u&&b===f||u&&b<=f&&b>=c;let x=i?k(k({},v),{[o?"top":"bottom"]:O}):k(k({},v),{[o?"right":"left"]:O});w&&(x=k(k({},x),g));const S=Pe({[`${r}-dot`]:!0,[`${r}-dot-active`]:w,[`${r}-dot-reverse`]:o});return h.createVNode("span",{class:S,style:x,key:b},null)});return h.createVNode("div",{class:`${r}-step`},[y])};soe.inheritAttrs=!1;const loe=(t,e)=>{let{attrs:n,slots:r}=e;const{class:i,vertical:o,reverse:a,marks:s,included:l,upperBound:u,lowerBound:c,max:f,min:d,onClickLabel:p}=n,v=Object.keys(s),g=r.mark,m=f-d,y=v.map(parseFloat).sort((b,O)=>b-O).map(b=>{const O=typeof s[b]=="function"?s[b]():s[b],w=typeof O=="object"&&!No(O);let x=w?O.label:O;if(!x&&x!==0)return null;g&&(x=g({point:b,label:x}));const S=!l&&b===u||l&&b<=u&&b>=c,T=Pe({[`${i}-text`]:!0,[`${i}-text-active`]:S}),$={marginBottom:"-50%",[a?"top":"bottom"]:`${(b-d)/m*100}%`},A={transform:`translateX(${a?"50%":"-50%"})`,msTransform:`translateX(${a?"50%":"-50%"})`,[a?"right":"left"]:`${(b-d)/m*100}%`},P=o?$:A,M=w?k(k({},P),O.style):P,I={[Fr?"onTouchstartPassive":"onTouchstart"]:R=>p(R,b)};return h.createVNode("span",K({class:T,style:M,key:b,onMousedown:R=>p(R,b)},I),[x])});return h.createVNode("div",{class:i},[y])};loe.inheritAttrs=!1;const uoe=h.defineComponent({compatConfig:{MODE:3},name:"Handle",inheritAttrs:!1,props:{prefixCls:String,vertical:{type:Boolean,default:void 0},offset:Number,disabled:{type:Boolean,default:void 0},min:Number,max:Number,value:Number,tabindex:ne.oneOfType([ne.number,ne.string]),reverse:{type:Boolean,default:void 0},ariaLabel:String,ariaLabelledBy:String,ariaValueTextFormatter:Function,onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function}},setup(t,e){let{attrs:n,emit:r,expose:i}=e;const o=h.shallowRef(!1),a=h.shallowRef(),s=()=>{document.activeElement===a.value&&(o.value=!0)},l=m=>{o.value=!1,r("blur",m)},u=()=>{o.value=!1},c=()=>{var m;(m=a.value)===null||m===void 0||m.focus()},f=()=>{var m;(m=a.value)===null||m===void 0||m.blur()},d=()=>{o.value=!0,c()},p=m=>{m.preventDefault(),c(),r("mousedown",m)};i({focus:c,blur:f,clickFocus:d,ref:a});let v=null;h.onMounted(()=>{v=Wr(document,"mouseup",s)}),h.onBeforeUnmount(()=>{v==null||v.remove()});const g=h.computed(()=>{const{vertical:m,offset:y,reverse:b}=t;return m?{[b?"top":"bottom"]:`${y}%`,[b?"bottom":"top"]:"auto",transform:b?null:"translateY(+50%)"}:{[b?"right":"left"]:`${y}%`,[b?"left":"right"]:"auto",transform:`translateX(${b?"+":"-"}50%)`}});return()=>{const{prefixCls:m,disabled:y,min:b,max:O,value:w,tabindex:x,ariaLabel:S,ariaLabelledBy:T,ariaValueTextFormatter:$,onMouseenter:A,onMouseleave:P}=t,M=Pe(n.class,{[`${m}-handle-click-focused`]:o.value}),I={"aria-valuemin":b,"aria-valuemax":O,"aria-valuenow":w,"aria-disabled":!!y},R=[n.style,g.value];let L=x||0;(y||x===null)&&(L=null);let D;$&&(D=$(w));const B=k(k(k(k({},n),{role:"slider",tabindex:L}),I),{class:M,onBlur:l,onKeydown:u,onMousedown:p,onMouseenter:A,onMouseleave:P,ref:a,style:R});return h.createVNode("div",K(K({},B),{},{"aria-label":S,"aria-labelledby":T,"aria-valuetext":D}),null)}}});function $A(t,e){try{return Object.keys(e).some(n=>t.target===e[n].ref)}catch{return!1}}function coe(t,e){let{min:n,max:r}=e;return t<n||t>r}function NQ(t){return t.touches.length>1||t.type.toLowerCase()==="touchend"&&t.touches.length>0}function LQ(t,e){let{marks:n,step:r,min:i,max:o}=e;const a=Object.keys(n).map(parseFloat);if(r!==null){const l=Math.pow(10,foe(r)),u=Math.floor((o*l-i*l)/(r*l)),c=Math.min((t-i)/r,u),f=Math.round(c)*r+i;a.push(f)}const s=a.map(l=>Math.abs(t-l));return a[s.indexOf(Math.min(...s))]}function foe(t){const e=t.toString();let n=0;return e.indexOf(".")>=0&&(n=e.length-e.indexOf(".")-1),n}function BQ(t,e){let n=1;return window.visualViewport&&(n=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(t?e.clientY:e.pageX)/n}function VQ(t,e){let n=1;return window.visualViewport&&(n=+(window.visualViewport.width/document.body.getBoundingClientRect().width).toFixed(2)),(t?e.touches[0].clientY:e.touches[0].pageX)/n}function zQ(t,e){const n=e.getBoundingClientRect();return t?n.top+n.height*.5:window.scrollX+n.left+n.width*.5}function K4(t,e){let{max:n,min:r}=e;return t<=r?r:t>=n?n:t}function doe(t,e){const{step:n}=e,r=isFinite(LQ(t,e))?LQ(t,e):0;return n===null?r:parseFloat(r.toFixed(foe(n)))}function Yv(t){t.stopPropagation(),t.preventDefault()}function NFe(t,e,n){const r={increase:(a,s)=>a+s,decrease:(a,s)=>a-s},i=r[t](Object.keys(n.marks).indexOf(JSON.stringify(e)),1),o=Object.keys(n.marks)[i];return n.step?r[t](e,n.step):Object.keys(n.marks).length&&n.marks[o]?n.marks[o]:e}function hoe(t,e,n){const r="increase",i="decrease";let o=r;switch(t.keyCode){case Se.UP:o=e&&n?i:r;break;case Se.RIGHT:o=!e&&n?i:r;break;case Se.DOWN:o=e&&n?r:i;break;case Se.LEFT:o=!e&&n?r:i;break;case Se.END:return(a,s)=>s.max;case Se.HOME:return(a,s)=>s.min;case Se.PAGE_UP:return(a,s)=>a+s.step*2;case Se.PAGE_DOWN:return(a,s)=>a-s.step*2;default:return}return(a,s)=>NFe(o,a,s)}var LFe=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};function wf(){}function poe(t){const e={id:String,min:Number,max:Number,step:Number,marks:ne.object,included:{type:Boolean,default:void 0},prefixCls:String,disabled:{type:Boolean,default:void 0},handle:Function,dots:{type:Boolean,default:void 0},vertical:{type:Boolean,default:void 0},reverse:{type:Boolean,default:void 0},minimumTrackStyle:ne.object,maximumTrackStyle:ne.object,handleStyle:ne.oneOfType([ne.object,ne.arrayOf(ne.object)]),trackStyle:ne.oneOfType([ne.object,ne.arrayOf(ne.object)]),railStyle:ne.object,dotStyle:ne.object,activeDotStyle:ne.object,autofocus:{type:Boolean,default:void 0},draggableTrack:{type:Boolean,default:void 0}};return h.defineComponent({compatConfig:{MODE:3},name:"CreateSlider",mixins:[IT,t],inheritAttrs:!1,props:Ir(e,{prefixCls:"rc-slider",min:0,max:100,step:1,marks:{},included:!0,disabled:!1,dots:!1,vertical:!1,reverse:!1,trackStyle:[{}],handleStyle:[{}],railStyle:{},dotStyle:{},activeDotStyle:{}}),emits:["change","blur","focus"],data(){const{step:n,max:r,min:i}=this,o=isFinite(r-i)?(r-i)%n===0:!0;return $i(n&&Math.floor(n)===n?o:!0,`Slider[max] - Slider[min] (${r-i}) should be a multiple of Slider[step] (${n})`),this.handlesRefs={},{}},mounted(){this.$nextTick(()=>{this.document=this.sliderRef&&this.sliderRef.ownerDocument;const{autofocus:n,disabled:r}=this;n&&!r&&this.focus()})},beforeUnmount(){this.$nextTick(()=>{this.removeDocumentEvents()})},methods:{defaultHandle(n){var{index:r,directives:i,className:o,style:a}=n,s=LFe(n,["index","directives","className","style"]);if(delete s.dragging,s.value===null)return null;const l=k(k({},s),{class:o,style:a,key:r});return h.createVNode(uoe,l,null)},onDown(n,r){let i=r;const{draggableTrack:o,vertical:a}=this.$props,{bounds:s}=this.$data,l=o&&this.positionGetValue?this.positionGetValue(i)||[]:[],u=$A(n,this.handlesRefs);if(this.dragTrack=o&&s.length>=2&&!u&&!l.map((c,f)=>{const d=f?!0:c>=s[f];return f===l.length-1?c<=s[f]:d}).some(c=>!c),this.dragTrack)this.dragOffset=i,this.startBounds=[...s];else{if(!u)this.dragOffset=0;else{const c=zQ(a,n.target);this.dragOffset=i-c,i=c}this.onStart(i)}},onMouseDown(n){if(n.button!==0)return;this.removeDocumentEvents();const r=this.$props.vertical,i=BQ(r,n);this.onDown(n,i),this.addDocumentMouseEvents()},onTouchStart(n){if(NQ(n))return;const r=this.vertical,i=VQ(r,n);this.onDown(n,i),this.addDocumentTouchEvents(),Yv(n)},onFocus(n){const{vertical:r}=this;if($A(n,this.handlesRefs)&&!this.dragTrack){const i=zQ(r,n.target);this.dragOffset=0,this.onStart(i),Yv(n),this.$emit("focus",n)}},onBlur(n){this.dragTrack||this.onEnd(),this.$emit("blur",n)},onMouseUp(){this.handlesRefs[this.prevMovedHandleIndex]&&this.handlesRefs[this.prevMovedHandleIndex].clickFocus()},onMouseMove(n){if(!this.sliderRef){this.onEnd();return}const r=BQ(this.vertical,n);this.onMove(n,r-this.dragOffset,this.dragTrack,this.startBounds)},onTouchMove(n){if(NQ(n)||!this.sliderRef){this.onEnd();return}const r=VQ(this.vertical,n);this.onMove(n,r-this.dragOffset,this.dragTrack,this.startBounds)},onKeyDown(n){this.sliderRef&&$A(n,this.handlesRefs)&&this.onKeyboard(n)},onClickMarkLabel(n,r){n.stopPropagation(),this.onChange({sValue:r}),this.setState({sValue:r},()=>this.onEnd(!0))},getSliderStart(){const n=this.sliderRef,{vertical:r,reverse:i}=this,o=n.getBoundingClientRect();return r?i?o.bottom:o.top:window.scrollX+(i?o.right:o.left)},getSliderLength(){const n=this.sliderRef;if(!n)return 0;const r=n.getBoundingClientRect();return this.vertical?r.height:r.width},addDocumentTouchEvents(){this.onTouchMoveListener=Wr(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=Wr(this.document,"touchend",this.onEnd)},addDocumentMouseEvents(){this.onMouseMoveListener=Wr(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=Wr(this.document,"mouseup",this.onEnd)},removeDocumentEvents(){this.onTouchMoveListener&&this.onTouchMoveListener.remove(),this.onTouchUpListener&&this.onTouchUpListener.remove(),this.onMouseMoveListener&&this.onMouseMoveListener.remove(),this.onMouseUpListener&&this.onMouseUpListener.remove()},focus(){var n;this.$props.disabled||(n=this.handlesRefs[0])===null||n===void 0||n.focus()},blur(){this.$props.disabled||Object.keys(this.handlesRefs).forEach(n=>{var r,i;(i=(r=this.handlesRefs[n])===null||r===void 0?void 0:r.blur)===null||i===void 0||i.call(r)})},calcValue(n){const{vertical:r,min:i,max:o}=this,a=Math.abs(Math.max(n,0)/this.getSliderLength());return r?(1-a)*(o-i)+i:a*(o-i)+i},calcValueByPos(n){const i=(this.reverse?-1:1)*(n-this.getSliderStart());return this.trimAlignValue(this.calcValue(i))},calcOffset(n){const{min:r,max:i}=this,o=(n-r)/(i-r);return Math.max(0,o*100)},saveSlider(n){this.sliderRef=n},saveHandle(n,r){this.handlesRefs[n]=r}},render(){const{prefixCls:n,marks:r,dots:i,step:o,included:a,disabled:s,vertical:l,reverse:u,min:c,max:f,maximumTrackStyle:d,railStyle:p,dotStyle:v,activeDotStyle:g,id:m}=this,{class:y,style:b}=this.$attrs,{tracks:O,handles:w}=this.renderSlider(),x=Pe(n,y,{[`${n}-with-marks`]:Object.keys(r).length,[`${n}-disabled`]:s,[`${n}-vertical`]:l,[`${n}-horizontal`]:!l}),S={vertical:l,marks:r,included:a,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:f,min:c,reverse:u,class:`${n}-mark`,onClickLabel:s?wf:this.onClickMarkLabel},T={[Fr?"onTouchstartPassive":"onTouchstart"]:s?wf:this.onTouchStart};return h.createVNode("div",K(K({id:m,ref:this.saveSlider,tabindex:"-1",class:x},T),{},{onMousedown:s?wf:this.onMouseDown,onMouseup:s?wf:this.onMouseUp,onKeydown:s?wf:this.onKeyDown,onFocus:s?wf:this.onFocus,onBlur:s?wf:this.onBlur,style:b}),[h.createVNode("div",{class:`${n}-rail`,style:k(k({},d),p)},null),O,h.createVNode(soe,{prefixCls:n,vertical:l,reverse:u,marks:r,dots:i,step:o,included:a,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:f,min:c,dotStyle:v,activeDotStyle:g},null),w,h.createVNode(loe,S,{mark:this.$slots.mark}),Ete(this)])}})}const BFe=h.defineComponent({compatConfig:{MODE:3},name:"Slider",mixins:[IT],inheritAttrs:!1,props:{defaultValue:Number,value:Number,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},tabindex:ne.oneOfType([ne.number,ne.string]),reverse:{type:Boolean,default:void 0},min:Number,max:Number,ariaLabelForHandle:String,ariaLabelledByForHandle:String,ariaValueTextFormatterForHandle:String,startPoint:Number},emits:["beforeChange","afterChange","change"],data(){const t=this.defaultValue!==void 0?this.defaultValue:this.min,e=this.value!==void 0?this.value:t;return{sValue:this.trimAlignValue(e),dragging:!1}},watch:{value:{handler(t){this.setChangeValue(t)},deep:!0},min(){const{sValue:t}=this;this.setChangeValue(t)},max(){const{sValue:t}=this;this.setChangeValue(t)}},methods:{setChangeValue(t){const e=t!==void 0?t:this.sValue,n=this.trimAlignValue(e,this.$props);n!==this.sValue&&(this.setState({sValue:n}),coe(e,this.$props)&&this.$emit("change",n))},onChange(t){const e=!Jx(this,"value"),n=t.sValue>this.max?k(k({},t),{sValue:this.max}):t;e&&this.setState(n);const r=n.sValue;this.$emit("change",r)},onStart(t){this.setState({dragging:!0});const{sValue:e}=this;this.$emit("beforeChange",e);const n=this.calcValueByPos(t);this.startValue=n,this.startPosition=t,n!==e&&(this.prevMovedHandleIndex=0,this.onChange({sValue:n}))},onEnd(t){const{dragging:e}=this;this.removeDocumentEvents(),(e||t)&&this.$emit("afterChange",this.sValue),this.setState({dragging:!1})},onMove(t,e){Yv(t);const{sValue:n}=this,r=this.calcValueByPos(e);r!==n&&this.onChange({sValue:r})},onKeyboard(t){const{reverse:e,vertical:n}=this.$props,r=hoe(t,n,e);if(r){Yv(t);const{sValue:i}=this,o=r(i,this.$props),a=this.trimAlignValue(o);if(a===i)return;this.onChange({sValue:a}),this.$emit("afterChange",a),this.onEnd()}},getLowerBound(){const t=this.$props.startPoint||this.$props.min;return this.$data.sValue>t?t:this.$data.sValue},getUpperBound(){return this.$data.sValue<this.$props.startPoint?this.$props.startPoint:this.$data.sValue},trimAlignValue(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t===null)return null;const n=k(k({},this.$props),e),r=K4(t,n);return doe(r,n)},getTrack(t){let{prefixCls:e,reverse:n,vertical:r,included:i,minimumTrackStyle:o,mergedTrackStyle:a,length:s,offset:l}=t;return h.createVNode(q4,{class:`${e}-track`,vertical:r,included:i,offset:l,reverse:n,length:s,style:k(k({},o),a)},null)},renderSlider(){const{prefixCls:t,vertical:e,included:n,disabled:r,minimumTrackStyle:i,trackStyle:o,handleStyle:a,tabindex:s,ariaLabelForHandle:l,ariaLabelledByForHandle:u,ariaValueTextFormatterForHandle:c,min:f,max:d,startPoint:p,reverse:v,handle:g,defaultHandle:m}=this,y=g||m,{sValue:b,dragging:O}=this,w=this.calcOffset(b),x=y({class:`${t}-handle`,prefixCls:t,vertical:e,offset:w,value:b,dragging:O,disabled:r,min:f,max:d,reverse:v,index:0,tabindex:s,ariaLabel:l,ariaLabelledBy:u,ariaValueTextFormatter:c,style:a[0]||a,ref:$=>this.saveHandle(0,$),onFocus:this.onFocus,onBlur:this.onBlur}),S=p!==void 0?this.calcOffset(p):0,T=o[0]||o;return{tracks:this.getTrack({prefixCls:t,reverse:v,vertical:e,included:n,offset:S,minimumTrackStyle:i,mergedTrackStyle:T,length:w-S}),handles:x}}}}),VFe=poe(BFe),Im=t=>{let{value:e,handle:n,bounds:r,props:i}=t;const{allowCross:o,pushable:a}=i,s=Number(a),l=K4(e,i);let u=l;return!o&&n!=null&&r!==void 0&&(n>0&&l<=r[n-1]+s&&(u=r[n-1]+s),n<r.length-1&&l>=r[n+1]-s&&(u=r[n+1]-s)),doe(u,i)},zFe={defaultValue:ne.arrayOf(ne.number),value:ne.arrayOf(ne.number),count:Number,pushable:sNe(ne.oneOfType([ne.looseBool,ne.number])),allowCross:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},reverse:{type:Boolean,default:void 0},tabindex:ne.arrayOf(ne.number),prefixCls:String,min:Number,max:Number,autofocus:{type:Boolean,default:void 0},ariaLabelGroupForHandles:Array,ariaLabelledByGroupForHandles:Array,ariaValueTextFormatterGroupForHandles:Array,draggableTrack:{type:Boolean,default:void 0}},FFe=h.defineComponent({compatConfig:{MODE:3},name:"Range",mixins:[IT],inheritAttrs:!1,props:Ir(zFe,{count:1,allowCross:!0,pushable:!1,tabindex:[],draggableTrack:!1,ariaLabelGroupForHandles:[],ariaLabelledByGroupForHandles:[],ariaValueTextFormatterGroupForHandles:[]}),emits:["beforeChange","afterChange","change"],displayName:"Range",data(){const{count:t,min:e,max:n}=this,r=Array(...Array(t+1)).map(()=>e),i=Jx(this,"defaultValue")?this.defaultValue:r;let{value:o}=this;o===void 0&&(o=i);const a=o.map((l,u)=>Im({value:l,handle:u,props:this.$props}));return{sHandle:null,recent:a[0]===n?0:a.length-1,bounds:a}},watch:{value:{handler(t){const{bounds:e}=this;this.setChangeValue(t||e)},deep:!0},min(){const{value:t}=this;this.setChangeValue(t||this.bounds)},max(){const{value:t}=this;this.setChangeValue(t||this.bounds)}},methods:{setChangeValue(t){const{bounds:e}=this;let n=t.map((r,i)=>Im({value:r,handle:i,bounds:e,props:this.$props}));if(e.length===n.length){if(n.every((r,i)=>r===e[i]))return null}else n=t.map((r,i)=>Im({value:r,handle:i,props:this.$props}));if(this.setState({bounds:n}),t.some(r=>coe(r,this.$props))){const r=t.map(i=>K4(i,this.$props));this.$emit("change",r)}},onChange(t){if(!Jx(this,"value"))this.setState(t);else{const i={};["sHandle","recent"].forEach(o=>{t[o]!==void 0&&(i[o]=t[o])}),Object.keys(i).length&&this.setState(i)}const r=k(k({},this.$data),t).bounds;this.$emit("change",r)},positionGetValue(t){const e=this.getValue(),n=this.calcValueByPos(t),r=this.getClosestBound(n),i=this.getBoundNeedMoving(n,r),o=e[i];if(n===o)return null;const a=[...e];return a[i]=n,a},onStart(t){const{bounds:e}=this;this.$emit("beforeChange",e);const n=this.calcValueByPos(t);this.startValue=n,this.startPosition=t;const r=this.getClosestBound(n);this.prevMovedHandleIndex=this.getBoundNeedMoving(n,r),this.setState({sHandle:this.prevMovedHandleIndex,recent:this.prevMovedHandleIndex});const i=e[this.prevMovedHandleIndex];if(n===i)return;const o=[...e];o[this.prevMovedHandleIndex]=n,this.onChange({bounds:o})},onEnd(t){const{sHandle:e}=this;this.removeDocumentEvents(),e||(this.dragTrack=!1),(e!==null||t)&&this.$emit("afterChange",this.bounds),this.setState({sHandle:null})},onMove(t,e,n,r){Yv(t);const{$data:i,$props:o}=this,a=o.max||100,s=o.min||0;if(n){let d=o.vertical?-e:e;d=o.reverse?-d:d;const p=a-Math.max(...r),v=s-Math.min(...r),g=Math.min(Math.max(d/(this.getSliderLength()/100),v),p),m=r.map(y=>Math.floor(Math.max(Math.min(y+g,a),s)));i.bounds.map((y,b)=>y===m[b]).some(y=>!y)&&this.onChange({bounds:m});return}const{bounds:l,sHandle:u}=this,c=this.calcValueByPos(e),f=l[u];c!==f&&this.moveTo(c)},onKeyboard(t){const{reverse:e,vertical:n}=this.$props,r=hoe(t,n,e);if(r){Yv(t);const{bounds:i,sHandle:o}=this,a=i[o===null?this.recent:o],s=r(a,this.$props),l=Im({value:s,handle:o,bounds:i,props:this.$props});if(l===a)return;this.moveTo(l,!0)}},getClosestBound(t){const{bounds:e}=this;let n=0;for(let r=1;r<e.length-1;r+=1)t>=e[r]&&(n=r);return Math.abs(e[n+1]-t)<Math.abs(e[n]-t)&&(n+=1),n},getBoundNeedMoving(t,e){const{bounds:n,recent:r}=this;let i=e;const o=n[e+1]===n[e];return o&&n[r]===n[e]&&(i=r),o&&t!==n[e+1]&&(i=t<n[e+1]?e:e+1),i},getLowerBound(){return this.bounds[0]},getUpperBound(){const{bounds:t}=this;return t[t.length-1]},getPoints(){const{marks:t,step:e,min:n,max:r}=this,i=this.internalPointsCache;if(!i||i.marks!==t||i.step!==e){const o=k({},t);if(e!==null)for(let s=n;s<=r;s+=e)o[s]=s;const a=Object.keys(o).map(parseFloat);a.sort((s,l)=>s-l),this.internalPointsCache={marks:t,step:e,points:a}}return this.internalPointsCache.points},moveTo(t,e){const n=[...this.bounds],{sHandle:r,recent:i}=this,o=r===null?i:r;n[o]=t;let a=o;this.$props.pushable!==!1?this.pushSurroundingHandles(n,a):this.$props.allowCross&&(n.sort((s,l)=>s-l),a=n.indexOf(t)),this.onChange({recent:a,sHandle:a,bounds:n}),e&&(this.$emit("afterChange",n),this.setState({},()=>{this.handlesRefs[a].focus()}),this.onEnd())},pushSurroundingHandles(t,e){const n=t[e],{pushable:r}=this,i=Number(r);let o=0;if(t[e+1]-n<i&&(o=1),n-t[e-1]<i&&(o=-1),o===0)return;const a=e+o,s=o*(t[a]-n);this.pushHandle(t,a,o,i-s)||(t[e]=t[a]-o*i)},pushHandle(t,e,n,r){const i=t[e];let o=t[e];for(;n*(o-i)<r;){if(!this.pushHandleOnePoint(t,e,n))return t[e]=i,!1;o=t[e]}return!0},pushHandleOnePoint(t,e,n){const r=this.getPoints(),o=r.indexOf(t[e])+n;if(o>=r.length||o<0)return!1;const a=e+n,s=r[o],{pushable:l}=this,u=Number(l),c=n*(t[a]-s);return this.pushHandle(t,a,n,u-c)?(t[e]=s,!0):!1},trimAlignValue(t){const{sHandle:e,bounds:n}=this;return Im({value:t,handle:e,bounds:n,props:this.$props})},ensureValueNotConflict(t,e,n){let{allowCross:r,pushable:i}=n;const o=this.$data||{},{bounds:a}=o;if(t=t===void 0?o.sHandle:t,i=Number(i),!r&&t!=null&&a!==void 0){if(t>0&&e<=a[t-1]+i)return a[t-1]+i;if(t<a.length-1&&e>=a[t+1]-i)return a[t+1]-i}return e},getTrack(t){let{bounds:e,prefixCls:n,reverse:r,vertical:i,included:o,offsets:a,trackStyle:s}=t;return e.slice(0,-1).map((l,u)=>{const c=u+1,f=Pe({[`${n}-track`]:!0,[`${n}-track-${c}`]:!0});return h.createVNode(q4,{class:f,vertical:i,reverse:r,included:o,offset:a[c-1],length:a[c]-a[c-1],style:s[u],key:c},null)})},renderSlider(){const{sHandle:t,bounds:e,prefixCls:n,vertical:r,included:i,disabled:o,min:a,max:s,reverse:l,handle:u,defaultHandle:c,trackStyle:f,handleStyle:d,tabindex:p,ariaLabelGroupForHandles:v,ariaLabelledByGroupForHandles:g,ariaValueTextFormatterGroupForHandles:m}=this,y=u||c,b=e.map(x=>this.calcOffset(x)),O=`${n}-handle`,w=e.map((x,S)=>{let T=p[S]||0;(o||p[S]===null)&&(T=null);const $=t===S;return y({class:Pe({[O]:!0,[`${O}-${S+1}`]:!0,[`${O}-dragging`]:$}),prefixCls:n,vertical:r,dragging:$,offset:b[S],value:x,index:S,tabindex:T,min:a,max:s,reverse:l,disabled:o,style:d[S],ref:A=>this.saveHandle(S,A),onFocus:this.onFocus,onBlur:this.onBlur,ariaLabel:v[S],ariaLabelledBy:g[S],ariaValueTextFormatter:m[S]})});return{tracks:this.getTrack({bounds:e,prefixCls:n,reverse:l,vertical:r,included:i,offsets:b,trackStyle:f}),handles:w}}}}),WFe=poe(FFe),QFe=h.defineComponent({compatConfig:{MODE:3},name:"SliderTooltip",inheritAttrs:!1,props:wre(),setup(t,e){let{attrs:n,slots:r}=e;const i=h.ref(null),o=h.ref(null);function a(){Rt.cancel(o.value),o.value=null}function s(){o.value=Rt(()=>{var u;(u=i.value)===null||u===void 0||u.forcePopupAlign(),o.value=null})}const l=()=>{a(),t.open&&s()};return h.watch([()=>t.open,()=>t.title],()=>{l()},{flush:"post",immediate:!0}),h.onActivated(()=>{l()}),h.onBeforeUnmount(()=>{a()}),()=>h.createVNode(HT,K(K({ref:i},t),n),r)}}),HFe=t=>{const{componentCls:e,controlSize:n,dotSize:r,marginFull:i,marginPart:o,colorFillContentHover:a}=t;return{[e]:k(k({},On(t)),{position:"relative",height:n,margin:`${o}px ${i}px`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${i}px ${o}px`},[`${e}-rail`]:{position:"absolute",backgroundColor:t.colorFillTertiary,borderRadius:t.borderRadiusXS,transition:`background-color ${t.motionDurationMid}`},[`${e}-track`]:{position:"absolute",backgroundColor:t.colorPrimaryBorder,borderRadius:t.borderRadiusXS,transition:`background-color ${t.motionDurationMid}`},"&:hover":{[`${e}-rail`]:{backgroundColor:t.colorFillSecondary},[`${e}-track`]:{backgroundColor:t.colorPrimaryBorderHover},[`${e}-dot`]:{borderColor:a},[`${e}-handle::after`]:{boxShadow:`0 0 0 ${t.handleLineWidth}px ${t.colorPrimaryBorderHover}`},[`${e}-dot-active`]:{borderColor:t.colorPrimary}},[`${e}-handle`]:{position:"absolute",width:t.handleSize,height:t.handleSize,outline:"none",[`${e}-dragging`]:{zIndex:1},"&::before":{content:'""',position:"absolute",insetInlineStart:-t.handleLineWidth,insetBlockStart:-t.handleLineWidth,width:t.handleSize+t.handleLineWidth*2,height:t.handleSize+t.handleLineWidth*2,backgroundColor:"transparent"},"&::after":{content:'""',position:"absolute",insetBlockStart:0,insetInlineStart:0,width:t.handleSize,height:t.handleSize,backgroundColor:t.colorBgElevated,boxShadow:`0 0 0 ${t.handleLineWidth}px ${t.colorPrimaryBorder}`,borderRadius:"50%",cursor:"pointer",transition:`
  267. inset-inline-start ${t.motionDurationMid},
  268. inset-block-start ${t.motionDurationMid},
  269. width ${t.motionDurationMid},
  270. height ${t.motionDurationMid},
  271. box-shadow ${t.motionDurationMid}
  272. `},"&:hover, &:active, &:focus":{"&::before":{insetInlineStart:-((t.handleSizeHover-t.handleSize)/2+t.handleLineWidthHover),insetBlockStart:-((t.handleSizeHover-t.handleSize)/2+t.handleLineWidthHover),width:t.handleSizeHover+t.handleLineWidthHover*2,height:t.handleSizeHover+t.handleLineWidthHover*2},"&::after":{boxShadow:`0 0 0 ${t.handleLineWidthHover}px ${t.colorPrimary}`,width:t.handleSizeHover,height:t.handleSizeHover,insetInlineStart:(t.handleSize-t.handleSizeHover)/2,insetBlockStart:(t.handleSize-t.handleSizeHover)/2}}},[`${e}-mark`]:{position:"absolute",fontSize:t.fontSize},[`${e}-mark-text`]:{position:"absolute",display:"inline-block",color:t.colorTextDescription,textAlign:"center",wordBreak:"keep-all",cursor:"pointer",userSelect:"none","&-active":{color:t.colorText}},[`${e}-step`]:{position:"absolute",background:"transparent",pointerEvents:"none"},[`${e}-dot`]:{position:"absolute",width:r,height:r,backgroundColor:t.colorBgElevated,border:`${t.handleLineWidth}px solid ${t.colorBorderSecondary}`,borderRadius:"50%",cursor:"pointer",transition:`border-color ${t.motionDurationSlow}`,"&-active":{borderColor:t.colorPrimaryBorder}},[`&${e}-disabled`]:{cursor:"not-allowed",[`${e}-rail`]:{backgroundColor:`${t.colorFillSecondary} !important`},[`${e}-track`]:{backgroundColor:`${t.colorTextDisabled} !important`},[`
  273. ${e}-dot
  274. `]:{backgroundColor:t.colorBgElevated,borderColor:t.colorTextDisabled,boxShadow:"none",cursor:"not-allowed"},[`${e}-handle::after`]:{backgroundColor:t.colorBgElevated,cursor:"not-allowed",width:t.handleSize,height:t.handleSize,boxShadow:`0 0 0 ${t.handleLineWidth}px ${new _n(t.colorTextDisabled).onBackground(t.colorBgContainer).toHexString()}`,insetInlineStart:0,insetBlockStart:0},[`
  275. ${e}-mark-text,
  276. ${e}-dot
  277. `]:{cursor:"not-allowed !important"}}})}},voe=(t,e)=>{const{componentCls:n,railSize:r,handleSize:i,dotSize:o}=t,a=e?"paddingBlock":"paddingInline",s=e?"width":"height",l=e?"height":"width",u=e?"insetBlockStart":"insetInlineStart",c=e?"top":"insetInlineStart";return{[a]:r,[l]:r*3,[`${n}-rail`]:{[s]:"100%",[l]:r},[`${n}-track`]:{[l]:r},[`${n}-handle`]:{[u]:(r*3-i)/2},[`${n}-mark`]:{insetInlineStart:0,top:0,[c]:i,[s]:"100%"},[`${n}-step`]:{insetInlineStart:0,top:0,[c]:r,[s]:"100%",[l]:r},[`${n}-dot`]:{position:"absolute",[u]:(r-o)/2}}},GFe=t=>{const{componentCls:e,marginPartWithMark:n}=t;return{[`${e}-horizontal`]:k(k({},voe(t,!0)),{[`&${e}-with-marks`]:{marginBottom:n}})}},jFe=t=>{const{componentCls:e}=t;return{[`${e}-vertical`]:k(k({},voe(t,!1)),{height:"100%"})}},UFe=Wn("Slider",t=>{const e=qt(t,{marginPart:(t.controlHeight-t.controlSize)/2,marginFull:t.controlSize/2,marginPartWithMark:t.controlHeightLG-t.controlSize});return[HFe(e),GFe(e),jFe(e)]},t=>{const n=t.controlHeightLG/4,r=t.controlHeightSM/2,i=t.lineWidth+1,o=t.lineWidth+1*3;return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:i,handleLineWidthHover:o}});var FQ=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n};const ZFe=t=>typeof t=="number"?t.toString():"",XFe=()=>({id:String,prefixCls:String,tooltipPrefixCls:String,range:kn([Boolean,Object]),reverse:ft(),min:Number,max:Number,step:kn([Object,Number]),marks:zt(),dots:ft(),value:kn([Array,Number]),defaultValue:kn([Array,Number]),included:ft(),disabled:ft(),vertical:ft(),tipFormatter:kn([Function,Object],()=>ZFe),tooltipOpen:ft(),tooltipVisible:ft(),tooltipPlacement:In(),getTooltipPopupContainer:ct(),autofocus:ft(),handleStyle:kn([Array,Object]),trackStyle:kn([Array,Object]),onChange:ct(),onAfterChange:ct(),onFocus:ct(),onBlur:ct(),"onUpdate:value":ct()}),YFe=h.defineComponent({compatConfig:{MODE:3},name:"ASlider",inheritAttrs:!1,props:XFe(),slots:Object,setup(t,e){let{attrs:n,slots:r,emit:i,expose:o}=e;process.env.NODE_ENV!=="production"&&[["tooltipVisible","tooltipOpen"]].forEach(T=>{let[$,A]=T;Io(t.tooltipVisible===void 0,"Slider",`\`${$}\` is deprecated, please use \`${A}\` instead.`)});const{prefixCls:a,rootPrefixCls:s,direction:l,getPopupContainer:u,configProvider:c}=Gt("slider",t),[f,d]=UFe(a),p=dl(),v=h.ref(),g=h.ref({}),m=(T,$)=>{g.value[T]=$},y=h.computed(()=>t.tooltipPlacement?t.tooltipPlacement:t.vertical?l.value==="rtl"?"left":"right":"top"),b=()=>{var T;(T=v.value)===null||T===void 0||T.focus()},O=()=>{var T;(T=v.value)===null||T===void 0||T.blur()},w=T=>{i("update:value",T),i("change",T),p.onFieldChange()},x=T=>{i("blur",T)};o({focus:b,blur:O});const S=T=>{var{tooltipPrefixCls:$}=T,A=T.info,{value:P,dragging:M,index:I}=A,R=FQ(A,["value","dragging","index"]);const{tipFormatter:L,tooltipOpen:D=t.tooltipVisible,getTooltipPopupContainer:B}=t,F=L?g.value[I]||M:!1,z=D||D===void 0&&F;return h.createVNode(QFe,{prefixCls:$,title:L?L(P):"",open:z,placement:y.value,transitionName:`${s.value}-zoom-down`,key:I,overlayClassName:`${a.value}-tooltip`,getPopupContainer:B||(u==null?void 0:u.value)},{default:()=>[h.createVNode(uoe,K(K({},R),{},{value:P,onMouseenter:()=>m(I,!0),onMouseleave:()=>m(I,!1)}),null)]})};return()=>{const{tooltipPrefixCls:T,range:$,id:A=p.id.value}=t,P=FQ(t,["tooltipPrefixCls","range","id"]),M=c.getPrefixCls("tooltip",T),I=Pe(n.class,{[`${a.value}-rtl`]:l.value==="rtl"},d.value);l.value==="rtl"&&!P.vertical&&(P.reverse=!P.reverse);let R;return typeof $=="object"&&(R=$.draggableTrack),f($?h.createVNode(WFe,K(K(K({},n),P),{},{step:P.step,draggableTrack:R,class:I,ref:v,handle:L=>S({tooltipPrefixCls:M,prefixCls:a.value,info:L}),prefixCls:a.value,onChange:w,onBlur:x}),{mark:r.mark}):h.createVNode(VFe,K(K(K({},n),P),{},{id:A,step:P.step,class:I,ref:v,handle:L=>S({tooltipPrefixCls:M,prefixCls:a.value,info:L}),prefixCls:a.value,onChange:w,onBlur:x}),{mark:r.mark}))}}}),qFe=Og(YFe);var KFe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M264 230h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm496 424c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H264c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496zm144 140H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"align-center",theme:"outlined"};function WQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){JFe(t,i,n[i])})}return t}function JFe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var J4=function(e,n){var r=WQ({},e,n.attrs);return h.createVNode(yt,WQ({},r,{icon:KFe}),null)};J4.displayName="AlignCenterOutlined";J4.inheritAttrs=!1;var eWe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M120 230h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 424h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm784 140H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"align-left",theme:"outlined"};function QQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){tWe(t,i,n[i])})}return t}function tWe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var e8=function(e,n){var r=QQ({},e,n.attrs);return h.createVNode(yt,QQ({},r,{icon:eWe}),null)};e8.displayName="AlignLeftOutlined";e8.inheritAttrs=!1;var nWe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 158H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 424H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 212H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-424H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"align-right",theme:"outlined"};function HQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){rWe(t,i,n[i])})}return t}function rWe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var t8=function(e,n){var r=HQ({},e,n.attrs);return h.createVNode(yt,HQ({},r,{icon:nWe}),null)};t8.displayName="AlignRightOutlined";t8.inheritAttrs=!1;var iWe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M697.8 481.4c33.6-35 54.2-82.3 54.2-134.3v-10.2C752 229.3 663.9 142 555.3 142H259.4c-15.1 0-27.4 12.3-27.4 27.4v679.1c0 16.3 13.2 29.5 29.5 29.5h318.7c117 0 211.8-94.2 211.8-210.5v-11c0-73-37.4-137.3-94.2-175.1zM328 238h224.7c57.1 0 103.3 44.4 103.3 99.3v9.5c0 54.8-46.3 99.3-103.3 99.3H328V238zm366.6 429.4c0 62.9-51.7 113.9-115.5 113.9H328V542.7h251.1c63.8 0 115.5 51 115.5 113.9v10.8z"}}]},name:"bold",theme:"outlined"};function GQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){oWe(t,i,n[i])})}return t}function oWe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var n8=function(e,n){var r=GQ({},e,n.attrs);return h.createVNode(yt,GQ({},r,{icon:iWe}),null)};n8.displayName="BoldOutlined";n8.inheritAttrs=!1;var aWe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 808H152c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-720-94h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0-498h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 332h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0-166h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm166 166h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0-332h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm332 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0 332h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm222-72h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-388 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm388-404h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-388 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm388 426h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-388 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm388-404h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-388 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8z"}}]},name:"border-bottom",theme:"outlined"};function jQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){sWe(t,i,n[i])})}return t}function sWe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var r8=function(e,n){var r=jQ({},e,n.attrs);return h.createVNode(yt,jQ({},r,{icon:aWe}),null)};r8.displayName="BorderBottomOutlined";r8.inheritAttrs=!1;var lWe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M208 144h-56c-4.4 0-8 3.6-8 8v720c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V152c0-4.4-3.6-8-8-8zm166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm498 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM540 310h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM374 808h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"border-left",theme:"outlined"};function UQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){uWe(t,i,n[i])})}return t}function uWe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var i8=function(e,n){var r=UQ({},e,n.attrs);return h.createVNode(yt,UQ({},r,{icon:lWe}),null)};i8.displayName="BorderLeftOutlined";i8.inheritAttrs=!1;var cWe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 144h-56c-4.4 0-8 3.6-8 8v720c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V152c0-4.4-3.6-8-8-8zm-166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-498 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm166 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM208 808h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm498 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM374 808h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"border-right",theme:"outlined"};function ZQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){fWe(t,i,n[i])})}return t}function fWe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o8=function(e,n){var r=ZQ({},e,n.attrs);return h.createVNode(yt,ZQ({},r,{icon:cWe}),null)};o8.displayName="BorderRightOutlined";o8.inheritAttrs=!1;var dWe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 144H152c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h720c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM208 310h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 498h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm166-166h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm166 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332-498h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm332 332h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-332 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"border-top",theme:"outlined"};function XQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){hWe(t,i,n[i])})}return t}function hWe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a8=function(e,n){var r=XQ({},e,n.attrs);return h.createVNode(yt,XQ({},r,{icon:dWe}),null)};a8.displayName="BorderTopOutlined";a8.inheritAttrs=!1;var pWe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-600 72h560v208H232V136zm560 480H232V408h560v208zm0 272H232V680h560v208zM304 240a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0zm0 272a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"database",theme:"outlined"};function YQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){vWe(t,i,n[i])})}return t}function vWe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o_=function(e,n){var r=YQ({},e,n.attrs);return h.createVNode(yt,YQ({},r,{icon:pWe}),null)};o_.displayName="DatabaseOutlined";o_.inheritAttrs=!1;var gWe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M904 816H120c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8zm-650.3-80h85c4.2 0 8-2.7 9.3-6.8l53.7-166h219.2l53.2 166c1.3 4 5 6.8 9.3 6.8h89.1c1.1 0 2.2-.2 3.2-.5a9.7 9.7 0 006-12.4L573.6 118.6a9.9 9.9 0 00-9.2-6.6H462.1c-4.2 0-7.9 2.6-9.2 6.6L244.5 723.1c-.4 1-.5 2.1-.5 3.2-.1 5.3 4.3 9.7 9.7 9.7zm255.9-516.1h4.1l83.8 263.8H424.9l84.7-263.8z"}}]},name:"font-colors",theme:"outlined"};function qQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){mWe(t,i,n[i])})}return t}function mWe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s8=function(e,n){var r=qQ({},e,n.attrs);return h.createVNode(yt,qQ({},r,{icon:gWe}),null)};s8.displayName="FontColorsOutlined";s8.inheritAttrs=!1;var yWe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M798 160H366c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h181.2l-156 544H229c-4.4 0-8 3.6-8 8v64c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8H474.4l156-544H798c4.4 0 8-3.6 8-8v-64c0-4.4-3.6-8-8-8z"}}]},name:"italic",theme:"outlined"};function KQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){bWe(t,i,n[i])})}return t}function bWe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var l8=function(e,n){var r=KQ({},e,n.attrs);return h.createVNode(yt,KQ({},r,{icon:yWe}),null)};l8.displayName="ItalicOutlined";l8.inheritAttrs=!1;var _We={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M712 824h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm2-696h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM136 374h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm0-174h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm752 624h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-348 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-230 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm230 624H358c-87.3 0-158-70.7-158-158V484c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v182c0 127 103 230 230 230h182c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"radius-bottomleft",theme:"outlined"};function JQ(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){OWe(t,i,n[i])})}return t}function OWe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u8=function(e,n){var r=JQ({},e,n.attrs);return h.createVNode(yt,JQ({},r,{icon:_We}),null)};u8.displayName="RadiusBottomleftOutlined";u8.inheritAttrs=!1;var wWe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M368 824h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-58-624h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm578 102h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM192 824h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm292 72h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm174 0h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm230 276h-56c-4.4 0-8 3.6-8 8v182c0 87.3-70.7 158-158 158H484c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h182c127 0 230-103 230-230V484c0-4.4-3.6-8-8-8z"}}]},name:"radius-bottomright",theme:"outlined"};function e9(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){xWe(t,i,n[i])})}return t}function xWe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c8=function(e,n){var r=e9({},e,n.attrs);return h.createVNode(yt,e9({},r,{icon:wWe}),null)};c8.displayName="RadiusBottomrightOutlined";c8.inheritAttrs=!1;var SWe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M656 200h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm58 624h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM192 650h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm696-696h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-348 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-174 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm174-696H358c-127 0-230 103-230 230v182c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V358c0-87.3 70.7-158 158-158h182c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"radius-upleft",theme:"outlined"};function t9(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){CWe(t,i,n[i])})}return t}function CWe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var f8=function(e,n){var r=t9({},e,n.attrs);return h.createVNode(yt,t9({},r,{icon:SWe}),null)};f8.displayName="RadiusUpleftOutlined";f8.inheritAttrs=!1;var TWe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M368 128h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-2 696h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm522-174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM192 128h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 174h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm348 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm174 0h-56c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-48-696H484c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h182c87.3 0 158 70.7 158 158v182c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V358c0-127-103-230-230-230z"}}]},name:"radius-upright",theme:"outlined"};function n9(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){PWe(t,i,n[i])})}return t}function PWe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var d8=function(e,n){var r=n9({},e,n.attrs);return h.createVNode(yt,n9({},r,{icon:TWe}),null)};d8.displayName="RadiusUprightOutlined";d8.inheritAttrs=!1;var $We={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"};function r9(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){AWe(t,i,n[i])})}return t}function AWe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var OS=function(e,n){var r=r9({},e,n.attrs);return h.createVNode(yt,r9({},r,{icon:$We}),null)};OS.displayName="SettingOutlined";OS.inheritAttrs=!1;var EWe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M870 126H663.8c-17.4 0-32.9 11.9-37 29.3C614.3 208.1 567 246 512 246s-102.3-37.9-114.8-90.7a37.93 37.93 0 00-37-29.3H154a44 44 0 00-44 44v252a44 44 0 0044 44h75v388a44 44 0 0044 44h478a44 44 0 0044-44V466h75a44 44 0 0044-44V170a44 44 0 00-44-44zm-28 268H723v432H301V394H182V198h153.3c28.2 71.2 97.5 120 176.7 120s148.5-48.8 176.7-120H842v196z"}}]},name:"skin",theme:"outlined"};function i9(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?Object(arguments[e]):{},r=Object.keys(n);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(i){return Object.getOwnPropertyDescriptor(n,i).enumerable}))),r.forEach(function(i){MWe(t,i,n[i])})}return t}function MWe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a_=function(e,n){var r=i9({},e,n.attrs);return h.createVNode(yt,i9({},r,{icon:EWe}),null)};a_.displayName="SkinOutlined";a_.inheritAttrs=!1;function goe(t,e){return function(){return t.apply(e,arguments)}}const{toString:IWe}=Object.prototype,{getPrototypeOf:h8}=Object,nP=(t=>e=>{const n=IWe.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),gs=t=>(t=t.toLowerCase(),e=>nP(e)===t),rP=t=>e=>typeof e===t,{isArray:Cg}=Array,Zy=rP("undefined");function DWe(t){return t!==null&&!Zy(t)&&t.constructor!==null&&!Zy(t.constructor)&&ma(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const moe=gs("ArrayBuffer");function RWe(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&moe(t.buffer),e}const kWe=rP("string"),ma=rP("function"),yoe=rP("number"),iP=t=>t!==null&&typeof t=="object",NWe=t=>t===!0||t===!1,ux=t=>{if(nP(t)!=="object")return!1;const e=h8(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},LWe=gs("Date"),BWe=gs("File"),VWe=gs("Blob"),zWe=gs("FileList"),FWe=t=>iP(t)&&ma(t.pipe),WWe=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||ma(t.append)&&((e=nP(t))==="formdata"||e==="object"&&ma(t.toString)&&t.toString()==="[object FormData]"))},QWe=gs("URLSearchParams"),[HWe,GWe,jWe,UWe]=["ReadableStream","Request","Response","Headers"].map(gs),ZWe=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function s_(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,i;if(typeof t!="object"&&(t=[t]),Cg(t))for(r=0,i=t.length;r<i;r++)e.call(null,t[r],r,t);else{const o=n?Object.getOwnPropertyNames(t):Object.keys(t),a=o.length;let s;for(r=0;r<a;r++)s=o[r],e.call(null,t[s],s,t)}}function boe(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,i;for(;r-- >0;)if(i=n[r],e===i.toLowerCase())return i;return null}const _oe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ooe=t=>!Zy(t)&&t!==_oe;function KD(){const{caseless:t}=Ooe(this)&&this||{},e={},n=(r,i)=>{const o=t&&boe(e,i)||i;ux(e[o])&&ux(r)?e[o]=KD(e[o],r):ux(r)?e[o]=KD({},r):Cg(r)?e[o]=r.slice():e[o]=r};for(let r=0,i=arguments.length;r<i;r++)arguments[r]&&s_(arguments[r],n);return e}const XWe=(t,e,n,{allOwnKeys:r}={})=>(s_(e,(i,o)=>{n&&ma(i)?t[o]=goe(i,n):t[o]=i},{allOwnKeys:r}),t),YWe=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),qWe=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},KWe=(t,e,n,r)=>{let i,o,a;const s={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),o=i.length;o-- >0;)a=i[o],(!r||r(a,t,e))&&!s[a]&&(e[a]=t[a],s[a]=!0);t=n!==!1&&h8(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},JWe=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},e7e=t=>{if(!t)return null;if(Cg(t))return t;let e=t.length;if(!yoe(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},t7e=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&h8(Uint8Array)),n7e=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let i;for(;(i=r.next())&&!i.done;){const o=i.value;e.call(t,o[0],o[1])}},r7e=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},i7e=gs("HTMLFormElement"),o7e=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),o9=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),a7e=gs("RegExp"),woe=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};s_(n,(i,o)=>{let a;(a=e(i,o,t))!==!1&&(r[o]=a||i)}),Object.defineProperties(t,r)},s7e=t=>{woe(t,(e,n)=>{if(ma(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(ma(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},l7e=(t,e)=>{const n={},r=i=>{i.forEach(o=>{n[o]=!0})};return Cg(t)?r(t):r(String(t).split(e)),n},u7e=()=>{},c7e=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e,AA="abcdefghijklmnopqrstuvwxyz",a9="0123456789",xoe={DIGIT:a9,ALPHA:AA,ALPHA_DIGIT:AA+AA.toUpperCase()+a9},f7e=(t=16,e=xoe.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function d7e(t){return!!(t&&ma(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const h7e=t=>{const e=new Array(10),n=(r,i)=>{if(iP(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[i]=r;const o=Cg(r)?[]:{};return s_(r,(a,s)=>{const l=n(a,i+1);!Zy(l)&&(o[s]=l)}),e[i]=void 0,o}}return r};return n(t,0)},p7e=gs("AsyncFunction"),v7e=t=>t&&(iP(t)||ma(t))&&ma(t.then)&&ma(t.catch),be={isArray:Cg,isArrayBuffer:moe,isBuffer:DWe,isFormData:WWe,isArrayBufferView:RWe,isString:kWe,isNumber:yoe,isBoolean:NWe,isObject:iP,isPlainObject:ux,isReadableStream:HWe,isRequest:GWe,isResponse:jWe,isHeaders:UWe,isUndefined:Zy,isDate:LWe,isFile:BWe,isBlob:VWe,isRegExp:a7e,isFunction:ma,isStream:FWe,isURLSearchParams:QWe,isTypedArray:t7e,isFileList:zWe,forEach:s_,merge:KD,extend:XWe,trim:ZWe,stripBOM:YWe,inherits:qWe,toFlatObject:KWe,kindOf:nP,kindOfTest:gs,endsWith:JWe,toArray:e7e,forEachEntry:n7e,matchAll:r7e,isHTMLForm:i7e,hasOwnProperty:o9,hasOwnProp:o9,reduceDescriptors:woe,freezeMethods:s7e,toObjectSet:l7e,toCamelCase:o7e,noop:u7e,toFiniteNumber:c7e,findKey:boe,global:_oe,isContextDefined:Ooe,ALPHABET:xoe,generateString:f7e,isSpecCompliantForm:d7e,toJSONObject:h7e,isAsyncFn:p7e,isThenable:v7e};function St(t,e,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}be.inherits(St,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.response&&this.response.status?this.response.status:null}}});const Soe=St.prototype,Coe={};["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(t=>{Coe[t]={value:t}});Object.defineProperties(St,Coe);Object.defineProperty(Soe,"isAxiosError",{value:!0});St.from=(t,e,n,r,i,o)=>{const a=Object.create(Soe);return be.toFlatObject(t,a,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),St.call(a,t.message,e,n,r,i),a.cause=t,a.name=t.name,o&&Object.assign(a,o),a};const g7e=null;function JD(t){return be.isPlainObject(t)||be.isArray(t)}function Toe(t){return be.endsWith(t,"[]")?t.slice(0,-2):t}function s9(t,e,n){return t?t.concat(e).map(function(i,o){return i=Toe(i),!n&&o?"["+i+"]":i}).join(n?".":""):e}function m7e(t){return be.isArray(t)&&!t.some(JD)}const y7e=be.toFlatObject(be,{},null,function(e){return/^is[A-Z]/.test(e)});function oP(t,e,n){if(!be.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=be.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,m){return!be.isUndefined(m[g])});const r=n.metaTokens,i=n.visitor||c,o=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&be.isSpecCompliantForm(e);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 St("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,g,m){let y=v;if(v&&!m&&typeof v=="object"){if(be.endsWith(g,"{}"))g=r?g:g.slice(0,-2),v=JSON.stringify(v);else if(be.isArray(v)&&m7e(v)||(be.isFileList(v)||be.endsWith(g,"[]"))&&(y=be.toArray(v)))return g=Toe(g),y.forEach(function(O,w){!(be.isUndefined(O)||O===null)&&e.append(a===!0?s9([g],w,o):a===null?g:g+"[]",u(O))}),!1}return JD(v)?!0:(e.append(s9(m,g,o),u(v)),!1)}const f=[],d=Object.assign(y7e,{defaultVisitor:c,convertValue:u,isVisitable:JD});function p(v,g){if(!be.isUndefined(v)){if(f.indexOf(v)!==-1)throw Error("Circular reference detected in "+g.join("."));f.push(v),be.forEach(v,function(y,b){(!(be.isUndefined(y)||y===null)&&i.call(e,y,be.isString(b)?b.trim():b,g,d))===!0&&p(y,g?g.concat(b):[b])}),f.pop()}}if(!be.isObject(t))throw new TypeError("data must be an object");return p(t),e}function l9(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function p8(t,e){this._pairs=[],t&&oP(t,this,e)}const Poe=p8.prototype;Poe.append=function(e,n){this._pairs.push([e,n])};Poe.toString=function(e){const n=e?function(r){return e.call(this,r,l9)}:l9;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function b7e(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function $oe(t,e,n){if(!e)return t;const r=n&&n.encode||b7e,i=n&&n.serialize;let o;if(i?o=i(e,n):o=be.isURLSearchParams(e)?e.toString():new p8(e,n).toString(r),o){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class u9{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){be.forEach(this.handlers,function(r){r!==null&&e(r)})}}const Aoe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},_7e=typeof URLSearchParams<"u"?URLSearchParams:p8,O7e=typeof FormData<"u"?FormData:null,w7e=typeof Blob<"u"?Blob:null,x7e={isBrowser:!0,classes:{URLSearchParams:_7e,FormData:O7e,Blob:w7e},protocols:["http","https","file","blob","url","data"]},v8=typeof window<"u"&&typeof document<"u",S7e=(t=>v8&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),C7e=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",T7e=v8&&window.location.href||"http://localhost",P7e=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:v8,hasStandardBrowserEnv:S7e,hasStandardBrowserWebWorkerEnv:C7e,origin:T7e},Symbol.toStringTag,{value:"Module"})),ts={...P7e,...x7e};function $7e(t,e){return oP(t,new ts.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,o){return ts.isNode&&be.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function A7e(t){return be.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function E7e(t){const e={},n=Object.keys(t);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],e[o]=t[o];return e}function Eoe(t){function e(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]=[]),e(n,r,i[a],o)&&be.isArray(i[a])&&(i[a]=E7e(i[a])),!s)}if(be.isFormData(t)&&be.isFunction(t.entries)){const n={};return be.forEachEntry(t,(r,i)=>{e(A7e(r),i,n,0)}),n}return null}function M7e(t,e,n){if(be.isString(t))try{return(e||JSON.parse)(t),be.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const l_={transitional:Aoe,adapter:["xhr","http","fetch"],transformRequest:[function(e,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,o=be.isObject(e);if(o&&be.isHTMLForm(e)&&(e=new FormData(e)),be.isFormData(e))return i?JSON.stringify(Eoe(e)):e;if(be.isArrayBuffer(e)||be.isBuffer(e)||be.isStream(e)||be.isFile(e)||be.isBlob(e)||be.isReadableStream(e))return e;if(be.isArrayBufferView(e))return e.buffer;if(be.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return $7e(e,this.formSerializer).toString();if((s=be.isFileList(e))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return oP(s?{"files[]":e}:e,l&&new l,this.formSerializer)}}return o||i?(n.setContentType("application/json",!1),M7e(e)):e}],transformResponse:[function(e){const n=this.transitional||l_.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(be.isResponse(e)||be.isReadableStream(e))return e;if(e&&be.isString(e)&&(r&&!this.responseType||i)){const a=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(s){if(a)throw s.name==="SyntaxError"?St.from(s,St.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ts.classes.FormData,Blob:ts.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};be.forEach(["delete","get","head","post","put","patch"],t=>{l_.headers[t]={}});const I7e=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"]),D7e=t=>{const e={};let n,r,i;return t&&t.split(`
  278. `).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||e[n]&&I7e[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},c9=Symbol("internals");function Dm(t){return t&&String(t).trim().toLowerCase()}function cx(t){return t===!1||t==null?t:be.isArray(t)?t.map(cx):String(t)}function R7e(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const k7e=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function EA(t,e,n,r,i){if(be.isFunction(r))return r.call(this,e,n);if(i&&(e=n),!!be.isString(e)){if(be.isString(r))return e.indexOf(r)!==-1;if(be.isRegExp(r))return r.test(e)}}function N7e(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function L7e(t,e){const n=be.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(i,o,a){return this[r].call(this,e,i,o,a)},configurable:!0})})}class oo{constructor(e){e&&this.set(e)}set(e,n,r){const i=this;function o(s,l,u){const c=Dm(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]=cx(s))}const a=(s,l)=>be.forEach(s,(u,c)=>o(u,c,l));if(be.isPlainObject(e)||e instanceof this.constructor)a(e,n);else if(be.isString(e)&&(e=e.trim())&&!k7e(e))a(D7e(e),n);else if(be.isHeaders(e))for(const[s,l]of e.entries())o(l,s,r);else e!=null&&o(n,e,r);return this}get(e,n){if(e=Dm(e),e){const r=be.findKey(this,e);if(r){const i=this[r];if(!n)return i;if(n===!0)return R7e(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(e,n){if(e=Dm(e),e){const r=be.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||EA(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let i=!1;function o(a){if(a=Dm(a),a){const s=be.findKey(r,a);s&&(!n||EA(r,r[s],s,n))&&(delete r[s],i=!0)}}return be.isArray(e)?e.forEach(o):o(e),i}clear(e){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const o=n[r];(!e||EA(this,this[o],o,e,!0))&&(delete this[o],i=!0)}return i}normalize(e){const n=this,r={};return be.forEach(this,(i,o)=>{const a=be.findKey(r,o);if(a){n[a]=cx(i),delete n[o];return}const s=e?N7e(o):String(o).trim();s!==o&&delete n[o],n[s]=cx(i),r[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return be.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=e&&be.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
  279. `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(i=>r.set(i)),r}static accessor(e){const r=(this[c9]=this[c9]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=Dm(a);r[s]||(L7e(i,a),r[s]=!0)}return be.isArray(e)?e.forEach(o):o(e),this}}oo.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);be.reduceDescriptors(oo.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}});be.freezeMethods(oo);function MA(t,e){const n=this||l_,r=e||n,i=oo.from(r.headers);let o=r.data;return be.forEach(t,function(s){o=s.call(n,o,i.normalize(),e?e.status:void 0)}),i.normalize(),o}function Moe(t){return!!(t&&t.__CANCEL__)}function Tg(t,e,n){St.call(this,t??"canceled",St.ERR_CANCELED,e,n),this.name="CanceledError"}be.inherits(Tg,St,{__CANCEL__:!0});function Ioe(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new St("Request failed with status code "+n.status,[St.ERR_BAD_REQUEST,St.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function B7e(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function V7e(t,e){t=t||10;const n=new Array(t),r=new Array(t);let i=0,o=0,a;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),c=r[o];a||(a=u),n[i]=l,r[i]=u;let f=o,d=0;for(;f!==i;)d+=n[f++],f=f%t;if(i=(i+1)%t,i===o&&(o=(o+1)%t),u-a<e)return;const p=c&&u-c;return p?Math.round(d*1e3/p):void 0}}function z7e(t,e){let n=0;const r=1e3/e;let i=null;return function(){const a=this===!0,s=Date.now();if(a||s-n>r)return i&&(clearTimeout(i),i=null),n=s,t.apply(null,arguments);i||(i=setTimeout(()=>(i=null,n=Date.now(),t.apply(null,arguments)),r-(s-n)))}}const wS=(t,e,n=3)=>{let r=0;const i=V7e(50,250);return z7e(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};f[e?"download":"upload"]=!0,t(f)},n)},F7e=ts.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(o){let a=o;return e&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(a){const s=be.isString(a)?i(a):a;return s.protocol===r.protocol&&s.host===r.host}}():function(){return function(){return!0}}(),W7e=ts.hasStandardBrowserEnv?{write(t,e,n,r,i,o){const a=[t+"="+encodeURIComponent(e)];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(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Q7e(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function H7e(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Doe(t,e){return t&&!Q7e(e)?H7e(t,e):e}const f9=t=>t instanceof oo?{...t}:t;function ah(t,e){e=e||{};const n={};function r(u,c,f){return be.isPlainObject(u)&&be.isPlainObject(c)?be.merge.call({caseless:f},u,c):be.isPlainObject(c)?be.merge({},c):be.isArray(c)?c.slice():c}function i(u,c,f){if(be.isUndefined(c)){if(!be.isUndefined(u))return r(void 0,u,f)}else return r(u,c,f)}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 e)return r(u,c);if(f in t)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)=>i(f9(u),f9(c),!0)};return be.forEach(Object.keys(Object.assign({},t,e)),function(c){const f=l[c]||i,d=f(t[c],e[c],c);be.isUndefined(d)&&f!==s||(n[c]=d)}),n}const Roe=t=>{const e=ah({},t);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=e;e.headers=a=oo.from(a),e.url=$oe(Doe(e.baseURL,e.url),t.params,t.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(be.isFormData(n)){if(ts.hasStandardBrowserEnv||ts.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(ts.hasStandardBrowserEnv&&(r&&be.isFunction(r)&&(r=r(e)),r||r!==!1&&F7e(e.url))){const u=i&&o&&W7e.read(o);u&&a.set(i,u)}return e},G7e=typeof XMLHttpRequest<"u",j7e=G7e&&function(t){return new Promise(function(n,r){const i=Roe(t);let o=i.data;const a=oo.from(i.headers).normalize();let{responseType:s}=i,l;function u(){i.cancelToken&&i.cancelToken.unsubscribe(l),i.signal&&i.signal.removeEventListener("abort",l)}let c=new XMLHttpRequest;c.open(i.method.toUpperCase(),i.url,!0),c.timeout=i.timeout;function f(){if(!c)return;const p=oo.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),g={data:!s||s==="text"||s==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:p,config:t,request:c};Ioe(function(y){n(y),u()},function(y){r(y),u()},g),c=null}"onloadend"in c?c.onloadend=f:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(f)},c.onabort=function(){c&&(r(new St("Request aborted",St.ECONNABORTED,i,c)),c=null)},c.onerror=function(){r(new St("Network Error",St.ERR_NETWORK,i,c)),c=null},c.ontimeout=function(){let v=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const g=i.transitional||Aoe;i.timeoutErrorMessage&&(v=i.timeoutErrorMessage),r(new St(v,g.clarifyTimeoutError?St.ETIMEDOUT:St.ECONNABORTED,i,c)),c=null},o===void 0&&a.setContentType(null),"setRequestHeader"in c&&be.forEach(a.toJSON(),function(v,g){c.setRequestHeader(g,v)}),be.isUndefined(i.withCredentials)||(c.withCredentials=!!i.withCredentials),s&&s!=="json"&&(c.responseType=i.responseType),typeof i.onDownloadProgress=="function"&&c.addEventListener("progress",wS(i.onDownloadProgress,!0)),typeof i.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",wS(i.onUploadProgress)),(i.cancelToken||i.signal)&&(l=p=>{c&&(r(!p||p.type?new Tg(null,t,c):p),c.abort(),c=null)},i.cancelToken&&i.cancelToken.subscribe(l),i.signal&&(i.signal.aborted?l():i.signal.addEventListener("abort",l)));const d=B7e(i.url);if(d&&ts.protocols.indexOf(d)===-1){r(new St("Unsupported protocol "+d+":",St.ERR_BAD_REQUEST,t));return}c.send(o||null)})},U7e=(t,e)=>{let n=new AbortController,r;const i=function(l){if(!r){r=!0,a();const u=l instanceof Error?l:this.reason;n.abort(u instanceof St?u:new Tg(u instanceof Error?u.message:u))}};let o=e&&setTimeout(()=>{i(new St(`timeout ${e} of ms exceeded`,St.ETIMEDOUT))},e);const a=()=>{t&&(o&&clearTimeout(o),o=null,t.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",i):l.unsubscribe(i))}),t=null)};t.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",i));const{signal:s}=n;return s.unsubscribe=a,[s,()=>{o&&clearTimeout(o),o=null}]},Z7e=function*(t,e){let n=t.byteLength;if(!e||n<e){yield t;return}let r=0,i;for(;r<n;)i=r+e,yield t.slice(r,i),r=i},X7e=async function*(t,e,n){for await(const r of t)yield*Z7e(ArrayBuffer.isView(r)?r:await n(String(r)),e)},d9=(t,e,n,r,i)=>{const o=X7e(t,e,i);let a=0;return new ReadableStream({type:"bytes",async pull(s){const{done:l,value:u}=await o.next();if(l){s.close(),r();return}let c=u.byteLength;n&&n(a+=c),s.enqueue(new Uint8Array(u))},cancel(s){return r(s),o.return()}},{highWaterMark:2})},h9=(t,e)=>{const n=t!=null;return r=>setTimeout(()=>e({lengthComputable:n,total:t,loaded:r}))},aP=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",koe=aP&&typeof ReadableStream=="function",eR=aP&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),Y7e=koe&&(()=>{let t=!1;const e=new Request(ts.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e})(),p9=64*1024,tR=koe&&!!(()=>{try{return be.isReadableStream(new Response("").body)}catch{}})(),xS={stream:tR&&(t=>t.body)};aP&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!xS[e]&&(xS[e]=be.isFunction(t[e])?n=>n[e]():(n,r)=>{throw new St(`Response type '${e}' is not supported`,St.ERR_NOT_SUPPORT,r)})})})(new Response);const q7e=async t=>{if(t==null)return 0;if(be.isBlob(t))return t.size;if(be.isSpecCompliantForm(t))return(await new Request(t).arrayBuffer()).byteLength;if(be.isArrayBufferView(t))return t.byteLength;if(be.isURLSearchParams(t)&&(t=t+""),be.isString(t))return(await eR(t)).byteLength},K7e=async(t,e)=>{const n=be.toFiniteNumber(t.getContentLength());return n??q7e(e)},J7e=aP&&(async t=>{let{url:e,method:n,data:r,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:c,withCredentials:f="same-origin",fetchOptions:d}=Roe(t);u=u?(u+"").toLowerCase():"text";let[p,v]=i||o||a?U7e([i,o],a):[],g,m;const y=()=>{!g&&setTimeout(()=>{p&&p.unsubscribe()}),g=!0};let b;try{if(l&&Y7e&&n!=="get"&&n!=="head"&&(b=await K7e(c,r))!==0){let S=new Request(e,{method:"POST",body:r,duplex:"half"}),T;be.isFormData(r)&&(T=S.headers.get("content-type"))&&c.setContentType(T),S.body&&(r=d9(S.body,p9,h9(b,wS(l)),null,eR))}be.isString(f)||(f=f?"cors":"omit"),m=new Request(e,{...d,signal:p,method:n.toUpperCase(),headers:c.normalize().toJSON(),body:r,duplex:"half",withCredentials:f});let O=await fetch(m);const w=tR&&(u==="stream"||u==="response");if(tR&&(s||w)){const S={};["status","statusText","headers"].forEach($=>{S[$]=O[$]});const T=be.toFiniteNumber(O.headers.get("content-length"));O=new Response(d9(O.body,p9,s&&h9(T,wS(s,!0)),w&&y,eR),S)}u=u||"text";let x=await xS[be.findKey(xS,u)||"text"](O,t);return!w&&y(),v&&v(),await new Promise((S,T)=>{Ioe(S,T,{data:x,headers:oo.from(O.headers),status:O.status,statusText:O.statusText,config:t,request:m})})}catch(O){throw y(),O&&O.name==="TypeError"&&/fetch/i.test(O.message)?Object.assign(new St("Network Error",St.ERR_NETWORK,t,m),{cause:O.cause||O}):St.from(O,O&&O.code,t,m)}}),nR={http:g7e,xhr:j7e,fetch:J7e};be.forEach(nR,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const v9=t=>`- ${t}`,eQe=t=>be.isFunction(t)||t===null||t===!1,Noe={getAdapter:t=>{t=be.isArray(t)?t:[t];const{length:e}=t;let n,r;const i={};for(let o=0;o<e;o++){n=t[o];let a;if(r=n,!eQe(n)&&(r=nR[(a=String(n)).toLowerCase()],r===void 0))throw new St(`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=e?o.length>1?`since :
  280. `+o.map(v9).join(`
  281. `):" "+v9(o[0]):"as no adapter specified";throw new St("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:nR};function IA(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Tg(null,t)}function g9(t){return IA(t),t.headers=oo.from(t.headers),t.data=MA.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Noe.getAdapter(t.adapter||l_.adapter)(t).then(function(r){return IA(t),r.data=MA.call(t,t.transformResponse,r),r.headers=oo.from(r.headers),r},function(r){return Moe(r)||(IA(t),r&&r.response&&(r.response.data=MA.call(t,t.transformResponse,r.response),r.response.headers=oo.from(r.response.headers))),Promise.reject(r)})}const Loe="1.7.2",g8={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{g8[t]=function(r){return typeof r===t||"a"+(e<1?"n ":" ")+t}});const m9={};g8.transitional=function(e,n,r){function i(o,a){return"[Axios v"+Loe+"] Transitional option '"+o+"'"+a+(r?". "+r:"")}return(o,a,s)=>{if(e===!1)throw new St(i(a," has been removed"+(n?" in "+n:"")),St.ERR_DEPRECATED);return n&&!m9[a]&&(m9[a]=!0,console.warn(i(a," has been deprecated since v"+n+" and will be removed in the near future"))),e?e(o,a,s):!0}};function tQe(t,e,n){if(typeof t!="object")throw new St("options must be an object",St.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let i=r.length;for(;i-- >0;){const o=r[i],a=e[o];if(a){const s=t[o],l=s===void 0||a(s,o,t);if(l!==!0)throw new St("option "+o+" must be "+l,St.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new St("Unknown option "+o,St.ERR_BAD_OPTION)}}const rR={assertOptions:tQe,validators:g8},Ru=rR.validators;class kd{constructor(e){this.defaults=e,this.interceptors={request:new u9,response:new u9}}async request(e,n){try{return await this._request(e,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+=`
  282. `+o):r.stack=o}catch{}}throw r}}_request(e,n){typeof e=="string"?(n=n||{},n.url=e):n=e||{},n=ah(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:o}=n;r!==void 0&&rR.assertOptions(r,{silentJSONParsing:Ru.transitional(Ru.boolean),forcedJSONParsing:Ru.transitional(Ru.boolean),clarifyTimeoutError:Ru.transitional(Ru.boolean)},!1),i!=null&&(be.isFunction(i)?n.paramsSerializer={serialize:i}:rR.assertOptions(i,{encode:Ru.function,serialize:Ru.function},!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=oo.concat(a,o);const s=[];let l=!0;this.interceptors.request.forEach(function(g){typeof g.runWhen=="function"&&g.runWhen(n)===!1||(l=l&&g.synchronous,s.unshift(g.fulfilled,g.rejected))});const u=[];this.interceptors.response.forEach(function(g){u.push(g.fulfilled,g.rejected)});let c,f=0,d;if(!l){const v=[g9.bind(this),void 0];for(v.unshift.apply(v,s),v.push.apply(v,u),d=v.length,c=Promise.resolve(n);f<d;)c=c.then(v[f++],v[f++]);return c}d=s.length;let p=n;for(f=0;f<d;){const v=s[f++],g=s[f++];try{p=v(p)}catch(m){g.call(this,m);break}}try{c=g9.call(this,p)}catch(v){return Promise.reject(v)}for(f=0,d=u.length;f<d;)c=c.then(u[f++],u[f++]);return c}getUri(e){e=ah(this.defaults,e);const n=Doe(e.baseURL,e.url);return $oe(n,e.params,e.paramsSerializer)}}be.forEach(["delete","get","head","options"],function(e){kd.prototype[e]=function(n,r){return this.request(ah(r||{},{method:e,url:n,data:(r||{}).data}))}});be.forEach(["post","put","patch"],function(e){function n(r){return function(o,a,s){return this.request(ah(s||{},{method:e,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}kd.prototype[e]=n(),kd.prototype[e+"Form"]=n(!0)});class m8{constructor(e){if(typeof e!="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},e(function(o,a,s){r.reason||(r.reason=new Tg(o,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const n=this._listeners.indexOf(e);n!==-1&&this._listeners.splice(n,1)}static source(){let e;return{token:new m8(function(i){e=i}),cancel:e}}}function nQe(t){return function(n){return t.apply(null,n)}}function rQe(t){return be.isObject(t)&&t.isAxiosError===!0}const iR={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(iR).forEach(([t,e])=>{iR[e]=t});function Boe(t){const e=new kd(t),n=goe(kd.prototype.request,e);return be.extend(n,kd.prototype,e,{allOwnKeys:!0}),be.extend(n,e,null,{allOwnKeys:!0}),n.create=function(i){return Boe(ah(t,i))},n}const hr=Boe(l_);hr.Axios=kd;hr.CanceledError=Tg;hr.CancelToken=m8;hr.isCancel=Moe;hr.VERSION=Loe;hr.toFormData=oP;hr.AxiosError=St;hr.Cancel=hr.CanceledError;hr.all=function(e){return Promise.all(e)};hr.spread=nQe;hr.isAxiosError=rQe;hr.mergeConfig=ah;hr.AxiosHeaders=oo;hr.formToJSON=t=>Eoe(be.isHTMLForm(t)?new FormData(t):t);hr.getAdapter=Noe.getAdapter;hr.HttpStatusCode=iR;hr.default=hr;class iQe{constructor(e,n){this.axiosInstance=hr.create({baseURL:e,timeout:5e3}),this.options=n}get(e,n){return this.request({url:e,method:"GET",...n})}post(e,n,r){return this.request({url:e,method:"POST",data:n,...r})}put(e,n,r){return this.request({url:e,method:"PUT",data:n,...r})}delete(e,n){return this.request({url:e,method:"DELETE",...n})}request(e){e.headers={...e.headers,Authorization:localStorage.getItem("token")||""};const{transformResponse:n}=this.options||{};return new Promise((r,i)=>{this.axiosInstance.request(e).then(o=>{if(n)try{const a=n(o.data,e);r(a)}catch(a){i(a)}r(o.data)}).catch(o=>{i(o)})})}}var oQe={BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0,SSR:!1};const aQe=oQe.VITE_APP_BASE_URL,sQe=(t,e)=>{if(e.responseType==="blob")return t;if(t.code===1)return t.result;throw oh.warning(t.error),new Error(t.error)},Voe=new iQe(aQe,{transformResponse:sQe});function lQe(t){return Voe.post("/api/table/GetAllTablesAndViews",t)}function uQe(t){return Voe.post("/api/system/GetAllBasicData",t)}const cQe=t=>{const e=h.ref(),n=h.ref(!1),r=h.ref(""),i=h.ref(""),o=h.ref(),a=h.ref("");t==="view"&&(e.value=[{label:"系统视图",children:[]},{label:"数据源视图",children:[]}],n.value=!0,lQe({types:t}).then(u=>{const{bpmViewTables:c=[]}=u||{};c.forEach(f=>{const{name:d,schemaName:p,type:v,id:g}=f;e.value[v-1]&&e.value[v-1].children.push({label:`${p}(${d})`,value:p,id:g})})}).finally(()=>{n.value=!1}));const s=(u,c)=>{if(u.level===0)return c([{name:"基础数据"}]);const f=u.data;uQe({currentPage:1,pageSize:999,orderByProperty:"id",Ascending:!0,totalPage:1,totalCount:1,filters:f!=null&&f.id?[{name:"parentId",value:f.id}]:null}).then(d=>{c(d||[])})},l=()=>t==="table"?React.createElement(UF,{ref:o,lazy:!0,load:s,props:{label:u=>u.path?`${u.path}(${u.name})`:u.name,children:"children"},"onNode-click":u=>{u!=null&&u.path&&(r.value=u.path)},filterNodeMethod:(u,c)=>{var f;return((f=c.path)==null?void 0:f.toUpperCase().includes(u.toUpperCase()))||c.name.toUpperCase().includes(u.toUpperCase())},"empty-text":"暂无数据"}):React.createElement(UF,{ref:o,data:e.value,defaultExpandAll:!0,"onNode-click":u=>{u!=null&&u.value&&u.id&&(r.value=u.value,a.value=u.id)},filterNodeMethod:(u,c)=>{var f;return(f=c.label)==null?void 0:f.includes(u)},"empty-text":"暂无数据"});return new Promise((u,c)=>{const f=document.createElement("div"),d=h.createApp({render(){return React.createElement(JIe,{modelValue:!0,title:t==="table"?"选择数据集":"选择视图表",width:"800px",style:{height:"600px"},"v-slots":{footer:()=>React.createElement(dD,{type:"primary",disabled:!r.value,onClick:()=>{u({value:r.value}),document.body.removeChild(f)}},"确定")},onClose:()=>{c("close"),document.body.removeChild(f)}},React.createElement(mT,{size:"small",placeholder:"请输入关键字进行搜索","v-model":i.value,onInput:()=>{var p;(p=o.value)==null||p.filter(i.value)},style:{marginBottom:"10px",height:"35px",fontSize:"14px"}}),React.createElement("div",{style:{height:"379px",overflow:"auto"}},l()))}});document.body.appendChild(f),d.mount(f)})};function oR(t){const e={};for(const n in t)if(typeof t[n]=="object")switch(n){case"background":t[n].type==="none"&&(e[n]="none"),t[n].type==="color"&&(e[n]=t[n].color),t[n].type==="image"&&(e[n+"-image"]=`url(${t[n].image}) no-repeat center center`,e[n+"-size"]=t[n].fillType);break;case"border":t[n].type==="none"?e[n]="none":e[n]=`${t[n].width}px ${t[n].type} ${t[n].color}`;break;case"borderRadius":t[n].type==="all"?e[n]=`${t[n].value}${t[n].unit}`:e[n]=`${t[n].topLeft}${t[n].unit} ${t[n].topRight}${t[n].unit} ${t[n].bottomLeft}${t[n].unit} ${t[n].bottomRight}${t[n].unit}`;break;case"boxShadow":t[n].enabled&&(e[n]=`${t[n].offsetX}px ${t[n].offsetY}px ${t[n].blurRadius}px ${t[n].spreadRadius}px ${t[n].color} ${t[n].inset?"inset":""}`);break;case"backdropFilter":t[n].enabled&&(e[n]=`blur(${t[n].blur}px)`);break}else typeof t[n]=="number"?e[n]=t[n]+"px":typeof t[n]=="string"&&(e[n]=t[n]);return e}var SS={exports:{}};/**
  283. * @license
  284. * Lodash <https://lodash.com/>
  285. * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
  286. * Released under MIT license <https://lodash.com/license>
  287. * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
  288. * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
  289. */SS.exports;(function(t,e){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,c="__lodash_placeholder__",f=1,d=2,p=4,v=1,g=2,m=1,y=2,b=4,O=8,w=16,x=32,S=64,T=128,$=256,A=512,P=30,M="...",I=800,R=16,L=1,D=2,B=3,F=1/0,z=9007199254740991,W=17976931348623157e292,j=NaN,H=4294967295,Z=H-1,J=H>>>1,se=[["ary",T],["bind",m],["bindKey",y],["curry",O],["curryRight",w],["flip",A],["partial",x],["partialRight",S],["rearg",$]],oe="[object Arguments]",de="[object Array]",re="[object AsyncFunction]",ue="[object Boolean]",ee="[object Date]",X="[object DOMException]",Y="[object Error]",le="[object Function]",ge="[object GeneratorFunction]",me="[object Map]",Ne="[object Number]",Le="[object Null]",Ee="[object Object]",$e="[object Promise]",_e="[object Proxy]",De="[object RegExp]",ze="[object Set]",lt="[object String]",gt="[object Symbol]",Bt="[object Undefined]",we="[object WeakMap]",rt="[object WeakSet]",At="[object ArrayBuffer]",vn="[object DataView]",cn="[object Float32Array]",ar="[object Float64Array]",vi="[object Int8Array]",bl="[object Int16Array]",_l="[object Int32Array]",wu="[object Uint8Array]",rf="[object Uint8ClampedArray]",Os="[object Uint16Array]",of="[object Uint32Array]",af=/\b__p \+= '';/g,tm=/\b(__p \+=) '' \+/g,xu=/(__e\(.*?\)|\b__t\)) \+\n'';/g,nm=/&(?:amp|lt|gt|quot|#39);/g,w2=/[&<>"']/g,UB=RegExp(nm.source),ZB=RegExp(w2.source),XB=/<%-([\s\S]+?)%>/g,YB=/<%([\s\S]+?)%>/g,Bh=/<%=([\s\S]+?)%>/g,rm=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,j_=/^\w*$/,Vh=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,im=/[\\^$.*+?()[\]{}|]/g,x2=RegExp(im.source),om=/^\s+/,S2=/\s/,C2=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,T2=/\{\n\/\* \[wrapped with (.+)\] \*/,U_=/,? & /,sf=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,am=/[()=,{}\[\]\/\s]/,Z_=/\\(\\)?/g,X_=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,sm=/\w*$/,Y_=/^[-+]0x[0-9a-f]+$/i,P2=/^0b[01]+$/i,$2=/^\[object .+?Constructor\]$/,A2=/^0o[0-7]+$/i,q_=/^(?:0|[1-9]\d*)$/,lm=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Vo=/($^)/,K_=/['\n\r\u2028\u2029\\]/g,zh="\\ud800-\\udfff",Kge="\\u0300-\\u036f",Jge="\\ufe20-\\ufe2f",eme="\\u20d0-\\u20ff",qB=Kge+Jge+eme,KB="\\u2700-\\u27bf",JB="a-z\\xdf-\\xf6\\xf8-\\xff",tme="\\xac\\xb1\\xd7\\xf7",nme="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",rme="\\u2000-\\u206f",ime=" \\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",e6="A-Z\\xc0-\\xd6\\xd8-\\xde",t6="\\ufe0e\\ufe0f",n6=tme+nme+rme+ime,E2="['’]",ome="["+zh+"]",r6="["+n6+"]",J_="["+qB+"]",i6="\\d+",ame="["+KB+"]",o6="["+JB+"]",a6="[^"+zh+n6+i6+KB+JB+e6+"]",M2="\\ud83c[\\udffb-\\udfff]",sme="(?:"+J_+"|"+M2+")",s6="[^"+zh+"]",I2="(?:\\ud83c[\\udde6-\\uddff]){2}",D2="[\\ud800-\\udbff][\\udc00-\\udfff]",Fh="["+e6+"]",l6="\\u200d",u6="(?:"+o6+"|"+a6+")",lme="(?:"+Fh+"|"+a6+")",c6="(?:"+E2+"(?:d|ll|m|re|s|t|ve))?",f6="(?:"+E2+"(?:D|LL|M|RE|S|T|VE))?",d6=sme+"?",h6="["+t6+"]?",ume="(?:"+l6+"(?:"+[s6,I2,D2].join("|")+")"+h6+d6+")*",cme="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",fme="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",p6=h6+d6+ume,dme="(?:"+[ame,I2,D2].join("|")+")"+p6,hme="(?:"+[s6+J_+"?",J_,I2,D2,ome].join("|")+")",pme=RegExp(E2,"g"),vme=RegExp(J_,"g"),R2=RegExp(M2+"(?="+M2+")|"+hme+p6,"g"),gme=RegExp([Fh+"?"+o6+"+"+c6+"(?="+[r6,Fh,"$"].join("|")+")",lme+"+"+f6+"(?="+[r6,Fh+u6,"$"].join("|")+")",Fh+"?"+u6+"+"+c6,Fh+"+"+f6,fme,cme,i6,dme].join("|"),"g"),mme=RegExp("["+l6+zh+qB+t6+"]"),yme=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,bme=["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"],_me=-1,Tn={};Tn[cn]=Tn[ar]=Tn[vi]=Tn[bl]=Tn[_l]=Tn[wu]=Tn[rf]=Tn[Os]=Tn[of]=!0,Tn[oe]=Tn[de]=Tn[At]=Tn[ue]=Tn[vn]=Tn[ee]=Tn[Y]=Tn[le]=Tn[me]=Tn[Ne]=Tn[Ee]=Tn[De]=Tn[ze]=Tn[lt]=Tn[we]=!1;var wn={};wn[oe]=wn[de]=wn[At]=wn[vn]=wn[ue]=wn[ee]=wn[cn]=wn[ar]=wn[vi]=wn[bl]=wn[_l]=wn[me]=wn[Ne]=wn[Ee]=wn[De]=wn[ze]=wn[lt]=wn[gt]=wn[wu]=wn[rf]=wn[Os]=wn[of]=!0,wn[Y]=wn[le]=wn[we]=!1;var Ome={À:"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"},wme={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},xme={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Sme={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Cme=parseFloat,Tme=parseInt,v6=typeof zl=="object"&&zl&&zl.Object===Object&&zl,Pme=typeof self=="object"&&self&&self.Object===Object&&self,Nr=v6||Pme||Function("return this")(),k2=e&&!e.nodeType&&e,lf=k2&&!0&&t&&!t.nodeType&&t,g6=lf&&lf.exports===k2,N2=g6&&v6.process,zo=function(){try{var ce=lf&&lf.require&&lf.require("util").types;return ce||N2&&N2.binding&&N2.binding("util")}catch{}}(),m6=zo&&zo.isArrayBuffer,y6=zo&&zo.isDate,b6=zo&&zo.isMap,_6=zo&&zo.isRegExp,O6=zo&&zo.isSet,w6=zo&&zo.isTypedArray;function co(ce,Oe,pe){switch(pe.length){case 0:return ce.call(Oe);case 1:return ce.call(Oe,pe[0]);case 2:return ce.call(Oe,pe[0],pe[1]);case 3:return ce.call(Oe,pe[0],pe[1],pe[2])}return ce.apply(Oe,pe)}function $me(ce,Oe,pe,Ze){for(var _t=-1,on=ce==null?0:ce.length;++_t<on;){var pr=ce[_t];Oe(Ze,pr,pe(pr),ce)}return Ze}function Fo(ce,Oe){for(var pe=-1,Ze=ce==null?0:ce.length;++pe<Ze&&Oe(ce[pe],pe,ce)!==!1;);return ce}function Ame(ce,Oe){for(var pe=ce==null?0:ce.length;pe--&&Oe(ce[pe],pe,ce)!==!1;);return ce}function x6(ce,Oe){for(var pe=-1,Ze=ce==null?0:ce.length;++pe<Ze;)if(!Oe(ce[pe],pe,ce))return!1;return!0}function Su(ce,Oe){for(var pe=-1,Ze=ce==null?0:ce.length,_t=0,on=[];++pe<Ze;){var pr=ce[pe];Oe(pr,pe,ce)&&(on[_t++]=pr)}return on}function e1(ce,Oe){var pe=ce==null?0:ce.length;return!!pe&&Wh(ce,Oe,0)>-1}function L2(ce,Oe,pe){for(var Ze=-1,_t=ce==null?0:ce.length;++Ze<_t;)if(pe(Oe,ce[Ze]))return!0;return!1}function Rn(ce,Oe){for(var pe=-1,Ze=ce==null?0:ce.length,_t=Array(Ze);++pe<Ze;)_t[pe]=Oe(ce[pe],pe,ce);return _t}function Cu(ce,Oe){for(var pe=-1,Ze=Oe.length,_t=ce.length;++pe<Ze;)ce[_t+pe]=Oe[pe];return ce}function B2(ce,Oe,pe,Ze){var _t=-1,on=ce==null?0:ce.length;for(Ze&&on&&(pe=ce[++_t]);++_t<on;)pe=Oe(pe,ce[_t],_t,ce);return pe}function Eme(ce,Oe,pe,Ze){var _t=ce==null?0:ce.length;for(Ze&&_t&&(pe=ce[--_t]);_t--;)pe=Oe(pe,ce[_t],_t,ce);return pe}function V2(ce,Oe){for(var pe=-1,Ze=ce==null?0:ce.length;++pe<Ze;)if(Oe(ce[pe],pe,ce))return!0;return!1}var Mme=z2("length");function Ime(ce){return ce.split("")}function Dme(ce){return ce.match(sf)||[]}function S6(ce,Oe,pe){var Ze;return pe(ce,function(_t,on,pr){if(Oe(_t,on,pr))return Ze=on,!1}),Ze}function t1(ce,Oe,pe,Ze){for(var _t=ce.length,on=pe+(Ze?1:-1);Ze?on--:++on<_t;)if(Oe(ce[on],on,ce))return on;return-1}function Wh(ce,Oe,pe){return Oe===Oe?Gme(ce,Oe,pe):t1(ce,C6,pe)}function Rme(ce,Oe,pe,Ze){for(var _t=pe-1,on=ce.length;++_t<on;)if(Ze(ce[_t],Oe))return _t;return-1}function C6(ce){return ce!==ce}function T6(ce,Oe){var pe=ce==null?0:ce.length;return pe?W2(ce,Oe)/pe:j}function z2(ce){return function(Oe){return Oe==null?n:Oe[ce]}}function F2(ce){return function(Oe){return ce==null?n:ce[Oe]}}function P6(ce,Oe,pe,Ze,_t){return _t(ce,function(on,pr,mn){pe=Ze?(Ze=!1,on):Oe(pe,on,pr,mn)}),pe}function kme(ce,Oe){var pe=ce.length;for(ce.sort(Oe);pe--;)ce[pe]=ce[pe].value;return ce}function W2(ce,Oe){for(var pe,Ze=-1,_t=ce.length;++Ze<_t;){var on=Oe(ce[Ze]);on!==n&&(pe=pe===n?on:pe+on)}return pe}function Q2(ce,Oe){for(var pe=-1,Ze=Array(ce);++pe<ce;)Ze[pe]=Oe(pe);return Ze}function Nme(ce,Oe){return Rn(Oe,function(pe){return[pe,ce[pe]]})}function $6(ce){return ce&&ce.slice(0,I6(ce)+1).replace(om,"")}function fo(ce){return function(Oe){return ce(Oe)}}function H2(ce,Oe){return Rn(Oe,function(pe){return ce[pe]})}function um(ce,Oe){return ce.has(Oe)}function A6(ce,Oe){for(var pe=-1,Ze=ce.length;++pe<Ze&&Wh(Oe,ce[pe],0)>-1;);return pe}function E6(ce,Oe){for(var pe=ce.length;pe--&&Wh(Oe,ce[pe],0)>-1;);return pe}function Lme(ce,Oe){for(var pe=ce.length,Ze=0;pe--;)ce[pe]===Oe&&++Ze;return Ze}var Bme=F2(Ome),Vme=F2(wme);function zme(ce){return"\\"+Sme[ce]}function Fme(ce,Oe){return ce==null?n:ce[Oe]}function Qh(ce){return mme.test(ce)}function Wme(ce){return yme.test(ce)}function Qme(ce){for(var Oe,pe=[];!(Oe=ce.next()).done;)pe.push(Oe.value);return pe}function G2(ce){var Oe=-1,pe=Array(ce.size);return ce.forEach(function(Ze,_t){pe[++Oe]=[_t,Ze]}),pe}function M6(ce,Oe){return function(pe){return ce(Oe(pe))}}function Tu(ce,Oe){for(var pe=-1,Ze=ce.length,_t=0,on=[];++pe<Ze;){var pr=ce[pe];(pr===Oe||pr===c)&&(ce[pe]=c,on[_t++]=pe)}return on}function n1(ce){var Oe=-1,pe=Array(ce.size);return ce.forEach(function(Ze){pe[++Oe]=Ze}),pe}function Hme(ce){var Oe=-1,pe=Array(ce.size);return ce.forEach(function(Ze){pe[++Oe]=[Ze,Ze]}),pe}function Gme(ce,Oe,pe){for(var Ze=pe-1,_t=ce.length;++Ze<_t;)if(ce[Ze]===Oe)return Ze;return-1}function jme(ce,Oe,pe){for(var Ze=pe+1;Ze--;)if(ce[Ze]===Oe)return Ze;return Ze}function Hh(ce){return Qh(ce)?Zme(ce):Mme(ce)}function La(ce){return Qh(ce)?Xme(ce):Ime(ce)}function I6(ce){for(var Oe=ce.length;Oe--&&S2.test(ce.charAt(Oe)););return Oe}var Ume=F2(xme);function Zme(ce){for(var Oe=R2.lastIndex=0;R2.test(ce);)++Oe;return Oe}function Xme(ce){return ce.match(R2)||[]}function Yme(ce){return ce.match(gme)||[]}var qme=function ce(Oe){Oe=Oe==null?Nr:Gh.defaults(Nr.Object(),Oe,Gh.pick(Nr,bme));var pe=Oe.Array,Ze=Oe.Date,_t=Oe.Error,on=Oe.Function,pr=Oe.Math,mn=Oe.Object,j2=Oe.RegExp,Kme=Oe.String,Wo=Oe.TypeError,r1=pe.prototype,Jme=on.prototype,jh=mn.prototype,i1=Oe["__core-js_shared__"],o1=Jme.toString,fn=jh.hasOwnProperty,e0e=0,D6=function(){var _=/[^.]+$/.exec(i1&&i1.keys&&i1.keys.IE_PROTO||"");return _?"Symbol(src)_1."+_:""}(),a1=jh.toString,t0e=o1.call(mn),n0e=Nr._,r0e=j2("^"+o1.call(fn).replace(im,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),s1=g6?Oe.Buffer:n,Pu=Oe.Symbol,l1=Oe.Uint8Array,R6=s1?s1.allocUnsafe:n,u1=M6(mn.getPrototypeOf,mn),k6=mn.create,N6=jh.propertyIsEnumerable,c1=r1.splice,L6=Pu?Pu.isConcatSpreadable:n,cm=Pu?Pu.iterator:n,uf=Pu?Pu.toStringTag:n,f1=function(){try{var _=pf(mn,"defineProperty");return _({},"",{}),_}catch{}}(),i0e=Oe.clearTimeout!==Nr.clearTimeout&&Oe.clearTimeout,o0e=Ze&&Ze.now!==Nr.Date.now&&Ze.now,a0e=Oe.setTimeout!==Nr.setTimeout&&Oe.setTimeout,d1=pr.ceil,h1=pr.floor,U2=mn.getOwnPropertySymbols,s0e=s1?s1.isBuffer:n,B6=Oe.isFinite,l0e=r1.join,u0e=M6(mn.keys,mn),vr=pr.max,ei=pr.min,c0e=Ze.now,f0e=Oe.parseInt,V6=pr.random,d0e=r1.reverse,Z2=pf(Oe,"DataView"),fm=pf(Oe,"Map"),X2=pf(Oe,"Promise"),Uh=pf(Oe,"Set"),dm=pf(Oe,"WeakMap"),hm=pf(mn,"create"),p1=dm&&new dm,Zh={},h0e=vf(Z2),p0e=vf(fm),v0e=vf(X2),g0e=vf(Uh),m0e=vf(dm),v1=Pu?Pu.prototype:n,pm=v1?v1.valueOf:n,z6=v1?v1.toString:n;function G(_){if(Hn(_)&&!xt(_)&&!(_ instanceof Ft)){if(_ instanceof Qo)return _;if(fn.call(_,"__wrapped__"))return FV(_)}return new Qo(_)}var Xh=function(){function _(){}return function(C){if(!Vn(C))return{};if(k6)return k6(C);_.prototype=C;var E=new _;return _.prototype=n,E}}();function g1(){}function Qo(_,C){this.__wrapped__=_,this.__actions__=[],this.__chain__=!!C,this.__index__=0,this.__values__=n}G.templateSettings={escape:XB,evaluate:YB,interpolate:Bh,variable:"",imports:{_:G}},G.prototype=g1.prototype,G.prototype.constructor=G,Qo.prototype=Xh(g1.prototype),Qo.prototype.constructor=Qo;function Ft(_){this.__wrapped__=_,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=H,this.__views__=[]}function y0e(){var _=new Ft(this.__wrapped__);return _.__actions__=Vi(this.__actions__),_.__dir__=this.__dir__,_.__filtered__=this.__filtered__,_.__iteratees__=Vi(this.__iteratees__),_.__takeCount__=this.__takeCount__,_.__views__=Vi(this.__views__),_}function b0e(){if(this.__filtered__){var _=new Ft(this);_.__dir__=-1,_.__filtered__=!0}else _=this.clone(),_.__dir__*=-1;return _}function _0e(){var _=this.__wrapped__.value(),C=this.__dir__,E=xt(_),N=C<0,Q=E?_.length:0,U=Iye(0,Q,this.__views__),q=U.start,te=U.end,fe=te-q,xe=N?te:q-1,Ce=this.__iteratees__,Ae=Ce.length,We=0,et=ei(fe,this.__takeCount__);if(!E||!N&&Q==fe&&et==fe)return cV(_,this.__actions__);var dt=[];e:for(;fe--&&We<et;){xe+=C;for(var Dt=-1,ht=_[xe];++Dt<Ae;){var Vt=Ce[Dt],jt=Vt.iteratee,vo=Vt.type,yi=jt(ht);if(vo==D)ht=yi;else if(!yi){if(vo==L)continue e;break e}}dt[We++]=ht}return dt}Ft.prototype=Xh(g1.prototype),Ft.prototype.constructor=Ft;function cf(_){var C=-1,E=_==null?0:_.length;for(this.clear();++C<E;){var N=_[C];this.set(N[0],N[1])}}function O0e(){this.__data__=hm?hm(null):{},this.size=0}function w0e(_){var C=this.has(_)&&delete this.__data__[_];return this.size-=C?1:0,C}function x0e(_){var C=this.__data__;if(hm){var E=C[_];return E===l?n:E}return fn.call(C,_)?C[_]:n}function S0e(_){var C=this.__data__;return hm?C[_]!==n:fn.call(C,_)}function C0e(_,C){var E=this.__data__;return this.size+=this.has(_)?0:1,E[_]=hm&&C===n?l:C,this}cf.prototype.clear=O0e,cf.prototype.delete=w0e,cf.prototype.get=x0e,cf.prototype.has=S0e,cf.prototype.set=C0e;function Ol(_){var C=-1,E=_==null?0:_.length;for(this.clear();++C<E;){var N=_[C];this.set(N[0],N[1])}}function T0e(){this.__data__=[],this.size=0}function P0e(_){var C=this.__data__,E=m1(C,_);if(E<0)return!1;var N=C.length-1;return E==N?C.pop():c1.call(C,E,1),--this.size,!0}function $0e(_){var C=this.__data__,E=m1(C,_);return E<0?n:C[E][1]}function A0e(_){return m1(this.__data__,_)>-1}function E0e(_,C){var E=this.__data__,N=m1(E,_);return N<0?(++this.size,E.push([_,C])):E[N][1]=C,this}Ol.prototype.clear=T0e,Ol.prototype.delete=P0e,Ol.prototype.get=$0e,Ol.prototype.has=A0e,Ol.prototype.set=E0e;function wl(_){var C=-1,E=_==null?0:_.length;for(this.clear();++C<E;){var N=_[C];this.set(N[0],N[1])}}function M0e(){this.size=0,this.__data__={hash:new cf,map:new(fm||Ol),string:new cf}}function I0e(_){var C=A1(this,_).delete(_);return this.size-=C?1:0,C}function D0e(_){return A1(this,_).get(_)}function R0e(_){return A1(this,_).has(_)}function k0e(_,C){var E=A1(this,_),N=E.size;return E.set(_,C),this.size+=E.size==N?0:1,this}wl.prototype.clear=M0e,wl.prototype.delete=I0e,wl.prototype.get=D0e,wl.prototype.has=R0e,wl.prototype.set=k0e;function ff(_){var C=-1,E=_==null?0:_.length;for(this.__data__=new wl;++C<E;)this.add(_[C])}function N0e(_){return this.__data__.set(_,l),this}function L0e(_){return this.__data__.has(_)}ff.prototype.add=ff.prototype.push=N0e,ff.prototype.has=L0e;function Ba(_){var C=this.__data__=new Ol(_);this.size=C.size}function B0e(){this.__data__=new Ol,this.size=0}function V0e(_){var C=this.__data__,E=C.delete(_);return this.size=C.size,E}function z0e(_){return this.__data__.get(_)}function F0e(_){return this.__data__.has(_)}function W0e(_,C){var E=this.__data__;if(E instanceof Ol){var N=E.__data__;if(!fm||N.length<i-1)return N.push([_,C]),this.size=++E.size,this;E=this.__data__=new wl(N)}return E.set(_,C),this.size=E.size,this}Ba.prototype.clear=B0e,Ba.prototype.delete=V0e,Ba.prototype.get=z0e,Ba.prototype.has=F0e,Ba.prototype.set=W0e;function F6(_,C){var E=xt(_),N=!E&&gf(_),Q=!E&&!N&&Iu(_),U=!E&&!N&&!Q&&Jh(_),q=E||N||Q||U,te=q?Q2(_.length,Kme):[],fe=te.length;for(var xe in _)(C||fn.call(_,xe))&&!(q&&(xe=="length"||Q&&(xe=="offset"||xe=="parent")||U&&(xe=="buffer"||xe=="byteLength"||xe=="byteOffset")||Tl(xe,fe)))&&te.push(xe);return te}function W6(_){var C=_.length;return C?_[a$(0,C-1)]:n}function Q0e(_,C){return E1(Vi(_),df(C,0,_.length))}function H0e(_){return E1(Vi(_))}function Y2(_,C,E){(E!==n&&!Va(_[C],E)||E===n&&!(C in _))&&xl(_,C,E)}function vm(_,C,E){var N=_[C];(!(fn.call(_,C)&&Va(N,E))||E===n&&!(C in _))&&xl(_,C,E)}function m1(_,C){for(var E=_.length;E--;)if(Va(_[E][0],C))return E;return-1}function G0e(_,C,E,N){return $u(_,function(Q,U,q){C(N,Q,E(Q),q)}),N}function Q6(_,C){return _&&xs(C,$r(C),_)}function j0e(_,C){return _&&xs(C,Fi(C),_)}function xl(_,C,E){C=="__proto__"&&f1?f1(_,C,{configurable:!0,enumerable:!0,value:E,writable:!0}):_[C]=E}function q2(_,C){for(var E=-1,N=C.length,Q=pe(N),U=_==null;++E<N;)Q[E]=U?n:M$(_,C[E]);return Q}function df(_,C,E){return _===_&&(E!==n&&(_=_<=E?_:E),C!==n&&(_=_>=C?_:C)),_}function Ho(_,C,E,N,Q,U){var q,te=C&f,fe=C&d,xe=C&p;if(E&&(q=Q?E(_,N,Q,U):E(_)),q!==n)return q;if(!Vn(_))return _;var Ce=xt(_);if(Ce){if(q=Rye(_),!te)return Vi(_,q)}else{var Ae=ti(_),We=Ae==le||Ae==ge;if(Iu(_))return hV(_,te);if(Ae==Ee||Ae==oe||We&&!Q){if(q=fe||We?{}:IV(_),!te)return fe?xye(_,j0e(q,_)):wye(_,Q6(q,_))}else{if(!wn[Ae])return Q?_:{};q=kye(_,Ae,te)}}U||(U=new Ba);var et=U.get(_);if(et)return et;U.set(_,q),sz(_)?_.forEach(function(ht){q.add(Ho(ht,C,E,ht,_,U))}):oz(_)&&_.forEach(function(ht,Vt){q.set(Vt,Ho(ht,C,E,Vt,_,U))});var dt=xe?fe?m$:g$:fe?Fi:$r,Dt=Ce?n:dt(_);return Fo(Dt||_,function(ht,Vt){Dt&&(Vt=ht,ht=_[Vt]),vm(q,Vt,Ho(ht,C,E,Vt,_,U))}),q}function U0e(_){var C=$r(_);return function(E){return H6(E,_,C)}}function H6(_,C,E){var N=E.length;if(_==null)return!N;for(_=mn(_);N--;){var Q=E[N],U=C[Q],q=_[Q];if(q===n&&!(Q in _)||!U(q))return!1}return!0}function G6(_,C,E){if(typeof _!="function")throw new Wo(a);return wm(function(){_.apply(n,E)},C)}function gm(_,C,E,N){var Q=-1,U=e1,q=!0,te=_.length,fe=[],xe=C.length;if(!te)return fe;E&&(C=Rn(C,fo(E))),N?(U=L2,q=!1):C.length>=i&&(U=um,q=!1,C=new ff(C));e:for(;++Q<te;){var Ce=_[Q],Ae=E==null?Ce:E(Ce);if(Ce=N||Ce!==0?Ce:0,q&&Ae===Ae){for(var We=xe;We--;)if(C[We]===Ae)continue e;fe.push(Ce)}else U(C,Ae,N)||fe.push(Ce)}return fe}var $u=yV(ws),j6=yV(J2,!0);function Z0e(_,C){var E=!0;return $u(_,function(N,Q,U){return E=!!C(N,Q,U),E}),E}function y1(_,C,E){for(var N=-1,Q=_.length;++N<Q;){var U=_[N],q=C(U);if(q!=null&&(te===n?q===q&&!po(q):E(q,te)))var te=q,fe=U}return fe}function X0e(_,C,E,N){var Q=_.length;for(E=Et(E),E<0&&(E=-E>Q?0:Q+E),N=N===n||N>Q?Q:Et(N),N<0&&(N+=Q),N=E>N?0:uz(N);E<N;)_[E++]=C;return _}function U6(_,C){var E=[];return $u(_,function(N,Q,U){C(N,Q,U)&&E.push(N)}),E}function Lr(_,C,E,N,Q){var U=-1,q=_.length;for(E||(E=Lye),Q||(Q=[]);++U<q;){var te=_[U];C>0&&E(te)?C>1?Lr(te,C-1,E,N,Q):Cu(Q,te):N||(Q[Q.length]=te)}return Q}var K2=bV(),Z6=bV(!0);function ws(_,C){return _&&K2(_,C,$r)}function J2(_,C){return _&&Z6(_,C,$r)}function b1(_,C){return Su(C,function(E){return Pl(_[E])})}function hf(_,C){C=Eu(C,_);for(var E=0,N=C.length;_!=null&&E<N;)_=_[Ss(C[E++])];return E&&E==N?_:n}function X6(_,C,E){var N=C(_);return xt(_)?N:Cu(N,E(_))}function gi(_){return _==null?_===n?Bt:Le:uf&&uf in mn(_)?Mye(_):Hye(_)}function e$(_,C){return _>C}function Y0e(_,C){return _!=null&&fn.call(_,C)}function q0e(_,C){return _!=null&&C in mn(_)}function K0e(_,C,E){return _>=ei(C,E)&&_<vr(C,E)}function t$(_,C,E){for(var N=E?L2:e1,Q=_[0].length,U=_.length,q=U,te=pe(U),fe=1/0,xe=[];q--;){var Ce=_[q];q&&C&&(Ce=Rn(Ce,fo(C))),fe=ei(Ce.length,fe),te[q]=!E&&(C||Q>=120&&Ce.length>=120)?new ff(q&&Ce):n}Ce=_[0];var Ae=-1,We=te[0];e:for(;++Ae<Q&&xe.length<fe;){var et=Ce[Ae],dt=C?C(et):et;if(et=E||et!==0?et:0,!(We?um(We,dt):N(xe,dt,E))){for(q=U;--q;){var Dt=te[q];if(!(Dt?um(Dt,dt):N(_[q],dt,E)))continue e}We&&We.push(dt),xe.push(et)}}return xe}function J0e(_,C,E,N){return ws(_,function(Q,U,q){C(N,E(Q),U,q)}),N}function mm(_,C,E){C=Eu(C,_),_=NV(_,C);var N=_==null?_:_[Ss(jo(C))];return N==null?n:co(N,_,E)}function Y6(_){return Hn(_)&&gi(_)==oe}function eye(_){return Hn(_)&&gi(_)==At}function tye(_){return Hn(_)&&gi(_)==ee}function ym(_,C,E,N,Q){return _===C?!0:_==null||C==null||!Hn(_)&&!Hn(C)?_!==_&&C!==C:nye(_,C,E,N,ym,Q)}function nye(_,C,E,N,Q,U){var q=xt(_),te=xt(C),fe=q?de:ti(_),xe=te?de:ti(C);fe=fe==oe?Ee:fe,xe=xe==oe?Ee:xe;var Ce=fe==Ee,Ae=xe==Ee,We=fe==xe;if(We&&Iu(_)){if(!Iu(C))return!1;q=!0,Ce=!1}if(We&&!Ce)return U||(U=new Ba),q||Jh(_)?AV(_,C,E,N,Q,U):Aye(_,C,fe,E,N,Q,U);if(!(E&v)){var et=Ce&&fn.call(_,"__wrapped__"),dt=Ae&&fn.call(C,"__wrapped__");if(et||dt){var Dt=et?_.value():_,ht=dt?C.value():C;return U||(U=new Ba),Q(Dt,ht,E,N,U)}}return We?(U||(U=new Ba),Eye(_,C,E,N,Q,U)):!1}function rye(_){return Hn(_)&&ti(_)==me}function n$(_,C,E,N){var Q=E.length,U=Q,q=!N;if(_==null)return!U;for(_=mn(_);Q--;){var te=E[Q];if(q&&te[2]?te[1]!==_[te[0]]:!(te[0]in _))return!1}for(;++Q<U;){te=E[Q];var fe=te[0],xe=_[fe],Ce=te[1];if(q&&te[2]){if(xe===n&&!(fe in _))return!1}else{var Ae=new Ba;if(N)var We=N(xe,Ce,fe,_,C,Ae);if(!(We===n?ym(Ce,xe,v|g,N,Ae):We))return!1}}return!0}function q6(_){if(!Vn(_)||Vye(_))return!1;var C=Pl(_)?r0e:$2;return C.test(vf(_))}function iye(_){return Hn(_)&&gi(_)==De}function oye(_){return Hn(_)&&ti(_)==ze}function aye(_){return Hn(_)&&N1(_.length)&&!!Tn[gi(_)]}function K6(_){return typeof _=="function"?_:_==null?Wi:typeof _=="object"?xt(_)?tV(_[0],_[1]):eV(_):_z(_)}function r$(_){if(!Om(_))return u0e(_);var C=[];for(var E in mn(_))fn.call(_,E)&&E!="constructor"&&C.push(E);return C}function sye(_){if(!Vn(_))return Qye(_);var C=Om(_),E=[];for(var N in _)N=="constructor"&&(C||!fn.call(_,N))||E.push(N);return E}function i$(_,C){return _<C}function J6(_,C){var E=-1,N=zi(_)?pe(_.length):[];return $u(_,function(Q,U,q){N[++E]=C(Q,U,q)}),N}function eV(_){var C=b$(_);return C.length==1&&C[0][2]?RV(C[0][0],C[0][1]):function(E){return E===_||n$(E,_,C)}}function tV(_,C){return O$(_)&&DV(C)?RV(Ss(_),C):function(E){var N=M$(E,_);return N===n&&N===C?I$(E,_):ym(C,N,v|g)}}function _1(_,C,E,N,Q){_!==C&&K2(C,function(U,q){if(Q||(Q=new Ba),Vn(U))lye(_,C,q,E,_1,N,Q);else{var te=N?N(x$(_,q),U,q+"",_,C,Q):n;te===n&&(te=U),Y2(_,q,te)}},Fi)}function lye(_,C,E,N,Q,U,q){var te=x$(_,E),fe=x$(C,E),xe=q.get(fe);if(xe){Y2(_,E,xe);return}var Ce=U?U(te,fe,E+"",_,C,q):n,Ae=Ce===n;if(Ae){var We=xt(fe),et=!We&&Iu(fe),dt=!We&&!et&&Jh(fe);Ce=fe,We||et||dt?xt(te)?Ce=te:qn(te)?Ce=Vi(te):et?(Ae=!1,Ce=hV(fe,!0)):dt?(Ae=!1,Ce=pV(fe,!0)):Ce=[]:xm(fe)||gf(fe)?(Ce=te,gf(te)?Ce=cz(te):(!Vn(te)||Pl(te))&&(Ce=IV(fe))):Ae=!1}Ae&&(q.set(fe,Ce),Q(Ce,fe,N,U,q),q.delete(fe)),Y2(_,E,Ce)}function nV(_,C){var E=_.length;if(E)return C+=C<0?E:0,Tl(C,E)?_[C]:n}function rV(_,C,E){C.length?C=Rn(C,function(U){return xt(U)?function(q){return hf(q,U.length===1?U[0]:U)}:U}):C=[Wi];var N=-1;C=Rn(C,fo(ut()));var Q=J6(_,function(U,q,te){var fe=Rn(C,function(xe){return xe(U)});return{criteria:fe,index:++N,value:U}});return kme(Q,function(U,q){return Oye(U,q,E)})}function uye(_,C){return iV(_,C,function(E,N){return I$(_,N)})}function iV(_,C,E){for(var N=-1,Q=C.length,U={};++N<Q;){var q=C[N],te=hf(_,q);E(te,q)&&bm(U,Eu(q,_),te)}return U}function cye(_){return function(C){return hf(C,_)}}function o$(_,C,E,N){var Q=N?Rme:Wh,U=-1,q=C.length,te=_;for(_===C&&(C=Vi(C)),E&&(te=Rn(_,fo(E)));++U<q;)for(var fe=0,xe=C[U],Ce=E?E(xe):xe;(fe=Q(te,Ce,fe,N))>-1;)te!==_&&c1.call(te,fe,1),c1.call(_,fe,1);return _}function oV(_,C){for(var E=_?C.length:0,N=E-1;E--;){var Q=C[E];if(E==N||Q!==U){var U=Q;Tl(Q)?c1.call(_,Q,1):u$(_,Q)}}return _}function a$(_,C){return _+h1(V6()*(C-_+1))}function fye(_,C,E,N){for(var Q=-1,U=vr(d1((C-_)/(E||1)),0),q=pe(U);U--;)q[N?U:++Q]=_,_+=E;return q}function s$(_,C){var E="";if(!_||C<1||C>z)return E;do C%2&&(E+=_),C=h1(C/2),C&&(_+=_);while(C);return E}function Nt(_,C){return S$(kV(_,C,Wi),_+"")}function dye(_){return W6(ep(_))}function hye(_,C){var E=ep(_);return E1(E,df(C,0,E.length))}function bm(_,C,E,N){if(!Vn(_))return _;C=Eu(C,_);for(var Q=-1,U=C.length,q=U-1,te=_;te!=null&&++Q<U;){var fe=Ss(C[Q]),xe=E;if(fe==="__proto__"||fe==="constructor"||fe==="prototype")return _;if(Q!=q){var Ce=te[fe];xe=N?N(Ce,fe,te):n,xe===n&&(xe=Vn(Ce)?Ce:Tl(C[Q+1])?[]:{})}vm(te,fe,xe),te=te[fe]}return _}var aV=p1?function(_,C){return p1.set(_,C),_}:Wi,pye=f1?function(_,C){return f1(_,"toString",{configurable:!0,enumerable:!1,value:R$(C),writable:!0})}:Wi;function vye(_){return E1(ep(_))}function Go(_,C,E){var N=-1,Q=_.length;C<0&&(C=-C>Q?0:Q+C),E=E>Q?Q:E,E<0&&(E+=Q),Q=C>E?0:E-C>>>0,C>>>=0;for(var U=pe(Q);++N<Q;)U[N]=_[N+C];return U}function gye(_,C){var E;return $u(_,function(N,Q,U){return E=C(N,Q,U),!E}),!!E}function O1(_,C,E){var N=0,Q=_==null?N:_.length;if(typeof C=="number"&&C===C&&Q<=J){for(;N<Q;){var U=N+Q>>>1,q=_[U];q!==null&&!po(q)&&(E?q<=C:q<C)?N=U+1:Q=U}return Q}return l$(_,C,Wi,E)}function l$(_,C,E,N){var Q=0,U=_==null?0:_.length;if(U===0)return 0;C=E(C);for(var q=C!==C,te=C===null,fe=po(C),xe=C===n;Q<U;){var Ce=h1((Q+U)/2),Ae=E(_[Ce]),We=Ae!==n,et=Ae===null,dt=Ae===Ae,Dt=po(Ae);if(q)var ht=N||dt;else xe?ht=dt&&(N||We):te?ht=dt&&We&&(N||!et):fe?ht=dt&&We&&!et&&(N||!Dt):et||Dt?ht=!1:ht=N?Ae<=C:Ae<C;ht?Q=Ce+1:U=Ce}return ei(U,Z)}function sV(_,C){for(var E=-1,N=_.length,Q=0,U=[];++E<N;){var q=_[E],te=C?C(q):q;if(!E||!Va(te,fe)){var fe=te;U[Q++]=q===0?0:q}}return U}function lV(_){return typeof _=="number"?_:po(_)?j:+_}function ho(_){if(typeof _=="string")return _;if(xt(_))return Rn(_,ho)+"";if(po(_))return z6?z6.call(_):"";var C=_+"";return C=="0"&&1/_==-F?"-0":C}function Au(_,C,E){var N=-1,Q=e1,U=_.length,q=!0,te=[],fe=te;if(E)q=!1,Q=L2;else if(U>=i){var xe=C?null:Pye(_);if(xe)return n1(xe);q=!1,Q=um,fe=new ff}else fe=C?[]:te;e:for(;++N<U;){var Ce=_[N],Ae=C?C(Ce):Ce;if(Ce=E||Ce!==0?Ce:0,q&&Ae===Ae){for(var We=fe.length;We--;)if(fe[We]===Ae)continue e;C&&fe.push(Ae),te.push(Ce)}else Q(fe,Ae,E)||(fe!==te&&fe.push(Ae),te.push(Ce))}return te}function u$(_,C){return C=Eu(C,_),_=NV(_,C),_==null||delete _[Ss(jo(C))]}function uV(_,C,E,N){return bm(_,C,E(hf(_,C)),N)}function w1(_,C,E,N){for(var Q=_.length,U=N?Q:-1;(N?U--:++U<Q)&&C(_[U],U,_););return E?Go(_,N?0:U,N?U+1:Q):Go(_,N?U+1:0,N?Q:U)}function cV(_,C){var E=_;return E instanceof Ft&&(E=E.value()),B2(C,function(N,Q){return Q.func.apply(Q.thisArg,Cu([N],Q.args))},E)}function c$(_,C,E){var N=_.length;if(N<2)return N?Au(_[0]):[];for(var Q=-1,U=pe(N);++Q<N;)for(var q=_[Q],te=-1;++te<N;)te!=Q&&(U[Q]=gm(U[Q]||q,_[te],C,E));return Au(Lr(U,1),C,E)}function fV(_,C,E){for(var N=-1,Q=_.length,U=C.length,q={};++N<Q;){var te=N<U?C[N]:n;E(q,_[N],te)}return q}function f$(_){return qn(_)?_:[]}function d$(_){return typeof _=="function"?_:Wi}function Eu(_,C){return xt(_)?_:O$(_,C)?[_]:zV(sn(_))}var mye=Nt;function Mu(_,C,E){var N=_.length;return E=E===n?N:E,!C&&E>=N?_:Go(_,C,E)}var dV=i0e||function(_){return Nr.clearTimeout(_)};function hV(_,C){if(C)return _.slice();var E=_.length,N=R6?R6(E):new _.constructor(E);return _.copy(N),N}function h$(_){var C=new _.constructor(_.byteLength);return new l1(C).set(new l1(_)),C}function yye(_,C){var E=C?h$(_.buffer):_.buffer;return new _.constructor(E,_.byteOffset,_.byteLength)}function bye(_){var C=new _.constructor(_.source,sm.exec(_));return C.lastIndex=_.lastIndex,C}function _ye(_){return pm?mn(pm.call(_)):{}}function pV(_,C){var E=C?h$(_.buffer):_.buffer;return new _.constructor(E,_.byteOffset,_.length)}function vV(_,C){if(_!==C){var E=_!==n,N=_===null,Q=_===_,U=po(_),q=C!==n,te=C===null,fe=C===C,xe=po(C);if(!te&&!xe&&!U&&_>C||U&&q&&fe&&!te&&!xe||N&&q&&fe||!E&&fe||!Q)return 1;if(!N&&!U&&!xe&&_<C||xe&&E&&Q&&!N&&!U||te&&E&&Q||!q&&Q||!fe)return-1}return 0}function Oye(_,C,E){for(var N=-1,Q=_.criteria,U=C.criteria,q=Q.length,te=E.length;++N<q;){var fe=vV(Q[N],U[N]);if(fe){if(N>=te)return fe;var xe=E[N];return fe*(xe=="desc"?-1:1)}}return _.index-C.index}function gV(_,C,E,N){for(var Q=-1,U=_.length,q=E.length,te=-1,fe=C.length,xe=vr(U-q,0),Ce=pe(fe+xe),Ae=!N;++te<fe;)Ce[te]=C[te];for(;++Q<q;)(Ae||Q<U)&&(Ce[E[Q]]=_[Q]);for(;xe--;)Ce[te++]=_[Q++];return Ce}function mV(_,C,E,N){for(var Q=-1,U=_.length,q=-1,te=E.length,fe=-1,xe=C.length,Ce=vr(U-te,0),Ae=pe(Ce+xe),We=!N;++Q<Ce;)Ae[Q]=_[Q];for(var et=Q;++fe<xe;)Ae[et+fe]=C[fe];for(;++q<te;)(We||Q<U)&&(Ae[et+E[q]]=_[Q++]);return Ae}function Vi(_,C){var E=-1,N=_.length;for(C||(C=pe(N));++E<N;)C[E]=_[E];return C}function xs(_,C,E,N){var Q=!E;E||(E={});for(var U=-1,q=C.length;++U<q;){var te=C[U],fe=N?N(E[te],_[te],te,E,_):n;fe===n&&(fe=_[te]),Q?xl(E,te,fe):vm(E,te,fe)}return E}function wye(_,C){return xs(_,_$(_),C)}function xye(_,C){return xs(_,EV(_),C)}function x1(_,C){return function(E,N){var Q=xt(E)?$me:G0e,U=C?C():{};return Q(E,_,ut(N,2),U)}}function Yh(_){return Nt(function(C,E){var N=-1,Q=E.length,U=Q>1?E[Q-1]:n,q=Q>2?E[2]:n;for(U=_.length>3&&typeof U=="function"?(Q--,U):n,q&&mi(E[0],E[1],q)&&(U=Q<3?n:U,Q=1),C=mn(C);++N<Q;){var te=E[N];te&&_(C,te,N,U)}return C})}function yV(_,C){return function(E,N){if(E==null)return E;if(!zi(E))return _(E,N);for(var Q=E.length,U=C?Q:-1,q=mn(E);(C?U--:++U<Q)&&N(q[U],U,q)!==!1;);return E}}function bV(_){return function(C,E,N){for(var Q=-1,U=mn(C),q=N(C),te=q.length;te--;){var fe=q[_?te:++Q];if(E(U[fe],fe,U)===!1)break}return C}}function Sye(_,C,E){var N=C&m,Q=_m(_);function U(){var q=this&&this!==Nr&&this instanceof U?Q:_;return q.apply(N?E:this,arguments)}return U}function _V(_){return function(C){C=sn(C);var E=Qh(C)?La(C):n,N=E?E[0]:C.charAt(0),Q=E?Mu(E,1).join(""):C.slice(1);return N[_]()+Q}}function qh(_){return function(C){return B2(yz(mz(C).replace(pme,"")),_,"")}}function _m(_){return function(){var C=arguments;switch(C.length){case 0:return new _;case 1:return new _(C[0]);case 2:return new _(C[0],C[1]);case 3:return new _(C[0],C[1],C[2]);case 4:return new _(C[0],C[1],C[2],C[3]);case 5:return new _(C[0],C[1],C[2],C[3],C[4]);case 6:return new _(C[0],C[1],C[2],C[3],C[4],C[5]);case 7:return new _(C[0],C[1],C[2],C[3],C[4],C[5],C[6])}var E=Xh(_.prototype),N=_.apply(E,C);return Vn(N)?N:E}}function Cye(_,C,E){var N=_m(_);function Q(){for(var U=arguments.length,q=pe(U),te=U,fe=Kh(Q);te--;)q[te]=arguments[te];var xe=U<3&&q[0]!==fe&&q[U-1]!==fe?[]:Tu(q,fe);if(U-=xe.length,U<E)return CV(_,C,S1,Q.placeholder,n,q,xe,n,n,E-U);var Ce=this&&this!==Nr&&this instanceof Q?N:_;return co(Ce,this,q)}return Q}function OV(_){return function(C,E,N){var Q=mn(C);if(!zi(C)){var U=ut(E,3);C=$r(C),E=function(te){return U(Q[te],te,Q)}}var q=_(C,E,N);return q>-1?Q[U?C[q]:q]:n}}function wV(_){return Cl(function(C){var E=C.length,N=E,Q=Qo.prototype.thru;for(_&&C.reverse();N--;){var U=C[N];if(typeof U!="function")throw new Wo(a);if(Q&&!q&&$1(U)=="wrapper")var q=new Qo([],!0)}for(N=q?N:E;++N<E;){U=C[N];var te=$1(U),fe=te=="wrapper"?y$(U):n;fe&&w$(fe[0])&&fe[1]==(T|O|x|$)&&!fe[4].length&&fe[9]==1?q=q[$1(fe[0])].apply(q,fe[3]):q=U.length==1&&w$(U)?q[te]():q.thru(U)}return function(){var xe=arguments,Ce=xe[0];if(q&&xe.length==1&&xt(Ce))return q.plant(Ce).value();for(var Ae=0,We=E?C[Ae].apply(this,xe):Ce;++Ae<E;)We=C[Ae].call(this,We);return We}})}function S1(_,C,E,N,Q,U,q,te,fe,xe){var Ce=C&T,Ae=C&m,We=C&y,et=C&(O|w),dt=C&A,Dt=We?n:_m(_);function ht(){for(var Vt=arguments.length,jt=pe(Vt),vo=Vt;vo--;)jt[vo]=arguments[vo];if(et)var yi=Kh(ht),go=Lme(jt,yi);if(N&&(jt=gV(jt,N,Q,et)),U&&(jt=mV(jt,U,q,et)),Vt-=go,et&&Vt<xe){var Kn=Tu(jt,yi);return CV(_,C,S1,ht.placeholder,E,jt,Kn,te,fe,xe-Vt)}var za=Ae?E:this,Al=We?za[_]:_;return Vt=jt.length,te?jt=Gye(jt,te):dt&&Vt>1&&jt.reverse(),Ce&&fe<Vt&&(jt.length=fe),this&&this!==Nr&&this instanceof ht&&(Al=Dt||_m(Al)),Al.apply(za,jt)}return ht}function xV(_,C){return function(E,N){return J0e(E,_,C(N),{})}}function C1(_,C){return function(E,N){var Q;if(E===n&&N===n)return C;if(E!==n&&(Q=E),N!==n){if(Q===n)return N;typeof E=="string"||typeof N=="string"?(E=ho(E),N=ho(N)):(E=lV(E),N=lV(N)),Q=_(E,N)}return Q}}function p$(_){return Cl(function(C){return C=Rn(C,fo(ut())),Nt(function(E){var N=this;return _(C,function(Q){return co(Q,N,E)})})})}function T1(_,C){C=C===n?" ":ho(C);var E=C.length;if(E<2)return E?s$(C,_):C;var N=s$(C,d1(_/Hh(C)));return Qh(C)?Mu(La(N),0,_).join(""):N.slice(0,_)}function Tye(_,C,E,N){var Q=C&m,U=_m(_);function q(){for(var te=-1,fe=arguments.length,xe=-1,Ce=N.length,Ae=pe(Ce+fe),We=this&&this!==Nr&&this instanceof q?U:_;++xe<Ce;)Ae[xe]=N[xe];for(;fe--;)Ae[xe++]=arguments[++te];return co(We,Q?E:this,Ae)}return q}function SV(_){return function(C,E,N){return N&&typeof N!="number"&&mi(C,E,N)&&(E=N=n),C=$l(C),E===n?(E=C,C=0):E=$l(E),N=N===n?C<E?1:-1:$l(N),fye(C,E,N,_)}}function P1(_){return function(C,E){return typeof C=="string"&&typeof E=="string"||(C=Uo(C),E=Uo(E)),_(C,E)}}function CV(_,C,E,N,Q,U,q,te,fe,xe){var Ce=C&O,Ae=Ce?q:n,We=Ce?n:q,et=Ce?U:n,dt=Ce?n:U;C|=Ce?x:S,C&=~(Ce?S:x),C&b||(C&=~(m|y));var Dt=[_,C,Q,et,Ae,dt,We,te,fe,xe],ht=E.apply(n,Dt);return w$(_)&&LV(ht,Dt),ht.placeholder=N,BV(ht,_,C)}function v$(_){var C=pr[_];return function(E,N){if(E=Uo(E),N=N==null?0:ei(Et(N),292),N&&B6(E)){var Q=(sn(E)+"e").split("e"),U=C(Q[0]+"e"+(+Q[1]+N));return Q=(sn(U)+"e").split("e"),+(Q[0]+"e"+(+Q[1]-N))}return C(E)}}var Pye=Uh&&1/n1(new Uh([,-0]))[1]==F?function(_){return new Uh(_)}:L$;function TV(_){return function(C){var E=ti(C);return E==me?G2(C):E==ze?Hme(C):Nme(C,_(C))}}function Sl(_,C,E,N,Q,U,q,te){var fe=C&y;if(!fe&&typeof _!="function")throw new Wo(a);var xe=N?N.length:0;if(xe||(C&=~(x|S),N=Q=n),q=q===n?q:vr(Et(q),0),te=te===n?te:Et(te),xe-=Q?Q.length:0,C&S){var Ce=N,Ae=Q;N=Q=n}var We=fe?n:y$(_),et=[_,C,E,N,Q,Ce,Ae,U,q,te];if(We&&Wye(et,We),_=et[0],C=et[1],E=et[2],N=et[3],Q=et[4],te=et[9]=et[9]===n?fe?0:_.length:vr(et[9]-xe,0),!te&&C&(O|w)&&(C&=~(O|w)),!C||C==m)var dt=Sye(_,C,E);else C==O||C==w?dt=Cye(_,C,te):(C==x||C==(m|x))&&!Q.length?dt=Tye(_,C,E,N):dt=S1.apply(n,et);var Dt=We?aV:LV;return BV(Dt(dt,et),_,C)}function PV(_,C,E,N){return _===n||Va(_,jh[E])&&!fn.call(N,E)?C:_}function $V(_,C,E,N,Q,U){return Vn(_)&&Vn(C)&&(U.set(C,_),_1(_,C,n,$V,U),U.delete(C)),_}function $ye(_){return xm(_)?n:_}function AV(_,C,E,N,Q,U){var q=E&v,te=_.length,fe=C.length;if(te!=fe&&!(q&&fe>te))return!1;var xe=U.get(_),Ce=U.get(C);if(xe&&Ce)return xe==C&&Ce==_;var Ae=-1,We=!0,et=E&g?new ff:n;for(U.set(_,C),U.set(C,_);++Ae<te;){var dt=_[Ae],Dt=C[Ae];if(N)var ht=q?N(Dt,dt,Ae,C,_,U):N(dt,Dt,Ae,_,C,U);if(ht!==n){if(ht)continue;We=!1;break}if(et){if(!V2(C,function(Vt,jt){if(!um(et,jt)&&(dt===Vt||Q(dt,Vt,E,N,U)))return et.push(jt)})){We=!1;break}}else if(!(dt===Dt||Q(dt,Dt,E,N,U))){We=!1;break}}return U.delete(_),U.delete(C),We}function Aye(_,C,E,N,Q,U,q){switch(E){case vn:if(_.byteLength!=C.byteLength||_.byteOffset!=C.byteOffset)return!1;_=_.buffer,C=C.buffer;case At:return!(_.byteLength!=C.byteLength||!U(new l1(_),new l1(C)));case ue:case ee:case Ne:return Va(+_,+C);case Y:return _.name==C.name&&_.message==C.message;case De:case lt:return _==C+"";case me:var te=G2;case ze:var fe=N&v;if(te||(te=n1),_.size!=C.size&&!fe)return!1;var xe=q.get(_);if(xe)return xe==C;N|=g,q.set(_,C);var Ce=AV(te(_),te(C),N,Q,U,q);return q.delete(_),Ce;case gt:if(pm)return pm.call(_)==pm.call(C)}return!1}function Eye(_,C,E,N,Q,U){var q=E&v,te=g$(_),fe=te.length,xe=g$(C),Ce=xe.length;if(fe!=Ce&&!q)return!1;for(var Ae=fe;Ae--;){var We=te[Ae];if(!(q?We in C:fn.call(C,We)))return!1}var et=U.get(_),dt=U.get(C);if(et&&dt)return et==C&&dt==_;var Dt=!0;U.set(_,C),U.set(C,_);for(var ht=q;++Ae<fe;){We=te[Ae];var Vt=_[We],jt=C[We];if(N)var vo=q?N(jt,Vt,We,C,_,U):N(Vt,jt,We,_,C,U);if(!(vo===n?Vt===jt||Q(Vt,jt,E,N,U):vo)){Dt=!1;break}ht||(ht=We=="constructor")}if(Dt&&!ht){var yi=_.constructor,go=C.constructor;yi!=go&&"constructor"in _&&"constructor"in C&&!(typeof yi=="function"&&yi instanceof yi&&typeof go=="function"&&go instanceof go)&&(Dt=!1)}return U.delete(_),U.delete(C),Dt}function Cl(_){return S$(kV(_,n,HV),_+"")}function g$(_){return X6(_,$r,_$)}function m$(_){return X6(_,Fi,EV)}var y$=p1?function(_){return p1.get(_)}:L$;function $1(_){for(var C=_.name+"",E=Zh[C],N=fn.call(Zh,C)?E.length:0;N--;){var Q=E[N],U=Q.func;if(U==null||U==_)return Q.name}return C}function Kh(_){var C=fn.call(G,"placeholder")?G:_;return C.placeholder}function ut(){var _=G.iteratee||k$;return _=_===k$?K6:_,arguments.length?_(arguments[0],arguments[1]):_}function A1(_,C){var E=_.__data__;return Bye(C)?E[typeof C=="string"?"string":"hash"]:E.map}function b$(_){for(var C=$r(_),E=C.length;E--;){var N=C[E],Q=_[N];C[E]=[N,Q,DV(Q)]}return C}function pf(_,C){var E=Fme(_,C);return q6(E)?E:n}function Mye(_){var C=fn.call(_,uf),E=_[uf];try{_[uf]=n;var N=!0}catch{}var Q=a1.call(_);return N&&(C?_[uf]=E:delete _[uf]),Q}var _$=U2?function(_){return _==null?[]:(_=mn(_),Su(U2(_),function(C){return N6.call(_,C)}))}:B$,EV=U2?function(_){for(var C=[];_;)Cu(C,_$(_)),_=u1(_);return C}:B$,ti=gi;(Z2&&ti(new Z2(new ArrayBuffer(1)))!=vn||fm&&ti(new fm)!=me||X2&&ti(X2.resolve())!=$e||Uh&&ti(new Uh)!=ze||dm&&ti(new dm)!=we)&&(ti=function(_){var C=gi(_),E=C==Ee?_.constructor:n,N=E?vf(E):"";if(N)switch(N){case h0e:return vn;case p0e:return me;case v0e:return $e;case g0e:return ze;case m0e:return we}return C});function Iye(_,C,E){for(var N=-1,Q=E.length;++N<Q;){var U=E[N],q=U.size;switch(U.type){case"drop":_+=q;break;case"dropRight":C-=q;break;case"take":C=ei(C,_+q);break;case"takeRight":_=vr(_,C-q);break}}return{start:_,end:C}}function Dye(_){var C=_.match(T2);return C?C[1].split(U_):[]}function MV(_,C,E){C=Eu(C,_);for(var N=-1,Q=C.length,U=!1;++N<Q;){var q=Ss(C[N]);if(!(U=_!=null&&E(_,q)))break;_=_[q]}return U||++N!=Q?U:(Q=_==null?0:_.length,!!Q&&N1(Q)&&Tl(q,Q)&&(xt(_)||gf(_)))}function Rye(_){var C=_.length,E=new _.constructor(C);return C&&typeof _[0]=="string"&&fn.call(_,"index")&&(E.index=_.index,E.input=_.input),E}function IV(_){return typeof _.constructor=="function"&&!Om(_)?Xh(u1(_)):{}}function kye(_,C,E){var N=_.constructor;switch(C){case At:return h$(_);case ue:case ee:return new N(+_);case vn:return yye(_,E);case cn:case ar:case vi:case bl:case _l:case wu:case rf:case Os:case of:return pV(_,E);case me:return new N;case Ne:case lt:return new N(_);case De:return bye(_);case ze:return new N;case gt:return _ye(_)}}function Nye(_,C){var E=C.length;if(!E)return _;var N=E-1;return C[N]=(E>1?"& ":"")+C[N],C=C.join(E>2?", ":" "),_.replace(C2,`{
  290. /* [wrapped with `+C+`] */
  291. `)}function Lye(_){return xt(_)||gf(_)||!!(L6&&_&&_[L6])}function Tl(_,C){var E=typeof _;return C=C??z,!!C&&(E=="number"||E!="symbol"&&q_.test(_))&&_>-1&&_%1==0&&_<C}function mi(_,C,E){if(!Vn(E))return!1;var N=typeof C;return(N=="number"?zi(E)&&Tl(C,E.length):N=="string"&&C in E)?Va(E[C],_):!1}function O$(_,C){if(xt(_))return!1;var E=typeof _;return E=="number"||E=="symbol"||E=="boolean"||_==null||po(_)?!0:j_.test(_)||!rm.test(_)||C!=null&&_ in mn(C)}function Bye(_){var C=typeof _;return C=="string"||C=="number"||C=="symbol"||C=="boolean"?_!=="__proto__":_===null}function w$(_){var C=$1(_),E=G[C];if(typeof E!="function"||!(C in Ft.prototype))return!1;if(_===E)return!0;var N=y$(E);return!!N&&_===N[0]}function Vye(_){return!!D6&&D6 in _}var zye=i1?Pl:V$;function Om(_){var C=_&&_.constructor,E=typeof C=="function"&&C.prototype||jh;return _===E}function DV(_){return _===_&&!Vn(_)}function RV(_,C){return function(E){return E==null?!1:E[_]===C&&(C!==n||_ in mn(E))}}function Fye(_){var C=R1(_,function(N){return E.size===u&&E.clear(),N}),E=C.cache;return C}function Wye(_,C){var E=_[1],N=C[1],Q=E|N,U=Q<(m|y|T),q=N==T&&E==O||N==T&&E==$&&_[7].length<=C[8]||N==(T|$)&&C[7].length<=C[8]&&E==O;if(!(U||q))return _;N&m&&(_[2]=C[2],Q|=E&m?0:b);var te=C[3];if(te){var fe=_[3];_[3]=fe?gV(fe,te,C[4]):te,_[4]=fe?Tu(_[3],c):C[4]}return te=C[5],te&&(fe=_[5],_[5]=fe?mV(fe,te,C[6]):te,_[6]=fe?Tu(_[5],c):C[6]),te=C[7],te&&(_[7]=te),N&T&&(_[8]=_[8]==null?C[8]:ei(_[8],C[8])),_[9]==null&&(_[9]=C[9]),_[0]=C[0],_[1]=Q,_}function Qye(_){var C=[];if(_!=null)for(var E in mn(_))C.push(E);return C}function Hye(_){return a1.call(_)}function kV(_,C,E){return C=vr(C===n?_.length-1:C,0),function(){for(var N=arguments,Q=-1,U=vr(N.length-C,0),q=pe(U);++Q<U;)q[Q]=N[C+Q];Q=-1;for(var te=pe(C+1);++Q<C;)te[Q]=N[Q];return te[C]=E(q),co(_,this,te)}}function NV(_,C){return C.length<2?_:hf(_,Go(C,0,-1))}function Gye(_,C){for(var E=_.length,N=ei(C.length,E),Q=Vi(_);N--;){var U=C[N];_[N]=Tl(U,E)?Q[U]:n}return _}function x$(_,C){if(!(C==="constructor"&&typeof _[C]=="function")&&C!="__proto__")return _[C]}var LV=VV(aV),wm=a0e||function(_,C){return Nr.setTimeout(_,C)},S$=VV(pye);function BV(_,C,E){var N=C+"";return S$(_,Nye(N,jye(Dye(N),E)))}function VV(_){var C=0,E=0;return function(){var N=c0e(),Q=R-(N-E);if(E=N,Q>0){if(++C>=I)return arguments[0]}else C=0;return _.apply(n,arguments)}}function E1(_,C){var E=-1,N=_.length,Q=N-1;for(C=C===n?N:C;++E<C;){var U=a$(E,Q),q=_[U];_[U]=_[E],_[E]=q}return _.length=C,_}var zV=Fye(function(_){var C=[];return _.charCodeAt(0)===46&&C.push(""),_.replace(Vh,function(E,N,Q,U){C.push(Q?U.replace(Z_,"$1"):N||E)}),C});function Ss(_){if(typeof _=="string"||po(_))return _;var C=_+"";return C=="0"&&1/_==-F?"-0":C}function vf(_){if(_!=null){try{return o1.call(_)}catch{}try{return _+""}catch{}}return""}function jye(_,C){return Fo(se,function(E){var N="_."+E[0];C&E[1]&&!e1(_,N)&&_.push(N)}),_.sort()}function FV(_){if(_ instanceof Ft)return _.clone();var C=new Qo(_.__wrapped__,_.__chain__);return C.__actions__=Vi(_.__actions__),C.__index__=_.__index__,C.__values__=_.__values__,C}function Uye(_,C,E){(E?mi(_,C,E):C===n)?C=1:C=vr(Et(C),0);var N=_==null?0:_.length;if(!N||C<1)return[];for(var Q=0,U=0,q=pe(d1(N/C));Q<N;)q[U++]=Go(_,Q,Q+=C);return q}function Zye(_){for(var C=-1,E=_==null?0:_.length,N=0,Q=[];++C<E;){var U=_[C];U&&(Q[N++]=U)}return Q}function Xye(){var _=arguments.length;if(!_)return[];for(var C=pe(_-1),E=arguments[0],N=_;N--;)C[N-1]=arguments[N];return Cu(xt(E)?Vi(E):[E],Lr(C,1))}var Yye=Nt(function(_,C){return qn(_)?gm(_,Lr(C,1,qn,!0)):[]}),qye=Nt(function(_,C){var E=jo(C);return qn(E)&&(E=n),qn(_)?gm(_,Lr(C,1,qn,!0),ut(E,2)):[]}),Kye=Nt(function(_,C){var E=jo(C);return qn(E)&&(E=n),qn(_)?gm(_,Lr(C,1,qn,!0),n,E):[]});function Jye(_,C,E){var N=_==null?0:_.length;return N?(C=E||C===n?1:Et(C),Go(_,C<0?0:C,N)):[]}function ebe(_,C,E){var N=_==null?0:_.length;return N?(C=E||C===n?1:Et(C),C=N-C,Go(_,0,C<0?0:C)):[]}function tbe(_,C){return _&&_.length?w1(_,ut(C,3),!0,!0):[]}function nbe(_,C){return _&&_.length?w1(_,ut(C,3),!0):[]}function rbe(_,C,E,N){var Q=_==null?0:_.length;return Q?(E&&typeof E!="number"&&mi(_,C,E)&&(E=0,N=Q),X0e(_,C,E,N)):[]}function WV(_,C,E){var N=_==null?0:_.length;if(!N)return-1;var Q=E==null?0:Et(E);return Q<0&&(Q=vr(N+Q,0)),t1(_,ut(C,3),Q)}function QV(_,C,E){var N=_==null?0:_.length;if(!N)return-1;var Q=N-1;return E!==n&&(Q=Et(E),Q=E<0?vr(N+Q,0):ei(Q,N-1)),t1(_,ut(C,3),Q,!0)}function HV(_){var C=_==null?0:_.length;return C?Lr(_,1):[]}function ibe(_){var C=_==null?0:_.length;return C?Lr(_,F):[]}function obe(_,C){var E=_==null?0:_.length;return E?(C=C===n?1:Et(C),Lr(_,C)):[]}function abe(_){for(var C=-1,E=_==null?0:_.length,N={};++C<E;){var Q=_[C];N[Q[0]]=Q[1]}return N}function GV(_){return _&&_.length?_[0]:n}function sbe(_,C,E){var N=_==null?0:_.length;if(!N)return-1;var Q=E==null?0:Et(E);return Q<0&&(Q=vr(N+Q,0)),Wh(_,C,Q)}function lbe(_){var C=_==null?0:_.length;return C?Go(_,0,-1):[]}var ube=Nt(function(_){var C=Rn(_,f$);return C.length&&C[0]===_[0]?t$(C):[]}),cbe=Nt(function(_){var C=jo(_),E=Rn(_,f$);return C===jo(E)?C=n:E.pop(),E.length&&E[0]===_[0]?t$(E,ut(C,2)):[]}),fbe=Nt(function(_){var C=jo(_),E=Rn(_,f$);return C=typeof C=="function"?C:n,C&&E.pop(),E.length&&E[0]===_[0]?t$(E,n,C):[]});function dbe(_,C){return _==null?"":l0e.call(_,C)}function jo(_){var C=_==null?0:_.length;return C?_[C-1]:n}function hbe(_,C,E){var N=_==null?0:_.length;if(!N)return-1;var Q=N;return E!==n&&(Q=Et(E),Q=Q<0?vr(N+Q,0):ei(Q,N-1)),C===C?jme(_,C,Q):t1(_,C6,Q,!0)}function pbe(_,C){return _&&_.length?nV(_,Et(C)):n}var vbe=Nt(jV);function jV(_,C){return _&&_.length&&C&&C.length?o$(_,C):_}function gbe(_,C,E){return _&&_.length&&C&&C.length?o$(_,C,ut(E,2)):_}function mbe(_,C,E){return _&&_.length&&C&&C.length?o$(_,C,n,E):_}var ybe=Cl(function(_,C){var E=_==null?0:_.length,N=q2(_,C);return oV(_,Rn(C,function(Q){return Tl(Q,E)?+Q:Q}).sort(vV)),N});function bbe(_,C){var E=[];if(!(_&&_.length))return E;var N=-1,Q=[],U=_.length;for(C=ut(C,3);++N<U;){var q=_[N];C(q,N,_)&&(E.push(q),Q.push(N))}return oV(_,Q),E}function C$(_){return _==null?_:d0e.call(_)}function _be(_,C,E){var N=_==null?0:_.length;return N?(E&&typeof E!="number"&&mi(_,C,E)?(C=0,E=N):(C=C==null?0:Et(C),E=E===n?N:Et(E)),Go(_,C,E)):[]}function Obe(_,C){return O1(_,C)}function wbe(_,C,E){return l$(_,C,ut(E,2))}function xbe(_,C){var E=_==null?0:_.length;if(E){var N=O1(_,C);if(N<E&&Va(_[N],C))return N}return-1}function Sbe(_,C){return O1(_,C,!0)}function Cbe(_,C,E){return l$(_,C,ut(E,2),!0)}function Tbe(_,C){var E=_==null?0:_.length;if(E){var N=O1(_,C,!0)-1;if(Va(_[N],C))return N}return-1}function Pbe(_){return _&&_.length?sV(_):[]}function $be(_,C){return _&&_.length?sV(_,ut(C,2)):[]}function Abe(_){var C=_==null?0:_.length;return C?Go(_,1,C):[]}function Ebe(_,C,E){return _&&_.length?(C=E||C===n?1:Et(C),Go(_,0,C<0?0:C)):[]}function Mbe(_,C,E){var N=_==null?0:_.length;return N?(C=E||C===n?1:Et(C),C=N-C,Go(_,C<0?0:C,N)):[]}function Ibe(_,C){return _&&_.length?w1(_,ut(C,3),!1,!0):[]}function Dbe(_,C){return _&&_.length?w1(_,ut(C,3)):[]}var Rbe=Nt(function(_){return Au(Lr(_,1,qn,!0))}),kbe=Nt(function(_){var C=jo(_);return qn(C)&&(C=n),Au(Lr(_,1,qn,!0),ut(C,2))}),Nbe=Nt(function(_){var C=jo(_);return C=typeof C=="function"?C:n,Au(Lr(_,1,qn,!0),n,C)});function Lbe(_){return _&&_.length?Au(_):[]}function Bbe(_,C){return _&&_.length?Au(_,ut(C,2)):[]}function Vbe(_,C){return C=typeof C=="function"?C:n,_&&_.length?Au(_,n,C):[]}function T$(_){if(!(_&&_.length))return[];var C=0;return _=Su(_,function(E){if(qn(E))return C=vr(E.length,C),!0}),Q2(C,function(E){return Rn(_,z2(E))})}function UV(_,C){if(!(_&&_.length))return[];var E=T$(_);return C==null?E:Rn(E,function(N){return co(C,n,N)})}var zbe=Nt(function(_,C){return qn(_)?gm(_,C):[]}),Fbe=Nt(function(_){return c$(Su(_,qn))}),Wbe=Nt(function(_){var C=jo(_);return qn(C)&&(C=n),c$(Su(_,qn),ut(C,2))}),Qbe=Nt(function(_){var C=jo(_);return C=typeof C=="function"?C:n,c$(Su(_,qn),n,C)}),Hbe=Nt(T$);function Gbe(_,C){return fV(_||[],C||[],vm)}function jbe(_,C){return fV(_||[],C||[],bm)}var Ube=Nt(function(_){var C=_.length,E=C>1?_[C-1]:n;return E=typeof E=="function"?(_.pop(),E):n,UV(_,E)});function ZV(_){var C=G(_);return C.__chain__=!0,C}function Zbe(_,C){return C(_),_}function M1(_,C){return C(_)}var Xbe=Cl(function(_){var C=_.length,E=C?_[0]:0,N=this.__wrapped__,Q=function(U){return q2(U,_)};return C>1||this.__actions__.length||!(N instanceof Ft)||!Tl(E)?this.thru(Q):(N=N.slice(E,+E+(C?1:0)),N.__actions__.push({func:M1,args:[Q],thisArg:n}),new Qo(N,this.__chain__).thru(function(U){return C&&!U.length&&U.push(n),U}))});function Ybe(){return ZV(this)}function qbe(){return new Qo(this.value(),this.__chain__)}function Kbe(){this.__values__===n&&(this.__values__=lz(this.value()));var _=this.__index__>=this.__values__.length,C=_?n:this.__values__[this.__index__++];return{done:_,value:C}}function Jbe(){return this}function e_e(_){for(var C,E=this;E instanceof g1;){var N=FV(E);N.__index__=0,N.__values__=n,C?Q.__wrapped__=N:C=N;var Q=N;E=E.__wrapped__}return Q.__wrapped__=_,C}function t_e(){var _=this.__wrapped__;if(_ instanceof Ft){var C=_;return this.__actions__.length&&(C=new Ft(this)),C=C.reverse(),C.__actions__.push({func:M1,args:[C$],thisArg:n}),new Qo(C,this.__chain__)}return this.thru(C$)}function n_e(){return cV(this.__wrapped__,this.__actions__)}var r_e=x1(function(_,C,E){fn.call(_,E)?++_[E]:xl(_,E,1)});function i_e(_,C,E){var N=xt(_)?x6:Z0e;return E&&mi(_,C,E)&&(C=n),N(_,ut(C,3))}function o_e(_,C){var E=xt(_)?Su:U6;return E(_,ut(C,3))}var a_e=OV(WV),s_e=OV(QV);function l_e(_,C){return Lr(I1(_,C),1)}function u_e(_,C){return Lr(I1(_,C),F)}function c_e(_,C,E){return E=E===n?1:Et(E),Lr(I1(_,C),E)}function XV(_,C){var E=xt(_)?Fo:$u;return E(_,ut(C,3))}function YV(_,C){var E=xt(_)?Ame:j6;return E(_,ut(C,3))}var f_e=x1(function(_,C,E){fn.call(_,E)?_[E].push(C):xl(_,E,[C])});function d_e(_,C,E,N){_=zi(_)?_:ep(_),E=E&&!N?Et(E):0;var Q=_.length;return E<0&&(E=vr(Q+E,0)),L1(_)?E<=Q&&_.indexOf(C,E)>-1:!!Q&&Wh(_,C,E)>-1}var h_e=Nt(function(_,C,E){var N=-1,Q=typeof C=="function",U=zi(_)?pe(_.length):[];return $u(_,function(q){U[++N]=Q?co(C,q,E):mm(q,C,E)}),U}),p_e=x1(function(_,C,E){xl(_,E,C)});function I1(_,C){var E=xt(_)?Rn:J6;return E(_,ut(C,3))}function v_e(_,C,E,N){return _==null?[]:(xt(C)||(C=C==null?[]:[C]),E=N?n:E,xt(E)||(E=E==null?[]:[E]),rV(_,C,E))}var g_e=x1(function(_,C,E){_[E?0:1].push(C)},function(){return[[],[]]});function m_e(_,C,E){var N=xt(_)?B2:P6,Q=arguments.length<3;return N(_,ut(C,4),E,Q,$u)}function y_e(_,C,E){var N=xt(_)?Eme:P6,Q=arguments.length<3;return N(_,ut(C,4),E,Q,j6)}function b_e(_,C){var E=xt(_)?Su:U6;return E(_,k1(ut(C,3)))}function __e(_){var C=xt(_)?W6:dye;return C(_)}function O_e(_,C,E){(E?mi(_,C,E):C===n)?C=1:C=Et(C);var N=xt(_)?Q0e:hye;return N(_,C)}function w_e(_){var C=xt(_)?H0e:vye;return C(_)}function x_e(_){if(_==null)return 0;if(zi(_))return L1(_)?Hh(_):_.length;var C=ti(_);return C==me||C==ze?_.size:r$(_).length}function S_e(_,C,E){var N=xt(_)?V2:gye;return E&&mi(_,C,E)&&(C=n),N(_,ut(C,3))}var C_e=Nt(function(_,C){if(_==null)return[];var E=C.length;return E>1&&mi(_,C[0],C[1])?C=[]:E>2&&mi(C[0],C[1],C[2])&&(C=[C[0]]),rV(_,Lr(C,1),[])}),D1=o0e||function(){return Nr.Date.now()};function T_e(_,C){if(typeof C!="function")throw new Wo(a);return _=Et(_),function(){if(--_<1)return C.apply(this,arguments)}}function qV(_,C,E){return C=E?n:C,C=_&&C==null?_.length:C,Sl(_,T,n,n,n,n,C)}function KV(_,C){var E;if(typeof C!="function")throw new Wo(a);return _=Et(_),function(){return--_>0&&(E=C.apply(this,arguments)),_<=1&&(C=n),E}}var P$=Nt(function(_,C,E){var N=m;if(E.length){var Q=Tu(E,Kh(P$));N|=x}return Sl(_,N,C,E,Q)}),JV=Nt(function(_,C,E){var N=m|y;if(E.length){var Q=Tu(E,Kh(JV));N|=x}return Sl(C,N,_,E,Q)});function ez(_,C,E){C=E?n:C;var N=Sl(_,O,n,n,n,n,n,C);return N.placeholder=ez.placeholder,N}function tz(_,C,E){C=E?n:C;var N=Sl(_,w,n,n,n,n,n,C);return N.placeholder=tz.placeholder,N}function nz(_,C,E){var N,Q,U,q,te,fe,xe=0,Ce=!1,Ae=!1,We=!0;if(typeof _!="function")throw new Wo(a);C=Uo(C)||0,Vn(E)&&(Ce=!!E.leading,Ae="maxWait"in E,U=Ae?vr(Uo(E.maxWait)||0,C):U,We="trailing"in E?!!E.trailing:We);function et(Kn){var za=N,Al=Q;return N=Q=n,xe=Kn,q=_.apply(Al,za),q}function dt(Kn){return xe=Kn,te=wm(Vt,C),Ce?et(Kn):q}function Dt(Kn){var za=Kn-fe,Al=Kn-xe,Oz=C-za;return Ae?ei(Oz,U-Al):Oz}function ht(Kn){var za=Kn-fe,Al=Kn-xe;return fe===n||za>=C||za<0||Ae&&Al>=U}function Vt(){var Kn=D1();if(ht(Kn))return jt(Kn);te=wm(Vt,Dt(Kn))}function jt(Kn){return te=n,We&&N?et(Kn):(N=Q=n,q)}function vo(){te!==n&&dV(te),xe=0,N=fe=Q=te=n}function yi(){return te===n?q:jt(D1())}function go(){var Kn=D1(),za=ht(Kn);if(N=arguments,Q=this,fe=Kn,za){if(te===n)return dt(fe);if(Ae)return dV(te),te=wm(Vt,C),et(fe)}return te===n&&(te=wm(Vt,C)),q}return go.cancel=vo,go.flush=yi,go}var P_e=Nt(function(_,C){return G6(_,1,C)}),$_e=Nt(function(_,C,E){return G6(_,Uo(C)||0,E)});function A_e(_){return Sl(_,A)}function R1(_,C){if(typeof _!="function"||C!=null&&typeof C!="function")throw new Wo(a);var E=function(){var N=arguments,Q=C?C.apply(this,N):N[0],U=E.cache;if(U.has(Q))return U.get(Q);var q=_.apply(this,N);return E.cache=U.set(Q,q)||U,q};return E.cache=new(R1.Cache||wl),E}R1.Cache=wl;function k1(_){if(typeof _!="function")throw new Wo(a);return function(){var C=arguments;switch(C.length){case 0:return!_.call(this);case 1:return!_.call(this,C[0]);case 2:return!_.call(this,C[0],C[1]);case 3:return!_.call(this,C[0],C[1],C[2])}return!_.apply(this,C)}}function E_e(_){return KV(2,_)}var M_e=mye(function(_,C){C=C.length==1&&xt(C[0])?Rn(C[0],fo(ut())):Rn(Lr(C,1),fo(ut()));var E=C.length;return Nt(function(N){for(var Q=-1,U=ei(N.length,E);++Q<U;)N[Q]=C[Q].call(this,N[Q]);return co(_,this,N)})}),$$=Nt(function(_,C){var E=Tu(C,Kh($$));return Sl(_,x,n,C,E)}),rz=Nt(function(_,C){var E=Tu(C,Kh(rz));return Sl(_,S,n,C,E)}),I_e=Cl(function(_,C){return Sl(_,$,n,n,n,C)});function D_e(_,C){if(typeof _!="function")throw new Wo(a);return C=C===n?C:Et(C),Nt(_,C)}function R_e(_,C){if(typeof _!="function")throw new Wo(a);return C=C==null?0:vr(Et(C),0),Nt(function(E){var N=E[C],Q=Mu(E,0,C);return N&&Cu(Q,N),co(_,this,Q)})}function k_e(_,C,E){var N=!0,Q=!0;if(typeof _!="function")throw new Wo(a);return Vn(E)&&(N="leading"in E?!!E.leading:N,Q="trailing"in E?!!E.trailing:Q),nz(_,C,{leading:N,maxWait:C,trailing:Q})}function N_e(_){return qV(_,1)}function L_e(_,C){return $$(d$(C),_)}function B_e(){if(!arguments.length)return[];var _=arguments[0];return xt(_)?_:[_]}function V_e(_){return Ho(_,p)}function z_e(_,C){return C=typeof C=="function"?C:n,Ho(_,p,C)}function F_e(_){return Ho(_,f|p)}function W_e(_,C){return C=typeof C=="function"?C:n,Ho(_,f|p,C)}function Q_e(_,C){return C==null||H6(_,C,$r(C))}function Va(_,C){return _===C||_!==_&&C!==C}var H_e=P1(e$),G_e=P1(function(_,C){return _>=C}),gf=Y6(function(){return arguments}())?Y6:function(_){return Hn(_)&&fn.call(_,"callee")&&!N6.call(_,"callee")},xt=pe.isArray,j_e=m6?fo(m6):eye;function zi(_){return _!=null&&N1(_.length)&&!Pl(_)}function qn(_){return Hn(_)&&zi(_)}function U_e(_){return _===!0||_===!1||Hn(_)&&gi(_)==ue}var Iu=s0e||V$,Z_e=y6?fo(y6):tye;function X_e(_){return Hn(_)&&_.nodeType===1&&!xm(_)}function Y_e(_){if(_==null)return!0;if(zi(_)&&(xt(_)||typeof _=="string"||typeof _.splice=="function"||Iu(_)||Jh(_)||gf(_)))return!_.length;var C=ti(_);if(C==me||C==ze)return!_.size;if(Om(_))return!r$(_).length;for(var E in _)if(fn.call(_,E))return!1;return!0}function q_e(_,C){return ym(_,C)}function K_e(_,C,E){E=typeof E=="function"?E:n;var N=E?E(_,C):n;return N===n?ym(_,C,n,E):!!N}function A$(_){if(!Hn(_))return!1;var C=gi(_);return C==Y||C==X||typeof _.message=="string"&&typeof _.name=="string"&&!xm(_)}function J_e(_){return typeof _=="number"&&B6(_)}function Pl(_){if(!Vn(_))return!1;var C=gi(_);return C==le||C==ge||C==re||C==_e}function iz(_){return typeof _=="number"&&_==Et(_)}function N1(_){return typeof _=="number"&&_>-1&&_%1==0&&_<=z}function Vn(_){var C=typeof _;return _!=null&&(C=="object"||C=="function")}function Hn(_){return _!=null&&typeof _=="object"}var oz=b6?fo(b6):rye;function e1e(_,C){return _===C||n$(_,C,b$(C))}function t1e(_,C,E){return E=typeof E=="function"?E:n,n$(_,C,b$(C),E)}function n1e(_){return az(_)&&_!=+_}function r1e(_){if(zye(_))throw new _t(o);return q6(_)}function i1e(_){return _===null}function o1e(_){return _==null}function az(_){return typeof _=="number"||Hn(_)&&gi(_)==Ne}function xm(_){if(!Hn(_)||gi(_)!=Ee)return!1;var C=u1(_);if(C===null)return!0;var E=fn.call(C,"constructor")&&C.constructor;return typeof E=="function"&&E instanceof E&&o1.call(E)==t0e}var E$=_6?fo(_6):iye;function a1e(_){return iz(_)&&_>=-z&&_<=z}var sz=O6?fo(O6):oye;function L1(_){return typeof _=="string"||!xt(_)&&Hn(_)&&gi(_)==lt}function po(_){return typeof _=="symbol"||Hn(_)&&gi(_)==gt}var Jh=w6?fo(w6):aye;function s1e(_){return _===n}function l1e(_){return Hn(_)&&ti(_)==we}function u1e(_){return Hn(_)&&gi(_)==rt}var c1e=P1(i$),f1e=P1(function(_,C){return _<=C});function lz(_){if(!_)return[];if(zi(_))return L1(_)?La(_):Vi(_);if(cm&&_[cm])return Qme(_[cm]());var C=ti(_),E=C==me?G2:C==ze?n1:ep;return E(_)}function $l(_){if(!_)return _===0?_:0;if(_=Uo(_),_===F||_===-F){var C=_<0?-1:1;return C*W}return _===_?_:0}function Et(_){var C=$l(_),E=C%1;return C===C?E?C-E:C:0}function uz(_){return _?df(Et(_),0,H):0}function Uo(_){if(typeof _=="number")return _;if(po(_))return j;if(Vn(_)){var C=typeof _.valueOf=="function"?_.valueOf():_;_=Vn(C)?C+"":C}if(typeof _!="string")return _===0?_:+_;_=$6(_);var E=P2.test(_);return E||A2.test(_)?Tme(_.slice(2),E?2:8):Y_.test(_)?j:+_}function cz(_){return xs(_,Fi(_))}function d1e(_){return _?df(Et(_),-z,z):_===0?_:0}function sn(_){return _==null?"":ho(_)}var h1e=Yh(function(_,C){if(Om(C)||zi(C)){xs(C,$r(C),_);return}for(var E in C)fn.call(C,E)&&vm(_,E,C[E])}),fz=Yh(function(_,C){xs(C,Fi(C),_)}),B1=Yh(function(_,C,E,N){xs(C,Fi(C),_,N)}),p1e=Yh(function(_,C,E,N){xs(C,$r(C),_,N)}),v1e=Cl(q2);function g1e(_,C){var E=Xh(_);return C==null?E:Q6(E,C)}var m1e=Nt(function(_,C){_=mn(_);var E=-1,N=C.length,Q=N>2?C[2]:n;for(Q&&mi(C[0],C[1],Q)&&(N=1);++E<N;)for(var U=C[E],q=Fi(U),te=-1,fe=q.length;++te<fe;){var xe=q[te],Ce=_[xe];(Ce===n||Va(Ce,jh[xe])&&!fn.call(_,xe))&&(_[xe]=U[xe])}return _}),y1e=Nt(function(_){return _.push(n,$V),co(dz,n,_)});function b1e(_,C){return S6(_,ut(C,3),ws)}function _1e(_,C){return S6(_,ut(C,3),J2)}function O1e(_,C){return _==null?_:K2(_,ut(C,3),Fi)}function w1e(_,C){return _==null?_:Z6(_,ut(C,3),Fi)}function x1e(_,C){return _&&ws(_,ut(C,3))}function S1e(_,C){return _&&J2(_,ut(C,3))}function C1e(_){return _==null?[]:b1(_,$r(_))}function T1e(_){return _==null?[]:b1(_,Fi(_))}function M$(_,C,E){var N=_==null?n:hf(_,C);return N===n?E:N}function P1e(_,C){return _!=null&&MV(_,C,Y0e)}function I$(_,C){return _!=null&&MV(_,C,q0e)}var $1e=xV(function(_,C,E){C!=null&&typeof C.toString!="function"&&(C=a1.call(C)),_[C]=E},R$(Wi)),A1e=xV(function(_,C,E){C!=null&&typeof C.toString!="function"&&(C=a1.call(C)),fn.call(_,C)?_[C].push(E):_[C]=[E]},ut),E1e=Nt(mm);function $r(_){return zi(_)?F6(_):r$(_)}function Fi(_){return zi(_)?F6(_,!0):sye(_)}function M1e(_,C){var E={};return C=ut(C,3),ws(_,function(N,Q,U){xl(E,C(N,Q,U),N)}),E}function I1e(_,C){var E={};return C=ut(C,3),ws(_,function(N,Q,U){xl(E,Q,C(N,Q,U))}),E}var D1e=Yh(function(_,C,E){_1(_,C,E)}),dz=Yh(function(_,C,E,N){_1(_,C,E,N)}),R1e=Cl(function(_,C){var E={};if(_==null)return E;var N=!1;C=Rn(C,function(U){return U=Eu(U,_),N||(N=U.length>1),U}),xs(_,m$(_),E),N&&(E=Ho(E,f|d|p,$ye));for(var Q=C.length;Q--;)u$(E,C[Q]);return E});function k1e(_,C){return hz(_,k1(ut(C)))}var N1e=Cl(function(_,C){return _==null?{}:uye(_,C)});function hz(_,C){if(_==null)return{};var E=Rn(m$(_),function(N){return[N]});return C=ut(C),iV(_,E,function(N,Q){return C(N,Q[0])})}function L1e(_,C,E){C=Eu(C,_);var N=-1,Q=C.length;for(Q||(Q=1,_=n);++N<Q;){var U=_==null?n:_[Ss(C[N])];U===n&&(N=Q,U=E),_=Pl(U)?U.call(_):U}return _}function B1e(_,C,E){return _==null?_:bm(_,C,E)}function V1e(_,C,E,N){return N=typeof N=="function"?N:n,_==null?_:bm(_,C,E,N)}var pz=TV($r),vz=TV(Fi);function z1e(_,C,E){var N=xt(_),Q=N||Iu(_)||Jh(_);if(C=ut(C,4),E==null){var U=_&&_.constructor;Q?E=N?new U:[]:Vn(_)?E=Pl(U)?Xh(u1(_)):{}:E={}}return(Q?Fo:ws)(_,function(q,te,fe){return C(E,q,te,fe)}),E}function F1e(_,C){return _==null?!0:u$(_,C)}function W1e(_,C,E){return _==null?_:uV(_,C,d$(E))}function Q1e(_,C,E,N){return N=typeof N=="function"?N:n,_==null?_:uV(_,C,d$(E),N)}function ep(_){return _==null?[]:H2(_,$r(_))}function H1e(_){return _==null?[]:H2(_,Fi(_))}function G1e(_,C,E){return E===n&&(E=C,C=n),E!==n&&(E=Uo(E),E=E===E?E:0),C!==n&&(C=Uo(C),C=C===C?C:0),df(Uo(_),C,E)}function j1e(_,C,E){return C=$l(C),E===n?(E=C,C=0):E=$l(E),_=Uo(_),K0e(_,C,E)}function U1e(_,C,E){if(E&&typeof E!="boolean"&&mi(_,C,E)&&(C=E=n),E===n&&(typeof C=="boolean"?(E=C,C=n):typeof _=="boolean"&&(E=_,_=n)),_===n&&C===n?(_=0,C=1):(_=$l(_),C===n?(C=_,_=0):C=$l(C)),_>C){var N=_;_=C,C=N}if(E||_%1||C%1){var Q=V6();return ei(_+Q*(C-_+Cme("1e-"+((Q+"").length-1))),C)}return a$(_,C)}var Z1e=qh(function(_,C,E){return C=C.toLowerCase(),_+(E?gz(C):C)});function gz(_){return D$(sn(_).toLowerCase())}function mz(_){return _=sn(_),_&&_.replace(lm,Bme).replace(vme,"")}function X1e(_,C,E){_=sn(_),C=ho(C);var N=_.length;E=E===n?N:df(Et(E),0,N);var Q=E;return E-=C.length,E>=0&&_.slice(E,Q)==C}function Y1e(_){return _=sn(_),_&&ZB.test(_)?_.replace(w2,Vme):_}function q1e(_){return _=sn(_),_&&x2.test(_)?_.replace(im,"\\$&"):_}var K1e=qh(function(_,C,E){return _+(E?"-":"")+C.toLowerCase()}),J1e=qh(function(_,C,E){return _+(E?" ":"")+C.toLowerCase()}),eOe=_V("toLowerCase");function tOe(_,C,E){_=sn(_),C=Et(C);var N=C?Hh(_):0;if(!C||N>=C)return _;var Q=(C-N)/2;return T1(h1(Q),E)+_+T1(d1(Q),E)}function nOe(_,C,E){_=sn(_),C=Et(C);var N=C?Hh(_):0;return C&&N<C?_+T1(C-N,E):_}function rOe(_,C,E){_=sn(_),C=Et(C);var N=C?Hh(_):0;return C&&N<C?T1(C-N,E)+_:_}function iOe(_,C,E){return E||C==null?C=0:C&&(C=+C),f0e(sn(_).replace(om,""),C||0)}function oOe(_,C,E){return(E?mi(_,C,E):C===n)?C=1:C=Et(C),s$(sn(_),C)}function aOe(){var _=arguments,C=sn(_[0]);return _.length<3?C:C.replace(_[1],_[2])}var sOe=qh(function(_,C,E){return _+(E?"_":"")+C.toLowerCase()});function lOe(_,C,E){return E&&typeof E!="number"&&mi(_,C,E)&&(C=E=n),E=E===n?H:E>>>0,E?(_=sn(_),_&&(typeof C=="string"||C!=null&&!E$(C))&&(C=ho(C),!C&&Qh(_))?Mu(La(_),0,E):_.split(C,E)):[]}var uOe=qh(function(_,C,E){return _+(E?" ":"")+D$(C)});function cOe(_,C,E){return _=sn(_),E=E==null?0:df(Et(E),0,_.length),C=ho(C),_.slice(E,E+C.length)==C}function fOe(_,C,E){var N=G.templateSettings;E&&mi(_,C,E)&&(C=n),_=sn(_),C=B1({},C,N,PV);var Q=B1({},C.imports,N.imports,PV),U=$r(Q),q=H2(Q,U),te,fe,xe=0,Ce=C.interpolate||Vo,Ae="__p += '",We=j2((C.escape||Vo).source+"|"+Ce.source+"|"+(Ce===Bh?X_:Vo).source+"|"+(C.evaluate||Vo).source+"|$","g"),et="//# sourceURL="+(fn.call(C,"sourceURL")?(C.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++_me+"]")+`
  292. `;_.replace(We,function(ht,Vt,jt,vo,yi,go){return jt||(jt=vo),Ae+=_.slice(xe,go).replace(K_,zme),Vt&&(te=!0,Ae+=`' +
  293. __e(`+Vt+`) +
  294. '`),yi&&(fe=!0,Ae+=`';
  295. `+yi+`;
  296. __p += '`),jt&&(Ae+=`' +
  297. ((__t = (`+jt+`)) == null ? '' : __t) +
  298. '`),xe=go+ht.length,ht}),Ae+=`';
  299. `;var dt=fn.call(C,"variable")&&C.variable;if(!dt)Ae=`with (obj) {
  300. `+Ae+`
  301. }
  302. `;else if(am.test(dt))throw new _t(s);Ae=(fe?Ae.replace(af,""):Ae).replace(tm,"$1").replace(xu,"$1;"),Ae="function("+(dt||"obj")+`) {
  303. `+(dt?"":`obj || (obj = {});
  304. `)+"var __t, __p = ''"+(te?", __e = _.escape":"")+(fe?`, __j = Array.prototype.join;
  305. function print() { __p += __j.call(arguments, '') }
  306. `:`;
  307. `)+Ae+`return __p
  308. }`;var Dt=bz(function(){return on(U,et+"return "+Ae).apply(n,q)});if(Dt.source=Ae,A$(Dt))throw Dt;return Dt}function dOe(_){return sn(_).toLowerCase()}function hOe(_){return sn(_).toUpperCase()}function pOe(_,C,E){if(_=sn(_),_&&(E||C===n))return $6(_);if(!_||!(C=ho(C)))return _;var N=La(_),Q=La(C),U=A6(N,Q),q=E6(N,Q)+1;return Mu(N,U,q).join("")}function vOe(_,C,E){if(_=sn(_),_&&(E||C===n))return _.slice(0,I6(_)+1);if(!_||!(C=ho(C)))return _;var N=La(_),Q=E6(N,La(C))+1;return Mu(N,0,Q).join("")}function gOe(_,C,E){if(_=sn(_),_&&(E||C===n))return _.replace(om,"");if(!_||!(C=ho(C)))return _;var N=La(_),Q=A6(N,La(C));return Mu(N,Q).join("")}function mOe(_,C){var E=P,N=M;if(Vn(C)){var Q="separator"in C?C.separator:Q;E="length"in C?Et(C.length):E,N="omission"in C?ho(C.omission):N}_=sn(_);var U=_.length;if(Qh(_)){var q=La(_);U=q.length}if(E>=U)return _;var te=E-Hh(N);if(te<1)return N;var fe=q?Mu(q,0,te).join(""):_.slice(0,te);if(Q===n)return fe+N;if(q&&(te+=fe.length-te),E$(Q)){if(_.slice(te).search(Q)){var xe,Ce=fe;for(Q.global||(Q=j2(Q.source,sn(sm.exec(Q))+"g")),Q.lastIndex=0;xe=Q.exec(Ce);)var Ae=xe.index;fe=fe.slice(0,Ae===n?te:Ae)}}else if(_.indexOf(ho(Q),te)!=te){var We=fe.lastIndexOf(Q);We>-1&&(fe=fe.slice(0,We))}return fe+N}function yOe(_){return _=sn(_),_&&UB.test(_)?_.replace(nm,Ume):_}var bOe=qh(function(_,C,E){return _+(E?" ":"")+C.toUpperCase()}),D$=_V("toUpperCase");function yz(_,C,E){return _=sn(_),C=E?n:C,C===n?Wme(_)?Yme(_):Dme(_):_.match(C)||[]}var bz=Nt(function(_,C){try{return co(_,n,C)}catch(E){return A$(E)?E:new _t(E)}}),_Oe=Cl(function(_,C){return Fo(C,function(E){E=Ss(E),xl(_,E,P$(_[E],_))}),_});function OOe(_){var C=_==null?0:_.length,E=ut();return _=C?Rn(_,function(N){if(typeof N[1]!="function")throw new Wo(a);return[E(N[0]),N[1]]}):[],Nt(function(N){for(var Q=-1;++Q<C;){var U=_[Q];if(co(U[0],this,N))return co(U[1],this,N)}})}function wOe(_){return U0e(Ho(_,f))}function R$(_){return function(){return _}}function xOe(_,C){return _==null||_!==_?C:_}var SOe=wV(),COe=wV(!0);function Wi(_){return _}function k$(_){return K6(typeof _=="function"?_:Ho(_,f))}function TOe(_){return eV(Ho(_,f))}function POe(_,C){return tV(_,Ho(C,f))}var $Oe=Nt(function(_,C){return function(E){return mm(E,_,C)}}),AOe=Nt(function(_,C){return function(E){return mm(_,E,C)}});function N$(_,C,E){var N=$r(C),Q=b1(C,N);E==null&&!(Vn(C)&&(Q.length||!N.length))&&(E=C,C=_,_=this,Q=b1(C,$r(C)));var U=!(Vn(E)&&"chain"in E)||!!E.chain,q=Pl(_);return Fo(Q,function(te){var fe=C[te];_[te]=fe,q&&(_.prototype[te]=function(){var xe=this.__chain__;if(U||xe){var Ce=_(this.__wrapped__),Ae=Ce.__actions__=Vi(this.__actions__);return Ae.push({func:fe,args:arguments,thisArg:_}),Ce.__chain__=xe,Ce}return fe.apply(_,Cu([this.value()],arguments))})}),_}function EOe(){return Nr._===this&&(Nr._=n0e),this}function L$(){}function MOe(_){return _=Et(_),Nt(function(C){return nV(C,_)})}var IOe=p$(Rn),DOe=p$(x6),ROe=p$(V2);function _z(_){return O$(_)?z2(Ss(_)):cye(_)}function kOe(_){return function(C){return _==null?n:hf(_,C)}}var NOe=SV(),LOe=SV(!0);function B$(){return[]}function V$(){return!1}function BOe(){return{}}function VOe(){return""}function zOe(){return!0}function FOe(_,C){if(_=Et(_),_<1||_>z)return[];var E=H,N=ei(_,H);C=ut(C),_-=H;for(var Q=Q2(N,C);++E<_;)C(E);return Q}function WOe(_){return xt(_)?Rn(_,Ss):po(_)?[_]:Vi(zV(sn(_)))}function QOe(_){var C=++e0e;return sn(_)+C}var HOe=C1(function(_,C){return _+C},0),GOe=v$("ceil"),jOe=C1(function(_,C){return _/C},1),UOe=v$("floor");function ZOe(_){return _&&_.length?y1(_,Wi,e$):n}function XOe(_,C){return _&&_.length?y1(_,ut(C,2),e$):n}function YOe(_){return T6(_,Wi)}function qOe(_,C){return T6(_,ut(C,2))}function KOe(_){return _&&_.length?y1(_,Wi,i$):n}function JOe(_,C){return _&&_.length?y1(_,ut(C,2),i$):n}var ewe=C1(function(_,C){return _*C},1),twe=v$("round"),nwe=C1(function(_,C){return _-C},0);function rwe(_){return _&&_.length?W2(_,Wi):0}function iwe(_,C){return _&&_.length?W2(_,ut(C,2)):0}return G.after=T_e,G.ary=qV,G.assign=h1e,G.assignIn=fz,G.assignInWith=B1,G.assignWith=p1e,G.at=v1e,G.before=KV,G.bind=P$,G.bindAll=_Oe,G.bindKey=JV,G.castArray=B_e,G.chain=ZV,G.chunk=Uye,G.compact=Zye,G.concat=Xye,G.cond=OOe,G.conforms=wOe,G.constant=R$,G.countBy=r_e,G.create=g1e,G.curry=ez,G.curryRight=tz,G.debounce=nz,G.defaults=m1e,G.defaultsDeep=y1e,G.defer=P_e,G.delay=$_e,G.difference=Yye,G.differenceBy=qye,G.differenceWith=Kye,G.drop=Jye,G.dropRight=ebe,G.dropRightWhile=tbe,G.dropWhile=nbe,G.fill=rbe,G.filter=o_e,G.flatMap=l_e,G.flatMapDeep=u_e,G.flatMapDepth=c_e,G.flatten=HV,G.flattenDeep=ibe,G.flattenDepth=obe,G.flip=A_e,G.flow=SOe,G.flowRight=COe,G.fromPairs=abe,G.functions=C1e,G.functionsIn=T1e,G.groupBy=f_e,G.initial=lbe,G.intersection=ube,G.intersectionBy=cbe,G.intersectionWith=fbe,G.invert=$1e,G.invertBy=A1e,G.invokeMap=h_e,G.iteratee=k$,G.keyBy=p_e,G.keys=$r,G.keysIn=Fi,G.map=I1,G.mapKeys=M1e,G.mapValues=I1e,G.matches=TOe,G.matchesProperty=POe,G.memoize=R1,G.merge=D1e,G.mergeWith=dz,G.method=$Oe,G.methodOf=AOe,G.mixin=N$,G.negate=k1,G.nthArg=MOe,G.omit=R1e,G.omitBy=k1e,G.once=E_e,G.orderBy=v_e,G.over=IOe,G.overArgs=M_e,G.overEvery=DOe,G.overSome=ROe,G.partial=$$,G.partialRight=rz,G.partition=g_e,G.pick=N1e,G.pickBy=hz,G.property=_z,G.propertyOf=kOe,G.pull=vbe,G.pullAll=jV,G.pullAllBy=gbe,G.pullAllWith=mbe,G.pullAt=ybe,G.range=NOe,G.rangeRight=LOe,G.rearg=I_e,G.reject=b_e,G.remove=bbe,G.rest=D_e,G.reverse=C$,G.sampleSize=O_e,G.set=B1e,G.setWith=V1e,G.shuffle=w_e,G.slice=_be,G.sortBy=C_e,G.sortedUniq=Pbe,G.sortedUniqBy=$be,G.split=lOe,G.spread=R_e,G.tail=Abe,G.take=Ebe,G.takeRight=Mbe,G.takeRightWhile=Ibe,G.takeWhile=Dbe,G.tap=Zbe,G.throttle=k_e,G.thru=M1,G.toArray=lz,G.toPairs=pz,G.toPairsIn=vz,G.toPath=WOe,G.toPlainObject=cz,G.transform=z1e,G.unary=N_e,G.union=Rbe,G.unionBy=kbe,G.unionWith=Nbe,G.uniq=Lbe,G.uniqBy=Bbe,G.uniqWith=Vbe,G.unset=F1e,G.unzip=T$,G.unzipWith=UV,G.update=W1e,G.updateWith=Q1e,G.values=ep,G.valuesIn=H1e,G.without=zbe,G.words=yz,G.wrap=L_e,G.xor=Fbe,G.xorBy=Wbe,G.xorWith=Qbe,G.zip=Hbe,G.zipObject=Gbe,G.zipObjectDeep=jbe,G.zipWith=Ube,G.entries=pz,G.entriesIn=vz,G.extend=fz,G.extendWith=B1,N$(G,G),G.add=HOe,G.attempt=bz,G.camelCase=Z1e,G.capitalize=gz,G.ceil=GOe,G.clamp=G1e,G.clone=V_e,G.cloneDeep=F_e,G.cloneDeepWith=W_e,G.cloneWith=z_e,G.conformsTo=Q_e,G.deburr=mz,G.defaultTo=xOe,G.divide=jOe,G.endsWith=X1e,G.eq=Va,G.escape=Y1e,G.escapeRegExp=q1e,G.every=i_e,G.find=a_e,G.findIndex=WV,G.findKey=b1e,G.findLast=s_e,G.findLastIndex=QV,G.findLastKey=_1e,G.floor=UOe,G.forEach=XV,G.forEachRight=YV,G.forIn=O1e,G.forInRight=w1e,G.forOwn=x1e,G.forOwnRight=S1e,G.get=M$,G.gt=H_e,G.gte=G_e,G.has=P1e,G.hasIn=I$,G.head=GV,G.identity=Wi,G.includes=d_e,G.indexOf=sbe,G.inRange=j1e,G.invoke=E1e,G.isArguments=gf,G.isArray=xt,G.isArrayBuffer=j_e,G.isArrayLike=zi,G.isArrayLikeObject=qn,G.isBoolean=U_e,G.isBuffer=Iu,G.isDate=Z_e,G.isElement=X_e,G.isEmpty=Y_e,G.isEqual=q_e,G.isEqualWith=K_e,G.isError=A$,G.isFinite=J_e,G.isFunction=Pl,G.isInteger=iz,G.isLength=N1,G.isMap=oz,G.isMatch=e1e,G.isMatchWith=t1e,G.isNaN=n1e,G.isNative=r1e,G.isNil=o1e,G.isNull=i1e,G.isNumber=az,G.isObject=Vn,G.isObjectLike=Hn,G.isPlainObject=xm,G.isRegExp=E$,G.isSafeInteger=a1e,G.isSet=sz,G.isString=L1,G.isSymbol=po,G.isTypedArray=Jh,G.isUndefined=s1e,G.isWeakMap=l1e,G.isWeakSet=u1e,G.join=dbe,G.kebabCase=K1e,G.last=jo,G.lastIndexOf=hbe,G.lowerCase=J1e,G.lowerFirst=eOe,G.lt=c1e,G.lte=f1e,G.max=ZOe,G.maxBy=XOe,G.mean=YOe,G.meanBy=qOe,G.min=KOe,G.minBy=JOe,G.stubArray=B$,G.stubFalse=V$,G.stubObject=BOe,G.stubString=VOe,G.stubTrue=zOe,G.multiply=ewe,G.nth=pbe,G.noConflict=EOe,G.noop=L$,G.now=D1,G.pad=tOe,G.padEnd=nOe,G.padStart=rOe,G.parseInt=iOe,G.random=U1e,G.reduce=m_e,G.reduceRight=y_e,G.repeat=oOe,G.replace=aOe,G.result=L1e,G.round=twe,G.runInContext=ce,G.sample=__e,G.size=x_e,G.snakeCase=sOe,G.some=S_e,G.sortedIndex=Obe,G.sortedIndexBy=wbe,G.sortedIndexOf=xbe,G.sortedLastIndex=Sbe,G.sortedLastIndexBy=Cbe,G.sortedLastIndexOf=Tbe,G.startCase=uOe,G.startsWith=cOe,G.subtract=nwe,G.sum=rwe,G.sumBy=iwe,G.template=fOe,G.times=FOe,G.toFinite=$l,G.toInteger=Et,G.toLength=uz,G.toLower=dOe,G.toNumber=Uo,G.toSafeInteger=d1e,G.toString=sn,G.toUpper=hOe,G.trim=pOe,G.trimEnd=vOe,G.trimStart=gOe,G.truncate=mOe,G.unescape=yOe,G.uniqueId=QOe,G.upperCase=bOe,G.upperFirst=D$,G.each=XV,G.eachRight=YV,G.first=GV,N$(G,function(){var _={};return ws(G,function(C,E){fn.call(G.prototype,E)||(_[E]=C)}),_}(),{chain:!1}),G.VERSION=r,Fo(["bind","bindKey","curry","curryRight","partial","partialRight"],function(_){G[_].placeholder=G}),Fo(["drop","take"],function(_,C){Ft.prototype[_]=function(E){E=E===n?1:vr(Et(E),0);var N=this.__filtered__&&!C?new Ft(this):this.clone();return N.__filtered__?N.__takeCount__=ei(E,N.__takeCount__):N.__views__.push({size:ei(E,H),type:_+(N.__dir__<0?"Right":"")}),N},Ft.prototype[_+"Right"]=function(E){return this.reverse()[_](E).reverse()}}),Fo(["filter","map","takeWhile"],function(_,C){var E=C+1,N=E==L||E==B;Ft.prototype[_]=function(Q){var U=this.clone();return U.__iteratees__.push({iteratee:ut(Q,3),type:E}),U.__filtered__=U.__filtered__||N,U}}),Fo(["head","last"],function(_,C){var E="take"+(C?"Right":"");Ft.prototype[_]=function(){return this[E](1).value()[0]}}),Fo(["initial","tail"],function(_,C){var E="drop"+(C?"":"Right");Ft.prototype[_]=function(){return this.__filtered__?new Ft(this):this[E](1)}}),Ft.prototype.compact=function(){return this.filter(Wi)},Ft.prototype.find=function(_){return this.filter(_).head()},Ft.prototype.findLast=function(_){return this.reverse().find(_)},Ft.prototype.invokeMap=Nt(function(_,C){return typeof _=="function"?new Ft(this):this.map(function(E){return mm(E,_,C)})}),Ft.prototype.reject=function(_){return this.filter(k1(ut(_)))},Ft.prototype.slice=function(_,C){_=Et(_);var E=this;return E.__filtered__&&(_>0||C<0)?new Ft(E):(_<0?E=E.takeRight(-_):_&&(E=E.drop(_)),C!==n&&(C=Et(C),E=C<0?E.dropRight(-C):E.take(C-_)),E)},Ft.prototype.takeRightWhile=function(_){return this.reverse().takeWhile(_).reverse()},Ft.prototype.toArray=function(){return this.take(H)},ws(Ft.prototype,function(_,C){var E=/^(?:filter|find|map|reject)|While$/.test(C),N=/^(?:head|last)$/.test(C),Q=G[N?"take"+(C=="last"?"Right":""):C],U=N||/^find/.test(C);Q&&(G.prototype[C]=function(){var q=this.__wrapped__,te=N?[1]:arguments,fe=q instanceof Ft,xe=te[0],Ce=fe||xt(q),Ae=function(Vt){var jt=Q.apply(G,Cu([Vt],te));return N&&We?jt[0]:jt};Ce&&E&&typeof xe=="function"&&xe.length!=1&&(fe=Ce=!1);var We=this.__chain__,et=!!this.__actions__.length,dt=U&&!We,Dt=fe&&!et;if(!U&&Ce){q=Dt?q:new Ft(this);var ht=_.apply(q,te);return ht.__actions__.push({func:M1,args:[Ae],thisArg:n}),new Qo(ht,We)}return dt&&Dt?_.apply(this,te):(ht=this.thru(Ae),dt?N?ht.value()[0]:ht.value():ht)})}),Fo(["pop","push","shift","sort","splice","unshift"],function(_){var C=r1[_],E=/^(?:push|sort|unshift)$/.test(_)?"tap":"thru",N=/^(?:pop|shift)$/.test(_);G.prototype[_]=function(){var Q=arguments;if(N&&!this.__chain__){var U=this.value();return C.apply(xt(U)?U:[],Q)}return this[E](function(q){return C.apply(xt(q)?q:[],Q)})}}),ws(Ft.prototype,function(_,C){var E=G[C];if(E){var N=E.name+"";fn.call(Zh,N)||(Zh[N]=[]),Zh[N].push({name:C,func:E})}}),Zh[S1(n,y).name]=[{name:"wrapper",func:n}],Ft.prototype.clone=y0e,Ft.prototype.reverse=b0e,Ft.prototype.value=_0e,G.prototype.at=Xbe,G.prototype.chain=Ybe,G.prototype.commit=qbe,G.prototype.next=Kbe,G.prototype.plant=e_e,G.prototype.reverse=t_e,G.prototype.toJSON=G.prototype.valueOf=G.prototype.value=n_e,G.prototype.first=G.prototype.head,cm&&(G.prototype[cm]=Jbe),G},Gh=qme();lf?((lf.exports=Gh)._=Gh,k2._=Gh):Nr._=Gh}).call(zl)})(SS,SS.exports);var y9=SS.exports;const fQe=h.defineComponent({name:"DContainer",props:{style:Object,props:Object},setup(t){const e=h.computed(()=>{var i,o,a,s,l,u;return{width:((i=t.props)==null?void 0:i.width)+"px",height:((o=t.props)==null?void 0:o.height)+"px",transform:`rotateX(${((a=t.props)==null?void 0:a.rotateX)||0}deg) rotateY(${((s=t.props)==null?void 0:s.rotateY)||0}deg) rotateZ(${((l=t.props)==null?void 0:l.rotateZ)||0}deg)`,opacity:((u=t.props)==null?void 0:u.opacity)/100,...oR(y9.pick(t.style,["boxShadow","webkitBoxReflect"]))}}),n=h.computed(()=>{var i,o,a,s;return{paddingLeft:((i=t.props)==null?void 0:i.paddingLeft)+"px",paddingRight:((o=t.props)==null?void 0:o.paddingRight)+"px",paddingTop:((a=t.props)==null?void 0:a.paddingTop)+"px",paddingBottom:((s=t.props)==null?void 0:s.paddingBottom)+"px",overflow:"hidden"}}),r=h.computed(()=>{var a,s;const{style:i={}}=t,o=oR(y9.pick(i,["background","backdropFilter","borderRadius","borderStyle","borderColor","borderWidth"]));return{position:"absolute",boxSizing:"border-box",left:0,top:0,opacity:i.opacity/100,width:((a=t.props)==null?void 0:a.width)+"px",height:((s=t.props)==null?void 0:s.height)+"px",...o}});return{getContentStyle:n,getBackgroundStyle:r,getContainetStyle:e}}}),Dr=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n};function dQe(t,e,n,r,i,o){return h.openBlock(),h.createElementBlock("div",h.mergeProps({class:"component-contaier",style:t.getContainetStyle},t.$attrs),[h.createElementVNode("div",{class:"component-background",style:h.normalizeStyle(t.getBackgroundStyle)},null,4),h.createElementVNode("div",{class:"component-content",style:h.normalizeStyle(t.getContentStyle)},[h.renderSlot(t.$slots,"default",{},void 0,!0)],4)],16)}const Nd=Dr(fQe,[["render",dQe],["__scopeId","data-v-54953270"]]);Nd.install=t=>(t.component(Nd.name,Nd),t);const hQe=Object.freeze(Object.defineProperty({__proto__:null,Container:Nd,default:Nd},Symbol.toStringTag,{value:"Module"})),y8={text:{type:String,required:!0},width:{type:Number},height:{type:Number},fontSize:{type:Number},fontWeight:{type:[Number,String]},color:{type:String},backgroundColor:{type:String},textAlign:{type:String},direction:{type:String}},pQe={container:{style:{background:{type:"none"}},props:{width:300,height:80}},props:{text:"标题内容",fontSize:24,color:"#fff",fontWeight:"bold",textAlign:"left",direction:"horizontal"}},vQe=h.defineComponent({name:"DTitle",props:y8,setup(t){return{style:h.computed(()=>{const n=oR(t),r={};return n.color.length>9&&(r.backgroundImage=n.color,r.webkitBackgroundClip="text",r.webkitTextFillColor="transparent"),{...r,...n,width:"100%",height:"100%",lineHeight:t.height+"px"}})}}});function gQe(t,e,n,r,i,o){return h.openBlock(),h.createElementBlock("div",{class:"cus-title",style:h.normalizeStyle(t.style)},h.toDisplayString(t.text),5)}const Ld=Dr(vQe,[["render",gQe]]),zoe=t=>(h.pushScopeId("data-v-eace9702"),t=t(),h.popScopeId(),t),mQe={key:0,class:"color-box"},yQe={class:"img-preview"},bQe=zoe(()=>h.createElementVNode("div",{class:"img-empty"},"未选择",-1)),_Qe=zoe(()=>h.createElementVNode("div",{class:"img-tip"},"选择素材",-1)),OQe=h.defineComponent({__name:"BackgroundSelect",props:{value:{default:()=>({type:"none",color:"",image:"",fillType:""})},filterOptions:{}},emits:["update:value"],setup(t,{emit:e}){const n=t,r=e,i=h.ref(n.value),o=[{label:"无",value:"none"},{label:"颜色",value:"color"},{label:"图片",value:"image"}],a=h.computed(()=>n.filterOptions?o.filter(l=>{var u;return!((u=n.filterOptions)!=null&&u.includes(l.value))}):o);h.watch(()=>i.value,()=>{r("update:value",i.value)},{deep:!0});const s=l=>{l==="color"&&!i.value.color&&(i.value.color="#0B074BFF")};return(l,u)=>(h.openBlock(),h.createElementBlock(h.Fragment,null,[h.createVNode(h.unref(Zi),{value:i.value.type,"onUpdate:value":u[0]||(u[0]=c=>i.value.type=c),style:{width:"100%"},options:a.value,onChange:s},null,8,["value","options"]),i.value.type==="color"?(h.openBlock(),h.createElementBlock("div",mQe,[h.createVNode(h.unref(rv),{modelValue:i.value.color,"onUpdate:modelValue":u[1]||(u[1]=c=>i.value.color=c),"color-format":"hex","show-alpha":"",size:"small"},null,8,["modelValue"]),h.createVNode(h.unref(mT),{modelValue:i.value.color,"onUpdate:modelValue":u[2]||(u[2]=c=>i.value.color=c),size:"small"},null,8,["modelValue"])])):i.value.type==="image"?(h.openBlock(),h.createElementBlock(h.Fragment,{key:1},[h.createVNode(h.unref(Gn),{style:{"margin-top":"12px"},placeholder:"图片地址",value:i.value.image,"onUpdate:value":u[3]||(u[3]=c=>i.value.image=c)},null,8,["value"]),h.createElementVNode("div",yQe,[bQe,h.createVNode(h.unref(Ku),{src:i.value.image},null,8,["src"]),_Qe]),h.createVNode(h.unref(gte),{modelValue:i.value.fillType,"onUpdate:modelValue":u[4]||(u[4]=c=>i.value.fillType=c)},{default:h.withCtx(()=>[h.createVNode(h.unref(Z0),{value:"cover"},{default:h.withCtx(()=>[h.createTextVNode("填充")]),_:1}),h.createVNode(h.unref(Z0),{value:"contain"},{default:h.withCtx(()=>[h.createTextVNode("适应")]),_:1}),h.createVNode(h.unref(Z0),{value:"stretch"},{default:h.withCtx(()=>[h.createTextVNode("拉伸")]),_:1})]),_:1},8,["modelValue"])],64)):h.createCommentVNode("",!0)],64))}}),wQe=Dr(OQe,[["__scopeId","data-v-eace9702"]]),xQe=h.defineComponent({__name:"ColorSelect",props:{value:{},gradient:{type:Boolean,default:!0}},emits:["update:value"],setup(t,{emit:e}){var s,l;const n=e,r=t,i=h.ref(((s=r.value)==null?void 0:s.length)<=9||!r.value?"pure":"gradient"),o=h.ref(r.value),a=h.ref(((l=r.value)==null?void 0:l.length)>=9?r.value.slice(22).replace(")","").split(","):["#4ba9ff","#fff"]);return h.watch(()=>[i.value,o.value,a.value],()=>{i.value==="pure"?o.value=o.value.length>9?"#FFFFFFFF":o.value:o.value=`linear-gradient(90deg, ${a.value.join(",")})`,n("update:value",o.value)},{deep:!0}),h.watch(()=>r.gradient,u=>{u||(i.value="pure",o.value=o.value.length>9?"#FFFFFFFF":o.value)}),(u,c)=>(h.openBlock(),h.createElementBlock(h.Fragment,null,[u.gradient?(h.openBlock(),h.createBlock(h.unref(gte),{key:0,modelValue:i.value,"onUpdate:modelValue":c[0]||(c[0]=f=>i.value=f),size:"small",style:{width:"100%"}},{default:h.withCtx(()=>[h.createVNode(h.unref(Z0),{value:"pure"},{default:h.withCtx(()=>[h.createTextVNode("单色")]),_:1}),h.createVNode(h.unref(Z0),{value:"gradient"},{default:h.withCtx(()=>[h.createTextVNode("渐变色")]),_:1})]),_:1},8,["modelValue"])):h.createCommentVNode("",!0),i.value==="pure"?(h.openBlock(),h.createElementBlock("div",{key:1,class:"color-box",style:h.normalizeStyle({marginTop:u.gradient?"12px":"0"})},[h.createVNode(h.unref(rv),{modelValue:o.value,"onUpdate:modelValue":c[1]||(c[1]=f=>o.value=f),"color-format":"hex","show-alpha":"",size:"small"},null,8,["modelValue"]),h.createVNode(h.unref(mT),{modelValue:o.value,"onUpdate:modelValue":c[2]||(c[2]=f=>o.value=f),size:"small"},null,8,["modelValue"])],4)):i.value==="gradient"?(h.openBlock(),h.createElementBlock("div",{key:2,class:"gradient-box",style:h.normalizeStyle({background:o.value})},[h.createVNode(h.unref(rv),{modelValue:a.value[0],"onUpdate:modelValue":c[3]||(c[3]=f=>a.value[0]=f),"color-format":"hex","show-alpha":"",size:"small"},null,8,["modelValue"]),h.createVNode(h.unref(rv),{modelValue:a.value[1],"onUpdate:modelValue":c[4]||(c[4]=f=>a.value[1]=f),"color-format":"hex","show-alpha":"",size:"small"},null,8,["modelValue"])],4)):h.createCommentVNode("",!0)],64))}}),SQe=Dr(xQe,[["__scopeId","data-v-d5768739"]]),CS=[{name:"清新",color:["#00a8e1","#99cc00","#e30039","#fcd300","#800080"]},{name:"复古",color:["#FFA69E","#FAE3D9","#B8F2E6","#56E39F","#3A837D"]},{name:"商务",color:["#194f97","#555555","#bd6b08","#00686b","#c82d31"]},{name:"经典",color:["#002c53","#ffa510","#0c84c6","#ffffff","#f74d4d"]},{name:"怀旧",color:["#3b6291","#943c39","#779043","#624c7c","#388498"]}],CQe={color:CS[0].color,title:{show:!0,left:"center",top:8,textStyle:{color:"#FFFFFFFF",fontSize:16,fontWeight:"normal"}},legend:{show:!0,textStyle:{color:"#FFFFFFFF"},top:32,bottom:"auto",left:"center",right:"auto"},grid:{bottom:34,right:20,left:20,top:60},xAxis:{type:"category",name:"",nameLocation:"middle",nameTruncate:{ellipsis:"...",maxWidth:80},nameTextStyle:{color:"#FFFFFFFF",fontSize:12,fontWeight:"normal",fontStyle:"normal"},axisLabel:{show:!0,color:"#9fadbf",fontSize:12,fontWeight:"normal",fontStyle:"normal"},axisLine:{show:!0,lineStyle:{width:1}},axisTick:{show:!0,lineStyle:{width:1,color:"#ccc"}}},yAxis:{splitLine:{show:!0,lineStyle:{type:"dashed",color:"#36485f"}},type:"value",name:"",nameLocation:"middle",nameTruncate:{ellipsis:"...",maxWidth:80},nameTextStyle:{color:"#FFFFFFFF",fontSize:12,fontWeight:"normal",fontStyle:"normal"},axisLabel:{show:!0,color:"#9fadbf",fontSize:12,fontWeight:"normal",fontStyle:"normal",rotate:0},axisLine:{show:!1,lineStyle:{width:1,color:"#ccc"}},axisTick:{show:!1,lineStyle:{width:1,color:"#ccc"}}},tooltip:{show:!0,trigger:"axis",formatter:"{b} {c}",axisPointer:{type:"line"},textStyle:{color:"#000000FF",fontSize:12,fontWeight:"normal",fontStyle:"normal"},padding:10,borderWidth:1,borderColor:"#ccc",borderRadius:4,backgroundColor:"#FFFFFFFF",extraCssText:""}},TQe={class:"color-list"},PQe={class:"del-btn"},$Qe=h.defineComponent({__name:"ColorScheme",props:{value:{type:Array,default:()=>[]}},emits:["update:value"],setup(t,{emit:e}){const n=t,r=CS.map(d=>d.color.join(",")),i=e,o=h.ref(r.includes(n.value.join(","))?n.value.join(","):"custom"),a=h.ref(n.value),s=h.ref();function l(d){d==="custom"||(a.value=d.split(","),i("update:value",d.split(",")))}const u=()=>{var d;(d=s.value)==null||d.show()};function c(d){a.value.push(d),o.value="custom",i("update:value",a.value)}const f=d=>{a.value.splice(d,1),o.value="custom",i("update:value",a.value)};return(d,p)=>(h.openBlock(),h.createElementBlock("div",null,[h.createVNode(h.unref(Zi),{value:o.value,"onUpdate:value":p[0]||(p[0]=v=>o.value=v),size:"small",style:{width:"100%"},onChange:l},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(h.unref(CS),v=>(h.openBlock(),h.createBlock(h.unref(jp),{key:v.name,value:v.color.join(",")},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(v.color.slice(0,5),g=>(h.openBlock(),h.createElementBlock("span",{class:"color-block",key:g,style:h.normalizeStyle({background:g})},null,4))),128)),h.createTextVNode(" "+h.toDisplayString(v.name),1)]),_:2},1032,["value"]))),128)),h.createVNode(h.unref(jp),{value:"custom"},{default:h.withCtx(()=>[h.createTextVNode("自定义组合")]),_:1})]),_:1},8,["value"]),h.createElementVNode("div",TQe,[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(a.value,(v,g)=>(h.openBlock(),h.createElementBlock("span",{class:"color-block",key:g,style:h.normalizeStyle({background:v})},[h.createElementVNode("span",PQe,[h.createVNode(h.unref(Ea),{onClick:m=>f(g)},null,8,["onClick"])])],4))),128)),h.createElementVNode("span",{class:"color-block cus-btn",onClick:u},[h.createVNode(h.unref(XT))]),h.createVNode(h.unref(rv),{ref_key:"colorPickerRef",ref:s,style:{width:"0",height:"0",opacity:"0"},onChange:c},null,512)])]))}}),AQe=Dr($Qe,[["__scopeId","data-v-b29b1b78"]]),EQe={class:"position"},MQe=h.defineComponent({__name:"Position",props:{value:{},type:{default:"line"}},emits:["update:value"],setup(t){return(e,n)=>(h.openBlock(),h.createElementBlock("div",EQe,[e.type==="line"?(h.openBlock(),h.createBlock(h.unref(ih),{key:0,value:e.value,onChange:n[0]||(n[0]=r=>e.$emit("update:value",r.target.value))},{default:h.withCtx(()=>[h.createVNode(h.unref(Bs),{value:"left"},{default:h.withCtx(()=>[h.createVNode(h.unref(e8))]),_:1}),h.createVNode(h.unref(Bs),{value:"center"},{default:h.withCtx(()=>[h.createVNode(h.unref(J4))]),_:1}),h.createVNode(h.unref(Bs),{value:"right"},{default:h.withCtx(()=>[h.createVNode(h.unref(t8))]),_:1})]),_:1},8,["value"])):e.type==="round"?(h.openBlock(),h.createBlock(h.unref(ih),{key:1,value:e.value,onChange:n[1]||(n[1]=r=>e.$emit("update:value",r.target.value))},{default:h.withCtx(()=>[h.createVNode(h.unref(Bs),{value:"top"},{default:h.withCtx(()=>[h.createVNode(h.unref(a8))]),_:1}),h.createVNode(h.unref(Bs),{value:"bottom"},{default:h.withCtx(()=>[h.createVNode(h.unref(r8))]),_:1}),h.createVNode(h.unref(Bs),{value:"left"},{default:h.withCtx(()=>[h.createVNode(h.unref(i8))]),_:1}),h.createVNode(h.unref(Bs),{value:"right"},{default:h.withCtx(()=>[h.createVNode(h.unref(o8))]),_:1})]),_:1},8,["value"])):h.createCommentVNode("",!0)]))}}),IQe=Dr(MQe,[["__scopeId","data-v-a4b8591a"]]),DQe={class:"font-style"},RQe={class:"cus-btn"},kQe=h.defineComponent({__name:"FontStyle",props:{value:{}},emits:["update:value"],setup(t,{emit:e}){var g,m,y,b;const n=t,r=e,i=h.ref((g=n.value)==null?void 0:g.bold),o=h.ref((m=n.value)==null?void 0:m.italic),a=h.ref((y=n.value)==null?void 0:y.size),s=h.ref((b=n.value)==null?void 0:b.color),l=h.ref(),u=()=>{r("update:value",{size:a.value,bold:i.value,italic:o.value,color:s.value})},c=()=>{i.value=!i.value,u()},f=()=>{o.value=!o.value,u()};function d(O){s.value=O,u()}function p(O){a.value=O,u()}const v=()=>{var O;(O=l.value)==null||O.show()};return(O,w)=>(h.openBlock(),h.createElementBlock("div",DQe,[h.createVNode(h.unref(ui),{size:"small",onClick:v},{default:h.withCtx(()=>[h.createElementVNode("span",RQe,[h.createVNode(h.unref(s8)),h.createElementVNode("div",{class:"color-block",style:h.normalizeStyle({background:s.value})},null,4),h.createVNode(h.unref(rv),{ref_key:"colorPickerRef",ref:l,style:{width:"0",height:"0",opacity:"0"},value:s.value,"onUpdate:value":w[0]||(w[0]=x=>s.value=x),onChange:d},null,8,["value"])])]),_:1}),h.createVNode(h.unref(ui),{size:"small",onClick:c},{default:h.withCtx(()=>[h.createElementVNode("span",{class:h.normalizeClass(["cus-btn",{"active-btn":i.value}])},[h.createVNode(h.unref(n8))],2)]),_:1}),h.createVNode(h.unref(ui),{size:"small",onClick:f},{default:h.withCtx(()=>[h.createElementVNode("span",{class:h.normalizeClass(["cus-btn",{"active-btn":o.value}])},[h.createVNode(h.unref(l8))],2)]),_:1}),h.createVNode(h.unref(r_),{size:"small",value:a.value,min:12,step:1,precision:0,style:{width:"80px"},onChange:p},{addonAfter:h.withCtx(()=>[h.createTextVNode("px")]),_:1},8,["value"])]))}}),NQe=Dr(kQe,[["__scopeId","data-v-12e62bfe"]]),LQe={class:"cus-slider"},BQe=h.defineComponent({__name:"CusSlider",props:{value:{}},emits:["update:value"],setup(t){return(e,n)=>(h.openBlock(),h.createElementBlock("div",LQe,[h.createVNode(h.unref(qFe),{value:e.value,onChange:n[0]||(n[0]=r=>e.$emit("update:value",r)),"tip-formatter":r=>`${r}%`},null,8,["value","tip-formatter"]),h.createVNode(h.unref(r_),{value:e.value,onChange:n[1]||(n[1]=r=>e.$emit("update:value",r)),"addon-after":"%"},null,8,["value"])]))}}),VQe=Dr(BQe,[["__scopeId","data-v-2fe8fa98"]]),zQe=h.defineComponent({name:"FmBorderRadius",components:{RadioGroup:ih,RadioButton:Bs,InputNumber:r_,Select:Zi,RadiusUpleftOutlined:f8,RadiusUprightOutlined:d8,RadiusBottomleftOutlined:u8,RadiusBottomrightOutlined:c8},props:{value:{type:Object,default:()=>({})}},emits:["update:value"],setup(t,{emit:e}){var r,i,o,a;const n=h.reactive({type:t.value.type||"all",value:t.value.type==="all"?t.value.value:0,unit:t.value.unit||"px",topLeft:typeof t.value.value=="object"?(r=t.value.value)==null?void 0:r.topLeft:0,topRight:typeof t.value.value=="object"?(i=t.value.value)==null?void 0:i.topRight:0,bottomLeft:typeof t.value.value=="object"?(o=t.value.value)==null?void 0:o.bottomLeft:0,bottomRight:typeof t.value.value=="object"?(a=t.value.value)==null?void 0:a.bottomRight:0});return h.watch(()=>n,s=>{e("update:value",{type:s.type,value:s.type==="all"?s.value:{topLeft:s.topLeft,topRight:s.topRight,bottomLeft:s.bottomLeft,bottomRight:s.bottomRight},unit:s.unit})},{deep:!0}),{radius:n,unitOptions:[{label:"px",value:"px"},{label:"%",value:"%"}]}}}),FQe={key:0,class:"all"},WQe={key:1,class:"custom"};function QQe(t,e,n,r,i,o){const a=h.resolveComponent("RadioButton"),s=h.resolveComponent("RadioGroup"),l=h.resolveComponent("InputNumber"),u=h.resolveComponent("Select"),c=h.resolveComponent("RadiusUpleftOutlined"),f=h.resolveComponent("RadiusUprightOutlined"),d=h.resolveComponent("RadiusBottomleftOutlined"),p=h.resolveComponent("RadiusBottomrightOutlined");return h.openBlock(),h.createElementBlock("div",null,[h.createVNode(s,{value:t.radius.type,"onUpdate:value":e[0]||(e[0]=v=>t.radius.type=v)},{default:h.withCtx(()=>[h.createVNode(a,{value:"all"},{default:h.withCtx(()=>[h.createTextVNode("整体")]),_:1}),h.createVNode(a,{value:"custom"},{default:h.withCtx(()=>[h.createTextVNode("单个")]),_:1})]),_:1},8,["value"]),t.radius.type==="all"?(h.openBlock(),h.createElementBlock("div",FQe,[h.createVNode(l,{value:t.radius.value,"onUpdate:value":e[1]||(e[1]=v=>t.radius.value=v)},null,8,["value"]),h.createVNode(u,{value:t.radius.unit,"onUpdate:value":e[2]||(e[2]=v=>t.radius.unit=v),options:t.unitOptions},null,8,["value","options"])])):(h.openBlock(),h.createElementBlock("div",WQe,[h.createVNode(l,{value:t.radius.topLeft,"onUpdate:value":e[3]||(e[3]=v=>t.radius.topLeft=v)},{addonBefore:h.withCtx(()=>[h.createVNode(c)]),_:1},8,["value"]),h.createVNode(l,{value:t.radius.topRight,"onUpdate:value":e[4]||(e[4]=v=>t.radius.topRight=v)},{addonBefore:h.withCtx(()=>[h.createVNode(f)]),_:1},8,["value"]),h.createVNode(l,{value:t.radius.bottomLeft,"onUpdate:value":e[5]||(e[5]=v=>t.radius.bottomLeft=v)},{addonBefore:h.withCtx(()=>[h.createVNode(d)]),_:1},8,["value"]),h.createVNode(l,{value:t.radius.bottomRight,"onUpdate:value":e[6]||(e[6]=v=>t.radius.bottomRight=v)},{addonBefore:h.withCtx(()=>[h.createVNode(p)]),_:1},8,["value"]),h.createVNode(u,{value:t.radius.unit,"onUpdate:value":e[7]||(e[7]=v=>t.radius.unit=v),options:t.unitOptions},null,8,["value","options"])]))])}const HQe=Dr(zQe,[["render",QQe],["__scopeId","data-v-da2b5cf6"]]),GQe=h.defineComponent({__name:"CusFormItem",props:{item:{},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,i=h.ref(n.modelValue);return h.watch(()=>i.value,()=>{r("update:modelValue",i.value)},{deep:!0}),h.watch(()=>n.modelValue,o=>{jb(o,i.value)||(i.value=o)}),(o,a)=>(h.openBlock(),h.createBlock(h.unref(die),{label:o.item.type!=="divider"?o.item.label:"",name:o.item.prop,rules:o.item.rules},{default:h.withCtx(()=>{var s,l,u,c,f,d,p,v,g,m,y;return[o.item.type==="divider"?(h.openBlock(),h.createBlock(h.unref(jVe),{key:0,style:{margin:"0"}},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(o.item.label),1)]),_:1})):o.item.type==="input"?(h.openBlock(),h.createBlock(h.unref(Gn),h.mergeProps({key:1,value:i.value,"onUpdate:value":a[0]||(a[0]=b=>i.value=b)},(s=o.item)==null?void 0:s.fieldProps),null,16,["value"])):o.item.type==="select"?(h.openBlock(),h.createBlock(h.unref(Zi),h.mergeProps({key:2,value:i.value,"onUpdate:value":a[1]||(a[1]=b=>i.value=b)},(l=o.item)==null?void 0:l.fieldProps),null,16,["value"])):o.item.type==="inputNumber"?(h.openBlock(),h.createBlock(h.unref(r_),h.mergeProps({key:3,value:i.value,"onUpdate:value":a[2]||(a[2]=b=>i.value=b)},(u=o.item)==null?void 0:u.fieldProps,{style:{width:"100%"}}),null,16,["value"])):o.item.type==="image"?(h.openBlock(),h.createBlock(h.unref(Ku),h.mergeProps({key:4,value:i.value,"onUpdate:value":a[3]||(a[3]=b=>i.value=b)},(c=o.item)==null?void 0:c.fieldProps),null,16,["value"])):o.item.type==="checkboxGroup"?(h.openBlock(),h.createBlock(h.unref(yS),h.mergeProps({key:5,value:i.value,"onUpdate:value":a[4]||(a[4]=b=>i.value=b)},(f=o.item)==null?void 0:f.fieldProps),null,16,["value"])):o.item.type==="backgroundSelect"?(h.openBlock(),h.createBlock(wQe,h.mergeProps({key:6,value:i.value,"onUpdate:value":a[5]||(a[5]=b=>i.value=b)},(d=o.item)==null?void 0:d.fieldProps),null,16,["value"])):o.item.type==="colorSelect"?(h.openBlock(),h.createBlock(SQe,h.mergeProps({key:7,value:i.value,"onUpdate:value":a[6]||(a[6]=b=>i.value=b)},(p=o.item)==null?void 0:p.fieldProps),null,16,["value"])):o.item.type==="colorScheme"?(h.openBlock(),h.createBlock(AQe,h.mergeProps({key:8,value:i.value,"onUpdate:value":a[7]||(a[7]=b=>i.value=b)},(v=o.item)==null?void 0:v.fieldProps),null,16,["value"])):o.item.type==="radioGroup"?(h.openBlock(),h.createBlock(h.unref(ih),h.mergeProps({key:9,value:i.value,"onUpdate:value":a[8]||(a[8]=b=>i.value=b),size:"small"},(g=o.item)==null?void 0:g.fieldProps),null,16,["value"])):o.item.type==="radioGroupButton"?(h.openBlock(),h.createBlock(h.unref(ih),{key:10,value:i.value,"onUpdate:value":a[9]||(a[9]=b=>i.value=b),size:"small"},{default:h.withCtx(()=>[(h.openBlock(!0),h.createElementBlock(h.Fragment,null,h.renderList(o.item.fieldProps.options,b=>(h.openBlock(),h.createBlock(h.unref(Bs),{key:b.value,value:b.value},{default:h.withCtx(()=>[h.createTextVNode(h.toDisplayString(b.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"])):o.item.type==="position"?(h.openBlock(),h.createBlock(IQe,h.mergeProps({key:11,value:i.value,"onUpdate:value":a[10]||(a[10]=b=>i.value=b)},(m=o.item)==null?void 0:m.fieldProps),null,16,["value"])):o.item.type==="fontStyle"?(h.openBlock(),h.createBlock(NQe,h.mergeProps({key:12,value:i.value,"onUpdate:value":a[11]||(a[11]=b=>i.value=b)},(y=o.item)==null?void 0:y.fieldProps),null,16,["value"])):o.item.type==="slider"?(h.openBlock(),h.createBlock(h.unref(jy),{key:13},{default:h.withCtx(()=>{var b;return[h.createVNode(VQe,h.mergeProps({value:i.value,"onUpdate:value":a[12]||(a[12]=O=>i.value=O)},(b=o.item)==null?void 0:b.fieldProps),null,16,["value"])]}),_:1})):o.item.type==="boderRadiusSelect"?(h.openBlock(),h.createBlock(h.unref(jy),{key:14},{default:h.withCtx(()=>{var b;return[h.createVNode(HQe,h.mergeProps({value:i.value,"onUpdate:value":a[13]||(a[13]=O=>i.value=O)},(b=o.item)==null?void 0:b.fieldProps),null,16,["value"])]}),_:1})):h.createCommentVNode("",!0),o.item.tip?(h.openBlock(),h.createBlock(h.unref(HT),{key:15,title:o.item.tip},{default:h.withCtx(()=>[h.createVNode(h.unref(QT),{style:{color:"#666"}})]),_:1},8,["title"])):h.createCommentVNode("",!0)]}),_:1},8,["label","name","rules"]))}}),jQe=Dr(GQe,[["__scopeId","data-v-04c55003"]]),yc=h.defineComponent({name:"DCusForm",props:{columns:{type:Array,default:()=>[]},formModel:{type:Object,default:()=>({})}},emits:["change"],setup(t,{emit:e}){const n=h.ref({}),r=h.ref(),i=h.ref({}),o=h.computed(()=>t.columns.map(f=>({...f,rules:(f==null?void 0:f.rules)||[]}))),a=f=>{f==null||f.forEach(d=>{var p;if(d.type==="group")a(d.children);else if(d.type==="dependency"){const v=(p=d.children)==null?void 0:p.call(d,$v(n.value,d.name||[]),n);a(v)}else{if(d.type==="divider")return;const v=Ut(t.formModel,d.prop);n.value[d.prop]=d!=null&&d.valueToForm?d.valueToForm(v,t.formModel):v??d.defaultValue,d.format?d.format(i,n.value[d.prop]):i.value[d.prop]=v??d.defaultValue}})},s=(f,d)=>{n.value[d.prop]=f,d.format?d.format(i,f):i.value[d.prop]=f,e("change",i.value)},l=f=>{var d;switch(f.type){case"dependency":{const p=(d=f.children)==null?void 0:d.call(f,$v(n.value,f.name||[]),n);return a(p),c(p)}case"group":return u(f);default:return React.createElement(jQe,{key:f.prop,item:f,modelValue:n.value[f.prop],"onUpdate:modelValue":p=>{s(p,f)}})}},u=f=>{var d;return React.createElement(K0,{style:{borderRadius:0}},React.createElement(mS,{style:{borderRadius:0},key:f.prop,header:f.label},(d=f.children)==null?void 0:d.map(p=>l(p))))},c=f=>f.map(d=>{switch(d.type){case"group":return u(d);default:return l(d)}});return h.watch(()=>o.value,f=>{f&&a(f)},{immediate:!0}),()=>React.createElement(gr,{model:n,colon:!1,"label-col":{span:8},ref:r,layout:"horizontal",size:"small"},c(o.value))}});yc.install=t=>(t.component(yc.name,yc),t);const Foe=h.defineComponent({__name:"Config",props:y8,emits:["change"],setup(t,{emit:e}){const n=t,r=e,i=h.computed(()=>[{label:"内容",prop:"text",type:"input",defaultValue:n.text},{label:"字体",prop:"fontSize",type:"inputNumber",defaultValue:n.fontSize},{label:"颜色",prop:"color",type:"colorSelect",defaultValue:n.color},{label:"对齐",prop:"textAlign",type:"radioGroup",defaultValue:n.textAlign,fieldProps:{options:[{label:"左对齐",value:"left"},{label:"居中",value:"center"},{label:"右对齐",value:"right"}]}}]),o=a=>{r("change",a)};return(a,s)=>(h.openBlock(),h.createBlock(h.unref(yc),h.mergeProps({columns:i.value},a.$attrs,{onChange:o}),null,16,["columns"]))}});Ld.Config=Foe;Ld.install=t=>(t.component(Ld.name,Ld),t);const UQe=Object.freeze(Object.defineProperty({__proto__:null,Config:Foe,default:Ld,defaultPropsValue:pQe,titleProps:y8},Symbol.toStringTag,{value:"Module"}));/*! *****************************************************************************
  309. Copyright (c) Microsoft Corporation.
  310. Permission to use, copy, modify, and/or distribute this software for any
  311. purpose with or without fee is hereby granted.
  312. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  313. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  314. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  315. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  316. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  317. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  318. PERFORMANCE OF THIS SOFTWARE.
  319. ***************************************************************************** */var aR=function(t,e){return aR=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])},aR(t,e)};function ie(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");aR(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var ZQe=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),XQe=function(){function t(){this.browser=new ZQe,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 t}(),Xf=new XQe;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Xf.wxa=!0,Xf.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Xf.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(Xf.node=!0,Xf.svgSupported=!0):YQe(navigator.userAgent,Xf);function YQe(t,e){var n=e.browser,r=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);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),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}const Ct=Xf;var b8=12,Woe="sans-serif",Ac=b8+"px "+Woe,qQe=20,KQe=100,JQe="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function e9e(t){var e={};if(typeof JSON>"u")return e;for(var n=0;n<t.length;n++){var r=String.fromCharCode(n+32),i=(t.charCodeAt(n)-qQe)/KQe;e[r]=i}return e}var t9e=e9e(JQe),ls={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var t,e;return function(n,r){if(!t){var i=ls.createCanvas();t=i&&i.getContext("2d")}if(t)return e!==r&&(e=t.font=r||Ac),t.measureText(n);n=n||"",r=r||Ac;var o=/((?:\d+)?\.?\d*)px/.exec(r),a=o&&+o[1]||b8,s=0;if(r.indexOf("mono")>=0)s=a*n.length;else for(var l=0;l<n.length;l++){var u=t9e[n[l]];s+=u==null?a:u*a}return{width:s}}}(),loadImage:function(t,e,n){var r=new Image;return r.onload=e,r.onerror=n,r.src=t,r}};function Qoe(t){for(var e in ls)t[e]&&(ls[e]=t[e])}var Hoe=Ta(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),Goe=Ta(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),Pg=Object.prototype.toString,sP=Array.prototype,n9e=sP.forEach,r9e=sP.filter,_8=sP.slice,i9e=sP.map,b9=(function(){}).constructor,uO=b9?b9.prototype:null,O8="__proto__",o9e=2311;function w8(){return o9e++}function ya(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function Ue(t){if(t==null||typeof t!="object")return t;var e=t,n=Pg.call(t);if(n==="[object Array]"){if(!lv(t)){e=[];for(var r=0,i=t.length;r<i;r++)e[r]=Ue(t[r])}}else if(Goe[n]){if(!lv(t)){var o=t.constructor;if(o.from)e=o.from(t);else{e=new o(t.length);for(var r=0,i=t.length;r<i;r++)e[r]=t[r]}}}else if(!Hoe[n]&&!lv(t)&&!Ec(t)){e={};for(var a in t)t.hasOwnProperty(a)&&a!==O8&&(e[a]=Ue(t[a]))}return e}function it(t,e,n){if(!Qe(e)||!Qe(t))return n?Ue(e):t;for(var r in e)if(e.hasOwnProperty(r)&&r!==O8){var i=t[r],o=e[r];Qe(o)&&Qe(i)&&!ve(o)&&!ve(i)&&!Ec(o)&&!Ec(i)&&!sR(o)&&!sR(i)&&!lv(o)&&!lv(i)?it(i,o,n):(n||!(r in t))&&(t[r]=Ue(e[r]))}return t}function lP(t,e){for(var n=t[0],r=1,i=t.length;r<i;r++)n=it(n,t[r],e);return n}function he(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==O8&&(t[n]=e[n]);return t}function Ge(t,e,n){for(var r=bt(e),i=0;i<r.length;i++){var o=r[i];(n?e[o]!=null:t[o]==null)&&(t[o]=e[o])}return t}var a9e=ls.createCanvas;function st(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n}return-1}function x8(t,e){var n=t.prototype;function r(){}r.prototype=e.prototype,t.prototype=new r;for(var i in n)n.hasOwnProperty(i)&&(t.prototype[i]=n[i]);t.prototype.constructor=t,t.superClass=e}function Qn(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var r=Object.getOwnPropertyNames(e),i=0;i<r.length;i++){var o=r[i];o!=="constructor"&&(n?e[o]!=null:t[o]==null)&&(t[o]=e[o])}else Ge(t,e,n)}function Yr(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function V(t,e,n){if(t&&e)if(t.forEach&&t.forEach===n9e)t.forEach(e,n);else if(t.length===+t.length)for(var r=0,i=t.length;r<i;r++)e.call(n,t[r],r,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function ye(t,e,n){if(!t)return[];if(!e)return uP(t);if(t.map&&t.map===i9e)return t.map(e,n);for(var r=[],i=0,o=t.length;i<o;i++)r.push(e.call(n,t[i],i,t));return r}function Ta(t,e,n,r){if(t&&e){for(var i=0,o=t.length;i<o;i++)n=e.call(r,n,t[i],i,t);return n}}function Yt(t,e,n){if(!t)return[];if(!e)return uP(t);if(t.filter&&t.filter===r9e)return t.filter(e,n);for(var r=[],i=0,o=t.length;i<o;i++)e.call(n,t[i],i,t)&&r.push(t[i]);return r}function joe(t,e,n){if(t&&e){for(var r=0,i=t.length;r<i;r++)if(e.call(n,t[r],r,t))return t[r]}}function bt(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}function s9e(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return t.apply(e,n.concat(_8.call(arguments)))}}var Re=uO&&Fe(uO.bind)?uO.call.bind(uO.bind):s9e;function nt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(_8.call(arguments)))}}function ve(t){return Array.isArray?Array.isArray(t):Pg.call(t)==="[object Array]"}function Fe(t){return typeof t=="function"}function Ie(t){return typeof t=="string"}function Xy(t){return Pg.call(t)==="[object String]"}function It(t){return typeof t=="number"}function Qe(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function sR(t){return!!Hoe[Pg.call(t)]}function di(t){return!!Goe[Pg.call(t)]}function Ec(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function u_(t){return t.colorStops!=null}function Uoe(t){return t.image!=null}function S8(t){return Pg.call(t)==="[object RegExp]"}function Mc(t){return t!==t}function Zn(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,r=t.length;n<r;n++)if(t[n]!=null)return t[n]}function Je(t,e){return t??e}function Ro(t,e,n){return t??e??n}function uP(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return _8.apply(t,e)}function cP(t){if(typeof t=="number")return[t,t,t,t];var e=t.length;return e===2?[t[0],t[1],t[0],t[1]]:e===3?[t[0],t[1],t[2],t[1]]:t}function je(t,e){if(!t)throw new Error(e)}function pa(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Zoe="__ec_primitive__";function Yy(t){t[Zoe]=!0}function lv(t){return t[Zoe]}var l9e=function(){function t(){this.data={}}return t.prototype.delete=function(e){var n=this.has(e);return n&&delete this.data[e],n},t.prototype.has=function(e){return this.data.hasOwnProperty(e)},t.prototype.get=function(e){return this.data[e]},t.prototype.set=function(e,n){return this.data[e]=n,this},t.prototype.keys=function(){return bt(this.data)},t.prototype.forEach=function(e){var n=this.data;for(var r in n)n.hasOwnProperty(r)&&e(n[r],r)},t}(),Xoe=typeof Map=="function";function u9e(){return Xoe?new Map:new l9e}var Yoe=function(){function t(e){var n=ve(e);this.data=u9e();var r=this;e instanceof t?e.each(i):e&&V(e,i);function i(o,a){n?r.set(o,a):r.set(a,o)}}return t.prototype.hasKey=function(e){return this.data.has(e)},t.prototype.get=function(e){return this.data.get(e)},t.prototype.set=function(e,n){return this.data.set(e,n),n},t.prototype.each=function(e,n){this.data.forEach(function(r,i){e.call(n,r,i)})},t.prototype.keys=function(){var e=this.data.keys();return Xoe?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t}();function Be(t){return new Yoe(t)}function qy(t,e){for(var n=new t.constructor(t.length+e.length),r=0;r<t.length;r++)n[r]=t[r];for(var i=t.length,r=0;r<e.length;r++)n[r+i]=e[r];return n}function c_(t,e){var n;if(Object.create)n=Object.create(t);else{var r=function(){};r.prototype=t,n=new r}return e&&he(n,e),n}function C8(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function ke(t,e){return t.hasOwnProperty(e)}function zn(){}var iy=180/Math.PI;const c9e=Object.freeze(Object.defineProperty({__proto__:null,HashMap:Yoe,RADIAN_TO_DEGREE:iy,assert:je,bind:Re,clone:Ue,concatArray:qy,createCanvas:a9e,createHashMap:Be,createObject:c_,curry:nt,defaults:Ge,disableUserSelect:C8,each:V,eqNaN:Mc,extend:he,filter:Yt,find:joe,guid:w8,hasOwn:ke,indexOf:st,inherits:x8,isArray:ve,isArrayLike:Yr,isBuiltInObject:sR,isDom:Ec,isFunction:Fe,isGradientObject:u_,isImagePatternObject:Uoe,isNumber:It,isObject:Qe,isPrimitive:lv,isRegExp:S8,isString:Ie,isStringSafe:Xy,isTypedArray:di,keys:bt,logError:ya,map:ye,merge:it,mergeAll:lP,mixin:Qn,noop:zn,normalizeCssArray:cP,reduce:Ta,retrieve:Zn,retrieve2:Je,retrieve3:Ro,setAsPrimitive:Yy,slice:uP,trim:pa},Symbol.toStringTag,{value:"Module"}));function Xc(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function ii(t,e){return t[0]=e[0],t[1]=e[1],t}function Js(t){return[t[0],t[1]]}function qoe(t,e,n){return t[0]=e,t[1]=n,t}function lR(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function TS(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function ic(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function Ky(t){return Math.sqrt(T8(t))}var f9e=Ky;function T8(t){return t[0]*t[0]+t[1]*t[1]}var d9e=T8;function h9e(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function p9e(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function v9e(t,e){return t[0]*e[0]+t[1]*e[1]}function oy(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function Ph(t,e){var n=Ky(e);return n===0?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function PS(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var Wl=PS;function Koe(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var bc=Koe;function g9e(t,e){return t[0]=-e[0],t[1]=-e[1],t}function ay(t,e,n,r){return t[0]=e[0]+r*(n[0]-e[0]),t[1]=e[1]+r*(n[1]-e[1]),t}function Er(t,e,n){var r=e[0],i=e[1];return t[0]=n[0]*r+n[2]*i+n[4],t[1]=n[1]*r+n[3]*i+n[5],t}function Ql(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function Hl(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}const m9e=Object.freeze(Object.defineProperty({__proto__:null,add:lR,applyTransform:Er,clone:Js,copy:ii,create:Xc,dist:Wl,distSquare:bc,distance:PS,distanceSquare:Koe,div:p9e,dot:v9e,len:Ky,lenSquare:T8,length:f9e,lengthSquare:d9e,lerp:ay,max:Hl,min:Ql,mul:h9e,negate:g9e,normalize:Ph,scale:oy,scaleAndAdd:TS,set:qoe,sub:ic},Symbol.toStringTag,{value:"Module"}));var lp=function(){function t(e,n){this.target=e,this.topTarget=n&&n.topTarget}return t}(),y9e=function(){function t(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(e){for(var n=e.target;n&&!n.draggable;)n=n.parent||n.__hostTarget;n&&(this._draggingTarget=n,n.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new lp(n,e),"dragstart",e.event))},t.prototype._drag=function(e){var n=this._draggingTarget;if(n){var r=e.offsetX,i=e.offsetY,o=r-this._x,a=i-this._y;this._x=r,this._y=i,n.drift(o,a,e),this.handler.dispatchToElement(new lp(n,e),"drag",e.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 lp(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new lp(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var n=this._draggingTarget;n&&(n.dragging=!1),this.handler.dispatchToElement(new lp(n,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new lp(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t}(),Ma=function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,n,r,i){this._$handlers||(this._$handlers={});var o=this._$handlers;if(typeof n=="function"&&(i=r,r=n,n=null),!r||!e)return this;var a=this._$eventProcessor;n!=null&&a&&a.normalizeQuery&&(n=a.normalizeQuery(n)),o[e]||(o[e]=[]);for(var s=0;s<o[e].length;s++)if(o[e][s].h===r)return this;var l={h:r,query:n,ctx:i||this,callAtLast:r.zrEventfulCallAtLast},u=o[e].length-1,c=o[e][u];return c&&c.callAtLast?o[e].splice(u,0,l):o[e].push(l),this},t.prototype.isSilent=function(e){var n=this._$handlers;return!n||!n[e]||!n[e].length},t.prototype.off=function(e,n){var r=this._$handlers;if(!r)return this;if(!e)return this._$handlers={},this;if(n){if(r[e]){for(var i=[],o=0,a=r[e].length;o<a;o++)r[e][o].h!==n&&i.push(r[e][o]);r[e]=i}r[e]&&r[e].length===0&&delete r[e]}else delete r[e];return this},t.prototype.trigger=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var i=this._$handlers[e],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(e,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(e),this},t.prototype.triggerWithContext=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(!this._$handlers)return this;var i=this._$handlers[e],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(e,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(e),this},t}(),b9e=Math.log(2);function uR(t,e,n,r,i,o){var a=r+"-"+i,s=t.length;if(o.hasOwnProperty(a))return o[a];if(e===1){var l=Math.round(Math.log((1<<s)-1&~i)/b9e);return t[n][l]}for(var u=r|1<<n,c=n+1;r&1<<c;)c++;for(var f=0,d=0,p=0;d<s;d++){var v=1<<d;v&i||(f+=(p%2?-1:1)*t[n][d]*uR(t,e-1,c,u,i|v,o),p++)}return o[a]=f,f}function _9(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],r={},i=uR(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)*uR(n,7,a===0?1:0,1<<a,1<<s,r)/i*e[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 O9="___zrEVENTSAVED",DA=[];function _9e(t,e,n,r,i){return cR(DA,e,r,i,!0)&&cR(t,n,DA[0],DA[1])}function cR(t,e,n,r,i){if(e.getBoundingClientRect&&Ct.domSupported&&!Joe(e)){var o=e[O9]||(e[O9]={}),a=O9e(e,o),s=w9e(a,o,i);if(s)return s(t,n,r),!0}return!1}function O9e(t,e){var n=e.markers;if(n)return n;n=e.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;"),t.appendChild(a),n.push(a)}return n}function w9e(t,e,n){for(var r=n?"invTrans":"trans",i=e[r],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),f=2*u,d=c.left,p=c.top;a.push(d,p),l=l&&o&&d===o[f]&&p===o[f+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=a,e[r]=n?_9(s,a):_9(a,s))}function Joe(t){return t.nodeName.toUpperCase()==="CANVAS"}var x9e=/([&<>"'])/g,S9e={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Si(t){return t==null?"":(t+"").replace(x9e,function(e,n){return S9e[n]})}var C9e=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,RA=[],T9e=Ct.browser.firefox&&+Ct.browser.version.split(".")[0]<39;function fR(t,e,n,r){return n=n||{},r?w9(t,e,n):T9e&&e.layerX!=null&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):e.offsetX!=null?(n.zrX=e.offsetX,n.zrY=e.offsetY):w9(t,e,n),n}function w9(t,e,n){if(Ct.domSupported&&t.getBoundingClientRect){var r=e.clientX,i=e.clientY;if(Joe(t)){var o=t.getBoundingClientRect();n.zrX=r-o.left,n.zrY=i-o.top;return}else if(cR(RA,t,r,i)){n.zrX=RA[0],n.zrY=RA[1];return}}n.zrX=n.zrY=0}function P8(t){return t||window.event}function ia(t,e,n){if(e=P8(e),e.zrX!=null)return e;var r=e.type,i=r&&r.indexOf("touch")>=0;if(i){var a=r!=="touchend"?e.targetTouches[0]:e.changedTouches[0];a&&fR(t,a,e,n)}else{fR(t,e,e,n);var o=P9e(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&C9e.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function P9e(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,r=t.deltaY;if(n==null||r==null)return e;var i=Math.abs(r!==0?r:n),o=r>0?-1:r<0?1:n>0?-1:1;return 3*i*o}function dR(t,e,n,r){t.addEventListener(e,n,r)}function $9e(t,e,n,r){t.removeEventListener(e,n,r)}var ru=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function x9(t){return t.which===2||t.which===3}var A9e=function(){function t(){this._track=[]}return t.prototype.recognize=function(e,n,r){return this._doTrack(e,n,r),this._recognize(e)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(e,n,r){var i=e.touches;if(i){for(var o={points:[],touches:[],target:n,event:e},a=0,s=i.length;a<s;a++){var l=i[a],u=fR(r,l,{});o.points.push([u.zrX,u.zrY]),o.touches.push(l)}this._track.push(o)}},t.prototype._recognize=function(e){for(var n in kA)if(kA.hasOwnProperty(n)){var r=kA[n](this._track,e);if(r)return r}},t}();function S9(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function E9e(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var kA={pinch:function(t,e){var n=t.length;if(n){var r=(t[n-1]||{}).points,i=(t[n-2]||{}).points||r;if(i&&i.length>1&&r&&r.length>1){var o=S9(r)/S9(i);!isFinite(o)&&(o=1),e.pinchScale=o;var a=E9e(r);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}};function ao(){return[1,0,0,1,0,0]}function f_(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function fP(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function el(t,e,n){var r=e[0]*n[0]+e[2]*n[1],i=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function us(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function Yc(t,e,n,r){r===void 0&&(r=[0,0]);var i=e[0],o=e[2],a=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(n),f=Math.cos(n);return t[0]=i*f+s*c,t[1]=-i*c+s*f,t[2]=o*f+l*c,t[3]=-o*c+f*l,t[4]=f*(a-r[0])+c*(u-r[1])+r[0],t[5]=f*(u-r[1])-c*(a-r[0])+r[1],t}function dP(t,e,n){var r=n[0],i=n[1];return t[0]=e[0]*r,t[1]=e[1]*i,t[2]=e[2]*r,t[3]=e[3]*i,t[4]=e[4]*r,t[5]=e[5]*i,t}function $h(t,e){var n=e[0],r=e[2],i=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*r;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-r*l,t[3]=n*l,t[4]=(r*s-a*i)*l,t[5]=(o*i-n*s)*l,t):null}function eae(t){var e=ao();return fP(e,t),e}const M9e=Object.freeze(Object.defineProperty({__proto__:null,clone:eae,copy:fP,create:ao,identity:f_,invert:$h,mul:el,rotate:Yc,scale:dP,translate:us},Symbol.toStringTag,{value:"Module"}));var ot=function(){function t(e,n){this.x=e||0,this.y=n||0}return t.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(e,n){return this.x=e,this.y=n,this},t.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},t.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},t.prototype.scale=function(e){this.x*=e,this.y*=e},t.prototype.scaleAndAdd=function(e,n){this.x+=e.x*n,this.y+=e.y*n},t.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},t.prototype.dot=function(e){return this.x*e.x+this.y*e.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},t.prototype.distance=function(e){var n=this.x-e.x,r=this.y-e.y;return Math.sqrt(n*n+r*r)},t.prototype.distanceSquare=function(e){var n=this.x-e.x,r=this.y-e.y;return n*n+r*r},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(e){if(e){var n=this.x,r=this.y;return this.x=e[0]*n+e[2]*r+e[4],this.y=e[1]*n+e[3]*r+e[5],this}},t.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},t.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},t.set=function(e,n,r){e.x=n,e.y=r},t.copy=function(e,n){e.x=n.x,e.y=n.y},t.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},t.lenSquare=function(e){return e.x*e.x+e.y*e.y},t.dot=function(e,n){return e.x*n.x+e.y*n.y},t.add=function(e,n,r){e.x=n.x+r.x,e.y=n.y+r.y},t.sub=function(e,n,r){e.x=n.x-r.x,e.y=n.y-r.y},t.scale=function(e,n,r){e.x=n.x*r,e.y=n.y*r},t.scaleAndAdd=function(e,n,r,i){e.x=n.x+r.x*i,e.y=n.y+r.y*i},t.lerp=function(e,n,r,i){var o=1-i;e.x=o*n.x+i*r.x,e.y=o*n.y+i*r.y},t}(),cO=Math.min,fO=Math.max,xf=new ot,Sf=new ot,Cf=new ot,Tf=new ot,Rm=new ot,km=new ot,I9e=function(){function t(e,n,r,i){r<0&&(e=e+r,r=-r),i<0&&(n=n+i,i=-i),this.x=e,this.y=n,this.width=r,this.height=i}return t.prototype.union=function(e){var n=cO(e.x,this.x),r=cO(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=fO(e.x+e.width,this.x+this.width)-n:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=fO(e.y+e.height,this.y+this.height)-r:this.height=e.height,this.x=n,this.y=r},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(e){var n=this,r=e.width/n.width,i=e.height/n.height,o=ao();return us(o,o,[-n.x,-n.y]),dP(o,o,[r,i]),us(o,o,[e.x,e.y]),o},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var r=this,i=r.x,o=r.x+r.width,a=r.y,s=r.y+r.height,l=e.x,u=e.x+e.width,c=e.y,f=e.y+e.height,d=!(o<l||u<i||s<c||f<a);if(n){var p=1/0,v=0,g=Math.abs(o-l),m=Math.abs(u-i),y=Math.abs(s-c),b=Math.abs(f-a),O=Math.min(g,m),w=Math.min(y,b);o<l||u<i?O>v&&(v=O,g<m?ot.set(km,-g,0):ot.set(km,m,0)):O<p&&(p=O,g<m?ot.set(Rm,g,0):ot.set(Rm,-m,0)),s<c||f<a?w>v&&(v=w,y<b?ot.set(km,0,-y):ot.set(km,0,b)):O<p&&(p=O,y<b?ot.set(Rm,0,y):ot.set(Rm,0,-b))}return n&&ot.copy(n,d?Rm:km),d},t.prototype.contain=function(e,n){var r=this;return e>=r.x&&e<=r.x+r.width&&n>=r.y&&n<=r.y+r.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return this.width===0||this.height===0},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(e,n){e.x=n.x,e.y=n.y,e.width=n.width,e.height=n.height},t.applyTransform=function(e,n,r){if(!r){e!==n&&t.copy(e,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];e.x=n.x*i+a,e.y=n.y*o+s,e.width=n.width*i,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}xf.x=Cf.x=n.x,xf.y=Tf.y=n.y,Sf.x=Tf.x=n.x+n.width,Sf.y=Cf.y=n.y+n.height,xf.transform(r),Tf.transform(r),Sf.transform(r),Cf.transform(r),e.x=cO(xf.x,Sf.x,Cf.x,Tf.x),e.y=cO(xf.y,Sf.y,Cf.y,Tf.y);var l=fO(xf.x,Sf.x,Cf.x,Tf.x),u=fO(xf.y,Sf.y,Cf.y,Tf.y);e.width=l-e.x,e.height=u-e.y},t}();const at=I9e;var tae="silent";function D9e(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.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:R9e}}function R9e(){ru(this.event)}var k9e=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.handler=null,n}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(Ma),Nm=function(){function t(e,n){this.x=e,this.y=n}return t}(),N9e=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],NA=new at(0,0,0,0),nae=function(t){ie(e,t);function e(n,r,i,o,a){var s=t.call(this)||this;return s._hovered=new Nm(0,0),s.storage=n,s.painter=r,s.painterRoot=o,s._pointerSize=a,i=i||new k9e,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new y9e(s),s}return e.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(V(N9e,function(r){n.on&&n.on(r,this[r],this)},this),n.handler=this),this.proxy=n},e.prototype.mousemove=function(n){var r=n.zrX,i=n.zrY,o=rae(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 Nm(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)},e.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})},e.prototype.resize=function(){this._hovered=new Nm(0,0)},e.prototype.dispatch=function(n,r){var i=this[n];i&&i.call(this,r)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(n){var r=this.proxy;r.setCursor&&r.setCursor(n)},e.prototype.dispatchToElement=function(n,r,i){n=n||{};var o=n.target;if(!(o&&o.silent)){for(var a="on"+r,s=D9e(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)}))}},e.prototype.findHover=function(n,r,i){var o=this.storage.getDisplayList(),a=new Nm(n,r);if(C9(o,a,n,r,i),this._pointerSize&&!a.target){for(var s=[],l=this._pointerSize,u=l/2,c=new at(n-u,r-u,l,l),f=o.length-1;f>=0;f--){var d=o[f];d!==i&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(NA.copy(d.getBoundingRect()),d.transform&&NA.applyTransform(d.transform),NA.intersect(c)&&s.push(d))}if(s.length)for(var p=4,v=Math.PI/12,g=Math.PI*2,m=0;m<u;m+=p)for(var y=0;y<g;y+=v){var b=n+m*Math.cos(y),O=r+m*Math.sin(y);if(C9(s,a,b,O,i),a.target)return a}}return a},e.prototype.processGesture=function(n,r){this._gestureMgr||(this._gestureMgr=new A9e);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 Nm;s.target=o.target,this.dispatchToElement(s,a,o.event)}},e}(Ma);V(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){nae.prototype[t]=function(e){var n=e.zrX,r=e.zrY,i=rae(this,n,r),o,a;if((t!=="mouseup"||!i)&&(o=this.findHover(n,r),a=o.target),t==="mousedown")this._downEl=a,this._downPoint=[e.zrX,e.zrY],this._upEl=a;else if(t==="mouseup")this._upEl=a;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||Wl(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(o,t,e)}});function L9e(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var r=t,i=void 0,o=!1;r;){if(r.ignoreClip&&(o=!0),!o){var a=r.getClipPath();if(a&&!a.contain(e,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s||r.parent}return i?tae:!0}return!1}function C9(t,e,n,r,i){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==i&&!a.ignore&&(s=L9e(a,n,r))&&(!e.topTarget&&(e.topTarget=a),s!==tae)){e.target=a;break}}}function rae(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}var iae=32,Lm=7;function B9e(t){for(var e=0;t>=iae;)e|=t&1,t>>=1;return t+e}function T9(t,e,n,r){var i=e+1;if(i===n)return 1;if(r(t[i++],t[e])<0){for(;i<n&&r(t[i],t[i-1])<0;)i++;V9e(t,e,i)}else for(;i<n&&r(t[i],t[i-1])>=0;)i++;return i-e}function V9e(t,e,n){for(n--;e<n;){var r=t[e];t[e++]=t[n],t[n--]=r}}function P9(t,e,n,r,i){for(r===e&&r++;r<n;r++){for(var o=t[r],a=e,s=r,l;a<s;)l=a+s>>>1,i(o,t[l])<0?s=l:a=l+1;var u=r-a;switch(u){case 3:t[a+3]=t[a+2];case 2:t[a+2]=t[a+1];case 1:t[a+1]=t[a];break;default:for(;u>0;)t[a+u]=t[a+u-1],u--}t[a]=o}}function LA(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])>0){for(s=r-i;l<s&&o(t,e[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(t,e[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(t,e[n+c])>0?a=c+1:l=c}return l}function BA(t,e,n,r,i,o){var a=0,s=0,l=1;if(o(t,e[n+i])<0){for(s=i+1;l<s&&o(t,e[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(t,e[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(t,e[n+c])<0?l=c:a=c+1}return l}function z9e(t,e){var n=Lm,r,i,o=0,a=[];r=[],i=[];function s(p,v){r[o]=p,i[o]=v,o+=1}function l(){for(;o>1;){var p=o-2;if(p>=1&&i[p-1]<=i[p]+i[p+1]||p>=2&&i[p-2]<=i[p]+i[p-1])i[p-1]<i[p+1]&&p--;else if(i[p]>i[p+1])break;c(p)}}function u(){for(;o>1;){var p=o-2;p>0&&i[p-1]<i[p+1]&&p--,c(p)}}function c(p){var v=r[p],g=i[p],m=r[p+1],y=i[p+1];i[p]=g+y,p===o-3&&(r[p+1]=r[p+2],i[p+1]=i[p+2]),o--;var b=BA(t[m],t,v,g,0,e);v+=b,g-=b,g!==0&&(y=LA(t[v+g-1],t,m,y,y-1,e),y!==0&&(g<=y?f(v,g,m,y):d(v,g,m,y)))}function f(p,v,g,m){var y=0;for(y=0;y<v;y++)a[y]=t[p+y];var b=0,O=g,w=p;if(t[w++]=t[O++],--m===0){for(y=0;y<v;y++)t[w+y]=a[b+y];return}if(v===1){for(y=0;y<m;y++)t[w+y]=t[O+y];t[w+m]=a[b];return}for(var x=n,S,T,$;;){S=0,T=0,$=!1;do if(e(t[O],a[b])<0){if(t[w++]=t[O++],T++,S=0,--m===0){$=!0;break}}else if(t[w++]=a[b++],S++,T=0,--v===1){$=!0;break}while((S|T)<x);if($)break;do{if(S=BA(t[O],a,b,v,0,e),S!==0){for(y=0;y<S;y++)t[w+y]=a[b+y];if(w+=S,b+=S,v-=S,v<=1){$=!0;break}}if(t[w++]=t[O++],--m===0){$=!0;break}if(T=LA(a[b],t,O,m,0,e),T!==0){for(y=0;y<T;y++)t[w+y]=t[O+y];if(w+=T,O+=T,m-=T,m===0){$=!0;break}}if(t[w++]=a[b++],--v===1){$=!0;break}x--}while(S>=Lm||T>=Lm);if($)break;x<0&&(x=0),x+=2}if(n=x,n<1&&(n=1),v===1){for(y=0;y<m;y++)t[w+y]=t[O+y];t[w+m]=a[b]}else{if(v===0)throw new Error;for(y=0;y<v;y++)t[w+y]=a[b+y]}}function d(p,v,g,m){var y=0;for(y=0;y<m;y++)a[y]=t[g+y];var b=p+v-1,O=m-1,w=g+m-1,x=0,S=0;if(t[w--]=t[b--],--v===0){for(x=w-(m-1),y=0;y<m;y++)t[x+y]=a[y];return}if(m===1){for(w-=v,b-=v,S=w+1,x=b+1,y=v-1;y>=0;y--)t[S+y]=t[x+y];t[w]=a[O];return}for(var T=n;;){var $=0,A=0,P=!1;do if(e(a[O],t[b])<0){if(t[w--]=t[b--],$++,A=0,--v===0){P=!0;break}}else if(t[w--]=a[O--],A++,$=0,--m===1){P=!0;break}while(($|A)<T);if(P)break;do{if($=v-BA(a[O],t,p,v,v-1,e),$!==0){for(w-=$,b-=$,v-=$,S=w+1,x=b+1,y=$-1;y>=0;y--)t[S+y]=t[x+y];if(v===0){P=!0;break}}if(t[w--]=a[O--],--m===1){P=!0;break}if(A=m-LA(t[b],a,0,m,m-1,e),A!==0){for(w-=A,O-=A,m-=A,S=w+1,x=O+1,y=0;y<A;y++)t[S+y]=a[x+y];if(m<=1){P=!0;break}}if(t[w--]=t[b--],--v===0){P=!0;break}T--}while($>=Lm||A>=Lm);if(P)break;T<0&&(T=0),T+=2}if(n=T,n<1&&(n=1),m===1){for(w-=v,b-=v,S=w+1,x=b+1,y=v-1;y>=0;y--)t[S+y]=t[x+y];t[w]=a[O]}else{if(m===0)throw new Error;for(x=w-(m-1),y=0;y<m;y++)t[x+y]=a[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function fx(t,e,n,r){n||(n=0),r||(r=t.length);var i=r-n;if(!(i<2)){var o=0;if(i<iae){o=T9(t,n,r,e),P9(t,n,r,n+o,e);return}var a=z9e(t,e),s=B9e(i);do{if(o=T9(t,n,r,e),o<s){var l=i;l>s&&(l=s),P9(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),i-=o,n+=o}while(i!==0);a.forceMergeRuns()}}var Co=1,x0=2,Np=4,$9=!1;function VA(){$9||($9=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function A9(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var F9e=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=A9}return t.prototype.traverse=function(e,n){for(var r=0;r<this._roots.length;r++)this._roots[r].traverse(e,n)},t.prototype.getDisplayList=function(e,n){n=n||!1;var r=this._displayList;return(e||!r.length)&&this.updateDisplayList(n),r},t.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var n=this._roots,r=this._displayList,i=0,o=n.length;i<o;i++)this._updateAndAddDisplayable(n[i],null,e);r.length=this._displayListLen,fx(r,A9)},t.prototype._updateAndAddDisplayable=function(e,n,r){if(!(e.ignore&&!r)){e.beforeUpdate(),e.update(),e.afterUpdate();var i=e.getClipPath();if(e.ignoreClip)n=null;else if(i){n?n=n.slice():n=[];for(var o=i,a=e;o;)o.parent=a,o.updateTransform(),n.push(o),a=o,o=o.getClipPath()}if(e.childrenRef){for(var s=e.childrenRef(),l=0;l<s.length;l++){var u=s[l];e.__dirty&&(u.__dirty|=Co),this._updateAndAddDisplayable(u,n,r)}e.__dirty=0}else{var c=e;n&&n.length?c.__clipPaths=n:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(VA(),c.z=0),isNaN(c.z2)&&(VA(),c.z2=0),isNaN(c.zlevel)&&(VA(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=e.getDecalElement&&e.getDecalElement();f&&this._updateAndAddDisplayable(f,n,r);var d=e.getTextGuideLine();d&&this._updateAndAddDisplayable(d,n,r);var p=e.getTextContent();p&&this._updateAndAddDisplayable(p,n,r)}},t.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},t.prototype.delRoot=function(e){if(e instanceof Array){for(var n=0,r=e.length;n<r;n++)this.delRoot(e[n]);return}var i=st(this._roots,e);i>=0&&this._roots.splice(i,1)},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),$S;$S=Ct.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var sy={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return .5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return t===0?0:Math.pow(1024,t-1)},exponentialOut:function(t){return t===1?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return t===0?0:t===1?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(-Math.pow(2,-10*(t-1))+2)},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1,r=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)))},elasticOut:function(t){var e,n=.1,r=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/r)+1)},elasticInOut:function(t){var e,n=.1,r=.4;return t===0?0:t===1?1:(!n||n<1?(n=1,e=r/4):e=r*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?-.5*(n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)):n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?.5*(t*t*((e+1)*t-e)):.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-sy.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?sy.bounceIn(t*2)*.5:sy.bounceOut(t*2-1)*.5+.5}},dO=Math.pow,_c=Math.sqrt,AS=1e-8,oae=1e-4,E9=_c(3),hO=1/3,Fs=Xc(),ca=Xc(),uv=Xc();function oc(t){return t>-AS&&t<AS}function aae(t){return t>AS||t<-AS}function mr(t,e,n,r,i){var o=1-i;return o*o*(o*t+3*i*e)+i*i*(i*r+3*o*n)}function M9(t,e,n,r,i){var o=1-i;return 3*(((e-t)*o+2*(n-e)*i)*o+(r-n)*i*i)}function ES(t,e,n,r,i,o){var a=r+3*(e-n)-t,s=3*(n-e*2+t),l=3*(e-t),u=t-i,c=s*s-3*a*l,f=s*l-9*a*u,d=l*l-3*s*u,p=0;if(oc(c)&&oc(f))if(oc(s))o[0]=0;else{var v=-l/s;v>=0&&v<=1&&(o[p++]=v)}else{var g=f*f-4*c*d;if(oc(g)){var m=f/c,v=-s/a+m,y=-m/2;v>=0&&v<=1&&(o[p++]=v),y>=0&&y<=1&&(o[p++]=y)}else if(g>0){var b=_c(g),O=c*s+1.5*a*(-f+b),w=c*s+1.5*a*(-f-b);O<0?O=-dO(-O,hO):O=dO(O,hO),w<0?w=-dO(-w,hO):w=dO(w,hO);var v=(-s-(O+w))/(3*a);v>=0&&v<=1&&(o[p++]=v)}else{var x=(2*c*s-3*a*f)/(2*_c(c*c*c)),S=Math.acos(x)/3,T=_c(c),$=Math.cos(S),v=(-s-2*T*$)/(3*a),y=(-s+T*($+E9*Math.sin(S)))/(3*a),A=(-s+T*($-E9*Math.sin(S)))/(3*a);v>=0&&v<=1&&(o[p++]=v),y>=0&&y<=1&&(o[p++]=y),A>=0&&A<=1&&(o[p++]=A)}}return p}function sae(t,e,n,r,i){var o=6*n-12*e+6*t,a=9*e+3*r-3*t-9*n,s=3*e-3*t,l=0;if(oc(a)){if(aae(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(oc(c))i[0]=-o/(2*a);else if(c>0){var f=_c(c),u=(-o+f)/(2*a),d=(-o-f)/(2*a);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function Ic(t,e,n,r,i,o){var a=(e-t)*i+t,s=(n-e)*i+e,l=(r-n)*i+n,u=(s-a)*i+a,c=(l-s)*i+s,f=(c-u)*i+u;o[0]=t,o[1]=a,o[2]=u,o[3]=f,o[4]=f,o[5]=c,o[6]=l,o[7]=r}function lae(t,e,n,r,i,o,a,s,l,u,c){var f,d=.005,p=1/0,v,g,m,y;Fs[0]=l,Fs[1]=u;for(var b=0;b<1;b+=.05)ca[0]=mr(t,n,i,a,b),ca[1]=mr(e,r,o,s,b),m=bc(Fs,ca),m<p&&(f=b,p=m);p=1/0;for(var O=0;O<32&&!(d<oae);O++)v=f-d,g=f+d,ca[0]=mr(t,n,i,a,v),ca[1]=mr(e,r,o,s,v),m=bc(ca,Fs),v>=0&&m<p?(f=v,p=m):(uv[0]=mr(t,n,i,a,g),uv[1]=mr(e,r,o,s,g),y=bc(uv,Fs),g<=1&&y<p?(f=g,p=y):d*=.5);return c&&(c[0]=mr(t,n,i,a,f),c[1]=mr(e,r,o,s,f)),_c(p)}function W9e(t,e,n,r,i,o,a,s,l){for(var u=t,c=e,f=0,d=1/l,p=1;p<=l;p++){var v=p*d,g=mr(t,n,i,a,v),m=mr(e,r,o,s,v),y=g-u,b=m-c;f+=Math.sqrt(y*y+b*b),u=g,c=m}return f}function Ar(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function hR(t,e,n,r){return 2*((1-r)*(e-t)+r*(n-e))}function Q9e(t,e,n,r,i){var o=t-2*e+n,a=2*(e-t),s=t-r,l=0;if(oc(o)){if(aae(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(oc(c)){var u=-a/(2*o);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=_c(c),u=(-a+f)/(2*o),d=(-a-f)/(2*o);u>=0&&u<=1&&(i[l++]=u),d>=0&&d<=1&&(i[l++]=d)}}return l}function uae(t,e,n){var r=t+n-2*e;return r===0?.5:(t-e)/r}function Jy(t,e,n,r,i){var o=(e-t)*r+t,a=(n-e)*r+e,s=(a-o)*r+o;i[0]=t,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function cae(t,e,n,r,i,o,a,s,l){var u,c=.005,f=1/0;Fs[0]=a,Fs[1]=s;for(var d=0;d<1;d+=.05){ca[0]=Ar(t,n,i,d),ca[1]=Ar(e,r,o,d);var p=bc(Fs,ca);p<f&&(u=d,f=p)}f=1/0;for(var v=0;v<32&&!(c<oae);v++){var g=u-c,m=u+c;ca[0]=Ar(t,n,i,g),ca[1]=Ar(e,r,o,g);var p=bc(ca,Fs);if(g>=0&&p<f)u=g,f=p;else{uv[0]=Ar(t,n,i,m),uv[1]=Ar(e,r,o,m);var y=bc(uv,Fs);m<=1&&y<f?(u=m,f=y):c*=.5}}return l&&(l[0]=Ar(t,n,i,u),l[1]=Ar(e,r,o,u)),_c(f)}function H9e(t,e,n,r,i,o,a){for(var s=t,l=e,u=0,c=1/a,f=1;f<=a;f++){var d=f*c,p=Ar(t,n,i,d),v=Ar(e,r,o,d),g=p-s,m=v-l;u+=Math.sqrt(g*g+m*m),s=p,l=v}return u}var G9e=/cubic-bezier\(([0-9,\.e ]+)\)/;function $8(t){var e=t&&G9e.exec(t);if(e){var n=e[1].split(","),r=+pa(n[0]),i=+pa(n[1]),o=+pa(n[2]),a=+pa(n[3]);if(isNaN(r+i+o+a))return;var s=[];return function(l){return l<=0?0:l>=1?1:ES(0,r,o,1,l,s)&&mr(0,i,a,1,s[0])}}}var j9e=function(){function t(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||zn,this.ondestroy=e.ondestroy||zn,this.onrestart=e.onrestart||zn,e.easing&&this.setEasing(e.easing)}return t.prototype.step=function(e,n){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=n;return}var r=this._life,i=e-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=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Fe(e)?e:sy[e]||$8(e)},t}(),fae=function(){function t(e){this.value=e}return t}(),U9e=function(){function t(){this._len=0}return t.prototype.insert=function(e){var n=new fae(e);return this.insertEntry(n),n},t.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},t.prototype.remove=function(e){var n=e.prev,r=e.next;n?n.next=r:this.head=r,r?r.prev=n:this.tail=n,e.next=e.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),d_=function(){function t(e){this._list=new U9e,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,n){var r=this._list,i=this._map,o=null;if(i[e]==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 fae(n),s.key=e,r.insertEntry(s),i[e]=s}return o},t.prototype.get=function(e){var n=this._map[e],r=this._list;if(n!=null)return n!==r.tail&&(r.remove(n),r.insertEntry(n)),n.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),I9={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 ns(t){return t=Math.round(t),t<0?0:t>255?255:t}function Z9e(t){return t=Math.round(t),t<0?0:t>360?360:t}function eb(t){return t<0?0:t>1?1:t}function zA(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?ns(parseFloat(e)/100*255):ns(parseInt(e,10))}function Bd(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?eb(parseFloat(e)/100):eb(parseFloat(e))}function FA(t,e,n){return n<0?n+=1:n>1&&(n-=1),n*6<1?t+(e-t)*n*6:n*2<1?e:n*3<2?t+(e-t)*(2/3-n)*6:t}function ac(t,e,n){return t+(e-t)*n}function na(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function pR(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var dae=new d_(20),pO=null;function up(t,e){pO&&pR(pO,e),pO=dae.put(t,pO||e.slice())}function Ai(t,e){if(t){e=e||[];var n=dae.get(t);if(n)return pR(e,n);t=t+"";var r=t.replace(/ /g,"").toLowerCase();if(r in I9)return pR(e,I9[r]),up(t,e),e;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)){na(e,0,0,0,1);return}return na(e,(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),up(t,e),e}else if(i===7||i===9){var o=parseInt(r.slice(1,7),16);if(!(o>=0&&o<=16777215)){na(e,0,0,0,1);return}return na(e,(o&16711680)>>16,(o&65280)>>8,o&255,i===9?parseInt(r.slice(7),16)/255:1),up(t,e),e}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?na(e,+u[0],+u[1],+u[2],1):na(e,0,0,0,1);c=Bd(u.pop());case"rgb":if(u.length>=3)return na(e,zA(u[0]),zA(u[1]),zA(u[2]),u.length===3?c:Bd(u[3])),up(t,e),e;na(e,0,0,0,1);return;case"hsla":if(u.length!==4){na(e,0,0,0,1);return}return u[3]=Bd(u[3]),vR(u,e),up(t,e),e;case"hsl":if(u.length!==3){na(e,0,0,0,1);return}return vR(u,e),up(t,e),e;default:return}}na(e,0,0,0,1)}}function vR(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=Bd(t[1]),i=Bd(t[2]),o=i<=.5?i*(r+1):i+r-i*r,a=i*2-o;return e=e||[],na(e,ns(FA(a,o,n+1/3)*255),ns(FA(a,o,n)*255),ns(FA(a,o,n-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function X9e(t){if(t){var e=t[0]/255,n=t[1]/255,r=t[2]/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=o-i,s=(o+i)/2,l,u;if(a===0)l=0,u=0;else{s<.5?u=a/(o+i):u=a/(2-o-i);var c=((o-e)/6+a/2)/a,f=((o-n)/6+a/2)/a,d=((o-r)/6+a/2)/a;e===o?l=d-f:n===o?l=1/3+c-d:r===o&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var p=[l*360,u,s];return t[3]!=null&&p.push(t[3]),p}}function MS(t,e){var n=Ai(t);if(n){for(var r=0;r<3;r++)e<0?n[r]=n[r]*(1-e)|0:n[r]=(255-n[r])*e+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return rs(n,n.length===4?"rgba":"rgb")}}function Y9e(t){var e=Ai(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function ly(t,e,n){if(!(!(e&&e.length)||!(t>=0&&t<=1))){n=n||[];var r=t*(e.length-1),i=Math.floor(r),o=Math.ceil(r),a=e[i],s=e[o],l=r-i;return n[0]=ns(ac(a[0],s[0],l)),n[1]=ns(ac(a[1],s[1],l)),n[2]=ns(ac(a[2],s[2],l)),n[3]=eb(ac(a[3],s[3],l)),n}}var q9e=ly;function A8(t,e,n){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var r=t*(e.length-1),i=Math.floor(r),o=Math.ceil(r),a=Ai(e[i]),s=Ai(e[o]),l=r-i,u=rs([ns(ac(a[0],s[0],l)),ns(ac(a[1],s[1],l)),ns(ac(a[2],s[2],l)),eb(ac(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:i,rightIndex:o,value:r}:u}}var K9e=A8;function cv(t,e,n,r){var i=Ai(t);if(t)return i=X9e(i),e!=null&&(i[0]=Z9e(e)),n!=null&&(i[1]=Bd(n)),r!=null&&(i[2]=Bd(r)),rs(vR(i),"rgba")}function tb(t,e){var n=Ai(t);if(n&&e!=null)return n[3]=eb(e),rs(n,"rgba")}function rs(t,e){if(!(!t||!t.length)){var n=t[0]+","+t[1]+","+t[2];return(e==="rgba"||e==="hsva"||e==="hsla")&&(n+=","+t[3]),e+"("+n+")"}}function nb(t,e){var n=Ai(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function J9e(){return rs([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var D9=new d_(100);function IS(t){if(Ie(t)){var e=D9.get(t);return e||(e=MS(t,-.1),D9.put(t,e)),e}else if(u_(t)){var n=he({},t);return n.colorStops=ye(t.colorStops,function(r){return{offset:r.offset,color:MS(r.color,-.1)}}),n}return t}const eHe=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:ly,fastMapToColor:q9e,lerp:A8,lift:MS,liftColor:IS,lum:nb,mapToColor:K9e,modifyAlpha:tb,modifyHSL:cv,parse:Ai,random:J9e,stringify:rs,toHex:Y9e},Symbol.toStringTag,{value:"Module"}));var DS=Math.round;function rb(t){var e;if(!t||t==="transparent")t="none";else if(typeof t=="string"&&t.indexOf("rgba")>-1){var n=Ai(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}return{color:t,opacity:e??1}}var R9=1e-4;function sc(t){return t<R9&&t>-R9}function vO(t){return DS(t*1e3)/1e3}function gR(t){return DS(t*1e4)/1e4}function tHe(t){return"matrix("+vO(t[0])+","+vO(t[1])+","+vO(t[2])+","+vO(t[3])+","+gR(t[4])+","+gR(t[5])+")"}var nHe={left:"start",right:"end",center:"middle",middle:"middle"};function rHe(t,e,n){return n==="top"?t+=e/2:n==="bottom"&&(t-=e/2),t}function iHe(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function oHe(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function hae(t){return t&&!!t.image}function aHe(t){return t&&!!t.svgElement}function E8(t){return hae(t)||aHe(t)}function pae(t){return t.type==="linear"}function vae(t){return t.type==="radial"}function gae(t){return t&&(t.type==="linear"||t.type==="radial")}function hP(t){return"url(#"+t+")"}function mae(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function yae(t){var e=t.x||0,n=t.y||0,r=(t.rotation||0)*iy,i=Je(t.scaleX,1),o=Je(t.scaleY,1),a=t.skewX||0,s=t.skewY||0,l=[];return(e||n)&&l.push("translate("+e+"px,"+n+"px)"),r&&l.push("rotate("+r+")"),(i!==1||o!==1)&&l.push("scale("+i+","+o+")"),(a||s)&&l.push("skew("+DS(a*iy)+"deg, "+DS(s*iy)+"deg)"),l.join(" ")}var sHe=function(){return Ct.hasGlobalWindow&&Fe(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:typeof Buffer<"u"?function(t){return Buffer.from(t).toString("base64")}:function(t){return process.env.NODE_ENV!=="production"&&ya("Base64 isn't natively supported in the current environment."),null}}(),mR=Array.prototype.slice;function Nl(t,e,n){return(e-t)*n+t}function WA(t,e,n,r){for(var i=e.length,o=0;o<i;o++)t[o]=Nl(e[o],n[o],r);return t}function lHe(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;a<i;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=Nl(e[a][s],n[a][s],r)}return t}function gO(t,e,n,r){for(var i=e.length,o=0;o<i;o++)t[o]=e[o]+n[o]*r;return t}function k9(t,e,n,r){for(var i=e.length,o=i&&e[0].length,a=0;a<i;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*r}return t}function uHe(t,e){for(var n=t.length,r=e.length,i=n>r?e:t,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 cHe(t,e,n){var r=t,i=e;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]:mR.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 uy(t){if(Yr(t)){var e=t.length;if(Yr(t[0])){for(var n=[],r=0;r<e;r++)n.push(mR.call(t[r]));return n}return mR.call(t)}return t}function dx(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=t[3]==null?1:t[3],"rgba("+t.join(",")+")"}function fHe(t){return Yr(t&&t[0])?2:1}var mO=0,hx=1,bae=2,S0=3,yR=4,bR=5,N9=6;function L9(t){return t===yR||t===bR}function yO(t){return t===hx||t===bae}var Bm=[0,0,0,0],dHe=function(){function t(e){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=e}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return this.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(e,n,r){this._needsSort=!0;var i=this.keyframes,o=i.length,a=!1,s=N9,l=n;if(Yr(n)){var u=fHe(n);s=u,(u===1&&!It(n[0])||u===2&&!It(n[0][0]))&&(a=!0)}else if(It(n)&&!Mc(n))s=mO;else if(Ie(n))if(!isNaN(+n))s=mO;else{var c=Ai(n);c&&(l=c,s=S0)}else if(u_(n)){var f=he({},l);f.colorStops=ye(n.colorStops,function(p){return{offset:p.offset,color:Ai(p.color)}}),pae(n)?s=yR:vae(n)&&(s=bR),l=f}o===0?this.valType=s:(s!==this.valType||s===N9)&&(a=!0),this.discrete=this.discrete||a;var d={time:e,value:l,rawValue:n,percent:0};return r&&(d.easing=r,d.easingFunc=Fe(r)?r:sy[r]||$8(r)),i.push(d),d},t.prototype.prepare=function(e,n){var r=this.keyframes;this._needsSort&&r.sort(function(g,m){return g.time-m.time});for(var i=this.valType,o=r.length,a=r[o-1],s=this.discrete,l=yO(i),u=L9(i),c=0;c<o;c++){var f=r[c],d=f.value,p=a.value;f.percent=f.time/e,s||(l&&c!==o-1?cHe(d,p,i):u&&uHe(d.colorStops,p.colorStops))}if(!s&&i!==bR&&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===mO?r[c].additiveValue=r[c].value-v:i===S0?r[c].additiveValue=gO([],r[c].value,v,-1):yO(i)&&(r[c].additiveValue=i===hx?gO([],r[c].value,v,-1):k9([],r[c].value,v,-1))}},t.prototype.step=function(e,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===S0,c,f=this._lastFr,d=Math.min,p,v;if(s===1)p=v=a[0];else{if(n<0)c=0;else if(n<this._lastFrP){var g=d(f+1,s-1);for(c=g;c>=0&&!(a[c].percent<=n);c--);c=d(c,s-2)}else{for(c=f;c<s&&!(a[c].percent>n);c++);c=d(c-1,s-2)}v=a[c+1],p=a[c]}if(p&&v){this._lastFr=c,this._lastFrP=n;var m=v.percent-p.percent,y=m===0?1:d((n-p.percent)/m,1);v.easingFunc&&(y=v.easingFunc(y));var b=r?this._additiveValue:u?Bm:e[l];if((yO(o)||u)&&!b&&(b=this._additiveValue=[]),this.discrete)e[l]=y<1?p.rawValue:v.rawValue;else if(yO(o))o===hx?WA(b,p[i],v[i],y):lHe(b,p[i],v[i],y);else if(L9(o)){var O=p[i],w=v[i],x=o===yR;e[l]={type:x?"linear":"radial",x:Nl(O.x,w.x,y),y:Nl(O.y,w.y,y),colorStops:ye(O.colorStops,function(T,$){var A=w.colorStops[$];return{offset:Nl(T.offset,A.offset,y),color:dx(WA([],T.color,A.color,y))}}),global:w.global},x?(e[l].x2=Nl(O.x2,w.x2,y),e[l].y2=Nl(O.y2,w.y2,y)):e[l].r=Nl(O.r,w.r,y)}else if(u)WA(b,p[i],v[i],y),r||(e[l]=dx(b));else{var S=Nl(p[i],v[i],y);r?this._additiveValue=S:e[l]=S}r&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var n=this.valType,r=this.propName,i=this._additiveValue;n===mO?e[r]=e[r]+i:n===S0?(Ai(e[r],Bm),gO(Bm,Bm,i,1),e[r]=dx(Bm)):n===hx?gO(e[r],e[r],i,1):n===bae&&k9(e[r],e[r],i,1)},t}(),M8=function(){function t(e,n,r,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=n,n&&i){ya("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=r}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(e){this._target=e},t.prototype.when=function(e,n,r){return this.whenWithKeys(e,n,bt(n),r)},t.prototype.whenWithKeys=function(e,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 dHe(s);var u=void 0,c=this._getAdditiveTrack(s);if(c){var f=c.keyframes,d=f[f.length-1];u=d&&d.value,c.valType===S0&&u&&(u=dx(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,uy(u),i),this._trackKeys.push(s)}l.addKeyframe(e,uy(n[s]),i)}return this._maxTime=Math.max(this._maxTime,e),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var n=e.length,r=0;r<n;r++)e[r].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var e=this.animation,n=this._abortedCbs;if(e&&e.removeClip(this._clip),this._clip=null,n)for(var r=0;r<n.length;r++)n[r].call(this)},t.prototype._setTracksFinished=function(){for(var e=this._tracks,n=this._trackKeys,r=0;r<n.length;r++)e[n[r]].setFinished()},t.prototype._getAdditiveTrack=function(e){var n,r=this._additiveAnimators;if(r)for(var i=0;i<r.length;i++){var o=r[i].getTrack(e);o&&(n=o)}return n},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var n=this,r=[],i=this._maxTime||0,o=0;o<this._trackKeys.length;o++){var a=this._trackKeys[o],s=this._tracks[a],l=this._getAdditiveTrack(a),u=s.keyframes,c=u.length;if(s.prepare(i,l),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var f=u[c-1];f&&(n._target[s.propName]=f.rawValue),s.setFinished()}else r.push(s)}if(r.length||this._force){var d=new j9e({life:i,loop:this._loop,delay:this._delay||0,onframe:function(p){n._started=2;var v=n._additiveAnimators;if(v){for(var g=!1,m=0;m<v.length;m++)if(v[m]._clip){g=!0;break}g||(n._additiveAnimators=null)}for(var m=0;m<r.length;m++)r[m].step(n._target,p);var y=n._onframeCbs;if(y)for(var m=0;m<y.length;m++)y[m](n._target,p)},ondestroy:function(){n._doneCallback()}});this._clip=d,this.animation&&this.animation.addClip(d),e&&d.setEasing(e)}else this._doneCallback();return this}},t.prototype.stop=function(e){if(this._clip){var n=this._clip;e&&n.onframe(1),this._abortedCallback()}},t.prototype.delay=function(e){return this._delay=e,this},t.prototype.during=function(e){return e&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(e)),this},t.prototype.done=function(e){return e&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(e)),this},t.prototype.aborted=function(e){return e&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(e)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(e){return this._tracks[e]},t.prototype.getTracks=function(){var e=this;return ye(this._trackKeys,function(n){return e._tracks[n]})},t.prototype.stopTracks=function(e,n){if(!e.length||!this._clip)return!0;for(var r=this._tracks,i=this._trackKeys,o=0;o<e.length;o++){var a=r[e[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},t.prototype.saveTo=function(e,n,r){if(e){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&&(e[o]=uy(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,n){n=n||bt(e);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,e[i]),o.prepare(this._maxTime,o.getAdditiveTrack())}}}},t}();function Zp(){return new Date().getTime()}var hHe=function(t){ie(e,t);function e(n){var r=t.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 e.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},e.prototype.addAnimator=function(n){n.animation=this;var r=n.getClip();r&&this.addClip(r)},e.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}},e.prototype.removeAnimator=function(n){var r=n.getClip();r&&this.removeClip(r),n.animation=null},e.prototype.update=function(n){for(var r=Zp()-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())},e.prototype._startLoop=function(){var n=this;this._running=!0;function r(){n._running&&($S(r),!n._paused&&n.update())}$S(r)},e.prototype.start=function(){this._running||(this._time=Zp(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=Zp(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=Zp()-this._pauseStart,this._paused=!1)},e.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},e.prototype.isFinished=function(){return this._head==null},e.prototype.animate=function(n,r){r=r||{},this.start();var i=new M8(n,r.loop);return this.addAnimator(i),i},e}(Ma),pHe=300,QA=Ct.domSupported,HA=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=ye(t,function(i){var o=i.replace("mouse","pointer");return n.hasOwnProperty(o)?o:i});return{mouse:t,touch:e,pointer:r}}(),B9={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},V9=!1;function _R(t){var e=t.pointerType;return e==="pen"||e==="touch"}function vHe(t){t.touching=!0,t.touchTimer!=null&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}function GA(t){t&&(t.zrByTouch=!0)}function gHe(t,e){return ia(t.dom,new mHe(t,e),!0)}function _ae(t,e){for(var n=e,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return r}var mHe=function(){function t(e,n){this.stopPropagation=zn,this.stopImmediatePropagation=zn,this.preventDefault=zn,this.type=n.type,this.target=this.currentTarget=e.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return t}(),Ga={mousedown:function(t){t=ia(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=ia(this.dom,t);var e=this.__mayPointerCapture;e&&(t.zrX!==e[0]||t.zrY!==e[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=ia(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=ia(this.dom,t);var e=t.toElement||t.relatedTarget;_ae(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){V9=!0,t=ia(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){V9||(t=ia(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=ia(this.dom,t),GA(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Ga.mousemove.call(this,t),Ga.mousedown.call(this,t)},touchmove:function(t){t=ia(this.dom,t),GA(t),this.handler.processGesture(t,"change"),Ga.mousemove.call(this,t)},touchend:function(t){t=ia(this.dom,t),GA(t),this.handler.processGesture(t,"end"),Ga.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<pHe&&Ga.click.call(this,t)},pointerdown:function(t){Ga.mousedown.call(this,t)},pointermove:function(t){_R(t)||Ga.mousemove.call(this,t)},pointerup:function(t){Ga.mouseup.call(this,t)},pointerout:function(t){_R(t)||Ga.mouseout.call(this,t)}};V(["click","dblclick","contextmenu"],function(t){Ga[t]=function(e){e=ia(this.dom,e),this.trigger(t,e)}});var OR={pointermove:function(t){_R(t)||OR.mousemove.call(this,t)},pointerup:function(t){OR.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function yHe(t,e){var n=e.domHandlers;Ct.pointerEventsSupported?V(HA.pointer,function(r){px(e,r,function(i){n[r].call(t,i)})}):(Ct.touchEventsSupported&&V(HA.touch,function(r){px(e,r,function(i){n[r].call(t,i),vHe(e)})}),V(HA.mouse,function(r){px(e,r,function(i){i=P8(i),e.touching||n[r].call(t,i)})}))}function bHe(t,e){Ct.pointerEventsSupported?V(B9.pointer,n):Ct.touchEventsSupported||V(B9.mouse,n);function n(r){function i(o){o=P8(o),_ae(t,o.target)||(o=gHe(t,o),e.domHandlers[r].call(t,o))}px(e,r,i,{capture:!0})}}function px(t,e,n,r){t.mounted[e]=n,t.listenerOpts[e]=r,dR(t.domTarget,e,n,r)}function jA(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&$9e(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var z9=function(){function t(e,n){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=n}return t}(),_He=function(t){ie(e,t);function e(n,r){var i=t.call(this)||this;return i.__pointerCapturing=!1,i.dom=n,i.painterRoot=r,i._localHandlerScope=new z9(n,Ga),QA&&(i._globalHandlerScope=new z9(document,OR)),yHe(i,i._localHandlerScope),i}return e.prototype.dispose=function(){jA(this._localHandlerScope),QA&&jA(this._globalHandlerScope)},e.prototype.setCursor=function(n){this.dom.style&&(this.dom.style.cursor=n||"default")},e.prototype.__togglePointerCapture=function(n){if(this.__mayPointerCapture=null,QA&&+this.__pointerCapturing^+n){this.__pointerCapturing=n;var r=this._globalHandlerScope;n?bHe(this,r):jA(r)}},e}(Ma),Oae=1;Ct.hasGlobalWindow&&(Oae=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var RS=Oae,wR=.4,xR="#333",SR="#ccc",OHe="#eee",F9=f_,W9=5e-5;function Pf(t){return t>W9||t<-W9}var $f=[],cp=[],UA=ao(),ZA=Math.abs,wHe=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},t.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},t.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},t.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},t.prototype.needLocalTransform=function(){return Pf(this.rotation)||Pf(this.x)||Pf(this.y)||Pf(this.scaleX-1)||Pf(this.scaleY-1)||Pf(this.skewX)||Pf(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||e)){r&&(F9(r),this.invTransform=null);return}r=r||ao(),n?this.getLocalTransform(r):F9(r),e&&(n?el(r,e,r):fP(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r)},t.prototype._resolveGlobalScaleRatio=function(e){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale($f);var r=$f[0]<0?-1:1,i=$f[1]<0?-1:1,o=(($f[0]-r)*n+r)/$f[0]||0,a=(($f[1]-i)*n+i)/$f[1]||0;e[0]*=o,e[1]*=o,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||ao(),$h(this.invTransform,e)},t.prototype.getComputedTransform=function(){for(var e=this,n=[];e;)n.push(e),e=e.parent;for(;e=n.pop();)e.updateTransform();return this.transform},t.prototype.setLocalTransform=function(e){if(e){var n=e[0]*e[0]+e[1]*e[1],r=e[2]*e[2]+e[3]*e[3],i=Math.atan2(e[1],e[0]),o=Math.PI/2+i-Math.atan2(e[3],e[2]);r=Math.sqrt(r)*Math.cos(o),n=Math.sqrt(n),this.skewX=o,this.skewY=0,this.rotation=-i,this.x=+e[4],this.y=+e[5],this.scaleX=n,this.scaleY=r,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,n=this.transform;e&&e.transform&&(e.invTransform=e.invTransform||ao(),el(cp,e.invTransform,n),n=cp);var r=this.originX,i=this.originY;(r||i)&&(UA[4]=r,UA[5]=i,el(cp,n,UA),cp[4]-=r,cp[5]-=i,n=cp),this.setLocalTransform(n)}},t.prototype.getGlobalScale=function(e){var n=this.transform;return e=e||[],n?(e[0]=Math.sqrt(n[0]*n[0]+n[1]*n[1]),e[1]=Math.sqrt(n[2]*n[2]+n[3]*n[3]),n[0]<0&&(e[0]=-e[0]),n[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},t.prototype.transformCoordToLocal=function(e,n){var r=[e,n],i=this.invTransform;return i&&Er(r,r,i),r},t.prototype.transformCoordToGlobal=function(e,n){var r=[e,n],i=this.transform;return i&&Er(r,r,i),r},t.prototype.getLineScale=function(){var e=this.transform;return e&&ZA(e[0]-1)>1e-10&&ZA(e[3]-1)>1e-10?Math.sqrt(ZA(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){wae(this,e)},t.getLocalTransform=function(e,n){n=n||[];var r=e.originX||0,i=e.originY||0,o=e.scaleX,a=e.scaleY,s=e.anchorX,l=e.anchorY,u=e.rotation||0,c=e.x,f=e.y,d=e.skewX?Math.tan(e.skewX):0,p=e.skewY?Math.tan(-e.skewY):0;if(r||i||s||l){var v=r+s,g=i+l;n[4]=-v*o-d*g*a,n[5]=-g*a-p*v*o}else n[4]=n[5]=0;return n[0]=o,n[3]=a,n[1]=p*o,n[2]=d*a,u&&Yc(n,n,u),n[4]+=r+c,n[5]+=i+f,n},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),ll=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function wae(t,e){for(var n=0;n<ll.length;n++){var r=ll[n];t[r]=e[r]}}const Gl=wHe;var Q9={};function ko(t,e){e=e||Ac;var n=Q9[e];n||(n=Q9[e]=new d_(500));var r=n.get(t);return r==null&&(r=ls.measureText(t,e).width,n.put(t,r)),r}function H9(t,e,n,r){var i=ko(t,e),o=pP(e),a=C0(0,i,n),s=Lp(0,o,r),l=new at(a,s,i,o);return l}function h_(t,e,n,r){var i=((t||"")+"").split(`
  320. `),o=i.length;if(o===1)return H9(i[0],e,n,r);for(var a=new at(0,0,0,0),s=0;s<i.length;s++){var l=H9(i[s],e,n,r);s===0?a.copy(l):a.union(l)}return a}function C0(t,e,n){return n==="right"?t-=e:n==="center"&&(t-=e/2),t}function Lp(t,e,n){return n==="middle"?t-=e/2:n==="bottom"&&(t-=e),t}function pP(t){return ko("国",t)}function cs(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function kS(t,e,n){var r=e.position||"inside",i=e.distance!=null?e.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+=cs(r[0],n.width),u+=cs(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 t=t||{},t.x=l,t.y=u,t.align=c,t.verticalAlign=f,t}var XA="__zr_normal__",YA=ll.concat(["ignore"]),xHe=Ta(ll,function(t,e){return t[e]=!0,t},{ignore:!1}),fp={},SHe=new at(0,0,0,0),vP=function(){function t(e){this.id=w8(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return t.prototype._init=function(e){this.attr(e)},t.prototype.drift=function(e,n,r){switch(this.draggable){case"horizontal":n=0;break;case"vertical":e=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=e,i[5]+=n,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(e){var n=this._textContent;if(n&&(!n.ignore||e)){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=SHe;r.layoutRect?c.copy(r.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(fp,r,c):kS(fp,r,c),o.x=fp.x,o.y=fp.y,a=fp.align,s=fp.verticalAlign;var f=r.origin;if(f&&r.rotation!=null){var d=void 0,p=void 0;f==="center"?(d=c.width*.5,p=c.height*.5):(d=cs(f[0],c.width),p=cs(f[1],c.height)),u=!0,o.originX=-o.x+d+(i?0:c.x),o.originY=-o.y+p+(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 g=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,b=void 0,O=void 0;g&&this.canBeInsideText()?(y=r.insideFill,b=r.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(y),O=!0)):(y=r.outsideFill,b=r.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(y),O=!0)),y=y||"#000",(y!==m.fill||b!==m.stroke||O!==m.autoStroke||a!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=y,m.stroke=b,m.autoStroke=O,m.align=a,m.verticalAlign=s,n.setDefaultTextStyle(m)),n.__dirty|=Co,l&&n.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(e){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?SR:xR},t.prototype.getOutsideStroke=function(e){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&Ai(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,rs(r,"rgba")},t.prototype.traverse=function(e,n){},t.prototype.attrKV=function(e,n){e==="textConfig"?this.setTextConfig(n):e==="textContent"?this.setTextContent(n):e==="clipPath"?this.setClipPath(n):e==="extra"?(this.extra=this.extra||{},he(this.extra,n)):this[e]=n},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(e,n){if(typeof e=="string")this.attrKV(e,n);else if(Qe(e))for(var r=e,i=bt(r),o=0;o<i.length;o++){var a=i[o];this.attrKV(a,e[a])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(e){this._innerSaveToNormal(e);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!==XA)){var a=i.targetName,s=a?n[a]:n;i.saveTo(s)}}},t.prototype._innerSaveToNormal=function(e){var n=this._normalState;n||(n=this._normalState={}),e.textConfig&&!n.textConfig&&(n.textConfig=this.textConfig),this._savePrimaryToNormal(e,n,YA)},t.prototype._savePrimaryToNormal=function(e,n,r){for(var i=0;i<r.length;i++){var o=r[i];e[o]!=null&&!(o in n)&&(n[o]=this[o])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(e){return this.states[e]},t.prototype.ensureState=function(e){var n=this.states;return n[e]||(n[e]={}),n[e]},t.prototype.clearStates=function(e){this.useState(XA,!1,e)},t.prototype.useState=function(e,n,r,i){var o=e===XA,a=this.hasState();if(!(!a&&o)){var s=this.currentStates,l=this.stateTransition;if(!(st(s,e)>=0&&(n||s.length===1))){var u;if(this.stateProxy&&!o&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!o){ya("State "+e+" not exists.");return}o||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,u,this._normalState,n,!r&&!this.__inHover&&l&&l.duration>0,l);var f=this._textContent,d=this._textGuide;return f&&f.useState(e,n,r,c),d&&d.useState(e,n,r,c),o?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Co),u}}},t.prototype.useStates=function(e,n,r){if(!e.length)this.clearStates();else{var i=[],o=this.currentStates,a=e.length,s=a===o.length;if(s){for(var l=0;l<a;l++)if(e[l]!==o[l]){s=!1;break}}if(s)return;for(var l=0;l<a;l++){var u=e[l],c=void 0;this.stateProxy&&(c=this.stateProxy(u,e)),c||(c=this.states[u]),c&&i.push(c)}var f=i[a-1],d=!!(f&&f.hoverLayer||r);d&&this._toggleHoverLayerFlag(!0);var p=this._mergeStates(i),v=this.stateTransition;this.saveCurrentToNormalState(p),this._applyStateObj(e.join(","),p,this._normalState,!1,!n&&!this.__inHover&&v&&v.duration>0,v);var g=this._textContent,m=this._textGuide;g&&g.useStates(e,n,d),m&&m.useStates(e,n,d),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!d&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Co)}},t.prototype.isSilent=function(){for(var e=this.silent,n=this.parent;!e&&n;){if(n.silent){e=!0;break}n=n.parent}return e},t.prototype._updateAnimationTargets=function(){for(var e=0;e<this.animators.length;e++){var n=this.animators[e];n.targetName&&n.changeTarget(this[n.targetName])}},t.prototype.removeState=function(e){var n=st(this.currentStates,e);if(n>=0){var r=this.currentStates.slice();r.splice(n,1),this.useStates(r)}},t.prototype.replaceState=function(e,n,r){var i=this.currentStates.slice(),o=st(i,e),a=st(i,n)>=0;o>=0?a?i.splice(o,1):i[o]=n:r&&!a&&i.push(n),this.useStates(i)},t.prototype.toggleState=function(e,n){n?this.useState(e,!0):this.removeState(e)},t.prototype._mergeStates=function(e){for(var n={},r,i=0;i<e.length;i++){var o=e[i];he(n,o),o.textConfig&&(r=r||{},he(r,o.textConfig))}return r&&(n.textConfig=r),n},t.prototype._applyStateObj=function(e,n,r,i,o,a){var s=!(n&&i);n&&n.textConfig?(this.textConfig=he({},i?this.textConfig:r.textConfig),he(this.textConfig,n.textConfig)):s&&r.textConfig&&(this.textConfig=r.textConfig);for(var l={},u=!1,c=0;c<YA.length;c++){var f=YA[c],d=o&&xHe[f];n&&n[f]!=null?d?(u=!0,l[f]=n[f]):this[f]=n[f]:s&&r[f]!=null&&(d?(u=!0,l[f]=r[f]):this[f]=r[f])}if(!o)for(var c=0;c<this.animators.length;c++){var p=this.animators[c],v=p.targetName;p.getLoop()||p.__changeFinalValue(v?(n||r)[v]:n||r)}u&&this._transitionState(e,l,a)},t.prototype._attachComponent=function(e){if(e.__zr&&!e.__hostTarget){if(process.env.NODE_ENV!=="production")throw new Error("Text element has been added to zrender.");return}if(e===this){if(process.env.NODE_ENV!=="production")throw new Error("Recursive component attachment.");return}var n=this.__zr;n&&e.addSelfToZr(n),e.__zr=n,e.__hostTarget=this},t.prototype._detachComponent=function(e){e.__zr&&e.removeSelfFromZr(e.__zr),e.__zr=null,e.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(e){this._clipPath&&this._clipPath!==e&&this.removeClipPath(),this._attachComponent(e),this._clipPath=e,this.markRedraw()},t.prototype.removeClipPath=function(){var e=this._clipPath;e&&(this._detachComponent(e),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(e){var n=this._textContent;if(n!==e){if(n&&n!==e&&this.removeTextContent(),process.env.NODE_ENV!=="production"&&e.__zr&&!e.__hostTarget)throw new Error("Text element has been added to zrender.");e.innerTransformable=new Gl,this._attachComponent(e),this._textContent=e,this.markRedraw()}},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),he(this.textConfig,e),this.markRedraw()},t.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},t.prototype.removeTextContent=function(){var e=this._textContent;e&&(e.innerTransformable=null,this._detachComponent(e),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(e){this._textGuide&&this._textGuide!==e&&this.removeTextGuideLine(),this._attachComponent(e),this._textGuide=e,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var e=this._textGuide;e&&(this._detachComponent(e),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=Co;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(e){this.__inHover=e;var n=this._textContent,r=this._textGuide;n&&(n.__inHover=e),r&&(r.__inHover=e)},t.prototype.addSelfToZr=function(e){if(this.__zr!==e){this.__zr=e;var n=this.animators;if(n)for(var r=0;r<n.length;r++)e.animation.addAnimator(n[r]);this._clipPath&&this._clipPath.addSelfToZr(e),this._textContent&&this._textContent.addSelfToZr(e),this._textGuide&&this._textGuide.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){if(this.__zr){this.__zr=null;var n=this.animators;if(n)for(var r=0;r<n.length;r++)e.animation.removeAnimator(n[r]);this._clipPath&&this._clipPath.removeSelfFromZr(e),this._textContent&&this._textContent.removeSelfFromZr(e),this._textGuide&&this._textGuide.removeSelfFromZr(e)}},t.prototype.animate=function(e,n,r){var i=e?this[e]:this;if(process.env.NODE_ENV!=="production"&&!i){ya('Property "'+e+'" is not existed in element '+this.id);return}var o=new M8(i,n,r);return e&&(o.targetName=e),this.addAnimator(o,e),o},t.prototype.addAnimator=function(e,n){var r=this.__zr,i=this;e.during(function(){i.updateDuringAnimation(n)}).done(function(){var o=i.animators,a=st(o,e);a>=0&&o.splice(a,1)}),this.animators.push(e),r&&r.animation.addAnimator(e),r&&r.wakeUp()},t.prototype.updateDuringAnimation=function(e){this.markRedraw()},t.prototype.stopAnimation=function(e,n){for(var r=this.animators,i=r.length,o=[],a=0;a<i;a++){var s=r[a];!e||e===s.scope?s.stop(n):o.push(s)}return this.animators=o,this},t.prototype.animateTo=function(e,n,r){qA(this,e,n,r)},t.prototype.animateFrom=function(e,n,r){qA(this,e,n,r,!0)},t.prototype._transitionState=function(e,n,r,i){for(var o=qA(this,n,r,i),a=0;a<o.length;a++)o[a].__fromStateTransition=e},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.initDefaultProps=function(){var e=t.prototype;e.type="element",e.name="",e.ignore=e.silent=e.isGroup=e.draggable=e.dragging=e.ignoreClip=e.__inHover=!1,e.__dirty=Co;var n={};function r(o,a,s){n[o+a+s]||(console.warn("DEPRECATED: '"+o+"' has been deprecated. use '"+a+"', '"+s+"' instead"),n[o+a+s]=!0)}function i(o,a,s,l){Object.defineProperty(e,o,{get:function(){if(process.env.NODE_ENV!=="production"&&r(o,s,l),!this[a]){var c=this[a]=[];u(this,c)}return this[a]},set:function(c){process.env.NODE_ENV!=="production"&&r(o,s,l),this[s]=c[0],this[l]=c[1],this[a]=c,u(this,c)}});function u(c,f){Object.defineProperty(f,0,{get:function(){return c[s]},set:function(d){c[s]=d}}),Object.defineProperty(f,1,{get:function(){return c[l]},set:function(d){c[l]=d}})}}Object.defineProperty&&(i("position","_legacyPos","x","y"),i("scale","_legacyScale","scaleX","scaleY"),i("origin","_legacyOrigin","originX","originY"))}(),t}();Qn(vP,Ma);Qn(vP,Gl);function qA(t,e,n,r,i){n=n||{};var o=[];xae(t,"",t,e,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,g){n.during(g)});for(var d=0;d<o.length;d++){var p=o[d];c&&p.done(c),f&&p.aborted(f),n.force&&p.duration(n.duration),p.start(n.easing)}return o}function KA(t,e,n){for(var r=0;r<n;r++)t[r]=e[r]}function CHe(t){return Yr(t[0])}function THe(t,e,n){if(Yr(e[n]))if(Yr(t[n])||(t[n]=[]),di(e[n])){var r=e[n].length;t[n].length!==r&&(t[n]=new e[n].constructor(r),KA(t[n],e[n],r))}else{var i=e[n],o=t[n],a=i.length;if(CHe(i))for(var s=i[0].length,l=0;l<a;l++)o[l]?KA(o[l],i[l],s):o[l]=Array.prototype.slice.call(i[l]);else KA(o,i,a);o.length=i.length}else t[n]=e[n]}function PHe(t,e){return t===e||Yr(t)&&Yr(e)&&$He(t,e)}function $He(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function xae(t,e,n,r,i,o,a,s){for(var l=bt(r),u=i.duration,c=i.delay,f=i.additive,d=i.setToFinal,p=!Qe(o),v=t.animators,g=[],m=0;m<l.length;m++){var y=l[m],b=r[y];if(b!=null&&n[y]!=null&&(p||o[y]))if(Qe(b)&&!Yr(b)&&!u_(b)){if(e){s||(n[y]=b,t.updateDuringAnimation(e));continue}xae(t,y,n[y],b,i,o&&o[y],a,s)}else g.push(y);else s||(n[y]=b,t.updateDuringAnimation(e),g.push(y))}var O=g.length;if(!f&&O)for(var w=0;w<v.length;w++){var x=v[w];if(x.targetName===e){var S=x.stopTracks(g);if(S){var T=st(v,x);v.splice(T,1)}}}if(i.force||(g=Yt(g,function(M){return!PHe(r[M],n[M])}),O=g.length),O>0||i.force&&!a.length){var $=void 0,A=void 0,P=void 0;if(s){A={},d&&($={});for(var w=0;w<O;w++){var y=g[w];A[y]=n[y],d?$[y]=r[y]:n[y]=r[y]}}else if(d){P={};for(var w=0;w<O;w++){var y=g[w];P[y]=uy(n[y]),THe(n,r,y)}}var x=new M8(n,!1,!1,f?Yt(v,function(I){return I.targetName===e}):null);x.targetName=e,i.scope&&(x.scope=i.scope),d&&$&&x.whenWithKeys(0,$,g),P&&x.whenWithKeys(0,P,g),x.whenWithKeys(u??500,s?A:r,g).delay(c||0),t.addAnimator(x,e),a.push(x)}}var Sae=function(t){ie(e,t);function e(n){var r=t.call(this)||this;return r.isGroup=!0,r._children=[],r.attr(n),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.children=function(){return this._children.slice()},e.prototype.childAt=function(n){return this._children[n]},e.prototype.childOfName=function(n){for(var r=this._children,i=0;i<r.length;i++)if(r[i].name===n)return r[i]},e.prototype.childCount=function(){return this._children.length},e.prototype.add=function(n){if(n&&(n!==this&&n.parent!==this&&(this._children.push(n),this._doAdd(n)),process.env.NODE_ENV!=="production"&&n.__hostTarget))throw"This elemenet has been used as an attachment";return this},e.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},e.prototype.replace=function(n,r){var i=st(this._children,n);return i>=0&&this.replaceAt(r,i),this},e.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},e.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()},e.prototype.remove=function(n){var r=this.__zr,i=this._children,o=st(i,n);return o<0?this:(i.splice(o,1),n.parent=null,r&&n.removeSelfFromZr(r),r&&r.refresh(),this)},e.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},e.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},e.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},e.prototype.addSelfToZr=function(n){t.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++){var i=this._children[r];i.addSelfToZr(n)}},e.prototype.removeSelfFromZr=function(n){t.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++){var i=this._children[r];i.removeSelfFromZr(n)}},e.prototype.getBoundingRect=function(n){for(var r=new at(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?(at.applyTransform(r,u,c),a=a||r.clone(),a.union(r)):(a=a||u.clone(),a.union(u))}}return a||r},e}(vP);Sae.prototype.type="group";const qe=Sae;/*!
  321. * ZRender, a high performance 2d drawing library.
  322. *
  323. * Copyright (c) 2013, Baidu Inc.
  324. * All rights reserved.
  325. *
  326. * LICENSE
  327. * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
  328. */var T0={},yd={};function AHe(t){delete yd[t]}function EHe(t){if(!t)return!1;if(typeof t=="string")return nb(t,1)<wR;if(t.colorStops){for(var e=t.colorStops,n=0,r=e.length,i=0;i<r;i++)n+=nb(e[i].color,1);return n/=r,n<wR}return!1}var MHe=function(){function t(e,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=e;var o=new F9e,a=r.renderer||"canvas";if(T0[a]||(a=bt(T0)[0]),process.env.NODE_ENV!=="production"&&!T0[a])throw new Error("Renderer '"+a+"' is not imported. Please import it first.");r.useDirtyRect=r.useDirtyRect==null?!1:r.useDirtyRect;var s=new T0[a](n,o,r,e),l=r.ssr||s.ssrOnly;this.storage=o,this.painter=s;var u=!Ct.node&&!Ct.worker&&!l?new _He(s.getViewportRoot(),s.root):null,c=r.useCoarsePointer,f=c==null||c==="auto"?Ct.touchEventsSupported:!!c,d=44,p;f&&(p=Je(r.pointerSize,d)),this.handler=new nae(o,s,u,s.root,p),this.animation=new hHe({stage:{update:l?null:function(){return i._flush(!0)}}}),l||this.animation.start()}return t.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},t.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},t.prototype.configLayer=function(e,n){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,n),this.refresh())},t.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=EHe(e))},t.prototype.getBackgroundColor=function(){return this._backgroundColor},t.prototype.setDarkMode=function(e){this._darkMode=e},t.prototype.isDarkMode=function(){return this._darkMode},t.prototype.refreshImmediately=function(e){this._disposed||(e||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},t.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},t.prototype.flush=function(){this._disposed||this._flush(!1)},t.prototype._flush=function(e){var n,r=Zp();this._needsRefresh&&(n=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(n=!0,this.refreshHoverImmediately());var i=Zp();n?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:i-r})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},t.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},t.prototype.resize=function(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.height),this.handler.resize())},t.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},t.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},t.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},t.prototype.setCursorStyle=function(e){this._disposed||this.handler.setCursorStyle(e)},t.prototype.findHover=function(e,n){if(!this._disposed)return this.handler.findHover(e,n)},t.prototype.on=function(e,n,r){return this._disposed||this.handler.on(e,n,r),this},t.prototype.off=function(e,n){this._disposed||this.handler.off(e,n)},t.prototype.trigger=function(e,n){this._disposed||this.handler.trigger(e,n)},t.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),n=0;n<e.length;n++)e[n]instanceof qe&&e[n].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},t.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,AHe(this.id))},t}();function CR(t,e){var n=new MHe(w8(),t,e);return yd[n.id]=n,n}function IHe(t){t.dispose()}function DHe(){for(var t in yd)yd.hasOwnProperty(t)&&yd[t].dispose();yd={}}function RHe(t){return yd[t]}function Cae(t,e){T0[t]=e}var TR;function Tae(t){if(typeof TR=="function")return TR(t)}function Pae(t){TR=t}var kHe="5.6.0";const NHe=Object.freeze(Object.defineProperty({__proto__:null,dispose:IHe,disposeAll:DHe,getElementSSRData:Tae,getInstance:RHe,init:CR,registerPainter:Cae,registerSSRDataGetter:Pae,version:kHe},Symbol.toStringTag,{value:"Module"}));var G9=1e-4,$ae=20;function LHe(t){return t.replace(/^\s+|\s+$/g,"")}function Zt(t,e,n,r){var i=e[0],o=e[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(t<=i)return a;if(t>=o)return s}else{if(t>=i)return a;if(t<=o)return s}else{if(t===i)return a;if(t===o)return s}return(t-i)/l*u+a}function Me(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%";break}return Ie(t)?LHe(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):t==null?NaN:+t}function Nn(t,e,n){return e==null&&(e=10),e=Math.min(Math.max(0,e),$ae),t=(+t).toFixed(e),n?t:+t}function Ao(t){return t.sort(function(e,n){return e-n}),t}function Ya(t){if(t=+t,isNaN(t))return 0;if(t>1e-14){for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n}return NS(t)}function NS(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),r=n>0?+e.slice(n+1):0,i=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:i-1-o;return Math.max(0,a-r)}function I8(t,e){var n=Math.log,r=Math.LN10,i=Math.floor(n(t[1]-t[0])/r),o=Math.round(n(Math.abs(e[1]-e[0]))/r),a=Math.min(Math.max(-i+o,0),20);return isFinite(a)?a:20}function BHe(t,e,n){if(!t[e])return 0;var r=Aae(t,n);return r[e]||0}function Aae(t,e){var n=Ta(t,function(p,v){return p+(isNaN(v)?0:v)},0);if(n===0)return[];for(var r=Math.pow(10,e),i=ye(t,function(p){return(isNaN(p)?0:p)/n*r*100}),o=r*100,a=ye(i,function(p){return Math.floor(p)}),s=Ta(a,function(p,v){return p+v},0),l=ye(i,function(p,v){return p-a[v]});s<o;){for(var u=Number.NEGATIVE_INFINITY,c=null,f=0,d=l.length;f<d;++f)l[f]>u&&(u=l[f],c=f);++a[c],l[c]=0,++s}return ye(a,function(p){return p/r})}function VHe(t,e){var n=Math.max(Ya(t),Ya(e)),r=t+e;return n>$ae?r:Nn(r,n)}var PR=9007199254740991;function D8(t){var e=Math.PI*2;return(t%e+e)%e}function qv(t){return t>-G9&&t<G9}var zHe=/^(?:(\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 Bo(t){if(t instanceof Date)return t;if(Ie(t)){var e=zHe.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return e[8].toUpperCase()!=="Z"&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0))}else return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,e[7]?+e[7].substring(0,3):0)}else if(t==null)return new Date(NaN);return new Date(Math.round(t))}function Eae(t){return Math.pow(10,p_(t))}function p_(t){if(t===0)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function R8(t,e){var n=p_(t),r=Math.pow(10,n),i=t/r,o;return e?i<1.5?o=1:i<2.5?o=2:i<4?o=3:i<7?o=5:o=10:i<1?o=1:i<2?o=2:i<3?o=3:i<5?o=5:o=10,t=o*r,n>=-20?+t.toFixed(n<0?-n:0):t}function vx(t,e){var n=(t.length-1)*e+1,r=Math.floor(n),i=+t[r-1],o=n-r;return o?i+o*(t[r]-i):i}function $R(t){t.sort(function(l,u){return s(l,u,0)?-1:1});for(var e=-1/0,n=1,r=0;r<t.length;){for(var i=t[r].interval,o=t[r].close,a=0;a<2;a++)i[a]<=e&&(i[a]=e,o[a]=a?1:1-n),e=i[a],n=o[a];i[0]===i[1]&&o[0]*o[1]!==1?t.splice(r,1):r++}return t;function s(l,u,c){return l.interval[c]<u.interval[c]||l.interval[c]===u.interval[c]&&(l.close[c]-u.close[c]===(c?-1:1)||!c&&s(l,u,1))}}function ul(t){var e=parseFloat(t);return e==t&&(e!==0||!Ie(t)||t.indexOf("x")<=0)?e:NaN}function gP(t){return!isNaN(ul(t))}function Mae(){return Math.round(Math.random()*9)}function Iae(t,e){return e===0?t:Iae(e,t%e)}function j9(t,e){return t==null?e:e==null?t:t*e/Iae(t,e)}var FHe="[ECharts] ",U9={},WHe=typeof console<"u"&&console.warn&&console.log;function mP(t,e,n){if(WHe){if(n){if(U9[e])return;U9[e]=!0}console[t](FHe+e)}}function QHe(t,e){mP("log",t,e)}function Mn(t,e){mP("warn",t,e)}function qr(t,e){mP("error",t,e)}function Pa(t){process.env.NODE_ENV!=="production"&&mP("warn","DEPRECATED: "+t,!0)}function Un(t,e,n){process.env.NODE_ENV!=="production"&&Pa((n?"["+n+"]":"")+(t+" is deprecated, use "+e+" instead."))}function Ri(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n="";if(process.env.NODE_ENV!=="production"){var r=function(i){return i===void 0?"undefined":i===1/0?"Infinity":i===-1/0?"-Infinity":Mc(i)?"NaN":i instanceof Date?"Date("+i.toISOString()+")":Fe(i)?"function () { ... }":S8(i)?i+"":null};n=ye(t,function(i){if(Ie(i))return i;var o=r(i);if(o!=null)return o;if(typeof JSON<"u"&&JSON.stringify)try{return JSON.stringify(i,function(a,s){var l=r(s);return l??s})}catch{return"?"}else return"?"}).join(" ")}return n}function Qt(t){throw new Error(t)}function Z9(t,e,n){return(e-t)*n+t}var Dae="series\0",Rae="\0_ec_\0";function nn(t){return t instanceof Array?t:t==null?[]:[t]}function sh(t,e,n){if(t){t[e]=t[e]||{},t.emphasis=t.emphasis||{},t.emphasis[e]=t.emphasis[e]||{};for(var r=0,i=n.length;r<i;r++){var o=n[r];!t.emphasis[e].hasOwnProperty(o)&&t[e].hasOwnProperty(o)&&(t.emphasis[e][o]=t[e][o])}}}var X9=["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 $g(t){return Qe(t)&&!ve(t)&&!(t instanceof Date)?t.value:t}function HHe(t){return Qe(t)&&!(t instanceof Array)}function kae(t,e,n){var r=n==="normalMerge",i=n==="replaceMerge",o=n==="replaceAll";t=t||[],e=(e||[]).slice();var a=Be();V(e,function(l,u){if(!Qe(l)){e[u]=null;return}process.env.NODE_ENV!=="production"&&(l.id!=null&&!q9(l.id)&&Y9(l.id),l.name!=null&&!q9(l.name)&&Y9(l.name))});var s=GHe(t,a,n);return(r||i)&&jHe(s,t,a,e),r&&UHe(s,e),r||i?ZHe(s,e,i):o&&XHe(s,e),YHe(s),s}function GHe(t,e,n){var r=[];if(n==="replaceAll")return r;for(var i=0;i<t.length;i++){var o=t[i];o&&o.id!=null&&e.set(o.id,i),r.push({existing:n==="replaceMerge"||Kv(o)?null:o,newOption:null,keyInfo:null,brandNew:null})}return r}function jHe(t,e,n,r){V(r,function(i,o){if(!(!i||i.id==null)){var a=cy(i.id),s=n.get(a);if(s!=null){var l=t[s];je(!l.newOption,'Duplicated option on id "'+a+'".'),l.newOption=i,l.existing=e[s],r[o]=null}}})}function UHe(t,e){V(e,function(n,r){if(!(!n||n.name==null))for(var i=0;i<t.length;i++){var o=t[i].existing;if(!t[i].newOption&&o&&(o.id==null||n.id==null)&&!Kv(n)&&!Kv(o)&&Nae("name",o,n)){t[i].newOption=n,e[r]=null;return}}})}function ZHe(t,e,n){V(e,function(r){if(r){for(var i,o=0;(i=t[o])&&(i.newOption||Kv(i.existing)||i.existing&&r.id!=null&&!Nae("id",r,i.existing));)o++;i?(i.newOption=r,i.brandNew=n):t.push({newOption:r,brandNew:n,existing:null,keyInfo:null}),o++}})}function XHe(t,e){V(e,function(n){t.push({newOption:n,brandNew:!0,existing:null,keyInfo:null})})}function YHe(t){var e=Be();V(t,function(n){var r=n.existing;r&&e.set(r.id,n)}),V(t,function(n){var r=n.newOption;je(!r||r.id==null||!e.get(r.id)||e.get(r.id)===n,"id duplicates: "+(r&&r.id)),r&&r.id!=null&&e.set(r.id,n),!n.keyInfo&&(n.keyInfo={})}),V(t,function(n,r){var i=n.existing,o=n.newOption,a=n.keyInfo;if(Qe(o)){if(a.name=o.name!=null?cy(o.name):i?i.name:Dae+r,i)a.id=cy(i.id);else if(o.id!=null)a.id=cy(o.id);else{var s=0;do a.id="\0"+a.name+"\0"+s++;while(e.get(a.id))}e.set(a.id,n)}})}function Nae(t,e,n){var r=ur(e[t],null),i=ur(n[t],null);return r!=null&&i!=null&&r===i}function cy(t){if(process.env.NODE_ENV!=="production"&&t==null)throw new Error;return ur(t,"")}function ur(t,e){return t==null?e:Ie(t)?t:It(t)||Xy(t)?t+"":e}function Y9(t){process.env.NODE_ENV!=="production"&&Mn("`"+t+"` is invalid id or name. Must be a string or number.")}function q9(t){return Xy(t)||gP(t)}function k8(t){var e=t.name;return!!(e&&e.indexOf(Dae))}function Kv(t){return t&&t.id!=null&&cy(t.id).indexOf(Rae)===0}function qHe(t){return Rae+t}function KHe(t,e,n){V(t,function(r){var i=r.newOption;Qe(i)&&(r.keyInfo.mainType=e,r.keyInfo.subType=JHe(e,i,r.existing,n))})}function JHe(t,e,n,r){var i=e.type?e.type:n?n.subType:r.determineSubType(t,e);return i}function eGe(t,e){var n={},r={};return i(t||[],n),i(e||[],r,n),[o(n),o(r)];function i(a,s,l){for(var u=0,c=a.length;u<c;u++){var f=ur(a[u].seriesId,null);if(f==null)return;for(var d=nn(a[u].dataIndex),p=l&&l[f],v=0,g=d.length;v<g;v++){var m=d[v];p&&p[m]?p[m]=null:(s[f]||(s[f]={}))[m]=1}}}function o(a,s){var l=[];for(var u in a)if(a.hasOwnProperty(u)&&a[u]!=null)if(s)l.push(+u);else{var c=o(a[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function lh(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return ve(e.dataIndex)?ye(e.dataIndex,function(n){return t.indexOfRawIndex(n)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return ve(e.name)?ye(e.name,function(n){return t.indexOfName(n)}):t.indexOfName(e.name)}function $t(){var t="__ec_inner_"+tGe++;return function(e){return e[t]||(e[t]={})}}var tGe=Mae();function fy(t,e,n){var r=N8(e,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=v_(t,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 N8(t,e){var n;if(Ie(t)){var r={};r[t+"Index"]=0,n=r}else n=t;var i=Be(),o={},a=!1;return V(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||e&&e.includeMainTypes&&st(e.includeMainTypes,c)<0)){a=a||!!c;var d=i.get(c)||i.set(c,{});d[f]=s}}),{mainTypeSpecified:a,queryOptionMap:i,others:o}}var rr={useDefault:!0,enableAll:!1,enableNone:!1},nGe={useDefault:!1,enableAll:!0,enableNone:!0};function v_(t,e,n,r){r=r||rr;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=t.getComponent(e))?[l]:[],s}return i==="none"||i===!1?(je(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(je(r.enableAll,'`"all"` is not a valid value on index option.'),i=o=a=null),s.models=t.queryComponents({mainType:e,index:i,id:o,name:a}),s)}function Lae(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function rGe(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function iGe(t){return t==="auto"?Ct.domSupported?"html":"richText":t||"html"}function AR(t,e){var n=Be(),r=[];return V(t,function(i){var o=e(i);(n.get(o)||(r.push(o),n.set(o,[]))).push(i)}),{keys:r,buckets:n}}function Bae(t,e,n,r,i){var o=e==null||e==="auto";if(r==null)return r;if(It(r)){var a=Z9(n||0,r,i);return Nn(a,o?Math.max(Ya(n||0),Ya(r)):e)}else{if(Ie(r))return i<1?n:r;for(var s=[],l=n,u=r,c=Math.max(l?l.length:0,u.length),f=0;f<c;++f){var d=t.getDimensionInfo(f);if(d&&d.type==="ordinal")s[f]=(i<1&&l?l:u)[f];else{var p=l&&l[f]?l[f]:0,v=u[f],a=Z9(p,v,i);s[f]=Nn(a,o?Math.max(Ya(p),Ya(v)):e)}}return s}}var oGe=".",Af="___EC__COMPONENT__CONTAINER___",Vae="___EC__EXTENDED_CLASS___";function js(t){var e={main:"",sub:""};if(t){var n=t.split(oGe);e.main=n[0]||"",e.sub=n[1]||""}return e}function aGe(t){je(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function sGe(t){return!!(t&&t[Vae])}function L8(t,e){t.$constructor=t,t.extend=function(n){process.env.NODE_ENV!=="production"&&V(e,function(o){n[o]||console.warn("Method `"+o+"` should be implemented"+(n.type?" in "+n.type:"")+".")});var r=this,i;return lGe(r)?i=function(o){ie(a,o);function a(){return o.apply(this,arguments)||this}return a}(r):(i=function(){(n.$constructor||r).apply(this,arguments)},x8(i,this)),he(i.prototype,n),i[Vae]=!0,i.extend=this.extend,i.superCall=fGe,i.superApply=dGe,i.superClass=r,i}}function lGe(t){return Fe(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function zae(t,e){t.extend=e.extend}var uGe=Math.round(Math.random()*10);function cGe(t){var e=["__\0is_clz",uGe++].join("_");t.prototype[e]=!0,process.env.NODE_ENV!=="production"&&je(!t.isInstance,'The method "is" can not be defined.'),t.isInstance=function(n){return!!(n&&n[e])}}function fGe(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this.superClass.prototype[e].apply(t,n)}function dGe(t,e,n){return this.superClass.prototype[e].apply(t,n)}function yP(t){var e={};t.registerClass=function(r){var i=r.type||r.prototype.type;if(i){aGe(i),r.prototype.type=i;var o=js(i);if(!o.sub)process.env.NODE_ENV!=="production"&&e[o.main]&&console.warn(o.main+" exists."),e[o.main]=r;else if(o.sub!==Af){var a=n(o);a[o.sub]=r}}return r},t.getClass=function(r,i,o){var a=e[r];if(a&&a[Af]&&(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},t.getClassesByMainType=function(r){var i=js(r),o=[],a=e[i.main];return a&&a[Af]?V(a,function(s,l){l!==Af&&o.push(s)}):o.push(a),o},t.hasClass=function(r){var i=js(r);return!!e[i.main]},t.getAllClassMainTypes=function(){var r=[];return V(e,function(i,o){r.push(o)}),r},t.hasSubTypes=function(r){var i=js(r),o=e[i.main];return o&&o[Af]};function n(r){var i=e[r.main];return(!i||!i[Af])&&(i=e[r.main]={},i[Af]=!0),i}}function uh(t,e){for(var n=0;n<t.length;n++)t[n][1]||(t[n][1]=t[n][0]);return e=e||!1,function(r,i,o){for(var a={},s=0;s<t.length;s++){var l=t[s][1];if(!(i&&st(i,l)>=0||o&&st(o,l)<0)){var u=r.getShallow(l,e);u!=null&&(a[t[s][0]]=u)}}return a}}var hGe=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],pGe=uh(hGe),vGe=function(){function t(){}return t.prototype.getAreaStyle=function(e,n){return pGe(this,e,n)},t}(),ER=new d_(50);function gGe(t){if(typeof t=="string"){var e=ER.get(t);return e&&e.image}else return t}function B8(t,e,n,r,i){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!n)return e;var o=ER.get(t),a={hostEl:n,cb:r,cbPayload:i};return o?(e=o.image,!bP(e)&&o.pending.push(a)):(e=ls.loadImage(t,K9,K9),e.__zrImageSrc=t,ER.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}else return t;else return e}function K9(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e<t.pending.length;e++){var n=t.pending[e],r=n.cb;r&&r(this,n.cbPayload),n.hostEl.dirty()}t.pending.length=0}function bP(t){return t&&t.width&&t.height}var JA=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Fae(t,e,n,r,i){if(!e)return"";var o=(t+"").split(`
  329. `);i=Wae(e,n,r,i);for(var a=0,s=o.length;a<s;a++)o[a]=Qae(o[a],i);return o.join(`
  330. `)}function Wae(t,e,n,r){r=r||{};var i=he({},r);i.font=e,n=Je(n,"..."),i.maxIterations=Je(r.maxIterations,2);var o=i.minChar=Je(r.minChar,0);i.cnCharWidth=ko("国",e);var a=i.ascCharWidth=ko("a",e);i.placeholder=Je(r.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;l<o&&s>=a;l++)s-=a;var u=ko(n,e);return u>s&&(n="",u=0),s=t-u,i.ellipsis=n,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=t,i}function Qae(t,e){var n=e.containerWidth,r=e.font,i=e.contentWidth;if(!n)return"";var o=ko(t,r);if(o<=n)return t;for(var a=0;;a++){if(o<=i||a>=e.maxIterations){t+=e.ellipsis;break}var s=a===0?mGe(t,i,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*i/o):0;t=t.substr(0,s),o=ko(t,r)}return t===""&&(t=e.placeholder),t}function mGe(t,e,n,r){for(var i=0,o=0,a=t.length;o<a&&i<e;o++){var s=t.charCodeAt(o);i+=0<=s&&s<=127?n:r}return o}function yGe(t,e){t!=null&&(t+="");var n=e.overflow,r=e.padding,i=e.font,o=n==="truncate",a=pP(i),s=Je(e.lineHeight,a),l=!!e.backgroundColor,u=e.lineOverflow==="truncate",c=e.width,f;c!=null&&(n==="break"||n==="breakAll")?f=t?Hae(t,e.font,c,n==="breakAll",0).lines:[]:f=t?t.split(`
  331. `):[];var d=f.length*s,p=Je(e.height,d);if(d>p&&u){var v=Math.floor(p/s);f=f.slice(0,v)}if(t&&o&&c!=null)for(var g=Wae(c,i,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m=0;m<f.length;m++)f[m]=Qae(f[m],g);for(var y=p,b=0,m=0;m<f.length;m++)b=Math.max(ko(f[m],i),b);c==null&&(c=b);var O=b;return r&&(y+=r[0]+r[2],O+=r[1]+r[3],c+=r[1]+r[3]),l&&(O=c),{lines:f,height:p,outerWidth:O,outerHeight:y,lineHeight:s,calculatedLineHeight:a,contentWidth:b,contentHeight:d,width:c}}var bGe=function(){function t(){}return t}(),J9=function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t}(),_Ge=function(){function t(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return t}();function OGe(t,e){var n=new _Ge;if(t!=null&&(t+=""),!t)return n;for(var r=e.width,i=e.height,o=e.overflow,a=(o==="break"||o==="breakAll")&&r!=null?{width:r,accumWidth:0,breakAll:o==="breakAll"}:null,s=JA.lastIndex=0,l;(l=JA.exec(t))!=null;){var u=l.index;u>s&&eE(n,t.substring(s,u),e,a),eE(n,l[2],e,a,l[1]),s=JA.lastIndex}s<t.length&&eE(n,t.substring(s,t.length),e,a);var c=[],f=0,d=0,p=e.padding,v=o==="truncate",g=e.lineOverflow==="truncate";function m(z,W,j){z.width=W,z.lineHeight=j,f+=j,d=Math.max(d,W)}e:for(var y=0;y<n.lines.length;y++){for(var b=n.lines[y],O=0,w=0,x=0;x<b.tokens.length;x++){var S=b.tokens[x],T=S.styleName&&e.rich[S.styleName]||{},$=S.textPadding=T.padding,A=$?$[1]+$[3]:0,P=S.font=T.font||e.font;S.contentHeight=pP(P);var M=Je(T.height,S.contentHeight);if(S.innerHeight=M,$&&(M+=$[0]+$[2]),S.height=M,S.lineHeight=Ro(T.lineHeight,e.lineHeight,M),S.align=T&&T.align||e.align,S.verticalAlign=T&&T.verticalAlign||"middle",g&&i!=null&&f+S.lineHeight>i){x>0?(b.tokens=b.tokens.slice(0,x),m(b,w,O),n.lines=n.lines.slice(0,y+1)):n.lines=n.lines.slice(0,y);break e}var I=T.width,R=I==null||I==="auto";if(typeof I=="string"&&I.charAt(I.length-1)==="%")S.percentWidth=I,c.push(S),S.contentWidth=ko(S.text,P);else{if(R){var L=T.backgroundColor,D=L&&L.image;D&&(D=gGe(D),bP(D)&&(S.width=Math.max(S.width,D.width*M/D.height)))}var B=v&&r!=null?r-w:null;B!=null&&B<S.width?!R||B<A?(S.text="",S.width=S.contentWidth=0):(S.text=Fae(S.text,B-A,P,e.ellipsis,{minChar:e.truncateMinChar}),S.width=S.contentWidth=ko(S.text,P)):S.contentWidth=ko(S.text,P)}S.width+=A,w+=S.width,T&&(O=Math.max(O,S.lineHeight))}m(b,w,O)}n.outerWidth=n.width=Je(r,d),n.outerHeight=n.height=Je(i,f),n.contentHeight=f,n.contentWidth=d,p&&(n.outerWidth+=p[1]+p[3],n.outerHeight+=p[0]+p[2]);for(var y=0;y<c.length;y++){var S=c[y],F=S.percentWidth;S.width=parseInt(F,10)/100*n.width}return n}function eE(t,e,n,r,i){var o=e==="",a=i&&n.rich[i]||{},s=t.lines,l=a.font||n.font,u=!1,c,f;if(r){var d=a.padding,p=d?d[1]+d[3]:0;if(a.width!=null&&a.width!=="auto"){var v=cs(a.width,r.width)+p;s.length>0&&v+r.accumWidth>r.width&&(c=e.split(`
  332. `),u=!0),r.accumWidth=v}else{var g=Hae(e,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=g.accumWidth+p,f=g.linesWidths,c=g.lines}}else c=e.split(`
  333. `);for(var m=0;m<c.length;m++){var y=c[m],b=new bGe;if(b.styleName=i,b.text=y,b.isLineHolder=!y&&!o,typeof a.width=="number"?b.width=a.width:b.width=f?f[m]:ko(y,l),!m&&!u){var O=(s[s.length-1]||(s[0]=new J9)).tokens,w=O.length;w===1&&O[0].isLineHolder?O[0]=b:(y||!w||o)&&O.push(b)}else s.push(new J9([b]))}}function wGe(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var xGe=Ta(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function SGe(t){return wGe(t)?!!xGe[t]:!0}function Hae(t,e,n,r,i){for(var o=[],a=[],s="",l="",u=0,c=0,f=0;f<t.length;f++){var d=t.charAt(f);if(d===`
  334. `){l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0;continue}var p=ko(d,e),v=r?!1:!SGe(d);if(o.length?c+p>n:i+c+p>n){c?(s||l)&&(v?(s||(s=l,l="",u=0,c=u),o.push(s),a.push(c-u),l+=d,u+=p,s="",c=u):(l&&(s+=l,l="",u=0),o.push(s),a.push(c),s=d,c=p)):v?(o.push(l),a.push(u),l=d,u=p):(o.push(d),a.push(p));continue}c+=p,v?(l+=d,u+=p):(l&&(s+=l,l="",u=0),s+=d)}return!o.length&&!s&&(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),o.length===1&&(c+=i),{accumWidth:c,lines:o,linesWidths:a}}var MR="__zr_style_"+Math.round(Math.random()*10),Vd={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},_P={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Vd[MR]=!0;var eH=["z","z2","invisible"],CGe=["invisible"],TGe=function(t){ie(e,t);function e(n){return t.call(this,n)||this}return e.prototype._init=function(n){for(var r=bt(n),i=0;i<r.length;i++){var o=r[i];o==="style"?this.useStyle(n[o]):t.prototype.attrKV.call(this,o,n[o])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(n,r,i,o){var a=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&PGe(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},e.prototype.contain=function(n,r){return this.rectContain(n,r)},e.prototype.traverse=function(n,r){n.call(r,this)},e.prototype.rectContain=function(n,r){var i=this.transformCoordToLocal(n,r),o=this.getBoundingRect();return o.contain(i[0],i[1])},e.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 at(0,0,0,0)),r?at.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},e.prototype.setPrevPaintRect=function(n){n?(this._prevPaintRect=this._prevPaintRect||new at(0,0,0,0),this._prevPaintRect.copy(n)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(n){return this.animate("style",n)},e.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(n,r){n!=="style"?t.prototype.attrKV.call(this,n,r):this.style?this.setStyle(r):this.useStyle(r)},e.prototype.setStyle=function(n,r){return typeof n=="string"?this.style[n]=r:he(this.style,n),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(n){n||this.markRedraw(),this.__dirty|=x0,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&x0)},e.prototype.styleUpdated=function(){this.__dirty&=~x0},e.prototype.createStyle=function(n){return c_(Vd,n)},e.prototype.useStyle=function(n){n[MR]||(n=this.createStyle(n)),this.__inHover?this.__hoverStyle=n:this.style=n,this.dirtyStyle()},e.prototype.isStyleObject=function(n){return n[MR]},e.prototype._innerSaveToNormal=function(n){t.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,eH)},e.prototype._applyStateObj=function(n,r,i,o,a,s){t.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=bt(c),d=0;d<f.length;d++){var p=f[d];p in u&&(u[p]=u[p],this.style[p]=c[p])}for(var v=bt(u),d=0;d<v.length;d++){var p=v[d];this.style[p]=this.style[p]}this._transitionState(n,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var g=this.__inHover?CGe:eH,d=0;d<g.length;d++){var p=g[d];r&&r[p]!=null?this[p]=r[p]:l&&i[p]!=null&&(this[p]=i[p])}},e.prototype._mergeStates=function(n){for(var r=t.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},e.prototype._mergeStyle=function(n,r){return he(n,r),n},e.prototype.getAnimationStyleProps=function(){return _P},e.initDefaultProps=function(){var n=e.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=Co|x0}(),e}(vP),tE=new at(0,0,0,0),nE=new at(0,0,0,0);function PGe(t,e,n){return tE.copy(t.getBoundingRect()),t.transform&&tE.applyTransform(t.transform),nE.width=e,nE.height=n,!tE.intersect(nE)}const $a=TGe;var Yi=Math.min,qi=Math.max,rE=Math.sin,iE=Math.cos,Ef=Math.PI*2,bO=Xc(),_O=Xc(),OO=Xc();function OP(t,e,n){if(t.length!==0){for(var r=t[0],i=r[0],o=r[0],a=r[1],s=r[1],l=1;l<t.length;l++)r=t[l],i=Yi(i,r[0]),o=qi(o,r[0]),a=Yi(a,r[1]),s=qi(s,r[1]);e[0]=i,e[1]=a,n[0]=o,n[1]=s}}function tH(t,e,n,r,i,o){i[0]=Yi(t,n),i[1]=Yi(e,r),o[0]=qi(t,n),o[1]=qi(e,r)}var nH=[],rH=[];function $Ge(t,e,n,r,i,o,a,s,l,u){var c=sae,f=mr,d=c(t,n,i,a,nH);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var p=0;p<d;p++){var v=f(t,n,i,a,nH[p]);l[0]=Yi(v,l[0]),u[0]=qi(v,u[0])}d=c(e,r,o,s,rH);for(var p=0;p<d;p++){var g=f(e,r,o,s,rH[p]);l[1]=Yi(g,l[1]),u[1]=qi(g,u[1])}l[0]=Yi(t,l[0]),u[0]=qi(t,u[0]),l[0]=Yi(a,l[0]),u[0]=qi(a,u[0]),l[1]=Yi(e,l[1]),u[1]=qi(e,u[1]),l[1]=Yi(s,l[1]),u[1]=qi(s,u[1])}function AGe(t,e,n,r,i,o,a,s){var l=uae,u=Ar,c=qi(Yi(l(t,n,i),1),0),f=qi(Yi(l(e,r,o),1),0),d=u(t,n,i,c),p=u(e,r,o,f);a[0]=Yi(t,i,d),a[1]=Yi(e,o,p),s[0]=qi(t,i,d),s[1]=qi(e,o,p)}function EGe(t,e,n,r,i,o,a,s,l){var u=Ql,c=Hl,f=Math.abs(i-o);if(f%Ef<1e-4&&f>1e-4){s[0]=t-n,s[1]=e-r,l[0]=t+n,l[1]=e+r;return}if(bO[0]=iE(i)*n+t,bO[1]=rE(i)*r+e,_O[0]=iE(o)*n+t,_O[1]=rE(o)*r+e,u(s,bO,_O),c(l,bO,_O),i=i%Ef,i<0&&(i=i+Ef),o=o%Ef,o<0&&(o=o+Ef),i>o&&!a?o+=Ef:i<o&&a&&(i+=Ef),a){var d=o;o=i,i=d}for(var p=0;p<o;p+=Math.PI/2)p>i&&(OO[0]=iE(p)*n+t,OO[1]=rE(p)*r+e,u(s,OO,s),c(l,OO,l))}var ln={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Mf=[],If=[],Cs=[],ku=[],Ts=[],Ps=[],oE=Math.min,aE=Math.max,Df=Math.cos,Rf=Math.sin,Il=Math.abs,IR=Math.PI,Gu=IR*2,sE=typeof Float32Array<"u",Vm=[];function lE(t){var e=Math.round(t/IR*1e8)/1e8;return e%2*IR}function V8(t,e){var n=lE(t[0]);n<0&&(n+=Gu);var r=n-t[0],i=t[1];i+=r,!e&&i-n>=Gu?i=n+Gu:e&&n-i>=Gu?i=n-Gu:!e&&n>i?i=n+(Gu-lE(n-i)):e&&n<i&&(i=n-(Gu-lE(i-n))),t[0]=n,t[1]=i}var cl=function(){function t(e){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,e&&(this._saveData=!1),this._saveData&&(this.data=[])}return t.prototype.increaseVersion=function(){this._version++},t.prototype.getVersion=function(){return this._version},t.prototype.setScale=function(e,n,r){r=r||0,r>0&&(this._ux=Il(r/RS/e)||0,this._uy=Il(r/RS/n)||0)},t.prototype.setDPR=function(e){this.dpr=e},t.prototype.setContext=function(e){this._ctx=e},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(e,n){return this._drawPendingPt(),this.addData(ln.M,e,n),this._ctx&&this._ctx.moveTo(e,n),this._x0=e,this._y0=n,this._xi=e,this._yi=n,this},t.prototype.lineTo=function(e,n){var r=Il(e-this._xi),i=Il(n-this._yi),o=r>this._ux||i>this._uy;if(this.addData(ln.L,e,n),this._ctx&&o&&this._ctx.lineTo(e,n),o)this._xi=e,this._yi=n,this._pendingPtDist=0;else{var a=r*r+i*i;a>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=n,this._pendingPtDist=a)}return this},t.prototype.bezierCurveTo=function(e,n,r,i,o,a){return this._drawPendingPt(),this.addData(ln.C,e,n,r,i,o,a),this._ctx&&this._ctx.bezierCurveTo(e,n,r,i,o,a),this._xi=o,this._yi=a,this},t.prototype.quadraticCurveTo=function(e,n,r,i){return this._drawPendingPt(),this.addData(ln.Q,e,n,r,i),this._ctx&&this._ctx.quadraticCurveTo(e,n,r,i),this._xi=r,this._yi=i,this},t.prototype.arc=function(e,n,r,i,o,a){this._drawPendingPt(),Vm[0]=i,Vm[1]=o,V8(Vm,a),i=Vm[0],o=Vm[1];var s=o-i;return this.addData(ln.A,e,n,r,r,i,s,0,a?0:1),this._ctx&&this._ctx.arc(e,n,r,i,o,a),this._xi=Df(o)*r+e,this._yi=Rf(o)*r+n,this},t.prototype.arcTo=function(e,n,r,i,o){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,n,r,i,o),this},t.prototype.rect=function(e,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,n,r,i),this.addData(ln.R,e,n,r,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(ln.Z);var e=this._ctx,n=this._x0,r=this._y0;return e&&e.closePath(),this._xi=n,this._yi=r,this},t.prototype.fill=function(e){e&&e.fill(),this.toStatic()},t.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(e){var n=e.length;!(this.data&&this.data.length===n)&&sE&&(this.data=new Float32Array(n));for(var r=0;r<n;r++)this.data[r]=e[r];this._len=n},t.prototype.appendPath=function(e){e instanceof Array||(e=[e]);for(var n=e.length,r=0,i=this._len,o=0;o<n;o++)r+=e[o].len();sE&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+r));for(var o=0;o<n;o++)for(var a=e[o].data,s=0;s<a.length;s++)this.data[i++]=a[s];this._len=i},t.prototype.addData=function(e,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]}},t.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],n=0;n<this._len;n++)e[n]=this.data[n];this.data=e}},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var e=this.data;e instanceof Array&&(e.length=this._len,sE&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){Cs[0]=Cs[1]=Ts[0]=Ts[1]=Number.MAX_VALUE,ku[0]=ku[1]=Ps[0]=Ps[1]=-Number.MAX_VALUE;var e=this.data,n=0,r=0,i=0,o=0,a;for(a=0;a<this._len;){var s=e[a++],l=a===1;switch(l&&(n=e[a],r=e[a+1],i=n,o=r),s){case ln.M:n=i=e[a++],r=o=e[a++],Ts[0]=i,Ts[1]=o,Ps[0]=i,Ps[1]=o;break;case ln.L:tH(n,r,e[a],e[a+1],Ts,Ps),n=e[a++],r=e[a++];break;case ln.C:$Ge(n,r,e[a++],e[a++],e[a++],e[a++],e[a],e[a+1],Ts,Ps),n=e[a++],r=e[a++];break;case ln.Q:AGe(n,r,e[a++],e[a++],e[a],e[a+1],Ts,Ps),n=e[a++],r=e[a++];break;case ln.A:var u=e[a++],c=e[a++],f=e[a++],d=e[a++],p=e[a++],v=e[a++]+p;a+=1;var g=!e[a++];l&&(i=Df(p)*f+u,o=Rf(p)*d+c),EGe(u,c,f,d,p,v,g,Ts,Ps),n=Df(v)*f+u,r=Rf(v)*d+c;break;case ln.R:i=n=e[a++],o=r=e[a++];var m=e[a++],y=e[a++];tH(i,o,i+m,o+y,Ts,Ps);break;case ln.Z:n=i,r=o;break}Ql(Cs,Cs,Ts),Hl(ku,ku,Ps)}return a===0&&(Cs[0]=Cs[1]=ku[0]=ku[1]=0),new at(Cs[0],Cs[1],ku[0]-Cs[0],ku[1]-Cs[1])},t.prototype._calculateLength=function(){var e=this.data,n=this._len,r=this._ux,i=this._uy,o=0,a=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,f=0,d=0;d<n;){var p=e[d++],v=d===1;v&&(o=e[d],a=e[d+1],s=o,l=a);var g=-1;switch(p){case ln.M:o=s=e[d++],a=l=e[d++];break;case ln.L:{var m=e[d++],y=e[d++],b=m-o,O=y-a;(Il(b)>r||Il(O)>i||d===n-1)&&(g=Math.sqrt(b*b+O*O),o=m,a=y);break}case ln.C:{var w=e[d++],x=e[d++],m=e[d++],y=e[d++],S=e[d++],T=e[d++];g=W9e(o,a,w,x,m,y,S,T,10),o=S,a=T;break}case ln.Q:{var w=e[d++],x=e[d++],m=e[d++],y=e[d++];g=H9e(o,a,w,x,m,y,10),o=m,a=y;break}case ln.A:var $=e[d++],A=e[d++],P=e[d++],M=e[d++],I=e[d++],R=e[d++],L=R+I;d+=1,v&&(s=Df(I)*P+$,l=Rf(I)*M+A),g=aE(P,M)*oE(Gu,Math.abs(R)),o=Df(L)*P+$,a=Rf(L)*M+A;break;case ln.R:{s=o=e[d++],l=a=e[d++];var D=e[d++],B=e[d++];g=D*2+B*2;break}case ln.Z:{var b=s-o,O=l-a;g=Math.sqrt(b*b+O*O),o=s,a=l;break}}g>=0&&(u[f++]=g,c+=g)}return this._pathLen=c,c},t.prototype.rebuildPath=function(e,n){var r=this.data,i=this._ux,o=this._uy,a=this._len,s,l,u,c,f,d,p=n<1,v,g,m=0,y=0,b,O=0,w,x;if(!(p&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,g=this._pathLen,b=n*g,!b)))e:for(var S=0;S<a;){var T=r[S++],$=S===1;switch($&&(u=r[S],c=r[S+1],s=u,l=c),T!==ln.L&&O>0&&(e.lineTo(w,x),O=0),T){case ln.M:s=u=r[S++],l=c=r[S++],e.moveTo(u,c);break;case ln.L:{f=r[S++],d=r[S++];var A=Il(f-u),P=Il(d-c);if(A>i||P>o){if(p){var M=v[y++];if(m+M>b){var I=(b-m)/M;e.lineTo(u*(1-I)+f*I,c*(1-I)+d*I);break e}m+=M}e.lineTo(f,d),u=f,c=d,O=0}else{var R=A*A+P*P;R>O&&(w=f,x=d,O=R)}break}case ln.C:{var L=r[S++],D=r[S++],B=r[S++],F=r[S++],z=r[S++],W=r[S++];if(p){var M=v[y++];if(m+M>b){var I=(b-m)/M;Ic(u,L,B,z,I,Mf),Ic(c,D,F,W,I,If),e.bezierCurveTo(Mf[1],If[1],Mf[2],If[2],Mf[3],If[3]);break e}m+=M}e.bezierCurveTo(L,D,B,F,z,W),u=z,c=W;break}case ln.Q:{var L=r[S++],D=r[S++],B=r[S++],F=r[S++];if(p){var M=v[y++];if(m+M>b){var I=(b-m)/M;Jy(u,L,B,I,Mf),Jy(c,D,F,I,If),e.quadraticCurveTo(Mf[1],If[1],Mf[2],If[2]);break e}m+=M}e.quadraticCurveTo(L,D,B,F),u=B,c=F;break}case ln.A:var j=r[S++],H=r[S++],Z=r[S++],J=r[S++],se=r[S++],oe=r[S++],de=r[S++],re=!r[S++],ue=Z>J?Z:J,ee=Il(Z-J)>.001,X=se+oe,Y=!1;if(p){var M=v[y++];m+M>b&&(X=se+oe*(b-m)/M,Y=!0),m+=M}if(ee&&e.ellipse?e.ellipse(j,H,Z,J,de,se,X,re):e.arc(j,H,ue,se,X,re),Y)break e;$&&(s=Df(se)*Z+j,l=Rf(se)*J+H),u=Df(X)*Z+j,c=Rf(X)*J+H;break;case ln.R:s=u=r[S],l=c=r[S+1],f=r[S++],d=r[S++];var le=r[S++],ge=r[S++];if(p){var M=v[y++];if(m+M>b){var me=b-m;e.moveTo(f,d),e.lineTo(f+oE(me,le),d),me-=le,me>0&&e.lineTo(f+le,d+oE(me,ge)),me-=ge,me>0&&e.lineTo(f+aE(le-me,0),d+ge),me-=le,me>0&&e.lineTo(f,d+aE(ge-me,0));break e}m+=M}e.rect(f,d,le,ge);break;case ln.Z:if(p){var M=v[y++];if(m+M>b){var I=(b-m)/M;e.lineTo(u*(1-I)+s*I,c*(1-I)+l*I);break e}m+=M}e.closePath(),u=s,c=l}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=ln,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();function Uu(t,e,n,r,i,o,a){if(i===0)return!1;var s=i,l=0,u=t;if(a>e+s&&a>r+s||a<e-s&&a<r-s||o>t+s&&o>n+s||o<t-s&&o<n-s)return!1;if(t!==n)l=(e-r)/(t-n),u=(t*r-n*e)/(t-n);else return Math.abs(o-t)<=s/2;var c=l*o-a+u,f=c*c/(l*l+1);return f<=s/2*s/2}function MGe(t,e,n,r,i,o,a,s,l,u,c){if(l===0)return!1;var f=l;if(c>e+f&&c>r+f&&c>o+f&&c>s+f||c<e-f&&c<r-f&&c<o-f&&c<s-f||u>t+f&&u>n+f&&u>i+f&&u>a+f||u<t-f&&u<n-f&&u<i-f&&u<a-f)return!1;var d=lae(t,e,n,r,i,o,a,s,u,c,null);return d<=f/2}function Gae(t,e,n,r,i,o,a,s,l){if(a===0)return!1;var u=a;if(l>e+u&&l>r+u&&l>o+u||l<e-u&&l<r-u&&l<o-u||s>t+u&&s>n+u&&s>i+u||s<t-u&&s<n-u&&s<i-u)return!1;var c=cae(t,e,n,r,i,o,s,l,null);return c<=u/2}var iH=Math.PI*2;function Eo(t){return t%=iH,t<0&&(t+=iH),t}var zm=Math.PI*2;function IGe(t,e,n,r,i,o,a,s,l){if(a===0)return!1;var u=a;s-=t,l-=e;var c=Math.sqrt(s*s+l*l);if(c-u>n||c+u<n)return!1;if(Math.abs(r-i)%zm<1e-4)return!0;if(o){var f=r;r=Eo(i),i=Eo(f)}else r=Eo(r),i=Eo(i);r>i&&(i+=zm);var d=Math.atan2(l,s);return d<0&&(d+=zm),d>=r&&d<=i||d+zm>=r&&d+zm<=i}function Ll(t,e,n,r,i,o){if(o>e&&o>r||o<e&&o<r||r===e)return 0;var a=(o-e)/(r-e),s=r<e?1:-1;(a===1||a===0)&&(s=r<e?.5:-.5);var l=a*(n-t)+t;return l===i?1/0:l>i?s:0}var Nu=cl.CMD,kf=Math.PI*2,DGe=1e-4;function RGe(t,e){return Math.abs(t-e)<DGe}var Oi=[-1,-1,-1],aa=[-1,-1];function kGe(){var t=aa[0];aa[0]=aa[1],aa[1]=t}function NGe(t,e,n,r,i,o,a,s,l,u){if(u>e&&u>r&&u>o&&u>s||u<e&&u<r&&u<o&&u<s)return 0;var c=ES(e,r,o,s,u,Oi);if(c===0)return 0;for(var f=0,d=-1,p=void 0,v=void 0,g=0;g<c;g++){var m=Oi[g],y=m===0||m===1?.5:1,b=mr(t,n,i,a,m);b<l||(d<0&&(d=sae(e,r,o,s,aa),aa[1]<aa[0]&&d>1&&kGe(),p=mr(e,r,o,s,aa[0]),d>1&&(v=mr(e,r,o,s,aa[1]))),d===2?m<aa[0]?f+=p<e?y:-y:m<aa[1]?f+=v<p?y:-y:f+=s<v?y:-y:m<aa[0]?f+=p<e?y:-y:f+=s<p?y:-y)}return f}function LGe(t,e,n,r,i,o,a,s){if(s>e&&s>r&&s>o||s<e&&s<r&&s<o)return 0;var l=Q9e(e,r,o,s,Oi);if(l===0)return 0;var u=uae(e,r,o);if(u>=0&&u<=1){for(var c=0,f=Ar(e,r,o,u),d=0;d<l;d++){var p=Oi[d]===0||Oi[d]===1?.5:1,v=Ar(t,n,i,Oi[d]);v<a||(Oi[d]<u?c+=f<e?p:-p:c+=o<f?p:-p)}return c}else{var p=Oi[0]===0||Oi[0]===1?.5:1,v=Ar(t,n,i,Oi[0]);return v<a?0:o<e?p:-p}}function BGe(t,e,n,r,i,o,a,s){if(s-=e,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>=kf-1e-4){r=0,i=kf;var c=o?1:-1;return a>=Oi[0]+t&&a<=Oi[1]+t?c:0}if(r>i){var f=r;r=i,i=f}r<0&&(r+=kf,i+=kf);for(var d=0,p=0;p<2;p++){var v=Oi[p];if(v+t>a){var g=Math.atan2(s,v),c=o?1:-1;g<0&&(g=kf+g),(g>=r&&g<=i||g+kf>=r&&g+kf<=i)&&(g>Math.PI/2&&g<Math.PI*1.5&&(c=-c),d+=c)}}return d}function jae(t,e,n,r,i){for(var o=t.data,a=t.len(),s=0,l=0,u=0,c=0,f=0,d,p,v=0;v<a;){var g=o[v++],m=v===1;switch(g===Nu.M&&v>1&&(n||(s+=Ll(l,u,c,f,r,i))),m&&(l=o[v],u=o[v+1],c=l,f=u),g){case Nu.M:c=o[v++],f=o[v++],l=c,u=f;break;case Nu.L:if(n){if(Uu(l,u,o[v],o[v+1],e,r,i))return!0}else s+=Ll(l,u,o[v],o[v+1],r,i)||0;l=o[v++],u=o[v++];break;case Nu.C:if(n){if(MGe(l,u,o[v++],o[v++],o[v++],o[v++],o[v],o[v+1],e,r,i))return!0}else s+=NGe(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 Nu.Q:if(n){if(Gae(l,u,o[v++],o[v++],o[v],o[v+1],e,r,i))return!0}else s+=LGe(l,u,o[v++],o[v++],o[v],o[v+1],r,i)||0;l=o[v++],u=o[v++];break;case Nu.A:var y=o[v++],b=o[v++],O=o[v++],w=o[v++],x=o[v++],S=o[v++];v+=1;var T=!!(1-o[v++]);d=Math.cos(x)*O+y,p=Math.sin(x)*w+b,m?(c=d,f=p):s+=Ll(l,u,d,p,r,i);var $=(r-y)*w/O+y;if(n){if(IGe(y,b,w,x,x+S,T,e,$,i))return!0}else s+=BGe(y,b,w,x,x+S,T,$,i);l=Math.cos(x+S)*O+y,u=Math.sin(x+S)*w+b;break;case Nu.R:c=l=o[v++],f=u=o[v++];var A=o[v++],P=o[v++];if(d=c+A,p=f+P,n){if(Uu(c,f,d,f,e,r,i)||Uu(d,f,d,p,e,r,i)||Uu(d,p,c,p,e,r,i)||Uu(c,p,c,f,e,r,i))return!0}else s+=Ll(d,f,d,p,r,i),s+=Ll(c,p,c,f,r,i);break;case Nu.Z:if(n){if(Uu(l,u,c,f,e,r,i))return!0}else s+=Ll(l,u,c,f,r,i);l=c,u=f;break}}return!n&&!RGe(u,f)&&(s+=Ll(l,u,c,f,r,i)||0),s!==0}function VGe(t,e,n){return jae(t,0,!1,e,n)}function zGe(t,e,n,r){return jae(t,e,!0,n,r)}var LS=Ge({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Vd),FGe={style:Ge({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},_P.style)},uE=ll.concat(["invisible","culling","z","z2","zlevel","parent"]),mt=function(t){ie(e,t);function e(n){return t.call(this,n)||this}return e.prototype.update=function(){var n=this;t.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.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<uE.length;++s)i[uE[s]]=this[uE[s]];i.__dirty|=Co}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(n){var r=bt(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?he(this.style,s):this.useStyle(s):a==="shape"?he(this.shape,s):t.prototype.attrKV.call(this,a,s)}this.style||this.useStyle({})},e.prototype.getDefaultStyle=function(){return null},e.prototype.getDefaultShape=function(){return{}},e.prototype.canBeInsideText=function(){return this.hasFill()},e.prototype.getInsideTextFill=function(){var n=this.style.fill;if(n!=="none"){if(Ie(n)){var r=nb(n,0);return r>.5?xR:r>.2?OHe:SR}else if(n)return SR}return xR},e.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(Ie(r)){var i=this.__zr,o=!!(i&&i.isDarkMode()),a=nb(n,0)<wR;if(o===a)return r}},e.prototype.buildPath=function(n,r,i){},e.prototype.pathUpdated=function(){this.__dirty&=~Np},e.prototype.getUpdatedPathProxy=function(n){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,n),this.path},e.prototype.createPathProxy=function(){this.path=new cl(!1)},e.prototype.hasStroke=function(){var n=this.style,r=n.stroke;return!(r==null||r==="none"||!(n.lineWidth>0))},e.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},e.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&Np)&&(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},e.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)),zGe(s,l/u,n,r)))return!0}if(this.hasFill())return VGe(s,n,r)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Np,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(n){return this.animate("shape",n)},e.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():n==="shape"?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(n,r){n==="shape"?this.setShape(r):t.prototype.attrKV.call(this,n,r)},e.prototype.setShape=function(n,r){var i=this.shape;return i||(i=this.shape={}),typeof n=="string"?i[n]=r:he(i,n),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Np)},e.prototype.createStyle=function(n){return c_(LS,n)},e.prototype._innerSaveToNormal=function(n){t.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=he({},this.shape))},e.prototype._applyStateObj=function(n,r,i,o,a,s){t.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=he({},i.shape),he(u,r.shape)):(u=he({},o?this.shape:i.shape),he(u,r.shape)):l&&(u=i.shape),u)if(a){this.shape=he({},this.shape);for(var c={},f=bt(u),d=0;d<f.length;d++){var p=f[d];typeof u[p]=="object"?this.shape[p]=u[p]:c[p]=u[p]}this._transitionState(n,{shape:c},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(n){for(var r=t.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},e.prototype.getAnimationStyleProps=function(){return FGe},e.prototype.isZeroArea=function(){return!1},e.extend=function(n){var r=function(o){ie(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 Ue(n.style)},a.prototype.getDefaultShape=function(){return Ue(n.shape)},a}(e);for(var i in n)typeof n[i]=="function"&&(r.prototype[i]=n[i]);return r},e.initDefaultProps=function(){var n=e.prototype;n.type="path",n.strokeContainThreshold=5,n.segmentIgnoreThreshold=0,n.subPixelOptimize=!1,n.autoBatch=!1,n.__dirty=Co|x0|Np}(),e}($a),WGe=Ge({strokeFirst:!0,font:Ac,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},LS),Jv=function(t){ie(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.hasStroke=function(){var n=this.style,r=n.stroke;return r!=null&&r!=="none"&&n.lineWidth>0},e.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},e.prototype.createStyle=function(n){return c_(WGe,n)},e.prototype.setBoundingRect=function(n){this._rect=n},e.prototype.getBoundingRect=function(){var n=this.style;if(!this._rect){var r=n.text;r!=null?r+="":r="";var i=h_(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},e.initDefaultProps=function(){var n=e.prototype;n.dirtyRectTolerance=10}(),e}($a);Jv.prototype.type="tspan";var QGe=Ge({x:0,y:0},Vd),HGe={style:Ge({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},_P.style)};function GGe(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var Uae=function(t){ie(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(n){return c_(QGe,n)},e.prototype._getSize=function(n){var r=this.style,i=r[n];if(i!=null)return i;var o=GGe(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},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return HGe},e.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new at(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},e}($a);Uae.prototype.type="image";const Rr=Uae;function jGe(t,e){var n=e.x,r=e.y,i=e.width,o=e.height,a=e.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),t.moveTo(n+s,r),t.lineTo(n+i-l,r),l!==0&&t.arc(n+i-l,r+l,l,-Math.PI/2,0),t.lineTo(n+i,r+o-u),u!==0&&t.arc(n+i-u,r+o-u,u,0,Math.PI/2),t.lineTo(n+c,r+o),c!==0&&t.arc(n+c,r+o-c,c,Math.PI/2,Math.PI),t.lineTo(n,r+s),s!==0&&t.arc(n+s,r+s,s,Math.PI,Math.PI*1.5)}var Xp=Math.round;function Zae(t,e,n){if(e){var r=e.x1,i=e.x2,o=e.y1,a=e.y2;t.x1=r,t.x2=i,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s&&(Xp(r*2)===Xp(i*2)&&(t.x1=t.x2=bd(r,s,!0)),Xp(o*2)===Xp(a*2)&&(t.y1=t.y2=bd(o,s,!0))),t}}function Xae(t,e,n){if(e){var r=e.x,i=e.y,o=e.width,a=e.height;t.x=r,t.y=i,t.width=o,t.height=a;var s=n&&n.lineWidth;return s&&(t.x=bd(r,s,!0),t.y=bd(i,s,!0),t.width=Math.max(bd(r+o,s,!1)-t.x,o===0?0:1),t.height=Math.max(bd(i+a,s,!1)-t.y,a===0?0:1)),t}}function bd(t,e,n){if(!e)return t;var r=Xp(t*2);return(r+Xp(e))%2===0?r/2:(r+(n?1:-1))/2}var UGe=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),ZGe={},Yae=function(t){ie(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new UGe},e.prototype.buildPath=function(n,r){var i,o,a,s;if(this.subPixelOptimize){var l=Xae(ZGe,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?jGe(n,r):n.rect(i,o,a,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(mt);Yae.prototype.type="rect";const Pt=Yae;var oH={fill:"#000"},aH=2,XGe={style:Ge({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},_P.style)},qae=function(t){ie(e,t);function e(n){var r=t.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=oH,r.attr(n),r}return e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.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}},e.prototype.updateTransform=function(){var n=this.innerTransformable;n?(n.updateTransform(),n.transform&&(this.transform=n.transform)):t.prototype.updateTransform.call(this)},e.prototype.getLocalTransform=function(n){var r=this.innerTransformable;return r?r.getLocalTransform(n):t.prototype.getLocalTransform.call(this,n)},e.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),t.prototype.getComputedTransform.call(this)},e.prototype._updateSubTexts=function(){this._childCursor=0,KGe(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},e.prototype.addSelfToZr=function(n){t.prototype.addSelfToZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=n},e.prototype.removeSelfFromZr=function(n){t.prototype.removeSelfFromZr.call(this,n);for(var r=0;r<this._children.length;r++)this._children[r].__zr=null},e.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var n=new at(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},e.prototype.setDefaultTextStyle=function(n){this._defaultStyle=n||oH},e.prototype.setTextContent=function(n){if(process.env.NODE_ENV!=="production")throw new Error("Can't attach text on another text")},e.prototype._mergeStyle=function(n,r){if(!r)return n;var i=r.rich,o=n.rich||i&&{};return he(n,r),i&&o?(this._mergeRich(o,i),n.rich=o):o&&(n.rich=o),n},e.prototype._mergeRich=function(n,r){for(var i=bt(r),o=0;o<i.length;o++){var a=i[o];n[a]=n[a]||{},he(n[a],r[a])}},e.prototype.getAnimationStyleProps=function(){return XGe},e.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},e.prototype._updatePlainTexts=function(){var n=this.style,r=n.font||Ac,i=n.padding,o=hH(n),a=yGe(o,n),s=cE(n),l=!!n.backgroundColor,u=a.outerHeight,c=a.outerWidth,f=a.contentWidth,d=a.lines,p=a.lineHeight,v=this._defaultStyle,g=n.x||0,m=n.y||0,y=n.align||v.align||"left",b=n.verticalAlign||v.verticalAlign||"top",O=g,w=Lp(m,a.contentHeight,b);if(s||i){var x=C0(g,c,y),S=Lp(m,u,b);s&&this._renderBackground(n,n,x,S,c,u)}w+=p/2,i&&(O=dH(g,y,i),b==="top"?w+=i[0]:b==="bottom"&&(w-=i[2]));for(var T=0,$=!1,A=fH("fill"in n?n.fill:($=!0,v.fill)),P=cH("stroke"in n?n.stroke:!l&&(!v.autoStroke||$)?(T=aH,v.stroke):null),M=n.textShadowBlur>0,I=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),R=a.calculatedLineHeight,L=0;L<d.length;L++){var D=this._getOrCreateChild(Jv),B=D.createStyle();D.useStyle(B),B.text=d[L],B.x=O,B.y=w,y&&(B.textAlign=y),B.textBaseline="middle",B.opacity=n.opacity,B.strokeFirst=!0,M&&(B.shadowBlur=n.textShadowBlur||0,B.shadowColor=n.textShadowColor||"transparent",B.shadowOffsetX=n.textShadowOffsetX||0,B.shadowOffsetY=n.textShadowOffsetY||0),B.stroke=P,B.fill=A,P&&(B.lineWidth=n.lineWidth||T,B.lineDash=n.lineDash,B.lineDashOffset=n.lineDashOffset||0),B.font=r,lH(B,n),w+=p,I&&D.setBoundingRect(new at(C0(B.x,n.width,B.textAlign),Lp(B.y,R,B.textBaseline),f,R))}},e.prototype._updateRichTexts=function(){var n=this.style,r=hH(n),i=OGe(r,n),o=i.width,a=i.outerWidth,s=i.outerHeight,l=n.padding,u=n.x||0,c=n.y||0,f=this._defaultStyle,d=n.align||f.align,p=n.verticalAlign||f.verticalAlign,v=C0(u,a,d),g=Lp(c,s,p),m=v,y=g;l&&(m+=l[3],y+=l[0]);var b=m+o;cE(n)&&this._renderBackground(n,n,v,g,a,s);for(var O=!!n.backgroundColor,w=0;w<i.lines.length;w++){for(var x=i.lines[w],S=x.tokens,T=S.length,$=x.lineHeight,A=x.width,P=0,M=m,I=b,R=T-1,L=void 0;P<T&&(L=S[P],!L.align||L.align==="left");)this._placeToken(L,n,$,y,M,"left",O),A-=L.width,M+=L.width,P++;for(;R>=0&&(L=S[R],L.align==="right");)this._placeToken(L,n,$,y,I,"right",O),A-=L.width,I-=L.width,R--;for(M+=(o-(M-m)-(b-I)-A)/2;P<=R;)L=S[P],this._placeToken(L,n,$,y,M+L.width/2,"center",O),M+=L.width,P++;y+=$}},e.prototype._placeToken=function(n,r,i,o,a,s,l){var u=r.rich[n.styleName]||{};u.text=n.text;var c=n.verticalAlign,f=o+i/2;c==="top"?f=o+n.height/2:c==="bottom"&&(f=o+i-n.height/2);var d=!n.isLineHolder&&cE(u);d&&this._renderBackground(u,r,s==="right"?a-n.width:s==="center"?a-n.width/2:a,f-n.height/2,n.width,n.height);var p=!!u.backgroundColor,v=n.textPadding;v&&(a=dH(a,s,v),f-=n.height/2-v[0]-n.innerHeight/2);var g=this._getOrCreateChild(Jv),m=g.createStyle();g.useStyle(m);var y=this._defaultStyle,b=!1,O=0,w=fH("fill"in u?u.fill:"fill"in r?r.fill:(b=!0,y.fill)),x=cH("stroke"in u?u.stroke:"stroke"in r?r.stroke:!p&&!l&&(!y.autoStroke||b)?(O=aH,y.stroke):null),S=u.textShadowBlur>0||r.textShadowBlur>0;m.text=n.text,m.x=a,m.y=f,S&&(m.shadowBlur=u.textShadowBlur||r.textShadowBlur||0,m.shadowColor=u.textShadowColor||r.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||r.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||r.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=n.font||Ac,m.opacity=Ro(u.opacity,r.opacity,1),lH(m,u),x&&(m.lineWidth=Ro(u.lineWidth,r.lineWidth,O),m.lineDash=Je(u.lineDash,r.lineDash),m.lineDashOffset=r.lineDashOffset||0,m.stroke=x),w&&(m.fill=w);var T=n.contentWidth,$=n.contentHeight;g.setBoundingRect(new at(C0(m.x,T,m.textAlign),Lp(m.y,$,m.textBaseline),T,$))},e.prototype._renderBackground=function(n,r,i,o,a,s){var l=n.backgroundColor,u=n.borderWidth,c=n.borderColor,f=l&&l.image,d=l&&!f,p=n.borderRadius,v=this,g,m;if(d||n.lineHeight||u&&c){g=this._getOrCreateChild(Pt),g.useStyle(g.createStyle()),g.style.fill=null;var y=g.shape;y.x=i,y.y=o,y.width=a,y.height=s,y.r=p,g.dirtyShape()}if(d){var b=g.style;b.fill=l||null,b.fillOpacity=Je(n.fillOpacity,1)}else if(f){m=this._getOrCreateChild(Rr),m.onload=function(){v.dirtyStyle()};var O=m.style;O.image=l.image,O.x=i,O.y=o,O.width=a,O.height=s}if(u&&c){var b=g.style;b.lineWidth=u,b.stroke=c,b.strokeOpacity=Je(n.strokeOpacity,1),b.lineDash=n.borderDash,b.lineDashOffset=n.borderDashOffset||0,g.strokeContainThreshold=0,g.hasFill()&&g.hasStroke()&&(b.strokeFirst=!0,b.lineWidth*=2)}var w=(g||m).style;w.shadowBlur=n.shadowBlur||0,w.shadowColor=n.shadowColor||"transparent",w.shadowOffsetX=n.shadowOffsetX||0,w.shadowOffsetY=n.shadowOffsetY||0,w.opacity=Ro(n.opacity,r.opacity,1)},e.makeFont=function(n){var r="";return Jae(n)&&(r=[n.fontStyle,n.fontWeight,Kae(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&pa(r)||n.textFont||n.font},e}($a),YGe={left:!0,right:1,center:1},qGe={top:1,bottom:1,middle:1},sH=["fontStyle","fontWeight","fontSize","fontFamily"];function Kae(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?b8+"px":t+"px"}function lH(t,e){for(var n=0;n<sH.length;n++){var r=sH[n],i=e[r];i!=null&&(t[r]=i)}}function Jae(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function KGe(t){return uH(t),V(t.rich,uH),t}function uH(t){if(t){t.font=qae.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||YGe[e]?e:"left";var n=t.verticalAlign;n==="center"&&(n="middle"),t.verticalAlign=n==null||qGe[n]?n:"top";var r=t.padding;r&&(t.padding=cP(t.padding))}}function cH(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function fH(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function dH(t,e,n){return e==="right"?t-n[1]:e==="center"?t+n[3]/2-n[1]/2:t+n[3]}function hH(t){var e=t.text;return e!=null&&(e+=""),e}function cE(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}const Tt=qae;var Ke=$t(),DR=function(t,e,n,r){if(r){var i=Ke(r);i.dataIndex=n,i.dataType=e,i.seriesIndex=t,i.ssrType="chart",r.type==="group"&&r.traverse(function(o){var a=Ke(o);a.seriesIndex=t,a.dataIndex=n,a.dataType=e,a.ssrType="chart"})}},pH=1,vH={},ese=$t(),z8=$t(),F8=0,g_=1,wP=2,ki=["emphasis","blur","select"],ib=["normal","emphasis","blur","select"],Ag=10,JGe=9,zd="highlight",gx="downplay",dy="select",mx="unselect",hy="toggleSelect";function dp(t){return t!=null&&t!=="none"}function xP(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function tse(t){xP(t,"emphasis",wP)}function nse(t){t.hoverState===wP&&xP(t,"normal",F8)}function W8(t){xP(t,"blur",g_)}function rse(t){t.hoverState===g_&&xP(t,"normal",F8)}function eje(t){t.selected=!0}function tje(t){t.selected=!1}function gH(t,e,n){e(t,n)}function bu(t,e,n){gH(t,e,n),t.isGroup&&t.traverse(function(r){gH(r,e,n)})}function BS(t,e){switch(e){case"emphasis":t.hoverState=wP;break;case"normal":t.hoverState=F8;break;case"blur":t.hoverState=g_;break;case"select":t.selected=!0}}function nje(t,e,n,r){for(var i=t.style,o={},a=0;a<e.length;a++){var s=e[a],l=i[s];o[s]=l??(r&&r[s])}for(var a=0;a<t.animators.length;a++){var u=t.animators[a];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&u.targetName==="style"&&u.saveTo(o,e)}return o}function rje(t,e,n,r){var i=n&&st(n,"select")>=0,o=!1;if(t instanceof mt){var a=ese(t),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(dp(s)||dp(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(o=!0,r=he({},r),u=he({},u),u.fill=s):!dp(u.fill)&&dp(s)?(o=!0,r=he({},r),u=he({},u),u.fill=IS(s)):!dp(u.stroke)&&dp(l)&&(o||(r=he({},r),u=he({},u)),u.stroke=IS(l)),r.style=u}}if(r&&r.z2==null){o||(r=he({},r));var c=t.z2EmphasisLift;r.z2=t.z2+(c??Ag)}return r}function ije(t,e,n){if(n&&n.z2==null){n=he({},n);var r=t.z2SelectLift;n.z2=t.z2+(r??JGe)}return n}function oje(t,e,n){var r=st(t.currentStates,e)>=0,i=t.style.opacity,o=r?null:nje(t,["opacity"],e,{opacity:1});n=n||{};var a=n.style||{};return a.opacity==null&&(n=he({},n),a=he({opacity:r?i:o.opacity*.1},a),n.style=a),n}function fE(t,e){var n=this.states[t];if(this.style){if(t==="emphasis")return rje(this,t,e,n);if(t==="blur")return oje(this,t,n);if(t==="select")return ije(this,t,n)}return n}function ch(t){t.stateProxy=fE;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=fE),n&&(n.stateProxy=fE)}function mH(t,e){!sse(t,e)&&!t.__highByOuter&&bu(t,tse)}function yH(t,e){!sse(t,e)&&!t.__highByOuter&&bu(t,nse)}function iu(t,e){t.__highByOuter|=1<<(e||0),bu(t,tse)}function ou(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&bu(t,nse)}function ise(t){bu(t,W8)}function Q8(t){bu(t,rse)}function ose(t){bu(t,eje)}function ase(t){bu(t,tje)}function sse(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function lse(t){var e=t.getModel(),n=[],r=[];e.eachComponent(function(i,o){var a=z8(o),s=i==="series",l=s?t.getViewOfSeriesModel(o):t.getViewOfComponentModel(o);!s&&r.push(l),a.isBlured&&(l.group.traverse(function(u){rse(u)}),s&&n.push(o)),a.isBlured=!1}),V(r,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(n,!1,e)})}function RR(t,e,n,r){var i=r.getModel();n=n||"coordinateSystem";function o(u,c){for(var f=0;f<c.length;f++){var d=u.getItemGraphicEl(c[f]);d&&Q8(d)}}if(t!=null&&!(!e||e==="none")){var a=i.getSeriesByIndex(t),s=a.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var c=a===u,f=u.coordinateSystem;f&&f.master&&(f=f.master);var d=f&&s?f===s:c;if(!(n==="series"&&!c||n==="coordinateSystem"&&!d||e==="series"&&c)){var p=r.getViewOfSeriesModel(u);if(p.group.traverse(function(m){m.__highByOuter&&c&&e==="self"||W8(m)}),Yr(e))o(u.getData(),e);else if(Qe(e))for(var v=bt(e),g=0;g<v.length;g++)o(u.getData(v[g]),e[v[g]]);l.push(u),z8(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 kR(t,e,n){if(!(t==null||e==null)){var r=n.getModel().getComponent(t,e);if(r){z8(r).isBlured=!0;var i=n.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(o){W8(o)})}}}function aje(t,e,n){var r=t.seriesIndex,i=t.getData(e.dataType);if(!i){process.env.NODE_ENV!=="production"&&qr("Unknown dataType "+e.dataType);return}var o=lh(i,e);o=(ve(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=Ke(a);RR(r,u.focus,u.blurScope,n)}else{var c=t.get(["emphasis","focus"]),f=t.get(["emphasis","blurScope"]);c!=null&&RR(r,c,f,n)}}function H8(t,e,n,r){var i={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||n==null)return i;var o=r.getModel().getComponent(t,e);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(process.env.NODE_ENV!=="production"&&!Dc(s[u])&&qr("param should be highDownDispatcher"),Ke(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function sje(t,e,n){process.env.NODE_ENV!=="production"&&!Dc(t)&&qr("param should be highDownDispatcher");var r=Ke(t),i=H8(r.componentMainType,r.componentIndex,r.componentHighDownName,n),o=i.dispatchers,a=i.focusSelf;o?(a&&kR(r.componentMainType,r.componentIndex,n),V(o,function(s){return mH(s,e)})):(RR(r.seriesIndex,r.focus,r.blurScope,n),r.focus==="self"&&kR(r.componentMainType,r.componentIndex,n),mH(t,e))}function lje(t,e,n){process.env.NODE_ENV!=="production"&&!Dc(t)&&qr("param should be highDownDispatcher"),lse(n);var r=Ke(t),i=H8(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?V(i,function(o){return yH(o,e)}):yH(t,e)}function uje(t,e,n){if(LR(e)){var r=e.dataType,i=t.getData(r),o=lh(i,e);ve(o)||(o=[o]),t[e.type===hy?"toggleSelect":e.type===dy?"select":"unselect"](o,r)}}function bH(t){var e=t.getAllData();V(e,function(n){var r=n.data,i=n.type;r.eachItemGraphicEl(function(o,a){t.isSelected(a,i)?ose(o):ase(o)})})}function cje(t){var e=[];return t.eachSeries(function(n){var r=n.getAllData();V(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),e.push(s)}})}),e}function Oc(t,e,n){_d(t,!0),bu(t,ch),NR(t,e,n)}function fje(t){_d(t,!1)}function Bn(t,e,n,r){r?fje(t):Oc(t,e,n)}function NR(t,e,n){var r=Ke(t);e!=null?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}var _H=["emphasis","blur","select"],dje={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Kr(t,e,n,r){n=n||"itemStyle";for(var i=0;i<_H.length;i++){var o=_H[i],a=e.getModel([o,n]),s=t.ensureState(o);s.style=r?r(a):a[dje[n]]()}}function _d(t,e){var n=e===!1,r=t;t.highDownSilentOnTouch&&(r.__highDownSilentOnTouch=t.highDownSilentOnTouch),(!n||r.__highDownDispatcher)&&(r.__highByOuter=r.__highByOuter||0,r.__highDownDispatcher=!n)}function Dc(t){return!!(t&&t.__highDownDispatcher)}function hje(t,e,n){var r=Ke(t);r.componentMainType=e.mainType,r.componentIndex=e.componentIndex,r.componentHighDownName=n}function pje(t){var e=vH[t];return e==null&&pH<=32&&(e=vH[t]=pH++),e}function LR(t){var e=t.type;return e===dy||e===mx||e===hy}function OH(t){var e=t.type;return e===zd||e===gx}function vje(t){var e=ese(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}var hp=cl.CMD,gje=[[],[],[]],wH=Math.sqrt,mje=Math.atan2;function use(t,e){if(e){var n=t.data,r=t.len(),i,o,a,s,l,u,c=hp.M,f=hp.C,d=hp.L,p=hp.R,v=hp.A,g=hp.Q;for(a=0,s=0;a<r;){switch(i=n[a++],s=a,o=0,i){case c:o=1;break;case d:o=1;break;case f:o=3;break;case g:o=2;break;case v:var m=e[4],y=e[5],b=wH(e[0]*e[0]+e[1]*e[1]),O=wH(e[2]*e[2]+e[3]*e[3]),w=mje(-e[1]/O,e[0]/b);n[a]*=b,n[a++]+=m,n[a]*=O,n[a++]+=y,n[a++]*=b,n[a++]*=O,n[a++]+=w,n[a++]+=w,a+=2,s=a;break;case p:u[0]=n[a++],u[1]=n[a++],Er(u,u,e),n[s++]=u[0],n[s++]=u[1],u[0]+=n[a++],u[1]+=n[a++],Er(u,u,e),n[s++]=u[0],n[s++]=u[1]}for(l=0;l<o;l++){var x=gje[l];x[0]=n[a++],x[1]=n[a++],Er(x,x,e),n[s++]=x[0],n[s++]=x[1]}}t.increaseVersion()}}var dE=Math.sqrt,wO=Math.sin,xO=Math.cos,Fm=Math.PI;function xH(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function BR(t,e){return(t[0]*e[0]+t[1]*e[1])/(xH(t)*xH(e))}function SH(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(BR(t,e))}function CH(t,e,n,r,i,o,a,s,l,u,c){var f=l*(Fm/180),d=xO(f)*(t-n)/2+wO(f)*(e-r)/2,p=-1*wO(f)*(t-n)/2+xO(f)*(e-r)/2,v=d*d/(a*a)+p*p/(s*s);v>1&&(a*=dE(v),s*=dE(v));var g=(i===o?-1:1)*dE((a*a*(s*s)-a*a*(p*p)-s*s*(d*d))/(a*a*(p*p)+s*s*(d*d)))||0,m=g*a*p/s,y=g*-s*d/a,b=(t+n)/2+xO(f)*m-wO(f)*y,O=(e+r)/2+wO(f)*m+xO(f)*y,w=SH([1,0],[(d-m)/a,(p-y)/s]),x=[(d-m)/a,(p-y)/s],S=[(-1*d-m)/a,(-1*p-y)/s],T=SH(x,S);if(BR(x,S)<=-1&&(T=Fm),BR(x,S)>=1&&(T=0),T<0){var $=Math.round(T/Fm*1e6)/1e6;T=Fm*2+$%2*Fm}c.addData(u,b,O,a,s,w,T,f,o)}var yje=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,bje=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function _je(t){var e=new cl;if(!t)return e;var n=0,r=0,i=n,o=r,a,s=cl.CMD,l=t.match(yje);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],f=c.charAt(0),d=void 0,p=c.match(bje)||[],v=p.length,g=0;g<v;g++)p[g]=parseFloat(p[g]);for(var m=0;m<v;){var y=void 0,b=void 0,O=void 0,w=void 0,x=void 0,S=void 0,T=void 0,$=n,A=r,P=void 0,M=void 0;switch(f){case"l":n+=p[m++],r+=p[m++],d=s.L,e.addData(d,n,r);break;case"L":n=p[m++],r=p[m++],d=s.L,e.addData(d,n,r);break;case"m":n+=p[m++],r+=p[m++],d=s.M,e.addData(d,n,r),i=n,o=r,f="l";break;case"M":n=p[m++],r=p[m++],d=s.M,e.addData(d,n,r),i=n,o=r,f="L";break;case"h":n+=p[m++],d=s.L,e.addData(d,n,r);break;case"H":n=p[m++],d=s.L,e.addData(d,n,r);break;case"v":r+=p[m++],d=s.L,e.addData(d,n,r);break;case"V":r=p[m++],d=s.L,e.addData(d,n,r);break;case"C":d=s.C,e.addData(d,p[m++],p[m++],p[m++],p[m++],p[m++],p[m++]),n=p[m-2],r=p[m-1];break;case"c":d=s.C,e.addData(d,p[m++]+n,p[m++]+r,p[m++]+n,p[m++]+r,p[m++]+n,p[m++]+r),n+=p[m-2],r+=p[m-1];break;case"S":y=n,b=r,P=e.len(),M=e.data,a===s.C&&(y+=n-M[P-4],b+=r-M[P-3]),d=s.C,$=p[m++],A=p[m++],n=p[m++],r=p[m++],e.addData(d,y,b,$,A,n,r);break;case"s":y=n,b=r,P=e.len(),M=e.data,a===s.C&&(y+=n-M[P-4],b+=r-M[P-3]),d=s.C,$=n+p[m++],A=r+p[m++],n+=p[m++],r+=p[m++],e.addData(d,y,b,$,A,n,r);break;case"Q":$=p[m++],A=p[m++],n=p[m++],r=p[m++],d=s.Q,e.addData(d,$,A,n,r);break;case"q":$=p[m++]+n,A=p[m++]+r,n+=p[m++],r+=p[m++],d=s.Q,e.addData(d,$,A,n,r);break;case"T":y=n,b=r,P=e.len(),M=e.data,a===s.Q&&(y+=n-M[P-4],b+=r-M[P-3]),n=p[m++],r=p[m++],d=s.Q,e.addData(d,y,b,n,r);break;case"t":y=n,b=r,P=e.len(),M=e.data,a===s.Q&&(y+=n-M[P-4],b+=r-M[P-3]),n+=p[m++],r+=p[m++],d=s.Q,e.addData(d,y,b,n,r);break;case"A":O=p[m++],w=p[m++],x=p[m++],S=p[m++],T=p[m++],$=n,A=r,n=p[m++],r=p[m++],d=s.A,CH($,A,n,r,S,T,O,w,x,d,e);break;case"a":O=p[m++],w=p[m++],x=p[m++],S=p[m++],T=p[m++],$=n,A=r,n+=p[m++],r+=p[m++],d=s.A,CH($,A,n,r,S,T,O,w,x,d,e);break}}(f==="z"||f==="Z")&&(d=s.Z,e.addData(d),n=i,r=o),a=d}return e.toStatic(),e}var cse=function(t){ie(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(n){},e}(mt);function fse(t){return t.setData!=null}function dse(t,e){var n=_je(t),r=he({},e);return r.buildPath=function(i){if(fse(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){use(n,i),this.dirtyShape()},r}function hse(t,e){return new cse(dse(t,e))}function Oje(t,e){var n=dse(t,e),r=function(i){ie(o,i);function o(a){var s=i.call(this,a)||this;return s.applyTransform=n.applyTransform,s.buildPath=n.buildPath,s}return o}(cse);return r}function wje(t,e){for(var n=[],r=t.length,i=0;i<r;i++){var o=t[i];n.push(o.getUpdatedPathProxy(!0))}var a=new mt(e);return a.createPathProxy(),a.buildPath=function(s){if(fse(s)){s.appendPath(n);var l=s.getContext();l&&s.rebuildPath(l,1)}},a}function G8(t,e){e=e||{};var n=new mt;return t.shape&&n.setShape(t.shape),n.setStyle(t.style),e.bakeTransform?use(n.path,t.getComputedTransform()):e.toLocal?n.setLocalTransform(t.getComputedTransform()):n.copyTransform(t),n.buildPath=t.buildPath,n.applyTransform=n.applyTransform,n.z=t.z,n.z2=t.z2,n.zlevel=t.zlevel,n}var xje=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),pse=function(t){ie(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new xje},e.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)},e}(mt);pse.prototype.type="circle";const _u=pse;var Sje=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),vse=function(t){ie(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new Sje},e.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()},e}(mt);vse.prototype.type="ellipse";const SP=vse;var gse=Math.PI,hE=gse*2,Nf=Math.sin,pp=Math.cos,Cje=Math.acos,ni=Math.atan2,TH=Math.abs,py=Math.sqrt,P0=Math.max,$s=Math.min,Ha=1e-4;function Tje(t,e,n,r,i,o,a,s){var l=n-t,u=r-e,c=a-i,f=s-o,d=f*l-c*u;if(!(d*d<Ha))return d=(c*(e-o)-f*(t-i))/d,[t+d*l,e+d*u]}function SO(t,e,n,r,i,o,a){var s=t-n,l=e-r,u=(a?o:-o)/py(s*s+l*l),c=u*l,f=-u*s,d=t+c,p=e+f,v=n+c,g=r+f,m=(d+v)/2,y=(p+g)/2,b=v-d,O=g-p,w=b*b+O*O,x=i-o,S=d*g-v*p,T=(O<0?-1:1)*py(P0(0,x*x*w-S*S)),$=(S*O-b*T)/w,A=(-S*b-O*T)/w,P=(S*O+b*T)/w,M=(-S*b+O*T)/w,I=$-m,R=A-y,L=P-m,D=M-y;return I*I+R*R>L*L+D*D&&($=P,A=M),{cx:$,cy:A,x0:-c,y0:-f,x1:$*(i/x-1),y1:A*(i/x-1)}}function Pje(t){var e;if(ve(t)){var n=t.length;if(!n)return t;n===1?e=[t[0],t[0],0,0]:n===2?e=[t[0],t[0],t[1],t[1]]:n===3?e=t.concat(t[2]):e=t}else e=[t,t,t,t];return e}function $je(t,e){var n,r=P0(e.r,0),i=P0(e.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=e.startAngle,u=e.endAngle;if(!(isNaN(l)||isNaN(u))){var c=e.cx,f=e.cy,d=!!e.clockwise,p=TH(u-l),v=p>hE&&p%hE;if(v>Ha&&(p=v),!(r>Ha))t.moveTo(c,f);else if(p>hE-Ha)t.moveTo(c+r*pp(l),f+r*Nf(l)),t.arc(c,f,r,l,u,!d),i>Ha&&(t.moveTo(c+i*pp(u),f+i*Nf(u)),t.arc(c,f,i,u,l,d));else{var g=void 0,m=void 0,y=void 0,b=void 0,O=void 0,w=void 0,x=void 0,S=void 0,T=void 0,$=void 0,A=void 0,P=void 0,M=void 0,I=void 0,R=void 0,L=void 0,D=r*pp(l),B=r*Nf(l),F=i*pp(u),z=i*Nf(u),W=p>Ha;if(W){var j=e.cornerRadius;j&&(n=Pje(j),g=n[0],m=n[1],y=n[2],b=n[3]);var H=TH(r-i)/2;if(O=$s(H,y),w=$s(H,b),x=$s(H,g),S=$s(H,m),A=T=P0(O,w),P=$=P0(x,S),(T>Ha||$>Ha)&&(M=r*pp(u),I=r*Nf(u),R=i*pp(l),L=i*Nf(l),p<gse)){var Z=Tje(D,B,R,L,M,I,F,z);if(Z){var J=D-Z[0],se=B-Z[1],oe=M-Z[0],de=I-Z[1],re=1/Nf(Cje((J*oe+se*de)/(py(J*J+se*se)*py(oe*oe+de*de)))/2),ue=py(Z[0]*Z[0]+Z[1]*Z[1]);A=$s(T,(r-ue)/(re+1)),P=$s($,(i-ue)/(re-1))}}}if(!W)t.moveTo(c+D,f+B);else if(A>Ha){var ee=$s(y,A),X=$s(b,A),Y=SO(R,L,D,B,r,ee,d),le=SO(M,I,F,z,r,X,d);t.moveTo(c+Y.cx+Y.x0,f+Y.cy+Y.y0),A<T&&ee===X?t.arc(c+Y.cx,f+Y.cy,A,ni(Y.y0,Y.x0),ni(le.y0,le.x0),!d):(ee>0&&t.arc(c+Y.cx,f+Y.cy,ee,ni(Y.y0,Y.x0),ni(Y.y1,Y.x1),!d),t.arc(c,f,r,ni(Y.cy+Y.y1,Y.cx+Y.x1),ni(le.cy+le.y1,le.cx+le.x1),!d),X>0&&t.arc(c+le.cx,f+le.cy,X,ni(le.y1,le.x1),ni(le.y0,le.x0),!d))}else t.moveTo(c+D,f+B),t.arc(c,f,r,l,u,!d);if(!(i>Ha)||!W)t.lineTo(c+F,f+z);else if(P>Ha){var ee=$s(g,P),X=$s(m,P),Y=SO(F,z,M,I,i,-X,d),le=SO(D,B,R,L,i,-ee,d);t.lineTo(c+Y.cx+Y.x0,f+Y.cy+Y.y0),P<$&&ee===X?t.arc(c+Y.cx,f+Y.cy,P,ni(Y.y0,Y.x0),ni(le.y0,le.x0),!d):(X>0&&t.arc(c+Y.cx,f+Y.cy,X,ni(Y.y0,Y.x0),ni(Y.y1,Y.x1),!d),t.arc(c,f,i,ni(Y.cy+Y.y1,Y.cx+Y.x1),ni(le.cy+le.y1,le.cx+le.x1),d),ee>0&&t.arc(c+le.cx,f+le.cy,ee,ni(le.y1,le.x1),ni(le.y0,le.x0),!d))}else t.lineTo(c+F,f+z),t.arc(c,f,i,u,l,d)}t.closePath()}}}var Aje=function(){function t(){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 t}(),mse=function(t){ie(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new Aje},e.prototype.buildPath=function(n,r){$je(n,r)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(mt);mse.prototype.type="sector";const Ni=mse;var Eje=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),yse=function(t){ie(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new Eje},e.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)},e}(mt);yse.prototype.type="ring";const m_=yse;function Mje(t,e,n,r){var i=[],o=[],a=[],s=[],l,u,c,f;if(r){c=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,p=t.length;d<p;d++)Ql(c,c,t[d]),Hl(f,f,t[d]);Ql(c,c,r[0]),Hl(f,f,r[1])}for(var d=0,p=t.length;d<p;d++){var v=t[d];if(n)l=t[d?d-1:p-1],u=t[(d+1)%p];else if(d===0||d===p-1){i.push(Js(t[d]));continue}else l=t[d-1],u=t[d+1];ic(o,u,l),oy(o,o,e);var g=PS(v,l),m=PS(v,u),y=g+m;y!==0&&(g/=y,m/=y),oy(a,o,-g),oy(s,o,m);var b=lR([],v,a),O=lR([],v,s);r&&(Hl(b,b,c),Ql(b,b,f),Hl(O,O,c),Ql(O,O,f)),i.push(b),i.push(O)}return n&&i.push(i.shift()),i}function bse(t,e,n){var r=e.smooth,i=e.points;if(i&&i.length>=2){if(r){var o=Mje(i,r,n,e.smoothConstraint);t.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];t.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{t.moveTo(i[0][0],i[0][1]);for(var s=1,f=i.length;s<f;s++)t.lineTo(i[s][0],i[s][1])}n&&t.closePath()}}var Ije=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),_se=function(t){ie(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new Ije},e.prototype.buildPath=function(n,r){bse(n,r,!0)},e}(mt);_se.prototype.type="polygon";const Li=_se;var Dje=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),Ose=function(t){ie(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Dje},e.prototype.buildPath=function(n,r){bse(n,r,!1)},e}(mt);Ose.prototype.type="polyline";const Bi=Ose;var Rje={},kje=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),wse=function(t){ie(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new kje},e.prototype.buildPath=function(n,r){var i,o,a,s;if(this.subPixelOptimize){var l=Zae(Rje,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))},e.prototype.pointAt=function(n){var r=this.shape;return[r.x1*(1-n)+r.x2*n,r.y1*(1-n)+r.y2*n]},e}(mt);wse.prototype.type="line";const _r=wse;var Qi=[],Nje=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return t}();function PH(t,e,n){var r=t.cpx2,i=t.cpy2;return r!=null||i!=null?[(n?M9:mr)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?M9:mr)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?hR:Ar)(t.x1,t.cpx1,t.x2,e),(n?hR:Ar)(t.y1,t.cpy1,t.y2,e)]}var xse=function(t){ie(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Nje},e.prototype.buildPath=function(n,r){var i=r.x1,o=r.y1,a=r.x2,s=r.y2,l=r.cpx1,u=r.cpy1,c=r.cpx2,f=r.cpy2,d=r.percent;d!==0&&(n.moveTo(i,o),c==null||f==null?(d<1&&(Jy(i,l,a,d,Qi),l=Qi[1],a=Qi[2],Jy(o,u,s,d,Qi),u=Qi[1],s=Qi[2]),n.quadraticCurveTo(l,u,a,s)):(d<1&&(Ic(i,l,c,a,d,Qi),l=Qi[1],c=Qi[2],a=Qi[3],Ic(o,u,f,s,d,Qi),u=Qi[1],f=Qi[2],s=Qi[3]),n.bezierCurveTo(l,u,c,f,a,s)))},e.prototype.pointAt=function(n){return PH(this.shape,n,!1)},e.prototype.tangentAt=function(n){var r=PH(this.shape,n,!0);return Ph(r,r)},e}(mt);xse.prototype.type="bezier-curve";const y_=xse;var Lje=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),Sse=function(t){ie(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Lje},e.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)},e}(mt);Sse.prototype.type="arc";const CP=Sse;var Bje=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="compound",n}return e.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()},e.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)},e.prototype.buildPath=function(n,r){for(var i=r.paths||[],o=0;o<i.length;o++)i[o].buildPath(n,i[o].shape,!0)},e.prototype.afterBrush=function(){for(var n=this.shape.paths||[],r=0;r<n.length;r++)n[r].pathUpdated()},e.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),mt.prototype.getBoundingRect.call(this)},e}(mt);const TP=Bje;var Cse=function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,n){this.colorStops.push({offset:e,color:n})},t}(),Vje=function(t){ie(e,t);function e(n,r,i,o,a,s){var l=t.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 e}(Cse);const Eg=Vje;var zje=function(t){ie(e,t);function e(n,r,i,o,a){var s=t.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 e}(Cse);const j8=zje;var Lf=[0,0],Bf=[0,0],CO=new ot,TO=new ot,Fje=function(){function t(e,n){this._corners=[],this._axes=[],this._origin=[0,0];for(var r=0;r<4;r++)this._corners[r]=new ot;for(var r=0;r<2;r++)this._axes[r]=new ot;e&&this.fromBoundingRect(e,n)}return t.prototype.fromBoundingRect=function(e,n){var r=this._corners,i=this._axes,o=e.x,a=e.y,s=o+e.width,l=a+e.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);ot.sub(i[0],r[1],r[0]),ot.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])},t.prototype.intersect=function(e,n){var r=!0,i=!n;return CO.set(1/0,1/0),TO.set(0,0),!this._intersectCheckOneSide(this,e,CO,TO,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(e,this,CO,TO,i,-1)&&(r=!1,i)||i||ot.copy(n,r?CO:TO),r},t.prototype._intersectCheckOneSide=function(e,n,r,i,o,a){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,e._corners,Lf),this._getProjMinMaxOnAxis(l,n._corners,Bf),Lf[1]<Bf[0]||Lf[0]>Bf[1]){if(s=!1,o)return s;var c=Math.abs(Bf[0]-Lf[1]),f=Math.abs(Lf[0]-Bf[1]);Math.min(c,f)>i.len()&&(c<f?ot.scale(i,u,-c*a):ot.scale(i,u,f*a))}else if(r){var c=Math.abs(Bf[0]-Lf[1]),f=Math.abs(Lf[0]-Bf[1]);Math.min(c,f)<r.len()&&(c<f?ot.scale(r,u,c*a):ot.scale(r,u,-f*a))}}return s},t.prototype._getProjMinMaxOnAxis=function(e,n,r){for(var i=this._axes[e],o=this._origin,a=n[0].dot(i)+o[e],s=a,l=a,u=1;u<n.length;u++){var c=n[u].dot(i)+o[e];s=Math.min(c,s),l=Math.max(c,l)}r[0]=s,r[1]=l},t}();const VS=Fje;var Wje=[],Qje=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.notClear=!0,n.incremental=!0,n._displayables=[],n._temporaryDisplayables=[],n._cursor=0,n}return e.prototype.traverse=function(n,r){n.call(r,this)},e.prototype.useStyle=function(){this.style={}},e.prototype.getCursor=function(){return this._cursor},e.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},e.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},e.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},e.prototype.addDisplayable=function(n,r){r?this._temporaryDisplayables.push(n):this._displayables.push(n),this.markRedraw()},e.prototype.addDisplayables=function(n,r){r=r||!1;for(var i=0;i<n.length;i++)this.addDisplayable(n[i],r)},e.prototype.getDisplayables=function(){return this._displayables},e.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},e.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])},e.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}},e.prototype.getBoundingRect=function(){if(!this._rect){for(var n=new at(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(Wje)),n.union(o)}this._rect=n}return this._rect},e.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},e}($a);const Tse=Qje;var Pse=$t();function Mg(t,e,n,r,i){var o;if(e&&e.ecModel){var a=e.ecModel.getUpdatePayload();o=a&&a.animation}var s=e&&e.isAnimationEnabled(),l=t==="update";if(s){var u=void 0,c=void 0,f=void 0;r?(u=Je(r.duration,200),c=Je(r.easing,"cubicOut"),f=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),f=e.getShallow(l?"animationDelayUpdate":"animationDelay")),o&&(o.duration!=null&&(u=o.duration),o.easing!=null&&(c=o.easing),o.delay!=null&&(f=o.delay)),Fe(f)&&(f=f(n,i)),Fe(u)&&(u=u(n));var d={duration:u||0,delay:f,easing:c};return d}else return null}function U8(t,e,n,r,i,o,a){var s=!1,l;Fe(i)?(a=o,o=i,i=null):Qe(i)&&(o=i.cb,a=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=t==="leave";u||e.stopAnimation("leave");var c=Mg(t,r,i,u?l||{}:null,r&&r.getAnimationDelayParams?r.getAnimationDelayParams(e,i):null);if(c&&c.duration>0){var f=c.duration,d=c.delay,p=c.easing,v={duration:f,delay:d||0,easing:p,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};s?e.animateFrom(n,v):e.animateTo(n,v)}else e.stopAnimation(),!s&&e.attr(n),a&&a(1),o&&o()}function kt(t,e,n,r,i,o){U8("update",t,e,n,r,i,o)}function gn(t,e,n,r,i,o){U8("enter",t,e,n,r,i,o)}function fv(t){if(!t.__zr)return!0;for(var e=0;e<t.animators.length;e++){var n=t.animators[e];if(n.scope==="leave")return!0}return!1}function Rc(t,e,n,r,i,o){fv(t)||U8("leave",t,e,n,r,i,o)}function $H(t,e,n,r){t.removeTextContent(),t.removeTextGuideLine(),Rc(t,{style:{opacity:0}},e,n,r)}function ob(t,e,n){function r(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(i){i.isGroup||$H(i,e,n,r)}):$H(t,e,n,r)}function fs(t){Pse(t).oldStyle=t.style}function Hje(t){return Pse(t).oldStyle}var zS=Math.max,FS=Math.min,VR={};function $se(t){return mt.extend(t)}var Gje=Oje;function Ase(t,e){return Gje(t,e)}function Ia(t,e){VR[t]=e}function PP(t){if(VR.hasOwnProperty(t))return VR[t]}function b_(t,e,n,r){var i=hse(t,e);return n&&(r==="center"&&(n=Ese(n,i.getBoundingRect())),X8(i,n)),i}function Z8(t,e,n){var r=new Rr({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(i){if(n==="center"){var o={width:i.width,height:i.height};r.setStyle(Ese(e,o))}}});return r}function Ese(t,e){var n=e.width/e.height,r=t.height*n,i;r<=t.width?i=t.height:(r=t.width,i=r/n);var o=t.x+t.width/2,a=t.y+t.height/2;return{x:o-r/2,y:a-i/2,width:r,height:i}}var To=wje;function X8(t,e){if(t.applyTransform){var n=t.getBoundingRect(),r=n.calculateTransform(e);t.applyTransform(r)}}function eg(t,e){return Zae(t,t,{lineWidth:e}),t}function jje(t){return Xae(t.shape,t.shape,t.style),t}var yx=bd;function wc(t,e){for(var n=f_([]);t&&t!==e;)el(n,t.getLocalTransform(),n),t=t.parent;return n}function is(t,e,n){return e&&!Yr(e)&&(e=Gl.getLocalTransform(e)),n&&(e=$h([],e)),Er([],t,e)}function $P(t,e,n){var r=e[4]===0||e[5]===0||e[0]===0?1:Math.abs(2*e[4]/e[0]),i=e[4]===0||e[5]===0||e[2]===0?1:Math.abs(2*e[4]/e[2]),o=[t==="left"?-r:t==="right"?r:0,t==="top"?-i:t==="bottom"?i:0];return o=is(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function AH(t){return!t.isGroup}function Uje(t){return t.shape!=null}function __(t,e,n){if(!t||!e)return;function r(a){var s={};return a.traverse(function(l){AH(l)&&l.anid&&(s[l.anid]=l)}),s}function i(a){var s={x:a.x,y:a.y,rotation:a.rotation};return Uje(a)&&(s.shape=he({},a.shape)),s}var o=r(t);e.traverse(function(a){if(AH(a)&&a.anid){var s=o[a.anid];if(s){var l=i(a);a.attr(i(s)),kt(a,l,n,Ke(a).dataIndex)}}})}function Y8(t,e){return ye(t,function(n){var r=n[0];r=zS(r,e.x),r=FS(r,e.x+e.width);var i=n[1];return i=zS(i,e.y),i=FS(i,e.y+e.height),[r,i]})}function Mse(t,e){var n=zS(t.x,e.x),r=FS(t.x+t.width,e.x+e.width),i=zS(t.y,e.y),o=FS(t.y+t.height,e.y+e.height);if(r>=n&&o>=i)return{x:n,y:i,width:r-n,height:o-i}}function Ig(t,e,n){var r=he({rectHover:!0},e),i=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return t.indexOf("image://")===0?(i.image=t.slice(8),Ge(i,n),new Rr(r)):b_(t.replace("path://",""),r,n,"center")}function $0(t,e,n,r,i){for(var o=0,a=i[i.length-1];o<i.length;o++){var s=i[o];if(Ise(t,e,n,r,s[0],s[1],a[0],a[1]))return!0;a=s}}function Ise(t,e,n,r,i,o,a,s){var l=n-t,u=r-e,c=a-i,f=s-o,d=pE(c,f,l,u);if(Zje(d))return!1;var p=t-i,v=e-o,g=pE(p,v,l,u)/d;if(g<0||g>1)return!1;var m=pE(p,v,c,f)/d;return!(m<0||m>1)}function pE(t,e,n,r){return t*r-n*e}function Zje(t){return t<=1e-6&&t>=-1e-6}function Dg(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,i=Ie(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:r,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&V(bt(l),function(c){ke(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Ke(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:r,option:Ge({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function EH(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function qc(t,e){if(t)if(ve(t))for(var n=0;n<t.length;n++)EH(t[n],e);else EH(t,e)}Ia("circle",_u);Ia("ellipse",SP);Ia("sector",Ni);Ia("ring",m_);Ia("polygon",Li);Ia("polyline",Bi);Ia("rect",Pt);Ia("line",_r);Ia("bezierCurve",y_);Ia("arc",CP);const Ah=Object.freeze(Object.defineProperty({__proto__:null,Arc:CP,BezierCurve:y_,BoundingRect:at,Circle:_u,CompoundPath:TP,Ellipse:SP,Group:qe,Image:Rr,IncrementalDisplayable:Tse,Line:_r,LinearGradient:Eg,OrientedBoundingRect:VS,Path:mt,Point:ot,Polygon:Li,Polyline:Bi,RadialGradient:j8,Rect:Pt,Ring:m_,Sector:Ni,Text:Tt,applyTransform:is,clipPointsByRect:Y8,clipRectByRect:Mse,createIcon:Ig,extendPath:Ase,extendShape:$se,getShapeClass:PP,getTransform:wc,groupTransition:__,initProps:gn,isElementRemoved:fv,lineLineIntersect:Ise,linePolygonIntersect:$0,makeImage:Z8,makePath:b_,mergePath:To,registerShape:Ia,removeElement:Rc,removeElementWithFadeOut:ob,resizePath:X8,setTooltipConfig:Dg,subPixelOptimize:yx,subPixelOptimizeLine:eg,subPixelOptimizeRect:jje,transformDirection:$P,traverseElements:qc,updateProps:kt},Symbol.toStringTag,{value:"Module"}));var AP={};function Dse(t,e){for(var n=0;n<ki.length;n++){var r=ki[n],i=e[r],o=t.ensureState(r);o.style=o.style||{},o.style.text=i}var a=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(a,!0)}function zR(t,e,n){var r=t.labelFetcher,i=t.labelDataIndex,o=t.labelDimIndex,a=e.normal,s;r&&(s=r.getFormattedLabel(i,"normal",null,o,a&&a.get("formatter"),n!=null?{interpolatedValue:n}:null)),s==null&&(s=Fe(t.defaultText)?t.defaultText(i,t,n):t.defaultText);for(var l={normal:s},u=0;u<ki.length;u++){var c=ki[u],f=e[c];l[c]=Je(r?r.getFormattedLabel(i,c,null,o,f&&f.get("formatter")):null,s)}return l}function Jr(t,e,n,r){n=n||AP;for(var i=t instanceof Tt,o=!1,a=0;a<ib.length;a++){var s=e[ib[a]];if(s&&s.getShallow("show")){o=!0;break}}var l=i?t:t.getTextContent();if(o){i||(l||(l=new Tt,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=zR(n,e),c=e.normal,f=!!c.getShallow("show"),d=un(c,r&&r.normal,n,!1,!i);d.text=u.normal,i||t.setTextConfig(WS(c,n,!1));for(var a=0;a<ki.length;a++){var p=ki[a],s=e[p];if(s){var v=l.ensureState(p),g=!!Je(s.getShallow("show"),f);if(g!==f&&(v.ignore=!g),v.style=un(s,r&&r[p],n,!0,!i),v.style.text=u[p],!i){var m=t.ensureState(p);m.textConfig=WS(s,n,!0)}}}l.silent=!!c.getShallow("silent"),l.style.x!=null&&(d.x=l.style.x),l.style.y!=null&&(d.y=l.style.y),l.ignore=!f,l.useStyle(d),l.dirty(),n.enableTextSetter&&(Rg(l).setLabelText=function(y){var b=zR(n,e,y);Dse(l,b)})}else l&&(l.ignore=!0);t.dirty()}function Cr(t,e){e=e||"label";for(var n={normal:t.getModel(e)},r=0;r<ki.length;r++){var i=ki[r];n[i]=t.getModel([i,e])}return n}function un(t,e,n,r,i){var o={};return Xje(o,t,n,r,i),e&&he(o,e),o}function WS(t,e,n){e=e||{};var r={},i,o=t.getShallow("rotate"),a=Je(t.getShallow("distance"),n?null:5),s=t.getShallow("offset");return i=t.getShallow("position")||(n?null:"inside"),i==="outside"&&(i=e.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=t.get("color")==="inherit"?e.inheritColor||null:"auto",r}function Xje(t,e,n,r,i){n=n||AP;var o=e.ecModel,a=o&&o.option.textStyle,s=Yje(e),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=e.getModel(["rich",u]);RH(l[u]={},c,a,n,r,i,!1,!0)}}l&&(t.rich=l);var f=e.get("overflow");f&&(t.overflow=f);var d=e.get("minMargin");d!=null&&(t.margin=d),RH(t,e,a,n,r,i,!0,!1)}function Yje(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||AP).rich;if(n){e=e||{};for(var r=bt(n),i=0;i<r.length;i++){var o=r[i];e[o]=1}}t=t.parentModel}return e}var MH=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],IH=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],DH=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function RH(t,e,n,r,i,o,a,s){n=!i&&n||AP;var l=r&&r.inheritColor,u=e.getShallow("color"),c=e.getShallow("textBorderColor"),f=Je(e.getShallow("opacity"),n.opacity);(u==="inherit"||u==="auto")&&(process.env.NODE_ENV!=="production"&&u==="auto"&&Un("color: 'auto'","color: 'inherit'"),l?u=l:u=null),(c==="inherit"||c==="auto")&&(process.env.NODE_ENV!=="production"&&c==="auto"&&Un("color: 'auto'","color: 'inherit'"),l?c=l:c=null),o||(u=u||n.color,c=c||n.textBorderColor),u!=null&&(t.fill=u),c!=null&&(t.stroke=c);var d=Je(e.getShallow("textBorderWidth"),n.textBorderWidth);d!=null&&(t.lineWidth=d);var p=Je(e.getShallow("textBorderType"),n.textBorderType);p!=null&&(t.lineDash=p);var v=Je(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);v!=null&&(t.lineDashOffset=v),!i&&f==null&&!s&&(f=r&&r.defaultOpacity),f!=null&&(t.opacity=f),!i&&!o&&t.fill==null&&r.inheritColor&&(t.fill=r.inheritColor);for(var g=0;g<MH.length;g++){var m=MH[g],y=Je(e.getShallow(m),n[m]);y!=null&&(t[m]=y)}for(var g=0;g<IH.length;g++){var m=IH[g],y=e.getShallow(m);y!=null&&(t[m]=y)}if(t.verticalAlign==null){var b=e.getShallow("baseline");b!=null&&(t.verticalAlign=b)}if(!a||!r.disableBox){for(var g=0;g<DH.length;g++){var m=DH[g],y=e.getShallow(m);y!=null&&(t[m]=y)}var O=e.getShallow("borderType");O!=null&&(t.borderDash=O),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&l&&(process.env.NODE_ENV!=="production"&&t.backgroundColor==="auto"&&Un("backgroundColor: 'auto'","backgroundColor: 'inherit'"),t.backgroundColor=l),(t.borderColor==="auto"||t.borderColor==="inherit")&&l&&(process.env.NODE_ENV!=="production"&&t.borderColor==="auto"&&Un("borderColor: 'auto'","borderColor: 'inherit'"),t.borderColor=l)}}function q8(t,e){var n=e&&e.getModel("textStyle");return pa([t.fontStyle||n&&n.getShallow("fontStyle")||"",t.fontWeight||n&&n.getShallow("fontWeight")||"",(t.fontSize||n&&n.getShallow("fontSize")||12)+"px",t.fontFamily||n&&n.getShallow("fontFamily")||"sans-serif"].join(" "))}var Rg=$t();function Rse(t,e,n,r){if(t){var i=Rg(t);i.prevValue=i.value,i.value=n;var o=e.normal;i.valueAnimation=o.get("valueAnimation"),i.valueAnimation&&(i.precision=o.get("precision"),i.defaultInterpolatedText=r,i.statesModels=e)}}function kse(t,e,n,r,i){var o=Rg(t);if(!o.valueAnimation||o.prevValue===o.value)return;var a=o.defaultInterpolatedText,s=Je(o.interpolatedValue,o.prevValue),l=o.value;function u(c){var f=Bae(n,o.precision,s,l,c);o.interpolatedValue=c===1?null:f;var d=zR({labelDataIndex:e,labelFetcher:i,defaultText:a?a(f):f+""},o.statesModels,f);Dse(t,d)}t.percent=0,(o.prevValue==null?gn:kt)(t,{percent:1},r,e,null,u)}var qje=["textStyle","color"],vE=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],gE=new Tt,Kje=function(){function t(){}return t.prototype.getTextColor=function(e){var n=this.ecModel;return this.getShallow("color")||(!e&&n?n.get(qje):null)},t.prototype.getFont=function(){return q8({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},t.prototype.getTextRect=function(e){for(var n={text:e,verticalAlign:this.getShallow("verticalAlign")||this.getShallow("baseline")},r=0;r<vE.length;r++)n[vE[r]]=this.getShallow(vE[r]);return gE.useStyle(n),gE.update(),gE.getBoundingRect()},t}(),Nse=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],Jje=uh(Nse),eUe=function(){function t(){}return t.prototype.getLineStyle=function(e){return Jje(this,e)},t}(),Lse=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],tUe=uh(Lse),nUe=function(){function t(){}return t.prototype.getItemStyle=function(e,n){return tUe(this,e,n)},t}(),Eh=function(){function t(e,n,r){this.parentModel=n,this.ecModel=r,this.option=e}return t.prototype.init=function(e,n,r){},t.prototype.mergeOption=function(e,n){it(this.option,e,!0)},t.prototype.get=function(e,n){return e==null?this.option:this._doGet(this.parsePath(e),!n&&this.parentModel)},t.prototype.getShallow=function(e,n){var r=this.option,i=r==null?r:r[e];if(i==null&&!n){var o=this.parentModel;o&&(i=o.getShallow(e))}return i},t.prototype.getModel=function(e,n){var r=e!=null,i=r?this.parsePath(e):null,o=r?this._doGet(i):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new t(o,n,this.ecModel)},t.prototype.isEmpty=function(){return this.option==null},t.prototype.restoreData=function(){},t.prototype.clone=function(){var e=this.constructor;return new e(Ue(this.option))},t.prototype.parsePath=function(e){return typeof e=="string"?e.split("."):e},t.prototype.resolveParentPath=function(e){return e},t.prototype.isAnimationEnabled=function(){if(!Ct.node&&this.option){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}},t.prototype._doGet=function(e,n){var r=this.option;if(!e)return r;for(var i=0;i<e.length&&!(e[i]&&(r=r&&typeof r=="object"?r[e[i]]:null,r==null));i++);return r==null&&n&&(r=n._doGet(this.resolveParentPath(e),n.parentModel)),r},t}();L8(Eh);cGe(Eh);Qn(Eh,eUe);Qn(Eh,nUe);Qn(Eh,vGe);Qn(Eh,Kje);const tn=Eh;var rUe=Math.round(Math.random()*10);function kg(t){return[t||"",rUe++].join("_")}function iUe(t){var e={};t.registerSubTypeDefaulter=function(n,r){var i=js(n);e[i.main]=r},t.determineSubType=function(n,r){var i=r.type;if(!i){var o=js(n).main;t.hasSubTypes(n)&&e[o]&&(i=e[o](r))}return i}}function oUe(t,e){t.topologicalTravel=function(o,a,s,l){if(!o.length)return;var u=n(a),c=u.graph,f=u.noEntryList,d={};for(V(o,function(b){d[b]=!0});f.length;){var p=f.pop(),v=c[p],g=!!d[p];g&&(s.call(l,p,v.originalDeps.slice()),delete d[p]),V(v.successor,g?y:m)}V(d,function(){var b="";throw process.env.NODE_ENV!=="production"&&(b=Ri("Circular dependency may exists: ",d,o,a)),new Error(b)});function m(b){c[b].entryCount--,c[b].entryCount===0&&f.push(b)}function y(b){d[b]=!0,m(b)}};function n(o){var a={},s=[];return V(o,function(l){var u=r(a,l),c=u.originalDeps=e(l),f=i(c,o);u.entryCount=f.length,u.entryCount===0&&s.push(l),V(f,function(d){st(u.predecessor,d)<0&&u.predecessor.push(d);var p=r(a,d);st(p.successor,d)<0&&p.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 V(o,function(l){st(a,l)>=0&&s.push(l)}),s}}function Kc(t,e){return it(it({},t,!0),e,!0)}const aUe={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:". "}}}},sUe={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 QS="ZH",K8="EN",dv=K8,bx={},J8={},Bse=Ct.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||dv).toUpperCase();return t.indexOf(QS)>-1?QS:dv}():dv;function e5(t,e){t=t.toUpperCase(),J8[t]=new tn(e),bx[t]=e}function lUe(t){if(Ie(t)){var e=bx[t.toUpperCase()]||{};return t===QS||t===K8?Ue(e):it(Ue(e),Ue(bx[dv]),!1)}else return it(Ue(t),Ue(bx[dv]),!1)}function FR(t){return J8[t]}function uUe(){return J8[dv]}e5(K8,aUe);e5(QS,sUe);var t5=1e3,n5=t5*60,vy=n5*60,da=vy*24,kH=da*365,A0={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}"},PO="{yyyy}-{MM}-{dd}",NH={year:"{yyyy}",month:"{yyyy}-{MM}",day:PO,hour:PO+" "+A0.hour,minute:PO+" "+A0.minute,second:PO+" "+A0.second,millisecond:A0.none},mE=["year","month","day","hour","minute","second","millisecond"],Vse=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function wi(t,e){return t+="","0000".substr(0,e-t.length)+t}function hv(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function cUe(t){return t===hv(t)}function fUe(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function O_(t,e,n,r){var i=Bo(t),o=i[r5(n)](),a=i[pv(n)]()+1,s=Math.floor((a-1)/3)+1,l=i[EP(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[ab(n)](),f=(c-1)%12+1,d=i[MP(n)](),p=i[IP(n)](),v=i[DP(n)](),g=c>=12?"pm":"am",m=g.toUpperCase(),y=r instanceof tn?r:FR(r||Bse)||uUe(),b=y.getModel("time"),O=b.get("month"),w=b.get("monthAbbr"),x=b.get("dayOfWeek"),S=b.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,g+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,wi(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,O[a-1]).replace(/{MMM}/g,w[a-1]).replace(/{MM}/g,wi(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,wi(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,x[u]).replace(/{ee}/g,S[u]).replace(/{e}/g,u+"").replace(/{HH}/g,wi(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,wi(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,wi(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,wi(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,wi(v,3)).replace(/{S}/g,v+"")}function dUe(t,e,n,r,i){var o=null;if(Ie(n))o=n;else if(Fe(n))o=n(t.value,e,{level:t.level});else{var a=he({},A0);if(t.level>0)for(var s=0;s<mE.length;++s)a[mE[s]]="{primary|"+a[mE[s]]+"}";var l=n?n.inherit===!1?n:Ge(n,a):a,u=zse(t.value,i);if(l[u])o=l[u];else if(l.inherit){for(var c=Vse.indexOf(u),s=c-1;s>=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(ve(o)){var f=t.level==null?0:t.level>=0?t.level:o.length+t.level;f=Math.min(f,o.length-1),o=o[f]}}return O_(new Date(t.value),o,i,r)}function zse(t,e){var n=Bo(t),r=n[pv(e)]()+1,i=n[EP(e)](),o=n[ab(e)](),a=n[MP(e)](),s=n[IP(e)](),l=n[DP(e)](),u=l===0,c=u&&s===0,f=c&&a===0,d=f&&o===0,p=d&&i===1,v=p&&r===1;return v?"year":p?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function LH(t,e,n){var r=It(t)?Bo(t):t;switch(e=e||zse(t,n),e){case"year":return r[r5(n)]();case"half-year":return r[pv(n)]()>=6?1:0;case"quarter":return Math.floor((r[pv(n)]()+1)/4);case"month":return r[pv(n)]();case"day":return r[EP(n)]();case"half-day":return r[ab(n)]()/24;case"hour":return r[ab(n)]();case"minute":return r[MP(n)]();case"second":return r[IP(n)]();case"millisecond":return r[DP(n)]()}}function r5(t){return t?"getUTCFullYear":"getFullYear"}function pv(t){return t?"getUTCMonth":"getMonth"}function EP(t){return t?"getUTCDate":"getDate"}function ab(t){return t?"getUTCHours":"getHours"}function MP(t){return t?"getUTCMinutes":"getMinutes"}function IP(t){return t?"getUTCSeconds":"getSeconds"}function DP(t){return t?"getUTCMilliseconds":"getMilliseconds"}function hUe(t){return t?"setUTCFullYear":"setFullYear"}function Fse(t){return t?"setUTCMonth":"setMonth"}function Wse(t){return t?"setUTCDate":"setDate"}function Qse(t){return t?"setUTCHours":"setHours"}function Hse(t){return t?"setUTCMinutes":"setMinutes"}function Gse(t){return t?"setUTCSeconds":"setSeconds"}function jse(t){return t?"setUTCMilliseconds":"setMilliseconds"}function pUe(t,e,n,r,i,o,a,s){var l=new Tt({style:{text:t,font:e,align:n,verticalAlign:r,padding:i,rich:o,overflow:a?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function i5(t){if(!gP(t))return Ie(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function o5(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(n,r){return r.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Mh=cP;function WR(t,e,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&pa(c)?c:"-"}function o(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var a=e==="time",s=t instanceof Date;if(a||s){var l=a?Bo(t):t;if(isNaN(+l)){if(s)return"-"}else return O_(l,r,n)}if(e==="ordinal")return Xy(t)?i(t):It(t)&&o(t)?t+"":"-";var u=ul(t);return o(u)?i5(u):Xy(t)?i(t):typeof t=="boolean"?t+"":"-"}var BH=["a","b","c","d","e","f","g"],yE=function(t,e){return"{"+t+(e??"")+"}"};function a5(t,e,n){ve(e)||(e=[e]);var r=e.length;if(!r)return"";for(var i=e[0].$vars||[],o=0;o<i.length;o++){var a=BH[o];t=t.replace(yE(a),yE(a,0))}for(var s=0;s<r;s++)for(var l=0;l<i.length;l++){var u=e[s][i[l]];t=t.replace(yE(BH[l],s),n?Si(u):u)}return t}function vUe(t,e,n){return V(e,function(r,i){t=t.replace("{"+i+"}",r)}),t}function Use(t,e){var n=Ie(t)?{color:t,extraCssText:e}:t||{},r=n.color,i=n.type;e=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:'+Si(r)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+Si(r)+";"+(e||"")+'"></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 gUe(t,e,n){process.env.NODE_ENV!=="production"&&Un("echarts.format.formatTime","echarts.time.format"),(t==="week"||t==="month"||t==="quarter"||t==="half-year"||t==="year")&&(t=`MM-dd
  335. yyyy`);var r=Bo(e),i=n?"getUTC":"get",o=r[i+"FullYear"](),a=r[i+"Month"]()+1,s=r[i+"Date"](),l=r[i+"Hours"](),u=r[i+"Minutes"](),c=r[i+"Seconds"](),f=r[i+"Milliseconds"]();return t=t.replace("MM",wi(a,2)).replace("M",a).replace("yyyy",o).replace("yy",wi(o%100+"",2)).replace("dd",wi(s,2)).replace("d",s).replace("hh",wi(l,2)).replace("h",l).replace("mm",wi(u,2)).replace("m",u).replace("ss",wi(c,2)).replace("s",c).replace("SSS",wi(f,3)),t}function mUe(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function fh(t,e){return e=e||"transparent",Ie(t)?t:Qe(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function HS(t,e){if(e==="_blank"||e==="blank"){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var _x=V,Zse=["left","right","top","bottom","width","height"],Od=[["width","left","right"],["height","top","bottom"]];function s5(t,e,n,r,i){var o=0,a=0;r==null&&(r=1/0),i==null&&(i=1/0);var s=0;e.eachChild(function(l,u){var c=l.getBoundingRect(),f=e.childAt(u+1),d=f&&f.getBoundingRect(),p,v;if(t==="horizontal"){var g=c.width+(d?-d.x+c.x:0);p=o+g,p>r||l.newline?(o=0,p=g,a+=s+n,s=c.height):s=Math.max(s,c.height)}else{var m=c.height+(d?-d.y+c.y:0);v=a+m,v>i||l.newline?(o+=s+n,a=0,v=m,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),t==="horizontal"?o=p+n:a=v+n)})}var Fd=s5;nt(s5,"vertical");nt(s5,"horizontal");function yUe(t,e,n){var r=e.width,i=e.height,o=Me(t.left,r),a=Me(t.top,i),s=Me(t.right,r),l=Me(t.bottom,i);return(isNaN(o)||isNaN(parseFloat(t.left)))&&(o=0),(isNaN(s)||isNaN(parseFloat(t.right)))&&(s=r),(isNaN(a)||isNaN(parseFloat(t.top)))&&(a=0),(isNaN(l)||isNaN(parseFloat(t.bottom)))&&(l=i),n=Mh(n||0),{width:Math.max(s-o-n[1]-n[3],0),height:Math.max(l-a-n[0]-n[2],0)}}function ir(t,e,n){n=Mh(n||0);var r=e.width,i=e.height,o=Me(t.left,r),a=Me(t.top,i),s=Me(t.right,r),l=Me(t.bottom,i),u=Me(t.width,r),c=Me(t.height,i),f=n[2]+n[0],d=n[1]+n[3],p=t.aspect;switch(isNaN(u)&&(u=r-s-d-o),isNaN(c)&&(c=i-l-f-a),p!=null&&(isNaN(u)&&isNaN(c)&&(p>r/i?u=r*.8:c=i*.8),isNaN(u)&&(u=p*c),isNaN(c)&&(c=u/p)),isNaN(o)&&(o=r-s-u-d),isNaN(a)&&(a=i-l-c-f),t.left||t.right){case"center":o=r/2-u/2-n[3];break;case"right":o=r-u-d;break}switch(t.top||t.bottom){case"middle":case"center":a=i/2-c/2-n[0];break;case"bottom":a=i-c-f;break}o=o||0,a=a||0,isNaN(u)&&(u=r-d-o-(s||0)),isNaN(c)&&(c=i-f-a-(l||0));var v=new at(o+n[3],a+n[0],u,c);return v.margin=n,v}function RP(t,e,n,r,i,o){var a=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(o=o||t,o.x=t.x,o.y=t.y,!a&&!s)return!1;var u;if(l==="raw")u=t.type==="group"?new at(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(u=t.getBoundingRect(),t.needLocalTransform()){var c=t.getLocalTransform();u=u.clone(),u.applyTransform(c)}var f=ir(Ge({width:u.width,height:u.height},e),n,r),d=a?f.x-u.x:0,p=s?f.y-u.y:0;return l==="raw"?(o.x=d,o.y=p):(o.x+=d,o.y+=p),o===t&&t.markRedraw(),!0}function bUe(t,e){return t[Od[e][0]]!=null||t[Od[e][1]]!=null&&t[Od[e][2]]!=null}function sb(t){var e=t.layoutMode||t.constructor.layoutMode;return Qe(e)?e:e?{type:e}:null}function kc(t,e,n){var r=n&&n.ignoreSize;!ve(r)&&(r=[r,r]);var i=a(Od[0],0),o=a(Od[1],1);u(Od[0],t,i),u(Od[1],t,o);function a(c,f){var d={},p=0,v={},g=0,m=2;if(_x(c,function(O){v[O]=t[O]}),_x(c,function(O){s(e,O)&&(d[O]=v[O]=e[O]),l(d,O)&&p++,l(v,O)&&g++}),r[f])return l(e,c[1])?v[c[2]]=null:l(e,c[2])&&(v[c[1]]=null),v;if(g===m||!p)return v;if(p>=m)return d;for(var y=0;y<c.length;y++){var b=c[y];if(!s(d,b)&&s(t,b)){d[b]=t[b];break}}return d}function s(c,f){return c.hasOwnProperty(f)}function l(c,f){return c[f]!=null&&c[f]!=="auto"}function u(c,f,d){_x(c,function(p){f[p]=d[p]})}}function Ng(t){return Xse({},t)}function Xse(t,e){return e&&t&&_x(Zse,function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}var _Ue=$t(),pt=function(t){ie(e,t);function e(n,r,i){var o=t.call(this,n,r,i)||this;return o.uid=kg("ec_cpt_model"),o}return e.prototype.init=function(n,r,i){this.mergeDefaultAndTheme(n,i)},e.prototype.mergeDefaultAndTheme=function(n,r){var i=sb(this),o=i?Ng(n):{},a=r.getTheme();it(n,a.get(this.mainType)),it(n,this.getDefaultOption()),i&&kc(n,o,i)},e.prototype.mergeOption=function(n,r){it(this.option,n,!0);var i=sb(this);i&&kc(this.option,n,i)},e.prototype.optionUpdated=function(n,r){},e.prototype.getDefaultOption=function(){var n=this.constructor;if(!sGe(n))return n.defaultOption;var r=_Ue(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=it(s,i[l],!0);r.defaultOption=s}return r.defaultOption},e.prototype.getReferringComponents=function(n,r){var i=n+"Index",o=n+"Id";return v_(this.ecModel,n,{index:this.get(i,!0),id:this.get(o,!0)},r)},e.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")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(n){this.option.zlevel=n},e.protoInitialize=function(){var n=e.prototype;n.type="component",n.id="",n.name="",n.mainType="",n.subType="",n.componentIndex=0}(),e}(tn);zae(pt,tn);yP(pt);iUe(pt);oUe(pt,OUe);function OUe(t){var e=[];return V(pt.getClassesByMainType(t),function(n){e=e.concat(n.dependencies||n.prototype.dependencies||[])}),e=ye(e,function(n){return js(n).main}),t!=="dataset"&&st(e,"dataset")<=0&&e.unshift("dataset"),e}var Yse="";typeof navigator<"u"&&(Yse=navigator.platform||"");var vp="rgba(0, 0, 0, 0.2)";const wUe={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:vp,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:vp,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:vp,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:vp,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:vp,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:vp,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Yse.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 QR=Be(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Da="original",hi="arrayRows",Ra="objectRows",hl="keyedColumns",Xl="typedArray",qse="unknown",tl="column",Lg="row",Br={Must:1,Might:2,Not:3},Kse=$t();function xUe(t){Kse(t).datasetMap=Be()}function Jse(t,e,n){var r={},i=u5(e);if(!i||!t)return r;var o=[],a=[],s=e.ecModel,l=Kse(s).datasetMap,u=i.uid+"_"+n.seriesLayoutBy,c,f;t=t.slice(),V(t,function(g,m){var y=Qe(g)?g:t[m]={name:g};y.type==="ordinal"&&c==null&&(c=m,f=v(y)),r[y.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});V(t,function(g,m){var y=g.name,b=v(g);if(c==null){var O=d.valueWayDim;p(r[y],O,b),p(a,O,b),d.valueWayDim+=b}else if(c===m)p(r[y],0,b),p(o,0,b);else{var O=d.categoryWayDim;p(r[y],O,b),p(a,O,b),d.categoryWayDim+=b}});function p(g,m,y){for(var b=0;b<y;b++)g.push(m+b)}function v(g){var m=g.dimsDef;return m?m.length:1}return o.length&&(r.itemName=o),a.length&&(r.seriesName=a),r}function l5(t,e,n){var r={},i=u5(t);if(!i)return r;var o=e.sourceFormat,a=e.dimensionsDefine,s;(o===Ra||o===hl)&&V(a,function(c,f){(Qe(c)?c.name:c)==="name"&&(s=f)});var l=function(){for(var c={},f={},d=[],p=0,v=Math.min(5,n);p<v;p++){var g=tle(e.data,o,e.seriesLayoutBy,a,e.startIndex,p);d.push(g);var m=g===Br.Not;if(m&&c.v==null&&p!==s&&(c.v=p),(c.n==null||c.n===c.v||!m&&d[c.n]===Br.Not)&&(c.n=p),y(c)&&d[c.n]!==Br.Not)return c;m||(g===Br.Might&&f.v==null&&p!==s&&(f.v=p),(f.n==null||f.n===f.v)&&(f.n=p))}function y(b){return b.v!=null&&b.n!=null}return y(c)?c:y(f)?f:null}();if(l){r.value=[l.v];var u=s??l.n;r.itemName=[u],r.seriesName=[u]}return r}function u5(t){var e=t.get("data",!0);if(!e)return v_(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},rr).models[0]}function SUe(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:v_(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},rr).models}function ele(t,e){return tle(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function tle(t,e,n,r,i,o){var a,s=5;if(di(t))return Br.Not;var l,u;if(r){var c=r[o];Qe(c)?(l=c.name,u=c.type):Ie(c)&&(l=c)}if(u!=null)return u==="ordinal"?Br.Must:Br.Not;if(e===hi){var f=t;if(n===Lg){for(var d=f[o],p=0;p<(d||[]).length&&p<s;p++)if((a=w(d[i+p]))!=null)return a}else for(var p=0;p<f.length&&p<s;p++){var v=f[i+p];if(v&&(a=w(v[o]))!=null)return a}}else if(e===Ra){var g=t;if(!l)return Br.Not;for(var p=0;p<g.length&&p<s;p++){var m=g[p];if(m&&(a=w(m[l]))!=null)return a}}else if(e===hl){var y=t;if(!l)return Br.Not;var d=y[l];if(!d||di(d))return Br.Not;for(var p=0;p<d.length&&p<s;p++)if((a=w(d[p]))!=null)return a}else if(e===Da)for(var b=t,p=0;p<b.length&&p<s;p++){var m=b[p],O=$g(m);if(!ve(O))return Br.Not;if((a=w(O[o]))!=null)return a}function w(x){var S=Ie(x);if(x!=null&&Number.isFinite(Number(x))&&x!=="")return S?Br.Might:Br.Not;if(S&&x!=="-")return Br.Must}return Br.Not}var HR=Be();function CUe(t,e){je(HR.get(t)==null&&e),HR.set(t,e)}function TUe(t,e,n){var r=HR.get(e);if(!r)return n;var i=r(t);if(!i)return n;if(process.env.NODE_ENV!=="production")for(var o=0;o<i.length;o++)je(Kv(i[o]));return n.concat(i)}var VH=$t(),PUe=$t(),c5=function(){function t(){}return t.prototype.getColorFromPalette=function(e,n,r){var i=nn(this.get("color",!0)),o=this.get("colorLayer",!0);return nle(this,VH,i,o,e,n,r)},t.prototype.clearColorPalette=function(){AUe(this,VH)},t}();function GR(t,e,n,r){var i=nn(t.get(["aria","decal","decals"]));return nle(t,PUe,i,null,e,n,r)}function $Ue(t,e){for(var n=t.length,r=0;r<n;r++)if(t[r].length>e)return t[r];return t[n-1]}function nle(t,e,n,r,i,o,a){o=o||t;var s=e(o),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=a==null||!r?n:$Ue(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 AUe(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var $O,Wm,zH,bE="\0_ec_inner",FH=1,EUe={grid:"GridComponent",polar:"PolarComponent",geo:"GeoComponent",singleAxis:"SingleAxisComponent",parallel:"ParallelComponent",calendar:"CalendarComponent",graphic:"GraphicComponent",toolbox:"ToolboxComponent",tooltip:"TooltipComponent",axisPointer:"AxisPointerComponent",brush:"BrushComponent",title:"TitleComponent",timeline:"TimelineComponent",markPoint:"MarkPointComponent",markLine:"MarkLineComponent",markArea:"MarkAreaComponent",legend:"LegendComponent",dataZoom:"DataZoomComponent",visualMap:"VisualMapComponent",xAxis:"GridComponent",yAxis:"GridComponent",angleAxis:"PolarComponent",radiusAxis:"PolarComponent"},MUe={line:"LineChart",bar:"BarChart",pie:"PieChart",scatter:"ScatterChart",radar:"RadarChart",map:"MapChart",tree:"TreeChart",treemap:"TreemapChart",graph:"GraphChart",gauge:"GaugeChart",funnel:"FunnelChart",parallel:"ParallelChart",sankey:"SankeyChart",boxplot:"BoxplotChart",candlestick:"CandlestickChart",effectScatter:"EffectScatterChart",lines:"LinesChart",heatmap:"HeatmapChart",pictorialBar:"PictorialBarChart",themeRiver:"ThemeRiverChart",sunburst:"SunburstChart",custom:"CustomChart"},GS={};function IUe(t){V(t,function(e,n){if(!pt.hasClass(n)){var r=EUe[n];r&&!GS[r]&&(qr("Component "+n+` is used but not imported.
  336. import { `+r+` } from 'echarts/components';
  337. echarts.use([`+r+"]);"),GS[r]=!0)}})}var f5=function(t){ie(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(n,r,i,o,a,s){o=o||{},this.option=null,this._theme=new tn(o),this._locale=new tn(a),this._optionManager=s},e.prototype.setOption=function(n,r,i){process.env.NODE_ENV!=="production"&&(je(n!=null,"option is null/undefined"),je(n[bE]!==FH,"please use chart.getOption()"));var o=HH(r);this._optionManager.setOption(n,i,o),this._resetOption(null,o)},e.prototype.resetOption=function(n,r){return this._resetOption(n,HH(r))},e.prototype._resetOption=function(n,r){var i=!1,o=this._optionManager;if(!n||n==="recreate"){var a=o.mountOption(n==="recreate");process.env.NODE_ENV!=="production"&&IUe(a),!this.option||n==="recreate"?zH(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&&V(l,function(u){i=!0,this._mergeOption(u,r)},this)}return i},e.prototype.mergeOption=function(n){this._mergeOption(n,null)},e.prototype._mergeOption=function(n,r){var i=this.option,o=this._componentsMap,a=this._componentsCount,s=[],l=Be(),u=r&&r.replaceMergeMainTypeMap;xUe(this),V(n,function(f,d){f!=null&&(pt.hasClass(d)?d&&(s.push(d),l.set(d,!0)):i[d]=i[d]==null?Ue(f):it(i[d],f,!0))}),u&&u.each(function(f,d){pt.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),pt.topologicalTravel(s,pt.getAllClassMainTypes(),c,this);function c(f){var d=TUe(this,f,nn(n[f])),p=o.get(f),v=p?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",g=kae(p,d,v);KHe(g,f,pt),i[f]=null,o.set(f,null),a.set(f,0);var m=[],y=[],b=0,O,w;V(g,function(x,S){var T=x.existing,$=x.newOption;if(!$)T&&(T.mergeOption({},this),T.optionUpdated({},!1));else{var A=f==="series",P=pt.getClass(f,x.keyInfo.subType,!A);if(!P){if(process.env.NODE_ENV!=="production"){var M=x.keyInfo.subType,I=MUe[M];GS[M]||(GS[M]=!0,qr(I?"Series "+M+` is used but not imported.
  338. import { `+I+` } from 'echarts/charts';
  339. echarts.use([`+I+"]);":"Unknown series "+M))}return}if(f==="tooltip"){if(O){process.env.NODE_ENV!=="production"&&(w||(Mn("Currently only one tooltip component is allowed."),w=!0));return}O=!0}if(T&&T.constructor===P)T.name=x.keyInfo.name,T.mergeOption($,this),T.optionUpdated($,!1);else{var R=he({componentIndex:S},x.keyInfo);T=new P($,this,this,R),he(T,R),x.brandNew&&(T.__requireNewView=!0),T.init($,this,this),T.optionUpdated(null,!0)}}T?(m.push(T.option),y.push(T),b++):(m.push(void 0),y.push(void 0))},this),i[f]=m,o.set(f,y),a.set(f,b),f==="series"&&$O(this)}this._seriesIndices||$O(this)},e.prototype.getOption=function(){var n=Ue(this.option);return V(n,function(r,i){if(pt.hasClass(i)){for(var o=nn(r),a=o.length,s=!1,l=a-1;l>=0;l--)o[l]&&!Kv(o[l])?s=!0:(o[l]=null,!s&&a--);o.length=a,n[i]=o}}),delete n[bE],n},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(n){this._payload=n},e.prototype.getUpdatePayload=function(){return this._payload},e.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]}}},e.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=[],V(nn(i),function(u){s[u]&&l.push(s[u])})):o!=null?l=WH("id",o,s):a!=null?l=WH("name",a,s):l=Yt(s,function(u){return!!u}),QH(l,n)},e.prototype.findComponents=function(n){var r=n.query,i=n.mainType,o=s(r),a=o?this.queryComponents(o):Yt(this._componentsMap.get(i),function(u){return!!u});return l(QH(a,n));function s(u){var c=i+"Index",f=i+"Id",d=i+"Name";return u&&(u[c]!=null||u[f]!=null||u[d]!=null)?{mainType:i,index:u[c],id:u[f],name:u[d]}:null}function l(u){return n.filter?Yt(u,n.filter):u}},e.prototype.eachComponent=function(n,r,i){var o=this._componentsMap;if(Fe(n)){var a=r,s=n;o.each(function(f,d){for(var p=0;f&&p<f.length;p++){var v=f[p];v&&s.call(a,d,v,v.componentIndex)}})}else for(var l=Ie(n)?o.get(n):Qe(n)?this.findComponents(n):null,u=0;l&&u<l.length;u++){var c=l[u];c&&r.call(i,c,c.componentIndex)}},e.prototype.getSeriesByName=function(n){var r=ur(n,null);return Yt(this._componentsMap.get("series"),function(i){return!!i&&r!=null&&i.name===r})},e.prototype.getSeriesByIndex=function(n){return this._componentsMap.get("series")[n]},e.prototype.getSeriesByType=function(n){return Yt(this._componentsMap.get("series"),function(r){return!!r&&r.subType===n})},e.prototype.getSeries=function(){return Yt(this._componentsMap.get("series"),function(n){return!!n})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(n,r){Wm(this),V(this._seriesIndices,function(i){var o=this._componentsMap.get("series")[i];n.call(r,o,i)},this)},e.prototype.eachRawSeries=function(n,r){V(this._componentsMap.get("series"),function(i){i&&n.call(r,i,i.componentIndex)})},e.prototype.eachSeriesByType=function(n,r,i){Wm(this),V(this._seriesIndices,function(o){var a=this._componentsMap.get("series")[o];a.subType===n&&r.call(i,a,o)},this)},e.prototype.eachRawSeriesByType=function(n,r,i){return V(this.getSeriesByType(n),r,i)},e.prototype.isSeriesFiltered=function(n){return Wm(this),this._seriesIndicesMap.get(n.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(n,r){Wm(this);var i=[];V(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=Be(i)},e.prototype.restoreData=function(n){$O(this);var r=this._componentsMap,i=[];r.each(function(o,a){pt.hasClass(a)&&i.push(a)}),pt.topologicalTravel(i,pt.getAllClassMainTypes(),function(o){V(r.get(o),function(a){a&&(o!=="series"||!DUe(a,n))&&a.restoreData()})})},e.internalField=function(){$O=function(n){var r=n._seriesIndices=[];V(n._componentsMap.get("series"),function(i){i&&r.push(i.componentIndex)}),n._seriesIndicesMap=Be(r)},Wm=function(n){if(process.env.NODE_ENV!=="production"&&!n._seriesIndices)throw new Error("Option should contains series.")},zH=function(n,r){n.option={},n.option[bE]=FH,n._componentsMap=Be({series:[]}),n._componentsCount=Be();var i=r.aria;Qe(i)&&i.enabled==null&&(i.enabled=!0),RUe(r,n._theme.option),it(r,wUe,!1),n._mergeOption(r,null)}}(),e}(tn);function DUe(t,e){if(e){var n=e.seriesIndex,r=e.seriesId,i=e.seriesName;return n!=null&&t.componentIndex!==n||r!=null&&t.id!==r||i!=null&&t.name!==i}}function RUe(t,e){var n=t.color&&!t.colorLayer;V(e,function(r,i){i==="colorLayer"&&n||pt.hasClass(i)||(typeof r=="object"?t[i]=t[i]?it(t[i],r,!1):Ue(r):t[i]==null&&(t[i]=r))})}function WH(t,e,n){if(ve(e)){var r=Be();return V(e,function(o){if(o!=null){var a=ur(o,null);a!=null&&r.set(o,!0)}}),Yt(n,function(o){return o&&r.get(o[t])})}else{var i=ur(e,null);return Yt(n,function(o){return o&&i!=null&&o[t]===i})}}function QH(t,e){return e.hasOwnProperty("subType")?Yt(t,function(n){return n&&n.subType===e.subType}):t}function HH(t){var e=Be();return t&&V(nn(t.replaceMerge),function(n){process.env.NODE_ENV!=="production"&&je(pt.hasClass(n),'"'+n+'" is not valid component main type in "replaceMerge"'),e.set(n,!0)}),{replaceMergeMainTypeMap:e}}Qn(f5,c5);var kUe=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],rle=function(){function t(e){V(kUe,function(n){this[n]=Re(e[n],e)},this)}return t}(),_E={},Ih=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(e,n){var r=[];V(_E,function(i,o){var a=i.create(e,n);r=r.concat(a||[])}),this._coordinateSystems=r},t.prototype.update=function(e,n){V(this._coordinateSystems,function(r){r.update&&r.update(e,n)})},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(e,n){_E[e]=n},t.get=function(e){return _E[e]},t}(),NUe=/^(min|max)?(.+)$/,LUe=function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,n,r){e&&(V(nn(e.series),function(a){a&&a.data&&di(a.data)&&Yy(a.data)}),V(nn(e.dataset),function(a){a&&a.source&&di(a.source)&&Yy(a.source)})),e=Ue(e);var i=this._optionBackup,o=BUe(e,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},t.prototype.mountOption=function(e){var n=this._optionBackup;return this._timelineOptions=n.timelineOptions,this._mediaList=n.mediaList,this._mediaDefault=n.mediaDefault,this._currentMediaIndices=[],Ue(e?n.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(e){var n,r=this._timelineOptions;if(r.length){var i=e.getComponent("timeline");i&&(n=Ue(r[i.getCurrentIndex()]))}return n},t.prototype.getMediaOption=function(e){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++)VUe(i[l].query,n,r)&&a.push(l);return!a.length&&o&&(a=[-1]),a.length&&!FUe(a,this._currentMediaIndices)&&(s=ye(a,function(c){return Ue(c===-1?o.option:i[c].option)})),this._currentMediaIndices=a,s},t}();function BUe(t,e,n){var r=[],i,o,a=t.baseOption,s=t.timeline,l=t.options,u=t.media,c=!!t.media,f=!!(l||s||a&&a.timeline);a?(o=a,o.timeline||(o.timeline=s)):((f||c)&&(t.options=t.media=null),o=t),c&&(ve(u)?V(u,function(p){process.env.NODE_ENV!=="production"&&p&&!p.option&&Qe(p.query)&&Qe(p.query.option)&&qr("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),p&&p.option&&(p.query?r.push(p):i||(i=p))}):process.env.NODE_ENV!=="production"&&qr("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")),d(o),V(l,function(p){return d(p)}),V(r,function(p){return d(p.option)});function d(p){V(e,function(v){v(p,n)})}return{baseOption:o,timelineOptions:l||[],mediaDefault:i,mediaList:r}}function VUe(t,e,n){var r={width:e,height:n,aspectratio:e/n},i=!0;return V(t,function(o,a){var s=a.match(NUe);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();zUe(r[u],o,l)||(i=!1)}}),i}function zUe(t,e,n){return n==="min"?t>=e:n==="max"?t<=e:t===e}function FUe(t,e){return t.join(",")===e.join(",")}var qo=V,lb=Qe,GH=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function OE(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=GH.length;n<r;n++){var i=GH[n],o=e.normal,a=e.emphasis;o&&o[i]&&(process.env.NODE_ENV!=="production"&&Un("itemStyle.normal."+i,i),t[i]=t[i]||{},t[i].normal?it(t[i].normal,o[i]):t[i].normal=o[i],o[i]=null),a&&a[i]&&(process.env.NODE_ENV!=="production"&&Un("itemStyle.emphasis."+i,"emphasis."+i),t[i]=t[i]||{},t[i].emphasis?it(t[i].emphasis,a[i]):t[i].emphasis=a[i],a[i]=null)}}function oi(t,e,n){if(t&&t[e]&&(t[e].normal||t[e].emphasis)){var r=t[e].normal,i=t[e].emphasis;r&&(process.env.NODE_ENV!=="production"&&Pa("'normal' hierarchy in "+e+" has been removed since 4.0. All style properties are configured in "+e+" directly now."),n?(t[e].normal=t[e].emphasis=null,Ge(t[e],r)):t[e]=r),i&&(process.env.NODE_ENV!=="production"&&Pa(e+".emphasis has been changed to emphasis."+e+" since 4.0"),t.emphasis=t.emphasis||{},t.emphasis[e]=i,i.focus&&(t.emphasis.focus=i.focus),i.blurScope&&(t.emphasis.blurScope=i.blurScope))}}function E0(t){oi(t,"itemStyle"),oi(t,"lineStyle"),oi(t,"areaStyle"),oi(t,"label"),oi(t,"labelLine"),oi(t,"upperLabel"),oi(t,"edgeLabel")}function Jn(t,e){var n=lb(t)&&t[e],r=lb(n)&&n.textStyle;if(r){process.env.NODE_ENV!=="production"&&Pa("textStyle hierarchy in "+e+" has been removed since 4.0. All textStyle properties are configured in "+e+" directly now.");for(var i=0,o=X9.length;i<o;i++){var a=X9[i];r.hasOwnProperty(a)&&(n[a]=r[a])}}}function oa(t){t&&(E0(t),Jn(t,"label"),t.emphasis&&Jn(t.emphasis,"label"))}function WUe(t){if(lb(t)){OE(t),E0(t),Jn(t,"label"),Jn(t,"upperLabel"),Jn(t,"edgeLabel"),t.emphasis&&(Jn(t.emphasis,"label"),Jn(t.emphasis,"upperLabel"),Jn(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(OE(e),oa(e));var n=t.markLine;n&&(OE(n),oa(n));var r=t.markArea;r&&oa(r);var i=t.data;if(t.type==="graph"){i=i||t.nodes;var o=t.links||t.edges;if(o&&!di(o))for(var a=0;a<o.length;a++)oa(o[a]);V(t.categories,function(u){E0(u)})}if(i&&!di(i))for(var a=0;a<i.length;a++)oa(i[a]);if(e=t.markPoint,e&&e.data)for(var s=e.data,a=0;a<s.length;a++)oa(s[a]);if(n=t.markLine,n&&n.data)for(var l=n.data,a=0;a<l.length;a++)ve(l[a])?(oa(l[a][0]),oa(l[a][1])):oa(l[a]);t.type==="gauge"?(Jn(t,"axisLabel"),Jn(t,"title"),Jn(t,"detail")):t.type==="treemap"?(oi(t.breadcrumb,"itemStyle"),V(t.levels,function(u){E0(u)})):t.type==="tree"&&E0(t.leaves)}}function Dl(t){return ve(t)?t:t?[t]:[]}function jH(t){return(ve(t)?t[0]:t)||{}}function QUe(t,e){qo(Dl(t.series),function(r){lb(r)&&WUe(r)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),qo(n,function(r){qo(Dl(t[r]),function(i){i&&(Jn(i,"axisLabel"),Jn(i.axisPointer,"label"))})}),qo(Dl(t.parallel),function(r){var i=r&&r.parallelAxisDefault;Jn(i,"axisLabel"),Jn(i&&i.axisPointer,"label")}),qo(Dl(t.calendar),function(r){oi(r,"itemStyle"),Jn(r,"dayLabel"),Jn(r,"monthLabel"),Jn(r,"yearLabel")}),qo(Dl(t.radar),function(r){Jn(r,"name"),r.name&&r.axisName==null&&(r.axisName=r.name,delete r.name,process.env.NODE_ENV!=="production"&&Pa("name property in radar component has been changed to axisName")),r.nameGap!=null&&r.axisNameGap==null&&(r.axisNameGap=r.nameGap,delete r.nameGap,process.env.NODE_ENV!=="production"&&Pa("nameGap property in radar component has been changed to axisNameGap")),process.env.NODE_ENV!=="production"&&qo(r.indicator,function(i){i.text&&Un("text","name","radar.indicator")})}),qo(Dl(t.geo),function(r){lb(r)&&(oa(r),qo(Dl(r.regions),function(i){oa(i)}))}),qo(Dl(t.timeline),function(r){oa(r),oi(r,"label"),oi(r,"itemStyle"),oi(r,"controlStyle",!0);var i=r.data;ve(i)&&V(i,function(o){Qe(o)&&(oi(o,"label"),oi(o,"itemStyle"))})}),qo(Dl(t.toolbox),function(r){oi(r,"iconStyle"),qo(r.feature,function(i){oi(i,"iconStyle")})}),Jn(jH(t.axisPointer),"label"),Jn(jH(t.tooltip).axisPointer,"label")}function HUe(t,e){for(var n=e.split(","),r=t,i=0;i<n.length&&(r=r&&r[n[i]],r!=null);i++);return r}function GUe(t,e,n,r){for(var i=e.split(","),o=t,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 UH(t){t&&V(jUe,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var jUe=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],UUe=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],wE=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function Qm(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<wE.length;n++){var r=wE[n][1],i=wE[n][0];e[r]!=null&&(e[i]=e[r],process.env.NODE_ENV!=="production"&&Un(r,i))}}function ZH(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(process.env.NODE_ENV!=="production"&&Un("label.margin","label.edgeDistance","pie"),t.edgeDistance=t.margin)}function XH(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay,process.env.NODE_ENV!=="production"&&Un("downplay","blur","sunburst"))}function ZUe(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(process.env.NODE_ENV!=="production"&&Un("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),t.emphasis.focus="adjacency"))}function ile(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&ile(t[n].children,e)}function ole(t,e){QUe(t,e),t.series=nn(t.series),V(t.series,function(n){if(Qe(n)){var r=n.type;if(r==="line")n.clipOverflow!=null&&(n.clip=n.clipOverflow,process.env.NODE_ENV!=="production"&&Un("clipOverflow","clip","line"));else if(r==="pie"||r==="gauge"){n.clockWise!=null&&(n.clockwise=n.clockWise,process.env.NODE_ENV!=="production"&&Un("clockWise","clockwise")),ZH(n.label);var i=n.data;if(i&&!di(i))for(var o=0;o<i.length;o++)ZH(i[o]);n.hoverOffset!=null&&(n.emphasis=n.emphasis||{},(n.emphasis.scaleSize=null)&&(process.env.NODE_ENV!=="production"&&Un("hoverOffset","emphasis.scaleSize"),n.emphasis.scaleSize=n.hoverOffset))}else if(r==="gauge"){var a=HUe(n,"pointer.color");a!=null&&GUe(n,"itemStyle.color",a)}else if(r==="bar"){Qm(n),Qm(n.backgroundStyle),Qm(n.emphasis);var i=n.data;if(i&&!di(i))for(var o=0;o<i.length;o++)typeof i[o]=="object"&&(Qm(i[o]),Qm(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,process.env.NODE_ENV!=="production"&&Un("highlightPolicy","emphasis.focus","sunburst"))),XH(n),ile(n.data,XH)}else r==="graph"||r==="sankey"?ZUe(n):r==="map"&&(n.mapType&&!n.map&&(process.env.NODE_ENV!=="production"&&Un("mapType","map","map"),n.map=n.mapType),n.mapLocation&&(process.env.NODE_ENV!=="production"&&Pa("`mapLocation` is not used anymore."),Ge(n,n.mapLocation)));n.hoverAnimation!=null&&(n.emphasis=n.emphasis||{},n.emphasis&&n.emphasis.scale==null&&(process.env.NODE_ENV!=="production"&&Un("hoverAnimation","emphasis.scale"),n.emphasis.scale=n.hoverAnimation)),UH(n)}}),t.dataRange&&(t.visualMap=t.dataRange),V(UUe,function(n){var r=t[n];r&&(ve(r)||(r=[r]),V(r,function(i){UH(i)}))})}function XUe(t){var e=Be();t.eachSeries(function(n){var r=n.get("stack");if(r){var i=e.get(r)||e.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)}}),e.each(YUe)}function YUe(t){V(t,function(e,n){var r=[],i=[NaN,NaN],o=[e.stackResultDimension,e.stackedOverDimension],a=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";a.modify(o,function(u,c,f){var d=a.get(e.stackedDimension,f);if(isNaN(d))return i;var p,v;s?v=a.getRawIndex(f):p=a.get(e.stackedByDimension,f);for(var g=NaN,m=n-1;m>=0;m--){var y=t[m];if(s||(v=y.data.rawIndexOf(y.stackedByDimension,p)),v>=0){var b=y.data.getByRawIndex(y.stackResultDimension,v);if(l==="all"||l==="positive"&&b>0||l==="negative"&&b<0||l==="samesign"&&d>=0&&b>0||l==="samesign"&&d<=0&&b<0){d=VHe(d,b),g=b;break}}}return r[0]=d,r[1]=g,r})})}var kP=function(){function t(e){this.data=e.data||(e.sourceFormat===hl?{}:[]),this.sourceFormat=e.sourceFormat||qse,this.seriesLayoutBy=e.seriesLayoutBy||tl,this.startIndex=e.startIndex||0,this.dimensionsDetectedCount=e.dimensionsDetectedCount,this.metaRawOption=e.metaRawOption;var n=this.dimensionsDefine=e.dimensionsDefine;if(n)for(var r=0;r<n.length;r++){var i=n[r];i.type==null&&ele(this,r)===Br.Must&&(i.type="ordinal")}}return t}();function d5(t){return t instanceof kP}function jR(t,e,n){n=n||ale(t);var r=e.seriesLayoutBy,i=KUe(t,n,r,e.sourceHeader,e.dimensions),o=new kP({data:t,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:Ue(e)});return o}function h5(t){return new kP({data:t,sourceFormat:di(t)?Xl:Da})}function qUe(t){return new kP({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:Ue(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function ale(t){var e=qse;if(di(t))e=Xl;else if(ve(t)){t.length===0&&(e=hi);for(var n=0,r=t.length;n<r;n++){var i=t[n];if(i!=null){if(ve(i)||di(i)){e=hi;break}else if(Qe(i)){e=Ra;break}}}}else if(Qe(t)){for(var o in t)if(ke(t,o)&&Yr(t[o])){e=hl;break}}return e}function KUe(t,e,n,r,i){var o,a;if(!t)return{dimensionsDefine:YH(i),startIndex:a,dimensionsDetectedCount:o};if(e===hi){var s=t;r==="auto"||r==null?qH(function(u){u!=null&&u!=="-"&&(Ie(u)?a==null&&(a=1):a=0)},n,s,10):a=It(r)?r:r?1:0,!i&&a===1&&(i=[],qH(function(u,c){i[c]=u!=null?u+"":""},n,s,1/0)),o=i?i.length:n===Lg?s.length:s[0]?s[0].length:null}else if(e===Ra)i||(i=JUe(t));else if(e===hl)i||(i=[],V(t,function(u,c){i.push(c)}));else if(e===Da){var l=$g(t[0]);o=ve(l)&&l.length||1}else e===Xl&&process.env.NODE_ENV!=="production"&&je(!!i,"dimensions must be given if data is TypedArray.");return{startIndex:a,dimensionsDefine:YH(i),dimensionsDetectedCount:o}}function JUe(t){for(var e=0,n;e<t.length&&!(n=t[e++]););if(n)return bt(n)}function YH(t){if(t){var e=Be();return ye(t,function(n,r){n=Qe(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=e.get(i.name);return o?i.name+="-"+o.count++:e.set(i.name,{count:1}),i})}}function qH(t,e,n,r){if(e===Lg)for(var i=0;i<n.length&&i<r;i++)t(n[i]?n[i][0]:null,i);else for(var o=n[0]||[],i=0;i<o.length&&i<r;i++)t(o[i],i)}function sle(t){var e=t.sourceFormat;return e===Ra||e===hl}var Vf,zf,Ff,KH,JH,lle=function(){function t(e,n){var r=d5(e)?e:h5(e);this._source=r;var i=this._data=r.data;if(r.sourceFormat===Xl){if(process.env.NODE_ENV!=="production"&&n==null)throw new Error("Typed array data must specify dimension size");this._offset=0,this._dimSize=n,this._data=i}JH(this,i,r)}return t.prototype.getSource=function(){return this._source},t.prototype.count=function(){return 0},t.prototype.getItem=function(e,n){},t.prototype.appendData=function(e){},t.prototype.clean=function(){},t.protoInitialize=function(){var e=t.prototype;e.pure=!1,e.persistent=!0}(),t.internalField=function(){var e;JH=function(a,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,d=l.dimensionsDefine,p=KH[p5(u,c)];if(process.env.NODE_ENV!=="production"&&je(p,"Invalide sourceFormat: "+u),he(a,p),u===Xl)a.getItem=n,a.count=i,a.fillStorage=r;else{var v=ule(u,c);a.getItem=Re(v,null,s,f,d);var g=cle(u,c);a.count=Re(g,null,s,f,d)}};var n=function(a,s){a=a-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*a,f=0;f<u;f++)s[f]=l[c+f];return s},r=function(a,s,l,u){for(var c=this._data,f=this._dimSize,d=0;d<f;d++){for(var p=u[d],v=p[0]==null?1/0:p[0],g=p[1]==null?-1/0:p[1],m=s-a,y=l[d],b=0;b<m;b++){var O=c[b*f+d];y[a+b]=O,O<v&&(v=O),O>g&&(g=O)}p[0]=v,p[1]=g}},i=function(){return this._data?this._data.length/this._dimSize:0};KH=(e={},e[hi+"_"+tl]={pure:!0,appendData:o},e[hi+"_"+Lg]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Ra]={pure:!0,appendData:o},e[hl]={pure:!0,appendData:function(a){var s=this._data;V(a,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},e[Da]={appendData:o},e[Xl]={persistent:!1,pure:!0,appendData:function(a){process.env.NODE_ENV!=="production"&&je(di(a),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=a},clean:function(){this._offset+=this.count(),this._data=null}},e);function o(a){for(var s=0;s<a.length;s++)this._data.push(a[s])}}(),t}(),eG=function(t,e,n,r){return t[r]},eZe=(Vf={},Vf[hi+"_"+tl]=function(t,e,n,r){return t[r+e]},Vf[hi+"_"+Lg]=function(t,e,n,r,i){r+=e;for(var o=i||[],a=t,s=0;s<a.length;s++){var l=a[s];o[s]=l?l[r]:null}return o},Vf[Ra]=eG,Vf[hl]=function(t,e,n,r,i){for(var o=i||[],a=0;a<n.length;a++){var s=n[a].name;if(process.env.NODE_ENV!=="production"&&s==null)throw new Error;var l=t[s];o[a]=l?l[r]:null}return o},Vf[Da]=eG,Vf);function ule(t,e){var n=eZe[p5(t,e)];return process.env.NODE_ENV!=="production"&&je(n,'Do not support get item on "'+t+'", "'+e+'".'),n}var tG=function(t,e,n){return t.length},tZe=(zf={},zf[hi+"_"+tl]=function(t,e,n){return Math.max(0,t.length-e)},zf[hi+"_"+Lg]=function(t,e,n){var r=t[0];return r?Math.max(0,r.length-e):0},zf[Ra]=tG,zf[hl]=function(t,e,n){var r=n[0].name;if(process.env.NODE_ENV!=="production"&&r==null)throw new Error;var i=t[r];return i?i.length:0},zf[Da]=tG,zf);function cle(t,e){var n=tZe[p5(t,e)];return process.env.NODE_ENV!=="production"&&je(n,'Do not support count on "'+t+'", "'+e+'".'),n}var xE=function(t,e,n){return t[e]},nZe=(Ff={},Ff[hi]=xE,Ff[Ra]=function(t,e,n){return t[n]},Ff[hl]=xE,Ff[Da]=function(t,e,n){var r=$g(t);return r instanceof Array?r[e]:r},Ff[Xl]=xE,Ff);function fle(t){var e=nZe[t];return process.env.NODE_ENV!=="production"&&je(e,'Do not support get value on "'+t+'".'),e}function p5(t,e){return t===hi?t+"_"+e:t}function tg(t,e,n){if(t){var r=t.getRawDataItem(e);if(r!=null){var i=t.getStore(),o=i.getSource().sourceFormat;if(n!=null){var a=t.getDimensionIndex(n),s=i.getDimensionProperty(a);return fle(o)(r,a,s)}else{var l=r;return o===Da&&(l=$g(r)),l}}}}var rZe=/\{@(.+?)\}/g,NP=function(){function t(){}return t.prototype.getDataParams=function(e,n){var r=this.getData(n),i=this.getRawValue(e,n),o=r.getRawIndex(e),a=r.getName(e),s=r.getRawDataItem(e),l=r.getItemVisual(e,"style"),u=l&&l[r.getItemVisual(e,"drawType")||"fill"],c=l&&l.stroke,f=this.mainType,d=f==="series",p=r.userOutput&&r.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:a,dataIndex:o,data:s,dataType:n,value:i,color:u,borderColor:c,dimensionNames:p?p.fullDimensions:null,encode:p?p.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,n,r,i,o,a){n=n||"normal";var s=this.getData(r),l=this.getDataParams(e,r);if(a&&(l.value=a.interpolatedValue),i!=null&&ve(l.value)&&(l.value=l.value[i]),!o){var u=s.getItemModel(e);o=u.get(n==="normal"?["label","formatter"]:[n,"label","formatter"])}if(Fe(o))return l.status=n,l.dimensionIndex=i,o(l);if(Ie(o)){var c=a5(o,l);return c.replace(rZe,function(f,d){var p=d.length,v=d;v.charAt(0)==="["&&v.charAt(p-1)==="]"&&(v=+v.slice(1,p-1),process.env.NODE_ENV!=="production"&&isNaN(v)&&qr("Invalide label formatter: @"+d+", only support @[0], @[1], @[2], ..."));var g=tg(s,e,v);if(a&&ve(a.interpolatedValue)){var m=s.getDimensionIndex(v);m>=0&&(g=a.interpolatedValue[m])}return g!=null?g+"":""})}},t.prototype.getRawValue=function(e,n){return tg(this.getData(n),e)},t.prototype.formatTooltip=function(e,n,r){},t}();function nG(t){var e,n;return Qe(t)?t.type?n=t:process.env.NODE_ENV!=="production"&&console.warn("The return type of `formatTooltip` is not supported: "+Ri(t)):e=t,{text:e,frag:n}}function gy(t){return new iZe(t)}var iZe=function(){function t(e){e=e||{},this._reset=e.reset,this._plan=e.plan,this._count=e.count,this._onDirty=e.onDirty,this._dirty=!0}return t.prototype.perform=function(e){var n=this._upstream,r=e&&e.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(e&&e.modBy),u=e&&e.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 d=e&&e.step;if(n?(process.env.NODE_ENV!=="production"&&je(n._outputDueEnd!=null),this._dueEnd=n._outputDueEnd):(process.env.NODE_ENV!=="production"&&je(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var p=this._dueIndex,v=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!r&&(f||p<v)){var g=this._progress;if(ve(g))for(var m=0;m<g.length;m++)this._doProgress(g[m],p,v,l,u);else this._doProgress(g,p,v,l,u)}this._dueIndex=v;var y=this._settedOutputEnd!=null?this._settedOutputEnd:v;process.env.NODE_ENV!=="production"&&je(y>=this._outputDueEnd),this._outputDueEnd=y}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()},t.prototype.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)},t.prototype._doProgress=function(e,n,r,i,o){rG.reset(n,r,i,o),this._callingProgress=e,this._callingProgress({start:n,end:r,count:r-n,next:rG.next},this.context)},t.prototype._doReset=function(e){this._dueIndex=this._outputDueEnd=this._dueEnd=0,this._settedOutputEnd=null;var n,r;!e&&this._reset&&(n=this._reset(this.context),n&&n.progress&&(r=n.forceFirstProgress,n=n.progress),ve(n)&&!n.length&&(n=null)),this._progress=n,this._modBy=this._modDataCount=null;var i=this._downstream;return i&&i.dirty(),r},t.prototype.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},t.prototype.pipe=function(e){process.env.NODE_ENV!=="production"&&je(e&&!e._disposed&&e!==this),(this._downstream!==e||this._dirty)&&(this._downstream=e,e._upstream=this,e.dirty())},t.prototype.dispose=function(){this._disposed||(this._upstream&&(this._upstream._downstream=null),this._downstream&&(this._downstream._upstream=null),this._dirty=!1,this._disposed=!0)},t.prototype.getUpstream=function(){return this._upstream},t.prototype.getDownstream=function(){return this._downstream},t.prototype.setOutputEnd=function(e){this._outputDueEnd=this._settedOutputEnd=e},t}(),rG=function(){var t,e,n,r,i,o={reset:function(l,u,c,f){e=l,t=u,n=c,r=f,i=Math.ceil(r/n),o.next=n>1&&r>0?s:a}};return o;function a(){return e<t?e++:null}function s(){var l=e%i*n+Math.ceil(e/i),u=e>=t?null:l<r?l:e;return e++,u}}();function xc(t,e){var n=e&&e.type;return n==="ordinal"?t:(n==="time"&&!It(t)&&t!=null&&t!=="-"&&(t=+Bo(t)),t==null||t===""?NaN:Number(t))}var oZe=Be({number:function(t){return parseFloat(t)},time:function(t){return+Bo(t)},trim:function(t){return Ie(t)?pa(t):t}});function dle(t){return oZe.get(t)}var hle={lt:function(t,e){return t<e},lte:function(t,e){return t<=e},gt:function(t,e){return t>e},gte:function(t,e){return t>=e}},aZe=function(){function t(e,n){if(!It(n)){var r="";process.env.NODE_ENV!=="production"&&(r='rvalue of "<", ">", "<=", ">=" can only be number in filter.'),Qt(r)}this._opFn=hle[e],this._rvalFloat=ul(n)}return t.prototype.evaluate=function(e){return It(e)?this._opFn(e,this._rvalFloat):this._opFn(ul(e),this._rvalFloat)},t}(),ple=function(){function t(e,n){var r=e==="desc";this._resultLT=r?1:-1,n==null&&(n=r?"min":"max"),this._incomparable=n==="min"?-1/0:1/0}return t.prototype.evaluate=function(e,n){var r=It(e)?e:ul(e),i=It(n)?n:ul(n),o=isNaN(r),a=isNaN(i);if(o&&(r=this._incomparable),a&&(i=this._incomparable),o&&a){var s=Ie(e),l=Ie(n);s&&(r=l?e:0),l&&(i=s?n:0)}return r<i?this._resultLT:r>i?-this._resultLT:0},t}(),sZe=function(){function t(e,n){this._rval=n,this._isEQ=e,this._rvalTypeof=typeof n,this._rvalFloat=ul(n)}return t.prototype.evaluate=function(e){var n=e===this._rval;if(!n){var r=typeof e;r!==this._rvalTypeof&&(r==="number"||this._rvalTypeof==="number")&&(n=ul(e)===this._rvalFloat)}return this._isEQ?n:!n},t}();function lZe(t,e){return t==="eq"||t==="ne"?new sZe(t==="eq",e):ke(hle,t)?new aZe(t,e):null}var uZe=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(e){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(e){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(e,n){},t.prototype.retrieveValueFromItem=function(e,n){},t.prototype.convertValue=function(e,n){return xc(e,n)},t}();function cZe(t,e){var n=new uZe,r=t.data,i=n.sourceFormat=t.sourceFormat,o=t.startIndex,a="";t.seriesLayoutBy!==tl&&(process.env.NODE_ENV!=="production"&&(a='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),Qt(a));var s=[],l={},u=t.dimensionsDefine;if(u)V(u,function(g,m){var y=g.name,b={index:m,name:y,displayName:g.displayName};if(s.push(b),y!=null){var O="";ke(l,y)&&(process.env.NODE_ENV!=="production"&&(O='dimension name "'+y+'" duplicated.'),Qt(O)),l[y]=b}});else for(var c=0;c<t.dimensionsDetectedCount;c++)s.push({index:c});var f=ule(i,tl);e.__isBuiltIn&&(n.getRawDataItem=function(g){return f(r,o,s,g)},n.getRawData=Re(fZe,null,t)),n.cloneRawData=Re(dZe,null,t);var d=cle(i,tl);n.count=Re(d,null,r,o,s);var p=fle(i);n.retrieveValue=function(g,m){var y=f(r,o,s,g);return v(y,m)};var v=n.retrieveValueFromItem=function(g,m){if(g!=null){var y=s[m];if(y)return p(g,m,y.name)}};return n.getDimensionInfo=Re(hZe,null,s,l),n.cloneAllDimensionInfo=Re(pZe,null,s),n}function fZe(t){var e=t.sourceFormat;if(!v5(e)){var n="";process.env.NODE_ENV!=="production"&&(n="`getRawData` is not supported in source format "+e),Qt(n)}return t.data}function dZe(t){var e=t.sourceFormat,n=t.data;if(!v5(e)){var r="";process.env.NODE_ENV!=="production"&&(r="`cloneRawData` is not supported in source format "+e),Qt(r)}if(e===hi){for(var i=[],o=0,a=n.length;o<a;o++)i.push(n[o].slice());return i}else if(e===Ra){for(var i=[],o=0,a=n.length;o<a;o++)i.push(he({},n[o]));return i}}function hZe(t,e,n){if(n!=null){if(It(n)||!isNaN(n)&&!ke(e,n))return t[n];if(ke(e,n))return e[n]}}function pZe(t){return Ue(t)}var vle=Be();function vZe(t){t=Ue(t);var e=t.type,n="";e||(process.env.NODE_ENV!=="production"&&(n="Must have a `type` when `registerTransform`."),Qt(n));var r=e.split(":");r.length!==2&&(process.env.NODE_ENV!=="production"&&(n='Name must include namespace like "ns:regression".'),Qt(n));var i=!1;r[0]==="echarts"&&(e=r[1],i=!0),t.__isBuiltIn=i,vle.set(e,t)}function gZe(t,e,n){var r=nn(t),i=r.length,o="";i||(process.env.NODE_ENV!=="production"&&(o="If `transform` declared, it should at least contain one transform."),Qt(o));for(var a=0,s=i;a<s;a++){var l=r[a];e=mZe(l,e,n,i===1?null:a),a!==s-1&&(e.length=Math.max(e.length,1))}return e}function mZe(t,e,n,r){var i="";e.length||(process.env.NODE_ENV!=="production"&&(i="Must have at least one upstream dataset."),Qt(i)),Qe(t)||(process.env.NODE_ENV!=="production"&&(i="transform declaration must be an object rather than "+typeof t+"."),Qt(i));var o=t.type,a=vle.get(o);a||(process.env.NODE_ENV!=="production"&&(i='Can not find transform on type "'+o+'".'),Qt(i));var s=ye(e,function(c){return cZe(c,a)}),l=nn(a.transform({upstream:s[0],upstreamList:s,config:Ue(t.config)}));if(process.env.NODE_ENV!=="production"&&t.print){var u=ye(l,function(c){var f=r!=null?" === pipe index: "+r:"";return["=== dataset index: "+n.datasetIndex+f+" ===","- transform result data:",Ri(c.data),"- transform result dimensions:",Ri(c.dimensions)].join(`
  340. `)}).join(`
  341. `);QHe(u)}return ye(l,function(c,f){var d="";Qe(c)||(process.env.NODE_ENV!=="production"&&(d="A transform should not return some empty results."),Qt(d)),c.data||(process.env.NODE_ENV!=="production"&&(d="Transform result data should be not be null or undefined"),Qt(d));var p=ale(c.data);v5(p)||(process.env.NODE_ENV!=="production"&&(d="Transform result data should be array rows or object rows."),Qt(d));var v,g=e[0];if(g&&f===0&&!c.dimensions){var m=g.startIndex;m&&(c.data=g.data.slice(0,m).concat(c.data)),v={seriesLayoutBy:tl,sourceHeader:m,dimensions:g.metaRawOption.dimensions}}else v={seriesLayoutBy:tl,sourceHeader:0,dimensions:c.dimensions};return jR(c.data,v,null)})}function v5(t){return t===hi||t===Ra}var LP="undefined",yZe=typeof Uint32Array===LP?Array:Uint32Array,bZe=typeof Uint16Array===LP?Array:Uint16Array,gle=typeof Int32Array===LP?Array:Int32Array,iG=typeof Float64Array===LP?Array:Float64Array,mle={float:iG,int:gle,ordinal:Array,number:Array,time:iG},SE;function Hm(t){return t>65535?yZe:bZe}function gp(){return[1/0,-1/0]}function _Ze(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function oG(t,e,n,r,i){var o=mle[n||"float"];if(i){var a=t[e],s=a&&a.length;if(s!==r){for(var l=new o(r),u=0;u<s;u++)l[u]=a[u];t[e]=l}}else t[e]=new o(r)}var UR=function(){function t(){this._chunks=[],this._rawExtent=[],this._extent=[],this._count=0,this._rawCount=0,this._calcDimNameToIdx=Be()}return t.prototype.initData=function(e,n,r){process.env.NODE_ENV!=="production"&&je(Fe(e.getItem)&&Fe(e.count),"Invalid data provider."),this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),o=this.defaultDimValueGetter=SE[i.sourceFormat];this._dimValueGetter=r||o,this._rawExtent=[];var a=sle(i);this._dimensions=ye(n,function(s){return process.env.NODE_ENV!=="production"&&a&&je(s.property!=null),{type:s.type,property:s.property}}),this._initDataFromProvider(0,e.count())},t.prototype.getProvider=function(){return this._provider},t.prototype.getSource=function(){return this._provider.getSource()},t.prototype.ensureCalculationDimension=function(e,n){var r=this._calcDimNameToIdx,i=this._dimensions,o=r.get(e);if(o!=null){if(i[o].type===n)return o}else o=i.length;return i[o]={type:n},r.set(e,o),this._chunks[o]=new mle[n||"float"](this._rawCount),this._rawExtent[o]=gp(),o},t.prototype.collectOrdinalMeta=function(e,n){var r=this._chunks[e],i=this._dimensions[e],o=this._rawExtent,a=i.ordinalOffset||0,s=r.length;a===0&&(o[e]=gp());for(var l=o[e],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"},t.prototype.getOrdinalMeta=function(e){var n=this._dimensions[e],r=n.ordinalMeta;return r},t.prototype.getDimensionProperty=function(e){var n=this._dimensions[e];return n&&n.property},t.prototype.appendData=function(e){process.env.NODE_ENV!=="production"&&je(!this._indices,"appendData can only be called on raw data.");var n=this._provider,r=this.count();n.appendData(e);var i=n.count();return n.persistent||(i+=r),r<i&&this._initDataFromProvider(r,i,!0),[r,i]},t.prototype.appendValues=function(e,n){for(var r=this._chunks,i=this._dimensions,o=i.length,a=this._rawExtent,s=this.count(),l=s+Math.max(e.length,n||0),u=0;u<o;u++){var c=i[u];oG(r,u,c.type,l,!0)}for(var f=[],d=s;d<l;d++)for(var p=d-s,v=0;v<o;v++){var c=i[v],g=SE.arrayRows.call(this,e[p]||f,c.property,p,v);r[v][d]=g;var m=a[v];g<m[0]&&(m[0]=g),g>m[1]&&(m[1]=g)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,n,r){for(var i=this._provider,o=this._chunks,a=this._dimensions,s=a.length,l=this._rawExtent,u=ye(a,function(b){return b.property}),c=0;c<s;c++){var f=a[c];l[c]||(l[c]=gp()),oG(o,c,f.type,n,r)}if(i.fillStorage)i.fillStorage(e,n,o,l);else for(var d=[],p=e;p<n;p++){d=i.getItem(p,d);for(var v=0;v<s;v++){var g=o[v],m=this._dimValueGetter(d,u[v],p,v);g[p]=m;var y=l[v];m<y[0]&&(y[0]=m),m>y[1]&&(y[1]=m)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=n,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(e,n){if(!(n>=0&&n<this._count))return NaN;var r=this._chunks[e];return r?r[this.getRawIndex(n)]:NaN},t.prototype.getValues=function(e,n){var r=[],i=[];if(n==null){n=e,e=[];for(var o=0;o<this._dimensions.length;o++)i.push(o)}else i=e;for(var o=0,a=i.length;o<a;o++)r.push(this.get(i[o],n));return r},t.prototype.getByRawIndex=function(e,n){if(!(n>=0&&n<this._rawCount))return NaN;var r=this._chunks[e];return r?r[n]:NaN},t.prototype.getSum=function(e){var n=this._chunks[e],r=0;if(n)for(var i=0,o=this.count();i<o;i++){var a=this.get(e,i);isNaN(a)||(r+=a)}return r},t.prototype.getMedian=function(e){var n=[];this.each([e],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},t.prototype.indexOfRawIndex=function(e){if(e>=this._rawCount||e<0)return-1;if(!this._indices)return e;var n=this._indices,r=n[e];if(r!=null&&r<this._count&&r===e)return e;for(var i=0,o=this._count-1;i<=o;){var a=(i+o)/2|0;if(n[a]<e)i=a+1;else if(n[a]>e)o=a-1;else return a}return-1},t.prototype.indicesOfNearest=function(e,n,r){var i=this._chunks,o=i[e],a=[];if(!o)return a;r==null&&(r=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c<f;c++){var d=this.getRawIndex(c),p=n-o[d],v=Math.abs(p);v<=r&&((v<s||v===s&&p>=0&&l<0)&&(s=v,l=p,u=0),p===l&&(a[u++]=c))}return a.length=u,a},t.prototype.getIndices=function(){var e,n=this._indices;if(n){var r=n.constructor,i=this._count;if(r===Array){e=new r(i);for(var o=0;o<i;o++)e[o]=n[o]}else e=new r(n.buffer,0,i)}else{var r=Hm(this._rawCount);e=new r(this.count());for(var o=0;o<e.length;o++)e[o]=o}return e},t.prototype.filter=function(e,n){if(!this._count)return this;for(var r=this.clone(),i=r.count(),o=Hm(r._rawCount),a=new o(i),s=[],l=e.length,u=0,c=e[0],f=r._chunks,d=0;d<i;d++){var p=void 0,v=r.getRawIndex(d);if(l===0)p=n(d);else if(l===1){var g=f[c][v];p=n(g,d)}else{for(var m=0;m<l;m++)s[m]=f[e[m]][v];s[m]=d,p=n.apply(null,s)}p&&(a[u++]=v)}return u<i&&(r._indices=a),r._count=u,r._extent=[],r._updateGetRawIdx(),r},t.prototype.selectRange=function(e){var n=this.clone(),r=n._count;if(!r)return this;var i=bt(e),o=i.length;if(!o)return this;var a=n.count(),s=Hm(n._rawCount),l=new s(a),u=0,c=i[0],f=e[c][0],d=e[c][1],p=n._chunks,v=!1;if(!n._indices){var g=0;if(o===1){for(var m=p[i[0]],y=0;y<r;y++){var b=m[y];(b>=f&&b<=d||isNaN(b))&&(l[u++]=g),g++}v=!0}else if(o===2){for(var m=p[i[0]],O=p[i[1]],w=e[i[1]][0],x=e[i[1]][1],y=0;y<r;y++){var b=m[y],S=O[y];(b>=f&&b<=d||isNaN(b))&&(S>=w&&S<=x||isNaN(S))&&(l[u++]=g),g++}v=!0}}if(!v)if(o===1)for(var y=0;y<a;y++){var T=n.getRawIndex(y),b=p[i[0]][T];(b>=f&&b<=d||isNaN(b))&&(l[u++]=T)}else for(var y=0;y<a;y++){for(var $=!0,T=n.getRawIndex(y),A=0;A<o;A++){var P=i[A],b=p[P][T];(b<e[P][0]||b>e[P][1])&&($=!1)}$&&(l[u++]=n.getRawIndex(y))}return u<a&&(n._indices=l),n._count=u,n._extent=[],n._updateGetRawIdx(),n},t.prototype.map=function(e,n){var r=this.clone(e);return this._updateDims(r,e,n),r},t.prototype.modify=function(e,n){this._updateDims(this,e,n)},t.prototype._updateDims=function(e,n,r){for(var i=e._chunks,o=[],a=n.length,s=e.count(),l=[],u=e._rawExtent,c=0;c<n.length;c++)u[n[c]]=gp();for(var f=0;f<s;f++){for(var d=e.getRawIndex(f),p=0;p<a;p++)l[p]=i[n[p]][d];l[a]=f;var v=r&&r.apply(null,l);if(v!=null){typeof v!="object"&&(o[0]=v,v=o);for(var c=0;c<v.length;c++){var g=n[c],m=v[c],y=u[g],b=i[g];b&&(b[d]=m),m<y[0]&&(y[0]=m),m>y[1]&&(y[1]=m)}}}},t.prototype.lttbDownSample=function(e,n){var r=this.clone([e],!0),i=r._chunks,o=i[e],a=this.count(),s=0,l=Math.floor(1/n),u=this.getRawIndex(0),c,f,d,p=new(Hm(this._rawCount))(Math.min((Math.ceil(a/l)+2)*2,a));p[s++]=u;for(var v=1;v<a-1;v+=l){for(var g=Math.min(v+l,a-1),m=Math.min(v+l*2,a),y=(m+g)/2,b=0,O=g;O<m;O++){var w=this.getRawIndex(O),x=o[w];isNaN(x)||(b+=x)}b/=m-g;var S=v,T=Math.min(v+l,a),$=v-1,A=o[u];c=-1,d=S;for(var P=-1,M=0,O=S;O<T;O++){var w=this.getRawIndex(O),x=o[w];if(isNaN(x)){M++,P<0&&(P=w);continue}f=Math.abs(($-y)*(x-A)-($-O)*(b-A)),f>c&&(c=f,d=w)}M>0&&M<T-S&&(p[s++]=Math.min(P,d),d=Math.max(P,d)),p[s++]=d,u=d}return p[s++]=this.getRawIndex(a-1),r._count=s,r._indices=p,r.getRawIndex=this._getRawIdx,r},t.prototype.downSample=function(e,n,r,i){for(var o=this.clone([e],!0),a=o._chunks,s=[],l=Math.floor(1/n),u=a[e],c=this.count(),f=o._rawExtent[e]=gp(),d=new(Hm(this._rawCount))(Math.ceil(c/l)),p=0,v=0;v<c;v+=l){l>c-v&&(l=c-v,s.length=l);for(var g=0;g<l;g++){var m=this.getRawIndex(v+g);s[g]=u[m]}var y=r(s),b=this.getRawIndex(Math.min(v+i(s,y)||0,c-1));u[b]=y,y<f[0]&&(f[0]=y),y>f[1]&&(f[1]=y),d[p++]=b}return o._count=p,o._indices=d,o._updateGetRawIdx(),o},t.prototype.each=function(e,n){if(this._count)for(var r=e.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[e[0]][s],o);break;case 2:n(i[e[0]][s],i[e[1]][s],o);break;default:for(var l=0,u=[];l<r;l++)u[l]=i[e[l]][s];u[l]=o,n.apply(null,u)}}},t.prototype.getDataExtent=function(e){var n=this._chunks[e],r=gp();if(!n)return r;var i=this.count(),o=!this._indices,a;if(o)return this._rawExtent[e].slice();if(a=this._extent[e],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[e]=a,a},t.prototype.getRawDataItem=function(e){var n=this.getRawIndex(e);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},t.prototype.clone=function(e,n){var r=new t,i=this._chunks,o=e&&Ta(e,function(s,l){return s[l]=!0,s},{});if(o)for(var a=0;a<i.length;a++)r._chunks[a]=o[a]?_Ze(i[a]):i[a];else r._chunks=i;return this._copyCommonProps(r),n||(r._indices=this._cloneIndices()),r._updateGetRawIdx(),r},t.prototype._copyCommonProps=function(e){e._count=this._count,e._rawCount=this._rawCount,e._provider=this._provider,e._dimensions=this._dimensions,e._extent=Ue(this._extent),e._rawExtent=Ue(this._rawExtent)},t.prototype._cloneIndices=function(){if(this._indices){var e=this._indices.constructor,n=void 0;if(e===Array){var r=this._indices.length;n=new e(r);for(var i=0;i<r;i++)n[i]=this._indices[i]}else n=new e(this._indices);return n}return null},t.prototype._getRawIdxIdentity=function(e){return e},t.prototype._getRawIdx=function(e){return e<this._count&&e>=0?this._indices[e]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function e(n,r,i,o){return xc(n[o],this._dimensions[o])}SE={arrayRows:e,objectRows:function(n,r,i,o){return xc(n[r],this._dimensions[o])},keyedColumns:e,original:function(n,r,i,o){var a=n&&(n.value==null?n:n.value);return xc(a instanceof Array?a[o]:a,this._dimensions[o])},typedArray:function(n,r,i,o){return n[o]}}}(),t}(),yle=function(){function t(e){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=e}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(e,n){this._sourceList=e,this._upstreamSignList=n,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var e=this._sourceHost,n=this._getUpstreamSourceManagers(),r=!!n.length,i,o;if(Gm(e)){var a=e,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=di(s)?Xl:Da,o=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},p=Je(f.seriesLayoutBy,d.seriesLayoutBy)||null,v=Je(f.sourceHeader,d.sourceHeader),g=Je(f.dimensions,d.dimensions),m=p!==d.seriesLayoutBy||!!v!=!!d.sourceHeader||g;i=m?[jR(s,{seriesLayoutBy:p,sourceHeader:v,dimensions:g},l)]:[]}else{var y=e;if(r){var b=this._applyTransform(n);i=b.sourceList,o=b.upstreamSignList}else{var O=y.get("source",!0);i=[jR(O,this._getSourceMetaRawOption(),null)],o=[]}}process.env.NODE_ENV!=="production"&&je(i&&o),this._setLocalSource(i,o)},t.prototype._applyTransform=function(e){var n=this._sourceHost,r=n.get("transform",!0),i=n.get("fromTransformResult",!0);if(process.env.NODE_ENV!=="production"&&je(i!=null||r!=null),i!=null){var o="";e.length!==1&&(process.env.NODE_ENV!=="production"&&(o="When using `fromTransformResult`, there should be only one upstream dataset"),sG(o))}var a,s=[],l=[];return V(e,function(u){u.prepareSource();var c=u.getSource(i||0),f="";i!=null&&!c&&(process.env.NODE_ENV!=="production"&&(f="Can not retrieve result by `fromTransformResult`: "+i),sG(f)),s.push(c),l.push(u._getVersionSign())}),r?a=gZe(r,s,{datasetIndex:n.componentIndex}):i!=null&&(a=[qUe(s[0])]),{sourceList:a,upstreamSignList:l}},t.prototype._isDirty=function(){if(this._dirty)return!0;for(var e=this._getUpstreamSourceManagers(),n=0;n<e.length;n++){var r=e[n];if(r._isDirty()||this._upstreamSignList[n]!==r._getVersionSign())return!0}},t.prototype.getSource=function(e){e=e||0;var n=this._sourceList[e];if(!n){var r=this._getUpstreamSourceManagers();return r[0]&&r[0].getSource(e)}return n},t.prototype.getSharedDataStore=function(e){process.env.NODE_ENV!=="production"&&je(Gm(this._sourceHost),"Can only call getDataStore on series source manager.");var n=e.makeStoreSchema();return this._innerGetDataStore(n.dimensions,e.source,n.hash)},t.prototype._innerGetDataStore=function(e,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];Gm(this._sourceHost)&&l?s=l._innerGetDataStore(e,n,r):(s=new UR,s.initData(new lle(n,e.length),e)),a[r]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Gm(e)){var n=u5(e);return n?[n.getSourceManager()]:[]}else return ye(SUe(e),function(r){return r.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,n,r,i;if(Gm(e))n=e.get("seriesLayoutBy",!0),r=e.get("sourceHeader",!0),i=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var o=e;n=o.get("seriesLayoutBy",!0),r=o.get("sourceHeader",!0),i=o.get("dimensions",!0)}return{seriesLayoutBy:n,sourceHeader:r,dimensions:i}},t}();function aG(t){var e=t.option.transform;e&&Yy(t.option.transform)}function Gm(t){return t.mainType==="series"}function sG(t){throw new Error(t)}var ble="line-height:1";function _le(t,e){var n=t.color||"#6e7079",r=t.fontSize||12,i=t.fontWeight||"400",o=t.color||"#464646",a=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+Si(r+"")+"px;color:"+Si(n)+";font-weight:"+Si(i+""),valueStyle:"font-size:"+Si(a+"")+"px;color:"+Si(o)+";font-weight:"+Si(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:a,fill:o,fontWeight:s}}}var OZe=[0,10,20,30],wZe=["",`
  342. `,`
  343. `,`
  344. `];function Tr(t,e){return e.type=t,e}function ZR(t){return t.type==="section"}function Ole(t){return ZR(t)?xZe:SZe}function wle(t){if(ZR(t)){var e=0,n=t.blocks.length,r=n>1||n>0&&!t.noHeader;return V(t.blocks,function(i){var o=wle(i);o>=e&&(e=o+ +(r&&(!o||ZR(i)&&!i.noHeader)))}),e}return 0}function xZe(t,e,n,r){var i=e.noHeader,o=CZe(wle(e)),a=[],s=e.blocks||[];je(!s||ve(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(ke(u,l)){var c=new ple(u[l],null);s.sort(function(v,g){return c.evaluate(v.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}V(s,function(v,g){var m=e.valueFormatter,y=Ole(v)(m?he(he({},t),{valueFormatter:m}):t,v,g>0?o.html:0,r);y!=null&&a.push(y)});var f=t.renderMode==="richText"?a.join(o.richText):XR(a.join(""),i?n:o.html);if(i)return f;var d=WR(e.header,"ordinal",t.useUTC),p=_le(r,t.renderMode).nameStyle;return t.renderMode==="richText"?xle(t,d,p)+o.richText+f:XR('<div style="'+p+";"+ble+';">'+Si(d)+"</div>"+f,n)}function SZe(t,e,n,r){var i=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(w){return w=ve(w)?w:[w],ye(w,function(x,S){return WR(x,ve(p)?p[S]:p,u)})};if(!(o&&a)){var f=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),d=o?"":WR(l,"ordinal",u),p=e.valueType,v=a?[]:c(e.value,e.dataIndex),g=!s||!o,m=!s&&o,y=_le(r,i),b=y.nameStyle,O=y.valueStyle;return i==="richText"?(s?"":f)+(o?"":xle(t,d,b))+(a?"":$Ze(t,v,g,m,O)):XR((s?"":f)+(o?"":TZe(d,!s,b))+(a?"":PZe(v,g,m,O)),n)}}function lG(t,e,n,r,i,o){if(t){var a=Ole(t),s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter};return a(s,t,0,o)}}function CZe(t){return{html:OZe[t],richText:wZe[t]}}function XR(t,e){var n='<div style="clear:both"></div>',r="margin: "+e+"px 0 0";return'<div style="'+r+";"+ble+';">'+t+n+"</div>"}function TZe(t,e,n){var r=e?"margin-left:2px":"";return'<span style="'+n+";"+r+'">'+Si(t)+"</span>"}function PZe(t,e,n,r){var i=n?"10px":"20px",o=e?"float:right;margin-left:"+i:"";return t=ve(t)?t:[t],'<span style="'+o+";"+r+'">'+ye(t,function(a){return Si(a)}).join("&nbsp;&nbsp;")+"</span>"}function xle(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function $Ze(t,e,n,r,i){var o=[i],a=r?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(ve(e)?e.join(" "):e,o)}function Sle(t,e){var n=t.getData().getItemVisual(e,"style"),r=n[t.visualDrawType];return fh(r)}function Cle(t,e){var n=t.get("padding");return n??(e==="richText"?[8,10]:10)}var CE=function(){function t(){this.richTextStyles={},this._nextStyleNameId=Mae()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,n,r){var i=r==="richText"?this._generateStyleName():null,o=Use({color:n,type:e,renderMode:r,markerId:i});return Ie(o)?o:(process.env.NODE_ENV!=="production"&&je(i),this.richTextStyles[i]=o.style,o.content)},t.prototype.wrapRichTextStyle=function(e,n){var r={};ve(n)?V(n,function(o){return he(r,o)}):he(r,n);var i=this._generateStyleName();return this.richTextStyles[i]=r,"{"+i+"|"+e+"}"},t}();function Tle(t){var e=t.series,n=t.dataIndex,r=t.multipleSeries,i=e.getData(),o=i.mapDimensionsAll("defaultedTooltip"),a=o.length,s=e.getRawValue(n),l=ve(s),u=Sle(e,n),c,f,d,p;if(a>1||l&&!a){var v=AZe(s,e,n,o,u);c=v.inlineValues,f=v.inlineValueTypes,d=v.blocks,p=v.inlineValues[0]}else if(a){var g=i.getDimensionInfo(o[0]);p=c=tg(i,n,o[0]),f=g.type}else p=c=l?s[0]:s;var m=k8(e),y=m&&e.name||"",b=i.getName(n),O=r?y:b;return Tr("section",{header:y,noHeader:r||!m,sortParam:p,blocks:[Tr("nameValue",{markerType:"item",markerColor:u,name:O,noName:!pa(O),value:c,valueType:f,dataIndex:n})].concat(d||[])})}function AZe(t,e,n,r,i){var o=e.getData(),a=Ta(t,function(f,d,p){var v=o.getDimensionInfo(p);return f=f||v&&v.tooltip!==!1&&v.displayName!=null},!1),s=[],l=[],u=[];r.length?V(r,function(f){c(tg(o,n,f),f)}):V(t,c);function c(f,d){var p=o.getDimensionInfo(d);!p||p.otherDims.tooltip===!1||(a?u.push(Tr("nameValue",{markerType:"subItem",markerColor:i,name:p.displayName,value:f,valueType:p.type})):(s.push(f),l.push(p.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var Lu=$t();function AO(t,e){return t.getName(e)||t.getId(e)}var Ox="__universalTransitionEnabled",rn=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n._selectedDataIndicesMap={},n}return e.prototype.init=function(n,r,i){this.seriesIndex=this.componentIndex,this.dataTask=gy({count:MZe,reset:IZe}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,i);var o=Lu(this).sourceManager=new yle(this);o.prepareSource();var a=this.getInitialData(n,i);cG(a,this),this.dataTask.context.data=a,process.env.NODE_ENV!=="production"&&je(a,"getInitialData returned invalid data."),Lu(this).dataBeforeProcessed=a,uG(this),this._initSelectedMapFromData(a)},e.prototype.mergeDefaultAndTheme=function(n,r){var i=sb(this),o=i?Ng(n):{},a=this.subType;pt.hasClass(a)&&(a+="Series"),it(n,r.getTheme().get(this.subType)),it(n,this.getDefaultOption()),sh(n,"label",["show"]),this.fillDataTextStyle(n.data),i&&kc(n,o,i)},e.prototype.mergeOption=function(n,r){n=it(this.option,n,!0),this.fillDataTextStyle(n.data);var i=sb(this);i&&kc(this.option,n,i);var o=Lu(this).sourceManager;o.dirty(),o.prepareSource();var a=this.getInitialData(n,r);cG(a,this),this.dataTask.dirty(),this.dataTask.context.data=a,Lu(this).dataBeforeProcessed=a,uG(this),this._initSelectedMapFromData(a)},e.prototype.fillDataTextStyle=function(n){if(n&&!di(n))for(var r=["show"],i=0;i<n.length;i++)n[i]&&n[i].label&&sh(n[i],"label",r)},e.prototype.getInitialData=function(n,r){},e.prototype.appendData=function(n){var r=this.getRawData();r.appendData(n.data)},e.prototype.getData=function(n){var r=YR(this);if(r){var i=r.context.data;return n==null||!i.getLinkedData?i:i.getLinkedData(n)}else return Lu(this).data},e.prototype.getAllData=function(){var n=this.getData();return n&&n.getLinkedDataAll?n.getLinkedDataAll():[{data:n}]},e.prototype.setData=function(n){var r=YR(this);if(r){var i=r.context;i.outputData=n,r!==this.dataTask&&(i.data=n)}Lu(this).data=n},e.prototype.getEncode=function(){var n=this.get("encode",!0);if(n)return Be(n)},e.prototype.getSourceManager=function(){return Lu(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return Lu(this).dataBeforeProcessed},e.prototype.getColorBy=function(){var n=this.get("colorBy");return n||"series"},e.prototype.isColorBySeries=function(){return this.getColorBy()==="series"},e.prototype.getBaseAxis=function(){var n=this.coordinateSystem;return n&&n.getBaseAxis&&n.getBaseAxis()},e.prototype.formatTooltip=function(n,r,i){return Tle({series:this,dataIndex:n,multipleSeries:r})},e.prototype.isAnimationEnabled=function(){var n=this.ecModel;if(Ct.node&&!(n&&n.ssr))return!1;var r=this.getShallow("animation");return r&&this.getData().count()>this.getShallow("animationThreshold")&&(r=!1),!!r},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(n,r,i){var o=this.ecModel,a=c5.prototype.getColorFromPalette.call(this,n,r,i);return a||(a=o.getColorFromPalette(n,r,i)),a},e.prototype.coordDimToDataDim=function(n){return this.getRawData().mapDimensionsAll(n)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(n,r){this._innerSelect(this.getData(r),n)},e.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=AO(a,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.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)},e.prototype.getSelectedDataIndices=function(){if(this.option.selectedMap==="all")return[].slice.call(this.getData().getIndices());for(var n=this._selectedDataIndicesMap,r=bt(n),i=[],o=0;o<r.length;o++){var a=n[r[o]];a>=0&&i.push(a)}return i},e.prototype.isSelected=function(n,r){var i=this.option.selectedMap;if(!i)return!1;var o=this.getData(r);return(i==="all"||i[AO(o,n)])&&!o.getItemModel(n).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[Ox])return!0;var n=this.option.universalTransition;return n?n===!0?!0:n&&n.enabled:!1},e.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"){Qe(a.selectedMap)||(a.selectedMap={});for(var u=a.selectedMap,c=0;c<l;c++){var f=r[c],d=AO(n,f);u[d]=!0,this._selectedDataIndicesMap[d]=n.getRawIndex(f)}}else if(s==="single"||s===!0){var p=r[l-1],d=AO(n,p);a.selectedMap=(i={},i[d]=!0,i),this._selectedDataIndicesMap=(o={},o[d]=n.getRawIndex(p),o)}}},e.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)}},e.registerClass=function(n){return pt.registerClass(n)},e.protoInitialize=function(){var n=e.prototype;n.type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",n.visualDrawType="fill"}(),e}(pt);Qn(rn,NP);Qn(rn,c5);zae(rn,pt);function uG(t){var e=t.name;k8(t)||(t.name=EZe(t)||e)}function EZe(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return V(n,function(i){var o=e.getDimensionInfo(i);o.displayName&&r.push(o.displayName)}),r.join(" ")}function MZe(t){return t.model.getRawData().count()}function IZe(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),DZe}function DZe(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function cG(t,e){V(qy(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,nt(RZe,e))})}function RZe(t,e){var n=YR(t);return n&&n.setOutputEnd((e||this).count()),e}function YR(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var r=n.currentTask;if(r){var i=r.agentStubMap;i&&(r=i.get(t.uid))}return r}}var hn=function(){function t(){this.group=new qe,this.uid=kg("viewComponent")}return t.prototype.init=function(e,n){},t.prototype.render=function(e,n,r,i){},t.prototype.dispose=function(e,n){},t.prototype.updateView=function(e,n,r,i){},t.prototype.updateLayout=function(e,n,r,i){},t.prototype.updateVisual=function(e,n,r,i){},t.prototype.toggleBlurSeries=function(e,n,r){},t.prototype.eachRendered=function(e){var n=this.group;n&&n.traverse(e)},t}();L8(hn);yP(hn);function Bg(){var t=$t();return function(e){var n=t(e),r=e.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 Ple=$t(),kZe=Bg(),Kt=function(){function t(){this.group=new qe,this.uid=kg("viewChart"),this.renderTask=gy({plan:NZe,reset:LZe}),this.renderTask.context={view:this}}return t.prototype.init=function(e,n){},t.prototype.render=function(e,n,r,i){if(process.env.NODE_ENV!=="production")throw new Error("render method must been implemented")},t.prototype.highlight=function(e,n,r,i){var o=e.getData(i&&i.dataType);if(!o){process.env.NODE_ENV!=="production"&&qr("Unknown dataType "+i.dataType);return}dG(o,i,"emphasis")},t.prototype.downplay=function(e,n,r,i){var o=e.getData(i&&i.dataType);if(!o){process.env.NODE_ENV!=="production"&&qr("Unknown dataType "+i.dataType);return}dG(o,i,"normal")},t.prototype.remove=function(e,n){this.group.removeAll()},t.prototype.dispose=function(e,n){},t.prototype.updateView=function(e,n,r,i){this.render(e,n,r,i)},t.prototype.updateLayout=function(e,n,r,i){this.render(e,n,r,i)},t.prototype.updateVisual=function(e,n,r,i){this.render(e,n,r,i)},t.prototype.eachRendered=function(e){qc(this.group,e)},t.markUpdateMethod=function(e,n){Ple(e).updateMethod=n},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function fG(t,e,n){t&&Dc(t)&&(e==="emphasis"?iu:ou)(t,n)}function dG(t,e,n){var r=lh(t,e),i=e&&e.highlightKey!=null?pje(e.highlightKey):null;r!=null?V(nn(r),function(o){fG(t.getItemGraphicEl(o),n,i)}):t.eachItemGraphicEl(function(o){fG(o,n,i)})}L8(Kt,["dispose"]);yP(Kt);function NZe(t){return kZe(t.model)}function LZe(t){var e=t.model,n=t.ecModel,r=t.api,i=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=i&&Ple(i).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return l!=="render"&&a[l](e,n,r,i),BZe[l]}var BZe={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},jS="\0__throttleOriginMethod",hG="\0__throttleRate",pG="\0__throttleType";function BP(t,e,n){var r,i=0,o=0,a=null,s,l,u,c;e=e||0;function f(){o=new Date().getTime(),a=null,t.apply(l,u||[])}var d=function(){for(var p=[],v=0;v<arguments.length;v++)p[v]=arguments[v];r=new Date().getTime(),l=this,u=p;var g=c||e,m=c||n;c=null,s=r-(m?i:o)-g,clearTimeout(a),m?a=setTimeout(f,g):s>=0?f():a=setTimeout(f,-s),i=r};return d.clear=function(){a&&(clearTimeout(a),a=null)},d.debounceNextCall=function(p){c=p},d}function Vg(t,e,n,r){var i=t[e];if(i){var o=i[jS]||i,a=i[pG],s=i[hG];if(s!==n||a!==r){if(n==null||!r)return t[e]=o;i=t[e]=BP(o,n,r==="debounce"),i[jS]=o,i[pG]=r,i[hG]=n}return i}}function ub(t,e){var n=t[e];n&&n[jS]&&(n.clear&&n.clear(),t[e]=n[jS])}var vG=$t(),gG={itemStyle:uh(Lse,!0),lineStyle:uh(Nse,!0)},VZe={lineStyle:"stroke",itemStyle:"fill"};function $le(t,e){var n=t.visualStyleMapper||gG[e];return n||(console.warn("Unknown style type '"+e+"'."),gG.itemStyle)}function Ale(t,e){var n=t.visualDrawType||VZe[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var zZe={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=t.getModel(r),o=$le(t,r),a=o(i),s=i.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=Ale(t,r),u=a[l],c=Fe(u)?u:null,f=a.fill==="auto"||a.stroke==="auto";if(!a[l]||c||f){var d=t.getColorFromPalette(t.name,null,e.getSeriesCount());a[l]||(a[l]=d,n.setVisual("colorFromPalette",!0)),a.fill=a.fill==="auto"||Fe(a.fill)?d:a.fill,a.stroke=a.stroke==="auto"||Fe(a.stroke)?d:a.stroke}if(n.setVisual("style",a),n.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(p,v){var g=t.getDataParams(v),m=he({},a);m[l]=c(g),p.setItemVisual(v,"style",m)}}}},jm=new tn,FZe={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=$le(t,r),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(a,s){var l=a.getRawDataItem(s);if(l&&l[r]){jm.option=l[r];var u=i(jm),c=a.ensureUniqueItemVisual(s,"style");he(c,u),jm.option.decal&&(a.setItemVisual(s,"decal",jm.option.decal),jm.option.decal.dirty=!0),o in u&&a.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},WZe={performRawSeries:!0,overallReset:function(t){var e=Be();t.eachSeries(function(n){var r=n.getColorBy();if(!n.isColorBySeries()){var i=n.type+"-"+r,o=e.get(i);o||(o={},e.set(i,o)),vG(n).scope=o}}),t.eachSeries(function(n){if(!(n.isColorBySeries()||t.isSeriesFiltered(n))){var r=n.getRawData(),i={},o=n.getData(),a=vG(n).scope,s=n.visualStyleAccessPath||"itemStyle",l=Ale(n,s);o.each(function(u){var c=o.getRawIndex(u);i[c]=u}),r.each(function(u){var c=i[u],f=o.getItemVisual(c,"colorFromPalette");if(f){var d=o.ensureUniqueItemVisual(c,"style"),p=r.getName(u)||u+"",v=r.count();d[l]=n.getColorFromPalette(p,a,v)}})}})}},EO=Math.PI;function QZe(t,e){e=e||{},Ge(e,{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 qe,r=new Pt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var i=new Tt({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),o=new Pt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});n.add(o);var a;return e.showSpinner&&(a=new CP({shape:{startAngle:-EO/2,endAngle:-EO/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),a.animateShape(!0).when(1e3,{endAngle:EO*3/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:EO*3/2}).delay(300).start("circularInOut"),n.add(a)),n.resize=function(){var s=i.getBoundingRect().width,l=e.showSpinner?e.spinnerRadius:0,u=(t.getWidth()-l*2-(e.showSpinner&&s?10:0)-s)/2-(e.showSpinner&&s?0:5+s/2)+(e.showSpinner?0:s/2)+(s?0:l),c=t.getHeight()/2;e.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:t.getWidth(),height:t.getHeight()})},n.resize(),n}var Ele=function(){function t(e,n,r,i){this._stageTaskMap=Be(),this.ecInstance=e,this.api=n,r=this._dataProcessorHandlers=r.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=r.concat(i)}return t.prototype.restoreData=function(e,n){e.restoreData(n),this._stageTaskMap.each(function(r){var i=r.overallTask;i&&i.dirty()})},t.prototype.getPerformArgs=function(e,n){if(e.__pipeline){var r=this._pipelineMap.get(e.__pipeline.id),i=r.context,o=!n&&r.progressiveEnabled&&(!i||i.progressiveRender)&&e.__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}}},t.prototype.getPipeline=function(e){return this._pipelineMap.get(e)},t.prototype.updateStreamModes=function(e,n){var r=this._pipelineMap.get(e.uid),i=e.getData(),o=i.count(),a=r.progressiveEnabled&&n.incrementalPrepareRender&&o>=r.threshold,s=e.get("large")&&o>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?o:null;e.pipelineContext=r.context={progressiveRender:a,modDataCount:l,large:s}},t.prototype.restorePipelines=function(e){var n=this,r=n._pipelineMap=Be();e.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)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,n=this.api.getModel(),r=this.api;V(this._allHandlers,function(i){var o=e.get(i.uid)||e.set(i.uid,{}),a="";process.env.NODE_ENV!=="production"&&(a='"reset" and "overallReset" must not be both specified.'),je(!(i.reset&&i.overallReset),a),i.reset&&this._createSeriesStageTask(i,o,n,r),i.overallReset&&this._createOverallStageTask(i,o,n,r)},this)},t.prototype.prepareView=function(e,n,r,i){var o=e.renderTask,a=o.context;a.model=n,a.ecModel=r,a.api=i,o.__block=!e.incrementalPrepareRender,this._pipe(n,o)},t.prototype.performDataProcessorTasks=function(e,n){this._performStageTasks(this._dataProcessorHandlers,e,n,{block:!0})},t.prototype.performVisualTasks=function(e,n,r){this._performStageTasks(this._visualHandlers,e,n,r)},t.prototype._performStageTasks=function(e,n,r,i){i=i||{};var o=!1,a=this;V(e,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=a._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var p,v=d.agentStubMap;v.each(function(m){s(i,m)&&(m.dirty(),p=!0)}),p&&d.dirty(),a.updatePayload(d,r);var g=a.getPerformArgs(d,i.block);v.each(function(m){m.perform(g)}),d.perform(g)&&(o=!0)}else f&&f.each(function(m,y){s(i,m)&&m.dirty();var b=a.getPerformArgs(m,i.block);b.skip=!l.performRawSeries&&n.isSeriesFiltered(m.context.model),a.updatePayload(m,r),m.perform(b)&&(o=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=o||this.unfinished},t.prototype.performSeriesTasks=function(e){var n;e.eachSeries(function(r){n=r.dataTask.perform()||n}),this.unfinished=n||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(e){var n=e.tail;do{if(n.__block){e.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},t.prototype.updatePayload=function(e,n){n!=="remain"&&(e.context.payload=n)},t.prototype._createSeriesStageTask=function(e,n,r,i){var o=this,a=n.seriesTaskMap,s=n.seriesTaskMap=Be(),l=e.seriesType,u=e.getTargetSeries;e.createOnAllSeries?r.eachRawSeries(c):l?r.eachRawSeriesByType(l,c):u&&u(r,i).each(c);function c(f){var d=f.uid,p=s.set(d,a&&a.get(d)||gy({plan:ZZe,reset:XZe,count:qZe}));p.context={model:f,ecModel:r,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:o},o._pipe(f,p)}},t.prototype._createOverallStageTask=function(e,n,r,i){var o=this,a=n.overallTask=n.overallTask||gy({reset:HZe});a.context={ecModel:r,api:i,overallReset:e.overallReset,scheduler:o};var s=a.agentStubMap,l=a.agentStubMap=Be(),u=e.seriesType,c=e.getTargetSeries,f=!0,d=!1,p="";process.env.NODE_ENV!=="production"&&(p='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'),je(!e.createOnAllSeries,p),u?r.eachRawSeriesByType(u,v):c?c(r,i).each(v):(f=!1,V(r.getSeries(),v));function v(g){var m=g.uid,y=l.set(m,s&&s.get(m)||(d=!0,gy({reset:GZe,onDirty:UZe})));y.context={model:g,overallProgress:f},y.agent=a,y.__block=f,o._pipe(g,y)}d&&a.dirty()},t.prototype._pipe=function(e,n){var r=e.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},t.wrapStageHandler=function(e,n){return Fe(e)&&(e={overallReset:e,seriesType:KZe(e)}),e.uid=kg("stageHandler"),n&&(e.visualType=n),e},t}();function HZe(t){t.overallReset(t.ecModel,t.api,t.payload)}function GZe(t){return t.overallProgress&&jZe}function jZe(){this.agent.dirty(),this.getDownstream().dirty()}function UZe(){this.agent&&this.agent.dirty()}function ZZe(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function XZe(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=nn(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?ye(e,function(n,r){return Mle(r)}):YZe}var YZe=Mle(0);function Mle(t){return function(e,n){var r=n.data,i=n.resetDefines[t];if(i&&i.dataEach)for(var o=e.start;o<e.end;o++)i.dataEach(r,o);else i&&i.progress&&i.progress(e,r)}}function qZe(t){return t.data.count()}function KZe(t){US=null;try{t(cb,Ile)}catch{}return US}var cb={},Ile={},US;Dle(cb,f5);Dle(Ile,rle);cb.eachSeriesByType=cb.eachRawSeriesByType=function(t){US=t};cb.eachComponent=function(t){t.mainType==="series"&&t.subType&&(US=t.subType)};function Dle(t,e){for(var n in e.prototype)t[n]=zn}var mG=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const JZe={color:mG,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],mG]};var _i="#B9B8CE",yG="#100C2A",MO=function(){return{axisLine:{lineStyle:{color:_i}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},bG=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Rle={darkMode:!0,color:bG,backgroundColor:yG,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:_i}},textStyle:{color:_i},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:_i}},dataZoom:{borderColor:"#71708A",textStyle:{color:_i},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:_i}},timeline:{lineStyle:{color:_i},label:{color:_i},controlStyle:{color:_i,borderColor:_i}},calendar:{itemStyle:{color:yG},dayLabel:{color:_i},monthLabel:{color:_i},yearLabel:{color:_i}},timeAxis:MO(),logAxis:MO(),valueAxis:MO(),categoryAxis:MO(),line:{symbol:"circle"},graph:{color:bG},gauge:{title:{color:_i},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:_i},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Rle.categoryAxis.splitLine.show=!1;var eXe=function(){function t(){}return t.prototype.normalizeQuery=function(e){var n={},r={},i={};if(Ie(e)){var o=js(e);n.mainType=o.main||null,n.subType=o.sub||null}else{var a=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};V(e,function(l,u){for(var c=!1,f=0;f<a.length;f++){var d=a[f],p=u.lastIndexOf(d);if(p>0&&p===u.length-d.length){var v=u.slice(0,p);v!=="data"&&(n.mainType=v,n[d.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(r[u]=l,c=!0),c||(i[u]=l)})}return{cptQuery:n,dataQuery:r,otherQuery:i}},t.prototype.filter=function(e,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(e,n.otherQuery,i,o));function c(f,d,p,v){return f[p]==null||d[v||p]===f[p]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),qR=["symbol","symbolSize","symbolRotate","symbolOffset"],_G=qR.concat(["symbolKeepAspect"]),tXe={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),!t.hasSymbolVisual)return;for(var r={},i={},o=!1,a=0;a<qR.length;a++){var s=qR[a],l=t.get(s);Fe(l)?(o=!0,i[s]=l):r[s]=l}if(r.symbol=r.symbol||t.defaultSymbol,n.setVisual(he({legendIcon:t.legendIcon||r.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},r)),e.isSeriesFiltered(t))return;var u=bt(i);function c(f,d){for(var p=t.getRawValue(d),v=t.getDataParams(d),g=0;g<u.length;g++){var m=u[g];f.setItemVisual(d,m,i[m](p,v))}}return{dataEach:o?c:null}}},nXe={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var n=t.getData();function r(i,o){for(var a=i.getItemModel(o),s=0;s<_G.length;s++){var l=_G[s],u=a.getShallow(l,!0);u!=null&&i.setItemVisual(o,l,u)}}return{dataEach:n.hasItemOption?r:null}}};function g5(t,e,n){switch(n){case"color":var r=t.getItemVisual(e,"style");return r[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+n)}}function w_(t,e){switch(e){case"color":var n=t.getVisual("style");return n[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e);default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+e)}}function kle(t,e,n,r){switch(n){case"color":var i=t.ensureUniqueItemVisual(e,"style");i[t.getVisual("drawType")]=r,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=r;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,r);break;default:process.env.NODE_ENV!=="production"&&console.warn("Unknown visual type "+n)}}function Nle(t,e){function n(r,i){var o=[];return r.eachComponent({mainType:"series",subType:t,query:i},function(a){o.push(a.seriesIndex)}),o}V([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(r){e(r[0],function(i,o,a){i=he({},i),process.env.NODE_ENV!=="production"&&Un(i.type,r[1]),a.dispatchAction(he(i,{type:r[1],seriesIndex:n(o,i)}))})})}function mp(t,e,n,r,i){var o=t+e;n.isSilent(o)||(process.env.NODE_ENV!=="production"&&Pa("event "+o+" is deprecated."),r.eachComponent({mainType:"series",subType:"pie"},function(a){for(var s=a.seriesIndex,l=a.option.selectedMap,u=i.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var f=a.getData(),d=lh(f,i.fromActionPayload);n.trigger(o,{type:o,seriesId:a.id,name:ve(d)?f.getName(d[0]):f.getName(d),selected:Ie(l)?l:he({},l)})}}))}function rXe(t,e,n){t.on("selectchanged",function(r){var i=n.getModel();r.isFromClick?(mp("map","selectchanged",e,i,r),mp("pie","selectchanged",e,i,r)):r.fromAction==="select"?(mp("map","selected",e,i,r),mp("pie","selected",e,i,r)):r.fromAction==="unselect"&&(mp("map","unselected",e,i,r),mp("pie","unselected",e,i,r))})}function wd(t,e,n){for(var r;t&&!(e(t)&&(r=t,n));)t=t.__hostTarget||t.parent;return r}var iXe=Math.round(Math.random()*9),oXe=typeof Object.defineProperty=="function",aXe=function(){function t(){this._id="__ec_inner_"+iXe++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,n){var r=this._guard(e);return oXe?Object.defineProperty(r,this._id,{value:n,enumerable:!1,configurable:!0}):r[this._id]=n,this},t.prototype.delete=function(e){return this.has(e)?(delete this._guard(e)[this._id],!0):!1},t.prototype.has=function(e){return!!this._guard(e)[this._id]},t.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},t}(),sXe=mt.extend({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+i,r+o),t.lineTo(n-i,r+o),t.closePath()}}),lXe=mt.extend({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(t,e){var n=e.cx,r=e.cy,i=e.width/2,o=e.height/2;t.moveTo(n,r-o),t.lineTo(n+i,r),t.lineTo(n,r+o),t.lineTo(n-i,r),t.closePath()}}),uXe=mt.extend({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,r=e.y,i=e.width/5*3,o=Math.max(i,e.height),a=i/2,s=a*a/(o-a),l=r-o+a+s,u=Math.asin(s/a),c=Math.cos(u)*a,f=Math.sin(u),d=Math.cos(u),p=a*.6,v=a*.7;t.moveTo(n-c,l+s),t.arc(n,l,a,Math.PI-u,Math.PI*2+u),t.bezierCurveTo(n+c-f*p,l+s+d*p,n,r-v,n,r),t.bezierCurveTo(n,r-v,n-c+f*p,l+s+d*p,n-c,l+s),t.closePath()}}),cXe=mt.extend({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.height,r=e.width,i=e.x,o=e.y,a=r/3*2;t.moveTo(i,o),t.lineTo(i+a,o+n),t.lineTo(i,o+n/4*3),t.lineTo(i-a,o+n),t.lineTo(i,o),t.closePath()}}),fXe={line:_r,rect:Pt,roundRect:Pt,square:Pt,circle:_u,diamond:lXe,pin:uXe,arrow:cXe,triangle:sXe},dXe={line:function(t,e,n,r,i){i.x1=t,i.y1=e+r/2,i.x2=t+n,i.y2=e+r/2},rect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r},roundRect:function(t,e,n,r,i){i.x=t,i.y=e,i.width=n,i.height=r,i.r=Math.min(n,r)/4},square:function(t,e,n,r,i){var o=Math.min(n,r);i.x=t,i.y=e,i.width=o,i.height=o},circle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.r=Math.min(n,r)/2},diamond:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r},pin:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},arrow:function(t,e,n,r,i){i.x=t+n/2,i.y=e+r/2,i.width=n,i.height=r},triangle:function(t,e,n,r,i){i.cx=t+n/2,i.cy=e+r/2,i.width=n,i.height=r}},ZS={};V(fXe,function(t,e){ZS[e]=new t});var hXe=mt.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var r=kS(t,e,n),i=this.shape;return i&&i.symbolType==="pin"&&e.position==="inside"&&(r.y=n.y+n.height*.4),r},buildPath:function(t,e,n){var r=e.symbolType;if(r!=="none"){var i=ZS[r];i||(r="rect",i=ZS[r]),dXe[r](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n)}}});function pXe(t,e){if(this.type!=="image"){var n=this.style;this.__isEmptyBrush?(n.stroke=t,n.fill=e||"#fff",n.lineWidth=2):this.shape.symbolType==="line"?n.stroke=t:n.fill=t,this.markRedraw()}}function Yn(t,e,n,r,i,o,a){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return t.indexOf("image://")===0?l=Z8(t.slice(8),new at(e,n,r,i),a?"center":"cover"):t.indexOf("path://")===0?l=b_(t.slice(7),{},new at(e,n,r,i),a?"center":"cover"):l=new hXe({shape:{symbolType:t,x:e,y:n,width:r,height:i}}),l.__isEmptyBrush=s,l.setColor=pXe,o&&l.setColor(o),l}function zg(t){return ve(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function Dh(t,e){if(t!=null)return ve(t)||(t=[t,t]),[Me(t[0],e[0])||0,Me(Je(t[1],t[0]),e[1])||0]}function xd(t){return isFinite(t)}function vXe(t,e,n){var r=e.x==null?0:e.x,i=e.x2==null?1:e.x2,o=e.y==null?0:e.y,a=e.y2==null?0:e.y2;e.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=xd(r)?r:0,i=xd(i)?i:1,o=xd(o)?o:0,a=xd(a)?a:0;var s=t.createLinearGradient(r,o,i,a);return s}function gXe(t,e,n){var r=n.width,i=n.height,o=Math.min(r,i),a=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(a=a*r+n.x,s=s*i+n.y,l=l*o),a=xd(a)?a:.5,s=xd(s)?s:.5,l=l>=0&&xd(l)?l:.5;var u=t.createRadialGradient(a,s,0,a,s,l);return u}function KR(t,e,n){for(var r=e.type==="radial"?gXe(t,e,n):vXe(t,e,n),i=e.colorStops,o=0;o<i.length;o++)r.addColorStop(i[o].offset,i[o].color);return r}function mXe(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n<t.length;n++)if(t[n]!==e[n])return!0;return!1}function IO(t){return parseInt(t,10)}function Yp(t,e,n){var r=["width","height"][e],i=["clientWidth","clientHeight"][e],o=["paddingLeft","paddingTop"][e],a=["paddingRight","paddingBottom"][e];if(n[r]!=null&&n[r]!=="auto")return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(t);return(t[i]||IO(s[r])||IO(t.style[r]))-(IO(s[o])||0)-(IO(s[a])||0)|0}function yXe(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:It(t)?[t]:ve(t)?t:null}function m5(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&yXe(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(n){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&i!==1&&(n=ye(n,function(o){return o/i}),r/=i)}return[n,r]}var bXe=new cl(!0);function XS(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function OG(t){return typeof t=="string"&&t!=="none"}function YS(t){var e=t.fill;return e!=null&&e!=="none"}function wG(t,e){if(e.fillOpacity!=null&&e.fillOpacity!==1){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function xG(t,e){if(e.strokeOpacity!=null&&e.strokeOpacity!==1){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function JR(t,e,n){var r=B8(e.image,e.__image,n);if(bP(r)){var i=t.createPattern(r,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*iy),o.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(o)}return i}}function _Xe(t,e,n,r){var i,o=XS(n),a=YS(n),s=n.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var c=e.path||bXe,f=e.__dirty;if(!r){var d=n.fill,p=n.stroke,v=a&&!!d.colorStops,g=o&&!!p.colorStops,m=a&&!!d.image,y=o&&!!p.image,b=void 0,O=void 0,w=void 0,x=void 0,S=void 0;(v||g)&&(S=e.getBoundingRect()),v&&(b=f?KR(t,d,S):e.__canvasFillGradient,e.__canvasFillGradient=b),g&&(O=f?KR(t,p,S):e.__canvasStrokeGradient,e.__canvasStrokeGradient=O),m&&(w=f||!e.__canvasFillPattern?JR(t,d,e):e.__canvasFillPattern,e.__canvasFillPattern=w),y&&(x=f||!e.__canvasStrokePattern?JR(t,p,e):e.__canvasStrokePattern,e.__canvasStrokePattern=w),v?t.fillStyle=b:m&&(w?t.fillStyle=w:a=!1),g?t.strokeStyle=O:y&&(x?t.strokeStyle=x:o=!1)}var T=e.getGlobalScale();c.setScale(T[0],T[1],e.segmentIgnoreThreshold);var $,A;t.setLineDash&&n.lineDash&&(i=m5(e),$=i[0],A=i[1]);var P=!0;(u||f&Np)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),P=!1),c.reset(),e.buildPath(c,e.shape,r),c.toStatic(),e.pathUpdated()),P&&c.rebuildPath(t,l?s:1),$&&(t.setLineDash($),t.lineDashOffset=A),r||(n.strokeFirst?(o&&xG(t,n),a&&wG(t,n)):(a&&wG(t,n),o&&xG(t,n))),$&&t.setLineDash([])}function OXe(t,e,n){var r=e.__image=B8(n.image,e.__image,e,e.onload);if(!(!r||!bP(r))){var i=n.x||0,o=n.y||0,a=e.getWidth(),s=e.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;t.drawImage(r,u,c,n.sWidth,n.sHeight,i,o,a,s)}else if(n.sx&&n.sy){var u=n.sx,c=n.sy,f=a-u,d=s-c;t.drawImage(r,u,c,f,d,i,o,a,s)}else t.drawImage(r,i,o,a,s)}}function wXe(t,e,n){var r,i=n.text;if(i!=null&&(i+=""),i){t.font=n.font||Ac,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var o=void 0,a=void 0;t.setLineDash&&n.lineDash&&(r=m5(e),o=r[0],a=r[1]),o&&(t.setLineDash(o),t.lineDashOffset=a),n.strokeFirst?(XS(n)&&t.strokeText(i,n.x,n.y),YS(n)&&t.fillText(i,n.x,n.y)):(YS(n)&&t.fillText(i,n.x,n.y),XS(n)&&t.strokeText(i,n.x,n.y)),o&&t.setLineDash([])}}var SG=["shadowBlur","shadowOffsetX","shadowOffsetY"],CG=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Lle(t,e,n,r,i){var o=!1;if(!r&&(n=n||{},e===n))return!1;if(r||e.opacity!==n.opacity){eo(t,i),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?Vd.opacity:a}(r||e.blend!==n.blend)&&(o||(eo(t,i),o=!0),t.globalCompositeOperation=e.blend||Vd.blend);for(var s=0;s<SG.length;s++){var l=SG[s];(r||e[l]!==n[l])&&(o||(eo(t,i),o=!0),t[l]=t.dpr*(e[l]||0))}return(r||e.shadowColor!==n.shadowColor)&&(o||(eo(t,i),o=!0),t.shadowColor=e.shadowColor||Vd.shadowColor),o}function TG(t,e,n,r,i){var o=fb(e,i.inHover),a=r?null:n&&fb(n,i.inHover)||{};if(o===a)return!1;var s=Lle(t,o,a,r,i);if((r||o.fill!==a.fill)&&(s||(eo(t,i),s=!0),OG(o.fill)&&(t.fillStyle=o.fill)),(r||o.stroke!==a.stroke)&&(s||(eo(t,i),s=!0),OG(o.stroke)&&(t.strokeStyle=o.stroke)),(r||o.opacity!==a.opacity)&&(s||(eo(t,i),s=!0),t.globalAlpha=o.opacity==null?1:o.opacity),e.hasStroke()){var l=o.lineWidth,u=l/(o.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(eo(t,i),s=!0),t.lineWidth=u)}for(var c=0;c<CG.length;c++){var f=CG[c],d=f[0];(r||o[d]!==a[d])&&(s||(eo(t,i),s=!0),t[d]=o[d]||f[1])}return s}function xXe(t,e,n,r,i){return Lle(t,fb(e,i.inHover),n&&fb(n,i.inHover),r,i)}function Ble(t,e){var n=e.transform,r=t.dpr||1;n?t.setTransform(r*n[0],r*n[1],r*n[2],r*n[3],r*n[4],r*n[5]):t.setTransform(r,0,0,r,0,0)}function SXe(t,e,n){for(var r=!1,i=0;i<t.length;i++){var o=t[i];r=r||o.isZeroArea(),Ble(e,o),e.beginPath(),o.buildPath(e,o.shape),e.clip()}n.allClipped=r}function CXe(t,e){return t&&e?t[0]!==e[0]||t[1]!==e[1]||t[2]!==e[2]||t[3]!==e[3]||t[4]!==e[4]||t[5]!==e[5]:!(!t&&!e)}var PG=1,$G=2,AG=3,EG=4;function TXe(t){var e=YS(t),n=XS(t);return!(t.lineDash||!(+e^+n)||e&&typeof t.fill!="string"||n&&typeof t.stroke!="string"||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function eo(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function fb(t,e){return e&&t.__hoverStyle||t.style}function y5(t,e){Sd(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Sd(t,e,n,r){var i=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){e.__dirty&=~Co,e.__isRendered=!1;return}var o=e.__clipPaths,a=n.prevElClipPaths,s=!1,l=!1;if((!a||mXe(o,a))&&(a&&a.length&&(eo(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),o&&o.length&&(eo(t,n),t.save(),SXe(o,t,n),s=!0),n.prevElClipPaths=o),n.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c=e instanceof mt&&e.autoBatch&&TXe(e.style);s||CXe(i,u.transform)?(eo(t,n),Ble(t,e)):c||eo(t,n);var f=fb(e,n.inHover);e instanceof mt?(n.lastDrawType!==PG&&(l=!0,n.lastDrawType=PG),TG(t,e,u,l,n),(!c||!n.batchFill&&!n.batchStroke)&&t.beginPath(),_Xe(t,e,f,c),c&&(n.batchFill=f.fill||"",n.batchStroke=f.stroke||"")):e instanceof Jv?(n.lastDrawType!==AG&&(l=!0,n.lastDrawType=AG),TG(t,e,u,l,n),wXe(t,e,f)):e instanceof Rr?(n.lastDrawType!==$G&&(l=!0,n.lastDrawType=$G),xXe(t,e,u,l,n),OXe(t,e,f)):e.getTemporalDisplayables&&(n.lastDrawType!==EG&&(l=!0,n.lastDrawType=EG),PXe(t,e,n)),c&&r&&eo(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}function PXe(t,e,n){var r=e.getDisplayables(),i=e.getTemporalDisplayables();t.save();var o={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover},a,s;for(a=e.getCursor(),s=r.length;a<s;a++){var l=r[a];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),Sd(t,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(),Sd(t,l,o,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),o.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var TE=new aXe,MG=new d_(100),IG=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function ng(t,e){if(t==="none")return null;var n=e.getDevicePixelRatio(),r=e.getZr(),i=r.painter.type==="svg";t.dirty&&TE.delete(t);var o=TE.get(t);if(o)return o;var a=Ge(t,{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,TE.set(t,s),t.dirty=!1,s;function l(u){for(var c=[n],f=!0,d=0;d<IG.length;++d){var p=a[IG[d]];if(p!=null&&!ve(p)&&!Ie(p)&&!It(p)&&typeof p!="boolean"){f=!1;break}c.push(p)}var v;if(f){v=c.join(",")+(i?"-svg":"");var g=MG.get(v);g&&(i?u.svgElement=g:u.image=g)}var m=zle(a.dashArrayX),y=$Xe(a.dashArrayY),b=Vle(a.symbol),O=AXe(m),w=Fle(y),x=!i&&ls.createCanvas(),S=i&&{tag:"g",attrs:{},key:"dcl",children:[]},T=A(),$;x&&(x.width=T.width*n,x.height=T.height*n,$=x.getContext("2d")),P(),f&&MG.put(v,x||S),u.image=x,u.svgElement=S,u.svgWidth=T.width,u.svgHeight=T.height;function A(){for(var M=1,I=0,R=O.length;I<R;++I)M=j9(M,O[I]);for(var L=1,I=0,R=b.length;I<R;++I)L=j9(L,b[I].length);M*=L;var D=w*O.length*b.length;if(process.env.NODE_ENV!=="production"){var B=function(F){console.warn("Calculated decal size is greater than "+F+" due to decal option settings so "+F+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+F+" to be larger to avoid incontinuity.")};M>a.maxTileWidth&&B("maxTileWidth"),D>a.maxTileHeight&&B("maxTileHeight")}return{width:Math.max(1,Math.min(M,a.maxTileWidth)),height:Math.max(1,Math.min(D,a.maxTileHeight))}}function P(){$&&($.clearRect(0,0,x.width,x.height),a.backgroundColor&&($.fillStyle=a.backgroundColor,$.fillRect(0,0,x.width,x.height)));for(var M=0,I=0;I<y.length;++I)M+=y[I];if(M<=0)return;for(var R=-w,L=0,D=0,B=0;R<T.height;){if(L%2===0){for(var F=D/2%b.length,z=0,W=0,j=0;z<T.width*2;){for(var H=0,I=0;I<m[B].length;++I)H+=m[B][I];if(H<=0)break;if(W%2===0){var Z=(1-a.symbolSize)*.5,J=z+m[B][W]*Z,se=R+y[L]*Z,oe=m[B][W]*a.symbolSize,de=y[L]*a.symbolSize,re=j/2%b[F].length;ue(J,se,oe,de,b[F][re])}z+=m[B][W],++j,++W,W===m[B].length&&(W=0)}++B,B===m.length&&(B=0)}R+=y[L],++D,++L,L===y.length&&(L=0)}function ue(ee,X,Y,le,ge){var me=i?1:n,Ne=Yn(ge,ee*me,X*me,Y*me,le*me,a.color,a.symbolKeepAspect);if(i){var Le=r.painter.renderOneToVNode(Ne);Le&&S.children.push(Le)}else y5($,Ne)}}}}function Vle(t){if(!t||t.length===0)return[["rect"]];if(Ie(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!Ie(t[n])){e=!1;break}if(e)return Vle([t]);for(var r=[],n=0;n<t.length;++n)Ie(t[n])?r.push([t[n]]):r.push(t[n]);return r}function zle(t){if(!t||t.length===0)return[[0,0]];if(It(t)){var e=Math.ceil(t);return[[e,e]]}for(var n=!0,r=0;r<t.length;++r)if(!It(t[r])){n=!1;break}if(n)return zle([t]);for(var i=[],r=0;r<t.length;++r)if(It(t[r])){var e=Math.ceil(t[r]);i.push([e,e])}else{var e=ye(t[r],function(s){return Math.ceil(s)});e.length%2===1?i.push(e.concat(e)):i.push(e)}return i}function $Xe(t){if(!t||typeof t=="object"&&t.length===0)return[0,0];if(It(t)){var e=Math.ceil(t);return[e,e]}var n=ye(t,function(r){return Math.ceil(r)});return t.length%2?n.concat(n):n}function AXe(t){return ye(t,function(e){return Fle(e)})}function Fle(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2===1?e*2:e}function EXe(t,e){t.eachRawSeries(function(n){if(!t.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=ng(s,e)}});var i=r.getVisual("decal");if(i){var o=r.getVisual("style");o.decal=ng(i,e)}}})}var ja=new Ma,qS={};function MXe(t,e){process.env.NODE_ENV!=="production"&&qS[t]&&qr("Already has an implementation of "+t+"."),qS[t]=e}function Wle(t){return process.env.NODE_ENV!=="production"&&(qS[t]||qr("Implementation of "+t+" doesn't exists.")),qS[t]}var IXe="5.5.1",DXe={zrender:"5.6.0"},RXe=1,kXe=800,NXe=900,LXe=1e3,BXe=2e3,VXe=5e3,Qle=1e3,zXe=1100,b5=2e3,Hle=3e3,FXe=4e3,VP=4500,WXe=4600,QXe=5e3,HXe=6e3,Gle=7e3,jle={PROCESSOR:{FILTER:LXe,SERIES_FILTER:kXe,STATISTIC:VXe},VISUAL:{LAYOUT:Qle,PROGRESSIVE_LAYOUT:zXe,GLOBAL:b5,CHART:Hle,POST_CHART_LAYOUT:WXe,COMPONENT:FXe,BRUSH:QXe,CHART_ITEM:VP,ARIA:HXe,DECAL:Gle}},ri="__flagInMainProcess",Hi="__pendingUpdate",PE="__needsUpdateStatus",DG=/^[a-zA-Z0-9_]+$/,$E="__connectUpdateStatus",RG=0,GXe=1,jXe=2;function Ule(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this.isDisposed()){xo(this.id);return}return Xle(this,t,e)}}function Zle(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return Xle(this,t,e)}}function Xle(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),Ma.prototype[e].apply(t,n)}var Yle=function(t){ie(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(Ma),qle=Yle.prototype;qle.on=Zle("on");qle.off=Zle("off");var yp,AE,DO,Bu,EE,ME,IE,Um,Zm,kG,NG,DE,LG,RO,BG,Kle,Ko,VG,KS=function(t){ie(e,t);function e(n,r,i){var o=t.call(this,new eXe)||this;o._chartsViews=[],o._chartsMap={},o._componentsViews=[],o._componentsMap={},o._pendingActions=[],i=i||{},Ie(r)&&(r=Jle[r]),o._dom=n;var a="canvas",s="auto",l=!1;if(process.env.NODE_ENV!=="production"){var u=Ct.hasGlobalWindow?window:global;u&&(a=Je(u.__ECHARTS__DEFAULT__RENDERER__,a),s=Je(u.__ECHARTS__DEFAULT__COARSE_POINTER,s),l=Je(u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,l))}i.ssr&&Pae(function(p){var v=Ke(p),g=v.dataIndex;if(g!=null){var m=Be();return m.set("series_index",v.seriesIndex),m.set("data_index",g),v.ssrType&&m.set("ssr_type",v.ssrType),m}});var c=o._zr=CR(n,{renderer:i.renderer||a,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:Je(i.useDirtyRect,l),useCoarsePointer:Je(i.useCoarsePointer,s),pointerSize:i.pointerSize});o._ssr=i.ssr,o._throttledZrFlush=BP(Re(c.flush,c),17),r=Ue(r),r&&ole(r,!0),o._theme=r,o._locale=lUe(i.locale||Bse),o._coordSysMgr=new Ih;var f=o._api=BG(o);function d(p,v){return p.__prio-v.__prio}return fx(eC,d),fx(ek,d),o._scheduler=new Ele(o,f,ek,eC),o._messageCenter=new Yle,o._initEvents(),o.resize=Re(o.resize,o),c.animation.on("frame",o._onframe,o),kG(c,o),NG(c,o),Yy(o),o}return e.prototype._onframe=function(){if(!this._disposed){VG(this);var n=this._scheduler;if(this[Hi]){var r=this[Hi].silent;this[ri]=!0;try{yp(this),Bu.update.call(this,null,this[Hi].updateParams)}catch(l){throw this[ri]=!1,this[Hi]=null,l}this._zr.flush(),this[ri]=!1,this[Hi]=null,Um.call(this,r),Zm.call(this,r)}else if(n.unfinished){var i=RXe,o=this._model,a=this._api;n.unfinished=!1;do{var s=+new Date;n.performSeriesTasks(o),n.performDataProcessorTasks(o),ME(this,o),n.performVisualTasks(o),RO(this,this._model,a,"remain",{}),i-=+new Date-s}while(i>0&&n.unfinished);n.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(n,r,i){if(this[ri]){process.env.NODE_ENV!=="production"&&qr("`setOption` should not be called during main process.");return}if(this._disposed){xo(this.id);return}var o,a,s;if(Qe(r)&&(i=r.lazyUpdate,o=r.silent,a=r.replaceMerge,s=r.transition,r=r.notMerge),this[ri]=!0,!this._model||r){var l=new LUe(this._api),u=this._theme,c=this._model=new f5;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(n,{replaceMerge:a},tk);var f={seriesTransition:s,optionChanged:!0};if(i)this[Hi]={silent:o,updateParams:f},this[ri]=!1,this.getZr().wakeUp();else{try{yp(this),Bu.update.call(this,null,f)}catch(d){throw this[Hi]=null,this[ri]=!1,d}this._ssr||this._zr.flush(),this[Hi]=null,this[ri]=!1,Um.call(this,o),Zm.call(this,o)}},e.prototype.setTheme=function(){Pa("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||Ct.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(n){return process.env.NODE_ENV!=="production"&&Un("getRenderedCanvas","renderToCanvas"),this.renderToCanvas(n)},e.prototype.renderToCanvas=function(n){n=n||{};var r=this._zr.painter;if(process.env.NODE_ENV!=="production"&&r.type!=="canvas")throw new Error("renderToCanvas can only be used in the canvas renderer.");return r.getRenderedCanvas({backgroundColor:n.backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(n){n=n||{};var r=this._zr.painter;if(process.env.NODE_ENV!=="production"&&r.type!=="svg")throw new Error("renderToSVGString can only be used in the svg renderer.");return r.renderToString({useViewBox:n.useViewBox})},e.prototype.getSvgDataURL=function(){if(Ct.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return V(r,function(i){i.stopAnimation(null,!0)}),n.painter.toDataURL()}},e.prototype.getDataURL=function(n){if(this._disposed){xo(this.id);return}n=n||{};var r=n.excludeComponents,i=this._model,o=[],a=this;V(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 V(o,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(n){if(this._disposed){xo(this.id);return}var r=n.type==="svg",i=this.group,o=Math.min,a=Math.max,s=1/0;if(tC[i]){var l=s,u=s,c=-s,f=-s,d=[],p=n&&n.pixelRatio||this.getDevicePixelRatio();V(Wd,function(O,w){if(O.group===i){var x=r?O.getZr().painter.getSvgDom().innerHTML:O.renderToCanvas(Ue(n)),S=O.getDom().getBoundingClientRect();l=o(S.left,l),u=o(S.top,u),c=a(S.right,c),f=a(S.bottom,f),d.push({dom:x,left:S.left,top:S.top})}}),l*=p,u*=p,c*=p,f*=p;var v=c-l,g=f-u,m=ls.createCanvas(),y=CR(m,{renderer:r?"svg":"canvas"});if(y.resize({width:v,height:g}),r){var b="";return V(d,function(O){var w=O.left-l,x=O.top-u;b+='<g transform="translate('+w+","+x+')">'+O.dom+"</g>"}),y.painter.getSvgRoot().innerHTML=b,n.connectedBackgroundColor&&y.painter.setBackgroundColor(n.connectedBackgroundColor),y.refreshImmediately(),y.painter.toDataURL()}else return n.connectedBackgroundColor&&y.add(new Pt({shape:{x:0,y:0,width:v,height:g},style:{fill:n.connectedBackgroundColor}})),V(d,function(O){var w=new Rr({style:{x:O.left*p-l,y:O.top*p-u,image:O.dom}});y.add(w)}),y.refreshImmediately(),m.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},e.prototype.convertToPixel=function(n,r){return EE(this,"convertToPixel",n,r)},e.prototype.convertFromPixel=function(n,r){return EE(this,"convertFromPixel",n,r)},e.prototype.containPixel=function(n,r){if(this._disposed){xo(this.id);return}var i=this._model,o,a=fy(i,n);return V(a,function(s,l){l.indexOf("Models")>=0&&V(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):process.env.NODE_ENV!=="production"&&Mn(l+": "+(f?"The found component do not support containPoint.":"No view mapping to the found component."))}else process.env.NODE_ENV!=="production"&&Mn(l+": containPoint is not supported")},this)},this),!!o},e.prototype.getVisual=function(n,r){var i=this._model,o=fy(i,n,{defaultMainType:"series"}),a=o.seriesModel;process.env.NODE_ENV!=="production"&&(a||Mn("There is no specified series model"));var s=a.getData(),l=o.hasOwnProperty("dataIndexInside")?o.dataIndexInside:o.hasOwnProperty("dataIndex")?s.indexOfRawIndex(o.dataIndex):null;return l!=null?g5(s,l,r):w_(s,r)},e.prototype.getViewOfComponentModel=function(n){return this._componentsMap[n.__viewId]},e.prototype.getViewOfSeriesModel=function(n){return this._chartsMap[n.__viewId]},e.prototype._initEvents=function(){var n=this;V(UXe,function(r){var i=function(o){var a=n.getModel(),s=o.target,l,u=r==="globalout";if(u?l={}:s&&wd(s,function(v){var g=Ke(v);if(g&&g.dataIndex!=null){var m=g.dataModel||a.getSeriesByIndex(g.seriesIndex);return l=m&&m.getDataParams(g.dataIndex,g.dataType,s)||{},!0}else if(g.eventData)return l=he({},g.eventData),!0},!0),l){var c=l.componentType,f=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",f=l.seriesIndex);var d=c&&f!=null&&a.getComponent(c,f),p=d&&n[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];process.env.NODE_ENV!=="production"&&!u&&!(d&&p)&&Mn("model or view can not be found by params"),l.event=o,l.type=r,n._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:p},n.trigger(r,l)}};i.zrEventfulCallAtLast=!0,n._zr.on(r,i,n)}),V(my,function(r,i){n._messageCenter.on(i,function(o){this.trigger(i,o)},n)}),V(["selectchanged"],function(r){n._messageCenter.on(r,function(i){this.trigger(r,i)},n)}),rXe(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){xo(this.id);return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){xo(this.id);return}this._disposed=!0;var n=this.getDom();n&&Lae(this.getDom(),O5,"");var r=this,i=r._api,o=r._model;V(r._componentsViews,function(a){a.dispose(o,i)}),V(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 Wd[r.id]},e.prototype.resize=function(n){if(this[ri]){process.env.NODE_ENV!=="production"&&qr("`resize` should not be called during main process.");return}if(this._disposed){xo(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[Hi]&&(o==null&&(o=this[Hi].silent),i=!0,this[Hi]=null),this[ri]=!0;try{i&&yp(this),Bu.update.call(this,{type:"resize",animation:he({duration:0},n&&n.animation)})}catch(a){throw this[ri]=!1,a}this[ri]=!1,Um.call(this,o),Zm.call(this,o)}},e.prototype.showLoading=function(n,r){if(this._disposed){xo(this.id);return}if(Qe(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!nk[n]){process.env.NODE_ENV!=="production"&&Mn("Loading effects "+n+" not exists.");return}var i=nk[n](this._api,r),o=this._zr;this._loadingFX=i,o.add(i)},e.prototype.hideLoading=function(){if(this._disposed){xo(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(n){var r=he({},n);return r.type=my[n.type],r},e.prototype.dispatchAction=function(n,r){if(this._disposed){xo(this.id);return}if(Qe(r)||(r={silent:!!r}),!!JS[n.type]&&this._model){if(this[ri]){this._pendingActions.push(n);return}var i=r.silent;IE.call(this,n,i);var o=r.flush;o?this._zr.flush():o!==!1&&Ct.browser.weChat&&this._throttledZrFlush(),Um.call(this,i),Zm.call(this,i)}},e.prototype.updateLabelLayout=function(){ja.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(n){if(this._disposed){xo(this.id);return}var r=n.seriesIndex,i=this.getModel(),o=i.getSeriesByIndex(r);process.env.NODE_ENV!=="production"&&je(n.data&&o),o.appendData(n),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){yp=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),AE(f,!0),AE(f,!1),d.plan()},AE=function(f,d){for(var p=f._model,v=f._scheduler,g=d?f._componentsViews:f._chartsViews,m=d?f._componentsMap:f._chartsMap,y=f._zr,b=f._api,O=0;O<g.length;O++)g[O].__alive=!1;d?p.eachComponent(function(S,T){S!=="series"&&w(T)}):p.eachSeries(w);function w(S){var T=S.__requireNewView;S.__requireNewView=!1;var $="_ec_"+S.id+"_"+S.type,A=!T&&m[$];if(!A){var P=js(S.type),M=d?hn.getClass(P.main,P.sub):Kt.getClass(P.sub);process.env.NODE_ENV!=="production"&&je(M,P.sub+" does not exist."),A=new M,A.init(p,b),m[$]=A,g.push(A),y.add(A.group)}S.__viewId=A.__id=$,A.__alive=!0,A.__model=S,A.group.__ecComponentInfo={mainType:S.mainType,index:S.componentIndex},!d&&v.prepareView(A,S,p,b)}for(var O=0;O<g.length;){var x=g[O];x.__alive?O++:(!d&&x.renderTask.dispose(),y.remove(x.group),x.dispose(p,b),g.splice(O,1),m[x.__id]===x&&delete m[x.__id],x.__id=x.group.__ecComponentInfo=null)}},DO=function(f,d,p,v,g){var m=f._model;if(m.setUpdatePayload(p),!v){V([].concat(f._componentsViews).concat(f._chartsViews),x);return}var y={};y[v+"Id"]=p[v+"Id"],y[v+"Index"]=p[v+"Index"],y[v+"Name"]=p[v+"Name"];var b={mainType:v,query:y};g&&(b.subType=g);var O=p.excludeSeriesId,w;O!=null&&(w=Be(),V(nn(O),function(S){var T=ur(S,null);T!=null&&w.set(T,!0)})),m&&m.eachComponent(b,function(S){var T=w&&w.get(S.id)!=null;if(!T)if(OH(p))if(S instanceof rn)p.type===zd&&!p.notBlur&&!S.get(["emphasis","disabled"])&&aje(S,p,f._api);else{var $=H8(S.mainType,S.componentIndex,p.name,f._api),A=$.focusSelf,P=$.dispatchers;p.type===zd&&A&&!p.notBlur&&kR(S.mainType,S.componentIndex,f._api),P&&V(P,function(M){p.type===zd?iu(M):ou(M)})}else LR(p)&&S instanceof rn&&(uje(S,p,f._api),bH(S),Ko(f))},f),m&&m.eachComponent(b,function(S){var T=w&&w.get(S.id)!=null;T||x(f[v==="series"?"_chartsMap":"_componentsMap"][S.__viewId])},f);function x(S){S&&S.__alive&&S[d]&&S[d](S.__model,m,f._api,p)}},Bu={prepareAndUpdate:function(f){yp(this),Bu.update.call(this,f,{optionChanged:f.newOption!=null})},update:function(f,d){var p=this._model,v=this._api,g=this._zr,m=this._coordSysMgr,y=this._scheduler;if(p){p.setUpdatePayload(f),y.restoreData(p,f),y.performSeriesTasks(p),m.create(p,v),y.performDataProcessorTasks(p,f),ME(this,p),m.update(p,v),n(p),y.performVisualTasks(p,f),DE(this,p,v,f,d);var b=p.get("backgroundColor")||"transparent",O=p.get("darkMode");g.setBackgroundColor(b),O!=null&&O!=="auto"&&g.setDarkMode(O),ja.trigger("afterupdate",p,v)}},updateTransform:function(f){var d=this,p=this._model,v=this._api;if(p){p.setUpdatePayload(f);var g=[];p.eachComponent(function(y,b){if(y!=="series"){var O=d.getViewOfComponentModel(b);if(O&&O.__alive)if(O.updateTransform){var w=O.updateTransform(b,p,v,f);w&&w.update&&g.push(O)}else g.push(O)}});var m=Be();p.eachSeries(function(y){var b=d._chartsMap[y.__viewId];if(b.updateTransform){var O=b.updateTransform(y,p,v,f);O&&O.update&&m.set(y.uid,1)}else m.set(y.uid,1)}),n(p),this._scheduler.performVisualTasks(p,f,{setDirty:!0,dirtyMap:m}),RO(this,p,v,f,{},m),ja.trigger("afterupdate",p,v)}},updateView:function(f){var d=this._model;d&&(d.setUpdatePayload(f),Kt.markUpdateMethod(f,"updateView"),n(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0}),DE(this,d,this._api,f,{}),ja.trigger("afterupdate",d,this._api))},updateVisual:function(f){var d=this,p=this._model;p&&(p.setUpdatePayload(f),p.eachSeries(function(v){v.getData().clearAllVisual()}),Kt.markUpdateMethod(f,"updateVisual"),n(p),this._scheduler.performVisualTasks(p,f,{visualType:"visual",setDirty:!0}),p.eachComponent(function(v,g){if(v!=="series"){var m=d.getViewOfComponentModel(g);m&&m.__alive&&m.updateVisual(g,p,d._api,f)}}),p.eachSeries(function(v){var g=d._chartsMap[v.__viewId];g.updateVisual(v,p,d._api,f)}),ja.trigger("afterupdate",p,this._api))},updateLayout:function(f){Bu.update.call(this,f)}},EE=function(f,d,p,v){if(f._disposed){xo(f.id);return}for(var g=f._model,m=f._coordSysMgr.getCoordinateSystems(),y,b=fy(g,p),O=0;O<m.length;O++){var w=m[O];if(w[d]&&(y=w[d](g,b,v))!=null)return y}process.env.NODE_ENV!=="production"&&Mn("No coordinate system that supports "+d+" found by the given finder.")},ME=function(f,d){var p=f._chartsMap,v=f._scheduler;d.eachSeries(function(g){v.updateStreamModes(g,p[g.__viewId])})},IE=function(f,d){var p=this,v=this.getModel(),g=f.type,m=f.escapeConnect,y=JS[g],b=y.actionInfo,O=(b.update||"update").split(":"),w=O.pop(),x=O[0]!=null&&js(O[0]);this[ri]=!0;var S=[f],T=!1;f.batch&&(T=!0,S=ye(f.batch,function(L){return L=Ge(he({},L),f),L.batch=null,L}));var $=[],A,P=LR(f),M=OH(f);if(M&&lse(this._api),V(S,function(L){if(A=y.action(L,p._model,p._api),A=A||he({},L),A.type=b.event||A.type,$.push(A),M){var D=N8(f),B=D.queryOptionMap,F=D.mainTypeSpecified,z=F?B.keys()[0]:"series";DO(p,w,L,z),Ko(p)}else P?(DO(p,w,L,"series"),Ko(p)):x&&DO(p,w,L,x.main,x.sub)}),w!=="none"&&!M&&!P&&!x)try{this[Hi]?(yp(this),Bu.update.call(this,f),this[Hi]=null):Bu[w].call(this,f)}catch(L){throw this[ri]=!1,L}if(T?A={type:b.event||g,escapeConnect:m,batch:$}:A=$[0],this[ri]=!1,!d){var I=this._messageCenter;if(I.trigger(A.type,A),P){var R={type:"selectchanged",escapeConnect:m,selected:cje(v),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};I.trigger(R.type,R)}}},Um=function(f){for(var d=this._pendingActions;d.length;){var p=d.shift();IE.call(this,p,f)}},Zm=function(f){!f&&this.trigger("updated")},kG=function(f,d){f.on("rendered",function(p){d.trigger("rendered",p),f.animation.isFinished()&&!d[Hi]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},NG=function(f,d){f.on("mouseover",function(p){var v=p.target,g=wd(v,Dc);g&&(sje(g,p,d._api),Ko(d))}).on("mouseout",function(p){var v=p.target,g=wd(v,Dc);g&&(lje(g,p,d._api),Ko(d))}).on("click",function(p){var v=p.target,g=wd(v,function(b){return Ke(b).dataIndex!=null},!0);if(g){var m=g.selected?"unselect":"select",y=Ke(g);d._api.dispatchAction({type:m,dataType:y.dataType,dataIndexInside:y.dataIndex,seriesIndex:y.seriesIndex,isFromClick:!0})}})};function n(f){f.clearColorPalette(),f.eachSeries(function(d){d.clearColorPalette()})}function r(f){var d=[],p=[],v=!1;if(f.eachComponent(function(b,O){var w=O.get("zlevel")||0,x=O.get("z")||0,S=O.getZLevelKey();v=v||!!S,(b==="series"?p:d).push({zlevel:w,z:x,idx:O.componentIndex,type:b,key:S})}),v){var g=d.concat(p),m,y;fx(g,function(b,O){return b.zlevel===O.zlevel?b.z-O.z:b.zlevel-O.zlevel}),V(g,function(b){var O=f.getComponent(b.type,b.idx),w=b.zlevel,x=b.key;m!=null&&(w=Math.max(m,w)),x?(w===m&&x!==y&&w++,y=x):y&&(w===m&&w++,y=""),m=w,O.setZLevel(w)})}}DE=function(f,d,p,v,g){r(d),LG(f,d,p,v,g),V(f._chartsViews,function(m){m.__alive=!1}),RO(f,d,p,v,g),V(f._chartsViews,function(m){m.__alive||m.remove(d,p)})},LG=function(f,d,p,v,g,m){V(m||f._componentsViews,function(y){var b=y.__model;u(b,y),y.render(b,d,p,v),s(b,y),c(b,y)})},RO=function(f,d,p,v,g,m){var y=f._scheduler;g=he(g||{},{updatedSeries:d.getSeries()}),ja.trigger("series:beforeupdate",d,p,g);var b=!1;d.eachSeries(function(O){var w=f._chartsMap[O.__viewId];w.__alive=!0;var x=w.renderTask;y.updatePayload(x,v),u(O,w),m&&m.get(O.uid)&&x.dirty(),x.perform(y.getPerformArgs(x))&&(b=!0),w.group.silent=!!O.get("silent"),a(O,w),bH(O)}),y.unfinished=b||y.unfinished,ja.trigger("series:layoutlabels",d,p,g),ja.trigger("series:transition",d,p,g),d.eachSeries(function(O){var w=f._chartsMap[O.__viewId];s(O,w),c(O,w)}),o(f,d),ja.trigger("series:afterupdate",d,p,g)},Ko=function(f){f[PE]=!0,f.getZr().wakeUp()},VG=function(f){f[PE]&&(f.getZr().storage.traverse(function(d){fv(d)||i(d)}),f[PE]=!1)};function i(f){for(var d=[],p=f.currentStates,v=0;v<p.length;v++){var g=p[v];g==="emphasis"||g==="blur"||g==="select"||d.push(g)}f.selected&&f.states.select&&d.push("select"),f.hoverState===wP&&f.states.emphasis?d.push("emphasis"):f.hoverState===g_&&f.states.blur&&d.push("blur"),f.useStates(d)}function o(f,d){var p=f._zr,v=p.storage,g=0;v.traverse(function(m){m.isGroup||g++}),g>d.get("hoverLayerThreshold")&&!Ct.node&&!Ct.worker&&d.eachSeries(function(m){if(!m.preventUsingHoverLayer){var y=f._chartsMap[m.__viewId];y.__alive&&y.eachRendered(function(b){b.states.emphasis&&(b.states.emphasis.hoverLayer=!0)})}})}function a(f,d){var p=f.get("blendMode")||null;d.eachRendered(function(v){v.isGroup||(v.style.blend=p)})}function s(f,d){if(!f.preventAutoZ){var p=f.get("z")||0,v=f.get("zlevel")||0;d.eachRendered(function(g){return l(g,p,v,-1/0),!0})}}function l(f,d,p,v){var g=f.getTextContent(),m=f.getTextGuideLine(),y=f.isGroup;if(y)for(var b=f.childrenRef(),O=0;O<b.length;O++)v=Math.max(l(b[O],d,p,v),v);else f.z=d,f.zlevel=p,v=Math.max(f.z2,v);if(g&&(g.z=d,g.zlevel=p,isFinite(v)&&(g.z2=v+2)),m){var w=f.textGuideLineConfig;m.z=d,m.zlevel=p,isFinite(v)&&(m.z2=v+(w&&w.showAbove?1:-1))}return v}function u(f,d){d.eachRendered(function(p){if(!fv(p)){var v=p.getTextContent(),g=p.getTextGuideLine();p.stateTransition&&(p.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),p.hasState()?(p.prevStates=p.currentStates,p.clearStates()):p.prevStates&&(p.prevStates=null)}})}function c(f,d){var p=f.getModel("stateAnimation"),v=f.isAnimationEnabled(),g=p.get("duration"),m=g>0?{duration:g,delay:p.get("delay"),easing:p.get("easing")}:null;d.eachRendered(function(y){if(y.states&&y.states.emphasis){if(fv(y))return;if(y instanceof mt&&vje(y),y.__dirty){var b=y.prevStates;b&&y.useStates(b)}if(v){y.stateTransition=m;var O=y.getTextContent(),w=y.getTextGuideLine();O&&(O.stateTransition=m),w&&(w.stateTransition=m)}y.__dirty&&i(y)}})}BG=function(f){return new(function(d){ie(p,d);function p(){return d!==null&&d.apply(this,arguments)||this}return p.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},p.prototype.getComponentByElement=function(v){for(;v;){var g=v.__ecComponentInfo;if(g!=null)return f._model.getComponent(g.mainType,g.index);v=v.parent}},p.prototype.enterEmphasis=function(v,g){iu(v,g),Ko(f)},p.prototype.leaveEmphasis=function(v,g){ou(v,g),Ko(f)},p.prototype.enterBlur=function(v){ise(v),Ko(f)},p.prototype.leaveBlur=function(v){Q8(v),Ko(f)},p.prototype.enterSelect=function(v){ose(v),Ko(f)},p.prototype.leaveSelect=function(v){ase(v),Ko(f)},p.prototype.getModel=function(){return f.getModel()},p.prototype.getViewOfComponentModel=function(v){return f.getViewOfComponentModel(v)},p.prototype.getViewOfSeriesModel=function(v){return f.getViewOfSeriesModel(v)},p}(rle))(f)},Kle=function(f){function d(p,v){for(var g=0;g<p.length;g++){var m=p[g];m[$E]=v}}V(my,function(p,v){f._messageCenter.on(v,function(g){if(tC[f.group]&&f[$E]!==RG){if(g&&g.escapeConnect)return;var m=f.makeActionFromEvent(g),y=[];V(Wd,function(b){b!==f&&b.group===f.group&&y.push(b)}),d(y,RG),V(y,function(b){b[$E]!==GXe&&b.dispatchAction(m)}),d(y,jXe)}})})}}(),e}(Ma),_5=KS.prototype;_5.on=Ule("on");_5.off=Ule("off");_5.one=function(t,e,n){var r=this;Pa("ECharts#one is deprecated.");function i(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];e&&e.apply&&e.apply(this,o),r.off(t,i)}this.on.call(this,t,i,n)};var UXe=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function xo(t){process.env.NODE_ENV!=="production"&&Mn("Instance "+t+" has been disposed")}var JS={},my={},ek=[],tk=[],eC=[],Jle={},nk={},Wd={},tC={},ZXe=+new Date-0,XXe=+new Date-0,O5="_echarts_instance_";function eue(t,e,n){var r=!(n&&n.ssr);if(r){if(process.env.NODE_ENV!=="production"&&!t)throw new Error("Initialize failed: invalid dom.");var i=w5(t);if(i)return process.env.NODE_ENV!=="production"&&Mn("There is a chart instance already initialized on the dom."),i;process.env.NODE_ENV!=="production"&&Ec(t)&&t.nodeName.toUpperCase()!=="CANVAS"&&(!t.clientWidth&&(!n||n.width==null)||!t.clientHeight&&(!n||n.height==null))&&Mn("Can't get DOM width or height. Please check dom.clientWidth and dom.clientHeight. They should not be 0.For example, you may need to call this in the callback of window.onload.")}var o=new KS(t,e,n);return o.id="ec_"+ZXe++,Wd[o.id]=o,r&&Lae(t,O5,o.id),Kle(o),ja.trigger("afterinit",o),o}function YXe(t){if(ve(t)){var e=t;t=null,V(e,function(n){n.group!=null&&(t=n.group)}),t=t||"g_"+XXe++,V(e,function(n){n.group=t})}return tC[t]=!0,t}function tue(t){tC[t]=!1}var qXe=tue;function KXe(t){Ie(t)?t=Wd[t]:t instanceof KS||(t=w5(t)),t instanceof KS&&!t.isDisposed()&&t.dispose()}function w5(t){return Wd[rGe(t,O5)]}function JXe(t){return Wd[t]}function x5(t,e){Jle[t]=e}function S5(t){st(tk,t)<0&&tk.push(t)}function C5(t,e){T5(ek,t,e,BXe)}function nue(t){zP("afterinit",t)}function rue(t){zP("afterupdate",t)}function zP(t,e){ja.on(t,e)}function ms(t,e,n){Fe(e)&&(n=e,e="");var r=Qe(t)?t.type:[t,t={event:e}][0];t.event=(t.event||r).toLowerCase(),e=t.event,!my[e]&&(je(DG.test(r)&&DG.test(e)),JS[r]||(JS[r]={action:n,actionInfo:t}),my[e]=r)}function iue(t,e){Ih.register(t,e)}function eYe(t){var e=Ih.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function oue(t,e){T5(eC,t,e,Qle,"layout")}function Jc(t,e){T5(eC,t,e,Hle,"visual")}var zG=[];function T5(t,e,n,r,i){if((Fe(e)||Qe(e))&&(n=e,e=r),process.env.NODE_ENV!=="production"){if(isNaN(e)||e==null)throw new Error("Illegal priority");V(t,function(a){je(a.__raw!==n)})}if(!(st(zG,n)>=0)){zG.push(n);var o=Ele.wrapStageHandler(n,i);o.__prio=e,o.__raw=n,t.push(o)}}function P5(t,e){nk[t]=e}function tYe(t){process.env.NODE_ENV!=="production"&&Pa("setCanvasCreator is deprecated. Use setPlatformAPI({ createCanvas }) instead."),Qoe({createCanvas:t})}function aue(t,e,n){var r=Wle("registerMap");r&&r(t,e,n)}function nYe(t){var e=Wle("getMap");return e&&e(t)}var sue=vZe;Jc(b5,zZe);Jc(VP,FZe);Jc(VP,WZe);Jc(b5,tXe);Jc(VP,nXe);Jc(Gle,EXe);S5(ole);C5(NXe,XUe);P5("default",QZe);ms({type:zd,event:zd,update:zd},zn);ms({type:gx,event:gx,update:gx},zn);ms({type:dy,event:dy,update:dy},zn);ms({type:mx,event:mx,update:mx},zn);ms({type:hy,event:hy,update:hy},zn);x5("light",JZe);x5("dark",Rle);var rYe={},FG=[],iYe={registerPreprocessor:S5,registerProcessor:C5,registerPostInit:nue,registerPostUpdate:rue,registerUpdateLifecycle:zP,registerAction:ms,registerCoordinateSystem:iue,registerLayout:oue,registerVisual:Jc,registerTransform:sue,registerLoading:P5,registerMap:aue,registerImpl:MXe,PRIORITY:jle,ComponentModel:pt,ComponentView:hn,SeriesModel:rn,ChartView:Kt,registerComponentModel:function(t){pt.registerClass(t)},registerComponentView:function(t){hn.registerClass(t)},registerSeriesModel:function(t){rn.registerClass(t)},registerChartView:function(t){Kt.registerClass(t)},registerSubTypeDefaulter:function(t,e){pt.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Cae(t,e)}};function vt(t){if(ve(t)){V(t,function(e){vt(e)});return}st(FG,t)>=0||(FG.push(t),Fe(t)&&(t={install:t}),t.install(iYe))}function Xm(t){return t==null?0:t.length||1}function WG(t){return t}var au=function(){function t(e,n,r,i,o,a){this._old=e,this._new=n,this._oldKeyGetter=r||WG,this._newKeyGetter=i||WG,this.context=o,this._diffModeMultiple=a==="multiple"}return t.prototype.add=function(e){return this._add=e,this},t.prototype.update=function(e){return this._update=e,this},t.prototype.updateManyToOne=function(e){return this._updateManyToOne=e,this},t.prototype.updateOneToMany=function(e){return this._updateOneToMany=e,this},t.prototype.updateManyToMany=function(e){return this._updateManyToMany=e,this},t.prototype.remove=function(e){return this._remove=e,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var e=this._old,n=this._new,r={},i=new Array(e.length),o=new Array(n.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(n,r,o,"_newKeyGetter");for(var a=0;a<e.length;a++){var s=i[a],l=r[s],u=Xm(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)},t.prototype._executeMultiple=function(){var e=this._old,n=this._new,r={},i={},o=[],a=[];this._initIndexMap(e,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=Xm(u),d=Xm(c);if(f>1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(f===1&&d===1)this._update&&this._update(c,u),i[l]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(f>1)for(var p=0;p<f;p++)this._remove&&this._remove(u[p]);else this._remove&&this._remove(u)}this._performRestAdd(a,i)},t.prototype._performRestAdd=function(e,n){for(var r=0;r<e.length;r++){var i=e[r],o=n[i],a=Xm(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}},t.prototype._initIndexMap=function(e,n,r,i){for(var o=this._diffModeMultiple,a=0;a<e.length;a++){var s="_ec_"+this[i](e[a],a);if(o||(r[a]=s),!!n){var l=n[s],u=Xm(l);u===0?(n[s]=a,o&&r.push(s)):u===1?n[s]=[l,a]:l.push(a)}}},t}(),oYe=function(){function t(e,n){this._encode=e,this._schema=n}return t.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},t.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},t}();function aYe(t,e){var n={},r=n.encode={},i=Be(),o=[],a=[],s={};V(t.dimensions,function(d){var p=t.getDimensionInfo(d),v=p.coordDim;if(v){process.env.NODE_ENV!=="production"&&je(QR.get(v)==null);var g=p.coordDimIndex;RE(r,v)[g]=d,p.isExtraCoord||(i.set(v,1),sYe(p.type)&&(o[0]=d),RE(s,v)[g]=t.getDimensionIndex(p.name)),p.defaultTooltip&&a.push(d)}QR.each(function(m,y){var b=RE(r,y),O=p.otherDims[y];O!=null&&O!==!1&&(b[O]=p.name)})});var l=[],u={};i.each(function(d,p){var v=r[p];u[p]=v[0],l=l.concat(v)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=ye(l,function(d){return t.getDimensionInfo(d).storeDimIndex}),n.encodeFirstDimNotExtra=u;var c=r.label;c&&c.length&&(o=c.slice());var f=r.tooltip;return f&&f.length?a=f.slice():a.length||(a=o.slice()),r.defaultedLabel=o,r.defaultedTooltip=a,n.userOutput=new oYe(s,e),n}function RE(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function nC(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function sYe(t){return!(t==="ordinal"||t==="time")}var xx=function(){function t(e){this.otherDims={},e!=null&&he(this,e)}return t}(),lYe=$t(),uYe={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},lue=function(){function t(e){this.dimensions=e.dimensions,this._dimOmitted=e.dimensionOmitted,this.source=e.source,this._fullDimCount=e.fullDimensionCount,this._updateDimOmitted(e.dimensionOmitted)}return t.prototype.isDimensionOmitted=function(){return this._dimOmitted},t.prototype._updateDimOmitted=function(e){this._dimOmitted=e,e&&(this._dimNameMap||(this._dimNameMap=fue(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return Je(this._dimNameMap.get(e),-1)},t.prototype.getSourceDimension=function(e){var n=this.source.dimensionsDefine;if(n)return n[e]},t.prototype.makeStoreSchema=function(){for(var e=this._fullDimCount,n=sle(this.source),r=!due(e),i="",o=[],a=0,s=0;a<e;a++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===a)l=n?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var d=this.getSourceDimension(a);d&&(l=n?d.name:null,u=d.type)}o.push({property:l,type:u,ordinalMeta:c}),n&&l!=null&&(!f||!f.isCalculationCoord)&&(i+=r?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=uYe[u]||"f",c&&(i+=c.uid),i+="$"}var p=this.source,v=[p.seriesLayoutBy,p.startIndex,i].join("$$");return{dimensions:o,hash:v}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],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)}e.push(i)}return e},t.prototype.appendCalculationDimension=function(e){this.dimensions.push(e),e.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},t}();function uue(t){return t instanceof lue}function cue(t){for(var e=Be(),n=0;n<(t||[]).length;n++){var r=t[n],i=Qe(r)?r.name:r;i!=null&&e.get(i)==null&&e.set(i,n)}return e}function fue(t){var e=lYe(t);return e.dimNameMap||(e.dimNameMap=cue(t.dimensionsDefine))}function due(t){return t>30}var Ym=Qe,Vu=ye,cYe=typeof Int32Array>"u"?Array:Int32Array,fYe="e\0\0",QG=-1,dYe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],hYe=["_approximateExtent"],HG,kO,qm,bp,kE,NO,NE,pYe=function(){function t(e,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","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var r,i=!1;uue(e)?(r=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,r=e),r=r||["x","y"];for(var o={},a=[],s={},l=!1,u={},c=0;c<r.length;c++){var f=r[c],d=Ie(f)?new xx({name:f}):f instanceof xx?f:new xx(f),p=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=p,d.coordDimIndex=0);var v=d.otherDims=d.otherDims||{};a.push(p),o[p]=d,u[p]!=null&&(l=!0),d.createInvertedIndices&&(s[p]=[]),v.itemName===0&&(this._nameDimIdx=c),v.itemId===0&&(this._idDimIdx=c),process.env.NODE_ENV!=="production"&&je(i||d.storeDimIndex>=0),i&&(d.storeDimIndex=c)}if(this.dimensions=a,this._dimInfos=o,this._initGetDimensionInfo(l),this.hostModel=n,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=Be();V(a,function(m){g.set(o[m].storeDimIndex,m)})}}return t.prototype.getDimension=function(e){var n=this._recognizeDimIndex(e);if(n==null)return e;if(n=e,!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},t.prototype.getDimensionIndex=function(e){var n=this._recognizeDimIndex(e);if(n!=null)return n;if(e==null)return-1;var r=this._getDimInfo(e);return r?r.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(e):-1},t.prototype._recognizeDimIndex=function(e){if(It(e)||e!=null&&!isNaN(e)&&!this._getDimInfo(e)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(e)<0))return+e},t.prototype._getStoreDimIndex=function(e){var n=this.getDimensionIndex(e);if(process.env.NODE_ENV!=="production"&&n==null)throw new Error("Unknown dimension "+e);return n},t.prototype.getDimensionInfo=function(e){return this._getDimInfo(this.getDimension(e))},t.prototype._initGetDimensionInfo=function(e){var n=this._dimInfos;this._getDimInfo=e?function(r){return n.hasOwnProperty(r)?n[r]:void 0}:function(r){return n[r]}},t.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},t.prototype.mapDimension=function(e,n){var r=this._dimSummary;if(n==null)return r.encodeFirstDimNotExtra[e];var i=r.encode[e];return i?i[n]:null},t.prototype.mapDimensionsAll=function(e){var n=this._dimSummary,r=n.encode[e];return(r||[]).slice()},t.prototype.getStore=function(){return this._store},t.prototype.initData=function(e,n,r){var i=this,o;if(e instanceof UR&&(o=e),!o){var a=this.dimensions,s=d5(e)||Yr(e)?new lle(e,a.length):e;o=new UR;var l=Vu(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=aYe(this,this._schema),this.userOutput=this._dimSummary.userOutput},t.prototype.appendData=function(e){var n=this._store.appendData(e);this._doInit(n[0],n[1])},t.prototype.appendValues=function(e,n){var r=this._store.appendValues(e,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&&NE(this,s)}},t.prototype._updateOrdinalMeta=function(){for(var e=this._store,n=this.dimensions,r=0;r<n.length;r++){var i=this._dimInfos[n[r]];i.ordinalMeta&&e.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},t.prototype._shouldMakeIdFromName=function(){var e=this._store.getProvider();return this._idDimIdx==null&&e.getSource().sourceFormat!==Xl&&!e.fillStorage},t.prototype._doInit=function(e,n){if(!(e>=n)){var r=this._store,i=r.getProvider();this._updateOrdinalMeta();var o=this._nameList,a=this._idList,s=i.getSource().sourceFormat,l=s===Da;if(l&&!i.pure)for(var u=[],c=e;c<n;c++){var f=i.getItem(c,u);if(!this.hasItemOption&&HHe(f)&&(this.hasItemOption=!0),f){var d=f.name;o[c]==null&&d!=null&&(o[c]=ur(d,null));var p=f.id;a[c]==null&&p!=null&&(a[c]=ur(p,null))}}if(this._shouldMakeIdFromName())for(var c=e;c<n;c++)NE(this,c);HG(this)}},t.prototype.getApproximateExtent=function(e){return this._approximateExtent[e]||this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.setApproximateExtent=function(e,n){n=this.getDimension(n),this._approximateExtent[n]=e.slice()},t.prototype.getCalculationInfo=function(e){return this._calculationInfo[e]},t.prototype.setCalculationInfo=function(e,n){Ym(e)?he(this._calculationInfo,e):this._calculationInfo[e]=n},t.prototype.getName=function(e){var n=this.getRawIndex(e),r=this._nameList[n];return r==null&&this._nameDimIdx!=null&&(r=qm(this,this._nameDimIdx,n)),r==null&&(r=""),r},t.prototype._getCategory=function(e,n){var r=this._store.get(e,n),i=this._store.getOrdinalMeta(e);return i?i.categories[r]:r},t.prototype.getId=function(e){return kO(this,this.getRawIndex(e))},t.prototype.count=function(){return this._store.count()},t.prototype.get=function(e,n){var r=this._store,i=this._dimInfos[e];if(i)return r.get(i.storeDimIndex,n)},t.prototype.getByRawIndex=function(e,n){var r=this._store,i=this._dimInfos[e];if(i)return r.getByRawIndex(i.storeDimIndex,n)},t.prototype.getIndices=function(){return this._store.getIndices()},t.prototype.getDataExtent=function(e){return this._store.getDataExtent(this._getStoreDimIndex(e))},t.prototype.getSum=function(e){return this._store.getSum(this._getStoreDimIndex(e))},t.prototype.getMedian=function(e){return this._store.getMedian(this._getStoreDimIndex(e))},t.prototype.getValues=function(e,n){var r=this,i=this._store;return ve(e)?i.getValues(Vu(e,function(o){return r._getStoreDimIndex(o)}),n):i.getValues(e)},t.prototype.hasValue=function(e){for(var n=this._dimSummary.dataDimIndicesOnCoord,r=0,i=n.length;r<i;r++)if(isNaN(this._store.get(n[r],e)))return!1;return!0},t.prototype.indexOfName=function(e){for(var n=0,r=this._store.count();n<r;n++)if(this.getName(n)===e)return n;return-1},t.prototype.getRawIndex=function(e){return this._store.getRawIndex(e)},t.prototype.indexOfRawIndex=function(e){return this._store.indexOfRawIndex(e)},t.prototype.rawIndexOf=function(e,n){var r=e&&this._invertedIndicesMap[e];if(process.env.NODE_ENV!=="production"&&!r)throw new Error("Do not supported yet");var i=r[n];return i==null||isNaN(i)?QG:i},t.prototype.indicesOfNearest=function(e,n,r){return this._store.indicesOfNearest(this._getStoreDimIndex(e),n,r)},t.prototype.each=function(e,n,r){Fe(e)&&(r=n,n=e,e=[]);var i=r||this,o=Vu(bp(e),this._getStoreDimIndex,this);this._store.each(o,i?Re(n,i):n)},t.prototype.filterSelf=function(e,n,r){Fe(e)&&(r=n,n=e,e=[]);var i=r||this,o=Vu(bp(e),this._getStoreDimIndex,this);return this._store=this._store.filter(o,i?Re(n,i):n),this},t.prototype.selectRange=function(e){var n=this,r={},i=bt(e);return V(i,function(o){var a=n._getStoreDimIndex(o);r[a]=e[o]}),this._store=this._store.selectRange(r),this},t.prototype.mapArray=function(e,n,r){Fe(e)&&(r=n,n=e,e=[]),r=r||this;var i=[];return this.each(e,function(){i.push(n&&n.apply(this,arguments))},r),i},t.prototype.map=function(e,n,r,i){var o=r||i||this,a=Vu(bp(e),this._getStoreDimIndex,this),s=NO(this);return s._store=this._store.map(a,o?Re(n,o):n),s},t.prototype.modify=function(e,n,r,i){var o=this,a=r||i||this;process.env.NODE_ENV!=="production"&&V(bp(e),function(l){var u=o.getDimensionInfo(l);u.isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var s=Vu(bp(e),this._getStoreDimIndex,this);this._store.modify(s,a?Re(n,a):n)},t.prototype.downSample=function(e,n,r,i){var o=NO(this);return o._store=this._store.downSample(this._getStoreDimIndex(e),n,r,i),o},t.prototype.lttbDownSample=function(e,n){var r=NO(this);return r._store=this._store.lttbDownSample(this._getStoreDimIndex(e),n),r},t.prototype.getRawDataItem=function(e){return this._store.getRawDataItem(e)},t.prototype.getItemModel=function(e){var n=this.hostModel,r=this.getRawDataItem(e);return new tn(r,n,n&&n.ecModel)},t.prototype.diff=function(e){var n=this;return new au(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(r){return kO(e,r)},function(r){return kO(n,r)})},t.prototype.getVisual=function(e){var n=this._visual;return n&&n[e]},t.prototype.setVisual=function(e,n){this._visual=this._visual||{},Ym(e)?he(this._visual,e):this._visual[e]=n},t.prototype.getItemVisual=function(e,n){var r=this._itemVisuals[e],i=r&&r[n];return i??this.getVisual(n)},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(e,n){var r=this._itemVisuals,i=r[e];i||(i=r[e]={});var o=i[n];return o==null&&(o=this.getVisual(n),ve(o)?o=o.slice():Ym(o)&&(o=he({},o)),i[n]=o),o},t.prototype.setItemVisual=function(e,n,r){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,Ym(n)?he(i,n):i[n]=r},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,n){Ym(e)?he(this._layout,e):this._layout[e]=n},t.prototype.getLayout=function(e){return this._layout[e]},t.prototype.getItemLayout=function(e){return this._itemLayouts[e]},t.prototype.setItemLayout=function(e,n,r){this._itemLayouts[e]=r?he(this._itemLayouts[e]||{},n):n},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(e,n){var r=this.hostModel&&this.hostModel.seriesIndex;DR(r,this.dataType,e,n),this._graphicEls[e]=n},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,n){V(this._graphicEls,function(r,i){r&&e&&e.call(n,r,i)})},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Vu(this.dimensions,this._getDimInfo,this),this.hostModel)),kE(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,n){var r=this[e];Fe(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=r.apply(this,arguments);return n.apply(this,[i].concat(uP(arguments)))})},t.internalField=function(){HG=function(e){var n=e._invertedIndicesMap;V(n,function(r,i){var o=e._dimInfos[i],a=o.ordinalMeta,s=e._store;if(a){r=n[i]=new cYe(a.categories.length);for(var l=0;l<r.length;l++)r[l]=QG;for(var l=0;l<s.count();l++)r[s.get(o.storeDimIndex,l)]=l}})},qm=function(e,n,r){return ur(e._getCategory(n,r),null)},kO=function(e,n){var r=e._idList[n];return r==null&&e._idDimIdx!=null&&(r=qm(e,e._idDimIdx,n)),r==null&&(r=fYe+n),r},bp=function(e){return ve(e)||(e=e!=null?[e]:[]),e},NO=function(e){var n=new t(e._schema?e._schema:Vu(e.dimensions,e._getDimInfo,e),e.hostModel);return kE(n,e),n},kE=function(e,n){V(dYe.concat(n.__wrappedMethods||[]),function(r){n.hasOwnProperty(r)&&(e[r]=n[r])}),e.__wrappedMethods=n.__wrappedMethods,V(hYe,function(r){e[r]=Ue(n[r])}),e._calculationInfo=he({},n._calculationInfo)},NE=function(e,n){var r=e._nameList,i=e._idList,o=e._nameDimIdx,a=e._idDimIdx,s=r[n],l=i[n];if(s==null&&o!=null&&(r[n]=s=qm(e,o,n)),l==null&&a!=null&&(i[n]=l=qm(e,a,n)),l==null&&s!=null){var u=e._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),i[n]=l}}}(),t}();const fi=pYe;function vYe(t,e){return Fg(t,e).dimensions}function Fg(t,e){d5(t)||(t=h5(t)),e=e||{};var n=e.coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],i=Be(),o=[],a=mYe(t,n,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&due(a),l=r===t.dimensionsDefine,u=l?fue(t):cue(r),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,a));for(var f=Be(c),d=new gle(a),p=0;p<d.length;p++)d[p]=-1;function v(A){var P=d[A];if(P<0){var M=r[A],I=Qe(M)?M:{name:M},R=new xx,L=I.name;L!=null&&u.get(L)!=null&&(R.name=R.displayName=L),I.type!=null&&(R.type=I.type),I.displayName!=null&&(R.displayName=I.displayName);var D=o.length;return d[A]=D,R.storeDimIndex=A,o.push(R),R}return o[P]}if(!s)for(var p=0;p<a;p++)v(p);f.each(function(A,P){var M=nn(A).slice();if(M.length===1&&!Ie(M[0])&&M[0]<0){f.set(P,!1);return}var I=f.set(P,[]);V(M,function(R,L){var D=Ie(R)?u.get(R):R;D!=null&&D<a&&(I[L]=D,m(v(D),P,L))})});var g=0;V(n,function(A){var P,M,I,R;if(Ie(A))P=A,R={};else{R=A,P=R.name;var L=R.ordinalMeta;R.ordinalMeta=null,R=he({},R),R.ordinalMeta=L,M=R.dimsDef,I=R.otherDims,R.name=R.coordDim=R.coordDimIndex=R.dimsDef=R.otherDims=null}var D=f.get(P);if(D!==!1){if(D=nn(D),!D.length)for(var B=0;B<(M&&M.length||1);B++){for(;g<a&&v(g).coordDim!=null;)g++;g<a&&D.push(g++)}V(D,function(F,z){var W=v(F);if(l&&R.type!=null&&(W.type=R.type),m(Ge(W,R),P,z),W.name==null&&M){var j=M[z];!Qe(j)&&(j={name:j}),W.name=W.displayName=j.name,W.defaultTooltip=j.defaultTooltip}I&&Ge(W.otherDims,I)})}});function m(A,P,M){QR.get(P)!=null?A.otherDims[P]=M:(A.coordDim=P,A.coordDimIndex=M,i.set(P,!0))}var y=e.generateCoord,b=e.generateCoordCount,O=b!=null;b=y?b||1:0;var w=y||"value";function x(A){A.name==null&&(A.name=A.coordDim)}if(s)V(o,function(A){x(A)}),o.sort(function(A,P){return A.storeDimIndex-P.storeDimIndex});else for(var S=0;S<a;S++){var T=v(S),$=T.coordDim;$==null&&(T.coordDim=yYe(w,i,O),T.coordDimIndex=0,(!y||b<=0)&&(T.isExtraCoord=!0),b--),x(T),T.type==null&&(ele(t,S)===Br.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type="ordinal")}return gYe(o),new lue({source:t,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function gYe(t){for(var e=Be(),n=0;n<t.length;n++){var r=t[n],i=r.name,o=e.get(i)||0;o>0&&(r.name=i+(o-1)),o++,e.set(i,o)}}function mYe(t,e,n,r){var i=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return V(e,function(o){var a;Qe(o)&&(a=o.dimsDef)&&(i=Math.max(i,a.length))}),i}function yYe(t,e,n){if(n||e.hasKey(t)){for(var r=0;e.hasKey(t+r);)r++;t+=r}return e.set(t,!0),t}var bYe=function(){function t(e){this.coordSysDims=[],this.axisMap=Be(),this.categoryAxisMap=Be(),this.coordSysName=e}return t}();function _Ye(t){var e=t.get("coordinateSystem"),n=new bYe(e),r=OYe[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}var OYe={cartesian2d:function(t,e,n,r){var i=t.getReferringComponents("xAxis",rr).models[0],o=t.getReferringComponents("yAxis",rr).models[0];if(process.env.NODE_ENV!=="production"){if(!i)throw new Error('xAxis "'+Zn(t.get("xAxisIndex"),t.get("xAxisId"),0)+'" not found');if(!o)throw new Error('yAxis "'+Zn(t.get("xAxisIndex"),t.get("yAxisId"),0)+'" not found')}e.coordSysDims=["x","y"],n.set("x",i),n.set("y",o),_p(i)&&(r.set("x",i),e.firstCategoryDimIndex=0),_p(o)&&(r.set("y",o),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var i=t.getReferringComponents("singleAxis",rr).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error("singleAxis should be specified.");e.coordSysDims=["single"],n.set("single",i),_p(i)&&(r.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var i=t.getReferringComponents("polar",rr).models[0],o=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");if(process.env.NODE_ENV!=="production"){if(!a)throw new Error("angleAxis option not found");if(!o)throw new Error("radiusAxis option not found")}e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),_p(o)&&(r.set("radius",o),e.firstCategoryDimIndex=0),_p(a)&&(r.set("angle",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,r){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,r){var i=t.ecModel,o=i.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();V(o.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=a[l];n.set(c,u),_p(u)&&(r.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function _p(t){return t.get("type")==="category"}function hue(t,e,n){n=n||{};var r=n.byIndex,i=n.stackedCoordDimension,o,a,s;wYe(e)?o=e:(a=e.schema,o=a.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,c,f,d;if(V(o,function(b,O){Ie(b)&&(o[O]=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_"+t.id,d="__\0ecstackedover_"+t.id,u&&(u.createInvertedIndices=!0);var p=c.coordDim,v=c.type,g=0;V(o,function(b){b.coordDim===p&&g++});var m={name:f,coordDim:p,coordDimIndex:g,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length},y={name:d,coordDim:d,coordDimIndex:g+1,type:v,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:o.length+1};a?(s&&(m.storeDimIndex=s.ensureCalculationDimension(d,v),y.storeDimIndex=s.ensureCalculationDimension(f,v)),a.appendCalculationDimension(m),a.appendCalculationDimension(y)):(o.push(m),o.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:d,stackResultDimension:f}}function wYe(t){return!uue(t.schema)}function su(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function $5(t,e){return su(t,e)?t.getCalculationInfo("stackResultDimension"):e}function xYe(t,e){var n=t.get("coordinateSystem"),r=Ih.get(n),i;return e&&e.coordSysDims&&(i=ye(e.coordSysDims,function(o){var a={name:o},s=e.axisMap.get(o);if(s){var l=s.get("type");a.type=nC(l)}return a})),i||(i=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),i}function SYe(t,e,n){var r,i;return n&&V(t,function(o,a){var s=o.coordDim,l=n.categoryAxisMap.get(s);l&&(r==null&&(r=a),o.ordinalMeta=l.getOrdinalMeta(),e&&(o.createInvertedIndices=!0)),o.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(t[r].otherDims.itemName=0),r}function pl(t,e,n){n=n||{};var r=e.getSourceManager(),i,o=!1;t?(o=!0,i=h5(t)):(i=r.getSource(),o=i.sourceFormat===Da);var a=_Ye(e),s=xYe(e,a),l=n.useEncodeDefaulter,u=Fe(l)?l:l?nt(Jse,s,e):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o},f=Fg(i,c),d=SYe(f.dimensions,n.createInvertedIndices,a),p=o?null:r.getSharedDataStore(f),v=hue(e,{schema:f,store:p}),g=new fi(f,e);g.setCalculationInfo(v);var m=d!=null&&CYe(i)?function(y,b,O,w){return w===d?O:this.defaultDimValueGetter(y,b,O,w)}:null;return g.hasItemOption=!1,g.initData(o?i:p,null,m),g}function CYe(t){if(t.sourceFormat===Da){var e=TYe(t.data||[]);return!ve($g(e))}}function TYe(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var vl=function(){function t(e){this._setting=e||{},this._extent=[1/0,-1/0]}return t.prototype.getSetting=function(e){return this._setting[e]},t.prototype.unionExtent=function(e){var n=this._extent;e[0]<n[0]&&(n[0]=e[0]),e[1]>n[1]&&(n[1]=e[1])},t.prototype.unionExtentFromData=function(e,n){this.unionExtent(e.getApproximateExtent(n))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(e,n){var r=this._extent;isNaN(e)||(r[0]=e),isNaN(n)||(r[1]=n)},t.prototype.isInExtentRange=function(e){return this._extent[0]<=e&&this._extent[1]>=e},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(e){this._isBlank=e},t}();yP(vl);var PYe=0,rk=function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++PYe}return t.createByAxisModel=function(e){var n=e.option,r=n.data,i=r&&ye(r,$Ye);return new t({categories:i,needCollect:!i,deduplication:n.dedplication!==!1})},t.prototype.getOrdinal=function(e){return this._getOrCreateMap().get(e)},t.prototype.parseAndCollect=function(e){var n,r=this._needCollect;if(!Ie(e)&&!r)return e;if(r&&!this._deduplication)return n=this.categories.length,this.categories[n]=e,n;var i=this._getOrCreateMap();return n=i.get(e),n==null&&(r?(n=this.categories.length,this.categories[n]=e,i.set(e,n)):n=NaN),n},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Be(this.categories))},t}();function $Ye(t){return Qe(t)&&t.value!=null?t.value:t+""}function AYe(t){var e=Math.pow(10,p_(Math.abs(t))),n=Math.abs(t/e);return n===0||n===1||n===2||n===3||n===5}function ik(t){return t.type==="interval"||t.type==="log"}function EYe(t,e,n,r){var i={},o=t[1]-t[0],a=i.interval=R8(o/e,!0);n!=null&&a<n&&(a=i.interval=n),r!=null&&a>r&&(a=i.interval=r);var s=i.intervalPrecision=pue(a),l=i.niceTickExtent=[Nn(Math.ceil(t[0]/a)*a,s),Nn(Math.floor(t[1]/a)*a,s)];return MYe(l,t),i}function LE(t){var e=Math.pow(10,p_(t)),n=t/e;return n?n===2?n=3:n===3?n=5:n*=2:n=1,Nn(n*e)}function pue(t){return Ya(t)+2}function GG(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function MYe(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),GG(t,0,e),GG(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function FP(t,e){return t>=e[0]&&t<=e[1]}function WP(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function QP(t,e){return t*(e[1]-e[0])+e[0]}var HP=function(t){ie(e,t);function e(n){var r=t.call(this,n)||this;r.type="ordinal";var i=r.getSetting("ordinalMeta");return i||(i=new rk({})),ve(i)&&(i=new rk({categories:ye(i,function(o){return Qe(o)?o.value:o})})),r._ordinalMeta=i,r._extent=r.getSetting("extent")||[0,i.categories.length-1],r}return e.prototype.parse=function(n){return n==null?NaN:Ie(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},e.prototype.contain=function(n){return n=this.parse(n),FP(n,this._extent)&&this._ordinalMeta.categories[n]!=null},e.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),WP(n,this._extent)},e.prototype.scale=function(n){return n=Math.round(QP(n,this._extent)),this.getRawOrdinalNumber(n)},e.prototype.getTicks=function(){for(var n=[],r=this._extent,i=r[0];i<=r[1];)n.push({value:i}),i++;return n},e.prototype.getMinorTicks=function(n){},e.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}},e.prototype._getTickNumber=function(n){var r=this._ticksByOrdinalNumber;return r&&n>=0&&n<r.length?r[n]:n},e.prototype.getRawOrdinalNumber=function(n){var r=this._ordinalNumbersByTick;return r&&n>=0&&n<r.length?r[n]:n},e.prototype.getLabel=function(n){if(!this.isBlank()){var r=this.getRawOrdinalNumber(n.value),i=this._ordinalMeta.categories[r];return i==null?"":i+""}},e.prototype.count=function(){return this._extent[1]-this._extent[0]+1},e.prototype.unionExtentFromData=function(n,r){this.unionExtent(n.getApproximateExtent(r))},e.prototype.isInExtentRange=function(n){return n=this._getTickNumber(n),this._extent[0]<=n&&this._extent[1]>=n},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(vl);vl.registerClass(HP);var Wf=Nn,lu=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="interval",n._interval=0,n._intervalPrecision=2,n}return e.prototype.parse=function(n){return n},e.prototype.contain=function(n){return FP(n,this._extent)},e.prototype.normalize=function(n){return WP(n,this._extent)},e.prototype.scale=function(n){return QP(n,this._extent)},e.prototype.setExtent=function(n,r){var i=this._extent;isNaN(n)||(i[0]=parseFloat(n)),isNaN(r)||(i[1]=parseFloat(r))},e.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])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(n){this._interval=n,this._niceExtent=this._extent.slice(),this._intervalPrecision=pue(n)},e.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:Wf(o[0]-r,a)}):s.push({value:i[0]}));for(var u=o[0];u<=o[1]&&(s.push({value:u}),u=Wf(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:Wf(c+r,a)}):s.push({value:i[1]})),s},e.prototype.getMinorTicks=function(n){for(var r=this.getTicks(!0),i=[],o=this.getExtent(),a=1;a<r.length;a++){for(var s=r[a],l=r[a-1],u=0,c=[],f=s.value-l.value,d=f/n;u<n-1;){var p=Wf(l.value+(u+1)*d);p>o[0]&&p<o[1]&&c.push(p),u++}i.push(c)}return i},e.prototype.getLabel=function(n,r){if(n==null)return"";var i=r&&r.precision;i==null?i=Ya(n.value)||0:i==="auto"&&(i=this._intervalPrecision);var o=Wf(n.value,i,!0);return i5(o)},e.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=EYe(o,n,r,i);this._intervalPrecision=s.intervalPrecision,this._interval=s.interval,this._niceExtent=s.niceTickExtent}},e.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]=Wf(Math.floor(r[0]/a)*a)),n.fixMax||(r[1]=Wf(Math.ceil(r[1]/a)*a))},e.prototype.setNiceExtent=function(n,r){this._niceExtent=[n,r]},e.type="interval",e}(vl);vl.registerClass(lu);var vue=typeof Float32Array<"u",IYe=vue?Float32Array:Array;function Us(t){return ve(t)?vue?new Float32Array(t):t:new IYe(t)}var ok="__ec_stack_";function A5(t){return t.get("stack")||ok+t.seriesIndex}function E5(t){return t.dim+t.index}function DYe(t){var e=[],n=t.axis,r="axis0";if(n.type==="category"){for(var i=n.getBandWidth(),o=0;o<t.count;o++)e.push(Ge({bandWidth:i,axisKey:r,stackId:ok+o},t));for(var a=yue(e),s=[],o=0;o<t.count;o++){var l=a[r][ok+o];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function gue(t,e){var n=[];return e.eachSeriesByType(t,function(r){Oue(r)&&n.push(r)}),n}function RYe(t){var e={};V(t,function(l){var u=l.coordinateSystem,c=u.getBaseAxis();if(!(c.type!=="time"&&c.type!=="value"))for(var f=l.getData(),d=c.dim+"_"+c.index,p=f.getDimensionIndex(f.mapDimension(c.dim)),v=f.getStore(),g=0,m=v.count();g<m;++g){var y=v.get(p,g);e[d]?e[d].push(y):e[d]=[y]}});var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[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 mue(t){var e=RYe(t),n=[];return V(t,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=e[l],c=Math.abs(a[1]-a[0]),f=o.scale.getExtent(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var p=r.getData();s=Math.abs(a[1]-a[0])/p.count()}var v=Me(r.get("barWidth"),s),g=Me(r.get("barMaxWidth"),s),m=Me(r.get("barMinWidth")||(wue(r)?.5:1),s),y=r.get("barGap"),b=r.get("barCategoryGap");n.push({bandWidth:s,barWidth:v,barMaxWidth:g,barMinWidth:m,barGap:y,barCategoryGap:b,axisKey:E5(o),stackId:A5(r)})}),yue(n)}function yue(t){var e={};V(t,function(r,i){var o=r.axisKey,a=r.bandWidth,s=e[o]||{bandWidth:a,remainedWidth:a,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[o]=s;var u=r.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=r.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=r.barMaxWidth;f&&(l[u].maxWidth=f);var d=r.barMinWidth;d&&(l[u].minWidth=d);var p=r.barGap;p!=null&&(s.gap=p);var v=r.barCategoryGap;v!=null&&(s.categoryGap=v)});var n={};return V(e,function(r,i){n[i]={};var o=r.stacks,a=r.bandWidth,s=r.categoryGap;if(s==null){var l=bt(o).length;s=Math.max(35-l*4,15)+"%"}var u=Me(s,a),c=Me(r.gap,1),f=r.remainedWidth,d=r.autoWidthCount,p=(f-u)/(d+(d-1)*c);p=Math.max(p,0),V(o,function(y){var b=y.maxWidth,O=y.minWidth;if(y.width){var w=y.width;b&&(w=Math.min(w,b)),O&&(w=Math.max(w,O)),y.width=w,f-=w+c*w,d--}else{var w=p;b&&b<w&&(w=Math.min(b,f)),O&&O>w&&(w=O),w!==p&&(y.width=w,f-=w+c*w,d--)}}),p=(f-u)/(d+(d-1)*c),p=Math.max(p,0);var v=0,g;V(o,function(y,b){y.width||(y.width=p),g=y,v+=y.width*(1+c)}),g&&(v-=g.width*c);var m=-v/2;V(o,function(y,b){n[i][b]=n[i][b]||{bandWidth:a,offset:m,width:y.width},m+=y.width*(1+c)})}),n}function kYe(t,e,n){if(t&&e){var r=t[E5(e)];return r!=null&&n!=null?r[A5(n)]:r}}function bue(t,e){var n=gue(t,e),r=mue(n);V(n,function(i){var o=i.getData(),a=i.coordinateSystem,s=a.getBaseAxis(),l=A5(i),u=r[E5(s)][l],c=u.offset,f=u.width;o.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function _ue(t){return{seriesType:t,plan:Bg(),reset:function(e){if(Oue(e)){var n=e.getData(),r=e.coordinateSystem,i=r.getBaseAxis(),o=r.getOtherAxis(i),a=n.getDimensionIndex(n.mapDimension(o.dim)),s=n.getDimensionIndex(n.mapDimension(i.dim)),l=e.get("showBackground",!0),u=n.mapDimension(o.dim),c=n.getCalculationInfo("stackResultDimension"),f=su(n,u)&&!!n.getCalculationInfo("stackedOnSeries"),d=o.isHorizontal(),p=NYe(i,o),v=wue(e),g=e.get("barMinHeight")||0,m=c&&n.getDimensionIndex(c),y=n.getLayout("size"),b=n.getLayout("offset");return{progress:function(O,w){for(var x=O.count,S=v&&Us(x*3),T=v&&l&&Us(x*3),$=v&&Us(x),A=r.master.getRect(),P=d?A.width:A.height,M,I=w.getStore(),R=0;(M=O.next())!=null;){var L=I.get(f?m:a,M),D=I.get(s,M),B=p,F=void 0;f&&(F=+L-I.get(a,M));var z=void 0,W=void 0,j=void 0,H=void 0;if(d){var Z=r.dataToPoint([L,D]);if(f){var J=r.dataToPoint([F,D]);B=J[0]}z=B,W=Z[1]+b,j=Z[0]-B,H=y,Math.abs(j)<g&&(j=(j<0?-1:1)*g)}else{var Z=r.dataToPoint([D,L]);if(f){var J=r.dataToPoint([D,F]);B=J[1]}z=Z[0]+b,W=B,j=y,H=Z[1]-B,Math.abs(H)<g&&(H=(H<=0?-1:1)*g)}v?(S[R]=z,S[R+1]=W,S[R+2]=d?j:H,T&&(T[R]=d?A.x:z,T[R+1]=d?W:A.y,T[R+2]=P),$[M]=M):w.setItemLayout(M,{x:z,y:W,width:j,height:H}),R+=3}v&&w.setLayout({largePoints:S,largeDataIndices:$,largeBackgroundPoints:T,valueAxisHorizontal:d})}}}}}}function Oue(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function wue(t){return t.pipelineContext&&t.pipelineContext.large}function NYe(t,e){var n=e.model.get("startValue");return n||(n=0),e.toGlobalCoord(e.dataToCoord(e.type==="log"?n>0?n:1:n))}var LYe=function(t,e,n,r){for(;n<r;){var i=n+r>>>1;t[i][1]<e?n=i+1:r=i}return n},M5=function(t){ie(e,t);function e(n){var r=t.call(this,n)||this;return r.type="time",r}return e.prototype.getLabel=function(n){var r=this.getSetting("useUTC");return O_(n.value,NH[fUe(hv(this._minLevelUnit))]||NH.second,r,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(n,r,i){var o=this.getSetting("useUTC"),a=this.getSetting("locale");return dUe(n,r,i,a,o)},e.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=HYe(this._minLevelUnit,this._approxInterval,o,r);return i=i.concat(a),i.push({value:r[1],level:0}),i},e.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)},e.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=LO.length,l=Math.min(LYe(LO,this._approxInterval,0,s),s-1);this._interval=LO[l][1],this._minLevelUnit=LO[Math.max(l-1,0)][0]},e.prototype.parse=function(n){return It(n)?n:+Bo(n)},e.prototype.contain=function(n){return FP(this.parse(n),this._extent)},e.prototype.normalize=function(n){return WP(this.parse(n),this._extent)},e.prototype.scale=function(n){return QP(n,this._extent)},e.type="time",e}(lu),LO=[["second",t5],["minute",n5],["hour",vy],["quarter-day",vy*6],["half-day",vy*12],["day",da*1.2],["half-week",da*3.5],["week",da*7],["month",da*31],["quarter",da*95],["half-year",kH/2],["year",kH]];function BYe(t,e,n,r){var i=Bo(e),o=Bo(n),a=function(v){return LH(i,v,r)===LH(o,v,r)},s=function(){return a("year")},l=function(){return s()&&a("month")},u=function(){return l()&&a("day")},c=function(){return u()&&a("hour")},f=function(){return c()&&a("minute")},d=function(){return f()&&a("second")},p=function(){return d()&&a("millisecond")};switch(t){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return f();case"second":return d();case"millisecond":return p()}}function VYe(t,e){return t/=da,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function zYe(t){var e=30*da;return t/=e,t>6?6:t>3?3:t>2?2:1}function FYe(t){return t/=vy,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function jG(t,e){return t/=e?n5:t5,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function WYe(t){return R8(t,!0)}function QYe(t,e,n){var r=new Date(t);switch(hv(e)){case"year":case"month":r[Fse(n)](0);case"day":r[Wse(n)](1);case"hour":r[Qse(n)](0);case"minute":r[Hse(n)](0);case"second":r[Gse(n)](0),r[jse(n)](0)}return r.getTime()}function HYe(t,e,n,r){var i=1e4,o=Vse,a=0;function s(P,M,I,R,L,D,B){for(var F=new Date(M),z=M,W=F[R]();z<I&&z<=r[1];)B.push({value:z}),W+=P,F[L](W),z=F.getTime();B.push({value:z,notAdd:!0})}function l(P,M,I){var R=[],L=!M.length;if(!BYe(hv(P),r[0],r[1],n)){L&&(M=[{value:QYe(new Date(r[0]),P,n)},{value:r[1]}]);for(var D=0;D<M.length-1;D++){var B=M[D].value,F=M[D+1].value;if(B!==F){var z=void 0,W=void 0,j=void 0,H=!1;switch(P){case"year":z=Math.max(1,Math.round(e/da/365)),W=r5(n),j=hUe(n);break;case"half-year":case"quarter":case"month":z=zYe(e),W=pv(n),j=Fse(n);break;case"week":case"half-week":case"day":z=VYe(e),W=EP(n),j=Wse(n),H=!0;break;case"half-day":case"quarter-day":case"hour":z=FYe(e),W=ab(n),j=Qse(n);break;case"minute":z=jG(e,!0),W=MP(n),j=Hse(n);break;case"second":z=jG(e,!1),W=IP(n),j=Gse(n);break;case"millisecond":z=WYe(e),W=DP(n),j=jse(n);break}s(z,B,F,W,j,H,R),P==="year"&&I.length>1&&D===0&&I.unshift({value:I[0].value-z})}}for(var D=0;D<R.length;D++)I.push(R[D]);return R}}for(var u=[],c=[],f=0,d=0,p=0;p<o.length&&a++<i;++p){var v=hv(o[p]);if(cUe(o[p])){l(o[p],u[u.length-1]||[],c);var g=o[p+1]?hv(o[p+1]):null;if(v!==g){if(c.length){d=f,c.sort(function(P,M){return P.value-M.value});for(var m=[],y=0;y<c.length;++y){var b=c[y].value;(y===0||c[y-1].value!==b)&&(m.push(c[y]),b>=r[0]&&b<=r[1]&&f++)}var O=(r[1]-r[0])/e;if(f>O*1.5&&d>O/1.5||(u.push(m),f>O||t===o[p]))break}c=[]}}}process.env.NODE_ENV!=="production"&&a>=i&&Mn("Exceed safe limit.");for(var w=Yt(ye(u,function(P){return Yt(P,function(M){return M.value>=r[0]&&M.value<=r[1]&&!M.notAdd})}),function(P){return P.length>0}),x=[],S=w.length-1,p=0;p<w.length;++p)for(var T=w[p],$=0;$<T.length;++$)x.push({value:T[$].value,level:S-p});x.sort(function(P,M){return P.value-M.value});for(var A=[],p=0;p<x.length;++p)(p===0||x[p].value!==x[p-1].value)&&A.push(x[p]);return A}vl.registerClass(M5);var UG=vl.prototype,yy=lu.prototype,GYe=Nn,jYe=Math.floor,UYe=Math.ceil,BO=Math.pow,Wa=Math.log,I5=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="log",n.base=10,n._originalScale=new lu,n._interval=0,n}return e.prototype.getTicks=function(n){var r=this._originalScale,i=this._extent,o=r.getExtent(),a=yy.getTicks.call(this,n);return ye(a,function(s){var l=s.value,u=Nn(BO(this.base,l));return u=l===i[0]&&this._fixMin?VO(u,o[0]):u,u=l===i[1]&&this._fixMax?VO(u,o[1]):u,{value:u}},this)},e.prototype.setExtent=function(n,r){var i=Wa(this.base);n=Wa(Math.max(0,n))/i,r=Wa(Math.max(0,r))/i,yy.setExtent.call(this,n,r)},e.prototype.getExtent=function(){var n=this.base,r=UG.getExtent.call(this);r[0]=BO(n,r[0]),r[1]=BO(n,r[1]);var i=this._originalScale,o=i.getExtent();return this._fixMin&&(r[0]=VO(r[0],o[0])),this._fixMax&&(r[1]=VO(r[1],o[1])),r},e.prototype.unionExtent=function(n){this._originalScale.unionExtent(n);var r=this.base;n[0]=Wa(n[0])/Wa(r),n[1]=Wa(n[1])/Wa(r),UG.unionExtent.call(this,n)},e.prototype.unionExtentFromData=function(n,r){this.unionExtent(n.getApproximateExtent(r))},e.prototype.calcNiceTicks=function(n){n=n||10;var r=this._extent,i=r[1]-r[0];if(!(i===1/0||i<=0)){var o=Eae(i),a=n/i*o;for(a<=.5&&(o*=10);!isNaN(o)&&Math.abs(o)<1&&Math.abs(o)>0;)o*=10;var s=[Nn(UYe(r[0]/o)*o),Nn(jYe(r[1]/o)*o)];this._interval=o,this._niceExtent=s}},e.prototype.calcNiceExtent=function(n){yy.calcNiceExtent.call(this,n),this._fixMin=n.fixMin,this._fixMax=n.fixMax},e.prototype.parse=function(n){return n},e.prototype.contain=function(n){return n=Wa(n)/Wa(this.base),FP(n,this._extent)},e.prototype.normalize=function(n){return n=Wa(n)/Wa(this.base),WP(n,this._extent)},e.prototype.scale=function(n){return n=QP(n,this._extent),BO(this.base,n)},e.type="log",e}(vl),xue=I5.prototype;xue.getMinorTicks=yy.getMinorTicks;xue.getLabel=yy.getLabel;function VO(t,e){return GYe(t,Ya(e))}vl.registerClass(I5);var ZYe=function(){function t(e,n,r){this._prepareParams(e,n,r)}return t.prototype._prepareParams=function(e,n,r){r[1]<r[0]&&(r=[NaN,NaN]),this._dataMin=r[0],this._dataMax=r[1];var i=this._isOrdinal=e.type==="ordinal";this._needCrossZero=e.type==="interval"&&n.getNeedCrossZero&&n.getNeedCrossZero();var o=n.get("min",!0);o==null&&(o=n.get("startValue",!0));var a=this._modelMinRaw=o;Fe(a)?this._modelMinNum=zO(e,a({min:r[0],max:r[1]})):a!=="dataMin"&&(this._modelMinNum=zO(e,a));var s=this._modelMaxRaw=n.get("max",!0);if(Fe(s)?this._modelMaxNum=zO(e,s({min:r[0],max:r[1]})):s!=="dataMax"&&(this._modelMaxNum=zO(e,s)),i)this._axisDataLen=n.getCategories().length;else{var l=n.get("boundaryGap"),u=ve(l)?l:[l||0,l||0];typeof u[0]=="boolean"||typeof u[1]=="boolean"?(process.env.NODE_ENV!=="production"&&console.warn('Boolean type for boundaryGap is only allowed for ordinal axis. Please use string in percentage instead, e.g., "20%". Currently, boundaryGap is set to be 0.'),this._boundaryGapInner=[0,0]):this._boundaryGapInner=[cs(u[0],1),cs(u[1],1)]}},t.prototype.calculate=function(){var e=this._isOrdinal,n=this._dataMin,r=this._dataMax,i=this._axisDataLen,o=this._boundaryGapInner,a=e?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=e?i?0:NaN:n-o[0]*a),l==null&&(l=e?i?i-1:NaN:r+o[1]*a),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var f=Mc(s)||Mc(l)||e&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,p=this._determinedMax;return d!=null&&(s=d,u=!0),p!=null&&(l=p,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},t.prototype.modifyDataMinMax=function(e,n){process.env.NODE_ENV!=="production"&&je(!this.frozen),this[YYe[e]]=n},t.prototype.setDeterminedMinMax=function(e,n){var r=XYe[e];process.env.NODE_ENV!=="production"&&je(!this.frozen&&this[r]==null),this[r]=n},t.prototype.freeze=function(){this.frozen=!0},t}(),XYe={min:"_determinedMin",max:"_determinedMax"},YYe={min:"_dataMin",max:"_dataMax"};function Sue(t,e,n){var r=t.rawExtentInfo;return r||(r=new ZYe(t,e,n),t.rawExtentInfo=r,r)}function zO(t,e){return e==null?null:Mc(e)?NaN:t.parse(e)}function Cue(t,e){var n=t.type,r=Sue(t,e,t.getExtent()).calculate();t.setBlank(r.isBlank);var i=r.min,o=r.max,a=e.ecModel;if(a&&n==="time"){var s=gue("bar",a),l=!1;if(V(s,function(f){l=l||f.getBaseAxis()===e.axis}),l){var u=mue(s),c=qYe(i,o,e,u);i=c.min,o=c.max}}return{extent:[i,o],fixMin:r.minFixed,fixMax:r.maxFixed}}function qYe(t,e,n,r){var i=n.axis.getExtent(),o=i[1]-i[0],a=kYe(r,n.axis);if(a===void 0)return{min:t,max:e};var s=1/0;V(a,function(p){s=Math.min(p.offset,s)});var l=-1/0;V(a,function(p){l=Math.max(p.offset+p.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,f=1-(s+l)/o,d=c/f-c;return e+=d*(l/u),t-=d*(s/u),{min:t,max:e}}function dh(t,e){var n=e,r=Cue(t,n),i=r.extent,o=n.get("splitNumber");t instanceof I5&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l=a==="interval"||a==="time";t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:o,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),s!=null&&t.setInterval&&t.setInterval(s)}function x_(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new HP({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new M5({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(vl.getClass(e)||lu)}}function KYe(t){var e=t.scale.getExtent(),n=e[0],r=e[1];return!(n>0&&r>0||n<0&&r<0)}function Wg(t){var e=t.getLabelModel().get("formatter"),n=t.type==="category"?t.scale.getExtent()[0]:null;return t.scale.type==="time"?function(r){return function(i,o){return t.scale.getFormattedLabel(i,o,r)}}(e):Ie(e)?function(r){return function(i){var o=t.scale.getLabel(i),a=r.replace("{value}",o??"");return a}}(e):Fe(e)?function(r){return function(i,o){return n!=null&&(o=i.value-n),r(D5(t,i),o,i.level!=null?{level:i.level}:null)}}(e):function(r){return t.scale.getLabel(r)}}function D5(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function JYe(t){var e=t.model,n=t.scale;if(!(!e.get(["axisLabel","show"])||n.isBlank())){var r,i,o=n.getExtent();n instanceof HP?i=n.count():(r=n.getTicks(),i=r.length);var a=t.getLabelModel(),s=Wg(t),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;c<i;c+=u){var f=r?r[c]:{value:o[0]+c},d=s(f,c),p=a.getTextRect(d),v=eqe(p,a.get("rotate")||0);l?l.union(v):l=v}return l}}function eqe(t,e){var n=e*Math.PI/180,r=t.width,i=t.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 at(t.x,t.y,o,a);return s}function R5(t){var e=t.get("interval");return e??"auto"}function Tue(t){return t.type==="category"&&R5(t.getLabelModel())===0}function rC(t,e){var n={};return V(t.mapDimensionsAll(e),function(r){n[$5(t,r)]=!0}),bt(n)}function tqe(t,e,n){e&&V(rC(e,n),function(r){var i=e.getApproximateExtent(r);i[0]<t[0]&&(t[0]=i[0]),i[1]>t[1]&&(t[1]=i[1])})}var Qg=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},t.prototype.getCoordSysModel=function(){},t}();function nqe(t){return pl(null,t)}var rqe={isDimensionStacked:su,enableDataStack:hue,getStackedDimension:$5};function iqe(t,e){var n=e;e instanceof tn||(n=new tn(e));var r=x_(n);return r.setExtent(t[0],t[1]),dh(r,n),r}function oqe(t){Qn(t,Qg)}function aqe(t,e){return e=e||{},un(t,null,null,e.state!=="normal")}const sqe=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:vYe,createList:nqe,createScale:iqe,createSymbol:Yn,createTextStyle:aqe,dataStack:rqe,enableHoverEmphasis:Oc,getECData:Ke,getLayoutRect:ir,mixinAxisModelCommonMethods:oqe},Symbol.toStringTag,{value:"Module"}));var lqe=1e-8;function ZG(t,e){return Math.abs(t-e)<lqe}function ad(t,e,n){var r=0,i=t[0];if(!i)return!1;for(var o=1;o<t.length;o++){var a=t[o];r+=Ll(i[0],i[1],a[0],a[1],e,n),i=a}var s=t[0];return(!ZG(i[0],s[0])||!ZG(i[1],s[1]))&&(r+=Ll(i[0],i[1],s[0],s[1],e,n)),r!==0}var uqe=[];function BE(t,e){for(var n=0;n<t.length;n++)Er(t[n],t[n],e)}function XG(t,e,n,r){for(var i=0;i<t.length;i++){var o=t[i];r&&(o=r.project(o)),o&&isFinite(o[0])&&isFinite(o[1])&&(Ql(e,e,o),Hl(n,n,o))}}function cqe(t){for(var e=0,n=0,r=0,i=t.length,o=t[i-1][0],a=t[i-1][1],s=0;s<i;s++){var l=t[s][0],u=t[s][1],c=o*u-l*a;e+=c,n+=(o+l)*c,r+=(a+u)*c,o=l,a=u}return e?[n/e/3,r/e/3,e]:[t[0][0]||0,t[0][1]||0]}var Pue=function(){function t(e){this.name=e}return t.prototype.setCenter=function(e){this._center=e},t.prototype.getCenter=function(){var e=this._center;return e||(e=this._center=this.calcCenter()),e},t}(),YG=function(){function t(e,n){this.type="polygon",this.exterior=e,this.interiors=n}return t}(),qG=function(){function t(e){this.type="linestring",this.points=e}return t}(),$ue=function(t){ie(e,t);function e(n,r,i){var o=t.call(this,n)||this;return o.type="geoJSON",o.geometries=r,o._center=i&&[i[0],i[1]],o}return e.prototype.calcCenter=function(){for(var n=this.geometries,r,i=0,o=0;o<n.length;o++){var a=n[o],s=a.exterior,l=s&&s.length;l>i&&(r=a,i=l)}if(r)return cqe(r.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},e.prototype.getBoundingRect=function(n){var r=this._rect;if(r&&!n)return r;var i=[1/0,1/0],o=[-1/0,-1/0],a=this.geometries;return V(a,function(s){s.type==="polygon"?XG(s.exterior,i,o,n):V(s.points,function(l){XG(l,i,o,n)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(o[0])&&isFinite(o[1])||(i[0]=i[1]=o[0]=o[1]=0),r=new at(i[0],i[1],o[0]-i[0],o[1]-i[1]),n||(this._rect=r),r},e.prototype.contain=function(n){var r=this.getBoundingRect(),i=this.geometries;if(!r.contain(n[0],n[1]))return!1;e:for(var o=0,a=i.length;o<a;o++){var s=i[o];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(ad(l,n[0],n[1])){for(var c=0;c<(u?u.length:0);c++)if(ad(u[c],n[0],n[1]))continue e;return!0}}}return!1},e.prototype.transformTo=function(n,r,i,o){var a=this.getBoundingRect(),s=a.width/a.height;i?o||(o=i/s):i=s*o;for(var l=new at(n,r,i,o),u=a.calculateTransform(l),c=this.geometries,f=0;f<c.length;f++){var d=c[f];d.type==="polygon"?(BE(d.exterior,u),V(d.interiors,function(p){BE(p,u)})):V(d.points,function(p){BE(p,u)})}a=this._rect,a.copy(l),this._center=[a.x+a.width/2,a.y+a.height/2]},e.prototype.cloneShallow=function(n){n==null&&(n=this.name);var r=new e(n,this.geometries,this._center);return r._rect=this._rect,r.transformTo=null,r},e}(Pue),fqe=function(t){ie(e,t);function e(n,r){var i=t.call(this,n)||this;return i.type="geoSVG",i._elOnlyForCalculate=r,i}return e.prototype.calcCenter=function(){for(var n=this._elOnlyForCalculate,r=n.getBoundingRect(),i=[r.x+r.width/2,r.y+r.height/2],o=f_(uqe),a=n;a&&!a.isGeoSVGGraphicRoot;)el(o,a.getLocalTransform(),o),a=a.parent;return $h(o,o),Er(i,i,o),i},e}(Pue);function dqe(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;n==null&&(n=1024);var r=e.features;return V(r,function(i){var o=i.geometry,a=o.encodeOffsets,s=o.coordinates;if(a)switch(o.type){case"LineString":o.coordinates=Aue(s,a,n);break;case"Polygon":VE(s,a,n);break;case"MultiLineString":VE(s,a,n);break;case"MultiPolygon":V(s,function(l,u){return VE(l,a[u],n)})}}),e.UTF8Encoding=!1,e}function VE(t,e,n){for(var r=0;r<t.length;r++)t[r]=Aue(t[r],e[r],n)}function Aue(t,e,n){for(var r=[],i=e[0],o=e[1],a=0;a<t.length;a+=2){var s=t.charCodeAt(a)-64,l=t.charCodeAt(a+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=o,i=s,o=l,r.push([s/n,l/n])}return r}function ak(t,e){return t=dqe(t),ye(Yt(t.features,function(n){return n.geometry&&n.properties&&n.geometry.coordinates.length>0}),function(n){var r=n.properties,i=n.geometry,o=[];switch(i.type){case"Polygon":var a=i.coordinates;o.push(new YG(a[0],a.slice(1)));break;case"MultiPolygon":V(i.coordinates,function(l){l[0]&&o.push(new YG(l[0],l.slice(1)))});break;case"LineString":o.push(new qG([i.coordinates]));break;case"MultiLineString":o.push(new qG(i.coordinates))}var s=new $ue(r[e||"name"],o,r.cp);return s.properties=r,s})}const hqe=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:PR,asc:Ao,getPercentWithPrecision:BHe,getPixelPrecision:I8,getPrecision:Ya,getPrecisionSafe:NS,isNumeric:gP,isRadianAroundZero:qv,linearMap:Zt,nice:R8,numericToNumber:ul,parseDate:Bo,quantile:vx,quantity:Eae,quantityExponent:p_,reformIntervals:$R,remRadian:D8,round:Nn},Symbol.toStringTag,{value:"Module"})),pqe=Object.freeze(Object.defineProperty({__proto__:null,format:O_,parse:Bo},Symbol.toStringTag,{value:"Module"})),vqe=Object.freeze(Object.defineProperty({__proto__:null,Arc:CP,BezierCurve:y_,BoundingRect:at,Circle:_u,CompoundPath:TP,Ellipse:SP,Group:qe,Image:Rr,IncrementalDisplayable:Tse,Line:_r,LinearGradient:Eg,Polygon:Li,Polyline:Bi,RadialGradient:j8,Rect:Pt,Ring:m_,Sector:Ni,Text:Tt,clipPointsByRect:Y8,clipRectByRect:Mse,createIcon:Ig,extendPath:Ase,extendShape:$se,getShapeClass:PP,getTransform:wc,initProps:gn,makeImage:Z8,makePath:b_,mergePath:To,registerShape:Ia,resizePath:X8,updateProps:kt},Symbol.toStringTag,{value:"Module"})),gqe=Object.freeze(Object.defineProperty({__proto__:null,addCommas:i5,capitalFirst:mUe,encodeHTML:Si,formatTime:gUe,formatTpl:a5,getTextRect:pUe,getTooltipMarker:Use,normalizeCssArray:Mh,toCamelCase:o5,truncateText:Fae},Symbol.toStringTag,{value:"Module"})),mqe=Object.freeze(Object.defineProperty({__proto__:null,bind:Re,clone:Ue,curry:nt,defaults:Ge,each:V,extend:he,filter:Yt,indexOf:st,inherits:x8,isArray:ve,isFunction:Fe,isObject:Qe,isString:Ie,map:ye,merge:it,reduce:Ta},Symbol.toStringTag,{value:"Module"}));var db=$t();function Eue(t,e){var n=ye(e,function(r){return t.scale.parse(r)});return t.type==="time"&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function yqe(t){var e=t.getLabelModel().get("customValues");if(e){var n=Wg(t);return{labels:Eue(t,e).map(function(r){var i={value:r};return{formattedLabel:n(i),rawLabel:t.scale.getLabel(i),tickValue:r}})}}return t.type==="category"?_qe(t):wqe(t)}function bqe(t,e){var n=t.getTickModel().get("customValues");return n?{ticks:Eue(t,n)}:t.type==="category"?Oqe(t,e):{ticks:ye(t.scale.getTicks(),function(r){return r.value})}}function _qe(t){var e=t.getLabelModel(),n=Mue(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function Mue(t,e){var n=Iue(t,"labels"),r=R5(e),i=Due(n,r);if(i)return i;var o,a;return Fe(r)?o=Nue(t,r):(a=r==="auto"?xqe(t):r,o=kue(t,a)),Rue(n,r,{labels:o,labelCategoryInterval:a})}function Oqe(t,e){var n=Iue(t,"ticks"),r=R5(e),i=Due(n,r);if(i)return i;var o,a;if((!e.get("show")||t.scale.isBlank())&&(o=[]),Fe(r))o=Nue(t,r,!0);else if(r==="auto"){var s=Mue(t,t.getLabelModel());a=s.labelCategoryInterval,o=ye(s.labels,function(l){return l.tickValue})}else a=r,o=kue(t,a,!0);return Rue(n,r,{ticks:o,tickCategoryInterval:a})}function wqe(t){var e=t.scale.getTicks(),n=Wg(t);return{labels:ye(e,function(r,i){return{level:r.level,formattedLabel:n(r,i),rawLabel:t.scale.getLabel(r),tickValue:r.value}})}}function Iue(t,e){return db(t)[e]||(db(t)[e]=[])}function Due(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function Rue(t,e,n){return t.push({key:e,value:n}),n}function xqe(t){var e=db(t).autoInterval;return e??(db(t).autoInterval=t.calculateCategoryInterval())}function Sqe(t){var e=Cqe(t),n=Wg(t),r=(e.axisRotate-e.labelRotate)/180*Math.PI,i=t.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=t.dataToCoord(l+1)-t.dataToCoord(l),c=Math.abs(u*Math.cos(r)),f=Math.abs(u*Math.sin(r)),d=0,p=0;l<=o[1];l+=s){var v=0,g=0,m=h_(n({value:l}),e.font,"center","top");v=m.width*1.3,g=m.height*1.3,d=Math.max(d,v,7),p=Math.max(p,g,7)}var y=d/c,b=p/f;isNaN(y)&&(y=1/0),isNaN(b)&&(b=1/0);var O=Math.max(0,Math.floor(Math.min(y,b))),w=db(t.model),x=t.getExtent(),S=w.lastAutoInterval,T=w.lastTickCount;return S!=null&&T!=null&&Math.abs(S-O)<=1&&Math.abs(T-a)<=1&&S>O&&w.axisExtent0===x[0]&&w.axisExtent1===x[1]?O=S:(w.lastTickCount=a,w.lastAutoInterval=O,w.axisExtent0=x[0],w.axisExtent1=x[1]),O}function Cqe(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}function kue(t,e,n){var r=Wg(t),i=t.scale,o=i.getExtent(),a=t.getLabelModel(),s=[],l=Math.max((e||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=Tue(t),d=a.get("showMinLabel")||f,p=a.get("showMaxLabel")||f;d&&u!==o[0]&&g(o[0]);for(var v=u;v<=o[1];v+=l)g(v);p&&v-l!==o[1]&&g(o[1]);function g(m){var y={value:m};s.push(n?m:{formattedLabel:r(y),rawLabel:i.getLabel(y),tickValue:m})}return s}function Nue(t,e,n){var r=t.scale,i=Wg(t),o=[];return V(r.getTicks(),function(a){var s=r.getLabel(a),l=a.value;e(a.value,s)&&o.push(n?l:{formattedLabel:i(a),rawLabel:s,tickValue:l})}),o}var KG=[0,1],Tqe=function(){function t(e,n,r){this.onBand=!1,this.inverse=!1,this.dim=e,this.scale=n,this._extent=r||[0,0]}return t.prototype.contain=function(e){var n=this._extent,r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return e>=r&&e<=i},t.prototype.containData=function(e){return this.scale.contain(e)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(e){return I8(e||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(e,n){var r=this._extent;r[0]=e,r[1]=n},t.prototype.dataToCoord=function(e,n){var r=this._extent,i=this.scale;return e=i.normalize(e),this.onBand&&i.type==="ordinal"&&(r=r.slice(),JG(r,i.count())),Zt(e,KG,r,n)},t.prototype.coordToData=function(e,n){var r=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(r=r.slice(),JG(r,i.count()));var o=Zt(e,r,KG,n);return this.scale.scale(o)},t.prototype.pointToData=function(e,n){},t.prototype.getTicksCoords=function(e){e=e||{};var n=e.tickModel||this.getTickModel(),r=bqe(this,n),i=r.ticks,o=ye(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),a=n.get("alignWithLabel");return Pqe(this,o,a,e.clamp),o},t.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var e=this.model.getModel("minorTick"),n=e.get("splitNumber");n>0&&n<100||(n=5);var r=this.scale.getMinorTicks(n),i=ye(r,function(o){return ye(o,function(a){return{coord:this.dataToCoord(a),tickValue:a}},this)},this);return i},t.prototype.getViewLabels=function(){return yqe(this).labels},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var e=this._extent,n=this.scale.getExtent(),r=n[1]-n[0]+(this.onBand?1:0);r===0&&(r=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/r},t.prototype.calculateCategoryInterval=function(){return Sqe(this)},t}();function JG(t,e){var n=t[1]-t[0],r=e,i=n/r/2;t[0]+=i,t[1]-=i}function Pqe(t,e,n,r){var i=e.length;if(!t.onBand||n||!i)return;var o=t.getExtent(),a,s;if(i===1)e[0].coord=o[0],a=e[1]={coord:o[1]};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;V(e,function(p){p.coord-=u/2});var c=t.scale.getExtent();s=1+c[1]-e[i-1].tickValue,a={coord:e[i-1].coord+u*s},e.push(a)}var f=o[0]>o[1];d(e[0].coord,o[0])&&(r?e[0].coord=o[0]:e.shift()),r&&d(o[0],e[0].coord)&&e.unshift({coord:o[0]}),d(o[1],a.coord)&&(r?a.coord=o[1]:e.pop()),r&&d(a.coord,o[1])&&e.push({coord:o[1]});function d(p,v){return p=Nn(p),v=Nn(v),f?p>v:p<v}}const ka=Tqe;function $qe(t){var e=pt.extend(t);return pt.registerClass(e),e}function Aqe(t){var e=hn.extend(t);return hn.registerClass(e),e}function Eqe(t){var e=rn.extend(t);return rn.registerClass(e),e}function Mqe(t){var e=Kt.extend(t);return Kt.registerClass(e),e}var Km=Math.PI*2,Qf=cl.CMD,Iqe=["top","right","bottom","left"];function Dqe(t,e,n,r,i){var o=n.width,a=n.height;switch(t){case"top":r.set(n.x+o/2,n.y-e),i.set(0,-1);break;case"bottom":r.set(n.x+o/2,n.y+a+e),i.set(0,1);break;case"left":r.set(n.x-e,n.y+a/2),i.set(-1,0);break;case"right":r.set(n.x+o+e,n.y+a/2),i.set(1,0);break}}function Rqe(t,e,n,r,i,o,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s);a/=u,s/=u;var c=a*n+t,f=s*n+e;if(Math.abs(r-i)%Km<1e-4)return l[0]=c,l[1]=f,u-n;if(o){var d=r;r=Eo(i),i=Eo(d)}else r=Eo(r),i=Eo(i);r>i&&(i+=Km);var p=Math.atan2(s,a);if(p<0&&(p+=Km),p>=r&&p<=i||p+Km>=r&&p+Km<=i)return l[0]=c,l[1]=f,u-n;var v=n*Math.cos(r)+t,g=n*Math.sin(r)+e,m=n*Math.cos(i)+t,y=n*Math.sin(i)+e,b=(v-a)*(v-a)+(g-s)*(g-s),O=(m-a)*(m-a)+(y-s)*(y-s);return b<O?(l[0]=v,l[1]=g,Math.sqrt(b)):(l[0]=m,l[1]=y,Math.sqrt(O))}function iC(t,e,n,r,i,o,a,s){var l=i-t,u=o-e,c=n-t,f=r-e,d=Math.sqrt(c*c+f*f);c/=d,f/=d;var p=l*c+u*f,v=p/d;s&&(v=Math.min(Math.max(v,0),1)),v*=d;var g=a[0]=t+v*c,m=a[1]=e+v*f;return Math.sqrt((g-i)*(g-i)+(m-o)*(m-o))}function Lue(t,e,n,r,i,o,a){n<0&&(t=t+n,n=-n),r<0&&(e=e+r,r=-r);var s=t+n,l=e+r,u=a[0]=Math.min(Math.max(i,t),s),c=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-i)*(u-i)+(c-o)*(c-o))}var Ua=[];function kqe(t,e,n){var r=Lue(e.x,e.y,e.width,e.height,t.x,t.y,Ua);return n.set(Ua[0],Ua[1]),r}function Nqe(t,e,n){for(var r=0,i=0,o=0,a=0,s,l,u=1/0,c=e.data,f=t.x,d=t.y,p=0;p<c.length;){var v=c[p++];p===1&&(r=c[p],i=c[p+1],o=r,a=i);var g=u;switch(v){case Qf.M:o=c[p++],a=c[p++],r=o,i=a;break;case Qf.L:g=iC(r,i,c[p],c[p+1],f,d,Ua,!0),r=c[p++],i=c[p++];break;case Qf.C:g=lae(r,i,c[p++],c[p++],c[p++],c[p++],c[p],c[p+1],f,d,Ua),r=c[p++],i=c[p++];break;case Qf.Q:g=cae(r,i,c[p++],c[p++],c[p],c[p+1],f,d,Ua),r=c[p++],i=c[p++];break;case Qf.A:var m=c[p++],y=c[p++],b=c[p++],O=c[p++],w=c[p++],x=c[p++];p+=1;var S=!!(1-c[p++]);s=Math.cos(w)*b+m,l=Math.sin(w)*O+y,p<=1&&(o=s,a=l);var T=(f-m)*O/b+m;g=Rqe(m,y,O,w,w+x,S,T,d,Ua),r=Math.cos(w+x)*b+m,i=Math.sin(w+x)*O+y;break;case Qf.R:o=r=c[p++],a=i=c[p++];var $=c[p++],A=c[p++];g=Lue(o,a,$,A,f,d,Ua);break;case Qf.Z:g=iC(r,i,o,a,f,d,Ua,!0),r=o,i=a;break}g<u&&(u=g,n.set(Ua[0],Ua[1]))}return u}var qa=new ot,dn=new ot,jn=new ot,Zs=new ot,Ws=new ot;function ej(t,e){if(t){var n=t.getTextGuideLine(),r=t.getTextContent();if(r&&n){var i=t.textGuideLineConfig||{},o=[[0,0],[0,0],[0,0]],a=i.candidates||Iqe,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var l=1/0,u=i.anchor,c=t.getComputedTransform(),f=c&&$h([],c),d=e.get("length2")||0;u&&jn.copy(u);for(var p=0;p<a.length;p++){var v=a[p];Dqe(v,0,s,qa,Zs),ot.scaleAndAdd(dn,qa,Zs,d),dn.transform(f);var g=t.getBoundingRect(),m=u?u.distance(dn):t instanceof mt?Nqe(dn,t.path,jn):kqe(dn,g,jn);m<l&&(l=m,dn.transform(c),jn.transform(c),jn.toArray(o[0]),dn.toArray(o[1]),qa.toArray(o[2]))}Bue(o,e.get("minTurnAngle")),n.setShape({points:o})}}}var oC=[],xi=new ot;function Bue(t,e){if(e<=180&&e>0){e=e/180*Math.PI,qa.fromArray(t[0]),dn.fromArray(t[1]),jn.fromArray(t[2]),ot.sub(Zs,qa,dn),ot.sub(Ws,jn,dn);var n=Zs.len(),r=Ws.len();if(!(n<.001||r<.001)){Zs.scale(1/n),Ws.scale(1/r);var i=Zs.dot(Ws),o=Math.cos(e);if(o<i){var a=iC(dn.x,dn.y,jn.x,jn.y,qa.x,qa.y,oC,!1);xi.fromArray(oC),xi.scaleAndAdd(Ws,a/Math.tan(Math.PI-e));var s=jn.x!==dn.x?(xi.x-dn.x)/(jn.x-dn.x):(xi.y-dn.y)/(jn.y-dn.y);if(isNaN(s))return;s<0?ot.copy(xi,dn):s>1&&ot.copy(xi,jn),xi.toArray(t[1])}}}}function Lqe(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,qa.fromArray(t[0]),dn.fromArray(t[1]),jn.fromArray(t[2]),ot.sub(Zs,dn,qa),ot.sub(Ws,jn,dn);var r=Zs.len(),i=Ws.len();if(!(r<.001||i<.001)){Zs.scale(1/r),Ws.scale(1/i);var o=Zs.dot(e),a=Math.cos(n);if(o<a){var s=iC(dn.x,dn.y,jn.x,jn.y,qa.x,qa.y,oC,!1);xi.fromArray(oC);var l=Math.PI/2,u=Math.acos(Ws.dot(e)),c=l+u-n;if(c>=l)ot.copy(xi,jn);else{xi.scaleAndAdd(Ws,s/Math.tan(Math.PI/2-c));var f=jn.x!==dn.x?(xi.x-dn.x)/(jn.x-dn.x):(xi.y-dn.y)/(jn.y-dn.y);if(isNaN(f))return;f<0?ot.copy(xi,dn):f>1&&ot.copy(xi,jn)}xi.toArray(t[1])}}}}function zE(t,e,n,r){var i=n==="normal",o=i?t:t.ensureState(n);o.ignore=e;var a=r.get("smooth");a&&a===!0&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=r.getModel("lineStyle").getLineStyle();i?t.useStyle(s):o.style=s}function Bqe(t,e){var n=e.smooth,r=e.points;if(r)if(t.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var i=Wl(r[0],r[1]),o=Wl(r[1],r[2]);if(!i||!o){t.lineTo(r[1][0],r[1][1]),t.lineTo(r[2][0],r[2][1]);return}var a=Math.min(i,o)*n,s=ay([],r[1],r[0],a/i),l=ay([],r[1],r[2],a/o),u=ay([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],r[2][0],r[2][1])}else for(var c=1;c<r.length;c++)t.lineTo(r[c][0],r[c][1])}function k5(t,e,n){var r=t.getTextGuideLine(),i=t.getTextContent();if(!i){r&&t.removeTextGuideLine();return}for(var o=e.normal,a=o.get("show"),s=i.ignore,l=0;l<ib.length;l++){var u=ib[l],c=e[u],f=u==="normal";if(c){var d=c.get("show"),p=f?s:Je(i.states[u]&&i.states[u].ignore,s);if(p||!Je(d,a)){var v=f?r:r&&r.states[u];v&&(v.ignore=!0),r&&zE(r,!0,u,c);continue}r||(r=new Bi,t.setTextGuideLine(r),!f&&(s||!a)&&zE(r,!0,"normal",e.normal),t.stateProxy&&(r.stateProxy=t.stateProxy)),zE(r,!1,u,c)}}if(r){Ge(r.style,n),r.style.fill=null;var g=o.get("showAbove"),m=t.textGuideLineConfig=t.textGuideLineConfig||{};m.showAbove=g||!1,r.buildPath=Bqe}}function N5(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},r=0;r<ki.length;r++){var i=ki[r];n[i]=t.getModel([i,e])}return n}function Vue(t){for(var e=[],n=0;n<t.length;n++){var r=t[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 VS(a,o):null;e.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 e}function zue(t,e,n,r,i,o){var a=t.length;if(a<2)return;t.sort(function($,A){return $.rect[e]-A.rect[e]});for(var s=0,l,u=!1,c=0,f=0;f<a;f++){var d=t[f],p=d.rect;l=p[e]-s,l<0&&(p[e]-=l,d.label[e]-=l,u=!0);var v=Math.max(-l,0);c+=v,s=p[e]+p[n]}c>0&&o&&x(-c/a,0,a);var g=t[0],m=t[a-1],y,b;O(),y<0&&S(-y,.8),b<0&&S(b,.8),O(),w(y,b,1),w(b,y,-1),O(),y<0&&T(-y),b<0&&T(b);function O(){y=g.rect[e]-r,b=i-m.rect[e]-m.rect[n]}function w($,A,P){if($<0){var M=Math.min(A,-$);if(M>0){x(M*P,0,a);var I=M+$;I<0&&S(-I*P,1)}else S(-$*P,1)}}function x($,A,P){$!==0&&(u=!0);for(var M=A;M<P;M++){var I=t[M],R=I.rect;R[e]+=$,I.label[e]+=$}}function S($,A){for(var P=[],M=0,I=1;I<a;I++){var R=t[I-1].rect,L=Math.max(t[I].rect[e]-R[e]-R[n],0);P.push(L),M+=L}if(M){var D=Math.min(Math.abs($)/M,A);if($>0)for(var I=0;I<a-1;I++){var B=P[I]*D;x(B,0,I+1)}else for(var I=a-1;I>0;I--){var B=P[I-1]*D;x(-B,I,a)}}}function T($){var A=$<0?-1:1;$=Math.abs($);for(var P=Math.ceil($/(a-1)),M=0;M<a-1;M++)if(A>0?x(P,0,M+1):x(-P,a-M-1,a),$-=P,$<=0)return}return u}function Vqe(t,e,n,r){return zue(t,"x","width",e,n,r)}function Fue(t,e,n,r){return zue(t,"y","height",e,n,r)}function Wue(t){var e=[];t.sort(function(g,m){return m.priority-g.priority});var n=new at(0,0,0,0);function r(g){if(!g.ignore){var m=g.ensureState("emphasis");m.ignore==null&&(m.ignore=!1)}g.ignore=!0}for(var i=0;i<t.length;i++){var o=t[i],a=o.axisAligned,s=o.localRect,l=o.transform,u=o.label,c=o.labelLine;n.copy(o.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var f=o.obb,d=!1,p=0;p<e.length;p++){var v=e[p];if(n.intersect(v.rect)){if(a&&v.axisAligned){d=!0;break}if(v.obb||(v.obb=new VS(v.localRect,v.transform)),f||(f=new VS(s,l)),f.intersect(v.obb)){d=!0;break}}}d?(r(u),c&&r(c)):(u.attr("ignore",o.defaultAttr.ignore),c&&c.attr("ignore",o.defaultAttr.labelGuideIgnore),e.push(o))}}function zqe(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}function Fqe(t,e){var n=t.label,r=e&&e.getTextGuideLine();return{dataIndex:t.dataIndex,dataType:t.dataType,seriesIndex:t.seriesModel.seriesIndex,text:t.label.style.text,rect:t.hostRect,labelRect:t.rect,align:n.style.align,verticalAlign:n.style.verticalAlign,labelLinePoints:zqe(r&&r.shape.points)}}var tj=["align","verticalAlign","width","height","fontSize"],bi=new Gl,FE=$t(),Wqe=$t();function FO(t,e,n){for(var r=0;r<n.length;r++){var i=n[r];e[i]!=null&&(t[i]=e[i])}}var WO=["x","y","rotation"],Qqe=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(e,n,r,i,o){var a=i.style,s=i.__hostTarget,l=s.textConfig||{},u=i.getComputedTransform(),c=i.getBoundingRect().plain();at.applyTransform(c,c,u),u?bi.setLocalTransform(u):(bi.x=bi.y=bi.rotation=bi.originX=bi.originY=0,bi.scaleX=bi.scaleY=1),bi.rotation=Eo(bi.rotation);var f=i.__hostTarget,d;if(f){d=f.getBoundingRect().plain();var p=f.getComputedTransform();at.applyTransform(d,d,p)}var v=d&&f.getTextGuideLine();this._labelList.push({label:i,labelLine:v,seriesModel:r,dataIndex:e,dataType:n,layoutOption:o,computedLayoutOption:null,rect:c,hostRect:d,priority:d?d.width*d.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:v&&v.ignore,x:bi.x,y:bi.y,scaleX:bi.scaleX,scaleY:bi.scaleY,rotation:bi.rotation,style:{x:a.x,y:a.y,align:a.align,verticalAlign:a.verticalAlign,width:a.width,height:a.height,fontSize:a.fontSize},cursor:i.cursor,attachedPos:l.position,attachedRot:l.rotation}})},t.prototype.addLabelsOfSeries=function(e){var n=this;this._chartViewList.push(e);var r=e.__model,i=r.get("labelLayout");(Fe(i)||bt(i).length)&&e.group.traverse(function(o){if(o.ignore)return!0;var a=o.getTextContent(),s=Ke(o);a&&!a.disableLabelLayout&&n._addLabel(s.dataIndex,s.dataType,r,a,i)})},t.prototype.updateLayoutConfig=function(e){var n=e.getWidth(),r=e.getHeight();function i(O,w){return function(){ej(O,w)}}for(var o=0;o<this._labelList.length;o++){var a=this._labelList[o],s=a.label,l=s.__hostTarget,u=a.defaultAttr,c=void 0;Fe(a.layoutOption)?c=a.layoutOption(Fqe(a,l)):c=a.layoutOption,c=c||{},a.computedLayoutOption=c;var f=Math.PI/180;l&&l.setTextConfig({local:!1,position:c.x!=null||c.y!=null?null:u.attachedPos,rotation:c.rotate!=null?c.rotate*f:u.attachedRot,offset:[c.dx||0,c.dy||0]});var d=!1;if(c.x!=null?(s.x=Me(c.x,n),s.setStyle("x",0),d=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=Me(c.y,r),s.setStyle("y",0),d=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var p=l.getTextGuideLine();p&&(p.setShape({points:c.labelLinePoints}),d=!1)}var v=FE(s);v.needsUpdateLabelLine=d,s.rotation=c.rotate!=null?c.rotate*f:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var g=0;g<tj.length;g++){var m=tj[g];s.setStyle(m,c[m]!=null?c[m]:u.style[m])}if(c.draggable){if(s.draggable=!0,s.cursor="move",l){var y=a.seriesModel;if(a.dataIndex!=null){var b=a.seriesModel.getData(a.dataType);y=b.getItemModel(a.dataIndex)}s.on("drag",i(l,y.getModel("labelLine")))}}else s.off("drag"),s.cursor=u.cursor}},t.prototype.layout=function(e){var n=e.getWidth(),r=e.getHeight(),i=Vue(this._labelList),o=Yt(i,function(l){return l.layoutOption.moveOverlap==="shiftX"}),a=Yt(i,function(l){return l.layoutOption.moveOverlap==="shiftY"});Vqe(o,0,n),Fue(a,0,r);var s=Yt(i,function(l){return l.layoutOption.hideOverlap});Wue(s)},t.prototype.processLabelsOverall=function(){var e=this;V(this._chartViewList,function(n){var r=n.__model,i=n.ignoreLabelLineUpdate,o=r.isAnimationEnabled();n.group.traverse(function(a){if(a.ignore&&!a.forceLabelAnimation)return!0;var s=!i,l=a.getTextContent();!s&&l&&(s=FE(l).needsUpdateLabelLine),s&&e._updateLabelLine(a,r),o&&e._animateLabels(a,r)})})},t.prototype._updateLabelLine=function(e,n){var r=e.getTextContent(),i=Ke(e),o=i.dataIndex;if(r&&o!=null){var a=n.getData(i.dataType),s=a.getItemModel(o),l={},u=a.getItemVisual(o,"style");if(u){var c=a.getVisual("drawType");l.stroke=u[c]}var f=s.getModel("labelLine");k5(e,N5(s),l),ej(e,f)}},t.prototype._animateLabels=function(e,n){var r=e.getTextContent(),i=e.getTextGuideLine();if(r&&(e.forceLabelAnimation||!r.ignore&&!r.invisible&&!e.disableLabelAnimation&&!fv(e))){var o=FE(r),a=o.oldLayout,s=Ke(e),l=s.dataIndex,u={x:r.x,y:r.y,rotation:r.rotation},c=n.getData(s.dataType);if(a){r.attr(a);var d=e.prevStates;d&&(st(d,"select")>=0&&r.attr(o.oldLayoutSelect),st(d,"emphasis")>=0&&r.attr(o.oldLayoutEmphasis)),kt(r,u,n,l)}else if(r.attr(u),!Rg(r).valueAnimation){var f=Je(r.style.opacity,1);r.style.opacity=0,gn(r,{style:{opacity:f}},n,l)}if(o.oldLayout=u,r.states.select){var p=o.oldLayoutSelect={};FO(p,u,WO),FO(p,r.states.select,WO)}if(r.states.emphasis){var v=o.oldLayoutEmphasis={};FO(v,u,WO),FO(v,r.states.emphasis,WO)}kse(r,l,c,n,n)}if(i&&!i.ignore&&!i.invisible){var o=Wqe(i),a=o.oldLayout,g={points:i.shape.points};a?(i.attr({shape:a}),kt(i,{shape:g},n)):(i.setShape(g),i.style.strokePercent=0,gn(i,{style:{strokePercent:1}},n)),o.oldLayout=g}},t}(),WE=$t();function Hqe(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,n,r){var i=WE(n).labelManager;i||(i=WE(n).labelManager=new Qqe),i.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(e,n,r){var i=WE(n).labelManager;r.updatedSeries.forEach(function(o){i.addLabelsOfSeries(n.getViewOfSeriesModel(o))}),i.updateLayoutConfig(n),i.layout(n),i.processLabelsOverall()})}var QE=Math.sin,HE=Math.cos,Que=Math.PI,Hf=Math.PI*2,Gqe=180/Que,Hue=function(){function t(){}return t.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},t.prototype.moveTo=function(e,n){this._add("M",e,n)},t.prototype.lineTo=function(e,n){this._add("L",e,n)},t.prototype.bezierCurveTo=function(e,n,r,i,o,a){this._add("C",e,n,r,i,o,a)},t.prototype.quadraticCurveTo=function(e,n,r,i){this._add("Q",e,n,r,i)},t.prototype.arc=function(e,n,r,i,o,a){this.ellipse(e,n,r,r,0,i,o,a)},t.prototype.ellipse=function(e,n,r,i,o,a,s,l){var u=s-a,c=!l,f=Math.abs(u),d=sc(f-Hf)||(c?u>=Hf:-u>=Hf),p=u>0?u%Hf:u%Hf+Hf,v=!1;d?v=!0:sc(f)?v=!1:v=p>=Que==!!c;var g=e+r*HE(a),m=n+i*QE(a);this._start&&this._add("M",g,m);var y=Math.round(o*Gqe);if(d){var b=1/this._p,O=(c?1:-1)*(Hf-b);this._add("A",r,i,y,1,+c,e+r*HE(a+O),n+i*QE(a+O)),b>.01&&this._add("A",r,i,y,0,+c,g,m)}else{var w=e+r*HE(s),x=n+i*QE(s);this._add("A",r,i,y,+v,+c,w,x)}},t.prototype.rect=function(e,n,r,i){this._add("M",e,n),this._add("l",r,0),this._add("l",0,i),this._add("l",-r,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(e,n,r,i,o,a,s,l,u){for(var c=[],f=this._p,d=1;d<arguments.length;d++){var p=arguments[d];if(isNaN(p)){this._invalid=!0;return}c.push(Math.round(p*f)/f)}this._d.push(e+c.join(" ")),this._start=e==="Z"},t.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},t.prototype.getStr=function(){return this._str},t}(),L5="none",jqe=Math.round;function Uqe(t){var e=t.fill;return e!=null&&e!==L5}function Zqe(t){var e=t.stroke;return e!=null&&e!==L5}var sk=["lineCap","miterLimit","lineJoin"],Xqe=ye(sk,function(t){return"stroke-"+t.toLowerCase()});function Yqe(t,e,n,r){var i=e.opacity==null?1:e.opacity;if(n instanceof Rr){t("opacity",i);return}if(Uqe(e)){var o=rb(e.fill);t("fill",o.color);var a=e.fillOpacity!=null?e.fillOpacity*o.opacity*i:o.opacity*i;a<1&&t("fill-opacity",a)}else t("fill",L5);if(Zqe(e)){var s=rb(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?n.getLineScale():1,u=l?(e.lineWidth||0)/l:0,c=e.strokeOpacity!=null?e.strokeOpacity*s.opacity*i:s.opacity*i,f=e.strokeFirst;if(u!==1&&t("stroke-width",u),f&&t("paint-order",f?"stroke":"fill"),c<1&&t("stroke-opacity",c),e.lineDash){var d=m5(n),p=d[0],v=d[1];p&&(v=jqe(v||0),t("stroke-dasharray",p.join(",")),(v||r)&&t("stroke-dashoffset",v))}for(var g=0;g<sk.length;g++){var m=sk[g];if(e[m]!==LS[m]){var y=e[m]||LS[m];y&&t(Xqe[g],y)}}}}var Gue="http://www.w3.org/2000/svg",jue="http://www.w3.org/1999/xlink",qqe="http://www.w3.org/2000/xmlns/",Kqe="http://www.w3.org/XML/1998/namespace",nj="ecmeta_";function Uue(t){return document.createElementNS(Gue,t)}function Or(t,e,n,r,i){return{tag:t,attrs:n||{},children:r,text:i,key:e}}function Jqe(t,e){var n=[];if(e)for(var r in e){var i=e[r],o=r;i!==!1&&(i!==!0&&i!=null&&(o+='="'+i+'"'),n.push(o))}return"<"+t+" "+n.join(" ")+">"}function eKe(t){return"</"+t+">"}function B5(t,e){e=e||{};var n=e.newline?`
  345. `:"";function r(i){var o=i.children,a=i.tag,s=i.attrs,l=i.text;return Jqe(a,s)+(a!=="style"?Si(l):l||"")+(o?""+n+ye(o,function(u){return r(u)}).join(n)+n:"")+eKe(a)}return r(t)}function tKe(t,e,n){n=n||{};var r=n.newline?`
  346. `:"",i=" {"+r,o=r+"}",a=ye(bt(t),function(l){return l+i+ye(bt(t[l]),function(u){return u+":"+t[l][u]+";"}).join(r)+o}).join(r),s=ye(bt(e),function(l){return"@keyframes "+l+i+ye(bt(e[l]),function(u){return u+i+ye(bt(e[l][u]),function(c){var f=e[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(r)+o}).join(r)+o}).join(r);return!a&&!s?"":["<![CDATA[",a,s,"]]>"].join(r)}function lk(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function rj(t,e,n,r){return Or("svg","root",{width:t,height:e,xmlns:Gue,"xmlns:xlink":jue,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+t+" "+e:!1},n)}var nKe=0;function Zue(){return nKe++}var ij={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Yf="transform-origin";function rKe(t,e,n){var r=he({},t.shape);he(r,e),t.buildPath(n,r);var i=new Hue;return i.reset(mae(t)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function iKe(t,e){var n=e.originX,r=e.originY;(n||r)&&(t[Yf]=n+"px "+r+"px")}var oKe={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function Xue(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function aKe(t,e,n){var r=t.shape.paths,i={},o,a;if(V(r,function(l){var u=lk(n.zrId);u.animation=!0,GP(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=bt(c),p=d.length;if(p){a=d[p-1];var v=c[a];for(var g in v){var m=v[g];i[g]=i[g]||{d:""},i[g].d+=m.d||""}for(var y in f){var b=f[y].animation;b.indexOf(a)>=0&&(o=b)}}}),!!o){e.d=!1;var s=Xue(i,n);return o.replace(a,s)}}function oj(t){return Ie(t)?ij[t]?"cubic-bezier("+ij[t]+")":$8(t)?t:"":""}function GP(t,e,n,r){var i=t.animators,o=i.length,a=[];if(t instanceof TP){var s=aKe(t,e,n);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var l={},u=0;u<o;u++){var c=i[u],f=[c.getMaxTime()/1e3+"s"],d=oj(c.getClip().easing),p=c.getDelay();d?f.push(d):f.push("linear"),p&&f.push(p/1e3+"s"),c.getLoop()&&f.push("infinite");var v=f.join(" ");l[v]=l[v]||[v,[]],l[v][1].push(c)}function g(b){var O=b[1],w=O.length,x={},S={},T={},$="animation-timing-function";function A(ue,ee,X){for(var Y=ue.getTracks(),le=ue.getMaxTime(),ge=0;ge<Y.length;ge++){var me=Y[ge];if(me.needsAnimate()){var Ne=me.keyframes,Le=me.propName;if(X&&(Le=X(Le)),Le)for(var Ee=0;Ee<Ne.length;Ee++){var $e=Ne[Ee],_e=Math.round($e.time/le*100)+"%",De=oj($e.easing),ze=$e.rawValue;(Ie(ze)||It(ze))&&(ee[_e]=ee[_e]||{},ee[_e][Le]=$e.rawValue,De&&(ee[_e][$]=De))}}}}for(var P=0;P<w;P++){var M=O[P],I=M.targetName;I?I==="shape"&&A(M,S):!r&&A(M,x)}for(var R in x){var L={};wae(L,t),he(L,x[R]);var D=yae(L),B=x[R][$];T[R]=D?{transform:D}:{},iKe(T[R],L),B&&(T[R][$]=B)}var F,z=!0;for(var R in S){T[R]=T[R]||{};var W=!F,B=S[R][$];W&&(F=new cl);var j=F.len();F.reset(),T[R].d=rKe(t,S[R],F);var H=F.len();if(!W&&j!==H){z=!1;break}B&&(T[R][$]=B)}if(!z)for(var R in T)delete T[R].d;if(!r)for(var P=0;P<w;P++){var M=O[P],I=M.targetName;I==="style"&&A(M,T,function(Y){return oKe[Y]})}for(var Z=bt(T),J=!0,se,P=1;P<Z.length;P++){var oe=Z[P-1],de=Z[P];if(T[oe][Yf]!==T[de][Yf]){J=!1;break}se=T[oe][Yf]}if(J&&se){for(var R in T)T[R][Yf]&&delete T[R][Yf];e[Yf]=se}if(Yt(Z,function(ue){return bt(T[ue]).length>0}).length){var re=Xue(T,n);return re+" "+b[0]+" both"}}for(var m in l){var s=g(l[m]);s&&a.push(s)}if(a.length){var y=n.zrId+"-cls-"+Zue();n.cssNodes["."+y]={animation:a.join(",")},e.class=y}}function sKe(t,e,n){if(!t.ignore)if(t.isSilent()){var r={"pointer-events":"none"};aj(r,e,n)}else{var i=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},o=i.fill;if(!o){var a=t.style&&t.style.fill,s=t.states.select&&t.states.select.style&&t.states.select.style.fill,l=t.currentStates.indexOf("select")>=0&&s||a;l&&(o=IS(l))}var u=i.lineWidth;if(u){var c=!i.strokeNoScale&&t.transform?t.transform[0]:1;u=u/c}var r={cursor:"pointer"};o&&(r.fill=o),i.stroke&&(r.stroke=i.stroke),u&&(r["stroke-width"]=u),aj(r,e,n)}}function aj(t,e,n,r){var i=JSON.stringify(t),o=n.cssStyleCache[i];o||(o=n.zrId+"-cls-"+Zue(),n.cssStyleCache[i]=o,n.cssNodes["."+o+":hover"]=t),e.class=e.class?e.class+" "+o:o}var hb=Math.round;function Yue(t){return t&&Ie(t.src)}function que(t){return t&&Fe(t.toDataURL)}function V5(t,e,n,r){Yqe(function(i,o){var a=i==="fill"||i==="stroke";a&&gae(o)?Jue(e,t,i,r):a&&E8(o)?ece(n,t,i,r):a&&o==="none"?t[i]="transparent":t[i]=o},e,n,!1),pKe(n,t,r)}function z5(t,e){var n=Tae(e);n&&(n.each(function(r,i){r!=null&&(t[(nj+i).toLowerCase()]=r+"")}),e.isSilent()&&(t[nj+"silent"]="true"))}function sj(t){return sc(t[0]-1)&&sc(t[1])&&sc(t[2])&&sc(t[3]-1)}function lKe(t){return sc(t[4])&&sc(t[5])}function F5(t,e,n){if(e&&!(lKe(e)&&sj(e))){var r=1e4;t.transform=sj(e)?"translate("+hb(e[4]*r)/r+" "+hb(e[5]*r)/r+")":tHe(e)}}function lj(t,e,n){for(var r=t.points,i=[],o=0;o<r.length;o++)i.push(hb(r[o][0]*n)/n),i.push(hb(r[o][1]*n)/n);e.points=i.join(" ")}function uj(t){return!t.smooth}function uKe(t){var e=ye(t,function(n){return typeof n=="string"?[n,n]:n});return function(n,r,i){for(var o=0;o<e.length;o++){var a=e[o],s=n[a[0]];s!=null&&(r[a[1]]=hb(s*i)/i)}}}var cKe={circle:[uKe(["cx","cy","r"])],polyline:[lj,uj],polygon:[lj,uj]};function fKe(t){for(var e=t.animators,n=0;n<e.length;n++)if(e[n].targetName==="shape")return!0;return!1}function Kue(t,e){var n=t.style,r=t.shape,i=cKe[t.type],o={},a=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&mae(t)||4;if(i&&!e.willUpdate&&!(i[1]&&!i[1](r))&&!(a&&fKe(t))&&!(l<1)){s=t.type;var c=Math.pow(10,u);i[0](r,o,c)}else{var f=!t.path||t.shapeChanged();t.path||t.createPathProxy();var d=t.path;f&&(d.beginPath(),t.buildPath(d,t.shape),t.pathUpdated());var p=d.getVersion(),v=t,g=v.__svgPathBuilder;(v.__svgPathVersion!==p||!g||l!==v.__svgPathStrokePercent)&&(g||(g=v.__svgPathBuilder=new Hue),g.reset(u),d.rebuildPath(g,l),g.generateStr(),v.__svgPathVersion=p,v.__svgPathStrokePercent=l),o.d=g.getStr()}return F5(o,t.transform),V5(o,n,t,e),z5(o,t),e.animation&&GP(t,o,e),e.emphasis&&sKe(t,o,e),Or(s,t.id+"",o)}function dKe(t,e){var n=t.style,r=n.image;if(r&&!Ie(r)&&(Yue(r)?r=r.src:que(r)&&(r=r.toDataURL())),!!r){var i=n.x||0,o=n.y||0,a=n.width,s=n.height,l={href:r,width:a,height:s};return i&&(l.x=i),o&&(l.y=o),F5(l,t.transform),V5(l,n,t,e),z5(l,t),e.animation&&GP(t,l,e),Or("image",t.id+"",l)}}function hKe(t,e){var n=t.style,r=n.text;if(r!=null&&(r+=""),!(!r||isNaN(n.x)||isNaN(n.y))){var i=n.font||Ac,o=n.x||0,a=rHe(n.y||0,pP(i),n.textBaseline),s=nHe[n.textAlign]||n.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(Jae(n)){var u="",c=n.fontStyle,f=Kae(n.fontSize);if(!parseFloat(f))return;var d=n.fontFamily||Woe,p=n.fontWeight;u+="font-size:"+f+";font-family:"+d+";",c&&c!=="normal"&&(u+="font-style:"+c+";"),p&&p!=="normal"&&(u+="font-weight:"+p+";"),l.style=u}else l.style="font: "+i;return r.match(/\s/)&&(l["xml:space"]="preserve"),o&&(l.x=o),a&&(l.y=a),F5(l,t.transform),V5(l,n,t,e),z5(l,t),e.animation&&GP(t,l,e),Or("text",t.id+"",l,void 0,r)}}function cj(t,e){if(t instanceof mt)return Kue(t,e);if(t instanceof Rr)return dKe(t,e);if(t instanceof Jv)return hKe(t,e)}function pKe(t,e,n){var r=t.style;if(iHe(r)){var i=oHe(t),o=n.shadowCache,a=o[i];if(!a){var s=t.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=r.shadowOffsetX||0,f=r.shadowOffsetY||0,d=r.shadowBlur,p=rb(r.shadowColor),v=p.opacity,g=p.color,m=d/2/l,y=d/2/u,b=m+" "+y;a=n.zrId+"-s"+n.shadowIdx++,n.defs[a]=Or("filter",a,{id:a,x:"-100%",y:"-100%",width:"300%",height:"300%"},[Or("feDropShadow","",{dx:c/l,dy:f/u,stdDeviation:b,"flood-color":g,"flood-opacity":v})]),o[i]=a}e.filter=hP(a)}}function Jue(t,e,n,r){var i=t[n],o,a={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(pae(i))o="linearGradient",a.x1=i.x,a.y1=i.y,a.x2=i.x2,a.y2=i.y2;else if(vae(i))o="radialGradient",a.cx=Je(i.x,.5),a.cy=Je(i.y,.5),a.r=Je(i.r,.5);else{process.env.NODE_ENV!=="production"&&ya("Illegal gradient type.");return}for(var s=i.colorStops,l=[],u=0,c=s.length;u<c;++u){var f=gR(s[u].offset)*100+"%",d=s[u].color,p=rb(d),v=p.color,g=p.opacity,m={offset:f};m["stop-color"]=v,g<1&&(m["stop-opacity"]=g),l.push(Or("stop",u+"",m))}var y=Or(o,"",a,l),b=B5(y),O=r.gradientCache,w=O[b];w||(w=r.zrId+"-g"+r.gradientIdx++,O[b]=w,a.id=w,r.defs[w]=Or(o,w,a,l)),e[n]=hP(w)}function ece(t,e,n,r){var i=t.style[n],o=t.getBoundingRect(),a={},s=i.repeat,l=s==="no-repeat",u=s==="repeat-x",c=s==="repeat-y",f;if(hae(i)){var d=i.imageWidth,p=i.imageHeight,v=void 0,g=i.image;if(Ie(g)?v=g:Yue(g)?v=g.src:que(g)&&(v=g.toDataURL()),typeof Image>"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";je(d,m),je(p,m)}else if(d==null||p==null){var y=function(P,M){if(P){var I=P.elm,R=d||M.width,L=p||M.height;P.tag==="pattern"&&(u?(L=1,R/=o.width):c&&(R=1,L/=o.height)),P.attrs.width=R,P.attrs.height=L,I&&(I.setAttribute("width",R),I.setAttribute("height",L))}},b=B8(v,null,t,function(P){l||y(S,P),y(f,P)});b&&b.width&&b.height&&(d=d||b.width,p=p||b.height)}f=Or("image","img",{href:v,width:d,height:p}),a.width=d,a.height=p}else i.svgElement&&(f=Ue(i.svgElement),a.width=i.svgWidth,a.height=i.svgHeight);if(f){var O,w;l?O=w=1:u?(w=1,O=a.width/o.width):c?(O=1,w=a.height/o.height):a.patternUnits="userSpaceOnUse",O!=null&&!isNaN(O)&&(a.width=O),w!=null&&!isNaN(w)&&(a.height=w);var x=yae(i);x&&(a.patternTransform=x);var S=Or("pattern","",a,[f]),T=B5(S),$=r.patternCache,A=$[T];A||(A=r.zrId+"-p"+r.patternIdx++,$[T]=A,a.id=A,S=r.defs[A]=Or("pattern",A,a,[f])),e[n]=hP(A)}}function vKe(t,e,n){var r=n.clipPathCache,i=n.defs,o=r[t.id];if(!o){o=n.zrId+"-c"+n.clipPathIdx++;var a={id:o};r[t.id]=o,i[o]=Or("clipPath",o,a,[Kue(t,n)])}e["clip-path"]=hP(o)}function fj(t){return document.createTextNode(t)}function sd(t,e,n){t.insertBefore(e,n)}function dj(t,e){t.removeChild(e)}function hj(t,e){t.appendChild(e)}function tce(t){return t.parentNode}function nce(t){return t.nextSibling}function GE(t,e){t.textContent=e}var pj=58,gKe=120,mKe=Or("","");function uk(t){return t===void 0}function Vs(t){return t!==void 0}function yKe(t,e,n){for(var r={},i=e;i<=n;++i){var o=t[i].key;o!==void 0&&(process.env.NODE_ENV!=="production"&&r[o]!=null&&console.error("Duplicate key "+o),r[o]=i)}return r}function M0(t,e){var n=t.key===e.key,r=t.tag===e.tag;return r&&n}function pb(t){var e,n=t.children,r=t.tag;if(Vs(r)){var i=t.elm=Uue(r);if(W5(mKe,t),ve(n))for(e=0;e<n.length;++e){var o=n[e];o!=null&&hj(i,pb(o))}else Vs(t.text)&&!Qe(t.text)&&hj(i,fj(t.text))}else t.elm=fj(t.text);return t.elm}function rce(t,e,n,r,i){for(;r<=i;++r){var o=n[r];o!=null&&sd(t,pb(o),e)}}function aC(t,e,n,r){for(;n<=r;++n){var i=e[n];if(i!=null)if(Vs(i.tag)){var o=tce(i.elm);dj(o,i.elm)}else dj(t,i.elm)}}function W5(t,e){var n,r=e.elm,i=t&&t.attrs||{},o=e.attrs||{};if(i!==o){for(n in o){var a=o[n],s=i[n];s!==a&&(a===!0?r.setAttribute(n,""):a===!1?r.removeAttribute(n):n==="style"?r.style.cssText=a:n.charCodeAt(0)!==gKe?r.setAttribute(n,a):n==="xmlns:xlink"||n==="xmlns"?r.setAttributeNS(qqe,n,a):n.charCodeAt(3)===pj?r.setAttributeNS(Kqe,n,a):n.charCodeAt(5)===pj?r.setAttributeNS(jue,n,a):r.setAttribute(n,a))}for(n in i)n in o||r.removeAttribute(n)}}function bKe(t,e,n){for(var r=0,i=0,o=e.length-1,a=e[0],s=e[o],l=n.length-1,u=n[0],c=n[l],f,d,p,v;r<=o&&i<=l;)a==null?a=e[++r]:s==null?s=e[--o]:u==null?u=n[++i]:c==null?c=n[--l]:M0(a,u)?(Bp(a,u),a=e[++r],u=n[++i]):M0(s,c)?(Bp(s,c),s=e[--o],c=n[--l]):M0(a,c)?(Bp(a,c),sd(t,a.elm,nce(s.elm)),a=e[++r],c=n[--l]):M0(s,u)?(Bp(s,u),sd(t,s.elm,a.elm),s=e[--o],u=n[++i]):(uk(f)&&(f=yKe(e,r,o)),d=f[u.key],uk(d)?sd(t,pb(u),a.elm):(p=e[d],p.tag!==u.tag?sd(t,pb(u),a.elm):(Bp(p,u),e[d]=void 0,sd(t,p.elm,a.elm))),u=n[++i]);(r<=o||i<=l)&&(r>o?(v=n[l+1]==null?null:n[l+1].elm,rce(t,v,n,i,l)):aC(t,e,r,o))}function Bp(t,e){var n=e.elm=t.elm,r=t.children,i=e.children;t!==e&&(W5(t,e),uk(e.text)?Vs(r)&&Vs(i)?r!==i&&bKe(n,r,i):Vs(i)?(Vs(t.text)&&GE(n,""),rce(n,null,i,0,i.length-1)):Vs(r)?aC(n,r,0,r.length-1):Vs(t.text)&&GE(n,""):t.text!==e.text&&(Vs(r)&&aC(n,r,0,r.length-1),GE(n,e.text)))}function _Ke(t,e){if(M0(t,e))Bp(t,e);else{var n=t.elm,r=tce(n);pb(e),r!==null&&(sd(r,e.elm,nce(n)),aC(r,[t],0,0))}return e}var OKe=0,wKe=function(){function t(e,n,r){if(this.type="svg",this.refreshHover=vj("refreshHover"),this.configLayer=vj("configLayer"),this.storage=n,this._opts=r=he({},r),this.root=e,this._id="zr"+OKe++,this._oldVNode=rj(r.width,r.height),e&&!r.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var o=this._svgDom=this._oldVNode.elm=Uue("svg");W5(null,this._oldVNode),i.appendChild(o),e.appendChild(i)}this.resize(r.width,r.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",_Ke(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return cj(e,lk(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var n=this.storage.getDisplayList(!0),r=this._width,i=this._height,o=lk(this._id);o.animation=e.animation,o.willUpdate=e.willUpdate,o.compress=e.compress,o.emphasis=e.emphasis;var a=[],s=this._bgVNode=xKe(r,i,this._backgroundColor,o);s&&a.push(s);var l=e.compress?null:this._mainVNode=Or("g","main",{},[]);this._paintList(n,o,l?l.children:a),l&&a.push(l);var u=ye(bt(o.defs),function(d){return o.defs[d]});if(u.length&&a.push(Or("defs","defs",{},u)),e.animation){var c=tKe(o.cssNodes,o.cssAnims,{newline:!0});if(c){var f=Or("style","stl",{},[],c);a.push(f)}}return rj(r,i,a,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},B5(this.renderToVNode({animation:Je(e.cssAnimation,!0),emphasis:Je(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Je(e.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(e,n,r){for(var i=e.length,o=[],a=0,s,l,u=0,c=0;c<i;c++){var f=e[c];if(!f.invisible){var d=f.__clipPaths,p=d&&d.length||0,v=l&&l.length||0,g=void 0;for(g=Math.max(p-1,v-1);g>=0&&!(d&&l&&d[g]===l[g]);g--);for(var m=v-1;m>g;m--)a--,s=o[a-1];for(var y=g+1;y<p;y++){var b={};vKe(d[y],b,n);var O=Or("g","clip-g-"+u++,b,[]);(s?s.children:r).push(O),o[a++]=O,s=O}l=d;var w=cj(f,n);w&&(s?s.children:r).push(w)}}},t.prototype.resize=function(e,n){var r=this._opts,i=this.root,o=this._viewport;if(e!=null&&(r.width=e),n!=null&&(r.height=n),i&&o&&(o.style.display="none",e=Yp(i,0,r),n=Yp(i,1,r),o.style.display=""),this._width!==e||this._height!==n){if(this._width=e,this._height=n,o){var a=o.style;a.width=e+"px",a.height=n+"px"}if(E8(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",e),s.setAttribute("height",n));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",e),l.setAttribute("height",n))}}},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},t.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},t.prototype.toDataURL=function(e){var n=this.renderToString(),r="data:image/svg+xml;";return e?(n=sHe(n),n&&r+"base64,"+n):r+"charset=UTF-8,"+encodeURIComponent(n)},t}();function vj(t){return function(){process.env.NODE_ENV!=="production"&&ya('In SVG mode painter not support method "'+t+'"')}}function xKe(t,e,n,r){var i;if(n&&n!=="none")if(i=Or("rect","bg",{width:t,height:e,x:"0",y:"0"}),gae(n))Jue({fill:n},i.attrs,"fill",r);else if(E8(n))ece({style:{fill:n},dirty:zn,getBoundingRect:function(){return{width:t,height:e}}},i.attrs,"fill",r);else{var o=rb(n),a=o.color,s=o.opacity;i.attrs.fill=a,s<1&&(i.attrs["fill-opacity"]=s)}return i}function SKe(t){t.registerPainter("svg",wKe)}function gj(t,e,n){var r=ls.createCanvas(),i=e.getWidth(),o=e.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",t)),r.width=i*n,r.height=o*n,r}var jE=function(t){ie(e,t);function e(n,r,i){var o=t.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||RS,typeof n=="string"?a=gj(n,r,i):Qe(n)&&(a=n,n=a.id),o.id=n,o.dom=a;var s=a.style;return s&&(C8(a),a.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),o.painter=r,o.dpr=i,o}return e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var n=this.dpr;this.domBack=gj("back-"+this.id,this.painter,n),this.ctxBack=this.domBack.getContext("2d"),n!==1&&this.ctxBack.scale(n,n)},e.prototype.createRepaintRects=function(n,r,i,o){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var a=[],s=this.maxRepaintRectCount,l=!1,u=new at(0,0,0,0);function c(b){if(!(!b.isFinite()||b.isZero()))if(a.length===0){var O=new at(0,0,0,0);O.copy(b),a.push(O)}else{for(var w=!1,x=1/0,S=0,T=0;T<a.length;++T){var $=a[T];if($.intersect(b)){var A=new at(0,0,0,0);A.copy($),A.union(b),a[T]=A,w=!0;break}else if(l){u.copy(b),u.union($);var P=b.width*b.height,M=$.width*$.height,I=u.width*u.height,R=I-P-M;R<x&&(x=R,S=T)}}if(l&&(a[S].union(b),w=!0),!w){var O=new at(0,0,0,0);O.copy(b),a.push(O)}l||(l=a.length>=s)}}for(var f=this.__startIndex;f<this.__endIndex;++f){var d=n[f];if(d){var p=d.shouldBePainted(i,o,!0,!0),v=d.__isRendered&&(d.__dirty&Co||!p)?d.getPrevPaintRect():null;v&&c(v);var g=p&&(d.__dirty&Co||!d.__isRendered)?d.getPaintRect():null;g&&c(g)}}for(var f=this.__prevStartIndex;f<this.__prevEndIndex;++f){var d=r[f],p=d&&d.shouldBePainted(i,o,!0,!0);if(d&&(!p||!d.__zr)&&d.__isRendered){var v=d.getPrevPaintRect();v&&c(v)}}var m;do{m=!1;for(var f=0;f<a.length;){if(a[f].isZero()){a.splice(f,1);continue}for(var y=f+1;y<a.length;)a[f].intersect(a[y])?(m=!0,a[f].union(a[y]),a.splice(y,1)):y++;f++}}while(m);return this._paintRects=a,a},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.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))},e.prototype.clear=function(n,r,i){var o=this.dom,a=this.ctx,s=o.width,l=o.height;r=r||this.clearColor;var u=this.motionBlur&&!n,c=this.lastFrameAlpha,f=this.dpr,d=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(o,0,0,s/f,l/f));var p=this.domBack;function v(g,m,y,b){if(a.clearRect(g,m,y,b),r&&r!=="transparent"){var O=void 0;if(u_(r)){var w=r.global||r.__width===y&&r.__height===b;O=w&&r.__canvasGradient||KR(a,r,{x:0,y:0,width:y,height:b}),r.__canvasGradient=O,r.__width=y,r.__height=b}else Uoe(r)&&(r.scaleX=r.scaleX||f,r.scaleY=r.scaleY||f,O=JR(a,r,{dirty:function(){d.setUnpainted(),d.painter.refresh()}}));a.save(),a.fillStyle=O||r,a.fillRect(g,m,y,b),a.restore()}u&&(a.save(),a.globalAlpha=c,a.drawImage(p,g,m,y,b),a.restore())}!i||u?v(0,0,s,l):i.length&&V(i,function(g){v(g.x*f,g.y*f,g.width*f,g.height*f)})},e}(Ma),mj=1e5,Gf=314159,QO=.01,CKe=.001;function TKe(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function PKe(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var $Ke=function(){function t(e,n,r,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var o=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=r=he({},r||{}),this.dpr=r.devicePixelRatio||RS,this._singleCanvas=o,this.root=e;var a=e.style;a&&(C8(e),e.innerHTML=""),this.storage=n;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(o){var c=e,f=c.width,d=c.height;r.width!=null&&(f=r.width),r.height!=null&&(d=r.height),this.dpr=r.devicePixelRatio||1,c.width=f*this.dpr,c.height=d*this.dpr,this._width=f,this._height=d;var p=new jE(c,this,this.dpr);p.__builtin__=!0,p.initContext(),l[Gf]=p,p.zlevel=Gf,s.push(Gf),this._domRoot=e}else{this._width=Yp(e,0,r),this._height=Yp(e,1,r);var u=this._domRoot=PKe(this._width,this._height);e.appendChild(u)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.refresh=function(e){var n=this.storage.getDisplayList(!0),r=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(n,r,e,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},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(e){var n=e.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=e[a];s.__inHover&&(r||(r=this._hoverlayer=this.getLayer(mj)),o||(o=r.ctx,o.save()),Sd(o,s,i,a===n-1))}o&&o.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(mj)},t.prototype.paintOne=function(e,n){y5(e,n)},t.prototype._paintList=function(e,n,r,i){if(this._redrawId===i){r=r||!1,this._updateLayerStatus(e);var o=this._doPaintList(e,n,r),a=o.finished,s=o.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(e),a)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;$S(function(){l._paintList(e,n,r,i)})}}},t.prototype._compositeManually=function(){var e=this.getLayer(Gf).ctx,n=this._domRoot.width,r=this._domRoot.height;e.clearRect(0,0,n,r),this.eachBuiltinLayer(function(i){i.virtual&&e.drawImage(i.dom,0,0,n,r)})},t.prototype._doPaintList=function(e,n,r){for(var i=this,o=[],a=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var l=this._zlevelList[s],u=this._layers[l];u.__builtin__&&u!==this._hoverlayer&&(u.__dirty||r)&&o.push(u)}for(var c=!0,f=!1,d=function(g){var m=o[g],y=m.ctx,b=a&&m.createRepaintRects(e,n,p._width,p._height),O=r?m.__startIndex:m.__drawIndex,w=!r&&m.incremental&&Date.now,x=w&&Date.now(),S=m.zlevel===p._zlevelList[0]?p._backgroundColor:null;if(m.__startIndex===m.__endIndex)m.clear(!1,S,b);else if(O===m.__startIndex){var T=e[O];(!T.incremental||!T.notClear||r)&&m.clear(!1,S,b)}O===-1&&(console.error("For some unknown reason. drawIndex is -1"),O=m.__startIndex);var $,A=function(R){var L={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for($=O;$<m.__endIndex;$++){var D=e[$];if(D.__inHover&&(f=!0),i._doPaintEl(D,m,a,R,L,$===m.__endIndex-1),w){var B=Date.now()-x;if(B>15)break}}L.prevElClipPaths&&y.restore()};if(b)if(b.length===0)$=m.__endIndex;else for(var P=p.dpr,M=0;M<b.length;++M){var I=b[M];y.save(),y.beginPath(),y.rect(I.x*P,I.y*P,I.width*P,I.height*P),y.clip(),A(I),y.restore()}else y.save(),A(),y.restore();m.__drawIndex=$,m.__drawIndex<m.__endIndex&&(c=!1)},p=this,v=0;v<o.length;v++)d(v);return Ct.wxa&&V(this._layers,function(g){g&&g.ctx&&g.ctx.draw&&g.ctx.draw()}),{finished:c,needsRefreshHover:f}},t.prototype._doPaintEl=function(e,n,r,i,o,a){var s=n.ctx;if(r){var l=e.getPaintRect();(!i||l&&l.intersect(i))&&(Sd(s,e,o,a),e.setPrevPaintRect(l))}else Sd(s,e,o,a)},t.prototype.getLayer=function(e,n){this._singleCanvas&&!this._needsManuallyCompositing&&(e=Gf);var r=this._layers[e];return r||(r=new jE("zr_"+e,this,this.dpr),r.zlevel=e,r.__builtin__=!0,this._layerConfig[e]?it(r,this._layerConfig[e],!0):this._layerConfig[e-QO]&&it(r,this._layerConfig[e-QO],!0),n&&(r.virtual=n),this.insertLayer(e,r),r.initContext()),r},t.prototype.insertLayer=function(e,n){var r=this._layers,i=this._zlevelList,o=i.length,a=this._domRoot,s=null,l=-1;if(r[e]){process.env.NODE_ENV!=="production"&&ya("ZLevel "+e+" has been used already");return}if(!TKe(n)){process.env.NODE_ENV!=="production"&&ya("Layer of zlevel "+e+" is not valid");return}if(o>0&&e>i[0]){for(l=0;l<o-1&&!(i[l]<e&&i[l+1]>e);l++);s=r[i[l]]}if(i.splice(l+1,0,e),r[e]=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)},t.prototype.eachLayer=function(e,n){for(var r=this._zlevelList,i=0;i<r.length;i++){var o=r[i];e.call(n,this._layers[o],o)}},t.prototype.eachBuiltinLayer=function(e,n){for(var r=this._zlevelList,i=0;i<r.length;i++){var o=r[i],a=this._layers[o];a.__builtin__&&e.call(n,a,o)}},t.prototype.eachOtherLayer=function(e,n){for(var r=this._zlevelList,i=0;i<r.length;i++){var o=r[i],a=this._layers[o];a.__builtin__||e.call(n,a,o)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(f,d){f.__dirty=f.__used=!1});function n(f){o&&(o.__endIndex!==f&&(o.__dirty=!0),o.__endIndex=f)}if(this._singleCanvas)for(var r=1;r<e.length;r++){var i=e[r];if(i.zlevel!==e[r-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var o=null,a=0,s,l;for(l=0;l<e.length;l++){var i=e[l],u=i.zlevel,c=void 0;s!==u&&(s=u,a=0),i.incremental?(c=this.getLayer(u+CKe,this._needsManuallyCompositing),c.incremental=!0,a=1):c=this.getLayer(u+(a>0?QO:0),this._needsManuallyCompositing),c.__builtin__||ya("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&Co&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}n(l),this.eachBuiltinLayer(function(f,d){!f.__used&&f.getElementCount()>0&&(f.__dirty=!0,f.__startIndex=f.__endIndex=f.__drawIndex=0),f.__dirty&&f.__drawIndex<0&&(f.__drawIndex=f.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(e){e.clear()},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,V(this._layers,function(n){n.setUnpainted()})},t.prototype.configLayer=function(e,n){if(n){var r=this._layerConfig;r[e]?it(r[e],n,!0):r[e]=n;for(var i=0;i<this._zlevelList.length;i++){var o=this._zlevelList[i];if(o===e||o===e+QO){var a=this._layers[o];it(a,r[e],!0)}}}},t.prototype.delLayer=function(e){var n=this._layers,r=this._zlevelList,i=n[e];i&&(i.dom.parentNode.removeChild(i.dom),delete n[e],r.splice(st(r,e),1))},t.prototype.resize=function(e,n){if(this._domRoot.style){var r=this._domRoot;r.style.display="none";var i=this._opts,o=this.root;if(e!=null&&(i.width=e),n!=null&&(i.height=n),e=Yp(o,0,i),n=Yp(o,1,i),r.style.display="",this._width!==e||n!==this._height){r.style.width=e+"px",r.style.height=n+"px";for(var a in this._layers)this._layers.hasOwnProperty(a)&&this._layers[a].resize(e,n);this.refresh(!0)}this._width=e,this._height=n}else{if(e==null||n==null)return;this._width=e,this._height=n,this.getLayer(Gf).resize(e,n)}return this},t.prototype.clearLayer=function(e){var n=this._layers[e];n&&n.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[Gf].dom;var n=new jE("image",this,e.pixelRatio||this.dpr);n.initContext(),n.clear(!1,e.backgroundColor||this._backgroundColor);var r=n.ctx;if(e.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];Sd(r,c,a,l===u-1)}return n.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}();function AKe(t){t.registerPainter("canvas",$Ke)}var EKe=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return e.prototype.getInitialData=function(n){if(process.env.NODE_ENV!=="production"){var r=n.coordinateSystem;if(r!=="polar"&&r!=="cartesian2d")throw new Error("Line not support coordinateSystem besides cartesian and polar")}return pl(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(n){var r=new qe,i=Yn("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=Yn(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},e.type="series.line",e.dependencies=["grid","polar"],e.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},e}(rn);function rg(t,e){var n=t.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var i=tg(t,e,n[0]);return i!=null?i+"":null}else if(r){for(var o=[],a=0;a<n.length;a++)o.push(tg(t,e,n[a]));return o.join(" ")}}function ice(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!ve(e))return e+"";for(var r=[],i=0;i<n.length;i++){var o=t.getDimensionIndex(n[i]);o>=0&&r.push(e[o])}return r.join(" ")}var S_=function(t){ie(e,t);function e(n,r,i,o){var a=t.call(this)||this;return a.updateData(n,r,i,o),a}return e.prototype._createSymbol=function(n,r,i,o,a){this.removeAll();var s=Yn(n,-1,-1,2,2,null,a);s.attr({z2:100,culling:!0,scaleX:o[0]/2,scaleY:o[1]/2}),s.drift=MKe,this._symbolType=n,this.add(s)},e.prototype.stopSymbolAnimation=function(n){this.childAt(0).stopAnimation(null,n)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){iu(this.childAt(0))},e.prototype.downplay=function(){ou(this.childAt(0))},e.prototype.setZ=function(n,r){var i=this.childAt(0);i.zlevel=n,i.z=r},e.prototype.setDraggable=function(n,r){var i=this.childAt(0);i.draggable=n,i.cursor=!r&&n?"move":i.cursor},e.prototype.updateData=function(n,r,i,o){this.silent=!1;var a=n.getItemVisual(r,"symbol")||"circle",s=n.hostModel,l=e.getSymbolSize(n,r),u=a!==this._symbolType,c=o&&o.disableAnimation;if(u){var f=n.getItemVisual(r,"symbolKeepAspect");this._createSymbol(a,n,r,l,f)}else{var d=this.childAt(0);d.silent=!1;var p={scaleX:l[0]/2,scaleY:l[1]/2};c?d.attr(p):kt(d,p,s,r),fs(d)}if(this._updateCommon(n,r,l,i,o),u){var d=this.childAt(0);if(!c){var p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,gn(d,p,s,r)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(n,r,i,o,a){var s=this.childAt(0),l=n.hostModel,u,c,f,d,p,v,g,m,y;if(o&&(u=o.emphasisItemStyle,c=o.blurItemStyle,f=o.selectItemStyle,d=o.focus,p=o.blurScope,g=o.labelStatesModels,m=o.hoverScale,y=o.cursorStyle,v=o.emphasisDisabled),!o||n.hasItemOption){var b=o&&o.itemModel?o.itemModel:n.getItemModel(r),O=b.getModel("emphasis");u=O.getModel("itemStyle").getItemStyle(),f=b.getModel(["select","itemStyle"]).getItemStyle(),c=b.getModel(["blur","itemStyle"]).getItemStyle(),d=O.get("focus"),p=O.get("blurScope"),v=O.get("disabled"),g=Cr(b),m=O.getShallow("scale"),y=b.getShallow("cursor")}var w=n.getItemVisual(r,"symbolRotate");s.attr("rotation",(w||0)*Math.PI/180||0);var x=Dh(n.getItemVisual(r,"symbolOffset"),i);x&&(s.x=x[0],s.y=x[1]),y&&s.attr("cursor",y);var S=n.getItemVisual(r,"style"),T=S.fill;if(s instanceof Rr){var $=s.style;s.useStyle(he({image:$.image,x:$.x,y:$.y,width:$.width,height:$.height},S))}else s.__isEmptyBrush?s.useStyle(he({},S)):s.useStyle(S),s.style.decal=null,s.setColor(T,a&&a.symbolInnerColor),s.style.strokeNoScale=!0;var A=n.getItemVisual(r,"liftZ"),P=this._z2;A!=null?P==null&&(this._z2=s.z2,s.z2+=A):P!=null&&(s.z2=P,this._z2=null);var M=a&&a.useNameLabel;Jr(s,g,{labelFetcher:l,labelDataIndex:r,defaultText:I,inheritColor:T,defaultOpacity:S.opacity});function I(D){return M?n.getName(D):rg(n,D)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var R=s.ensureState("emphasis");R.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var L=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;R.scaleX=this._sizeX*L,R.scaleY=this._sizeY*L,this.setSymbolScale(1),Bn(this,d,p,v)},e.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},e.prototype.fadeOut=function(n,r,i){var o=this.childAt(0),a=Ke(this).dataIndex,s=i&&i.animation;if(this.silent=o.silent=!0,i&&i.fadeLabel){var l=o.getTextContent();l&&Rc(l,{style:{opacity:0}},r,{dataIndex:a,removeOpt:s,cb:function(){o.removeTextContent()}})}else o.removeTextContent();Rc(o,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:a,cb:n,removeOpt:s})},e.getSymbolSize=function(n,r){return zg(n.getItemVisual(r,"symbolSize"))},e}(qe);function MKe(t,e){this.parent.drift(t,e)}function UE(t,e,n,r){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(e[0],e[1]))&&t.getItemVisual(n,"symbol")!=="none"}function yj(t){return t!=null&&!Qe(t)&&(t={isIgnore:t}),t||{}}function bj(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:Cr(e),cursorStyle:e.get("cursor")}}var C_=function(){function t(e){this.group=new qe,this._SymbolCtor=e||S_}return t.prototype.updateData=function(e,n){this._progressiveEls=null,n=yj(n);var r=this.group,i=e.hostModel,o=this._data,a=this._SymbolCtor,s=n.disableAnimation,l=bj(e),u={disableAnimation:s},c=n.getSymbolPoint||function(f){return e.getItemLayout(f)};o||r.removeAll(),e.diff(o).add(function(f){var d=c(f);if(UE(e,d,f,n)){var p=new a(e,f,l,u);p.setPosition(d),e.setItemGraphicEl(f,p),r.add(p)}}).update(function(f,d){var p=o.getItemGraphicEl(d),v=c(f);if(!UE(e,v,f,n)){r.remove(p);return}var g=e.getItemVisual(f,"symbol")||"circle",m=p&&p.getSymbolType&&p.getSymbolType();if(!p||m&&m!==g)r.remove(p),p=new a(e,f,l,u),p.setPosition(v);else{p.updateData(e,f,l,u);var y={x:v[0],y:v[1]};s?p.attr(y):kt(p,y,i)}r.add(p),e.setItemGraphicEl(f,p)}).remove(function(f){var d=o.getItemGraphicEl(f);d&&d.fadeOut(function(){r.remove(d)},i)}).execute(),this._getSymbolPoint=c,this._data=e},t.prototype.updateLayout=function(){var e=this,n=this._data;n&&n.eachItemGraphicEl(function(r,i){var o=e._getSymbolPoint(i);r.setPosition(o),r.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=bj(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,n,r){this._progressiveEls=[],r=yj(r);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var o=e.start;o<e.end;o++){var a=n.getItemLayout(o);if(UE(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)}}},t.prototype.eachRendered=function(e){qc(this._progressiveEls||this.group,e)},t.prototype.remove=function(e){var n=this.group,r=this._data;r&&e?r.eachItemGraphicEl(function(i){i.fadeOut(function(){n.remove(i)},r.hostModel)}):n.removeAll()},t}();function oce(t,e,n){var r=t.getBaseAxis(),i=t.getOtherAxis(r),o=IKe(i,n),a=r.dim,s=i.dim,l=e.mapDimension(s),u=e.mapDimension(a),c=s==="x"||s==="radius"?1:0,f=ye(t.dimensions,function(v){return e.mapDimension(v)}),d=!1,p=e.getCalculationInfo("stackResultDimension");return su(e,f[0])&&(d=!0,f[0]=p),su(e,f[1])&&(d=!0,f[1]=p),{dataDimsForPoint:f,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function IKe(t,e){var n=0,r=t.scale.getExtent();return e==="start"?n=r[0]:e==="end"?n=r[1]:It(e)&&!isNaN(e)?n=e:r[0]>0?n=r[0]:r[1]<0&&(n=r[1]),n}function ace(t,e,n,r){var i=NaN;t.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,r),a[1-o]=i,e.dataToPoint(a)}function DKe(t,e){var n=[];return e.diff(t).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 RKe(t,e,n,r,i,o,a,s){for(var l=DKe(t,e),u=[],c=[],f=[],d=[],p=[],v=[],g=[],m=oce(i,e,a),y=t.getLayout("points")||[],b=e.getLayout("points")||[],O=0;O<l.length;O++){var w=l[O],x=!0,S=void 0,T=void 0;switch(w.cmd){case"=":S=w.idx*2,T=w.idx1*2;var $=y[S],A=y[S+1],P=b[T],M=b[T+1];(isNaN($)||isNaN(A))&&($=P,A=M),u.push($,A),c.push(P,M),f.push(n[S],n[S+1]),d.push(r[T],r[T+1]),g.push(e.getRawIndex(w.idx1));break;case"+":var I=w.idx,R=m.dataDimsForPoint,L=i.dataToPoint([e.get(R[0],I),e.get(R[1],I)]);T=I*2,u.push(L[0],L[1]),c.push(b[T],b[T+1]);var D=ace(m,i,e,I);f.push(D[0],D[1]),d.push(r[T],r[T+1]),g.push(e.getRawIndex(I));break;case"-":x=!1}x&&(p.push(w),v.push(v.length))}v.sort(function(oe,de){return g[oe]-g[de]});for(var B=u.length,F=Us(B),z=Us(B),W=Us(B),j=Us(B),H=[],O=0;O<v.length;O++){var Z=v[O],J=O*2,se=Z*2;F[J]=u[se],F[J+1]=u[se+1],z[J]=c[se],z[J+1]=c[se+1],W[J]=f[se],W[J+1]=f[se+1],j[J]=d[se],j[J+1]=d[se+1],H[O]=p[Z]}return{current:F,next:z,stackedOnCurrent:W,stackedOnNext:j,status:H}}var zu=Math.min,Fu=Math.max;function Qd(t,e){return isNaN(t)||isNaN(e)}function ck(t,e,n,r,i,o,a,s,l){for(var u,c,f,d,p,v,g=n,m=0;m<r;m++){var y=e[g*2],b=e[g*2+1];if(g>=i||g<0)break;if(Qd(y,b)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](y,b),f=y,d=b;else{var O=y-u,w=b-c;if(O*O+w*w<.5){g+=o;continue}if(a>0){for(var x=g+o,S=e[x*2],T=e[x*2+1];S===y&&T===b&&m<r;)m++,x+=o,g+=o,S=e[x*2],T=e[x*2+1],y=e[g*2],b=e[g*2+1],O=y-u,w=b-c;var $=m+1;if(l)for(;Qd(S,T)&&$<r;)$++,x+=o,S=e[x*2],T=e[x*2+1];var A=.5,P=0,M=0,I=void 0,R=void 0;if($>=r||Qd(S,T))p=y,v=b;else{P=S-u,M=T-c;var L=y-u,D=S-y,B=b-c,F=T-b,z=void 0,W=void 0;if(s==="x"){z=Math.abs(L),W=Math.abs(D);var j=P>0?1:-1;p=y-j*z*a,v=b,I=y+j*W*a,R=b}else if(s==="y"){z=Math.abs(B),W=Math.abs(F);var H=M>0?1:-1;p=y,v=b-H*z*a,I=y,R=b+H*W*a}else z=Math.sqrt(L*L+B*B),W=Math.sqrt(D*D+F*F),A=W/(W+z),p=y-P*a*(1-A),v=b-M*a*(1-A),I=y+P*a*A,R=b+M*a*A,I=zu(I,Fu(S,y)),R=zu(R,Fu(T,b)),I=Fu(I,zu(S,y)),R=Fu(R,zu(T,b)),P=I-y,M=R-b,p=y-P*z/W,v=b-M*z/W,p=zu(p,Fu(u,y)),v=zu(v,Fu(c,b)),p=Fu(p,zu(u,y)),v=Fu(v,zu(c,b)),P=y-p,M=b-v,I=y+P*W/z,R=b+M*W/z}t.bezierCurveTo(f,d,p,v,y,b),f=I,d=R}else t.lineTo(y,b)}u=y,c=b,g+=o}return m}var sce=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),kKe=function(t){ie(e,t);function e(n){var r=t.call(this,n)||this;return r.type="ec-polyline",r}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new sce},e.prototype.buildPath=function(n,r){var i=r.points,o=0,a=i.length/2;if(r.connectNulls){for(;a>0&&Qd(i[a*2-2],i[a*2-1]);a--);for(;o<a&&Qd(i[o*2],i[o*2+1]);o++);}for(;o<a;)o+=ck(n,i,o,a,a,1,r.smooth,r.smoothMonotone,r.connectNulls)+1},e.prototype.getPointOn=function(n,r){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,o=i.data,a=cl.CMD,s,l,u=r==="x",c=[],f=0;f<o.length;){var d=o[f++],p=void 0,v=void 0,g=void 0,m=void 0,y=void 0,b=void 0,O=void 0;switch(d){case a.M:s=o[f++],l=o[f++];break;case a.L:if(p=o[f++],v=o[f++],O=u?(n-s)/(p-s):(n-l)/(v-l),O<=1&&O>=0){var w=u?(v-l)*O+l:(p-s)*O+s;return u?[n,w]:[w,n]}s=p,l=v;break;case a.C:p=o[f++],v=o[f++],g=o[f++],m=o[f++],y=o[f++],b=o[f++];var x=u?ES(s,p,g,y,n,c):ES(l,v,m,b,n,c);if(x>0)for(var S=0;S<x;S++){var T=c[S];if(T<=1&&T>=0){var w=u?mr(l,v,m,b,T):mr(s,p,g,y,T);return u?[n,w]:[w,n]}}s=y,l=b;break}}},e}(mt),NKe=function(t){ie(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(sce),lce=function(t){ie(e,t);function e(n){var r=t.call(this,n)||this;return r.type="ec-polygon",r}return e.prototype.getDefaultShape=function(){return new NKe},e.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&&Qd(i[s*2-2],i[s*2-1]);s--);for(;a<s&&Qd(i[a*2],i[a*2+1]);a++);}for(;a<s;){var u=ck(n,i,a,s,s,1,r.smooth,l,r.connectNulls);ck(n,o,a+u-1,u,s,-1,r.stackedOnSmooth,l,r.connectNulls),a+=u+1,n.closePath()}},e}(mt);function uce(t,e,n,r,i){var o=t.getArea(),a=o.x,s=o.y,l=o.width,u=o.height,c=n.get(["lineStyle","width"])||2;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 Pt({shape:{x:a,y:s,width:l,height:u}});if(e){var d=t.getBaseAxis(),p=d.isHorizontal(),v=d.inverse;p?(v&&(f.shape.x+=l),f.shape.width=0):(v||(f.shape.y+=u),f.shape.height=0);var g=Fe(i)?function(m){i(m,f)}:null;gn(f,{shape:{width:l,height:u,x:a,y:s}},n,null,r,g)}return f}function cce(t,e,n){var r=t.getArea(),i=Nn(r.r0,1),o=Nn(r.r,1),a=new Ni({shape:{cx:Nn(t.cx,1),cy:Nn(t.cy,1),r0:i,r:o,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});if(e){var s=t.getBaseAxis().dim==="angle";s?a.shape.endAngle=r.startAngle:a.shape.r=i,gn(a,{shape:{endAngle:r.endAngle,r:o}},n)}return a}function T_(t,e,n,r,i){if(t){if(t.type==="polar")return cce(t,e,n);if(t.type==="cartesian2d")return uce(t,e,n,r,i)}else return null;return null}function Rh(t,e){return t.type===e}function _j(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function Oj(t){for(var e=1/0,n=1/0,r=-1/0,i=-1/0,o=0;o<t.length;){var a=t[o++],s=t[o++];isNaN(a)||(e=Math.min(a,e),r=Math.max(a,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[e,n],[r,i]]}function wj(t,e){var n=Oj(t),r=n[0],i=n[1],o=Oj(e),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 xj(t){return It(t)?t:t?.5:0}function LKe(t,e,n){if(!n.valueDim)return[];for(var r=e.count(),i=Us(r*2),o=0;o<r;o++){var a=ace(n,t,e,o);i[o*2]=a[0],i[o*2+1]=a[1]}return i}function Wu(t,e,n,r){var i=e.getBaseAxis(),o=i.dim==="x"||i.dim==="radius"?0:1,a=[],s=0,l=[],u=[],c=[],f=[];if(r){for(s=0;s<t.length;s+=2)!isNaN(t[s])&&!isNaN(t[s+1])&&f.push(t[s],t[s+1]);t=f}for(s=0;s<t.length-2;s+=2)switch(c[0]=t[s+2],c[1]=t[s+3],u[0]=t[s],u[1]=t[s+1],a.push(u[0],u[1]),n){case"end":l[o]=c[o],l[1-o]=u[1-o],a.push(l[0],l[1]);break;case"middle":var d=(u[o]+c[o])/2,p=[];l[o]=p[o]=d,l[1-o]=u[1-o],p[1-o]=c[1-o],a.push(l[0],l[1]),a.push(p[0],p[1]);break;default:l[o]=u[o],l[1-o]=c[1-o],a.push(l[0],l[1])}return a.push(t[s++],t[s++]),a}function BKe(t,e){var n=[],r=t.length,i,o;function a(c,f,d){var p=c.coord,v=(d-p)/(f.coord-p),g=A8(v,[c.color,f.color]);return{coord:d,color:g}}for(var s=0;s<r;s++){var l=t[s],u=l.coord;if(u<0)i=l;else if(u>e){o?n.push(a(o,l,e)):i&&n.push(a(i,l,0),a(i,l,e));break}else i&&(n.push(a(i,l,0)),i=null),n.push(l),o=l}return n}function VKe(t,e,n){var r=t.getVisual("visualMeta");if(!(!r||!r.length||!t.count())){if(e.type!=="cartesian2d"){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style is only supported on cartesian2d.");return}for(var i,o,a=r.length-1;a>=0;a--){var s=t.getDimensionInfo(r[a].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){o=r[a];break}}if(!o){process.env.NODE_ENV!=="production"&&console.warn("Visual map on line style only support x or y dimension.");return}var l=e.getAxis(i),u=ye(o.stops,function(O){return{coord:l.toGlobalCoord(l.dataToCoord(O.value)),color:O.color}}),c=u.length,f=o.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=BKe(u,i==="x"?n.getWidth():n.getHeight()),p=d.length;if(!p&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var v=10,g=d[0].coord-v,m=d[p-1].coord+v,y=m-g;if(y<.001)return"transparent";V(d,function(O){O.offset=(O.coord-g)/y}),d.push({offset:p?d[p-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:f[0]||"transparent"});var b=new Eg(0,0,0,0,d,!0);return b[i]=g,b[i+"2"]=m,b}}function zKe(t,e,n){var r=t.get("showAllSymbol"),i=r==="auto";if(!(r&&!i)){var o=n.getAxesByScale("ordinal")[0];if(o&&!(i&&FKe(o,e))){var a=e.mapDimension(o.dim),s={};return V(o.getViewLabels(),function(l){var u=o.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(a,l))}}}}function FKe(t,e){var n=t.getExtent(),r=Math.abs(n[1]-n[0])/t.scale.count();isNaN(r)&&(r=0);for(var i=e.count(),o=Math.max(1,Math.round(i/5)),a=0;a<i;a+=o)if(S_.getSymbolSize(e,a)[t.isHorizontal()?1:0]*1.5>r)return!1;return!0}function WKe(t,e){return isNaN(t)||isNaN(e)}function QKe(t){for(var e=t.length/2;e>0&&WKe(t[e*2-2],t[e*2-1]);e--);return e-1}function Sj(t,e){return[t[e*2],t[e*2+1]]}function HKe(t,e,n){for(var r=t.length/2,i=n==="x"?0:1,o,a,s=0,l=-1,u=0;u<r;u++)if(a=t[u*2+i],!(isNaN(a)||isNaN(t[u*2+1-i]))){if(u===0){o=a;continue}if(o<=e&&a>=e||o>=e&&a<=e){l=u;break}s=u,o=a}return{range:[s,l],t:(e-o)/(a-o)}}function fce(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<ki.length;e++)if(t.get([ki[e],"endLabel","show"]))return!0;return!1}function ZE(t,e,n,r){if(Rh(e,"cartesian2d")){var i=r.getModel("endLabel"),o=i.get("valueAnimation"),a=r.getData(),s={lastFrameIndex:0},l=fce(r)?function(p,v){t._endLabelOnDuring(p,v,a,s,o,i,e)}:null,u=e.getBaseAxis().isHorizontal(),c=uce(e,n,r,function(){var p=t._endLabel;p&&n&&s.originalX!=null&&p.attr({x:s.originalX,y:s.originalY})},l);if(!r.get("clip",!0)){var f=c.shape,d=Math.max(f.width,f.height);u?(f.y-=d,f.height+=d*2):(f.x-=d,f.width+=d*2)}return l&&l(1,c),c}else return process.env.NODE_ENV!=="production"&&r.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),cce(e,n,r)}function GKe(t,e){var n=e.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,o=r?i?"right":"left":"center",a=r?"middle":i?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}var jKe=function(t){ie(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var n=new qe,r=new C_;this.group.add(r.group),this._symbolDraw=r,this._lineGroup=n},e.prototype.render=function(n,r,i){var o=this,a=n.coordinateSystem,s=this.group,l=n.getData(),u=n.getModel("lineStyle"),c=n.getModel("areaStyle"),f=l.getLayout("points")||[],d=a.type==="polar",p=this._coordSys,v=this._symbolDraw,g=this._polyline,m=this._polygon,y=this._lineGroup,b=!r.ssr&&n.get("animation"),O=!c.isEmpty(),w=c.get("origin"),x=oce(a,l,w),S=O&&LKe(a,l,x),T=n.get("showSymbol"),$=n.get("connectNulls"),A=T&&!d&&zKe(n,l,a),P=this._data;P&&P.eachItemGraphicEl(function(de,re){de.__temp&&(s.remove(de),P.setItemGraphicEl(re,null))}),T||v.remove(),s.add(y);var M=d?!1:n.get("step"),I;a&&a.getArea&&n.get("clip",!0)&&(I=a.getArea(),I.width!=null?(I.x-=.1,I.y-=.1,I.width+=.2,I.height+=.2):I.r0&&(I.r0-=.5,I.r+=.5)),this._clipShapeForSymbol=I;var R=VKe(l,a,i)||l.getVisual("style")[l.getVisual("drawType")];if(!(g&&p.type===a.type&&M===this._step))T&&v.updateData(l,{isIgnore:A,clipShape:I,disableAnimation:!0,getSymbolPoint:function(de){return[f[de*2],f[de*2+1]]}}),b&&this._initSymbolLabelAnimation(l,a,I),M&&(f=Wu(f,a,M,$),S&&(S=Wu(S,a,M,$))),g=this._newPolyline(f),O?m=this._newPolygon(f,S):m&&(y.remove(m),m=this._polygon=null),d||this._initOrUpdateEndLabel(n,a,fh(R)),y.setClipPath(ZE(this,a,!0,n));else{O&&!m?m=this._newPolygon(f,S):m&&!O&&(y.remove(m),m=this._polygon=null),d||this._initOrUpdateEndLabel(n,a,fh(R));var L=y.getClipPath();if(L){var D=ZE(this,a,!1,n);gn(L,{shape:D.shape},n)}else y.setClipPath(ZE(this,a,!0,n));T&&v.updateData(l,{isIgnore:A,clipShape:I,disableAnimation:!0,getSymbolPoint:function(de){return[f[de*2],f[de*2+1]]}}),(!_j(this._stackedOnPoints,S)||!_j(this._points,f))&&(b?this._doUpdateAnimation(l,S,a,i,M,w,$):(M&&(f=Wu(f,a,M,$),S&&(S=Wu(S,a,M,$))),g.setShape({points:f}),m&&m.setShape({points:f,stackedOnPoints:S})))}var B=n.getModel("emphasis"),F=B.get("focus"),z=B.get("blurScope"),W=B.get("disabled");if(g.useStyle(Ge(u.getLineStyle(),{fill:"none",stroke:R,lineJoin:"bevel"})),Kr(g,n,"lineStyle"),g.style.lineWidth>0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var j=g.getState("emphasis").style;j.lineWidth=+g.style.lineWidth+1}Ke(g).seriesIndex=n.seriesIndex,Bn(g,F,z,W);var H=xj(n.get("smooth")),Z=n.get("smoothMonotone");if(g.setShape({smooth:H,smoothMonotone:Z,connectNulls:$}),m){var J=l.getCalculationInfo("stackedOnSeries"),se=0;m.useStyle(Ge(c.getAreaStyle(),{fill:R,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),J&&(se=xj(J.get("smooth"))),m.setShape({smooth:H,stackedOnSmooth:se,smoothMonotone:Z,connectNulls:$}),Kr(m,n,"areaStyle"),Ke(m).seriesIndex=n.seriesIndex,Bn(m,F,z,W)}var oe=function(de){o._changePolyState(de)};l.eachItemGraphicEl(function(de){de&&(de.onHoverStateChange=oe)}),this._polyline.onHoverStateChange=oe,this._data=l,this._coordSys=a,this._stackedOnPoints=S,this._points=f,this._step=M,this._valueOrigin=w,n.get("triggerLineEvent")&&(this.packEventData(n,g),m&&this.packEventData(n,m))},e.prototype.packEventData=function(n,r){Ke(r).eventData={componentType:"series",componentSubType:"line",componentIndex:n.componentIndex,seriesIndex:n.seriesIndex,seriesName:n.name,seriesType:"line"}},e.prototype.highlight=function(n,r,i,o){var a=n.getData(),s=lh(a,o);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=a.getLayout("points"),u=a.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var d=n.get("zlevel")||0,p=n.get("z")||0;u=new S_(a,s),u.x=c,u.y=f,u.setZ(d,p);var v=u.getSymbolPath().getTextContent();v&&(v.zlevel=d,v.z=p,v.z2=this._polyline.z2+1),u.__temp=!0,a.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else Kt.prototype.highlight.call(this,n,r,i,o)},e.prototype.downplay=function(n,r,i,o){var a=n.getData(),s=lh(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 Kt.prototype.downplay.call(this,n,r,i,o)},e.prototype._changePolyState=function(n){var r=this._polygon;BS(this._polyline,n),r&&BS(r,n)},e.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new kKe({shape:{points:n},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},e.prototype._newPolygon=function(n,r){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new lce({shape:{points:n,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.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");Fe(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=Fe(f)?f(null):f;n.eachItemGraphicEl(function(p,v){var g=p;if(g){var m=[p.x,p.y],y=void 0,b=void 0,O=void 0;if(i)if(a){var w=i,x=r.pointToCoord(m);o?(y=w.startAngle,b=w.endAngle,O=-x[1]/180*Math.PI):(y=w.r0,b=w.r,O=x[0])}else{var S=i;o?(y=S.x,b=S.x+S.width,O=p.x):(y=S.y+S.height,b=S.y,O=p.y)}var T=b===y?0:(O-y)/(b-y);l&&(T=1-T);var $=Fe(f)?f(v):c*T+d,A=g.getSymbolPath(),P=A.getTextContent();g.attr({scaleX:0,scaleY:0}),g.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:$}),P&&P.animateFrom({style:{opacity:0}},{duration:300,delay:$}),A.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(n,r,i){var o=n.getModel("endLabel");if(fce(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 Tt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=QKe(l);c>=0&&(Jr(s,Cr(n,"endLabel"),{inheritColor:i,labelFetcher:n,labelDataIndex:c,defaultText:function(f,d,p){return p!=null?ice(a,p):rg(a,f)},enableTextSetter:!0},GKe(o,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(n,r,i,o,a,s,l){var u=this._endLabel,c=this._polyline;if(u){n<1&&o.originalX==null&&(o.originalX=u.x,o.originalY=u.y);var f=i.getLayout("points"),d=i.hostModel,p=d.get("connectNulls"),v=s.get("precision"),g=s.get("distance")||0,m=l.getBaseAxis(),y=m.isHorizontal(),b=m.inverse,O=r.shape,w=b?y?O.x:O.y+O.height:y?O.x+O.width:O.y,x=(y?g:0)*(b?-1:1),S=(y?0:-g)*(b?-1:1),T=y?"x":"y",$=HKe(f,w,T),A=$.range,P=A[1]-A[0],M=void 0;if(P>=1){if(P>1&&!p){var I=Sj(f,A[0]);u.attr({x:I[0]+x,y:I[1]+S}),a&&(M=d.getRawValue(A[0]))}else{var I=c.getPointOn(w,T);I&&u.attr({x:I[0]+x,y:I[1]+S});var R=d.getRawValue(A[0]),L=d.getRawValue(A[1]);a&&(M=Bae(i,v,R,L,$.t))}o.lastFrameIndex=A[0]}else{var D=n===1||o.lastFrameIndex>0?A[0]:0,I=Sj(f,D);a&&(M=d.getRawValue(D)),u.attr({x:I[0]+x,y:I[1]+S})}if(a){var B=Rg(u);typeof B.setLabelText=="function"&&B.setLabelText(M)}}},e.prototype._doUpdateAnimation=function(n,r,i,o,a,s,l){var u=this._polyline,c=this._polygon,f=n.hostModel,d=RKe(this._data,n,this._stackedOnPoints,r,this._coordSys,i,this._valueOrigin),p=d.current,v=d.stackedOnCurrent,g=d.next,m=d.stackedOnNext;if(a&&(p=Wu(d.current,i,a,l),v=Wu(d.stackedOnCurrent,i,a,l),g=Wu(d.next,i,a,l),m=Wu(d.stackedOnNext,i,a,l)),wj(p,g)>3e3||c&&wj(v,m)>3e3){u.stopAnimation(),u.setShape({points:g}),c&&(c.stopAnimation(),c.setShape({points:g,stackedOnPoints:m}));return}u.shape.__points=d.current,u.shape.points=p;var y={shape:{points:g}};d.current!==p&&(y.shape.__points=d.next),u.stopAnimation(),kt(u,y,f),c&&(c.setShape({points:p,stackedOnPoints:v}),c.stopAnimation(),kt(c,{shape:{stackedOnPoints:m}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var b=[],O=d.status,w=0;w<O.length;w++){var x=O[w].cmd;if(x==="="){var S=n.getItemGraphicEl(O[w].idx1);S&&b.push({el:S,ptIdx:w})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var T=u.shape.__points,$=0;$<b.length;$++){var A=b[$].el,P=b[$].ptIdx*2;A.x=T[P],A.y=T[P+1],A.markRedraw()}})},e.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},e.type="line",e}(Kt);function P_(t,e){return{seriesType:t,plan:Bg(),reset:function(n){var r=n.getData(),i=n.coordinateSystem,o=n.pipelineContext,a=e||o.large;if(i){var s=ye(i.dimensions,function(p){return r.mapDimension(p)}).slice(0,2),l=s.length,u=r.getCalculationInfo("stackResultDimension");su(r,s[0])&&(s[0]=u),su(r,s[1])&&(s[1]=u);var c=r.getStore(),f=r.getDimensionIndex(s[0]),d=r.getDimensionIndex(s[1]);return l&&{progress:function(p,v){for(var g=p.end-p.start,m=a&&Us(g*l),y=[],b=[],O=p.start,w=0;O<p.end;O++){var x=void 0;if(l===1){var S=c.get(f,O);x=i.dataToPoint(S,null,b)}else y[0]=c.get(f,O),y[1]=c.get(d,O),x=i.dataToPoint(y,null,b);a?(m[w++]=x[0],m[w++]=x[1]):v.setItemLayout(O,x.slice())}a&&v.setLayout("points",m)}}}}}}var UKe={average:function(t){for(var e=0,n=0,r=0;r<t.length;r++)isNaN(t[r])||(e+=t[r],n++);return n===0?NaN:e/n},sum:function(t){for(var e=0,n=0;n<t.length;n++)e+=t[n]||0;return e},max:function(t){for(var e=-1/0,n=0;n<t.length;n++)t[n]>e&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n<t.length;n++)t[n]<e&&(e=t[n]);return isFinite(e)?e:NaN},minmax:function(t){for(var e=-1/0,n=-1/0,r=0;r<t.length;r++){var i=t[r],o=Math.abs(i);o>e&&(e=o,n=i)}return isFinite(n)?n:NaN},nearest:function(t){return t[0]}},ZKe=function(t){return Math.round(t.length/2)};function dce(t){return{seriesType:t,reset:function(e,n,r){var i=e.getData(),o=e.get("sampling"),a=e.coordinateSystem,s=i.count();if(s>10&&a.type==="cartesian2d"&&o){var l=a.getBaseAxis(),u=a.getOtherAxis(l),c=l.getExtent(),f=r.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),p=Math.round(s/d);if(isFinite(p)&&p>1){o==="lttb"&&e.setData(i.lttbDownSample(i.mapDimension(u.dim),1/p));var v=void 0;Ie(o)?v=UKe[o]:Fe(o)&&(v=o),v&&e.setData(i.downSample(i.mapDimension(u.dim),1/p,v,ZKe))}}}}}function XKe(t){t.registerChartView(jKe),t.registerSeriesModel(EKe),t.registerLayout(P_("line",!0)),t.registerVisual({seriesType:"line",reset:function(e){var n=e.getData(),r=e.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=n.getVisual("style").fill),n.setVisual("legendLineStyle",r)}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,dce("line"))}var vb=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.getInitialData=function(n,r){return pl(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(n,r,i){var o=this.coordinateSystem;if(o&&o.clampData){var a=o.clampData(n),s=o.dataToPoint(a);if(i)V(o.getAxes(),function(d,p){if(d.type==="category"&&r!=null){var v=d.getTicksCoords(),g=d.getTickModel().get("alignWithLabel"),m=a[p],y=r[p]==="x1"||r[p]==="y1";if(y&&!g&&(m+=1),v.length<2)return;if(v.length===2){s[p]=d.toGlobalCoord(d.getExtent()[y?1:0]);return}for(var b=void 0,O=void 0,w=1,x=0;x<v.length;x++){var S=v[x].coord,T=x===v.length-1?v[x-1].tickValue+w:v[x].tickValue;if(T===m){O=S;break}else if(T<m)b=S;else if(b!=null&&T>m){O=(S+b)/2;break}x===1&&(w=T-v[0].tickValue)}O==null&&(b?b&&(O=v[v.length-1].coord):O=v[0].coord),s[p]=d.toGlobalCoord(O)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=o.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(rn);rn.registerClass(vb);var YKe=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.getInitialData=function(){return pl(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},e.prototype.getProgressiveThreshold=function(){var n=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>n&&(n=r),n},e.prototype.brushSelector=function(n,r,i){return i.rect(r.getItemLayout(n))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Kc(vb.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(vb),qKe=function(){function t(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return t}(),sC=function(t){ie(e,t);function e(n){var r=t.call(this,n)||this;return r.type="sausage",r}return e.prototype.getDefaultShape=function(){return new qKe},e.prototype.buildPath=function(n,r){var i=r.cx,o=r.cy,a=Math.max(r.r0||0,0),s=Math.max(r.r,0),l=(s-a)*.5,u=a+l,c=r.startAngle,f=r.endAngle,d=r.clockwise,p=Math.PI*2,v=d?f-c<p:c-f<p;v||(c=f-(d?p:-p));var g=Math.cos(c),m=Math.sin(c),y=Math.cos(f),b=Math.sin(f);v?(n.moveTo(g*a+i,m*a+o),n.arc(g*u+i,m*u+o,l,-Math.PI+c,c,!d)):n.moveTo(g*s+i,m*s+o),n.arc(i,o,s,c,f,!d),n.arc(y*u+i,b*u+o,l,f-Math.PI*2,f-Math.PI,!d),a!==0&&n.arc(i,o,a,f,c,d)},e}(mt);function KKe(t,e){e=e||{};var n=e.isRoundCap;return function(r,i,o){var a=i.position;if(!a||a instanceof Array)return kS(r,i,o);var s=t(a),l=i.distance!=null?i.distance:5,u=this.shape,c=u.cx,f=u.cy,d=u.r,p=u.r0,v=(d+p)/2,g=u.startAngle,m=u.endAngle,y=(g+m)/2,b=n?Math.abs(d-p)/2:0,O=Math.cos,w=Math.sin,x=c+d*O(g),S=f+d*w(g),T="left",$="top";switch(s){case"startArc":x=c+(p-l)*O(y),S=f+(p-l)*w(y),T="center",$="top";break;case"insideStartArc":x=c+(p+l)*O(y),S=f+(p+l)*w(y),T="center",$="bottom";break;case"startAngle":x=c+v*O(g)+HO(g,l+b,!1),S=f+v*w(g)+GO(g,l+b,!1),T="right",$="middle";break;case"insideStartAngle":x=c+v*O(g)+HO(g,-l+b,!1),S=f+v*w(g)+GO(g,-l+b,!1),T="left",$="middle";break;case"middle":x=c+v*O(y),S=f+v*w(y),T="center",$="middle";break;case"endArc":x=c+(d+l)*O(y),S=f+(d+l)*w(y),T="center",$="bottom";break;case"insideEndArc":x=c+(d-l)*O(y),S=f+(d-l)*w(y),T="center",$="top";break;case"endAngle":x=c+v*O(m)+HO(m,l+b,!0),S=f+v*w(m)+GO(m,l+b,!0),T="left",$="middle";break;case"insideEndAngle":x=c+v*O(m)+HO(m,-l+b,!0),S=f+v*w(m)+GO(m,-l+b,!0),T="right",$="middle";break;default:return kS(r,i,o)}return r=r||{},r.x=x,r.y=S,r.align=T,r.verticalAlign=$,r}}function JKe(t,e,n,r){if(It(r)){t.setTextConfig({rotation:r});return}else if(ve(e)){t.setTextConfig({rotation:0});return}var i=t.shape,o=i.clockwise?i.startAngle:i.endAngle,a=i.clockwise?i.endAngle:i.startAngle,s=(o+a)/2,l,u=n(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=o;break;case"endAngle":case"insideEndAngle":l=a;break;default:t.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),t.setTextConfig({rotation:c})}function HO(t,e,n){return e*Math.sin(t)*(n?-1:1)}function GO(t,e,n){return e*Math.cos(t)*(n?1:-1)}function Cd(t,e,n){var r=t.get("borderRadius");if(r==null)return n?{cornerRadius:0}:null;ve(r)||(r=[r,r,r,r]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:ye(r,function(o){return cs(o,i)})}}var XE=Math.max,YE=Math.min;function eJe(t,e){var n=t.getArea&&t.getArea();if(Rh(t,"cartesian2d")){var r=t.getBaseAxis();if(r.type!=="category"||!r.onBand){var i=e.getLayout("bandWidth");r.isHorizontal()?(n.x-=i,n.width+=i*2):(n.y-=i,n.height+=i*2)}}return n}var tJe=function(t){ie(e,t);function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return e.prototype.render=function(n,r,i,o){this._model=n,this._removeOnRenderedListener(i),this._updateDrawMode(n);var a=n.get("coordinateSystem");a==="cartesian2d"||a==="polar"?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(n,r,i):this._renderNormal(n,r,i,o)):process.env.NODE_ENV!=="production"&&Mn("Only cartesian2d and polar supported for bar.")},e.prototype.incrementalPrepareRender=function(n){this._clear(),this._updateDrawMode(n),this._updateLargeClip(n)},e.prototype.incrementalRender=function(n,r){this._progressiveEls=[],this._incrementalRenderLarge(n,r)},e.prototype.eachRendered=function(n){qc(this._progressiveEls||this.group,n)},e.prototype._updateDrawMode=function(n){var r=n.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(n,r,i,o){var a=this.group,s=n.getData(),l=this._data,u=n.coordinateSystem,c=u.getBaseAxis(),f;u.type==="cartesian2d"?f=c.isHorizontal():u.type==="polar"&&(f=c.dim==="angle");var d=n.isAnimationEnabled()?n:null,p=nJe(n,u);p&&this._enableRealtimeSort(p,s,i);var v=n.get("clip",!0)||p,g=eJe(u,s);a.removeClipPath();var m=n.get("roundCap",!0),y=n.get("showBackground",!0),b=n.getModel("backgroundStyle"),O=b.get("borderRadius")||0,w=[],x=this._backgroundEls,S=o&&o.isInitSort,T=o&&o.type==="changeAxisOrder";function $(M){var I=jO[u.type](s,M),R=uJe(u,f,I);return R.useStyle(b.getItemStyle()),u.type==="cartesian2d"?R.setShape("r",O):R.setShape("cornerRadius",O),w[M]=R,R}s.diff(l).add(function(M){var I=s.getItemModel(M),R=jO[u.type](s,M,I);if(y&&$(M),!(!s.hasValue(M)||!Aj[u.type](R))){var L=!1;v&&(L=Cj[u.type](g,R));var D=Tj[u.type](n,s,M,R,f,d,c.model,!1,m);p&&(D.forceLabelAnimation=!0),Ej(D,s,M,I,R,n,f,u.type==="polar"),S?D.attr({shape:R}):p?Pj(p,d,D,R,M,f,!1,!1):gn(D,{shape:R},n,M),s.setItemGraphicEl(M,D),a.add(D),D.ignore=L}}).update(function(M,I){var R=s.getItemModel(M),L=jO[u.type](s,M,R);if(y){var D=void 0;x.length===0?D=$(I):(D=x[I],D.useStyle(b.getItemStyle()),u.type==="cartesian2d"?D.setShape("r",O):D.setShape("cornerRadius",O),w[M]=D);var B=jO[u.type](s,M),F=pce(f,B,u);kt(D,{shape:F},d,M)}var z=l.getItemGraphicEl(I);if(!s.hasValue(M)||!Aj[u.type](L)){a.remove(z);return}var W=!1;if(v&&(W=Cj[u.type](g,L),W&&a.remove(z)),z?fs(z):z=Tj[u.type](n,s,M,L,f,d,c.model,!!z,m),p&&(z.forceLabelAnimation=!0),T){var j=z.getTextContent();if(j){var H=Rg(j);H.prevValue!=null&&(H.prevValue=H.value)}}else Ej(z,s,M,R,L,n,f,u.type==="polar");S?z.attr({shape:L}):p?Pj(p,d,z,L,M,f,!0,T):kt(z,{shape:L},n,M,null),s.setItemGraphicEl(M,z),z.ignore=W,a.add(z)}).remove(function(M){var I=l.getItemGraphicEl(M);I&&ob(I,n,M)}).execute();var A=this._backgroundGroup||(this._backgroundGroup=new qe);A.removeAll();for(var P=0;P<w.length;++P)A.add(w[P]);a.add(A),this._backgroundEls=w,this._data=s},e.prototype._renderLarge=function(n,r,i){this._clear(),Ij(n,this.group),this._updateLargeClip(n)},e.prototype._incrementalRenderLarge=function(n,r){this._removeBackground(),Ij(r,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(n){var r=n.get("clip",!0)&&T_(n.coordinateSystem,!1,n),i=this.group;r?i.setClipPath(r):i.removeClipPath()},e.prototype._enableRealtimeSort=function(n,r,i){var o=this;if(r.count()){var a=n.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(r,n,i),this._isFirstFrame=!1;else{var s=function(l){var u=r.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(a.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){o._updateSortWithinSameData(r,s,a,i)},i.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(n,r,i){var o=[];return n.each(n.mapDimension(r.dim),function(a,s){var l=i(s);l=l??NaN,o.push({dataIndex:s,mappedValue:l,ordinalNumber:a})}),o.sort(function(a,s){return s.mappedValue-a.mappedValue}),{ordinalNumbers:ye(o,function(a){return a.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(n,r,i){for(var o=i.scale,a=n.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=o.getOrdinalMeta().categories.length;l<u;++l){var c=n.rawIndexOf(a,o.getRawOrdinalNumber(l)),f=c<0?Number.MIN_VALUE:r(n.indexOfRawIndex(c));if(f>s)return!0;s=f}return!1},e.prototype._isOrderDifferentInView=function(n,r){for(var i=r.scale,o=i.getExtent(),a=Math.max(0,o[0]),s=Math.min(o[1],i.getOrdinalMeta().categories.length-1);a<=s;++a)if(n.ordinalNumbers[a]!==i.getRawOrdinalNumber(a))return!0},e.prototype._updateSortWithinSameData=function(n,r,i,o){if(this._isOrderChangedWithinSameData(n,r,i)){var a=this._dataSort(n,i,r);this._isOrderDifferentInView(a,i)&&(this._removeOnRenderedListener(o),o.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:a}))}},e.prototype._dispatchInitSort=function(n,r,i){var o=r.baseAxis,a=this._dataSort(n,o,function(s){return n.get(n.mapDimension(r.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:o.dim+"Axis",isInitSort:!0,axisId:o.index,sortInfo:a})},e.prototype.remove=function(n,r){this._clear(this._model),this._removeOnRenderedListener(r)},e.prototype.dispose=function(n,r){this._removeOnRenderedListener(r)},e.prototype._removeOnRenderedListener=function(n){this._onRendered&&(n.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(n){var r=this.group,i=this._data;n&&n.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(o){ob(o,n,Ke(o).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Kt),Cj={cartesian2d:function(t,e){var n=e.width<0?-1:1,r=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height);var i=t.x+t.width,o=t.y+t.height,a=XE(e.x,t.x),s=YE(e.x+e.width,i),l=XE(e.y,t.y),u=YE(e.y+e.height,o),c=s<a,f=u<l;return e.x=c&&a>i?s:a,e.y=f&&l>o?u:l,e.width=c?0:s-a,e.height=f?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),r<0&&(e.y+=e.height,e.height=-e.height),c||f},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}var i=YE(e.r,t.r),o=XE(e.r0,t.r0);e.r=i,e.r0=o;var a=i-o<0;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}return a}},Tj={cartesian2d:function(t,e,n,r,i,o,a,s,l){var u=new Pt({shape:he({},r),z2:1});if(u.__dataIndex=n,u.name="item",o){var c=u.shape,f=i?"height":"width";c[f]=0}return u},polar:function(t,e,n,r,i,o,a,s,l){var u=!i&&l?sC:Ni,c=new u({shape:r,z2:1});c.name="item";var f=hce(i);if(c.calculateTextPosition=KKe(f,{isRoundCap:u===sC}),o){var d=c.shape,p=i?"r":"endAngle",v={};d[p]=i?r.r0:r.startAngle,v[p]=r[p],(s?kt:gn)(c,{shape:v},o)}return c}};function nJe(t,e){var n=t.get("realtimeSort",!0),r=e.getBaseAxis();if(process.env.NODE_ENV!=="production"&&n&&(r.type!=="category"&&Mn("`realtimeSort` will not work because this bar series is not based on a category axis."),e.type!=="cartesian2d"&&Mn("`realtimeSort` will not work because this bar series is not on cartesian2d.")),n&&r.type==="category"&&e.type==="cartesian2d")return{baseAxis:r,otherAxis:e.getOtherAxis(r)}}function Pj(t,e,n,r,i,o,a,s){var l,u;o?(u={x:r.x,width:r.width},l={y:r.y,height:r.height}):(u={y:r.y,height:r.height},l={x:r.x,width:r.width}),s||(a?kt:gn)(n,{shape:l},e,i,null);var c=e?t.baseAxis.model:null;(a?kt:gn)(n,{shape:u},c,i)}function $j(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var rJe=["x","y","width","height"],iJe=["cx","cy","r","startAngle","endAngle"],Aj={cartesian2d:function(t){return!$j(t,rJe)},polar:function(t){return!$j(t,iJe)}},jO={cartesian2d:function(t,e,n){var r=t.getItemLayout(e),i=n?aJe(n,r):0,o=r.width>0?1:-1,a=r.height>0?1:-1;return{x:r.x+o*i/2,y:r.y+a*i/2,width:r.width-o*i,height:r.height-a*i}},polar:function(t,e,n){var r=t.getItemLayout(e);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function oJe(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function hce(t){return function(e){var n=e?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+n;default:return r}}}(t)}function Ej(t,e,n,r,i,o,a,s){var l=e.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var c=t.shape,f=Cd(r.getModel("itemStyle"),c,!0);he(c,f),t.setShape(c)}}else{var u=r.get(["itemStyle","borderRadius"])||0;t.setShape("r",u)}t.useStyle(l);var d=r.getShallow("cursor");d&&t.attr("cursor",d);var p=s?a?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":a?i.height>=0?"bottom":"top":i.width>=0?"right":"left",v=Cr(r);Jr(t,v,{labelFetcher:o,labelDataIndex:n,defaultText:rg(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:p});var g=t.getTextContent();if(s&&g){var m=r.get(["label","position"]);t.textConfig.inside=m==="middle"?!0:null,JKe(t,m==="outside"?p:m,hce(a),r.get(["label","rotate"]))}Rse(g,v,o.getRawValue(n),function(b){return ice(e,b)});var y=r.getModel(["emphasis"]);Bn(t,y.get("focus"),y.get("blurScope"),y.get("disabled")),Kr(t,r),oJe(i)&&(t.style.fill="none",t.style.stroke="none",V(t.states,function(b){b.style&&(b.style.fill=b.style.stroke="none")}))}function aJe(t,e){var n=t.get(["itemStyle","borderColor"]);if(!n||n==="none")return 0;var r=t.get(["itemStyle","borderWidth"])||0,i=isNaN(e.width)?Number.MAX_VALUE:Math.abs(e.width),o=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,i,o)}var sJe=function(){function t(){}return t}(),Mj=function(t){ie(e,t);function e(n){var r=t.call(this,n)||this;return r.type="largeBar",r}return e.prototype.getDefaultShape=function(){return new sJe},e.prototype.buildPath=function(n,r){for(var i=r.points,o=this.baseDimIdx,a=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<i.length;c+=3)l[o]=u,l[a]=i[c+2],s[o]=i[c+o],s[a]=i[c+a],n.rect(s[0],s[1],l[0],l[1])},e}(mt);function Ij(t,e,n,r){var i=t.getData(),o=i.getLayout("valueAxisHorizontal")?1:0,a=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=t.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var c=new Mj({shape:{points:u},incremental:!!r,silent:!0,z2:0});c.baseDimIdx=o,c.largeDataIndices=a,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),n&&n.push(c)}var f=new Mj({shape:{points:i.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=o,f.largeDataIndices=a,f.barWidth=s,e.add(f),f.useStyle(i.getVisual("style")),Ke(f).seriesIndex=t.seriesIndex,t.get("silent")||(f.on("mousedown",Dj),f.on("mousemove",Dj)),n&&n.push(f)}var Dj=BP(function(t){var e=this,n=lJe(e,t.offsetX,t.offsetY);Ke(e).dataIndex=n>=0?n:null},30,!1);function lJe(t,e,n){for(var r=t.baseDimIdx,i=1-r,o=t.shape.points,a=t.largeDataIndices,s=[],l=[],u=t.barWidth,c=0,f=o.length/3;c<f;c++){var d=c*3;if(l[r]=u,l[i]=o[d+2],s[r]=o[d+r],s[i]=o[d+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),e>=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[c]}return-1}function pce(t,e,n){if(Rh(n,"cartesian2d")){var r=e,i=n.getArea();return{x:t?r.x:i.x,y:t?i.y:r.y,width:t?r.width:i.width,height:t?i.height:r.height}}else{var i=n.getArea(),o=e;return{cx:i.cx,cy:i.cy,r0:t?i.r0:o.r0,r:t?i.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:Math.PI*2}}}function uJe(t,e,n){var r=t.type==="polar"?Ni:Pt;return new r({shape:pce(e,n,t),silent:!0,z2:0})}function cJe(t){t.registerChartView(tJe),t.registerSeriesModel(YKe),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,nt(bue,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,_ue("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,dce("bar")),t.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(e,n){var r=e.componentType||"series";n.eachComponent({mainType:r,query:e},function(i){e.sortInfo&&i.axis.setCategorySortInfo(e.sortInfo)})})}var Rj=Math.PI*2,UO=Math.PI/180;function vce(t,e){return ir(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function gce(t,e){var n=vce(t,e),r=t.get("center"),i=t.get("radius");ve(i)||(i=[0,i]);var o=Me(n.width,e.getWidth()),a=Me(n.height,e.getHeight()),s=Math.min(o,a),l=Me(i[0],s/2),u=Me(i[1],s/2),c,f,d=t.coordinateSystem;if(d){var p=d.dataToPoint(r);c=p[0]||0,f=p[1]||0}else ve(r)||(r=[r,r]),c=Me(r[0],o)+n.x,f=Me(r[1],a)+n.y;return{cx:c,cy:f,r0:l,r:u}}function fJe(t,e,n){e.eachSeriesByType(t,function(r){var i=r.getData(),o=i.mapDimension("value"),a=vce(r,n),s=gce(r,n),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-r.get("startAngle")*UO,p=r.get("endAngle"),v=r.get("padAngle")*UO;p=p==="auto"?d-Rj:-p*UO;var g=r.get("minAngle")*UO,m=g+v,y=0;i.each(o,function(F){!isNaN(F)&&y++});var b=i.getSum(o),O=Math.PI/(b||y)*2,w=r.get("clockwise"),x=r.get("roseType"),S=r.get("stillShowZeroSum"),T=i.getDataExtent(o);T[0]=0;var $=w?1:-1,A=[d,p],P=$*v/2;V8(A,!w),d=A[0],p=A[1];var M=mce(r);M.startAngle=d,M.endAngle=p,M.clockwise=w;var I=Math.abs(p-d),R=I,L=0,D=d;if(i.setLayout({viewRect:a,r:c}),i.each(o,function(F,z){var W;if(isNaN(F)){i.setItemLayout(z,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:w,cx:l,cy:u,r0:f,r:x?NaN:c});return}x!=="area"?W=b===0&&S?O:F*O:W=I/y,W<m?(W=m,R-=m):L+=F;var j=D+$*W,H=0,Z=0;v>W?(H=D+$*W/2,Z=H):(H=D+P,Z=j-P),i.setItemLayout(z,{angle:W,startAngle:H,endAngle:Z,clockwise:w,cx:l,cy:u,r0:f,r:x?Zt(F,T,[f,c]):c}),D=j}),R<Rj&&y)if(R<=.001){var B=I/y;i.each(o,function(F,z){if(!isNaN(F)){var W=i.getItemLayout(z);W.angle=B;var j=0,H=0;B<v?(j=d+$*(z+1/2)*B,H=j):(j=d+$*z*B+P,H=d+$*(z+1)*B-P),W.startAngle=j,W.endAngle=H}})}else O=R/L,D=d,i.each(o,function(F,z){if(!isNaN(F)){var W=i.getItemLayout(z),j=W.angle===m?m:F*O,H=0,Z=0;j<v?(H=D+$*j/2,Z=H):(H=D+P,Z=D+$*j-P),W.startAngle=H,W.endAngle=Z,D+=$*j}})})}var mce=$t();function $_(t){return{seriesType:t,reset:function(e,n){var r=n.findComponents({mainType:"legend"});if(!(!r||!r.length)){var i=e.getData();i.filterSelf(function(o){for(var a=i.getName(o),s=0;s<r.length;s++)if(!r[s].isSelected(a))return!1;return!0})}}}}var dJe=Math.PI/180;function kj(t,e,n,r,i,o,a,s,l,u){if(t.length<2)return;function c(g){for(var m=g.rB,y=m*m,b=0;b<g.list.length;b++){var O=g.list[b],w=Math.abs(O.label.y-n),x=r+O.len,S=x*x,T=Math.sqrt((1-Math.abs(w*w/y))*S),$=e+(T+O.len2)*i,A=$-O.label.x,P=O.targetTextWidth-A*i;yce(O,P,!0),O.label.x=$}}function f(g){for(var m={list:[],maxY:0},y={list:[],maxY:0},b=0;b<g.length;b++)if(g[b].labelAlignTo==="none"){var O=g[b],w=O.label.y>n?y:m,x=Math.abs(O.label.y-n);if(x>=w.maxY){var S=O.label.x-e-O.len2*i,T=r+O.len,$=Math.abs(S)<T?Math.sqrt(x*x/(1-S*S/T/T)):T;w.rB=$,w.maxY=x}w.list.push(O)}c(m),c(y)}for(var d=t.length,p=0;p<d;p++)if(t[p].position==="outer"&&t[p].labelAlignTo==="labelLine"){var v=t[p].label.x-u;t[p].linePoints[1][0]+=v,t[p].label.x=u}Fue(t,l,l+a)&&f(t)}function hJe(t,e,n,r,i,o,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,f=-Number.MAX_VALUE,d=0;d<t.length;d++){var p=t[d].label;qE(t[d])||(p.x<e?(c=Math.min(c,p.x),l.push(t[d])):(f=Math.max(f,p.x),u.push(t[d])))}for(var d=0;d<t.length;d++){var v=t[d];if(!qE(v)&&v.linePoints){if(v.labelStyleWidth!=null)continue;var p=v.label,g=v.linePoints,m=void 0;v.labelAlignTo==="edge"?p.x<e?m=g[2][0]-v.labelDistance-a-v.edgeDistance:m=a+i-v.edgeDistance-g[2][0]-v.labelDistance:v.labelAlignTo==="labelLine"?p.x<e?m=c-a-v.bleedMargin:m=a+i-f-v.bleedMargin:p.x<e?m=p.x-a-v.bleedMargin:m=a+i-p.x-v.bleedMargin,v.targetTextWidth=m,yce(v,m)}}kj(u,e,n,r,1,i,o,a,s,f),kj(l,e,n,r,-1,i,o,a,s,c);for(var d=0;d<t.length;d++){var v=t[d];if(!qE(v)&&v.linePoints){var p=v.label,g=v.linePoints,y=v.labelAlignTo==="edge",b=p.style.padding,O=b?b[1]+b[3]:0,w=p.style.backgroundColor?0:O,x=v.rect.width+w,S=g[1][0]-g[2][0];y?p.x<e?g[2][0]=a+v.edgeDistance+x+v.labelDistance:g[2][0]=a+i-v.edgeDistance-x-v.labelDistance:(p.x<e?g[2][0]=p.x+v.labelDistance:g[2][0]=p.x-v.labelDistance,g[1][0]=g[2][0]+S),g[1][1]=g[2][1]=p.y}}}function yce(t,e,n){if(n===void 0&&(n=!1),t.labelStyleWidth==null){var r=t.label,i=r.style,o=t.rect,a=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,c=o.width+(a?0:l);if(e<c||n){var f=o.height;if(u&&u.match("break")){r.setStyle("backgroundColor",null),r.setStyle("width",e-l);var d=r.getBoundingRect();r.setStyle("width",Math.ceil(d.width)),r.setStyle("backgroundColor",a)}else{var p=e-l,v=e<c?p:n?p>t.unconstrainedWidth?null:p:null;r.setStyle("width",v)}var g=r.getBoundingRect();o.width=g.width;var m=(r.style.margin||0)+2.1;o.height=g.height+m,o.y-=(o.height-f)/2}}}function qE(t){return t.position==="center"}function pJe(t){var e=t.getData(),n=[],r,i,o=!1,a=(t.get("minShowLabelAngle")||0)*dJe,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function p(S){S.ignore=!0}function v(S){if(!S.ignore)return!0;for(var T in S.states)if(S.states[T].ignore===!1)return!0;return!1}e.each(function(S){var T=e.getItemGraphicEl(S),$=T.shape,A=T.getTextContent(),P=T.getTextGuideLine(),M=e.getItemModel(S),I=M.getModel("label"),R=I.get("position")||M.get(["emphasis","label","position"]),L=I.get("distanceToLabelLine"),D=I.get("alignTo"),B=Me(I.get("edgeDistance"),u),F=I.get("bleedMargin"),z=M.getModel("labelLine"),W=z.get("length");W=Me(W,u);var j=z.get("length2");if(j=Me(j,u),Math.abs($.endAngle-$.startAngle)<a){V(A.states,p),A.ignore=!0,P&&(V(P.states,p),P.ignore=!0);return}if(v(A)){var H=($.startAngle+$.endAngle)/2,Z=Math.cos(H),J=Math.sin(H),se,oe,de,re;r=$.cx,i=$.cy;var ue=R==="inside"||R==="inner";if(R==="center")se=$.cx,oe=$.cy,re="center";else{var ee=(ue?($.r+$.r0)/2*Z:$.r*Z)+r,X=(ue?($.r+$.r0)/2*J:$.r*J)+i;if(se=ee+Z*3,oe=X+J*3,!ue){var Y=ee+Z*(W+l-$.r),le=X+J*(W+l-$.r),ge=Y+(Z<0?-1:1)*j,me=le;D==="edge"?se=Z<0?c+B:c+u-B:se=ge+(Z<0?-L:L),oe=me,de=[[ee,X],[Y,le],[ge,me]]}re=ue?"center":D==="edge"?Z>0?"right":"left":Z>0?"left":"right"}var Ne=Math.PI,Le=0,Ee=I.get("rotate");if(It(Ee))Le=Ee*(Ne/180);else if(R==="center")Le=0;else if(Ee==="radial"||Ee===!0){var $e=Z<0?-H+Ne:-H;Le=$e}else if(Ee==="tangential"&&R!=="outside"&&R!=="outer"){var _e=Math.atan2(Z,J);_e<0&&(_e=Ne*2+_e);var De=J>0;De&&(_e=Ne+_e),Le=_e-Ne}if(o=!!Le,A.x=se,A.y=oe,A.rotation=Le,A.setStyle({verticalAlign:"middle"}),ue){A.setStyle({align:re});var gt=A.states.select;gt&&(gt.x+=A.x,gt.y+=A.y)}else{var ze=A.getBoundingRect().clone();ze.applyTransform(A.getComputedTransform());var lt=(A.style.margin||0)+2.1;ze.y-=lt/2,ze.height+=lt,n.push({label:A,labelLine:P,position:R,len:W,len2:j,minTurnAngle:z.get("minTurnAngle"),maxSurfaceAngle:z.get("maxSurfaceAngle"),surfaceNormal:new ot(Z,J),linePoints:de,textAlign:re,labelDistance:L,labelAlignTo:D,edgeDistance:B,bleedMargin:F,rect:ze,unconstrainedWidth:ze.width,labelStyleWidth:A.style.width})}T.setTextConfig({inside:ue})}}),!o&&t.get("avoidLabelOverlap")&&hJe(n,r,i,l,u,d,c,f);for(var g=0;g<n.length;g++){var m=n[g],y=m.label,b=m.labelLine,O=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:m.textAlign}),O&&(V(y.states,p),y.ignore=!0);var w=y.states.select;w&&(w.x+=y.x,w.y+=y.y)}if(b){var x=m.linePoints;O||!x?(V(b.states,p),b.ignore=!0):(Bue(x,m.minTurnAngle),Lqe(x,m.surfaceNormal,m.maxSurfaceAngle),b.setShape({points:x}),y.__hostTarget.textGuideLineConfig={anchor:new ot(x[0][0],x[0][1])})}}}var vJe=function(t){ie(e,t);function e(n,r,i){var o=t.call(this)||this;o.z2=2;var a=new Tt;return o.setTextContent(a),o.updateData(n,r,i,!0),o}return e.prototype.updateData=function(n,r,i,o){var a=this,s=n.hostModel,l=n.getItemModel(r),u=l.getModel("emphasis"),c=n.getItemLayout(r),f=he(Cd(l.getModel("itemStyle"),c,!0),c);if(isNaN(f.startAngle)){a.setShape(f);return}if(o){a.setShape(f);var d=s.getShallow("animationType");s.ecModel.ssr?(gn(a,{scaleX:0,scaleY:0},s,{dataIndex:r,isFrom:!0}),a.originX=f.cx,a.originY=f.cy):d==="scale"?(a.shape.r=c.r0,gn(a,{shape:{r:c.r}},s,r)):i!=null?(a.setShape({startAngle:i,endAngle:i}),gn(a,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,r)):(a.shape.endAngle=c.startAngle,kt(a,{shape:{endAngle:c.endAngle}},s,r))}else fs(a),kt(a,{shape:f},s,r);a.useStyle(n.getItemVisual(r,"style")),Kr(a,l);var p=(c.startAngle+c.endAngle)/2,v=s.get("selectedOffset"),g=Math.cos(p)*v,m=Math.sin(p)*v,y=l.getShallow("cursor");y&&a.attr("cursor",y),this._updateLabel(s,n,r),a.ensureState("emphasis").shape=he({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},Cd(u.getModel("itemStyle"),c)),he(a.ensureState("select"),{x:g,y:m,shape:Cd(l.getModel(["select","itemStyle"]),c)}),he(a.ensureState("blur"),{shape:Cd(l.getModel(["blur","itemStyle"]),c)});var b=a.getTextGuideLine(),O=a.getTextContent();b&&he(b.ensureState("select"),{x:g,y:m}),he(O.ensureState("select"),{x:g,y:m}),Bn(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(n,r,i){var o=this,a=r.getItemModel(i),s=a.getModel("labelLine"),l=r.getItemVisual(i,"style"),u=l&&l.fill,c=l&&l.opacity;Jr(o,Cr(a),{labelFetcher:r.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:c,defaultText:n.getFormattedLabel(i,"normal")||r.getName(i)});var f=o.getTextContent();o.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var d=n.get(["label","position"]);if(d!=="outside"&&d!=="outer")o.removeTextGuideLine();else{var p=this.getTextGuideLine();p||(p=new Bi,this.setTextGuideLine(p)),k5(this,N5(a),{stroke:u,opacity:Ro(s.get(["lineStyle","opacity"]),c,1)})}},e}(Ni),gJe=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.ignoreLabelLineUpdate=!0,n}return e.prototype.render=function(n,r,i,o){var a=n.getData(),s=this._data,l=this.group,u;if(!s&&a.count()>0){for(var c=a.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f<a.count();++f)c=a.getItemLayout(f);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),a.count()===0&&n.get("showEmptyCircle")){var d=mce(n),p=new Ni({shape:he(gce(n,i),d)});p.useStyle(n.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=p,l.add(p)}a.diff(s).add(function(v){var g=new vJe(a,v,u);a.setItemGraphicEl(v,g),l.add(g)}).update(function(v,g){var m=s.getItemGraphicEl(g);m.updateData(a,v,u),m.off("click"),l.add(m),a.setItemGraphicEl(v,m)}).remove(function(v){var g=s.getItemGraphicEl(v);ob(g,n,v)}).execute(),pJe(n),n.get("animationTypeUpdate")!=="expansion"&&(this._data=a)},e.prototype.dispose=function(){},e.prototype.containPoint=function(n,r){var i=r.getData(),o=i.getItemLayout(0);if(o){var a=n[0]-o.cx,s=n[1]-o.cy,l=Math.sqrt(a*a+s*s);return l<=o.r&&l>=o.r0}},e.type="pie",e}(Kt);function Hg(t,e,n){e=ve(e)&&{coordDimensions:e}||he({encodeDefine:t.getEncode()},e);var r=t.getSource(),i=Fg(r,e).dimensions,o=new fi(i,t);return o.initData(r,n),o}var A_=function(){function t(e,n){this._getDataWithEncodedVisual=e,this._getRawData=n}return t.prototype.getAllNames=function(){var e=this._getRawData();return e.mapArray(e.getName)},t.prototype.containName=function(e){var n=this._getRawData();return n.indexOfName(e)>=0},t.prototype.indexOfName=function(e){var n=this._getDataWithEncodedVisual();return n.indexOfName(e)},t.prototype.getItemVisual=function(e,n){var r=this._getDataWithEncodedVisual();return r.getItemVisual(e,n)},t}(),mJe=$t(),yJe=function(t){ie(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(n){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new A_(Re(this.getData,this),Re(this.getRawData,this)),this._defaultLabelLine(n)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Hg(this,{coordDimensions:["value"],encodeDefaulter:nt(l5,this)})},e.prototype.getDataParams=function(n){var r=this.getData(),i=mJe(r),o=i.seats;if(!o){var a=[];r.each(r.mapDimension("value"),function(l){a.push(l)}),o=i.seats=Aae(a,r.hostModel.get("percentPrecision"))}var s=t.prototype.getDataParams.call(this,n);return s.percent=o[n]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(n){sh(n,"labelLine",["show"]);var r=n.labelLine,i=n.emphasis.labelLine;r.show=r.show&&n.label.show,i.show=i.show&&n.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,endAngle:"auto",padAngle:0,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(rn);function bJe(t){return{seriesType:t,reset:function(e,n){var r=e.getData();r.filterSelf(function(i){var o=r.mapDimension("value"),a=r.get(o,i);return!(It(a)&&!isNaN(a)&&a<0)})}}}function _Je(t){t.registerChartView(gJe),t.registerSeriesModel(yJe),Nle("pie",t.registerAction),t.registerLayout(nt(fJe,"pie")),t.registerProcessor($_("pie")),t.registerProcessor(bJe("pie"))}var OJe=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return e.prototype.getInitialData=function(n,r){return pl(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var n=this.option.progressive;return n??(this.option.large?5e3:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var n=this.option.progressiveThreshold;return n??(this.option.large?1e4:this.get("progressiveThreshold"))},e.prototype.brushSelector=function(n,r,i){return i.point(r.getItemLayout(n))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(rn),bce=4,wJe=function(){function t(){}return t}(),xJe=function(t){ie(e,t);function e(n){var r=t.call(this,n)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.getDefaultShape=function(){return new wJe},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(n,r){var i=r.points,o=r.size,a=this.symbolProxy,s=a.shape,l=n.getContext?n.getContext():n,u=l&&o[0]<bce,c=this.softClipShape,f;if(u){this._ctx=l;return}for(this._ctx=null,f=this._off;f<i.length;){var d=i[f++],p=i[f++];isNaN(d)||isNaN(p)||c&&!c.contain(d,p)||(s.x=d-o[0]/2,s.y=p-o[1]/2,s.width=o[0],s.height=o[1],a.buildPath(n,s,!0))}this.incremental&&(this._off=f,this.notClear=!0)},e.prototype.afterBrush=function(){var n=this.shape,r=n.points,i=n.size,o=this._ctx,a=this.softClipShape,s;if(o){for(s=this._off;s<r.length;){var l=r[s++],u=r[s++];isNaN(l)||isNaN(u)||a&&!a.contain(l,u)||o.fillRect(l-i[0]/2,u-i[1]/2,i[0],i[1])}this.incremental&&(this._off=s,this.notClear=!0)}},e.prototype.findDataIndex=function(n,r){for(var i=this.shape,o=i.points,a=i.size,s=Math.max(a[0],4),l=Math.max(a[1],4),u=o.length/2-1;u>=0;u--){var c=u*2,f=o[c]-s/2,d=o[c+1]-l/2;if(n>=f&&r>=d&&n<=f+s&&r<=d+l)return u}return-1},e.prototype.contain=function(n,r){var i=this.transformCoordToLocal(n,r),o=this.getBoundingRect();if(n=i[0],r=i[1],o.contain(n,r)){var a=this.hoverDataIdx=this.findDataIndex(n,r);return a>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var r=this.shape,i=r.points,o=r.size,a=o[0],s=o[1],l=1/0,u=1/0,c=-1/0,f=-1/0,d=0;d<i.length;){var p=i[d++],v=i[d++];l=Math.min(p,l),c=Math.max(p,c),u=Math.min(v,u),f=Math.max(v,f)}n=this._rect=new at(l-a/2,u-s/2,c-l+a,f-u+s)}return n},e}(mt),SJe=function(){function t(){this.group=new qe}return t.prototype.updateData=function(e,n){this._clear();var r=this._create();r.setShape({points:e.getLayout("points")}),this._setCommon(r,e,n)},t.prototype.updateLayout=function(e){var n=e.getLayout("points");this.group.eachChild(function(r){if(r.startIndex!=null){var i=(r.endIndex-r.startIndex)*2,o=r.startIndex*4*2;n=new Float32Array(n.buffer,o,i)}r.setShape("points",n),r.reset()})},t.prototype.incrementalPrepareUpdate=function(e){this._clear()},t.prototype.incrementalUpdate=function(e,n,r){var i=this._newAdded[0],o=n.getLayout("points"),a=i&&i.shape.points;if(a&&a.length<2e4){var s=a.length,l=new Float32Array(s+o.length);l.set(a),l.set(o,s),i.endIndex=e.end,i.setShape({points:l})}else{this._newAdded=[];var u=this._create();u.startIndex=e.start,u.endIndex=e.end,u.incremental=!0,u.setShape({points:o}),this._setCommon(u,n,r)}},t.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},t.prototype._create=function(){var e=new xJe({cursor:"default"});return e.ignoreCoarsePointer=!0,this.group.add(e),this._newAdded.push(e),e},t.prototype._setCommon=function(e,n,r){var i=n.hostModel;r=r||{};var o=n.getVisual("symbolSize");e.setShape("size",o instanceof Array?o:[o,o]),e.softClipShape=r.clipShape||null,e.symbolProxy=Yn(n.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var a=e.shape.size[0]<bce;e.useStyle(i.getModel("itemStyle").getItemStyle(a?["color","shadowBlur","shadowColor"]:["color"]));var s=n.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=Ke(e);u.seriesIndex=i.seriesIndex,e.on("mousemove",function(c){u.dataIndex=null;var f=e.hoverDataIdx;f>=0&&(u.dataIndex=f+(e.startIndex||0))})},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),CJe=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){var o=n.getData(),a=this._updateSymbolDraw(o,n);a.updateData(o,{clipShape:this._getClipShape(n)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(n,r,i){var o=n.getData(),a=this._updateSymbolDraw(o,n);a.incrementalPrepareUpdate(o),this._finished=!1},e.prototype.incrementalRender=function(n,r,i){this._symbolDraw.incrementalUpdate(n,r.getData(),{clipShape:this._getClipShape(r)}),this._finished=n.end===r.getData().count()},e.prototype.updateTransform=function(n,r,i){var o=n.getData();if(this.group.dirty(),!this._finished||o.count()>1e4)return{update:!0};var a=P_("").reset(n,r,i);a.progress&&a.progress({start:0,end:o.count(),count:o.count()},o),this._symbolDraw.updateLayout(o)},e.prototype.eachRendered=function(n){this._symbolDraw&&this._symbolDraw.eachRendered(n)},e.prototype._getClipShape=function(n){if(n.get("clip",!0)){var r=n.coordinateSystem;return r&&r.getArea&&r.getArea(.1)}},e.prototype._updateSymbolDraw=function(n,r){var i=this._symbolDraw,o=r.pipelineContext,a=o.large;return(!i||a!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=a?new SJe:new C_,this._isLargeDraw=a,this.group.removeAll()),this.group.add(i.group),i},e.prototype.remove=function(n,r){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Kt),TJe=function(t){ie(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.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"},e}(pt),fk=function(t){ie(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",rr).models[0]},e.type="cartesian2dAxis",e}(pt);Qn(fk,Qg);var _ce={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,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},PJe=it({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},_ce),Q5=it({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}}},_ce),$Je=it({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Q5),AJe=Ge({logBase:10},Q5);const Oce={category:PJe,value:Q5,time:$Je,log:AJe};var EJe={value:1,category:1,time:1,log:1};function ig(t,e,n,r){V(EJe,function(i,o){var a=it(it({},Oce[o],!0),r,!0),s=function(l){ie(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+o,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=sb(this),p=d?Ng(c):{},v=f.getTheme();it(c,v.get(o+"Axis")),it(c,this.getDefaultOption()),c.type=Nj(c),d&&kc(c,p,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=rk.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=e+"Axis."+o,u.defaultOption=a,u}(n);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",Nj)}function Nj(t){return t.type||(t.data?"category":"value")}var MJe=function(){function t(e){this.type="cartesian",this._dimList=[],this._axes={},this.name=e||""}return t.prototype.getAxis=function(e){return this._axes[e]},t.prototype.getAxes=function(){return ye(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),Yt(this.getAxes(),function(n){return n.scale.type===e})},t.prototype.addAxis=function(e){var n=e.dim;this._axes[n]=e,this._dimList.push(n)},t}(),dk=["x","y"];function Lj(t){return t.type==="interval"||t.type==="time"}var IJe=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=dk,n}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!Lj(n)||!Lj(r))){var i=n.getExtent(),o=r.getExtent(),a=this.dataToPoint([i[0],o[0]]),s=this.dataToPoint([i[1],o[1]]),l=i[1]-i[0],u=o[1]-o[0];if(!(!l||!u)){var c=(s[0]-a[0])/l,f=(s[1]-a[1])/u,d=a[0]-i[0]*c,p=a[1]-o[0]*f,v=this._transform=[c,0,0,f,d,p];this._invTransform=$h([],v)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.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]))},e.prototype.containData=function(n){return this.getAxis("x").containData(n[0])&&this.getAxis("y").containData(n[1])},e.prototype.containZone=function(n,r){var i=this.dataToPoint(n),o=this.dataToPoint(r),a=this.getArea(),s=new at(i[0],i[1],o[0]-i[0],o[1]-i[1]);return a.intersect(s)},e.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 Er(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},e.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},e.prototype.pointToData=function(n,r){var i=[];if(this._invTransform)return Er(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},e.prototype.getOtherAxis=function(n){return this.getAxis(n.dim==="x"?"y":"x")},e.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 at(o,a,s,l)},e}(MJe),DJe=function(t){ie(e,t);function e(n,r,i,o,a){var s=t.call(this,n,r,i)||this;return s.index=0,s.type=o||"value",s.position=a||"bottom",s}return e.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},e.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},e.prototype.pointToData=function(n,r){return this.coordToData(this.toLocalCoord(n[this.dim==="x"?0:1]),r)},e.prototype.setCategorySortInfo=function(n){if(this.type!=="category")return!1;this.model.option.categorySortInfo=n,this.scale.setSortInfo(n)},e}(ka);function hk(t,e,n){n=n||{};var r=t.coordinateSystem,i=e.axis,o={},a=i.getAxesOnZeroOf()[0],s=i.position,l=a?"onZero":s,u=i.dim,c=r.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,v=u==="x"?[f[2]-p,f[3]+p]:[f[0]-p,f[1]+p];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));v[d.onZero]=Math.max(Math.min(g,v[1]),v[0])}o.position=[u==="y"?v[d[l]]:f[0],u==="x"?v[d[l]]:f[3]],o.rotation=Math.PI/2*(u==="x"?0:1);var m={top:-1,bottom:1,left:-1,right:1};o.labelDirection=o.tickDirection=o.nameDirection=m[s],o.labelOffset=a?v[d[s]]-v[d.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),Zn(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var y=e.get(["axisLabel","rotate"]);return o.labelRotate=l==="top"?-y:y,o.z2=1,o}function Bj(t){return t.get("coordinateSystem")==="cartesian2d"}function Vj(t){var e={xAxisModel:null,yAxisModel:null};return V(e,function(n,r){var i=r.replace(/Model$/,""),o=t.getReferringComponents(i,rr).models[0];if(process.env.NODE_ENV!=="production"&&!o)throw new Error(i+' "'+Ro(t.get(i+"Index"),t.get(i+"Id"),0)+'" not found');e[r]=o}),e}var KE=Math.log;function wce(t,e,n){var r=lu.prototype,i=r.getTicks.call(n),o=r.getTicks.call(n,!0),a=i.length-1,s=r.getInterval.call(n),l=Cue(t,e),u=l.extent,c=l.fixMin,f=l.fixMax;if(t.type==="log"){var d=KE(t.base);u=[KE(u[0])/d,KE(u[1])/d]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:f});var p=r.getExtent.call(t);c&&(u[0]=p[0]),f&&(u[1]=p[1]);var v=r.getInterval.call(t),g=u[0],m=u[1];if(c&&f)v=(m-g)/a;else if(c)for(m=u[0]+v*a;m<u[1]&&isFinite(m)&&isFinite(u[1]);)v=LE(v),m=u[0]+v*a;else if(f)for(g=u[1]-v*a;g>u[0]&&isFinite(g)&&isFinite(u[0]);)v=LE(v),g=u[1]-v*a;else{var y=t.getTicks().length-1;y>a&&(v=LE(v));var b=v*a;m=Math.ceil(u[1]/v)*v,g=Nn(m-b),g<0&&u[0]>=0?(g=0,m=Nn(b)):m>0&&u[1]<=0&&(m=0,g=-Nn(b))}var O=(i[0].value-o[0].value)/s,w=(i[a].value-o[a].value)/s;if(r.setExtent.call(t,g+v*O,m+v*w),r.setInterval.call(t,v),(O||w)&&r.setNiceExtent.call(t,g+v,m-v),process.env.NODE_ENV!=="production"){var x=r.getTicks.call(t);x[1]&&(!AYe(v)||NS(x[1].value)>NS(v))&&Mn("The ticks may be not readable when set min: "+e.get("min")+", max: "+e.get("max")+" and alignTicks: true")}}var RJe=function(){function t(e,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=dk,this._initCartesian(e,n,r),this.model=e}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(e,n){var r=this._axesMap;this._updateScale(e,this.model);function i(a){var s,l=bt(a),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],p=a[d],v=p.model,g=p.scale;ik(g)&&v.get("alignTicks")&&v.get("interval")==null?c.push(p):(dh(g,v),ik(g)&&(s=p))}c.length&&(s||(s=c.pop(),dh(s.scale,s.model)),V(c,function(m){wce(m.scale,m.model,s.scale)}))}}i(r.x),i(r.y);var o={};V(r.x,function(a){zj(r,"y",a,o)}),V(r.y,function(a){zj(r,"x",a,o)}),this.resize(this.model,n)},t.prototype.resize=function(e,n,r){var i=e.getBoxLayoutParams(),o=!r&&e.get("containLabel"),a=ir(i,{width:n.getWidth(),height:n.getHeight()});this._rect=a;var s=this._axesList;l(),o&&(V(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=JYe(u);if(c){var f=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);a[f]-=c[f]+d,u.position==="top"?a.y+=c.height+d:u.position==="left"&&(a.x+=c.width+d)}}}),l()),V(this._coordsList,function(u){u.calcAffineTransform()});function l(){V(s,function(u){var c=u.isHorizontal(),f=c?[0,a.width]:[0,a.height],d=u.inverse?1:0;u.setExtent(f[d],f[1-d]),kJe(u,c?a.x:a.y)})}},t.prototype.getAxis=function(e,n){var r=this._axesMap[e];if(r!=null)return r[n||0]},t.prototype.getAxes=function(){return this._axesList.slice()},t.prototype.getCartesian=function(e,n){if(e!=null&&n!=null){var r="x"+e+"y"+n;return this._coordsMap[r]}Qe(e)&&(n=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,o=this._coordsList;i<o.length;i++)if(o[i].getAxis("x").index===e||o[i].getAxis("y").index===n)return o[i]},t.prototype.getCartesians=function(){return this._coordsList.slice()},t.prototype.convertToPixel=function(e,n,r){var i=this._findConvertTarget(n);return i.cartesian?i.cartesian.dataToPoint(r):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(r)):null},t.prototype.convertFromPixel=function(e,n,r){var i=this._findConvertTarget(n);return i.cartesian?i.cartesian.pointToData(r):i.axis?i.axis.coordToData(i.axis.toLocalCoord(r)):null},t.prototype._findConvertTarget=function(e){var n=e.seriesModel,r=e.xAxisModel||n&&n.getReferringComponents("xAxis",rr).models[0],i=e.yAxisModel||n&&n.getReferringComponents("yAxis",rr).models[0],o=e.gridModel,a=this._coordsList,s,l;if(n)s=n.coordinateSystem,st(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}},t.prototype.containPoint=function(e){var n=this._coordsList[0];if(n)return n.containPoint(e)},t.prototype._initCartesian=function(e,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,V(s.x,function(c,f){V(s.y,function(d,p){var v="x"+f+"y"+p,g=new IJe(v);g.master=i,g.model=e,i._coordsMap[v]=g,i._coordsList.push(g),g.addAxis(c),g.addAxis(d)})});function u(c){return function(f,d){if(JE(f,e)){var p=f.get("position");c==="x"?p!=="top"&&p!=="bottom"&&(p=a.bottom?"top":"bottom"):p!=="left"&&p!=="right"&&(p=a.left?"right":"left"),a[p]=!0;var v=new DJe(c,x_(f),[0,0],f.get("type"),p),g=v.type==="category";v.onBand=g&&f.get("boundaryGap"),v.inverse=f.get("inverse"),f.axis=v,v.model=f,v.grid=o,v.index=d,o._axesList.push(v),s[c][d]=v,l[c]++}}}},t.prototype._updateScale=function(e,n){V(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)}}),e.eachSeries(function(i){if(Bj(i)){var o=Vj(i),a=o.xAxisModel,s=o.yAxisModel;if(!JE(a,n)||!JE(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){V(rC(i,o.dim),function(a){o.scale.unionExtentFromData(i,a)})}},t.prototype.getTooltipAxes=function(e){var n=[],r=[];return V(this.getCartesians(),function(i){var o=e!=null&&e!=="auto"?i.getAxis(e):i.getBaseAxis(),a=i.getOtherAxis(o);st(n,o)<0&&n.push(o),st(r,a)<0&&r.push(a)}),{baseAxes:n,otherAxes:r}},t.create=function(e,n){var r=[];return e.eachComponent("grid",function(i,o){var a=new t(i,e,n);a.name="grid_"+o,a.resize(i,n,!0),i.coordinateSystem=a,r.push(a)}),e.eachSeries(function(i){if(Bj(i)){var o=Vj(i),a=o.xAxisModel,s=o.yAxisModel,l=a.getCoordSysModel();if(process.env.NODE_ENV!=="production"){if(!l)throw new Error('Grid "'+Ro(a.get("gridIndex"),a.get("gridId"),0)+'" not found');if(a.getCoordSysModel()!==s.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(a.componentIndex,s.componentIndex)}}),r},t.dimensions=dk,t}();function JE(t,e){return t.getCoordSysModel()===e}function zj(t,e,n,r){n.getAxesOnZeroOf=function(){return o?[o]:[]};var i=t[e],o,a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)Fj(i[l])&&(o=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&Fj(i[u])&&!r[c(i[u])]){o=i[u];break}o&&(r[c(o)]=!0);function c(f){return f.dim+"_"+f.index}}function Fj(t){return t&&t.type!=="category"&&t.type!=="time"&&KYe(t)}function kJe(t,e){var n=t.getExtent(),r=n[0]+n[1];t.toGlobalCoord=t.dim==="x"?function(i){return i+e}:function(i){return r-i+e},t.toLocalCoord=t.dim==="x"?function(i){return i-e}:function(i){return r-i+e}}var lc=Math.PI,Ei=function(){function t(e,n){this.group=new qe,this.opt=n,this.axisModel=e,Ge(n,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var r=new qe({x:n.position[0],y:n.position[1],rotation:n.rotation});r.updateTransform(),this._transformGroup=r}return t.prototype.hasBuilder=function(e){return!!Wj[e]},t.prototype.add=function(e){Wj[e](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(e,n,r){var i=D8(n-e),o,a;return qv(i)?(a=r>0?"top":"bottom",o="center"):qv(i-lc)?(a=r>0?"bottom":"top",o="center"):(a="middle",i>0&&i<lc?o=r>0?"right":"left":o=r>0?"left":"right"),{rotation:i,textAlign:o,textVerticalAlign:a}},t.makeAxisEventDataBase=function(e){var n={componentType:e.mainType,componentIndex:e.componentIndex};return n[e.mainType+"Index"]=e.componentIndex,n},t.isLabelSilent=function(e){var n=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||n&&n.show)},t}(),Wj={axisLine:function(t,e,n,r){var i=e.get(["axisLine","show"]);if(i==="auto"&&t.handleAutoShown&&(i=t.handleAutoShown("axisLine")),!!i){var o=e.axis.getExtent(),a=r.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(Er(s,s,a),Er(l,l,a));var c=he({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new _r({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});eg(f.shape,f.style.lineWidth),f.anid="line",n.add(f);var d=e.get(["axisLine","symbol"]);if(d!=null){var p=e.get(["axisLine","symbolSize"]);Ie(d)&&(d=[d,d]),(Ie(p)||It(p))&&(p=[p,p]);var v=Dh(e.get(["axisLine","symbolOffset"])||0,p),g=p[0],m=p[1];V([{rotate:t.rotation+Math.PI/2,offset:v[0],r:0},{rotate:t.rotation-Math.PI/2,offset:v[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(y,b){if(d[b]!=="none"&&d[b]!=null){var O=Yn(d[b],-g/2,-m/2,g,m,c.stroke,!0),w=y.r+y.offset,x=u?l:s;O.attr({rotation:y.rotate,x:x[0]+w*Math.cos(t.rotation),y:x[1]-w*Math.sin(t.rotation),silent:!0,z2:11}),n.add(O)}})}}},axisTickLabel:function(t,e,n,r){var i=BJe(n,r,e,t),o=zJe(n,r,e,t);if(LJe(e,o,i),VJe(n,r,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var a=Vue(ye(o,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));Wue(a)}},axisName:function(t,e,n,r){var i=Zn(t.axisName,e.get("name"));if(i){var o=e.get("nameLocation"),a=t.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.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,Hj(o)?t.labelOffset+a*l:0],d,p=e.get("nameRotate");p!=null&&(p=p*lc/180);var v;Hj(o)?d=Ei.innerTextLayout(t.rotation,p??t.rotation,a):(d=NJe(t.rotation,o,p||0,u),v=t.axisNameAvailableWidth,v!=null&&(v=Math.abs(v/Math.sin(d.rotation)),!isFinite(v)&&(v=null)));var g=s.getFont(),m=e.get("nameTruncate",!0)||{},y=m.ellipsis,b=Zn(t.nameTruncateMaxWidth,m.maxWidth,v),O=new Tt({x:f[0],y:f[1],rotation:d.rotation,silent:Ei.isLabelSilent(e),style:un(s,{text:i,font:g,overflow:"truncate",width:b,ellipsis:y,fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:s.get("align")||d.textAlign,verticalAlign:s.get("verticalAlign")||d.textVerticalAlign}),z2:1});if(Dg({el:O,componentModel:e,itemName:i}),O.__fullText=i,O.anid="name",e.get("triggerEvent")){var w=Ei.makeAxisEventDataBase(e);w.targetType="axisName",w.name=i,Ke(O).eventData=w}r.add(O),O.updateTransform(),n.add(O),O.decomposeTransform()}}};function NJe(t,e,n,r){var i=D8(n-t),o,a,s=r[0]>r[1],l=e==="start"&&!s||e!=="start"&&s;return qv(i-lc/2)?(a=l?"bottom":"top",o="center"):qv(i-lc*1.5)?(a=l?"top":"bottom",o="center"):(a="middle",i<lc*1.5&&i>lc/2?o=l?"left":"right":o=l?"right":"left"),{rotation:i,textAlign:o,textVerticalAlign:a}}function LJe(t,e,n){if(!Tue(t.axis)){var r=t.get(["axisLabel","showMinLabel"]),i=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var o=e[0],a=e[1],s=e[e.length-1],l=e[e.length-2],u=n[0],c=n[1],f=n[n.length-1],d=n[n.length-2];r===!1?(Jo(o),Jo(u)):Qj(o,a)&&(r?(Jo(a),Jo(c)):(Jo(o),Jo(u))),i===!1?(Jo(s),Jo(f)):Qj(l,s)&&(i?(Jo(l),Jo(d)):(Jo(s),Jo(f)))}}function Jo(t){t&&(t.ignore=!0)}function Qj(t,e){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(!(!n||!r)){var i=f_([]);return Yc(i,i,-t.rotation),n.applyTransform(el([],i,t.getLocalTransform())),r.applyTransform(el([],i,e.getLocalTransform())),n.intersect(r)}}function Hj(t){return t==="middle"||t==="center"}function xce(t,e,n,r,i){for(var o=[],a=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;a[0]=u,a[1]=0,s[0]=u,s[1]=n,e&&(Er(a,a,e),Er(s,s,e));var c=new _r({shape:{x1:a[0],y1:a[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});eg(c.shape,c.style.lineWidth),c.anid=i+"_"+t[l].tickValue,o.push(c)}return o}function BJe(t,e,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=xce(u,e.transform,l,Ge(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)t.add(c[f]);return c}}function VJe(t,e,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=Ge(s.getLineStyle(),Ge(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<a.length;c++)for(var f=xce(a[c],e.transform,l,u,"minorticks_"+c),d=0;d<f.length;d++)t.add(f[d])}}function zJe(t,e,n,r){var i=n.axis,o=Zn(r.axisLabelShow,n.get(["axisLabel","show"]));if(!(!o||i.scale.isBlank())){var a=n.getModel("axisLabel"),s=a.get("margin"),l=i.getViewLabels(),u=(Zn(r.labelRotate,a.get("rotate"))||0)*lc/180,c=Ei.innerTextLayout(r.rotation,u,r.labelDirection),f=n.getCategories&&n.getCategories(!0),d=[],p=Ei.isLabelSilent(n),v=n.get("triggerEvent");return V(l,function(g,m){var y=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(g.tickValue):g.tickValue,b=g.formattedLabel,O=g.rawLabel,w=a;if(f&&f[y]){var x=f[y];Qe(x)&&x.textStyle&&(w=new tn(x.textStyle,a,n.ecModel))}var S=w.getTextColor()||n.get(["axisLine","lineStyle","color"]),T=i.dataToCoord(y),$=w.getShallow("align",!0)||c.textAlign,A=Je(w.getShallow("alignMinLabel",!0),$),P=Je(w.getShallow("alignMaxLabel",!0),$),M=w.getShallow("verticalAlign",!0)||w.getShallow("baseline",!0)||c.textVerticalAlign,I=Je(w.getShallow("verticalAlignMinLabel",!0),M),R=Je(w.getShallow("verticalAlignMaxLabel",!0),M),L=new Tt({x:T,y:r.labelOffset+r.labelDirection*s,rotation:c.rotation,silent:p,z2:10+(g.level||0),style:un(w,{text:b,align:m===0?A:m===l.length-1?P:$,verticalAlign:m===0?I:m===l.length-1?R:M,fill:Fe(S)?S(i.type==="category"?O:i.type==="value"?y+"":y,m):S})});if(L.anid="label_"+y,v){var D=Ei.makeAxisEventDataBase(n);D.targetType="axisLabel",D.value=O,D.tickIndex=m,i.type==="category"&&(D.dataIndex=y),Ke(L).eventData=D}e.add(L),L.updateTransform(),d.push(L),t.add(L),L.decomposeTransform()}),d}}function FJe(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return WJe(n,t,e),n.seriesInvolved&&HJe(n,t),n}function WJe(t,e,n){var r=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),o=i.get("link",!0)||[],a=[];V(n.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=gb(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",r);if(V(s.getAxes(),nt(g,!1,null)),s.getTooltipAxes&&r&&f.get("show")){var d=f.get("trigger")==="axis",p=f.get(["axisPointer","type"])==="cross",v=s.getTooltipAxes(f.get(["axisPointer","axis"]));(d||p)&&V(v.baseAxes,nt(g,p?"cross":!0,d)),p&&V(v.otherAxes,nt(g,"cross",!1))}function g(m,y,b){var O=b.model.getModel("axisPointer",i),w=O.get("show");if(!(!w||w==="auto"&&!m&&!pk(O))){y==null&&(y=O.get("triggerTooltip")),O=m?QJe(b,f,i,e,m,y):O;var x=O.get("snap"),S=O.get("triggerEmphasis"),T=gb(b.model),$=y||x||b.type==="category",A=t.axesInfo[T]={key:T,axis:b,coordSys:s,axisPointerModel:O,triggerTooltip:y,triggerEmphasis:S,involveSeries:$,snap:x,useHandle:pk(O),seriesModels:[],linkGroup:null};u[T]=A,t.seriesInvolved=t.seriesInvolved||$;var P=GJe(o,b);if(P!=null){var M=a[P]||(a[P]={axesInfo:{}});M.axesInfo[T]=A,M.mapper=o[P].mapper,A.linkGroup=M}}}})}function QJe(t,e,n,r,i,o){var a=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};V(s,function(d){l[d]=Ue(a.get(d))}),l.snap=t.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&&Ge(u,f.textStyle)}}return t.model.getModel("axisPointer",new tn(l,n,r))}function HJe(t,e){e.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||V(t.coordSysAxesInfo[gb(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 GJe(t,e){for(var n=e.model,r=e.dim,i=0;i<t.length;i++){var o=t[i]||{};if(eM(o[r+"AxisId"],n.id)||eM(o[r+"AxisIndex"],n.componentIndex)||eM(o[r+"AxisName"],n.name))return i}}function eM(t,e){return t==="all"||ve(t)&&st(t,e)>=0||t===e}function jJe(t){var e=H5(t);if(e){var n=e.axisPointerModel,r=e.axis.scale,i=n.option,o=n.get("status"),a=n.get("value");a!=null&&(a=r.parse(a));var s=pk(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=e.axis.scale.isBlank()?"hide":"show")}}function H5(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[gb(t)]}function UJe(t){var e=H5(t);return e&&e.axisPointerModel}function pk(t){return!!t.get(["handle","show"])}function gb(t){return t.type+"||"+t.id}var tM={},kh=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i,o){this.axisPointerClass&&jJe(n),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(n,i,!0)},e.prototype.updateAxisPointer=function(n,r,i,o){this._doUpdateAxisPointerClass(n,i,!1)},e.prototype.remove=function(n,r){var i=this._axisPointer;i&&i.remove(r)},e.prototype.dispose=function(n,r){this._disposeAxisPointer(r),t.prototype.dispose.apply(this,arguments)},e.prototype._doUpdateAxisPointerClass=function(n,r,i){var o=e.getAxisPointerClass(this.axisPointerClass);if(o){var a=UJe(n);a?(this._axisPointer||(this._axisPointer=new o)).render(n,a,r,i):this._disposeAxisPointer(r)}},e.prototype._disposeAxisPointer=function(n){this._axisPointer&&this._axisPointer.dispose(n),this._axisPointer=null},e.registerAxisPointerClass=function(n,r){if(process.env.NODE_ENV!=="production"&&tM[n])throw new Error("axisPointer "+n+" exists");tM[n]=r},e.getAxisPointerClass=function(n){return n&&tM[n]},e.type="axis",e}(hn),vk=$t();function Sce(t,e,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=vk(t).splitAreaColors,d=Be(),p=0;if(f)for(var v=0;v<u.length;v++){var g=f.get(u[v].tickValue);if(g!=null){p=(g+(c-1)*v)%c;break}}var m=i.toGlobalCoord(u[0].coord),y=a.getAreaStyle();s=ve(s)?s:[s];for(var v=1;v<u.length;v++){var b=i.toGlobalCoord(u[v].coord),O=void 0,w=void 0,x=void 0,S=void 0;i.isHorizontal()?(O=m,w=l.y,x=b-O,S=l.height,m=O+x):(O=l.x,w=m,x=l.width,S=b-w,m=w+S);var T=u[v-1].tickValue;T!=null&&d.set(T,p),e.add(new Pt({anid:T!=null?"area_"+T:null,shape:{x:O,y:w,width:x,height:S},style:Ge({fill:s[p]},y),autoBatch:!0,silent:!0})),p=(p+1)%c}vk(t).splitAreaColors=d}}}function Cce(t){vk(t).splitAreaColors=null}var ZJe=["axisLine","axisTickLabel","axisName"],XJe=["splitArea","splitLine","minorSplitLine"],Tce=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="CartesianAxisPointer",n}return e.prototype.render=function(n,r,i,o){this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new qe,this.group.add(this._axisGroup),!!n.get("show")){var s=n.getCoordSysModel(),l=hk(s,n),u=new Ei(n,he({handleAutoShown:function(f){for(var d=s.coordinateSystem.getCartesians(),p=0;p<d.length;p++)if(ik(d[p].getOtherAxis(n.axis).scale))return!0;return!1}},l));V(ZJe,u.add,u),this._axisGroup.add(u.getGroup()),V(XJe,function(f){n.get([f,"show"])&&YJe[f](this,this._axisGroup,n,s)},this);var c=o&&o.type==="changeAxisOrder"&&o.isInitSort;c||__(a,this._axisGroup,n),t.prototype.render.call(this,n,r,i,o)}},e.prototype.remove=function(){Cce(this)},e.type="cartesianAxis",e}(kh),YJe={splitLine:function(t,e,n,r){var i=n.axis;if(!i.scale.isBlank()){var o=n.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=ve(s)?s:[s];for(var l=r.coordinateSystem.getRect(),u=i.isHorizontal(),c=0,f=i.getTicksCoords({tickModel:o}),d=[],p=[],v=a.getLineStyle(),g=0;g<f.length;g++){var m=i.toGlobalCoord(f[g].coord);u?(d[0]=m,d[1]=l.y,p[0]=m,p[1]=l.y+l.height):(d[0]=l.x,d[1]=m,p[0]=l.x+l.width,p[1]=m);var y=c++%s.length,b=f[g].tickValue,O=new _r({anid:b!=null?"line_"+f[g].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:p[0],y2:p[1]},style:Ge({stroke:s[y]},v),silent:!0});eg(O.shape,v.lineWidth),e.add(O)}}},minorSplitLine:function(t,e,n,r){var i=n.axis,o=n.getModel("minorSplitLine"),a=o.getModel("lineStyle"),s=r.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(u.length)for(var c=[],f=[],d=a.getLineStyle(),p=0;p<u.length;p++)for(var v=0;v<u[p].length;v++){var g=i.toGlobalCoord(u[p][v].coord);l?(c[0]=g,c[1]=s.y,f[0]=g,f[1]=s.y+s.height):(c[0]=s.x,c[1]=g,f[0]=s.x+s.width,f[1]=g);var m=new _r({anid:"minor_line_"+u[p][v].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:d,silent:!0});eg(m.shape,d.lineWidth),e.add(m)}},splitArea:function(t,e,n,r){Sce(t,e,n,r)}},Pce=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="xAxis",e}(Tce),qJe=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=Pce.type,n}return e.type="yAxis",e}(Tce),KJe=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="grid",n}return e.prototype.render=function(n,r){this.group.removeAll(),n.get("show")&&this.group.add(new Pt({shape:n.coordinateSystem.getRect(),style:Ge({fill:n.get("backgroundColor")},n.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(hn),Gj={offset:0};function $ce(t){t.registerComponentView(KJe),t.registerComponentModel(TJe),t.registerCoordinateSystem("cartesian2d",RJe),ig(t,"x",fk,Gj),ig(t,"y",fk,Gj),t.registerComponentView(Pce),t.registerComponentView(qJe),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function JJe(t){vt($ce),t.registerSeriesModel(OJe),t.registerChartView(CJe),t.registerLayout(P_("scatter"))}function eet(t){t.eachSeriesByType("radar",function(e){var n=e.getData(),r=[],i=e.coordinateSystem;if(i){var o=i.getIndicatorAxes();V(o,function(a,s){n.each(n.mapDimension(o[s].dim),function(l,u){r[u]=r[u]||[];var c=i.dataToPoint(l,s);r[u][s]=jj(c)?c:Uj(i)})}),n.each(function(a){var s=joe(r[a],function(l){return jj(l)})||Uj(i);r[a].push(s.slice()),n.setItemLayout(a,r[a])})}})}function jj(t){return!isNaN(t[0])&&!isNaN(t[1])}function Uj(t){return[t.cx,t.cy]}function tet(t){var e=t.polar;if(e){ve(e)||(e=[e]);var n=[];V(e,function(r,i){r.indicator?(r.type&&!r.shape&&(r.shape=r.type),t.radar=t.radar||[],ve(t.radar)||(t.radar=[t.radar]),t.radar.push(r)):n.push(r)}),t.polar=n}V(t.series,function(r){r&&r.type==="radar"&&r.polarIndex&&(r.radarIndex=r.polarIndex)})}var net=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){var o=n.coordinateSystem,a=this.group,s=n.getData(),l=this._data;function u(d,p){var v=d.getItemVisual(p,"symbol")||"circle";if(v!=="none"){var g=zg(d.getItemVisual(p,"symbolSize")),m=Yn(v,-1,-1,2,2),y=d.getItemVisual(p,"symbolRotate")||0;return m.attr({style:{strokeNoScale:!0},z2:100,scaleX:g[0]/2,scaleY:g[1]/2,rotation:y*Math.PI/180||0}),m}}function c(d,p,v,g,m,y){v.removeAll();for(var b=0;b<p.length-1;b++){var O=u(g,m);O&&(O.__dimIdx=b,d[b]?(O.setPosition(d[b]),Ah[y?"initProps":"updateProps"](O,{x:p[b][0],y:p[b][1]},n,m)):O.setPosition(p[b]),v.add(O))}}function f(d){return ye(d,function(p){return[o.cx,o.cy]})}s.diff(l).add(function(d){var p=s.getItemLayout(d);if(p){var v=new Li,g=new Bi,m={shape:{points:p}};v.shape.points=f(p),g.shape.points=f(p),gn(v,m,n,d),gn(g,m,n,d);var y=new qe,b=new qe;y.add(g),y.add(v),y.add(b),c(g.shape.points,p,b,s,d,!0),s.setItemGraphicEl(d,y)}}).update(function(d,p){var v=l.getItemGraphicEl(p),g=v.childAt(0),m=v.childAt(1),y=v.childAt(2),b={shape:{points:s.getItemLayout(d)}};b.shape.points&&(c(g.shape.points,b.shape.points,y,s,d,!1),fs(m),fs(g),kt(g,b,n),kt(m,b,n),s.setItemGraphicEl(d,v))}).remove(function(d){a.remove(l.getItemGraphicEl(d))}).execute(),s.eachItemGraphicEl(function(d,p){var v=s.getItemModel(p),g=d.childAt(0),m=d.childAt(1),y=d.childAt(2),b=s.getItemVisual(p,"style"),O=b.fill;a.add(d),g.useStyle(Ge(v.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:O})),Kr(g,v,"lineStyle"),Kr(m,v,"areaStyle");var w=v.getModel("areaStyle"),x=w.isEmpty()&&w.parentModel.isEmpty();m.ignore=x,V(["emphasis","select","blur"],function($){var A=v.getModel([$,"areaStyle"]),P=A.isEmpty()&&A.parentModel.isEmpty();m.ensureState($).ignore=P&&x}),m.useStyle(Ge(w.getAreaStyle(),{fill:O,opacity:.7,decal:b.decal}));var S=v.getModel("emphasis"),T=S.getModel("itemStyle").getItemStyle();y.eachChild(function($){if($ instanceof Rr){var A=$.style;$.useStyle(he({image:A.image,x:A.x,y:A.y,width:A.width,height:A.height},b))}else $.useStyle(b),$.setColor(O),$.style.strokeNoScale=!0;var P=$.ensureState("emphasis");P.style=Ue(T);var M=s.getStore().get(s.getDimensionIndex($.__dimIdx),p);(M==null||isNaN(M))&&(M=""),Jr($,Cr(v),{labelFetcher:s.hostModel,labelDataIndex:p,labelDimIndex:$.__dimIdx,defaultText:M,inheritColor:O,defaultOpacity:b.opacity})}),Bn(d,S.get("focus"),S.get("blurScope"),S.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(Kt),ret=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return e.prototype.init=function(n){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new A_(Re(this.getData,this),Re(this.getRawData,this))},e.prototype.getInitialData=function(n,r){return Hg(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(n,r,i){var o=this.getData(),a=this.coordinateSystem,s=a.getIndicatorAxes(),l=this.getData().getName(n),u=l===""?this.name:l,c=Sle(this,n);return Tr("section",{header:u,sortBlocks:!0,blocks:ye(s,function(f){var d=o.get(o.mapDimension(f.dim),n);return Tr("nameValue",{markerType:"subItem",markerColor:c,name:f.name,value:d,sortParam:d})})})},e.prototype.getTooltipPosition=function(n){if(n!=null){for(var r=this.getData(),i=this.coordinateSystem,o=r.getValues(ye(i.dimensions,function(u){return r.mapDimension(u)}),n),a=0,s=o.length;a<s;a++)if(!isNaN(o[a])){var l=i.getIndicatorAxes();return i.coordToPoint(l[a].dataToCoord(o[a]),a)}}},e.type="series.radar",e.dependencies=["radar"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},e}(rn),Jm=Oce.value;function ZO(t,e){return Ge({show:e},t)}var iet=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.optionUpdated=function(){var n=this.get("boundaryGap"),r=this.get("splitNumber"),i=this.get("scale"),o=this.get("axisLine"),a=this.get("axisTick"),s=this.get("axisLabel"),l=this.get("axisName"),u=this.get(["axisName","show"]),c=this.get(["axisName","formatter"]),f=this.get("axisNameGap"),d=this.get("triggerEvent"),p=ye(this.get("indicator")||[],function(v){v.max!=null&&v.max>0&&!v.min?v.min=0:v.min!=null&&v.min<0&&!v.max&&(v.max=0);var g=l;v.color!=null&&(g=Ge({color:v.color},l));var m=it(Ue(v),{boundaryGap:n,splitNumber:r,scale:i,axisLine:o,axisTick:a,axisLabel:s,name:v.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:g,triggerEvent:d},!1);if(Ie(c)){var y=m.name;m.name=c.replace("{value}",y??"")}else Fe(c)&&(m.name=c(m.name,m));var b=new tn(m,null,this.ecModel);return Qn(b,Qg.prototype),b.mainType="radar",b.componentIndex=this.componentIndex,b},this);this._indicatorModels=p},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:it({lineStyle:{color:"#bbb"}},Jm.axisLine),axisLabel:ZO(Jm.axisLabel,!1),axisTick:ZO(Jm.axisTick,!1),splitLine:ZO(Jm.splitLine,!0),splitArea:ZO(Jm.splitArea,!0),indicator:[]},e}(pt),oet=["axisLine","axisTickLabel","axisName"],aet=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){var o=this.group;o.removeAll(),this._buildAxes(n),this._buildSplitLineAndArea(n)},e.prototype._buildAxes=function(n){var r=n.coordinateSystem,i=r.getIndicatorAxes(),o=ye(i,function(a){var s=a.model.get("showName")?a.name:"",l=new Ei(a.model,{axisName:s,position:[r.cx,r.cy],rotation:a.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});V(o,function(a){V(oet,a.add,a),this.group.add(a.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(n){var r=n.coordinateSystem,i=r.getIndicatorAxes();if(!i.length)return;var o=n.get("shape"),a=n.getModel("splitLine"),s=n.getModel("splitArea"),l=a.getModel("lineStyle"),u=s.getModel("areaStyle"),c=a.get("show"),f=s.get("show"),d=l.get("color"),p=u.get("color"),v=ve(d)?d:[d],g=ve(p)?p:[p],m=[],y=[];function b(D,B,F){var z=F%B.length;return D[z]=D[z]||[],z}if(o==="circle")for(var O=i[0].getTicksCoords(),w=r.cx,x=r.cy,S=0;S<O.length;S++){if(c){var T=b(m,v,S);m[T].push(new _u({shape:{cx:w,cy:x,r:O[S].coord}}))}if(f&&S<O.length-1){var T=b(y,g,S);y[T].push(new m_({shape:{cx:w,cy:x,r0:O[S].coord,r:O[S+1].coord}}))}}else for(var $,A=ye(i,function(D,B){var F=D.getTicksCoords();return $=$==null?F.length-1:Math.min(F.length-1,$),ye(F,function(z){return r.coordToPoint(z.coord,B)})}),P=[],S=0;S<=$;S++){for(var M=[],I=0;I<i.length;I++)M.push(A[I][S]);if(M[0]?M.push(M[0].slice()):process.env.NODE_ENV!=="production"&&console.error("Can't draw value axis "+S),c){var T=b(m,v,S);m[T].push(new Bi({shape:{points:M}}))}if(f&&P){var T=b(y,g,S-1);y[T].push(new Li({shape:{points:M.concat(P)}}))}P=M.slice().reverse()}var R=l.getLineStyle(),L=u.getAreaStyle();V(y,function(D,B){this.group.add(To(D,{style:Ge({stroke:"none",fill:g[B%g.length]},L),silent:!0}))},this),V(m,function(D,B){this.group.add(To(D,{style:Ge({fill:"none",stroke:v[B%v.length]},R),silent:!0}))},this)},e.type="radar",e}(hn),set=function(t){ie(e,t);function e(n,r,i){var o=t.call(this,n,r,i)||this;return o.type="value",o.angle=0,o.name="",o}return e}(ka),uet=function(){function t(e,n,r){this.dimensions=[],this._model=e,this._indicatorAxes=ye(e.getIndicatorModels(),function(i,o){var a="indicator_"+o,s=new set(a,new lu);return s.name=i.get("name"),s.model=i,i.axis=s,this.dimensions.push(a),s},this),this.resize(e,r)}return t.prototype.getIndicatorAxes=function(){return this._indicatorAxes},t.prototype.dataToPoint=function(e,n){var r=this._indicatorAxes[n];return this.coordToPoint(r.dataToCoord(e),n)},t.prototype.coordToPoint=function(e,n){var r=this._indicatorAxes[n],i=r.angle,o=this.cx+e*Math.cos(i),a=this.cy-e*Math.sin(i);return[o,a]},t.prototype.pointToData=function(e){var n=e[0]-this.cx,r=e[1]-this.cy,i=Math.sqrt(n*n+r*r);n/=i,r/=i;for(var o=Math.atan2(-r,n),a=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],f=Math.abs(o-c.angle);f<a&&(s=c,l=u,a=f)}return[l,+(s&&s.coordToData(i))]},t.prototype.resize=function(e,n){var r=e.get("center"),i=n.getWidth(),o=n.getHeight(),a=Math.min(i,o)/2;this.cx=Me(r[0],i),this.cy=Me(r[1],o),this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(Ie(s)||It(s))&&(s=[0,s]),this.r0=Me(s[0],a),this.r=Me(s[1],a),V(this._indicatorAxes,function(l,u){l.setExtent(this.r0,this.r);var c=this.startAngle+u*Math.PI*2/this._indicatorAxes.length;c=Math.atan2(Math.sin(c),Math.cos(c)),l.angle=c},this)},t.prototype.update=function(e,n){var r=this._indicatorAxes,i=this._model;V(r,function(s){s.scale.setExtent(1/0,-1/0)}),e.eachSeriesByType("radar",function(s,l){if(!(s.get("coordinateSystem")!=="radar"||e.getComponent("radar",s.get("radarIndex"))!==i)){var u=s.getData();V(r,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var o=i.get("splitNumber"),a=new lu;a.setExtent(0,o),a.setInterval(1),V(r,function(s,l){wce(s.scale,s.model,a)})},t.prototype.convertToPixel=function(e,n,r){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(e,n,r){return console.warn("Not implemented."),null},t.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},t.create=function(e,n){var r=[];return e.eachComponent("radar",function(i){var o=new t(i,e,n);r.push(o),i.coordinateSystem=o}),e.eachSeriesByType("radar",function(i){i.get("coordinateSystem")==="radar"&&(i.coordinateSystem=r[i.get("radarIndex")||0])}),r},t.dimensions=[],t}();function cet(t){t.registerCoordinateSystem("radar",uet),t.registerComponentModel(iet),t.registerComponentView(aet),t.registerVisual({seriesType:"radar",reset:function(e){var n=e.getData();n.each(function(r){n.setItemVisual(r,"legendIcon","roundRect")}),n.setVisual("legendIcon","roundRect")}})}function fet(t){vt(cet),t.registerChartView(net),t.registerSeriesModel(ret),t.registerLayout(eet),t.registerProcessor($_("radar")),t.registerPreprocessor(tet)}var Zj="\0_ec_interaction_mutex";function det(t,e,n){var r=G5(t);r[e]=n}function het(t,e,n){var r=G5(t),i=r[e];i===n&&(r[e]=null)}function Xj(t,e){return!!G5(t)[e]}function G5(t){return t[Zj]||(t[Zj]={})}ms({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},zn);var E_=function(t){ie(e,t);function e(n){var r=t.call(this)||this;r._zr=n;var i=Re(r._mousedownHandler,r),o=Re(r._mousemoveHandler,r),a=Re(r._mouseupHandler,r),s=Re(r._mousewheelHandler,r),l=Re(r._pinchHandler,r);return r.enable=function(u,c){this.disable(),this._opt=Ge(Ue(c)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),u==null&&(u=!0),(u===!0||u==="move"||u==="pan")&&(n.on("mousedown",i),n.on("mousemove",o),n.on("mouseup",a)),(u===!0||u==="scale"||u==="zoom")&&(n.on("mousewheel",s),n.on("pinch",l))},r.disable=function(){n.off("mousedown",i),n.off("mousemove",o),n.off("mouseup",a),n.off("mousewheel",s),n.off("pinch",l)},r}return e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(n){this.pointerChecker=n},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(n){if(!x9(n)){for(var r=n.target;r;){if(r.draggable)return;r=r.__hostTarget||r.parent}var i=n.offsetX,o=n.offsetY;this.pointerChecker&&this.pointerChecker(n,i,o)&&(this._x=i,this._y=o,this._dragging=!0)}},e.prototype._mousemoveHandler=function(n){if(!(!this._dragging||!Sx("moveOnMouseMove",n,this._opt)||n.gestureEvent==="pinch"||Xj(this._zr,"globalPan"))){var r=n.offsetX,i=n.offsetY,o=this._x,a=this._y,s=r-o,l=i-a;this._x=r,this._y=i,this._opt.preventDefaultMouseMove&&ru(n.event),Ace(this,"pan","moveOnMouseMove",n,{dx:s,dy:l,oldX:o,oldY:a,newX:r,newY:i,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(n){x9(n)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(n){var r=Sx("zoomOnMouseWheel",n,this._opt),i=Sx("moveOnMouseWheel",n,this._opt),o=n.wheelDelta,a=Math.abs(o),s=n.offsetX,l=n.offsetY;if(!(o===0||!r&&!i)){if(r){var u=a>3?1.4:a>1?1.2:1.1,c=o>0?u:1/u;nM(this,"zoom","zoomOnMouseWheel",n,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(i){var f=Math.abs(o),d=(o>0?1:-1)*(f>3?.4:f>1?.15:.05);nM(this,"scrollMove","moveOnMouseWheel",n,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(n){if(!Xj(this._zr,"globalPan")){var r=n.pinchScale>1?1.1:1/1.1;nM(this,"zoom",null,n,{scale:r,originX:n.pinchX,originY:n.pinchY,isAvailableBehavior:null})}},e}(Ma);function nM(t,e,n,r,i){t.pointerChecker&&t.pointerChecker(r,i.originX,i.originY)&&(ru(r.event),Ace(t,e,n,r,i))}function Ace(t,e,n,r,i){i.isAvailableBehavior=Re(Sx,null,n,r),t.trigger(e,i)}function Sx(t,e,n){var r=n[t];return!t||r&&(!Ie(r)||e.event[r+"Key"])}function j5(t,e,n){var r=t.target;r.x+=e,r.y+=n,r.dirty()}function U5(t,e,n,r){var i=t.target,o=t.zoomLimit,a=t.zoom=t.zoom||1;if(a*=e,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/t.zoom;t.zoom=a,i.x-=(n-i.x)*(u-1),i.y-=(r-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var pet={axisPointer:1,tooltip:1,brush:1};function jP(t,e,n){var r=e.getComponentByElement(t.topTarget),i=r&&r.coordinateSystem;return r&&r!==n&&!pet.hasOwnProperty(r.mainType)&&i&&i.model!==n}function Ece(t){if(Ie(t)){var e=new DOMParser;t=e.parseFromString(t,"text/xml")}var n=t;for(n.nodeType===9&&(n=n.firstChild);n.nodeName.toLowerCase()!=="svg"||n.nodeType!==1;)n=n.nextSibling;return n}var rM,lC={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},Yj=bt(lC),uC={"alignment-baseline":"textBaseline","stop-color":"stopColor"},qj=bt(uC),vet=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(e,n){n=n||{};var r=Ece(e);if(process.env.NODE_ENV!=="production"&&!r)throw new Error("Illegal svg");this._defsUsePending=[];var i=new qe;this._root=i;var o=[],a=r.getAttribute("viewBox")||"",s=parseFloat(r.getAttribute("width")||n.width),l=parseFloat(r.getAttribute("height")||n.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),bo(r,i,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,i,o,null,!1,!1),u=u.nextSibling;yet(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(a){var d=UP(a);d.length>=4&&(c={x:parseFloat(d[0]||0),y:parseFloat(d[1]||0),width:parseFloat(d[2]),height:parseFloat(d[3])})}if(c&&s!=null&&l!=null&&(f=Ice(c,{x:0,y:0,width:s,height:l}),!n.ignoreViewBox)){var p=i;i=new qe,i.add(p),p.scaleX=p.scaleY=f.scale,p.x=f.x,p.y=f.y}return!n.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new Pt({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:c,viewBoxTransform:f,named:o}},t.prototype._parseNode=function(e,n,r,i,o,a){var s=e.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(o=!0),s==="text"&&(a=!0),s==="defs"||s==="switch")l=n;else{if(!o){var c=rM[s];if(c&&ke(rM,s)){l=c.call(this,e,n);var f=e.getAttribute("name");if(f){var d={name:f,namedFrom:null,svgNodeTagLower:s,el:l};r.push(d),s==="g"&&(u=d)}else i&&r.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});n.add(l)}}var p=Kj[s];if(p&&ke(Kj,s)){var v=p.call(this,e),g=e.getAttribute("id");g&&(this._defs[g]=v)}}if(l&&l.isGroup)for(var m=e.firstChild;m;)m.nodeType===1?this._parseNode(m,l,r,u,o,a):m.nodeType===3&&a&&this._parseText(m,l),m=m.nextSibling},t.prototype._parseText=function(e,n){var r=new Jv({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});ea(n,r),bo(e,r,this._defsUsePending,!1,!1),get(r,n);var i=r.style,o=i.fontSize;o&&o<9&&(i.fontSize=9,r.scaleX*=o/9,r.scaleY*=o/9);var a=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=a;var s=r.getBoundingRect();return this._textX+=s.width,n.add(r),r},t.internalField=function(){rM={g:function(e,n){var r=new qe;return ea(n,r),bo(e,r,this._defsUsePending,!1,!1),r},rect:function(e,n){var r=new Pt;return ea(n,r),bo(e,r,this._defsUsePending,!1,!1),r.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),r.silent=!0,r},circle:function(e,n){var r=new _u;return ea(n,r),bo(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),r.silent=!0,r},line:function(e,n){var r=new _r;return ea(n,r),bo(e,r,this._defsUsePending,!1,!1),r.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),r.silent=!0,r},ellipse:function(e,n){var r=new SP;return ea(n,r),bo(e,r,this._defsUsePending,!1,!1),r.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),r.silent=!0,r},polygon:function(e,n){var r=e.getAttribute("points"),i;r&&(i=tU(r));var o=new Li({shape:{points:i||[]},silent:!0});return ea(n,o),bo(e,o,this._defsUsePending,!1,!1),o},polyline:function(e,n){var r=e.getAttribute("points"),i;r&&(i=tU(r));var o=new Bi({shape:{points:i||[]},silent:!0});return ea(n,o),bo(e,o,this._defsUsePending,!1,!1),o},image:function(e,n){var r=new Rr;return ea(n,r),bo(e,r,this._defsUsePending,!1,!1),r.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),r.silent=!0,r},text:function(e,n){var r=e.getAttribute("x")||"0",i=e.getAttribute("y")||"0",o=e.getAttribute("dx")||"0",a=e.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(o),this._textY=parseFloat(i)+parseFloat(a);var s=new qe;return ea(n,s),bo(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,n){var r=e.getAttribute("x"),i=e.getAttribute("y");r!=null&&(this._textX=parseFloat(r)),i!=null&&(this._textY=parseFloat(i));var o=e.getAttribute("dx")||"0",a=e.getAttribute("dy")||"0",s=new qe;return ea(n,s),bo(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(o),this._textY+=parseFloat(a),s},path:function(e,n){var r=e.getAttribute("d")||"",i=hse(r);return ea(n,i),bo(e,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),t}(),Kj={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),r=parseInt(t.getAttribute("x2")||"10",10),i=parseInt(t.getAttribute("y2")||"0",10),o=new Eg(e,n,r,i);return Jj(t,o),eU(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),r=parseInt(t.getAttribute("r")||"0",10),i=new j8(e,n,r);return Jj(t,i),eU(t,i),i}};function Jj(t,e){var n=t.getAttribute("gradientUnits");n==="userSpaceOnUse"&&(e.global=!0)}function eU(t,e){for(var n=t.firstChild;n;){if(n.nodeType===1&&n.nodeName.toLocaleLowerCase()==="stop"){var r=n.getAttribute("offset"),i=void 0;r&&r.indexOf("%")>0?i=parseInt(r,10)/100:r?i=parseFloat(r):i=0;var o={};Mce(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:a})}n=n.nextSibling}}function ea(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Ge(e.__inheritedStyle,t.__inheritedStyle))}function tU(t){for(var e=UP(t),n=[],r=0;r<e.length;r+=2){var i=parseFloat(e[r]),o=parseFloat(e[r+1]);n.push([i,o])}return n}function bo(t,e,n,r,i){var o=e,a=o.__inheritedStyle=o.__inheritedStyle||{},s={};t.nodeType===1&&(Oet(t,e),Mce(t,a,s),r||wet(t,a,s)),o.style=o.style||{},a.fill!=null&&(o.style.fill=nU(o,"fill",a.fill,n)),a.stroke!=null&&(o.style.stroke=nU(o,"stroke",a.stroke,n)),V(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){a[l]!=null&&(o.style[l]=parseFloat(a[l]))}),V(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){a[l]!=null&&(o.style[l]=a[l])}),i&&(o.__selfStyle=s),a.lineDash&&(o.style.lineDash=ye(UP(a.lineDash),function(l){return parseFloat(l)})),(a.visibility==="hidden"||a.visibility==="collapse")&&(o.invisible=!0),a.display==="none"&&(o.ignore=!0)}function get(t,e){var n=e.__selfStyle;if(n){var r=n.textBaseline,i=r;!r||r==="auto"||r==="baseline"?i="alphabetic":r==="before-edge"||r==="text-before-edge"?i="top":r==="after-edge"||r==="text-after-edge"?i="bottom":(r==="central"||r==="mathematical")&&(i="middle"),t.style.textBaseline=i}var o=e.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&(a==="middle"&&(s="center"),t.style.textAlign=s)}}var met=/^url\(\s*#(.*?)\)/;function nU(t,e,n,r){var i=n&&n.match(met);if(i){var o=pa(i[1]);r.push([t,e,o]);return}return n==="none"&&(n=null),n}function yet(t,e){for(var n=0;n<e.length;n++){var r=e[n];r[0].style[r[1]]=t[r[2]]}}var bet=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function UP(t){return t.match(bet)||[]}var _et=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,iM=Math.PI/180;function Oet(t,e){var n=t.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=[],i=null;n.replace(_et,function(f,d,p){return r.push(d,p),""});for(var o=r.length-1;o>0;o-=2){var a=r[o],s=r[o-1],l=UP(a);switch(i=i||ao(),s){case"translate":us(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":dP(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Yc(i,i,-parseFloat(l[0])*iM,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*iM);el(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*iM);el(i,[1,c,0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5]);break}}e.setLocalTransform(i)}}var rU=/([^\s:;]+)\s*:\s*([^:;]+)/g;function Mce(t,e,n){var r=t.getAttribute("style");if(r){rU.lastIndex=0;for(var i;(i=rU.exec(r))!=null;){var o=i[1],a=ke(lC,o)?lC[o]:null;a&&(e[a]=i[2]);var s=ke(uC,o)?uC[o]:null;s&&(n[s]=i[2])}}}function wet(t,e,n){for(var r=0;r<Yj.length;r++){var i=Yj[r],o=t.getAttribute(i);o!=null&&(e[lC[i]]=o)}for(var r=0;r<qj.length;r++){var i=qj[r],o=t.getAttribute(i);o!=null&&(n[uC[i]]=o)}}function Ice(t,e){var n=e.width/t.width,r=e.height/t.height,i=Math.min(n,r);return{scale:i,x:-(t.x+t.width/2)*i+(e.x+e.width/2),y:-(t.y+t.height/2)*i+(e.y+e.height/2)}}function xet(t,e){var n=new vet;return n.parse(t,e)}var Cet=Be(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),Tet=function(){function t(e,n){this.type="geoSVG",this._usedGraphicMap=Be(),this._freedGraphics=[],this._mapName=e,this._parsedXML=Ece(n)}return t.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var n=$et(e.named),r=n.regions,i=n.regionsMap;this._regions=r,this._regionsMap=i}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},t.prototype._buildGraphic=function(e){var n,r;try{n=e&&xet(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},r=n.root,je(r!=null)}catch(m){throw new Error(`Invalid svg format
  347. `+m.message)}var i=new qe;i.add(r),i.isGeoSVGGraphicRoot=!0;var o=n.width,a=n.height,s=n.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,f=void 0,d=void 0;if(o!=null?(u=0,f=o):s&&(u=s.x,f=s.width),a!=null?(c=0,d=a):s&&(c=s.y,d=s.height),u==null||c==null){var p=r.getBoundingRect();u==null&&(u=p.x,f=p.width),c==null&&(c=p.y,d=p.height)}l=this._boundingRect=new at(u,c,f,d)}if(s){var v=Ice(s,l);r.scaleX=r.scaleY=v.scale,r.x=v.x,r.y=v.y}i.setClipPath(new Pt({shape:l.plain()}));var g=[];return V(n.named,function(m){Cet.get(m.svgNodeTagLower)!=null&&(g.push(m),Pet(m.el))}),{root:i,boundingRect:l,named:g}},t.prototype.useGraphic=function(e){var n=this._usedGraphicMap,r=n.get(e);return r||(r=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),n.set(e,r),r)},t.prototype.freeGraphic=function(e){var n=this._usedGraphicMap,r=n.get(e);r&&(n.removeKey(e),this._freedGraphics.push(r))},t}();function Pet(t){t.silent=!1,t.isGroup&&t.traverse(function(e){e.silent=!1})}function $et(t){var e=[],n=Be();return V(t,function(r){if(r.namedFrom==null){var i=new fqe(r.name,r.el);e.push(i),n.set(r.name,i)}}),{regions:e,regionsMap:n}}var gk=[126,25],iU="南海诸岛",qf=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var jf=0;jf<qf.length;jf++)for(var Op=0;Op<qf[jf].length;Op++)qf[jf][Op][0]/=10.5,qf[jf][Op][1]/=-10.5/.75,qf[jf][Op][0]+=gk[0],qf[jf][Op][1]+=gk[1];function Aet(t,e){if(t==="china"){for(var n=0;n<e.length;n++)if(e[n].name===iU)return;e.push(new $ue(iU,ye(qf,function(r){return{type:"polygon",exterior:r}}),gk))}}var Eet={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function Met(t,e){if(t==="china"){var n=Eet[e.name];if(n){var r=e.getCenter();r[0]+=n[0]/10.5,r[1]+=-n[1]/(10.5/.75),e.setCenter(r)}}}var Iet=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function Det(t,e){t==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:Iet[0]})}var Ret="name",ket=function(){function t(e,n,r){this.type="geoJSON",this._parsedMap=Be(),this._mapName=e,this._specialAreas=r,this._geoJSON=Let(n)}return t.prototype.load=function(e,n){n=n||Ret;var r=this._parsedMap.get(n);if(!r){var i=this._parseToRegions(n);r=this._parsedMap.set(n,{regions:i,boundingRect:Net(i)})}var o=Be(),a=[];return V(r.regions,function(s){var l=s.name;e&&ke(e,l)&&(s=s.cloneShallow(l=e[l])),a.push(s),o.set(l,s)}),{regions:a,boundingRect:r.boundingRect||new at(0,0,0,0),regionsMap:o}},t.prototype._parseToRegions=function(e){var n=this._mapName,r=this._geoJSON,i;try{i=r?ak(r,e):[]}catch(o){throw new Error(`Invalid geoJson format
  348. `+o.message)}return Aet(n,i),V(i,function(o){var a=o.name;Met(n,o),Det(n,o);var s=this._specialAreas&&this._specialAreas[a];s&&o.transformTo(s.left,s.top,s.width,s.height)},this),i},t.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},t}();function Net(t){for(var e,n=0;n<t.length;n++){var r=t[n].getBoundingRect();e=e||r.clone(),e.union(r)}return e}function Let(t){return Ie(t)?typeof JSON<"u"&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t}var e0=Be();const uu={registerMap:function(t,e,n){if(e.svg){var r=new Tet(t,e.svg);e0.set(t,r)}else{var i=e.geoJson||e.geoJSON;i&&!e.features?n=e.specialAreas:i=e;var r=new ket(t,i,n);e0.set(t,r)}},getGeoResource:function(t){return e0.get(t)},getMapForUser:function(t){var e=e0.get(t);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(t,e,n){var r=e0.get(t);if(!r){process.env.NODE_ENV!=="production"&&console.error("Map "+t+" not exists. The GeoJSON of the map must be provided.");return}return r.load(e,n)}};var Z5=["rect","circle","line","ellipse","polygon","polyline","path"],Bet=Be(Z5),Vet=Be(Z5.concat(["g"])),zet=Be(Z5.concat(["g"])),Dce=$t();function XO(t){var e=t.getItemStyle(),n=t.get("areaColor");return n!=null&&(e.fill=n),e}function oU(t){var e=t.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var Rce=function(){function t(e){var n=new qe;this.uid=kg("ec_map_draw"),this._controller=new E_(e.getZr()),this._controllerHost={target:n},this.group=n,n.add(this._regionsGroup=new qe),n.add(this._svgGroup=new qe)}return t.prototype.draw=function(e,n,r,i,o){var a=e.mainType==="geo",s=e.getData&&e.getData();a&&n.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===e&&(s=y.getData())});var l=e.coordinateSystem,u=this._regionsGroup,c=this.group,f=l.getTransformInfo(),d=f.raw,p=f.roam,v=!u.childAt(0)||o;v?(c.x=p.x,c.y=p.y,c.scaleX=p.scaleX,c.scaleY=p.scaleY,c.dirty()):kt(c,p,e);var g=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,m={api:r,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:g,isGeo:a,transformInfoRaw:d};l.resourceType==="geoJSON"?this._buildGeoJSON(m):l.resourceType==="geoSVG"&&this._buildSVG(m),this._updateController(e,n,r),this._updateMapSelectHandler(e,u,r,i)},t.prototype._buildGeoJSON=function(e){var n=this._regionsGroupByName=Be(),r=Be(),i=this._regionsGroup,o=e.transformInfoRaw,a=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function c(p,v){return v&&(p=v(p)),p&&[p[0]*o.scaleX+o.x,p[1]*o.scaleY+o.y]}function f(p){for(var v=[],g=!u&&l&&l.project,m=0;m<p.length;++m){var y=c(p[m],g);y&&v.push(y)}return v}function d(p){return{shape:{points:f(p)}}}i.removeAll(),V(e.geo.regions,function(p){var v=p.name,g=n.get(v),m=r.get(v)||{},y=m.dataIdx,b=m.regionModel;g||(g=n.set(v,new qe),i.add(g),y=s?s.indexOfName(v):null,b=e.isGeo?a.getRegionModel(v):s?s.getItemModel(y):null,r.set(v,{dataIdx:y,regionModel:b}));var O=[],w=[];V(p.geometries,function(T){if(T.type==="polygon"){var $=[T.exterior].concat(T.interiors||[]);u&&($=fU($,u)),V($,function(P){O.push(new Li(d(P)))})}else{var A=T.points;u&&(A=fU(A,u,!0)),V(A,function(P){w.push(new Bi(d(P)))})}});var x=c(p.getCenter(),l&&l.project);function S(T,$){if(T.length){var A=new TP({culling:!0,segmentIgnoreThreshold:1,shape:{paths:T}});g.add(A),aU(e,A,y,b),sU(e,A,v,b,a,y,x),$&&(oU(A),V(A.states,oU))}}S(O),S(w,!0)}),n.each(function(p,v){var g=r.get(v),m=g.dataIdx,y=g.regionModel;lU(e,p,v,y,a,m),uU(e,p,v,y,a),cU(e,p,v,y,a)},this)},t.prototype._buildSVG=function(e){var n=e.geo.map,r=e.transformInfoRaw;this._svgGroup.x=r.x,this._svgGroup.y=r.y,this._svgGroup.scaleX=r.scaleX,this._svgGroup.scaleY=r.scaleY,this._svgResourceChanged(n)&&(this._freeSVG(),this._useSVG(n));var i=this._svgDispatcherMap=Be(),o=!1;V(this._svgGraphicRecord.named,function(a){var s=a.name,l=e.mapOrGeoModel,u=e.data,c=a.svgNodeTagLower,f=a.el,d=u?u.indexOfName(s):null,p=l.getRegionModel(s);if(Bet.get(c)!=null&&f instanceof $a&&aU(e,f,d,p),f instanceof $a&&(f.culling=!0),f.z2EmphasisLift=0,!a.namedFrom&&(zet.get(c)!=null&&sU(e,f,s,p,l,d,null),lU(e,f,s,p,l,d),uU(e,f,s,p,l),Vet.get(c)!=null)){var v=cU(e,f,s,p,l);v==="self"&&(o=!0);var g=i.get(s)||i.set(s,[]);g.push(f)}},this),this._enableBlurEntireSVG(o,e)},t.prototype._enableBlurEntireSVG=function(e,n){if(e&&n.isGeo){var r=n.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),i=r.opacity;this._svgGraphicRecord.root.traverse(function(o){if(!o.isGroup){ch(o);var a=o.ensureState("blur").style||{};a.opacity==null&&i!=null&&(a.opacity=i),o.ensureState("emphasis")}})}},t.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},t.prototype.findHighDownDispatchers=function(e,n){if(e==null)return[];var r=n.coordinateSystem;if(r.resourceType==="geoJSON"){var i=this._regionsGroupByName;if(i){var o=i.get(e);return o?[o]:[]}}else if(r.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},t.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},t.prototype._useSVG=function(e){var n=uu.getGeoResource(e);if(n&&n.type==="geoSVG"){var r=n.useGraphic(this.uid);this._svgGroup.add(r.root),this._svgGraphicRecord=r,this._svgMapName=e}},t.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var n=uu.getGeoResource(e);n&&n.type==="geoSVG"&&n.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},t.prototype._updateController=function(e,n,r){var i=e.coordinateSystem,o=this._controller,a=this._controllerHost;a.zoomLimit=e.get("scaleLimit"),a.zoom=i.getZoom(),o.enable(e.get("roam")||!1);var s=e.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=e.id,u}o.off("pan").on("pan",function(u){this._mouseDownFlag=!1,j5(a,u.dx,u.dy),r.dispatchAction(he(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),o.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,U5(a,u.scale,u.originX,u.originY),r.dispatchAction(he(l(),{totalZoom:a.zoom,zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),o.setPointerChecker(function(u,c,f){return i.containPoint([c,f])&&!jP(u,r,e)})},t.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var n=e.getTextContent();n&&(n.ignore=Dce(n).ignore)})},t.prototype._updateMapSelectHandler=function(e,n,r,i){var o=this;n.off("mousedown"),n.off("click"),e.get("selectedMode")&&(n.on("mousedown",function(){o._mouseDownFlag=!0}),n.on("click",function(a){o._mouseDownFlag&&(o._mouseDownFlag=!1)}))},t}();function aU(t,e,n,r){var i=r.getModel("itemStyle"),o=r.getModel(["emphasis","itemStyle"]),a=r.getModel(["blur","itemStyle"]),s=r.getModel(["select","itemStyle"]),l=XO(i),u=XO(o),c=XO(s),f=XO(a),d=t.data;if(d){var p=d.getItemVisual(n,"style"),v=d.getItemVisual(n,"decal");t.isVisualEncodedByVisualMap&&p.fill&&(l.fill=p.fill),v&&(l.decal=ng(v,t.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=c,e.ensureState("blur").style=f,ch(e)}function sU(t,e,n,r,i,o,a){var s=t.data,l=t.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),o)),c=s&&s.getItemLayout(o);if(l||u||c&&c.showLabel){var f=l?n:o,d=void 0;(!s||o>=0)&&(d=i);var p=a?{normal:{align:"center",verticalAlign:"middle"}}:null;Jr(e,Cr(r),{labelFetcher:d,labelDataIndex:f,defaultText:n},p);var v=e.getTextContent();if(v&&(Dce(v).ignore=v.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function lU(t,e,n,r,i,o){t.data?t.data.setItemGraphicEl(o,e):Ke(e).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function uU(t,e,n,r,i){t.data||Dg({el:e,componentModel:i,itemName:n,itemTooltipOption:r.get("tooltip")})}function cU(t,e,n,r,i){e.highDownSilentOnTouch=!!i.get("selectedMode");var o=r.getModel("emphasis"),a=o.get("focus");return Bn(e,a,o.get("blurScope"),o.get("disabled")),t.isGeo&&hje(e,i,n),a}function fU(t,e,n){var r=[],i;function o(){i=[]}function a(){i.length&&(r.push(i),i=[])}var s=e({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!n&&s.polygonStart(),V(t,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!n&&s.polygonEnd(),r}var Fet=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i,o){if(!(o&&o.type==="mapToggleSelect"&&o.from===this.uid)){var a=this.group;if(a.removeAll(),!n.getHostGeoModel()){if(this._mapDraw&&o&&o.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),o&&o.type==="geoRoam"&&o.componentType==="series"&&o.seriesId===n.id){var s=this._mapDraw;s&&a.add(s.group)}else if(n.needsDrawMap){var s=this._mapDraw||new Rce(i);a.add(s.group),s.draw(n,r,i,this,o),this._mapDraw=s}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;n.get("showLegendSymbol")&&r.getComponent("legend")&&this._renderSymbols(n,r,i)}}},e.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},e.prototype._renderSymbols=function(n,r,i){var o=n.originalData,a=this.group;o.each(o.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=o.getItemLayout(l);if(!(!u||!u.point)){var c=u.point,f=u.offset,d=new _u({style:{fill:n.getData().getVisual("style").fill},shape:{cx:c[0]+f*9,cy:c[1],r:3},silent:!0,z2:8+(f?0:Ag+1)});if(!f){var p=n.mainSeries.getData(),v=o.getName(l),g=p.indexOfName(v),m=o.getItemModel(l),y=m.getModel("label"),b=p.getItemGraphicEl(g);Jr(d,Cr(m),{labelFetcher:{getFormattedLabel:function(O,w){return n.getFormattedLabel(g,w)}},defaultText:v}),d.disableLabelAnimation=!0,y.get("position")||d.setTextConfig({position:"bottom"}),b.onHoverStateChange=function(O){BS(d,O)}}a.add(d)}}})},e.type="map",e}(Kt),Wet=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.needsDrawMap=!1,n.seriesGroup=[],n.getTooltipPosition=function(r){if(r!=null){var i=this.getData().getName(r),o=this.coordinateSystem,a=o.getRegion(i);return a&&o.dataToPoint(a.getCenter())}},n}return e.prototype.getInitialData=function(n){for(var r=Hg(this,{coordDimensions:["value"],encodeDefaulter:nt(l5,this)}),i=Be(),o=[],a=0,s=r.count();a<s;a++){var l=r.getName(a);i.set(l,!0)}var u=uu.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return V(u.regions,function(c){var f=c.name;i.get(f)||o.push(f)}),r.appendValues([],o),r},e.prototype.getHostGeoModel=function(){var n=this.option.geoIndex;return n!=null?this.ecModel.getComponent("geo",n):null},e.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},e.prototype.getRawValue=function(n){var r=this.getData();return r.get(r.mapDimension("value"),n)},e.prototype.getRegionModel=function(n){var r=this.getData();return r.getItemModel(r.indexOfName(n))},e.prototype.formatTooltip=function(n,r,i){for(var o=this.getData(),a=this.getRawValue(n),s=o.getName(n),l=this.seriesGroup,u=[],c=0;c<l.length;c++){var f=l[c].originalData.indexOfName(s),d=o.mapDimension("value");isNaN(l[c].originalData.get(d,f))||u.push(l[c].name)}return Tr("section",{header:u.join(", "),noHeader:!u.length,blocks:[Tr("nameValue",{name:s,value:a})]})},e.prototype.setZoom=function(n){this.option.zoom=n},e.prototype.setCenter=function(n){this.option.center=n},e.prototype.getLegendIcon=function(n){var r=n.icon||"roundRect",i=Yn(r,0,0,n.itemWidth,n.itemHeight,n.itemStyle.fill);return i.setStyle(n.itemStyle),i.style.stroke="none",r.indexOf("empty")>-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(rn);function Qet(t,e){var n={};return V(t,function(r){r.each(r.mapDimension("value"),function(i,o){var a="ec-"+r.getName(o);n[a]=n[a]||[],isNaN(i)||n[a].push(i)})}),t[0].map(t[0].mapDimension("value"),function(r,i){for(var o="ec-"+t[0].getName(i),a=0,s=1/0,l=-1/0,u=n[o].length,c=0;c<u;c++)s=Math.min(s,n[o][c]),l=Math.max(l,n[o][c]),a+=n[o][c];var f;return e==="min"?f=s:e==="max"?f=l:e==="average"?f=a/u:f=a,u===0?NaN:f})}function Het(t){var e={};t.eachSeriesByType("map",function(n){var r=n.getHostGeoModel(),i=r?"o"+r.id:"i"+n.getMapType();(e[i]=e[i]||[]).push(n)}),V(e,function(n,r){for(var i=Qet(ye(n,function(a){return a.getData()}),n[0].get("mapValueCalculation")),o=0;o<n.length;o++)n[o].originalData=n[o].getData();for(var o=0;o<n.length;o++)n[o].seriesGroup=n,n[o].needsDrawMap=o===0&&!n[o].getHostGeoModel(),n[o].setData(i.cloneShallow()),n[o].mainSeries=n[0]})}function Get(t){var e={};t.eachSeriesByType("map",function(n){var r=n.getMapType();if(!(n.getHostGeoModel()||e[r])){var i={};V(n.seriesGroup,function(a){var s=a.coordinateSystem,l=a.originalData;a.get("showLegendSymbol")&&t.getComponent("legend")&&l.each(l.mapDimension("value"),function(u,c){var f=l.getName(c),d=s.getRegion(f);if(!(!d||isNaN(u))){var p=i[f]||0,v=s.dataToPoint(d.getCenter());i[f]=p+1,l.setItemLayout(c,{point:v,offset:p})}})});var o=n.getData();o.each(function(a){var s=o.getName(a),l=o.getItemLayout(a)||{};l.showLabel=!i[s],o.setItemLayout(a,l)}),e[r]=!0}})}var dU=Er,M_=function(t){ie(e,t);function e(n){var r=t.call(this)||this;return r.type="view",r.dimensions=["x","y"],r._roamTransformable=new Gl,r._rawTransformable=new Gl,r.name=n,r}return e.prototype.setBoundingRect=function(n,r,i,o){return this._rect=new at(n,r,i,o),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(n,r,i,o){this._transformTo(n,r,i,o),this._viewRect=new at(n,r,i,o)},e.prototype._transformTo=function(n,r,i,o){var a=this.getBoundingRect(),s=this._rawTransformable;s.transform=a.calculateTransform(new at(n,r,i,o));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},e.prototype.setCenter=function(n,r){n&&(this._center=[Me(n[0],r.getWidth()),Me(n[1],r.getHeight())],this._updateCenterAndZoom())},e.prototype.setZoom=function(n){n=n||1;var r=this.zoomLimit;r&&(r.max!=null&&(n=Math.min(r.max,n)),r.min!=null&&(n=Math.max(r.min,n))),this._zoom=n,this._updateCenterAndZoom()},e.prototype.getDefaultCenter=function(){var n=this.getBoundingRect(),r=n.x+n.width/2,i=n.y+n.height/2;return[r,i]},e.prototype.getCenter=function(){return this._center||this.getDefaultCenter()},e.prototype.getZoom=function(){return this._zoom||1},e.prototype.getRoamTransform=function(){return this._roamTransformable.getLocalTransform()},e.prototype._updateCenterAndZoom=function(){var n=this._rawTransformable.getLocalTransform(),r=this._roamTransformable,i=this.getDefaultCenter(),o=this.getCenter(),a=this.getZoom();o=Er([],o,n),i=Er([],i,n),r.originX=o[0],r.originY=o[1],r.x=i[0]-o[0],r.y=i[1]-o[1],r.scaleX=r.scaleY=a,this._updateTransform()},e.prototype._updateTransform=function(){var n=this._roamTransformable,r=this._rawTransformable;r.parent=n,n.updateTransform(),r.updateTransform(),fP(this.transform||(this.transform=[]),r.transform||ao()),this._rawTransform=r.getLocalTransform(),this.invTransform=this.invTransform||[],$h(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var n=this._rawTransformable,r=this._roamTransformable,i=new Gl;return i.transform=r.transform,i.decomposeTransform(),{roam:{x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY},raw:{x:n.x,y:n.y,scaleX:n.scaleX,scaleY:n.scaleY}}},e.prototype.getViewRect=function(){return this._viewRect},e.prototype.getViewRectAfterRoam=function(){var n=this.getBoundingRect().clone();return n.applyTransform(this.transform),n},e.prototype.dataToPoint=function(n,r,i){var o=r?this._rawTransform:this.transform;return i=i||[],o?dU(i,n,o):ii(i,n)},e.prototype.pointToData=function(n){var r=this.invTransform;return r?dU([],n,r):[n[0],n[1]]},e.prototype.convertToPixel=function(n,r,i){var o=hU(r);return o===this?o.dataToPoint(i):null},e.prototype.convertFromPixel=function(n,r,i){var o=hU(r);return o===this?o.pointToData(i):null},e.prototype.containPoint=function(n){return this.getViewRectAfterRoam().contain(n[0],n[1])},e.dimensions=["x","y"],e}(Gl);function hU(t){var e=t.seriesModel;return e?e.coordinateSystem:null}var jet={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},kce=["lng","lat"],Nce=function(t){ie(e,t);function e(n,r,i){var o=t.call(this,n)||this;o.dimensions=kce,o.type="geo",o._nameCoordMap=Be(),o.map=r;var a=i.projection,s=uu.load(r,i.nameMap,i.nameProperty),l=uu.getGeoResource(r),u=o.resourceType=l?l.type:null,c=o.regions=s.regions,f=jet[l.type];o._regionsMap=s.regionsMap,o.regions=s.regions,process.env.NODE_ENV!=="production"&&a&&(u==="geoSVG"&&(process.env.NODE_ENV!=="production"&&Mn("Map "+r+" with SVG source can't use projection. Only GeoJSON source supports projection."),a=null),a.project&&a.unproject||(process.env.NODE_ENV!=="production"&&Mn("project and unproject must be both provided in the projeciton."),a=null)),o.projection=a;var d;if(a)for(var p=0;p<c.length;p++){var v=c[p].getBoundingRect(a);d=d||v.clone(),d.union(v)}else d=s.boundingRect;return o.setBoundingRect(d.x,d.y,d.width,d.height),o.aspectScale=a?1:Je(i.aspectScale,f.aspectScale),o._invertLongitute=a?!1:f.invertLongitute,o}return e.prototype._transformTo=function(n,r,i,o){var a=this.getBoundingRect(),s=this._invertLongitute;a=a.clone(),s&&(a.y=-a.y-a.height);var l=this._rawTransformable;l.transform=a.calculateTransform(new at(n,r,i,o));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},e.prototype.getRegion=function(n){return this._regionsMap.get(n)},e.prototype.getRegionByCoord=function(n){for(var r=this.regions,i=0;i<r.length;i++){var o=r[i];if(o.type==="geoJSON"&&o.contain(n))return r[i]}},e.prototype.addGeoCoord=function(n,r){this._nameCoordMap.set(n,r)},e.prototype.getGeoCoord=function(n){var r=this._regionsMap.get(n);return this._nameCoordMap.get(n)||r&&r.getCenter()},e.prototype.dataToPoint=function(n,r,i){if(Ie(n)&&(n=this.getGeoCoord(n)),n){var o=this.projection;return o&&(n=o.project(n)),n&&this.projectedToPoint(n,r,i)}},e.prototype.pointToData=function(n){var r=this.projection;return r&&(n=r.unproject(n)),n&&this.pointToProjected(n)},e.prototype.pointToProjected=function(n){return t.prototype.pointToData.call(this,n)},e.prototype.projectedToPoint=function(n,r,i){return t.prototype.dataToPoint.call(this,n,r,i)},e.prototype.convertToPixel=function(n,r,i){var o=pU(r);return o===this?o.dataToPoint(i):null},e.prototype.convertFromPixel=function(n,r,i){var o=pU(r);return o===this?o.pointToData(i):null},e}(M_);Qn(Nce,M_);function pU(t){var e=t.geoModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",rr).models[0]||{}).coordinateSystem:null}const vU=Nce;function gU(t,e){var n=t.get("boundingCoords");if(n!=null){var r=n[0],i=n[1];if(!(isFinite(r[0])&&isFinite(r[1])&&isFinite(i[0])&&isFinite(i[1])))process.env.NODE_ENV!=="production"&&console.error("Invalid boundingCoords");else{var o=this.projection;if(o){var a=r[0],s=r[1],l=i[0],u=i[1];r=[1/0,1/0],i=[-1/0,-1/0];var c=function(S,T,$,A){for(var P=$-S,M=A-T,I=0;I<=100;I++){var R=I/100,L=o.project([S+P*R,T+M*R]);Ql(r,r,L),Hl(i,i,L)}};c(a,s,l,s),c(l,s,l,u),c(l,u,a,u),c(a,u,l,s)}this.setBoundingRect(r[0],r[1],i[0]-r[0],i[1]-r[1])}}var f=this.getBoundingRect(),d=t.get("layoutCenter"),p=t.get("layoutSize"),v=e.getWidth(),g=e.getHeight(),m=f.width/f.height*this.aspectScale,y=!1,b,O;d&&p&&(b=[Me(d[0],v),Me(d[1],g)],O=Me(p,Math.min(v,g)),!isNaN(b[0])&&!isNaN(b[1])&&!isNaN(O)?y=!0:process.env.NODE_ENV!=="production"&&console.warn("Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead."));var w;if(y)w={},m>1?(w.width=O,w.height=O/m):(w.height=O,w.width=O*m),w.y=b[1]-w.height/2,w.x=b[0]-w.width/2;else{var x=t.getBoxLayoutParams();x.aspect=m,w=ir(x,{width:v,height:g})}this.setViewRect(w.x,w.y,w.width,w.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}function Uet(t,e){V(e.get("geoCoord"),function(n,r){t.addGeoCoord(r,n)})}var Zet=function(){function t(){this.dimensions=kce}return t.prototype.create=function(e,n){var r=[];function i(a){return{nameProperty:a.get("nameProperty"),aspectScale:a.get("aspectScale"),projection:a.get("projection")}}e.eachComponent("geo",function(a,s){var l=a.get("map"),u=new vU(l+s,l,he({nameMap:a.get("nameMap")},i(a)));u.zoomLimit=a.get("scaleLimit"),r.push(u),a.coordinateSystem=u,u.model=a,u.resize=gU,u.resize(a,n)}),e.eachSeries(function(a){var s=a.get("coordinateSystem");if(s==="geo"){var l=a.get("geoIndex")||0;a.coordinateSystem=r[l]}});var o={};return e.eachSeriesByType("map",function(a){if(!a.getHostGeoModel()){var s=a.getMapType();o[s]=o[s]||[],o[s].push(a)}}),V(o,function(a,s){var l=ye(a,function(c){return c.get("nameMap")}),u=new vU(s,s,he({nameMap:lP(l)},i(a[0])));u.zoomLimit=Zn.apply(null,ye(a,function(c){return c.get("scaleLimit")})),r.push(u),u.resize=gU,u.resize(a[0],n),V(a,function(c){c.coordinateSystem=u,Uet(u,c)})}),r},t.prototype.getFilledRegions=function(e,n,r,i){for(var o=(e||[]).slice(),a=Be(),s=0;s<o.length;s++)a.set(o[s].name,o[s]);var l=uu.load(n,r,i);return V(l.regions,function(u){var c=u.name;!a.get(c)&&o.push({name:c})}),o},t}(),Lce=new Zet,Xet=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r,i){var o=uu.getGeoResource(n.map);if(o&&o.type==="geoJSON"){var a=n.itemStyle=n.itemStyle||{};"color"in a||(a.color="#eee")}this.mergeDefaultAndTheme(n,i),sh(n,"label",["show"])},e.prototype.optionUpdated=function(){var n=this,r=this.option;r.regions=Lce.getFilledRegions(r.regions,r.map,r.nameMap,r.nameProperty);var i={};this._optionModelMap=Ta(r.regions||[],function(o,a){var s=a.name;return s&&(o.set(s,new tn(a,n,n.ecModel)),a.selected&&(i[s]=!0)),o},Be()),r.selectedMap||(r.selectedMap=i)},e.prototype.getRegionModel=function(n){return this._optionModelMap.get(n)||new tn(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(n,r){var i=this.getRegionModel(n),o=r==="normal"?i.get(["label","formatter"]):i.get(["emphasis","label","formatter"]),a={name:n};if(Fe(o))return a.status=r,o(a);if(Ie(o))return o.replace("{a}",n??"")},e.prototype.setZoom=function(n){this.option.zoom=n},e.prototype.setCenter=function(n){this.option.center=n},e.prototype.select=function(n){var r=this.option,i=r.selectedMode;if(i){i!=="multiple"&&(r.selectedMap=null);var o=r.selectedMap||(r.selectedMap={});o[n]=!0}},e.prototype.unSelect=function(n){var r=this.option.selectedMap;r&&(r[n]=!1)},e.prototype.toggleSelected=function(n){this[this.isSelected(n)?"unSelect":"select"](n)},e.prototype.isSelected=function(n){var r=this.option.selectedMap;return!!(r&&r[n])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e}(pt);function mU(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function X5(t,e,n,r){var i=t.getZoom(),o=t.getCenter(),a=e.zoom,s=t.projectedToPoint?t.projectedToPoint(o):t.dataToPoint(o);if(e.dx!=null&&e.dy!=null&&(s[0]-=e.dx,s[1]-=e.dy,t.setCenter(mU(t,s),r)),a!=null){if(n){var l=n.min||0,u=n.max||1/0;a=Math.max(Math.min(i*a,u),l)/i}t.scaleX*=a,t.scaleY*=a;var c=(e.originX-t.x)*(a-1),f=(e.originY-t.y)*(a-1);t.x-=c,t.y-=f,t.updateTransform(),t.setCenter(mU(t,s),r),t.setZoom(a*i)}return{center:t.getCenter(),zoom:t.getZoom()}}var Yet=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.focusBlurEnabled=!0,n}return e.prototype.init=function(n,r){this._api=r},e.prototype.render=function(n,r,i,o){if(this._model=n,!n.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new Rce(i));var a=this._mapDraw;a.draw(n,r,i,this,o),a.group.on("click",this._handleRegionClick,this),a.group.silent=n.get("silent"),this.group.add(a.group),this.updateSelectStatus(n,r,i)},e.prototype._handleRegionClick=function(n){var r;wd(n.target,function(i){return(r=Ke(i).eventData)!=null},!0),r&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:r.name})},e.prototype.updateSelectStatus=function(n,r,i){var o=this;this._mapDraw.group.traverse(function(a){var s=Ke(a).eventData;if(s)return o._model.isSelected(s.name)?i.enterSelect(a):i.leaveSelect(a),!0})},e.prototype.findHighDownDispatchers=function(n){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(n,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e}(hn);function qet(t,e,n){uu.registerMap(t,e,n)}function Bce(t){t.registerCoordinateSystem("geo",Lce),t.registerComponentModel(Xet),t.registerComponentView(Yet),t.registerImpl("registerMap",qet),t.registerImpl("getMap",function(n){return uu.getMapForUser(n)});function e(n,r){r.update="geo:updateSelectStatus",t.registerAction(r,function(i,o){var a={},s=[];return o.eachComponent({mainType:"geo",query:i},function(l){l[n](i.name);var u=l.coordinateSystem;V(u.regions,function(f){a[f.name]=l.isSelected(f.name)||!1});var c=[];V(a,function(f,d){a[d]&&c.push(d)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:a,allSelected:s,name:i.name}})}e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),t.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(n,r,i){var o=n.componentType||"series";r.eachComponent({mainType:o,query:n},function(a){var s=a.coordinateSystem;if(s.type==="geo"){var l=X5(s,n,a.get("scaleLimit"),i);a.setCenter&&a.setCenter(l.center),a.setZoom&&a.setZoom(l.zoom),o==="series"&&V(a.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function Ket(t){vt(Bce),t.registerChartView(Fet),t.registerSeriesModel(Wet),t.registerLayout(Get),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,Het),Nle("map",t.registerAction)}function Jet(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n=[e],r,i;r=n.pop();)if(i=r.children,r.isExpand&&i.length)for(var o=i.length,a=o-1;a>=0;a--){var s=i[a];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:a,thread:null},n.push(s)}}function ett(t,e){var n=t.isExpand?t.children:[],r=t.parentNode.children,i=t.hierNode.i?r[t.hierNode.i-1]:null;if(n.length){rtt(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;i?(t.hierNode.prelim=i.hierNode.prelim+e(t,i),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else i&&(t.hierNode.prelim=i.hierNode.prelim+e(t,i));t.parentNode.hierNode.defaultAncestor=itt(t,i,t.parentNode.hierNode.defaultAncestor||r[0],e)}function ttt(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function yU(t){return arguments.length?t:stt}function I0(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function ntt(t,e){return ir(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function rtt(t){for(var e=t.children,n=e.length,r=0,i=0;--n>=0;){var o=e[n];o.hierNode.prelim+=r,o.hierNode.modifier+=r,i+=o.hierNode.change,r+=o.hierNode.shift+i}}function itt(t,e,n,r){if(e){for(var i=t,o=t,a=o.parentNode.children[0],s=e,l=i.hierNode.modifier,u=o.hierNode.modifier,c=a.hierNode.modifier,f=s.hierNode.modifier;s=oM(s),o=aM(o),s&&o;){i=oM(i),a=aM(a),i.hierNode.ancestor=t;var d=s.hierNode.prelim+f-o.hierNode.prelim-u+r(s,o);d>0&&(att(ott(s,t,n),t,d),u+=d,l+=d),f+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=i.hierNode.modifier,c+=a.hierNode.modifier}s&&!oM(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=f-l),o&&!aM(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,n=t)}return n}function oM(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function aM(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function ott(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function att(t,e,n){var r=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=r,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=r}function stt(t,e){return t.parentNode===e.parentNode?1:2}var ltt=function(){function t(){this.parentPoint=[],this.childPoints=[]}return t}(),utt=function(t){ie(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new ltt},e.prototype.buildPath=function(n,r){var i=r.childPoints,o=i.length,a=r.parentPoint,s=i[0],l=i[o-1];if(o===1){n.moveTo(a[0],a[1]),n.lineTo(s[0],s[1]);return}var u=r.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,d=Me(r.forkPosition,1),p=[];p[c]=a[c],p[f]=a[f]+(l[f]-a[f])*d,n.moveTo(a[0],a[1]),n.lineTo(p[0],p[1]),n.moveTo(s[0],s[1]),p[c]=s[c],n.lineTo(p[0],p[1]),p[c]=l[c],n.lineTo(p[0],p[1]),n.lineTo(l[0],l[1]);for(var v=1;v<o-1;v++){var g=i[v];n.moveTo(g[0],g[1]),p[c]=g[c],n.lineTo(p[0],p[1])}},e}(mt),ctt=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._mainGroup=new qe,n}return e.prototype.init=function(n,r){this._controller=new E_(r.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(n,r,i){var o=n.getData(),a=n.layoutInfo,s=this._mainGroup,l=n.get("layout");l==="radial"?(s.x=a.x+a.width/2,s.y=a.y+a.height/2):(s.x=a.x,s.y=a.y),this._updateViewCoordSys(n,i),this._updateController(n,r,i);var u=this._data;o.diff(u).add(function(c){bU(o,c)&&_U(o,c,null,s,n)}).update(function(c,f){var d=u.getItemGraphicEl(f);if(!bU(o,c)){d&&wU(u,f,d,s,n);return}_U(o,c,d,s,n)}).remove(function(c){var f=u.getItemGraphicEl(c);f&&wU(u,c,f,s,n)}).execute(),this._nodeScaleRatio=n.get("nodeScaleRatio"),this._updateNodeAndLinkScale(n),n.get("expandAndCollapse")===!0&&o.eachItemGraphicEl(function(c,f){c.off("click").on("click",function(){i.dispatchAction({type:"treeExpandAndCollapse",seriesId:n.id,dataIndex:f})})}),this._data=o},e.prototype._updateViewCoordSys=function(n,r){var i=n.getData(),o=[];i.each(function(f){var d=i.getItemLayout(f);d&&!isNaN(d.x)&&!isNaN(d.y)&&o.push([+d.x,+d.y])});var a=[],s=[];OP(o,a,s);var l=this._min,u=this._max;s[0]-a[0]===0&&(a[0]=l?l[0]:a[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-a[1]===0&&(a[1]=l?l[1]:a[1]-1,s[1]=u?u[1]:s[1]+1);var c=n.coordinateSystem=new M_;c.zoomLimit=n.get("scaleLimit"),c.setBoundingRect(a[0],a[1],s[0]-a[0],s[1]-a[1]),c.setCenter(n.get("center"),r),c.setZoom(n.get("zoom")),this.group.attr({x:c.x,y:c.y,scaleX:c.scaleX,scaleY:c.scaleY}),this._min=a,this._max=s},e.prototype._updateController=function(n,r,i){var o=this,a=this._controller,s=this._controllerHost,l=this.group;a.setPointerChecker(function(u,c,f){var d=l.getBoundingRect();return d.applyTransform(l.transform),d.contain(c,f)&&!jP(u,i,n)}),a.enable(n.get("roam")),s.zoomLimit=n.get("scaleLimit"),s.zoom=n.coordinateSystem.getZoom(),a.off("pan").off("zoom").on("pan",function(u){j5(s,u.dx,u.dy),i.dispatchAction({seriesId:n.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){U5(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:n.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),o._updateNodeAndLinkScale(n),i.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(n){var r=n.getData(),i=this._getNodeGlobalScale(n);r.eachItemGraphicEl(function(o,a){o.setSymbolScale(i)})},e.prototype._getNodeGlobalScale=function(n){var r=n.coordinateSystem;if(r.type!=="view")return 1;var i=this._nodeScaleRatio,o=r.scaleX||1,a=r.getZoom(),s=(a-1)*i+1;return s/o},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype.remove=function(){this._mainGroup.removeAll(),this._data=null},e.type="tree",e}(Kt);function bU(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)}function _U(t,e,n,r,i){var o=!n,a=t.tree.getNodeByDataIndex(e),s=a.getModel(),l=a.getVisual("style").fill,u=a.isExpand===!1&&a.children.length!==0?l:"#fff",c=t.tree.root,f=a.parentNode===c?a:a.parentNode||a,d=t.getItemGraphicEl(f.dataIndex),p=f.getLayout(),v=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:p,g=a.getLayout();o?(n=new S_(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.x=v.x,n.y=v.y):n.updateData(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=g.rawX,n.__radialRawY=g.rawY,r.add(n),t.setItemGraphicEl(e,n),n.__oldX=n.x,n.__oldY=n.y,kt(n,{x:g.x,y:g.y},i);var m=n.getSymbolPath();if(i.get("layout")==="radial"){var y=c.children[0],b=y.getLayout(),O=y.children.length,w=void 0,x=void 0;if(g.x===b.x&&a.isExpand===!0&&y.children.length){var S={x:(y.children[0].getLayout().x+y.children[O-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[O-1].getLayout().y)/2};w=Math.atan2(S.y-b.y,S.x-b.x),w<0&&(w=Math.PI*2+w),x=S.x<b.x,x&&(w=w-Math.PI)}else w=Math.atan2(g.y-b.y,g.x-b.x),w<0&&(w=Math.PI*2+w),a.children.length===0||a.children.length!==0&&a.isExpand===!1?(x=g.x<b.x,x&&(w=w-Math.PI)):(x=g.x>b.x,x||(w=w-Math.PI));var T=x?"left":"right",$=s.getModel("label"),A=$.get("rotate"),P=A*(Math.PI/180),M=m.getTextContent();M&&(m.setTextConfig({position:$.get("position")||T,rotation:A==null?-w:P,origin:"center"}),M.setStyle("verticalAlign","middle"))}var I=s.get(["emphasis","focus"]),R=I==="relative"?qy(a.getAncestorsIndices(),a.getDescendantIndices()):I==="ancestor"?a.getAncestorsIndices():I==="descendant"?a.getDescendantIndices():null;R&&(Ke(n).focus=R),ftt(i,a,c,n,v,p,g,r),n.__edge&&(n.onHoverStateChange=function(L){if(L!=="blur"){var D=a.parentNode&&t.getItemGraphicEl(a.parentNode.dataIndex);D&&D.hoverState===g_||BS(n.__edge,L)}})}function ftt(t,e,n,r,i,o,a,s){var l=e.getModel(),u=t.get("edgeShape"),c=t.get("layout"),f=t.getOrient(),d=t.get(["lineStyle","curveness"]),p=t.get("edgeForkPosition"),v=l.getModel("lineStyle").getLineStyle(),g=r.__edge;if(u==="curve")e.parentNode&&e.parentNode!==n&&(g||(g=r.__edge=new y_({shape:mk(c,f,d,i,i)})),kt(g,{shape:mk(c,f,d,o,a)},t));else if(u==="polyline"){if(c==="orthogonal"){if(e!==n&&e.children&&e.children.length!==0&&e.isExpand===!0){for(var m=e.children,y=[],b=0;b<m.length;b++){var O=m[b].getLayout();y.push([O.x,O.y])}g||(g=r.__edge=new utt({shape:{parentPoint:[a.x,a.y],childPoints:[[a.x,a.y]],orient:f,forkPosition:p}})),kt(g,{shape:{parentPoint:[a.x,a.y],childPoints:y}},t)}}else if(process.env.NODE_ENV!=="production")throw new Error("The polyline edgeShape can only be used in orthogonal layout")}g&&!(u==="polyline"&&!e.isExpand)&&(g.useStyle(Ge({strokeNoScale:!0,fill:null},v)),Kr(g,l,"lineStyle"),ch(g),s.add(g))}function OU(t,e,n,r,i){var o=e.tree.root,a=Vce(o,t),s=a.source,l=a.sourceLayout,u=e.getItemGraphicEl(t.dataIndex);if(u){var c=e.getItemGraphicEl(s.dataIndex),f=c.__edge,d=u.__edge||(s.isExpand===!1||s.children.length===1?f:void 0),p=r.get("edgeShape"),v=r.get("layout"),g=r.get("orient"),m=r.get(["lineStyle","curveness"]);d&&(p==="curve"?Rc(d,{shape:mk(v,g,m,l,l),style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:i}):p==="polyline"&&r.get("layout")==="orthogonal"&&Rc(d,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:i}))}}function Vce(t,e){for(var n=e.parentNode===t?e:e.parentNode||e,r;r=n.getLayout(),r==null;)n=n.parentNode===t?n:n.parentNode||n;return{source:n,sourceLayout:r}}function wU(t,e,n,r,i){var o=t.tree.getNodeByDataIndex(e),a=t.tree.root,s=Vce(a,o).sourceLayout,l={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};Rc(n,{x:s.x+1,y:s.y+1},i,{cb:function(){r.remove(n),t.setItemGraphicEl(e,null)},removeOpt:l}),n.fadeOut(null,t.hostModel,{fadeLabel:!0,animation:l}),o.children.forEach(function(u){OU(u,t,r,i,l)}),OU(o,t,r,i,l)}function mk(t,e,n,r,i){var o,a,s,l,u,c,f,d;if(t==="radial"){u=r.rawX,f=r.rawY,c=i.rawX,d=i.rawY;var p=I0(u,f),v=I0(u,f+(d-f)*n),g=I0(c,d+(f-d)*n),m=I0(c,d);return{x1:p.x||0,y1:p.y||0,x2:m.x||0,y2:m.y||0,cpx1:v.x||0,cpy1:v.y||0,cpx2:g.x||0,cpy2:g.y||0}}else u=r.x,f=r.y,c=i.x,d=i.y,(e==="LR"||e==="RL")&&(o=u+(c-u)*n,a=f,s=c+(u-c)*n,l=d),(e==="TB"||e==="BT")&&(o=u,a=f+(d-f)*n,s=c,l=d+(f-d)*n);return{x1:u,y1:f,x2:c,y2:d,cpx1:o,cpy1:a,cpx2:s,cpy2:l}}var ba=$t();function zce(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,Fce(e,n,t),V(n,function(r){V(e.TRANSFERABLE_METHODS,function(i){r.wrapMethod(i,nt(dtt,t))})}),e.wrapMethod("cloneShallow",nt(ptt,t)),V(e.CHANGABLE_METHODS,function(r){e.wrapMethod(r,nt(htt,t))}),je(n[e.dataType]===e)}function dtt(t,e){if(mtt(this)){var n=he({},ba(this).datas);n[this.dataType]=e,Fce(e,n,t)}else Y5(e,this.dataType,ba(this).mainData,t);return e}function htt(t,e){return t.struct&&t.struct.update(),e}function ptt(t,e){return V(ba(e).datas,function(n,r){n!==e&&Y5(n.cloneShallow(),r,e,t)}),e}function vtt(t){var e=ba(this).mainData;return t==null||e==null?e:ba(e).datas[t]}function gtt(){var t=ba(this).mainData;return t==null?[{data:t}]:ye(bt(ba(t).datas),function(e){return{type:e,data:ba(t).datas[e]}})}function mtt(t){return ba(t).mainData===t}function Fce(t,e,n){ba(t).datas={},V(e,function(r,i){Y5(r,i,t,n)})}function Y5(t,e,n,r){ba(n).datas[e]=t,ba(t).mainData=n,t.dataType=e,r.struct&&(t[r.structAttr]=r.struct,r.struct[r.datasAttr[e]]=t),t.getLinkedData=vtt,t.getLinkedDataAll=gtt}var ytt=function(){function t(e,n){this.depth=0,this.height=0,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.isExpand=!1,this.name=e||"",this.hostTree=n}return t.prototype.isRemoved=function(){return this.dataIndex<0},t.prototype.eachNode=function(e,n,r){Fe(e)&&(r=n,n=e,e=null),e=e||{},Ie(e)&&(e={order:e});var i=e.order||"preorder",o=this[e.attr||"children"],a;i==="preorder"&&(a=n.call(r,this));for(var s=0;!a&&s<o.length;s++)o[s].eachNode(e,n,r);i==="postorder"&&n.call(r,this)},t.prototype.updateDepthAndHeight=function(e){var n=0;this.depth=e;for(var r=0;r<this.children.length;r++){var i=this.children[r];i.updateDepthAndHeight(e+1),i.height>n&&(n=i.height)}this.height=n+1},t.prototype.getNodeById=function(e){if(this.getId()===e)return this;for(var n=0,r=this.children,i=r.length;n<i;n++){var o=r[n].getNodeById(e);if(o)return o}},t.prototype.contains=function(e){if(e===this)return!0;for(var n=0,r=this.children,i=r.length;n<i;n++){var o=r[n].contains(e);if(o)return o}},t.prototype.getAncestors=function(e){for(var n=[],r=e?this:this.parentNode;r;)n.push(r),r=r.parentNode;return n.reverse(),n},t.prototype.getAncestorsIndices=function(){for(var e=[],n=this;n;)e.push(n.dataIndex),n=n.parentNode;return e.reverse(),e},t.prototype.getDescendantIndices=function(){var e=[];return this.eachNode(function(n){e.push(n.dataIndex)}),e},t.prototype.getValue=function(e){var n=this.hostTree.data;return n.getStore().get(n.getDimensionIndex(e||"value"),this.dataIndex)},t.prototype.setLayout=function(e,n){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,n)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(e){if(!(this.dataIndex<0)){var n=this.hostTree,r=n.data.getItemModel(this.dataIndex);return r.getModel(e)}},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(e,n){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,n)},t.prototype.getVisual=function(e){return this.hostTree.data.getItemVisual(this.dataIndex,e)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var e=this.parentNode.children,n=0;n<e.length;++n)if(e[n]===this)return n;return-1}return-1},t.prototype.isAncestorOf=function(e){for(var n=e.parentNode;n;){if(n===this)return!0;n=n.parentNode}return!1},t.prototype.isDescendantOf=function(e){return e!==this&&e.isAncestorOf(this)},t}(),q5=function(){function t(e){this.type="tree",this._nodes=[],this.hostModel=e}return t.prototype.eachNode=function(e,n,r){this.root.eachNode(e,n,r)},t.prototype.getNodeByDataIndex=function(e){var n=this.data.getRawIndex(e);return this._nodes[n]},t.prototype.getNodeById=function(e){return this.root.getNodeById(e)},t.prototype.update=function(){for(var e=this.data,n=this._nodes,r=0,i=n.length;r<i;r++)n[r].dataIndex=-1;for(var r=0,i=e.count();r<i;r++)n[e.getRawIndex(r)].dataIndex=r},t.prototype.clearLayouts=function(){this.data.clearItemLayouts()},t.createTree=function(e,n,r){var i=new t(n),o=[],a=1;s(e);function s(c,f){var d=c.value;a=Math.max(a,ve(d)?d.length:1),o.push(c);var p=new ytt(ur(c.name,""),i);f?btt(p,f):i.root=p,i._nodes.push(p);var v=c.children;if(v)for(var g=0;g<v.length;g++)s(v[g],p)}i.root.updateDepthAndHeight(0);var l=Fg(o,{coordDimensions:["value"],dimensionsCount:a}).dimensions,u=new fi(l,n);return u.initData(o),r&&r(u),zce({mainData:u,struct:i,structAttr:"tree"}),i.update(),i},t}();function btt(t,e){var n=e.children;t.parentNode!==e&&(n.push(t),t.parentNode=e)}function mb(t,e,n){if(t&&st(e,t.type)>=0){var r=n.getData().tree.root,i=t.targetNode;if(Ie(i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var o=t.targetNodeId;if(o!=null&&(i=r.getNodeById(o)))return{node:i}}}function Wce(t){for(var e=[];t;)t=t.parentNode,t&&e.push(t);return e.reverse()}function K5(t,e){var n=Wce(t);return st(n,e)>=0}function ZP(t,e){for(var n=[];t;){var r=t.dataIndex;n.push({name:t.name,dataIndex:r,value:e.getRawValue(r)}),t=t.parentNode}return n.reverse(),n}var _tt=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.hasSymbolVisual=!0,n.ignoreStyleOnData=!0,n}return e.prototype.getInitialData=function(n){var r={name:n.name,children:n.data},i=n.leaves||{},o=new tn(i,this,this.ecModel),a=q5.createTree(r,this,s);function s(f){f.wrapMethod("getItemModel",function(d,p){var v=a.getNodeByDataIndex(p);return v&&v.children.length&&v.isExpand||(d.parentModel=o),d})}var l=0;a.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=n.expandAndCollapse,c=u&&n.initialTreeDepth>=0?n.initialTreeDepth:l;return a.root.eachNode("preorder",function(f){var d=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=d&&d.collapsed!=null?!d.collapsed:f.depth<=c}),a.data},e.prototype.getOrient=function(){var n=this.get("orient");return n==="horizontal"?n="LR":n==="vertical"&&(n="TB"),n},e.prototype.setZoom=function(n){this.option.zoom=n},e.prototype.setCenter=function(n){this.option.center=n},e.prototype.formatTooltip=function(n,r,i){for(var o=this.getData().tree,a=o.root.children[0],s=o.getNodeByDataIndex(n),l=s.getValue(),u=s.name;s&&s!==a;)u=s.parentNode.name+"."+u,s=s.parentNode;return Tr("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},e.prototype.getDataParams=function(n){var r=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(n);return r.treeAncestors=ZP(i,this),r.collapsed=!i.isExpand,r},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(rn);function Ott(t,e,n){for(var r=[t],i=[],o;o=r.pop();)if(i.push(o),o.isExpand){var a=o.children;if(a.length)for(var s=0;s<a.length;s++)r.push(a[s])}for(;o=i.pop();)e(o,n)}function t0(t,e){for(var n=[t],r;r=n.pop();)if(e(r),r.isExpand){var i=r.children;if(i.length)for(var o=i.length-1;o>=0;o--)n.push(i[o])}}function wtt(t,e){t.eachSeriesByType("tree",function(n){xtt(n,e)})}function xtt(t,e){var n=ntt(t,e);t.layoutInfo=n;var r=t.get("layout"),i=0,o=0,a=null;r==="radial"?(i=2*Math.PI,o=Math.min(n.height,n.width)/2,a=yU(function(O,w){return(O.parentNode===w.parentNode?1:2)/O.depth})):(i=n.width,o=n.height,a=yU());var s=t.getData().tree.root,l=s.children[0];if(l){Jet(s),Ott(l,ett,a),s.hierNode.modifier=-l.hierNode.prelim,t0(l,ttt);var u=l,c=l,f=l;t0(l,function(O){var w=O.getLayout().x;w<u.getLayout().x&&(u=O),w>c.getLayout().x&&(c=O),O.depth>f.depth&&(f=O)});var d=u===c?1:a(u,c)/2,p=d-u.getLayout().x,v=0,g=0,m=0,y=0;if(r==="radial")v=i/(c.getLayout().x+d+p),g=o/(f.depth-1||1),t0(l,function(O){m=(O.getLayout().x+p)*v,y=(O.depth-1)*g;var w=I0(m,y);O.setLayout({x:w.x,y:w.y,rawX:m,rawY:y},!0)});else{var b=t.getOrient();b==="RL"||b==="LR"?(g=o/(c.getLayout().x+d+p),v=i/(f.depth-1||1),t0(l,function(O){y=(O.getLayout().x+p)*g,m=b==="LR"?(O.depth-1)*v:i-(O.depth-1)*v,O.setLayout({x:m,y},!0)})):(b==="TB"||b==="BT")&&(v=i/(c.getLayout().x+d+p),g=o/(f.depth-1||1),t0(l,function(O){m=(O.getLayout().x+p)*v,y=b==="TB"?(O.depth-1)*g:o-(O.depth-1)*g,O.setLayout({x:m,y},!0)}))}}}function Stt(t){t.eachSeriesByType("tree",function(e){var n=e.getData(),r=n.tree;r.eachNode(function(i){var o=i.getModel(),a=o.getModel("itemStyle").getItemStyle(),s=n.ensureUniqueItemVisual(i.dataIndex,"style");he(s,a)})})}function Ctt(t){t.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(e,n){n.eachComponent({mainType:"series",subType:"tree",query:e},function(r){var i=e.dataIndex,o=r.getData().tree,a=o.getNodeByDataIndex(i);a.isExpand=!a.isExpand})}),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,n,r){n.eachComponent({mainType:"series",subType:"tree",query:e},function(i){var o=i.coordinateSystem,a=X5(o,e,void 0,r);i.setCenter&&i.setCenter(a.center),i.setZoom&&i.setZoom(a.zoom)})})}function Ttt(t){t.registerChartView(ctt),t.registerSeriesModel(_tt),t.registerLayout(wtt),t.registerVisual(Stt),Ctt(t)}var xU=["treemapZoomToNode","treemapRender","treemapMove"];function Ptt(t){for(var e=0;e<xU.length;e++)t.registerAction({type:xU[e],update:"updateView"},zn);t.registerAction({type:"treemapRootToNode",update:"updateView"},function(n,r){r.eachComponent({mainType:"series",subType:"treemap",query:n},i);function i(o,a){var s=["treemapZoomToNode","treemapRootToNode"],l=mb(n,s,o);if(l){var u=o.getViewRoot();u&&(n.direction=K5(u,l.node)?"rollUp":"drillDown"),o.resetViewRoot(l.node)}}})}function Qce(t){var e=t.getData(),n=e.tree,r={};n.eachNode(function(i){for(var o=i;o&&o.depth>1;)o=o.parentNode;var a=GR(t.ecModel,o.name||o.dataIndex+"",r);i.setVisual("decal",a)})}var $tt=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return e.prototype.getInitialData=function(n,r){var i={name:n.name,children:n.data};Hce(i);var o=n.levels||[],a=this.designatedVisualItemStyle={},s=new tn({itemStyle:a},this,r);o=n.levels=Att(o,r);var l=ye(o||[],function(f){return new tn(f,s,r)},this),u=q5.createTree(i,this,c);function c(f){f.wrapMethod("getItemModel",function(d,p){var v=u.getNodeByDataIndex(p),g=v?l[v.depth]:null;return d.parentModel=g||s,d})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(n,r,i){var o=this.getData(),a=this.getRawValue(n),s=o.getName(n);return Tr("nameValue",{name:s,value:a})},e.prototype.getDataParams=function(n){var r=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(n);return r.treeAncestors=ZP(i,this),r.treePathInfo=r.treeAncestors,r},e.prototype.setLayoutInfo=function(n){this.layoutInfo=this.layoutInfo||{},he(this.layoutInfo,n)},e.prototype.mapIdToIndex=function(n){var r=this._idIndexMap;r||(r=this._idIndexMap=Be(),this._idIndexMapCount=0);var i=r.get(n);return i==null&&r.set(n,i=this._idIndexMapCount++),i},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(n){n?this._viewRoot=n:n=this._viewRoot;var r=this.getRawData().tree.root;(!n||n!==r&&!r.contains(n))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Qce(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.32*.32,scaleLimit:null,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(rn);function Hce(t){var e=0;V(t.children,function(r){Hce(r);var i=r.value;ve(i)&&(i=i[0]),e+=i});var n=t.value;ve(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=e),n<0&&(n=0),ve(t.value)?t.value[0]=n:t.value=n}function Att(t,e){var n=nn(e.get("color")),r=nn(e.get(["aria","decal","decals"]));if(n){t=t||[];var i,o;V(t,function(s){var l=new tn(s),u=l.get("color"),c=l.get("decal");(l.get(["itemStyle","color"])||u&&u!=="none")&&(i=!0),(l.get(["itemStyle","decal"])||c&&c!=="none")&&(o=!0)});var a=t[0]||(t[0]={});return i||(a.color=n.slice()),!o&&r&&(a.decal=r.slice()),t}}var Ett=8,SU=8,sM=5,Mtt=function(){function t(e){this.group=new qe,e.add(this.group)}return t.prototype.render=function(e,n,r,i){var o=e.getModel("breadcrumb"),a=this.group;if(a.removeAll(),!(!o.get("show")||!r)){var s=o.getModel("itemStyle"),l=o.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),f={pos:{left:o.get("left"),right:o.get("right"),top:o.get("top"),bottom:o.get("bottom")},box:{width:n.getWidth(),height:n.getHeight()},emptyItemWidth:o.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,f,u),this._renderContent(e,f,s,l,u,c,i),RP(a,f.pos,f.box)}},t.prototype._prepare=function(e,n,r){for(var i=e;i;i=i.parentNode){var o=ur(i.getModel().get("name"),""),a=r.getTextRect(o),s=Math.max(a.width+Ett*2,n.emptyItemWidth);n.totalWidth+=s+SU,n.renderList.push({node:i,text:o,width:s})}},t.prototype._renderContent=function(e,n,r,i,o,a,s){for(var l=0,u=n.emptyItemWidth,c=e.get(["breadcrumb","height"]),f=yUe(n.pos,n.box),d=n.totalWidth,p=n.renderList,v=i.getModel("itemStyle").getItemStyle(),g=p.length-1;g>=0;g--){var m=p[g],y=m.node,b=m.width,O=m.text;d>f.width&&(d-=b-u,b=u,O=null);var w=new Li({shape:{points:Itt(l,0,b,c,g===p.length-1,g===0)},style:Ge(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new Tt({style:un(o,{text:O})}),textConfig:{position:"inside"},z2:Ag*1e4,onclick:nt(s,y)});w.disableLabelAnimation=!0,w.getTextContent().ensureState("emphasis").style=un(a,{text:O}),w.ensureState("emphasis").style=v,Bn(w,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(w),Dtt(w,e,y),l+=b+SU}},t.prototype.remove=function(){this.group.removeAll()},t}();function Itt(t,e,n,r,i,o){var a=[[i?t:t-sM,e],[t+n,e],[t+n,e+r],[i?t:t-sM,e+r]];return!o&&a.splice(2,0,[t+n+sM,e+r/2]),!i&&a.push([t,e+r/2]),a}function Dtt(t,e,n){Ke(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&ZP(n,e)}}var Rtt=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(e,n,r,i,o){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:n,duration:r,delay:i,easing:o}),!0)},t.prototype.finished=function(e){return this._finishedCallback=e,this},t.prototype.start=function(){for(var e=this,n=this._storage.length,r=function(){n--,n<=0&&(e._storage.length=0,e._elExistsMap={},e._finishedCallback&&e._finishedCallback())},i=0,o=this._storage.length;i<o;i++){var a=this._storage[i];a.el.animateTo(a.target,{duration:a.duration,delay:a.delay,easing:a.easing,setToFinal:!0,done:r,aborted:r})}return this},t}();function ktt(){return new Rtt}var yk=qe,CU=Pt,TU=3,PU="label",$U="upperLabel",Ntt=Ag*10,Ltt=Ag*2,Btt=Ag*3,Kf=uh([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),AU=function(t){var e=Kf(t);return e.stroke=e.fill=e.lineWidth=null,e},cC=$t(),Vtt=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._state="ready",n._storage=n0(),n}return e.prototype.render=function(n,r,i,o){var a=r.findComponents({mainType:"series",subType:"treemap",query:o});if(!(st(a,n)<0)){this.seriesModel=n,this.api=i,this.ecModel=r;var s=["treemapZoomToNode","treemapRootToNode"],l=mb(o,s,n),u=o&&o.type,c=n.layoutInfo,f=!this._oldTree,d=this._storage,p=u==="treemapRootToNode"&&l&&d?{rootNodeGroup:d.nodeGroup[l.node.getRawIndex()],direction:o.direction}:null,v=this._giveContainerGroup(c),g=n.get("animation"),m=this._doRender(v,n,p);g&&!f&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(v,m,n,p):m.renderFinally(),this._resetController(i),this._renderBreadcrumb(n,i,l)}},e.prototype._giveContainerGroup=function(n){var r=this._containerGroup;return r||(r=this._containerGroup=new yk,this._initEvents(r),this.group.add(r)),r.x=n.x,r.y=n.y,r},e.prototype._doRender=function(n,r,i){var o=r.getData().tree,a=this._oldTree,s=n0(),l=n0(),u=this._storage,c=[];function f(b,O,w,x){return ztt(r,l,u,i,s,c,b,O,w,x)}g(o.root?[o.root]:[],a&&a.root?[a.root]:[],n,o===a||!a,0);var d=m(u);if(this._oldTree=o,this._storage=l,this._controllerHost){var p=this.seriesModel.layoutInfo,v=o.root.getLayout();v.width===p.width&&v.height===p.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:d,renderFinally:y};function g(b,O,w,x,S){x?(O=b,V(b,function(A,P){!A.isRemoved()&&$(P,P)})):new au(O,b,T,T).add($).update($).remove(nt($,null)).execute();function T(A){return A.getId()}function $(A,P){var M=A!=null?b[A]:null,I=P!=null?O[P]:null,R=f(M,I,w,S);R&&g(M&&M.viewChildren||[],I&&I.viewChildren||[],R,x,S+1)}}function m(b){var O=n0();return b&&V(b,function(w,x){var S=O[x];V(w,function(T){T&&(S.push(T),cC(T).willDelete=!0)})}),O}function y(){V(d,function(b){V(b,function(O){O.parent&&O.parent.remove(O)})}),V(c,function(b){b.invisible=!0,b.dirty()})}},e.prototype._doAnimation=function(n,r,i,o){var a=i.get("animationDurationUpdate"),s=i.get("animationEasing"),l=(Fe(a)?0:a)||0,u=(Fe(s)?null:s)||"cubicOut",c=ktt();V(r.willDeleteEls,function(f,d){V(f,function(p,v){if(!p.invisible){var g=p.parent,m,y=cC(g);if(o&&o.direction==="drillDown")m=g===o.rootNodeGroup?{shape:{x:0,y:0,width:y.nodeWidth,height:y.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var b=0,O=0;y.willDelete||(b=y.nodeWidth/2,O=y.nodeHeight/2),m=d==="nodeGroup"?{x:b,y:O,style:{opacity:0}}:{shape:{x:b,y:O,width:0,height:0},style:{opacity:0}}}m&&c.add(p,m,l,0,u)}})}),V(this._storage,function(f,d){V(f,function(p,v){var g=r.lastsForAnimation[d][v],m={};g&&(p instanceof qe?g.oldX!=null&&(m.x=p.x,m.y=p.y,p.x=g.oldX,p.y=g.oldY):(g.oldShape&&(m.shape=he({},p.shape),p.setShape(g.oldShape)),g.fadein?(p.setStyle("opacity",0),m.style={opacity:1}):p.style.opacity!==1&&(m.style={opacity:1})),c.add(p,m,l,0,u))})},this),this._state="animating",c.finished(Re(function(){this._state="ready",r.renderFinally()},this)).start()},e.prototype._resetController=function(n){var r=this._controller,i=this._controllerHost;i||(this._controllerHost={target:this.group},i=this._controllerHost),r||(r=this._controller=new E_(n.getZr()),r.enable(this.seriesModel.get("roam")),i.zoomLimit=this.seriesModel.get("scaleLimit"),i.zoom=this.seriesModel.get("zoom"),r.on("pan",Re(this._onPan,this)),r.on("zoom",Re(this._onZoom,this)));var o=new at(0,0,n.getWidth(),n.getHeight());r.setPointerChecker(function(a,s,l){return o.contain(s,l)})},e.prototype._clearController=function(){var n=this._controller;this._controllerHost=null,n&&(n.dispose(),n=null)},e.prototype._onPan=function(n){if(this._state!=="animating"&&(Math.abs(n.dx)>TU||Math.abs(n.dy)>TU)){var r=this.seriesModel.getData().tree.root;if(!r)return;var i=r.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+n.dx,y:i.y+n.dy,width:i.width,height:i.height}})}},e.prototype._onZoom=function(n){var r=n.originX,i=n.originY,o=n.scale;if(this._state!=="animating"){var a=this.seriesModel.getData().tree.root;if(!a)return;var s=a.getLayout();if(!s)return;var l=new at(s.x,s.y,s.width,s.height),u=null,c=this._controllerHost;u=c.zoomLimit;var f=c.zoom=c.zoom||1;if(f*=o,u){var d=u.min||0,p=u.max||1/0;f=Math.max(Math.min(p,f),d)}var v=f/c.zoom;c.zoom=f;var g=this.seriesModel.layoutInfo;r-=g.x,i-=g.y;var m=ao();us(m,m,[-r,-i]),dP(m,m,[v,v]),us(m,m,[r,i]),l.applyTransform(m),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:l.x,y:l.y,width:l.width,height:l.height}})}},e.prototype._initEvents=function(n){var r=this;n.on("click",function(i){if(r._state==="ready"){var o=r.seriesModel.get("nodeClick",!0);if(o){var a=r.findTarget(i.offsetX,i.offsetY);if(a){var s=a.node;if(s.getLayout().isLeafRoot)r._rootToNode(a);else if(o==="zoomToNode")r._zoomToNode(a);else if(o==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&HS(u,c)}}}}},this)},e.prototype._renderBreadcrumb=function(n,r,i){var o=this;i||(i=n.get("leafDepth",!0)!=null?{node:n.getViewRoot()}:this.findTarget(r.getWidth()/2,r.getHeight()/2),i||(i={node:n.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new Mtt(this.group))).render(n,r,i.node,function(a){o._state!=="animating"&&(K5(n.getViewRoot(),a)?o._rootToNode({node:a}):o._zoomToNode({node:a}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=n0(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(n){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:n.node})},e.prototype._rootToNode=function(n){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:n.node})},e.prototype.findTarget=function(n,r){var i,o=this.seriesModel.getViewRoot();return o.eachNode({attr:"viewChildren",order:"preorder"},function(a){var s=this._storage.background[a.getRawIndex()];if(s){var l=s.transformCoordToLocal(n,r),u=s.shape;if(u.x<=l[0]&&l[0]<=u.x+u.width&&u.y<=l[1]&&l[1]<=u.y+u.height)i={node:a,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},e.type="treemap",e}(Kt);function n0(){return{nodeGroup:[],background:[],content:[]}}function ztt(t,e,n,r,i,o,a,s,l,u){if(!a)return;var c=a.getLayout(),f=t.getData(),d=a.getModel();if(f.setItemGraphicEl(a.dataIndex,null),!c||!c.isInView)return;var p=c.width,v=c.height,g=c.borderWidth,m=c.invisible,y=a.getRawIndex(),b=s&&s.getRawIndex(),O=a.viewChildren,w=c.upperHeight,x=O&&O.length,S=d.getModel("itemStyle"),T=d.getModel(["emphasis","itemStyle"]),$=d.getModel(["blur","itemStyle"]),A=d.getModel(["select","itemStyle"]),P=S.get("borderRadius")||0,M=se("nodeGroup",yk);if(!M)return;if(l.add(M),M.x=c.x||0,M.y=c.y||0,M.markRedraw(),cC(M).nodeWidth=p,cC(M).nodeHeight=v,c.isAboveViewRoot)return M;var I=se("background",CU,u,Ltt);I&&W(M,I,x&&c.upperLabelHeight);var R=d.getModel("emphasis"),L=R.get("focus"),D=R.get("blurScope"),B=R.get("disabled"),F=L==="ancestor"?a.getAncestorsIndices():L==="descendant"?a.getDescendantIndices():L;if(x)Dc(M)&&_d(M,!1),I&&(_d(I,!B),f.setItemGraphicEl(a.dataIndex,I),NR(I,F,D));else{var z=se("content",CU,u,Btt);z&&j(M,z),I.disableMorphing=!0,I&&Dc(I)&&_d(I,!1),_d(M,!B),f.setItemGraphicEl(a.dataIndex,M),NR(M,F,D)}return M;function W(re,ue,ee){var X=Ke(ue);if(X.dataIndex=a.dataIndex,X.seriesIndex=t.seriesIndex,ue.setShape({x:0,y:0,width:p,height:v,r:P}),m)H(ue);else{ue.invisible=!1;var Y=a.getVisual("style"),le=Y.stroke,ge=AU(S);ge.fill=le;var me=Kf(T);me.fill=T.get("borderColor");var Ne=Kf($);Ne.fill=$.get("borderColor");var Le=Kf(A);if(Le.fill=A.get("borderColor"),ee){var Ee=p-2*g;Z(ue,le,Y.opacity,{x:g,y:0,width:Ee,height:w})}else ue.removeTextContent();ue.setStyle(ge),ue.ensureState("emphasis").style=me,ue.ensureState("blur").style=Ne,ue.ensureState("select").style=Le,ch(ue)}re.add(ue)}function j(re,ue){var ee=Ke(ue);ee.dataIndex=a.dataIndex,ee.seriesIndex=t.seriesIndex;var X=Math.max(p-2*g,0),Y=Math.max(v-2*g,0);if(ue.culling=!0,ue.setShape({x:g,y:g,width:X,height:Y,r:P}),m)H(ue);else{ue.invisible=!1;var le=a.getVisual("style"),ge=le.fill,me=AU(S);me.fill=ge,me.decal=le.decal;var Ne=Kf(T),Le=Kf($),Ee=Kf(A);Z(ue,ge,le.opacity,null),ue.setStyle(me),ue.ensureState("emphasis").style=Ne,ue.ensureState("blur").style=Le,ue.ensureState("select").style=Ee,ch(ue)}re.add(ue)}function H(re){!re.invisible&&o.push(re)}function Z(re,ue,ee,X){var Y=d.getModel(X?$U:PU),le=ur(d.get("name"),null),ge=Y.getShallow("show");Jr(re,Cr(d,X?$U:PU),{defaultText:ge?le:null,inheritColor:ue,defaultOpacity:ee,labelFetcher:t,labelDataIndex:a.dataIndex});var me=re.getTextContent();if(me){var Ne=me.style,Le=cP(Ne.padding||0);X&&(re.setTextConfig({layoutRect:X}),me.disableLabelLayout=!0),me.beforeUpdate=function(){var $e=Math.max((X?X.width:re.shape.width)-Le[1]-Le[3],0),_e=Math.max((X?X.height:re.shape.height)-Le[0]-Le[2],0);(Ne.width!==$e||Ne.height!==_e)&&me.setStyle({width:$e,height:_e})},Ne.truncateMinChar=2,Ne.lineOverflow="truncate",J(Ne,X,c);var Ee=me.getState("emphasis");J(Ee?Ee.style:null,X,c)}}function J(re,ue,ee){var X=re?re.text:null;if(!ue&&ee.isLeafRoot&&X!=null){var Y=t.get("drillDownIcon",!0);re.text=Y?Y+" "+X:X}}function se(re,ue,ee,X){var Y=b!=null&&n[re][b],le=i[re];return Y?(n[re][b]=null,oe(le,Y)):m||(Y=new ue,Y instanceof $a&&(Y.z2=Ftt(ee,X)),de(le,Y)),e[re][y]=Y}function oe(re,ue){var ee=re[y]={};ue instanceof yk?(ee.oldX=ue.x,ee.oldY=ue.y):ee.oldShape=he({},ue.shape)}function de(re,ue){var ee=re[y]={},X=a.parentNode,Y=ue instanceof qe;if(X&&(!r||r.direction==="drillDown")){var le=0,ge=0,me=i.background[X.getRawIndex()];!r&&me&&me.oldShape&&(le=me.oldShape.width,ge=me.oldShape.height),Y?(ee.oldX=0,ee.oldY=ge):ee.oldShape={x:le,y:ge,width:0,height:0}}ee.fadein=!Y}}function Ftt(t,e){return t*Ntt+e}var yb=V,Wtt=Qe,fC=-1,xr=function(){function t(e){var n=e.mappingMethod,r=e.type,i=this.option=Ue(e);this.type=r,this.mappingMethod=n,this._normalizeData=Gtt[n];var o=t.visualHandlers[r];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],n==="piecewise"?(lM(i),Qtt(i)):n==="category"?i.categories?Htt(i):lM(i,!0):(je(n!=="linear"||i.dataExtent),lM(i))}return t.prototype.mapValueToVisual=function(e){var n=this._normalizeData(e);return this._normalizedToVisual(n,e)},t.prototype.getNormalizer=function(){return Re(this._normalizeData,this)},t.listVisualTypes=function(){return bt(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(e,n,r){Qe(e)?V(e,n,r):n.call(r,e)},t.mapVisual=function(e,n,r){var i,o=ve(e)?[]:Qe(e)?{}:(i=!0,null);return t.eachVisual(e,function(a,s){var l=n.call(r,a,s);i?o=l:o[s]=l}),o},t.retrieveVisuals=function(e){var n={},r;return e&&yb(t.visualHandlers,function(i,o){e.hasOwnProperty(o)&&(n[o]=e[o],r=!0)}),r?n:null},t.prepareVisualTypes=function(e){if(ve(e))e=e.slice();else if(Wtt(e)){var n=[];yb(e,function(r,i){n.push(i)}),e=n}else return[];return e.sort(function(r,i){return i==="color"&&r!=="color"&&r.indexOf("color")===0?1:-1}),e},t.dependsOn=function(e,n){return n==="color"?!!(e&&e.indexOf(n)===0):e===n},t.findPieceIndex=function(e,n,r){for(var i,o=1/0,a=0,s=n.length;a<s;a++){var l=n[a].value;if(l!=null){if(l===e||Ie(l)&&l===e+"")return a;r&&d(l,a)}}for(var a=0,s=n.length;a<s;a++){var u=n[a],c=u.interval,f=u.close;if(c){if(c[0]===-1/0){if(qO(f[1],e,c[1]))return a}else if(c[1]===1/0){if(qO(f[0],c[0],e))return a}else if(qO(f[0],c[0],e)&&qO(f[1],e,c[1]))return a;r&&d(c[0],a),r&&d(c[1],a)}}if(r)return e===1/0?n.length-1:e===-1/0?0:i;function d(p,v){var g=Math.abs(p-e);g<o&&(o=g,i=v)}},t.visualHandlers={color:{applyVisual:r0("color"),getColorMapper:function(){var e=this.option;return Re(e.mappingMethod==="category"?function(n,r){return!r&&(n=this._normalizeData(n)),D0.call(this,n)}:function(n,r,i){var o=!!i;return!r&&(n=this._normalizeData(n)),i=ly(n,e.parsedVisual,i),o?i:rs(i,"rgba")},this)},_normalizedToVisual:{linear:function(e){return rs(ly(e,this.option.parsedVisual),"rgba")},category:D0,piecewise:function(e,n){var r=_k.call(this,n);return r==null&&(r=rs(ly(e,this.option.parsedVisual),"rgba")),r},fixed:Jf}},colorHue:YO(function(e,n){return cv(e,n)}),colorSaturation:YO(function(e,n){return cv(e,null,n)}),colorLightness:YO(function(e,n){return cv(e,null,null,n)}),colorAlpha:YO(function(e,n){return tb(e,n)}),decal:{applyVisual:r0("decal"),_normalizedToVisual:{linear:null,category:D0,piecewise:null,fixed:null}},opacity:{applyVisual:r0("opacity"),_normalizedToVisual:bk([0,1])},liftZ:{applyVisual:r0("liftZ"),_normalizedToVisual:{linear:Jf,category:Jf,piecewise:Jf,fixed:Jf}},symbol:{applyVisual:function(e,n,r){var i=this.mapValueToVisual(e);r("symbol",i)},_normalizedToVisual:{linear:EU,category:D0,piecewise:function(e,n){var r=_k.call(this,n);return r==null&&(r=EU.call(this,e)),r},fixed:Jf}},symbolSize:{applyVisual:r0("symbolSize"),_normalizedToVisual:bk([0,1])}},t}();function Qtt(t){var e=t.pieceList;t.hasSpecialVisual=!1,V(e,function(n,r){n.originIndex=r,n.visual!=null&&(t.hasSpecialVisual=!0)})}function Htt(t){var e=t.categories,n=t.categoryMap={},r=t.visual;if(yb(e,function(a,s){n[a]=s}),!ve(r)){var i=[];Qe(r)?yb(r,function(a,s){var l=n[s];i[l??fC]=a}):i[fC]=r,r=Gce(t,i)}for(var o=e.length-1;o>=0;o--)r[o]==null&&(delete n[e[o]],e.pop())}function lM(t,e){var n=t.visual,r=[];Qe(n)?yb(n,function(o){r.push(o)}):n!=null&&r.push(n);var i={color:1,symbol:1};!e&&r.length===1&&!i.hasOwnProperty(t.type)&&(r[1]=r[0]),Gce(t,r)}function YO(t){return{applyVisual:function(e,n,r){var i=this.mapValueToVisual(e);r("color",t(n("color"),i))},_normalizedToVisual:bk([0,1])}}function EU(t){var e=this.option.visual;return e[Math.round(Zt(t,[0,1],[0,e.length-1],!0))]||{}}function r0(t){return function(e,n,r){r(t,this.mapValueToVisual(e))}}function D0(t){var e=this.option.visual;return e[this.option.loop&&t!==fC?t%e.length:t]}function Jf(){return this.option.visual[0]}function bk(t){return{linear:function(e){return Zt(e,t,this.option.visual,!0)},category:D0,piecewise:function(e,n){var r=_k.call(this,n);return r==null&&(r=Zt(e,t,this.option.visual,!0)),r},fixed:Jf}}function _k(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var r=xr.findPieceIndex(t,n),i=n[r];if(i&&i.visual)return i.visual[this.type]}}function Gce(t,e){return t.visual=e,t.type==="color"&&(t.parsedVisual=ye(e,function(n){var r=Ai(n);return!r&&process.env.NODE_ENV!=="production"&&Mn("'"+n+"' is an illegal color, fallback to '#000000'",!0),r||[0,0,0,1]})),e}var Gtt={linear:function(t){return Zt(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=xr.findPieceIndex(t,e,!0);if(n!=null)return Zt(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return e??fC},fixed:zn};function qO(t,e,n){return t?e<=n:e<n}var jtt="itemStyle",jce=$t();const Utt={seriesType:"treemap",reset:function(t){var e=t.getData().tree,n=e.root;n.isRemoved()||Uce(n,{},t.getViewRoot().getAncestors(),t)}};function Uce(t,e,n,r){var i=t.getModel(),o=t.getLayout(),a=t.hostTree.data;if(!(!o||o.invisible||!o.isInView)){var s=i.getModel(jtt),l=Ztt(s,e,r),u=a.ensureUniqueItemVisual(t.dataIndex,"style"),c=s.get("borderColor"),f=s.get("borderColorSaturation"),d;f!=null&&(d=MU(l),c=Xtt(f,d)),u.stroke=c;var p=t.viewChildren;if(!p||!p.length)d=MU(l),u.fill=d;else{var v=Ytt(t,i,o,s,l,p);V(p,function(g,m){if(g.depth>=n.length||g===n[g.depth]){var y=qtt(i,l,g,m,v,r);Uce(g,y,n,r)}})}}}function Ztt(t,e,n){var r=he({},e),i=n.designatedVisualItemStyle;return V(["color","colorAlpha","colorSaturation"],function(o){i[o]=e[o];var a=t.get(o);i[o]=null,a!=null&&(r[o]=a)}),r}function MU(t){var e=uM(t,"color");if(e){var n=uM(t,"colorAlpha"),r=uM(t,"colorSaturation");return r&&(e=cv(e,null,null,r)),n&&(e=tb(e,n)),e}}function Xtt(t,e){return e!=null?cv(e,null,null,t):null}function uM(t,e){var n=t[e];if(n!=null&&n!=="none")return n}function Ytt(t,e,n,r,i,o){if(!(!o||!o.length)){var a=cM(e,"color")||i.color!=null&&i.color!=="none"&&(cM(e,"colorAlpha")||cM(e,"colorSaturation"));if(a){var s=e.get("visualMin"),l=e.get("visualMax"),u=n.dataExtent.slice();s!=null&&s<u[0]&&(u[0]=s),l!=null&&l>u[1]&&(u[1]=l);var c=e.get("colorMappingBy"),f={type:a.name,dataExtent:u,visual:a.range};f.type==="color"&&(c==="index"||c==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var d=new xr(f);return jce(d).drColorMappingBy=c,d}}}function cM(t,e){var n=t.get(e);return ve(n)&&n.length?{name:e,range:n}:null}function qtt(t,e,n,r,i,o){var a=he({},e);if(i){var s=i.type,l=s==="color"&&jce(i).drColorMappingBy,u=l==="index"?r:l==="id"?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));a[s]=i.mapValueToVisual(u)}return a}var bb=Math.max,dC=Math.min,IU=Zn,J5=V,Zce=["itemStyle","borderWidth"],Ktt=["itemStyle","gapWidth"],Jtt=["upperLabel","show"],ent=["upperLabel","height"];const tnt={seriesType:"treemap",reset:function(t,e,n,r){var i=n.getWidth(),o=n.getHeight(),a=t.option,s=ir(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=Me(IU(s.width,l[0]),i),c=Me(IU(s.height,l[1]),o),f=r&&r.type,d=["treemapZoomToNode","treemapRootToNode"],p=mb(r,d,t),v=f==="treemapRender"||f==="treemapMove"?r.rootRect:null,g=t.getViewRoot(),m=Wce(g);if(f!=="treemapMove"){var y=f==="treemapZoomToNode"?snt(t,p,g,u,c):v?[v.width,v.height]:[u,c],b=a.sort;b&&b!=="asc"&&b!=="desc"&&(b="desc");var O={squareRatio:a.squareRatio,sort:b,leafDepth:a.leafDepth};g.hostTree.clearLayouts();var w={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};g.setLayout(w),Xce(g,O,!1,0),w=g.getLayout(),J5(m,function(S,T){var $=(m[T+1]||g).getValue();S.setLayout(he({dataExtent:[$,$],borderWidth:0,upperHeight:0},w))})}var x=t.getData().tree.root;x.setLayout(lnt(s,v,p),!0),t.setLayoutInfo(s),Yce(x,new at(-s.x,-s.y,i,o),m,g,0)}};function Xce(t,e,n,r){var i,o;if(!t.isRemoved()){var a=t.getLayout();i=a.width,o=a.height;var s=t.getModel(),l=s.get(Zce),u=s.get(Ktt)/2,c=qce(s),f=Math.max(l,c),d=l-u,p=f-u;t.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),i=bb(i-2*d,0),o=bb(o-d-p,0);var v=i*o,g=nnt(t,s,v,e,n,r);if(g.length){var m={x:d,y:p,width:i,height:o},y=dC(i,o),b=1/0,O=[];O.area=0;for(var w=0,x=g.length;w<x;){var S=g[w];O.push(S),O.area+=S.getLayout().area;var T=ant(O,y,e.squareRatio);T<=b?(w++,b=T):(O.area-=O.pop().getLayout().area,DU(O,y,m,u,!1),y=dC(m.width,m.height),O.length=O.area=0,b=1/0)}if(O.length&&DU(O,y,m,u,!0),!n){var $=s.get("childrenVisibleMin");$!=null&&v<$&&(n=!0)}for(var w=0,x=g.length;w<x;w++)Xce(g[w],e,n,r+1)}}}function nnt(t,e,n,r,i,o){var a=t.children||[],s=r.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=r.leafDepth!=null&&r.leafDepth<=o;if(i&&!l)return t.viewChildren=[];a=Yt(a,function(p){return!p.isRemoved()}),int(a,s);var u=ont(e,a,s);if(u.sum===0)return t.viewChildren=[];if(u.sum=rnt(e,n,u.sum,s,a),u.sum===0)return t.viewChildren=[];for(var c=0,f=a.length;c<f;c++){var d=a[c].getValue()/u.sum*n;a[c].setLayout({area:d})}return l&&(a.length&&t.setLayout({isLeafRoot:!0},!0),a.length=0),t.viewChildren=a,t.setLayout({dataExtent:u.dataExtent},!0),a}function rnt(t,e,n,r,i){if(!r)return n;for(var o=t.get("visibleMin"),a=i.length,s=a,l=a-1;l>=0;l--){var u=i[r==="asc"?a-l-1:l].getValue();u/n*e<o&&(s=l,n-=u)}return r==="asc"?i.splice(0,a-s):i.splice(s,a-s),n}function int(t,e){return e&&t.sort(function(n,r){var i=e==="asc"?n.getValue()-r.getValue():r.getValue()-n.getValue();return i===0?e==="asc"?n.dataIndex-r.dataIndex:r.dataIndex-n.dataIndex:i}),t}function ont(t,e,n){for(var r=0,i=0,o=e.length;i<o;i++)r+=e[i].getValue();var a=t.get("visualDimension"),s;return!e||!e.length?s=[NaN,NaN]:a==="value"&&n?(s=[e[e.length-1].getValue(),e[0].getValue()],n==="asc"&&s.reverse()):(s=[1/0,-1/0],J5(e,function(l){var u=l.getValue(a);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:r,dataExtent:s}}function ant(t,e,n){for(var r=0,i=1/0,o=0,a=void 0,s=t.length;o<s;o++)a=t[o].getLayout().area,a&&(a<i&&(i=a),a>r&&(r=a));var l=t.area*t.area,u=e*e*n;return l?bb(u*r/l,l/(u*i)):1/0}function DU(t,e,n,r,i){var o=e===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],c=e?t.area/e:0;(i||c>n[l[a]])&&(c=n[l[a]]);for(var f=0,d=t.length;f<d;f++){var p=t[f],v={},g=c?p.getLayout().area/c:0,m=v[l[a]]=bb(c-2*r,0),y=n[s[o]]+n[l[o]]-u,b=f===d-1||y<g?y:g,O=v[l[o]]=bb(b-2*r,0);v[s[a]]=n[s[a]]+dC(r,m/2),v[s[o]]=u+dC(r,O/2),u+=b,p.setLayout(v,!0)}n[s[a]]+=c,n[l[a]]-=c}function snt(t,e,n,r,i){var o=(e||{}).node,a=[r,i];if(!o||o===n)return a;for(var s,l=r*i,u=l*t.option.zoomToNodeRatio;s=o.parentNode;){for(var c=0,f=s.children,d=0,p=f.length;d<p;d++)c+=f[d].getValue();var v=o.getValue();if(v===0)return a;u*=c/v;var g=s.getModel(),m=g.get(Zce),y=Math.max(m,qce(g));u+=4*m*m+(3*m+y)*Math.pow(u,.5),u>PR&&(u=PR),o=s}u<l&&(u=l);var b=Math.pow(u/l,.5);return[r*b,i*b]}function lnt(t,e,n){if(e)return{x:e.x,y:e.y};var r={x:0,y:0};if(!n)return r;var i=n.node,o=i.getLayout();if(!o)return r;for(var a=[o.width/2,o.height/2],s=i;s;){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:t.width/2-a[0],y:t.height/2-a[1]}}function Yce(t,e,n,r,i){var o=t.getLayout(),a=n[i],s=a&&a===t;if(!(a&&!s||i===n.length&&t!==r)){t.setLayout({isInView:!0,invisible:!s&&!e.intersect(o),isAboveViewRoot:s},!0);var l=new at(e.x-o.x,e.y-o.y,e.width,e.height);J5(t.viewChildren||[],function(u){Yce(u,l,n,r,i+1)})}}function qce(t){return t.get(Jtt)?t.get(ent):0}function unt(t){t.registerSeriesModel($tt),t.registerChartView(Vtt),t.registerVisual(Utt),t.registerLayout(tnt),Ptt(t)}function cnt(t){var e=t.findComponents({mainType:"legend"});!e||!e.length||t.eachSeriesByType("graph",function(n){var r=n.getCategoriesData(),i=n.getGraph(),o=i.data,a=r.mapArray(r.getName);o.filterSelf(function(s){var l=o.getItemModel(s),u=l.getShallow("category");if(u!=null){It(u)&&(u=a[u]);for(var c=0;c<e.length;c++)if(!e[c].isSelected(u))return!1}return!0})})}function fnt(t){var e={};t.eachSeriesByType("graph",function(n){var r=n.getCategoriesData(),i=n.getData(),o={};r.each(function(a){var s=r.getName(a);o["ec-"+s]=a;var l=r.getItemModel(a),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=n.getColorFromPalette(s,e)),r.setItemVisual(a,"style",u);for(var c=["symbol","symbolSize","symbolKeepAspect"],f=0;f<c.length;f++){var d=l.getShallow(c[f],!0);d!=null&&r.setItemVisual(a,c[f],d)}}),r.count()&&i.each(function(a){var s=i.getItemModel(a),l=s.getShallow("category");if(l!=null){Ie(l)&&(l=o["ec-"+l]);var u=r.getItemVisual(l,"style"),c=i.ensureUniqueItemVisual(a,"style");he(c,u);for(var f=["symbol","symbolSize","symbolKeepAspect"],d=0;d<f.length;d++)i.setItemVisual(a,f[d],r.getItemVisual(l,f[d]))}})})}function KO(t){return t instanceof Array||(t=[t,t]),t}function dnt(t){t.eachSeriesByType("graph",function(e){var n=e.getGraph(),r=e.getEdgeData(),i=KO(e.get("edgeSymbol")),o=KO(e.get("edgeSymbolSize"));r.setVisual("fromSymbol",i&&i[0]),r.setVisual("toSymbol",i&&i[1]),r.setVisual("fromSymbolSize",o&&o[0]),r.setVisual("toSymbolSize",o&&o[1]),r.setVisual("style",e.getModel("lineStyle").getLineStyle()),r.each(function(a){var s=r.getItemModel(a),l=n.getEdgeByIndex(a),u=KO(s.getShallow("symbol",!0)),c=KO(s.getShallow("symbolSize",!0)),f=s.getModel("lineStyle").getLineStyle(),d=r.ensureUniqueItemVisual(a,"style");switch(he(d,f),d.stroke){case"source":{var p=l.node1.getVisual("style");d.stroke=p&&p.fill;break}case"target":{var p=l.node2.getVisual("style");d.stroke=p&&p.fill;break}}u[0]&&l.setVisual("fromSymbol",u[0]),u[1]&&l.setVisual("toSymbol",u[1]),c[0]&&l.setVisual("fromSymbolSize",c[0]),c[1]&&l.setVisual("toSymbolSize",c[1])})})}var Ok="-->",XP=function(t){return t.get("autoCurveness")||null},Kce=function(t,e){var n=XP(t),r=20,i=[];if(It(n))r=n;else if(ve(n)){t.__curvenessList=n;return}e>r&&(r=e);var o=r%2?r+2:r+3;i=[];for(var a=0;a<o;a++)i.push((a%2?a+1:a)/10*(a%2?-1:1));t.__curvenessList=i},_b=function(t,e,n){var r=[t.id,t.dataIndex].join("."),i=[e.id,e.dataIndex].join(".");return[n.uid,r,i].join(Ok)},Jce=function(t){var e=t.split(Ok);return[e[0],e[2],e[1]].join(Ok)},hnt=function(t,e){var n=_b(t.node1,t.node2,e);return e.__edgeMap[n]},pnt=function(t,e){var n=wk(_b(t.node1,t.node2,e),e),r=wk(_b(t.node2,t.node1,e),e);return n+r},wk=function(t,e){var n=e.__edgeMap;return n[t]?n[t].length:0};function vnt(t){XP(t)&&(t.__curvenessList=[],t.__edgeMap={},Kce(t))}function gnt(t,e,n,r){if(XP(n)){var i=_b(t,e,n),o=n.__edgeMap,a=o[Jce(i)];o[i]&&!a?o[i].isForward=!0:a&&o[i]&&(a.isForward=!0,o[i].isForward=!1),o[i]=o[i]||[],o[i].push(r)}}function e3(t,e,n,r){var i=XP(e),o=ve(i);if(!i)return null;var a=hnt(t,e);if(!a)return null;for(var s=-1,l=0;l<a.length;l++)if(a[l]===n){s=l;break}var u=pnt(t,e);Kce(e,u),t.lineStyle=t.lineStyle||{};var c=_b(t.node1,t.node2,e),f=e.__curvenessList,d=o||u%2?0:1;if(a.isForward)return f[d+s];var p=Jce(c),v=wk(p,e),g=f[s+v+d];return r?o?i&&i[0]===0?(v+d)%2?g:-g:((v%2?0:1)+d)%2?g:-g:(v+d)%2?g:-g:f[s+v+d]}function efe(t){var e=t.coordinateSystem;if(!(e&&e.type!=="view")){var n=t.getGraph();n.eachNode(function(r){var i=r.getModel();r.setLayout([+i.get("x"),+i.get("y")])}),t3(n,t)}}function t3(t,e){t.eachEdge(function(n,r){var i=Ro(n.getModel().get(["lineStyle","curveness"]),-e3(n,e,r,!0),0),o=Js(n.node1.getLayout()),a=Js(n.node2.getLayout()),s=[o,a];+i&&s.push([(o[0]+a[0])/2-(o[1]-a[1])*i,(o[1]+a[1])/2-(a[0]-o[0])*i]),n.setLayout(s)})}function mnt(t,e){t.eachSeriesByType("graph",function(n){var r=n.get("layout"),i=n.coordinateSystem;if(i&&i.type!=="view"){var o=n.getData(),a=[];V(i.dimensions,function(d){a=a.concat(o.mapDimensionsAll(d))});for(var s=0;s<o.count();s++){for(var l=[],u=!1,c=0;c<a.length;c++){var f=o.get(a[c],s);isNaN(f)||(u=!0),l.push(f)}u?o.setItemLayout(s,i.dataToPoint(l)):o.setItemLayout(s,[NaN,NaN])}t3(o.graph,n)}else(!r||r==="none")&&efe(n)})}function R0(t){var e=t.coordinateSystem;if(e.type!=="view")return 1;var n=t.option.nodeScaleRatio,r=e.scaleX,i=e.getZoom(),o=(i-1)*n+1;return o/r}function k0(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var RU=Math.PI,fM=[];function n3(t,e,n,r){var i=t.coordinateSystem;if(!(i&&i.type!=="view")){var o=i.getBoundingRect(),a=t.getData(),s=a.graph,l=o.width/2+o.x,u=o.height/2+o.y,c=Math.min(o.width,o.height)/2,f=a.count();if(a.setLayout({cx:l,cy:u}),!!f){if(n){var d=i.pointToData(r),p=d[0],v=d[1],g=[p-l,v-u];Ph(g,g),oy(g,g,c),n.setLayout([l+g[0],u+g[1]],!0);var m=t.get(["circular","rotateLabel"]);tfe(n,m,l,u)}ynt[e](t,s,a,c,l,u,f),s.eachEdge(function(y,b){var O=Ro(y.getModel().get(["lineStyle","curveness"]),e3(y,t,b),0),w=Js(y.node1.getLayout()),x=Js(y.node2.getLayout()),S,T=(w[0]+x[0])/2,$=(w[1]+x[1])/2;+O&&(O*=3,S=[l*O+T*(1-O),u*O+$*(1-O)]),y.setLayout([w,x,S])})}}}var ynt={value:function(t,e,n,r,i,o,a){var s=0,l=n.getSum("value"),u=Math.PI*2/(l||a);e.eachNode(function(c){var f=c.getValue("value"),d=u*(l?f:1)/2;s+=d,c.setLayout([r*Math.cos(s)+i,r*Math.sin(s)+o]),s+=d})},symbolSize:function(t,e,n,r,i,o,a){var s=0;fM.length=a;var l=R0(t);e.eachNode(function(f){var d=k0(f);isNaN(d)&&(d=2),d<0&&(d=0),d*=l;var p=Math.asin(d/2/r);isNaN(p)&&(p=RU/2),fM[f.dataIndex]=p,s+=p*2});var u=(2*RU-s)/a/2,c=0;e.eachNode(function(f){var d=u+fM[f.dataIndex];c+=d,(!f.getLayout()||!f.getLayout().fixed)&&f.setLayout([r*Math.cos(c)+i,r*Math.sin(c)+o]),c+=d})}};function tfe(t,e,n,r){var i=t.getGraphicEl();if(i){var o=t.getModel(),a=o.get(["label","rotate"])||0,s=i.getSymbolPath();if(e){var l=t.getLayout(),u=Math.atan2(l[1]-r,l[0]-n);u<0&&(u=Math.PI*2+u);var c=l[0]<n;c&&(u=u-Math.PI);var f=c?"left":"right";s.setTextConfig({rotation:-u,position:f,origin:"center"});var d=s.ensureState("emphasis");he(d.textConfig||(d.textConfig={}),{position:f})}else s.setTextConfig({rotation:a*=Math.PI/180})}}function bnt(t){t.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&n3(e,"symbolSize")})}var wp=TS;function _nt(t,e,n){for(var r=t,i=e,o=n.rect,a=o.width,s=o.height,l=[o.x+a/2,o.y+s/2],u=n.gravity==null?.1:n.gravity,c=0;c<r.length;c++){var f=r[c];f.p||(f.p=Xc(a*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),f.pp=Js(f.p),f.edges=null}var d=n.friction==null?.6:n.friction,p=d,v,g;return{warmUp:function(){p=d*.8},setFixed:function(m){r[m].fixed=!0},setUnfixed:function(m){r[m].fixed=!1},beforeStep:function(m){v=m},afterStep:function(m){g=m},step:function(m){v&&v(r,i);for(var y=[],b=r.length,O=0;O<i.length;O++){var w=i[O];if(!w.ignoreForceLayout){var x=w.n1,S=w.n2;ic(y,S.p,x.p);var T=Ky(y)-w.d,$=S.w/(x.w+S.w);isNaN($)&&($=0),Ph(y,y),!x.fixed&&wp(x.p,x.p,y,$*T*p),!S.fixed&&wp(S.p,S.p,y,-(1-$)*T*p)}}for(var O=0;O<b;O++){var A=r[O];A.fixed||(ic(y,l,A.p),wp(A.p,A.p,y,u*p))}for(var O=0;O<b;O++)for(var x=r[O],P=O+1;P<b;P++){var S=r[P];ic(y,S.p,x.p);var T=Ky(y);T===0&&(qoe(y,Math.random()-.5,Math.random()-.5),T=1);var M=(x.rep+S.rep)/T/T;!x.fixed&&wp(x.pp,x.pp,y,M),!S.fixed&&wp(S.pp,S.pp,y,-M)}for(var I=[],O=0;O<b;O++){var A=r[O];A.fixed||(ic(I,A.p,A.pp),wp(A.p,A.p,I,p),ii(A.pp,A.p))}p=p*.992;var R=p<.01;g&&g(r,i,R),m&&m(R)}}}function Ont(t){t.eachSeriesByType("graph",function(e){var n=e.coordinateSystem;if(!(n&&n.type!=="view"))if(e.get("layout")==="force"){var r=e.preservedPoints||{},i=e.getGraph(),o=i.data,a=i.edgeData,s=e.getModel("force"),l=s.get("initLayout");e.preservedPoints?o.each(function(O){var w=o.getId(O);o.setItemLayout(O,r[w]||[NaN,NaN])}):!l||l==="none"?efe(e):l==="circular"&&n3(e,"value");var u=o.getDataExtent("value"),c=a.getDataExtent("value"),f=s.get("repulsion"),d=s.get("edgeLength"),p=ve(f)?f:[f,f],v=ve(d)?d:[d,d];v=[v[1],v[0]];var g=o.mapArray("value",function(O,w){var x=o.getItemLayout(w),S=Zt(O,u,p);return isNaN(S)&&(S=(p[0]+p[1])/2),{w:S,rep:S,fixed:o.getItemModel(w).get("fixed"),p:!x||isNaN(x[0])||isNaN(x[1])?null:x}}),m=a.mapArray("value",function(O,w){var x=i.getEdgeByIndex(w),S=Zt(O,c,v);isNaN(S)&&(S=(v[0]+v[1])/2);var T=x.getModel(),$=Ro(x.getModel().get(["lineStyle","curveness"]),-e3(x,e,w,!0),0);return{n1:g[x.node1.dataIndex],n2:g[x.node2.dataIndex],d:S,curveness:$,ignoreForceLayout:T.get("ignoreForceLayout")}}),y=n.getBoundingRect(),b=_nt(g,m,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});b.beforeStep(function(O,w){for(var x=0,S=O.length;x<S;x++)O[x].fixed&&ii(O[x].p,i.getNodeByIndex(x).getLayout())}),b.afterStep(function(O,w,x){for(var S=0,T=O.length;S<T;S++)O[S].fixed||i.getNodeByIndex(S).setLayout(O[S].p),r[o.getId(S)]=O[S].p;for(var S=0,T=w.length;S<T;S++){var $=w[S],A=i.getEdgeByIndex(S),P=$.n1.p,M=$.n2.p,I=A.getLayout();I=I?I.slice():[],I[0]=I[0]||[],I[1]=I[1]||[],ii(I[0],P),ii(I[1],M),+$.curveness&&(I[2]=[(P[0]+M[0])/2-(P[1]-M[1])*$.curveness,(P[1]+M[1])/2-(M[0]-P[0])*$.curveness]),A.setLayout(I)}}),e.forceLayout=b,e.preservedPoints=r,b.step()}else e.forceLayout=null})}function wnt(t,e,n){var r=he(t.getBoxLayoutParams(),{aspect:n});return ir(r,{width:e.getWidth(),height:e.getHeight()})}function xnt(t,e){var n=[];return t.eachSeriesByType("graph",function(r){var i=r.get("coordinateSystem");if(!i||i==="view"){var o=r.getData(),a=o.mapArray(function(m){var y=o.getItemModel(m);return[+y.get("x"),+y.get("y")]}),s=[],l=[];OP(a,s,l),l[0]-s[0]===0&&(l[0]+=1,s[0]-=1),l[1]-s[1]===0&&(l[1]+=1,s[1]-=1);var u=(l[0]-s[0])/(l[1]-s[1]),c=wnt(r,e,u);isNaN(u)&&(s=[c.x,c.y],l=[c.x+c.width,c.y+c.height]);var f=l[0]-s[0],d=l[1]-s[1],p=c.width,v=c.height,g=r.coordinateSystem=new M_;g.zoomLimit=r.get("scaleLimit"),g.setBoundingRect(s[0],s[1],f,d),g.setViewRect(c.x,c.y,p,v),g.setCenter(r.get("center"),e),g.setZoom(r.get("zoom")),n.push(g)}}),n}var kU=_r.prototype,dM=y_.prototype,nfe=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}();(function(t){ie(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(nfe);function hM(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var Snt=function(t){ie(e,t);function e(n){var r=t.call(this,n)||this;return r.type="ec-line",r}return e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new nfe},e.prototype.buildPath=function(n,r){hM(r)?kU.buildPath.call(this,n,r):dM.buildPath.call(this,n,r)},e.prototype.pointAt=function(n){return hM(this.shape)?kU.pointAt.call(this,n):dM.pointAt.call(this,n)},e.prototype.tangentAt=function(n){var r=this.shape,i=hM(r)?[r.x2-r.x1,r.y2-r.y1]:dM.tangentAt.call(this,n);return Ph(i,i)},e}(mt),pM=["fromSymbol","toSymbol"];function NU(t){return"_"+t+"Type"}function LU(t,e,n){var r=e.getItemVisual(n,t);if(!r||r==="none")return r;var i=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),a=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=zg(i),u=Dh(a||0,l);return r+l+u+(o||"")+(s||"")}function BU(t,e,n){var r=e.getItemVisual(n,t);if(!(!r||r==="none")){var i=e.getItemVisual(n,t+"Size"),o=e.getItemVisual(n,t+"Rotate"),a=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=zg(i),u=Dh(a||0,l),c=Yn(r,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=o==null||isNaN(o)?void 0:+o*Math.PI/180||0,c.name=t,c}}function Cnt(t){var e=new Snt({name:"line",subPixelOptimize:!0});return xk(e.shape,t),e}function xk(t,e){t.x1=e[0][0],t.y1=e[0][1],t.x2=e[1][0],t.y2=e[1][1],t.percent=1;var n=e[2];n?(t.cpx1=n[0],t.cpy1=n[1]):(t.cpx1=NaN,t.cpy1=NaN)}var r3=function(t){ie(e,t);function e(n,r,i){var o=t.call(this)||this;return o._createLine(n,r,i),o}return e.prototype._createLine=function(n,r,i){var o=n.hostModel,a=n.getItemLayout(r),s=Cnt(a);s.shape.percent=0,gn(s,{shape:{percent:1}},o,r),this.add(s),V(pM,function(l){var u=BU(l,n,r);this.add(u),this[NU(l)]=LU(l,n,r)},this),this._updateCommonStl(n,r,i)},e.prototype.updateData=function(n,r,i){var o=n.hostModel,a=this.childOfName("line"),s=n.getItemLayout(r),l={shape:{}};xk(l.shape,s),kt(a,l,o,r),V(pM,function(u){var c=LU(u,n,r),f=NU(u);if(this[f]!==c){this.remove(this.childOfName(u));var d=BU(u,n,r);this.add(d)}this[f]=c},this),this._updateCommonStl(n,r,i)},e.prototype.getLinePath=function(){return this.childAt(0)},e.prototype._updateCommonStl=function(n,r,i){var o=n.hostModel,a=this.childOfName("line"),s=i&&i.emphasisLineStyle,l=i&&i.blurLineStyle,u=i&&i.selectLineStyle,c=i&&i.labelStatesModels,f=i&&i.emphasisDisabled,d=i&&i.focus,p=i&&i.blurScope;if(!i||n.hasItemOption){var v=n.getItemModel(r),g=v.getModel("emphasis");s=g.getModel("lineStyle").getLineStyle(),l=v.getModel(["blur","lineStyle"]).getLineStyle(),u=v.getModel(["select","lineStyle"]).getLineStyle(),f=g.get("disabled"),d=g.get("focus"),p=g.get("blurScope"),c=Cr(v)}var m=n.getItemVisual(r,"style"),y=m.stroke;a.useStyle(m),a.style.fill=null,a.style.strokeNoScale=!0,a.ensureState("emphasis").style=s,a.ensureState("blur").style=l,a.ensureState("select").style=u,V(pM,function(S){var T=this.childOfName(S);if(T){T.setColor(y),T.style.opacity=m.opacity;for(var $=0;$<ki.length;$++){var A=ki[$],P=a.getState(A);if(P){var M=P.style||{},I=T.ensureState(A),R=I.style||(I.style={});M.stroke!=null&&(R[T.__isEmptyBrush?"stroke":"fill"]=M.stroke),M.opacity!=null&&(R.opacity=M.opacity)}}T.markRedraw()}},this);var b=o.getRawValue(r);Jr(this,c,{labelDataIndex:r,labelFetcher:{getFormattedLabel:function(S,T){return o.getFormattedLabel(S,T,n.dataType)}},inheritColor:y||"#000",defaultOpacity:m.opacity,defaultText:(b==null?n.getName(r):isFinite(b)?Nn(b):b)+""});var O=this.getTextContent();if(O){var w=c.normal;O.__align=O.style.align,O.__verticalAlign=O.style.verticalAlign,O.__position=w.get("position")||"middle";var x=w.get("distance");ve(x)||(x=[x,x]),O.__labelDistance=x}this.setTextConfig({position:null,local:!0,inside:!1}),Bn(this,d,p,f)},e.prototype.highlight=function(){iu(this)},e.prototype.downplay=function(){ou(this)},e.prototype.updateLayout=function(n,r){this.setLinePoints(n.getItemLayout(r))},e.prototype.setLinePoints=function(n){var r=this.childOfName("line");xk(r.shape,n),r.dirty()},e.prototype.beforeUpdate=function(){var n=this,r=n.childOfName("fromSymbol"),i=n.childOfName("toSymbol"),o=n.getTextContent();if(!r&&!i&&(!o||o.ignore))return;for(var a=1,s=this.parent;s;)s.scaleX&&(a/=s.scaleX),s=s.parent;var l=n.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),f=l.pointAt(u),d=ic([],f,c);Ph(d,d);function p(P,M){var I=P.__specifiedRotation;if(I==null){var R=l.tangentAt(M);P.attr("rotation",(M===1?-1:1)*Math.PI/2-Math.atan2(R[1],R[0]))}else P.attr("rotation",I)}if(r&&(r.setPosition(c),p(r,0),r.scaleX=r.scaleY=a*u,r.markRedraw()),i&&(i.setPosition(f),p(i,1),i.scaleX=i.scaleY=a*u,i.markRedraw()),o&&!o.ignore){o.x=o.y=0,o.originX=o.originY=0;var v=void 0,g=void 0,m=o.__labelDistance,y=m[0]*a,b=m[1]*a,O=u/2,w=l.tangentAt(O),x=[w[1],-w[0]],S=l.pointAt(O);x[1]>0&&(x[0]=-x[0],x[1]=-x[1]);var T=w[0]<0?-1:1;if(o.__position!=="start"&&o.__position!=="end"){var $=-Math.atan2(w[1],w[0]);f[0]<c[0]&&($=Math.PI+$),o.rotation=$}var A=void 0;switch(o.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":A=-b,g="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":A=b,g="top";break;default:A=0,g="middle"}switch(o.__position){case"end":o.x=d[0]*y+f[0],o.y=d[1]*b+f[1],v=d[0]>.8?"left":d[0]<-.8?"right":"center",g=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":o.x=-d[0]*y+c[0],o.y=-d[1]*b+c[1],v=d[0]>.8?"right":d[0]<-.8?"left":"center",g=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":o.x=y*T+c[0],o.y=c[1]+A,v=w[0]<0?"right":"left",o.originX=-y*T,o.originY=-A;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":o.x=S[0],o.y=S[1]+A,v="center",o.originY=-A;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":o.x=-y*T+f[0],o.y=f[1]+A,v=w[0]>=0?"right":"left",o.originX=y*T,o.originY=-A;break}o.scaleX=o.scaleY=a,o.setStyle({verticalAlign:o.__verticalAlign||g,align:o.__align||v})}},e}(qe),i3=function(){function t(e){this.group=new qe,this._LineCtor=e||r3}return t.prototype.updateData=function(e){var n=this;this._progressiveEls=null;var r=this,i=r.group,o=r._lineData;r._lineData=e,o||i.removeAll();var a=VU(e);e.diff(o).add(function(s){n._doAdd(e,s,a)}).update(function(s,l){n._doUpdate(o,e,l,s,a)}).remove(function(s){i.remove(o.getItemGraphicEl(s))}).execute()},t.prototype.updateLayout=function(){var e=this._lineData;e&&e.eachItemGraphicEl(function(n,r){n.updateLayout(e,r)},this)},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=VU(e),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,n){this._progressiveEls=[];function r(s){!s.isGroup&&!Tnt(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var o=n.getItemLayout(i);if(vM(o)){var a=new this._LineCtor(n,i,this._seriesScope);a.traverse(r),this.group.add(a),n.setItemGraphicEl(i,a),this._progressiveEls.push(a)}}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(e){qc(this._progressiveEls||this.group,e)},t.prototype._doAdd=function(e,n,r){var i=e.getItemLayout(n);if(vM(i)){var o=new this._LineCtor(e,n,r);e.setItemGraphicEl(n,o),this.group.add(o)}},t.prototype._doUpdate=function(e,n,r,i,o){var a=e.getItemGraphicEl(r);if(!vM(n.getItemLayout(i))){this.group.remove(a);return}a?a.updateData(n,i,o):a=new this._LineCtor(n,i,o),n.setItemGraphicEl(i,a),this.group.add(a)},t}();function Tnt(t){return t.animators&&t.animators.length>0}function VU(t){var e=t.hostModel,n=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:Cr(e)}}function zU(t){return isNaN(t[0])||isNaN(t[1])}function vM(t){return t&&!zU(t[0])&&!zU(t[1])}var gM=[],mM=[],yM=[],xp=Ar,bM=bc,FU=Math.abs;function WU(t,e,n){for(var r=t[0],i=t[1],o=t[2],a=1/0,s,l=n*n,u=.1,c=.1;c<=.9;c+=.1){gM[0]=xp(r[0],i[0],o[0],c),gM[1]=xp(r[1],i[1],o[1],c);var f=FU(bM(gM,e)-l);f<a&&(a=f,s=c)}for(var d=0;d<32;d++){var p=s+u;mM[0]=xp(r[0],i[0],o[0],s),mM[1]=xp(r[1],i[1],o[1],s),yM[0]=xp(r[0],i[0],o[0],p),yM[1]=xp(r[1],i[1],o[1],p);var f=bM(mM,e)-l;if(FU(f)<.01)break;var v=bM(yM,e)-l;u/=2,f<0?v>=0?s=s+u:s=s-u:v>=0?s=s-u:s=s+u}return s}function _M(t,e){var n=[],r=Jy,i=[[],[],[]],o=[[],[]],a=[];e/=2,t.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[Js(u[0]),Js(u[1])],u[2]&&u.__original.push(Js(u[2])));var d=u.__original;if(u[2]!=null){if(ii(i[0],d[0]),ii(i[1],d[2]),ii(i[2],d[1]),c&&c!=="none"){var p=k0(s.node1),v=WU(i,d[0],p*e);r(i[0][0],i[1][0],i[2][0],v,n),i[0][0]=n[3],i[1][0]=n[4],r(i[0][1],i[1][1],i[2][1],v,n),i[0][1]=n[3],i[1][1]=n[4]}if(f&&f!=="none"){var p=k0(s.node2),v=WU(i,d[1],p*e);r(i[0][0],i[1][0],i[2][0],v,n),i[1][0]=n[1],i[2][0]=n[2],r(i[0][1],i[1][1],i[2][1],v,n),i[1][1]=n[1],i[2][1]=n[2]}ii(u[0],i[0]),ii(u[1],i[2]),ii(u[2],i[1])}else{if(ii(o[0],d[0]),ii(o[1],d[1]),ic(a,o[1],o[0]),Ph(a,a),c&&c!=="none"){var p=k0(s.node1);TS(o[0],o[0],a,p*e)}if(f&&f!=="none"){var p=k0(s.node2);TS(o[1],o[1],a,-p*e)}ii(u[0],o[0]),ii(u[1],o[1])}})}function QU(t){return t.type==="view"}var Pnt=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r){var i=new C_,o=new i3,a=this.group;this._controller=new E_(r.getZr()),this._controllerHost={target:a},a.add(i.group),a.add(o.group),this._symbolDraw=i,this._lineDraw=o,this._firstRender=!0},e.prototype.render=function(n,r,i){var o=this,a=n.coordinateSystem;this._model=n;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(QU(a)){var c={x:a.x,y:a.y,scaleX:a.scaleX,scaleY:a.scaleY};this._firstRender?u.attr(c):kt(u,c,n)}_M(n.getGraph(),R0(n));var f=n.getData();s.updateData(f);var d=n.getEdgeData();l.updateData(d),this._updateNodeAndLinkScale(),this._updateController(n,r,i),clearTimeout(this._layoutTimeout);var p=n.forceLayout,v=n.get(["force","layoutAnimation"]);p&&this._startForceLayoutIteration(p,v);var g=n.get("layout");f.graph.eachNode(function(O){var w=O.dataIndex,x=O.getGraphicEl(),S=O.getModel();if(x){x.off("drag").off("dragend");var T=S.get("draggable");T&&x.on("drag",function(A){switch(g){case"force":p.warmUp(),!o._layouting&&o._startForceLayoutIteration(p,v),p.setFixed(w),f.setItemLayout(w,[x.x,x.y]);break;case"circular":f.setItemLayout(w,[x.x,x.y]),O.setLayout({fixed:!0},!0),n3(n,"symbolSize",O,[A.offsetX,A.offsetY]),o.updateLayout(n);break;case"none":default:f.setItemLayout(w,[x.x,x.y]),t3(n.getGraph(),n),o.updateLayout(n);break}}).on("dragend",function(){p&&p.setUnfixed(w)}),x.setDraggable(T,!!S.get("cursor"));var $=S.get(["emphasis","focus"]);$==="adjacency"&&(Ke(x).focus=O.getAdjacentDataIndices())}}),f.graph.eachEdge(function(O){var w=O.getGraphicEl(),x=O.getModel().get(["emphasis","focus"]);w&&x==="adjacency"&&(Ke(w).focus={edge:[O.dataIndex],node:[O.node1.dataIndex,O.node2.dataIndex]})});var m=n.get("layout")==="circular"&&n.get(["circular","rotateLabel"]),y=f.getLayout("cx"),b=f.getLayout("cy");f.graph.eachNode(function(O){tfe(O,m,y,b)}),this._firstRender=!1},e.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(n,r){var i=this;(function o(){n.step(function(a){i.updateLayout(i._model),(i._layouting=!a)&&(r?i._layoutTimeout=setTimeout(o,16):o())})})()},e.prototype._updateController=function(n,r,i){var o=this,a=this._controller,s=this._controllerHost,l=this.group;if(a.setPointerChecker(function(u,c,f){var d=l.getBoundingRect();return d.applyTransform(l.transform),d.contain(c,f)&&!jP(u,i,n)}),!QU(n.coordinateSystem)){a.disable();return}a.enable(n.get("roam")),s.zoomLimit=n.get("scaleLimit"),s.zoom=n.coordinateSystem.getZoom(),a.off("pan").off("zoom").on("pan",function(u){j5(s,u.dx,u.dy),i.dispatchAction({seriesId:n.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){U5(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:n.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),o._updateNodeAndLinkScale(),_M(n.getGraph(),R0(n)),o._lineDraw.updateLayout(),i.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var n=this._model,r=n.getData(),i=R0(n);r.eachItemGraphicEl(function(o,a){o&&o.setSymbolScale(i)})},e.prototype.updateLayout=function(n){_M(n.getGraph(),R0(n)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(Kt);function Sp(t){return"_EC_"+t}var $nt=function(){function t(e){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=e||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(e,n){e=e==null?""+n:""+e;var r=this._nodesMap;if(r[Sp(e)]){process.env.NODE_ENV!=="production"&&console.error("Graph nodes have duplicate name or id");return}var i=new ed(e,n);return i.hostGraph=this,this.nodes.push(i),r[Sp(e)]=i,i},t.prototype.getNodeByIndex=function(e){var n=this.data.getRawIndex(e);return this.nodes[n]},t.prototype.getNodeById=function(e){return this._nodesMap[Sp(e)]},t.prototype.addEdge=function(e,n,r){var i=this._nodesMap,o=this._edgesMap;if(It(e)&&(e=this.nodes[e]),It(n)&&(n=this.nodes[n]),e instanceof ed||(e=i[Sp(e)]),n instanceof ed||(n=i[Sp(n)]),!(!e||!n)){var a=e.id+"-"+n.id,s=new rfe(e,n,r);return s.hostGraph=this,this._directed&&(e.outEdges.push(s),n.inEdges.push(s)),e.edges.push(s),e!==n&&n.edges.push(s),this.edges.push(s),o[a]=s,s}},t.prototype.getEdgeByIndex=function(e){var n=this.edgeData.getRawIndex(e);return this.edges[n]},t.prototype.getEdge=function(e,n){e instanceof ed&&(e=e.id),n instanceof ed&&(n=n.id);var r=this._edgesMap;return this._directed?r[e+"-"+n]:r[e+"-"+n]||r[n+"-"+e]},t.prototype.eachNode=function(e,n){for(var r=this.nodes,i=r.length,o=0;o<i;o++)r[o].dataIndex>=0&&e.call(n,r[o],o)},t.prototype.eachEdge=function(e,n){for(var r=this.edges,i=r.length,o=0;o<i;o++)r[o].dataIndex>=0&&r[o].node1.dataIndex>=0&&r[o].node2.dataIndex>=0&&e.call(n,r[o],o)},t.prototype.breadthFirstTraverse=function(e,n,r,i){if(n instanceof ed||(n=this._nodesMap[Sp(n)]),!!n){for(var o=r==="out"?"outEdges":r==="in"?"inEdges":"edges",a=0;a<this.nodes.length;a++)this.nodes[a].__visited=!1;if(!e.call(i,n,null))for(var s=[n];s.length;)for(var l=s.shift(),u=l[o],a=0;a<u.length;a++){var c=u[a],f=c.node1===l?c.node2:c.node1;if(!f.__visited){if(e.call(i,f,l))return;s.push(f),f.__visited=!0}}}},t.prototype.update=function(){for(var e=this.data,n=this.edgeData,r=this.nodes,i=this.edges,o=0,a=r.length;o<a;o++)r[o].dataIndex=-1;for(var o=0,a=e.count();o<a;o++)r[e.getRawIndex(o)].dataIndex=o;n.filterSelf(function(s){var l=i[n.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var o=0,a=i.length;o<a;o++)i[o].dataIndex=-1;for(var o=0,a=n.count();o<a;o++)i[n.getRawIndex(o)].dataIndex=o},t.prototype.clone=function(){for(var e=new t(this._directed),n=this.nodes,r=this.edges,i=0;i<n.length;i++)e.addNode(n[i].id,n[i].dataIndex);for(var i=0;i<r.length;i++){var o=r[i];e.addEdge(o.node1.id,o.node2.id,o.dataIndex)}return e},t}(),ed=function(){function t(e,n){this.inEdges=[],this.outEdges=[],this.edges=[],this.dataIndex=-1,this.id=e??"",this.dataIndex=n??-1}return t.prototype.degree=function(){return this.edges.length},t.prototype.inDegree=function(){return this.inEdges.length},t.prototype.outDegree=function(){return this.outEdges.length},t.prototype.getModel=function(e){if(!(this.dataIndex<0)){var n=this.hostGraph,r=n.data.getItemModel(this.dataIndex);return r.getModel(e)}},t.prototype.getAdjacentDataIndices=function(){for(var e={edge:[],node:[]},n=0;n<this.edges.length;n++){var r=this.edges[n];r.dataIndex<0||(e.edge.push(r.dataIndex),e.node.push(r.node1.dataIndex,r.node2.dataIndex))}return e},t.prototype.getTrajectoryDataIndices=function(){for(var e=Be(),n=Be(),r=0;r<this.edges.length;r++){var i=this.edges[r];if(!(i.dataIndex<0)){e.set(i.dataIndex,!0);for(var o=[i.node1],a=[i.node2],s=0;s<o.length;){var l=o[s];s++,n.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)e.set(l.inEdges[u].dataIndex,!0),o.push(l.inEdges[u].node1)}for(s=0;s<a.length;){var c=a[s];s++,n.set(c.dataIndex,!0);for(var u=0;u<c.outEdges.length;u++)e.set(c.outEdges[u].dataIndex,!0),a.push(c.outEdges[u].node2)}}}return{edge:e.keys(),node:n.keys()}},t}(),rfe=function(){function t(e,n,r){this.dataIndex=-1,this.node1=e,this.node2=n,this.dataIndex=r??-1}return t.prototype.getModel=function(e){if(!(this.dataIndex<0)){var n=this.hostGraph,r=n.edgeData.getItemModel(this.dataIndex);return r.getModel(e)}},t.prototype.getAdjacentDataIndices=function(){return{edge:[this.dataIndex],node:[this.node1.dataIndex,this.node2.dataIndex]}},t.prototype.getTrajectoryDataIndices=function(){var e=Be(),n=Be();e.set(this.dataIndex,!0);for(var r=[this.node1],i=[this.node2],o=0;o<r.length;){var a=r[o];o++,n.set(a.dataIndex,!0);for(var s=0;s<a.inEdges.length;s++)e.set(a.inEdges[s].dataIndex,!0),r.push(a.inEdges[s].node1)}for(o=0;o<i.length;){var l=i[o];o++,n.set(l.dataIndex,!0);for(var s=0;s<l.outEdges.length;s++)e.set(l.outEdges[s].dataIndex,!0),i.push(l.outEdges[s].node2)}return{edge:e.keys(),node:n.keys()}},t}();function ife(t,e){return{getValue:function(n){var r=this[t][e];return r.getStore().get(r.getDimensionIndex(n||"value"),this.dataIndex)},setVisual:function(n,r){this.dataIndex>=0&&this[t][e].setItemVisual(this.dataIndex,n,r)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,r){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,r)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}Qn(ed,ife("hostGraph","data"));Qn(rfe,ife("hostGraph","edgeData"));function ofe(t,e,n,r,i){for(var o=new $nt(r),a=0;a<t.length;a++)o.addNode(Zn(t[a].id,t[a].name,a),a);for(var s=[],l=[],u=0,a=0;a<e.length;a++){var c=e[a],f=c.source,d=c.target;o.addEdge(f,d,u)&&(l.push(c),s.push(Zn(ur(c.id,null),f+" > "+d)),u++)}var p=n.get("coordinateSystem"),v;if(p==="cartesian2d"||p==="polar")v=pl(t,n);else{var g=Ih.get(p),m=g?g.dimensions||[]:[];st(m,"value")<0&&m.concat(["value"]);var y=Fg(t,{coordDimensions:m,encodeDefine:n.getEncode()}).dimensions;v=new fi(y,n),v.initData(t)}var b=new fi(["value"],n);return b.initData(l,s),i&&i(v,b),zce({mainData:v,struct:o,structAttr:"graph",datas:{node:v,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var Ant=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return e.prototype.init=function(n){t.prototype.init.apply(this,arguments);var r=this;function i(){return r._categoriesData}this.legendVisualProvider=new A_(i,i),this.fillDataTextStyle(n.edges||n.links),this._updateCategoriesData()},e.prototype.mergeOption=function(n){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(n.edges||n.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(n){t.prototype.mergeDefaultAndTheme.apply(this,arguments),sh(n,"edgeLabel",["show"])},e.prototype.getInitialData=function(n,r){var i=n.edges||n.links||[],o=n.data||n.nodes||[],a=this;if(o&&i){vnt(this);var s=ofe(o,i,this,!0,l);return V(s.edges,function(u){gnt(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(v){var g=a._categoriesModels,m=v.getShallow("category"),y=g[m];return y&&(y.parentModel=v.parentModel,v.parentModel=y),v});var f=tn.prototype.getModel;function d(v,g){var m=f.call(this,v,g);return m.resolveParentPath=p,m}c.wrapMethod("getItemModel",function(v){return v.resolveParentPath=p,v.getModel=d,v});function p(v){if(v&&(v[0]==="label"||v[1]==="label")){var g=v.slice();return v[0]==="label"?g[0]="edgeLabel":v[1]==="label"&&(g[1]="edgeLabel"),g}return v}}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(n,r,i){if(i==="edge"){var o=this.getData(),a=this.getDataParams(n,i),s=o.graph.getEdgeByIndex(n),l=o.getName(s.node1.dataIndex),u=o.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Tr("nameValue",{name:c.join(" > "),value:a.value,noValue:a.value==null})}var f=Tle({series:this,dataIndex:n,multipleSeries:r});return f},e.prototype._updateCategoriesData=function(){var n=ye(this.option.categories||[],function(i){return i.value!=null?i:he({value:0},i)}),r=new fi(["value"],this);r.initData(n),this._categoriesData=r,this._categoriesModels=r.mapArray(function(i){return r.getItemModel(i)})},e.prototype.setZoom=function(n){this.option.zoom=n},e.prototype.setCenter=function(n){this.option.center=n},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(rn),Ent={type:"graphRoam",event:"graphRoam",update:"none"};function Mnt(t){t.registerChartView(Pnt),t.registerSeriesModel(Ant),t.registerProcessor(cnt),t.registerVisual(fnt),t.registerVisual(dnt),t.registerLayout(mnt),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,bnt),t.registerLayout(Ont),t.registerCoordinateSystem("graphView",{dimensions:M_.dimensions,create:xnt}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},zn),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},zn),t.registerAction(Ent,function(e,n,r){n.eachComponent({mainType:"series",query:e},function(i){var o=i.coordinateSystem,a=X5(o,e,void 0,r);i.setCenter&&i.setCenter(a.center),i.setZoom&&i.setZoom(a.zoom)})})}var Int=function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t}(),Dnt=function(t){ie(e,t);function e(n){var r=t.call(this,n)||this;return r.type="pointer",r}return e.prototype.getDefaultShape=function(){return new Int},e.prototype.buildPath=function(n,r){var i=Math.cos,o=Math.sin,a=r.r,s=r.width,l=r.angle,u=r.x-i(l)*s*(s>=a/3?1:2),c=r.y-o(l)*s*(s>=a/3?1:2);l=r.angle-Math.PI/2,n.moveTo(u,c),n.lineTo(r.x+i(l)*s,r.y+o(l)*s),n.lineTo(r.x+i(r.angle)*a,r.y+o(r.angle)*a),n.lineTo(r.x-i(l)*s,r.y-o(l)*s),n.lineTo(u,c)},e}(mt);function Rnt(t,e){var n=t.get("center"),r=e.getWidth(),i=e.getHeight(),o=Math.min(r,i),a=Me(n[0],e.getWidth()),s=Me(n[1],e.getHeight()),l=Me(t.get("radius"),o/2);return{cx:a,cy:s,r:l}}function JO(t,e){var n=t==null?"":t+"";return e&&(Ie(e)?n=e.replace("{value}",n):Fe(e)&&(n=e(t))),n}var knt=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){this.group.removeAll();var o=n.get(["axisLine","lineStyle","color"]),a=Rnt(n,i);this._renderMain(n,r,i,o,a),this._data=n.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(n,r,i,o,a){var s=this.group,l=n.get("clockwise"),u=-n.get("startAngle")/180*Math.PI,c=-n.get("endAngle")/180*Math.PI,f=n.getModel("axisLine"),d=f.get("roundCap"),p=d?sC:Ni,v=f.get("show"),g=f.getModel("lineStyle"),m=g.get("width"),y=[u,c];V8(y,!l),u=y[0],c=y[1];for(var b=c-u,O=u,w=[],x=0;v&&x<o.length;x++){var S=Math.min(Math.max(o[x][0],0),1);c=u+b*S;var T=new p({shape:{startAngle:O,endAngle:c,cx:a.cx,cy:a.cy,clockwise:l,r0:a.r-m,r:a.r},silent:!0});T.setStyle({fill:o[x][1]}),T.setStyle(g.getLineStyle(["color","width"])),w.push(T),O=c}w.reverse(),V(w,function(A){return s.add(A)});var $=function(A){if(A<=0)return o[0][1];var P;for(P=0;P<o.length;P++)if(o[P][0]>=A&&(P===0?0:o[P-1][0])<A)return o[P][1];return o[P-1][1]};this._renderTicks(n,r,i,$,a,u,c,l,m),this._renderTitleAndDetail(n,r,i,$,a),this._renderAnchor(n,a),this._renderPointer(n,r,i,$,a,u,c,l,m)},e.prototype._renderTicks=function(n,r,i,o,a,s,l,u,c){for(var f=this.group,d=a.cx,p=a.cy,v=a.r,g=+n.get("min"),m=+n.get("max"),y=n.getModel("splitLine"),b=n.getModel("axisTick"),O=n.getModel("axisLabel"),w=n.get("splitNumber"),x=b.get("splitNumber"),S=Me(y.get("length"),v),T=Me(b.get("length"),v),$=s,A=(l-s)/w,P=A/x,M=y.getModel("lineStyle").getLineStyle(),I=b.getModel("lineStyle").getLineStyle(),R=y.get("distance"),L,D,B=0;B<=w;B++){if(L=Math.cos($),D=Math.sin($),y.get("show")){var F=R?R+c:c,z=new _r({shape:{x1:L*(v-F)+d,y1:D*(v-F)+p,x2:L*(v-S-F)+d,y2:D*(v-S-F)+p},style:M,silent:!0});M.stroke==="auto"&&z.setStyle({stroke:o(B/w)}),f.add(z)}if(O.get("show")){var F=O.get("distance")+R,W=JO(Nn(B/w*(m-g)+g),O.get("formatter")),j=o(B/w),H=L*(v-S-F)+d,Z=D*(v-S-F)+p,J=O.get("rotate"),se=0;J==="radial"?(se=-$+2*Math.PI,se>Math.PI/2&&(se+=Math.PI)):J==="tangential"?se=-$-Math.PI/2:It(J)&&(se=J*Math.PI/180),se===0?f.add(new Tt({style:un(O,{text:W,x:H,y:Z,verticalAlign:D<-.8?"top":D>.8?"bottom":"middle",align:L<-.4?"left":L>.4?"right":"center"},{inheritColor:j}),silent:!0})):f.add(new Tt({style:un(O,{text:W,x:H,y:Z,verticalAlign:"middle",align:"center"},{inheritColor:j}),silent:!0,originX:H,originY:Z,rotation:se}))}if(b.get("show")&&B!==w){var F=b.get("distance");F=F?F+c:c;for(var oe=0;oe<=x;oe++){L=Math.cos($),D=Math.sin($);var de=new _r({shape:{x1:L*(v-F)+d,y1:D*(v-F)+p,x2:L*(v-T-F)+d,y2:D*(v-T-F)+p},silent:!0,style:I});I.stroke==="auto"&&de.setStyle({stroke:o((B+oe/x)/w)}),f.add(de),$+=P}$-=P}else $+=A}},e.prototype._renderPointer=function(n,r,i,o,a,s,l,u,c){var f=this.group,d=this._data,p=this._progressEls,v=[],g=n.get(["pointer","show"]),m=n.getModel("progress"),y=m.get("show"),b=n.getData(),O=b.mapDimension("value"),w=+n.get("min"),x=+n.get("max"),S=[w,x],T=[s,l];function $(P,M){var I=b.getItemModel(P),R=I.getModel("pointer"),L=Me(R.get("width"),a.r),D=Me(R.get("length"),a.r),B=n.get(["pointer","icon"]),F=R.get("offsetCenter"),z=Me(F[0],a.r),W=Me(F[1],a.r),j=R.get("keepAspect"),H;return B?H=Yn(B,z-L/2,W-D,L,D,null,j):H=new Dnt({shape:{angle:-Math.PI/2,width:L,r:D,x:z,y:W}}),H.rotation=-(M+Math.PI/2),H.x=a.cx,H.y=a.cy,H}function A(P,M){var I=m.get("roundCap"),R=I?sC:Ni,L=m.get("overlap"),D=L?m.get("width"):c/b.count(),B=L?a.r-D:a.r-(P+1)*D,F=L?a.r:a.r-P*D,z=new R({shape:{startAngle:s,endAngle:M,cx:a.cx,cy:a.cy,clockwise:u,r0:B,r:F}});return L&&(z.z2=x-b.get(O,P)%x),z}(y||g)&&(b.diff(d).add(function(P){var M=b.get(O,P);if(g){var I=$(P,s);gn(I,{rotation:-((isNaN(+M)?T[0]:Zt(M,S,T,!0))+Math.PI/2)},n),f.add(I),b.setItemGraphicEl(P,I)}if(y){var R=A(P,s),L=m.get("clip");gn(R,{shape:{endAngle:Zt(M,S,T,L)}},n),f.add(R),DR(n.seriesIndex,b.dataType,P,R),v[P]=R}}).update(function(P,M){var I=b.get(O,P);if(g){var R=d.getItemGraphicEl(M),L=R?R.rotation:s,D=$(P,L);D.rotation=L,kt(D,{rotation:-((isNaN(+I)?T[0]:Zt(I,S,T,!0))+Math.PI/2)},n),f.add(D),b.setItemGraphicEl(P,D)}if(y){var B=p[M],F=B?B.shape.endAngle:s,z=A(P,F),W=m.get("clip");kt(z,{shape:{endAngle:Zt(I,S,T,W)}},n),f.add(z),DR(n.seriesIndex,b.dataType,P,z),v[P]=z}}).execute(),b.each(function(P){var M=b.getItemModel(P),I=M.getModel("emphasis"),R=I.get("focus"),L=I.get("blurScope"),D=I.get("disabled");if(g){var B=b.getItemGraphicEl(P),F=b.getItemVisual(P,"style"),z=F.fill;if(B instanceof Rr){var W=B.style;B.useStyle(he({image:W.image,x:W.x,y:W.y,width:W.width,height:W.height},F))}else B.useStyle(F),B.type!=="pointer"&&B.setColor(z);B.setStyle(M.getModel(["pointer","itemStyle"]).getItemStyle()),B.style.fill==="auto"&&B.setStyle("fill",o(Zt(b.get(O,P),S,[0,1],!0))),B.z2EmphasisLift=0,Kr(B,M),Bn(B,R,L,D)}if(y){var j=v[P];j.useStyle(b.getItemVisual(P,"style")),j.setStyle(M.getModel(["progress","itemStyle"]).getItemStyle()),j.z2EmphasisLift=0,Kr(j,M),Bn(j,R,L,D)}}),this._progressEls=v)},e.prototype._renderAnchor=function(n,r){var i=n.getModel("anchor"),o=i.get("show");if(o){var a=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),c=Yn(s,r.cx-a/2+Me(l[0],r.r),r.cy-a/2+Me(l[1],r.r),a,a,null,u);c.z2=i.get("showAbove")?1:0,c.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(c)}},e.prototype._renderTitleAndDetail=function(n,r,i,o,a){var s=this,l=n.getData(),u=l.mapDimension("value"),c=+n.get("min"),f=+n.get("max"),d=new qe,p=[],v=[],g=n.isAnimationEnabled(),m=n.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){p[y]=new Tt({silent:!0}),v[y]=new Tt({silent:!0})}).update(function(y,b){p[y]=s._titleEls[b],v[y]=s._detailEls[b]}).execute(),l.each(function(y){var b=l.getItemModel(y),O=l.get(u,y),w=new qe,x=o(Zt(O,[c,f],[0,1],!0)),S=b.getModel("title");if(S.get("show")){var T=S.get("offsetCenter"),$=a.cx+Me(T[0],a.r),A=a.cy+Me(T[1],a.r),P=p[y];P.attr({z2:m?0:2,style:un(S,{x:$,y:A,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:x})}),w.add(P)}var M=b.getModel("detail");if(M.get("show")){var I=M.get("offsetCenter"),R=a.cx+Me(I[0],a.r),L=a.cy+Me(I[1],a.r),D=Me(M.get("width"),a.r),B=Me(M.get("height"),a.r),F=n.get(["progress","show"])?l.getItemVisual(y,"style").fill:x,P=v[y],z=M.get("formatter");P.attr({z2:m?0:2,style:un(M,{x:R,y:L,text:JO(O,z),width:isNaN(D)?null:D,height:isNaN(B)?null:B,align:"center",verticalAlign:"middle"},{inheritColor:F})}),Rse(P,{normal:M},O,function(j){return JO(j,z)}),g&&kse(P,y,l,n,{getFormattedLabel:function(j,H,Z,J,se,oe){return JO(oe?oe.interpolatedValue:O,z)}}),w.add(P)}d.add(w)}),this.group.add(d),this._titleEls=p,this._detailEls=v},e.type="gauge",e}(Kt),Nnt=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return e.prototype.getInitialData=function(n,r){return Hg(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(rn);function Lnt(t){t.registerChartView(knt),t.registerSeriesModel(Nnt)}var Bnt=["itemStyle","opacity"],Vnt=function(t){ie(e,t);function e(n,r){var i=t.call(this)||this,o=i,a=new Bi,s=new Tt;return o.setTextContent(s),i.setTextGuideLine(a),i.updateData(n,r,!0),i}return e.prototype.updateData=function(n,r,i){var o=this,a=n.hostModel,s=n.getItemModel(r),l=n.getItemLayout(r),u=s.getModel("emphasis"),c=s.get(Bnt);c=c??1,i||fs(o),o.useStyle(n.getItemVisual(r,"style")),o.style.lineJoin="round",i?(o.setShape({points:l.points}),o.style.opacity=0,gn(o,{style:{opacity:c}},a,r)):kt(o,{style:{opacity:c},shape:{points:l.points}},a,r),Kr(o,s),this._updateLabel(n,r),Bn(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(n,r){var i=this,o=this.getTextGuideLine(),a=i.getTextContent(),s=n.hostModel,l=n.getItemModel(r),u=n.getItemLayout(r),c=u.label,f=n.getItemVisual(r,"style"),d=f.fill;Jr(a,Cr(l),{labelFetcher:n.hostModel,labelDataIndex:r,defaultOpacity:f.opacity,defaultText:n.getName(r)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),i.setTextConfig({local:!0,inside:!!c.inside,insideStroke:d,outsideFill:d});var p=c.linePoints;o.setShape({points:p}),i.textGuideLineConfig={anchor:p?new ot(p[0][0],p[0][1]):null},kt(a,{style:{x:c.x,y:c.y}},s,r),a.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),k5(i,N5(l),{stroke:d})},e}(Li),znt=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return e.prototype.render=function(n,r,i){var o=n.getData(),a=this._data,s=this.group;o.diff(a).add(function(l){var u=new Vnt(o,l);o.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=a.getItemGraphicEl(u);c.updateData(o,l),s.add(c),o.setItemGraphicEl(l,c)}).remove(function(l){var u=a.getItemGraphicEl(l);ob(u,n,l)}).execute(),this._data=o},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Kt),Fnt=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new A_(Re(this.getData,this),Re(this.getRawData,this)),this._defaultLabelLine(n)},e.prototype.getInitialData=function(n,r){return Hg(this,{coordDimensions:["value"],encodeDefaulter:nt(l5,this)})},e.prototype._defaultLabelLine=function(n){sh(n,"labelLine",["show"]);var r=n.labelLine,i=n.emphasis.labelLine;r.show=r.show&&n.label.show,i.show=i.show&&n.emphasis.label.show},e.prototype.getDataParams=function(n){var r=this.getData(),i=t.prototype.getDataParams.call(this,n),o=r.mapDimension("value"),a=r.getSum(o);return i.percent=a?+(r.get(o,n)/a*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(rn);function Wnt(t,e){return ir(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Qnt(t,e){for(var n=t.mapDimension("value"),r=t.mapArray(n,function(l){return l}),i=[],o=e==="ascending",a=0,s=t.count();a<s;a++)i[a]=a;return Fe(e)?i.sort(e):e!=="none"&&i.sort(function(l,u){return o?r[l]-r[u]:r[u]-r[l]}),i}function Hnt(t){var e=t.hostModel,n=e.get("orient");t.each(function(r){var i=t.getItemModel(r),o=i.getModel("label"),a=o.get("position"),s=i.getModel("labelLine"),l=t.getItemLayout(r),u=l.points,c=a==="inner"||a==="inside"||a==="center"||a==="insideLeft"||a==="insideRight",f,d,p,v;if(c)a==="insideLeft"?(d=(u[0][0]+u[3][0])/2+5,p=(u[0][1]+u[3][1])/2,f="left"):a==="insideRight"?(d=(u[1][0]+u[2][0])/2-5,p=(u[1][1]+u[2][1])/2,f="right"):(d=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,p=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,f="center"),v=[[d,p],[d,p]];else{var g=void 0,m=void 0,y=void 0,b=void 0,O=s.get("length");process.env.NODE_ENV!=="production"&&(n==="vertical"&&["top","bottom"].indexOf(a)>-1&&(a="left",console.warn("Position error: Funnel chart on vertical orient dose not support top and bottom.")),n==="horizontal"&&["left","right"].indexOf(a)>-1&&(a="bottom",console.warn("Position error: Funnel chart on horizontal orient dose not support left and right."))),a==="left"?(g=(u[3][0]+u[0][0])/2,m=(u[3][1]+u[0][1])/2,y=g-O,d=y-5,f="right"):a==="right"?(g=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,y=g+O,d=y+5,f="left"):a==="top"?(g=(u[3][0]+u[0][0])/2,m=(u[3][1]+u[0][1])/2,b=m-O,p=b-5,f="center"):a==="bottom"?(g=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,b=m+O,p=b+5,f="center"):a==="rightTop"?(g=n==="horizontal"?u[3][0]:u[1][0],m=n==="horizontal"?u[3][1]:u[1][1],n==="horizontal"?(b=m-O,p=b-5,f="center"):(y=g+O,d=y+5,f="top")):a==="rightBottom"?(g=u[2][0],m=u[2][1],n==="horizontal"?(b=m+O,p=b+5,f="center"):(y=g+O,d=y+5,f="bottom")):a==="leftTop"?(g=u[0][0],m=n==="horizontal"?u[0][1]:u[1][1],n==="horizontal"?(b=m-O,p=b-5,f="center"):(y=g-O,d=y-5,f="right")):a==="leftBottom"?(g=n==="horizontal"?u[1][0]:u[3][0],m=n==="horizontal"?u[1][1]:u[2][1],n==="horizontal"?(b=m+O,p=b+5,f="center"):(y=g-O,d=y-5,f="right")):(g=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,n==="horizontal"?(b=m+O,p=b+5,f="center"):(y=g+O,d=y+5,f="left")),n==="horizontal"?(y=g,d=y):(b=m,p=b),v=[[g,m],[y,b]]}l.label={linePoints:v,x:d,y:p,verticalAlign:"middle",textAlign:f,inside:c}})}function Gnt(t,e){t.eachSeriesByType("funnel",function(n){var r=n.getData(),i=r.mapDimension("value"),o=n.get("sort"),a=Wnt(n,e),s=n.get("orient"),l=a.width,u=a.height,c=Qnt(r,o),f=a.x,d=a.y,p=s==="horizontal"?[Me(n.get("minSize"),u),Me(n.get("maxSize"),u)]:[Me(n.get("minSize"),l),Me(n.get("maxSize"),l)],v=r.getDataExtent(i),g=n.get("min"),m=n.get("max");g==null&&(g=Math.min(v[0],0)),m==null&&(m=v[1]);var y=n.get("funnelAlign"),b=n.get("gap"),O=s==="horizontal"?l:u,w=(O-b*(r.count()-1))/r.count(),x=function(L,D){if(s==="horizontal"){var B=r.get(i,L)||0,F=Zt(B,[g,m],p,!0),z=void 0;switch(y){case"top":z=d;break;case"center":z=d+(u-F)/2;break;case"bottom":z=d+(u-F);break}return[[D,z],[D,z+F]]}var W=r.get(i,L)||0,j=Zt(W,[g,m],p,!0),H;switch(y){case"left":H=f;break;case"center":H=f+(l-j)/2;break;case"right":H=f+l-j;break}return[[H,D],[H+j,D]]};o==="ascending"&&(w=-w,b=-b,s==="horizontal"?f+=l:d+=u,c=c.reverse());for(var S=0;S<c.length;S++){var T=c[S],$=c[S+1],A=r.getItemModel(T);if(s==="horizontal"){var P=A.get(["itemStyle","width"]);P==null?P=w:(P=Me(P,l),o==="ascending"&&(P=-P));var M=x(T,f),I=x($,f+P);f+=P+b,r.setItemLayout(T,{points:M.concat(I.slice().reverse())})}else{var R=A.get(["itemStyle","height"]);R==null?R=w:(R=Me(R,u),o==="ascending"&&(R=-R));var M=x(T,d),I=x($,d+R);d+=R+b,r.setItemLayout(T,{points:M.concat(I.slice().reverse())})}}Hnt(r)})}function jnt(t){t.registerChartView(znt),t.registerSeriesModel(Fnt),t.registerLayout(Gnt),t.registerProcessor($_("funnel"))}var Unt=.3,Znt=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._dataGroup=new qe,n._initialized=!1,n}return e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(n,r,i,o){this._progressiveEls=null;var a=this._dataGroup,s=n.getData(),l=this._data,u=n.coordinateSystem,c=u.dimensions,f=GU(n);s.diff(l).add(d).update(p).remove(v).execute();function d(m){var y=HU(s,a,m,c,u);OM(y,s,m,f)}function p(m,y){var b=l.getItemGraphicEl(y),O=afe(s,m,c,u);s.setItemGraphicEl(m,b),kt(b,{shape:{points:O}},n,m),fs(b),OM(b,s,m,f)}function v(m){var y=l.getItemGraphicEl(m);a.remove(y)}if(!this._initialized){this._initialized=!0;var g=Xnt(u,n,function(){setTimeout(function(){a.removeClipPath()})});a.setClipPath(g)}this._data=s},e.prototype.incrementalPrepareRender=function(n,r,i){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},e.prototype.incrementalRender=function(n,r,i){for(var o=r.getData(),a=r.coordinateSystem,s=a.dimensions,l=GU(r),u=this._progressiveEls=[],c=n.start;c<n.end;c++){var f=HU(o,this._dataGroup,c,s,a);f.incremental=!0,OM(f,o,c,l),u.push(f)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(Kt);function Xnt(t,e,n){var r=t.model,i=t.getRect(),o=new Pt({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),a=r.get("layout")==="horizontal"?"width":"height";return o.setShape(a,0),gn(o,{shape:{width:i.width,height:i.height}},e,n),o}function afe(t,e,n,r){for(var i=[],o=0;o<n.length;o++){var a=n[o],s=t.get(t.mapDimension(a),e);Ynt(s,r.getAxis(a).type)||i.push(r.dataToPoint(s,a))}return i}function HU(t,e,n,r,i){var o=afe(t,n,r,i),a=new Bi({shape:{points:o},z2:10});return e.add(a),t.setItemGraphicEl(n,a),a}function GU(t){var e=t.get("smooth",!0);return e===!0&&(e=Unt),e=ul(e),Mc(e)&&(e=0),{smooth:e}}function OM(t,e,n,r){t.useStyle(e.getItemVisual(n,"style")),t.style.fill=null,t.setShape("smooth",r.smooth);var i=e.getItemModel(n),o=i.getModel("emphasis");Kr(t,i,"lineStyle"),Bn(t,o.get("focus"),o.get("blurScope"),o.get("disabled"))}function Ynt(t,e){return e==="category"?t==null:t==null||isNaN(t)}var qnt=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return e.prototype.getInitialData=function(n,r){return pl(null,this,{useEncodeDefaulter:Re(Knt,null,this)})},e.prototype.getRawIndicesByActiveState=function(n){var r=this.coordinateSystem,i=this.getData(),o=[];return r.eachActiveState(i,function(a,s){n===a&&o.push(i.getRawIndex(s))}),o},e.type="series.parallel",e.dependencies=["parallel"],e.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},e}(rn);function Knt(t){var e=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(e){var n={};return V(e.dimensions,function(r){var i=Jnt(r);n[r]=i}),n}}function Jnt(t){return+t.replace("dim","")}var ert=["lineStyle","opacity"],trt={seriesType:"parallel",reset:function(t,e){var n=t.coordinateSystem,r={normal:t.get(["lineStyle","opacity"]),active:t.get("activeOpacity"),inactive:t.get("inactiveOpacity")};return{progress:function(i,o){n.eachActiveState(o,function(a,s){var l=r[a];if(a==="normal"&&o.hasItemOption){var u=o.getItemModel(s).get(ert,!0);u!=null&&(l=u)}var c=o.ensureUniqueItemVisual(s,"style");c.opacity=l},i.start,i.end)}}}};function nrt(t){rrt(t),irt(t)}function rrt(t){if(!t.parallel){var e=!1;V(t.series,function(n){n&&n.type==="parallel"&&(e=!0)}),e&&(t.parallel=[{}])}}function irt(t){var e=nn(t.parallelAxis);V(e,function(n){if(Qe(n)){var r=n.parallelIndex||0,i=nn(t.parallel)[r];i&&i.parallelAxisDefault&&it(n,i.parallelAxisDefault,!1)}})}var ort=5,art=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){this._model=n,this._api=i,this._handlers||(this._handlers={},V(srt,function(o,a){i.getZr().on(a,this._handlers[a]=Re(o,this))},this)),Vg(this,"_throttledDispatchExpand",n.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(n,r){ub(this,"_throttledDispatchExpand"),V(this._handlers,function(i,o){r.getZr().off(o,i)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(n){this._dispatchExpand(n)},e.prototype._dispatchExpand=function(n){n&&this._api.dispatchAction(he({type:"parallelAxisExpand"},n))},e.type="parallel",e}(hn),srt={mousedown:function(t){wM(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(wM(this,"click")&&e){var n=[t.offsetX,t.offsetY],r=Math.pow(e[0]-n[0],2)+Math.pow(e[1]-n[1],2);if(r>ort)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!(this._mouseDownPoint||!wM(this,"mousemove"))){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),r=n.behavior;r==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(r==="none"?null:{axisExpandWindow:n.axisExpandWindow,animation:r==="jump"?null:{duration:0}})}}};function wM(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}var lrt=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(n){var r=this.option;n&&it(r,n,!0),this._initDimensions()},e.prototype.contains=function(n,r){var i=n.get("parallelIndex");return i!=null&&r.getComponent("parallel",i)===this},e.prototype.setAxisExpand=function(n){V(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(r){n.hasOwnProperty(r)&&(this.option[r]=n[r])},this)},e.prototype._initDimensions=function(){var n=this.dimensions=[],r=this.parallelAxisIndex=[],i=Yt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(o){return(o.get("parallelIndex")||0)===this.componentIndex},this);V(i,function(o){n.push("dim"+o.get("dim")),r.push(o.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(pt),urt=function(t){ie(e,t);function e(n,r,i,o,a){var s=t.call(this,n,r,i)||this;return s.type=o||"value",s.axisIndex=a,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(ka);function Nh(t,e,n,r,i,o){t=t||0;var a=n[1]-n[0];if(i!=null&&(i=Cp(i,[0,a])),o!=null&&(o=Math.max(o,i??0)),r==="all"){var s=Math.abs(e[1]-e[0]);s=Cp(s,[0,a]),i=o=Cp(s,[i,o]),r=0}e[0]=Cp(e[0],n),e[1]=Cp(e[1],n);var l=xM(e,r);e[r]+=t;var u=i||0,c=n.slice();l.sign<0?c[0]+=u:c[1]-=u,e[r]=Cp(e[r],c);var f;return f=xM(e,r),i!=null&&(f.sign!==l.sign||f.span<i)&&(e[1-r]=e[r]+l.sign*i),f=xM(e,r),o!=null&&f.span>o&&(e[1-r]=e[r]+f.sign*o),e}function xM(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function Cp(t,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,t))}var SM=V,sfe=Math.min,lfe=Math.max,jU=Math.floor,crt=Math.ceil,UU=Nn,frt=Math.PI,drt=function(){function t(e,n,r){this.type="parallel",this._axesMap=Be(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,n,r)}return t.prototype._init=function(e,n,r){var i=e.dimensions,o=e.parallelAxisIndex;SM(i,function(a,s){var l=o[s],u=n.getComponent("parallelAxis",l),c=this._axesMap.set(a,new urt(a,x_(u),[0,0],u.get("type"),l)),f=c.type==="category";c.onBand=f&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},t.prototype.update=function(e,n){this._updateAxesFromSeries(this._model,e)},t.prototype.containPoint=function(e){var n=this._makeLayoutInfo(),r=n.axisBase,i=n.layoutBase,o=n.pixelDimIndex,a=e[1-o],s=e[o];return a>=r&&a<=r+n.axisLength&&s>=i&&s<=i+n.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(e,n){n.eachSeries(function(r){if(e.contains(r,n)){var i=r.getData();SM(this.dimensions,function(o){var a=this._axesMap.get(o);a.scale.unionExtentFromData(i,i.mapDimension(o)),dh(a.scale,a.model)},this)}},this)},t.prototype.resize=function(e,n){this._rect=ir(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var e=this._model,n=this._rect,r=["x","y"],i=["width","height"],o=e.get("layout"),a=o==="horizontal"?0:1,s=n[i[a]],l=[0,s],u=this.dimensions.length,c=ew(e.get("axisExpandWidth"),l),f=ew(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,p=e.get("axisExpandWindow"),v;if(p)v=ew(p[1]-p[0],l),p[1]=p[0]+v;else{v=ew(c*(f-1),l);var g=e.get("axisExpandCenter")||jU(u/2);p=[c*g-v/2],p[1]=p[0]+v}var m=(s-v)/(u-f);m<3&&(m=0);var y=[jU(UU(p[0]/c,1))+1,crt(UU(p[1]/c,1))-1],b=m/c*p[0];return{layout:o,pixelDimIndex:a,layoutBase:n[r[a]],layoutLength:s,axisBase:n[r[1-a]],axisLength:n[i[1-a]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:m,axisExpandWindow:p,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:b}},t.prototype._layoutAxes=function(){var e=this._rect,n=this._axesMap,r=this.dimensions,i=this._makeLayoutInfo(),o=i.layout;n.each(function(a){var s=[0,i.axisLength],l=a.inverse?1:0;a.setExtent(s[l],s[1-l])}),SM(r,function(a,s){var l=(i.axisExpandable?prt:hrt)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:frt/2,vertical:0},f=[u[o].x+e.x,u[o].y+e.y],d=c[o],p=ao();Yc(p,p,d),us(p,p,f),this._axesLayout[a]={position:f,rotation:d,transform:p,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},t.prototype.getAxis=function(e){return this._axesMap.get(e)},t.prototype.dataToPoint=function(e,n){return this.axisCoordToPoint(this._axesMap.get(n).dataToCoord(e),n)},t.prototype.eachActiveState=function(e,n,r,i){r==null&&(r=0),i==null&&(i=e.count());var o=this._axesMap,a=this.dimensions,s=[],l=[];V(a,function(m){s.push(e.mapDimension(m)),l.push(o.get(m).model)});for(var u=this.hasAxisBrushed(),c=r;c<i;c++){var f=void 0;if(!u)f="normal";else{f="active";for(var d=e.getValues(s,c),p=0,v=a.length;p<v;p++){var g=l[p].getActiveState(d[p]);if(g==="inactive"){f="inactive";break}}}n(f,c)}},t.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,n=this._axesMap,r=!1,i=0,o=e.length;i<o;i++)n.get(e[i]).model.getActiveState()!=="normal"&&(r=!0);return r},t.prototype.axisCoordToPoint=function(e,n){var r=this._axesLayout[n];return is([e,0],r.transform)},t.prototype.getAxisLayout=function(e){return Ue(this._axesLayout[e])},t.prototype.getSlidedAxisExpandWindow=function(e){var n=this._makeLayoutInfo(),r=n.pixelDimIndex,i=n.axisExpandWindow.slice(),o=i[1]-i[0],a=[0,n.axisExpandWidth*(n.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:i};var s=e[r]-n.layoutBase-n.axisExpandWindow0Pos,l,u="slide",c=n.axisCollapseWidth,f=this._model.get("axisExpandSlideTriggerArea"),d=f[0]!=null;if(c)d&&c&&s<o*f[0]?(u="jump",l=s-o*f[2]):d&&c&&s>o*(1-f[0])?(u="jump",l=s-o*(1-f[2])):(l=s-o*f[1])>=0&&(l=s-o*(1-f[1]))<=0&&(l=0),l*=n.axisExpandWidth/c,l?Nh(l,i,a,"all"):u="none";else{var p=i[1]-i[0],v=a[1]*s/p;i=[lfe(0,v-p/2)],i[1]=sfe(a[1],i[0]+p),i[0]=i[1]-p}return{axisExpandWindow:i,behavior:u}},t}();function ew(t,e){return sfe(lfe(t,e[0]),e[1])}function hrt(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function prt(t,e){var n=e.layoutLength,r=e.axisExpandWidth,i=e.axisCount,o=e.axisCollapseWidth,a=e.winInnerIndices,s,l=o,u=!1,c;return t<a[0]?(s=t*o,c=o):t<=a[1]?(s=e.axisExpandWindow0Pos+t*r-e.axisExpandWindow[0],l=r,u=!0):(s=n-(i-1-t)*o,c=o),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:c}}function vrt(t,e){var n=[];return t.eachComponent("parallel",function(r,i){var o=new drt(r,t,e);o.name="parallel_"+i,o.resize(r,e),r.coordinateSystem=o,o.model=r,n.push(o)}),t.eachSeries(function(r){if(r.get("coordinateSystem")==="parallel"){var i=r.getReferringComponents("parallel",rr).models[0];r.coordinateSystem=i.coordinateSystem}}),n}var grt={create:vrt},Sk=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.activeIntervals=[],n}return e.prototype.getAreaSelectStyle=function(){return uh([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(n){var r=this.activeIntervals=Ue(n);if(r)for(var i=r.length-1;i>=0;i--)Ao(r[i])},e.prototype.getActiveState=function(n){var r=this.activeIntervals;if(!r.length)return"normal";if(n==null||isNaN(+n))return"inactive";if(r.length===1){var i=r[0];if(i[0]<=n&&n<=i[1])return"active"}else for(var o=0,a=r.length;o<a;o++)if(r[o][0]<=n&&n<=r[o][1])return"active";return"inactive"},e}(pt);Qn(Sk,Qg);var hh=!0,Ob=Math.min,og=Math.max,mrt=Math.pow,yrt=1e4,brt=6,_rt=6,ZU="globalPan",Ort={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},wrt={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},XU={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},xrt=0,o3=function(t){ie(e,t);function e(n){var r=t.call(this)||this;return r._track=[],r._covers=[],r._handlers={},process.env.NODE_ENV!=="production"&&je(n),r._zr=n,r.group=new qe,r._uid="brushController_"+xrt++,V(Ert,function(i,o){this._handlers[o]=Re(i,this)},r),r}return e.prototype.enableBrush=function(n){return process.env.NODE_ENV!=="production"&&je(this._mounted),this._brushType&&this._doDisableBrush(),n.brushType&&this._doEnableBrush(n),this},e.prototype._doEnableBrush=function(n){var r=this._zr;this._enableGlobalPan||det(r,ZU,this._uid),V(this._handlers,function(i,o){r.on(o,i)}),this._brushType=n.brushType,this._brushOption=it(Ue(XU),n,!0)},e.prototype._doDisableBrush=function(){var n=this._zr;het(n,ZU,this._uid),V(this._handlers,function(r,i){n.off(i,r)}),this._brushType=this._brushOption=null},e.prototype.setPanels=function(n){if(n&&n.length){var r=this._panels={};V(n,function(i){r[i.panelId]=Ue(i)})}else this._panels=null;return this},e.prototype.mount=function(n){n=n||{},process.env.NODE_ENV!=="production"&&(this._mounted=!0),this._enableGlobalPan=n.enableGlobalPan;var r=this.group;return this._zr.add(r),r.attr({x:n.x||0,y:n.y||0,rotation:n.rotation||0,scaleX:n.scaleX||1,scaleY:n.scaleY||1}),this._transform=r.getLocalTransform(),this},e.prototype.updateCovers=function(n){process.env.NODE_ENV!=="production"&&je(this._mounted),n=ye(n,function(d){return it(Ue(XU),d,!0)});var r="\0-brush-index-",i=this._covers,o=this._covers=[],a=this,s=this._creatingCover;return new au(i,n,u,l).add(c).update(c).remove(f).execute(),this;function l(d,p){return(d.id!=null?d.id:r+p)+"-"+d.brushType}function u(d,p){return l(d.__brushOption,p)}function c(d,p){var v=n[d];if(p!=null&&i[p]===s)o[d]=i[p];else{var g=o[d]=p!=null?(i[p].__brushOption=v,i[p]):cfe(a,ufe(a,v));a3(a,g)}}function f(d){i[d]!==s&&a.group.remove(i[d])}},e.prototype.unmount=function(){if(!(process.env.NODE_ENV!=="production"&&!this._mounted))return this.enableBrush(!1),Ck(this),this._zr.remove(this.group),process.env.NODE_ENV!=="production"&&(this._mounted=!1),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(Ma);function ufe(t,e){var n=YP[e.brushType].createCover(t,e);return n.__brushOption=e,dfe(n,e),t.group.add(n),n}function cfe(t,e){var n=s3(e);return n.endCreating&&(n.endCreating(t,e),dfe(e,e.__brushOption)),e}function ffe(t,e){var n=e.__brushOption;s3(e).updateCoverShape(t,e,n.range,n)}function dfe(t,e){var n=e.z;n==null&&(n=yrt),t.traverse(function(r){r.z=n,r.z2=n})}function a3(t,e){s3(e).updateCommon(t,e),ffe(t,e)}function s3(t){return YP[t.__brushOption.brushType]}function l3(t,e,n){var r=t._panels;if(!r)return hh;var i,o=t._transform;return V(r,function(a){a.isTargetByCursor(e,n,o)&&(i=a)}),i}function hfe(t,e){var n=t._panels;if(!n)return hh;var r=e.__brushOption.panelId;return r!=null?n[r]:hh}function Ck(t){var e=t._covers,n=e.length;return V(e,function(r){t.group.remove(r)},t),e.length=0,!!n}function ph(t,e){var n=ye(t._covers,function(r){var i=r.__brushOption,o=Ue(i.range);return{brushType:i.brushType,panelId:i.panelId,range:o}});t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function Srt(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],r=e[0],i=n[0]-r[0],o=n[1]-r[1],a=mrt(i*i+o*o,.5);return a>brt}function pfe(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function vfe(t,e,n,r){var i=new qe;return i.add(new Pt({name:"main",style:u3(n),silent:!0,draggable:!0,cursor:"move",drift:nt(YU,t,e,i,["n","s","w","e"]),ondragend:nt(ph,e,{isEnd:!0})})),V(r,function(o){i.add(new Pt({name:o.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:nt(YU,t,e,i,o),ondragend:nt(ph,e,{isEnd:!0})}))}),i}function gfe(t,e,n,r){var i=r.brushStyle.lineWidth||0,o=og(i,_rt),a=n[0][0],s=n[1][0],l=a-i/2,u=s-i/2,c=n[0][1],f=n[1][1],d=c-o+i/2,p=f-o+i/2,v=c-a,g=f-s,m=v+i,y=g+i;Rl(t,e,"main",a,s,v,g),r.transformable&&(Rl(t,e,"w",l,u,o,y),Rl(t,e,"e",d,u,o,y),Rl(t,e,"n",l,u,m,o),Rl(t,e,"s",l,p,m,o),Rl(t,e,"nw",l,u,o,o),Rl(t,e,"ne",d,u,o,o),Rl(t,e,"sw",l,p,o,o),Rl(t,e,"se",d,p,o,o))}function Tk(t,e){var n=e.__brushOption,r=n.transformable,i=e.childAt(0);i.useStyle(u3(n)),i.attr({silent:!r,cursor:r?"move":"default"}),V([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(o){var a=e.childOfName(o.join("")),s=o.length===1?Pk(t,o[0]):Trt(t,o);a&&a.attr({silent:!r,invisible:!r,cursor:r?wrt[s]+"-resize":null})})}function Rl(t,e,n,r,i,o,a){var s=e.childOfName(n);s&&s.setShape($rt(c3(t,e,[[r,i],[r+o,i+a]])))}function u3(t){return Ge({strokeNoScale:!0},t.brushStyle)}function mfe(t,e,n,r){var i=[Ob(t,n),Ob(e,r)],o=[og(t,n),og(e,r)];return[[i[0],o[0]],[i[1],o[1]]]}function Crt(t){return wc(t.group)}function Pk(t,e){var n={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},i=$P(n[e],Crt(t));return r[i]}function Trt(t,e){var n=[Pk(t,e[0]),Pk(t,e[1])];return(n[0]==="e"||n[0]==="w")&&n.reverse(),n.join("")}function YU(t,e,n,r,i,o){var a=n.__brushOption,s=t.toRectRange(a.range),l=yfe(e,i,o);V(r,function(u){var c=Ort[u];s[c[0]][c[1]]+=l[c[0]]}),a.range=t.fromRectRange(mfe(s[0][0],s[1][0],s[0][1],s[1][1])),a3(e,n),ph(e,{isEnd:!1})}function Prt(t,e,n,r){var i=e.__brushOption.range,o=yfe(t,n,r);V(i,function(a){a[0]+=o[0],a[1]+=o[1]}),a3(t,e),ph(t,{isEnd:!1})}function yfe(t,e,n){var r=t.group,i=r.transformCoordToLocal(e,n),o=r.transformCoordToLocal(0,0);return[i[0]-o[0],i[1]-o[1]]}function c3(t,e,n){var r=hfe(t,e);return r&&r!==hh?r.clipPath(n,t._transform):Ue(n)}function $rt(t){var e=Ob(t[0][0],t[1][0]),n=Ob(t[0][1],t[1][1]),r=og(t[0][0],t[1][0]),i=og(t[0][1],t[1][1]);return{x:e,y:n,width:r-e,height:i-n}}function Art(t,e,n){if(!(!t._brushType||Mrt(t,e.offsetX,e.offsetY))){var r=t._zr,i=t._covers,o=l3(t,e,n);if(!t._dragging)for(var a=0;a<i.length;a++){var s=i[a].__brushOption;if(o&&(o===hh||s.panelId===o.panelId)&&YP[s.brushType].contain(i[a],n[0],n[1]))return}o&&r.setCursorStyle("crosshair")}}function $k(t){var e=t.event;e.preventDefault&&e.preventDefault()}function Ak(t,e,n){return t.childOfName("main").contain(e,n)}function bfe(t,e,n,r){var i=t._creatingCover,o=t._creatingPanel,a=t._brushOption,s;if(t._track.push(n.slice()),Srt(t)||i){if(o&&!i){a.brushMode==="single"&&Ck(t);var l=Ue(a);l.brushType=qU(l.brushType,o),l.panelId=o===hh?null:o.panelId,i=t._creatingCover=ufe(t,l),t._covers.push(i)}if(i){var u=YP[qU(t._brushType,o)],c=i.__brushOption;c.range=u.getCreatingRange(c3(t,i,t._track)),r&&(cfe(t,i),u.updateCommon(t,i)),ffe(t,i),s={isEnd:r}}}else r&&a.brushMode==="single"&&a.removeOnClick&&l3(t,e,n)&&Ck(t)&&(s={isEnd:r,removeOnClick:!0});return s}function qU(t,e){return t==="auto"?(process.env.NODE_ENV!=="production"&&je(e&&e.defaultBrushType,'MUST have defaultBrushType when brushType is "atuo"'),e.defaultBrushType):t}var Ert={mousedown:function(t){if(this._dragging)KU(this,t);else if(!t.target||!t.target.draggable){$k(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null;var n=this._creatingPanel=l3(this,t,e);n&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,r=this.group.transformCoordToLocal(e,n);if(Art(this,t,r),this._dragging){$k(t);var i=bfe(this,t,r,!1);i&&ph(this,i)}},mouseup:function(t){KU(this,t)}};function KU(t,e){if(t._dragging){$k(e);var n=e.offsetX,r=e.offsetY,i=t.group.transformCoordToLocal(n,r),o=bfe(t,e,i,!0);t._dragging=!1,t._track=[],t._creatingCover=null,o&&ph(t,o)}}function Mrt(t,e,n){var r=t._zr;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}var YP={lineX:JU(0),lineY:JU(1),rect:{createCover:function(t,e){function n(r){return r}return vfe({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=pfe(t);return mfe(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,r){gfe(t,e,n,r)},updateCommon:Tk,contain:Ak},polygon:{createCover:function(t,e){var n=new qe;return n.add(new Bi({name:"main",style:u3(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new Li({name:"main",draggable:!0,drift:nt(Prt,t,e),ondragend:nt(ph,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,r){e.childAt(0).setShape({points:c3(t,e,n)})},updateCommon:Tk,contain:Ak}};function JU(t){return{createCover:function(e,n){return vfe({toRectRange:function(r){var i=[r,[0,100]];return t&&i.reverse(),i},fromRectRange:function(r){return r[t]}},e,n,[[["w"],["e"]],[["n"],["s"]]][t])},getCreatingRange:function(e){var n=pfe(e),r=Ob(n[0][t],n[1][t]),i=og(n[0][t],n[1][t]);return[r,i]},updateCoverShape:function(e,n,r,i){var o,a=hfe(e,n);if(a!==hh&&a.getLinearBrushOtherExtent)o=a.getLinearBrushOtherExtent(t);else{var s=e._zr;o=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[r,o];t&&l.reverse(),gfe(e,n,l,i)},updateCommon:Tk,contain:Ak}}function _fe(t){return t=f3(t),function(e){return Y8(e,t)}}function Ofe(t,e){return t=f3(t),function(n){var r=e??n,i=r?t.width:t.height,o=r?t.x:t.y;return[o,o+(i||0)]}}function wfe(t,e,n){var r=f3(t);return function(i,o){return r.contain(o[0],o[1])&&!jP(i,e,n)}}function f3(t){return at.create(t)}var Irt=["axisLine","axisTickLabel","axisName"],Drt=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r){t.prototype.init.apply(this,arguments),(this._brushController=new o3(r.getZr())).on("brush",Re(this._onBrush,this))},e.prototype.render=function(n,r,i,o){if(!Rrt(n,r,o)){this.axisModel=n,this.api=i,this.group.removeAll();var a=this._axisGroup;if(this._axisGroup=new qe,this.group.add(this._axisGroup),!!n.get("show")){var s=Nrt(n,r),l=s.coordinateSystem,u=n.getAreaSelectStyle(),c=u.width,f=n.axis.dim,d=l.getAxisLayout(f),p=he({strokeContainThreshold:c},d),v=new Ei(n,p);V(Irt,v.add,v),this._axisGroup.add(v.getGroup()),this._refreshBrushController(p,u,n,s,c,i),__(a,this._axisGroup,n)}}},e.prototype._refreshBrushController=function(n,r,i,o,a,s){var l=i.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),f=at.create({x:l[0],y:-a/2,width:u,height:a});f.x-=c,f.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:n.rotation,x:n.position[0],y:n.position[1]}).setPanels([{panelId:"pl",clipPath:_fe(f),isTargetByCursor:wfe(f,s,o),getLinearBrushOtherExtent:Ofe(f,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(krt(i))},e.prototype._onBrush=function(n){var r=n.areas,i=this.axisModel,o=i.axis,a=ye(r,function(s){return[o.coordToData(s.range[0],!0),o.coordToData(s.range[1],!0)]});(!i.option.realtime===n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:a})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(hn);function Rrt(t,e,n){return n&&n.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}function krt(t){var e=t.axis;return ye(t.activeIntervals,function(n){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(n[0],!0),e.dataToCoord(n[1],!0)]}})}function Nrt(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}var Lrt={type:"axisAreaSelect",event:"axisAreaSelected"};function Brt(t){t.registerAction(Lrt,function(e,n){n.eachComponent({mainType:"parallelAxis",query:e},function(r){r.axis.model.setActiveIntervals(e.intervals)})}),t.registerAction("parallelAxisExpand",function(e,n){n.eachComponent({mainType:"parallel",query:e},function(r){r.setAxisExpand(e)})})}var Vrt={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function xfe(t){t.registerComponentView(art),t.registerComponentModel(lrt),t.registerCoordinateSystem("parallel",grt),t.registerPreprocessor(nrt),t.registerComponentModel(Sk),t.registerComponentView(Drt),ig(t,"parallel",Sk,Vrt),Brt(t)}function zrt(t){vt(xfe),t.registerChartView(Znt),t.registerSeriesModel(qnt),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,trt)}var Frt=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.cpx2=0,this.cpy2=0,this.extent=0}return t}(),Wrt=function(t){ie(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new Frt},e.prototype.buildPath=function(n,r){var i=r.extent;n.moveTo(r.x1,r.y1),n.bezierCurveTo(r.cpx1,r.cpy1,r.cpx2,r.cpy2,r.x2,r.y2),r.orient==="vertical"?(n.lineTo(r.x2+i,r.y2),n.bezierCurveTo(r.cpx2+i,r.cpy2,r.cpx1+i,r.cpy1,r.x1+i,r.y1)):(n.lineTo(r.x2,r.y2+i),n.bezierCurveTo(r.cpx2,r.cpy2+i,r.cpx1,r.cpy1+i,r.x1,r.y1+i)),n.closePath()},e.prototype.highlight=function(){iu(this)},e.prototype.downplay=function(){ou(this)},e}(mt),Qrt=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._focusAdjacencyDisabled=!1,n}return e.prototype.render=function(n,r,i){var o=this,a=n.getGraph(),s=this.group,l=n.layoutInfo,u=l.width,c=l.height,f=n.getData(),d=n.getData("edge"),p=n.get("orient");this._model=n,s.removeAll(),s.x=l.x,s.y=l.y,a.eachEdge(function(v){var g=new Wrt,m=Ke(g);m.dataIndex=v.dataIndex,m.seriesIndex=n.seriesIndex,m.dataType="edge";var y=v.getModel(),b=y.getModel("lineStyle"),O=b.get("curveness"),w=v.node1.getLayout(),x=v.node1.getModel(),S=x.get("localX"),T=x.get("localY"),$=v.node2.getLayout(),A=v.node2.getModel(),P=A.get("localX"),M=A.get("localY"),I=v.getLayout(),R,L,D,B,F,z,W,j;g.shape.extent=Math.max(1,I.dy),g.shape.orient=p,p==="vertical"?(R=(S!=null?S*u:w.x)+I.sy,L=(T!=null?T*c:w.y)+w.dy,D=(P!=null?P*u:$.x)+I.ty,B=M!=null?M*c:$.y,F=R,z=L*(1-O)+B*O,W=D,j=L*O+B*(1-O)):(R=(S!=null?S*u:w.x)+w.dx,L=(T!=null?T*c:w.y)+I.sy,D=P!=null?P*u:$.x,B=(M!=null?M*c:$.y)+I.ty,F=R*(1-O)+D*O,z=L,W=R*O+D*(1-O),j=B),g.setShape({x1:R,y1:L,x2:D,y2:B,cpx1:F,cpy1:z,cpx2:W,cpy2:j}),g.useStyle(b.getItemStyle()),eZ(g.style,p,v);var H=""+y.get("value"),Z=Cr(y,"edgeLabel");Jr(g,Z,{labelFetcher:{getFormattedLabel:function(oe,de,re,ue,ee,X){return n.getFormattedLabel(oe,de,"edge",ue,Ro(ee,Z.normal&&Z.normal.get("formatter"),H),X)}},labelDataIndex:v.dataIndex,defaultText:H}),g.setTextConfig({position:"inside"});var J=y.getModel("emphasis");Kr(g,y,"lineStyle",function(oe){var de=oe.getItemStyle();return eZ(de,p,v),de}),s.add(g),d.setItemGraphicEl(v.dataIndex,g);var se=J.get("focus");Bn(g,se==="adjacency"?v.getAdjacentDataIndices():se==="trajectory"?v.getTrajectoryDataIndices():se,J.get("blurScope"),J.get("disabled"))}),a.eachNode(function(v){var g=v.getLayout(),m=v.getModel(),y=m.get("localX"),b=m.get("localY"),O=m.getModel("emphasis"),w=m.get(["itemStyle","borderRadius"])||0,x=new Pt({shape:{x:y!=null?y*u:g.x,y:b!=null?b*c:g.y,width:g.dx,height:g.dy,r:w},style:m.getModel("itemStyle").getItemStyle(),z2:10});Jr(x,Cr(m),{labelFetcher:{getFormattedLabel:function(T,$){return n.getFormattedLabel(T,$,"node")}},labelDataIndex:v.dataIndex,defaultText:v.id}),x.disableLabelAnimation=!0,x.setStyle("fill",v.getVisual("color")),x.setStyle("decal",v.getVisual("style").decal),Kr(x,m),s.add(x),f.setItemGraphicEl(v.dataIndex,x),Ke(x).dataType="node";var S=O.get("focus");Bn(x,S==="adjacency"?v.getAdjacentDataIndices():S==="trajectory"?v.getTrajectoryDataIndices():S,O.get("blurScope"),O.get("disabled"))}),f.eachItemGraphicEl(function(v,g){var m=f.getItemModel(g);m.get("draggable")&&(v.drift=function(y,b){o._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=b,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:n.id,dataIndex:f.getRawIndex(g),localX:this.shape.x/u,localY:this.shape.y/c})},v.ondragend=function(){o._focusAdjacencyDisabled=!1},v.draggable=!0,v.cursor="move")}),!this._data&&n.isAnimationEnabled()&&s.setClipPath(Hrt(s.getBoundingRect(),n,function(){s.removeClipPath()})),this._data=n.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(Kt);function eZ(t,e,n){switch(t.fill){case"source":t.fill=n.node1.getVisual("color"),t.decal=n.node1.getVisual("style").decal;break;case"target":t.fill=n.node2.getVisual("color"),t.decal=n.node2.getVisual("style").decal;break;case"gradient":var r=n.node1.getVisual("color"),i=n.node2.getVisual("color");Ie(r)&&Ie(i)&&(t.fill=new Eg(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:r,offset:0},{color:i,offset:1}]))}}function Hrt(t,e,n){var r=new Pt({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return gn(r,{shape:{width:t.width+20}},e,n),r}var Grt=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.getInitialData=function(n,r){var i=n.edges||n.links,o=n.data||n.nodes,a=n.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l<a.length;l++)if(a[l].depth!=null&&a[l].depth>=0)s[a[l].depth]=new tn(a[l],this,r);else if(process.env.NODE_ENV!=="production")throw new Error("levels[i].depth is mandatory and should be natural number");if(o&&i){var u=ofe(o,i,this,!0,c);return u.data}function c(f,d){f.wrapMethod("getItemModel",function(p,v){var g=p.parentModel,m=g.getData().getItemLayout(v);if(m){var y=m.depth,b=g.levelModels[y];b&&(p.parentModel=b)}return p}),d.wrapMethod("getItemModel",function(p,v){var g=p.parentModel,m=g.getGraph().getEdgeByIndex(v),y=m.node1.getLayout();if(y){var b=y.depth,O=g.levelModels[b];O&&(p.parentModel=O)}return p})}},e.prototype.setNodePosition=function(n,r){var i=this.option.data||this.option.nodes,o=i[n];o.localX=r[0],o.localY=r[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(n,r,i){function o(p){return isNaN(p)||p==null}if(i==="edge"){var a=this.getDataParams(n,i),s=a.data,l=a.value,u=s.source+" -- "+s.target;return Tr("nameValue",{name:u,value:l,noValue:o(l)})}else{var c=this.getGraph().getNodeByIndex(n),f=c.getLayout().value,d=this.getDataParams(n,i).data.name;return Tr("nameValue",{name:d!=null?d+"":null,value:f,noValue:o(f)})}},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(n,r){var i=t.prototype.getDataParams.call(this,n,r);if(i.value==null&&r==="node"){var o=this.getGraph().getNodeByIndex(n),a=o.getLayout().value;i.value=a}return i},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(rn);function jrt(t,e){t.eachSeriesByType("sankey",function(n){var r=n.get("nodeWidth"),i=n.get("nodeGap"),o=Urt(n,e);n.layoutInfo=o;var a=o.width,s=o.height,l=n.getGraph(),u=l.nodes,c=l.edges;Xrt(u);var f=Yt(u,function(g){return g.getLayout().value===0}),d=f.length!==0?0:n.get("layoutIterations"),p=n.get("orient"),v=n.get("nodeAlign");Zrt(u,c,r,i,a,s,d,p,v)})}function Urt(t,e){return ir(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function Zrt(t,e,n,r,i,o,a,s,l){Yrt(t,e,n,i,o,s,l),eit(t,e,o,i,r,a,s),uit(t,s)}function Xrt(t){V(t,function(e){var n=Sc(e.outEdges,hC),r=Sc(e.inEdges,hC),i=e.getValue()||0,o=Math.max(n,r,i);e.setLayout({value:o},!0)})}function Yrt(t,e,n,r,i,o,a){for(var s=[],l=[],u=[],c=[],f=0,d=0;d<e.length;d++)s[d]=1;for(var d=0;d<t.length;d++)l[d]=t[d].inEdges.length,l[d]===0&&u.push(t[d]);for(var p=-1;u.length;){for(var v=0;v<u.length;v++){var g=u[v],m=g.hostGraph.data.getRawDataItem(g.dataIndex),y=m.depth!=null&&m.depth>=0;y&&m.depth>p&&(p=m.depth),g.setLayout({depth:y?m.depth:f},!0),o==="vertical"?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var b=0;b<g.outEdges.length;b++){var O=g.outEdges[b],w=e.indexOf(O);s[w]=0;var x=O.node2,S=t.indexOf(x);--l[S]===0&&c.indexOf(x)<0&&c.push(x)}}++f,u=c,c=[]}for(var d=0;d<s.length;d++)if(s[d]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var T=p>f-1?p:f-1;a&&a!=="left"&&qrt(t,a,o,T);var $=o==="vertical"?(i-n)/T:(r-n)/T;Jrt(t,$,o)}function Sfe(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return e.depth!=null&&e.depth>=0}function qrt(t,e,n,r){if(e==="right"){for(var i=[],o=t,a=0;o.length;){for(var s=0;s<o.length;s++){var l=o[s];l.setLayout({skNodeHeight:a},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];i.indexOf(c.node1)<0&&i.push(c.node1)}}o=i,i=[],++a}V(t,function(f){Sfe(f)||f.setLayout({depth:Math.max(0,r-f.getLayout().skNodeHeight)},!0)})}else e==="justify"&&Krt(t,r)}function Krt(t,e){V(t,function(n){!Sfe(n)&&!n.outEdges.length&&n.setLayout({depth:e},!0)})}function Jrt(t,e,n){V(t,function(r){var i=r.getLayout().depth*e;n==="vertical"?r.setLayout({y:i},!0):r.setLayout({x:i},!0)})}function eit(t,e,n,r,i,o,a){var s=tit(t,a);nit(s,e,n,r,i,a),CM(s,i,n,r,a);for(var l=1;o>0;o--)l*=.99,rit(s,l,a),CM(s,i,n,r,a),lit(s,l,a),CM(s,i,n,r,a)}function tit(t,e){var n=[],r=e==="vertical"?"y":"x",i=AR(t,function(o){return o.getLayout()[r]});return i.keys.sort(function(o,a){return o-a}),V(i.keys,function(o){n.push(i.buckets.get(o))}),n}function nit(t,e,n,r,i,o){var a=1/0;V(t,function(s){var l=s.length,u=0;V(s,function(f){u+=f.getLayout().value});var c=o==="vertical"?(r-(l-1)*i)/u:(n-(l-1)*i)/u;c<a&&(a=c)}),V(t,function(s){V(s,function(l,u){var c=l.getLayout().value*a;o==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:c},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:c},!0))})}),V(e,function(s){var l=+s.getValue()*a;s.setLayout({dy:l},!0)})}function CM(t,e,n,r,i){var o=i==="vertical"?"x":"y";V(t,function(a){a.sort(function(g,m){return g.getLayout()[o]-m.getLayout()[o]});for(var s,l,u,c=0,f=a.length,d=i==="vertical"?"dx":"dy",p=0;p<f;p++)l=a[p],u=c-l.getLayout()[o],u>0&&(s=l.getLayout()[o]+u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[o]+l.getLayout()[d]+e;var v=i==="vertical"?r:n;if(u=c-e-v,u>0){s=l.getLayout()[o]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var p=f-2;p>=0;--p)l=a[p],u=l.getLayout()[o]+l.getLayout()[d]+e-c,u>0&&(s=l.getLayout()[o]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[o]}})}function rit(t,e,n){V(t.slice().reverse(),function(r){V(r,function(i){if(i.outEdges.length){var o=Sc(i.outEdges,iit,n)/Sc(i.outEdges,hC);if(isNaN(o)){var a=i.outEdges.length;o=a?Sc(i.outEdges,oit,n)/a:0}if(n==="vertical"){var s=i.getLayout().x+(o-Nc(i,n))*e;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(o-Nc(i,n))*e;i.setLayout({y:l},!0)}}})})}function iit(t,e){return Nc(t.node2,e)*t.getValue()}function oit(t,e){return Nc(t.node2,e)}function ait(t,e){return Nc(t.node1,e)*t.getValue()}function sit(t,e){return Nc(t.node1,e)}function Nc(t,e){return e==="vertical"?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function hC(t){return t.getValue()}function Sc(t,e,n){for(var r=0,i=t.length,o=-1;++o<i;){var a=+e(t[o],n);isNaN(a)||(r+=a)}return r}function lit(t,e,n){V(t,function(r){V(r,function(i){if(i.inEdges.length){var o=Sc(i.inEdges,ait,n)/Sc(i.inEdges,hC);if(isNaN(o)){var a=i.inEdges.length;o=a?Sc(i.inEdges,sit,n)/a:0}if(n==="vertical"){var s=i.getLayout().x+(o-Nc(i,n))*e;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(o-Nc(i,n))*e;i.setLayout({y:l},!0)}}})})}function uit(t,e){var n=e==="vertical"?"x":"y";V(t,function(r){r.outEdges.sort(function(i,o){return i.node2.getLayout()[n]-o.node2.getLayout()[n]}),r.inEdges.sort(function(i,o){return i.node1.getLayout()[n]-o.node1.getLayout()[n]})}),V(t,function(r){var i=0,o=0;V(r.outEdges,function(a){a.setLayout({sy:i},!0),i+=a.getLayout().dy}),V(r.inEdges,function(a){a.setLayout({ty:o},!0),o+=a.getLayout().dy})})}function cit(t){t.eachSeriesByType("sankey",function(e){var n=e.getGraph(),r=n.nodes,i=n.edges;if(r.length){var o=1/0,a=-1/0;V(r,function(s){var l=s.getLayout().value;l<o&&(o=l),l>a&&(a=l)}),V(r,function(s){var l=new xr({type:"color",mappingMethod:"linear",dataExtent:[o,a],visual:e.get("color")}),u=l.mapValueToVisual(s.getLayout().value),c=s.getModel().get(["itemStyle","color"]);c!=null?(s.setVisual("color",c),s.setVisual("style",{fill:c})):(s.setVisual("color",u),s.setVisual("style",{fill:u}))})}i.length&&V(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function fit(t){t.registerChartView(Qrt),t.registerSeriesModel(Grt),t.registerLayout(jrt),t.registerVisual(cit),t.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(e,n){n.eachComponent({mainType:"series",subType:"sankey",query:e},function(r){r.setNodePosition(e.dataIndex,[e.localX,e.localY])})})}var Cfe=function(){function t(){}return t.prototype.getInitialData=function(e,n){var r,i=n.getComponent("xAxis",this.get("xAxisIndex")),o=n.getComponent("yAxis",this.get("yAxisIndex")),a=i.get("type"),s=o.get("type"),l;a==="category"?(e.layout="horizontal",r=i.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",r=o.getOrdinalMeta(),l=!0):e.layout=e.layout||"horizontal";var u=["x","y"],c=e.layout==="horizontal"?0:1,f=this._baseAxisDim=u[c],d=u[1-c],p=[i,o],v=p[c].get("type"),g=p[1-c].get("type"),m=e.data;if(m&&l){var y=[];V(m,function(w,x){var S;ve(w)?(S=w.slice(),w.unshift(x)):ve(w.value)?(S=he({},w),S.value=S.value.slice(),w.value.unshift(x)):S=w,y.push(S)}),e.data=y}var b=this.defaultValueDimensions,O=[{name:f,type:nC(v),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:nC(g),dimsDef:b.slice()}];return Hg(this,{coordDimensions:O,dimensionsCount:b.length+1,encodeDefaulter:nt(Jse,O,this)})},t.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},t}(),Tfe=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(rn);Qn(Tfe,Cfe,!0);var dit=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){var o=n.getData(),a=this.group,s=this._data;this._data||a.removeAll();var l=n.get("layout")==="horizontal"?1:0;o.diff(s).add(function(u){if(o.hasValue(u)){var c=o.getItemLayout(u),f=tZ(c,o,u,l,!0);o.setItemGraphicEl(u,f),a.add(f)}}).update(function(u,c){var f=s.getItemGraphicEl(c);if(!o.hasValue(u)){a.remove(f);return}var d=o.getItemLayout(u);f?(fs(f),Pfe(d,f,o,u)):f=tZ(d,o,u,l),a.add(f),o.setItemGraphicEl(u,f)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&a.remove(c)}).execute(),this._data=o},e.prototype.remove=function(n){var r=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(o){o&&r.remove(o)})},e.type="boxplot",e}(Kt),hit=function(){function t(){}return t}(),pit=function(t){ie(e,t);function e(n){var r=t.call(this,n)||this;return r.type="boxplotBoxPath",r}return e.prototype.getDefaultShape=function(){return new hit},e.prototype.buildPath=function(n,r){var i=r.points,o=0;for(n.moveTo(i[o][0],i[o][1]),o++;o<4;o++)n.lineTo(i[o][0],i[o][1]);for(n.closePath();o<i.length;o++)n.moveTo(i[o][0],i[o][1]),o++,n.lineTo(i[o][0],i[o][1])},e}(mt);function tZ(t,e,n,r,i){var o=t.ends,a=new pit({shape:{points:i?vit(o,r,t):o}});return Pfe(t,a,e,n,i),a}function Pfe(t,e,n,r,i){var o=n.hostModel,a=Ah[i?"initProps":"updateProps"];a(e,{shape:{points:t.ends}},o,r),e.useStyle(n.getItemVisual(r,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=n.getItemModel(r),l=s.getModel("emphasis");Kr(e,s),Bn(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function vit(t,e,n){return ye(t,function(r){return r=r.slice(),r[e]=n.initBaseline,r})}var by=V;function git(t){var e=mit(t);by(e,function(n){var r=n.seriesModels;r.length&&(yit(n),by(r,function(i,o){bit(i,n.boxOffsetList[o],n.boxWidthList[o])}))})}function mit(t){var e=[],n=[];return t.eachSeriesByType("boxplot",function(r){var i=r.getBaseAxis(),o=st(n,i);o<0&&(o=n.length,n[o]=i,e[o]={axis:i,seriesModels:[]}),e[o].seriesModels.push(r)}),e}function yit(t){var e=t.axis,n=t.seriesModels,r=n.length,i=t.boxWidthList=[],o=t.boxOffsetList=[],a=[],s;if(e.type==="category")s=e.getBandWidth();else{var l=0;by(n,function(v){l=Math.max(l,v.getData().count())});var u=e.getExtent();s=Math.abs(u[1]-u[0])/l}by(n,function(v){var g=v.get("boxWidth");ve(g)||(g=[g,g]),a.push([Me(g[0],s)||0,Me(g[1],s)||0])});var c=s*.8-2,f=c/r*.3,d=(c-f*(r-1))/r,p=d/2-c/2;by(n,function(v,g){o.push(p),p+=f+d,i.push(Math.min(Math.max(d,a[g][0]),a[g][1]))})}function bit(t,e,n){var r=t.coordinateSystem,i=t.getData(),o=n/2,a=t.get("layout")==="horizontal"?0:1,s=1-a,l=["x","y"],u=i.mapDimension(l[a]),c=i.mapDimensionsAll(l[s]);if(u==null||c.length<5)return;for(var f=0;f<i.count();f++){var d=i.get(u,f),p=O(d,c[2],f),v=O(d,c[0],f),g=O(d,c[1],f),m=O(d,c[3],f),y=O(d,c[4],f),b=[];w(b,g,!1),w(b,m,!0),b.push(v,g,y,m),x(b,v),x(b,y),x(b,p),i.setItemLayout(f,{initBaseline:p[s],ends:b})}function O(S,T,$){var A=i.get(T,$),P=[];P[a]=S,P[s]=A;var M;return isNaN(S)||isNaN(A)?M=[NaN,NaN]:(M=r.dataToPoint(P),M[a]+=e),M}function w(S,T,$){var A=T.slice(),P=T.slice();A[a]+=o,P[a]-=o,$?S.push(A,P):S.push(P,A)}function x(S,T){var $=T.slice(),A=T.slice();$[a]-=o,A[a]+=o,S.push($,A)}}function _it(t,e){e=e||{};for(var n=[],r=[],i=e.boundIQR,o=i==="none"||i===0,a=0;a<t.length;a++){var s=Ao(t[a].slice()),l=vx(s,.25),u=vx(s,.5),c=vx(s,.75),f=s[0],d=s[s.length-1],p=(i??1.5)*(c-l),v=o?f:Math.max(f,l-p),g=o?d:Math.min(d,c+p),m=e.itemNameFormatter,y=Fe(m)?m({value:a}):Ie(m)?m.replace("{value}",a+""):a+"";n.push([y,v,l,u,c,g]);for(var b=0;b<s.length;b++){var O=s[b];if(O<v||O>g){var w=[y,O];r.push(w)}}}return{boxData:n,outliers:r}}var Oit={type:"echarts:boxplot",transform:function(e){var n=e.upstream;if(n.sourceFormat!==hi){var r="";process.env.NODE_ENV!=="production"&&(r=Ri("source data is not applicable for this boxplot transform. Expect number[][].")),Qt(r)}var i=_it(n.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function wit(t){t.registerSeriesModel(Tfe),t.registerChartView(dit),t.registerLayout(git),t.registerTransform(Oit)}var xit=["color","borderColor"],Sit=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(n),this._isLargeDraw?this._renderLarge(n):this._renderNormal(n)},e.prototype.incrementalPrepareRender=function(n,r,i){this._clear(),this._updateDrawMode(n)},e.prototype.incrementalRender=function(n,r,i,o){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(n,r):this._incrementalRenderNormal(n,r)},e.prototype.eachRendered=function(n){qc(this._progressiveEls||this.group,n)},e.prototype._updateDrawMode=function(n){var r=n.pipelineContext.large;(this._isLargeDraw==null||r!==this._isLargeDraw)&&(this._isLargeDraw=r,this._clear())},e.prototype._renderNormal=function(n){var r=n.getData(),i=this._data,o=this.group,a=r.getLayout("isSimpleBox"),s=n.get("clip",!0),l=n.coordinateSystem,u=l.getArea&&l.getArea();this._data||o.removeAll(),r.diff(i).add(function(c){if(r.hasValue(c)){var f=r.getItemLayout(c);if(s&&nZ(u,f))return;var d=TM(f,c,!0);gn(d,{shape:{points:f.ends}},n,c),PM(d,r,c,a),o.add(d),r.setItemGraphicEl(c,d)}}).update(function(c,f){var d=i.getItemGraphicEl(f);if(!r.hasValue(c)){o.remove(d);return}var p=r.getItemLayout(c);if(s&&nZ(u,p)){o.remove(d);return}d?(kt(d,{shape:{points:p.ends}},n,c),fs(d)):d=TM(p),PM(d,r,c,a),o.add(d),r.setItemGraphicEl(c,d)}).remove(function(c){var f=i.getItemGraphicEl(c);f&&o.remove(f)}).execute(),this._data=r},e.prototype._renderLarge=function(n){this._clear(),rZ(n,this.group);var r=n.get("clip",!0)?T_(n.coordinateSystem,!1,n):null;r?this.group.setClipPath(r):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(n,r){for(var i=r.getData(),o=i.getLayout("isSimpleBox"),a;(a=n.next())!=null;){var s=i.getItemLayout(a),l=TM(s);PM(l,i,a,o),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(n,r){rZ(r,this.group,this._progressiveEls,!0)},e.prototype.remove=function(n){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Kt),Cit=function(){function t(){}return t}(),Tit=function(t){ie(e,t);function e(n){var r=t.call(this,n)||this;return r.type="normalCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new Cit},e.prototype.buildPath=function(n,r){var i=r.points;this.__simpleBox?(n.moveTo(i[4][0],i[4][1]),n.lineTo(i[6][0],i[6][1])):(n.moveTo(i[0][0],i[0][1]),n.lineTo(i[1][0],i[1][1]),n.lineTo(i[2][0],i[2][1]),n.lineTo(i[3][0],i[3][1]),n.closePath(),n.moveTo(i[4][0],i[4][1]),n.lineTo(i[5][0],i[5][1]),n.moveTo(i[6][0],i[6][1]),n.lineTo(i[7][0],i[7][1]))},e}(mt);function TM(t,e,n){var r=t.ends;return new Tit({shape:{points:n?Pit(r,t):r},z2:100})}function nZ(t,e){for(var n=!0,r=0;r<e.ends.length;r++)if(t.contain(e.ends[r][0],e.ends[r][1])){n=!1;break}return n}function PM(t,e,n,r){var i=e.getItemModel(n);t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.__simpleBox=r,Kr(t,i)}function Pit(t,e){return ye(t,function(n){return n=n.slice(),n[1]=e.initBaseline,n})}var $it=function(){function t(){}return t}(),$M=function(t){ie(e,t);function e(n){var r=t.call(this,n)||this;return r.type="largeCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new $it},e.prototype.buildPath=function(n,r){for(var i=r.points,o=0;o<i.length;)if(this.__sign===i[o++]){var a=i[o++];n.moveTo(a,i[o++]),n.lineTo(a,i[o++])}else o+=3},e}(mt);function rZ(t,e,n,r){var i=t.getData(),o=i.getLayout("largePoints"),a=new $M({shape:{points:o},__sign:1,ignoreCoarsePointer:!0});e.add(a);var s=new $M({shape:{points:o},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new $M({shape:{points:o},__sign:0,ignoreCoarsePointer:!0});e.add(l),AM(1,a,t),AM(-1,s,t),AM(0,l,t),r&&(a.incremental=!0,s.incremental=!0),n&&n.push(a,s)}function AM(t,e,n,r){var i=n.get(["itemStyle",t>0?"borderColor":"borderColor0"])||n.get(["itemStyle",t>0?"color":"color0"]);t===0&&(i=n.get(["itemStyle","borderColorDoji"]));var o=n.getModel("itemStyle").getItemStyle(xit);e.useStyle(o),e.style.fill=null,e.style.stroke=i}var $fe=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(n,r,i){var o=r.getItemLayout(n);return o&&i.rect(o.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(rn);Qn($fe,Cfe,!0);function Ait(t){!t||!ve(t.series)||V(t.series,function(e){Qe(e)&&e.type==="k"&&(e.type="candlestick")})}var Eit=["itemStyle","borderColor"],Mit=["itemStyle","borderColor0"],Iit=["itemStyle","borderColorDoji"],Dit=["itemStyle","color"],Rit=["itemStyle","color0"],kit={seriesType:"candlestick",plan:Bg(),performRawSeries:!0,reset:function(t,e){function n(o,a){return a.get(o>0?Dit:Rit)}function r(o,a){return a.get(o===0?Iit:o>0?Eit:Mit)}if(!e.isSeriesFiltered(t)){var i=t.pipelineContext.large;return!i&&{progress:function(o,a){for(var s;(s=o.next())!=null;){var l=a.getItemModel(s),u=a.getItemLayout(s).sign,c=l.getItemStyle();c.fill=n(u,l),c.stroke=r(u,l)||c.fill;var f=a.ensureUniqueItemVisual(s,"style");he(f,c)}}}}}},Nit={seriesType:"candlestick",plan:Bg(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),r=Lit(t,n),i=0,o=1,a=["x","y"],s=n.getDimensionIndex(n.mapDimension(a[i])),l=ye(n.mapDimensionsAll(a[o]),n.getDimensionIndex,n),u=l[0],c=l[1],f=l[2],d=l[3];if(n.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),s<0||l.length<4)return;return{progress:t.pipelineContext.large?v:p};function p(g,m){for(var y,b=m.getStore();(y=g.next())!=null;){var O=b.get(s,y),w=b.get(u,y),x=b.get(c,y),S=b.get(f,y),T=b.get(d,y),$=Math.min(w,x),A=Math.max(w,x),P=F($,O),M=F(A,O),I=F(S,O),R=F(T,O),L=[];z(L,M,0),z(L,P,1),L.push(j(R),j(M),j(I),j(P));var D=m.getItemModel(y),B=!!D.get(["itemStyle","borderColorDoji"]);m.setItemLayout(y,{sign:iZ(b,y,w,x,c,B),initBaseline:w>x?M[o]:P[o],ends:L,brushRect:W(S,T,O)})}function F(H,Z){var J=[];return J[i]=Z,J[o]=H,isNaN(Z)||isNaN(H)?[NaN,NaN]:e.dataToPoint(J)}function z(H,Z,J){var se=Z.slice(),oe=Z.slice();se[i]=yx(se[i]+r/2,1,!1),oe[i]=yx(oe[i]-r/2,1,!0),J?H.push(se,oe):H.push(oe,se)}function W(H,Z,J){var se=F(H,J),oe=F(Z,J);return se[i]-=r/2,oe[i]-=r/2,{x:se[0],y:se[1],width:r,height:oe[1]-se[1]}}function j(H){return H[i]=yx(H[i],1),H}}function v(g,m){for(var y=Us(g.count*4),b=0,O,w=[],x=[],S,T=m.getStore(),$=!!t.get(["itemStyle","borderColorDoji"]);(S=g.next())!=null;){var A=T.get(s,S),P=T.get(u,S),M=T.get(c,S),I=T.get(f,S),R=T.get(d,S);if(isNaN(A)||isNaN(I)||isNaN(R)){y[b++]=NaN,b+=3;continue}y[b++]=iZ(T,S,P,M,c,$),w[i]=A,w[o]=I,O=e.dataToPoint(w,null,x),y[b++]=O?O[0]:NaN,y[b++]=O?O[1]:NaN,w[o]=R,O=e.dataToPoint(w,null,x),y[b++]=O?O[1]:NaN}m.setLayout("largePoints",y)}}};function iZ(t,e,n,r,i,o){var a;return n>r?a=-1:n<r?a=1:a=o?0:e>0?t.get(i,e-1)<=r?1:-1:1,a}function Lit(t,e){var n=t.getBaseAxis(),r,i=n.type==="category"?n.getBandWidth():(r=n.getExtent(),Math.abs(r[1]-r[0])/e.count()),o=Me(Je(t.get("barMaxWidth"),i),i),a=Me(Je(t.get("barMinWidth"),1),i),s=t.get("barWidth");return s!=null?Me(s,i):Math.max(Math.min(i/2,o),a)}function Bit(t){t.registerChartView(Sit),t.registerSeriesModel($fe),t.registerPreprocessor(Ait),t.registerVisual(kit),t.registerLayout(Nit)}function oZ(t,e){var n=e.rippleEffectColor||e.color;t.eachChild(function(r){r.attr({z:e.z,zlevel:e.zlevel,style:{stroke:e.brushType==="stroke"?n:null,fill:e.brushType==="fill"?n:null}})})}var Vit=function(t){ie(e,t);function e(n,r){var i=t.call(this)||this,o=new S_(n,r),a=new qe;return i.add(o),i.add(a),i.updateData(n,r),i}return e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(n){for(var r=n.symbolType,i=n.color,o=n.rippleNumber,a=this.childAt(1),s=0;s<o;s++){var l=Yn(r,-1,-1,2,2,i);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/o*n.period+n.effectOffset;l.animate("",!0).when(n.period,{scaleX:n.rippleScale/2,scaleY:n.rippleScale/2}).delay(u).start(),l.animateStyle(!0).when(n.period,{opacity:0}).delay(u).start(),a.add(l)}oZ(a,n)},e.prototype.updateEffectAnimation=function(n){for(var r=this._effectCfg,i=this.childAt(1),o=["symbolType","period","rippleScale","rippleNumber"],a=0;a<o.length;a++){var s=o[a];if(r[s]!==n[s]){this.stopEffectAnimation(),this.startEffectAnimation(n);return}}oZ(i,n)},e.prototype.highlight=function(){iu(this)},e.prototype.downplay=function(){ou(this)},e.prototype.getSymbolType=function(){var n=this.childAt(0);return n&&n.getSymbolType()},e.prototype.updateData=function(n,r){var i=this,o=n.hostModel;this.childAt(0).updateData(n,r);var a=this.childAt(1),s=n.getItemModel(r),l=n.getItemVisual(r,"symbol"),u=zg(n.getItemVisual(r,"symbolSize")),c=n.getItemVisual(r,"style"),f=c&&c.fill,d=s.getModel("emphasis");a.setScale(u),a.traverse(function(m){m.setStyle("fill",f)});var p=Dh(n.getItemVisual(r,"symbolOffset"),u);p&&(a.x=p[0],a.y=p[1]);var v=n.getItemVisual(r,"symbolRotate");a.rotation=(v||0)*Math.PI/180||0;var g={};g.showEffectOn=o.get("showEffectOn"),g.rippleScale=s.get(["rippleEffect","scale"]),g.brushType=s.get(["rippleEffect","brushType"]),g.period=s.get(["rippleEffect","period"])*1e3,g.effectOffset=r/n.count(),g.z=o.getShallow("z")||0,g.zlevel=o.getShallow("zlevel")||0,g.symbolType=l,g.color=f,g.rippleEffectColor=s.get(["rippleEffect","color"]),g.rippleNumber=s.get(["rippleEffect","number"]),g.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(g):this.startEffectAnimation(g),this._effectCfg=g):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(m){m==="emphasis"?g.showEffectOn!=="render"&&i.startEffectAnimation(g):m==="normal"&&g.showEffectOn!=="render"&&i.stopEffectAnimation()}),this._effectCfg=g,Bn(this,d.get("focus"),d.get("blurScope"),d.get("disabled"))},e.prototype.fadeOut=function(n){n&&n()},e}(qe),zit=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(){this._symbolDraw=new C_(Vit)},e.prototype.render=function(n,r,i){var o=n.getData(),a=this._symbolDraw;a.updateData(o,{clipShape:this._getClipShape(n)}),this.group.add(a.group)},e.prototype._getClipShape=function(n){var r=n.coordinateSystem,i=r&&r.getArea&&r.getArea();return n.get("clip",!0)?i:null},e.prototype.updateTransform=function(n,r,i){var o=n.getData();this.group.dirty();var a=P_("").reset(n,r,i);a.progress&&a.progress({start:0,end:o.count(),count:o.count()},o),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(n){var r=n.coordinateSystem;r&&r.getRoamTransform&&(this.group.transform=eae(r.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(n,r){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(Kt),Fit=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return e.prototype.getInitialData=function(n,r){return pl(null,this,{useEncodeDefaulter:!0})},e.prototype.brushSelector=function(n,r,i){return i.point(r.getItemLayout(n))},e.type="series.effectScatter",e.dependencies=["grid","polar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",clip:!0,rippleEffect:{period:4,scale:2.5,brushType:"fill",number:3},universalTransition:{divideShape:"clone"},symbolSize:10},e}(rn);function Wit(t){t.registerChartView(zit),t.registerSeriesModel(Fit),t.registerLayout(P_("effectScatter"))}var Afe=function(t){ie(e,t);function e(n,r,i){var o=t.call(this)||this;return o.add(o.createLine(n,r,i)),o._updateEffectSymbol(n,r),o}return e.prototype.createLine=function(n,r,i){return new r3(n,r,i)},e.prototype._updateEffectSymbol=function(n,r){var i=n.getItemModel(r),o=i.getModel("effect"),a=o.get("symbolSize"),s=o.get("symbol");ve(a)||(a=[a,a]);var l=n.getItemVisual(r,"style"),u=o.get("color")||l&&l.stroke,c=this.childAt(1);this._symbolType!==s&&(this.remove(c),c=Yn(s,-.5,-.5,1,1,u),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",u),c.setStyle(o.getItemStyle(["color"])),c.scaleX=a[0],c.scaleY=a[1],c.setColor(u),this._symbolType=s,this._symbolScale=a,this._updateEffectAnimation(n,o,r))},e.prototype._updateEffectAnimation=function(n,r,i){var o=this.childAt(1);if(o){var a=n.getItemLayout(i),s=r.get("period")*1e3,l=r.get("loop"),u=r.get("roundTrip"),c=r.get("constantSpeed"),f=Zn(r.get("delay"),function(p){return p/n.count()*s/3});if(o.ignore=!0,this._updateAnimationPoints(o,a),c>0&&(s=this._getLineLength(o)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){o.stopAnimation();var d=void 0;Fe(f)?d=f(i):d=f,o.__t>0&&(d=-s*o.__t),this._animateSymbol(o,s,d,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(n,r,i,o,a){if(r>0){n.__t=0;var s=this,l=n.animate("",o).when(a?r*2:r,{__t:a?2:1}).delay(i).during(function(){s._updateSymbolPosition(n)});o||l.done(function(){s.remove(n)}),l.start()}},e.prototype._getLineLength=function(n){return Wl(n.__p1,n.__cp1)+Wl(n.__cp1,n.__p2)},e.prototype._updateAnimationPoints=function(n,r){n.__p1=r[0],n.__p2=r[1],n.__cp1=r[2]||[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]},e.prototype.updateData=function(n,r,i){this.childAt(0).updateData(n,r,i),this._updateEffectSymbol(n,r)},e.prototype._updateSymbolPosition=function(n){var r=n.__p1,i=n.__p2,o=n.__cp1,a=n.__t<1?n.__t:2-n.__t,s=[n.x,n.y],l=s.slice(),u=Ar,c=hR;s[0]=u(r[0],o[0],i[0],a),s[1]=u(r[1],o[1],i[1],a);var f=n.__t<1?c(r[0],o[0],i[0],a):c(i[0],o[0],r[0],1-a),d=n.__t<1?c(r[1],o[1],i[1],a):c(i[1],o[1],r[1],1-a);n.rotation=-Math.atan2(d,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(n.__lastT!==void 0&&n.__lastT<n.__t?(n.scaleY=Wl(l,s)*1.05,a===1&&(s[0]=l[0]+(s[0]-l[0])/2,s[1]=l[1]+(s[1]-l[1])/2)):n.__lastT===1?n.scaleY=2*Wl(r,s):n.scaleY=this._symbolScale[1]),n.__lastT=n.__t,n.ignore=!1,n.x=s[0],n.y=s[1]},e.prototype.updateLayout=function(n,r){this.childAt(0).updateLayout(n,r);var i=n.getItemModel(r).getModel("effect");this._updateEffectAnimation(n,i,r)},e}(qe),Efe=function(t){ie(e,t);function e(n,r,i){var o=t.call(this)||this;return o._createPolyline(n,r,i),o}return e.prototype._createPolyline=function(n,r,i){var o=n.getItemLayout(r),a=new Bi({shape:{points:o}});this.add(a),this._updateCommonStl(n,r,i)},e.prototype.updateData=function(n,r,i){var o=n.hostModel,a=this.childAt(0),s={shape:{points:n.getItemLayout(r)}};kt(a,s,o,r),this._updateCommonStl(n,r,i)},e.prototype._updateCommonStl=function(n,r,i){var o=this.childAt(0),a=n.getItemModel(r),s=i&&i.emphasisLineStyle,l=i&&i.focus,u=i&&i.blurScope,c=i&&i.emphasisDisabled;if(!i||n.hasItemOption){var f=a.getModel("emphasis");s=f.getModel("lineStyle").getLineStyle(),c=f.get("disabled"),l=f.get("focus"),u=f.get("blurScope")}o.useStyle(n.getItemVisual(r,"style")),o.style.fill=null,o.style.strokeNoScale=!0;var d=o.ensureState("emphasis");d.style=s,Bn(this,l,u,c)},e.prototype.updateLayout=function(n,r){var i=this.childAt(0);i.setShape("points",n.getItemLayout(r))},e}(qe),Qit=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n._lastFrame=0,n._lastFramePercent=0,n}return e.prototype.createLine=function(n,r,i){return new Efe(n,r,i)},e.prototype._updateAnimationPoints=function(n,r){this._points=r;for(var i=[0],o=0,a=1;a<r.length;a++){var s=r[a-1],l=r[a];o+=Wl(s,l),i.push(o)}if(o===0){this._length=0;return}for(var a=0;a<i.length;a++)i[a]/=o;this._offsets=i,this._length=o},e.prototype._getLineLength=function(){return this._length},e.prototype._updateSymbolPosition=function(n){var r=n.__t<1?n.__t:2-n.__t,i=this._points,o=this._offsets,a=i.length;if(o){var s=this._lastFrame,l;if(r<this._lastFramePercent){var u=Math.min(s+1,a-1);for(l=u;l>=0&&!(o[l]<=r);l--);l=Math.min(l,a-2)}else{for(l=s;l<a&&!(o[l]>r);l++);l=Math.min(l-1,a-2)}var c=(r-o[l])/(o[l+1]-o[l]),f=i[l],d=i[l+1];n.x=f[0]*(1-c)+c*d[0],n.y=f[1]*(1-c)+c*d[1];var p=n.__t<1?d[0]-f[0]:f[0]-d[0],v=n.__t<1?d[1]-f[1]:f[1]-d[1];n.rotation=-Math.atan2(v,p)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=r,n.ignore=!1}},e}(Afe),Hit=function(){function t(){this.polyline=!1,this.curveness=0,this.segs=[]}return t}(),Git=function(t){ie(e,t);function e(n){var r=t.call(this,n)||this;return r._off=0,r.hoverDataIdx=-1,r}return e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new Hit},e.prototype.buildPath=function(n,r){var i=r.segs,o=r.curveness,a;if(r.polyline)for(a=this._off;a<i.length;){var s=i[a++];if(s>0){n.moveTo(i[a++],i[a++]);for(var l=1;l<s;l++)n.lineTo(i[a++],i[a++])}}else for(a=this._off;a<i.length;){var u=i[a++],c=i[a++],f=i[a++],d=i[a++];if(n.moveTo(u,c),o>0){var p=(u+f)/2-(c-d)*o,v=(c+d)/2-(f-u)*o;n.quadraticCurveTo(p,v,f,d)}else n.lineTo(f,d)}this.incremental&&(this._off=a,this.notClear=!0)},e.prototype.findDataIndex=function(n,r){var i=this.shape,o=i.segs,a=i.curveness,s=this.style.lineWidth;if(i.polyline)for(var l=0,u=0;u<o.length;){var c=o[u++];if(c>0)for(var f=o[u++],d=o[u++],p=1;p<c;p++){var v=o[u++],g=o[u++];if(Uu(f,d,v,g,s,n,r))return l}l++}else for(var l=0,u=0;u<o.length;){var f=o[u++],d=o[u++],v=o[u++],g=o[u++];if(a>0){var m=(f+v)/2-(d-g)*a,y=(d+g)/2-(v-f)*a;if(Gae(f,d,m,y,v,g,s,n,r))return l}else if(Uu(f,d,v,g,s,n,r))return l;l++}return-1},e.prototype.contain=function(n,r){var i=this.transformCoordToLocal(n,r),o=this.getBoundingRect();if(n=i[0],r=i[1],o.contain(n,r)){var a=this.hoverDataIdx=this.findDataIndex(n,r);return a>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var r=this.shape,i=r.segs,o=1/0,a=1/0,s=-1/0,l=-1/0,u=0;u<i.length;){var c=i[u++],f=i[u++];o=Math.min(c,o),s=Math.max(c,s),a=Math.min(f,a),l=Math.max(f,l)}n=this._rect=new at(o,a,s,l)}return n},e}(mt),jit=function(){function t(){this.group=new qe}return t.prototype.updateData=function(e){this._clear();var n=this._create();n.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(n,e)},t.prototype.incrementalPrepareUpdate=function(e){this.group.removeAll(),this._clear()},t.prototype.incrementalUpdate=function(e,n){var r=this._newAdded[0],i=n.getLayout("linesPoints"),o=r&&r.shape.segs;if(o&&o.length<2e4){var a=o.length,s=new Float32Array(a+i.length);s.set(o),s.set(i,a),r.setShape({segs:s})}else{this._newAdded=[];var l=this._create();l.incremental=!0,l.setShape({segs:i}),this._setCommon(l,n),l.__startIndex=e.start}},t.prototype.remove=function(){this._clear()},t.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},t.prototype._create=function(){var e=new Git({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(e),this.group.add(e),e},t.prototype._setCommon=function(e,n,r){var i=n.hostModel;e.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),e.useStyle(i.getModel("lineStyle").getLineStyle()),e.style.strokeNoScale=!0;var o=n.getVisual("style");o&&o.stroke&&e.setStyle("stroke",o.stroke),e.setStyle("fill",null);var a=Ke(e);a.seriesIndex=i.seriesIndex,e.on("mousemove",function(s){a.dataIndex=null;var l=e.hoverDataIdx;l>0&&(a.dataIndex=l+e.__startIndex)})},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),Mfe={seriesType:"lines",plan:Bg(),reset:function(t){var e=t.coordinateSystem;if(!e){process.env.NODE_ENV!=="production"&&qr("The lines series must have a coordinate system.");return}var n=t.get("polyline"),r=t.pipelineContext.large;return{progress:function(i,o){var a=[];if(r){var s=void 0,l=i.end-i.start;if(n){for(var u=0,c=i.start;c<i.end;c++)u+=t.getLineCoordsCount(c);s=new Float32Array(l+u*2)}else s=new Float32Array(l*4);for(var f=0,d=[],c=i.start;c<i.end;c++){var p=t.getLineCoords(c,a);n&&(s[f++]=p);for(var v=0;v<p;v++)d=e.dataToPoint(a[v],!1,d),s[f++]=d[0],s[f++]=d[1]}o.setLayout("linesPoints",s)}else for(var c=i.start;c<i.end;c++){var g=o.getItemModel(c),p=t.getLineCoords(c,a),m=[];if(n)for(var y=0;y<p;y++)m.push(e.dataToPoint(a[y]));else{m[0]=e.dataToPoint(a[0]),m[1]=e.dataToPoint(a[1]);var b=g.get(["lineStyle","curveness"]);+b&&(m[2]=[(m[0][0]+m[1][0])/2-(m[0][1]-m[1][1])*b,(m[0][1]+m[1][1])/2-(m[1][0]-m[0][0])*b])}o.setItemLayout(c,m)}}}}},Uit=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){var o=n.getData(),a=this._updateLineDraw(o,n),s=n.get("zlevel"),l=n.get(["effect","trailLength"]),u=i.getZr(),c=u.painter.getType()==="svg";c||u.painter.getLayer(s).clear(!0),this._lastZlevel!=null&&!c&&u.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(n)&&l>0&&(c?process.env.NODE_ENV!=="production"&&console.warn("SVG render mode doesn't support lines with trail effect"):u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),a.updateData(o);var f=n.get("clip",!0)&&T_(n.coordinateSystem,!1,n);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},e.prototype.incrementalPrepareRender=function(n,r,i){var o=n.getData(),a=this._updateLineDraw(o,n);a.incrementalPrepareUpdate(o),this._clearLayer(i),this._finished=!1},e.prototype.incrementalRender=function(n,r,i){this._lineDraw.incrementalUpdate(n,r.getData()),this._finished=n.end===r.getData().count()},e.prototype.eachRendered=function(n){this._lineDraw&&this._lineDraw.eachRendered(n)},e.prototype.updateTransform=function(n,r,i){var o=n.getData(),a=n.pipelineContext;if(!this._finished||a.large||a.progressiveRender)return{update:!0};var s=Mfe.reset(n,r,i);s.progress&&s.progress({start:0,end:o.count(),count:o.count()},o),this._lineDraw.updateLayout(),this._clearLayer(i)},e.prototype._updateLineDraw=function(n,r){var i=this._lineDraw,o=this._showEffect(r),a=!!r.get("polyline"),s=r.pipelineContext,l=s.large;return process.env.NODE_ENV!=="production"&&o&&l&&console.warn("Large lines not support effect"),(!i||o!==this._hasEffet||a!==this._isPolyline||l!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=l?new jit:new i3(a?o?Qit:Efe:o?Afe:r3),this._hasEffet=o,this._isPolyline=a,this._isLargeDraw=l),this.group.add(i.group),i},e.prototype._showEffect=function(n){return!!n.get(["effect","show"])},e.prototype._clearLayer=function(n){var r=n.getZr(),i=r.painter.getType()==="svg";!i&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(n,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},e.prototype.dispose=function(n,r){this.remove(n,r)},e.type="lines",e}(Kt),Zit=typeof Uint32Array>"u"?Array:Uint32Array,Xit=typeof Float64Array>"u"?Array:Float64Array;function aZ(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(process.env.NODE_ENV!=="production"&&console.warn("Lines data configuration has been changed to { coords:[[1,2],[2,3]] }"),t.data=ye(e,function(n){var r=[n[0].coord,n[1].coord],i={coords:r};return n[0].name&&(i.fromName=n[0].name),n[1].name&&(i.toName=n[1].name),lP([i,n[0],n[1]])}))}var Yit=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return e.prototype.init=function(n){n.data=n.data||[],aZ(n);var r=this._processFlatCoordsArray(n.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(n.data=new Float32Array(r.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(n){if(aZ(n),n.data){var r=this._processFlatCoordsArray(n.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(n.data=new Float32Array(r.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(n){var r=this._processFlatCoordsArray(n.data);r.flatCoords&&(this._flatCoords?(this._flatCoords=qy(this._flatCoords,r.flatCoords),this._flatCoordsOffset=qy(this._flatCoordsOffset,r.flatCoordsOffset)):(this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset),n.data=new Float32Array(r.count)),this.getRawData().appendData(n.data)},e.prototype._getCoordsFromItemModel=function(n){var r=this.getData().getItemModel(n),i=r.option instanceof Array?r.option:r.getShallow("coords");if(process.env.NODE_ENV!=="production"&&!(i instanceof Array&&i.length>0&&i[0]instanceof Array))throw new Error("Invalid coords "+JSON.stringify(i)+". Lines must have 2d coords array in data item.");return i},e.prototype.getLineCoordsCount=function(n){return this._flatCoordsOffset?this._flatCoordsOffset[n*2+1]:this._getCoordsFromItemModel(n).length},e.prototype.getLineCoords=function(n,r){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[n*2],o=this._flatCoordsOffset[n*2+1],a=0;a<o;a++)r[a]=r[a]||[],r[a][0]=this._flatCoords[i+a*2],r[a][1]=this._flatCoords[i+a*2+1];return o}else{for(var s=this._getCoordsFromItemModel(n),a=0;a<s.length;a++)r[a]=r[a]||[],r[a][0]=s[a][0],r[a][1]=s[a][1];return s.length}},e.prototype._processFlatCoordsArray=function(n){var r=0;if(this._flatCoords&&(r=this._flatCoords.length),It(n[0])){for(var i=n.length,o=new Zit(i),a=new Xit(i),s=0,l=0,u=0,c=0;c<i;){u++;var f=n[c++];o[l++]=s+r,o[l++]=f;for(var d=0;d<f;d++){var p=n[c++],v=n[c++];if(a[s++]=p,a[s++]=v,c>i&&process.env.NODE_ENV!=="production")throw new Error("Invalid data format.")}}return{flatCoordsOffset:new Uint32Array(o.buffer,0,l),flatCoords:a,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:n.length}},e.prototype.getInitialData=function(n,r){if(process.env.NODE_ENV!=="production"){var i=Ih.get(n.coordinateSystem);if(!i)throw new Error("Unknown coordinate system "+n.coordinateSystem)}var o=new fi(["value"],this);return o.hasItemOption=!1,o.initData(n.data,[],function(a,s,l,u){if(a instanceof Array)return NaN;o.hasItemOption=!0;var c=a.value;if(c!=null)return c instanceof Array?c[u]:c}),o},e.prototype.formatTooltip=function(n,r,i){var o=this.getData(),a=o.getItemModel(n),s=a.get("name");if(s)return s;var l=a.get("fromName"),u=a.get("toName"),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Tr("nameValue",{name:c.join(" > ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var n=this.option.progressive;return n??(this.option.large?1e4:this.get("progressive"))},e.prototype.getProgressiveThreshold=function(){var n=this.option.progressiveThreshold;return n??(this.option.large?2e4:this.get("progressiveThreshold"))},e.prototype.getZLevelKey=function(){var n=this.getModel("effect"),r=n.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:n.get("show")&&r>0?r+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(rn);function tw(t){return t instanceof Array||(t=[t,t]),t}var qit={seriesType:"lines",reset:function(t){var e=tw(t.get("symbol")),n=tw(t.get("symbolSize")),r=t.getData();r.setVisual("fromSymbol",e&&e[0]),r.setVisual("toSymbol",e&&e[1]),r.setVisual("fromSymbolSize",n&&n[0]),r.setVisual("toSymbolSize",n&&n[1]);function i(o,a){var s=o.getItemModel(a),l=tw(s.getShallow("symbol",!0)),u=tw(s.getShallow("symbolSize",!0));l[0]&&o.setItemVisual(a,"fromSymbol",l[0]),l[1]&&o.setItemVisual(a,"toSymbol",l[1]),u[0]&&o.setItemVisual(a,"fromSymbolSize",u[0]),u[1]&&o.setItemVisual(a,"toSymbolSize",u[1])}return{dataEach:r.hasItemOption?i:null}}};function Kit(t){t.registerChartView(Uit),t.registerSeriesModel(Yit),t.registerLayout(Mfe),t.registerVisual(qit)}var Jit=256,eot=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=ls.createCanvas();this.canvas=e}return t.prototype.update=function(e,n,r,i,o,a){var s=this._getBrush(),l=this._getGradient(o,"inRange"),u=this._getGradient(o,"outOfRange"),c=this.pointSize+this.blurSize,f=this.canvas,d=f.getContext("2d"),p=e.length;f.width=n,f.height=r;for(var v=0;v<p;++v){var g=e[v],m=g[0],y=g[1],b=g[2],O=i(b);d.globalAlpha=O,d.drawImage(s,m-c,y-c)}if(!f.width||!f.height)return f;for(var w=d.getImageData(0,0,f.width,f.height),x=w.data,S=0,T=x.length,$=this.minOpacity,A=this.maxOpacity,P=A-$;S<T;){var O=x[S+3]/256,M=Math.floor(O*(Jit-1))*4;if(O>0){var I=a(O)?l:u;O>0&&(O=O*P+$),x[S++]=I[M],x[S++]=I[M+1],x[S++]=I[M+2],x[S++]=I[M+3]*O*256}else S+=4}return d.putImageData(w,0,0),f},t.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=ls.createCanvas()),n=this.pointSize+this.blurSize,r=n*2;e.width=r,e.height=r;var i=e.getContext("2d");return i.clearRect(0,0,r,r),i.shadowOffsetX=r,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-n,n,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),e},t.prototype._getGradient=function(e,n){for(var r=this._gradientPixels,i=r[n]||(r[n]=new Uint8ClampedArray(256*4)),o=[0,0,0,0],a=0,s=0;s<256;s++)e[n](s/255,!0,o),i[a++]=o[0],i[a++]=o[1],i[a++]=o[2],i[a++]=o[3];return i},t}();function tot(t,e,n){var r=t[1]-t[0];e=ye(e,function(a){return{interval:[(a.interval[0]-t[0])/r,(a.interval[1]-t[0])/r]}});var i=e.length,o=0;return function(a){var s;for(s=o;s<i;s++){var l=e[s].interval;if(l[0]<=a&&a<=l[1]){o=s;break}}if(s===i)for(s=o-1;s>=0;s--){var l=e[s].interval;if(l[0]<=a&&a<=l[1]){o=s;break}}return s>=0&&s<i&&n[s]}}function not(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(r){return r>=e[0]&&r<=e[1]}}function sZ(t){var e=t.dimensions;return e[0]==="lng"&&e[1]==="lat"}var rot=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){var o;if(r.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===n&&(o=s)})}),process.env.NODE_ENV!=="production"&&!o)throw new Error("Heatmap must use with visualMap");this._progressiveEls=null,this.group.removeAll();var a=n.coordinateSystem;a.type==="cartesian2d"||a.type==="calendar"?this._renderOnCartesianAndCalendar(n,i,0,n.getData().count()):sZ(a)&&this._renderOnGeo(a,n,o,i)},e.prototype.incrementalPrepareRender=function(n,r,i){this.group.removeAll()},e.prototype.incrementalRender=function(n,r,i,o){var a=r.coordinateSystem;a&&(sZ(a)?this.render(r,i,o):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,o,n.start,n.end,!0)))},e.prototype.eachRendered=function(n){qc(this._progressiveEls||this.group,n)},e.prototype._renderOnCartesianAndCalendar=function(n,r,i,o,a){var s=n.coordinateSystem,l=Rh(s,"cartesian2d"),u,c,f,d;if(l){var p=s.getAxis("x"),v=s.getAxis("y");if(process.env.NODE_ENV!=="production"){if(!(p.type==="category"&&v.type==="category"))throw new Error("Heatmap on cartesian must have two category axes");if(!(p.onBand&&v.onBand))throw new Error("Heatmap on cartesian must have two axes with boundaryGap true")}u=p.getBandWidth()+.5,c=v.getBandWidth()+.5,f=p.scale.getExtent(),d=v.scale.getExtent()}for(var g=this.group,m=n.getData(),y=n.getModel(["emphasis","itemStyle"]).getItemStyle(),b=n.getModel(["blur","itemStyle"]).getItemStyle(),O=n.getModel(["select","itemStyle"]).getItemStyle(),w=n.get(["itemStyle","borderRadius"]),x=Cr(n),S=n.getModel("emphasis"),T=S.get("focus"),$=S.get("blurScope"),A=S.get("disabled"),P=l?[m.mapDimension("x"),m.mapDimension("y"),m.mapDimension("value")]:[m.mapDimension("time"),m.mapDimension("value")],M=i;M<o;M++){var I=void 0,R=m.getItemVisual(M,"style");if(l){var L=m.get(P[0],M),D=m.get(P[1],M);if(isNaN(m.get(P[2],M))||isNaN(L)||isNaN(D)||L<f[0]||L>f[1]||D<d[0]||D>d[1])continue;var B=s.dataToPoint([L,D]);I=new Pt({shape:{x:B[0]-u/2,y:B[1]-c/2,width:u,height:c},style:R})}else{if(isNaN(m.get(P[1],M)))continue;I=new Pt({z2:1,shape:s.dataToRect([m.get(P[0],M)]).contentShape,style:R})}if(m.hasItemOption){var F=m.getItemModel(M),z=F.getModel("emphasis");y=z.getModel("itemStyle").getItemStyle(),b=F.getModel(["blur","itemStyle"]).getItemStyle(),O=F.getModel(["select","itemStyle"]).getItemStyle(),w=F.get(["itemStyle","borderRadius"]),T=z.get("focus"),$=z.get("blurScope"),A=z.get("disabled"),x=Cr(F)}I.shape.r=w;var W=n.getRawValue(M),j="-";W&&W[2]!=null&&(j=W[2]+""),Jr(I,x,{labelFetcher:n,labelDataIndex:M,defaultOpacity:R.opacity,defaultText:j}),I.ensureState("emphasis").style=y,I.ensureState("blur").style=b,I.ensureState("select").style=O,Bn(I,T,$,A),I.incremental=a,a&&(I.states.emphasis.hoverLayer=!0),g.add(I),m.setItemGraphicEl(M,I),this._progressiveEls&&this._progressiveEls.push(I)}},e.prototype._renderOnGeo=function(n,r,i,o){var a=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=r.getData(),u=this._hmLayer||this._hmLayer||new eot;u.blurSize=r.get("blurSize"),u.pointSize=r.get("pointSize"),u.minOpacity=r.get("minOpacity"),u.maxOpacity=r.get("maxOpacity");var c=n.getViewRect().clone(),f=n.getRoamTransform();c.applyTransform(f);var d=Math.max(c.x,0),p=Math.max(c.y,0),v=Math.min(c.width+c.x,o.getWidth()),g=Math.min(c.height+c.y,o.getHeight()),m=v-d,y=g-p,b=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],O=l.mapArray(b,function(T,$,A){var P=n.dataToPoint([T,$]);return P[0]-=d,P[1]-=p,P.push(A),P}),w=i.getExtent(),x=i.type==="visualMap.continuous"?not(w,i.option.range):tot(w,i.getPieceList(),i.option.selected);u.update(O,m,y,a.color.getNormalizer(),{inRange:a.color.getColorMapper(),outOfRange:s.color.getColorMapper()},x);var S=new Rr({style:{width:m,height:y,x:d,y:p,image:u.canvas},silent:!0});this.group.add(S)},e.type="heatmap",e}(Kt),iot=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.getInitialData=function(n,r){return pl(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var n=Ih.get(this.get("coordinateSystem"));if(n&&n.dimensions)return n.dimensions[0]==="lng"&&n.dimensions[1]==="lat"},e.type="series.heatmap",e.dependencies=["grid","geo","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},e}(rn);function oot(t){t.registerChartView(rot),t.registerSeriesModel(iot)}var aot=["itemStyle","borderWidth"],lZ=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],EM=new _u,sot=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){var o=this.group,a=n.getData(),s=this._data,l=n.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),f=l.master.getRect(),d={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:n,coordSys:l,coordSysExtent:[[f.x,f.x+f.width],[f.y,f.y+f.height]],isHorizontal:c,valueDim:lZ[+c],categoryDim:lZ[1-+c]};a.diff(s).add(function(v){if(a.hasValue(v)){var g=cZ(a,v),m=uZ(a,v,g,d),y=fZ(a,d,m);a.setItemGraphicEl(v,y),o.add(y),hZ(y,d,m)}}).update(function(v,g){var m=s.getItemGraphicEl(g);if(!a.hasValue(v)){o.remove(m);return}var y=cZ(a,v),b=uZ(a,v,y,d),O=Lfe(a,b);m&&O!==m.__pictorialShapeStr&&(o.remove(m),a.setItemGraphicEl(v,null),m=null),m?pot(m,d,b):m=fZ(a,d,b,!0),a.setItemGraphicEl(v,m),m.__pictorialSymbolMeta=b,o.add(m),hZ(m,d,b)}).remove(function(v){var g=s.getItemGraphicEl(v);g&&dZ(s,v,g.__pictorialSymbolMeta.animationModel,g)}).execute();var p=n.get("clip",!0)?T_(n.coordinateSystem,!1,n):null;return p?o.setClipPath(p):o.removeClipPath(),this._data=a,this.group},e.prototype.remove=function(n,r){var i=this.group,o=this._data;n.get("animation")?o&&o.eachItemGraphicEl(function(a){dZ(o,Ke(a).dataIndex,n,a)}):i.removeAll()},e.type="pictorialBar",e}(Kt);function uZ(t,e,n,r){var i=t.getItemLayout(e),o=n.get("symbolRepeat"),a=n.get("symbolClip"),s=n.get("symbolPosition")||"start",l=n.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=n.get("symbolPatternSize")||2,f=n.isAnimationEnabled(),d={dataIndex:e,layout:i,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",style:t.getItemVisual(e,"style"),symbolClip:a,symbolRepeat:o,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?n:null,hoverScale:f&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};lot(n,o,i,r,d),uot(t,e,i,o,a,d.boundingLength,d.pxSign,c,r,d),cot(n,d.symbolScale,u,r,d);var p=d.symbolSize,v=Dh(n.get("symbolOffset"),p);return fot(n,p,i,o,a,v,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,r,d),d}function lot(t,e,n,r,i){var o=r.valueDim,a=t.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(n[o.wh]<=0),c;if(ve(a)){var f=[MM(s,a[0])-l,MM(s,a[1])-l];f[1]<f[0]&&f.reverse(),c=f[u]}else a!=null?c=MM(s,a)-l:e?c=r.coordSysExtent[o.index][u]-l:c=n[o.wh];i.boundingLength=c,e&&(i.repeatCutLength=n[o.wh]),i.pxSign=c>0?1:-1}function MM(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function uot(t,e,n,r,i,o,a,s,l,u){var c=l.valueDim,f=l.categoryDim,d=Math.abs(n[f.wh]),p=t.getItemVisual(e,"symbolSize"),v;ve(p)?v=p.slice():p==null?v=["100%","100%"]:v=[p,p],v[f.index]=Me(v[f.index],d),v[c.index]=Me(v[c.index],r?d:Math.abs(o)),u.symbolSize=v;var g=u.symbolScale=[v[0]/s,v[1]/s];g[c.index]*=(l.isHorizontal?-1:1)*a}function cot(t,e,n,r,i){var o=t.get(aot)||0;o&&(EM.attr({scaleX:e[0],scaleY:e[1],rotation:n}),EM.updateTransform(),o/=EM.getLineScale(),o*=e[r.valueDim.index]),i.valueLineWidth=o||0}function fot(t,e,n,r,i,o,a,s,l,u,c,f){var d=c.categoryDim,p=c.valueDim,v=f.pxSign,g=Math.max(e[p.index]+s,0),m=g;if(r){var y=Math.abs(l),b=Zn(t.get("symbolMargin"),"15%")+"",O=!1;b.lastIndexOf("!")===b.length-1&&(O=!0,b=b.slice(0,b.length-1));var w=Me(b,e[p.index]),x=Math.max(g+w*2,0),S=O?0:w*2,T=gP(r),$=T?r:pZ((y+S)/x),A=y-$*g;w=A/2/(O?$:Math.max($-1,1)),x=g+w*2,S=O?0:w*2,!T&&r!=="fixed"&&($=u?pZ((Math.abs(u)+S)/x):0),m=$*x-S,f.repeatTimes=$,f.symbolMargin=w}var P=v*(m/2),M=f.pathPosition=[];M[d.index]=n[d.wh]/2,M[p.index]=a==="start"?P:a==="end"?l-P:l/2,o&&(M[0]+=o[0],M[1]+=o[1]);var I=f.bundlePosition=[];I[d.index]=n[d.xy],I[p.index]=n[p.xy];var R=f.barRectShape=he({},n);R[p.wh]=v*Math.max(Math.abs(n[p.wh]),Math.abs(M[p.index]+P)),R[d.wh]=n[d.wh];var L=f.clipShape={};L[d.xy]=-n[d.xy],L[d.wh]=c.ecSize[d.wh],L[p.xy]=0,L[p.wh]=n[p.wh]}function Ife(t){var e=t.symbolPatternSize,n=Yn(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),n.type!=="image"&&n.setStyle({strokeNoScale:!0}),n}function Dfe(t,e,n,r){var i=t.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,c=0,f=o[e.valueDim.index]+a+n.symbolMargin*2;for(d3(t,function(g){g.__pictorialAnimationIndex=c,g.__pictorialRepeatTimes=u,c<u?vv(g,null,v(c),n,r):vv(g,null,{scaleX:0,scaleY:0},n,r,function(){i.remove(g)}),c++});c<u;c++){var d=Ife(n);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,i.add(d);var p=v(c);vv(d,{x:p.x,y:p.y,scaleX:0,scaleY:0},{scaleX:p.scaleX,scaleY:p.scaleY,rotation:p.rotation},n,r)}function v(g){var m=s.slice(),y=n.pxSign,b=g;return(n.symbolRepeatDirection==="start"?y>0:y<0)&&(b=u-1-g),m[l.index]=f*(b-u/2+.5)+s[l.index],{x:m[0],y:m[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function Rfe(t,e,n,r){var i=t.__pictorialBundle,o=t.__pictorialMainPath;o?vv(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(o=t.__pictorialMainPath=Ife(n),i.add(o),vv(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,r))}function kfe(t,e,n){var r=he({},e.barRectShape),i=t.__pictorialBarRect;i?vv(i,null,{shape:r},e,n):(i=t.__pictorialBarRect=new Pt({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,t.add(i))}function Nfe(t,e,n,r){if(n.symbolClip){var i=t.__pictorialClipPath,o=he({},n.clipShape),a=e.valueDim,s=n.animationModel,l=n.dataIndex;if(i)kt(i,{shape:o},s,l);else{o[a.wh]=0,i=new Pt({shape:o}),t.__pictorialBundle.setClipPath(i),t.__pictorialClipPath=i;var u={};u[a.wh]=n.clipShape[a.wh],Ah[r?"updateProps":"initProps"](i,{shape:u},s,l)}}}function cZ(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=dot,n.isAnimationEnabled=hot,n}function dot(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function hot(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function fZ(t,e,n,r){var i=new qe,o=new qe;return i.add(o),i.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?Dfe(i,e,n):Rfe(i,e,n),kfe(i,n,r),Nfe(i,e,n,r),i.__pictorialShapeStr=Lfe(t,n),i.__pictorialSymbolMeta=n,i}function pot(t,e,n){var r=n.animationModel,i=n.dataIndex,o=t.__pictorialBundle;kt(o,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?Dfe(t,e,n,!0):Rfe(t,e,n,!0),kfe(t,n,!0),Nfe(t,e,n,!0)}function dZ(t,e,n,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var o=[];d3(r,function(a){o.push(a)}),r.__pictorialMainPath&&o.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),V(o,function(a){Rc(a,{scaleX:0,scaleY:0},n,e,function(){r.parent&&r.parent.remove(r)})}),t.setItemGraphicEl(e,null)}function Lfe(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function d3(t,e,n){V(t.__pictorialBundle.children(),function(r){r!==t.__pictorialBarRect&&e.call(n,r)})}function vv(t,e,n,r,i,o){e&&t.attr(e),r.symbolClip&&!i?n&&t.attr(n):n&&Ah[i?"updateProps":"initProps"](t,n,r.animationModel,r.dataIndex,o)}function hZ(t,e,n){var r=n.dataIndex,i=n.itemModel,o=i.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),c=o.get("focus"),f=o.get("blurScope"),d=o.get("scale");d3(t,function(g){if(g instanceof Rr){var m=g.style;g.useStyle(he({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},n.style))}else g.useStyle(n.style);var y=g.ensureState("emphasis");y.style=a,d&&(y.scaleX=g.scaleX*1.1,y.scaleY=g.scaleY*1.1),g.ensureState("blur").style=s,g.ensureState("select").style=l,u&&(g.cursor=u),g.z2=n.z2});var p=e.valueDim.posDesc[+(n.boundingLength>0)],v=t.__pictorialBarRect;v.ignoreClip=!0,Jr(v,Cr(i),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:rg(e.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),Bn(t,c,f,o.get("disabled"))}function pZ(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var vot=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return e.prototype.getInitialData=function(n){return n.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Kc(vb.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",clip:!1,progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(vb);function got(t){t.registerChartView(sot),t.registerSeriesModel(vot),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,nt(bue,"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,_ue("pictorialBar"))}var mot=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._layers=[],n}return e.prototype.render=function(n,r,i){var o=n.getData(),a=this,s=this.group,l=n.getLayerSeries(),u=o.getLayout("layoutInfo"),c=u.rect,f=u.boundaryGap;s.x=0,s.y=c.y+f[0];function d(m){return m.name}var p=new au(this._layersSeries||[],l,d,d),v=[];p.add(Re(g,this,"add")).update(Re(g,this,"update")).remove(Re(g,this,"remove")).execute();function g(m,y,b){var O=a._layers;if(m==="remove"){s.remove(O[y]);return}for(var w=[],x=[],S,T=l[y].indices,$=0;$<T.length;$++){var A=o.getItemLayout(T[$]),P=A.x,M=A.y0,I=A.y;w.push(P,M),x.push(P,M+I),S=o.getItemVisual(T[$],"style")}var R,L=o.getItemLayout(T[0]),D=n.getModel("label"),B=D.get("margin"),F=n.getModel("emphasis");if(m==="add"){var z=v[y]=new qe;R=new lce({shape:{points:w,stackedOnPoints:x,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),z.add(R),s.add(z),n.isAnimationEnabled()&&R.setClipPath(yot(R.getBoundingRect(),n,function(){R.removeClipPath()}))}else{var z=O[b];R=z.childAt(0),s.add(z),v[y]=z,kt(R,{shape:{points:w,stackedOnPoints:x}},n),fs(R)}Jr(R,Cr(n),{labelDataIndex:T[$-1],defaultText:o.getName(T[$-1]),inheritColor:S.fill},{normal:{verticalAlign:"middle"}}),R.setTextConfig({position:null,local:!0});var W=R.getTextContent();W&&(W.x=L.x-B,W.y=L.y0+L.y/2),R.useStyle(S),o.setItemGraphicEl(y,R),Kr(R,n),Bn(R,F.get("focus"),F.get("blurScope"),F.get("disabled"))}this._layersSeries=l,this._layers=v},e.type="themeRiver",e}(Kt);function yot(t,e,n){var r=new Pt({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return gn(r,{shape:{x:t.x-50,width:t.width+100,height:t.height+20}},e,n),r}var IM=2,bot=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new A_(Re(this.getData,this),Re(this.getRawData,this))},e.prototype.fixData=function(n){var r=n.length,i={},o=AR(n,function(d){return i.hasOwnProperty(d[0]+"")||(i[d[0]+""]=-1),d[2]}),a=[];o.buckets.each(function(d,p){a.push({name:p,dataList:d})});for(var s=a.length,l=0;l<s;++l){for(var u=a[l].name,c=0;c<a[l].dataList.length;++c){var f=a[l].dataList[c][0]+"";i[f]=l}for(var f in i)i.hasOwnProperty(f)&&i[f]!==l&&(i[f]=l,n[r]=[f,0,u],r++)}return n},e.prototype.getInitialData=function(n,r){for(var i=this.getReferringComponents("singleAxis",rr).models[0],o=i.get("type"),a=Yt(n.data,function(v){return v[2]!==void 0}),s=this.fixData(a||[]),l=[],u=this.nameMap=Be(),c=0,f=0;f<s.length;++f)l.push(s[f][IM]),u.get(s[f][IM])||(u.set(s[f][IM],c),c++);var d=Fg(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:nC(o)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,p=new fi(d,this);return p.initData(s),p},e.prototype.getLayerSeries=function(){for(var n=this.getData(),r=n.count(),i=[],o=0;o<r;++o)i[o]=o;var a=n.mapDimension("single"),s=AR(i,function(u){return n.get("name",u)}),l=[];return s.buckets.each(function(u,c){u.sort(function(f,d){return n.get(a,f)-n.get(a,d)}),l.push({name:c,indices:u})}),l},e.prototype.getAxisTooltipData=function(n,r,i){ve(n)||(n=n?[n]:[]);for(var o=this.getData(),a=this.getLayerSeries(),s=[],l=a.length,u,c=0;c<l;++c){for(var f=Number.MAX_VALUE,d=-1,p=a[c].indices.length,v=0;v<p;++v){var g=o.get(n[0],a[c].indices[v]),m=Math.abs(g-r);m<=f&&(u=g,f=m,d=a[c].indices[v])}s.push(d)}return{dataIndices:s,nestestValue:u}},e.prototype.formatTooltip=function(n,r,i){var o=this.getData(),a=o.getName(n),s=o.get(o.mapDimension("value"),n);return Tr("nameValue",{name:a,value:s})},e.type="series.themeRiver",e.dependencies=["singleAxis"],e.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},e}(rn);function _ot(t,e){t.eachSeriesByType("themeRiver",function(n){var r=n.getData(),i=n.coordinateSystem,o={},a=i.getRect();o.rect=a;var s=n.get("boundaryGap"),l=i.getAxis();if(o.boundaryGap=s,l.orient==="horizontal"){s[0]=Me(s[0],a.height),s[1]=Me(s[1],a.height);var u=a.height-s[0]-s[1];vZ(r,n,u)}else{s[0]=Me(s[0],a.width),s[1]=Me(s[1],a.width);var c=a.width-s[0]-s[1];vZ(r,n,c)}r.setLayout("layoutInfo",o)})}function vZ(t,e,n){if(t.count())for(var r=e.coordinateSystem,i=e.getLayerSeries(),o=t.mapDimension("single"),a=t.mapDimension("value"),s=ye(i,function(m){return ye(m.indices,function(y){var b=r.dataToPoint(t.get(o,y));return b[1]=t.get(a,y),b})}),l=Oot(s),u=l.y0,c=n/l.max,f=i.length,d=i[0].indices.length,p,v=0;v<d;++v){p=u[v]*c,t.setItemLayout(i[0].indices[v],{layerIndex:0,x:s[0][v][0],y0:p,y:s[0][v][1]*c});for(var g=1;g<f;++g)p+=s[g-1][v][1]*c,t.setItemLayout(i[g].indices[v],{layerIndex:g,x:s[g][v][0],y0:p,y:s[g][v][1]*c})}}function Oot(t){for(var e=t.length,n=t[0].length,r=[],i=[],o=0,a=0;a<n;++a){for(var s=0,l=0;l<e;++l)s+=t[l][a][1];s>o&&(o=s),r.push(s)}for(var u=0;u<n;++u)i[u]=(o-r[u])/2;o=0;for(var c=0;c<n;++c){var f=r[c]+i[c];f>o&&(o=f)}return{y0:i,max:o}}function wot(t){t.registerChartView(mot),t.registerSeriesModel(bot),t.registerLayout(_ot),t.registerProcessor($_("themeRiver"))}var xot=2,Sot=4,gZ=function(t){ie(e,t);function e(n,r,i,o){var a=t.call(this)||this;a.z2=xot,a.textConfig={inside:!0},Ke(a).seriesIndex=r.seriesIndex;var s=new Tt({z2:Sot,silent:n.getModel().get(["label","silent"])});return a.setTextContent(s),a.updateData(!0,n,r,i,o),a}return e.prototype.updateData=function(n,r,i,o,a){this.node=r,r.piece=this,i=i||this._seriesModel,o=o||this._ecModel;var s=this;Ke(s).dataIndex=r.dataIndex;var l=r.getModel(),u=l.getModel("emphasis"),c=r.getLayout(),f=he({},c);f.label=null;var d=r.getVisual("style");d.lineJoin="bevel";var p=r.getVisual("decal");p&&(d.decal=ng(p,a));var v=Cd(l.getModel("itemStyle"),f,!0);he(f,v),V(ki,function(b){var O=s.ensureState(b),w=l.getModel([b,"itemStyle"]);O.style=w.getItemStyle();var x=Cd(w,f);x&&(O.shape=x)}),n?(s.setShape(f),s.shape.r=c.r0,gn(s,{shape:{r:c.r}},i,r.dataIndex)):(kt(s,{shape:f},i),fs(s)),s.useStyle(d),this._updateLabel(i);var g=l.getShallow("cursor");g&&s.attr("cursor",g),this._seriesModel=i||this._seriesModel,this._ecModel=o||this._ecModel;var m=u.get("focus"),y=m==="ancestor"?r.getAncestorsIndices():m==="descendant"?r.getDescendantIndices():m;Bn(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(n){var r=this,i=this.node.getModel(),o=i.getModel("label"),a=this.node.getLayout(),s=a.endAngle-a.startAngle,l=(a.startAngle+a.endAngle)/2,u=Math.cos(l),c=Math.sin(l),f=this,d=f.getTextContent(),p=this.node.dataIndex,v=o.get("minAngle")/180*Math.PI,g=o.get("show")&&!(v!=null&&Math.abs(s)<v);d.ignore=!g,V(ib,function(y){var b=y==="normal"?i.getModel("label"):i.getModel([y,"label"]),O=y==="normal",w=O?d:d.ensureState(y),x=n.getFormattedLabel(p,y);O&&(x=x||r.node.name),w.style=un(b,{},null,y!=="normal",!0),x&&(w.style.text=x);var S=b.get("show");S!=null&&!O&&(w.ignore=!S);var T=m(b,"position"),$=O?f:f.states[y],A=$.style.fill;$.textConfig={outsideFill:b.get("color")==="inherit"?A:null,inside:T!=="outside"};var P,M=m(b,"distance")||0,I=m(b,"align"),R=m(b,"rotate"),L=Math.PI*.5,D=Math.PI*1.5,B=Eo(R==="tangential"?Math.PI/2-l:l),F=B>L&&!qv(B-L)&&B<D;T==="outside"?(P=a.r+M,I=F?"right":"left"):!I||I==="center"?(s===2*Math.PI&&a.r0===0?P=0:P=(a.r+a.r0)/2,I="center"):I==="left"?(P=a.r0+M,I=F?"right":"left"):I==="right"&&(P=a.r-M,I=F?"left":"right"),w.style.align=I,w.style.verticalAlign=m(b,"verticalAlign")||"middle",w.x=P*u+a.cx,w.y=P*c+a.cy;var z=0;R==="radial"?z=Eo(-l)+(F?Math.PI:0):R==="tangential"?z=Eo(Math.PI/2-l)+(F?Math.PI:0):It(R)&&(z=R*Math.PI/180),w.rotation=Eo(z)});function m(y,b){var O=y.get(b);return O??o.get(b)}d.dirtyStyle()},e}(Ni),Ek="sunburstRootToNode",mZ="sunburstHighlight",Cot="sunburstUnhighlight";function Tot(t){t.registerAction({type:Ek,update:"updateView"},function(e,n){n.eachComponent({mainType:"series",subType:"sunburst",query:e},r);function r(i,o){var a=mb(e,[Ek],i);if(a){var s=i.getViewRoot();s&&(e.direction=K5(s,a.node)?"rollUp":"drillDown"),i.resetViewRoot(a.node)}}}),t.registerAction({type:mZ,update:"none"},function(e,n,r){e=he({},e),n.eachComponent({mainType:"series",subType:"sunburst",query:e},i);function i(o){var a=mb(e,[mZ],o);a&&(e.dataIndex=a.node.dataIndex)}process.env.NODE_ENV!=="production"&&Un("sunburstHighlight","highlight"),r.dispatchAction(he(e,{type:"highlight"}))}),t.registerAction({type:Cot,update:"updateView"},function(e,n,r){e=he({},e),process.env.NODE_ENV!=="production"&&Un("sunburstUnhighlight","downplay"),r.dispatchAction(he(e,{type:"downplay"}))})}var Pot=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i,o){var a=this;this.seriesModel=n,this.api=i,this.ecModel=r;var s=n.getData(),l=s.tree.root,u=n.getViewRoot(),c=this.group,f=n.get("renderLabelForZeroData"),d=[];u.eachNode(function(b){d.push(b)});var p=this._oldChildren||[];v(d,p),y(l,u),this._initEvents(),this._oldChildren=d;function v(b,O){if(b.length===0&&O.length===0)return;new au(O,b,w,w).add(x).update(x).remove(nt(x,null)).execute();function w(S){return S.getId()}function x(S,T){var $=S==null?null:b[S],A=T==null?null:O[T];g($,A)}}function g(b,O){if(!f&&b&&!b.getValue()&&(b=null),b!==l&&O!==l){if(O&&O.piece)b?(O.piece.updateData(!1,b,n,r,i),s.setItemGraphicEl(b.dataIndex,O.piece)):m(O);else if(b){var w=new gZ(b,n,r,i);c.add(w),s.setItemGraphicEl(b.dataIndex,w)}}}function m(b){b&&b.piece&&(c.remove(b.piece),b.piece=null)}function y(b,O){O.depth>0?(a.virtualPiece?a.virtualPiece.updateData(!1,b,n,r,i):(a.virtualPiece=new gZ(b,n,r,i),c.add(a.virtualPiece)),O.piece.off("click"),a.virtualPiece.on("click",function(w){a._rootToNode(O.parentNode)})):a.virtualPiece&&(c.remove(a.virtualPiece),a.virtualPiece=null)}},e.prototype._initEvents=function(){var n=this;this.group.off("click"),this.group.on("click",function(r){var i=!1,o=n.seriesModel.getViewRoot();o.eachNode(function(a){if(!i&&a.piece&&a.piece===r.target){var s=a.getModel().get("nodeClick");if(s==="rootToNode")n._rootToNode(a);else if(s==="link"){var l=a.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";HS(u,c)}}i=!0}})})},e.prototype._rootToNode=function(n){n!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:Ek,from:this.uid,seriesId:this.seriesModel.id,targetNode:n})},e.prototype.containPoint=function(n,r){var i=r.getData(),o=i.getItemLayout(0);if(o){var a=n[0]-o.cx,s=n[1]-o.cy,l=Math.sqrt(a*a+s*s);return l<=o.r&&l>=o.r0}},e.type="sunburst",e}(Kt),$ot=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return e.prototype.getInitialData=function(n,r){var i={name:n.name,children:n.data};Bfe(i);var o=this._levelModels=ye(n.levels||[],function(l){return new tn(l,this,r)},this),a=q5.createTree(i,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var f=a.getNodeByDataIndex(c),d=o[f.depth];return d&&(u.parentModel=d),u})}return a.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(n){var r=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(n);return r.treePathInfo=ZP(i,this),r},e.prototype.getLevelModel=function(n){return this._levelModels&&this._levelModels[n.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(n){n?this._viewRoot=n:n=this._viewRoot;var r=this.getRawData().tree.root;(!n||n!==r&&!r.contains(n))&&(this._viewRoot=r)},e.prototype.enableAriaDecal=function(){Qce(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(rn);function Bfe(t){var e=0;V(t.children,function(r){Bfe(r);var i=r.value;ve(i)&&(i=i[0]),e+=i});var n=t.value;ve(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=e),n<0&&(n=0),ve(t.value)?t.value[0]=n:t.value=n}var yZ=Math.PI/180;function Aot(t,e,n){e.eachSeriesByType(t,function(r){var i=r.get("center"),o=r.get("radius");ve(o)||(o=[0,o]),ve(i)||(i=[i,i]);var a=n.getWidth(),s=n.getHeight(),l=Math.min(a,s),u=Me(i[0],a),c=Me(i[1],s),f=Me(o[0],l/2),d=Me(o[1],l/2),p=-r.get("startAngle")*yZ,v=r.get("minAngle")*yZ,g=r.getData().tree.root,m=r.getViewRoot(),y=m.depth,b=r.get("sort");b!=null&&Vfe(m,b);var O=0;V(m.children,function(B){!isNaN(B.getValue())&&O++});var w=m.getValue(),x=Math.PI/(w||O)*2,S=m.depth>0,T=m.height-(S?-1:1),$=(d-f)/(T||1),A=r.get("clockwise"),P=r.get("stillShowZeroSum"),M=A?1:-1,I=function(B,F){if(B){var z=F;if(B!==g){var W=B.getValue(),j=w===0&&P?x:W*x;j<v&&(j=v),z=F+M*j;var H=B.depth-y-(S?-1:1),Z=f+$*H,J=f+$*(H+1),se=r.getLevelModel(B);if(se){var oe=se.get("r0",!0),de=se.get("r",!0),re=se.get("radius",!0);re!=null&&(oe=re[0],de=re[1]),oe!=null&&(Z=Me(oe,l/2)),de!=null&&(J=Me(de,l/2))}B.setLayout({angle:j,startAngle:F,endAngle:z,clockwise:A,cx:u,cy:c,r0:Z,r:J})}if(B.children&&B.children.length){var ue=0;V(B.children,function(ee){ue+=I(ee,F+ue)})}return z-F}};if(S){var R=f,L=f+$,D=Math.PI*2;g.setLayout({angle:D,startAngle:p,endAngle:p+D,clockwise:A,cx:u,cy:c,r0:R,r:L})}I(m,p)})}function Vfe(t,e){var n=t.children||[];t.children=Eot(n,e),n.length&&V(t.children,function(r){Vfe(r,e)})}function Eot(t,e){if(Fe(e)){var n=ye(t,function(i,o){var a=i.getValue();return{params:{depth:i.depth,height:i.height,dataIndex:i.dataIndex,getValue:function(){return a}},index:o}});return n.sort(function(i,o){return e(i.params,o.params)}),ye(n,function(i){return t[i.index]})}else{var r=e==="asc";return t.sort(function(i,o){var a=(i.getValue()-o.getValue())*(r?1:-1);return a===0?(i.dataIndex-o.dataIndex)*(r?-1:1):a})}}function Mot(t){var e={};function n(r,i,o){for(var a=r;a&&a.depth>1;)a=a.parentNode;var s=i.getColorFromPalette(a.name||a.dataIndex+"",e);return r.depth>1&&Ie(s)&&(s=MS(s,(r.depth-1)/(o-1)*.5)),s}t.eachSeriesByType("sunburst",function(r){var i=r.getData(),o=i.tree;o.eachNode(function(a){var s=a.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=n(a,r,o.root.height));var u=i.ensureUniqueItemVisual(a.dataIndex,"style");he(u,l)})})}function Iot(t){t.registerChartView(Pot),t.registerSeriesModel($ot),t.registerLayout(nt(Aot,"sunburst")),t.registerProcessor(nt($_,"sunburst")),t.registerVisual(Mot),Tot(t)}var bZ={color:"fill",borderColor:"stroke"},Dot={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Yl=$t(),Rot=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(n,r){return pl(null,this)},e.prototype.getDataParams=function(n,r,i){var o=t.prototype.getDataParams.call(this,n,r);return i&&(o.info=Yl(i).info),o},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(rn);function kot(t,e){return e=e||[0,0],ye(["x","y"],function(n,r){var i=this.getAxis(n),o=e[r],a=t[r]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(o-a)-i.dataToCoord(o+a))},this)}function Not(t){var e=t.master.getRect();return{coordSys:{type:"cartesian2d",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(n){return t.dataToPoint(n)},size:Re(kot,t)}}}function Lot(t,e){return e=e||[0,0],ye([0,1],function(n){var r=e[n],i=t[n]/2,o=[],a=[];return o[n]=r-i,a[n]=r+i,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])},this)}function Bot(t){var e=t.getBoundingRect();return{coordSys:{type:"geo",x:e.x,y:e.y,width:e.width,height:e.height,zoom:t.getZoom()},api:{coord:function(n){return t.dataToPoint(n)},size:Re(Lot,t)}}}function Vot(t,e){var n=this.getAxis(),r=e instanceof Array?e[0]:e,i=(t instanceof Array?t[0]:t)/2;return n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(r-i)-n.dataToCoord(r+i))}function zot(t){var e=t.getRect();return{coordSys:{type:"singleAxis",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:function(n){return t.dataToPoint(n)},size:Re(Vot,t)}}}function Fot(t,e){return e=e||[0,0],ye(["Radius","Angle"],function(n,r){var i="get"+n+"Axis",o=this[i](),a=e[r],s=t[r]/2,l=o.type==="category"?o.getBandWidth():Math.abs(o.dataToCoord(a-s)-o.dataToCoord(a+s));return n==="Angle"&&(l=l*Math.PI/180),l},this)}function Wot(t){var e=t.getRadiusAxis(),n=t.getAngleAxis(),r=e.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:r[1],r0:r[0]},api:{coord:function(i){var o=e.dataToRadius(i[0]),a=n.dataToAngle(i[1]),s=t.coordToPoint([o,a]);return s.push(o,a*Math.PI/180),s},size:Re(Fot,t)}}}function Qot(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(r,i){return t.dataToPoint(r,i)}}}}var _Z={};function zfe(t,e,n,r){return t&&(t.legacy||t.legacy!==!1&&!n&&!r&&e!=="tspan"&&(e==="text"||ke(t,"text")))}function Ffe(t,e,n){var r=t,i,o,a;if(e==="text")a=r;else{a={},ke(r,"text")&&(a.text=r.text),ke(r,"rich")&&(a.rich=r.rich),ke(r,"textFill")&&(a.fill=r.textFill),ke(r,"textStroke")&&(a.stroke=r.textStroke),ke(r,"fontFamily")&&(a.fontFamily=r.fontFamily),ke(r,"fontSize")&&(a.fontSize=r.fontSize),ke(r,"fontStyle")&&(a.fontStyle=r.fontStyle),ke(r,"fontWeight")&&(a.fontWeight=r.fontWeight),o={type:"text",style:a,silent:!0},i={};var s=ke(r,"textPosition");n?i.position=s?r.textPosition:"inside":s&&(i.position=r.textPosition),ke(r,"textPosition")&&(i.position=r.textPosition),ke(r,"textOffset")&&(i.offset=r.textOffset),ke(r,"textRotation")&&(i.rotation=r.textRotation),ke(r,"textDistance")&&(i.distance=r.textDistance)}return OZ(a,t),V(a.rich,function(l){OZ(l,l)}),{textConfig:i,textContent:o}}function OZ(t,e){e&&(e.font=e.textFont||e.font,ke(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),ke(e,"textAlign")&&(t.align=e.textAlign),ke(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),ke(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),ke(e,"textWidth")&&(t.width=e.textWidth),ke(e,"textHeight")&&(t.height=e.textHeight),ke(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),ke(e,"textPadding")&&(t.padding=e.textPadding),ke(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),ke(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),ke(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),ke(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),ke(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),ke(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),ke(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function wZ(t,e,n){var r=t;r.textPosition=r.textPosition||n.position||"inside",n.offset!=null&&(r.textOffset=n.offset),n.rotation!=null&&(r.textRotation=n.rotation),n.distance!=null&&(r.textDistance=n.distance);var i=r.textPosition.indexOf("inside")>=0,o=t.fill||"#000";xZ(r,e);var a=r.textFill==null;return i?a&&(r.textFill=n.insideFill||"#fff",!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=o),r.textStrokeWidth==null&&(r.textStrokeWidth=2)):(a&&(r.textFill=t.fill||n.outsideFill||"#000"),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=e.text,r.rich=e.rich,V(e.rich,function(s){xZ(s,s)}),r}function xZ(t,e){e&&(ke(e,"fill")&&(t.textFill=e.fill),ke(e,"stroke")&&(t.textStroke=e.fill),ke(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),ke(e,"font")&&(t.font=e.font),ke(e,"fontStyle")&&(t.fontStyle=e.fontStyle),ke(e,"fontWeight")&&(t.fontWeight=e.fontWeight),ke(e,"fontSize")&&(t.fontSize=e.fontSize),ke(e,"fontFamily")&&(t.fontFamily=e.fontFamily),ke(e,"align")&&(t.textAlign=e.align),ke(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),ke(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),ke(e,"width")&&(t.textWidth=e.width),ke(e,"height")&&(t.textHeight=e.height),ke(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),ke(e,"padding")&&(t.textPadding=e.padding),ke(e,"borderColor")&&(t.textBorderColor=e.borderColor),ke(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),ke(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),ke(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),ke(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),ke(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),ke(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),ke(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),ke(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),ke(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),ke(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}function SZ(t,e){if(process.env.NODE_ENV!=="production"){var n=t+"^_^"+e;_Z[n]||(console.warn('[ECharts] DEPRECATED: "'+t+'" has been deprecated. '+e),_Z[n]=!0)}}var Wfe={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},CZ=bt(Wfe),pC=Ta(ll,function(t,e){return t[e]=1,t},{}),TZ=ll.join(", "),vC=["","style","shape","extra"],ag=$t();function h3(t,e,n,r,i){var o=t+"Animation",a=Mg(t,r,i)||{},s=ag(e).userDuring;return a.duration>0&&(a.during=s?Re(Zot,{el:e,userDuring:s}):null,a.setToFinal=!0,a.scope=t),he(a,n[o]),a}function Cx(t,e,n,r){r=r||{};var i=r.dataIndex,o=r.isInit,a=r.clearStyle,s=n.isAnimationEnabled(),l=ag(t),u=e.style;l.userDuring=e.during;var c={},f={};if(Yot(t,e,f),$Z("shape",e,f),$Z("extra",e,f),!o&&s&&(Xot(t,e,c),PZ("shape",t,e,c),PZ("extra",t,e,c),qot(t,e,u,c)),f.style=u,Hot(t,f,a),jot(t,e),s)if(o){var d={};V(vC,function(v){var g=v?e[v]:e;g&&g.enterFrom&&(v&&(d[v]=d[v]||{}),he(v?d[v]:d,g.enterFrom))});var p=h3("enter",t,e,n,i);p.duration>0&&t.animateFrom(d,p)}else Got(t,e,i||0,n,c);Qfe(t,e),u?t.dirty():t.markRedraw()}function Qfe(t,e){for(var n=ag(t).leaveToProps,r=0;r<vC.length;r++){var i=vC[r],o=i?e[i]:e;o&&o.leaveTo&&(n||(n=ag(t).leaveToProps={}),i&&(n[i]=n[i]||{}),he(i?n[i]:n,o.leaveTo))}}function qP(t,e,n,r){if(t){var i=t.parent,o=ag(t).leaveToProps;if(o){var a=h3("update",t,e,n,0);a.done=function(){i.remove(t)},t.animateTo(o,a)}else i.remove(t)}}function Hd(t){return t==="all"}function Hot(t,e,n){var r=e.style;if(!t.isGroup&&r){if(n){t.useStyle({});for(var i=t.animators,o=0;o<i.length;o++){var a=i[o];a.targetName==="style"&&a.changeTarget(t.style)}}t.setStyle(r)}e&&(e.style=null,e&&t.attr(e),e.style=r)}function Got(t,e,n,r,i){if(i){var o=h3("update",t,e,r,n);o.duration>0&&t.animateFrom(i,o)}}function jot(t,e){ke(e,"silent")&&(t.silent=e.silent),ke(e,"ignore")&&(t.ignore=e.ignore),t instanceof $a&&ke(e,"invisible")&&(t.invisible=e.invisible),t instanceof mt&&ke(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}var Rs={},Uot={setTransform:function(t,e){return process.env.NODE_ENV!=="production"&&je(ke(pC,t),"Only "+TZ+" available in `setTransform`."),Rs.el[t]=e,this},getTransform:function(t){return process.env.NODE_ENV!=="production"&&je(ke(pC,t),"Only "+TZ+" available in `getTransform`."),Rs.el[t]},setShape:function(t,e){process.env.NODE_ENV!=="production"&&Tp(t);var n=Rs.el,r=n.shape||(n.shape={});return r[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){process.env.NODE_ENV!=="production"&&Tp(t);var e=Rs.el.shape;if(e)return e[t]},setStyle:function(t,e){process.env.NODE_ENV!=="production"&&Tp(t);var n=Rs.el,r=n.style;return r&&(process.env.NODE_ENV!=="production"&&Mc(e)&&Mn("style."+t+" must not be assigned with NaN."),r[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){process.env.NODE_ENV!=="production"&&Tp(t);var e=Rs.el.style;if(e)return e[t]},setExtra:function(t,e){process.env.NODE_ENV!=="production"&&Tp(t);var n=Rs.el.extra||(Rs.el.extra={});return n[t]=e,this},getExtra:function(t){process.env.NODE_ENV!=="production"&&Tp(t);var e=Rs.el.extra;if(e)return e[t]}};function Tp(t){if(process.env.NODE_ENV!=="production"&&(t==="transition"||t==="enterFrom"||t==="leaveTo"))throw new Error('key must not be "'+t+'"')}function Zot(){var t=this,e=t.el;if(e){var n=ag(e).userDuring,r=t.userDuring;if(n!==r){t.el=t.userDuring=null;return}Rs.el=e,r(Uot)}}function PZ(t,e,n,r){var i=n[t];if(i){var o=e[t],a;if(o){var s=n.transition,l=i.transition;if(l)if(!a&&(a=r[t]={}),Hd(l))he(a,o);else for(var u=nn(l),c=0;c<u.length;c++){var f=u[c],d=o[f];a[f]=d}else if(Hd(s)||st(s,t)>=0){!a&&(a=r[t]={});for(var p=bt(o),c=0;c<p.length;c++){var f=p[c],d=o[f];Kot(i[f],d)&&(a[f]=d)}}}}}function $Z(t,e,n){var r=e[t];if(r)for(var i=n[t]={},o=bt(r),a=0;a<o.length;a++){var s=o[a];i[s]=uy(r[s])}}function Xot(t,e,n){for(var r=e.transition,i=Hd(r)?ll:nn(r||[]),o=0;o<i.length;o++){var a=i[o];if(!(a==="style"||a==="shape"||a==="extra")){var s=t[a];process.env.NODE_ENV!=="production"&&Hfe(a,"el.transition"),n[a]=s}}}function Yot(t,e,n){for(var r=0;r<CZ.length;r++){var i=CZ[r],o=Wfe[i],a=e[i];a&&(n[o[0]]=a[0],n[o[1]]=a[1])}for(var r=0;r<ll.length;r++){var s=ll[r];e[s]!=null&&(n[s]=e[s])}}function qot(t,e,n,r){if(n){var i=t.style,o;if(i){var a=n.transition,s=e.transition;if(a&&!Hd(a)){var l=nn(a);!o&&(o=r.style={});for(var u=0;u<l.length;u++){var c=l[u],f=i[c];o[c]=f}}else if(t.getAnimationStyleProps&&(Hd(s)||Hd(a)||st(s,"style")>=0)){var d=t.getAnimationStyleProps(),p=d?d.style:null;if(p){!o&&(o=r.style={});for(var v=bt(n),u=0;u<v.length;u++){var c=v[u];if(p[c]){var f=i[c];o[c]=f}}}}}}}function Kot(t,e){return Yr(t)?t!==e:t!=null&&isFinite(t)}var Hfe;process.env.NODE_ENV!=="production"&&(Hfe=function(t,e){ke(pC,t)||Mn("Prop `"+t+"` is not a permitted in `"+e+"`. Only `"+bt(pC).join("`, `")+"` are permitted.")});var Gfe=$t(),Jot=["percent","easing","shape","style","extra"];function jfe(t){t.stopAnimation("keyframe"),t.attr(Gfe(t))}function gC(t,e,n){if(!(!n.isAnimationEnabled()||!e)){if(ve(e)){V(e,function(s){gC(t,s,n)});return}var r=e.keyframes,i=e.duration;if(n&&i==null){var o=Mg("enter",n,0);i=o&&o.duration}if(!(!r||!i)){var a=Gfe(t);V(vC,function(s){if(!(s&&!t[s])){var l,u=!1;r.sort(function(c,f){return c.percent-f.percent}),V(r,function(c){var f=t.animators,d=s?c[s]:c;if(process.env.NODE_ENV!=="production"&&c.percent>=1&&(u=!0),!!d){var p=bt(d);if(s||(p=Yt(p,function(m){return st(Jot,m)<0})),!!p.length){l||(l=t.animate(s,e.loop,!0),l.scope="keyframe");for(var v=0;v<f.length;v++)f[v]!==l&&f[v].targetName===l.targetName&&f[v].stopTracks(p);s&&(a[s]=a[s]||{});var g=s?a[s]:a;V(p,function(m){g[m]=((s?t[s]:t)||{})[m]}),l.whenWithKeys(i*c.percent,d,p,c.easing)}}}),l&&(process.env.NODE_ENV!=="production"&&(u||Mn("End frame with percent: 1 is missing in the keyframeAnimation.",!0)),l.delay(e.delay||0).duration(i).start(e.easing))}})}}}var ql="emphasis",uc="normal",p3="blur",v3="select",Lc=[uc,ql,p3,v3],DM={normal:["itemStyle"],emphasis:[ql,"itemStyle"],blur:[p3,"itemStyle"],select:[v3,"itemStyle"]},RM={normal:["label"],emphasis:[ql,"label"],blur:[p3,"label"],select:[v3,"label"]},eat=["x","y"],tat="e\0\0",ta={normal:{},emphasis:{},blur:{},select:{}},AZ={cartesian2d:Not,geo:Bot,single:zot,polar:Wot,calendar:Qot};function mC(t){return t instanceof mt}function Mk(t){return t instanceof $a}function nat(t,e){e.copyTransform(t),Mk(e)&&Mk(t)&&(e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel,e.invisible=t.invisible,e.ignore=t.ignore,mC(e)&&mC(t)&&e.setShape(t.shape))}var rat=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i,o){this._progressiveEls=null;var a=this._data,s=n.getData(),l=this.group,u=EZ(n,s,r,i);a||l.removeAll(),s.diff(a).add(function(f){kM(i,null,f,u(f,o),n,l,s)}).remove(function(f){var d=a.getItemGraphicEl(f);d&&qP(d,Yl(d).option,n)}).update(function(f,d){var p=a.getItemGraphicEl(d);kM(i,p,f,u(f,o),n,l,s)}).execute();var c=n.get("clip",!0)?T_(n.coordinateSystem,!1,n):null;c?l.setClipPath(c):l.removeClipPath(),this._data=s},e.prototype.incrementalPrepareRender=function(n,r,i){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(n,r,i,o,a){var s=r.getData(),l=EZ(r,s,i,o),u=this._progressiveEls=[];function c(p){p.isGroup||(p.incremental=!0,p.ensureState("emphasis").hoverLayer=!0)}for(var f=n.start;f<n.end;f++){var d=kM(null,null,f,l(f,a),r,this.group,s);d&&(d.traverse(c),u.push(d))}},e.prototype.eachRendered=function(n){qc(this._progressiveEls||this.group,n)},e.prototype.filterForExposedEvent=function(n,r,i,o){var a=r.element;if(a==null||i.name===a)return!0;for(;(i=i.__hostTarget||i.parent)&&i!==this.group;)if(i.name===a)return!0;return!1},e.type="custom",e}(Kt);function g3(t){var e=t.type,n;if(e==="path"){var r=t.shape,i=r.width!=null&&r.height!=null?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,o=Xfe(r);n=b_(o,null,i,r.layout||"center"),Yl(n).customPathData=o}else if(e==="image")n=new Rr({}),Yl(n).customImagePath=t.style.image;else if(e==="text")n=new Tt({});else if(e==="group")n=new qe;else{if(e==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var a=PP(e);if(!a){var s="";process.env.NODE_ENV!=="production"&&(s='graphic type "'+e+'" can not be found.'),Qt(s)}n=new a}return Yl(n).customGraphicType=e,n.name=t.name,n.z2EmphasisLift=1,n.z2SelectLift=1,n}function m3(t,e,n,r,i,o,a){jfe(e);var s=i&&i.normal.cfg;s&&e.setTextConfig(s),r&&r.transition==null&&(r.transition=eat);var l=r&&r.style;if(l){if(e.type==="text"){var u=l;ke(u,"textFill")&&(u.fill=u.textFill),ke(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,f=mC(e)?l.decal:null;t&&f&&(f.dirty=!0,c=ng(f,t)),l.__decalPattern=c}if(Mk(e)&&l){var c=l.__decalPattern;c&&(l.decal=c)}Cx(e,r,o,{dataIndex:n,isInit:a,clearStyle:!0}),gC(e,r.keyframeAnimation,o)}function Ufe(t,e,n,r,i){var o=e.isGroup?null:e,a=i&&i[t].cfg;if(o){var s=o.ensureState(t);if(r===!1){var l=o.getState(t);l&&(l.style=null)}else s.style=r||null;a&&(s.textConfig=a),ch(o)}}function iat(t,e,n){if(!t.isGroup){var r=t,i=n.currentZ,o=n.currentZLevel;r.z=i,r.zlevel=o;var a=e.z2;a!=null&&(r.z2=a||0);for(var s=0;s<Lc.length;s++)oat(r,e,Lc[s])}}function oat(t,e,n){var r=n===uc,i=r?e:yC(e,n),o=i?i.z2:null,a;o!=null&&(a=r?t:t.ensureState(n),a.z2=o||0)}function EZ(t,e,n,r){var i=t.get("renderItem"),o=t.coordinateSystem,a={};o&&(process.env.NODE_ENV!=="production"&&(je(i,"series.render is required."),je(o.prepareCustoms||AZ[o.type],"This coordSys does not support custom series.")),a=o.prepareCustoms?o.prepareCustoms(o):AZ[o.type](o));for(var s=Ge({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:w,style:S,ordinalRawValue:x,styleEmphasis:T,visual:P,barLayout:M,currentSeriesIndices:I,font:R},a.api||{}),l={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:a.coordSys,dataInsideLength:e.count(),encode:aat(t.getData())},u,c,f={},d={},p={},v={},g=0;g<Lc.length;g++){var m=Lc[g];p[m]=t.getModel(DM[m]),v[m]=t.getModel(RM[m])}function y(L){return L===u?c||(c=e.getItemModel(L)):e.getItemModel(L)}function b(L,D){return e.hasItemOption?L===u?f[D]||(f[D]=y(L).getModel(DM[D])):y(L).getModel(DM[D]):p[D]}function O(L,D){return e.hasItemOption?L===u?d[D]||(d[D]=y(L).getModel(RM[D])):y(L).getModel(RM[D]):v[D]}return function(L,D){return u=L,c=null,f={},d={},i&&i(Ge({dataIndexInside:L,dataIndex:e.getRawIndex(L),actionType:D?D.type:null},l),s)};function w(L,D){return D==null&&(D=u),e.getStore().get(e.getDimensionIndex(L||0),D)}function x(L,D){D==null&&(D=u),L=L||0;var B=e.getDimensionInfo(L);if(!B){var F=e.getDimensionIndex(L);return F>=0?e.getStore().get(F,D):void 0}var z=e.get(B.name,D),W=B&&B.ordinalMeta;return W?W.categories[z]:z}function S(L,D){process.env.NODE_ENV!=="production"&&SZ("api.style","Please write literal style directly instead."),D==null&&(D=u);var B=e.getItemVisual(D,"style"),F=B&&B.fill,z=B&&B.opacity,W=b(D,uc).getItemStyle();F!=null&&(W.fill=F),z!=null&&(W.opacity=z);var j={inheritColor:Ie(F)?F:"#000"},H=O(D,uc),Z=un(H,null,j,!1,!0);Z.text=H.getShallow("show")?Je(t.getFormattedLabel(D,uc),rg(e,D)):null;var J=WS(H,j,!1);return A(L,W),W=wZ(W,Z,J),L&&$(W,L),W.legacy=!0,W}function T(L,D){process.env.NODE_ENV!=="production"&&SZ("api.styleEmphasis","Please write literal style directly instead."),D==null&&(D=u);var B=b(D,ql).getItemStyle(),F=O(D,ql),z=un(F,null,null,!0,!0);z.text=F.getShallow("show")?Ro(t.getFormattedLabel(D,ql),t.getFormattedLabel(D,uc),rg(e,D)):null;var W=WS(F,null,!0);return A(L,B),B=wZ(B,z,W),L&&$(B,L),B.legacy=!0,B}function $(L,D){for(var B in D)ke(D,B)&&(L[B]=D[B])}function A(L,D){L&&(L.textFill&&(D.textFill=L.textFill),L.textPosition&&(D.textPosition=L.textPosition))}function P(L,D){if(D==null&&(D=u),ke(bZ,L)){var B=e.getItemVisual(D,"style");return B?B[bZ[L]]:null}if(ke(Dot,L))return e.getItemVisual(D,L)}function M(L){if(o.type==="cartesian2d"){var D=o.getBaseAxis();return DYe(Ge({axis:D},L))}}function I(){return n.getCurrentSeriesIndices()}function R(L){return q8(L,n)}}function aat(t){var e={};return V(t.dimensions,function(n){var r=t.getDimensionInfo(n);if(!r.isExtraCoord){var i=r.coordDim,o=e[i]=e[i]||[];o[r.coordDimIndex]=t.getDimensionIndex(n)}}),e}function kM(t,e,n,r,i,o,a){if(!r){o.remove(e);return}var s=y3(t,e,n,r,i,o);return s&&a.setItemGraphicEl(n,s),s&&Bn(s,r.focus,r.blurScope,r.emphasisDisabled),s}function y3(t,e,n,r,i,o){process.env.NODE_ENV!=="production"&&je(r,"should not have an null/undefined element setting");var a=-1,s=e;e&&Zfe(e,r,i)&&(a=st(o.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=g3(r),s&&nat(s,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),ta.normal.cfg=ta.normal.conOpt=ta.emphasis.cfg=ta.emphasis.conOpt=ta.blur.cfg=ta.blur.conOpt=ta.select.cfg=ta.select.conOpt=null,ta.isLegacy=!1,lat(u,n,r,i,l,ta),sat(u,n,r,i,l),m3(t,u,n,r,ta,i,l),ke(r,"info")&&(Yl(u).info=r.info);for(var c=0;c<Lc.length;c++){var f=Lc[c];if(f!==uc){var d=yC(r,f),p=b3(r,d,f);Ufe(f,u,d,p,ta)}}return iat(u,r,i),r.type==="group"&&uat(t,u,n,r,i),a>=0?o.replaceAt(u,a):o.add(u),u}function Zfe(t,e,n){var r=Yl(t),i=e.type,o=e.shape,a=e.style;return n.isUniversalTransitionEnabled()||i!=null&&i!==r.customGraphicType||i==="path"&&hat(o)&&Xfe(o)!==r.customPathData||i==="image"&&ke(a,"image")&&a.image!==r.customImagePath}function sat(t,e,n,r,i){var o=n.clipPath;if(o===!1)t&&t.getClipPath()&&t.removeClipPath();else if(o){var a=t.getClipPath();a&&Zfe(a,o,r)&&(a=null),a||(a=g3(o),process.env.NODE_ENV!=="production"&&je(mC(a),"Only any type of `path` can be used in `clipPath`, rather than "+a.type+"."),t.setClipPath(a)),m3(null,a,e,o,null,r,i)}}function lat(t,e,n,r,i,o){if(!t.isGroup){MZ(n,null,o),MZ(n,ql,o);var a=o.normal.conOpt,s=o.emphasis.conOpt,l=o.blur.conOpt,u=o.select.conOpt;if(a!=null||s!=null||u!=null||l!=null){var c=t.getTextContent();if(a===!1)c&&t.removeTextContent();else{a=o.normal.conOpt=a||{type:"text"},c?c.clearStates():(c=g3(a),t.setTextContent(c)),m3(null,c,e,a,null,r,i);for(var f=a&&a.style,d=0;d<Lc.length;d++){var p=Lc[d];if(p!==uc){var v=o[p].conOpt;Ufe(p,c,v,b3(a,v,p),null)}}f?c.dirty():c.markRedraw()}}}}function MZ(t,e,n){var r=e?yC(t,e):t,i=e?b3(t,r,ql):t.style,o=t.type,a=r?r.textConfig:null,s=t.textContent,l=s?e?yC(s,e):s:null;if(i&&(n.isLegacy||zfe(i,o,!!a,!!l))){n.isLegacy=!0;var u=Ffe(i,o,!e);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var c=l;!c.type&&(c.type="text"),process.env.NODE_ENV!=="production"&&je(c.type==="text",'textContent.type must be "text"')}var f=e?n[e]:n.normal;f.cfg=a,f.conOpt=l}function yC(t,e){return e?t?t[e]:null:t}function b3(t,e,n){var r=e&&e.style;return r==null&&n===ql&&t&&(r=t.styleEmphasis),r}function uat(t,e,n,r,i){var o=r.children,a=o?o.length:0,s=r.$mergeChildren,l=s==="byName"||r.diffChildrenByName,u=s===!1;if(!(!a&&!l&&!u)){if(l){fat({api:t,oldChildren:e.children()||[],newChildren:o||[],dataIndex:n,seriesModel:i,group:e});return}u&&e.removeAll();for(var c=0;c<a;c++){var f=o[c],d=e.childAt(c);f?(f.ignore==null&&(f.ignore=!1),y3(t,d,n,f,i,e)):(process.env.NODE_ENV!=="production"&&je(d,"renderItem should not return a group containing elements as null/undefined/{} if they do not exist before."),d.ignore=!0)}for(var p=e.childCount()-1;p>=c;p--){var v=e.childAt(p);cat(e,v,i)}}}function cat(t,e,n){e&&qP(e,Yl(t).option,n)}function fat(t){new au(t.oldChildren,t.newChildren,IZ,IZ,t).add(DZ).update(DZ).remove(dat).execute()}function IZ(t,e){var n=t&&t.name;return n??tat+e}function DZ(t,e){var n=this.context,r=t!=null?n.newChildren[t]:null,i=e!=null?n.oldChildren[e]:null;y3(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function dat(t){var e=this.context,n=e.oldChildren[t];n&&qP(n,Yl(n).option,e.seriesModel)}function Xfe(t){return t&&(t.pathData||t.d)}function hat(t){return t&&(ke(t,"pathData")||ke(t,"d"))}function pat(t){t.registerChartView(rat),t.registerSeriesModel(Rot)}var ld=$t(),RZ=Ue,NM=Re,_3=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,n,r,i){var o=n.get("value"),a=n.get("status");if(this._axisModel=e,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,e,n,r);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(r),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(e,n);if(!s)s=this._group=new qe,this.createPointerEl(s,u,e,n),this.createLabelEl(s,u,e,n),r.getZr().add(s);else{var d=nt(kZ,n,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,n)}LZ(s,n,!0),this._renderHandle(o)}},t.prototype.remove=function(e){this.clear(e)},t.prototype.dispose=function(e){this.clear(e)},t.prototype.determineAnimation=function(e,n){var r=n.get("animation"),i=e.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=H5(e).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return r===!0},t.prototype.makeElOption=function(e,n,r,i,o){},t.prototype.createPointerEl=function(e,n,r,i){var o=n.pointer;if(o){var a=ld(e).pointerEl=new Ah[o.type](RZ(n.pointer));e.add(a)}},t.prototype.createLabelEl=function(e,n,r,i){if(n.label){var o=ld(e).labelEl=new Tt(RZ(n.label));e.add(o),NZ(o,i)}},t.prototype.updatePointerEl=function(e,n,r){var i=ld(e).pointerEl;i&&n.pointer&&(i.setStyle(n.pointer.style),r(i,{shape:n.pointer.shape}))},t.prototype.updateLabelEl=function(e,n,r,i){var o=ld(e).labelEl;o&&(o.setStyle(n.label.style),r(o,{x:n.label.x,y:n.label.y}),NZ(o,i))},t.prototype._renderHandle=function(e){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=Ig(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){ru(u.event)},onmousedown:NM(this._onHandleDragMove,this,0,0),drift:NM(this._onHandleDragMove,this),ondragend:NM(this._onHandleDragEnd,this)}),r.add(i)),LZ(i,n,!1),i.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=o.get("size");ve(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,Vg(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,n){kZ(this._axisPointerModel,!n&&this._moveAnimation,this._handle,LM(this.getHandleTransform(e,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(e,n){var r=this._handle;if(r){this._dragging=!0;var i=this.updateHandleTransform(LM(r),[e,n],this._axisModel,this._axisPointerModel);this._payloadInfo=i,r.stopAnimation(),r.attr(LM(i)),ld(r).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){var e=this._handle;if(e){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}]})}},t.prototype._onHandleDragEnd=function(){this._dragging=!1;var e=this._handle;if(e){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(e){this._lastValue=null,this._lastStatus=null;var n=e.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),ub(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(e,n,r){return r=r||0,{x:e[r],y:e[1-r],width:n[r],height:n[1-r]}},t}();function kZ(t,e,n,r){Yfe(ld(n).lastProp,r)||(ld(n).lastProp=r,e?kt(n,r,t):(n.stopAnimation(),n.attr(r)))}function Yfe(t,e){if(Qe(t)&&Qe(e)){var n=!0;return V(e,function(r,i){n=n&&Yfe(t[i],r)}),!!n}else return t===e}function NZ(t,e){t[e.get(["label","show"])?"show":"hide"]()}function LM(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function LZ(t,e,n){var r=e.get("z"),i=e.get("zlevel");t&&t.traverse(function(o){o.type!=="group"&&(r!=null&&(o.z=r),i!=null&&(o.zlevel=i),o.silent=n)})}function O3(t){var e=t.get("type"),n=t.getModel(e+"Style"),r;return e==="line"?(r=n.getLineStyle(),r.fill=null):e==="shadow"&&(r=n.getAreaStyle(),r.stroke=null),r}function qfe(t,e,n,r,i){var o=n.get("value"),a=Kfe(o,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=Mh(s.get("padding")||0),u=s.getFont(),c=h_(a,u),f=i.position,d=c.width+l[1]+l[3],p=c.height+l[0]+l[2],v=i.align;v==="right"&&(f[0]-=d),v==="center"&&(f[0]-=d/2);var g=i.verticalAlign;g==="bottom"&&(f[1]-=p),g==="middle"&&(f[1]-=p/2),vat(f,d,p,r);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),t.label={x:f[0],y:f[1],style:un(s,{text:a,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function vat(t,e,n,r){var i=r.getWidth(),o=r.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function Kfe(t,e,n,r,i){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:i.precision}),a=i.formatter;if(a){var s={value:D5(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};V(r,function(l){var u=n.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),Ie(a)?o=a.replace("{value}",o):Fe(a)&&(o=a(s))}return o}function w3(t,e,n){var r=ao();return Yc(r,r,n.rotation),us(r,r,n.position),is([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function Jfe(t,e,n,r,i,o){var a=Ei.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),qfe(e,r,i,o,{position:w3(r.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function x3(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function ede(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function BZ(t,e,n,r,i,o){return{cx:t,cy:e,r0:n,r,startAngle:i,endAngle:o,clockwise:!0}}var gat=function(t){ie(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(n,r,i,o,a){var s=i.axis,l=s.grid,u=o.get("type"),c=VZ(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var d=O3(o),p=mat[u](s,f,c);p.style=d,n.graphicKey=p.type,n.pointer=p}var v=hk(l.model,i);Jfe(r,n,v,i,o,a)},e.prototype.getHandleTransform=function(n,r,i){var o=hk(r.axis.grid.model,r,{labelInside:!1});o.labelMargin=i.get(["handle","margin"]);var a=w3(r.axis,n,o);return{x:a[0],y:a[1],rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(n,r,i,o){var a=i.axis,s=a.grid,l=a.getGlobalExtent(!0),u=VZ(s,a).getOtherAxis(a).getGlobalExtent(),c=a.dim==="x"?0:1,f=[n.x,n.y];f[c]+=r[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var d=(u[1]+u[0])/2,p=[d,d];p[c]=f[c];var v=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:n.rotation,cursorPoint:p,tooltipOption:v[c]}},e}(_3);function VZ(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var mat={line:function(t,e,n){var r=x3([e,n[0]],[e,n[1]],zZ(t));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(t,e,n){var r=Math.max(1,t.getBandWidth()),i=n[1]-n[0];return{type:"Rect",shape:ede([e-r/2,n[0]],[r,i],zZ(t))}}};function zZ(t){return t.dim==="x"?0:1}var yat=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="axisPointer",e.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}},e}(pt),jl=$t(),bat=V;function tde(t,e,n){if(!Ct.node){var r=e.getZr();jl(r).records||(jl(r).records={}),_at(r,e);var i=jl(r).records[t]||(jl(r).records[t]={});i.handler=n}}function _at(t,e){if(jl(t).initialized)return;jl(t).initialized=!0,n("click",nt(FZ,"click")),n("mousemove",nt(FZ,"mousemove")),n("globalout",wat);function n(r,i){t.on(r,function(o){var a=xat(e);bat(jl(t).records,function(s){s&&i(s,o,a.dispatchAction)}),Oat(a.pendings,e)})}}function Oat(t,e){var n=t.showTip.length,r=t.hideTip.length,i;n?i=t.showTip[n-1]:r&&(i=t.hideTip[r-1]),i&&(i.dispatchAction=null,e.dispatchAction(i))}function wat(t,e,n){t.handler("leave",null,n)}function FZ(t,e,n,r){e.handler(t,n,r)}function xat(t){var e={showTip:[],hideTip:[]},n=function(r){var i=e[r.type];i?i.push(r):(r.dispatchAction=n,t.dispatchAction(r))};return{dispatchAction:n,pendings:e}}function Ik(t,e){if(!Ct.node){var n=e.getZr(),r=(jl(n).records||{})[t];r&&(jl(n).records[t]=null)}}var Sat=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){var o=r.getComponent("tooltip"),a=n.get("triggerOn")||o&&o.get("triggerOn")||"mousemove|click";tde("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})})},e.prototype.remove=function(n,r){Ik("axisPointer",r)},e.prototype.dispose=function(n,r){Ik("axisPointer",r)},e.type="axisPointer",e}(hn);function nde(t,e){var n=[],r=t.seriesIndex,i;if(r==null||!(i=e.getSeriesByIndex(r)))return{point:[]};var o=i.getData(),a=lh(o,t);if(a==null||a<0||ve(a))return{point:[]};var s=o.getItemGraphicEl(a),l=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,p=f==="x"||f==="radius"?1:0,v=o.mapDimension(d),g=[];g[p]=o.get(v,a),g[1-p]=o.get(o.getCalculationInfo("stackResultDimension"),a),n=l.dataToPoint(g)||[]}else n=l.dataToPoint(o.getValues(ye(l.dimensions,function(y){return o.mapDimension(y)}),a))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),n=[m.x+m.width/2,m.y+m.height/2]}return{point:n,el:s}}var WZ=$t();function Cat(t,e,n){var r=t.currTrigger,i=[t.x,t.y],o=t,a=t.dispatchAction||Re(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){Tx(i)&&(i=nde({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=Tx(i),u=o.axesInfo,c=s.axesInfo,f=r==="leave"||Tx(i),d={},p={},v={list:[],map:{}},g={showPointer:nt(Pat,p),showTooltip:nt($at,v)};V(s.coordSysMap,function(y,b){var O=l||y.containPoint(i);V(s.coordSysAxesInfo[b],function(w,x){var S=w.axis,T=Iat(u,w);if(!f&&O&&(!u||T)){var $=T&&T.value;$==null&&!l&&($=S.pointToData(i)),$!=null&&QZ(w,$,g,!1,d)}})});var m={};return V(c,function(y,b){var O=y.linkGroup;O&&!p[b]&&V(O.axesInfo,function(w,x){var S=p[x];if(w!==y&&S){var T=S.value;O.mapper&&(T=y.axis.scale.parse(O.mapper(T,HZ(w),HZ(y)))),m[y.key]=T}})}),V(m,function(y,b){QZ(c[b],y,g,!0,d)}),Aat(p,c,d),Eat(v,i,t,a),Mat(c,a,n),d}}function QZ(t,e,n,r,i){var o=t.axis;if(!(o.scale.isBlank()||!o.containData(e))){if(!t.involveSeries){n.showPointer(t,e);return}var a=Tat(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&i.seriesIndex==null&&he(i,s[0]),!r&&t.snap&&o.containData(l)&&l!=null&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}}function Tat(t,e){var n=e.axis,r=n.dim,i=t,o=[],a=Number.MAX_VALUE,s=-1;return V(e.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),f,d;if(l.getAxisTooltipData){var p=l.getAxisTooltipData(c,t,n);d=p.dataIndices,f=p.nestestValue}else{if(d=l.getData().indicesOfNearest(c[0],t,n.type==="category"?.5:null),!d.length)return;f=l.getData().get(c[0],d[0])}if(!(f==null||!isFinite(f))){var v=t-f,g=Math.abs(v);g<=a&&((g<a||v>=0&&s<0)&&(a=g,s=v,i=f,o.length=0),V(d,function(m){o.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:o,snapToValue:i}}function Pat(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function $at(t,e,n,r){var i=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var l=e.coordSys.model,u=gb(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.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 Aat(t,e,n){var r=n.axesInfo=[];V(e,function(i,o){var a=i.axisPointerModel.option,s=t[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 Eat(t,e,n,r){if(Tx(e)||!t.list.length){r({type:"hideTip"});return}var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}function Mat(t,e,n){var r=n.getZr(),i="axisPointerLastHighlights",o=WZ(r)[i]||{},a=WZ(r)[i]={};V(t,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&V(f.seriesDataIndices,function(d){var p=d.seriesIndex+" | "+d.dataIndex;a[p]=d})});var s=[],l=[];V(o,function(u,c){!a[c]&&l.push(u)}),V(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 Iat(t,e){for(var n=0;n<(t||[]).length;n++){var r=t[n];if(e.axis.dim===r.axisDim&&e.axis.model.componentIndex===r.axisIndex)return r}}function HZ(t){var e=t.axis.model,n={},r=n.axisDim=t.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=e.componentIndex,n.axisName=n[r+"AxisName"]=e.name,n.axisId=n[r+"AxisId"]=e.id,n}function Tx(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function I_(t){kh.registerAxisPointerClass("CartesianAxisPointer",gat),t.registerComponentModel(yat),t.registerComponentView(Sat),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var n=e.axisPointer.link;n&&!ve(n)&&(e.axisPointer.link=[n])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(e,n){e.getComponent("axisPointer").coordSysAxesInfo=FJe(e,n)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},Cat)}function Dat(t){vt($ce),vt(I_)}var Rat=function(t){ie(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(n,r,i,o,a){var s=i.axis;s.dim==="angle"&&(this.animationThreshold=Math.PI/18);var l=s.polar,u=l.getOtherAxis(s),c=u.getExtent(),f=s.dataToCoord(r),d=o.get("type");if(d&&d!=="none"){var p=O3(o),v=Nat[d](s,l,f,c);v.style=p,n.graphicKey=v.type,n.pointer=v}var g=o.get(["label","margin"]),m=kat(r,i,o,l,g);qfe(n,i,o,a,m)},e}(_3);function kat(t,e,n,r,i){var o=e.axis,a=o.dataToCoord(t),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=r.getRadiusAxis().getExtent(),u,c,f;if(o.dim==="radius"){var d=ao();Yc(d,d,s),us(d,d,[r.cx,r.cy]),u=is([a,-i],d);var p=e.getModel("axisLabel").get("rotate")||0,v=Ei.innerTextLayout(s,p*Math.PI/180,-1);c=v.textAlign,f=v.textVerticalAlign}else{var g=l[1];u=r.coordToPoint([g+i,a]);var m=r.cx,y=r.cy;c=Math.abs(u[0]-m)/g<.3?"center":u[0]>m?"left":"right",f=Math.abs(u[1]-y)/g<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var Nat={line:function(t,e,n,r){return t.dim==="angle"?{type:"Line",shape:x3(e.coordToPoint([r[0],n]),e.coordToPoint([r[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,r){var i=Math.max(1,t.getBandWidth()),o=Math.PI/180;return t.dim==="angle"?{type:"Sector",shape:BZ(e.cx,e.cy,r[0],r[1],(-n-i/2)*o,(-n+i/2)*o)}:{type:"Sector",shape:BZ(e.cx,e.cy,n-i/2,n+i/2,0,Math.PI*2)}}},Lat=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.findAxisModel=function(n){var r,i=this.ecModel;return i.eachComponent(n,function(o){o.getCoordSysModel()===this&&(r=o)},this),r},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(pt),S3=function(t){ie(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",rr).models[0]},e.type="polarAxis",e}(pt);Qn(S3,Qg);var Bat=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="angleAxis",e}(S3),Vat=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="radiusAxis",e}(S3),C3=function(t){ie(e,t);function e(n,r){return t.call(this,"radius",n,r)||this}return e.prototype.pointToData=function(n,r){return this.polar.pointToData(n,r)[this.dim==="radius"?0:1]},e}(ka);C3.prototype.dataToRadius=ka.prototype.dataToCoord;C3.prototype.radiusToData=ka.prototype.coordToData;var zat=$t(),T3=function(t){ie(e,t);function e(n,r){return t.call(this,"angle",n,r||[0,360])||this}return e.prototype.pointToData=function(n,r){return this.polar.pointToData(n,r)[this.dim==="radius"?0:1]},e.prototype.calculateCategoryInterval=function(){var n=this,r=n.getLabelModel(),i=n.scale,o=i.getExtent(),a=i.count();if(o[1]-o[0]<1)return 0;var s=o[0],l=n.dataToCoord(s+1)-n.dataToCoord(s),u=Math.abs(l),c=h_(s==null?"":s+"",r.getFont(),"center","top"),f=Math.max(c.height,7),d=f/u;isNaN(d)&&(d=1/0);var p=Math.max(0,Math.floor(d)),v=zat(n.model),g=v.lastAutoInterval,m=v.lastTickCount;return g!=null&&m!=null&&Math.abs(g-p)<=1&&Math.abs(m-a)<=1&&g>p?p=g:(v.lastTickCount=a,v.lastAutoInterval=p),p},e}(ka);T3.prototype.dataToAngle=ka.prototype.dataToCoord;T3.prototype.angleToData=ka.prototype.coordToData;var rde=["radius","angle"],Fat=function(){function t(e){this.dimensions=rde,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new C3,this._angleAxis=new T3,this.axisPointerEnabled=!0,this.name=e||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(e){var n=this.pointToCoord(e);return this._radiusAxis.contain(n[0])&&this._angleAxis.contain(n[1])},t.prototype.containData=function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},t.prototype.getAxis=function(e){var n="_"+e+"Axis";return this[n]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(e){var n=[],r=this._angleAxis,i=this._radiusAxis;return r.scale.type===e&&n.push(r),i.scale.type===e&&n.push(i),n},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(e){var n=this._angleAxis;return e===n?this._radiusAxis:n},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(e){var n=e!=null&&e!=="auto"?this.getAxis(e):this.getBaseAxis();return{baseAxes:[n],otherAxes:[this.getOtherAxis(n)]}},t.prototype.dataToPoint=function(e,n){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],n),this._angleAxis.dataToAngle(e[1],n)])},t.prototype.pointToData=function(e,n){var r=this.pointToCoord(e);return[this._radiusAxis.radiusToData(r[0],n),this._angleAxis.angleToData(r[1],n)]},t.prototype.pointToCoord=function(e){var n=e[0]-this.cx,r=e[1]-this.cy,i=this.getAngleAxis(),o=i.getExtent(),a=Math.min(o[0],o[1]),s=Math.max(o[0],o[1]);i.inverse?a=s-360:s=a+360;var l=Math.sqrt(n*n+r*r);n/=l,r/=l;for(var u=Math.atan2(-r,n)/Math.PI*180,c=u<a?1:-1;u<a||u>s;)u+=c*360;return[l,u]},t.prototype.coordToPoint=function(e){var n=e[0],r=e[1]/180*Math.PI,i=Math.cos(r)*n+this.cx,o=-Math.sin(r)*n+this.cy;return[i,o]},t.prototype.getArea=function(){var e=this.getAngleAxis(),n=this.getRadiusAxis(),r=n.getExtent().slice();r[0]>r[1]&&r.reverse();var i=e.getExtent(),o=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-i[0]*o,endAngle:-i[1]*o,clockwise:e.inverse,contain:function(a,s){var l=a-this.cx,u=s-this.cy,c=l*l+u*u-1e-4,f=this.r,d=this.r0;return c<=f*f&&c>=d*d}}},t.prototype.convertToPixel=function(e,n,r){var i=GZ(n);return i===this?this.dataToPoint(r):null},t.prototype.convertFromPixel=function(e,n,r){var i=GZ(n);return i===this?this.pointToData(r):null},t}();function GZ(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}const Wat=Fat;function Qat(t,e,n){var r=e.get("center"),i=n.getWidth(),o=n.getHeight();t.cx=Me(r[0],i),t.cy=Me(r[1],o);var a=t.getRadiusAxis(),s=Math.min(i,o)/2,l=e.get("radius");l==null?l=[0,"100%"]:ve(l)||(l=[0,l]);var u=[Me(l[0],s),Me(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}function Hat(t,e){var n=this,r=n.getAngleAxis(),i=n.getRadiusAxis();if(r.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),t.eachSeries(function(s){if(s.coordinateSystem===n){var l=s.getData();V(rC(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),V(rC(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),dh(r.scale,r.model),dh(i.scale,i.model),r.type==="category"&&!r.onBand){var o=r.getExtent(),a=360/r.scale.count();r.inverse?o[1]+=a:o[1]-=a,r.setExtent(o[0],o[1])}}function Gat(t){return t.mainType==="angleAxis"}function jZ(t,e){var n;if(t.type=e.get("type"),t.scale=x_(e),t.onBand=e.get("boundaryGap")&&t.type==="category",t.inverse=e.get("inverse"),Gat(e)){t.inverse=t.inverse!==e.get("clockwise");var r=e.get("startAngle"),i=(n=e.get("endAngle"))!==null&&n!==void 0?n:r+(t.inverse?-360:360);t.setExtent(r,i)}e.axis=t,t.model=e}var jat={dimensions:rde,create:function(t,e){var n=[];return t.eachComponent("polar",function(r,i){var o=new Wat(i+"");o.update=Hat;var a=o.getRadiusAxis(),s=o.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");jZ(a,l),jZ(s,u),Qat(o,r,e),n.push(o),r.coordinateSystem=o,o.model=r}),t.eachSeries(function(r){if(r.get("coordinateSystem")==="polar"){var i=r.getReferringComponents("polar",rr).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error('Polar "'+Zn(r.get("polarIndex"),r.get("polarId"),0)+'" not found');r.coordinateSystem=i.coordinateSystem}}),n}},Uat=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function nw(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var r=t.coordToPoint([e[0],n]),i=t.coordToPoint([e[1],n]);return{x1:r[0],y1:r[1],x2:i[0],y2:i[1]}}function rw(t){var e=t.getRadiusAxis();return e.inverse?0:1}function UZ(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var Zat=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return e.prototype.render=function(n,r){if(this.group.removeAll(),!!n.get("show")){var i=n.axis,o=i.polar,a=o.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=ye(i.getViewLabels(),function(c){c=Ue(c);var f=i.scale,d=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=i.dataToCoord(d),c});UZ(u),UZ(s),V(Uat,function(c){n.get([c,"show"])&&(!i.scale.isBlank()||c==="axisLine")&&Xat[c](this.group,n,o,s,l,a,u)},this)}},e.type="angleAxis",e}(kh),Xat={axisLine:function(t,e,n,r,i,o){var a=e.getModel(["axisLine","lineStyle"]),s=n.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),c=rw(n),f=c?0:1,d,p=Math.abs(u[1]-u[0])===360?"Circle":"Arc";o[f]===0?d=new Ah[p]({shape:{cx:n.cx,cy:n.cy,r:o[c],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:a.getLineStyle(),z2:1,silent:!0}):d=new m_({shape:{cx:n.cx,cy:n.cy,r:o[c],r0:o[f]},style:a.getLineStyle(),z2:1,silent:!0}),d.style.fill=null,t.add(d)},axisTick:function(t,e,n,r,i,o){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[rw(n)],u=ye(r,function(c){return new _r({shape:nw(n,[l,l+s],c.coord)})});t.add(To(u,{style:Ge(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,r,i,o){if(i.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[rw(n)],c=[],f=0;f<i.length;f++)for(var d=0;d<i[f].length;d++)c.push(new _r({shape:nw(n,[u,u+l],i[f][d].coord)}));t.add(To(c,{style:Ge(s.getModel("lineStyle").getLineStyle(),Ge(a.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(t,e,n,r,i,o,a){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),c=e.get("triggerEvent");V(a,function(f,d){var p=l,v=f.tickValue,g=o[rw(n)],m=n.coordToPoint([g+u,f.coord]),y=n.cx,b=n.cy,O=Math.abs(m[0]-y)/g<.3?"center":m[0]>y?"left":"right",w=Math.abs(m[1]-b)/g<.3?"middle":m[1]>b?"top":"bottom";if(s&&s[v]){var x=s[v];Qe(x)&&x.textStyle&&(p=new tn(x.textStyle,l,l.ecModel))}var S=new Tt({silent:Ei.isLabelSilent(e),style:un(p,{x:m[0],y:m[1],fill:p.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:O,verticalAlign:w})});if(t.add(S),c){var T=Ei.makeAxisEventDataBase(e);T.targetType="axisLabel",T.value=f.rawLabel,Ke(S).eventData=T}},this)},splitLine:function(t,e,n,r,i,o){var a=e.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=0;f<r.length;f++){var d=u++%l.length;c[d]=c[d]||[],c[d].push(new _r({shape:nw(n,o,r[f].coord)}))}for(var f=0;f<c.length;f++)t.add(To(c[f],{style:Ge({stroke:l[f%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(t,e,n,r,i,o){if(i.length){for(var a=e.getModel("minorSplitLine"),s=a.getModel("lineStyle"),l=[],u=0;u<i.length;u++)for(var c=0;c<i[u].length;c++)l.push(new _r({shape:nw(n,o,i[u][c].coord)}));t.add(To(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(t,e,n,r,i,o){if(r.length){var a=e.getModel("splitArea"),s=a.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=Math.PI/180,d=-r[0].coord*f,p=Math.min(o[0],o[1]),v=Math.max(o[0],o[1]),g=e.get("clockwise"),m=1,y=r.length;m<=y;m++){var b=m===y?r[0].coord:r[m].coord,O=u++%l.length;c[O]=c[O]||[],c[O].push(new Ni({shape:{cx:n.cx,cy:n.cy,r0:p,r:v,startAngle:d,endAngle:-b*f,clockwise:g},silent:!0})),d=-b*f}for(var m=0;m<c.length;m++)t.add(To(c[m],{style:Ge({fill:l[m%l.length]},s.getAreaStyle()),silent:!0}))}}},Yat=["axisLine","axisTickLabel","axisName"],qat=["splitLine","splitArea","minorSplitLine"],Kat=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return e.prototype.render=function(n,r){if(this.group.removeAll(),!!n.get("show")){var i=this._axisGroup,o=this._axisGroup=new qe;this.group.add(o);var a=n.axis,s=a.polar,l=s.getAngleAxis(),u=a.getTicksCoords(),c=a.getMinorTicksCoords(),f=l.getExtent()[0],d=a.getExtent(),p=est(s,n,f),v=new Ei(n,p);V(Yat,v.add,v),o.add(v.getGroup()),__(i,o,n),V(qat,function(g){n.get([g,"show"])&&!a.scale.isBlank()&&Jat[g](this.group,n,s,f,d,u,c)},this)}},e.type="radiusAxis",e}(kh),Jat={splitLine:function(t,e,n,r,i,o){var a=e.getModel("splitLine"),s=a.getModel("lineStyle"),l=s.get("color"),u=0,c=n.getAngleAxis(),f=Math.PI/180,d=c.getExtent(),p=Math.abs(d[1]-d[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var v=[],g=0;g<o.length;g++){var m=u++%l.length;v[m]=v[m]||[],v[m].push(new Ah[p]({shape:{cx:n.cx,cy:n.cy,r:Math.max(o[g].coord,0),startAngle:-d[0]*f,endAngle:-d[1]*f,clockwise:c.inverse}}))}for(var g=0;g<v.length;g++)t.add(To(v[g],{style:Ge({stroke:l[g%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(t,e,n,r,i,o,a){if(a.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<a.length;c++)for(var f=0;f<a[c].length;f++)u.push(new _u({shape:{cx:n.cx,cy:n.cy,r:a[c][f].coord}}));t.add(To(u,{style:Ge({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(t,e,n,r,i,o){if(o.length){var a=e.getModel("splitArea"),s=a.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=o[0].coord,d=1;d<o.length;d++){var p=u++%l.length;c[p]=c[p]||[],c[p].push(new Ni({shape:{cx:n.cx,cy:n.cy,r0:f,r:o[d].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),f=o[d].coord}for(var d=0;d<c.length;d++)t.add(To(c[d],{style:Ge({fill:l[d%l.length]},s.getAreaStyle()),silent:!0}))}}};function est(t,e,n){return{position:[t.cx,t.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:e.getModel("axisLabel").get("rotate"),z2:1}}function ide(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function ode(t,e){return e.dim+t.model.componentIndex}function tst(t,e,n){var r={},i=nst(Yt(e.getSeriesByType(t),function(o){return!e.isSeriesFiltered(o)&&o.coordinateSystem&&o.coordinateSystem.type==="polar"}));e.eachSeriesByType(t,function(o){if(o.coordinateSystem.type==="polar"){var a=o.getData(),s=o.coordinateSystem,l=s.getBaseAxis(),u=ode(s,l),c=ide(o),f=i[u][c],d=f.offset,p=f.width,v=s.getOtherAxis(l),g=o.coordinateSystem.cx,m=o.coordinateSystem.cy,y=o.get("barMinHeight")||0,b=o.get("barMinAngle")||0;r[c]=r[c]||[];for(var O=a.mapDimension(v.dim),w=a.mapDimension(l.dim),x=su(a,O),S=l.dim!=="radius"||!o.get("roundCap",!0),T=v.model,$=T.get("startValue"),A=v.dataToCoord($||0),P=0,M=a.count();P<M;P++){var I=a.get(O,P),R=a.get(w,P),L=I>=0?"p":"n",D=A;x&&(r[c][R]||(r[c][R]={p:A,n:A}),D=r[c][R][L]);var B=void 0,F=void 0,z=void 0,W=void 0;if(v.dim==="radius"){var j=v.dataToCoord(I)-A,H=l.dataToCoord(R);Math.abs(j)<y&&(j=(j<0?-1:1)*y),B=D,F=D+j,z=H-d,W=z-p,x&&(r[c][R][L]=F)}else{var Z=v.dataToCoord(I,S)-A,J=l.dataToCoord(R);Math.abs(Z)<b&&(Z=(Z<0?-1:1)*b),B=J+d,F=B+p,z=D,W=D+Z,x&&(r[c][R][L]=W)}a.setItemLayout(P,{cx:g,cy:m,r0:B,r:F,startAngle:-z*Math.PI/180,endAngle:-W*Math.PI/180,clockwise:z>=W})}}})}function nst(t){var e={};V(t,function(r,i){var o=r.getData(),a=r.coordinateSystem,s=a.getBaseAxis(),l=ode(a,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/o.count(),f=e[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=f.stacks;e[l]=f;var p=ide(r);d[p]||f.autoWidthCount++,d[p]=d[p]||{width:0,maxWidth:0};var v=Me(r.get("barWidth"),c),g=Me(r.get("barMaxWidth"),c),m=r.get("barGap"),y=r.get("barCategoryGap");v&&!d[p].width&&(v=Math.min(f.remainedWidth,v),d[p].width=v,f.remainedWidth-=v),g&&(d[p].maxWidth=g),m!=null&&(f.gap=m),y!=null&&(f.categoryGap=y)});var n={};return V(e,function(r,i){n[i]={};var o=r.stacks,a=r.bandWidth,s=Me(r.categoryGap,a),l=Me(r.gap,1),u=r.remainedWidth,c=r.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),V(o,function(g,m){var y=g.maxWidth;y&&y<f&&(y=Math.min(y,u),g.width&&(y=Math.min(y,g.width)),u-=y,g.width=y,c--)}),f=(u-s)/(c+(c-1)*l),f=Math.max(f,0);var d=0,p;V(o,function(g,m){g.width||(g.width=f),p=g,d+=g.width*(1+l)}),p&&(d-=p.width*l);var v=-d/2;V(o,function(g,m){n[i][m]=n[i][m]||{offset:v,width:g.width},v+=g.width*(1+l)})}),n}var rst={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},ist={splitNumber:5},ost=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="polar",e}(hn);function ast(t){vt(I_),kh.registerAxisPointerClass("PolarAxisPointer",Rat),t.registerCoordinateSystem("polar",jat),t.registerComponentModel(Lat),t.registerComponentView(ost),ig(t,"angle",Bat,rst),ig(t,"radius",Vat,ist),t.registerComponentView(Zat),t.registerComponentView(Kat),t.registerLayout(nt(tst,"bar"))}function Dk(t,e){e=e||{};var n=t.coordinateSystem,r=t.axis,i={},o=r.position,a=r.orient,s=n.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};i.position=[a==="vertical"?u.vertical[o]:l[0],a==="horizontal"?u.horizontal[o]:l[3]];var c={horizontal:0,vertical:1};i.rotation=Math.PI/2*c[a];var f={top:-1,bottom:1,right:1,left:-1};i.labelDirection=i.tickDirection=i.nameDirection=f[o],t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Zn(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var d=e.rotate;return d==null&&(d=t.get(["axisLabel","rotate"])),i.labelRotation=o==="top"?-d:d,i.z2=1,i}var sst=["axisLine","axisTickLabel","axisName"],lst=["splitArea","splitLine"],ust=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="SingleAxisPointer",n}return e.prototype.render=function(n,r,i,o){var a=this.group;a.removeAll();var s=this._axisGroup;this._axisGroup=new qe;var l=Dk(n),u=new Ei(n,l);V(sst,u.add,u),a.add(this._axisGroup),a.add(u.getGroup()),V(lst,function(c){n.get([c,"show"])&&cst[c](this,this.group,this._axisGroup,n)},this),__(s,this._axisGroup,n),t.prototype.render.call(this,n,r,i,o)},e.prototype.remove=function(){Cce(this)},e.type="singleAxis",e}(kh),cst={splitLine:function(t,e,n,r){var i=r.axis;if(!i.scale.isBlank()){var o=r.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=s instanceof Array?s:[s];for(var l=a.get("width"),u=r.coordinateSystem.getRect(),c=i.isHorizontal(),f=[],d=0,p=i.getTicksCoords({tickModel:o}),v=[],g=[],m=0;m<p.length;++m){var y=i.toGlobalCoord(p[m].coord);c?(v[0]=y,v[1]=u.y,g[0]=y,g[1]=u.y+u.height):(v[0]=u.x,v[1]=y,g[0]=u.x+u.width,g[1]=y);var b=new _r({shape:{x1:v[0],y1:v[1],x2:g[0],y2:g[1]},silent:!0});eg(b.shape,l);var O=d++%s.length;f[O]=f[O]||[],f[O].push(b)}for(var w=a.getLineStyle(["color"]),m=0;m<f.length;++m)e.add(To(f[m],{style:Ge({stroke:s[m%s.length]},w),silent:!0}))}},splitArea:function(t,e,n,r){Sce(t,n,r,r)}},Px=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.getCoordSysModel=function(){return this},e.type="singleAxis",e.layoutMode="box",e.defaultOption={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:1,type:"solid"}},tooltip:{show:!0},axisTick:{show:!0,length:6,lineStyle:{width:1}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}},e}(pt);Qn(Px,Qg.prototype);var fst=function(t){ie(e,t);function e(n,r,i,o,a){var s=t.call(this,n,r,i)||this;return s.type=o||"value",s.position=a||"bottom",s}return e.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},e.prototype.pointToData=function(n,r){return this.coordinateSystem.pointToData(n)[0]},e}(ka),ade=["single"],dst=function(){function t(e,n,r){this.type="single",this.dimension="single",this.dimensions=ade,this.axisPointerEnabled=!0,this.model=e,this._init(e,n,r)}return t.prototype._init=function(e,n,r){var i=this.dimension,o=new fst(i,x_(e),[0,0],e.get("type"),e.get("position")),a=o.type==="category";o.onBand=a&&e.get("boundaryGap"),o.inverse=e.get("inverse"),o.orient=e.get("orient"),e.axis=o,o.model=e,o.coordinateSystem=this,this._axis=o},t.prototype.update=function(e,n){e.eachSeries(function(r){if(r.coordinateSystem===this){var i=r.getData();V(i.mapDimensionsAll(this.dimension),function(o){this._axis.scale.unionExtentFromData(i,o)},this),dh(this._axis.scale,this._axis.model)}},this)},t.prototype.resize=function(e,n){this._rect=ir({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:n.getWidth(),height:n.getHeight()}),this._adjustAxis()},t.prototype.getRect=function(){return this._rect},t.prototype._adjustAxis=function(){var e=this._rect,n=this._axis,r=n.isHorizontal(),i=r?[0,e.width]:[0,e.height],o=n.inverse?1:0;n.setExtent(i[o],i[1-o]),this._updateAxisTransform(n,r?e.x:e.y)},t.prototype._updateAxisTransform=function(e,n){var r=e.getExtent(),i=r[0]+r[1],o=e.isHorizontal();e.toGlobalCoord=o?function(a){return a+n}:function(a){return i-a+n},e.toLocalCoord=o?function(a){return a-n}:function(a){return i-a+n}},t.prototype.getAxis=function(){return this._axis},t.prototype.getBaseAxis=function(){return this._axis},t.prototype.getAxes=function(){return[this._axis]},t.prototype.getTooltipAxes=function(){return{baseAxes:[this.getAxis()],otherAxes:[]}},t.prototype.containPoint=function(e){var n=this.getRect(),r=this.getAxis(),i=r.orient;return i==="horizontal"?r.contain(r.toLocalCoord(e[0]))&&e[1]>=n.y&&e[1]<=n.y+n.height:r.contain(r.toLocalCoord(e[1]))&&e[0]>=n.y&&e[0]<=n.y+n.height},t.prototype.pointToData=function(e){var n=this.getAxis();return[n.coordToData(n.toLocalCoord(e[n.orient==="horizontal"?0:1]))]},t.prototype.dataToPoint=function(e){var n=this.getAxis(),r=this.getRect(),i=[],o=n.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),i[o]=n.toGlobalCoord(n.dataToCoord(+e)),i[1-o]=o===0?r.y+r.height/2:r.x+r.width/2,i},t.prototype.convertToPixel=function(e,n,r){var i=ZZ(n);return i===this?this.dataToPoint(r):null},t.prototype.convertFromPixel=function(e,n,r){var i=ZZ(n);return i===this?this.pointToData(r):null},t}();function ZZ(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}function hst(t,e){var n=[];return t.eachComponent("singleAxis",function(r,i){var o=new dst(r,t,e);o.name="single_"+i,o.resize(r,e),r.coordinateSystem=o,n.push(o)}),t.eachSeries(function(r){if(r.get("coordinateSystem")==="singleAxis"){var i=r.getReferringComponents("singleAxis",rr).models[0];r.coordinateSystem=i&&i.coordinateSystem}}),n}var pst={create:hst,dimensions:ade},XZ=["x","y"],vst=["width","height"],gst=function(t){ie(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(n,r,i,o,a){var s=i.axis,l=s.coordinateSystem,u=BM(l,1-bC(s)),c=l.dataToPoint(r)[0],f=o.get("type");if(f&&f!=="none"){var d=O3(o),p=mst[f](s,c,u);p.style=d,n.graphicKey=p.type,n.pointer=p}var v=Dk(i);Jfe(r,n,v,i,o,a)},e.prototype.getHandleTransform=function(n,r,i){var o=Dk(r,{labelInside:!1});o.labelMargin=i.get(["handle","margin"]);var a=w3(r.axis,n,o);return{x:a[0],y:a[1],rotation:o.rotation+(o.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(n,r,i,o){var a=i.axis,s=a.coordinateSystem,l=bC(a),u=BM(s,l),c=[n.x,n.y];c[l]+=r[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var f=BM(s,1-l),d=(f[1]+f[0])/2,p=[d,d];return p[l]=c[l],{x:c[0],y:c[1],rotation:n.rotation,cursorPoint:p,tooltipOption:{verticalAlign:"middle"}}},e}(_3),mst={line:function(t,e,n){var r=x3([e,n[0]],[e,n[1]],bC(t));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(t,e,n){var r=t.getBandWidth(),i=n[1]-n[0];return{type:"Rect",shape:ede([e-r/2,n[0]],[r,i],bC(t))}}};function bC(t){return t.isHorizontal()?0:1}function BM(t,e){var n=t.getRect();return[n[XZ[e]],n[XZ[e]]+n[vst[e]]]}var yst=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="single",e}(hn);function bst(t){vt(I_),kh.registerAxisPointerClass("SingleAxisPointer",gst),t.registerComponentView(yst),t.registerComponentView(ust),t.registerComponentModel(Px),ig(t,"single",Px,Px.defaultOption),t.registerCoordinateSystem("single",pst)}var _st=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r,i){var o=Ng(n);t.prototype.init.apply(this,arguments),YZ(n,o)},e.prototype.mergeOption=function(n){t.prototype.mergeOption.apply(this,arguments),YZ(this.option,n)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(pt);function YZ(t,e){var n=t.cellSize,r;ve(n)?r=n:r=t.cellSize=[n,n],r.length===1&&(r[1]=r[0]);var i=ye([0,1],function(o){return bUe(e,o)&&(r[o]="auto"),r[o]!=null&&r[o]!=="auto"});kc(t,e,{type:"box",ignoreSize:i})}var Ost=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){var o=this.group;o.removeAll();var a=n.coordinateSystem,s=a.getRangeInfo(),l=a.getOrient(),u=r.getLocaleModel();this._renderDayRect(n,s,o),this._renderLines(n,s,l,o),this._renderYearText(n,s,l,o),this._renderMonthText(n,u,l,o),this._renderWeekText(n,u,s,l,o)},e.prototype._renderDayRect=function(n,r,i){for(var o=n.coordinateSystem,a=n.getModel("itemStyle").getItemStyle(),s=o.getCellWidth(),l=o.getCellHeight(),u=r.start.time;u<=r.end.time;u=o.getNextNDay(u,1).time){var c=o.dataToRect([u],!1).tl,f=new Pt({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:a});i.add(f)}},e.prototype._renderLines=function(n,r,i,o){var a=this,s=n.coordinateSystem,l=n.getModel(["splitLine","lineStyle"]).getLineStyle(),u=n.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var f=r.start,d=0;f.time<=r.end.time;d++){v(f.formatedDate),d===0&&(f=s.getDateInfo(r.start.y+"-"+r.start.m));var p=f.date;p.setMonth(p.getMonth()+1),f=s.getDateInfo(p)}v(s.getNextNDay(r.end.time,1).formatedDate);function v(g){a._firstDayOfMonth.push(s.getDateInfo(g)),a._firstDayPoints.push(s.dataToRect([g],!1).tl);var m=a._getLinePointsOfOneWeek(n,g,i);a._tlpoints.push(m[0]),a._blpoints.push(m[m.length-1]),u&&a._drawSplitline(m,l,o)}u&&this._drawSplitline(a._getEdgesPoints(a._tlpoints,c,i),l,o),u&&this._drawSplitline(a._getEdgesPoints(a._blpoints,c,i),l,o)},e.prototype._getEdgesPoints=function(n,r,i){var o=[n[0].slice(),n[n.length-1].slice()],a=i==="horizontal"?0:1;return o[0][a]=o[0][a]-r/2,o[1][a]=o[1][a]+r/2,o},e.prototype._drawSplitline=function(n,r,i){var o=new Bi({z2:20,shape:{points:n},style:r});i.add(o)},e.prototype._getLinePointsOfOneWeek=function(n,r,i){for(var o=n.coordinateSystem,a=o.getDateInfo(r),s=[],l=0;l<7;l++){var u=o.getNextNDay(a.time,l),c=o.dataToRect([u.time],!1);s[2*u.day]=c.tl,s[2*u.day+1]=c[i==="horizontal"?"bl":"tr"]}return s},e.prototype._formatterLabel=function(n,r){return Ie(n)&&n?vUe(n,r):Fe(n)?n(r):r.nameMap},e.prototype._yearTextPositionControl=function(n,r,i,o,a){var s=r[0],l=r[1],u=["center","bottom"];o==="bottom"?(l+=a,u=["center","top"]):o==="left"?s-=a:o==="right"?(s+=a,u=["center","top"]):l-=a;var c=0;return(o==="left"||o==="right")&&(c=Math.PI/2),{rotation:c,x:s,y:l,style:{align:u[0],verticalAlign:u[1]}}},e.prototype._renderYearText=function(n,r,i,o){var a=n.getModel("yearLabel");if(a.get("show")){var s=a.get("margin"),l=a.get("position");l||(l=i!=="horizontal"?"top":"left");var u=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],c=(u[0][0]+u[1][0])/2,f=(u[0][1]+u[1][1])/2,d=i==="horizontal"?0:1,p={top:[c,u[d][1]],bottom:[c,u[1-d][1]],left:[u[1-d][0],f],right:[u[d][0],f]},v=r.start.y;+r.end.y>+r.start.y&&(v=v+"-"+r.end.y);var g=a.get("formatter"),m={start:r.start.y,end:r.end.y,nameMap:v},y=this._formatterLabel(g,m),b=new Tt({z2:30,style:un(a,{text:y})});b.attr(this._yearTextPositionControl(b,p[l],i,l,s)),o.add(b)}},e.prototype._monthTextPositionControl=function(n,r,i,o,a){var s="left",l="top",u=n[0],c=n[1];return i==="horizontal"?(c=c+a,r&&(s="center"),o==="start"&&(l="bottom")):(u=u+a,r&&(l="middle"),o==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(n,r,i,o){var a=n.getModel("monthLabel");if(a.get("show")){var s=a.get("nameMap"),l=a.get("margin"),u=a.get("position"),c=a.get("align"),f=[this._tlpoints,this._blpoints];(!s||Ie(s))&&(s&&(r=FR(s)||r),s=r.get(["time","monthAbbr"])||[]);var d=u==="start"?0:1,p=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var v=c==="center",g=0;g<f[d].length-1;g++){var m=f[d][g].slice(),y=this._firstDayOfMonth[g];if(v){var b=this._firstDayPoints[g];m[p]=(b[p]+f[0][g+1][p])/2}var O=a.get("formatter"),w=s[+y.m-1],x={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:w},S=this._formatterLabel(O,x),T=new Tt({z2:30,style:he(un(a,{text:S}),this._monthTextPositionControl(m,v,i,u,l))});o.add(T)}}},e.prototype._weekTextPositionControl=function(n,r,i,o,a){var s="center",l="middle",u=n[0],c=n[1],f=i==="start";return r==="horizontal"?(u=u+o+(f?1:-1)*a[0]/2,s=f?"right":"left"):(c=c+o+(f?1:-1)*a[1]/2,l=f?"bottom":"top"),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderWeekText=function(n,r,i,o,a){var s=n.getModel("dayLabel");if(s.get("show")){var l=n.coordinateSystem,u=s.get("position"),c=s.get("nameMap"),f=s.get("margin"),d=l.getFirstDayOfWeek();if(!c||Ie(c)){c&&(r=FR(c)||r);var p=r.get(["time","dayOfWeekShort"]);c=p||ye(r.get(["time","dayOfWeekAbbr"]),function(x){return x[0]})}var v=l.getNextNDay(i.end.time,7-i.lweek).time,g=[l.getCellWidth(),l.getCellHeight()];f=Me(f,Math.min(g[1],g[0])),u==="start"&&(v=l.getNextNDay(i.start.time,-(7+i.fweek)).time,f=-f);for(var m=0;m<7;m++){var y=l.getNextNDay(v,m),b=l.dataToRect([y.time],!1).center,O=m;O=Math.abs((m+d)%7);var w=new Tt({z2:30,style:he(un(s,{text:c[O]}),this._weekTextPositionControl(b,o,u,f,g))});a.add(w)}}},e.type="calendar",e}(hn),VM=864e5,wst=function(){function t(e,n,r){this.type="calendar",this.dimensions=t.dimensions,this.getDimensionsInfo=t.getDimensionsInfo,this._model=e}return t.getDimensionsInfo=function(){return[{name:"time",type:"time"},"value"]},t.prototype.getRangeInfo=function(){return this._rangeInfo},t.prototype.getModel=function(){return this._model},t.prototype.getRect=function(){return this._rect},t.prototype.getCellWidth=function(){return this._sw},t.prototype.getCellHeight=function(){return this._sh},t.prototype.getOrient=function(){return this._orient},t.prototype.getFirstDayOfWeek=function(){return this._firstDayOfWeek},t.prototype.getDateInfo=function(e){e=Bo(e);var n=e.getFullYear(),r=e.getMonth()+1,i=r<10?"0"+r:""+r,o=e.getDate(),a=o<10?"0"+o:""+o,s=e.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:n+"",m:i,d:a,day:s,time:e.getTime(),formatedDate:n+"-"+i+"-"+a,date:e}},t.prototype.getNextNDay=function(e,n){return n=n||0,n===0?this.getDateInfo(e):(e=new Date(this.getDateInfo(e).time),e.setDate(e.getDate()+n),this.getDateInfo(e))},t.prototype.update=function(e,n){this._firstDayOfWeek=+this._model.getModel("dayLabel").get("firstDay"),this._orient=this._model.get("orient"),this._lineWidth=this._model.getModel("itemStyle").getItemStyle().lineWidth||0,this._rangeInfo=this._getRangeInfo(this._initRangeOption());var r=this._rangeInfo.weeks||1,i=["width","height"],o=this._model.getCellSize().slice(),a=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[r,7]:[7,r];V([0,1],function(f){c(o,f)&&(a[i[f]]=o[f]*s[f])});var l={width:n.getWidth(),height:n.getHeight()},u=this._rect=ir(a,l);V([0,1],function(f){c(o,f)||(o[f]=u[i[f]]/s[f])});function c(f,d){return f[d]!=null&&f[d]!=="auto"}this._sw=o[0],this._sh=o[1]},t.prototype.dataToPoint=function(e,n){ve(e)&&(e=e[0]),n==null&&(n=!0);var r=this.getDateInfo(e),i=this._rangeInfo,o=r.formatedDate;if(n&&!(r.time>=i.start.time&&r.time<i.end.time+VM))return[NaN,NaN];var a=r.day,s=this._getRangeInfo([i.start.time,o]).nthWeek;return this._orient==="vertical"?[this._rect.x+a*this._sw+this._sw/2,this._rect.y+s*this._sh+this._sh/2]:[this._rect.x+s*this._sw+this._sw/2,this._rect.y+a*this._sh+this._sh/2]},t.prototype.pointToData=function(e){var n=this.pointToDate(e);return n&&n.time},t.prototype.dataToRect=function(e,n){var r=this.dataToPoint(e,n);return{contentShape:{x:r[0]-(this._sw-this._lineWidth)/2,y:r[1]-(this._sh-this._lineWidth)/2,width:this._sw-this._lineWidth,height:this._sh-this._lineWidth},center:r,tl:[r[0]-this._sw/2,r[1]-this._sh/2],tr:[r[0]+this._sw/2,r[1]-this._sh/2],br:[r[0]+this._sw/2,r[1]+this._sh/2],bl:[r[0]-this._sw/2,r[1]+this._sh/2]}},t.prototype.pointToDate=function(e){var n=Math.floor((e[0]-this._rect.x)/this._sw)+1,r=Math.floor((e[1]-this._rect.y)/this._sh)+1,i=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(r,n-1,i):this._getDateByWeeksAndDay(n,r-1,i)},t.prototype.convertToPixel=function(e,n,r){var i=qZ(n);return i===this?i.dataToPoint(r):null},t.prototype.convertFromPixel=function(e,n,r){var i=qZ(n);return i===this?i.pointToData(r):null},t.prototype.containPoint=function(e){return console.warn("Not implemented."),!1},t.prototype._initRangeOption=function(){var e=this._model.get("range"),n;if(ve(e)&&e.length===1&&(e=e[0]),ve(e))n=e;else{var r=e.toString();if(/^\d{4}$/.test(r)&&(n=[r+"-01-01",r+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(r)){var i=this.getDateInfo(r),o=i.date;o.setMonth(o.getMonth()+1);var a=this.getNextNDay(o,-1);n=[i.formatedDate,a.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(r)&&(n=[r,r])}if(!n)return process.env.NODE_ENV!=="production"&&ya("Invalid date range."),e;var s=this._getRangeInfo(n);return s.start.time>s.end.time&&n.reverse(),n},t.prototype._getRangeInfo=function(e){var n=[this.getDateInfo(e[0]),this.getDateInfo(e[1])],r;n[0].time>n[1].time&&(r=!0,n.reverse());var i=Math.floor(n[1].time/VM)-Math.floor(n[0].time/VM)+1,o=new Date(n[0].time),a=o.getDate(),s=n[1].date.getDate();o.setDate(a+i-1);var l=o.getDate();if(l!==s)for(var u=o.getTime()-n[1].time>0?1:-1;(l=o.getDate())!==s&&(o.getTime()-n[1].time)*u>0;)i-=u,o.setDate(l-u);var c=Math.floor((i+n[0].day+6)/7),f=r?-c+1:c-1;return r&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:c,nthWeek:f,fweek:n[0].day,lweek:n[1].day}},t.prototype._getDateByWeeksAndDay=function(e,n,r){var i=this._getRangeInfo(r);if(e>i.weeks||e===0&&n<i.fweek||e===i.weeks&&n>i.lweek)return null;var o=(e-1)*7-i.fweek+n,a=new Date(i.start.time);return a.setDate(+i.start.d+o),this.getDateInfo(a)},t.create=function(e,n){var r=[];return e.eachComponent("calendar",function(i){var o=new t(i);r.push(o),i.coordinateSystem=o}),e.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=r[i.get("calendarIndex")||0])}),r},t.dimensions=["time","value"],t}();function qZ(t){var e=t.calendarModel,n=t.seriesModel,r=e?e.coordinateSystem:n?n.coordinateSystem:null;return r}function xst(t){t.registerComponentModel(_st),t.registerComponentView(Ost),t.registerCoordinateSystem("calendar",wst)}function Sst(t,e){var n=t.existing;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),e.parentId==null){var r=e.parentOption;r?e.parentId=r.id:n&&(e.parentId=n.parentId)}e.parentOption=null}function KZ(t,e){var n;return V(e,function(r){t[r]!=null&&t[r]!=="auto"&&(n=!0)}),n}function Cst(t,e,n){var r=he({},n),i=t[e],o=n.$action||"merge";if(o==="merge")if(i){if(process.env.NODE_ENV!=="production"){var a=n.type;je(!a||i.type===a,'Please set $action: "replace" to change `type`')}it(i,r,!0),kc(i,r,{ignoreSize:!0}),Xse(n,i),iw(n,i),iw(n,i,"shape"),iw(n,i,"style"),iw(n,i,"extra"),n.clipPath=i.clipPath}else t[e]=r;else o==="replace"?t[e]=r:o==="remove"&&i&&(t[e]=null)}var sde=["transition","enterFrom","leaveTo"],Tst=sde.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function iw(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),!(!t||!e))for(var r=n?sde:Tst,i=0;i<r.length;i++){var o=r[i];t[o]==null&&e[o]!=null&&(t[o]=e[o])}}function Pst(t,e){if(t&&(t.hv=e.hv=[KZ(e,["left","right"]),KZ(e,["top","bottom"])],t.type==="group")){var n=t,r=e;n.width==null&&(n.width=r.width=0),n.height==null&&(n.height=r.height=0)}}var $st=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.preventAutoZ=!0,n}return e.prototype.mergeOption=function(n,r){var i=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,n,r),this.option.elements=i},e.prototype.optionUpdated=function(n,r){var i=this.option,o=(r?i:n).elements,a=i.elements=r?[]:i.elements,s=[];this._flatten(o,s,null);var l=kae(a,s,"normalMerge"),u=this._elOptionsToUpdate=[];V(l,function(c,f){var d=c.newOption;process.env.NODE_ENV!=="production"&&je(Qe(d)||c.existing,"Empty graphic option definition"),d&&(u.push(d),Sst(c,d),Cst(a,f,d),Pst(a[f],d))},this),i.elements=Yt(a,function(c){return c&&delete c.$action,c!=null})},e.prototype._flatten=function(n,r,i){V(n,function(o){if(o){i&&(o.parentOption=i),r.push(o);var a=o.children;a&&a.length&&this._flatten(a,r,o),delete o.children}},this)},e.prototype.useElOptionsToUpdate=function(){var n=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,n},e.type="graphic",e.defaultOption={elements:[]},e}(pt),JZ={path:null,compoundPath:null,group:qe,image:Rr,text:Tt},sa=$t(),Ast=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(){this._elMap=Be()},e.prototype.render=function(n,r,i){n!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=n,this._updateElements(n),this._relocate(n,i)},e.prototype._updateElements=function(n){var r=n.useElOptionsToUpdate();if(r){var i=this._elMap,o=this.group,a=n.get("z"),s=n.get("zlevel");V(r,function(l){var u=ur(l.id,null),c=u!=null?i.get(u):null,f=ur(l.parentId,null),d=f!=null?i.get(f):o,p=l.type,v=l.style;p==="text"&&v&&l.hv&&l.hv[1]&&(v.textVerticalAlign=v.textBaseline=v.verticalAlign=v.align=null);var g=l.textContent,m=l.textConfig;if(v&&zfe(v,p,!!m,!!g)){var y=Ffe(v,p,!0);!m&&y.textConfig&&(m=l.textConfig=y.textConfig),!g&&y.textContent&&(g=y.textContent)}var b=Est(l);process.env.NODE_ENV!=="production"&&c&&je(d===c.parent,"Changing parent is not supported.");var O=l.$action||"merge",w=O==="merge",x=O==="replace";if(w){var S=!c,T=c;S?T=eX(u,d,l.type,i):(T&&(sa(T).isNew=!1),jfe(T)),T&&(Cx(T,b,n,{isInit:S}),tX(T,l,a,s))}else if(x){$x(c,l,i,n);var $=eX(u,d,l.type,i);$&&(Cx($,b,n,{isInit:!0}),tX($,l,a,s))}else O==="remove"&&(Qfe(c,l),$x(c,l,i,n));var A=i.get(u);if(A&&g)if(w){var P=A.getTextContent();P?P.attr(g):A.setTextContent(new Tt(g))}else x&&A.setTextContent(new Tt(g));if(A){var M=l.clipPath;if(M){var I=M.type,R=void 0,S=!1;if(w){var L=A.getClipPath();S=!L||sa(L).type!==I,R=S?Rk(I):L}else x&&(S=!0,R=Rk(I));A.setClipPath(R),Cx(R,M,n,{isInit:S}),gC(R,M.keyframeAnimation,n)}var D=sa(A);A.setTextConfig(m),D.option=l,Mst(A,n,l),Dg({el:A,componentModel:n,itemName:A.name,itemTooltipOption:l.tooltip}),gC(A,l.keyframeAnimation,n)}})}},e.prototype._relocate=function(n,r){for(var i=n.option.elements,o=this.group,a=this._elMap,s=r.getWidth(),l=r.getHeight(),u=["x","y"],c=0;c<i.length;c++){var f=i[c],d=ur(f.id,null),p=d!=null?a.get(d):null;if(!(!p||!p.isGroup)){var v=p.parent,g=v===o,m=sa(p),y=sa(v);m.width=Me(m.option.width,g?s:y.width)||0,m.height=Me(m.option.height,g?l:y.height)||0}}for(var c=i.length-1;c>=0;c--){var f=i[c],d=ur(f.id,null),p=d!=null?a.get(d):null;if(p){var v=p.parent,y=sa(v),b=v===o?{width:s,height:l}:{width:y.width,height:y.height},O={},w=RP(p,f,b,null,{hv:f.hv,boundingMode:f.bounding},O);if(!sa(p).isNew&&w){for(var x=f.transition,S={},T=0;T<u.length;T++){var $=u[T],A=O[$];x&&(Hd(x)||st(x,$)>=0)?S[$]=A:p[$]=A}kt(p,S,n,0)}else p.attr(O)}}},e.prototype._clear=function(){var n=this,r=this._elMap;r.each(function(i){$x(i,sa(i).option,r,n._lastGraphicModel)}),this._elMap=Be()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(hn);function Rk(t){process.env.NODE_ENV!=="production"&&je(t,"graphic type MUST be set");var e=ke(JZ,t)?JZ[t]:PP(t);process.env.NODE_ENV!=="production"&&je(e,"graphic type "+t+" can not be found");var n=new e({});return sa(n).type=t,n}function eX(t,e,n,r){var i=Rk(n);return e.add(i),r.set(t,i),sa(i).id=t,sa(i).isNew=!0,i}function $x(t,e,n,r){var i=t&&t.parent;i&&(t.type==="group"&&t.traverse(function(o){$x(o,e,n,r)}),qP(t,e,r),n.removeKey(sa(t).id))}function tX(t,e,n,r){t.isGroup||V([["cursor",$a.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],function(i){var o=i[0];ke(e,o)?t[o]=Je(e[o],i[1]):t[o]==null&&(t[o]=i[1])}),V(bt(e),function(i){if(i.indexOf("on")===0){var o=e[i];t[i]=Fe(o)?o:null}}),ke(e,"draggable")&&(t.draggable=e.draggable),e.name!=null&&(t.name=e.name),e.id!=null&&(t.id=e.id)}function Est(t){return t=he({},t),V(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Zse),function(e){delete t[e]}),t}function Mst(t,e,n){var r=Ke(t).eventData;!t.silent&&!t.ignore&&!r&&(r=Ke(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),r&&(r.info=n.info)}function Ist(t){t.registerComponentModel($st),t.registerComponentView(Ast),t.registerPreprocessor(function(e){var n=e.graphic;ve(n)?!n[0]||!n[0].elements?e.graphic=[{elements:n}]:e.graphic=[e.graphic[0]]:n&&!n.elements&&(e.graphic=[{elements:[n]}])})}var nX=["x","y","radius","angle","single"],Dst=["cartesian2d","polar","singleAxis"];function Rst(t){var e=t.get("coordinateSystem");return st(Dst,e)>=0}function cc(t){return process.env.NODE_ENV!=="production"&&je(t),t+"Axis"}function kst(t,e){var n=Be(),r=[],i=Be();t.eachComponent({mainType:"dataZoom",query:e},function(c){i.get(c.uid)||s(c)});var o;do o=!1,t.eachComponent("dataZoom",a);while(o);function a(c){!i.get(c.uid)&&l(c)&&(s(c),o=!0)}function s(c){i.set(c.uid,!0),r.push(c),u(c)}function l(c){var f=!1;return c.eachTargetAxis(function(d,p){var v=n.get(d);v&&v[p]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,d){(n.get(f)||n.set(f,[]))[d]=!0})}return r}function lde(t){var e=t.ecModel,n={infoList:[],infoMap:Be()};return t.eachTargetAxis(function(r,i){var o=e.getComponent(cc(r),i);if(o){var a=o.getCoordSysModel();if(a){var s=a.uid,l=n.infoMap.get(s);l||(l={model:a,axisModels:[]},n.infoList.push(l),n.infoMap.set(s,l)),l.axisModels.push(o)}}}),n}var zM=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(e){this.indexMap[e]||(this.indexList.push(e),this.indexMap[e]=!0)},t}(),wb=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return e.prototype.init=function(n,r,i){var o=rX(n);this.settledOption=o,this.mergeDefaultAndTheme(n,i),this._doInit(o)},e.prototype.mergeOption=function(n){var r=rX(n);it(this.option,n,!0),it(this.settledOption,r,!0),this._doInit(r)},e.prototype._doInit=function(n){var r=this.option;this._setDefaultThrottle(n),this._updateRangeUse(n);var i=this.settledOption;V([["start","startValue"],["end","endValue"]],function(o,a){this._rangePropMode[a]==="value"&&(r[o[0]]=i[o[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var n=this.get("orient",!0),r=this._targetAxisInfoMap=Be(),i=this._fillSpecifiedTargetAxis(r);i?this._orient=n||this._makeAutoOrientByTargetAxis():(this._orient=n||"horizontal",this._fillAutoTargetAxisByOrient(r,this._orient)),this._noTarget=!0,r.each(function(o){o.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(n){var r=!1;return V(nX,function(i){var o=this.getReferringComponents(cc(i),nGe);if(o.specified){r=!0;var a=new zM;V(o.models,function(s){a.add(s.componentIndex)}),n.set(i,a)}},this),r},e.prototype._fillAutoTargetAxisByOrient=function(n,r){var i=this.ecModel,o=!0;if(o){var a=r==="vertical"?"y":"x",s=i.findComponents({mainType:a+"Axis"});l(s,a)}if(o){var s=i.findComponents({mainType:"singleAxis",filter:function(c){return c.get("orient",!0)===r}});l(s,"single")}function l(u,c){var f=u[0];if(f){var d=new zM;if(d.add(f.componentIndex),n.set(c,d),o=!1,c==="x"||c==="y"){var p=f.getReferringComponents("grid",rr).models[0];p&&V(u,function(v){f.componentIndex!==v.componentIndex&&p===v.getReferringComponents("grid",rr).models[0]&&d.add(v.componentIndex)})}}}o&&V(nX,function(u){if(o){var c=i.findComponents({mainType:cc(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new zM;f.add(c[0].componentIndex),n.set(u,f),o=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var n;return this.eachTargetAxis(function(r){!n&&(n=r)},this),n==="y"?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(n){if(n.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var r=this.ecModel.option;this.option.throttle=r.animation&&r.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(n){var r=this._rangePropMode,i=this.get("rangeMode");V([["start","startValue"],["end","endValue"]],function(o,a){var s=n[o[0]]!=null,l=n[o[1]]!=null;s&&!l?r[a]="percent":!s&&l?r[a]="value":i?r[a]=i[a]:s&&(r[a]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var n;return this.eachTargetAxis(function(r,i){n==null&&(n=this.ecModel.getComponent(cc(r),i))},this),n},e.prototype.eachTargetAxis=function(n,r){this._targetAxisInfoMap.each(function(i,o){V(i.indexList,function(a){n.call(r,o,a)})})},e.prototype.getAxisProxy=function(n,r){var i=this.getAxisModel(n,r);if(i)return i.__dzAxisProxy},e.prototype.getAxisModel=function(n,r){process.env.NODE_ENV!=="production"&&je(n&&r!=null);var i=this._targetAxisInfoMap.get(n);if(i&&i.indexMap[r])return this.ecModel.getComponent(cc(n),r)},e.prototype.setRawRange=function(n){var r=this.option,i=this.settledOption;V([["start","startValue"],["end","endValue"]],function(o){(n[o[0]]!=null||n[o[1]]!=null)&&(r[o[0]]=i[o[0]]=n[o[0]],r[o[1]]=i[o[1]]=n[o[1]])},this),this._updateRangeUse(n)},e.prototype.setCalculatedRange=function(n){var r=this.option;V(["start","startValue","end","endValue"],function(i){r[i]=n[i]})},e.prototype.getPercentRange=function(){var n=this.findRepresentativeAxisProxy();if(n)return n.getDataPercentWindow()},e.prototype.getValueRange=function(n,r){if(n==null&&r==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(n,r).getDataValueWindow()},e.prototype.findRepresentativeAxisProxy=function(n){if(n)return n.__dzAxisProxy;for(var r,i=this._targetAxisInfoMap.keys(),o=0;o<i.length;o++)for(var a=i[o],s=this._targetAxisInfoMap.get(a),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(a,s.indexList[l]);if(u.hostedBy(this))return u;r||(r=u)}return r},e.prototype.getRangePropMode=function(){return this._rangePropMode.slice()},e.prototype.getOrient=function(){return process.env.NODE_ENV!=="production"&&je(this._orient),this._orient},e.type="dataZoom",e.dependencies=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","series","toolbox"],e.defaultOption={z:4,filterMode:"filter",start:0,end:100},e}(pt);function rX(t){var e={};return V(["start","end","startValue","endValue","throttle"],function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var Nst=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="dataZoom.select",e}(wb),P3=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i,o){this.dataZoomModel=n,this.ecModel=r,this.api=i},e.type="dataZoom",e}(hn),Lst=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="dataZoom.select",e}(P3),Vp=V,iX=Ao,Bst=function(){function t(e,n,r,i){this._dimName=e,this._axisIndex=n,this.ecModel=i,this._dataZoomModel=r}return t.prototype.hostedBy=function(e){return this._dataZoomModel===e},t.prototype.getDataValueWindow=function(){return this._valueWindow.slice()},t.prototype.getDataPercentWindow=function(){return this._percentWindow.slice()},t.prototype.getTargetSeriesModels=function(){var e=[];return this.ecModel.eachSeries(function(n){if(Rst(n)){var r=cc(this._dimName),i=n.getReferringComponents(r,rr).models[0];i&&this._axisIndex===i.componentIndex&&e.push(n)}},this),e},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return Ue(this._minMaxSpan)},t.prototype.calculateDataWindow=function(e){var n=this._dataExtent,r=this.getAxisModel(),i=r.axis.scale,o=this._dataZoomModel.getRangePropMode(),a=[0,100],s=[],l=[],u;Vp(["start","end"],function(d,p){var v=e[d],g=e[d+"Value"];o[p]==="percent"?(v==null&&(v=a[p]),g=i.parse(Zt(v,a,n))):(u=!0,g=g==null?n[p]:i.parse(g),v=Zt(g,n,a)),l[p]=g==null||isNaN(g)?n[p]:g,s[p]=v==null||isNaN(v)?a[p]:v}),iX(l),iX(s);var c=this._minMaxSpan;u?f(l,s,n,a,!1):f(s,l,a,n,!0);function f(d,p,v,g,m){var y=m?"Span":"ValueSpan";Nh(0,d,v,"all",c["min"+y],c["max"+y]);for(var b=0;b<2;b++)p[b]=Zt(d[b],v,g,!0),m&&(p[b]=i.parse(p[b]))}return{valueWindow:l,percentWindow:s}},t.prototype.reset=function(e){if(e===this._dataZoomModel){var n=this.getTargetSeriesModels();this._dataExtent=Vst(this,this._dimName,n),this._updateMinMaxSpan();var r=this.calculateDataWindow(e.settledOption);this._valueWindow=r.valueWindow,this._percentWindow=r.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(e,n){if(e!==this._dataZoomModel)return;var r=this._dimName,i=this.getTargetSeriesModels(),o=e.get("filterMode"),a=this._valueWindow;if(o==="none")return;Vp(i,function(l){var u=l.getData(),c=u.mapDimensionsAll(r);if(c.length){if(o==="weakFilter"){var f=u.getStore(),d=ye(c,function(p){return u.getDimensionIndex(p)},u);u.filterSelf(function(p){for(var v,g,m,y=0;y<c.length;y++){var b=f.get(d[y],p),O=!isNaN(b),w=b<a[0],x=b>a[1];if(O&&!w&&!x)return!0;O&&(m=!0),w&&(v=!0),x&&(g=!0)}return m&&v&&g})}else Vp(c,function(p){if(o==="empty")l.setData(u=u.map(p,function(g){return s(g)?g:NaN}));else{var v={};v[p]=a,u.selectRange(v)}});Vp(c,function(p){u.setApproximateExtent(a,p)})}});function s(l){return l>=a[0]&&l<=a[1]}},t.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},n=this._dataZoomModel,r=this._dataExtent;Vp(["min","max"],function(i){var o=n.get(i+"Span"),a=n.get(i+"ValueSpan");a!=null&&(a=this.getAxisModel().axis.scale.parse(a)),a!=null?o=Zt(r[0]+a,r,[0,100],!0):o!=null&&(a=Zt(o,[0,100],r,!0)-r[0]),e[i+"Span"]=o,e[i+"ValueSpan"]=a},this)},t.prototype._setAxisModel=function(){var e=this.getAxisModel(),n=this._percentWindow,r=this._valueWindow;if(n){var i=I8(r,[0,500]);i=Math.min(i,20);var o=e.axis.scale.rawExtentInfo;n[0]!==0&&o.setDeterminedMinMax("min",+r[0].toFixed(i)),n[1]!==100&&o.setDeterminedMinMax("max",+r[1].toFixed(i)),o.freeze()}},t}();function Vst(t,e,n){var r=[1/0,-1/0];Vp(n,function(a){tqe(r,a.getData(),e)});var i=t.getAxisModel(),o=Sue(i.axis.scale,i,r).calculate();return[o.min,o.max]}var zst={getTargetSeries:function(t){function e(i){t.eachComponent("dataZoom",function(o){o.eachTargetAxis(function(a,s){var l=t.getComponent(cc(a),s);i(a,s,l,o)})})}e(function(i,o,a,s){a.__dzAxisProxy=null});var n=[];e(function(i,o,a,s){a.__dzAxisProxy||(a.__dzAxisProxy=new Bst(i,o,s,t),n.push(a.__dzAxisProxy))});var r=Be();return V(n,function(i){V(i.getTargetSeriesModels(),function(o){r.set(o.uid,o)})}),r},overallReset:function(t,e){t.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(r,i){n.getAxisProxy(r,i).reset(n)}),n.eachTargetAxis(function(r,i){n.getAxisProxy(r,i).filterData(n,e)})}),t.eachComponent("dataZoom",function(n){var r=n.findRepresentativeAxisProxy();if(r){var i=r.getDataPercentWindow(),o=r.getDataValueWindow();n.setCalculatedRange({start:i[0],end:i[1],startValue:o[0],endValue:o[1]})}})}};function Fst(t){t.registerAction("dataZoom",function(e,n){var r=kst(n,e);V(r,function(i){i.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var oX=!1;function $3(t){oX||(oX=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,zst),Fst(t),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function Wst(t){t.registerComponentModel(Nst),t.registerComponentView(Lst),$3(t)}var fa=function(){function t(){}return t}(),ude={};function zp(t,e){ude[t]=e}function cde(t){return ude[t]}var Qst=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var n=this.ecModel;V(this.option.feature,function(r,i){var o=cde(i);o&&(o.getDefaultOption&&(o.defaultOption=o.getDefaultOption(n)),it(r,o.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(pt);function Hst(t,e,n){var r=e.getBoxLayoutParams(),i=e.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=ir(r,o,i);Fd(e.get("orient"),t,e.get("itemGap"),a.width,a.height),RP(t,r,o,i)}function fde(t,e){var n=Mh(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),t=new Pt({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:r,silent:!0,z2:-1}),t}var Gst=function(t){ie(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(n,r,i,o){var a=this.group;if(a.removeAll(),!n.get("show"))return;var s=+n.get("itemSize"),l=n.get("orient")==="vertical",u=n.get("feature")||{},c=this._features||(this._features={}),f=[];V(u,function(v,g){f.push(g)}),new au(this._featureNames||[],f).add(d).update(d).remove(nt(d,null)).execute(),this._featureNames=f;function d(v,g){var m=f[v],y=f[g],b=u[m],O=new tn(b,n,n.ecModel),w;if(o&&o.newTitle!=null&&o.featureName===m&&(b.title=o.newTitle),m&&!y){if(jst(m))w={onclick:O.option.onclick,featureName:m};else{var x=cde(m);if(!x)return;w=new x}c[m]=w}else if(w=c[y],!w)return;w.uid=kg("toolbox-feature"),w.model=O,w.ecModel=r,w.api=i;var S=w instanceof fa;if(!m&&y){S&&w.dispose&&w.dispose(r,i);return}if(!O.get("show")||S&&w.unusable){S&&w.remove&&w.remove(r,i);return}p(O,w,m),O.setIconStatus=function(T,$){var A=this.option,P=this.iconPaths;A.iconStatus=A.iconStatus||{},A.iconStatus[T]=$,P[T]&&($==="emphasis"?iu:ou)(P[T])},w instanceof fa&&w.render&&w.render(O,r,i,o)}function p(v,g,m){var y=v.getModel("iconStyle"),b=v.getModel(["emphasis","iconStyle"]),O=g instanceof fa&&g.getIcons?g.getIcons():v.get("icon"),w=v.get("title")||{},x,S;Ie(O)?(x={},x[m]=O):x=O,Ie(w)?(S={},S[m]=w):S=w;var T=v.iconPaths={};V(x,function($,A){var P=Ig($,{},{x:-s/2,y:-s/2,width:s,height:s});P.setStyle(y.getItemStyle());var M=P.ensureState("emphasis");M.style=b.getItemStyle();var I=new Tt({style:{text:S[A],align:b.get("textAlign"),borderRadius:b.get("textBorderRadius"),padding:b.get("textPadding"),fill:null,font:q8({fontStyle:b.get("textFontStyle"),fontFamily:b.get("textFontFamily"),fontSize:b.get("textFontSize"),fontWeight:b.get("textFontWeight")},r)},ignore:!0});P.setTextContent(I),Dg({el:P,componentModel:n,itemName:A,formatterParamsExtra:{title:S[A]}}),P.__title=S[A],P.on("mouseover",function(){var R=b.getItemStyle(),L=l?n.get("right")==null&&n.get("left")!=="right"?"right":"left":n.get("bottom")==null&&n.get("top")!=="bottom"?"bottom":"top";I.setStyle({fill:b.get("textFill")||R.fill||R.stroke||"#000",backgroundColor:b.get("textBackgroundColor")}),P.setTextConfig({position:b.get("textPosition")||L}),I.ignore=!n.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){v.get(["iconStatus",A])!=="emphasis"&&i.leaveEmphasis(this),I.hide()}),(v.get(["iconStatus",A])==="emphasis"?iu:ou)(P),a.add(P),P.on("click",Re(g.onclick,g,r,i,A)),T[A]=P})}Hst(a,n,i),a.add(fde(a.getBoundingRect(),n)),l||a.eachChild(function(v){var g=v.__title,m=v.ensureState("emphasis"),y=m.textConfig||(m.textConfig={}),b=v.getTextContent(),O=b&&b.ensureState("emphasis");if(O&&!Fe(O)&&g){var w=O.style||(O.style={}),x=h_(g,Tt.makeFont(w)),S=v.x+a.x,T=v.y+a.y+s,$=!1;T+x.height>i.getHeight()&&(y.position="top",$=!0);var A=$?-5-x.height:s+10;S+x.width/2>i.getWidth()?(y.position=["100%",A],w.align="right"):S-x.width/2<0&&(y.position=[0,A],w.align="left")}})},e.prototype.updateView=function(n,r,i,o){V(this._features,function(a){a instanceof fa&&a.updateView&&a.updateView(a.model,r,i,o)})},e.prototype.remove=function(n,r){V(this._features,function(i){i instanceof fa&&i.remove&&i.remove(n,r)}),this.group.removeAll()},e.prototype.dispose=function(n,r){V(this._features,function(i){i instanceof fa&&i.dispose&&i.dispose(n,r)})},e.type="toolbox",e}(hn);function jst(t){return t.indexOf("my")===0}var Ust=function(t){ie(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onclick=function(n,r){var i=this.model,o=i.get("name")||n.get("title.0.text")||"echarts",a=r.getZr().painter.getType()==="svg",s=a?"svg":i.get("type",!0)||"png",l=r.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||n.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=Ct.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=o+"."+s,c.target="_blank",c.href=l;var f=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(f)}else if(window.navigator.msSaveOrOpenBlob||a){var d=l.split(","),p=d[0].indexOf("base64")>-1,v=a?decodeURIComponent(d[1]):d[1];p&&(v=window.atob(v));var g=o+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=v.length,y=new Uint8Array(m);m--;)y[m]=v.charCodeAt(m);var b=new Blob([y]);window.navigator.msSaveOrOpenBlob(b,g)}else{var O=document.createElement("iframe");document.body.appendChild(O);var w=O.contentWindow,x=w.document;x.open("image/svg+xml","replace"),x.write(v),x.close(),w.focus(),x.execCommand("SaveAs",!0,g),document.body.removeChild(O)}}else{var S=i.get("lang"),T='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(S&&S[0]||"")+'" /></body>',$=window.open();$.document.write(T),$.document.title=o}},e.getDefaultOption=function(n){var r={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:n.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:n.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return r},e}(fa),aX="__ec_magicType_stack__",Zst=[["line","bar"],["stack"]],Xst=function(t){ie(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getIcons=function(){var n=this.model,r=n.get("icon"),i={};return V(n.get("type"),function(o){r[o]&&(i[o]=r[o])}),i},e.getDefaultOption=function(n){var r={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:n.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return r},e.prototype.onclick=function(n,r,i){var o=this.model,a=o.get(["seriesIndex",i]);if(sX[i]){var s={series:[]},l=function(f){var d=f.subType,p=f.id,v=sX[i](d,p,f,o);v&&(Ge(v,f.option),s.series.push(v));var g=f.coordinateSystem;if(g&&g.type==="cartesian2d"&&(i==="line"||i==="bar")){var m=g.getAxesByScale("ordinal")[0];if(m){var y=m.dim,b=y+"Axis",O=f.getReferringComponents(b,rr).models[0],w=O.componentIndex;s[b]=s[b]||[];for(var x=0;x<=w;x++)s[b][w]=s[b][w]||{};s[b][w].boundaryGap=i==="bar"}}};V(Zst,function(f){st(f,i)>=0&&V(f,function(d){o.setIconStatus(d,"normal")})}),o.setIconStatus(i,"emphasis"),n.eachComponent({mainType:"series",query:a==null?null:{seriesIndex:a}},l);var u,c=i;i==="stack"&&(u=it({stack:o.option.title.tiled,tiled:o.option.title.stack},o.option.title),o.get(["iconStatus",i])!=="emphasis"&&(c="tiled")),r.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},e}(fa),sX={line:function(t,e,n,r){if(t==="bar")return it({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","line"])||{},!0)},bar:function(t,e,n,r){if(t==="line")return it({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},r.get(["option","bar"])||{},!0)},stack:function(t,e,n,r){var i=n.get("stack")===aX;if(t==="line"||t==="bar")return r.setIconStatus("stack",i?"normal":"emphasis"),it({id:e,stack:i?"":aX},r.get(["option","stack"])||{},!0)}};ms({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)});var KP=new Array(60).join("-"),sg=" ";function Yst(t){var e={},n=[],r=[];return t.eachRawSeries(function(i){var o=i.coordinateSystem;if(o&&(o.type==="cartesian2d"||o.type==="polar")){var a=o.getBaseAxis();if(a.type==="category"){var s=a.dim+"_"+a.index;e[s]||(e[s]={categoryAxis:a,valueAxis:o.getOtherAxis(a),series:[]},r.push({axisDim:a.dim,axisIndex:a.index})),e[s].series.push(i)}else n.push(i)}else n.push(i)}),{seriesGroupByCategoryAxis:e,other:n,meta:r}}function qst(t){var e=[];return V(t,function(n,r){var i=n.categoryAxis,o=n.valueAxis,a=o.dim,s=[" "].concat(ye(n.series,function(p){return p.name})),l=[i.model.getCategories()];V(n.series,function(p){var v=p.getRawData();l.push(p.getRawData().mapArray(v.mapDimension(a),function(g){return g}))});for(var u=[s.join(sg)],c=0;c<l[0].length;c++){for(var f=[],d=0;d<l.length;d++)f.push(l[d][c]);u.push(f.join(sg))}e.push(u.join(`
  349. `))}),e.join(`
  350. `+KP+`
  351. `)}function Kst(t){return ye(t,function(e){var n=e.getRawData(),r=[e.name],i=[];return n.each(n.dimensions,function(){for(var o=arguments.length,a=arguments[o-1],s=n.getName(a),l=0;l<o-1;l++)i[l]=arguments[l];r.push((s?s+sg:"")+i.join(sg))}),r.join(`
  352. `)}).join(`
  353. `+KP+`
  354. `)}function Jst(t){var e=Yst(t);return{value:Yt([qst(e.seriesGroupByCategoryAxis),Kst(e.other)],function(n){return!!n.replace(/[\n\t\s]/g,"")}).join(`
  355. `+KP+`
  356. `),meta:e.meta}}function _C(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function elt(t){var e=t.slice(0,t.indexOf(`
  357. `));if(e.indexOf(sg)>=0)return!0}var kk=new RegExp("["+sg+"]+","g");function tlt(t){for(var e=t.split(/\n+/g),n=_C(e.shift()).split(kk),r=[],i=ye(n,function(l){return{name:l,data:[]}}),o=0;o<e.length;o++){var a=_C(e[o]).split(kk);r.push(a.shift());for(var s=0;s<a.length;s++)i[s]&&(i[s].data[o]=a[s])}return{series:i,categories:r}}function nlt(t){for(var e=t.split(/\n+/g),n=_C(e.shift()),r=[],i=0;i<e.length;i++){var o=_C(e[i]);if(o){var a=o.split(kk),s="",l=void 0,u=!1;isNaN(a[0])?(u=!0,s=a[0],a=a.slice(1),r[i]={name:s,value:[]},l=r[i].value):l=r[i]=[];for(var c=0;c<a.length;c++)l.push(+a[c]);l.length===1&&(u?r[i].value=l[0]:r[i]=l[0])}}return{name:n,data:r}}function rlt(t,e){var n=t.split(new RegExp(`
  358. *`+KP+`
  359. *`,"g")),r={series:[]};return V(n,function(i,o){if(elt(i)){var a=tlt(i),s=e[o],l=s.axisDim+"Axis";s&&(r[l]=r[l]||[],r[l][s.axisIndex]={data:a.categories},r.series=r.series.concat(a.series))}else{var a=nlt(i);r.series.push(a)}}),r}var ilt=function(t){ie(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onclick=function(n,r){setTimeout(function(){r.dispatchAction({type:"hideTip"})});var i=r.getDom(),o=this.model;this._dom&&i.removeChild(this._dom);var a=document.createElement("div");a.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",a.style.backgroundColor=o.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=o.get("lang")||[];s.innerHTML=l[0]||o.get("title"),s.style.cssText="margin:10px 20px",s.style.color=o.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var f=o.get("optionToContent"),d=o.get("contentToOption"),p=Jst(n);if(Fe(f)){var v=f(r.getOption());Ie(v)?u.innerHTML=v:Ec(v)&&u.appendChild(v)}else{c.readOnly=o.get("readOnly");var g=c.style;g.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",g.color=o.get("textColor"),g.borderColor=o.get("textareaBorderColor"),g.backgroundColor=o.get("textareaColor"),c.value=p.value,u.appendChild(c)}var m=p.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var b="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",O=document.createElement("div"),w=document.createElement("div");b+=";background-color:"+o.get("buttonColor"),b+=";color:"+o.get("buttonTextColor");var x=this;function S(){i.removeChild(a),x._dom=null}dR(O,"click",S),dR(w,"click",function(){if(d==null&&f!=null||d!=null&&f==null){process.env.NODE_ENV!=="production"&&Mn("It seems you have just provided one of `contentToOption` and `optionToContent` functions but missed the other one. Data change is ignored."),S();return}var T;try{Fe(d)?T=d(u,r.getOption()):T=rlt(c.value,m)}catch($){throw S(),new Error("Data view format error "+$)}T&&r.dispatchAction({type:"changeDataView",newOption:T}),S()}),O.innerHTML=l[1],w.innerHTML=l[2],w.style.cssText=O.style.cssText=b,!o.get("readOnly")&&y.appendChild(w),y.appendChild(O),a.appendChild(s),a.appendChild(u),a.appendChild(y),u.style.height=i.clientHeight-80+"px",i.appendChild(a),this._dom=a},e.prototype.remove=function(n,r){this._dom&&r.getDom().removeChild(this._dom)},e.prototype.dispose=function(n,r){this.remove(n,r)},e.getDefaultOption=function(n){var r={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:n.getLocaleModel().get(["toolbox","dataView","title"]),lang:n.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return r},e}(fa);function olt(t,e){return ye(t,function(n,r){var i=e&&e[r];if(Qe(i)&&!ve(i)){var o=Qe(n)&&!ve(n);o||(n={value:n});var a=i.name!=null&&n.name==null;return n=Ge(n,i),a&&delete n.name,n}else return n})}ms({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(t,e){var n=[];V(t.newOption.series,function(r){var i=e.getSeriesByName(r.name)[0];if(!i)n.push(he({type:"scatter"},r));else{var o=i.get("data");n.push({name:r.name,data:olt(r.data,o)})}}),e.mergeOption(Ge({series:n},t.newOption))});var dde=V,hde=$t();function alt(t,e){var n=A3(t);dde(e,function(r,i){for(var o=n.length-1;o>=0;o--){var a=n[o];if(a[i])break}if(o<0){var s=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();n[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),n.push(e)}function slt(t){var e=A3(t),n=e[e.length-1];e.length>1&&e.pop();var r={};return dde(n,function(i,o){for(var a=e.length-1;a>=0;a--)if(i=e[a][o],i){r[o]=i;break}}),r}function llt(t){hde(t).snapshots=null}function ult(t){return A3(t).length}function A3(t){var e=hde(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var clt=function(t){ie(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onclick=function(n,r){llt(n),r.dispatchAction({type:"restore",from:this.uid})},e.getDefaultOption=function(n){var r={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:n.getLocaleModel().get(["toolbox","restore","title"])};return r},e}(fa);ms({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")});var flt=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],E3=function(){function t(e,n,r){var i=this;this._targetInfoList=[];var o=lX(n,e);V(dlt,function(a,s){(!r||!r.include||st(r.include,s)>=0)&&a(o,i._targetInfoList)})}return t.prototype.setOutputRanges=function(e,n){return this.matchOutputRanges(e,n,function(r,i,o){if((r.coordRanges||(r.coordRanges=[])).push(i),!r.coordRange){r.coordRange=i;var a=FM[r.brushType](0,o,i);r.__rangeOffset={offset:dX[r.brushType](a.values,r.range,[1,1]),xyMinMax:a.xyMinMax}}}),e},t.prototype.matchOutputRanges=function(e,n,r){V(e,function(i){var o=this.findTargetInfo(i,n);o&&o!==!0&&V(o.coordSyses,function(a){var s=FM[i.brushType](1,a,i.range,!0);r(i,s.values,a,n)})},this)},t.prototype.setInputRanges=function(e,n){V(e,function(r){var i=this.findTargetInfo(r,n);if(process.env.NODE_ENV!=="production"&&(je(!i||i===!0||r.coordRange,"coordRange must be specified when coord index specified."),je(!i||i!==!0||r.range,"range must be specified in global brush.")),r.range=r.range||[],i&&i!==!0){r.panelId=i.panelId;var o=FM[r.brushType](0,i.coordSys,r.coordRange),a=r.__rangeOffset;r.range=a?dX[r.brushType](o.values,a.offset,hlt(o.xyMinMax,a.xyMinMax)):o.values}},this)},t.prototype.makePanelOpts=function(e,n){return ye(this._targetInfoList,function(r){var i=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:n?n(r):null,clipPath:_fe(i),isTargetByCursor:wfe(i,e,r.coordSysModel),getLinearBrushOtherExtent:Ofe(i)}})},t.prototype.controlSeries=function(e,n,r){var i=this.findTargetInfo(e,r);return i===!0||i&&st(i.coordSyses,n.coordinateSystem)>=0},t.prototype.findTargetInfo=function(e,n){for(var r=this._targetInfoList,i=lX(n,e),o=0;o<r.length;o++){var a=r[o],s=e.panelId;if(s){if(a.panelId===s)return a}else for(var l=0;l<uX.length;l++)if(uX[l](i,a))return a}return!0},t}();function Nk(t){return t[0]>t[1]&&t.reverse(),t}function lX(t,e){return fy(t,e,{includeMainTypes:flt})}var dlt={grid:function(t,e){var n=t.xAxisModels,r=t.yAxisModels,i=t.gridModels,o=Be(),a={},s={};!n&&!r&&!i||(V(n,function(l){var u=l.axis.grid.model;o.set(u.id,u),a[u.id]=!0}),V(r,function(l){var u=l.axis.grid.model;o.set(u.id,u),s[u.id]=!0}),V(i,function(l){o.set(l.id,l),a[l.id]=!0,s[l.id]=!0}),o.each(function(l){var u=l.coordinateSystem,c=[];V(u.getCartesians(),function(f,d){(st(n,f.getAxis("x").model)>=0||st(r,f.getAxis("y").model)>=0)&&c.push(f)}),e.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:cX.grid,xAxisDeclared:a[l.id],yAxisDeclared:s[l.id]})}))},geo:function(t,e){V(t.geoModels,function(n){var r=n.coordinateSystem;e.push({panelId:"geo--"+n.id,geoModel:n,coordSysModel:n,coordSys:r,coordSyses:[r],getPanelRect:cX.geo})})}},uX=[function(t,e){var n=t.xAxisModel,r=t.yAxisModel,i=t.gridModel;return!i&&n&&(i=n.axis.grid.model),!i&&r&&(i=r.axis.grid.model),i&&i===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],cX={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(wc(t)),e}},FM={lineX:nt(fX,0),lineY:nt(fX,1),rect:function(t,e,n,r){var i=t?e.pointToData([n[0][0],n[1][0]],r):e.dataToPoint([n[0][0],n[1][0]],r),o=t?e.pointToData([n[0][1],n[1][1]],r):e.dataToPoint([n[0][1],n[1][1]],r),a=[Nk([i[0],o[0]]),Nk([i[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n,r){var i=[[1/0,-1/0],[1/0,-1/0]],o=ye(n,function(a){var s=t?e.pointToData(a,r):e.dataToPoint(a,r);return i[0][0]=Math.min(i[0][0],s[0]),i[1][0]=Math.min(i[1][0],s[1]),i[0][1]=Math.max(i[0][1],s[0]),i[1][1]=Math.max(i[1][1],s[1]),s});return{values:o,xyMinMax:i}}};function fX(t,e,n,r){process.env.NODE_ENV!=="production"&&je(n.type==="cartesian2d","lineX/lineY brush is available only in cartesian2d.");var i=n.getAxis(["x","y"][t]),o=Nk(ye([0,1],function(s){return e?i.coordToData(i.toLocalCoord(r[s]),!0):i.toGlobalCoord(i.dataToCoord(r[s]))})),a=[];return a[t]=o,a[1-t]=[NaN,NaN],{values:o,xyMinMax:a}}var dX={lineX:nt(hX,0),lineY:nt(hX,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return ye(t,function(r,i){return[r[0]-n[0]*e[i][0],r[1]-n[1]*e[i][1]]})}};function hX(t,e,n,r){return[e[0]-r[t]*n[0],e[1]-r[t]*n[1]]}function hlt(t,e){var n=pX(t),r=pX(e),i=[n[0]/r[0],n[1]/r[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function pX(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var Lk=V,plt=qHe("toolbox-dataZoom_"),vlt=function(t){ie(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(n,r,i,o){this._brushController||(this._brushController=new o3(i.getZr()),this._brushController.on("brush",Re(this._onBrush,this)).mount()),ylt(n,r,this,o,i),mlt(n,r)},e.prototype.onclick=function(n,r,i){glt[i].call(this)},e.prototype.remove=function(n,r){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(n,r){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(n){var r=n.areas;if(!n.isEnd||!r.length)return;var i={},o=this.ecModel;this._brushController.updateCovers([]);var a=new E3(M3(this.model),o,{include:["grid"]});a.matchOutputRanges(r,o,function(u,c,f){if(f.type==="cartesian2d"){var d=u.brushType;d==="rect"?(s("x",f,c[0]),s("y",f,c[1])):s({lineX:"x",lineY:"y"}[d],f,c)}}),alt(o,i),this._dispatchZoomAction(i);function s(u,c,f){var d=c.getAxis(u),p=d.model,v=l(u,p,o),g=v.findRepresentativeAxisProxy(p).getMinMaxSpan();(g.minValueSpan!=null||g.maxValueSpan!=null)&&(f=Nh(0,f.slice(),d.scale.getExtent(),0,g.minValueSpan,g.maxValueSpan)),v&&(i[v.id]={dataZoomId:v.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var d;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(p){var v=p.getAxisModel(u,c.componentIndex);v&&(d=p)}),d}},e.prototype._dispatchZoomAction=function(n){var r=[];Lk(n,function(i,o){r.push(Ue(i))}),r.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:r})},e.getDefaultOption=function(n){var r={show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:n.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return r},e}(fa),glt={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(slt(this.ecModel))}};function M3(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return e.xAxisIndex==null&&e.xAxisId==null&&(e.xAxisIndex="all"),e.yAxisIndex==null&&e.yAxisId==null&&(e.yAxisIndex="all"),e}function mlt(t,e){t.setIconStatus("back",ult(e)>1?"emphasis":"normal")}function ylt(t,e,n,r,i){var o=n._isZoomActive;r&&r.type==="takeGlobalCursor"&&(o=r.key==="dataZoomSelect"?r.dataZoomSelectActive:!1),n._isZoomActive=o,t.setIconStatus("zoom",o?"emphasis":"normal");var a=new E3(M3(t),e,{include:["grid"]}),s=a.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});n._brushController.setPanels(s).enableBrush(o&&s.length?{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()}:!1)}CUe("dataZoom",function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(!e||e.get(n)==null)return;var r=e.getModel(n),i=[],o=M3(r),a=fy(t,o);Lk(a.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),Lk(a.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var f=l.componentIndex,d={type:"select",$fromToolbox:!0,filterMode:r.get("filterMode",!0)||"filter",id:plt+u+f};d[c]=f,i.push(d)}return i});function blt(t){t.registerComponentModel(Qst),t.registerComponentView(Gst),zp("saveAsImage",Ust),zp("magicType",Xst),zp("dataView",ilt),zp("dataZoom",vlt),zp("restore",clt),vt(Wst)}var _lt=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="tooltip",e.dependencies=["axisPointer"],e.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}},e}(pt);function pde(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function vde(t){if(Ct.domSupported){for(var e=document.documentElement.style,n=0,r=t.length;n<r;n++)if(t[n]in e)return t[n]}}var gde=vde(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Olt=vde(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function mde(t,e){if(!t)return e;e=o5(e,!0);var n=t.indexOf(e);return t=n===-1?e:"-"+t.slice(0,n)+"-"+e,t.toLowerCase()}function wlt(t,e){var n=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return n?n[e]:null}var xlt=mde(Olt,"transition"),I3=mde(gde,"transform"),Slt="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Ct.transform3dSupported?"will-change:transform;":"");function Clt(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function Tlt(t,e,n){if(!Ie(n)||n==="inside")return"";var r=t.get("backgroundColor"),i=t.get("borderWidth");e=fh(e);var o=Clt(n),a=Math.max(Math.round(i)*1.5,6),s="",l=I3+":",u;st(["left","right"],o)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=o==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=o==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=a+i,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),p=Math.round(((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-f)/2)*100)/100;s+=";"+o+":-"+p+"px";var v=e+" solid "+i+"px;",g=["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="'+g.join("")+'"></div>'}function Plt(t,e){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+t/2+"s "+n,i="opacity"+r+",visibility"+r;return e||(r=" "+t+"s "+n,i+=Ct.transformSupported?","+I3+r:",left"+r+",top"+r),xlt+":"+i}function vX(t,e,n){var r=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!Ct.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var o=Ct.transform3dSupported,a="translate"+(o?"3d":"")+"("+r+","+i+(o?",0":"")+")";return n?"top:0;left:0;"+I3+":"+a+";":[["top",0],["left",0],[gde,a]]}function $lt(t){var e=[],n=t.get("fontSize"),r=t.getTextColor();r&&e.push("color:"+r),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(n*3/2)+"px");var i=t.get("textShadowColor"),o=t.get("textShadowBlur")||0,a=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return i&&o&&e.push("text-shadow:"+a+"px "+s+"px "+o+"px "+i),V(["decoration","align"],function(l){var u=t.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function Alt(t,e,n){var r=[],i=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),c=t.getModel("textStyle"),f=Cle(t,"html"),d=l+"px "+u+"px "+a+"px "+s;return r.push("box-shadow:"+d),e&&i&&r.push(Plt(i,n)),o&&r.push("background-color:"+o),V(["width","color","radius"],function(p){var v="border-"+p,g=o5(v),m=t.get(g);m!=null&&r.push(v+":"+m+(p==="color"?"":"px"))}),r.push($lt(c)),f!=null&&r.push("padding:"+Mh(f).join("px ")+"px"),r.join(";")+";"}function gX(t,e,n,r,i){var o=e&&e.painter;if(n){var a=o&&o.getViewportRoot();a&&_9e(t,a,n,r,i)}else{t[0]=r,t[1]=i;var s=o&&o.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var Elt=function(){function t(e,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Ct.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var i=this._zr=e.getZr(),o=n.appendTo,a=o&&(Ie(o)?document.querySelector(o):Ec(o)?o:Fe(o)&&o(e.getDom()));gX(this._styleCoord,i,a,e.getWidth()/2,e.getHeight()/2),(a||e.getDom()).appendChild(r),this._api=e,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();ia(c,l,!0),u.dispatch("mousemove",l)}},r.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return t.prototype.update=function(e){if(!this._container){var n=this._api.getDom(),r=wlt(n,"position"),i=n.style;i.position!=="absolute"&&r!=="absolute"&&(i.position="relative")}var o=e.get("alwaysShowContent");o&&this._moveIfResized(),this._alwaysShowContent=o,this.el.className=e.get("className")||""},t.prototype.show=function(e,n){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,i=r.style,o=this._styleCoord;r.innerHTML?i.cssText=Slt+Alt(e,!this._firstShow,this._longHide)+vX(o[0],o[1],!0)+("border-color:"+fh(n)+";")+(e.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},t.prototype.setContent=function(e,n,r,i,o){var a=this.el;if(e==null){a.innerHTML="";return}var s="";if(Ie(o)&&r.get("trigger")==="item"&&!pde(r)&&(s=Tlt(r,i,o)),Ie(e))a.innerHTML=e+s;else if(e){a.innerHTML="",ve(e)||(e=[e]);for(var l=0;l<e.length;l++)Ec(e[l])&&e[l].parentNode!==a&&a.appendChild(e[l]);if(s&&a.childNodes.length){var u=document.createElement("div");u.innerHTML=s,a.appendChild(u)}}},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el;return[e.offsetWidth,e.offsetHeight]},t.prototype.moveTo=function(e,n){var r=this._styleCoord;if(gX(r,this._zr,this._container,e,n),r[0]!=null&&r[1]!=null){var i=this.el.style,o=vX(r[0],r[1]);V(o,function(a){i[a[0]]=a[1]})}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),n*this._zr.getHeight())},t.prototype.hide=function(){var e=this,n=this.el.style;n.visibility="hidden",n.opacity="0",Ct.transform3dSupported&&(n.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return e._longHide=!0},500)},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Re(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var e=this.el.parentNode;e&&e.removeChild(this.el),this.el=this._container=null},t}(),Mlt=function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),yX(this._styleCoord,this._zr,e.getWidth()/2,e.getHeight()/2)}return t.prototype.update=function(e){var n=e.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n},t.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},t.prototype.setContent=function(e,n,r,i,o){var a=this;Qe(e)&&Qt(process.env.NODE_ENV!=="production"?"Passing DOM nodes as content is not supported in richText tooltip!":""),this.el&&this._zr.remove(this.el);var s=r.getModel("textStyle");this.el=new Tt({style:{rich:n.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:r.get(["textStyle","color"]),padding:Cle(r,"richText"),verticalAlign:"top",align:"left"},z:r.get("z")}),V(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){a.el.style[u]=r.get(u)}),V(["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})},t.prototype.setEnterable=function(e){this._enterable=e},t.prototype.getSize=function(){var e=this.el,n=this.el.getBoundingRect(),r=mX(e.style);return[n.width+r.left+r.right,n.height+r.top+r.bottom]},t.prototype.moveTo=function(e,n){var r=this.el;if(r){var i=this._styleCoord;yX(i,this._zr,e,n),e=i[0],n=i[1];var o=r.style,a=ju(o.borderWidth||0),s=mX(o);r.x=e+a+s.left,r.y=n+a+s.top,r.markRedraw()}},t.prototype._moveIfResized=function(){var e=this._styleCoord[2],n=this._styleCoord[3];this.moveTo(e*this._zr.getWidth(),n*this._zr.getHeight())},t.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},t.prototype.hideLater=function(e){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(Re(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function ju(t){return Math.max(0,t)}function mX(t){var e=ju(t.shadowBlur||0),n=ju(t.shadowOffsetX||0),r=ju(t.shadowOffsetY||0);return{left:ju(e-n),right:ju(e+n),top:ju(e-r),bottom:ju(e+r)}}function yX(t,e,n,r){t[0]=n,t[1]=r,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var Ilt=new Pt({shape:{x:-1,y:-1,width:2,height:2}}),Dlt=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r){if(!(Ct.node||!r.getDom())){var i=n.getComponent("tooltip"),o=this._renderMode=iGe(i.get("renderMode"));this._tooltipContent=o==="richText"?new Mlt(r):new Elt(r,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(n,r,i){if(!(Ct.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")?Vg(this,"_updatePosition",50,"fixRate"):ub(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var n=this._tooltipModel,r=n.get("triggerOn");tde("itemTooltip",this._api,Re(function(i,o,a){r!=="none"&&(r.indexOf(i)>=0?this._tryShow(o,a):i==="leave"&&this._hide(a))},this))},e.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})})}},e.prototype.manuallyShowTip=function(n,r,i,o){if(!(o.from===this.uid||Ct.node||!i.getDom())){var a=bX(o,i);this._ticket="";var s=o.dataByCoordSys,l=Llt(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=Ilt;c.x=o.x,c.y=o.y,c.update(),Ke(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=nde(o,r),d=f.point[0],p=f.point[1];d!=null&&p!=null&&this._tryShow({offsetX:d,offsetY:p,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))}},e.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(bX(o,i))},e.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=i0([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}}},e.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=Ke(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;wd(i,function(c){if(Ke(c).dataIndex!=null)return l=c,!0;if(Ke(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)}},e.prototype._showOrMove=function(n,r){var i=n.get("showDelay");r=Re(r,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(r,i):r()},e.prototype._showAxisTooltip=function(n,r){var i=this._ecModel,o=this._tooltipModel,a=[r.offsetX,r.offsetY],s=i0([r.tooltipOption],o),l=this._renderMode,u=[],c=Tr("section",{blocks:[],noHeader:!0}),f=[],d=new CE;V(n,function(b){V(b.dataByAxis,function(O){var w=i.getComponent(O.axisDim+"Axis",O.axisIndex),x=O.value;if(!(!w||x==null)){var S=Kfe(x,w.axis,i,O.seriesDataIndices,O.valueLabelOpt),T=Tr("section",{header:S,noHeader:!pa(S),sortBlocks:!0,blocks:[]});c.blocks.push(T),V(O.seriesDataIndices,function($){var A=i.getSeriesByIndex($.seriesIndex),P=$.dataIndexInside,M=A.getDataParams(P);if(!(M.dataIndex<0)){M.axisDim=O.axisDim,M.axisIndex=O.axisIndex,M.axisType=O.axisType,M.axisId=O.axisId,M.axisValue=D5(w.axis,{value:x}),M.axisValueLabel=S,M.marker=d.makeTooltipMarker("item",fh(M.color),l);var I=nG(A.formatTooltip(P,!0,null)),R=I.frag;if(R){var L=i0([A],o).get("valueFormatter");T.blocks.push(L?he({valueFormatter:L},R):R)}I.text&&f.push(I.text),u.push(M)}})}})}),c.blocks.reverse(),f.reverse();var p=r.position,v=s.get("order"),g=lG(c,d,l,v,i.get("useUTC"),s.get("textStyle"));g&&f.unshift(g);var m=l==="richText"?`
  360. `:"<br/>",y=f.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(n,u)?this._updatePosition(s,p,a[0],a[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",a[0],a[1],p,null,d)})},e.prototype._showSeriesItemTooltip=function(n,r,i){var o=this._ecModel,a=Ke(r),s=a.seriesIndex,l=o.getSeriesByIndex(s),u=a.dataModel||l,c=a.dataIndex,f=a.dataType,d=u.getData(f),p=this._renderMode,v=n.positionDefault,g=i0([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,v?{position:v}:null),m=g.get("trigger");if(!(m!=null&&m!=="item")){var y=u.getDataParams(c,f),b=new CE;y.marker=b.makeTooltipMarker("item",fh(y.color),p);var O=nG(u.formatTooltip(c,!1,f)),w=g.get("order"),x=g.get("valueFormatter"),S=O.frag,T=S?lG(x?he({valueFormatter:x},S):S,b,p,w,o.get("useUTC"),g.get("textStyle")):O.text,$="item_"+u.name+"_"+c;this._showOrMove(g,function(){this._showTooltipContent(g,T,y,$,n.offsetX,n.offsetY,n.position,n.target,b)}),i({type:"showTip",dataIndexInside:c,dataIndex:d.getRawIndex(c),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(n,r,i){var o=this._renderMode==="html",a=Ke(r),s=a.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Ie(l)){var c=l;l={content:c,formatter:c},u=!0}u&&o&&l.content&&(l=Ue(l),l.content=Si(l.content));var f=[l],d=this._ecModel.getComponent(a.componentMainType,a.componentIndex);d&&f.push(d),f.push({formatter:l.content});var p=n.positionDefault,v=i0(f,this._tooltipModel,p?{position:p}:null),g=v.get("content"),m=Math.random()+"",y=new CE;this._showOrMove(v,function(){var b=Ue(v.get("formatterParams")||{});this._showTooltipContent(v,g,b,m,n.offsetX,n.offsetY,n.position,r,y)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(n,r,i,o,a,s,l,u,c){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var f=this._tooltipContent;f.setEnterable(n.get("enterable"));var d=n.get("formatter");l=l||n.get("position");var p=r,v=this._getNearestPoint([a,s],i,n.get("trigger"),n.get("borderColor")),g=v.color;if(d)if(Ie(d)){var m=n.ecModel.get("useUTC"),y=ve(i)?i[0]:i,b=y&&y.axisType&&y.axisType.indexOf("time")>=0;p=d,b&&(p=O_(y.axisValue,p,m)),p=a5(p,i,!0)}else if(Fe(d)){var O=Re(function(w,x){w===this._ticket&&(f.setContent(x,c,n,g,l),this._updatePosition(n,l,a,s,f,i,u))},this);this._ticket=o,p=d(i,o,O)}else p=d;f.setContent(p,c,n,g,l),f.show(n,g),this._updatePosition(n,l,a,s,f,i,u)}},e.prototype._getNearestPoint=function(n,r,i,o){if(i==="axis"||ve(r))return{color:o||(this._renderMode==="html"?"#fff":"none")};if(!ve(r))return{color:o||r.color||r.borderColor}},e.prototype._updatePosition=function(n,r,i,o,a,s,l){var u=this._api.getWidth(),c=this._api.getHeight();r=r||n.get("position");var f=a.getSize(),d=n.get("align"),p=n.get("verticalAlign"),v=l&&l.getBoundingRect().clone();if(l&&v.applyTransform(l.transform),Fe(r)&&(r=r([i,o],s,a.el,v,{viewSize:[u,c],contentSize:f.slice()})),ve(r))i=Me(r[0],u),o=Me(r[1],c);else if(Qe(r)){var g=r;g.width=f[0],g.height=f[1];var m=ir(g,{width:u,height:c});i=m.x,o=m.y,d=null,p=null}else if(Ie(r)&&l){var y=Nlt(r,v,f,n.get("borderWidth"));i=y[0],o=y[1]}else{var y=Rlt(i,o,a,u,c,d?null:20,p?null:20);i=y[0],o=y[1]}if(d&&(i-=_X(d)?f[0]/2:d==="right"?f[0]:0),p&&(o-=_X(p)?f[1]/2:p==="bottom"?f[1]:0),pde(n)){var y=klt(i,o,a,u,c);i=y[0],o=y[1]}a.moveTo(i,o)},e.prototype._updateContentNotChangedOnAxis=function(n,r){var i=this._lastDataByCoordSys,o=this._cbParamsList,a=!!i&&i.length===n.length;return a&&V(i,function(s,l){var u=s.dataByAxis||[],c=n[l]||{},f=c.dataByAxis||[];a=a&&u.length===f.length,a&&V(u,function(d,p){var v=f[p]||{},g=d.seriesDataIndices||[],m=v.seriesDataIndices||[];a=a&&d.value===v.value&&d.axisType===v.axisType&&d.axisId===v.axisId&&g.length===m.length,a&&V(g,function(y,b){var O=m[b];a=a&&y.seriesIndex===O.seriesIndex&&y.dataIndex===O.dataIndex}),o&&V(d.seriesDataIndices,function(y){var b=y.seriesIndex,O=r[b],w=o[b];O&&w&&w.data!==O.data&&(a=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!a},e.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},e.prototype.dispose=function(n,r){Ct.node||!r.getDom()||(ub(this,"_updatePosition"),this._tooltipContent.dispose(),Ik("itemTooltip",r))},e.type="tooltip",e}(hn);function i0(t,e,n){var r=e.ecModel,i;n?(i=new tn(n,r,r),i=new tn(e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof tn&&(a=a.get("tooltip",!0)),Ie(a)&&(a={formatter:a}),a&&(i=new tn(a,i,r)))}return i}function bX(t,e){return t.dispatchAction||Re(e.dispatchAction,e)}function Rlt(t,e,n,r,i,o,a){var s=n.getSize(),l=s[0],u=s[1];return o!=null&&(t+l+o+2>r?t-=l+o:t+=o),a!=null&&(e+u+a>i?e-=u+a:e+=a),[t,e]}function klt(t,e,n,r,i){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,r)-a,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function Nlt(t,e,n,r){var i=n[0],o=n[1],a=Math.ceil(Math.SQRT2*r)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+c/2-o/2;break;case"top":s=e.x+u/2-i/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-i/2,l=e.y+c+a;break;case"left":s=e.x-i-a,l=e.y+c/2-o/2;break;case"right":s=e.x+u+a,l=e.y+c/2-o/2}return[s,l]}function _X(t){return t==="center"||t==="middle"}function Llt(t,e,n){var r=N8(t).queryOptionMap,i=r.keys()[0];if(!(!i||i==="series")){var o=v_(e,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=Ke(u).tooltipConfig;if(c&&c.name===t.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:a.componentIndex,el:l}}}}function Blt(t){vt(I_),t.registerComponentModel(_lt),t.registerComponentView(Dlt),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},zn),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},zn)}var Vlt=["rect","polygon","keep","clear"];function zlt(t,e){var n=nn(t?t.brush:[]);if(n.length){var r=[];V(n,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(r=r.concat(u))});var i=t&&t.toolbox;ve(i)&&(i=i[0]),i||(i={feature:{}},t.toolbox=[i]);var o=i.feature||(i.feature={}),a=o.brush||(o.brush={}),s=a.type||(a.type=[]);s.push.apply(s,r),Flt(s),e&&!s.length&&s.push.apply(s,Vlt)}}function Flt(t){var e={};V(t,function(n){e[n]=1}),t.length=0,V(e,function(n,r){t.push(r)})}var OX=V;function wX(t){if(t){for(var e in t)if(t.hasOwnProperty(e))return!0}}function Bk(t,e,n){var r={};return OX(e,function(o){var a=r[o]=i();OX(t[o],function(s,l){if(xr.isValidType(l)){var u={type:l,visual:s};n&&n(u,o),a[l]=new xr(u),l==="opacity"&&(u=Ue(u),u.type="colorAlpha",a.__hidden.__alphaForOpacity=new xr(u))}})}),r;function i(){var o=function(){};o.prototype.__hidden=o.prototype;var a=new o;return a}}function yde(t,e,n){var r;V(n,function(i){e.hasOwnProperty(i)&&wX(e[i])&&(r=!0)}),r&&V(n,function(i){e.hasOwnProperty(i)&&wX(e[i])?t[i]=Ue(e[i]):delete t[i]})}function Wlt(t,e,n,r,i,o){var a={};V(t,function(f){var d=xr.prepareVisualTypes(e[f]);a[f]=d});var s;function l(f){return g5(n,s,f)}function u(f,d){kle(n,s,f,d)}n.each(c);function c(f,d){s=f;var p=n.getRawDataItem(s);if(!(p&&p.visualMap===!1))for(var v=r.call(i,f),g=e[v],m=a[v],y=0,b=m.length;y<b;y++){var O=m[y];g[O]&&g[O].applyVisual(f,l,u)}}}function Qlt(t,e,n,r){var i={};return V(t,function(o){var a=xr.prepareVisualTypes(e[o]);i[o]=a}),{progress:function(a,s){var l;r!=null&&(l=s.getDimensionIndex(r));function u(x){return g5(s,f,x)}function c(x,S){kle(s,f,x,S)}for(var f,d=s.getStore();(f=a.next())!=null;){var p=s.getRawDataItem(f);if(!(p&&p.visualMap===!1))for(var v=r!=null?d.get(l,f):f,g=n(v),m=e[g],y=i[g],b=0,O=y.length;b<O;b++){var w=y[b];m[w]&&m[w].applyVisual(v,u,c)}}}}}function Hlt(t){var e=t.brushType,n={point:function(r){return xX[e].point(r,n,t)},rect:function(r){return xX[e].rect(r,n,t)}};return n}var xX={lineX:SX(0),lineY:SX(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&ad(n.range,t[0],t[1])},rect:function(t,e,n){var r=n.range;if(!t||r.length<=1)return!1;var i=t.x,o=t.y,a=t.width,s=t.height,l=r[0];if(ad(r,i,o)||ad(r,i+a,o)||ad(r,i,o+s)||ad(r,i+a,o+s)||at.create(t).contain(l[0],l[1])||$0(i,o,i+a,o,r)||$0(i,o,i,o+s,r)||$0(i+a,o,i+a,o+s,r)||$0(i,o+s,i+a,o+s,r))return!0}}};function SX(t){var e=["x","y"],n=["width","height"];return{point:function(r,i,o){if(r){var a=o.range,s=r[t];return o0(s,a)}},rect:function(r,i,o){if(r){var a=o.range,s=[r[e[t]],r[e[t]]+r[n[t]]];return s[1]<s[0]&&s.reverse(),o0(s[0],a)||o0(s[1],a)||o0(a[0],s)||o0(a[1],s)}}}}function o0(t,e){return e[0]<=t&&t<=e[1]}var CX=["inBrush","outOfBrush"],WM="__ecBrushSelect",Vk="__ecInBrushSelectEvent";function bde(t){t.eachComponent({mainType:"brush"},function(e){var n=e.brushTargetManager=new E3(e.option,t);n.setInputRanges(e.areas,t)})}function Glt(t,e,n){var r=[],i,o;t.eachComponent({mainType:"brush"},function(a){n&&n.type==="takeGlobalCursor"&&a.setBrushOption(n.key==="brush"?n.brushOption:{brushType:!1})}),bde(t),t.eachComponent({mainType:"brush"},function(a,s){var l={brushId:a.id,brushIndex:s,brushName:a.name,areas:Ue(a.areas),selected:[]};r.push(l);var u=a.option,c=u.brushLink,f=[],d=[],p=[],v=!1;s||(i=u.throttleType,o=u.throttleDelay);var g=ye(a.areas,function(x){var S=Xlt[x.brushType],T=Ge({boundingRect:S?S(x):void 0},x);return T.selectors=Hlt(T),T}),m=Bk(a.option,CX,function(x){x.mappingMethod="fixed"});ve(c)&&V(c,function(x){f[x]=1});function y(x){return c==="all"||!!f[x]}function b(x){return!!x.length}t.eachSeries(function(x,S){var T=p[S]=[];x.subType==="parallel"?O(x,S):w(x,S,T)});function O(x,S){var T=x.coordinateSystem;v=v||T.hasAxisBrushed(),y(S)&&T.eachActiveState(x.getData(),function($,A){$==="active"&&(d[A]=1)})}function w(x,S,T){if(!(!x.brushSelector||Zlt(a,S))&&(V(g,function(A){a.brushTargetManager.controlSeries(A,x,t)&&T.push(A),v=v||b(T)}),y(S)&&b(T))){var $=x.getData();$.each(function(A){TX(x,T,$,A)&&(d[A]=1)})}}t.eachSeries(function(x,S){var T={seriesId:x.id,seriesIndex:S,seriesName:x.name,dataIndex:[]};l.selected.push(T);var $=p[S],A=x.getData(),P=y(S)?function(M){return d[M]?(T.dataIndex.push(A.getRawIndex(M)),"inBrush"):"outOfBrush"}:function(M){return TX(x,$,A,M)?(T.dataIndex.push(A.getRawIndex(M)),"inBrush"):"outOfBrush"};(y(S)?v:b($))&&Wlt(CX,m,A,P)})}),jlt(e,i,o,r,n)}function jlt(t,e,n,r,i){if(i){var o=t.getZr();if(!o[Vk]){o[WM]||(o[WM]=Ult);var a=Vg(o,WM,n,e);a(t,r)}}}function Ult(t,e){if(!t.isDisposed()){var n=t.getZr();n[Vk]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[Vk]=!1}}function TX(t,e,n,r){for(var i=0,o=e.length;i<o;i++){var a=e[i];if(t.brushSelector(r,n,a.selectors,a))return!0}}function Zlt(t,e){var n=t.option.seriesIndex;return n!=null&&n!=="all"&&(ve(n)?st(n,e)<0:e!==n)}var Xlt={rect:function(t){return PX(t.range)},polygon:function(t){for(var e,n=t.range,r=0,i=n.length;r<i;r++){e=e||[[1/0,-1/0],[1/0,-1/0]];var o=n[r];o[0]<e[0][0]&&(e[0][0]=o[0]),o[0]>e[0][1]&&(e[0][1]=o[0]),o[1]<e[1][0]&&(e[1][0]=o[1]),o[1]>e[1][1]&&(e[1][1]=o[1])}return e&&PX(e)}};function PX(t){return new at(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var Ylt=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r){this.ecModel=n,this.api=r,this.model,(this._brushController=new o3(r.getZr())).on("brush",Re(this._onBrush,this)).mount()},e.prototype.render=function(n,r,i,o){this.model=n,this._updateController(n,r,i,o)},e.prototype.updateTransform=function(n,r,i,o){bde(r),this._updateController(n,r,i,o)},e.prototype.updateVisual=function(n,r,i,o){this.updateTransform(n,r,i,o)},e.prototype.updateView=function(n,r,i,o){this._updateController(n,r,i,o)},e.prototype._updateController=function(n,r,i,o){(!o||o.$from!==n.id)&&this._brushController.setPanels(n.brushTargetManager.makePanelOpts(i)).enableBrush(n.brushOption).updateCovers(n.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(n){var r=this.model.id,i=this.model.brushTargetManager.setOutputRanges(n.areas,this.ecModel);(!n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:r,areas:Ue(i),$from:r}),n.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:Ue(i),$from:r})},e.type="brush",e}(hn),qlt="#ddd",Klt=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return e.prototype.optionUpdated=function(n,r){var i=this.option;!r&&yde(i,n,["inBrush","outOfBrush"]);var o=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:qlt},o.hasOwnProperty("liftZ")||(o.liftZ=5)},e.prototype.setAreas=function(n){process.env.NODE_ENV!=="production"&&(je(ve(n)),V(n,function(r){je(r.brushType,"Illegal areas")})),n&&(this.areas=ye(n,function(r){return $X(this.option,r)},this))},e.prototype.setBrushOption=function(n){this.brushOption=$X(this.option,n),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(pt);function $X(t,e){return it({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new tn(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var Jlt=["rect","polygon","lineX","lineY","keep","clear"],eut=function(t){ie(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(n,r,i){var o,a,s;r.eachComponent({mainType:"brush"},function(l){o=l.brushType,a=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=o,this._brushMode=a,V(n.get("type",!0),function(l){n.setIconStatus(l,(l==="keep"?a==="multiple":l==="clear"?s:l===o)?"emphasis":"normal")})},e.prototype.updateView=function(n,r,i){this.render(n,r,i)},e.prototype.getIcons=function(){var n=this.model,r=n.get("icon",!0),i={};return V(n.get("type",!0),function(o){r[o]&&(i[o]=r[o])}),i},e.prototype.onclick=function(n,r,i){var o=this._brushType,a=this._brushMode;i==="clear"?(r.dispatchAction({type:"axisAreaSelect",intervals:[]}),r.dispatchAction({type:"brush",command:"clear",areas:[]})):r.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?o:o===i?!1:i,brushMode:i==="keep"?a==="multiple"?"single":"multiple":a}})},e.getDefaultOption=function(n){var r={show:!0,type:Jlt.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:n.getLocaleModel().get(["toolbox","brush","title"])};return r},e}(fa);function tut(t){t.registerComponentView(Ylt),t.registerComponentModel(Klt),t.registerPreprocessor(zlt),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,Glt),t.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(e,n){n.eachComponent({mainType:"brush",query:e},function(r){r.setAreas(e.areas)})}),t.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},zn),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},zn),zp("brush",eut)}var nut=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(pt),rut=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.render=function(n,r,i){if(this.group.removeAll(),!!n.get("show")){var o=this.group,a=n.getModel("textStyle"),s=n.getModel("subtextStyle"),l=n.get("textAlign"),u=Je(n.get("textBaseline"),n.get("textVerticalAlign")),c=new Tt({style:un(a,{text:n.get("text"),fill:a.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=n.get("subtext"),p=new Tt({style:un(s,{text:d,fill:s.getTextColor(),y:f.height+n.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),v=n.get("link"),g=n.get("sublink"),m=n.get("triggerEvent",!0);c.silent=!v&&!m,p.silent=!g&&!m,v&&c.on("click",function(){HS(v,"_"+n.get("target"))}),g&&p.on("click",function(){HS(g,"_"+n.get("subtarget"))}),Ke(c).eventData=Ke(p).eventData=m?{componentType:"title",componentIndex:n.componentIndex}:null,o.add(c),d&&o.add(p);var y=o.getBoundingRect(),b=n.getBoxLayoutParams();b.width=y.width,b.height=y.height;var O=ir(b,{width:i.getWidth(),height:i.getHeight()},n.get("padding"));l||(l=n.get("left")||n.get("right"),l==="middle"&&(l="center"),l==="right"?O.x+=O.width:l==="center"&&(O.x+=O.width/2)),u||(u=n.get("top")||n.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?O.y+=O.height:u==="middle"&&(O.y+=O.height/2),u=u||"top"),o.x=O.x,o.y=O.y,o.markRedraw();var w={align:l,verticalAlign:u};c.setStyle(w),p.setStyle(w),y=o.getBoundingRect();var x=O.margin,S=n.getItemStyle(["color","opacity"]);S.fill=n.get("backgroundColor");var T=new Pt({shape:{x:y.x-x[3],y:y.y-x[0],width:y.width+x[1]+x[3],height:y.height+x[0]+x[2],r:n.get("borderRadius")},style:S,subPixelOptimize:!0,silent:!0});o.add(T)}},e.type="title",e}(hn);function iut(t){t.registerComponentModel(nut),t.registerComponentView(rut)}var AX=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return e.prototype.init=function(n,r,i){this.mergeDefaultAndTheme(n,i),this._initData()},e.prototype.mergeOption=function(n){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(n){n==null&&(n=this.option.currentIndex);var r=this._data.count();this.option.loop?n=(n%r+r)%r:(n>=r&&(n=r-1),n<0&&(n=0)),this.option.currentIndex=n},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(n){this.option.autoPlay=!!n},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var n=this.option,r=n.data||[],i=n.axisType,o=this._names=[],a;i==="category"?(a=[],V(r,function(u,c){var f=ur($g(u),""),d;Qe(u)?(d=Ue(u),d.value=c):d=c,a.push(d),o.push(f)})):a=r;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new fi([{name:"value",type:s}],this);l.initData(a,o)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(pt),_de=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="timeline.slider",e.defaultOption=Kc(AX.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(AX);Qn(_de,NP.prototype);var out=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="timeline",e}(hn),aut=function(t){ie(e,t);function e(n,r,i,o){var a=t.call(this,n,r,i)||this;return a.type=o||"value",a}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(ka),QM=Math.PI,EX=$t(),sut=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(n,r){this.api=r},e.prototype.render=function(n,r,i){if(this.model=n,this.api=i,this.ecModel=r,this.group.removeAll(),n.get("show",!0)){var o=this._layout(n,i),a=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(o,n);n.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return Tr("nameValue",{noName:!0,value:c})},V(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](o,a,l,n)},this),this._renderAxisLabel(o,s,l,n),this._position(o,n)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(n,r){var i=n.get(["label","position"]),o=n.get("orient"),a=uut(n,r),s;i==null||i==="auto"?s=o==="horizontal"?a.y+a.height/2<r.getHeight()/2?"-":"+":a.x+a.width/2<r.getWidth()/2?"+":"-":Ie(i)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[o][i]:s=i;var l={horizontal:"center",vertical:s>=0||s==="+"?"left":"right"},u={horizontal:s>=0||s==="+"?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:QM/2},f=o==="vertical"?a.height:a.width,d=n.getModel("controlStyle"),p=d.get("show",!0),v=p?d.get("itemSize"):0,g=p?d.get("itemGap"):0,m=v+g,y=n.get(["label","rotate"])||0;y=y*QM/180;var b,O,w,x=d.get("position",!0),S=p&&d.get("showPlayBtn",!0),T=p&&d.get("showPrevBtn",!0),$=p&&d.get("showNextBtn",!0),A=0,P=f;x==="left"||x==="bottom"?(S&&(b=[0,0],A+=m),T&&(O=[A,0],A+=m),$&&(w=[P-v,0],P-=m)):(S&&(b=[P-v,0],P-=m),T&&(O=[0,0],A+=m),$&&(w=[P-v,0],P-=m));var M=[A,P];return n.get("inverse")&&M.reverse(),{viewRect:a,mainLength:f,orient:o,rotation:c[o],labelRotation:y,labelPosOpt:s,labelAlign:n.get(["label","align"])||l[o],labelBaseline:n.get(["label","verticalAlign"])||n.get(["label","baseline"])||u[o],playPosition:b,prevBtnPosition:O,nextBtnPosition:w,axisExtent:M,controlSize:v,controlGap:g}},e.prototype._position=function(n,r){var i=this._mainGroup,o=this._labelGroup,a=n.viewRect;if(n.orient==="vertical"){var s=ao(),l=a.x,u=a.y+a.height;us(s,s,[-l,-u]),Yc(s,s,-QM/2),us(s,s,[l,u]),a=a.clone(),a.applyTransform(s)}var c=b(a),f=b(i.getBoundingRect()),d=b(o.getBoundingRect()),p=[i.x,i.y],v=[o.x,o.y];v[0]=p[0]=c[0][0];var g=n.labelPosOpt;if(g==null||Ie(g)){var m=g==="+"?0:1;O(p,f,c,1,m),O(v,d,c,1,1-m)}else{var m=g>=0?0:1;O(p,f,c,1,m),v[1]=p[1]+g}i.setPosition(p),o.setPosition(v),i.rotation=o.rotation=n.rotation,y(i),y(o);function y(w){w.originX=c[0][0]-w.x,w.originY=c[1][0]-w.y}function b(w){return[[w.x,w.x+w.width],[w.y,w.y+w.height]]}function O(w,x,S,T,$){w[T]+=S[T][$]-x[T][$]}},e.prototype._createAxis=function(n,r){var i=r.getData(),o=r.get("axisType"),a=lut(r,o);a.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");a.setExtent(s[0],s[1]),a.calcNiceTicks();var l=new aut("value",a,n.axisExtent,o);return l.model=r,l},e.prototype._createGroup=function(n){var r=this[n]=new qe;return this.group.add(r),r},e.prototype._renderAxisLine=function(n,r,i,o){var a=i.getExtent();if(o.get(["lineStyle","show"])){var s=new _r({shape:{x1:a[0],y1:0,x2:a[1],y2:0},style:he({lineCap:"round"},o.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new _r({shape:{x1:a[0],x2:this._currentPointer?this._currentPointer.x:a[0],y1:0,y2:0},style:Ge({lineCap:"round",lineWidth:s.style.lineWidth},o.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(l)}},e.prototype._renderAxisTick=function(n,r,i,o){var a=this,s=o.getData(),l=i.scale.getTicks();this._tickSymbols=[],V(l,function(u){var c=i.dataToCoord(u.value),f=s.getItemModel(u.value),d=f.getModel("itemStyle"),p=f.getModel(["emphasis","itemStyle"]),v=f.getModel(["progress","itemStyle"]),g={x:c,y:0,onclick:Re(a._changeTimeline,a,u.value)},m=MX(f,d,r,g);m.ensureState("emphasis").style=p.getItemStyle(),m.ensureState("progress").style=v.getItemStyle(),Oc(m);var y=Ke(m);f.get("tooltip")?(y.dataIndex=u.value,y.dataModel=o):y.dataIndex=y.dataModel=null,a._tickSymbols.push(m)})},e.prototype._renderAxisLabel=function(n,r,i,o){var a=this,s=i.getLabelModel();if(s.get("show")){var l=o.getData(),u=i.getViewLabels();this._tickLabels=[],V(u,function(c){var f=c.tickValue,d=l.getItemModel(f),p=d.getModel("label"),v=d.getModel(["emphasis","label"]),g=d.getModel(["progress","label"]),m=i.dataToCoord(c.tickValue),y=new Tt({x:m,y:0,rotation:n.labelRotation-n.rotation,onclick:Re(a._changeTimeline,a,f),silent:!1,style:un(p,{text:c.formattedLabel,align:n.labelAlign,verticalAlign:n.labelBaseline})});y.ensureState("emphasis").style=un(v),y.ensureState("progress").style=un(g),r.add(y),Oc(y),EX(y).dataIndex=f,a._tickLabels.push(y)})}},e.prototype._renderControl=function(n,r,i,o){var a=n.controlSize,s=n.rotation,l=o.getModel("controlStyle").getItemStyle(),u=o.getModel(["emphasis","controlStyle"]).getItemStyle(),c=o.getPlayState(),f=o.get("inverse",!0);d(n.nextBtnPosition,"next",Re(this._changeTimeline,this,f?"-":"+")),d(n.prevBtnPosition,"prev",Re(this._changeTimeline,this,f?"+":"-")),d(n.playPosition,c?"stop":"play",Re(this._handlePlayClick,this,!c),!0);function d(p,v,g,m){if(p){var y=cs(Je(o.get(["controlStyle",v+"BtnSize"]),a),a),b=[0,-y/2,y,y],O=cut(o,v+"Icon",b,{x:p[0],y:p[1],originX:a/2,originY:0,rotation:m?-s:0,rectHover:!0,style:l,onclick:g});O.ensureState("emphasis").style=u,r.add(O),Oc(O)}}},e.prototype._renderCurrentPointer=function(n,r,i,o){var a=o.getData(),s=o.getCurrentIndex(),l=a.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=Re(u._handlePointerDrag,u),f.ondragend=Re(u._handlePointerDragend,u),IX(f,u._progressLine,s,i,o,!0)},onUpdate:function(f){IX(f,u._progressLine,s,i,o)}};this._currentPointer=MX(l,l,this._mainGroup,{},this._currentPointer,c)},e.prototype._handlePlayClick=function(n){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:n,from:this.uid})},e.prototype._handlePointerDrag=function(n,r,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},e.prototype._handlePointerDragend=function(n){this._pointerChangeTimeline([n.offsetX,n.offsetY],!0)},e.prototype._pointerChangeTimeline=function(n,r){var i=this._toAxisCoord(n)[0],o=this._axis,a=Ao(o.getExtent().slice());i>a[1]&&(i=a[1]),i<a[0]&&(i=a[0]),this._currentPointer.x=i,this._currentPointer.markRedraw();var s=this._progressLine;s&&(s.shape.x2=i,s.dirty());var l=this._findNearestTick(i),u=this.model;(r||l!==u.getCurrentIndex()&&u.get("realtime"))&&this._changeTimeline(l)},e.prototype._doPlayStop=function(){var n=this;this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(function(){var r=n.model;n._changeTimeline(r.getCurrentIndex()+(r.get("rewind",!0)?-1:1))},this.model.get("playInterval")))},e.prototype._toAxisCoord=function(n){var r=this._mainGroup.getLocalTransform();return is(n,r,!0)},e.prototype._findNearestTick=function(n){var r=this.model.getData(),i=1/0,o,a=this._axis;return r.each(["value"],function(s,l){var u=a.dataToCoord(s),c=Math.abs(u-n);c<i&&(i=c,o=l)}),o},e.prototype._clearTimer=function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},e.prototype._changeTimeline=function(n){var r=this.model.getCurrentIndex();n==="+"?n=r+1:n==="-"&&(n=r-1),this.api.dispatchAction({type:"timelineChange",currentIndex:n,from:this.uid})},e.prototype._updateTicksStatus=function(){var n=this.model.getCurrentIndex(),r=this._tickSymbols,i=this._tickLabels;if(r)for(var o=0;o<r.length;o++)r&&r[o]&&r[o].toggleState("progress",o<n);if(i)for(var o=0;o<i.length;o++)i&&i[o]&&i[o].toggleState("progress",EX(i[o]).dataIndex<=n)},e.type="timeline.slider",e}(out);function lut(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new HP({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new M5({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new lu}}function uut(t,e){return ir(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}function cut(t,e,n,r){var i=r.style,o=Ig(t.get(["controlStyle",e]),r||{},new at(n[0],n[1],n[2],n[3]));return i&&o.setStyle(i),o}function MX(t,e,n,r,i,o){var a=e.get("color");if(i)i.setColor(a),n.add(i),o&&o.onUpdate(i);else{var s=t.get("symbol");i=Yn(s,-1,-1,2,2,a),i.setStyle("strokeNoScale",!0),n.add(i),o&&o.onCreate(i)}var l=e.getItemStyle(["color"]);i.setStyle(l),r=it({rectHover:!0,z2:100},r,!0);var u=zg(t.get("symbolSize"));r.scaleX=u[0]/2,r.scaleY=u[1]/2;var c=Dh(t.get("symbolOffset"),u);c&&(r.x=(r.x||0)+c[0],r.y=(r.y||0)+c[1]);var f=t.get("symbolRotate");return r.rotation=(f||0)*Math.PI/180||0,i.attr(r),i.updateTransform(),i}function IX(t,e,n,r,i,o){if(!t.dragging){var a=i.getModel("checkpointStyle"),s=r.dataToCoord(i.getData().get("value",n));if(o||!a.get("animation",!0))t.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};t.stopAnimation(null,!0),t.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}function fut(t){t.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,n,r){var i=n.getComponent("timeline");return i&&e.currentIndex!=null&&(i.setCurrentIndex(e.currentIndex),!i.get("loop",!0)&&i.isIndexMax()&&i.getPlayState()&&(i.setPlayState(!1),r.dispatchAction({type:"timelinePlayChange",playState:!1,from:e.from}))),n.resetOption("timeline",{replaceMerge:i.get("replaceMerge",!0)}),Ge({currentIndex:i.option.currentIndex},e)}),t.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,n){var r=n.getComponent("timeline");r&&e.playState!=null&&r.setPlayState(e.playState)})}function dut(t){var e=t&&t.timeline;ve(e)||(e=e?[e]:[]),V(e,function(n){n&&hut(n)})}function hut(t){var e=t.type,n={number:"value",time:"time"};if(n[e]&&(t.axisType=n[e],delete t.type),DX(t),ud(t,"controlPosition")){var r=t.controlStyle||(t.controlStyle={});ud(r,"position")||(r.position=t.controlPosition),r.position==="none"&&!ud(r,"show")&&(r.show=!1,delete r.position),delete t.controlPosition}V(t.data||[],function(i){Qe(i)&&!ve(i)&&(!ud(i,"value")&&ud(i,"name")&&(i.value=i.name),DX(i))})}function DX(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),r=t.label||t.label||{},i=r.normal||(r.normal={}),o={normal:1,emphasis:1};V(r,function(a,s){!o[s]&&!ud(i,s)&&(i[s]=a)}),n.label&&!ud(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function ud(t,e){return t.hasOwnProperty(e)}function put(t){t.registerComponentModel(_de),t.registerComponentView(sut),t.registerSubTypeDefaulter("timeline",function(){return"slider"}),fut(t),t.registerPreprocessor(dut)}function D3(t,e){if(!t)return!1;for(var n=ve(t)?t:[t],r=0;r<n.length;r++)if(n[r]&&n[r][e])return!0;return!1}function ow(t){sh(t,"label",["show"])}var aw=$t(),cu=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.createdBySelf=!1,n}return e.prototype.init=function(n,r,i){if(process.env.NODE_ENV!=="production"&&this.type==="marker")throw new Error("Marker component is abstract component. Use markLine, markPoint, markArea instead.");this.mergeDefaultAndTheme(n,i),this._mergeOption(n,i,!1,!0)},e.prototype.isAnimationEnabled=function(){if(Ct.node)return!1;var n=this.__hostSeries;return this.getShallow("animation")&&n&&n.isAnimationEnabled()},e.prototype.mergeOption=function(n,r){this._mergeOption(n,r,!1,!1)},e.prototype._mergeOption=function(n,r,i,o){var a=this.mainType;i||r.eachSeries(function(s){var l=s.get(this.mainType,!0),u=aw(s)[a];if(!l||!l.data){aw(s)[a]=null;return}u?u._mergeOption(l,r,!0):(o&&ow(l),V(l.data,function(c){c instanceof Array?(ow(c[0]),ow(c[1])):ow(c)}),u=this.createMarkerModelFromSeries(l,this,r),he(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),aw(s)[a]=u},this)},e.prototype.formatTooltip=function(n,r,i){var o=this.getData(),a=this.getRawValue(n),s=o.getName(n);return Tr("section",{header:this.name,blocks:[Tr("nameValue",{name:s,value:a,noName:!s,noValue:a==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(n){this._data=n},e.prototype.getDataParams=function(n,r){var i=NP.prototype.getDataParams.call(this,n,r),o=this.__hostSeries;return o&&(i.seriesId=o.id,i.seriesName=o.name,i.seriesType=o.subType),i},e.getMarkerModelFromSeries=function(n,r){return aw(n)[r]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(pt);Qn(cu,NP.prototype);var vut=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.createMarkerModelFromSeries=function(n,r,i){return new e(n,r,i)},e.type="markPoint",e.defaultOption={z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{show:!0,position:"inside"},itemStyle:{borderWidth:2},emphasis:{label:{show:!0}}},e}(cu);function zk(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function gut(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function sw(t,e,n,r,i,o){var a=[],s=su(e,r),l=s?e.getCalculationInfo("stackResultDimension"):r,u=R3(e,l,t),c=e.indicesOfNearest(l,u)[0];a[i]=e.get(n,c),a[o]=e.get(l,c);var f=e.get(r,c),d=Ya(e.get(r,c));return d=Math.min(d,20),d>=0&&(a[o]=+a[o].toFixed(d)),[a,f]}var HM={min:nt(sw,"min"),max:nt(sw,"max"),average:nt(sw,"average"),median:nt(sw,"median")};function xb(t,e){if(e){var n=t.getData(),r=t.coordinateSystem,i=r&&r.dimensions;if(!gut(e)&&!ve(e.coord)&&ve(i)){var o=Ode(e,n,r,t);if(e=Ue(e),e.type&&HM[e.type]&&o.baseAxis&&o.valueAxis){var a=st(i,o.baseAxis.dim),s=st(i,o.valueAxis.dim),l=HM[e.type](n,o.baseDataDim,o.valueDataDim,a,s);e.coord=l[0],e.value=l[1]}else e.coord=[e.xAxis!=null?e.xAxis:e.radiusAxis,e.yAxis!=null?e.yAxis:e.angleAxis]}if(e.coord==null||!ve(i))e.coord=[];else for(var u=e.coord,c=0;c<2;c++)HM[u[c]]&&(u[c]=R3(n,n.mapDimension(i[c]),u[c]));return e}}function Ode(t,e,n,r){var i={};return t.valueIndex!=null||t.valueDim!=null?(i.valueDataDim=t.valueIndex!=null?e.getDimension(t.valueIndex):t.valueDim,i.valueAxis=n.getAxis(mut(r,i.valueDataDim)),i.baseAxis=n.getOtherAxis(i.valueAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim)):(i.baseAxis=r.getBaseAxis(),i.valueAxis=n.getOtherAxis(i.baseAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim),i.valueDataDim=e.mapDimension(i.valueAxis.dim)),i}function mut(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}function Sb(t,e){return t&&t.containData&&e.coord&&!zk(e)?t.containData(e.coord):!0}function yut(t,e,n){return t&&t.containZone&&e.coord&&n.coord&&!zk(e)&&!zk(n)?t.containZone(e.coord,n.coord):!0}function wde(t,e){return t?function(n,r,i,o){var a=o<2?n.coord&&n.coord[o]:n.value;return xc(a,e[o])}:function(n,r,i,o){return xc(n.value,e[o])}}function R3(t,e,n){if(n==="average"){var r=0,i=0;return t.each(e,function(o,a){isNaN(o)||(r+=o,i++)}),r/i}else return n==="median"?t.getMedian(e):t.getDataExtent(e)[n==="max"?1:0]}var GM=$t(),k3=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.init=function(){this.markerGroupMap=Be()},e.prototype.render=function(n,r,i){var o=this,a=this.markerGroupMap;a.each(function(s){GM(s).keep=!1}),r.eachSeries(function(s){var l=cu.getMarkerModelFromSeries(s,o.type);l&&o.renderSeries(s,l,r,i)}),a.each(function(s){!GM(s).keep&&o.group.remove(s.group)})},e.prototype.markKeep=function(n){GM(n).keep=!0},e.prototype.toggleBlurSeries=function(n,r){var i=this;V(n,function(o){var a=cu.getMarkerModelFromSeries(o,i.type);if(a){var s=a.getData();s.eachItemGraphicEl(function(l){l&&(r?ise(l):Q8(l))})}})},e.type="marker",e}(hn);function RX(t,e,n){var r=e.coordinateSystem;t.each(function(i){var o=t.getItemModel(i),a,s=Me(o.get("x"),n.getWidth()),l=Me(o.get("y"),n.getHeight());if(!isNaN(s)&&!isNaN(l))a=[s,l];else if(e.getMarkerPosition)a=e.getMarkerPosition(t.getValues(t.dimensions,i));else if(r){var u=t.get(r.dimensions[0],i),c=t.get(r.dimensions[1],i);a=r.dataToPoint([u,c])}isNaN(s)||(a[0]=s),isNaN(l)||(a[1]=l),t.setItemLayout(i,a)})}var but=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.updateTransform=function(n,r,i){r.eachSeries(function(o){var a=cu.getMarkerModelFromSeries(o,"markPoint");a&&(RX(a.getData(),o,i),this.markerGroupMap.get(o.id).updateLayout())},this)},e.prototype.renderSeries=function(n,r,i,o){var a=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new C_),f=_ut(a,n,r);r.setData(f),RX(r.getData(),n,o),f.each(function(d){var p=f.getItemModel(d),v=p.getShallow("symbol"),g=p.getShallow("symbolSize"),m=p.getShallow("symbolRotate"),y=p.getShallow("symbolOffset"),b=p.getShallow("symbolKeepAspect");if(Fe(v)||Fe(g)||Fe(m)||Fe(y)){var O=r.getRawValue(d),w=r.getDataParams(d);Fe(v)&&(v=v(O,w)),Fe(g)&&(g=g(O,w)),Fe(m)&&(m=m(O,w)),Fe(y)&&(y=y(O,w))}var x=p.getModel("itemStyle").getItemStyle(),S=w_(l,"color");x.fill||(x.fill=S),f.setItemVisual(d,{symbol:v,symbolSize:g,symbolRotate:m,symbolOffset:y,symbolKeepAspect:b,style:x})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(d){d.traverse(function(p){Ke(p).dataModel=r})}),this.markKeep(c),c.group.silent=r.get("silent")||n.get("silent")},e.type="markPoint",e}(k3);function _ut(t,e,n){var r;t?r=ye(t&&t.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return he(he({},l),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var i=new fi(r,n),o=ye(n.get("data"),nt(xb,e));t&&(o=Yt(o,nt(Sb,t)));var a=wde(!!t,r);return i.initData(o,null,a),i}function Out(t){t.registerComponentModel(vut),t.registerComponentView(but),t.registerPreprocessor(function(e){D3(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var wut=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.createMarkerModelFromSeries=function(n,r,i){return new e(n,r,i)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(cu),lw=$t(),xut=function(t,e,n,r){var i=t.getData(),o;if(ve(r))o=r;else{var a=r.type;if(a==="min"||a==="max"||a==="average"||a==="median"||r.xAxis!=null||r.yAxis!=null){var s=void 0,l=void 0;if(r.yAxis!=null||r.xAxis!=null)s=e.getAxis(r.yAxis!=null?"y":"x"),l=Zn(r.yAxis,r.xAxis);else{var u=Ode(r,i,e,t);s=u.valueAxis;var c=$5(i,u.valueDataDim);l=R3(i,c,a)}var f=s.dim==="x"?0:1,d=1-f,p=Ue(r),v={coord:[]};p.type=null,p.coord=[],p.coord[d]=-1/0,v.coord[d]=1/0;var g=n.get("precision");g>=0&&It(l)&&(l=+l.toFixed(Math.min(g,20))),p.coord[f]=v.coord[f]=l,o=[p,v,{type:a,valueIndex:r.valueIndex,value:l}]}else process.env.NODE_ENV!=="production"&&ya("Invalid markLine data."),o=[]}var m=[xb(t,o[0]),xb(t,o[1]),he({},o[2])];return m[2].type=m[2].type||null,it(m[2],m[0]),it(m[2],m[1]),m};function OC(t){return!isNaN(t)&&!isFinite(t)}function kX(t,e,n,r){var i=1-t,o=r.dimensions[t];return OC(e[i])&&OC(n[i])&&e[t]===n[t]&&r.getAxis(o).containData(e[t])}function Sut(t,e){if(t.type==="cartesian2d"){var n=e[0].coord,r=e[1].coord;if(n&&r&&(kX(1,n,r,t)||kX(0,n,r,t)))return!0}return Sb(t,e[0])&&Sb(t,e[1])}function jM(t,e,n,r,i){var o=r.coordinateSystem,a=t.getItemModel(e),s,l=Me(a.get("x"),i.getWidth()),u=Me(a.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition)s=r.getMarkerPosition(t.getValues(t.dimensions,e));else{var c=o.dimensions,f=t.get(c[0],e),d=t.get(c[1],e);s=o.dataToPoint([f,d])}if(Rh(o,"cartesian2d")){var p=o.getAxis("x"),v=o.getAxis("y"),c=o.dimensions;OC(t.get(c[0],e))?s[0]=p.toGlobalCoord(p.getExtent()[n?0:1]):OC(t.get(c[1],e))&&(s[1]=v.toGlobalCoord(v.getExtent()[n?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}t.setItemLayout(e,s)}var Cut=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.updateTransform=function(n,r,i){r.eachSeries(function(o){var a=cu.getMarkerModelFromSeries(o,"markLine");if(a){var s=a.getData(),l=lw(a).from,u=lw(a).to;l.each(function(c){jM(l,c,!0,o,i),jM(u,c,!1,o,i)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(o.id).updateLayout()}},this)},e.prototype.renderSeries=function(n,r,i,o){var a=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new i3);this.group.add(c.group);var f=Tut(a,n,r),d=f.from,p=f.to,v=f.line;lw(r).from=d,lw(r).to=p,r.setData(v);var g=r.get("symbol"),m=r.get("symbolSize"),y=r.get("symbolRotate"),b=r.get("symbolOffset");ve(g)||(g=[g,g]),ve(m)||(m=[m,m]),ve(y)||(y=[y,y]),ve(b)||(b=[b,b]),f.from.each(function(w){O(d,w,!0),O(p,w,!1)}),v.each(function(w){var x=v.getItemModel(w).getModel("lineStyle").getLineStyle();v.setItemLayout(w,[d.getItemLayout(w),p.getItemLayout(w)]),x.stroke==null&&(x.stroke=d.getItemVisual(w,"style").fill),v.setItemVisual(w,{fromSymbolKeepAspect:d.getItemVisual(w,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(w,"symbolOffset"),fromSymbolRotate:d.getItemVisual(w,"symbolRotate"),fromSymbolSize:d.getItemVisual(w,"symbolSize"),fromSymbol:d.getItemVisual(w,"symbol"),toSymbolKeepAspect:p.getItemVisual(w,"symbolKeepAspect"),toSymbolOffset:p.getItemVisual(w,"symbolOffset"),toSymbolRotate:p.getItemVisual(w,"symbolRotate"),toSymbolSize:p.getItemVisual(w,"symbolSize"),toSymbol:p.getItemVisual(w,"symbol"),style:x})}),c.updateData(v),f.line.eachItemGraphicEl(function(w){Ke(w).dataModel=r,w.traverse(function(x){Ke(x).dataModel=r})});function O(w,x,S){var T=w.getItemModel(x);jM(w,x,S,n,o);var $=T.getModel("itemStyle").getItemStyle();$.fill==null&&($.fill=w_(l,"color")),w.setItemVisual(x,{symbolKeepAspect:T.get("symbolKeepAspect"),symbolOffset:Je(T.get("symbolOffset",!0),b[S?0:1]),symbolRotate:Je(T.get("symbolRotate",!0),y[S?0:1]),symbolSize:Je(T.get("symbolSize"),m[S?0:1]),symbol:Je(T.get("symbol",!0),g[S?0:1]),style:$})}this.markKeep(c),c.group.silent=r.get("silent")||n.get("silent")},e.type="markLine",e}(k3);function Tut(t,e,n){var r;t?r=ye(t&&t.dimensions,function(u){var c=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return he(he({},c),{name:u,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var i=new fi(r,n),o=new fi(r,n),a=new fi([],n),s=ye(n.get("data"),nt(xut,e,t,n));t&&(s=Yt(s,nt(Sut,t)));var l=wde(!!t,r);return i.initData(ye(s,function(u){return u[0]}),null,l),o.initData(ye(s,function(u){return u[1]}),null,l),a.initData(ye(s,function(u){return u[2]})),a.hasItemOption=!0,{from:i,to:o,line:a}}function Put(t){t.registerComponentModel(wut),t.registerComponentView(Cut),t.registerPreprocessor(function(e){D3(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var $ut=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.createMarkerModelFromSeries=function(n,r,i){return new e(n,r,i)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(cu),uw=$t(),Aut=function(t,e,n,r){var i=r[0],o=r[1];if(!(!i||!o)){var a=xb(t,i),s=xb(t,o),l=a.coord,u=s.coord;l[0]=Zn(l[0],-1/0),l[1]=Zn(l[1],-1/0),u[0]=Zn(u[0],1/0),u[1]=Zn(u[1],1/0);var c=lP([{},a,s]);return c.coord=[a.coord,s.coord],c.x0=a.x,c.y0=a.y,c.x1=s.x,c.y1=s.y,c}};function wC(t){return!isNaN(t)&&!isFinite(t)}function NX(t,e,n,r){var i=1-t;return wC(e[i])&&wC(n[i])}function Eut(t,e){var n=e.coord[0],r=e.coord[1],i={coord:n,x:e.x0,y:e.y0},o={coord:r,x:e.x1,y:e.y1};return Rh(t,"cartesian2d")?n&&r&&(NX(1,n,r)||NX(0,n,r))?!0:yut(t,i,o):Sb(t,i)||Sb(t,o)}function LX(t,e,n,r,i){var o=r.coordinateSystem,a=t.getItemModel(e),s,l=Me(a.get(n[0]),i.getWidth()),u=Me(a.get(n[1]),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(r.getMarkerPosition){var c=t.getValues(["x0","y0"],e),f=t.getValues(["x1","y1"],e),d=o.clampData(c),p=o.clampData(f),v=[];n[0]==="x0"?v[0]=d[0]>p[0]?f[0]:c[0]:v[0]=d[0]>p[0]?c[0]:f[0],n[1]==="y0"?v[1]=d[1]>p[1]?f[1]:c[1]:v[1]=d[1]>p[1]?c[1]:f[1],s=r.getMarkerPosition(v,n,!0)}else{var g=t.get(n[0],e),m=t.get(n[1],e),y=[g,m];o.clampData&&o.clampData(y,y),s=o.dataToPoint(y,!0)}if(Rh(o,"cartesian2d")){var b=o.getAxis("x"),O=o.getAxis("y"),g=t.get(n[0],e),m=t.get(n[1],e);wC(g)?s[0]=b.toGlobalCoord(b.getExtent()[n[0]==="x0"?0:1]):wC(m)&&(s[1]=O.toGlobalCoord(O.getExtent()[n[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var BX=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],Mut=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.updateTransform=function(n,r,i){r.eachSeries(function(o){var a=cu.getMarkerModelFromSeries(o,"markArea");if(a){var s=a.getData();s.each(function(l){var u=ye(BX,function(f){return LX(s,l,f,o,i)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},e.prototype.renderSeries=function(n,r,i,o){var a=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new qe});this.group.add(c.group),this.markKeep(c);var f=Iut(a,n,r);r.setData(f),f.each(function(d){var p=ye(BX,function($){return LX(f,d,$,n,o)}),v=a.getAxis("x").scale,g=a.getAxis("y").scale,m=v.getExtent(),y=g.getExtent(),b=[v.parse(f.get("x0",d)),v.parse(f.get("x1",d))],O=[g.parse(f.get("y0",d)),g.parse(f.get("y1",d))];Ao(b),Ao(O);var w=!(m[0]>b[1]||m[1]<b[0]||y[0]>O[1]||y[1]<O[0]),x=!w;f.setItemLayout(d,{points:p,allClipped:x});var S=f.getItemModel(d).getModel("itemStyle").getItemStyle(),T=w_(l,"color");S.fill||(S.fill=T,Ie(S.fill)&&(S.fill=tb(S.fill,.4))),S.stroke||(S.stroke=T),f.setItemVisual(d,"style",S)}),f.diff(uw(c).data).add(function(d){var p=f.getItemLayout(d);if(!p.allClipped){var v=new Li({shape:{points:p.points}});f.setItemGraphicEl(d,v),c.group.add(v)}}).update(function(d,p){var v=uw(c).data.getItemGraphicEl(p),g=f.getItemLayout(d);g.allClipped?v&&c.group.remove(v):(v?kt(v,{shape:{points:g.points}},r,d):v=new Li({shape:{points:g.points}}),f.setItemGraphicEl(d,v),c.group.add(v))}).remove(function(d){var p=uw(c).data.getItemGraphicEl(d);c.group.remove(p)}).execute(),f.eachItemGraphicEl(function(d,p){var v=f.getItemModel(p),g=f.getItemVisual(p,"style");d.useStyle(f.getItemVisual(p,"style")),Jr(d,Cr(v),{labelFetcher:r,labelDataIndex:p,defaultText:f.getName(p)||"",inheritColor:Ie(g.fill)?tb(g.fill,1):"#000"}),Kr(d,v),Bn(d,null,null,v.get(["emphasis","disabled"])),Ke(d).dataModel=r}),uw(c).data=f,c.group.silent=r.get("silent")||n.get("silent")},e.type="markArea",e}(k3);function Iut(t,e,n){var r,i,o=["x0","y0","x1","y1"];if(t){var a=ye(t&&t.dimensions,function(u){var c=e.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return he(he({},f),{name:u,ordinalMeta:null})});i=ye(o,function(u,c){return{name:u,type:a[c%2].type}}),r=new fi(i,n)}else i=[{name:"value",type:"float"}],r=new fi(i,n);var s=ye(n.get("data"),nt(Aut,e,t,n));t&&(s=Yt(s,nt(Eut,t)));var l=t?function(u,c,f,d){var p=u.coord[Math.floor(d/2)][d%2];return xc(p,i[d])}:function(u,c,f,d){return xc(u.value,i[d])};return r.initData(s,null,l),r.hasItemOption=!0,r}function Dut(t){t.registerComponentModel($ut),t.registerComponentView(Mut),t.registerPreprocessor(function(e){D3(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var Rut=function(t,e){if(e==="all")return{type:"all",title:t.getLocaleModel().get(["legend","selector","all"])};if(e==="inverse")return{type:"inverse",title:t.getLocaleModel().get(["legend","selector","inverse"])}},Fk=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return e.prototype.init=function(n,r,i){this.mergeDefaultAndTheme(n,i),n.selected=n.selected||{},this._updateSelector(n)},e.prototype.mergeOption=function(n,r){t.prototype.mergeOption.call(this,n,r),this._updateSelector(n)},e.prototype._updateSelector=function(n){var r=n.selector,i=this.ecModel;r===!0&&(r=n.selector=["all","inverse"]),ve(r)&&V(r,function(o,a){Ie(o)&&(o={type:o}),r[a]=it(o,Rut(i,o.type))})},e.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"))}},e.prototype._updateData=function(n){var r=[],i=[];n.eachRawSeries(function(l){var u=l.name;i.push(u);var c;if(l.legendVisualProvider){var f=l.legendVisualProvider,d=f.getAllNames();n.isSeriesFiltered(l)||(i=i.concat(d)),d.length?r=r.concat(d):c=!0}else c=!0;c&&k8(l)&&r.push(l.name)}),this._availableNames=i;var o=this.get("data")||r,a=Be(),s=ye(o,function(l){return(Ie(l)||It(l))&&(l={name:l}),a.get(l.name)?null:(a.set(l.name,!0),new tn(l,this,this.ecModel))},this);this._data=Yt(s,function(l){return!!l})},e.prototype.getData=function(){return this._data},e.prototype.select=function(n){var r=this.option.selected,i=this.get("selectedMode");if(i==="single"){var o=this._data;V(o,function(a){r[a.get("name")]=!1})}r[n]=!0},e.prototype.unSelect=function(n){this.get("selectedMode")!=="single"&&(this.option.selected[n]=!1)},e.prototype.toggleSelected=function(n){var r=this.option.selected;r.hasOwnProperty(n)||(r[n]=!0),this[r[n]?"unSelect":"select"](n)},e.prototype.allSelect=function(){var n=this._data,r=this.option.selected;V(n,function(i){r[i.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var n=this._data,r=this.option.selected;V(n,function(i){var o=i.get("name",!0);r.hasOwnProperty(o)||(r[o]=!0),r[o]=!r[o]})},e.prototype.isSelected=function(n){var r=this.option.selected;return!(r.hasOwnProperty(n)&&!r[n])&&st(this._availableNames,n)>=0},e.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.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}},e}(pt),Pp=nt,Wk=V,cw=qe,xde=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return e.prototype.init=function(){this.group.add(this._contentGroup=new cw),this.group.add(this._selectorGroup=new cw),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(n,r,i){var o=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!n.get("show",!0)){var a=n.get("align"),s=n.get("orient");(!a||a==="auto")&&(a=n.get("left")==="right"&&s==="vertical"?"right":"left");var l=n.get("selector",!0),u=n.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(a,n,r,i,l,s,u);var c=n.getBoxLayoutParams(),f={width:i.getWidth(),height:i.getHeight()},d=n.get("padding"),p=ir(c,f,d),v=this.layoutInner(n,a,p,o,l,u),g=ir(Ge({width:v.width,height:v.height},c),f,d);this.group.x=g.x-v.x,this.group.y=g.y-v.y,this.group.markRedraw(),this.group.add(this._backgroundEl=fde(v,n))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(n,r,i,o,a,s,l){var u=this.getContentGroup(),c=Be(),f=r.get("selectedMode"),d=[];i.eachRawSeries(function(p){!p.get("legendHoverLink")&&d.push(p.id)}),Wk(r.getData(),function(p,v){var g=p.get("name");if(!this.newlineDisabled&&(g===""||g===`
  361. `)){var m=new cw;m.newline=!0,u.add(m);return}var y=i.getSeriesByName(g)[0];if(!c.get(g)){if(y){var b=y.getData(),O=b.getVisual("legendLineStyle")||{},w=b.getVisual("legendIcon"),x=b.getVisual("style"),S=this._createItem(y,g,v,p,r,n,O,x,w,f,o);S.on("click",Pp(VX,g,null,o,d)).on("mouseover",Pp(Qk,y.name,null,o,d)).on("mouseout",Pp(Hk,y.name,null,o,d)),i.ssr&&S.eachChild(function(T){var $=Ke(T);$.seriesIndex=y.seriesIndex,$.dataIndex=v,$.ssrType="legend"}),c.set(g,!0)}else i.eachRawSeries(function(T){if(!c.get(g)&&T.legendVisualProvider){var $=T.legendVisualProvider;if(!$.containName(g))return;var A=$.indexOfName(g),P=$.getItemVisual(A,"style"),M=$.getItemVisual(A,"legendIcon"),I=Ai(P.fill);I&&I[3]===0&&(I[3]=.2,P=he(he({},P),{fill:rs(I,"rgba")}));var R=this._createItem(T,g,v,p,r,n,{},P,M,f,o);R.on("click",Pp(VX,null,g,o,d)).on("mouseover",Pp(Qk,null,g,o,d)).on("mouseout",Pp(Hk,null,g,o,d)),i.ssr&&R.eachChild(function(L){var D=Ke(L);D.seriesIndex=T.seriesIndex,D.dataIndex=v,D.ssrType="legend"}),c.set(g,!0)}},this);process.env.NODE_ENV!=="production"&&(c.get(g)||console.warn(g+" series not exists. Legend data should be same with series name or data name."))}},this),a&&this._createSelector(a,r,o,s,l)},e.prototype._createSelector=function(n,r,i,o,a){var s=this.getSelectorGroup();Wk(n,function(u){var c=u.type,f=new Tt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(f);var d=r.getModel("selectorLabel"),p=r.getModel(["emphasis","selectorLabel"]);Jr(f,{normal:d,emphasis:p},{defaultText:u.title}),Oc(f)})},e.prototype._createItem=function(n,r,i,o,a,s,l,u,c,f,d){var p=n.visualDrawType,v=a.get("itemWidth"),g=a.get("itemHeight"),m=a.isSelected(r),y=o.get("symbolRotate"),b=o.get("symbolKeepAspect"),O=o.get("icon");c=O||c||"roundRect";var w=kut(c,o,l,u,p,m,d),x=new cw,S=o.getModel("textStyle");if(Fe(n.getLegendIcon)&&(!O||O==="inherit"))x.add(n.getLegendIcon({itemWidth:v,itemHeight:g,icon:c,iconRotate:y,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:b}));else{var T=O==="inherit"&&n.getData().getVisual("symbol")?y==="inherit"?n.getData().getVisual("symbolRotate"):y:0;x.add(Nut({itemWidth:v,itemHeight:g,icon:c,iconRotate:T,itemStyle:w.itemStyle,lineStyle:w.lineStyle,symbolKeepAspect:b}))}var $=s==="left"?v+5:-5,A=s,P=a.get("formatter"),M=r;Ie(P)&&P?M=P.replace("{name}",r??""):Fe(P)&&(M=P(r));var I=m?S.getTextColor():o.get("inactiveColor");x.add(new Tt({style:un(S,{text:M,x:$,y:g/2,fill:I,align:A,verticalAlign:"middle"},{inheritColor:I})}));var R=new Pt({shape:x.getBoundingRect(),style:{fill:"transparent"}}),L=o.getModel("tooltip");return L.get("show")&&Dg({el:R,componentModel:a,itemName:r,itemTooltipOption:L.option}),x.add(R),x.eachChild(function(D){D.silent=!0}),R.silent=!f,this.getContentGroup().add(x),Oc(x),x.__legendDataIndex=i,x},e.prototype.layoutInner=function(n,r,i,o,a,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Fd(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){Fd("horizontal",u,n.get("selectorItemGap",!0));var d=u.getBoundingRect(),p=[-d.x,-d.y],v=n.get("selectorButtonGap",!0),g=n.getOrient().index,m=g===0?"width":"height",y=g===0?"height":"width",b=g===0?"y":"x";s==="end"?p[g]+=c[m]+v:f[g]+=d[m]+v,p[1-g]+=c[y]/2-d[y]/2,u.x=p[0],u.y=p[1],l.x=f[0],l.y=f[1];var O={x:0,y:0};return O[m]=c[m]+v+d[m],O[y]=Math.max(c[y],d[y]),O[b]=Math.min(0,d[b]+p[1-g]),O}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(hn);function kut(t,e,n,r,i,o,a){function s(m,y){m.lineWidth==="auto"&&(m.lineWidth=y.lineWidth>0?2:0),Wk(m,function(b,O){m[O]==="inherit"&&(m[O]=y[O])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=t.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?r.decal:ng(f,a),u.fill==="inherit"&&(u.fill=r[i]),u.stroke==="inherit"&&(u.stroke=r[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?r:n).opacity),s(u,r);var d=e.getModel("lineStyle"),p=d.getLineStyle();if(s(p,n),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),p.stroke==="auto"&&(p.stroke=r.fill),!o){var v=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth=v==="auto"?r.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),p.stroke=d.get("inactiveColor"),p.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}function Nut(t){var e=t.icon||"roundRect",n=Yn(e,0,0,t.itemWidth,t.itemHeight,t.itemStyle.fill,t.symbolKeepAspect);return n.setStyle(t.itemStyle),n.rotation=(t.iconRotate||0)*Math.PI/180,n.setOrigin([t.itemWidth/2,t.itemHeight/2]),e.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function VX(t,e,n,r){Hk(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:t??e}),Qk(t,e,n,r)}function Sde(t){for(var e=t.getZr().storage.getDisplayList(),n,r=0,i=e.length;r<i&&!(n=e[r].states.emphasis);)r++;return n&&n.hoverLayer}function Qk(t,e,n,r){Sde(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:r})}function Hk(t,e,n,r){Sde(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:r})}function Lut(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(n){for(var r=0;r<e.length;r++)if(!e[r].isSelected(n.name))return!1;return!0})}function a0(t,e,n){var r={},i=t==="toggleSelected",o;return n.eachComponent("legend",function(a){i&&o!=null?a[o?"select":"unSelect"](e.name):t==="allSelect"||t==="inverseSelect"?a[t]():(a[t](e.name),o=a.isSelected(e.name));var s=a.getData();V(s,function(l){var u=l.get("name");if(!(u===`
  362. `||u==="")){var c=a.isSelected(u);r.hasOwnProperty(u)?r[u]=r[u]&&c:r[u]=c}})}),t==="allSelect"||t==="inverseSelect"?{selected:r}:{name:e.name,selected:r}}function But(t){t.registerAction("legendToggleSelect","legendselectchanged",nt(a0,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",nt(a0,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",nt(a0,"inverseSelect")),t.registerAction("legendSelect","legendselected",nt(a0,"select")),t.registerAction("legendUnSelect","legendunselected",nt(a0,"unSelect"))}function Cde(t){t.registerComponentModel(Fk),t.registerComponentView(xde),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,Lut),t.registerSubTypeDefaulter("legend",function(){return"plain"}),But(t)}var Vut=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.setScrollDataIndex=function(n){this.option.scrollDataIndex=n},e.prototype.init=function(n,r,i){var o=Ng(n);t.prototype.init.call(this,n,r,i),zX(this,n,o)},e.prototype.mergeOption=function(n,r){t.prototype.mergeOption.call(this,n,r),zX(this,this.option,n)},e.type="legend.scroll",e.defaultOption=Kc(Fk.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}),e}(Fk);function zX(t,e,n){var r=t.getOrient(),i=[1,1];i[r.index]=0,kc(e,n,{type:"box",ignoreSize:!!i})}var FX=qe,UM=["width","height"],ZM=["x","y"],zut=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!0,n._currentIndex=0,n}return e.prototype.init=function(){t.prototype.init.call(this),this.group.add(this._containerGroup=new FX),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new FX)},e.prototype.resetInner=function(){t.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(n,r,i,o,a,s,l){var u=this;t.prototype.renderInner.call(this,n,r,i,o,a,s,l);var c=this._controllerGroup,f=r.get("pageIconSize",!0),d=ve(f)?f:[f,f];v("pagePrev",0);var p=r.getModel("pageTextStyle");c.add(new Tt({name:"pageText",style:{text:"xx/xx",fill:p.getTextColor(),font:p.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),v("pageNext",1);function v(g,m){var y=g+"DataIndex",b=Ig(r.get("pageIcons",!0)[r.getOrient().name][m],{onclick:Re(u._pageGo,u,y,r,o)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});b.name=g,c.add(b)}},e.prototype.layoutInner=function(n,r,i,o,a,s){var l=this.getSelectorGroup(),u=n.getOrient().index,c=UM[u],f=ZM[u],d=UM[1-u],p=ZM[1-u];a&&Fd("horizontal",l,n.get("selectorItemGap",!0));var v=n.get("selectorButtonGap",!0),g=l.getBoundingRect(),m=[-g.x,-g.y],y=Ue(i);a&&(y[c]=i[c]-g[c]-v);var b=this._layoutContentAndController(n,o,y,u,c,d,p,f);if(a){if(s==="end")m[u]+=b[c]+v;else{var O=g[c]+v;m[u]-=O,b[f]-=O}b[c]+=g[c]+v,m[1-u]+=b[p]+b[d]/2-g[d]/2,b[d]=Math.max(b[d],g[d]),b[p]=Math.min(b[p],g[p]+m[1-u]),l.x=m[0],l.y=m[1],l.markRedraw()}return b},e.prototype._layoutContentAndController=function(n,r,i,o,a,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,d=this._controllerGroup;Fd(n.get("orient"),c,n.get("itemGap"),o?i.width:null,o?null:i.height),Fd("horizontal",d,n.get("pageButtonItemGap",!0));var p=c.getBoundingRect(),v=d.getBoundingRect(),g=this._showController=p[a]>i[a],m=[-p.x,-p.y];r||(m[o]=c[u]);var y=[0,0],b=[-v.x,-v.y],O=Je(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(g){var w=n.get("pageButtonPosition",!0);w==="end"?b[o]+=i[a]-v[a]:y[o]+=v[a]+O}b[1-o]+=p[s]/2-v[s]/2,c.setPosition(m),f.setPosition(y),d.setPosition(b);var x={x:0,y:0};if(x[a]=g?i[a]:p[a],x[s]=Math.max(p[s],v[s]),x[l]=Math.min(0,v[l]+b[1-o]),f.__rectSize=i[a],g){var S={x:0,y:0};S[a]=Math.max(i[a]-v[a]-O,0),S[s]=x[s],f.setClipPath(new Pt({shape:S})),f.__rectSize=S[a]}else d.eachChild(function($){$.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(n);return T.pageIndex!=null&&kt(c,{x:T.contentPosition[0],y:T.contentPosition[1]},g?n:null),this._updatePageInfoView(n,T),x},e.prototype._pageGo=function(n,r,i){var o=this._getPageInfo(r)[n];o!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:o,legendId:r.id})},e.prototype._updatePageInfoView=function(n,r){var i=this._controllerGroup;V(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=r[f]!=null,p=i.childOfName(c);p&&(p.setStyle("fill",d?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),p.cursor=d?"pointer":"default")});var o=i.childOfName("pageText"),a=n.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;o&&a&&o.setStyle("text",Ie(a)?a.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):a({current:l,total:u}))},e.prototype._getPageInfo=function(n){var r=n.get("scrollDataIndex",!0),i=this.getContentGroup(),o=this._containerGroup.__rectSize,a=n.getOrient().index,s=UM[a],l=ZM[a],u=this._findTargetItemIndex(r),c=i.children(),f=c[u],d=c.length,p=d?1:0,v={contentPosition:[i.x,i.y],pageCount:p,pageIndex:p-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return v;var g=w(f);v.contentPosition[a]=-g.s;for(var m=u+1,y=g,b=g,O=null;m<=d;++m)O=w(c[m]),(!O&&b.e>y.s+o||O&&!x(O,y.s))&&(b.i>y.i?y=b:y=O,y&&(v.pageNextDataIndex==null&&(v.pageNextDataIndex=y.i),++v.pageCount)),b=O;for(var m=u-1,y=g,b=g,O=null;m>=-1;--m)O=w(c[m]),(!O||!x(b,O.s))&&y.i<b.i&&(b=y,v.pagePrevDataIndex==null&&(v.pagePrevDataIndex=y.i),++v.pageCount,++v.pageIndex),y=O;return v;function w(S){if(S){var T=S.getBoundingRect(),$=T[l]+S[l];return{s:$,e:$+T[s],i:S.__legendDataIndex}}}function x(S,T){return S.e>=T&&S.s<=T+o}},e.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},e.type="legend.scroll",e}(xde);function Fut(t){t.registerAction("legendScroll","legendscroll",function(e,n){var r=e.scrollDataIndex;r!=null&&n.eachComponent({mainType:"legend",subType:"scroll",query:e},function(i){i.setScrollDataIndex(r)})})}function Wut(t){vt(Cde),t.registerComponentModel(Vut),t.registerComponentView(zut),Fut(t)}function Qut(t){vt(Cde),vt(Wut)}var Hut=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="dataZoom.inside",e.defaultOption=Kc(wb.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(wb),N3=$t();function Gut(t,e,n){N3(t).coordSysRecordMap.each(function(r){var i=r.dataZoomInfoMap.get(e.uid);i&&(i.getRange=n)})}function jut(t,e){for(var n=N3(t).coordSysRecordMap,r=n.keys(),i=0;i<r.length;i++){var o=r[i],a=n.get(o),s=a.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||Tde(n,a))}}}function Tde(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function Uut(t,e){var n={model:e,containsPoint:nt(Xut,e),dispatchAction:nt(Zut,t),dataZoomInfoMap:null,controller:null},r=n.controller=new E_(t.getZr());return V(["pan","zoom","scrollMove"],function(i){r.on(i,function(o){var a=[];n.dataZoomInfoMap.each(function(s){if(o.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[i],u=l&&l(s.dzReferCoordSysInfo,n.model.mainType,n.controller,o);!s.model.get("disabled",!0)&&u&&a.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),a.length&&n.dispatchAction(a)})}),n}function Zut(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function Xut(t,e,n,r){return t.coordinateSystem.containPoint([n,r])}function Yut(t){var e,n="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return t.each(function(o){var a=o.model,s=a.get("disabled",!0)?!1:a.get("zoomLock",!0)?"move":!0;r[n+s]>r[n+e]&&(e=s),i=i&&a.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function qut(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(e,n){var r=N3(n),i=r.coordSysRecordMap||(r.coordSysRecordMap=Be());i.each(function(o){o.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(o){var a=lde(o);V(a.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,Uut(n,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=Be());c.set(o.uid,{dzReferCoordSysInfo:s,model:o,getRange:null})})}),i.each(function(o){var a=o.controller,s,l=o.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){Tde(i,o);return}var c=Yut(l);a.enable(c.controlType,c.opt),a.setPointerChecker(o.containsPoint),Vg(o,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var Kut=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="dataZoom.inside",n}return e.prototype.render=function(n,r,i){if(t.prototype.render.apply(this,arguments),n.noTarget()){this._clear();return}this.range=n.getPercentRange(),Gut(i,n,{pan:Re(XM.pan,this),zoom:Re(XM.zoom,this),scrollMove:Re(XM.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){jut(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(P3),XM={zoom:function(t,e,n,r){var i=this.range,o=i.slice(),a=t.axisModels[0];if(a){var s=YM[e](null,[r.originX,r.originY],a,n,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/r.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Nh(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,i[0]!==o[0]||i[1]!==o[1])return o}},pan:WX(function(t,e,n,r,i,o){var a=YM[r]([o.oldX,o.oldY],[o.newX,o.newY],e,i,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength}),scrollMove:WX(function(t,e,n,r,i,o){var a=YM[r]([0,0],[o.scrollDelta,o.scrollDelta],e,i,n);return a.signal*(t[1]-t[0])*o.scrollDelta})};function WX(t){return function(e,n,r,i){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s){var l=t(a,s,e,n,r,i);if(Nh(l,a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1])return a}}}var YM={grid:function(t,e,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem.getRect();return t=t||[0,0],o.dim==="x"?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,r,i){var o=n.axis,a={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),n.mainType==="radiusAxis"?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,r,i){var o=n.axis,a=i.model.coordinateSystem.getRect(),s={};return t=t||[0,0],o.orient==="horizontal"?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}};function Pde(t){$3(t),t.registerComponentModel(Hut),t.registerComponentView(Kut),qut(t)}var Jut=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Kc(wb.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(wb),s0=Pt,QX=7,ect=1,qM=30,tct=7,l0="horizontal",HX="vertical",nct=5,rct=["line","bar","candlestick","scatter"],ict={easing:"cubicOut",duration:100,delay:0},oct=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return e.prototype.init=function(n,r){this.api=r,this._onBrush=Re(this._onBrush,this),this._onBrushEnd=Re(this._onBrushEnd,this)},e.prototype.render=function(n,r,i,o){if(t.prototype.render.apply(this,arguments),Vg(this,"_dispatchZoomAction",n.get("throttle"),"fixRate"),this._orient=n.getOrient(),n.get("show")===!1){this.group.removeAll();return}if(n.noTarget()){this._clear(),this.group.removeAll();return}(!o||o.type!=="dataZoom"||o.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){ub(this,"_dispatchZoomAction");var n=this.api.getZr();n.off("mousemove",this._onBrush),n.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var n=this.group;n.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var r=this._displayables.sliderGroup=new qe;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),n.add(r),this._positionGroup()},e.prototype._resetLocation=function(){var n=this.dataZoomModel,r=this.api,i=n.get("brushSelect"),o=i?tct:0,a=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===l0?{right:s.width-a.x-a.width,top:s.height-qM-QX-o,width:a.width,height:qM}:{right:QX,top:a.y,width:qM,height:a.height},u=Ng(n.option);V(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=ir(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===HX&&this._size.reverse()},e.prototype._positionGroup=function(){var n=this.group,r=this._location,i=this._orient,o=this.dataZoomModel.getFirstTargetAxisModel(),a=o&&o.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===l0&&!a?{scaleY:l?1:-1,scaleX:1}:i===l0&&a?{scaleY:l?1:-1,scaleX:-1}:i===HX&&!a?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=n.getBoundingRect([s]);n.x=r.x-u.x,n.y=r.y-u.y,n.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var n=this.dataZoomModel,r=this._size,i=this._displayables.sliderGroup,o=n.get("brushSelect");i.add(new s0({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:n.get("backgroundColor")},z2:-40}));var a=new s0({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:Re(this._onClickPanel,this)}),s=this.api.getZr();o?(a.on("mousedown",this._onBrushStart,this),a.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(a)},e.prototype._renderDataShadow=function(){var n=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!n)return;var r=this._size,i=this._shadowSize||[],o=n.series,a=o.getRawData(),s=o.getShadowDim&&o.getShadowDim(),l=s&&a.getDimensionInfo(s)?o.getShadowDim():n.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(a!==this._shadowData||l!==this._shadowDim||r[0]!==i[0]||r[1]!==i[1]){var f=a.getDataExtent(l),d=(f[1]-f[0])*.3;f=[f[0]-d,f[1]+d];var p=[0,r[1]],v=[0,r[0]],g=[[r[0],0],[0,0]],m=[],y=v[1]/(a.count()-1),b=0,O=Math.round(a.count()/r[0]),w;a.each([l],function(A,P){if(O>0&&P%O){b+=y;return}var M=A==null||isNaN(A)||A==="",I=M?0:Zt(A,f,p,!0);M&&!w&&P?(g.push([g[g.length-1][0],0]),m.push([m[m.length-1][0],0])):!M&&w&&(g.push([b,0]),m.push([b,0])),g.push([b,I]),m.push([b,I]),b+=y,w=M}),u=this._shadowPolygonPts=g,c=this._shadowPolylinePts=m}this._shadowData=a,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var x=this.dataZoomModel;function S(A){var P=x.getModel(A?"selectedDataBackground":"dataBackground"),M=new qe,I=new Li({shape:{points:u},segmentIgnoreThreshold:1,style:P.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),R=new Bi({shape:{points:c},segmentIgnoreThreshold:1,style:P.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return M.add(I),M.add(R),M}for(var T=0;T<3;T++){var $=S(T===1);this._displayables.sliderGroup.add($),this._displayables.dataShadowSegs.push($)}},e.prototype._prepareDataShadowInfo=function(){var n=this.dataZoomModel,r=n.get("showDataShadow");if(r!==!1){var i,o=this.ecModel;return n.eachTargetAxis(function(a,s){var l=n.getAxisProxy(a,s).getTargetSeriesModels();V(l,function(u){if(!i&&!(r!==!0&&st(rct,u.get("type"))<0)){var c=o.getComponent(cc(a),s).axis,f=act(a),d,p=u.coordinateSystem;f!=null&&p.getOtherAxis&&(d=p.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),i={thisAxis:c,series:u,thisDim:a,otherDim:f,otherAxisInverse:d}}},this)},this),i}},e.prototype._renderHandle=function(){var n=this.group,r=this._displayables,i=r.handles=[null,null],o=r.handleLabels=[null,null],a=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,f=l.get("brushSelect"),d=r.filler=new s0({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});a.add(d),a.add(new s0({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:s[0],height:s[1],r:c},style:{stroke:l.get("dataBackgroundColor")||l.get("borderColor"),lineWidth:ect,fill:"rgba(0,0,0,0)"}})),V([0,1],function(O){var w=l.get("handleIcon");!ZS[w]&&w.indexOf("path://")<0&&w.indexOf("image://")<0&&(w="path://"+w,process.env.NODE_ENV!=="production"&&Pa("handleIcon now needs 'path://' prefix when using a path string"));var x=Yn(w,-1,0,2,2,null,!0);x.attr({cursor:GX(this._orient),draggable:!0,drift:Re(this._onDragMove,this,O),ondragend:Re(this._onDragEnd,this),onmouseover:Re(this._showDataInfo,this,!0),onmouseout:Re(this._showDataInfo,this,!1),z2:5});var S=x.getBoundingRect(),T=l.get("handleSize");this._handleHeight=Me(T,this._size[1]),this._handleWidth=S.width/S.height*this._handleHeight,x.setStyle(l.getModel("handleStyle").getItemStyle()),x.style.strokeNoScale=!0,x.rectHover=!0,x.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),Oc(x);var $=l.get("handleColor");$!=null&&(x.style.fill=$),a.add(i[O]=x);var A=l.getModel("textStyle");n.add(o[O]=new Tt({silent:!0,invisible:!0,style:un(A,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:A.getTextColor(),font:A.getFont()}),z2:10}))},this);var p=d;if(f){var v=Me(l.get("moveHandleSize"),s[1]),g=r.moveHandle=new Pt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:v}}),m=v*.8,y=r.moveHandleIcon=Yn(l.get("moveHandleIcon"),-m/2,-m/2,m,m,"#fff",!0);y.silent=!0,y.y=s[1]+v/2-.5,g.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var b=Math.min(s[1]/2,Math.max(v,10));p=r.moveZone=new Pt({invisible:!0,shape:{y:s[1]-b,height:v+b}}),p.on("mouseover",function(){u.enterEmphasis(g)}).on("mouseout",function(){u.leaveEmphasis(g)}),a.add(g),a.add(y),a.add(p)}p.attr({draggable:!0,cursor:GX(this._orient),drift:Re(this._onDragMove,this,"all"),ondragstart:Re(this._showDataInfo,this,!0),ondragend:Re(this._onDragEnd,this),onmouseover:Re(this._showDataInfo,this,!0),onmouseout:Re(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var n=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[Zt(n[0],[0,100],r,!0),Zt(n[1],[0,100],r,!0)]},e.prototype._updateInterval=function(n,r){var i=this.dataZoomModel,o=this._handleEnds,a=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];Nh(r,o,a,i.get("zoomLock")?"all":n,s.minSpan!=null?Zt(s.minSpan,l,a,!0):null,s.maxSpan!=null?Zt(s.maxSpan,l,a,!0):null);var u=this._range,c=this._range=Ao([Zt(o[0],a,l,!0),Zt(o[1],a,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},e.prototype._updateView=function(n){var r=this._displayables,i=this._handleEnds,o=Ao(i.slice()),a=this._size;V([0,1],function(p){var v=r.handles[p],g=this._handleHeight;v.attr({scaleX:g/2,scaleY:g/2,x:i[p]+(p?-1:1),y:a[1]/2-g/2})},this),r.filler.setShape({x:o[0],y:0,width:o[1]-o[0],height:a[1]});var s={x:o[0],width:o[1]-o[0]};r.moveHandle&&(r.moveHandle.setShape(s),r.moveZone.setShape(s),r.moveZone.getBoundingRect(),r.moveHandleIcon&&r.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=r.dataShadowSegs,u=[0,o[0],o[1],a[0]],c=0;c<l.length;c++){var f=l[c],d=f.getClipPath();d||(d=new Pt,f.setClipPath(d)),d.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:a[1]})}this._updateDataInfo(n)},e.prototype._updateDataInfo=function(n){var r=this.dataZoomModel,i=this._displayables,o=i.handleLabels,a=this._orient,s=["",""];if(r.get("showDetail")){var l=r.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,f=n?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(f[0],u),this._formatLabel(f[1],u)]}}var d=Ao(this._handleEnds.slice());p.call(this,0),p.call(this,1);function p(v){var g=wc(i.handles[v].parent,this.group),m=$P(v===0?"right":"left",g),y=this._handleWidth/2+nct,b=is([d[v]+(v===0?-y:y),this._size[1]/2],g);o[v].setStyle({x:b[0],y:b[1],verticalAlign:a===l0?"middle":m,align:a===l0?m:"center",text:s[v]})}},e.prototype._formatLabel=function(n,r){var i=this.dataZoomModel,o=i.get("labelFormatter"),a=i.get("labelPrecision");(a==null||a==="auto")&&(a=r.getPixelPrecision());var s=n==null||isNaN(n)?"":r.type==="category"||r.type==="time"?r.scale.getLabel({value:Math.round(n)}):n.toFixed(Math.min(a,20));return Fe(o)?o(n,s):Ie(o)?o.replace("{value}",s):s},e.prototype._showDataInfo=function(n){n=this._dragging||n;var r=this._displayables,i=r.handleLabels;i[0].attr("invisible",!n),i[1].attr("invisible",!n),r.moveHandle&&this.api[n?"enterEmphasis":"leaveEmphasis"](r.moveHandle,1)},e.prototype._onDragMove=function(n,r,i,o){this._dragging=!0,ru(o.event);var a=this._displayables.sliderGroup.getLocalTransform(),s=is([r,i],a,!0),l=this._updateInterval(n,s[0]),u=this.dataZoomModel.get("realtime");this._updateView(!u),l&&u&&this._dispatchZoomAction(!0)},e.prototype._onDragEnd=function(){this._dragging=!1,this._showDataInfo(!1);var n=this.dataZoomModel.get("realtime");!n&&this._dispatchZoomAction(!1)},e.prototype._onClickPanel=function(n){var r=this._size,i=this._displayables.sliderGroup.transformCoordToLocal(n.offsetX,n.offsetY);if(!(i[0]<0||i[0]>r[0]||i[1]<0||i[1]>r[1])){var o=this._handleEnds,a=(o[0]+o[1])/2,s=this._updateInterval("all",i[0]-a);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(n){var r=n.offsetX,i=n.offsetY;this._brushStart=new ot(r,i),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(n){if(this._brushing){var r=this._displayables.brushRect;if(this._brushing=!1,!!r){r.attr("ignore",!0);var i=r.shape,o=+new Date;if(!(o-this._brushStartTime<200&&Math.abs(i.width)<5)){var a=this._getViewExtent(),s=[0,100];this._range=Ao([Zt(i.x,a,s,!0),Zt(i.x+i.width,a,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(n){this._brushing&&(ru(n.event),this._updateBrushRect(n.offsetX,n.offsetY))},e.prototype._updateBrushRect=function(n,r){var i=this._displayables,o=this.dataZoomModel,a=i.brushRect;a||(a=i.brushRect=new s0({silent:!0,style:o.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(a)),a.attr("ignore",!1);var s=this._brushStart,l=this._displayables.sliderGroup,u=l.transformCoordToLocal(n,r),c=l.transformCoordToLocal(s.x,s.y),f=this._size;u[0]=Math.max(Math.min(f[0],u[0]),0),a.setShape({x:c[0],y:0,width:u[0]-c[0],height:f[1]})},e.prototype._dispatchZoomAction=function(n){var r=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:n?ict:null,start:r[0],end:r[1]})},e.prototype._findCoordRect=function(){var n,r=lde(this.dataZoomModel).infoList;if(!n&&r.length){var i=r[0].model.coordinateSystem;n=i.getRect&&i.getRect()}if(!n){var o=this.api.getWidth(),a=this.api.getHeight();n={x:o*.2,y:a*.2,width:o*.6,height:a*.6}}return n},e.type="dataZoom.slider",e}(P3);function act(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function GX(t){return t==="vertical"?"ns-resize":"ew-resize"}function $de(t){t.registerComponentModel(Jut),t.registerComponentView(oct),$3(t)}function sct(t){vt(Pde),vt($de)}var Ade={get:function(t,e,n){var r=Ue((lct[t]||{})[e]);return n&&ve(r)?r[r.length-1]:r}},lct={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},jX=xr.mapVisual,uct=xr.eachVisual,cct=ve,UX=V,fct=Ao,dct=Zt,xC=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return e.prototype.init=function(n,r,i){this.mergeDefaultAndTheme(n,i)},e.prototype.optionUpdated=function(n,r){var i=this.option;!r&&yde(i,n,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(n){var r=this.stateList;n=Re(n,this),this.controllerVisuals=Bk(this.option.controller,r,n),this.targetVisuals=Bk(this.option.target,r,n)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var n=this.option.seriesIndex,r=[];return n==null||n==="all"?this.ecModel.eachSeries(function(i,o){r.push(o)}):r=nn(n),r},e.prototype.eachTargetSeries=function(n,r){V(this.getTargetSeriesIndices(),function(i){var o=this.ecModel.getSeriesByIndex(i);o&&n.call(r,o)},this)},e.prototype.isTargetSeries=function(n){var r=!1;return this.eachTargetSeries(function(i){i===n&&(r=!0)}),r},e.prototype.formatValueText=function(n,r,i){var o=this.option,a=o.precision,s=this.dataBound,l=o.formatter,u;i=i||["<",">"],ve(n)&&(n=n.slice(),u=!0);var c=r?n:u?[f(n[0]),f(n[1])]:f(n);if(Ie(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(Fe(l))return u?l(n[0],n[1]):l(n);if(u)return n[0]===s[0]?i[0]+" "+c[1]:n[1]===s[1]?i[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(d){return d===s[0]?"min":d===s[1]?"max":(+d).toFixed(Math.min(a,20))}},e.prototype.resetExtent=function(){var n=this.option,r=fct([n.min,n.max]);this._dataExtent=r},e.prototype.getDataDimensionIndex=function(n){var r=this.option.dimension;if(r!=null)return n.getDimensionIndex(r);for(var i=n.dimensions,o=i.length-1;o>=0;o--){var a=i[o],s=n.getDimensionInfo(a);if(!s.isCalculationCoord)return s.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var n=this.ecModel,r=this.option,i={inRange:r.inRange,outOfRange:r.outOfRange},o=r.target||(r.target={}),a=r.controller||(r.controller={});it(o,i),it(a,i);var s=this.isCategory();l.call(this,o),l.call(this,a),u.call(this,o,"inRange","outOfRange"),c.call(this,a);function l(f){cct(r.color)&&!f.inRange&&(f.inRange={color:r.color.slice().reverse()}),f.inRange=f.inRange||{color:n.get("gradientColor")}}function u(f,d,p){var v=f[d],g=f[p];v&&!g&&(g=f[p]={},UX(v,function(m,y){if(xr.isValidType(y)){var b=Ade.get(y,"inactive",s);b!=null&&(g[y]=b,y==="color"&&!g.hasOwnProperty("opacity")&&!g.hasOwnProperty("colorAlpha")&&(g.opacity=[0,0]))}}))}function c(f){var d=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,p=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,v=this.get("inactiveColor"),g=this.getItemSymbol(),m=g||"roundRect";UX(this.stateList,function(y){var b=this.itemSize,O=f[y];O||(O=f[y]={color:s?v:[v]}),O.symbol==null&&(O.symbol=d&&Ue(d)||(s?m:[m])),O.symbolSize==null&&(O.symbolSize=p&&Ue(p)||(s?b[0]:[b[0],b[0]])),O.symbol=jX(O.symbol,function(S){return S==="none"?m:S});var w=O.symbolSize;if(w!=null){var x=-1/0;uct(w,function(S){S>x&&(x=S)}),O.symbolSize=jX(w,function(S){return dct(S,[0,x],[0,b[0]],!0)})}},this)}},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(n){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(n){return null},e.prototype.getVisualMeta=function(n){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(pt),ZX=[20,140],hct=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.optionUpdated=function(n,r){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var n=this.itemSize;(n[0]==null||isNaN(n[0]))&&(n[0]=ZX[0]),(n[1]==null||isNaN(n[1]))&&(n[1]=ZX[1])},e.prototype._resetRange=function(){var n=this.getExtent(),r=this.option.range;!r||r.auto?(n.auto=1,this.option.range=n):ve(r)&&(r[0]>r[1]&&r.reverse(),r[0]=Math.max(r[0],n[0]),r[1]=Math.min(r[1],n[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),V(this.stateList,function(n){var r=this.option.controller[n].symbolSize;r&&r[0]!==r[1]&&(r[0]=r[1]/3)},this)},e.prototype.setSelected=function(n){this.option.range=n.slice(),this._resetRange()},e.prototype.getSelected=function(){var n=this.getExtent(),r=Ao((this.get("range")||[]).slice());return r[0]>n[1]&&(r[0]=n[1]),r[1]>n[1]&&(r[1]=n[1]),r[0]<n[0]&&(r[0]=n[0]),r[1]<n[0]&&(r[1]=n[0]),r},e.prototype.getValueState=function(n){var r=this.option.range,i=this.getExtent();return(r[0]<=i[0]||r[0]<=n)&&(r[1]>=i[1]||n<=r[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(n){var r=[];return this.eachTargetSeries(function(i){var o=[],a=i.getData();a.each(this.getDataDimensionIndex(a),function(s,l){n[0]<=s&&s<=n[1]&&o.push(l)},this),r.push({seriesId:i.id,dataIndex:o})},this),r},e.prototype.getVisualMeta=function(n){var r=XX(this,"outOfRange",this.getExtent()),i=XX(this,"inRange",this.option.range.slice()),o=[];function a(p,v){o.push({value:p,color:n(p,v)})}for(var s=0,l=0,u=i.length,c=r.length;l<c&&(!i.length||r[l]<=i[0]);l++)r[l]<i[s]&&a(r[l],"outOfRange");for(var f=1;s<u;s++,f=0)f&&o.length&&a(i[s],"outOfRange"),a(i[s],"inRange");for(var f=1;l<c;l++)(!i.length||i[i.length-1]<r[l])&&(f&&(o.length&&a(o[o.length-1].value,"outOfRange"),f=0),a(r[l],"outOfRange"));var d=o.length;return{stops:o,outerColors:[d?o[0].color:"transparent",d?o[d-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=Kc(xC.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:"#fff",borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}}),e}(xC);function XX(t,e,n){if(n[0]===n[1])return n.slice();for(var r=200,i=(n[1]-n[0])/r,o=n[0],a=[],s=0;s<=r&&o<n[1];s++)a.push(o),o+=i;return a.push(n[1]),a}var Ede=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n.autoPositionValues={left:1,right:1,top:1,bottom:1},n}return e.prototype.init=function(n,r){this.ecModel=n,this.api=r},e.prototype.render=function(n,r,i,o){if(this.visualMapModel=n,n.get("show")===!1){this.group.removeAll();return}this.doRender(n,r,i,o)},e.prototype.renderBackground=function(n){var r=this.visualMapModel,i=Mh(r.get("padding")||0),o=n.getBoundingRect();n.add(new Pt({z2:-1,silent:!0,shape:{x:o.x-i[3],y:o.y-i[0],width:o.width+i[3]+i[1],height:o.height+i[0]+i[2]},style:{fill:r.get("backgroundColor"),stroke:r.get("borderColor"),lineWidth:r.get("borderWidth")}}))},e.prototype.getControllerVisual=function(n,r,i){i=i||{};var o=i.forceState,a=this.visualMapModel,s={};if(r==="color"){var l=a.get("contentColor");s.color=l}function u(p){return s[p]}function c(p,v){s[p]=v}var f=a.controllerVisuals[o||a.getValueState(n)],d=xr.prepareVisualTypes(f);return V(d,function(p){var v=f[p];i.convertOpacityToAlpha&&p==="opacity"&&(p="colorAlpha",v=f.__alphaForOpacity),xr.dependsOn(p,r)&&v&&v.applyVisual(n,u,c)}),s[r]},e.prototype.positionGroup=function(n){var r=this.visualMapModel,i=this.api;RP(n,r.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},e.prototype.doRender=function(n,r,i,o){},e.type="visualMap",e}(hn),YX=[["left","right","width"],["top","bottom","height"]];function Mde(t,e,n){var r=t.option,i=r.align;if(i!=null&&i!=="auto")return i;for(var o={width:e.getWidth(),height:e.getHeight()},a=r.orient==="horizontal"?1:0,s=YX[a],l=[0,null,10],u={},c=0;c<3;c++)u[YX[1-a][c]]=l[c],u[s[c]]=c===2?n[0]:r[s[c]];var f=[["x","width",3],["y","height",0]][a],d=ir(u,o,r.padding);return s[(d.margin[f[2]]||0)+d[f[0]]+d[f[1]]*.5<o[f[1]]*.5?0:1]}function Ax(t,e){return V(t||[],function(n){n.dataIndex!=null&&(n.dataIndexInside=n.dataIndex,n.dataIndex=null),n.highlightKey="visualMap"+(e?e.componentIndex:"")}),t}var ks=Zt,pct=V,qX=Math.min,KM=Math.max,vct=12,gct=6,mct=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._shapes={},n._dataInterval=[],n._handleEnds=[],n._hoverLinkDataIndices=[],n}return e.prototype.init=function(n,r){t.prototype.init.call(this,n,r),this._hoverLinkFromSeriesMouseOver=Re(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=Re(this._hideIndicator,this)},e.prototype.doRender=function(n,r,i,o){(!o||o.type!=="selectDataRange"||o.from!==this.uid)&&this._buildView()},e.prototype._buildView=function(){this.group.removeAll();var n=this.visualMapModel,r=this.group;this._orient=n.get("orient"),this._useHandle=n.get("calculable"),this._resetInterval(),this._renderBar(r);var i=n.get("text");this._renderEndsText(r,i,0),this._renderEndsText(r,i,1),this._updateView(!0),this.renderBackground(r),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(r)},e.prototype._renderEndsText=function(n,r,i){if(r){var o=r[1-i];o=o!=null?o+"":"";var a=this.visualMapModel,s=a.get("textGap"),l=a.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,i===0?-s:l[1]+s],u),f=this._applyTransform(i===0?"bottom":"top",u),d=this._orient,p=this.visualMapModel.textStyleModel;this.group.add(new Tt({style:un(p,{x:c[0],y:c[1],verticalAlign:d==="horizontal"?"middle":f,align:d==="horizontal"?f:"center",text:o})}))}},e.prototype._renderBar=function(n){var r=this.visualMapModel,i=this._shapes,o=r.itemSize,a=this._orient,s=this._useHandle,l=Mde(r,this.api,o),u=i.mainGroup=this._createBarGroup(l),c=new qe;u.add(c),c.add(i.outOfRange=KX()),c.add(i.inRange=KX(null,s?eY(this._orient):null,Re(this._dragHandle,this,"all",!1),Re(this._dragHandle,this,"all",!0))),c.setClipPath(new Pt({shape:{x:0,y:0,width:o[0],height:o[1],r:3}}));var f=r.textStyleModel.getTextRect("国"),d=KM(f.width,f.height);s&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(r,u,0,o,d,a),this._createHandle(r,u,1,o,d,a)),this._createIndicator(r,u,o,d,a),n.add(u)},e.prototype._createHandle=function(n,r,i,o,a,s){var l=Re(this._dragHandle,this,i,!1),u=Re(this._dragHandle,this,i,!0),c=cs(n.get("handleSize"),o[0]),f=Yn(n.get("handleIcon"),-c/2,-c/2,c,c,null,!0),d=eY(this._orient);f.attr({cursor:d,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){ru(y.event)}}),f.x=o[0]/2,f.useStyle(n.getModel("handleStyle").getItemStyle()),f.setStyle({strokeNoScale:!0,strokeFirst:!0}),f.style.lineWidth*=2,f.ensureState("emphasis").style=n.getModel(["emphasis","handleStyle"]).getItemStyle(),_d(f,!0),r.add(f);var p=this.visualMapModel.textStyleModel,v=new Tt({cursor:d,draggable:!0,drift:l,onmousemove:function(y){ru(y.event)},ondragend:u,style:un(p,{x:0,y:0,text:""})});v.ensureState("blur").style={opacity:.1},v.stateTransition={duration:200},this.group.add(v);var g=[c,0],m=this._shapes;m.handleThumbs[i]=f,m.handleLabelPoints[i]=g,m.handleLabels[i]=v},e.prototype._createIndicator=function(n,r,i,o,a){var s=cs(n.get("indicatorSize"),i[0]),l=Yn(n.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:i[0]/2});var u=n.getModel("indicatorStyle").getItemStyle();if(l instanceof Rr){var c=l.style;l.useStyle(he({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);r.add(l);var f=this.visualMapModel.textStyleModel,d=new Tt({silent:!0,invisible:!0,style:un(f,{x:0,y:0,text:""})});this.group.add(d);var p=[(a==="horizontal"?o/2:gct)+i[0]/2,0],v=this._shapes;v.indicator=l,v.indicatorLabel=d,v.indicatorLabelPoint=p,this._firstShowIndicator=!0},e.prototype._dragHandle=function(n,r,i,o){if(this._useHandle){if(this._dragging=!r,!r){var a=this._applyTransform([i,o],this._shapes.mainGroup,!0);this._updateInterval(n,a[1]),this._hideIndicator(),this._updateView()}r===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),r?!this._hovering&&this._clearHoverLinkToSeries():JX(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[n],!1)}},e.prototype._resetInterval=function(){var n=this.visualMapModel,r=this._dataInterval=n.getSelected(),i=n.getExtent(),o=[0,n.itemSize[1]];this._handleEnds=[ks(r[0],i,o,!0),ks(r[1],i,o,!0)]},e.prototype._updateInterval=function(n,r){r=r||0;var i=this.visualMapModel,o=this._handleEnds,a=[0,i.itemSize[1]];Nh(r,o,a,n,0);var s=i.getExtent();this._dataInterval=[ks(o[0],a,s,!0),ks(o[1],a,s,!0)]},e.prototype._updateView=function(n){var r=this.visualMapModel,i=r.getExtent(),o=this._shapes,a=[0,r.itemSize[1]],s=n?a:this._handleEnds,l=this._createBarVisual(this._dataInterval,i,s,"inRange"),u=this._createBarVisual(i,i,a,"outOfRange");o.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),o.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(n,r,i,o){var a={forceState:o,convertOpacityToAlpha:!0},s=this._makeColorGradient(n,a),l=[this.getControllerVisual(n[0],"symbolSize",a),this.getControllerVisual(n[1],"symbolSize",a)],u=this._createBarPoints(i,l);return{barColor:new Eg(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},e.prototype._makeColorGradient=function(n,r){var i=100,o=[],a=(n[1]-n[0])/i;o.push({color:this.getControllerVisual(n[0],"color",r),offset:0});for(var s=1;s<i;s++){var l=n[0]+a*s;if(l>n[1])break;o.push({color:this.getControllerVisual(l,"color",r),offset:s/i})}return o.push({color:this.getControllerVisual(n[1],"color",r),offset:1}),o},e.prototype._createBarPoints=function(n,r){var i=this.visualMapModel.itemSize;return[[i[0]-r[0],n[0]],[i[0],n[0]],[i[0],n[1]],[i[0]-r[1],n[1]]]},e.prototype._createBarGroup=function(n){var r=this._orient,i=this.visualMapModel.get("inverse");return new qe(r==="horizontal"&&!i?{scaleX:n==="bottom"?1:-1,rotation:Math.PI/2}:r==="horizontal"&&i?{scaleX:n==="bottom"?-1:1,rotation:-Math.PI/2}:r==="vertical"&&!i?{scaleX:n==="left"?1:-1,scaleY:-1}:{scaleX:n==="left"?1:-1})},e.prototype._updateHandle=function(n,r){if(this._useHandle){var i=this._shapes,o=this.visualMapModel,a=i.handleThumbs,s=i.handleLabels,l=o.itemSize,u=o.getExtent();pct([0,1],function(c){var f=a[c];f.setStyle("fill",r.handlesColor[c]),f.y=n[c];var d=ks(n[c],[0,l[1]],u,!0),p=this.getControllerVisual(d,"symbolSize");f.scaleX=f.scaleY=p/l[0],f.x=l[0]-p/2;var v=is(i.handleLabelPoints[c],wc(f,this.group));s[c].setStyle({x:v[0],y:v[1],text:o.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(n,r,i,o){var a=this.visualMapModel,s=a.getExtent(),l=a.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var d={convertOpacityToAlpha:!0},p=this.getControllerVisual(n,"color",d),v=this.getControllerVisual(n,"symbolSize"),g=ks(n,s,u,!0),m=l[0]-v/2,y={x:f.x,y:f.y};f.y=g,f.x=m;var b=is(c.indicatorLabelPoint,wc(f,this.group)),O=c.indicatorLabel;O.attr("invisible",!1);var w=this._applyTransform("left",c.mainGroup),x=this._orient,S=x==="horizontal";O.setStyle({text:(i||"")+a.formatValueText(r),verticalAlign:S?w:"middle",align:S?"center":w});var T={x:m,y:g,style:{fill:p}},$={style:{x:b[0],y:b[1]}};if(a.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var A={duration:100,easing:"cubicInOut",additive:!0};f.x=y.x,f.y=y.y,f.animateTo(T,A),O.animateTo($,A)}else f.attr(T),O.attr($);this._firstShowIndicator=!1;var P=this._shapes.handleLabels;if(P)for(var M=0;M<P.length;M++)this.api.enterBlur(P[M])}},e.prototype._enableHoverLinkToSeries=function(){var n=this;this._shapes.mainGroup.on("mousemove",function(r){if(n._hovering=!0,!n._dragging){var i=n.visualMapModel.itemSize,o=n._applyTransform([r.offsetX,r.offsetY],n._shapes.mainGroup,!0,!0);o[1]=qX(KM(0,o[1]),i[1]),n._doHoverLinkToSeries(o[1],0<=o[0]&&o[0]<=i[0])}}).on("mouseout",function(){n._hovering=!1,!n._dragging&&n._clearHoverLinkToSeries()})},e.prototype._enableHoverLinkFromSeries=function(){var n=this.api.getZr();this.visualMapModel.option.hoverLink?(n.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),n.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},e.prototype._doHoverLinkToSeries=function(n,r){var i=this.visualMapModel,o=i.itemSize;if(i.option.hoverLink){var a=[0,o[1]],s=i.getExtent();n=qX(KM(a[0],n),a[1]);var l=yct(i,s,a),u=[n-l,n+l],c=ks(n,a,s,!0),f=[ks(u[0],a,s,!0),ks(u[1],a,s,!0)];u[0]<a[0]&&(f[0]=-1/0),u[1]>a[1]&&(f[1]=1/0),r&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var d=this._hoverLinkDataIndices,p=[];(r||JX(i))&&(p=this._hoverLinkDataIndices=i.findTargetDataIndices(f));var v=eGe(d,p);this._dispatchHighDown("downplay",Ax(v[0],i)),this._dispatchHighDown("highlight",Ax(v[1],i))}},e.prototype._hoverLinkFromSeriesMouseOver=function(n){var r;if(wd(n.target,function(l){var u=Ke(l);if(u.dataIndex!=null)return r=u,!0},!0),!!r){var i=this.ecModel.getSeriesByIndex(r.seriesIndex),o=this.visualMapModel;if(o.isTargetSeries(i)){var a=i.getData(r.dataType),s=a.getStore().get(o.getDataDimensionIndex(a),r.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},e.prototype._hideIndicator=function(){var n=this._shapes;n.indicator&&n.indicator.attr("invisible",!0),n.indicatorLabel&&n.indicatorLabel.attr("invisible",!0);var r=this._shapes.handleLabels;if(r)for(var i=0;i<r.length;i++)this.api.leaveBlur(r[i])},e.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var n=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Ax(n,this.visualMapModel)),n.length=0},e.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var n=this.api.getZr();n.off("mouseover",this._hoverLinkFromSeriesMouseOver),n.off("mouseout",this._hideIndicator)},e.prototype._applyTransform=function(n,r,i,o){var a=wc(r,o?null:this.group);return ve(n)?is(n,a,i):$P(n,a,i)},e.prototype._dispatchHighDown=function(n,r){r&&r.length&&this.api.dispatchAction({type:n,batch:r})},e.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},e.type="visualMap.continuous",e}(Ede);function KX(t,e,n,r){return new Li({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(i){ru(i.event)},ondragend:r})}function yct(t,e,n){var r=vct/2,i=t.get("hoverLinkDataSize");return i&&(r=ks(i,e,n,!0)/2),r}function JX(t){var e=t.get("hoverLinkOnHandle");return!!(e??t.get("realtime"))}function eY(t){return t==="vertical"?"ns-resize":"ew-resize"}var bct={type:"selectDataRange",event:"dataRangeSelected",update:"update"},_ct=function(t,e){e.eachComponent({mainType:"visualMap",query:t},function(n){n.setSelected(t.selected)})},Oct=[{createOnAllSeries:!0,reset:function(t,e){var n=[];return e.eachComponent("visualMap",function(r){var i=t.pipelineContext;!r.isTargetSeries(t)||i&&i.large||n.push(Qlt(r.stateList,r.targetVisuals,Re(r.getValueState,r),r.getDataDimensionIndex(t.getData())))}),n}},{createOnAllSeries:!0,reset:function(t,e){var n=t.getData(),r=[];e.eachComponent("visualMap",function(i){if(i.isTargetSeries(t)){var o=i.getVisualMeta(Re(wct,null,t,i))||{stops:[],outerColors:[]},a=i.getDataDimensionIndex(n);a>=0&&(o.dimension=a,r.push(o))}}),t.getData().setVisual("visualMeta",r)}}];function wct(t,e,n,r){for(var i=e.targetVisuals[r],o=xr.prepareVisualTypes(i),a={color:w_(t.getData(),"color")},s=0,l=o.length;s<l;s++){var u=o[s],c=i[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(n,f,d)}return a.color;function f(p){return a[p]}function d(p,v){a[p]=v}}var tY=V;function xct(t){var e=t&&t.visualMap;ve(e)||(e=e?[e]:[]),tY(e,function(n){if(n){$p(n,"splitList")&&!$p(n,"pieces")&&(n.pieces=n.splitList,delete n.splitList);var r=n.pieces;r&&ve(r)&&tY(r,function(i){Qe(i)&&($p(i,"start")&&!$p(i,"min")&&(i.min=i.start),$p(i,"end")&&!$p(i,"max")&&(i.max=i.end))})}})}function $p(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var nY=!1;function Ide(t){nY||(nY=!0,t.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),t.registerAction(bct,_ct),V(Oct,function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)}),t.registerPreprocessor(xct))}function Dde(t){t.registerComponentModel(hct),t.registerComponentView(mct),Ide(t)}var Sct=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return e.prototype.optionUpdated=function(n,r){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],Cct[this._mode].call(this,this._pieceList),this._resetSelected(n,r);var o=this.option.categories;this.resetVisual(function(a,s){i==="categories"?(a.mappingMethod="category",a.categories=Ue(o)):(a.dataExtent=this.getExtent(),a.mappingMethod="piecewise",a.pieceList=ye(this._pieceList,function(l){return l=Ue(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var n=this.option,r={},i=xr.listVisualTypes(),o=this.isCategory();V(n.pieces,function(s){V(i,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),V(r,function(s,l){var u=!1;V(this.stateList,function(c){u=u||a(n,c,l)||a(n.target,c,l)},this),!u&&V(this.stateList,function(c){(n[c]||(n[c]={}))[l]=Ade.get(l,c==="inRange"?"active":"inactive",o)})},this);function a(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(n,r){var i=this.option,o=this._pieceList,a=(r?i:n).selected||{};if(i.selected=a,V(o,function(l,u){var c=this.getSelectedMapKey(l);a.hasOwnProperty(c)||(a[c]=!0)},this),i.selectedMode==="single"){var s=!1;V(o,function(l,u){var c=this.getSelectedMapKey(l);a[c]&&(s?a[c]=!1:s=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(n){return this._mode==="categories"?n.value+"":n.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var n=this.option;return n.pieces&&n.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(n){this.option.selected=Ue(n)},e.prototype.getValueState=function(n){var r=xr.findPieceIndex(n,this._pieceList);return r!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[r])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(n){var r=[],i=this._pieceList;return this.eachTargetSeries(function(o){var a=[],s=o.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=xr.findPieceIndex(l,i);c===n&&a.push(u)},this),r.push({seriesId:o.id,dataIndex:a})},this),r},e.prototype.getRepresentValue=function(n){var r;if(this.isCategory())r=n.value;else if(n.value!=null)r=n.value;else{var i=n.interval||[];r=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return r},e.prototype.getVisualMeta=function(n){if(this.isCategory())return;var r=[],i=["",""],o=this;function a(c,f){var d=o.getRepresentValue({interval:c});f||(f=o.getValueState(d));var p=n(d,f);c[0]===-1/0?i[0]=p:c[1]===1/0?i[1]=p:r.push({value:c[0],color:p},{value:c[1],color:p})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return V(s,function(c){var f=c.interval;f&&(f[0]>u&&a([u,f[0]],"outOfRange"),a(f.slice()),u=f[1])},this),{stops:r,outerColors:i}},e.type="visualMap.piecewise",e.defaultOption=Kc(xC.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(xC),Cct={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),r=this.getExtent(),i=e.splitNumber;i=Math.max(parseInt(i,10),1),e.splitNumber=i;for(var o=(r[1]-r[0])/i;+o.toFixed(n)!==o&&n<5;)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,r[0]],close:[0,0]});for(var a=0,s=r[0];a<i;s+=o,a++){var l=a===i-1?r[1]:s+o;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[r[1],1/0],close:[0,0]}),$R(t),V(t,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(t){var e=this.option;V(e.categories,function(n){t.push({text:this.formatValueText(n,!0),value:n})},this),rY(e,t)},pieces:function(t){var e=this.option;V(e.pieces,function(n,r){Qe(n)||(n={value:n});var i={text:"",index:r};if(n.label!=null&&(i.text=n.label),n.hasOwnProperty("value")){var o=i.value=n.value;i.interval=[o,o],i.close=[1,1]}else{for(var a=i.interval=[],s=i.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],f=0;f<2;f++){for(var d=[["gte","gt","min"],["lte","lt","max"]][f],p=0;p<3&&a[f]==null;p++)a[f]=n[d[p]],s[f]=l[p],c[f]=p===2;a[f]==null&&(a[f]=u[f])}c[0]&&a[1]===1/0&&(s[0]=0),c[1]&&a[0]===-1/0&&(s[1]=0),process.env.NODE_ENV!=="production"&&a[0]>a[1]&&console.warn("Piece "+r+"is illegal: "+a+" lower bound should not greater then uppper bound."),a[0]===a[1]&&s[0]&&s[1]&&(i.value=a[0])}i.visual=xr.retrieveVisuals(n),t.push(i)},this),rY(e,t),$R(t),V(t,function(n){var r=n.close,i=[["<","≤"][r[1]],[">","≥"][r[0]]];n.text=n.text||this.formatValueText(n.value!=null?n.value:n.interval,!1,i)},this)}};function rY(t,e){var n=t.inverse;(t.orient==="vertical"?!n:n)&&e.reverse()}var Tct=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.prototype.doRender=function(){var n=this.group;n.removeAll();var r=this.visualMapModel,i=r.get("textGap"),o=r.textStyleModel,a=o.getFont(),s=o.getTextColor(),l=this._getItemAlign(),u=r.itemSize,c=this._getViewData(),f=c.endsText,d=Zn(r.get("showLabel",!0),!f);f&&this._renderEndsText(n,f[0],u,d,l),V(c.viewPieceList,function(p){var v=p.piece,g=new qe;g.onclick=Re(this._onItemClick,this,v),this._enableHoverLink(g,p.indexInModelPieceList);var m=r.getRepresentValue(v);if(this._createItemSymbol(g,m,[0,0,u[0],u[1]]),d){var y=this.visualMapModel.getValueState(m);g.add(new Tt({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:v.text,verticalAlign:"middle",align:l,font:a,fill:s,opacity:y==="outOfRange"?.5:1}}))}n.add(g)},this),f&&this._renderEndsText(n,f[1],u,d,l),Fd(r.get("orient"),n,r.get("itemGap")),this.renderBackground(n),this.positionGroup(n)},e.prototype._enableHoverLink=function(n,r){var i=this;n.on("mouseover",function(){return o("highlight")}).on("mouseout",function(){return o("downplay")});var o=function(a){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:a,batch:Ax(s.findTargetDataIndices(r),s)})}},e.prototype._getItemAlign=function(){var n=this.visualMapModel,r=n.option;if(r.orient==="vertical")return Mde(n,this.api,n.itemSize);var i=r.align;return(!i||i==="auto")&&(i="left"),i},e.prototype._renderEndsText=function(n,r,i,o,a){if(r){var s=new qe,l=this.visualMapModel.textStyleModel;s.add(new Tt({style:un(l,{x:o?a==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:o?a:"center",text:r})})),n.add(s)}},e.prototype._getViewData=function(){var n=this.visualMapModel,r=ye(n.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=n.get("text"),o=n.get("orient"),a=n.get("inverse");return(o==="horizontal"?a:!a)?r.reverse():i&&(i=i.slice().reverse()),{viewPieceList:r,endsText:i}},e.prototype._createItemSymbol=function(n,r,i){n.add(Yn(this.getControllerVisual(r,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(r,"color")))},e.prototype._onItemClick=function(n){var r=this.visualMapModel,i=r.option,o=i.selectedMode;if(o){var a=Ue(i.selected),s=r.getSelectedMapKey(n);o==="single"||o===!0?(a[s]=!0,V(a,function(l,u){a[u]=u===s})):a[s]=!a[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:a})}},e.type="visualMap.piecewise",e}(Ede);function Rde(t){t.registerComponentModel(Sct),t.registerComponentView(Tct),Ide(t)}function Pct(t){vt(Dde),vt(Rde)}var $ct={label:{enabled:!0},decal:{show:!1}},iY=$t(),Act={};function Ect(t,e){var n=t.getModel("aria");if(!n.get("enabled"))return;var r=Ue($ct);it(r.label,t.getLocaleModel().get("aria"),!1),it(n.option,r,!1),i(),o();function i(){var u=n.getModel("decal"),c=u.get("show");if(c){var f=Be();t.eachSeries(function(d){if(!d.isColorBySeries()){var p=f.get(d.type);p||(p={},f.set(d.type,p)),iY(d).scope=p}}),t.eachRawSeries(function(d){if(t.isSeriesFiltered(d))return;if(Fe(d.enableAriaDecal)){d.enableAriaDecal();return}var p=d.getData();if(d.isColorBySeries()){var b=GR(d.ecModel,d.name,Act,t.getSeriesCount()),O=p.getVisual("decal");p.setVisual("decal",w(O,b))}else{var v=d.getRawData(),g={},m=iY(d).scope;p.each(function(x){var S=p.getRawIndex(x);g[S]=x});var y=v.count();v.each(function(x){var S=g[x],T=v.getName(x)||x+"",$=GR(d.ecModel,T,m,y),A=p.getItemVisual(S,"decal");p.setItemVisual(S,"decal",w(A,$))})}function w(x,S){var T=x?he(he({},S),x):S;return T.dirty=!0,T}})}}function o(){var u=e.getZr().dom;if(u){var c=t.getLocaleModel().get("aria"),f=n.getModel("label");if(f.option=Ge(f.option,c),!!f.get("enabled")){if(f.get("description")){u.setAttribute("aria-label",f.get("description"));return}var d=t.getSeriesCount(),p=f.get(["data","maxCount"])||10,v=f.get(["series","maxCount"])||10,g=Math.min(d,v),m;if(!(d<1)){var y=s();if(y){var b=f.get(["general","withTitle"]);m=a(b,{title:y})}else m=f.get(["general","withoutTitle"]);var O=[],w=d>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);m+=a(w,{seriesCount:d}),t.eachSeries(function($,A){if(A<g){var P=void 0,M=$.get("name"),I=M?"withName":"withoutName";P=d>1?f.get(["series","multiple",I]):f.get(["series","single",I]),P=a(P,{seriesId:$.seriesIndex,seriesName:$.get("name"),seriesType:l($.subType)});var R=$.getData();if(R.count()>p){var L=f.get(["data","partialData"]);P+=a(L,{displayCnt:p})}else P+=f.get(["data","allData"]);for(var D=f.get(["data","separator","middle"]),B=f.get(["data","separator","end"]),F=[],z=0;z<R.count();z++)if(z<p){var W=R.getName(z),j=R.getValues(z),H=f.get(["data",W?"withName":"withoutName"]);F.push(a(H,{name:W,value:j.join(D)}))}P+=F.join(D)+B,O.push(P)}});var x=f.getModel(["series","multiple","separator"]),S=x.get("middle"),T=x.get("end");m+=O.join(S)+T,u.setAttribute("aria-label",m)}}}}function a(u,c){if(!Ie(u))return u;var f=u;return V(c,function(d,p){f=f.replace(new RegExp("\\{\\s*"+p+"\\s*\\}","g"),d)}),f}function s(){var u=t.get("title");return u&&u.length&&(u=u[0]),u&&u.text}function l(u){var c=t.getLocaleModel().get(["series","typeNames"]);return c[u]||c.chart}}function Mct(t){if(!(!t||!t.aria)){var e=t.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},V(["description","general","series","data"],function(n){e[n]!=null&&(e.label[n]=e[n])})}}function Ict(t){t.registerPreprocessor(Mct),t.registerVisual(t.PRIORITY.VISUAL.ARIA,Ect)}var oY={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Dct=function(){function t(e){var n=this._condVal=Ie(e)?new RegExp(e):S8(e)?e:null;if(n==null){var r="";process.env.NODE_ENV!=="production"&&(r=Ri("Illegal regexp",e,"in")),Qt(r)}}return t.prototype.evaluate=function(e){var n=typeof e;return Ie(n)?this._condVal.test(e):It(n)?this._condVal.test(e+""):!1},t}(),Rct=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),kct=function(){function t(){}return t.prototype.evaluate=function(){for(var e=this.children,n=0;n<e.length;n++)if(!e[n].evaluate())return!1;return!0},t}(),Nct=function(){function t(){}return t.prototype.evaluate=function(){for(var e=this.children,n=0;n<e.length;n++)if(e[n].evaluate())return!0;return!1},t}(),Lct=function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t}(),Bct=function(){function t(){}return t.prototype.evaluate=function(){for(var e=!!this.valueParser,n=this.getValue,r=n(this.valueGetterParam),i=e?this.valueParser(r):null,o=0;o<this.subCondList.length;o++)if(!this.subCondList[o].evaluate(e?i:r))return!1;return!0},t}();function L3(t,e){if(t===!0||t===!1){var n=new Rct;return n.value=t,n}var r="";return kde(t)||(process.env.NODE_ENV!=="production"&&(r=Ri("Illegal config. Expect a plain object but actually",t)),Qt(r)),t.and?aY("and",t,e):t.or?aY("or",t,e):t.not?Vct(t,e):zct(t,e)}function aY(t,e,n){var r=e[t],i="";process.env.NODE_ENV!=="production"&&(i=Ri('"and"/"or" condition should only be `'+t+": [...]` and must not be empty array.","Illegal condition:",e)),ve(r)||Qt(i),r.length||Qt(i);var o=t==="and"?new kct:new Nct;return o.children=ye(r,function(a){return L3(a,n)}),o.children.length||Qt(i),o}function Vct(t,e){var n=t.not,r="";process.env.NODE_ENV!=="production"&&(r=Ri('"not" condition should only be `not: {}`.',"Illegal condition:",t)),kde(n)||Qt(r);var i=new Lct;return i.child=L3(n,e),i.child||Qt(r),i}function zct(t,e){for(var n="",r=e.prepareGetValue(t),i=[],o=bt(t),a=t.parser,s=a?dle(a):null,l=0;l<o.length;l++){var u=o[l];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var c=ke(oY,u)?oY[u]:u,f=t[u],d=s?s(f):f,p=lZe(c,d)||c==="reg"&&new Dct(d);p||(process.env.NODE_ENV!=="production"&&(n=Ri('Illegal relational operation: "'+u+'" in condition:',t)),Qt(n)),i.push(p)}}i.length||(process.env.NODE_ENV!=="production"&&(n=Ri("Relational condition must have at least one operator.","Illegal condition:",t)),Qt(n));var v=new Bct;return v.valueGetterParam=r,v.valueParser=s,v.getValue=e.getValue,v.subCondList=i,v}function kde(t){return Qe(t)&&!Yr(t)}var Fct=function(){function t(e,n){this._cond=L3(e,n)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t}();function Wct(t,e){return new Fct(t,e)}var Qct={type:"echarts:filter",transform:function(t){for(var e=t.upstream,n,r=Wct(t.config,{valueGetterAttrMap:Be({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;ke(s,"dimension")||(process.env.NODE_ENV!=="production"&&(l=Ri('Relation condition must has prop "dimension" specified.',"Illegal condition:",s)),Qt(l));var c=e.getDimensionInfo(u);return c||(process.env.NODE_ENV!=="production"&&(l=Ri("Can not find dimension info via: "+u+`.
  363. `,"Existing dimensions: ",e.cloneAllDimensionInfo(),`.
  364. `,"Illegal condition:",s,`.
  365. `)),Qt(l)),{dimIdx:c.index}},getValue:function(s){return e.retrieveValueFromItem(n,s.dimIdx)}}),i=[],o=0,a=e.count();o<a;o++)n=e.getRawDataItem(o),r.evaluate()&&i.push(n);return{data:i}}},Gk="";process.env.NODE_ENV!=="production"&&(Gk=["Valid config is like:",'{ dimension: "age", order: "asc" }','or [{ dimension: "age", order: "asc"], { dimension: "date", order: "desc" }]'].join(" "));var Hct={type:"echarts:sort",transform:function(t){var e=t.upstream,n=t.config,r="",i=nn(n);i.length||(process.env.NODE_ENV!=="production"&&(r="Empty `config` in sort transform."),Qt(r));var o=[];V(i,function(c){var f=c.dimension,d=c.order,p=c.parser,v=c.incomparable;if(f==null&&(process.env.NODE_ENV!=="production"&&(r='Sort transform config must has "dimension" specified.'+Gk),Qt(r)),d!=="asc"&&d!=="desc"&&(process.env.NODE_ENV!=="production"&&(r='Sort transform config must has "order" specified.'+Gk),Qt(r)),v&&v!=="min"&&v!=="max"){var g="";process.env.NODE_ENV!=="production"&&(g='incomparable must be "min" or "max" rather than "'+v+'".'),Qt(g)}if(d!=="asc"&&d!=="desc"){var m="";process.env.NODE_ENV!=="production"&&(m='order must be "asc" or "desc" rather than "'+d+'".'),Qt(m)}var y=e.getDimensionInfo(f);y||(process.env.NODE_ENV!=="production"&&(r=Ri("Can not find dimension info via: "+f+`.
  366. `,"Existing dimensions: ",e.cloneAllDimensionInfo(),`.
  367. `,"Illegal config:",c,`.
  368. `)),Qt(r));var b=p?dle(p):null;p&&!b&&(process.env.NODE_ENV!=="production"&&(r=Ri("Invalid parser name "+p+`.
  369. `,"Illegal config:",c,`.
  370. `)),Qt(r)),o.push({dimIdx:y.index,parser:b,comparator:new ple(d,v)})});var a=e.sourceFormat;a!==hi&&a!==Ra&&(process.env.NODE_ENV!=="production"&&(r='sourceFormat "'+a+'" is not supported yet'),Qt(r));for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(c,f){for(var d=0;d<o.length;d++){var p=o[d],v=e.retrieveValueFromItem(c,p.dimIdx),g=e.retrieveValueFromItem(f,p.dimIdx);p.parser&&(v=p.parser(v),g=p.parser(g));var m=p.comparator.evaluate(v,g);if(m!==0)return m}return 0}),{data:s}}};function Gct(t){t.registerTransform(Qct),t.registerTransform(Hct)}var jct=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="dataset",n}return e.prototype.init=function(n,r,i){t.prototype.init.call(this,n,r,i),this._sourceManager=new yle(this),aG(this)},e.prototype.mergeOption=function(n,r){t.prototype.mergeOption.call(this,n,r),aG(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:tl},e}(pt),Uct=function(t){ie(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="dataset",n}return e.type="dataset",e}(hn);function Zct(t){t.registerComponentModel(jct),t.registerComponentView(Uct)}var As=cl.CMD;function qp(t,e){return Math.abs(t-e)<1e-5}function jk(t){var e=t.data,n=t.len(),r=[],i,o=0,a=0,s=0,l=0;function u(R,L){i&&i.length>2&&r.push(i),i=[R,L]}function c(R,L,D,B){qp(R,D)&&qp(L,B)||i.push(R,L,D,B,D,B)}function f(R,L,D,B,F,z){var W=Math.abs(L-R),j=Math.tan(W/4)*4/3,H=L<R?-1:1,Z=Math.cos(R),J=Math.sin(R),se=Math.cos(L),oe=Math.sin(L),de=Z*F+D,re=J*z+B,ue=se*F+D,ee=oe*z+B,X=F*j*H,Y=z*j*H;i.push(de-X*J,re+Y*Z,ue+X*oe,ee-Y*se,ue,ee)}for(var d,p,v,g,m=0;m<n;){var y=e[m++],b=m===1;switch(b&&(o=e[m],a=e[m+1],s=o,l=a,(y===As.L||y===As.C||y===As.Q)&&(i=[s,l])),y){case As.M:o=s=e[m++],a=l=e[m++],u(s,l);break;case As.L:d=e[m++],p=e[m++],c(o,a,d,p),o=d,a=p;break;case As.C:i.push(e[m++],e[m++],e[m++],e[m++],o=e[m++],a=e[m++]);break;case As.Q:d=e[m++],p=e[m++],v=e[m++],g=e[m++],i.push(o+2/3*(d-o),a+2/3*(p-a),v+2/3*(d-v),g+2/3*(p-g),v,g),o=v,a=g;break;case As.A:var O=e[m++],w=e[m++],x=e[m++],S=e[m++],T=e[m++],$=e[m++]+T;m+=1;var A=!e[m++];d=Math.cos(T)*x+O,p=Math.sin(T)*S+w,b?(s=d,l=p,u(s,l)):c(o,a,d,p),o=Math.cos($)*x+O,a=Math.sin($)*S+w;for(var P=(A?-1:1)*Math.PI/2,M=T;A?M>$:M<$;M+=P){var I=A?Math.max(M+P,$):Math.min(M+P,$);f(M,I,O,w,x,S)}break;case As.R:s=o=e[m++],l=a=e[m++],d=s+e[m++],p=l+e[m++],u(d,l),c(d,l,d,p),c(d,p,s,p),c(s,p,s,l),c(s,l,d,l);break;case As.Z:i&&c(o,a,s,l),o=s,a=l;break}}return i&&i.length>2&&r.push(i),r}function Uk(t,e,n,r,i,o,a,s,l,u){if(qp(t,n)&&qp(e,r)&&qp(i,a)&&qp(o,s)){l.push(a,s);return}var c=2/u,f=c*c,d=a-t,p=s-e,v=Math.sqrt(d*d+p*p);d/=v,p/=v;var g=n-t,m=r-e,y=i-a,b=o-s,O=g*g+m*m,w=y*y+b*b;if(O<f&&w<f){l.push(a,s);return}var x=d*g+p*m,S=-d*y-p*b,T=O-x*x,$=w-S*S;if(T<f&&x>=0&&$<f&&S>=0){l.push(a,s);return}var A=[],P=[];Ic(t,n,i,a,.5,A),Ic(e,r,o,s,.5,P),Uk(A[0],P[0],A[1],P[1],A[2],P[2],A[3],P[3],l,u),Uk(A[4],P[4],A[5],P[5],A[6],P[6],A[7],P[7],l,u)}function Xct(t,e){var n=jk(t),r=[];e=e||1;for(var i=0;i<n.length;i++){var o=n[i],a=[],s=o[0],l=o[1];a.push(s,l);for(var u=2;u<o.length;){var c=o[u++],f=o[u++],d=o[u++],p=o[u++],v=o[u++],g=o[u++];Uk(s,l,c,f,d,p,v,g,a,e),s=v,l=g}r.push(a)}return r}function Nde(t,e,n){var r=t[e],i=t[1-e],o=Math.abs(r/i),a=Math.ceil(Math.sqrt(o*n)),s=Math.floor(n/a);s===0&&(s=1,a=n);for(var l=[],u=0;u<a;u++)l.push(s);var c=a*s,f=n-c;if(f>0)for(var u=0;u<f;u++)l[u%a]+=1;return l}function sY(t,e,n){for(var r=t.r0,i=t.r,o=t.startAngle,a=t.endAngle,s=Math.abs(a-o),l=s*i,u=i-r,c=l>Math.abs(u),f=Nde([l,u],c?0:1,e),d=(c?s:u)/f.length,p=0;p<f.length;p++)for(var v=(c?u:s)/f[p],g=0;g<f[p];g++){var m={};c?(m.startAngle=o+d*p,m.endAngle=o+d*(p+1),m.r0=r+v*g,m.r=r+v*(g+1)):(m.startAngle=o+v*g,m.endAngle=o+v*(g+1),m.r0=r+d*p,m.r=r+d*(p+1)),m.clockwise=t.clockwise,m.cx=t.cx,m.cy=t.cy,n.push(m)}}function Yct(t,e,n){for(var r=t.width,i=t.height,o=r>i,a=Nde([r,i],o?0:1,e),s=o?"width":"height",l=o?"height":"width",u=o?"x":"y",c=o?"y":"x",f=t[s]/a.length,d=0;d<a.length;d++)for(var p=t[l]/a[d],v=0;v<a[d];v++){var g={};g[u]=d*f,g[c]=v*p,g[s]=f,g[l]=p,g.x+=t.x,g.y+=t.y,n.push(g)}}function lY(t,e,n,r){return t*r-n*e}function qct(t,e,n,r,i,o,a,s){var l=n-t,u=r-e,c=a-i,f=s-o,d=lY(c,f,l,u);if(Math.abs(d)<1e-6)return null;var p=t-i,v=e-o,g=lY(p,v,c,f)/d;return g<0||g>1?null:new ot(g*l+t,g*u+e)}function Kct(t,e,n){var r=new ot;ot.sub(r,n,e),r.normalize();var i=new ot;ot.sub(i,t,e);var o=i.dot(r);return o}function Ap(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function Jct(t,e,n){for(var r=t.length,i=[],o=0;o<r;o++){var a=t[o],s=t[(o+1)%r],l=qct(a[0],a[1],s[0],s[1],e.x,e.y,n.x,n.y);l&&i.push({projPt:Kct(l,e,n),pt:l,idx:o})}if(i.length<2)return[{points:t},{points:t}];i.sort(function(m,y){return m.projPt-y.projPt});var u=i[0],c=i[i.length-1];if(c.idx<u.idx){var f=u;u=c,c=f}for(var d=[u.pt.x,u.pt.y],p=[c.pt.x,c.pt.y],v=[d],g=[p],o=u.idx+1;o<=c.idx;o++)Ap(v,t[o].slice());Ap(v,p),Ap(v,d);for(var o=c.idx+1;o<=u.idx+r;o++)Ap(g,t[o%r].slice());return Ap(g,d),Ap(g,p),[{points:v},{points:g}]}function uY(t){var e=t.points,n=[],r=[];OP(e,n,r);var i=new at(n[0],n[1],r[0]-n[0],r[1]-n[1]),o=i.width,a=i.height,s=i.x,l=i.y,u=new ot,c=new ot;return o>a?(u.x=c.x=s+o/2,u.y=l,c.y=l+a):(u.y=c.y=l+a/2,u.x=s,c.x=s+o),Jct(e,u,c)}function SC(t,e,n,r){if(n===1)r.push(e);else{var i=Math.floor(n/2),o=t(e);SC(t,o[0],i,r),SC(t,o[1],n-i,r)}return r}function eft(t,e){for(var n=[],r=0;r<e;r++)n.push(G8(t));return n}function tft(t,e){e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel}function nft(t){for(var e=[],n=0;n<t.length;)e.push([t[n++],t[n++]]);return e}function rft(t,e){var n=[],r=t.shape,i;switch(t.type){case"rect":Yct(r,e,n),i=Pt;break;case"sector":sY(r,e,n),i=Ni;break;case"circle":sY({r0:0,r:r.r,startAngle:0,endAngle:Math.PI*2,cx:r.cx,cy:r.cy},e,n),i=Ni;break;default:var o=t.getComputedTransform(),a=o?Math.sqrt(Math.max(o[0]*o[0]+o[1]*o[1],o[2]*o[2]+o[3]*o[3])):1,s=ye(Xct(t.getUpdatedPathProxy(),a),function(y){return nft(y)}),l=s.length;if(l===0)SC(uY,{points:s[0]},e,n);else if(l===e)for(var u=0;u<l;u++)n.push({points:s[u]});else{var c=0,f=ye(s,function(y){var b=[],O=[];OP(y,b,O);var w=(O[1]-b[1])*(O[0]-b[0]);return c+=w,{poly:y,area:w}});f.sort(function(y,b){return b.area-y.area});for(var d=e,u=0;u<l;u++){var p=f[u];if(d<=0)break;var v=u===l-1?d:Math.ceil(p.area/c*e);v<0||(SC(uY,{points:p.poly},v,n),d-=v)}}i=Li;break}if(!i)return eft(t,e);for(var g=[],u=0;u<n.length;u++){var m=new i;m.setShape(n[u]),tft(t,m),g.push(m)}return g}function ift(t,e){var n=t.length,r=e.length;if(n===r)return[t,e];for(var i=[],o=[],a=n<r?t:e,s=Math.min(n,r),l=Math.abs(r-n)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,f=[a[0],a[1]],d=l,p=2;p<s;){var v=a[p-2],g=a[p-1],m=a[p++],y=a[p++],b=a[p++],O=a[p++],w=a[p++],x=a[p++];if(d<=0){f.push(m,y,b,O,w,x);continue}for(var S=Math.min(d,c-1)+1,T=1;T<=S;T++){var $=T/S;Ic(v,m,b,w,$,i),Ic(g,y,O,x,$,o),v=i[3],g=o[3],f.push(i[1],o[1],i[2],o[2],v,g),m=i[5],y=o[5],b=i[6],O=o[6]}d-=S-1}return a===t?[f,e]:[t,f]}function cY(t,e){for(var n=t.length,r=t[n-2],i=t[n-1],o=[],a=0;a<e.length;)o[a++]=r,o[a++]=i;return o}function oft(t,e){for(var n,r,i,o=[],a=[],s=0;s<Math.max(t.length,e.length);s++){var l=t[s],u=e[s],c=void 0,f=void 0;l?u?(n=ift(l,u),c=n[0],f=n[1],r=c,i=f):(f=cY(i||l,l),c=l):(c=cY(r||u,u),f=u),o.push(c),a.push(f)}return[o,a]}function fY(t){for(var e=0,n=0,r=0,i=t.length,o=0,a=i-2;o<i;a=o,o+=2){var s=t[a],l=t[a+1],u=t[o],c=t[o+1],f=s*c-u*l;e+=f,n+=(s+u)*f,r+=(l+c)*f}return e===0?[t[0]||0,t[1]||0]:[n/e/3,r/e/3,e]}function aft(t,e,n,r){for(var i=(t.length-2)/6,o=1/0,a=0,s=t.length,l=s-2,u=0;u<i;u++){for(var c=u*6,f=0,d=0;d<s;d+=2){var p=d===0?c:(c+d-2)%l+2,v=t[p]-n[0],g=t[p+1]-n[1],m=e[d]-r[0],y=e[d+1]-r[1],b=m-v,O=y-g;f+=b*b+O*O}f<o&&(o=f,a=u)}return a}function sft(t){for(var e=[],n=t.length,r=0;r<n;r+=2)e[r]=t[n-r-2],e[r+1]=t[n-r-1];return e}function lft(t,e,n,r){for(var i=[],o,a=0;a<t.length;a++){var s=t[a],l=e[a],u=fY(s),c=fY(l);o==null&&(o=u[2]<0!=c[2]<0);var f=[],d=[],p=0,v=1/0,g=[],m=s.length;o&&(s=sft(s));for(var y=aft(s,l,u,c)*6,b=m-2,O=0;O<b;O+=2){var w=(y+O)%b+2;f[O+2]=s[w]-u[0],f[O+3]=s[w+1]-u[1]}f[0]=s[y]-u[0],f[1]=s[y+1]-u[1];for(var x=r/n,S=-r/2;S<=r/2;S+=x){for(var T=Math.sin(S),$=Math.cos(S),A=0,O=0;O<s.length;O+=2){var P=f[O],M=f[O+1],I=l[O]-c[0],R=l[O+1]-c[1],L=I*$-R*T,D=I*T+R*$;g[O]=L,g[O+1]=D;var B=L-P,F=D-M;A+=B*B+F*F}if(A<v){v=A,p=S;for(var z=0;z<g.length;z++)d[z]=g[z]}}i.push({from:f,to:d,fromCp:u,toCp:c,rotation:-p})}return i}function CC(t){return t.__isCombineMorphing}var Lde="__mOriginal_";function TC(t,e,n){var r=Lde+e,i=t[r]||t[e];t[r]||(t[r]=t[e]);var o=n.replace,a=n.after,s=n.before;t[e]=function(){var l=arguments,u;return s&&s.apply(this,l),o?u=o.apply(this,l):u=i.apply(this,l),a&&a.apply(this,l),u}}function _y(t,e){var n=Lde+e;t[n]&&(t[e]=t[n],t[n]=null)}function dY(t,e){for(var n=0;n<t.length;n++)for(var r=t[n],i=0;i<r.length;){var o=r[i],a=r[i+1];r[i++]=e[0]*o+e[2]*a+e[4],r[i++]=e[1]*o+e[3]*a+e[5]}}function Bde(t,e){var n=t.getUpdatedPathProxy(),r=e.getUpdatedPathProxy(),i=oft(jk(n),jk(r)),o=i[0],a=i[1],s=t.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&dY(o,s),l&&dY(a,l),TC(e,"updateTransform",{replace:u}),e.transform=null;var c=lft(o,a,10,Math.PI),f=[];TC(e,"buildPath",{replace:function(d){for(var p=e.__morphT,v=1-p,g=[],m=0;m<c.length;m++){var y=c[m],b=y.from,O=y.to,w=y.rotation*p,x=y.fromCp,S=y.toCp,T=Math.sin(w),$=Math.cos(w);ay(g,x,S,p);for(var A=0;A<b.length;A+=2){var P=b[A],M=b[A+1],I=O[A],R=O[A+1],L=P*v+I*p,D=M*v+R*p;f[A]=L*$-D*T+g[0],f[A+1]=L*T+D*$+g[1]}var B=f[0],F=f[1];d.moveTo(B,F);for(var A=2;A<b.length;){var I=f[A++],R=f[A++],z=f[A++],W=f[A++],j=f[A++],H=f[A++];B===I&&F===R&&z===j&&W===H?d.lineTo(j,H):d.bezierCurveTo(I,R,z,W,j,H),B=j,F=H}}}})}function B3(t,e,n){if(!t||!e)return e;var r=n.done,i=n.during;Bde(t,e),e.__morphT=0;function o(){_y(e,"buildPath"),_y(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},Ge({during:function(a){e.dirtyShape(),i&&i(a)},done:function(){o(),r&&r()}},n)),e}function uft(t,e,n,r,i,o){var a=16;t=i===n?0:Math.round(32767*(t-n)/(i-n)),e=o===r?0:Math.round(32767*(e-r)/(o-r));for(var s=0,l,u=(1<<a)/2;u>0;u/=2){var c=0,f=0;(t&u)>0&&(c=1),(e&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(t=u-1-t,e=u-1-e),l=t,t=e,e=l)}return s}function PC(t){var e=1/0,n=1/0,r=-1/0,i=-1/0,o=ye(t,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return e=Math.min(c,e),n=Math.min(f,n),r=Math.max(c,r),i=Math.max(f,i),[c,f]}),a=ye(o,function(s,l){return{cp:s,z:uft(s[0],s[1],e,n,r,i),path:t[l]}});return a.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function Vde(t){return rft(t.path,t.count)}function Zk(){return{fromIndividuals:[],toIndividuals:[],count:0}}function cft(t,e,n){var r=[];function i(x){for(var S=0;S<x.length;S++){var T=x[S];CC(T)?i(T.childrenRef()):T instanceof mt&&r.push(T)}}i(t);var o=r.length;if(!o)return Zk();var a=n.dividePath||Vde,s=a({path:e,count:o});if(s.length!==o)return console.error("Invalid morphing: unmatched splitted path"),Zk();r=PC(r),s=PC(s);for(var l=n.done,u=n.during,c=n.individualDelay,f=new Gl,d=0;d<o;d++){var p=r[d],v=s[d];v.parent=e,v.copyTransform(f),c||Bde(p,v)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function g(x){for(var S=0;S<s.length;S++)s[S].addSelfToZr(x)}TC(e,"addSelfToZr",{after:function(x){g(x)}}),TC(e,"removeSelfFromZr",{after:function(x){for(var S=0;S<s.length;S++)s[S].removeSelfFromZr(x)}});function m(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,_y(e,"addSelfToZr"),_y(e,"removeSelfFromZr")}var y=s.length;if(c)for(var b=y,O=function(){b--,b===0&&(m(),l&&l())},d=0;d<y;d++){var w=c?Ge({delay:(n.delay||0)+c(d,y,r[d],s[d]),done:O},n):n;B3(r[d],s[d],w)}else e.__morphT=0,e.animateTo({__morphT:1},Ge({during:function(x){for(var S=0;S<y;S++){var T=s[S];T.__morphT=e.__morphT,T.dirtyShape()}u&&u(x)},done:function(){m();for(var x=0;x<t.length;x++)_y(t[x],"updateTransform");l&&l()}},n));return e.__zr&&g(e.__zr),{fromIndividuals:r,toIndividuals:s,count:y}}function fft(t,e,n){var r=e.length,i=[],o=n.dividePath||Vde;function a(p){for(var v=0;v<p.length;v++){var g=p[v];CC(g)?a(g.childrenRef()):g instanceof mt&&i.push(g)}}if(CC(t)){a(t.childrenRef());var s=i.length;if(s<r)for(var l=0,u=s;u<r;u++)i.push(G8(i[l++%s]));i.length=r}else{i=o({path:t,count:r});for(var c=t.getComputedTransform(),u=0;u<i.length;u++)i[u].setLocalTransform(c);if(i.length!==r)return console.error("Invalid morphing: unmatched splitted path"),Zk()}i=PC(i),e=PC(e);for(var f=n.individualDelay,u=0;u<r;u++){var d=f?Ge({delay:(n.delay||0)+f(u,r,i[u],e[u])},n):n;B3(i[u],e[u],d)}return{fromIndividuals:i,toIndividuals:e,count:e.length}}function hY(t){return ve(t[0])}function pY(t,e){for(var n=[],r=t.length,i=0;i<r;i++)n.push({one:t[i],many:[]});for(var i=0;i<e.length;i++){var o=e[i].length,a=void 0;for(a=0;a<o;a++)n[a%r].many.push(e[i][a])}for(var s=0,i=r-1;i>=0;i--)if(!n[i].many.length){var l=n[s].many;if(l.length<=1)if(s)s=0;else return n;var o=l.length,u=Math.ceil(o/2);n[i].many=l.slice(u,o),n[s].many=l.slice(0,u),s++}return n}var dft={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),r=0;r<t.count;r++){var i=G8(t.path);i.setStyle("opacity",n),e.push(i)}return e},split:null};function JM(t,e,n,r,i,o){if(!t.length||!e.length)return;var a=Mg("update",r,i);if(!(a&&a.duration>0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},a),u,c;hY(t)&&(u=t,c=e),hY(e)&&(u=e,c=t);function f(y,b,O,w,x){var S=y.many,T=y.one;if(S.length===1&&!x){var $=b?S[0]:T,A=b?T:S[0];if(CC($))f({many:[$],one:A},!0,O,w,!0);else{var P=s?Ge({delay:s(O,w)},l):l;B3($,A,P),o($,A,$,A,P)}}else for(var M=Ge({dividePath:dft[n],individualDelay:s&&function(F,z,W,j){return s(F+O,w)}},l),I=b?cft(S,T,M):fft(T,S,M),R=I.fromIndividuals,L=I.toIndividuals,D=R.length,B=0;B<D;B++){var P=s?Ge({delay:s(B,D)},l):l;o(R[B],L[B],b?S[B]:y.one,b?y.one:S[B],P)}}for(var d=u?u===t:t.length>e.length,p=u?pY(c,u):pY(d?e:t,[d?t:e]),v=0,g=0;g<p.length;g++)v+=p[g].many.length;for(var m=0,g=0;g<p.length;g++)f(p[g],d,m,v),m+=p[g].many.length}function td(t){if(!t)return[];if(ve(t)){for(var e=[],n=0;n<t.length;n++)e.push(td(t[n]));return e}var r=[];return t.traverse(function(i){i instanceof mt&&!i.disableMorphing&&!i.invisible&&!i.ignore&&r.push(i)}),r}var zde=1e4,hft=0,vY=1,gY=2,pft=$t();function vft(t,e){for(var n=t.dimensions,r=0;r<n.length;r++){var i=t.getDimensionInfo(n[r]);if(i&&i.otherDims[e]===0)return n[r]}}function gft(t,e,n){var r=t.getDimensionInfo(n),i=r&&r.ordinalMeta;if(r){var o=t.get(r.name,e);return i&&i.categories[o]||o+""}}function mY(t,e,n,r){var i=r?"itemChildGroupId":"itemGroupId",o=vft(t,i);if(o){var a=gft(t,e,o);return a}var s=t.getRawDataItem(e),l=r?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!r)return n||t.getId(e)}function yY(t){var e=[];return V(t,function(n){var r=n.data,i=n.dataGroupId;if(r.count()>zde){process.env.NODE_ENV!=="production"&&Mn("Universal transition is disabled on large data > 10k.");return}for(var o=r.getIndices(),a=0;a<o.length;a++)e.push({data:r,groupId:mY(r,a,i,!1),childGroupId:mY(r,a,i,!0),divide:n.divide,dataIndex:a})}),e}function eI(t,e,n){t.traverse(function(r){r instanceof mt&&gn(r,{style:{opacity:0}},e,{dataIndex:n,isFrom:!0})})}function tI(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function Ep(t){t.stopAnimation(),t.isGroup&&t.traverse(function(e){e.stopAnimation()})}function mft(t,e,n){var r=Mg("update",n,e);r&&t.traverse(function(i){if(i instanceof $a){var o=Hje(i);o&&i.animateFrom({style:o},r)}})}function yft(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++){var i=t[r],o=e[r];if(i.data.getId(i.dataIndex)!==o.data.getId(o.dataIndex))return!1}return!0}function Fde(t,e,n){var r=yY(t),i=yY(e);function o(O,w,x,S,T){(x||O)&&w.animateFrom({style:x&&x!==O?he(he({},x.style),O.style):O.style},T)}var a=!1,s=hft,l=Be(),u=Be();r.forEach(function(O){O.groupId&&l.set(O.groupId,!0),O.childGroupId&&u.set(O.childGroupId,!0)});for(var c=0;c<i.length;c++){var f=i[c].groupId;if(u.get(f)){s=vY;break}var d=i[c].childGroupId;if(d&&l.get(d)){s=gY;break}}function p(O,w){return function(x){var S=x.data,T=x.dataIndex;return w?S.getId(T):O?s===vY?x.childGroupId:x.groupId:s===gY?x.childGroupId:x.groupId}}var v=yft(r,i),g={};if(!v)for(var c=0;c<i.length;c++){var m=i[c],y=m.data.getItemGraphicEl(m.dataIndex);y&&(g[y.id]=!0)}function b(O,w){var x=r[w],S=i[O],T=S.data.hostModel,$=x.data.getItemGraphicEl(x.dataIndex),A=S.data.getItemGraphicEl(S.dataIndex);if($===A){A&&mft(A,S.dataIndex,T);return}$&&g[$.id]||A&&(Ep(A),$?(Ep($),tI($),a=!0,JM(td($),td(A),S.divide,T,O,o)):eI(A,T,O))}new au(r,i,p(!0,v),p(!1,v),null,"multiple").update(b).updateManyToOne(function(O,w){var x=i[O],S=x.data,T=S.hostModel,$=S.getItemGraphicEl(x.dataIndex),A=Yt(ye(w,function(P){return r[P].data.getItemGraphicEl(r[P].dataIndex)}),function(P){return P&&P!==$&&!g[P.id]});$&&(Ep($),A.length?(V(A,function(P){Ep(P),tI(P)}),a=!0,JM(td(A),td($),x.divide,T,O,o)):eI($,T,x.dataIndex))}).updateOneToMany(function(O,w){var x=r[w],S=x.data.getItemGraphicEl(x.dataIndex);if(!(S&&g[S.id])){var T=Yt(ye(O,function(A){return i[A].data.getItemGraphicEl(i[A].dataIndex)}),function(A){return A&&A!==S}),$=i[O[0]].data.hostModel;T.length&&(V(T,function(A){return Ep(A)}),S?(Ep(S),tI(S),a=!0,JM(td(S),td(T),x.divide,$,O[0],o)):V(T,function(A){return eI(A,$,O[0])}))}}).updateManyToMany(function(O,w){new au(w,O,function(x){return r[x].data.getId(r[x].dataIndex)},function(x){return i[x].data.getId(i[x].dataIndex)}).update(function(x,S){b(O[x],w[S])}).execute()}).execute(),a&&V(e,function(O){var w=O.data,x=w.hostModel,S=x&&n.getViewOfSeriesModel(x),T=Mg("update",x,0);S&&x.isAnimationEnabled()&&T&&T.duration>0&&S.group.traverse(function($){$ instanceof mt&&!$.animators.length&&$.animateFrom({style:{opacity:0}},T)})})}function bY(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function _Y(t){return ve(t)?t.sort().join(","):t}function Zu(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function bft(t,e){var n=Be(),r=Be(),i=Be();V(t.oldSeries,function(a,s){var l=t.oldDataGroupIds[s],u=t.oldData[s],c=bY(a),f=_Y(c);r.set(f,{dataGroupId:l,data:u}),ve(c)&&V(c,function(d){i.set(d,{key:f,dataGroupId:l,data:u})})});function o(a){n.get(a)&&Mn("Duplicated seriesKey in universalTransition "+a)}return V(e.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var s=a.get("dataGroupId"),l=a.getData(),u=bY(a),c=_Y(u),f=r.get(c);if(f)process.env.NODE_ENV!=="production"&&o(c),n.set(c,{oldSeries:[{dataGroupId:f.dataGroupId,divide:Zu(f.data),data:f.data}],newSeries:[{dataGroupId:s,divide:Zu(l),data:l}]});else if(ve(u)){process.env.NODE_ENV!=="production"&&o(c);var d=[];V(u,function(g){var m=r.get(g);m.data&&d.push({dataGroupId:m.dataGroupId,divide:Zu(m.data),data:m.data})}),d.length&&n.set(c,{oldSeries:d,newSeries:[{dataGroupId:s,data:l,divide:Zu(l)}]})}else{var p=i.get(u);if(p){var v=n.get(p.key);v||(v={oldSeries:[{dataGroupId:p.dataGroupId,data:p.data,divide:Zu(p.data)}],newSeries:[]},n.set(p.key,v)),v.newSeries.push({dataGroupId:s,data:l,divide:Zu(l)})}}}}),n}function OY(t,e){for(var n=0;n<t.length;n++){var r=e.seriesIndex!=null&&e.seriesIndex===t[n].seriesIndex||e.seriesId!=null&&e.seriesId===t[n].id;if(r)return n}}function _ft(t,e,n,r){var i=[],o=[];V(nn(t.from),function(a){var s=OY(e.oldSeries,a);s>=0&&i.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:Zu(e.oldData[s]),groupIdDim:a.dimension})}),V(nn(t.to),function(a){var s=OY(n.updatedSeries,a);if(s>=0){var l=n.updatedSeries[s].getData();o.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:Zu(l),groupIdDim:a.dimension})}}),i.length>0&&o.length>0&&Fde(i,o,r)}function Oft(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,n,r){V(nn(r.seriesTransition),function(i){V(nn(i.to),function(o){for(var a=r.updatedSeries,s=0;s<a.length;s++)(o.seriesIndex!=null&&o.seriesIndex===a[s].seriesIndex||o.seriesId!=null&&o.seriesId===a[s].id)&&(a[s][Ox]=!0)})})}),t.registerUpdateLifecycle("series:transition",function(e,n,r){var i=pft(n);if(i.oldSeries&&r.updatedSeries&&r.optionChanged){var o=r.seriesTransition;if(o)V(nn(o),function(p){_ft(p,i,r,n)});else{var a=bft(i,r);V(a.keys(),function(p){var v=a.get(p);Fde(v.oldSeries,v.newSeries,n)})}V(r.updatedSeries,function(p){p[Ox]&&(p[Ox]=!1)})}for(var s=e.getSeries(),l=i.oldSeries=[],u=i.oldDataGroupIds=[],c=i.oldData=[],f=0;f<s.length;f++){var d=s[f].getData();d.count()<zde&&(l.push(s[f]),u.push(s[f].get("dataGroupId")),c.push(d))}})}vt([AKe]);vt([SKe]);vt([XKe,cJe,_Je,JJe,fet,Ket,Ttt,unt,Mnt,Lnt,jnt,zrt,fit,wit,Bit,Wit,Kit,oot,got,wot,Iot,pat]);vt(Dat);vt(ast);vt(Bce);vt(bst);vt(xfe);vt(xst);vt(Ist);vt(blt);vt(Blt);vt(I_);vt(tut);vt(iut);vt(put);vt(Out);vt(Put);vt(Dut);vt(Qut);vt(sct);vt(Pde);vt($de);vt(Pct);vt(Dde);vt(Rde);vt(Ict);vt(Gct);vt(Zct);vt(Oft);vt(Hqe);const wft=Object.freeze(Object.defineProperty({__proto__:null,Axis:ka,ChartView:Kt,ComponentModel:pt,ComponentView:hn,List:fi,Model:tn,PRIORITY:jle,SeriesModel:rn,color:eHe,connect:YXe,dataTool:rYe,dependencies:DXe,disConnect:qXe,disconnect:tue,dispose:KXe,env:Ct,extendChartView:Mqe,extendComponentModel:$qe,extendComponentView:Aqe,extendSeriesModel:Eqe,format:gqe,getCoordinateSystemDimensions:eYe,getInstanceByDom:w5,getInstanceById:JXe,getMap:nYe,graphic:vqe,helper:sqe,init:eue,innerDrawElementOnCanvas:y5,matrix:M9e,number:hqe,parseGeoJSON:ak,parseGeoJson:ak,registerAction:ms,registerCoordinateSystem:iue,registerLayout:oue,registerLoading:P5,registerLocale:e5,registerMap:aue,registerPostInit:nue,registerPostUpdate:rue,registerPreprocessor:S5,registerProcessor:C5,registerTheme:x5,registerTransform:sue,registerUpdateLifecycle:zP,registerVisual:Jc,setCanvasCreator:tYe,setPlatformAPI:Qoe,throttle:BP,time:pqe,use:vt,util:mqe,vector:m9e,version:IXe,zrUtil:c9e,zrender:NHe},Symbol.toStringTag,{value:"Module"}));function xft(t){return h.getCurrentScope()?(h.onScopeDispose(t),!0):!1}function $C(t){return typeof t=="function"?t():h.unref(t)}const Sft=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Cft=Object.prototype.toString,Tft=t=>Cft.call(t)==="[object Object]",Xk=()=>{};function Pft(t,e){function n(...r){return new Promise((i,o)=>{Promise.resolve(t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(i).catch(o)})}return n}function $ft(t,e={}){let n,r,i=Xk;const o=s=>{clearTimeout(s),i(),i=Xk};return s=>{const l=$C(t),u=$C(e.maxWait);return n&&o(n),l<=0||u!==void 0&&u<=0?(r&&(o(r),r=null),Promise.resolve(s())):new Promise((c,f)=>{i=e.rejectOnCancel?f:c,u&&!r&&(r=setTimeout(()=>{n&&o(n),r=null,c(s())},u)),n=setTimeout(()=>{r&&o(r),r=null,c(s())},l)})}}function Aft(t){return h.getCurrentInstance()}function Eft(t,e=200,n={}){return Pft($ft(e,n),t)}function Mft(t,e){Aft()&&h.onUnmounted(t,e)}function Ift(t){var e;const n=$C(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Dft=Sft?window:void 0;function Rft(...t){let e,n,r,i;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,r,i]=t,e=Dft):[e,n,r,i]=t,!e)return Xk;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const o=[],a=()=>{o.forEach(c=>c()),o.length=0},s=(c,f,d,p)=>(c.addEventListener(f,d,p),()=>c.removeEventListener(f,d,p)),l=h.watch(()=>[Ift(e),$C(i)],([c,f])=>{if(a(),!c)return;const d=Tft(f)?{...f}:f;o.push(...n.flatMap(p=>r.map(v=>s(c,p,v,d))))},{immediate:!0,flush:"post"}),u=()=>{l(),a()};return xft(u),u}function kft(t,e="default"){let n=null,r=s;const i=h.ref({});let o;const a=h.computed(()=>i.value);r=Eft(s,200);function s(){n==null||n.resize({animation:{duration:300,easing:"quadraticIn"}})}function l(f=e){const d=h.unref(t);if(!d||!h.unref(d))return;n=eue(d,f),o=Rft(window,"resize",r)}function u(f,d=!1){return i.value=f,new Promise(p=>{var v;((v=h.unref(t))==null?void 0:v.offsetHeight)===0&&setTimeout(()=>{u(h.unref(a)),p(null)},30),h.nextTick(()=>{setTimeout(()=>{!n&&(l("default"),!n)||(d&&(n==null||n.clear()),n==null||n.setOption(h.unref(a)),p(null))},30)})})}h.watch(()=>e,f=>{n&&(n.dispose(),l(f),u(i.value))}),Mft(()=>{n&&(o(),n.dispose(),n=null)});function c(){return n||l("default"),n}return{setOptions:u,resize:s,echarts:wft,getInstance:c}}const V3=h.defineComponent({__name:"Charts",props:{echartsOptions:{},width:{},height:{},loading:{type:Boolean}},setup(t){const e=t,n=h.ref(null),{setOptions:r,resize:i}=kft(n),o=h.h(sl,{style:{fontSize:"24px"}});return h.watch(()=>[e.width,e.height],JPe(async()=>{i()},200)),h.watch(()=>e,async()=>{await h.nextTick();const{echartsOptions:a}=e;r(a)},{immediate:!0,deep:!0}),(a,s)=>(h.openBlock(),h.createBlock(h.unref(ry),{spinning:a.loading,indicator:h.unref(o)},{default:h.withCtx(()=>[h.createElementVNode("div",{ref_key:"chartRef",ref:n,style:h.normalizeStyle({width:a.width+"px",height:a.height+"px"})},null,4)]),_:1},8,["spinning","indicator"]))}});function z3(t){return dee(t,CQe)}const F3={type:Object,default:()=>({sourceType:er.STATIC,data:[],url:"",method:"GET",params:{},headers:{},refreshTime:0,dataProcess:()=>[]})},Nft=(t,e)=>new Promise((n,r)=>{const i=new Blob([`
  371. self.onmessage = function(e) {
  372. self.postMessage((${t}).call(null, e.data));
  373. }
  374. `],{type:"application/javascript"}),o=new Worker(URL.createObjectURL(i));o.postMessage(JSON.parse(e)),o.onmessage=a=>{o.terminate(),n(a.data)},o.onerror=a=>{o.terminate(),r(a)}}),JP={width:{type:Number,default:400},height:{type:Number,default:260},dataSource:F3,title:{type:Object},legend:{type:Object},backgroundColor:{type:String},grid:{type:Object},tooltip:{type:Object},xAxis:{type:Object},yAxis:{type:Object},series:{type:Array},seriesExtend:{type:Object,default:()=>Wde}},Lft=[],Wde={lineStyle:{type:"solid",width:1},symbol:"rect",symbolSize:4,symbolRotate:0,smooth:!1,step:!1},Bft=z3({title:{text:"折线图标题"},xAxis:{data:["轴标签A","轴标签B","轴标签C","轴标签D"]},series:Lft,seriesExtend:Wde}),Qde={container:{props:{width:400,height:260}},props:{dataSource:{sourceType:er.STATIC,data:{xData:["轴标签A","轴标签B","轴标签C","轴标签D"],series:[{type:"line",name:"系列1",data:[89.3,92.1,94.4,85.4]},{type:"line",name:"系列2",data:[95.8,89.4,91.2,76.9]}]},url:location.origin+"/mock/api/get/example/line",method:"POST",params:{},headers:{},refreshTime:0,dataProcess:`
  375. (res) => {
  376. // 取出列表
  377. const data = res.data;
  378. // x轴数据
  379. const xData = data.map((item) => item.name);
  380. // 系列数据
  381. const series = [
  382. { type: 'line', name: '苹果', data: data.map(item => item.apple) },
  383. { type: 'line', name: 'VIVO', data: data.map(item => item.vivo) },
  384. { type: 'line', name: '小米', data: data.map(item => item.mi) },
  385. ];
  386. // 返回图表数据
  387. return { xData, series };
  388. }
  389. `},...Bft}},Hde=(t,{manual:e,ready:n=!0,refreshDeps:r=[],refreshDepsAction:i})=>{const o=h.ref(!1);return h.watchEffect(()=>{!e&&t.options.refreshDeps!==!0&&(o.value=h.unref(n))}),r instanceof Array?h.watch([o,...r],([a])=>{a&&!e&&a&&(i?i():t.refresh())},{deep:!0,immediate:!1}):h.watch(o,a=>{!e&&a&&(i?i():t.refresh())}),{name:"autoRunPlugin",onBefore:()=>{if(!h.unref(n))return{stopNow:!0}}}};Hde.onInit=({ready:t=!0,manual:e})=>({loading:!e&&h.unref(t)});const Ex=new Map,Vft=(t,e,n)=>{const r=Ex.get(t);r!=null&&r.timer&&clearTimeout(r.timer);let i;e>-1&&(i=setTimeout(()=>{Ex.delete(t)},e)),Ex.set(t,{...n,timer:i})},zft=t=>Ex.get(t),Mx=new Map,Fft=t=>Mx.get(t),Wft=(t,e)=>{Mx.set(t,e),e.then(n=>(Mx.delete(t),n)).catch(n=>{throw Mx.delete(t),n})},cd={},Qft=[],Hft=(t,e)=>{cd[t]&&(cd[t].forEach(n=>n(e)),Qft.forEach(n=>n({type:t,data:e})))},nI=(t,e)=>(cd[t]||(cd[t]=[]),cd[t].push(e),function(){const r=cd[t].indexOf(e);cd[t].splice(r,1)}),Gft=(t,{cacheKey:e,cacheTime:n=5*60*1e3,staleTime:r=0,setCache:i,getCache:o})=>{const a=h.ref(),s=h.ref(),l=(c,f)=>{i?i(f):Vft(c,n,f),Hft(c,f.data)},u=(c,f=[])=>o?o(f):zft(c);return h.watchEffect(()=>{if(!e)return;const c=u(e);c&&Object.hasOwnProperty.call(c,"data")&&(t.state.data=c.data,t.state.params=c.params,(r===-1||new Date().getTime()-c.time<=r)&&(t.state.loading=!1)),a.value=nI(e,f=>{t.setState({data:f})})}),h.onScopeDispose(()=>{var c;(c=a.value)==null||c.call(a)}),e?{name:"cachePlugin",onBefore:c=>{const f=u(e,c);return!f||!Object.hasOwnProperty.call(f,"data")?{}:r===-1||new Date().getTime()-f.time<=r?{loading:!1,data:f==null?void 0:f.data,returnNow:!0}:{data:f==null?void 0:f.data}},onRequest:(c,f)=>{let d=Fft(e);return d&&d!==s.value?{servicePromise:d}:(d=c(...f),s.value=d,Wft(e,d),{servicePromise:d})},onSuccess:(c,f)=>{var d;e&&((d=a.value)==null||d.call(a),l(e,{data:c,params:f,time:new Date().getTime()}),a.value=nI(e,p=>{t.setState({data:p})}))},onMutate:c=>{var f;e&&((f=a.value)==null||f.call(a),l(e,{data:c,params:t.state.params,time:new Date().getTime()}),a.value=nI(e,d=>{t.setState({data:d})}))}}:{}};function jft(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var ys=jft,Uft=typeof zl=="object"&&zl&&zl.Object===Object&&zl,Gde=Uft,Zft=Gde,Xft=typeof self=="object"&&self&&self.Object===Object&&self,Yft=Zft||Xft||Function("return this")(),bs=Yft,qft=bs,Kft=function(){return qft.Date.now()},Jft=Kft,edt=/\s/;function tdt(t){for(var e=t.length;e--&&edt.test(t.charAt(e)););return e}var ndt=tdt,rdt=ndt,idt=/^\s+/;function odt(t){return t&&t.slice(0,rdt(t)+1).replace(idt,"")}var adt=odt,sdt=bs,ldt=sdt.Symbol,e2=ldt,wY=e2,jde=Object.prototype,udt=jde.hasOwnProperty,cdt=jde.toString,u0=wY?wY.toStringTag:void 0;function fdt(t){var e=udt.call(t,u0),n=t[u0];try{t[u0]=void 0;var r=!0}catch{}var i=cdt.call(t);return r&&(e?t[u0]=n:delete t[u0]),i}var ddt=fdt,hdt=Object.prototype,pdt=hdt.toString;function vdt(t){return pdt.call(t)}var gdt=vdt,xY=e2,mdt=ddt,ydt=gdt,bdt="[object Null]",_dt="[object Undefined]",SY=xY?xY.toStringTag:void 0;function Odt(t){return t==null?t===void 0?_dt:bdt:SY&&SY in Object(t)?mdt(t):ydt(t)}var Gg=Odt;function wdt(t){return t!=null&&typeof t=="object"}var ef=wdt,xdt=Gg,Sdt=ef,Cdt="[object Symbol]";function Tdt(t){return typeof t=="symbol"||Sdt(t)&&xdt(t)==Cdt}var Pdt=Tdt,$dt=adt,CY=ys,Adt=Pdt,TY=NaN,Edt=/^[-+]0x[0-9a-f]+$/i,Mdt=/^0b[01]+$/i,Idt=/^0o[0-7]+$/i,Ddt=parseInt;function Rdt(t){if(typeof t=="number")return t;if(Adt(t))return TY;if(CY(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=CY(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=$dt(t);var n=Mdt.test(t);return n||Idt.test(t)?Ddt(t.slice(2),n?2:8):Edt.test(t)?TY:+t}var kdt=Rdt,Ndt=ys,rI=Jft,PY=kdt,Ldt="Expected a function",Bdt=Math.max,Vdt=Math.min;function zdt(t,e,n){var r,i,o,a,s,l,u=0,c=!1,f=!1,d=!0;if(typeof t!="function")throw new TypeError(Ldt);e=PY(e)||0,Ndt(n)&&(c=!!n.leading,f="maxWait"in n,o=f?Bdt(PY(n.maxWait)||0,e):o,d="trailing"in n?!!n.trailing:d);function p(S){var T=r,$=i;return r=i=void 0,u=S,a=t.apply($,T),a}function v(S){return u=S,s=setTimeout(y,e),c?p(S):a}function g(S){var T=S-l,$=S-u,A=e-T;return f?Vdt(A,o-$):A}function m(S){var T=S-l,$=S-u;return l===void 0||T>=e||T<0||f&&$>=o}function y(){var S=rI();if(m(S))return b(S);s=setTimeout(y,g(S))}function b(S){return s=void 0,d&&r?p(S):(r=i=void 0,a)}function O(){s!==void 0&&clearTimeout(s),u=0,r=l=i=s=void 0}function w(){return s===void 0?a:b(rI())}function x(){var S=rI(),T=m(S);if(r=arguments,i=this,l=S,T){if(s===void 0)return v(l);if(f)return clearTimeout(s),s=setTimeout(y,e),p(l)}return s===void 0&&(s=setTimeout(y,e)),a}return x.cancel=O,x.flush=w,x}var Ude=zdt;const Fdt=bT(Ude),Wdt=(t,{debounceWait:e,debounceLeading:n,debounceTrailing:r,debounceMaxWait:i})=>{const o=h.ref(),a=h.computed(()=>{const s={},l=h.unref(n),u=h.unref(r),c=h.unref(i);return l!==void 0&&(s.leading=l),u!==void 0&&(s.trailing=u),c!==void 0&&(s.maxWait=c),s});return h.watchEffect(s=>{if(h.unref(e)){const l=t.runAsync.bind(t);o.value=Fdt(u=>{u()},h.unref(e),a.value),t.runAsync=(...u)=>new Promise((c,f)=>{var d;(d=o.value)==null||d.call(o,()=>{l(...u).then(c).catch(f)})}),s(()=>{var u;(u=o.value)==null||u.cancel(),t.runAsync=l})}}),h.unref(e)?{name:"debouncePlugin",onCancel:()=>{var s;(s=o.value)==null||s.cancel()}}:{}};var Qdt=Object.defineProperty,Hdt=(t,e,n)=>e in t?Qdt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,$Y=(t,e,n)=>(Hdt(t,typeof e!="symbol"?e+"":e,n),n);class Gdt{constructor(){$Y(this,"table",{}),$Y(this,"hashTable",{})}insert(e){const n=Symbol(e);return this.table[e]=!0,this.hashTable[n]=e,n}find(e){return this.hashTable[e]}}new Gdt;function jdt(t){const n=t.toString().match(/^function\s+([^\s(]+)/);return n?n[1]:""}function Udt(t){const e=t.toString(),n=/([a-zA-Z$_][a-zA-Z0-9$_]*)\s*\(/,r=e.match(n);return r?r[1].trim():""}var Zdt=Object.defineProperty,Xdt=(t,e,n)=>e in t?Zdt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,AY=(t,e,n)=>(Xdt(t,typeof e!="symbol"?e+"":e,n),n);class Ydt{constructor(){AY(this,"requestInstances",new Map),AY(this,"listeners",[])}emit(e){this.listeners.forEach(n=>n(e))}subscribe(e){return this.listeners.push(e),()=>{const n=this.listeners.indexOf(e);this.listeners.splice(n,1)}}insert(e,n){this.requestInstances.set(e,{...n}),this.emit({key:e,...n})}update(e,n){this.has(e)&&this.requestInstances.set(e,{...this.requestInstances.get(e),...n})}has(e){return this.requestInstances.has(e)}reset(e){if(this.requestInstances.has(e)){const n=this.requestInstances.get(e);this.requestInstances.clear(),this.insert(e,n)}else this.requestInstances.clear()}getAll(){return this.requestInstances}}const Gi=new Ydt,qdt=(t,{ready:e=!0,debugKey:n,...r})=>{const i=()=>{if(n&&!Gi.has(n)){const a=t.serviceRef.value.toString().includes("function")?jdt(t.serviceRef.value.toString()):Udt(t.serviceRef.value.toString());Gi.insert(n,{instance:t,requestName:a,time:Date.now()})}},o=h.computed(()=>Object.fromEntries(Object.entries({ready:e,...r}).map(([a,s])=>[a,h.unref(s)])));return h.watchEffect(()=>{n&&Gi.has(n)&&Gi.emit({...t,options:{...t.options,...o.value}})}),{name:"devtoolsPlugin",onBefore:a=>{i(),n&&Gi.has(n)&&Gi.emit({...t.state,key:n,params:a,loading:!0,time:Date.now(),type:"pending"})},onSuccess(a,s){i(),n&&Gi.has(n)&&Gi.emit({...t.state,key:n,data:a,params:s,loading:!1,time:Date.now(),type:"done"})},onCancel(){i(),n&&Gi.has(n)&&Gi.emit({...t.state,key:n,loading:!1,time:Date.now(),type:"cancel"})},onError(a,s){i(),n&&Gi.has(n)&&Gi.emit({...t.state,key:n,params:s,loading:!1,error:a,time:Date.now(),type:"error"})},onMutate(a){i(),n&&Gi.has(n)&&Gi.emit({...t.state,key:n,data:a,loading:!1,time:Date.now(),type:"mutate"})}}},Kdt=(t,{loadingDelay:e})=>{const n=h.ref(),r=()=>{n.value&&(clearTimeout(h.unref(n.value)),n.value=void 0)};return{name:"loadingDelayPlugin",onFinally:()=>{r();const i=h.unref(e);i&&(t.setState({loading:!0}),n.value=setTimeout(()=>{t.setState({loading:!1})},i))},onError:()=>{r()}}};function W3(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const Jdt=!!(typeof window<"u"&&window.document&&window.document.createElement);function Q3(){return W3()?document.visibilityState!=="hidden":!0}const Oy=[];function eht(t){return Oy.push(t),function(){const n=Oy.indexOf(t);Oy.splice(n,1)}}if(W3()){const t=()=>{if(Q3())for(let e=0;e<Oy.length;e++){const n=Oy[e];n()}};window.addEventListener("visibilitychange",t,!1)}const tht=(t,{pollingInterval:e,pollingWhenHidden:n=!0,pollingErrorRetryCount:r=-1})=>{let i;const o=h.ref(),a=h.ref(0),s=()=>{var l;i&&clearTimeout(i),(l=o.value)==null||l.call(o)};return h.watchEffect(()=>{h.unref(e)||s()}),h.unref(e)?{name:"pollingPlugin",onBefore:()=>{s()},onError:()=>{a.value+=1},onSuccess:()=>{a.value=0},onFinally:()=>{r===-1||r!==-1&&a.value<=r?i=setTimeout(()=>{!n&&!Q3()?o.value=eht(()=>{t.refresh()}):t.refresh()},h.unref(e)):a.value=0},onCancel:()=>{s()}}:{}};function nht(t,e){let n=!1;return(...r)=>{n||(n=!0,t(...r),setTimeout(()=>{n=!1},e))}}function rht(){return W3()&&typeof navigator.onLine<"u"?navigator.onLine:!0}const wy=[];function iht(t){return wy.push(t),function(){const n=wy.indexOf(t);n>-1&&wy.splice(n,1)}}if(Jdt){const t=()=>{if(!(!Q3()||!rht()))for(let e=0;e<wy.length;e++){const n=wy[e];n()}};window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1)}const oht=(t,{refreshOnWindowFocus:e,focusTimespan:n=5e3})=>{const r=h.ref(),i=()=>{var o;(o=r.value)==null||o.call(r)};return h.watchEffect(o=>{if(h.unref(e)){const a=nht(t.refresh.bind(t),h.unref(n));r.value=iht(()=>{a()})}o(()=>{i()})}),h.onScopeDispose(()=>{i()}),{name:"refreshOnWindowFocusPlugin"}},aht=(t,{retryInterval:e,retryCount:n})=>{const r=h.ref(),i=h.ref(0),o=h.ref(!1);return n?{name:"retryPlugin",onBefore:()=>{o.value||(i.value=0),o.value=!1,r.value&&clearTimeout(r.value)},onSuccess:()=>{i.value=0},onError:()=>{if(i.value+=1,n===-1||i.value<=n){const a=e??Math.min(1e3*2**i.value,3e4);r.value=setTimeout(()=>{o.value=!0,t.refresh()},a)}else i.value=0},onCancel:()=>{i.value=0,r.value&&clearTimeout(r.value)}}:{}};var sht=Ude,lht=ys,uht="Expected a function";function cht(t,e,n){var r=!0,i=!0;if(typeof t!="function")throw new TypeError(uht);return lht(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),sht(t,e,{leading:r,maxWait:e,trailing:i})}var fht=cht;const dht=bT(fht),hht=(t,{throttleWait:e,throttleLeading:n,throttleTrailing:r})=>{const i=h.computed(()=>{const a={};return h.unref(n)!==void 0&&(a.leading=h.unref(n)),h.unref(r)!==void 0&&(a.trailing=h.unref(r)),a}),o=h.computed(()=>dht(a=>{a()},h.unref(e),i.value));return h.watchEffect(a=>{if(h.unref(e)){const s=t.runAsync.bind(t);t.runAsync=(...l)=>new Promise((u,c)=>{var f;(f=o.value)==null||f.call(o,()=>{s(...l).then(u).catch(c)})}),a(()=>{var l;t.runAsync=s,(l=o.value)==null||l.cancel()})}}),h.unref(e)?{name:"throttlePlugin",onCancel:()=>{var a;(a=o.value)==null||a.cancel()}}:{}},EY=t=>typeof t=="function",pht=t=>typeof t=="boolean";var vht=Object.defineProperty,ght=(t,e,n)=>e in t?vht(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,fw=(t,e,n)=>(ght(t,typeof e!="symbol"?e+"":e,n),n);class mht{constructor(e,n,r,i={}){fw(this,"pluginImpls"),fw(this,"count",0),fw(this,"state",{loading:!1,params:void 0,data:void 0,error:void 0}),fw(this,"previousValidData"),this.serviceRef=e,this.options=n,this.setUpdateData=r,this.initState=i,this.state={...this.state,loading:!n.manual,...i}}setState(e={}){this.state={...this.state,...e},this.setUpdateData(this.state)}setData(e,n){console.warn("Please use 'setFetchState' instead of 'setData'"),n instanceof Array?n.forEach(r=>{this.state[r]=e,this.setUpdateData(e,r)}):(this.state[n]=e,this.setUpdateData(e,n))}setFetchState(e,n){n instanceof Array?n.forEach(r=>{this.state[r]=e,this.setUpdateData(e,r)}):(this.state[n]=e,this.setUpdateData(e,n))}runPluginHandler(e,...n){var r,i,o;const a=(o=(i=(r=this.pluginImpls)==null?void 0:r.map(s=>{var l;return(l=s[e])==null?void 0:l.call(s,...n)}))!=null?i:[])==null?void 0:o.filter(Boolean);return Object.assign({},...a)}async runAsync(...e){var n,r,i,o,a,s,l,u,c,f,d;this.count+=1;const p=this.count,{stopNow:v=!1,returnNow:g=!1,...m}=this.runPluginHandler("onBefore",e);if(v)return new Promise(()=>{});if(this.setState({loading:!0,params:e,...m}),g)return Promise.resolve(m.data);try{(r=(n=this.options).onBefore)==null||r.call(n,e)}catch(y){return this.setState({error:y,loading:!1}),(o=(i=this.options).onError)==null||o.call(i,y,e),this.runPluginHandler("onError",y,e),new Promise(()=>{})}try{let{servicePromise:y}=this.runPluginHandler("onRequest",this.serviceRef.value,e);const b=w=>{var x,S,T,$;if(p!==this.count)return new Promise(()=>{});const A=this.options.formatResult?this.options.formatResult(w):w;return this.setState({data:A,error:void 0,loading:!1}),(S=(x=this.options).onSuccess)==null||S.call(x,A,e),this.runPluginHandler("onSuccess",A,e),this.previousValidData=A,($=(T=this.options).onFinally)==null||$.call(T,e,A,void 0),p===this.count&&this.runPluginHandler("onFinally",e,A,void 0),A};y||(y=this.serviceRef.value(...e));const O=await y;return b(O)}catch(y){if(p!==this.count)return new Promise(()=>{});throw this.setState({error:y,loading:!1}),(s=(a=this.options).onError)==null||s.call(a,y,e),this.runPluginHandler("onError",y,e),(EY((l=this.options)==null?void 0:l.rollbackOnError)&&((u=this.options)!=null&&u.rollbackOnError(e))||pht((c=this.options)==null?void 0:c.rollbackOnError)&&this.options.rollbackOnError)&&this.setState({data:this.previousValidData}),(d=(f=this.options).onFinally)==null||d.call(f,e,void 0,y),p===this.count&&this.runPluginHandler("onFinally",e,void 0,y),y}}run(...e){this.runAsync(...e).catch(n=>{this.options.onError||console.error(n)})}cancel(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")}refresh(){this.run(...this.state.params||[])}refreshAsync(){return this.runAsync(...this.state.params||[])}mutate(e){const n=EY(e)?e(this.state.data):e;this.runPluginHandler("onMutate",n),this.setState({data:n})}}const yht=Symbol("USEREQUEST_GLOBAL_OPTIONS_PROVIDE_KEY");function bht(t){return Object.keys(t).filter(n=>["data","loading","params","error"].includes(n)).length===4}function _ht(t,e={},n=[]){const r=h.inject(yht,{}),{initialData:i=void 0,manual:o=!1,ready:a=!0,...s}={...r??{},...e??{}},l={manual:o,ready:a,initialData:i,...s},u=h.ref(t),c=h.reactive({data:i,loading:!1,params:void 0,error:void 0}),f=(g,m)=>{m?c[m]=g:bht(g)&&(c.data=g.data,c.loading=g.loading,c.error=g.error,c.params=g.params)},d=n.map(g=>{var m;return(m=g==null?void 0:g.onInit)==null?void 0:m.call(g,l)}).filter(Boolean),p=new mht(u,l,f,Object.assign({},...d,c));p.options=l,p.pluginImpls=n.map(g=>g(p,l));const v=h.computed(()=>h.isRef(a)?a.value:a);if(h.watchEffect(()=>{if(!o){const g=p.state.params||e.defaultParams||[];v.value&&p.options.refreshDeps===!0&&u.value&&p.run(...g)}}),!o&&p.options.refreshDeps!==!0){const g=p.state.params||e.defaultParams||[];h.unref(a)&&p.run(...g)}return h.onScopeDispose(()=>{p.cancel()}),{...h.toRefs(c),cancel:p.cancel.bind(p),refresh:p.refresh.bind(p),refreshAsync:p.refreshAsync.bind(p),run:p.run.bind(p),runAsync:p.runAsync.bind(p),mutate:p.mutate.bind(p)}}const Oht=(t,e)=>function(r,i={},o=[]){let a=t;const s=e||[];for(let l=s.length;l--;)a=s[l](a);return a(r,i,o)};function wht(t,e,n){var r;const i=(r=[process.env.NODE_ENV==="development"?qdt:null,Wdt,Kdt,tht,oht,hht,Hde,Gft,aht])==null?void 0:r.filter(Boolean);return Oht(_ht,e==null?void 0:e.use)(t,e,[...i])}/*! js-cookie v3.0.5 | MIT */function dw(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}var xht={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function Yk(t,e){function n(i,o,a){if(!(typeof document>"u")){a=dw({},e,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in a)a[l]&&(s+="; "+l,a[l]!==!0&&(s+="="+a[l].split(";")[0]));return document.cookie=i+"="+t.write(o,i)+s}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var o=document.cookie?document.cookie.split("; "):[],a={},s=0;s<o.length;s++){var l=o[s].split("="),u=l.slice(1).join("=");try{var c=decodeURIComponent(l[0]);if(a[c]=t.read(u,c),i===c)break}catch{}}return i?a[i]:a}}return Object.create({set:n,get:r,remove:function(i,o){n(i,"",dw({},o,{expires:-1}))},withAttributes:function(i){return Yk(this.converter,dw({},this.attributes,i))},withConverter:function(i){return Yk(dw({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}Yk(xht,{path:"/"});function Sht(){this.__data__=[],this.size=0}var Cht=Sht;function Tht(t,e){return t===e||t!==t&&e!==e}var t2=Tht,Pht=t2;function $ht(t,e){for(var n=t.length;n--;)if(Pht(t[n][0],e))return n;return-1}var n2=$ht,Aht=n2,Eht=Array.prototype,Mht=Eht.splice;function Iht(t){var e=this.__data__,n=Aht(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():Mht.call(e,n,1),--this.size,!0}var Dht=Iht,Rht=n2;function kht(t){var e=this.__data__,n=Rht(e,t);return n<0?void 0:e[n][1]}var Nht=kht,Lht=n2;function Bht(t){return Lht(this.__data__,t)>-1}var Vht=Bht,zht=n2;function Fht(t,e){var n=this.__data__,r=zht(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var Wht=Fht,Qht=Cht,Hht=Dht,Ght=Nht,jht=Vht,Uht=Wht;function jg(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}jg.prototype.clear=Qht;jg.prototype.delete=Hht;jg.prototype.get=Ght;jg.prototype.has=jht;jg.prototype.set=Uht;var r2=jg,Zht=r2;function Xht(){this.__data__=new Zht,this.size=0}var Yht=Xht;function qht(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}var Kht=qht;function Jht(t){return this.__data__.get(t)}var ept=Jht;function tpt(t){return this.__data__.has(t)}var npt=tpt,rpt=Gg,ipt=ys,opt="[object AsyncFunction]",apt="[object Function]",spt="[object GeneratorFunction]",lpt="[object Proxy]";function upt(t){if(!ipt(t))return!1;var e=rpt(t);return e==apt||e==spt||e==opt||e==lpt}var H3=upt,cpt=bs,fpt=cpt["__core-js_shared__"],dpt=fpt,iI=dpt,MY=function(){var t=/[^.]+$/.exec(iI&&iI.keys&&iI.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function hpt(t){return!!MY&&MY in t}var ppt=hpt,vpt=Function.prototype,gpt=vpt.toString;function mpt(t){if(t!=null){try{return gpt.call(t)}catch{}try{return t+""}catch{}}return""}var Zde=mpt,ypt=H3,bpt=ppt,_pt=ys,Opt=Zde,wpt=/[\\^$.*+?()[\]{}|]/g,xpt=/^\[object .+?Constructor\]$/,Spt=Function.prototype,Cpt=Object.prototype,Tpt=Spt.toString,Ppt=Cpt.hasOwnProperty,$pt=RegExp("^"+Tpt.call(Ppt).replace(wpt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Apt(t){if(!_pt(t)||bpt(t))return!1;var e=ypt(t)?$pt:xpt;return e.test(Opt(t))}var Ept=Apt;function Mpt(t,e){return t==null?void 0:t[e]}var Ipt=Mpt,Dpt=Ept,Rpt=Ipt;function kpt(t,e){var n=Rpt(t,e);return Dpt(n)?n:void 0}var Lh=kpt,Npt=Lh,Lpt=bs,Bpt=Npt(Lpt,"Map"),G3=Bpt,Vpt=Lh,zpt=Vpt(Object,"create"),i2=zpt,IY=i2;function Fpt(){this.__data__=IY?IY(null):{},this.size=0}var Wpt=Fpt;function Qpt(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Hpt=Qpt,Gpt=i2,jpt="__lodash_hash_undefined__",Upt=Object.prototype,Zpt=Upt.hasOwnProperty;function Xpt(t){var e=this.__data__;if(Gpt){var n=e[t];return n===jpt?void 0:n}return Zpt.call(e,t)?e[t]:void 0}var Ypt=Xpt,qpt=i2,Kpt=Object.prototype,Jpt=Kpt.hasOwnProperty;function evt(t){var e=this.__data__;return qpt?e[t]!==void 0:Jpt.call(e,t)}var tvt=evt,nvt=i2,rvt="__lodash_hash_undefined__";function ivt(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=nvt&&e===void 0?rvt:e,this}var ovt=ivt,avt=Wpt,svt=Hpt,lvt=Ypt,uvt=tvt,cvt=ovt;function Ug(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Ug.prototype.clear=avt;Ug.prototype.delete=svt;Ug.prototype.get=lvt;Ug.prototype.has=uvt;Ug.prototype.set=cvt;var fvt=Ug,DY=fvt,dvt=r2,hvt=G3;function pvt(){this.size=0,this.__data__={hash:new DY,map:new(hvt||dvt),string:new DY}}var vvt=pvt;function gvt(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var mvt=gvt,yvt=mvt;function bvt(t,e){var n=t.__data__;return yvt(e)?n[typeof e=="string"?"string":"hash"]:n.map}var o2=bvt,_vt=o2;function Ovt(t){var e=_vt(this,t).delete(t);return this.size-=e?1:0,e}var wvt=Ovt,xvt=o2;function Svt(t){return xvt(this,t).get(t)}var Cvt=Svt,Tvt=o2;function Pvt(t){return Tvt(this,t).has(t)}var $vt=Pvt,Avt=o2;function Evt(t,e){var n=Avt(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var Mvt=Evt,Ivt=vvt,Dvt=wvt,Rvt=Cvt,kvt=$vt,Nvt=Mvt;function Zg(t){var e=-1,n=t==null?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}Zg.prototype.clear=Ivt;Zg.prototype.delete=Dvt;Zg.prototype.get=Rvt;Zg.prototype.has=kvt;Zg.prototype.set=Nvt;var Xde=Zg,Lvt=r2,Bvt=G3,Vvt=Xde,zvt=200;function Fvt(t,e){var n=this.__data__;if(n instanceof Lvt){var r=n.__data__;if(!Bvt||r.length<zvt-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Vvt(r)}return n.set(t,e),this.size=n.size,this}var Wvt=Fvt,Qvt=r2,Hvt=Yht,Gvt=Kht,jvt=ept,Uvt=npt,Zvt=Wvt;function Xg(t){var e=this.__data__=new Qvt(t);this.size=e.size}Xg.prototype.clear=Hvt;Xg.prototype.delete=Gvt;Xg.prototype.get=jvt;Xg.prototype.has=Uvt;Xg.prototype.set=Zvt;var Yde=Xg;function Xvt(t,e){for(var n=-1,r=t==null?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}var Yvt=Xvt,qvt=Lh,Kvt=function(){try{var t=qvt(Object,"defineProperty");return t({},"",{}),t}catch{}}(),qde=Kvt,RY=qde;function Jvt(t,e,n){e=="__proto__"&&RY?RY(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var j3=Jvt,egt=j3,tgt=t2,ngt=Object.prototype,rgt=ngt.hasOwnProperty;function igt(t,e,n){var r=t[e];(!(rgt.call(t,e)&&tgt(r,n))||n===void 0&&!(e in t))&&egt(t,e,n)}var Kde=igt,ogt=Kde,agt=j3;function sgt(t,e,n,r){var i=!n;n||(n={});for(var o=-1,a=e.length;++o<a;){var s=e[o],l=r?r(n[s],t[s],s,n,t):void 0;l===void 0&&(l=t[s]),i?agt(n,s,l):ogt(n,s,l)}return n}var D_=sgt;function lgt(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var ugt=lgt,cgt=Gg,fgt=ef,dgt="[object Arguments]";function hgt(t){return fgt(t)&&cgt(t)==dgt}var pgt=hgt,kY=pgt,vgt=ef,Jde=Object.prototype,ggt=Jde.hasOwnProperty,mgt=Jde.propertyIsEnumerable,ygt=kY(function(){return arguments}())?kY:function(t){return vgt(t)&&ggt.call(t,"callee")&&!mgt.call(t,"callee")},ehe=ygt,bgt=Array.isArray,a2=bgt,AC={exports:{}};function _gt(){return!1}var Ogt=_gt;AC.exports;(function(t,e){var n=bs,r=Ogt,i=e&&!e.nodeType&&e,o=i&&!0&&t&&!t.nodeType&&t,a=o&&o.exports===i,s=a?n.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||r;t.exports=u})(AC,AC.exports);var U3=AC.exports,wgt=9007199254740991,xgt=/^(?:0|[1-9]\d*)$/;function Sgt(t,e){var n=typeof t;return e=e??wgt,!!e&&(n=="number"||n!="symbol"&&xgt.test(t))&&t>-1&&t%1==0&&t<e}var the=Sgt,Cgt=9007199254740991;function Tgt(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Cgt}var nhe=Tgt,Pgt=Gg,$gt=nhe,Agt=ef,Egt="[object Arguments]",Mgt="[object Array]",Igt="[object Boolean]",Dgt="[object Date]",Rgt="[object Error]",kgt="[object Function]",Ngt="[object Map]",Lgt="[object Number]",Bgt="[object Object]",Vgt="[object RegExp]",zgt="[object Set]",Fgt="[object String]",Wgt="[object WeakMap]",Qgt="[object ArrayBuffer]",Hgt="[object DataView]",Ggt="[object Float32Array]",jgt="[object Float64Array]",Ugt="[object Int8Array]",Zgt="[object Int16Array]",Xgt="[object Int32Array]",Ygt="[object Uint8Array]",qgt="[object Uint8ClampedArray]",Kgt="[object Uint16Array]",Jgt="[object Uint32Array]",$n={};$n[Ggt]=$n[jgt]=$n[Ugt]=$n[Zgt]=$n[Xgt]=$n[Ygt]=$n[qgt]=$n[Kgt]=$n[Jgt]=!0;$n[Egt]=$n[Mgt]=$n[Qgt]=$n[Igt]=$n[Hgt]=$n[Dgt]=$n[Rgt]=$n[kgt]=$n[Ngt]=$n[Lgt]=$n[Bgt]=$n[Vgt]=$n[zgt]=$n[Fgt]=$n[Wgt]=!1;function emt(t){return Agt(t)&&$gt(t.length)&&!!$n[Pgt(t)]}var tmt=emt;function nmt(t){return function(e){return t(e)}}var Z3=nmt,EC={exports:{}};EC.exports;(function(t,e){var n=Gde,r=e&&!e.nodeType&&e,i=r&&!0&&t&&!t.nodeType&&t,o=i&&i.exports===r,a=o&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||a&&a.binding&&a.binding("util")}catch{}}();t.exports=s})(EC,EC.exports);var X3=EC.exports,rmt=tmt,imt=Z3,NY=X3,LY=NY&&NY.isTypedArray,omt=LY?imt(LY):rmt,rhe=omt,amt=ugt,smt=ehe,lmt=a2,umt=U3,cmt=the,fmt=rhe,dmt=Object.prototype,hmt=dmt.hasOwnProperty;function pmt(t,e){var n=lmt(t),r=!n&&smt(t),i=!n&&!r&&umt(t),o=!n&&!r&&!i&&fmt(t),a=n||r||i||o,s=a?amt(t.length,String):[],l=s.length;for(var u in t)(e||hmt.call(t,u))&&!(a&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||cmt(u,l)))&&s.push(u);return s}var ihe=pmt,vmt=Object.prototype;function gmt(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||vmt;return t===n}var Y3=gmt;function mmt(t,e){return function(n){return t(e(n))}}var ohe=mmt,ymt=ohe,bmt=ymt(Object.keys,Object),_mt=bmt,Omt=Y3,wmt=_mt,xmt=Object.prototype,Smt=xmt.hasOwnProperty;function Cmt(t){if(!Omt(t))return wmt(t);var e=[];for(var n in Object(t))Smt.call(t,n)&&n!="constructor"&&e.push(n);return e}var Tmt=Cmt,Pmt=H3,$mt=nhe;function Amt(t){return t!=null&&$mt(t.length)&&!Pmt(t)}var s2=Amt,Emt=ihe,Mmt=Tmt,Imt=s2;function Dmt(t){return Imt(t)?Emt(t):Mmt(t)}var q3=Dmt,Rmt=D_,kmt=q3;function Nmt(t,e){return t&&Rmt(e,kmt(e),t)}var Lmt=Nmt;function Bmt(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var Vmt=Bmt,zmt=ys,Fmt=Y3,Wmt=Vmt,Qmt=Object.prototype,Hmt=Qmt.hasOwnProperty;function Gmt(t){if(!zmt(t))return Wmt(t);var e=Fmt(t),n=[];for(var r in t)r=="constructor"&&(e||!Hmt.call(t,r))||n.push(r);return n}var jmt=Gmt,Umt=ihe,Zmt=jmt,Xmt=s2;function Ymt(t){return Xmt(t)?Umt(t,!0):Zmt(t)}var R_=Ymt,qmt=D_,Kmt=R_;function Jmt(t,e){return t&&qmt(e,Kmt(e),t)}var e0t=Jmt,MC={exports:{}};MC.exports;(function(t,e){var n=bs,r=e&&!e.nodeType&&e,i=r&&!0&&t&&!t.nodeType&&t,o=i&&i.exports===r,a=o?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;function l(u,c){if(c)return u.slice();var f=u.length,d=s?s(f):new u.constructor(f);return u.copy(d),d}t.exports=l})(MC,MC.exports);var ahe=MC.exports;function t0t(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var she=t0t;function n0t(t,e){for(var n=-1,r=t==null?0:t.length,i=0,o=[];++n<r;){var a=t[n];e(a,n,t)&&(o[i++]=a)}return o}var r0t=n0t;function i0t(){return[]}var lhe=i0t,o0t=r0t,a0t=lhe,s0t=Object.prototype,l0t=s0t.propertyIsEnumerable,BY=Object.getOwnPropertySymbols,u0t=BY?function(t){return t==null?[]:(t=Object(t),o0t(BY(t),function(e){return l0t.call(t,e)}))}:a0t,K3=u0t,c0t=D_,f0t=K3;function d0t(t,e){return c0t(t,f0t(t),e)}var h0t=d0t;function p0t(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var uhe=p0t,v0t=ohe,g0t=v0t(Object.getPrototypeOf,Object),J3=g0t,m0t=uhe,y0t=J3,b0t=K3,_0t=lhe,O0t=Object.getOwnPropertySymbols,w0t=O0t?function(t){for(var e=[];t;)m0t(e,b0t(t)),t=y0t(t);return e}:_0t,che=w0t,x0t=D_,S0t=che;function C0t(t,e){return x0t(t,S0t(t),e)}var T0t=C0t,P0t=uhe,$0t=a2;function A0t(t,e,n){var r=e(t);return $0t(t)?r:P0t(r,n(t))}var fhe=A0t,E0t=fhe,M0t=K3,I0t=q3;function D0t(t){return E0t(t,I0t,M0t)}var R0t=D0t,k0t=fhe,N0t=che,L0t=R_;function B0t(t){return k0t(t,L0t,N0t)}var V0t=B0t,z0t=Lh,F0t=bs,W0t=z0t(F0t,"DataView"),Q0t=W0t,H0t=Lh,G0t=bs,j0t=H0t(G0t,"Promise"),U0t=j0t,Z0t=Lh,X0t=bs,Y0t=Z0t(X0t,"Set"),q0t=Y0t,K0t=Lh,J0t=bs,eyt=K0t(J0t,"WeakMap"),tyt=eyt,qk=Q0t,Kk=G3,Jk=U0t,eN=q0t,tN=tyt,dhe=Gg,Yg=Zde,VY="[object Map]",nyt="[object Object]",zY="[object Promise]",FY="[object Set]",WY="[object WeakMap]",QY="[object DataView]",ryt=Yg(qk),iyt=Yg(Kk),oyt=Yg(Jk),ayt=Yg(eN),syt=Yg(tN),nd=dhe;(qk&&nd(new qk(new ArrayBuffer(1)))!=QY||Kk&&nd(new Kk)!=VY||Jk&&nd(Jk.resolve())!=zY||eN&&nd(new eN)!=FY||tN&&nd(new tN)!=WY)&&(nd=function(t){var e=dhe(t),n=e==nyt?t.constructor:void 0,r=n?Yg(n):"";if(r)switch(r){case ryt:return QY;case iyt:return VY;case oyt:return zY;case ayt:return FY;case syt:return WY}return e});var eB=nd,lyt=Object.prototype,uyt=lyt.hasOwnProperty;function cyt(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&uyt.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var fyt=cyt,dyt=bs,hyt=dyt.Uint8Array,pyt=hyt,HY=pyt;function vyt(t){var e=new t.constructor(t.byteLength);return new HY(e).set(new HY(t)),e}var tB=vyt,gyt=tB;function myt(t,e){var n=e?gyt(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var yyt=myt,byt=/\w*$/;function _yt(t){var e=new t.constructor(t.source,byt.exec(t));return e.lastIndex=t.lastIndex,e}var Oyt=_yt,GY=e2,jY=GY?GY.prototype:void 0,UY=jY?jY.valueOf:void 0;function wyt(t){return UY?Object(UY.call(t)):{}}var xyt=wyt,Syt=tB;function Cyt(t,e){var n=e?Syt(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var hhe=Cyt,Tyt=tB,Pyt=yyt,$yt=Oyt,Ayt=xyt,Eyt=hhe,Myt="[object Boolean]",Iyt="[object Date]",Dyt="[object Map]",Ryt="[object Number]",kyt="[object RegExp]",Nyt="[object Set]",Lyt="[object String]",Byt="[object Symbol]",Vyt="[object ArrayBuffer]",zyt="[object DataView]",Fyt="[object Float32Array]",Wyt="[object Float64Array]",Qyt="[object Int8Array]",Hyt="[object Int16Array]",Gyt="[object Int32Array]",jyt="[object Uint8Array]",Uyt="[object Uint8ClampedArray]",Zyt="[object Uint16Array]",Xyt="[object Uint32Array]";function Yyt(t,e,n){var r=t.constructor;switch(e){case Vyt:return Tyt(t);case Myt:case Iyt:return new r(+t);case zyt:return Pyt(t,n);case Fyt:case Wyt:case Qyt:case Hyt:case Gyt:case jyt:case Uyt:case Zyt:case Xyt:return Eyt(t,n);case Dyt:return new r;case Ryt:case Lyt:return new r(t);case kyt:return $yt(t);case Nyt:return new r;case Byt:return Ayt(t)}}var qyt=Yyt,Kyt=ys,ZY=Object.create,Jyt=function(){function t(){}return function(e){if(!Kyt(e))return{};if(ZY)return ZY(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),ebt=Jyt,tbt=ebt,nbt=J3,rbt=Y3;function ibt(t){return typeof t.constructor=="function"&&!rbt(t)?tbt(nbt(t)):{}}var phe=ibt,obt=eB,abt=ef,sbt="[object Map]";function lbt(t){return abt(t)&&obt(t)==sbt}var ubt=lbt,cbt=ubt,fbt=Z3,XY=X3,YY=XY&&XY.isMap,dbt=YY?fbt(YY):cbt,hbt=dbt,pbt=eB,vbt=ef,gbt="[object Set]";function mbt(t){return vbt(t)&&pbt(t)==gbt}var ybt=mbt,bbt=ybt,_bt=Z3,qY=X3,KY=qY&&qY.isSet,Obt=KY?_bt(KY):bbt,wbt=Obt,xbt=Yde,Sbt=Yvt,Cbt=Kde,Tbt=Lmt,Pbt=e0t,$bt=ahe,Abt=she,Ebt=h0t,Mbt=T0t,Ibt=R0t,Dbt=V0t,Rbt=eB,kbt=fyt,Nbt=qyt,Lbt=phe,Bbt=a2,Vbt=U3,zbt=hbt,Fbt=ys,Wbt=wbt,Qbt=q3,Hbt=R_,Gbt=1,jbt=2,Ubt=4,vhe="[object Arguments]",Zbt="[object Array]",Xbt="[object Boolean]",Ybt="[object Date]",qbt="[object Error]",ghe="[object Function]",Kbt="[object GeneratorFunction]",Jbt="[object Map]",e_t="[object Number]",mhe="[object Object]",t_t="[object RegExp]",n_t="[object Set]",r_t="[object String]",i_t="[object Symbol]",o_t="[object WeakMap]",a_t="[object ArrayBuffer]",s_t="[object DataView]",l_t="[object Float32Array]",u_t="[object Float64Array]",c_t="[object Int8Array]",f_t="[object Int16Array]",d_t="[object Int32Array]",h_t="[object Uint8Array]",p_t="[object Uint8ClampedArray]",v_t="[object Uint16Array]",g_t="[object Uint32Array]",Sn={};Sn[vhe]=Sn[Zbt]=Sn[a_t]=Sn[s_t]=Sn[Xbt]=Sn[Ybt]=Sn[l_t]=Sn[u_t]=Sn[c_t]=Sn[f_t]=Sn[d_t]=Sn[Jbt]=Sn[e_t]=Sn[mhe]=Sn[t_t]=Sn[n_t]=Sn[r_t]=Sn[i_t]=Sn[h_t]=Sn[p_t]=Sn[v_t]=Sn[g_t]=!0;Sn[qbt]=Sn[ghe]=Sn[o_t]=!1;function Ix(t,e,n,r,i,o){var a,s=e&Gbt,l=e&jbt,u=e&Ubt;if(n&&(a=i?n(t,r,i,o):n(t)),a!==void 0)return a;if(!Fbt(t))return t;var c=Bbt(t);if(c){if(a=kbt(t),!s)return Abt(t,a)}else{var f=Rbt(t),d=f==ghe||f==Kbt;if(Vbt(t))return $bt(t,s);if(f==mhe||f==vhe||d&&!i){if(a=l||d?{}:Lbt(t),!s)return l?Mbt(t,Pbt(a,t)):Ebt(t,Tbt(a,t))}else{if(!Sn[f])return i?t:{};a=Nbt(t,f,s)}}o||(o=new xbt);var p=o.get(t);if(p)return p;o.set(t,a),Wbt(t)?t.forEach(function(m){a.add(Ix(m,e,n,m,t,o))}):zbt(t)&&t.forEach(function(m,y){a.set(y,Ix(m,e,n,y,t,o))});var v=u?l?Dbt:Ibt:l?Hbt:Qbt,g=c?void 0:v(t);return Sbt(g||t,function(m,y){g&&(y=m,m=t[y]),Cbt(a,y,Ix(m,e,n,y,t,o))}),a}var m_t=Ix,y_t=m_t,b_t=1,__t=4;function O_t(t){return y_t(t,b_t|__t)}var w_t=O_t;const JY=bT(w_t);var x_t=Object.defineProperty,S_t=(t,e,n)=>e in t?x_t(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Uf=(t,e,n)=>(S_t(t,typeof e!="symbol"?e+"":e,n),n);class C_t{constructor(){Uf(this,"subscriptions",new Map),Uf(this,"emitEffectCache",new Map),Uf(this,"useSubscription",(e,n)=>{const r=h.ref();h.watchEffect(i=>{var o,a;r.value=n;function s(u){r.value&&r.value(u)}const l=(a=(o=this.subscriptions)==null?void 0:o.get(e))!=null?a:[];l.push(s),this.subscriptions.set(e,l),this.emitEffect(e),i(()=>{this.subscriptions.delete(e)})})}),Uf(this,"emit",(e,...n)=>{if(typeof e=="string"||typeof e=="number"){const r=this.subscriptions.get(e);r==null||r.forEach(i=>{i==null||i({params:JY(n),event:e})}),this.emitEffectCache.set(e,{params:JY(n),event:e})}else throw new TypeError("event must be string or number !")}),Uf(this,"emitEffect",e=>{const n=this.emitEffectCache.get(e),r=this.subscriptions.get(e);n&&(r==null||r.forEach(i=>{i==null||i({...n})}))}),Uf(this,"removeListener",e=>{this.subscriptions.delete(e)}),Uf(this,"clear",()=>{this.subscriptions.clear()}),this.clear()}}new C_t;var T_t={exports:{}};/*!
  390. * screenfull
  391. * v5.2.0 - 2021-11-03
  392. * (c) Sindre Sorhus; MIT License
  393. */(function(t){(function(){var e=typeof window<"u"&&typeof window.document<"u"?window.document:{},n=t.exports,r=function(){for(var a,s=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],l=0,u=s.length,c={};l<u;l++)if(a=s[l],a&&a[1]in e){for(l=0;l<a.length;l++)c[s[0][l]]=a[l];return c}return!1}(),i={change:r.fullscreenchange,error:r.fullscreenerror},o={request:function(a,s){return new Promise((function(l,u){var c=(function(){this.off("change",c),l()}).bind(this);this.on("change",c),a=a||e.documentElement;var f=a[r.requestFullscreen](s);f instanceof Promise&&f.then(c).catch(u)}).bind(this))},exit:function(){return new Promise((function(a,s){if(!this.isFullscreen){a();return}var l=(function(){this.off("change",l),a()}).bind(this);this.on("change",l);var u=e[r.exitFullscreen]();u instanceof Promise&&u.then(l).catch(s)}).bind(this))},toggle:function(a,s){return this.isFullscreen?this.exit():this.request(a,s)},onchange:function(a){this.on("change",a)},onerror:function(a){this.on("error",a)},on:function(a,s){var l=i[a];l&&e.addEventListener(l,s,!1)},off:function(a,s){var l=i[a];l&&e.removeEventListener(l,s,!1)},raw:r};if(!r){n?t.exports={isEnabled:!1}:window.screenfull={isEnabled:!1};return}Object.defineProperties(o,{isFullscreen:{get:function(){return!!e[r.fullscreenElement]}},element:{enumerable:!0,get:function(){return e[r.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return!!e[r.fullscreenEnabled]}}}),n?t.exports=o:window.screenfull=o})()})(T_t);var P_t="__lodash_hash_undefined__";function $_t(t){return this.__data__.set(t,P_t),this}var A_t=$_t;function E_t(t){return this.__data__.has(t)}var M_t=E_t,I_t=Xde,D_t=A_t,R_t=M_t;function nN(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new I_t;++e<n;)this.add(t[e])}nN.prototype.add=nN.prototype.push=D_t;nN.prototype.has=R_t;var eq=e2,tq=eq?eq.prototype:void 0;tq&&tq.valueOf;var k_t=j3,N_t=t2;function L_t(t,e,n){(n!==void 0&&!N_t(t[e],n)||n===void 0&&!(e in t))&&k_t(t,e,n)}var yhe=L_t;function B_t(t){return function(e,n,r){for(var i=-1,o=Object(e),a=r(e),s=a.length;s--;){var l=a[t?s:++i];if(n(o[l],l,o)===!1)break}return e}}var V_t=B_t,z_t=V_t,F_t=z_t(),W_t=F_t,Q_t=s2,H_t=ef;function G_t(t){return H_t(t)&&Q_t(t)}var j_t=G_t,U_t=Gg,Z_t=J3,X_t=ef,Y_t="[object Object]",q_t=Function.prototype,K_t=Object.prototype,bhe=q_t.toString,J_t=K_t.hasOwnProperty,e1t=bhe.call(Object);function t1t(t){if(!X_t(t)||U_t(t)!=Y_t)return!1;var e=Z_t(t);if(e===null)return!0;var n=J_t.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&bhe.call(n)==e1t}var n1t=t1t;function r1t(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var _he=r1t,i1t=D_,o1t=R_;function a1t(t){return i1t(t,o1t(t))}var s1t=a1t,nq=yhe,l1t=ahe,u1t=hhe,c1t=she,f1t=phe,rq=ehe,iq=a2,d1t=j_t,h1t=U3,p1t=H3,v1t=ys,g1t=n1t,m1t=rhe,oq=_he,y1t=s1t;function b1t(t,e,n,r,i,o,a){var s=oq(t,n),l=oq(e,n),u=a.get(l);if(u){nq(t,n,u);return}var c=o?o(s,l,n+"",t,e,a):void 0,f=c===void 0;if(f){var d=iq(l),p=!d&&h1t(l),v=!d&&!p&&m1t(l);c=l,d||p||v?iq(s)?c=s:d1t(s)?c=c1t(s):p?(f=!1,c=l1t(l,!0)):v?(f=!1,c=u1t(l,!0)):c=[]:g1t(l)||rq(l)?(c=s,rq(s)?c=y1t(s):(!v1t(s)||p1t(s))&&(c=f1t(l))):f=!1}f&&(a.set(l,c),i(c,l,r,o,a),a.delete(l)),nq(t,n,c)}var _1t=b1t,O1t=Yde,w1t=yhe,x1t=W_t,S1t=_1t,C1t=ys,T1t=R_,P1t=_he;function Ohe(t,e,n,r,i){t!==e&&x1t(e,function(o,a){if(i||(i=new O1t),C1t(o))S1t(t,e,a,n,Ohe,r,i);else{var s=r?r(P1t(t,a),o,a+"",t,e,i):void 0;s===void 0&&(s=o),w1t(t,a,s)}},T1t)}var $1t=Ohe;function A1t(t){return t}var whe=A1t;function E1t(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}var M1t=E1t,I1t=M1t,aq=Math.max;function D1t(t,e,n){return e=aq(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,o=aq(r.length-e,0),a=Array(o);++i<o;)a[i]=r[e+i];i=-1;for(var s=Array(e+1);++i<e;)s[i]=r[i];return s[e]=n(a),I1t(t,this,s)}}var R1t=D1t;function k1t(t){return function(){return t}}var N1t=k1t,L1t=N1t,sq=qde,B1t=whe,V1t=sq?function(t,e){return sq(t,"toString",{configurable:!0,enumerable:!1,value:L1t(e),writable:!0})}:B1t,z1t=V1t,F1t=800,W1t=16,Q1t=Date.now;function H1t(t){var e=0,n=0;return function(){var r=Q1t(),i=W1t-(r-n);if(n=r,i>0){if(++e>=F1t)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var G1t=H1t,j1t=z1t,U1t=G1t,Z1t=U1t(j1t),X1t=Z1t,Y1t=whe,q1t=R1t,K1t=X1t;function J1t(t,e){return K1t(q1t(t,e,Y1t),t+"")}var eOt=J1t,tOt=t2,nOt=s2,rOt=the,iOt=ys;function oOt(t,e,n){if(!iOt(n))return!1;var r=typeof e;return(r=="number"?nOt(n)&&rOt(e,n.length):r=="string"&&e in n)?tOt(n[e],t):!1}var aOt=oOt,sOt=eOt,lOt=aOt;function uOt(t){return sOt(function(e,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=t.length>3&&typeof o=="function"?(i--,o):void 0,a&&lOt(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),e=Object(e);++r<i;){var s=n[r];s&&t(e,s,r,o)}return e})}var cOt=uOt,fOt=$1t,dOt=cOt;dOt(function(t,e,n){fOt(t,e,n)});const nB=t=>{var p,v,g;const e=t.dataSource||{},n=h.ref(),r=h.ref(),i=h.ref((p=e==null?void 0:e.data)==null?void 0:p.series),o=h.computed(()=>async()=>await fetch(t.dataSource.url,{method:t.dataSource.method}).then(m=>m.json())),{run:a,refresh:s,cancel:l,data:u,loading:c}=wht(o.value,{defaultParams:t.dataSource.params,manual:!0,cacheKey:t.dataSource.url,cacheTime:(((v=t.dataSource)==null?void 0:v.refreshTime)||0)*1e3,pollingInterval:(((g=t.dataSource)==null?void 0:g.refreshTime)||0)*1e3,onError:m=>{console.error(m),oh.error(t.dataSource.url+"请求失败")}});t.dataSource.sourceType===er.API&&a(),h.watch(()=>u.value,async m=>{if(m&&t.dataSource.sourceType===er.API){let y=m;t.dataSource.dataProcess&&(y=await Nft(t.dataSource.dataProcess,JSON.stringify(m))),n.value=y.xAxis||y.xData?{data:y.xData}:n.value,r.value=y.yAxis||y.yData?{data:y.yData}:r.value,i.value=y.series}},{deep:!0}),h.watch(()=>[t.dataSource.sourceType,t.dataSource.method,t.dataSource.data],()=>{if(t.dataSource.sourceType===er.API&&s(),t.dataSource.sourceType===er.STATIC){l();const m=t.dataSource||{},{xData:y,yData:b,series:O}=(m==null?void 0:m.data)||{};y&&(n.value={data:y}),b&&(r.value={data:b}),i.value=O}if([er.BASIC_PATH,er.VIEW_CODE].includes(t.dataSource.sourceType)){const m=t.dataSource||{},y={viewCode:m.viewCode,basicPath:m.basicPath,items:"",filter:"",key:"",isOne:""};window.mabp.$doLoadComponentData(y).then(function(b){i.value=b.data})}},{deep:!0});const f=m=>{var x,S,T,$;let y=34,b=20,O=30,w=20;return!Array.isArray(m.title)&&((x=m.title)!=null&&x.show)&&(w+=20),!Array.isArray(m.legend)&&((S=m.legend)!=null&&S.show)&&(m.legend.left==="center"&&m.legend.top!=="auto"&&(w+=20),m.legend.left==="center"&&m.legend.bottom!=="auto"&&(y+=20),m.legend.top==="center"&&m.legend.left!=="auto"&&(O+=70),m.legend.top==="center"&&m.legend.right!=="auto"&&(b+=50)),!Array.isArray(m.xAxis)&&((T=m.xAxis)!=null&&T.name)&&(y+=20),!Array.isArray(m.yAxis)&&(($=m.yAxis)!=null&&$.name)&&(O+=20),{bottom:y,left:O,right:b,top:w}};return{options:h.computed(()=>{var O,w;const m=vee(t,["width","height","dataSource"]);!Array.isArray(m.title)&&!((O=m.title)!=null&&O.show)&&!Array.isArray(m.legend)&&m.legend&&(m.legend.top=12);const y=(m==null?void 0:m.label)||{},b=dee({xAxis:n.value,yAxis:r.value,series:(w=i.value)==null?void 0:w.map(x=>{const S=m.seriesExtend||{};return{...y,...x,...S}}),grid:f(m)},m);return console.log("option result:",b),b}),loading:c}},hOt=h.defineComponent({name:"DBasicLine",components:{Charts:V3},props:JP,setup(t){const{options:e,loading:n}=nB(t);return{options:e,loading:n}}});function pOt(t,e,n,r,i,o){const a=h.resolveComponent("Charts");return h.openBlock(),h.createBlock(a,{width:t.width,height:t.height,"echarts-options":t.options,loading:t.loading},null,8,["width","height","echarts-options","loading"])}const Gd=Dr(hOt,[["render",pOt]]);class en{lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,n,r){[e,n]=lg(this,e,n);let i=[];return this.decompose(0,e,i,2),r.length&&r.decompose(0,r.length,i,3),this.decompose(n,this.length,i,1),Qs.from(i,this.length-(n-e)+r.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,n=this.length){[e,n]=lg(this,e,n);let r=[];return this.decompose(e,n,r,0),Qs.from(r,n-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let n=this.scanIdentical(e,1),r=this.length-this.scanIdentical(e,-1),i=new xy(this),o=new xy(e);for(let a=n,s=n;;){if(i.next(a),o.next(a),a=0,i.lineBreak!=o.lineBreak||i.done!=o.done||i.value!=o.value)return!1;if(s+=i.value.length,i.done||s>=r)return!0}}iter(e=1){return new xy(this,e)}iterRange(e,n=this.length){return new xhe(this,e,n)}iterLines(e,n){let r;if(e==null)r=this.iter();else{n==null&&(n=this.lines+1);let i=this.line(e).from;r=this.iterRange(i,Math.max(i,n==this.lines+1?this.length:n<=1?0:this.line(n-1).to))}return new She(r)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}constructor(){}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?en.empty:e.length<=32?new tr(e):Qs.from(tr.split(e,[]))}}class tr extends en{constructor(e,n=vOt(e)){super(),this.text=e,this.length=n}get lines(){return this.text.length}get children(){return null}lineInner(e,n,r,i){for(let o=0;;o++){let a=this.text[o],s=i+a.length;if((n?r:s)>=e)return new gOt(i,s,r,a);i=s+1,r++}}decompose(e,n,r,i){let o=e<=0&&n>=this.length?this:new tr(lq(this.text,e,n),Math.min(n,this.length)-Math.max(0,e));if(i&1){let a=r.pop(),s=Dx(o.text,a.text.slice(),0,o.length);if(s.length<=32)r.push(new tr(s,a.length+o.length));else{let l=s.length>>1;r.push(new tr(s.slice(0,l)),new tr(s.slice(l)))}}else r.push(o)}replace(e,n,r){if(!(r instanceof tr))return super.replace(e,n,r);[e,n]=lg(this,e,n);let i=Dx(this.text,Dx(r.text,lq(this.text,0,e)),n),o=this.length+r.length-(n-e);return i.length<=32?new tr(i,o):Qs.from(tr.split(i,[]),o)}sliceString(e,n=this.length,r=`
  394. `){[e,n]=lg(this,e,n);let i="";for(let o=0,a=0;o<=n&&a<this.text.length;a++){let s=this.text[a],l=o+s.length;o>e&&a&&(i+=r),e<l&&n>o&&(i+=s.slice(Math.max(0,e-o),n-o)),o=l+1}return i}flatten(e){for(let n of this.text)e.push(n)}scanIdentical(){return 0}static split(e,n){let r=[],i=-1;for(let o of e)r.push(o),i+=o.length+1,r.length==32&&(n.push(new tr(r,i)),r=[],i=-1);return i>-1&&n.push(new tr(r,i)),n}}class Qs extends en{constructor(e,n){super(),this.children=e,this.length=n,this.lines=0;for(let r of e)this.lines+=r.lines}lineInner(e,n,r,i){for(let o=0;;o++){let a=this.children[o],s=i+a.length,l=r+a.lines-1;if((n?l:s)>=e)return a.lineInner(e,n,r,i);i=s+1,r=l+1}}decompose(e,n,r,i){for(let o=0,a=0;a<=n&&o<this.children.length;o++){let s=this.children[o],l=a+s.length;if(e<=l&&n>=a){let u=i&((a<=e?1:0)|(l>=n?2:0));a>=e&&l<=n&&!u?r.push(s):s.decompose(e-a,n-a,r,u)}a=l+1}}replace(e,n,r){if([e,n]=lg(this,e,n),r.lines<this.lines)for(let i=0,o=0;i<this.children.length;i++){let a=this.children[i],s=o+a.length;if(e>=o&&n<=s){let l=a.replace(e-o,n-o,r),u=this.lines-a.lines+l.lines;if(l.lines<u>>4&&l.lines>u>>6){let c=this.children.slice();return c[i]=l,new Qs(c,this.length-(n-e)+r.length)}return super.replace(o,s,l)}o=s+1}return super.replace(e,n,r)}sliceString(e,n=this.length,r=`
  395. `){[e,n]=lg(this,e,n);let i="";for(let o=0,a=0;o<this.children.length&&a<=n;o++){let s=this.children[o],l=a+s.length;a>e&&o&&(i+=r),e<l&&n>a&&(i+=s.sliceString(e-a,n-a,r)),a=l+1}return i}flatten(e){for(let n of this.children)n.flatten(e)}scanIdentical(e,n){if(!(e instanceof Qs))return 0;let r=0,[i,o,a,s]=n>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;i+=n,o+=n){if(i==a||o==s)return r;let l=this.children[i],u=e.children[o];if(l!=u)return r+l.scanIdentical(u,n);r+=l.length+1}}static from(e,n=e.reduce((r,i)=>r+i.length+1,-1)){let r=0;for(let p of e)r+=p.lines;if(r<32){let p=[];for(let v of e)v.flatten(p);return new tr(p,n)}let i=Math.max(32,r>>5),o=i<<1,a=i>>1,s=[],l=0,u=-1,c=[];function f(p){let v;if(p.lines>o&&p instanceof Qs)for(let g of p.children)f(g);else p.lines>a&&(l>a||!l)?(d(),s.push(p)):p instanceof tr&&l&&(v=c[c.length-1])instanceof tr&&p.lines+v.lines<=32?(l+=p.lines,u+=p.length+1,c[c.length-1]=new tr(v.text.concat(p.text),v.length+1+p.length)):(l+p.lines>i&&d(),l+=p.lines,u+=p.length+1,c.push(p))}function d(){l!=0&&(s.push(c.length==1?c[0]:Qs.from(c,u)),u=-1,l=c.length=0)}for(let p of e)f(p);return d(),s.length==1?s[0]:new Qs(s,n)}}en.empty=new tr([""],0);function vOt(t){let e=-1;for(let n of t)e+=n.length+1;return e}function Dx(t,e,n=0,r=1e9){for(let i=0,o=0,a=!0;o<t.length&&i<=r;o++){let s=t[o],l=i+s.length;l>=n&&(l>r&&(s=s.slice(0,r-i)),i<n&&(s=s.slice(n-i)),a?(e[e.length-1]+=s,a=!1):e.push(s)),i=l+1}return e}function lq(t,e,n){return Dx(t,[""],e,n)}class xy{constructor(e,n=1){this.dir=n,this.done=!1,this.lineBreak=!1,this.value="",this.nodes=[e],this.offsets=[n>0?1:(e instanceof tr?e.text.length:e.children.length)<<1]}nextInner(e,n){for(this.done=this.lineBreak=!1;;){let r=this.nodes.length-1,i=this.nodes[r],o=this.offsets[r],a=o>>1,s=i instanceof tr?i.text.length:i.children.length;if(a==(n>0?s:0)){if(r==0)return this.done=!0,this.value="",this;n>0&&this.offsets[r-1]++,this.nodes.pop(),this.offsets.pop()}else if((o&1)==(n>0?0:1)){if(this.offsets[r]+=n,e==0)return this.lineBreak=!0,this.value=`
  396. `,this;e--}else if(i instanceof tr){let l=i.text[a+(n<0?-1:0)];if(this.offsets[r]+=n,l.length>Math.max(0,e))return this.value=e==0?l:n>0?l.slice(e):l.slice(0,l.length-e),this;e-=l.length}else{let l=i.children[a+(n<0?-1:0)];e>l.length?(e-=l.length,this.offsets[r]+=n):(n<0&&this.offsets[r]--,this.nodes.push(l),this.offsets.push(n>0?1:(l instanceof tr?l.text.length:l.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class xhe{constructor(e,n,r){this.value="",this.done=!1,this.cursor=new xy(e,n>r?-1:1),this.pos=n>r?e.length:0,this.from=Math.min(n,r),this.to=Math.max(n,r)}nextInner(e,n){if(n<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,n<0?this.pos-this.to:this.from-this.pos);let r=n<0?this.pos-this.from:this.to-this.pos;e>r&&(e=r),r-=e;let{value:i}=this.cursor.next(e);return this.pos+=(i.length+e)*n,this.value=i.length<=r?i:n<0?i.slice(i.length-r):i.slice(0,r),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class She{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:n,lineBreak:r,value:i}=this.inner.next(e);return n&&this.afterBreak?(this.value="",this.afterBreak=!1):n?(this.done=!0,this.value=""):r?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=i,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(en.prototype[Symbol.iterator]=function(){return this.iter()},xy.prototype[Symbol.iterator]=xhe.prototype[Symbol.iterator]=She.prototype[Symbol.iterator]=function(){return this});class gOt{constructor(e,n,r,i){this.from=e,this.to=n,this.number=r,this.text=i}get length(){return this.to-this.from}}function lg(t,e,n){return e=Math.max(0,Math.min(t.length,e)),[e,Math.max(e,Math.min(t.length,n))]}let gv="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(t=>t?parseInt(t,36):1);for(let t=1;t<gv.length;t++)gv[t]+=gv[t-1];function mOt(t){for(let e=1;e<gv.length;e+=2)if(gv[e]>t)return gv[e-1]<=t;return!1}function uq(t){return t>=127462&&t<=127487}const cq=8205;function Ur(t,e,n=!0,r=!0){return(n?Che:yOt)(t,e,r)}function Che(t,e,n){if(e==t.length)return e;e&&The(t.charCodeAt(e))&&Phe(t.charCodeAt(e-1))&&e--;let r=Qr(t,e);for(e+=ha(r);e<t.length;){let i=Qr(t,e);if(r==cq||i==cq||n&&mOt(i))e+=ha(i),r=i;else if(uq(i)){let o=0,a=e-2;for(;a>=0&&uq(Qr(t,a));)o++,a-=2;if(o%2==0)break;e+=2}else break}return e}function yOt(t,e,n){for(;e>0;){let r=Che(t,e-2,n);if(r<e)return r;e--}return 0}function The(t){return t>=56320&&t<57344}function Phe(t){return t>=55296&&t<56320}function Qr(t,e){let n=t.charCodeAt(e);if(!Phe(n)||e+1==t.length)return n;let r=t.charCodeAt(e+1);return The(r)?(n-55296<<10)+(r-56320)+65536:n}function rB(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}function ha(t){return t<65536?1:2}const rN=/\r\n?|\n/;var Gr=function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t}(Gr||(Gr={}));class nl{constructor(e){this.sections=e}get length(){let e=0;for(let n=0;n<this.sections.length;n+=2)e+=this.sections[n];return e}get newLength(){let e=0;for(let n=0;n<this.sections.length;n+=2){let r=this.sections[n+1];e+=r<0?this.sections[n]:r}return e}get empty(){return this.sections.length==0||this.sections.length==2&&this.sections[1]<0}iterGaps(e){for(let n=0,r=0,i=0;n<this.sections.length;){let o=this.sections[n++],a=this.sections[n++];a<0?(e(r,i,o),i+=o):i+=a,r+=o}}iterChangedRanges(e,n=!1){iN(this,e,n)}get invertedDesc(){let e=[];for(let n=0;n<this.sections.length;){let r=this.sections[n++],i=this.sections[n++];i<0?e.push(r,i):e.push(i,r)}return new nl(e)}composeDesc(e){return this.empty?e:e.empty?this:$he(this,e)}mapDesc(e,n=!1){return e.empty?this:oN(this,e,n)}mapPos(e,n=-1,r=Gr.Simple){let i=0,o=0;for(let a=0;a<this.sections.length;){let s=this.sections[a++],l=this.sections[a++],u=i+s;if(l<0){if(u>e)return o+(e-i);o+=s}else{if(r!=Gr.Simple&&u>=e&&(r==Gr.TrackDel&&i<e&&u>e||r==Gr.TrackBefore&&i<e||r==Gr.TrackAfter&&u>e))return null;if(u>e||u==e&&n<0&&!s)return e==i||n<0?o:o+l;o+=l}i=u}if(e>i)throw new RangeError(`Position ${e} is out of range for changeset of length ${i}`);return o}touchesRange(e,n=e){for(let r=0,i=0;r<this.sections.length&&i<=n;){let o=this.sections[r++],a=this.sections[r++],s=i+o;if(a>=0&&i<=n&&s>=e)return i<e&&s>n?"cover":!0;i=s}return!1}toString(){let e="";for(let n=0;n<this.sections.length;){let r=this.sections[n++],i=this.sections[n++];e+=(e?" ":"")+r+(i>=0?":"+i:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(n=>typeof n!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new nl(e)}static create(e){return new nl(e)}}class yr extends nl{constructor(e,n){super(e),this.inserted=n}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return iN(this,(n,r,i,o,a)=>e=e.replace(i,i+(r-n),a),!1),e}mapDesc(e,n=!1){return oN(this,e,n,!0)}invert(e){let n=this.sections.slice(),r=[];for(let i=0,o=0;i<n.length;i+=2){let a=n[i],s=n[i+1];if(s>=0){n[i]=s,n[i+1]=a;let l=i>>1;for(;r.length<l;)r.push(en.empty);r.push(a?e.slice(o,o+a):en.empty)}o+=a}return new yr(n,r)}compose(e){return this.empty?e:e.empty?this:$he(this,e,!0)}map(e,n=!1){return e.empty?this:oN(this,e,n,!0)}iterChanges(e,n=!1){iN(this,e,n)}get desc(){return nl.create(this.sections)}filter(e){let n=[],r=[],i=[],o=new Cb(this);e:for(let a=0,s=0;;){let l=a==e.length?1e9:e[a++];for(;s<l||s==l&&o.len==0;){if(o.done)break e;let c=Math.min(o.len,l-s);ai(i,c,-1);let f=o.ins==-1?-1:o.off==0?o.ins:0;ai(n,c,f),f>0&&fc(r,n,o.text),o.forward(c),s+=c}let u=e[a++];for(;s<u;){if(o.done)break e;let c=Math.min(o.len,u-s);ai(n,c,-1),ai(i,c,o.ins==-1?-1:o.off==0?o.ins:0),o.forward(c),s+=c}}return{changes:new yr(n,r),filtered:nl.create(i)}}toJSON(){let e=[];for(let n=0;n<this.sections.length;n+=2){let r=this.sections[n],i=this.sections[n+1];i<0?e.push(r):i==0?e.push([r]):e.push([r].concat(this.inserted[n>>1].toJSON()))}return e}static of(e,n,r){let i=[],o=[],a=0,s=null;function l(c=!1){if(!c&&!i.length)return;a<n&&ai(i,n-a,-1);let f=new yr(i,o);s=s?s.compose(f.map(s)):f,i=[],o=[],a=0}function u(c){if(Array.isArray(c))for(let f of c)u(f);else if(c instanceof yr){if(c.length!=n)throw new RangeError(`Mismatched change set length (got ${c.length}, expected ${n})`);l(),s=s?s.compose(c.map(s)):c}else{let{from:f,to:d=f,insert:p}=c;if(f>d||f<0||d>n)throw new RangeError(`Invalid change range ${f} to ${d} (in doc of length ${n})`);let v=p?typeof p=="string"?en.of(p.split(r||rN)):p:en.empty,g=v.length;if(f==d&&g==0)return;f<a&&l(),f>a&&ai(i,f-a,-1),ai(i,d-f,g),fc(o,i,v),a=d}}return u(e),l(!s),s}static empty(e){return new yr(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let n=[],r=[];for(let i=0;i<e.length;i++){let o=e[i];if(typeof o=="number")n.push(o,-1);else{if(!Array.isArray(o)||typeof o[0]!="number"||o.some((a,s)=>s&&typeof a!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(o.length==1)n.push(o[0],0);else{for(;r.length<i;)r.push(en.empty);r[i]=en.of(o.slice(1)),n.push(o[0],r[i].length)}}}return new yr(n,r)}static createSet(e,n){return new yr(e,n)}}function ai(t,e,n,r=!1){if(e==0&&n<=0)return;let i=t.length-2;i>=0&&n<=0&&n==t[i+1]?t[i]+=e:e==0&&t[i]==0?t[i+1]+=n:r?(t[i]+=e,t[i+1]+=n):t.push(e,n)}function fc(t,e,n){if(n.length==0)return;let r=e.length-2>>1;if(r<t.length)t[t.length-1]=t[t.length-1].append(n);else{for(;t.length<r;)t.push(en.empty);t.push(n)}}function iN(t,e,n){let r=t.inserted;for(let i=0,o=0,a=0;a<t.sections.length;){let s=t.sections[a++],l=t.sections[a++];if(l<0)i+=s,o+=s;else{let u=i,c=o,f=en.empty;for(;u+=s,c+=l,l&&r&&(f=f.append(r[a-2>>1])),!(n||a==t.sections.length||t.sections[a+1]<0);)s=t.sections[a++],l=t.sections[a++];e(i,u,o,c,f),i=u,o=c}}}function oN(t,e,n,r=!1){let i=[],o=r?[]:null,a=new Cb(t),s=new Cb(e);for(let l=-1;;)if(a.ins==-1&&s.ins==-1){let u=Math.min(a.len,s.len);ai(i,u,-1),a.forward(u),s.forward(u)}else if(s.ins>=0&&(a.ins<0||l==a.i||a.off==0&&(s.len<a.len||s.len==a.len&&!n))){let u=s.len;for(ai(i,s.ins,-1);u;){let c=Math.min(a.len,u);a.ins>=0&&l<a.i&&a.len<=c&&(ai(i,0,a.ins),o&&fc(o,i,a.text),l=a.i),a.forward(c),u-=c}s.next()}else if(a.ins>=0){let u=0,c=a.len;for(;c;)if(s.ins==-1){let f=Math.min(c,s.len);u+=f,c-=f,s.forward(f)}else if(s.ins==0&&s.len<c)c-=s.len,s.next();else break;ai(i,u,l<a.i?a.ins:0),o&&l<a.i&&fc(o,i,a.text),l=a.i,a.forward(a.len-c)}else{if(a.done&&s.done)return o?yr.createSet(i,o):nl.create(i);throw new Error("Mismatched change set lengths")}}function $he(t,e,n=!1){let r=[],i=n?[]:null,o=new Cb(t),a=new Cb(e);for(let s=!1;;){if(o.done&&a.done)return i?yr.createSet(r,i):nl.create(r);if(o.ins==0)ai(r,o.len,0,s),o.next();else if(a.len==0&&!a.done)ai(r,0,a.ins,s),i&&fc(i,r,a.text),a.next();else{if(o.done||a.done)throw new Error("Mismatched change set lengths");{let l=Math.min(o.len2,a.len),u=r.length;if(o.ins==-1){let c=a.ins==-1?-1:a.off?0:a.ins;ai(r,l,c,s),i&&c&&fc(i,r,a.text)}else a.ins==-1?(ai(r,o.off?0:o.len,l,s),i&&fc(i,r,o.textBit(l))):(ai(r,o.off?0:o.len,a.off?0:a.ins,s),i&&!a.off&&fc(i,r,a.text));s=(o.ins>l||a.ins>=0&&a.len>l)&&(s||r.length>u),o.forward2(l),a.forward(l)}}}}class Cb{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i<e.length?(this.len=e[this.i++],this.ins=e[this.i++]):(this.len=0,this.ins=-2),this.off=0}get done(){return this.ins==-2}get len2(){return this.ins<0?this.len:this.ins}get text(){let{inserted:e}=this.set,n=this.i-2>>1;return n>=e.length?en.empty:e[n]}textBit(e){let{inserted:n}=this.set,r=this.i-2>>1;return r>=n.length&&!e?en.empty:n[r].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class Td{constructor(e,n,r){this.from=e,this.to=n,this.flags=r}get anchor(){return this.flags&32?this.to:this.from}get head(){return this.flags&32?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&8?-1:this.flags&16?1:0}get bidiLevel(){let e=this.flags&7;return e==7?null:e}get goalColumn(){let e=this.flags>>6;return e==16777215?void 0:e}map(e,n=-1){let r,i;return this.empty?r=i=e.mapPos(this.from,n):(r=e.mapPos(this.from,1),i=e.mapPos(this.to,-1)),r==this.from&&i==this.to?this:new Td(r,i,this.flags)}extend(e,n=e){if(e<=this.anchor&&n>=this.anchor)return Te.range(e,n);let r=Math.abs(e-this.anchor)>Math.abs(n-this.anchor)?e:n;return Te.range(this.anchor,r)}eq(e,n=!1){return this.anchor==e.anchor&&this.head==e.head&&(!n||!this.empty||this.assoc==e.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return Te.range(e.anchor,e.head)}static create(e,n,r){return new Td(e,n,r)}}class Te{constructor(e,n){this.ranges=e,this.mainIndex=n}map(e,n=-1){return e.empty?this:Te.create(this.ranges.map(r=>r.map(e,n)),this.mainIndex)}eq(e,n=!1){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let r=0;r<this.ranges.length;r++)if(!this.ranges[r].eq(e.ranges[r],n))return!1;return!0}get main(){return this.ranges[this.mainIndex]}asSingle(){return this.ranges.length==1?this:new Te([this.main],0)}addRange(e,n=!0){return Te.create([e].concat(this.ranges),n?0:this.mainIndex+1)}replaceRange(e,n=this.mainIndex){let r=this.ranges.slice();return r[n]=e,Te.create(r,this.mainIndex)}toJSON(){return{ranges:this.ranges.map(e=>e.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new Te(e.ranges.map(n=>Td.fromJSON(n)),e.main)}static single(e,n=e){return new Te([Te.range(e,n)],0)}static create(e,n=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let r=0,i=0;i<e.length;i++){let o=e[i];if(o.empty?o.from<=r:o.from<r)return Te.normalized(e.slice(),n);r=o.to}return new Te(e,n)}static cursor(e,n=0,r,i){return Td.create(e,e,(n==0?0:n<0?8:16)|(r==null?7:Math.min(6,r))|(i??16777215)<<6)}static range(e,n,r,i){let o=(r??16777215)<<6|(i==null?7:Math.min(6,i));return n<e?Td.create(n,e,48|o):Td.create(e,n,(n>e?8:0)|o)}static normalized(e,n=0){let r=e[n];e.sort((i,o)=>i.from-o.from),n=e.indexOf(r);for(let i=1;i<e.length;i++){let o=e[i],a=e[i-1];if(o.empty?o.from<=a.to:o.from<a.to){let s=a.from,l=Math.max(o.to,a.to);i<=n&&n--,e.splice(--i,2,o.anchor>o.head?Te.range(l,s):Te.range(s,l))}}return new Te(e,n)}}function Ahe(t,e){for(let n of t.ranges)if(n.to>e)throw new RangeError("Selection points outside of document")}let iB=0;class Ye{constructor(e,n,r,i,o){this.combine=e,this.compareInput=n,this.compare=r,this.isStatic=i,this.id=iB++,this.default=e([]),this.extensions=typeof o=="function"?o(this):o}get reader(){return this}static define(e={}){return new Ye(e.combine||(n=>n),e.compareInput||((n,r)=>n===r),e.compare||(e.combine?(n,r)=>n===r:oB),!!e.static,e.enables)}of(e){return new Rx([],this,0,e)}compute(e,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new Rx(e,this,1,n)}computeN(e,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new Rx(e,this,2,n)}from(e,n){return n||(n=r=>r),this.compute([e],r=>n(r.field(e)))}}function oB(t,e){return t==e||t.length==e.length&&t.every((n,r)=>n===e[r])}class Rx{constructor(e,n,r,i){this.dependencies=e,this.facet=n,this.type=r,this.value=i,this.id=iB++}dynamicSlot(e){var n;let r=this.value,i=this.facet.compareInput,o=this.id,a=e[o]>>1,s=this.type==2,l=!1,u=!1,c=[];for(let f of this.dependencies)f=="doc"?l=!0:f=="selection"?u=!0:((n=e[f.id])!==null&&n!==void 0?n:1)&1||c.push(e[f.id]);return{create(f){return f.values[a]=r(f),1},update(f,d){if(l&&d.docChanged||u&&(d.docChanged||d.selection)||aN(f,c)){let p=r(f);if(s?!fq(p,f.values[a],i):!i(p,f.values[a]))return f.values[a]=p,1}return 0},reconfigure:(f,d)=>{let p,v=d.config.address[o];if(v!=null){let g=DC(d,v);if(this.dependencies.every(m=>m instanceof Ye?d.facet(m)===f.facet(m):m instanceof kr?d.field(m,!1)==f.field(m,!1):!0)||(s?fq(p=r(f),g,i):i(p=r(f),g)))return f.values[a]=g,0}else p=r(f);return f.values[a]=p,1}}}}function fq(t,e,n){if(t.length!=e.length)return!1;for(let r=0;r<t.length;r++)if(!n(t[r],e[r]))return!1;return!0}function aN(t,e){let n=!1;for(let r of e)Sy(t,r)&1&&(n=!0);return n}function bOt(t,e,n){let r=n.map(l=>t[l.id]),i=n.map(l=>l.type),o=r.filter(l=>!(l&1)),a=t[e.id]>>1;function s(l){let u=[];for(let c=0;c<r.length;c++){let f=DC(l,r[c]);if(i[c]==2)for(let d of f)u.push(d);else u.push(f)}return e.combine(u)}return{create(l){for(let u of r)Sy(l,u);return l.values[a]=s(l),1},update(l,u){if(!aN(l,o))return 0;let c=s(l);return e.compare(c,l.values[a])?0:(l.values[a]=c,1)},reconfigure(l,u){let c=aN(l,r),f=u.config.facets[e.id],d=u.facet(e);if(f&&!c&&oB(n,f))return l.values[a]=d,0;let p=s(l);return e.compare(p,d)?(l.values[a]=d,0):(l.values[a]=p,1)}}}const dq=Ye.define({static:!0});class kr{constructor(e,n,r,i,o){this.id=e,this.createF=n,this.updateF=r,this.compareF=i,this.spec=o,this.provides=void 0}static define(e){let n=new kr(iB++,e.create,e.update,e.compare||((r,i)=>r===i),e);return e.provide&&(n.provides=e.provide(n)),n}create(e){let n=e.facet(dq).find(r=>r.field==this);return((n==null?void 0:n.create)||this.createF)(e)}slot(e){let n=e[this.id]>>1;return{create:r=>(r.values[n]=this.create(r),1),update:(r,i)=>{let o=r.values[n],a=this.updateF(o,i);return this.compareF(o,a)?0:(r.values[n]=a,1)},reconfigure:(r,i)=>i.config.address[this.id]!=null?(r.values[n]=i.field(this),0):(r.values[n]=this.create(r),1)}}init(e){return[this,dq.of({field:this,create:e})]}get extension(){return this}}const fd={lowest:4,low:3,default:2,high:1,highest:0};function c0(t){return e=>new Ehe(e,t)}const tf={highest:c0(fd.highest),high:c0(fd.high),default:c0(fd.default),low:c0(fd.low),lowest:c0(fd.lowest)};class Ehe{constructor(e,n){this.inner=e,this.prec=n}}class k_{of(e){return new sN(this,e)}reconfigure(e){return k_.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class sN{constructor(e,n){this.compartment=e,this.inner=n}}class IC{constructor(e,n,r,i,o,a){for(this.base=e,this.compartments=n,this.dynamicSlots=r,this.address=i,this.staticValues=o,this.facets=a,this.statusTemplate=[];this.statusTemplate.length<r.length;)this.statusTemplate.push(0)}staticFacet(e){let n=this.address[e.id];return n==null?e.default:this.staticValues[n>>1]}static resolve(e,n,r){let i=[],o=Object.create(null),a=new Map;for(let d of _Ot(e,n,a))d instanceof kr?i.push(d):(o[d.facet.id]||(o[d.facet.id]=[])).push(d);let s=Object.create(null),l=[],u=[];for(let d of i)s[d.id]=u.length<<1,u.push(p=>d.slot(p));let c=r==null?void 0:r.config.facets;for(let d in o){let p=o[d],v=p[0].facet,g=c&&c[d]||[];if(p.every(m=>m.type==0))if(s[v.id]=l.length<<1|1,oB(g,p))l.push(r.facet(v));else{let m=v.combine(p.map(y=>y.value));l.push(r&&v.compare(m,r.facet(v))?r.facet(v):m)}else{for(let m of p)m.type==0?(s[m.id]=l.length<<1|1,l.push(m.value)):(s[m.id]=u.length<<1,u.push(y=>m.dynamicSlot(y)));s[v.id]=u.length<<1,u.push(m=>bOt(m,v,p))}}let f=u.map(d=>d(s));return new IC(e,a,f,s,l,o)}}function _Ot(t,e,n){let r=[[],[],[],[],[]],i=new Map;function o(a,s){let l=i.get(a);if(l!=null){if(l<=s)return;let u=r[l].indexOf(a);u>-1&&r[l].splice(u,1),a instanceof sN&&n.delete(a.compartment)}if(i.set(a,s),Array.isArray(a))for(let u of a)o(u,s);else if(a instanceof sN){if(n.has(a.compartment))throw new RangeError("Duplicate use of compartment in extensions");let u=e.get(a.compartment)||a.inner;n.set(a.compartment,u),o(u,s)}else if(a instanceof Ehe)o(a.inner,a.prec);else if(a instanceof kr)r[s].push(a),a.provides&&o(a.provides,s);else if(a instanceof Rx)r[s].push(a),a.facet.extensions&&o(a.facet.extensions,fd.default);else{let u=a.extension;if(!u)throw new Error(`Unrecognized extension value in extension set (${a}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);o(u,s)}}return o(t,fd.default),r.reduce((a,s)=>a.concat(s))}function Sy(t,e){if(e&1)return 2;let n=e>>1,r=t.status[n];if(r==4)throw new Error("Cyclic dependency between fields and/or facets");if(r&2)return r;t.status[n]=4;let i=t.computeSlot(t,t.config.dynamicSlots[n]);return t.status[n]=2|i}function DC(t,e){return e&1?t.config.staticValues[e>>1]:t.values[e>>1]}const Mhe=Ye.define(),lN=Ye.define({combine:t=>t.some(e=>e),static:!0}),Ihe=Ye.define({combine:t=>t.length?t[0]:void 0,static:!0}),Dhe=Ye.define(),Rhe=Ye.define(),khe=Ye.define(),Nhe=Ye.define({combine:t=>t.length?t[0]:!1});class Ou{constructor(e,n){this.type=e,this.value=n}static define(){return new OOt}}class OOt{of(e){return new Ou(this,e)}}class wOt{constructor(e){this.map=e}of(e){return new wt(this,e)}}class wt{constructor(e,n){this.type=e,this.value=n}map(e){let n=this.type.map(this.value,e);return n===void 0?void 0:n==this.value?this:new wt(this.type,n)}is(e){return this.type==e}static define(e={}){return new wOt(e.map||(n=>n))}static mapEffects(e,n){if(!e.length)return e;let r=[];for(let i of e){let o=i.map(n);o&&r.push(o)}return r}}wt.reconfigure=wt.define();wt.appendConfig=wt.define();class cr{constructor(e,n,r,i,o,a){this.startState=e,this.changes=n,this.selection=r,this.effects=i,this.annotations=o,this.scrollIntoView=a,this._doc=null,this._state=null,r&&Ahe(r,n.newLength),o.some(s=>s.type==cr.time)||(this.annotations=o.concat(cr.time.of(Date.now())))}static create(e,n,r,i,o,a){return new cr(e,n,r,i,o,a)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let n of this.annotations)if(n.type==e)return n.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let n=this.annotation(cr.userEvent);return!!(n&&(n==e||n.length>e.length&&n.slice(0,e.length)==e&&n[e.length]=="."))}}cr.time=Ou.define();cr.userEvent=Ou.define();cr.addToHistory=Ou.define();cr.remote=Ou.define();function xOt(t,e){let n=[];for(let r=0,i=0;;){let o,a;if(r<t.length&&(i==e.length||e[i]>=t[r]))o=t[r++],a=t[r++];else if(i<e.length)o=e[i++],a=e[i++];else return n;!n.length||n[n.length-1]<o?n.push(o,a):n[n.length-1]<a&&(n[n.length-1]=a)}}function Lhe(t,e,n){var r;let i,o,a;return n?(i=e.changes,o=yr.empty(e.changes.length),a=t.changes.compose(e.changes)):(i=e.changes.map(t.changes),o=t.changes.mapDesc(e.changes,!0),a=t.changes.compose(i)),{changes:a,selection:e.selection?e.selection.map(o):(r=t.selection)===null||r===void 0?void 0:r.map(i),effects:wt.mapEffects(t.effects,i).concat(wt.mapEffects(e.effects,o)),annotations:t.annotations.length?t.annotations.concat(e.annotations):e.annotations,scrollIntoView:t.scrollIntoView||e.scrollIntoView}}function uN(t,e,n){let r=e.selection,i=mv(e.annotations);return e.userEvent&&(i=i.concat(cr.userEvent.of(e.userEvent))),{changes:e.changes instanceof yr?e.changes:yr.of(e.changes||[],n,t.facet(Ihe)),selection:r&&(r instanceof Te?r:Te.single(r.anchor,r.head)),effects:mv(e.effects),annotations:i,scrollIntoView:!!e.scrollIntoView}}function Bhe(t,e,n){let r=uN(t,e.length?e[0]:{},t.doc.length);e.length&&e[0].filter===!1&&(n=!1);for(let o=1;o<e.length;o++){e[o].filter===!1&&(n=!1);let a=!!e[o].sequential;r=Lhe(r,uN(t,e[o],a?r.changes.newLength:t.doc.length),a)}let i=cr.create(t,r.changes,r.selection,r.effects,r.annotations,r.scrollIntoView);return COt(n?SOt(i):i)}function SOt(t){let e=t.startState,n=!0;for(let i of e.facet(Dhe)){let o=i(t);if(o===!1){n=!1;break}Array.isArray(o)&&(n=n===!0?o:xOt(n,o))}if(n!==!0){let i,o;if(n===!1)o=t.changes.invertedDesc,i=yr.empty(e.doc.length);else{let a=t.changes.filter(n);i=a.changes,o=a.filtered.mapDesc(a.changes).invertedDesc}t=cr.create(e,i,t.selection&&t.selection.map(o),wt.mapEffects(t.effects,o),t.annotations,t.scrollIntoView)}let r=e.facet(Rhe);for(let i=r.length-1;i>=0;i--){let o=r[i](t);o instanceof cr?t=o:Array.isArray(o)&&o.length==1&&o[0]instanceof cr?t=o[0]:t=Bhe(e,mv(o),!1)}return t}function COt(t){let e=t.startState,n=e.facet(khe),r=t;for(let i=n.length-1;i>=0;i--){let o=n[i](t);o&&Object.keys(o).length&&(r=Lhe(r,uN(e,o,t.changes.newLength),!0))}return r==t?t:cr.create(e,t.changes,t.selection,r.effects,r.annotations,r.scrollIntoView)}const TOt=[];function mv(t){return t==null?TOt:Array.isArray(t)?t:[t]}var Ln=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(Ln||(Ln={}));const POt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let cN;try{cN=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function $Ot(t){if(cN)return cN.test(t);for(let e=0;e<t.length;e++){let n=t[e];if(/\w/.test(n)||n>"€"&&(n.toUpperCase()!=n.toLowerCase()||POt.test(n)))return!0}return!1}function AOt(t){return e=>{if(!/\S/.test(e))return Ln.Space;if($Ot(e))return Ln.Word;for(let n=0;n<t.length;n++)if(e.indexOf(t[n])>-1)return Ln.Word;return Ln.Other}}class Wt{constructor(e,n,r,i,o,a){this.config=e,this.doc=n,this.selection=r,this.values=i,this.status=e.statusTemplate.slice(),this.computeSlot=o,a&&(a._state=this);for(let s=0;s<this.config.dynamicSlots.length;s++)Sy(this,s<<1);this.computeSlot=null}field(e,n=!0){let r=this.config.address[e.id];if(r==null){if(n)throw new RangeError("Field is not present in this state");return}return Sy(this,r),DC(this,r)}update(...e){return Bhe(this,e,!0)}applyTransaction(e){let n=this.config,{base:r,compartments:i}=n;for(let s of e.effects)s.is(k_.reconfigure)?(n&&(i=new Map,n.compartments.forEach((l,u)=>i.set(u,l)),n=null),i.set(s.value.compartment,s.value.extension)):s.is(wt.reconfigure)?(n=null,r=s.value):s.is(wt.appendConfig)&&(n=null,r=mv(r).concat(s.value));let o;n?o=e.startState.values.slice():(n=IC.resolve(r,i,this),o=new Wt(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(l,u)=>u.reconfigure(l,this),null).values);let a=e.startState.facet(lN)?e.newSelection:e.newSelection.asSingle();new Wt(n,e.newDoc,a,o,(s,l)=>l.update(s,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:e},range:Te.cursor(n.from+e.length)}))}changeByRange(e){let n=this.selection,r=e(n.ranges[0]),i=this.changes(r.changes),o=[r.range],a=mv(r.effects);for(let s=1;s<n.ranges.length;s++){let l=e(n.ranges[s]),u=this.changes(l.changes),c=u.map(i);for(let d=0;d<s;d++)o[d]=o[d].map(c);let f=i.mapDesc(u,!0);o.push(l.range.map(f)),i=i.compose(c),a=wt.mapEffects(a,c).concat(wt.mapEffects(mv(l.effects),f))}return{changes:i,selection:Te.create(o,n.mainIndex),effects:a}}changes(e=[]){return e instanceof yr?e:yr.of(e,this.doc.length,this.facet(Wt.lineSeparator))}toText(e){return en.of(e.split(this.facet(Wt.lineSeparator)||rN))}sliceDoc(e=0,n=this.doc.length){return this.doc.sliceString(e,n,this.lineBreak)}facet(e){let n=this.config.address[e.id];return n==null?e.default:(Sy(this,n),DC(this,n))}toJSON(e){let n={doc:this.sliceDoc(),selection:this.selection.toJSON()};if(e)for(let r in e){let i=e[r];i instanceof kr&&this.config.address[i.id]!=null&&(n[r]=i.spec.toJSON(this.field(e[r]),this))}return n}static fromJSON(e,n={},r){if(!e||typeof e.doc!="string")throw new RangeError("Invalid JSON representation for EditorState");let i=[];if(r){for(let o in r)if(Object.prototype.hasOwnProperty.call(e,o)){let a=r[o],s=e[o];i.push(a.init(l=>a.spec.fromJSON(s,l)))}}return Wt.create({doc:e.doc,selection:Te.fromJSON(e.selection),extensions:n.extensions?i.concat([n.extensions]):i})}static create(e={}){let n=IC.resolve(e.extensions||[],new Map),r=e.doc instanceof en?e.doc:en.of((e.doc||"").split(n.staticFacet(Wt.lineSeparator)||rN)),i=e.selection?e.selection instanceof Te?e.selection:Te.single(e.selection.anchor,e.selection.head):Te.single(0);return Ahe(i,r.length),n.staticFacet(lN)||(i=i.asSingle()),new Wt(n,r,i,n.dynamicSlots.map(()=>null),(o,a)=>a.create(o),null)}get tabSize(){return this.facet(Wt.tabSize)}get lineBreak(){return this.facet(Wt.lineSeparator)||`
  397. `}get readOnly(){return this.facet(Nhe)}phrase(e,...n){for(let r of this.facet(Wt.phrases))if(Object.prototype.hasOwnProperty.call(r,e)){e=r[e];break}return n.length&&(e=e.replace(/\$(\$|\d*)/g,(r,i)=>{if(i=="$")return"$";let o=+(i||1);return!o||o>n.length?r:n[o-1]})),e}languageDataAt(e,n,r=-1){let i=[];for(let o of this.facet(Mhe))for(let a of o(this,n,r))Object.prototype.hasOwnProperty.call(a,e)&&i.push(a[e]);return i}charCategorizer(e){return AOt(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:n,from:r,length:i}=this.doc.lineAt(e),o=this.charCategorizer(e),a=e-r,s=e-r;for(;a>0;){let l=Ur(n,a,!1);if(o(n.slice(l,a))!=Ln.Word)break;a=l}for(;s<i;){let l=Ur(n,s);if(o(n.slice(s,l))!=Ln.Word)break;s=l}return a==s?null:Te.range(a+r,s+r)}}Wt.allowMultipleSelections=lN;Wt.tabSize=Ye.define({combine:t=>t.length?t[0]:4});Wt.lineSeparator=Ihe;Wt.readOnly=Nhe;Wt.phrases=Ye.define({compare(t,e){let n=Object.keys(t),r=Object.keys(e);return n.length==r.length&&n.every(i=>t[i]==e[i])}});Wt.languageData=Mhe;Wt.changeFilter=Dhe;Wt.transactionFilter=Rhe;Wt.transactionExtender=khe;k_.reconfigure=wt.define();function gl(t,e,n={}){let r={};for(let i of t)for(let o of Object.keys(i)){let a=i[o],s=r[o];if(s===void 0)r[o]=a;else if(!(s===a||a===void 0))if(Object.hasOwnProperty.call(n,o))r[o]=n[o](s,a);else throw new Error("Config merge conflict for field "+o)}for(let i in e)r[i]===void 0&&(r[i]=e[i]);return r}class vh{eq(e){return this==e}range(e,n=e){return fN.create(e,n,this)}}vh.prototype.startSide=vh.prototype.endSide=0;vh.prototype.point=!1;vh.prototype.mapMode=Gr.TrackDel;let fN=class Vhe{constructor(e,n,r){this.from=e,this.to=n,this.value=r}static create(e,n,r){return new Vhe(e,n,r)}};function dN(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}class aB{constructor(e,n,r,i){this.from=e,this.to=n,this.value=r,this.maxPoint=i}get length(){return this.to[this.to.length-1]}findIndex(e,n,r,i=0){let o=r?this.to:this.from;for(let a=i,s=o.length;;){if(a==s)return a;let l=a+s>>1,u=o[l]-e||(r?this.value[l].endSide:this.value[l].startSide)-n;if(l==a)return u>=0?a:s;u>=0?s=l:a=l+1}}between(e,n,r,i){for(let o=this.findIndex(n,-1e9,!0),a=this.findIndex(r,1e9,!1,o);o<a;o++)if(i(this.from[o]+e,this.to[o]+e,this.value[o])===!1)return!1}map(e,n){let r=[],i=[],o=[],a=-1,s=-1;for(let l=0;l<this.value.length;l++){let u=this.value[l],c=this.from[l]+e,f=this.to[l]+e,d,p;if(c==f){let v=n.mapPos(c,u.startSide,u.mapMode);if(v==null||(d=p=v,u.startSide!=u.endSide&&(p=n.mapPos(c,u.endSide),p<d)))continue}else if(d=n.mapPos(c,u.startSide),p=n.mapPos(f,u.endSide),d>p||d==p&&u.startSide>0&&u.endSide<=0)continue;(p-d||u.endSide-u.startSide)<0||(a<0&&(a=d),u.point&&(s=Math.max(s,p-d)),r.push(u),i.push(d-a),o.push(p-a))}return{mapped:r.length?new aB(i,o,r,s):null,pos:a}}}class Jt{constructor(e,n,r,i){this.chunkPos=e,this.chunk=n,this.nextLayer=r,this.maxPoint=i}static create(e,n,r,i){return new Jt(e,n,r,i)}get length(){let e=this.chunk.length-1;return e<0?0:Math.max(this.chunkEnd(e),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let e=this.nextLayer.size;for(let n of this.chunk)e+=n.value.length;return e}chunkEnd(e){return this.chunkPos[e]+this.chunk[e].length}update(e){let{add:n=[],sort:r=!1,filterFrom:i=0,filterTo:o=this.length}=e,a=e.filter;if(n.length==0&&!a)return this;if(r&&(n=n.slice().sort(dN)),this.isEmpty)return n.length?Jt.of(n):this;let s=new zhe(this,null,-1).goto(0),l=0,u=[],c=new Bc;for(;s.value||l<n.length;)if(l<n.length&&(s.from-n[l].from||s.startSide-n[l].value.startSide)>=0){let f=n[l++];c.addInner(f.from,f.to,f.value)||u.push(f)}else s.rangeIndex==1&&s.chunkIndex<this.chunk.length&&(l==n.length||this.chunkEnd(s.chunkIndex)<n[l].from)&&(!a||i>this.chunkEnd(s.chunkIndex)||o<this.chunkPos[s.chunkIndex])&&c.addChunk(this.chunkPos[s.chunkIndex],this.chunk[s.chunkIndex])?s.nextChunk():((!a||i>s.to||o<s.from||a(s.from,s.to,s.value))&&(c.addInner(s.from,s.to,s.value)||u.push(fN.create(s.from,s.to,s.value))),s.next());return c.finishInner(this.nextLayer.isEmpty&&!u.length?Jt.empty:this.nextLayer.update({add:u,filter:a,filterFrom:i,filterTo:o}))}map(e){if(e.empty||this.isEmpty)return this;let n=[],r=[],i=-1;for(let a=0;a<this.chunk.length;a++){let s=this.chunkPos[a],l=this.chunk[a],u=e.touchesRange(s,s+l.length);if(u===!1)i=Math.max(i,l.maxPoint),n.push(l),r.push(e.mapPos(s));else if(u===!0){let{mapped:c,pos:f}=l.map(s,e);c&&(i=Math.max(i,c.maxPoint),n.push(c),r.push(f))}}let o=this.nextLayer.map(e);return n.length==0?o:new Jt(r,n,o||Jt.empty,i)}between(e,n,r){if(!this.isEmpty){for(let i=0;i<this.chunk.length;i++){let o=this.chunkPos[i],a=this.chunk[i];if(n>=o&&e<=o+a.length&&a.between(o,e-o,n-o,r)===!1)return}this.nextLayer.between(e,n,r)}}iter(e=0){return Tb.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,n=0){return Tb.from(e).goto(n)}static compare(e,n,r,i,o=-1){let a=e.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=o),s=n.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=o),l=hq(a,s,r),u=new f0(a,l,o),c=new f0(s,l,o);r.iterGaps((f,d,p)=>pq(u,f,c,d,p,i)),r.empty&&r.length==0&&pq(u,0,c,0,0,i)}static eq(e,n,r=0,i){i==null&&(i=999999999);let o=e.filter(c=>!c.isEmpty&&n.indexOf(c)<0),a=n.filter(c=>!c.isEmpty&&e.indexOf(c)<0);if(o.length!=a.length)return!1;if(!o.length)return!0;let s=hq(o,a),l=new f0(o,s,0).goto(r),u=new f0(a,s,0).goto(r);for(;;){if(l.to!=u.to||!hN(l.active,u.active)||l.point&&(!u.point||!l.point.eq(u.point)))return!1;if(l.to>i)return!0;l.next(),u.next()}}static spans(e,n,r,i,o=-1){let a=new f0(e,null,o).goto(n),s=n,l=a.openStart;for(;;){let u=Math.min(a.to,r);if(a.point){let c=a.activeForPoint(a.to),f=a.pointFrom<n?c.length+1:a.point.startSide<0?c.length:Math.min(c.length,l);i.point(s,u,a.point,c,f,a.pointRank),l=Math.min(a.openEnd(u),c.length)}else u>s&&(i.span(s,u,a.active,l),l=a.openEnd(u));if(a.to>r)return l+(a.point&&a.to>r?1:0);s=a.to,a.next()}}static of(e,n=!1){let r=new Bc;for(let i of e instanceof fN?[e]:n?EOt(e):e)r.add(i.from,i.to,i.value);return r.finish()}static join(e){if(!e.length)return Jt.empty;let n=e[e.length-1];for(let r=e.length-2;r>=0;r--)for(let i=e[r];i!=Jt.empty;i=i.nextLayer)n=new Jt(i.chunkPos,i.chunk,n,Math.max(i.maxPoint,n.maxPoint));return n}}Jt.empty=new Jt([],[],null,-1);function EOt(t){if(t.length>1)for(let e=t[0],n=1;n<t.length;n++){let r=t[n];if(dN(e,r)>0)return t.slice().sort(dN);e=r}return t}Jt.empty.nextLayer=Jt.empty;class Bc{finishChunk(e){this.chunks.push(new aB(this.from,this.to,this.value,this.maxPoint)),this.chunkPos.push(this.chunkStart),this.chunkStart=-1,this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint),this.maxPoint=-1,e&&(this.from=[],this.to=[],this.value=[])}constructor(){this.chunks=[],this.chunkPos=[],this.chunkStart=-1,this.last=null,this.lastFrom=-1e9,this.lastTo=-1e9,this.from=[],this.to=[],this.value=[],this.maxPoint=-1,this.setMaxPoint=-1,this.nextLayer=null}add(e,n,r){this.addInner(e,n,r)||(this.nextLayer||(this.nextLayer=new Bc)).add(e,n,r)}addInner(e,n,r){let i=e-this.lastTo||r.startSide-this.last.endSide;if(i<=0&&(e-this.lastFrom||r.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");return i<0?!1:(this.from.length==250&&this.finishChunk(!0),this.chunkStart<0&&(this.chunkStart=e),this.from.push(e-this.chunkStart),this.to.push(n-this.chunkStart),this.last=r,this.lastFrom=e,this.lastTo=n,this.value.push(r),r.point&&(this.maxPoint=Math.max(this.maxPoint,n-e)),!0)}addChunk(e,n){if((e-this.lastTo||n.value[0].startSide-this.last.endSide)<0)return!1;this.from.length&&this.finishChunk(!0),this.setMaxPoint=Math.max(this.setMaxPoint,n.maxPoint),this.chunks.push(n),this.chunkPos.push(e);let r=n.value.length-1;return this.last=n.value[r],this.lastFrom=n.from[r]+e,this.lastTo=n.to[r]+e,!0}finish(){return this.finishInner(Jt.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let n=Jt.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,n}}function hq(t,e,n){let r=new Map;for(let o of t)for(let a=0;a<o.chunk.length;a++)o.chunk[a].maxPoint<=0&&r.set(o.chunk[a],o.chunkPos[a]);let i=new Set;for(let o of e)for(let a=0;a<o.chunk.length;a++){let s=r.get(o.chunk[a]);s!=null&&(n?n.mapPos(s):s)==o.chunkPos[a]&&!(n!=null&&n.touchesRange(s,s+o.chunk[a].length))&&i.add(o.chunk[a])}return i}class zhe{constructor(e,n,r,i=0){this.layer=e,this.skip=n,this.minPoint=r,this.rank=i}get startSide(){return this.value?this.value.startSide:0}get endSide(){return this.value?this.value.endSide:0}goto(e,n=-1e9){return this.chunkIndex=this.rangeIndex=0,this.gotoInner(e,n,!1),this}gotoInner(e,n,r){for(;this.chunkIndex<this.layer.chunk.length;){let i=this.layer.chunk[this.chunkIndex];if(!(this.skip&&this.skip.has(i)||this.layer.chunkEnd(this.chunkIndex)<e||i.maxPoint<this.minPoint))break;this.chunkIndex++,r=!1}if(this.chunkIndex<this.layer.chunk.length){let i=this.layer.chunk[this.chunkIndex].findIndex(e-this.layer.chunkPos[this.chunkIndex],n,!0);(!r||this.rangeIndex<i)&&this.setRangeIndex(i)}this.next()}forward(e,n){(this.to-e||this.endSide-n)<0&&this.gotoInner(e,n,!0)}next(){for(;;)if(this.chunkIndex==this.layer.chunk.length){this.from=this.to=1e9,this.value=null;break}else{let e=this.layer.chunkPos[this.chunkIndex],n=this.layer.chunk[this.chunkIndex],r=e+n.from[this.rangeIndex];if(this.from=r,this.to=e+n.to[this.rangeIndex],this.value=n.value[this.rangeIndex],this.setRangeIndex(this.rangeIndex+1),this.minPoint<0||this.value.point&&this.to-this.from>=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex<this.layer.chunk.length&&this.skip.has(this.layer.chunk[this.chunkIndex]);)this.chunkIndex++;this.rangeIndex=0}else this.rangeIndex=e}nextChunk(){this.chunkIndex++,this.rangeIndex=0,this.next()}compare(e){return this.from-e.from||this.startSide-e.startSide||this.rank-e.rank||this.to-e.to||this.endSide-e.endSide}}class Tb{constructor(e){this.heap=e}static from(e,n=null,r=-1){let i=[];for(let o=0;o<e.length;o++)for(let a=e[o];!a.isEmpty;a=a.nextLayer)a.maxPoint>=r&&i.push(new zhe(a,n,r,o));return i.length==1?i[0]:new Tb(i)}get startSide(){return this.value?this.value.startSide:0}goto(e,n=-1e9){for(let r of this.heap)r.goto(e,n);for(let r=this.heap.length>>1;r>=0;r--)oI(this.heap,r);return this.next(),this}forward(e,n){for(let r of this.heap)r.forward(e,n);for(let r=this.heap.length>>1;r>=0;r--)oI(this.heap,r);(this.to-e||this.value.endSide-n)<0&&this.next()}next(){if(this.heap.length==0)this.from=this.to=1e9,this.value=null,this.rank=-1;else{let e=this.heap[0];this.from=e.from,this.to=e.to,this.value=e.value,this.rank=e.rank,e.value&&e.next(),oI(this.heap,0)}}}function oI(t,e){for(let n=t[e];;){let r=(e<<1)+1;if(r>=t.length)break;let i=t[r];if(r+1<t.length&&i.compare(t[r+1])>=0&&(i=t[r+1],r++),n.compare(i)<0)break;t[r]=n,t[e]=i,e=r}}class f0{constructor(e,n,r){this.minPoint=r,this.active=[],this.activeTo=[],this.activeRank=[],this.minActive=-1,this.point=null,this.pointFrom=0,this.pointRank=0,this.to=-1e9,this.endSide=0,this.openStart=-1,this.cursor=Tb.from(e,n,r)}goto(e,n=-1e9){return this.cursor.goto(e,n),this.active.length=this.activeTo.length=this.activeRank.length=0,this.minActive=-1,this.to=e,this.endSide=n,this.openStart=-1,this.next(),this}forward(e,n){for(;this.minActive>-1&&(this.activeTo[this.minActive]-e||this.active[this.minActive].endSide-n)<0;)this.removeActive(this.minActive);this.cursor.forward(e,n)}removeActive(e){hw(this.active,e),hw(this.activeTo,e),hw(this.activeRank,e),this.minActive=vq(this.active,this.activeTo)}addActive(e){let n=0,{value:r,to:i,rank:o}=this.cursor;for(;n<this.activeRank.length&&(o-this.activeRank[n]||i-this.activeTo[n])>0;)n++;pw(this.active,n,r),pw(this.activeTo,n,i),pw(this.activeRank,n,o),e&&pw(e,n,this.cursor.from),this.minActive=vq(this.active,this.activeTo)}next(){let e=this.to,n=this.point;this.point=null;let r=this.openStart<0?[]:null;for(;;){let i=this.minActive;if(i>-1&&(this.activeTo[i]-this.cursor.from||this.active[i].endSide-this.cursor.startSide)<0){if(this.activeTo[i]>e){this.to=this.activeTo[i],this.endSide=this.active[i].endSide;break}this.removeActive(i),r&&hw(r,i)}else if(this.cursor.value)if(this.cursor.from>e){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let o=this.cursor.value;if(!o.point)this.addActive(r),this.cursor.next();else if(n&&this.cursor.to==this.to&&this.cursor.from<this.cursor.to)this.cursor.next();else{this.point=o,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=o.endSide,this.cursor.next(),this.forward(this.to,this.endSide);break}}else{this.to=this.endSide=1e9;break}}if(r){this.openStart=0;for(let i=r.length-1;i>=0&&r[i]<e;i--)this.openStart++}}activeForPoint(e){if(!this.active.length)return this.active;let n=[];for(let r=this.active.length-1;r>=0&&!(this.activeRank[r]<this.pointRank);r--)(this.activeTo[r]>e||this.activeTo[r]==e&&this.active[r].endSide>=this.point.endSide)&&n.push(this.active[r]);return n.reverse()}openEnd(e){let n=0;for(let r=this.activeTo.length-1;r>=0&&this.activeTo[r]>e;r--)n++;return n}}function pq(t,e,n,r,i,o){t.goto(e),n.goto(r);let a=r+i,s=r,l=r-e;for(;;){let u=t.to+l-n.to||t.endSide-n.endSide,c=u<0?t.to+l:n.to,f=Math.min(c,a);if(t.point||n.point?t.point&&n.point&&(t.point==n.point||t.point.eq(n.point))&&hN(t.activeForPoint(t.to),n.activeForPoint(n.to))||o.comparePoint(s,f,t.point,n.point):f>s&&!hN(t.active,n.active)&&o.compareRange(s,f,t.active,n.active),c>a)break;s=c,u<=0&&t.next(),u>=0&&n.next()}}function hN(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(t[n]!=e[n]&&!t[n].eq(e[n]))return!1;return!0}function hw(t,e){for(let n=e,r=t.length-1;n<r;n++)t[n]=t[n+1];t.pop()}function pw(t,e,n){for(let r=t.length-1;r>=e;r--)t[r+1]=t[r];t[e]=n}function vq(t,e){let n=-1,r=1e9;for(let i=0;i<e.length;i++)(e[i]-r||t[i].endSide-t[n].endSide)<0&&(n=i,r=e[i]);return n}function qg(t,e,n=t.length){let r=0;for(let i=0;i<n;)t.charCodeAt(i)==9?(r+=e-r%e,i++):(r++,i=Ur(t,i));return r}function pN(t,e,n,r){for(let i=0,o=0;;){if(o>=e)return i;if(i==t.length)break;o+=t.charCodeAt(i)==9?n-o%n:1,i=Ur(t,i)}return r===!0?-1:t.length}const vN="ͼ",gq=typeof Symbol>"u"?"__"+vN:Symbol.for(vN),gN=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),mq=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class Vc{constructor(e,n){this.rules=[];let{finish:r}=n||{};function i(a){return/^@/.test(a)?[a]:a.split(/,\s*/)}function o(a,s,l,u){let c=[],f=/^@(\w+)\b/.exec(a[0]),d=f&&f[1]=="keyframes";if(f&&s==null)return l.push(a[0]+";");for(let p in s){let v=s[p];if(/&/.test(p))o(p.split(/,\s*/).map(g=>a.map(m=>g.replace(/&/,m))).reduce((g,m)=>g.concat(m)),v,l);else if(v&&typeof v=="object"){if(!f)throw new RangeError("The value of a property ("+p+") should be a primitive value.");o(i(p),v,c,d)}else v!=null&&c.push(p.replace(/_.*/,"").replace(/[A-Z]/g,g=>"-"+g.toLowerCase())+": "+v+";")}(c.length||d)&&l.push((r&&!f&&!u?a.map(r):a).join(", ")+" {"+c.join(" ")+"}")}for(let a in e)o(i(a),e[a],this.rules)}getRules(){return this.rules.join(`
  398. `)}static newName(){let e=mq[gq]||1;return mq[gq]=e+1,vN+e.toString(36)}static mount(e,n,r){let i=e[gN],o=r&&r.nonce;i?o&&i.setNonce(o):i=new MOt(e,o),i.mount(Array.isArray(n)?n:[n],e)}}let yq=new Map;class MOt{constructor(e,n){let r=e.ownerDocument||e,i=r.defaultView;if(!e.head&&e.adoptedStyleSheets&&i.CSSStyleSheet){let o=yq.get(r);if(o)return e[gN]=o;this.sheet=new i.CSSStyleSheet,yq.set(r,this)}else this.styleTag=r.createElement("style"),n&&this.styleTag.setAttribute("nonce",n);this.modules=[],e[gN]=this}mount(e,n){let r=this.sheet,i=0,o=0;for(let a=0;a<e.length;a++){let s=e[a],l=this.modules.indexOf(s);if(l<o&&l>-1&&(this.modules.splice(l,1),o--,l=-1),l==-1){if(this.modules.splice(o++,0,s),r)for(let u=0;u<s.rules.length;u++)r.insertRule(s.rules[u],i++)}else{for(;o<l;)i+=this.modules[o++].rules.length;i+=s.rules.length,o++}}if(r)n.adoptedStyleSheets.indexOf(this.sheet)<0&&(n.adoptedStyleSheets=[this.sheet,...n.adoptedStyleSheets]);else{let a="";for(let l=0;l<this.modules.length;l++)a+=this.modules[l].getRules()+`
  399. `;this.styleTag.textContent=a;let s=n.head||n;this.styleTag.parentNode!=s&&s.insertBefore(this.styleTag,s.firstChild)}}setNonce(e){this.styleTag&&this.styleTag.getAttribute("nonce")!=e&&this.styleTag.setAttribute("nonce",e)}}var zc={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},Pb={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},IOt=typeof navigator<"u"&&/Mac/.test(navigator.platform),DOt=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Hr=0;Hr<10;Hr++)zc[48+Hr]=zc[96+Hr]=String(Hr);for(var Hr=1;Hr<=24;Hr++)zc[Hr+111]="F"+Hr;for(var Hr=65;Hr<=90;Hr++)zc[Hr]=String.fromCharCode(Hr+32),Pb[Hr]=String.fromCharCode(Hr);for(var aI in zc)Pb.hasOwnProperty(aI)||(Pb[aI]=zc[aI]);function ROt(t){var e=IOt&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||DOt&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?Pb:zc)[t.keyCode]||t.key||"Unidentified";return n=="Esc"&&(n="Escape"),n=="Del"&&(n="Delete"),n=="Left"&&(n="ArrowLeft"),n=="Up"&&(n="ArrowUp"),n=="Right"&&(n="ArrowRight"),n=="Down"&&(n="ArrowDown"),n}function $b(t){let e;return t.nodeType==11?e=t.getSelection?t:t.ownerDocument:e=t,e.getSelection()}function mN(t,e){return e?t==e||t.contains(e.nodeType!=1?e.parentNode:e):!1}function kOt(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function kx(t,e){if(!e.anchorNode)return!1;try{return mN(t,e.anchorNode)}catch{return!1}}function ug(t){return t.nodeType==3?mh(t,0,t.nodeValue.length).getClientRects():t.nodeType==1?t.getClientRects():[]}function Cy(t,e,n,r){return n?bq(t,e,n,r,-1)||bq(t,e,n,r,1):!1}function gh(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e}function RC(t){return t.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}function bq(t,e,n,r,i){for(;;){if(t==n&&e==r)return!0;if(e==(i<0?0:fu(t))){if(t.nodeName=="DIV")return!1;let o=t.parentNode;if(!o||o.nodeType!=1)return!1;e=gh(t)+(i<0?0:1),t=o}else if(t.nodeType==1){if(t=t.childNodes[e+(i<0?-1:0)],t.nodeType==1&&t.contentEditable=="false")return!1;e=i<0?fu(t):0}else return!1}}function fu(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function l2(t,e){let n=e?t.left:t.right;return{left:n,right:n,top:t.top,bottom:t.bottom}}function NOt(t){let e=t.visualViewport;return e?{left:0,right:e.width,top:0,bottom:e.height}:{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}function Fhe(t,e){let n=e.width/t.offsetWidth,r=e.height/t.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(e.width-t.offsetWidth)<1)&&(n=1),(r>.995&&r<1.005||!isFinite(r)||Math.abs(e.height-t.offsetHeight)<1)&&(r=1),{scaleX:n,scaleY:r}}function LOt(t,e,n,r,i,o,a,s){let l=t.ownerDocument,u=l.defaultView||window;for(let c=t,f=!1;c&&!f;)if(c.nodeType==1){let d,p=c==l.body,v=1,g=1;if(p)d=NOt(u);else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(f=!0),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let b=c.getBoundingClientRect();({scaleX:v,scaleY:g}=Fhe(c,b)),d={left:b.left,right:b.left+c.clientWidth*v,top:b.top,bottom:b.top+c.clientHeight*g}}let m=0,y=0;if(i=="nearest")e.top<d.top?(y=-(d.top-e.top+a),n>0&&e.bottom>d.bottom+y&&(y=e.bottom-d.bottom+y+a)):e.bottom>d.bottom&&(y=e.bottom-d.bottom+a,n<0&&e.top-y<d.top&&(y=-(d.top+y-e.top+a)));else{let b=e.bottom-e.top,O=d.bottom-d.top;y=(i=="center"&&b<=O?e.top+b/2-O/2:i=="start"||i=="center"&&n<0?e.top-a:e.bottom-O+a)-d.top}if(r=="nearest"?e.left<d.left?(m=-(d.left-e.left+o),n>0&&e.right>d.right+m&&(m=e.right-d.right+m+o)):e.right>d.right&&(m=e.right-d.right+o,n<0&&e.left<d.left+m&&(m=-(d.left+m-e.left+o))):m=(r=="center"?e.left+(e.right-e.left)/2-(d.right-d.left)/2:r=="start"==s?e.left-o:e.right-(d.right-d.left)+o)-d.left,m||y)if(p)u.scrollBy(m,y);else{let b=0,O=0;if(y){let w=c.scrollTop;c.scrollTop+=y/g,O=(c.scrollTop-w)*g}if(m){let w=c.scrollLeft;c.scrollLeft+=m/v,b=(c.scrollLeft-w)*v}e={left:e.left-b,top:e.top-O,right:e.right-b,bottom:e.bottom-O},b&&Math.abs(b-m)<1&&(r="nearest"),O&&Math.abs(O-y)<1&&(i="nearest")}if(p)break;c=c.assignedSlot||c.parentNode}else if(c.nodeType==11)c=c.host;else break}function BOt(t){let e=t.ownerDocument;for(let n=t.parentNode;n&&n!=e.body;)if(n.nodeType==1){if(n.scrollHeight>n.clientHeight||n.scrollWidth>n.clientWidth)return n;n=n.assignedSlot||n.parentNode}else if(n.nodeType==11)n=n.host;else break;return null}class VOt{constructor(){this.anchorNode=null,this.anchorOffset=0,this.focusNode=null,this.focusOffset=0}eq(e){return this.anchorNode==e.anchorNode&&this.anchorOffset==e.anchorOffset&&this.focusNode==e.focusNode&&this.focusOffset==e.focusOffset}setRange(e){let{anchorNode:n,focusNode:r}=e;this.set(n,Math.min(e.anchorOffset,n?fu(n):0),r,Math.min(e.focusOffset,r?fu(r):0))}set(e,n,r,i){this.anchorNode=e,this.anchorOffset=n,this.focusNode=r,this.focusOffset=i}}let Mp=null;function Whe(t){if(t.setActive)return t.setActive();if(Mp)return t.focus(Mp);let e=[];for(let n=t;n&&(e.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(t.focus(Mp==null?{get preventScroll(){return Mp={preventScroll:!0},!0}}:void 0),!Mp){Mp=!1;for(let n=0;n<e.length;){let r=e[n++],i=e[n++],o=e[n++];r.scrollTop!=i&&(r.scrollTop=i),r.scrollLeft!=o&&(r.scrollLeft=o)}}}let _q;function mh(t,e,n=e){let r=_q||(_q=document.createRange());return r.setEnd(t,n),r.setStart(t,e),r}function yv(t,e,n,r){let i={key:e,code:e,keyCode:n,which:n,cancelable:!0};r&&({altKey:i.altKey,ctrlKey:i.ctrlKey,shiftKey:i.shiftKey,metaKey:i.metaKey}=r);let o=new KeyboardEvent("keydown",i);o.synthetic=!0,t.dispatchEvent(o);let a=new KeyboardEvent("keyup",i);return a.synthetic=!0,t.dispatchEvent(a),o.defaultPrevented||a.defaultPrevented}function zOt(t){for(;t;){if(t&&(t.nodeType==9||t.nodeType==11&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}function Qhe(t){for(;t.attributes.length;)t.removeAttributeNode(t.attributes[0])}function FOt(t,e){let n=e.focusNode,r=e.focusOffset;if(!n||e.anchorNode!=n||e.anchorOffset!=r)return!1;for(r=Math.min(r,fu(n));;)if(r){if(n.nodeType!=1)return!1;let i=n.childNodes[r-1];i.contentEditable=="false"?r--:(n=i,r=fu(n))}else{if(n==t)return!0;r=gh(n),n=n.parentNode}}function Hhe(t){return t.scrollTop>Math.max(1,t.scrollHeight-t.clientHeight-4)}function Ghe(t,e){for(let n=t,r=e;;){if(n.nodeType==3&&r>0)return{node:n,offset:r};if(n.nodeType==1&&r>0){if(n.contentEditable=="false")return null;n=n.childNodes[r-1],r=fu(n)}else if(n.parentNode&&!RC(n))r=gh(n),n=n.parentNode;else return null}}function jhe(t,e){for(let n=t,r=e;;){if(n.nodeType==3&&r<n.nodeValue.length)return{node:n,offset:r};if(n.nodeType==1&&r<n.childNodes.length){if(n.contentEditable=="false")return null;n=n.childNodes[r],r=0}else if(n.parentNode&&!RC(n))r=gh(n)+1,n=n.parentNode;else return null}}class li{constructor(e,n,r=!0){this.node=e,this.offset=n,this.precise=r}static before(e,n){return new li(e.parentNode,gh(e),n)}static after(e,n){return new li(e.parentNode,gh(e)+1,n)}}const sB=[];class bn{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(e){let n=this.posAtStart;for(let r of this.children){if(r==e)return n;n+=r.length+r.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(e){return this.posBefore(e)+e.length}sync(e,n){if(this.flags&2){let r=this.dom,i=null,o;for(let a of this.children){if(a.flags&7){if(!a.dom&&(o=i?i.nextSibling:r.firstChild)){let s=bn.get(o);(!s||!s.parent&&s.canReuseDOM(a))&&a.reuseDOM(o)}a.sync(e,n),a.flags&=-8}if(o=i?i.nextSibling:r.firstChild,n&&!n.written&&n.node==r&&o!=a.dom&&(n.written=!0),a.dom.parentNode==r)for(;o&&o!=a.dom;)o=Oq(o);else r.insertBefore(a.dom,o);i=a.dom}for(o=i?i.nextSibling:r.firstChild,o&&n&&n.node==r&&(n.written=!0);o;)o=Oq(o)}else if(this.flags&1)for(let r of this.children)r.flags&7&&(r.sync(e,n),r.flags&=-8)}reuseDOM(e){}localPosFromDOM(e,n){let r;if(e==this.dom)r=this.dom.childNodes[n];else{let i=fu(e)==0?0:n==0?-1:1;for(;;){let o=e.parentNode;if(o==this.dom)break;i==0&&o.firstChild!=o.lastChild&&(e==o.firstChild?i=-1:i=1),e=o}i<0?r=e:r=e.nextSibling}if(r==this.dom.firstChild)return 0;for(;r&&!bn.get(r);)r=r.nextSibling;if(!r)return this.length;for(let i=0,o=0;;i++){let a=this.children[i];if(a.dom==r)return o;o+=a.length+a.breakAfter}}domBoundsAround(e,n,r=0){let i=-1,o=-1,a=-1,s=-1;for(let l=0,u=r,c=r;l<this.children.length;l++){let f=this.children[l],d=u+f.length;if(u<e&&d>n)return f.domBoundsAround(e,n,u);if(d>=e&&i==-1&&(i=l,o=u),u>n&&f.dom.parentNode==this.dom){a=l,s=c;break}c=d,u=d+f.breakAfter}return{from:o,to:s<0?r+this.length:s,startDOM:(i?this.children[i-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:a<this.children.length&&a>=0?this.children[a].dom:null}}markDirty(e=!1){this.flags|=2,this.markParentsDirty(e)}markParentsDirty(e){for(let n=this.parent;n;n=n.parent){if(e&&(n.flags|=2),n.flags&1)return;n.flags|=1,e=!1}}setParent(e){this.parent!=e&&(this.parent=e,this.flags&7&&this.markParentsDirty(!0))}setDOM(e){this.dom!=e&&(this.dom&&(this.dom.cmView=null),this.dom=e,e.cmView=this)}get rootView(){for(let e=this;;){let n=e.parent;if(!n)return e;e=n}}replaceChildren(e,n,r=sB){this.markDirty();for(let i=e;i<n;i++){let o=this.children[i];o.parent==this&&r.indexOf(o)<0&&o.destroy()}this.children.splice(e,n-e,...r);for(let i=0;i<r.length;i++)r[i].setParent(this)}ignoreMutation(e){return!1}ignoreEvent(e){return!1}childCursor(e=this.length){return new Uhe(this.children,e,this.children.length)}childPos(e,n=1){return this.childCursor().findPos(e,n)}toString(){let e=this.constructor.name.replace("View","");return e+(this.children.length?"("+this.children.join()+")":this.length?"["+(e=="Text"?this.text:this.length)+"]":"")+(this.breakAfter?"#":"")}static get(e){return e.cmView}get isEditable(){return!0}get isWidget(){return!1}get isHidden(){return!1}merge(e,n,r,i,o,a){return!1}become(e){return!1}canReuseDOM(e){return e.constructor==this.constructor&&!((this.flags|e.flags)&8)}getSide(){return 0}destroy(){for(let e of this.children)e.parent==this&&e.destroy();this.parent=null}}bn.prototype.breakAfter=0;function Oq(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class Uhe{constructor(e,n,r){this.children=e,this.pos=n,this.i=r,this.off=0}findPos(e,n=1){for(;;){if(e>this.pos||e==this.pos&&(n>0||this.i==0||this.children[this.i-1].breakAfter))return this.off=e-this.pos,this;let r=this.children[--this.i];this.pos-=r.length+r.breakAfter}}}function Zhe(t,e,n,r,i,o,a,s,l){let{children:u}=t,c=u.length?u[e]:null,f=o.length?o[o.length-1]:null,d=f?f.breakAfter:a;if(!(e==r&&c&&!a&&!d&&o.length<2&&c.merge(n,i,o.length?f:null,n==0,s,l))){if(r<u.length){let p=u[r];p&&(i<p.length||p.breakAfter&&(f!=null&&f.breakAfter))?(e==r&&(p=p.split(i),i=0),!d&&f&&p.merge(0,i,f,!0,0,l)?o[o.length-1]=p:((i||p.children.length&&!p.children[0].length)&&p.merge(0,i,null,!1,0,l),o.push(p))):p!=null&&p.breakAfter&&(f?f.breakAfter=1:a=1),r++}for(c&&(c.breakAfter=a,n>0&&(!a&&o.length&&c.merge(n,c.length,o[0],!1,s,0)?c.breakAfter=o.shift().breakAfter:(n<c.length||c.children.length&&c.children[c.children.length-1].length==0)&&c.merge(n,c.length,null,!1,s,0),e++));e<r&&o.length;)if(u[r-1].become(o[o.length-1]))r--,o.pop(),l=o.length?0:s;else if(u[e].become(o[0]))e++,o.shift(),s=o.length?0:l;else break;!o.length&&e&&r<u.length&&!u[e-1].breakAfter&&u[r].merge(0,0,u[e-1],!1,s,l)&&e--,(e<r||o.length)&&t.replaceChildren(e,r,o)}}function Xhe(t,e,n,r,i,o){let a=t.childCursor(),{i:s,off:l}=a.findPos(n,1),{i:u,off:c}=a.findPos(e,-1),f=e-n;for(let d of r)f+=d.length;t.length+=f,Zhe(t,u,c,s,l,r,0,i,o)}let Ki=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},yN=typeof document<"u"?document:{documentElement:{style:{}}};const bN=/Edge\/(\d+)/.exec(Ki.userAgent),Yhe=/MSIE \d/.test(Ki.userAgent),_N=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ki.userAgent),u2=!!(Yhe||_N||bN),wq=!u2&&/gecko\/(\d+)/i.test(Ki.userAgent),sI=!u2&&/Chrome\/(\d+)/.exec(Ki.userAgent),xq="webkitFontSmoothing"in yN.documentElement.style,qhe=!u2&&/Apple Computer/.test(Ki.vendor),Sq=qhe&&(/Mobile\/\w+/.test(Ki.userAgent)||Ki.maxTouchPoints>2);var Xe={mac:Sq||/Mac/.test(Ki.platform),windows:/Win/.test(Ki.platform),linux:/Linux|X11/.test(Ki.platform),ie:u2,ie_version:Yhe?yN.documentMode||6:_N?+_N[1]:bN?+bN[1]:0,gecko:wq,gecko_version:wq?+(/Firefox\/(\d+)/.exec(Ki.userAgent)||[0,0])[1]:0,chrome:!!sI,chrome_version:sI?+sI[1]:0,ios:Sq,android:/Android\b/.test(Ki.userAgent),webkit:xq,safari:qhe,webkit_version:xq?+(/\bAppleWebKit\/(\d+)/.exec(Ki.userAgent)||[0,0])[1]:0,tabSize:yN.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const WOt=256;class ds extends bn{constructor(e){super(),this.text=e}get length(){return this.text.length}createDOM(e){this.setDOM(e||document.createTextNode(this.text))}sync(e,n){this.dom||this.createDOM(),this.dom.nodeValue!=this.text&&(n&&n.node==this.dom&&(n.written=!0),this.dom.nodeValue=this.text)}reuseDOM(e){e.nodeType==3&&this.createDOM(e)}merge(e,n,r){return this.flags&8||r&&(!(r instanceof ds)||this.length-(n-e)+r.length>WOt||r.flags&8)?!1:(this.text=this.text.slice(0,e)+(r?r.text:"")+this.text.slice(n),this.markDirty(),!0)}split(e){let n=new ds(this.text.slice(e));return this.text=this.text.slice(0,e),this.markDirty(),n.flags|=this.flags&8,n}localPosFromDOM(e,n){return e==this.dom?n:n?this.text.length:0}domAtPos(e){return new li(this.dom,e)}domBoundsAround(e,n,r){return{from:r,to:r+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(e,n){return QOt(this.dom,e,n)}}class du extends bn{constructor(e,n=[],r=0){super(),this.mark=e,this.children=n,this.length=r;for(let i of n)i.setParent(this)}setAttrs(e){if(Qhe(e),this.mark.class&&(e.className=this.mark.class),this.mark.attrs)for(let n in this.mark.attrs)e.setAttribute(n,this.mark.attrs[n]);return e}canReuseDOM(e){return super.canReuseDOM(e)&&!((this.flags|e.flags)&8)}reuseDOM(e){e.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(e),this.flags|=6)}sync(e,n){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(e,n)}merge(e,n,r,i,o,a){return r&&(!(r instanceof du&&r.mark.eq(this.mark))||e&&o<=0||n<this.length&&a<=0)?!1:(Xhe(this,e,n,r?r.children.slice():[],o-1,a-1),this.markDirty(),!0)}split(e){let n=[],r=0,i=-1,o=0;for(let s of this.children){let l=r+s.length;l>e&&n.push(r<e?s.split(e-r):s),i<0&&r>=e&&(i=o),r=l,o++}let a=this.length-e;return this.length=e,i>-1&&(this.children.length=i,this.markDirty()),new du(this.mark,n,a)}domAtPos(e){return Khe(this,e)}coordsAt(e,n){return epe(this,e,n)}}function QOt(t,e,n){let r=t.nodeValue.length;e>r&&(e=r);let i=e,o=e,a=0;e==0&&n<0||e==r&&n>=0?Xe.chrome||Xe.gecko||(e?(i--,a=1):o<r&&(o++,a=-1)):n<0?i--:o<r&&o++;let s=mh(t,i,o).getClientRects();if(!s.length)return null;let l=s[(a?a<0:n>=0)?0:s.length-1];return Xe.safari&&!a&&l.width==0&&(l=Array.prototype.find.call(s,u=>u.width)||l),a?l2(l,a<0):l||null}class dc extends bn{static create(e,n,r){return new dc(e,n,r)}constructor(e,n,r){super(),this.widget=e,this.length=n,this.side=r,this.prevWidget=null}split(e){let n=dc.create(this.widget,this.length-e,this.side);return this.length-=e,n}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(e,n,r,i,o,a){return r&&(!(r instanceof dc)||!this.widget.compare(r.widget)||e>0&&o<=0||n<this.length&&a<=0)?!1:(this.length=e+(r?r.length:0)+(this.length-n),!0)}become(e){return e instanceof dc&&e.side==this.side&&this.widget.constructor==e.widget.constructor?(this.widget.compare(e.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get overrideDOMText(){if(this.length==0)return en.empty;let e=this;for(;e.parent;)e=e.parent;let{view:n}=e,r=n&&n.state.doc,i=this.posAtStart;return r?r.slice(i,i+this.length):en.empty}domAtPos(e){return(this.length?e==0:this.side>0)?li.before(this.dom):li.after(this.dom,e==this.length)}domBoundsAround(){return null}coordsAt(e,n){let r=this.widget.coordsAt(this.dom,e,n);if(r)return r;let i=this.dom.getClientRects(),o=null;if(!i.length)return null;let a=this.side?this.side<0:e>0;for(let s=a?i.length-1:0;o=i[s],!(e>0?s==0:s==i.length-1||o.top<o.bottom);s+=a?-1:1);return l2(o,!a)}get isEditable(){return!1}get isWidget(){return!0}get isHidden(){return this.widget.isHidden}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}}class cg extends bn{constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}become(e){return e instanceof cg&&e.side==this.side}split(){return new cg(this.side)}sync(){if(!this.dom){let e=document.createElement("img");e.className="cm-widgetBuffer",e.setAttribute("aria-hidden","true"),this.setDOM(e)}}getSide(){return this.side}domAtPos(e){return this.side>0?li.before(this.dom):li.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return en.empty}get isHidden(){return!0}}ds.prototype.children=dc.prototype.children=cg.prototype.children=sB;function Khe(t,e){let n=t.dom,{children:r}=t,i=0;for(let o=0;i<r.length;i++){let a=r[i],s=o+a.length;if(!(s==o&&a.getSide()<=0)){if(e>o&&e<s&&a.dom.parentNode==n)return a.domAtPos(e-o);if(e<=o)break;o=s}}for(let o=i;o>0;o--){let a=r[o-1];if(a.dom.parentNode==n)return a.domAtPos(a.length)}for(let o=i;o<r.length;o++){let a=r[o];if(a.dom.parentNode==n)return a.domAtPos(0)}return new li(n,0)}function Jhe(t,e,n){let r,{children:i}=t;n>0&&e instanceof du&&i.length&&(r=i[i.length-1])instanceof du&&r.mark.eq(e.mark)?Jhe(r,e.children[0],n-1):(i.push(e),e.setParent(t)),t.length+=e.length}function epe(t,e,n){let r=null,i=-1,o=null,a=-1;function s(u,c){for(let f=0,d=0;f<u.children.length&&d<=c;f++){let p=u.children[f],v=d+p.length;v>=c&&(p.children.length?s(p,c-d):(!o||o.isHidden&&n>0)&&(v>c||d==v&&p.getSide()>0)?(o=p,a=c-d):(d<c||d==v&&p.getSide()<0&&!p.isHidden)&&(r=p,i=c-d)),d=v}}s(t,e);let l=(n<0?r:o)||r||o;return l?l.coordsAt(Math.max(0,l==r?i:a),n):HOt(t)}function HOt(t){let e=t.dom.lastChild;if(!e)return t.dom.getBoundingClientRect();let n=ug(e);return n[n.length-1]||null}function ON(t,e){for(let n in t)n=="class"&&e.class?e.class+=" "+t.class:n=="style"&&e.style?e.style+=";"+t.style:e[n]=t[n];return e}const Cq=Object.create(null);function kC(t,e,n){if(t==e)return!0;t||(t=Cq),e||(e=Cq);let r=Object.keys(t),i=Object.keys(e);if(r.length-(n&&r.indexOf(n)>-1?1:0)!=i.length-(n&&i.indexOf(n)>-1?1:0))return!1;for(let o of r)if(o!=n&&(i.indexOf(o)==-1||t[o]!==e[o]))return!1;return!0}function wN(t,e,n){let r=!1;if(e)for(let i in e)n&&i in n||(r=!0,i=="style"?t.style.cssText="":t.removeAttribute(i));if(n)for(let i in n)e&&e[i]==n[i]||(r=!0,i=="style"?t.style.cssText=n[i]:t.setAttribute(i,n[i]));return r}function GOt(t){let e=Object.create(null);for(let n=0;n<t.attributes.length;n++){let r=t.attributes[n];e[r.name]=r.value}return e}class sr extends bn{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,n,r,i,o,a){if(r){if(!(r instanceof sr))return!1;this.dom||r.transferDOM(this)}return i&&this.setDeco(r?r.attrs:null),Xhe(this,e,n,r?r.children.slice():[],o,a),!0}split(e){let n=new sr;if(n.breakAfter=this.breakAfter,this.length==0)return n;let{i:r,off:i}=this.childPos(e);i&&(n.append(this.children[r].split(i),0),this.children[r].merge(i,this.children[r].length,null,!1,0,0),r++);for(let o=r;o<this.children.length;o++)n.append(this.children[o],0);for(;r>0&&this.children[r-1].length==0;)this.children[--r].destroy();return this.children.length=r,this.markDirty(),this.length=e,n}transferDOM(e){this.dom&&(this.markDirty(),e.setDOM(this.dom),e.prevAttrs=this.prevAttrs===void 0?this.attrs:this.prevAttrs,this.prevAttrs=void 0,this.dom=null)}setDeco(e){kC(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,n){Jhe(this,e,n)}addLineDeco(e){let n=e.spec.attributes,r=e.spec.class;n&&(this.attrs=ON(n,this.attrs||{})),r&&(this.attrs=ON({class:r},this.attrs||{}))}domAtPos(e){return Khe(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,n){var r;this.dom?this.flags&4&&(Qhe(this.dom),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0):(this.setDOM(document.createElement("div")),this.dom.className="cm-line",this.prevAttrs=this.attrs?null:void 0),this.prevAttrs!==void 0&&(wN(this.dom,this.prevAttrs,this.attrs),this.dom.classList.add("cm-line"),this.prevAttrs=void 0),super.sync(e,n);let i=this.dom.lastChild;for(;i&&bn.get(i)instanceof du;)i=i.lastChild;if(!i||!this.length||i.nodeName!="BR"&&((r=bn.get(i))===null||r===void 0?void 0:r.isEditable)==!1&&(!Xe.ios||!this.children.some(o=>o instanceof ds))){let o=document.createElement("BR");o.cmIgnore=!0,this.dom.appendChild(o)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,n;for(let r of this.children){if(!(r instanceof ds)||/[^ -~]/.test(r.text))return null;let i=ug(r.dom);if(i.length!=1)return null;e+=i[0].width,n=i[0].height}return e?{lineHeight:this.dom.getBoundingClientRect().height,charWidth:e/this.length,textHeight:n}:null}coordsAt(e,n){let r=epe(this,e,n);if(!this.children.length&&r&&this.parent){let{heightOracle:i}=this.parent.view.viewState,o=r.bottom-r.top;if(Math.abs(o-i.lineHeight)<2&&i.textHeight<o){let a=(o-i.textHeight)/2;return{top:r.top+a,bottom:r.bottom-a,left:r.left,right:r.left}}}return r}become(e){return e instanceof sr&&this.children.length==0&&e.children.length==0&&kC(this.attrs,e.attrs)&&this.breakAfter==e.breakAfter}covers(){return!0}static find(e,n){for(let r=0,i=0;r<e.children.length;r++){let o=e.children[r],a=i+o.length;if(a>=n){if(o instanceof sr)return o;if(a>n)break}i=a+o.breakAfter}return null}}class Kl extends bn{constructor(e,n,r){super(),this.widget=e,this.length=n,this.deco=r,this.breakAfter=0,this.prevWidget=null}merge(e,n,r,i,o,a){return r&&(!(r instanceof Kl)||!this.widget.compare(r.widget)||e>0&&o<=0||n<this.length&&a<=0)?!1:(this.length=e+(r?r.length:0)+(this.length-n),!0)}domAtPos(e){return e==0?li.before(this.dom):li.after(this.dom,e==this.length)}split(e){let n=this.length-e;this.length=e;let r=new Kl(this.widget,n,this.deco);return r.breakAfter=this.breakAfter,r}get children(){return sB}sync(e){(!this.dom||!this.widget.updateDOM(this.dom,e))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(e)),this.widget.editable||(this.dom.contentEditable="false"))}get overrideDOMText(){return this.parent?this.parent.view.state.doc.slice(this.posAtStart,this.posAtEnd):en.empty}domBoundsAround(){return null}become(e){return e instanceof Kl&&e.widget.constructor==this.widget.constructor?(e.widget.compare(this.widget)||this.markDirty(!0),this.dom&&!this.prevWidget&&(this.prevWidget=this.widget),this.widget=e.widget,this.length=e.length,this.deco=e.deco,this.breakAfter=e.breakAfter,!0):!1}ignoreMutation(){return!0}ignoreEvent(e){return this.widget.ignoreEvent(e)}get isEditable(){return!1}get isWidget(){return!0}coordsAt(e,n){return this.widget.coordsAt(this.dom,e,n)}destroy(){super.destroy(),this.dom&&this.widget.destroy(this.dom)}covers(e){let{startSide:n,endSide:r}=this.deco;return n==r?!1:e<0?n<0:r>0}}class ml{eq(e){return!1}updateDOM(e,n){return!1}compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}get estimatedHeight(){return-1}get lineBreaks(){return 0}ignoreEvent(e){return!0}coordsAt(e,n,r){return null}get isHidden(){return!1}get editable(){return!1}destroy(e){}}var Mi=function(t){return t[t.Text=0]="Text",t[t.WidgetBefore=1]="WidgetBefore",t[t.WidgetAfter=2]="WidgetAfter",t[t.WidgetRange=3]="WidgetRange",t}(Mi||(Mi={}));class tt extends vh{constructor(e,n,r,i){super(),this.startSide=e,this.endSide=n,this.widget=r,this.spec=i}get heightRelevant(){return!1}static mark(e){return new N_(e)}static widget(e){let n=Math.max(-1e4,Math.min(1e4,e.side||0)),r=!!e.block;return n+=r&&!e.inlineOrder?n>0?3e8:-4e8:n>0?1e8:-1e8,new Fc(e,n,n,r,e.widget||null,!1)}static replace(e){let n=!!e.block,r,i;if(e.isBlockGap)r=-5e8,i=4e8;else{let{start:o,end:a}=tpe(e,n);r=(o?n?-3e8:-1:5e8)-1,i=(a?n?2e8:1:-6e8)+1}return new Fc(e,r,i,n,e.widget||null,!0)}static line(e){return new L_(e)}static set(e,n=!1){return Jt.of(e,n)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}tt.none=Jt.empty;class N_ extends tt{constructor(e){let{start:n,end:r}=tpe(e);super(n?-1:5e8,r?1:-6e8,null,e),this.tagName=e.tagName||"span",this.class=e.class||"",this.attrs=e.attributes||null}eq(e){var n,r;return this==e||e instanceof N_&&this.tagName==e.tagName&&(this.class||((n=this.attrs)===null||n===void 0?void 0:n.class))==(e.class||((r=e.attrs)===null||r===void 0?void 0:r.class))&&kC(this.attrs,e.attrs,"class")}range(e,n=e){if(e>=n)throw new RangeError("Mark decorations may not be empty");return super.range(e,n)}}N_.prototype.point=!1;class L_ extends tt{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof L_&&this.spec.class==e.spec.class&&kC(this.spec.attributes,e.spec.attributes)}range(e,n=e){if(n!=e)throw new RangeError("Line decoration ranges must be zero-length");return super.range(e,n)}}L_.prototype.mapMode=Gr.TrackBefore;L_.prototype.point=!0;class Fc extends tt{constructor(e,n,r,i,o,a){super(n,r,o,e),this.block=i,this.isReplace=a,this.mapMode=i?n<=0?Gr.TrackBefore:Gr.TrackAfter:Gr.TrackDel}get type(){return this.startSide!=this.endSide?Mi.WidgetRange:this.startSide<=0?Mi.WidgetBefore:Mi.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof Fc&&jOt(this.widget,e.widget)&&this.block==e.block&&this.startSide==e.startSide&&this.endSide==e.endSide}range(e,n=e){if(this.isReplace&&(e>n||e==n&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&n!=e)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(e,n)}}Fc.prototype.point=!0;function tpe(t,e=!1){let{inclusiveStart:n,inclusiveEnd:r}=t;return n==null&&(n=t.inclusive),r==null&&(r=t.inclusive),{start:n??e,end:r??e}}function jOt(t,e){return t==e||!!(t&&e&&t.compare(e))}function xN(t,e,n,r=0){let i=n.length-1;i>=0&&n[i]+r>=t?n[i]=Math.max(n[i],e):n.push(t,e)}class Ty{constructor(e,n,r,i){this.doc=e,this.pos=n,this.end=r,this.disallowBlockEffectsFor=i,this.content=[],this.curLine=null,this.breakAtStart=0,this.pendingBuffer=0,this.bufferMarks=[],this.atCursorPos=!0,this.openStart=-1,this.openEnd=-1,this.text="",this.textOff=0,this.cursor=e.iter(),this.skip=n}posCovered(){if(this.content.length==0)return!this.breakAtStart&&this.doc.lineAt(this.pos).from!=this.pos;let e=this.content[this.content.length-1];return!(e.breakAfter||e instanceof Kl&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new sr),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(vw(new cg(-1),e),e.length),this.pendingBuffer=0)}addBlockWidget(e){this.flushBuffer(),this.curLine=null,this.content.push(e)}finish(e){this.pendingBuffer&&e<=this.bufferMarks.length?this.flushBuffer():this.pendingBuffer=0,!this.posCovered()&&!(e&&this.content.length&&this.content[this.content.length-1]instanceof Kl)&&this.getLine()}buildText(e,n,r){for(;e>0;){if(this.textOff==this.text.length){let{value:o,lineBreak:a,done:s}=this.cursor.next(this.skip);if(this.skip=0,s)throw new Error("Ran out of text content when drawing inline views");if(a){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,e--;continue}else this.text=o,this.textOff=0}let i=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(n.slice(n.length-r)),this.getLine().append(vw(new ds(this.text.slice(this.textOff,this.textOff+i)),n),r),this.atCursorPos=!0,this.textOff+=i,e-=i,r=0}}span(e,n,r,i){this.buildText(n-e,r,i),this.pos=n,this.openStart<0&&(this.openStart=i)}point(e,n,r,i,o,a){if(this.disallowBlockEffectsFor[a]&&r instanceof Fc){if(r.block)throw new RangeError("Block decorations may not be specified via plugins");if(n>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let s=n-e;if(r instanceof Fc)if(r.block)r.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new Kl(r.widget||fg.block,s,r));else{let l=dc.create(r.widget||fg.inline,s,s?0:r.startSide),u=this.atCursorPos&&!l.isEditable&&o<=i.length&&(e<n||r.startSide>0),c=!l.isEditable&&(e<n||o>i.length||r.startSide<=0),f=this.getLine();this.pendingBuffer==2&&!u&&!l.isEditable&&(this.pendingBuffer=0),this.flushBuffer(i),u&&(f.append(vw(new cg(1),i),o),o=i.length+Math.max(0,o-i.length)),f.append(vw(l,i),o),this.atCursorPos=c,this.pendingBuffer=c?e<n||o>i.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=i.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(r);s&&(this.textOff+s<=this.text.length?this.textOff+=s:(this.skip+=s-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=n),this.openStart<0&&(this.openStart=o)}static build(e,n,r,i,o){let a=new Ty(e,n,r,o);return a.openEnd=Jt.spans(i,n,r,a),a.openStart<0&&(a.openStart=a.openEnd),a.finish(a.openEnd),a}}function vw(t,e){for(let n of e)t=new du(n,[t],t.length);return t}class fg extends ml{constructor(e){super(),this.tag=e}eq(e){return e.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(e){return e.nodeName.toLowerCase()==this.tag}get isHidden(){return!0}}fg.inline=new fg("span");fg.block=new fg("div");var Dn=function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t}(Dn||(Dn={}));const yh=Dn.LTR,lB=Dn.RTL;function npe(t){let e=[];for(let n=0;n<t.length;n++)e.push(1<<+t[n]);return e}const UOt=npe("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),ZOt=npe("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),SN=Object.create(null),Es=[];for(let t of["()","[]","{}"]){let e=t.charCodeAt(0),n=t.charCodeAt(1);SN[e]=n,SN[n]=-e}function rpe(t){return t<=247?UOt[t]:1424<=t&&t<=1524?2:1536<=t&&t<=1785?ZOt[t-1536]:1774<=t&&t<=2220?4:8192<=t&&t<=8204?256:64336<=t&&t<=65023?4:1}const XOt=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class hc{get dir(){return this.level%2?lB:yh}constructor(e,n,r){this.from=e,this.to=n,this.level=r}side(e,n){return this.dir==n==e?this.to:this.from}forward(e,n){return e==(this.dir==n)}static find(e,n,r,i){let o=-1;for(let a=0;a<e.length;a++){let s=e[a];if(s.from<=n&&s.to>=n){if(s.level==r)return a;(o<0||(i!=0?i<0?s.from<n:s.to>n:e[o].level>s.level))&&(o=a)}}if(o<0)throw new RangeError("Index out of range");return o}}function ipe(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++){let r=t[n],i=e[n];if(r.from!=i.from||r.to!=i.to||r.direction!=i.direction||!ipe(r.inner,i.inner))return!1}return!0}const yn=[];function YOt(t,e,n,r,i){for(let o=0;o<=r.length;o++){let a=o?r[o-1].to:e,s=o<r.length?r[o].from:n,l=o?256:i;for(let u=a,c=l,f=l;u<s;u++){let d=rpe(t.charCodeAt(u));d==512?d=c:d==8&&f==4&&(d=16),yn[u]=d==4?2:d,d&7&&(f=d),c=d}for(let u=a,c=l,f=l;u<s;u++){let d=yn[u];if(d==128)u<s-1&&c==yn[u+1]&&c&24?d=yn[u]=c:yn[u]=256;else if(d==64){let p=u+1;for(;p<s&&yn[p]==64;)p++;let v=u&&c==8||p<n&&yn[p]==8?f==1?1:8:256;for(let g=u;g<p;g++)yn[g]=v;u=p-1}else d==8&&f==1&&(yn[u]=1);c=d,d&7&&(f=d)}}}function qOt(t,e,n,r,i){let o=i==1?2:1;for(let a=0,s=0,l=0;a<=r.length;a++){let u=a?r[a-1].to:e,c=a<r.length?r[a].from:n;for(let f=u,d,p,v;f<c;f++)if(p=SN[d=t.charCodeAt(f)])if(p<0){for(let g=s-3;g>=0;g-=3)if(Es[g+1]==-p){let m=Es[g+2],y=m&2?i:m&4?m&1?o:i:0;y&&(yn[f]=yn[Es[g]]=y),s=g;break}}else{if(Es.length==189)break;Es[s++]=f,Es[s++]=d,Es[s++]=l}else if((v=yn[f])==2||v==1){let g=v==i;l=g?0:1;for(let m=s-3;m>=0;m-=3){let y=Es[m+2];if(y&2)break;if(g)Es[m+2]|=2;else{if(y&4)break;Es[m+2]|=4}}}}}function KOt(t,e,n,r){for(let i=0,o=r;i<=n.length;i++){let a=i?n[i-1].to:t,s=i<n.length?n[i].from:e;for(let l=a;l<s;){let u=yn[l];if(u==256){let c=l+1;for(;;)if(c==s){if(i==n.length)break;c=n[i++].to,s=i<n.length?n[i].from:e}else if(yn[c]==256)c++;else break;let f=o==1,d=(c<e?yn[c]:r)==1,p=f==d?f?1:2:r;for(let v=c,g=i,m=g?n[g-1].to:t;v>l;)v==m&&(v=n[--g].from,m=g?n[g-1].to:t),yn[--v]=p;l=c}else o=u,l++}}}function CN(t,e,n,r,i,o,a){let s=r%2?2:1;if(r%2==i%2)for(let l=e,u=0;l<n;){let c=!0,f=!1;if(u==o.length||l<o[u].from){let g=yn[l];g!=s&&(c=!1,f=g==16)}let d=!c&&s==1?[]:null,p=c?r:r+1,v=l;e:for(;;)if(u<o.length&&v==o[u].from){if(f)break e;let g=o[u];if(!c)for(let m=g.to,y=u+1;;){if(m==n)break e;if(y<o.length&&o[y].from==m)m=o[y++].to;else{if(yn[m]==s)break e;break}}if(u++,d)d.push(g);else{g.from>l&&a.push(new hc(l,g.from,p));let m=g.direction==yh!=!(p%2);TN(t,m?r+1:r,i,g.inner,g.from,g.to,a),l=g.to}v=g.to}else{if(v==n||(c?yn[v]!=s:yn[v]==s))break;v++}d?CN(t,l,v,r+1,i,d,a):l<v&&a.push(new hc(l,v,p)),l=v}else for(let l=n,u=o.length;l>e;){let c=!0,f=!1;if(!u||l>o[u-1].to){let g=yn[l-1];g!=s&&(c=!1,f=g==16)}let d=!c&&s==1?[]:null,p=c?r:r+1,v=l;e:for(;;)if(u&&v==o[u-1].to){if(f)break e;let g=o[--u];if(!c)for(let m=g.from,y=u;;){if(m==e)break e;if(y&&o[y-1].to==m)m=o[--y].from;else{if(yn[m-1]==s)break e;break}}if(d)d.push(g);else{g.to<l&&a.push(new hc(g.to,l,p));let m=g.direction==yh!=!(p%2);TN(t,m?r+1:r,i,g.inner,g.from,g.to,a),l=g.from}v=g.from}else{if(v==e||(c?yn[v-1]!=s:yn[v-1]==s))break;v--}d?CN(t,v,l,r+1,i,d,a):v<l&&a.push(new hc(v,l,p)),l=v}}function TN(t,e,n,r,i,o,a){let s=e%2?2:1;YOt(t,i,o,r,s),qOt(t,i,o,r,s),KOt(i,o,r,s),CN(t,i,o,e,n,r,a)}function JOt(t,e,n){if(!t)return[new hc(0,0,e==lB?1:0)];if(e==yh&&!n.length&&!XOt.test(t))return ope(t.length);if(n.length)for(;t.length>yn.length;)yn[yn.length]=256;let r=[],i=e==yh?0:1;return TN(t,i,i,n,0,t.length,r),r}function ope(t){return[new hc(0,t,0)]}let ape="";function ewt(t,e,n,r,i){var o;let a=r.head-t.from,s=hc.find(e,a,(o=r.bidiLevel)!==null&&o!==void 0?o:-1,r.assoc),l=e[s],u=l.side(i,n);if(a==u){let d=s+=i?1:-1;if(d<0||d>=e.length)return null;l=e[s=d],a=l.side(!i,n),u=l.side(i,n)}let c=Ur(t.text,a,l.forward(i,n));(c<l.from||c>l.to)&&(c=u),ape=t.text.slice(Math.min(a,c),Math.max(a,c));let f=s==(i?e.length-1:0)?null:e[s+(i?1:-1)];return f&&c==u&&f.level+(i?0:1)<l.level?Te.cursor(f.side(!i,n)+t.from,f.forward(i,n)?1:-1,f.level):Te.cursor(c+t.from,l.forward(i,n)?-1:1,l.level)}function twt(t,e,n){for(let r=e;r<n;r++){let i=rpe(t.charCodeAt(r));if(i==1)return yh;if(i==2||i==4)return lB}return yh}const spe=Ye.define(),lpe=Ye.define(),upe=Ye.define(),cpe=Ye.define(),PN=Ye.define(),fpe=Ye.define(),dpe=Ye.define(),hpe=Ye.define({combine:t=>t.some(e=>e)}),ppe=Ye.define({combine:t=>t.some(e=>e)}),vpe=Ye.define();class bv{constructor(e,n="nearest",r="nearest",i=5,o=5,a=!1){this.range=e,this.y=n,this.x=r,this.yMargin=i,this.xMargin=o,this.isSnapshot=a}map(e){return e.empty?this:new bv(this.range.map(e),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}clip(e){return this.range.to<=e.doc.length?this:new bv(Te.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const gw=wt.define({map:(t,e)=>t.map(e)}),gpe=wt.define();function to(t,e,n){let r=t.facet(cpe);r.length?r[0](e):window.onerror?window.onerror(String(e),n,void 0,void 0,e):n?console.error(n+":",e):console.error(e)}const Ju=Ye.define({combine:t=>t.length?t[0]:!0});let nwt=0;const N0=Ye.define();class or{constructor(e,n,r,i,o){this.id=e,this.create=n,this.domEventHandlers=r,this.domEventObservers=i,this.extension=o(this)}static define(e,n){const{eventHandlers:r,eventObservers:i,provide:o,decorations:a}=n||{};return new or(nwt++,e,r,i,s=>{let l=[N0.of(s)];return a&&l.push(Ab.of(u=>{let c=u.plugin(s);return c?a(c):tt.none})),o&&l.push(o(s)),l})}static fromClass(e,n){return or.define(r=>new e(r),n)}}class lI{constructor(e){this.spec=e,this.mustUpdate=null,this.value=null}update(e){if(this.value){if(this.mustUpdate){let n=this.mustUpdate;if(this.mustUpdate=null,this.value.update)try{this.value.update(n)}catch(r){if(to(n.state,r,"CodeMirror plugin crashed"),this.value.destroy)try{this.value.destroy()}catch{}this.deactivate()}}}else if(this.spec)try{this.value=this.spec.create(e)}catch(n){to(e.state,n,"CodeMirror plugin crashed"),this.deactivate()}return this}destroy(e){var n;if(!((n=this.value)===null||n===void 0)&&n.destroy)try{this.value.destroy()}catch(r){to(e.state,r,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const mpe=Ye.define(),uB=Ye.define(),Ab=Ye.define(),ype=Ye.define(),cB=Ye.define(),bpe=Ye.define();function Tq(t,e){let n=t.state.facet(bpe);if(!n.length)return n;let r=n.map(o=>o instanceof Function?o(t):o),i=[];return Jt.spans(r,e.from,e.to,{point(){},span(o,a,s,l){let u=o-e.from,c=a-e.from,f=i;for(let d=s.length-1;d>=0;d--,l--){let p=s[d].spec.bidiIsolate,v;if(p==null&&(p=twt(e.text,u,c)),l>0&&f.length&&(v=f[f.length-1]).to==u&&v.direction==p)v.to=c,f=v.inner;else{let g={from:u,to:c,direction:p,inner:[]};f.push(g),f=g.inner}}}}),i}const _pe=Ye.define();function Ope(t){let e=0,n=0,r=0,i=0;for(let o of t.state.facet(_pe)){let a=o(t);a&&(a.left!=null&&(e=Math.max(e,a.left)),a.right!=null&&(n=Math.max(n,a.right)),a.top!=null&&(r=Math.max(r,a.top)),a.bottom!=null&&(i=Math.max(i,a.bottom)))}return{left:e,right:n,top:r,bottom:i}}const L0=Ye.define();class _a{constructor(e,n,r,i){this.fromA=e,this.toA=n,this.fromB=r,this.toB=i}join(e){return new _a(Math.min(this.fromA,e.fromA),Math.max(this.toA,e.toA),Math.min(this.fromB,e.fromB),Math.max(this.toB,e.toB))}addToSet(e){let n=e.length,r=this;for(;n>0;n--){let i=e[n-1];if(!(i.fromA>r.toA)){if(i.toA<r.fromA)break;r=r.join(i),e.splice(n-1,1)}}return e.splice(n,0,r),e}static extendWithRanges(e,n){if(n.length==0)return e;let r=[];for(let i=0,o=0,a=0,s=0;;i++){let l=i==e.length?null:e[i],u=a-s,c=l?l.fromB:1e9;for(;o<n.length&&n[o]<c;){let f=n[o],d=n[o+1],p=Math.max(s,f),v=Math.min(c,d);if(p<=v&&new _a(p+u,v+u,p,v).addToSet(r),d>c)break;o+=2}if(!l)return r;new _a(l.fromA,l.toA,l.fromB,l.toB).addToSet(r),a=l.toA,s=l.toB}}}class NC{constructor(e,n,r){this.view=e,this.state=n,this.transactions=r,this.flags=0,this.startState=e.state,this.changes=yr.empty(this.startState.doc.length);for(let o of r)this.changes=this.changes.compose(o.changes);let i=[];this.changes.iterChangedRanges((o,a,s,l)=>i.push(new _a(o,a,s,l))),this.changedRanges=i}static create(e,n,r){return new NC(e,n,r)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&10)>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some(e=>e.selection)}get empty(){return this.flags==0&&this.transactions.length==0}}class Pq extends bn{get length(){return this.view.state.doc.length}constructor(e){super(),this.view=e,this.decorations=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.editContextFormatting=tt.none,this.lastCompositionAfterCursor=!1,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(e.contentDOM),this.children=[new sr],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new _a(0,0,0,e.state.doc.length)],0,null)}update(e){var n;let r=e.changedRanges;this.minWidth>0&&r.length&&(r.every(({fromA:u,toA:c})=>c<this.minWidthFrom||u>this.minWidthTo)?(this.minWidthFrom=e.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=e.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(e);let i=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((n=this.domChanged)===null||n===void 0)&&n.newSel?i=this.domChanged.newSel.head:!uwt(e.changes,this.hasComposition)&&!e.selectionSet&&(i=e.state.selection.main.head));let o=i>-1?iwt(this.view,e.changes,i):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:u,to:c}=this.hasComposition;r=new _a(u,c,e.changes.mapPos(u,-1),e.changes.mapPos(c,1)).addToSet(r.slice())}this.hasComposition=o?{from:o.range.fromB,to:o.range.toB}:null,(Xe.ie||Xe.chrome)&&!o&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let a=this.decorations,s=this.updateDeco(),l=swt(a,s,e.changes);return r=_a.extendWithRanges(r,l),!(this.flags&7)&&r.length==0?!1:(this.updateInner(r,e.startState.doc.length,o),e.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(e,n,r){this.view.viewState.mustMeasureContent=!0,this.updateChildren(e,n,r);let{observer:i}=this.view;i.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let a=Xe.chrome||Xe.ios?{node:i.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,a),this.flags&=-8,a&&(a.written||i.selectionRange.focusNode!=a.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(a=>a.flags&=-9);let o=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let a of this.children)a instanceof Kl&&a.widget instanceof $q&&o.push(a.dom);i.updateGaps(o)}updateChildren(e,n,r){let i=r?r.range.addToSet(e.slice()):e,o=this.childCursor(n);for(let a=i.length-1;;a--){let s=a>=0?i[a]:null;if(!s)break;let{fromA:l,toA:u,fromB:c,toB:f}=s,d,p,v,g;if(r&&r.range.fromB<f&&r.range.toB>c){let w=Ty.build(this.view.state.doc,c,r.range.fromB,this.decorations,this.dynamicDecorationMap),x=Ty.build(this.view.state.doc,r.range.toB,f,this.decorations,this.dynamicDecorationMap);p=w.breakAtStart,v=w.openStart,g=x.openEnd;let S=this.compositionView(r);x.breakAtStart?S.breakAfter=1:x.content.length&&S.merge(S.length,S.length,x.content[0],!1,x.openStart,0)&&(S.breakAfter=x.content[0].breakAfter,x.content.shift()),w.content.length&&S.merge(0,0,w.content[w.content.length-1],!0,0,w.openEnd)&&w.content.pop(),d=w.content.concat(S).concat(x.content)}else({content:d,breakAtStart:p,openStart:v,openEnd:g}=Ty.build(this.view.state.doc,c,f,this.decorations,this.dynamicDecorationMap));let{i:m,off:y}=o.findPos(u,1),{i:b,off:O}=o.findPos(l,-1);Zhe(this,b,O,m,y,d,p,v,g)}r&&this.fixCompositionDOM(r)}updateEditContextFormatting(e){this.editContextFormatting=this.editContextFormatting.map(e.changes);for(let n of e.transactions)for(let r of n.effects)r.is(gpe)&&(this.editContextFormatting=r.value)}compositionView(e){let n=new ds(e.text.nodeValue);n.flags|=8;for(let{deco:i}of e.marks)n=new du(i,[n],n.length);let r=new sr;return r.append(n,0),r}fixCompositionDOM(e){let n=(o,a)=>{a.flags|=8|(a.children.some(l=>l.flags&7)?1:0),this.markedForComposition.add(a);let s=bn.get(o);s&&s!=a&&(s.dom=null),a.setDOM(o)},r=this.childPos(e.range.fromB,1),i=this.children[r.i];n(e.line,i);for(let o=e.marks.length-1;o>=-1;o--)r=i.childPos(r.off,1),i=i.children[r.i],n(o>=0?e.marks[o].node:e.text,i)}updateSelection(e=!1,n=!1){(e||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let r=this.view.root.activeElement,i=r==this.dom,o=!i&&kx(this.dom,this.view.observer.selectionRange)&&!(r&&this.dom.contains(r));if(!(i||n||o))return;let a=this.forceSelection;this.forceSelection=!1;let s=this.view.state.selection.main,l=this.moveToLine(this.domAtPos(s.anchor)),u=s.empty?l:this.moveToLine(this.domAtPos(s.head));if(Xe.gecko&&s.empty&&!this.hasComposition&&rwt(l)){let f=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(f,l.node.childNodes[l.offset]||null)),l=u=new li(f,0),a=!0}let c=this.view.observer.selectionRange;(a||!c.focusNode||(!Cy(l.node,l.offset,c.anchorNode,c.anchorOffset)||!Cy(u.node,u.offset,c.focusNode,c.focusOffset))&&!this.suppressWidgetCursorChange(c,s))&&(this.view.observer.ignore(()=>{Xe.android&&Xe.chrome&&this.dom.contains(c.focusNode)&&lwt(c.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let f=$b(this.view.root);if(f)if(s.empty){if(Xe.gecko){let d=owt(l.node,l.offset);if(d&&d!=3){let p=(d==1?Ghe:jhe)(l.node,l.offset);p&&(l=new li(p.node,p.offset))}}f.collapse(l.node,l.offset),s.bidiLevel!=null&&f.caretBidiLevel!==void 0&&(f.caretBidiLevel=s.bidiLevel)}else if(f.extend){f.collapse(l.node,l.offset);try{f.extend(u.node,u.offset)}catch{}}else{let d=document.createRange();s.anchor>s.head&&([l,u]=[u,l]),d.setEnd(u.node,u.offset),d.setStart(l.node,l.offset),f.removeAllRanges(),f.addRange(d)}o&&this.view.root.activeElement==this.dom&&(this.dom.blur(),r&&r.focus())}),this.view.observer.setSelectionRange(l,u)),this.impreciseAnchor=l.precise?null:new li(c.anchorNode,c.anchorOffset),this.impreciseHead=u.precise?null:new li(c.focusNode,c.focusOffset)}suppressWidgetCursorChange(e,n){return this.hasComposition&&n.empty&&Cy(e.focusNode,e.focusOffset,e.anchorNode,e.anchorOffset)&&this.posFromDOM(e.focusNode,e.focusOffset)==n.head}enforceCursorAssoc(){if(this.hasComposition)return;let{view:e}=this,n=e.state.selection.main,r=$b(e.root),{anchorNode:i,anchorOffset:o}=e.observer.selectionRange;if(!r||!n.empty||!n.assoc||!r.modify)return;let a=sr.find(this,n.head);if(!a)return;let s=a.posAtStart;if(n.head==s||n.head==s+a.length)return;let l=this.coordsAt(n.head,-1),u=this.coordsAt(n.head,1);if(!l||!u||l.bottom>u.top)return;let c=this.domAtPos(n.head+n.assoc);r.collapse(c.node,c.offset),r.modify("move",n.assoc<0?"forward":"backward","lineboundary"),e.observer.readSelectionRange();let f=e.observer.selectionRange;e.docView.posFromDOM(f.anchorNode,f.anchorOffset)!=n.from&&r.collapse(i,o)}moveToLine(e){let n=this.dom,r;if(e.node!=n)return e;for(let i=e.offset;!r&&i<n.childNodes.length;i++){let o=bn.get(n.childNodes[i]);o instanceof sr&&(r=o.domAtPos(0))}for(let i=e.offset-1;!r&&i>=0;i--){let o=bn.get(n.childNodes[i]);o instanceof sr&&(r=o.domAtPos(o.length))}return r?new li(r.node,r.offset,!0):e}nearest(e){for(let n=e;n;){let r=bn.get(n);if(r&&r.rootView==this)return r;n=n.parentNode}return null}posFromDOM(e,n){let r=this.nearest(e);if(!r)throw new RangeError("Trying to find position for a DOM position outside of the document");return r.localPosFromDOM(e,n)+r.posAtStart}domAtPos(e){let{i:n,off:r}=this.childCursor().findPos(e,-1);for(;n<this.children.length-1;){let i=this.children[n];if(r<i.length||i instanceof sr)break;n++,r=0}return this.children[n].domAtPos(r)}coordsAt(e,n){let r=null,i=0;for(let o=this.length,a=this.children.length-1;a>=0;a--){let s=this.children[a],l=o-s.breakAfter,u=l-s.length;if(l<e)break;if(u<=e&&(u<e||s.covers(-1))&&(l>e||s.covers(1))&&(!r||s instanceof sr&&!(r instanceof sr&&n>=0)))r=s,i=u;else if(r&&u==e&&l==e&&s instanceof Kl&&Math.abs(n)<2){if(s.deco.startSide<0)break;a&&(r=null)}o=u}return r?r.coordsAt(e-i,n):null}coordsForChar(e){let{i:n,off:r}=this.childPos(e,1),i=this.children[n];if(!(i instanceof sr))return null;for(;i.children.length;){let{i:s,off:l}=i.childPos(r,1);for(;;s++){if(s==i.children.length)return null;if((i=i.children[s]).length)break}r=l}if(!(i instanceof ds))return null;let o=Ur(i.text,r);if(o==r)return null;let a=mh(i.dom,r,o).getClientRects();for(let s=0;s<a.length;s++){let l=a[s];if(s==a.length-1||l.top<l.bottom&&l.left<l.right)return l}return null}measureVisibleLineHeights(e){let n=[],{from:r,to:i}=e,o=this.view.contentDOM.clientWidth,a=o>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,s=-1,l=this.view.textDirection==Dn.LTR;for(let u=0,c=0;c<this.children.length;c++){let f=this.children[c],d=u+f.length;if(d>i)break;if(u>=r){let p=f.dom.getBoundingClientRect();if(n.push(p.height),a){let v=f.dom.lastChild,g=v?ug(v):[];if(g.length){let m=g[g.length-1],y=l?m.right-p.left:p.right-m.left;y>s&&(s=y,this.minWidth=o,this.minWidthFrom=u,this.minWidthTo=d)}}}u=d+f.breakAfter}return n}textDirectionAt(e){let{i:n}=this.childPos(e,1);return getComputedStyle(this.children[n].dom).direction=="rtl"?Dn.RTL:Dn.LTR}measureTextSize(){for(let o of this.children)if(o instanceof sr){let a=o.measureTextSize();if(a)return a}let e=document.createElement("div"),n,r,i;return e.className="cm-line",e.style.width="99999px",e.style.position="absolute",e.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(e);let o=ug(e.firstChild)[0];n=e.getBoundingClientRect().height,r=o?o.width/27:7,i=o?o.height:n,e.remove()}),{lineHeight:n,charWidth:r,textHeight:i}}childCursor(e=this.length){let n=this.children.length;return n&&(e-=this.children[--n].length),new Uhe(this.children,e,n)}computeBlockGapDeco(){let e=[],n=this.view.viewState;for(let r=0,i=0;;i++){let o=i==n.viewports.length?null:n.viewports[i],a=o?o.from-1:this.length;if(a>r){let s=(n.lineBlockAt(a).bottom-n.lineBlockAt(r).top)/this.view.scaleY;e.push(tt.replace({widget:new $q(s),block:!0,inclusive:!0,isBlockGap:!0}).range(r,a))}if(!o)break;r=o.to+1}return tt.set(e)}updateDeco(){let e=1,n=this.view.state.facet(Ab).map(o=>(this.dynamicDecorationMap[e++]=typeof o=="function")?o(this.view):o),r=!1,i=this.view.state.facet(ype).map((o,a)=>{let s=typeof o=="function";return s&&(r=!0),s?o(this.view):o});for(i.length&&(this.dynamicDecorationMap[e++]=r,n.push(Jt.join(i))),this.decorations=[this.editContextFormatting,...n,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];e<this.decorations.length;)this.dynamicDecorationMap[e++]=!1;return this.decorations}scrollIntoView(e){if(e.isSnapshot){let u=this.view.viewState.lineBlockAt(e.range.head);this.view.scrollDOM.scrollTop=u.top-e.yMargin,this.view.scrollDOM.scrollLeft=e.xMargin;return}for(let u of this.view.state.facet(vpe))try{if(u(this.view,e.range,e))return!0}catch(c){to(this.view.state,c,"scroll handler")}let{range:n}=e,r=this.coordsAt(n.head,n.empty?n.assoc:n.head>n.anchor?-1:1),i;if(!r)return;!n.empty&&(i=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(r={left:Math.min(r.left,i.left),top:Math.min(r.top,i.top),right:Math.max(r.right,i.right),bottom:Math.max(r.bottom,i.bottom)});let o=Ope(this.view),a={left:r.left-o.left,top:r.top-o.top,right:r.right+o.right,bottom:r.bottom+o.bottom},{offsetWidth:s,offsetHeight:l}=this.view.scrollDOM;LOt(this.view.scrollDOM,a,n.head<n.anchor?-1:1,e.x,e.y,Math.max(Math.min(e.xMargin,s),-s),Math.max(Math.min(e.yMargin,l),-l),this.view.textDirection==Dn.LTR)}}function rwt(t){return t.node.nodeType==1&&t.node.firstChild&&(t.offset==0||t.node.childNodes[t.offset-1].contentEditable=="false")&&(t.offset==t.node.childNodes.length||t.node.childNodes[t.offset].contentEditable=="false")}class $q extends ml{constructor(e){super(),this.height=e}toDOM(){let e=document.createElement("div");return e.className="cm-gap",this.updateDOM(e),e}eq(e){return e.height==this.height}updateDOM(e){return e.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}function wpe(t,e){let n=t.observer.selectionRange;if(!n.focusNode)return null;let r=Ghe(n.focusNode,n.focusOffset),i=jhe(n.focusNode,n.focusOffset),o=r||i;if(i&&r&&i.node!=r.node){let s=bn.get(i.node);if(!s||s instanceof ds&&s.text!=i.node.nodeValue)o=i;else if(t.docView.lastCompositionAfterCursor){let l=bn.get(r.node);!l||l instanceof ds&&l.text!=r.node.nodeValue||(o=i)}}if(t.docView.lastCompositionAfterCursor=o!=r,!o)return null;let a=e-o.offset;return{from:a,to:a+o.node.nodeValue.length,node:o.node}}function iwt(t,e,n){let r=wpe(t,n);if(!r)return null;let{node:i,from:o,to:a}=r,s=i.nodeValue;if(/[\n\r]/.test(s)||t.state.doc.sliceString(r.from,r.to)!=s)return null;let l=e.invertedDesc,u=new _a(l.mapPos(o),l.mapPos(a),o,a),c=[];for(let f=i.parentNode;;f=f.parentNode){let d=bn.get(f);if(d instanceof du)c.push({node:f,deco:d.mark});else{if(d instanceof sr||f.nodeName=="DIV"&&f.parentNode==t.contentDOM)return{range:u,text:i,marks:c,line:f};if(f!=t.contentDOM)c.push({node:f,deco:new N_({inclusive:!0,attributes:GOt(f),tagName:f.tagName.toLowerCase()})});else return null}}}function owt(t,e){return t.nodeType!=1?0:(e&&t.childNodes[e-1].contentEditable=="false"?1:0)|(e<t.childNodes.length&&t.childNodes[e].contentEditable=="false"?2:0)}let awt=class{constructor(){this.changes=[]}compareRange(e,n){xN(e,n,this.changes)}comparePoint(e,n){xN(e,n,this.changes)}};function swt(t,e,n){let r=new awt;return Jt.compare(t,e,n,r),r.changes}function lwt(t,e){for(let n=t;n&&n!=e;n=n.assignedSlot||n.parentNode)if(n.nodeType==1&&n.contentEditable=="false")return!0;return!1}function uwt(t,e){let n=!1;return e&&t.iterChangedRanges((r,i)=>{r<e.to&&i>e.from&&(n=!0)}),n}function cwt(t,e,n=1){let r=t.charCategorizer(e),i=t.doc.lineAt(e),o=e-i.from;if(i.length==0)return Te.cursor(e);o==0?n=1:o==i.length&&(n=-1);let a=o,s=o;n<0?a=Ur(i.text,o,!1):s=Ur(i.text,o);let l=r(i.text.slice(a,s));for(;a>0;){let u=Ur(i.text,a,!1);if(r(i.text.slice(u,a))!=l)break;a=u}for(;s<i.length;){let u=Ur(i.text,s);if(r(i.text.slice(s,u))!=l)break;s=u}return Te.range(a+i.from,s+i.from)}function fwt(t,e){return e.left>t?e.left-t:Math.max(0,t-e.right)}function dwt(t,e){return e.top>t?e.top-t:Math.max(0,t-e.bottom)}function uI(t,e){return t.top<e.bottom-1&&t.bottom>e.top+1}function Aq(t,e){return e<t.top?{top:e,left:t.left,right:t.right,bottom:t.bottom}:t}function Eq(t,e){return e>t.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function $N(t,e,n){let r,i,o,a,s=!1,l,u,c,f;for(let v=t.firstChild;v;v=v.nextSibling){let g=ug(v);for(let m=0;m<g.length;m++){let y=g[m];i&&uI(i,y)&&(y=Aq(Eq(y,i.bottom),i.top));let b=fwt(e,y),O=dwt(n,y);if(b==0&&O==0)return v.nodeType==3?Mq(v,e,n):$N(v,e,n);if(!r||a>O||a==O&&o>b){r=v,i=y,o=b,a=O;let w=O?n<y.top?-1:1:b?e<y.left?-1:1:0;s=!w||(w>0?m<g.length-1:m>0)}b==0?n>y.bottom&&(!c||c.bottom<y.bottom)?(l=v,c=y):n<y.top&&(!f||f.top>y.top)&&(u=v,f=y):c&&uI(c,y)?c=Eq(c,y.bottom):f&&uI(f,y)&&(f=Aq(f,y.top))}}if(c&&c.bottom>=n?(r=l,i=c):f&&f.top<=n&&(r=u,i=f),!r)return{node:t,offset:0};let d=Math.max(i.left,Math.min(i.right,e));if(r.nodeType==3)return Mq(r,d,n);if(s&&r.contentEditable!="false")return $N(r,d,n);let p=Array.prototype.indexOf.call(t.childNodes,r)+(e>=(i.left+i.right)/2?1:0);return{node:t,offset:p}}function Mq(t,e,n){let r=t.nodeValue.length,i=-1,o=1e9,a=0;for(let s=0;s<r;s++){let l=mh(t,s,s+1).getClientRects();for(let u=0;u<l.length;u++){let c=l[u];if(c.top==c.bottom)continue;a||(a=e-c.left);let f=(c.top>n?c.top-n:n-c.bottom)-1;if(c.left-1<=e&&c.right+1>=e&&f<o){let d=e>=(c.left+c.right)/2,p=d;if((Xe.chrome||Xe.gecko)&&mh(t,s).getBoundingClientRect().left==c.right&&(p=!d),f<=0)return{node:t,offset:s+(p?1:0)};i=s+(p?1:0),o=f}}}return{node:t,offset:i>-1?i:a>0?t.nodeValue.length:0}}function xpe(t,e,n,r=-1){var i,o;let a=t.contentDOM.getBoundingClientRect(),s=a.top+t.viewState.paddingTop,l,{docHeight:u}=t.viewState,{x:c,y:f}=e,d=f-s;if(d<0)return 0;if(d>u)return t.state.doc.length;for(let w=t.viewState.heightOracle.textHeight/2,x=!1;l=t.elementAtHeight(d),l.type!=Mi.Text;)for(;d=r>0?l.bottom+w:l.top-w,!(d>=0&&d<=u);){if(x)return n?null:0;x=!0,r=-r}f=s+d;let p=l.from;if(p<t.viewport.from)return t.viewport.from==0?0:n?null:Iq(t,a,l,c,f);if(p>t.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:n?null:Iq(t,a,l,c,f);let v=t.dom.ownerDocument,g=t.root.elementFromPoint?t.root:v,m=g.elementFromPoint(c,f);m&&!t.contentDOM.contains(m)&&(m=null),m||(c=Math.max(a.left+1,Math.min(a.right-1,c)),m=g.elementFromPoint(c,f),m&&!t.contentDOM.contains(m)&&(m=null));let y,b=-1;if(m&&((i=t.docView.nearest(m))===null||i===void 0?void 0:i.isEditable)!=!1){if(v.caretPositionFromPoint){let w=v.caretPositionFromPoint(c,f);w&&({offsetNode:y,offset:b}=w)}else if(v.caretRangeFromPoint){let w=v.caretRangeFromPoint(c,f);w&&({startContainer:y,startOffset:b}=w,(!t.contentDOM.contains(y)||Xe.safari&&hwt(y,b,c)||Xe.chrome&&pwt(y,b,c))&&(y=void 0))}}if(!y||!t.docView.dom.contains(y)){let w=sr.find(t.docView,p);if(!w)return d>l.top+l.height/2?l.to:l.from;({node:y,offset:b}=$N(w.dom,c,f))}let O=t.docView.nearest(y);if(!O)return null;if(O.isWidget&&((o=O.dom)===null||o===void 0?void 0:o.nodeType)==1){let w=O.dom.getBoundingClientRect();return e.y<w.top||e.y<=w.bottom&&e.x<=(w.left+w.right)/2?O.posAtStart:O.posAtEnd}else return O.localPosFromDOM(y,b)+O.posAtStart}function Iq(t,e,n,r,i){let o=Math.round((r-e.left)*t.defaultCharacterWidth);if(t.lineWrapping&&n.height>t.defaultLineHeight*1.5){let s=t.viewState.heightOracle.textHeight,l=Math.floor((i-n.top-(t.defaultLineHeight-s)*.5)/s);o+=l*t.viewState.heightOracle.lineLength}let a=t.state.sliceDoc(n.from,n.to);return n.from+pN(a,o,t.state.tabSize)}function hwt(t,e,n){let r;if(t.nodeType!=3||e!=(r=t.nodeValue.length))return!1;for(let i=t.nextSibling;i;i=i.nextSibling)if(i.nodeType!=1||i.nodeName!="BR")return!1;return mh(t,r-1,r).getBoundingClientRect().left>n}function pwt(t,e,n){if(e!=0)return!1;for(let i=t;;){let o=i.parentNode;if(!o||o.nodeType!=1||o.firstChild!=i)return!1;if(o.classList.contains("cm-line"))break;i=o}let r=t.nodeType==1?t.getBoundingClientRect():mh(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect();return n-r.left>5}function AN(t,e){let n=t.lineBlockAt(e);if(Array.isArray(n.type)){for(let r of n.type)if(r.to>e||r.to==e&&(r.to==n.to||r.type==Mi.Text))return r}return n}function vwt(t,e,n,r){let i=AN(t,e.head),o=!r||i.type!=Mi.Text||!(t.lineWrapping||i.widgetLineBreaks)?null:t.coordsAtPos(e.assoc<0&&e.head>i.from?e.head-1:e.head);if(o){let a=t.dom.getBoundingClientRect(),s=t.textDirectionAt(i.from),l=t.posAtCoords({x:n==(s==Dn.LTR)?a.right-1:a.left+1,y:(o.top+o.bottom)/2});if(l!=null)return Te.cursor(l,n?-1:1)}return Te.cursor(n?i.to:i.from,n?-1:1)}function Dq(t,e,n,r){let i=t.state.doc.lineAt(e.head),o=t.bidiSpans(i),a=t.textDirectionAt(i.from);for(let s=e,l=null;;){let u=ewt(i,o,a,s,n),c=ape;if(!u){if(i.number==(n?t.state.doc.lines:1))return s;c=`
  400. `,i=t.state.doc.line(i.number+(n?1:-1)),o=t.bidiSpans(i),u=t.visualLineSide(i,!n)}if(l){if(!l(c))return s}else{if(!r)return u;l=r(c)}s=u}}function gwt(t,e,n){let r=t.state.charCategorizer(e),i=r(n);return o=>{let a=r(o);return i==Ln.Space&&(i=a),i==a}}function mwt(t,e,n,r){let i=e.head,o=n?1:-1;if(i==(n?t.state.doc.length:0))return Te.cursor(i,e.assoc);let a=e.goalColumn,s,l=t.contentDOM.getBoundingClientRect(),u=t.coordsAtPos(i,e.assoc||-1),c=t.documentTop;if(u)a==null&&(a=u.left-l.left),s=o<0?u.top:u.bottom;else{let p=t.viewState.lineBlockAt(i);a==null&&(a=Math.min(l.right-l.left,t.defaultCharacterWidth*(i-p.from))),s=(o<0?p.top:p.bottom)+c}let f=l.left+a,d=r??t.viewState.heightOracle.textHeight>>1;for(let p=0;;p+=10){let v=s+(d+p)*o,g=xpe(t,{x:f,y:v},!1,o);if(v<l.top||v>l.bottom||(o<0?g<i:g>i)){let m=t.docView.coordsForChar(g),y=!m||v<m.top?-1:1;return Te.cursor(g,y,void 0,a)}}}function Nx(t,e,n){for(;;){let r=0;for(let i of t)i.between(e-1,e+1,(o,a,s)=>{if(e>o&&e<a){let l=r||n||(e-o<a-e?-1:1);e=l<0?o:a,r=l}});if(!r)return e}}function cI(t,e,n){let r=Nx(t.state.facet(cB).map(i=>i(t)),n.from,e.head>n.from?-1:1);return r==n.from?n:Te.cursor(r,r<n.from?1:-1)}class ywt{setSelectionOrigin(e){this.lastSelectionOrigin=e,this.lastSelectionTime=Date.now()}constructor(e){this.view=e,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=e.hasFocus,Xe.safari&&e.contentDOM.addEventListener("input",()=>null),Xe.gecko&&Rwt(e.contentDOM.ownerDocument)}handleEvent(e){!Twt(this.view,e)||this.ignoreDuringComposition(e)||e.type=="keydown"&&this.keydown(e)||this.runHandlers(e.type,e)}runHandlers(e,n){let r=this.handlers[e];if(r){for(let i of r.observers)i(this.view,n);for(let i of r.handlers){if(n.defaultPrevented)break;if(i(this.view,n)){n.preventDefault();break}}}}ensureHandlers(e){let n=bwt(e),r=this.handlers,i=this.view.contentDOM;for(let o in n)if(o!="scroll"){let a=!n[o].handlers.length,s=r[o];s&&a!=!s.handlers.length&&(i.removeEventListener(o,this.handleEvent),s=null),s||i.addEventListener(o,this.handleEvent,{passive:a})}for(let o in r)o!="scroll"&&!n[o]&&i.removeEventListener(o,this.handleEvent);this.handlers=n}keydown(e){if(this.lastKeyCode=e.keyCode,this.lastKeyTime=Date.now(),e.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&e.keyCode!=27&&Cpe.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),Xe.android&&Xe.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let n;return Xe.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((n=Spe.find(r=>r.keyCode==e.keyCode))&&!e.ctrlKey||_wt.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)?(this.pendingIOSKey=n||e,setTimeout(()=>this.flushIOSKey(),250),!0):(e.keyCode!=229&&this.view.observer.forceFlush(),!1)}flushIOSKey(e){let n=this.pendingIOSKey;return!n||n.key=="Enter"&&e&&e.from<e.to&&/^\S+$/.test(e.insert.toString())?!1:(this.pendingIOSKey=void 0,yv(this.view.contentDOM,n.key,n.keyCode,n instanceof KeyboardEvent?n:void 0))}ignoreDuringComposition(e){return/^key/.test(e.type)?this.composing>0?!0:Xe.safari&&!Xe.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100?(this.compositionPendingKey=!1,!0):!1:!1}startMouseSelection(e){this.mouseSelection&&this.mouseSelection.destroy(),this.mouseSelection=e}update(e){this.view.observer.update(e),this.mouseSelection&&this.mouseSelection.update(e),this.draggedContent&&e.docChanged&&(this.draggedContent=this.draggedContent.map(e.changes)),e.transactions.length&&(this.lastKeyCode=this.lastSelectionTime=0)}destroy(){this.mouseSelection&&this.mouseSelection.destroy()}}function Rq(t,e){return(n,r)=>{try{return e.call(t,r,n)}catch(i){to(n.state,i)}}}function bwt(t){let e=Object.create(null);function n(r){return e[r]||(e[r]={observers:[],handlers:[]})}for(let r of t){let i=r.spec;if(i&&i.domEventHandlers)for(let o in i.domEventHandlers){let a=i.domEventHandlers[o];a&&n(o).handlers.push(Rq(r.value,a))}if(i&&i.domEventObservers)for(let o in i.domEventObservers){let a=i.domEventObservers[o];a&&n(o).observers.push(Rq(r.value,a))}}for(let r in hs)n(r).handlers.push(hs[r]);for(let r in Aa)n(r).observers.push(Aa[r]);return e}const Spe=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],_wt="dthko",Cpe=[16,17,18,20,91,92,224,225],mw=6;function yw(t){return Math.max(0,t)*.7+8}function Owt(t,e){return Math.max(Math.abs(t.clientX-e.clientX),Math.abs(t.clientY-e.clientY))}class wwt{constructor(e,n,r,i){this.view=e,this.startEvent=n,this.style=r,this.mustSelect=i,this.scrollSpeed={x:0,y:0},this.scrolling=-1,this.lastEvent=n,this.scrollParent=BOt(e.contentDOM),this.atoms=e.state.facet(cB).map(a=>a(e));let o=e.contentDOM.ownerDocument;o.addEventListener("mousemove",this.move=this.move.bind(this)),o.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=n.shiftKey,this.multiple=e.state.facet(Wt.allowMultipleSelections)&&xwt(e,n),this.dragging=Cwt(e,n)&&Ape(n)==1?null:!1}start(e){this.dragging===!1&&this.select(e)}move(e){var n;if(e.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&Owt(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let r=0,i=0,o=((n=this.scrollParent)===null||n===void 0?void 0:n.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},a=Ope(this.view);e.clientX-a.left<=o.left+mw?r=-yw(o.left-e.clientX):e.clientX+a.right>=o.right-mw&&(r=yw(e.clientX-o.right)),e.clientY-a.top<=o.top+mw?i=-yw(o.top-e.clientY):e.clientY+a.bottom>=o.bottom-mw&&(i=yw(e.clientY-o.bottom)),this.setScrollSpeed(r,i)}up(e){this.dragging==null&&this.select(this.lastEvent),this.dragging||e.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let e=this.view.contentDOM.ownerDocument;e.removeEventListener("mousemove",this.move),e.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(e,n){this.scrollSpeed={x:e,y:n},e||n?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(e){let n=null;for(let r=0;r<e.ranges.length;r++){let i=e.ranges[r],o=null;if(i.empty){let a=Nx(this.atoms,i.from,0);a!=i.from&&(o=Te.cursor(a,-1))}else{let a=Nx(this.atoms,i.from,-1),s=Nx(this.atoms,i.to,1);(a!=i.from||s!=i.to)&&(o=Te.range(i.from==i.anchor?a:s,i.from==i.head?a:s))}o&&(n||(n=e.ranges.slice()),n[r]=o)}return n?Te.create(n,e.mainIndex):e}select(e){let{view:n}=this,r=this.skipAtoms(this.style.get(e,this.extend,this.multiple));(this.mustSelect||!r.eq(n.state.selection,this.dragging===!1))&&this.view.dispatch({selection:r,userEvent:"select.pointer"}),this.mustSelect=!1}update(e){e.transactions.some(n=>n.isUserEvent("input.type"))?this.destroy():this.style.update(e)&&setTimeout(()=>this.select(this.lastEvent),20)}}function xwt(t,e){let n=t.state.facet(spe);return n.length?n[0](e):Xe.mac?e.metaKey:e.ctrlKey}function Swt(t,e){let n=t.state.facet(lpe);return n.length?n[0](e):Xe.mac?!e.altKey:!e.ctrlKey}function Cwt(t,e){let{main:n}=t.state.selection;if(n.empty)return!1;let r=$b(t.root);if(!r||r.rangeCount==0)return!0;let i=r.getRangeAt(0).getClientRects();for(let o=0;o<i.length;o++){let a=i[o];if(a.left<=e.clientX&&a.right>=e.clientX&&a.top<=e.clientY&&a.bottom>=e.clientY)return!0}return!1}function Twt(t,e){if(!e.bubbles)return!0;if(e.defaultPrevented)return!1;for(let n=e.target,r;n!=t.contentDOM;n=n.parentNode)if(!n||n.nodeType==11||(r=bn.get(n))&&r.ignoreEvent(e))return!1;return!0}const hs=Object.create(null),Aa=Object.create(null),Tpe=Xe.ie&&Xe.ie_version<15||Xe.ios&&Xe.webkit_version<604;function Pwt(t){let e=t.dom.parentNode;if(!e)return;let n=e.appendChild(document.createElement("textarea"));n.style.cssText="position: fixed; left: -10000px; top: 10px",n.focus(),setTimeout(()=>{t.focus(),n.remove(),Ppe(t,n.value)},50)}function Ppe(t,e){let{state:n}=t,r,i=1,o=n.toText(e),a=o.lines==n.selection.ranges.length;if(EN!=null&&n.selection.ranges.every(l=>l.empty)&&EN==o.toString()){let l=-1;r=n.changeByRange(u=>{let c=n.doc.lineAt(u.from);if(c.from==l)return{range:u};l=c.from;let f=n.toText((a?o.line(i++).text:e)+n.lineBreak);return{changes:{from:c.from,insert:f},range:Te.cursor(u.from+f.length)}})}else a?r=n.changeByRange(l=>{let u=o.line(i++);return{changes:{from:l.from,to:l.to,insert:u.text},range:Te.cursor(l.from+u.length)}}):r=n.replaceSelection(o);t.dispatch(r,{userEvent:"input.paste",scrollIntoView:!0})}Aa.scroll=t=>{t.inputState.lastScrollTop=t.scrollDOM.scrollTop,t.inputState.lastScrollLeft=t.scrollDOM.scrollLeft};hs.keydown=(t,e)=>(t.inputState.setSelectionOrigin("select"),e.keyCode==27&&t.inputState.tabFocusMode!=0&&(t.inputState.tabFocusMode=Date.now()+2e3),!1);Aa.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now(),t.inputState.setSelectionOrigin("select.pointer")};Aa.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")};hs.mousedown=(t,e)=>{if(t.observer.flush(),t.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let r of t.state.facet(upe))if(n=r(t,e),n)break;if(!n&&e.button==0&&(n=Ewt(t,e)),n){let r=!t.hasFocus;t.inputState.startMouseSelection(new wwt(t,e,n,r)),r&&t.observer.ignore(()=>{Whe(t.contentDOM);let o=t.root.activeElement;o&&!o.contains(t.contentDOM)&&o.blur()});let i=t.inputState.mouseSelection;if(i)return i.start(e),i.dragging===!1}return!1};function kq(t,e,n,r){if(r==1)return Te.cursor(e,n);if(r==2)return cwt(t.state,e,n);{let i=sr.find(t.docView,e),o=t.state.doc.lineAt(i?i.posAtEnd:e),a=i?i.posAtStart:o.from,s=i?i.posAtEnd:o.to;return s<t.state.doc.length&&s==o.to&&s++,Te.range(a,s)}}let $pe=(t,e)=>t>=e.top&&t<=e.bottom,Nq=(t,e,n)=>$pe(e,n)&&t>=n.left&&t<=n.right;function $wt(t,e,n,r){let i=sr.find(t.docView,e);if(!i)return 1;let o=e-i.posAtStart;if(o==0)return 1;if(o==i.length)return-1;let a=i.coordsAt(o,-1);if(a&&Nq(n,r,a))return-1;let s=i.coordsAt(o,1);return s&&Nq(n,r,s)?1:a&&$pe(r,a)?-1:1}function Lq(t,e){let n=t.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:n,bias:$wt(t,n,e.clientX,e.clientY)}}const Awt=Xe.ie&&Xe.ie_version<=11;let Bq=null,Vq=0,zq=0;function Ape(t){if(!Awt)return t.detail;let e=Bq,n=zq;return Bq=t,zq=Date.now(),Vq=!e||n>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(Vq+1)%3:1}function Ewt(t,e){let n=Lq(t,e),r=Ape(e),i=t.state.selection;return{update(o){o.docChanged&&(n.pos=o.changes.mapPos(n.pos),i=i.map(o.changes))},get(o,a,s){let l=Lq(t,o),u,c=kq(t,l.pos,l.bias,r);if(n.pos!=l.pos&&!a){let f=kq(t,n.pos,n.bias,r),d=Math.min(f.from,c.from),p=Math.max(f.to,c.to);c=d<c.from?Te.range(d,p):Te.range(p,d)}return a?i.replaceRange(i.main.extend(c.from,c.to)):s&&r==1&&i.ranges.length>1&&(u=Mwt(i,l.pos))?u:s?i.addRange(c):Te.create([c])}}}function Mwt(t,e){for(let n=0;n<t.ranges.length;n++){let{from:r,to:i}=t.ranges[n];if(r<=e&&i>=e)return Te.create(t.ranges.slice(0,n).concat(t.ranges.slice(n+1)),t.mainIndex==n?0:t.mainIndex-(t.mainIndex>n?1:0))}return null}hs.dragstart=(t,e)=>{let{selection:{main:n}}=t.state;if(e.target.draggable){let i=t.docView.nearest(e.target);if(i&&i.isWidget){let o=i.posAtStart,a=o+i.length;(o>=n.to||a<=n.from)&&(n=Te.range(o,a))}}let{inputState:r}=t;return r.mouseSelection&&(r.mouseSelection.dragging=!0),r.draggedContent=n,e.dataTransfer&&(e.dataTransfer.setData("Text",t.state.sliceDoc(n.from,n.to)),e.dataTransfer.effectAllowed="copyMove"),!1};hs.dragend=t=>(t.inputState.draggedContent=null,!1);function Fq(t,e,n,r){if(!n)return;let i=t.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:o}=t.inputState,a=r&&o&&Swt(t,e)?{from:o.from,to:o.to}:null,s={from:i,insert:n},l=t.state.changes(a?[a,s]:s);t.focus(),t.dispatch({changes:l,selection:{anchor:l.mapPos(i,-1),head:l.mapPos(i,1)},userEvent:a?"move.drop":"input.drop"}),t.inputState.draggedContent=null}hs.drop=(t,e)=>{if(!e.dataTransfer)return!1;if(t.state.readOnly)return!0;let n=e.dataTransfer.files;if(n&&n.length){let r=Array(n.length),i=0,o=()=>{++i==n.length&&Fq(t,e,r.filter(a=>a!=null).join(t.state.lineBreak),!1)};for(let a=0;a<n.length;a++){let s=new FileReader;s.onerror=o,s.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(s.result)||(r[a]=s.result),o()},s.readAsText(n[a])}return!0}else{let r=e.dataTransfer.getData("Text");if(r)return Fq(t,e,r,!0),!0}return!1};hs.paste=(t,e)=>{if(t.state.readOnly)return!0;t.observer.flush();let n=Tpe?null:e.clipboardData;return n?(Ppe(t,n.getData("text/plain")||n.getData("text/uri-list")),!0):(Pwt(t),!1)};function Iwt(t,e){let n=t.dom.parentNode;if(!n)return;let r=n.appendChild(document.createElement("textarea"));r.style.cssText="position: fixed; left: -10000px; top: 10px",r.value=e,r.focus(),r.selectionEnd=e.length,r.selectionStart=0,setTimeout(()=>{r.remove(),t.focus()},50)}function Dwt(t){let e=[],n=[],r=!1;for(let i of t.selection.ranges)i.empty||(e.push(t.sliceDoc(i.from,i.to)),n.push(i));if(!e.length){let i=-1;for(let{from:o}of t.selection.ranges){let a=t.doc.lineAt(o);a.number>i&&(e.push(a.text),n.push({from:a.from,to:Math.min(t.doc.length,a.to+1)})),i=a.number}r=!0}return{text:e.join(t.lineBreak),ranges:n,linewise:r}}let EN=null;hs.copy=hs.cut=(t,e)=>{let{text:n,ranges:r,linewise:i}=Dwt(t.state);if(!n&&!i)return!1;EN=i?n:null,e.type=="cut"&&!t.state.readOnly&&t.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let o=Tpe?null:e.clipboardData;return o?(o.clearData(),o.setData("text/plain",n),!0):(Iwt(t,n),!1)};const Epe=Ou.define();function Mpe(t,e){let n=[];for(let r of t.facet(dpe)){let i=r(t,e);i&&n.push(i)}return n?t.update({effects:n,annotations:Epe.of(!0)}):null}function Ipe(t){setTimeout(()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let n=Mpe(t.state,e);n?t.dispatch(n):t.update([])}},10)}Aa.focus=t=>{t.inputState.lastFocusTime=Date.now(),!t.scrollDOM.scrollTop&&(t.inputState.lastScrollTop||t.inputState.lastScrollLeft)&&(t.scrollDOM.scrollTop=t.inputState.lastScrollTop,t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft),Ipe(t)};Aa.blur=t=>{t.observer.clearSelectionRange(),Ipe(t)};Aa.compositionstart=Aa.compositionupdate=t=>{t.observer.editContext||(t.inputState.compositionFirstChange==null&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0))};Aa.compositionend=t=>{t.observer.editContext||(t.inputState.composing=-1,t.inputState.compositionEndedAt=Date.now(),t.inputState.compositionPendingKey=!0,t.inputState.compositionPendingChange=t.observer.pendingRecords().length>0,t.inputState.compositionFirstChange=null,Xe.chrome&&Xe.android?t.observer.flushSoon():t.inputState.compositionPendingChange?Promise.resolve().then(()=>t.observer.flush()):setTimeout(()=>{t.inputState.composing<0&&t.docView.hasComposition&&t.update([])},50))};Aa.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()};hs.beforeinput=(t,e)=>{var n;let r;if(Xe.chrome&&Xe.android&&(r=Spe.find(i=>i.inputType==e.inputType))&&(t.observer.delayAndroidKey(r.key,r.keyCode),r.key=="Backspace"||r.key=="Delete")){let i=((n=window.visualViewport)===null||n===void 0?void 0:n.height)||0;setTimeout(()=>{var o;(((o=window.visualViewport)===null||o===void 0?void 0:o.height)||0)>i+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}return Xe.ios&&e.inputType=="deleteContentForward"&&t.observer.flushSoon(),Xe.safari&&e.inputType=="insertText"&&t.inputState.composing>=0&&setTimeout(()=>Aa.compositionend(t,e),20),!1};const Wq=new Set;function Rwt(t){Wq.has(t)||(Wq.add(t),t.addEventListener("copy",()=>{}),t.addEventListener("cut",()=>{}))}const Qq=["pre-wrap","normal","pre-line","break-spaces"];class kwt{constructor(e){this.lineWrapping=e,this.doc=en.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30,this.heightChanged=!1}heightForGap(e,n){let r=this.doc.lineAt(n).number-this.doc.lineAt(e).number+1;return this.lineWrapping&&(r+=Math.max(0,Math.ceil((n-e-r*this.lineLength*.5)/this.lineLength))),this.lineHeight*r}heightForLine(e){return this.lineWrapping?(1+Math.max(0,Math.ceil((e-this.lineLength)/(this.lineLength-5))))*this.lineHeight:this.lineHeight}setDoc(e){return this.doc=e,this}mustRefreshForWrapping(e){return Qq.indexOf(e)>-1!=this.lineWrapping}mustRefreshForHeights(e){let n=!1;for(let r=0;r<e.length;r++){let i=e[r];i<0?r++:this.heightSamples[Math.floor(i*10)]||(n=!0,this.heightSamples[Math.floor(i*10)]=!0)}return n}refresh(e,n,r,i,o,a){let s=Qq.indexOf(e)>-1,l=Math.round(n)!=Math.round(this.lineHeight)||this.lineWrapping!=s;if(this.lineWrapping=s,this.lineHeight=n,this.charWidth=r,this.textHeight=i,this.lineLength=o,l){this.heightSamples={};for(let u=0;u<a.length;u++){let c=a[u];c<0?u++:this.heightSamples[Math.floor(c*10)]=!0}}return l}}class Nwt{constructor(e,n){this.from=e,this.heights=n,this.index=0}get more(){return this.index<this.heights.length}}class Hs{constructor(e,n,r,i,o){this.from=e,this.length=n,this.top=r,this.height=i,this._content=o}get type(){return typeof this._content=="number"?Mi.Text:Array.isArray(this._content)?this._content:this._content.type}get to(){return this.from+this.length}get bottom(){return this.top+this.height}get widget(){return this._content instanceof Fc?this._content.widget:null}get widgetLineBreaks(){return typeof this._content=="number"?this._content:0}join(e){let n=(Array.isArray(this._content)?this._content:[this]).concat(Array.isArray(e._content)?e._content:[e]);return new Hs(this.from,this.length+e.length,this.top,this.height+e.height,n)}}var An=function(t){return t[t.ByPos=0]="ByPos",t[t.ByHeight=1]="ByHeight",t[t.ByPosNoHeight=2]="ByPosNoHeight",t}(An||(An={}));const Lx=.001;class Ii{constructor(e,n,r=2){this.length=e,this.height=n,this.flags=r}get outdated(){return(this.flags&2)>0}set outdated(e){this.flags=(e?2:0)|this.flags&-3}setHeight(e,n){this.height!=n&&(Math.abs(this.height-n)>Lx&&(e.heightChanged=!0),this.height=n)}replace(e,n,r){return Ii.of(r)}decomposeLeft(e,n){n.push(this)}decomposeRight(e,n){n.push(this)}applyChanges(e,n,r,i){let o=this,a=r.doc;for(let s=i.length-1;s>=0;s--){let{fromA:l,toA:u,fromB:c,toB:f}=i[s],d=o.lineAt(l,An.ByPosNoHeight,r.setDoc(n),0,0),p=d.to>=u?d:o.lineAt(u,An.ByPosNoHeight,r,0,0);for(f+=p.to-u,u=p.to;s>0&&d.from<=i[s-1].toA;)l=i[s-1].fromA,c=i[s-1].fromB,s--,l<d.from&&(d=o.lineAt(l,An.ByPosNoHeight,r,0,0));c+=d.from-l,l=d.from;let v=fB.build(r.setDoc(a),e,c,f);o=o.replace(l,u,v)}return o.updateHeight(r,0)}static empty(){return new So(0,0)}static of(e){if(e.length==1)return e[0];let n=0,r=e.length,i=0,o=0;for(;;)if(n==r)if(i>o*2){let s=e[n-1];s.break?e.splice(--n,1,s.left,null,s.right):e.splice(--n,1,s.left,s.right),r+=1+s.break,i-=s.size}else if(o>i*2){let s=e[r];s.break?e.splice(r,1,s.left,null,s.right):e.splice(r,1,s.left,s.right),r+=2+s.break,o-=s.size}else break;else if(i<o){let s=e[n++];s&&(i+=s.size)}else{let s=e[--r];s&&(o+=s.size)}let a=0;return e[n-1]==null?(a=1,n--):e[n]==null&&(a=1,r++),new Lwt(Ii.of(e.slice(0,n)),a,Ii.of(e.slice(r)))}}Ii.prototype.size=1;class Dpe extends Ii{constructor(e,n,r){super(e,n),this.deco=r}blockAt(e,n,r,i){return new Hs(i,this.length,r,this.height,this.deco||0)}lineAt(e,n,r,i,o){return this.blockAt(0,r,i,o)}forEachLine(e,n,r,i,o,a){e<=o+this.length&&n>=o&&a(this.blockAt(0,r,i,o))}updateHeight(e,n=0,r=!1,i){return i&&i.from<=n&&i.more&&this.setHeight(e,i.heights[i.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class So extends Dpe{constructor(e,n){super(e,n,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,n,r,i){return new Hs(i,this.length,r,this.height,this.breaks)}replace(e,n,r){let i=r[0];return r.length==1&&(i instanceof So||i instanceof Vr&&i.flags&4)&&Math.abs(this.length-i.length)<10?(i instanceof Vr?i=new So(i.length,this.height):i.height=this.height,this.outdated||(i.outdated=!1),i):Ii.of(r)}updateHeight(e,n=0,r=!1,i){return i&&i.from<=n&&i.more?this.setHeight(e,i.heights[i.index++]):(r||this.outdated)&&this.setHeight(e,Math.max(this.widgetHeight,e.heightForLine(this.length-this.collapsed))+this.breaks*e.lineHeight),this.outdated=!1,this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class Vr extends Ii{constructor(e){super(e,0)}heightMetrics(e,n){let r=e.doc.lineAt(n).number,i=e.doc.lineAt(n+this.length).number,o=i-r+1,a,s=0;if(e.lineWrapping){let l=Math.min(this.height,e.lineHeight*o);a=l/o,this.length>o+1&&(s=(this.height-l)/(this.length-o-1))}else a=this.height/o;return{firstLine:r,lastLine:i,perLine:a,perChar:s}}blockAt(e,n,r,i){let{firstLine:o,lastLine:a,perLine:s,perChar:l}=this.heightMetrics(n,i);if(n.lineWrapping){let u=i+(e<n.lineHeight?0:Math.round(Math.max(0,Math.min(1,(e-r)/this.height))*this.length)),c=n.doc.lineAt(u),f=s+c.length*l,d=Math.max(r,e-f/2);return new Hs(c.from,c.length,d,f,0)}else{let u=Math.max(0,Math.min(a-o,Math.floor((e-r)/s))),{from:c,length:f}=n.doc.line(o+u);return new Hs(c,f,r+s*u,s,0)}}lineAt(e,n,r,i,o){if(n==An.ByHeight)return this.blockAt(e,r,i,o);if(n==An.ByPosNoHeight){let{from:p,to:v}=r.doc.lineAt(e);return new Hs(p,v-p,0,0,0)}let{firstLine:a,perLine:s,perChar:l}=this.heightMetrics(r,o),u=r.doc.lineAt(e),c=s+u.length*l,f=u.number-a,d=i+s*f+l*(u.from-o-f);return new Hs(u.from,u.length,Math.max(i,Math.min(d,i+this.height-c)),c,0)}forEachLine(e,n,r,i,o,a){e=Math.max(e,o),n=Math.min(n,o+this.length);let{firstLine:s,perLine:l,perChar:u}=this.heightMetrics(r,o);for(let c=e,f=i;c<=n;){let d=r.doc.lineAt(c);if(c==e){let v=d.number-s;f+=l*v+u*(e-o-v)}let p=l+u*d.length;a(new Hs(d.from,d.length,f,p,0)),f+=p,c=d.to+1}}replace(e,n,r){let i=this.length-n;if(i>0){let o=r[r.length-1];o instanceof Vr?r[r.length-1]=new Vr(o.length+i):r.push(null,new Vr(i-1))}if(e>0){let o=r[0];o instanceof Vr?r[0]=new Vr(e+o.length):r.unshift(new Vr(e-1),null)}return Ii.of(r)}decomposeLeft(e,n){n.push(new Vr(e-1),null)}decomposeRight(e,n){n.push(null,new Vr(this.length-e-1))}updateHeight(e,n=0,r=!1,i){let o=n+this.length;if(i&&i.from<=n+this.length&&i.more){let a=[],s=Math.max(n,i.from),l=-1;for(i.from>n&&a.push(new Vr(i.from-n-1).updateHeight(e,n));s<=o&&i.more;){let c=e.doc.lineAt(s).length;a.length&&a.push(null);let f=i.heights[i.index++];l==-1?l=f:Math.abs(f-l)>=Lx&&(l=-2);let d=new So(c,f);d.outdated=!1,a.push(d),s+=c+1}s<=o&&a.push(null,new Vr(o-s).updateHeight(e,s));let u=Ii.of(a);return(l<0||Math.abs(u.height-this.height)>=Lx||Math.abs(l-this.heightMetrics(e,n).perLine)>=Lx)&&(e.heightChanged=!0),u}else(r||this.outdated)&&(this.setHeight(e,e.heightForGap(n,n+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class Lwt extends Ii{constructor(e,n,r){super(e.length+n+r.length,e.height+r.height,n|(e.outdated||r.outdated?2:0)),this.left=e,this.right=r,this.size=e.size+r.size}get break(){return this.flags&1}blockAt(e,n,r,i){let o=r+this.left.height;return e<o?this.left.blockAt(e,n,r,i):this.right.blockAt(e,n,o,i+this.left.length+this.break)}lineAt(e,n,r,i,o){let a=i+this.left.height,s=o+this.left.length+this.break,l=n==An.ByHeight?e<a:e<s,u=l?this.left.lineAt(e,n,r,i,o):this.right.lineAt(e,n,r,a,s);if(this.break||(l?u.to<s:u.from>s))return u;let c=n==An.ByPosNoHeight?An.ByPosNoHeight:An.ByPos;return l?u.join(this.right.lineAt(s,c,r,a,s)):this.left.lineAt(s,c,r,i,o).join(u)}forEachLine(e,n,r,i,o,a){let s=i+this.left.height,l=o+this.left.length+this.break;if(this.break)e<l&&this.left.forEachLine(e,n,r,i,o,a),n>=l&&this.right.forEachLine(e,n,r,s,l,a);else{let u=this.lineAt(l,An.ByPos,r,i,o);e<u.from&&this.left.forEachLine(e,u.from-1,r,i,o,a),u.to>=e&&u.from<=n&&a(u),n>u.to&&this.right.forEachLine(u.to+1,n,r,s,l,a)}}replace(e,n,r){let i=this.left.length+this.break;if(n<i)return this.balanced(this.left.replace(e,n,r),this.right);if(e>this.left.length)return this.balanced(this.left,this.right.replace(e-i,n-i,r));let o=[];e>0&&this.decomposeLeft(e,o);let a=o.length;for(let s of r)o.push(s);if(e>0&&Hq(o,a-1),n<this.length){let s=o.length;this.decomposeRight(n,o),Hq(o,s)}return Ii.of(o)}decomposeLeft(e,n){let r=this.left.length;if(e<=r)return this.left.decomposeLeft(e,n);n.push(this.left),this.break&&(r++,e>=r&&n.push(null)),e>r&&this.right.decomposeLeft(e-r,n)}decomposeRight(e,n){let r=this.left.length,i=r+this.break;if(e>=i)return this.right.decomposeRight(e-i,n);e<r&&this.left.decomposeRight(e,n),this.break&&e<i&&n.push(null),n.push(this.right)}balanced(e,n){return e.size>2*n.size||n.size>2*e.size?Ii.of(this.break?[e,null,n]:[e,n]):(this.left=e,this.right=n,this.height=e.height+n.height,this.outdated=e.outdated||n.outdated,this.size=e.size+n.size,this.length=e.length+this.break+n.length,this)}updateHeight(e,n=0,r=!1,i){let{left:o,right:a}=this,s=n+o.length+this.break,l=null;return i&&i.from<=n+o.length&&i.more?l=o=o.updateHeight(e,n,r,i):o.updateHeight(e,n,r),i&&i.from<=s+a.length&&i.more?l=a=a.updateHeight(e,s,r,i):a.updateHeight(e,s,r),l?this.balanced(o,a):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function Hq(t,e){let n,r;t[e]==null&&(n=t[e-1])instanceof Vr&&(r=t[e+1])instanceof Vr&&t.splice(e-1,3,new Vr(n.length+1+r.length))}const Bwt=5;class fB{constructor(e,n){this.pos=e,this.oracle=n,this.nodes=[],this.lineStart=-1,this.lineEnd=-1,this.covering=null,this.writtenTo=e}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(e,n){if(this.lineStart>-1){let r=Math.min(n,this.lineEnd),i=this.nodes[this.nodes.length-1];i instanceof So?i.length+=r-this.pos:(r>this.pos||!this.isCovered)&&this.nodes.push(new So(r-this.pos,-1)),this.writtenTo=r,n>r&&(this.nodes.push(null),this.writtenTo++,this.lineStart=-1)}this.pos=n}point(e,n,r){if(e<n||r.heightRelevant){let i=r.widget?r.widget.estimatedHeight:0,o=r.widget?r.widget.lineBreaks:0;i<0&&(i=this.oracle.lineHeight);let a=n-e;r.block?this.addBlock(new Dpe(a,i,r)):(a||o||i>=Bwt)&&this.addLineDeco(i,o,a)}else n>e&&this.span(e,n);this.lineEnd>-1&&this.lineEnd<this.pos&&(this.lineEnd=this.oracle.doc.lineAt(this.pos).to)}enterLine(){if(this.lineStart>-1)return;let{from:e,to:n}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=n,this.writtenTo<e&&((this.writtenTo<e-1||this.nodes[this.nodes.length-1]==null)&&this.nodes.push(this.blankContent(this.writtenTo,e-1)),this.nodes.push(null)),this.pos>e&&this.nodes.push(new So(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,n){let r=new Vr(n-e);return this.oracle.doc.lineAt(e).to==n&&(r.flags|=4),r}ensureLine(){this.enterLine();let e=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(e instanceof So)return e;let n=new So(0,-1);return this.nodes.push(n),n}addBlock(e){this.enterLine();let n=e.deco;n&&n.startSide>0&&!this.isCovered&&this.ensureLine(),this.nodes.push(e),this.writtenTo=this.pos=this.pos+e.length,n&&n.endSide>0&&(this.covering=e)}addLineDeco(e,n,r){let i=this.ensureLine();i.length+=r,i.collapsed+=r,i.widgetHeight=Math.max(i.widgetHeight,e),i.breaks+=n,this.writtenTo=this.pos=this.pos+r}finish(e){let n=this.nodes.length==0?null:this.nodes[this.nodes.length-1];this.lineStart>-1&&!(n instanceof So)&&!this.isCovered?this.nodes.push(new So(0,-1)):(this.writtenTo<this.pos||n==null)&&this.nodes.push(this.blankContent(this.writtenTo,this.pos));let r=e;for(let i of this.nodes)i instanceof So&&i.updateHeight(this.oracle,r),r+=i?i.length:1;return this.nodes}static build(e,n,r,i){let o=new fB(r,e);return Jt.spans(n,r,i,o,0),o.finish(r)}}function Vwt(t,e,n){let r=new zwt;return Jt.compare(t,e,n,r,0),r.changes}class zwt{constructor(){this.changes=[]}compareRange(){}comparePoint(e,n,r,i){(e<n||r&&r.heightRelevant||i&&i.heightRelevant)&&xN(e,n,this.changes,5)}}function Fwt(t,e){let n=t.getBoundingClientRect(),r=t.ownerDocument,i=r.defaultView||window,o=Math.max(0,n.left),a=Math.min(i.innerWidth,n.right),s=Math.max(0,n.top),l=Math.min(i.innerHeight,n.bottom);for(let u=t.parentNode;u&&u!=r.body;)if(u.nodeType==1){let c=u,f=window.getComputedStyle(c);if((c.scrollHeight>c.clientHeight||c.scrollWidth>c.clientWidth)&&f.overflow!="visible"){let d=c.getBoundingClientRect();o=Math.max(o,d.left),a=Math.min(a,d.right),s=Math.max(s,d.top),l=u==t.parentNode?d.bottom:Math.min(l,d.bottom)}u=f.position=="absolute"||f.position=="fixed"?c.offsetParent:c.parentNode}else if(u.nodeType==11)u=u.host;else break;return{left:o-n.left,right:Math.max(o,a)-n.left,top:s-(n.top+e),bottom:Math.max(s,l)-(n.top+e)}}function Wwt(t,e){let n=t.getBoundingClientRect();return{left:0,right:n.right-n.left,top:e,bottom:n.bottom-(n.top+e)}}class fI{constructor(e,n,r){this.from=e,this.to=n,this.size=r}static same(e,n){if(e.length!=n.length)return!1;for(let r=0;r<e.length;r++){let i=e[r],o=n[r];if(i.from!=o.from||i.to!=o.to||i.size!=o.size)return!1}return!0}draw(e,n){return tt.replace({widget:new Qwt(this.size*(n?e.scaleY:e.scaleX),n)}).range(this.from,this.to)}}class Qwt extends ml{constructor(e,n){super(),this.size=e,this.vertical=n}eq(e){return e.size==this.size&&e.vertical==this.vertical}toDOM(){let e=document.createElement("div");return this.vertical?e.style.height=this.size+"px":(e.style.width=this.size+"px",e.style.height="2px",e.style.display="inline-block"),e}get estimatedHeight(){return this.vertical?this.size:-1}}class Gq{constructor(e){this.state=e,this.pixelViewport={left:0,right:window.innerWidth,top:0,bottom:0},this.inView=!0,this.paddingTop=0,this.paddingBottom=0,this.contentDOMWidth=0,this.contentDOMHeight=0,this.editorHeight=0,this.editorWidth=0,this.scrollTop=0,this.scrolledToBottom=!1,this.scaleX=1,this.scaleY=1,this.scrollAnchorPos=0,this.scrollAnchorHeight=-1,this.scaler=jq,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=Dn.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let n=e.facet(uB).some(r=>typeof r!="function"&&r.class=="cm-lineWrapping");this.heightOracle=new kwt(n),this.stateDeco=e.facet(Ab).filter(r=>typeof r!="function"),this.heightMap=Ii.empty().applyChanges(this.stateDeco,en.empty,this.heightOracle.setDoc(e.doc),[new _a(0,0,0,e.doc.length)]);for(let r=0;r<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());r++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=tt.set(this.lineGaps.map(r=>r.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let e=[this.viewport],{main:n}=this.state.selection;for(let r=0;r<=1;r++){let i=r?n.head:n.anchor;if(!e.some(({from:o,to:a})=>i>=o&&i<=a)){let{from:o,to:a}=this.lineBlockAt(i);e.push(new bw(o,a))}}return this.viewports=e.sort((r,i)=>r.from-i.from),this.updateScaler()}updateScaler(){let e=this.scaler;return this.scaler=this.heightMap.height<=7e6?jq:new dB(this.heightOracle,this.heightMap,this.viewports),e.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,e=>{this.viewportLines.push(B0(e,this.scaler))})}update(e,n=null){this.state=e.state;let r=this.stateDeco;this.stateDeco=this.state.facet(Ab).filter(c=>typeof c!="function");let i=e.changedRanges,o=_a.extendWithRanges(i,Vwt(r,this.stateDeco,e?e.changes:yr.empty(this.state.doc.length))),a=this.heightMap.height,s=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,e.startState.doc,this.heightOracle.setDoc(this.state.doc),o),this.heightMap.height!=a&&(e.flags|=2),s?(this.scrollAnchorPos=e.changes.mapPos(s.from,-1),this.scrollAnchorHeight=s.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let l=o.length?this.mapViewport(this.viewport,e.changes):this.viewport;(n&&(n.range.head<l.from||n.range.head>l.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,n));let u=l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,e.flags|=this.updateForViewport(),(u||!e.changes.empty||e.flags&2)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,e.changes))),e.flags|=this.computeVisibleRanges(),n&&(this.scrollTarget=n),!this.mustEnforceCursorAssoc&&e.selectionSet&&e.view.lineWrapping&&e.state.selection.main.empty&&e.state.selection.main.assoc&&!e.state.facet(ppe)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let n=e.contentDOM,r=window.getComputedStyle(n),i=this.heightOracle,o=r.whiteSpace;this.defaultTextDirection=r.direction=="rtl"?Dn.RTL:Dn.LTR;let a=this.heightOracle.mustRefreshForWrapping(o),s=n.getBoundingClientRect(),l=a||this.mustMeasureContent||this.contentDOMHeight!=s.height;this.contentDOMHeight=s.height,this.mustMeasureContent=!1;let u=0,c=0;if(s.width&&s.height){let{scaleX:w,scaleY:x}=Fhe(n,s);(w>.005&&Math.abs(this.scaleX-w)>.005||x>.005&&Math.abs(this.scaleY-x)>.005)&&(this.scaleX=w,this.scaleY=x,u|=8,a=l=!0)}let f=(parseInt(r.paddingTop)||0)*this.scaleY,d=(parseInt(r.paddingBottom)||0)*this.scaleY;(this.paddingTop!=f||this.paddingBottom!=d)&&(this.paddingTop=f,this.paddingBottom=d,u|=10),this.editorWidth!=e.scrollDOM.clientWidth&&(i.lineWrapping&&(l=!0),this.editorWidth=e.scrollDOM.clientWidth,u|=8);let p=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=p&&(this.scrollAnchorHeight=-1,this.scrollTop=p),this.scrolledToBottom=Hhe(e.scrollDOM);let v=(this.printing?Wwt:Fwt)(n,this.paddingTop),g=v.top-this.pixelViewport.top,m=v.bottom-this.pixelViewport.bottom;this.pixelViewport=v;let y=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(y!=this.inView&&(this.inView=y,y&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;let b=s.width;if((this.contentDOMWidth!=b||this.editorHeight!=e.scrollDOM.clientHeight)&&(this.contentDOMWidth=s.width,this.editorHeight=e.scrollDOM.clientHeight,u|=8),l){let w=e.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(w)&&(a=!0),a||i.lineWrapping&&Math.abs(b-this.contentDOMWidth)>i.charWidth){let{lineHeight:x,charWidth:S,textHeight:T}=e.docView.measureTextSize();a=x>0&&i.refresh(o,x,S,T,b/S,w),a&&(e.docView.minWidth=0,u|=8)}g>0&&m>0?c=Math.max(g,m):g<0&&m<0&&(c=Math.min(g,m)),i.heightChanged=!1;for(let x of this.viewports){let S=x.from==this.viewport.from?w:e.docView.measureVisibleLineHeights(x);this.heightMap=(a?Ii.empty().applyChanges(this.stateDeco,en.empty,this.heightOracle,[new _a(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(i,0,a,new Nwt(x.from,S))}i.heightChanged&&(u|=2)}let O=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return O&&(u&2&&(u|=this.updateScaler()),this.viewport=this.getViewport(c,this.scrollTarget),u|=this.updateForViewport()),(u&2||O)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(a?[]:this.lineGaps,e)),u|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,e.docView.enforceCursorAssoc()),u}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(e,n){let r=.5-Math.max(-.5,Math.min(.5,e/1e3/2)),i=this.heightMap,o=this.heightOracle,{visibleTop:a,visibleBottom:s}=this,l=new bw(i.lineAt(a-r*1e3,An.ByHeight,o,0,0).from,i.lineAt(s+(1-r)*1e3,An.ByHeight,o,0,0).to);if(n){let{head:u}=n.range;if(u<l.from||u>l.to){let c=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),f=i.lineAt(u,An.ByPos,o,0,0),d;n.y=="center"?d=(f.top+f.bottom)/2-c/2:n.y=="start"||n.y=="nearest"&&u<l.from?d=f.top:d=f.bottom-c,l=new bw(i.lineAt(d-1e3/2,An.ByHeight,o,0,0).from,i.lineAt(d+c+1e3/2,An.ByHeight,o,0,0).to)}}return l}mapViewport(e,n){let r=n.mapPos(e.from,-1),i=n.mapPos(e.to,1);return new bw(this.heightMap.lineAt(r,An.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(i,An.ByPos,this.heightOracle,0,0).to)}viewportIsAppropriate({from:e,to:n},r=0){if(!this.inView)return!0;let{top:i}=this.heightMap.lineAt(e,An.ByPos,this.heightOracle,0,0),{bottom:o}=this.heightMap.lineAt(n,An.ByPos,this.heightOracle,0,0),{visibleTop:a,visibleBottom:s}=this;return(e==0||i<=a-Math.max(10,Math.min(-r,250)))&&(n==this.state.doc.length||o>=s+Math.max(10,Math.min(r,250)))&&i>a-2*1e3&&o<s+2*1e3}mapLineGaps(e,n){if(!e.length||n.empty)return e;let r=[];for(let i of e)n.touchesRange(i.from,i.to)||r.push(new fI(n.mapPos(i.from),n.mapPos(i.to),i.size));return r}ensureLineGaps(e,n){let r=this.heightOracle.lineWrapping,i=r?1e4:2e3,o=i>>1,a=i<<1;if(this.defaultTextDirection!=Dn.LTR&&!r)return[];let s=[],l=(c,f,d,p)=>{if(f-c<o)return;let v=this.state.selection.main,g=[v.from];v.empty||g.push(v.to);for(let y of g)if(y>c&&y<f){l(c,y-10,d,p),l(y+10,f,d,p);return}let m=Gwt(e,y=>y.from>=d.from&&y.to<=d.to&&Math.abs(y.from-c)<o&&Math.abs(y.to-f)<o&&!g.some(b=>y.from<b&&y.to>b));if(!m){if(f<d.to&&n&&r&&n.visibleRanges.some(y=>y.from<=f&&y.to>=f)){let y=n.moveToLineBoundary(Te.cursor(f),!1,!0).head;y>c&&(f=y)}m=new fI(c,f,this.gapSize(d,c,f,p))}s.push(m)},u=c=>{if(c.length<a||c.type!=Mi.Text)return;let f=Hwt(c.from,c.to,this.stateDeco);if(f.total<a)return;let d=this.scrollTarget?this.scrollTarget.range.head:null,p,v;if(r){let g=i/this.heightOracle.lineLength*this.heightOracle.lineHeight,m,y;if(d!=null){let b=Ow(f,d),O=((this.visibleBottom-this.visibleTop)/2+g)/c.height;m=b-O,y=b+O}else m=(this.visibleTop-c.top-g)/c.height,y=(this.visibleBottom-c.top+g)/c.height;p=_w(f,m),v=_w(f,y)}else{let g=f.total*this.heightOracle.charWidth,m=i*this.heightOracle.charWidth,y,b;if(d!=null){let O=Ow(f,d),w=((this.pixelViewport.right-this.pixelViewport.left)/2+m)/g;y=O-w,b=O+w}else y=(this.pixelViewport.left-m)/g,b=(this.pixelViewport.right+m)/g;p=_w(f,y),v=_w(f,b)}p>c.from&&l(c.from,p,c,f),v<c.to&&l(v,c.to,c,f)};for(let c of this.viewportLines)Array.isArray(c.type)?c.type.forEach(u):u(c);return s}gapSize(e,n,r,i){let o=Ow(i,r)-Ow(i,n);return this.heightOracle.lineWrapping?e.height*o:i.total*this.heightOracle.charWidth*o}updateLineGaps(e){fI.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=tt.set(e.map(n=>n.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let e=this.stateDeco;this.lineGaps.length&&(e=e.concat(this.lineGapDeco));let n=[];Jt.spans(e,this.viewport.from,this.viewport.to,{span(i,o){n.push({from:i,to:o})},point(){}},20);let r=n.length!=this.visibleRanges.length||this.visibleRanges.some((i,o)=>i.from!=n[o].from||i.to!=n[o].to);return this.visibleRanges=n,r?4:0}lineBlockAt(e){return e>=this.viewport.from&&e<=this.viewport.to&&this.viewportLines.find(n=>n.from<=e&&n.to>=e)||B0(this.heightMap.lineAt(e,An.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(e){return e>=this.viewportLines[0].top&&e<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(n=>n.top<=e&&n.bottom>=e)||B0(this.heightMap.lineAt(this.scaler.fromDOM(e),An.ByHeight,this.heightOracle,0,0),this.scaler)}scrollAnchorAt(e){let n=this.lineBlockAtHeight(e+8);return n.from>=this.viewport.from||this.viewportLines[0].top-e>200?n:this.viewportLines[0]}elementAtHeight(e){return B0(this.heightMap.blockAt(this.scaler.fromDOM(e),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class bw{constructor(e,n){this.from=e,this.to=n}}function Hwt(t,e,n){let r=[],i=t,o=0;return Jt.spans(n,t,e,{span(){},point(a,s){a>i&&(r.push({from:i,to:a}),o+=a-i),i=s}},20),i<e&&(r.push({from:i,to:e}),o+=e-i),{total:o,ranges:r}}function _w({total:t,ranges:e},n){if(n<=0)return e[0].from;if(n>=1)return e[e.length-1].to;let r=Math.floor(t*n);for(let i=0;;i++){let{from:o,to:a}=e[i],s=a-o;if(r<=s)return o+r;r-=s}}function Ow(t,e){let n=0;for(let{from:r,to:i}of t.ranges){if(e<=i){n+=e-r;break}n+=i-r}return n/t.total}function Gwt(t,e){for(let n of t)if(e(n))return n}const jq={toDOM(t){return t},fromDOM(t){return t},scale:1,eq(t){return t==this}};class dB{constructor(e,n,r){let i=0,o=0,a=0;this.viewports=r.map(({from:s,to:l})=>{let u=n.lineAt(s,An.ByPos,e,0,0).top,c=n.lineAt(l,An.ByPos,e,0,0).bottom;return i+=c-u,{from:s,to:l,top:u,bottom:c,domTop:0,domBottom:0}}),this.scale=(7e6-i)/(n.height-i);for(let s of this.viewports)s.domTop=a+(s.top-o)*this.scale,a=s.domBottom=s.domTop+(s.bottom-s.top),o=s.bottom}toDOM(e){for(let n=0,r=0,i=0;;n++){let o=n<this.viewports.length?this.viewports[n]:null;if(!o||e<o.top)return i+(e-r)*this.scale;if(e<=o.bottom)return o.domTop+(e-o.top);r=o.bottom,i=o.domBottom}}fromDOM(e){for(let n=0,r=0,i=0;;n++){let o=n<this.viewports.length?this.viewports[n]:null;if(!o||e<o.domTop)return r+(e-i)/this.scale;if(e<=o.domBottom)return o.top+(e-o.domTop);r=o.bottom,i=o.domBottom}}eq(e){return e instanceof dB?this.scale==e.scale&&this.viewports.length==e.viewports.length&&this.viewports.every((n,r)=>n.from==e.viewports[r].from&&n.to==e.viewports[r].to):!1}}function B0(t,e){if(e.scale==1)return t;let n=e.toDOM(t.top),r=e.toDOM(t.bottom);return new Hs(t.from,t.length,n,r-n,Array.isArray(t._content)?t._content.map(i=>B0(i,e)):t._content)}const ww=Ye.define({combine:t=>t.join(" ")}),MN=Ye.define({combine:t=>t.indexOf(!0)>-1}),IN=Vc.newName(),Rpe=Vc.newName(),kpe=Vc.newName(),Npe={"&light":"."+Rpe,"&dark":"."+kpe};function DN(t,e,n){return new Vc(e,{finish(r){return/&/.test(r)?r.replace(/&\w*/,i=>{if(i=="&")return t;if(!n||!n[i])throw new RangeError(`Unsupported selector: ${i}`);return n[i]}):t+" "+r}})}const jwt=DN("."+IN,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",minHeight:"100%",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},".cm-iso":{unicodeBidi:"isolate"},".cm-announced":{position:"fixed",top:"-10000px"},"@media print":{".cm-announced":{display:"none"}},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",insetInlineStart:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="20"><path stroke="%23888" stroke-width="1" fill="none" d="M1 10H196L190 5M190 15L196 10M197 4L197 16"/></svg>')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},Npe),V0="￿";class Uwt{constructor(e,n){this.points=e,this.text="",this.lineSeparator=n.facet(Wt.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=V0}readRange(e,n){if(!e)return this;let r=e.parentNode;for(let i=e;;){this.findPointBefore(r,i);let o=this.text.length;this.readNode(i);let a=i.nextSibling;if(a==n)break;let s=bn.get(i),l=bn.get(a);(s&&l?s.breakAfter:(s?s.breakAfter:RC(i))||RC(a)&&(i.nodeName!="BR"||i.cmIgnore)&&this.text.length>o)&&this.lineBreak(),i=a}return this.findPointBefore(r,n),this}readTextNode(e){let n=e.nodeValue;for(let r of this.points)r.node==e&&(r.pos=this.text.length+Math.min(r.offset,n.length));for(let r=0,i=this.lineSeparator?null:/\r\n?|\n/g;;){let o=-1,a=1,s;if(this.lineSeparator?(o=n.indexOf(this.lineSeparator,r),a=this.lineSeparator.length):(s=i.exec(n))&&(o=s.index,a=s[0].length),this.append(n.slice(r,o<0?n.length:o)),o<0)break;if(this.lineBreak(),a>1)for(let l of this.points)l.node==e&&l.pos>this.text.length&&(l.pos-=a-1);r=o+a}}readNode(e){if(e.cmIgnore)return;let n=bn.get(e),r=n&&n.overrideDOMText;if(r!=null){this.findPointInside(e,r.length);for(let i=r.iter();!i.next().done;)i.lineBreak?this.lineBreak():this.append(i.value)}else e.nodeType==3?this.readTextNode(e):e.nodeName=="BR"?e.nextSibling&&this.lineBreak():e.nodeType==1&&this.readRange(e.firstChild,null)}findPointBefore(e,n){for(let r of this.points)r.node==e&&e.childNodes[r.offset]==n&&(r.pos=this.text.length)}findPointInside(e,n){for(let r of this.points)(e.nodeType==3?r.node==e:e.contains(r.node))&&(r.pos=this.text.length+(Zwt(e,r.node,r.offset)?n:0))}}function Zwt(t,e,n){for(;;){if(!e||n<fu(e))return!1;if(e==t)return!0;n=gh(e)+1,e=e.parentNode}}class Uq{constructor(e,n){this.node=e,this.offset=n,this.pos=-1}}class Xwt{constructor(e,n,r,i){this.typeOver=i,this.bounds=null,this.text="",this.domChanged=n>-1;let{impreciseHead:o,impreciseAnchor:a}=e.docView;if(e.state.readOnly&&n>-1)this.newSel=null;else if(n>-1&&(this.bounds=e.docView.domBoundsAround(n,r,0))){let s=o||a?[]:Kwt(e),l=new Uwt(s,e.state);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=Jwt(s,this.bounds.from)}else{let s=e.observer.selectionRange,l=o&&o.node==s.focusNode&&o.offset==s.focusOffset||!mN(e.contentDOM,s.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(s.focusNode,s.focusOffset),u=a&&a.node==s.anchorNode&&a.offset==s.anchorOffset||!mN(e.contentDOM,s.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(s.anchorNode,s.anchorOffset),c=e.viewport;if((Xe.ios||Xe.chrome)&&e.state.selection.main.empty&&l!=u&&(c.from>0||c.to<e.state.doc.length)){let f=Math.min(l,u),d=Math.max(l,u),p=c.from-f,v=c.to-d;(p==0||p==1||f==0)&&(v==0||v==-1||d==e.state.doc.length)&&(l=0,u=e.state.doc.length)}this.newSel=Te.single(u,l)}}}function Lpe(t,e){let n,{newSel:r}=e,i=t.state.selection.main,o=t.inputState.lastKeyTime>Date.now()-100?t.inputState.lastKeyCode:-1;if(e.bounds){let{from:a,to:s}=e.bounds,l=i.from,u=null;(o===8||Xe.android&&e.text.length<s-a)&&(l=i.to,u="end");let c=qwt(t.state.doc.sliceString(a,s,V0),e.text,l-a,u);c&&(Xe.chrome&&o==13&&c.toB==c.from+2&&e.text.slice(c.from,c.toB)==V0+V0&&c.toB--,n={from:a+c.from,to:a+c.toA,insert:en.of(e.text.slice(c.from,c.toB).split(V0))})}else r&&(!t.hasFocus&&t.state.facet(Ju)||r.main.eq(i))&&(r=null);if(!n&&!r)return!1;if(!n&&e.typeOver&&!i.empty&&r&&r.main.empty?n={from:i.from,to:i.to,insert:t.state.doc.slice(i.from,i.to)}:n&&n.from>=i.from&&n.to<=i.to&&(n.from!=i.from||n.to!=i.to)&&i.to-i.from-(n.to-n.from)<=4?n={from:i.from,to:i.to,insert:t.state.doc.slice(i.from,n.from).append(n.insert).append(t.state.doc.slice(n.to,i.to))}:(Xe.mac||Xe.android)&&n&&n.from==n.to&&n.from==i.head-1&&/^\. ?$/.test(n.insert.toString())&&t.contentDOM.getAttribute("autocorrect")=="off"?(r&&n.insert.length==2&&(r=Te.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:en.of([" "])}):Xe.chrome&&n&&n.from==n.to&&n.from==i.head&&n.insert.toString()==`
  401. `&&t.lineWrapping&&(r&&(r=Te.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:en.of([" "])}),n)return Bpe(t,n,r,o);if(r&&!r.main.eq(i)){let a=!1,s="select";return t.inputState.lastSelectionTime>Date.now()-50&&(t.inputState.lastSelectionOrigin=="select"&&(a=!0),s=t.inputState.lastSelectionOrigin),t.dispatch({selection:r,scrollIntoView:a,userEvent:s}),!0}else return!1}function Bpe(t,e,n,r=-1){if(Xe.ios&&t.inputState.flushIOSKey(e))return!0;let i=t.state.selection.main;if(Xe.android&&(e.to==i.to&&(e.from==i.from||e.from==i.from-1&&t.state.sliceDoc(e.from,i.from)==" ")&&e.insert.length==1&&e.insert.lines==2&&yv(t.contentDOM,"Enter",13)||(e.from==i.from-1&&e.to==i.to&&e.insert.length==0||r==8&&e.insert.length<e.to-e.from&&e.to>i.head)&&yv(t.contentDOM,"Backspace",8)||e.from==i.from&&e.to==i.to+1&&e.insert.length==0&&yv(t.contentDOM,"Delete",46)))return!0;let o=e.insert.toString();t.inputState.composing>=0&&t.inputState.composing++;let a,s=()=>a||(a=Ywt(t,e,n));return t.state.facet(fpe).some(l=>l(t,e.from,e.to,o,s))||t.dispatch(s()),!0}function Ywt(t,e,n){let r,i=t.state,o=i.selection.main;if(e.from>=o.from&&e.to<=o.to&&e.to-e.from>=(o.to-o.from)/3&&(!n||n.main.empty&&n.main.from==e.from+e.insert.length)&&t.inputState.composing<0){let s=o.from<e.from?i.sliceDoc(o.from,e.from):"",l=o.to>e.to?i.sliceDoc(e.to,o.to):"";r=i.replaceSelection(t.state.toText(s+e.insert.sliceString(0,void 0,t.state.lineBreak)+l))}else{let s=i.changes(e),l=n&&n.main.to<=s.newLength?n.main:void 0;if(i.selection.ranges.length>1&&t.inputState.composing>=0&&e.to<=o.to&&e.to>=o.to-10){let u=t.state.sliceDoc(e.from,e.to),c,f=n&&wpe(t,n.main.head);if(f){let v=e.insert.length-(e.to-e.from);c={from:f.from,to:f.to-v}}else c=t.state.doc.lineAt(o.head);let d=o.to-e.to,p=o.to-o.from;r=i.changeByRange(v=>{if(v.from==o.from&&v.to==o.to)return{changes:s,range:l||v.map(s)};let g=v.to-d,m=g-u.length;if(v.to-v.from!=p||t.state.sliceDoc(m,g)!=u||v.to>=c.from&&v.from<=c.to)return{range:v};let y=i.changes({from:m,to:g,insert:e.insert}),b=v.to-o.to;return{changes:y,range:l?Te.range(Math.max(0,l.anchor+b),Math.max(0,l.head+b)):v.map(y)}})}else r={changes:s,selection:l&&i.selection.replaceRange(l)}}let a="input.type";return(t.composing||t.inputState.compositionPendingChange&&t.inputState.compositionEndedAt>Date.now()-50)&&(t.inputState.compositionPendingChange=!1,a+=".compose",t.inputState.compositionFirstChange&&(a+=".start",t.inputState.compositionFirstChange=!1)),i.update(r,{userEvent:a,scrollIntoView:!0})}function qwt(t,e,n,r){let i=Math.min(t.length,e.length),o=0;for(;o<i&&t.charCodeAt(o)==e.charCodeAt(o);)o++;if(o==i&&t.length==e.length)return null;let a=t.length,s=e.length;for(;a>0&&s>0&&t.charCodeAt(a-1)==e.charCodeAt(s-1);)a--,s--;if(r=="end"){let l=Math.max(0,o-Math.min(a,s));n-=a+l-o}if(a<o&&t.length<e.length){let l=n<=o&&n>=a?o-n:0;o-=l,s=o+(s-a),a=o}else if(s<o){let l=n<=o&&n>=s?o-n:0;o-=l,a=o+(a-s),s=o}return{from:o,toA:a,toB:s}}function Kwt(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}=t.observer.selectionRange;return n&&(e.push(new Uq(n,r)),(i!=n||o!=r)&&e.push(new Uq(i,o))),e}function Jwt(t,e){if(t.length==0)return null;let n=t[0].pos,r=t.length==2?t[1].pos:n;return n>-1&&r>-1?Te.single(n+e,r+e):null}const ext={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},dI=Xe.ie&&Xe.ie_version<=11;class txt{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new VOt,this.selectionChanged=!1,this.delayedFlush=-1,this.resizeTimeout=-1,this.queue=[],this.delayedAndroidKey=null,this.flushingAndroidKey=-1,this.lastChange=0,this.scrollTargets=[],this.intersection=null,this.resizeScroll=null,this.intersecting=!1,this.gapIntersection=null,this.gaps=[],this.printQuery=null,this.parentCheck=-1,this.dom=e.contentDOM,this.observer=new MutationObserver(n=>{for(let r of n)this.queue.push(r);(Xe.ie&&Xe.ie_version<=11||Xe.ios&&e.composing)&&n.some(r=>r.type=="childList"&&r.removedNodes.length||r.type=="characterData"&&r.oldValue.length>r.target.nodeValue.length)?this.flushSoon():this.flush()}),window.EditContext&&e.constructor.EDIT_CONTEXT!==!1&&!(Xe.chrome&&Xe.chrome_version<126)&&(this.editContext=new rxt(e),e.state.facet(Ju)&&(e.contentDOM.editContext=this.editContext.editContext)),dI&&(this.onCharData=n=>{this.queue.push({target:n.target,type:"characterData",oldValue:n.prevValue}),this.flushSoon()}),this.onSelectionChange=this.onSelectionChange.bind(this),this.onResize=this.onResize.bind(this),this.onPrint=this.onPrint.bind(this),this.onScroll=this.onScroll.bind(this),window.matchMedia&&(this.printQuery=window.matchMedia("print")),typeof ResizeObserver=="function"&&(this.resizeScroll=new ResizeObserver(()=>{var n;((n=this.view.docView)===null||n===void 0?void 0:n.lastUpdate)<Date.now()-75&&this.onResize()}),this.resizeScroll.observe(e.scrollDOM)),this.addWindowListeners(this.win=e.win),this.start(),typeof IntersectionObserver=="function"&&(this.intersection=new IntersectionObserver(n=>{this.parentCheck<0&&(this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3)),n.length>0&&n[n.length-1].intersectionRatio>0!=this.intersecting&&(this.intersecting=!this.intersecting,this.intersecting!=this.view.inView&&this.onScrollChanged(document.createEvent("Event")))},{threshold:[0,.001]}),this.intersection.observe(this.dom),this.gapIntersection=new IntersectionObserver(n=>{n.length>0&&n[n.length-1].intersectionRatio>0&&this.onScrollChanged(document.createEvent("Event"))},{})),this.listenForScroll(),this.readSelectionRange()}onScrollChanged(e){this.view.inputState.runHandlers("scroll",e),this.intersecting&&this.view.measure()}onScroll(e){this.intersecting&&this.flush(!1),this.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(e)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(e){e.type=="change"&&!e.matches||(this.view.viewState.printing=!0,this.view.measure(),setTimeout(()=>{this.view.viewState.printing=!1,this.view.requestMeasure()},500))}updateGaps(e){if(this.gapIntersection&&(e.length!=this.gaps.length||this.gaps.some((n,r)=>n!=e[r]))){this.gapIntersection.disconnect();for(let n of e)this.gapIntersection.observe(n);this.gaps=e}}onSelectionChange(e){let n=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:r}=this,i=this.selectionRange;if(r.state.facet(Ju)?r.root.activeElement!=this.dom:!kx(r.dom,i))return;let o=i.anchorNode&&r.docView.nearest(i.anchorNode);if(o&&o.ignoreEvent(e)){n||(this.selectionChanged=!1);return}(Xe.ie&&Xe.ie_version<=11||Xe.android&&Xe.chrome)&&!r.state.selection.main.empty&&i.focusNode&&Cy(i.focusNode,i.focusOffset,i.anchorNode,i.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,n=$b(e.root);if(!n)return!1;let r=Xe.safari&&e.root.nodeType==11&&kOt(this.dom.ownerDocument)==this.dom&&nxt(this.view,n)||n;if(!r||this.selectionRange.eq(r))return!1;let i=kx(this.dom,r);return i&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&FOt(this.dom,r)?(this.view.inputState.lastFocusTime=0,e.docView.updateSelection(),!1):(this.selectionRange.setRange(r),i&&(this.selectionChanged=!0),!0)}setSelectionRange(e,n){this.selectionRange.set(e.node,e.offset,n.node,n.offset),this.selectionChanged=!1}clearSelectionRange(){this.selectionRange.set(null,0,null,0)}listenForScroll(){this.parentCheck=-1;let e=0,n=null;for(let r=this.dom;r;)if(r.nodeType==1)!n&&e<this.scrollTargets.length&&this.scrollTargets[e]==r?e++:n||(n=this.scrollTargets.slice(0,e)),n&&n.push(r),r=r.assignedSlot||r.parentNode;else if(r.nodeType==11)r=r.host;else break;if(e<this.scrollTargets.length&&!n&&(n=this.scrollTargets.slice(0,e)),n){for(let r of this.scrollTargets)r.removeEventListener("scroll",this.onScroll);for(let r of this.scrollTargets=n)r.addEventListener("scroll",this.onScroll)}}ignore(e){if(!this.active)return e();try{return this.stop(),e()}finally{this.start(),this.clear()}}start(){this.active||(this.observer.observe(this.dom,ext),dI&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),dI&&this.dom.removeEventListener("DOMCharacterDataModified",this.onCharData))}clear(){this.processRecords(),this.queue.length=0,this.selectionChanged=!1}delayAndroidKey(e,n){var r;if(!this.delayedAndroidKey){let i=()=>{let o=this.delayedAndroidKey;o&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=o.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&o.force&&yv(this.dom,o.key,o.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(i)}(!this.delayedAndroidKey||e=="Enter")&&(this.delayedAndroidKey={key:e,keyCode:n,force:this.lastChange<Date.now()-50||!!(!((r=this.delayedAndroidKey)===null||r===void 0)&&r.force)})}clearDelayedAndroidKey(){this.win.cancelAnimationFrame(this.flushingAndroidKey),this.delayedAndroidKey=null,this.flushingAndroidKey=-1}flushSoon(){this.delayedFlush<0&&(this.delayedFlush=this.view.win.requestAnimationFrame(()=>{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let e of this.observer.takeRecords())this.queue.push(e);return this.queue}processRecords(){let e=this.pendingRecords();e.length&&(this.queue=[]);let n=-1,r=-1,i=!1;for(let o of e){let a=this.readMutation(o);a&&(a.typeOver&&(i=!0),n==-1?{from:n,to:r}=a:(n=Math.min(a.from,n),r=Math.max(a.to,r)))}return{from:n,to:r,typeOver:i}}readChange(){let{from:e,to:n,typeOver:r}=this.processRecords(),i=this.selectionChanged&&kx(this.dom,this.selectionRange);if(e<0&&!i)return null;e>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let o=new Xwt(this.view,e,n,r);return this.view.docView.domChanged={newSel:o.newSel?o.newSel.main:null},o}flush(e=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;e&&this.readSelectionRange();let n=this.readChange();if(!n)return this.view.requestMeasure(),!1;let r=this.view.state,i=Lpe(this.view,n);return this.view.state==r&&(n.domChanged||n.newSel&&!n.newSel.main.eq(this.view.state.selection.main))&&this.view.update([]),i}readMutation(e){let n=this.view.docView.nearest(e.target);if(!n||n.ignoreMutation(e))return null;if(n.markDirty(e.type=="attributes"),e.type=="attributes"&&(n.flags|=4),e.type=="childList"){let r=Zq(n,e.previousSibling||e.target.previousSibling,-1),i=Zq(n,e.nextSibling||e.target.nextSibling,1);return{from:r?n.posAfter(r):n.posAtStart,to:i?n.posBefore(i):n.posAtEnd,typeOver:!1}}else return e.type=="characterData"?{from:n.posAtStart,to:n.posAtEnd,typeOver:e.target.nodeValue==e.oldValue}:null}setWindow(e){e!=this.win&&(this.removeWindowListeners(this.win),this.win=e,this.addWindowListeners(this.win))}addWindowListeners(e){e.addEventListener("resize",this.onResize),this.printQuery?this.printQuery.addEventListener("change",this.onPrint):e.addEventListener("beforeprint",this.onPrint),e.addEventListener("scroll",this.onScroll),e.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(e){e.removeEventListener("scroll",this.onScroll),e.removeEventListener("resize",this.onResize),this.printQuery?this.printQuery.removeEventListener("change",this.onPrint):e.removeEventListener("beforeprint",this.onPrint),e.document.removeEventListener("selectionchange",this.onSelectionChange)}update(e){this.editContext&&(this.editContext.update(e),e.startState.facet(Ju)!=e.state.facet(Ju)&&(e.view.contentDOM.editContext=e.state.facet(Ju)?this.editContext.editContext:null))}destroy(){var e,n,r;this.stop(),(e=this.intersection)===null||e===void 0||e.disconnect(),(n=this.gapIntersection)===null||n===void 0||n.disconnect(),(r=this.resizeScroll)===null||r===void 0||r.disconnect();for(let i of this.scrollTargets)i.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win),clearTimeout(this.parentCheck),clearTimeout(this.resizeTimeout),this.win.cancelAnimationFrame(this.delayedFlush),this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function Zq(t,e,n){for(;e;){let r=bn.get(e);if(r&&r.parent==t)return r;let i=e.parentNode;e=i!=t.dom?i:n>0?e.nextSibling:e.previousSibling}return null}function Xq(t,e){let n=e.startContainer,r=e.startOffset,i=e.endContainer,o=e.endOffset,a=t.docView.domAtPos(t.state.selection.main.anchor);return Cy(a.node,a.offset,i,o)&&([n,r,i,o]=[i,o,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:o}}function nxt(t,e){if(e.getComposedRanges){let i=e.getComposedRanges(t.root)[0];if(i)return Xq(t,i)}let n=null;function r(i){i.preventDefault(),i.stopImmediatePropagation(),n=i.getTargetRanges()[0]}return t.contentDOM.addEventListener("beforeinput",r,!0),t.dom.ownerDocument.execCommand("indent"),t.contentDOM.removeEventListener("beforeinput",r,!0),n?Xq(t,n):null}class rxt{constructor(e){this.from=0,this.to=0,this.pendingContextChange=null,this.resetRange(e.state);let n=this.editContext=new window.EditContext({text:e.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,e.state.selection.main.anchor))),selectionEnd:this.toContextPos(e.state.selection.main.head)});n.addEventListener("textupdate",r=>{let{anchor:i}=e.state.selection.main,o={from:this.toEditorPos(r.updateRangeStart),to:this.toEditorPos(r.updateRangeEnd),insert:en.of(r.text.split(`
  402. `))};o.from==this.from&&i<this.from?o.from=i:o.to==this.to&&i>this.to&&(o.to=i),!(o.from==o.to&&!o.insert.length)&&(this.pendingContextChange=o,Bpe(e,o,Te.single(this.toEditorPos(r.selectionStart),this.toEditorPos(r.selectionEnd))),this.pendingContextChange&&this.revertPending(e.state))}),n.addEventListener("characterboundsupdate",r=>{let i=[],o=null;for(let a=this.toEditorPos(r.rangeStart),s=this.toEditorPos(r.rangeEnd);a<s;a++){let l=e.coordsForChar(a);o=l&&new DOMRect(l.left,l.top,l.right-l.left,l.bottom-l.top)||o||new DOMRect,i.push(o)}n.updateCharacterBounds(r.rangeStart,i)}),n.addEventListener("textformatupdate",r=>{let i=[];for(let o of r.getTextFormats()){let a=o.underlineStyle,s=o.underlineThickness;if(a!="None"&&s!="None"){let l=`text-decoration: underline ${a=="Dashed"?"dashed ":a=="Squiggle"?"wavy ":""}${s=="Thin"?1:2}px`;i.push(tt.mark({attributes:{style:l}}).range(this.toEditorPos(o.rangeStart),this.toEditorPos(o.rangeEnd)))}}e.dispatch({effects:gpe.of(tt.set(i))})}),n.addEventListener("compositionstart",()=>{e.inputState.composing<0&&(e.inputState.composing=0,e.inputState.compositionFirstChange=!0)}),n.addEventListener("compositionend",()=>{e.inputState.composing=-1,e.inputState.compositionFirstChange=null}),this.measureReq={read:r=>{this.editContext.updateControlBounds(r.contentDOM.getBoundingClientRect());let i=$b(r.root);i&&i.rangeCount&&this.editContext.updateSelectionBounds(i.getRangeAt(0).getBoundingClientRect())}}}applyEdits(e){let n=0,r=!1,i=this.pendingContextChange;return e.changes.iterChanges((o,a,s,l,u)=>{if(r)return;let c=u.length-(a-o);if(i&&a>=i.to)if(i.from==o&&i.to==a&&i.insert.eq(u)){i=this.pendingContextChange=null,n+=c,this.to+=c;return}else i=null,this.revertPending(e.state);if(o+=n,a+=n,a<=this.from)this.from+=c,this.to+=c;else if(o<this.to){if(o<this.from||a>this.to||this.to-this.from+u.length>3e4){r=!0;return}this.editContext.updateText(this.toContextPos(o),this.toContextPos(a),u.toString()),this.to+=c}n+=c}),i&&!r&&this.revertPending(e.state),!r}update(e){!this.applyEdits(e)||!this.rangeIsValid(e.state)?(this.pendingContextChange=null,this.resetRange(e.state),this.editContext.updateText(0,this.editContext.text.length,e.state.doc.sliceString(this.from,this.to)),this.setSelection(e.state)):(e.docChanged||e.selectionSet)&&this.setSelection(e.state),(e.geometryChanged||e.docChanged||e.selectionSet)&&e.view.requestMeasure(this.measureReq)}resetRange(e){let{head:n}=e.selection.main;this.from=Math.max(0,n-1e4),this.to=Math.min(e.doc.length,n+1e4)}revertPending(e){let n=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(n.from),this.toContextPos(n.to+n.insert.length),e.doc.sliceString(n.from,n.to))}setSelection(e){let{main:n}=e.selection,r=this.toContextPos(Math.max(this.from,Math.min(this.to,n.anchor))),i=this.toContextPos(n.head);(this.editContext.selectionStart!=r||this.editContext.selectionEnd!=i)&&this.editContext.updateSelection(r,i)}rangeIsValid(e){let{head:n}=e.selection.main;return!(this.from>0&&n-this.from<500||this.to<e.doc.length&&this.to-n<500||this.to-this.from>1e4*3)}toEditorPos(e){return e+this.from}toContextPos(e){return e-this.from}}class He{get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}constructor(e={}){this.plugins=[],this.pluginMap=new Map,this.editorAttrs={},this.contentAttrs={},this.bidiCache=[],this.destroyed=!1,this.updateState=2,this.measureScheduled=-1,this.measureRequests=[],this.contentDOM=document.createElement("div"),this.scrollDOM=document.createElement("div"),this.scrollDOM.tabIndex=-1,this.scrollDOM.className="cm-scroller",this.scrollDOM.appendChild(this.contentDOM),this.announceDOM=document.createElement("div"),this.announceDOM.className="cm-announced",this.announceDOM.setAttribute("aria-live","polite"),this.dom=document.createElement("div"),this.dom.appendChild(this.announceDOM),this.dom.appendChild(this.scrollDOM),e.parent&&e.parent.appendChild(this.dom);let{dispatch:n}=e;this.dispatchTransactions=e.dispatchTransactions||n&&(r=>r.forEach(i=>n(i,this)))||(r=>this.update(r)),this.dispatch=this.dispatch.bind(this),this._root=e.root||zOt(e.parent)||document,this.viewState=new Gq(e.state||Wt.create(e)),e.scrollTo&&e.scrollTo.is(gw)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(N0).map(r=>new lI(r));for(let r of this.plugins)r.update(this);this.observer=new txt(this),this.inputState=new ywt(this),this.inputState.ensureHandlers(this.plugins),this.docView=new Pq(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...e){let n=e.length==1&&e[0]instanceof cr?e:e.length==1&&Array.isArray(e[0])?e[0]:[this.state.update(...e)];this.dispatchTransactions(n,this)}update(e){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let n=!1,r=!1,i,o=this.state;for(let d of e){if(d.startState!=o)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");o=d.state}if(this.destroyed){this.viewState.state=o;return}let a=this.hasFocus,s=0,l=null;e.some(d=>d.annotation(Epe))?(this.inputState.notifiedFocused=a,s=1):a!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=a,l=Mpe(o,a),l||(s=1));let u=this.observer.delayedAndroidKey,c=null;if(u?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(o.doc)||!this.state.selection.eq(o.selection))&&(c=null)):this.observer.clear(),o.facet(Wt.phrases)!=this.state.facet(Wt.phrases))return this.setState(o);i=NC.create(this,o,e),i.flags|=s;let f=this.viewState.scrollTarget;try{this.updateState=2;for(let d of e){if(f&&(f=f.map(d.changes)),d.scrollIntoView){let{main:p}=d.state.selection;f=new bv(p.empty?p:Te.cursor(p.head,p.head>p.anchor?-1:1))}for(let p of d.effects)p.is(gw)&&(f=p.value.clip(this.state))}this.viewState.update(i,f),this.bidiCache=LC.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),n=this.docView.update(i),this.state.facet(L0)!=this.styleModules&&this.mountStyles(),r=this.updateAttrs(),this.showAnnouncements(e),this.docView.updateSelection(n,e.some(d=>d.isUserEvent("select.pointer")))}finally{this.updateState=0}if(i.startState.facet(ww)!=i.state.facet(ww)&&(this.viewState.mustMeasureContent=!0),(n||r||f||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),n&&this.docViewUpdate(),!i.empty)for(let d of this.state.facet(PN))try{d(i)}catch(p){to(this.state,p,"update listener")}(l||c)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),c&&!Lpe(this,c)&&u.force&&yv(this.contentDOM,u.key,u.keyCode)})}setState(e){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=e;return}this.updateState=2;let n=this.hasFocus;try{for(let r of this.plugins)r.destroy(this);this.viewState=new Gq(e),this.plugins=e.facet(N0).map(r=>new lI(r)),this.pluginMap.clear();for(let r of this.plugins)r.update(this);this.docView.destroy(),this.docView=new Pq(this),this.inputState.ensureHandlers(this.plugins),this.mountStyles(),this.updateAttrs(),this.bidiCache=[]}finally{this.updateState=0}n&&this.focus(),this.requestMeasure()}updatePlugins(e){let n=e.startState.facet(N0),r=e.state.facet(N0);if(n!=r){let i=[];for(let o of r){let a=n.indexOf(o);if(a<0)i.push(new lI(o));else{let s=this.plugins[a];s.mustUpdate=e,i.push(s)}}for(let o of this.plugins)o.mustUpdate!=e&&o.destroy(this);this.plugins=i,this.pluginMap.clear()}else for(let i of this.plugins)i.mustUpdate=e;for(let i=0;i<this.plugins.length;i++)this.plugins[i].update(this);n!=r&&this.inputState.ensureHandlers(this.plugins)}docViewUpdate(){for(let e of this.plugins){let n=e.value;if(n&&n.docViewUpdate)try{n.docViewUpdate(this)}catch(r){to(this.state,r,"doc view update listener")}}}measure(e=!0){if(this.destroyed)return;if(this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,e&&this.observer.forceFlush();let n=null,r=this.scrollDOM,i=r.scrollTop*this.scaleY,{scrollAnchorPos:o,scrollAnchorHeight:a}=this.viewState;Math.abs(i-this.viewState.scrollTop)>1&&(a=-1),this.viewState.scrollAnchorHeight=-1;try{for(let s=0;;s++){if(a<0)if(Hhe(r))o=-1,a=this.viewState.heightMap.height;else{let p=this.viewState.scrollAnchorAt(i);o=p.from,a=p.top}this.updateState=1;let l=this.viewState.measure(this);if(!l&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(s>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let u=[];l&4||([this.measureRequests,u]=[u,this.measureRequests]);let c=u.map(p=>{try{return p.read(this)}catch(v){return to(this.state,v),Yq}}),f=NC.create(this,this.state,[]),d=!1;f.flags|=l,n?n.flags|=l:n=f,this.updateState=2,f.empty||(this.updatePlugins(f),this.inputState.update(f),this.updateAttrs(),d=this.docView.update(f),d&&this.docViewUpdate());for(let p=0;p<u.length;p++)if(c[p]!=Yq)try{let v=u[p];v.write&&v.write(c[p],this)}catch(v){to(this.state,v)}if(d&&this.docView.updateSelection(!0),!f.viewportChanged&&this.measureRequests.length==0){if(this.viewState.editorHeight)if(this.viewState.scrollTarget){this.docView.scrollIntoView(this.viewState.scrollTarget),this.viewState.scrollTarget=null,a=-1;continue}else{let v=(o<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(o).top)-a;if(v>1||v<-1){i=i+v,r.scrollTop=i/this.scaleY,a=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(n&&!n.empty)for(let s of this.state.facet(PN))s(n)}get themeClasses(){return IN+" "+(this.state.facet(MN)?kpe:Rpe)+" "+this.state.facet(ww)}updateAttrs(){let e=qq(this,mpe,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),n={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(Ju)?"true":"false",class:"cm-content",style:`${Xe.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(n["aria-readonly"]="true"),qq(this,uB,n);let r=this.observer.ignore(()=>{let i=wN(this.contentDOM,this.contentAttrs,n),o=wN(this.dom,this.editorAttrs,e);return i||o});return this.editorAttrs=e,this.contentAttrs=n,r}showAnnouncements(e){let n=!0;for(let r of e)for(let i of r.effects)if(i.is(He.announce)){n&&(this.announceDOM.textContent=""),n=!1;let o=this.announceDOM.appendChild(document.createElement("div"));o.textContent=i.value}}mountStyles(){this.styleModules=this.state.facet(L0);let e=this.state.facet(He.cspNonce);Vc.mount(this.root,this.styleModules.concat(jwt).reverse(),e?{nonce:e}:void 0)}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");this.updateState==0&&this.measureScheduled>-1&&this.measure(!1)}requestMeasure(e){if(this.measureScheduled<0&&(this.measureScheduled=this.win.requestAnimationFrame(()=>this.measure())),e){if(this.measureRequests.indexOf(e)>-1)return;if(e.key!=null){for(let n=0;n<this.measureRequests.length;n++)if(this.measureRequests[n].key===e.key){this.measureRequests[n]=e;return}}this.measureRequests.push(e)}}plugin(e){let n=this.pluginMap.get(e);return(n===void 0||n&&n.spec!=e)&&this.pluginMap.set(e,n=this.plugins.find(r=>r.spec==e)||null),n&&n.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}get scaleX(){return this.viewState.scaleX}get scaleY(){return this.viewState.scaleY}elementAtHeight(e){return this.readMeasured(),this.viewState.elementAtHeight(e)}lineBlockAtHeight(e){return this.readMeasured(),this.viewState.lineBlockAtHeight(e)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(e){return this.viewState.lineBlockAt(e)}get contentHeight(){return this.viewState.contentHeight}moveByChar(e,n,r){return cI(this,e,Dq(this,e,n,r))}moveByGroup(e,n){return cI(this,e,Dq(this,e,n,r=>gwt(this,e.head,r)))}visualLineSide(e,n){let r=this.bidiSpans(e),i=this.textDirectionAt(e.from),o=r[n?r.length-1:0];return Te.cursor(o.side(n,i)+e.from,o.forward(!n,i)?1:-1)}moveToLineBoundary(e,n,r=!0){return vwt(this,e,n,r)}moveVertically(e,n,r){return cI(this,e,mwt(this,e,n,r))}domAtPos(e){return this.docView.domAtPos(e)}posAtDOM(e,n=0){return this.docView.posFromDOM(e,n)}posAtCoords(e,n=!0){return this.readMeasured(),xpe(this,e,n)}coordsAtPos(e,n=1){this.readMeasured();let r=this.docView.coordsAt(e,n);if(!r||r.left==r.right)return r;let i=this.state.doc.lineAt(e),o=this.bidiSpans(i),a=o[hc.find(o,e-i.from,-1,n)];return l2(r,a.dir==Dn.LTR==n>0)}coordsForChar(e){return this.readMeasured(),this.docView.coordsForChar(e)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(e){return!this.state.facet(hpe)||e<this.viewport.from||e>this.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(e))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(e){if(e.length>ixt)return ope(e.length);let n=this.textDirectionAt(e.from),r;for(let o of this.bidiCache)if(o.from==e.from&&o.dir==n&&(o.fresh||ipe(o.isolates,r=Tq(this,e))))return o.order;r||(r=Tq(this,e));let i=JOt(e.text,n,r);return this.bidiCache.push(new LC(e.from,e.to,n,r,!0,i)),i}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||Xe.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{Whe(this.contentDOM),this.docView.updateSelection()})}setRoot(e){this._root!=e&&(this._root=e,this.observer.setWindow((e.nodeType==9?e:e.ownerDocument).defaultView||window),this.mountStyles())}destroy(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();for(let e of this.plugins)e.destroy(this);this.plugins=[],this.inputState.destroy(),this.docView.destroy(),this.dom.remove(),this.observer.destroy(),this.measureScheduled>-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.destroyed=!0}static scrollIntoView(e,n={}){return gw.of(new bv(typeof e=="number"?Te.cursor(e):e,n.y,n.x,n.yMargin,n.xMargin))}scrollSnapshot(){let{scrollTop:e,scrollLeft:n}=this.scrollDOM,r=this.viewState.scrollAnchorAt(e);return gw.of(new bv(Te.cursor(r.from),"start","start",r.top-e,n,!0))}setTabFocusMode(e){e==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof e=="boolean"?this.inputState.tabFocusMode=e?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+e)}static domEventHandlers(e){return or.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return or.define(()=>({}),{eventObservers:e})}static theme(e,n){let r=Vc.newName(),i=[ww.of(r),L0.of(DN(`.${r}`,e))];return n&&n.dark&&i.push(MN.of(!0)),i}static baseTheme(e){return tf.lowest(L0.of(DN("."+IN,e,Npe)))}static findFromDOM(e){var n;let r=e.querySelector(".cm-content"),i=r&&bn.get(r)||bn.get(e);return((n=i==null?void 0:i.rootView)===null||n===void 0?void 0:n.view)||null}}He.styleModule=L0;He.inputHandler=fpe;He.scrollHandler=vpe;He.focusChangeEffect=dpe;He.perLineTextDirection=hpe;He.exceptionSink=cpe;He.updateListener=PN;He.editable=Ju;He.mouseSelectionStyle=upe;He.dragMovesSelection=lpe;He.clickAddsSelectionRange=spe;He.decorations=Ab;He.outerDecorations=ype;He.atomicRanges=cB;He.bidiIsolatedRanges=bpe;He.scrollMargins=_pe;He.darkTheme=MN;He.cspNonce=Ye.define({combine:t=>t.length?t[0]:""});He.contentAttributes=uB;He.editorAttributes=mpe;He.lineWrapping=He.contentAttributes.of({class:"cm-lineWrapping"});He.announce=wt.define();const ixt=4096,Yq={};class LC{constructor(e,n,r,i,o,a){this.from=e,this.to=n,this.dir=r,this.isolates=i,this.fresh=o,this.order=a}static update(e,n){if(n.empty&&!e.some(o=>o.fresh))return e;let r=[],i=e.length?e[e.length-1].dir:Dn.LTR;for(let o=Math.max(0,e.length-10);o<e.length;o++){let a=e[o];a.dir==i&&!n.touchesRange(a.from,a.to)&&r.push(new LC(n.mapPos(a.from,1),n.mapPos(a.to,-1),a.dir,a.isolates,!1,a.order))}return r}}function qq(t,e,n){for(let r=t.state.facet(e),i=r.length-1;i>=0;i--){let o=r[i],a=typeof o=="function"?o(t):o;a&&ON(a,n)}return n}const oxt=Xe.mac?"mac":Xe.windows?"win":Xe.linux?"linux":"key";function axt(t,e){const n=t.split(/-(?!$)/);let r=n[n.length-1];r=="Space"&&(r=" ");let i,o,a,s;for(let l=0;l<n.length-1;++l){const u=n[l];if(/^(cmd|meta|m)$/i.test(u))s=!0;else if(/^a(lt)?$/i.test(u))i=!0;else if(/^(c|ctrl|control)$/i.test(u))o=!0;else if(/^s(hift)?$/i.test(u))a=!0;else if(/^mod$/i.test(u))e=="mac"?s=!0:o=!0;else throw new Error("Unrecognized modifier name: "+u)}return i&&(r="Alt-"+r),o&&(r="Ctrl-"+r),s&&(r="Meta-"+r),a&&(r="Shift-"+r),r}function xw(t,e,n){return e.altKey&&(t="Alt-"+t),e.ctrlKey&&(t="Ctrl-"+t),e.metaKey&&(t="Meta-"+t),n!==!1&&e.shiftKey&&(t="Shift-"+t),t}const sxt=tf.default(He.domEventHandlers({keydown(t,e){return zpe(Vpe(e.state),t,e,"editor")}})),B_=Ye.define({enables:sxt}),Kq=new WeakMap;function Vpe(t){let e=t.facet(B_),n=Kq.get(e);return n||Kq.set(e,n=cxt(e.reduce((r,i)=>r.concat(i),[]))),n}function lxt(t,e,n){return zpe(Vpe(t.state),e,t,n)}let ec=null;const uxt=4e3;function cxt(t,e=oxt){let n=Object.create(null),r=Object.create(null),i=(a,s)=>{let l=r[a];if(l==null)r[a]=s;else if(l!=s)throw new Error("Key binding "+a+" is used both as a regular binding and as a multi-stroke prefix")},o=(a,s,l,u,c)=>{var f,d;let p=n[a]||(n[a]=Object.create(null)),v=s.split(/ (?!$)/).map(y=>axt(y,e));for(let y=1;y<v.length;y++){let b=v.slice(0,y).join(" ");i(b,!0),p[b]||(p[b]={preventDefault:!0,stopPropagation:!1,run:[O=>{let w=ec={view:O,prefix:b,scope:a};return setTimeout(()=>{ec==w&&(ec=null)},uxt),!0}]})}let g=v.join(" ");i(g,!1);let m=p[g]||(p[g]={preventDefault:!1,stopPropagation:!1,run:((d=(f=p._any)===null||f===void 0?void 0:f.run)===null||d===void 0?void 0:d.slice())||[]});l&&m.run.push(l),u&&(m.preventDefault=!0),c&&(m.stopPropagation=!0)};for(let a of t){let s=a.scope?a.scope.split(" "):["editor"];if(a.any)for(let u of s){let c=n[u]||(n[u]=Object.create(null));c._any||(c._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:f}=a;for(let d in c)c[d].run.push(p=>f(p,RN))}let l=a[e]||a.key;if(l)for(let u of s)o(u,l,a.run,a.preventDefault,a.stopPropagation),a.shift&&o(u,"Shift-"+l,a.shift,a.preventDefault,a.stopPropagation)}return n}let RN=null;function zpe(t,e,n,r){RN=e;let i=ROt(e),o=Qr(i,0),a=ha(o)==i.length&&i!=" ",s="",l=!1,u=!1,c=!1;ec&&ec.view==n&&ec.scope==r&&(s=ec.prefix+" ",Cpe.indexOf(e.keyCode)<0&&(u=!0,ec=null));let f=new Set,d=m=>{if(m){for(let y of m.run)if(!f.has(y)&&(f.add(y),y(n)))return m.stopPropagation&&(c=!0),!0;m.preventDefault&&(m.stopPropagation&&(c=!0),u=!0)}return!1},p=t[r],v,g;return p&&(d(p[s+xw(i,e,!a)])?l=!0:a&&(e.altKey||e.metaKey||e.ctrlKey)&&!(Xe.windows&&e.ctrlKey&&e.altKey)&&(v=zc[e.keyCode])&&v!=i?(d(p[s+xw(v,e,!0)])||e.shiftKey&&(g=Pb[e.keyCode])!=i&&g!=v&&d(p[s+xw(g,e,!1)]))&&(l=!0):a&&e.shiftKey&&d(p[s+xw(i,e,!0)])&&(l=!0),!l&&d(p._any)&&(l=!0)),u&&(l=!0),l&&c&&e.stopPropagation(),RN=null,l}class V_{constructor(e,n,r,i,o){this.className=e,this.left=n,this.top=r,this.width=i,this.height=o}draw(){let e=document.createElement("div");return e.className=this.className,this.adjust(e),e}update(e,n){return n.className!=this.className?!1:(this.adjust(e),!0)}adjust(e){e.style.left=this.left+"px",e.style.top=this.top+"px",this.width!=null&&(e.style.width=this.width+"px"),e.style.height=this.height+"px"}eq(e){return this.left==e.left&&this.top==e.top&&this.width==e.width&&this.height==e.height&&this.className==e.className}static forRange(e,n,r){if(r.empty){let i=e.coordsAtPos(r.head,r.assoc||1);if(!i)return[];let o=Fpe(e);return[new V_(n,i.left-o.left,i.top-o.top,null,i.bottom-i.top)]}else return fxt(e,n,r)}}function Fpe(t){let e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==Dn.LTR?e.left:e.right-t.scrollDOM.clientWidth*t.scaleX)-t.scrollDOM.scrollLeft*t.scaleX,top:e.top-t.scrollDOM.scrollTop*t.scaleY}}function Jq(t,e,n,r){let i=t.coordsAtPos(e,n*2);if(!i)return r;let o=t.dom.getBoundingClientRect(),a=(i.top+i.bottom)/2,s=t.posAtCoords({x:o.left+1,y:a}),l=t.posAtCoords({x:o.right-1,y:a});return s==null||l==null?r:{from:Math.max(r.from,Math.min(s,l)),to:Math.min(r.to,Math.max(s,l))}}function fxt(t,e,n){if(n.to<=t.viewport.from||n.from>=t.viewport.to)return[];let r=Math.max(n.from,t.viewport.from),i=Math.min(n.to,t.viewport.to),o=t.textDirection==Dn.LTR,a=t.contentDOM,s=a.getBoundingClientRect(),l=Fpe(t),u=a.querySelector(".cm-line"),c=u&&window.getComputedStyle(u),f=s.left+(c?parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)):0),d=s.right-(c?parseInt(c.paddingRight):0),p=AN(t,r),v=AN(t,i),g=p.type==Mi.Text?p:null,m=v.type==Mi.Text?v:null;if(g&&(t.lineWrapping||p.widgetLineBreaks)&&(g=Jq(t,r,1,g)),m&&(t.lineWrapping||v.widgetLineBreaks)&&(m=Jq(t,i,-1,m)),g&&m&&g.from==m.from&&g.to==m.to)return b(O(n.from,n.to,g));{let x=g?O(n.from,null,g):w(p,!1),S=m?O(null,n.to,m):w(v,!0),T=[];return(g||p).to<(m||v).from-(g&&m?1:0)||p.widgetLineBreaks>1&&x.bottom+t.defaultLineHeight/2<S.top?T.push(y(f,x.bottom,d,S.top)):x.bottom<S.top&&t.elementAtHeight((x.bottom+S.top)/2).type==Mi.Text&&(x.bottom=S.top=(x.bottom+S.top)/2),b(x).concat(T).concat(b(S))}function y(x,S,T,$){return new V_(e,x-l.left,S-l.top-.01,T-x,$-S+.01)}function b({top:x,bottom:S,horizontal:T}){let $=[];for(let A=0;A<T.length;A+=2)$.push(y(T[A],x,T[A+1],S));return $}function O(x,S,T){let $=1e9,A=-1e9,P=[];function M(L,D,B,F,z){let W=t.coordsAtPos(L,L==T.to?-2:2),j=t.coordsAtPos(B,B==T.from?2:-2);!W||!j||($=Math.min(W.top,j.top,$),A=Math.max(W.bottom,j.bottom,A),z==Dn.LTR?P.push(o&&D?f:W.left,o&&F?d:j.right):P.push(!o&&F?f:j.left,!o&&D?d:W.right))}let I=x??T.from,R=S??T.to;for(let L of t.visibleRanges)if(L.to>I&&L.from<R)for(let D=Math.max(L.from,I),B=Math.min(L.to,R);;){let F=t.state.doc.lineAt(D);for(let z of t.bidiSpans(F)){let W=z.from+F.from,j=z.to+F.from;if(W>=B)break;j>D&&M(Math.max(W,D),x==null&&W<=I,Math.min(j,B),S==null&&j>=R,z.dir)}if(D=F.to+1,D>=B)break}return P.length==0&&M(I,x==null,R,S==null,t.textDirection),{top:$,bottom:A,horizontal:P}}function w(x,S){let T=s.top+(S?x.top:x.bottom);return{top:T,bottom:T,horizontal:[]}}}function dxt(t,e){return t.constructor==e.constructor&&t.eq(e)}class hxt{constructor(e,n){this.view=e,this.layer=n,this.drawn=[],this.scaleX=1,this.scaleY=1,this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)},this.dom=e.scrollDOM.appendChild(document.createElement("div")),this.dom.classList.add("cm-layer"),n.above&&this.dom.classList.add("cm-layer-above"),n.class&&this.dom.classList.add(n.class),this.scale(),this.dom.setAttribute("aria-hidden","true"),this.setOrder(e.state),e.requestMeasure(this.measureReq),n.mount&&n.mount(this.dom,e)}update(e){e.startState.facet(Bx)!=e.state.facet(Bx)&&this.setOrder(e.state),(this.layer.update(e,this.dom)||e.geometryChanged)&&(this.scale(),e.view.requestMeasure(this.measureReq))}docViewUpdate(e){this.layer.updateOnDocViewUpdate!==!1&&e.requestMeasure(this.measureReq)}setOrder(e){let n=0,r=e.facet(Bx);for(;n<r.length&&r[n]!=this.layer;)n++;this.dom.style.zIndex=String((this.layer.above?150:-1)-n)}measure(){return this.layer.markers(this.view)}scale(){let{scaleX:e,scaleY:n}=this.view;(e!=this.scaleX||n!=this.scaleY)&&(this.scaleX=e,this.scaleY=n,this.dom.style.transform=`scale(${1/e}, ${1/n})`)}draw(e){if(e.length!=this.drawn.length||e.some((n,r)=>!dxt(n,this.drawn[r]))){let n=this.dom.firstChild,r=0;for(let i of e)i.update&&n&&i.constructor&&this.drawn[r].constructor&&i.update(n,this.drawn[r])?(n=n.nextSibling,r++):this.dom.insertBefore(i.draw(),n);for(;n;){let i=n.nextSibling;n.remove(),n=i}this.drawn=e}}destroy(){this.layer.destroy&&this.layer.destroy(this.dom,this.view),this.dom.remove()}}const Bx=Ye.define();function Wpe(t){return[or.define(e=>new hxt(e,t)),Bx.of(t)]}const Qpe=!Xe.ios,Eb=Ye.define({combine(t){return gl(t,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,n)=>Math.min(e,n),drawRangeCursor:(e,n)=>e||n})}});function pxt(t={}){return[Eb.of(t),vxt,gxt,mxt,ppe.of(!0)]}function Hpe(t){return t.startState.facet(Eb)!=t.state.facet(Eb)}const vxt=Wpe({above:!0,markers(t){let{state:e}=t,n=e.facet(Eb),r=[];for(let i of e.selection.ranges){let o=i==e.selection.main;if(i.empty?!o||Qpe:n.drawRangeCursor){let a=o?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",s=i.empty?i:Te.cursor(i.head,i.head>i.anchor?-1:1);for(let l of V_.forRange(t,a,s))r.push(l)}}return r},update(t,e){t.transactions.some(r=>r.selection)&&(e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let n=Hpe(t);return n&&eK(t.state,e),t.docChanged||t.selectionSet||n},mount(t,e){eK(e.state,t)},class:"cm-cursorLayer"});function eK(t,e){e.style.animationDuration=t.facet(Eb).cursorBlinkRate+"ms"}const gxt=Wpe({above:!1,markers(t){return t.state.selection.ranges.map(e=>e.empty?[]:V_.forRange(t,"cm-selectionBackground",e)).reduce((e,n)=>e.concat(n))},update(t,e){return t.docChanged||t.selectionSet||t.viewportChanged||Hpe(t)},class:"cm-selectionLayer"}),kN={".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"}},".cm-content":{"& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}};Qpe&&(kN[".cm-line"].caretColor=kN[".cm-content"].caretColor="transparent !important");const mxt=tf.highest(He.theme(kN)),Gpe=wt.define({map(t,e){return t==null?null:e.mapPos(t)}}),z0=kr.define({create(){return null},update(t,e){return t!=null&&(t=e.changes.mapPos(t)),e.effects.reduce((n,r)=>r.is(Gpe)?r.value:n,t)}}),yxt=or.fromClass(class{constructor(t){this.view=t,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(t){var e;let n=t.state.field(z0);n==null?this.cursor!=null&&((e=this.cursor)===null||e===void 0||e.remove(),this.cursor=null):(this.cursor||(this.cursor=this.view.scrollDOM.appendChild(document.createElement("div")),this.cursor.className="cm-dropCursor"),(t.startState.field(z0)!=n||t.docChanged||t.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:t}=this,e=t.state.field(z0),n=e!=null&&t.coordsAtPos(e);if(!n)return null;let r=t.scrollDOM.getBoundingClientRect();return{left:n.left-r.left+t.scrollDOM.scrollLeft*t.scaleX,top:n.top-r.top+t.scrollDOM.scrollTop*t.scaleY,height:n.bottom-n.top}}drawCursor(t){if(this.cursor){let{scaleX:e,scaleY:n}=this.view;t?(this.cursor.style.left=t.left/e+"px",this.cursor.style.top=t.top/n+"px",this.cursor.style.height=t.height/n+"px"):this.cursor.style.left="-100000px"}}destroy(){this.cursor&&this.cursor.remove()}setDropPos(t){this.view.state.field(z0)!=t&&this.view.dispatch({effects:Gpe.of(t)})}},{eventObservers:{dragover(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave(t){(t.target==this.view.contentDOM||!this.view.contentDOM.contains(t.relatedTarget))&&this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function bxt(){return[z0,yxt]}function tK(t,e,n,r,i){e.lastIndex=0;for(let o=t.iterRange(n,r),a=n,s;!o.next().done;a+=o.value.length)if(!o.lineBreak)for(;s=e.exec(o.value);)i(a+s.index,s)}function _xt(t,e){let n=t.visibleRanges;if(n.length==1&&n[0].from==t.viewport.from&&n[0].to==t.viewport.to)return n;let r=[];for(let{from:i,to:o}of n)i=Math.max(t.state.doc.lineAt(i).from,i-e),o=Math.min(t.state.doc.lineAt(o).to,o+e),r.length&&r[r.length-1].to>=i?r[r.length-1].to=o:r.push({from:i,to:o});return r}class Oxt{constructor(e){const{regexp:n,decoration:r,decorate:i,boundary:o,maxLength:a=1e3}=e;if(!n.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=n,i)this.addMatch=(s,l,u,c)=>i(c,u,u+s[0].length,s,l);else if(typeof r=="function")this.addMatch=(s,l,u,c)=>{let f=r(s,l,u);f&&c(u,u+s[0].length,f)};else if(r)this.addMatch=(s,l,u,c)=>c(u,u+s[0].length,r);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=o,this.maxLength=a}createDeco(e){let n=new Bc,r=n.add.bind(n);for(let{from:i,to:o}of _xt(e,this.maxLength))tK(e.state.doc,this.regexp,i,o,(a,s)=>this.addMatch(s,e,a,r));return n.finish()}updateDeco(e,n){let r=1e9,i=-1;return e.docChanged&&e.changes.iterChanges((o,a,s,l)=>{l>e.view.viewport.from&&s<e.view.viewport.to&&(r=Math.min(s,r),i=Math.max(l,i))}),e.viewportChanged||i-r>1e3?this.createDeco(e.view):i>-1?this.updateRange(e.view,n.map(e.changes),r,i):n}updateRange(e,n,r,i){for(let o of e.visibleRanges){let a=Math.max(o.from,r),s=Math.min(o.to,i);if(s>a){let l=e.state.doc.lineAt(a),u=l.to<s?e.state.doc.lineAt(s):l,c=Math.max(o.from,l.from),f=Math.min(o.to,u.to);if(this.boundary){for(;a>l.from;a--)if(this.boundary.test(l.text[a-1-l.from])){c=a;break}for(;s<u.to;s++)if(this.boundary.test(u.text[s-u.from])){f=s;break}}let d=[],p,v=(g,m,y)=>d.push(y.range(g,m));if(l==u)for(this.regexp.lastIndex=c-l.from;(p=this.regexp.exec(l.text))&&p.index<f-l.from;)this.addMatch(p,e,p.index+l.from,v);else tK(e.state.doc,this.regexp,c,f,(g,m)=>this.addMatch(m,e,g,v));n=n.update({filterFrom:c,filterTo:f,filter:(g,m)=>g<c||m>f,add:d})}}return n}}const NN=/x/.unicode!=null?"gu":"g",wxt=new RegExp(`[\0-\b
  403. --Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,NN),xxt={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let hI=null;function Sxt(){var t;if(hI==null&&typeof document<"u"&&document.body){let e=document.body.style;hI=((t=e.tabSize)!==null&&t!==void 0?t:e.MozTabSize)!=null}return hI||!1}const Vx=Ye.define({combine(t){let e=gl(t,{render:null,specialChars:wxt,addSpecialChars:null});return(e.replaceTabs=!Sxt())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,NN)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,NN)),e}});function Cxt(t={}){return[Vx.of(t),Txt()]}let nK=null;function Txt(){return nK||(nK=or.fromClass(class{constructor(t){this.view=t,this.decorations=tt.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(t.state.facet(Vx)),this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new Oxt({regexp:t.specialChars,decoration:(e,n,r)=>{let{doc:i}=n.state,o=Qr(e[0],0);if(o==9){let a=i.lineAt(r),s=n.state.tabSize,l=qg(a.text,s,r-a.from);return tt.replace({widget:new Ext((s-l%s)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[o]||(this.decorationCache[o]=tt.replace({widget:new Axt(t,o)}))},boundary:t.replaceTabs?void 0:/[^]/})}update(t){let e=t.state.facet(Vx);t.startState.facet(Vx)!=e?(this.decorator=this.makeDecorator(e),this.decorations=this.decorator.createDeco(t.view)):this.decorations=this.decorator.updateDeco(t,this.decorations)}},{decorations:t=>t.decorations}))}const Pxt="•";function $xt(t){return t>=32?Pxt:t==10?"␤":String.fromCharCode(9216+t)}class Axt extends ml{constructor(e,n){super(),this.options=e,this.code=n}eq(e){return e.code==this.code}toDOM(e){let n=$xt(this.code),r=e.state.phrase("Control character")+" "+(xxt[this.code]||"0x"+this.code.toString(16)),i=this.options.render&&this.options.render(this.code,r,n);if(i)return i;let o=document.createElement("span");return o.textContent=n,o.title=r,o.setAttribute("aria-label",r),o.className="cm-specialChar",o}ignoreEvent(){return!1}}class Ext extends ml{constructor(e){super(),this.width=e}eq(e){return e.width==this.width}toDOM(){let e=document.createElement("span");return e.textContent=" ",e.className="cm-tab",e.style.width=this.width+"px",e}ignoreEvent(){return!1}}function Mxt(){return Dxt}const Ixt=tt.line({class:"cm-activeLine"}),Dxt=or.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.docChanged||t.selectionSet)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=-1,n=[];for(let r of t.state.selection.ranges){let i=t.lineBlockAt(r.head);i.from>e&&(n.push(Ixt.range(i.from)),e=i.from)}return tt.set(n)}},{decorations:t=>t.decorations});class Rxt extends ml{constructor(e){super(),this.content=e}toDOM(){let e=document.createElement("span");return e.className="cm-placeholder",e.style.pointerEvents="none",e.appendChild(typeof this.content=="string"?document.createTextNode(this.content):this.content),typeof this.content=="string"?e.setAttribute("aria-label","placeholder "+this.content):e.setAttribute("aria-hidden","true"),e}coordsAt(e){let n=e.firstChild?ug(e.firstChild):[];if(!n.length)return null;let r=window.getComputedStyle(e.parentNode),i=l2(n[0],r.direction!="rtl"),o=parseInt(r.lineHeight);return i.bottom-i.top>o*1.5?{left:i.left,right:i.right,top:i.top,bottom:i.top+o}:i}ignoreEvent(){return!1}}function kxt(t){return or.fromClass(class{constructor(e){this.view=e,this.placeholder=t?tt.set([tt.widget({widget:new Rxt(t),side:1}).range(0)]):tt.none}get decorations(){return this.view.state.doc.length?tt.none:this.placeholder}},{decorations:e=>e.decorations})}const LN=2e3;function Nxt(t,e,n){let r=Math.min(e.line,n.line),i=Math.max(e.line,n.line),o=[];if(e.off>LN||n.off>LN||e.col<0||n.col<0){let a=Math.min(e.off,n.off),s=Math.max(e.off,n.off);for(let l=r;l<=i;l++){let u=t.doc.line(l);u.length<=s&&o.push(Te.range(u.from+a,u.to+s))}}else{let a=Math.min(e.col,n.col),s=Math.max(e.col,n.col);for(let l=r;l<=i;l++){let u=t.doc.line(l),c=pN(u.text,a,t.tabSize,!0);if(c<0)o.push(Te.cursor(u.to));else{let f=pN(u.text,s,t.tabSize);o.push(Te.range(u.from+c,u.from+f))}}}return o}function Lxt(t,e){let n=t.coordsAtPos(t.viewport.from);return n?Math.round(Math.abs((n.left-e)/t.defaultCharacterWidth)):-1}function rK(t,e){let n=t.posAtCoords({x:e.clientX,y:e.clientY},!1),r=t.state.doc.lineAt(n),i=n-r.from,o=i>LN?-1:i==r.length?Lxt(t,e.clientX):qg(r.text,t.state.tabSize,n-r.from);return{line:r.number,col:o,off:i}}function Bxt(t,e){let n=rK(t,e),r=t.state.selection;return n?{update(i){if(i.docChanged){let o=i.changes.mapPos(i.startState.doc.line(n.line).from),a=i.state.doc.lineAt(o);n={line:a.number,col:n.col,off:Math.min(n.off,a.length)},r=r.map(i.changes)}},get(i,o,a){let s=rK(t,i);if(!s)return r;let l=Nxt(t.state,n,s);return l.length?a?Te.create(l.concat(r.ranges)):Te.create(l):r}}:null}function Vxt(t){let e=n=>n.altKey&&n.button==0;return He.mouseSelectionStyle.of((n,r)=>e(r)?Bxt(n,r):null)}const zxt={Alt:[18,t=>!!t.altKey],Control:[17,t=>!!t.ctrlKey],Shift:[16,t=>!!t.shiftKey],Meta:[91,t=>!!t.metaKey]},Fxt={style:"cursor: crosshair"};function Wxt(t={}){let[e,n]=zxt[t.key||"Alt"],r=or.fromClass(class{constructor(i){this.view=i,this.isDown=!1}set(i){this.isDown!=i&&(this.isDown=i,this.view.update([]))}},{eventObservers:{keydown(i){this.set(i.keyCode==e||n(i))},keyup(i){(i.keyCode==e||!n(i))&&this.set(!1)},mousemove(i){this.set(n(i))}}});return[r,He.contentAttributes.of(i=>{var o;return!((o=i.plugin(r))===null||o===void 0)&&o.isDown?Fxt:null})]}const d0="-10000px";class jpe{constructor(e,n,r,i){this.facet=n,this.createTooltipView=r,this.removeTooltipView=i,this.input=e.state.facet(n),this.tooltips=this.input.filter(a=>a);let o=null;this.tooltipViews=this.tooltips.map(a=>o=r(a,o))}update(e,n){var r;let i=e.state.facet(this.facet),o=i.filter(l=>l);if(i===this.input){for(let l of this.tooltipViews)l.update&&l.update(e);return!1}let a=[],s=n?[]:null;for(let l=0;l<o.length;l++){let u=o[l],c=-1;if(u){for(let f=0;f<this.tooltips.length;f++){let d=this.tooltips[f];d&&d.create==u.create&&(c=f)}if(c<0)a[l]=this.createTooltipView(u,l?a[l-1]:null),s&&(s[l]=!!u.above);else{let f=a[l]=this.tooltipViews[c];s&&(s[l]=n[c]),f.update&&f.update(e)}}}for(let l of this.tooltipViews)a.indexOf(l)<0&&(this.removeTooltipView(l),(r=l.destroy)===null||r===void 0||r.call(l));return n&&(s.forEach((l,u)=>n[u]=l),n.length=s.length),this.input=i,this.tooltips=o,this.tooltipViews=a,!0}}function Qxt(t){let{win:e}=t;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}const pI=Ye.define({combine:t=>{var e,n,r;return{position:Xe.ios?"absolute":((e=t.find(i=>i.position))===null||e===void 0?void 0:e.position)||"fixed",parent:((n=t.find(i=>i.parent))===null||n===void 0?void 0:n.parent)||null,tooltipSpace:((r=t.find(i=>i.tooltipSpace))===null||r===void 0?void 0:r.tooltipSpace)||Qxt}}}),iK=new WeakMap,hB=or.fromClass(class{constructor(t){this.view=t,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let e=t.state.facet(pI);this.position=e.position,this.parent=e.parent,this.classes=t.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new jpe(t,pB,(n,r)=>this.createTooltip(n,r),n=>{this.resizeObserver&&this.resizeObserver.unobserve(n.dom),n.dom.remove()}),this.above=this.manager.tooltips.map(n=>!!n.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(n=>{Date.now()>this.lastTransaction-50&&n.length>0&&n[n.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let t of this.manager.tooltipViews)this.intersectionObserver.observe(t.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(t){t.transactions.length&&(this.lastTransaction=Date.now());let e=this.manager.update(t,this.above);e&&this.observeIntersection();let n=e||t.geometryChanged,r=t.state.facet(pI);if(r.position!=this.position&&!this.madeAbsolute){this.position=r.position;for(let i of this.manager.tooltipViews)i.dom.style.position=this.position;n=!0}if(r.parent!=this.parent){this.parent&&this.container.remove(),this.parent=r.parent,this.createContainer();for(let i of this.manager.tooltipViews)this.container.appendChild(i.dom);n=!0}else this.parent&&this.view.themeClasses!=this.classes&&(this.classes=this.container.className=this.view.themeClasses);n&&this.maybeMeasure()}createTooltip(t,e){let n=t.create(this.view),r=e?e.dom:null;if(n.dom.classList.add("cm-tooltip"),t.arrow&&!n.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let i=document.createElement("div");i.className="cm-tooltip-arrow",n.dom.appendChild(i)}return n.dom.style.position=this.position,n.dom.style.top=d0,n.dom.style.left="0px",this.container.insertBefore(n.dom,r),n.mount&&n.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(n.dom),n}destroy(){var t,e,n;this.view.win.removeEventListener("resize",this.measureSoon);for(let r of this.manager.tooltipViews)r.dom.remove(),(t=r.destroy)===null||t===void 0||t.call(r);this.parent&&this.container.remove(),(e=this.resizeObserver)===null||e===void 0||e.disconnect(),(n=this.intersectionObserver)===null||n===void 0||n.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let t=this.view.dom.getBoundingClientRect(),e=1,n=1,r=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:i}=this.manager.tooltipViews[0];if(Xe.gecko)r=i.offsetParent!=this.container.ownerDocument.body;else if(i.style.top==d0&&i.style.left=="0px"){let o=i.getBoundingClientRect();r=Math.abs(o.top+1e4)>1||Math.abs(o.left)>1}}if(r||this.position=="absolute")if(this.parent){let i=this.parent.getBoundingClientRect();i.width&&i.height&&(e=i.width/this.parent.offsetWidth,n=i.height/this.parent.offsetHeight)}else({scaleX:e,scaleY:n}=this.view.viewState);return{editor:t,parent:this.parent?this.container.getBoundingClientRect():t,pos:this.manager.tooltips.map((i,o)=>{let a=this.manager.tooltipViews[o];return a.getCoords?a.getCoords(i.pos):this.view.coordsAtPos(i.pos)}),size:this.manager.tooltipViews.map(({dom:i})=>i.getBoundingClientRect()),space:this.view.state.facet(pI).tooltipSpace(this.view),scaleX:e,scaleY:n,makeAbsolute:r}}writeMeasure(t){var e;if(t.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let s of this.manager.tooltipViews)s.dom.style.position="absolute"}let{editor:n,space:r,scaleX:i,scaleY:o}=t,a=[];for(let s=0;s<this.manager.tooltips.length;s++){let l=this.manager.tooltips[s],u=this.manager.tooltipViews[s],{dom:c}=u,f=t.pos[s],d=t.size[s];if(!f||f.bottom<=Math.max(n.top,r.top)||f.top>=Math.min(n.bottom,r.bottom)||f.right<Math.max(n.left,r.left)-.1||f.left>Math.min(n.right,r.right)+.1){c.style.top=d0;continue}let p=l.arrow?u.dom.querySelector(".cm-tooltip-arrow"):null,v=p?7:0,g=d.right-d.left,m=(e=iK.get(u))!==null&&e!==void 0?e:d.bottom-d.top,y=u.offset||Gxt,b=this.view.textDirection==Dn.LTR,O=d.width>r.right-r.left?b?r.left:r.right-d.width:b?Math.min(f.left-(p?14:0)+y.x,r.right-g):Math.max(r.left,f.left-g+(p?14:0)-y.x),w=this.above[s];!l.strictSide&&(w?f.top-(d.bottom-d.top)-y.y<r.top:f.bottom+(d.bottom-d.top)+y.y>r.bottom)&&w==r.bottom-f.bottom>f.top-r.top&&(w=this.above[s]=!w);let x=(w?f.top-r.top:r.bottom-f.bottom)-v;if(x<m&&u.resize!==!1){if(x<this.view.defaultLineHeight){c.style.top=d0;continue}iK.set(u,m),c.style.height=(m=x)/o+"px"}else c.style.height&&(c.style.height="");let S=w?f.top-m-v-y.y:f.bottom+v+y.y,T=O+g;if(u.overlap!==!0)for(let $ of a)$.left<T&&$.right>O&&$.top<S+m&&$.bottom>S&&(S=w?$.top-m-2-v:$.bottom+v+2);if(this.position=="absolute"?(c.style.top=(S-t.parent.top)/o+"px",c.style.left=(O-t.parent.left)/i+"px"):(c.style.top=S/o+"px",c.style.left=O/i+"px"),p){let $=f.left+(b?y.x:-y.x)-(O+14-7);p.style.left=$/i+"px"}u.overlap!==!0&&a.push({left:O,top:S,right:T,bottom:S+m}),c.classList.toggle("cm-tooltip-above",w),c.classList.toggle("cm-tooltip-below",!w),u.positioned&&u.positioned(t.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let t of this.manager.tooltipViews)t.dom.style.top=d0}},{eventObservers:{scroll(){this.maybeMeasure()}}}),Hxt=He.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:"7px",width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:"7px solid transparent",borderRight:"7px solid transparent"},".cm-tooltip-above &":{bottom:"-7px","&:before":{borderTop:"7px solid #bbb"},"&:after":{borderTop:"7px solid #f5f5f5",bottom:"1px"}},".cm-tooltip-below &":{top:"-7px","&:before":{borderBottom:"7px solid #bbb"},"&:after":{borderBottom:"7px solid #f5f5f5",top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}}),Gxt={x:0,y:0},pB=Ye.define({enables:[hB,Hxt]}),BC=Ye.define({combine:t=>t.reduce((e,n)=>e.concat(n),[])});class c2{static create(e){return new c2(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new jpe(e,BC,(n,r)=>this.createHostedView(n,r),n=>n.dom.remove())}createHostedView(e,n){let r=e.create(this.view);return r.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(r.dom,n?n.dom.nextSibling:this.dom.firstChild),this.mounted&&r.mount&&r.mount(this.view),r}mount(e){for(let n of this.manager.tooltipViews)n.mount&&n.mount(e);this.mounted=!0}positioned(e){for(let n of this.manager.tooltipViews)n.positioned&&n.positioned(e)}update(e){this.manager.update(e)}destroy(){var e;for(let n of this.manager.tooltipViews)(e=n.destroy)===null||e===void 0||e.call(n)}passProp(e){let n;for(let r of this.manager.tooltipViews){let i=r[e];if(i!==void 0){if(n===void 0)n=i;else if(n!==i)return}}return n}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const jxt=pB.compute([BC],t=>{let e=t.facet(BC);return e.length===0?null:{pos:Math.min(...e.map(n=>n.pos)),end:Math.max(...e.map(n=>{var r;return(r=n.end)!==null&&r!==void 0?r:n.pos})),create:c2.create,above:e[0].above,arrow:e.some(n=>n.arrow)}});class Uxt{constructor(e,n,r,i,o){this.view=e,this.source=n,this.field=r,this.setHover=i,this.hoverTime=o,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:e.dom,time:0},this.checkHover=this.checkHover.bind(this),e.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),e.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let e=Date.now()-this.lastMove.time;e<this.hoverTime?this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime-e):this.startHover()}startHover(){clearTimeout(this.restartTimeout);let{view:e,lastMove:n}=this,r=e.docView.nearest(n.target);if(!r)return;let i,o=1;if(r instanceof dc)i=r.posAtStart;else{if(i=e.posAtCoords(n),i==null)return;let s=e.coordsAtPos(i);if(!s||n.y<s.top||n.y>s.bottom||n.x<s.left-e.defaultCharacterWidth||n.x>s.right+e.defaultCharacterWidth)return;let l=e.bidiSpans(e.state.doc.lineAt(i)).find(c=>c.from<=i&&c.to>=i),u=l&&l.dir==Dn.RTL?-1:1;o=n.x<s.left?-u:u}let a=this.source(e,i,o);if(a!=null&&a.then){let s=this.pending={pos:i};a.then(l=>{this.pending==s&&(this.pending=null,l&&!(Array.isArray(l)&&!l.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(l)?l:[l])}))},l=>to(e.state,l,"hover tooltip"))}else a&&!(Array.isArray(a)&&!a.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(a)?a:[a])})}get tooltip(){let e=this.view.plugin(hB),n=e?e.manager.tooltips.findIndex(r=>r.create==c2.create):-1;return n>-1?e.manager.tooltipViews[n]:null}mousemove(e){var n,r;this.lastMove={x:e.clientX,y:e.clientY,target:e.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:i,tooltip:o}=this;if(i.length&&o&&!Zxt(o.dom,e)||this.pending){let{pos:a}=i[0]||this.pending,s=(r=(n=i[0])===null||n===void 0?void 0:n.end)!==null&&r!==void 0?r:a;(a==s?this.view.posAtCoords(this.lastMove)!=a:!Xxt(this.view,a,s,e.clientX,e.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(e){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:n}=this;if(n.length){let{tooltip:r}=this;r&&r.dom.contains(e.relatedTarget)?this.watchTooltipLeave(r.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(e){let n=r=>{e.removeEventListener("mouseleave",n),this.active.length&&!this.view.dom.contains(r.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};e.addEventListener("mouseleave",n)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const Sw=4;function Zxt(t,e){let n=t.getBoundingClientRect();return e.clientX>=n.left-Sw&&e.clientX<=n.right+Sw&&e.clientY>=n.top-Sw&&e.clientY<=n.bottom+Sw}function Xxt(t,e,n,r,i,o){let a=t.scrollDOM.getBoundingClientRect(),s=t.documentTop+t.documentPadding.top+t.contentHeight;if(a.left>r||a.right<r||a.top>i||Math.min(a.bottom,s)<i)return!1;let l=t.posAtCoords({x:r,y:i},!1);return l>=e&&l<=n}function Yxt(t,e={}){let n=wt.define(),r=kr.define({create(){return[]},update(i,o){if(i.length&&(e.hideOnChange&&(o.docChanged||o.selection)?i=[]:e.hideOn&&(i=i.filter(a=>!e.hideOn(o,a))),o.docChanged)){let a=[];for(let s of i){let l=o.changes.mapPos(s.pos,-1,Gr.TrackDel);if(l!=null){let u=Object.assign(Object.create(null),s);u.pos=l,u.end!=null&&(u.end=o.changes.mapPos(u.end)),a.push(u)}}i=a}for(let a of o.effects)a.is(n)&&(i=a.value),a.is(qxt)&&(i=[]);return i},provide:i=>BC.from(i)});return[r,or.define(i=>new Uxt(i,t,r,n,e.hoverTime||300)),jxt]}function Upe(t,e){let n=t.plugin(hB);if(!n)return null;let r=n.manager.tooltips.indexOf(e);return r<0?null:n.manager.tooltipViews[r]}const qxt=wt.define(),oK=Ye.define({combine(t){let e,n;for(let r of t)e=e||r.topContainer,n=n||r.bottomContainer;return{topContainer:e,bottomContainer:n}}});function Mb(t,e){let n=t.plugin(Zpe),r=n?n.specs.indexOf(e):-1;return r>-1?n.panels[r]:null}const Zpe=or.fromClass(class{constructor(t){this.input=t.state.facet(Ib),this.specs=this.input.filter(n=>n),this.panels=this.specs.map(n=>n(t));let e=t.state.facet(oK);this.top=new Cw(t,!0,e.topContainer),this.bottom=new Cw(t,!1,e.bottomContainer),this.top.sync(this.panels.filter(n=>n.top)),this.bottom.sync(this.panels.filter(n=>!n.top));for(let n of this.panels)n.dom.classList.add("cm-panel"),n.mount&&n.mount()}update(t){let e=t.state.facet(oK);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new Cw(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new Cw(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=t.state.facet(Ib);if(n!=this.input){let r=n.filter(l=>l),i=[],o=[],a=[],s=[];for(let l of r){let u=this.specs.indexOf(l),c;u<0?(c=l(t.view),s.push(c)):(c=this.panels[u],c.update&&c.update(t)),i.push(c),(c.top?o:a).push(c)}this.specs=r,this.panels=i,this.top.sync(o),this.bottom.sync(a);for(let l of s)l.dom.classList.add("cm-panel"),l.mount&&l.mount()}else for(let r of this.panels)r.update&&r.update(t)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:t=>He.scrollMargins.of(e=>{let n=e.plugin(t);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})});class Cw{constructor(e,n,r){this.view=e,this.top=n,this.container=r,this.dom=void 0,this.classes="",this.panels=[],this.syncClasses()}sync(e){for(let n of this.panels)n.destroy&&e.indexOf(n)<0&&n.destroy();this.panels=e,this.syncDOM()}syncDOM(){if(this.panels.length==0){this.dom&&(this.dom.remove(),this.dom=void 0);return}if(!this.dom){this.dom=document.createElement("div"),this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom",this.dom.style[this.top?"top":"bottom"]="0";let n=this.container||this.view.dom;n.insertBefore(this.dom,this.top?n.firstChild:null)}let e=this.dom.firstChild;for(let n of this.panels)if(n.dom.parentNode==this.dom){for(;e!=n.dom;)e=aK(e);e=e.nextSibling}else this.dom.insertBefore(n.dom,e);for(;e;)e=aK(e)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!(!this.container||this.classes==this.view.themeClasses)){for(let e of this.classes.split(" "))e&&this.container.classList.remove(e);for(let e of(this.classes=this.view.themeClasses).split(" "))e&&this.container.classList.add(e)}}}function aK(t){let e=t.nextSibling;return t.remove(),e}const Ib=Ye.define({enables:Zpe});class hu extends vh{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}hu.prototype.elementClass="";hu.prototype.toDOM=void 0;hu.prototype.mapMode=Gr.TrackBefore;hu.prototype.startSide=hu.prototype.endSide=-1;hu.prototype.point=!0;const zx=Ye.define(),Kxt={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Jt.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},Py=Ye.define();function Jxt(t){return[Xpe(),Py.of(Object.assign(Object.assign({},Kxt),t))]}const sK=Ye.define({combine:t=>t.some(e=>e)});function Xpe(t){return[eSt]}const eSt=or.fromClass(class{constructor(t){this.view=t,this.prevViewport=t.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=t.state.facet(Py).map(e=>new uK(t,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!t.state.facet(sK),this.fixed&&(this.dom.style.position="sticky"),this.syncGutters(!1),t.scrollDOM.insertBefore(this.dom,t.contentDOM)}update(t){if(this.updateGutters(t)){let e=this.prevViewport,n=t.view.viewport,r=Math.min(e.to,n.to)-Math.max(e.from,n.from);this.syncGutters(r<(n.to-n.from)*.8)}t.geometryChanged&&(this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px"),this.view.state.facet(sK)!=!this.fixed&&(this.fixed=!this.fixed,this.dom.style.position=this.fixed?"sticky":""),this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;t&&this.dom.remove();let n=Jt.iter(this.view.state.facet(zx),this.view.viewport.from),r=[],i=this.gutters.map(o=>new tSt(o,this.view.viewport,-this.view.documentPadding.top));for(let o of this.view.viewportLineBlocks)if(r.length&&(r=[]),Array.isArray(o.type)){let a=!0;for(let s of o.type)if(s.type==Mi.Text&&a){BN(n,r,s.from);for(let l of i)l.line(this.view,s,r);a=!1}else if(s.widget)for(let l of i)l.widget(this.view,s)}else if(o.type==Mi.Text){BN(n,r,o.from);for(let a of i)a.line(this.view,o,r)}else if(o.widget)for(let a of i)a.widget(this.view,o);for(let o of i)o.finish();t&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(t){let e=t.startState.facet(Py),n=t.state.facet(Py),r=t.docChanged||t.heightChanged||t.viewportChanged||!Jt.eq(t.startState.facet(zx),t.state.facet(zx),t.view.viewport.from,t.view.viewport.to);if(e==n)for(let i of this.gutters)i.update(t)&&(r=!0);else{r=!0;let i=[];for(let o of n){let a=e.indexOf(o);a<0?i.push(new uK(this.view,o)):(this.gutters[a].update(t),i.push(this.gutters[a]))}for(let o of this.gutters)o.dom.remove(),i.indexOf(o)<0&&o.destroy();for(let o of i)this.dom.appendChild(o.dom);this.gutters=i}return r}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove()}},{provide:t=>He.scrollMargins.of(e=>{let n=e.plugin(t);return!n||n.gutters.length==0||!n.fixed?null:e.textDirection==Dn.LTR?{left:n.dom.offsetWidth*e.scaleX}:{right:n.dom.offsetWidth*e.scaleX}})});function lK(t){return Array.isArray(t)?t:[t]}function BN(t,e,n){for(;t.value&&t.from<=n;)t.from==n&&e.push(t.value),t.next()}class tSt{constructor(e,n,r){this.gutter=e,this.height=r,this.i=0,this.cursor=Jt.iter(e.markers,n.from)}addElement(e,n,r){let{gutter:i}=this,o=(n.top-this.height)/e.scaleY,a=n.height/e.scaleY;if(this.i==i.elements.length){let s=new Ype(e,a,o,r);i.elements.push(s),i.dom.appendChild(s.dom)}else i.elements[this.i].update(e,a,o,r);this.height=n.bottom,this.i++}line(e,n,r){let i=[];BN(this.cursor,i,n.from),r.length&&(i=i.concat(r));let o=this.gutter.config.lineMarker(e,n,i);o&&i.unshift(o);let a=this.gutter;i.length==0&&!a.config.renderEmptyElements||this.addElement(e,n,i)}widget(e,n){let r=this.gutter.config.widgetMarker(e,n.widget,n);r&&this.addElement(e,n,[r])}finish(){let e=this.gutter;for(;e.elements.length>this.i;){let n=e.elements.pop();e.dom.removeChild(n.dom),n.destroy()}}}class uK{constructor(e,n){this.view=e,this.config=n,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let r in n.domEventHandlers)this.dom.addEventListener(r,i=>{let o=i.target,a;if(o!=this.dom&&this.dom.contains(o)){for(;o.parentNode!=this.dom;)o=o.parentNode;let l=o.getBoundingClientRect();a=(l.top+l.bottom)/2}else a=i.clientY;let s=e.lineBlockAtHeight(a-e.documentTop);n.domEventHandlers[r](e,s,i)&&i.preventDefault()});this.markers=lK(n.markers(e)),n.initialSpacer&&(this.spacer=new Ype(e,0,0,[n.initialSpacer(e)]),this.dom.appendChild(this.spacer.dom),this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none")}update(e){let n=this.markers;if(this.markers=lK(this.config.markers(e.view)),this.spacer&&this.config.updateSpacer){let i=this.config.updateSpacer(this.spacer.markers[0],e);i!=this.spacer.markers[0]&&this.spacer.update(e.view,0,0,[i])}let r=e.view.viewport;return!Jt.eq(this.markers,n,r.from,r.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(e):!1)}destroy(){for(let e of this.elements)e.destroy()}}class Ype{constructor(e,n,r,i){this.height=-1,this.above=0,this.markers=[],this.dom=document.createElement("div"),this.dom.className="cm-gutterElement",this.update(e,n,r,i)}update(e,n,r,i){this.height!=n&&(this.height=n,this.dom.style.height=n+"px"),this.above!=r&&(this.dom.style.marginTop=(this.above=r)?r+"px":""),nSt(this.markers,i)||this.setMarkers(e,i)}setMarkers(e,n){let r="cm-gutterElement",i=this.dom.firstChild;for(let o=0,a=0;;){let s=a,l=o<n.length?n[o++]:null,u=!1;if(l){let c=l.elementClass;c&&(r+=" "+c);for(let f=a;f<this.markers.length;f++)if(this.markers[f].compare(l)){s=f,u=!0;break}}else s=this.markers.length;for(;a<s;){let c=this.markers[a++];if(c.toDOM){c.destroy(i);let f=i.nextSibling;i.remove(),i=f}}if(!l)break;l.toDOM&&(u?i=i.nextSibling:this.dom.insertBefore(l.toDOM(e),i)),u&&a++}this.dom.className=r,this.markers=n}destroy(){this.setMarkers(null,[])}}function nSt(t,e){if(t.length!=e.length)return!1;for(let n=0;n<t.length;n++)if(!t[n].compare(e[n]))return!1;return!0}const rSt=Ye.define(),Kp=Ye.define({combine(t){return gl(t,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,n){let r=Object.assign({},e);for(let i in n){let o=r[i],a=n[i];r[i]=o?(s,l,u)=>o(s,l,u)||a(s,l,u):a}return r}})}});class vI extends hu{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function gI(t,e){return t.state.facet(Kp).formatNumber(e,t.state)}const iSt=Py.compute([Kp],t=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(rSt)},lineMarker(e,n,r){return r.some(i=>i.toDOM)?null:new vI(gI(e,e.state.doc.lineAt(n.from).number))},widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(Kp)!=e.state.facet(Kp),initialSpacer(e){return new vI(gI(e,cK(e.state.doc.lines)))},updateSpacer(e,n){let r=gI(n.view,cK(n.view.state.doc.lines));return r==e.number?e:new vI(r)},domEventHandlers:t.facet(Kp).domEventHandlers}));function oSt(t={}){return[Kp.of(t),Xpe(),iSt]}function cK(t){let e=9;for(;e<t;)e=e*10+9;return e}const aSt=new class extends hu{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},sSt=zx.compute(["selection"],t=>{let e=[],n=-1;for(let r of t.selection.ranges){let i=t.doc.lineAt(r.head).from;i>n&&(n=i,e.push(aSt.range(i)))}return Jt.of(e)});function lSt(){return sSt}const qpe=1024;let uSt=0;class mI{constructor(e,n){this.from=e,this.to=n}}class Lt{constructor(e={}){this.id=uSt++,this.perNode=!!e.perNode,this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");return typeof e!="function"&&(e=uo.match(e)),n=>{let r=e(n);return r===void 0?null:[this,r]}}}Lt.closedBy=new Lt({deserialize:t=>t.split(" ")});Lt.openedBy=new Lt({deserialize:t=>t.split(" ")});Lt.group=new Lt({deserialize:t=>t.split(" ")});Lt.isolate=new Lt({deserialize:t=>{if(t&&t!="rtl"&&t!="ltr"&&t!="auto")throw new RangeError("Invalid value for isolate: "+t);return t||"auto"}});Lt.contextHash=new Lt({perNode:!0});Lt.lookAhead=new Lt({perNode:!0});Lt.mounted=new Lt({perNode:!0});class VC{constructor(e,n,r){this.tree=e,this.overlay=n,this.parser=r}static get(e){return e&&e.props&&e.props[Lt.mounted.id]}}const cSt=Object.create(null);class uo{constructor(e,n,r,i=0){this.name=e,this.props=n,this.id=r,this.flags=i}static define(e){let n=e.props&&e.props.length?Object.create(null):cSt,r=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),i=new uo(e.name||"",n,e.id,r);if(e.props){for(let o of e.props)if(Array.isArray(o)||(o=o(i)),o){if(o[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[o[0].id]=o[1]}}return i}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return!0;let n=this.prop(Lt.group);return n?n.indexOf(e)>-1:!1}return this.id==e}static match(e){let n=Object.create(null);for(let r in e)for(let i of r.split(" "))n[i]=e[r];return r=>{for(let i=r.prop(Lt.group),o=-1;o<(i?i.length:0);o++){let a=n[o<0?r.name:i[o]];if(a)return a}}}}uo.none=new uo("",Object.create(null),0,8);class vB{constructor(e){this.types=e;for(let n=0;n<e.length;n++)if(e[n].id!=n)throw new RangeError("Node type ids should correspond to array positions when creating a node set")}extend(...e){let n=[];for(let r of this.types){let i=null;for(let o of e){let a=o(r);a&&(i||(i=Object.assign({},r.props)),i[a[0].id]=a[1])}n.push(i?new uo(r.name,i,r.id,r.flags):r)}return new vB(n)}}const Tw=new WeakMap,fK=new WeakMap;var br;(function(t){t[t.ExcludeBuffers=1]="ExcludeBuffers",t[t.IncludeAnonymous=2]="IncludeAnonymous",t[t.IgnoreMounts=4]="IgnoreMounts",t[t.IgnoreOverlays=8]="IgnoreOverlays"})(br||(br={}));class fr{constructor(e,n,r,i,o){if(this.type=e,this.children=n,this.positions=r,this.length=i,this.props=null,o&&o.length){this.props=Object.create(null);for(let[a,s]of o)this.props[typeof a=="number"?a:a.id]=s}}toString(){let e=VC.get(this);if(e&&!e.overlay)return e.tree.toString();let n="";for(let r of this.children){let i=r.toString();i&&(n&&(n+=","),n+=i)}return this.type.name?(/\W/.test(this.type.name)&&!this.type.isError?JSON.stringify(this.type.name):this.type.name)+(n.length?"("+n+")":""):n}cursor(e=0){return new zN(this.topNode,e)}cursorAt(e,n=0,r=0){let i=Tw.get(this)||this.topNode,o=new zN(i);return o.moveTo(e,n),Tw.set(this,o._tree),o}get topNode(){return new so(this,0,0,null)}resolve(e,n=0){let r=Db(Tw.get(this)||this.topNode,e,n,!1);return Tw.set(this,r),r}resolveInner(e,n=0){let r=Db(fK.get(this)||this.topNode,e,n,!0);return fK.set(this,r),r}resolveStack(e,n=0){return hSt(this,e,n)}iterate(e){let{enter:n,leave:r,from:i=0,to:o=this.length}=e,a=e.mode||0,s=(a&br.IncludeAnonymous)>0;for(let l=this.cursor(a|br.IncludeAnonymous);;){let u=!1;if(l.from<=o&&l.to>=i&&(!s&&l.type.isAnonymous||n(l)!==!1)){if(l.firstChild())continue;u=!0}for(;u&&r&&(s||!l.type.isAnonymous)&&r(l),!l.nextSibling();){if(!l.parent())return;u=!0}}}prop(e){return e.perNode?this.props?this.props[e.id]:void 0:this.type.prop(e)}get propValues(){let e=[];if(this.props)for(let n in this.props)e.push([+n,this.props[n]]);return e}balance(e={}){return this.children.length<=8?this:yB(uo.none,this.children,this.positions,0,this.children.length,0,this.length,(n,r,i)=>new fr(this.type,n,r,i,this.propValues),e.makeTree||((n,r,i)=>new fr(uo.none,n,r,i)))}static build(e){return pSt(e)}}fr.empty=new fr(uo.none,[],[],0);class gB{constructor(e,n){this.buffer=e,this.index=n}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new gB(this.buffer,this.index)}}class Wc{constructor(e,n,r){this.buffer=e,this.length=n,this.set=r}get type(){return uo.none}toString(){let e=[];for(let n=0;n<this.buffer.length;)e.push(this.childString(n)),n=this.buffer[n+3];return e.join(",")}childString(e){let n=this.buffer[e],r=this.buffer[e+3],i=this.set.types[n],o=i.name;if(/\W/.test(o)&&!i.isError&&(o=JSON.stringify(o)),e+=4,r==e)return o;let a=[];for(;e<r;)a.push(this.childString(e)),e=this.buffer[e+3];return o+"("+a.join(",")+")"}findChild(e,n,r,i,o){let{buffer:a}=this,s=-1;for(let l=e;l!=n&&!(Kpe(o,i,a[l+1],a[l+2])&&(s=l,r>0));l=a[l+3]);return s}slice(e,n,r){let i=this.buffer,o=new Uint16Array(n-e),a=0;for(let s=e,l=0;s<n;){o[l++]=i[s++],o[l++]=i[s++]-r;let u=o[l++]=i[s++]-r;o[l++]=i[s++]-e,a=Math.max(a,u)}return new Wc(o,a,this.set)}}function Kpe(t,e,n,r){switch(t){case-2:return n<e;case-1:return r>=e&&n<e;case 0:return n<e&&r>e;case 1:return n<=e&&r>e;case 2:return r>e;case 4:return!0}}function Db(t,e,n,r){for(var i;t.from==t.to||(n<1?t.from>=e:t.from>e)||(n>-1?t.to<=e:t.to<e);){let a=!r&&t instanceof so&&t.index<0?null:t.parent;if(!a)return t;t=a}let o=r?0:br.IgnoreOverlays;if(r)for(let a=t,s=a.parent;s;a=s,s=a.parent)a instanceof so&&a.index<0&&((i=s.enter(e,n,o))===null||i===void 0?void 0:i.from)!=a.from&&(t=s);for(;;){let a=t.enter(e,n,o);if(!a)return t;t=a}}class Jpe{cursor(e=0){return new zN(this,e)}getChild(e,n=null,r=null){let i=dK(this,e,n,r);return i.length?i[0]:null}getChildren(e,n=null,r=null){return dK(this,e,n,r)}resolve(e,n=0){return Db(this,e,n,!1)}resolveInner(e,n=0){return Db(this,e,n,!0)}matchContext(e){return VN(this,e)}enterUnfinishedNodesBefore(e){let n=this.childBefore(e),r=this;for(;n;){let i=n.lastChild;if(!i||i.to!=n.to)break;i.type.isError&&i.from==i.to?(r=n,n=i.prevSibling):n=i}return r}get node(){return this}get next(){return this.parent}}class so extends Jpe{constructor(e,n,r,i){super(),this._tree=e,this.from=n,this.index=r,this._parent=i}get type(){return this._tree.type}get name(){return this._tree.type.name}get to(){return this.from+this._tree.length}nextChild(e,n,r,i,o=0){for(let a=this;;){for(let{children:s,positions:l}=a._tree,u=n>0?s.length:-1;e!=u;e+=n){let c=s[e],f=l[e]+a.from;if(Kpe(i,r,f,f+c.length)){if(c instanceof Wc){if(o&br.ExcludeBuffers)continue;let d=c.findChild(0,c.buffer.length,n,r-f,i);if(d>-1)return new Xs(new fSt(a,c,e,f),null,d)}else if(o&br.IncludeAnonymous||!c.type.isAnonymous||mB(c)){let d;if(!(o&br.IgnoreMounts)&&(d=VC.get(c))&&!d.overlay)return new so(d.tree,f,e,a);let p=new so(c,f,e,a);return o&br.IncludeAnonymous||!p.type.isAnonymous?p:p.nextChild(n<0?c.children.length-1:0,n,r,i)}}}if(o&br.IncludeAnonymous||!a.type.isAnonymous||(a.index>=0?e=a.index+n:e=n<0?-1:a._parent._tree.children.length,a=a._parent,!a))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,n,r=0){let i;if(!(r&br.IgnoreOverlays)&&(i=VC.get(this._tree))&&i.overlay){let o=e-this.from;for(let{from:a,to:s}of i.overlay)if((n>0?a<=o:a<o)&&(n<0?s>=o:s>o))return new so(i.tree,i.overlay[0].from+this.from,-1,this)}return this.nextChild(0,1,e,n,r)}nextSignificantParent(){let e=this;for(;e.type.isAnonymous&&e._parent;)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}get tree(){return this._tree}toTree(){return this._tree}toString(){return this._tree.toString()}}function dK(t,e,n,r){let i=t.cursor(),o=[];if(!i.firstChild())return o;if(n!=null){for(let a=!1;!a;)if(a=i.type.is(n),!i.nextSibling())return o}for(;;){if(r!=null&&i.type.is(r))return o;if(i.type.is(e)&&o.push(i.node),!i.nextSibling())return r==null?o:[]}}function VN(t,e,n=e.length-1){for(let r=t.parent;n>=0;r=r.parent){if(!r)return!1;if(!r.type.isAnonymous){if(e[n]&&e[n]!=r.name)return!1;n--}}return!0}class fSt{constructor(e,n,r,i){this.parent=e,this.buffer=n,this.index=r,this.start=i}}class Xs extends Jpe{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,n,r){super(),this.context=e,this._parent=n,this.index=r,this.type=e.buffer.set.types[e.buffer.buffer[r]]}child(e,n,r){let{buffer:i}=this.context,o=i.findChild(this.index+4,i.buffer[this.index+3],e,n-this.context.start,r);return o<0?null:new Xs(this.context,this,o)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,n,r=0){if(r&br.ExcludeBuffers)return null;let{buffer:i}=this.context,o=i.findChild(this.index+4,i.buffer[this.index+3],n>0?1:-1,e-this.context.start,n);return o<0?null:new Xs(this.context,this,o)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context,n=e.buffer[this.index+3];return n<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length)?new Xs(this.context,this._parent,n):this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context,n=this._parent?this._parent.index+4:0;return this.index==n?this.externalSibling(-1):new Xs(this.context,this._parent,e.findChild(n,this.index,-1,0,4))}get tree(){return null}toTree(){let e=[],n=[],{buffer:r}=this.context,i=this.index+4,o=r.buffer[this.index+3];if(o>i){let a=r.buffer[this.index+1];e.push(r.slice(i,o,a)),n.push(0)}return new fr(this.type,e,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function eve(t){if(!t.length)return null;let e=0,n=t[0];for(let o=1;o<t.length;o++){let a=t[o];(a.from>n.from||a.to<n.to)&&(n=a,e=o)}let r=n instanceof so&&n.index<0?null:n.parent,i=t.slice();return r?i[e]=r:i.splice(e,1),new dSt(i,n)}class dSt{constructor(e,n){this.heads=e,this.node=n}get next(){return eve(this.heads)}}function hSt(t,e,n){let r=t.resolveInner(e,n),i=null;for(let o=r instanceof so?r:r.context.parent;o;o=o.parent)if(o.index<0){let a=o.parent;(i||(i=[r])).push(a.resolve(e,n)),o=a}else{let a=VC.get(o.tree);if(a&&a.overlay&&a.overlay[0].from<=e&&a.overlay[a.overlay.length-1].to>=e){let s=new so(a.tree,a.overlay[0].from+o.from,-1,o);(i||(i=[r])).push(Db(s,e,n,!1))}}return i?eve(i):r}class zN{get name(){return this.type.name}constructor(e,n=0){if(this.mode=n,this.buffer=null,this.stack=[],this.index=0,this.bufferNode=null,e instanceof so)this.yieldNode(e);else{this._tree=e.context.parent,this.buffer=e.context;for(let r=e._parent;r;r=r._parent)this.stack.unshift(r.index);this.bufferNode=e,this.yieldBuf(e.index)}}yieldNode(e){return e?(this._tree=e,this.type=e.type,this.from=e.from,this.to=e.to,!0):!1}yieldBuf(e,n){this.index=e;let{start:r,buffer:i}=this.buffer;return this.type=n||i.set.types[i.buffer[e]],this.from=r+i.buffer[e+1],this.to=r+i.buffer[e+2],!0}yield(e){return e?e instanceof so?(this.buffer=null,this.yieldNode(e)):(this.buffer=e.context,this.yieldBuf(e.index,e.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,n,r){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,n,r,this.mode));let{buffer:i}=this.buffer,o=i.findChild(this.index+4,i.buffer[this.index+3],e,n-this.buffer.start,r);return o<0?!1:(this.stack.push(this.index),this.yieldBuf(o))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,n,r=this.mode){return this.buffer?r&br.ExcludeBuffers?!1:this.enterChild(1,e,n):this.yield(this._tree.enter(e,n,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&br.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&br.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(e)}sibling(e){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode)):!1;let{buffer:n}=this.buffer,r=this.stack.length-1;if(e<0){let i=r<0?0:this.stack[r]+4;if(this.index!=i)return this.yieldBuf(n.findChild(i,this.index,-1,0,4))}else{let i=n.buffer[this.index+3];if(i<(r<0?n.buffer.length:n.buffer[this.stack[r]+3]))return this.yieldBuf(i)}return r<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let n,r,{buffer:i}=this;if(i){if(e>0){if(this.index<i.buffer.buffer.length)return!1}else for(let o=0;o<this.index;o++)if(i.buffer.buffer[o+3]<this.index)return!1;({index:n,parent:r}=i)}else({index:n,_parent:r}=this._tree);for(;r;{index:n,_parent:r}=r)if(n>-1)for(let o=n+e,a=e<0?-1:r._tree.children.length;o!=a;o+=e){let s=r._tree.children[o];if(this.mode&br.IncludeAnonymous||s instanceof Wc||!s.type.isAnonymous||mB(s))return!1}return!0}move(e,n){if(n&&this.enterChild(e,0,4))return!0;for(;;){if(this.sibling(e))return!0;if(this.atLastNode(e)||!this.parent())return!1}}next(e=!0){return this.move(1,e)}prev(e=!0){return this.move(-1,e)}moveTo(e,n=0){for(;(this.from==this.to||(n<1?this.from>=e:this.from>e)||(n>-1?this.to<=e:this.to<e))&&this.parent(););for(;this.enterChild(1,e,n););return this}get node(){if(!this.buffer)return this._tree;let e=this.bufferNode,n=null,r=0;if(e&&e.context==this.buffer)e:for(let i=this.index,o=this.stack.length;o>=0;){for(let a=e;a;a=a._parent)if(a.index==i){if(i==this.index)return a;n=a,r=o+1;break e}i=this.stack[--o]}for(let i=r;i<this.stack.length;i++)n=new Xs(this.buffer,n,this.stack[i]);return this.bufferNode=new Xs(this.buffer,n,this.index)}get tree(){return this.buffer?null:this._tree._tree}iterate(e,n){for(let r=0;;){let i=!1;if(this.type.isAnonymous||e(this)!==!1){if(this.firstChild()){r++;continue}this.type.isAnonymous||(i=!0)}for(;i&&n&&n(this),i=this.type.isAnonymous,!this.nextSibling();){if(!r)return;this.parent(),r--,i=!0}}}matchContext(e){if(!this.buffer)return VN(this.node,e);let{buffer:n}=this.buffer,{types:r}=n.set;for(let i=e.length-1,o=this.stack.length-1;i>=0;o--){if(o<0)return VN(this.node,e,i);let a=r[n.buffer[this.stack[o]]];if(!a.isAnonymous){if(e[i]&&e[i]!=a.name)return!1;i--}}return!0}}function mB(t){return t.children.some(e=>e instanceof Wc||!e.type.isAnonymous||mB(e))}function pSt(t){var e;let{buffer:n,nodeSet:r,maxBufferLength:i=qpe,reused:o=[],minRepeatType:a=r.types.length}=t,s=Array.isArray(n)?new gB(n,n.length):n,l=r.types,u=0,c=0;function f(x,S,T,$,A,P){let{id:M,start:I,end:R,size:L}=s,D=c;for(;L<0;)if(s.next(),L==-1){let j=o[M];T.push(j),$.push(I-x);return}else if(L==-3){u=M;return}else if(L==-4){c=M;return}else throw new RangeError(`Unrecognized record size: ${L}`);let B=l[M],F,z,W=I-x;if(R-I<=i&&(z=m(s.pos-S,A))){let j=new Uint16Array(z.size-z.skip),H=s.pos-z.size,Z=j.length;for(;s.pos>H;)Z=y(z.start,j,Z);F=new Wc(j,R-z.start,r),W=z.start-x}else{let j=s.pos-L;s.next();let H=[],Z=[],J=M>=a?M:-1,se=0,oe=R;for(;s.pos>j;)J>=0&&s.id==J&&s.size>=0?(s.end<=oe-i&&(v(H,Z,I,se,s.end,oe,J,D),se=H.length,oe=s.end),s.next()):P>2500?d(I,j,H,Z):f(I,j,H,Z,J,P+1);if(J>=0&&se>0&&se<H.length&&v(H,Z,I,se,I,oe,J,D),H.reverse(),Z.reverse(),J>-1&&se>0){let de=p(B);F=yB(B,H,Z,0,H.length,0,R-I,de,de)}else F=g(B,H,Z,R-I,D-R)}T.push(F),$.push(W)}function d(x,S,T,$){let A=[],P=0,M=-1;for(;s.pos>S;){let{id:I,start:R,end:L,size:D}=s;if(D>4)s.next();else{if(M>-1&&R<M)break;M<0&&(M=L-i),A.push(I,R,L),P++,s.next()}}if(P){let I=new Uint16Array(P*4),R=A[A.length-2];for(let L=A.length-3,D=0;L>=0;L-=3)I[D++]=A[L],I[D++]=A[L+1]-R,I[D++]=A[L+2]-R,I[D++]=D;T.push(new Wc(I,A[2]-R,r)),$.push(R-x)}}function p(x){return(S,T,$)=>{let A=0,P=S.length-1,M,I;if(P>=0&&(M=S[P])instanceof fr){if(!P&&M.type==x&&M.length==$)return M;(I=M.prop(Lt.lookAhead))&&(A=T[P]+M.length+I)}return g(x,S,T,$,A)}}function v(x,S,T,$,A,P,M,I){let R=[],L=[];for(;x.length>$;)R.push(x.pop()),L.push(S.pop()+T-A);x.push(g(r.types[M],R,L,P-A,I-P)),S.push(A-T)}function g(x,S,T,$,A=0,P){if(u){let M=[Lt.contextHash,u];P=P?[M].concat(P):[M]}if(A>25){let M=[Lt.lookAhead,A];P=P?[M].concat(P):[M]}return new fr(x,S,T,$,P)}function m(x,S){let T=s.fork(),$=0,A=0,P=0,M=T.end-i,I={size:0,start:0,skip:0};e:for(let R=T.pos-x;T.pos>R;){let L=T.size;if(T.id==S&&L>=0){I.size=$,I.start=A,I.skip=P,P+=4,$+=4,T.next();continue}let D=T.pos-L;if(L<0||D<R||T.start<M)break;let B=T.id>=a?4:0,F=T.start;for(T.next();T.pos>D;){if(T.size<0)if(T.size==-3)B+=4;else break e;else T.id>=a&&(B+=4);T.next()}A=F,$+=L,P+=B}return(S<0||$==x)&&(I.size=$,I.start=A,I.skip=P),I.size>4?I:void 0}function y(x,S,T){let{id:$,start:A,end:P,size:M}=s;if(s.next(),M>=0&&$<a){let I=T;if(M>4){let R=s.pos-(M-4);for(;s.pos>R;)T=y(x,S,T)}S[--T]=I,S[--T]=P-x,S[--T]=A-x,S[--T]=$}else M==-3?u=$:M==-4&&(c=$);return T}let b=[],O=[];for(;s.pos>0;)f(t.start||0,t.bufferStart||0,b,O,-1,0);let w=(e=t.length)!==null&&e!==void 0?e:b.length?O[0]+b[0].length:0;return new fr(l[t.topID],b.reverse(),O.reverse(),w)}const hK=new WeakMap;function Fx(t,e){if(!t.isAnonymous||e instanceof Wc||e.type!=t)return 1;let n=hK.get(e);if(n==null){n=1;for(let r of e.children){if(r.type!=t||!(r instanceof fr)){n=1;break}n+=Fx(t,r)}hK.set(e,n)}return n}function yB(t,e,n,r,i,o,a,s,l){let u=0;for(let v=r;v<i;v++)u+=Fx(t,e[v]);let c=Math.ceil(u*1.5/8),f=[],d=[];function p(v,g,m,y,b){for(let O=m;O<y;){let w=O,x=g[O],S=Fx(t,v[O]);for(O++;O<y;O++){let T=Fx(t,v[O]);if(S+T>=c)break;S+=T}if(O==w+1){if(S>c){let T=v[w];p(T.children,T.positions,0,T.children.length,g[w]+b);continue}f.push(v[w])}else{let T=g[O-1]+v[O-1].length-x;f.push(yB(t,v,g,w,O,x,T,null,l))}d.push(x+b-o)}}return p(e,n,r,i,0),(s||l)(f,d,a)}class vSt{constructor(){this.map=new WeakMap}setBuffer(e,n,r){let i=this.map.get(e);i||this.map.set(e,i=new Map),i.set(n,r)}getBuffer(e,n){let r=this.map.get(e);return r&&r.get(n)}set(e,n){e instanceof Xs?this.setBuffer(e.context.buffer,e.index,n):e instanceof so&&this.map.set(e.tree,n)}get(e){return e instanceof Xs?this.getBuffer(e.context.buffer,e.index):e instanceof so?this.map.get(e.tree):void 0}cursorSet(e,n){e.buffer?this.setBuffer(e.buffer.buffer,e.index,n):this.map.set(e.tree,n)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class jd{constructor(e,n,r,i,o=!1,a=!1){this.from=e,this.to=n,this.tree=r,this.offset=i,this.open=(o?1:0)|(a?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,n=[],r=!1){let i=[new jd(0,e.length,e,0,!1,r)];for(let o of n)o.to>e.length&&i.push(o);return i}static applyChanges(e,n,r=128){if(!n.length)return e;let i=[],o=1,a=e.length?e[0]:null;for(let s=0,l=0,u=0;;s++){let c=s<n.length?n[s]:null,f=c?c.fromA:1e9;if(f-l>=r)for(;a&&a.from<f;){let d=a;if(l>=d.from||f<=d.to||u){let p=Math.max(d.from,l)-u,v=Math.min(d.to,f)-u;d=p>=v?null:new jd(p,v,d.tree,d.offset+u,s>0,!!c)}if(d&&i.push(d),a.to>f)break;a=o<e.length?e[o++]:null}if(!c)break;l=c.toA,u=c.toA-c.toB}return i}}class tve{startParse(e,n,r){return typeof e=="string"&&(e=new gSt(e)),r=r?r.length?r.map(i=>new mI(i.from,i.to)):[new mI(0,0)]:[new mI(0,e.length)],this.createParse(e,n||[],r)}parse(e,n,r){let i=this.startParse(e,n,r);for(;;){let o=i.advance();if(o)return o}}}class gSt{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return!1}read(e,n){return this.string.slice(e,n)}}new Lt({perNode:!0});let mSt=0;class zs{constructor(e,n,r){this.set=e,this.base=n,this.modified=r,this.id=mSt++}static define(e){if(e!=null&&e.base)throw new Error("Can not derive from a modified tag");let n=new zs([],null,[]);if(n.set.push(n),e)for(let r of e.set)n.set.push(r);return n}static defineModifier(){let e=new zC;return n=>n.modified.indexOf(e)>-1?n:zC.get(n.base||n,n.modified.concat(e).sort((r,i)=>r.id-i.id))}}let ySt=0;class zC{constructor(){this.instances=[],this.id=ySt++}static get(e,n){if(!n.length)return e;let r=n[0].instances.find(s=>s.base==e&&bSt(n,s.modified));if(r)return r;let i=[],o=new zs(i,e,n);for(let s of n)s.instances.push(o);let a=_St(n);for(let s of e.set)if(!s.modified.length)for(let l of a)i.push(zC.get(s,l));return o}}function bSt(t,e){return t.length==e.length&&t.every((n,r)=>n==e[r])}function _St(t){let e=[[]];for(let n=0;n<t.length;n++)for(let r=0,i=e.length;r<i;r++)e.push(e[r].concat(t[n]));return e.sort((n,r)=>r.length-n.length)}function bB(t){let e=Object.create(null);for(let n in t){let r=t[n];Array.isArray(r)||(r=[r]);for(let i of n.split(" "))if(i){let o=[],a=2,s=i;for(let f=0;;){if(s=="..."&&f>0&&f+3==i.length){a=1;break}let d=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(s);if(!d)throw new RangeError("Invalid path: "+i);if(o.push(d[0]=="*"?"":d[0][0]=='"'?JSON.parse(d[0]):d[0]),f+=d[0].length,f==i.length)break;let p=i[f++];if(f==i.length&&p=="!"){a=0;break}if(p!="/")throw new RangeError("Invalid path: "+i);s=i.slice(f)}let l=o.length-1,u=o[l];if(!u)throw new RangeError("Invalid path: "+i);let c=new FC(r,a,l>0?o.slice(0,l):null);e[u]=c.sort(e[u])}}return nve.add(e)}const nve=new Lt;class FC{constructor(e,n,r,i){this.tags=e,this.mode=n,this.context=r,this.next=i}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(e){return!e||e.depth<this.depth?(this.next=e,this):(e.next=this.sort(e.next),e)}get depth(){return this.context?this.context.length:0}}FC.empty=new FC([],2,null);function rve(t,e){let n=Object.create(null);for(let o of t)if(!Array.isArray(o.tag))n[o.tag.id]=o.class;else for(let a of o.tag)n[a.id]=o.class;let{scope:r,all:i=null}=e||{};return{style:o=>{let a=i;for(let s of o)for(let l of s.set){let u=n[l.id];if(u){a=a?a+" "+u:u;break}}return a},scope:r}}function OSt(t,e){let n=null;for(let r of t){let i=r.style(e);i&&(n=n?n+" "+i:i)}return n}function wSt(t,e,n,r=0,i=t.length){let o=new xSt(r,Array.isArray(e)?e:[e],n);o.highlightRange(t.cursor(),r,i,"",o.highlighters),o.flush(i)}class xSt{constructor(e,n,r){this.at=e,this.highlighters=n,this.span=r,this.class=""}startSpan(e,n){n!=this.class&&(this.flush(e),e>this.at&&(this.at=e),this.class=n)}flush(e){e>this.at&&this.class&&this.span(this.at,e,this.class)}highlightRange(e,n,r,i,o){let{type:a,from:s,to:l}=e;if(s>=r||l<=n)return;a.isTop&&(o=this.highlighters.filter(p=>!p.scope||p.scope(a)));let u=i,c=SSt(e)||FC.empty,f=OSt(o,c.tags);if(f&&(u&&(u+=" "),u+=f,c.mode==1&&(i+=(i?" ":"")+f)),this.startSpan(Math.max(n,s),u),c.opaque)return;let d=e.tree&&e.tree.prop(Lt.mounted);if(d&&d.overlay){let p=e.node.enter(d.overlay[0].from+s,1),v=this.highlighters.filter(m=>!m.scope||m.scope(d.tree.type)),g=e.firstChild();for(let m=0,y=s;;m++){let b=m<d.overlay.length?d.overlay[m]:null,O=b?b.from+s:l,w=Math.max(n,y),x=Math.min(r,O);if(w<x&&g)for(;e.from<x&&(this.highlightRange(e,w,x,i,o),this.startSpan(Math.min(x,e.to),u),!(e.to>=O||!e.nextSibling())););if(!b||O>r)break;y=b.to+s,y>n&&(this.highlightRange(p.cursor(),Math.max(n,b.from+s),Math.min(r,y),"",v),this.startSpan(Math.min(r,y),u))}g&&e.parent()}else if(e.firstChild()){d&&(i="");do if(!(e.to<=n)){if(e.from>=r)break;this.highlightRange(e,n,r,i,o),this.startSpan(Math.min(r,e.to),u)}while(e.nextSibling());e.parent()}}}function SSt(t){let e=t.type.prop(nve);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}const Ve=zs.define,Pw=Ve(),Xu=Ve(),pK=Ve(Xu),vK=Ve(Xu),Yu=Ve(),$w=Ve(Yu),yI=Ve(Yu),Ns=Ve(),Zf=Ve(Ns),Ms=Ve(),Is=Ve(),FN=Ve(),h0=Ve(FN),Aw=Ve(),ae={comment:Pw,lineComment:Ve(Pw),blockComment:Ve(Pw),docComment:Ve(Pw),name:Xu,variableName:Ve(Xu),typeName:pK,tagName:Ve(pK),propertyName:vK,attributeName:Ve(vK),className:Ve(Xu),labelName:Ve(Xu),namespace:Ve(Xu),macroName:Ve(Xu),literal:Yu,string:$w,docString:Ve($w),character:Ve($w),attributeValue:Ve($w),number:yI,integer:Ve(yI),float:Ve(yI),bool:Ve(Yu),regexp:Ve(Yu),escape:Ve(Yu),color:Ve(Yu),url:Ve(Yu),keyword:Ms,self:Ve(Ms),null:Ve(Ms),atom:Ve(Ms),unit:Ve(Ms),modifier:Ve(Ms),operatorKeyword:Ve(Ms),controlKeyword:Ve(Ms),definitionKeyword:Ve(Ms),moduleKeyword:Ve(Ms),operator:Is,derefOperator:Ve(Is),arithmeticOperator:Ve(Is),logicOperator:Ve(Is),bitwiseOperator:Ve(Is),compareOperator:Ve(Is),updateOperator:Ve(Is),definitionOperator:Ve(Is),typeOperator:Ve(Is),controlOperator:Ve(Is),punctuation:FN,separator:Ve(FN),bracket:h0,angleBracket:Ve(h0),squareBracket:Ve(h0),paren:Ve(h0),brace:Ve(h0),content:Ns,heading:Zf,heading1:Ve(Zf),heading2:Ve(Zf),heading3:Ve(Zf),heading4:Ve(Zf),heading5:Ve(Zf),heading6:Ve(Zf),contentSeparator:Ve(Ns),list:Ve(Ns),quote:Ve(Ns),emphasis:Ve(Ns),strong:Ve(Ns),link:Ve(Ns),monospace:Ve(Ns),strikethrough:Ve(Ns),inserted:Ve(),deleted:Ve(),changed:Ve(),invalid:Ve(),meta:Aw,documentMeta:Ve(Aw),annotation:Ve(Aw),processingInstruction:Ve(Aw),definition:zs.defineModifier(),constant:zs.defineModifier(),function:zs.defineModifier(),standard:zs.defineModifier(),local:zs.defineModifier(),special:zs.defineModifier()};rve([{tag:ae.link,class:"tok-link"},{tag:ae.heading,class:"tok-heading"},{tag:ae.emphasis,class:"tok-emphasis"},{tag:ae.strong,class:"tok-strong"},{tag:ae.keyword,class:"tok-keyword"},{tag:ae.atom,class:"tok-atom"},{tag:ae.bool,class:"tok-bool"},{tag:ae.url,class:"tok-url"},{tag:ae.labelName,class:"tok-labelName"},{tag:ae.inserted,class:"tok-inserted"},{tag:ae.deleted,class:"tok-deleted"},{tag:ae.literal,class:"tok-literal"},{tag:ae.string,class:"tok-string"},{tag:ae.number,class:"tok-number"},{tag:[ae.regexp,ae.escape,ae.special(ae.string)],class:"tok-string2"},{tag:ae.variableName,class:"tok-variableName"},{tag:ae.local(ae.variableName),class:"tok-variableName tok-local"},{tag:ae.definition(ae.variableName),class:"tok-variableName tok-definition"},{tag:ae.special(ae.variableName),class:"tok-variableName2"},{tag:ae.definition(ae.propertyName),class:"tok-propertyName tok-definition"},{tag:ae.typeName,class:"tok-typeName"},{tag:ae.namespace,class:"tok-namespace"},{tag:ae.className,class:"tok-className"},{tag:ae.macroName,class:"tok-macroName"},{tag:ae.propertyName,class:"tok-propertyName"},{tag:ae.operator,class:"tok-operator"},{tag:ae.comment,class:"tok-comment"},{tag:ae.meta,class:"tok-meta"},{tag:ae.invalid,class:"tok-invalid"},{tag:ae.punctuation,class:"tok-punctuation"}]);var bI;const Jp=new Lt;function ive(t){return Ye.define({combine:t?e=>e.concat(t):void 0})}const _B=new Lt;class Ka{constructor(e,n,r=[],i=""){this.data=e,this.name=i,Wt.prototype.hasOwnProperty("tree")||Object.defineProperty(Wt.prototype,"tree",{get(){return Pr(this)}}),this.parser=n,this.extension=[Qc.of(this),Wt.languageData.of((o,a,s)=>{let l=gK(o,a,s),u=l.type.prop(Jp);if(!u)return[];let c=o.facet(u),f=l.type.prop(_B);if(f){let d=l.resolve(a-l.from,s);for(let p of f)if(p.test(d,o)){let v=o.facet(p.facet);return p.type=="replace"?v:v.concat(c)}}return c})].concat(r)}isActiveAt(e,n,r=-1){return gK(e,n,r).type.prop(Jp)==this.data}findRegions(e){let n=e.facet(Qc);if((n==null?void 0:n.data)==this.data)return[{from:0,to:e.doc.length}];if(!n||!n.allowsNesting)return[];let r=[],i=(o,a)=>{if(o.prop(Jp)==this.data){r.push({from:a,to:a+o.length});return}let s=o.prop(Lt.mounted);if(s){if(s.tree.prop(Jp)==this.data){if(s.overlay)for(let l of s.overlay)r.push({from:l.from+a,to:l.to+a});else r.push({from:a,to:a+o.length});return}else if(s.overlay){let l=r.length;if(i(s.tree,s.overlay[0].from+a),r.length>l)return}}for(let l=0;l<o.children.length;l++){let u=o.children[l];u instanceof fr&&i(u,o.positions[l]+a)}};return i(Pr(e),0),r}get allowsNesting(){return!0}}Ka.setState=wt.define();function gK(t,e,n){let r=t.facet(Qc),i=Pr(t).topNode;if(!r||r.allowsNesting)for(let o=i;o;o=o.enter(e,n,br.ExcludeBuffers))o.type.isTop&&(i=o);return i}class Rb extends Ka{constructor(e,n,r){super(e,n,[],r),this.parser=n}static define(e){let n=ive(e.languageData);return new Rb(n,e.parser.configure({props:[Jp.add(r=>r.isTop?n:void 0)]}),e.name)}configure(e,n){return new Rb(this.data,this.parser.configure(e),n||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Pr(t){let e=t.field(Ka.state,!1);return e?e.tree:fr.empty}class CSt{constructor(e){this.doc=e,this.cursorPos=0,this.string="",this.cursor=e.iter()}get length(){return this.doc.length}syncTo(e){return this.string=this.cursor.next(e-this.cursorPos).value,this.cursorPos=e+this.string.length,this.cursorPos-this.string.length}chunk(e){return this.syncTo(e),this.string}get lineChunks(){return!0}read(e,n){let r=this.cursorPos-this.string.length;return e<r||n>=this.cursorPos?this.doc.sliceString(e,n):this.string.slice(e-r,n-r)}}let p0=null;class WC{constructor(e,n,r=[],i,o,a,s,l){this.parser=e,this.state=n,this.fragments=r,this.tree=i,this.treeLen=o,this.viewport=a,this.skipped=s,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(e,n,r){return new WC(e,n,[],fr.empty,0,r,[],null)}startParse(){return this.parser.startParse(new CSt(this.state.doc),this.fragments)}work(e,n){return n!=null&&n>=this.state.doc.length&&(n=void 0),this.tree!=fr.empty&&this.isDone(n??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var r;if(typeof e=="number"){let i=Date.now()+e;e=()=>Date.now()>i}for(this.parse||(this.parse=this.startParse()),n!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>n)&&n<this.state.doc.length&&this.parse.stopAt(n);;){let i=this.parse.advance();if(i)if(this.fragments=this.withoutTempSkipped(jd.addTree(i,this.fragments,this.parse.stoppedAt!=null)),this.treeLen=(r=this.parse.stoppedAt)!==null&&r!==void 0?r:this.state.doc.length,this.tree=i,this.parse=null,this.treeLen<(n??this.state.doc.length))this.parse=this.startParse();else return!0;if(e())return!1}})}takeTree(){let e,n;this.parse&&(e=this.parse.parsedPos)>=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&this.parse.stopAt(e),this.withContext(()=>{for(;!(n=this.parse.advance()););}),this.treeLen=e,this.tree=n,this.fragments=this.withoutTempSkipped(jd.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let n=p0;p0=this;try{return e()}finally{p0=n}}withoutTempSkipped(e){for(let n;n=this.tempSkipped.pop();)e=mK(e,n.from,n.to);return e}changes(e,n){let{fragments:r,tree:i,treeLen:o,viewport:a,skipped:s}=this;if(this.takeTree(),!e.empty){let l=[];if(e.iterChangedRanges((u,c,f,d)=>l.push({fromA:u,toA:c,fromB:f,toB:d})),r=jd.applyChanges(r,l),i=fr.empty,o=0,a={from:e.mapPos(a.from,-1),to:e.mapPos(a.to,1)},this.skipped.length){s=[];for(let u of this.skipped){let c=e.mapPos(u.from,1),f=e.mapPos(u.to,-1);c<f&&s.push({from:c,to:f})}}}return new WC(this.parser,n,r,i,o,a,s,this.scheduleOn)}updateViewport(e){if(this.viewport.from==e.from&&this.viewport.to==e.to)return!1;this.viewport=e;let n=this.skipped.length;for(let r=0;r<this.skipped.length;r++){let{from:i,to:o}=this.skipped[r];i<e.to&&o>e.from&&(this.fragments=mK(this.fragments,i,o),this.skipped.splice(r--,1))}return this.skipped.length>=n?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(e,n){this.skipped.push({from:e,to:n})}static getSkippingParser(e){return new class extends tve{createParse(n,r,i){let o=i[0].from,a=i[i.length-1].to;return{parsedPos:o,advance(){let l=p0;if(l){for(let u of i)l.tempSkipped.push(u);e&&(l.scheduleOn=l.scheduleOn?Promise.all([l.scheduleOn,e]):e)}return this.parsedPos=a,new fr(uo.none,[],[],a-o)},stoppedAt:null,stopAt(){}}}}}isDone(e){e=Math.min(e,this.state.doc.length);let n=this.fragments;return this.treeLen>=e&&n.length&&n[0].from==0&&n[0].to>=e}static get(){return p0}}function mK(t,e,n){return jd.applyChanges(t,[{fromA:e,toA:n,fromB:e,toB:n}])}class dg{constructor(e){this.context=e,this.tree=e.tree}apply(e){if(!e.docChanged&&this.tree==this.context.tree)return this;let n=this.context.changes(e.changes,e.state),r=this.context.treeLen==e.startState.doc.length?void 0:Math.max(e.changes.mapPos(this.context.treeLen),n.viewport.to);return n.work(20,r)||n.takeTree(),new dg(n)}static init(e){let n=Math.min(3e3,e.doc.length),r=WC.create(e.facet(Qc).parser,e,{from:0,to:n});return r.work(20,n)||r.takeTree(),new dg(r)}}Ka.state=kr.define({create:dg.init,update(t,e){for(let n of e.effects)if(n.is(Ka.setState))return n.value;return e.startState.facet(Qc)!=e.state.facet(Qc)?dg.init(e.state):t.apply(e)}});let ove=t=>{let e=setTimeout(()=>t(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(ove=t=>{let e=-1,n=setTimeout(()=>{e=requestIdleCallback(t,{timeout:400})},100);return()=>e<0?clearTimeout(n):cancelIdleCallback(e)});const _I=typeof navigator<"u"&&(!((bI=navigator.scheduling)===null||bI===void 0)&&bI.isInputPending)?()=>navigator.scheduling.isInputPending():null,TSt=or.fromClass(class{constructor(e){this.view=e,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(e){let n=this.view.state.field(Ka.state).context;(n.updateViewport(e.view.viewport)||this.view.viewport.to>n.treeLen)&&this.scheduleWork(),(e.docChanged||e.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(n)}scheduleWork(){if(this.working)return;let{state:e}=this.view,n=e.field(Ka.state);(n.tree!=n.context.tree||!n.context.isDone(e.doc.length))&&(this.working=ove(this.work))}work(e){this.working=null;let n=Date.now();if(this.chunkEnd<n&&(this.chunkEnd<0||this.view.hasFocus)&&(this.chunkEnd=n+3e4,this.chunkBudget=3e3),this.chunkBudget<=0)return;let{state:r,viewport:{to:i}}=this.view,o=r.field(Ka.state);if(o.tree==o.context.tree&&o.context.isDone(i+1e5))return;let a=Date.now()+Math.min(this.chunkBudget,100,e&&!_I?Math.max(25,e.timeRemaining()-5):1e9),s=o.context.treeLen<i&&r.doc.length>i+1e3,l=o.context.work(()=>_I&&_I()||Date.now()>a,i+(s?0:1e5));this.chunkBudget-=Date.now()-n,(l||this.chunkBudget<=0)&&(o.context.takeTree(),this.view.dispatch({effects:Ka.setState.of(new dg(o.context))})),this.chunkBudget>0&&!(l&&!s)&&this.scheduleWork(),this.checkAsyncSchedule(o.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(n=>to(this.view.state,n)).then(()=>this.workScheduled--),e.scheduleOn=null)}destroy(){this.working&&this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}}),Qc=Ye.define({combine(t){return t.length?t[0]:null},enables:t=>[Ka.state,TSt,He.contentAttributes.compute([t],e=>{let n=e.facet(t);return n&&n.name?{"data-language":n.name}:{}})]});class ave{constructor(e,n=[]){this.language=e,this.support=n,this.extension=[e,n]}}const PSt=Ye.define(),z_=Ye.define({combine:t=>{if(!t.length)return" ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some(n=>n!=e[0]))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});function QC(t){let e=t.facet(z_);return e.charCodeAt(0)==9?t.tabSize*e.length:e.length}function kb(t,e){let n="",r=t.tabSize,i=t.facet(z_)[0];if(i==" "){for(;e>=r;)n+=" ",e-=r;i=" "}for(let o=0;o<e;o++)n+=i;return n}function OB(t,e){t instanceof Wt&&(t=new f2(t));for(let r of t.state.facet(PSt)){let i=r(t,e);if(i!==void 0)return i}let n=Pr(t.state);return n.length>=e?$St(t,n,e):null}class f2{constructor(e,n={}){this.state=e,this.options=n,this.unit=QC(e)}lineAt(e,n=1){let r=this.state.doc.lineAt(e),{simulateBreak:i,simulateDoubleBreak:o}=this.options;return i!=null&&i>=r.from&&i<=r.to?o&&i==e?{text:"",from:e}:(n<0?i<e:i<=e)?{text:r.text.slice(i-r.from),from:i}:{text:r.text.slice(0,i-r.from),from:r.from}:r}textAfterPos(e,n=1){if(this.options.simulateDoubleBreak&&e==this.options.simulateBreak)return"";let{text:r,from:i}=this.lineAt(e,n);return r.slice(e-i,Math.min(r.length,e+100-i))}column(e,n=1){let{text:r,from:i}=this.lineAt(e,n),o=this.countColumn(r,e-i),a=this.options.overrideIndentation?this.options.overrideIndentation(i):-1;return a>-1&&(o+=a-this.countColumn(r,r.search(/\S|$/))),o}countColumn(e,n=e.length){return qg(e,this.state.tabSize,n)}lineIndent(e,n=1){let{text:r,from:i}=this.lineAt(e,n),o=this.options.overrideIndentation;if(o){let a=o(i);if(a>-1)return a}return this.countColumn(r,r.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const wB=new Lt;function $St(t,e,n){let r=e.resolveStack(n),i=r.node.enterUnfinishedNodesBefore(n);if(i!=r.node){let o=[];for(let a=i;a!=r.node;a=a.parent)o.push(a);for(let a=o.length-1;a>=0;a--)r={node:o[a],next:r}}return sve(r,t,n)}function sve(t,e,n){for(let r=t;r;r=r.next){let i=ESt(r.node);if(i)return i(xB.create(e,n,r))}return 0}function ASt(t){return t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak}function ESt(t){let e=t.type.prop(wB);if(e)return e;let n=t.firstChild,r;if(n&&(r=n.type.prop(Lt.closedBy))){let i=t.lastChild,o=i&&r.indexOf(i.name)>-1;return a=>lve(a,!0,1,void 0,o&&!ASt(a)?i.from:void 0)}return t.parent==null?MSt:null}function MSt(){return 0}class xB extends f2{constructor(e,n,r){super(e.state,e.options),this.base=e,this.pos=n,this.context=r}get node(){return this.context.node}static create(e,n,r){return new xB(e,n,r)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(e){let n=this.state.doc.lineAt(e.from);for(;;){let r=e.resolve(n.from);for(;r.parent&&r.parent.from==r.from;)r=r.parent;if(ISt(r,e))break;n=this.state.doc.lineAt(r.from)}return this.lineIndent(n.from)}continue(){return sve(this.context.next,this.base,this.pos)}}function ISt(t,e){for(let n=e;n;n=n.parent)if(t==n)return!0;return!1}function DSt(t){let e=t.node,n=e.childAfter(e.from),r=e.lastChild;if(!n)return null;let i=t.options.simulateBreak,o=t.state.doc.lineAt(n.from),a=i==null||i<=o.from?o.to:Math.min(o.to,i);for(let s=n.to;;){let l=e.childAfter(s);if(!l||l==r)return null;if(!l.type.isSkipped)return l.from<a?n:null;s=l.to}}function RSt({closing:t,align:e=!0,units:n=1}){return r=>lve(r,e,n,t)}function lve(t,e,n,r,i){let o=t.textAfter,a=o.match(/^\s*/)[0].length,s=r&&o.slice(a,a+r.length)==r||i==t.pos+a,l=e?DSt(t):null;return l?s?t.column(l.from):t.column(l.to):t.baseIndent+(s?0:t.unit*n)}const kSt=t=>t.baseIndent;function $y({except:t,units:e=1}={}){return n=>{let r=t&&t.test(n.textAfter);return n.baseIndent+(r?0:e*n.unit)}}const NSt=200;function LSt(){return Wt.transactionFilter.of(t=>{if(!t.docChanged||!t.isUserEvent("input.type")&&!t.isUserEvent("input.complete"))return t;let e=t.startState.languageDataAt("indentOnInput",t.startState.selection.main.head);if(!e.length)return t;let n=t.newDoc,{head:r}=t.newSelection.main,i=n.lineAt(r);if(r>i.from+NSt)return t;let o=n.sliceString(i.from,r);if(!e.some(u=>u.test(o)))return t;let{state:a}=t,s=-1,l=[];for(let{head:u}of a.selection.ranges){let c=a.doc.lineAt(u);if(c.from==s)continue;s=c.from;let f=OB(a,c.from);if(f==null)continue;let d=/^\s*/.exec(c.text)[0],p=kb(a,f);d!=p&&l.push({from:c.from,to:c.from+d.length,insert:p})}return l.length?[t,{changes:l,sequential:!0}]:t})}const BSt=Ye.define(),SB=new Lt;function uve(t){let e=t.firstChild,n=t.lastChild;return e&&e.to<n.from?{from:e.to,to:n.type.isError?t.to:n.from}:null}function VSt(t,e,n){let r=Pr(t);if(r.length<n)return null;let i=r.resolveStack(n,1),o=null;for(let a=i;a;a=a.next){let s=a.node;if(s.to<=n||s.from>n)continue;if(o&&s.from<e)break;let l=s.type.prop(SB);if(l&&(s.to<r.length-50||r.length==t.doc.length||!zSt(s))){let u=l(s,t);u&&u.from<=n&&u.from>=e&&u.to>n&&(o=u)}}return o}function zSt(t){let e=t.lastChild;return e&&e.to==t.to&&e.type.isError}function HC(t,e,n){for(let r of t.facet(BSt)){let i=r(t,e,n);if(i)return i}return VSt(t,e,n)}function cve(t,e){let n=e.mapPos(t.from,1),r=e.mapPos(t.to,-1);return n>=r?void 0:{from:n,to:r}}const d2=wt.define({map:cve}),F_=wt.define({map:cve});function fve(t){let e=[];for(let{head:n}of t.state.selection.ranges)e.some(r=>r.from<=n&&r.to>=n)||e.push(t.lineBlockAt(n));return e}const bh=kr.define({create(){return tt.none},update(t,e){t=t.map(e.changes);for(let n of e.effects)if(n.is(d2)&&!FSt(t,n.value.from,n.value.to)){let{preparePlaceholder:r}=e.state.facet(pve),i=r?tt.replace({widget:new ZSt(r(e.state,n.value))}):yK;t=t.update({add:[i.range(n.value.from,n.value.to)]})}else n.is(F_)&&(t=t.update({filter:(r,i)=>n.value.from!=r||n.value.to!=i,filterFrom:n.value.from,filterTo:n.value.to}));if(e.selection){let n=!1,{head:r}=e.selection.main;t.between(r,r,(i,o)=>{i<r&&o>r&&(n=!0)}),n&&(t=t.update({filterFrom:r,filterTo:r,filter:(i,o)=>o<=r||i>=r}))}return t},provide:t=>He.decorations.from(t),toJSON(t,e){let n=[];return t.between(0,e.doc.length,(r,i)=>{n.push(r,i)}),n},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let n=0;n<t.length;){let r=t[n++],i=t[n++];if(typeof r!="number"||typeof i!="number")throw new RangeError("Invalid JSON for fold state");e.push(yK.range(r,i))}return tt.set(e,!0)}});function GC(t,e,n){var r;let i=null;return(r=t.field(bh,!1))===null||r===void 0||r.between(e,n,(o,a)=>{(!i||i.from>o)&&(i={from:o,to:a})}),i}function FSt(t,e,n){let r=!1;return t.between(e,e,(i,o)=>{i==e&&o==n&&(r=!0)}),r}function dve(t,e){return t.field(bh,!1)?e:e.concat(wt.appendConfig.of(vve()))}const WSt=t=>{for(let e of fve(t)){let n=HC(t.state,e.from,e.to);if(n)return t.dispatch({effects:dve(t.state,[d2.of(n),hve(t,n)])}),!0}return!1},QSt=t=>{if(!t.state.field(bh,!1))return!1;let e=[];for(let n of fve(t)){let r=GC(t.state,n.from,n.to);r&&e.push(F_.of(r),hve(t,r,!1))}return e.length&&t.dispatch({effects:e}),e.length>0};function hve(t,e,n=!0){let r=t.state.doc.lineAt(e.from).number,i=t.state.doc.lineAt(e.to).number;return He.announce.of(`${t.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${t.state.phrase("to")} ${i}.`)}const HSt=t=>{let{state:e}=t,n=[];for(let r=0;r<e.doc.length;){let i=t.lineBlockAt(r),o=HC(e,i.from,i.to);o&&n.push(d2.of(o)),r=(o?t.lineBlockAt(o.to):i).to+1}return n.length&&t.dispatch({effects:dve(t.state,n)}),!!n.length},GSt=t=>{let e=t.state.field(bh,!1);if(!e||!e.size)return!1;let n=[];return e.between(0,t.state.doc.length,(r,i)=>{n.push(F_.of({from:r,to:i}))}),t.dispatch({effects:n}),!0},jSt=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:WSt},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:QSt},{key:"Ctrl-Alt-[",run:HSt},{key:"Ctrl-Alt-]",run:GSt}],USt={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},pve=Ye.define({combine(t){return gl(t,USt)}});function vve(t){return[bh,qSt]}function gve(t,e){let{state:n}=t,r=n.facet(pve),i=a=>{let s=t.lineBlockAt(t.posAtDOM(a.target)),l=GC(t.state,s.from,s.to);l&&t.dispatch({effects:F_.of(l)}),a.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(t,i,e);let o=document.createElement("span");return o.textContent=r.placeholderText,o.setAttribute("aria-label",n.phrase("folded code")),o.title=n.phrase("unfold"),o.className="cm-foldPlaceholder",o.onclick=i,o}const yK=tt.replace({widget:new class extends ml{toDOM(t){return gve(t,null)}}});class ZSt extends ml{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return gve(e,this.value)}}const XSt={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class OI extends hu{constructor(e,n){super(),this.config=e,this.open=n}eq(e){return this.config==e.config&&this.open==e.open}toDOM(e){if(this.config.markerDOM)return this.config.markerDOM(this.open);let n=document.createElement("span");return n.textContent=this.open?this.config.openText:this.config.closedText,n.title=e.state.phrase(this.open?"Fold line":"Unfold line"),n}}function YSt(t={}){let e=Object.assign(Object.assign({},XSt),t),n=new OI(e,!0),r=new OI(e,!1),i=or.fromClass(class{constructor(a){this.from=a.viewport.from,this.markers=this.buildMarkers(a)}update(a){(a.docChanged||a.viewportChanged||a.startState.facet(Qc)!=a.state.facet(Qc)||a.startState.field(bh,!1)!=a.state.field(bh,!1)||Pr(a.startState)!=Pr(a.state)||e.foldingChanged(a))&&(this.markers=this.buildMarkers(a.view))}buildMarkers(a){let s=new Bc;for(let l of a.viewportLineBlocks){let u=GC(a.state,l.from,l.to)?r:HC(a.state,l.from,l.to)?n:null;u&&s.add(l.from,l.from,u)}return s.finish()}}),{domEventHandlers:o}=e;return[i,Jxt({class:"cm-foldGutter",markers(a){var s;return((s=a.plugin(i))===null||s===void 0?void 0:s.markers)||Jt.empty},initialSpacer(){return new OI(e,!1)},domEventHandlers:Object.assign(Object.assign({},o),{click:(a,s,l)=>{if(o.click&&o.click(a,s,l))return!0;let u=GC(a.state,s.from,s.to);if(u)return a.dispatch({effects:F_.of(u)}),!0;let c=HC(a.state,s.from,s.to);return c?(a.dispatch({effects:d2.of(c)}),!0):!1}})}),vve()]}const qSt=He.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class W_{constructor(e,n){this.specs=e;let r;function i(s){let l=Vc.newName();return(r||(r=Object.create(null)))["."+l]=s,l}const o=typeof n.all=="string"?n.all:n.all?i(n.all):void 0,a=n.scope;this.scope=a instanceof Ka?s=>s.prop(Jp)==a.data:a?s=>s==a:void 0,this.style=rve(e.map(s=>({tag:s.tag,class:s.class||i(Object.assign({},s,{tag:null}))})),{all:o}).style,this.module=r?new Vc(r):null,this.themeType=n.themeType}static define(e,n){return new W_(e,n||{})}}const WN=Ye.define(),mve=Ye.define({combine(t){return t.length?[t[0]]:null}});function wI(t){let e=t.facet(WN);return e.length?e:t.facet(mve)}function yve(t,e){let n=[JSt],r;return t instanceof W_&&(t.module&&n.push(He.styleModule.of(t.module)),r=t.themeType),e!=null&&e.fallback?n.push(mve.of(t)):r?n.push(WN.computeN([He.darkTheme],i=>i.facet(He.darkTheme)==(r=="dark")?[t]:[])):n.push(WN.of(t)),n}class KSt{constructor(e){this.markCache=Object.create(null),this.tree=Pr(e.state),this.decorations=this.buildDeco(e,wI(e.state)),this.decoratedTo=e.viewport.to}update(e){let n=Pr(e.state),r=wI(e.state),i=r!=wI(e.startState),{viewport:o}=e.view,a=e.changes.mapPos(this.decoratedTo,1);n.length<o.to&&!i&&n.type==this.tree.type&&a>=o.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=a):(n!=this.tree||e.viewportChanged||i)&&(this.tree=n,this.decorations=this.buildDeco(e.view,r),this.decoratedTo=o.to)}buildDeco(e,n){if(!n||!this.tree.length)return tt.none;let r=new Bc;for(let{from:i,to:o}of e.visibleRanges)wSt(this.tree,n,(a,s,l)=>{r.add(a,s,this.markCache[l]||(this.markCache[l]=tt.mark({class:l})))},i,o);return r.finish()}}const JSt=tf.high(or.fromClass(KSt,{decorations:t=>t.decorations})),eCt=W_.define([{tag:ae.meta,color:"#404740"},{tag:ae.link,textDecoration:"underline"},{tag:ae.heading,textDecoration:"underline",fontWeight:"bold"},{tag:ae.emphasis,fontStyle:"italic"},{tag:ae.strong,fontWeight:"bold"},{tag:ae.strikethrough,textDecoration:"line-through"},{tag:ae.keyword,color:"#708"},{tag:[ae.atom,ae.bool,ae.url,ae.contentSeparator,ae.labelName],color:"#219"},{tag:[ae.literal,ae.inserted],color:"#164"},{tag:[ae.string,ae.deleted],color:"#a11"},{tag:[ae.regexp,ae.escape,ae.special(ae.string)],color:"#e40"},{tag:ae.definition(ae.variableName),color:"#00f"},{tag:ae.local(ae.variableName),color:"#30a"},{tag:[ae.typeName,ae.namespace],color:"#085"},{tag:ae.className,color:"#167"},{tag:[ae.special(ae.variableName),ae.macroName],color:"#256"},{tag:ae.definition(ae.propertyName),color:"#00c"},{tag:ae.comment,color:"#940"},{tag:ae.invalid,color:"#f00"}]),tCt=He.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),bve=1e4,_ve="()[]{}",Ove=Ye.define({combine(t){return gl(t,{afterCursor:!0,brackets:_ve,maxScanDistance:bve,renderMatch:iCt})}}),nCt=tt.mark({class:"cm-matchingBracket"}),rCt=tt.mark({class:"cm-nonmatchingBracket"});function iCt(t){let e=[],n=t.matched?nCt:rCt;return e.push(n.range(t.start.from,t.start.to)),t.end&&e.push(n.range(t.end.from,t.end.to)),e}const oCt=kr.define({create(){return tt.none},update(t,e){if(!e.docChanged&&!e.selection)return t;let n=[],r=e.state.facet(Ove);for(let i of e.state.selection.ranges){if(!i.empty)continue;let o=Ys(e.state,i.head,-1,r)||i.head>0&&Ys(e.state,i.head-1,1,r)||r.afterCursor&&(Ys(e.state,i.head,1,r)||i.head<e.state.doc.length&&Ys(e.state,i.head+1,-1,r));o&&(n=n.concat(r.renderMatch(o,e.state)))}return tt.set(n,!0)},provide:t=>He.decorations.from(t)}),aCt=[oCt,tCt];function sCt(t={}){return[Ove.of(t),aCt]}const lCt=new Lt;function QN(t,e,n){let r=t.prop(e<0?Lt.openedBy:Lt.closedBy);if(r)return r;if(t.name.length==1){let i=n.indexOf(t.name);if(i>-1&&i%2==(e<0?1:0))return[n[i+e]]}return null}function HN(t){let e=t.type.prop(lCt);return e?e(t.node):t}function Ys(t,e,n,r={}){let i=r.maxScanDistance||bve,o=r.brackets||_ve,a=Pr(t),s=a.resolveInner(e,n);for(let l=s;l;l=l.parent){let u=QN(l.type,n,o);if(u&&l.from<l.to){let c=HN(l);if(c&&(n>0?e>=c.from&&e<c.to:e>c.from&&e<=c.to))return uCt(t,e,n,l,c,u,o)}}return cCt(t,e,n,a,s.type,i,o)}function uCt(t,e,n,r,i,o,a){let s=r.parent,l={from:i.from,to:i.to},u=0,c=s==null?void 0:s.cursor();if(c&&(n<0?c.childBefore(r.from):c.childAfter(r.to)))do if(n<0?c.to<=r.from:c.from>=r.to){if(u==0&&o.indexOf(c.type.name)>-1&&c.from<c.to){let f=HN(c);return{start:l,end:f?{from:f.from,to:f.to}:void 0,matched:!0}}else if(QN(c.type,n,a))u++;else if(QN(c.type,-n,a)){if(u==0){let f=HN(c);return{start:l,end:f&&f.from<f.to?{from:f.from,to:f.to}:void 0,matched:!1}}u--}}while(n<0?c.prevSibling():c.nextSibling());return{start:l,matched:!1}}function cCt(t,e,n,r,i,o,a){let s=n<0?t.sliceDoc(e-1,e):t.sliceDoc(e,e+1),l=a.indexOf(s);if(l<0||l%2==0!=n>0)return null;let u={from:n<0?e-1:e,to:n>0?e+1:e},c=t.doc.iterRange(e,n>0?t.doc.length:0),f=0;for(let d=0;!c.next().done&&d<=o;){let p=c.value;n<0&&(d+=p.length);let v=e+d*n;for(let g=n>0?0:p.length-1,m=n>0?p.length:-1;g!=m;g+=n){let y=a.indexOf(p[g]);if(!(y<0||r.resolveInner(v+g,1).type!=i))if(y%2==0==n>0)f++;else{if(f==1)return{start:u,end:{from:v+g,to:v+g+1},matched:y>>1==l>>1};f--}}n>0&&(d+=p.length)}return c.done?{start:u,matched:!1}:null}const fCt=Object.create(null),bK=[uo.none],_K=[],OK=Object.create(null),dCt=Object.create(null);for(let[t,e]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])dCt[t]=hCt(fCt,e);function xI(t,e){_K.indexOf(t)>-1||(_K.push(t),console.warn(e))}function hCt(t,e){let n=[];for(let s of e.split(" ")){let l=[];for(let u of s.split(".")){let c=t[u]||ae[u];c?typeof c=="function"?l.length?l=l.map(c):xI(u,`Modifier ${u} used at start of tag`):l.length?xI(u,`Tag ${u} used as modifier`):l=Array.isArray(c)?c:[c]:xI(u,`Unknown highlighting tag ${u}`)}for(let u of l)n.push(u)}if(!n.length)return 0;let r=e.replace(/ /g,"_"),i=r+" "+n.map(s=>s.id),o=OK[i];if(o)return o.id;let a=OK[i]=uo.define({id:bK.length,name:r,props:[bB({[r]:n})]});return bK.push(a),a.id}Dn.RTL,Dn.LTR;const pCt=t=>{let{state:e}=t,n=e.doc.lineAt(e.selection.main.from),r=TB(t.state,n.from);return r.line?vCt(t):r.block?mCt(t):!1};function CB(t,e){return({state:n,dispatch:r})=>{if(n.readOnly)return!1;let i=t(e,n);return i?(r(n.update(i)),!0):!1}}const vCt=CB(_Ct,0),gCt=CB(wve,0),mCt=CB((t,e)=>wve(t,e,bCt(e)),0);function TB(t,e){let n=t.languageDataAt("commentTokens",e);return n.length?n[0]:{}}const v0=50;function yCt(t,{open:e,close:n},r,i){let o=t.sliceDoc(r-v0,r),a=t.sliceDoc(i,i+v0),s=/\s*$/.exec(o)[0].length,l=/^\s*/.exec(a)[0].length,u=o.length-s;if(o.slice(u-e.length,u)==e&&a.slice(l,l+n.length)==n)return{open:{pos:r-s,margin:s&&1},close:{pos:i+l,margin:l&&1}};let c,f;i-r<=2*v0?c=f=t.sliceDoc(r,i):(c=t.sliceDoc(r,r+v0),f=t.sliceDoc(i-v0,i));let d=/^\s*/.exec(c)[0].length,p=/\s*$/.exec(f)[0].length,v=f.length-p-n.length;return c.slice(d,d+e.length)==e&&f.slice(v,v+n.length)==n?{open:{pos:r+d+e.length,margin:/\s/.test(c.charAt(d+e.length))?1:0},close:{pos:i-p-n.length,margin:/\s/.test(f.charAt(v-1))?1:0}}:null}function bCt(t){let e=[];for(let n of t.selection.ranges){let r=t.doc.lineAt(n.from),i=n.to<=r.to?r:t.doc.lineAt(n.to),o=e.length-1;o>=0&&e[o].to>r.from?e[o].to=i.to:e.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return e}function wve(t,e,n=e.selection.ranges){let r=n.map(o=>TB(e,o.from).block);if(!r.every(o=>o))return null;let i=n.map((o,a)=>yCt(e,r[a],o.from,o.to));if(t!=2&&!i.every(o=>o))return{changes:e.changes(n.map((o,a)=>i[a]?[]:[{from:o.from,insert:r[a].open+" "},{from:o.to,insert:" "+r[a].close}]))};if(t!=1&&i.some(o=>o)){let o=[];for(let a=0,s;a<i.length;a++)if(s=i[a]){let l=r[a],{open:u,close:c}=s;o.push({from:u.pos-l.open.length,to:u.pos+u.margin},{from:c.pos-c.margin,to:c.pos+l.close.length})}return{changes:o}}return null}function _Ct(t,e,n=e.selection.ranges){let r=[],i=-1;for(let{from:o,to:a}of n){let s=r.length,l=1e9,u=TB(e,o).line;if(u){for(let c=o;c<=a;){let f=e.doc.lineAt(c);if(f.from>i&&(o==a||a>f.from)){i=f.from;let d=/^\s*/.exec(f.text)[0].length,p=d==f.length,v=f.text.slice(d,d+u.length)==u?d:-1;d<f.text.length&&d<l&&(l=d),r.push({line:f,comment:v,token:u,indent:d,empty:p,single:!1})}c=f.to+1}if(l<1e9)for(let c=s;c<r.length;c++)r[c].indent<r[c].line.text.length&&(r[c].indent=l);r.length==s+1&&(r[s].single=!0)}}if(t!=2&&r.some(o=>o.comment<0&&(!o.empty||o.single))){let o=[];for(let{line:s,token:l,indent:u,empty:c,single:f}of r)(f||!c)&&o.push({from:s.from+u,insert:l+" "});let a=e.changes(o);return{changes:a,selection:e.selection.map(a,1)}}else if(t!=1&&r.some(o=>o.comment>=0)){let o=[];for(let{line:a,comment:s,token:l}of r)if(s>=0){let u=a.from+s,c=u+l.length;a.text[c-a.from]==" "&&c++,o.push({from:u,to:c})}return{changes:o}}return null}const GN=Ou.define(),OCt=Ou.define(),wCt=Ye.define(),xve=Ye.define({combine(t){return gl(t,{minDepth:100,newGroupDelay:500,joinToEvent:(e,n)=>n},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,n)=>(r,i)=>e(r,i)||n(r,i)})}}),Sve=kr.define({create(){return qs.empty},update(t,e){let n=e.state.facet(xve),r=e.annotation(GN);if(r){let l=no.fromTransaction(e,r.selection),u=r.side,c=u==0?t.undone:t.done;return l?c=jC(c,c.length,n.minDepth,l):c=Pve(c,e.startState.selection),new qs(u==0?r.rest:c,u==0?c:r.rest)}let i=e.annotation(OCt);if((i=="full"||i=="before")&&(t=t.isolate()),e.annotation(cr.addToHistory)===!1)return e.changes.empty?t:t.addMapping(e.changes.desc);let o=no.fromTransaction(e),a=e.annotation(cr.time),s=e.annotation(cr.userEvent);return o?t=t.addChanges(o,a,s,n,e):e.selection&&(t=t.addSelection(e.startState.selection,a,s,n.newGroupDelay)),(i=="full"||i=="after")&&(t=t.isolate()),t},toJSON(t){return{done:t.done.map(e=>e.toJSON()),undone:t.undone.map(e=>e.toJSON())}},fromJSON(t){return new qs(t.done.map(no.fromJSON),t.undone.map(no.fromJSON))}});function xCt(t={}){return[Sve,xve.of(t),He.domEventHandlers({beforeinput(e,n){let r=e.inputType=="historyUndo"?Cve:e.inputType=="historyRedo"?jN:null;return r?(e.preventDefault(),r(n)):!1}})]}function h2(t,e){return function({state:n,dispatch:r}){if(!e&&n.readOnly)return!1;let i=n.field(Sve,!1);if(!i)return!1;let o=i.pop(t,n,e);return o?(r(o),!0):!1}}const Cve=h2(0,!1),jN=h2(1,!1),SCt=h2(0,!0),CCt=h2(1,!0);class no{constructor(e,n,r,i,o){this.changes=e,this.effects=n,this.mapped=r,this.startSelection=i,this.selectionsAfter=o}setSelAfter(e){return new no(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,n,r;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(n=this.mapped)===null||n===void 0?void 0:n.toJSON(),startSelection:(r=this.startSelection)===null||r===void 0?void 0:r.toJSON(),selectionsAfter:this.selectionsAfter.map(i=>i.toJSON())}}static fromJSON(e){return new no(e.changes&&yr.fromJSON(e.changes),[],e.mapped&&nl.fromJSON(e.mapped),e.startSelection&&Te.fromJSON(e.startSelection),e.selectionsAfter.map(Te.fromJSON))}static fromTransaction(e,n){let r=va;for(let i of e.startState.facet(wCt)){let o=i(e);o.length&&(r=r.concat(o))}return!r.length&&e.changes.empty?null:new no(e.changes.invert(e.startState.doc),r,void 0,n||e.startState.selection,va)}static selection(e){return new no(void 0,va,void 0,void 0,e)}}function jC(t,e,n,r){let i=e+1>n+20?e-n-1:0,o=t.slice(i,e);return o.push(r),o}function TCt(t,e){let n=[],r=!1;return t.iterChangedRanges((i,o)=>n.push(i,o)),e.iterChangedRanges((i,o,a,s)=>{for(let l=0;l<n.length;){let u=n[l++],c=n[l++];s>=u&&a<=c&&(r=!0)}}),r}function PCt(t,e){return t.ranges.length==e.ranges.length&&t.ranges.filter((n,r)=>n.empty!=e.ranges[r].empty).length===0}function Tve(t,e){return t.length?e.length?t.concat(e):t:e}const va=[],$Ct=200;function Pve(t,e){if(t.length){let n=t[t.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-$Ct));return r.length&&r[r.length-1].eq(e)?t:(r.push(e),jC(t,t.length-1,1e9,n.setSelAfter(r)))}else return[no.selection([e])]}function ACt(t){let e=t[t.length-1],n=t.slice();return n[t.length-1]=e.setSelAfter(e.selectionsAfter.slice(0,e.selectionsAfter.length-1)),n}function SI(t,e){if(!t.length)return t;let n=t.length,r=va;for(;n;){let i=ECt(t[n-1],e,r);if(i.changes&&!i.changes.empty||i.effects.length){let o=t.slice(0,n);return o[n-1]=i,o}else e=i.mapped,n--,r=i.selectionsAfter}return r.length?[no.selection(r)]:va}function ECt(t,e,n){let r=Tve(t.selectionsAfter.length?t.selectionsAfter.map(s=>s.map(e)):va,n);if(!t.changes)return no.selection(r);let i=t.changes.map(e),o=e.mapDesc(t.changes,!0),a=t.mapped?t.mapped.composeDesc(o):o;return new no(i,wt.mapEffects(t.effects,e),a,t.startSelection.map(o),r)}const MCt=/^(input\.type|delete)($|\.)/;class qs{constructor(e,n,r=0,i=void 0){this.done=e,this.undone=n,this.prevTime=r,this.prevUserEvent=i}isolate(){return this.prevTime?new qs(this.done,this.undone):this}addChanges(e,n,r,i,o){let a=this.done,s=a[a.length-1];return s&&s.changes&&!s.changes.empty&&e.changes&&(!r||MCt.test(r))&&(!s.selectionsAfter.length&&n-this.prevTime<i.newGroupDelay&&i.joinToEvent(o,TCt(s.changes,e.changes))||r=="input.type.compose")?a=jC(a,a.length-1,i.minDepth,new no(e.changes.compose(s.changes),Tve(e.effects,s.effects),s.mapped,s.startSelection,va)):a=jC(a,a.length,i.minDepth,e),new qs(a,va,n,r)}addSelection(e,n,r,i){let o=this.done.length?this.done[this.done.length-1].selectionsAfter:va;return o.length>0&&n-this.prevTime<i&&r==this.prevUserEvent&&r&&/^select($|\.)/.test(r)&&PCt(o[o.length-1],e)?this:new qs(Pve(this.done,e),this.undone,n,r)}addMapping(e){return new qs(SI(this.done,e),SI(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,n,r){let i=e==0?this.done:this.undone;if(i.length==0)return null;let o=i[i.length-1],a=o.selectionsAfter[0]||n.selection;if(r&&o.selectionsAfter.length)return n.update({selection:o.selectionsAfter[o.selectionsAfter.length-1],annotations:GN.of({side:e,rest:ACt(i),selection:a}),userEvent:e==0?"select.undo":"select.redo",scrollIntoView:!0});if(o.changes){let s=i.length==1?va:i.slice(0,i.length-1);return o.mapped&&(s=SI(s,o.mapped)),n.update({changes:o.changes,selection:o.startSelection,effects:o.effects,annotations:GN.of({side:e,rest:s,selection:a}),filter:!1,userEvent:e==0?"undo":"redo",scrollIntoView:!0})}else return null}}qs.empty=new qs(va,va);const ICt=[{key:"Mod-z",run:Cve,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:jN,preventDefault:!0},{linux:"Ctrl-Shift-z",run:jN,preventDefault:!0},{key:"Mod-u",run:SCt,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:CCt,preventDefault:!0}];function Kg(t,e){return Te.create(t.ranges.map(e),t.mainIndex)}function yl(t,e){return t.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function _s({state:t,dispatch:e},n){let r=Kg(t.selection,n);return r.eq(t.selection,!0)?!1:(e(yl(t,r)),!0)}function p2(t,e){return Te.cursor(e?t.to:t.from)}function $ve(t,e){return _s(t,n=>n.empty?t.moveByChar(n,e):p2(n,e))}function pi(t){return t.textDirectionAt(t.state.selection.main.head)==Dn.LTR}const Ave=t=>$ve(t,!pi(t)),Eve=t=>$ve(t,pi(t));function Mve(t,e){return _s(t,n=>n.empty?t.moveByGroup(n,e):p2(n,e))}const DCt=t=>Mve(t,!pi(t)),RCt=t=>Mve(t,pi(t));function kCt(t,e,n){if(e.type.prop(n))return!0;let r=e.to-e.from;return r&&(r>2||/[^\s,.;:]/.test(t.sliceDoc(e.from,e.to)))||e.firstChild}function v2(t,e,n){let r=Pr(t).resolveInner(e.head),i=n?Lt.closedBy:Lt.openedBy;for(let l=e.head;;){let u=n?r.childAfter(l):r.childBefore(l);if(!u)break;kCt(t,u,i)?r=u:l=n?u.to:u.from}let o=r.type.prop(i),a,s;return o&&(a=n?Ys(t,r.from,1):Ys(t,r.to,-1))&&a.matched?s=n?a.end.to:a.end.from:s=n?r.to:r.from,Te.cursor(s,n?-1:1)}const NCt=t=>_s(t,e=>v2(t.state,e,!pi(t))),LCt=t=>_s(t,e=>v2(t.state,e,pi(t)));function Ive(t,e){return _s(t,n=>{if(!n.empty)return p2(n,e);let r=t.moveVertically(n,e);return r.head!=n.head?r:t.moveToLineBoundary(n,e)})}const Dve=t=>Ive(t,!1),Rve=t=>Ive(t,!0);function kve(t){let e=t.scrollDOM.clientHeight<t.scrollDOM.scrollHeight-2,n=0,r=0,i;if(e){for(let o of t.state.facet(He.scrollMargins)){let a=o(t);a!=null&&a.top&&(n=Math.max(a==null?void 0:a.top,n)),a!=null&&a.bottom&&(r=Math.max(a==null?void 0:a.bottom,r))}i=t.scrollDOM.clientHeight-n-r}else i=(t.dom.ownerDocument.defaultView||window).innerHeight;return{marginTop:n,marginBottom:r,selfScroll:e,height:Math.max(t.defaultLineHeight,i-5)}}function Nve(t,e){let n=kve(t),{state:r}=t,i=Kg(r.selection,a=>a.empty?t.moveVertically(a,e,n.height):p2(a,e));if(i.eq(r.selection))return!1;let o;if(n.selfScroll){let a=t.coordsAtPos(r.selection.main.head),s=t.scrollDOM.getBoundingClientRect(),l=s.top+n.marginTop,u=s.bottom-n.marginBottom;a&&a.top>l&&a.bottom<u&&(o=He.scrollIntoView(i.main.head,{y:"start",yMargin:a.top-l}))}return t.dispatch(yl(r,i),{effects:o}),!0}const wK=t=>Nve(t,!1),UN=t=>Nve(t,!0);function nf(t,e,n){let r=t.lineBlockAt(e.head),i=t.moveToLineBoundary(e,n);if(i.head==e.head&&i.head!=(n?r.to:r.from)&&(i=t.moveToLineBoundary(e,n,!1)),!n&&i.head==r.from&&r.length){let o=/^\s*/.exec(t.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;o&&e.head!=r.from+o&&(i=Te.cursor(r.from+o))}return i}const BCt=t=>_s(t,e=>nf(t,e,!0)),VCt=t=>_s(t,e=>nf(t,e,!1)),zCt=t=>_s(t,e=>nf(t,e,!pi(t))),FCt=t=>_s(t,e=>nf(t,e,pi(t))),WCt=t=>_s(t,e=>Te.cursor(t.lineBlockAt(e.head).from,1)),QCt=t=>_s(t,e=>Te.cursor(t.lineBlockAt(e.head).to,-1));function HCt(t,e,n){let r=!1,i=Kg(t.selection,o=>{let a=Ys(t,o.head,-1)||Ys(t,o.head,1)||o.head>0&&Ys(t,o.head-1,1)||o.head<t.doc.length&&Ys(t,o.head+1,-1);if(!a||!a.end)return o;r=!0;let s=a.start.from==o.head?a.end.to:a.end.from;return Te.cursor(s)});return r?(e(yl(t,i)),!0):!1}const GCt=({state:t,dispatch:e})=>HCt(t,e);function Na(t,e){let n=Kg(t.state.selection,r=>{let i=e(r);return Te.range(r.anchor,i.head,i.goalColumn,i.bidiLevel||void 0)});return n.eq(t.state.selection)?!1:(t.dispatch(yl(t.state,n)),!0)}function Lve(t,e){return Na(t,n=>t.moveByChar(n,e))}const Bve=t=>Lve(t,!pi(t)),Vve=t=>Lve(t,pi(t));function zve(t,e){return Na(t,n=>t.moveByGroup(n,e))}const jCt=t=>zve(t,!pi(t)),UCt=t=>zve(t,pi(t)),ZCt=t=>Na(t,e=>v2(t.state,e,!pi(t))),XCt=t=>Na(t,e=>v2(t.state,e,pi(t)));function Fve(t,e){return Na(t,n=>t.moveVertically(n,e))}const Wve=t=>Fve(t,!1),Qve=t=>Fve(t,!0);function Hve(t,e){return Na(t,n=>t.moveVertically(n,e,kve(t).height))}const xK=t=>Hve(t,!1),SK=t=>Hve(t,!0),YCt=t=>Na(t,e=>nf(t,e,!0)),qCt=t=>Na(t,e=>nf(t,e,!1)),KCt=t=>Na(t,e=>nf(t,e,!pi(t))),JCt=t=>Na(t,e=>nf(t,e,pi(t))),eTt=t=>Na(t,e=>Te.cursor(t.lineBlockAt(e.head).from)),tTt=t=>Na(t,e=>Te.cursor(t.lineBlockAt(e.head).to)),CK=({state:t,dispatch:e})=>(e(yl(t,{anchor:0})),!0),TK=({state:t,dispatch:e})=>(e(yl(t,{anchor:t.doc.length})),!0),PK=({state:t,dispatch:e})=>(e(yl(t,{anchor:t.selection.main.anchor,head:0})),!0),$K=({state:t,dispatch:e})=>(e(yl(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0),nTt=({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0),rTt=({state:t,dispatch:e})=>{let n=g2(t).map(({from:r,to:i})=>Te.range(r,Math.min(i+1,t.doc.length)));return e(t.update({selection:Te.create(n),userEvent:"select"})),!0},iTt=({state:t,dispatch:e})=>{let n=Kg(t.selection,r=>{var i;let o=Pr(t).resolveStack(r.from,1);for(let a=o;a;a=a.next){let{node:s}=a;if((s.from<r.from&&s.to>=r.to||s.to>r.to&&s.from<=r.from)&&(!((i=s.parent)===null||i===void 0)&&i.parent))return Te.range(s.to,s.from)}return r});return e(yl(t,n)),!0},oTt=({state:t,dispatch:e})=>{let n=t.selection,r=null;return n.ranges.length>1?r=Te.create([n.main]):n.main.empty||(r=Te.create([Te.cursor(n.main.head)])),r?(e(yl(t,r)),!0):!1};function Q_(t,e){if(t.state.readOnly)return!1;let n="delete.selection",{state:r}=t,i=r.changeByRange(o=>{let{from:a,to:s}=o;if(a==s){let l=e(o);l<a?(n="delete.backward",l=Ew(t,l,!1)):l>a&&(n="delete.forward",l=Ew(t,l,!0)),a=Math.min(a,l),s=Math.max(s,l)}else a=Ew(t,a,!1),s=Ew(t,s,!0);return a==s?{range:o}:{changes:{from:a,to:s},range:Te.cursor(a,a<o.head?-1:1)}});return i.changes.empty?!1:(t.dispatch(r.update(i,{scrollIntoView:!0,userEvent:n,effects:n=="delete.selection"?He.announce.of(r.phrase("Selection deleted")):void 0})),!0)}function Ew(t,e,n){if(t instanceof He)for(let r of t.state.facet(He.atomicRanges).map(i=>i(t)))r.between(e,e,(i,o)=>{i<e&&o>e&&(e=n?o:i)});return e}const Gve=(t,e,n)=>Q_(t,r=>{let i=r.from,{state:o}=t,a=o.doc.lineAt(i),s,l;if(n&&!e&&i>a.from&&i<a.from+200&&!/[^ \t]/.test(s=a.text.slice(0,i-a.from))){if(s[s.length-1]==" ")return i-1;let u=qg(s,o.tabSize),c=u%QC(o)||QC(o);for(let f=0;f<c&&s[s.length-1-f]==" ";f++)i--;l=i}else l=Ur(a.text,i-a.from,e,e)+a.from,l==i&&a.number!=(e?o.doc.lines:1)?l+=e?1:-1:!e&&/[\ufe00-\ufe0f]/.test(a.text.slice(l-a.from,i-a.from))&&(l=Ur(a.text,l-a.from,!1,!1)+a.from);return l}),ZN=t=>Gve(t,!1,!0),jve=t=>Gve(t,!0,!1),Uve=(t,e)=>Q_(t,n=>{let r=n.head,{state:i}=t,o=i.doc.lineAt(r),a=i.charCategorizer(r);for(let s=null;;){if(r==(e?o.to:o.from)){r==n.head&&o.number!=(e?i.doc.lines:1)&&(r+=e?1:-1);break}let l=Ur(o.text,r-o.from,e)+o.from,u=o.text.slice(Math.min(r,l)-o.from,Math.max(r,l)-o.from),c=a(u);if(s!=null&&c!=s)break;(u!=" "||r!=n.head)&&(s=c),r=l}return r}),Zve=t=>Uve(t,!1),aTt=t=>Uve(t,!0),sTt=t=>Q_(t,e=>{let n=t.lineBlockAt(e.head).to;return e.head<n?n:Math.min(t.state.doc.length,e.head+1)}),lTt=t=>Q_(t,e=>{let n=t.moveToLineBoundary(e,!1).head;return e.head>n?n:Math.max(0,e.head-1)}),uTt=t=>Q_(t,e=>{let n=t.moveToLineBoundary(e,!0).head;return e.head<n?n:Math.min(t.state.doc.length,e.head+1)}),cTt=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=t.changeByRange(r=>({changes:{from:r.from,to:r.to,insert:en.of(["",""])},range:Te.cursor(r.from)}));return e(t.update(n,{scrollIntoView:!0,userEvent:"input"})),!0},fTt=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=t.changeByRange(r=>{if(!r.empty||r.from==0||r.from==t.doc.length)return{range:r};let i=r.from,o=t.doc.lineAt(i),a=i==o.from?i-1:Ur(o.text,i-o.from,!1)+o.from,s=i==o.to?i+1:Ur(o.text,i-o.from,!0)+o.from;return{changes:{from:a,to:s,insert:t.doc.slice(i,s).append(t.doc.slice(a,i))},range:Te.cursor(s)}});return n.changes.empty?!1:(e(t.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function g2(t){let e=[],n=-1;for(let r of t.selection.ranges){let i=t.doc.lineAt(r.from),o=t.doc.lineAt(r.to);if(!r.empty&&r.to==o.from&&(o=t.doc.lineAt(r.to-1)),n>=i.number){let a=e[e.length-1];a.to=o.to,a.ranges.push(r)}else e.push({from:i.from,to:o.to,ranges:[r]});n=o.number+1}return e}function Xve(t,e,n){if(t.readOnly)return!1;let r=[],i=[];for(let o of g2(t)){if(n?o.to==t.doc.length:o.from==0)continue;let a=t.doc.lineAt(n?o.to+1:o.from-1),s=a.length+1;if(n){r.push({from:o.to,to:a.to},{from:o.from,insert:a.text+t.lineBreak});for(let l of o.ranges)i.push(Te.range(Math.min(t.doc.length,l.anchor+s),Math.min(t.doc.length,l.head+s)))}else{r.push({from:a.from,to:o.from},{from:o.to,insert:t.lineBreak+a.text});for(let l of o.ranges)i.push(Te.range(l.anchor-s,l.head-s))}}return r.length?(e(t.update({changes:r,scrollIntoView:!0,selection:Te.create(i,t.selection.mainIndex),userEvent:"move.line"})),!0):!1}const dTt=({state:t,dispatch:e})=>Xve(t,e,!1),hTt=({state:t,dispatch:e})=>Xve(t,e,!0);function Yve(t,e,n){if(t.readOnly)return!1;let r=[];for(let i of g2(t))n?r.push({from:i.from,insert:t.doc.slice(i.from,i.to)+t.lineBreak}):r.push({from:i.to,insert:t.lineBreak+t.doc.slice(i.from,i.to)});return e(t.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const pTt=({state:t,dispatch:e})=>Yve(t,e,!1),vTt=({state:t,dispatch:e})=>Yve(t,e,!0),gTt=t=>{if(t.state.readOnly)return!1;let{state:e}=t,n=e.changes(g2(e).map(({from:i,to:o})=>(i>0?i--:o<e.doc.length&&o++,{from:i,to:o}))),r=Kg(e.selection,i=>{let o;if(t.lineWrapping){let a=t.lineBlockAt(i.head),s=t.coordsAtPos(i.head,i.assoc||1);s&&(o=a.bottom+t.documentTop-s.bottom+t.defaultLineHeight/2)}return t.moveVertically(i,!0,o)}).map(n);return t.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0};function mTt(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return{from:e,to:e};let n=Pr(t).resolveInner(e),r=n.childBefore(e),i=n.childAfter(e),o;return r&&i&&r.to<=e&&i.from>=e&&(o=r.type.prop(Lt.closedBy))&&o.indexOf(i.name)>-1&&t.doc.lineAt(r.to).from==t.doc.lineAt(i.from).from&&!/\S/.test(t.sliceDoc(r.to,i.from))?{from:r.to,to:i.from}:null}const yTt=qve(!1),bTt=qve(!0);function qve(t){return({state:e,dispatch:n})=>{if(e.readOnly)return!1;let r=e.changeByRange(i=>{let{from:o,to:a}=i,s=e.doc.lineAt(o),l=!t&&o==a&&mTt(e,o);t&&(o=a=(a<=s.to?s:e.doc.lineAt(a)).to);let u=new f2(e,{simulateBreak:o,simulateDoubleBreak:!!l}),c=OB(u,o);for(c==null&&(c=qg(/^\s*/.exec(e.doc.lineAt(o).text)[0],e.tabSize));a<s.to&&/\s/.test(s.text[a-s.from]);)a++;l?{from:o,to:a}=l:o>s.from&&o<s.from+100&&!/\S/.test(s.text.slice(0,o))&&(o=s.from);let f=["",kb(e,c)];return l&&f.push(kb(e,u.lineIndent(s.from,-1))),{changes:{from:o,to:a,insert:en.of(f)},range:Te.cursor(o+1+f[1].length)}});return n(e.update(r,{scrollIntoView:!0,userEvent:"input"})),!0}}function PB(t,e){let n=-1;return t.changeByRange(r=>{let i=[];for(let a=r.from;a<=r.to;){let s=t.doc.lineAt(a);s.number>n&&(r.empty||r.to>s.from)&&(e(s,i,r),n=s.number),a=s.to+1}let o=t.changes(i);return{changes:i,range:Te.range(o.mapPos(r.anchor,1),o.mapPos(r.head,1))}})}const _Tt=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=Object.create(null),r=new f2(t,{overrideIndentation:o=>{let a=n[o];return a??-1}}),i=PB(t,(o,a,s)=>{let l=OB(r,o.from);if(l==null)return;/\S/.test(o.text)||(l=0);let u=/^\s*/.exec(o.text)[0],c=kb(t,l);(u!=c||s.from<o.from+u.length)&&(n[o.from]=l,a.push({from:o.from,to:o.from+u.length,insert:c}))});return i.changes.empty||e(t.update(i,{userEvent:"indent"})),!0},Kve=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(PB(t,(n,r)=>{r.push({from:n.from,insert:t.facet(z_)})}),{userEvent:"input.indent"})),!0),Jve=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(PB(t,(n,r)=>{let i=/^\s*/.exec(n.text)[0];if(!i)return;let o=qg(i,t.tabSize),a=0,s=kb(t,Math.max(0,o-QC(t)));for(;a<i.length&&a<s.length&&i.charCodeAt(a)==s.charCodeAt(a);)a++;r.push({from:n.from+a,to:n.from+i.length,insert:s.slice(a)})}),{userEvent:"delete.dedent"})),!0),OTt=t=>(t.setTabFocusMode(),!0),wTt=[{key:"Ctrl-b",run:Ave,shift:Bve,preventDefault:!0},{key:"Ctrl-f",run:Eve,shift:Vve},{key:"Ctrl-p",run:Dve,shift:Wve},{key:"Ctrl-n",run:Rve,shift:Qve},{key:"Ctrl-a",run:WCt,shift:eTt},{key:"Ctrl-e",run:QCt,shift:tTt},{key:"Ctrl-d",run:jve},{key:"Ctrl-h",run:ZN},{key:"Ctrl-k",run:sTt},{key:"Ctrl-Alt-h",run:Zve},{key:"Ctrl-o",run:cTt},{key:"Ctrl-t",run:fTt},{key:"Ctrl-v",run:UN}],xTt=[{key:"ArrowLeft",run:Ave,shift:Bve,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:DCt,shift:jCt,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:zCt,shift:KCt,preventDefault:!0},{key:"ArrowRight",run:Eve,shift:Vve,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:RCt,shift:UCt,preventDefault:!0},{mac:"Cmd-ArrowRight",run:FCt,shift:JCt,preventDefault:!0},{key:"ArrowUp",run:Dve,shift:Wve,preventDefault:!0},{mac:"Cmd-ArrowUp",run:CK,shift:PK},{mac:"Ctrl-ArrowUp",run:wK,shift:xK},{key:"ArrowDown",run:Rve,shift:Qve,preventDefault:!0},{mac:"Cmd-ArrowDown",run:TK,shift:$K},{mac:"Ctrl-ArrowDown",run:UN,shift:SK},{key:"PageUp",run:wK,shift:xK},{key:"PageDown",run:UN,shift:SK},{key:"Home",run:VCt,shift:qCt,preventDefault:!0},{key:"Mod-Home",run:CK,shift:PK},{key:"End",run:BCt,shift:YCt,preventDefault:!0},{key:"Mod-End",run:TK,shift:$K},{key:"Enter",run:yTt},{key:"Mod-a",run:nTt},{key:"Backspace",run:ZN,shift:ZN},{key:"Delete",run:jve},{key:"Mod-Backspace",mac:"Alt-Backspace",run:Zve},{key:"Mod-Delete",mac:"Alt-Delete",run:aTt},{mac:"Mod-Backspace",run:lTt},{mac:"Mod-Delete",run:uTt}].concat(wTt.map(t=>({mac:t.key,run:t.run,shift:t.shift}))),STt=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:NCt,shift:ZCt},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:LCt,shift:XCt},{key:"Alt-ArrowUp",run:dTt},{key:"Shift-Alt-ArrowUp",run:pTt},{key:"Alt-ArrowDown",run:hTt},{key:"Shift-Alt-ArrowDown",run:vTt},{key:"Escape",run:oTt},{key:"Mod-Enter",run:bTt},{key:"Alt-l",mac:"Ctrl-l",run:rTt},{key:"Mod-i",run:iTt,preventDefault:!0},{key:"Mod-[",run:Jve},{key:"Mod-]",run:Kve},{key:"Mod-Alt-\\",run:_Tt},{key:"Shift-Mod-k",run:gTt},{key:"Shift-Mod-\\",run:GCt},{key:"Mod-/",run:pCt},{key:"Alt-A",run:gCt},{key:"Ctrl-m",mac:"Shift-Alt-m",run:OTt}].concat(xTt),CTt={key:"Tab",run:Kve,shift:Jve};function Cn(){var t=arguments[0];typeof t=="string"&&(t=document.createElement(t));var e=1,n=arguments[1];if(n&&typeof n=="object"&&n.nodeType==null&&!Array.isArray(n)){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r];typeof i=="string"?t.setAttribute(r,i):i!=null&&(t[r]=i)}e++}for(;e<arguments.length;e++)ege(t,arguments[e]);return t}function ege(t,e){if(typeof e=="string")t.appendChild(document.createTextNode(e));else if(e!=null)if(e.nodeType!=null)t.appendChild(e);else if(Array.isArray(e))for(var n=0;n<e.length;n++)ege(t,e[n]);else throw new RangeError("Unsupported child node: "+e)}const AK=typeof String.prototype.normalize=="function"?t=>t.normalize("NFKD"):t=>t;class hg{constructor(e,n,r=0,i=e.length,o,a){this.test=a,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(r,i),this.bufferStart=r,this.normalize=o?s=>o(AK(s)):AK,this.query=this.normalize(n)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return Qr(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let n=rB(e),r=this.bufferStart+this.bufferPos;this.bufferPos+=ha(e);let i=this.normalize(n);for(let o=0,a=r;;o++){let s=i.charCodeAt(o),l=this.match(s,a,this.bufferPos+this.bufferStart);if(o==i.length-1){if(l)return this.value=l,this;break}a==r&&o<n.length&&n.charCodeAt(o)==s&&a++}}}match(e,n,r){let i=null;for(let o=0;o<this.matches.length;o+=2){let a=this.matches[o],s=!1;this.query.charCodeAt(a)==e&&(a==this.query.length-1?i={from:this.matches[o+1],to:r}:(this.matches[o]++,s=!0)),s||(this.matches.splice(o,2),o-=2)}return this.query.charCodeAt(0)==e&&(this.query.length==1?i={from:n,to:r}:this.matches.push(1,n)),i&&this.test&&!this.test(i.from,i.to,this.buffer,this.bufferStart)&&(i=null),i}}typeof Symbol<"u"&&(hg.prototype[Symbol.iterator]=function(){return this});const tge={from:-1,to:-1,match:/.*/.exec("")},$B="gm"+(/x/.unicode==null?"":"u");class nge{constructor(e,n,r,i=0,o=e.length){if(this.text=e,this.to=o,this.curLine="",this.done=!1,this.value=tge,/\\[sWDnr]|\n|\r|\[\^/.test(n))return new rge(e,n,r,i,o);this.re=new RegExp(n,$B+(r!=null&&r.ignoreCase?"i":"")),this.test=r==null?void 0:r.test,this.iter=e.iter();let a=e.lineAt(i);this.curLineStart=a.from,this.matchPos=UC(e,i),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let n=this.matchPos<=this.to&&this.re.exec(this.curLine);if(n){let r=this.curLineStart+n.index,i=r+n[0].length;if(this.matchPos=UC(this.text,i+(r==i?1:0)),r==this.curLineStart+this.curLine.length&&this.nextLine(),(r<i||r>this.value.to)&&(!this.test||this.test(r,i,n)))return this.value={from:r,to:i,match:n},this;e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length<this.to)this.nextLine(),e=0;else return this.done=!0,this}}}const CI=new WeakMap;class _v{constructor(e,n){this.from=e,this.text=n}get to(){return this.from+this.text.length}static get(e,n,r){let i=CI.get(e);if(!i||i.from>=r||i.to<=n){let s=new _v(n,e.sliceString(n,r));return CI.set(e,s),s}if(i.from==n&&i.to==r)return i;let{text:o,from:a}=i;return a>n&&(o=e.sliceString(n,a)+o,a=n),i.to<r&&(o+=e.sliceString(i.to,r)),CI.set(e,new _v(a,o)),new _v(n,o.slice(n-a,r-a))}}class rge{constructor(e,n,r,i,o){this.text=e,this.to=o,this.done=!1,this.value=tge,this.matchPos=UC(e,i),this.re=new RegExp(n,$B+(r!=null&&r.ignoreCase?"i":"")),this.test=r==null?void 0:r.test,this.flat=_v.get(e,i,this.chunkEnd(i+5e3))}chunkEnd(e){return e>=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,n=this.re.exec(this.flat.text);if(n&&!n[0]&&n.index==e&&(this.re.lastIndex=e+1,n=this.re.exec(this.flat.text)),n){let r=this.flat.from+n.index,i=r+n[0].length;if((this.flat.to>=this.to||n.index+n[0].length<=this.flat.text.length-10)&&(!this.test||this.test(r,i,n)))return this.value={from:r,to:i,match:n},this.matchPos=UC(this.text,i+(r==i?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=_v.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(nge.prototype[Symbol.iterator]=rge.prototype[Symbol.iterator]=function(){return this});function TTt(t){try{return new RegExp(t,$B),!0}catch{return!1}}function UC(t,e){if(e>=t.length)return e;let n=t.lineAt(e),r;for(;e<n.to&&(r=n.text.charCodeAt(e-n.from))>=56320&&r<57344;)e++;return e}function XN(t){let e=String(t.state.doc.lineAt(t.state.selection.main.head).number),n=Cn("input",{class:"cm-textfield",name:"line",value:e}),r=Cn("form",{class:"cm-gotoLine",onkeydown:o=>{o.keyCode==27?(o.preventDefault(),t.dispatch({effects:ZC.of(!1)}),t.focus()):o.keyCode==13&&(o.preventDefault(),i())},onsubmit:o=>{o.preventDefault(),i()}},Cn("label",t.state.phrase("Go to line"),": ",n)," ",Cn("button",{class:"cm-button",type:"submit"},t.state.phrase("go")));function i(){let o=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(!o)return;let{state:a}=t,s=a.doc.lineAt(a.selection.main.head),[,l,u,c,f]=o,d=c?+c.slice(1):0,p=u?+u:s.number;if(u&&f){let m=p/100;l&&(m=m*(l=="-"?-1:1)+s.number/a.doc.lines),p=Math.round(a.doc.lines*m)}else u&&l&&(p=p*(l=="-"?-1:1)+s.number);let v=a.doc.line(Math.max(1,Math.min(a.doc.lines,p))),g=Te.cursor(v.from+Math.max(0,Math.min(d,v.length)));t.dispatch({effects:[ZC.of(!1),He.scrollIntoView(g.from,{y:"center"})],selection:g}),t.focus()}return{dom:r}}const ZC=wt.define(),EK=kr.define({create(){return!0},update(t,e){for(let n of e.effects)n.is(ZC)&&(t=n.value);return t},provide:t=>Ib.from(t,e=>e?XN:null)}),PTt=t=>{let e=Mb(t,XN);if(!e){let n=[ZC.of(!0)];t.state.field(EK,!1)==null&&n.push(wt.appendConfig.of([EK,$Tt])),t.dispatch({effects:n}),e=Mb(t,XN)}return e&&e.dom.querySelector("input").select(),!0},$Tt=He.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),ATt={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},ETt=Ye.define({combine(t){return gl(t,ATt,{highlightWordAroundCursor:(e,n)=>e||n,minSelectionLength:Math.min,maxMatches:Math.min})}});function MTt(t){return[NTt,kTt]}const ITt=tt.mark({class:"cm-selectionMatch"}),DTt=tt.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function MK(t,e,n,r){return(n==0||t(e.sliceDoc(n-1,n))!=Ln.Word)&&(r==e.doc.length||t(e.sliceDoc(r,r+1))!=Ln.Word)}function RTt(t,e,n,r){return t(e.sliceDoc(n,n+1))==Ln.Word&&t(e.sliceDoc(r-1,r))==Ln.Word}const kTt=or.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){(t.selectionSet||t.docChanged||t.viewportChanged)&&(this.decorations=this.getDeco(t.view))}getDeco(t){let e=t.state.facet(ETt),{state:n}=t,r=n.selection;if(r.ranges.length>1)return tt.none;let i=r.main,o,a=null;if(i.empty){if(!e.highlightWordAroundCursor)return tt.none;let l=n.wordAt(i.head);if(!l)return tt.none;a=n.charCategorizer(i.head),o=n.sliceDoc(l.from,l.to)}else{let l=i.to-i.from;if(l<e.minSelectionLength||l>200)return tt.none;if(e.wholeWords){if(o=n.sliceDoc(i.from,i.to),a=n.charCategorizer(i.head),!(MK(a,n,i.from,i.to)&&RTt(a,n,i.from,i.to)))return tt.none}else if(o=n.sliceDoc(i.from,i.to),!o)return tt.none}let s=[];for(let l of t.visibleRanges){let u=new hg(n.doc,o,l.from,l.to);for(;!u.next().done;){let{from:c,to:f}=u.value;if((!a||MK(a,n,c,f))&&(i.empty&&c<=i.from&&f>=i.to?s.push(DTt.range(c,f)):(c>=i.to||f<=i.from)&&s.push(ITt.range(c,f)),s.length>e.maxMatches))return tt.none}}return tt.set(s)}},{decorations:t=>t.decorations}),NTt=He.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),LTt=({state:t,dispatch:e})=>{let{selection:n}=t,r=Te.create(n.ranges.map(i=>t.wordAt(i.head)||Te.cursor(i.head)),n.mainIndex);return r.eq(n)?!1:(e(t.update({selection:r})),!0)};function BTt(t,e){let{main:n,ranges:r}=t.selection,i=t.wordAt(n.head),o=i&&i.from==n.from&&i.to==n.to;for(let a=!1,s=new hg(t.doc,e,r[r.length-1].to);;)if(s.next(),s.done){if(a)return null;s=new hg(t.doc,e,0,Math.max(0,r[r.length-1].from-1)),a=!0}else{if(a&&r.some(l=>l.from==s.value.from))continue;if(o){let l=t.wordAt(s.value.from);if(!l||l.from!=s.value.from||l.to!=s.value.to)continue}return s.value}}const VTt=({state:t,dispatch:e})=>{let{ranges:n}=t.selection;if(n.some(o=>o.from===o.to))return LTt({state:t,dispatch:e});let r=t.sliceDoc(n[0].from,n[0].to);if(t.selection.ranges.some(o=>t.sliceDoc(o.from,o.to)!=r))return!1;let i=BTt(t,r);return i?(e(t.update({selection:t.selection.addRange(Te.range(i.from,i.to),!1),effects:He.scrollIntoView(i.to)})),!0):!1},Jg=Ye.define({combine(t){return gl(t,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new qTt(e),scrollToMatch:e=>He.scrollIntoView(e)})}});class ige{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||TTt(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,(n,r)=>r=="n"?`
  404. `:r=="r"?"\r":r=="t"?" ":"\\")}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new QTt(this):new FTt(this)}getCursor(e,n=0,r){let i=e.doc?e:Wt.create({doc:e});return r==null&&(r=i.doc.length),this.regexp?Wp(this,i,n,r):Fp(this,i,n,r)}}class oge{constructor(e){this.spec=e}}function Fp(t,e,n,r){return new hg(e.doc,t.unquoted,n,r,t.caseSensitive?void 0:i=>i.toLowerCase(),t.wholeWord?zTt(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function zTt(t,e){return(n,r,i,o)=>((o>n||o+i.length<r)&&(o=Math.max(0,n-2),i=t.sliceString(o,Math.min(t.length,r+2))),(e(XC(i,n-o))!=Ln.Word||e(YC(i,n-o))!=Ln.Word)&&(e(YC(i,r-o))!=Ln.Word||e(XC(i,r-o))!=Ln.Word))}class FTt extends oge{constructor(e){super(e)}nextMatch(e,n,r){let i=Fp(this.spec,e,r,e.doc.length).nextOverlapping();return i.done&&(i=Fp(this.spec,e,0,n).nextOverlapping()),i.done?null:i.value}prevMatchInRange(e,n,r){for(let i=r;;){let o=Math.max(n,i-1e4-this.spec.unquoted.length),a=Fp(this.spec,e,o,i),s=null;for(;!a.nextOverlapping().done;)s=a.value;if(s)return s;if(o==n)return null;i-=1e4}}prevMatch(e,n,r){return this.prevMatchInRange(e,0,n)||this.prevMatchInRange(e,r,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace)}matchAll(e,n){let r=Fp(this.spec,e,0,e.doc.length),i=[];for(;!r.next().done;){if(i.length>=n)return null;i.push(r.value)}return i}highlight(e,n,r,i){let o=Fp(this.spec,e,Math.max(0,n-this.spec.unquoted.length),Math.min(r+this.spec.unquoted.length,e.doc.length));for(;!o.next().done;)i(o.value.from,o.value.to)}}function Wp(t,e,n,r){return new nge(e.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?WTt(e.charCategorizer(e.selection.main.head)):void 0},n,r)}function XC(t,e){return t.slice(Ur(t,e,!1),e)}function YC(t,e){return t.slice(e,Ur(t,e))}function WTt(t){return(e,n,r)=>!r[0].length||(t(XC(r.input,r.index))!=Ln.Word||t(YC(r.input,r.index))!=Ln.Word)&&(t(YC(r.input,r.index+r[0].length))!=Ln.Word||t(XC(r.input,r.index+r[0].length))!=Ln.Word)}class QTt extends oge{nextMatch(e,n,r){let i=Wp(this.spec,e,r,e.doc.length).next();return i.done&&(i=Wp(this.spec,e,0,n).next()),i.done?null:i.value}prevMatchInRange(e,n,r){for(let i=1;;i++){let o=Math.max(n,r-i*1e4),a=Wp(this.spec,e,o,r),s=null;for(;!a.next().done;)s=a.value;if(s&&(o==n||s.from>o+10))return s;if(o==n)return null}}prevMatch(e,n,r){return this.prevMatchInRange(e,0,n)||this.prevMatchInRange(e,r,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,(n,r)=>r=="$"?"$":r=="&"?e.match[0]:r!="0"&&+r<e.match.length?e.match[r]:n)}matchAll(e,n){let r=Wp(this.spec,e,0,e.doc.length),i=[];for(;!r.next().done;){if(i.length>=n)return null;i.push(r.value)}return i}highlight(e,n,r,i){let o=Wp(this.spec,e,Math.max(0,n-250),Math.min(r+250,e.doc.length));for(;!o.next().done;)i(o.value.from,o.value.to)}}const Nb=wt.define(),AB=wt.define(),Cc=kr.define({create(t){return new TI(YN(t).create(),null)},update(t,e){for(let n of e.effects)n.is(Nb)?t=new TI(n.value.create(),t.panel):n.is(AB)&&(t=new TI(t.query,n.value?EB:null));return t},provide:t=>Ib.from(t,e=>e.panel)});class TI{constructor(e,n){this.query=e,this.panel=n}}const HTt=tt.mark({class:"cm-searchMatch"}),GTt=tt.mark({class:"cm-searchMatch cm-searchMatch-selected"}),jTt=or.fromClass(class{constructor(t){this.view=t,this.decorations=this.highlight(t.state.field(Cc))}update(t){let e=t.state.field(Cc);(e!=t.startState.field(Cc)||t.docChanged||t.selectionSet||t.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:t,panel:e}){if(!e||!t.spec.valid)return tt.none;let{view:n}=this,r=new Bc;for(let i=0,o=n.visibleRanges,a=o.length;i<a;i++){let{from:s,to:l}=o[i];for(;i<a-1&&l>o[i+1].from-2*250;)l=o[++i].to;t.highlight(n.state,s,l,(u,c)=>{let f=n.state.selection.ranges.some(d=>d.from==u&&d.to==c);r.add(u,c,f?GTt:HTt)})}return r.finish()}},{decorations:t=>t.decorations});function H_(t){return e=>{let n=e.state.field(Cc,!1);return n&&n.query.spec.valid?t(e,n):lge(e)}}const qC=H_((t,{query:e})=>{let{to:n}=t.state.selection.main,r=e.nextMatch(t.state,n,n);if(!r)return!1;let i=Te.single(r.from,r.to),o=t.state.facet(Jg);return t.dispatch({selection:i,effects:[MB(t,r),o.scrollToMatch(i.main,t)],userEvent:"select.search"}),sge(t),!0}),KC=H_((t,{query:e})=>{let{state:n}=t,{from:r}=n.selection.main,i=e.prevMatch(n,r,r);if(!i)return!1;let o=Te.single(i.from,i.to),a=t.state.facet(Jg);return t.dispatch({selection:o,effects:[MB(t,i),a.scrollToMatch(o.main,t)],userEvent:"select.search"}),sge(t),!0}),UTt=H_((t,{query:e})=>{let n=e.matchAll(t.state,1e3);return!n||!n.length?!1:(t.dispatch({selection:Te.create(n.map(r=>Te.range(r.from,r.to))),userEvent:"select.search.matches"}),!0)}),ZTt=({state:t,dispatch:e})=>{let n=t.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:r,to:i}=n.main,o=[],a=0;for(let s=new hg(t.doc,t.sliceDoc(r,i));!s.next().done;){if(o.length>1e3)return!1;s.value.from==r&&(a=o.length),o.push(Te.range(s.value.from,s.value.to))}return e(t.update({selection:Te.create(o,a),userEvent:"select.search.matches"})),!0},IK=H_((t,{query:e})=>{let{state:n}=t,{from:r,to:i}=n.selection.main;if(n.readOnly)return!1;let o=e.nextMatch(n,r,r);if(!o)return!1;let a=[],s,l,u=[];if(o.from==r&&o.to==i&&(l=n.toText(e.getReplacement(o)),a.push({from:o.from,to:o.to,insert:l}),o=e.nextMatch(n,o.from,o.to),u.push(He.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(r).number)+"."))),o){let c=a.length==0||a[0].from>=o.to?0:o.to-o.from-l.length;s=Te.single(o.from-c,o.to-c),u.push(MB(t,o)),u.push(n.facet(Jg).scrollToMatch(s.main,t))}return t.dispatch({changes:a,selection:s,effects:u,userEvent:"input.replace"}),!0}),XTt=H_((t,{query:e})=>{if(t.state.readOnly)return!1;let n=e.matchAll(t.state,1e9).map(i=>{let{from:o,to:a}=i;return{from:o,to:a,insert:e.getReplacement(i)}});if(!n.length)return!1;let r=t.state.phrase("replaced $ matches",n.length)+".";return t.dispatch({changes:n,effects:He.announce.of(r),userEvent:"input.replace.all"}),!0});function EB(t){return t.state.facet(Jg).createPanel(t)}function YN(t,e){var n,r,i,o,a;let s=t.selection.main,l=s.empty||s.to>s.from+100?"":t.sliceDoc(s.from,s.to);if(e&&!l)return e;let u=t.facet(Jg);return new ige({search:((n=e==null?void 0:e.literal)!==null&&n!==void 0?n:u.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:(r=e==null?void 0:e.caseSensitive)!==null&&r!==void 0?r:u.caseSensitive,literal:(i=e==null?void 0:e.literal)!==null&&i!==void 0?i:u.literal,regexp:(o=e==null?void 0:e.regexp)!==null&&o!==void 0?o:u.regexp,wholeWord:(a=e==null?void 0:e.wholeWord)!==null&&a!==void 0?a:u.wholeWord})}function age(t){let e=Mb(t,EB);return e&&e.dom.querySelector("[main-field]")}function sge(t){let e=age(t);e&&e==t.root.activeElement&&e.select()}const lge=t=>{let e=t.state.field(Cc,!1);if(e&&e.panel){let n=age(t);if(n&&n!=t.root.activeElement){let r=YN(t.state,e.query.spec);r.valid&&t.dispatch({effects:Nb.of(r)}),n.focus(),n.select()}}else t.dispatch({effects:[AB.of(!0),e?Nb.of(YN(t.state,e.query.spec)):wt.appendConfig.of(JTt)]});return!0},uge=t=>{let e=t.state.field(Cc,!1);if(!e||!e.panel)return!1;let n=Mb(t,EB);return n&&n.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:AB.of(!1)}),!0},YTt=[{key:"Mod-f",run:lge,scope:"editor search-panel"},{key:"F3",run:qC,shift:KC,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:qC,shift:KC,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:uge,scope:"editor search-panel"},{key:"Mod-Shift-l",run:ZTt},{key:"Mod-Alt-g",run:PTt},{key:"Mod-d",run:VTt,preventDefault:!0}];class qTt{constructor(e){this.view=e;let n=this.query=e.state.field(Cc).query.spec;this.commit=this.commit.bind(this),this.searchField=Cn("input",{value:n.search,placeholder:_o(e,"Find"),"aria-label":_o(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Cn("input",{value:n.replace,placeholder:_o(e,"Replace"),"aria-label":_o(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Cn("input",{type:"checkbox",name:"case",form:"",checked:n.caseSensitive,onchange:this.commit}),this.reField=Cn("input",{type:"checkbox",name:"re",form:"",checked:n.regexp,onchange:this.commit}),this.wordField=Cn("input",{type:"checkbox",name:"word",form:"",checked:n.wholeWord,onchange:this.commit});function r(i,o,a){return Cn("button",{class:"cm-button",name:i,onclick:o,type:"button"},a)}this.dom=Cn("div",{onkeydown:i=>this.keydown(i),class:"cm-search"},[this.searchField,r("next",()=>qC(e),[_o(e,"next")]),r("prev",()=>KC(e),[_o(e,"previous")]),r("select",()=>UTt(e),[_o(e,"all")]),Cn("label",null,[this.caseField,_o(e,"match case")]),Cn("label",null,[this.reField,_o(e,"regexp")]),Cn("label",null,[this.wordField,_o(e,"by word")]),...e.state.readOnly?[]:[Cn("br"),this.replaceField,r("replace",()=>IK(e),[_o(e,"replace")]),r("replaceAll",()=>XTt(e),[_o(e,"replace all")])],Cn("button",{name:"close",onclick:()=>uge(e),"aria-label":_o(e,"close"),type:"button"},["×"])])}commit(){let e=new ige({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:Nb.of(e)}))}keydown(e){lxt(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?KC:qC)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),IK(this.view))}update(e){for(let n of e.transactions)for(let r of n.effects)r.is(Nb)&&!r.value.eq(this.query)&&this.setQuery(r.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(Jg).top}}function _o(t,e){return t.state.phrase(e)}const Mw=30,Iw=/[\s\.,:;?!]/;function MB(t,{from:e,to:n}){let r=t.state.doc.lineAt(e),i=t.state.doc.lineAt(n).to,o=Math.max(r.from,e-Mw),a=Math.min(i,n+Mw),s=t.state.sliceDoc(o,a);if(o!=r.from){for(let l=0;l<Mw;l++)if(!Iw.test(s[l+1])&&Iw.test(s[l])){s=s.slice(l);break}}if(a!=i){for(let l=s.length-1;l>s.length-Mw;l--)if(!Iw.test(s[l-1])&&Iw.test(s[l])){s=s.slice(0,l);break}}return He.announce.of(`${t.state.phrase("current match")}. ${s} ${t.state.phrase("on line")} ${r.number}.`)}const KTt=He.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),JTt=[Cc,tf.low(jTt),KTt];class cge{constructor(e,n,r,i){this.state=e,this.pos=n,this.explicit=r,this.view=i,this.abortListeners=[]}tokenBefore(e){let n=Pr(this.state).resolveInner(this.pos,-1);for(;n&&e.indexOf(n.name)<0;)n=n.parent;return n?{from:n.from,to:this.pos,text:this.state.sliceDoc(n.from,this.pos),type:n.type}:null}matchBefore(e){let n=this.state.doc.lineAt(this.pos),r=Math.max(n.from,this.pos-250),i=n.text.slice(r-n.from,this.pos-n.from),o=i.search(dge(e,!1));return o<0?null:{from:r+o,to:this.pos,text:i.slice(o)}}get aborted(){return this.abortListeners==null}addEventListener(e,n){e=="abort"&&this.abortListeners&&this.abortListeners.push(n)}}function DK(t){let e=Object.keys(t).join(""),n=/\w/.test(e);return n&&(e=e.replace(/\w/g,"")),`[${n?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function ePt(t){let e=Object.create(null),n=Object.create(null);for(let{label:i}of t){e[i[0]]=!0;for(let o=1;o<i.length;o++)n[i[o]]=!0}let r=DK(e)+DK(n)+"*$";return[new RegExp("^"+r),new RegExp(r)]}function fge(t){let e=t.map(i=>typeof i=="string"?{label:i}:i),[n,r]=e.every(i=>/^\w+$/.test(i.label))?[/\w*$/,/\w+$/]:ePt(e);return i=>{let o=i.matchBefore(r);return o||i.explicit?{from:o?o.from:i.pos,options:e,validFor:n}:null}}function tPt(t,e){return n=>{for(let r=Pr(n.state).resolveInner(n.pos,-1);r;r=r.parent){if(t.indexOf(r.name)>-1)return null;if(r.type.isTop)break}return e(n)}}class RK{constructor(e,n,r,i){this.completion=e,this.source=n,this.match=r,this.score=i}}function Tc(t){return t.selection.main.from}function dge(t,e){var n;let{source:r}=t,i=e&&r[0]!="^",o=r[r.length-1]!="$";return!i&&!o?t:new RegExp(`${i?"^":""}(?:${r})${o?"$":""}`,(n=t.flags)!==null&&n!==void 0?n:t.ignoreCase?"i":"")}const IB=Ou.define();function nPt(t,e,n,r){let{main:i}=t.selection,o=n-i.from,a=r-i.from;return Object.assign(Object.assign({},t.changeByRange(s=>s!=i&&n!=r&&t.sliceDoc(s.from+o,s.from+a)!=t.sliceDoc(n,r)?{range:s}:{changes:{from:s.from+o,to:r==i.from?s.to:s.from+a,insert:e},range:Te.cursor(s.from+o+e.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}const kK=new WeakMap;function rPt(t){if(!Array.isArray(t))return t;let e=kK.get(t);return e||kK.set(t,e=fge(t)),e}const JC=wt.define(),Lb=wt.define();class iPt{constructor(e){this.pattern=e,this.chars=[],this.folded=[],this.any=[],this.precise=[],this.byWord=[],this.score=0,this.matched=[];for(let n=0;n<e.length;){let r=Qr(e,n),i=ha(r);this.chars.push(r);let o=e.slice(n,n+i),a=o.toUpperCase();this.folded.push(Qr(a==o?o.toLowerCase():a,0)),n+=i}this.astral=e.length!=this.chars.length}ret(e,n){return this.score=e,this.matched=n,this}match(e){if(this.pattern.length==0)return this.ret(-100,[]);if(e.length<this.pattern.length)return null;let{chars:n,folded:r,any:i,precise:o,byWord:a}=this;if(n.length==1){let b=Qr(e,0),O=ha(b),w=O==e.length?0:-100;if(b!=n[0])if(b==r[0])w+=-200;else return null;return this.ret(w,[0,O])}let s=e.indexOf(this.pattern);if(s==0)return this.ret(e.length==this.pattern.length?0:-100,[0,this.pattern.length]);let l=n.length,u=0;if(s<0){for(let b=0,O=Math.min(e.length,200);b<O&&u<l;){let w=Qr(e,b);(w==n[u]||w==r[u])&&(i[u++]=b),b+=ha(w)}if(u<l)return null}let c=0,f=0,d=!1,p=0,v=-1,g=-1,m=/[a-z]/.test(e),y=!0;for(let b=0,O=Math.min(e.length,200),w=0;b<O&&f<l;){let x=Qr(e,b);s<0&&(c<l&&x==n[c]&&(o[c++]=b),p<l&&(x==n[p]||x==r[p]?(p==0&&(v=b),g=b+1,p++):p=0));let S,T=x<255?x>=48&&x<=57||x>=97&&x<=122?2:x>=65&&x<=90?1:0:(S=rB(x))!=S.toLowerCase()?1:S!=S.toUpperCase()?2:0;(!b||T==1&&m||w==0&&T!=0)&&(n[f]==x||r[f]==x&&(d=!0)?a[f++]=b:a.length&&(y=!1)),w=T,b+=ha(x)}return f==l&&a[0]==0&&y?this.result(-100+(d?-200:0),a,e):p==l&&v==0?this.ret(-200-e.length+(g==e.length?0:-100),[0,g]):s>-1?this.ret(-700-e.length,[s,s+this.pattern.length]):p==l?this.ret(-900-e.length,[v,g]):f==l?this.result(-100+(d?-200:0)+-700+(y?0:-1100),a,e):n.length==2?null:this.result((i[0]?-700:0)+-200+-1100,i,e)}result(e,n,r){let i=[],o=0;for(let a of n){let s=a+(this.astral?ha(Qr(r,a)):1);o&&i[o-1]==a?i[o-1]=s:(i[o++]=a,i[o++]=s)}return this.ret(e-r.length,i)}}class oPt{constructor(e){this.pattern=e,this.matched=[],this.score=0,this.folded=e.toLowerCase()}match(e){if(e.length<this.pattern.length)return null;let n=e.slice(0,this.pattern.length),r=n==this.pattern?0:n.toLowerCase()==this.folded?-200:null;return r==null?null:(this.matched=[0,n.length],this.score=r+(e.length==this.pattern.length?0:-100),this)}}const jr=Ye.define({combine(t){return gl(t,{activateOnTyping:!0,activateOnCompletion:()=>!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:aPt,filterStrict:!1,compareCompletions:(e,n)=>e.label.localeCompare(n.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(e,n)=>e&&n,closeOnBlur:(e,n)=>e&&n,icons:(e,n)=>e&&n,tooltipClass:(e,n)=>r=>NK(e(r),n(r)),optionClass:(e,n)=>r=>NK(e(r),n(r)),addToOptions:(e,n)=>e.concat(n),filterStrict:(e,n)=>e||n})}});function NK(t,e){return t?e?t+" "+e:t:e}function aPt(t,e,n,r,i,o){let a=t.textDirection==Dn.RTL,s=a,l=!1,u="top",c,f,d=e.left-i.left,p=i.right-e.right,v=r.right-r.left,g=r.bottom-r.top;if(s&&d<Math.min(v,p)?s=!1:!s&&p<Math.min(v,d)&&(s=!0),v<=(s?d:p))c=Math.max(i.top,Math.min(n.top,i.bottom-g))-e.top,f=Math.min(400,s?d:p);else{l=!0,f=Math.min(400,(a?e.right:i.right-e.left)-30);let b=i.bottom-e.bottom;b>=g||b>e.top?c=n.bottom-e.top:(u="bottom",c=e.bottom-n.top)}let m=(e.bottom-e.top)/o.offsetHeight,y=(e.right-e.left)/o.offsetWidth;return{style:`${u}: ${c/m}px; max-width: ${f/y}px`,class:"cm-completionInfo-"+(l?a?"left-narrow":"right-narrow":s?"left":"right")}}function sPt(t){let e=t.addToOptions.slice();return t.icons&&e.push({render(n){let r=document.createElement("div");return r.classList.add("cm-completionIcon"),n.type&&r.classList.add(...n.type.split(/\s+/g).map(i=>"cm-completionIcon-"+i)),r.setAttribute("aria-hidden","true"),r},position:20}),e.push({render(n,r,i,o){let a=document.createElement("span");a.className="cm-completionLabel";let s=n.displayLabel||n.label,l=0;for(let u=0;u<o.length;){let c=o[u++],f=o[u++];c>l&&a.appendChild(document.createTextNode(s.slice(l,c)));let d=a.appendChild(document.createElement("span"));d.appendChild(document.createTextNode(s.slice(c,f))),d.className="cm-completionMatchedText",l=f}return l<s.length&&a.appendChild(document.createTextNode(s.slice(l))),a},position:50},{render(n){if(!n.detail)return null;let r=document.createElement("span");return r.className="cm-completionDetail",r.textContent=n.detail,r},position:80}),e.sort((n,r)=>n.position-r.position).map(n=>n.render)}function PI(t,e,n){if(t<=n)return{from:0,to:t};if(e<0&&(e=0),e<=t>>1){let i=Math.floor(e/n);return{from:i*n,to:(i+1)*n}}let r=Math.floor((t-e)/n);return{from:t-(r+1)*n,to:t-r*n}}class lPt{constructor(e,n,r){this.view=e,this.stateField=n,this.applyCompletion=r,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:l=>this.placeInfo(l),key:this},this.space=null,this.currentClass="";let i=e.state.field(n),{options:o,selected:a}=i.open,s=e.state.facet(jr);this.optionContent=sPt(s),this.optionClass=s.optionClass,this.tooltipClass=s.tooltipClass,this.range=PI(o.length,a,s.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(e.state),this.dom.addEventListener("mousedown",l=>{let{options:u}=e.state.field(n).open;for(let c=l.target,f;c&&c!=this.dom;c=c.parentNode)if(c.nodeName=="LI"&&(f=/-(\d+)$/.exec(c.id))&&+f[1]<u.length){this.applyCompletion(e,u[+f[1]]),l.preventDefault();return}}),this.dom.addEventListener("focusout",l=>{let u=e.state.field(this.stateField,!1);u&&u.tooltip&&e.state.facet(jr).closeOnBlur&&l.relatedTarget!=e.contentDOM&&e.dispatch({effects:Lb.of(null)})}),this.showOptions(o,i.id)}mount(){this.updateSel()}showOptions(e,n){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(e,n,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(e){var n;let r=e.state.field(this.stateField),i=e.startState.field(this.stateField);if(this.updateTooltipClass(e.state),r!=i){let{options:o,selected:a,disabled:s}=r.open;(!i.open||i.open.options!=o)&&(this.range=PI(o.length,a,e.state.facet(jr).maxRenderedOptions),this.showOptions(o,r.id)),this.updateSel(),s!=((n=i.open)===null||n===void 0?void 0:n.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!s)}}updateTooltipClass(e){let n=this.tooltipClass(e);if(n!=this.currentClass){for(let r of this.currentClass.split(" "))r&&this.dom.classList.remove(r);for(let r of n.split(" "))r&&this.dom.classList.add(r);this.currentClass=n}}positioned(e){this.space=e,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let e=this.view.state.field(this.stateField),n=e.open;if((n.selected>-1&&n.selected<this.range.from||n.selected>=this.range.to)&&(this.range=PI(n.options.length,n.selected,this.view.state.facet(jr).maxRenderedOptions),this.showOptions(n.options,e.id)),this.updateSelectedOption(n.selected)){this.destroyInfo();let{completion:r}=n.options[n.selected],{info:i}=r;if(!i)return;let o=typeof i=="string"?document.createTextNode(i):i(r);if(!o)return;"then"in o?o.then(a=>{a&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(a,r)}).catch(a=>to(this.view.state,a,"completion info")):this.addInfoPane(o,r)}}addInfoPane(e,n){this.destroyInfo();let r=this.info=document.createElement("div");if(r.className="cm-tooltip cm-completionInfo",e.nodeType!=null)r.appendChild(e),this.infoDestroy=null;else{let{dom:i,destroy:o}=e;r.appendChild(i),this.infoDestroy=o||null}this.dom.appendChild(r),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(e){let n=null;for(let r=this.list.firstChild,i=this.range.from;r;r=r.nextSibling,i++)r.nodeName!="LI"||!r.id?i--:i==e?r.hasAttribute("aria-selected")||(r.setAttribute("aria-selected","true"),n=r):r.hasAttribute("aria-selected")&&r.removeAttribute("aria-selected");return n&&cPt(this.list,n),n}measureInfo(){let e=this.dom.querySelector("[aria-selected]");if(!e||!this.info)return null;let n=this.dom.getBoundingClientRect(),r=this.info.getBoundingClientRect(),i=e.getBoundingClientRect(),o=this.space;if(!o){let a=this.dom.ownerDocument.defaultView||window;o={left:0,top:0,right:a.innerWidth,bottom:a.innerHeight}}return i.top>Math.min(o.bottom,n.bottom)-10||i.bottom<Math.max(o.top,n.top)+10?null:this.view.state.facet(jr).positionInfo(this.view,n,i,r,o,this.dom)}placeInfo(e){this.info&&(e?(e.style&&(this.info.style.cssText=e.style),this.info.className="cm-tooltip cm-completionInfo "+(e.class||"")):this.info.style.cssText="top: -1e6px")}createListBox(e,n,r){const i=document.createElement("ul");i.id=n,i.setAttribute("role","listbox"),i.setAttribute("aria-expanded","true"),i.setAttribute("aria-label",this.view.state.phrase("Completions"));let o=null;for(let a=r.from;a<r.to;a++){let{completion:s,match:l}=e[a],{section:u}=s;if(u){let d=typeof u=="string"?u:u.name;if(d!=o&&(a>r.from||r.from==0))if(o=d,typeof u!="string"&&u.header)i.appendChild(u.header(u));else{let p=i.appendChild(document.createElement("completion-section"));p.textContent=d}}const c=i.appendChild(document.createElement("li"));c.id=n+"-"+a,c.setAttribute("role","option");let f=this.optionClass(s);f&&(c.className=f);for(let d of this.optionContent){let p=d(s,this.view.state,this.view,l);p&&c.appendChild(p)}}return r.from&&i.classList.add("cm-completionListIncompleteTop"),r.to<e.length&&i.classList.add("cm-completionListIncompleteBottom"),i}destroyInfo(){this.info&&(this.infoDestroy&&this.infoDestroy(),this.info.remove(),this.info=null)}destroy(){this.destroyInfo()}}function uPt(t,e){return n=>new lPt(n,t,e)}function cPt(t,e){let n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),i=n.height/t.offsetHeight;r.top<n.top?t.scrollTop-=(n.top-r.top)/i:r.bottom>n.bottom&&(t.scrollTop+=(r.bottom-n.bottom)/i)}function LK(t){return(t.boost||0)*100+(t.apply?10:0)+(t.info?5:0)+(t.type?1:0)}function fPt(t,e){let n=[],r=null,i=u=>{n.push(u);let{section:c}=u.completion;if(c){r||(r=[]);let f=typeof c=="string"?c:c.name;r.some(d=>d.name==f)||r.push(typeof c=="string"?{name:f}:c)}},o=e.facet(jr);for(let u of t)if(u.hasResult()){let c=u.result.getMatch;if(u.result.filter===!1)for(let f of u.result.options)i(new RK(f,u.source,c?c(f):[],1e9-n.length));else{let f=e.sliceDoc(u.from,u.to),d,p=o.filterStrict?new oPt(f):new iPt(f);for(let v of u.result.options)if(d=p.match(v.label)){let g=v.displayLabel?c?c(v,d.matched):[]:d.matched;i(new RK(v,u.source,g,d.score+(v.boost||0)))}}}if(r){let u=Object.create(null),c=0,f=(d,p)=>{var v,g;return((v=d.rank)!==null&&v!==void 0?v:1e9)-((g=p.rank)!==null&&g!==void 0?g:1e9)||(d.name<p.name?-1:1)};for(let d of r.sort(f))c-=1e5,u[d.name]=c;for(let d of n){let{section:p}=d.completion;p&&(d.score+=u[typeof p=="string"?p:p.name])}}let a=[],s=null,l=o.compareCompletions;for(let u of n.sort((c,f)=>f.score-c.score||l(c.completion,f.completion))){let c=u.completion;!s||s.label!=c.label||s.detail!=c.detail||s.type!=null&&c.type!=null&&s.type!=c.type||s.apply!=c.apply||s.boost!=c.boost?a.push(u):LK(u.completion)>LK(s)&&(a[a.length-1]=u),s=u.completion}return a}class ev{constructor(e,n,r,i,o,a){this.options=e,this.attrs=n,this.tooltip=r,this.timestamp=i,this.selected=o,this.disabled=a}setSelected(e,n){return e==this.selected||e>=this.options.length?this:new ev(this.options,BK(n,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,n,r,i,o){let a=fPt(e,n);if(!a.length)return i&&e.some(l=>l.state==1)?new ev(i.options,i.attrs,i.tooltip,i.timestamp,i.selected,!0):null;let s=n.facet(jr).selectOnOpen?0:-1;if(i&&i.selected!=s&&i.selected!=-1){let l=i.options[i.selected].completion;for(let u=0;u<a.length;u++)if(a[u].completion==l){s=u;break}}return new ev(a,BK(r,s),{pos:e.reduce((l,u)=>u.hasResult()?Math.min(l,u.from):l,1e8),create:mPt,above:o.aboveCursor},i?i.timestamp:Date.now(),s,!1)}map(e){return new ev(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class eT{constructor(e,n,r){this.active=e,this.id=n,this.open=r}static start(){return new eT(vPt,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:n}=e,r=n.facet(jr),o=(r.override||n.languageDataAt("autocomplete",Tc(n)).map(rPt)).map(s=>(this.active.find(u=>u.source==s)||new Po(s,this.active.some(u=>u.state!=0)?1:0)).update(e,r));o.length==this.active.length&&o.every((s,l)=>s==this.active[l])&&(o=this.active);let a=this.open;a&&e.docChanged&&(a=a.map(e.changes)),e.selection||o.some(s=>s.hasResult()&&e.changes.touchesRange(s.from,s.to))||!dPt(o,this.active)?a=ev.build(o,n,this.id,a,r):a&&a.disabled&&!o.some(s=>s.state==1)&&(a=null),!a&&o.every(s=>s.state!=1)&&o.some(s=>s.hasResult())&&(o=o.map(s=>s.hasResult()?new Po(s.source,0):s));for(let s of e.effects)s.is(vge)&&(a=a&&a.setSelected(s.value,this.id));return o==this.active&&a==this.open?this:new eT(o,this.id,a)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?hPt:pPt}}function dPt(t,e){if(t==e)return!0;for(let n=0,r=0;;){for(;n<t.length&&!t[n].hasResult;)n++;for(;r<e.length&&!e[r].hasResult;)r++;let i=n==t.length,o=r==e.length;if(i||o)return i==o;if(t[n++].result!=e[r++].result)return!1}}const hPt={"aria-autocomplete":"list"},pPt={};function BK(t,e){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":t};return e>-1&&(n["aria-activedescendant"]=t+"-"+e),n}const vPt=[];function hge(t,e){if(t.isUserEvent("input.complete")){let r=t.annotation(IB);if(r&&e.activateOnCompletion(r))return 12}let n=t.isUserEvent("input.type");return n&&e.activateOnTyping?5:n?1:t.isUserEvent("delete.backward")?2:t.selection?8:t.docChanged?16:0}class Po{constructor(e,n,r=-1){this.source=e,this.state=n,this.explicitPos=r}hasResult(){return!1}update(e,n){let r=hge(e,n),i=this;(r&8||r&16&&this.touches(e))&&(i=new Po(i.source,0)),r&4&&i.state==0&&(i=new Po(this.source,1)),i=i.updateFor(e,r);for(let o of e.effects)if(o.is(JC))i=new Po(i.source,1,o.value?Tc(e.state):-1);else if(o.is(Lb))i=new Po(i.source,0);else if(o.is(pge))for(let a of o.value)a.source==i.source&&(i=a);return i}updateFor(e,n){return this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new Po(this.source,this.state,e.mapPos(this.explicitPos))}touches(e){return e.changes.touchesRange(Tc(e.state))}}class Ov extends Po{constructor(e,n,r,i,o){super(e,2,n),this.result=r,this.from=i,this.to=o}hasResult(){return!0}updateFor(e,n){var r;if(!(n&3))return this.map(e.changes);let i=this.result;i.map&&!e.changes.empty&&(i=i.map(i,e.changes));let o=e.changes.mapPos(this.from),a=e.changes.mapPos(this.to,1),s=Tc(e.state);if((this.explicitPos<0?s<=o:s<this.from)||s>a||!i||n&2&&Tc(e.startState)==this.from)return new Po(this.source,n&4?1:0);let l=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos);return gPt(i.validFor,e.state,o,a)?new Ov(this.source,l,i,o,a):i.update&&(i=i.update(i,o,a,new cge(e.state,s,l>=0)))?new Ov(this.source,l,i,i.from,(r=i.to)!==null&&r!==void 0?r:Tc(e.state)):new Po(this.source,1,l)}map(e){return e.empty?this:(this.result.map?this.result.map(this.result,e):this.result)?new Ov(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1)):new Po(this.source,0)}touches(e){return e.changes.touchesRange(this.from,this.to)}}function gPt(t,e,n,r){if(!t)return!1;let i=e.sliceDoc(n,r);return typeof t=="function"?t(i,n,r,e):dge(t,!0).test(i)}const pge=wt.define({map(t,e){return t.map(n=>n.map(e))}}),vge=wt.define(),Ji=kr.define({create(){return eT.start()},update(t,e){return t.update(e)},provide:t=>[pB.from(t,e=>e.tooltip),He.contentAttributes.from(t,e=>e.attrs)]});function DB(t,e){const n=e.completion.apply||e.completion.label;let r=t.state.field(Ji).active.find(i=>i.source==e.source);return r instanceof Ov?(typeof n=="string"?t.dispatch(Object.assign(Object.assign({},nPt(t.state,n,r.from,r.to)),{annotations:IB.of(e.completion)})):n(t,e.completion,r.from,r.to),!0):!1}const mPt=uPt(Ji,DB);function Dw(t,e="option"){return n=>{let r=n.state.field(Ji,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp<n.state.facet(jr).interactionDelay)return!1;let i=1,o;e=="page"&&(o=Upe(n,r.open.tooltip))&&(i=Math.max(2,Math.floor(o.dom.offsetHeight/o.dom.querySelector("li").offsetHeight)-1));let{length:a}=r.open.options,s=r.open.selected>-1?r.open.selected+i*(t?1:-1):t?0:a-1;return s<0?s=e=="page"?0:a-1:s>=a&&(s=e=="page"?a-1:0),n.dispatch({effects:vge.of(s)}),!0}}const yPt=t=>{let e=t.state.field(Ji,!1);return t.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestamp<t.state.facet(jr).interactionDelay?!1:DB(t,e.open.options[e.open.selected])},bPt=t=>t.state.field(Ji,!1)?(t.dispatch({effects:JC.of(!0)}),!0):!1,_Pt=t=>{let e=t.state.field(Ji,!1);return!e||!e.active.some(n=>n.state!=0)?!1:(t.dispatch({effects:Lb.of(null)}),!0)};class OPt{constructor(e,n){this.active=e,this.context=n,this.time=Date.now(),this.updates=[],this.done=void 0}}const wPt=50,xPt=1e3,SPt=or.fromClass(class{constructor(t){this.view=t,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let e of t.state.field(Ji).active)e.state==1&&this.startQuery(e)}update(t){let e=t.state.field(Ji),n=t.state.facet(jr);if(!t.selectionSet&&!t.docChanged&&t.startState.field(Ji)==e)return;let r=t.transactions.some(o=>{let a=hge(o,n);return a&8||(o.selection||o.docChanged)&&!(a&3)});for(let o=0;o<this.running.length;o++){let a=this.running[o];if(r||a.updates.length+t.transactions.length>wPt&&Date.now()-a.time>xPt){for(let s of a.context.abortListeners)try{s()}catch(l){to(this.view.state,l)}a.context.abortListeners=null,this.running.splice(o--,1)}else a.updates.push(...t.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),t.transactions.some(o=>o.effects.some(a=>a.is(JC)))&&(this.pendingStart=!0);let i=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=e.active.some(o=>o.state==1&&!this.running.some(a=>a.active.source==o.source))?setTimeout(()=>this.startUpdate(),i):-1,this.composing!=0)for(let o of t.transactions)o.isUserEvent("input.type")?this.composing=2:this.composing==2&&o.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:t}=this.view,e=t.field(Ji);for(let n of e.active)n.state==1&&!this.running.some(r=>r.active.source==n.source)&&this.startQuery(n)}startQuery(t){let{state:e}=this.view,n=Tc(e),r=new cge(e,n,t.explicitPos==n,this.view),i=new OPt(t,r);this.running.push(i),Promise.resolve(t.source(r)).then(o=>{i.context.aborted||(i.done=o||null,this.scheduleAccept())},o=>{this.view.dispatch({effects:Lb.of(null)}),to(this.view.state,o)})}scheduleAccept(){this.running.every(t=>t.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(jr).updateSyncTime))}accept(){var t;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],n=this.view.state.facet(jr);for(let r=0;r<this.running.length;r++){let i=this.running[r];if(i.done===void 0)continue;if(this.running.splice(r--,1),i.done){let a=new Ov(i.active.source,i.active.explicitPos,i.done,i.done.from,(t=i.done.to)!==null&&t!==void 0?t:Tc(i.updates.length?i.updates[0].startState:this.view.state));for(let s of i.updates)a=a.update(s,n);if(a.hasResult()){e.push(a);continue}}let o=this.view.state.field(Ji).active.find(a=>a.source==i.active.source);if(o&&o.state==1)if(i.done==null){let a=new Po(i.active.source,0);for(let s of i.updates)a=a.update(s,n);a.state!=1&&e.push(a)}else this.startQuery(o)}e.length&&this.view.dispatch({effects:pge.of(e)})}},{eventHandlers:{blur(t){let e=this.view.state.field(Ji,!1);if(e&&e.tooltip&&this.view.state.facet(jr).closeOnBlur){let n=e.open&&Upe(this.view,e.open.tooltip);(!n||!n.dom.contains(t.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:Lb.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:JC.of(!1)}),20),this.composing=0}}}),CPt=typeof navigator=="object"&&/Win/.test(navigator.platform),TPt=tf.highest(He.domEventHandlers({keydown(t,e){let n=e.state.field(Ji,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||t.key.length>1||t.ctrlKey&&!(CPt&&t.altKey)||t.metaKey)return!1;let r=n.open.options[n.open.selected],i=n.active.find(a=>a.source==r.source),o=r.completion.commitCharacters||i.result.commitCharacters;return o&&o.indexOf(t.key)>-1&&DB(e,r),!1}})),gge=He.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class PPt{constructor(e,n,r,i){this.field=e,this.line=n,this.from=r,this.to=i}}class RB{constructor(e,n,r){this.field=e,this.from=n,this.to=r}map(e){let n=e.mapPos(this.from,-1,Gr.TrackDel),r=e.mapPos(this.to,1,Gr.TrackDel);return n==null||r==null?null:new RB(this.field,n,r)}}class kB{constructor(e,n){this.lines=e,this.fieldPositions=n}instantiate(e,n){let r=[],i=[n],o=e.doc.lineAt(n),a=/^\s*/.exec(o.text)[0];for(let l of this.lines){if(r.length){let u=a,c=/^\t*/.exec(l)[0].length;for(let f=0;f<c;f++)u+=e.facet(z_);i.push(n+u.length-c),l=u+l.slice(c)}r.push(l),n+=l.length+1}let s=this.fieldPositions.map(l=>new RB(l.field,i[l.line]+l.from,i[l.line]+l.to));return{text:r,ranges:s}}static parse(e){let n=[],r=[],i=[],o;for(let a of e.split(/\r\n?|\n/)){for(;o=/[#$]\{(?:(\d+)(?::([^}]*))?|((?:\\[{}]|[^}])*))\}/.exec(a);){let s=o[1]?+o[1]:null,l=o[2]||o[3]||"",u=-1,c=l.replace(/\\[{}]/g,f=>f[1]);for(let f=0;f<n.length;f++)(s!=null?n[f].seq==s:c&&n[f].name==c)&&(u=f);if(u<0){let f=0;for(;f<n.length&&(s==null||n[f].seq!=null&&n[f].seq<s);)f++;n.splice(f,0,{seq:s,name:c}),u=f;for(let d of i)d.field>=u&&d.field++}i.push(new PPt(u,r.length,o.index,o.index+c.length)),a=a.slice(0,o.index)+l+a.slice(o.index+o[0].length)}a=a.replace(/\\([{}])/g,(s,l,u)=>{for(let c of i)c.line==r.length&&c.from>u&&(c.from--,c.to--);return l}),r.push(a)}return new kB(r,i)}}let $Pt=tt.widget({widget:new class extends ml{toDOM(){let t=document.createElement("span");return t.className="cm-snippetFieldPosition",t}ignoreEvent(){return!1}}}),APt=tt.mark({class:"cm-snippetField"});class em{constructor(e,n){this.ranges=e,this.active=n,this.deco=tt.set(e.map(r=>(r.from==r.to?$Pt:APt).range(r.from,r.to)))}map(e){let n=[];for(let r of this.ranges){let i=r.map(e);if(!i)return null;n.push(i)}return new em(n,this.active)}selectionInsideField(e){return e.ranges.every(n=>this.ranges.some(r=>r.field==this.active&&r.from<=n.from&&r.to>=n.to))}}const G_=wt.define({map(t,e){return t&&t.map(e)}}),EPt=wt.define(),Bb=kr.define({create(){return null},update(t,e){for(let n of e.effects){if(n.is(G_))return n.value;if(n.is(EPt)&&t)return new em(t.ranges,n.value)}return t&&e.docChanged&&(t=t.map(e.changes)),t&&e.selection&&!t.selectionInsideField(e.selection)&&(t=null),t},provide:t=>He.decorations.from(t,e=>e?e.deco:tt.none)});function NB(t,e){return Te.create(t.filter(n=>n.field==e).map(n=>Te.range(n.from,n.to)))}function MPt(t){let e=kB.parse(t);return(n,r,i,o)=>{let{text:a,ranges:s}=e.instantiate(n.state,i),l={changes:{from:i,to:o,insert:en.of(a)},scrollIntoView:!0,annotations:r?[IB.of(r),cr.userEvent.of("input.complete")]:void 0};if(s.length&&(l.selection=NB(s,0)),s.some(u=>u.field>0)){let u=new em(s,0),c=l.effects=[G_.of(u)];n.state.field(Bb,!1)===void 0&&c.push(wt.appendConfig.of([Bb,NPt,LPt,gge]))}n.dispatch(n.state.update(l))}}function mge(t){return({state:e,dispatch:n})=>{let r=e.field(Bb,!1);if(!r||t<0&&r.active==0)return!1;let i=r.active+t,o=t>0&&!r.ranges.some(a=>a.field==i+t);return n(e.update({selection:NB(r.ranges,i),effects:G_.of(o?null:new em(r.ranges,i)),scrollIntoView:!0})),!0}}const IPt=({state:t,dispatch:e})=>t.field(Bb,!1)?(e(t.update({effects:G_.of(null)})),!0):!1,DPt=mge(1),RPt=mge(-1),kPt=[{key:"Tab",run:DPt,shift:RPt},{key:"Escape",run:IPt}],VK=Ye.define({combine(t){return t.length?t[0]:kPt}}),NPt=tf.highest(B_.compute([VK],t=>t.facet(VK)));function ji(t,e){return Object.assign(Object.assign({},e),{apply:MPt(t)})}const LPt=He.domEventHandlers({mousedown(t,e){let n=e.state.field(Bb,!1),r;if(!n||(r=e.posAtCoords({x:t.clientX,y:t.clientY}))==null)return!1;let i=n.ranges.find(o=>o.from<=r&&o.to>=r);return!i||i.field==n.active?!1:(e.dispatch({selection:NB(n.ranges,i.field),effects:G_.of(n.ranges.some(o=>o.field>i.field)?new em(n.ranges,i.field):null),scrollIntoView:!0}),!0)}}),Vb={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Pd=wt.define({map(t,e){let n=e.mapPos(t,-1,Gr.TrackAfter);return n??void 0}}),LB=new class extends vh{};LB.startSide=1;LB.endSide=-1;const yge=kr.define({create(){return Jt.empty},update(t,e){if(t=t.map(e.changes),e.selection){let n=e.state.doc.lineAt(e.selection.main.head);t=t.update({filter:r=>r>=n.from&&r<=n.to})}for(let n of e.effects)n.is(Pd)&&(t=t.update({add:[LB.range(n.value,n.value+1)]}));return t}});function BPt(){return[zPt,yge]}const $I="()[]{}<>";function bge(t){for(let e=0;e<$I.length;e+=2)if($I.charCodeAt(e)==t)return $I.charAt(e+1);return rB(t<128?t:t+1)}function _ge(t,e){return t.languageDataAt("closeBrackets",e)[0]||Vb}const VPt=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),zPt=He.inputHandler.of((t,e,n,r)=>{if((VPt?t.composing:t.compositionStarted)||t.state.readOnly)return!1;let i=t.state.selection.main;if(r.length>2||r.length==2&&ha(Qr(r,0))==1||e!=i.from||n!=i.to)return!1;let o=QPt(t.state,r);return o?(t.dispatch(o),!0):!1}),FPt=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let r=_ge(t,t.selection.main.head).brackets||Vb.brackets,i=null,o=t.changeByRange(a=>{if(a.empty){let s=HPt(t.doc,a.head);for(let l of r)if(l==s&&m2(t.doc,a.head)==bge(Qr(l,0)))return{changes:{from:a.head-l.length,to:a.head+l.length},range:Te.cursor(a.head-l.length)}}return{range:i=a}});return i||e(t.update(o,{scrollIntoView:!0,userEvent:"delete.backward"})),!i},WPt=[{key:"Backspace",run:FPt}];function QPt(t,e){let n=_ge(t,t.selection.main.head),r=n.brackets||Vb.brackets;for(let i of r){let o=bge(Qr(i,0));if(e==i)return o==i?UPt(t,i,r.indexOf(i+i+i)>-1,n):GPt(t,i,o,n.before||Vb.before);if(e==o&&Oge(t,t.selection.main.from))return jPt(t,i,o)}return null}function Oge(t,e){let n=!1;return t.field(yge).between(0,t.doc.length,r=>{r==e&&(n=!0)}),n}function m2(t,e){let n=t.sliceString(e,e+2);return n.slice(0,ha(Qr(n,0)))}function HPt(t,e){let n=t.sliceString(e-2,e);return ha(Qr(n,0))==n.length?n:n.slice(1)}function GPt(t,e,n,r){let i=null,o=t.changeByRange(a=>{if(!a.empty)return{changes:[{insert:e,from:a.from},{insert:n,from:a.to}],effects:Pd.of(a.to+e.length),range:Te.range(a.anchor+e.length,a.head+e.length)};let s=m2(t.doc,a.head);return!s||/\s/.test(s)||r.indexOf(s)>-1?{changes:{insert:e+n,from:a.head},effects:Pd.of(a.head+e.length),range:Te.cursor(a.head+e.length)}:{range:i=a}});return i?null:t.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function jPt(t,e,n){let r=null,i=t.changeByRange(o=>o.empty&&m2(t.doc,o.head)==n?{changes:{from:o.head,to:o.head+n.length,insert:n},range:Te.cursor(o.head+n.length)}:r={range:o});return r?null:t.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function UPt(t,e,n,r){let i=r.stringPrefixes||Vb.stringPrefixes,o=null,a=t.changeByRange(s=>{if(!s.empty)return{changes:[{insert:e,from:s.from},{insert:e,from:s.to}],effects:Pd.of(s.to+e.length),range:Te.range(s.anchor+e.length,s.head+e.length)};let l=s.head,u=m2(t.doc,l),c;if(u==e){if(zK(t,l))return{changes:{insert:e+e,from:l},effects:Pd.of(l+e.length),range:Te.cursor(l+e.length)};if(Oge(t,l)){let d=n&&t.sliceDoc(l,l+e.length*3)==e+e+e?e+e+e:e;return{changes:{from:l,to:l+d.length,insert:d},range:Te.cursor(l+d.length)}}}else{if(n&&t.sliceDoc(l-2*e.length,l)==e+e&&(c=FK(t,l-2*e.length,i))>-1&&zK(t,c))return{changes:{insert:e+e+e+e,from:l},effects:Pd.of(l+e.length),range:Te.cursor(l+e.length)};if(t.charCategorizer(l)(u)!=Ln.Word&&FK(t,l,i)>-1&&!ZPt(t,l,e,i))return{changes:{insert:e+e,from:l},effects:Pd.of(l+e.length),range:Te.cursor(l+e.length)}}return{range:o=s}});return o?null:t.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function zK(t,e){let n=Pr(t).resolveInner(e+1);return n.parent&&n.from==e}function ZPt(t,e,n,r){let i=Pr(t).resolveInner(e,-1),o=r.reduce((a,s)=>Math.max(a,s.length),0);for(let a=0;a<5;a++){let s=t.sliceDoc(i.from,Math.min(i.to,i.from+n.length+o)),l=s.indexOf(n);if(!l||l>-1&&r.indexOf(s.slice(0,l))>-1){let c=i.firstChild;for(;c&&c.from==i.from&&c.to-c.from>n.length+l;){if(t.sliceDoc(c.to-n.length,c.to)==n)return!1;c=c.firstChild}return!0}let u=i.to==e&&i.parent;if(!u)break;i=u}return!1}function FK(t,e,n){let r=t.charCategorizer(e);if(r(t.sliceDoc(e-1,e))!=Ln.Word)return e;for(let i of n){let o=e-i.length;if(t.sliceDoc(o,e)==i&&r(t.sliceDoc(o-1,o))!=Ln.Word)return o}return-1}function XPt(t={}){return[TPt,Ji,jr.of(t),SPt,YPt,gge]}const wge=[{key:"Ctrl-Space",run:bPt},{key:"Escape",run:_Pt},{key:"ArrowDown",run:Dw(!0)},{key:"ArrowUp",run:Dw(!1)},{key:"PageDown",run:Dw(!0,"page")},{key:"PageUp",run:Dw(!1,"page")},{key:"Enter",run:yPt}],YPt=tf.highest(B_.computeN([jr],t=>t.facet(jr).defaultKeymap?[wge]:[]));class qPt{constructor(e,n,r){this.from=e,this.to=n,this.diagnostic=r}}class dd{constructor(e,n,r){this.diagnostics=e,this.panel=n,this.selected=r}static init(e,n,r){let i=e,o=r.facet(zb).markerFilter;o&&(i=o(i,r));let a=tt.set(i.map(s=>s.from==s.to||s.from==s.to-1&&r.doc.lineAt(s.from).to==s.from?tt.widget({widget:new a2t(s),diagnostic:s}).range(s.from):tt.mark({attributes:{class:"cm-lintRange cm-lintRange-"+s.severity+(s.markClass?" "+s.markClass:"")},diagnostic:s}).range(s.from,s.to)),!0);return new dd(a,n,pg(a))}}function pg(t,e=null,n=0){let r=null;return t.between(n,1e9,(i,o,{spec:a})=>{if(!(e&&a.diagnostic!=e))return r=new qPt(i,o,a.diagnostic),!1}),r}function KPt(t,e){let n=e.pos,r=e.end||n,i=t.state.facet(zb).hideOn(t,n,r);if(i!=null)return i;let o=t.startState.doc.lineAt(e.pos);return!!(t.effects.some(a=>a.is(xge))||t.changes.touchesRange(o.from,Math.max(o.to,r)))}function JPt(t,e){return t.field(Mo,!1)?e:e.concat(wt.appendConfig.of(u2t))}const xge=wt.define(),BB=wt.define(),Sge=wt.define(),Mo=kr.define({create(){return new dd(tt.none,null,null)},update(t,e){if(e.docChanged&&t.diagnostics.size){let n=t.diagnostics.map(e.changes),r=null,i=t.panel;if(t.selected){let o=e.changes.mapPos(t.selected.from,1);r=pg(n,t.selected.diagnostic,o)||pg(n,null,o)}!n.size&&i&&e.state.facet(zb).autoPanel&&(i=null),t=new dd(n,i,r)}for(let n of e.effects)if(n.is(xge)){let r=e.state.facet(zb).autoPanel?n.value.length?Fb.open:null:t.panel;t=dd.init(n.value,r,e.state)}else n.is(BB)?t=new dd(t.diagnostics,n.value?Fb.open:null,t.selected):n.is(Sge)&&(t=new dd(t.diagnostics,t.panel,n.value));return t},provide:t=>[Ib.from(t,e=>e.panel),He.decorations.from(t,e=>e.diagnostics)]}),e2t=tt.mark({class:"cm-lintRange cm-lintRange-active"});function t2t(t,e,n){let{diagnostics:r}=t.state.field(Mo),i=[],o=2e8,a=0;r.between(e-(n<0?1:0),e+(n>0?1:0),(l,u,{spec:c})=>{e>=l&&e<=u&&(l==u||(e>l||n>0)&&(e<u||n<0))&&(i.push(c.diagnostic),o=Math.min(l,o),a=Math.max(u,a))});let s=t.state.facet(zb).tooltipFilter;return s&&(i=s(i,t.state)),i.length?{pos:o,end:a,above:t.state.doc.lineAt(o).to<a,create(){return{dom:n2t(t,i)}}}:null}function n2t(t,e){return Cn("ul",{class:"cm-tooltip-lint"},e.map(n=>Tge(t,n,!1)))}const r2t=t=>{let e=t.state.field(Mo,!1);(!e||!e.panel)&&t.dispatch({effects:JPt(t.state,[BB.of(!0)])});let n=Mb(t,Fb.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},WK=t=>{let e=t.state.field(Mo,!1);return!e||!e.panel?!1:(t.dispatch({effects:BB.of(!1)}),!0)},i2t=t=>{let e=t.state.field(Mo,!1);if(!e)return!1;let n=t.state.selection.main,r=e.diagnostics.iter(n.to+1);return!r.value&&(r=e.diagnostics.iter(0),!r.value||r.from==n.from&&r.to==n.to)?!1:(t.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),!0)},o2t=[{key:"Mod-Shift-m",run:r2t,preventDefault:!0},{key:"F8",run:i2t}],zb=Ye.define({combine(t){return Object.assign({sources:t.map(e=>e.source).filter(e=>e!=null)},gl(t.map(e=>e.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{needsRefresh:(e,n)=>e?n?r=>e(r)||n(r):e:n}))}});function Cge(t){let e=[];if(t)e:for(let{name:n}of t){for(let r=0;r<n.length;r++){let i=n[r];if(/[a-zA-Z]/.test(i)&&!e.some(o=>o.toLowerCase()==i.toLowerCase())){e.push(i);continue e}}e.push("")}return e}function Tge(t,e,n){var r;let i=n?Cge(e.actions):[];return Cn("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},Cn("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage(t):e.message),(r=e.actions)===null||r===void 0?void 0:r.map((o,a)=>{let s=!1,l=d=>{if(d.preventDefault(),s)return;s=!0;let p=pg(t.state.field(Mo).diagnostics,e);p&&o.apply(t,p.from,p.to)},{name:u}=o,c=i[a]?u.indexOf(i[a]):-1,f=c<0?u:[u.slice(0,c),Cn("u",u.slice(c,c+1)),u.slice(c+1)];return Cn("button",{type:"button",class:"cm-diagnosticAction",onclick:l,onmousedown:l,"aria-label":` Action: ${u}${c<0?"":` (access key "${i[a]})"`}.`},f)}),e.source&&Cn("div",{class:"cm-diagnosticSource"},e.source))}class a2t extends ml{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return Cn("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class QK{constructor(e,n){this.diagnostic=n,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=Tge(e,n,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class Fb{constructor(e){this.view=e,this.items=[];let n=i=>{if(i.keyCode==27)WK(this.view),this.view.focus();else if(i.keyCode==38||i.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(i.keyCode==40||i.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(i.keyCode==36)this.moveSelection(0);else if(i.keyCode==35)this.moveSelection(this.items.length-1);else if(i.keyCode==13)this.view.focus();else if(i.keyCode>=65&&i.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:o}=this.items[this.selectedIndex],a=Cge(o.actions);for(let s=0;s<a.length;s++)if(a[s].toUpperCase().charCodeAt(0)==i.keyCode){let l=pg(this.view.state.field(Mo).diagnostics,o);l&&o.actions[s].apply(e,l.from,l.to)}}else return;i.preventDefault()},r=i=>{for(let o=0;o<this.items.length;o++)this.items[o].dom.contains(i.target)&&this.moveSelection(o)};this.list=Cn("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:n,onclick:r}),this.dom=Cn("div",{class:"cm-panel-lint"},this.list,Cn("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>WK(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(Mo).selected;if(!e)return-1;for(let n=0;n<this.items.length;n++)if(this.items[n].diagnostic==e.diagnostic)return n;return-1}update(){let{diagnostics:e,selected:n}=this.view.state.field(Mo),r=0,i=!1,o=null;for(e.between(0,this.view.state.doc.length,(a,s,{spec:l})=>{let u=-1,c;for(let f=r;f<this.items.length;f++)if(this.items[f].diagnostic==l.diagnostic){u=f;break}u<0?(c=new QK(this.view,l.diagnostic),this.items.splice(r,0,c),i=!0):(c=this.items[u],u>r&&(this.items.splice(r,u-r),i=!0)),n&&c.diagnostic==n.diagnostic?c.dom.hasAttribute("aria-selected")||(c.dom.setAttribute("aria-selected","true"),o=c):c.dom.hasAttribute("aria-selected")&&c.dom.removeAttribute("aria-selected"),r++});r<this.items.length&&!(this.items.length==1&&this.items[0].diagnostic.from<0);)i=!0,this.items.pop();this.items.length==0&&(this.items.push(new QK(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),i=!0),o?(this.list.setAttribute("aria-activedescendant",o.id),this.view.requestMeasure({key:this,read:()=>({sel:o.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:a,panel:s})=>{let l=s.height/this.list.offsetHeight;a.top<s.top?this.list.scrollTop-=(s.top-a.top)/l:a.bottom>s.bottom&&(this.list.scrollTop+=(a.bottom-s.bottom)/l)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),i&&this.sync()}sync(){let e=this.list.firstChild;function n(){let r=e;e=r.nextSibling,r.remove()}for(let r of this.items)if(r.dom.parentNode==this.list){for(;e!=r.dom;)n();e=r.dom.nextSibling}else this.list.insertBefore(r.dom,e);for(;e;)n()}moveSelection(e){if(this.selectedIndex<0)return;let n=this.view.state.field(Mo),r=pg(n.diagnostics,this.items[e].diagnostic);r&&this.view.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:Sge.of(r)})}static open(e){return new Fb(e)}}function s2t(t,e='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" ${e}>${encodeURIComponent(t)}</svg>')`}function Rw(t){return s2t(`<path d="m0 2.5 l2 -1.5 l1 0 l2 1.5 l1 0" stroke="${t}" fill="none" stroke-width=".7"/>`,'width="6" height="3"')}const l2t=He.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:Rw("#d11")},".cm-lintRange-warning":{backgroundImage:Rw("orange")},".cm-lintRange-info":{backgroundImage:Rw("#999")},".cm-lintRange-hint":{backgroundImage:Rw("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}}),u2t=[Mo,He.decorations.compute([Mo],t=>{let{selected:e,panel:n}=t.field(Mo);return!e||!n||e.from==e.to?tt.none:tt.set([e2t.range(e.from,e.to)])}),Yxt(t2t,{hideOn:KPt}),l2t],c2t=[oSt(),lSt(),Cxt(),xCt(),YSt(),pxt(),bxt(),Wt.allowMultipleSelections.of(!0),LSt(),yve(eCt,{fallback:!0}),sCt(),BPt(),XPt(),Vxt(),Wxt(),Mxt(),MTt(),B_.of([...WPt,...STt,...YTt,...ICt,...jSt,...wge,...o2t])];/*!
  405. * VueCodemirror v6.1.1
  406. * Copyright (c) Surmon. All rights reserved.
  407. * Released under the MIT License.
  408. * Surmon
  409. */var f2t=Object.freeze({autofocus:!1,disabled:!1,indentWithTab:!0,tabSize:2,placeholder:"",autoDestroy:!0,extensions:[c2t]}),d2t=Symbol("vue-codemirror-global-config"),Ci,h2t=function(t){var e=t.onUpdate,n=t.onChange,r=t.onFocus,i=t.onBlur,o=function(a,s){var l={};for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&s.indexOf(u)<0&&(l[u]=a[u]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function"){var c=0;for(u=Object.getOwnPropertySymbols(a);c<u.length;c++)s.indexOf(u[c])<0&&Object.prototype.propertyIsEnumerable.call(a,u[c])&&(l[u[c]]=a[u[c]])}return l}(t,["onUpdate","onChange","onFocus","onBlur"]);return Wt.create({doc:o.doc,selection:o.selection,extensions:(Array.isArray(o.extensions)?o.extensions:[o.extensions]).concat([He.updateListener.of(function(a){e(a),a.docChanged&&n(a.state.doc.toString(),a),a.focusChanged&&(a.view.hasFocus?r(a):i(a))})])})},Qp=function(t){var e=new k_;return{compartment:e,run:function(n){e.get(t.state)?t.dispatch({effects:e.reconfigure(n)}):t.dispatch({effects:wt.appendConfig.of(e.of(n))})}}},HK=function(t,e){var n=Qp(t),r=n.compartment,i=n.run;return function(o){var a=r.get(t.state);i(o??a!==e?e:[])}},kw={type:Boolean,default:void 0},p2t={autofocus:kw,disabled:kw,indentWithTab:kw,tabSize:Number,placeholder:String,style:Object,autoDestroy:kw,phrases:Object,root:Object,extensions:Array,selection:Object},v2t={modelValue:{type:String,default:""}},g2t=Object.assign(Object.assign({},p2t),v2t);(function(t){t.Change="change",t.Update="update",t.Focus="focus",t.Blur="blur",t.Ready="ready",t.ModelUpdate="update:modelValue"})(Ci||(Ci={}));var hd={};hd[Ci.Change]=function(t,e){return!0},hd[Ci.Update]=function(t){return!0},hd[Ci.Focus]=function(t){return!0},hd[Ci.Blur]=function(t){return!0},hd[Ci.Ready]=function(t){return!0};var Pge={};Pge[Ci.ModelUpdate]=hd[Ci.Change];var m2t=Object.assign(Object.assign({},hd),Pge),y2t=h.defineComponent({name:"VueCodemirror",props:Object.assign({},g2t),emits:Object.assign({},m2t),setup:function(t,e){var n=h.shallowRef(),r=h.shallowRef(),i=h.shallowRef(),o=Object.assign(Object.assign({},f2t),h.inject(d2t,{})),a=h.computed(function(){var s={};return Object.keys(h.toRaw(t)).forEach(function(l){var u;l!=="modelValue"&&(s[l]=(u=t[l])!==null&&u!==void 0?u:o[l])}),s});return h.onMounted(function(){var s;r.value=h2t({doc:t.modelValue,selection:a.value.selection,extensions:(s=o.extensions)!==null&&s!==void 0?s:[],onFocus:function(u){return e.emit(Ci.Focus,u)},onBlur:function(u){return e.emit(Ci.Blur,u)},onUpdate:function(u){return e.emit(Ci.Update,u)},onChange:function(u,c){u!==t.modelValue&&(e.emit(Ci.Change,u,c),e.emit(Ci.ModelUpdate,u,c))}}),i.value=function(u){return new He(Object.assign({},u))}({state:r.value,parent:n.value,root:a.value.root});var l=function(u){var c=function(){return u.state.doc.toString()},f=Qp(u).run,d=HK(u,[He.editable.of(!1),Wt.readOnly.of(!0)]),p=HK(u,B_.of([CTt])),v=Qp(u).run,g=Qp(u).run,m=Qp(u).run,y=Qp(u).run;return{focus:function(){return u.focus()},getDoc:c,setDoc:function(b){b!==c()&&u.dispatch({changes:{from:0,to:u.state.doc.length,insert:b}})},reExtensions:f,toggleDisabled:d,toggleIndentWithTab:p,setTabSize:function(b){v([Wt.tabSize.of(b),z_.of(" ".repeat(b))])},setPhrases:function(b){g([Wt.phrases.of(b)])},setPlaceholder:function(b){m(kxt(b))},setStyle:function(b){b===void 0&&(b={}),y(He.theme({"&":Object.assign({},b)}))}}}(i.value);h.watch(function(){return t.modelValue},function(u){u!==l.getDoc()&&l.setDoc(u)}),h.watch(function(){return t.extensions},function(u){return l.reExtensions(u||[])},{immediate:!0}),h.watch(function(){return a.value.disabled},function(u){return l.toggleDisabled(u)},{immediate:!0}),h.watch(function(){return a.value.indentWithTab},function(u){return l.toggleIndentWithTab(u)},{immediate:!0}),h.watch(function(){return a.value.tabSize},function(u){return l.setTabSize(u)},{immediate:!0}),h.watch(function(){return a.value.phrases},function(u){return l.setPhrases(u||{})},{immediate:!0}),h.watch(function(){return a.value.placeholder},function(u){return l.setPlaceholder(u)},{immediate:!0}),h.watch(function(){return a.value.style},function(u){return l.setStyle(u)},{immediate:!0}),a.value.autofocus&&l.focus(),e.emit(Ci.Ready,{state:r.value,view:i.value,container:n.value})}),h.onBeforeUnmount(function(){a.value.autoDestroy&&i.value&&function(s){s.destroy()}(i.value)}),function(){return h.h("div",{class:"v-codemirror",style:{display:"contents"},ref:n})}}}),b2t=y2t;const _2t="#e5c07b",GK="#e06c75",O2t="#56b6c2",w2t="#ffffff",Wx="#abb2bf",qN="#7d8799",x2t="#61afef",S2t="#98c379",jK="#d19a66",C2t="#c678dd",T2t="#21252b",UK="#2c313a",ZK="#282c34",AI="#353a42",P2t="#3E4451",XK="#528bff",$2t=He.theme({"&":{color:Wx,backgroundColor:ZK},".cm-content":{caretColor:XK},".cm-cursor, .cm-dropCursor":{borderLeftColor:XK},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:P2t},".cm-panels":{backgroundColor:T2t,color:Wx},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:ZK,color:qN,border:"none"},".cm-activeLineGutter":{backgroundColor:UK},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:AI},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:AI,borderBottomColor:AI},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:UK,color:Wx}}},{dark:!0}),A2t=W_.define([{tag:ae.keyword,color:C2t},{tag:[ae.name,ae.deleted,ae.character,ae.propertyName,ae.macroName],color:GK},{tag:[ae.function(ae.variableName),ae.labelName],color:x2t},{tag:[ae.color,ae.constant(ae.name),ae.standard(ae.name)],color:jK},{tag:[ae.definition(ae.name),ae.separator],color:Wx},{tag:[ae.typeName,ae.className,ae.number,ae.changed,ae.annotation,ae.modifier,ae.self,ae.namespace],color:_2t},{tag:[ae.operator,ae.operatorKeyword,ae.url,ae.escape,ae.regexp,ae.link,ae.special(ae.string)],color:O2t},{tag:[ae.meta,ae.comment],color:qN},{tag:ae.strong,fontWeight:"bold"},{tag:ae.emphasis,fontStyle:"italic"},{tag:ae.strikethrough,textDecoration:"line-through"},{tag:ae.link,color:qN,textDecoration:"underline"},{tag:ae.heading,fontWeight:"bold",color:GK},{tag:[ae.atom,ae.bool,ae.special(ae.variableName)],color:jK},{tag:[ae.processingInstruction,ae.string,ae.inserted],color:S2t},{tag:ae.invalid,color:w2t}]),E2t=[$2t,yve(A2t)];class tT{constructor(e,n,r,i,o,a,s,l,u,c=0,f){this.p=e,this.stack=n,this.state=r,this.reducePos=i,this.pos=o,this.score=a,this.buffer=s,this.bufferBase=l,this.curContext=u,this.lookAhead=c,this.parent=f}toString(){return`[${this.stack.filter((e,n)=>n%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,n,r=0){let i=e.parser.context;return new tT(e,[],n,r,r,0,[],0,i?new YK(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,n){this.stack.push(this.state,n,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var n;let r=e>>19,i=e&65535,{parser:o}=this.p;this.reducePos<this.pos-25&&this.setLookAhead(this.pos);let a=o.dynamicPrecedence(i);if(a&&(this.score+=a),r==0){this.pushState(o.getGoto(this.state,i,!0),this.reducePos),i<o.minRepeatTerm&&this.storeNode(i,this.reducePos,this.reducePos,4,!0),this.reduceContext(i,this.reducePos);return}let s=this.stack.length-(r-1)*3-(e&262144?6:0),l=s?this.stack[s-2]:this.p.ranges[0].from,u=this.reducePos-l;u>=2e3&&!(!((n=this.p.parser.nodeSet.types[i])===null||n===void 0)&&n.isAnonymous)&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=u):this.p.lastBigReductionSize<u&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=l,this.p.lastBigReductionSize=u));let c=s?this.stack[s-1]:0,f=this.bufferBase+this.buffer.length-c;if(i<o.minRepeatTerm||e&131072){let d=o.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(i,l,d,f+4,!0)}if(e&262144)this.state=this.stack[s];else{let d=this.stack[s-3];this.state=o.getGoto(d,i,!0)}for(;this.stack.length>s;)this.stack.pop();this.reduceContext(i,l)}storeNode(e,n,r,i=4,o=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let a=this,s=this.buffer.length;if(s==0&&a.parent&&(s=a.bufferBase-a.parent.bufferBase,a=a.parent),s>0&&a.buffer[s-4]==0&&a.buffer[s-1]>-1){if(n==r)return;if(a.buffer[s-2]>=n){a.buffer[s-2]=r;return}}}if(!o||this.pos==r)this.buffer.push(e,n,r,i);else{let a=this.buffer.length;if(a>0&&this.buffer[a-4]!=0)for(;a>0&&this.buffer[a-2]>r;)this.buffer[a]=this.buffer[a-4],this.buffer[a+1]=this.buffer[a-3],this.buffer[a+2]=this.buffer[a-2],this.buffer[a+3]=this.buffer[a-1],a-=4,i>4&&(i-=4);this.buffer[a]=e,this.buffer[a+1]=n,this.buffer[a+2]=r,this.buffer[a+3]=i}}shift(e,n,r,i){if(e&131072)this.pushState(e&65535,this.pos);else if(e&262144)this.pos=i,this.shiftContext(n,r),n<=this.p.parser.maxNode&&this.buffer.push(n,r,i,4);else{let o=e,{parser:a}=this.p;(i>this.pos||n<=a.maxNode)&&(this.pos=i,a.stateFlag(o,1)||(this.reducePos=i)),this.pushState(o,r),this.shiftContext(n,r),n<=a.maxNode&&this.buffer.push(n,r,i,4)}}apply(e,n,r,i){e&65536?this.reduce(e):this.shift(e,n,r,i)}useNode(e,n){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=e)&&(this.p.reused.push(e),r++);let i=this.pos;this.reducePos=this.pos=i+e.length,this.pushState(n,i),this.buffer.push(r,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,n=e.buffer.length;for(;n>0&&e.buffer[n-2]>e.reducePos;)n-=4;let r=e.buffer.slice(n),i=e.bufferBase+n;for(;e&&i==e.bufferBase;)e=e.parent;return new tT(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,r,i,this.curContext,this.lookAhead,e)}recoverByDelete(e,n){let r=e<=this.p.parser.maxNode;r&&this.storeNode(e,this.pos,n,4),this.storeNode(0,this.pos,n,r?8:4),this.pos=this.reducePos=n,this.score-=190}canShift(e){for(let n=new M2t(this);;){let r=this.p.parser.stateSlot(n.state,4)||this.p.parser.hasAction(n.state,e);if(r==0)return!1;if(!(r&65536))return!0;n.reduce(r)}}recoverByInsert(e){if(this.stack.length>=300)return[];let n=this.p.parser.nextStates(this.state);if(n.length>8||this.stack.length>=120){let i=[];for(let o=0,a;o<n.length;o+=2)(a=n[o+1])!=this.state&&this.p.parser.hasAction(a,e)&&i.push(n[o],a);if(this.stack.length<120)for(let o=0;i.length<8&&o<n.length;o+=2){let a=n[o+1];i.some((s,l)=>l&1&&s==a)||i.push(n[o],a)}n=i}let r=[];for(let i=0;i<n.length&&r.length<4;i+=2){let o=n[i+1];if(o==this.state)continue;let a=this.split();a.pushState(o,this.pos),a.storeNode(0,a.pos,a.pos,4,!0),a.shiftContext(n[i],this.pos),a.reducePos=this.pos,a.score-=200,r.push(a)}return r}forceReduce(){let{parser:e}=this.p,n=e.stateSlot(this.state,5);if(!(n&65536))return!1;if(!e.validAction(this.state,n)){let r=n>>19,i=n&65535,o=this.stack.length-r*3;if(o<0||e.getGoto(this.stack[o],i,!1)<0){let a=this.findForcedReduction();if(a==null)return!1;n=a}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}findForcedReduction(){let{parser:e}=this.p,n=[],r=(i,o)=>{if(!n.includes(i))return n.push(i),e.allActions(i,a=>{if(!(a&393216))if(a&65536){let s=(a>>19)-o;if(s>1){let l=a&65535,u=this.stack.length-s*3;if(u>=0&&e.getGoto(this.stack[u],l,!1)>=0)return s<<19|65536|l}}else{let s=r(a,o+1);if(s!=null)return s}})};return r(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:e}=this.p;return e.data[e.stateSlot(this.state,1)]==65535&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let n=0;n<this.stack.length;n+=3)if(this.stack[n]!=e.stack[n])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,n){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(n)))}reduceContext(e,n){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(n)))}emitContext(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-3)&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||this.buffer[e]!=-4)&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let n=new YK(this.curContext.tracker,e);n.hash!=this.curContext.hash&&this.emitContext(),this.curContext=n}}setLookAhead(e){e>this.lookAhead&&(this.emitLookAhead(),this.lookAhead=e)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class YK{constructor(e,n){this.tracker=e,this.context=n,this.hash=e.strict?e.hash(n):0}}class M2t{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let n=e&65535,r=e>>19;r==0?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(r-1)*3;let i=this.start.p.parser.getGoto(this.stack[this.base-3],n,!0);this.state=i}}class nT{constructor(e,n,r){this.stack=e,this.pos=n,this.index=r,this.buffer=e.buffer,this.index==0&&this.maybeNext()}static create(e,n=e.bufferBase+e.buffer.length){return new nT(e,n,n-e.bufferBase)}maybeNext(){let e=this.stack.parent;e!=null&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,this.index==0&&this.maybeNext()}fork(){return new nT(this.stack,this.pos,this.index)}}function F0(t,e=Uint16Array){if(typeof t!="string")return t;let n=null;for(let r=0,i=0;r<t.length;){let o=0;for(;;){let a=t.charCodeAt(r++),s=!1;if(a==126){o=65535;break}a>=92&&a--,a>=34&&a--;let l=a-32;if(l>=46&&(l-=46,s=!0),o+=l,s)break;o*=46}n?n[i++]=o:n=new e(o)}return n}class Qx{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const qK=new Qx;class I2t{constructor(e,n){this.input=e,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=qK,this.rangeIndex=0,this.pos=this.chunkPos=n[0].from,this.range=n[0],this.end=n[n.length-1].to,this.readNext()}resolveOffset(e,n){let r=this.range,i=this.rangeIndex,o=this.pos+e;for(;o<r.from;){if(!i)return null;let a=this.ranges[--i];o-=r.from-a.to,r=a}for(;n<0?o>r.to:o>=r.to;){if(i==this.ranges.length-1)return null;let a=this.ranges[++i];o+=a.from-r.to,r=a}return o}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let n of this.ranges)if(n.to>e)return Math.max(e,n.from);return this.end}peek(e){let n=this.chunkOff+e,r,i;if(n>=0&&n<this.chunk.length)r=this.pos+e,i=this.chunk.charCodeAt(n);else{let o=this.resolveOffset(e,1);if(o==null)return-1;if(r=o,r>=this.chunk2Pos&&r<this.chunk2Pos+this.chunk2.length)i=this.chunk2.charCodeAt(r-this.chunk2Pos);else{let a=this.rangeIndex,s=this.range;for(;s.to<=r;)s=this.ranges[++a];this.chunk2=this.input.chunk(this.chunk2Pos=r),r+this.chunk2.length>s.to&&(this.chunk2=this.chunk2.slice(0,s.to-r)),i=this.chunk2.charCodeAt(0)}}return r>=this.token.lookAhead&&(this.token.lookAhead=r+1),i}acceptToken(e,n=0){let r=n?this.resolveOffset(n,-1):this.pos;if(r==null||r<this.token.start)throw new RangeError("Token end out of bounds");this.token.value=e,this.token.end=r}acceptTokenTo(e,n){this.token.value=e,this.token.end=n}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:n}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=n,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),n=this.pos+e.length;this.chunk=n>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,n){if(n?(this.token=n,n.start=e,n.lookAhead=e+1,n.value=n.extended=-1):this.token=qK,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,n){if(e>=this.chunkPos&&n<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,n-this.chunkPos);if(e>=this.chunk2Pos&&n<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,n-this.chunk2Pos);if(e>=this.range.from&&n<=this.range.to)return this.input.read(e,n);let r="";for(let i of this.ranges){if(i.from>=n)break;i.to>e&&(r+=this.input.read(Math.max(i.from,e),Math.min(i.to,n)))}return r}}class wv{constructor(e,n){this.data=e,this.id=n}token(e,n){let{parser:r}=n.p;$ge(this.data,e,n,this.id,r.data,r.tokenPrecTable)}}wv.prototype.contextual=wv.prototype.fallback=wv.prototype.extend=!1;class KN{constructor(e,n,r){this.precTable=n,this.elseToken=r,this.data=typeof e=="string"?F0(e):e}token(e,n){let r=e.pos,i=0;for(;;){let o=e.next<0,a=e.resolveOffset(1,1);if($ge(this.data,e,n,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(o||i++,a==null)break;e.reset(a,e.token)}i&&(e.reset(r,e.token),e.acceptToken(this.elseToken,i))}}KN.prototype.contextual=wv.prototype.fallback=wv.prototype.extend=!1;class y2{constructor(e,n={}){this.token=e,this.contextual=!!n.contextual,this.fallback=!!n.fallback,this.extend=!!n.extend}}function $ge(t,e,n,r,i,o){let a=0,s=1<<r,{dialect:l}=n.p.parser;e:for(;s&t[a];){let u=t[a+1];for(let p=a+3;p<u;p+=2)if((t[p+1]&s)>0){let v=t[p];if(l.allows(v)&&(e.token.value==-1||e.token.value==v||D2t(v,e.token.value,i,o))){e.acceptToken(v);break}}let c=e.next,f=0,d=t[a+2];if(e.next<0&&d>f&&t[u+d*3-3]==65535){a=t[u+d*3-1];continue e}for(;f<d;){let p=f+d>>1,v=u+p+(p<<1),g=t[v],m=t[v+1]||65536;if(c<g)d=p;else if(c>=m)f=p+1;else{a=t[v+2],e.advance();continue e}}break}}function KK(t,e,n){for(let r=e,i;(i=t[r])!=65535;r++)if(i==n)return r-e;return-1}function D2t(t,e,n,r){let i=KK(n,r,e);return i<0||KK(n,r,t)<i}const Oo=typeof process<"u"&&process.env&&/\bparse\b/.test(process.env.LOG);let EI=null;function JK(t,e,n){let r=t.cursor(br.IncludeAnonymous);for(r.moveTo(e);;)if(!(n<0?r.childBefore(e):r.childAfter(e)))for(;;){if((n<0?r.to<e:r.from>e)&&!r.type.isError)return n<0?Math.max(0,Math.min(r.to-1,e-25)):Math.min(t.length,Math.max(r.from+1,e+25));if(n<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return n<0?0:t.length}}class R2t{constructor(e,n){this.fragments=e,this.nodeSet=n,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?JK(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?JK(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let n=this.trees.length-1;if(n<0)return this.nextFragment(),null;let r=this.trees[n],i=this.index[n];if(i==r.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let o=r.children[i],a=this.start[n]+r.positions[i];if(a>e)return this.nextStart=a,null;if(o instanceof fr){if(a==e){if(a<this.safeFrom)return null;let s=a+o.length;if(s<=this.safeTo){let l=o.prop(Lt.lookAhead);if(!l||s+l<this.fragment.to)return o}}this.index[n]++,a+o.length>=Math.max(this.safeFrom,e)&&(this.trees.push(o),this.start.push(a),this.index.push(0))}else this.index[n]++,this.nextStart=a+o.length}}}class k2t{constructor(e,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(r=>new Qx)}getActions(e){let n=0,r=null,{parser:i}=e.p,{tokenizers:o}=i,a=i.stateSlot(e.state,3),s=e.curContext?e.curContext.hash:0,l=0;for(let u=0;u<o.length;u++){if(!(1<<u&a))continue;let c=o[u],f=this.tokens[u];if(!(r&&!c.fallback)&&((c.contextual||f.start!=e.pos||f.mask!=a||f.context!=s)&&(this.updateCachedToken(f,c,e),f.mask=a,f.context=s),f.lookAhead>f.end+25&&(l=Math.max(f.lookAhead,l)),f.value!=0)){let d=n;if(f.extended>-1&&(n=this.addActions(e,f.extended,f.end,n)),n=this.addActions(e,f.value,f.end,n),!c.extend&&(r=f,n>d))break}}for(;this.actions.length>n;)this.actions.pop();return l&&e.setLookAhead(l),!r&&e.pos==this.stream.end&&(r=new Qx,r.value=e.p.parser.eofTerm,r.start=r.end=e.pos,n=this.addActions(e,r.value,r.end,n)),this.mainToken=r,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let n=new Qx,{pos:r,p:i}=e;return n.start=r,n.end=Math.min(r+1,i.stream.end),n.value=r==i.stream.end?i.parser.eofTerm:0,n}updateCachedToken(e,n,r){let i=this.stream.clipPos(r.pos);if(n.token(this.stream.reset(i,e),r),e.value>-1){let{parser:o}=r.p;for(let a=0;a<o.specialized.length;a++)if(o.specialized[a]==e.value){let s=o.specializers[a](this.stream.read(e.start,e.end),r);if(s>=0&&r.p.parser.dialect.allows(s>>1)){s&1?e.extended=s>>1:e.value=s>>1;break}}}else e.value=0,e.end=this.stream.clipPos(i+1)}putAction(e,n,r,i){for(let o=0;o<i;o+=3)if(this.actions[o]==e)return i;return this.actions[i++]=e,this.actions[i++]=n,this.actions[i++]=r,i}addActions(e,n,r,i){let{state:o}=e,{parser:a}=e.p,{data:s}=a;for(let l=0;l<2;l++)for(let u=a.stateSlot(o,l?2:1);;u+=3){if(s[u]==65535)if(s[u+1]==1)u=Vl(s,u+2);else{i==0&&s[u+1]==2&&(i=this.putAction(Vl(s,u+2),n,r,i));break}s[u]==n&&(i=this.putAction(Vl(s,u+1),n,r,i))}return i}}class N2t{constructor(e,n,r,i){this.parser=e,this.input=n,this.ranges=i,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new I2t(n,i),this.tokens=new k2t(e,this.stream),this.topTerm=e.top[1];let{from:o}=i[0];this.stacks=[tT.start(this,e.top[0],o)],this.fragments=r.length&&this.stream.end-o>e.bufferLength*4?new R2t(r,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,n=this.minStackPos,r=this.stacks=[],i,o;if(this.bigReductionCount>300&&e.length==1){let[a]=e;for(;a.forceReduce()&&a.stack.length&&a.stack[a.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let a=0;a<e.length;a++){let s=e[a];for(;;){if(this.tokens.mainToken=null,s.pos>n)r.push(s);else{if(this.advanceStack(s,r,e))continue;{i||(i=[],o=[]),i.push(s);let l=this.tokens.getMainToken(s);o.push(l.value,l.end)}}break}}if(!r.length){let a=i&&V2t(i);if(a)return Oo&&console.log("Finish with "+this.stackID(a)),this.stackToTree(a);if(this.parser.strict)throw Oo&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+n);this.recovering||(this.recovering=5)}if(this.recovering&&i){let a=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,o,r);if(a)return Oo&&console.log("Force-finish "+this.stackID(a)),this.stackToTree(a.forceAll())}if(this.recovering){let a=this.recovering==1?1:this.recovering*3;if(r.length>a)for(r.sort((s,l)=>l.score-s.score);r.length>a;)r.pop();r.some(s=>s.reducePos>n)&&this.recovering--}else if(r.length>1){e:for(let a=0;a<r.length-1;a++){let s=r[a];for(let l=a+1;l<r.length;l++){let u=r[l];if(s.sameState(u)||s.buffer.length>500&&u.buffer.length>500)if((s.score-u.score||s.buffer.length-u.buffer.length)>0)r.splice(l--,1);else{r.splice(a--,1);continue e}}}r.length>12&&r.splice(12,r.length-12)}this.minStackPos=r[0].pos;for(let a=1;a<r.length;a++)r[a].pos<this.minStackPos&&(this.minStackPos=r[a].pos);return null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,n,r){let i=e.pos,{parser:o}=this,a=Oo?this.stackID(e)+" -> ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let u=e.curContext&&e.curContext.tracker.strict,c=u?e.curContext.hash:0;for(let f=this.fragments.nodeAt(i);f;){let d=this.parser.nodeSet.types[f.type.id]==f.type?o.getGoto(e.state,f.type.id):-1;if(d>-1&&f.length&&(!u||(f.prop(Lt.contextHash)||0)==c))return e.useNode(f,d),Oo&&console.log(a+this.stackID(e)+` (via reuse of ${o.getName(f.type.id)})`),!0;if(!(f instanceof fr)||f.children.length==0||f.positions[0]>0)break;let p=f.children[0];if(p instanceof fr&&f.positions[0]==0)f=p;else break}}let s=o.stateSlot(e.state,4);if(s>0)return e.reduce(s),Oo&&console.log(a+this.stackID(e)+` (via always-reduce ${o.getName(s&65535)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let l=this.tokens.getActions(e);for(let u=0;u<l.length;){let c=l[u++],f=l[u++],d=l[u++],p=u==l.length||!r,v=p?e:e.split(),g=this.tokens.mainToken;if(v.apply(c,f,g?g.start:v.pos,d),Oo&&console.log(a+this.stackID(v)+` (via ${c&65536?`reduce of ${o.getName(c&65535)}`:"shift"} for ${o.getName(f)} @ ${i}${v==e?"":", split"})`),p)return!0;v.pos>i?n.push(v):r.push(v)}return!1}advanceFully(e,n){let r=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>r)return eJ(e,n),!0}}runRecovery(e,n,r){let i=null,o=!1;for(let a=0;a<e.length;a++){let s=e[a],l=n[a<<1],u=n[(a<<1)+1],c=Oo?this.stackID(s)+" -> ":"";if(s.deadEnd&&(o||(o=!0,s.restart(),Oo&&console.log(c+this.stackID(s)+" (restarted)"),this.advanceFully(s,r))))continue;let f=s.split(),d=c;for(let p=0;f.forceReduce()&&p<10&&(Oo&&console.log(d+this.stackID(f)+" (via force-reduce)"),!this.advanceFully(f,r));p++)Oo&&(d=this.stackID(f)+" -> ");for(let p of s.recoverByInsert(l))Oo&&console.log(c+this.stackID(p)+" (via recover-insert)"),this.advanceFully(p,r);this.stream.end>s.pos?(u==s.pos&&(u++,l=0),s.recoverByDelete(l,u),Oo&&console.log(c+this.stackID(s)+` (via recover-delete ${this.parser.getName(l)})`),eJ(s,r)):(!i||i.score<s.score)&&(i=s)}return i}stackToTree(e){return e.close(),fr.build({buffer:nT.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let n=(EI||(EI=new WeakMap)).get(e);return n||EI.set(e,n=String.fromCodePoint(this.nextStackID++)),n+e}}function eJ(t,e){for(let n=0;n<e.length;n++){let r=e[n];if(r.pos==t.pos&&r.sameState(t)){e[n].score<t.score&&(e[n]=t);return}}e.push(t)}class L2t{constructor(e,n,r){this.source=e,this.flags=n,this.disabled=r}allows(e){return!this.disabled||this.disabled[e]==0}}const MI=t=>t;class B2t{constructor(e){this.start=e.start,this.shift=e.shift||MI,this.reduce=e.reduce||MI,this.reuse=e.reuse||MI,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class Wb extends tve{constructor(e){if(super(),this.wrappers=[],e.version!=14)throw new RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let n=e.nodeNames.split(" ");this.minRepeatTerm=n.length;for(let s=0;s<e.repeatNodeCount;s++)n.push("");let r=Object.keys(e.topRules).map(s=>e.topRules[s][1]),i=[];for(let s=0;s<n.length;s++)i.push([]);function o(s,l,u){i[s].push([l,l.deserialize(String(u))])}if(e.nodeProps)for(let s of e.nodeProps){let l=s[0];typeof l=="string"&&(l=Lt[l]);for(let u=1;u<s.length;){let c=s[u++];if(c>=0)o(c,l,s[u++]);else{let f=s[u+-c];for(let d=-c;d>0;d--)o(s[u++],l,f);u++}}}this.nodeSet=new vB(n.map((s,l)=>uo.define({name:l>=this.minRepeatTerm?void 0:s,id:l,props:i[l],top:r.indexOf(l)>-1,error:l==0,skipped:e.skippedNodes&&e.skippedNodes.indexOf(l)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=qpe;let a=F0(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let s=0;s<this.specializerSpecs.length;s++)this.specialized[s]=this.specializerSpecs[s].term;this.specializers=this.specializerSpecs.map(tJ),this.states=F0(e.states,Uint32Array),this.data=F0(e.stateData),this.goto=F0(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(s=>typeof s=="number"?new wv(a,s):s),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,n,r){let i=new N2t(this,e,n,r);for(let o of this.wrappers)i=o(i,e,n,r);return i}getGoto(e,n,r=!1){let i=this.goto;if(n>=i[0])return-1;for(let o=i[n+1];;){let a=i[o++],s=a&1,l=i[o++];if(s&&r)return l;for(let u=o+(a>>1);o<u;o++)if(i[o]==e)return l;if(s)return-1}}hasAction(e,n){let r=this.data;for(let i=0;i<2;i++)for(let o=this.stateSlot(e,i?2:1),a;;o+=3){if((a=r[o])==65535)if(r[o+1]==1)a=r[o=Vl(r,o+2)];else{if(r[o+1]==2)return Vl(r,o+2);break}if(a==n||a==0)return Vl(r,o+1)}return 0}stateSlot(e,n){return this.states[e*6+n]}stateFlag(e,n){return(this.stateSlot(e,0)&n)>0}validAction(e,n){return!!this.allActions(e,r=>r==n?!0:null)}allActions(e,n){let r=this.stateSlot(e,4),i=r?n(r):void 0;for(let o=this.stateSlot(e,1);i==null;o+=3){if(this.data[o]==65535)if(this.data[o+1]==1)o=Vl(this.data,o+2);else break;i=n(Vl(this.data,o+1))}return i}nextStates(e){let n=[];for(let r=this.stateSlot(e,1);;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=Vl(this.data,r+2);else break;if(!(this.data[r+2]&1)){let i=this.data[r+1];n.some((o,a)=>a&1&&o==i)||n.push(this.data[r],i)}}return n}configure(e){let n=Object.assign(Object.create(Wb.prototype),this);if(e.props&&(n.nodeSet=this.nodeSet.extend(...e.props)),e.top){let r=this.topRules[e.top];if(!r)throw new RangeError(`Invalid top rule name ${e.top}`);n.top=r}return e.tokenizers&&(n.tokenizers=this.tokenizers.map(r=>{let i=e.tokenizers.find(o=>o.from==r);return i?i.to:r})),e.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((r,i)=>{let o=e.specializers.find(s=>s.from==r.external);if(!o)return r;let a=Object.assign(Object.assign({},r),{external:o.to});return n.specializers[i]=tJ(a),a})),e.contextTracker&&(n.context=e.contextTracker),e.dialect&&(n.dialect=this.parseDialect(e.dialect)),e.strict!=null&&(n.strict=e.strict),e.wrap&&(n.wrappers=n.wrappers.concat(e.wrap)),e.bufferLength!=null&&(n.bufferLength=e.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let n=this.dynamicPrecedences;return n==null?0:n[e]||0}parseDialect(e){let n=Object.keys(this.dialects),r=n.map(()=>!1);if(e)for(let o of e.split(" ")){let a=n.indexOf(o);a>=0&&(r[a]=!0)}let i=null;for(let o=0;o<n.length;o++)if(!r[o])for(let a=this.dialects[n[o]],s;(s=this.data[a++])!=65535;)(i||(i=new Uint8Array(this.maxTerm+1)))[s]=1;return new L2t(e,r,i)}static deserialize(e){return new Wb(e)}}function Vl(t,e){return t[e]|t[e+1]<<16}function V2t(t){let e=null;for(let n of t){let r=n.p.stoppedAt;(n.pos==n.p.stream.end||r!=null&&n.pos>r)&&n.p.parser.stateFlag(n.state,2)&&(!e||e.score<n.score)&&(e=n)}return e}function tJ(t){if(t.external){let e=t.extend?1:0;return(n,r)=>t.external(n,r)<<1|e}return t.get}const z2t=312,nJ=1,F2t=2,W2t=3,Q2t=4,H2t=313,G2t=315,j2t=316,U2t=5,Z2t=6,X2t=0,JN=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],Age=125,Y2t=59,eL=47,q2t=42,K2t=43,J2t=45,e$t=60,t$t=44,n$t=63,r$t=46,i$t=new B2t({start:!1,shift(t,e){return e==U2t||e==Z2t||e==G2t?t:e==j2t},strict:!1}),o$t=new y2((t,e)=>{let{next:n}=t;(n==Age||n==-1||e.context)&&t.acceptToken(H2t)},{contextual:!0,fallback:!0}),a$t=new y2((t,e)=>{let{next:n}=t,r;JN.indexOf(n)>-1||n==eL&&((r=t.peek(1))==eL||r==q2t)||n!=Age&&n!=Y2t&&n!=-1&&!e.context&&t.acceptToken(z2t)},{contextual:!0}),s$t=new y2((t,e)=>{let{next:n}=t;if(n==K2t||n==J2t){if(t.advance(),n==t.next){t.advance();let r=!e.context&&e.canShift(nJ);t.acceptToken(r?nJ:F2t)}}else n==n$t&&t.peek(1)==r$t&&(t.advance(),t.advance(),(t.next<48||t.next>57)&&t.acceptToken(W2t))},{contextual:!0});function II(t,e){return t>=65&&t<=90||t>=97&&t<=122||t==95||t>=192||!e&&t>=48&&t<=57}const l$t=new y2((t,e)=>{if(t.next!=e$t||!e.dialectEnabled(X2t)||(t.advance(),t.next==eL))return;let n=0;for(;JN.indexOf(t.next)>-1;)t.advance(),n++;if(II(t.next,!0)){for(t.advance(),n++;II(t.next,!1);)t.advance(),n++;for(;JN.indexOf(t.next)>-1;)t.advance(),n++;if(t.next==t$t)return;for(let r=0;;r++){if(r==7){if(!II(t.next,!0))return;break}if(t.next!="extends".charCodeAt(r))break;t.advance(),n++}}t.acceptToken(Q2t,-n)}),u$t=bB({"get set async static":ae.modifier,"for while do if else switch try catch finally return throw break continue default case":ae.controlKeyword,"in of await yield void typeof delete instanceof":ae.operatorKeyword,"let var const using function class extends":ae.definitionKeyword,"import export from":ae.moduleKeyword,"with debugger as new":ae.keyword,TemplateString:ae.special(ae.string),super:ae.atom,BooleanLiteral:ae.bool,this:ae.self,null:ae.null,Star:ae.modifier,VariableName:ae.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":ae.function(ae.variableName),VariableDefinition:ae.definition(ae.variableName),Label:ae.labelName,PropertyName:ae.propertyName,PrivatePropertyName:ae.special(ae.propertyName),"CallExpression/MemberExpression/PropertyName":ae.function(ae.propertyName),"FunctionDeclaration/VariableDefinition":ae.function(ae.definition(ae.variableName)),"ClassDeclaration/VariableDefinition":ae.definition(ae.className),PropertyDefinition:ae.definition(ae.propertyName),PrivatePropertyDefinition:ae.definition(ae.special(ae.propertyName)),UpdateOp:ae.updateOperator,"LineComment Hashbang":ae.lineComment,BlockComment:ae.blockComment,Number:ae.number,String:ae.string,Escape:ae.escape,ArithOp:ae.arithmeticOperator,LogicOp:ae.logicOperator,BitOp:ae.bitwiseOperator,CompareOp:ae.compareOperator,RegExp:ae.regexp,Equals:ae.definitionOperator,Arrow:ae.function(ae.punctuation),": Spread":ae.punctuation,"( )":ae.paren,"[ ]":ae.squareBracket,"{ }":ae.brace,"InterpolationStart InterpolationEnd":ae.special(ae.brace),".":ae.derefOperator,", ;":ae.separator,"@":ae.meta,TypeName:ae.typeName,TypeDefinition:ae.definition(ae.typeName),"type enum interface implements namespace module declare":ae.definitionKeyword,"abstract global Privacy readonly override":ae.modifier,"is keyof unique infer":ae.operatorKeyword,JSXAttributeValue:ae.attributeValue,JSXText:ae.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":ae.angleBracket,"JSXIdentifier JSXNameSpacedName":ae.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":ae.attributeName,"JSXBuiltin/JSXIdentifier":ae.standard(ae.tagName)}),c$t={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,extends:54,this:58,true:66,false:66,null:78,void:82,typeof:86,super:102,new:136,delete:148,yield:157,await:161,class:166,public:229,private:229,protected:229,readonly:231,instanceof:250,satisfies:253,in:254,const:256,import:290,keyof:345,unique:349,infer:355,is:391,abstract:411,implements:413,type:415,let:418,var:420,using:423,interface:429,enum:433,namespace:439,module:441,declare:445,global:449,for:468,of:477,while:480,with:484,do:488,if:492,else:494,switch:498,case:504,try:510,catch:514,finally:518,return:522,throw:526,break:530,continue:534,debugger:538},f$t={__proto__:null,async:123,get:125,set:127,declare:189,public:191,private:191,protected:191,static:193,abstract:195,override:197,readonly:203,accessor:205,new:395},d$t={__proto__:null,"<":187},h$t=Wb.deserialize({version:14,states:"$@QO%TQ^OOO%[Q^OOO'_Q`OOP(lOWOOO*zQ?NdO'#CiO+RO!bO'#CjO+aO#tO'#CjO+oO!0LbO'#D^O.QQ^O'#DdO.bQ^O'#DoO%[Q^O'#DwO0fQ^O'#EPOOQ?Mr'#EX'#EXO1PQWO'#EUOOQO'#Em'#EmOOQO'#Ih'#IhO1XQWO'#GpO1dQWO'#ElO1iQWO'#ElO3hQ?NdO'#JmO6[Q?NdO'#JnO6uQWO'#F[O6zQ&jO'#FsOOQ?Mr'#Fe'#FeO7VO,YO'#FeO7eQ7[O'#FzO9RQWO'#FyOOQ?Mr'#Jn'#JnOOQ?Mp'#Jm'#JmO9WQWO'#GtOOQU'#KZ'#KZO9cQWO'#IUO9hQ?MxO'#IVOOQU'#JZ'#JZOOQU'#IZ'#IZQ`Q^OOO`Q^OOO9pQMnO'#DsO9wQ^O'#D{O:OQ^O'#D}O9^QWO'#GpO:VQ7[O'#CoO:eQWO'#EkO:pQWO'#EvO:uQ7[O'#FdO;dQWO'#GpOOQO'#K['#K[O;iQWO'#K[O;wQWO'#GxO;wQWO'#GyO;wQWO'#G{O9^QWO'#HOO<nQWO'#HRO>VQWO'#CeO>gQWO'#H_O>oQWO'#HeO>oQWO'#HgO`Q^O'#HiO>oQWO'#HkO>oQWO'#HnO>tQWO'#HtO>yQ?MyO'#HzO%[Q^O'#H|O?UQ?MyO'#IOO?aQ?MyO'#IQO9hQ?MxO'#ISO?lQ?NdO'#CiO@nQ`O'#DiQOQWOOO%[Q^O'#D}OAUQWO'#EQO:VQ7[O'#EkOAaQWO'#EkOAlQpO'#FdOOQU'#Cg'#CgOOQ?Mp'#Dn'#DnOOQ?Mp'#Jq'#JqO%[Q^O'#JqOOQO'#Jt'#JtOOQO'#Id'#IdOBlQ`O'#EdOOQ?Mp'#Ec'#EcOOQ?Mp'#Jx'#JxOChQ?NQO'#EdOCrQ`O'#ETOOQO'#Js'#JsODWQ`O'#JtOEeQ`O'#ETOCrQ`O'#EdPErO#@ItO'#CbPOOO)CDx)CDxOOOO'#I['#I[OE}O!bO,59UOOQ?Mr,59U,59UOOOO'#I]'#I]OF]O#tO,59UO%[Q^O'#D`OOOO'#I_'#I_OFkO!0LbO,59xOOQ?Mr,59x,59xOFyQ^O'#I`OG^QWO'#JoOI]QrO'#JoO+}Q^O'#JoOIdQWO,5:OOIzQWO'#EmOJXQWO'#KOOJdQWO'#J}OJdQWO'#J}OJlQWO,5;ZOJqQWO'#J|OOQ?Mv,5:Z,5:ZOJxQ^O,5:ZOLvQ?NdO,5:cOMgQWO,5:kONQQ?MxO'#J{ONXQWO'#JzO9WQWO'#JzONmQWO'#JzONuQWO,5;YONzQWO'#JzO!#PQrO'#JnOOQ?Mr'#Ci'#CiO%[Q^O'#EPO!#oQrO,5:pOOQQ'#Ju'#JuOOQO-E<f-E<fO9^QWO,5=[O!$VQWO,5=[O!$[Q^O,5;WO!&_Q7[O'#EhO!'xQWO,5;WO!'}Q^O'#DvO!(XQ`O,5;aO!(aQ`O,5;aO%[Q^O,5;aOOQU'#FS'#FSOOQU'#FU'#FUO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bO%[Q^O,5;bOOQU'#FY'#FYO!(oQ^O,5;sOOQ?Mr,5;x,5;xOOQ?Mr,5;y,5;yOOQ?Mr,5;{,5;{O%[Q^O'#IlO!*rQ?MxO,5<gO%[Q^O,5;bO!&_Q7[O,5;bO!+aQ7[O,5;bO!-RQ7[O'#EZO%[Q^O,5;vOOQ?Mr,5;z,5;zO!-YQ&jO'#FiO!.VQ&jO'#KSO!-qQ&jO'#KSO!.^Q&jO'#KSOOQO'#KS'#KSO!.rQ&jO,5<ROOOS,5<_,5<_O!/TQ^O'#FuOOOS'#Ik'#IkO7VO,YO,5<PO!/[Q&jO'#FwOOQ?Mr,5<P,5<PO!/{Q!LQO'#CvOOQ?Mr'#Cz'#CzO!0`O!0LbO'#DOO!0|Q7[O,5<dO!1TQWO,5<fO!2pQ$ISO'#GVO!2}QWO'#GWO!3SQWO'#GWO!4rQ$ISO'#G[O!5nQ`O'#G`OOQO'#Gk'#GkO!+hQ7[O'#GjOOQO'#Gm'#GmO!+hQ7[O'#GlO!6aQ!LQO'#JgOOQ?Mr'#Jg'#JgO!6kQWO'#JfO!6yQWO'#JeO!7RQWO'#CuOOQ?Mr'#Cx'#CxO!7ZQWO'#CzOOQ?Mr'#DS'#DSOOQ?Mr'#DU'#DUO1SQWO'#DWO!+hQ7[O'#F}O!+hQ7[O'#GPO!7`QWO'#GRO!7eQWO'#GSO!3SQWO'#GYO!+hQ7[O'#G_O!7jQWO'#EnO!8XQWO,5<eOOQ?Mp'#Cr'#CrO!8aQWO'#EoO!9ZQ`O'#EpOOQ?Mp'#J|'#J|O!9bQ?MxO'#K]O9hQ?MxO,5=`O`Q^O,5>pOOQU'#Jc'#JcOOQU,5>q,5>qOOQU-E<X-E<XO!;aQ?NdO,5:_O!9UQ`O,5:]O!=zQ?NdO,5:gO%[Q^O,5:gO!@bQ?NdO,5:iOOQO,5@v,5@vO!ARQ7[O,5=[O!AaQ?MxO'#JdO9RQWO'#JdO!ArQ?MxO,59ZO!A}Q`O,59ZO!BVQ7[O,59ZO:VQ7[O,59ZO!BbQWO,5;WO!BjQWO'#H^O!COQWO'#K`O%[Q^O,5;|O!9UQ`O,5<OO!CWQWO,5=wO!C]QWO,5=wO!CbQWO,5=wO9hQ?MxO,5=wO;wQWO,5=gOOQO'#Cv'#CvO!CpQ`O,5=dO!CxQ7[O,5=eO!DTQWO,5=gO!DYQpO,5=jO!DbQWO'#K[O>tQWO'#HTO9^QWO'#HVO!DgQWO'#HVO:VQ7[O'#HXO!DlQWO'#HXOOQU,5=m,5=mO!DqQWO'#HYO!ESQWO'#CoO!EXQWO,59PO!EcQWO,59PO!GhQ^O,59POOQU,59P,59PO!GxQ?MxO,59PO%[Q^O,59PO!JTQ^O'#HaOOQU'#Hb'#HbOOQU'#Hc'#HcO`Q^O,5=yO!JkQWO,5=yO`Q^O,5>PO`Q^O,5>RO!JpQWO,5>TO`Q^O,5>VO!JuQWO,5>YO!JzQ^O,5>`OOQU,5>f,5>fO%[Q^O,5>fO9hQ?MxO,5>hOOQU,5>j,5>jO# UQWO,5>jOOQU,5>l,5>lO# UQWO,5>lOOQU,5>n,5>nO# rQ`O'#D[O%[Q^O'#JqO# |Q`O'#JqO#!kQ`O'#DjO#!|Q`O'#DjO#%_Q^O'#DjO#%fQWO'#JpO#%nQWO,5:TO#%sQWO'#EqO#&RQWO'#KPO#&ZQWO,5;[O#&`Q`O'#DjO#&mQ`O'#ESOOQ?Mr,5:l,5:lO%[Q^O,5:lO#&tQWO,5:lO>tQWO,5;VO!A}Q`O,5;VO!BVQ7[O,5;VO:VQ7[O,5;VO#&|QWO,5@]O#'RQ(CYO,5:pOOQO-E<b-E<bO#(XQ?NQO,5;OOCrQ`O,5:oO#(cQ`O,5:oOCrQ`O,5;OO!ArQ?MxO,5:oOOQ?Mp'#Eg'#EgOOQO,5;O,5;OO%[Q^O,5;OO#(pQ?MxO,5;OO#({Q?MxO,5;OO!A}Q`O,5:oOOQO,5;U,5;UO#)ZQ?MxO,5;OPOOO'#IY'#IYP#)oO#@ItO,58|POOO,58|,58|OOOO-E<Y-E<YOOQ?Mr1G.p1G.pOOOO-E<Z-E<ZO#)zQpO,59zOOOO-E<]-E<]OOQ?Mr1G/d1G/dO#*PQrO,5>zO+}Q^O,5>zOOQO,5?Q,5?QO#*ZQ^O'#I`OOQO-E<^-E<^O#*hQWO,5@ZO#*pQrO,5@ZO#*wQWO,5@iOOQ?Mr1G/j1G/jO%[Q^O,5@jO#+PQWO'#IfOOQO-E<d-E<dO#*wQWO,5@iOOQ?Mp1G0u1G0uOOQ?Mv1G/u1G/uOOQ?Mv1G0V1G0VO%[Q^O,5@gO#+eQ?MxO,5@gO#+vQ?MxO,5@gO#+}QWO,5@fO9WQWO,5@fO#,VQWO,5@fO#,eQWO'#IiO#+}QWO,5@fOOQ?Mp1G0t1G0tO!(XQ`O,5:rO!(dQ`O,5:rOOQQ,5:t,5:tO#-VQYO,5:tO#-_Q7[O1G2vO9^QWO1G2vOOQ?Mr1G0r1G0rO#-mQ?NdO1G0rO#.rQ?NbO,5;SOOQ?Mr'#GU'#GUO#/`Q?NdO'#JgO!$[Q^O1G0rO#1hQrO'#JrO%[Q^O'#JrO#1rQWO,5:bOOQ?Mr'#D['#D[OOQ?Mr1G0{1G0{O%[Q^O1G0{OOQ?Mr1G1e1G1eO#1wQWO1G0{O#4]Q?NdO1G0|O#4dQ?NdO1G0|O#6zQ?NdO1G0|O#7RQ?NdO1G0|O#9iQ?NdO1G0|O#<PQ?NdO1G0|O#<WQ?NdO1G0|O#<_Q?NdO1G0|O#>uQ?NdO1G0|O#>|Q?NdO1G0|O#AZQ07bO'#CiO#CUQ07bO1G1_O#C]Q07bO'#JnO#CpQ?NdO,5?WOOQ?Mp-E<j-E<jO#E}Q?NdO1G0|O#FzQ?NdO1G0|OOQ?Mr1G0|1G0|O#GzQ7[O'#JwO#HUQWO,5:uO#HZQ?NdO1G1bO#H}Q&jO,5<VO#IVQ&jO,5<WO#I_Q&jO'#FnO#IvQWO'#FmOOQO'#KT'#KTOOQO'#Ij'#IjO#I{Q&jO1G1mOOQ?Mr1G1m1G1mOOOS1G1x1G1xO#J^Q07bO'#JmO#JhQWO,5<aO!(oQ^O,5<aOOOS-E<i-E<iOOQ?Mr1G1k1G1kO#JmQ`O'#KSOOQ?Mr,5<c,5<cO#JuQ`O,5<cO!&_Q7[O'#DQOOOO'#I^'#I^O#JzO!0LbO,59jOOQ?Mr,59j,59jO%[Q^O1G2OO!7eQWO'#InO#KVQ7[O,5<xOOQ?Mr,5<u,5<uO!+hQ7[O'#IqO#KuQ7[O,5=UO!+hQ7[O'#IsO#LhQ7[O,5=WO!&_Q7[O,5=YOOQO1G2Q1G2QO#LrQpO'#CrO#MVQ$ISO'#EoO#NUQ`O'#G`O#NrQpO,5<qO#NyQWO'#KWO9WQWO'#KWO$ XQWO,5<sO!+hQ7[O,5<rO$ ^QWO'#GXO$ oQWO,5<rO$ tQpO'#GUO$!RQpO'#KXO$!]QWO'#KXO!&_Q7[O'#KXO$!bQWO,5<vO$!gQ`O'#GaO!5iQ`O'#GaO$!xQWO'#GcO$!}QWO'#GeO!3SQWO'#GhO$#SQ?MxO'#IpO$#_Q`O,5<zOOQ?Mv,5<z,5<zO$#fQ`O'#GaO$#tQ`O'#GbO$#|Q`O'#GbO$$RQ7[O,5=UO$$cQ7[O,5=WOOQ?Mr,5=Z,5=ZO!+hQ7[O,5@QO!+hQ7[O,5@QO$$sQWO'#IuO$%OQWO,5@PO$%WQWO,59aOOQ?Mr,59f,59fO$%zQ!LSO,59rOOQ?Mr'#Jk'#JkO$&mQ7[O,5<iO$'`Q7[O,5<kO@fQWO,5<mOOQ?Mr,5<n,5<nO$'jQWO,5<tO$'oQ7[O,5<yO$(PQWO'#JzO!$[Q^O1G2PO$(UQWO1G2PO9WQWO'#J}O9WQWO'#EqO%[Q^O'#EqO9WQWO'#IwO$(ZQ?MxO,5@wOOQU1G2z1G2zOOQU1G4[1G4[OOQ?Mr1G/y1G/yOOQ?Mr1G/w1G/wO$*]Q?NdO1G0ROOQU1G2v1G2vO!&_Q7[O1G2vO%[Q^O1G2vO#-bQWO1G2vO$,aQ7[O'#EhOOQ?Mp,5@O,5@OO$,kQ?MxO,5@OOOQU1G.u1G.uO!ArQ?MxO1G.uO!A}Q`O1G.uO!BVQ7[O1G.uO$,|QWO1G0rO$-RQWO'#CiO$-^QWO'#KaO$-fQWO,5=xO$-kQWO'#KaO$-pQWO'#KaO$.OQWO'#I}O$.^QWO,5@zO$.fQrO1G1hOOQ?Mr1G1j1G1jO9^QWO1G3cO@fQWO1G3cO$.mQWO1G3cO$.rQWO1G3cOOQU1G3c1G3cO!DTQWO1G3RO!&_Q7[O1G3OO$.wQWO1G3OOOQU1G3P1G3PO!&_Q7[O1G3PO$.|QWO1G3PO$/UQ`O'#G}OOQU1G3R1G3RO!5iQ`O'#IyO!DYQpO1G3UOOQU1G3U1G3UOOQU,5=o,5=oO$/^Q7[O,5=qO9^QWO,5=qO$!}QWO,5=sO9RQWO,5=sO!A}Q`O,5=sO!BVQ7[O,5=sO:VQ7[O,5=sO$/lQWO'#K_O$/wQWO,5=tOOQU1G.k1G.kO$/|Q?MxO1G.kO@fQWO1G.kO$0XQWO1G.kO9hQ?MxO1G.kO$2aQrO,5@|O$2nQWO,5@|O9WQWO,5@|O$2yQ^O,5={O$3QQWO,5={OOQU1G3e1G3eO`Q^O1G3eOOQU1G3k1G3kOOQU1G3m1G3mO>oQWO1G3oO$3VQ^O1G3qO$7ZQ^O'#HpOOQU1G3t1G3tO$7hQWO'#HvO>tQWO'#HxOOQU1G3z1G3zO$7pQ^O1G3zO9hQ?MxO1G4QOOQU1G4S1G4SOOQ?Mp'#G]'#G]O9hQ?MxO1G4UO9hQ?MxO1G4WO$;wQWO,5@]O!(oQ^O,5;]O9WQWO,5;]O>tQWO,5:UO!(oQ^O,5:UO!A}Q`O,5:UO$;|Q07bO,5:UOOQO,5;],5;]O$<WQ`O'#IaO$<nQWO,5@[OOQ?Mr1G/o1G/oO$<vQ`O'#IgO$=QQWO,5@kOOQ?Mp1G0v1G0vO#!|Q`O,5:UOOQO'#Ic'#IcO$=YQ`O,5:nOOQ?Mv,5:n,5:nO#&wQWO1G0WOOQ?Mr1G0W1G0WO%[Q^O1G0WOOQ?Mr1G0q1G0qO>tQWO1G0qO!A}Q`O1G0qO!BVQ7[O1G0qOOQ?Mp1G5w1G5wO!ArQ?MxO1G0ZOOQO1G0j1G0jO%[Q^O1G0jO$=aQ?MxO1G0jO$=lQ?MxO1G0jO!A}Q`O1G0ZOCrQ`O1G0ZO$=zQ?MxO1G0jOOQO1G0Z1G0ZO$>`Q?NdO1G0jPOOO-E<W-E<WPOOO1G.h1G.hOOOO1G/f1G/fO$>jQpO,5<gO$>rQrO1G4fOOQO1G4l1G4lO%[Q^O,5>zO$>|QWO1G5uO$?UQWO1G6TO$?^QrO1G6UO9WQWO,5?QO$?hQ?NdO1G6RO%[Q^O1G6RO$?xQ?MxO1G6RO$@ZQWO1G6QO$@ZQWO1G6QO9WQWO1G6QO$@cQWO,5?TO9WQWO,5?TOOQO,5?T,5?TO$@wQWO,5?TO$(PQWO,5?TOOQO-E<g-E<gOOQQ1G0^1G0^OOQQ1G0`1G0`O#-YQWO1G0`OOQU7+(b7+(bO!&_Q7[O7+(bO%[Q^O7+(bO$AVQWO7+(bO$AbQ7[O7+(bO$ApQ?NdO,5=UO$CxQ?NdO,5=WO$FQQ?NdO,5=UO$H`Q?NdO,5=WO$JnQ?NdO,59rO$LsQ?NdO,5<iO$N{Q?NdO,5<kO%#TQ?NdO,5<yOOQ?Mr7+&^7+&^O%%cQ?NdO7+&^O%&VQ^O'#IbO%&dQWO,5@^O%&lQrO,5@^OOQ?Mr1G/|1G/|O%&vQWO7+&gOOQ?Mr7+&g7+&gO%&{Q07bO,5:cO%[Q^O7+&yO%'VQ07bO,5:_O%'dQ07bO,5:gO%'nQ07bO,5:iO%'xQ7[O'#IeO%(SQWO,5@cOOQ?Mr1G0a1G0aOOQO1G1q1G1qOOQO1G1r1G1rO%([QtO,5<YO!(oQ^O,5<XOOQO-E<h-E<hOOQ?Mr7+'X7+'XOOOS7+'d7+'dOOOS1G1{1G1{O%(gQWO1G1{OOQ?Mr1G1}1G1}O%(lQpO,59lOOOO-E<[-E<[OOQ?Mr1G/U1G/UO%(sQ?NdO7+'jOOQ?Mr,5?Y,5?YO%)gQpO,5?YOOQ?Mr1G2d1G2dP!&_Q7[O'#InPOQ?Mr-E<l-E<lO%*VQ7[O,5?]OOQ?Mr-E<o-E<oO%*xQ7[O,5?_OOQ?Mr-E<q-E<qO%+SQpO1G2tO%+ZQpO'#CrO%+qQ7[O'#J}O%+xQ^O'#EqOOQ?Mr1G2]1G2]O%,SQWO'#ImO%,hQWO,5@rO%,hQWO,5@rO%,pQWO,5@rO%,{QWO,5@rOOQO1G2_1G2_O%-ZQ7[O1G2^O!+hQ7[O1G2^O%-kQ$ISO'#IoO%-xQWO,5@sO!&_Q7[O,5@sO%.QQpO,5@sOOQ?Mr1G2b1G2bOOQ?Mp,5<{,5<{OOQ?Mp,5<|,5<|O$(PQWO,5<|OCcQWO,5<|O!A}Q`O,5<{OOQO'#Gd'#GdO%.[QWO,5<}OOQ?Mp,5=P,5=PO$(PQWO,5=SOOQO,5?[,5?[OOQO-E<n-E<nOOQ?Mv1G2f1G2fO!5iQ`O,5<{O%.dQWO,5<|O$!xQWO,5<}O%.oQ`O,5<|O!+hQ7[O'#IqO%/`Q7[O1G2pO!+hQ7[O'#IsO%0RQ7[O1G2rO%0]Q7[O1G5lO%0gQ7[O1G5lOOQO,5?a,5?aOOQO-E<s-E<sOOQO1G.{1G.{O!9UQ`O,59tO%[Q^O,59tOOQ?Mr,5<h,5<hO%0tQWO1G2XO!+hQ7[O1G2`O%0yQ?NdO7+'kOOQ?Mr7+'k7+'kO!$[Q^O7+'kO%1mQWO,5;]OOQ?Mp,5?c,5?cOOQ?Mp-E<u-E<uO%1rQpO'#KYO#&wQWO7+(bO4UQrO7+(bO$AYQWO7+(bO%1|Q?NbO'#CiO%2aQ?NbO,5=QO%3RQWO,5=QOOQ?Mp1G5j1G5jOOQU7+$a7+$aO!ArQ?MxO7+$aO!A}Q`O7+$aO!$[Q^O7+&^O%3WQWO'#I|O%3oQWO,5@{OOQO1G3d1G3dO9^QWO,5@{O%3oQWO,5@{O%3wQWO,5@{OOQO,5?i,5?iOOQO-E<{-E<{OOQ?Mr7+'S7+'SO%3|QWO7+(}O9hQ?MxO7+(}O9^QWO7+(}O@fQWO7+(}OOQU7+(m7+(mO%4RQ?NbO7+(jO!&_Q7[O7+(jO%4]QpO7+(kOOQU7+(k7+(kO!&_Q7[O7+(kO%4dQWO'#K^O%4oQWO,5=iOOQO,5?e,5?eOOQO-E<w-E<wOOQU7+(p7+(pO%6RQ`O'#HWOOQU1G3]1G3]O!&_Q7[O1G3]O%[Q^O1G3]O%6YQWO1G3]O%6eQ7[O1G3]O9hQ?MxO1G3_O$!}QWO1G3_O9RQWO1G3_O!A}Q`O1G3_O!BVQ7[O1G3_O%6sQWO'#I{O%7XQWO,5@yO%7aQ`O,5@yOOQ?Mp1G3`1G3`OOQU7+$V7+$VO@fQWO7+$VO9hQ?MxO7+$VO%7lQWO7+$VO%[Q^O1G6hO%[Q^O1G6iO%7qQ?MxO1G6hO%7{Q^O1G3gO%8SQWO1G3gO%8XQ^O1G3gOOQU7+)P7+)PO9hQ?MxO7+)ZO`Q^O7+)]OOQU'#Kd'#KdOOQU'#JO'#JOO%8`Q^O,5>[OOQU,5>[,5>[O%[Q^O'#HqO%8mQWO'#HsOOQU,5>b,5>bO9WQWO,5>bOOQU,5>d,5>dOOQU7+)f7+)fOOQU7+)l7+)lOOQU7+)p7+)pOOQU7+)r7+)rO%8rQ`O1G5wO%9WQ07bO1G0wO%9bQWO1G0wOOQO1G/p1G/pO%9mQ07bO1G/pO>tQWO1G/pO!(oQ^O'#DjOOQO,5>{,5>{OOQO-E<_-E<_OOQO,5?R,5?ROOQO-E<e-E<eO!A}Q`O1G/pOOQO-E<a-E<aOOQ?Mv1G0Y1G0YOOQ?Mr7+%r7+%rO#&wQWO7+%rOOQ?Mr7+&]7+&]O>tQWO7+&]O!A}Q`O7+&]OOQO7+%u7+%uO$>`Q?NdO7+&UOOQO7+&U7+&UO%[Q^O7+&UO%9wQ?MxO7+&UO!ArQ?MxO7+%uO!A}Q`O7+%uO%:SQ?MxO7+&UO%:bQ?NdO7++mO%[Q^O7++mO%:rQWO7++lO%:rQWO7++lOOQO1G4o1G4oO9WQWO1G4oO%:zQWO1G4oOOQQ7+%z7+%zO#&wQWO<<K|O4UQrO<<K|O%;YQWO<<K|OOQU<<K|<<K|O!&_Q7[O<<K|O%[Q^O<<K|O%;bQWO<<K|O%;mQ?NdO,5?]O%=uQ?NdO,5?_O%?}Q?NdO1G2^O%B]Q?NdO1G2pO%DeQ?NdO1G2rO%FmQrO,5>|O%[Q^O,5>|OOQO-E<`-E<`O%FwQWO1G5xOOQ?Mr<<JR<<JRO%GPQ07bO1G0rO%IWQ07bO1G0|O%I_Q07bO1G0|O%K`Q07bO1G0|O%KgQ07bO1G0|O%MhQ07bO1G0|O& iQ07bO1G0|O& pQ07bO1G0|O& wQ07bO1G0|O&#xQ07bO1G0|O&$PQ07bO1G0|O&$WQ?NdO<<JeO&&OQ07bO1G0|O&&{Q07bO1G0|O&'{Q07bO'#JgO&*OQ07bO1G1bO&*]Q07bO1G0RO&*gQ7[O,5?POOQO-E<c-E<cO!(oQ^O'#FpOOQO'#KU'#KUOOQO1G1t1G1tO&*qQWO1G1sO&*vQ07bO,5?WOOOS7+'g7+'gOOOO1G/W1G/WOOQ?Mr1G4t1G4tO!+hQ7[O7+(`O&-WQrO'#CiO&-bQWO,5?XO9WQWO,5?XOOQO-E<k-E<kO&-pQWO1G6^O&-pQWO1G6^O&-xQWO1G6^O&.TQ7[O7+'xO&.eQpO,5?ZO&.oQWO,5?ZO!&_Q7[O,5?ZOOQO-E<m-E<mO&.tQpO1G6_O&/OQWO1G6_OOQ?Mp1G2h1G2hO$(PQWO1G2hOOQ?Mp1G2g1G2gO&/WQWO1G2iO!&_Q7[O1G2iOOQ?Mp1G2n1G2nO!A}Q`O1G2gOCcQWO1G2hO&/]QWO1G2iO&/eQWO1G2hO$!xQWO1G2iO&0XQ7[O,5?]OOQ?Mr-E<p-E<pO&0zQ7[O,5?_OOQ?Mr-E<r-E<rO!+hQ7[O7++WOOQ?Mr1G/`1G/`O&1UQWO1G/`OOQ?Mr7+'s7+'sO&1ZQ7[O7+'zO&1kQ?NdO<<KVOOQ?Mr<<KV<<KVO&2_QWO1G0wO!&_Q7[O'#IvO&2dQWO,5@tO&4fQrO<<K|O!&_Q7[O1G2lOOQU<<G{<<G{O!ArQ?MxO<<G{O&4mQ?NdO<<IxOOQ?Mr<<Ix<<IxOOQO,5?h,5?hO&5aQWO,5?hO&5fQWO,5?hOOQO-E<z-E<zO&5tQWO1G6gO&5tQWO1G6gO9^QWO1G6gO@fQWO<<LiOOQU<<Li<<LiO&5|QWO<<LiO9hQ?MxO<<LiOOQU<<LU<<LUO%4RQ?NbO<<LUOOQU<<LV<<LVO%4]QpO<<LVO&6RQ`O'#IxO&6^QWO,5@xO!(oQ^O,5@xOOQU1G3T1G3TO%+xQ^O'#JqOOQO'#Iz'#IzO9hQ?MxO'#IzO&6fQ`O,5=rOOQU,5=r,5=rO&6mQ`O'#EdO&7RQ`O'#GcO&7WQWO7+(wO&7]QWO7+(wOOQU7+(w7+(wO!&_Q7[O7+(wO%[Q^O7+(wO&7eQWO7+(wOOQU7+(y7+(yO9hQ?MxO7+(yO$!}QWO7+(yO9RQWO7+(yO!A}Q`O7+(yO&7pQWO,5?gOOQO-E<y-E<yOOQO'#HZ'#HZO&7{QWO1G6eO9hQ?MxO<<GqOOQU<<Gq<<GqO@fQWO<<GqO&8TQWO7+,SO&8YQWO7+,TO%[Q^O7+,SO%[Q^O7+,TOOQU7+)R7+)RO&8_QWO7+)RO&8dQ^O7+)RO&8kQWO7+)ROOQU<<Lu<<LuOOQU<<Lw<<LwOOQU-E<|-E<|OOQU1G3v1G3vO&8pQWO,5>]OOQU,5>_,5>_O&8uQWO1G3|O9WQWO7+&cO!(oQ^O7+&cOOQO7+%[7+%[O&8zQ07bO1G6UO>tQWO7+%[OOQ?Mr<<I^<<I^OOQ?Mr<<Iw<<IwO>tQWO<<IwOOQO<<Ip<<IpO$>`Q?NdO<<IpO%[Q^O<<IpOOQO<<Ia<<IaO!ArQ?MxO<<IaO&9UQ?MxO<<IpO&9aQ?NdO<= XO&9qQWO<= WOOQO7+*Z7+*ZO9WQWO7+*ZOOQUANAhANAhO&9yQrOANAhO!&_Q7[OANAhO#&wQWOANAhO4UQrOANAhO&:QQWOANAhO%[Q^OANAhO&:YQ?NdO7+'xO&<hQ?NdO,5?]O&>pQ?NdO,5?_O&@xQ?NdO7+'zO&CWQrO1G4hO&CbQ07bO7+&^O&EcQ07bO,5=UO&GgQ07bO,5=WO&GwQ07bO,5=UO&HXQ07bO,5=WO&HiQ07bO,59rO&JlQ07bO,5<iO&LlQ07bO,5<kO&N}Q07bO,5<yO'!pQ07bO7+'jO'!}Q07bO7+'kO'#[QWO,5<[OOQO7+'_7+'_O'#aQ7[O<<KzOOQO1G4s1G4sO'#hQWO1G4sO'#sQWO1G4sO'$RQWO7++xO'$RQWO7++xO!&_Q7[O1G4uO'$ZQpO1G4uO'$eQWO7++yOOQ?Mp7+(S7+(SO'$mQWO7+(TO'$xQpO7+(TOOQ?Mp7+(R7+(RO$(PQWO7+(SO'%PQWO7+(TO!&_Q7[O7+(TOCcQWO7+(SO'%UQWO7+(TO'%^Q7[O<<NrOOQ?Mr7+$z7+$zO'%hQpO,5?bOOQO-E<t-E<tO'%rQ?NbO7+(WOOQUAN=gAN=gO9^QWO1G5SOOQO1G5S1G5SO'&SQWO1G5SO'&XQWO7+,RO'&XQWO7+,RO9hQ?MxOANBTO@fQWOANBTOOQUANBTANBTOOQUANApANApOOQUANAqANAqO'&aQWO,5?dOOQO-E<v-E<vO'&lQ07bO1G6dOOQO,5?f,5?fOOQO-E<x-E<xOOQU1G3^1G3^O%+xQ^O,5<}O'&vQWO,5<}OOQU<<Lc<<LcO!&_Q7[O<<LcO&7WQWO<<LcO'&{QWO<<LcO%[Q^O<<LcOOQU<<Le<<LeO9hQ?MxO<<LeO$!}QWO<<LeO9RQWO<<LeO''TQ`O1G5RO''`QWO7+,POOQUAN=]AN=]O9hQ?MxOAN=]OOQU<= n<= nOOQU<= o<= oO''hQWO<= nO''mQWO<= oOOQU<<Lm<<LmO''rQWO<<LmO''wQ^O<<LmOOQU1G3w1G3wO>tQWO7+)hO'(OQWO<<I}O'(ZQ07bO<<I}OOQO<<Hv<<HvOOQ?MrAN?cAN?cOOQOAN?[AN?[O$>`Q?NdOAN?[OOQOAN>{AN>{O%[Q^OAN?[OOQO<<Mu<<MuOOQUG27SG27SO!&_Q7[OG27SO#&wQWOG27SO'(eQrOG27SO4UQrOG27SO'(lQWOG27SO'(tQ07bO<<JeO')RQ07bO1G2^O'*tQ07bO,5?]O',tQ07bO,5?_O'.tQ07bO1G2pO'0tQ07bO1G2rO'2tQ07bO<<KVO'3RQ07bO<<IxOOQO1G1v1G1vO!+hQ7[OANAfOOQO7+*_7+*_O'3`QWO7+*_O'3kQWO<= dO'3sQpO7+*aOOQ?Mp<<Ko<<KoO$(PQWO<<KoOCcQWO<<KoO'3}QWO<<KoOOQ?Mp<<Kn<<KnO'4YQpO<<KoO$(PQWO<<KnO'4aQWO<<KoO!&_Q7[O<<KoOOQO7+*n7+*nO9^QWO7+*nO'4fQWO<= mOOQUG27oG27oO9hQ?MxOG27oO!(oQ^O1G5OO'4nQWO7+,OO&7WQWOANA}OOQUANA}ANA}O!&_Q7[OANA}O'4vQWOANA}OOQUANBPANBPO9hQ?MxOANBPO$!}QWOANBPOOQO'#H['#H[OOQO7+*m7+*mOOQUG22wG22wOOQUANEYANEYOOQUANEZANEZOOQUANBXANBXO'5OQWOANBXOOQU<<MS<<MSO!(oQ^OAN?iOOQOG24vG24vO$>`Q?NdOG24vO#&wQWOLD,nOOQULD,nLD,nO!&_Q7[OLD,nO'5TQrOLD,nO'5[Q07bO7+'xO'6}Q07bO,5?]O'8}Q07bO,5?_O':}Q07bO7+'zO'<pQ7[OG27QOOQO<<My<<MyOOQ?MpANAZANAZO$(PQWOANAZOCcQWOANAZO'=QQWOANAZOOQ?MpANAYANAYO'=]QpOANAZOOQO<<NY<<NYOOQULD-ZLD-ZO'=dQ07bO7+*jOOQUG27iG27iO&7WQWOG27iO!&_Q7[OG27iOOQUG27kG27kO9hQ?MxOG27kOOQUG27sG27sO'=nQ07bOG25TOOQOLD*bLD*bOOQU!$(!Y!$(!YO#&wQWO!$(!YO!&_Q7[O!$(!YO'=xQ?NdOG27QOOQ?MpG26uG26uO$(PQWOG26uOCcQWOG26uO'@WQWOG26uOOQULD-TLD-TO&7WQWOLD-TOOQULD-VLD-VOOQU!)9Et!)9EtO#&wQWO!)9EtOOQ?MpLD,aLD,aO$(PQWOLD,aOCcQWOLD,aOOQU!$(!o!$(!oOOQU!.K;`!.K;`O'@cQ07bOG27QOOQ?Mp!$( {!$( {O$(PQWO!$( {OOQ?Mp!)9Eg!)9EgO!(oQ^O'#DwO1PQWO'#EUO'BUQrO'#JmO'B]QMnO'#DsO'BdQ^O'#D{O'BkQrO'#CiO'ERQrO'#CiO!(oQ^O'#D}O'EcQ^O,5;WO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O,5;bO!(oQ^O'#IlO'GfQWO,5<gO!(oQ^O,5;bO'GnQ7[O,5;bO'IXQ7[O,5;bO!(oQ^O,5;vO!&_Q7[O'#GjO'GnQ7[O'#GjO!&_Q7[O'#GlO'GnQ7[O'#GlO1SQWO'#DWO1SQWO'#DWO!&_Q7[O'#F}O'GnQ7[O'#F}O!&_Q7[O'#GPO'GnQ7[O'#GPO!&_Q7[O'#G_O'GnQ7[O'#G_O!(oQ^O,5:gO'I`Q`O'#D[O!(oQ^O,5@jO'EcQ^O1G0rO'IjQ07bO'#CiO!(oQ^O1G2OO!&_Q7[O'#IqO'GnQ7[O'#IqO!&_Q7[O'#IsO'GnQ7[O'#IsO'ItQpO'#CrO!&_Q7[O,5<rO'GnQ7[O,5<rO'EcQ^O1G2PO!(oQ^O7+&yO!&_Q7[O1G2^O'GnQ7[O1G2^O!&_Q7[O'#IqO'GnQ7[O'#IqO!&_Q7[O'#IsO'GnQ7[O'#IsO!&_Q7[O1G2`O'GnQ7[O1G2`O'EcQ^O7+'kO'EcQ^O7+&^O!&_Q7[OANAfO'GnQ7[OANAfO'JXQWO'#ElO'J^QWO'#ElO'JfQWO'#F[O'JkQWO'#EvO'JpQWO'#KOO'J{QWO'#J|O'KWQWO,5;WO'K]Q7[O,5<dO'KdQWO'#GWO'KiQWO'#GWO'KnQWO,5<eO'KvQWO,5;WO'LOQ07bO1G1_O'LVQWO,5<rO'L[QWO,5<rO'LaQWO,5<tO'LfQWO,5<tO'LkQWO1G2PO'LpQWO1G0rO'LuQ7[O<<KzO'L|Q7[O<<KzO7eQ7[O'#FzO9RQWO'#FyOAaQWO'#EkO!(oQ^O,5;sO!3SQWO'#GWO!3SQWO'#GWO!3SQWO'#GYO!3SQWO'#GYO!+hQ7[O7+(`O!+hQ7[O7+(`O%+SQpO1G2tO%+SQpO1G2tO!&_Q7[O,5=YO!&_Q7[O,5=Y",stateData:"'NQ~O'wOS'xOSTOS'yRQ~OPYOQYOSfOY!VOaqOdzOeyOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![XO!fuO!iZO!lYO!mYO!nYO!pvO!rwO!uxO!y]O#t!PO$V|O%e}O%g!QO%i!OO%j!OO%k!OO%n!RO%p!SO%s!TO%t!TO%v!UO&S!WO&Y!XO&[!YO&^!ZO&`![O&c!]O&i!^O&o!_O&q!`O&s!aO&u!bO&w!cO(OSO(QTO(TUO([VO(j[O(yiO~OWtO~P`OPYOQYOSfOd!jOe!iOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![!eO!fuO!iZO!lYO!mYO!nYO!pvO!r!gO!u!hO$V!kO(O!dO(QTO(TUO([VO(j[O(yiO~Oa!wOp!nO!P!oO!_!yO!`!vO!a!vO!y;QO#Q!pO#R!pO#S!xO#T!pO#U!pO#X!zO#Y!zO(P!lO(QTO(TUO(`!mO(j!sO~O'y!{O~OP]XR]X[]Xa]Xo]X}]X!P]X!Y]X!i]X!m]X#O]X#P]X#]]X#hfX#k]X#l]X#m]X#n]X#o]X#p]X#q]X#r]X#s]X#u]X#w]X#y]X#z]X$P]X'u]X([]X(m]X(t]X(u]X~O!d%PX~P(qO_!}O(Q#PO(R!}O(S#PO~O_#QO(S#PO(T#PO(U#QO~Ou#SO!R#TO(]#TO(^#VO~OPYOQYOSfOd!jOe!iOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![!eO!fuO!iZO!lYO!mYO!nYO!pvO!r!gO!u!hO$V!kO(O;UO(QTO(TUO([VO(j[O(yiO~O!X#ZO!Y#WO!V(cP!V(qP~P+}O!Z#cO~P`OPYOQYOSfOd!jOe!iOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![!eO!fuO!iZO!lYO!mYO!nYO!pvO!r!gO!u!hO$V!kO(QTO(TUO([VO(j[O(yiO~Om#mO!X#iO!y]O#f#lO#g#iO(O;VO!h(nP~P.iO!i#oO(O#nO~O!u#sO!y]O%e#tO~O#h#uO~O!d#vO#h#uO~OP$[OR#zO[$cOo$aO}#yO!P#{O!Y$_O!i#xO!m$[O#O$RO#k$OO#l$PO#m$PO#n$PO#o$QO#p$RO#q$RO#r$bO#s$RO#u$SO#w$UO#y$WO#z$XO([VO(m$YO(t#|O(u#}O~Oa(aX'u(aX's(aX!h(aX!V(aX![(aX%f(aX!d(aX~P1qO#P$dO#]$eO$P$eOP(bXR(bX[(bXo(bX}(bX!P(bX!Y(bX!i(bX!m(bX#O(bX#k(bX#l(bX#m(bX#n(bX#o(bX#p(bX#q(bX#r(bX#s(bX#u(bX#w(bX#y(bX#z(bX([(bX(m(bX(t(bX(u(bX![(bX%f(bX~Oa(bX'u(bX's(bX!V(bX!h(bXs(bX!d(bX~P4UO#]$eO~O$[$hO$^$gO$e$mO~OSfO![$nO$h$oO$j$qO~Oh%VOm%WOo%XOp$tOq$tOw%YOy%ZO{%[O!P${O![$|O!f%aO!i$xO#g%bO$V%_O$r%]O$t%^O$w%`O(O$sO(QTO(TUO([$uO(t$}O(u%POg(XP~O!i%cO~O!P%fO![%gO(O%eO~O!d%kO~Oa%lO'u%lO~O}%pO~P%[O(P!lO~P%[O%k%tO~P%[Oh%VO!i%cO(O%eO(P!lO~Oe%{O!i%cO(O%eO~O#s$RO~O}&QO![%}O!i&PO%g&TO(O%eO(P!lO(QTO(TUO`)SP~O!u#sO~O%p&VO!P)OX![)OX(O)OX~O(O&WO~O!r&]O#t!PO%g!QO%i!OO%j!OO%k!OO%n!RO%p!SO%s!TO%t!TO~Od&bOe&aO!u&_O%e&`O%x&^O~P;|Od&eOeyO![&dO!r&]O!uxO!y]O#t!PO%e}O%i!OO%j!OO%k!OO%n!RO%p!SO%s!TO%t!TO%v!UO~Ob&hO#]&kO%g&fO(P!lO~P=RO!i&lO!r&pO~O!i#oO~O![XO~Oa%lO't&xO'u%lO~Oa%lO't&{O'u%lO~Oa%lO't&}O'u%lO~O's]X!V]Xs]X!h]X&W]X![]X%f]X!d]X~P(qO!_'[O!`'TO!a'TO(P!lO(QTO(TUO~Op'RO!P'QO!X'UO(`'PO!Z(dP!Z(sP~P@YOk'_O![']O(O%eO~Oe'dO!i%cO(O%eO~O}&QO!i&PO~Op!nO!P!oO!y;QO#Q!pO#R!pO#T!pO#U!pO(P!lO(QTO(TUO(`!mO(j!sO~O!_'jO!`'iO!a'iO#S!pO#X'kO#Y'kO~PAtOa%lOh%VO!d#vO!i%cO'u%lO(m'mO~O!m'qO#]'oO~PCSOp!nO!P!oO(QTO(TUO(`!mO(j!sO~O![XOp(hX!P(hX!_(hX!`(hX!a(hX!y(hX#Q(hX#R(hX#S(hX#T(hX#U(hX#X(hX#Y(hX(P(hX(Q(hX(T(hX(`(hX(j(hX~O!`'iO!a'iO(P!lO~PCrO'z'uO'{'uO'|'wO~O_!}O(Q'yO(R!}O(S'yO~O_#QO(S'yO(T'yO(U#QO~Ou#SO!R#TO(]#TO(^'}O~O!X(PO!V'SX!V'YX!Y'SX!Y'YX~P+}O!Y(RO!V(cX~OP$[OR#zO[$cOo$aO}#yO!P#{O!Y(RO!i#xO!m$[O#O$RO#k$OO#l$PO#m$PO#n$PO#o$QO#p$RO#q$RO#r$bO#s$RO#u$SO#w$UO#y$WO#z$XO([VO(m$YO(t#|O(u#}O~O!V(cX~PGfO!V(WO~O!V(pX!Y(pX!d(pX!h(pX(m(pX~O#](pX#h#aX!Z(pX~PIiO#](XO!V(rX!Y(rX~O!Y(YO!V(qX~O!V(]O~O#]$eO~PIiO!Z(^O~P`OR#zO}#yO!P#{O!i#xO([VOP!ka[!kao!ka!Y!ka!m!ka#O!ka#k!ka#l!ka#m!ka#n!ka#o!ka#p!ka#q!ka#r!ka#s!ka#u!ka#w!ka#y!ka#z!ka(m!ka(t!ka(u!ka~Oa!ka'u!ka's!ka!V!ka!h!kas!ka![!ka%f!ka!d!ka~PKPO!h(_O~O!d#vO#](`O(m'mO!Y(oXa(oX'u(oX~O!h(oX~PMlO!P%fO![%gO!y]O#f(eO#g(dO(O%eO~O!Y(fO!h(nX~O!h(hO~O!P%fO![%gO#g(dO(O%eO~OP(bXR(bX[(bXo(bX}(bX!P(bX!Y(bX!i(bX!m(bX#O(bX#k(bX#l(bX#m(bX#n(bX#o(bX#p(bX#q(bX#r(bX#s(bX#u(bX#w(bX#y(bX#z(bX([(bX(m(bX(t(bX(u(bX~O!d#vO!h(bX~P! YOR(jO}(iO!i#xO#P$dO!y!xa!P!xa~O!u!xa%e!xa![!xa#f!xa#g!xa(O!xa~P!#ZO!u(nO~OPYOQYOSfOd!jOe!iOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![XO!fuO!iZO!lYO!mYO!nYO!pvO!r!gO!u!hO$V!kO(O!dO(QTO(TUO([VO(j[O(yiO~Oh%VOm%WOo%XOp$tOq$tOw%YOy%ZO{;nO!P${O![$|O!f=OO!i$xO#g;tO$V%_O$r;pO$t;rO$w%`O(O(rO(QTO(TUO([$uO(t$}O(u%PO~O#h(tO~O!X(vO!h(fP~P%[O(`(xO(j[O~O!P(zO!i#xO(`(xO(j[O~OP;POQ;POSfOd<zOe!iOmkOo;POpkOqkOwkOy;PO{;PO!PWO!TkO!UkO![!eO!f;SO!iZO!l;PO!m;PO!n;PO!p;TO!r;WO!u!hO$V!kO(O)XO(QTO(TUO([VO(j[O(y<xO~O!Y$_Oa$oa'u$oa's$oa!h$oa!V$oa![$oa%f$oa!d$oa~O#t)`O~P!&_Oh%VOm%WOo%XOp$tOq$tOw%YOy%ZO{%[O!P${O![$|O!f%aO!i$xO#g%bO$V%_O$r%]O$t%^O$w%`O(O(rO(QTO(TUO([$uO(t$}O(u%PO~Og(kP~P!+hO})eO!d)dO![$]X$Y$]X$[$]X$^$]X$e$]X~O!d)dO![(vX$Y(vX$[(vX$^(vX$e(vX~O})eO~P!-qO})eO![(vX$Y(vX$[(vX$^(vX$e(vX~O![)gO$Y)kO$[)fO$^)fO$e)lO~O!X)oO~P!(oO$[$hO$^$gO$e)sO~Ok$xX}$xX!P$xX#P$xX(t$xX(u$xX~OgjXg$xXkjX!YjX#]jX~P!/gOu)uO(])vO(^)xO~Ok*RO})zO!P){O(t$}O(u%PO~Og)yO~P!0kOg*SO~Oh%VOm%WOo%XOp$tOq$tOw%YOy%ZO{;nO!P*UO![*VO!f=OO!i$xO#g;tO$V%_O$r;pO$t;rO$w%`O(QTO(TUO([$uO(t$}O(u%PO~O!X*YO(O*TO!h(zP~P!1YO#h*[O~O!i*]O~Oh%VOm%WOo%XOp$tOq$tOw%YOy%ZO{;nO!P${O![$|O!f=OO!i$xO#g;tO$V%_O$r;pO$t;rO$w%`O(O*_O(QTO(TUO([$uO(t$}O(u%PO~O!X*bO!V({P~P!3XOo*nO!P*fO!_*lO!`*eO!a*eO!i*]O#X*mO%]*hO(P!lO(`!mO~O!Z*kO~P!4|O#P$dOk(ZX}(ZX!P(ZX(t(ZX(u(ZX!Y(ZX#](ZX~Og(ZX#}(ZX~P!5uOk*sO#]*rOg(YX!Y(YX~O!Y*tOg(XX~O(O&WOg(XP~Op*wO~O!i*|O~O(O(rO~Om+QO!P%fO!X#iO![%gO!y]O#f#lO#g#iO(O%eO!h(nP~O!d#vO#h+RO~O!P%fO!X+TO!Y(YO![%gO(O%eO!V(qP~Op'XO!P+VO!X+UO(QTO(TUO(`(xO~O!Z(sP~P!8uO!Y+WOa)PX'u)PX~OP$[OR#zO[$cOo$aO}#yO!P#{O!i#xO!m$[O#O$RO#k$OO#l$PO#m$PO#n$PO#o$QO#p$RO#q$RO#r$bO#s$RO#u$SO#w$UO#y$WO#z$XO([VO(m$YO(t#|O(u#}O~Oa!ga!Y!ga'u!ga's!ga!V!ga!h!gas!ga![!ga%f!ga!d!ga~P!9mOR#zO}#yO!P#{O!i#xO([VOP!oa[!oao!oa!Y!oa!m!oa#O!oa#k!oa#l!oa#m!oa#n!oa#o!oa#p!oa#q!oa#r!oa#s!oa#u!oa#w!oa#y!oa#z!oa(m!oa(t!oa(u!oa~Oa!oa'u!oa's!oa!V!oa!h!oas!oa![!oa%f!oa!d!oa~P!<TOR#zO}#yO!P#{O!i#xO([VOP!qa[!qao!qa!Y!qa!m!qa#O!qa#k!qa#l!qa#m!qa#n!qa#o!qa#p!qa#q!qa#r!qa#s!qa#u!qa#w!qa#y!qa#z!qa(m!qa(t!qa(u!qa~Oa!qa'u!qa's!qa!V!qa!h!qas!qa![!qa%f!qa!d!qa~P!>kOh%VOk+aO![']O%f+`O~O!d+cOa(WX![(WX'u(WX!Y(WX~Oa%lO![XO'u%lO~Oh%VO!i%cO~Oh%VO!i%cO(O%eO~O!d#vO#h(tO~Ob+nO%g+oO(O+kO(QTO(TUO!Z)TP~O!Y+pO`)SX~O[+tO~O`+uO~O![%}O(O%eO(P!lO`)SP~Oh%VO#]+zO~Oh%VOk+}O![$|O~O![,PO~O},RO![XO~O%k%tO~O!u,WO~Oe,]O~Ob,^O(O#nO(QTO(TUO!Z)RP~Oe%{O~O%g!QO(O&WO~P=RO[,cO`,bO~OPYOQYOSfOdzOeyOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO!fuO!iZO!lYO!mYO!nYO!pvO!uxO!y]O%e}O(QTO(TUO([VO(j[O(yiO~O![!eO!r!gO$V!kO(O!dO~P!EkO`,bOa%lO'u%lO~OPYOQYOSfOd!jOe!iOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![!eO!fuO!iZO!lYO!mYO!nYO!pvO!u!hO$V!kO(O!dO(QTO(TUO([VO(j[O(yiO~Oa,hO!rwO#t!OO%i!OO%j!OO%k!OO~P!HTO!i&lO~O&Y,nO~O![,pO~O&k,rO&m,sOP&haQ&haS&haY&haa&had&hae&ham&hao&hap&haq&haw&hay&ha{&ha!P&ha!T&ha!U&ha![&ha!f&ha!i&ha!l&ha!m&ha!n&ha!p&ha!r&ha!u&ha!y&ha#t&ha$V&ha%e&ha%g&ha%i&ha%j&ha%k&ha%n&ha%p&ha%s&ha%t&ha%v&ha&S&ha&Y&ha&[&ha&^&ha&`&ha&c&ha&i&ha&o&ha&q&ha&s&ha&u&ha&w&ha's&ha(O&ha(Q&ha(T&ha([&ha(j&ha(y&ha!Z&ha&a&hab&ha&f&ha~O(O,xO~Oh!bX!Y!OX!Z!OX!d!OX!d!bX!i!bX#]!OX~O!Y!bX!Z!bX~P# ZO!d,}O#],|Oh(eX!Y#eX!Y(eX!Z#eX!Z(eX!d(eX!i(eX~Oh%VO!d-PO!i%cO!Y!^X!Z!^X~Op!nO!P!oO(QTO(TUO(`!mO~OP;POQ;POSfOd<zOe!iOmkOo;POpkOqkOwkOy;PO{;PO!PWO!TkO!UkO![!eO!f;SO!iZO!l;PO!m;PO!n;PO!p;TO!r;WO!u!hO$V!kO(QTO(TUO([VO(j[O(y<xO~O(O;zO~P##_O!Y-TO!Z(dX~O!Z-VO~O!d,}O#],|O!Y#eX!Z#eX~O!Y-WO!Z(sX~O!Z-YO~O!`-ZO!a-ZO(P!lO~P#!|O!Z-^O~P'_Ok-aO![']O~O!V-fO~Op!xa!_!xa!`!xa!a!xa#Q!xa#R!xa#S!xa#T!xa#U!xa#X!xa#Y!xa(P!xa(Q!xa(T!xa(`!xa(j!xa~P!#ZO!m-kO#]-iO~PCSO!`-mO!a-mO(P!lO~PCrOa%lO#]-iO'u%lO~Oa%lO!d#vO#]-iO'u%lO~Oa%lO!d#vO!m-kO#]-iO'u%lO(m'mO~O'z'uO'{'uO'|-rO~Os-sO~O!V'Sa!Y'Sa~P!9mO!X-wO!V'SX!Y'SX~P%[O!Y(RO!V(ca~O!V(ca~PGfO!Y(YO!V(qa~O!P%fO!X-{O![%gO(O%eO!V'YX!Y'YX~O#]-}O!Y(oa!h(oaa(oa'u(oa~O!d#vO~P#+eO!Y(fO!h(na~O!P%fO![%gO#g.RO(O%eO~Om.WO!P%fO!X.TO![%gO!y]O#f.VO#g.TO(O%eO!Y']X!h']X~OR.[O!i#xO~Oh%VOk._O![']O%f.^O~Oa#`i!Y#`i'u#`i's#`i!V#`i!h#`is#`i![#`i%f#`i!d#`i~P!9mOk=UO})zO!P){O(t$}O(u%PO~O#h#[aa#[a#]#[a'u#[a!Y#[a!h#[a![#[a!V#[a~P#.aO#h(ZXP(ZXR(ZX[(ZXa(ZXo(ZX!i(ZX!m(ZX#O(ZX#k(ZX#l(ZX#m(ZX#n(ZX#o(ZX#p(ZX#q(ZX#r(ZX#s(ZX#u(ZX#w(ZX#y(ZX#z(ZX'u(ZX([(ZX(m(ZX!h(ZX!V(ZX's(ZXs(ZX![(ZX%f(ZX!d(ZX~P!5uO!Y.lO!h(fX~P!9mO!h.oO~O!V.qO~OP$[OR#zO}#yO!P#{O!i#xO!m$[O([VO[#jia#jio#ji!Y#ji#O#ji#l#ji#m#ji#n#ji#o#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji'u#ji(m#ji(t#ji(u#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~O#k#ji~P#1|O#k$OO~P#1|OP$[OR#zOo$aO}#yO!P#{O!i#xO!m$[O#k$OO#l$PO#m$PO#n$PO([VO[#jia#ji!Y#ji#O#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji'u#ji(m#ji(t#ji(u#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~O#o#ji~P#4kO#o$QO~P#4kOP$[OR#zO[$cOo$aO}#yO!P#{O!i#xO!m$[O#O$RO#k$OO#l$PO#m$PO#n$PO#o$QO#p$RO#q$RO#r$bO#s$RO([VOa#ji!Y#ji#w#ji#y#ji#z#ji'u#ji(m#ji(t#ji(u#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~O#u#ji~P#7YOP$[OR#zO[$cOo$aO}#yO!P#{O!i#xO!m$[O#O$RO#k$OO#l$PO#m$PO#n$PO#o$QO#p$RO#q$RO#r$bO#s$RO#u$SO([VO(u#}Oa#ji!Y#ji#y#ji#z#ji'u#ji(m#ji(t#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~O#w$UO~P#9pO#w#ji~P#9pO#u$SO~P#7YOP$[OR#zO[$cOo$aO}#yO!P#{O!i#xO!m$[O#O$RO#k$OO#l$PO#m$PO#n$PO#o$QO#p$RO#q$RO#r$bO#s$RO#u$SO#w$UO([VO(t#|O(u#}Oa#ji!Y#ji#z#ji'u#ji(m#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~O#y#ji~P#<fO#y$WO~P#<fOP]XR]X[]Xo]X}]X!P]X!i]X!m]X#O]X#P]X#]]X#hfX#k]X#l]X#m]X#n]X#o]X#p]X#q]X#r]X#s]X#u]X#w]X#y]X#z]X$P]X([]X(m]X(t]X(u]X!Y]X!Z]X~O#}]X~P#?TOP$[OR#zO[;hOo;fO}#yO!P#{O!i#xO!m$[O#O;]O#k;YO#l;ZO#m;ZO#n;ZO#o;[O#p;]O#q;]O#r;gO#s;]O#u;^O#w;`O#y;bO#z;cO([VO(m$YO(t#|O(u#}O~O#}.sO~P#AbO#P$dO#];iO$P;iO#}(bX!Z(bX~P! YOa'`a!Y'`a'u'`a's'`a!h'`a!V'`as'`a!['`a%f'`a!d'`a~P!9mO[#jia#jio#ji!Y#ji#O#ji#o#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji'u#ji(m#ji's#ji!V#ji!h#jis#ji![#ji%f#ji!d#ji~OP$[OR#zO}#yO!P#{O!i#xO!m$[O#k$OO#l$PO#m$PO#n$PO([VO(t#ji(u#ji~P#DdOk=UO})zO!P){O(t$}O(u%POP#jiR#ji!i#ji!m#ji#k#ji#l#ji#m#ji#n#ji([#ji~P#DdO!Y.wOg(kX~P!0kOg.yO~Oa$Oi!Y$Oi'u$Oi's$Oi!V$Oi!h$Ois$Oi![$Oi%f$Oi!d$Oi~P!9mO$[.zO$^.zO~O$[.{O$^.{O~O!d)dO#].|O![$bX$Y$bX$[$bX$^$bX$e$bX~O!X.}O~O![)gO$Y/PO$[)fO$^)fO$e/QO~O!Y;dO!Z(aX~P#AbO!Z/RO~O!d)dO$e(vX~O$e/TO~Ou)uO(])vO(^/WO~O!V/[O~P!&_O(t$}Ok%^a}%^a!P%^a(u%^a!Y%^a#]%^a~Og%^a#}%^a~P#K^O(u%POk%`a}%`a!P%`a(t%`a!Y%`a#]%`a~Og%`a#}%`a~P#LPO!YfX!dfX!hfX!h$xX(mfX~P!/gO!X/eO!Y(YO(O/dO!V(qP!V({P~P!1YOo*nO!_*lO!`*eO!a*eO!i*]O#X*mO%]*hO(P!lO~Op'XO!P/fO!X+UO!Z*kO(QTO(TUO(`;wO!Z(sP~P#MjO!h/gO~P#.aO!Y/hO!d#vO(m'mO!h(zX~O!h/mO~O!P%fO!X*YO![%gO(O%eO!h(zP~O#h/oO~O!V$xX!Y$xX!d%PX~P!/gO!Y/pO!V({X~P#.aO!d/rO~O!V/tO~Oh%VOo/xO!d#vO!i%cO(m'mO~O(O/zO~O!d+cO~Oa%lO!Y0OO'u%lO~O!Z0QO~P!4|O!`0RO!a0RO(P!lO(`!mO~O!P0TO(`!mO~O#X0UO~Og%^a!Y%^a#]%^a#}%^a~P!0kOg%`a!Y%`a#]%`a#}%`a~P!0kO(O&WOg'iX!Y'iX~O!Y*tOg(Xa~Og0_O~OR0`O}0`O!P0aO#P$dOkza(tza(uza!Yza#]za~Ogza#}za~P$%]O})zO!P){Ok$qa(t$qa(u$qa!Y$qa#]$qa~Og$qa#}$qa~P$&UO})zO!P){Ok$sa(t$sa(u$sa!Y$sa#]$sa~Og$sa#}$sa~P$&wO#h0dO~Og%Ra!Y%Ra#]%Ra#}%Ra~P!0kO!d#vO~O#h0gO~O!Y+WOa)Pa'u)Pa~OR#zO}#yO!P#{O!i#xO([VOP!oi[!oio!oi!Y!oi!m!oi#O!oi#k!oi#l!oi#m!oi#n!oi#o!oi#p!oi#q!oi#r!oi#s!oi#u!oi#w!oi#y!oi#z!oi(m!oi(t!oi(u!oi~Oa!oi'u!oi's!oi!V!oi!h!ois!oi![!oi%f!oi!d!oi~P$(fOh%VOo%XOp$tOq$tOw%YOy%ZO{;nO!P${O![$|O!f=OO!i$xO#g;tO$V%_O$r;pO$t;rO$w%`O(QTO(TUO([$uO(t$}O(u%PO~Om0pO(O0oO~P$*|O!d+cOa(Wa![(Wa'u(Wa!Y(Wa~O#h0vO~O[]X!YfX!ZfX~O!Y0wO!Z)TX~O!Z0yO~O[0zO~Ob0|O(O+kO(QTO(TUO~O![%}O(O%eO`'qX!Y'qX~O!Y+pO`)Sa~O!h1PO~P!9mO[1SO~O`1TO~O#]1WO~Ok1ZO![$|O~O(`(xO!Z)QP~Oh%VOk1dO![1aO%f1cO~O[1nO!Y1lO!Z)RX~O!Z1oO~O`1qOa%lO'u%lO~O(O#nO(QTO(TUO~O#P$dO#]$eO$P$eOP(bXR(bX[(bXo(bX}(bX!P(bX!Y(bX!i(bX!m(bX#O(bX#k(bX#l(bX#m(bX#n(bX#o(bX#p(bX#q(bX#r(bX#u(bX#w(bX#y(bX#z(bX([(bX(m(bX(t(bX(u(bX~O#s1tO&W1uOa(bX~P$0dO#]$eO#s1tO&W1uO~Oa1wO~P%[Oa1yO~O&a1|OP&_iQ&_iS&_iY&_ia&_id&_ie&_im&_io&_ip&_iq&_iw&_iy&_i{&_i!P&_i!T&_i!U&_i![&_i!f&_i!i&_i!l&_i!m&_i!n&_i!p&_i!r&_i!u&_i!y&_i#t&_i$V&_i%e&_i%g&_i%i&_i%j&_i%k&_i%n&_i%p&_i%s&_i%t&_i%v&_i&S&_i&Y&_i&[&_i&^&_i&`&_i&c&_i&i&_i&o&_i&q&_i&s&_i&u&_i&w&_i's&_i(O&_i(Q&_i(T&_i([&_i(j&_i(y&_i!Z&_ib&_i&f&_i~Ob2SO!Z2QO&f2RO~P`O![XO!i2UO~O&m,sOP&hiQ&hiS&hiY&hia&hid&hie&him&hio&hip&hiq&hiw&hiy&hi{&hi!P&hi!T&hi!U&hi![&hi!f&hi!i&hi!l&hi!m&hi!n&hi!p&hi!r&hi!u&hi!y&hi#t&hi$V&hi%e&hi%g&hi%i&hi%j&hi%k&hi%n&hi%p&hi%s&hi%t&hi%v&hi&S&hi&Y&hi&[&hi&^&hi&`&hi&c&hi&i&hi&o&hi&q&hi&s&hi&u&hi&w&hi's&hi(O&hi(Q&hi(T&hi([&hi(j&hi(y&hi!Z&hi&a&hib&hi&f&hi~O!V2[O~O!Y!^a!Z!^a~P#AbOp!nO!P!oO!X2bO(`!mO!Y'TX!Z'TX~P@YO!Y-TO!Z(da~O!Y'ZX!Z'ZX~P!8uO!Y-WO!Z(sa~O!Z2iO~P'_Oa%lO#]2rO'u%lO~Oa%lO!d#vO#]2rO'u%lO~Oa%lO!d#vO!m2vO#]2rO'u%lO(m'mO~Oa%lO'u%lO~P!9mO!Y$_Os$oa~O!V'Si!Y'Si~P!9mO!Y(RO!V(ci~O!Y(YO!V(qi~O!V(ri!Y(ri~P!9mO!Y(oi!h(oia(oi'u(oi~P!9mO#]2xO!Y(oi!h(oia(oi'u(oi~O!Y(fO!h(ni~O!P%fO![%gO!y]O#f2}O#g2|O(O%eO~O!P%fO![%gO#g2|O(O%eO~Ok3UO![']O%f3TO~Oh%VOk3UO![']O%f3TO~O#h%^aP%^aR%^a[%^aa%^ao%^a!i%^a!m%^a#O%^a#k%^a#l%^a#m%^a#n%^a#o%^a#p%^a#q%^a#r%^a#s%^a#u%^a#w%^a#y%^a#z%^a'u%^a([%^a(m%^a!h%^a!V%^a's%^as%^a![%^a%f%^a!d%^a~P#K^O#h%`aP%`aR%`a[%`aa%`ao%`a!i%`a!m%`a#O%`a#k%`a#l%`a#m%`a#n%`a#o%`a#p%`a#q%`a#r%`a#s%`a#u%`a#w%`a#y%`a#z%`a'u%`a([%`a(m%`a!h%`a!V%`a's%`as%`a![%`a%f%`a!d%`a~P#LPO#h%^aP%^aR%^a[%^aa%^ao%^a!Y%^a!i%^a!m%^a#O%^a#k%^a#l%^a#m%^a#n%^a#o%^a#p%^a#q%^a#r%^a#s%^a#u%^a#w%^a#y%^a#z%^a'u%^a([%^a(m%^a!h%^a!V%^a's%^a#]%^as%^a![%^a%f%^a!d%^a~P#.aO#h%`aP%`aR%`a[%`aa%`ao%`a!Y%`a!i%`a!m%`a#O%`a#k%`a#l%`a#m%`a#n%`a#o%`a#p%`a#q%`a#r%`a#s%`a#u%`a#w%`a#y%`a#z%`a'u%`a([%`a(m%`a!h%`a!V%`a's%`a#]%`as%`a![%`a%f%`a!d%`a~P#.aO#hzaPza[zaazaoza!iza!mza#Oza#kza#lza#mza#nza#oza#pza#qza#rza#sza#uza#wza#yza#zza'uza([za(mza!hza!Vza'szasza![za%fza!dza~P$%]O#h$qaP$qaR$qa[$qaa$qao$qa!i$qa!m$qa#O$qa#k$qa#l$qa#m$qa#n$qa#o$qa#p$qa#q$qa#r$qa#s$qa#u$qa#w$qa#y$qa#z$qa'u$qa([$qa(m$qa!h$qa!V$qa's$qas$qa![$qa%f$qa!d$qa~P$&UO#h$saP$saR$sa[$saa$sao$sa!i$sa!m$sa#O$sa#k$sa#l$sa#m$sa#n$sa#o$sa#p$sa#q$sa#r$sa#s$sa#u$sa#w$sa#y$sa#z$sa'u$sa([$sa(m$sa!h$sa!V$sa's$sas$sa![$sa%f$sa!d$sa~P$&wO#h%RaP%RaR%Ra[%Raa%Rao%Ra!Y%Ra!i%Ra!m%Ra#O%Ra#k%Ra#l%Ra#m%Ra#n%Ra#o%Ra#p%Ra#q%Ra#r%Ra#s%Ra#u%Ra#w%Ra#y%Ra#z%Ra'u%Ra([%Ra(m%Ra!h%Ra!V%Ra's%Ra#]%Ras%Ra![%Ra%f%Ra!d%Ra~P#.aOa#`q!Y#`q'u#`q's#`q!V#`q!h#`qs#`q![#`q%f#`q!d#`q~P!9mO!X3^O!Y'UX!h'UX~P%[O!Y.lO!h(fa~O!Y.lO!h(fa~P!9mO!V3aO~O#}!ka!Z!ka~PKPO#}!ga!Y!ga!Z!ga~P#AbO#}!oa!Z!oa~P!<TO#}!qa!Z!qa~P!>kOg'XX!Y'XX~P!+hO!Y.wOg(ka~OSfO![3uO$c3vO~O!Z3zO~Os3{O~P#.aOa$lq!Y$lq'u$lq's$lq!V$lq!h$lqs$lq![$lq%f$lq!d$lq~P!9mO!V3|O~P#.aO})zO!P){O(u%POk'ea(t'ea!Y'ea#]'ea~Og'ea#}'ea~P%)nO})zO!P){Ok'ga(t'ga(u'ga!Y'ga#]'ga~Og'ga#}'ga~P%*aO(m$YO~P#.aO!VfX!V$xX!YfX!Y$xX!d%PX#]fX~P!/gO(O<QO~P!1YOmkO(O4OO~P.iO!P%fO!X4QO![%gO(O%eO!Y'aX!h'aX~O!Y/hO!h(za~O!Y/hO!d#vO!h(za~O!Y/hO!d#vO(m'mO!h(za~Og$zi!Y$zi#]$zi#}$zi~P!0kO!X4YO!V'cX!Y'cX~P!3XO!Y/pO!V({a~O!Y/pO!V({a~P#.aO!d#vO#s4bO~Oo4eO!d#vO(m'mO~O!P4hO(`!mO~O(t$}Ok%^i}%^i!P%^i(u%^i!Y%^i#]%^i~Og%^i#}%^i~P%.wO(u%POk%`i}%`i!P%`i(t%`i!Y%`i#]%`i~Og%`i#}%`i~P%/jOg(Yi!Y(Yi~P!0kO#]4mOg(Yi!Y(Yi~P!0kO!h4pO~Oa$mq!Y$mq'u$mq's$mq!V$mq!h$mqs$mq![$mq%f$mq!d$mq~P!9mO!V4tO~O!Y4uO![(|X~P#.aOa$xX![$xX%Z]X'u$xX!Y$xX~P!/gO%Z4xOalXklX}lX!PlX![lX'ulX(tlX(ulX!YlX~O%Z4xO~Ob5OO%g5PO(O+kO(QTO(TUO!Y'pX!Z'pX~O!Y0wO!Z)Ta~O[5TO~O`5UO~Oa%lO'u%lO~P#.aO![$|O~P#.aO!Y5^O#]5`O!Z)QX~O!Z5aO~Oo5hOp!nO!P5bO!_!yO!`!vO!a!vO!y;QO#Q!pO#R!pO#S!pO#T!pO#U!pO#X5gO#Y!zO(P!lO(QTO(TUO(`!mO(j!sO~O!Z5fO~P%4tOk5mO![1aO%f5lO~Oh%VOk5mO![1aO%f5lO~Ob5tO(O#nO(QTO(TUO!Y'oX!Z'oX~O!Y1lO!Z)Ra~O(QTO(TUO(`5vO~O`5zO~O#s5}O&W6OO~PMlO!h6PO~P%[Oa6RO~Oa6RO~P%[Ob2SO!Z6WO&f2RO~P`O!d6YO~O!d6[Oh(ei!Y(ei!Z(ei!d(ei!i(ei~O!Y#ei!Z#ei~P#AbO#]6]O!Y#ei!Z#ei~O!Y!^i!Z!^i~P#AbOa%lO#]6fO'u%lO~Oa%lO!d#vO#]6fO'u%lO~O!Y(oq!h(oqa(oq'u(oq~P!9mO!Y(fO!h(nq~O!P%fO![%gO#g6mO(O%eO~O![']O%f6pO~Ok6tO![']O%f6pO~O#h'eaP'eaR'ea['eaa'eao'ea!i'ea!m'ea#O'ea#k'ea#l'ea#m'ea#n'ea#o'ea#p'ea#q'ea#r'ea#s'ea#u'ea#w'ea#y'ea#z'ea'u'ea(['ea(m'ea!h'ea!V'ea's'eas'ea!['ea%f'ea!d'ea~P%)nO#h'gaP'gaR'ga['gaa'gao'ga!i'ga!m'ga#O'ga#k'ga#l'ga#m'ga#n'ga#o'ga#p'ga#q'ga#r'ga#s'ga#u'ga#w'ga#y'ga#z'ga'u'ga(['ga(m'ga!h'ga!V'ga's'gas'ga!['ga%f'ga!d'ga~P%*aO#h$ziP$ziR$zi[$zia$zio$zi!Y$zi!i$zi!m$zi#O$zi#k$zi#l$zi#m$zi#n$zi#o$zi#p$zi#q$zi#r$zi#s$zi#u$zi#w$zi#y$zi#z$zi'u$zi([$zi(m$zi!h$zi!V$zi's$zi#]$zis$zi![$zi%f$zi!d$zi~P#.aO#h%^iP%^iR%^i[%^ia%^io%^i!i%^i!m%^i#O%^i#k%^i#l%^i#m%^i#n%^i#o%^i#p%^i#q%^i#r%^i#s%^i#u%^i#w%^i#y%^i#z%^i'u%^i([%^i(m%^i!h%^i!V%^i's%^is%^i![%^i%f%^i!d%^i~P%.wO#h%`iP%`iR%`i[%`ia%`io%`i!i%`i!m%`i#O%`i#k%`i#l%`i#m%`i#n%`i#o%`i#p%`i#q%`i#r%`i#s%`i#u%`i#w%`i#y%`i#z%`i'u%`i([%`i(m%`i!h%`i!V%`i's%`is%`i![%`i%f%`i!d%`i~P%/jO!Y'Ua!h'Ua~P!9mO!Y.lO!h(fi~O#}#`i!Y#`i!Z#`i~P#AbOP$[OR#zO}#yO!P#{O!i#xO!m$[O([VO[#jio#ji#O#ji#l#ji#m#ji#n#ji#o#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji#}#ji(m#ji(t#ji(u#ji!Y#ji!Z#ji~O#k#ji~P%G^O#k;YO~P%G^OP$[OR#zOo;fO}#yO!P#{O!i#xO!m$[O#k;YO#l;ZO#m;ZO#n;ZO([VO[#ji#O#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji#}#ji(m#ji(t#ji(u#ji!Y#ji!Z#ji~O#o#ji~P%IfO#o;[O~P%IfOP$[OR#zO[;hOo;fO}#yO!P#{O!i#xO!m$[O#O;]O#k;YO#l;ZO#m;ZO#n;ZO#o;[O#p;]O#q;]O#r;gO#s;]O([VO#w#ji#y#ji#z#ji#}#ji(m#ji(t#ji(u#ji!Y#ji!Z#ji~O#u#ji~P%KnOP$[OR#zO[;hOo;fO}#yO!P#{O!i#xO!m$[O#O;]O#k;YO#l;ZO#m;ZO#n;ZO#o;[O#p;]O#q;]O#r;gO#s;]O#u;^O([VO(u#}O#y#ji#z#ji#}#ji(m#ji(t#ji!Y#ji!Z#ji~O#w;`O~P%MoO#w#ji~P%MoO#u;^O~P%KnOP$[OR#zO[;hOo;fO}#yO!P#{O!i#xO!m$[O#O;]O#k;YO#l;ZO#m;ZO#n;ZO#o;[O#p;]O#q;]O#r;gO#s;]O#u;^O#w;`O([VO(t#|O(u#}O#z#ji#}#ji(m#ji!Y#ji!Z#ji~O#y#ji~P&!OO#y;bO~P&!OOa#{y!Y#{y'u#{y's#{y!V#{y!h#{ys#{y![#{y%f#{y!d#{y~P!9mO[#jio#ji#O#ji#o#ji#p#ji#q#ji#r#ji#s#ji#u#ji#w#ji#y#ji#z#ji#}#ji(m#ji!Y#ji!Z#ji~OP$[OR#zO}#yO!P#{O!i#xO!m$[O#k;YO#l;ZO#m;ZO#n;ZO([VO(t#ji(u#ji~P&$zOk=VO})zO!P){O(t$}O(u%POP#jiR#ji!i#ji!m#ji#k#ji#l#ji#m#ji#n#ji([#ji~P&$zO#P$dOP(ZXR(ZX[(ZXk(ZXo(ZX}(ZX!P(ZX!i(ZX!m(ZX#O(ZX#k(ZX#l(ZX#m(ZX#n(ZX#o(ZX#p(ZX#q(ZX#r(ZX#s(ZX#u(ZX#w(ZX#y(ZX#z(ZX#}(ZX([(ZX(m(ZX(t(ZX(u(ZX!Y(ZX!Z(ZX~O#}$Oi!Y$Oi!Z$Oi~P#AbO#}!oi!Z!oi~P$(fOg'Xa!Y'Xa~P!0kO!Z7WO~O!Y'`a!Z'`a~P#AbOP]XR]X[]Xo]X}]X!P]X!V]X!Y]X!i]X!m]X#O]X#P]X#]]X#hfX#k]X#l]X#m]X#n]X#o]X#p]X#q]X#r]X#s]X#u]X#w]X#y]X#z]X$P]X([]X(m]X(t]X(u]X~O!d%WX#s%WX~P&+QO!d#vO(m'mO!Y'aa!h'aa~O!Y/hO!h(zi~O!Y/hO!d#vO!h(zi~Og$zq!Y$zq#]$zq#}$zq~P!0kO!V'ca!Y'ca~P#.aO!d7_O~O!Y/pO!V({i~P#.aO!Y/pO!V({i~O!V7cO~O!d#vO#s7hO~Oo7iO!d#vO(m'mO~O})zO!P){O(u%POk'fa(t'fa!Y'fa#]'fa~Og'fa#}'fa~P&/pO})zO!P){Ok'ha(t'ha(u'ha!Y'ha#]'ha~Og'ha#}'ha~P&0cO!V7lO~Og$|q!Y$|q#]$|q#}$|q~P!0kOa$my!Y$my'u$my's$my!V$my!h$mys$my![$my%f$my!d$my~P!9mO!d6[O~O!Y4uO![(|a~O![']OP$SaR$Sa[$Sao$Sa}$Sa!P$Sa!Y$Sa!i$Sa!m$Sa#O$Sa#k$Sa#l$Sa#m$Sa#n$Sa#o$Sa#p$Sa#q$Sa#r$Sa#s$Sa#u$Sa#w$Sa#y$Sa#z$Sa([$Sa(m$Sa(t$Sa(u$Sa~O%f6pO~P&2lOa#`y!Y#`y'u#`y's#`y!V#`y!h#`ys#`y![#`y%f#`y!d#`y~P!9mO[7qO~Ob7sO(O+kO(QTO(TUO~O!Y0wO!Z)Ti~O`7wO~O(`(xO!Y'lX!Z'lX~O!Y5^O!Z)Qa~O!Z8QO~P%4tOp!nO!P8RO(QTO(TUO(`!mO(j!sO~O#X8SO~O![1aO~O![1aO%f8UO~Ok8XO![1aO%f8UO~O[8^O!Y'oa!Z'oa~O!Y1lO!Z)Ri~O!h8bO~O!h8cO~O!h8fO~O!h8fO~P%[Oa8hO~O!d8iO~O!h8jO~O!Y(ri!Z(ri~P#AbOa%lO#]8rO'u%lO~O!Y(oy!h(oya(oy'u(oy~P!9mO!Y(fO!h(ny~O%f8uO~P&2lO![']O%f8uO~O#h$zqP$zqR$zq[$zqa$zqo$zq!Y$zq!i$zq!m$zq#O$zq#k$zq#l$zq#m$zq#n$zq#o$zq#p$zq#q$zq#r$zq#s$zq#u$zq#w$zq#y$zq#z$zq'u$zq([$zq(m$zq!h$zq!V$zq's$zq#]$zqs$zq![$zq%f$zq!d$zq~P#.aO#h'faP'faR'fa['faa'fao'fa!i'fa!m'fa#O'fa#k'fa#l'fa#m'fa#n'fa#o'fa#p'fa#q'fa#r'fa#s'fa#u'fa#w'fa#y'fa#z'fa'u'fa(['fa(m'fa!h'fa!V'fa's'fas'fa!['fa%f'fa!d'fa~P&/pO#h'haP'haR'ha['haa'hao'ha!i'ha!m'ha#O'ha#k'ha#l'ha#m'ha#n'ha#o'ha#p'ha#q'ha#r'ha#s'ha#u'ha#w'ha#y'ha#z'ha'u'ha(['ha(m'ha!h'ha!V'ha's'has'ha!['ha%f'ha!d'ha~P&0cO#h$|qP$|qR$|q[$|qa$|qo$|q!Y$|q!i$|q!m$|q#O$|q#k$|q#l$|q#m$|q#n$|q#o$|q#p$|q#q$|q#r$|q#s$|q#u$|q#w$|q#y$|q#z$|q'u$|q([$|q(m$|q!h$|q!V$|q's$|q#]$|qs$|q![$|q%f$|q!d$|q~P#.aO!Y'Ui!h'Ui~P!9mO#}#`q!Y#`q!Z#`q~P#AbO(t$}OP%^aR%^a[%^ao%^a!i%^a!m%^a#O%^a#k%^a#l%^a#m%^a#n%^a#o%^a#p%^a#q%^a#r%^a#s%^a#u%^a#w%^a#y%^a#z%^a#}%^a([%^a(m%^a!Y%^a!Z%^a~Ok%^a}%^a!P%^a(u%^a~P&CoO(u%POP%`aR%`a[%`ao%`a!i%`a!m%`a#O%`a#k%`a#l%`a#m%`a#n%`a#o%`a#p%`a#q%`a#r%`a#s%`a#u%`a#w%`a#y%`a#z%`a#}%`a([%`a(m%`a!Y%`a!Z%`a~Ok%`a}%`a!P%`a(t%`a~P&EsOk=VO})zO!P){O(u%PO~P&CoOk=VO})zO!P){O(t$}O~P&EsOR0`O}0`O!P0aO#P$dOPza[zakzaoza!iza!mza#Oza#kza#lza#mza#nza#oza#pza#qza#rza#sza#uza#wza#yza#zza#}za([za(mza(tza(uza!Yza!Zza~O})zO!P){OP$qaR$qa[$qak$qao$qa!i$qa!m$qa#O$qa#k$qa#l$qa#m$qa#n$qa#o$qa#p$qa#q$qa#r$qa#s$qa#u$qa#w$qa#y$qa#z$qa#}$qa([$qa(m$qa(t$qa(u$qa!Y$qa!Z$qa~O})zO!P){OP$saR$sa[$sak$sao$sa!i$sa!m$sa#O$sa#k$sa#l$sa#m$sa#n$sa#o$sa#p$sa#q$sa#r$sa#s$sa#u$sa#w$sa#y$sa#z$sa#}$sa([$sa(m$sa(t$sa(u$sa!Y$sa!Z$sa~Ok=VO})zO!P){O(t$}O(u%PO~OP%RaR%Ra[%Rao%Ra!i%Ra!m%Ra#O%Ra#k%Ra#l%Ra#m%Ra#n%Ra#o%Ra#p%Ra#q%Ra#r%Ra#s%Ra#u%Ra#w%Ra#y%Ra#z%Ra#}%Ra([%Ra(m%Ra!Y%Ra!Z%Ra~P&NlO#}$lq!Y$lq!Z$lq~P#AbO#}$mq!Y$mq!Z$mq~P#AbO!Z9SO~O#}9TO~P!0kO!d#vO!Y'ai!h'ai~O!d#vO(m'mO!Y'ai!h'ai~O!Y/hO!h(zq~O!V'ci!Y'ci~P#.aO!Y/pO!V({q~Oo9[O!d#vO(m'mO~O!V9]O~P#.aO!V9]O~O!d#vO#s9bO~Og(Yy!Y(Yy~P!0kO!Y'ja!['ja~P#.aOa%Yq![%Yq'u%Yq!Y%Yq~P#.aO[9dO~O!Y0wO!Z)Tq~O#]9hO!Y'la!Z'la~O!Y5^O!Z)Qi~P#AbO!P4hO~O![1aO%f9lO~O(QTO(TUO(`9qO~O!Y1lO!Z)Rq~O!h9tO~O!h9uO~O!h9vO~O!h9vO~P%[O#]9yO!Y#ey!Z#ey~O!Y#ey!Z#ey~P#AbO%f:OO~P&2lO![']O%f:OO~O#}#{y!Y#{y!Z#{y~P#AbOP$ziR$zi[$zio$zi!i$zi!m$zi#O$zi#k$zi#l$zi#m$zi#n$zi#o$zi#p$zi#q$zi#r$zi#s$zi#u$zi#w$zi#y$zi#z$zi#}$zi([$zi(m$zi!Y$zi!Z$zi~P&NlO})zO!P){O(u%POP'eaR'ea['eak'eao'ea!i'ea!m'ea#O'ea#k'ea#l'ea#m'ea#n'ea#o'ea#p'ea#q'ea#r'ea#s'ea#u'ea#w'ea#y'ea#z'ea#}'ea(['ea(m'ea(t'ea!Y'ea!Z'ea~O})zO!P){OP'gaR'ga['gak'gao'ga!i'ga!m'ga#O'ga#k'ga#l'ga#m'ga#n'ga#o'ga#p'ga#q'ga#r'ga#s'ga#u'ga#w'ga#y'ga#z'ga#}'ga(['ga(m'ga(t'ga(u'ga!Y'ga!Z'ga~O(t$}OP%^iR%^i[%^ik%^io%^i}%^i!P%^i!i%^i!m%^i#O%^i#k%^i#l%^i#m%^i#n%^i#o%^i#p%^i#q%^i#r%^i#s%^i#u%^i#w%^i#y%^i#z%^i#}%^i([%^i(m%^i(u%^i!Y%^i!Z%^i~O(u%POP%`iR%`i[%`ik%`io%`i}%`i!P%`i!i%`i!m%`i#O%`i#k%`i#l%`i#m%`i#n%`i#o%`i#p%`i#q%`i#r%`i#s%`i#u%`i#w%`i#y%`i#z%`i#}%`i([%`i(m%`i(t%`i!Y%`i!Z%`i~O#}$my!Y$my!Z$my~P#AbO#}#`y!Y#`y!Z#`y~P#AbO!d#vO!Y'aq!h'aq~O!Y/hO!h(zy~O!V'cq!Y'cq~P#.aOo:YO!d#vO(m'mO~O!V:ZO~P#.aO!V:ZO~O!Y0wO!Z)Ty~O!Y5^O!Z)Qq~O![1aO%f:cO~O!h:fO~O%f:kO~P&2lOP$zqR$zq[$zqo$zq!i$zq!m$zq#O$zq#k$zq#l$zq#m$zq#n$zq#o$zq#p$zq#q$zq#r$zq#s$zq#u$zq#w$zq#y$zq#z$zq#}$zq([$zq(m$zq!Y$zq!Z$zq~P&NlO})zO!P){O(u%POP'faR'fa['fak'fao'fa!i'fa!m'fa#O'fa#k'fa#l'fa#m'fa#n'fa#o'fa#p'fa#q'fa#r'fa#s'fa#u'fa#w'fa#y'fa#z'fa#}'fa(['fa(m'fa(t'fa!Y'fa!Z'fa~O})zO!P){OP'haR'ha['hak'hao'ha!i'ha!m'ha#O'ha#k'ha#l'ha#m'ha#n'ha#o'ha#p'ha#q'ha#r'ha#s'ha#u'ha#w'ha#y'ha#z'ha#}'ha(['ha(m'ha(t'ha(u'ha!Y'ha!Z'ha~OP$|qR$|q[$|qo$|q!i$|q!m$|q#O$|q#k$|q#l$|q#m$|q#n$|q#o$|q#p$|q#q$|q#r$|q#s$|q#u$|q#w$|q#y$|q#z$|q#}$|q([$|q(m$|q!Y$|q!Z$|q~P&NlOg%b!Z!Y%b!Z#]%b!Z#}%b!Z~P!0kOo:oO!d#vO(m'mO~O!V:pO~P#.aO!Y'lq!Z'lq~P#AbO!Y#e!Z!Z#e!Z~P#AbO#h%b!ZP%b!ZR%b!Z[%b!Za%b!Zo%b!Z!Y%b!Z!i%b!Z!m%b!Z#O%b!Z#k%b!Z#l%b!Z#m%b!Z#n%b!Z#o%b!Z#p%b!Z#q%b!Z#r%b!Z#s%b!Z#u%b!Z#w%b!Z#y%b!Z#z%b!Z'u%b!Z([%b!Z(m%b!Z!h%b!Z!V%b!Z's%b!Z#]%b!Zs%b!Z![%b!Z%f%b!Z!d%b!Z~P#.aOo:xO!d#vO(m'mO~OP%b!ZR%b!Z[%b!Zo%b!Z!i%b!Z!m%b!Z#O%b!Z#k%b!Z#l%b!Z#m%b!Z#n%b!Z#o%b!Z#p%b!Z#q%b!Z#r%b!Z#s%b!Z#u%b!Z#w%b!Z#y%b!Z#z%b!Z#}%b!Z([%b!Z(m%b!Z!Y%b!Z!Z%b!Z~P&NlOs(aX~P1qO}%pO~P!(oO(P!lO~P!(oO!VfX!YfX#]fX~P&+QOP]XR]X[]Xo]X}]X!P]X!Y]X!YfX!i]X!m]X#O]X#P]X#]]X#]fX#hfX#k]X#l]X#m]X#n]X#o]X#p]X#q]X#r]X#s]X#u]X#w]X#y]X#z]X$P]X([]X(m]X(t]X(u]X~O!dfX!h]X!hfX(mfX~P'BxOP;POQ;POSfOd<zOe!iOmkOo;POpkOqkOwkOy;PO{;PO!PWO!TkO!UkO![XO!f;SO!iZO!l;PO!m;PO!n;PO!p;TO!r;WO!u!hO$V!kO(O)XO(QTO(TUO([VO(j[O(y<xO~O!Y;dO!Z$oa~Oh%VOm%WOo%XOp$tOq$tOw%YOy%ZO{;oO!P${O![$|O!f=PO!i$xO#g;uO$V%_O$r;qO$t;sO$w%`O(O(rO(QTO(TUO([$uO(t$}O(u%PO~O#t)`O~P'GnOo!bX(m!bX~P# ZO!Z]X!ZfX~P'BxO!VfX!V$xX!YfX!Y$xX#]fX~P!/gO#h;XO~O!d#vO#h;XO~O#];iO~O#s;]O~O#];xO!Y(rX!Z(rX~O#];iO!Y(pX!Z(pX~O#h;yO~Og;{O~P!0kO#h<RO~O#h<SO~O!d#vO#h<TO~O!d#vO#h;yO~O#}<UO~P#AbO#h<VO~O#h<WO~O#h<]O~O#h<^O~O#h<_O~O#h<`O~O#}<aO~P!0kO#}<bO~P!0kO#P#Q#R#T#U#X#f#g#r(y$r$t$w%Z%e%f%g%n%p%s%t%v%x~'yT#l!U'w(P#mp#k#no}'x$['x(O$^(`~",goto:"$4Q)XPPPPPP)YPP)]P)nP+O/PPPPP5xPP6`PP<V?mP@QP@QPPP@QPBRP@QP@QP@QPBVPB[PByPGrPPPGvPPPPGvJxPPPKOKzPGvPGvPPNYGvPPPGvPGvP!!aGvP!%v!&{!'UP!'x!'|!'x!+YPPPPPPP!+y!&{PP!,Z!-gP!0jGvGv!0o!3z!8b!8b!<`PPP!<hGvPPPPPPPPPPP!?vP!ATPPGv!BfPGvPGvGvGvGvGvPGv!CxP!GRP!JWP!J[!Jf!Jj!JjP!GOP!Jn!JnP!MsP!MwGvGv!M}##RBV@QP@QP@Q@QP#$_@Q@Q#&j@Q#)Z@Q#+`@Q@Q#,O#.]#.]#.b#.k#.]#.wP#.]P@Q#/a@Q#3S@Q@Q5xPPP#6{PPP#7f#7fP#7fP#7|#7fPP#8SP#7yP#7y#8g#7y#9R#9X5u)]#9[)]P#9c#9c#9cP)]P)]P)]P)]PP)]P#9i#9lP#9l)]P#9pP#9sP)]P)]P)]P)]P)]P)])]PP#9y#:P#:[#:b#:h#:n#:t#;S#;Y#;d#;j#;t#;z#<[#<b#=S#=f#=l#=r#>Q#>g#@V#@e#@l#BR#Ba#C|#D[#Db#Dh#Dn#Dx#EO#EU#E`#Er#ExPPPPPPPPPP#FOPPPPPPP#Fs#Iz#KZ#Kb#KjPPP$!sP$!|$%t$,^$,a$,d$-P$-S$-Z$-cP$-i$-lP$.Y$.^$/U$0d$0i$1PPP$1U$1[$1`P$1c$1g$1k$2a$2x$3a$3e$3h$3k$3q$3t$3x$3|R!|RoqOXst!Z#d%k&o&q&r&t,k,p1|2PY!vQ']-]1a5eQ%rvQ%zyQ&R|Q&g!VS'T!e-TQ'c!iS'i!r!yU*e$|*V*jQ+i%{Q+v&TQ,[&aQ-Z'[Q-e'dQ-m'jQ0R*lQ1k,]R;v;T%QdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V,h,k,p-a-i-w-}.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3^5b5m5}6O6R6f8R8X8h8rS#q];Q!r)Z$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{U*y%[;n;oQ+n%}Q,^&dQ,e&lQ0m+aQ0q+cQ0|+oQ1s,cQ3Q._Q5O0wQ5t1lQ6r3UQ7s5PR8x6t'OkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{t!nQ!r!v!y!z'T'[']'i'j'k-T-Z-]-m1a5e5g$|$ti#v$b$c$d$x${%O%Q%]%^%b)u){)}*P*R*U*[*b*r*s+`+c+z+}.^.w/]/e/o/p/r0V0X0d1W1Z1c3T3}4Y4b4m4u4x5l6p7_7h8U8u9T9b9l:O:c:k;g;h;j;k;l;m;p;q;r;s;t;u;|;}<O<P<R<S<V<W<X<Y<Z<[<]<^<a<b<x=Q=R=U=VQ&U|Q'R!eU'X%g*V-WQ+n%}Q,^&dQ0c*|Q0|+oQ1R+uQ1r,bQ1s,cQ5O0wQ5X1TQ5t1lQ5w1nQ5x1qQ7s5PQ7v5UQ8a5zQ9g7wR9r8^rnOXst!V!Z#d%k&f&o&q&r&t,k,p1|2PR,`&h&x^OPXYstuvwz!Z!`!g!j!o#S#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'_'o(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<z<{[#]WZ#W#Z'U(P!b%hm#h#i#l$x%c%f(Y(d(e(f*U*Y*]+T+U+W,g,}-{.R.S.T.V/e/h2U2|2}4Q6[6mQ%uxQ%yyS&O|&TQ&[!TQ'`!hQ'b!iQ(m#sS+h%z%{Q+l%}Q,V&_Q,Z&aS-d'c'dQ.a(nQ0u+iQ0{+oQ0}+pQ1Q+tQ1f,WS1j,[,]Q2n-eQ4}0wQ5R0zQ5W1SQ5s1kQ7r5PQ7u5TQ9c7qR:^9d!O$zi$d%O%Q%]%^%b)}*P*[*r*s.w/o0V0X0d3}4m9T<x=Q=R!S%wy!i!u%y%z%{'S'b'c'd'h'r*d+h+i-Q-d-e-l/y0u2g2n2u4dQ+b%uQ+{&XQ,O&YQ,Y&aQ.`(mQ1e,VU1i,Z,[,]Q3V.aQ5n1fS5r1j1kQ8]5s#^<|#v$b$c$x${)u){*R*U*b+`+c+z+}.^/]/e/p/r1W1Z1c3T4Y4b4u4x5l6p7_7h8U8u9b9l:O:c:k;j;l;p;r;t;|<O<R<V<X<Z<]<a=U=Vo<};g;h;k;m;q;s;u;}<P<S<W<Y<[<^<bW%Ti%V*t<xS&X!Q&fQ&Y!RQ&Z!SR+y&V$}%Si#v$b$c$d$x${%O%Q%]%^%b)u){)}*P*R*U*[*b*r*s+`+c+z+}.^.w/]/e/o/p/r0V0X0d1W1Z1c3T3}4Y4b4m4u4x5l6p7_7h8U8u9T9b9l:O:c:k;g;h;j;k;l;m;p;q;r;s;t;u;|;}<O<P<R<S<V<W<X<Y<Z<[<]<^<a<b<x=Q=R=U=VT)v$u)wV*y%[;n;oW'X!e%g*V-WS(y#y#zQ+]%pQ+s&QS.Y(i(jQ1[,PQ4n0`R7{5^'OkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{$i$^c#Y#e%o%q%s(O(U(p(u(})O)P)Q)R)S)T)U)V)W)Y)[)^)c)m+^+r-R-p-u-z-|.k.n.r.t.u.v/X0e2]2`2p2w3]3b3c3d3e3f3g3h3i3j3k3l3m3n3q3r3y4r4{6_6e6j6y6z7T7U7}8l8p8z9Q9R9{:`:g;R<oT#TV#U'PkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{Q'V!eR2c-Tv!nQ!e!r!v!y!z'T'[']'i'j'k-T-Z-]-m1a5e5gU*d$|*V*jS/y*e*lQ0S*mQ1^,RQ4d0RR4g0UnqOXst!Z#d%k&o&q&r&t,k,p1|2PQ&v!^Q's!xS(o#u;XQ+f%xQ,T&[Q,U&^Q-b'aQ-o'lS.j(t;yS0f+R<TQ0s+gQ1`,SQ2T,rQ2V,sQ2_-OQ2l-cQ2o-gS4s0g<_Q4y0tS4|0v<`Q6^2aQ6b2mQ6g2tQ7p4zQ8m6`Q8n6cQ8q6hR9x8j$d$]c#Y#e%q%s(O(U(p(u(})O)P)Q)R)S)T)U)V)W)Y)[)^)c)m+^+r-R-p-u-z-|.k.n.r.u.v/X0e2]2`2p2w3]3b3c3d3e3f3g3h3i3j3k3l3m3n3q3r3y4r4{6_6e6j6y6z7T7U7}8l8p8z9Q9R9{:`:g;R<oS(k#p'fQ({#zS+[%o.tS.Z(j(lR3O.['OkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{S#q];QQ&q!XQ&r!YQ&t![Q&u!]R1{,nQ'^!hQ+_%uQ-`'`S.](m+bQ2j-_W3S.`.a0l0nQ6a2kW6n3P3R3V4wU8t6o6q6sU9}8v8w8yS:i9|:PQ:t:jR:z:uU!wQ']-]T5c1a5e!Q_OXZ`st!V!Z#d#h%c%k&f&h&o&q&r&t(f,k,p.S1|2P]!pQ!r']-]1a5eT#q];Q%[{OPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&l&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V+a,h,k,p-a-i-w-}._.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3U3^5b5m5}6O6R6f6t8R8X8h8rS(y#y#zS.Y(i(j!s<f$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{U$fd)Z,eS(l#p'fU*q%R(s3pU0b*x.f7PQ4w0mQ6o3QQ8w6rR:P8xm!tQ!r!v!y!z']'i'j'k-]-m1a5e5gQ'q!uS(b#g1vS-k'h'tQ/k*XQ/w*dQ2v-nQ4U/lS4_/x0SQ7Z4PS7f4e4gQ9V7[Q9Z7cQ9`7iS:X9[9]S:n:Y:ZS:w:o:pR:}:xQ#wbQ'p!uS(a#g1vS(c#m+QQ+S%dQ+d%vQ+j%|U-j'h'q'tQ.O(bQ/j*XQ/v*dQ/|*gQ0r+eQ1g,XS2s-k-nQ2{.WS4T/k/lS4^/w0SQ4a/{Q4c/}Q5p1hQ6i2vQ7Y4PQ7^4US7b4_4gQ7g4fQ8Z5qS9U7Z7[Q9Y7cQ9^7fQ9a7jQ9o8[Q:V9VS:W9Z9]Q:[9`Q:e9pS:m:X:ZS:v:n:pQ:|:wQ;O:}Q<i<dQ<t<mR<u<nV!wQ']-]%[aOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&l&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V+a,h,k,p-a-i-w-}._.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3U3^5b5m5}6O6R6f6t8R8X8h8rS#wz!j!r<c$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{R<i<z%[bOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&l&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V+a,h,k,p-a-i-w-}._.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3U3^5b5m5}6O6R6f6t8R8X8h8rQ%dj!S%vy!i!u%y%z%{'S'b'c'd'h'r*d+h+i-Q-d-e-l/y0u2g2n2u4dS%|z!jQ+e%wQ,X&aW1h,Y,Z,[,]U5q1i1j1kS8[5r5sQ9p8]!r<d$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{Q<m<yR<n<z%OeOPXYstuvw!Z!`!g!o#S#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&o&q&r&t&x'Q'_'o(R(X(`(t(v(z)y+R+V+a,h,k,p-a-i-w-}._.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3U3^5b5m5}6O6R6f6t8R8X8h8rY#bWZ#W#Z(P!b%hm#h#i#l$x%c%f(Y(d(e(f*U*Y*]+T+U+W,g,}-{.R.S.T.V/e/h2U2|2}4Q6[6mQ,f&l!p<e$Z$n)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{R<h'UU'Y!e%g*VR2e-W%QdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V,h,k,p-a-i-w-}.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3^5b5m5}6O6R6f8R8X8h8r!r)Z$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{Q,e&lQ0m+aQ3Q._Q6r3UR8x6t!b$Tc#Y%o(O(U(p(u)V)W)[)c+r-p-u-z-|.k.n/X0e2p2w3]3m4r4{6e6j6y8p9{;R!P;_)Y)m-R.t2]2`3b3k3l3q3y6_6z7T7U7}8l8z9Q9R:`:g<o!f$Vc#Y%o(O(U(p(u)S)T)V)W)[)c+r-p-u-z-|.k.n/X0e2p2w3]3m4r4{6e6j6y8p9{;R!T;a)Y)m-R.t2]2`3b3h3i3k3l3q3y6_6z7T7U7}8l8z9Q9R:`:g<o!^$Zc#Y%o(O(U(p(u)[)c+r-p-u-z-|.k.n/X0e2p2w3]3m4r4{6e6j6y8p9{;RQ3}/cz<{)Y)m-R.t2]2`3b3q3y6_6z7T7U7}8l8z9Q9R:`:g<oQ=Q=SR=R=T'OkOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{S$oh$pR3v.|'VgOPWXYZhstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n$p%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.|.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{T$kf$qQ$ifS)f$l)jR)r$qT$jf$qT)h$l)j'VhOPWXYZhstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$Z$_$a$e$n$p%k%r&P&h&k&l&o&q&r&t&x'Q'U'_'o(P(R(X(`(t(v(z)o)y+R+V+a,h,k,p,|-P-a-i-w-}._.l.s.|.}/f0a0g0v1d1t1u1w1y1|2P2R2b2r2x3U3^3u5`5b5m5}6O6R6]6f6t8R8X8h8r9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{T$oh$pQ$rhR)q$p%[jOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&l&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V+a,h,k,p-a-i-w-}._.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3U3^5b5m5}6O6R6f6t8R8X8h8r!s<y$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{<T<U<_<`<{#elOPXZst!Z!`!o#S#d#o#{$n%k&h&k&l&o&q&r&t&x'Q'_(z)o+V+a,h,k,p-a._.}/f0a1d1t1u1w1y1|2P2R3U3u5b5m5}6O6R6t8R8X8h!O%Ri$d%O%Q%]%^%b)}*P*[*r*s.w/o0V0X0d3}4m9T<x=Q=R#^(s#v$b$c$x${)u){*R*U*b+`+c+z+}.^/]/e/p/r1W1Z1c3T4Y4b4u4x5l6p7_7h8U8u9b9l:O:c:k;j;l;p;r;t;|<O<R<V<X<Z<]<a=U=VQ*}%`Q/Y)zo3p;g;h;k;m;q;s;u;}<P<S<W<Y<[<^<b!O$yi$d%O%Q%]%^%b)}*P*[*r*s.w/o0V0X0d3}4m9T<x=Q=RQ*^$zU*g$|*V*jQ+O%aQ/}*h#^<k#v$b$c$x${)u){*R*U*b+`+c+z+}.^/]/e/p/r1W1Z1c3T4Y4b4u4x5l6p7_7h8U8u9b9l:O:c:k;j;l;p;r;t;|<O<R<V<X<Z<]<a=U=Vn<l;g;h;k;m;q;s;u;}<P<S<W<Y<[<^<bQ<p<|Q<q<}Q<r=OR<s=P!O%Ri$d%O%Q%]%^%b)}*P*[*r*s.w/o0V0X0d3}4m9T<x=Q=R#^(s#v$b$c$x${)u){*R*U*b+`+c+z+}.^/]/e/p/r1W1Z1c3T4Y4b4u4x5l6p7_7h8U8u9b9l:O:c:k;j;l;p;r;t;|<O<R<V<X<Z<]<a=U=Vo3p;g;h;k;m;q;s;u;}<P<S<W<Y<[<^<bnoOXst!Z#d%k&o&q&r&t,k,p1|2PS*a${*UQ,y&{Q,z&}R4X/p$|%Si#v$b$c$d$x${%O%Q%]%^%b)u){)}*P*R*U*[*b*r*s+`+c+z+}.^.w/]/e/o/p/r0V0X0d1W1Z1c3T3}4Y4b4m4u4x5l6p7_7h8U8u9T9b9l:O:c:k;g;h;j;k;l;m;p;q;r;s;t;u;|;}<O<P<R<S<V<W<X<Y<Z<[<]<^<a<b<x=Q=R=U=VQ+|&YQ1Y,OQ5[1XR7z5]V*i$|*V*jU*i$|*V*jT5d1a5eU/{*f/f5bS4f0T8RR7j4hQ+d%vQ/|*gQ0r+eQ1g,XQ5p1hQ8Z5qQ9o8[R:e9p!O%Oi$d%O%Q%]%^%b)}*P*[*r*s.w/o0V0X0d3}4m9T<x=Q=Rr)}$v)a*O*p+P/n0Z0[3s4V4q7X7k:U<j<v<wS0V*o0W#^;j#v$b$c$x${)u){*R*U*b+`+c+z+}.^/]/e/p/r1W1Z1c3T4Y4b4u4x5l6p7_7h8U8u9b9l:O:c:k;j;l;p;r;t;|<O<R<V<X<Z<]<a=U=Vn;k;g;h;k;m;q;s;u;}<P<S<W<Y<[<^<b!`;|(q)_*W*`.b.e.i/U/Z/c/s0k1V1X3Y4W4[5Z5]6u6x7`7d7m7o9X9_:]:l=S=T`;}3o6{7O7S8{:Q:T:{S<X.d3ZT<Y6}9O!O%Qi$d%O%Q%]%^%b)}*P*[*r*s.w/o0V0X0d3}4m9T<x=Q=Rv*P$v)a*Q*o+P/_/n0Z0[3s4V4i4q7X7k:U<j<v<wS0X*p0Y#^;l#v$b$c$x${)u){*R*U*b+`+c+z+}.^/]/e/p/r1W1Z1c3T4Y4b4u4x5l6p7_7h8U8u9b9l:O:c:k;j;l;p;r;t;|<O<R<V<X<Z<]<a=U=Vn;m;g;h;k;m;q;s;u;}<P<S<W<Y<[<^<b!d<O(q)_*W*`.c.d.i/U/Z/c/s0k1V1X3W3Y4W4[5Z5]6u6v6x7`7d7m7o9X9_:]:l=S=Td<P3o6|6}7S8{8|:Q:R:T:{S<Z.e3[T<[7O9PrnOXst!V!Z#d%k&f&o&q&r&t,k,p1|2PQ&c!UR,h&lrnOXst!V!Z#d%k&f&o&q&r&t,k,p1|2PR&c!UQ,Q&ZR1U+ysnOXst!V!Z#d%k&f&o&q&r&t,k,p1|2PQ1b,VS5k1e1fU8T5i5j5nS9k8V8WS:a9j9mQ:q:bR:y:rQ&j!VR,a&fR5w1nS&O|&TR0}+pQ&o!WR,k&pR,q&uT1},p2PR,u&vQ,t&vR2W,uQ'v!{R-q'vSsOtQ#dXT%ns#dQ#OTR'x#OQ#RUR'z#RQ)w$uR/V)wQ#UVR'|#UQ#XWU(S#X(T-xQ(T#YR-x(UQ-U'VR2d-UQ.m(uS3_.m3`R3`.nQ-]']R2h-]Y!rQ']-]1a5eR'g!rQ.x)aR3t.xU#_W%f*UU(Z#_([-yQ([#`R-y(VQ-X'YR2f-Xt`OXst!V!Z#d%k&f&h&o&q&r&t,k,p1|2PS#hZ%cU#r`#h.SR.S(fQ(g#jQ.P(cW.X(g.P2y6kQ2y.QR6k2zQ)j$lR/O)jQ$phR)p$pQ$`cU)]$`-t;eQ-t;RR;e)mQ/i*XW4R/i4S7]9WU4S/j/k/lS7]4T4UR9W7^$Z)|$v(q)_)a*W*`*o*p*z*{+P.d.e.g.h.i/U/Z/_/a/c/n/s0Z0[0k1V1X3W3X3Y3o3s4V4W4[4i4k4q5Z5]6u6v6w6x6}7O7Q7R7S7X7`7d7k7m7o8{8|8}9X9_:Q:R:S:T:U:]:l:{<j<v<w=S=TQ/q*`U4Z/q4]7aQ4]/sR7a4[S*j$|*VR0P*jr*O$v)a*o*p+P/n0Z0[3s4V4q7X7k:U<j<v<w!`.b(q)_*W*`.d.e.i/U/Z/c/s0k1V1X3Y4W4[5Z5]6u6x7`7d7m7o9X9_:]:l=S=TU/`*O.b6{a6{3o6}7O7S8{:Q:T:{Q0W*oQ3Z.dU4j0W3Z9OR9O6}v*Q$v)a*o*p+P/_/n0Z0[3s4V4i4q7X7k:U<j<v<w!d.c(q)_*W*`.d.e.i/U/Z/c/s0k1V1X3W3Y4W4[5Z5]6u6v6x7`7d7m7o9X9_:]:l=S=TU/b*Q.c6|e6|3o6}7O7S8{8|:Q:R:T:{Q0Y*pQ3[.eU4l0Y3[9PR9P7OQ*u%UR0^*uQ4v0kR7n4vQ+X%iR0j+XQ5_1[S7|5_9iR9i7}Q,S&[R1_,SQ5e1aR8P5eQ1m,^S5u1m8_R8_5wQ0x+lW5Q0x5S7t9eQ5S0{Q7t5RR9e7uQ+q&OR1O+qQ2P,pR6V2PYrOXst#dQ&s!ZQ+Z%kQ,j&oQ,l&qQ,m&rQ,o&tQ1z,kS1},p2PR6U1|Q%mpQ&w!_Q&z!aQ&|!bQ'O!cQ'n!uQ+Y%jQ+f%xQ+x&UQ,`&jQ,w&yW-h'h'p'q'tQ-o'lQ0O*iQ0s+gS1p,a,dQ2X,vQ2Y,yQ2Z,zQ2o-gW2q-j-k-n-pQ4y0tQ5V1RQ5Y1VQ5o1gQ5y1rQ6T1{U6d2p2s2vQ6g2tQ7p4zQ7x5XQ7y5ZQ8O5dQ8Y5pQ8`5xS8o6e6iQ8q6hQ9f7vQ9n8ZQ9s8aQ9z8pQ:_9gQ:d9oQ:h9{R:s:eQ%xyQ'a!iQ'l!uU+g%y%z%{Q-O'SU-c'b'c'dS-g'h'rQ/u*dS0t+h+iQ2a-QS2m-d-eQ2t-lQ4`/yQ4z0uQ6`2gQ6c2nQ6h2uR7e4dS$wi<xR*v%VU%Ui%V<xR0]*tQ$viS(q#v+cS)_$b$cQ)a$dQ*W$xS*`${*UQ*o%OQ*p%QQ*z%]Q*{%^Q+P%bQ.d;jQ.e;lQ.g;pQ.h;rQ.i;tQ/U)uS/Z){/]Q/_)}Q/a*PQ/c*RQ/n*[S/s*b/eQ0Z*rQ0[*sh0k+`.^1c3T5l6p8U8u9l:O:c:kQ1V+zQ1X+}Q3W;|Q3X<OQ3Y<RS3o;g;hQ3s.wQ4V/oQ4W/pQ4[/rQ4i0VQ4k0XQ4q0dQ5Z1WQ5]1ZQ6u<VQ6v<XQ6w<ZQ6x<]Q6};kQ7O;mQ7Q;qQ7R;sQ7S;uQ7X3}Q7`4YQ7d4bQ7k4mQ7m4uQ7o4xQ8{<SQ8|;}Q8}<PQ9X7_Q9_7hQ:Q<WQ:R<YQ:S<[Q:T<^Q:U9TQ:]9bQ:l<aQ:{<bQ<j<xQ<v=QQ<w=RQ=S=UR=T=VQ*x%[Q.f;nR7P;onpOXst!Z#d%k&o&q&r&t,k,p1|2PQ!fPS#fZ#oQ&y!`U'e!o5b8RQ'{#SQ(|#{Q)n$nS,d&h&kQ,i&lQ,v&xQ,{'QQ-_'_Q.p(zQ/S)oS0h+V/fQ0n+aQ1x,hQ2k-aQ3R._Q3x.}Q4o0aQ5j1dQ5{1tQ5|1uQ6Q1wQ6S1yQ6X2RQ6s3UQ7V3uQ8W5mQ8d5}Q8e6OQ8g6RQ8y6tQ9m8XR9w8h#YcOPXZst!Z!`!o#d#o#{%k&h&k&l&o&q&r&t&x'Q'_(z+V+a,h,k,p-a._/f0a1d1t1u1w1y1|2P2R3U5b5m5}6O6R6t8R8X8hQ#YWQ#eYQ%ouQ%qvS%sw!gS(O#W(RQ(U#ZQ(p#uQ(u#xQ(}$OQ)O$PQ)P$QQ)Q$RQ)R$SQ)S$TQ)T$UQ)U$VQ)V$WQ)W$XQ)Y$ZQ)[$_Q)^$aQ)c$eW)m$n)o.}3uQ+^%rQ+r&PS-R'U2bQ-p'oS-u(P-wQ-z(XQ-|(`Q.k(tQ.n(vQ.r;PQ.t;SQ.u;TQ.v;WQ/X)yQ0e+RQ2],|Q2`-PQ2p-iQ2w-}Q3].lQ3b;XQ3c;YQ3d;ZQ3e;[Q3f;]Q3g;^Q3h;_Q3i;`Q3j;aQ3k;bQ3l;cQ3m.sQ3n;fQ3q;iQ3r;vQ3y;dQ4r0gQ4{0vQ6_;xQ6e2rQ6j2xQ6y3^Q6z;yQ7T;{Q7U<TQ7}5`Q8l6]Q8p6fQ8z<UQ9Q<_Q9R<`Q9{8rQ:`9hQ:g9yQ;R#SR<o<{R#[WR'W!el!tQ!r!v!y!z']'i'j'k-]-m1a5e5gS'S!e-TS-Q'T'[R2g-ZR(w#xQ!fQT-[']-]]!qQ!r']-]1a5eQ#p]R'f;QR)b$dY!uQ']-]1a5eQ'h!rS'r!v!yS't!z5gS-l'i'jQ-n'kR2u-mT#kZ%cS#jZ%cS%im,gU(c#h#i#lS.Q(d(eQ.U(fQ0i+WQ2z.RU2{.S.T.VS6l2|2}R8s6md#^W#W#Z%f(P(Y*U+T-{/er#gZm#h#i#l%c(d(e(f+W.R.S.T.V2|2}6mS*X$x*]Q/l*YQ1v,gQ2^,}Q4P/hQ6Z2UQ7[4QQ8k6[T<g'U+UV#aW%f*UU#`W%f*US(Q#W(YU(V#Z+T/eS-S'U+UT-v(P-{V'Z!e%g*VQ$lfR)t$qT)i$l)jR3w.|T*Z$x*]T*c${*UQ0l+`Q3P.^Q5i1cQ6q3TQ8V5lQ8v6pQ9j8UQ9|8uQ:b9lQ:j:OQ:r:cR:u:knqOXst!Z#d%k&o&q&r&t,k,p1|2PQ&i!VR,`&ftmOXst!U!V!Z#d%k&f&o&q&r&t,k,p1|2PR,g&lT%jm,gR1],PR,_&dQ&S|R+w&TR+m%}T&m!W&pT&n!W&pT2O,p2P",nodeNames:"⚠ ArithOp ArithOp ?. JSXStartTag LineComment BlockComment Script Hashbang ExportDeclaration export Star as VariableName String Escape from ; default FunctionDeclaration async function VariableDefinition > < TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:376,context:i$t,nodeProps:[["isolate",-8,5,6,14,34,36,48,50,52,""],["group",-26,9,17,19,65,204,208,212,213,215,218,221,231,233,239,241,243,245,248,254,260,262,264,266,268,270,271,"Statement",-34,13,14,29,32,33,39,48,51,52,54,59,67,69,73,77,79,81,82,107,108,117,118,135,138,140,141,142,143,144,146,147,166,167,169,"Expression",-23,28,30,34,38,40,42,171,173,175,176,178,179,180,182,183,184,186,187,188,198,200,202,203,"Type",-3,85,100,106,"ClassItem"],["openedBy",23,"<",35,"InterpolationStart",53,"[",57,"{",70,"(",159,"JSXStartCloseTag"],["closedBy",24,">",37,"InterpolationEnd",47,"]",58,"}",71,")",164,"JSXEndTag"]],propSources:[u$t],skippedNodes:[0,5,6,274],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$<r#p#q$=h#q#r$>x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$h&j(U!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(U!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$h&j(RpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(RpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z07[+rq$h&j(Rp(U!b'w0/lOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z07[.ST(S#S$h&j'x0/lO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c07[.n_$h&j(Rp(U!b'x0/lOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)3p/x`$h&j!m),Q(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW1V`#u(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW2d_#u(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At3l_(Q':f$h&j(U!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$h&j(U!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$h&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$c`$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$c``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$c`$h&j(U!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(U!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$c`(U!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k%9[:hh$h&j(Rp(U!bOY%ZYZ&cZq%Zqr<Srs&}st%ZtuCruw%Zwx(rx!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;'SCr;'S;=`El<%lOCr(r<__WS$h&j(Rp(U!bOY<SYZ&cZr<Srs=^sw<Swx@nx!^<S!^!_Bm!_#O<S#O#P>`#P#o<S#o#pBm#p;'S<S;'S;=`Cl<%lO<S(Q=g]WS$h&j(U!bOY=^YZ&cZw=^wx>`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXWS$h&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSWSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWWS(U!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]WS$h&j(RpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWWS(RpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYWS(Rp(U!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%l<S%9[C}i$h&j(j%1l(Rp(U!bOY%ZYZ&cZr%Zrs&}st%ZtuCruw%Zwx(rx!Q%Z!Q![Cr![!^%Z!^!_*g!_!c%Z!c!}Cr!}#O%Z#O#P&c#P#R%Z#R#SCr#S#T%Z#T#oCr#o#p*g#p$g%Z$g;'SCr;'S;=`El<%lOCr%9[EoP;=`<%lCr07[FRk$h&j(Rp(U!b$[#t(O,2j(`$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr+dHRk$h&j(Rp(U!b$[#tOY%ZYZ&cZr%Zrs&}st%ZtuGvuw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Gv![!^%Z!^!_*g!_!c%Z!c!}Gv!}#O%Z#O#P&c#P#R%Z#R#SGv#S#T%Z#T#oGv#o#p*g#p$g%Z$g;'SGv;'S;=`Iv<%lOGv+dIyP;=`<%lGv07[JPP;=`<%lEr(KWJ_`$h&j(Rp(U!b#m(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KWKl_$h&j$P(Ch(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z,#xLva(u+JY$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sv%ZvwM{wx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KWNW`$h&j#y(Ch(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At! c_(T';W$h&j(RpOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;'S!!b;'S;=`!'c<%lO!!b'l!!i_$h&j(RpOY!!bYZ!#hZr!!brs!#hsw!!bwx!$xx!^!!b!^!_!%z!_#O!!b#O#P!#h#P#o!!b#o#p!%z#p;'S!!b;'S;=`!'c<%lO!!b&z!#mX$h&jOw!#hwx6cx!^!#h!^!_!$Y!_#o!#h#o#p!$Y#p;'S!#h;'S;=`!$r<%lO!#h`!$]TOw!$Ywx7]x;'S!$Y;'S;=`!$l<%lO!$Y`!$oP;=`<%l!$Y&z!$uP;=`<%l!#h'l!%R]$c`$h&j(RpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(r!Q!&PZ(RpOY!%zYZ!$YZr!%zrs!$Ysw!%zwx!&rx#O!%z#O#P!$Y#P;'S!%z;'S;=`!']<%lO!%z!Q!&yU$c`(RpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)r!Q!'`P;=`<%l!%z'l!'fP;=`<%l!!b/5|!'t_!i/.^$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#&U!)O_!h!Lf$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z-!n!*[b$h&j(Rp(U!b(P%&f#n(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rxz%Zz{!+d{!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW!+o`$h&j(Rp(U!b#k(ChOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z+;x!,|`$h&j(Rp(U!bo+4YOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z,$U!.Z_!Y+Jf$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[!/ec$h&j(Rp(U!b}.2^OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!0p!P!Q%Z!Q![!3Y![!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#%|!0ya$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!2O!P!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z#%|!2Z_!X!L^$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!3eg$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!3Y![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S!3Y#S#X%Z#X#Y!4|#Y#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!5Vg$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx{%Z{|!6n|}%Z}!O!6n!O!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!6wc$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad!8_c$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![!8S![!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S!8S#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[!9uf$h&j(Rp(U!b#l(ChOY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcxz!;Zz{#-}{!P!;Z!P!Q#/d!Q!^!;Z!^!_#(i!_!`#7S!`!a#8i!a!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z?O!;fb$h&j(Rp(U!b!U7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z>^!<w`$h&j(U!b!U7`OY!<nYZ&cZw!<nwx!=yx!P!<n!P!Q!Eq!Q!^!<n!^!_!Gr!_!}!<n!}#O!KS#O#P!Dy#P#o!<n#o#p!Gr#p;'S!<n;'S;=`!L]<%lO!<n<z!>Q^$h&j!U7`OY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@c!_!}!=y!}#O!CW#O#P!Dy#P#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y<z!?Td$h&j!U7`O!^&c!_#W&c#W#X!>|#X#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#k!>|#k#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&c7`!@hX!U7`OY!@cZ!P!@c!P!Q!AT!Q!}!@c!}#O!Ar#O#P!Bq#P;'S!@c;'S;=`!CQ<%lO!@c7`!AYW!U7`#W#X!AT#Z#[!AT#]#^!AT#a#b!AT#g#h!AT#i#j!AT#j#k!AT#m#n!AT7`!AuVOY!ArZ#O!Ar#O#P!B[#P#Q!@c#Q;'S!Ar;'S;=`!Bk<%lO!Ar7`!B_SOY!ArZ;'S!Ar;'S;=`!Bk<%lO!Ar7`!BnP;=`<%l!Ar7`!BtSOY!@cZ;'S!@c;'S;=`!CQ<%lO!@c7`!CTP;=`<%l!@c<z!C][$h&jOY!CWYZ&cZ!^!CW!^!_!Ar!_#O!CW#O#P!DR#P#Q!=y#Q#o!CW#o#p!Ar#p;'S!CW;'S;=`!Ds<%lO!CW<z!DWX$h&jOY!CWYZ&cZ!^!CW!^!_!Ar!_#o!CW#o#p!Ar#p;'S!CW;'S;=`!Ds<%lO!CW<z!DvP;=`<%l!CW<z!EOX$h&jOY!=yYZ&cZ!^!=y!^!_!@c!_#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y<z!EnP;=`<%l!=y>^!Ezl$h&j(U!b!U7`OY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#W&}#W#X!Eq#X#Z&}#Z#[!Eq#[#]&}#]#^!Eq#^#a&}#a#b!Eq#b#g&}#g#h!Eq#h#i&}#i#j!Eq#j#k!Eq#k#m&}#m#n!Eq#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}8r!GyZ(U!b!U7`OY!GrZw!Grwx!@cx!P!Gr!P!Q!Hl!Q!}!Gr!}#O!JU#O#P!Bq#P;'S!Gr;'S;=`!J|<%lO!Gr8r!Hse(U!b!U7`OY'}Zw'}x#O'}#P#W'}#W#X!Hl#X#Z'}#Z#[!Hl#[#]'}#]#^!Hl#^#a'}#a#b!Hl#b#g'}#g#h!Hl#h#i'}#i#j!Hl#j#k!Hl#k#m'}#m#n!Hl#n;'S'};'S;=`(f<%lO'}8r!JZX(U!bOY!JUZw!JUwx!Arx#O!JU#O#P!B[#P#Q!Gr#Q;'S!JU;'S;=`!Jv<%lO!JU8r!JyP;=`<%l!JU8r!KPP;=`<%l!Gr>^!KZ^$h&j(U!bOY!KSYZ&cZw!KSwx!CWx!^!KS!^!_!JU!_#O!KS#O#P!DR#P#Q!<n#Q#o!KS#o#p!JU#p;'S!KS;'S;=`!LV<%lO!KS>^!LYP;=`<%l!KS>^!L`P;=`<%l!<n=l!Ll`$h&j(Rp!U7`OY!LcYZ&cZr!Lcrs!=ys!P!Lc!P!Q!Mn!Q!^!Lc!^!_# o!_!}!Lc!}#O#%P#O#P!Dy#P#o!Lc#o#p# o#p;'S!Lc;'S;=`#&Y<%lO!Lc=l!Mwl$h&j(Rp!U7`OY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#W(r#W#X!Mn#X#Z(r#Z#[!Mn#[#](r#]#^!Mn#^#a(r#a#b!Mn#b#g(r#g#h!Mn#h#i(r#i#j!Mn#j#k!Mn#k#m(r#m#n!Mn#n#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(r8Q# vZ(Rp!U7`OY# oZr# ors!@cs!P# o!P!Q#!i!Q!}# o!}#O#$R#O#P!Bq#P;'S# o;'S;=`#$y<%lO# o8Q#!pe(Rp!U7`OY)rZr)rs#O)r#P#W)r#W#X#!i#X#Z)r#Z#[#!i#[#])r#]#^#!i#^#a)r#a#b#!i#b#g)r#g#h#!i#h#i)r#i#j#!i#j#k#!i#k#m)r#m#n#!i#n;'S)r;'S;=`*Z<%lO)r8Q#$WX(RpOY#$RZr#$Rrs!Ars#O#$R#O#P!B[#P#Q# o#Q;'S#$R;'S;=`#$s<%lO#$R8Q#$vP;=`<%l#$R8Q#$|P;=`<%l# o=l#%W^$h&j(RpOY#%PYZ&cZr#%Prs!CWs!^#%P!^!_#$R!_#O#%P#O#P!DR#P#Q!Lc#Q#o#%P#o#p#$R#p;'S#%P;'S;=`#&S<%lO#%P=l#&VP;=`<%l#%P=l#&]P;=`<%l!Lc?O#&kn$h&j(Rp(U!b!U7`OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#W%Z#W#X#&`#X#Z%Z#Z#[#&`#[#]%Z#]#^#&`#^#a%Z#a#b#&`#b#g%Z#g#h#&`#h#i%Z#i#j#&`#j#k#&`#k#m%Z#m#n#&`#n#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z9d#(r](Rp(U!b!U7`OY#(iZr#(irs!Grsw#(iwx# ox!P#(i!P!Q#)k!Q!}#(i!}#O#+`#O#P!Bq#P;'S#(i;'S;=`#,`<%lO#(i9d#)th(Rp(U!b!U7`OY*gZr*grs'}sw*gwx)rx#O*g#P#W*g#W#X#)k#X#Z*g#Z#[#)k#[#]*g#]#^#)k#^#a*g#a#b#)k#b#g*g#g#h#)k#h#i*g#i#j#)k#j#k#)k#k#m*g#m#n#)k#n;'S*g;'S;=`+Z<%lO*g9d#+gZ(Rp(U!bOY#+`Zr#+`rs!JUsw#+`wx#$Rx#O#+`#O#P!B[#P#Q#(i#Q;'S#+`;'S;=`#,Y<%lO#+`9d#,]P;=`<%l#+`9d#,cP;=`<%l#(i?O#,o`$h&j(Rp(U!bOY#,fYZ&cZr#,frs!KSsw#,fwx#%Px!^#,f!^!_#+`!_#O#,f#O#P!DR#P#Q!;Z#Q#o#,f#o#p#+`#p;'S#,f;'S;=`#-q<%lO#,f?O#-tP;=`<%l#,f?O#-zP;=`<%l!;Z07[#.[b$h&j(Rp(U!b'y0/l!U7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z07[#/o_$h&j(Rp(U!bT0/lOY#/dYZ&cZr#/drs#0nsw#/dwx#4Ox!^#/d!^!_#5}!_#O#/d#O#P#1p#P#o#/d#o#p#5}#p;'S#/d;'S;=`#6|<%lO#/d06j#0w]$h&j(U!bT0/lOY#0nYZ&cZw#0nwx#1px!^#0n!^!_#3R!_#O#0n#O#P#1p#P#o#0n#o#p#3R#p;'S#0n;'S;=`#3x<%lO#0n05W#1wX$h&jT0/lOY#1pYZ&cZ!^#1p!^!_#2d!_#o#1p#o#p#2d#p;'S#1p;'S;=`#2{<%lO#1p0/l#2iST0/lOY#2dZ;'S#2d;'S;=`#2u<%lO#2d0/l#2xP;=`<%l#2d05W#3OP;=`<%l#1p01O#3YW(U!bT0/lOY#3RZw#3Rwx#2dx#O#3R#O#P#2d#P;'S#3R;'S;=`#3r<%lO#3R01O#3uP;=`<%l#3R06j#3{P;=`<%l#0n05x#4X]$h&j(RpT0/lOY#4OYZ&cZr#4Ors#1ps!^#4O!^!_#5Q!_#O#4O#O#P#1p#P#o#4O#o#p#5Q#p;'S#4O;'S;=`#5w<%lO#4O00^#5XW(RpT0/lOY#5QZr#5Qrs#2ds#O#5Q#O#P#2d#P;'S#5Q;'S;=`#5q<%lO#5Q00^#5tP;=`<%l#5Q05x#5zP;=`<%l#4O01p#6WY(Rp(U!bT0/lOY#5}Zr#5}rs#3Rsw#5}wx#5Qx#O#5}#O#P#2d#P;'S#5};'S;=`#6v<%lO#5}01p#6yP;=`<%l#5}07[#7PP;=`<%l#/d)3h#7ab$h&j$P(Ch(Rp(U!b!U7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;ZAt#8vb$Y#t$h&j(Rp(U!b!U7`OY!;ZYZ&cZr!;Zrs!<nsw!;Zwx!Lcx!P!;Z!P!Q#&`!Q!^!;Z!^!_#(i!_!}!;Z!}#O#,f#O#P!Dy#P#o!;Z#o#p#(i#p;'S!;Z;'S;=`#-w<%lO!;Z'Ad#:Zp$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#<_![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#<_#S#U%Z#U#V#?i#V#X%Z#X#Y!4|#Y#b%Z#b#c#>_#c#d#Bq#d#l%Z#l#m#Es#m#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#<jk$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!O%Z!O!P!3Y!P!Q%Z!Q![#<_![!^%Z!^!_*g!_!g%Z!g!h!4|!h#O%Z#O#P&c#P#R%Z#R#S#<_#S#X%Z#X#Y!4|#Y#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#>j_$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#?rd$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#A]f$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Bzc$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Dbe$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#E|g$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Gpi$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x#Il_!d$b$h&j#})Lv(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)[#Jv_al$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f#LS^h#)`#O-<U(Rp(U!b(y7`OY*gZr*grs'}sw*gwx)rx!P*g!P!Q#MO!Q!^*g!^!_#Mt!_!`$ f!`#O*g#P;'S*g;'S;=`+Z<%lO*g(n#MXX$j&j(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g(El#M}Z#o(Ch(Rp(U!bOY*gZr*grs'}sw*gwx)rx!_*g!_!`#Np!`#O*g#P;'S*g;'S;=`+Z<%lO*g(El#NyX$P(Ch(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g(El$ oX#p(Ch(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g*)x$!ga#]*!Y$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`!a$#l!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(K[$#w_#h(Cl$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x$%Vag!*r#p(Ch$e#|$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`$&[!`!a$'f!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$&g_#p(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$'qa#o(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`!a$(v!a#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$)R`#o(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(Kd$*`a(m(Ct$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!a%Z!a!b$+e!b#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$+p`$h&j#z(Ch(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`$,}_!y$Ip$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f$.X_!P0,v$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(n$/]Z$h&jO!^$0O!^!_$0f!_#i$0O#i#j$0k#j#l$0O#l#m$2^#m#o$0O#o#p$0f#p;'S$0O;'S;=`$4i<%lO$0O(n$0VT_#S$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c#S$0kO_#S(n$0p[$h&jO!Q&c!Q![$1f![!^&c!_!c&c!c!i$1f!i#T&c#T#Z$1f#Z#o&c#o#p$3|#p;'S&c;'S;=`&w<%lO&c(n$1kZ$h&jO!Q&c!Q![$2^![!^&c!_!c&c!c!i$2^!i#T&c#T#Z$2^#Z#o&c#p;'S&c;'S;=`&w<%lO&c(n$2cZ$h&jO!Q&c!Q![$3U![!^&c!_!c&c!c!i$3U!i#T&c#T#Z$3U#Z#o&c#p;'S&c;'S;=`&w<%lO&c(n$3ZZ$h&jO!Q&c!Q![$0O![!^&c!_!c&c!c!i$0O!i#T&c#T#Z$0O#Z#o&c#p;'S&c;'S;=`&w<%lO&c#S$4PR!Q![$4Y!c!i$4Y#T#Z$4Y#S$4]S!Q![$4Y!c!i$4Y#T#Z$4Y#q#r$0f(n$4lP;=`<%l$0O#1[$4z_!V#)l$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW$6U`#w(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z+;p$7c_$h&j(Rp(U!b([+4QOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[$8qk$h&j(Rp(U!b(O,2j$^#t(`$I[OY%ZYZ&cZr%Zrs&}st%Ztu$8buw%Zwx(rx}%Z}!O$:f!O!Q%Z!Q![$8b![!^%Z!^!_*g!_!c%Z!c!}$8b!}#O%Z#O#P&c#P#R%Z#R#S$8b#S#T%Z#T#o$8b#o#p*g#p$g%Z$g;'S$8b;'S;=`$<l<%lO$8b+d$:qk$h&j(Rp(U!b$^#tOY%ZYZ&cZr%Zrs&}st%Ztu$:fuw%Zwx(rx}%Z}!O$:f!O!Q%Z!Q![$:f![!^%Z!^!_*g!_!c%Z!c!}$:f!}#O%Z#O#P&c#P#R%Z#R#S$:f#S#T%Z#T#o$:f#o#p*g#p$g%Z$g;'S$:f;'S;=`$<f<%lO$:f+d$<iP;=`<%l$:f07[$<oP;=`<%l$8b#Jf$<{X![#Hb(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g,#x$=sa(t+JY$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Ka!`#O%Z#O#P&c#P#o%Z#o#p*g#p#q$+e#q;'S%Z;'S;=`+a<%lO%Z(Kd$?V_!Z(Cds`$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z?O$@a_!n7`$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z07[$Aq|$h&j(Rp(U!b'w0/l$[#t(O,2j(`$I[OX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr07[$D|k$h&j(Rp(U!b'x0/l$[#t(O,2j(`$I[OY%ZYZ&cZr%Zrs&}st%ZtuEruw%Zwx(rx}%Z}!OGv!O!Q%Z!Q![Er![!^%Z!^!_*g!_!c%Z!c!}Er!}#O%Z#O#P&c#P#R%Z#R#SEr#S#T%Z#T#oEr#o#p*g#p$g%Z$g;'SEr;'S;=`I|<%lOEr",tokenizers:[a$t,s$t,l$t,2,3,4,5,6,7,8,9,10,11,12,13,14,o$t,new KN("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOu~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!R~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(^~~",141,335),new KN("j~RQYZXz{^~^O'{~~aP!P!Qd~iO'|~~",25,318)],topRules:{Script:[0,7],SingleExpression:[1,272],SingleClassItem:[2,273]},dialects:{jsx:0,ts:14725},dynamicPrecedences:{77:1,79:1,91:1,167:1,196:1},specialized:[{term:322,get:t=>c$t[t]||-1},{term:338,get:t=>f$t[t]||-1},{term:92,get:t=>d$t[t]||-1}],tokenPrec:14749}),Ege=[ji("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),ji("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),ji("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),ji("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),ji("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),ji(`try {
  410. \${}
  411. } catch (\${error}) {
  412. \${}
  413. }`,{label:"try",detail:"/ catch block",type:"keyword"}),ji("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),ji(`if (\${}) {
  414. \${}
  415. } else {
  416. \${}
  417. }`,{label:"if",detail:"/ else block",type:"keyword"}),ji(`class \${name} {
  418. constructor(\${params}) {
  419. \${}
  420. }
  421. }`,{label:"class",detail:"definition",type:"keyword"}),ji('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),ji('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],p$t=Ege.concat([ji("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),ji("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),ji("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),rJ=new vSt,Mge=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function g0(t){return(e,n)=>{let r=e.node.getChild("VariableDefinition");return r&&n(r,t),!0}}const v$t=["FunctionDeclaration"],g$t={FunctionDeclaration:g0("function"),ClassDeclaration:g0("class"),ClassExpression:()=>!0,EnumDeclaration:g0("constant"),TypeAliasDeclaration:g0("type"),NamespaceDeclaration:g0("namespace"),VariableDefinition(t,e){t.matchContext(v$t)||e(t,"variable")},TypeDefinition(t,e){e(t,"type")},__proto__:null};function Ige(t,e){let n=rJ.get(e);if(n)return n;let r=[],i=!0;function o(a,s){let l=t.sliceString(a.from,a.to);r.push({label:l,type:s})}return e.cursor(br.IncludeAnonymous).iterate(a=>{if(i)i=!1;else if(a.name){let s=g$t[a.name];if(s&&s(a,o)||Mge.has(a.name))return!1}else if(a.to-a.from>8192){for(let s of Ige(t,a.node))r.push(s);return!1}}),rJ.set(e,r),r}const iJ=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,Dge=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function m$t(t){let e=Pr(t.state).resolveInner(t.pos,-1);if(Dge.indexOf(e.name)>-1)return null;let n=e.name=="VariableName"||e.to-e.from<20&&iJ.test(t.state.sliceDoc(e.from,e.to));if(!n&&!t.explicit)return null;let r=[];for(let i=e;i;i=i.parent)Mge.has(i.name)&&(r=r.concat(Ige(t.state.doc,i)));return{options:r,from:n?e.from:t.pos,validFor:iJ}}const Ud=Rb.define({name:"javascript",parser:h$t.configure({props:[wB.add({IfStatement:$y({except:/^\s*({|else\b)/}),TryStatement:$y({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:kSt,SwitchBody:t=>{let e=t.textAfter,n=/^\s*\}/.test(e),r=/^\s*(case|default)\b/.test(e);return t.baseIndent+(n?0:r?1:2)*t.unit},Block:RSt({closing:"}"}),ArrowFunction:t=>t.baseIndent+t.unit,"TemplateString BlockComment":()=>null,"Statement Property":$y({except:/^{/}),JSXElement(t){let e=/^\s*<\//.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},JSXEscape(t){let e=/\s*\}/.test(t.textAfter);return t.lineIndent(t.node.from)+(e?0:t.unit)},"JSXOpenTag JSXSelfClosingTag"(t){return t.column(t.node.from)+t.unit}}),SB.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":uve,BlockComment(t){return{from:t.from+2,to:t.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),Rge={test:t=>/^JSX/.test(t.name),facet:ive({commentTokens:{block:{open:"{/*",close:"*/}"}}})},y$t=Ud.configure({dialect:"ts"},"typescript"),b$t=Ud.configure({dialect:"jsx",props:[_B.add(t=>t.isTop?[Rge]:void 0)]}),_$t=Ud.configure({dialect:"jsx ts",props:[_B.add(t=>t.isTop?[Rge]:void 0)]},"typescript");let kge=t=>({label:t,type:"keyword"});const Nge="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map(kge),O$t=Nge.concat(["declare","implements","private","protected","public"].map(kge));function w$t(t={}){let e=t.jsx?t.typescript?_$t:b$t:t.typescript?y$t:Ud,n=t.typescript?p$t.concat(O$t):Ege.concat(Nge);return new ave(e,[Ud.data.of({autocomplete:tPt(Dge,fge(n))}),Ud.data.of({autocomplete:m$t}),t.jsx?C$t:[]])}function x$t(t){for(;;){if(t.name=="JSXOpenTag"||t.name=="JSXSelfClosingTag"||t.name=="JSXFragmentTag")return t;if(t.name=="JSXEscape"||!t.parent)return null;t=t.parent}}function oJ(t,e,n=t.length){for(let r=e==null?void 0:e.firstChild;r;r=r.nextSibling)if(r.name=="JSXIdentifier"||r.name=="JSXBuiltin"||r.name=="JSXNamespacedName"||r.name=="JSXMemberExpression")return t.sliceString(r.from,Math.min(r.to,n));return""}const S$t=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),C$t=He.inputHandler.of((t,e,n,r,i)=>{if((S$t?t.composing:t.compositionStarted)||t.state.readOnly||e!=n||r!=">"&&r!="/"||!Ud.isActiveAt(t.state,e,-1))return!1;let o=i(),{state:a}=o,s=a.changeByRange(l=>{var u;let{head:c}=l,f=Pr(a).resolveInner(c-1,-1),d;if(f.name=="JSXStartTag"&&(f=f.parent),!(a.doc.sliceString(c-1,c)!=r||f.name=="JSXAttributeValue"&&f.to>c)){if(r==">"&&f.name=="JSXFragmentTag")return{range:l,changes:{from:c,insert:"</>"}};if(r=="/"&&f.name=="JSXStartCloseTag"){let p=f.parent,v=p.parent;if(v&&p.from==c-2&&((d=oJ(a.doc,v.firstChild,c))||((u=v.firstChild)===null||u===void 0?void 0:u.name)=="JSXFragmentTag")){let g=`${d}>`;return{range:Te.cursor(c+g.length,-1),changes:{from:c,insert:g}}}}else if(r==">"){let p=x$t(f);if(p&&p.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(a.doc.sliceString(c,c+2))&&(d=oJ(a.doc,p,c)))return{range:l,changes:{from:c,insert:`</${d}>`}}}}return{range:l}});return s.changes.empty?!1:(t.dispatch([o,a.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),T$t=bB({String:ae.string,Number:ae.number,"True False":ae.bool,PropertyName:ae.propertyName,Null:ae.null,",":ae.separator,"[ ]":ae.squareBracket,"{ }":ae.brace}),P$t=Wb.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[T$t],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oc~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Oe~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zOh~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yOg~~'OO]~~'TO[~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0}),$$t=Rb.define({name:"json",parser:P$t.configure({props:[wB.add({Object:$y({except:/^\s*\}/}),Array:$y({except:/^\s*\]/})}),SB.add({"Object Array":uve})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function A$t(){return new ave($$t)}var Lge={exports:{}},m0={},Nw={exports:{}},DI={},RI={},aJ;function VB(){if(aJ)return RI;aJ=1;function t(r){this.__parent=r,this.__character_count=0,this.__indent_count=-1,this.__alignment_count=0,this.__wrap_point_index=0,this.__wrap_point_character_count=0,this.__wrap_point_indent_count=-1,this.__wrap_point_alignment_count=0,this.__items=[]}t.prototype.clone_empty=function(){var r=new t(this.__parent);return r.set_indent(this.__indent_count,this.__alignment_count),r},t.prototype.item=function(r){return r<0?this.__items[this.__items.length+r]:this.__items[r]},t.prototype.has_match=function(r){for(var i=this.__items.length-1;i>=0;i--)if(this.__items[i].match(r))return!0;return!1},t.prototype.set_indent=function(r,i){this.is_empty()&&(this.__indent_count=r||0,this.__alignment_count=i||0,this.__character_count=this.__parent.get_indent_size(this.__indent_count,this.__alignment_count))},t.prototype._set_wrap_point=function(){this.__parent.wrap_line_length&&(this.__wrap_point_index=this.__items.length,this.__wrap_point_character_count=this.__character_count,this.__wrap_point_indent_count=this.__parent.next_line.__indent_count,this.__wrap_point_alignment_count=this.__parent.next_line.__alignment_count)},t.prototype._should_wrap=function(){return this.__wrap_point_index&&this.__character_count>this.__parent.wrap_line_length&&this.__wrap_point_character_count>this.__parent.next_line.__character_count},t.prototype._allow_wrap=function(){if(this._should_wrap()){this.__parent.add_new_line();var r=this.__parent.current_line;return r.set_indent(this.__wrap_point_indent_count,this.__wrap_point_alignment_count),r.__items=this.__items.slice(this.__wrap_point_index),this.__items=this.__items.slice(0,this.__wrap_point_index),r.__character_count+=this.__character_count-this.__wrap_point_character_count,this.__character_count=this.__wrap_point_character_count,r.__items[0]===" "&&(r.__items.splice(0,1),r.__character_count-=1),!0}return!1},t.prototype.is_empty=function(){return this.__items.length===0},t.prototype.last=function(){return this.is_empty()?null:this.__items[this.__items.length-1]},t.prototype.push=function(r){this.__items.push(r);var i=r.lastIndexOf(`
  422. `);i!==-1?this.__character_count=r.length-i:this.__character_count+=r.length},t.prototype.pop=function(){var r=null;return this.is_empty()||(r=this.__items.pop(),this.__character_count-=r.length),r},t.prototype._remove_indent=function(){this.__indent_count>0&&(this.__indent_count-=1,this.__character_count-=this.__parent.indent_size)},t.prototype._remove_wrap_indent=function(){this.__wrap_point_indent_count>0&&(this.__wrap_point_indent_count-=1)},t.prototype.trim=function(){for(;this.last()===" ";)this.__items.pop(),this.__character_count-=1},t.prototype.toString=function(){var r="";return this.is_empty()?this.__parent.indent_empty_lines&&(r=this.__parent.get_indent_string(this.__indent_count)):(r=this.__parent.get_indent_string(this.__indent_count,this.__alignment_count),r+=this.__items.join("")),r};function e(r,i){this.__cache=[""],this.__indent_size=r.indent_size,this.__indent_string=r.indent_char,r.indent_with_tabs||(this.__indent_string=new Array(r.indent_size+1).join(r.indent_char)),i=i||"",r.indent_level>0&&(i=new Array(r.indent_level+1).join(this.__indent_string)),this.__base_string=i,this.__base_string_length=i.length}e.prototype.get_indent_size=function(r,i){var o=this.__base_string_length;return i=i||0,r<0&&(o=0),o+=r*this.__indent_size,o+=i,o},e.prototype.get_indent_string=function(r,i){var o=this.__base_string;return i=i||0,r<0&&(r=0,o=""),i+=r*this.__indent_size,this.__ensure_cache(i),o+=this.__cache[i],o},e.prototype.__ensure_cache=function(r){for(;r>=this.__cache.length;)this.__add_column()},e.prototype.__add_column=function(){var r=this.__cache.length,i=0,o="";this.__indent_size&&r>=this.__indent_size&&(i=Math.floor(r/this.__indent_size),r-=i*this.__indent_size,o=new Array(i+1).join(this.__indent_string)),r&&(o+=new Array(r+1).join(" ")),this.__cache.push(o)};function n(r,i){this.__indent_cache=new e(r,i),this.raw=!1,this._end_with_newline=r.end_with_newline,this.indent_size=r.indent_size,this.wrap_line_length=r.wrap_line_length,this.indent_empty_lines=r.indent_empty_lines,this.__lines=[],this.previous_line=null,this.current_line=null,this.next_line=new t(this),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1,this.__add_outputline()}return n.prototype.__add_outputline=function(){this.previous_line=this.current_line,this.current_line=this.next_line.clone_empty(),this.__lines.push(this.current_line)},n.prototype.get_line_number=function(){return this.__lines.length},n.prototype.get_indent_string=function(r,i){return this.__indent_cache.get_indent_string(r,i)},n.prototype.get_indent_size=function(r,i){return this.__indent_cache.get_indent_size(r,i)},n.prototype.is_empty=function(){return!this.previous_line&&this.current_line.is_empty()},n.prototype.add_new_line=function(r){return this.is_empty()||!r&&this.just_added_newline()?!1:(this.raw||this.__add_outputline(),!0)},n.prototype.get_code=function(r){this.trim(!0);var i=this.current_line.pop();i&&(i[i.length-1]===`
  423. `&&(i=i.replace(/\n+$/g,"")),this.current_line.push(i)),this._end_with_newline&&this.__add_outputline();var o=this.__lines.join(`
  424. `);return r!==`
  425. `&&(o=o.replace(/[\n]/g,r)),o},n.prototype.set_wrap_point=function(){this.current_line._set_wrap_point()},n.prototype.set_indent=function(r,i){return r=r||0,i=i||0,this.next_line.set_indent(r,i),this.__lines.length>1?(this.current_line.set_indent(r,i),!0):(this.current_line.set_indent(),!1)},n.prototype.add_raw_token=function(r){for(var i=0;i<r.newlines;i++)this.__add_outputline();this.current_line.set_indent(-1),this.current_line.push(r.whitespace_before),this.current_line.push(r.text),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=!1},n.prototype.add_token=function(r){this.__add_space_before_token(),this.current_line.push(r),this.space_before_token=!1,this.non_breaking_space=!1,this.previous_token_wrapped=this.current_line._allow_wrap()},n.prototype.__add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&(this.non_breaking_space||this.set_wrap_point(),this.current_line.push(" "))},n.prototype.remove_indent=function(r){for(var i=this.__lines.length;r<i;)this.__lines[r]._remove_indent(),r++;this.current_line._remove_wrap_indent()},n.prototype.trim=function(r){for(r=r===void 0?!1:r,this.current_line.trim();r&&this.__lines.length>1&&this.current_line.is_empty();)this.__lines.pop(),this.current_line=this.__lines[this.__lines.length-1],this.current_line.trim();this.previous_line=this.__lines.length>1?this.__lines[this.__lines.length-2]:null},n.prototype.just_added_newline=function(){return this.current_line.is_empty()},n.prototype.just_added_blankline=function(){return this.is_empty()||this.current_line.is_empty()&&this.previous_line.is_empty()},n.prototype.ensure_empty_line_above=function(r,i){for(var o=this.__lines.length-2;o>=0;){var a=this.__lines[o];if(a.is_empty())break;if(a.item(0).indexOf(r)!==0&&a.item(-1)!==i){this.__lines.splice(o+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}o--}},RI.Output=n,RI}var kI={},sJ;function Bge(){if(sJ)return kI;sJ=1;function t(e,n,r,i){this.type=e,this.text=n,this.comments_before=null,this.newlines=r||0,this.whitespace_before=i||"",this.parent=null,this.next=null,this.previous=null,this.opened=null,this.closed=null,this.directives=null}return kI.Token=t,kI}var NI={},lJ;function Vge(){return lJ||(lJ=1,function(t){var e="\\x23\\x24\\x40\\x41-\\x5a\\x5f\\x61-\\x7a",n="\\x24\\x30-\\x39\\x41-\\x5a\\x5f\\x61-\\x7a",r="\\xaa\\xb5\\xba\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\u02c1\\u02c6-\\u02d1\\u02e0-\\u02e4\\u02ec\\u02ee\\u0370-\\u0374\\u0376\\u0377\\u037a-\\u037d\\u0386\\u0388-\\u038a\\u038c\\u038e-\\u03a1\\u03a3-\\u03f5\\u03f7-\\u0481\\u048a-\\u0527\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05d0-\\u05ea\\u05f0-\\u05f2\\u0620-\\u064a\\u066e\\u066f\\u0671-\\u06d3\\u06d5\\u06e5\\u06e6\\u06ee\\u06ef\\u06fa-\\u06fc\\u06ff\\u0710\\u0712-\\u072f\\u074d-\\u07a5\\u07b1\\u07ca-\\u07ea\\u07f4\\u07f5\\u07fa\\u0800-\\u0815\\u081a\\u0824\\u0828\\u0840-\\u0858\\u08a0\\u08a2-\\u08ac\\u0904-\\u0939\\u093d\\u0950\\u0958-\\u0961\\u0971-\\u0977\\u0979-\\u097f\\u0985-\\u098c\\u098f\\u0990\\u0993-\\u09a8\\u09aa-\\u09b0\\u09b2\\u09b6-\\u09b9\\u09bd\\u09ce\\u09dc\\u09dd\\u09df-\\u09e1\\u09f0\\u09f1\\u0a05-\\u0a0a\\u0a0f\\u0a10\\u0a13-\\u0a28\\u0a2a-\\u0a30\\u0a32\\u0a33\\u0a35\\u0a36\\u0a38\\u0a39\\u0a59-\\u0a5c\\u0a5e\\u0a72-\\u0a74\\u0a85-\\u0a8d\\u0a8f-\\u0a91\\u0a93-\\u0aa8\\u0aaa-\\u0ab0\\u0ab2\\u0ab3\\u0ab5-\\u0ab9\\u0abd\\u0ad0\\u0ae0\\u0ae1\\u0b05-\\u0b0c\\u0b0f\\u0b10\\u0b13-\\u0b28\\u0b2a-\\u0b30\\u0b32\\u0b33\\u0b35-\\u0b39\\u0b3d\\u0b5c\\u0b5d\\u0b5f-\\u0b61\\u0b71\\u0b83\\u0b85-\\u0b8a\\u0b8e-\\u0b90\\u0b92-\\u0b95\\u0b99\\u0b9a\\u0b9c\\u0b9e\\u0b9f\\u0ba3\\u0ba4\\u0ba8-\\u0baa\\u0bae-\\u0bb9\\u0bd0\\u0c05-\\u0c0c\\u0c0e-\\u0c10\\u0c12-\\u0c28\\u0c2a-\\u0c33\\u0c35-\\u0c39\\u0c3d\\u0c58\\u0c59\\u0c60\\u0c61\\u0c85-\\u0c8c\\u0c8e-\\u0c90\\u0c92-\\u0ca8\\u0caa-\\u0cb3\\u0cb5-\\u0cb9\\u0cbd\\u0cde\\u0ce0\\u0ce1\\u0cf1\\u0cf2\\u0d05-\\u0d0c\\u0d0e-\\u0d10\\u0d12-\\u0d3a\\u0d3d\\u0d4e\\u0d60\\u0d61\\u0d7a-\\u0d7f\\u0d85-\\u0d96\\u0d9a-\\u0db1\\u0db3-\\u0dbb\\u0dbd\\u0dc0-\\u0dc6\\u0e01-\\u0e30\\u0e32\\u0e33\\u0e40-\\u0e46\\u0e81\\u0e82\\u0e84\\u0e87\\u0e88\\u0e8a\\u0e8d\\u0e94-\\u0e97\\u0e99-\\u0e9f\\u0ea1-\\u0ea3\\u0ea5\\u0ea7\\u0eaa\\u0eab\\u0ead-\\u0eb0\\u0eb2\\u0eb3\\u0ebd\\u0ec0-\\u0ec4\\u0ec6\\u0edc-\\u0edf\\u0f00\\u0f40-\\u0f47\\u0f49-\\u0f6c\\u0f88-\\u0f8c\\u1000-\\u102a\\u103f\\u1050-\\u1055\\u105a-\\u105d\\u1061\\u1065\\u1066\\u106e-\\u1070\\u1075-\\u1081\\u108e\\u10a0-\\u10c5\\u10c7\\u10cd\\u10d0-\\u10fa\\u10fc-\\u1248\\u124a-\\u124d\\u1250-\\u1256\\u1258\\u125a-\\u125d\\u1260-\\u1288\\u128a-\\u128d\\u1290-\\u12b0\\u12b2-\\u12b5\\u12b8-\\u12be\\u12c0\\u12c2-\\u12c5\\u12c8-\\u12d6\\u12d8-\\u1310\\u1312-\\u1315\\u1318-\\u135a\\u1380-\\u138f\\u13a0-\\u13f4\\u1401-\\u166c\\u166f-\\u167f\\u1681-\\u169a\\u16a0-\\u16ea\\u16ee-\\u16f0\\u1700-\\u170c\\u170e-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176c\\u176e-\\u1770\\u1780-\\u17b3\\u17d7\\u17dc\\u1820-\\u1877\\u1880-\\u18a8\\u18aa\\u18b0-\\u18f5\\u1900-\\u191c\\u1950-\\u196d\\u1970-\\u1974\\u1980-\\u19ab\\u19c1-\\u19c7\\u1a00-\\u1a16\\u1a20-\\u1a54\\u1aa7\\u1b05-\\u1b33\\u1b45-\\u1b4b\\u1b83-\\u1ba0\\u1bae\\u1baf\\u1bba-\\u1be5\\u1c00-\\u1c23\\u1c4d-\\u1c4f\\u1c5a-\\u1c7d\\u1ce9-\\u1cec\\u1cee-\\u1cf1\\u1cf5\\u1cf6\\u1d00-\\u1dbf\\u1e00-\\u1f15\\u1f18-\\u1f1d\\u1f20-\\u1f45\\u1f48-\\u1f4d\\u1f50-\\u1f57\\u1f59\\u1f5b\\u1f5d\\u1f5f-\\u1f7d\\u1f80-\\u1fb4\\u1fb6-\\u1fbc\\u1fbe\\u1fc2-\\u1fc4\\u1fc6-\\u1fcc\\u1fd0-\\u1fd3\\u1fd6-\\u1fdb\\u1fe0-\\u1fec\\u1ff2-\\u1ff4\\u1ff6-\\u1ffc\\u2071\\u207f\\u2090-\\u209c\\u2102\\u2107\\u210a-\\u2113\\u2115\\u2119-\\u211d\\u2124\\u2126\\u2128\\u212a-\\u212d\\u212f-\\u2139\\u213c-\\u213f\\u2145-\\u2149\\u214e\\u2160-\\u2188\\u2c00-\\u2c2e\\u2c30-\\u2c5e\\u2c60-\\u2ce4\\u2ceb-\\u2cee\\u2cf2\\u2cf3\\u2d00-\\u2d25\\u2d27\\u2d2d\\u2d30-\\u2d67\\u2d6f\\u2d80-\\u2d96\\u2da0-\\u2da6\\u2da8-\\u2dae\\u2db0-\\u2db6\\u2db8-\\u2dbe\\u2dc0-\\u2dc6\\u2dc8-\\u2dce\\u2dd0-\\u2dd6\\u2dd8-\\u2dde\\u2e2f\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303c\\u3041-\\u3096\\u309d-\\u309f\\u30a1-\\u30fa\\u30fc-\\u30ff\\u3105-\\u312d\\u3131-\\u318e\\u31a0-\\u31ba\\u31f0-\\u31ff\\u3400-\\u4db5\\u4e00-\\u9fcc\\ua000-\\ua48c\\ua4d0-\\ua4fd\\ua500-\\ua60c\\ua610-\\ua61f\\ua62a\\ua62b\\ua640-\\ua66e\\ua67f-\\ua697\\ua6a0-\\ua6ef\\ua717-\\ua71f\\ua722-\\ua788\\ua78b-\\ua78e\\ua790-\\ua793\\ua7a0-\\ua7aa\\ua7f8-\\ua801\\ua803-\\ua805\\ua807-\\ua80a\\ua80c-\\ua822\\ua840-\\ua873\\ua882-\\ua8b3\\ua8f2-\\ua8f7\\ua8fb\\ua90a-\\ua925\\ua930-\\ua946\\ua960-\\ua97c\\ua984-\\ua9b2\\ua9cf\\uaa00-\\uaa28\\uaa40-\\uaa42\\uaa44-\\uaa4b\\uaa60-\\uaa76\\uaa7a\\uaa80-\\uaaaf\\uaab1\\uaab5\\uaab6\\uaab9-\\uaabd\\uaac0\\uaac2\\uaadb-\\uaadd\\uaae0-\\uaaea\\uaaf2-\\uaaf4\\uab01-\\uab06\\uab09-\\uab0e\\uab11-\\uab16\\uab20-\\uab26\\uab28-\\uab2e\\uabc0-\\uabe2\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\uf900-\\ufa6d\\ufa70-\\ufad9\\ufb00-\\ufb06\\ufb13-\\ufb17\\ufb1d\\ufb1f-\\ufb28\\ufb2a-\\ufb36\\ufb38-\\ufb3c\\ufb3e\\ufb40\\ufb41\\ufb43\\ufb44\\ufb46-\\ufbb1\\ufbd3-\\ufd3d\\ufd50-\\ufd8f\\ufd92-\\ufdc7\\ufdf0-\\ufdfb\\ufe70-\\ufe74\\ufe76-\\ufefc\\uff21-\\uff3a\\uff41-\\uff5a\\uff66-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc",i="\\u0300-\\u036f\\u0483-\\u0487\\u0591-\\u05bd\\u05bf\\u05c1\\u05c2\\u05c4\\u05c5\\u05c7\\u0610-\\u061a\\u0620-\\u0649\\u0672-\\u06d3\\u06e7-\\u06e8\\u06fb-\\u06fc\\u0730-\\u074a\\u0800-\\u0814\\u081b-\\u0823\\u0825-\\u0827\\u0829-\\u082d\\u0840-\\u0857\\u08e4-\\u08fe\\u0900-\\u0903\\u093a-\\u093c\\u093e-\\u094f\\u0951-\\u0957\\u0962-\\u0963\\u0966-\\u096f\\u0981-\\u0983\\u09bc\\u09be-\\u09c4\\u09c7\\u09c8\\u09d7\\u09df-\\u09e0\\u0a01-\\u0a03\\u0a3c\\u0a3e-\\u0a42\\u0a47\\u0a48\\u0a4b-\\u0a4d\\u0a51\\u0a66-\\u0a71\\u0a75\\u0a81-\\u0a83\\u0abc\\u0abe-\\u0ac5\\u0ac7-\\u0ac9\\u0acb-\\u0acd\\u0ae2-\\u0ae3\\u0ae6-\\u0aef\\u0b01-\\u0b03\\u0b3c\\u0b3e-\\u0b44\\u0b47\\u0b48\\u0b4b-\\u0b4d\\u0b56\\u0b57\\u0b5f-\\u0b60\\u0b66-\\u0b6f\\u0b82\\u0bbe-\\u0bc2\\u0bc6-\\u0bc8\\u0bca-\\u0bcd\\u0bd7\\u0be6-\\u0bef\\u0c01-\\u0c03\\u0c46-\\u0c48\\u0c4a-\\u0c4d\\u0c55\\u0c56\\u0c62-\\u0c63\\u0c66-\\u0c6f\\u0c82\\u0c83\\u0cbc\\u0cbe-\\u0cc4\\u0cc6-\\u0cc8\\u0cca-\\u0ccd\\u0cd5\\u0cd6\\u0ce2-\\u0ce3\\u0ce6-\\u0cef\\u0d02\\u0d03\\u0d46-\\u0d48\\u0d57\\u0d62-\\u0d63\\u0d66-\\u0d6f\\u0d82\\u0d83\\u0dca\\u0dcf-\\u0dd4\\u0dd6\\u0dd8-\\u0ddf\\u0df2\\u0df3\\u0e34-\\u0e3a\\u0e40-\\u0e45\\u0e50-\\u0e59\\u0eb4-\\u0eb9\\u0ec8-\\u0ecd\\u0ed0-\\u0ed9\\u0f18\\u0f19\\u0f20-\\u0f29\\u0f35\\u0f37\\u0f39\\u0f41-\\u0f47\\u0f71-\\u0f84\\u0f86-\\u0f87\\u0f8d-\\u0f97\\u0f99-\\u0fbc\\u0fc6\\u1000-\\u1029\\u1040-\\u1049\\u1067-\\u106d\\u1071-\\u1074\\u1082-\\u108d\\u108f-\\u109d\\u135d-\\u135f\\u170e-\\u1710\\u1720-\\u1730\\u1740-\\u1750\\u1772\\u1773\\u1780-\\u17b2\\u17dd\\u17e0-\\u17e9\\u180b-\\u180d\\u1810-\\u1819\\u1920-\\u192b\\u1930-\\u193b\\u1951-\\u196d\\u19b0-\\u19c0\\u19c8-\\u19c9\\u19d0-\\u19d9\\u1a00-\\u1a15\\u1a20-\\u1a53\\u1a60-\\u1a7c\\u1a7f-\\u1a89\\u1a90-\\u1a99\\u1b46-\\u1b4b\\u1b50-\\u1b59\\u1b6b-\\u1b73\\u1bb0-\\u1bb9\\u1be6-\\u1bf3\\u1c00-\\u1c22\\u1c40-\\u1c49\\u1c5b-\\u1c7d\\u1cd0-\\u1cd2\\u1d00-\\u1dbe\\u1e01-\\u1f15\\u200c\\u200d\\u203f\\u2040\\u2054\\u20d0-\\u20dc\\u20e1\\u20e5-\\u20f0\\u2d81-\\u2d96\\u2de0-\\u2dff\\u3021-\\u3028\\u3099\\u309a\\ua640-\\ua66d\\ua674-\\ua67d\\ua69f\\ua6f0-\\ua6f1\\ua7f8-\\ua800\\ua806\\ua80b\\ua823-\\ua827\\ua880-\\ua881\\ua8b4-\\ua8c4\\ua8d0-\\ua8d9\\ua8f3-\\ua8f7\\ua900-\\ua909\\ua926-\\ua92d\\ua930-\\ua945\\ua980-\\ua983\\ua9b3-\\ua9c0\\uaa00-\\uaa27\\uaa40-\\uaa41\\uaa4c-\\uaa4d\\uaa50-\\uaa59\\uaa7b\\uaae0-\\uaae9\\uaaf2-\\uaaf3\\uabc0-\\uabe1\\uabec\\uabed\\uabf0-\\uabf9\\ufb20-\\ufb28\\ufe00-\\ufe0f\\ufe20-\\ufe26\\ufe33\\ufe34\\ufe4d-\\ufe4f\\uff10-\\uff19\\uff3f",o="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",a="(?:"+o+"|["+e+r+"])",s="(?:"+o+"|["+n+r+i+"])*";t.identifier=new RegExp(a+s,"g"),t.identifierStart=new RegExp(a),t.identifierMatch=new RegExp("(?:"+o+"|["+n+r+i+"])+"),t.newline=/[\n\r\u2028\u2029]/,t.lineBreak=new RegExp(`\r
  426. |`+t.newline.source),t.allLineBreaks=new RegExp(t.lineBreak.source,"g")}(NI)),NI}var LI={},y0={},uJ;function zB(){if(uJ)return y0;uJ=1;function t(r,i){this.raw_options=e(r,i),this.disabled=this._get_boolean("disabled"),this.eol=this._get_characters("eol","auto"),this.end_with_newline=this._get_boolean("end_with_newline"),this.indent_size=this._get_number("indent_size",4),this.indent_char=this._get_characters("indent_char"," "),this.indent_level=this._get_number("indent_level"),this.preserve_newlines=this._get_boolean("preserve_newlines",!0),this.max_preserve_newlines=this._get_number("max_preserve_newlines",32786),this.preserve_newlines||(this.max_preserve_newlines=0),this.indent_with_tabs=this._get_boolean("indent_with_tabs",this.indent_char===" "),this.indent_with_tabs&&(this.indent_char=" ",this.indent_size===1&&(this.indent_size=4)),this.wrap_line_length=this._get_number("wrap_line_length",this._get_number("max_char")),this.indent_empty_lines=this._get_boolean("indent_empty_lines"),this.templating=this._get_selection_list("templating",["auto","none","angular","django","erb","handlebars","php","smarty"],["auto"])}t.prototype._get_array=function(r,i){var o=this.raw_options[r],a=i||[];return typeof o=="object"?o!==null&&typeof o.concat=="function"&&(a=o.concat()):typeof o=="string"&&(a=o.split(/[^a-zA-Z0-9_\/\-]+/)),a},t.prototype._get_boolean=function(r,i){var o=this.raw_options[r],a=o===void 0?!!i:!!o;return a},t.prototype._get_characters=function(r,i){var o=this.raw_options[r],a=i||"";return typeof o=="string"&&(a=o.replace(/\\r/,"\r").replace(/\\n/,`
  427. `).replace(/\\t/," ")),a},t.prototype._get_number=function(r,i){var o=this.raw_options[r];i=parseInt(i,10),isNaN(i)&&(i=0);var a=parseInt(o,10);return isNaN(a)&&(a=i),a},t.prototype._get_selection=function(r,i,o){var a=this._get_selection_list(r,i,o);if(a.length!==1)throw new Error("Invalid Option Value: The option '"+r+`' can only be one of the following values:
  428. `+i+`
  429. You passed in: '`+this.raw_options[r]+"'");return a[0]},t.prototype._get_selection_list=function(r,i,o){if(!i||i.length===0)throw new Error("Selection list cannot be empty.");if(o=o||[i[0]],!this._is_valid_selection(o,i))throw new Error("Invalid Default Value!");var a=this._get_array(r,o);if(!this._is_valid_selection(a,i))throw new Error("Invalid Option Value: The option '"+r+`' can contain only the following values:
  430. `+i+`
  431. You passed in: '`+this.raw_options[r]+"'");return a},t.prototype._is_valid_selection=function(r,i){return r.length&&i.length&&!r.some(function(o){return i.indexOf(o)===-1})};function e(r,i){var o={};r=n(r);var a;for(a in r)a!==i&&(o[a]=r[a]);if(i&&r[i])for(a in r[i])o[a]=r[i][a];return o}function n(r){var i={},o;for(o in r){var a=o.replace(/-/g,"_");i[a]=r[o]}return i}return y0.Options=t,y0.normalizeOpts=n,y0.mergeOpts=e,y0}var cJ;function zge(){if(cJ)return LI;cJ=1;var t=zB().Options,e=["before-newline","after-newline","preserve-newline"];function n(r){t.call(this,r,"js");var i=this.raw_options.brace_style||null;i==="expand-strict"?this.raw_options.brace_style="expand":i==="collapse-preserve-inline"?this.raw_options.brace_style="collapse,preserve-inline":this.raw_options.braces_on_own_line!==void 0&&(this.raw_options.brace_style=this.raw_options.braces_on_own_line?"expand":"collapse");var o=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var a=0;a<o.length;a++)o[a]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=o[a];this.unindent_chained_methods=this._get_boolean("unindent_chained_methods"),this.break_chained_methods=this._get_boolean("break_chained_methods"),this.space_in_paren=this._get_boolean("space_in_paren"),this.space_in_empty_paren=this._get_boolean("space_in_empty_paren"),this.jslint_happy=this._get_boolean("jslint_happy"),this.space_after_anon_function=this._get_boolean("space_after_anon_function"),this.space_after_named_function=this._get_boolean("space_after_named_function"),this.keep_array_indentation=this._get_boolean("keep_array_indentation"),this.space_before_conditional=this._get_boolean("space_before_conditional",!0),this.unescape_strings=this._get_boolean("unescape_strings"),this.e4x=this._get_boolean("e4x"),this.comma_first=this._get_boolean("comma_first"),this.operator_position=this._get_selection("operator_position",e),this.test_output_raw=this._get_boolean("test_output_raw"),this.jslint_happy&&(this.space_after_anon_function=!0)}return n.prototype=new t,LI.Options=n,LI}var Ip={},BI={},fJ;function FB(){if(fJ)return BI;fJ=1;var t=RegExp.prototype.hasOwnProperty("sticky");function e(n){this.__input=n||"",this.__input_length=this.__input.length,this.__position=0}return e.prototype.restart=function(){this.__position=0},e.prototype.back=function(){this.__position>0&&(this.__position-=1)},e.prototype.hasNext=function(){return this.__position<this.__input_length},e.prototype.next=function(){var n=null;return this.hasNext()&&(n=this.__input.charAt(this.__position),this.__position+=1),n},e.prototype.peek=function(n){var r=null;return n=n||0,n+=this.__position,n>=0&&n<this.__input_length&&(r=this.__input.charAt(n)),r},e.prototype.__match=function(n,r){n.lastIndex=r;var i=n.exec(this.__input);return i&&!(t&&n.sticky)&&i.index!==r&&(i=null),i},e.prototype.test=function(n,r){return r=r||0,r+=this.__position,r>=0&&r<this.__input_length?!!this.__match(n,r):!1},e.prototype.testChar=function(n,r){var i=this.peek(r);return n.lastIndex=0,i!==null&&n.test(i)},e.prototype.match=function(n){var r=this.__match(n,this.__position);return r?this.__position+=r[0].length:r=null,r},e.prototype.read=function(n,r,i){var o="",a;return n&&(a=this.match(n),a&&(o+=a[0])),r&&(a||!n)&&(o+=this.readUntil(r,i)),o},e.prototype.readUntil=function(n,r){var i="",o=this.__position;n.lastIndex=this.__position;var a=n.exec(this.__input);return a?(o=a.index,r&&(o+=a[0].length)):o=this.__input_length,i=this.__input.substring(this.__position,o),this.__position=o,i},e.prototype.readUntilAfter=function(n){return this.readUntil(n,!0)},e.prototype.get_regexp=function(n,r){var i=null,o="g";return r&&t&&(o="y"),typeof n=="string"&&n!==""?i=new RegExp(n,o):n&&(i=new RegExp(n.source,o)),i},e.prototype.get_literal_regexp=function(n){return RegExp(n.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"))},e.prototype.peekUntilAfter=function(n){var r=this.__position,i=this.readUntilAfter(n);return this.__position=r,i},e.prototype.lookBack=function(n){var r=this.__position-1;return r>=n.length&&this.__input.substring(r-n.length,r).toLowerCase()===n},BI.InputScanner=e,BI}var Lw={},VI={},dJ;function E$t(){if(dJ)return VI;dJ=1;function t(e){this.__tokens=[],this.__tokens_length=this.__tokens.length,this.__position=0,this.__parent_token=e}return t.prototype.restart=function(){this.__position=0},t.prototype.isEmpty=function(){return this.__tokens_length===0},t.prototype.hasNext=function(){return this.__position<this.__tokens_length},t.prototype.next=function(){var e=null;return this.hasNext()&&(e=this.__tokens[this.__position],this.__position+=1),e},t.prototype.peek=function(e){var n=null;return e=e||0,e+=this.__position,e>=0&&e<this.__tokens_length&&(n=this.__tokens[e]),n},t.prototype.add=function(e){this.__parent_token&&(e.parent=this.__parent_token),this.__tokens.push(e),this.__tokens_length+=1},VI.TokenStream=t,VI}var zI={},FI={},hJ;function b2(){if(hJ)return FI;hJ=1;function t(e,n){this._input=e,this._starting_pattern=null,this._match_pattern=null,this._until_pattern=null,this._until_after=!1,n&&(this._starting_pattern=this._input.get_regexp(n._starting_pattern,!0),this._match_pattern=this._input.get_regexp(n._match_pattern,!0),this._until_pattern=this._input.get_regexp(n._until_pattern),this._until_after=n._until_after)}return t.prototype.read=function(){var e=this._input.read(this._starting_pattern);return(!this._starting_pattern||e)&&(e+=this._input.read(this._match_pattern,this._until_pattern,this._until_after)),e},t.prototype.read_match=function(){return this._input.match(this._match_pattern)},t.prototype.until_after=function(e){var n=this._create();return n._until_after=!0,n._until_pattern=this._input.get_regexp(e),n._update(),n},t.prototype.until=function(e){var n=this._create();return n._until_after=!1,n._until_pattern=this._input.get_regexp(e),n._update(),n},t.prototype.starting_with=function(e){var n=this._create();return n._starting_pattern=this._input.get_regexp(e,!0),n._update(),n},t.prototype.matching=function(e){var n=this._create();return n._match_pattern=this._input.get_regexp(e,!0),n._update(),n},t.prototype._create=function(){return new t(this._input,this)},t.prototype._update=function(){},FI.Pattern=t,FI}var pJ;function M$t(){if(pJ)return zI;pJ=1;var t=b2().Pattern;function e(n,r){t.call(this,n,r),r?this._line_regexp=this._input.get_regexp(r._line_regexp):this.__set_whitespace_patterns("",""),this.newline_count=0,this.whitespace_before_token=""}return e.prototype=new t,e.prototype.__set_whitespace_patterns=function(n,r){n+="\\t ",r+="\\n\\r",this._match_pattern=this._input.get_regexp("["+n+r+"]+",!0),this._newline_regexp=this._input.get_regexp("\\r\\n|["+r+"]")},e.prototype.read=function(){this.newline_count=0,this.whitespace_before_token="";var n=this._input.read(this._match_pattern);if(n===" ")this.whitespace_before_token=" ";else if(n){var r=this.__split(this._newline_regexp,n);this.newline_count=r.length-1,this.whitespace_before_token=r[this.newline_count]}return n},e.prototype.matching=function(n,r){var i=this._create();return i.__set_whitespace_patterns(n,r),i._update(),i},e.prototype._create=function(){return new e(this._input,this)},e.prototype.__split=function(n,r){n.lastIndex=0;for(var i=0,o=[],a=n.exec(r);a;)o.push(r.substring(i,a.index)),i=a.index+a[0].length,a=n.exec(r);return i<r.length?o.push(r.substring(i,r.length)):o.push(""),o},zI.WhitespacePattern=e,zI}var vJ;function rT(){if(vJ)return Lw;vJ=1;var t=FB().InputScanner,e=Bge().Token,n=E$t().TokenStream,r=M$t().WhitespacePattern,i={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},o=function(a,s){this._input=new t(a),this._options=s||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new r(this._input)};return o.prototype.tokenize=function(){this._input.restart(),this.__tokens=new n,this._reset();for(var a,s=new e(i.START,""),l=null,u=[],c=new n;s.type!==i.EOF;){for(a=this._get_next_token(s,l);this._is_comment(a);)c.add(a),a=this._get_next_token(s,l);c.isEmpty()||(a.comments_before=c,c=new n),a.parent=l,this._is_opening(a)?(u.push(l),l=a):l&&this._is_closing(a,l)&&(a.opened=l,l.closed=a,l=u.pop(),a.parent=l),a.previous=s,s.next=a,this.__tokens.add(a),s=a}return this.__tokens},o.prototype._is_first_token=function(){return this.__tokens.isEmpty()},o.prototype._reset=function(){},o.prototype._get_next_token=function(a,s){this._readWhitespace();var l=this._input.read(/.+/g);return l?this._create_token(i.RAW,l):this._create_token(i.EOF,"")},o.prototype._is_comment=function(a){return!1},o.prototype._is_opening=function(a){return!1},o.prototype._is_closing=function(a,s){return!1},o.prototype._create_token=function(a,s){var l=new e(a,s,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return l},o.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},Lw.Tokenizer=o,Lw.TOKEN=i,Lw}var WI={},gJ;function WB(){if(gJ)return WI;gJ=1;function t(e,n){e=typeof e=="string"?e:e.source,n=typeof n=="string"?n:n.source,this.__directives_block_pattern=new RegExp(e+/ beautify( \w+[:]\w+)+ /.source+n,"g"),this.__directive_pattern=/ (\w+)[:](\w+)/g,this.__directives_end_ignore_pattern=new RegExp(e+/\sbeautify\signore:end\s/.source+n,"g")}return t.prototype.get_directives=function(e){if(!e.match(this.__directives_block_pattern))return null;var n={};this.__directive_pattern.lastIndex=0;for(var r=this.__directive_pattern.exec(e);r;)n[r[1]]=r[2],r=this.__directive_pattern.exec(e);return n},t.prototype.readIgnored=function(e){return e.readUntilAfter(this.__directives_end_ignore_pattern)},WI.Directives=t,WI}var QI={},mJ;function Fge(){if(mJ)return QI;mJ=1;var t=b2().Pattern,e={django:!1,erb:!1,handlebars:!1,php:!1,smarty:!1,angular:!1};function n(r,i){t.call(this,r,i),this.__template_pattern=null,this._disabled=Object.assign({},e),this._excluded=Object.assign({},e),i&&(this.__template_pattern=this._input.get_regexp(i.__template_pattern),this._excluded=Object.assign(this._excluded,i._excluded),this._disabled=Object.assign(this._disabled,i._disabled));var o=new t(r);this.__patterns={handlebars_comment:o.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:o.starting_with(/{{{/).until_after(/}}}/),handlebars:o.starting_with(/{{/).until_after(/}}/),php:o.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:o.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:o.starting_with(/{%/).until_after(/%}/),django_value:o.starting_with(/{{/).until_after(/}}/),django_comment:o.starting_with(/{#/).until_after(/#}/),smarty:o.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:o.starting_with(/{\*/).until_after(/\*}/),smarty_literal:o.starting_with(/{literal}/).until_after(/{\/literal}/)}}return n.prototype=new t,n.prototype._create=function(){return new n(this._input,this)},n.prototype._update=function(){this.__set_templated_pattern()},n.prototype.disable=function(r){var i=this._create();return i._disabled[r]=!0,i._update(),i},n.prototype.read_options=function(r){var i=this._create();for(var o in e)i._disabled[o]=r.templating.indexOf(o)===-1;return i._update(),i},n.prototype.exclude=function(r){var i=this._create();return i._excluded[r]=!0,i._update(),i},n.prototype.read=function(){var r="";this._match_pattern?r=this._input.read(this._starting_pattern):r=this._input.read(this._starting_pattern,this.__template_pattern);for(var i=this._read_template();i;)this._match_pattern?i+=this._input.read(this._match_pattern):i+=this._input.readUntil(this.__template_pattern),r+=i,i=this._read_template();return this._until_after&&(r+=this._input.readUntilAfter(this._until_pattern)),r},n.prototype.__set_templated_pattern=function(){var r=[];this._disabled.php||r.push(this.__patterns.php._starting_pattern.source),this._disabled.handlebars||r.push(this.__patterns.handlebars._starting_pattern.source),this._disabled.erb||r.push(this.__patterns.erb._starting_pattern.source),this._disabled.django||(r.push(this.__patterns.django._starting_pattern.source),r.push(this.__patterns.django_value._starting_pattern.source),r.push(this.__patterns.django_comment._starting_pattern.source)),this._disabled.smarty||r.push(this.__patterns.smarty._starting_pattern.source),this._until_pattern&&r.push(this._until_pattern.source),this.__template_pattern=this._input.get_regexp("(?:"+r.join("|")+")")},n.prototype._read_template=function(){var r="",i=this._input.peek();if(i==="<"){var o=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&o==="?"&&(r=r||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&o==="%"&&(r=r||this.__patterns.erb.read())}else i==="{"&&(!this._disabled.handlebars&&!this._excluded.handlebars&&(r=r||this.__patterns.handlebars_comment.read(),r=r||this.__patterns.handlebars_unescaped.read(),r=r||this.__patterns.handlebars.read()),this._disabled.django||(!this._excluded.django&&!this._excluded.handlebars&&(r=r||this.__patterns.django_value.read()),this._excluded.django||(r=r||this.__patterns.django_comment.read(),r=r||this.__patterns.django.read())),this._disabled.smarty||this._disabled.django&&this._disabled.handlebars&&(r=r||this.__patterns.smarty_comment.read(),r=r||this.__patterns.smarty_literal.read(),r=r||this.__patterns.smarty.read()));return r},QI.TemplatablePattern=n,QI}var yJ;function Bw(){if(yJ)return Ip;yJ=1;var t=FB().InputScanner,e=rT().Tokenizer,n=rT().TOKEN,r=WB().Directives,i=Vge(),o=b2().Pattern,a=Fge().TemplatablePattern;function s(S,T){return T.indexOf(S)!==-1}var l={START_EXPR:"TK_START_EXPR",END_EXPR:"TK_END_EXPR",START_BLOCK:"TK_START_BLOCK",END_BLOCK:"TK_END_BLOCK",WORD:"TK_WORD",RESERVED:"TK_RESERVED",SEMICOLON:"TK_SEMICOLON",STRING:"TK_STRING",EQUALS:"TK_EQUALS",OPERATOR:"TK_OPERATOR",COMMA:"TK_COMMA",BLOCK_COMMENT:"TK_BLOCK_COMMENT",COMMENT:"TK_COMMENT",DOT:"TK_DOT",UNKNOWN:"TK_UNKNOWN",START:n.START,RAW:n.RAW,EOF:n.EOF},u=new r(/\/\*/,/\*\//),c=/0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/,f=/[0-9]/,d=/[^\d\.]/,p=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),v=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";v=v.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),v="\\?\\.(?!\\d) "+v,v=v.replace(/ /g,"|");var g=new RegExp(v),m="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","),y=m.concat(["do","in","of","else","get","set","new","catch","finally","typeof","yield","async","await","from","as","class","extends"]),b=new RegExp("^(?:"+y.join("|")+")$"),O,w=function(S,T){e.call(this,S,T),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var $=new o(this._input),A=new a(this._input).read_options(this._options);this.__patterns={template:A,identifier:A.starting_with(i.identifier).matching(i.identifierMatch),number:$.matching(c),punct:$.matching(g),comment:$.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:$.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:$.matching(/<!--/),html_comment_end:$.matching(/-->/),include:$.starting_with(/#include/).until_after(i.lineBreak),shebang:$.starting_with(/#!/).until_after(i.lineBreak),xml:$.matching(/[\s\S]*?<(\/?)([-a-zA-Z:0-9_.]+|{[^}]+?}|!\[CDATA\[[^\]]*?\]\]|)(\s*{[^}]+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{([^{}]|{[^}]+?})+?}))*\s*(\/?)\s*>/),single_quote:A.until(/['\\\n\r\u2028\u2029]/),double_quote:A.until(/["\\\n\r\u2028\u2029]/),template_text:A.until(/[`\\$]/),template_expression:A.until(/[`}\\]/)}};w.prototype=new e,w.prototype._is_comment=function(S){return S.type===l.COMMENT||S.type===l.BLOCK_COMMENT||S.type===l.UNKNOWN},w.prototype._is_opening=function(S){return S.type===l.START_BLOCK||S.type===l.START_EXPR},w.prototype._is_closing=function(S,T){return(S.type===l.END_BLOCK||S.type===l.END_EXPR)&&T&&(S.text==="]"&&T.text==="["||S.text===")"&&T.text==="("||S.text==="}"&&T.text==="{")},w.prototype._reset=function(){O=!1},w.prototype._get_next_token=function(S,T){var $=null;this._readWhitespace();var A=this._input.peek();return A===null?this._create_token(l.EOF,""):($=$||this._read_non_javascript(A),$=$||this._read_string(A),$=$||this._read_pair(A,this._input.peek(1)),$=$||this._read_word(S),$=$||this._read_singles(A),$=$||this._read_comment(A),$=$||this._read_regexp(A,S),$=$||this._read_xml(A,S),$=$||this._read_punctuation(),$=$||this._create_token(l.UNKNOWN,this._input.next()),$)},w.prototype._read_word=function(S){var T;if(T=this.__patterns.identifier.read(),T!=="")return T=T.replace(i.allLineBreaks,`
  432. `),!(S.type===l.DOT||S.type===l.RESERVED&&(S.text==="set"||S.text==="get"))&&b.test(T)?(T==="in"||T==="of")&&(S.type===l.WORD||S.type===l.STRING)?this._create_token(l.OPERATOR,T):this._create_token(l.RESERVED,T):this._create_token(l.WORD,T);if(T=this.__patterns.number.read(),T!=="")return this._create_token(l.WORD,T)},w.prototype._read_singles=function(S){var T=null;return S==="("||S==="["?T=this._create_token(l.START_EXPR,S):S===")"||S==="]"?T=this._create_token(l.END_EXPR,S):S==="{"?T=this._create_token(l.START_BLOCK,S):S==="}"?T=this._create_token(l.END_BLOCK,S):S===";"?T=this._create_token(l.SEMICOLON,S):S==="."&&d.test(this._input.peek(1))?T=this._create_token(l.DOT,S):S===","&&(T=this._create_token(l.COMMA,S)),T&&this._input.next(),T},w.prototype._read_pair=function(S,T){var $=null;return S==="#"&&T==="{"&&($=this._create_token(l.START_BLOCK,S+T)),$&&(this._input.next(),this._input.next()),$},w.prototype._read_punctuation=function(){var S=this.__patterns.punct.read();if(S!=="")return S==="="?this._create_token(l.EQUALS,S):S==="?."?this._create_token(l.DOT,S):this._create_token(l.OPERATOR,S)},w.prototype._read_non_javascript=function(S){var T="";if(S==="#"){if(this._is_first_token()&&(T=this.__patterns.shebang.read(),T))return this._create_token(l.UNKNOWN,T.trim()+`
  433. `);if(T=this.__patterns.include.read(),T)return this._create_token(l.UNKNOWN,T.trim()+`
  434. `);S=this._input.next();var $="#";if(this._input.hasNext()&&this._input.testChar(f)){do S=this._input.next(),$+=S;while(this._input.hasNext()&&S!=="#"&&S!=="=");return S==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?($+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&($+="{}",this._input.next(),this._input.next())),this._create_token(l.WORD,$)}this._input.back()}else if(S==="<"&&this._is_first_token()){if(T=this.__patterns.html_comment_start.read(),T){for(;this._input.hasNext()&&!this._input.testChar(i.newline);)T+=this._input.next();return O=!0,this._create_token(l.COMMENT,T)}}else if(O&&S==="-"&&(T=this.__patterns.html_comment_end.read(),T))return O=!1,this._create_token(l.COMMENT,T);return null},w.prototype._read_comment=function(S){var T=null;if(S==="/"){var $="";if(this._input.peek(1)==="*"){$=this.__patterns.block_comment.read();var A=u.get_directives($);A&&A.ignore==="start"&&($+=u.readIgnored(this._input)),$=$.replace(i.allLineBreaks,`
  435. `),T=this._create_token(l.BLOCK_COMMENT,$),T.directives=A}else this._input.peek(1)==="/"&&($=this.__patterns.comment.read(),T=this._create_token(l.COMMENT,$))}return T},w.prototype._read_string=function(S){if(S==="`"||S==="'"||S==='"'){var T=this._input.next();return this.has_char_escapes=!1,S==="`"?T+=this._read_string_recursive("`",!0,"${"):T+=this._read_string_recursive(S),this.has_char_escapes&&this._options.unescape_strings&&(T=x(T)),this._input.peek()===S&&(T+=this._input.next()),T=T.replace(i.allLineBreaks,`
  436. `),this._create_token(l.STRING,T)}return null},w.prototype._allow_regexp_or_xml=function(S){return S.type===l.RESERVED&&s(S.text,["return","case","throw","else","do","typeof","yield"])||S.type===l.END_EXPR&&S.text===")"&&S.opened.previous.type===l.RESERVED&&s(S.opened.previous.text,["if","while","for"])||s(S.type,[l.COMMENT,l.START_EXPR,l.START_BLOCK,l.START,l.END_BLOCK,l.OPERATOR,l.EQUALS,l.EOF,l.SEMICOLON,l.COMMA])},w.prototype._read_regexp=function(S,T){if(S==="/"&&this._allow_regexp_or_xml(T)){for(var $=this._input.next(),A=!1,P=!1;this._input.hasNext()&&(A||P||this._input.peek()!==S)&&!this._input.testChar(i.newline);)$+=this._input.peek(),A?A=!1:(A=this._input.peek()==="\\",this._input.peek()==="["?P=!0:this._input.peek()==="]"&&(P=!1)),this._input.next();return this._input.peek()===S&&($+=this._input.next(),$+=this._input.read(i.identifier)),this._create_token(l.STRING,$)}return null},w.prototype._read_xml=function(S,T){if(this._options.e4x&&S==="<"&&this._allow_regexp_or_xml(T)){var $="",A=this.__patterns.xml.read_match();if(A){for(var P=A[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),M=P.indexOf("{")===0,I=0;A;){var R=!!A[1],L=A[2],D=!!A[A.length-1]||L.slice(0,8)==="![CDATA[";if(!D&&(L===P||M&&L.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(R?--I:++I),$+=A[0],I<=0)break;A=this.__patterns.xml.read_match()}return A||($+=this._input.match(/[\s\S]*/g)[0]),$=$.replace(i.allLineBreaks,`
  437. `),this._create_token(l.STRING,$)}}return null};function x(S){for(var T="",$=0,A=new t(S),P=null;A.hasNext();)if(P=A.match(/([\s]|[^\\]|\\\\)+/g),P&&(T+=P[0]),A.peek()==="\\"){if(A.next(),A.peek()==="x")P=A.match(/x([0-9A-Fa-f]{2})/g);else if(A.peek()==="u")P=A.match(/u([0-9A-Fa-f]{4})/g),P||(P=A.match(/u\{([0-9A-Fa-f]+)\}/g));else{T+="\\",A.hasNext()&&(T+=A.next());continue}if(!P||($=parseInt(P[1],16),$>126&&$<=255&&P[0].indexOf("x")===0))return S;$>=0&&$<32||$>1114111?T+="\\"+P[0]:$===34||$===39||$===92?T+="\\"+String.fromCharCode($):T+=String.fromCharCode($)}return T}return w.prototype._read_string_recursive=function(S,T,$){var A,P;S==="'"?P=this.__patterns.single_quote:S==='"'?P=this.__patterns.double_quote:S==="`"?P=this.__patterns.template_text:S==="}"&&(P=this.__patterns.template_expression);for(var M=P.read(),I="";this._input.hasNext();){if(I=this._input.next(),I===S||!T&&i.newline.test(I)){this._input.back();break}else I==="\\"&&this._input.hasNext()?(A=this._input.peek(),A==="x"||A==="u"?this.has_char_escapes=!0:A==="\r"&&this._input.peek(1)===`
  438. `&&this._input.next(),I+=this._input.next()):$&&($==="${"&&I==="$"&&this._input.peek()==="{"&&(I+=this._input.next()),$===I&&(S==="`"?I+=this._read_string_recursive("}",T,"`"):I+=this._read_string_recursive("`",T,"${"),this._input.hasNext()&&(I+=this._input.next())));I+=P.read(),M+=I}return M},Ip.Tokenizer=w,Ip.TOKEN=l,Ip.positionable_operators=p.slice(),Ip.line_starters=m.slice(),Ip}var bJ;function I$t(){if(bJ)return DI;bJ=1;var t=VB().Output,e=Bge().Token,n=Vge(),r=zge().Options,i=Bw().Tokenizer,o=Bw().line_starters,a=Bw().positionable_operators,s=Bw().TOKEN;function l(P,M){return M.indexOf(P)!==-1}function u(P){return P.replace(/^\s+/g,"")}function c(P){for(var M={},I=0;I<P.length;I++)M[P[I].replace(/-/g,"_")]=P[I];return M}function f(P,M){return P&&P.type===s.RESERVED&&P.text===M}function d(P,M){return P&&P.type===s.RESERVED&&l(P.text,M)}var p=["case","return","do","if","throw","else","await","break","continue","async"],v=["before-newline","after-newline","preserve-newline"],g=c(v),m=[g.before_newline,g.preserve_newline],y={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function b(P,M){M.multiline_frame||M.mode===y.ForInitializer||M.mode===y.Conditional||P.remove_indent(M.start_line_index)}function O(P){P=P.replace(n.allLineBreaks,`
  439. `);for(var M=[],I=P.indexOf(`
  440. `);I!==-1;)M.push(P.substring(0,I)),P=P.substring(I+1),I=P.indexOf(`
  441. `);return P.length&&M.push(P),M}function w(P){return P===y.ArrayLiteral}function x(P){return l(P,[y.Expression,y.ForInitializer,y.Conditional])}function S(P,M){for(var I=0;I<P.length;I++){var R=P[I].trim();if(R.charAt(0)!==M)return!1}return!0}function T(P,M){for(var I=0,R=P.length,L;I<R;I++)if(L=P[I],L&&L.indexOf(M)!==0)return!1;return!0}function $(P,M){M=M||{},this._source_text=P||"",this._output=null,this._tokens=null,this._last_last_text=null,this._flags=null,this._previous_flags=null,this._flag_store=null,this._options=new r(M)}$.prototype.create_flags=function(P,M){var I=0;P&&(I=P.indentation_level,!this._output.just_added_newline()&&P.line_indent_level>I&&(I=P.line_indent_level));var R={mode:M,parent:P,last_token:P?P.last_token:new e(s.START_BLOCK,""),last_word:P?P.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,class_start_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,case_block:!1,indentation_level:I,alignment:0,line_indent_level:P?P.line_indent_level:I,start_line_index:this._output.get_line_number(),ternary_depth:0};return R},$.prototype._reset=function(P){var M=P.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new t(this._options,M),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(y.BlockStatement);var I=new i(P,this._options);return this._tokens=I.tokenize(),P},$.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var P,M=this._reset(this._source_text),I=this._options.eol;this._options.eol==="auto"&&(I=`
  442. `,M&&n.lineBreak.test(M||"")&&(I=M.match(n.lineBreak)[0]));for(var R=this._tokens.next();R;)this.handle_token(R),this._last_last_text=this._flags.last_token.text,this._flags.last_token=R,R=this._tokens.next();return P=this._output.get_code(I),P},$.prototype.handle_token=function(P,M){P.type===s.START_EXPR?this.handle_start_expr(P):P.type===s.END_EXPR?this.handle_end_expr(P):P.type===s.START_BLOCK?this.handle_start_block(P):P.type===s.END_BLOCK?this.handle_end_block(P):P.type===s.WORD?this.handle_word(P):P.type===s.RESERVED?this.handle_word(P):P.type===s.SEMICOLON?this.handle_semicolon(P):P.type===s.STRING?this.handle_string(P):P.type===s.EQUALS?this.handle_equals(P):P.type===s.OPERATOR?this.handle_operator(P):P.type===s.COMMA?this.handle_comma(P):P.type===s.BLOCK_COMMENT?this.handle_block_comment(P,M):P.type===s.COMMENT?this.handle_comment(P,M):P.type===s.DOT?this.handle_dot(P):P.type===s.EOF?this.handle_eof(P):P.type===s.UNKNOWN?this.handle_unknown(P,M):this.handle_unknown(P,M)},$.prototype.handle_whitespace_and_comments=function(P,M){var I=P.newlines,R=this._options.keep_array_indentation&&w(this._flags.mode);if(P.comments_before)for(var L=P.comments_before.next();L;)this.handle_whitespace_and_comments(L,M),this.handle_token(L,M),L=P.comments_before.next();if(R)for(var D=0;D<I;D+=1)this.print_newline(D>0,M);else if(this._options.max_preserve_newlines&&I>this._options.max_preserve_newlines&&(I=this._options.max_preserve_newlines),this._options.preserve_newlines&&I>1){this.print_newline(!1,M);for(var B=1;B<I;B+=1)this.print_newline(!0,M)}};var A=["async","break","continue","return","throw","yield"];return $.prototype.allow_wrap_or_preserved_newline=function(P,M){if(M=M===void 0?!1:M,!this._output.just_added_newline()){var I=this._options.preserve_newlines&&P.newlines||M,R=l(this._flags.last_token.text,a)||l(P.text,a);if(R){var L=l(this._flags.last_token.text,a)&&l(this._options.operator_position,m)||l(P.text,a);I=I&&L}if(I)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(d(this._flags.last_token,A))return;this._output.set_wrap_point()}}},$.prototype.print_newline=function(P,M){if(!M&&this._flags.last_token.text!==";"&&this._flags.last_token.text!==","&&this._flags.last_token.text!=="="&&(this._flags.last_token.type!==s.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++"))for(var I=this._tokens.peek();this._flags.mode===y.Statement&&!(this._flags.if_block&&f(I,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(P)&&(this._flags.multiline_frame=!0)},$.prototype.print_token_line_indentation=function(P){this._output.just_added_newline()&&(this._options.keep_array_indentation&&P.newlines&&(P.text==="["||w(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(P.whitespace_before),this._output.space_before_token=!1):this._output.set_indent(this._flags.indentation_level,this._flags.alignment)&&(this._flags.line_indent_level=this._flags.indentation_level))},$.prototype.print_token=function(P){if(this._output.raw){this._output.add_raw_token(P);return}if(this._options.comma_first&&P.previous&&P.previous.type===s.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var M=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push(M),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(P),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(P),this._output.non_breaking_space=!0,this._output.add_token(P.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},$.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},$.prototype.deindent=function(){this._flags.indentation_level>0&&(!this._flags.parent||this._flags.indentation_level>this._flags.parent.indentation_level)&&(this._flags.indentation_level-=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},$.prototype.set_mode=function(P){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,P),this._flags=this.create_flags(this._previous_flags,P),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},$.prototype.restore_mode=function(){this._flag_store.length>0&&(this._previous_flags=this._flags,this._flags=this._flag_store.pop(),this._previous_flags.mode===y.Statement&&b(this._output,this._previous_flags),this._output.set_indent(this._flags.indentation_level,this._flags.alignment))},$.prototype.start_of_object_property=function(){return this._flags.parent.mode===y.ObjectLiteral&&this._flags.mode===y.Statement&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||d(this._flags.last_token,["get","set"]))},$.prototype.start_of_statement=function(P){var M=!1;return M=M||d(this._flags.last_token,["var","let","const"])&&P.type===s.WORD,M=M||f(this._flags.last_token,"do"),M=M||!(this._flags.parent.mode===y.ObjectLiteral&&this._flags.mode===y.Statement)&&d(this._flags.last_token,A)&&!P.newlines,M=M||f(this._flags.last_token,"else")&&!(f(P,"if")&&!P.comments_before),M=M||this._flags.last_token.type===s.END_EXPR&&(this._previous_flags.mode===y.ForInitializer||this._previous_flags.mode===y.Conditional),M=M||this._flags.last_token.type===s.WORD&&this._flags.mode===y.BlockStatement&&!this._flags.in_case&&!(P.text==="--"||P.text==="++")&&this._last_last_text!=="function"&&P.type!==s.WORD&&P.type!==s.RESERVED,M=M||this._flags.mode===y.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||d(this._flags.last_token,["get","set"])),M?(this.set_mode(y.Statement),this.indent(),this.handle_whitespace_and_comments(P,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(P,d(P,["do","for","if","while"])),!0):!1},$.prototype.handle_start_expr=function(P){this.start_of_statement(P)||this.handle_whitespace_and_comments(P);var M=y.Expression;if(P.text==="["){if(this._flags.last_token.type===s.WORD||this._flags.last_token.text===")"){d(this._flags.last_token,o)&&(this._output.space_before_token=!0),this.print_token(P),this.set_mode(M),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}M=y.ArrayLiteral,w(this._flags.mode)&&(this._flags.last_token.text==="["||this._flags.last_token.text===","&&(this._last_last_text==="]"||this._last_last_text==="}"))&&(this._options.keep_array_indentation||this.print_newline()),l(this._flags.last_token.type,[s.START_EXPR,s.END_EXPR,s.WORD,s.OPERATOR,s.DOT])||(this._output.space_before_token=!0)}else{if(this._flags.last_token.type===s.RESERVED)this._flags.last_token.text==="for"?(this._output.space_before_token=this._options.space_before_conditional,M=y.ForInitializer):l(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,M=y.Conditional):l(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&P.whitespace_before===""?this._output.space_before_token=!1:(l(this._flags.last_token.text,o)||this._flags.last_token.text==="catch")&&(this._output.space_before_token=!0);else if(this._flags.last_token.type===s.EQUALS||this._flags.last_token.type===s.OPERATOR)this.start_of_object_property()||this.allow_wrap_or_preserved_newline(P);else if(this._flags.last_token.type===s.WORD){this._output.space_before_token=!1;var I=this._tokens.peek(-3);if(this._options.space_after_named_function&&I){var R=this._tokens.peek(-4);d(I,["async","function"])||I.text==="*"&&d(R,["async","function"])?this._output.space_before_token=!0:this._flags.mode===y.ObjectLiteral?(I.text==="{"||I.text===","||I.text==="*"&&(R.text==="{"||R.text===","))&&(this._output.space_before_token=!0):this._flags.parent&&this._flags.parent.class_start_block&&(this._output.space_before_token=!0)}}else this.allow_wrap_or_preserved_newline(P);(this._flags.last_token.type===s.RESERVED&&(this._flags.last_word==="function"||this._flags.last_word==="typeof")||this._flags.last_token.text==="*"&&(l(this._last_last_text,["function","yield"])||this._flags.mode===y.ObjectLiteral&&l(this._last_last_text,["{",","])))&&(this._output.space_before_token=this._options.space_after_anon_function)}this._flags.last_token.text===";"||this._flags.last_token.type===s.START_BLOCK?this.print_newline():(this._flags.last_token.type===s.END_EXPR||this._flags.last_token.type===s.START_EXPR||this._flags.last_token.type===s.END_BLOCK||this._flags.last_token.text==="."||this._flags.last_token.type===s.COMMA)&&this.allow_wrap_or_preserved_newline(P,P.newlines),this.print_token(P),this.set_mode(M),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},$.prototype.handle_end_expr=function(P){for(;this._flags.mode===y.Statement;)this.restore_mode();this.handle_whitespace_and_comments(P),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(P,P.text==="]"&&w(this._flags.mode)&&!this._options.keep_array_indentation),this._options.space_in_paren&&(this._flags.last_token.type===s.START_EXPR&&!this._options.space_in_empty_paren?(this._output.trim(),this._output.space_before_token=!1):this._output.space_before_token=!0),this.deindent(),this.print_token(P),this.restore_mode(),b(this._output,this._previous_flags),this._flags.do_while&&this._previous_flags.mode===y.Conditional&&(this._previous_flags.mode=y.Expression,this._flags.do_block=!1,this._flags.do_while=!1)},$.prototype.handle_start_block=function(P){this.handle_whitespace_and_comments(P);var M=this._tokens.peek(),I=this._tokens.peek(1);this._flags.last_word==="switch"&&this._flags.last_token.type===s.END_EXPR?(this.set_mode(y.BlockStatement),this._flags.in_case_statement=!0):this._flags.case_body?this.set_mode(y.BlockStatement):I&&(l(I.text,[":",","])&&l(M.type,[s.STRING,s.WORD,s.RESERVED])||l(M.text,["get","set","..."])&&l(I.type,[s.WORD,s.RESERVED]))?l(this._last_last_text,["class","interface"])&&!l(I.text,[":",","])?this.set_mode(y.BlockStatement):this.set_mode(y.ObjectLiteral):this._flags.last_token.type===s.OPERATOR&&this._flags.last_token.text==="=>"?this.set_mode(y.BlockStatement):l(this._flags.last_token.type,[s.EQUALS,s.START_EXPR,s.COMMA,s.OPERATOR])||d(this._flags.last_token,["return","throw","import","default"])?this.set_mode(y.ObjectLiteral):this.set_mode(y.BlockStatement),this._flags.last_token&&d(this._flags.last_token.previous,["class","extends"])&&(this._flags.class_start_block=!0);var R=!M.comments_before&&M.text==="}",L=R&&this._flags.last_word==="function"&&this._flags.last_token.type===s.END_EXPR;if(this._options.brace_preserve_inline){var D=0,B=null;this._flags.inline_frame=!0;do if(D+=1,B=this._tokens.peek(D-1),B.newlines){this._flags.inline_frame=!1;break}while(B.type!==s.EOF&&!(B.type===s.END_BLOCK&&B.opened===P))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&P.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==s.OPERATOR&&(L||this._flags.last_token.type===s.EQUALS||d(this._flags.last_token,p)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(w(this._previous_flags.mode)&&(this._flags.last_token.type===s.START_EXPR||this._flags.last_token.type===s.COMMA)&&((this._flags.last_token.type===s.COMMA||this._options.space_in_paren)&&(this._output.space_before_token=!0),(this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR&&this._flags.inline_frame)&&(this.allow_wrap_or_preserved_newline(P),this._previous_flags.multiline_frame=this._previous_flags.multiline_frame||this._flags.multiline_frame,this._flags.multiline_frame=!1)),this._flags.last_token.type!==s.OPERATOR&&this._flags.last_token.type!==s.START_EXPR&&(l(this._flags.last_token.type,[s.START_BLOCK,s.SEMICOLON])&&!this._flags.inline_frame?this.print_newline():this._output.space_before_token=!0)),this.print_token(P),this.indent(),!R&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},$.prototype.handle_end_block=function(P){for(this.handle_whitespace_and_comments(P);this._flags.mode===y.Statement;)this.restore_mode();var M=this._flags.last_token.type===s.START_BLOCK;this._flags.inline_frame&&!M?this._output.space_before_token=!0:this._options.brace_style==="expand"?M||this.print_newline():M||(w(this._flags.mode)&&this._options.keep_array_indentation?(this._options.keep_array_indentation=!1,this.print_newline(),this._options.keep_array_indentation=!0):this.print_newline()),this.restore_mode(),this.print_token(P)},$.prototype.handle_word=function(P){if(P.type===s.RESERVED){if(l(P.text,["set","get"])&&this._flags.mode!==y.ObjectLiteral)P.type=s.WORD;else if(P.text==="import"&&l(this._tokens.peek().text,["(","."]))P.type=s.WORD;else if(l(P.text,["as","from"])&&!this._flags.import_block)P.type=s.WORD;else if(this._flags.mode===y.ObjectLiteral){var M=this._tokens.peek();M.text===":"&&(P.type=s.WORD)}}if(this.start_of_statement(P)?d(this._flags.last_token,["var","let","const"])&&P.type===s.WORD&&(this._flags.declaration_statement=!0):P.newlines&&!x(this._flags.mode)&&(this._flags.last_token.type!==s.OPERATOR||this._flags.last_token.text==="--"||this._flags.last_token.text==="++")&&this._flags.last_token.type!==s.EQUALS&&(this._options.preserve_newlines||!d(this._flags.last_token,["var","let","const","set","get"]))?(this.handle_whitespace_and_comments(P),this.print_newline()):this.handle_whitespace_and_comments(P),this._flags.do_block&&!this._flags.do_while)if(f(P,"while")){this._output.space_before_token=!0,this.print_token(P),this._output.space_before_token=!0,this._flags.do_while=!0;return}else this.print_newline(),this._flags.do_block=!1;if(this._flags.if_block)if(!this._flags.else_block&&f(P,"else"))this._flags.else_block=!0;else{for(;this._flags.mode===y.Statement;)this.restore_mode();this._flags.if_block=!1,this._flags.else_block=!1}if(this._flags.in_case_statement&&d(P,["case","default"])){this.print_newline(),!this._flags.case_block&&(this._flags.case_body||this._options.jslint_happy)&&this.deindent(),this._flags.case_body=!1,this.print_token(P),this._flags.in_case=!0;return}if((this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR||this._flags.last_token.type===s.EQUALS||this._flags.last_token.type===s.OPERATOR)&&!this.start_of_object_property()&&!(l(this._flags.last_token.text,["+","-"])&&this._last_last_text===":"&&this._flags.parent.mode===y.ObjectLiteral)&&this.allow_wrap_or_preserved_newline(P),f(P,"function")){(l(this._flags.last_token.text,["}",";"])||this._output.just_added_newline()&&!(l(this._flags.last_token.text,["(","[","{",":","=",","])||this._flags.last_token.type===s.OPERATOR))&&!this._output.just_added_blankline()&&!P.comments_before&&(this.print_newline(),this.print_newline(!0)),this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD?d(this._flags.last_token,["get","set","new","export"])||d(this._flags.last_token,A)?this._output.space_before_token=!0:f(this._flags.last_token,"default")&&this._last_last_text==="export"?this._output.space_before_token=!0:this._flags.last_token.text==="declare"?this._output.space_before_token=!0:this.print_newline():this._flags.last_token.type===s.OPERATOR||this._flags.last_token.text==="="?this._output.space_before_token=!0:!this._flags.multiline_frame&&(x(this._flags.mode)||w(this._flags.mode))||this.print_newline(),this.print_token(P),this._flags.last_word=P.text;return}var I="NONE";if(this._flags.last_token.type===s.END_BLOCK?this._previous_flags.inline_frame?I="SPACE":d(P,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&P.newlines?I="NEWLINE":(I="SPACE",this._output.space_before_token=!0):I="NEWLINE":this._flags.last_token.type===s.SEMICOLON&&this._flags.mode===y.BlockStatement?I="NEWLINE":this._flags.last_token.type===s.SEMICOLON&&x(this._flags.mode)?I="SPACE":this._flags.last_token.type===s.STRING?I="NEWLINE":this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD||this._flags.last_token.text==="*"&&(l(this._last_last_text,["function","yield"])||this._flags.mode===y.ObjectLiteral&&l(this._last_last_text,["{",","]))?I="SPACE":this._flags.last_token.type===s.START_BLOCK?this._flags.inline_frame?I="SPACE":I="NEWLINE":this._flags.last_token.type===s.END_EXPR&&(this._output.space_before_token=!0,I="NEWLINE"),d(P,o)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?I="SPACE":I="NEWLINE"),d(P,["else","catch","finally"]))if((!(this._flags.last_token.type===s.END_BLOCK&&this._previous_flags.mode===y.BlockStatement)||this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&P.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var R=this._output.current_line;R.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else I==="NEWLINE"?d(this._flags.last_token,p)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&d(P,["var","let","const"])?this._output.space_before_token=!0:this._flags.last_token.type!==s.END_EXPR?(this._flags.last_token.type!==s.START_EXPR||!d(P,["var","let","const"]))&&this._flags.last_token.text!==":"&&(f(P,"if")&&f(P.previous,"else")?this._output.space_before_token=!0:this.print_newline()):d(P,o)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&w(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():I==="SPACE"&&(this._output.space_before_token=!0);P.previous&&(P.previous.type===s.WORD||P.previous.type===s.RESERVED)&&(this._output.space_before_token=!0),this.print_token(P),this._flags.last_word=P.text,P.type===s.RESERVED&&(P.text==="do"?this._flags.do_block=!0:P.text==="if"?this._flags.if_block=!0:P.text==="import"?this._flags.import_block=!0:this._flags.import_block&&f(P,"from")&&(this._flags.import_block=!1))},$.prototype.handle_semicolon=function(P){this.start_of_statement(P)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(P);for(var M=this._tokens.peek();this._flags.mode===y.Statement&&!(this._flags.if_block&&f(M,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(P)},$.prototype.handle_string=function(P){P.text.startsWith("`")&&P.newlines===0&&P.whitespace_before===""&&(P.previous.text===")"||this._flags.last_token.type===s.WORD)||(this.start_of_statement(P)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(P),this._flags.last_token.type===s.RESERVED||this._flags.last_token.type===s.WORD||this._flags.inline_frame?this._output.space_before_token=!0:this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR||this._flags.last_token.type===s.EQUALS||this._flags.last_token.type===s.OPERATOR?this.start_of_object_property()||this.allow_wrap_or_preserved_newline(P):P.text.startsWith("`")&&this._flags.last_token.type===s.END_EXPR&&(P.previous.text==="]"||P.previous.text===")")&&P.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(P)},$.prototype.handle_equals=function(P){this.start_of_statement(P)||this.handle_whitespace_and_comments(P),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(P),this._output.space_before_token=!0},$.prototype.handle_comma=function(P){this.handle_whitespace_and_comments(P,!0),this.print_token(P),this._output.space_before_token=!0,this._flags.declaration_statement?(x(this._flags.parent.mode)&&(this._flags.declaration_assignment=!1),this._flags.declaration_assignment?(this._flags.declaration_assignment=!1,this.print_newline(!1,!0)):this._options.comma_first&&this.allow_wrap_or_preserved_newline(P)):this._flags.mode===y.ObjectLiteral||this._flags.mode===y.Statement&&this._flags.parent.mode===y.ObjectLiteral?(this._flags.mode===y.Statement&&this.restore_mode(),this._flags.inline_frame||this.print_newline()):this._options.comma_first&&this.allow_wrap_or_preserved_newline(P)},$.prototype.handle_operator=function(P){var M=P.text==="*"&&(d(this._flags.last_token,["function","yield"])||l(this._flags.last_token.type,[s.START_BLOCK,s.COMMA,s.END_BLOCK,s.SEMICOLON])),I=l(P.text,["-","+"])&&(l(this._flags.last_token.type,[s.START_BLOCK,s.START_EXPR,s.EQUALS,s.OPERATOR])||l(this._flags.last_token.text,o)||this._flags.last_token.text===",");if(!this.start_of_statement(P)){var R=!M;this.handle_whitespace_and_comments(P,R)}if(P.text==="*"&&this._flags.last_token.type===s.DOT){this.print_token(P);return}if(P.text==="::"){this.print_token(P);return}if(l(P.text,["-","+"])&&this.start_of_object_property()){this.print_token(P);return}if(this._flags.last_token.type===s.OPERATOR&&l(this._options.operator_position,m)&&this.allow_wrap_or_preserved_newline(P),P.text===":"&&this._flags.in_case){this.print_token(P),this._flags.in_case=!1,this._flags.case_body=!0,this._tokens.peek().type!==s.START_BLOCK?(this.indent(),this.print_newline(),this._flags.case_block=!1):(this._flags.case_block=!0,this._output.space_before_token=!0);return}var L=!0,D=!0,B=!1;if(P.text===":"?this._flags.ternary_depth===0?L=!1:(this._flags.ternary_depth-=1,B=!0):P.text==="?"&&(this._flags.ternary_depth+=1),!I&&!M&&this._options.preserve_newlines&&l(P.text,a)){var F=P.text===":",z=F&&B,W=F&&!B;switch(this._options.operator_position){case g.before_newline:this._output.space_before_token=!W,this.print_token(P),(!F||z)&&this.allow_wrap_or_preserved_newline(P),this._output.space_before_token=!0;return;case g.after_newline:this._output.space_before_token=!0,!F||z?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(P):this._output.space_before_token=!1,this.print_token(P),this._output.space_before_token=!0;return;case g.preserve_newline:W||this.allow_wrap_or_preserved_newline(P),L=!(this._output.just_added_newline()||W),this._output.space_before_token=L,this.print_token(P),this._output.space_before_token=!0;return}}if(M){this.allow_wrap_or_preserved_newline(P),L=!1;var j=this._tokens.peek();D=j&&l(j.type,[s.WORD,s.RESERVED])}else if(P.text==="...")this.allow_wrap_or_preserved_newline(P),L=this._flags.last_token.type===s.START_BLOCK,D=!1;else if(l(P.text,["--","++","!","~"])||I){if((this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR)&&this.allow_wrap_or_preserved_newline(P),L=!1,D=!1,P.newlines&&(P.text==="--"||P.text==="++"||P.text==="~")){var H=d(this._flags.last_token,p)&&P.newlines;H&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(H,!0)}this._flags.last_token.text===";"&&x(this._flags.mode)&&(L=!0),this._flags.last_token.type===s.RESERVED?L=!0:this._flags.last_token.type===s.END_EXPR?L=!(this._flags.last_token.text==="]"&&(P.text==="--"||P.text==="++")):this._flags.last_token.type===s.OPERATOR&&(L=l(P.text,["--","-","++","+"])&&l(this._flags.last_token.text,["--","-","++","+"]),l(P.text,["+","-"])&&l(this._flags.last_token.text,["--","++"])&&(D=!0)),(this._flags.mode===y.BlockStatement&&!this._flags.inline_frame||this._flags.mode===y.Statement)&&(this._flags.last_token.text==="{"||this._flags.last_token.text===";")&&this.print_newline()}this._output.space_before_token=this._output.space_before_token||L,this.print_token(P),this._output.space_before_token=D},$.prototype.handle_block_comment=function(P,M){if(this._output.raw){this._output.add_raw_token(P),P.directives&&P.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(P.directives){this.print_newline(!1,M),this.print_token(P),P.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!n.newline.test(P.text)&&!P.newlines){this._output.space_before_token=!0,this.print_token(P),this._output.space_before_token=!0;return}else this.print_block_commment(P,M)},$.prototype.print_block_commment=function(P,M){var I=O(P.text),R,L=!1,D=!1,B=P.whitespace_before,F=B.length;if(this.print_newline(!1,M),this.print_token_line_indentation(P),this._output.add_token(I[0]),this.print_newline(!1,M),I.length>1){for(I=I.slice(1),L=S(I,"*"),D=T(I,B),L&&(this._flags.alignment=1),R=0;R<I.length;R++)L?(this.print_token_line_indentation(P),this._output.add_token(u(I[R]))):D&&I[R]?(this.print_token_line_indentation(P),this._output.add_token(I[R].substring(F))):(this._output.current_line.set_indent(-1),this._output.add_token(I[R])),this.print_newline(!1,M);this._flags.alignment=0}},$.prototype.handle_comment=function(P,M){P.newlines?this.print_newline(!1,M):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(P),this.print_newline(!1,M)},$.prototype.handle_dot=function(P){this.start_of_statement(P)||this.handle_whitespace_and_comments(P,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),d(this._flags.last_token,p)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(P,this._flags.last_token.text===")"&&this._options.break_chained_methods),this._options.unindent_chained_methods&&this._output.just_added_newline()&&this.deindent(),this.print_token(P)},$.prototype.handle_unknown=function(P,M){this.print_token(P),P.text[P.text.length-1]===`
  443. `&&this.print_newline(!1,M)},$.prototype.handle_eof=function(P){for(;this._flags.mode===y.Statement;)this.restore_mode();this.handle_whitespace_and_comments(P)},DI.Beautifier=$,DI}var _J;function D$t(){if(_J)return Nw.exports;_J=1;var t=I$t().Beautifier,e=zge().Options;function n(r,i){var o=new t(r,i);return o.beautify()}return Nw.exports=n,Nw.exports.defaultOptions=function(){return new e},Nw.exports}var Vw={exports:{}},HI={},GI={},OJ;function Wge(){if(OJ)return GI;OJ=1;var t=zB().Options;function e(n){t.call(this,n,"css"),this.selector_separator_newline=this._get_boolean("selector_separator_newline",!0),this.newline_between_rules=this._get_boolean("newline_between_rules",!0);var r=this._get_boolean("space_around_selector_separator");this.space_around_combinator=this._get_boolean("space_around_combinator")||r;var i=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_style="collapse";for(var o=0;o<i.length;o++)i[o]!=="expand"?this.brace_style="collapse":this.brace_style=i[o]}return e.prototype=new t,GI.Options=e,GI}var wJ;function R$t(){if(wJ)return HI;wJ=1;var t=Wge().Options,e=VB().Output,n=FB().InputScanner,r=WB().Directives,i=new r(/\/\*/,/\*\//),o=/\r\n|[\r\n]/,a=/\r\n|[\r\n]/g,s=/\s/,l=/(?:\s|\n)+/g,u=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,c=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function f(d,p){this._source_text=d||"",this._options=new t(p),this._ch=null,this._input=null,this.NESTED_AT_RULE={page:!0,"font-face":!0,keyframes:!0,media:!0,supports:!0,document:!0},this.CONDITIONAL_GROUP_RULE={media:!0,supports:!0,document:!0},this.NON_SEMICOLON_NEWLINE_PROPERTY=["grid-template-areas","grid-template"]}return f.prototype.eatString=function(d){var p="";for(this._ch=this._input.next();this._ch;){if(p+=this._ch,this._ch==="\\")p+=this._input.next();else if(d.indexOf(this._ch)!==-1||this._ch===`
  444. `)break;this._ch=this._input.next()}return p},f.prototype.eatWhitespace=function(d){for(var p=s.test(this._input.peek()),v=0;s.test(this._input.peek());)this._ch=this._input.next(),d&&this._ch===`
  445. `&&(v===0||v<this._options.max_preserve_newlines)&&(v++,this._output.add_new_line(!0));return p},f.prototype.foundNestedPseudoClass=function(){for(var d=0,p=1,v=this._input.peek(p);v;){if(v==="{")return!0;if(v==="(")d+=1;else if(v===")"){if(d===0)return!1;d-=1}else if(v===";"||v==="}")return!1;p++,v=this._input.peek(p)}return!1},f.prototype.print_string=function(d){this._output.set_indent(this._indentLevel),this._output.non_breaking_space=!0,this._output.add_token(d)},f.prototype.preserveSingleSpace=function(d){d&&(this._output.space_before_token=!0)},f.prototype.indent=function(){this._indentLevel++},f.prototype.outdent=function(){this._indentLevel>0&&this._indentLevel--},f.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var d=this._source_text,p=this._options.eol;p==="auto"&&(p=`
  446. `,d&&o.test(d||"")&&(p=d.match(o)[0])),d=d.replace(a,`
  447. `);var v=d.match(/^[\t ]*/)[0];this._output=new e(this._options,v),this._input=new n(d),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var g=0,m=!1,y=!1,b=!1,O=!1,w=!1,x=this._ch,S=!1,T,$,A;T=this._input.read(l),$=T!=="",A=x,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),x=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var P=this._input.read(u),M=i.get_directives(P);M&&M.ignore==="start"&&(P+=i.readIgnored(this._input)),this.print_string(P),this.eatWhitespace(!0),this._output.add_new_line()}else if(this._ch==="/"&&this._input.peek()==="/")this._output.space_before_token=!0,this._input.back(),this.print_string(this._input.read(c)),this.eatWhitespace(!0);else if(this._ch==="$"){this.preserveSingleSpace($),this.print_string(this._ch);var I=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);I.match(/[ :]$/)&&(I=this.eatString(": ").replace(/\s+$/,""),this.print_string(I),this._output.space_before_token=!0),g===0&&I.indexOf(":")!==-1&&(y=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace($),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var R=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);R.match(/[ :]$/)&&(R=this.eatString(": ").replace(/\s+$/,""),this.print_string(R),this._output.space_before_token=!0),g===0&&R.indexOf(":")!==-1?(y=!0,this.indent()):R in this.NESTED_AT_RULE?(this._nestedLevel+=1,R in this.CONDITIONAL_GROUP_RULE&&(b=!0)):g===0&&!y&&(O=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace($),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")y&&(y=!1,this.outdent()),O=!1,b?(b=!1,m=this._indentLevel>=this._nestedLevel):m=this._indentLevel>=this._nestedLevel-1,this._options.newline_between_rules&&m&&this._output.previous_line&&this._output.previous_line.item(-1)!=="{"&&this._output.ensure_empty_line_above("/",","),this._output.space_before_token=!0,this._options.brace_style==="expand"?(this._output.add_new_line(),this.print_string(this._ch),this.indent(),this._output.set_indent(this._indentLevel)):(A==="("?this._output.space_before_token=!1:A!==","&&this.indent(),this.print_string(this._ch)),this.eatWhitespace(!0),this._output.add_new_line();else if(this._ch==="}")this.outdent(),this._output.add_new_line(),A==="{"&&this._output.trim(!0),y&&(this.outdent(),y=!1),this.print_string(this._ch),m=!1,this._nestedLevel&&this._nestedLevel--,this.eatWhitespace(!0),this._output.add_new_line(),this._options.newline_between_rules&&!this._output.just_added_blankline()&&this._input.peek()!=="}"&&this._output.add_new_line(!0),this._input.peek()===")"&&(this._output.trim(!0),this._options.brace_style==="expand"&&this._output.add_new_line(!0));else if(this._ch===":"){for(var L=0;L<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;L++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[L])){S=!0;break}(m||b)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!O&&g===0?(this.print_string(":"),y||(y=!0,this._output.space_before_token=!0,this.eatWhitespace(!0),this.indent())):(this._input.lookBack(" ")&&(this._output.space_before_token=!0),this._input.peek()===":"?(this._ch=this._input.next(),this.print_string("::")):this.print_string(":"))}else if(this._ch==='"'||this._ch==="'"){var D=A==='"'||A==="'";this.preserveSingleSpace(D||$),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")S=!1,g===0?(y&&(this.outdent(),y=!1),O=!1,this.print_string(this._ch),this.eatWhitespace(!0),this._input.peek()!=="/"&&this._output.add_new_line()):(this.print_string(this._ch),this.eatWhitespace(!0),this._output.space_before_token=!0);else if(this._ch==="(")if(this._input.lookBack("url"))this.print_string(this._ch),this.eatWhitespace(),g++,this.indent(),this._ch=this._input.next(),this._ch===")"||this._ch==='"'||this._ch==="'"?this._input.back():this._ch&&(this.print_string(this._ch+this.eatString(")")),g&&(g--,this.outdent()));else{var B=!1;this._input.lookBack("with")&&(B=!0),this.preserveSingleSpace($||B),this.print_string(this._ch),y&&A==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),w=!0):(this.eatWhitespace(),g++,this.indent())}else if(this._ch===")")g&&(g--,this.outdent()),w&&this._input.peek()===";"&&this._options.selector_separator_newline&&(w=!1,this.outdent(),this._output.add_new_line()),this.print_string(this._ch);else if(this._ch===",")this.print_string(this._ch),this.eatWhitespace(!0),this._options.selector_separator_newline&&(!y||w)&&g===0&&!O?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!y&&g===0)this._options.space_around_combinator?(this._output.space_before_token=!0,this.print_string(this._ch),this._output.space_before_token=!0):(this.print_string(this._ch),this.eatWhitespace(),this._ch&&s.test(this._ch)&&(this._ch=""));else if(this._ch==="]")this.print_string(this._ch);else if(this._ch==="[")this.preserveSingleSpace($),this.print_string(this._ch);else if(this._ch==="=")this.eatWhitespace(),this.print_string("="),s.test(this._ch)&&(this._ch="");else if(this._ch==="!"&&!this._input.lookBack("\\"))this._output.space_before_token=!0,this.print_string(this._ch);else{var F=A==='"'||A==="'";this.preserveSingleSpace(F||$),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
  448. `&&S&&this._output.add_new_line()}var z=this._output.get_code(p);return z},HI.Beautifier=f,HI}var xJ;function k$t(){if(xJ)return Vw.exports;xJ=1;var t=R$t().Beautifier,e=Wge().Options;function n(r,i){var o=new t(r,i);return o.beautify()}return Vw.exports=n,Vw.exports.defaultOptions=function(){return new e},Vw.exports}var zw={exports:{}},jI={},UI={},SJ;function Qge(){if(SJ)return UI;SJ=1;var t=zB().Options;function e(n){t.call(this,n,"html"),this.templating.length===1&&this.templating[0]==="auto"&&(this.templating=["django","erb","handlebars","php"]),this.indent_inner_html=this._get_boolean("indent_inner_html"),this.indent_body_inner_html=this._get_boolean("indent_body_inner_html",!0),this.indent_head_inner_html=this._get_boolean("indent_head_inner_html",!0),this.indent_handlebars=this._get_boolean("indent_handlebars",!0),this.wrap_attributes=this._get_selection("wrap_attributes",["auto","force","force-aligned","force-expand-multiline","aligned-multiple","preserve","preserve-aligned"]),this.wrap_attributes_min_attrs=this._get_number("wrap_attributes_min_attrs",2),this.wrap_attributes_indent_size=this._get_number("wrap_attributes_indent_size",this.indent_size),this.extra_liners=this._get_array("extra_liners",["head","body","/html"]),this.inline=this._get_array("inline",["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","big","strike","tt"]),this.inline_custom_elements=this._get_boolean("inline_custom_elements",!0),this.void_elements=this._get_array("void_elements",["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","basefont","isindex"]),this.unformatted=this._get_array("unformatted",[]),this.content_unformatted=this._get_array("content_unformatted",["pre","textarea"]),this.unformatted_content_delimiter=this._get_characters("unformatted_content_delimiter"),this.indent_scripts=this._get_selection("indent_scripts",["normal","keep","separate"])}return e.prototype=new t,UI.Options=e,UI}var Fw={},CJ;function TJ(){if(CJ)return Fw;CJ=1;var t=rT().Tokenizer,e=rT().TOKEN,n=WB().Directives,r=Fge().TemplatablePattern,i=b2().Pattern,o={TAG_OPEN:"TK_TAG_OPEN",TAG_CLOSE:"TK_TAG_CLOSE",CONTROL_FLOW_OPEN:"TK_CONTROL_FLOW_OPEN",CONTROL_FLOW_CLOSE:"TK_CONTROL_FLOW_CLOSE",ATTRIBUTE:"TK_ATTRIBUTE",EQUALS:"TK_EQUALS",VALUE:"TK_VALUE",COMMENT:"TK_COMMENT",TEXT:"TK_TEXT",UNKNOWN:"TK_UNKNOWN",START:e.START,RAW:e.RAW,EOF:e.EOF},a=new n(/<\!--/,/-->/),s=function(l,u){t.call(this,l,u),this._current_tag_name="";var c=new r(this._input).read_options(this._options),f=new i(this._input);if(this.__patterns={word:c.until(/[\n\r\t <]/),word_control_flow_close_excluded:c.until(/[\n\r\t <}]/),single_quote:c.until_after(/'/),double_quote:c.until_after(/"/),attribute:c.until(/[\n\r\t =>]|\/>/),element_name:c.until(/[\n\r\t >\/]/),angular_control_flow_start:f.matching(/\@[a-zA-Z]+[^({]*[({]/),handlebars_comment:f.starting_with(/{{!--/).until_after(/--}}/),handlebars:f.starting_with(/{{/).until_after(/}}/),handlebars_open:f.until(/[\n\r\t }]/),handlebars_raw_close:f.until(/}}/),comment:f.starting_with(/<!--/).until_after(/-->/),cdata:f.starting_with(/<!\[CDATA\[/).until_after(/]]>/),conditional_comment:f.starting_with(/<!\[/).until_after(/]>/),processing:f.starting_with(/<\?/).until_after(/\?>/)},this._options.indent_handlebars&&(this.__patterns.word=this.__patterns.word.exclude("handlebars"),this.__patterns.word_control_flow_close_excluded=this.__patterns.word_control_flow_close_excluded.exclude("handlebars")),this._unformatted_content_delimiter=null,this._options.unformatted_content_delimiter){var d=this._input.get_literal_regexp(this._options.unformatted_content_delimiter);this.__patterns.unformatted_content_delimiter=f.matching(d).until_after(d)}};return s.prototype=new t,s.prototype._is_comment=function(l){return!1},s.prototype._is_opening=function(l){return l.type===o.TAG_OPEN||l.type===o.CONTROL_FLOW_OPEN},s.prototype._is_closing=function(l,u){return l.type===o.TAG_CLOSE&&u&&((l.text===">"||l.text==="/>")&&u.text[0]==="<"||l.text==="}}"&&u.text[0]==="{"&&u.text[1]==="{")||l.type===o.CONTROL_FLOW_CLOSE&&l.text==="}"&&u.text.endsWith("{")},s.prototype._reset=function(){this._current_tag_name=""},s.prototype._get_next_token=function(l,u){var c=null;this._readWhitespace();var f=this._input.peek();return f===null?this._create_token(o.EOF,""):(c=c||this._read_open_handlebars(f,u),c=c||this._read_attribute(f,l,u),c=c||this._read_close(f,u),c=c||this._read_control_flows(f,u),c=c||this._read_raw_content(f,l,u),c=c||this._read_content_word(f,u),c=c||this._read_comment_or_cdata(f),c=c||this._read_processing(f),c=c||this._read_open(f,u),c=c||this._create_token(o.UNKNOWN,this._input.next()),c)},s.prototype._read_comment_or_cdata=function(l){var u=null,c=null,f=null;if(l==="<"){var d=this._input.peek(1);d==="!"&&(c=this.__patterns.comment.read(),c?(f=a.get_directives(c),f&&f.ignore==="start"&&(c+=a.readIgnored(this._input))):c=this.__patterns.cdata.read()),c&&(u=this._create_token(o.COMMENT,c),u.directives=f)}return u},s.prototype._read_processing=function(l){var u=null,c=null,f=null;if(l==="<"){var d=this._input.peek(1);(d==="!"||d==="?")&&(c=this.__patterns.conditional_comment.read(),c=c||this.__patterns.processing.read()),c&&(u=this._create_token(o.COMMENT,c),u.directives=f)}return u},s.prototype._read_open=function(l,u){var c=null,f=null;return(!u||u.type===o.CONTROL_FLOW_OPEN)&&l==="<"&&(c=this._input.next(),this._input.peek()==="/"&&(c+=this._input.next()),c+=this.__patterns.element_name.read(),f=this._create_token(o.TAG_OPEN,c)),f},s.prototype._read_open_handlebars=function(l,u){var c=null,f=null;return(!u||u.type===o.CONTROL_FLOW_OPEN)&&this._options.indent_handlebars&&l==="{"&&this._input.peek(1)==="{"&&(this._input.peek(2)==="!"?(c=this.__patterns.handlebars_comment.read(),c=c||this.__patterns.handlebars.read(),f=this._create_token(o.COMMENT,c)):(c=this.__patterns.handlebars_open.read(),f=this._create_token(o.TAG_OPEN,c))),f},s.prototype._read_control_flows=function(l,u){var c="",f=null;if(!this._options.templating.includes("angular")||!this._options.indent_handlebars)return f;if(l==="@"){if(c=this.__patterns.angular_control_flow_start.read(),c==="")return f;for(var d=c.endsWith("(")?1:0,p=0;!(c.endsWith("{")&&d===p);){var v=this._input.next();if(v===null)break;v==="("?d++:v===")"&&p++,c+=v}f=this._create_token(o.CONTROL_FLOW_OPEN,c)}else l==="}"&&u&&u.type===o.CONTROL_FLOW_OPEN&&(c=this._input.next(),f=this._create_token(o.CONTROL_FLOW_CLOSE,c));return f},s.prototype._read_close=function(l,u){var c=null,f=null;return u&&u.type===o.TAG_OPEN&&(u.text[0]==="<"&&(l===">"||l==="/"&&this._input.peek(1)===">")?(c=this._input.next(),l==="/"&&(c+=this._input.next()),f=this._create_token(o.TAG_CLOSE,c)):u.text[0]==="{"&&l==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),f=this._create_token(o.TAG_CLOSE,"}}"))),f},s.prototype._read_attribute=function(l,u,c){var f=null,d="";if(c&&c.text[0]==="<")if(l==="=")f=this._create_token(o.EQUALS,this._input.next());else if(l==='"'||l==="'"){var p=this._input.next();l==='"'?p+=this.__patterns.double_quote.read():p+=this.__patterns.single_quote.read(),f=this._create_token(o.VALUE,p)}else d=this.__patterns.attribute.read(),d&&(u.type===o.EQUALS?f=this._create_token(o.VALUE,d):f=this._create_token(o.ATTRIBUTE,d));return f},s.prototype._is_content_unformatted=function(l){return this._options.void_elements.indexOf(l)===-1&&(this._options.content_unformatted.indexOf(l)!==-1||this._options.unformatted.indexOf(l)!==-1)},s.prototype._read_raw_content=function(l,u,c){var f="";if(c&&c.text[0]==="{")f=this.__patterns.handlebars_raw_close.read();else if(u.type===o.TAG_CLOSE&&u.opened.text[0]==="<"&&u.text[0]!=="/"){var d=u.opened.text.substr(1).toLowerCase();if(d==="script"||d==="style"){var p=this._read_comment_or_cdata(l);if(p)return p.type=o.TEXT,p;f=this._input.readUntil(new RegExp("</"+d+"[\\n\\r\\t ]*?>","ig"))}else this._is_content_unformatted(d)&&(f=this._input.readUntil(new RegExp("</"+d+"[\\n\\r\\t ]*?>","ig")))}return f?this._create_token(o.TEXT,f):null},s.prototype._read_content_word=function(l,u){var c="";if(this._options.unformatted_content_delimiter&&l===this._options.unformatted_content_delimiter[0]&&(c=this.__patterns.unformatted_content_delimiter.read()),c||(c=u&&u.type===o.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),c)return this._create_token(o.TEXT,c)},Fw.Tokenizer=s,Fw.TOKEN=o,Fw}var PJ;function N$t(){if(PJ)return jI;PJ=1;var t=Qge().Options,e=VB().Output,n=TJ().Tokenizer,r=TJ().TOKEN,i=/\r\n|[\r\n]/,o=/\r\n|[\r\n]/g,a=function(m,y){this.indent_level=0,this.alignment_size=0,this.max_preserve_newlines=m.max_preserve_newlines,this.preserve_newlines=m.preserve_newlines,this._output=new e(m,y)};a.prototype.current_line_has_match=function(m){return this._output.current_line.has_match(m)},a.prototype.set_space_before_token=function(m,y){this._output.space_before_token=m,this._output.non_breaking_space=y},a.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},a.prototype.add_raw_token=function(m){this._output.add_raw_token(m)},a.prototype.print_preserved_newlines=function(m){var y=0;m.type!==r.TEXT&&m.previous.type!==r.TEXT&&(y=m.newlines?1:0),this.preserve_newlines&&(y=m.newlines<this.max_preserve_newlines+1?m.newlines:this.max_preserve_newlines+1);for(var b=0;b<y;b++)this.print_newline(b>0);return y!==0},a.prototype.traverse_whitespace=function(m){return m.whitespace_before||m.newlines?(this.print_preserved_newlines(m)||(this._output.space_before_token=!0),!0):!1},a.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},a.prototype.print_newline=function(m){this._output.add_new_line(m)},a.prototype.print_token=function(m){m.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(m.text))},a.prototype.indent=function(){this.indent_level++},a.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},a.prototype.get_full_indent=function(m){return m=this.indent_level+(m||0),m<1?"":this._output.get_indent_string(m)};var s=function(m){for(var y=null,b=m.next;b.type!==r.EOF&&m.closed!==b;){if(b.type===r.ATTRIBUTE&&b.text==="type"){b.next&&b.next.type===r.EQUALS&&b.next.next&&b.next.next.type===r.VALUE&&(y=b.next.next.text);break}b=b.next}return y},l=function(m,y){var b=null,O=null;return y.closed?(m==="script"?b="text/javascript":m==="style"&&(b="text/css"),b=s(y)||b,b.search("text/css")>-1?O="css":b.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?O="javascript":b.search(/(text|application|dojo)\/(x-)?(html)/)>-1?O="html":b.search(/test\/null/)>-1&&(O="null"),O):null};function u(m,y){return y.indexOf(m)!==-1}function c(m,y,b){this.parent=m||null,this.tag=y?y.tag_name:"",this.indent_level=b||0,this.parser_token=y||null}function f(m){this._printer=m,this._current_frame=null}f.prototype.get_parser_token=function(){return this._current_frame?this._current_frame.parser_token:null},f.prototype.record_tag=function(m){var y=new c(this._current_frame,m,this._printer.indent_level);this._current_frame=y},f.prototype._try_pop_frame=function(m){var y=null;return m&&(y=m.parser_token,this._printer.indent_level=m.indent_level,this._current_frame=m.parent),y},f.prototype._get_frame=function(m,y){for(var b=this._current_frame;b&&m.indexOf(b.tag)===-1;){if(y&&y.indexOf(b.tag)!==-1){b=null;break}b=b.parent}return b},f.prototype.try_pop=function(m,y){var b=this._get_frame([m],y);return this._try_pop_frame(b)},f.prototype.indent_to_tag=function(m){var y=this._get_frame(m);y&&(this._printer.indent_level=y.indent_level)};function d(m,y,b,O){this._source_text=m||"",y=y||{},this._js_beautify=b,this._css_beautify=O,this._tag_stack=null;var w=new t(y,"html");this._options=w,this._is_wrap_attributes_force=this._options.wrap_attributes.substr(0,5)==="force",this._is_wrap_attributes_force_expand_multiline=this._options.wrap_attributes==="force-expand-multiline",this._is_wrap_attributes_force_aligned=this._options.wrap_attributes==="force-aligned",this._is_wrap_attributes_aligned_multiple=this._options.wrap_attributes==="aligned-multiple",this._is_wrap_attributes_preserve=this._options.wrap_attributes.substr(0,8)==="preserve",this._is_wrap_attributes_preserve_aligned=this._options.wrap_attributes==="preserve-aligned"}d.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var m=this._source_text,y=this._options.eol;this._options.eol==="auto"&&(y=`
  449. `,m&&i.test(m)&&(y=m.match(i)[0])),m=m.replace(o,`
  450. `);var b=m.match(/^[\t ]*/)[0],O={text:"",type:""},w=new p,x=new a(this._options,b),S=new n(m,this._options).tokenize();this._tag_stack=new f(x);for(var T=null,$=S.next();$.type!==r.EOF;)$.type===r.TAG_OPEN||$.type===r.COMMENT?(T=this._handle_tag_open(x,$,w,O,S),w=T):$.type===r.ATTRIBUTE||$.type===r.EQUALS||$.type===r.VALUE||$.type===r.TEXT&&!w.tag_complete?T=this._handle_inside_tag(x,$,w,O):$.type===r.TAG_CLOSE?T=this._handle_tag_close(x,$,w):$.type===r.TEXT?T=this._handle_text(x,$,w):$.type===r.CONTROL_FLOW_OPEN?T=this._handle_control_flow_open(x,$):$.type===r.CONTROL_FLOW_CLOSE?T=this._handle_control_flow_close(x,$):x.add_raw_token($),O=T,$=S.next();var A=x._output.get_code(y);return A},d.prototype._handle_control_flow_open=function(m,y){var b={text:y.text,type:y.type};return m.set_space_before_token(y.newlines||y.whitespace_before!=="",!0),y.newlines?m.print_preserved_newlines(y):m.set_space_before_token(y.newlines||y.whitespace_before!=="",!0),m.print_token(y),m.indent(),b},d.prototype._handle_control_flow_close=function(m,y){var b={text:y.text,type:y.type};return m.deindent(),y.newlines?m.print_preserved_newlines(y):m.set_space_before_token(y.newlines||y.whitespace_before!=="",!0),m.print_token(y),b},d.prototype._handle_tag_close=function(m,y,b){var O={text:y.text,type:y.type};return m.alignment_size=0,b.tag_complete=!0,m.set_space_before_token(y.newlines||y.whitespace_before!=="",!0),b.is_unformatted?m.add_raw_token(y):(b.tag_start_char==="<"&&(m.set_space_before_token(y.text[0]==="/",!0),this._is_wrap_attributes_force_expand_multiline&&b.has_wrapped_attrs&&m.print_newline(!1)),m.print_token(y)),b.indent_content&&!(b.is_unformatted||b.is_content_unformatted)&&(m.indent(),b.indent_content=!1),!b.is_inline_element&&!(b.is_unformatted||b.is_content_unformatted)&&m.set_wrap_point(),O},d.prototype._handle_inside_tag=function(m,y,b,O){var w=b.has_wrapped_attrs,x={text:y.text,type:y.type};return m.set_space_before_token(y.newlines||y.whitespace_before!=="",!0),b.is_unformatted?m.add_raw_token(y):b.tag_start_char==="{"&&y.type===r.TEXT?m.print_preserved_newlines(y)?(y.newlines=0,m.add_raw_token(y)):m.print_token(y):(y.type===r.ATTRIBUTE?m.set_space_before_token(!0):(y.type===r.EQUALS||y.type===r.VALUE&&y.previous.type===r.EQUALS)&&m.set_space_before_token(!1),y.type===r.ATTRIBUTE&&b.tag_start_char==="<"&&((this._is_wrap_attributes_preserve||this._is_wrap_attributes_preserve_aligned)&&(m.traverse_whitespace(y),w=w||y.newlines!==0),this._is_wrap_attributes_force&&b.attr_count>=this._options.wrap_attributes_min_attrs&&(O.type!==r.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(m.print_newline(!1),w=!0)),m.print_token(y),w=w||m.previous_token_wrapped(),b.has_wrapped_attrs=w),x},d.prototype._handle_text=function(m,y,b){var O={text:y.text,type:"TK_CONTENT"};return b.custom_beautifier_name?this._print_custom_beatifier_text(m,y,b):b.is_unformatted||b.is_content_unformatted?m.add_raw_token(y):(m.traverse_whitespace(y),m.print_token(y)),O},d.prototype._print_custom_beatifier_text=function(m,y,b){var O=this;if(y.text!==""){var w=y.text,x,S=1,T="",$="";b.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?x=this._js_beautify:b.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?x=this._css_beautify:b.custom_beautifier_name==="html"&&(x=function(L,D){var B=new d(L,D,O._js_beautify,O._css_beautify);return B.beautify()}),this._options.indent_scripts==="keep"?S=0:this._options.indent_scripts==="separate"&&(S=-m.indent_level);var A=m.get_full_indent(S);if(w=w.replace(/\n[ \t]*$/,""),b.custom_beautifier_name!=="html"&&w[0]==="<"&&w.match(/^(<!--|<!\[CDATA\[)/)){var P=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(w);if(!P){m.add_raw_token(y);return}T=A+P[1]+`
  451. `,w=P[4],P[5]&&($=A+P[5]),w=w.replace(/\n[ \t]*$/,""),(P[2]||P[3].indexOf(`
  452. `)!==-1)&&(P=P[3].match(/[ \t]+$/),P&&(y.whitespace_before=P[0]))}if(w)if(x){var M=function(){this.eol=`
  453. `};M.prototype=this._options.raw_options;var I=new M;w=x(A+w,I)}else{var R=y.whitespace_before;R&&(w=w.replace(new RegExp(`
  454. (`+R+")?","g"),`
  455. `)),w=A+w.replace(/\n/g,`
  456. `+A)}T&&(w?w=T+w+`
  457. `+$:w=T+$),m.print_newline(!1),w&&(y.text=w,y.whitespace_before="",y.newlines=0,m.add_raw_token(y),m.print_newline(!0))}},d.prototype._handle_tag_open=function(m,y,b,O,w){var x=this._get_tag_open_token(y);if((b.is_unformatted||b.is_content_unformatted)&&!b.is_empty_element&&y.type===r.TAG_OPEN&&!x.is_start_tag?(m.add_raw_token(y),x.start_tag_token=this._tag_stack.try_pop(x.tag_name)):(m.traverse_whitespace(y),this._set_tag_position(m,y,x,b,O),x.is_inline_element||m.set_wrap_point(),m.print_token(y)),x.is_start_tag&&this._is_wrap_attributes_force){var S=0,T;do T=w.peek(S),T.type===r.ATTRIBUTE&&(x.attr_count+=1),S+=1;while(T.type!==r.EOF&&T.type!==r.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(x.alignment_size=y.text.length+1),!x.tag_complete&&!x.is_unformatted&&(m.alignment_size=x.alignment_size),x};var p=function(m,y){if(this.parent=m||null,this.text="",this.type="TK_TAG_OPEN",this.tag_name="",this.is_inline_element=!1,this.is_unformatted=!1,this.is_content_unformatted=!1,this.is_empty_element=!1,this.is_start_tag=!1,this.is_end_tag=!1,this.indent_content=!1,this.multiline_content=!1,this.custom_beautifier_name=null,this.start_tag_token=null,this.attr_count=0,this.has_wrapped_attrs=!1,this.alignment_size=0,this.tag_complete=!1,this.tag_start_char="",this.tag_check="",!y)this.tag_complete=!0;else{var b;this.tag_start_char=y.text[0],this.text=y.text,this.tag_start_char==="<"?(b=y.text.match(/^<([^\s>]*)/),this.tag_check=b?b[1]:""):(b=y.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/),this.tag_check=b?b[1]:"",(y.text.startsWith("{{#>")||y.text.startsWith("{{~#>"))&&this.tag_check[0]===">"&&(this.tag_check===">"&&y.next!==null?this.tag_check=y.next.text.split(" ")[0]:this.tag_check=y.text.split(">")[1])),this.tag_check=this.tag_check.toLowerCase(),y.type===r.COMMENT&&(this.tag_complete=!0),this.is_start_tag=this.tag_check.charAt(0)!=="/",this.tag_name=this.is_start_tag?this.tag_check:this.tag_check.substr(1),this.is_end_tag=!this.is_start_tag||y.closed&&y.closed.text==="/>";var O=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(O=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(O)))}};d.prototype._get_tag_open_token=function(m){var y=new p(this._tag_stack.get_parser_token(),m);return y.alignment_size=this._options.wrap_attributes_indent_size,y.is_end_tag=y.is_end_tag||u(y.tag_check,this._options.void_elements),y.is_empty_element=y.tag_complete||y.is_start_tag&&y.is_end_tag,y.is_unformatted=!y.tag_complete&&u(y.tag_check,this._options.unformatted),y.is_content_unformatted=!y.is_empty_element&&u(y.tag_check,this._options.content_unformatted),y.is_inline_element=u(y.tag_name,this._options.inline)||this._options.inline_custom_elements&&y.tag_name.includes("-")||y.tag_start_char==="{",y},d.prototype._set_tag_position=function(m,y,b,O,w){if(b.is_empty_element||(b.is_end_tag?b.start_tag_token=this._tag_stack.try_pop(b.tag_name):(this._do_optional_end_element(b)&&(b.is_inline_element||m.print_newline(!1)),this._tag_stack.record_tag(b),(b.tag_name==="script"||b.tag_name==="style")&&!(b.is_unformatted||b.is_content_unformatted)&&(b.custom_beautifier_name=l(b.tag_check,y)))),u(b.tag_check,this._options.extra_liners)&&(m.print_newline(!1),m._output.just_added_blankline()||m.print_newline(!0)),b.is_empty_element){if(b.tag_start_char==="{"&&b.tag_check==="else"){this._tag_stack.indent_to_tag(["if","unless","each"]),b.indent_content=!0;var x=m.current_line_has_match(/{{#if/);x||m.print_newline(!1)}b.tag_name==="!--"&&w.type===r.TAG_CLOSE&&O.is_end_tag&&b.text.indexOf(`
  458. `)===-1||(b.is_inline_element||b.is_unformatted||m.print_newline(!1),this._calcluate_parent_multiline(m,b))}else if(b.is_end_tag){var S=!1;S=b.start_tag_token&&b.start_tag_token.multiline_content,S=S||!b.is_inline_element&&!(O.is_inline_element||O.is_unformatted)&&!(w.type===r.TAG_CLOSE&&b.start_tag_token===O)&&w.type!=="TK_CONTENT",(b.is_content_unformatted||b.is_unformatted)&&(S=!1),S&&m.print_newline(!1)}else b.indent_content=!b.custom_beautifier_name,b.tag_start_char==="<"&&(b.tag_name==="html"?b.indent_content=this._options.indent_inner_html:b.tag_name==="head"?b.indent_content=this._options.indent_head_inner_html:b.tag_name==="body"&&(b.indent_content=this._options.indent_body_inner_html)),!(b.is_inline_element||b.is_unformatted)&&(w.type!=="TK_CONTENT"||b.is_content_unformatted)&&m.print_newline(!1),this._calcluate_parent_multiline(m,b)},d.prototype._calcluate_parent_multiline=function(m,y){y.parent&&m._output.just_added_newline()&&!((y.is_inline_element||y.is_unformatted)&&y.parent.is_inline_element)&&(y.parent.multiline_content=!0)};var v=["address","article","aside","blockquote","details","div","dl","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hr","main","menu","nav","ol","p","pre","section","table","ul"],g=["a","audio","del","ins","map","noscript","video"];return d.prototype._do_optional_end_element=function(m){var y=null;if(!(m.is_empty_element||!m.is_start_tag||!m.parent)){if(m.tag_name==="body")y=y||this._tag_stack.try_pop("head");else if(m.tag_name==="li")y=y||this._tag_stack.try_pop("li",["ol","ul","menu"]);else if(m.tag_name==="dd"||m.tag_name==="dt")y=y||this._tag_stack.try_pop("dt",["dl"]),y=y||this._tag_stack.try_pop("dd",["dl"]);else if(m.parent.tag_name==="p"&&v.indexOf(m.tag_name)!==-1){var b=m.parent.parent;(!b||g.indexOf(b.tag_name)===-1)&&(y=y||this._tag_stack.try_pop("p"))}else m.tag_name==="rp"||m.tag_name==="rt"?(y=y||this._tag_stack.try_pop("rt",["ruby","rtc"]),y=y||this._tag_stack.try_pop("rp",["ruby","rtc"])):m.tag_name==="optgroup"?y=y||this._tag_stack.try_pop("optgroup",["select"]):m.tag_name==="option"?y=y||this._tag_stack.try_pop("option",["select","datalist","optgroup"]):m.tag_name==="colgroup"?y=y||this._tag_stack.try_pop("caption",["table"]):m.tag_name==="thead"?(y=y||this._tag_stack.try_pop("caption",["table"]),y=y||this._tag_stack.try_pop("colgroup",["table"])):m.tag_name==="tbody"||m.tag_name==="tfoot"?(y=y||this._tag_stack.try_pop("caption",["table"]),y=y||this._tag_stack.try_pop("colgroup",["table"]),y=y||this._tag_stack.try_pop("thead",["table"]),y=y||this._tag_stack.try_pop("tbody",["table"])):m.tag_name==="tr"?(y=y||this._tag_stack.try_pop("caption",["table"]),y=y||this._tag_stack.try_pop("colgroup",["table"]),y=y||this._tag_stack.try_pop("tr",["table","thead","tbody","tfoot"])):(m.tag_name==="th"||m.tag_name==="td")&&(y=y||this._tag_stack.try_pop("td",["table","thead","tbody","tfoot","tr"]),y=y||this._tag_stack.try_pop("th",["table","thead","tbody","tfoot","tr"]));return m.parent=this._tag_stack.get_parser_token(),y}},jI.Beautifier=d,jI}var $J;function L$t(){if($J)return zw.exports;$J=1;var t=N$t().Beautifier,e=Qge().Options;function n(r,i,o,a){var s=new t(r,i,o,a);return s.beautify()}return zw.exports=n,zw.exports.defaultOptions=function(){return new e},zw.exports}var AJ;function B$t(){if(AJ)return m0;AJ=1;var t=D$t(),e=k$t(),n=L$t();function r(i,o,a,s){return a=a||t,s=s||e,n(i,o,a,s)}return r.defaultOptions=n.defaultOptions,m0.js=t,m0.css=e,m0.html=r,m0}(function(t){function e(n,r,i){var o=function(a,s){return n.js_beautify(a,s)};return o.js=n.js_beautify,o.css=r.css_beautify,o.html=i.html_beautify,o.js_beautify=n.js_beautify,o.css_beautify=r.css_beautify,o.html_beautify=i.html_beautify,o}(function(n){var r=B$t();r.js_beautify=r.js,r.css_beautify=r.css,r.html_beautify=r.html,n.exports=e(r,r,r)})(t)})(Lge);var V$t=Lge.exports;const z$t=bT(V$t),F$t={indent_size:"2",indent_char:" ",max_preserve_newlines:"5",preserve_newlines:!0,keep_array_indentation:!1,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"0",indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1},W$t=h.defineComponent({name:"DEditor",components:{Codemirror:b2t},props:{code:{type:String,default:""}},emits:["update:code","change"],setup(t,{emit:e}){const n=h.ref(null),r=h.ref(z$t(t.code,F$t));return{editorRef:n,modelValue:r,handleCodeChange:o=>{try{e("update:code",o),e("change",o)}catch(a){console.error(a);return}},oneDark:E2t,javascript:w$t,json:A$t}}});function Q$t(t,e,n,r,i,o){const a=h.resolveComponent("Codemirror");return h.openBlock(),h.createBlock(a,{ref:"editorRef",placeholder:"请输入",style:{height:"500px"},"model-value":t.modelValue,"tab-size":2,"auto-focus":!1,"indent-with-tabs":!0,extensions:[t.oneDark,t.javascript(),t.json()],onChange:t.handleCodeChange},null,8,["model-value","extensions","onChange"])}const H$t=Dr(W$t,[["render",Q$t]]),G$t=h.defineComponent({name:"DEditorModal",components:{Modal:Do,Editor:H$t,Button:ui},props:{title:{type:String,default:"编辑"},width:{type:Number,default:800}},emits:["ok"],setup(t,{emit:e}){const n=h.ref(!1),r=h.ref("");return{open:s=>{n.value=!0,r.value=s},close:()=>{n.value=!1},code:r,handleOk:()=>{e("ok",r.value),n.value=!1},show:n}}});function j$t(t,e,n,r,i,o){const a=h.resolveComponent("Editor"),s=h.resolveComponent("Button"),l=h.resolveComponent("Modal");return h.openBlock(),h.createBlock(l,{open:t.show,"onUpdate:open":e[1]||(e[1]=u=>t.show=u),title:t.title,width:t.width,destroyOnClose:!0},{footer:h.withCtx(()=>[h.renderSlot(t.$slots,"footer",{},()=>[h.createVNode(s,{onClick:t.close},{default:h.withCtx(()=>[h.createTextVNode("取消")]),_:1},8,["onClick"]),h.createVNode(s,{type:"primary",onClick:t.handleOk},{default:h.withCtx(()=>[h.createTextVNode("确定")]),_:1},8,["onClick"])])]),default:h.withCtx(()=>[h.createVNode(a,{code:t.code,"onUpdate:code":e[0]||(e[0]=u=>t.code=u)},null,8,["code"])]),_:3},8,["open","title","width"])}const Hx=Dr(G$t,[["render",j$t]]);Hx.install=t=>(t.component(Hx.name,Hx),t);const U$t=h.createElementVNode("span",{class:"text-gray-500"},"秒",-1),QB=h.defineComponent({__name:"DataConfig",props:{dataSource:{}},emits:["change"],setup(t,{emit:e}){const n=e,r=t,i=h.ref({sourceType:er.STATIC,data:"",url:"",method:"",params:{},headers:{},refreshTime:0,dataProcess:"",basicPath:"",viewCode:""}),o=f=>{i.value.refreshTime=f===0||f>=60?f:60};let a;const s=h.ref(null),l=f=>{var d;a=f,(d=s.value)==null||d.open(typeof i.value[f]=="string"?i.value[f]:JSON.stringify(i.value[f]))},u=f=>{try{i.value[a]=JSON.parse(f)}catch{i.value[a]=f}},c=async f=>{const d=await cQe(f);console.log(d),f==="table"?(i.value.basicPath=d.value,i.value.viewCode=""):(i.value.viewCode=d.value,i.value.basicPath="")};return h.watch(()=>r.dataSource,f=>{Object.assign(i.value,f||{})},{immediate:!0}),h.watch(()=>i.value,f=>{n("change",f)},{deep:!0}),(f,d)=>(h.openBlock(),h.createElementBlock(h.Fragment,null,[h.createVNode(h.unref(gr),{size:"small",layout:"horizontal",model:i.value,"label-col":{span:8},"wrapper-col":{span:16}},{default:h.withCtx(()=>[h.createVNode(h.unref(gr).Item,{label:"数据源",name:"sourceType"},{default:h.withCtx(()=>[h.createVNode(h.unref(Zi),{value:i.value.sourceType,"onUpdate:value":d[0]||(d[0]=p=>i.value.sourceType=p)},{default:h.withCtx(()=>[h.createVNode(h.unref(jp),{value:h.unref(er).STATIC},{default:h.withCtx(()=>[h.createTextVNode("静态数据")]),_:1},8,["value"]),h.createVNode(h.unref(jp),{value:h.unref(er).API},{default:h.withCtx(()=>[h.createTextVNode("API")]),_:1},8,["value"]),h.createVNode(h.unref(jp),{value:h.unref(er).BASIC_PATH},{default:h.withCtx(()=>[h.createTextVNode("基础数据源")]),_:1},8,["value"]),h.createVNode(h.unref(jp),{value:h.unref(er).VIEW_CODE},{default:h.withCtx(()=>[h.createTextVNode("视图源")]),_:1},8,["value"])]),_:1},8,["value"])]),_:1}),i.value.sourceType===h.unref(er).STATIC?(h.openBlock(),h.createBlock(h.unref(gr).Item,{key:0,label:"数据",name:"data"},{default:h.withCtx(()=>[h.createVNode(h.unref(ui),{type:"default",size:"small",onClick:d[1]||(d[1]=p=>l("data"))},{default:h.withCtx(()=>[h.createTextVNode("编辑")]),_:1})]),_:1})):i.value.sourceType===h.unref(er).API?(h.openBlock(),h.createElementBlock(h.Fragment,{key:1},[h.createVNode(h.unref(gr).Item,{label:"接口地址",name:"url"},{default:h.withCtx(()=>[h.createVNode(h.unref(Gn).TextArea,{"auto-size":{minRows:5},placeholder:"请输入接口地址",value:i.value.url,"onUpdate:value":d[2]||(d[2]=p=>i.value.url=p)},null,8,["value"])]),_:1}),h.createVNode(h.unref(gr).Item,{label:"请求方式",name:"method"},{default:h.withCtx(()=>[h.createVNode(h.unref(ih),{value:i.value.method,"onUpdate:value":d[3]||(d[3]=p=>i.value.method=p)},{default:h.withCtx(()=>[h.createVNode(h.unref(Xi),{value:"GET"},{default:h.withCtx(()=>[h.createTextVNode("GET")]),_:1}),h.createVNode(h.unref(Xi),{value:"POST"},{default:h.withCtx(()=>[h.createTextVNode("POST")]),_:1})]),_:1},8,["value"])]),_:1}),h.createVNode(h.unref(gr).Item,{label:"刷新时间",name:"refreshTime"},{default:h.withCtx(()=>[h.createVNode(h.unref(r_),{value:i.value.refreshTime,"onUpdate:value":d[4]||(d[4]=p=>i.value.refreshTime=p),step:1,style:{width:"100%"},onChange:o},{addonAfter:h.withCtx(()=>[U$t]),_:1},8,["value"])]),_:1}),h.createVNode(h.unref(gr).Item,{label:"请求参数",name:"params"},{default:h.withCtx(()=>[h.createVNode(h.unref(ui),{type:"default",size:"small",onClick:d[5]||(d[5]=p=>l("params"))},{default:h.withCtx(()=>[h.createTextVNode("编辑")]),_:1})]),_:1}),h.createVNode(h.unref(gr).Item,{label:"请求头",name:"headers"},{default:h.withCtx(()=>[h.createVNode(h.unref(ui),{type:"default",size:"small",onClick:d[6]||(d[6]=p=>l("headers"))},{default:h.withCtx(()=>[h.createTextVNode("编辑")]),_:1})]),_:1}),h.createVNode(h.unref(gr).Item,{label:"数据处理",name:"dataProcess"},{default:h.withCtx(()=>[h.createVNode(h.unref(ui),{type:"default",size:"small",onClick:d[7]||(d[7]=p=>l("dataProcess"))},{default:h.withCtx(()=>[h.createTextVNode("编辑")]),_:1})]),_:1})],64)):i.value.sourceType===h.unref(er).BASIC_PATH?(h.openBlock(),h.createBlock(h.unref(gr).Item,{key:2,label:"基础数据源",name:"basicPath"},{default:h.withCtx(()=>[h.createVNode(h.unref(Gn),{placeholder:"请输入或选择",value:i.value.basicPath,"onUpdate:value":d[9]||(d[9]=p=>i.value.basicPath=p)},{addonAfter:h.withCtx(()=>[h.createVNode(h.unref(OS),{onClick:d[8]||(d[8]=p=>c("table"))})]),_:1},8,["value"])]),_:1})):i.value.sourceType===h.unref(er).VIEW_CODE?(h.openBlock(),h.createBlock(h.unref(gr).Item,{key:3,label:"视图源",name:"viewCode"},{default:h.withCtx(()=>[h.createVNode(h.unref(Gn),{placeholder:"请输入或选择",value:i.value.viewCode,"onUpdate:value":d[11]||(d[11]=p=>i.value.viewCode=p)},{addonAfter:h.withCtx(()=>[h.createVNode(h.unref(OS),{onClick:d[10]||(d[10]=p=>c("view"))})]),_:1},8,["value"])]),_:1})):h.createCommentVNode("",!0)]),_:1},8,["model"]),h.createVNode(h.unref(Hx),{ref_key:"codeEditorRef",ref:s,title:"编辑",onOk:u},null,512)],64))}}),nr={title:{label:"标题",prop:"title",type:"group",children:[{label:" ",prop:"title.show",type:"checkboxGroup",fieldProps:{options:[{label:"标题可见",value:!0}]},defaultValue:[],format:(t,e)=>{t.value["title.show"]=!!(e!=null&&e.length)},valueToForm:t=>t?[!0]:[]},{type:"dependency",label:"",prop:"",name:["title.show"],children:t=>t["title.show"].length?[{label:"文本",prop:"title.text",type:"input",defaultValue:"图表标题"},{label:"位置",prop:"title.left",type:"position",defaultValue:"center"},{label:"样式",prop:"title.textStyle",type:"fontStyle",defaultValue:{color:"#ffffffff",size:18,bold:!0,italic:!1},format:(e,n)=>{e.value["title.textStyle"]={color:n.color,fontSize:n.size,fontWeight:n.bold?"bold":"normal",fontStyle:n.italic?"italic":"normal"}},valueToForm:(e,n)=>({color:Ut(n,"title.textStyle.color","#FFFFFF"),size:Ut(n,"title.textStyle.size",16),bold:Ut(n,"title.textStyle.fontWeight")==="bold",italic:Ut(n,"title.textStyle.fontStyle")==="italic"})},{label:"背景",prop:"",type:"divider"},{label:"填充",prop:"title.backgroundColor",type:"backgroundSelect",fieldProps:{filterOptions:["image"]},defaultValue:{type:"color",color:"#FFFFFF00"},format:(e,n)=>{e.value["title.backgroundColor"]=(n==null?void 0:n.type)==="color"?n.color:"none"},valueToForm:e=>!e||e==="none"?{type:"none",color:"#000000ff"}:{type:"color",color:e.color}},{label:"圆角",prop:"title.borderRadius",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:0}]:[]}]},legend:{label:"图例",prop:"legend",type:"group",children:[{label:" ",prop:"legend.show",type:"checkboxGroup",fieldProps:{options:[{label:"图例可见",value:!0}]},defaultValue:[!0],format:(t,e)=>{t.value["legend.show"]=!!(e!=null&&e.length)},valueToForm:t=>t?[!0]:[]},{type:"dependency",label:"",prop:"",name:["legend.show"],children:t=>t["legend.show"].length?[{label:"位置",prop:"legend.position",type:"position",fieldProps:{type:"round"},defaultValue:"top",format:(e,n)=>{switch(["left","right"].includes(n)?e.value["legend.orient"]="vertical":e.value["legend.orient"]="horizontal",n){case"bottom":e.value["legend.top"]="auto",e.value["legend.right"]="auto",e.value["legend.bottom"]=8,e.value["legend.left"]="center";break;case"left":e.value["legend.bottom"]="auto",e.value["legend.right"]="auto",e.value["legend.left"]=8,e.value["legend.top"]="center";break;case"right":e.value["legend.bottom"]="auto",e.value["legend.left"]="auto",e.value["legend.right"]=8,e.value["legend.top"]="center";break;default:e.value["legend.bottom"]="auto",e.value["legend.right"]="auto",e.value["legend.top"]=32,e.value["legend.left"]="center"}},valueToForm:(e,n)=>Ut(n,"legend.orient")==="vertical"?e==="top"?"top":e==="bottom"?"bottom":"left":Ut(n,"legend.bottom")===8&&Ut(n,"legend.left")==="center"?"bottom":"top"},{label:"样式",prop:"legend.textStyle",type:"fontStyle",defaultValue:{color:"#000000ff",size:12,bold:!1,italic:!1},format:(e,n)=>{e.value["legend.textStyle"]={color:n.color,fontSize:n.size,fontWeight:n.bold?"bold":"normal",fontStyle:n.italic?"italic":"normal"}},valueToForm:(e,n)=>({color:Ut(n,"legend.textStyle.color","#000000ff"),size:Ut(n,"legend.textStyle.fontSize",12),bold:Ut(n,"legend.textStyle.fontWeight")==="bold",italic:Ut(n,"legend.textStyle.fontStyle")==="italic"})},{label:"边框",prop:"",type:"divider"},{label:"线宽",prop:"legend.borderWidth",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:0},{label:"颜色",prop:"legend.borderColor",type:"colorSelect",defaultValue:"#ccc"},{label:"圆角",prop:"legend.borderRadius",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:0},{label:"背景",prop:"",type:"divider"},{label:"背景",prop:"legend.backgroundColor",type:"backgroundSelect",fieldProps:{filterOptions:["image"]},defaultValue:{type:"color",color:"#fff"},format:(e,n)=>{e.value["legend.backgroundColor"]=(n==null?void 0:n.type)==="color"?n.color:"none"},valueToForm:e=>!e||e==="none"?{type:"none"}:{type:"color",color:e.color}},{label:"阴影",prop:"legend.shadowBlur",type:"radioGroup",fieldProps:{options:[{label:"开启",value:!0},{label:"关闭",value:!1}]},defaultValue:!1,format:(e,n)=>{n?(e.value["legend.shadowBlur"]=10,e.value["legend.shadowColor"]=e.value["legend.backgroundColor"]||"#000000ff",e.value["legend.shadowOffsetX"]=3,e.value["legend.shadowOffsetY"]=3):(e.value["legend.shadowBlur"]=0,e.value["legend.shadowColor"]="transparent",e.value["legend.shadowOffsetX"]=0,e.value["legend.shadowOffsetY"]=0)},valueToForm:e=>!!e}]:[]}]},series:{label:"系列",prop:"series",type:"group",children:[{label:"配色",prop:"color",type:"colorScheme",defaultValue:CS[0].color}]},xAxis:{label:"X 轴",prop:"xAxis",type:"group",children:[{label:"类型",prop:"xAxis.type",type:"select",fieldProps:{options:[{label:"类目坐标轴",value:"category"},{label:"数值坐标轴",value:"value"},{label:"时间坐标轴",value:"time"}]},defaultValue:"category"},{label:" ",prop:"xAxis.showName",type:"checkboxGroup",fieldProps:{options:[{label:"显示轴标题",value:!0}]},defaultValue:[!0],format:(t,e)=>{e!=null&&e.length?(t.value["xAxis.showName"]=!0,t.value["xAxis.name"]="X轴标题",t.value["xAxis.nameGap"]=25):(t.value["xAxis.showName"]=!1,t.value["xAxis.name"]="",t.value["xAxis.nameGap"]=15,t.value["xAxis.nameGap"]=15)},valueToForm:t=>t?[!0]:[]},{label:"",prop:"",type:"dependency",name:["xAxis.showName"],children:t=>t["xAxis.showName"].length?[{label:"标题内容",prop:"xAxis.name",type:"input",defaultValue:"X 轴标题",format:(e,n)=>{e.value["xAxis.showName"]&&(e.value["xAxis.name"]=n,e.value["xAxis.nameGap"]=25)},valueToForm:e=>e||"X 轴标题"},{label:"标题位置",prop:"xAxis.nameLocation",type:"position",defaultValue:"center",format:(e,n)=>{const r={left:"start",center:"middle",right:"end"};e.value["xAxis.nameLocation"]=n?r[n]:"middle"},valueToForm:e=>({start:"left",middle:"center",end:"right"})[e]||"center"},{label:"标题样式",prop:"xAxis.nameTextStyle",type:"fontStyle",defaultValue:{color:"#000000ff",size:12,bold:!1,italic:!1},format:(e,n)=>{e.value["xAxis.nameTextStyle"]={color:n.color,fontSize:n.size,fontWeight:n.bold?"bold":"normal",fontStyle:n.italic?"italic":"normal"}},valueToForm:e=>({color:(e==null?void 0:e.color)||"#000000ff",size:(e==null?void 0:e.fontSize)||12,bold:(e==null?void 0:e.fontWeight)==="bold"||!1,italic:(e==null?void 0:e.fontStyle)==="italic"||!1})}]:[]},{label:"轴线",prop:"",type:"divider"},{label:"线宽",prop:"xAxis.axisLine.lineStyle.width",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:1},{label:"颜色",prop:"xAxis.axisLine.lineStyle.color",type:"colorSelect",defaultValue:"#ccc"},{label:"刻度",prop:"",type:"divider"},{label:" ",prop:"xAxis.axisTick.show",type:"checkboxGroup",fieldProps:{options:[{label:"显示刻度",value:!0}]},defaultValue:[!0],format:(t,e)=>{t.value["xAxis.axisTick.show"]=!!(e!=null&&e.length)},valueToForm:t=>t?[!0]:[]},{label:"",prop:"",type:"dependency",name:["xAxis.axisTick.show"],children:t=>t["xAxis.axisTick.show"].length?[{label:"刻度宽度",prop:"xAxis.axisTick.lineStyle.width",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:5},{label:"刻度颜色",prop:"xAxis.axisTick.lineStyle.color",type:"colorSelect",defaultValue:"#ccc"}]:[]},{label:"标签",prop:"",type:"divider"},{label:" ",prop:"xAxis.axisLabel.show",type:"checkboxGroup",fieldProps:{options:[{label:"显示标签",value:!0}]},defaultValue:[!0],format:(t,e)=>{t.value["xAxis.axisLabel.show"]=!!(e!=null&&e.length)},valueToForm:t=>t?[!0]:[]},{label:"",prop:"",type:"dependency",name:["xAxis.axisLabel.show"],children:t=>t["xAxis.axisLabel.show"].length?[{label:"样式",prop:"xAxis.axisLabel",type:"fontStyle",defaultValue:{color:"#000000ff",size:12,bold:!1,italic:!1},format:(e,n)=>{e.value["xAxis.axisLabel.color"]=n==null?void 0:n.color,e.value["xAxis.axisLabel.fontSize"]=n.size,e.value["xAxis.axisLabel.fontWeight"]=n.bold?"bold":"normal",e.value["xAxis.axisLabel.fontStyle"]=n.italic?"italic":"normal"},valueToForm:(e,n)=>({color:Ut(n,"xAxis.axisLabel.color","#000000ff"),size:Ut(n,"xAxis.axisLabel.fontSize",12),bold:Ut(n,"xAxis.axisLabel.fontWeight")==="bold",italic:Ut(n,"xAxis.axisLabel.fontStyle")==="italic"})}]:[]}]},yAxis:{label:"Y 轴",prop:"yAxis",type:"group",children:[{label:" ",prop:"yAxis.showName",type:"checkboxGroup",fieldProps:{options:[{label:"显示轴标题",value:!0}]},defaultValue:[],format:(t,e)=>{e!=null&&e.length?(t.value["yAxis.showName"]=!0,t.value["yAxis.name"]="Y轴标题",t.value["yAxis.nameGap"]=25):(t.value["yAxis.showName"]=!1,t.value["yAxis.name"]="",t.value["yAxis.nameGap"]=15)},valueToForm:t=>t?[!0]:[]},{label:"",prop:"",type:"dependency",name:["yAxis.showName"],children:t=>t["yAxis.showName"].length?[{label:"标题内容",prop:"yAxis.name",type:"input",defaultValue:"Y 轴标题",format:(e,n)=>{e.value["yAxis.showName"]?(e.value["yAxis.name"]=n,e.value["yAxis.nameGap"]=25):(e.value["yAxis.name"]="",e.value["yAxis.nameGap"]=15)},valueToForm:e=>e||"Y 轴标题"},{label:"标题位置",prop:"yAxis.nameLocation",type:"position",defaultValue:"center",format:(e,n)=>{const r={left:"start",center:"middle",right:"end"};e.value["yAxis.nameLocation"]=n?r[n]:"middle"},valueToForm:e=>({start:"left",middle:"center",end:"right"})[e]||"center "},{label:"标题样式",prop:"yAxis.nameTextStyle",type:"fontStyle",defaultValue:{color:"#FFFFFFFF",size:12,bold:!1,italic:!1},format:(e,n)=>{e.value["yAxis.nameTextStyle"]={color:n.color,fontSize:n.size,fontWeight:n.bold?"bold":"normal",fontStyle:n.italic?"italic":"normal"}},valueToForm:e=>({color:(e==null?void 0:e.color)||"#000000ff",size:(e==null?void 0:e.fontSize)||12,bold:(e==null?void 0:e.fontWeight)==="bold"||!1,italic:(e==null?void 0:e.fontStyle)==="italic"||!1})}]:[]},{label:"轴线",prop:"",type:"divider"},{label:" ",prop:"yAxis.axisLine.show",type:"checkboxGroup",fieldProps:{options:[{label:"显示轴线",value:!0}]},defaultValue:[!0],format:(t,e)=>{t.value["yAxis.axisLine.show"]=!!(e!=null&&e.length)},valueToForm:t=>t?[!0]:[]},{label:"",prop:"",type:"dependency",name:["yAxis.axisLine.show"],children:t=>t["yAxis.axisLine.show"].length?[{label:"线宽",prop:"yAxis.axisLine.lineStyle.width",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:1},{label:"颜色",prop:"yAxis.axisLine.lineStyle.color",type:"colorSelect",defaultValue:"#ccc"}]:[]},{label:"刻度",prop:"",type:"divider"},{label:" ",prop:"yAxis.axisTick.show",type:"checkboxGroup",fieldProps:{options:[{label:"显示刻度",value:!0}]},defaultValue:[!0],format:(t,e)=>{t.value["yAxis.axisTick.show"]=!!(e!=null&&e.length)},valueToForm:t=>t?[!0]:[]},{label:"",prop:"",type:"dependency",name:["yAxis.axisTick.show"],children:t=>t["yAxis.axisTick.show"].length?[{label:"刻度长度",prop:"yAxis.axisTick.lineStyle.width",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:5},{label:"刻度颜色",prop:"yAxis.axisTick.lineStyle.color",type:"colorSelect",defaultValue:"#ccc"}]:[]},{label:"标签",prop:"",type:"divider"},{label:" ",prop:"yAxis.axisLabel.show",type:"checkboxGroup",fieldProps:{options:[{label:"显示标签",value:!0}]},defaultValue:[!0],format:(t,e)=>{t.value["yAxis.axisLabel.show"]=!!(e!=null&&e.length)},valueToForm:t=>t?[!0]:[]},{label:"",prop:"",type:"dependency",name:["yAxis.axisLabel.show"],children:t=>t["yAxis.axisLabel.show"].length?[{label:"样式",prop:"yAxis.axisLabel",type:"fontStyle",defaultValue:{color:"#000000ff",size:12,bold:!1,italic:!1},format:(e,n)=>{e.value["yAxis.axisLabel.color"]=n==null?void 0:n.color,e.value["yAxis.axisLabel.fontSize"]=n.size,e.value["yAxis.axisLabel.fontWeight"]=n.bold?"bold":"normal",e.value["yAxis.axisLabel.fontStyle"]=n.italic?"italic":"normal"},valueToForm:(e,n)=>({color:Ut(n,"yAxis.axisLabel.color","#000000ff"),size:Ut(n,"yAxis.axisLabel.fontSize",12),bold:Ut(n,"yAxis.axisLabel.fontWeight")==="bold",italic:Ut(n,"yAxis.axisLabel.fontStyle")==="italic"})},{label:"旋转角度",prop:"yAxis.axisLabel.rotate",type:"inputNumber",fieldProps:{addonAfter:"°",min:-90,max:90,step:1}}]:[]}]},tooltip:{label:"提示",prop:"tooltip",type:"group",children:[{label:" ",prop:"tooltip.show",type:"checkboxGroup",fieldProps:{options:[{label:"提示可见",value:!0}]},defaultValue:[!0],format:(t,e)=>{t.value["tooltip.show"]=!!(e!=null&&e.length)},valueToForm:t=>t?[!0]:[]},{label:"",prop:"",type:"dependency",name:["tooltip.show"],children:t=>t["tooltip.show"].length?[{label:"文本",prop:"tooltip.formatter",type:"checkboxGroup",fieldProps:{options:[{label:"分类名",value:"b"},{label:"系列名",value:"a"},{label:"数值",value:"c"}]},defaultValue:["b"],format:(e,n)=>{e.value["tooltip.formatter"]=n.map(r=>`{${r}}`).join(" ")},valueToForm:(e,n)=>{var r,i;return(i=(r=Ut(n,"tooltip.formatter"))==null?void 0:r.replace(/\{|\}/g,""))==null?void 0:i.split(" ")}},{label:"样式",prop:"tooltip.textStyle",type:"fontStyle",defaultValue:{color:"#000000ff",size:12,bold:!1,italic:!1},format:(e,n)=>{e.value["tooltip.textStyle"]={color:n.color,fontSize:n.size,fontWeight:n.bold?"bold":"normal",fontStyle:n.italic?"italic":"normal"}},valueToForm:(e,n)=>({color:Ut(n,"tooltip.textStyle.color","#000000ff"),size:Ut(n,"tooltip.textStyle.fontSize",12),bold:Ut(n,"tooltip.textStyle.fontWeight")==="bold",italic:Ut(n,"tooltip.textStyle.fontStyle")==="italic"})},{label:"边框",prop:"",type:"divider"},{label:"线宽",prop:"tooltip.borderWidth",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:1},{label:"颜色",prop:"tooltip.borderColor",type:"colorSelect",defaultValue:"#ccc"},{label:"圆角",prop:"tooltip.borderRadius",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:4},{label:"背景",prop:"",type:"divider"},{label:"填充",prop:"tooltip.backgroundColor",type:"backgroundSelect",fieldProps:{filterOptions:["image"]},defaultValue:{type:"color",color:"#fff"},format:(e,n)=>{e.value["tooltip.backgroundColor"]=(n==null?void 0:n.type)==="color"?n.color:"none"},valueToForm:e=>!e||e==="none"?{type:"none"}:{type:"color",color:e}},{label:"阴影",prop:"tooltip.extraCssText",type:"radioGroup",fieldProps:{options:[{label:"开启",value:!0},{label:"关闭",value:!1}]},defaultValue:!1,format:(e,n)=>{e.value["tooltip.extraCssText"]=n?"box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);":""},valueToForm:(e,n)=>!!Ut(n,"tooltip.extraCssText")}]:[]}]},label:{label:"标签",prop:"label",type:"group",children:[{label:" ",prop:"label.show",type:"checkboxGroup",fieldProps:{options:[{label:"标签可见",value:!0}]},defaultValue:[],format:(t,e)=>{t.value["label.show"]=!!(e!=null&&e.length)},valueToForm:t=>t?[!0]:[]},{label:"",prop:"",type:"dependency",name:["label.show"],children:t=>t["label.show"].length?[{label:"文本",prop:"label.formatter",type:"checkboxGroup",fieldProps:{options:[{label:"分类名",value:"b"},{label:"系列名",value:"a"},{label:"数值",value:"c"}]},defaultValue:["a"],format:(e,n)=>{e.value["label.formatter"]=`{${n}}`},valueToForm:(e,n)=>{var r,i;return(i=(r=Ut(n,"label.formatter"))==null?void 0:r.replace(/\{|\}/g,""))==null?void 0:i.split(" ")}},{label:"样式",prop:"label.fontStyle",type:"fontStyle",defaultValue:{color:"#000000ff",size:12,bold:!1,italic:!1},format:(e,n)=>{e.value["label.color"]=n==null?void 0:n.color,e.value["label.fontSize"]=n.size,e.value["label.fontWeight"]=n.bold?"bold":"normal",e.value["label.fontStyle"]=n.italic?"italic":"normal"},valueToForm:(e,n)=>({color:Ut(n,"label.color","#000000ff"),size:Ut(n,"label.fontSize",12),bold:Ut(n,"label.fontWeight")==="bold",italic:Ut(n,"label.fontStyle")==="italic"})},{label:"布局",prop:"",type:"divider"},{label:"位置",prop:"label.position",type:"radioGroup",fieldProps:{options:[{label:"顶部",value:"top"},{label:"左侧",value:"left"},{label:"右侧",value:"right"},{label:"底部",value:"bottom"},{label:"内部",value:"inside"},{label:"内部左侧",value:"insideLeft"},{label:"内部右侧",value:"insideRight"},{label:"内部顶部",value:"insideTop"},{label:"内部底部",value:"insideBottom"}]},defaultValue:"top"},{label:"文本方向",prop:"label.rotate",type:"radioGroup",fieldProps:{options:[{label:"水平",value:"horizontal"},{label:"垂直",value:"vertical"}]},defaultValue:"horizontal",format:(e,n)=>{e.value["label.rotate"]=n==="horizontal"?0:90},valueToForm:e=>e===0?"horizontal":"vertical"},{label:"边框",prop:"",type:"divider"},{label:"线宽",prop:"label.borderWidth",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:0},{label:"颜色",prop:"label.borderColor",type:"colorSelect",defaultValue:"#ccc"},{label:"圆角",prop:"label.borderRadius",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:0}]:[]}]}},Hge=t=>(h.pushScopeId("data-v-0b356b47"),t=t(),h.popScopeId(),t),Z$t={class:"chart-config"},X$t={class:"config-tab"},Y$t=Hge(()=>h.createElementVNode("span",null,"数据设置",-1)),q$t=Hge(()=>h.createElementVNode("span",null,"样式设置",-1)),K$t=h.defineComponent({__name:"Config",props:JP,emits:["change"],setup(t,{emit:e}){const n=t,r=h.ref("1"),i=e,o=[{label:"线",prop:"",type:"divider"},{label:"线条样式",prop:"series.line.lineStyle.type",type:"select",fieldProps:{options:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点线",value:"dotted"}]}},{label:"线宽",prop:"series.line.lineStyle.width",type:"inputNumber",fieldProps:{min:0,addonAfter:"px"}},{label:"形态",prop:"series.line.lineType",type:"radioGroupButton",fieldProps:{options:[{label:"普通",value:"normal"},{label:"平滑",value:"smooth"},{label:"阶梯",value:"step"}]},format:(u,c)=>{switch(c){case"smooth":u.value["series.line.smooth"]=!0,u.value["series.line.step"]=!1;break;case"step":u.value["series.line.smooth"]=!1,u.value["series.line.step"]="end";break;default:u.value["series.line.smooth"]=!1,u.value["series.line.step"]=!1}},valueToForm:(u,c)=>{const f=Ut(c,"series.line.step"),d=Ut(c,"series.line.smooth");return f?"step":d?"smooth":"normal"}},{label:"标记点",prop:"",type:"divider"},{label:"图形",prop:"series.line.symbol",type:"select",fieldProps:{options:[{label:"圆",value:"circle"},{label:"方",value:"rect"},{label:"三角",value:"triangle"},{label:"菱形",value:"diamond"},{label:"标记",value:"pin"},{label:"箭头",value:"arrow"},{label:"无",value:"none"}]}},{label:"大小",prop:"series.line.symbolSize",type:"inputNumber",fieldProps:{min:0,addonAfter:"px"}},{label:"旋转",prop:"series.line.symbolRotate",type:"inputNumber",fieldProps:{min:0,addonAfter:"°"}}],a=[nr.title,nr.legend,nr.label,{...nr.series,children:nr.series.children.concat(o)},nr.tooltip,nr.background],s=u=>{i("change",{...n,dataSource:u})},l=u=>{const c=$d(n);Object.keys(u).forEach(f=>{OL(c,f,u[f])}),i("change",c)};return(u,c)=>(h.openBlock(),h.createElementBlock("div",Z$t,[h.createElementVNode("div",X$t,[h.createVNode(h.unref(Rd),{activeKey:r.value,"onUpdate:activeKey":c[0]||(c[0]=f=>r.value=f),size:"small",centered:""},{default:h.withCtx(()=>[h.createVNode(h.unref(nu),{key:"1"},{tab:h.withCtx(()=>[h.createVNode(h.unref(o_)),Y$t]),_:1}),h.createVNode(h.unref(nu),{key:"2"},{tab:h.withCtx(()=>[h.createVNode(h.unref(a_)),q$t]),_:1})]),_:1},8,["activeKey"])]),r.value==="1"?(h.openBlock(),h.createBlock(QB,{key:0,dataSource:u.dataSource,onChange:s},null,8,["dataSource"])):h.createCommentVNode("",!0),r.value==="2"?(h.openBlock(),h.createBlock(h.unref(yc),{key:1,columns:a,formModel:n,onChange:l},null,8,["formModel"])):h.createCommentVNode("",!0)]))}}),HB=Dr(K$t,[["__scopeId","data-v-0b356b47"]]);Gd.Config=HB;Gd.install=t=>(t.component(Gd.name,Gd),t);const J$t=Object.freeze(Object.defineProperty({__proto__:null,Config:HB,basicLineProps:JP,default:Gd,defaultPropsValue:Qde},Symbol.toStringTag,{value:"Module"})),_2={width:{type:Number,default:400},height:{type:Number,default:260},dataSource:F3,title:{type:Object},legend:{type:Object},backgroundColor:{type:String},grid:{type:Object},tooltip:{type:Object},xAxis:{type:Object},yAxis:{type:Object},series:{type:Array},color:{type:Object},seriesExtend:{type:Object,default:()=>Gge}},eAt=[],Gge={fixedBarWidth:!1,barWidth:"auto",barGap:"10%",barCategoryGap:"20%",itemStyle:{borderColor:"#ccc",borderRadius:0,borderWidth:0}},tAt=z3({title:{text:"柱状图标题"},xAxis:{data:["轴标签A","轴标签B","轴标签C","轴标签D"]},series:eAt,seriesExtend:Gge}),jge={container:{props:{width:400,height:260}},props:{dataSource:{sourceType:er.STATIC,data:{series:[{type:"bar",name:"系列1",data:[10,30,20,40]},{type:"bar",name:"系列2",data:[15,35,25,45]}]},url:location.origin+"/mock/api/get/example/bar",method:"POST",params:{},headers:{},refreshTime:0,dataProcess:`
  459. (res) => {
  460. // 取出列表
  461. const data = res.data;
  462. // x轴数据
  463. const xData = data.map((item) => item.name);
  464. // 系列数据
  465. const series = [
  466. { type: 'bar', name: '价格', data: data.map(item => item.price) },
  467. { type: 'bar', name: '总量', data: data.map(item => item.count) },
  468. ];
  469. // 返回图表数据
  470. return { xData, series };
  471. }
  472. `},...tAt}},nAt=h.defineComponent({name:"DBasicBar",components:{Charts:V3},props:_2,setup(t){const{options:e,loading:n}=nB(t);return{options:e,loading:n}}});function rAt(t,e,n,r,i,o){const a=h.resolveComponent("Charts");return h.openBlock(),h.createBlock(a,{width:t.width,height:t.height,"echarts-options":t.options,loading:t.loading},null,8,["width","height","echarts-options","loading"])}const Zd=Dr(nAt,[["render",rAt]]),Uge=t=>(h.pushScopeId("data-v-3945a2ab"),t=t(),h.popScopeId(),t),iAt={class:"chart-config"},oAt={class:"config-tab"},aAt=Uge(()=>h.createElementVNode("span",null,"数据设置",-1)),sAt=Uge(()=>h.createElementVNode("span",null,"样式设置",-1)),lAt=h.defineComponent({__name:"Config",props:_2,emits:["change"],setup(t,{emit:e}){const n=t,r=h.ref("1"),i=e,o=[{label:"样式",prop:"",type:"divider"},{label:"固定柱宽",prop:"seriesExtend.fixedBarWidth",type:"radioGroup",fieldProps:{options:[{label:"是",value:!0},{label:"否",value:!1}]},defaultValue:!1,format:(u,c)=>{var f,d;u.value["seriesExtend.barWidth"]=c&&((f=u.value)==null?void 0:f["seriesExtend.barWidth"])!=="auto"?((d=u.value)==null?void 0:d["seriesExtend.barWidth"])||20:"auto"}},{label:"",prop:"",type:"dependency",name:["seriesExtend.fixedBarWidth"],children:u=>u["seriesExtend.fixedBarWidth"]?[{label:"柱宽",prop:"seriesExtend.barWidth",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:20}]:[]},{label:"系列间隔",prop:"seriesExtend.barGap",type:"slider",defaultValue:30,format:(u,c)=>{u.value["seriesExtend.barGap"]=c+"%"},valueToForm:u=>+((u==null?void 0:u.replace("%",""))||0)},{label:"分类间隔",prop:"seriesExtend.barCategoryGap",type:"slider",defaultValue:20,format:(u,c)=>{u.value["seriesExtend.barCategoryGap"]=c+"%"},valueToForm:u=>+((u==null?void 0:u.replace("%",""))||0)},{label:"边框",prop:"",type:"divider"},{label:"线宽",prop:"seriesExtend.itemStyle.borderWidth",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:0},{label:"颜色",prop:"seriesExtend.itemStyle.borderColor",type:"colorSelect",defaultValue:"#ccc"},{label:"圆角",prop:"seriesExtend.itemStyle.borderRadius",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:0}],a=[nr.title,nr.legend,nr.label,{...nr.series,children:nr.series.children.concat(o)},nr.xAxis,nr.yAxis,nr.tooltip],s=u=>{i("change",{...n,dataSource:u})},l=u=>{const c=$d(n);Object.keys(u).forEach(f=>{OL(c,f,u[f])}),i("change",c)};return(u,c)=>(h.openBlock(),h.createElementBlock("div",iAt,[h.createElementVNode("div",oAt,[h.createVNode(h.unref(Rd),{activeKey:r.value,"onUpdate:activeKey":c[0]||(c[0]=f=>r.value=f),size:"small",centered:""},{default:h.withCtx(()=>[h.createVNode(h.unref(nu),{key:"1"},{tab:h.withCtx(()=>[h.createVNode(h.unref(o_)),aAt]),_:1}),h.createVNode(h.unref(nu),{key:"2"},{tab:h.withCtx(()=>[h.createVNode(h.unref(a_)),sAt]),_:1})]),_:1},8,["activeKey"])]),r.value==="1"?(h.openBlock(),h.createBlock(QB,{key:0,dataSource:u.dataSource,onChange:s},null,8,["dataSource"])):h.createCommentVNode("",!0),r.value==="2"?(h.openBlock(),h.createBlock(h.unref(yc),{key:1,columns:a,formModel:n,onChange:l},null,8,["formModel"])):h.createCommentVNode("",!0)]))}}),GB=Dr(lAt,[["__scopeId","data-v-3945a2ab"]]);Zd.Config=GB;Zd.install=t=>(t.component(Zd.name,Zd),t);const uAt=Object.freeze(Object.defineProperty({__proto__:null,Config:GB,basicBarProps:_2,default:Zd,defaultPropsValue:jge},Symbol.toStringTag,{value:"Module"})),O2={width:{type:Number,default:400},height:{type:Number,default:260},dataSource:F3,title:{type:Object},legend:{type:Object},backgroundColor:{type:String},grid:{type:Object},tooltip:{type:Object},series:{type:Array},color:{type:Object},seriesExtend:{type:Object,default:()=>Zge}},cAt=[],Zge={top:70,left:20,right:20,bottom:20,startAngle:0,endAngle:360,radius:["0%","75%"]},fAt=z3({title:{text:"饼图标题"},grid:{show:!1},xAxis:{show:!1},yAxis:{show:!1},series:cAt,seriesExtend:Zge}),Xge={container:{props:{width:400,height:260}},props:{dataSource:{sourceType:er.STATIC,data:{series:[{type:"pie",name:"系列1",data:[{value:335,name:"直接访问"},{value:310,name:"邮件营销"},{value:234,name:"联盟广告"},{value:135,name:"视频广告"}]}]},url:location.origin+"/mock/api/get/example/pie",method:"POST",params:{},headers:{},refreshTime:0,dataProcess:`
  473. (res) => {
  474. // 取出列表
  475. const data = res.data;
  476. // 系列数据
  477. const series = [
  478. { type: 'pie', name: '月份', data: data.map(item => ({value: item.apple, name: item.name})) }
  479. ];
  480. // 返回图表数据
  481. return { series };
  482. }
  483. `},...fAt}},dAt=h.defineComponent({name:"DBasicPie",components:{Charts:V3},props:O2,setup(t){const{options:e,loading:n}=nB(t);return{options:e,loading:n}}});function hAt(t,e,n,r,i,o){const a=h.resolveComponent("Charts");return h.openBlock(),h.createBlock(a,{width:t.width,height:t.height,"echarts-options":t.options,loading:t.loading},null,8,["width","height","echarts-options","loading"])}const Xd=Dr(dAt,[["render",hAt]]),Yge=t=>(h.pushScopeId("data-v-4184f99c"),t=t(),h.popScopeId(),t),pAt={class:"chart-config"},vAt={class:"config-tab"},gAt=Yge(()=>h.createElementVNode("span",null,"数据设置",-1)),mAt=Yge(()=>h.createElementVNode("span",null,"样式设置",-1)),yAt=h.defineComponent({__name:"Config",props:O2,emits:["change"],setup(t,{emit:e}){const n=t,r=h.ref("1"),i=e,o=[{label:"样式",prop:"",type:"divider"},{label:"起始角度",prop:"series.pie.startAngle",type:"inputNumber",fieldProps:{min:0,max:360,addonAfter:"°"}},{label:"完结角度",prop:"series.pie.endAngle",type:"inputNumber",fieldProps:{min:0,max:360,addonAfter:"°"}},{label:"内径占比",prop:"series.pie.radius",type:"slider",format:(u,c)=>{const f=c*.75;return u.value["series.pie.radius"]=[f+"%","75%"],c*100},valueToForm:u=>(u||["0%","75%"])[0].replace("%","")/.75},{label:"容器距离",prop:"",type:"divider"},{label:"距离左侧",prop:"series.pie.left",type:"inputNumber",fieldProps:{addonAfter:"px"}},{label:"距离右侧",prop:"series.pie.right",type:"inputNumber",fieldProps:{addonAfter:"px"}},{label:"距离顶部",prop:"series.pie.top",type:"inputNumber",fieldProps:{addonAfter:"px"}},{label:"距离底部",prop:"series.pie.bottom",type:"inputNumber",fieldProps:{addonAfter:"px"}}],a=[nr.title,nr.legend,nr.label,{...nr.series,children:nr.series.children.concat(o)},nr.tooltip],s=u=>{i("change",{...n,dataSource:u})},l=u=>{const c=$d(n);Object.keys(u).forEach(f=>{OL(c,f,u[f])}),i("change",c)};return(u,c)=>(h.openBlock(),h.createElementBlock("div",pAt,[h.createElementVNode("div",vAt,[h.createVNode(h.unref(Rd),{activeKey:r.value,"onUpdate:activeKey":c[0]||(c[0]=f=>r.value=f),size:"small",centered:""},{default:h.withCtx(()=>[h.createVNode(h.unref(nu),{key:"1"},{tab:h.withCtx(()=>[h.createVNode(h.unref(o_)),gAt]),_:1}),h.createVNode(h.unref(nu),{key:"2"},{tab:h.withCtx(()=>[h.createVNode(h.unref(a_)),mAt]),_:1})]),_:1},8,["activeKey"])]),r.value==="1"?(h.openBlock(),h.createBlock(QB,{key:0,dataSource:u.dataSource,onChange:s},null,8,["dataSource"])):h.createCommentVNode("",!0),r.value==="2"?(h.openBlock(),h.createBlock(h.unref(yc),{key:1,columns:a,formModel:n,onChange:l},null,8,["formModel"])):h.createCommentVNode("",!0)]))}}),jB=Dr(yAt,[["__scopeId","data-v-4184f99c"]]);Xd.Config=jB;Xd.install=t=>(t.component(Xd.name,Xd),t);const bAt=Object.freeze(Object.defineProperty({__proto__:null,Config:jB,basicPieProps:O2,default:Xd,defaultPropsValue:Xge},Symbol.toStringTag,{value:"Module"})),_At={Title:()=>Promise.resolve().then(()=>UQe),BasicLine:()=>Promise.resolve().then(()=>J$t),BasicBar:()=>Promise.resolve().then(()=>uAt),BasicPie:()=>Promise.resolve().then(()=>bAt),Container:()=>Promise.resolve().then(()=>hQe)},tL={BasicLine:Gd,BasicBar:Zd,Title:Ld,BasicPie:Xd,Container:Nd},qge=function(t){return Object.keys(tL).forEach(e=>{const n=tL[e];n!=null&&n.install&&(console.log("注册组件:",e),t.use(n))}),t},OAt={version:"1.0.0",install:qge};exports.BasicBar=Zd;exports.BasicBarConfig=GB;exports.BasicBarDefaultProps=jge;exports.BasicBarProps=_2;exports.BasicLine=Gd;exports.BasicLineConfig=HB;exports.BasicLineDefaultProps=Qde;exports.BasicLineProps=JP;exports.BasicPie=Xd;exports.BasicPieConfig=jB;exports.BasicPieDefaultProps=Xge;exports.BasicPieProps=O2;exports.Container=Nd;exports.CusForm=yc;exports.DataSourceType=er;exports.Title=Ld;exports.asyncComponentAll=_At;exports.components=tL;exports.default=OAt;exports.install=qge;
  484. //# sourceMappingURL=shalu-dashboard-ui.cjs.map