shalu-dashboard-ui.umd.cjs 2.5 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478
  1. (function(lt,p){typeof exports=="object"&&typeof module<"u"?p(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],p):(lt=typeof globalThis<"u"?globalThis:lt||self,p(lt.shaluDashboardUi={},lt.Vue))})(this,function(lt,p){"use strict";var Rr=(t=>(t[t.STATIC=0]="STATIC",t[t.API=1]="API",t))(Rr||{});const Jx={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}},Mse={container:{style:{background:{type:"none"}},props:{width:300,height:80}},props:{text:"标题内容",fontSize:24,color:"#fff",fontWeight:"bold",textAlign:"left",direction:"horizontal"}};function Ise(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}const sf=p.defineComponent({__name:"index",props:Jx,setup(t){const e=t,n=p.computed(()=>{const r=Ise(e),i={};return r.color.length>9&&(i.backgroundImage=r.color,i.webkitBackgroundClip="text",i.webkitTextFillColor="transparent"),{...i,...r,width:"100%",height:"100%",lineHeight:e.height+"px"}});return(r,i)=>(p.openBlock(),p.createElementBlock("div",{class:"cus-title",style:p.normalizeStyle(n.value)},p.toDisplayString(r.text),5))}});function np(t){"@babel/helpers - typeof";return np=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},np(t)}function Dse(t,e){if(np(t)!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(np(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Rse(t){var e=Dse(t,"string");return np(e)=="symbol"?e:e+""}function kse(t,e,n){return(e=Rse(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function YN(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 H(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?YN(Object(n),!0).forEach(function(r){kse(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):YN(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function I(){return I=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},I.apply(null,arguments)}const Nse=t=>typeof t=="function",Lse=Array.isArray,Vse=t=>typeof t=="string",Bse=t=>t!==null&&typeof t=="object",zse=/^on[^a-z]/,Fse=t=>zse.test(t),qN=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},Wse=/-(\w)/g,ew=qN(t=>t.replace(Wse,(e,n)=>n?n.toUpperCase():"")),Qse=/\B([A-Z])/g,Hse=qN(t=>t.replace(Qse,"-$1").toLowerCase()),jse=Object.prototype.hasOwnProperty,KN=(t,e)=>jse.call(t,e);function Gse(t,e,n,r){const i=t[n];if(i!=null){const a=KN(i,"default");if(a&&r===void 0){const o=i.default;r=i.type!==Function&&Nse(o)?o():o}i.type===Boolean&&(!KN(e,n)&&!a?r=!1:r===""&&(r=!0))}return r}function Zse(t){return Object.keys(t).reduce((e,n)=>((n.startsWith("data-")||n.startsWith("aria-"))&&(e[n]=t[n]),e),{})}function rp(t){return typeof t=="number"?`${t}px`:t}function lf(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 Use(t){let e;const n=new Promise(i=>{e=t(()=>{i(!0)})}),r=()=>{e==null||e()};return r.then=(i,a)=>n.then(i,a),r.promise=n,r}function fe(){const t=[];for(let e=0;e<arguments.length;e++){const n=e<0||arguments.length<=e?void 0:arguments[e];if(n){if(Vse(n))t.push(n);else if(Lse(n))for(let r=0;r<n.length;r++){const i=fe(n[r]);i&&t.push(i)}else if(Bse(n))for(const r in n)n[r]&&t.push(r)}}return t.join(" ")}var JN=function(){if(typeof Map<"u")return Map;function t(e,n){var r=-1;return e.some(function(i,a){return i[0]===n?(r=a,!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,a=this.__entries__;i<a.length;i++){var o=a[i];n.call(r,o[1],o[0])}},e}()}(),tw=typeof window<"u"&&typeof document<"u"&&window.document===document,T0=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")()}(),Xse=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(T0):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)}}(),Yse=2;function qse(t,e){var n=!1,r=!1,i=0;function a(){n&&(n=!1,t()),r&&s()}function o(){Xse(a)}function s(){var l=Date.now();if(n){if(l-i<Yse)return;r=!0}else n=!0,r=!1,setTimeout(o,e);i=l}return s}var Kse=20,Jse=["top","right","bottom","left","width","height","size","weight"],ele=typeof MutationObserver<"u",tle=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=qse(this.refresh.bind(this),Kse)}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(){!tw||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),ele?(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(){!tw||!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=Jse.some(function(a){return!!~r.indexOf(a)});i&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),eL=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},uf=function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||T0},tL=$0(0,0,0,0);function P0(t){return parseFloat(t)||0}function nL(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(r,i){var a=t["border-"+i+"-width"];return r+P0(a)},0)}function nle(t){for(var e=["top","right","bottom","left"],n={},r=0,i=e;r<i.length;r++){var a=i[r],o=t["padding-"+a];n[a]=P0(o)}return n}function rle(t){var e=t.getBBox();return $0(0,0,e.width,e.height)}function ile(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return tL;var r=uf(t).getComputedStyle(t),i=nle(r),a=i.left+i.right,o=i.top+i.bottom,s=P0(r.width),l=P0(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+a)!==e&&(s-=nL(r,"left","right")+a),Math.round(l+o)!==n&&(l-=nL(r,"top","bottom")+o)),!ole(t)){var u=Math.round(s+a)-e,c=Math.round(l+o)-n;Math.abs(u)!==1&&(s-=u),Math.abs(c)!==1&&(l-=c)}return $0(i.left,i.top,s,l)}var ale=function(){return typeof SVGGraphicsElement<"u"?function(t){return t instanceof uf(t).SVGGraphicsElement}:function(t){return t instanceof uf(t).SVGElement&&typeof t.getBBox=="function"}}();function ole(t){return t===uf(t).document.documentElement}function sle(t){return tw?ale(t)?rle(t):ile(t):tL}function lle(t){var e=t.x,n=t.y,r=t.width,i=t.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,o=Object.create(a.prototype);return eL(o,{x:e,y:n,width:r,height:i,top:n,right:e+r,bottom:i+n,left:e}),o}function $0(t,e,n,r){return{x:t,y:e,width:n,height:r}}var ule=function(){function t(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=$0(0,0,0,0),this.target=e}return t.prototype.isActive=function(){var e=sle(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}(),cle=function(){function t(e,n){var r=lle(n);eL(this,{target:e,contentRect:r})}return t}(),fle=function(){function t(e,n,r){if(this.activeObservations_=[],this.observations_=new JN,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 uf(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)||(n.set(e,new ule(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 uf(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 cle(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}(),rL=typeof WeakMap<"u"?new WeakMap:new JN,iL=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=tle.getInstance(),r=new fle(e,n,this);rL.set(this,r)}return t}();["observe","unobserve","disconnect"].forEach(function(t){iL.prototype[t]=function(){var e;return(e=rL.get(this))[t].apply(e,arguments)}});var aL=function(){return typeof T0.ResizeObserver<"u"?T0.ResizeObserver:iL}();const nw=t=>t!=null&&t!=="",Dn=(t,e)=>{const n=I({},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},dle=t=>{const e=Object.keys(t),n={},r={},i={};for(let a=0,o=e.length;a<o;a++){const s=e[a];Fse(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}},hle=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(a){if(a){const o=a.split(i);if(o.length>1){const s=e?ew(o[0].trim()):o[0].trim();n[s]=o[1].trim()}}}),n)},A0=(t,e)=>t[e]!==void 0,oL=Symbol("skipFlatten"),bn=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(...bn(i,e)):i&&i.type===p.Fragment?i.key===oL?r.push(i):r.push(...bn(i.children,e)):i&&p.isVNode(i)?e&&!rw(i)?r.push(i):e||r.push(i):nw(i)&&r.push(i)}),r},sL=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(p.isVNode(t))return t.type===p.Fragment?e==="default"?bn(t.children):[]:t.children&&t.children[e]?bn(t.children[e](n)):[];{const r=t.$slots[e]&&t.$slots[e](n);return bn(r)}},Vo=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},ple=t=>{const e={};if(t.$&&t.$.vnode){const n=t.$.vnode.props||{};Object.keys(t.$props).forEach(r=>{const i=t.$props[r],a=Hse(r);(i!==void 0||a in n)&&(e[r]=i)})}else if(p.isVNode(t)&&typeof t.type=="object"){const n=t.props||{},r={};Object.keys(n).forEach(a=>{r[ew(a)]=n[a]});const i=t.type.props||{};Object.keys(i).forEach(a=>{const o=Gse(i,r,a,r[a]);(o!==void 0||a in r)&&(e[a]=o)})}return e},gle=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 a=t[e];if(a!==void 0)return typeof a=="function"&&r?a(n):a;i=t.$slots[e],i=r&&i?i(n):i}else if(p.isVNode(t)){const a=t.props&&t.props[e];if(a!==void 0&&t.props!==null)return typeof a=="function"&&r?a(n):a;t.type===p.Fragment?i=t.children:t.children&&t.children[e]&&(i=t.children[e],i=r&&i?i(n):i)}return Array.isArray(i)&&(i=bn(i),i=i.length===1?i[0]:i,i=i.length===0?void 0:i),i};function lL(){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=I(I({},n),t.$attrs):n=I(I({},n),t.props),dle(n)[e?"onEvents":"events"]}function vle(t,e){let r=((p.isVNode(t)?t.props:t.$attrs)||{}).style||{};return typeof r=="string"&&(r=hle(r,e)),r}function mle(t){return t.length===1&&t[0].type===p.Fragment}function rw(t){return t&&(t.type===p.Comment||t.type===p.Fragment&&t.children.length===0||t.type===p.Text&&t.children.trim()==="")}function Qa(){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)===p.Fragment?e.push(...Qa(n.children)):e.push(n)}),e.filter(n=>!rw(n))}function ei(t){return Array.isArray(t)&&t.length===1&&(t=t[0]),t&&t.__v_isVNode&&typeof t.type!="symbol"}function E0(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 cf=p.defineComponent({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup(t,e){let{slots:n}=e;const r=p.reactive({width:0,height:0,offsetHeight:0,offsetWidth:0});let i=null,a=null;const o=()=>{a&&(a.disconnect(),a=null)},s=c=>{const{onResize:f}=t,d=c[0].target,{width:h,height:g}=d.getBoundingClientRect(),{offsetWidth:v,offsetHeight:m}=d,y=Math.floor(h),b=Math.floor(g);if(r.width!==y||r.height!==b||r.offsetWidth!==v||r.offsetHeight!==m){const _={width:y,height:b,offsetWidth:v,offsetHeight:m};I(r,_),f&&Promise.resolve().then(()=>{f(I(I({},_),{offsetWidth:v,offsetHeight:m}),d)})}},l=p.getCurrentInstance(),u=()=>{const{disabled:c}=t;if(c){o();return}const f=Vo(l);f!==i&&(o(),i=f),!a&&f&&(a=new aL(s),a.observe(f))};return p.onMounted(()=>{u()}),p.onUpdated(()=>{u()}),p.onUnmounted(()=>{o()}),p.watch(()=>t.disabled,()=>{u()},{flush:"post"}),()=>{var c;return(c=n.default)===null||c===void 0?void 0:c.call(n)[0]}}});let uL=t=>setTimeout(t,16),cL=t=>clearTimeout(t);typeof window<"u"&&"requestAnimationFrame"in window&&(uL=t=>window.requestAnimationFrame(t),cL=t=>window.cancelAnimationFrame(t));let fL=0;const iw=new Map;function dL(t){iw.delete(t)}function at(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;fL+=1;const n=fL;function r(i){if(i===0)dL(n),t();else{const a=uL(()=>{r(i-1)});iw.set(n,a)}}return r(e),n}at.cancel=t=>{const e=iw.get(t);return dL(e),cL(e)};const Ms=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e},ff=t=>{const e=t;return e.install=function(n){n.component(e.displayName||e.name,t)},t};function M0(){return{type:[Function,Array]}}function ut(t){return{type:Object,default:t}}function We(t){return{type:Boolean,default:t}}function Qe(t){return{type:Function,default:t}}function xi(t,e){return{validator:()=>!0,default:t}}function ql(t){return{type:Array,default:t}}function Bt(t){return{type:String,default:t}}function Zt(t,e){return t?{type:t,default:e}:xi(e)}let Bn=!1;try{const t=Object.defineProperty({},"passive",{get(){Bn=!0}});window.addEventListener("testPassive",null,t),window.removeEventListener("testPassive",null,t)}catch{}function zn(t,e,n,r){if(t&&t.addEventListener){let i=r;i===void 0&&Bn&&(e==="touchstart"||e==="touchmove"||e==="wheel")&&(i={passive:!1}),t.addEventListener(e,n,i)}return{remove:()=>{t&&t.removeEventListener&&t.removeEventListener(e,n)}}}const aw="anticon",hL=Symbol("GlobalFormContextKey"),yle=t=>{p.provide(hL,t)},ble=()=>p.inject(hL,{validateMessages:p.computed(()=>{})}),_le=()=>({iconPrefixCls:String,getTargetContainer:{type:Function},getPopupContainer:{type:Function},prefixCls:String,getPrefixCls:{type:Function},renderEmpty:{type:Function},transformCellText:{type:Function},csp:ut(),input:ut(),autoInsertSpaceInButton:{type:Boolean,default:void 0},locale:ut(),pageHeader:ut(),componentSize:{type:String},componentDisabled:{type:Boolean,default:void 0},direction:{type:String,default:"ltr"},space:ut(),virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},form:ut(),pagination:ut(),theme:ut(),select:ut(),wave:ut()}),ow=Symbol("configProvider"),pL={getPrefixCls:(t,e)=>e||(t?`ant-${t}`:"ant"),iconPrefixCls:p.computed(()=>aw),getPopupContainer:p.computed(()=>()=>document.body),direction:p.computed(()=>"ltr")},I0=()=>p.inject(ow,pL),Ole=t=>p.provide(ow,t),gL=Symbol("DisabledContextKey"),Ha=()=>p.inject(gL,p.ref(void 0)),vL=t=>{const e=Ha();return p.provide(gL,p.computed(()=>{var n;return(n=t.value)!==null&&n!==void 0?n:e.value})),t},Sle={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"},xle={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"},mL={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},yL={lang:I({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"]},xle),timePickerLocale:I({},mL)},ti="${label} is not a valid ${type}",Bo={locale:"en",Pagination:Sle,DatePicker:yL,TimePicker:mL,Calendar:yL,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:ti,method:ti,array:ti,object:ti,number:ti,date:ti,boolean:ti,integer:ti,float:ti,regexp:ti,email:ti,url:ti,hex:ti},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"}},bL=p.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=p.inject("localeData",{}),i=p.computed(()=>{const{componentName:o="global",defaultLocale:s}=t,l=s||Bo[o||"global"],{antLocale:u}=r,c=o&&u?u[o]:{};return I(I({},typeof l=="function"?l():l),c||{})}),a=p.computed(()=>{const{antLocale:o}=r,s=o&&o.locale;return o&&o.exist&&!s?Bo.locale:s});return()=>{const o=t.children||n.default,{antLocale:s}=r;return o==null?void 0:o(i.value,a.value,s)}}});function D0(t,e,n){const r=p.inject("localeData",{});return[p.computed(()=>{const{antLocale:a}=r,o=p.unref(e)||Bo[t||"global"],s=t&&a?a[t]:{};return I(I(I({},typeof o=="function"?o():o),s||{}),p.unref(n)||{})})]}function sw(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 _L="%";class wle{constructor(e){this.cache=new Map,this.instanceId=e}get(e){return this.cache.get(Array.isArray(e)?e.join(_L):e)||null}update(e,n){const r=Array.isArray(e)?e.join(_L):e,i=this.cache.get(r),a=n(i);a===null?this.cache.delete(r):this.cache.set(r,a)}}const OL="data-token-hash",Kl="data-css-hash",Cle="data-cache-path",df="__cssinjs_instance__";function ip(){const t=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){const e=document.body.querySelectorAll(`style[${Kl}]`)||[],{firstChild:n}=document.head;Array.from(e).forEach(i=>{i[df]=i[df]||t,i[df]===t&&document.head.insertBefore(i,n)});const r={};Array.from(document.querySelectorAll(`style[${Kl}]`)).forEach(i=>{var a;const o=i.getAttribute(Kl);r[o]?i[df]===t&&((a=i.parentNode)===null||a===void 0||a.removeChild(i)):r[o]=!0})}return new wle(t)}const SL=Symbol("StyleContextKey"),Tle=()=>{var t,e,n;const r=p.getCurrentInstance();let i;if(r&&r.appContext){const a=(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__;a?i=a:(i=ip(),r.appContext.config.globalProperties&&(r.appContext.config.globalProperties.__ANTDV_CSSINJS_CACHE__=i))}else i=ip();return i},xL={cache:ip(),defaultCache:!0,hashPriority:"low"},R0=()=>{const t=Tle();return p.inject(SL,p.shallowRef(I(I({},xL),{cache:t})))},Ple=t=>{const e=R0(),n=p.shallowRef(I(I({},xL),{cache:ip()}));return p.watch([()=>p.unref(t),e],()=>{const r=I({},e.value),i=p.unref(t);Object.keys(i).forEach(o=>{const s=i[o];i[o]!==void 0&&(r[o]=s)});const{cache:a}=i;r.cache=r.cache||ip(),r.defaultCache=!a&&e.value.defaultCache,n.value=r},{immediate:!0}),p.provide(SL,n),n},$le=()=>({autoClear:We(),mock:Bt(),cache:ut(),defaultCache:We(),hashPriority:Bt(),container:Zt(),ssrInline:We(),transformers:ql(),linters:ql()});ff(p.defineComponent({name:"AStyleProvider",inheritAttrs:!1,props:$le(),setup(t,e){let{slots:n}=e;return Ple(t),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}));function Ale(){return!1}let lw=!1;function Ele(){return lw}const Mle=process.env.NODE_ENV==="production"?Ale:Ele;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 lw=!0,setTimeout(()=>{lw=!1},0),e(...arguments)}}}function wL(t,e,n,r){const i=R0(),a=p.shallowRef(""),o=p.shallowRef();p.watchEffect(()=>{a.value=[t,...e.value].join("%")});const s=Mle(),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 p.watch(a,(u,c)=>{c&&l(c),i.value.cache.update(u,f=>{const[d=0,h]=f||[];let g=h;process.env.NODE_ENV!=="production"&&h&&s&&(r==null||r(g,s),g=null);const v=g||n();return[d+1,v]}),o.value=i.value.cache.get(a.value)[1]},{immediate:!0}),p.onBeforeUnmount(()=>{l(a.value)}),o}function wi(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Is(t,e){return t&&t.contains?t.contains(e):!1}const CL="data-vc-order",Ile="vc-util-key",uw=new Map;function TL(){let{mark:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return t?t.startsWith("data-")?t:`data-${t}`:Ile}function k0(t){return t.attachTo?t.attachTo:document.querySelector("head")||document.body}function Dle(t){return t==="queue"?"prependQueue":t?"prepend":"append"}function PL(t){return Array.from((uw.get(t)||t).children).filter(e=>e.tagName==="STYLE")}function $L(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!wi())return null;const{csp:n,prepend:r}=e,i=document.createElement("style");i.setAttribute(CL,Dle(r)),n!=null&&n.nonce&&(i.nonce=n==null?void 0:n.nonce),i.innerHTML=t;const a=k0(e),{firstChild:o}=a;if(r){if(r==="queue"){const s=PL(a).filter(l=>["prepend","prependQueue"].includes(l.getAttribute(CL)));if(s.length)return a.insertBefore(i,s[s.length-1].nextSibling),i}a.insertBefore(i,o)}else a.appendChild(i);return i}function AL(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=k0(e);return PL(n).find(r=>r.getAttribute(TL(e))===t)}function N0(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=AL(t,e);n&&k0(e).removeChild(n)}function Rle(t,e){const n=uw.get(t);if(!n||!Is(document,n)){const r=$L("",e),{parentNode:i}=r;uw.set(t,i),t.removeChild(r)}}function ap(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var r,i,a;const o=k0(n);Rle(o,n);const s=AL(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=(a=n.csp)===null||a===void 0?void 0:a.nonce),s.innerHTML!==t&&(s.innerHTML=t),s;const l=$L(t,n);return l.setAttribute(TL(n),e),l}function kle(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 hf{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 a;r?r=(a=r==null?void 0:r.map)===null||a===void 0?void 0:a.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>hf.MAX_CACHE_SIZE+hf.MAX_CACHE_OFFSET){const[i]=this.keys.reduce((a,o)=>{const[,s]=a;return this.internalGet(o)[1]<s?[o,this.internalGet(o)[1]]:a},[this.keys[0],this.cacheCallTimes]);this.delete(i)}this.keys.push(e)}let r=this.cache;e.forEach((i,a)=>{if(a===e.length-1)r.set(i,{value:[n,this.cacheCallTimes++]});else{const o=r.get(i);o?o.map||(o.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 a=this.deleteByPath(i.map,n.slice(1));return(!i.map||i.map.size===0)&&!i.value&&e.delete(n[0]),a}delete(e){if(this.has(e))return this.keys=this.keys.filter(n=>!kle(n,e)),this.deleteByPath(this.cache,e)}}hf.MAX_CACHE_SIZE=20,hf.MAX_CACHE_OFFSET=5;let cw={};function Jl(t,e){process.env.NODE_ENV!=="production"&&!t&&console!==void 0&&console.error(`Warning: ${e}`)}function Nle(t,e){process.env.NODE_ENV!=="production"&&!t&&console!==void 0&&console.warn(`Note: ${e}`)}function Lle(){cw={}}function EL(t,e,n){!e&&!cw[n]&&(t(!1,n),cw[n]=!0)}function Ci(t,e){EL(Jl,t,e)}function ML(t,e){EL(Nle,t,e)}function Vle(){}let pr=Vle;process.env.NODE_ENV!=="production"&&(pr=(t,e,n)=>{Ci(t,`[ant-design-vue: ${e}] ${n}`),process.env.NODE_ENV==="test"&&Lle()});let IL=0;class DL{constructor(e){this.derivatives=Array.isArray(e)?e:[e],this.id=IL,e.length===0&&pr(e.length>0,"[Ant Design Vue CSS-in-JS] Theme should have at least one derivative function."),IL+=1}getDerivativeToken(e){return this.derivatives.reduce((n,r)=>r(e,n),void 0)}}const fw=new hf;function RL(t){const e=Array.isArray(t)?t:[t];return fw.has(e)||fw.set(e,new DL(e)),fw.get(e)}const kL=new WeakMap;function L0(t){let e=kL.get(t)||"";return e||(Object.keys(t).forEach(n=>{const r=t[n];e+=n,r instanceof DL?e+=r.id:r&&typeof r=="object"?e+=L0(r):e+=r}),kL.set(t,e)),e}function Ble(t,e){return sw(`${e}_${L0(t)}`)}const op=`random-${Date.now()}-${Math.random()}`.replace(/\./g,""),NL="_bAmBoO_";function zle(t,e,n){var r,i;if(wi()){ap(t,op);const a=document.createElement("div");a.style.position="fixed",a.style.left="0",a.style.top="0",e==null||e(a),document.body.appendChild(a),process.env.NODE_ENV!=="production"&&(a.innerHTML="Test",a.style.zIndex="9999999");const o=n?n(a):(r=getComputedStyle(a).content)===null||r===void 0?void 0:r.includes(NL);return(i=a.parentNode)===null||i===void 0||i.removeChild(a),N0(op),o}return!1}let dw;function Fle(){return dw===void 0&&(dw=zle(`@layer ${op} { .${op} { content: "${NL}"!important; } }`,t=>{t.className=op})),dw}const LL={},Wle=process.env.NODE_ENV==="production",Qle=process.env.NODE_ENV==="prerender",Hle=!Wle&&!Qle?"css-dev-only-do-not-override":"css",eu=new Map;function jle(t){eu.set(t,(eu.get(t)||0)+1)}function Gle(t,e){typeof document<"u"&&document.querySelectorAll(`style[${OL}="${t}"]`).forEach(r=>{var i;r[df]===e&&((i=r.parentNode)===null||i===void 0||i.removeChild(r))})}const Zle=0;function Ule(t,e){eu.set(t,(eu.get(t)||0)-1);const n=Array.from(eu.keys()),r=n.filter(i=>(eu.get(i)||0)<=0);n.length-r.length>Zle&&r.forEach(i=>{Gle(i,e),eu.delete(i)})}const Xle=(t,e,n,r)=>{const i=n.getDerivativeToken(t);let a=I(I({},i),e);return r&&(a=r(a)),a};function Yle(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:p.ref({});const r=R0(),i=p.computed(()=>I({},...e.value)),a=p.computed(()=>L0(i.value)),o=p.computed(()=>L0(n.value.override||LL));return wL("token",p.computed(()=>[n.value.salt||"",t.value.id,a.value,o.value]),()=>{const{salt:l="",override:u=LL,formatToken:c,getComputedToken:f}=n.value,d=f?f(i.value,u,t.value):Xle(i.value,u,t.value,c),h=Ble(d,l);d._tokenKey=h,jle(h);const g=`${Hle}-${sw(h)}`;return d._hashId=g,[d,g]},l=>{var u;Ule(l[0]._tokenKey,(u=r.value)===null||u===void 0?void 0:u.cache.instanceId)})}var qle={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},VL="comm",BL="rule",zL="decl",Kle="@import",Jle="@keyframes",eue="@layer",FL=Math.abs,hw=String.fromCharCode;function WL(t){return t.trim()}function V0(t,e,n){return t.replace(e,n)}function tue(t,e,n){return t.indexOf(e,n)}function sp(t,e){return t.charCodeAt(e)|0}function lp(t,e,n){return t.slice(e,n)}function zo(t){return t.length}function nue(t){return t.length}function B0(t,e){return e.push(t),t}var z0=1,pf=1,QL=0,Ti=0,hn=0,gf="";function pw(t,e,n,r,i,a,o,s){return{value:t,root:e,parent:n,type:r,props:i,children:a,line:z0,column:pf,length:o,return:"",siblings:s}}function rue(){return hn}function iue(){return hn=Ti>0?sp(gf,--Ti):0,pf--,hn===10&&(pf=1,z0--),hn}function da(){return hn=Ti<QL?sp(gf,Ti++):0,pf++,hn===10&&(pf=1,z0++),hn}function tu(){return sp(gf,Ti)}function F0(){return Ti}function W0(t,e){return lp(gf,t,e)}function gw(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 aue(t){return z0=pf=1,QL=zo(gf=t),Ti=0,[]}function oue(t){return gf="",t}function vw(t){return WL(W0(Ti-1,mw(t===91?t+2:t===40?t+1:t)))}function sue(t){for(;(hn=tu())&&hn<33;)da();return gw(t)>2||gw(hn)>3?"":" "}function lue(t,e){for(;--e&&da()&&!(hn<48||hn>102||hn>57&&hn<65||hn>70&&hn<97););return W0(t,F0()+(e<6&&tu()==32&&da()==32))}function mw(t){for(;da();)switch(hn){case t:return Ti;case 34:case 39:t!==34&&t!==39&&mw(hn);break;case 40:t===41&&mw(t);break;case 92:da();break}return Ti}function uue(t,e){for(;da()&&t+hn!==57;)if(t+hn===84&&tu()===47)break;return"/*"+W0(e,Ti-1)+"*"+hw(t===47?t:da())}function cue(t){for(;!gw(tu());)da();return W0(t,Ti)}function fue(t){return oue(Q0("",null,null,null,[""],t=aue(t),0,[0],t))}function Q0(t,e,n,r,i,a,o,s,l){for(var u=0,c=0,f=o,d=0,h=0,g=0,v=1,m=1,y=1,b=0,_="",O=i,S=a,x=r,w=_;m;)switch(g=b,b=da()){case 40:if(g!=108&&sp(w,f-1)==58){tue(w+=V0(vw(b),"&","&\f"),"&\f",FL(u?s[u-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:w+=vw(b);break;case 9:case 10:case 13:case 32:w+=sue(g);break;case 92:w+=lue(F0()-1,7);continue;case 47:switch(tu()){case 42:case 47:B0(due(uue(da(),F0()),e,n,l),l);break;default:w+="/"}break;case 123*v:s[u++]=zo(w)*y;case 125*v:case 59:case 0:switch(b){case 0:case 125:m=0;case 59+c:y==-1&&(w=V0(w,/\f/g,"")),h>0&&zo(w)-f&&B0(h>32?jL(w+";",r,n,f-1,l):jL(V0(w," ","")+";",r,n,f-2,l),l);break;case 59:w+=";";default:if(B0(x=HL(w,e,n,u,c,i,s,_,O=[],S=[],f,a),a),b===123)if(c===0)Q0(w,e,x,x,O,a,f,s,S);else switch(d===99&&sp(w,3)===110?100:d){case 100:case 108:case 109:case 115:Q0(t,x,x,r&&B0(HL(t,x,x,0,0,i,s,_,i,O=[],f,S),S),i,S,f,s,r?O:S);break;default:Q0(w,x,x,x,[""],S,0,s,S)}}u=c=h=0,v=y=1,_=w="",f=o;break;case 58:f=1+zo(w),h=g;default:if(v<1){if(b==123)--v;else if(b==125&&v++==0&&iue()==125)continue}switch(w+=hw(b),b*v){case 38:y=c>0?1:(w+="\f",-1);break;case 44:s[u++]=(zo(w)-1)*y,y=1;break;case 64:tu()===45&&(w+=vw(da())),d=tu(),c=f=zo(_=w+=cue(F0())),b++;break;case 45:g===45&&zo(w)==2&&(v=0)}}return a}function HL(t,e,n,r,i,a,o,s,l,u,c,f){for(var d=i-1,h=i===0?a:[""],g=nue(h),v=0,m=0,y=0;v<r;++v)for(var b=0,_=lp(t,d+1,d=FL(m=o[v])),O=t;b<g;++b)(O=WL(m>0?h[b]+" "+_:V0(_,/&\f/g,h[b])))&&(l[y++]=O);return pw(t,e,n,i===0?BL:s,l,u,c,f)}function due(t,e,n,r){return pw(t,e,n,VL,hw(rue()),lp(t,2,-2),0,r)}function jL(t,e,n,r,i){return pw(t,e,n,zL,lp(t,0,r),lp(t,r+1,-1),r,i)}function yw(t,e){for(var n="",r=0;r<t.length;r++)n+=e(t[r],r,t,e)||"";return n}function hue(t,e,n,r){switch(t.type){case eue:if(t.children.length)break;case Kle:case zL:return t.return=t.return||t.value;case VL:return"";case Jle:return t.return=t.value+"{"+yw(t.children,r)+"}";case BL:if(!zo(t.value=t.props.join(",")))return""}return zo(n=yw(t.children,r))?t.return=t.value+"{"+n+"}":""}function GL(t,e){const{path:n,parentSelectors:r}=e;Ci(!1,`[Ant Design Vue CSS-in-JS] ${n?`Error in '${n}': `:""}${t}${r.length?` Selector info: ${r.join(" -> ")}`:""}`)}const pue=(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)!=="'"))&&GL(`You seem to be using a value for 'content' without quotes, try replacing it with \`content: '"${e}"'\`.`,n)}},gue=(t,e,n)=>{t==="animation"&&n.hashId&&e!=="none"&&GL(`You seem to be using hashed animation '${e}', in which case 'animationName' with Keyframe as value is recommended.`,n)},ZL="data-ant-cssinjs-cache-path",vue="_FILE_STYLE__";let nu,UL=!0;function mue(){var t;if(!nu&&(nu={},wi())){const e=document.createElement("div");e.className=ZL,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[a,o]=i.split(":");nu[a]=o});const r=document.querySelector(`style[${ZL}]`);r&&(UL=!1,(t=r.parentNode)===null||t===void 0||t.removeChild(r)),document.body.removeChild(e)}}function yue(t){return mue(),!!nu[t]}function bue(t){const e=nu[t];let n=null;if(e&&wi())if(UL)n=vue;else{const r=document.querySelector(`style[${Kl}="${nu[t]}"]`);r?n=r.innerHTML:delete nu[t]}return[n,e]}const XL=wi(),YL="_skip_check_",qL="_multi_value_";function KL(t){return yw(fue(t),hue).replace(/\{%%%\:[^;];}/g,";")}function _ue(t){return typeof t=="object"&&t&&(YL in t||qL in t)}function Oue(t,e,n){if(!e)return t;const r=`.${e}`,i=n==="low"?`:where(${r})`:r;return t.split(",").map(o=>{var s;const l=o.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 bw=new Set;process.env.NODE_ENV;const _w=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:a,layer:o,path:s,hashPriority:l,transformers:u=[],linters:c=[]}=e;let f="",d={};function h(m){const y=m.getName(a);if(!d[y]){const[b]=_w(m.style,e,{root:!1,parentSelectors:i});d[y]=`@keyframes ${m.getName(a)}${b}`}}function g(m){let y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return m.forEach(b=>{Array.isArray(b)?g(b,y):b&&y.push(b)}),y}if(g(Array.isArray(t)?t:[t]).forEach(m=>{const y=typeof m=="string"&&!n?{}:m;if(typeof y=="string")f+=`${y}
  2. `;else if(y._keyframe)h(y);else{const b=u.reduce((_,O)=>{var S;return((S=O==null?void 0:O.visit)===null||S===void 0?void 0:S.call(O,_))||_},y);Object.keys(b).forEach(_=>{var O;const S=b[_];if(typeof S=="object"&&S&&(_!=="animationName"||!S._keyframe)&&!_ue(S)){let x=!1,w=_.trim(),T=!1;(n||r)&&a?w.startsWith("@")?x=!0:w=Oue(_,a,l):n&&!a&&(w==="&"||w==="")&&(w="",T=!0);const[P,C]=_w(S,e,{root:T,injectHash:x,parentSelectors:[...i,w]});d=I(I({},d),C),f+=`${w}${P}`}else{let x=function(T,P){process.env.NODE_ENV!=="production"&&(typeof S!="object"||!(S!=null&&S[YL]))&&[pue,gue,...c].forEach(A=>A(T,P,{path:s,hashId:a,parentSelectors:i}));const C=T.replace(/[A-Z]/g,A=>`-${A.toLowerCase()}`);let $=P;!qle[T]&&typeof $=="number"&&$!==0&&($=`${$}px`),T==="animationName"&&(P!=null&&P._keyframe)&&(h(P),$=P.getName(a)),f+=`${C}:${$};`};const w=(O=S==null?void 0:S.value)!==null&&O!==void 0?O:S;typeof S=="object"&&(S!=null&&S[qL])&&Array.isArray(w)?w.forEach(T=>{x(_,T)}):x(_,w)}})}}),!n)f=`{${f}}`;else if(o&&Fle()){const m=o.split(",");f=`@layer ${m[m.length-1].trim()} {${f}}`,m.length>1&&(f=`@layer ${o}{%%%:%}${f}`)}return[f,d]};function Sue(t,e){return sw(`${t.join("%")}${e}`)}function Ow(t,e){const n=R0(),r=p.computed(()=>t.value.token._tokenKey),i=p.computed(()=>[r.value,...t.value.path]);let a=XL;return process.env.NODE_ENV!=="production"&&n.value.mock!==void 0&&(a=n.value.mock==="client"),wL("style",i,()=>{const{path:o,hashId:s,layer:l,nonce:u,clientOnly:c,order:f=0}=t.value,d=i.value.join("|");if(yue(d)){const[w,T]=bue(d);if(w)return[w,r.value,T,{},c,f]}const h=e(),{hashPriority:g,container:v,transformers:m,linters:y,cache:b}=n.value,[_,O]=_w(h,{hashId:s,hashPriority:g,layer:l,path:o.join("-"),transformers:m,linters:y}),S=KL(_),x=Sue(i.value,S);if(a){const w={mark:Kl,prepend:"queue",attachTo:v,priority:f},T=typeof u=="function"?u():u;T&&(w.csp={nonce:T});const P=ap(S,x,w);P[df]=b.instanceId,P.setAttribute(OL,r.value),process.env.NODE_ENV!=="production"&&P.setAttribute(Cle,i.value.join("|")),Object.keys(O).forEach(C=>{bw.has(C)||(bw.add(C),ap(KL(O[C]),`_effect-${C}`,{mark:Kl,prepend:"queue",attachTo:v}))})}return[S,r.value,x,O,c,f]},(o,s)=>{let[,,l]=o;(s||n.value.autoClear)&&XL&&N0(l,{mark:Kl})}),o=>o}class rt{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 xue="4.2.3",H0=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Fn(t,e){wue(t)&&(t="100%");var n=Cue(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 j0(t){return Math.min(1,Math.max(0,t))}function wue(t){return typeof t=="string"&&t.indexOf(".")!==-1&&parseFloat(t)===1}function Cue(t){return typeof t=="string"&&t.indexOf("%")!==-1}function JL(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function G0(t){return t<=1?"".concat(Number(t)*100,"%"):t}function ru(t){return t.length===1?"0"+t:String(t)}function Tue(t,e,n){return{r:Fn(t,255)*255,g:Fn(e,255)*255,b:Fn(n,255)*255}}function e4(t,e,n){t=Fn(t,255),e=Fn(e,255),n=Fn(n,255);var r=Math.max(t,e,n),i=Math.min(t,e,n),a=0,o=0,s=(r+i)/2;if(r===i)o=0,a=0;else{var l=r-i;switch(o=s>.5?l/(2-r-i):l/(r+i),r){case t:a=(e-n)/l+(e<n?6:0);break;case e:a=(n-t)/l+2;break;case n:a=(t-e)/l+4;break}a/=6}return{h:a,s:o,l:s}}function Sw(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 Pue(t,e,n){var r,i,a;if(t=Fn(t,360),e=Fn(e,100),n=Fn(n,100),e===0)i=n,a=n,r=n;else{var o=n<.5?n*(1+e):n+e-n*e,s=2*n-o;r=Sw(s,o,t+1/3),i=Sw(s,o,t),a=Sw(s,o,t-1/3)}return{r:r*255,g:i*255,b:a*255}}function xw(t,e,n){t=Fn(t,255),e=Fn(e,255),n=Fn(n,255);var r=Math.max(t,e,n),i=Math.min(t,e,n),a=0,o=r,s=r-i,l=r===0?0:s/r;if(r===i)a=0;else{switch(r){case t:a=(e-n)/s+(e<n?6:0);break;case e:a=(n-t)/s+2;break;case n:a=(t-e)/s+4;break}a/=6}return{h:a,s:l,v:o}}function $ue(t,e,n){t=Fn(t,360)*6,e=Fn(e,100),n=Fn(n,100);var r=Math.floor(t),i=t-r,a=n*(1-e),o=n*(1-i*e),s=n*(1-(1-i)*e),l=r%6,u=[n,o,a,a,s,n][l],c=[s,n,n,o,a,a][l],f=[a,a,s,n,n,o][l];return{r:u*255,g:c*255,b:f*255}}function ww(t,e,n,r){var i=[ru(Math.round(t).toString(16)),ru(Math.round(e).toString(16)),ru(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 Aue(t,e,n,r,i){var a=[ru(Math.round(t).toString(16)),ru(Math.round(e).toString(16)),ru(Math.round(n).toString(16)),ru(Eue(r))];return i&&a[0].startsWith(a[0].charAt(1))&&a[1].startsWith(a[1].charAt(1))&&a[2].startsWith(a[2].charAt(1))&&a[3].startsWith(a[3].charAt(1))?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join("")}function Eue(t){return Math.round(parseFloat(t)*255).toString(16)}function t4(t){return ni(t)/255}function ni(t){return parseInt(t,16)}function Mue(t){return{r:t>>16,g:(t&65280)>>8,b:t&255}}var Cw={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 vf(t){var e={r:0,g:0,b:0},n=1,r=null,i=null,a=null,o=!1,s=!1;return typeof t=="string"&&(t=Rue(t)),typeof t=="object"&&(Fo(t.r)&&Fo(t.g)&&Fo(t.b)?(e=Tue(t.r,t.g,t.b),o=!0,s=String(t.r).substr(-1)==="%"?"prgb":"rgb"):Fo(t.h)&&Fo(t.s)&&Fo(t.v)?(r=G0(t.s),i=G0(t.v),e=$ue(t.h,r,i),o=!0,s="hsv"):Fo(t.h)&&Fo(t.s)&&Fo(t.l)&&(r=G0(t.s),a=G0(t.l),e=Pue(t.h,r,a),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(t,"a")&&(n=t.a)),n=JL(n),{ok:o,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 Iue="[-\\+]?\\d+%?",Due="[-\\+]?\\d*\\.\\d+%?",Ds="(?:".concat(Due,")|(?:").concat(Iue,")"),Tw="[\\s|\\(]+(".concat(Ds,")[,|\\s]+(").concat(Ds,")[,|\\s]+(").concat(Ds,")\\s*\\)?"),Pw="[\\s|\\(]+(".concat(Ds,")[,|\\s]+(").concat(Ds,")[,|\\s]+(").concat(Ds,")[,|\\s]+(").concat(Ds,")\\s*\\)?"),ha={CSS_UNIT:new RegExp(Ds),rgb:new RegExp("rgb"+Tw),rgba:new RegExp("rgba"+Pw),hsl:new RegExp("hsl"+Tw),hsla:new RegExp("hsla"+Pw),hsv:new RegExp("hsv"+Tw),hsva:new RegExp("hsva"+Pw),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 Rue(t){if(t=t.trim().toLowerCase(),t.length===0)return!1;var e=!1;if(Cw[t])t=Cw[t],e=!0;else if(t==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var n=ha.rgb.exec(t);return n?{r:n[1],g:n[2],b:n[3]}:(n=ha.rgba.exec(t),n?{r:n[1],g:n[2],b:n[3],a:n[4]}:(n=ha.hsl.exec(t),n?{h:n[1],s:n[2],l:n[3]}:(n=ha.hsla.exec(t),n?{h:n[1],s:n[2],l:n[3],a:n[4]}:(n=ha.hsv.exec(t),n?{h:n[1],s:n[2],v:n[3]}:(n=ha.hsva.exec(t),n?{h:n[1],s:n[2],v:n[3],a:n[4]}:(n=ha.hex8.exec(t),n?{r:ni(n[1]),g:ni(n[2]),b:ni(n[3]),a:t4(n[4]),format:e?"name":"hex8"}:(n=ha.hex6.exec(t),n?{r:ni(n[1]),g:ni(n[2]),b:ni(n[3]),format:e?"name":"hex"}:(n=ha.hex4.exec(t),n?{r:ni(n[1]+n[1]),g:ni(n[2]+n[2]),b:ni(n[3]+n[3]),a:t4(n[4]+n[4]),format:e?"name":"hex8"}:(n=ha.hex3.exec(t),n?{r:ni(n[1]+n[1]),g:ni(n[2]+n[2]),b:ni(n[3]+n[3]),format:e?"name":"hex"}:!1)))))))))}function Fo(t){return!!ha.CSS_UNIT.exec(String(t))}var It=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=Mue(e)),this.originalInput=e;var i=vf(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,a=e.r/255,o=e.g/255,s=e.b/255;return a<=.03928?n=a/12.92:n=Math.pow((a+.055)/1.055,2.4),o<=.03928?r=o/12.92:r=Math.pow((o+.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=JL(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=xw(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=xw(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=e4(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=e4(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),ww(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),Aue(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(Fn(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(Fn(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="#"+ww(this.r,this.g,this.b,!1),n=0,r=Object.entries(Cw);n<r.length;n++){var i=r[n],a=i[0],o=i[1];if(e===o)return a}return!1},t.prototype.toString=function(e){var n=!!e;e=e??this.format;var r=!1,i=this.a<1&&this.a>=0,a=!n&&i&&(e.startsWith("hex")||e==="name");return a?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=j0(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=j0(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=j0(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=j0(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(),a=n/100,o={r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a};return new t(o)},t.prototype.analogous=function(e,n){e===void 0&&(e=6),n===void 0&&(n=30);var r=this.toHsl(),i=360/n,a=[this];for(r.h=(r.h-(i*e>>1)+720)%360;--e;)r.h=(r.h+i)%360,a.push(new t(r));return a},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,a=n.v,o=[],s=1/e;e--;)o.push(new t({h:r,s:i,v:a})),a=(a+s)%1;return o},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],a=360/e,o=1;o<e;o++)i.push(new t({h:(r+o*a)%360,s:n.s,l:n.l}));return i},t.prototype.equals=function(e){return this.toRgbString()===new t(e).toRgbString()},t}(),Z0=2,n4=.16,kue=.05,Nue=.05,Lue=.15,r4=5,i4=4,Vue=[{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 a4(t){var e=t.r,n=t.g,r=t.b,i=xw(e,n,r);return{h:i.h*360,s:i.s,v:i.v}}function U0(t){var e=t.r,n=t.g,r=t.b;return"#".concat(ww(e,n,r,!1))}function Bue(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 o4(t,e,n){var r;return Math.round(t.h)>=60&&Math.round(t.h)<=240?r=n?Math.round(t.h)-Z0*e:Math.round(t.h)+Z0*e:r=n?Math.round(t.h)+Z0*e:Math.round(t.h)-Z0*e,r<0?r+=360:r>=360&&(r-=360),r}function s4(t,e,n){if(t.h===0&&t.s===0)return t.s;var r;return n?r=t.s-n4*e:e===i4?r=t.s+n4:r=t.s+kue*e,r>1&&(r=1),n&&e===r4&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function l4(t,e,n){var r;return n?r=t.v+Nue*e:r=t.v-Lue*e,r>1&&(r=1),Number(r.toFixed(2))}function iu(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=vf(t),i=r4;i>0;i-=1){var a=a4(r),o=U0(vf({h:o4(a,i,!0),s:s4(a,i,!0),v:l4(a,i,!0)}));n.push(o)}n.push(U0(r));for(var s=1;s<=i4;s+=1){var l=a4(r),u=U0(vf({h:o4(l,s),s:s4(l,s),v:l4(l,s)}));n.push(u)}return e.theme==="dark"?Vue.map(function(c){var f=c.index,d=c.opacity,h=U0(Bue(vf(e.backgroundColor||"#141414"),vf(n[f]),d*100));return h}):n}var $w={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"},X0={},Aw={};Object.keys($w).forEach(function(t){X0[t]=iu($w[t]),X0[t].primary=X0[t][5],Aw[t]=iu($w[t],{theme:"dark",backgroundColor:"#141414"}),Aw[t].primary=Aw[t][5]});var zue=X0.blue;const Fue=t=>{const{controlHeight:e}=t;return{controlHeightSM:e*.75,controlHeightXS:e*.5,controlHeightLG:e*1.25}};function Wue(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 u4={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"},Y0=I(I({},u4),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
  3. 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
  4. '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 Que(t,e){let{generateColorPalettes:n,generateNeutralColorPalettes:r}=e;const{colorSuccess:i,colorWarning:a,colorError:o,colorInfo:s,colorPrimary:l,colorBgBase:u,colorTextBase:c}=t,f=n(l),d=n(i),h=n(a),g=n(o),v=n(s),m=r(u,c);return I(I({},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:g[1],colorErrorBgHover:g[2],colorErrorBorder:g[3],colorErrorBorderHover:g[4],colorErrorHover:g[5],colorError:g[6],colorErrorActive:g[7],colorErrorTextHover:g[8],colorErrorText:g[9],colorErrorTextActive:g[10],colorWarningBg:h[1],colorWarningBgHover:h[2],colorWarningBorder:h[3],colorWarningBorderHover:h[4],colorWarningHover:h[4],colorWarning:h[6],colorWarningActive:h[7],colorWarningTextHover:h[8],colorWarningText:h[9],colorWarningTextActive:h[10],colorInfoBg:v[1],colorInfoBgHover:v[2],colorInfoBorder:v[3],colorInfoBorderHover:v[4],colorInfoHover:v[4],colorInfo:v[6],colorInfoActive:v[7],colorInfoTextHover:v[8],colorInfoText:v[9],colorInfoTextActive:v[10],colorBgMask:new It("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const Hue=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 jue(t){const{motionUnit:e,motionBase:n,borderRadius:r,lineWidth:i}=t;return I({motionDurationFast:`${(n+e).toFixed(1)}s`,motionDurationMid:`${(n+e*2).toFixed(1)}s`,motionDurationSlow:`${(n+e*3).toFixed(1)}s`,lineWidthBold:i+1},Hue(r))}const Wo=(t,e)=>new It(t).setAlpha(e).toRgbString(),up=(t,e)=>new It(t).darken(e).toHexString(),Gue=t=>{const e=iu(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]}},Zue=(t,e)=>{const n=t||"#fff",r=e||"#000";return{colorBgBase:n,colorTextBase:r,colorText:Wo(r,.88),colorTextSecondary:Wo(r,.65),colorTextTertiary:Wo(r,.45),colorTextQuaternary:Wo(r,.25),colorFill:Wo(r,.15),colorFillSecondary:Wo(r,.06),colorFillTertiary:Wo(r,.04),colorFillQuaternary:Wo(r,.02),colorBgLayout:up(n,4),colorBgContainer:up(n,0),colorBgElevated:up(n,0),colorBgSpotlight:Wo(r,.85),colorBorder:up(n,15),colorBorderSecondary:up(n,6)}};function Uue(t){const e=new Array(10).fill(null).map((n,r)=>{const i=r-1,a=t*Math.pow(2.71828,i/5),o=r>1?Math.floor(a):Math.ceil(a);return Math.floor(o/2)*2});return e[1]=t,e.map(n=>{const r=n+8;return{size:n,lineHeight:r/n}})}const Xue=t=>{const e=Uue(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 Yue(t){const e=Object.keys(u4).map(n=>{const r=iu(t[n]);return new Array(10).fill(1).reduce((i,a,o)=>(i[`${n}-${o+1}`]=r[o],i),{})}).reduce((n,r)=>(n=I(I({},n),r),n),{});return I(I(I(I(I(I(I({},t),e),Que(t,{generateColorPalettes:Gue,generateNeutralColorPalettes:Zue})),Xue(t.fontSize)),Wue(t)),Fue(t)),jue(t))}function Ew(t){return t>=0&&t<=255}function q0(t,e){const{r:n,g:r,b:i,a}=new It(t).toRgb();if(a<1)return t;const{r:o,g:s,b:l}=new It(e).toRgb();for(let u=.01;u<=1;u+=.01){const c=Math.round((n-o*(1-u))/u),f=Math.round((r-s*(1-u))/u),d=Math.round((i-l*(1-u))/u);if(Ew(c)&&Ew(f)&&Ew(d))return new It({r:c,g:f,b:d,a:Math.round(u*100)/100}).toRgbString()}return new It({r:n,g:r,b:i,a:1}).toRgbString()}var que=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 Kue(t){const{override:e}=t,n=que(t,["override"]),r=I({},e);Object.keys(Y0).forEach(h=>{delete r[h]});const i=I(I({},n),r),a=480,o=576,s=768,l=992,u=1200,c=1600,f=2e3;return I(I(I({},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:q0(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:q0(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:q0(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:q0(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:`
  5. 0 1px 2px 0 rgba(0, 0, 0, 0.03),
  6. 0 1px 6px -1px rgba(0, 0, 0, 0.02),
  7. 0 2px 4px 0 rgba(0, 0, 0, 0.02)
  8. `,boxShadowSecondary:`
  9. 0 6px 16px 0 rgba(0, 0, 0, 0.08),
  10. 0 3px 6px -4px rgba(0, 0, 0, 0.12),
  11. 0 9px 28px 8px rgba(0, 0, 0, 0.05)
  12. `,boxShadowTertiary:`
  13. 0 1px 2px 0 rgba(0, 0, 0, 0.03),
  14. 0 1px 6px -1px rgba(0, 0, 0, 0.02),
  15. 0 2px 4px 0 rgba(0, 0, 0, 0.02)
  16. `,screenXS:a,screenXSMin:a,screenXSMax:o-1,screenSM:o,screenSMMin:o,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:`
  17. 0 1px 2px -2px ${new It("rgba(0, 0, 0, 0.16)").toRgbString()},
  18. 0 3px 6px 0 ${new It("rgba(0, 0, 0, 0.12)").toRgbString()},
  19. 0 5px 12px 4px ${new It("rgba(0, 0, 0, 0.09)").toRgbString()}
  20. `,boxShadowDrawerRight:`
  21. -6px 0 16px 0 rgba(0, 0, 0, 0.08),
  22. -3px 0 6px -4px rgba(0, 0, 0, 0.12),
  23. -9px 0 28px 8px rgba(0, 0, 0, 0.05)
  24. `,boxShadowDrawerLeft:`
  25. 6px 0 16px 0 rgba(0, 0, 0, 0.08),
  26. 3px 0 6px -4px rgba(0, 0, 0, 0.12),
  27. 9px 0 28px 8px rgba(0, 0, 0, 0.05)
  28. `,boxShadowDrawerUp:`
  29. 0 6px 16px 0 rgba(0, 0, 0, 0.08),
  30. 0 3px 6px -4px rgba(0, 0, 0, 0.12),
  31. 0 9px 28px 8px rgba(0, 0, 0, 0.05)
  32. `,boxShadowDrawerDown:`
  33. 0 -6px 16px 0 rgba(0, 0, 0, 0.08),
  34. 0 -3px 6px -4px rgba(0, 0, 0, 0.12),
  35. 0 -9px 28px 8px rgba(0, 0, 0, 0.05)
  36. `,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 Jue=(t,e,n,r,i)=>{const a=t/2,o=0,s=a,l=n*1/Math.sqrt(2),u=a-n*(1-1/Math.sqrt(2)),c=a-e*(1/Math.sqrt(2)),f=n*(Math.sqrt(2)-1)+e*(1/Math.sqrt(2)),d=2*a-c,h=f,g=2*a-l,v=u,m=2*a-o,y=s,b=a*Math.sqrt(2)+n*(Math.sqrt(2)-2),_=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(${_}px 100%, 50% ${_}px, ${2*a-_}px 100%, ${_}px 100%)`,`path('M ${o} ${s} A ${n} ${n} 0 0 0 ${l} ${u} L ${c} ${f} A ${e} ${e} 0 0 1 ${d} ${h} L ${g} ${v} A ${n} ${n} 0 0 0 ${m} ${y} Z')`]},content:'""'}}};function ece(t,e){return H0.reduce((n,r)=>{const i=t[`${r}-1`],a=t[`${r}-3`],o=t[`${r}-6`],s=t[`${r}-7`];return I(I({},n),e(r,{lightColor:i,lightBorderColor:a,darkColor:o,textColor:s}))},{})}const mf={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},Dt=t=>({boxSizing:"border-box",margin:0,padding:0,color:t.colorText,fontSize:t.fontSize,lineHeight:t.lineHeight,listStyle:"none",fontFamily:t.fontFamily}),yf=()=>({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"}}),K0=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),tce=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"}}}),nce=(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"}}}}},cp=t=>({outline:`${t.lineWidthBold}px solid ${t.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),J0=t=>({"&:focus-visible":I({},cp(t))});function qt(t,e,n){return r=>{const i=p.computed(()=>r==null?void 0:r.value),[a,o,s]=bf(),{getPrefixCls:l,iconPrefixCls:u}=I0(),c=p.computed(()=>l()),f=p.computed(()=>({theme:a.value,token:o.value,hashId:s.value,path:["Shared",c.value]}));Ow(f,()=>[{"&":tce(o.value)}]);const d=p.computed(()=>({theme:a.value,token:o.value,hashId:s.value,path:[t,i.value,u.value]}));return[Ow(d,()=>{const{token:h,flush:g}=ice(o.value),v=typeof n=="function"?n(h):n,m=I(I({},v),o.value[t]),y=`.${i.value}`,b=pt(h,{componentCls:y,prefixCls:i.value,iconCls:`.${u.value}`,antCls:`.${c.value}`},m),_=e(b,{hashId:s.value,prefixCls:i.value,rootPrefixCls:c.value,iconPrefixCls:u.value,overrideComponentToken:o.value[t]});return g(t,m),[nce(o.value,i.value),_]}),s]}}const c4=process.env.NODE_ENV!=="production"||typeof CSSINJS_STATISTIC<"u";let Mw=!0;function pt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!c4)return I({},...e);Mw=!1;const r={};return e.forEach(i=>{Object.keys(i).forEach(o=>{Object.defineProperty(r,o,{configurable:!0,enumerable:!0,get:()=>i[o]})})}),Mw=!0,r}function rce(){}function ice(t){let e,n=t,r=rce;return c4&&(e=new Set,n=new Proxy(t,{get(i,a){return Mw&&e.add(a),i[a]}}),r=(i,a)=>{Array.from(e)}),{token:n,keys:e,flush:r}}const ace=RL(Yue),f4={token:Y0,hashed:!0},d4=Symbol("DesignTokenContext"),Iw=p.shallowRef(),oce=t=>{p.provide(d4,t),p.watch(t,()=>{Iw.value=p.unref(t),p.triggerRef(Iw)},{immediate:!0,deep:!0})},sce=p.defineComponent({props:{value:ut()},setup(t,e){let{slots:n}=e;return oce(p.computed(()=>t.value)),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});function bf(){const t=p.inject(d4,p.computed(()=>Iw.value||f4)),e=p.computed(()=>`${xue}-${t.value.hashed||""}`),n=p.computed(()=>t.value.theme||ace),r=Yle(n,p.computed(()=>[Y0,t.value.token]),p.computed(()=>({salt:e.value,override:I({override:t.value.token},t.value.components),formatToken:Kue})));return[n,p.computed(()=>r.value[0]),p.computed(()=>t.value.hashed?r.value[1]:"")]}const h4=p.defineComponent({compatConfig:{MODE:3},setup(){const[,t]=bf(),e=p.computed(()=>new It(t.value.colorBgBase).toHsl().l<.5?{opacity:.65}:{});return()=>p.createVNode("svg",{style:e.value,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},[p.createVNode("g",{fill:"none","fill-rule":"evenodd"},[p.createVNode("g",{transform:"translate(24 31.67)"},[p.createVNode("ellipse",{"fill-opacity":".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"},null),p.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),p.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),p.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),p.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)]),p.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),p.createVNode("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},[p.createVNode("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"},null),p.createVNode("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"},null)])])])}});h4.PRESENTED_IMAGE_DEFAULT=!0;const p4=p.defineComponent({compatConfig:{MODE:3},setup(){const[,t]=bf(),e=p.computed(()=>{const{colorFill:n,colorFillTertiary:r,colorFillQuaternary:i,colorBgContainer:a}=t.value;return{borderColor:new It(n).onBackground(a).toHexString(),shadowColor:new It(r).onBackground(a).toHexString(),contentColor:new It(i).onBackground(a).toHexString()}});return()=>p.createVNode("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},[p.createVNode("g",{transform:"translate(0 1)",fill:"none","fill-rule":"evenodd"},[p.createVNode("ellipse",{fill:e.value.shadowColor,cx:"32",cy:"33",rx:"32",ry:"7"},null),p.createVNode("g",{"fill-rule":"nonzero",stroke:e.value.borderColor},[p.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),p.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)])])])}});p4.PRESENTED_IMAGE_SIMPLE=!0;const lce=t=>{const{componentCls:e,margin:n,marginXS:r,marginXL:i,fontSize:a,lineHeight:o}=t;return{[e]:{marginInline:r,fontSize:a,lineHeight:o,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}}}}},uce=qt("Empty",t=>{const{componentCls:e,controlHeightLG:n}=t,r=pt(t,{emptyImgCls:`${e}-img`,emptyImgHeight:n*2.5,emptyImgHeightMD:n,emptyImgHeightSM:n*.875});return[lce(r)]});var cce=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 g4=p.createVNode(h4,null,null),v4=p.createVNode(p4,null,null),fce=()=>({prefixCls:String,imageStyle:ut(),image:xi(),description:xi()}),Dw=p.defineComponent({name:"AEmpty",compatConfig:{MODE:3},inheritAttrs:!1,props:fce(),setup(t,e){let{slots:n={},attrs:r}=e;const{direction:i,prefixCls:a}=ct("empty",t),[o,s]=uce(a);return()=>{var l,u;const c=a.value,f=I(I({},t),r),{image:d=((l=n.image)===null||l===void 0?void 0:l.call(n))||g4,description:h=((u=n.description)===null||u===void 0?void 0:u.call(n))||void 0,imageStyle:g,class:v=""}=f,m=cce(f,["image","description","imageStyle","class"]);return o(p.createVNode(bL,{componentName:"Empty",children:y=>{const b=typeof h<"u"?h:y.description,_=typeof b=="string"?b:"empty";let O=null;return typeof d=="string"?O=p.createVNode("img",{alt:_,src:d},null):O=d,p.createVNode("div",H({class:fe(c,v,s.value,{[`${c}-normal`]:d===v4,[`${c}-rtl`]:i.value==="rtl"})},m),[p.createVNode("div",{class:`${c}-image`,style:g},[O]),b&&p.createVNode("p",{class:`${c}-description`},[b]),n.default&&p.createVNode("div",{class:`${c}-footer`},[Qa(n.default())])])}},null))}}});Dw.PRESENTED_IMAGE_DEFAULT=g4,Dw.PRESENTED_IMAGE_SIMPLE=v4;const fp=ff(Dw),Rw=t=>{const{prefixCls:e}=ct("empty",t);return(r=>{switch(r){case"Table":case"List":return p.createVNode(fp,{image:fp.PRESENTED_IMAGE_SIMPLE},null);case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return p.createVNode(fp,{image:fp.PRESENTED_IMAGE_SIMPLE,class:`${e.value}-small`},null);default:return p.createVNode(fp,null,null)}})(t.componentName)};function dce(t){return p.createVNode(Rw,{componentName:t},null)}const m4=Symbol("SizeContextKey"),y4=()=>p.inject(m4,p.ref(void 0)),b4=t=>{const e=y4();return p.provide(m4,p.computed(()=>t.value||e.value)),t},ct=(t,e)=>{const n=y4(),r=Ha(),i=p.inject(ow,I(I({},pL),{renderEmpty:w=>p.h(Rw,{componentName:w})})),a=p.computed(()=>i.getPrefixCls(t,e.prefixCls)),o=p.computed(()=>{var w,T;return(w=e.direction)!==null&&w!==void 0?w:(T=i.direction)===null||T===void 0?void 0:T.value}),s=p.computed(()=>{var w;return(w=e.iconPrefixCls)!==null&&w!==void 0?w:i.iconPrefixCls.value}),l=p.computed(()=>i.getPrefixCls()),u=p.computed(()=>{var w;return(w=i.autoInsertSpaceInButton)===null||w===void 0?void 0:w.value}),c=i.renderEmpty,f=i.space,d=i.pageHeader,h=i.form,g=p.computed(()=>{var w,T;return(w=e.getTargetContainer)!==null&&w!==void 0?w:(T=i.getTargetContainer)===null||T===void 0?void 0:T.value}),v=p.computed(()=>{var w,T,P;return(T=(w=e.getContainer)!==null&&w!==void 0?w:e.getPopupContainer)!==null&&T!==void 0?T:(P=i.getPopupContainer)===null||P===void 0?void 0:P.value}),m=p.computed(()=>{var w,T;return(w=e.dropdownMatchSelectWidth)!==null&&w!==void 0?w:(T=i.dropdownMatchSelectWidth)===null||T===void 0?void 0:T.value}),y=p.computed(()=>{var w;return(e.virtual===void 0?((w=i.virtual)===null||w===void 0?void 0:w.value)!==!1:e.virtual!==!1)&&m.value!==!1}),b=p.computed(()=>e.size||n.value),_=p.computed(()=>{var w,T,P;return(w=e.autocomplete)!==null&&w!==void 0?w:(P=(T=i.input)===null||T===void 0?void 0:T.value)===null||P===void 0?void 0:P.autocomplete}),O=p.computed(()=>{var w;return(w=e.disabled)!==null&&w!==void 0?w:r.value}),S=p.computed(()=>{var w;return(w=e.csp)!==null&&w!==void 0?w:i.csp}),x=p.computed(()=>{var w,T;return(w=e.wave)!==null&&w!==void 0?w:(T=i.wave)===null||T===void 0?void 0:T.value});return{configProvider:i,prefixCls:a,direction:o,size:b,getTargetContainer:g,getPopupContainer:v,space:f,pageHeader:d,form:h,autoInsertSpaceInButton:u,renderEmpty:c,virtual:y,dropdownMatchSelectWidth:m,rootPrefixCls:l,getPrefixCls:i.getPrefixCls,autocomplete:_,csp:S,iconPrefixCls:s,disabled:O,select:i.select,wave:x}};function Rn(t,e){const n=I({},t);for(let r=0;r<e.length;r+=1){const i=e[r];delete n[i]}return n}function _4(t){return typeof t=="object"&&t!=null&&t.nodeType===1}function O4(t,e){return(!e||t!=="hidden")&&t!=="visible"&&t!=="clip"}function kw(t,e){if(t.clientHeight<t.scrollHeight||t.clientWidth<t.scrollWidth){var n=getComputedStyle(t,null);return O4(n.overflowY,e)||O4(n.overflowX,e)||function(r){var i=function(a){if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}}(r);return!!i&&(i.clientHeight<r.scrollHeight||i.clientWidth<r.scrollWidth)}(t)}return!1}function ey(t,e,n,r,i,a,o,s){return a<t&&o>e||a>t&&o<e?0:a<=t&&s<=n||o>=e&&s>=n?a-t-r:o>e&&s<n||a<t&&s>n?o-e+i:0}var S4=function(t,e){var n=window,r=e.scrollMode,i=e.block,a=e.inline,o=e.boundary,s=e.skipOverflowHiddenElements,l=typeof o=="function"?o:function(oe){return oe!==o};if(!_4(t))throw new TypeError("Invalid target");for(var u,c,f=document.scrollingElement||document.documentElement,d=[],h=t;_4(h)&&l(h);){if((h=(c=(u=h).parentElement)==null?u.getRootNode().host||null:c)===f){d.push(h);break}h!=null&&h===document.body&&kw(h)&&!kw(document.documentElement)||h!=null&&kw(h,s)&&d.push(h)}for(var g=n.visualViewport?n.visualViewport.width:innerWidth,v=n.visualViewport?n.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,b=t.getBoundingClientRect(),_=b.height,O=b.width,S=b.top,x=b.right,w=b.bottom,T=b.left,P=i==="start"||i==="nearest"?S:i==="end"?w:S+_/2,C=a==="center"?T+O/2:a==="end"?x:T,$=[],A=0;A<d.length;A++){var E=d[A],D=E.getBoundingClientRect(),M=D.height,R=D.width,N=D.top,V=D.right,L=D.bottom,z=D.left;if(r==="if-needed"&&S>=0&&T>=0&&w<=v&&x<=g&&S>=N&&w<=L&&T>=z&&x<=V)return $;var B=getComputedStyle(E),F=parseInt(B.borderLeftWidth,10),j=parseInt(B.borderTopWidth,10),K=parseInt(B.borderRightWidth,10),q=parseInt(B.borderBottomWidth,10),te=0,X=0,ee="offsetWidth"in E?E.offsetWidth-E.clientWidth-F-K:0,G="offsetHeight"in E?E.offsetHeight-E.clientHeight-j-q:0,W="offsetWidth"in E?E.offsetWidth===0?0:R/E.offsetWidth:0,Q="offsetHeight"in E?E.offsetHeight===0?0:M/E.offsetHeight:0;if(f===E)te=i==="start"?P:i==="end"?P-v:i==="nearest"?ey(y,y+v,v,j,q,y+P,y+P+_,_):P-v/2,X=a==="start"?C:a==="center"?C-g/2:a==="end"?C-g:ey(m,m+g,g,F,K,m+C,m+C+O,O),te=Math.max(0,te+y),X=Math.max(0,X+m);else{te=i==="start"?P-N-j:i==="end"?P-L+q+G:i==="nearest"?ey(N,L,M,j,q+G,P,P+_,_):P-(N+M/2)+G/2,X=a==="start"?C-z-F:a==="center"?C-(z+R/2)+ee/2:a==="end"?C-V+K+ee:ey(z,V,R,F,K+ee,C,C+O,O);var J=E.scrollLeft,ae=E.scrollTop;P+=ae-(te=Math.max(0,Math.min(ae+te/Q,E.scrollHeight-M/Q+G))),C+=J-(X=Math.max(0,Math.min(J+X/W,E.scrollWidth-R/W+ee)))}$.push({el:E,top:te,left:X})}return $};function x4(t){return t===Object(t)&&Object.keys(t).length!==0}function hce(t,e){e===void 0&&(e="auto");var n="scrollBehavior"in document.body.style;t.forEach(function(r){var i=r.el,a=r.top,o=r.left;i.scroll&&n?i.scroll({top:a,left:o,behavior:e}):(i.scrollTop=a,i.scrollLeft=o)})}function pce(t){return t===!1?{block:"end",inline:"nearest"}:x4(t)?t:{block:"start",inline:"nearest"}}function gce(t,e){var n=t.isConnected||t.ownerDocument.documentElement.contains(t);if(x4(e)&&typeof e.behavior=="function")return e.behavior(n?S4(t,e):[]);if(n){var r=pce(e);return hce(S4(t,r),r.behavior)}}function vce(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 w4(t,e,n){return n&&vce(t,n),t}function ty(){return(ty=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 C4(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function T4(t,e){if(t==null)return{};var n,r,i={},a=Object.keys(t);for(r=0;r<a.length;r++)e.indexOf(n=a[r])>=0||(i[n]=t[n]);return i}function P4(t){return((e=t)!=null&&typeof e=="object"&&Array.isArray(e)===!1)==1&&Object.prototype.toString.call(t)==="[object Object]";var e}var $4=Object.prototype,A4=$4.toString,mce=$4.hasOwnProperty,E4=/^\s*function (\w+)/;function M4(t){var e,n=(e=t==null?void 0:t.type)!==null&&e!==void 0?e:t;if(n){var r=n.toString().match(E4);return r?r[1]:""}return""}var au=function(t){var e,n;return P4(t)!==!1&&typeof(e=t.constructor)=="function"&&P4(n=e.prototype)!==!1&&n.hasOwnProperty("isPrototypeOf")!==!1},I4=function(t){return t},nr=I4;if(process.env.NODE_ENV!=="production"){var yce=typeof console<"u";nr=yce?function(t){console.warn("[VueTypes warn]: "+t)}:I4}var dp=function(t,e){return mce.call(t,e)},bce=Number.isInteger||function(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t},_f=Array.isArray||function(t){return A4.call(t)==="[object Array]"},Of=function(t){return A4.call(t)==="[object Function]"},ny=function(t){return au(t)&&dp(t,"_vueTypes_name")},D4=function(t){return au(t)&&(dp(t,"type")||["_vueTypes_name","validator","default","required"].some(function(e){return dp(t,e)}))};function Nw(t,e){return Object.defineProperty(t.bind(e),"__original",{value:t})}function ou(t,e,n){var r;n===void 0&&(n=!1);var i=!0,a="";r=au(t)?t:{type:t};var o=ny(r)?r._vueTypes_name+" - ":"";if(D4(r)&&r.type!==null){if(r.type===void 0||r.type===!0||!r.required&&e===void 0)return i;_f(r.type)?(i=r.type.some(function(f){return ou(f,e,!0)===!0}),a=r.type.map(function(f){return M4(f)}).join(" or ")):i=(a=M4(r))==="Array"?_f(e):a==="Object"?au(e):a==="String"||a==="Number"||a==="Boolean"||a==="Function"?function(f){if(f==null)return"";var d=f.constructor.toString().match(E4);return d?d[1]:""}(e)===a:e instanceof r.type}if(!i){var s=o+'value "'+e+'" should be of type "'+a+'"';return n===!1?(nr(s),!1):s}if(dp(r,"validator")&&Of(r.validator)){var l=nr,u=[];if(nr=function(f){u.push(f)},i=r.validator(e),nr=l,!i){var c=(u.length>1?"* ":"")+u.join(`
  37. * `);return u.length=0,n===!1?(nr(c),i):c}}return i}function ri(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?Of(i)||ou(this,i,!0)===!0?(this.default=_f(i)?function(){return[].concat(i)}:au(i)?function(){return Object.assign({},i)}:i,this):(nr(this._vueTypes_name+' - invalid default value: "'+i+'"'),this):this}}}),r=n.validator;return Of(r)&&(n.validator=Nw(r,n)),n}function ja(t,e){var n=ri(t,e);return Object.defineProperty(n,"validate",{value:function(r){return Of(this.validator)&&nr(this._vueTypes_name+` - calling .validate() will overwrite the current custom validator function. Validator info:
  38. `+JSON.stringify(this)),this.validator=Nw(r,this),this}})}function R4(t,e,n){var r,i,a=(r=e,i={},Object.getOwnPropertyNames(r).forEach(function(f){i[f]=Object.getOwnPropertyDescriptor(r,f)}),Object.defineProperties({},i));if(a._vueTypes_name=t,!au(n))return a;var o,s,l=n.validator,u=T4(n,["validator"]);if(Of(l)){var c=a.validator;c&&(c=(s=(o=c).__original)!==null&&s!==void 0?s:o),a.validator=Nw(c?function(f){return c.call(this,f)&&l.call(this,f)}:l,a)}return Object.assign(a,u)}function ry(t){return t.replace(/^(?!\s*$)/gm," ")}var _ce=function(){return ja("any",{})},Oce=function(){return ja("function",{type:Function})},Sce=function(){return ja("boolean",{type:Boolean})},xce=function(){return ja("string",{type:String})},wce=function(){return ja("number",{type:Number})},Cce=function(){return ja("array",{type:Array})},Tce=function(){return ja("object",{type:Object})},Pce=function(){return ri("integer",{type:Number,validator:function(t){return bce(t)}})},$ce=function(){return ri("symbol",{validator:function(t){return typeof t=="symbol"}})};function Ace(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 ri(t.name||"<<anonymous function>>",{validator:function(n){var r=t(n);return r||nr(this._vueTypes_name+" - "+e),r}})}function Ece(t){if(!_f(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 a=i.constructor;r.indexOf(a)===-1&&r.push(a)}return r},[]);return ri("oneOf",{type:n.length>0?n:void 0,validator:function(r){var i=t.indexOf(r)!==-1;return i||nr(e),i}})}function Mce(t){if(!_f(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(D4(i)){if(ny(i)&&i._vueTypes_name==="oneOf"){n=n.concat(i.type);continue}if(Of(i.validator)&&(e=!0),i.type!==!0&&i.type){n=n.concat(i.type);continue}}n.push(i)}return n=n.filter(function(a,o){return n.indexOf(a)===o}),ri("oneOfType",e?{type:n,validator:function(a){var o=[],s=t.some(function(l){var u=ou(ny(l)&&l._vueTypes_name==="oneOf"?l.type||null:l,a,!0);return typeof u=="string"&&o.push(u),u===!0});return s||nr("oneOfType - provided value does not match any of the "+o.length+` passed-in validators:
  39. `+ry(o.join(`
  40. `))),s}}:{type:n})}function Ice(t){return ri("arrayOf",{type:Array,validator:function(e){var n,r=e.every(function(i){return(n=ou(t,i,!0))===!0});return r||nr(`arrayOf - value validation error:
  41. `+ry(n)),r}})}function Dce(t){return ri("instanceOf",{type:t})}function Rce(t){return ri("objectOf",{type:Object,validator:function(e){var n,r=Object.keys(e).every(function(i){return(n=ou(t,e[i],!0))===!0});return r||nr(`objectOf - value validation error:
  42. `+ry(n)),r}})}function kce(t){var e=Object.keys(t),n=e.filter(function(i){var a;return!!(!((a=t[i])===null||a===void 0)&&a.required)}),r=ri("shape",{type:Object,validator:function(i){var a=this;if(!au(i))return!1;var o=Object.keys(i);if(n.length>0&&n.some(function(l){return o.indexOf(l)===-1})){var s=n.filter(function(l){return o.indexOf(l)===-1});return nr(s.length===1?'shape - required property "'+s[0]+'" is not defined.':'shape - required properties "'+s.join('", "')+'" are not defined.'),!1}return o.every(function(l){if(e.indexOf(l)===-1)return a._vueTypes_isLoose===!0||(nr('shape - shape definition does not include a "'+l+'" property. Allowed keys: "'+e.join('", "')+'".'),!1);var u=ou(t[l],i[l],!0);return typeof u=="string"&&nr('shape - "'+l+`" property validation error:
  43. `+ry(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 Ga=function(){function t(){}return t.extend=function(e){var n=this;if(_f(e))return e.forEach(function(f){return n.extend(f)}),this;var r=e.name,i=e.validate,a=i!==void 0&&i,o=e.getter,s=o!==void 0&&o,l=T4(e,["name","validate","getter"]);if(dp(this,r))throw new TypeError('[VueTypes error]: Type "'+r+'" already defined');var u,c=l.type;return ny(c)?(delete l.type,Object.defineProperty(this,r,s?{get:function(){return R4(r,c,l)}}:{value:function(){var f,d=R4(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 a?ja(r,f):ri(r,f)},enumerable:!0}:{value:function(){var f,d,h=Object.assign({},l);return f=a?ja(r,h):ri(r,h),h.validator&&(f.validator=(d=h.validator).bind.apply(d,[f].concat([].slice.call(arguments)))),f},enumerable:!0},Object.defineProperty(this,r,u))},w4(t,null,[{key:"any",get:function(){return _ce()}},{key:"func",get:function(){return Oce().def(this.defaults.func)}},{key:"bool",get:function(){return Sce().def(this.defaults.bool)}},{key:"string",get:function(){return xce().def(this.defaults.string)}},{key:"number",get:function(){return wce().def(this.defaults.number)}},{key:"array",get:function(){return Cce().def(this.defaults.array)}},{key:"object",get:function(){return Tce().def(this.defaults.object)}},{key:"integer",get:function(){return Pce().def(this.defaults.integer)}},{key:"symbol",get:function(){return $ce()}}]),t}();function k4(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 C4(r,n),w4(r,null,[{key:"sensibleDefaults",get:function(){return ty({},this.defaults)},set:function(i){this.defaults=i!==!1?ty({},i!==!0?i:t):{}}}]),r}(Ga)).defaults=ty({},t),e}Ga.defaults={},Ga.custom=Ace,Ga.oneOf=Ece,Ga.instanceOf=Dce,Ga.oneOfType=Mce,Ga.arrayOf=Ice,Ga.objectOf=Rce,Ga.shape=kce,Ga.utils={validate:function(t,e){return ou(e,t,!0)===!0},toType:function(t,e,n){return n===void 0&&(n=!1),n?ja(t,e):ri(t,e)}},function(t){function e(){return t.apply(this,arguments)||this}return C4(e,t),e}(k4());const Z=k4({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});Z.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 Nce(t){return t.default=void 0,t}const ii=(t,e,n)=>{Ci(t,`[ant-design-vue: ${e}] ${n}`)};function N4(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 L4(t,e){const{label:n,value:r,options:i}=t||{};return{label:n||(e?"children":"label"),value:r||"value",options:i||"options"}}function Lce(t){let{fieldNames:e,childrenAsData:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=[],{label:i,value:a,options:o}=L4(e,!1);function s(l,u){l.forEach(c=>{const f=c[i];if(u||!(o in c)){const d=c[a];r.push({key:N4(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:N4(c,r.length),group:!0,data:c,label:d}),s(c[o],!0)}})}return s(t,!1),r}function Lw(t){const e=I({},t);return"props"in e||Object.defineProperty(e,"props",{get(){return Jl(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),e}}),e}function Vce(t,e){if(!e||!e.length)return null;let n=!1;function r(a,o){let[s,...l]=o;if(!s)return[a];const u=a.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 Bce(){return""}function zce(t){return t?t.ownerDocument:window.document}function V4(){}const Fce=()=>({action:Z.oneOfType([Z.string,Z.arrayOf(Z.string)]).def([]),showAction:Z.any.def([]),hideAction:Z.any.def([]),getPopupClassNameFromAlign:Z.any.def(Bce),onPopupVisibleChange:Function,afterPopupVisibleChange:Z.func.def(V4),popup:Z.any,arrow:Z.bool.def(!0),popupStyle:{type:Object,default:void 0},prefixCls:Z.string.def("rc-trigger-popup"),popupClassName:Z.string.def(""),popupPlacement:String,builtinPlacements:Z.object,popupTransitionName:String,popupAnimation:Z.any,mouseEnterDelay:Z.number.def(0),mouseLeaveDelay:Z.number.def(.1),zIndex:Number,focusDelay:Z.number.def(0),blurDelay:Z.number.def(.15),getPopupContainer:Function,getDocument:Z.func.def(zce),forceRender:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:!1},mask:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},popupAlign:Z.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}),Vw={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}},Wce=I(I({},Vw),{mobile:{type:Object}}),Qce=I(I({},Vw),{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});function Bw(t){let{prefixCls:e,animation:n,transitionName:r}=t;return n?{name:`${e}-${n}`}:r?{name:r}:{}}function B4(t){const{prefixCls:e,visible:n,zIndex:r,mask:i,maskAnimation:a,maskTransitionName:o}=t;if(!i)return null;let s={};return(o||a)&&(s=Bw({prefixCls:e,transitionName:o,animation:a})),p.createVNode(p.Transition,H({appear:!0},s),{default:()=>[p.withDirectives(p.createVNode("div",{style:{zIndex:r},class:`${e}-mask`},null),[[p.resolveDirective("if"),n]])]})}B4.displayName="Mask";const Hce=p.defineComponent({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:Wce,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(t,e){let{expose:n,slots:r}=e;const i=p.ref();return n({forceAlign:()=>{},getElement:()=>i.value}),()=>{var a;const{zIndex:o,visible:s,prefixCls:l,mobile:{popupClassName:u,popupStyle:c,popupMotion:f={},popupRender:d}={}}=t,h=I({zIndex:o},c);let g=bn((a=r.default)===null||a===void 0?void 0:a.call(r));g.length>1&&(g=p.createVNode("div",{class:`${l}-content`},[g])),d&&(g=d(g));const v=fe(l,u);return p.createVNode(p.Transition,H({ref:i},f),{default:()=>[s?p.createVNode("div",{class:v,style:h},[g]):null]})}}});var jce=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(c){try{u(r.next(c))}catch(f){o(f)}}function l(c){try{u(r.throw(c))}catch(f){o(f)}}function u(c){c.done?a(c.value):i(c.value).then(s,l)}u((r=r.apply(t,e||[])).next())})};const z4=["measure","align",null,"motion"],Gce=(t,e)=>{const n=p.shallowRef(null),r=p.shallowRef(),i=p.shallowRef(!1);function a(l){i.value||(n.value=l)}function o(){at.cancel(r.value)}function s(l){o(),r.value=at(()=>{let u=n.value;switch(n.value){case"align":u="motion";break;case"motion":u="stable";break}a(u),l==null||l()})}return p.watch(t,()=>{a("measure")},{immediate:!0,flush:"post"}),p.onMounted(()=>{p.watch(n,()=>{switch(n.value){case"measure":e();break}n.value&&(r.value=at(()=>jce(void 0,void 0,void 0,function*(){const l=z4.indexOf(n.value),u=z4[l+1];u&&l!==-1&&a(u)})))},{immediate:!0,flush:"post"})}),p.onBeforeUnmount(()=>{i.value=!0,o()}),[n,s]},Zce=t=>{const e=p.shallowRef({width:0,height:0});function n(i){e.value={width:i.offsetWidth,height:i.offsetHeight}}return[p.computed(()=>{const i={};if(t.value){const{width:a,height:o}=e.value;t.value.indexOf("height")!==-1&&o?i.height=`${o}px`:t.value.indexOf("minHeight")!==-1&&o&&(i.minHeight=`${o}px`),t.value.indexOf("width")!==-1&&a?i.width=`${a}px`:t.value.indexOf("minWidth")!==-1&&a&&(i.minWidth=`${a}px`)}return i}),n]};function F4(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 W4(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?F4(Object(n),!0).forEach(function(r){Uce(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):F4(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function zw(t){"@babel/helpers - typeof";return zw=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},zw(t)}function Uce(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var hp,Xce={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-",O:"-o-"};function iy(){if(hp!==void 0)return hp;hp="";var t=document.createElement("p").style,e="Transform";for(var n in Xce)n+e in t&&(hp=n);return hp}function Q4(){return iy()?"".concat(iy(),"TransitionProperty"):"transitionProperty"}function ay(){return iy()?"".concat(iy(),"Transform"):"transform"}function H4(t,e){var n=Q4();n&&(t.style[n]=e,n!=="transitionProperty"&&(t.style.transitionProperty=e))}function Fw(t,e){var n=ay();n&&(t.style[n]=e,n!=="transform"&&(t.style.transform=e))}function Yce(t){return t.style.transitionProperty||t.style[Q4()]}function qce(t){var e=window.getComputedStyle(t,null),n=e.getPropertyValue("transform")||e.getPropertyValue(ay());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 Kce=/matrix\((.*)\)/,Jce=/matrix3d\((.*)\)/;function efe(t,e){var n=window.getComputedStyle(t,null),r=n.getPropertyValue("transform")||n.getPropertyValue(ay());if(r&&r!=="none"){var i,a=r.match(Kce);if(a)a=a[1],i=a.split(",").map(function(s){return parseFloat(s,10)}),i[4]=e.x,i[5]=e.y,Fw(t,"matrix(".concat(i.join(","),")"));else{var o=r.match(Jce)[1];i=o.split(",").map(function(s){return parseFloat(s,10)}),i[12]=e.x,i[13]=e.y,Fw(t,"matrix3d(".concat(i.join(","),")"))}}else Fw(t,"translateX(".concat(e.x,"px) translateY(").concat(e.y,"px) translateZ(0)"))}var tfe=/[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,pp;function j4(t){var e=t.style.display;t.style.display="none",t.offsetHeight,t.style.display=e}function Sf(t,e,n){var r=n;if(zw(e)==="object"){for(var i in e)e.hasOwnProperty(i)&&Sf(t,i,e[i]);return}if(typeof r<"u"){typeof r=="number"&&(r="".concat(r,"px")),t.style[e]=r;return}return pp(t,e)}function nfe(t){var e,n,r,i=t.ownerDocument,a=i.body,o=i&&i.documentElement;return e=t.getBoundingClientRect(),n=Math.floor(e.left),r=Math.floor(e.top),n-=o.clientLeft||a.clientLeft||0,r-=o.clientTop||a.clientTop||0,{left:n,top:r}}function G4(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 Z4(t){return G4(t)}function U4(t){return G4(t,!0)}function gp(t){var e=nfe(t),n=t.ownerDocument,r=n.defaultView||n.parentWindow;return e.left+=Z4(r),e.top+=U4(r),e}function Ww(t){return t!=null&&t==t.window}function X4(t){return Ww(t)?t.document:t.nodeType===9?t:t.ownerDocument}function rfe(t,e,n){var r=n,i="",a=X4(t);return r=r||a.defaultView.getComputedStyle(t,null),r&&(i=r.getPropertyValue(e)||r[e]),i}var ife=new RegExp("^(".concat(tfe,")(?!px)[a-z%]+$"),"i"),afe=/^(top|right|bottom|left)$/,Qw="currentStyle",Hw="runtimeStyle",su="left",ofe="px";function sfe(t,e){var n=t[Qw]&&t[Qw][e];if(ife.test(n)&&!afe.test(e)){var r=t.style,i=r[su],a=t[Hw][su];t[Hw][su]=t[Qw][su],r[su]=e==="fontSize"?"1em":n||0,n=r.pixelLeft+ofe,r[su]=i,t[Hw][su]=a}return n===""?"auto":n}typeof window<"u"&&(pp=window.getComputedStyle?rfe:sfe);function oy(t,e){return t==="left"?e.useCssRight?"right":t:e.useCssBottom?"bottom":t}function Y4(t){if(t==="left")return"right";if(t==="right")return"left";if(t==="top")return"bottom";if(t==="bottom")return"top"}function q4(t,e,n){Sf(t,"position")==="static"&&(t.style.position="relative");var r=-999,i=-999,a=oy("left",n),o=oy("top",n),s=Y4(a),l=Y4(o);a!=="left"&&(r=999),o!=="top"&&(i=999);var u="",c=gp(t);("left"in e||"top"in e)&&(u=Yce(t)||"",H4(t,"none")),"left"in e&&(t.style[s]="",t.style[a]="".concat(r,"px")),"top"in e&&(t.style[l]="",t.style[o]="".concat(i,"px")),j4(t);var f=gp(t),d={};for(var h in e)if(e.hasOwnProperty(h)){var g=oy(h,n),v=h==="left"?r:i,m=c[h]-f[h];g===h?d[g]=v+m:d[g]=v-m}Sf(t,d),j4(t),("left"in e||"top"in e)&&H4(t,u);var y={};for(var b in e)if(e.hasOwnProperty(b)){var _=oy(b,n),O=e[b]-c[b];b===_?y[_]=d[_]+O:y[_]=d[_]-O}Sf(t,y)}function lfe(t,e){var n=gp(t),r=qce(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),efe(t,i)}function ufe(t,e,n){if(n.ignoreShake){var r=gp(t),i=r.left.toFixed(0),a=r.top.toFixed(0),o=e.left.toFixed(0),s=e.top.toFixed(0);if(i===o&&a===s)return}n.useCssRight||n.useCssBottom?q4(t,e,n):n.useCssTransform&&ay()in document.body.style?lfe(t,e):q4(t,e,n)}function jw(t,e){for(var n=0;n<t.length;n++)e(t[n])}function K4(t){return pp(t,"boxSizing")==="border-box"}var cfe=["margin","border","padding"],Gw=-1,ffe=2,Zw=1,dfe=0;function hfe(t,e,n){var r={},i=t.style,a;for(a in e)e.hasOwnProperty(a)&&(r[a]=i[a],i[a]=e[a]);n.call(t);for(a in e)e.hasOwnProperty(a)&&(i[a]=r[a])}function vp(t,e,n){var r=0,i,a,o;for(a=0;a<e.length;a++)if(i=e[a],i)for(o=0;o<n.length;o++){var s=void 0;i==="border"?s="".concat(i).concat(n[o],"Width"):s=i+n[o],r+=parseFloat(pp(t,s))||0}return r}var Za={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}};jw(["Width","Height"],function(t){Za["doc".concat(t)]=function(e){var n=e.document;return Math.max(n.documentElement["scroll".concat(t)],n.body["scroll".concat(t)],Za["viewport".concat(t)](n))},Za["viewport".concat(t)]=function(e){var n="client".concat(t),r=e.document,i=r.body,a=r.documentElement,o=a[n];return r.compatMode==="CSS1Compat"&&o||i&&i[n]||o}});function J4(t,e,n){var r=n;if(Ww(t))return e==="width"?Za.viewportWidth(t):Za.viewportHeight(t);if(t.nodeType===9)return e==="width"?Za.docWidth(t):Za.docHeight(t);var i=e==="width"?["Left","Right"]:["Top","Bottom"],a=Math.floor(e==="width"?t.getBoundingClientRect().width:t.getBoundingClientRect().height),o=K4(t),s=0;(a==null||a<=0)&&(a=void 0,s=pp(t,e),(s==null||Number(s)<0)&&(s=t.style[e]||0),s=Math.floor(parseFloat(s))||0),r===void 0&&(r=o?Zw:Gw);var l=a!==void 0||o,u=a||s;return r===Gw?l?u-vp(t,["border","padding"],i):s:l?r===Zw?u:u+(r===ffe?-vp(t,["border"],i):vp(t,["margin"],i)):s+vp(t,cfe.slice(r),i)}var pfe={position:"absolute",visibility:"hidden",display:"block"};function e8(){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=J4.apply(void 0,e):hfe(i,pfe,function(){r=J4.apply(void 0,e)}),r}jw(["width","height"],function(t){var e=t.charAt(0).toUpperCase()+t.slice(1);Za["outer".concat(e)]=function(r,i){return r&&e8(r,t,i?dfe:Zw)};var n=t==="width"?["Left","Right"]:["Top","Bottom"];Za[t]=function(r,i){var a=i;if(a!==void 0){if(r){var o=K4(r);return o&&(a+=vp(r,["padding","border"],n)),Sf(r,t,a)}return}return r&&e8(r,t,Gw)}});function t8(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var Ye={getWindow:function(e){if(e&&e.document&&e.setTimeout)return e;var n=e.ownerDocument||e;return n.defaultView||n.parentWindow},getDocument:X4,offset:function(e,n,r){if(typeof n<"u")ufe(e,n,r||{});else return gp(e)},isWindow:Ww,each:jw,css:Sf,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:t8,getWindowScrollLeft:function(e){return Z4(e)},getWindowScrollTop:function(e){return U4(e)},merge:function(){for(var e={},n=0;n<arguments.length;n++)Ye.mix(e,n<0||arguments.length<=n?void 0:arguments[n]);return e},viewportWidth:0,viewportHeight:0};t8(Ye,Za);var Uw=Ye.getParent;function Xw(t){if(Ye.isWindow(t)||t.nodeType===9)return null;var e=Ye.getDocument(t),n=e.body,r,i=Ye.css(t,"position"),a=i==="fixed"||i==="absolute";if(!a)return t.nodeName.toLowerCase()==="html"?null:Uw(t);for(r=Uw(t);r&&r!==n&&r.nodeType!==9;r=Uw(r))if(i=Ye.css(r,"position"),i!=="static")return r;return null}var n8=Ye.getParent;function gfe(t){if(Ye.isWindow(t)||t.nodeType===9)return!1;var e=Ye.getDocument(t),n=e.body,r=null;for(r=n8(t);r&&r!==n&&r!==e;r=n8(r)){var i=Ye.css(r,"position");if(i==="fixed")return!0}return!1}function Yw(t,e){for(var n={left:0,right:1/0,top:0,bottom:1/0},r=Xw(t),i=Ye.getDocument(t),a=i.defaultView||i.parentWindow,o=i.body,s=i.documentElement;r;){if((navigator.userAgent.indexOf("MSIE")===-1||r.clientWidth!==0)&&r!==o&&r!==s&&Ye.css(r,"overflow")!=="visible"){var l=Ye.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===o||r===s)break;r=Xw(r)}var u=null;if(!Ye.isWindow(t)&&t.nodeType!==9){u=t.style.position;var c=Ye.css(t,"position");c==="absolute"&&(t.style.position="fixed")}var f=Ye.getWindowScrollLeft(a),d=Ye.getWindowScrollTop(a),h=Ye.viewportWidth(a),g=Ye.viewportHeight(a),v=s.scrollWidth,m=s.scrollHeight,y=window.getComputedStyle(o);if(y.overflowX==="hidden"&&(v=a.innerWidth),y.overflowY==="hidden"&&(m=a.innerHeight),t.style&&(t.style.position=u),e||gfe(t))n.left=Math.max(n.left,f),n.top=Math.max(n.top,d),n.right=Math.min(n.right,f+h),n.bottom=Math.min(n.bottom,d+g);else{var b=Math.max(v,f+h);n.right=Math.min(n.right,b);var _=Math.max(m,d+g);n.bottom=Math.min(n.bottom,_)}return n.top>=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function vfe(t,e,n,r){var i=Ye.clone(t),a={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+a.width>n.right&&(a.width-=i.left+a.width-n.right),r.adjustX&&i.left+a.width>n.right&&(i.left=Math.max(n.right-a.width,n.left)),r.adjustY&&i.top<n.top&&(i.top=n.top),r.resizeHeight&&i.top>=n.top&&i.top+a.height>n.bottom&&(a.height-=i.top+a.height-n.bottom),r.adjustY&&i.top+a.height>n.bottom&&(i.top=Math.max(n.bottom-a.height,n.top)),Ye.mix(i,a)}function qw(t){var e,n,r;if(!Ye.isWindow(t)&&t.nodeType!==9)e=Ye.offset(t),n=Ye.outerWidth(t),r=Ye.outerHeight(t);else{var i=Ye.getWindow(t);e={left:Ye.getWindowScrollLeft(i),top:Ye.getWindowScrollTop(i)},n=Ye.viewportWidth(i),r=Ye.viewportHeight(i)}return e.width=n,e.height=r,e}function r8(t,e){var n=e.charAt(0),r=e.charAt(1),i=t.width,a=t.height,o=t.left,s=t.top;return n==="c"?s+=a/2:n==="b"&&(s+=a),r==="c"?o+=i/2:r==="r"&&(o+=i),{left:o,top:s}}function sy(t,e,n,r,i){var a=r8(e,n[1]),o=r8(t,n[0]),s=[o.left-a.left,o.top-a.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 i8(t,e,n){return t.left<n.left||t.left+e.width>n.right}function a8(t,e,n){return t.top<n.top||t.top+e.height>n.bottom}function mfe(t,e,n){return t.left>n.right||t.left+e.width<n.left}function yfe(t,e,n){return t.top>n.bottom||t.top+e.height<n.top}function ly(t,e,n){var r=[];return Ye.each(t,function(i){r.push(i.replace(e,function(a){return n[a]}))}),r}function uy(t,e){return t[e]=-t[e],t}function o8(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 s8(t,e){t[0]=o8(t[0],e.width),t[1]=o8(t[1],e.height)}function l8(t,e,n,r){var i=n.points,a=n.offset||[0,0],o=n.targetOffset||[0,0],s=n.overflow,l=n.source||t;a=[].concat(a),o=[].concat(o),s=s||{};var u={},c=0,f=!!(s&&s.alwaysByViewport),d=Yw(l,f),h=qw(l);s8(a,h),s8(o,e);var g=sy(h,e,i,a,o),v=Ye.merge(h,g);if(d&&(s.adjustX||s.adjustY)&&r){if(s.adjustX&&i8(g,h,d)){var m=ly(i,/[lr]/gi,{l:"r",r:"l"}),y=uy(a,0),b=uy(o,0),_=sy(h,e,m,y,b);mfe(_,h,d)||(c=1,i=m,a=y,o=b)}if(s.adjustY&&a8(g,h,d)){var O=ly(i,/[tb]/gi,{t:"b",b:"t"}),S=uy(a,1),x=uy(o,1),w=sy(h,e,O,S,x);yfe(w,h,d)||(c=1,i=O,a=S,o=x)}c&&(g=sy(h,e,i,a,o),Ye.mix(v,g));var T=i8(g,h,d),P=a8(g,h,d);if(T||P){var C=i;T&&(C=ly(i,/[lr]/gi,{l:"r",r:"l"})),P&&(C=ly(i,/[tb]/gi,{t:"b",b:"t"})),i=C,a=n.offset||[0,0],o=n.targetOffset||[0,0]}u.adjustX=s.adjustX&&T,u.adjustY=s.adjustY&&P,(u.adjustX||u.adjustY)&&(v=vfe(g,h,d,u))}return v.width!==h.width&&Ye.css(l,"width",Ye.width(l)+v.width-h.width),v.height!==h.height&&Ye.css(l,"height",Ye.height(l)+v.height-h.height),Ye.offset(l,{left:v.left,top:v.top},{useCssRight:n.useCssRight,useCssBottom:n.useCssBottom,useCssTransform:n.useCssTransform,ignoreShake:n.ignoreShake}),{points:i,offset:a,targetOffset:o,overflow:u}}function bfe(t,e){var n=Yw(t,e),r=qw(t);return!n||r.left+r.width<=n.left||r.top+r.height<=n.top||r.left>=n.right||r.top>=n.bottom}function Kw(t,e,n){var r=n.target||e,i=qw(r),a=!bfe(r,n.overflow&&n.overflow.alwaysByViewport);return l8(t,i,n,a)}Kw.__getOffsetParent=Xw,Kw.__getVisibleRectForElement=Yw;function _fe(t,e,n){var r,i,a=Ye.getDocument(t),o=a.defaultView||a.parentWindow,s=Ye.getWindowScrollLeft(o),l=Ye.getWindowScrollTop(o),u=Ye.viewportWidth(o),c=Ye.viewportHeight(o);"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,h=[n.points[0],"cc"];return l8(t,f,W4(W4({},n),{},{points:h}),d)}function en(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=Qa(t)[0]),!i)return null;const a=p.cloneVNode(i,e,r);return a.props=n?I(I({},a.props),e):a.props,pr(typeof a.props.class!="object","class must be string"),a}function Ofe(t,e,n){p.render(p.cloneVNode(t,I({},e)),n)}const u8=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 Sfe(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 xfe(t,e){t!==document.activeElement&&Is(e,t)&&typeof t.focus=="function"&&t.focus()}function c8(t,e){let n=null,r=null;function i(o){let[{target:s}]=o;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 a=new aL(i);return t&&a.observe(t),()=>{a.disconnect()}}const wfe=(t,e)=>{let n=!1,r=null;function i(){clearTimeout(r)}function a(o){if(!n||o===!0){if(t()===!1)return;n=!0,i(),r=setTimeout(()=>{n=!1},e.value)}else i(),r=setTimeout(()=>{n=!1,a()},e.value)}return[a,()=>{n=!1,i()}]};function Cfe(){this.__data__=[],this.size=0}function mp(t,e){return t===e||t!==t&&e!==e}function cy(t,e){for(var n=t.length;n--;)if(mp(t[n][0],e))return n;return-1}var Tfe=Array.prototype,Pfe=Tfe.splice;function $fe(t){var e=this.__data__,n=cy(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():Pfe.call(e,n,1),--this.size,!0}function Afe(t){var e=this.__data__,n=cy(e,t);return n<0?void 0:e[n][1]}function Efe(t){return cy(this.__data__,t)>-1}function Mfe(t,e){var n=this.__data__,r=cy(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}function Qo(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])}}Qo.prototype.clear=Cfe,Qo.prototype.delete=$fe,Qo.prototype.get=Afe,Qo.prototype.has=Efe,Qo.prototype.set=Mfe;function Ife(){this.__data__=new Qo,this.size=0}function Dfe(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}function Rfe(t){return this.__data__.get(t)}function kfe(t){return this.__data__.has(t)}var f8=typeof global=="object"&&global&&global.Object===Object&&global,Nfe=typeof self=="object"&&self&&self.Object===Object&&self,pa=f8||Nfe||Function("return this")(),Pi=pa.Symbol,d8=Object.prototype,Lfe=d8.hasOwnProperty,Vfe=d8.toString,yp=Pi?Pi.toStringTag:void 0;function Bfe(t){var e=Lfe.call(t,yp),n=t[yp];try{t[yp]=void 0;var r=!0}catch{}var i=Vfe.call(t);return r&&(e?t[yp]=n:delete t[yp]),i}var zfe=Object.prototype,Ffe=zfe.toString;function Wfe(t){return Ffe.call(t)}var Qfe="[object Null]",Hfe="[object Undefined]",h8=Pi?Pi.toStringTag:void 0;function Rs(t){return t==null?t===void 0?Hfe:Qfe:h8&&h8 in Object(t)?Bfe(t):Wfe(t)}function Wn(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var jfe="[object AsyncFunction]",Gfe="[object Function]",Zfe="[object GeneratorFunction]",Ufe="[object Proxy]";function Jw(t){if(!Wn(t))return!1;var e=Rs(t);return e==Gfe||e==Zfe||e==jfe||e==Ufe}var eC=pa["__core-js_shared__"],p8=function(){var t=/[^.]+$/.exec(eC&&eC.keys&&eC.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function Xfe(t){return!!p8&&p8 in t}var Yfe=Function.prototype,qfe=Yfe.toString;function lu(t){if(t!=null){try{return qfe.call(t)}catch{}try{return t+""}catch{}}return""}var Kfe=/[\\^$.*+?()[\]{}|]/g,Jfe=/^\[object .+?Constructor\]$/,ede=Function.prototype,tde=Object.prototype,nde=ede.toString,rde=tde.hasOwnProperty,ide=RegExp("^"+nde.call(rde).replace(Kfe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ade(t){if(!Wn(t)||Xfe(t))return!1;var e=Jw(t)?ide:Jfe;return e.test(lu(t))}function ode(t,e){return t==null?void 0:t[e]}function uu(t,e){var n=ode(t,e);return ade(n)?n:void 0}var bp=uu(pa,"Map"),_p=uu(Object,"create");function sde(){this.__data__=_p?_p(null):{},this.size=0}function lde(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var ude="__lodash_hash_undefined__",cde=Object.prototype,fde=cde.hasOwnProperty;function dde(t){var e=this.__data__;if(_p){var n=e[t];return n===ude?void 0:n}return fde.call(e,t)?e[t]:void 0}var hde=Object.prototype,pde=hde.hasOwnProperty;function gde(t){var e=this.__data__;return _p?e[t]!==void 0:pde.call(e,t)}var vde="__lodash_hash_undefined__";function mde(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=_p&&e===void 0?vde:e,this}function cu(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])}}cu.prototype.clear=sde,cu.prototype.delete=lde,cu.prototype.get=dde,cu.prototype.has=gde,cu.prototype.set=mde;function yde(){this.size=0,this.__data__={hash:new cu,map:new(bp||Qo),string:new cu}}function bde(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}function fy(t,e){var n=t.__data__;return bde(e)?n[typeof e=="string"?"string":"hash"]:n.map}function _de(t){var e=fy(this,t).delete(t);return this.size-=e?1:0,e}function Ode(t){return fy(this,t).get(t)}function Sde(t){return fy(this,t).has(t)}function xde(t,e){var n=fy(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}function Ho(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])}}Ho.prototype.clear=yde,Ho.prototype.delete=_de,Ho.prototype.get=Ode,Ho.prototype.has=Sde,Ho.prototype.set=xde;var wde=200;function Cde(t,e){var n=this.__data__;if(n instanceof Qo){var r=n.__data__;if(!bp||r.length<wde-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Ho(r)}return n.set(t,e),this.size=n.size,this}function ga(t){var e=this.__data__=new Qo(t);this.size=e.size}ga.prototype.clear=Ife,ga.prototype.delete=Dfe,ga.prototype.get=Rfe,ga.prototype.has=kfe,ga.prototype.set=Cde;var Tde="__lodash_hash_undefined__";function Pde(t){return this.__data__.set(t,Tde),this}function $de(t){return this.__data__.has(t)}function xf(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new Ho;++e<n;)this.add(t[e])}xf.prototype.add=xf.prototype.push=Pde,xf.prototype.has=$de;function Ade(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 dy(t,e){return t.has(e)}var Ede=1,Mde=2;function g8(t,e,n,r,i,a){var o=n&Ede,s=t.length,l=e.length;if(s!=l&&!(o&&l>s))return!1;var u=a.get(t),c=a.get(e);if(u&&c)return u==e&&c==t;var f=-1,d=!0,h=n&Mde?new xf:void 0;for(a.set(t,e),a.set(e,t);++f<s;){var g=t[f],v=e[f];if(r)var m=o?r(v,g,f,e,t,a):r(g,v,f,t,e,a);if(m!==void 0){if(m)continue;d=!1;break}if(h){if(!Ade(e,function(y,b){if(!dy(h,b)&&(g===y||i(g,y,n,r,a)))return h.push(b)})){d=!1;break}}else if(!(g===v||i(g,v,n,r,a))){d=!1;break}}return a.delete(t),a.delete(e),d}var hy=pa.Uint8Array;function Ide(t){var e=-1,n=Array(t.size);return t.forEach(function(r,i){n[++e]=[i,r]}),n}function tC(t){var e=-1,n=Array(t.size);return t.forEach(function(r){n[++e]=r}),n}var Dde=1,Rde=2,kde="[object Boolean]",Nde="[object Date]",Lde="[object Error]",Vde="[object Map]",Bde="[object Number]",zde="[object RegExp]",Fde="[object Set]",Wde="[object String]",Qde="[object Symbol]",Hde="[object ArrayBuffer]",jde="[object DataView]",v8=Pi?Pi.prototype:void 0,nC=v8?v8.valueOf:void 0;function Gde(t,e,n,r,i,a,o){switch(n){case jde:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Hde:return!(t.byteLength!=e.byteLength||!a(new hy(t),new hy(e)));case kde:case Nde:case Bde:return mp(+t,+e);case Lde:return t.name==e.name&&t.message==e.message;case zde:case Wde:return t==e+"";case Vde:var s=Ide;case Fde:var l=r&Dde;if(s||(s=tC),t.size!=e.size&&!l)return!1;var u=o.get(t);if(u)return u==e;r|=Rde,o.set(t,e);var c=g8(s(t),s(e),r,i,a,o);return o.delete(t),c;case Qde:if(nC)return nC.call(t)==nC.call(e)}return!1}function rC(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var kr=Array.isArray;function m8(t,e,n){var r=e(t);return kr(t)?r:rC(r,n(t))}function Zde(t,e){for(var n=-1,r=t==null?0:t.length,i=0,a=[];++n<r;){var o=t[n];e(o,n,t)&&(a[i++]=o)}return a}function y8(){return[]}var Ude=Object.prototype,Xde=Ude.propertyIsEnumerable,b8=Object.getOwnPropertySymbols,iC=b8?function(t){return t==null?[]:(t=Object(t),Zde(b8(t),function(e){return Xde.call(t,e)}))}:y8;function Yde(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}function va(t){return t!=null&&typeof t=="object"}var qde="[object Arguments]";function _8(t){return va(t)&&Rs(t)==qde}var O8=Object.prototype,Kde=O8.hasOwnProperty,Jde=O8.propertyIsEnumerable,wf=_8(function(){return arguments}())?_8:function(t){return va(t)&&Kde.call(t,"callee")&&!Jde.call(t,"callee")};function ehe(){return!1}var S8=typeof lt=="object"&&lt&&!lt.nodeType&&lt,x8=S8&&typeof module=="object"&&module&&!module.nodeType&&module,the=x8&&x8.exports===S8,w8=the?pa.Buffer:void 0,nhe=w8?w8.isBuffer:void 0,Cf=nhe||ehe,rhe=9007199254740991,ihe=/^(?:0|[1-9]\d*)$/;function py(t,e){var n=typeof t;return e=e??rhe,!!e&&(n=="number"||n!="symbol"&&ihe.test(t))&&t>-1&&t%1==0&&t<e}var ahe=9007199254740991;function aC(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=ahe}var ohe="[object Arguments]",she="[object Array]",lhe="[object Boolean]",uhe="[object Date]",che="[object Error]",fhe="[object Function]",dhe="[object Map]",hhe="[object Number]",phe="[object Object]",ghe="[object RegExp]",vhe="[object Set]",mhe="[object String]",yhe="[object WeakMap]",bhe="[object ArrayBuffer]",_he="[object DataView]",Ohe="[object Float32Array]",She="[object Float64Array]",xhe="[object Int8Array]",whe="[object Int16Array]",Che="[object Int32Array]",The="[object Uint8Array]",Phe="[object Uint8ClampedArray]",$he="[object Uint16Array]",Ahe="[object Uint32Array]",zt={};zt[Ohe]=zt[She]=zt[xhe]=zt[whe]=zt[Che]=zt[The]=zt[Phe]=zt[$he]=zt[Ahe]=!0,zt[ohe]=zt[she]=zt[bhe]=zt[lhe]=zt[_he]=zt[uhe]=zt[che]=zt[fhe]=zt[dhe]=zt[hhe]=zt[phe]=zt[ghe]=zt[vhe]=zt[mhe]=zt[yhe]=!1;function Ehe(t){return va(t)&&aC(t.length)&&!!zt[Rs(t)]}function gy(t){return function(e){return t(e)}}var C8=typeof lt=="object"&&lt&&!lt.nodeType&&lt,Op=C8&&typeof module=="object"&&module&&!module.nodeType&&module,Mhe=Op&&Op.exports===C8,oC=Mhe&&f8.process,Tf=function(){try{var t=Op&&Op.require&&Op.require("util").types;return t||oC&&oC.binding&&oC.binding("util")}catch{}}(),T8=Tf&&Tf.isTypedArray,vy=T8?gy(T8):Ehe,Ihe=Object.prototype,Dhe=Ihe.hasOwnProperty;function P8(t,e){var n=kr(t),r=!n&&wf(t),i=!n&&!r&&Cf(t),a=!n&&!r&&!i&&vy(t),o=n||r||i||a,s=o?Yde(t.length,String):[],l=s.length;for(var u in t)(e||Dhe.call(t,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||py(u,l)))&&s.push(u);return s}var Rhe=Object.prototype;function my(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||Rhe;return t===n}function $8(t,e){return function(n){return t(e(n))}}var khe=$8(Object.keys,Object),Nhe=Object.prototype,Lhe=Nhe.hasOwnProperty;function A8(t){if(!my(t))return khe(t);var e=[];for(var n in Object(t))Lhe.call(t,n)&&n!="constructor"&&e.push(n);return e}function Pf(t){return t!=null&&aC(t.length)&&!Jw(t)}function Sp(t){return Pf(t)?P8(t):A8(t)}function sC(t){return m8(t,Sp,iC)}var Vhe=1,Bhe=Object.prototype,zhe=Bhe.hasOwnProperty;function Fhe(t,e,n,r,i,a){var o=n&Vhe,s=sC(t),l=s.length,u=sC(e),c=u.length;if(l!=c&&!o)return!1;for(var f=l;f--;){var d=s[f];if(!(o?d in e:zhe.call(e,d)))return!1}var h=a.get(t),g=a.get(e);if(h&&g)return h==e&&g==t;var v=!0;a.set(t,e),a.set(e,t);for(var m=o;++f<l;){d=s[f];var y=t[d],b=e[d];if(r)var _=o?r(b,y,d,e,t,a):r(y,b,d,t,e,a);if(!(_===void 0?y===b||i(y,b,n,r,a):_)){v=!1;break}m||(m=d=="constructor")}if(v&&!m){var O=t.constructor,S=e.constructor;O!=S&&"constructor"in t&&"constructor"in e&&!(typeof O=="function"&&O instanceof O&&typeof S=="function"&&S instanceof S)&&(v=!1)}return a.delete(t),a.delete(e),v}var lC=uu(pa,"DataView"),uC=uu(pa,"Promise"),$f=uu(pa,"Set"),cC=uu(pa,"WeakMap"),E8="[object Map]",Whe="[object Object]",M8="[object Promise]",I8="[object Set]",D8="[object WeakMap]",R8="[object DataView]",Qhe=lu(lC),Hhe=lu(bp),jhe=lu(uC),Ghe=lu($f),Zhe=lu(cC),$i=Rs;(lC&&$i(new lC(new ArrayBuffer(1)))!=R8||bp&&$i(new bp)!=E8||uC&&$i(uC.resolve())!=M8||$f&&$i(new $f)!=I8||cC&&$i(new cC)!=D8)&&($i=function(t){var e=Rs(t),n=e==Whe?t.constructor:void 0,r=n?lu(n):"";if(r)switch(r){case Qhe:return R8;case Hhe:return E8;case jhe:return M8;case Ghe:return I8;case Zhe:return D8}return e});var Uhe=1,k8="[object Arguments]",N8="[object Array]",yy="[object Object]",Xhe=Object.prototype,L8=Xhe.hasOwnProperty;function Yhe(t,e,n,r,i,a){var o=kr(t),s=kr(e),l=o?N8:$i(t),u=s?N8:$i(e);l=l==k8?yy:l,u=u==k8?yy:u;var c=l==yy,f=u==yy,d=l==u;if(d&&Cf(t)){if(!Cf(e))return!1;o=!0,c=!1}if(d&&!c)return a||(a=new ga),o||vy(t)?g8(t,e,n,r,i,a):Gde(t,e,l,n,r,i,a);if(!(n&Uhe)){var h=c&&L8.call(t,"__wrapped__"),g=f&&L8.call(e,"__wrapped__");if(h||g){var v=h?t.value():t,m=g?e.value():e;return a||(a=new ga),i(v,m,n,r,a)}}return d?(a||(a=new ga),Fhe(t,e,n,r,i,a)):!1}function by(t,e,n,r,i){return t===e?!0:t==null||e==null||!va(t)&&!va(e)?t!==t&&e!==e:Yhe(t,e,n,r,by,i)}function _y(t,e){return by(t,e)}const qhe={align:Object,target:[Object,Function],onAlign:Function,monitorBufferTime:Number,monitorWindowResize:Boolean,disabled:Boolean};function V8(t){return typeof t!="function"?null:t()}function B8(t){return typeof t!="object"||!t?null:t}const Khe=p.defineComponent({compatConfig:{MODE:3},name:"Align",props:qhe,emits:["align"],setup(t,e){let{expose:n,slots:r}=e;const i=p.ref({}),a=p.ref(),[o,s]=wfe(()=>{const{disabled:d,target:h,align:g,onAlign:v}=t;if(!d&&h&&a.value){const m=a.value;let y;const b=V8(h),_=B8(h);i.value.element=b,i.value.point=_,i.value.align=g;const{activeElement:O}=document;return b&&u8(b)?y=Kw(m,b,g):_&&(y=_fe(m,_,g)),xfe(O,m),v&&y&&v(m,y),!0}return!1},p.computed(()=>t.monitorBufferTime)),l=p.ref({cancel:()=>{}}),u=p.ref({cancel:()=>{}}),c=()=>{const d=t.target,h=V8(d),g=B8(d);a.value!==u.value.element&&(u.value.cancel(),u.value.element=a.value,u.value.cancel=c8(a.value,o)),(i.value.element!==h||!Sfe(i.value.point,g)||!_y(i.value.align,t.align))&&(o(),l.value.element!==h&&(l.value.cancel(),l.value.element=h,l.value.cancel=c8(h,o)))};p.onMounted(()=>{p.nextTick(()=>{c()})}),p.onUpdated(()=>{p.nextTick(()=>{c()})}),p.watch(()=>t.disabled,d=>{d?s():o()},{immediate:!0,flush:"post"});const f=p.ref(null);return p.watch(()=>t.monitorWindowResize,d=>{d?f.value||(f.value=zn(window,"resize",o)):f.value&&(f.value.remove(),f.value=null)},{flush:"post"}),p.onUnmounted(()=>{l.value.cancel(),u.value.cancel(),f.value&&f.value.remove(),s()}),n({forceAlign:()=>o(!0)}),()=>{const d=r==null?void 0:r.default();return d?en(d[0],{ref:a},!0,!0):null}}});Ms("bottomLeft","bottomRight","topLeft","topRight");const Jhe=t=>t!==void 0&&(t==="topLeft"||t==="topRight")?"slide-down":"slide-up",xp=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return I(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)},fC=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return I(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)},Ua=(t,e,n)=>n!==void 0?n:`${t}-${e}`,epe=p.defineComponent({compatConfig:{MODE:3},name:"PopupInner",inheritAttrs:!1,props:Vw,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(t,e){let{expose:n,attrs:r,slots:i}=e;const a=p.shallowRef(),o=p.shallowRef(),s=p.shallowRef(),[l,u]=Zce(p.toRef(t,"stretch")),c=()=>{t.stretch&&u(t.getRootDomNode())},f=p.shallowRef(!1);let d;p.watch(()=>t.visible,x=>{clearTimeout(d),x?d=setTimeout(()=>{f.value=t.visible}):f.value=!1},{immediate:!0});const[h,g]=Gce(f,c),v=p.shallowRef(),m=()=>t.point?t.point:t.getRootDomNode,y=()=>{var x;(x=a.value)===null||x===void 0||x.forceAlign()},b=(x,w)=>{var T;const P=t.getClassNameFromAlign(w),C=s.value;s.value!==P&&(s.value=P),h.value==="align"&&(C!==P?Promise.resolve().then(()=>{y()}):g(()=>{var $;($=v.value)===null||$===void 0||$.call(v)}),(T=t.onAlign)===null||T===void 0||T.call(t,x,w))},_=p.computed(()=>{const x=typeof t.animation=="object"?t.animation:Bw(t);return["onAfterEnter","onAfterLeave"].forEach(w=>{const T=x[w];x[w]=P=>{g(),h.value="stable",T==null||T(P)}}),x}),O=()=>new Promise(x=>{v.value=x});p.watch([_,h],()=>{!_.value&&h.value==="motion"&&g()},{immediate:!0}),n({forceAlign:y,getElement:()=>o.value.$el||o.value});const S=p.computed(()=>{var x;return!(!((x=t.align)===null||x===void 0)&&x.points&&(h.value==="align"||h.value==="stable"))});return()=>{var x;const{zIndex:w,align:T,prefixCls:P,destroyPopupOnHide:C,onMouseenter:$,onMouseleave:A,onTouchstart:E=()=>{},onMousedown:D}=t,M=h.value,R=[I(I({},l.value),{zIndex:w,opacity:M==="motion"||M==="stable"||!f.value?null:0,pointerEvents:!f.value&&M!=="stable"?"none":null}),r.style];let N=bn((x=i.default)===null||x===void 0?void 0:x.call(i,{visible:t.visible}));N.length>1&&(N=p.createVNode("div",{class:`${P}-content`},[N]));const V=fe(P,r.class,s.value,!t.arrow&&`${P}-arrow-hidden`),z=f.value||!t.visible?xp(_.value.name,_.value):{};return p.createVNode(p.Transition,H(H({ref:o},z),{},{onBeforeEnter:O}),{default:()=>!C||t.visible?p.withDirectives(p.createVNode(Khe,{target:m(),key:"popup",ref:a,monitorWindowResize:!0,disabled:S.value,align:T,onAlign:b},{default:()=>p.createVNode("div",{class:V,onMouseenter:$,onMouseleave:A,onMousedown:p.withModifiers(D,["capture"]),[Bn?"onTouchstartPassive":"onTouchstart"]:p.withModifiers(E,["capture"]),style:R},[N])}),[[p.vShow,f.value]]):null})}}}),tpe=p.defineComponent({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:Qce,setup(t,e){let{attrs:n,slots:r,expose:i}=e;const a=p.shallowRef(!1),o=p.shallowRef(!1),s=p.shallowRef(),l=p.shallowRef();return p.watch([()=>t.visible,()=>t.mobile],()=>{a.value=t.visible,t.visible&&t.mobile&&(o.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=I(I(I({},t),n),{visible:a.value}),c=o.value?p.createVNode(Hce,H(H({},u),{},{mobile:t.mobile,ref:s}),{default:r.default}):p.createVNode(epe,H(H({},u),{},{ref:s}),{default:r.default});return p.createVNode("div",{ref:l},[p.createVNode(B4,u,null),c])}}});function npe(t,e,n){return n?t[0]===e[0]:t[0]===e[0]&&t[1]===e[1]}function z8(t,e,n){const r=t[e]||{};return I(I({},r),n)}function rpe(t,e,n,r){const{points:i}=n,a=Object.keys(t);for(let o=0;o<a.length;o+=1){const s=a[o];if(npe(t[s].points,i,r))return`${e}-placement-${s}`}return""}const Oy={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(ple(this),I(I({},this.$data),n));if(r===null)return;n=I(I({},n),r||{})}I(this.$data,n),this._.isMounted&&this.$forceUpdate(),p.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))}}},F8=Symbol("PortalContextKey"),dC=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inTriggerContext:!0};p.provide(F8,{inTriggerContext:e.inTriggerContext,shouldRender:p.computed(()=>{const{sPopupVisible:n,popupRef:r,forceRender:i,autoDestroy:a}=t||{};let o=!1;return(n||r||i)&&(o=!0),!n&&a&&(o=!1),o})})},ipe=()=>{dC({},{inTriggerContext:!1});const t=p.inject(F8,{shouldRender:p.computed(()=>!1),inTriggerContext:!1});return{shouldRender:p.computed(()=>t.shouldRender.value||t.inTriggerContext===!1)}},W8=p.defineComponent({compatConfig:{MODE:3},name:"Portal",inheritAttrs:!1,props:{getContainer:Z.func.isRequired,didUpdate:Function},setup(t,e){let{slots:n}=e,r=!0,i;const{shouldRender:a}=ipe();function o(){a.value&&(i=t.getContainer())}p.onBeforeMount(()=>{r=!1,o()}),p.onMounted(()=>{i||o()});const s=p.watch(a,()=>{a.value&&!i&&(i=t.getContainer()),i&&s()});return p.onUpdated(()=>{p.nextTick(()=>{var l;a.value&&((l=t.didUpdate)===null||l===void 0||l.call(t,t))})}),()=>{var l;return a.value?r?(l=n.default)===null||l===void 0?void 0:l.call(n):i?p.createVNode(p.Teleport,{to:i},n):null:null}}});let hC;function ape(t){if(typeof document>"u")return 0;if(hC===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 a=e.offsetWidth;i===a&&(a=n.clientWidth),document.body.removeChild(n),hC=i-a}return hC}const ope=`vc-util-locker-${Date.now()}`;let Q8=0;function spe(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}function lpe(t){const e=p.computed(()=>!!t&&!!t.value);Q8+=1;const n=`${ope}_${Q8}`;p.watchEffect(r=>{if(wi()){if(e.value){const i=ape(),a=spe();ap(`
  44. html body {
  45. overflow-y: hidden;
  46. ${a?`width: calc(100% - ${i}px);`:""}
  47. }`,n)}else N0(n);r(()=>{N0(n)})}},{flush:"post"})}let fu=0;const Sy=wi(),H8=t=>{if(!Sy)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},j8=p.defineComponent({compatConfig:{MODE:3},name:"PortalWrapper",inheritAttrs:!1,props:{wrapperClassName:String,forceRender:{type:Boolean,default:void 0},getContainer:Z.any,visible:{type:Boolean,default:void 0},autoLock:We(),didUpdate:Function},setup(t,e){let{slots:n}=e;const r=p.shallowRef(),i=p.shallowRef(),a=p.shallowRef(),o=p.shallowRef(1),s=wi()&&document.createElement("div"),l=()=>{var h,g;r.value===s&&((g=(h=r.value)===null||h===void 0?void 0:h.parentNode)===null||g===void 0||g.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=H8(t.getContainer),u?(u.appendChild(r.value),!0):!1):!0},f=()=>Sy?(r.value||(r.value=s,c(!0)),d(),r.value):null,d=()=>{const{wrapperClassName:h}=t;r.value&&h&&h!==r.value.className&&(r.value.className=h)};return p.onUpdated(()=>{d(),c()}),lpe(p.computed(()=>t.autoLock&&t.visible&&wi()&&(r.value===document.body||r.value===s))),p.onMounted(()=>{let h=!1;p.watch([()=>t.visible,()=>t.getContainer],(g,v)=>{let[m,y]=g,[b,_]=v;Sy&&(u=H8(t.getContainer),u===document.body&&(m&&!b?fu+=1:h&&(fu-=1))),h&&(typeof y=="function"&&typeof _=="function"?y.toString()!==_.toString():y!==_)&&l(),h=!0},{immediate:!0,flush:"post"}),p.nextTick(()=>{c()||(a.value=at(()=>{o.value+=1}))})}),p.onBeforeUnmount(()=>{const{visible:h}=t;Sy&&u===document.body&&(fu=h&&fu?fu-1:fu),l(),at.cancel(a.value)}),()=>{const{forceRender:h,visible:g}=t;let v=null;const m={getOpenCount:()=>fu,getContainer:f};return o.value&&(h||g||i.value)&&(v=p.createVNode(W8,{getContainer:f,ref:i,didUpdate:t.didUpdate},{default:()=>{var y;return(y=n.default)===null||y===void 0?void 0:y.call(n,m)}})),v}}}),upe=["onClick","onMousedown","onTouchstart","onMouseenter","onMouseleave","onFocus","onBlur","onContextmenu"],xy=p.defineComponent({compatConfig:{MODE:3},name:"Trigger",mixins:[Oy],inheritAttrs:!1,props:Fce(),setup(t){const e=p.computed(()=>{const{popupPlacement:i,popupAlign:a,builtinPlacements:o}=t;return i&&o?z8(o,i,a):a}),n=p.shallowRef(null),r=i=>{n.value=i};return{vcTriggerContext:p.inject("vcTriggerContext",{}),popupRef:n,setPopupRef:r,triggerRef:p.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,upe.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(){p.provide("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown,onPopupMouseenter:this.onPopupMouseenter,onPopupMouseleave:this.onPopupMouseleave}),dC(this)},deactivated(){this.setPopupVisible(!1)},mounted(){this.$nextTick(()=>{this.updatedCal()})},updated(){this.$nextTick(()=>{this.updatedCal()})},beforeUnmount(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),at.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=zn(n,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(n=n||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=zn(n,"touchstart",this.onDocumentClick,Bn?{passive:!1}:!1)),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(n=n||t.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=zn(n,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=zn(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&&Is((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){Is(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();(!Is(n,e)||this.isContextMenuOnly())&&!Is(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 a=((e=(t=this.triggerRef)===null||t===void 0?void 0:t.$el)===null||e===void 0?void 0:e.nodeName)==="#comment"?null:Vo(this.triggerRef);return Vo(i(a))}try{const a=((r=(n=this.triggerRef)===null||n===void 0?void 0:n.$el)===null||r===void 0?void 0:r.nodeName)==="#comment"?null:Vo(this.triggerRef);if(a)return a}catch{}return Vo(this)},handleGetPopupClassFromAlign(t){const e=[],n=this.$props,{popupPlacement:r,builtinPlacements:i,prefixCls:a,alignPoint:o,getPopupClassNameFromAlign:s}=n;return r&&i&&e.push(rpe(i,a,t,o)),s&&e.push(s(t)),e.join(" ")},getPopupAlign(){const t=this.$props,{popupPlacement:e,popupAlign:n,builtinPlacements:r}=t;return e&&r?z8(r,e,n):n},getComponent(){const t={};this.isMouseEnterToShow()&&(t.onMouseenter=this.onPopupMouseenter),this.isMouseLeaveToHide()&&(t.onMouseleave=this.onPopupMouseleave),t.onMousedown=this.onPopupMouseDown,t[Bn?"onTouchstartPassive":"onTouchstart"]=this.onPopupMouseDown;const{handleGetPopupClassFromAlign:e,getRootDomNode:n,$attrs:r}=this,{prefixCls:i,destroyPopupOnHide:a,popupClassName:o,popupAnimation:s,popupTransitionName:l,popupStyle:u,mask:c,maskAnimation:f,maskTransitionName:d,zIndex:h,stretch:g,alignPoint:v,mobile:m,arrow:y,forceRender:b}=this.$props,{sPopupVisible:_,point:O}=this.$data,S=I(I({prefixCls:i,arrow:y,destroyPopupOnHide:a,visible:_,point:v?O:null,align:this.align,animation:s,getClassNameFromAlign:e,stretch:g,getRootDomNode:n,mask:c,zIndex:h,transitionName:l,maskAnimation:f,maskTransitionName:d,class:o,style:u,onAlign:r.onPopupAlign||V4},t),{ref:this.setPopupRef,mobile:m,forceRender:b});return p.createVNode(tpe,S,{default:this.$slots.popup||(()=>gle(this,"popup"))})},attachParent(t){at.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=at(()=>{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&&(A0(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=lL(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=Qa(sL(this)),{alignPoint:n,getPopupContainer:r}=this.$props,i=e[0];this.childOriginEvents=lL(i);const a={key:"trigger"};this.isContextmenuToShow()?a.onContextmenu=this.onContextmenu:a.onContextmenu=this.createTwoChains("onContextmenu"),this.isClickToHide()||this.isClickToShow()?(a.onClick=this.onClick,a.onMousedown=this.onMousedown,a[Bn?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(a.onClick=this.createTwoChains("onClick"),a.onMousedown=this.createTwoChains("onMousedown"),a[Bn?"onTouchstartPassive":"onTouchstart"]=this.createTwoChains("onTouchstart")),this.isMouseEnterToShow()?(a.onMouseenter=this.onMouseenter,n&&(a.onMousemove=this.onMouseMove)):a.onMouseenter=this.createTwoChains("onMouseenter"),this.isMouseLeaveToHide()?a.onMouseleave=this.onMouseleave:a.onMouseleave=this.createTwoChains("onMouseleave"),this.isFocusToShow()||this.isBlurToHide()?(a.onFocus=this.onFocus,a.onBlur=this.onBlur):(a.onFocus=this.createTwoChains("onFocus"),a.onBlur=u=>{u&&(!u.relatedTarget||!Is(u.target,u.relatedTarget))&&this.createTwoChains("onBlur")(u)});const o=fe(i&&i.props&&i.props.class,t.class);o&&(a.class=o);const s=en(i,I(I({},a),{ref:"triggerRef"}),!0,!0),l=p.createVNode(j8,{key:"portal",getContainer:r&&(()=>r(this.getRootDomNode())),didUpdate:this.handlePortalUpdate,visible:this.$data.sPopupVisible},{default:this.getComponent});return p.createVNode(p.Fragment,null,[s,l])}});var cpe=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 fpe=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}}}},dpe=p.defineComponent({name:"SelectTrigger",inheritAttrs:!1,props:{dropdownAlign:Object,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},dropdownClassName:String,dropdownStyle:Z.object,placement:String,empty:{type:Boolean,default:void 0},prefixCls:String,popupClassName:String,animation:String,transitionName:String,getPopupContainer:Function,dropdownRender:Function,containerWidth:Number,dropdownMatchSelectWidth:Z.oneOfType([Number,Boolean]).def(!0),popupElement:Z.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 a=p.computed(()=>{const{dropdownMatchSelectWidth:s}=t;return fpe(s)}),o=p.ref();return i({getPopupElement:()=>o.value}),()=>{const s=I(I({},t),r),{empty:l=!1}=s,u=cpe(s,["empty"]),{visible:c,dropdownAlign:f,prefixCls:d,popupElement:h,dropdownClassName:g,dropdownStyle:v,direction:m="ltr",placement:y,dropdownMatchSelectWidth:b,containerWidth:_,dropdownRender:O,animation:S,transitionName:x,getPopupContainer:w,getTriggerDOMNode:T,onPopupVisibleChange:P,onPopupMouseEnter:C,onPopupFocusin:$,onPopupFocusout:A}=u,E=`${d}-dropdown`;let D=h;O&&(D=O({menuNode:h,props:t}));const M=S?`${E}-${S}`:x,R=I({minWidth:`${_}px`},v);return typeof b=="number"?R.width=`${b}px`:b&&(R.width=`${_}px`),p.createVNode(xy,H(H({},t),{},{showAction:P?["click"]:[],hideAction:P?["click"]:[],popupPlacement:y||(m==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:a.value,prefixCls:E,popupTransitionName:M,popupAlign:f,popupVisible:c,getPopupContainer:w,popupClassName:fe(g,{[`${E}-empty`]:l}),popupStyle:R,getTriggerDOMNode:T,onPopupVisibleChange:P}),{default:n.default,popup:()=>p.createVNode("div",{ref:o,onMouseenter:C,onFocusin:$,onFocusout:A},[D])})}}}),le={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>=le.F1&&n<=le.F12)return!1;switch(n){case le.ALT:case le.CAPS_LOCK:case le.CONTEXT_MENU:case le.CTRL:case le.DOWN:case le.END:case le.ESC:case le.HOME:case le.INSERT:case le.LEFT:case le.MAC_FF_META:case le.META:case le.NUMLOCK:case le.NUM_CENTER:case le.PAGE_DOWN:case le.PAGE_UP:case le.PAUSE:case le.PRINT_SCREEN:case le.RIGHT:case le.SHIFT:case le.UP:case le.WIN_KEY:case le.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=le.ZERO&&e<=le.NINE||e>=le.NUM_ZERO&&e<=le.NUM_MULTIPLY||e>=le.A&&e<=le.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&e===0)return!0;switch(e){case le.SPACE:case le.QUESTION_MARK:case le.NUM_PLUS:case le.NUM_MINUS:case le.NUM_PERIOD:case le.NUM_DIVISION:case le.SEMICOLON:case le.DASH:case le.EQUALS:case le.COMMA:case le.PERIOD:case le.SLASH:case le.APOSTROPHE:case le.SINGLE_QUOTE:case le.OPEN_SQUARE_BRACKET:case le.BACKSLASH:case le.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},du=(t,e)=>{let{slots:n}=e;var r;const{class:i,customizeIcon:a,customizeIconProps:o,onMousedown:s,onClick:l}=t;let u;return typeof a=="function"?u=a(o):u=p.isVNode(a)?p.cloneVNode(a):a,p.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:p.createVNode("span",{class:i.split(/\s+/).map(c=>`${c}-icon`)},[(r=n.default)===null||r===void 0?void 0:r.call(n)])])};du.inheritAttrs=!1,du.displayName="TransBtn",du.props={class:String,customizeIcon:Z.any,customizeIconProps:Z.any,onMousedown:Function,onClick:Function};var hpe=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 ppe=p.defineComponent({compatConfig:{MODE:3},props:{disabled:Z.looseBool,type:Z.string,value:Z.any,tag:{type:String,default:"input"},size:Z.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=p.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=hpe(t,["tag","value"]);return p.createVNode(l,H(H({},c),{},{ref:r,value:u}),null)}}});function gpe(){const t=document.documentElement.clientWidth,e=window.innerHeight||document.documentElement.clientHeight;return{width:t,height:e}}function G8(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 vpe(t){return Object.keys(t).reduce((e,n)=>{const r=t[n];return typeof r>"u"||r===null||(e+=`${n}: ${t[n]};`),e},"")}var mpe=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 pC=p.defineComponent({compatConfig:{MODE:3},inheritAttrs:!1,props:{disabled:Z.looseBool,type:Z.string,value:Z.any,lazy:Z.bool.def(!0),tag:{type:String,default:"input"},size:Z.string,style:Z.oneOfType([String,Object]),class:Z.string},emits:["change","input","blur","keydown","focus","compositionstart","compositionend","keyup","paste","mousedown"],setup(t,e){let{emit:n,attrs:r,expose:i}=e;const a=p.shallowRef(null),o=p.ref(),s=p.ref(!1);p.watch([()=>t.value,s],()=>{s.value||(o.value=t.value)},{immediate:!0});const l=w=>{n("change",w)},u=w=>{s.value=!0,w.target.composing=!0,n("compositionstart",w)},c=w=>{s.value=!1,w.target.composing=!1,n("compositionend",w);const T=document.createEvent("HTMLEvents");T.initEvent("input",!0,!0),w.target.dispatchEvent(T),l(w)},f=w=>{if(s.value&&t.lazy){o.value=w.target.value;return}n("input",w)},d=w=>{n("blur",w)},h=w=>{n("focus",w)},g=()=>{a.value&&a.value.focus()},v=()=>{a.value&&a.value.blur()},m=w=>{n("keydown",w)},y=w=>{n("keyup",w)},b=(w,T,P)=>{var C;(C=a.value)===null||C===void 0||C.setSelectionRange(w,T,P)},_=()=>{var w;(w=a.value)===null||w===void 0||w.select()};i({focus:g,blur:v,input:p.computed(()=>{var w;return(w=a.value)===null||w===void 0?void 0:w.input}),setSelectionRange:b,select:_,getSelectionStart:()=>{var w;return(w=a.value)===null||w===void 0?void 0:w.getSelectionStart()},getSelectionEnd:()=>{var w;return(w=a.value)===null||w===void 0?void 0:w.getSelectionEnd()},getScrollTop:()=>{var w;return(w=a.value)===null||w===void 0?void 0:w.getScrollTop()}});const O=w=>{n("mousedown",w)},S=w=>{n("paste",w)},x=p.computed(()=>t.style&&typeof t.style!="string"?vpe(t.style):t.style);return()=>{const w=mpe(t,["style","lazy"]);return p.createVNode(ppe,H(H(H({},w),r),{},{style:x.value,onInput:f,onChange:l,onBlur:d,onFocus:h,ref:a,value:o.value,onCompositionstart:u,onCompositionend:c,onKeyup:y,onKeydown:m,onPaste:S,onMousedown:O}),null)}}}),ype={inputRef:Z.any,prefixCls:String,id:String,inputElement:Z.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:Z.oneOfType([Z.number,Z.string]),attrs:Z.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}},Z8=p.defineComponent({compatConfig:{MODE:3},name:"SelectInput",inheritAttrs:!1,props:ype,setup(t){let e=null;const n=p.inject("VCSelectContainerEvent");return()=>{var r;const{prefixCls:i,id:a,inputElement:o,disabled:s,tabindex:l,autofocus:u,autocomplete:c,editable:f,activeDescendantId:d,value:h,onKeydown:g,onMousedown:v,onChange:m,onPaste:y,onCompositionstart:b,onCompositionend:_,onFocus:O,onBlur:S,open:x,inputRef:w,attrs:T}=t;let P=o||p.createVNode(pC,null,null);const C=P.props||{},{onKeydown:$,onInput:A,onFocus:E,onBlur:D,onMousedown:M,onCompositionstart:R,onCompositionend:N,style:V}=C;return P=en(P,I(I(I(I(I({type:"search"},C),{id:a,ref:w,disabled:s,tabindex:l,lazy:!1,autocomplete:c||"off",autofocus:u,class:fe(`${i}-selection-search-input`,(r=P==null?void 0:P.props)===null||r===void 0?void 0:r.class),role:"combobox","aria-expanded":x,"aria-haspopup":"listbox","aria-owns":`${a}_list`,"aria-autocomplete":"list","aria-controls":`${a}_list`,"aria-activedescendant":d}),T),{value:f?h:"",readonly:!f,unselectable:f?null:"on",style:I(I({},V),{opacity:f?null:0}),onKeydown:L=>{g(L),$&&$(L)},onMousedown:L=>{v(L),M&&M(L)},onInput:L=>{m(L),A&&A(L)},onCompositionstart(L){b(L),R&&R(L)},onCompositionend(L){_(L),N&&N(L)},onPaste:y,onFocus:function(){clearTimeout(e),E&&E(arguments.length<=0?void 0:arguments[0]),O&&O(arguments.length<=0?void 0:arguments[0]),n==null||n.focus(arguments.length<=0?void 0:arguments[0])},onBlur:function(){for(var L=arguments.length,z=new Array(L),B=0;B<L;B++)z[B]=arguments[B];e=setTimeout(()=>{D&&D(z[0]),S&&S(z[0]),n==null||n.blur(z[0])},100)}}),P.type==="textarea"?{}:{type:"search"}),!0,!0),P}}}),U8=`accept acceptcharset accesskey action allowfullscreen allowtransparency
  48. alt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge
  49. charset checked classid classname colspan cols content contenteditable contextmenu
  50. controls coords crossorigin data datetime default defer dir disabled download draggable
  51. enctype form formaction formenctype formmethod formnovalidate formtarget frameborder
  52. headers height hidden high href hreflang htmlfor for httpequiv icon id inputmode integrity
  53. is keyparams keytype kind label lang list loop low manifest marginheight marginwidth max maxlength media
  54. mediagroup method min minlength multiple muted name novalidate nonce open
  55. optimum pattern placeholder poster preload radiogroup readonly rel required
  56. reversed role rowspan rows sandbox scope scoped scrolling seamless selected
  57. shape size sizes span spellcheck src srcdoc srclang srcset start step style
  58. summary tabindex target title type usemap value width wmode wrap onCopy onCut onPaste onCompositionend onCompositionstart onCompositionupdate onKeydown
  59. onKeypress onKeyup onFocus onBlur onChange onInput onSubmit onClick onContextmenu onDoubleclick onDblclick
  60. onDrag onDragend onDragenter onDragexit onDragleave onDragover onDragstart onDrop onMousedown
  61. onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel
  62. onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough
  63. onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata
  64. onLoadstart onPause onPlay onPlaying onProgress onRatechange onSeeked onSeeking onStalled onSuspend onTimeupdate onVolumechange onWaiting onLoad onError`.split(/[\s\n]+/),bpe="aria-",_pe="data-";function X8(t,e){return t.indexOf(e)===0}function wy(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=I({},e);const r={};return Object.keys(t).forEach(i=>{(n.aria&&(i==="role"||X8(i,bpe))||n.data&&X8(i,_pe)||n.attr&&(U8.includes(i)||U8.includes(i.toLowerCase())))&&(r[i]=t[i])}),r}const Y8=Symbol("OverflowContextProviderKey"),gC=p.defineComponent({compatConfig:{MODE:3},name:"OverflowContextProvider",inheritAttrs:!1,props:{value:{type:Object}},setup(t,e){let{slots:n}=e;return p.provide(Y8,p.computed(()=>t.value)),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}),Ope=()=>p.inject(Y8,p.computed(()=>null));var Spe=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 Af=void 0,Cy=p.defineComponent({compatConfig:{MODE:3},name:"Item",props:{prefixCls:String,item:Z.any,renderItem:Function,responsive:Boolean,itemKey:{type:[String,Number]},registerSize:Function,display:Boolean,order:Number,component:Z.any,invalidate:Boolean},setup(t,e){let{slots:n,expose:r}=e;const i=p.computed(()=>t.responsive&&!t.display),a=p.ref();r({itemNodeRef:a});function o(s){t.registerSize(t.itemKey,s)}return p.onUnmounted(()=>{o(null)}),()=>{var s;const{prefixCls:l,invalidate:u,item:c,renderItem:f,responsive:d,registerSize:h,itemKey:g,display:v,order:m,component:y="div"}=t,b=Spe(t,["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","display","order","component"]),_=(s=n.default)===null||s===void 0?void 0:s.call(n),O=f&&c!==Af?f(c):_;let S;u||(S={opacity:i.value?0:1,height:i.value?0:Af,overflowY:i.value?"hidden":Af,order:d?m:Af,pointerEvents:i.value?"none":Af,position:i.value?"absolute":Af});const x={};return i.value&&(x["aria-hidden"]=!0),p.createVNode(cf,{disabled:!d,onResize:w=>{let{offsetWidth:T}=w;o(T)}},{default:()=>p.createVNode(y,H(H(H({class:fe(!u&&l),style:S},x),b),{},{ref:a}),{default:()=>[O]})})}}});var vC=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 xpe=p.defineComponent({compatConfig:{MODE:3},name:"RawItem",inheritAttrs:!1,props:{component:Z.any,title:Z.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=Ope();return()=>{var a;if(!i.value){const{component:f="div"}=t,d=vC(t,["component"]);return p.createVNode(f,H(H({},d),r),{default:()=>[(a=n.default)===null||a===void 0?void 0:a.call(n)]})}const o=i.value,{className:s}=o,l=vC(o,["className"]),{class:u}=r,c=vC(r,["class"]);return p.createVNode(gC,{value:null},{default:()=>[p.createVNode(Cy,H(H(H({class:fe(s,u)},l),c),t),n)]})}}});var wpe=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 q8="responsive",K8="invalidate";function Cpe(t){return`+ ${t.length} ...`}const Tpe=()=>({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:Z.any,component:String,itemComponent:Z.any,onVisibleChange:Function,ssr:String,onMousedown:Function}),jo=p.defineComponent({name:"Overflow",inheritAttrs:!1,props:Tpe(),emits:["visibleChange"],setup(t,e){let{attrs:n,emit:r,slots:i}=e;const a=p.computed(()=>t.ssr==="full"),o=p.shallowRef(null),s=p.computed(()=>o.value||0),l=p.shallowRef(new Map),u=p.shallowRef(0),c=p.shallowRef(0),f=p.shallowRef(0),d=p.shallowRef(null),h=p.shallowRef(null),g=p.computed(()=>h.value===null&&a.value?Number.MAX_SAFE_INTEGER:h.value||0),v=p.shallowRef(!1),m=p.computed(()=>`${t.prefixCls}-item`),y=p.computed(()=>Math.max(u.value,c.value)),b=p.computed(()=>!!(t.data.length&&t.maxCount===q8)),_=p.computed(()=>t.maxCount===K8),O=p.computed(()=>b.value||typeof t.maxCount=="number"&&t.data.length>t.maxCount),S=p.computed(()=>{let M=t.data;return b.value?o.value===null&&a.value?M=t.data:M=t.data.slice(0,Math.min(t.data.length,s.value/t.itemWidth)):typeof t.maxCount=="number"&&(M=t.data.slice(0,t.maxCount)),M}),x=p.computed(()=>b.value?t.data.slice(g.value+1):t.data.slice(S.value.length)),w=(M,R)=>{var N;return typeof t.itemKey=="function"?t.itemKey(M):(N=t.itemKey&&(M==null?void 0:M[t.itemKey]))!==null&&N!==void 0?N:R},T=p.computed(()=>t.renderItem||(M=>M)),P=(M,R)=>{h.value=M,R||(v.value=M<t.data.length-1,r("visibleChange",M))},C=(M,R)=>{o.value=R.clientWidth},$=(M,R)=>{const N=new Map(l.value);R===null?N.delete(M):N.set(M,R),l.value=N},A=(M,R)=>{u.value=c.value,c.value=R},E=(M,R)=>{f.value=R},D=M=>l.value.get(w(S.value[M],M));return p.watch([s,l,c,f,()=>t.itemKey,S],()=>{if(s.value&&y.value&&S.value){let M=f.value;const R=S.value.length,N=R-1;if(!R){P(0),d.value=null;return}for(let V=0;V<R;V+=1){const L=D(V);if(L===void 0){P(V-1,!0);break}if(M+=L,N===0&&M<=s.value||V===N-1&&M+D(N)<=s.value){P(N),d.value=null;break}else if(M+y.value>s.value){P(V-1),d.value=M-L-f.value+c.value;break}}t.suffix&&D(0)+f.value>s.value&&(d.value=null)}}),()=>{const M=v.value&&!!x.value.length,{itemComponent:R,renderRawItem:N,renderRawRest:V,renderRest:L,prefixCls:z="rc-overflow",suffix:B,component:F="div",id:j,onMousedown:K}=t,{class:q,style:te}=n,X=wpe(n,["class","style"]);let ee={};d.value!==null&&b.value&&(ee={position:"absolute",left:`${d.value}px`,top:0});const G={prefixCls:m.value,responsive:b.value,component:R,invalidate:_.value},W=N?(oe,Se)=>{const _e=w(oe,Se);return p.createVNode(gC,{key:_e,value:I(I({},G),{order:Se,item:oe,itemKey:_e,registerSize:$,display:Se<=g.value})},{default:()=>[N(oe,Se)]})}:(oe,Se)=>{const _e=w(oe,Se);return p.createVNode(Cy,H(H({},G),{},{order:Se,key:_e,item:oe,renderItem:T.value,itemKey:_e,registerSize:$,display:Se<=g.value}),null)};let Q=()=>null;const J={order:M?g.value:Number.MAX_SAFE_INTEGER,className:`${m.value} ${m.value}-rest`,registerSize:A,display:M};if(V)V&&(Q=()=>p.createVNode(gC,{value:I(I({},G),J)},{default:()=>[V(x.value)]}));else{const oe=L||Cpe;Q=()=>p.createVNode(Cy,H(H({},G),J),{default:()=>typeof oe=="function"?oe(x.value):oe})}const ae=()=>{var oe;return p.createVNode(F,H({id:j,class:fe(!_.value&&z,q),style:te,onMousedown:K},X),{default:()=>[S.value.map(W),O.value?Q():null,B&&p.createVNode(Cy,H(H({},G),{},{order:g.value,class:`${m.value}-suffix`,registerSize:E,display:!0,style:ee}),{default:()=>B}),(oe=i.default)===null||oe===void 0?void 0:oe.call(i)]})};return p.createVNode(cf,{disabled:!b.value,onResize:C},{default:ae})}}});jo.Item=xpe,jo.RESPONSIVE=q8,jo.INVALIDATE=K8;const Ppe=Symbol("TreeSelectLegacyContextPropsKey");function mC(){return p.inject(Ppe,{})}const $pe={id:String,prefixCls:String,values:Z.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:Z.any,placeholder:Z.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:Z.oneOfType([Z.number,Z.string]),compositionStatus:Boolean,removeIcon:Z.any,choiceTransitionName:String,maxTagCount:Z.oneOfType([Z.number,Z.string]),maxTagTextLength:Number,maxTagPlaceholder:Z.any.def(()=>t=>`+ ${t.length} ...`),tagRender:Function,onToggleOpen:{type:Function},onRemove:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},J8=t=>{t.preventDefault(),t.stopPropagation()},Ape=p.defineComponent({name:"MultipleSelectSelector",inheritAttrs:!1,props:$pe,setup(t){const e=p.shallowRef(),n=p.shallowRef(0),r=p.shallowRef(!1),i=mC(),a=p.computed(()=>`${t.prefixCls}-selection`),o=p.computed(()=>t.open||t.mode==="tags"?t.searchValue:""),s=p.computed(()=>t.mode==="tags"||t.showSearch&&(t.open||r.value)),l=p.ref("");p.watchEffect(()=>{l.value=o.value}),p.onMounted(()=>{p.watch(l,()=>{n.value=e.value.scrollWidth},{flush:"post",immediate:!0})});function u(g,v,m,y,b){return p.createVNode("span",{class:fe(`${a.value}-item`,{[`${a.value}-item-disabled`]:m}),title:typeof g=="string"||typeof g=="number"?g.toString():void 0},[p.createVNode("span",{class:`${a.value}-item-content`},[v]),y&&p.createVNode(du,{class:`${a.value}-item-remove`,onMousedown:J8,onClick:b,customizeIcon:t.removeIcon},{default:()=>[p.createTextVNode("×")]})])}function c(g,v,m,y,b,_){var O;const S=w=>{J8(w),t.onToggleOpen(!open)};let x=_;return i.keyEntities&&(x=((O=i.keyEntities[g])===null||O===void 0?void 0:O.node)||{}),p.createVNode("span",{key:g,onMousedown:S},[t.tagRender({label:v,value:g,disabled:m,closable:y,onClose:b,option:x})])}function f(g){const{disabled:v,label:m,value:y,option:b}=g,_=!t.disabled&&!v;let O=m;if(typeof t.maxTagTextLength=="number"&&(typeof m=="string"||typeof m=="number")){const x=String(O);x.length>t.maxTagTextLength&&(O=`${x.slice(0,t.maxTagTextLength)}...`)}const S=x=>{var w;x&&x.stopPropagation(),(w=t.onRemove)===null||w===void 0||w.call(t,g)};return typeof t.tagRender=="function"?c(y,O,v,_,S,b):u(m,O,v,_,S)}function d(g){const{maxTagPlaceholder:v=y=>`+ ${y.length} ...`}=t,m=typeof v=="function"?v(g):v;return u(m,m,!1)}const h=g=>{const v=g.target.composing;l.value=g.target.value,v||t.onInputChange(g)};return()=>{const{id:g,prefixCls:v,values:m,open:y,inputRef:b,placeholder:_,disabled:O,autofocus:S,autocomplete:x,activeDescendantId:w,tabindex:T,compositionStatus:P,onInputPaste:C,onInputKeyDown:$,onInputMouseDown:A,onInputCompositionStart:E,onInputCompositionEnd:D}=t,M=p.createVNode("div",{class:`${a.value}-search`,style:{width:n.value+"px"},key:"input"},[p.createVNode(Z8,{inputRef:b,open:y,prefixCls:v,id:g,inputElement:null,disabled:O,autofocus:S,autocomplete:x,editable:s.value,activeDescendantId:w,value:l.value,onKeydown:$,onMousedown:A,onChange:h,onPaste:C,onCompositionstart:E,onCompositionend:D,tabindex:T,attrs:wy(t,!0),onFocus:()=>r.value=!0,onBlur:()=>r.value=!1},null),p.createVNode("span",{ref:e,class:`${a.value}-search-mirror`,"aria-hidden":!0},[l.value,p.createTextVNode(" ")])]),R=p.createVNode(jo,{prefixCls:`${a.value}-overflow`,data:m,renderItem:f,renderRest:d,suffix:M,itemKey:"key",maxCount:t.maxTagCount,key:"overflow"},null);return p.createVNode(p.Fragment,null,[R,!m.length&&!o.value&&!P&&p.createVNode("span",{class:`${a.value}-placeholder`},[_])])}}}),Epe={inputElement:Z.any,id:String,prefixCls:String,values:Z.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:Z.any,placeholder:Z.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:Z.oneOfType([Z.number,Z.string]),activeValue:String,backfill:{type:Boolean,default:void 0},optionLabelRender:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},yC=p.defineComponent({name:"SingleSelector",setup(t){const e=p.shallowRef(!1),n=p.computed(()=>t.mode==="combobox"),r=p.computed(()=>n.value||t.showSearch),i=p.computed(()=>{let c=t.searchValue||"";return n.value&&t.activeValue&&!e.value&&(c=t.activeValue),c}),a=mC();p.watch([n,()=>t.activeValue],()=>{n.value&&(e.value=!1)},{immediate:!0});const o=p.computed(()=>t.mode!=="combobox"&&!t.open&&!t.showSearch?!1:!!i.value||t.compositionStatus),s=p.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=o.value?{visibility:"hidden"}:void 0;return p.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,h;const{inputElement:g,prefixCls:v,id:m,values:y,inputRef:b,disabled:_,autofocus:O,autocomplete:S,activeDescendantId:x,open:w,tabindex:T,optionLabelRender:P,onInputKeyDown:C,onInputMouseDown:$,onInputPaste:A,onInputCompositionStart:E,onInputCompositionEnd:D}=t,M=y[0];let R=null;if(M&&a.customSlots){const N=(c=M.key)!==null&&c!==void 0?c:M.value,V=((f=a.keyEntities[N])===null||f===void 0?void 0:f.node)||{};R=a.customSlots[(d=V.slots)===null||d===void 0?void 0:d.title]||a.customSlots.title||M.label,typeof R=="function"&&(R=R(V))}else R=P&&M?P(M.option):M==null?void 0:M.label;return p.createVNode(p.Fragment,null,[p.createVNode("span",{class:`${v}-selection-search`},[p.createVNode(Z8,{inputRef:b,prefixCls:v,id:m,open:w,inputElement:g,disabled:_,autofocus:O,autocomplete:S,editable:r.value,activeDescendantId:x,value:i.value,onKeydown:C,onMousedown:$,onChange:u,onPaste:A,onCompositionstart:E,onCompositionend:D,tabindex:T,attrs:wy(t,!0)},null)]),!n.value&&M&&!o.value&&p.createVNode("span",{class:`${v}-selection-item`,title:s.value},[p.createVNode(p.Fragment,{key:(h=M.key)!==null&&h!==void 0?h:M.value},[R])]),l()])}}});yC.props=Epe,yC.inheritAttrs=!1;function Mpe(t){return![le.ESC,le.SHIFT,le.BACKSPACE,le.TAB,le.WIN_KEY,le.ALT,le.META,le.WIN_KEY_RIGHT,le.CTRL,le.SEMICOLON,le.EQUALS,le.CAPS_LOCK,le.CONTEXT_MENU,le.F1,le.F2,le.F3,le.F4,le.F5,le.F6,le.F7,le.F8,le.F9,le.F10,le.F11,le.F12].includes(t)}function e5(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,e=null,n;p.onBeforeUnmount(()=>{clearTimeout(n)});function r(i){(i||e===null)&&(e=i),clearTimeout(n),n=setTimeout(()=>{e=null},t)}return[()=>e,r]}function wp(){const t=e=>{t.current=e};return t}const Ipe=p.defineComponent({name:"Selector",inheritAttrs:!1,props:{id:String,prefixCls:String,showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},values:Z.array,multiple:{type:Boolean,default:void 0},mode:String,searchValue:String,activeValue:String,inputElement:Z.any,autofocus:{type:Boolean,default:void 0},activeDescendantId:String,tabindex:Z.oneOfType([Z.number,Z.string]),disabled:{type:Boolean,default:void 0},placeholder:Z.any,removeIcon:Z.any,maxTagCount:Z.oneOfType([Z.number,Z.string]),maxTagTextLength:Number,maxTagPlaceholder:Z.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=wp(),i=p.ref(!1),[a,o]=e5(0),s=y=>{const{which:b}=y;(b===le.UP||b===le.DOWN)&&y.preventDefault(),t.onInputKeyDown&&t.onInputKeyDown(y),b===le.ENTER&&t.mode==="tags"&&!i.value&&!t.open&&t.onSearchSubmit(y.target.value),Mpe(b)&&t.onToggleOpen(!0)},l=()=>{o(!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)},h=y=>{let{target:{value:b}}=y;if(t.tokenWithEnter&&u&&/[\r\n]/.test(u)){const _=u.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");b=b.replace(_,u)}u=null,c(b)},g=y=>{const{clipboardData:b}=y;u=b.getData("text")},v=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=a();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:_}=t,O={inputRef:r,onInputKeyDown:s,onInputMouseDown:l,onInputChange:h,onInputPaste:g,compositionStatus:i.value,onInputCompositionStart:f,onInputCompositionEnd:d},S=_==="multiple"||_==="tags"?p.createVNode(Ape,H(H({},t),O),null):p.createVNode(yC,H(H({},t),O),null);return p.createVNode("div",{ref:b,class:`${y}-selector`,onClick:v,onMousedown:m},[S])}}});function Dpe(t,e,n){function r(i){var a,o,s;let l=i.target;l.shadowRoot&&i.composed&&(l=i.composedPath()[0]||l);const u=[(a=t[0])===null||a===void 0?void 0:a.value,(s=(o=t[1])===null||o===void 0?void 0:o.value)===null||s===void 0?void 0:s.getPopupElement()];e.value&&u.every(c=>c&&!c.contains(l)&&c!==l)&&n(!1)}p.onMounted(()=>{window.addEventListener("mousedown",r)}),p.onBeforeUnmount(()=>{window.removeEventListener("mousedown",r)})}function Rpe(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10;const e=p.shallowRef(!1);let n;const r=()=>{clearTimeout(n)};return p.onMounted(()=>{r()}),[e,(a,o)=>{r(),n=setTimeout(()=>{e.value=a,o&&o()},t)},r]}const t5=Symbol("BaseSelectContextKey");function kpe(t){return p.provide(t5,t)}function Npe(){return p.inject(t5,{})}const bC=()=>{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 n5(t){if(!p.isRef(t))return p.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 p.reactive(e)}var Lpe=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 Vpe=["value","onChange","removeIcon","placeholder","autofocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabindex","OptionList","notFoundContent"],Bpe=()=>({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:Z.any,emptyOptions:Boolean}),r5=()=>({showSearch:{type:Boolean,default:void 0},tagRender:{type:Function},optionLabelRender:{type:Function},direction:{type:String},tabindex:Number,autofocus:Boolean,notFoundContent:Z.any,placeholder:Z.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:Z.any,tokenSeparators:{type:Array},allowClear:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},inputIcon:Z.any,clearIcon:Z.any,removeIcon:Z.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}),zpe=()=>I(I({},Bpe()),r5());function _C(t){return t==="tags"||t==="multiple"}const Fpe=p.defineComponent({compatConfig:{MODE:3},name:"BaseSelect",inheritAttrs:!1,props:Dn(zpe(),{showAction:[],notFoundContent:"Not Found"}),setup(t,e){let{attrs:n,expose:r,slots:i}=e;const a=p.computed(()=>_C(t.mode)),o=p.computed(()=>t.showSearch!==void 0?t.showSearch:a.value||t.mode==="combobox"),s=p.shallowRef(!1);p.onMounted(()=>{s.value=bC()});const l=mC(),u=p.shallowRef(null),c=wp(),f=p.shallowRef(null),d=p.shallowRef(null),h=p.shallowRef(null),g=p.ref(!1),[v,m,y]=Rpe();r({focus:()=>{var W;(W=d.value)===null||W===void 0||W.focus()},blur:()=>{var W;(W=d.value)===null||W===void 0||W.blur()},scrollTo:W=>{var Q;return(Q=h.value)===null||Q===void 0?void 0:Q.scrollTo(W)}});const O=p.computed(()=>{var W;if(t.mode!=="combobox")return t.searchValue;const Q=(W=t.displayValues[0])===null||W===void 0?void 0:W.value;return typeof Q=="string"||typeof Q=="number"?String(Q):""}),S=t.open!==void 0?t.open:t.defaultOpen,x=p.shallowRef(S),w=p.shallowRef(S),T=W=>{x.value=t.open!==void 0?t.open:W,w.value=x.value};p.watch(()=>t.open,()=>{T(t.open)});const P=p.computed(()=>!t.notFoundContent&&t.emptyOptions);p.watchEffect(()=>{w.value=x.value,(t.disabled||P.value&&w.value&&t.mode==="combobox")&&(w.value=!1)});const C=p.computed(()=>P.value?!1:w.value),$=W=>{const Q=W!==void 0?W:!w.value;w.value!==Q&&!t.disabled&&(T(Q),t.onDropdownVisibleChange&&t.onDropdownVisibleChange(Q))},A=p.computed(()=>(t.tokenSeparators||[]).some(W=>[`
  65. `,`\r
  66. `].includes(W))),E=(W,Q,J)=>{var ae,oe;let Se=!0,_e=W;(ae=t.onActiveValueChange)===null||ae===void 0||ae.call(t,null);const ge=J?null:Vce(W,t.tokenSeparators);return t.mode!=="combobox"&&ge&&(_e="",(oe=t.onSearchSplit)===null||oe===void 0||oe.call(t,ge),$(!1),Se=!1),t.onSearch&&O.value!==_e&&t.onSearch(_e,{source:Q?"typing":"effect"}),Se},D=W=>{var Q;!W||!W.trim()||(Q=t.onSearch)===null||Q===void 0||Q.call(t,W,{source:"submit"})};p.watch(w,()=>{!w.value&&!a.value&&t.mode!=="combobox"&&E("",!1,!1)},{immediate:!0,flush:"post"}),p.watch(()=>t.disabled,()=>{x.value&&t.disabled&&T(!1),t.disabled&&!g.value&&m(!1)},{immediate:!0});const[M,R]=e5(),N=function(W){var Q;const J=M(),{which:ae}=W;if(ae===le.ENTER&&(t.mode!=="combobox"&&W.preventDefault(),w.value||$(!0)),R(!!O.value),ae===le.BACKSPACE&&!J&&a.value&&!O.value&&t.displayValues.length){const ge=[...t.displayValues];let de=null;for(let se=ge.length-1;se>=0;se-=1){const ye=ge[se];if(!ye.disabled){ge.splice(se,1),de=ye;break}}de&&t.onDisplayValuesChange(ge,{type:"remove",values:[de]})}for(var oe=arguments.length,Se=new Array(oe>1?oe-1:0),_e=1;_e<oe;_e++)Se[_e-1]=arguments[_e];w.value&&h.value&&h.value.onKeydown(W,...Se),(Q=t.onKeydown)===null||Q===void 0||Q.call(t,W,...Se)},V=function(W){for(var Q=arguments.length,J=new Array(Q>1?Q-1:0),ae=1;ae<Q;ae++)J[ae-1]=arguments[ae];w.value&&h.value&&h.value.onKeyup(W,...J),t.onKeyup&&t.onKeyup(W,...J)},L=W=>{const Q=t.displayValues.filter(J=>J!==W);t.onDisplayValuesChange(Q,{type:"remove",values:[W]})},z=p.shallowRef(!1),B=function(){m(!0),t.disabled||(t.onFocus&&!z.value&&t.onFocus(...arguments),t.showAction&&t.showAction.includes("focus")&&$(!0)),z.value=!0},F=p.ref(!1),j=function(){if(F.value||(g.value=!0,m(!1,()=>{z.value=!1,g.value=!1,$(!1)}),t.disabled))return;const W=O.value;W&&(t.mode==="tags"?t.onSearch(W,{source:"submit"}):t.mode==="multiple"&&t.onSearch("",{source:"blur"})),t.onBlur&&t.onBlur(...arguments)},K=()=>{F.value=!0},q=()=>{F.value=!1};p.provide("VCSelectContainerEvent",{focus:B,blur:j});const te=[];p.onMounted(()=>{te.forEach(W=>clearTimeout(W)),te.splice(0,te.length)}),p.onBeforeUnmount(()=>{te.forEach(W=>clearTimeout(W)),te.splice(0,te.length)});const X=function(W){var Q,J;const{target:ae}=W,oe=(Q=f.value)===null||Q===void 0?void 0:Q.getPopupElement();if(oe&&oe.contains(ae)){const de=setTimeout(()=>{var se;const ye=te.indexOf(de);ye!==-1&&te.splice(ye,1),y(),!s.value&&!oe.contains(document.activeElement)&&((se=d.value)===null||se===void 0||se.focus())});te.push(de)}for(var Se=arguments.length,_e=new Array(Se>1?Se-1:0),ge=1;ge<Se;ge++)_e[ge-1]=arguments[ge];(J=t.onMousedown)===null||J===void 0||J.call(t,W,..._e)},ee=p.shallowRef(null),G=()=>{};return p.onMounted(()=>{p.watch(C,()=>{var W;if(C.value){const Q=Math.ceil((W=u.value)===null||W===void 0?void 0:W.offsetWidth);ee.value!==Q&&!Number.isNaN(Q)&&(ee.value=Q)}},{immediate:!0,flush:"post"})}),Dpe([u,f],C,$),kpe(n5(I(I({},p.toRefs(t)),{open:w,triggerOpen:C,showSearch:o,multiple:a,toggleOpen:$}))),()=>{const W=I(I({},t),n),{prefixCls:Q,id:J,open:ae,defaultOpen:oe,mode:Se,showSearch:_e,searchValue:ge,onSearch:de,allowClear:se,clearIcon:ye,showArrow:Ie,inputIcon:Xe,disabled:Ke,loading:yt,getInputElement:ue,getPopupContainer:Ve,placement:bt,animation:dn,transitionName:Gt,dropdownStyle:hr,dropdownClassName:Wa,dropdownMatchSelectWidth:S0,dropdownRender:x0,dropdownAlign:qx,showAction:QN,direction:ep,tokenSeparators:HN,tagRender:w0,optionLabelRender:jN,onPopupScroll:tp,onDropdownVisibleChange:Ose,onFocus:nht,onBlur:rht,onKeyup:iht,onKeydown:aht,onMousedown:oht,onClear:GN,omitDomProps:ZN,getRawInputElement:Sse,displayValues:Kx,onDisplayValuesChange:mdt,emptyOptions:ydt,activeDescendantId:bdt,activeValue:_dt,OptionList:Odt}=W,Sdt=Lpe(W,["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"]),xse=Se==="combobox"&&ue&&ue()||null,C0=typeof Sse=="function"&&Sse(),UN=I({},Sdt);let wse;C0&&(wse=of=>{$(of)}),Vpe.forEach(of=>{delete UN[of]}),ZN==null||ZN.forEach(of=>{delete UN[of]});const Cse=Ie!==void 0?Ie:yt||!a.value&&Se!=="combobox";let Tse;Cse&&(Tse=p.createVNode(du,{class:fe(`${Q}-arrow`,{[`${Q}-arrow-loading`]:yt}),customizeIcon:Xe,customizeIconProps:{loading:yt,searchValue:O.value,open:w.value,focused:v.value,showSearch:o.value}},null));let Pse;const xdt=()=>{GN==null||GN(),mdt([],{type:"clear",values:Kx}),E("",!1,!1)};!Ke&&se&&(Kx.length||O.value)&&(Pse=p.createVNode(du,{class:`${Q}-clear`,onMousedown:xdt,customizeIcon:ye},{default:()=>[p.createTextVNode("×")]}));const wdt=p.createVNode(Odt,{ref:h},I(I({},l.customSlots),{option:i.option})),Cdt=fe(Q,n.class,{[`${Q}-focused`]:v.value,[`${Q}-multiple`]:a.value,[`${Q}-single`]:!a.value,[`${Q}-allow-clear`]:se,[`${Q}-show-arrow`]:Cse,[`${Q}-disabled`]:Ke,[`${Q}-loading`]:yt,[`${Q}-open`]:w.value,[`${Q}-customize-input`]:xse,[`${Q}-show-search`]:o.value}),$se=p.createVNode(dpe,{ref:f,disabled:Ke,prefixCls:Q,visible:C.value,popupElement:wdt,containerWidth:ee.value,animation:dn,transitionName:Gt,dropdownStyle:hr,dropdownClassName:Wa,direction:ep,dropdownMatchSelectWidth:S0,dropdownRender:x0,dropdownAlign:qx,placement:bt,getPopupContainer:Ve,empty:ydt,getTriggerDOMNode:()=>c.current,onPopupVisibleChange:wse,onPopupMouseEnter:G,onPopupFocusin:K,onPopupFocusout:q},{default:()=>C0?ei(C0)&&en(C0,{ref:c},!1,!0):p.createVNode(Ipe,H(H({},t),{},{domRef:c,prefixCls:Q,inputElement:xse,ref:d,id:J,showSearch:o.value,mode:Se,activeDescendantId:bdt,tagRender:w0,optionLabelRender:jN,values:Kx,open:w.value,onToggleOpen:$,activeValue:_dt,searchValue:O.value,onSearch:E,onSearchSubmit:D,onRemove:L,tokenWithEnter:A.value}),null)});let XN;return C0?XN=$se:XN=p.createVNode("div",H(H({},UN),{},{class:Cdt,ref:u,onMousedown:X,onKeydown:N,onKeyup:V}),[v.value&&!w.value&&p.createVNode("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},[`${Kx.map(of=>{let{label:Ase,value:Tdt}=of;return["number","string"].includes(typeof Ase)?Ase:Tdt}).join(", ")}`]),$se,Tse,Pse]),XN}}}),Ty=(t,e)=>{let{height:n,offset:r,prefixCls:i,onInnerResize:a}=t,{slots:o}=e;var s;let l={},u={display:"flex",flexDirection:"column"};return r!==void 0&&(l={height:`${n}px`,position:"relative",overflow:"hidden"},u=I(I({},u),{transform:`translateY(${r}px)`,position:"absolute",left:0,right:0,top:0})),p.createVNode("div",{style:l},[p.createVNode(cf,{onResize:c=>{let{offsetHeight:f}=c;f&&a&&a()}},{default:()=>[p.createVNode("div",{style:u,class:fe({[`${i}-holder-inner`]:i})},[(s=o.default)===null||s===void 0?void 0:s.call(o)])]})])};Ty.displayName="Filter",Ty.inheritAttrs=!1,Ty.props={prefixCls:String,height:Number,offset:Number,onInnerResize:Function};const i5=(t,e)=>{let{setRef:n}=t,{slots:r}=e;var i;const a=bn((i=r.default)===null||i===void 0?void 0:i.call(r));return a&&a.length?p.cloneVNode(a[0],{ref:n}):a};i5.props={setRef:{type:Function,default:()=>{}}};const Wpe=20;function a5(t){return"touches"in t?t.touches[0].pageY:t.pageY}const Qpe=p.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:wp(),thumbRef:wp(),visibleTimeout:null,state:p.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,Bn?{passive:!1}:!1),(e=this.thumbRef.current)===null||e===void 0||e.addEventListener("touchstart",this.onMouseDown,Bn?{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,Bn?{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,Bn?{passive:!1}:!1),this.thumbRef.current&&(this.thumbRef.current.removeEventListener("touchstart",this.onMouseDown,Bn?{passive:!1}:!1),this.thumbRef.current.removeEventListener("touchmove",this.onMouseMove,Bn?{passive:!1}:!1),this.thumbRef.current.removeEventListener("touchend",this.onMouseUp)),at.cancel(this.moveRaf)},onMouseDown(t){const{onStartMove:e}=this.$props;I(this.state,{dragging:!0,pageY:a5(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(at.cancel(this.moveRaf),e){const a=a5(t)-n,o=r+a,s=this.getEnableScrollRange(),l=this.getEnableHeightRange(),u=l?o/l:0,c=Math.ceil(u*s);this.moveRaf=at(()=>{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,Wpe),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",a=this.showScroll(),o=a&&e;return p.createVNode("div",{ref:this.scrollbarRef,class:fe(`${n}-scrollbar`,{[`${n}-scrollbar-show`]:a}),style:{width:"8px",top:0,bottom:0,right:0,position:"absolute",display:o?void 0:"none"},onMousedown:this.onContainerMouseDown,onMousemove:this.delayHidden},[p.createVNode("div",{ref:this.thumbRef,class:fe(`${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 Hpe(t,e,n,r){const i=new Map,a=new Map,o=p.ref(Symbol("update"));p.watch(t,()=>{o.value=Symbol("update")});let s;function l(){at.cancel(s)}function u(){l(),s=at(()=>{i.forEach((f,d)=>{if(f&&f.offsetParent){const{offsetHeight:h}=f;a.get(d)!==h&&(o.value=Symbol("update"),a.set(d,f.offsetHeight))}})})}function c(f,d){const h=e(f);i.get(h),d?(i.set(h,d.$el||d),u()):i.delete(h)}return p.onUnmounted(()=>{l()}),[c,u,a,o]}function jpe(t,e,n,r,i,a,o,s){let l;return u=>{if(u==null){s();return}at.cancel(l);const c=e.value,f=r.itemHeight;if(typeof u=="number")o(u);else if(u&&typeof u=="object"){let d;const{align:h}=u;"index"in u?{index:d}=u:d=c.findIndex(m=>i(m)===u.key);const{offset:g=0}=u,v=(m,y)=>{if(m<0||!t.value)return;const b=t.value.clientHeight;let _=!1,O=y;if(b){const S=y||h;let x=0,w=0,T=0;const P=Math.min(c.length,d);for(let A=0;A<=P;A+=1){const E=i(c[A]);w=x;const D=n.get(E);T=w+(D===void 0?f:D),x=T,A===d&&D===void 0&&(_=!0)}const C=t.value.scrollTop;let $=null;switch(S){case"top":$=w-g;break;case"bottom":$=T-b+g;break;default:{const A=C+b;w<C?O="top":T>A&&(O="bottom")}}$!==null&&$!==C&&o($)}l=at(()=>{_&&a(),v(m-1,O)},2)};v(5)}}}const Gpe=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),o5=(t,e)=>{let n=!1,r=null;function i(){clearTimeout(r),n=!0,r=setTimeout(()=>{n=!1},50)}return function(a){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const s=a<0&&t.value||a>0&&e.value;return o&&s?(clearTimeout(r),n=!1):(!s||n)&&i(),!n&&s}};function Zpe(t,e,n,r){let i=0,a=null,o=null,s=!1;const l=o5(e,n);function u(f){if(!t.value)return;at.cancel(a);const{deltaY:d}=f;i+=d,o=d,!l(d)&&(Gpe||f.preventDefault(),a=at(()=>{r(i*(s?10:1)),i=0}))}function c(f){t.value&&(s=f.detail===o)}return[u,c]}const Upe=14/15;function Xpe(t,e,n){let r=!1,i=0,a=null,o=null;const s=()=>{a&&(a.removeEventListener("touchmove",l),a.removeEventListener("touchend",u))},l=d=>{if(r){const h=Math.ceil(d.touches[0].pageY);let g=i-h;i=h,n(g)&&d.preventDefault(),clearInterval(o),o=setInterval(()=>{g*=Upe,(!n(g,!0)||Math.abs(g)<=.1)&&clearInterval(o)},16)}},u=()=>{r=!1,s()},c=d=>{s(),d.touches.length===1&&!r&&(r=!0,i=Math.ceil(d.touches[0].pageY),a=d.target,a.addEventListener("touchmove",l,{passive:!1}),a.addEventListener("touchend",u))},f=()=>{};p.onMounted(()=>{document.addEventListener("touchmove",f,{passive:!1}),p.watch(t,d=>{e.value.removeEventListener("touchstart",c),s(),clearInterval(o),d&&e.value.addEventListener("touchstart",c,{passive:!1})},{immediate:!0})}),p.onBeforeUnmount(()=>{document.removeEventListener("touchmove",f)})}var Ype=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 qpe=[],Kpe={overflowY:"auto",overflowAnchor:"none"};function Jpe(t,e,n,r,i,a){let{getKey:o}=a;return t.slice(e,n+1).map((s,l)=>{const u=e+l,c=i(s,u,{}),f=o(s);return p.createVNode(i5,{key:f,setRef:d=>r(s,d)},{default:()=>[c]})})}const ege=p.defineComponent({compatConfig:{MODE:3},name:"List",inheritAttrs:!1,props:{prefixCls:String,data:Z.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=p.computed(()=>{const{height:L,itemHeight:z,virtual:B}=t;return!!(B!==!1&&L&&z)}),i=p.computed(()=>{const{height:L,itemHeight:z,data:B}=t;return r.value&&B&&z*B.length>L}),a=p.reactive({scrollTop:0,scrollMoving:!1}),o=p.computed(()=>t.data||qpe),s=p.shallowRef([]);p.watch(o,()=>{s.value=p.toRaw(o.value).slice()},{immediate:!0});const l=p.shallowRef(L=>{});p.watch(()=>t.itemKey,L=>{typeof L=="function"?l.value=L:l.value=z=>z==null?void 0:z[L]},{immediate:!0});const u=p.shallowRef(),c=p.shallowRef(),f=p.shallowRef(),d=L=>l.value(L),h={getKey:d};function g(L){let z;typeof L=="function"?z=L(a.scrollTop):z=L;const B=x(z);u.value&&(u.value.scrollTop=B),a.scrollTop=B}const[v,m,y,b]=Hpe(s,d),_=p.reactive({scrollHeight:void 0,start:0,end:0,offset:void 0}),O=p.shallowRef(0);p.onMounted(()=>{p.nextTick(()=>{var L;O.value=((L=c.value)===null||L===void 0?void 0:L.offsetHeight)||0})}),p.onUpdated(()=>{p.nextTick(()=>{var L;O.value=((L=c.value)===null||L===void 0?void 0:L.offsetHeight)||0})}),p.watch([r,s],()=>{r.value||I(_,{scrollHeight:void 0,start:0,end:s.value.length-1,offset:void 0})},{immediate:!0}),p.watch([r,s,O,i],()=>{r.value&&!i.value&&I(_,{scrollHeight:O.value,start:0,end:s.value.length-1,offset:void 0}),u.value&&(a.scrollTop=u.value.scrollTop)},{immediate:!0}),p.watch([i,r,()=>a.scrollTop,s,b,()=>t.height,O],()=>{if(!r.value||!i.value)return;let L=0,z,B,F;const j=s.value.length,K=s.value,q=a.scrollTop,{itemHeight:te,height:X}=t,ee=q+X;for(let G=0;G<j;G+=1){const W=K[G],Q=d(W);let J=y.get(Q);J===void 0&&(J=te);const ae=L+J;z===void 0&&ae>=q&&(z=G,B=L),F===void 0&&ae>ee&&(F=G),L=ae}z===void 0&&(z=0,B=0,F=Math.ceil(X/te)),F===void 0&&(F=j-1),F=Math.min(F+1,j),I(_,{scrollHeight:L,start:z,end:F,offset:B})},{immediate:!0});const S=p.computed(()=>_.scrollHeight-t.height);function x(L){let z=L;return Number.isNaN(S.value)||(z=Math.min(z,S.value)),z=Math.max(z,0),z}const w=p.computed(()=>a.scrollTop<=0),T=p.computed(()=>a.scrollTop>=S.value),P=o5(w,T);function C(L){g(L)}function $(L){var z;const{scrollTop:B}=L.currentTarget;B!==a.scrollTop&&g(B),(z=t.onScroll)===null||z===void 0||z.call(t,L)}const[A,E]=Zpe(r,w,T,L=>{g(z=>z+L)});Xpe(r,u,(L,z)=>P(L,z)?!1:(A({preventDefault(){},deltaY:L}),!0));function D(L){r.value&&L.preventDefault()}const M=()=>{u.value&&(u.value.removeEventListener("wheel",A,Bn?{passive:!1}:!1),u.value.removeEventListener("DOMMouseScroll",E),u.value.removeEventListener("MozMousePixelScroll",D))};p.watchEffect(()=>{p.nextTick(()=>{u.value&&(M(),u.value.addEventListener("wheel",A,Bn?{passive:!1}:!1),u.value.addEventListener("DOMMouseScroll",E),u.value.addEventListener("MozMousePixelScroll",D))})}),p.onBeforeUnmount(()=>{M()});const R=jpe(u,s,y,t,d,m,g,()=>{var L;(L=f.value)===null||L===void 0||L.delayHidden()});n({scrollTo:R});const N=p.computed(()=>{let L=null;return t.height&&(L=I({[t.fullHeight?"height":"maxHeight"]:t.height+"px"},Kpe),r.value&&(L.overflowY="hidden",a.scrollMoving&&(L.pointerEvents="none"))),L});return p.watch([()=>_.start,()=>_.end,s],()=>{if(t.onVisibleChange){const L=s.value.slice(_.start,_.end+1);t.onVisibleChange(L,s.value)}},{flush:"post"}),{state:a,mergedData:s,componentStyle:N,onFallbackScroll:$,onScrollBar:C,componentRef:u,useVirtual:r,calRes:_,collectHeight:m,setInstance:v,sharedConfig:h,scrollBarRef:f,fillerInnerRef:c,delayHideScrollBar:()=>{var L;(L=f.value)===null||L===void 0||L.delayHidden()}}},render(){const t=I(I({},this.$props),this.$attrs),{prefixCls:e="rc-virtual-list",height:n,itemHeight:r,fullHeight:i,data:a,itemKey:o,virtual:s,component:l="div",onScroll:u,children:c=this.$slots.default,style:f,class:d}=t,h=Ype(t,["prefixCls","height","itemHeight","fullHeight","data","itemKey","virtual","component","onScroll","children","style","class"]),g=fe(e,d),{scrollTop:v}=this.state,{scrollHeight:m,offset:y,start:b,end:_}=this.calRes,{componentStyle:O,onFallbackScroll:S,onScrollBar:x,useVirtual:w,collectHeight:T,sharedConfig:P,setInstance:C,mergedData:$,delayHideScrollBar:A}=this;return p.createVNode("div",H({style:I(I({},f),{position:"relative"}),class:g},h),[p.createVNode(l,{class:`${e}-holder`,style:O,ref:"componentRef",onScroll:S,onMouseenter:A},{default:()=>[p.createVNode(Ty,{prefixCls:e,height:m,offset:y,onInnerResize:T,ref:"fillerInnerRef"},{default:()=>Jpe($,b,_,C,c,P)})]}),w&&p.createVNode(Qpe,{ref:"scrollBarRef",prefixCls:e,scrollTop:v,height:n,scrollHeight:m,count:$.length,onScroll:x,onStartMove:()=>{this.state.scrollMoving=!0},onStopMove:()=>{this.state.scrollMoving=!1}},null)])}});function tge(t,e,n){const r=p.ref(t());return p.watch(e,(i,a)=>{n?n(i,a)&&(r.value=t()):r.value=t()}),r}function nge(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}const s5=Symbol("SelectContextKey");function rge(t){return p.provide(s5,t)}function ige(){return p.inject(s5,{})}var age=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 l5(t){return typeof t=="string"||typeof t=="number"}const oge=p.defineComponent({compatConfig:{MODE:3},name:"OptionList",inheritAttrs:!1,setup(t,e){let{expose:n,slots:r}=e;const i=Npe(),a=ige(),o=p.computed(()=>`${i.prefixCls}-item`),s=tge(()=>a.flattenOptions,[()=>i.open,()=>a.flattenOptions],S=>S[0]),l=wp(),u=S=>{S.preventDefault()},c=S=>{l.current&&l.current.scrollTo(typeof S=="number"?{index:S}:S)},f=function(S){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const w=s.value.length;for(let T=0;T<w;T+=1){const P=(S+T*x+w)%w,{group:C,data:$}=s.value[P];if(!C&&!$.disabled)return P}return-1},d=p.reactive({activeIndex:f(0)}),h=function(S){let x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;d.activeIndex=S;const w={source:x?"keyboard":"mouse"},T=s.value[S];if(!T){a.onActiveValue(null,-1,w);return}a.onActiveValue(T.value,S,w)};p.watch([()=>s.value.length,()=>i.searchValue],()=>{h(a.defaultActiveFirstOption!==!1?f(0):-1)},{immediate:!0});const g=S=>a.rawValues.has(S)&&i.mode!=="combobox";p.watch([()=>i.open,()=>i.searchValue],()=>{if(!i.multiple&&i.open&&a.rawValues.size===1){const S=Array.from(a.rawValues)[0],x=p.toRaw(s.value).findIndex(w=>{let{data:T}=w;return T[a.fieldNames.value]===S});x!==-1&&(h(x),p.nextTick(()=>{c(x)}))}i.open&&p.nextTick(()=>{var S;(S=l.current)===null||S===void 0||S.scrollTo(void 0)})},{immediate:!0,flush:"post"});const v=S=>{S!==void 0&&a.onSelect(S,{selected:!a.rawValues.has(S)}),i.multiple||i.toggleOpen(!1)},m=S=>typeof S.label=="function"?S.label():S.label;function y(S){const x=s.value[S];if(!x)return null;const w=x.data||{},{value:T}=w,{group:P}=x,C=wy(w,!0),$=m(x);return x?p.createVNode("div",H(H({"aria-label":typeof $=="string"&&!P?$:null},C),{},{key:S,role:P?"presentation":"option",id:`${i.id}_list_${S}`,"aria-selected":g(T)}),[T]):null}return n({onKeydown:S=>{const{which:x,ctrlKey:w}=S;switch(x){case le.N:case le.P:case le.UP:case le.DOWN:{let T=0;if(x===le.UP?T=-1:x===le.DOWN?T=1:nge()&&w&&(x===le.N?T=1:x===le.P&&(T=-1)),T!==0){const P=f(d.activeIndex+T,T);c(P),h(P,!0)}break}case le.ENTER:{const T=s.value[d.activeIndex];T&&!T.data.disabled?v(T.value):v(void 0),i.open&&S.preventDefault();break}case le.ESC:i.toggleOpen(!1),i.open&&S.stopPropagation()}},onKeyup:()=>{},scrollTo:S=>{c(S)}}),()=>{const{id:S,notFoundContent:x,onPopupScroll:w}=i,{menuItemSelectedIcon:T,fieldNames:P,virtual:C,listHeight:$,listItemHeight:A}=a,E=r.option,{activeIndex:D}=d,M=Object.keys(P).map(R=>P[R]);return s.value.length===0?p.createVNode("div",{role:"listbox",id:`${S}_list`,class:`${o.value}-empty`,onMousedown:u},[x]):p.createVNode(p.Fragment,null,[p.createVNode("div",{role:"listbox",id:`${S}_list`,style:{height:0,width:0,overflow:"hidden"}},[y(D-1),y(D),y(D+1)]),p.createVNode(ege,{itemKey:"key",ref:l,data:s.value,height:$,itemHeight:A,fullHeight:!1,onMousedown:u,onScroll:w,virtual:C},{default:(R,N)=>{var V;const{group:L,groupOption:z,data:B,value:F}=R,{key:j}=B,K=typeof R.label=="function"?R.label():R.label;if(L){const ye=(V=B.title)!==null&&V!==void 0?V:l5(K)&&K;return p.createVNode("div",{class:fe(o.value,`${o.value}-group`),title:ye},[E?E(B):K!==void 0?K:j])}const{disabled:q,title:te,children:X,style:ee,class:G,className:W}=B,Q=age(B,["disabled","title","children","style","class","className"]),J=Rn(Q,M),ae=g(F),oe=`${o.value}-option`,Se=fe(o.value,oe,G,W,{[`${oe}-grouped`]:z,[`${oe}-active`]:D===N&&!q,[`${oe}-disabled`]:q,[`${oe}-selected`]:ae}),_e=m(R),ge=!T||typeof T=="function"||ae,de=typeof _e=="number"?_e:_e||F;let se=l5(de)?de.toString():void 0;return te!==void 0&&(se=te),p.createVNode("div",H(H({},J),{},{"aria-selected":ae,class:Se,title:se,onMousemove:ye=>{Q.onMousemove&&Q.onMousemove(ye),!(D===N||q)&&h(N)},onClick:ye=>{q||v(F),Q.onClick&&Q.onClick(ye)},style:ee}),[p.createVNode("div",{class:`${oe}-content`},[E?E(B):de]),ei(T)||ae,ge&&p.createVNode(du,{class:`${o.value}-option-state`,customizeIcon:T,customizeIconProps:{isSelected:ae}},{default:()=>[ae?"✓":null]})])}})])}}});var sge=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 lge(t){const e=t,{key:n,children:r}=e,i=e.props,{value:a,disabled:o}=i,s=sge(i,["value","disabled"]),l=r==null?void 0:r.default;return I({key:n,value:a!==void 0?a:n,children:l,disabled:o||o===""},s)}function OC(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return bn(t).map((r,i)=>{var a;if(!ei(r)||!r.type)return null;const{type:{isSelectOptGroup:o},key:s,children:l,props:u}=r;if(e||!o)return lge(r);const c=l&&l.default?l.default():void 0,f=(u==null?void 0:u.label)||((a=l.label)===null||a===void 0?void 0:a.call(l))||s;return I(I({key:`__RC_SELECT_GRP__${s===null?i:String(s)}__`},u),{label:f,options:OC(c||[])})}).filter(r=>r)}function uge(t,e,n){const r=p.shallowRef(),i=p.shallowRef(),a=p.shallowRef(),o=p.shallowRef([]);return p.watch([t,e],()=>{t.value?o.value=p.toRaw(t.value).slice():o.value=OC(e.value)},{immediate:!0,deep:!0}),p.watchEffect(()=>{const s=o.value,l=new Map,u=new Map,c=n.value;function f(d){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(let g=0;g<d.length;g+=1){const v=d[g];!v[c.options]||h?(l.set(v[c.value],v),u.set(v[c.label],v)):f(v[c.options],!0)}}f(s),r.value=s,i.value=l,a.value=u}),{options:r,valueOptions:i,labelOptions:a}}let u5=0;const cge=process.env.NODE_ENV!=="test"&&wi();function fge(){let t;return cge?(t=u5,u5+=1):t="TEST_OR_SSR",t}function dge(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:p.ref("");const e=`rc_select_${fge()}`;return t.value||e}function SC(t){return Array.isArray(t)?t:t!==void 0?[t]:[]}const hge=typeof window<"u"&&window.document&&window.document.documentElement;process.env.NODE_ENV;function pge(t){const{mode:e,options:n,children:r,backfill:i,allowClear:a,placeholder:o,getInputElement:s,showSearch:l,onSearch:u,defaultOpen:c,autofocus:f,labelInValue:d,value:h,inputValue:g,optionLabelProp:v}=t,m=_C(e),y=l!==void 0?l:m||e==="combobox",b=n||OC(r);if(Ci(e!=="tags"||b.every(_=>!_.disabled),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Ci(e!=="combobox"||!v,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Ci(e==="combobox"||!i,"`backfill` only works with `combobox` mode."),Ci(e==="combobox"||!s,"`getInputElement` only work with `combobox` mode."),ML(e!=="combobox"||!s||!a||!o,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),u&&!y&&e!=="combobox"&&e!=="tags"&&Ci(!1,"`onSearch` should work with `showSearch` instead of use alone."),ML(!c||f,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autofocus` if needed."),h!=null){const _=SC(h);Ci(!d||_.every(O=>typeof O=="object"&&("key"in O||"value"in O)),"`value` should in shape of `{ value: string | number, label?: any }` when you set `labelInValue` to `true`"),Ci(!m||Array.isArray(h),"`value` should be array when `mode` is `multiple` or `tags`")}if(r){let _=null;r.some(O=>{var S;if(!ei(O)||!O.type)return!1;const{type:x}=O;return x.isSelectOption?!1:x.isSelectOptGroup?!(((S=O.children)===null||S===void 0?void 0:S.default())||[]).every(P=>!ei(P)||!O.type||P.type.isSelectOption?!0:(_=P.type,!1)):(_=x,!0)}),_&&Ci(!1,`\`children\` should be \`Select.Option\` or \`Select.OptGroup\` instead of \`${_.displayName||_.name||_}\`.`),Ci(g===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function xC(t,e){return SC(t).join("").toUpperCase().includes(e)}const gge=(t,e,n,r,i)=>p.computed(()=>{const a=n.value,o=i==null?void 0:i.value,s=r==null?void 0:r.value;if(!a||s===!1)return t.value;const{options:l,label:u,value:c}=e.value,f=[],d=typeof s=="function",h=a.toUpperCase(),g=d?s:(m,y)=>o?xC(y[o],h):y[l]?xC(y[u!=="children"?u:"label"],h):xC(y[c],h),v=d?m=>Lw(m):m=>m;return t.value.forEach(m=>{if(m[l]){if(g(a,v(m)))f.push(m);else{const b=m[l].filter(_=>g(a,v(_)));b.length&&f.push(I(I({},m),{[l]:b}))}return}g(a,v(m))&&f.push(m)}),f}),vge=(t,e)=>{const n=p.shallowRef({values:new Map,options:new Map});return[p.computed(()=>{const{values:a,options:o}=n.value,s=t.value.map(c=>{var f;return c.label===void 0?I(I({},c),{label:(f=a.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)||o.get(c.value))}),n.value.values=l,n.value.options=u,s}),a=>e.value.get(a)||n.value.options.get(a)]};function Ef(t,e){const{defaultValue:n,value:r=p.ref()}=e||{};let i=typeof t=="function"?t():t;r.value!==void 0&&(i=p.unref(r)),n!==void 0&&(i=typeof n=="function"?n():n);const a=p.ref(i),o=p.ref(i);p.watchEffect(()=>{let l=r.value!==void 0?r.value:a.value;e.postState&&(l=e.postState(l)),o.value=l});function s(l){const u=o.value;a.value=l,p.toRaw(o.value)!==l&&e.onChange&&e.onChange(l,u)}return p.watch(r,()=>{a.value=r.value}),[o,s]}function Ft(t){const e=typeof t=="function"?t():t,n=p.ref(e);function r(i){n.value=i}return[n,r]}const mge=["inputValue"];function c5(){return I(I({},r5()),{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:Z.any,mode:String,labelInValue:{type:Boolean,default:void 0},value:Z.any,defaultValue:Z.any,onChange:Function,children:Array})}function yge(t){return!t||typeof t!="object"}const bge=p.defineComponent({compatConfig:{MODE:3},name:"VcSelect",inheritAttrs:!1,props:Dn(c5(),{prefixCls:"vc-select",autoClearSearchValue:!0,listHeight:200,listItemHeight:20,dropdownMatchSelectWidth:!0}),setup(t,e){let{expose:n,attrs:r,slots:i}=e;const a=dge(p.toRef(t,"id")),o=p.computed(()=>_C(t.mode)),s=p.computed(()=>!!(!t.options&&t.children)),l=p.computed(()=>t.filterOption===void 0&&t.mode==="combobox"?!1:t.filterOption),u=p.computed(()=>L4(t.fieldNames,s.value)),[c,f]=Ef("",{value:p.computed(()=>t.searchValue!==void 0?t.searchValue:t.inputValue),postState:G=>G||""}),d=uge(p.toRef(t,"options"),p.toRef(t,"children"),u),{valueOptions:h,labelOptions:g,options:v}=d,m=G=>SC(G).map(Q=>{var J,ae;let oe,Se,_e,ge;yge(Q)?oe=Q:(_e=Q.key,Se=Q.label,oe=(J=Q.value)!==null&&J!==void 0?J:_e);const de=h.value.get(oe);return de&&(Se===void 0&&(Se=de==null?void 0:de[t.optionLabelProp||u.value.label]),_e===void 0&&(_e=(ae=de==null?void 0:de.key)!==null&&ae!==void 0?ae:oe),ge=de==null?void 0:de.disabled),{label:Se,value:oe,key:_e,disabled:ge,option:de}}),[y,b]=Ef(t.defaultValue,{value:p.toRef(t,"value")}),_=p.computed(()=>{var G;const W=m(y.value);return t.mode==="combobox"&&!(!((G=W[0])===null||G===void 0)&&G.value)?[]:W}),[O,S]=vge(_,h),x=p.computed(()=>{if(!t.mode&&O.value.length===1){const G=O.value[0];if(G.value===null&&(G.label===null||G.label===void 0))return[]}return O.value.map(G=>{var W;return I(I({},G),{label:(W=typeof G.label=="function"?G.label():G.label)!==null&&W!==void 0?W:G.value})})}),w=p.computed(()=>new Set(O.value.map(G=>G.value)));p.watchEffect(()=>{var G;if(t.mode==="combobox"){const W=(G=O.value[0])===null||G===void 0?void 0:G.value;W!=null&&f(String(W))}},{flush:"post"});const T=(G,W)=>{const Q=W??G;return{[u.value.value]:G,[u.value.label]:Q}},P=p.shallowRef();p.watchEffect(()=>{if(t.mode!=="tags"){P.value=v.value;return}const G=v.value.slice(),W=Q=>h.value.has(Q);[...O.value].sort((Q,J)=>Q.value<J.value?-1:1).forEach(Q=>{const J=Q.value;W(J)||G.push(T(J,Q.label))}),P.value=G});const C=gge(P,u,c,l,p.toRef(t,"optionFilterProp")),$=p.computed(()=>t.mode!=="tags"||!c.value||C.value.some(G=>G[t.optionFilterProp||"value"]===c.value)?C.value:[T(c.value),...C.value]),A=p.computed(()=>t.filterSort?[...$.value].sort((G,W)=>t.filterSort(G,W)):$.value),E=p.computed(()=>Lce(A.value,{fieldNames:u.value,childrenAsData:s.value})),D=G=>{const W=m(G);if(b(W),t.onChange&&(W.length!==O.value.length||W.some((Q,J)=>{var ae;return((ae=O.value[J])===null||ae===void 0?void 0:ae.value)!==(Q==null?void 0:Q.value)}))){const Q=t.labelInValue?W.map(ae=>I(I({},ae),{originLabel:ae.label,label:typeof ae.label=="function"?ae.label():ae.label})):W.map(ae=>ae.value),J=W.map(ae=>Lw(S(ae.value)));t.onChange(o.value?Q:Q[0],o.value?J:J[0])}},[M,R]=Ft(null),[N,V]=Ft(0),L=p.computed(()=>t.defaultActiveFirstOption!==void 0?t.defaultActiveFirstOption:t.mode!=="combobox"),z=function(G,W){let{source:Q="keyboard"}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};V(W),t.backfill&&t.mode==="combobox"&&G!==null&&Q==="keyboard"&&R(String(G))},B=(G,W)=>{const Q=()=>{var J;const ae=S(G),oe=ae==null?void 0:ae[u.value.label];return[t.labelInValue?{label:typeof oe=="function"?oe():oe,originLabel:oe,value:G,key:(J=ae==null?void 0:ae.key)!==null&&J!==void 0?J:G}:G,Lw(ae)]};if(W&&t.onSelect){const[J,ae]=Q();t.onSelect(J,ae)}else if(!W&&t.onDeselect){const[J,ae]=Q();t.onDeselect(J,ae)}},F=(G,W)=>{let Q;const J=o.value?W.selected:!0;J?Q=o.value?[...O.value,G]:[G]:Q=O.value.filter(ae=>ae.value!==G),D(Q),B(G,J),t.mode==="combobox"?R(""):(!o.value||t.autoClearSearchValue)&&(f(""),R(""))},j=(G,W)=>{D(G),(W.type==="remove"||W.type==="clear")&&W.values.forEach(Q=>{B(Q.value,!1)})},K=(G,W)=>{var Q;if(f(G),R(null),W.source==="submit"){const J=(G||"").trim();if(J){const ae=Array.from(new Set([...w.value,J]));D(ae),B(J,!0),f("")}return}W.source!=="blur"&&(t.mode==="combobox"&&D(G),(Q=t.onSearch)===null||Q===void 0||Q.call(t,G))},q=G=>{let W=G;t.mode!=="tags"&&(W=G.map(J=>{const ae=g.value.get(J);return ae==null?void 0:ae.value}).filter(J=>J!==void 0));const Q=Array.from(new Set([...w.value,...W]));D(Q),Q.forEach(J=>{B(J,!0)})},te=p.computed(()=>t.virtual!==!1&&t.dropdownMatchSelectWidth!==!1);rge(n5(I(I({},d),{flattenOptions:E,onActiveValue:z,defaultActiveFirstOption:L,onSelect:F,menuItemSelectedIcon:p.toRef(t,"menuItemSelectedIcon"),rawValues:w,fieldNames:u,virtual:te,listHeight:p.toRef(t,"listHeight"),listItemHeight:p.toRef(t,"listItemHeight"),childrenAsData:s}))),process.env.NODE_ENV!=="production"&&p.watchEffect(()=>{pge(t)},{flush:"post"});const X=p.ref();n({focus(){var G;(G=X.value)===null||G===void 0||G.focus()},blur(){var G;(G=X.value)===null||G===void 0||G.blur()},scrollTo(G){var W;(W=X.value)===null||W===void 0||W.scrollTo(G)}});const ee=p.computed(()=>Rn(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()=>p.createVNode(Fpe,H(H(H({},ee.value),r),{},{id:a,prefixCls:t.prefixCls,ref:X,omitDomProps:mge,mode:t.mode,displayValues:x.value,onDisplayValuesChange:j,searchValue:c.value,onSearch:K,onSearchSplit:q,dropdownMatchSelectWidth:t.dropdownMatchSelectWidth,OptionList:oge,emptyOptions:!E.value.length,activeValue:M.value,activeDescendantId:`${a}_list_${N.value}`}),i)}}),wC=()=>null;wC.isSelectOption=!0,wC.displayName="ASelectOption";const CC=()=>null;CC.isSelectOptGroup=!0,CC.displayName="ASelectOptGroup";var _ge={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"},Oge=Symbol("iconContext"),f5=function(){return p.inject(Oge,{prefixCls:p.ref("anticon"),rootClassName:p.ref(""),csp:p.ref()})};function TC(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Sge(t,e){return t&&t.contains?t.contains(e):!1}var d5="data-vc-order",xge="vc-icon-key",PC=new Map;function h5(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=t.mark;return e?e.startsWith("data-")?e:"data-".concat(e):xge}function $C(t){if(t.attachTo)return t.attachTo;var e=document.querySelector("head");return e||document.body}function wge(t){return t==="queue"?"prependQueue":t?"prepend":"append"}function p5(t){return Array.from((PC.get(t)||t).children).filter(function(e){return e.tagName==="STYLE"})}function g5(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!TC())return null;var n=e.csp,r=e.prepend,i=document.createElement("style");i.setAttribute(d5,wge(r)),n&&n.nonce&&(i.nonce=n.nonce),i.innerHTML=t;var a=$C(e),o=a.firstChild;if(r){if(r==="queue"){var s=p5(a).filter(function(l){return["prepend","prependQueue"].includes(l.getAttribute(d5))});if(s.length)return a.insertBefore(i,s[s.length-1].nextSibling),i}a.insertBefore(i,o)}else a.appendChild(i);return i}function Cge(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=$C(e);return p5(n).find(function(r){return r.getAttribute(h5(e))===t})}function Tge(t,e){var n=PC.get(t);if(!n||!Sge(document,n)){var r=g5("",e),i=r.parentNode;PC.set(t,i),t.removeChild(r)}}function Pge(t,e){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=$C(n);Tge(r,n);var i=Cge(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 a=g5(t,n);return a.setAttribute(h5(n),e),a}function v5(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){$ge(t,i,n[i])})}return t}function $ge(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Age(t,e){process.env.NODE_ENV!=="production"&&!t&&console!==void 0&&console.error("Warning: ".concat(e))}function Ege(t,e){Age(t,"[@ant-design/icons-vue] ".concat(e))}function m5(t){return typeof t=="object"&&typeof t.name=="string"&&typeof t.theme=="string"&&(typeof t.icon=="object"||typeof t.icon=="function")}function AC(t,e,n){return n?p.h(t.tag,v5({key:e},n,t.attrs),(t.children||[]).map(function(r,i){return AC(r,"".concat(e,"-").concat(t.tag,"-").concat(i))})):p.h(t.tag,v5({key:e},t.attrs),(t.children||[]).map(function(r,i){return AC(r,"".concat(e,"-").concat(t.tag,"-").concat(i))}))}function y5(t){return iu(t)[0]}function b5(t){return t?Array.isArray(t)?t:[t]:[]}var Mge=`
  67. .anticon {
  68. display: inline-block;
  69. color: inherit;
  70. font-style: normal;
  71. line-height: 0;
  72. text-align: center;
  73. text-transform: none;
  74. vertical-align: -0.125em;
  75. text-rendering: optimizeLegibility;
  76. -webkit-font-smoothing: antialiased;
  77. -moz-osx-font-smoothing: grayscale;
  78. }
  79. .anticon > * {
  80. line-height: 1;
  81. }
  82. .anticon svg {
  83. display: inline-block;
  84. }
  85. .anticon::before {
  86. display: none;
  87. }
  88. .anticon .anticon-icon {
  89. display: block;
  90. }
  91. .anticon[tabindex] {
  92. cursor: pointer;
  93. }
  94. .anticon-spin::before,
  95. .anticon-spin {
  96. display: inline-block;
  97. -webkit-animation: loadingCircle 1s infinite linear;
  98. animation: loadingCircle 1s infinite linear;
  99. }
  100. @-webkit-keyframes loadingCircle {
  101. 100% {
  102. -webkit-transform: rotate(360deg);
  103. transform: rotate(360deg);
  104. }
  105. }
  106. @keyframes loadingCircle {
  107. 100% {
  108. -webkit-transform: rotate(360deg);
  109. transform: rotate(360deg);
  110. }
  111. }
  112. `;function _5(t){return t&&t.getRootNode&&t.getRootNode()}function Ige(t){return TC()?_5(t)instanceof ShadowRoot:!1}function Dge(t){return Ige(t)?_5(t):null}var Rge=function(){var e=f5(),n=e.prefixCls,r=e.csp,i=p.getCurrentInstance(),a=Mge;n&&(a=a.replace(/anticon/g,n.value)),p.nextTick(function(){if(TC()){var o=i.vnode.el,s=Dge(o);Pge(a,"@ant-design-vue-icons",{prepend:!0,csp:r.value,attachTo:s})}})},kge=["icon","primaryColor","secondaryColor"];function Nge(t,e){if(t==null)return{};var n=Lge(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function Lge(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function Py(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){Vge(t,i,n[i])})}return t}function Vge(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Cp=p.reactive({primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1});function Bge(t){var e=t.primaryColor,n=t.secondaryColor;Cp.primaryColor=e,Cp.secondaryColor=n||y5(e),Cp.calculated=!!n}function zge(){return Py({},Cp)}var ks=function(e,n){var r=Py({},e,n.attrs),i=r.icon,a=r.primaryColor,o=r.secondaryColor,s=Nge(r,kge),l=Cp;if(a&&(l={primaryColor:a,secondaryColor:o||y5(a)}),Ege(m5(i),"icon should be icon definiton, but got ".concat(i)),!m5(i))return null;var u=i;return u&&typeof u.icon=="function"&&(u=Py({},u,{icon:u.icon(l.primaryColor,l.secondaryColor)})),AC(u.icon,"svg-".concat(u.name),Py({},s,{"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};ks.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},ks.inheritAttrs=!1,ks.displayName="IconBase",ks.getTwoToneColors=zge,ks.setTwoToneColors=Bge;function Fge(t,e){return jge(t)||Hge(t,e)||Qge(t,e)||Wge()}function Wge(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  113. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Qge(t,e){if(t){if(typeof t=="string")return O5(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 O5(t,e)}}function O5(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 Hge(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(t);!(i=(o=n.next()).done)&&(r.push(o.value),!(e&&r.length===e));i=!0);}catch(l){a=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function jge(t){if(Array.isArray(t))return t}function S5(t){var e=b5(t),n=Fge(e,2),r=n[0],i=n[1];return ks.setTwoToneColors({primaryColor:r,secondaryColor:i})}function Gge(){var t=ks.getTwoToneColors();return t.calculated?[t.primaryColor,t.secondaryColor]:t.primaryColor}var Zge=p.defineComponent({name:"InsertStyles",setup:function(){return Rge(),function(){return null}}}),Uge=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function Xge(t,e){return Jge(t)||Kge(t,e)||qge(t,e)||Yge()}function Yge(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
  114. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qge(t,e){if(t){if(typeof t=="string")return x5(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 x5(t,e)}}function x5(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 Kge(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(t);!(i=(o=n.next()).done)&&(r.push(o.value),!(e&&r.length===e));i=!0);}catch(l){a=!0,s=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function Jge(t){if(Array.isArray(t))return t}function w5(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){Tp(t,i,n[i])})}return t}function Tp(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function eve(t,e){if(t==null)return{};var n=tve(t,e),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)r=a[i],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function tve(t,e){if(t==null)return{};var n={},r=Object.keys(t),i,a;for(a=0;a<r.length;a++)i=r[a],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}S5(zue.primary);var Ze=function(e,n){var r,i=w5({},e,n.attrs),a=i.class,o=i.icon,s=i.spin,l=i.rotate,u=i.tabindex,c=i.twoToneColor,f=i.onClick,d=eve(i,Uge),h=f5(),g=h.prefixCls,v=h.rootClassName,m=(r={},Tp(r,v.value,!!v.value),Tp(r,g.value,!0),Tp(r,"".concat(g.value,"-").concat(o.name),!!o.name),Tp(r,"".concat(g.value,"-spin"),!!s||o.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,_=b5(c),O=Xge(_,2),S=O[0],x=O[1];return p.createVNode("span",w5({role:"img","aria-label":o.name},d,{onClick:f,class:[m,a],tabindex:y}),[p.createVNode(ks,{icon:o,primaryColor:S,secondaryColor:x,style:b},null),p.createVNode(Zge,null,null)])};Ze.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]},Ze.displayName="AntdIcon",Ze.inheritAttrs=!1,Ze.getTwoToneColor=Gge,Ze.setTwoToneColor=S5;function C5(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){nve(t,i,n[i])})}return t}function nve(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var $y=function(e,n){var r=C5({},e,n.attrs);return p.createVNode(Ze,C5({},r,{icon:_ge}),null)};$y.displayName="DownOutlined",$y.inheritAttrs=!1;var rve={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 T5(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){ive(t,i,n[i])})}return t}function ive(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Xa=function(e,n){var r=T5({},e,n.attrs);return p.createVNode(Ze,T5({},r,{icon:rve}),null)};Xa.displayName="LoadingOutlined",Xa.inheritAttrs=!1;var ave={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 P5(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){ove(t,i,n[i])})}return t}function ove(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var EC=function(e,n){var r=P5({},e,n.attrs);return p.createVNode(Ze,P5({},r,{icon:ave}),null)};EC.displayName="CheckOutlined",EC.inheritAttrs=!1;var sve={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 $5(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){lve(t,i,n[i])})}return t}function lve(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Go=function(e,n){var r=$5({},e,n.attrs);return p.createVNode(Ze,$5({},r,{icon:sve}),null)};Go.displayName="CloseOutlined",Go.inheritAttrs=!1;var uve={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 A5(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){cve(t,i,n[i])})}return t}function cve(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ai=function(e,n){var r=A5({},e,n.attrs);return p.createVNode(Ze,A5({},r,{icon:uve}),null)};Ai.displayName="CloseCircleFilled",Ai.inheritAttrs=!1;var fve={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 E5(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){dve(t,i,n[i])})}return t}function dve(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ay=function(e,n){var r=E5({},e,n.attrs);return p.createVNode(Ze,E5({},r,{icon:fve}),null)};Ay.displayName="SearchOutlined",Ay.inheritAttrs=!1;function hve(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{loading:n,multiple:r,prefixCls:i,hasFeedback:a,feedbackIcon:o,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??p.createVNode(Ai,null,null),h=y=>p.createVNode(p.Fragment,null,[s!==!1&&y,a&&o]);let g=null;if(l!==void 0)g=h(l);else if(n)g=h(p.createVNode(Xa,{spin:!0},null));else{const y=`${i}-suffix`;g=b=>{let{open:_,showSearch:O}=b;return h(_&&O?p.createVNode(Ay,{class:y},null):p.createVNode($y,{class:y},null))}}let v=null;c!==void 0?v=c:r?v=p.createVNode(EC,null,null):v=null;let m=null;return f!==void 0?m=f:m=p.createVNode(Go,null,null),{clearIcon:d,suffixIcon:g,itemIcon:v,removeIcon:m}}function MC(t){const e=Symbol("contextKey");return{useProvide:(i,a)=>{const o=p.reactive({});return p.provide(e,o),p.watchEffect(()=>{I(o,i,a||{})}),o},useInject:()=>p.inject(e,t)||{}}}const Ey=Symbol("ContextProps"),My=Symbol("InternalContextProps"),pve=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p.computed(()=>!0);const n=p.ref(new Map),r=(o,s)=>{n.value.set(o,s),n.value=new Map(n.value)},i=o=>{n.value.delete(o),n.value=new Map(n.value)},a=p.getCurrentInstance();p.watch([e,n],()=>{if(process.env.NODE_ENV!=="production"&&e.value&&n.value.size>1){ii(!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.
  115. You can set not need to be collected fields into \`a-form-item-rest\``);let o=a;for(;o.parent;)console.warn("at",o.type),o=o.parent}}),p.provide(Ey,t),p.provide(My,{addFormItemField:r,removeFormItemField:i})},IC={id:p.computed(()=>{}),onFieldBlur:()=>{},onFieldChange:()=>{},clearValidate:()=>{}},DC={addFormItemField:()=>{},removeFormItemField:()=>{}},Ya=()=>{const t=p.inject(My,DC),e=Symbol("FormItemFieldKey"),n=p.getCurrentInstance();return t.addFormItemField(e,n.type),p.onBeforeUnmount(()=>{t.removeFormItemField(e)}),p.provide(My,DC),p.provide(Ey,IC),p.inject(Ey,IC)},Pp=p.defineComponent({compatConfig:{MODE:3},name:"AFormItemRest",setup(t,e){let{slots:n}=e;return p.provide(My,DC),p.provide(Ey,IC),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}),ma=MC({}),Iy=p.defineComponent({name:"NoFormStatus",setup(t,e){let{slots:n}=e;return ma.useProvide({}),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});function Zo(t,e,n){return fe({[`${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 $p=(t,e)=>e||t,gve=t=>{const{componentCls:e}=t;return{[e]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},vve=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"}}}}},mve=qt("Space",t=>[vve(t),gve(t)]);var yve="[object Symbol]";function Dy(t){return typeof t=="symbol"||va(t)&&Rs(t)==yve}function Ry(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 bve=1/0,M5=Pi?Pi.prototype:void 0,I5=M5?M5.toString:void 0;function D5(t){if(typeof t=="string")return t;if(kr(t))return Ry(t,D5)+"";if(Dy(t))return I5?I5.call(t):"";var e=t+"";return e=="0"&&1/t==-bve?"-0":e}var _ve=/\s/;function Ove(t){for(var e=t.length;e--&&_ve.test(t.charAt(e)););return e}var Sve=/^\s+/;function xve(t){return t&&t.slice(0,Ove(t)+1).replace(Sve,"")}var R5=NaN,wve=/^[-+]0x[0-9a-f]+$/i,Cve=/^0b[01]+$/i,Tve=/^0o[0-7]+$/i,Pve=parseInt;function RC(t){if(typeof t=="number")return t;if(Dy(t))return R5;if(Wn(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Wn(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=xve(t);var n=Cve.test(t);return n||Tve.test(t)?Pve(t.slice(2),n?2:8):wve.test(t)?R5:+t}var k5=1/0,$ve=17976931348623157e292;function Ave(t){if(!t)return t===0?t:0;if(t=RC(t),t===k5||t===-k5){var e=t<0?-1:1;return e*$ve}return t===t?t:0}function Eve(t){var e=Ave(t),n=e%1;return e===e?n?e-n:e:0}function kC(t){return t}var N5=Object.create,Mve=function(){function t(){}return function(e){if(!Wn(e))return{};if(N5)return N5(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();function L5(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 Ive(){}function V5(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var Dve=800,Rve=16,kve=Date.now;function Nve(t){var e=0,n=0;return function(){var r=kve(),i=Rve-(r-n);if(n=r,i>0){if(++e>=Dve)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}function Lve(t){return function(){return t}}var ky=function(){try{var t=uu(Object,"defineProperty");return t({},"",{}),t}catch{}}(),Vve=ky?function(t,e){return ky(t,"toString",{configurable:!0,enumerable:!1,value:Lve(e),writable:!0})}:kC,B5=Nve(Vve);function Bve(t,e){for(var n=-1,r=t==null?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}function z5(t,e,n,r){for(var i=t.length,a=n+-1;++a<i;)if(e(t[a],a,t))return a;return-1}function zve(t){return t!==t}function Fve(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}function Wve(t,e,n){return e===e?Fve(t,e,n):z5(t,zve,n)}function F5(t,e){var n=t==null?0:t.length;return!!n&&Wve(t,e,0)>-1}function NC(t,e,n){e=="__proto__"&&ky?ky(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var Qve=Object.prototype,Hve=Qve.hasOwnProperty;function LC(t,e,n){var r=t[e];(!(Hve.call(t,e)&&mp(r,n))||n===void 0&&!(e in t))&&NC(t,e,n)}function Mf(t,e,n,r){var i=!n;n||(n={});for(var a=-1,o=e.length;++a<o;){var s=e[a],l=void 0;l===void 0&&(l=t[s]),i?NC(n,s,l):LC(n,s,l)}return n}var W5=Math.max;function Q5(t,e,n){return e=W5(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,a=W5(r.length-e,0),o=Array(a);++i<a;)o[i]=r[e+i];i=-1;for(var s=Array(e+1);++i<e;)s[i]=r[i];return s[e]=n(o),L5(t,this,s)}}function VC(t,e){return B5(Q5(t,e,kC),t+"")}function jve(t,e,n){if(!Wn(n))return!1;var r=typeof e;return(r=="number"?Pf(n)&&py(e,n.length):r=="string"&&e in n)?mp(n[e],t):!1}function Gve(t){return VC(function(e,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=t.length>3&&typeof a=="function"?(i--,a):void 0,o&&jve(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),e=Object(e);++r<i;){var s=n[r];s&&t(e,s,r,a)}return e})}function Zve(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var Uve=Object.prototype,Xve=Uve.hasOwnProperty;function Yve(t){if(!Wn(t))return Zve(t);var e=my(t),n=[];for(var r in t)r=="constructor"&&(e||!Xve.call(t,r))||n.push(r);return n}function Ap(t){return Pf(t)?P8(t,!0):Yve(t)}var qve=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Kve=/^\w*$/;function BC(t,e){if(kr(t))return!1;var n=typeof t;return n=="number"||n=="symbol"||n=="boolean"||t==null||Dy(t)?!0:Kve.test(t)||!qve.test(t)||e!=null&&t in Object(e)}var Jve="Expected a function";function zC(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(Jve);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=t.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(zC.Cache||Ho),n}zC.Cache=Ho;var eme=500;function tme(t){var e=zC(t,function(r){return n.size===eme&&n.clear(),r}),n=e.cache;return e}var nme=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,rme=/\\(\\)?/g,ime=tme(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(nme,function(n,r,i,a){e.push(i?a.replace(rme,"$1"):r||n)}),e});function ame(t){return t==null?"":D5(t)}function If(t,e){return kr(t)?t:BC(t,e)?[t]:ime(ame(t))}var ome=1/0;function Df(t){if(typeof t=="string"||Dy(t))return t;var e=t+"";return e=="0"&&1/t==-ome?"-0":e}function Ny(t,e){e=If(e,t);for(var n=0,r=e.length;t!=null&&n<r;)t=t[Df(e[n++])];return n&&n==r?t:void 0}function gt(t,e,n){var r=t==null?void 0:Ny(t,e);return r===void 0?n:r}var H5=Pi?Pi.isConcatSpreadable:void 0;function sme(t){return kr(t)||wf(t)||!!(H5&&t&&t[H5])}function lme(t,e,n,r,i){var a=-1,o=t.length;for(n||(n=sme),i||(i=[]);++a<o;){var s=t[a];n(s)?rC(i,s):i[i.length]=s}return i}function ume(t){var e=t==null?0:t.length;return e?lme(t):[]}function j5(t){return B5(Q5(t,void 0,ume),t+"")}var FC=$8(Object.getPrototypeOf,Object),cme="[object Object]",fme=Function.prototype,dme=Object.prototype,G5=fme.toString,hme=dme.hasOwnProperty,pme=G5.call(Object);function WC(t){if(!va(t)||Rs(t)!=cme)return!1;var e=FC(t);if(e===null)return!0;var n=hme.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&G5.call(n)==pme}function gme(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 a=Array(i);++r<i;)a[r]=t[r+e];return a}function vme(t,e){return t&&Mf(e,Sp(e),t)}function mme(t,e){return t&&Mf(e,Ap(e),t)}var Z5=typeof lt=="object"&&lt&&!lt.nodeType&&lt,U5=Z5&&typeof module=="object"&&module&&!module.nodeType&&module,yme=U5&&U5.exports===Z5,X5=yme?pa.Buffer:void 0,Y5=X5?X5.allocUnsafe:void 0;function q5(t,e){if(e)return t.slice();var n=t.length,r=Y5?Y5(n):new t.constructor(n);return t.copy(r),r}function bme(t,e){return Mf(t,iC(t),e)}var _me=Object.getOwnPropertySymbols,K5=_me?function(t){for(var e=[];t;)rC(e,iC(t)),t=FC(t);return e}:y8;function Ome(t,e){return Mf(t,K5(t),e)}function J5(t){return m8(t,Ap,K5)}var Sme=Object.prototype,xme=Sme.hasOwnProperty;function wme(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&xme.call(t,"index")&&(n.index=t.index,n.input=t.input),n}function QC(t){var e=new t.constructor(t.byteLength);return new hy(e).set(new hy(t)),e}function Cme(t,e){var n=e?QC(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var Tme=/\w*$/;function Pme(t){var e=new t.constructor(t.source,Tme.exec(t));return e.lastIndex=t.lastIndex,e}var e3=Pi?Pi.prototype:void 0,t3=e3?e3.valueOf:void 0;function $me(t){return t3?Object(t3.call(t)):{}}function n3(t,e){var n=e?QC(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var Ame="[object Boolean]",Eme="[object Date]",Mme="[object Map]",Ime="[object Number]",Dme="[object RegExp]",Rme="[object Set]",kme="[object String]",Nme="[object Symbol]",Lme="[object ArrayBuffer]",Vme="[object DataView]",Bme="[object Float32Array]",zme="[object Float64Array]",Fme="[object Int8Array]",Wme="[object Int16Array]",Qme="[object Int32Array]",Hme="[object Uint8Array]",jme="[object Uint8ClampedArray]",Gme="[object Uint16Array]",Zme="[object Uint32Array]";function Ume(t,e,n){var r=t.constructor;switch(e){case Lme:return QC(t);case Ame:case Eme:return new r(+t);case Vme:return Cme(t,n);case Bme:case zme:case Fme:case Wme:case Qme:case Hme:case jme:case Gme:case Zme:return n3(t,n);case Mme:return new r;case Ime:case kme:return new r(t);case Dme:return Pme(t);case Rme:return new r;case Nme:return $me(t)}}function r3(t){return typeof t.constructor=="function"&&!my(t)?Mve(FC(t)):{}}var Xme="[object Map]";function Yme(t){return va(t)&&$i(t)==Xme}var i3=Tf&&Tf.isMap,qme=i3?gy(i3):Yme,Kme="[object Set]";function Jme(t){return va(t)&&$i(t)==Kme}var a3=Tf&&Tf.isSet,e0e=a3?gy(a3):Jme,t0e=1,n0e=2,r0e=4,o3="[object Arguments]",i0e="[object Array]",a0e="[object Boolean]",o0e="[object Date]",s0e="[object Error]",s3="[object Function]",l0e="[object GeneratorFunction]",u0e="[object Map]",c0e="[object Number]",l3="[object Object]",f0e="[object RegExp]",d0e="[object Set]",h0e="[object String]",p0e="[object Symbol]",g0e="[object WeakMap]",v0e="[object ArrayBuffer]",m0e="[object DataView]",y0e="[object Float32Array]",b0e="[object Float64Array]",_0e="[object Int8Array]",O0e="[object Int16Array]",S0e="[object Int32Array]",x0e="[object Uint8Array]",w0e="[object Uint8ClampedArray]",C0e="[object Uint16Array]",T0e="[object Uint32Array]",Nt={};Nt[o3]=Nt[i0e]=Nt[v0e]=Nt[m0e]=Nt[a0e]=Nt[o0e]=Nt[y0e]=Nt[b0e]=Nt[_0e]=Nt[O0e]=Nt[S0e]=Nt[u0e]=Nt[c0e]=Nt[l3]=Nt[f0e]=Nt[d0e]=Nt[h0e]=Nt[p0e]=Nt[x0e]=Nt[w0e]=Nt[C0e]=Nt[T0e]=!0,Nt[s0e]=Nt[s3]=Nt[g0e]=!1;function Ep(t,e,n,r,i,a){var o,s=e&t0e,l=e&n0e,u=e&r0e;if(n&&(o=i?n(t,r,i,a):n(t)),o!==void 0)return o;if(!Wn(t))return t;var c=kr(t);if(c){if(o=wme(t),!s)return V5(t,o)}else{var f=$i(t),d=f==s3||f==l0e;if(Cf(t))return q5(t,s);if(f==l3||f==o3||d&&!i){if(o=l||d?{}:r3(t),!s)return l?Ome(t,mme(o,t)):bme(t,vme(o,t))}else{if(!Nt[f])return i?t:{};o=Ume(t,f,s)}}a||(a=new ga);var h=a.get(t);if(h)return h;a.set(t,o),e0e(t)?t.forEach(function(m){o.add(Ep(m,e,n,m,t,a))}):qme(t)&&t.forEach(function(m,y){o.set(y,Ep(m,e,n,y,t,a))});var g=u?l?J5:sC:l?Ap:Sp,v=c?void 0:g(t);return Bve(v||t,function(m,y){v&&(y=m,m=t[y]),LC(o,y,Ep(m,e,n,y,t,a))}),o}var P0e=1,$0e=4;function hu(t){return Ep(t,P0e|$0e)}var A0e=1,E0e=2;function M0e(t,e,n,r){var i=n.length,a=i;if(t==null)return!a;for(t=Object(t);i--;){var o=n[i];if(o[2]?o[1]!==t[o[0]]:!(o[0]in t))return!1}for(;++i<a;){o=n[i];var s=o[0],l=t[s],u=o[1];if(o[2]){if(l===void 0&&!(s in t))return!1}else{var c=new ga,f;if(!(f===void 0?by(u,l,A0e|E0e,r,c):f))return!1}}return!0}function u3(t){return t===t&&!Wn(t)}function I0e(t){for(var e=Sp(t),n=e.length;n--;){var r=e[n],i=t[r];e[n]=[r,i,u3(i)]}return e}function c3(t,e){return function(n){return n==null?!1:n[t]===e&&(e!==void 0||t in Object(n))}}function D0e(t){var e=I0e(t);return e.length==1&&e[0][2]?c3(e[0][0],e[0][1]):function(n){return n===t||M0e(n,t,e)}}function R0e(t,e){return t!=null&&e in Object(t)}function k0e(t,e,n){e=If(e,t);for(var r=-1,i=e.length,a=!1;++r<i;){var o=Df(e[r]);if(!(a=t!=null&&n(t,o)))break;t=t[o]}return a||++r!=i?a:(i=t==null?0:t.length,!!i&&aC(i)&&py(o,i)&&(kr(t)||wf(t)))}function f3(t,e){return t!=null&&k0e(t,e,R0e)}var N0e=1,L0e=2;function V0e(t,e){return BC(t)&&u3(e)?c3(Df(t),e):function(n){var r=gt(n,t);return r===void 0&&r===e?f3(n,t):by(e,r,N0e|L0e)}}function B0e(t){return function(e){return e==null?void 0:e[t]}}function z0e(t){return function(e){return Ny(e,t)}}function F0e(t){return BC(t)?B0e(Df(t)):z0e(t)}function d3(t){return typeof t=="function"?t:t==null?kC:typeof t=="object"?kr(t)?V0e(t[0],t[1]):D0e(t):F0e(t)}function W0e(t){return function(e,n,r){for(var i=-1,a=Object(e),o=r(e),s=o.length;s--;){var l=o[++i];if(n(a[l],l,a)===!1)break}return e}}var Q0e=W0e(),HC=function(){return pa.Date.now()},H0e="Expected a function",j0e=Math.max,G0e=Math.min;function jC(t,e,n){var r,i,a,o,s,l,u=0,c=!1,f=!1,d=!0;if(typeof t!="function")throw new TypeError(H0e);e=RC(e)||0,Wn(n)&&(c=!!n.leading,f="maxWait"in n,a=f?j0e(RC(n.maxWait)||0,e):a,d="trailing"in n?!!n.trailing:d);function h(x){var w=r,T=i;return r=i=void 0,u=x,o=t.apply(T,w),o}function g(x){return u=x,s=setTimeout(y,e),c?h(x):o}function v(x){var w=x-l,T=x-u,P=e-w;return f?G0e(P,a-T):P}function m(x){var w=x-l,T=x-u;return l===void 0||w>=e||w<0||f&&T>=a}function y(){var x=HC();if(m(x))return b(x);s=setTimeout(y,v(x))}function b(x){return s=void 0,d&&r?h(x):(r=i=void 0,o)}function _(){s!==void 0&&clearTimeout(s),u=0,r=l=i=s=void 0}function O(){return s===void 0?o:b(HC())}function S(){var x=HC(),w=m(x);if(r=arguments,i=this,l=x,w){if(s===void 0)return g(l);if(f)return clearTimeout(s),s=setTimeout(y,e),h(l)}return s===void 0&&(s=setTimeout(y,e)),o}return S.cancel=_,S.flush=O,S}function GC(t,e,n){(n!==void 0&&!mp(t[e],n)||n===void 0&&!(e in t))&&NC(t,e,n)}function h3(t){return va(t)&&Pf(t)}function ZC(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}function Z0e(t){return Mf(t,Ap(t))}function U0e(t,e,n,r,i,a,o){var s=ZC(t,n),l=ZC(e,n),u=o.get(l);if(u){GC(t,n,u);return}var c=a?a(s,l,n+"",t,e,o):void 0,f=c===void 0;if(f){var d=kr(l),h=!d&&Cf(l),g=!d&&!h&&vy(l);c=l,d||h||g?kr(s)?c=s:h3(s)?c=V5(s):h?(f=!1,c=q5(l,!0)):g?(f=!1,c=n3(l,!0)):c=[]:WC(l)||wf(l)?(c=s,wf(s)?c=Z0e(s):(!Wn(s)||Jw(s))&&(c=r3(l))):f=!1}f&&(o.set(l,c),i(c,l,r,a,o),o.delete(l)),GC(t,n,c)}function UC(t,e,n,r,i){t!==e&&Q0e(e,function(a,o){if(i||(i=new ga),Wn(a))U0e(t,e,o,n,UC,r,i);else{var s=r?r(ZC(t,o),a,o+"",t,e,i):void 0;s===void 0&&(s=a),GC(t,o,s)}},Ap)}function p3(t,e,n,r,i,a){return Wn(t)&&Wn(e)&&(a.set(e,t),UC(t,e,void 0,p3,a),a.delete(e)),t}var X0e=Gve(function(t,e,n,r){UC(t,e,n,r)}),g3=VC(function(t){return t.push(void 0,p3),L5(X0e,void 0,t)});function Y0e(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}function q0e(t){return function(e,n,r){var i=Object(e);if(!Pf(e)){var a=d3(n);e=Sp(e),n=function(s){return a(i[s],s,i)}}var o=t(e,n,r);return o>-1?i[a?e[o]:o]:void 0}}var K0e=Math.max;function J0e(t,e,n){var r=t==null?0:t.length;if(!r)return-1;var i=n==null?0:Eve(n);return i<0&&(i=K0e(r+i,0)),z5(t,d3(e),i)}var eye=q0e(J0e);function Ly(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 tye=Math.min;function nye(t,e,n){for(var r=F5,i=t[0].length,a=t.length,o=a,s=Array(a),l=1/0,u=[];o--;){var c=t[o];o&&e&&(c=Ry(c,gy(e))),l=tye(c.length,l),s[o]=i>=120&&c.length>=120?new xf(o&&c):void 0}c=t[0];var f=-1,d=s[0];e:for(;++f<i&&u.length<l;){var h=c[f],g=h;if(h=h!==0?h:0,!(d?dy(d,g):r(u,g))){for(o=a;--o;){var v=s[o];if(!(v?dy(v,g):r(t[o],g)))continue e}d&&d.push(g),u.push(h)}}return u}function rye(t){return h3(t)?t:[]}var iye=VC(function(t){var e=Ry(t,rye);return e.length&&e[0]===t[0]?nye(e):[]});function aye(t,e){return e.length<2?t:Ny(t,gme(e,0,-1))}var oye="[object Map]",sye="[object Set]",lye=Object.prototype,uye=lye.hasOwnProperty;function v3(t){if(t==null)return!0;if(Pf(t)&&(kr(t)||typeof t=="string"||typeof t.splice=="function"||Cf(t)||vy(t)||wf(t)))return!t.length;var e=$i(t);if(e==oye||e==sye)return!t.size;if(my(t))return!A8(t).length;for(var n in t)if(uye.call(t,n))return!1;return!0}var cye="[object Number]";function fye(t){return typeof t=="number"||va(t)&&Rs(t)==cye}function Ns(t){return t==null}function dye(t){return t===void 0}function hye(t,e){return e=If(e,t),t=aye(t,e),t==null||delete t[Df(Y0e(e))]}function pye(t){return WC(t)?void 0:t}var gye=1,vye=2,mye=4,m3=j5(function(t,e){var n={};if(t==null)return n;var r=!1;e=Ry(e,function(a){return a=If(a,t),r||(r=a.length>1),a}),Mf(t,J5(t),n),r&&(n=Ep(n,gye|vye|mye,pye));for(var i=e.length;i--;)hye(n,e[i]);return n});function y3(t,e,n,r){if(!Wn(t))return t;e=If(e,t);for(var i=-1,a=e.length,o=a-1,s=t;s!=null&&++i<a;){var l=Df(e[i]),u=n;if(l==="__proto__"||l==="constructor"||l==="prototype")return t;if(i!=o){var c=s[l];u=void 0,u===void 0&&(u=Wn(c)?c:py(e[i+1])?[]:{})}LC(s,l,u),s=s[l]}return t}function yye(t,e,n){for(var r=-1,i=e.length,a={};++r<i;){var o=e[r],s=Ny(t,o);n(s,o)&&y3(a,If(o,t),s)}return a}function bye(t,e){return yye(t,e,function(n,r){return f3(t,r)})}var Mp=j5(function(t,e){return t==null?{}:bye(t,e)});function XC(t,e,n){return t==null?t:y3(t,e,n)}var _ye="Expected a function";function Oye(t,e,n){var r=!0,i=!0;if(typeof t!="function")throw new TypeError(_ye);return Wn(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),jC(t,e,{leading:r,maxWait:e,trailing:i})}var Sye=1/0,xye=$f&&1/tC(new $f([,-0]))[1]==Sye?function(t){return new $f(t)}:Ive,wye=200;function Cye(t,e,n){var r=-1,i=F5,a=t.length,o=!0,s=[],l=s;if(a>=wye){var u=xye(t);if(u)return tC(u);o=!1,i=dy,l=new xf}else l=s;e:for(;++r<a;){var c=t[r],f=c;if(c=c!==0?c:0,o&&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 YC(t){return t&&t.length?Cye(t):[]}const Tye=()=>({compactSize:String,compactDirection:Z.oneOf(Ms("horizontal","vertical")).def("horizontal"),isFirstItem:We(),isLastItem:We()}),Vy=MC(null),By=(t,e)=>{const n=Vy.useInject(),r=p.computed(()=>{if(!n||v3(n))return"";const{compactDirection:i,isFirstItem:a,isLastItem:o}=n,s=i==="vertical"?"-vertical-":"-";return fe({[`${t.value}-compact${s}item`]:!0,[`${t.value}-compact${s}first-item`]:a,[`${t.value}-compact${s}last-item`]:o,[`${t.value}-compact${s}item-rtl`]:e.value==="rtl"})});return{compactSize:p.computed(()=>n==null?void 0:n.compactSize),compactDirection:p.computed(()=>n==null?void 0:n.compactDirection),compactItemClassnames:r}},zy=p.defineComponent({name:"NoCompactStyle",setup(t,e){let{slots:n}=e;return Vy.useProvide(null),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}),Pye=()=>({prefixCls:String,size:{type:String},direction:Z.oneOf(Ms("horizontal","vertical")).def("horizontal"),align:Z.oneOf(Ms("start","end","center","baseline")),block:{type:Boolean,default:void 0}}),$ye=p.defineComponent({name:"CompactItem",props:Tye(),setup(t,e){let{slots:n}=e;return Vy.useProvide(t),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});p.defineComponent({name:"ASpaceCompact",inheritAttrs:!1,props:Pye(),setup(t,e){let{attrs:n,slots:r}=e;const{prefixCls:i,direction:a}=ct("space-compact",t),o=Vy.useInject(),[s,l]=mve(i),u=p.computed(()=>fe(i.value,l.value,{[`${i.value}-rtl`]:a.value==="rtl",[`${i.value}-block`]:t.block,[`${i.value}-vertical`]:t.direction==="vertical"}));return()=>{var c;const f=bn(((c=r.default)===null||c===void 0?void 0:c.call(r))||[]);return f.length===0?null:s(p.createVNode("div",H(H({},n),{},{class:[u.value,n.class]}),[f.map((d,h)=>{var g;const v=d&&d.key||`${i.value}-item-${h}`,m=!o||v3(o);return p.createVNode($ye,{key:v,compactSize:(g=t.size)!==null&&g!==void 0?g:"middle",compactDirection:t.direction,isFirstItem:h===0&&(m||(o==null?void 0:o.isFirstItem)),isLastItem:h===f.length-1&&(m||(o==null?void 0:o.isLastItem))},{default:()=>[d]})})]))}}});const Aye=t=>({animationDuration:t,animationFillMode:"both"}),Eye=t=>({animationDuration:t,animationFillMode:"both"}),Fy=function(t,e,n,r){const a=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[`
  116. ${a}${t}-enter,
  117. ${a}${t}-appear
  118. `]:I(I({},Aye(r)),{animationPlayState:"paused"}),[`${a}${t}-leave`]:I(I({},Eye(r)),{animationPlayState:"paused"}),[`
  119. ${a}${t}-enter${t}-enter-active,
  120. ${a}${t}-appear${t}-appear-active
  121. `]:{animationName:e,animationPlayState:"running"},[`${a}${t}-leave${t}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},Mye=new rt("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),Iye=new rt("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),b3=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:n}=t,r=`${n}-fade`,i=e?"&":"";return[Fy(r,Mye,Iye,t.motionDurationMid,e),{[`
  122. ${i}${r}-enter,
  123. ${i}${r}-appear
  124. `]:{opacity:0,animationTimingFunction:"linear"},[`${i}${r}-leave`]:{animationTimingFunction:"linear"}}]},Dye=new rt("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Rye=new rt("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),kye=new rt("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Nye=new rt("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Lye=new rt("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Vye=new rt("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),Bye=new rt("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),zye=new rt("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),Fye={"move-up":{inKeyframes:Bye,outKeyframes:zye},"move-down":{inKeyframes:Dye,outKeyframes:Rye},"move-left":{inKeyframes:kye,outKeyframes:Nye},"move-right":{inKeyframes:Lye,outKeyframes:Vye}},_3=(t,e)=>{const{antCls:n}=t,r=`${n}-${e}`,{inKeyframes:i,outKeyframes:a}=Fye[e];return[Fy(r,i,a,t.motionDurationMid),{[`
  125. ${r}-enter,
  126. ${r}-appear
  127. `]:{opacity:0,animationTimingFunction:t.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:t.motionEaseInOutCirc}}]},O3=new rt("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),S3=new rt("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),x3=new rt("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),w3=new rt("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),Wye=new rt("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),Qye=new rt("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),Hye=new rt("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),jye=new rt("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),Gye={"slide-up":{inKeyframes:O3,outKeyframes:S3},"slide-down":{inKeyframes:x3,outKeyframes:w3},"slide-left":{inKeyframes:Wye,outKeyframes:Qye},"slide-right":{inKeyframes:Hye,outKeyframes:jye}},Rf=(t,e)=>{const{antCls:n}=t,r=`${n}-${e}`,{inKeyframes:i,outKeyframes:a}=Gye[e];return[Fy(r,i,a,t.motionDurationMid),{[`
  128. ${r}-enter,
  129. ${r}-appear
  130. `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:t.motionEaseOutQuint},[`${r}-leave`]:{animationTimingFunction:t.motionEaseInQuint}}]},qC=new rt("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),Zye=new rt("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),C3=new rt("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),T3=new rt("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),Uye=new rt("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),Xye=new rt("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),Yye=new rt("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),qye=new rt("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),Kye=new rt("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),Jye=new rt("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),ebe=new rt("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),tbe=new rt("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),nbe={zoom:{inKeyframes:qC,outKeyframes:Zye},"zoom-big":{inKeyframes:C3,outKeyframes:T3},"zoom-big-fast":{inKeyframes:C3,outKeyframes:T3},"zoom-left":{inKeyframes:Yye,outKeyframes:qye},"zoom-right":{inKeyframes:Kye,outKeyframes:Jye},"zoom-up":{inKeyframes:Uye,outKeyframes:Xye},"zoom-down":{inKeyframes:ebe,outKeyframes:tbe}},Wy=(t,e)=>{const{antCls:n}=t,r=`${n}-${e}`,{inKeyframes:i,outKeyframes:a}=nbe[e];return[Fy(r,i,a,e==="zoom-big-fast"?t.motionDurationFast:t.motionDurationMid),{[`
  131. ${r}-enter,
  132. ${r}-appear
  133. `]:{transform:"scale(0)",opacity:0,animationTimingFunction:t.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:t.motionEaseInOutCirc}}]},KC=t=>({[t.componentCls]:{[`${t.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${t.motionDurationMid} ${t.motionEaseInOut},
  134. opacity ${t.motionDurationMid} ${t.motionEaseInOut} !important`}},[`${t.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${t.motionDurationMid} ${t.motionEaseInOut},
  135. opacity ${t.motionDurationMid} ${t.motionEaseInOut} !important`}}}),P3=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"}},rbe=t=>{const{antCls:e,componentCls:n}=t,r=`${n}-item`;return[{[`${n}-dropdown`]:I(I({},Dt(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,[`
  136. &${e}-slide-up-enter${e}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,
  137. &${e}-slide-up-appear${e}-slide-up-appear-active${n}-dropdown-placement-bottomLeft
  138. `]:{animationName:O3},[`
  139. &${e}-slide-up-enter${e}-slide-up-enter-active${n}-dropdown-placement-topLeft,
  140. &${e}-slide-up-appear${e}-slide-up-appear-active${n}-dropdown-placement-topLeft
  141. `]:{animationName:x3},[`&${e}-slide-up-leave${e}-slide-up-leave-active${n}-dropdown-placement-bottomLeft`]:{animationName:S3},[`&${e}-slide-up-leave${e}-slide-up-leave-active${n}-dropdown-placement-topLeft`]:{animationName:w3},"&-hidden":{display:"none"},"&-empty":{color:t.colorTextDisabled},[`${r}-empty`]:I(I({},P3(t)),{color:t.colorTextDisabled}),[`${r}`]:I(I({},P3(t)),{cursor:"pointer",transition:`background ${t.motionDurationSlow} ease`,borderRadius:t.borderRadiusSM,"&-group":{color:t.colorTextDescription,fontSize:t.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":I({flex:"auto"},mf),"&-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"}})},Rf(t,"slide-up"),Rf(t,"slide-down"),_3(t,"move-up"),_3(t,"move-down")]},kf=2;function $3(t){let{controlHeightSM:e,controlHeight:n,lineWidth:r}=t;const i=(n-e)/2-r,a=Math.ceil(i/2);return[i,a]}function JC(t,e){const{componentCls:n,iconCls:r}=t,i=`${n}-selection-overflow`,a=t.controlHeightSM,[o]=$3(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:`${o-kf}px ${kf*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:`${kf}px 0`,lineHeight:`${a}px`,content:'"\\a0"'}},[`
  142. &${n}-show-arrow ${n}-selector,
  143. &${n}-allow-clear ${n}-selector
  144. `]:{paddingInlineEnd:t.fontSizeIcon+t.controlPaddingHorizontal},[`${n}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:a,marginTop:kf,marginBottom:kf,lineHeight:`${a-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:kf*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":I(I({},yf()),{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-o,"\n &-input,\n &-mirror\n ":{height:a,fontFamily:t.fontFamily,lineHeight:`${a}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 ibe(t){const{componentCls:e}=t,n=pt(t,{controlHeight:t.controlHeightSM,controlHeightSM:t.controlHeightXS,borderRadius:t.borderRadiusSM,borderRadiusSM:t.borderRadiusXS}),[,r]=$3(t);return[JC(t),JC(n,"sm"),{[`${e}-multiple${e}-sm`]:{[`${e}-selection-placeholder`]:{insetInlineStart:t.controlPaddingHorizontalSM-t.lineWidth,insetInlineEnd:"auto"},[`${e}-selection-search`]:{marginInlineStart:r}}},JC(pt(t,{fontSize:t.fontSizeLG,controlHeight:t.controlHeightLG,controlHeightSM:t.controlHeight,borderRadius:t.borderRadiusLG,borderRadiusSM:t.borderRadius}),"lg")]}function eT(t,e){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:i}=t,a=t.controlHeight-t.lineWidth*2,o=Math.ceil(t.fontSize*1.25),s=e?`${n}-${e}`:"";return{[`${n}-single${s}`]:{fontSize:t.fontSize,[`${n}-selector`]:I(I({},Dt(t)),{display:"flex",borderRadius:i,[`${n}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%"}},[`
  145. ${n}-selection-item,
  146. ${n}-selection-placeholder
  147. `]:{padding:0,lineHeight:`${a}px`,transition:`all ${t.motionDurationSlow}`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${a}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"'}}),[`
  148. &${n}-show-arrow ${n}-selection-item,
  149. &${n}-show-arrow ${n}-selection-placeholder
  150. `]:{paddingInlineEnd:o},[`&${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:a},"&:after":{lineHeight:`${a}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 abe(t){const{componentCls:e}=t,n=t.controlPaddingHorizontalSM-t.lineWidth;return[eT(t),eT(pt(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},[`
  151. &${e}-show-arrow ${e}-selection-item,
  152. &${e}-show-arrow ${e}-selection-placeholder
  153. `]:{paddingInlineEnd:t.fontSize*1.5}}}},eT(pt(t,{controlHeight:t.controlHeightLG,fontSize:t.fontSizeLG,borderRadius:t.borderRadiusLG}),"lg")]}function obe(t,e,n){const{focusElCls:r,focus:i,borderElCls:a}=n,o=a?"> *":"",s=["hover",i?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${o}`).join(",");return{[`&-item:not(${e}-last-item)`]:{marginInlineEnd:-t.lineWidth},"&-item":I(I({[s]:{zIndex:2}},r?{[`&${r}`]:{zIndex:2}}:{}),{[`&[disabled] ${o}`]:{zIndex:0}})}}function sbe(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 Qy(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:n}=t,r=`${n}-compact`;return{[r]:I(I({},obe(t,r,e)),sbe(n,r,e))}}const lbe=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"}}}},tT=function(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:r,borderHoverColor:i,outlineColor:a,antCls:o}=e,s=n?{[`${r}-selector`]:{borderColor:i}}:{};return{[t]:{[`&:not(${r}-disabled):not(${r}-customize-input):not(${o}-pagination-size-changer)`]:I(I({},s),{[`${r}-focused& ${r}-selector`]:{borderColor:i,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${a}`,borderInlineEndWidth:`${e.controlLineWidth}px !important`,outline:0},[`&:hover ${r}-selector`]:{borderColor:i,borderInlineEndWidth:`${e.controlLineWidth}px !important`}})}}},ube=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"}}}},cbe=t=>{const{componentCls:e,inputPaddingHorizontalBase:n,iconCls:r}=t;return{[e]:I(I({},Dt(t)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${e}-customize-input) ${e}-selector`]:I(I({},lbe(t)),ube(t)),[`${e}-selection-item`]:I({flex:1,fontWeight:"normal"},mf),[`${e}-selection-placeholder`]:I(I({},mf),{flex:1,color:t.colorTextPlaceholder,pointerEvents:"none"}),[`${e}-arrow`]:I(I({},yf()),{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}}}},fbe=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%"}}},cbe(t),abe(t),ibe(t),rbe(t),{[`${e}-rtl`]:{direction:"rtl"}},tT(e,pt(t,{borderHoverColor:t.colorPrimaryHover,outlineColor:t.controlOutline})),tT(`${e}-status-error`,pt(t,{borderHoverColor:t.colorErrorHover,outlineColor:t.colorErrorOutline}),!0),tT(`${e}-status-warning`,pt(t,{borderHoverColor:t.colorWarningHover,outlineColor:t.colorWarningOutline}),!0),Qy(t,{borderElCls:`${e}-selector`,focusElCls:`${e}-focused`})]},dbe=qt("Select",(t,e)=>{let{rootPrefixCls:n}=e;const r=pt(t,{rootPrefixCls:n,inputPaddingHorizontalBase:t.paddingSM-1});return[fbe(r)]},t=>({zIndexPopup:t.zIndexPopupBase+50})),hbe=()=>I(I({},Rn(c5(),["inputIcon","mode","getInputElement","getRawInputElement","backfill"])),{value:Zt([Array,Object,String,Number]),defaultValue:Zt([Array,Object,String,Number]),notFoundContent:Z.any,suffixIcon:Z.any,itemIcon:Z.any,size:Bt(),mode:Bt(),bordered:We(!0),transitionName:String,choiceTransitionName:Bt(""),popupClassName:String,dropdownClassName:String,placement:Bt(),status:Bt(),"onUpdate:value":Qe()}),A3="SECRET_COMBOBOX_MODE_DO_NOT_USE",Nr=p.defineComponent({compatConfig:{MODE:3},name:"ASelect",Option:wC,OptGroup:CC,inheritAttrs:!1,props:Dn(hbe(),{listHeight:256,listItemHeight:24}),SECRET_COMBOBOX_MODE_DO_NOT_USE:A3,slots:Object,setup(t,e){let{attrs:n,emit:r,slots:i,expose:a}=e;const o=p.ref(),s=Ya(),l=ma.useInject(),u=p.computed(()=>$p(l.status,t.status)),c=()=>{var F;(F=o.value)===null||F===void 0||F.focus()},f=()=>{var F;(F=o.value)===null||F===void 0||F.blur()},d=F=>{var j;(j=o.value)===null||j===void 0||j.scrollTo(F)},h=p.computed(()=>{const{mode:F}=t;if(F!=="combobox")return F===A3?"combobox":F});process.env.NODE_ENV!=="production"&&ii(!t.dropdownClassName,"Select","`dropdownClassName` is deprecated. Please use `popupClassName` instead.");const{prefixCls:g,direction:v,configProvider:m,renderEmpty:y,size:b,getPrefixCls:_,getPopupContainer:O,disabled:S,select:x}=ct("select",t),{compactSize:w,compactItemClassnames:T}=By(g,v),P=p.computed(()=>w.value||b.value),C=Ha(),$=p.computed(()=>{var F;return(F=S.value)!==null&&F!==void 0?F:C.value}),[A,E]=dbe(g),D=p.computed(()=>_()),M=p.computed(()=>t.placement!==void 0?t.placement:v.value==="rtl"?"bottomRight":"bottomLeft"),R=p.computed(()=>Ua(D.value,Jhe(M.value),t.transitionName)),N=p.computed(()=>fe({[`${g.value}-lg`]:P.value==="large",[`${g.value}-sm`]:P.value==="small",[`${g.value}-rtl`]:v.value==="rtl",[`${g.value}-borderless`]:!t.bordered,[`${g.value}-in-form-item`]:l.isFormItemInput},Zo(g.value,u.value,l.hasFeedback),T.value,E.value)),V=function(){for(var F=arguments.length,j=new Array(F),K=0;K<F;K++)j[K]=arguments[K];r("update:value",j[0]),r("change",...j),s.onFieldChange()},L=F=>{r("blur",F),s.onFieldBlur()};a({blur:f,focus:c,scrollTo:d});const z=p.computed(()=>h.value==="multiple"||h.value==="tags"),B=p.computed(()=>t.showArrow!==void 0?t.showArrow:t.loading||!(z.value||h.value==="combobox"));return()=>{var F,j,K,q;const{notFoundContent:te,listHeight:X=256,listItemHeight:ee=24,popupClassName:G,dropdownClassName:W,virtual:Q,dropdownMatchSelectWidth:J,id:ae=s.id.value,placeholder:oe=(F=i.placeholder)===null||F===void 0?void 0:F.call(i),showArrow:Se}=t,{hasFeedback:_e,feedbackIcon:ge}=l;let de;te!==void 0?de=te:i.notFoundContent?de=i.notFoundContent():h.value==="combobox"?de=null:de=(y==null?void 0:y("Select"))||p.createVNode(Rw,{componentName:"Select"},null);const{suffixIcon:se,itemIcon:ye,removeIcon:Ie,clearIcon:Xe}=hve(I(I({},t),{multiple:z.value,prefixCls:g.value,hasFeedback:_e,feedbackIcon:ge,showArrow:B.value}),i),Ke=Rn(t,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered","status"]),yt=fe(G||W,{[`${g.value}-dropdown-${v.value}`]:v.value==="rtl"},E.value);return A(p.createVNode(bge,H(H(H({ref:o,virtual:Q,dropdownMatchSelectWidth:J},Ke),n),{},{showSearch:(j=t.showSearch)!==null&&j!==void 0?j:(K=x==null?void 0:x.value)===null||K===void 0?void 0:K.showSearch,placeholder:oe,listHeight:X,listItemHeight:ee,mode:h.value,prefixCls:g.value,direction:v.value,inputIcon:se,menuItemSelectedIcon:ye,removeIcon:Ie,clearIcon:Xe,notFoundContent:de,class:[N.value,n.class],getPopupContainer:O==null?void 0:O.value,dropdownClassName:yt,onChange:V,onBlur:L,id:ae,dropdownRender:Ke.dropdownRender||i.dropdownRender,transitionName:R.value,children:(q=i.default)===null||q===void 0?void 0:q.call(i),tagRender:t.tagRender||i.tagRender,optionLabelRender:i.optionLabel,maxTagPlaceholder:t.maxTagPlaceholder||i.maxTagPlaceholder,showArrow:_e||Se,disabled:$.value}),{option:i.option}))}}});Nr.install=function(t){return t.component(Nr.name,Nr),t.component(Nr.Option.displayName,Nr.Option),t.component(Nr.OptGroup.displayName,Nr.OptGroup),t};const Hy=Nr.Option;Nr.OptGroup;var pbe={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 E3(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 nT=function(e,n){var r=E3({},e,n.attrs);return p.createVNode(Ze,E3({},r,{icon:pbe}),null)};nT.displayName="CheckCircleOutlined",nT.inheritAttrs=!1;var vbe={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 M3(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){mbe(t,i,n[i])})}return t}function mbe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var rT=function(e,n){var r=M3({},e,n.attrs);return p.createVNode(Ze,M3({},r,{icon:vbe}),null)};rT.displayName="ExclamationCircleOutlined",rT.inheritAttrs=!1;var ybe={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 I3(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){bbe(t,i,n[i])})}return t}function bbe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var jy=function(e,n){var r=I3({},e,n.attrs);return p.createVNode(Ze,I3({},r,{icon:ybe}),null)};jy.displayName="InfoCircleOutlined",jy.inheritAttrs=!1;var _be={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 D3(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){Obe(t,i,n[i])})}return t}function Obe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var iT=function(e,n){var r=D3({},e,n.attrs);return p.createVNode(Ze,D3({},r,{icon:_be}),null)};iT.displayName="CloseCircleOutlined",iT.inheritAttrs=!1;var Sbe={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 R3(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){xbe(t,i,n[i])})}return t}function xbe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ls=function(e,n){var r=R3({},e,n.attrs);return p.createVNode(Ze,R3({},r,{icon:Sbe}),null)};Ls.displayName="CheckCircleFilled",Ls.inheritAttrs=!1;var wbe={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 k3(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){Cbe(t,i,n[i])})}return t}function Cbe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Vs=function(e,n){var r=k3({},e,n.attrs);return p.createVNode(Ze,k3({},r,{icon:wbe}),null)};Vs.displayName="ExclamationCircleFilled",Vs.inheritAttrs=!1;var Tbe={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 N3(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){Pbe(t,i,n[i])})}return t}function Pbe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var pu=function(e,n){var r=N3({},e,n.attrs);return p.createVNode(Ze,N3({},r,{icon:Tbe}),null)};pu.displayName="InfoCircleFilled",pu.inheritAttrs=!1;const Gy=["xxxl","xxl","xl","lg","md","sm","xs"],$be=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 Abe(){const[,t]=bf();return p.computed(()=>{const e=$be(t.value),n=new Map;let r=-1,i={};return{matchHandlers:{},dispatch(a){return i=a,n.forEach(o=>o(i)),n.size>=1},subscribe(a){return n.size||this.register(),r+=1,n.set(r,a),a(i),r},unsubscribe(a){n.delete(a),n.size||this.unregister()},unregister(){Object.keys(e).forEach(a=>{const o=e[a],s=this.matchHandlers[o];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),n.clear()},register(){Object.keys(e).forEach(a=>{const o=e[a],s=u=>{let{matches:c}=u;this.dispatch(I(I({},i),{[a]:c}))},l=window.matchMedia(o);l.addListener(s),this.matchHandlers[o]={mql:l,listener:s},s(l)})},responsiveMap:e}})}const Ei={adjustX:1,adjustY:1},Mi=[0,0],L3={left:{points:["cr","cl"],overflow:Ei,offset:[-4,0],targetOffset:Mi},right:{points:["cl","cr"],overflow:Ei,offset:[4,0],targetOffset:Mi},top:{points:["bc","tc"],overflow:Ei,offset:[0,-4],targetOffset:Mi},bottom:{points:["tc","bc"],overflow:Ei,offset:[0,4],targetOffset:Mi},topLeft:{points:["bl","tl"],overflow:Ei,offset:[0,-4],targetOffset:Mi},leftTop:{points:["tr","tl"],overflow:Ei,offset:[-4,0],targetOffset:Mi},topRight:{points:["br","tr"],overflow:Ei,offset:[0,-4],targetOffset:Mi},rightTop:{points:["tl","tr"],overflow:Ei,offset:[4,0],targetOffset:Mi},bottomRight:{points:["tr","br"],overflow:Ei,offset:[0,4],targetOffset:Mi},rightBottom:{points:["bl","br"],overflow:Ei,offset:[4,0],targetOffset:Mi},bottomLeft:{points:["tl","bl"],overflow:Ei,offset:[0,4],targetOffset:Mi},leftBottom:{points:["br","bl"],overflow:Ei,offset:[-4,0],targetOffset:Mi}},Ebe={prefixCls:String,id:String,overlayInnerStyle:Z.any},Mbe=p.defineComponent({compatConfig:{MODE:3},name:"TooltipContent",props:Ebe,setup(t,e){let{slots:n}=e;return()=>{var r;return p.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 Ibe=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 V3(){}const Dbe=p.defineComponent({compatConfig:{MODE:3},name:"Tooltip",inheritAttrs:!1,props:{trigger:Z.any.def(["hover"]),defaultVisible:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:Z.string.def("right"),transitionName:String,animation:Z.any,afterVisibleChange:Z.func.def(()=>{}),overlayStyle:{type:Object,default:void 0},overlayClassName:String,prefixCls:Z.string.def("rc-tooltip"),mouseEnterDelay:Z.number.def(.1),mouseLeaveDelay:Z.number.def(.1),getPopupContainer:Function,destroyTooltipOnHide:{type:Boolean,default:!1},align:Z.object.def(()=>({})),arrowContent:Z.any.def(null),tipId:String,builtinPlacements:Z.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 a=p.shallowRef(),o=()=>{const{prefixCls:c,tipId:f,overlayInnerStyle:d}=t;return[t.arrow?p.createVNode("div",{class:`${c}-arrow`,key:"arrow"},[E0(n,t,"arrowContent")]):null,p.createVNode(Mbe,{key:"content",prefixCls:c,id:f,overlayInnerStyle:d},{overlay:n.overlay})]};i({getPopupDomNode:()=>a.value.getPopupDomNode(),triggerDOM:a,forcePopupAlign:()=>{var c;return(c=a.value)===null||c===void 0?void 0:c.forcePopupAlign()}});const l=p.shallowRef(!1),u=p.shallowRef(!1);return p.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:h,overlayStyle:g,prefixCls:v,afterVisibleChange:m,transitionName:y,animation:b,placement:_,align:O,destroyTooltipOnHide:S,defaultVisible:x}=t,w=Ibe(t,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible"]),T=I({},w);t.visible!==void 0&&(T.popupVisible=t.visible);const P=I(I(I({popupClassName:c,prefixCls:v,action:f,builtinPlacements:L3,popupPlacement:_,popupAlign:O,afterPopupVisibleChange:m,popupTransitionName:y,popupAnimation:b,defaultPopupVisible:x,destroyPopupOnHide:l.value,autoDestroy:u.value,mouseLeaveDelay:h,popupStyle:g,mouseEnterDelay:d},T),r),{onPopupVisibleChange:t.onVisibleChange||V3,onPopupAlign:t.onPopupAlign||V3,ref:a,arrow:!!t.arrow,popup:o()});return p.createVNode(xy,P,{default:n.default})}}}),Rbe=()=>({trigger:[String,Array],open:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:String,color:String,transitionName:String,overlayStyle:ut(),overlayInnerStyle:ut(),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:ut(),builtinPlacements:ut(),children:Array,onVisibleChange:Function,"onUpdate:visible":Function,onOpenChange:Function,"onUpdate:open":Function}),kbe={adjustX:1,adjustY:1},B3={adjustX:0,adjustY:0},Nbe=[0,0];function z3(t){return typeof t=="boolean"?t?kbe:B3:I(I({},B3),t)}function Lbe(t){const{arrowWidth:e=4,horizontalArrowShift:n=16,verticalArrowShift:r=8,autoAdjustOverflow:i,arrowPointAtCenter:a}=t,o={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(o).forEach(s=>{o[s]=a?I(I({},o[s]),{overflow:z3(i),targetOffset:Nbe}):I(I({},L3[s]),{overflow:z3(i)}),o[s].ignoreShake=!0}),o}function F3(){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 Vbe=H0.map(t=>`${t}-inverse`);function Bbe(t){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[...Vbe,...H0].includes(t):H0.includes(t)}function zbe(t,e){const n=Bbe(e),r=fe({[`${t}-${e}`]:e&&n}),i={},a={};return e&&!n&&(i.background=e,a["--antd-arrow-background-color"]=e),{className:r,overlayStyle:i,arrowStyle:a}}function Zy(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return t.map(n=>`${e}${n}`).join(",")}const W3=8;function Fbe(t){const e=W3,{sizePopupArrow:n,contentRadius:r,borderRadiusOuter:i,limitVerticalRadius:a}=t,o=n/2-Math.ceil(i*(Math.sqrt(2)-1)),s=(r>12?r+2:12)-o,l=a?e-o:s;return{dropdownArrowOffset:s,dropdownArrowOffsetVertical:l}}function Wbe(t,e){const{componentCls:n,sizePopupArrow:r,marginXXS:i,borderRadiusXS:a,borderRadiusOuter:o,boxShadowPopoverArrow:s}=t,{colorBg:l,showArrowCls:u,contentRadius:c=t.borderRadiusLG,limitVerticalRadius:f}=e,{dropdownArrowOffsetVertical:d,dropdownArrowOffset:h}=Fbe({sizePopupArrow:r,contentRadius:c,borderRadiusOuter:o,limitVerticalRadius:f}),g=r/2+i;return{[n]:{[`${n}-arrow`]:[I(I({position:"absolute",zIndex:1,display:"block"},Jue(r,a,o,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:h}},[`&-placement-topRight ${n}-arrow`]:{right:{_skip_check_:!0,value:h}},[[`&-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:h}},[`&-placement-bottomRight ${n}-arrow`]:{right:{_skip_check_:!0,value:h}},[[`&-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},[Zy(["&-placement-topLeft","&-placement-top","&-placement-topRight"].map(v=>v+=":not(&-arrow-hidden)"),u)]:{paddingBottom:g},[Zy(["&-placement-bottomLeft","&-placement-bottom","&-placement-bottomRight"].map(v=>v+=":not(&-arrow-hidden)"),u)]:{paddingTop:g},[Zy(["&-placement-leftTop","&-placement-left","&-placement-leftBottom"].map(v=>v+=":not(&-arrow-hidden)"),u)]:{paddingRight:{_skip_check_:!0,value:g}},[Zy(["&-placement-rightTop","&-placement-right","&-placement-rightBottom"].map(v=>v+=":not(&-arrow-hidden)"),u)]:{paddingLeft:{_skip_check_:!0,value:g}}}}}const Qbe=t=>{const{componentCls:e,tooltipMaxWidth:n,tooltipColor:r,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:o,controlHeight:s,boxShadowSecondary:l,paddingSM:u,paddingXS:c,tooltipRadiusOuter:f}=t;return[{[e]:I(I(I(I({},Dt(t)),{position:"absolute",zIndex:o,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:a,boxShadow:l},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${e}-inner`]:{borderRadius:Math.min(a,W3)}},[`${e}-content`]:{position:"relative"}}),ece(t,(d,h)=>{let{darkColor:g}=h;return{[`&${e}-${d}`]:{[`${e}-inner`]:{backgroundColor:g},[`${e}-arrow`]:{"--antd-arrow-background-color":g}}}})),{"&-rtl":{direction:"rtl"}})},Wbe(pt(t,{borderRadiusOuter:f}),{colorBg:"var(--antd-arrow-background-color)",showArrowCls:"",contentRadius:a,limitVerticalRadius:!0}),{[`${e}-pure`]:{position:"relative",maxWidth:"none"}}]},Hbe=(t,e)=>qt("Tooltip",r=>{if((e==null?void 0:e.value)===!1)return[];const{borderRadius:i,colorTextLightSolid:a,colorBgDefault:o,borderRadiusOuter:s}=r,l=pt(r,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:i,tooltipBg:o,tooltipRadiusOuter:s>4?4:s});return[Qbe(l),Wy(r,"zoom-big-fast")]},r=>{let{zIndexPopupBase:i,colorBgSpotlight:a}=r;return{zIndexPopup:i+70,colorBgDefault:a}})(t),jbe=(t,e)=>{const n={},r=I({},t);return e.forEach(i=>{t&&i in t&&(n[i]=t[i],delete r[i])}),{picked:n,omitted:r}},Q3=()=>I(I({},Rbe()),{title:Z.any}),Gbe=p.defineComponent({compatConfig:{MODE:3},name:"ATooltip",inheritAttrs:!1,props:Dn(Q3(),{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:a}=e;process.env.NODE_ENV!=="production"&&[["visible","open"],["onVisibleChange","onOpenChange"]].forEach(C=>{let[$,A]=C;pr(t[$]===void 0,"Tooltip",`\`${$}\` is deprecated, please use \`${A}\` instead.`)});const{prefixCls:o,getPopupContainer:s,direction:l,rootPrefixCls:u}=ct("tooltip",t),c=p.computed(()=>{var C;return(C=t.open)!==null&&C!==void 0?C:t.visible}),f=p.ref(F3([t.open,t.visible])),d=p.ref();let h;p.watch(c,C=>{at.cancel(h),h=at(()=>{f.value=!!C})});const g=()=>{var C;const $=(C=t.title)!==null&&C!==void 0?C:n.title;return!$&&$!==0},v=C=>{const $=g();c.value===void 0&&(f.value=$?!1:C),$||(r("update:visible",C),r("visibleChange",C),r("update:open",C),r("openChange",C))};a({getPopupDomNode:()=>d.value.getPopupDomNode(),open:f,forcePopupAlign:()=>{var C;return(C=d.value)===null||C===void 0?void 0:C.forcePopupAlign()}});const y=p.computed(()=>{var C;const{builtinPlacements:$,autoAdjustOverflow:A,arrow:E,arrowPointAtCenter:D}=t;let M=D;return typeof E=="object"&&(M=(C=E.pointAtCenter)!==null&&C!==void 0?C:D),$||Lbe({arrowPointAtCenter:M,autoAdjustOverflow:A})}),b=C=>C||C==="",_=C=>{const $=C.type;if(typeof $=="object"&&C.props&&(($.__ANT_BUTTON===!0||$==="button")&&b(C.props.disabled)||$.__ANT_SWITCH===!0&&(b(C.props.disabled)||b(C.props.loading))||$.__ANT_RADIO===!0&&b(C.props.disabled))){const{picked:A,omitted:E}=jbe(vle(C),["position","left","right","top","bottom","float","display","zIndex"]),D=I(I({display:"inline-block"},A),{cursor:"not-allowed",lineHeight:1,width:C.props&&C.props.block?"100%":void 0}),M=I(I({},E),{pointerEvents:"none"}),R=en(C,{style:M},!0);return p.createVNode("span",{style:D,class:`${o.value}-disabled-compatible-wrapper`},[R])}return C},O=()=>{var C,$;return(C=t.title)!==null&&C!==void 0?C:($=n.title)===null||$===void 0?void 0:$.call(n)},S=(C,$)=>{const A=y.value,E=Object.keys(A).find(D=>{var M,R;return A[D].points[0]===((M=$.points)===null||M===void 0?void 0:M[0])&&A[D].points[1]===((R=$.points)===null||R===void 0?void 0:R[1])});if(E){const D=C.getBoundingClientRect(),M={top:"50%",left:"50%"};E.indexOf("top")>=0||E.indexOf("Bottom")>=0?M.top=`${D.height-$.offset[1]}px`:(E.indexOf("Top")>=0||E.indexOf("bottom")>=0)&&(M.top=`${-$.offset[1]}px`),E.indexOf("left")>=0||E.indexOf("Right")>=0?M.left=`${D.width-$.offset[0]}px`:(E.indexOf("right")>=0||E.indexOf("Left")>=0)&&(M.left=`${-$.offset[0]}px`),C.style.transformOrigin=`${M.left} ${M.top}`}},x=p.computed(()=>zbe(o.value,t.color)),w=p.computed(()=>i["data-popover-inject"]),[T,P]=Hbe(o,p.computed(()=>!w.value));return()=>{var C,$;const{openClassName:A,overlayClassName:E,overlayStyle:D,overlayInnerStyle:M}=t;let R=($=Qa((C=n.default)===null||C===void 0?void 0:C.call(n)))!==null&&$!==void 0?$:null;R=R.length===1?R[0]:R;let N=f.value;if(c.value===void 0&&g()&&(N=!1),!R)return null;const V=_(ei(R)&&!mle(R)?R:p.createVNode("span",null,[R])),L=fe({[A||`${o.value}-open`]:!0,[V.props&&V.props.class]:V.props&&V.props.class}),z=fe(E,{[`${o.value}-rtl`]:l.value==="rtl"},x.value.className,P.value),B=I(I({},x.value.overlayStyle),M),F=x.value.arrowStyle,j=I(I(I({},i),t),{prefixCls:o.value,arrow:!!t.arrow,getPopupContainer:s==null?void 0:s.value,builtinPlacements:y.value,visible:N,ref:d,overlayClassName:z,overlayStyle:I(I({},F),D),overlayInnerStyle:B,onVisibleChange:v,onPopupAlign:S,transitionName:Ua(u.value,"zoom-big-fast",t.transitionName)});return T(p.createVNode(Dbe,j,{default:()=>[f.value?en(V,{class:L}):V],arrowContent:()=>p.createVNode("span",{class:`${o.value}-arrow-content`},null),overlay:O}))}}}),Uy=ff(Gbe),Nf={adjustX:1,adjustY:1},Lf=[0,0],Zbe={topLeft:{points:["bl","tl"],overflow:Nf,offset:[0,-4],targetOffset:Lf},topCenter:{points:["bc","tc"],overflow:Nf,offset:[0,-4],targetOffset:Lf},topRight:{points:["br","tr"],overflow:Nf,offset:[0,-4],targetOffset:Lf},bottomLeft:{points:["tl","bl"],overflow:Nf,offset:[0,4],targetOffset:Lf},bottomCenter:{points:["tc","bc"],overflow:Nf,offset:[0,4],targetOffset:Lf},bottomRight:{points:["tr","br"],overflow:Nf,offset:[0,4],targetOffset:Lf}};var Ube=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 Xbe=p.defineComponent({compatConfig:{MODE:3},props:{minOverlayWidthMatchTrigger:{type:Boolean,default:void 0},arrow:{type:Boolean,default:!1},prefixCls:Z.string.def("rc-dropdown"),transitionName:String,overlayClassName:Z.string.def(""),openClassName:String,animation:Z.any,align:Z.object,overlayStyle:{type:Object,default:void 0},placement:Z.string.def("bottomLeft"),overlay:Z.any,trigger:Z.oneOfType([Z.string,Z.arrayOf(Z.string)]).def("hover"),alignPoint:{type:Boolean,default:void 0},showAction:Z.array,hideAction:Z.array,getPopupContainer:Function,visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},mouseEnterDelay:Z.number.def(.15),mouseLeaveDelay:Z.number.def(.1)},emits:["visibleChange","overlayClick"],setup(t,e){let{slots:n,emit:r,expose:i}=e;const a=p.ref(!!t.visible);p.watch(()=>t.visible,h=>{h!==void 0&&(a.value=h)});const o=p.ref();i({triggerRef:o});const s=h=>{t.visible===void 0&&(a.value=!1),r("overlayClick",h)},l=h=>{t.visible===void 0&&(a.value=h),r("visibleChange",h)},u=()=>{var h;const g=(h=n.overlay)===null||h===void 0?void 0:h.call(n),v={prefixCls:`${t.prefixCls}-menu`,onClick:s};return p.createVNode(p.Fragment,{key:oL},[t.arrow&&p.createVNode("div",{class:`${t.prefixCls}-arrow`},null),en(g,v,!1)])},c=p.computed(()=>{const{minOverlayWidthMatchTrigger:h=!t.alignPoint}=t;return h}),f=()=>{var h;const g=(h=n.default)===null||h===void 0?void 0:h.call(n);return a.value&&g?en(g[0],{class:t.openClassName||`${t.prefixCls}-open`},!1):g},d=p.computed(()=>!t.hideAction&&t.trigger.indexOf("contextmenu")!==-1?["click"]:t.hideAction);return()=>{const{prefixCls:h,arrow:g,showAction:v,overlayStyle:m,trigger:y,placement:b,align:_,getPopupContainer:O,transitionName:S,animation:x,overlayClassName:w}=t,T=Ube(t,["prefixCls","arrow","showAction","overlayStyle","trigger","placement","align","getPopupContainer","transitionName","animation","overlayClassName"]);return p.createVNode(xy,H(H({},T),{},{prefixCls:h,ref:o,popupClassName:fe(w,{[`${h}-show-arrow`]:g}),popupStyle:m,builtinPlacements:Zbe,action:y,showAction:v,hideAction:d.value||[],popupPlacement:b,popupAlign:_,popupTransitionName:S,popupAnimation:x,popupVisible:a.value,stretch:c.value?"minWidth":"",onPopupVisibleChange:l,getPopupContainer:O}),{popup:u,default:f})}}}),Ybe=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}}}}},qbe=qt("Wave",t=>[Ybe(t)]);function Kbe(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 aT(t){return t&&t!=="#fff"&&t!=="#ffffff"&&t!=="rgb(255, 255, 255)"&&t!=="rgba(255, 255, 255, 1)"&&Kbe(t)&&!/rgba\((?:\d*, ){3}0\)/.test(t)&&t!=="transparent"}function Jbe(t){const{borderTopColor:e,borderColor:n,backgroundColor:r}=getComputedStyle(t);return aT(e)?e:aT(n)?n:aT(r)?r:null}function oT(t){return Number.isNaN(t)?0:t}const e_e=p.defineComponent({props:{target:ut(),className:String},setup(t){const e=p.shallowRef(null),[n,r]=Ft(null),[i,a]=Ft([]),[o,s]=Ft(0),[l,u]=Ft(0),[c,f]=Ft(0),[d,h]=Ft(0),[g,v]=Ft(!1);function m(){const{target:w}=t,T=getComputedStyle(w);r(Jbe(w));const P=T.position==="static",{borderLeftWidth:C,borderTopWidth:$}=T;s(P?w.offsetLeft:oT(-parseFloat(C))),u(P?w.offsetTop:oT(-parseFloat($))),f(w.offsetWidth),h(w.offsetHeight);const{borderTopLeftRadius:A,borderTopRightRadius:E,borderBottomLeftRadius:D,borderBottomRightRadius:M}=T;a([A,E,M,D].map(R=>oT(parseFloat(R))))}let y,b,_;const O=()=>{clearTimeout(_),at.cancel(b),y==null||y.disconnect()},S=()=>{var w;const T=(w=e.value)===null||w===void 0?void 0:w.parentElement;T&&(p.render(null,T),T.parentElement&&T.parentElement.removeChild(T))};p.onMounted(()=>{O(),_=setTimeout(()=>{S()},5e3);const{target:w}=t;w&&(b=at(()=>{m(),v(!0)}),typeof ResizeObserver<"u"&&(y=new ResizeObserver(m),y.observe(w)))}),p.onBeforeUnmount(()=>{O()});const x=w=>{w.propertyName==="opacity"&&S()};return()=>{if(!g.value)return null;const w={left:`${o.value}px`,top:`${l.value}px`,width:`${c.value}px`,height:`${d.value}px`,borderRadius:i.value.map(T=>`${T}px`).join(" ")};return n&&(w["--wave-color"]=n.value),p.createVNode(p.Transition,{appear:!0,name:"wave-motion",appearFromClass:"wave-motion-appear",appearActiveClass:"wave-motion-appear",appearToClass:"wave-motion-appear wave-motion-appear-active"},{default:()=>[p.createVNode("div",{ref:e,class:t.className,style:w,onTransitionend:x},null)]})}}});function t_e(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),p.render(p.createVNode(e_e,{target:t,className:e},null),n)}function n_e(t,e,n){function r(){var i;const a=Vo(t);!((i=n==null?void 0:n.value)===null||i===void 0)&&i.disabled||!a||t_e(a,e.value)}return r}const r_e=p.defineComponent({compatConfig:{MODE:3},name:"Wave",props:{disabled:Boolean},setup(t,e){let{slots:n}=e;const r=p.getCurrentInstance(),{prefixCls:i,wave:a}=ct("wave",t),[,o]=qbe(i),s=n_e(r,p.computed(()=>fe(i.value,o.value)),a);let l;const u=()=>{Vo(r).removeEventListener("click",l,!0)};return p.onMounted(()=>{p.watch(()=>t.disabled,()=>{u(),p.nextTick(()=>{const c=Vo(r);c==null||c.removeEventListener("click",l,!0),!(!c||c.nodeType!==1||t.disabled)&&(l=f=>{f.target.tagName==="INPUT"||!u8(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"})}),p.onBeforeUnmount(()=>{u()}),()=>{var c;return(c=n.default)===null||c===void 0?void 0:c.call(n)[0]}}});function H3(t){return t==="danger"?{danger:!0}:{type:t}}const i_e=()=>({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:Z.any,href:String,target:String,title:String,onClick:M0(),onMousedown:M0()}),j3=t=>{t&&(t.style.width="0px",t.style.opacity="0",t.style.transform="scale(0)")},G3=t=>{p.nextTick(()=>{t&&(t.style.width=`${t.scrollWidth}px`,t.style.opacity="1",t.style.transform="scale(1)")})},Z3=t=>{t&&t.style&&(t.style.width=null,t.style.opacity=null,t.style.transform=null)},a_e=p.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 p.createVNode("span",{class:`${n}-loading-icon`},[p.createVNode(Xa,null,null)]);const i=!!r;return p.createVNode(p.Transition,{name:`${n}-loading-icon-motion`,onBeforeEnter:j3,onEnter:G3,onAfterEnter:Z3,onBeforeLeave:G3,onLeave:a=>{setTimeout(()=>{j3(a)})},onAfterLeave:Z3},{default:()=>[i?p.createVNode("span",{class:`${n}-loading-icon`},[p.createVNode(Xa,null,null)]):null]})}}}),U3=(t,e)=>({[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{"&:not(:disabled)":{borderInlineEndColor:e}}},"&:not(:first-child)":{[`&, & > ${t}`]:{"&:not(:disabled)":{borderInlineStartColor:e}}}}}),o_e=t=>{const{componentCls:e,fontSize:n,lineWidth:r,colorPrimaryHover:i,colorErrorHover:a}=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}},U3(`${e}-primary`,i),U3(`${e}-danger`,a)]}};function s_e(t,e){return{[`&-item:not(${e}-last-item)`]:{marginBottom:-t.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function l_e(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 u_e(t){const e=`${t.componentCls}-compact-vertical`;return{[e]:I(I({},s_e(t,e)),l_e(t.componentCls,e))}}const c_e=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)":I({},J0(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:'""'}}}}}}},Uo=(t,e)=>({"&:not(:disabled)":{"&:hover":t,"&:active":e}}),f_e=t=>({minWidth:t.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),d_e=t=>({borderRadius:t.controlHeight,paddingInlineStart:t.controlHeight/2,paddingInlineEnd:t.controlHeight/2}),sT=t=>({cursor:"not-allowed",borderColor:t.colorBorder,color:t.colorTextDisabled,backgroundColor:t.colorBgContainerDisabled,boxShadow:"none"}),Xy=(t,e,n,r,i,a,o)=>({[`&${t}-background-ghost`]:I(I({color:e||void 0,backgroundColor:"transparent",borderColor:n||void 0,boxShadow:"none"},Uo(I({backgroundColor:"transparent"},a),I({backgroundColor:"transparent"},o))),{"&:disabled":{cursor:"not-allowed",color:r||void 0,borderColor:i||void 0}})}),lT=t=>({"&:disabled":I({},sT(t))}),X3=t=>I({},lT(t)),Yy=t=>({"&:disabled":{cursor:"not-allowed",color:t.colorTextDisabled}}),Y3=t=>I(I(I(I(I({},X3(t)),{backgroundColor:t.colorBgContainer,borderColor:t.colorBorder,boxShadow:`0 ${t.controlOutlineWidth}px 0 ${t.controlTmpOutline}`}),Uo({color:t.colorPrimaryHover,borderColor:t.colorPrimaryHover},{color:t.colorPrimaryActive,borderColor:t.colorPrimaryActive})),Xy(t.componentCls,t.colorBgContainer,t.colorBgContainer,t.colorTextDisabled,t.colorBorder)),{[`&${t.componentCls}-dangerous`]:I(I(I({color:t.colorError,borderColor:t.colorError},Uo({color:t.colorErrorHover,borderColor:t.colorErrorBorderHover},{color:t.colorErrorActive,borderColor:t.colorErrorActive})),Xy(t.componentCls,t.colorError,t.colorError,t.colorTextDisabled,t.colorBorder)),lT(t))}),h_e=t=>I(I(I(I(I({},X3(t)),{color:t.colorTextLightSolid,backgroundColor:t.colorPrimary,boxShadow:`0 ${t.controlOutlineWidth}px 0 ${t.controlOutline}`}),Uo({color:t.colorTextLightSolid,backgroundColor:t.colorPrimaryHover},{color:t.colorTextLightSolid,backgroundColor:t.colorPrimaryActive})),Xy(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`]:I(I(I({backgroundColor:t.colorError,boxShadow:`0 ${t.controlOutlineWidth}px 0 ${t.colorErrorOutline}`},Uo({backgroundColor:t.colorErrorHover},{backgroundColor:t.colorErrorActive})),Xy(t.componentCls,t.colorError,t.colorError,t.colorTextDisabled,t.colorBorder,{color:t.colorErrorHover,borderColor:t.colorErrorHover},{color:t.colorErrorActive,borderColor:t.colorErrorActive})),lT(t))}),p_e=t=>I(I({},Y3(t)),{borderStyle:"dashed"}),g_e=t=>I(I(I({color:t.colorLink},Uo({color:t.colorLinkHover},{color:t.colorLinkActive})),Yy(t)),{[`&${t.componentCls}-dangerous`]:I(I({color:t.colorError},Uo({color:t.colorErrorHover},{color:t.colorErrorActive})),Yy(t))}),v_e=t=>I(I(I({},Uo({color:t.colorText,backgroundColor:t.colorBgTextHover},{color:t.colorText,backgroundColor:t.colorBgTextActive})),Yy(t)),{[`&${t.componentCls}-dangerous`]:I(I({color:t.colorError},Yy(t)),Uo({color:t.colorErrorHover,backgroundColor:t.colorErrorBg},{color:t.colorErrorHover,backgroundColor:t.colorErrorBg}))}),m_e=t=>I(I({},sT(t)),{[`&${t.componentCls}:hover`]:I({},sT(t))}),y_e=t=>{const{componentCls:e}=t;return{[`${e}-default`]:Y3(t),[`${e}-primary`]:h_e(t),[`${e}-dashed`]:p_e(t),[`${e}-link`]:g_e(t),[`${e}-text`]:v_e(t),[`${e}-disabled`]:m_e(t)}},uT=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:n,iconCls:r,controlHeight:i,fontSize:a,lineHeight:o,lineWidth:s,borderRadius:l,buttonPaddingHorizontal:u}=t,c=Math.max(0,(i-a*o)/2-s),f=u-s,d=`${n}-icon-only`;return[{[`${n}${e}`]:{fontSize:a,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}`]:f_e(t)},{[`${n}${n}-round${e}`]:d_e(t)}]},b_e=t=>uT(t),__e=t=>{const e=pt(t,{controlHeight:t.controlHeightSM,padding:t.paddingXS,buttonPaddingHorizontal:8,borderRadius:t.borderRadiusSM});return uT(e,`${t.componentCls}-sm`)},O_e=t=>{const e=pt(t,{controlHeight:t.controlHeightLG,fontSize:t.fontSizeLG,borderRadius:t.borderRadiusLG});return uT(e,`${t.componentCls}-lg`)},S_e=t=>{const{componentCls:e}=t;return{[e]:{[`&${e}-block`]:{width:"100%"}}}},x_e=qt("Button",t=>{const{controlTmpOutline:e,paddingContentHorizontal:n}=t,r=pt(t,{colorOutlineDefault:e,buttonPaddingHorizontal:n});return[c_e(r),__e(r),b_e(r),O_e(r),S_e(r),y_e(r),o_e(r),Qy(t,{focus:!1}),u_e(t)]}),w_e=()=>({prefixCls:String,size:{type:String}}),q3=MC(),cT=p.defineComponent({compatConfig:{MODE:3},name:"AButtonGroup",props:w_e(),setup(t,e){let{slots:n}=e;const{prefixCls:r,direction:i}=ct("btn-group",t),[,,a]=bf();q3.useProvide(p.reactive({size:p.computed(()=>t.size)}));const o=p.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:ii(!s,"Button.Group","Invalid prop `size`.")}return{[`${r.value}`]:!0,[`${r.value}-${l}`]:l,[`${r.value}-rtl`]:i.value==="rtl",[a.value]:!0}});return()=>{var s;return p.createVNode("div",{class:o.value},[bn((s=n.default)===null||s===void 0?void 0:s.call(n))])}}}),K3=/^[\u4e00-\u9fa5]{2}$/,J3=K3.test.bind(K3);function qy(t){return t==="text"||t==="link"}const gr=p.defineComponent({compatConfig:{MODE:3},name:"AButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:Dn(i_e(),{type:"default"}),slots:Object,setup(t,e){let{slots:n,attrs:r,emit:i,expose:a}=e;const{prefixCls:o,autoInsertSpaceInButton:s,direction:l,size:u}=ct("btn",t),[c,f]=x_e(o),d=q3.useInject(),h=Ha(),g=p.computed(()=>{var M;return(M=t.disabled)!==null&&M!==void 0?M:h.value}),v=p.shallowRef(null),m=p.shallowRef(void 0);let y=!1;const b=p.shallowRef(!1),_=p.shallowRef(!1),O=p.computed(()=>s.value!==!1),{compactSize:S,compactItemClassnames:x}=By(o,l),w=p.computed(()=>typeof t.loading=="object"&&t.loading.delay?t.loading.delay||!0:!!t.loading);p.watch(w,M=>{clearTimeout(m.value),typeof w.value=="number"?m.value=setTimeout(()=>{b.value=M},w.value):b.value=M},{immediate:!0});const T=p.computed(()=>{const{type:M,shape:R="default",ghost:N,block:V,danger:L}=t,z=o.value,B={large:"lg",small:"sm",middle:void 0},F=S.value||(d==null?void 0:d.size)||u.value,j=F&&B[F]||"";return[x.value,{[f.value]:!0,[`${z}`]:!0,[`${z}-${R}`]:R!=="default"&&R,[`${z}-${M}`]:M,[`${z}-${j}`]:j,[`${z}-loading`]:b.value,[`${z}-background-ghost`]:N&&!qy(M),[`${z}-two-chinese-chars`]:_.value&&O.value,[`${z}-block`]:V,[`${z}-dangerous`]:!!L,[`${z}-rtl`]:l.value==="rtl"}]}),P=()=>{const M=v.value;if(!M||s.value===!1)return;const R=M.textContent;y&&J3(R)?_.value||(_.value=!0):_.value&&(_.value=!1)},C=M=>{if(b.value||g.value){M.preventDefault();return}i("click",M)},$=M=>{i("mousedown",M)},A=(M,R)=>{const N=R?" ":"";if(M.type===p.Text){let V=M.children.trim();return J3(V)&&(V=V.split("").join(N)),p.createVNode("span",null,[V])}return M};return p.watchEffect(()=>{ii(!(t.ghost&&qy(t.type)),"Button","`link` or `text` button can't be a `ghost` button.")}),p.onMounted(P),p.onUpdated(P),p.onBeforeUnmount(()=>{m.value&&clearTimeout(m.value)}),a({focus:()=>{var M;(M=v.value)===null||M===void 0||M.focus()},blur:()=>{var M;(M=v.value)===null||M===void 0||M.blur()}}),()=>{var M,R;const{icon:N=(M=n.icon)===null||M===void 0?void 0:M.call(n)}=t,V=bn((R=n.default)===null||R===void 0?void 0:R.call(n));y=V.length===1&&!N&&!qy(t.type);const{type:L,htmlType:z,href:B,title:F,target:j}=t,K=b.value?"loading":N,q=I(I({},r),{title:F,disabled:g.value,class:[T.value,r.class,{[`${o.value}-icon-only`]:V.length===0&&!!K}],onClick:C,onMousedown:$});g.value||delete q.disabled;const te=N&&!b.value?N:p.createVNode(a_e,{existIcon:!!N,prefixCls:o.value,loading:!!b.value},null),X=V.map(G=>A(G,y&&O.value));if(B!==void 0)return c(p.createVNode("a",H(H({},q),{},{href:B,target:j,ref:v}),[te,X]));let ee=p.createVNode("button",H(H({},q),{},{ref:v,type:z}),[te,X]);if(!qy(L)){const G=function(){return ee}();ee=p.createVNode(r_e,{ref:"wave",disabled:!!b.value},{default:()=>[G]})}return c(ee)}}});gr.Group=cT,gr.install=function(t){return t.component(gr.name,gr),t.component(cT.name,cT),t};var C_e={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 eV(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){T_e(t,i,n[i])})}return t}function T_e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ky=function(e,n){var r=eV({},e,n.attrs);return p.createVNode(Ze,eV({},r,{icon:C_e}),null)};Ky.displayName="EllipsisOutlined",Ky.inheritAttrs=!1;var P_e={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 tV(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){$_e(t,i,n[i])})}return t}function $_e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Jy=function(e,n){var r=tV({},e,n.attrs);return p.createVNode(Ze,tV({},r,{icon:P_e}),null)};Jy.displayName="RightOutlined",Jy.inheritAttrs=!1;const nV=Symbol("OverrideContextKey"),rV=()=>p.inject(nV,void 0),A_e=t=>{var e,n,r;const{prefixCls:i,mode:a,selectable:o,validator:s,onClick:l,expandIcon:u}=rV()||{};p.provide(nV,{prefixCls:p.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:p.computed(()=>{var c,f;return(f=(c=t.mode)===null||c===void 0?void 0:c.value)!==null&&f!==void 0?f:a==null?void 0:a.value}),selectable:p.computed(()=>{var c,f;return(f=(c=t.selectable)===null||c===void 0?void 0:c.value)!==null&&f!==void 0?f:o==null?void 0:o.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 E_e(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 a=Object.keys(t),o=Object.keys(e);if(a.length!==o.length)return!1;const s=Object.prototype.hasOwnProperty.bind(e);for(let l=0;l<a.length;l++){const u=a[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 Ip(t,e){return E_e(p.toRaw(t),p.toRaw(e))}const iV=Symbol("menuContextKey"),aV=t=>{p.provide(iV,t)},Xo=()=>p.inject(iV),oV=Symbol("ForceRenderKey"),M_e=t=>{p.provide(oV,t)},sV=()=>p.inject(oV,!1),lV=Symbol("menuFirstLevelContextKey"),uV=t=>{p.provide(lV,t)},I_e=()=>p.inject(lV,!0),eb=p.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=Xo(),i=I({},r);return t.mode!==void 0&&(i.mode=p.toRef(t,"mode")),t.overflowDisabled!==void 0&&(i.overflowDisabled=p.toRef(t,"overflowDisabled")),aV(i),()=>{var a;return(a=n.default)===null||a===void 0?void 0:a.call(n)}}}),D_e=aV,R_e=Symbol("siderCollapsed"),tb="$$__vc-menu-more__key",cV=Symbol("KeyPathContext"),fT=()=>p.inject(cV,{parentEventKeys:p.computed(()=>[]),parentKeys:p.computed(()=>[]),parentInfo:{}}),k_e=(t,e,n)=>{const{parentEventKeys:r,parentKeys:i}=fT(),a=p.computed(()=>[...r.value,t]),o=p.computed(()=>[...i.value,e]);return p.provide(cV,{parentEventKeys:a,parentKeys:o,parentInfo:n}),o},fV=Symbol("measure"),dV=p.defineComponent({compatConfig:{MODE:3},setup(t,e){let{slots:n}=e;return p.provide(fV,!0),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}}),dT=()=>p.inject(fV,!1),N_e=k_e;function hV(t){const{mode:e,rtl:n,inlineIndent:r}=Xo();return p.computed(()=>e.value!=="inline"?null:n.value?{paddingRight:`${t.value*r.value}px`}:{paddingLeft:`${t.value*r.value}px`})}let L_e=0;const V_e=()=>({id:String,role:String,disabled:Boolean,danger:Boolean,title:{type:[String,Boolean],default:void 0},icon:Z.any,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,originItemValue:ut()}),Vf=p.defineComponent({compatConfig:{MODE:3},name:"AMenuItem",inheritAttrs:!1,props:V_e(),slots:Object,setup(t,e){let{slots:n,emit:r,attrs:i}=e;const a=p.getCurrentInstance(),o=dT(),s=typeof a.vnode.key=="symbol"?String(a.vnode.key):a.vnode.key;ii(typeof a.vnode.key!="symbol","MenuItem",`MenuItem \`:key="${String(s)}"\` not support Symbol type`);const l=`menu_item_${++L_e}_$$_${s}`,{parentEventKeys:u,parentKeys:c}=fT(),{prefixCls:f,activeKeys:d,disabled:h,changeActiveKeys:g,rtl:v,inlineCollapsed:m,siderCollapsed:y,onItemClick:b,selectedKeys:_,registerMenuInfo:O,unRegisterMenuInfo:S}=Xo(),x=I_e(),w=p.shallowRef(!1),T=p.computed(()=>[...c.value,s]);O(l,{eventKey:l,key:s,parentEventKeys:u,parentKeys:c,isLeaf:!0}),p.onBeforeUnmount(()=>{S(l)}),p.watch(d,()=>{w.value=!!d.value.find(B=>B===s)},{immediate:!0});const C=p.computed(()=>h.value||t.disabled),$=p.computed(()=>_.value.includes(s)),A=p.computed(()=>{const B=`${f.value}-item`;return{[`${B}`]:!0,[`${B}-danger`]:t.danger,[`${B}-active`]:w.value,[`${B}-selected`]:$.value,[`${B}-disabled`]:C.value}}),E=B=>({key:s,eventKey:l,keyPath:T.value,eventKeyPath:[...u.value,l],domEvent:B,item:I(I({},t),i)}),D=B=>{if(C.value)return;const F=E(B);r("click",B),b(F)},M=B=>{C.value||(g(T.value),r("mouseenter",B))},R=B=>{C.value||(g([]),r("mouseleave",B))},N=B=>{if(r("keydown",B),B.which===le.ENTER){const F=E(B);r("click",B),b(F)}},V=B=>{g(T.value),r("focus",B)},L=(B,F)=>{const j=p.createVNode("span",{class:`${f.value}-title-content`},[F]);return(!B||ei(F)&&F.type==="span")&&F&&m.value&&x&&typeof F=="string"?p.createVNode("div",{class:`${f.value}-inline-collapsed-noicon`},[F.charAt(0)]):j},z=hV(p.computed(()=>T.value.length));return()=>{var B,F,j,K,q;if(o)return null;const te=(B=t.title)!==null&&B!==void 0?B:(F=n.title)===null||F===void 0?void 0:F.call(n),X=bn((j=n.default)===null||j===void 0?void 0:j.call(n)),ee=X.length;let G=te;typeof te>"u"?G=x&&ee?X:"":te===!1&&(G="");const W={title:G};!y.value&&!m.value&&(W.title=null,W.open=!1);const Q={};t.role==="option"&&(Q["aria-selected"]=$.value);const J=(K=t.icon)!==null&&K!==void 0?K:(q=n.icon)===null||q===void 0?void 0:q.call(n,t);return p.createVNode(Uy,H(H({},W),{},{placement:v.value?"left":"right",overlayClassName:`${f.value}-inline-collapsed-tooltip`}),{default:()=>[p.createVNode(jo.Item,H(H(H({component:"li"},i),{},{id:t.id,style:I(I({},i.style||{}),z.value),class:[A.value,{[`${i.class}`]:!!i.class,[`${f.value}-item-only-child`]:(J?ee+1:ee)===1}],role:t.role||"menuitem",tabindex:t.disabled?null:-1,"data-menu-id":s,"aria-disabled":t.disabled},Q),{},{onMouseenter:M,onMouseleave:R,onClick:D,onKeydown:N,onFocus:V,title:typeof te=="string"?te:void 0}),{default:()=>[en(typeof J=="function"?J(t.originItemValue):J,{class:`${f.value}-item-icon`},!1),L(J,X)]})]})}}}),Bs={adjustX:1,adjustY:1},B_e={topLeft:{points:["bl","tl"],overflow:Bs,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Bs,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Bs,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Bs,offset:[4,0]}},z_e={topLeft:{points:["bl","tl"],overflow:Bs,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Bs,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Bs,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Bs,offset:[4,0]}},F_e={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},pV=p.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=p.shallowRef(!1),{getPopupContainer:a,rtl:o,subMenuOpenDelay:s,subMenuCloseDelay:l,builtinPlacements:u,triggerSubMenuAction:c,forceSubMenuRender:f,motion:d,defaultMotions:h,rootClassName:g}=Xo(),v=sV(),m=p.computed(()=>o.value?I(I({},z_e),u.value):I(I({},B_e),u.value)),y=p.computed(()=>F_e[t.mode]),b=p.shallowRef();p.watch(()=>t.visible,S=>{at.cancel(b.value),b.value=at(()=>{i.value=S})},{immediate:!0}),p.onBeforeUnmount(()=>{at.cancel(b.value)});const _=S=>{r("visibleChange",S)},O=p.computed(()=>{var S,x;const w=d.value||((S=h.value)===null||S===void 0?void 0:S[t.mode])||((x=h.value)===null||x===void 0?void 0:x.other),T=typeof w=="function"?w():w;return T?xp(T.name,{css:!0}):void 0});return()=>{const{prefixCls:S,popupClassName:x,mode:w,popupOffset:T,disabled:P}=t;return p.createVNode(xy,{prefixCls:S,popupClassName:fe(`${S}-popup`,{[`${S}-rtl`]:o.value},x,g.value),stretch:w==="horizontal"?"minWidth":null,getPopupContainer:a.value,builtinPlacements:m.value,popupPlacement:y.value,popupVisible:i.value,popupAlign:T&&{offset:T},action:P?[]:[c.value],mouseEnterDelay:s.value,mouseLeaveDelay:l.value,onPopupVisibleChange:_,forceRender:v||f.value,popupAnimation:O.value},{popup:n.popup,default:n.default})}}}),hT=(t,e)=>{let{slots:n,attrs:r}=e;var i;const{prefixCls:a,mode:o}=Xo();return p.createVNode("ul",H(H({},r),{},{class:fe(a.value,`${a.value}-sub`,`${a.value}-${o.value==="inline"?"inline":"vertical"}`),"data-menu-list":!0}),[(i=n.default)===null||i===void 0?void 0:i.call(n)])};hT.displayName="SubMenuList";const W_e=p.defineComponent({compatConfig:{MODE:3},name:"InlineSubMenuList",inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup(t,e){let{slots:n}=e;const r=p.computed(()=>"inline"),{motion:i,mode:a,defaultMotions:o}=Xo(),s=p.computed(()=>a.value===r.value),l=p.ref(!s.value),u=p.computed(()=>s.value?t.open:!1);p.watch(a,()=>{s.value&&(l.value=!1)},{flush:"post"});const c=p.computed(()=>{var f,d;const h=i.value||((f=o.value)===null||f===void 0?void 0:f[r.value])||((d=o.value)===null||d===void 0?void 0:d.other),g=typeof h=="function"?h():h;return I(I({},g),{appear:t.keyPath.length<=1})});return()=>{var f;return l.value?null:p.createVNode(eb,{mode:r.value},{default:()=>[p.createVNode(p.Transition,c.value,{default:()=>[p.withDirectives(p.createVNode(hT,{id:t.id},{default:()=>[(f=n.default)===null||f===void 0?void 0:f.call(n)]}),[[p.vShow,u.value]])]})]})}}});let gV=0;const Q_e=()=>({icon:Z.any,title:Z.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,theme:String,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function,originItemValue:ut()}),Bf=p.defineComponent({compatConfig:{MODE:3},name:"ASubMenu",inheritAttrs:!1,props:Q_e(),slots:Object,setup(t,e){let{slots:n,attrs:r,emit:i}=e;var a,o;uV(!1);const s=dT(),l=p.getCurrentInstance(),u=typeof l.vnode.key=="symbol"?String(l.vnode.key):l.vnode.key;ii(typeof l.vnode.key!="symbol","SubMenu",`SubMenu \`:key="${String(u)}"\` not support Symbol type`);const c=nw(u)?u:`sub_menu_${++gV}_$$_not_set_key`,f=(a=t.eventKey)!==null&&a!==void 0?a:nw(u)?`sub_menu_${++gV}_$$_${u}`:c,{parentEventKeys:d,parentInfo:h,parentKeys:g}=fT(),v=p.computed(()=>[...g.value,c]),m=p.shallowRef([]),y={eventKey:f,key:c,parentEventKeys:d,childrenEventKeys:m,parentKeys:g};(o=h.childrenEventKeys)===null||o===void 0||o.value.push(f),p.onBeforeUnmount(()=>{var se;h.childrenEventKeys&&(h.childrenEventKeys.value=(se=h.childrenEventKeys)===null||se===void 0?void 0:se.value.filter(ye=>ye!=f))}),N_e(f,c,y);const{prefixCls:b,activeKeys:_,disabled:O,changeActiveKeys:S,mode:x,inlineCollapsed:w,openKeys:T,overflowDisabled:P,onOpenChange:C,registerMenuInfo:$,unRegisterMenuInfo:A,selectedSubMenuKeys:E,expandIcon:D,theme:M}=Xo(),R=u!=null,N=!s&&(sV()||!R);M_e(N),(s&&R||!s&&!R||N)&&($(f,y),p.onBeforeUnmount(()=>{A(f)}));const V=p.computed(()=>`${b.value}-submenu`),L=p.computed(()=>O.value||t.disabled),z=p.shallowRef(),B=p.shallowRef(),F=p.computed(()=>T.value.includes(c)),j=p.computed(()=>!P.value&&F.value),K=p.computed(()=>E.value.includes(c)),q=p.shallowRef(!1);p.watch(_,()=>{q.value=!!_.value.find(se=>se===c)},{immediate:!0});const te=se=>{L.value||(i("titleClick",se,c),x.value==="inline"&&C(c,!F.value))},X=se=>{L.value||(S(v.value),i("mouseenter",se))},ee=se=>{L.value||(S([]),i("mouseleave",se))},G=hV(p.computed(()=>v.value.length)),W=se=>{x.value!=="inline"&&C(c,se)},Q=()=>{S(v.value)},J=f&&`${f}-popup`,ae=p.computed(()=>fe(b.value,`${b.value}-${t.theme||M.value}`,t.popupClassName)),oe=(se,ye)=>{if(!ye)return w.value&&!g.value.length&&se&&typeof se=="string"?p.createVNode("div",{class:`${b.value}-inline-collapsed-noicon`},[se.charAt(0)]):p.createVNode("span",{class:`${b.value}-title-content`},[se]);const Ie=ei(se)&&se.type==="span";return p.createVNode(p.Fragment,null,[en(typeof ye=="function"?ye(t.originItemValue):ye,{class:`${b.value}-item-icon`},!1),Ie?se:p.createVNode("span",{class:`${b.value}-title-content`},[se])])},Se=p.computed(()=>x.value!=="inline"&&v.value.length>1?"vertical":x.value),_e=p.computed(()=>x.value==="horizontal"?"vertical":x.value),ge=p.computed(()=>Se.value==="horizontal"?"vertical":Se.value),de=()=>{var se,ye;const Ie=V.value,Xe=(se=t.icon)!==null&&se!==void 0?se:(ye=n.icon)===null||ye===void 0?void 0:ye.call(n,t),Ke=t.expandIcon||n.expandIcon||D.value,yt=oe(E0(n,t,"title"),Xe);return p.createVNode("div",{style:G.value,class:`${Ie}-title`,tabindex:L.value?null:-1,ref:z,title:typeof yt=="string"?yt:null,"data-menu-id":c,"aria-expanded":j.value,"aria-haspopup":!0,"aria-controls":J,"aria-disabled":L.value,onClick:te,onFocus:Q},[yt,x.value!=="horizontal"&&Ke?Ke(I(I({},t),{isOpen:j.value})):p.createVNode("i",{class:`${Ie}-arrow`},null)])};return()=>{var se;if(s)return R?(se=n.default)===null||se===void 0?void 0:se.call(n):null;const ye=V.value;let Ie=()=>null;if(!P.value&&x.value!=="inline"){const Xe=x.value==="horizontal"?[0,8]:[10,0];Ie=()=>p.createVNode(pV,{mode:Se.value,prefixCls:ye,visible:!t.internalPopupClose&&j.value,popupClassName:ae.value,popupOffset:t.popupOffset||Xe,disabled:L.value,onVisibleChange:W},{default:()=>[de()],popup:()=>p.createVNode(eb,{mode:ge.value},{default:()=>[p.createVNode(hT,{id:J,ref:B},{default:n.default})]})})}else Ie=()=>p.createVNode(pV,null,{default:de});return p.createVNode(eb,{mode:_e.value},{default:()=>[p.createVNode(jo.Item,H(H({component:"li"},r),{},{role:"none",class:fe(ye,`${ye}-${x.value}`,r.class,{[`${ye}-open`]:j.value,[`${ye}-active`]:q.value,[`${ye}-selected`]:K.value,[`${ye}-disabled`]:L.value}),onMouseenter:X,onMouseleave:ee,"data-submenu-id":c}),{default:()=>p.createVNode(p.Fragment,null,[Ie(),!P.value&&p.createVNode(W_e,{id:J,open:j.value,keyPath:v.value},{default:n.default})])})]})}}});function vV(t,e){return t.classList?t.classList.contains(e):` ${t.className} `.indexOf(` ${e} `)>-1}function mV(t,e){t.classList?t.classList.add(e):vV(t,e)||(t.className=`${t.className} ${e}`)}function yV(t,e){if(t.classList)t.classList.remove(e);else if(vV(t,e)){const n=t.className;t.className=` ${n} `.replace(` ${e} `," ")}}const pT=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",mV(n,t)},onEnter:n=>{p.nextTick(()=>{n.style.height=`${n.scrollHeight}px`,n.style.opacity="1"})},onAfterEnter:n=>{n&&(yV(n,t),n.style.height=null,n.style.opacity=null)},onBeforeLeave:n=>{mV(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&&(yV(n,t),n.style&&(n.style.height=null,n.style.opacity=null))}}},H_e=()=>({title:Z.any,originItemValue:ut()}),nb=p.defineComponent({compatConfig:{MODE:3},name:"AMenuItemGroup",inheritAttrs:!1,props:H_e(),slots:Object,setup(t,e){let{slots:n,attrs:r}=e;const{prefixCls:i}=Xo(),a=p.computed(()=>`${i.value}-item-group`),o=dT();return()=>{var s,l;return o?(s=n.default)===null||s===void 0?void 0:s.call(n):p.createVNode("li",H(H({},r),{},{onClick:u=>u.stopPropagation(),class:a.value}),[p.createVNode("div",{title:typeof t.title=="string"?t.title:void 0,class:`${a.value}-title`},[E0(n,t,"title")]),p.createVNode("ul",{class:`${a.value}-list`},[(l=n.default)===null||l===void 0?void 0:l.call(n)])])}}}),j_e=()=>({prefixCls:String,dashed:Boolean}),rb=p.defineComponent({compatConfig:{MODE:3},name:"AMenuDivider",props:j_e(),setup(t){const{prefixCls:e}=Xo(),n=p.computed(()=>({[`${e.value}-item-divider`]:!0,[`${e.value}-item-divider-dashed`]:!!t.dashed}));return()=>p.createVNode("li",{class:n.value},null)}});var G_e=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 gT(t,e,n){return(t||[]).map((r,i)=>{if(r&&typeof r=="object"){const a=r,{label:o,children:s,key:l,type:u}=a,c=G_e(a,["label","children","key","type"]),f=l??`tmp-${i}`,d=n?n.parentKeys.slice():[],h=[],g={eventKey:f,key:f,parentEventKeys:p.ref(d),parentKeys:p.ref(d),childrenEventKeys:p.ref(h),isLeaf:!1};if(s||u==="group"){if(u==="group"){const m=gT(s,e,n);return p.createVNode(nb,H(H({key:f},c),{},{title:o,originItemValue:r}),{default:()=>[m]})}e.set(f,g),n&&n.childrenEventKeys.push(f);const v=gT(s,e,{childrenEventKeys:h,parentKeys:[].concat(d,f)});return p.createVNode(Bf,H(H({key:f},c),{},{title:o,originItemValue:r}),{default:()=>[v]})}return u==="divider"?p.createVNode(rb,H({key:f},c),null):(g.isLeaf=!0,e.set(f,g),p.createVNode(Vf,H(H({key:f},c),{},{originItemValue:r}),{default:()=>[o]}))}return null}).filter(r=>r)}function Z_e(t){const e=p.shallowRef([]),n=p.shallowRef(!1),r=p.shallowRef(new Map);return p.watch(()=>t.items,()=>{const i=new Map;n.value=!1,t.items?(n.value=!0,e.value=gT(t.items,i)):e.value=void 0,r.value=i},{immediate:!0,deep:!0}),{itemsNodes:e,store:r,hasItmes:n}}const U_e=t=>{const{componentCls:e,motionDurationSlow:n,menuHorizontalHeight:r,colorSplit:i,lineWidth:a,lineType:o,menuItemPaddingInline:s}=t;return{[`${e}-horizontal`]:{lineHeight:`${r}px`,border:0,borderBottom:`${a}px ${o} ${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,
  154. > ${e}-item-active,
  155. > ${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"}}}},X_e=t=>{let{componentCls:e,menuArrowOffset:n}=t;return{[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
  156. ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${n})`},"&::after":{transform:`rotate(45deg) translateY(${n})`}}}}},bV=t=>I({},cp(t)),_V=(t,e)=>{const{componentCls:n,colorItemText:r,colorItemTextSelected:i,colorGroupTitle:a,colorItemBg:o,colorSubItemBg:s,colorItemBgSelected:l,colorActiveBarHeight:u,colorActiveBarWidth:c,colorActiveBarBorderSize:f,motionDurationSlow:d,motionEaseInOut:h,motionEaseOut:g,menuItemPaddingInline:v,motionDurationMid:m,colorItemTextHover:y,lineType:b,colorSplit:_,colorItemTextDisabled:O,colorDangerItemText:S,colorDangerItemTextHover:x,colorDangerItemTextSelected:w,colorDangerItemBgActive:T,colorDangerItemBgSelected:P,colorItemBgHover:C,menuSubMenuBg:$,colorItemTextSelectedHorizontal:A,colorItemBgSelectedHorizontal:E}=t;return{[`${n}-${e}`]:{color:r,background:o,[`&${n}-root:focus-visible`]:I({},bV(t)),[`${n}-item-group-title`]:{color:a},[`${n}-submenu-selected`]:{[`> ${n}-submenu-title`]:{color:i}},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${O} !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:C},"&:active":{backgroundColor:l}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:C},"&:active":{backgroundColor:l}}},[`${n}-item-danger`]:{color:S,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:x}},[`&${n}-item:active`]:{background:T}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:i,[`&${n}-item-danger`]:{color:w},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:l,[`&${n}-item-danger`]:{backgroundColor:P}},[`${n}-item, ${n}-submenu-title`]:{[`&:not(${n}-item-disabled):focus-visible`]:I({},bV(t))},[`&${n}-submenu > ${n}`]:{backgroundColor:$},[`&${n}-popup > ${n}`]:{backgroundColor:o},[`&${n}-horizontal`]:I(I({},e==="dark"?{borderBottom:0}:{}),{[`> ${n}-item, > ${n}-submenu`]:{top:f,marginTop:-f,marginBottom:0,borderRadius:0,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${u}px solid transparent`,transition:`border-color ${d} ${h}`,content:'""'},"&:hover, &-active, &-open":{"&::after":{borderBottomWidth:u,borderBottomColor:A}},"&-selected":{color:A,backgroundColor:E,"&::after":{borderBottomWidth:u,borderBottomColor:A}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${f}px ${b} ${_}`}},[`&${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} ${g}`,`opacity ${m} ${g}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:w}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${m} ${h}`,`opacity ${m} ${h}`].join(",")}}}}}},OV=t=>{const{componentCls:e,menuItemHeight:n,itemMarginInline:r,padding:i,menuArrowSize:a,marginXS:o,marginXXS:s}=t,l=i+a+o;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,
  157. > ${e}-submenu > ${e}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${e}-item-group-list ${e}-submenu-title,
  158. ${e}-submenu-title`]:{paddingInlineEnd:l}}},Y_e=t=>{const{componentCls:e,iconCls:n,menuItemHeight:r,colorTextLightSolid:i,dropdownWidth:a,controlHeightLG:o,motionDurationMid:s,motionEaseOut:l,paddingXL:u,fontSizeSM:c,fontSizeLG:f,motionDurationSlow:d,paddingXS:h,boxShadowSecondary:g}=t,v={height:r,lineHeight:`${r}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[e]:{"&-inline, &-vertical":I({[`&${e}-root`]:{boxShadow:"none"}},OV(t))},[`${e}-submenu-popup`]:{[`${e}-vertical`]:I(I({},OV(t)),{boxShadow:g})}},{[`${e}-submenu-popup ${e}-vertical${e}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${o*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`]:v,[`& ${e}-item-group-title`]:{paddingInlineStart:u}},[`${e}-item`]:v}},{[`${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,
  159. > ${e}-item-group > ${e}-item-group-list > ${e}-item,
  160. > ${e}-item-group > ${e}-item-group-list > ${e}-submenu > ${e}-submenu-title,
  161. > ${e}-submenu > ${e}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${c}px)`,textOverflow:"clip",[`
  162. ${e}-submenu-arrow,
  163. ${e}-submenu-expand-icon
  164. `]:{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`]:I(I({},mf),{paddingInline:h})}}]},SV=t=>{const{componentCls:e,fontSize:n,motionDurationSlow:r,motionDurationMid:i,motionEaseInOut:a,motionEaseOut:o,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} ${a}`].join(","),[`${e}-item-icon, ${s}`]:{minWidth:n,fontSize:n,transition:[`font-size ${i} ${o}`,`margin ${r} ${a}`,`color ${r}`].join(","),"+ span":{marginInlineStart:l-n,opacity:1,transition:[`opacity ${r} ${a}`,`margin ${r}`,`color ${r}`].join(",")}},[`${e}-item-icon`]:I({},yf()),[`&${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"}}}},xV=t=>{const{componentCls:e,motionDurationSlow:n,motionEaseInOut:r,borderRadius:i,menuArrowSize:a,menuArrowOffset:o}=t;return{[`${e}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:t.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:a*.6,height:a*.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(-${o})`},"&::after":{transform:`rotate(-45deg) translateY(${o})`}}}}},q_e=t=>{const{antCls:e,componentCls:n,fontSize:r,motionDurationSlow:i,motionDurationMid:a,motionEaseInOut:o,lineHeight:s,paddingXS:l,padding:u,colorSplit:c,lineWidth:f,zIndexPopup:d,borderRadiusLG:h,radiusSubMenuItem:g,menuArrowSize:v,menuArrowOffset:m,lineType:y,menuPanelMaskInset:b}=t;return[{"":{[`${n}`]:I(I({},K0()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:I(I(I(I(I(I(I({},Dt(t)),K0()),{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} ${o}`,`background ${i} ${o}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${i} ${o}`,`background ${i} ${o}`,`padding ${a} ${o}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${i} ${o}`,`padding ${i} ${o}`].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"}}}),SV(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:h,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}`]:I(I(I({borderRadius:h},SV(t)),xV(t)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:g},[`${n}-submenu-title::after`]:{transition:`transform ${i} ${o}`}})}}),xV(t)),{[`&-inline-collapsed ${n}-submenu-arrow,
  165. &-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(-${v*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${m})`},"&::before":{transform:`rotate(45deg) translateX(${m})`}}})},{[`${e}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},K_e=(t,e)=>qt("Menu",(r,i)=>{let{overrideComponentToken:a}=i;if((e==null?void 0:e.value)===!1)return[];const{colorBgElevated:o,colorPrimary:s,colorError:l,colorErrorHover:u,colorTextLightSolid:c}=r,{controlHeightLG:f,fontSize:d}=r,h=d/7*5,g=pt(r,{menuItemHeight:f,menuItemPaddingInline:r.margin,menuArrowSize:h,menuHorizontalHeight:f*1.15,menuArrowOffset:`${h*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:o}),v=new It(c).setAlpha(.65).toRgbString(),m=pt(g,{colorItemText:v,colorItemTextHover:c,colorGroupTitle:v,colorItemTextSelected:c,colorItemBg:"#001529",colorSubItemBg:"#000c17",colorItemBgActive:"transparent",colorItemBgSelected:s,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemTextDisabled:new It(c).setAlpha(.25).toRgbString(),colorDangerItemText:l,colorDangerItemTextHover:u,colorDangerItemTextSelected:c,colorDangerItemBgActive:l,colorDangerItemBgSelected:l,menuSubMenuBg:"#001529",colorItemTextSelectedHorizontal:c,colorItemBgSelectedHorizontal:s},I({},a));return[q_e(g),U_e(g),Y_e(g),_V(g,"light"),_V(m,"dark"),X_e(g),KC(g),Rf(g,"slide-up"),Rf(g,"slide-down"),Wy(g,"zoom-big")]},r=>{const{colorPrimary:i,colorError:a,colorTextDisabled:o,colorErrorBg:s,colorText:l,colorTextDescription:u,colorBgContainer:c,colorFillAlter:f,colorFillContent:d,lineWidth:h,lineWidthBold:g,controlItemBgActive:v,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:v,colorItemBgSelectedHorizontal:"transparent",colorActiveBarWidth:0,colorActiveBarHeight:g,colorActiveBarBorderSize:h,colorItemTextDisabled:o,colorDangerItemText:a,colorDangerItemTextHover:a,colorDangerItemTextSelected:a,colorDangerItemBgActive:s,colorDangerItemBgSelected:s,itemMarginInline:r.marginXXS}})(t),J_e=()=>({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}),wV=[],zs=p.defineComponent({compatConfig:{MODE:3},name:"AMenu",inheritAttrs:!1,props:J_e(),slots:Object,setup(t,e){let{slots:n,emit:r,attrs:i}=e;const{direction:a,getPrefixCls:o}=ct("menu",t),s=rV(),l=p.computed(()=>{var X;return o("menu",t.prefixCls||((X=s==null?void 0:s.prefixCls)===null||X===void 0?void 0:X.value))}),[u,c]=K_e(l,p.computed(()=>!s)),f=p.shallowRef(new Map),d=p.inject(R_e,p.ref(void 0)),h=p.computed(()=>d.value!==void 0?d.value:t.inlineCollapsed),{itemsNodes:g}=Z_e(t),v=p.shallowRef(!1);p.onMounted(()=>{v.value=!0}),p.watchEffect(()=>{ii(!(t.inlineCollapsed===!0&&t.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),ii(!(d.value!==void 0&&t.inlineCollapsed===!0),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.")});const m=p.ref([]),y=p.ref([]),b=p.ref({});p.watch(f,()=>{const X={};for(const ee of f.value.values())X[ee.key]=ee;b.value=X},{flush:"post"}),p.watchEffect(()=>{if(t.activeKey!==void 0){let X=[];const ee=t.activeKey?b.value[t.activeKey]:void 0;ee&&t.activeKey!==void 0?X=YC([].concat(p.unref(ee.parentKeys),t.activeKey)):X=[],Ip(m.value,X)||(m.value=X)}}),p.watch(()=>t.selectedKeys,X=>{X&&(y.value=X.slice())},{immediate:!0,deep:!0});const _=p.ref([]);p.watch([b,y],()=>{let X=[];y.value.forEach(ee=>{const G=b.value[ee];G&&(X=X.concat(p.unref(G.parentKeys)))}),X=YC(X),Ip(_.value,X)||(_.value=X)},{immediate:!0});const O=X=>{if(t.selectable){const{key:ee}=X,G=y.value.includes(ee);let W;t.multiple?G?W=y.value.filter(J=>J!==ee):W=[...y.value,ee]:W=[ee];const Q=I(I({},X),{selectedKeys:W});Ip(W,y.value)||(t.selectedKeys===void 0&&(y.value=W),r("update:selectedKeys",W),G&&t.multiple?r("deselect",Q):r("select",Q))}C.value!=="inline"&&!t.multiple&&S.value.length&&E(wV)},S=p.ref([]);p.watch(()=>t.openKeys,function(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:S.value;Ip(S.value,X)||(S.value=X.slice())},{immediate:!0,deep:!0});let x;const w=X=>{clearTimeout(x),x=setTimeout(()=>{t.activeKey===void 0&&(m.value=X),r("update:activeKey",X[X.length-1])})},T=p.computed(()=>!!t.disabled),P=p.computed(()=>a.value==="rtl"),C=p.ref("vertical"),$=p.shallowRef(!1);p.watchEffect(()=>{var X;(t.mode==="inline"||t.mode==="vertical")&&h.value?(C.value="vertical",$.value=h.value):(C.value=t.mode,$.value=!1),!((X=s==null?void 0:s.mode)===null||X===void 0)&&X.value&&(C.value=s.mode.value)});const A=p.computed(()=>C.value==="inline"),E=X=>{S.value=X,r("update:openKeys",X),r("openChange",X)},D=p.ref(S.value),M=p.shallowRef(!1);p.watch(S,()=>{A.value&&(D.value=S.value)},{immediate:!0}),p.watch(A,()=>{if(!M.value){M.value=!0;return}A.value?S.value=D.value:E(wV)},{immediate:!0});const R=p.computed(()=>({[`${l.value}`]:!0,[`${l.value}-root`]:!0,[`${l.value}-${C.value}`]:!0,[`${l.value}-inline-collapsed`]:$.value,[`${l.value}-rtl`]:P.value,[`${l.value}-${t.theme}`]:!0})),N=p.computed(()=>o()),V=p.computed(()=>({horizontal:{name:`${N.value}-slide-up`},inline:pT(`${N.value}-motion-collapse`),other:{name:`${N.value}-zoom-big`}}));uV(!0);const L=function(){let X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const ee=[],G=f.value;return X.forEach(W=>{const{key:Q,childrenEventKeys:J}=G.get(W);ee.push(Q,...L(p.unref(J)))}),ee},z=X=>{var ee;r("click",X),O(X),(ee=s==null?void 0:s.onClick)===null||ee===void 0||ee.call(s)},B=(X,ee)=>{var G;const W=((G=b.value[X])===null||G===void 0?void 0:G.childrenEventKeys)||[];let Q=S.value.filter(J=>J!==X);if(ee)Q.push(X);else if(C.value!=="inline"){const J=L(p.unref(W));Q=YC(Q.filter(ae=>!J.includes(ae)))}Ip(S,Q)||E(Q)},F=(X,ee)=>{f.value.set(X,ee),f.value=new Map(f.value)},j=X=>{f.value.delete(X),f.value=new Map(f.value)},K=p.ref(0),q=p.computed(()=>{var X;return t.expandIcon||n.expandIcon||!((X=s==null?void 0:s.expandIcon)===null||X===void 0)&&X.value?ee=>{let G=t.expandIcon||n.expandIcon;return G=typeof G=="function"?G(ee):G,en(G,{class:`${l.value}-submenu-expand-icon`},!1)}:null});D_e({prefixCls:l,activeKeys:m,openKeys:S,selectedKeys:y,changeActiveKeys:w,disabled:T,rtl:P,mode:C,inlineIndent:p.computed(()=>t.inlineIndent),subMenuCloseDelay:p.computed(()=>t.subMenuCloseDelay),subMenuOpenDelay:p.computed(()=>t.subMenuOpenDelay),builtinPlacements:p.computed(()=>t.builtinPlacements),triggerSubMenuAction:p.computed(()=>t.triggerSubMenuAction),getPopupContainer:p.computed(()=>t.getPopupContainer),inlineCollapsed:$,theme:p.computed(()=>t.theme),siderCollapsed:d,defaultMotions:p.computed(()=>v.value?V.value:null),motion:p.computed(()=>v.value?t.motion:null),overflowDisabled:p.shallowRef(void 0),onOpenChange:B,onItemClick:z,registerMenuInfo:F,unRegisterMenuInfo:j,selectedSubMenuKeys:_,expandIcon:q,forceSubMenuRender:p.computed(()=>t.forceSubMenuRender),rootClassName:c});const te=()=>{var X;return g.value||bn((X=n.default)===null||X===void 0?void 0:X.call(n))};return()=>{var X;const ee=te(),G=K.value>=ee.length-1||C.value!=="horizontal"||t.disabledOverflow,W=J=>C.value!=="horizontal"||t.disabledOverflow?J:J.map((ae,oe)=>p.createVNode(eb,{key:ae.key,overflowDisabled:oe>K.value},{default:()=>ae})),Q=((X=n.overflowedIndicator)===null||X===void 0?void 0:X.call(n))||p.createVNode(Ky,null,null);return u(p.createVNode(jo,H(H({},i),{},{onMousedown:t.onMousedown,prefixCls:`${l.value}-overflow`,component:"ul",itemComponent:Vf,class:[R.value,i.class,c.value],role:"menu",id:t.id,data:W(ee),renderRawItem:J=>J,renderRawRest:J=>{const ae=J.length,oe=ae?ee.slice(-ae):null;return p.createVNode(p.Fragment,null,[p.createVNode(Bf,{eventKey:tb,key:tb,title:Q,disabled:G,internalPopupClose:ae===0},{default:()=>oe}),p.createVNode(dV,null,{default:()=>[p.createVNode(Bf,{eventKey:tb,key:tb,title:Q,disabled:G,internalPopupClose:ae===0},{default:()=>oe})]})])},maxCount:C.value!=="horizontal"||t.disabledOverflow?jo.INVALIDATE:jo.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:J=>{K.value=J}}),{default:()=>[p.createVNode(p.Teleport,{to:"body"},{default:()=>[p.createVNode("div",{style:{display:"none"},"aria-hidden":!0},[p.createVNode(dV,null,{default:()=>[W(te())]})])]})]}))}}});zs.install=function(t){return t.component(zs.name,zs),t.component(Vf.name,Vf),t.component(Bf.name,Bf),t.component(rb.name,rb),t.component(nb.name,nb),t},zs.Item=Vf,zs.Divider=rb,zs.SubMenu=Bf,zs.ItemGroup=nb;var ib=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ab(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var e1e=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 t1e={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:Z.any,required:Boolean},CV=p.defineComponent({compatConfig:{MODE:3},name:"Checkbox",inheritAttrs:!1,props:Dn(t1e,{prefixCls:"rc-checkbox",type:"checkbox",defaultChecked:!1}),emits:["click","change"],setup(t,e){let{attrs:n,emit:r,expose:i}=e;const a=p.ref(t.checked===void 0?t.defaultChecked:t.checked),o=p.ref();p.watch(()=>t.checked,()=>{a.value=t.checked}),i({focus(){var c;(c=o.value)===null||c===void 0||c.focus()},blur(){var c;(c=o.value)===null||c===void 0||c.blur()}});const s=p.ref(),l=c=>{if(t.disabled)return;t.checked===void 0&&(a.value=c.target.checked),c.shiftKey=s.value;const f={target:I(I({},t),{checked:c.target.checked}),stopPropagation(){c.stopPropagation()},preventDefault(){c.preventDefault()},nativeEvent:c};t.checked!==void 0&&(o.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:h,disabled:g,readonly:v,tabindex:m,autofocus:y,value:b,required:_}=t,O=e1e(t,["prefixCls","name","id","type","disabled","readonly","tabindex","autofocus","value","required"]),{class:S,onFocus:x,onBlur:w,onKeydown:T,onKeypress:P,onKeyup:C}=n,$=I(I({},O),n),A=Object.keys($).reduce((M,R)=>((R.startsWith("data-")||R.startsWith("aria-")||R==="role")&&(M[R]=$[R]),M),{}),E=fe(c,S,{[`${c}-checked`]:a.value,[`${c}-disabled`]:g}),D=I(I({name:f,id:d,type:h,readonly:v,disabled:g,tabindex:m,class:`${c}-input`,checked:!!a.value,autofocus:y,value:b},A),{onChange:l,onClick:u,onFocus:x,onBlur:w,onKeydown:T,onKeypress:P,onKeyup:C,required:_});return p.createVNode("span",{class:E},[p.createVNode("input",H({ref:o},D),null),p.createVNode("span",{class:`${c}-inner`},null)])}}}),TV=Symbol("radioGroupContextKey"),n1e=t=>{p.provide(TV,t)},r1e=()=>p.inject(TV,void 0),PV=Symbol("radioOptionTypeContextKey"),i1e=t=>{p.provide(PV,t)},a1e=()=>p.inject(PV,void 0),o1e=new rt("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),s1e=t=>{const{componentCls:e,antCls:n}=t,r=`${e}-group`;return{[r]:I(I({},Dt(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"}})}},l1e=t=>{const{componentCls:e,radioWrapperMarginRight:n,radioCheckedColor:r,radioSize:i,motionDurationSlow:a,motionDurationMid:o,motionEaseInOut:s,motionEaseInOutCirc:l,radioButtonBg:u,colorBorder:c,lineWidth:f,radioDotSize:d,colorBgContainerDisabled:h,colorTextDisabled:g,paddingXS:v,radioDotDisabledColor:m,lineType:y,radioDotDisabledSize:b,wireframe:_,colorWhite:O}=t,S=`${e}-inner`;return{[`${e}-wrapper`]:I(I({},Dt(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:o1e,animationDuration:a,animationTimingFunction:s,animationFillMode:"both",content:'""'},[e]:I(I({},Dt(t)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center"}),[`${e}-wrapper:hover &,
  166. &:hover ${S}`]:{borderColor:r},[`${e}-input:focus-visible + ${S}`]:I({},cp(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:_?r:O,borderBlockStart:0,borderInlineStart:0,borderRadius:i,transform:"scale(0)",opacity:0,transition:`all ${a} ${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 ${o}`},[`${e}-input`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,zIndex:1,cursor:"pointer",opacity:0},[`${e}-checked`]:{[S]:{borderColor:r,backgroundColor:_?u:r,"&::after":{transform:`scale(${d/i})`,opacity:1,transition:`all ${a} ${l}`}}},[`${e}-disabled`]:{cursor:"not-allowed",[S]:{backgroundColor:h,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:m}},[`${e}-input`]:{cursor:"not-allowed"},[`${e}-disabled + span`]:{color:g,cursor:"not-allowed"},[`&${e}-checked`]:{[S]:{"&::after":{transform:`scale(${b/i})`}}}},[`span${e} + *`]:{paddingInlineStart:v,paddingInlineEnd:v}})}},u1e=t=>{const{radioButtonColor:e,controlHeight:n,componentCls:r,lineWidth:i,lineType:a,colorBorder:o,motionDurationSlow:s,motionDurationMid:l,radioButtonPaddingHorizontal:u,fontSize:c,radioButtonBg:f,fontSizeLG:d,controlHeightLG:h,controlHeightSM:g,paddingXS:v,borderRadius:m,borderRadiusSM:y,borderRadiusLG:b,radioCheckedColor:_,radioButtonCheckedBg:O,radioButtonHoverColor:S,radioButtonActiveColor:x,radioSolidCheckedColor:w,colorTextDisabled:T,colorBgContainerDisabled:P,radioDisabledButtonCheckedColor:C,radioDisabledButtonCheckedBg:$}=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 ${a} ${o}`,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:o,transition:`background-color ${s}`,content:'""'}},"&:first-child":{borderInlineStart:`${i}px ${a} ${o}`,borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m},"&:first-child:last-child":{borderRadius:m},[`${r}-group-large &`]:{height:h,fontSize:d,lineHeight:`${h-i*2}px`,"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},[`${r}-group-small &`]:{height:g,paddingInline:v-i,paddingBlock:0,lineHeight:`${g-i*2}px`,"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},"&:hover":{position:"relative",color:_},"&:has(:focus-visible)":I({},cp(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:_,background:O,borderColor:_,"&::before":{backgroundColor:_},"&:first-child":{borderColor:_},"&:hover":{color:S,borderColor:S,"&::before":{backgroundColor:S}},"&:active":{color:x,borderColor:x,"&::before":{backgroundColor:x}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:w,background:_,borderColor:_,"&:hover":{color:w,background:S,borderColor:S},"&:active":{color:w,background:x,borderColor:x}},"&-disabled":{color:T,backgroundColor:P,borderColor:o,cursor:"not-allowed","&:first-child, &:hover":{color:T,backgroundColor:P,borderColor:o}},[`&-disabled${r}-button-wrapper-checked`]:{color:C,backgroundColor:$,borderColor:o,boxShadow:"none"}}}},$V=qt("Radio",t=>{const{padding:e,lineWidth:n,controlItemBgActiveDisabled:r,colorTextDisabled:i,colorBgContainer:a,fontSizeLG:o,controlOutline:s,colorPrimaryHover:l,colorPrimaryActive:u,colorText:c,colorPrimary:f,marginXS:d,controlOutlineWidth:h,colorTextLightSolid:g,wireframe:v}=t,m=`0 0 0 ${h}px ${s}`,y=m,b=o,_=4,O=b-_*2,S=v?O:b-(_+n)*2,x=f,w=c,T=l,P=u,C=e-n,E=pt(t,{radioFocusShadow:m,radioButtonFocusShadow:y,radioSize:b,radioDotSize:S,radioDotDisabledSize:O,radioCheckedColor:x,radioDotDisabledColor:i,radioSolidCheckedColor:g,radioButtonBg:a,radioButtonCheckedBg:a,radioButtonColor:w,radioButtonHoverColor:T,radioButtonActiveColor:P,radioButtonPaddingHorizontal:C,radioDisabledButtonCheckedBg:r,radioDisabledButtonCheckedColor:i,radioWrapperMarginRight:d});return[s1e(E),l1e(E),u1e(E)]});var c1e=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 AV=()=>({prefixCls:String,checked:We(),disabled:We(),isGroup:We(),value:Z.any,name:String,id:String,autofocus:We(),onChange:Qe(),onFocus:Qe(),onBlur:Qe(),onClick:Qe(),"onUpdate:checked":Qe(),"onUpdate:value":Qe()}),Lr=p.defineComponent({compatConfig:{MODE:3},name:"ARadio",inheritAttrs:!1,props:AV(),setup(t,e){let{emit:n,expose:r,slots:i,attrs:a}=e;const o=Ya(),s=ma.useInject(),l=a1e(),u=r1e(),c=Ha(),f=p.computed(()=>{var T;return(T=v.value)!==null&&T!==void 0?T:c.value}),d=p.ref(),{prefixCls:h,direction:g,disabled:v}=ct("radio",t),m=p.computed(()=>(u==null?void 0:u.optionType.value)==="button"||l==="button"?`${h.value}-button`:h.value),y=Ha(),[b,_]=$V(h);r({focus:()=>{d.value.focus()},blur:()=>{d.value.blur()}});const x=T=>{const P=T.target.checked;n("update:checked",P),n("update:value",P),n("change",T),o.onFieldChange()},w=T=>{n("change",T),u&&u.onChange&&u.onChange(T)};return()=>{var T;const P=u,{prefixCls:C,id:$=o.id.value}=t,A=c1e(t,["prefixCls","id"]),E=I(I({prefixCls:m.value,id:$},Rn(A,["onUpdate:checked","onUpdate:value"])),{disabled:(T=v.value)!==null&&T!==void 0?T:y.value});P?(E.name=P.name.value,E.onChange=w,E.checked=t.value===P.value.value,E.disabled=f.value||P.disabled.value):E.onChange=x;const D=fe({[`${m.value}-wrapper`]:!0,[`${m.value}-wrapper-checked`]:E.checked,[`${m.value}-wrapper-disabled`]:E.disabled,[`${m.value}-wrapper-rtl`]:g.value==="rtl",[`${m.value}-wrapper-in-form-item`]:s.isFormItemInput},a.class,_.value);return b(p.createVNode("label",H(H({},a),{},{class:D}),[p.createVNode(CV,H(H({},E),{},{type:"radio",ref:d}),null),i.default&&p.createVNode("span",null,[i.default()])]))}}}),f1e=()=>({prefixCls:String,value:Z.any,size:Bt(),options:ql(),disabled:We(),name:String,buttonStyle:Bt("outline"),id:String,optionType:Bt("default"),onChange:Qe(),"onUpdate:value":Qe()}),gu=p.defineComponent({compatConfig:{MODE:3},name:"ARadioGroup",inheritAttrs:!1,props:f1e(),setup(t,e){let{slots:n,emit:r,attrs:i}=e;const a=Ya(),{prefixCls:o,direction:s,size:l}=ct("radio",t),[u,c]=$V(o),f=p.ref(t.value),d=p.ref(!1);return p.watch(()=>t.value,g=>{f.value=g,d.value=!1}),n1e({onChange:g=>{const v=f.value,{value:m}=g.target;"value"in t||(f.value=m),!d.value&&m!==v&&(d.value=!0,r("update:value",m),r("change",g),a.onFieldChange()),p.nextTick(()=>{d.value=!1})},value:f,disabled:p.computed(()=>t.disabled),name:p.computed(()=>t.name),optionType:p.computed(()=>t.optionType)}),()=>{var g;const{options:v,buttonStyle:m,id:y=a.id.value}=t,b=`${o.value}-group`,_=fe(b,`${b}-${m}`,{[`${b}-${l.value}`]:l.value,[`${b}-rtl`]:s.value==="rtl"},i.class,c.value);let O=null;return v&&v.length>0?O=v.map(S=>{if(typeof S=="string"||typeof S=="number")return p.createVNode(Lr,{key:S,prefixCls:o.value,disabled:t.disabled,value:S,checked:f.value===S},{default:()=>[S]});const{value:x,disabled:w,label:T}=S;return p.createVNode(Lr,{key:`radio-group-value-options-${x}`,prefixCls:o.value,disabled:w||t.disabled,value:x,checked:f.value===x},{default:()=>[T]})}):O=(g=n.default)===null||g===void 0?void 0:g.call(n),u(p.createVNode("div",H(H({},i),{},{class:_,id:y}),[O]))}}}),qa=p.defineComponent({compatConfig:{MODE:3},name:"ARadioButton",inheritAttrs:!1,props:AV(),setup(t,e){let{slots:n,attrs:r}=e;const{prefixCls:i}=ct("radio",t);return i1e("button"),()=>{var a;return p.createVNode(Lr,H(H(H({},r),t),{},{prefixCls:i.value}),{default:()=>[(a=n.default)===null||a===void 0?void 0:a.call(n)]})}}});Lr.Group=gu,Lr.Button=qa,Lr.install=function(t){return t.component(Lr.name,Lr),t.component(Lr.Group.name,Lr.Group),t.component(Lr.Button.name,Lr.Button),t};const EV=t=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:t,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Dp=t=>({borderColor:t.inputBorderHoverColor,borderInlineEndWidth:t.lineWidth}),ob=t=>({borderColor:t.inputBorderHoverColor,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${t.controlOutline}`,borderInlineEndWidth:t.lineWidth,outline:0}),MV=t=>({color:t.colorTextDisabled,backgroundColor:t.colorBgContainerDisabled,borderColor:t.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":I({},Dp(pt(t,{inputBorderHoverColor:t.colorBorder})))}),IV=t=>{const{inputPaddingVerticalLG:e,fontSizeLG:n,lineHeightLG:r,borderRadiusLG:i,inputPaddingHorizontalLG:a}=t;return{padding:`${e}px ${a}px`,fontSize:n,lineHeight:r,borderRadius:i}},DV=t=>({padding:`${t.inputPaddingVerticalSM}px ${t.controlPaddingHorizontalSM-1}px`,borderRadius:t.borderRadiusSM}),sb=(t,e)=>{const{componentCls:n,colorError:r,colorWarning:i,colorErrorOutline:a,colorWarningOutline:o,colorErrorBorderHover:s,colorWarningBorderHover:l}=t;return{[`&-status-error:not(${e}-disabled):not(${e}-borderless)${e}`]:{borderColor:r,"&:hover":{borderColor:s},"&:focus, &-focused":I({},ob(pt(t,{inputBorderActiveColor:r,inputBorderHoverColor:r,controlOutline:a}))),[`${n}-prefix`]:{color:r}},[`&-status-warning:not(${e}-disabled):not(${e}-borderless)${e}`]:{borderColor:i,"&:hover":{borderColor:l},"&:focus, &-focused":I({},ob(pt(t,{inputBorderActiveColor:i,inputBorderHoverColor:i,controlOutline:o}))),[`${n}-prefix`]:{color:i}}}},lb=t=>I(I({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}`},EV(t.colorTextPlaceholder)),{"&:hover":I({},Dp(t)),"&:focus, &-focused":I({},ob(t)),"&-disabled, &[disabled]":I({},MV(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":I({},IV(t)),"&-sm":I({},DV(t)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),RV=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`]:I({},IV(t)),[`&-sm ${e}, &-sm > ${e}-group-addon`]:I({},DV(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`]:I(I({display:"block"},K0()),{[`${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,
  167. & > ${n}-select-auto-complete ${e},
  168. & > ${n}-cascader-picker ${e},
  169. & > ${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,
  170. & > ${n}-select:first-child > ${n}-select-selector,
  171. & > ${n}-select-auto-complete:first-child ${e},
  172. & > ${n}-cascader-picker:first-child ${e}`]:{borderStartStartRadius:t.borderRadius,borderEndStartRadius:t.borderRadius},[`& > *:last-child,
  173. & > ${n}-select:last-child > ${n}-select-selector,
  174. & > ${n}-cascader-picker:last-child ${e},
  175. & > ${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`}}}},d1e=t=>{const{componentCls:e,controlHeightSM:n,lineWidth:r}=t,a=(n-r*2-16)/2;return{[e]:I(I(I(I({},Dt(t)),lb(t)),sb(t,e)),{'&[type="color"]':{height:t.controlHeight,[`&${e}-lg`]:{height:t.controlHeightLG},[`&${e}-sm`]:{height:n,paddingTop:a,paddingBottom:a}}})}},h1e=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}}}},p1e=t=>{const{componentCls:e,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:i,colorIcon:a,colorIconHover:o,iconCls:s}=t;return{[`${e}-affix-wrapper`]:I(I(I(I(I({},lb(t)),{display:"inline-flex",[`&:not(${e}-affix-wrapper-disabled):hover`]:I(I({},Dp(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}}}),h1e(t)),{[`${s}${e}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:o}}}),sb(t,`${e}-affix-wrapper`))}},g1e=t=>{const{componentCls:e,colorError:n,colorSuccess:r,borderRadiusLG:i,borderRadiusSM:a}=t;return{[`${e}-group`]:I(I(I({},Dt(t)),RV(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:a}},"&-status-error":{[`${e}-group-addon`]:{color:n,borderColor:n}},"&-status-warning":{[`${e}-group-addon:last-child`]:{color:r,borderColor:r}}}})}},v1e=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,
  176. > ${e},
  177. ${e}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${e}-affix-wrapper-focused`]:{zIndex:2}}}}};function kV(t){return pt(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 m1e=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"}}}}},vT=qt("Input",t=>{const e=kV(t);return[d1e(e),m1e(e),p1e(e),g1e(e),v1e(e),Qy(e)]});function y1e(t){const e=p.shallowRef(),n=p.shallowRef(!1);function r(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];n.value||(at.cancel(e.value),e.value=at(()=>{t(...a)}))}return p.onBeforeUnmount(()=>{n.value=!0,at.cancel(e.value)}),r}function b1e(t){const e=p.shallowRef([]),n=p.shallowRef(typeof t=="function"?t():t),r=y1e(()=>{let a=n.value;e.value.forEach(o=>{a=o(a)}),e.value=[],n.value=a});function i(a){e.value.push(a),r()}return[n,i]}const _1e=p.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=p.ref();function a(l){var u;!((u=t.tab)===null||u===void 0)&&u.disabled||t.onClick(l)}n({domRef:i});function o(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=p.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:h,disabled:g,closeIcon:v},renderWrapper:m,removeAriaLabel:y,editable:b,onFocus:_}=t,O=`${u}-tab`,S=p.createVNode("div",{key:d,ref:i,class:fe(O,{[`${O}-with-remove`]:s.value,[`${O}-active`]:f,[`${O}-disabled`]:g}),style:r.style,onClick:a},[p.createVNode("div",{role:"tab","aria-selected":f,id:c&&`${c}-tab-${d}`,class:`${O}-btn`,"aria-controls":c&&`${c}-panel-${d}`,"aria-disabled":g,tabindex:g?null:0,onClick:x=>{x.stopPropagation(),a(x)},onKeydown:x=>{[le.SPACE,le.ENTER].includes(x.which)&&(x.preventDefault(),a(x))},onFocus:_},[typeof h=="function"?h():h]),s.value&&p.createVNode("button",{type:"button","aria-label":y||"remove",tabindex:0,class:`${O}-remove`,onClick:x=>{x.stopPropagation(),o(x)}},[(v==null?void 0:v())||((l=b.removeIcon)===null||l===void 0?void 0:l.call(b))||"×"])]);return m?m(S):S}}}),NV={width:0,height:0,left:0,top:0};function O1e(t,e){const n=p.ref(new Map);return p.watchEffect(()=>{var r,i;const a=new Map,o=t.value,s=e.value.get((r=o[0])===null||r===void 0?void 0:r.key)||NV,l=s.left+s.width;for(let u=0;u<o.length;u+=1){const{key:c}=o[u];let f=e.value.get(c);f||(f=e.value.get((i=o[u-1])===null||i===void 0?void 0:i.key)||NV);const d=a.get(c)||I({},f);d.right=l-d.left-d.width,a.set(c,d)}n.value=new Map(a)}),n}const LV=p.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=p.ref();return n({domRef:i}),()=>{const{prefixCls:a,editable:o,locale:s}=t;return!o||o.showAdd===!1?null:p.createVNode("button",{ref:i,type:"button",class:`${a}-nav-add`,style:r.style,"aria-label":(s==null?void 0:s.addAriaLabel)||"Add tab",onClick:l=>{o.onEdit("add",{event:l})}},[o.addIcon?o.addIcon():"+"])}}}),S1e={prefixCls:{type:String},id:{type:String},tabs:{type:Object},rtl:{type:Boolean},tabBarGutter:{type:Number},activeKey:{type:[String,Number]},mobile:{type:Boolean},moreIcon:Z.any,moreTransitionName:{type:String},editable:{type:Object},locale:{type:Object,default:void 0},removeAriaLabel:String,onTabClick:{type:Function},popupClassName:String,getPopupContainer:Qe()},x1e=p.defineComponent({compatConfig:{MODE:3},name:"OperationNode",inheritAttrs:!1,props:S1e,emits:["tabClick"],slots:Object,setup(t,e){let{attrs:n,slots:r}=e;const[i,a]=Ft(!1),[o,s]=Ft(null),l=h=>{const g=t.tabs.filter(y=>!y.disabled);let v=g.findIndex(y=>y.key===o.value)||0;const m=g.length;for(let y=0;y<m;y+=1){v=(v+h+m)%m;const b=g[v];if(!b.disabled){s(b.key);return}}},u=h=>{const{which:g}=h;if(!i.value){[le.DOWN,le.SPACE,le.ENTER].includes(g)&&(a(!0),h.preventDefault());return}switch(g){case le.UP:l(-1),h.preventDefault();break;case le.DOWN:l(1),h.preventDefault();break;case le.ESC:a(!1);break;case le.SPACE:case le.ENTER:o.value!==null&&t.onTabClick(o.value,h);break}},c=p.computed(()=>`${t.id}-more-popup`),f=p.computed(()=>o.value!==null?`${c.value}-${o.value}`:null),d=(h,g)=>{h.preventDefault(),h.stopPropagation(),t.editable.onEdit("remove",{key:g,event:h})};return p.onMounted(()=>{p.watch(o,()=>{const h=document.getElementById(f.value);h&&h.scrollIntoView&&h.scrollIntoView(!1)},{flush:"post",immediate:!0})}),p.watch(i,()=>{i.value||s(null)}),A_e({}),()=>{var h;const{prefixCls:g,id:v,tabs:m,locale:y,mobile:b,moreIcon:_=((h=r.moreIcon)===null||h===void 0?void 0:h.call(r))||p.createVNode(Ky,null,null),moreTransitionName:O,editable:S,tabBarGutter:x,rtl:w,onTabClick:T,popupClassName:P}=t;if(!m.length)return null;const C=`${g}-dropdown`,$=y==null?void 0:y.dropdownAriaLabel,A={[w?"marginRight":"marginLeft"]:x};m.length||(A.visibility="hidden",A.order=1);const E=fe({[`${C}-rtl`]:w,[`${P}`]:!0}),D=b?null:p.createVNode(Xbe,{prefixCls:C,trigger:["hover"],visible:i.value,transitionName:O,onVisibleChange:a,overlayClassName:E,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:t.getPopupContainer},{overlay:()=>p.createVNode(zs,{onClick:M=>{let{key:R,domEvent:N}=M;T(R,N),a(!1)},id:c.value,tabindex:-1,role:"listbox","aria-activedescendant":f.value,selectedKeys:[o.value],"aria-label":$!==void 0?$:"expanded dropdown"},{default:()=>[m.map(M=>{var R,N;const V=S&&M.closable!==!1&&!M.disabled;return p.createVNode(Vf,{key:M.key,id:`${c.value}-${M.key}`,role:"option","aria-controls":v&&`${v}-panel-${M.key}`,disabled:M.disabled},{default:()=>[p.createVNode("span",null,[typeof M.tab=="function"?M.tab():M.tab]),V&&p.createVNode("button",{type:"button","aria-label":t.removeAriaLabel||"remove",tabindex:0,class:`${C}-menu-item-remove`,onClick:L=>{L.stopPropagation(),d(L,M.key)}},[((R=M.closeIcon)===null||R===void 0?void 0:R.call(M))||((N=S.removeIcon)===null||N===void 0?void 0:N.call(S))||"×"])]})})]}),default:()=>p.createVNode("button",{type:"button",class:`${g}-nav-more`,style:A,tabindex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":c.value,id:`${v}-more`,"aria-expanded":i.value,onKeydown:u},[_])});return p.createVNode("div",{class:fe(`${g}-nav-operations`,n.class),style:n.style},[D,p.createVNode(LV,{prefixCls:g,locale:y,editable:S},null)])}}}),VV=Symbol("tabsContextKey"),BV=t=>{p.provide(VV,t)},zV=()=>p.inject(VV,{tabs:p.ref([]),prefixCls:p.ref()});p.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 BV(p.toRefs(t)),()=>{var r;return(r=n.default)===null||r===void 0?void 0:r.call(n)}}});const w1e=.1,FV=.01,ub=20,WV=Math.pow(.995,ub);function C1e(t,e){const[n,r]=Ft(),[i,a]=Ft(0),[o,s]=Ft(0),[l,u]=Ft(),c=p.ref();function f(S){const{screenX:x,screenY:w}=S.touches[0];r({x,y:w}),clearInterval(c.value)}function d(S){if(!n.value)return;S.preventDefault();const{screenX:x,screenY:w}=S.touches[0],T=x-n.value.x,P=w-n.value.y;e(T,P),r({x,y:w});const C=Date.now();s(C-i.value),a(C),u({x:T,y:P})}function h(){if(!n.value)return;const S=l.value;if(r(null),u(null),S){const x=S.x/o.value,w=S.y/o.value,T=Math.abs(x),P=Math.abs(w);if(Math.max(T,P)<w1e)return;let C=x,$=w;c.value=setInterval(()=>{if(Math.abs(C)<FV&&Math.abs($)<FV){clearInterval(c.value);return}C*=WV,$*=WV,e(C*ub,$*ub)},ub)}}const g=p.ref();function v(S){const{deltaX:x,deltaY:w}=S;let T=0;const P=Math.abs(x),C=Math.abs(w);P===C?T=g.value==="x"?x:w:P>C?(T=x,g.value="x"):(T=w,g.value="y"),e(-T,-T)&&S.preventDefault()}const m=p.ref({onTouchStart:f,onTouchMove:d,onTouchEnd:h,onWheel:v});function y(S){m.value.onTouchStart(S)}function b(S){m.value.onTouchMove(S)}function _(S){m.value.onTouchEnd(S)}function O(S){m.value.onWheel(S)}p.onMounted(()=>{var S,x;document.addEventListener("touchmove",b,{passive:!1}),document.addEventListener("touchend",_,{passive:!1}),(S=t.value)===null||S===void 0||S.addEventListener("touchstart",y,{passive:!1}),(x=t.value)===null||x===void 0||x.addEventListener("wheel",O,{passive:!1})}),p.onBeforeUnmount(()=>{document.removeEventListener("touchmove",b),document.removeEventListener("touchend",_)})}function QV(t,e){const n=p.ref(t);function r(i){const a=typeof i=="function"?i(n.value):i;a!==n.value&&e(a,n.value),n.value=a}return[n,r]}const T1e=()=>{const t=p.ref(new Map),e=n=>r=>{t.value.set(n,r)};return p.onBeforeUpdate(()=>{t.value=new Map}),[e,t]},HV={width:0,height:0,left:0,top:0,right:0},P1e=()=>({id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:ut(),editable:ut(),moreIcon:Z.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:ut(),popupClassName:String,getPopupContainer:Qe(),onTabClick:{type:Function},onTabScroll:{type:Function}}),$1e=(t,e)=>{const{offsetWidth:n,offsetHeight:r,offsetTop:i,offsetLeft:a}=t,{width:o,height:s,x:l,y:u}=t.getBoundingClientRect();return Math.abs(o-n)<1?[o,s,l-e.x,u-e.y]:[n,r,a,i]},jV=p.defineComponent({compatConfig:{MODE:3},name:"TabNavList",inheritAttrs:!1,props:P1e(),slots:Object,emits:["tabClick","tabScroll"],setup(t,e){let{attrs:n,slots:r}=e;const{tabs:i,prefixCls:a}=zV(),o=p.shallowRef(),s=p.shallowRef(),l=p.shallowRef(),u=p.shallowRef(),[c,f]=T1e(),d=p.computed(()=>t.tabPosition==="top"||t.tabPosition==="bottom"),[h,g]=QV(0,(de,se)=>{d.value&&t.onTabScroll&&t.onTabScroll({direction:de>se?"left":"right"})}),[v,m]=QV(0,(de,se)=>{!d.value&&t.onTabScroll&&t.onTabScroll({direction:de>se?"top":"bottom"})}),[y,b]=Ft(0),[_,O]=Ft(0),[S,x]=Ft(null),[w,T]=Ft(null),[P,C]=Ft(0),[$,A]=Ft(0),[E,D]=b1e(new Map),M=O1e(i,E),R=p.computed(()=>`${a.value}-nav-operations-hidden`),N=p.shallowRef(0),V=p.shallowRef(0);p.watchEffect(()=>{d.value?t.rtl?(N.value=0,V.value=Math.max(0,y.value-S.value)):(N.value=Math.min(0,S.value-y.value),V.value=0):(N.value=Math.min(0,w.value-_.value),V.value=0)});const L=de=>de<N.value?N.value:de>V.value?V.value:de,z=p.shallowRef(),[B,F]=Ft(),j=()=>{F(Date.now())},K=()=>{clearTimeout(z.value)},q=(de,se)=>{de(ye=>L(ye+se))};C1e(o,(de,se)=>{if(d.value){if(S.value>=y.value)return!1;q(g,de)}else{if(w.value>=_.value)return!1;q(m,se)}return K(),j(),!0}),p.watch(B,()=>{K(),B.value&&(z.value=setTimeout(()=>{F(0)},100))});const te=function(){let de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:t.activeKey;const se=M.value.get(de)||{width:0,height:0,left:0,right:0,top:0};if(d.value){let ye=h.value;t.rtl?se.right<h.value?ye=se.right:se.right+se.width>h.value+S.value&&(ye=se.right+se.width-S.value):se.left<-h.value?ye=-se.left:se.left+se.width>-h.value+S.value&&(ye=-(se.left+se.width-S.value)),m(0),g(L(ye))}else{let ye=v.value;se.top<-v.value?ye=-se.top:se.top+se.height>-v.value+w.value&&(ye=-(se.top+se.height-w.value)),g(0),m(L(ye))}},X=p.shallowRef(0),ee=p.shallowRef(0);p.watchEffect(()=>{let de,se,ye,Ie,Xe,Ke;const yt=M.value;["top","bottom"].includes(t.tabPosition)?(de="width",Ie=S.value,Xe=y.value,Ke=P.value,se=t.rtl?"right":"left",ye=Math.abs(h.value)):(de="height",Ie=w.value,Xe=y.value,Ke=$.value,se="top",ye=-v.value);let ue=Ie;Xe+Ke>Ie&&Xe<Ie&&(ue=Ie-Ke);const Ve=i.value;if(!Ve.length)return[X.value,ee.value]=[0,0];const bt=Ve.length;let dn=bt;for(let hr=0;hr<bt;hr+=1){const Wa=yt.get(Ve[hr].key)||HV;if(Wa[se]+Wa[de]>ye+ue){dn=hr-1;break}}let Gt=0;for(let hr=bt-1;hr>=0;hr-=1)if((yt.get(Ve[hr].key)||HV)[se]<ye){Gt=hr+1;break}return[X.value,ee.value]=[Gt,dn]});const G=()=>{D(()=>{var de;const se=new Map,ye=(de=s.value)===null||de===void 0?void 0:de.getBoundingClientRect();return i.value.forEach(Ie=>{let{key:Xe}=Ie;const Ke=f.value.get(Xe),yt=(Ke==null?void 0:Ke.$el)||Ke;if(yt){const[ue,Ve,bt,dn]=$1e(yt,ye);se.set(Xe,{width:ue,height:Ve,left:bt,top:dn})}}),se})};p.watch(()=>i.value.map(de=>de.key).join("%%"),()=>{G()},{flush:"post"});const W=()=>{var de,se,ye,Ie,Xe;const Ke=((de=o.value)===null||de===void 0?void 0:de.offsetWidth)||0,yt=((se=o.value)===null||se===void 0?void 0:se.offsetHeight)||0,ue=((ye=u.value)===null||ye===void 0?void 0:ye.$el)||{},Ve=ue.offsetWidth||0,bt=ue.offsetHeight||0;x(Ke),T(yt),C(Ve),A(bt);const dn=(((Ie=s.value)===null||Ie===void 0?void 0:Ie.offsetWidth)||0)-Ve,Gt=(((Xe=s.value)===null||Xe===void 0?void 0:Xe.offsetHeight)||0)-bt;b(dn),O(Gt),G()},Q=p.computed(()=>[...i.value.slice(0,X.value),...i.value.slice(ee.value+1)]),[J,ae]=Ft(),oe=p.computed(()=>M.value.get(t.activeKey)),Se=p.shallowRef(),_e=()=>{at.cancel(Se.value)};p.watch([oe,d,()=>t.rtl],()=>{const de={};oe.value&&(d.value?(t.rtl?de.right=rp(oe.value.right):de.left=rp(oe.value.left),de.width=rp(oe.value.width)):(de.top=rp(oe.value.top),de.height=rp(oe.value.height))),_e(),Se.value=at(()=>{ae(de)})}),p.watch([()=>t.activeKey,oe,M,d],()=>{te()},{flush:"post"}),p.watch([()=>t.rtl,()=>t.tabBarGutter,()=>t.activeKey,()=>i.value],()=>{W()},{flush:"post"});const ge=de=>{let{position:se,prefixCls:ye,extra:Ie}=de;if(!Ie)return null;const Xe=Ie==null?void 0:Ie({position:se});return Xe?p.createVNode("div",{class:`${ye}-extra-content`},[Xe]):null};return p.onBeforeUnmount(()=>{K(),_e()}),()=>{const{id:de,animated:se,activeKey:ye,rtl:Ie,editable:Xe,locale:Ke,tabPosition:yt,tabBarGutter:ue,onTabClick:Ve}=t,{class:bt,style:dn}=n,Gt=a.value,hr=!!Q.value.length,Wa=`${Gt}-nav-wrap`;let S0,x0,qx,QN;d.value?Ie?(x0=h.value>0,S0=h.value+S.value<y.value):(S0=h.value<0,x0=-h.value+S.value<y.value):(qx=v.value<0,QN=-v.value+w.value<_.value);const ep={};yt==="top"||yt==="bottom"?ep[Ie?"marginRight":"marginLeft"]=typeof ue=="number"?`${ue}px`:ue:ep.marginTop=typeof ue=="number"?`${ue}px`:ue;const HN=i.value.map((w0,jN)=>{const{key:tp}=w0;return p.createVNode(_1e,{id:de,prefixCls:Gt,key:tp,tab:w0,style:jN===0?void 0:ep,closable:w0.closable,editable:Xe,active:tp===ye,removeAriaLabel:Ke==null?void 0:Ke.removeAriaLabel,ref:c(tp),onClick:Ose=>{Ve(tp,Ose)},onFocus:()=>{te(tp),j(),o.value&&(Ie||(o.value.scrollLeft=0),o.value.scrollTop=0)}},r)});return p.createVNode("div",{role:"tablist",class:fe(`${Gt}-nav`,bt),style:dn,onKeydown:()=>{j()}},[p.createVNode(ge,{position:"left",prefixCls:Gt,extra:r.leftExtra},null),p.createVNode(cf,{onResize:W},{default:()=>[p.createVNode("div",{class:fe(Wa,{[`${Wa}-ping-left`]:S0,[`${Wa}-ping-right`]:x0,[`${Wa}-ping-top`]:qx,[`${Wa}-ping-bottom`]:QN}),ref:o},[p.createVNode(cf,{onResize:W},{default:()=>[p.createVNode("div",{ref:s,class:`${Gt}-nav-list`,style:{transform:`translate(${h.value}px, ${v.value}px)`,transition:B.value?"none":void 0}},[HN,p.createVNode(LV,{ref:u,prefixCls:Gt,locale:Ke,editable:Xe,style:I(I({},HN.length===0?void 0:ep),{visibility:hr?"hidden":null})},null),p.createVNode("div",{class:fe(`${Gt}-ink-bar`,{[`${Gt}-ink-bar-animated`]:se.inkBar}),style:J.value},null)])]})])]}),p.createVNode(x1e,H(H({},t),{},{removeAriaLabel:Ke==null?void 0:Ke.removeAriaLabel,ref:l,prefixCls:Gt,tabs:Q.value,class:!hr&&R.value}),Mp(r,["moreIcon"])),p.createVNode(ge,{position:"right",prefixCls:Gt,extra:r.rightExtra},null),p.createVNode(ge,{position:"right",prefixCls:Gt,extra:r.tabBarExtraContent},null)])}}}),A1e=p.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}=zV();return()=>{const{id:r,activeKey:i,animated:a,tabPosition:o,rtl:s,destroyInactiveTabPane:l}=t,u=a.tabPane,c=n.value,f=e.value.findIndex(d=>d.key===i);return p.createVNode("div",{class:`${c}-content-holder`},[p.createVNode("div",{class:[`${c}-content`,`${c}-content-${o}`,{[`${c}-content-animated`]:u}],style:f&&u?{[s?"marginRight":"marginLeft"]:`-${f}00%`}:null},[e.value.map(d=>en(d.node,{key:d.key,prefixCls:c,tabKey:d.key,id:r,animated:u,active:d.key===i,destroyInactiveTabPane:l}))])])}}});var E1e={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 GV(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){M1e(t,i,n[i])})}return t}function M1e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var cb=function(e,n){var r=GV({},e,n.attrs);return p.createVNode(Ze,GV({},r,{icon:E1e}),null)};cb.displayName="PlusOutlined",cb.inheritAttrs=!1;const I1e=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}`}}}}},[Rf(t,"slide-up"),Rf(t,"slide-down")]]},D1e=t=>{const{componentCls:e,tabsCardHorizontalPadding:n,tabsCardHeadBackground:r,tabsCardGutter:i,colorSplit:a}=t;return{[`${e}-card`]:{[`> ${e}-nav, > div > ${e}-nav`]:{[`${e}-tab`]:{margin:0,padding:n,background:r,border:`${t.lineWidth}px ${t.lineType} ${a}`,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}}}}}}},R1e=t=>{const{componentCls:e,tabsHoverColor:n,dropdownEdgeChildVerticalPadding:r}=t;return{[`${e}-dropdown`]:I(I({},Dt(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":I(I({},mf),{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"}}})}})}},k1e=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},
  178. 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,
  179. > 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}}}}}},N1e=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`}}}}}},L1e=t=>{const{componentCls:e,tabsActiveColor:n,tabsHoverColor:r,iconCls:i,tabsHorizontalGutter:a}=t,o=`${e}-tab`;return{[o]:{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":I({"&:focus:not(:focus-visible), &:active":{color:n}},J0(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},[`&${o}-active ${o}-btn`]:{color:t.colorPrimary,textShadow:t.tabsActiveTextShadow},[`&${o}-disabled`]:{color:t.colorTextDisabled,cursor:"not-allowed"},[`&${o}-disabled ${o}-btn, &${o}-disabled ${e}-remove`]:{"&:focus, &:active":{color:t.colorTextDisabled}},[`& ${o}-remove ${i}`]:{margin:0},[i]:{marginRight:{_skip_check_:!0,value:t.marginSM}}},[`${o} + ${o}`]:{margin:{_skip_check_:!0,value:`0 0 0 ${a}px`}}}},V1e=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"}}}}},B1e=t=>{const{componentCls:e,tabsCardHorizontalPadding:n,tabsCardHeight:r,tabsCardGutter:i,tabsHoverColor:a,tabsActiveColor:o,colorSplit:s}=t;return{[e]:I(I(I(I({},Dt(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`]:I({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:a},"&:active, &:focus:not(:focus-visible)":{color:o}},J0(t))},[`${e}-extra-content`]:{flex:"none"},[`${e}-ink-bar`]:{position:"absolute",background:t.colorPrimary,pointerEvents:"none"}}),L1e(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"}}}}}},z1e=qt("Tabs",t=>{const e=t.controlHeightLG,n=pt(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[N1e(n),V1e(n),k1e(n),R1e(n),D1e(n),B1e(n),I1e(n)]},t=>({zIndexPopup:t.zIndexPopupBase+50}));let ZV=0;const UV=()=>({prefixCls:{type:String},id:{type:String},popupClassName:String,getPopupContainer:Qe(),activeKey:{type:[String,Number]},defaultActiveKey:{type:[String,Number]},direction:Bt(),animated:Zt([Boolean,Object]),renderTabBar:Qe(),tabBarGutter:{type:Number},tabBarStyle:ut(),tabPosition:Bt(),destroyInactiveTabPane:We(),hideAdd:Boolean,type:Bt(),size:Bt(),centered:Boolean,onEdit:Qe(),onChange:Qe(),onTabClick:Qe(),onTabScroll:Qe(),"onUpdate:activeKey":Qe(),locale:ut(),onPrevClick:Qe(),onNextClick:Qe(),tabBarExtraContent:Z.any});function F1e(t){return t.map(e=>{if(ei(e)){const n=I({},e.props||{});for(const[d,h]of Object.entries(n))delete n[d],n[ew(d)]=h;const r=e.children||{},i=e.key!==void 0?e.key:void 0,{tab:a=r.tab,disabled:o,forceRender:s,closable:l,animated:u,active:c,destroyInactiveTabPane:f}=n;return I(I({key:i},n),{node:e,closeIcon:r.closeIcon,tab:a,disabled:o===""||o,forceRender:s===""||s,closable:l===""||l,animated:u===""||u,active:c===""||c,destroyInactiveTabPane:f===""||f})}return null}).filter(e=>e)}const W1e=p.defineComponent({compatConfig:{MODE:3},name:"InternalTabs",inheritAttrs:!1,props:I(I({},Dn(UV(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}})),{tabs:ql()}),slots:Object,setup(t,e){let{attrs:n,slots:r}=e;ii(t.onPrevClick===void 0&&t.onNextClick===void 0,"Tabs","`onPrevClick / @prevClick` and `onNextClick / @nextClick` has been removed. Please use `onTabScroll / @tabScroll` instead."),ii(t.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` prop has been removed. Please use `rightExtra` slot instead."),ii(r.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` slot is deprecated. Please use `rightExtra` slot instead.");const{prefixCls:i,direction:a,size:o,rootPrefixCls:s,getPopupContainer:l}=ct("tabs",t),[u,c]=z1e(i),f=p.computed(()=>a.value==="rtl"),d=p.computed(()=>{const{animated:w,tabPosition:T}=t;return w===!1||["left","right"].includes(T)?{inkBar:!1,tabPane:!1}:w===!0?{inkBar:!0,tabPane:!0}:I({inkBar:!0,tabPane:!1},typeof w=="object"?w:{})}),[h,g]=Ft(!1);p.onMounted(()=>{g(bC())});const[v,m]=Ef(()=>{var w;return(w=t.tabs[0])===null||w===void 0?void 0:w.key},{value:p.computed(()=>t.activeKey),defaultValue:t.defaultActiveKey}),[y,b]=Ft(()=>t.tabs.findIndex(w=>w.key===v.value));p.watchEffect(()=>{var w;let T=t.tabs.findIndex(P=>P.key===v.value);T===-1&&(T=Math.max(0,Math.min(y.value,t.tabs.length-1)),m((w=t.tabs[T])===null||w===void 0?void 0:w.key)),b(T)});const[_,O]=Ef(null,{value:p.computed(()=>t.id)}),S=p.computed(()=>h.value&&!["left","right"].includes(t.tabPosition)?"top":t.tabPosition);p.onMounted(()=>{t.id||(O(`rc-tabs-${process.env.NODE_ENV==="test"?"test":ZV}`),ZV+=1)});const x=(w,T)=>{var P,C;(P=t.onTabClick)===null||P===void 0||P.call(t,w,T);const $=w!==v.value;m(w),$&&((C=t.onChange)===null||C===void 0||C.call(t,w))};return BV({tabs:p.computed(()=>t.tabs),prefixCls:i}),()=>{const{id:w,type:T,tabBarGutter:P,tabBarStyle:C,locale:$,destroyInactiveTabPane:A,renderTabBar:E=r.renderTabBar,onTabScroll:D,hideAdd:M,centered:R}=t,N={id:_.value,activeKey:v.value,animated:d.value,tabPosition:S.value,rtl:f.value,mobile:h.value};let V;T==="editable-card"&&(V={onEdit:(F,j)=>{let{key:K,event:q}=j;var te;(te=t.onEdit)===null||te===void 0||te.call(t,F==="add"?q:K,F)},removeIcon:()=>p.createVNode(Go,null,null),addIcon:r.addIcon?r.addIcon:()=>p.createVNode(cb,null,null),showAdd:M!==!0});let L;const z=I(I({},N),{moreTransitionName:`${s.value}-slide-up`,editable:V,locale:$,tabBarGutter:P,onTabClick:x,onTabScroll:D,style:C,getPopupContainer:l.value,popupClassName:fe(t.popupClassName,c.value)});E?L=E(I(I({},z),{DefaultTabBar:jV})):L=p.createVNode(jV,z,Mp(r,["moreIcon","leftExtra","rightExtra","tabBarExtraContent"]));const B=i.value;return u(p.createVNode("div",H(H({},n),{},{id:w,class:fe(B,`${B}-${S.value}`,{[c.value]:!0,[`${B}-${o.value}`]:o.value,[`${B}-card`]:["card","editable-card"].includes(T),[`${B}-editable-card`]:T==="editable-card",[`${B}-centered`]:R,[`${B}-mobile`]:h.value,[`${B}-editable`]:T==="editable-card",[`${B}-rtl`]:f.value},n.class)}),[L,p.createVNode(A1e,H(H({destroyInactiveTabPane:A},N),{},{animated:d.value}),null)]))}}}),vu=p.defineComponent({compatConfig:{MODE:3},name:"ATabs",inheritAttrs:!1,props:Dn(UV(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}}),slots:Object,setup(t,e){let{attrs:n,slots:r,emit:i}=e;const a=o=>{i("update:activeKey",o),i("change",o)};return()=>{var o;const s=F1e(bn((o=r.default)===null||o===void 0?void 0:o.call(r)));return p.createVNode(W1e,H(H(H({},Rn(t,["onUpdate:activeKey"])),n),{},{onChange:a,tabs:s}),r)}}}),Q1e=()=>({tab:Z.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}}),Yo=p.defineComponent({compatConfig:{MODE:3},name:"ATabPane",inheritAttrs:!1,__ANT_TAB_PANE:!0,props:Q1e(),slots:Object,setup(t,e){let{attrs:n,slots:r}=e;const i=p.ref(t.forceRender);p.watch([()=>t.active,()=>t.destroyInactiveTabPane],()=>{t.active?i.value=!0:t.destroyInactiveTabPane&&(i.value=!1)},{immediate:!0});const a=p.computed(()=>t.active?{}:t.animated?{visibility:"hidden",height:0,overflowY:"hidden"}:{display:"none"});return()=>{var o;const{prefixCls:s,forceRender:l,id:u,active:c,tabKey:f}=t;return p.createVNode("div",{id:u&&`${u}-panel-${f}`,role:"tabpanel",tabindex:c?0:-1,"aria-labelledby":u&&`${u}-tab-${f}`,"aria-hidden":!c,style:[a.value,n.style],class:[`${s}-tabpane`,c&&`${s}-tabpane-active`,n.class]},[(c||i.value||l)&&((o=r.default)===null||o===void 0?void 0:o.call(r))])}}});vu.TabPane=Yo,vu.install=function(t){return t.component(vu.name,vu),t.component(Yo.name,Yo),t};const H1e=()=>({prefixCls:String,activeKey:Zt([Array,Number,String]),defaultActiveKey:Zt([Array,Number,String]),accordion:We(),destroyInactivePanel:We(),bordered:We(),expandIcon:Qe(),openAnimation:Z.object,expandIconPosition:Bt(),collapsible:Bt(),ghost:We(),onChange:Qe(),"onUpdate:activeKey":Qe()}),XV=()=>({openAnimation:Z.object,prefixCls:String,header:Z.any,headerClass:String,showArrow:We(),isActive:We(),destroyInactivePanel:We(),disabled:We(),accordion:We(),forceRender:We(),expandIcon:Qe(),extra:Z.any,panelKey:Zt(),collapsible:Bt(),role:String,onItemClick:Qe()}),j1e=t=>{const{componentCls:e,collapseContentBg:n,padding:r,collapseContentPaddingHorizontal:i,collapseHeaderBg:a,collapseHeaderPadding:o,collapsePanelBorderRadius:s,lineWidth:l,lineType:u,colorBorder:c,colorText:f,colorTextHeading:d,colorTextDisabled:h,fontSize:g,lineHeight:v,marginSM:m,paddingSM:y,motionDurationSlow:b,fontSizeIcon:_}=t,O=`${l}px ${u} ${c}`;return{[e]:I(I({},Dt(t)),{backgroundColor:a,border:O,borderBottom:0,borderRadius:`${s}px`,"&-rtl":{direction:"rtl"},[`& > ${e}-item`]:{borderBottom:O,"&:last-child":{[`
  180. &,
  181. & > ${e}-header`]:{borderRadius:`0 0 ${s}px ${s}px`}},[`> ${e}-header`]:{position:"relative",display:"flex",flexWrap:"nowrap",alignItems:"flex-start",padding:o,color:d,lineHeight:v,cursor:"pointer",transition:`all ${b}, visibility 0s`,[`> ${e}-header-text`]:{flex:"auto"},"&:focus":{outline:"none"},[`${e}-expand-icon`]:{height:g*v,display:"flex",alignItems:"center",paddingInlineEnd:m},[`${e}-arrow`]:I(I({},yf()),{fontSize:_,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:O,[`& > ${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:h,cursor:"not-allowed"}},[`&${e}-icon-position-end`]:{[`& > ${e}-item`]:{[`> ${e}-header`]:{[`${e}-expand-icon`]:{order:1,paddingInlineEnd:0,paddingInlineStart:m}}}}})}},G1e=t=>{const{componentCls:e}=t,n=`> ${e}-item > ${e}-header ${e}-arrow svg`;return{[`${e}-rtl`]:{[n]:{transform:"rotate(180deg)"}}}},Z1e=t=>{const{componentCls:e,collapseHeaderBg:n,paddingXXS:r,colorBorder:i}=t;return{[`${e}-borderless`]:{backgroundColor:n,border:0,[`> ${e}-item`]:{borderBottom:`1px solid ${i}`},[`
  182. > ${e}-item:last-child,
  183. > ${e}-item:last-child ${e}-header
  184. `]:{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}}}},U1e=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}}}}}},X1e=qt("Collapse",t=>{const e=pt(t,{collapseContentBg:t.colorBgContainer,collapseHeaderBg:t.colorFillAlter,collapseHeaderPadding:`${t.paddingSM}px ${t.padding}px`,collapsePanelBorderRadius:t.borderRadiusLG,collapseContentPaddingHorizontal:16});return[j1e(e),Z1e(e),U1e(e),G1e(e),KC(e)]});function YV(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 Rp=p.defineComponent({compatConfig:{MODE:3},name:"ACollapse",inheritAttrs:!1,props:Dn(H1e(),{accordion:!1,destroyInactivePanel:!1,bordered:!0,expandIconPosition:"start"}),slots:Object,setup(t,e){let{attrs:n,slots:r,emit:i}=e;const a=p.ref(YV(F3([t.activeKey,t.defaultActiveKey])));p.watch(()=>t.activeKey,()=>{a.value=YV(t.activeKey)},{deep:!0});const{prefixCls:o,direction:s,rootPrefixCls:l}=ct("collapse",t),[u,c]=X1e(o),f=p.computed(()=>{const{expandIconPosition:y}=t;return y!==void 0?y:s.value==="rtl"?"end":"start"}),d=y=>{const{expandIcon:b=r.expandIcon}=t,_=b?b(y):p.createVNode(Jy,{rotate:y.isActive?90:void 0},null);return p.createVNode("div",{class:[`${o.value}-expand-icon`,c.value],onClick:()=>["header","icon"].includes(t.collapsible)&&g(y.panelKey)},[ei(Array.isArray(b)?_[0]:_)?en(_,{class:`${o.value}-arrow`},!1):_])},h=y=>{t.activeKey===void 0&&(a.value=y);const b=t.accordion?y[0]:y;i("update:activeKey",b),i("change",b)},g=y=>{let b=a.value;if(t.accordion)b=b[0]===y?[]:[y];else{b=[...b];const _=b.indexOf(y);_>-1?b.splice(_,1):b.push(y)}h(b)},v=(y,b)=>{var _,O,S;if(rw(y))return;const x=a.value,{accordion:w,destroyInactivePanel:T,collapsible:P,openAnimation:C}=t,$=C||pT(`${l.value}-motion-collapse`),A=String((_=y.key)!==null&&_!==void 0?_:b),{header:E=(S=(O=y.children)===null||O===void 0?void 0:O.header)===null||S===void 0?void 0:S.call(O),headerClass:D,collapsible:M,disabled:R}=y.props||{};let N=!1;w?N=x[0]===A:N=x.indexOf(A)>-1;let V=M??P;(R||R==="")&&(V="disabled");const L={key:A,panelKey:A,header:E,headerClass:D,isActive:N,prefixCls:o.value,destroyInactivePanel:T,openAnimation:$,accordion:w,onItemClick:V==="disabled"?null:g,expandIcon:d,collapsible:V};return en(y,L)},m=()=>{var y;return bn((y=r.default)===null||y===void 0?void 0:y.call(r)).map(v)};return()=>{const{accordion:y,bordered:b,ghost:_}=t,O=fe(o.value,{[`${o.value}-borderless`]:!b,[`${o.value}-icon-position-${f.value}`]:!0,[`${o.value}-rtl`]:s.value==="rtl",[`${o.value}-ghost`]:!!_,[n.class]:!!n.class},c.value);return u(p.createVNode("div",H(H({class:O},Zse(n)),{},{style:n.style,role:y?"tablist":null}),[m()]))}}}),Y1e=p.defineComponent({compatConfig:{MODE:3},name:"PanelContent",props:XV(),setup(t,e){let{slots:n}=e;const r=p.shallowRef(!1);return p.watchEffect(()=>{(t.isActive||t.forceRender)&&(r.value=!0)}),()=>{var i;if(!r.value)return null;const{prefixCls:a,isActive:o,role:s}=t;return p.createVNode("div",{class:fe(`${a}-content`,{[`${a}-content-active`]:o,[`${a}-content-inactive`]:!o}),role:s},[p.createVNode("div",{class:`${a}-content-box`},[(i=n.default)===null||i===void 0?void 0:i.call(n)])])}}}),fb=p.defineComponent({compatConfig:{MODE:3},name:"ACollapsePanel",inheritAttrs:!1,props:Dn(XV(),{showArrow:!0,isActive:!1,onItemClick(){},headerClass:"",forceRender:!1}),slots:Object,setup(t,e){let{slots:n,emit:r,attrs:i}=e;ii(t.disabled===void 0,"Collapse.Panel",'`disabled` is deprecated. Please use `collapsible="disabled"` instead.');const{prefixCls:a}=ct("collapse",t),o=()=>{r("itemClick",t.panelKey)},s=l=>{(l.key==="Enter"||l.keyCode===13||l.which===13)&&o()};return()=>{var l,u;const{header:c=(l=n.header)===null||l===void 0?void 0:l.call(n),headerClass:f,isActive:d,showArrow:h,destroyInactivePanel:g,accordion:v,forceRender:m,openAnimation:y,expandIcon:b=n.expandIcon,extra:_=(u=n.extra)===null||u===void 0?void 0:u.call(n),collapsible:O}=t,S=O==="disabled",x=a.value,w=fe(`${x}-header`,{[f]:f,[`${x}-header-collapsible-only`]:O==="header",[`${x}-icon-collapsible-only`]:O==="icon"}),T=fe({[`${x}-item`]:!0,[`${x}-item-active`]:d,[`${x}-item-disabled`]:S,[`${x}-no-arrow`]:!h,[`${i.class}`]:!!i.class});let P=p.createVNode("i",{class:"arrow"},null);h&&typeof b=="function"&&(P=b(t));const C=p.withDirectives(p.createVNode(Y1e,{prefixCls:x,isActive:d,forceRender:m,role:v?"tabpanel":null},{default:n.default}),[[p.vShow,d]]),$=I({appear:!1,css:!1},y);return p.createVNode("div",H(H({},i),{},{class:T}),[p.createVNode("div",{class:w,onClick:()=>!["header","icon"].includes(O)&&o(),role:v?"tab":"button",tabindex:S?-1:0,"aria-expanded":d,onKeypress:s},[h&&P,p.createVNode("span",{onClick:()=>O==="header"&&o(),class:`${x}-header-text`},[c]),_&&p.createVNode("div",{class:`${x}-extra`},[_])]),p.createVNode(p.Transition,$,{default:()=>[!g||d?C:null]})])}}});Rp.Panel=fb,Rp.install=function(t){return t.component(Rp.name,Rp),t.component(fb.name,fb),t};var q1e={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 qV(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){K1e(t,i,n[i])})}return t}function K1e(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var mT=function(e,n){var r=qV({},e,n.attrs);return p.createVNode(Ze,qV({},r,{icon:q1e}),null)};mT.displayName="LeftOutlined",mT.inheritAttrs=!1;const KV=()=>wi()&&window.document.documentElement;let db;const J1e=()=>{if(!KV())return!1;if(db!==void 0)return db;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),db=t.scrollHeight===1,document.body.removeChild(t),db},eOe=()=>{const t=p.shallowRef(!1);return p.onMounted(()=>{t.value=J1e()}),t},JV=Symbol("rowContextKey"),tOe=t=>{p.provide(JV,t)},nOe=()=>p.inject(JV,{gutter:p.computed(()=>{}),wrap:p.computed(()=>{}),supportFlexGap:p.computed(()=>{})}),rOe=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"}}}},iOe=t=>{const{componentCls:e}=t;return{[e]:{position:"relative",maxWidth:"100%",minHeight:1}}},aOe=(t,e)=>{const{componentCls:n,gridColumns:r}=t,i={};for(let a=r;a>=0;a--)a===0?(i[`${n}${e}-${a}`]={display:"none"},i[`${n}-push-${a}`]={insetInlineStart:"auto"},i[`${n}-pull-${a}`]={insetInlineEnd:"auto"},i[`${n}${e}-push-${a}`]={insetInlineStart:"auto"},i[`${n}${e}-pull-${a}`]={insetInlineEnd:"auto"},i[`${n}${e}-offset-${a}`]={marginInlineEnd:0},i[`${n}${e}-order-${a}`]={order:0}):(i[`${n}${e}-${a}`]={display:"block",flex:`0 0 ${a/r*100}%`,maxWidth:`${a/r*100}%`},i[`${n}${e}-push-${a}`]={insetInlineStart:`${a/r*100}%`},i[`${n}${e}-pull-${a}`]={insetInlineEnd:`${a/r*100}%`},i[`${n}${e}-offset-${a}`]={marginInlineStart:`${a/r*100}%`},i[`${n}${e}-order-${a}`]={order:a});return i},yT=(t,e)=>aOe(t,e),oOe=(t,e,n)=>({[`@media (min-width: ${e}px)`]:I({},yT(t,n))}),sOe=qt("Grid",t=>[rOe(t)]),lOe=qt("Grid",t=>{const e=pt(t,{gridColumns:24}),n={"-sm":e.screenSMMin,"-md":e.screenMDMin,"-lg":e.screenLGMin,"-xl":e.screenXLMin,"-xxl":e.screenXXLMin};return[iOe(e),yT(e,""),yT(e,"-xs"),Object.keys(n).map(r=>oOe(e,n[r],r)).reduce((r,i)=>I(I({},r),i),{})]}),uOe=()=>({align:Zt([String,Object]),justify:Zt([String,Object]),prefixCls:String,gutter:Zt([Number,Array,Object],0),wrap:{type:Boolean,default:void 0}}),cOe=p.defineComponent({compatConfig:{MODE:3},name:"ARow",inheritAttrs:!1,props:uOe(),setup(t,e){let{slots:n,attrs:r}=e;const{prefixCls:i,direction:a}=ct("row",t),[o,s]=sOe(i);let l;const u=Abe(),c=p.ref({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),f=p.ref({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),d=_=>p.computed(()=>{if(typeof t[_]=="string")return t[_];if(typeof t[_]!="object")return"";for(let O=0;O<Gy.length;O++){const S=Gy[O];if(!f.value[S])continue;const x=t[_][S];if(x!==void 0)return x}return""}),h=d("align"),g=d("justify"),v=eOe();p.onMounted(()=>{l=u.value.subscribe(_=>{f.value=_;const O=t.gutter||0;(!Array.isArray(O)&&typeof O=="object"||Array.isArray(O)&&(typeof O[0]=="object"||typeof O[1]=="object"))&&(c.value=_)})}),p.onBeforeUnmount(()=>{u.value.unsubscribe(l)});const m=p.computed(()=>{const _=[void 0,void 0],{gutter:O=0}=t;return(Array.isArray(O)?O:[O,void 0]).forEach((x,w)=>{if(typeof x=="object")for(let T=0;T<Gy.length;T++){const P=Gy[T];if(c.value[P]&&x[P]!==void 0){_[w]=x[P];break}}else _[w]=x}),_});tOe({gutter:m,supportFlexGap:v,wrap:p.computed(()=>t.wrap)});const y=p.computed(()=>fe(i.value,{[`${i.value}-no-wrap`]:t.wrap===!1,[`${i.value}-${g.value}`]:g.value,[`${i.value}-${h.value}`]:h.value,[`${i.value}-rtl`]:a.value==="rtl"},r.class,s.value)),b=p.computed(()=>{const _=m.value,O={},S=_[0]!=null&&_[0]>0?`${_[0]/-2}px`:void 0,x=_[1]!=null&&_[1]>0?`${_[1]/-2}px`:void 0;return S&&(O.marginLeft=S,O.marginRight=S),v.value?O.rowGap=`${_[1]}px`:x&&(O.marginTop=x,O.marginBottom=x),O});return()=>{var _;return o(p.createVNode("div",H(H({},r),{},{class:y.value,style:I(I({},b.value),r.style)}),[(_=n.default)===null||_===void 0?void 0:_.call(n)]))}}});function mu(){return mu=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},mu.apply(this,arguments)}function fOe(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,kp(t,e)}function bT(t){return bT=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},bT(t)}function kp(t,e){return kp=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},kp(t,e)}function dOe(){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 hb(t,e,n){return dOe()?hb=Reflect.construct.bind():hb=function(i,a,o){var s=[null];s.push.apply(s,a);var l=Function.bind.apply(i,s),u=new l;return o&&kp(u,o.prototype),u},hb.apply(null,arguments)}function hOe(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function _T(t){var e=typeof Map=="function"?new Map:void 0;return _T=function(r){if(r===null||!hOe(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 hb(r,arguments,bT(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),kp(i,r)},_T(t)}var pOe=/%[sdj%]/g,e6=function(){};typeof process<"u"&&process.env&&process.env.NODE_ENV!=="production"&&typeof window<"u"&&typeof document<"u"&&(e6=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 OT(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 ai(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,a=n.length;if(typeof t=="function")return t.apply(null,n);if(typeof t=="string"){var o=t.replace(pOe,function(s){if(s==="%%")return"%";if(i>=a)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 o}return t}function gOe(t){return t==="string"||t==="url"||t==="hex"||t==="email"||t==="date"||t==="pattern"}function _n(t,e){return!!(t==null||e==="array"&&Array.isArray(t)&&!t.length||gOe(e)&&typeof t=="string"&&!t)}function vOe(t,e,n){var r=[],i=0,a=t.length;function o(s){r.push.apply(r,s||[]),i++,i===a&&n(r)}t.forEach(function(s){e(s,o)})}function t6(t,e,n){var r=0,i=t.length;function a(o){if(o&&o.length){n(o);return}var s=r;r=r+1,s<i?e(t[s],a):n([])}a([])}function mOe(t){var e=[];return Object.keys(t).forEach(function(n){e.push.apply(e,t[n]||[])}),e}var n6=function(t){fOe(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}(_T(Error));function yOe(t,e,n,r,i){if(e.first){var a=new Promise(function(d,h){var g=function(y){return r(y),y.length?h(new n6(y,OT(y))):d(i)},v=mOe(t);t6(v,n,g)});return a.catch(function(d){return d}),a}var o=e.firstFields===!0?Object.keys(t):e.firstFields||[],s=Object.keys(t),l=s.length,u=0,c=[],f=new Promise(function(d,h){var g=function(m){if(c.push.apply(c,m),u++,u===l)return r(c),c.length?h(new n6(c,OT(c))):d(i)};s.length||(r(c),d(i)),s.forEach(function(v){var m=t[v];o.indexOf(v)!==-1?t6(m,n,g):vOe(m,n,g)})});return f.catch(function(d){return d}),f}function bOe(t){return!!(t&&t.message!==void 0)}function _Oe(t,e){for(var n=t,r=0;r<e.length;r++){if(n==null)return n;n=n[e[r]]}return n}function r6(t,e){return function(n){var r;return t.fullFields?r=_Oe(e,t.fullFields):r=e[n.field||t.fullField],bOe(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 i6(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]=mu({},t[n],r):t[n]=r}}return t}var a6=function(e,n,r,i,a,o){e.required&&(!r.hasOwnProperty(e.field)||_n(n,o||e.type))&&i.push(ai(a.messages.required,e.fullField))},OOe=function(e,n,r,i,a){(/^\s+$/.test(n)||n==="")&&i.push(ai(a.messages.whitespace,e.fullField))},pb,SOe=function(){if(pb)return pb;var t="[a-fA-F\\d:]",e=function(O){return O&&O.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=(`
  185. (?:
  186. (?:`+r+":){7}(?:"+r+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
  187. (?:`+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
  188. (?:`+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
  189. (?:`+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
  190. (?:`+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
  191. (?:`+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
  192. (?:`+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
  193. (?::(?:(?::`+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
  194. )(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
  195. `).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),a=new RegExp("(?:^"+n+"$)|(?:^"+i+"$)"),o=new RegExp("^"+n+"$"),s=new RegExp("^"+i+"$"),l=function(O){return O&&O.exact?a:new RegExp("(?:"+e(O)+n+e(O)+")|(?:"+e(O)+i+e(O)+")","g")};l.v4=function(_){return _&&_.exact?o:new RegExp(""+e(_)+n+e(_),"g")},l.v6=function(_){return _&&_.exact?s:new RegExp(""+e(_)+i+e(_),"g")};var u="(?:(?:[a-z]+:)?//)",c="(?:\\S+(?::\\S*)?@)?",f=l.v4().source,d=l.v6().source,h="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",g="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",v="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",m="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',b="(?:"+u+"|www\\.)"+c+"(?:localhost|"+f+"|"+d+"|"+h+g+v+")"+m+y;return pb=new RegExp("(?:^"+b+"$)","i"),pb},o6={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},Np={integer:function(e){return Np.number(e)&&parseInt(e,10)===e},float:function(e){return Np.number(e)&&!Np.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"&&!Np.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(o6.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(SOe())},hex:function(e){return typeof e=="string"&&!!e.match(o6.hex)}},xOe=function(e,n,r,i,a){if(e.required&&n===void 0){a6(e,n,r,i,a);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=e.type;o.indexOf(s)>-1?Np[s](n)||i.push(ai(a.messages.types[s],e.fullField,e.type)):s&&typeof n!==e.type&&i.push(ai(a.messages.types[s],e.fullField,e.type))},wOe=function(e,n,r,i,a){var o=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",h=typeof n=="string",g=Array.isArray(n);if(d?f="number":h?f="string":g&&(f="array"),!f)return!1;g&&(c=n.length),h&&(c=n.replace(u,"_").length),o?c!==e.len&&i.push(ai(a.messages[f].len,e.fullField,e.len)):s&&!l&&c<e.min?i.push(ai(a.messages[f].min,e.fullField,e.min)):l&&!s&&c>e.max?i.push(ai(a.messages[f].max,e.fullField,e.max)):s&&l&&(c<e.min||c>e.max)&&i.push(ai(a.messages[f].range,e.fullField,e.min,e.max))},zf="enum",COe=function(e,n,r,i,a){e[zf]=Array.isArray(e[zf])?e[zf]:[],e[zf].indexOf(n)===-1&&i.push(ai(a.messages[zf],e.fullField,e[zf].join(", ")))},TOe=function(e,n,r,i,a){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(n)||i.push(ai(a.messages.pattern.mismatch,e.fullField,n,e.pattern));else if(typeof e.pattern=="string"){var o=new RegExp(e.pattern);o.test(n)||i.push(ai(a.messages.pattern.mismatch,e.fullField,n,e.pattern))}}},ft={required:a6,whitespace:OOe,type:xOe,range:wOe,enum:COe,pattern:TOe},POe=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(_n(n,"string")&&!e.required)return r();ft.required(e,n,i,o,a,"string"),_n(n,"string")||(ft.type(e,n,i,o,a),ft.range(e,n,i,o,a),ft.pattern(e,n,i,o,a),e.whitespace===!0&&ft.whitespace(e,n,i,o,a))}r(o)},$Oe=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(_n(n)&&!e.required)return r();ft.required(e,n,i,o,a),n!==void 0&&ft.type(e,n,i,o,a)}r(o)},AOe=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(n===""&&(n=void 0),_n(n)&&!e.required)return r();ft.required(e,n,i,o,a),n!==void 0&&(ft.type(e,n,i,o,a),ft.range(e,n,i,o,a))}r(o)},EOe=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(_n(n)&&!e.required)return r();ft.required(e,n,i,o,a),n!==void 0&&ft.type(e,n,i,o,a)}r(o)},MOe=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(_n(n)&&!e.required)return r();ft.required(e,n,i,o,a),_n(n)||ft.type(e,n,i,o,a)}r(o)},IOe=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(_n(n)&&!e.required)return r();ft.required(e,n,i,o,a),n!==void 0&&(ft.type(e,n,i,o,a),ft.range(e,n,i,o,a))}r(o)},DOe=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(_n(n)&&!e.required)return r();ft.required(e,n,i,o,a),n!==void 0&&(ft.type(e,n,i,o,a),ft.range(e,n,i,o,a))}r(o)},ROe=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(n==null&&!e.required)return r();ft.required(e,n,i,o,a,"array"),n!=null&&(ft.type(e,n,i,o,a),ft.range(e,n,i,o,a))}r(o)},kOe=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(_n(n)&&!e.required)return r();ft.required(e,n,i,o,a),n!==void 0&&ft.type(e,n,i,o,a)}r(o)},NOe="enum",LOe=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(_n(n)&&!e.required)return r();ft.required(e,n,i,o,a),n!==void 0&&ft[NOe](e,n,i,o,a)}r(o)},VOe=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(_n(n,"string")&&!e.required)return r();ft.required(e,n,i,o,a),_n(n,"string")||ft.pattern(e,n,i,o,a)}r(o)},BOe=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(_n(n,"date")&&!e.required)return r();if(ft.required(e,n,i,o,a),!_n(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),ft.type(e,l,i,o,a),l&&ft.range(e,l.getTime(),i,o,a)}}r(o)},zOe=function(e,n,r,i,a){var o=[],s=Array.isArray(n)?"array":typeof n;ft.required(e,n,i,o,a,s),r(o)},ST=function(e,n,r,i,a){var o=e.type,s=[],l=e.required||!e.required&&i.hasOwnProperty(e.field);if(l){if(_n(n,o)&&!e.required)return r();ft.required(e,n,i,s,a,o),_n(n,o)||ft.type(e,n,i,s,a)}r(s)},FOe=function(e,n,r,i,a){var o=[],s=e.required||!e.required&&i.hasOwnProperty(e.field);if(s){if(_n(n)&&!e.required)return r();ft.required(e,n,i,o,a)}r(o)},Lp={string:POe,method:$Oe,number:AOe,boolean:EOe,regexp:MOe,integer:IOe,float:DOe,array:ROe,object:kOe,enum:LOe,pattern:VOe,date:BOe,url:ST,hex:ST,email:ST,required:zOe,any:FOe};function xT(){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 wT=xT(),Vp=function(){function t(n){this.rules=null,this._messages=wT,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(a){var o=r[a];i.rules[a]=Array.isArray(o)?o:[o]})},e.messages=function(r){return r&&(this._messages=i6(xT(),r)),this._messages},e.validate=function(r,i,a){var o=this;i===void 0&&(i={}),a===void 0&&(a=function(){});var s=r,l=i,u=a;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(v){var m=[],y={};function b(O){if(Array.isArray(O)){var S;m=(S=m).concat.apply(S,O)}else m.push(O)}for(var _=0;_<v.length;_++)b(v[_]);m.length?(y=OT(m),u(m,y)):u(null,s)}if(l.messages){var f=this.messages();f===wT&&(f=xT()),i6(f,l.messages),l.messages=f}else l.messages=this.messages();var d={},h=l.keys||Object.keys(this.rules);h.forEach(function(v){var m=o.rules[v],y=s[v];m.forEach(function(b){var _=b;typeof _.transform=="function"&&(s===r&&(s=mu({},s)),y=s[v]=_.transform(y)),typeof _=="function"?_={validator:_}:_=mu({},_),_.validator=o.getValidationMethod(_),_.validator&&(_.field=v,_.fullField=_.fullField||v,_.type=o.getType(_),d[v]=d[v]||[],d[v].push({rule:_,value:y,source:s,field:v}))})});var g={};return yOe(d,l,function(v,m){var y=v.rule,b=(y.type==="object"||y.type==="array")&&(typeof y.fields=="object"||typeof y.defaultField=="object");b=b&&(y.required||!y.required&&v.value),y.field=v.field;function _(x,w){return mu({},w,{fullField:y.fullField+"."+x,fullFields:y.fullFields?[].concat(y.fullFields,[x]):[x]})}function O(x){x===void 0&&(x=[]);var w=Array.isArray(x)?x:[x];!l.suppressWarning&&w.length&&t.warning("async-validator:",w),w.length&&y.message!==void 0&&(w=[].concat(y.message));var T=w.map(r6(y,s));if(l.first&&T.length)return g[y.field]=1,m(T);if(!b)m(T);else{if(y.required&&!v.value)return y.message!==void 0?T=[].concat(y.message).map(r6(y,s)):l.error&&(T=[l.error(y,ai(l.messages.required,y.field))]),m(T);var P={};y.defaultField&&Object.keys(v.value).map(function(A){P[A]=y.defaultField}),P=mu({},P,v.rule.fields);var C={};Object.keys(P).forEach(function(A){var E=P[A],D=Array.isArray(E)?E:[E];C[A]=D.map(_.bind(null,A))});var $=new t(C);$.messages(l.messages),v.rule.options&&(v.rule.options.messages=l.messages,v.rule.options.error=l.error),$.validate(v.value,v.rule.options||l,function(A){var E=[];T&&T.length&&E.push.apply(E,T),A&&A.length&&E.push.apply(E,A),m(E.length?E:null)})}}var S;if(y.asyncValidator)S=y.asyncValidator(y,v.value,O,v.source,l);else if(y.validator){try{S=y.validator(y,v.value,O,v.source,l)}catch(x){console.error==null||console.error(x),l.suppressValidatorError||setTimeout(function(){throw x},0),O(x.message)}S===!0?O():S===!1?O(typeof y.message=="function"?y.message(y.fullField||y.field):y.message||(y.fullField||y.field)+" fails"):S instanceof Array?O(S):S instanceof Error&&O(S.message)}S&&S.then&&S.then(function(){return O()},function(x){return O(x)})},function(v){c(v)},s)},e.getType=function(r){if(r.type===void 0&&r.pattern instanceof RegExp&&(r.type="pattern"),typeof r.validator!="function"&&r.type&&!Lp.hasOwnProperty(r.type))throw new Error(ai("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),a=i.indexOf("message");return a!==-1&&i.splice(a,1),i.length===1&&i[0]==="required"?Lp.required:Lp[this.getType(r)]||void 0},t}();Vp.register=function(e,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Lp[e]=n},Vp.warning=e6,Vp.messages=wT,Vp.validators=Lp;function Fs(t){return t==null?[]:Array.isArray(t)?t:[t]}function s6(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 l6(t,e,n,r){if(!e.length)return n;const[i,...a]=e;let o;return!t&&typeof i=="number"?o=[]:Array.isArray(t)?o=[...t]:o=I({},t),r&&n===void 0&&a.length===1?delete o[i][a[0]]:o[i]=l6(o[i],a,n,r),o}function WOe(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return e.length&&r&&n===void 0&&!s6(t,e.slice(0,-1))?t:l6(t,e,n,r)}function CT(t){return Fs(t)}function QOe(t,e){return s6(t,e)}function HOe(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return WOe(t,e,n,r)}function jOe(t,e){return t&&t.some(n=>ZOe(n,e))}function u6(t){return typeof t=="object"&&t!==null&&Object.getPrototypeOf(t)===Object.prototype}function c6(t,e){const n=Array.isArray(t)?[...t]:I({},t);return e&&Object.keys(e).forEach(r=>{const i=n[r],a=e[r],o=u6(i)&&u6(a);n[r]=o?c6(i,a||{}):a}),n}function GOe(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,a)=>c6(i,a),t)}function f6(t,e){let n={};return e.forEach(r=>{const i=QOe(t,r);n=HOe(n,r,i)}),n}function ZOe(t,e){return!t||!e||t.length!==e.length?!1:t.every((n,r)=>e[r]===n)}const oi="'${name}' is not a valid ${type}",gb={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:oi,method:oi,array:oi,object:oi,number:oi,date:oi,boolean:oi,integer:oi,float:oi,regexp:oi,email:oi,url:oi,hex:oi},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 vb=function(t,e,n,r){function i(a){return a instanceof n?a:new n(function(o){o(a)})}return new(n||(n=Promise))(function(a,o){function s(c){try{u(r.next(c))}catch(f){o(f)}}function l(c){try{u(r.throw(c))}catch(f){o(f)}}function u(c){c.done?a(c.value):i(c.value).then(s,l)}u((r=r.apply(t,e||[])).next())})};const UOe=Vp;function XOe(t,e){return t.replace(/\$\{\w+\}/g,n=>{const r=n.slice(2,-1);return e[r]})}function TT(t,e,n,r,i){return vb(this,void 0,void 0,function*(){const a=I({},n);delete a.ruleIndex,delete a.trigger;let o=null;a&&a.type==="array"&&a.defaultField&&(o=a.defaultField,delete a.defaultField);const s=new UOe({[t]:[a]}),l=GOe({},gb,r.validateMessages);s.messages(l);let u=[];try{yield Promise.resolve(s.validate({[t]:e},I({},r)))}catch(d){d.errors?u=d.errors.map((h,g)=>{let{message:v}=h;return ei(v)?p.cloneVNode(v,{key:`error_${g}`}):v}):(console.error(d),u=[l.default()])}if(!u.length&&o)return(yield Promise.all(e.map((h,g)=>TT(`${t}.${g}`,h,o,r,i)))).reduce((h,g)=>[...h,...g],[]);const c=I(I(I({},n),{name:t,enum:(n.enum||[]).join(", ")}),i);return u.map(d=>typeof d=="string"?XOe(d,c):d)})}function d6(t,e,n,r,i,a){const o=t.join("."),s=n.map((u,c)=>{const f=u.validator,d=I(I({},u),{ruleIndex:c});return f&&(d.validator=(h,g,v)=>{let m=!1;const b=f(h,g,function(){for(var _=arguments.length,O=new Array(_),S=0;S<_;S++)O[S]=arguments[S];Promise.resolve().then(()=>{Jl(!m,"Your validator function has already return a promise. `callback` will be ignored."),m||v(...O)})});m=b&&typeof b.then=="function"&&typeof b.catch=="function",Jl(m,"`callback` is deprecated. Please return a promise instead."),m&&b.then(()=>{v()}).catch(_=>{v(_||" ")})}),d}).sort((u,c)=>{let{warningOnly:f,ruleIndex:d}=u,{warningOnly:h,ruleIndex:g}=c;return!!f==!!h?d-g:f?1:-1});let l;if(i===!0)l=new Promise((u,c)=>vb(this,void 0,void 0,function*(){for(let f=0;f<s.length;f+=1){const d=s[f],h=yield TT(o,e,d,r,a);if(h.length){c([{errors:h,rule:d}]);return}}u([])}));else{const u=s.map(c=>TT(o,e,c,r,a).then(f=>({errors:f,rule:c})));l=(i?qOe(u):YOe(u)).then(c=>Promise.reject(c))}return l.catch(u=>u),l}function YOe(t){return vb(this,void 0,void 0,function*(){return Promise.all(t).then(e=>[].concat(...e))})}function qOe(t){return vb(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 h6=Symbol("formContextKey"),p6=t=>{p.provide(h6,t)},PT=()=>p.inject(h6,{name:p.computed(()=>{}),labelAlign:p.computed(()=>"right"),vertical:p.computed(()=>!1),addField:(t,e)=>{},removeField:t=>{},model:p.computed(()=>{}),rules:p.computed(()=>{}),colon:p.computed(()=>{}),labelWrap:p.computed(()=>{}),labelCol:p.computed(()=>{}),requiredMark:p.computed(()=>!1),validateTrigger:p.computed(()=>{}),onValidate:()=>{},validateMessages:p.computed(()=>gb)}),g6=Symbol("formItemPrefixContextKey"),KOe=t=>{p.provide(g6,t)},JOe=()=>p.inject(g6,{prefixCls:p.computed(()=>"")});function eSe(t){return typeof t=="number"?`${t} ${t} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(t)?`0 0 ${t}`:t}const tSe=()=>({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]}),nSe=["xs","sm","md","lg","xl","xxl"],v6=p.defineComponent({compatConfig:{MODE:3},name:"ACol",inheritAttrs:!1,props:tSe(),setup(t,e){let{slots:n,attrs:r}=e;const{gutter:i,supportFlexGap:a,wrap:o}=nOe(),{prefixCls:s,direction:l}=ct("col",t),[u,c]=lOe(s),f=p.computed(()=>{const{span:h,order:g,offset:v,push:m,pull:y}=t,b=s.value;let _={};return nSe.forEach(O=>{let S={};const x=t[O];typeof x=="number"?S.span=x:typeof x=="object"&&(S=x||{}),_=I(I({},_),{[`${b}-${O}-${S.span}`]:S.span!==void 0,[`${b}-${O}-order-${S.order}`]:S.order||S.order===0,[`${b}-${O}-offset-${S.offset}`]:S.offset||S.offset===0,[`${b}-${O}-push-${S.push}`]:S.push||S.push===0,[`${b}-${O}-pull-${S.pull}`]:S.pull||S.pull===0,[`${b}-rtl`]:l.value==="rtl"})}),fe(b,{[`${b}-${h}`]:h!==void 0,[`${b}-order-${g}`]:g,[`${b}-offset-${v}`]:v,[`${b}-push-${m}`]:m,[`${b}-pull-${y}`]:y},_,r.class,c.value)}),d=p.computed(()=>{const{flex:h}=t,g=i.value,v={};if(g&&g[0]>0){const m=`${g[0]/2}px`;v.paddingLeft=m,v.paddingRight=m}if(g&&g[1]>0&&!a.value){const m=`${g[1]/2}px`;v.paddingTop=m,v.paddingBottom=m}return h&&(v.flex=eSe(h),o.value===!1&&!v.minWidth&&(v.minWidth=0)),v});return()=>{var h;return u(p.createVNode("div",H(H({},r),{},{class:f.value,style:[d.value,r.style]}),[(h=n.default)===null||h===void 0?void 0:h.call(n)]))}}});var rSe={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 m6(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){iSe(t,i,n[i])})}return t}function iSe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var $T=function(e,n){var r=m6({},e,n.attrs);return p.createVNode(Ze,m6({},r,{icon:rSe}),null)};$T.displayName="QuestionCircleOutlined",$T.inheritAttrs=!1;const AT=(t,e)=>{let{slots:n,emit:r,attrs:i}=e;var a,o,s,l,u;const{prefixCls:c,htmlFor:f,labelCol:d,labelAlign:h,colon:g,required:v,requiredMark:m}=I(I({},t),i),[y]=D0("Form"),b=(a=t.label)!==null&&a!==void 0?a:(o=n.label)===null||o===void 0?void 0:o.call(n);if(!b)return null;const{vertical:_,labelAlign:O,labelCol:S,labelWrap:x,colon:w}=PT(),T=d||(S==null?void 0:S.value)||{},P=h||(O==null?void 0:O.value),C=`${c}-item-label`,$=fe(C,P==="left"&&`${C}-left`,T.class,{[`${C}-wrap`]:!!x.value});let A=b;const E=g===!0||(w==null?void 0:w.value)!==!1&&g!==!1;if(E&&!_.value&&typeof b=="string"&&b.trim()!==""&&(A=b.replace(/[:|:]\s*$/,"")),t.tooltip||n.tooltip){const R=p.createVNode("span",{class:`${c}-item-tooltip`},[p.createVNode(Uy,{title:t.tooltip},{default:()=>[p.createVNode($T,null,null)]})]);A=p.createVNode(p.Fragment,null,[A,n.tooltip?(s=n.tooltip)===null||s===void 0?void 0:s.call(n,{class:`${c}-item-tooltip`}):R])}m==="optional"&&!v&&(A=p.createVNode(p.Fragment,null,[A,p.createVNode("span",{class:`${c}-item-optional`},[((l=y.value)===null||l===void 0?void 0:l.optional)||((u=Bo.Form)===null||u===void 0?void 0:u.optional)])]));const M=fe({[`${c}-item-required`]:v,[`${c}-item-required-mark-optional`]:m==="optional",[`${c}-item-no-colon`]:!E});return p.createVNode(v6,H(H({},T),{},{class:$}),{default:()=>[p.createVNode("label",{for:f,class:M,title:typeof b=="string"?b:"",onClick:R=>r("click",R)},[A])]})};AT.displayName="FormItemLabel",AT.inheritAttrs=!1;const aSe=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},
  196. opacity ${t.motionDurationSlow} ${t.motionEaseInOut},
  197. 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)"}}}}},oSe=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}}),y6=(t,e)=>{const{formItemCls:n}=t;return{[n]:{[`${n}-label > label`]:{height:e},[`${n}-control-input`]:{minHeight:e}}}},sSe=t=>{const{componentCls:e}=t;return{[t.componentCls]:I(I(I({},Dt(t)),oSe(t)),{[`${e}-text`]:{display:"inline-block",paddingInlineEnd:t.paddingSM},"&-small":I({},y6(t,t.controlHeightSM)),"&-large":I({},y6(t,t.controlHeightLG))})}},lSe=t=>{const{formItemCls:e,iconCls:n,componentCls:r,rootPrefixCls:i}=t;return{[e]:I(I({},Dt(t)),{marginBottom:t.marginLG,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
  198. &-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:qC,animationDuration:t.motionDurationMid,animationTimingFunction:t.motionEaseOutBack,pointerEvents:"none","&-success":{color:t.colorSuccess},"&-error":{color:t.colorError},"&-warning":{color:t.colorWarning},"&-validating":{color:t.colorPrimary}}})}},uSe=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"}}}},cSe=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,
  199. > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${e}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},Ff=t=>({margin:0,padding:`0 0 ${t.paddingXS}px`,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{display:"none"}}}),fSe=t=>{const{componentCls:e,formItemCls:n}=t;return{[`${n} ${n}-label`]:Ff(t),[e]:{[n]:{flexWrap:"wrap",[`${n}-label,
  200. ${n}-control`]:{flex:"0 0 100%",maxWidth:"100%"}}}}},dSe=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,
  201. .${r}-col-24${n}-label,
  202. .${r}-col-xl-24${n}-label`]:Ff(t),[`@media (max-width: ${t.screenXSMax}px)`]:[fSe(t),{[e]:{[`.${r}-col-xs-24${n}-label`]:Ff(t)}}],[`@media (max-width: ${t.screenSMMax}px)`]:{[e]:{[`.${r}-col-sm-24${n}-label`]:Ff(t)}},[`@media (max-width: ${t.screenMDMax}px)`]:{[e]:{[`.${r}-col-md-24${n}-label`]:Ff(t)}},[`@media (max-width: ${t.screenLGMax}px)`]:{[e]:{[`.${r}-col-lg-24${n}-label`]:Ff(t)}}}},ET=qt("Form",(t,e)=>{let{rootPrefixCls:n}=e;const r=pt(t,{formItemCls:`${t.componentCls}-item`,rootPrefixCls:n});return[sSe(r),lSe(r),aSe(r),uSe(r),cSe(r),dSe(r),KC(r),qC]}),hSe=p.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}=JOe(),a=p.computed(()=>`${r.value}-item-explain`),o=p.computed(()=>!!(t.errors&&t.errors.length)),s=p.ref(i.value),[,l]=ET(r);return p.watch([o,i],()=>{o.value&&(s.value=i.value)}),()=>{var u,c;const f=pT(`${r.value}-show-help-item`),d=fC(`${r.value}-show-help-item`,f);return d.role="alert",d.class=[l.value,a.value,n.class,`${r.value}-show-help`],p.createVNode(p.Transition,H(H({},xp(`${r.value}-show-help`)),{},{onAfterEnter:()=>t.onErrorVisibleChanged(!0),onAfterLeave:()=>t.onErrorVisibleChanged(!1)}),{default:()=>[p.withDirectives(p.createVNode(p.TransitionGroup,H(H({},d),{},{tag:"div"}),{default:()=>[(c=t.errors)===null||c===void 0?void 0:c.map((h,g)=>p.createVNode("div",{key:g,class:s.value?`${a.value}-${s.value}`:""},[h]))]}),[[p.vShow,!!(!((u=t.errors)===null||u===void 0)&&u.length)]])]})}}}),pSe=p.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=PT(),{wrapperCol:i}=r,a=I({},r);return delete a.labelCol,delete a.wrapperCol,p6(a),KOe({prefixCls:p.computed(()=>t.prefixCls),status:p.computed(()=>t.status)}),()=>{var o,s,l;const{prefixCls:u,wrapperCol:c,marginBottom:f,onErrorVisibleChanged:d,help:h=(o=n.help)===null||o===void 0?void 0:o.call(n),errors:g=Qa((s=n.errors)===null||s===void 0?void 0:s.call(n)),extra:v=(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=fe(`${m}-control`,y.class);return p.createVNode(v6,H(H({},y),{},{class:b}),{default:()=>{var _;return p.createVNode(p.Fragment,null,[p.createVNode("div",{class:`${m}-control-input`},[p.createVNode("div",{class:`${m}-control-input-content`},[(_=n.default)===null||_===void 0?void 0:_.call(n)])]),f!==null||g.length?p.createVNode("div",{style:{display:"flex",flexWrap:"nowrap"}},[p.createVNode(hSe,{errors:g,help:h,class:`${m}-explain-connected`,onErrorVisibleChanged:d},null),!!f&&p.createVNode("div",{style:{width:0,height:`${f}px`}},null)]):null,v?p.createVNode("div",{class:`${m}-extra`},[v]):null])}})}}});function gSe(t){const e=p.shallowRef(t.value.slice());let n=null;return p.watchEffect(()=>{clearTimeout(n),n=setTimeout(()=>{e.value=t.value},t.value.length?0:10)}),e}Ms("success","warning","error","validating","");const vSe={success:Ls,warning:Vs,error:Ai,validating:Xa};function MT(t,e,n){let r=t;const i=e;let a=0;try{for(let o=i.length;a<o-1&&!(!r&&!n);++a){const s=i[a];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[a],v:r?r[i[a]]:void 0}}const mSe=()=>({htmlFor:String,prefixCls:String,label:Z.any,help:Z.any,extra:Z.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:Z.oneOf(Ms("","success","warning","error","validating")),validateTrigger:{type:[String,Array]},messageVariables:{type:Object},hidden:Boolean,noStyle:Boolean,tooltip:String});let ySe=0;const bSe="form_item",b6=p.defineComponent({compatConfig:{MODE:3},name:"AFormItem",inheritAttrs:!1,__ANT_NEW_FORM_ITEM:!0,props:mSe(),slots:Object,setup(t,e){let{slots:n,attrs:r,expose:i}=e;Jl(t.prop===void 0,"`prop` is deprecated. Please use `name` instead.");const a=`form-item-${++ySe}`,{prefixCls:o}=ct("form",t),[s,l]=ET(o),u=p.shallowRef(),c=PT(),f=p.computed(()=>t.name||t.prop),d=p.shallowRef([]),h=p.shallowRef(!1),g=p.shallowRef(),v=p.computed(()=>{const q=f.value;return CT(q)}),m=p.computed(()=>{if(v.value.length){const q=c.name.value,te=v.value.join("_");return q?`${q}_${te}`:`${bSe}_${te}`}else return}),y=()=>{const q=c.model.value;if(!(!q||!f.value))return MT(q,v.value,!0).v},b=p.computed(()=>y()),_=p.shallowRef(hu(b.value)),O=p.computed(()=>{let q=t.validateTrigger!==void 0?t.validateTrigger:c.validateTrigger.value;return q=q===void 0?"change":q,Fs(q)}),S=p.computed(()=>{let q=c.rules.value;const te=t.rules,X=t.required!==void 0?{required:!!t.required,trigger:O.value}:[],ee=MT(q,v.value);q=q?ee.o[ee.k]||ee.v:[];const G=[].concat(te||q||[]);return eye(G,W=>W.required)?G:G.concat(X)}),x=p.computed(()=>{const q=S.value;let te=!1;return q&&q.length&&q.every(X=>X.required?(te=!0,!1):!0),te||t.required}),w=p.shallowRef();p.watchEffect(()=>{w.value=t.validateStatus});const T=p.computed(()=>{let q={};return typeof t.label=="string"?q.label=t.label:t.name&&(q.label=String(t.name)),t.messageVariables&&(q=I(I({},q),t.messageVariables)),q}),P=q=>{if(v.value.length===0)return;const{validateFirst:te=!1}=t,{triggerName:X}=q||{};let ee=S.value;if(X&&(ee=ee.filter(W=>{const{trigger:Q}=W;return!Q&&!O.value.length?!0:Fs(Q||O.value).includes(X)})),!ee.length)return Promise.resolve();const G=d6(v.value,b.value,ee,I({validateMessages:c.validateMessages.value},q),te,T.value);return w.value="validating",d.value=[],G.catch(W=>W).then(function(){let W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(w.value==="validating"){const Q=W.filter(J=>J&&J.errors.length);w.value=Q.length?"error":"success",d.value=Q.map(J=>J.errors),c.onValidate(f.value,!d.value.length,d.value.length?p.toRaw(d.value[0]):null)}}),G},C=()=>{P({triggerName:"blur"})},$=()=>{if(h.value){h.value=!1;return}P({triggerName:"change"})},A=()=>{w.value=t.validateStatus,h.value=!1,d.value=[]},E=()=>{var q;w.value=t.validateStatus,h.value=!0,d.value=[];const te=c.model.value||{},X=b.value,ee=MT(te,v.value,!0);Array.isArray(X)?ee.o[ee.k]=[].concat((q=_.value)!==null&&q!==void 0?q:[]):ee.o[ee.k]=_.value,p.nextTick(()=>{h.value=!1})},D=p.computed(()=>t.htmlFor===void 0?m.value:t.htmlFor),M=()=>{const q=D.value;if(!q||!g.value)return;const te=g.value.$el.querySelector(`[id="${q}"]`);te&&te.focus&&te.focus()};i({onFieldBlur:C,onFieldChange:$,clearValidate:A,resetField:E}),pve({id:m,onFieldBlur:()=>{t.autoLink&&C()},onFieldChange:()=>{t.autoLink&&$()},clearValidate:A},p.computed(()=>!!(t.autoLink&&c.model.value&&f.value)));let R=!1;p.watch(f,q=>{q?R||(R=!0,c.addField(a,{fieldValue:b,fieldId:m,fieldName:f,resetField:E,clearValidate:A,namePath:v,validateRules:P,rules:S})):(R=!1,c.removeField(a))},{immediate:!0}),p.onBeforeUnmount(()=>{c.removeField(a)});const N=gSe(d),V=p.computed(()=>t.validateStatus!==void 0?t.validateStatus:N.value.length?"error":w.value),L=p.computed(()=>({[`${o.value}-item`]:!0,[l.value]:!0,[`${o.value}-item-has-feedback`]:V.value&&t.hasFeedback,[`${o.value}-item-has-success`]:V.value==="success",[`${o.value}-item-has-warning`]:V.value==="warning",[`${o.value}-item-has-error`]:V.value==="error",[`${o.value}-item-is-validating`]:V.value==="validating",[`${o.value}-item-hidden`]:t.hidden})),z=p.reactive({});ma.useProvide(z),p.watchEffect(()=>{let q;if(t.hasFeedback){const te=V.value&&vSe[V.value];q=te?p.createVNode("span",{class:fe(`${o.value}-item-feedback-icon`,`${o.value}-item-feedback-icon-${V.value}`)},[p.createVNode(te,null,null)]):null}I(z,{status:V.value,hasFeedback:t.hasFeedback,feedbackIcon:q,isFormItemInput:!0})});const B=p.shallowRef(null),F=p.shallowRef(!1),j=()=>{if(u.value){const q=getComputedStyle(u.value);B.value=parseInt(q.marginBottom,10)}};p.onMounted(()=>{p.watch(F,()=>{F.value&&j()},{flush:"post",immediate:!0})});const K=q=>{q||(B.value=null)};return()=>{var q,te;if(t.noStyle)return(q=n.default)===null||q===void 0?void 0:q.call(n);const X=(te=t.help)!==null&&te!==void 0?te:n.help?Qa(n.help()):null,ee=!!(X!=null&&Array.isArray(X)&&X.length||N.value.length);return F.value=ee,s(p.createVNode("div",{class:[L.value,ee?`${o.value}-item-with-help`:"",r.class],ref:u},[p.createVNode(cOe,H(H({},r),{},{class:`${o.value}-item-row`,key:"row"}),{default:()=>{var G,W;return p.createVNode(p.Fragment,null,[p.createVNode(AT,H(H({},t),{},{htmlFor:D.value,required:x.value,requiredMark:c.requiredMark.value,prefixCls:o.value,onClick:M,label:t.label}),{label:n.label,tooltip:n.tooltip}),p.createVNode(pSe,H(H({},t),{},{errors:X!=null?Fs(X):N.value,marginBottom:B.value,prefixCls:o.value,status:V.value,ref:g,help:X,extra:(G=t.extra)!==null&&G!==void 0?G:(W=n.extra)===null||W===void 0?void 0:W.call(n),onErrorVisibleChanged:K}),{default:n.default})])}}),!!B.value&&p.createVNode("div",{class:`${o.value}-margin-offset`,style:{marginBottom:`-${B.value}px`}},null)]))}}});function _6(t){let e=!1,n=t.length;const r=[];return t.length?new Promise((i,a)=>{t.forEach((o,s)=>{o.catch(l=>(e=!0,l)).then(l=>{n-=1,r[s]=l,!(n>0)&&(e&&a(r),i(r))})})}):Promise.resolve([])}function O6(t){let e=!1;return t&&t.length&&t.every(n=>n.required?(e=!0,!1):!0),e}function S6(t){return t==null?[]:Array.isArray(t)?t:[t]}function IT(t,e,n){let r=t;e=e.replace(/\[(\w+)\]/g,".$1"),e=e.replace(/^\./,"");const i=e.split(".");let a=0;for(let o=i.length;a<o-1&&!(!r&&!n);++a){const s=i[a];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[a],v:r?r[i[a]]:null,isValid:r&&i[a]in r}}function _Se(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:p.ref({}),n=arguments.length>2?arguments[2]:void 0;const r=hu(p.unref(t)),i=p.reactive({}),a=p.shallowRef([]),o=_=>{I(p.unref(t),I(I({},hu(r)),_)),p.nextTick(()=>{Object.keys(i).forEach(O=>{i[O]={autoLink:!1,required:O6(p.unref(e)[O])}})})},s=function(){let _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],O=arguments.length>1?arguments[1]:void 0;return O.length?_.filter(S=>{const x=S6(S.trigger||"change");return iye(x,O).length}):_};let l=null;const u=function(_){let O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=arguments.length>2?arguments[2]:void 0;const x=[],w={};for(let C=0;C<_.length;C++){const $=_[C],A=IT(p.unref(t),$,S);if(!A.isValid)continue;w[$]=A.v;const E=s(p.unref(e)[$],S6(O&&O.trigger));E.length&&x.push(c($,A.v,E,O||{}).then(()=>({name:$,errors:[],warnings:[]})).catch(D=>{const M=[],R=[];return D.forEach(N=>{let{rule:{warningOnly:V},errors:L}=N;V?R.push(...L):M.push(...L)}),M.length?Promise.reject({name:$,errors:M,warnings:R}):{name:$,errors:M,warnings:R}}))}const T=_6(x);l=T;const P=T.then(()=>l===T?Promise.resolve(w):Promise.reject([])).catch(C=>{const $=C.filter(A=>A&&A.errors.length);return $.length?Promise.reject({values:w,errorFields:$,outOfDate:l!==T}):Promise.resolve(w)});return P.catch(C=>C),P},c=function(_,O,S){let x=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const w=d6([_],O,S,I({validateMessages:gb},x),!!x.validateFirst);return i[_]?(i[_].validateStatus="validating",w.catch(T=>T).then(function(){let T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];var P;if(i[_].validateStatus==="validating"){const C=T.filter($=>$&&$.errors.length);i[_].validateStatus=C.length?"error":"success",i[_].help=C.length?C.map($=>$.errors):null,(P=n==null?void 0:n.onValidate)===null||P===void 0||P.call(n,_,!C.length,C.length?p.toRaw(i[_].help[0]):null)}}),w):w.catch(T=>T)},f=(_,O)=>{let S=[],x=!0;_?Array.isArray(_)?S=_:S=[_]:(x=!1,S=a.value);const w=u(S,O||{},x);return w.catch(T=>T),w},d=_=>{let O=[];_?Array.isArray(_)?O=_:O=[_]:O=a.value,O.forEach(S=>{i[S]&&I(i[S],{validateStatus:"",help:null})})},h=_=>{const O={autoLink:!1},S=[],x=Array.isArray(_)?_:[_];for(let w=0;w<x.length;w++){const T=x[w];(T==null?void 0:T.validateStatus)==="error"&&(O.validateStatus="error",T.help&&S.push(T.help)),O.required=O.required||(T==null?void 0:T.required)}return O.help=S,O};let g=r,v=!0;const m=_=>{const O=[];a.value.forEach(S=>{const x=IT(_,S,!1),w=IT(g,S,!1);(v&&(n==null?void 0:n.immediate)&&x.isValid||!_y(x.v,w.v))&&O.push(S)}),f(O,{trigger:"change"}),v=!1,g=hu(p.toRaw(_))},y=n==null?void 0:n.debounce;let b=!0;return p.watch(e,()=>{a.value=e?Object.keys(p.unref(e)):[],!b&&n&&n.validateOnRuleChange&&f(),b=!1},{deep:!0,immediate:!0}),p.watch(a,()=>{const _={};a.value.forEach(O=>{_[O]=I({},i[O],{autoLink:!1,required:O6(p.unref(e)[O])}),delete i[O]});for(const O in i)Object.prototype.hasOwnProperty.call(i,O)&&delete i[O];I(i,_)},{immediate:!0}),p.watch(t,y&&y.wait?jC(m,y.wait,m3(y,["wait"])):m,{immediate:n&&!!n.immediate,deep:!0}),{modelRef:t,rulesRef:e,initialModel:r,validateInfos:i,resetFields:o,validate:f,validateField:c,mergeValidateInfo:h,clearValidate:d}}const OSe=()=>({layout:Z.oneOf(Ms("horizontal","inline","vertical")),labelCol:ut(),wrapperCol:ut(),colon:We(),labelAlign:Bt(),labelWrap:We(),prefixCls:String,requiredMark:Zt([String,Boolean]),hideRequiredMark:We(),model:Z.object,rules:ut(),validateMessages:ut(),validateOnRuleChange:We(),scrollToFirstError:xi(),onSubmit:Qe(),name:String,validateTrigger:Zt([String,Array]),size:Bt(),disabled:We(),onValuesChange:Qe(),onFieldsChange:Qe(),onFinish:Qe(),onFinishFailed:Qe(),onValidate:Qe()});function SSe(t,e){return _y(Fs(t),Fs(e))}const Qn=p.defineComponent({compatConfig:{MODE:3},name:"AForm",inheritAttrs:!1,props:Dn(OSe(),{layout:"horizontal",hideRequiredMark:!1,colon:!0}),Item:b6,useForm:_Se,setup(t,e){let{emit:n,slots:r,expose:i,attrs:a}=e;const{prefixCls:o,direction:s,form:l,size:u,disabled:c}=ct("form",t),f=p.computed(()=>t.requiredMark===""||t.requiredMark),d=p.computed(()=>{var N;return f.value!==void 0?f.value:l&&((N=l.value)===null||N===void 0?void 0:N.requiredMark)!==void 0?l.value.requiredMark:!t.hideRequiredMark});b4(u),vL(c);const h=p.computed(()=>{var N,V;return(N=t.colon)!==null&&N!==void 0?N:(V=l.value)===null||V===void 0?void 0:V.colon}),{validateMessages:g}=ble(),v=p.computed(()=>I(I(I({},gb),g.value),t.validateMessages)),[m,y]=ET(o),b=p.computed(()=>fe(o.value,{[`${o.value}-${t.layout}`]:!0,[`${o.value}-hide-required-mark`]:d.value===!1,[`${o.value}-rtl`]:s.value==="rtl",[`${o.value}-${u.value}`]:u.value},y.value)),_=p.ref(),O={},S=(N,V)=>{O[N]=V},x=N=>{delete O[N]},w=N=>{const V=!!N,L=V?Fs(N).map(CT):[];return V?Object.values(O).filter(z=>L.findIndex(B=>SSe(B,z.fieldName.value))>-1):Object.values(O)},T=N=>{if(!t.model){pr(!1,"Form","model is required for resetFields to work.");return}w(N).forEach(V=>{V.resetField()})},P=N=>{w(N).forEach(V=>{V.clearValidate()})},C=N=>{const{scrollToFirstError:V}=t;if(n("finishFailed",N),V&&N.errorFields.length){let L={};typeof V=="object"&&(L=V),A(N.errorFields[0].name,L)}},$=function(){return M(...arguments)},A=function(N){let V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const L=w(N?[N]:void 0);if(L.length){const z=L[0].fieldId.value,B=z?document.getElementById(z):null;B&&gce(B,I({scrollMode:"if-needed",block:"nearest"},V))}},E=function(){let N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(N===!0){const V=[];return Object.values(O).forEach(L=>{let{namePath:z}=L;V.push(z.value)}),f6(t.model,V)}else return f6(t.model,N)},D=(N,V)=>{if(pr(!(N instanceof Function),"Form","validateFields/validateField/validate not support callback, please use promise instead"),!t.model)return pr(!1,"Form","model is required for validateFields to work."),Promise.reject("Form `model` is required for validateFields to work.");const L=!!N,z=L?Fs(N).map(CT):[],B=[];Object.values(O).forEach(K=>{var q;if(L||z.push(K.namePath.value),!(!((q=K.rules)===null||q===void 0)&&q.value.length))return;const te=K.namePath.value;if(!L||jOe(z,te)){const X=K.validateRules(I({validateMessages:v.value},V));B.push(X.then(()=>({name:te,errors:[],warnings:[]})).catch(ee=>{const G=[],W=[];return ee.forEach(Q=>{let{rule:{warningOnly:J},errors:ae}=Q;J?W.push(...ae):G.push(...ae)}),G.length?Promise.reject({name:te,errors:G,warnings:W}):{name:te,errors:G,warnings:W}}))}});const F=_6(B);_.value=F;const j=F.then(()=>_.value===F?Promise.resolve(E(z)):Promise.reject([])).catch(K=>{const q=K.filter(te=>te&&te.errors.length);return Promise.reject({values:E(z),errorFields:q,outOfDate:_.value!==F})});return j.catch(K=>K),j},M=function(){return D(...arguments)},R=N=>{N.preventDefault(),N.stopPropagation(),n("submit",N),t.model&&D().then(L=>{n("finish",L)}).catch(L=>{C(L)})};return i({resetFields:T,clearValidate:P,validateFields:D,getFieldsValue:E,validate:$,scrollToField:A}),p6({model:p.computed(()=>t.model),name:p.computed(()=>t.name),labelAlign:p.computed(()=>t.labelAlign),labelCol:p.computed(()=>t.labelCol),labelWrap:p.computed(()=>t.labelWrap),wrapperCol:p.computed(()=>t.wrapperCol),vertical:p.computed(()=>t.layout==="vertical"),colon:h,requiredMark:d,validateTrigger:p.computed(()=>t.validateTrigger),rules:p.computed(()=>t.rules),addField:S,removeField:x,onValidate:(N,V,L)=>{n("validate",N,V,L)},validateMessages:v}),p.watch(()=>t.rules,()=>{t.validateOnRuleChange&&D()}),()=>{var N;return m(p.createVNode("form",H(H({},a),{},{onSubmit:R,class:[b.value,a.class]}),[(N=r.default)===null||N===void 0?void 0:N.call(r)]))}}});Qn.useInjectFormItemContext=Ya,Qn.ItemRest=Pp,Qn.install=function(t){return t.component(Qn.name,Qn),t.component(Qn.Item.name,Qn.Item),t.component(Pp.name,Pp),t};const xSe=new rt("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),wSe=t=>{const{checkboxCls:e}=t,n=`${e}-wrapper`;return[{[`${e}-group`]:I(I({},Dt(t)),{display:"inline-flex",flexWrap:"wrap",columnGap:t.marginXS,[`> ${t.antCls}-row`]:{flex:1}}),[n]:I(I({},Dt(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]:I(I({},Dt(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`]:I({},cp(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"},[`
  203. ${n}:not(${n}-disabled),
  204. ${e}:not(${e}-disabled)
  205. `]:{[`&: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:xSe,animationDuration:t.motionDurationSlow,animationTimingFunction:"ease-in-out",animationFillMode:"backwards",content:'""',transition:`all ${t.motionDurationSlow}`}},[`
  206. ${n}-checked:not(${n}-disabled),
  207. ${e}-checked:not(${e}-disabled)
  208. `]:{[`&: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 CSe(t,e){const n=pt(e,{checkboxCls:`.${t}`,checkboxSize:e.controlInteractiveSize});return[wSe(n)]}const x6=qt("Checkbox",(t,e)=>{let{prefixCls:n}=e;return[CSe(n,t)]}),TSe=()=>({name:String,prefixCls:String,options:ql([]),disabled:Boolean,id:String}),PSe=()=>I(I({},TSe()),{defaultValue:ql(),value:ql(),onChange:Qe(),"onUpdate:value":Qe()}),$Se=()=>({prefixCls:String,defaultChecked:We(),checked:We(),disabled:We(),isGroup:We(),value:Z.any,name:String,id:String,indeterminate:We(),type:Bt("checkbox"),autofocus:We(),onChange:Qe(),"onUpdate:checked":Qe(),onClick:Qe(),skipGroup:We(!1)}),ASe=()=>I(I({},$Se()),{indeterminate:We(!1)}),w6=Symbol("CheckboxGroupContext");var C6=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 Bp=p.defineComponent({compatConfig:{MODE:3},name:"ACheckbox",inheritAttrs:!1,__ANT_CHECKBOX:!0,props:ASe(),setup(t,e){let{emit:n,attrs:r,slots:i,expose:a}=e;const o=Ya(),s=ma.useInject(),{prefixCls:l,direction:u,disabled:c}=ct("checkbox",t),f=Ha(),[d,h]=x6(l),g=p.inject(w6,void 0),v=Symbol("checkboxUniId"),m=p.computed(()=>(g==null?void 0:g.disabled.value)||c.value);p.watchEffect(()=>{!t.skipGroup&&g&&g.registerValue(v,t.value)}),p.onBeforeUnmount(()=>{g&&g.cancelValue(v)}),p.onMounted(()=>{pr(!!(t.checked!==void 0||g||t.value===void 0),"Checkbox","`value` is not validate prop, do you mean `checked`?")});const y=S=>{const x=S.target.checked;n("update:checked",x),n("change",S),o.onFieldChange()},b=p.ref();return a({focus:()=>{var S;(S=b.value)===null||S===void 0||S.focus()},blur:()=>{var S;(S=b.value)===null||S===void 0||S.blur()}}),()=>{var S;const x=bn((S=i.default)===null||S===void 0?void 0:S.call(i)),{indeterminate:w,skipGroup:T,id:P=o.id.value}=t,C=C6(t,["indeterminate","skipGroup","id"]),{onMouseenter:$,onMouseleave:A,onInput:E,class:D,style:M}=r,R=C6(r,["onMouseenter","onMouseleave","onInput","class","style"]),N=I(I(I(I({},C),{id:P,prefixCls:l.value}),R),{disabled:m.value});g&&!T?(N.onChange=function(){for(var B=arguments.length,F=new Array(B),j=0;j<B;j++)F[j]=arguments[j];n("change",...F),g.toggleOption({label:x,value:t.value})},N.name=g.name.value,N.checked=g.mergedValue.value.includes(t.value),N.disabled=m.value||f.value,N.indeterminate=w):N.onChange=y;const V=fe({[`${l.value}-wrapper`]:!0,[`${l.value}-rtl`]:u.value==="rtl",[`${l.value}-wrapper-checked`]:N.checked,[`${l.value}-wrapper-disabled`]:N.disabled,[`${l.value}-wrapper-in-form-item`]:s.isFormItemInput},D,h.value),L=fe({[`${l.value}-indeterminate`]:w},h.value),z=w?"mixed":void 0;return d(p.createVNode("label",{class:V,style:M,onMouseenter:$,onMouseleave:A},[p.createVNode(CV,H(H({"aria-checked":z},N),{},{class:L,ref:b}),null),x.length?p.createVNode("span",null,[x]):null]))}}}),mb=p.defineComponent({compatConfig:{MODE:3},name:"ACheckboxGroup",inheritAttrs:!1,props:PSe(),setup(t,e){let{slots:n,attrs:r,emit:i,expose:a}=e;const o=Ya(),{prefixCls:s,direction:l}=ct("checkbox",t),u=p.computed(()=>`${s.value}-group`),[c,f]=x6(u),d=p.ref((t.value===void 0?t.defaultValue:t.value)||[]);p.watch(()=>t.value,()=>{d.value=t.value||[]});const h=p.computed(()=>t.options.map(O=>typeof O=="string"||typeof O=="number"?{label:O,value:O}:O)),g=p.ref(Symbol()),v=p.ref(new Map),m=O=>{v.value.delete(O),g.value=Symbol()},y=(O,S)=>{v.value.set(O,S),g.value=Symbol()},b=p.ref(new Map);p.watch(g,()=>{const O=new Map;for(const S of v.value.values())O.set(S,!0);b.value=O});const _=O=>{const S=d.value.indexOf(O.value),x=[...d.value];S===-1?x.push(O.value):x.splice(S,1),t.value===void 0&&(d.value=x);const w=x.filter(T=>b.value.has(T)).sort((T,P)=>{const C=h.value.findIndex(A=>A.value===T),$=h.value.findIndex(A=>A.value===P);return C-$});i("update:value",w),i("change",w),o.onFieldChange()};return p.provide(w6,{cancelValue:m,registerValue:y,toggleOption:_,mergedValue:d,name:p.computed(()=>t.name),disabled:p.computed(()=>t.disabled)}),a({mergedValue:d}),()=>{var O;const{id:S=o.id.value}=t;let x=null;return h.value&&h.value.length>0&&(x=h.value.map(w=>{var T;return p.createVNode(Bp,{prefixCls:s.value,key:w.value.toString(),disabled:"disabled"in w?w.disabled:t.disabled,indeterminate:w.indeterminate,value:w.value,checked:d.value.indexOf(w.value)!==-1,onChange:w.onChange,class:`${u.value}-item`},{default:()=>[n.label!==void 0?(T=n.label)===null||T===void 0?void 0:T.call(n,w):w.label]})})),c(p.createVNode("div",H(H({},r),{},{class:[u.value,{[`${u.value}-rtl`]:l.value==="rtl"},r.class,f.value],id:S}),[x||((O=n.default)===null||O===void 0?void 0:O.call(n))]))}}});Bp.Group=mb,Bp.install=function(t){return t.component(Bp.name,Bp),t.component(mb.name,mb),t};let yb=I({},Bo.Modal);function ESe(t){t?yb=I(I({},yb),t):yb=I({},Bo.Modal)}function MSe(){return yb}const DT="internalMark",bb=p.defineComponent({compatConfig:{MODE:3},name:"ALocaleProvider",props:{locale:{type:Object},ANT_MARK__:String},setup(t,e){let{slots:n}=e;pr(t.ANT_MARK__===DT,"LocaleProvider","`LocaleProvider` is deprecated. Please use `locale` with `ConfigProvider` instead");const r=p.reactive({antLocale:I(I({},t.locale),{exist:!0}),ANT_MARK__:DT});return p.provide("localeData",r),p.watch(()=>t.locale,i=>{ESe(i&&i.Modal),r.antLocale=I(I({},i),{exist:!0})},{immediate:!0}),()=>{var i;return(i=n.default)===null||i===void 0?void 0:i.call(n)}}});bb.install=function(t){return t.component(bb.name,bb),t};const ISe=ff(bb),_b=p.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,a=!1;const o=p.computed(()=>t.duration===void 0?4.5:t.duration),s=()=>{o.value&&!a&&(i=setTimeout(()=>{u()},o.value*1e3))},l=()=>{i&&(clearTimeout(i),i=null)},u=f=>{f&&f.stopPropagation(),l();const{onClose:d,noticeKey:h}=t;d&&d(h)},c=()=>{l(),s()};return p.onMounted(()=>{s()}),p.onUnmounted(()=>{a=!0,l()}),p.watch([o,()=>t.updateMark,()=>t.visible],(f,d)=>{let[h,g,v]=f,[m,y,b]=d;(h!==m||g!==y||v!==b&&b)&&c()},{flush:"post"}),()=>{var f,d;const{prefixCls:h,closable:g,closeIcon:v=(f=r.closeIcon)===null||f===void 0?void 0:f.call(r),onClick:m,holder:y}=t,{class:b,style:_}=n,O=`${h}-notice`,S=Object.keys(n).reduce((w,T)=>((T.startsWith("data-")||T.startsWith("aria-")||T==="role")&&(w[T]=n[T]),w),{}),x=p.createVNode("div",H({class:fe(O,b,{[`${O}-closable`]:g}),style:_,onMouseenter:l,onMouseleave:s,onClick:m},S),[p.createVNode("div",{class:`${O}-content`},[(d=r.default)===null||d===void 0?void 0:d.call(r)]),g?p.createVNode("a",{tabindex:0,onClick:u,class:`${O}-close`},[v||p.createVNode("span",{class:`${O}-close-x`},null)]):null]);return y?p.createVNode(p.Teleport,{to:y},{default:()=>x}):x}}});var DSe=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 T6=0;const RSe=Date.now();function P6(){const t=T6;return T6+=1,`rcNotification_${RSe}_${t}`}const Ob=p.defineComponent({name:"Notification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId"],setup(t,e){let{attrs:n,expose:r,slots:i}=e;const a=new Map,o=p.ref([]),s=p.computed(()=>{const{prefixCls:c,animation:f="fade"}=t;let d=t.transitionName;return!d&&f&&(d=`${c}-${f}`),fC(d)}),l=(c,f)=>{const d=c.key||P6(),h=I(I({},c),{key:d}),{maxCount:g}=t,v=o.value.map(y=>y.notice.key).indexOf(d),m=o.value.concat();v!==-1?m.splice(v,1,{notice:h,holderCallback:f}):(g&&o.value.length>=g&&(h.key=m[0].notice.key,h.updateMark=P6(),h.userPassKey=d,m.shift()),m.push({notice:h,holderCallback:f})),o.value=m},u=c=>{o.value=o.value.filter(f=>{let{notice:{key:d,userPassKey:h}}=f;return(h||d)!==c})};return r({add:l,remove:u,notices:o}),()=>{var c;const{prefixCls:f,closeIcon:d=(c=i.closeIcon)===null||c===void 0?void 0:c.call(i,{prefixCls:f})}=t,h=o.value.map((v,m)=>{let{notice:y,holderCallback:b}=v;const _=m===o.value.length-1?y.updateMark:void 0,{key:O,userPassKey:S}=y,{content:x}=y,w=I(I(I({prefixCls:f,closeIcon:typeof d=="function"?d({prefixCls:f}):d},y),y.props),{key:O,noticeKey:S||O,updateMark:_,onClose:T=>{var P;u(T),(P=y.onClose)===null||P===void 0||P.call(y)},onClick:y.onClick});return b?p.createVNode("div",{key:O,class:`${f}-hook-holder`,ref:T=>{typeof O>"u"||(T?(a.set(O,T),b(T,w)):a.delete(O))}},null):p.createVNode(_b,H(H({},w),{},{class:fe(w.class,t.hashId)}),{default:()=>[typeof x=="function"?x({prefixCls:f}):x]})}),g={[f]:1,[n.class]:!!n.class,[t.hashId]:!0};return p.createVNode("div",{class:g,style:n.style||{top:"65px",left:"50%"}},[p.createVNode(p.TransitionGroup,H({tag:"div"},s.value),{default:()=>[h]})])}}});Ob.newInstance=function(e,n){const r=e||{},{name:i="notification",getContainer:a,appContext:o,prefixCls:s,rootPrefixCls:l,transitionName:u,hasTransitionName:c,useStyle:f}=r,d=DSe(r,["name","getContainer","appContext","prefixCls","rootPrefixCls","transitionName","hasTransitionName","useStyle"]),h=document.createElement("div");a?a().appendChild(h):document.body.appendChild(h);const g=p.defineComponent({compatConfig:{MODE:3},name:"NotificationWrapper",setup(m,y){let{attrs:b}=y;const _=p.shallowRef(),O=p.computed(()=>Hn.getPrefixCls(i,s)),[,S]=f(O);return p.onMounted(()=>{n({notice(x){var w;(w=_.value)===null||w===void 0||w.add(x)},removeNotice(x){var w;(w=_.value)===null||w===void 0||w.remove(x)},destroy(){p.render(null,h),h.parentNode&&h.parentNode.removeChild(h)},component:_})}),()=>{const x=Hn,w=x.getRootPrefixCls(l,O.value),T=c?u:`${O.value}-${u}`;return p.createVNode(jf,H(H({},x),{},{prefixCls:w}),{default:()=>[p.createVNode(Ob,H(H({ref:_},b),{},{prefixCls:O.value,transitionName:T,hashId:S.value}),null)]})}}}),v=p.createVNode(g,d);v.appContext=o||v.appContext,p.render(v,h)};let $6=0;const kSe=Date.now();function A6(){const t=$6;return $6+=1,`rcNotification_${kSe}_${t}`}const NSe=p.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,a=p.computed(()=>t.notices),o=p.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 fC(c)}),s=c=>t.remove(c),l=p.ref({});p.watch(a,()=>{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=p.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,h=u.value.map(g=>{var v,m;const y=l.value[g],b=(v=t.getClassName)===null||v===void 0?void 0:v.call(t,g),_=(m=t.getStyles)===null||m===void 0?void 0:m.call(t,g),O=y.map((w,T)=>{let{notice:P,holderCallback:C}=w;const $=T===a.value.length-1?P.updateMark:void 0,{key:A,userPassKey:E}=P,{content:D}=P,M=I(I(I({prefixCls:f,closeIcon:typeof d=="function"?d({prefixCls:f}):d},P),P.props),{key:A,noticeKey:E||A,updateMark:$,onClose:R=>{var N;s(R),(N=P.onClose)===null||N===void 0||N.call(P)},onClick:P.onClick});return C?p.createVNode("div",{key:A,class:`${f}-hook-holder`,ref:R=>{typeof A>"u"||(R?(i.set(A,R),C(R,M)):i.delete(A))}},null):p.createVNode(_b,H(H({},M),{},{class:fe(M.class,t.hashId)}),{default:()=>[typeof D=="function"?D({prefixCls:f}):D]})}),S={[f]:1,[`${f}-${g}`]:1,[n.class]:!!n.class,[t.hashId]:!0,[b]:!!b};function x(){var w;y.length>0||(Reflect.deleteProperty(l.value,g),(w=t.onAllRemoved)===null||w===void 0||w.call(t))}return p.createVNode("div",{key:g,class:S,style:n.style||_||{top:"65px",left:"50%"}},[p.createVNode(p.TransitionGroup,H(H({tag:"div"},o.value),{},{onAfterLeave:x}),{default:()=>[O]})])});return p.createVNode(W8,{getContainer:t.getContainer},{default:()=>[h]})}}});var LSe=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 VSe=()=>document.body;let E6=0;function BSe(){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(a=>{const o=i[a];o!==void 0&&(t[a]=o)})}),t}function M6(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{getContainer:e=VSe,motion:n,prefixCls:r,maxCount:i,getClassName:a,getStyles:o,onAllRemoved:s}=t,l=LSe(t,["getContainer","motion","prefixCls","maxCount","getClassName","getStyles","onAllRemoved"]),u=p.shallowRef([]),c=p.shallowRef(),f=(y,b)=>{const _=y.key||A6(),O=I(I({},y),{key:_}),S=u.value.map(w=>w.notice.key).indexOf(_),x=u.value.concat();S!==-1?x.splice(S,1,{notice:O,holderCallback:b}):(i&&u.value.length>=i&&(O.key=x[0].notice.key,O.updateMark=A6(),O.userPassKey=_,x.shift()),x.push({notice:O,holderCallback:b})),u.value=x},d=y=>{u.value=u.value.filter(b=>{let{notice:{key:_,userPassKey:O}}=b;return(O||_)!==y})},h=()=>{u.value=[]},g=()=>p.createVNode(NSe,{ref:c,prefixCls:r,maxCount:i,notices:u.value,remove:d,getClassName:a,getStyles:o,animation:n,hashId:t.hashId,onAllRemoved:s,getContainer:e},null),v=p.shallowRef([]),m={open:y=>{const b=BSe(l,y);(b.key===null||b.key===void 0)&&(b.key=`vc-notification-${E6}`,E6+=1),v.value=[...v.value,{type:"open",config:b}]},close:y=>{v.value=[...v.value,{type:"close",key:y}]},destroy:()=>{v.value=[...v.value,{type:"destroy"}]}};return p.watch(v,()=>{v.value.length&&(v.value.forEach(y=>{switch(y.type){case"open":f(y.config);break;case"close":d(y.key);break;case"destroy":h();break}}),v.value=[])}),[m,g]}const zSe=t=>{const{componentCls:e,iconCls:n,boxShadowSecondary:r,colorBgElevated:i,colorSuccess:a,colorError:o,colorWarning:s,colorInfo:l,fontSizeLG:u,motionEaseInOutCirc:c,motionDurationSlow:f,marginXS:d,paddingXS:h,borderRadiusLG:g,zIndexPopup:v,messageNoticeContentPadding:m}=t,y=new rt("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:h,transform:"translateY(0)",opacity:1}}),b=new rt("MessageMoveOut",{"0%":{maxHeight:t.height,padding:h,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}});return[{[e]:I(I({},Dt(t)),{position:"fixed",top:d,left:"50%",transform:"translateX(-50%)",width:"100%",pointerEvents:"none",zIndex:v,[`${e}-move-up`]:{animationFillMode:"forwards"},[`
  209. ${e}-move-up-appear,
  210. ${e}-move-up-enter
  211. `]:{animationName:y,animationDuration:f,animationPlayState:"paused",animationTimingFunction:c},[`
  212. ${e}-move-up-appear${e}-move-up-appear-active,
  213. ${e}-move-up-enter${e}-move-up-enter-active
  214. `]:{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:h,textAlign:"center",[n]:{verticalAlign:"text-bottom",marginInlineEnd:d,fontSize:u},[`${e}-notice-content`]:{display:"inline-block",padding:m,background:i,borderRadius:g,boxShadow:r,pointerEvents:"all"},[`${e}-success ${n}`]:{color:a},[`${e}-error ${n}`]:{color:o},[`${e}-warning ${n}`]:{color:s},[`
  215. ${e}-info ${n},
  216. ${e}-loading ${n}`]:{color:l}}},{[`${e}-notice-pure-panel`]:{padding:0,textAlign:"start"}}]},RT=qt("Message",t=>{const e=pt(t,{messageNoticeContentPadding:`${(t.controlHeightLG-t.fontSize*t.lineHeight)/2}px ${t.paddingSM}px`});return[zSe(e)]},t=>({height:150,zIndexPopup:t.zIndexPopupBase+10})),FSe={info:p.createVNode(pu,null,null),success:p.createVNode(Ls,null,null),error:p.createVNode(Ai,null,null),warning:p.createVNode(Vs,null,null),loading:p.createVNode(Xa,null,null)},I6=p.defineComponent({name:"PureContent",inheritAttrs:!1,props:["prefixCls","type","icon"],setup(t,e){let{slots:n}=e;return()=>{var r;return p.createVNode("div",{class:fe(`${t.prefixCls}-custom-content`,`${t.prefixCls}-${t.type}`)},[t.icon||FSe[t.type],p.createVNode("span",null,[(r=n.default)===null||r===void 0?void 0:r.call(n)])])}}});p.defineComponent({name:"PurePanel",inheritAttrs:!1,props:["prefixCls","class","type","icon","content"],setup(t,e){let{slots:n,attrs:r}=e;var i;const{getPrefixCls:a}=I0(),o=p.computed(()=>t.prefixCls||a("message")),[,s]=RT(o);return p.createVNode(_b,H(H({},r),{},{prefixCls:o.value,class:fe(s.value,`${o.value}-notice-pure-panel`),noticeKey:"pure",duration:null}),{default:()=>[p.createVNode(I6,{prefixCls:o.value,type:t.type,icon:t.icon},{default:()=>[(i=n.default)===null||i===void 0?void 0:i.call(n)]})]})}});var WSe=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 QSe=8,HSe=3,jSe=p.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:a,getPopupContainer:o}=ct("message",t),s=p.computed(()=>a("message",t.prefixCls)),[,l]=RT(s),u=()=>{var v;const m=(v=t.top)!==null&&v!==void 0?v:QSe;return{left:"50%",transform:"translateX(-50%)",top:typeof m=="number"?`${m}px`:m}},c=()=>fe(l.value,t.rtl?`${s.value}-rtl`:""),f=()=>{var v;return Bw({prefixCls:s.value,animation:(v=t.animation)!==null&&v!==void 0?v:"move-up",transitionName:t.transitionName})},d=p.createVNode("span",{class:`${s.value}-close-x`},[p.createVNode(Go,{class:`${s.value}-close-icon`},null)]),[h,g]=M6({getStyles:u,prefixCls:s.value,getClassName:c,motion:f,closable:!1,closeIcon:d,duration:(r=t.duration)!==null&&r!==void 0?r:HSe,getContainer:(i=t.staticGetContainer)!==null&&i!==void 0?i:o.value,maxCount:t.maxCount,onAllRemoved:t.onAllRemoved});return n(I(I({},h),{prefixCls:s,hashId:l})),g}});let D6=0;function GSe(t){const e=p.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 S=()=>{};return S.then=()=>{},S}const{open:u,prefixCls:c,hashId:f}=e.value,d=`${c}-notice`,{content:h,icon:g,type:v,key:m,class:y,onClose:b}=l,_=WSe(l,["content","icon","type","key","class","onClose"]);let O=m;return O==null&&(D6+=1,O=`antd-message-${D6}`),Use(S=>(u(I(I({},_),{key:O,content:()=>p.createVNode(I6,{prefixCls:c,type:v,icon:typeof g=="function"?g():g},{default:()=>[typeof h=="function"?h():h]}),placement:"top",class:fe(v&&`${d}-${v}`,f,y),onClose:()=>{b==null||b(),S()}})),()=>{r(O)}))},o={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 h;c&&typeof c=="object"&&"content"in c?h=c:h={content:c};let g,v;typeof f=="function"?v=f:(g=f,v=d);const m=I(I({onClose:v,duration:g},h),{type:l});return i(m)};o[l]=u}),[o,()=>p.createVNode(jSe,H(H({key:n},t),{},{ref:e}),null)]}function ZSe(t){return GSe(t)}let R6=3,k6,vr,USe=1,N6="",L6="move-up",V6=!1,B6=()=>document.body,z6,F6=!1;function XSe(){return USe++}function YSe(t){t.top!==void 0&&(k6=t.top,vr=null),t.duration!==void 0&&(R6=t.duration),t.prefixCls!==void 0&&(N6=t.prefixCls),t.getContainer!==void 0&&(B6=t.getContainer,vr=null),t.transitionName!==void 0&&(L6=t.transitionName,vr=null,V6=!0),t.maxCount!==void 0&&(z6=t.maxCount,vr=null),t.rtl!==void 0&&(F6=t.rtl)}function qSe(t,e){if(vr){e(vr);return}Ob.newInstance({appContext:t.appContext,prefixCls:t.prefixCls||N6,rootPrefixCls:t.rootPrefixCls,transitionName:L6,hasTransitionName:V6,style:{top:k6},getContainer:B6||t.getPopupContainer,maxCount:z6,name:"message",useStyle:RT},n=>{if(vr){e(vr);return}vr=n,e(n)})}const W6={info:pu,success:Ls,error:Ai,warning:Vs,loading:Xa},KSe=Object.keys(W6);function JSe(t){const e=t.duration!==void 0?t.duration:R6,n=t.key||XSe(),r=new Promise(a=>{const o=()=>(typeof t.onClose=="function"&&t.onClose(),a(!0));qSe(t,s=>{s.notice({key:n,duration:e,style:t.style||{},class:t.class,content:l=>{let{prefixCls:u}=l;const c=W6[t.type],f=c?p.createVNode(c,null,null):"",d=fe(`${u}-custom-content`,{[`${u}-${t.type}`]:t.type,[`${u}-rtl`]:F6===!0});return p.createVNode("div",{class:d},[typeof t.icon=="function"?t.icon():t.icon||f,p.createVNode("span",null,[typeof t.content=="function"?t.content():t.content])])},onClose:o,onClick:t.onClick})})}),i=()=>{vr&&vr.removeNotice(n)};return i.then=(a,o)=>r.then(a,o),i.promise=r,i}function exe(t){return Object.prototype.toString.call(t)==="[object Object]"&&!!t.content}const Wf={open:JSe,config:YSe,destroy(t){if(vr)if(t){const{removeNotice:e}=vr;e(t)}else{const{destroy:e}=vr;e(),vr=null}}};function txe(t,e){t[e]=(n,r,i)=>exe(n)?t.open(I(I({},n),{type:e})):(typeof r=="function"&&(i=r,r=void 0),t.open({content:n,duration:r,type:e,onClose:i}))}KSe.forEach(t=>txe(Wf,t)),Wf.warn=Wf.warning,Wf.useMessage=ZSe;const nxe=t=>{const{componentCls:e,width:n,notificationMarginEdge:r}=t,i=new rt("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}}),a=new rt("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}}),o=new rt("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:a}},[`&${e}-topLeft, &${e}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:r,[`${e}-fade-enter${e}-fade-enter-active, ${e}-fade-appear${e}-fade-appear-active`]:{animationName:o}}}},rxe=t=>{const{iconCls:e,componentCls:n,boxShadowSecondary:r,fontSizeLG:i,notificationMarginBottom:a,borderRadiusLG:o,colorSuccess:s,colorInfo:l,colorWarning:u,colorError:c,colorTextHeading:f,notificationBg:d,notificationPadding:h,notificationMarginEdge:g,motionDurationMid:v,motionEaseInOut:m,fontSize:y,lineHeight:b,width:_,notificationIconSize:O}=t,S=`${n}-notice`,x=new rt("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:_},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),w=new rt("antNotificationFadeOut",{"0%":{maxHeight:t.animationMaxHeight,marginBottom:a,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[n]:I(I(I(I({},Dt(t)),{position:"fixed",zIndex:t.zIndexPopup,marginInlineEnd:g,[`${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:v,animationPlayState:"paused"},[`${n}-fade-enter${n}-fade-enter-active, ${n}-fade-appear${n}-fade-appear-active`]:{animationName:x,animationPlayState:"running"},[`${n}-fade-leave${n}-fade-leave-active`]:{animationName:w,animationPlayState:"running"}}),nxe(t)),{"&-rtl":{direction:"rtl",[`${n}-notice-btn`]:{float:"left"}}})},{[S]:{position:"relative",width:_,maxWidth:`calc(100vw - ${g*2}px)`,marginBottom:a,marginInlineStart:"auto",padding:h,overflow:"hidden",lineHeight:b,wordWrap:"break-word",background:d,borderRadius:o,boxShadow:r,[`${n}-close-icon`]:{fontSize:y,cursor:"pointer"},[`${S}-message`]:{marginBottom:t.marginXS,color:f,fontSize:i,lineHeight:t.lineHeightLG},[`${S}-description`]:{fontSize:y},[`&${S}-closable ${S}-message`]:{paddingInlineEnd:t.paddingLG},[`${S}-with-icon ${S}-message`]:{marginBottom:t.marginXS,marginInlineStart:t.marginSM+O,fontSize:i},[`${S}-with-icon ${S}-description`]:{marginInlineStart:t.marginSM+O,fontSize:y},[`${S}-icon`]:{position:"absolute",fontSize:O,lineHeight:0,[`&-success${e}`]:{color:s},[`&-info${e}`]:{color:l},[`&-warning${e}`]:{color:u},[`&-error${e}`]:{color:c}},[`${S}-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}},[`${S}-btn`]:{float:"right",marginTop:t.marginSM}}},{[`${S}-pure-panel`]:{margin:0}}]},kT=qt("Notification",t=>{const e=t.paddingMD,n=t.paddingLG,r=pt(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[rxe(r)]},t=>({zIndexPopup:t.zIndexPopupBase+50,width:384}));function Q6(t,e){return e||p.createVNode("span",{class:`${t}-close-x`},[p.createVNode(Go,{class:`${t}-close-icon`},null)])}p.createVNode(pu,null,null),p.createVNode(Ls,null,null),p.createVNode(Ai,null,null),p.createVNode(Vs,null,null),p.createVNode(Xa,null,null);const ixe={success:Ls,info:pu,error:Ai,warning:Vs};function H6(t){let{prefixCls:e,icon:n,type:r,message:i,description:a,btn:o}=t,s=null;if(n)s=p.createVNode("span",{class:`${e}-icon`},[lf(n)]);else if(r){const l=ixe[r];s=p.createVNode(l,{class:`${e}-icon ${e}-icon-${r}`},null)}return p.createVNode("div",{class:fe({[`${e}-with-icon`]:s}),role:"alert"},[s,p.createVNode("div",{class:`${e}-message`},[i]),p.createVNode("div",{class:`${e}-description`},[a]),o&&p.createVNode("div",{class:`${e}-btn`},[o])])}p.defineComponent({name:"PurePanel",inheritAttrs:!1,props:["prefixCls","icon","type","message","description","btn","closeIcon"],setup(t){const{getPrefixCls:e}=ct("notification",t),n=p.computed(()=>t.prefixCls||e("notification")),r=p.computed(()=>`${n.value}-notice`),[,i]=kT(n);return()=>p.createVNode(_b,H(H({},t),{},{prefixCls:n.value,class:fe(i.value,`${r.value}-pure-panel`),noticeKey:"pure",duration:null,closable:t.closable,closeIcon:Q6(n.value,t.closeIcon)}),{default:()=>[p.createVNode(H6,{prefixCls:r.value,icon:t.icon,type:t.type,message:t.message,description:t.description,btn:t.btn},null)]})}});function j6(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 axe(t){return{name:`${t}-fade`}}var oxe=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 G6=24,sxe=4.5,lxe=p.defineComponent({name:"Holder",inheritAttrs:!1,props:["prefixCls","class","type","icon","content","onAllRemoved"],setup(t,e){let{expose:n}=e;const{getPrefixCls:r,getPopupContainer:i}=ct("notification",t),a=p.computed(()=>t.prefixCls||r("notification")),o=d=>{var h,g;return j6(d,(h=t.top)!==null&&h!==void 0?h:G6,(g=t.bottom)!==null&&g!==void 0?g:G6)},[,s]=kT(a),l=()=>fe(s.value,{[`${a.value}-rtl`]:t.rtl}),u=()=>axe(a.value),[c,f]=M6({prefixCls:a.value,getStyles:o,getClassName:l,motion:u,closable:!0,closeIcon:Q6(a.value),duration:sxe,getContainer:()=>{var d,h;return((d=t.getPopupContainer)===null||d===void 0?void 0:d.call(t))||((h=i.value)===null||h===void 0?void 0:h.call(i))||document.body},maxCount:t.maxCount,hashId:s.value,onAllRemoved:t.onAllRemoved});return n(I(I({},c),{prefixCls:a.value,hashId:s})),f}});function uxe(t){const e=p.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:h,icon:g,type:v,btn:m,class:y}=s,b=oxe(s,["message","description","icon","type","btn","class"]);return l(I(I({placement:"topRight"},b),{content:()=>p.createVNode(H6,{prefixCls:f,icon:typeof g=="function"?g():g,type:v,message:typeof d=="function"?d():d,description:typeof h=="function"?h():h,btn:typeof m=="function"?m():m},null),class:fe(v&&`${f}-${v}`,c,y)}))},a={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=>{a[s]=l=>r(I(I({},l),{type:s}))}),[a,()=>p.createVNode(lxe,H(H({key:n},t),{},{ref:e}),null)]}function cxe(t){return uxe(t)}const yu={};let Z6=4.5,U6="24px",X6="24px",NT="",Y6="topRight",q6=()=>document.body,K6=null,LT=!1,J6;function fxe(t){const{duration:e,placement:n,bottom:r,top:i,getContainer:a,closeIcon:o,prefixCls:s}=t;s!==void 0&&(NT=s),e!==void 0&&(Z6=e),n!==void 0&&(Y6=n),r!==void 0&&(X6=typeof r=="number"?`${r}px`:r),i!==void 0&&(U6=typeof i=="number"?`${i}px`:i),a!==void 0&&(q6=a),o!==void 0&&(K6=o),t.rtl!==void 0&&(LT=t.rtl),t.maxCount!==void 0&&(J6=t.maxCount)}function dxe(t,e){let{prefixCls:n,placement:r=Y6,getContainer:i=q6,top:a,bottom:o,closeIcon:s=K6,appContext:l}=t;const{getPrefixCls:u}=xxe(),c=u("notification",n||NT),f=`${c}-${r}-${LT}`,d=yu[f];if(d){Promise.resolve(d).then(g=>{e(g)});return}const h=fe(`${c}-${r}`,{[`${c}-rtl`]:LT===!0});Ob.newInstance({name:"notification",prefixCls:n||NT,useStyle:kT,class:h,style:j6(r,a??U6,o??X6),appContext:l,getContainer:i,closeIcon:g=>{let{prefixCls:v}=g;return p.createVNode("span",{class:`${v}-close-x`},[lf(s,{},p.createVNode(Go,{class:`${v}-close-icon`},null))])},maxCount:J6,hasTransitionName:!0},g=>{yu[f]=g,e(g)})}const hxe={success:nT,info:jy,error:iT,warning:rT};function pxe(t){const{icon:e,type:n,description:r,message:i,btn:a}=t,o=t.duration===void 0?Z6:t.duration;dxe(t,s=>{s.notice({content:l=>{let{prefixCls:u}=l;const c=`${u}-notice`;let f=null;if(e)f=()=>p.createVNode("span",{class:`${c}-icon`},[lf(e)]);else if(n){const d=hxe[n];f=()=>p.createVNode(d,{class:`${c}-icon ${c}-icon-${n}`},null)}return p.createVNode("div",{class:f?`${c}-with-icon`:""},[f&&f(),p.createVNode("div",{class:`${c}-message`},[!r&&f?p.createVNode("span",{class:`${c}-message-single-line-auto-margin`},null):null,lf(i)]),p.createVNode("div",{class:`${c}-description`},[lf(r)]),a?p.createVNode("span",{class:`${c}-btn`},[lf(a)]):null])},duration:o,closable:!0,onClose:t.onClose,onClick:t.onClick,key:t.key,style:t.style||{},class:t.class})})}const Qf={open:pxe,close(t){Object.keys(yu).forEach(e=>Promise.resolve(yu[e]).then(n=>{n.removeNotice(t)}))},config:fxe,destroy(){Object.keys(yu).forEach(t=>{Promise.resolve(yu[t]).then(e=>{e.destroy()}),delete yu[t]})}};["success","info","warning","error"].forEach(t=>{Qf[t]=e=>Qf.open(I(I({},e),{type:t}))}),Qf.warn=Qf.warning,Qf.useNotification=cxe;const gxe=`-ant-${Date.now()}-${Math.random()}`;function vxe(t,e){const n={},r=(o,s)=>{let l=o.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},i=(o,s)=>{const l=new It(o),u=iu(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 o=new It(e.primaryColor),s=iu(o.toRgbString());s.forEach((u,c)=>{n[`primary-${c+1}`]=u}),n["primary-color-deprecated-l-35"]=r(o,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(o,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(o,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(o,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(o,u=>u.setAlpha(u.getAlpha()*.12));const l=new It(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"),`
  217. :root {
  218. ${Object.keys(n).map(o=>`--${t}-${o}: ${n[o]};`).join(`
  219. `)}
  220. }
  221. `.trim()}function mxe(t,e){const n=vxe(t,e);wi()?ap(n,`${gxe}-dynamic-theme`):pr(!1,"ConfigProvider","SSR do not support dynamic theme with css variables.")}const yxe=t=>{const[e,n]=bf();return Ow(p.computed(()=>({theme:e.value,token:n.value,hashId:"",path:["ant-design-icons",t.value]})),()=>[{[`.${t.value}`]:I(I({},yf()),{[`.${t.value} .${t.value}-icon`]:{display:"block"}})}])};function bxe(t,e){const n=p.computed(()=>(t==null?void 0:t.value)||{}),r=p.computed(()=>n.value.inherit===!1||!(e!=null&&e.value)?f4:e.value);return p.computed(()=>{if(!(t!=null&&t.value))return e==null?void 0:e.value;const a=I({},r.value.components);return Object.keys(t.value.components||{}).forEach(o=>{a[o]=I(I({},a[o]),t.value.components[o])}),I(I(I({},r.value),n.value),{token:I(I({},r.value.token),n.value.token),components:a})})}var _xe=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 Oxe="ant";function Hf(){return Hn.prefixCls||Oxe}function eB(){return Hn.iconPrefixCls||aw}const VT=p.reactive({}),Hn=p.reactive({});p.watchEffect(()=>{I(Hn,VT),Hn.prefixCls=Hf(),Hn.iconPrefixCls=eB(),Hn.getPrefixCls=(t,e)=>e||(t?`${Hn.prefixCls}-${t}`:Hn.prefixCls),Hn.getRootPrefixCls=()=>Hn.prefixCls?Hn.prefixCls:Hf()});let BT;const Sxe=t=>{BT&&BT(),BT=p.watchEffect(()=>{I(VT,p.reactive(t)),I(Hn,p.reactive(t))}),t.theme&&mxe(Hf(),t.theme)},xxe=()=>({getPrefixCls:(t,e)=>e||(t?`${Hf()}-${t}`:Hf()),getIconPrefixCls:eB,getRootPrefixCls:()=>Hn.prefixCls?Hn.prefixCls:Hf()}),jf=p.defineComponent({compatConfig:{MODE:3},name:"AConfigProvider",inheritAttrs:!1,props:_le(),setup(t,e){let{slots:n}=e;const r=I0(),i=(M,R)=>{const{prefixCls:N="ant"}=t;if(R)return R;const V=N||r.getPrefixCls("");return M?`${V}-${M}`:V},a=p.computed(()=>t.iconPrefixCls||r.iconPrefixCls.value||aw),o=p.computed(()=>a.value!==r.iconPrefixCls.value),s=p.computed(()=>{var M;return t.csp||((M=r.csp)===null||M===void 0?void 0:M.value)}),l=yxe(a),u=bxe(p.computed(()=>t.theme),p.computed(()=>{var M;return(M=r.theme)===null||M===void 0?void 0:M.value})),c=M=>(t.renderEmpty||n.renderEmpty||r.renderEmpty||dce)(M),f=p.computed(()=>{var M,R;return(M=t.autoInsertSpaceInButton)!==null&&M!==void 0?M:(R=r.autoInsertSpaceInButton)===null||R===void 0?void 0:R.value}),d=p.computed(()=>{var M;return t.locale||((M=r.locale)===null||M===void 0?void 0:M.value)});p.watch(d,()=>{VT.locale=d.value},{immediate:!0});const h=p.computed(()=>{var M;return t.direction||((M=r.direction)===null||M===void 0?void 0:M.value)}),g=p.computed(()=>{var M,R;return(M=t.space)!==null&&M!==void 0?M:(R=r.space)===null||R===void 0?void 0:R.value}),v=p.computed(()=>{var M,R;return(M=t.virtual)!==null&&M!==void 0?M:(R=r.virtual)===null||R===void 0?void 0:R.value}),m=p.computed(()=>{var M,R;return(M=t.dropdownMatchSelectWidth)!==null&&M!==void 0?M:(R=r.dropdownMatchSelectWidth)===null||R===void 0?void 0:R.value}),y=p.computed(()=>{var M;return t.getTargetContainer!==void 0?t.getTargetContainer:(M=r.getTargetContainer)===null||M===void 0?void 0:M.value}),b=p.computed(()=>{var M;return t.getPopupContainer!==void 0?t.getPopupContainer:(M=r.getPopupContainer)===null||M===void 0?void 0:M.value}),_=p.computed(()=>{var M;return t.pageHeader!==void 0?t.pageHeader:(M=r.pageHeader)===null||M===void 0?void 0:M.value}),O=p.computed(()=>{var M;return t.input!==void 0?t.input:(M=r.input)===null||M===void 0?void 0:M.value}),S=p.computed(()=>{var M;return t.pagination!==void 0?t.pagination:(M=r.pagination)===null||M===void 0?void 0:M.value}),x=p.computed(()=>{var M;return t.form!==void 0?t.form:(M=r.form)===null||M===void 0?void 0:M.value}),w=p.computed(()=>{var M;return t.select!==void 0?t.select:(M=r.select)===null||M===void 0?void 0:M.value}),T=p.computed(()=>t.componentSize),P=p.computed(()=>t.componentDisabled),C=p.computed(()=>{var M,R;return(M=t.wave)!==null&&M!==void 0?M:(R=r.wave)===null||R===void 0?void 0:R.value}),$={csp:s,autoInsertSpaceInButton:f,locale:d,direction:h,space:g,virtual:v,dropdownMatchSelectWidth:m,getPrefixCls:i,iconPrefixCls:a,theme:p.computed(()=>{var M,R;return(M=u.value)!==null&&M!==void 0?M:(R=r.theme)===null||R===void 0?void 0:R.value}),renderEmpty:c,getTargetContainer:y,getPopupContainer:b,pageHeader:_,input:O,pagination:S,form:x,select:w,componentSize:T,componentDisabled:P,transformCellText:p.computed(()=>t.transformCellText),wave:C},A=p.computed(()=>{const M=u.value||{},{algorithm:R,token:N}=M,V=_xe(M,["algorithm","token"]),L=R&&(!Array.isArray(R)||R.length>0)?RL(R):void 0;return I(I({},V),{theme:L,token:I(I({},Y0),N)})}),E=p.computed(()=>{var M,R;let N={};return d.value&&(N=((M=d.value.Form)===null||M===void 0?void 0:M.defaultValidateMessages)||((R=Bo.Form)===null||R===void 0?void 0:R.defaultValidateMessages)||{}),t.form&&t.form.validateMessages&&(N=I(I({},N),t.form.validateMessages)),N});Ole($),yle({validateMessages:E}),b4(T),vL(P);const D=M=>{var R,N;let V=o.value?l((R=n.default)===null||R===void 0?void 0:R.call(n)):(N=n.default)===null||N===void 0?void 0:N.call(n);if(t.theme){const L=function(){return V}();V=p.createVNode(sce,{value:A.value},{default:()=>[L]})}return p.createVNode(ISe,{locale:d.value||M,ANT_MARK__:DT},{default:()=>[V]})};return p.watchEffect(()=>{h.value&&(Wf.config({rtl:h.value==="rtl"}),Qf.config({rtl:h.value==="rtl"}))}),()=>p.createVNode(bL,{children:(M,R,N)=>D(N)},null)}});jf.config=Sxe,jf.install=function(t){t.component(jf.name,jf)};const wxe=t=>{const{componentCls:e,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:i}=t;return{[e]:I(I({},Dt(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}}})}},Cxe=qt("Divider",t=>{const e=pt(t,{dividerVerticalGutterMargin:t.marginXS,dividerHorizontalWithTextGutterMargin:t.margin,dividerHorizontalGutterMargin:t.marginLG});return[wxe(e)]},{sizePaddingEdgeHorizontal:0}),Txe=()=>({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]}),Pxe=p.defineComponent({name:"ADivider",inheritAttrs:!1,compatConfig:{MODE:3},props:Txe(),setup(t,e){let{slots:n,attrs:r}=e;const{prefixCls:i,direction:a}=ct("divider",t),[o,s]=Cxe(i),l=p.computed(()=>t.orientation==="left"&&t.orientationMargin!=null),u=p.computed(()=>t.orientation==="right"&&t.orientationMargin!=null),c=p.computed(()=>{const{type:h,dashed:g,plain:v}=t,m=i.value;return{[m]:!0,[s.value]:!!s.value,[`${m}-${h}`]:!0,[`${m}-dashed`]:!!g,[`${m}-plain`]:!!v,[`${m}-rtl`]:a.value==="rtl",[`${m}-no-default-orientation-margin-left`]:l.value,[`${m}-no-default-orientation-margin-right`]:u.value}}),f=p.computed(()=>{const h=typeof t.orientationMargin=="number"?`${t.orientationMargin}px`:t.orientationMargin;return I(I({},l.value&&{marginLeft:h}),u.value&&{marginRight:h})}),d=p.computed(()=>t.orientation.length>0?"-"+t.orientation:t.orientation);return()=>{var h;const g=bn((h=n.default)===null||h===void 0?void 0:h.call(n));return o(p.createVNode("div",H(H({},r),{},{class:[c.value,g.length?`${i.value}-with-text ${i.value}-with-text${d.value}`:"",r.class],role:"separator"}),[g.length?p.createVNode("span",{class:`${i.value}-inner-text`,style:f.value},[g]):null]))}}}),$xe=ff(Pxe),zp=t=>t!=null&&(Array.isArray(t)?Qa(t).length:!0);function zT(t){return zp(t.prefix)||zp(t.suffix)||zp(t.allowClear)}function Sb(t){return zp(t.addonBefore)||zp(t.addonAfter)}function FT(t){return typeof t>"u"||t===null?"":String(t)}function Fp(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 a=t.cloneNode(!0);i.target=a,i.currentTarget=a,a.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 tB(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 Axe=()=>({addonBefore:Z.any,addonAfter:Z.any,prefix:Z.any,suffix:Z.any,clearIcon:Z.any,affixWrapperClassName:String,groupClassName:String,wrapperClassName:String,inputClassName:String,allowClear:{type:Boolean,default:void 0}}),nB=()=>I(I({},Axe()),{value:{type:[String,Number,Symbol],default:void 0},defaultValue:{type:[String,Number,Symbol],default:void 0},inputElement:Z.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}}),rB=()=>I(I({},nB()),{id:String,placeholder:{type:[String,Number]},autocomplete:String,type:Bt("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}),Exe=p.defineComponent({name:"BaseInput",inheritAttrs:!1,props:nB(),setup(t,e){let{slots:n,attrs:r}=e;const i=p.ref(),a=s=>{var l;if(!((l=i.value)===null||l===void 0)&&l.contains(s.target)){const{triggerFocus:u}=t;u==null||u()}},o=()=>{var s;const{allowClear:l,value:u,disabled:c,readonly:f,handleReset:d,suffix:h=n.suffix,prefixCls:g}=t;if(!l)return null;const v=!c&&!f&&u,m=`${g}-clear-icon`,y=((s=n.clearIcon)===null||s===void 0?void 0:s.call(n))||"*";return p.createVNode("span",{onClick:d,onMousedown:b=>b.preventDefault(),class:fe({[`${m}-hidden`]:!v,[`${m}-has-suffix`]:!!h},m),role:"button",tabindex:-1},[y])};return()=>{var s,l;const{focused:u,value:c,disabled:f,allowClear:d,readonly:h,hidden:g,prefixCls:v,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:_=n.addonBefore,inputElement:O,affixWrapperClassName:S,wrapperClassName:x,groupClassName:w}=t;let T=en(O,{value:c,hidden:g});if(zT({prefix:m,suffix:y,allowClear:d})){const P=`${v}-affix-wrapper`,C=fe(P,{[`${P}-disabled`]:f,[`${P}-focused`]:u,[`${P}-readonly`]:h,[`${P}-input-with-clear-btn`]:y&&d&&c},!Sb({addonAfter:b,addonBefore:_})&&r.class,S),$=(y||d)&&p.createVNode("span",{class:`${v}-suffix`},[o(),y]);T=p.createVNode("span",{class:C,style:r.style,hidden:!Sb({addonAfter:b,addonBefore:_})&&g,onMousedown:a,ref:i},[m&&p.createVNode("span",{class:`${v}-prefix`},[m]),en(O,{style:null,value:c,hidden:null}),$])}if(Sb({addonAfter:b,addonBefore:_})){const P=`${v}-group`,C=`${P}-addon`,$=fe(`${v}-wrapper`,P,x),A=fe(`${v}-group-wrapper`,r.class,w);return p.createVNode("span",{class:A,style:r.style,hidden:g},[p.createVNode("span",{class:$},[_&&p.createVNode("span",{class:C},[_]),en(T,{style:null,hidden:null}),b&&p.createVNode("span",{class:C},[b])])])}return T}}});var Mxe=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 Ixe=p.defineComponent({name:"VCInput",inheritAttrs:!1,props:rB(),setup(t,e){let{slots:n,attrs:r,expose:i,emit:a}=e;const o=p.shallowRef(t.value===void 0?t.defaultValue:t.value),s=p.shallowRef(!1),l=p.shallowRef(),u=p.shallowRef();p.watch(()=>t.value,()=>{o.value=t.value}),p.watch(()=>t.disabled,()=>{t.disabled&&(s.value=!1)});const c=w=>{l.value&&tB(l.value.input,w)},f=()=>{var w;(w=l.value.input)===null||w===void 0||w.blur()},d=(w,T,P)=>{var C;(C=l.value.input)===null||C===void 0||C.setSelectionRange(w,T,P)},h=()=>{var w;(w=l.value.input)===null||w===void 0||w.select()};i({focus:c,blur:f,input:p.computed(()=>{var w;return(w=l.value.input)===null||w===void 0?void 0:w.input}),stateValue:o,setSelectionRange:d,select:h});const g=w=>{a("change",w)},v=(w,T)=>{o.value!==w&&(t.value===void 0?o.value=w:p.nextTick(()=>{var P;l.value.input.value!==o.value&&((P=u.value)===null||P===void 0||P.$forceUpdate())}),p.nextTick(()=>{T&&T()}))},m=w=>{const{value:T}=w.target;if(o.value===T)return;const P=w.target.value;Fp(l.value.input,w,g),v(P)},y=w=>{w.keyCode===13&&a("pressEnter",w),a("keydown",w)},b=w=>{s.value=!0,a("focus",w)},_=w=>{s.value=!1,a("blur",w)},O=w=>{Fp(l.value.input,w,g),v("",()=>{c()})},S=()=>{var w,T;const{addonBefore:P=n.addonBefore,addonAfter:C=n.addonAfter,disabled:$,valueModifiers:A={},htmlSize:E,autocomplete:D,prefixCls:M,inputClassName:R,prefix:N=(w=n.prefix)===null||w===void 0?void 0:w.call(n),suffix:V=(T=n.suffix)===null||T===void 0?void 0:T.call(n),allowClear:L,type:z="text"}=t,B=Rn(t,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","bordered","htmlSize","lazy","showCount","valueModifiers","showCount","affixWrapperClassName","groupClassName","inputClassName","wrapperClassName"]),F=I(I(I({},B),r),{autocomplete:D,onChange:m,onInput:m,onFocus:b,onBlur:_,onKeydown:y,class:fe(M,{[`${M}-disabled`]:$},R,!Sb({addonAfter:C,addonBefore:P})&&!zT({prefix:N,suffix:V,allowClear:L})&&r.class),ref:l,key:"ant-input",size:E,type:z,lazy:t.lazy});return A.lazy&&delete F.onInput,F.autofocus||delete F.autofocus,p.createVNode(pC,Rn(F,["size"]),null)},x=()=>{var w;const{maxlength:T,suffix:P=(w=n.suffix)===null||w===void 0?void 0:w.call(n),showCount:C,prefixCls:$}=t,A=Number(T)>0;if(P||C){const E=[...FT(o.value)].length,D=typeof C=="object"?C.formatter({count:E,maxlength:T}):`${E}${A?` / ${T}`:""}`;return p.createVNode(p.Fragment,null,[!!C&&p.createVNode("span",{class:fe(`${$}-show-count-suffix`,{[`${$}-show-count-has-suffix`]:!!P})},[D]),P])}return null};return p.onMounted(()=>{process.env.NODE_ENV==="test"&&t.autofocus&&c()}),()=>{const{prefixCls:w,disabled:T}=t,P=Mxe(t,["prefixCls","disabled"]);return p.createVNode(Exe,H(H(H({},P),r),{},{ref:u,prefixCls:w,inputElement:S(),handleReset:O,value:FT(o.value),focused:s.value,triggerFocus:c,suffix:x(),disabled:T}),n)}}}),xb=()=>Rn(rB(),["wrapperClassName","groupClassName","inputClassName","affixWrapperClassName"]),iB=()=>I(I({},Rn(xb(),["prefix","addonBefore","addonAfter","suffix"])),{rows:Number,autosize:{type:[Boolean,Object],default:void 0},autoSize:{type:[Boolean,Object],default:void 0},onResize:{type:Function},onCompositionstart:M0(),onCompositionend:M0(),valueModifiers:Object});var Dxe=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 On=p.defineComponent({compatConfig:{MODE:3},name:"AInput",inheritAttrs:!1,props:xb(),setup(t,e){let{slots:n,attrs:r,expose:i,emit:a}=e;const o=p.ref(),s=Ya(),l=ma.useInject(),u=p.computed(()=>$p(l.status,t.status)),{direction:c,prefixCls:f,size:d,autocomplete:h}=ct("input",t),{compactSize:g,compactItemClassnames:v}=By(f,c),m=p.computed(()=>g.value||d.value),[y,b]=vT(f),_=Ha();i({focus:E=>{var D;(D=o.value)===null||D===void 0||D.focus(E)},blur:()=>{var E;(E=o.value)===null||E===void 0||E.blur()},input:o,setSelectionRange:(E,D,M)=>{var R;(R=o.value)===null||R===void 0||R.setSelectionRange(E,D,M)},select:()=>{var E;(E=o.value)===null||E===void 0||E.select()}});const T=p.ref([]),P=()=>{T.value.push(setTimeout(()=>{var E,D,M,R;!((E=o.value)===null||E===void 0)&&E.input&&((D=o.value)===null||D===void 0?void 0:D.input.getAttribute("type"))==="password"&&(!((M=o.value)===null||M===void 0)&&M.input.hasAttribute("value"))&&((R=o.value)===null||R===void 0||R.input.removeAttribute("value"))}))};p.onMounted(()=>{P()}),p.onBeforeUpdate(()=>{T.value.forEach(E=>clearTimeout(E))}),p.onBeforeUnmount(()=>{T.value.forEach(E=>clearTimeout(E))});const C=E=>{P(),a("blur",E),s.onFieldBlur()},$=E=>{P(),a("focus",E)},A=E=>{a("update:value",E.target.value),a("change",E),a("input",E),s.onFieldChange()};return()=>{var E,D,M,R,N,V;const{hasFeedback:L,feedbackIcon:z}=l,{allowClear:B,bordered:F=!0,prefix:j=(E=n.prefix)===null||E===void 0?void 0:E.call(n),suffix:K=(D=n.suffix)===null||D===void 0?void 0:D.call(n),addonAfter:q=(M=n.addonAfter)===null||M===void 0?void 0:M.call(n),addonBefore:te=(R=n.addonBefore)===null||R===void 0?void 0:R.call(n),id:X=(N=s.id)===null||N===void 0?void 0:N.value}=t,ee=Dxe(t,["allowClear","bordered","prefix","suffix","addonAfter","addonBefore","id"]),G=(L||K)&&p.createVNode(p.Fragment,null,[K,L&&z]),W=f.value,Q=zT({prefix:j,suffix:K})||!!L,J=n.clearIcon||(()=>p.createVNode(Ai,null,null));return y(p.createVNode(Ixe,H(H(H({},r),Rn(ee,["onUpdate:value","onChange","onInput"])),{},{onChange:A,id:X,disabled:(V=t.disabled)!==null&&V!==void 0?V:_.value,ref:o,prefixCls:W,autocomplete:h.value,onBlur:C,onFocus:$,prefix:j,suffix:G,allowClear:B,addonAfter:q&&p.createVNode(zy,null,{default:()=>[p.createVNode(Iy,null,{default:()=>[q]})]}),addonBefore:te&&p.createVNode(zy,null,{default:()=>[p.createVNode(Iy,null,{default:()=>[te]})]}),class:[r.class,v.value],inputClassName:fe({[`${W}-sm`]:m.value==="small",[`${W}-lg`]:m.value==="large",[`${W}-rtl`]:c.value==="rtl",[`${W}-borderless`]:!F},!Q&&Zo(W,u.value),b.value),affixWrapperClassName:fe({[`${W}-affix-wrapper-sm`]:m.value==="small",[`${W}-affix-wrapper-lg`]:m.value==="large",[`${W}-affix-wrapper-rtl`]:c.value==="rtl",[`${W}-affix-wrapper-borderless`]:!F},Zo(`${W}-affix-wrapper`,u.value,L),b.value),wrapperClassName:fe({[`${W}-group-rtl`]:c.value==="rtl"},b.value),groupClassName:fe({[`${W}-group-wrapper-sm`]:m.value==="small",[`${W}-group-wrapper-lg`]:m.value==="large",[`${W}-group-wrapper-rtl`]:c.value==="rtl"},Zo(`${W}-group-wrapper`,u.value,L),b.value)}),I(I({},n),{clearIcon:J})))}}}),Rxe=p.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:a,getPrefixCls:o}=ct("input-group",t),s=ma.useInject();ma.useProvide(s,{isFormItemInput:!1});const l=p.computed(()=>o("input")),[u,c]=vT(l),f=p.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`]:a.value==="rtl"}});return()=>{var d;return u(p.createVNode("span",H(H({},r),{},{class:fe(f.value,r.class)}),[(d=n.default)===null||d===void 0?void 0:d.call(n)]))}}});var kxe=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 Nxe=p.defineComponent({compatConfig:{MODE:3},name:"AInputSearch",inheritAttrs:!1,props:I(I({},xb()),{inputPrefixCls:String,enterButton:Z.any,onSearch:{type:Function}}),setup(t,e){let{slots:n,attrs:r,expose:i,emit:a}=e;const o=p.shallowRef(),s=p.shallowRef(!1);i({focus:()=>{var S;(S=o.value)===null||S===void 0||S.focus()},blur:()=>{var S;(S=o.value)===null||S===void 0||S.blur()}});const c=S=>{a("update:value",S.target.value),S&&S.target&&S.type==="click"&&a("search",S.target.value,S),a("change",S)},f=S=>{var x;document.activeElement===((x=o.value)===null||x===void 0?void 0:x.input)&&S.preventDefault()},d=S=>{var x,w;a("search",(w=(x=o.value)===null||x===void 0?void 0:x.input)===null||w===void 0?void 0:w.stateValue,S)},h=S=>{s.value||t.loading||d(S)},g=S=>{s.value=!0,a("compositionstart",S)},v=S=>{s.value=!1,a("compositionend",S)},{prefixCls:m,getPrefixCls:y,direction:b,size:_}=ct("input-search",t),O=p.computed(()=>y("input",t.inputPrefixCls));return()=>{var S,x,w,T;const{disabled:P,loading:C,addonAfter:$=(S=n.addonAfter)===null||S===void 0?void 0:S.call(n),suffix:A=(x=n.suffix)===null||x===void 0?void 0:x.call(n)}=t,E=kxe(t,["disabled","loading","addonAfter","suffix"]);let{enterButton:D=(T=(w=n.enterButton)===null||w===void 0?void 0:w.call(n))!==null&&T!==void 0?T:!1}=t;D=D||D==="";const M=typeof D=="boolean"?p.createVNode(Ay,null,null):null,R=`${m.value}-button`,N=Array.isArray(D)?D[0]:D;let V;const L=N.type&&WC(N.type)&&N.type.__ANT_BUTTON;if(L||N.tagName==="button")V=en(N,I({onMousedown:f,onClick:d,key:"enterButton"},L?{class:R,size:_.value}:{}),!1);else{const B=M&&!D;V=p.createVNode(gr,{class:R,type:D?"primary":void 0,size:_.value,disabled:P,key:"enterButton",onMousedown:f,onClick:d,loading:C,icon:B?M:null},{default:()=>[B?null:M||D]})}$&&(V=[V,$]);const z=fe(m.value,{[`${m.value}-rtl`]:b.value==="rtl",[`${m.value}-${_.value}`]:!!_.value,[`${m.value}-with-button`]:!!D},r.class);return p.createVNode(On,H(H(H({ref:o},Rn(E,["onUpdate:value","onSearch","enterButton"])),r),{},{onPressEnter:h,onCompositionstart:g,onCompositionend:v,size:_.value,prefixCls:O.value,addonAfter:V,suffix:A,onChange:c,class:z,disabled:P}),n)}}}),aB=t=>t!=null&&(Array.isArray(t)?Qa(t).length:!0);function Lxe(t){return aB(t.addonBefore)||aB(t.addonAfter)}const Vxe=["text","input"],Bxe=p.defineComponent({compatConfig:{MODE:3},name:"ClearableLabeledInput",inheritAttrs:!1,props:{prefixCls:String,inputType:Z.oneOf(Ms("text","input")),value:xi(),defaultValue:xi(),allowClear:{type:Boolean,default:void 0},element:xi(),handleReset:Function,disabled:{type:Boolean,default:void 0},direction:{type:String},size:{type:String},suffix:xi(),prefix:xi(),addonBefore:xi(),addonAfter:xi(),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=ma.useInject(),a=s=>{const{value:l,disabled:u,readonly:c,handleReset:f,suffix:d=n.suffix}=t,h=!u&&!c&&l,g=`${s}-clear-icon`;return p.createVNode(Ai,{onClick:f,onMousedown:v=>v.preventDefault(),class:fe({[`${g}-hidden`]:!h,[`${g}-has-suffix`]:!!d},g),role:"button"},null)},o=(s,l)=>{const{value:u,allowClear:c,direction:f,bordered:d,hidden:h,status:g,addonAfter:v=n.addonAfter,addonBefore:m=n.addonBefore,hashId:y}=t,{status:b,hasFeedback:_}=i;if(!c)return en(l,{value:u,disabled:t.disabled});const O=fe(`${s}-affix-wrapper`,`${s}-affix-wrapper-textarea-with-clear-btn`,Zo(`${s}-affix-wrapper`,$p(b,g),_),{[`${s}-affix-wrapper-rtl`]:f==="rtl",[`${s}-affix-wrapper-borderless`]:!d,[`${r.class}`]:!Lxe({addonAfter:v,addonBefore:m})&&r.class},y);return p.createVNode("span",{class:O,style:r.style,hidden:h},[en(l,{style:null,value:u,disabled:t.disabled}),a(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===Vxe[0]?o(l,c):null}}}),zxe=`
  222. min-height:0 !important;
  223. max-height:none !important;
  224. height:0 !important;
  225. visibility:hidden !important;
  226. overflow:hidden !important;
  227. position:absolute !important;
  228. z-index:-1000 !important;
  229. top:0 !important;
  230. right:0 !important;
  231. pointer-events: none !important;
  232. `,Fxe=["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"],WT={};let Ii;function Wxe(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&&WT[n])return WT[n];const r=window.getComputedStyle(t),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),a=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),o=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l={sizingStyle:Fxe.map(u=>`${u}:${r.getPropertyValue(u)}`).join(";"),paddingSize:a,borderSize:o,boxSizing:i};return e&&n&&(WT[n]=l),l}function Qxe(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;Ii||(Ii=document.createElement("textarea"),Ii.setAttribute("tab-index","-1"),Ii.setAttribute("aria-hidden","true"),document.body.appendChild(Ii)),t.getAttribute("wrap")?Ii.setAttribute("wrap",t.getAttribute("wrap")):Ii.removeAttribute("wrap");const{paddingSize:i,borderSize:a,boxSizing:o,sizingStyle:s}=Wxe(t,e);Ii.setAttribute("style",`${s};${zxe}`),Ii.value=t.value||t.placeholder||"";let l,u,c,f=Ii.scrollHeight;if(o==="border-box"?f+=a:o==="content-box"&&(f-=i),n!==null||r!==null){Ii.value=" ";const h=Ii.scrollHeight-i;n!==null&&(l=h*n,o==="border-box"&&(l=l+i+a),f=Math.max(l,f)),r!==null&&(u=h*r,o==="border-box"&&(u=u+i+a),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 QT=0,HT=1,jT=2,Hxe=p.defineComponent({compatConfig:{MODE:3},name:"ResizableTextArea",inheritAttrs:!1,props:iB(),setup(t,e){let{attrs:n,emit:r,expose:i}=e,a,o;const s=p.ref(),l=p.ref({}),u=p.ref(jT);p.onBeforeUnmount(()=>{at.cancel(a),at.cancel(o)});const c=()=>{try{if(s.value&&document.activeElement===s.value.input){const x=s.value.getSelectionStart(),w=s.value.getSelectionEnd(),T=s.value.getScrollTop();s.value.setSelectionRange(x,w),s.value.setScrollTop(T)}}catch{}},f=p.ref(),d=p.ref();p.watchEffect(()=>{const x=t.autoSize||t.autosize;x?(f.value=x.minRows,d.value=x.maxRows):(f.value=void 0,d.value=void 0)});const h=p.computed(()=>!!(t.autoSize||t.autosize)),g=()=>{u.value=QT};p.watch([()=>t.value,f,d,h],()=>{h.value&&g()},{immediate:!0});const v=p.ref();p.watch([u,s],()=>{if(s.value)if(u.value===QT)u.value=HT;else if(u.value===HT){const x=Qxe(s.value.input,!1,f.value,d.value);u.value=jT,v.value=x}else c()},{immediate:!0,flush:"post"});const m=p.getCurrentInstance(),y=p.ref(),b=()=>{at.cancel(y.value)},_=x=>{u.value===jT&&(r("resize",x),h.value&&(b(),y.value=at(()=>{g()})))};p.onBeforeUnmount(()=>{b()}),i({resizeTextarea:()=>{g()},textArea:p.computed(()=>{var x;return(x=s.value)===null||x===void 0?void 0:x.input}),instance:m}),pr(t.autosize===void 0,"Input.TextArea","autosize is deprecated, please use autoSize instead.");const S=()=>{const{prefixCls:x,disabled:w}=t,T=Rn(t,["prefixCls","onPressEnter","autoSize","autosize","defaultValue","allowClear","type","maxlength","valueModifiers"]),P=fe(x,n.class,{[`${x}-disabled`]:w}),C=h.value?v.value:null,$=[n.style,l.value,C],A=I(I(I({},T),n),{style:$,class:P});return(u.value===QT||u.value===HT)&&$.push({overflowX:"hidden",overflowY:"hidden"}),A.autofocus||delete A.autofocus,A.rows===0&&delete A.rows,p.createVNode(cf,{onResize:_,disabled:!h.value},{default:()=>[p.createVNode(pC,H(H({},A),{},{ref:s,tag:"textarea"}),null)]})};return()=>S()}});function oB(t,e){return[...t||""].slice(0,e).join("")}function sB(t,e,n,r){let i=n;return t?i=oB(n,r):[...e||""].length<n.length&&[...n||""].length>r&&(i=e),i}const jxe=p.defineComponent({compatConfig:{MODE:3},name:"ATextarea",inheritAttrs:!1,props:iB(),setup(t,e){let{attrs:n,expose:r,emit:i}=e;var a;const o=Ya(),s=ma.useInject(),l=p.computed(()=>$p(s.status,t.status)),u=p.shallowRef((a=t.value)!==null&&a!==void 0?a:t.defaultValue),c=p.shallowRef(),f=p.shallowRef(""),{prefixCls:d,size:h,direction:g}=ct("input",t),[v,m]=vT(d),y=Ha(),b=p.computed(()=>t.showCount===""||t.showCount||!1),_=p.computed(()=>Number(t.maxlength)>0),O=p.shallowRef(!1),S=p.shallowRef(),x=p.shallowRef(0),w=L=>{O.value=!0,S.value=f.value,x.value=L.currentTarget.selectionStart,i("compositionstart",L)},T=L=>{var z;O.value=!1;let B=L.currentTarget.value;if(_.value){const F=x.value>=t.maxlength+1||x.value===((z=S.value)===null||z===void 0?void 0:z.length);B=sB(F,S.value,B,t.maxlength)}B!==f.value&&(A(B),Fp(L.currentTarget,L,M,B)),i("compositionend",L)},P=p.getCurrentInstance();p.watch(()=>t.value,()=>{var L;"value"in P.vnode.props,u.value=(L=t.value)!==null&&L!==void 0?L:""});const C=L=>{var z;tB((z=c.value)===null||z===void 0?void 0:z.textArea,L)},$=()=>{var L,z;(z=(L=c.value)===null||L===void 0?void 0:L.textArea)===null||z===void 0||z.blur()},A=(L,z)=>{u.value!==L&&(t.value===void 0?u.value=L:p.nextTick(()=>{var B,F,j;c.value.textArea.value!==f.value&&((j=(B=c.value)===null||B===void 0?void 0:(F=B.instance).update)===null||j===void 0||j.call(F))}),p.nextTick(()=>{z&&z()}))},E=L=>{L.keyCode===13&&i("pressEnter",L),i("keydown",L)},D=L=>{const{onBlur:z}=t;z==null||z(L),o.onFieldBlur()},M=L=>{i("update:value",L.target.value),i("change",L),i("input",L),o.onFieldChange()},R=L=>{Fp(c.value.textArea,L,M),A("",()=>{C()})},N=L=>{let z=L.target.value;if(u.value!==z){if(_.value){const B=L.target,F=B.selectionStart>=t.maxlength+1||B.selectionStart===z.length||!B.selectionStart;z=sB(F,f.value,z,t.maxlength)}Fp(L.currentTarget,L,M,z),A(z)}},V=()=>{var L,z;const{class:B}=n,{bordered:F=!0}=t,j=I(I(I({},Rn(t,["allowClear"])),n),{class:[{[`${d.value}-borderless`]:!F,[`${B}`]:B&&!b.value,[`${d.value}-sm`]:h.value==="small",[`${d.value}-lg`]:h.value==="large"},Zo(d.value,l.value),m.value],disabled:y.value,showCount:null,prefixCls:d.value,onInput:N,onChange:N,onBlur:D,onKeydown:E,onCompositionstart:w,onCompositionend:T});return!((L=t.valueModifiers)===null||L===void 0)&&L.lazy&&delete j.onInput,p.createVNode(Hxe,H(H({},j),{},{id:(z=j==null?void 0:j.id)!==null&&z!==void 0?z:o.id.value,ref:c,maxlength:t.maxlength,lazy:t.lazy}),null)};return r({focus:C,blur:$,resizableTextArea:c}),p.watchEffect(()=>{let L=FT(u.value);!O.value&&_.value&&(t.value===null||t.value===void 0)&&(L=oB(L,t.maxlength)),f.value=L}),()=>{var L;const{maxlength:z,bordered:B=!0,hidden:F}=t,{style:j,class:K}=n,q=I(I(I({},t),n),{prefixCls:d.value,inputType:"text",handleReset:R,direction:g.value,bordered:B,style:b.value?void 0:j,hashId:m.value,disabled:(L=t.disabled)!==null&&L!==void 0?L:y.value});let te=p.createVNode(Bxe,H(H({},q),{},{value:f.value,status:t.status}),{element:V});if(b.value||s.hasFeedback){const X=[...f.value].length;let ee="";typeof b.value=="object"?ee=b.value.formatter({value:f.value,count:X,maxlength:z}):ee=`${X}${_.value?` / ${z}`:""}`,te=p.createVNode("div",{hidden:F,class:fe(`${d.value}-textarea`,{[`${d.value}-textarea-rtl`]:g.value==="rtl",[`${d.value}-textarea-show-count`]:b.value,[`${d.value}-textarea-in-form-item`]:s.isFormItemInput},`${d.value}-textarea-show-count`,K,m.value),style:j,"data-count":typeof ee!="object"?ee:void 0},[te,s.hasFeedback&&p.createVNode("span",{class:`${d.value}-textarea-suffix`},[s.feedbackIcon])])}return v(te)}}});var Gxe={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 lB(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){Zxe(t,i,n[i])})}return t}function Zxe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var wb=function(e,n){var r=lB({},e,n.attrs);return p.createVNode(Ze,lB({},r,{icon:Gxe}),null)};wb.displayName="EyeOutlined",wb.inheritAttrs=!1;var Uxe={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 uB(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){Xxe(t,i,n[i])})}return t}function Xxe(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=uB({},e,n.attrs);return p.createVNode(Ze,uB({},r,{icon:Uxe}),null)};GT.displayName="EyeInvisibleOutlined",GT.inheritAttrs=!1;var Yxe=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 qxe={click:"onClick",hover:"onMouseover"},Kxe=t=>t?p.createVNode(wb,null,null):p.createVNode(GT,null,null),Jxe=p.defineComponent({compatConfig:{MODE:3},name:"AInputPassword",inheritAttrs:!1,props:I(I({},xb()),{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:a}=e;const o=p.shallowRef(!1),s=()=>{const{disabled:m}=t;m||(o.value=!o.value,a("update:visible",o.value))};p.watchEffect(()=>{t.visible!==void 0&&(o.value=!!t.visible)});const l=p.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||Kxe}=t,_=qxe[y]||"",O=b(o.value),S={[_]:s,class:`${m}-icon`,key:"passwordIcon",onMousedown:x=>{x.preventDefault()},onMouseup:x=>{x.preventDefault()}};return en(ei(O)?O:p.createVNode("span",null,[O]),S)},{prefixCls:d,getPrefixCls:h}=ct("input-password",t),g=p.computed(()=>h("input",t.inputPrefixCls)),v=()=>{const{size:m,visibilityToggle:y}=t,b=Yxe(t,["size","visibilityToggle"]),_=y&&f(d.value),O=fe(d.value,r.class,{[`${d.value}-${m}`]:!!m}),S=I(I(I({},Rn(b,["suffix","iconRender","action"])),r),{type:o.value?"text":"password",class:O,prefixCls:g.value,suffix:_});return m&&(S.size=m),p.createVNode(On,H({ref:l},S),n)};return()=>v()}});On.Group=Rxe,On.Search=Nxe,On.TextArea=jxe,On.Password=Jxe,On.install=function(t){return t.component(On.name,On),t.component(On.Group.name,On.Group),t.component(On.Search.name,On.Search),t.component(On.TextArea.name,On.TextArea),t.component(On.Password.name,On.Password),t};function Cb(){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:Z.shape({x:Number,y:Number}).loose,title:Z.any,footer:Z.any,transitionName:String,maskTransitionName:String,animation:Z.any,maskAnimation:Z.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:Z.any,maskProps:Z.any,wrapProps:Z.any,getContainer:Z.any,dialogStyle:{type:Object,default:void 0},dialogClass:String,closeIcon:Z.any,forceRender:{type:Boolean,default:void 0},getOpenCount:Function,focusTriggerAfterClose:{type:Boolean,default:void 0},onClose:Function,modalRender:Function}}function cB(t,e,n){let r=e;return!r&&n&&(r=`${t}-${n}`),r}let fB=-1;function ewe(){return fB+=1,fB}function dB(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 twe(t){const e=t.getBoundingClientRect(),n={left:e.left,top:e.top},r=t.ownerDocument,i=r.defaultView||r.parentWindow;return n.left+=dB(i),n.top+=dB(i,!0),n}const hB={width:0,height:0,overflow:"hidden",outline:"none"},nwe=p.defineComponent({compatConfig:{MODE:3},name:"DialogContent",inheritAttrs:!1,props:I(I({},Cb()),{motionName:String,ariaId:String,onVisibleChanged:Function,onMousedown:Function,onMouseup:Function}),setup(t,e){let{expose:n,slots:r,attrs:i}=e;const a=p.ref(),o=p.ref(),s=p.ref();n({focus:()=>{var d;(d=a.value)===null||d===void 0||d.focus()},changeActive:d=>{const{activeElement:h}=document;d&&h===o.value?a.value.focus():!d&&h===a.value&&o.value.focus()}});const l=p.ref(),u=p.computed(()=>{const{width:d,height:h}=t,g={};return d!==void 0&&(g.width=typeof d=="number"?`${d}px`:d),h!==void 0&&(g.height=typeof h=="number"?`${h}px`:h),l.value&&(g.transformOrigin=l.value),g}),c=()=>{p.nextTick(()=>{if(s.value){const d=twe(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,h,g,v;const{prefixCls:m,footer:y=(d=r.footer)===null||d===void 0?void 0:d.call(r),title:b=(h=r.title)===null||h===void 0?void 0:h.call(r),ariaId:_,closable:O,closeIcon:S=(g=r.closeIcon)===null||g===void 0?void 0:g.call(r),onClose:x,bodyStyle:w,bodyProps:T,onMousedown:P,onMouseup:C,visible:$,modalRender:A=r.modalRender,destroyOnClose:E,motionName:D}=t;let M;y&&(M=p.createVNode("div",{class:`${m}-footer`},[y]));let R;b&&(R=p.createVNode("div",{class:`${m}-header`},[p.createVNode("div",{class:`${m}-title`,id:_},[b])]));let N;O&&(N=p.createVNode("button",{type:"button",onClick:x,"aria-label":"Close",class:`${m}-close`},[S||p.createVNode("span",{class:`${m}-close-x`},null)]));const V=p.createVNode("div",{class:`${m}-content`},[N,R,p.createVNode("div",H({class:`${m}-body`,style:w},T),[(v=r.default)===null||v===void 0?void 0:v.call(r)]),M]),L=xp(D);return p.createVNode(p.Transition,H(H({},L),{},{onBeforeEnter:c,onAfterEnter:()=>f(!0),onAfterLeave:()=>f(!1)}),{default:()=>[$||!E?p.withDirectives(p.createVNode("div",H(H({},i),{},{ref:s,key:"dialog-element",role:"document",style:[u.value,i.style],class:[m,i.class],onMousedown:P,onMouseup:C}),[p.createVNode("div",{tabindex:0,ref:a,style:hB,"aria-hidden":"true"},null),A?A({originVNode:V}):V,p.createVNode("div",{tabindex:0,ref:o,style:hB,"aria-hidden":"true"},null)]),[[p.vShow,$]]):null]})}}}),rwe=p.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:a}=t,o=xp(a);return p.createVNode(p.Transition,o,{default:()=>[p.withDirectives(p.createVNode("div",H({class:`${n}-mask`},i),null),[[p.vShow,r]])]})}}}),pB=p.defineComponent({compatConfig:{MODE:3},name:"VcDialog",inheritAttrs:!1,props:Dn(I(I({},Cb()),{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=p.shallowRef(),a=p.shallowRef(),o=p.shallowRef(),s=p.shallowRef(t.visible),l=p.shallowRef(`vcDialogTitle${ewe()}`),u=y=>{var b,_;if(y)Is(a.value,document.activeElement)||(i.value=document.activeElement,(b=o.value)===null||b===void 0||b.focus());else{const O=s.value;if(s.value=!1,t.mask&&i.value&&t.focusTriggerAfterClose){try{i.value.focus({preventScroll:!0})}catch{}i.value=null}O&&((_=t.afterClose)===null||_===void 0||_.call(t))}},c=y=>{var b;(b=t.onClose)===null||b===void 0||b.call(t,y)},f=p.shallowRef(!1),d=p.shallowRef(),h=()=>{clearTimeout(d.value),f.value=!0},g=()=>{d.value=setTimeout(()=>{f.value=!1})},v=y=>{if(!t.maskClosable)return null;f.value?f.value=!1:a.value===y.target&&c(y)},m=y=>{if(t.keyboard&&y.keyCode===le.ESC){y.stopPropagation(),c(y);return}t.visible&&y.keyCode===le.TAB&&o.value.changeActive(!y.shiftKey)};return p.watch(()=>t.visible,()=>{t.visible&&(s.value=!0)},{flush:"post"}),p.onBeforeUnmount(()=>{var y;clearTimeout(d.value),(y=t.scrollLocker)===null||y===void 0||y.unLock()}),p.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:_,maskTransitionName:O,maskAnimation:S,zIndex:x,wrapClassName:w,rootClassName:T,wrapStyle:P,closable:C,maskProps:$,maskStyle:A,transitionName:E,animation:D,wrapProps:M,title:R=r.title}=t,{style:N,class:V}=n;return p.createVNode("div",H({class:[`${y}-root`,T]},wy(t,{data:!0})),[p.createVNode(rwe,{prefixCls:y,visible:b&&_,motionName:cB(y,O,S),style:I({zIndex:x},A),maskProps:$},null),p.createVNode("div",H({tabIndex:-1,onKeydown:m,class:fe(`${y}-wrap`,w),ref:a,onClick:v,role:"dialog","aria-labelledby":R?l.value:null,style:I(I({zIndex:x},P),{display:s.value?null:"none"})},M),[p.createVNode(nwe,H(H({},Rn(t,["scrollLocker"])),{},{style:N,class:V,onMousedown:h,onMouseup:g,ref:o,closable:C,ariaId:l.value,prefixCls:y,visible:_,onClose:c,onVisibleChanged:u,motionName:cB(y,E,D)}),r)])])}}}),iwe=Cb(),gB=p.defineComponent({compatConfig:{MODE:3},name:"DialogWrap",inheritAttrs:!1,props:Dn(iwe,{visible:!1}),setup(t,e){let{attrs:n,slots:r}=e;const i=p.ref(t.visible);return dC({},{inTriggerContext:!1}),p.watch(()=>t.visible,()=>{t.visible&&(i.value=!0)},{flush:"post"}),()=>{const{visible:a,getContainer:o,forceRender:s,destroyOnClose:l=!1,afterClose:u}=t;let c=I(I(I({},t),n),{ref:"_component",key:"dialog"});return o===!1?p.createVNode(pB,H(H({},c),{},{getOpenCount:()=>2}),r):!s&&l&&!i.value?null:p.createVNode(j8,{autoLock:!0,visible:a,forceRender:s,getContainer:o},{default:f=>(c=I(I(I({},c),f),{afterClose:()=>{u==null||u(),i.value=!1}}),p.createVNode(pB,c,r))})}}});function awe(t){const e=p.ref(null),n=p.reactive(I({},t)),r=p.ref([]),i=a=>{e.value===null&&(r.value=[],e.value=at(()=>{let o;r.value.forEach(s=>{o=I(I({},o),s)}),I(n,o),e.value=null})),r.value.push(a)};return p.onMounted(()=>{e.value&&at.cancel(e.value)}),[n,i]}function vB(t,e,n,r){const i=e+n,a=(n-r)/2;if(n>r){if(e>0)return{[t]:a};if(e<0&&i<r)return{[t]:-a}}else if(e<0||i>r)return{[t]:e<0?a:-a};return{}}function owe(t,e,n,r){const{width:i,height:a}=gpe();let o=null;return t<=i&&e<=a?o={x:0,y:0}:(t>i||e>a)&&(o=I(I({},vB("x",n,t,i)),vB("y",r,e,a))),o}var swe=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 mB=Symbol("previewGroupContext"),ZT={provide:t=>{p.provide(mB,t)},inject:()=>p.inject(mB,{isPreviewGroup:p.shallowRef(!1),previewUrls:p.computed(()=>new Map),setPreviewUrls:()=>{},current:p.ref(null),setCurrent:()=>{},setShowPreview:()=>{},setMousePosition:()=>{},registerImage:null,rootClassName:""})},lwe=()=>({previewPrefixCls:String,preview:{type:[Boolean,Object],default:!0},icons:{type:Object,default:()=>({})}}),yB=p.defineComponent({compatConfig:{MODE:3},name:"PreviewGroup",inheritAttrs:!1,props:lwe(),setup(t,e){let{slots:n}=e;const r=p.computed(()=>{const S={visible:void 0,onVisibleChange:()=>{},getContainer:void 0,current:0};return typeof t.preview=="object"?OB(t.preview,S):S}),i=p.reactive(new Map),a=p.ref(),o=p.computed(()=>r.value.visible),s=p.computed(()=>r.value.getContainer),l=(S,x)=>{var w,T;(T=(w=r.value).onVisibleChange)===null||T===void 0||T.call(w,S,x)},[u,c]=Ef(!!o.value,{value:o,onChange:l}),f=p.ref(null),d=p.computed(()=>o.value!==void 0),h=p.computed(()=>Array.from(i.keys())),g=p.computed(()=>h.value[r.value.current]),v=p.computed(()=>new Map(Array.from(i).filter(S=>{let[,{canPreview:x}]=S;return!!x}).map(S=>{let[x,{url:w}]=S;return[x,w]}))),m=function(S,x){let w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;i.set(S,{url:x,canPreview:w})},y=S=>{a.value=S},b=S=>{f.value=S},_=function(S,x){let w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;const T=()=>{i.delete(S)};return i.set(S,{url:x,canPreview:w}),T},O=S=>{S==null||S.stopPropagation(),c(!1),b(null)};return p.watch(g,S=>{y(S)},{immediate:!0,flush:"post"}),p.watchEffect(()=>{u.value&&d.value&&y(g.value)},{flush:"post"}),ZT.provide({isPreviewGroup:p.shallowRef(!0),previewUrls:v,setPreviewUrls:m,current:a,setCurrent:y,setShowPreview:c,setMousePosition:b,registerImage:_}),()=>{const S=swe(r.value,[]);return p.createVNode(p.Fragment,null,[n.default&&n.default(),p.createVNode(bB,H(H({},S),{},{"ria-hidden":!u.value,visible:u.value,prefixCls:t.previewPrefixCls,onClose:O,mousePosition:f.value,src:v.value.get(a.value),icons:t.icons,getContainer:s.value}),null)])}}}),bu={x:0,y:0},uwe=I(I({},Cb()),{src:String,alt:String,rootClassName:String,icons:{type:Object,default:()=>({})}}),bB=p.defineComponent({compatConfig:{MODE:3},name:"Preview",inheritAttrs:!1,props:uwe,emits:["close","afterClose"],setup(t,e){let{emit:n,attrs:r}=e;const{rotateLeft:i,rotateRight:a,zoomIn:o,zoomOut:s,close:l,left:u,right:c,flipX:f,flipY:d}=p.reactive(t.icons),h=p.shallowRef(1),g=p.shallowRef(0),v=p.reactive({x:1,y:1}),[m,y]=awe(bu),b=()=>n("close"),_=p.shallowRef(),O=p.reactive({originX:0,originY:0,deltaX:0,deltaY:0}),S=p.shallowRef(!1),x=ZT.inject(),{previewUrls:w,current:T,isPreviewGroup:P,setCurrent:C}=x,$=p.computed(()=>w.value.size),A=p.computed(()=>Array.from(w.value.keys())),E=p.computed(()=>A.value.indexOf(T.value)),D=p.computed(()=>P.value?w.value.get(T.value):t.src),M=p.computed(()=>P.value&&$.value>1),R=p.shallowRef({wheelDirection:0}),N=()=>{h.value=1,g.value=0,v.x=1,v.y=1,y(bu),n("afterClose")},V=ge=>{ge?h.value+=.5:h.value++,y(bu)},L=ge=>{h.value>1&&(ge?h.value-=.5:h.value--),y(bu)},z=()=>{g.value+=90},B=()=>{g.value-=90},F=()=>{v.x=-v.x},j=()=>{v.y=-v.y},K=ge=>{ge.preventDefault(),ge.stopPropagation(),E.value>0&&C(A.value[E.value-1])},q=ge=>{ge.preventDefault(),ge.stopPropagation(),E.value<$.value-1&&C(A.value[E.value+1])},te=fe({[`${t.prefixCls}-moving`]:S.value}),X=`${t.prefixCls}-operations-operation`,ee=`${t.prefixCls}-operations-icon`,G=[{icon:l,onClick:b,type:"close"},{icon:o,onClick:()=>V(),type:"zoomIn"},{icon:s,onClick:()=>L(),type:"zoomOut",disabled:p.computed(()=>h.value===1)},{icon:a,onClick:z,type:"rotateRight"},{icon:i,onClick:B,type:"rotateLeft"},{icon:f,onClick:F,type:"flipX"},{icon:d,onClick:j,type:"flipY"}],W=()=>{if(t.visible&&S.value){const ge=_.value.offsetWidth*h.value,de=_.value.offsetHeight*h.value,{left:se,top:ye}=G8(_.value),Ie=g.value%180!==0;S.value=!1;const Xe=owe(Ie?de:ge,Ie?ge:de,se,ye);Xe&&y(I({},Xe))}},Q=ge=>{ge.button===0&&(ge.preventDefault(),ge.stopPropagation(),O.deltaX=ge.pageX-m.x,O.deltaY=ge.pageY-m.y,O.originX=m.x,O.originY=m.y,S.value=!0)},J=ge=>{t.visible&&S.value&&y({x:ge.pageX-O.deltaX,y:ge.pageY-O.deltaY})},ae=ge=>{if(!t.visible)return;ge.preventDefault();const de=ge.deltaY;R.value={wheelDirection:de}},oe=ge=>{!t.visible||!M.value||(ge.preventDefault(),ge.keyCode===le.LEFT?E.value>0&&C(A.value[E.value-1]):ge.keyCode===le.RIGHT&&E.value<$.value-1&&C(A.value[E.value+1]))},Se=()=>{t.visible&&(h.value!==1&&(h.value=1),(m.x!==bu.x||m.y!==bu.y)&&y(bu))};let _e=()=>{};return p.onMounted(()=>{p.watch([()=>t.visible,S],()=>{_e();let ge,de;const se=zn(window,"mouseup",W,!1),ye=zn(window,"mousemove",J,!1),Ie=zn(window,"wheel",ae,{passive:!1}),Xe=zn(window,"keydown",oe,!1);try{window.top!==window.self&&(ge=zn(window.top,"mouseup",W,!1),de=zn(window.top,"mousemove",J,!1))}catch(Ke){Jl(!1,`[vc-image] ${Ke}`)}_e=()=>{se.remove(),ye.remove(),Ie.remove(),Xe.remove(),ge&&ge.remove(),de&&de.remove()}},{flush:"post",immediate:!0}),p.watch([R],()=>{const{wheelDirection:ge}=R.value;ge>0?L(!0):ge<0&&V(!0)})}),p.onUnmounted(()=>{_e()}),()=>{const{visible:ge,prefixCls:de,rootClassName:se}=t;return p.createVNode(gB,H(H({},r),{},{transitionName:t.transitionName,maskTransitionName:t.maskTransitionName,closable:!1,keyboard:!0,prefixCls:de,onClose:b,afterClose:N,visible:ge,wrapClassName:te,rootClassName:se,getContainer:t.getContainer}),{default:()=>[p.createVNode("div",{class:[`${t.prefixCls}-operations-wrapper`,se]},[p.createVNode("ul",{class:`${t.prefixCls}-operations`},[G.map(ye=>{let{icon:Ie,onClick:Xe,type:Ke,disabled:yt}=ye;return p.createVNode("li",{class:fe(X,{[`${t.prefixCls}-operations-operation-disabled`]:yt&&(yt==null?void 0:yt.value)}),onClick:Xe,key:Ke},[p.cloneVNode(Ie,{class:ee})])})])]),p.createVNode("div",{class:`${t.prefixCls}-img-wrapper`,style:{transform:`translate3d(${m.x}px, ${m.y}px, 0)`}},[p.createVNode("img",{onMousedown:Q,onDblclick:Se,ref:_,class:`${t.prefixCls}-img`,src:D.value,alt:t.alt,style:{transform:`scale3d(${v.x*h.value}, ${v.y*h.value}, 1) rotate(${g.value}deg)`}},null)]),M.value&&p.createVNode("div",{class:fe(`${t.prefixCls}-switch-left`,{[`${t.prefixCls}-switch-left-disabled`]:E.value<=0}),onClick:K},[u]),M.value&&p.createVNode("div",{class:fe(`${t.prefixCls}-switch-right`,{[`${t.prefixCls}-switch-right-disabled`]:E.value>=$.value-1}),onClick:q},[c])]})}}});var cwe=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 _B=()=>({src:String,wrapperClassName:String,wrapperStyle:{type:Object,default:void 0},rootClassName:String,prefixCls:String,previewPrefixCls:String,previewMask:{type:[Boolean,Function],default:void 0},placeholder:Z.any,fallback:String,preview:{type:[Boolean,Object],default:!0},onClick:{type:Function},onError:{type:Function}}),OB=(t,e)=>{const n=I({},t);return Object.keys(e).forEach(r=>{t[r]===void 0&&(n[r]=e[r])}),n};let fwe=0;const SB=p.defineComponent({compatConfig:{MODE:3},name:"VcImage",inheritAttrs:!1,props:_B(),emits:["click","error"],setup(t,e){let{attrs:n,slots:r,emit:i}=e;const a=p.computed(()=>t.prefixCls),o=p.computed(()=>`${a.value}-preview`),s=p.computed(()=>{const V={visible:void 0,onVisibleChange:()=>{},getContainer:void 0};return typeof t.preview=="object"?OB(t.preview,V):V}),l=p.computed(()=>{var V;return(V=s.value.src)!==null&&V!==void 0?V:t.src}),u=p.computed(()=>t.placeholder&&t.placeholder!==!0||r.placeholder),c=p.computed(()=>s.value.visible),f=p.computed(()=>s.value.getContainer),d=p.computed(()=>c.value!==void 0),h=(V,L)=>{var z,B;(B=(z=s.value).onVisibleChange)===null||B===void 0||B.call(z,V,L)},[g,v]=Ef(!!c.value,{value:c,onChange:h}),m=p.ref(u.value?"loading":"normal");p.watch(()=>t.src,()=>{m.value=u.value?"loading":"normal"});const y=p.ref(null),b=p.computed(()=>m.value==="error"),_=ZT.inject(),{isPreviewGroup:O,setCurrent:S,setShowPreview:x,setMousePosition:w,registerImage:T}=_,P=p.ref(fwe++),C=p.computed(()=>t.preview&&!b.value),$=()=>{m.value="normal"},A=V=>{m.value="error",i("error",V)},E=V=>{if(!d.value){const{left:L,top:z}=G8(V.target);O.value?(S(P.value),w({x:L,y:z})):y.value={x:L,y:z}}O.value?x(!0):v(!0),i("click",V)},D=()=>{v(!1),d.value||(y.value=null)},M=p.ref(null);p.watch(()=>M,()=>{m.value==="loading"&&M.value.complete&&(M.value.naturalWidth||M.value.naturalHeight)&&$()});let R=()=>{};p.onMounted(()=>{p.watch([l,C],()=>{if(R(),!O.value)return()=>{};R=T(P.value,l.value,C.value),C.value||R()},{flush:"post",immediate:!0})}),p.onUnmounted(()=>{R()});const N=V=>fye(V)?V+"px":V;return()=>{const{prefixCls:V,wrapperClassName:L,fallback:z,src:B,placeholder:F,wrapperStyle:j,rootClassName:K}=t,{width:q,height:te,crossorigin:X,decoding:ee,alt:G,sizes:W,srcset:Q,usemap:J,class:ae,style:oe}=n,Se=s.value,{icons:_e,maskClassName:ge}=Se,de=cwe(Se,["icons","maskClassName"]),se=fe(V,L,K,{[`${V}-error`]:b.value}),ye=b.value&&z?z:l.value,Ie={crossorigin:X,decoding:ee,alt:G,sizes:W,srcset:Q,usemap:J,width:q,height:te,class:fe(`${V}-img`,{[`${V}-img-placeholder`]:F===!0},ae),style:I({height:N(te)},oe)};return p.createVNode(p.Fragment,null,[p.createVNode("div",{class:se,onClick:C.value?E:Xe=>{i("click",Xe)},style:I({width:N(q),height:N(te)},j)},[p.createVNode("img",H(H(H({},Ie),b.value&&z?{src:z}:{onLoad:$,onError:A,src:B}),{},{ref:M}),null),m.value==="loading"&&p.createVNode("div",{"aria-hidden":"true",class:`${V}-placeholder`},[F||r.placeholder&&r.placeholder()]),r.previewMask&&C.value&&p.createVNode("div",{class:[`${V}-mask`,ge]},[r.previewMask()])]),!O.value&&C.value&&p.createVNode(bB,H(H({},de),{},{"aria-hidden":!g.value,visible:g.value,prefixCls:o.value,onClose:D,mousePosition:y.value,src:ye,alt:G,getContainer:f.value,icons:_e,rootClassName:K}),null)])}}});SB.PreviewGroup=yB;const dwe=SB;var hwe={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 xB(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 UT=function(e,n){var r=xB({},e,n.attrs);return p.createVNode(Ze,xB({},r,{icon:hwe}),null)};UT.displayName="RotateLeftOutlined",UT.inheritAttrs=!1;var gwe={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 wB(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 XT=function(e,n){var r=wB({},e,n.attrs);return p.createVNode(Ze,wB({},r,{icon:gwe}),null)};XT.displayName="RotateRightOutlined",XT.inheritAttrs=!1;var mwe={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 CB(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){ywe(t,i,n[i])})}return t}function ywe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var YT=function(e,n){var r=CB({},e,n.attrs);return p.createVNode(Ze,CB({},r,{icon:mwe}),null)};YT.displayName="ZoomInOutlined",YT.inheritAttrs=!1;var bwe={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 TB(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){_we(t,i,n[i])})}return t}function _we(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=TB({},e,n.attrs);return p.createVNode(Ze,TB({},r,{icon:bwe}),null)};qT.displayName="ZoomOutOutlined",qT.inheritAttrs=!1;var Owe={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 PB(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 Tb=function(e,n){var r=PB({},e,n.attrs);return p.createVNode(Ze,PB({},r,{icon:Owe}),null)};Tb.displayName="SwapOutlined",Tb.inheritAttrs=!1;function $B(t){return{position:t,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0}}const AB=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`]:I(I({},$B("fixed")),{zIndex:t.zIndexPopupBase,height:"100%",backgroundColor:t.colorBgMask,[`${e}-hidden`]:{display:"none"}}),[`${e}-wrap`]:I(I({},$B("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${e}-root`]:b3(t)}]},xwe=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]:I(I({},Dt(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`]:I({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}},J0(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,
  233. ${e}-body,
  234. ${e}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${e}-confirm-body`]:{marginBottom:"auto"}}}]},wwe=t=>{const{componentCls:e}=t,n=`${e}-confirm`;return{[n]:{"&-rtl":{direction:"rtl"},[`${t.antCls}-modal-header`]:{display:"none"},[`${n}-body-wrapper`]:I({},K0()),[`${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},
  235. ${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"}}},Cwe=t=>{const{componentCls:e}=t;return{[`${e}-root`]:{[`${e}-wrap-rtl`]:{direction:"rtl",[`${e}-confirm-body`]:{direction:"rtl"}}}}},Twe=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}}}},Pwe=qt("Modal",t=>{const e=t.padding,n=t.fontSizeHeading5,r=t.lineHeightHeading5,i=pt(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[xwe(i),wwe(i),Cwe(i),AB(i),t.wireframe&&Twe(i),Wy(i,"zoom")]}),KT=t=>({position:t||"absolute",inset:0}),$we=t=>{const{iconCls:e,motionDurationSlow:n,paddingXXS:r,marginXXS:i,prefixCls:a}=t;return{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",color:"#fff",background:new It("#000").setAlpha(.5).toRgbString(),cursor:"pointer",opacity:0,transition:`opacity ${n}`,[`.${a}-mask-info`]:I(I({},mf),{padding:`0 ${r}px`,[e]:{marginInlineEnd:i,svg:{verticalAlign:"baseline"}}})}},Awe=t=>{const{previewCls:e,modalMaskBg:n,paddingSM:r,previewOperationColorDisabled:i,motionDurationSlow:a}=t,o=new It(n).setAlpha(.1),s=o.clone().setAlpha(.2);return{[`${e}-operations`]:I(I({},Dt(t)),{display:"flex",flexDirection:"row-reverse",alignItems:"center",color:t.previewOperationColor,listStyle:"none",background:o.toRgbString(),pointerEvents:"auto","&-operation":{marginInlineStart:r,padding:r,cursor:"pointer",transition:`all ${a}`,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}})}},Ewe=t=>{const{modalMaskBg:e,iconCls:n,previewOperationColorDisabled:r,previewCls:i,zIndexPopup:a,motionDurationSlow:o}=t,s=new It(e).setAlpha(.1),l=s.clone().setAlpha(.2);return{[`${i}-switch-left, ${i}-switch-right`]:{position:"fixed",insetBlockStart:"50%",zIndex:a+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 ${o}`,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}}},Mwe=t=>{const{motionEaseOut:e,previewCls:n,motionDurationSlow:r,componentCls:i}=t;return[{[`${i}-preview-root`]:{[n]:{height:"100%",textAlign:"center",pointerEvents:"none"},[`${n}-body`]:I(I({},KT()),{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":I(I({},KT()),{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%"},"&":[Awe(t),Ewe(t)]}]},Iwe=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`]:I({},$we(t)),[`${e}-mask:hover`]:{opacity:1},[`${e}-placeholder`]:I({},KT())}}},Dwe=t=>{const{previewCls:e}=t;return{[`${e}-root`]:Wy(t,"zoom"),"&":b3(t,!0)}},EB=qt("Image",t=>{const e=`${t.componentCls}-preview`,n=pt(t,{previewCls:e,modalMaskBg:new It("#000").setAlpha(.45).toRgbString(),imagePreviewSwitchSize:t.controlHeightLG});return[Iwe(n),Mwe(n),AB(pt(n,{componentCls:e})),Dwe(n)]},t=>({zIndexPopup:t.zIndexPopupBase+80,previewOperationColor:new It(t.colorTextLightSolid).toRgbString(),previewOperationColorDisabled:new It(t.colorTextLightSolid).setAlpha(.25).toRgbString(),previewOperationSize:t.fontSizeIcon*1.5})),MB={rotateLeft:p.createVNode(UT,null,null),rotateRight:p.createVNode(XT,null,null),zoomIn:p.createVNode(YT,null,null),zoomOut:p.createVNode(qT,null,null),close:p.createVNode(Go,null,null),left:p.createVNode(mT,null,null),right:p.createVNode(Jy,null,null),flipX:p.createVNode(Tb,null,null),flipY:p.createVNode(Tb,{rotate:90},null)},Rwe=()=>({previewPrefixCls:String,preview:xi()}),kwe=p.defineComponent({compatConfig:{MODE:3},name:"AImagePreviewGroup",inheritAttrs:!1,props:Rwe(),setup(t,e){let{attrs:n,slots:r}=e;const{prefixCls:i,rootPrefixCls:a}=ct("image",t),o=p.computed(()=>`${i.value}-preview`),[s,l]=EB(i),u=p.computed(()=>{const{preview:c}=t;if(c===!1)return c;const f=typeof c=="object"?c:{};return I(I({},f),{rootClassName:l.value,transitionName:Ua(a.value,"zoom",f.transitionName),maskTransitionName:Ua(a.value,"fade",f.maskTransitionName)})});return()=>s(p.createVNode(yB,H(H({},I(I({},n),t)),{},{preview:u.value,icons:MB,previewPrefixCls:o.value}),r))}}),Ws=p.defineComponent({name:"AImage",inheritAttrs:!1,props:_B(),setup(t,e){let{slots:n,attrs:r}=e;const{prefixCls:i,rootPrefixCls:a,configProvider:o}=ct("image",t),[s,l]=EB(i),u=p.computed(()=>{const{preview:c}=t;if(c===!1)return c;const f=typeof c=="object"?c:{};return I(I({icons:MB},f),{transitionName:Ua(a.value,"zoom",f.transitionName),maskTransitionName:Ua(a.value,"fade",f.maskTransitionName)})});return()=>{var c,f;const d=((f=(c=o.locale)===null||c===void 0?void 0:c.value)===null||f===void 0?void 0:f.Image)||Bo.Image,h=()=>p.createVNode("div",{class:`${i.value}-mask-info`},[p.createVNode(wb,null,null),d==null?void 0:d.preview]),{previewMask:g=n.previewMask||h}=t;return s(p.createVNode(dwe,H(H({},I(I(I({},r),t),{prefixCls:i.value})),{},{preview:u.value,rootClassName:fe(t.rootClassName,l.value)}),I(I({},n),{previewMask:typeof g=="function"?g:null})))}}});Ws.PreviewGroup=kwe,Ws.install=function(t){return t.component(Ws.name,Ws),t.component(Ws.PreviewGroup.name,Ws.PreviewGroup),t};var Nwe={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 IB(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){Lwe(t,i,n[i])})}return t}function Lwe(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=IB({},e,n.attrs);return p.createVNode(Ze,IB({},r,{icon:Nwe}),null)};JT.displayName="UpOutlined",JT.inheritAttrs=!1;function eP(){return typeof BigInt=="function"}function Wp(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("."),a=i[0]||"0",o=i[1]||"0";a==="0"&&o==="0"&&(n=!1);const s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:a,decimalStr:o,fullStr:`${s}${r}`}}function tP(t){const e=String(t);return!Number.isNaN(Number(e))&&e.includes("e")}function Qp(t){const e=String(t);if(tP(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(".")&&rP(e)?e.length-e.indexOf(".")-1:0}function nP(t){let e=String(t);if(tP(t)){if(t>Number.MAX_SAFE_INTEGER)return String(eP()?BigInt(t).toString():Number.MAX_SAFE_INTEGER);if(t<Number.MIN_SAFE_INTEGER)return String(eP()?BigInt(t).toString():Number.MIN_SAFE_INTEGER);e=t.toFixed(Qp(e))}return Wp(e).fullStr}function rP(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 DB(t){return!t&&t!==0&&!Number.isNaN(t)||!String(t).trim()}class _u{constructor(e){if(this.origin="",DB(e)){this.empty=!0;return}this.origin=String(e),this.number=Number(e)}negate(){return new _u(-this.toNumber())}add(e){if(this.isInvalidate())return new _u(e);const n=Number(e);if(Number.isNaN(n))return this;const r=this.number+n;if(r>Number.MAX_SAFE_INTEGER)return new _u(Number.MAX_SAFE_INTEGER);if(r<Number.MIN_SAFE_INTEGER)return new _u(Number.MIN_SAFE_INTEGER);const i=Math.max(Qp(this.number),Qp(n));return new _u(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()?"":nP(this.number):this.origin}}class Gf{constructor(e){if(this.origin="",DB(e)){this.empty=!0;return}if(this.origin=String(e),e==="-"||Number.isNaN(e)){this.nan=!0;return}let n=e;if(tP(n)&&(n=Number(n)),n=typeof n=="string"?n:nP(n),rP(n)){const r=Wp(n);this.negative=r.negative;const i=r.trimStr.split(".");this.integer=BigInt(i[0]);const a=i[1]||"0";this.decimal=BigInt(a),this.decimalLen=a.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 Gf(this.toString());return e.negative=!e.negative,e}add(e){if(this.isInvalidate())return new Gf(e);const n=new Gf(e);if(n.isInvalidate())return this;const r=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),i=this.alignDecimal(r),a=n.alignDecimal(r),o=(i+a).toString(),{negativeStr:s,trimStr:l}=Wp(o),u=`${s}${l.padStart(r+1,"0")}`;return new Gf(`${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()?"":Wp(`${this.getMark()}${this.getIntegerStr()}.${this.getDecimalStr()}`).fullStr:this.origin}}function Ka(t){return eP()?new Gf(t):new _u(t)}function iP(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(t==="")return"";const{negativeStr:i,integerStr:a,decimalStr:o}=Wp(t),s=`${e}${o}`,l=`${i}${a}`;if(n>=0){const u=Number(o[n]);if(u>=5&&!r){const c=Ka(t).add(`${i}0.${"0".repeat(n)}${10-u}`);return iP(c.toString(),e,n,r)}return n===0?l:`${l}${e}${o.padEnd(n,"0").slice(0,n)}`}return s===".0"?l:`${l}${s}`}const Vwe=200,Bwe=600,zwe=p.defineComponent({compatConfig:{MODE:3},name:"StepHandler",inheritAttrs:!1,props:{prefixCls:String,upDisabled:Boolean,downDisabled:Boolean,onStep:Qe()},slots:Object,setup(t,e){let{slots:n,emit:r}=e;const i=p.ref(),a=(s,l)=>{s.preventDefault(),r("step",l);function u(){r("step",l),i.value=setTimeout(u,Vwe)}i.value=setTimeout(u,Bwe)},o=()=>{clearTimeout(i.value)};return p.onBeforeUnmount(()=>{o()}),()=>{if(bC())return null;const{prefixCls:s,upDisabled:l,downDisabled:u}=t,c=`${s}-handler`,f=fe(c,`${c}-up`,{[`${c}-up-disabled`]:l}),d=fe(c,`${c}-down`,{[`${c}-down-disabled`]:u}),h={unselectable:"on",role:"button",onMouseup:o,onMouseleave:o},{upNode:g,downNode:v}=n;return p.createVNode("div",{class:`${c}-wrap`},[p.createVNode("span",H(H({},h),{},{onMousedown:m=>{a(m,!0)},"aria-label":"Increase Value","aria-disabled":l,class:f}),[(g==null?void 0:g())||p.createVNode("span",{unselectable:"on",class:`${s}-handler-up-inner`},null)]),p.createVNode("span",H(H({},h),{},{onMousedown:m=>{a(m,!1)},"aria-label":"Decrease Value","aria-disabled":u,class:d}),[(v==null?void 0:v())||p.createVNode("span",{unselectable:"on",class:`${s}-handler-down-inner`},null)])])}}});function Fwe(t,e){const n=p.ref(null);function r(){try{const{selectionStart:a,selectionEnd:o,value:s}=t.value,l=s.substring(0,a),u=s.substring(o);n.value={start:a,end:o,value:s,beforeTxt:l,afterTxt:u}}catch{}}function i(){if(t.value&&n.value&&e.value)try{const{value:a}=t.value,{beforeTxt:o,afterTxt:s,start:l}=n.value;let u=a.length;if(a.endsWith(s))u=a.length-n.value.afterTxt.length;else if(a.startsWith(o))u=o.length;else{const c=o[l-1],f=a.indexOf(c,l-1);f!==-1&&(u=f+1)}t.value.setSelectionRange(u,u)}catch(a){Jl(!1,`Something warning of cursor restore. Please fire issue about this: ${a.message}`)}}return[r,i]}const Wwe=()=>{const t=p.shallowRef(0),e=()=>{at.cancel(t.value)};return p.onBeforeUnmount(()=>{e()}),n=>{e(),t.value=at(()=>{n()})}};var Qwe=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 RB=(t,e)=>t||e.isEmpty()?e.toString():e.toNumber(),kB=t=>{const e=Ka(t);return e.isInvalidate()?null:e},NB=()=>({stringMode:We(),defaultValue:Zt([String,Number]),value:Zt([String,Number]),prefixCls:Bt(),min:Zt([String,Number]),max:Zt([String,Number]),step:Zt([String,Number],1),tabindex:Number,controls:We(!0),readonly:We(),disabled:We(),autofocus:We(),keyboard:We(!0),parser:Qe(),formatter:Qe(),precision:Number,decimalSeparator:String,onInput:Qe(),onChange:Qe(),onPressEnter:Qe(),onStep:Qe(),onBlur:Qe(),onFocus:Qe()}),Hwe=p.defineComponent({compatConfig:{MODE:3},name:"InnerInputNumber",inheritAttrs:!1,props:I(I({},NB()),{lazy:Boolean}),slots:Object,setup(t,e){let{attrs:n,slots:r,emit:i,expose:a}=e;const o=p.shallowRef(),s=p.shallowRef(!1),l=p.shallowRef(!1),u=p.shallowRef(!1),c=p.shallowRef(Ka(t.value));function f(B){t.value===void 0&&(c.value=B)}const d=(B,F)=>{if(!F)return t.precision>=0?t.precision:Math.max(Qp(B),Qp(t.step))},h=B=>{const F=String(B);if(t.parser)return t.parser(F);let j=F;return t.decimalSeparator&&(j=j.replace(t.decimalSeparator,".")),j.replace(/[^\w.-]+/g,"")},g=p.shallowRef(""),v=(B,F)=>{if(t.formatter)return t.formatter(B,{userTyping:F,input:String(g.value)});let j=typeof B=="number"?nP(B):B;if(!F){const K=d(j,F);if(rP(j)&&(t.decimalSeparator||K>=0)){const q=t.decimalSeparator||".";j=iP(j,q,K)}}return j},m=(()=>{const B=t.value;return c.value.isInvalidate()&&["string","number"].includes(typeof B)?Number.isNaN(B)?"":B:v(c.value.toString(),!1)})();g.value=m;function y(B,F){g.value=v(B.isInvalidate()?B.toString(!1):B.toString(!F),F)}const b=p.computed(()=>kB(t.max)),_=p.computed(()=>kB(t.min)),O=p.computed(()=>!b.value||!c.value||c.value.isInvalidate()?!1:b.value.lessEquals(c.value)),S=p.computed(()=>!_.value||!c.value||c.value.isInvalidate()?!1:c.value.lessEquals(_.value)),[x,w]=Fwe(o,s),T=B=>b.value&&!B.lessEquals(b.value)?b.value:_.value&&!_.value.lessEquals(B)?_.value:null,P=B=>!T(B),C=(B,F)=>{var j;let K=B,q=P(K)||K.isEmpty();if(!K.isEmpty()&&!F&&(K=T(K)||K,q=!0),!t.readonly&&!t.disabled&&q){const te=K.toString(),X=d(te,F);return X>=0&&(K=Ka(iP(te,".",X))),K.equals(c.value)||(f(K),(j=t.onChange)===null||j===void 0||j.call(t,K.isEmpty()?null:RB(t.stringMode,K)),t.value===void 0&&y(K,F)),K}return c.value},$=Wwe(),A=B=>{var F;if(x(),g.value=B,!u.value){const j=h(B),K=Ka(j);K.isNaN()||C(K,!0)}(F=t.onInput)===null||F===void 0||F.call(t,B),$(()=>{let j=B;t.parser||(j=B.replace(/。/g,".")),j!==B&&A(j)})},E=()=>{u.value=!0},D=()=>{u.value=!1,A(o.value.value)},M=B=>{A(B.target.value)},R=B=>{var F,j;if(B&&O.value||!B&&S.value)return;l.value=!1;let K=Ka(t.step);B||(K=K.negate());const q=(c.value||Ka(0)).add(K.toString()),te=C(q,!1);(F=t.onStep)===null||F===void 0||F.call(t,RB(t.stringMode,te),{offset:t.step,type:B?"up":"down"}),(j=o.value)===null||j===void 0||j.focus()},N=B=>{const F=Ka(h(g.value));let j=F;F.isNaN()?j=c.value:j=C(F,B),t.value!==void 0?y(c.value,!1):j.isNaN()||y(j,!1)},V=B=>{var F;const{which:j}=B;l.value=!0,j===le.ENTER&&(u.value||(l.value=!1),N(!1),(F=t.onPressEnter)===null||F===void 0||F.call(t,B)),t.keyboard!==!1&&!u.value&&[le.UP,le.DOWN].includes(j)&&(R(le.UP===j),B.preventDefault())},L=()=>{l.value=!1},z=B=>{N(!1),s.value=!1,l.value=!1,i("blur",B)};return p.watch(()=>t.precision,()=>{c.value.isInvalidate()||y(c.value,!1)},{flush:"post"}),p.watch(()=>t.value,()=>{const B=Ka(t.value);c.value=B;const F=Ka(h(g.value));(!B.equals(F)||!l.value||t.formatter)&&y(B,l.value)},{flush:"post"}),p.watch(g,()=>{t.formatter&&w()},{flush:"post"}),p.watch(()=>t.disabled,B=>{B&&(s.value=!1)}),a({focus:()=>{var B;(B=o.value)===null||B===void 0||B.focus()},blur:()=>{var B;(B=o.value)===null||B===void 0||B.blur()}}),()=>{const B=I(I({},n),t),{prefixCls:F="rc-input-number",min:j,max:K,step:q=1,defaultValue:te,value:X,disabled:ee,readonly:G,keyboard:W,controls:Q=!0,autofocus:J,stringMode:ae,parser:oe,formatter:Se,precision:_e,decimalSeparator:ge,onChange:de,onInput:se,onPressEnter:ye,onStep:Ie,lazy:Xe,class:Ke,style:yt}=B,ue=Qwe(B,["prefixCls","min","max","step","defaultValue","value","disabled","readonly","keyboard","controls","autofocus","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","lazy","class","style"]),{upHandler:Ve,downHandler:bt}=r,dn=`${F}-input`,Gt={};return Xe?Gt.onChange=M:Gt.onInput=M,p.createVNode("div",{class:fe(F,Ke,{[`${F}-focused`]:s.value,[`${F}-disabled`]:ee,[`${F}-readonly`]:G,[`${F}-not-a-number`]:c.value.isNaN(),[`${F}-out-of-range`]:!c.value.isInvalidate()&&!P(c.value)}),style:yt,onKeydown:V,onKeyup:L},[Q&&p.createVNode(zwe,{prefixCls:F,upDisabled:O.value,downDisabled:S.value,onStep:R},{upNode:Ve,downNode:bt}),p.createVNode("div",{class:`${dn}-wrap`},[p.createVNode("input",H(H(H({autofocus:J,autocomplete:"off",role:"spinbutton","aria-valuemin":j,"aria-valuemax":K,"aria-valuenow":c.value.isInvalidate()?null:c.value.toString(),step:q},ue),{},{ref:o,class:dn,value:g.value,disabled:ee,readonly:G,onFocus:hr=>{s.value=!0,i("focus",hr)}},Gt),{},{onBlur:z,onCompositionstart:E,onCompositionend:D}),null)])])}}});function aP(t){return t!=null}const jwe=t=>{const{componentCls:e,lineWidth:n,lineType:r,colorBorder:i,borderRadius:a,fontSizeLG:o,controlHeightLG:s,controlHeightSM:l,colorError:u,inputPaddingHorizontalSM:c,colorTextDescription:f,motionDurationMid:d,colorPrimary:h,controlHeight:g,inputPaddingHorizontal:v,colorBgContainer:m,colorTextDisabled:y,borderRadiusSM:b,borderRadiusLG:_,controlWidth:O,handleVisible:S}=t;return[{[e]:I(I(I(I({},Dt(t)),lb(t)),sb(t,e)),{display:"inline-block",width:O,margin:0,padding:0,border:`${n}px ${r} ${i}`,borderRadius:a,"&-rtl":{direction:"rtl",[`${e}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:o,borderRadius:_,[`input${e}-input`]:{height:s-2*n}},"&-sm":{padding:0,borderRadius:b,[`input${e}-input`]:{height:l-2*n,padding:`0 ${c}px`}},"&:hover":I({},Dp(t)),"&-focused":I({},ob(t)),"&-disabled":I(I({},MV(t)),{[`${e}-input`]:{cursor:"not-allowed"}}),"&-out-of-range":{input:{color:u}},"&-group":I(I(I({},Dt(t)),RV(t)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${e}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${e}-group-addon`]:{borderRadius:_}},"&-sm":{[`${e}-group-addon`]:{borderRadius:b}}}}),[e]:{"&-input":I(I({width:"100%",height:g-2*n,padding:`0 ${v}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${d} linear`,appearance:"textfield",color:t.colorText,fontSize:"inherit",verticalAlign:"top"},EV(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:a,borderEndEndRadius:a,borderEndStartRadius:0,opacity:S===!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%",[`
  236. ${e}-handler-up-inner,
  237. ${e}-handler-down-inner
  238. `]:{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%",[`
  239. ${e}-handler-up-inner,
  240. ${e}-handler-down-inner
  241. `]:{color:h}},"&-up-inner, &-down-inner":I(I({},yf()),{color:f,transition:`all ${d} linear`,userSelect:"none"})},[`${e}-handler-up`]:{borderStartEndRadius:a},[`${e}-handler-down`]:{borderBlockStart:`${n}px ${r} ${i}`,borderEndEndRadius:a},"&-disabled, &-readonly":{[`${e}-handler-wrap`]:{display:"none"}},[`
  242. ${e}-handler-up-disabled,
  243. ${e}-handler-down-disabled
  244. `]:{cursor:"not-allowed"},[`
  245. ${e}-handler-up-disabled:hover &-handler-up-inner,
  246. ${e}-handler-down-disabled:hover &-handler-down-inner
  247. `]:{color:y}}},{[`${e}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${e}-handler-down`]:{borderBlockStartWidth:0}}}]},Gwe=t=>{const{componentCls:e,inputPaddingHorizontal:n,inputAffixPadding:r,controlWidth:i,borderRadiusLG:a,borderRadiusSM:o}=t;return{[`${e}-affix-wrapper`]:I(I(I({},lb(t)),sb(t,`${e}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:i,padding:0,paddingInlineStart:n,"&-lg":{borderRadius:a},"&-sm":{borderRadius:o},[`&:not(${e}-affix-wrapper-disabled):hover`]:I(I({},Dp(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}}})}},Zwe=qt("InputNumber",t=>{const e=kV(t);return[jwe(e),Gwe(e),Qy(e)]},t=>({controlWidth:90,handleWidth:t.controlHeightSM-t.lineWidth*2,handleFontSize:t.fontSize/2,handleVisible:"auto"}));var Uwe=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 LB=NB(),Xwe=()=>I(I({},LB),{size:Bt(),bordered:We(!0),placeholder:String,name:String,id:String,type:String,addonBefore:Z.any,addonAfter:Z.any,prefix:Z.any,"onUpdate:value":LB.onChange,valueModifiers:Object,status:Bt()}),oP=p.defineComponent({compatConfig:{MODE:3},name:"AInputNumber",inheritAttrs:!1,props:Xwe(),slots:Object,setup(t,e){let{emit:n,expose:r,attrs:i,slots:a}=e;var o;const s=Ya(),l=ma.useInject(),u=p.computed(()=>$p(l.status,t.status)),{prefixCls:c,size:f,direction:d,disabled:h}=ct("input-number",t),{compactSize:g,compactItemClassnames:v}=By(c,d),m=Ha(),y=p.computed(()=>{var E;return(E=h.value)!==null&&E!==void 0?E:m.value}),[b,_]=Zwe(c),O=p.computed(()=>g.value||f.value),S=p.shallowRef((o=t.value)!==null&&o!==void 0?o:t.defaultValue),x=p.shallowRef(!1);p.watch(()=>t.value,()=>{S.value=t.value});const w=p.shallowRef(null),T=()=>{var E;(E=w.value)===null||E===void 0||E.focus()};r({focus:T,blur:()=>{var E;(E=w.value)===null||E===void 0||E.blur()}});const C=E=>{t.value===void 0&&(S.value=E),n("update:value",E),n("change",E),s.onFieldChange()},$=E=>{x.value=!1,n("blur",E),s.onFieldBlur()},A=E=>{x.value=!0,n("focus",E)};return()=>{var E,D,M,R;const{hasFeedback:N,isFormItemInput:V,feedbackIcon:L}=l,z=(E=t.id)!==null&&E!==void 0?E:s.id.value,B=I(I(I({},i),t),{id:z,disabled:y.value}),{class:F,bordered:j,readonly:K,style:q,addonBefore:te=(D=a.addonBefore)===null||D===void 0?void 0:D.call(a),addonAfter:X=(M=a.addonAfter)===null||M===void 0?void 0:M.call(a),prefix:ee=(R=a.prefix)===null||R===void 0?void 0:R.call(a),valueModifiers:G={}}=B,W=Uwe(B,["class","bordered","readonly","style","addonBefore","addonAfter","prefix","valueModifiers"]),Q=c.value,J=fe({[`${Q}-lg`]:O.value==="large",[`${Q}-sm`]:O.value==="small",[`${Q}-rtl`]:d.value==="rtl",[`${Q}-readonly`]:K,[`${Q}-borderless`]:!j,[`${Q}-in-form-item`]:V},Zo(Q,u.value),F,v.value,_.value);let ae=p.createVNode(Hwe,H(H({},Rn(W,["size","defaultValue"])),{},{ref:w,lazy:!!G.lazy,value:S.value,class:J,prefixCls:Q,readonly:K,onChange:C,onBlur:$,onFocus:A}),{upHandler:a.upIcon?()=>p.createVNode("span",{class:`${Q}-handler-up-inner`},[a.upIcon()]):()=>p.createVNode(JT,{class:`${Q}-handler-up-inner`},null),downHandler:a.downIcon?()=>p.createVNode("span",{class:`${Q}-handler-down-inner`},[a.downIcon()]):()=>p.createVNode($y,{class:`${Q}-handler-down-inner`},null)});const oe=aP(te)||aP(X),Se=aP(ee);if(Se||N){const _e=fe(`${Q}-affix-wrapper`,Zo(`${Q}-affix-wrapper`,u.value,N),{[`${Q}-affix-wrapper-focused`]:x.value,[`${Q}-affix-wrapper-disabled`]:y.value,[`${Q}-affix-wrapper-sm`]:O.value==="small",[`${Q}-affix-wrapper-lg`]:O.value==="large",[`${Q}-affix-wrapper-rtl`]:d.value==="rtl",[`${Q}-affix-wrapper-readonly`]:K,[`${Q}-affix-wrapper-borderless`]:!j,[`${F}`]:!oe&&F},_.value);ae=p.createVNode("div",{class:_e,style:q,onClick:T},[Se&&p.createVNode("span",{class:`${Q}-prefix`},[ee]),ae,N&&p.createVNode("span",{class:`${Q}-suffix`},[L])])}if(oe){const _e=`${Q}-group`,ge=`${_e}-addon`,de=te?p.createVNode("div",{class:ge},[te]):null,se=X?p.createVNode("div",{class:ge},[X]):null,ye=fe(`${Q}-wrapper`,_e,{[`${_e}-rtl`]:d.value==="rtl"},_.value),Ie=fe(`${Q}-group-wrapper`,{[`${Q}-group-wrapper-sm`]:O.value==="small",[`${Q}-group-wrapper-lg`]:O.value==="large",[`${Q}-group-wrapper-rtl`]:d.value==="rtl"},Zo(`${c}-group-wrapper`,u.value,N),F,_.value);ae=p.createVNode("div",{class:Ie,style:q},[p.createVNode("div",{class:ye},[de&&p.createVNode(zy,null,{default:()=>[p.createVNode(Iy,null,{default:()=>[de]})]}),ae,se&&p.createVNode(zy,null,{default:()=>[p.createVNode(Iy,null,{default:()=>[se]})]})])])}return b(en(ae,{style:q}))}}}),Hp=I(oP,{install:t=>(t.component(oP.name,oP),t)});function Ywe(t,e,n){var r=n||{},i=r.noTrailing,a=i===void 0?!1:i,o=r.noLeading,s=o===void 0?!1:o,l=r.debounceMode,u=l===void 0?void 0:l,c,f=!1,d=0;function h(){c&&clearTimeout(c)}function g(m){var y=m||{},b=y.upcomingOnly,_=b===void 0?!1:b;h(),f=!_}function v(){for(var m=arguments.length,y=new Array(m),b=0;b<m;b++)y[b]=arguments[b];var _=this,O=Date.now()-d;if(f)return;function S(){d=Date.now(),e.apply(_,y)}function x(){c=void 0}!s&&u&&!c&&S(),h(),u===void 0&&O>t?s?(d=Date.now(),a||(c=setTimeout(u?x:S,t))):S():a!==!0&&(c=setTimeout(u?x:S,u===void 0?t-O:t))}return v.cancel=g,v}function qwe(t,e,n){var r={},i=r.atBegin,a=i===void 0?!1:i;return Ywe(t,e,{debounceMode:a!==!1})}const Kwe=new rt("antSpinMove",{to:{opacity:1}}),Jwe=new rt("antRotate",{to:{transform:"rotate(405deg)"}}),eCe=t=>({[`${t.componentCls}`]:I(I({},Dt(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:Kwe,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:Jwe,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"}})}),tCe=qt("Spin",t=>{const e=pt(t,{spinDotDefault:t.colorTextDescription,spinDotSize:t.controlHeightLG/2,spinDotSizeSM:t.controlHeightLG*.35,spinDotSizeLG:t.controlHeight});return[eCe(e)]},{contentHeight:400});var nCe=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 rCe=()=>({prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:Z.any,delay:Number,indicator:Z.any});let Pb=null;function iCe(t,e){return!!t&&!!e&&!isNaN(Number(e))}function aCe(t){const e=t.indicator;Pb=typeof e=="function"?e:()=>p.createVNode(e,null,null)}const jp=p.defineComponent({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:Dn(rCe(),{size:"default",spinning:!0,wrapperClassName:""}),setup(t,e){let{attrs:n,slots:r}=e;const{prefixCls:i,size:a,direction:o}=ct("spin",t),[s,l]=tCe(i),u=p.shallowRef(t.spinning&&!iCe(t.spinning,t.delay));let c;return p.watch([()=>t.spinning,()=>t.delay],()=>{c==null||c.cancel(),c=qwe(t.delay,()=>{u.value=t.spinning}),c==null||c()},{immediate:!0,flush:"post"}),p.onBeforeUnmount(()=>{c==null||c.cancel()}),()=>{var f,d;const{class:h}=n,g=nCe(n,["class"]),{tip:v=(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`]:a.value==="small",[`${i.value}-lg`]:a.value==="large",[`${i.value}-spinning`]:u.value,[`${i.value}-show-text`]:!!v,[`${i.value}-rtl`]:o.value==="rtl",[h]:!!h};function b(O){const S=`${O}-dot`;let x=E0(r,t,"indicator");return x===null?null:(Array.isArray(x)&&(x=x.length===1?x[0]:x),p.isVNode(x)?p.cloneVNode(x,{class:S}):Pb&&p.isVNode(Pb())?p.cloneVNode(Pb(),{class:S}):p.createVNode("span",{class:`${S} ${O}-dot-spin`},[p.createVNode("i",{class:`${O}-dot-item`},null),p.createVNode("i",{class:`${O}-dot-item`},null),p.createVNode("i",{class:`${O}-dot-item`},null),p.createVNode("i",{class:`${O}-dot-item`},null)]))}const _=p.createVNode("div",H(H({},g),{},{class:y,"aria-live":"polite","aria-busy":u.value}),[b(i.value),v?p.createVNode("div",{class:`${i.value}-text`},[v]):null]);if(m&&Qa(m).length){const O={[`${i.value}-container`]:!0,[`${i.value}-blur`]:u.value};return s(p.createVNode("div",{class:[`${i.value}-nested-loading`,t.wrapperClassName,l.value]},[u.value&&p.createVNode("div",{key:"loading"},[_]),p.createVNode("div",{class:O,key:"container"},[m])]))}return s(_)}}});jp.setDefaultIndicator=aCe,jp.install=function(t){return t.component(jp.name,jp),t};var oCe=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 sP;const sCe=t=>{sP={x:t.pageX,y:t.pageY},setTimeout(()=>sP=null,100)};KV()&&zn(document.documentElement,"click",sCe,!0);const lCe=()=>({prefixCls:String,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},confirmLoading:{type:Boolean,default:void 0},title:Z.any,closable:{type:Boolean,default:void 0},closeIcon:Z.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:Z.any,okText:Z.any,okType:String,cancelText:Z.any,icon:Z.any,maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:ut(),cancelButtonProps:ut(),destroyOnClose:{type:Boolean,default:void 0},wrapClassName:String,maskTransitionName:String,transitionName:String,getContainer:{type:[String,Function,Boolean,Object],default:void 0},zIndex:Number,bodyStyle:ut(),maskStyle:ut(),mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:Object,focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:Function,mousePosition:ut()}),si=p.defineComponent({compatConfig:{MODE:3},name:"AModal",inheritAttrs:!1,props:Dn(lCe(),{width:520,confirmLoading:!1,okType:"primary"}),setup(t,e){let{emit:n,slots:r,attrs:i}=e;const[a]=D0("Modal"),{prefixCls:o,rootPrefixCls:s,direction:l,getPopupContainer:u}=ct("modal",t),[c,f]=Pwe(o);pr(t.visible===void 0,"Modal","`visible` will be removed in next major version, please use `open` instead.");const d=v=>{n("update:visible",!1),n("update:open",!1),n("cancel",v),n("change",!1)},h=v=>{n("ok",v)},g=()=>{var v,m;const{okText:y=(v=r.okText)===null||v===void 0?void 0:v.call(r),okType:b,cancelText:_=(m=r.cancelText)===null||m===void 0?void 0:m.call(r),confirmLoading:O}=t;return p.createVNode(p.Fragment,null,[p.createVNode(gr,H({onClick:d},t.cancelButtonProps),{default:()=>[_||a.value.cancelText]}),p.createVNode(gr,H(H({},H3(b)),{},{loading:O,onClick:h},t.okButtonProps),{default:()=>[y||a.value.okText]})])};return()=>{var v,m;const{prefixCls:y,visible:b,open:_,wrapClassName:O,centered:S,getContainer:x,closeIcon:w=(v=r.closeIcon)===null||v===void 0?void 0:v.call(r),focusTriggerAfterClose:T=!0}=t,P=oCe(t,["prefixCls","visible","open","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose"]),C=fe(O,{[`${o.value}-centered`]:!!S,[`${o.value}-wrap-rtl`]:l.value==="rtl"});return c(p.createVNode(gB,H(H(H({},P),i),{},{rootClassName:f.value,class:fe(f.value,i.class),getContainer:x||(u==null?void 0:u.value),prefixCls:o.value,wrapClassName:C,visible:_??b,onClose:d,focusTriggerAfterClose:T,transitionName:Ua(s.value,"zoom",t.transitionName),maskTransitionName:Ua(s.value,"fade",t.maskTransitionName),mousePosition:(m=P.mousePosition)!==null&&m!==void 0?m:sP}),I(I({},r),{footer:r.footer||g,closeIcon:()=>p.createVNode("span",{class:`${o.value}-close-x`},[w||p.createVNode(Go,{class:`${o.value}-close-icon`},null)])})))}}}),uCe=()=>{const t=p.shallowRef(!1);return p.onBeforeUnmount(()=>{t.value=!0}),t},cCe={type:{type:String},actionFn:Function,close:Function,autofocus:Boolean,prefixCls:String,buttonProps:ut(),emitEvent:Boolean,quitOnNullishReturnValue:Boolean};function VB(t){return!!(t&&t.then)}const BB=p.defineComponent({compatConfig:{MODE:3},name:"ActionButton",props:cCe,setup(t,e){let{slots:n}=e;const r=p.shallowRef(!1),i=p.shallowRef(),a=p.shallowRef(!1);let o;const s=uCe();p.onMounted(()=>{t.autofocus&&(o=setTimeout(()=>{var f,d;return(d=(f=Vo(i.value))===null||f===void 0?void 0:f.focus)===null||d===void 0?void 0:d.call(f)}))}),p.onBeforeUnmount(()=>{clearTimeout(o)});const l=function(){for(var f,d=arguments.length,h=new Array(d),g=0;g<d;g++)h[g]=arguments[g];(f=t.close)===null||f===void 0||f.call(t,...h)},u=f=>{VB(f)&&(a.value=!0,f.then(function(){s.value||(a.value=!1),l(...arguments),r.value=!1},d=>(s.value||(a.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 h;if(t.emitEvent){if(h=d(f),t.quitOnNullishReturnValue&&!VB(h)){r.value=!1,l(f);return}}else if(d.length)h=d(t.close),r.value=!1;else if(h=d(),!h){l();return}u(h)};return()=>{const{type:f,prefixCls:d,buttonProps:h}=t;return p.createVNode(gr,H(H(H({},H3(f)),{},{onClick:c,loading:a.value,prefixCls:d},h),{},{ref:i}),n)}}});function Zf(t){return typeof t=="function"?t():t}const zB=p.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]=D0("Modal");return process.env.NODE_ENV!=="production"&&pr(t.visible===void 0,"Modal","`visible` is deprecated, please use `open` instead."),()=>{const{icon:i,onCancel:a,onOk:o,close:s,okText:l,closable:u=!1,zIndex:c,afterClose:f,keyboard:d,centered:h,getContainer:g,maskStyle:v,okButtonProps:m,cancelButtonProps:y,okCancel:b,width:_=416,mask:O=!0,maskClosable:S=!1,type:x,open:w,title:T,content:P,direction:C,closeIcon:$,modalRender:A,focusTriggerAfterClose:E,rootPrefixCls:D,bodyStyle:M,wrapClassName:R,footer:N}=t;let V=i;if(!i&&i!==null)switch(x){case"info":V=p.createVNode(pu,null,null);break;case"success":V=p.createVNode(Ls,null,null);break;case"error":V=p.createVNode(Ai,null,null);break;default:V=p.createVNode(Vs,null,null)}const L=t.okType||"primary",z=t.prefixCls||"ant-modal",B=`${z}-confirm`,F=n.style||{},j=b??x==="confirm",K=t.autoFocusButton===null?!1:t.autoFocusButton||"ok",q=`${z}-confirm`,te=fe(q,`${q}-${t.type}`,{[`${q}-rtl`]:C==="rtl"},n.class),X=r.value,ee=j&&p.createVNode(BB,{actionFn:a,close:s,autofocus:K==="cancel",buttonProps:y,prefixCls:`${D}-btn`},{default:()=>[Zf(t.cancelText)||X.cancelText]});return p.createVNode(si,{prefixCls:z,class:te,wrapClassName:fe({[`${q}-centered`]:!!h},R),onCancel:G=>s==null?void 0:s({triggerCancel:!0},G),open:w,title:"",footer:"",transitionName:Ua(D,"zoom",t.transitionName),maskTransitionName:Ua(D,"fade",t.maskTransitionName),mask:O,maskClosable:S,maskStyle:v,style:F,bodyStyle:M,width:_,zIndex:c,afterClose:f,keyboard:d,centered:h,getContainer:g,closable:u,closeIcon:$,modalRender:A,focusTriggerAfterClose:E},{default:()=>[p.createVNode("div",{class:`${B}-body-wrapper`},[p.createVNode("div",{class:`${B}-body`},[Zf(V),T===void 0?null:p.createVNode("span",{class:`${B}-title`},[Zf(T)]),p.createVNode("div",{class:`${B}-content`},[Zf(P)])]),N!==void 0?Zf(N):p.createVNode("div",{class:`${B}-btns`},[ee,p.createVNode(BB,{type:L,actionFn:o,close:s,autofocus:K==="ok",buttonProps:m,prefixCls:`${D}-btn`},{default:()=>[Zf(l)||(j?X.okText:X.justOkText)]})])])]})}}}),Ou=[],Gp=t=>{const e=document.createDocumentFragment();let n=I(I({},Rn(t,["parentContext","appContext"])),{close:a,open:!0}),r=null;function i(){r&&(p.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(h=>h&&h.triggerCancel);t.onCancel&&d&&t.onCancel(()=>{},...c.slice(1));for(let h=0;h<Ou.length;h++)if(Ou[h]===a){Ou.splice(h,1);break}}function a(){for(var u=arguments.length,c=new Array(u),f=0;f<u;f++)c[f]=arguments[f];n=I(I({},n),{open:!1,afterClose:()=>{typeof t.afterClose=="function"&&t.afterClose(),i.apply(this,c)}}),n.visible&&delete n.visible,o(n)}function o(u){typeof u=="function"?n=u(n):n=I(I({},n),u),r&&Ofe(r,n,e)}const s=u=>{const c=Hn,f=c.prefixCls,d=u.prefixCls||`${f}-modal`,h=c.iconPrefixCls,g=MSe();return p.createVNode(jf,H(H({},c),{},{prefixCls:f}),{default:()=>[p.createVNode(zB,H(H({},u),{},{rootPrefixCls:f,prefixCls:d,iconPrefixCls:h,locale:g,cancelText:u.cancelText||g.cancelText}),null)]})};function l(u){const c=p.createVNode(s,I({},u));return c.appContext=t.parentContext||t.appContext||c.appContext,p.render(c,e),c}return r=l(n),Ou.push(a),{destroy:a,update:o}};function FB(t){return I(I({},t),{type:"warning"})}function WB(t){return I(I({},t),{type:"info"})}function QB(t){return I(I({},t),{type:"success"})}function HB(t){return I(I({},t),{type:"error"})}function jB(t){return I(I({},t),{type:"confirm"})}const fCe=()=>({config:Object,afterClose:Function,destroyAction:Function,open:Boolean}),dCe=p.defineComponent({name:"HookModal",inheritAttrs:!1,props:Dn(fCe(),{config:{width:520,okType:"primary"}}),setup(t,e){let{expose:n}=e;var r;const i=p.computed(()=>t.open),a=p.computed(()=>t.config),{direction:o,getPrefixCls:s}=I0(),l=s("modal"),u=s(),c=()=>{var g,v;t==null||t.afterClose(),(v=(g=a.value).afterClose)===null||v===void 0||v.call(g)},f=function(){t.destroyAction(...arguments)};n({destroy:f});const d=(r=a.value.okCancel)!==null&&r!==void 0?r:a.value.type==="confirm",[h]=D0("Modal",Bo.Modal);return()=>p.createVNode(zB,H(H({prefixCls:l,rootPrefixCls:u},a.value),{},{close:f,open:i.value,afterClose:c,okText:a.value.okText||(d?h==null?void 0:h.value.okText:h==null?void 0:h.value.justOkText),direction:a.value.direction||o.value,cancelText:a.value.cancelText||(h==null?void 0:h.value.cancelText)}),null)}});let GB=0;const hCe=p.defineComponent({name:"ElementsHolder",inheritAttrs:!1,setup(t,e){let{expose:n}=e;const r=p.shallowRef([]);return n({addModal:a=>(r.value.push(a),r.value=r.value.slice(),()=>{r.value=r.value.filter(o=>o!==a)})}),()=>r.value.map(a=>a())}});function pCe(){const t=p.shallowRef(null),e=p.shallowRef([]);p.watch(e,()=>{e.value.length&&([...e.value].forEach(o=>{o()}),e.value=[])},{immediate:!0});const n=a=>function(s){var l;GB+=1;const u=p.shallowRef(!0),c=p.shallowRef(null),f=p.shallowRef(p.unref(s)),d=p.shallowRef({});p.watch(()=>s,_=>{m(I(I({},p.isRef(_)?_.value:_),d.value))});const h=function(){u.value=!1;for(var _=arguments.length,O=new Array(_),S=0;S<_;S++)O[S]=arguments[S];const x=O.some(w=>w&&w.triggerCancel);f.value.onCancel&&x&&f.value.onCancel(()=>{},...O.slice(1))};let g;const v=()=>p.createVNode(dCe,{key:`modal-${GB}`,config:a(f.value),ref:c,open:u.value,destroyAction:h,afterClose:()=>{g==null||g()}},null);g=(l=t.value)===null||l===void 0?void 0:l.addModal(v),g&&Ou.push(g);const m=_=>{f.value=I(I({},f.value),_)};return{destroy:()=>{c.value?h():e.value=[...e.value,h]},update:_=>{d.value=_,c.value?m(_):e.value=[...e.value,()=>m(_)]}}},r=p.computed(()=>({info:n(WB),success:n(QB),error:n(HB),warning:n(FB),confirm:n(jB)})),i=Symbol("modalHolderKey");return[r.value,()=>p.createVNode(hCe,{key:i,ref:t},null)]}function ZB(t){return Gp(FB(t))}si.useModal=pCe,si.info=function(e){return Gp(WB(e))},si.success=function(e){return Gp(QB(e))},si.error=function(e){return Gp(HB(e))},si.warning=ZB,si.warn=ZB,si.confirm=function(e){return Gp(jB(e))},si.destroyAll=function(){for(;Ou.length;){const e=Ou.pop();e&&e()}},si.install=function(t){return t.component(si.name,si),t};const lP=(t,e)=>{let{attrs:n}=e;const{included:r,vertical:i,style:a,class:o}=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=I(I({},a),c);return r?p.createVNode("div",{class:o,style:f},null):null};lP.inheritAttrs=!1;const gCe=(t,e,n,r,i,a)=>{pr(n?r>0:!0,"Slider","`Slider[step]` should be a positive number in order to make Slider[dots] work.");const o=Object.keys(e).map(parseFloat).sort((s,l)=>s-l);if(n&&r)for(let s=i;s<=a;s+=r)o.indexOf(s)===-1&&o.push(s);return o},UB=(t,e)=>{let{attrs:n}=e;const{prefixCls:r,vertical:i,reverse:a,marks:o,dots:s,step:l,included:u,lowerBound:c,upperBound:f,max:d,min:h,dotStyle:g,activeDotStyle:v}=n,m=d-h,y=gCe(i,o,s,l,h,d).map(b=>{const _=`${Math.abs(b-h)/m*100}%`,O=!u&&b===f||u&&b<=f&&b>=c;let S=i?I(I({},g),{[a?"top":"bottom"]:_}):I(I({},g),{[a?"right":"left"]:_});O&&(S=I(I({},S),v));const x=fe({[`${r}-dot`]:!0,[`${r}-dot-active`]:O,[`${r}-dot-reverse`]:a});return p.createVNode("span",{class:x,style:S,key:b},null)});return p.createVNode("div",{class:`${r}-step`},[y])};UB.inheritAttrs=!1;const XB=(t,e)=>{let{attrs:n,slots:r}=e;const{class:i,vertical:a,reverse:o,marks:s,included:l,upperBound:u,lowerBound:c,max:f,min:d,onClickLabel:h}=n,g=Object.keys(s),v=r.mark,m=f-d,y=g.map(parseFloat).sort((b,_)=>b-_).map(b=>{const _=typeof s[b]=="function"?s[b]():s[b],O=typeof _=="object"&&!ei(_);let S=O?_.label:_;if(!S&&S!==0)return null;v&&(S=v({point:b,label:S}));const x=!l&&b===u||l&&b<=u&&b>=c,w=fe({[`${i}-text`]:!0,[`${i}-text-active`]:x}),T={marginBottom:"-50%",[o?"top":"bottom"]:`${(b-d)/m*100}%`},P={transform:`translateX(${o?"50%":"-50%"})`,msTransform:`translateX(${o?"50%":"-50%"})`,[o?"right":"left"]:`${(b-d)/m*100}%`},C=a?T:P,$=O?I(I({},C),_.style):C,A={[Bn?"onTouchstartPassive":"onTouchstart"]:E=>h(E,b)};return p.createVNode("span",H({class:w,style:$,key:b,onMousedown:E=>h(E,b)},A),[S])});return p.createVNode("div",{class:i},[y])};XB.inheritAttrs=!1;const YB=p.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:Z.oneOfType([Z.number,Z.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 a=p.shallowRef(!1),o=p.shallowRef(),s=()=>{document.activeElement===o.value&&(a.value=!0)},l=m=>{a.value=!1,r("blur",m)},u=()=>{a.value=!1},c=()=>{var m;(m=o.value)===null||m===void 0||m.focus()},f=()=>{var m;(m=o.value)===null||m===void 0||m.blur()},d=()=>{a.value=!0,c()},h=m=>{m.preventDefault(),c(),r("mousedown",m)};i({focus:c,blur:f,clickFocus:d,ref:o});let g=null;p.onMounted(()=>{g=zn(document,"mouseup",s)}),p.onBeforeUnmount(()=>{g==null||g.remove()});const v=p.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:_,value:O,tabindex:S,ariaLabel:x,ariaLabelledBy:w,ariaValueTextFormatter:T,onMouseenter:P,onMouseleave:C}=t,$=fe(n.class,{[`${m}-handle-click-focused`]:a.value}),A={"aria-valuemin":b,"aria-valuemax":_,"aria-valuenow":O,"aria-disabled":!!y},E=[n.style,v.value];let D=S||0;(y||S===null)&&(D=null);let M;T&&(M=T(O));const R=I(I(I(I({},n),{role:"slider",tabindex:D}),A),{class:$,onBlur:l,onKeydown:u,onMousedown:h,onMouseenter:P,onMouseleave:C,ref:o,style:E});return p.createVNode("div",H(H({},R),{},{"aria-label":x,"aria-labelledby":w,"aria-valuetext":M}),null)}}});function uP(t,e){try{return Object.keys(e).some(n=>t.target===e[n].ref)}catch{return!1}}function qB(t,e){let{min:n,max:r}=e;return t<n||t>r}function KB(t){return t.touches.length>1||t.type.toLowerCase()==="touchend"&&t.touches.length>0}function JB(t,e){let{marks:n,step:r,min:i,max:a}=e;const o=Object.keys(n).map(parseFloat);if(r!==null){const l=Math.pow(10,ez(r)),u=Math.floor((a*l-i*l)/(r*l)),c=Math.min((t-i)/r,u),f=Math.round(c)*r+i;o.push(f)}const s=o.map(l=>Math.abs(t-l));return o[s.indexOf(Math.min(...s))]}function ez(t){const e=t.toString();let n=0;return e.indexOf(".")>=0&&(n=e.length-e.indexOf(".")-1),n}function tz(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 nz(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 rz(t,e){const n=e.getBoundingClientRect();return t?n.top+n.height*.5:window.scrollX+n.left+n.width*.5}function cP(t,e){let{max:n,min:r}=e;return t<=r?r:t>=n?n:t}function iz(t,e){const{step:n}=e,r=isFinite(JB(t,e))?JB(t,e):0;return n===null?r:parseFloat(r.toFixed(ez(n)))}function Uf(t){t.stopPropagation(),t.preventDefault()}function vCe(t,e,n){const r={increase:(o,s)=>o+s,decrease:(o,s)=>o-s},i=r[t](Object.keys(n.marks).indexOf(JSON.stringify(e)),1),a=Object.keys(n.marks)[i];return n.step?r[t](e,n.step):Object.keys(n.marks).length&&n.marks[a]?n.marks[a]:e}function az(t,e,n){const r="increase",i="decrease";let a=r;switch(t.keyCode){case le.UP:a=e&&n?i:r;break;case le.RIGHT:a=!e&&n?i:r;break;case le.DOWN:a=e&&n?r:i;break;case le.LEFT:a=!e&&n?r:i;break;case le.END:return(o,s)=>s.max;case le.HOME:return(o,s)=>s.min;case le.PAGE_UP:return(o,s)=>o+s.step*2;case le.PAGE_DOWN:return(o,s)=>o-s.step*2;default:return}return(o,s)=>vCe(a,o,s)}var mCe=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 Su(){}function oz(t){const e={id:String,min:Number,max:Number,step:Number,marks:Z.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:Z.object,maximumTrackStyle:Z.object,handleStyle:Z.oneOfType([Z.object,Z.arrayOf(Z.object)]),trackStyle:Z.oneOfType([Z.object,Z.arrayOf(Z.object)]),railStyle:Z.object,dotStyle:Z.object,activeDotStyle:Z.object,autofocus:{type:Boolean,default:void 0},draggableTrack:{type:Boolean,default:void 0}};return p.defineComponent({compatConfig:{MODE:3},name:"CreateSlider",mixins:[Oy,t],inheritAttrs:!1,props:Dn(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,a=isFinite(r-i)?(r-i)%n===0:!0;return pr(n&&Math.floor(n)===n?a:!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:a,style:o}=n,s=mCe(n,["index","directives","className","style"]);if(delete s.dragging,s.value===null)return null;const l=I(I({},s),{class:a,style:o,key:r});return p.createVNode(YB,l,null)},onDown(n,r){let i=r;const{draggableTrack:a,vertical:o}=this.$props,{bounds:s}=this.$data,l=a&&this.positionGetValue?this.positionGetValue(i)||[]:[],u=uP(n,this.handlesRefs);if(this.dragTrack=a&&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=rz(o,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=tz(r,n);this.onDown(n,i),this.addDocumentMouseEvents()},onTouchStart(n){if(KB(n))return;const r=this.vertical,i=nz(r,n);this.onDown(n,i),this.addDocumentTouchEvents(),Uf(n)},onFocus(n){const{vertical:r}=this;if(uP(n,this.handlesRefs)&&!this.dragTrack){const i=rz(r,n.target);this.dragOffset=0,this.onStart(i),Uf(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=tz(this.vertical,n);this.onMove(n,r-this.dragOffset,this.dragTrack,this.startBounds)},onTouchMove(n){if(KB(n)||!this.sliderRef){this.onEnd();return}const r=nz(this.vertical,n);this.onMove(n,r-this.dragOffset,this.dragTrack,this.startBounds)},onKeyDown(n){this.sliderRef&&uP(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,a=n.getBoundingClientRect();return r?i?a.bottom:a.top:window.scrollX+(i?a.right:a.left)},getSliderLength(){const n=this.sliderRef;if(!n)return 0;const r=n.getBoundingClientRect();return this.vertical?r.height:r.width},addDocumentTouchEvents(){this.onTouchMoveListener=zn(this.document,"touchmove",this.onTouchMove),this.onTouchUpListener=zn(this.document,"touchend",this.onEnd)},addDocumentMouseEvents(){this.onMouseMoveListener=zn(this.document,"mousemove",this.onMouseMove),this.onMouseUpListener=zn(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:a}=this,o=Math.abs(Math.max(n,0)/this.getSliderLength());return r?(1-o)*(a-i)+i:o*(a-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,a=(n-r)/(i-r);return Math.max(0,a*100)},saveSlider(n){this.sliderRef=n},saveHandle(n,r){this.handlesRefs[n]=r}},render(){const{prefixCls:n,marks:r,dots:i,step:a,included:o,disabled:s,vertical:l,reverse:u,min:c,max:f,maximumTrackStyle:d,railStyle:h,dotStyle:g,activeDotStyle:v,id:m}=this,{class:y,style:b}=this.$attrs,{tracks:_,handles:O}=this.renderSlider(),S=fe(n,y,{[`${n}-with-marks`]:Object.keys(r).length,[`${n}-disabled`]:s,[`${n}-vertical`]:l,[`${n}-horizontal`]:!l}),x={vertical:l,marks:r,included:o,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:f,min:c,reverse:u,class:`${n}-mark`,onClickLabel:s?Su:this.onClickMarkLabel},w={[Bn?"onTouchstartPassive":"onTouchstart"]:s?Su:this.onTouchStart};return p.createVNode("div",H(H({id:m,ref:this.saveSlider,tabindex:"-1",class:S},w),{},{onMousedown:s?Su:this.onMouseDown,onMouseup:s?Su:this.onMouseUp,onKeydown:s?Su:this.onKeyDown,onFocus:s?Su:this.onFocus,onBlur:s?Su:this.onBlur,style:b}),[p.createVNode("div",{class:`${n}-rail`,style:I(I({},d),h)},null),_,p.createVNode(UB,{prefixCls:n,vertical:l,reverse:u,marks:r,dots:i,step:a,included:o,lowerBound:this.getLowerBound(),upperBound:this.getUpperBound(),max:f,min:c,dotStyle:g,activeDotStyle:v},null),O,p.createVNode(XB,x,{mark:this.$slots.mark}),sL(this)])}})}const yCe=p.defineComponent({compatConfig:{MODE:3},name:"Slider",mixins:[Oy],inheritAttrs:!1,props:{defaultValue:Number,value:Number,disabled:{type:Boolean,default:void 0},autofocus:{type:Boolean,default:void 0},tabindex:Z.oneOfType([Z.number,Z.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}),qB(e,this.$props)&&this.$emit("change",n))},onChange(t){const e=!A0(this,"value"),n=t.sValue>this.max?I(I({},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){Uf(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=az(t,n,e);if(r){Uf(t);const{sValue:i}=this,a=r(i,this.$props),o=this.trimAlignValue(a);if(o===i)return;this.onChange({sValue:o}),this.$emit("afterChange",o),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=I(I({},this.$props),e),r=cP(t,n);return iz(r,n)},getTrack(t){let{prefixCls:e,reverse:n,vertical:r,included:i,minimumTrackStyle:a,mergedTrackStyle:o,length:s,offset:l}=t;return p.createVNode(lP,{class:`${e}-track`,vertical:r,included:i,offset:l,reverse:n,length:s,style:I(I({},a),o)},null)},renderSlider(){const{prefixCls:t,vertical:e,included:n,disabled:r,minimumTrackStyle:i,trackStyle:a,handleStyle:o,tabindex:s,ariaLabelForHandle:l,ariaLabelledByForHandle:u,ariaValueTextFormatterForHandle:c,min:f,max:d,startPoint:h,reverse:g,handle:v,defaultHandle:m}=this,y=v||m,{sValue:b,dragging:_}=this,O=this.calcOffset(b),S=y({class:`${t}-handle`,prefixCls:t,vertical:e,offset:O,value:b,dragging:_,disabled:r,min:f,max:d,reverse:g,index:0,tabindex:s,ariaLabel:l,ariaLabelledBy:u,ariaValueTextFormatter:c,style:o[0]||o,ref:T=>this.saveHandle(0,T),onFocus:this.onFocus,onBlur:this.onBlur}),x=h!==void 0?this.calcOffset(h):0,w=a[0]||a;return{tracks:this.getTrack({prefixCls:t,reverse:g,vertical:e,included:n,offset:x,minimumTrackStyle:i,mergedTrackStyle:w,length:O-x}),handles:S}}}}),bCe=oz(yCe),Zp=t=>{let{value:e,handle:n,bounds:r,props:i}=t;const{allowCross:a,pushable:o}=i,s=Number(o),l=cP(e,i);let u=l;return!a&&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)),iz(u,i)},_Ce={defaultValue:Z.arrayOf(Z.number),value:Z.arrayOf(Z.number),count:Number,pushable:Nce(Z.oneOfType([Z.looseBool,Z.number])),allowCross:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},reverse:{type:Boolean,default:void 0},tabindex:Z.arrayOf(Z.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}},OCe=p.defineComponent({compatConfig:{MODE:3},name:"Range",mixins:[Oy],inheritAttrs:!1,props:Dn(_Ce,{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=A0(this,"defaultValue")?this.defaultValue:r;let{value:a}=this;a===void 0&&(a=i);const o=a.map((l,u)=>Zp({value:l,handle:u,props:this.$props}));return{sHandle:null,recent:o[0]===n?0:o.length-1,bounds:o}},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)=>Zp({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)=>Zp({value:r,handle:i,props:this.$props}));if(this.setState({bounds:n}),t.some(r=>qB(r,this.$props))){const r=t.map(i=>cP(i,this.$props));this.$emit("change",r)}},onChange(t){if(!A0(this,"value"))this.setState(t);else{const i={};["sHandle","recent"].forEach(a=>{t[a]!==void 0&&(i[a]=t[a])}),Object.keys(i).length&&this.setState(i)}const r=I(I({},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),a=e[i];if(n===a)return null;const o=[...e];return o[i]=n,o},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 a=[...e];a[this.prevMovedHandleIndex]=n,this.onChange({bounds:a})},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){Uf(t);const{$data:i,$props:a}=this,o=a.max||100,s=a.min||0;if(n){let d=a.vertical?-e:e;d=a.reverse?-d:d;const h=o-Math.max(...r),g=s-Math.min(...r),v=Math.min(Math.max(d/(this.getSliderLength()/100),g),h),m=r.map(y=>Math.floor(Math.max(Math.min(y+v,o),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=az(t,n,e);if(r){Uf(t);const{bounds:i,sHandle:a}=this,o=i[a===null?this.recent:a],s=r(o,this.$props),l=Zp({value:s,handle:a,bounds:i,props:this.$props});if(l===o)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 a=n[e+1]===n[e];return a&&n[r]===n[e]&&(i=r),a&&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 a=I({},t);if(e!==null)for(let s=n;s<=r;s+=e)a[s]=s;const o=Object.keys(a).map(parseFloat);o.sort((s,l)=>s-l),this.internalPointsCache={marks:t,step:e,points:o}}return this.internalPointsCache.points},moveTo(t,e){const n=[...this.bounds],{sHandle:r,recent:i}=this,a=r===null?i:r;n[a]=t;let o=a;this.$props.pushable!==!1?this.pushSurroundingHandles(n,o):this.$props.allowCross&&(n.sort((s,l)=>s-l),o=n.indexOf(t)),this.onChange({recent:o,sHandle:o,bounds:n}),e&&(this.$emit("afterChange",n),this.setState({},()=>{this.handlesRefs[o].focus()}),this.onEnd())},pushSurroundingHandles(t,e){const n=t[e],{pushable:r}=this,i=Number(r);let a=0;if(t[e+1]-n<i&&(a=1),n-t[e-1]<i&&(a=-1),a===0)return;const o=e+a,s=a*(t[o]-n);this.pushHandle(t,o,a,i-s)||(t[e]=t[o]-a*i)},pushHandle(t,e,n,r){const i=t[e];let a=t[e];for(;n*(a-i)<r;){if(!this.pushHandleOnePoint(t,e,n))return t[e]=i,!1;a=t[e]}return!0},pushHandleOnePoint(t,e,n){const r=this.getPoints(),a=r.indexOf(t[e])+n;if(a>=r.length||a<0)return!1;const o=e+n,s=r[a],{pushable:l}=this,u=Number(l),c=n*(t[o]-s);return this.pushHandle(t,o,n,u-c)?(t[e]=s,!0):!1},trimAlignValue(t){const{sHandle:e,bounds:n}=this;return Zp({value:t,handle:e,bounds:n,props:this.$props})},ensureValueNotConflict(t,e,n){let{allowCross:r,pushable:i}=n;const a=this.$data||{},{bounds:o}=a;if(t=t===void 0?a.sHandle:t,i=Number(i),!r&&t!=null&&o!==void 0){if(t>0&&e<=o[t-1]+i)return o[t-1]+i;if(t<o.length-1&&e>=o[t+1]-i)return o[t+1]-i}return e},getTrack(t){let{bounds:e,prefixCls:n,reverse:r,vertical:i,included:a,offsets:o,trackStyle:s}=t;return e.slice(0,-1).map((l,u)=>{const c=u+1,f=fe({[`${n}-track`]:!0,[`${n}-track-${c}`]:!0});return p.createVNode(lP,{class:f,vertical:i,reverse:r,included:a,offset:o[c-1],length:o[c]-o[c-1],style:s[u],key:c},null)})},renderSlider(){const{sHandle:t,bounds:e,prefixCls:n,vertical:r,included:i,disabled:a,min:o,max:s,reverse:l,handle:u,defaultHandle:c,trackStyle:f,handleStyle:d,tabindex:h,ariaLabelGroupForHandles:g,ariaLabelledByGroupForHandles:v,ariaValueTextFormatterGroupForHandles:m}=this,y=u||c,b=e.map(S=>this.calcOffset(S)),_=`${n}-handle`,O=e.map((S,x)=>{let w=h[x]||0;(a||h[x]===null)&&(w=null);const T=t===x;return y({class:fe({[_]:!0,[`${_}-${x+1}`]:!0,[`${_}-dragging`]:T}),prefixCls:n,vertical:r,dragging:T,offset:b[x],value:S,index:x,tabindex:w,min:o,max:s,reverse:l,disabled:a,style:d[x],ref:P=>this.saveHandle(x,P),onFocus:this.onFocus,onBlur:this.onBlur,ariaLabel:g[x],ariaLabelledBy:v[x],ariaValueTextFormatter:m[x]})});return{tracks:this.getTrack({bounds:e,prefixCls:n,reverse:l,vertical:r,included:i,offsets:b,trackStyle:f}),handles:O}}}}),SCe=oz(OCe),xCe=p.defineComponent({compatConfig:{MODE:3},name:"SliderTooltip",inheritAttrs:!1,props:Q3(),setup(t,e){let{attrs:n,slots:r}=e;const i=p.ref(null),a=p.ref(null);function o(){at.cancel(a.value),a.value=null}function s(){a.value=at(()=>{var u;(u=i.value)===null||u===void 0||u.forcePopupAlign(),a.value=null})}const l=()=>{o(),t.open&&s()};return p.watch([()=>t.open,()=>t.title],()=>{l()},{flush:"post",immediate:!0}),p.onActivated(()=>{l()}),p.onBeforeUnmount(()=>{o()}),()=>p.createVNode(Uy,H(H({ref:i},t),n),r)}}),wCe=t=>{const{componentCls:e,controlSize:n,dotSize:r,marginFull:i,marginPart:a,colorFillContentHover:o}=t;return{[e]:I(I({},Dt(t)),{position:"relative",height:n,margin:`${a}px ${i}px`,padding:0,cursor:"pointer",touchAction:"none","&-vertical":{margin:`${i}px ${a}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:o},[`${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:`
  248. inset-inline-start ${t.motionDurationMid},
  249. inset-block-start ${t.motionDurationMid},
  250. width ${t.motionDurationMid},
  251. height ${t.motionDurationMid},
  252. box-shadow ${t.motionDurationMid}
  253. `},"&: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`},[`
  254. ${e}-dot
  255. `]:{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 It(t.colorTextDisabled).onBackground(t.colorBgContainer).toHexString()}`,insetInlineStart:0,insetBlockStart:0},[`
  256. ${e}-mark-text,
  257. ${e}-dot
  258. `]:{cursor:"not-allowed !important"}}})}},sz=(t,e)=>{const{componentCls:n,railSize:r,handleSize:i,dotSize:a}=t,o=e?"paddingBlock":"paddingInline",s=e?"width":"height",l=e?"height":"width",u=e?"insetBlockStart":"insetInlineStart",c=e?"top":"insetInlineStart";return{[o]: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-a)/2}}},CCe=t=>{const{componentCls:e,marginPartWithMark:n}=t;return{[`${e}-horizontal`]:I(I({},sz(t,!0)),{[`&${e}-with-marks`]:{marginBottom:n}})}},TCe=t=>{const{componentCls:e}=t;return{[`${e}-vertical`]:I(I({},sz(t,!1)),{height:"100%"})}},PCe=qt("Slider",t=>{const e=pt(t,{marginPart:(t.controlHeight-t.controlSize)/2,marginFull:t.controlSize/2,marginPartWithMark:t.controlHeightLG-t.controlSize});return[wCe(e),CCe(e),TCe(e)]},t=>{const n=t.controlHeightLG/4,r=t.controlHeightSM/2,i=t.lineWidth+1,a=t.lineWidth+1*3;return{controlSize:n,railSize:4,handleSize:n,handleSizeHover:r,dotSize:8,handleLineWidth:i,handleLineWidthHover:a}});var lz=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 $Ce=t=>typeof t=="number"?t.toString():"",ACe=()=>({id:String,prefixCls:String,tooltipPrefixCls:String,range:Zt([Boolean,Object]),reverse:We(),min:Number,max:Number,step:Zt([Object,Number]),marks:ut(),dots:We(),value:Zt([Array,Number]),defaultValue:Zt([Array,Number]),included:We(),disabled:We(),vertical:We(),tipFormatter:Zt([Function,Object],()=>$Ce),tooltipOpen:We(),tooltipVisible:We(),tooltipPlacement:Bt(),getTooltipPopupContainer:Qe(),autofocus:We(),handleStyle:Zt([Array,Object]),trackStyle:Zt([Array,Object]),onChange:Qe(),onAfterChange:Qe(),onFocus:Qe(),onBlur:Qe(),"onUpdate:value":Qe()}),ECe=p.defineComponent({compatConfig:{MODE:3},name:"ASlider",inheritAttrs:!1,props:ACe(),slots:Object,setup(t,e){let{attrs:n,slots:r,emit:i,expose:a}=e;process.env.NODE_ENV!=="production"&&[["tooltipVisible","tooltipOpen"]].forEach(w=>{let[T,P]=w;ii(t.tooltipVisible===void 0,"Slider",`\`${T}\` is deprecated, please use \`${P}\` instead.`)});const{prefixCls:o,rootPrefixCls:s,direction:l,getPopupContainer:u,configProvider:c}=ct("slider",t),[f,d]=PCe(o),h=Ya(),g=p.ref(),v=p.ref({}),m=(w,T)=>{v.value[w]=T},y=p.computed(()=>t.tooltipPlacement?t.tooltipPlacement:t.vertical?l.value==="rtl"?"left":"right":"top"),b=()=>{var w;(w=g.value)===null||w===void 0||w.focus()},_=()=>{var w;(w=g.value)===null||w===void 0||w.blur()},O=w=>{i("update:value",w),i("change",w),h.onFieldChange()},S=w=>{i("blur",w)};a({focus:b,blur:_});const x=w=>{var{tooltipPrefixCls:T}=w,P=w.info,{value:C,dragging:$,index:A}=P,E=lz(P,["value","dragging","index"]);const{tipFormatter:D,tooltipOpen:M=t.tooltipVisible,getTooltipPopupContainer:R}=t,N=D?v.value[A]||$:!1,V=M||M===void 0&&N;return p.createVNode(xCe,{prefixCls:T,title:D?D(C):"",open:V,placement:y.value,transitionName:`${s.value}-zoom-down`,key:A,overlayClassName:`${o.value}-tooltip`,getPopupContainer:R||(u==null?void 0:u.value)},{default:()=>[p.createVNode(YB,H(H({},E),{},{value:C,onMouseenter:()=>m(A,!0),onMouseleave:()=>m(A,!1)}),null)]})};return()=>{const{tooltipPrefixCls:w,range:T,id:P=h.id.value}=t,C=lz(t,["tooltipPrefixCls","range","id"]),$=c.getPrefixCls("tooltip",w),A=fe(n.class,{[`${o.value}-rtl`]:l.value==="rtl"},d.value);l.value==="rtl"&&!C.vertical&&(C.reverse=!C.reverse);let E;return typeof T=="object"&&(E=T.draggableTrack),f(T?p.createVNode(SCe,H(H(H({},n),C),{},{step:C.step,draggableTrack:E,class:A,ref:g,handle:D=>x({tooltipPrefixCls:$,prefixCls:o.value,info:D}),prefixCls:o.value,onChange:O,onBlur:S}),{mark:r.mark}):p.createVNode(bCe,H(H(H({},n),C),{},{id:P,step:C.step,class:A,ref:g,handle:D=>x({tooltipPrefixCls:$,prefixCls:o.value,info:D}),prefixCls:o.value,onChange:O,onBlur:S}),{mark:r.mark}))}}}),MCe=ff(ECe);var ICe={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 uz(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){DCe(t,i,n[i])})}return t}function DCe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var fP=function(e,n){var r=uz({},e,n.attrs);return p.createVNode(Ze,uz({},r,{icon:ICe}),null)};fP.displayName="AlignCenterOutlined",fP.inheritAttrs=!1;var RCe={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 cz(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){kCe(t,i,n[i])})}return t}function kCe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var dP=function(e,n){var r=cz({},e,n.attrs);return p.createVNode(Ze,cz({},r,{icon:RCe}),null)};dP.displayName="AlignLeftOutlined",dP.inheritAttrs=!1;var NCe={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 fz(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){LCe(t,i,n[i])})}return t}function LCe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var hP=function(e,n){var r=fz({},e,n.attrs);return p.createVNode(Ze,fz({},r,{icon:NCe}),null)};hP.displayName="AlignRightOutlined",hP.inheritAttrs=!1;var VCe={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 dz(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){BCe(t,i,n[i])})}return t}function BCe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var pP=function(e,n){var r=dz({},e,n.attrs);return p.createVNode(Ze,dz({},r,{icon:VCe}),null)};pP.displayName="BoldOutlined",pP.inheritAttrs=!1;var zCe={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 hz(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){FCe(t,i,n[i])})}return t}function FCe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var gP=function(e,n){var r=hz({},e,n.attrs);return p.createVNode(Ze,hz({},r,{icon:zCe}),null)};gP.displayName="BorderBottomOutlined",gP.inheritAttrs=!1;var WCe={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 pz(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){QCe(t,i,n[i])})}return t}function QCe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var vP=function(e,n){var r=pz({},e,n.attrs);return p.createVNode(Ze,pz({},r,{icon:WCe}),null)};vP.displayName="BorderLeftOutlined",vP.inheritAttrs=!1;var HCe={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 gz(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){jCe(t,i,n[i])})}return t}function jCe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var mP=function(e,n){var r=gz({},e,n.attrs);return p.createVNode(Ze,gz({},r,{icon:HCe}),null)};mP.displayName="BorderRightOutlined",mP.inheritAttrs=!1;var GCe={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 vz(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){ZCe(t,i,n[i])})}return t}function ZCe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var yP=function(e,n){var r=vz({},e,n.attrs);return p.createVNode(Ze,vz({},r,{icon:GCe}),null)};yP.displayName="BorderTopOutlined",yP.inheritAttrs=!1;var UCe={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 mz(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){XCe(t,i,n[i])})}return t}function XCe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Up=function(e,n){var r=mz({},e,n.attrs);return p.createVNode(Ze,mz({},r,{icon:UCe}),null)};Up.displayName="DatabaseOutlined",Up.inheritAttrs=!1;var YCe={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 yz(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){qCe(t,i,n[i])})}return t}function qCe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var bP=function(e,n){var r=yz({},e,n.attrs);return p.createVNode(Ze,yz({},r,{icon:YCe}),null)};bP.displayName="FontColorsOutlined",bP.inheritAttrs=!1;var KCe={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 bz(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){JCe(t,i,n[i])})}return t}function JCe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var _P=function(e,n){var r=bz({},e,n.attrs);return p.createVNode(Ze,bz({},r,{icon:KCe}),null)};_P.displayName="ItalicOutlined",_P.inheritAttrs=!1;var eTe={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 _z(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){tTe(t,i,n[i])})}return t}function tTe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var OP=function(e,n){var r=_z({},e,n.attrs);return p.createVNode(Ze,_z({},r,{icon:eTe}),null)};OP.displayName="RadiusBottomleftOutlined",OP.inheritAttrs=!1;var nTe={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 Oz(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){rTe(t,i,n[i])})}return t}function rTe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var SP=function(e,n){var r=Oz({},e,n.attrs);return p.createVNode(Ze,Oz({},r,{icon:nTe}),null)};SP.displayName="RadiusBottomrightOutlined",SP.inheritAttrs=!1;var iTe={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 Sz(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){aTe(t,i,n[i])})}return t}function aTe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var xP=function(e,n){var r=Sz({},e,n.attrs);return p.createVNode(Ze,Sz({},r,{icon:iTe}),null)};xP.displayName="RadiusUpleftOutlined",xP.inheritAttrs=!1;var oTe={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 xz(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){sTe(t,i,n[i])})}return t}function sTe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var wP=function(e,n){var r=xz({},e,n.attrs);return p.createVNode(Ze,xz({},r,{icon:oTe}),null)};wP.displayName="RadiusUprightOutlined",wP.inheritAttrs=!1;var lTe={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 wz(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){uTe(t,i,n[i])})}return t}function uTe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Xp=function(e,n){var r=wz({},e,n.attrs);return p.createVNode(Ze,wz({},r,{icon:lTe}),null)};Xp.displayName="SkinOutlined",Xp.inheritAttrs=!1;const qo=(t,e,{checkForDefaultPrevented:n=!0}={})=>i=>{const a=t==null?void 0:t(i);if(n===!1||!a)return e==null?void 0:e(i)};var Cz;const mr=typeof window<"u",cTe=t=>typeof t=="string",Tz=()=>{},fTe=mr&&((Cz=window==null?void 0:window.navigator)==null?void 0:Cz.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function Pz(t){return typeof t=="function"?t():p.unref(t)}function dTe(t){return t}function CP(t){return p.getCurrentScope()?(p.onScopeDispose(t),!0):!1}function hTe(t,e=!0){p.getCurrentInstance()?p.onMounted(t):e?t():p.nextTick(t)}function Qs(t){var e;const n=Pz(t);return(e=n==null?void 0:n.$el)!=null?e:n}const TP=mr?window:void 0;function $b(...t){let e,n,r,i;if(cTe(t[0])||Array.isArray(t[0])?([n,r,i]=t,e=TP):[e,n,r,i]=t,!e)return Tz;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const a=[],o=()=>{a.forEach(c=>c()),a.length=0},s=(c,f,d,h)=>(c.addEventListener(f,d,h),()=>c.removeEventListener(f,d,h)),l=p.watch(()=>[Qs(e),Pz(i)],([c,f])=>{o(),c&&a.push(...n.flatMap(d=>r.map(h=>s(c,d,h,f))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return CP(u),u}let $z=!1;function pTe(t,e,n={}){const{window:r=TP,ignore:i=[],capture:a=!0,detectIframe:o=!1}=n;if(!r)return;fTe&&!$z&&($z=!0,Array.from(r.document.body.children).forEach(d=>d.addEventListener("click",Tz)));let s=!0;const l=d=>i.some(h=>{if(typeof h=="string")return Array.from(r.document.querySelectorAll(h)).some(g=>g===d.target||d.composedPath().includes(g));{const g=Qs(h);return g&&(d.target===g||d.composedPath().includes(g))}}),c=[$b(r,"click",d=>{const h=Qs(t);if(!(!h||h===d.target||d.composedPath().includes(h))){if(d.detail===0&&(s=!l(d)),!s){s=!0;return}e(d)}},{passive:!0,capture:a}),$b(r,"pointerdown",d=>{const h=Qs(t);h&&(s=!d.composedPath().includes(h)&&!l(d))},{passive:!0}),o&&$b(r,"blur",d=>{var h;const g=Qs(t);((h=r.document.activeElement)==null?void 0:h.tagName)==="IFRAME"&&!(g!=null&&g.contains(r.document.activeElement))&&e(d)})].filter(Boolean);return()=>c.forEach(d=>d())}function gTe(t,e=!1){const n=p.ref(),r=()=>n.value=!!t();return r(),hTe(r,e),n}const Az=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Ez="__vueuse_ssr_handlers__";Az[Ez]=Az[Ez]||{};var Mz=Object.getOwnPropertySymbols,vTe=Object.prototype.hasOwnProperty,mTe=Object.prototype.propertyIsEnumerable,yTe=(t,e)=>{var n={};for(var r in t)vTe.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&Mz)for(var r of Mz(t))e.indexOf(r)<0&&mTe.call(t,r)&&(n[r]=t[r]);return n};function bTe(t,e,n={}){const r=n,{window:i=TP}=r,a=yTe(r,["window"]);let o;const s=gTe(()=>i&&"ResizeObserver"in i),l=()=>{o&&(o.disconnect(),o=void 0)},u=p.watch(()=>Qs(t),f=>{l(),s.value&&i&&f&&(o=new ResizeObserver(e),o.observe(f,a))},{immediate:!0,flush:"post"}),c=()=>{l(),u()};return CP(c),{isSupported:s,stop:c}}var Iz;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(Iz||(Iz={}));var _Te=Object.defineProperty,Dz=Object.getOwnPropertySymbols,OTe=Object.prototype.hasOwnProperty,STe=Object.prototype.propertyIsEnumerable,Rz=(t,e,n)=>e in t?_Te(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,xTe=(t,e)=>{for(var n in e||(e={}))OTe.call(e,n)&&Rz(t,n,e[n]);if(Dz)for(var n of Dz(e))STe.call(e,n)&&Rz(t,n,e[n]);return t};xTe({linear:dTe},{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]});const wTe=()=>mr&&/firefox/i.test(window.navigator.userAgent),PP=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}};/**
  259. * @vue/shared v3.4.31
  260. * (c) 2018-present Yuxi (Evan) You and Vue contributors
  261. * @license MIT
  262. **/process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const Yp=()=>{},CTe=Object.prototype.hasOwnProperty,Ab=(t,e)=>CTe.call(t,e),TTe=Array.isArray,qp=t=>typeof t=="function",Di=t=>typeof t=="string",Kp=t=>t!==null&&typeof t=="object",PTe=t=>t===void 0,Eb=t=>typeof t=="boolean",Ko=t=>typeof t=="number",Jp=t=>typeof Element>"u"?!1:t instanceof Element,kz=t=>Ns(t),$Te=t=>Di(t)?!Number.isNaN(Number(t)):!1;class ATe extends Error{constructor(e){super(e),this.name="ElementPlusError"}}function li(t,e){if(process.env.NODE_ENV!=="production"){const n=Di(t)?new ATe(`[${t}] ${e}`):t;console.warn(n)}}const ETe="utils/dom/style";function $P(t,e="px"){if(!t)return"";if(Ko(t)||$Te(t))return`${t}${e}`;if(Di(t))return t;li(ETe,"binding value must be a string or number")}/*! Element Plus Icons Vue v2.3.1 */var MTe=p.defineComponent({name:"ArrowDown",__name:"arrow-down",setup(t){return(e,n)=>(p.openBlock(),p.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[p.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"})]))}}),ITe=MTe,DTe=p.defineComponent({name:"CircleCheck",__name:"circle-check",setup(t){return(e,n)=>(p.openBlock(),p.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[p.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"}),p.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"})]))}}),RTe=DTe,kTe=p.defineComponent({name:"CircleClose",__name:"circle-close",setup(t){return(e,n)=>(p.openBlock(),p.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[p.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"}),p.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"})]))}}),Nz=kTe,NTe=p.defineComponent({name:"Close",__name:"close",setup(t){return(e,n)=>(p.openBlock(),p.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[p.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"})]))}}),LTe=NTe,VTe=p.defineComponent({name:"Hide",__name:"hide",setup(t){return(e,n)=>(p.openBlock(),p.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[p.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"}),p.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"})]))}}),BTe=VTe,zTe=p.defineComponent({name:"Loading",__name:"loading",setup(t){return(e,n)=>(p.openBlock(),p.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[p.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"})]))}}),Lz=zTe,FTe=p.defineComponent({name:"View",__name:"view",setup(t){return(e,n)=>(p.openBlock(),p.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[p.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"})]))}}),WTe=FTe;const Vz="__epPropKey",Tt=t=>t,QTe=t=>Kp(t)&&!!t[Vz],Mb=(t,e)=>{if(!Kp(t)||QTe(t))return t;const{values:n,required:r,default:i,type:a,validator:o}=t,l={type:a,required:!!r,validator:n||o?u=>{let c=!1,f=[];if(n&&(f=Array.from(n),Ab(t,"default")&&f.push(i),c||(c=f.includes(u))),o&&(c||(c=o(u))),!c&&f.length>0){const d=[...new Set(f)].map(h=>JSON.stringify(h)).join(", ");p.warn(`Invalid prop: validation failed${e?` for prop "${e}"`:""}. Expected one of [${d}], got value ${JSON.stringify(u)}.`)}return c}:void 0,[Vz]:!0};return Ab(t,"default")&&(l.default=i),l},Sn=t=>Ly(Object.entries(t).map(([e,n])=>[e,Mb(n,e)])),Ib=Tt([String,Object,Function]),HTe={validating:Lz,success:RTe,error:Nz},xu=(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},AP=t=>(t.install=Yp,t),wu={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"},Jo="update:modelValue",Bz="change",jTe=["","default","small","large"],GTe=t=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(t),ZTe=t=>t,UTe=["class","style"],XTe=/^on[A-Z]/,YTe=(t={})=>{const{excludeListeners:e=!1,excludeKeys:n}=t,r=p.computed(()=>((n==null?void 0:n.value)||[]).concat(UTe)),i=p.getCurrentInstance();return i?p.computed(()=>{var a;return Ly(Object.entries((a=i.proxy)==null?void 0:a.$attrs).filter(([o])=>!r.value.includes(o)&&!(e&&XTe.test(o))))}):(li("use-attrs","getCurrentInstance() returned null. useAttrs() must be called at the top of a setup function"),p.computed(()=>({})))},eg=({from:t,replacement:e,scope:n,version:r,ref:i,type:a="API"},o)=>{p.watch(()=>p.unref(o),s=>{s&&li(n,`[${a}] ${t} is about to be deprecated in version ${r}, please use ${e} instead.
  263. For more detail, please visit: ${i}
  264. `)},{immediate:!0})};var qTe={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 KTe=t=>(e,n)=>JTe(e,n,p.unref(t)),JTe=(t,e,n)=>gt(n,t,t).replace(/\{(\w+)\}/g,(r,i)=>{var a;return`${(a=e==null?void 0:e[i])!=null?a:`{${i}}`}`}),ePe=t=>{const e=p.computed(()=>p.unref(t).name),n=p.isRef(t)?t:p.ref(t);return{lang:e,locale:n,t:KTe(t)}},tPe=Symbol("localeContextKey"),nPe=t=>{const e=p.inject(tPe,p.ref());return ePe(p.computed(()=>e.value||qTe))},EP="el",rPe="is-",Cu=(t,e,n,r,i)=>{let a=`${t}-${e}`;return n&&(a+=`-${n}`),r&&(a+=`__${r}`),i&&(a+=`--${i}`),a},iPe=Symbol("namespaceContextKey"),MP=t=>{const e=p.getCurrentInstance()?p.inject(iPe,p.ref(EP)):p.ref(EP);return p.computed(()=>p.unref(e)||EP)},xn=(t,e)=>{const n=MP();return{namespace:n,b:(v="")=>Cu(n.value,t,v,"",""),e:v=>v?Cu(n.value,t,"",v,""):"",m:v=>v?Cu(n.value,t,"","",v):"",be:(v,m)=>v&&m?Cu(n.value,t,v,m,""):"",em:(v,m)=>v&&m?Cu(n.value,t,"",v,m):"",bm:(v,m)=>v&&m?Cu(n.value,t,v,"",m):"",bem:(v,m,y)=>v&&m&&y?Cu(n.value,t,v,m,y):"",is:(v,...m)=>{const y=m.length>=1?m[0]:!0;return v&&y?`${rPe}${v}`:""},cssVar:v=>{const m={};for(const y in v)v[y]&&(m[`--${n.value}-${y}`]=v[y]);return m},cssVarName:v=>`--${n.value}-${v}`,cssVarBlock:v=>{const m={};for(const y in v)v[y]&&(m[`--${n.value}-${t}-${y}`]=v[y]);return m},cssVarBlockName:v=>`--${n.value}-${t}-${v}`}},aPe=Mb({type:Tt(Boolean),default:null}),oPe=Mb({type:Tt(Function)}),zz=t=>{const e=`update:${t}`,n=`onUpdate:${t}`,r=[e],i={[t]:aPe,[n]:oPe};return{useModelToggle:({indicator:o,toggleReason:s,shouldHideWhenRouteChanges:l,shouldProceed:u,onShow:c,onHide:f})=>{const d=p.getCurrentInstance(),{emit:h}=d,g=d.props,v=p.computed(()=>qp(g[n])),m=p.computed(()=>g[t]===null),y=w=>{o.value!==!0&&(o.value=!0,s&&(s.value=w),qp(c)&&c(w))},b=w=>{o.value!==!1&&(o.value=!1,s&&(s.value=w),qp(f)&&f(w))},_=w=>{if(g.disabled===!0||qp(u)&&!u())return;const T=v.value&&mr;T&&h(e,!0),(m.value||!T)&&y(w)},O=w=>{if(g.disabled===!0||!mr)return;const T=v.value&&mr;T&&h(e,!1),(m.value||!T)&&b(w)},S=w=>{Eb(w)&&(g.disabled&&w?v.value&&h(e,!1):o.value!==w&&(w?y():b()))},x=()=>{o.value?O():_()};return p.watch(()=>g[t],S),l&&d.appContext.config.globalProperties.$route!==void 0&&p.watch(()=>({...d.proxy.$route}),()=>{l.value&&o.value&&O()}),p.onMounted(()=>{S(g[t])}),{hide:O,show:_,toggle:x,hasUpdateHandler:v}},useModelToggleProps:i,useModelToggleEmits:r}};zz("modelValue");const Fz=t=>{const e=p.getCurrentInstance();return p.computed(()=>{var n,r;return(r=(n=e==null?void 0:e.proxy)==null?void 0:n.$props)==null?void 0:r[t]})};var Vr="top",Ri="bottom",ki="right",Br="left",IP="auto",tg=[Vr,Ri,ki,Br],Xf="start",ng="end",sPe="clippingParents",Wz="viewport",rg="popper",lPe="reference",Qz=tg.reduce(function(t,e){return t.concat([e+"-"+Xf,e+"-"+ng])},[]),DP=[].concat(tg,[IP]).reduce(function(t,e){return t.concat([e,e+"-"+Xf,e+"-"+ng])},[]),uPe="beforeRead",cPe="read",fPe="afterRead",dPe="beforeMain",hPe="main",pPe="afterMain",gPe="beforeWrite",vPe="write",mPe="afterWrite",yPe=[uPe,cPe,fPe,dPe,hPe,pPe,gPe,vPe,mPe];function Ja(t){return t?(t.nodeName||"").toLowerCase():null}function ya(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Yf(t){var e=ya(t).Element;return t instanceof e||t instanceof Element}function Ni(t){var e=ya(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function RP(t){if(typeof ShadowRoot>"u")return!1;var e=ya(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function bPe(t){var e=t.state;Object.keys(e.elements).forEach(function(n){var r=e.styles[n]||{},i=e.attributes[n]||{},a=e.elements[n];!Ni(a)||!Ja(a)||(Object.assign(a.style,r),Object.keys(i).forEach(function(o){var s=i[o];s===!1?a.removeAttribute(o):a.setAttribute(o,s===!0?"":s)}))})}function _Pe(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],a=e.attributes[r]||{},o=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:n[r]),s=o.reduce(function(l,u){return l[u]="",l},{});!Ni(i)||!Ja(i)||(Object.assign(i.style,s),Object.keys(a).forEach(function(l){i.removeAttribute(l)}))})}}var Hz={name:"applyStyles",enabled:!0,phase:"write",fn:bPe,effect:_Pe,requires:["computeStyles"]};function eo(t){return t.split("-")[0]}var Tu=Math.max,Db=Math.min,qf=Math.round;function Kf(t,e){e===void 0&&(e=!1);var n=t.getBoundingClientRect(),r=1,i=1;if(Ni(t)&&e){var a=t.offsetHeight,o=t.offsetWidth;o>0&&(r=qf(n.width)/o||1),a>0&&(i=qf(n.height)/a||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 kP(t){var e=Kf(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 jz(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&RP(n)){var r=e;do{if(r&&t.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function es(t){return ya(t).getComputedStyle(t)}function OPe(t){return["table","td","th"].indexOf(Ja(t))>=0}function Hs(t){return((Yf(t)?t.ownerDocument:t.document)||window.document).documentElement}function Rb(t){return Ja(t)==="html"?t:t.assignedSlot||t.parentNode||(RP(t)?t.host:null)||Hs(t)}function Gz(t){return!Ni(t)||es(t).position==="fixed"?null:t.offsetParent}function SPe(t){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&Ni(t)){var r=es(t);if(r.position==="fixed")return null}var i=Rb(t);for(RP(i)&&(i=i.host);Ni(i)&&["html","body"].indexOf(Ja(i))<0;){var a=es(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function ig(t){for(var e=ya(t),n=Gz(t);n&&OPe(n)&&es(n).position==="static";)n=Gz(n);return n&&(Ja(n)==="html"||Ja(n)==="body"&&es(n).position==="static")?e:n||SPe(t)||e}function NP(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function ag(t,e,n){return Tu(t,Db(e,n))}function xPe(t,e,n){var r=ag(t,e,n);return r>n?n:r}function Zz(){return{top:0,right:0,bottom:0,left:0}}function Uz(t){return Object.assign({},Zz(),t)}function Xz(t,e){return e.reduce(function(n,r){return n[r]=t,n},{})}var wPe=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,Uz(typeof t!="number"?t:Xz(t,tg))};function CPe(t){var e,n=t.state,r=t.name,i=t.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=eo(n.placement),l=NP(s),u=[Br,ki].indexOf(s)>=0,c=u?"height":"width";if(!(!a||!o)){var f=wPe(i.padding,n),d=kP(a),h=l==="y"?Vr:Br,g=l==="y"?Ri:ki,v=n.rects.reference[c]+n.rects.reference[l]-o[l]-n.rects.popper[c],m=o[l]-n.rects.reference[l],y=ig(a),b=y?l==="y"?y.clientHeight||0:y.clientWidth||0:0,_=v/2-m/2,O=f[h],S=b-d[c]-f[g],x=b/2-d[c]/2+_,w=ag(O,x,S),T=l;n.modifiersData[r]=(e={},e[T]=w,e.centerOffset=w-x,e)}}function TPe(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)||!jz(e.elements.popper,i)||(e.elements.arrow=i))}var PPe={name:"arrow",enabled:!0,phase:"main",fn:CPe,effect:TPe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Jf(t){return t.split("-")[1]}var $Pe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function APe(t){var e=t.x,n=t.y,r=window,i=r.devicePixelRatio||1;return{x:qf(e*i)/i||0,y:qf(n*i)/i||0}}function Yz(t){var e,n=t.popper,r=t.popperRect,i=t.placement,a=t.variation,o=t.offsets,s=t.position,l=t.gpuAcceleration,u=t.adaptive,c=t.roundOffsets,f=t.isFixed,d=o.x,h=d===void 0?0:d,g=o.y,v=g===void 0?0:g,m=typeof c=="function"?c({x:h,y:v}):{x:h,y:v};h=m.x,v=m.y;var y=o.hasOwnProperty("x"),b=o.hasOwnProperty("y"),_=Br,O=Vr,S=window;if(u){var x=ig(n),w="clientHeight",T="clientWidth";if(x===ya(n)&&(x=Hs(n),es(x).position!=="static"&&s==="absolute"&&(w="scrollHeight",T="scrollWidth")),x=x,i===Vr||(i===Br||i===ki)&&a===ng){O=Ri;var P=f&&x===S&&S.visualViewport?S.visualViewport.height:x[w];v-=P-r.height,v*=l?1:-1}if(i===Br||(i===Vr||i===Ri)&&a===ng){_=ki;var C=f&&x===S&&S.visualViewport?S.visualViewport.width:x[T];h-=C-r.width,h*=l?1:-1}}var $=Object.assign({position:s},u&&$Pe),A=c===!0?APe({x:h,y:v}):{x:h,y:v};if(h=A.x,v=A.y,l){var E;return Object.assign({},$,(E={},E[O]=b?"0":"",E[_]=y?"0":"",E.transform=(S.devicePixelRatio||1)<=1?"translate("+h+"px, "+v+"px)":"translate3d("+h+"px, "+v+"px, 0)",E))}return Object.assign({},$,(e={},e[O]=b?v+"px":"",e[_]=y?h+"px":"",e.transform="",e))}function EPe(t){var e=t.state,n=t.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,o=a===void 0?!0:a,s=n.roundOffsets,l=s===void 0?!0:s,u={placement:eo(e.placement),variation:Jf(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,Yz(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Yz(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 qz={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:EPe,data:{}},kb={passive:!0};function MPe(t){var e=t.state,n=t.instance,r=t.options,i=r.scroll,a=i===void 0?!0:i,o=r.resize,s=o===void 0?!0:o,l=ya(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&u.forEach(function(c){c.addEventListener("scroll",n.update,kb)}),s&&l.addEventListener("resize",n.update,kb),function(){a&&u.forEach(function(c){c.removeEventListener("scroll",n.update,kb)}),s&&l.removeEventListener("resize",n.update,kb)}}var Kz={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:MPe,data:{}},IPe={left:"right",right:"left",bottom:"top",top:"bottom"};function Nb(t){return t.replace(/left|right|bottom|top/g,function(e){return IPe[e]})}var DPe={start:"end",end:"start"};function Jz(t){return t.replace(/start|end/g,function(e){return DPe[e]})}function LP(t){var e=ya(t),n=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function VP(t){return Kf(Hs(t)).left+LP(t).scrollLeft}function RPe(t){var e=ya(t),n=Hs(t),r=e.visualViewport,i=n.clientWidth,a=n.clientHeight,o=0,s=0;return r&&(i=r.width,a=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=r.offsetLeft,s=r.offsetTop)),{width:i,height:a,x:o+VP(t),y:s}}function kPe(t){var e,n=Hs(t),r=LP(t),i=(e=t.ownerDocument)==null?void 0:e.body,a=Tu(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Tu(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+VP(t),l=-r.scrollTop;return es(i||n).direction==="rtl"&&(s+=Tu(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:l}}function BP(t){var e=es(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function eF(t){return["html","body","#document"].indexOf(Ja(t))>=0?t.ownerDocument.body:Ni(t)&&BP(t)?t:eF(Rb(t))}function og(t,e){var n;e===void 0&&(e=[]);var r=eF(t),i=r===((n=t.ownerDocument)==null?void 0:n.body),a=ya(r),o=i?[a].concat(a.visualViewport||[],BP(r)?r:[]):r,s=e.concat(o);return i?s:s.concat(og(Rb(o)))}function zP(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function NPe(t){var e=Kf(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 tF(t,e){return e===Wz?zP(RPe(t)):Yf(e)?NPe(e):zP(kPe(Hs(t)))}function LPe(t){var e=og(Rb(t)),n=["absolute","fixed"].indexOf(es(t).position)>=0,r=n&&Ni(t)?ig(t):t;return Yf(r)?e.filter(function(i){return Yf(i)&&jz(i,r)&&Ja(i)!=="body"}):[]}function VPe(t,e,n){var r=e==="clippingParents"?LPe(t):[].concat(e),i=[].concat(r,[n]),a=i[0],o=i.reduce(function(s,l){var u=tF(t,l);return s.top=Tu(u.top,s.top),s.right=Db(u.right,s.right),s.bottom=Db(u.bottom,s.bottom),s.left=Tu(u.left,s.left),s},tF(t,a));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function nF(t){var e=t.reference,n=t.element,r=t.placement,i=r?eo(r):null,a=r?Jf(r):null,o=e.x+e.width/2-n.width/2,s=e.y+e.height/2-n.height/2,l;switch(i){case Vr:l={x:o,y:e.y-n.height};break;case Ri:l={x:o,y:e.y+e.height};break;case ki:l={x:e.x+e.width,y:s};break;case Br:l={x:e.x-n.width,y:s};break;default:l={x:e.x,y:e.y}}var u=i?NP(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(a){case Xf:l[u]=l[u]-(e[c]/2-n[c]/2);break;case ng:l[u]=l[u]+(e[c]/2-n[c]/2);break}}return l}function sg(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=r===void 0?t.placement:r,a=n.boundary,o=a===void 0?sPe:a,s=n.rootBoundary,l=s===void 0?Wz:s,u=n.elementContext,c=u===void 0?rg:u,f=n.altBoundary,d=f===void 0?!1:f,h=n.padding,g=h===void 0?0:h,v=Uz(typeof g!="number"?g:Xz(g,tg)),m=c===rg?lPe:rg,y=t.rects.popper,b=t.elements[d?m:c],_=VPe(Yf(b)?b:b.contextElement||Hs(t.elements.popper),o,l),O=Kf(t.elements.reference),S=nF({reference:O,element:y,strategy:"absolute",placement:i}),x=zP(Object.assign({},y,S)),w=c===rg?x:O,T={top:_.top-w.top+v.top,bottom:w.bottom-_.bottom+v.bottom,left:_.left-w.left+v.left,right:w.right-_.right+v.right},P=t.modifiersData.offset;if(c===rg&&P){var C=P[i];Object.keys(T).forEach(function($){var A=[ki,Ri].indexOf($)>=0?1:-1,E=[Vr,Ri].indexOf($)>=0?"y":"x";T[$]+=C[E]*A})}return T}function BPe(t,e){e===void 0&&(e={});var n=e,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?DP:l,c=Jf(r),f=c?s?Qz:Qz.filter(function(g){return Jf(g)===c}):tg,d=f.filter(function(g){return u.indexOf(g)>=0});d.length===0&&(d=f);var h=d.reduce(function(g,v){return g[v]=sg(t,{placement:v,boundary:i,rootBoundary:a,padding:o})[eo(v)],g},{});return Object.keys(h).sort(function(g,v){return h[g]-h[v]})}function zPe(t){if(eo(t)===IP)return[];var e=Nb(t);return[Jz(t),e,Jz(e)]}function FPe(t){var e=t.state,n=t.options,r=t.name;if(!e.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!0:o,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,g=h===void 0?!0:h,v=n.allowedAutoPlacements,m=e.options.placement,y=eo(m),b=y===m,_=l||(b||!g?[Nb(m)]:zPe(m)),O=[m].concat(_).reduce(function(K,q){return K.concat(eo(q)===IP?BPe(e,{placement:q,boundary:c,rootBoundary:f,padding:u,flipVariations:g,allowedAutoPlacements:v}):q)},[]),S=e.rects.reference,x=e.rects.popper,w=new Map,T=!0,P=O[0],C=0;C<O.length;C++){var $=O[C],A=eo($),E=Jf($)===Xf,D=[Vr,Ri].indexOf(A)>=0,M=D?"width":"height",R=sg(e,{placement:$,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),N=D?E?ki:Br:E?Ri:Vr;S[M]>x[M]&&(N=Nb(N));var V=Nb(N),L=[];if(a&&L.push(R[A]<=0),s&&L.push(R[N]<=0,R[V]<=0),L.every(function(K){return K})){P=$,T=!1;break}w.set($,L)}if(T)for(var z=g?3:1,B=function(K){var q=O.find(function(te){var X=w.get(te);if(X)return X.slice(0,K).every(function(ee){return ee})});if(q)return P=q,"break"},F=z;F>0;F--){var j=B(F);if(j==="break")break}e.placement!==P&&(e.modifiersData[r]._skip=!0,e.placement=P,e.reset=!0)}}var WPe={name:"flip",enabled:!0,phase:"main",fn:FPe,requiresIfExists:["offset"],data:{_skip:!1}};function rF(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 iF(t){return[Vr,ki,Ri,Br].some(function(e){return t[e]>=0})}function QPe(t){var e=t.state,n=t.name,r=e.rects.reference,i=e.rects.popper,a=e.modifiersData.preventOverflow,o=sg(e,{elementContext:"reference"}),s=sg(e,{altBoundary:!0}),l=rF(o,r),u=rF(s,i,a),c=iF(l),f=iF(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 HPe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:QPe};function jPe(t,e,n){var r=eo(t),i=[Br,Vr].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},e,{placement:t})):n,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[Br,ki].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function GPe(t){var e=t.state,n=t.options,r=t.name,i=n.offset,a=i===void 0?[0,0]:i,o=DP.reduce(function(c,f){return c[f]=jPe(f,e.rects,a),c},{}),s=o[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]=o}var ZPe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:GPe};function UPe(t){var e=t.state,n=t.name;e.modifiersData[n]=nF({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var aF={name:"popperOffsets",enabled:!0,phase:"read",fn:UPe,data:{}};function XPe(t){return t==="x"?"y":"x"}function YPe(t){var e=t.state,n=t.options,r=t.name,i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,s=o===void 0?!1:o,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,d=n.tether,h=d===void 0?!0:d,g=n.tetherOffset,v=g===void 0?0:g,m=sg(e,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),y=eo(e.placement),b=Jf(e.placement),_=!b,O=NP(y),S=XPe(O),x=e.modifiersData.popperOffsets,w=e.rects.reference,T=e.rects.popper,P=typeof v=="function"?v(Object.assign({},e.rects,{placement:e.placement})):v,C=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),$=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,A={x:0,y:0};if(x){if(a){var E,D=O==="y"?Vr:Br,M=O==="y"?Ri:ki,R=O==="y"?"height":"width",N=x[O],V=N+m[D],L=N-m[M],z=h?-T[R]/2:0,B=b===Xf?w[R]:T[R],F=b===Xf?-T[R]:-w[R],j=e.elements.arrow,K=h&&j?kP(j):{width:0,height:0},q=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:Zz(),te=q[D],X=q[M],ee=ag(0,w[R],K[R]),G=_?w[R]/2-z-ee-te-C.mainAxis:B-ee-te-C.mainAxis,W=_?-w[R]/2+z+ee+X+C.mainAxis:F+ee+X+C.mainAxis,Q=e.elements.arrow&&ig(e.elements.arrow),J=Q?O==="y"?Q.clientTop||0:Q.clientLeft||0:0,ae=(E=$==null?void 0:$[O])!=null?E:0,oe=N+G-ae-J,Se=N+W-ae,_e=ag(h?Db(V,oe):V,N,h?Tu(L,Se):L);x[O]=_e,A[O]=_e-N}if(s){var ge,de=O==="x"?Vr:Br,se=O==="x"?Ri:ki,ye=x[S],Ie=S==="y"?"height":"width",Xe=ye+m[de],Ke=ye-m[se],yt=[Vr,Br].indexOf(y)!==-1,ue=(ge=$==null?void 0:$[S])!=null?ge:0,Ve=yt?Xe:ye-w[Ie]-T[Ie]-ue+C.altAxis,bt=yt?ye+w[Ie]+T[Ie]-ue-C.altAxis:Ke,dn=h&&yt?xPe(Ve,ye,bt):ag(h?Ve:Xe,ye,h?bt:Ke);x[S]=dn,A[S]=dn-ye}e.modifiersData[r]=A}}var qPe={name:"preventOverflow",enabled:!0,phase:"main",fn:YPe,requiresIfExists:["offset"]};function KPe(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function JPe(t){return t===ya(t)||!Ni(t)?LP(t):KPe(t)}function e$e(t){var e=t.getBoundingClientRect(),n=qf(e.width)/t.offsetWidth||1,r=qf(e.height)/t.offsetHeight||1;return n!==1||r!==1}function t$e(t,e,n){n===void 0&&(n=!1);var r=Ni(e),i=Ni(e)&&e$e(e),a=Hs(e),o=Kf(t,i),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Ja(e)!=="body"||BP(a))&&(s=JPe(e)),Ni(e)?(l=Kf(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):a&&(l.x=VP(a))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function n$e(t){var e=new Map,n=new Set,r=[];t.forEach(function(a){e.set(a.name,a)});function i(a){n.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(s){if(!n.has(s)){var l=e.get(s);l&&i(l)}}),r.push(a)}return t.forEach(function(a){n.has(a.name)||i(a)}),r}function r$e(t){var e=n$e(t);return yPe.reduce(function(n,r){return n.concat(e.filter(function(i){return i.phase===r}))},[])}function i$e(t){var e;return function(){return e||(e=new Promise(function(n){Promise.resolve().then(function(){e=void 0,n(t())})})),e}}function a$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 oF={placement:"bottom",modifiers:[],strategy:"absolute"};function sF(){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 FP(t){t===void 0&&(t={});var e=t,n=e.defaultModifiers,r=n===void 0?[]:n,i=e.defaultOptions,a=i===void 0?oF:i;return function(o,s,l){l===void 0&&(l=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},oF,a),modifiersData:{},elements:{reference:o,popper:s},attributes:{},styles:{}},c=[],f=!1,d={state:u,setOptions:function(v){var m=typeof v=="function"?v(u.options):v;g(),u.options=Object.assign({},a,u.options,m),u.scrollParents={reference:Yf(o)?og(o):o.contextElement?og(o.contextElement):[],popper:og(s)};var y=r$e(a$e([].concat(r,u.options.modifiers)));return u.orderedModifiers=y.filter(function(b){return b.enabled}),h(),d.update()},forceUpdate:function(){if(!f){var v=u.elements,m=v.reference,y=v.popper;if(sF(m,y)){u.rects={reference:t$e(m,ig(y),u.options.strategy==="fixed"),popper:kP(y)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(T){return u.modifiersData[T.name]=Object.assign({},T.data)});for(var b=0;b<u.orderedModifiers.length;b++){if(u.reset===!0){u.reset=!1,b=-1;continue}var _=u.orderedModifiers[b],O=_.fn,S=_.options,x=S===void 0?{}:S,w=_.name;typeof O=="function"&&(u=O({state:u,options:x,name:w,instance:d})||u)}}}},update:i$e(function(){return new Promise(function(v){d.forceUpdate(),v(u)})}),destroy:function(){g(),f=!0}};if(!sF(o,s))return d;d.setOptions(l).then(function(v){!f&&l.onFirstUpdate&&l.onFirstUpdate(v)});function h(){u.orderedModifiers.forEach(function(v){var m=v.name,y=v.options,b=y===void 0?{}:y,_=v.effect;if(typeof _=="function"){var O=_({state:u,name:m,instance:d,options:b}),S=function(){};c.push(O||S)}})}function g(){c.forEach(function(v){return v()}),c=[]}return d}}FP();var o$e=[Kz,aF,qz,Hz];FP({defaultModifiers:o$e});var s$e=[Kz,aF,qz,Hz,ZPe,WPe,qPe,PPe,HPe],l$e=FP({defaultModifiers:s$e});const u$e=(t,e,n={})=>{const r={name:"updateState",enabled:!0,phase:"write",fn:({state:l})=>{const u=c$e(l);Object.assign(o.value,u)},requires:["computeStyles"]},i=p.computed(()=>{const{onFirstUpdate:l,placement:u,strategy:c,modifiers:f}=p.unref(n);return{onFirstUpdate:l,placement:u||"bottom",strategy:c||"absolute",modifiers:[...f||[],r,{name:"applyStyles",enabled:!1}]}}),a=p.shallowRef(),o=p.ref({styles:{popper:{position:p.unref(i).strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=()=>{a.value&&(a.value.destroy(),a.value=void 0)};return p.watch(i,l=>{const u=p.unref(a);u&&u.setOptions(l)},{deep:!0}),p.watch([t,e],([l,u])=>{s(),!(!l||!u)&&(a.value=l$e(l,u,p.unref(i)))}),p.onBeforeUnmount(()=>{s()}),{state:p.computed(()=>{var l;return{...((l=p.unref(a))==null?void 0:l.state)||{}}}),styles:p.computed(()=>p.unref(o).styles),attributes:p.computed(()=>p.unref(o).attributes),update:()=>{var l;return(l=p.unref(a))==null?void 0:l.update()},forceUpdate:()=>{var l;return(l=p.unref(a))==null?void 0:l.forceUpdate()},instanceRef:p.computed(()=>p.unref(a))}};function c$e(t){const e=Object.keys(t.elements),n=Ly(e.map(i=>[i,t.styles[i]||{}])),r=Ly(e.map(i=>[i,t.attributes[i]]));return{styles:n,attributes:r}}function lF(){let t;const e=(r,i)=>{n(),t=window.setTimeout(r,i)},n=()=>window.clearTimeout(t);return CP(()=>n()),{registerTimeout:e,cancelTimeout:n}}const WP={prefix:Math.floor(Math.random()*1e4),current:0},f$e=Symbol("elIdInjection"),uF=()=>p.getCurrentInstance()?p.inject(f$e,WP):WP,QP=t=>{const e=uF();!mr&&e===WP&&li("IdInjection",`Looks like you are using server rendering, you must provide a id provider to ensure the hydration process to be succeed
  265. usage: app.provide(ID_INJECTION_KEY, {
  266. prefix: number,
  267. current: number,
  268. })`);const n=MP();return p.computed(()=>p.unref(t)||`${n.value}-id-${e.prefix}-${e.current++}`)};let ed=[];const cF=t=>{const e=t;e.key===wu.esc&&ed.forEach(n=>n(e))},d$e=t=>{p.onMounted(()=>{ed.length===0&&document.addEventListener("keydown",cF),mr&&ed.push(t)}),p.onBeforeUnmount(()=>{ed=ed.filter(e=>e!==t),ed.length===0&&mr&&document.removeEventListener("keydown",cF)})};let fF;const dF=()=>{const t=MP(),e=uF(),n=p.computed(()=>`${t.value}-popper-container-${e.prefix}`),r=p.computed(()=>`#${n.value}`);return{id:n,selector:r}},h$e=t=>{const e=document.createElement("div");return e.id=t,document.body.appendChild(e),e},p$e=()=>{const{id:t,selector:e}=dF();return p.onBeforeMount(()=>{mr&&(process.env.NODE_ENV==="test"||!fF&&!document.body.querySelector(e.value))&&(fF=h$e(t.value))}),{id:t,selector:e}},g$e=Sn({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),v$e=({showAfter:t,hideAfter:e,autoClose:n,open:r,close:i})=>{const{registerTimeout:a}=lF(),{registerTimeout:o,cancelTimeout:s}=lF();return{onOpen:c=>{a(()=>{r(c);const f=p.unref(n);Ko(f)&&f>0&&o(()=>{i(c)},f)},p.unref(t))},onClose:c=>{s(),a(()=>{i(c)},p.unref(e))}}},hF=Symbol("elForwardRef"),m$e=t=>{const e=n=>{t.value=n};p.provide(hF,{setForwardRef:e})},y$e=t=>({mounted(e){t(e)},updated(e){t(e)},unmounted(){t(null)}}),pF={current:0},gF=p.ref(0),b$e=2e3,vF=Symbol("elZIndexContextKey"),_$e=Symbol("zIndexContextKey"),O$e=t=>{const e=p.getCurrentInstance()?p.inject(vF,pF):pF,n=p.getCurrentInstance()?p.inject(_$e,void 0):void 0,r=p.computed(()=>{const o=p.unref(n);return Ko(o)?o:b$e}),i=p.computed(()=>r.value+gF.value),a=()=>(e.current++,gF.value=e.current,i.value);return!mr&&!p.inject(vF)&&li("ZIndexInjection",`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
  269. usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:r,currentZIndex:i,nextZIndex:a}};function S$e(t){const e=p.ref();function n(){if(t.value==null)return;const{selectionStart:i,selectionEnd:a,value:o}=t.value;if(i==null||a==null)return;const s=o.slice(0,Math.max(0,i)),l=o.slice(Math.max(0,a));e.value={selectionStart:i,selectionEnd:a,value:o,beforeTxt:s,afterTxt:l}}function r(){if(t.value==null||e.value==null)return;const{value:i}=t.value,{beforeTxt:a,afterTxt:o,selectionStart:s}=e.value;if(a==null||o==null||s==null)return;let l=i.length;if(i.endsWith(o))l=i.length-o.length;else if(i.startsWith(a))l=a.length;else{const u=a[s-1],c=i.indexOf(u,s-1);c!==-1&&(l=c+1)}t.value.setSelectionRange(l,l)}return[n,r]}const lg=Mb({type:String,values:jTe,required:!1}),x$e=Symbol("size"),w$e=()=>{const t=p.inject(x$e,{});return p.computed(()=>p.unref(t.size)||"")};function mF(t,{afterFocus:e,beforeBlur:n,afterBlur:r}={}){const i=p.getCurrentInstance(),{emit:a}=i,o=p.shallowRef(),s=p.ref(!1),l=f=>{s.value||(s.value=!0,a("focus",f),e==null||e())},u=f=>{var d;qp(n)&&n(f)||f.relatedTarget&&((d=o.value)!=null&&d.contains(f.relatedTarget))||(s.value=!1,a("blur",f),r==null||r())},c=()=>{var f;(f=t.value)==null||f.focus()};return p.watch(o,f=>{f&&f.setAttribute("tabindex","-1")}),$b(o,"click",c),{wrapperRef:o,isFocused:s,handleFocus:l,handleBlur:u}}const C$e=Sn({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),ug=t=>Mp(C$e,t),T$e=Symbol(),yF=p.ref();function P$e(t,e=void 0){const n=p.getCurrentInstance()?p.inject(T$e,yF):yF;return p.computed(()=>{var r,i;return(i=(r=n.value)==null?void 0:r[t])!=null?i:e})}var pn=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n};const $$e=Sn({size:{type:Tt([Number,String])},color:{type:String}}),A$e=p.defineComponent({name:"ElIcon",inheritAttrs:!1}),E$e=p.defineComponent({...A$e,props:$$e,setup(t){const e=t,n=xn("icon"),r=p.computed(()=>{const{size:i,color:a}=e;return!i&&!a?{}:{fontSize:PTe(i)?void 0:$P(i),"--color":a}});return(i,a)=>(p.openBlock(),p.createElementBlock("i",p.mergeProps({class:p.unref(n).b(),style:p.unref(r)},i.$attrs),[p.renderSlot(i.$slots,"default")],16))}});var M$e=pn(E$e,[["__file","icon.vue"]]);const ts=xu(M$e),HP=Symbol("formContextKey"),Lb=Symbol("formItemContextKey"),Vb=(t,e={})=>{const n=p.ref(void 0),r=e.prop?n:Fz("size"),i=e.global?n:w$e(),a=e.form?{size:void 0}:p.inject(HP,void 0),o=e.formItem?{size:void 0}:p.inject(Lb,void 0);return p.computed(()=>r.value||p.unref(t)||(o==null?void 0:o.size)||(a==null?void 0:a.size)||i.value||"")},cg=t=>{const e=Fz("disabled"),n=p.inject(HP,void 0);return p.computed(()=>e.value||p.unref(t)||(n==null?void 0:n.disabled)||!1)},Bb=()=>{const t=p.inject(HP,void 0),e=p.inject(Lb,void 0);return{form:t,formItem:e}},jP=(t,{formItemContext:e,disableIdGeneration:n,disableIdManagement:r})=>{n||(n=p.ref(!1)),r||(r=p.ref(!1));const i=p.ref();let a;const o=p.computed(()=>{var s;return!!(!(t.label||t.ariaLabel)&&e&&e.inputIds&&((s=e.inputIds)==null?void 0:s.length)<=1)});return p.onMounted(()=>{a=p.watch([p.toRef(t,"id"),n],([s,l])=>{const u=s??(l?void 0:QP().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})}),p.onUnmounted(()=>{a&&a(),e!=null&&e.removeInputId&&i.value&&e.removeInputId(i.value)}),{isLabeledByFormItem:o,inputId:i}};let ba;const I$e=`
  270. height:0 !important;
  271. visibility:hidden !important;
  272. ${wTe()?"":"overflow:hidden !important;"}
  273. position:absolute !important;
  274. z-index:-1000 !important;
  275. top:0 !important;
  276. right:0 !important;
  277. `,D$e=["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 R$e(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:D$e.map(o=>`${o}:${e.getPropertyValue(o)}`).join(";"),paddingSize:r,borderSize:i,boxSizing:n}}function bF(t,e=1,n){var r;ba||(ba=document.createElement("textarea"),document.body.appendChild(ba));const{paddingSize:i,borderSize:a,boxSizing:o,contextStyle:s}=R$e(t);ba.setAttribute("style",`${s};${I$e}`),ba.value=t.value||t.placeholder||"";let l=ba.scrollHeight;const u={};o==="border-box"?l=l+a:o==="content-box"&&(l=l-i),ba.value="";const c=ba.scrollHeight-i;if(Ko(e)){let f=c*e;o==="border-box"&&(f=f+i+a),l=Math.max(f,l),u.minHeight=`${f}px`}if(Ko(n)){let f=c*n;o==="border-box"&&(f=f+i+a),l=Math.min(f,l)}return u.height=`${l}px`,(r=ba.parentNode)==null||r.removeChild(ba),ba=void 0,u}const k$e=Sn({id:{type:String,default:void 0},size:lg,disabled:Boolean,modelValue:{type:Tt([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:Tt([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:Ib},prefixIcon:{type:Ib},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:Tt([Object,Array,String]),default:()=>ZTe({})},autofocus:{type:Boolean,default:!1},...ug(["ariaLabel"])}),N$e={[Jo]:t=>Di(t),input:t=>Di(t),change:t=>Di(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},L$e=["role"],V$e=["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],B$e=["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],z$e=p.defineComponent({name:"ElInput",inheritAttrs:!1}),F$e=p.defineComponent({...z$e,props:k$e,emits:N$e,setup(t,{expose:e,emit:n}){const r=t,i=p.useAttrs(),a=p.useSlots(),o=p.computed(()=>{const ue={};return r.containerRole==="combobox"&&(ue["aria-haspopup"]=i["aria-haspopup"],ue["aria-owns"]=i["aria-owns"],ue["aria-expanded"]=i["aria-expanded"]),ue}),s=p.computed(()=>[r.type==="textarea"?m.b():v.b(),v.m(h.value),v.is("disabled",g.value),v.is("exceed",K.value),{[v.b("group")]:a.prepend||a.append,[v.m("prefix")]:a.prefix||r.prefixIcon,[v.m("suffix")]:a.suffix||r.suffixIcon||r.clearable||r.showPassword,[v.bm("suffix","password-clear")]:z.value&&B.value,[v.b("hidden")]:r.type==="hidden"},i.class]),l=p.computed(()=>[v.e("wrapper"),v.is("focus",C.value)]),u=YTe({excludeKeys:p.computed(()=>Object.keys(o.value))}),{form:c,formItem:f}=Bb(),{inputId:d}=jP(r,{formItemContext:f}),h=Vb(),g=cg(),v=xn("input"),m=xn("textarea"),y=p.shallowRef(),b=p.shallowRef(),_=p.ref(!1),O=p.ref(!1),S=p.ref(!1),x=p.ref(),w=p.shallowRef(r.inputStyle),T=p.computed(()=>y.value||b.value),{wrapperRef:P,isFocused:C,handleFocus:$,handleBlur:A}=mF(T,{afterBlur(){var ue;r.validateEvent&&((ue=f==null?void 0:f.validate)==null||ue.call(f,"blur").catch(Ve=>li(Ve)))}}),E=p.computed(()=>{var ue;return(ue=c==null?void 0:c.statusIcon)!=null?ue:!1}),D=p.computed(()=>(f==null?void 0:f.validateState)||""),M=p.computed(()=>D.value&&HTe[D.value]),R=p.computed(()=>S.value?WTe:BTe),N=p.computed(()=>[i.style]),V=p.computed(()=>[r.inputStyle,w.value,{resize:r.resize}]),L=p.computed(()=>Ns(r.modelValue)?"":String(r.modelValue)),z=p.computed(()=>r.clearable&&!g.value&&!r.readonly&&!!L.value&&(C.value||_.value)),B=p.computed(()=>r.showPassword&&!g.value&&!r.readonly&&!!L.value&&(!!L.value||C.value)),F=p.computed(()=>r.showWordLimit&&!!r.maxlength&&(r.type==="text"||r.type==="textarea")&&!g.value&&!r.readonly&&!r.showPassword),j=p.computed(()=>L.value.length),K=p.computed(()=>!!F.value&&j.value>Number(r.maxlength)),q=p.computed(()=>!!a.suffix||!!r.suffixIcon||z.value||r.showPassword||F.value||!!D.value&&E.value),[te,X]=S$e(y);bTe(b,ue=>{if(W(),!F.value||r.resize!=="both")return;const Ve=ue[0],{width:bt}=Ve.contentRect;x.value={right:`calc(100% - ${bt+15+6}px)`}});const ee=()=>{const{type:ue,autosize:Ve}=r;if(!(!mr||ue!=="textarea"||!b.value))if(Ve){const bt=Kp(Ve)?Ve.minRows:void 0,dn=Kp(Ve)?Ve.maxRows:void 0,Gt=bF(b.value,bt,dn);w.value={overflowY:"hidden",...Gt},p.nextTick(()=>{b.value.offsetHeight,w.value=Gt})}else w.value={minHeight:bF(b.value).minHeight}},W=(ue=>{let Ve=!1;return()=>{var bt;if(Ve||!r.autosize)return;((bt=b.value)==null?void 0:bt.offsetParent)===null||(ue(),Ve=!0)}})(ee),Q=()=>{const ue=T.value,Ve=r.formatter?r.formatter(L.value):L.value;!ue||ue.value===Ve||(ue.value=Ve)},J=async ue=>{te();let{value:Ve}=ue.target;if(r.formatter&&(Ve=r.parser?r.parser(Ve):Ve),!O.value){if(Ve===L.value){Q();return}n(Jo,Ve),n("input",Ve),await p.nextTick(),Q(),X()}},ae=ue=>{n("change",ue.target.value)},oe=ue=>{n("compositionstart",ue),O.value=!0},Se=ue=>{var Ve;n("compositionupdate",ue);const bt=(Ve=ue.target)==null?void 0:Ve.value,dn=bt[bt.length-1]||"";O.value=!GTe(dn)},_e=ue=>{n("compositionend",ue),O.value&&(O.value=!1,J(ue))},ge=()=>{S.value=!S.value,de()},de=async()=>{var ue;await p.nextTick(),(ue=T.value)==null||ue.focus()},se=()=>{var ue;return(ue=T.value)==null?void 0:ue.blur()},ye=ue=>{_.value=!1,n("mouseleave",ue)},Ie=ue=>{_.value=!0,n("mouseenter",ue)},Xe=ue=>{n("keydown",ue)},Ke=()=>{var ue;(ue=T.value)==null||ue.select()},yt=()=>{n(Jo,""),n("change",""),n("clear"),n("input","")};return p.watch(()=>r.modelValue,()=>{var ue;p.nextTick(()=>ee()),r.validateEvent&&((ue=f==null?void 0:f.validate)==null||ue.call(f,"change").catch(Ve=>li(Ve)))}),p.watch(L,()=>Q()),p.watch(()=>r.type,async()=>{await p.nextTick(),Q(),ee()}),p.onMounted(()=>{!r.formatter&&r.parser&&li("ElInput","If you set the parser, you also need to set the formatter."),Q(),p.nextTick(ee)}),eg({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-input",ref:"https://element-plus.org/en-US/component/input.html"},p.computed(()=>!!r.label)),e({input:y,textarea:b,ref:T,textareaStyle:V,autosize:p.toRef(r,"autosize"),focus:de,blur:se,select:Ke,clear:yt,resizeTextarea:ee}),(ue,Ve)=>(p.openBlock(),p.createElementBlock("div",p.mergeProps(p.unref(o),{class:[p.unref(s),{[p.unref(v).bm("group","append")]:ue.$slots.append,[p.unref(v).bm("group","prepend")]:ue.$slots.prepend}],style:p.unref(N),role:ue.containerRole,onMouseenter:Ie,onMouseleave:ye}),[p.createCommentVNode(" input "),ue.type!=="textarea"?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.createCommentVNode(" prepend slot "),ue.$slots.prepend?(p.openBlock(),p.createElementBlock("div",{key:0,class:p.normalizeClass(p.unref(v).be("group","prepend"))},[p.renderSlot(ue.$slots,"prepend")],2)):p.createCommentVNode("v-if",!0),p.createElementVNode("div",{ref_key:"wrapperRef",ref:P,class:p.normalizeClass(p.unref(l))},[p.createCommentVNode(" prefix slot "),ue.$slots.prefix||ue.prefixIcon?(p.openBlock(),p.createElementBlock("span",{key:0,class:p.normalizeClass(p.unref(v).e("prefix"))},[p.createElementVNode("span",{class:p.normalizeClass(p.unref(v).e("prefix-inner"))},[p.renderSlot(ue.$slots,"prefix"),ue.prefixIcon?(p.openBlock(),p.createBlock(p.unref(ts),{key:0,class:p.normalizeClass(p.unref(v).e("icon"))},{default:p.withCtx(()=>[(p.openBlock(),p.createBlock(p.resolveDynamicComponent(ue.prefixIcon)))]),_:1},8,["class"])):p.createCommentVNode("v-if",!0)],2)],2)):p.createCommentVNode("v-if",!0),p.createElementVNode("input",p.mergeProps({id:p.unref(d),ref_key:"input",ref:y,class:p.unref(v).e("inner")},p.unref(u),{minlength:ue.minlength,maxlength:ue.maxlength,type:ue.showPassword?S.value?"text":"password":ue.type,disabled:p.unref(g),readonly:ue.readonly,autocomplete:ue.autocomplete,tabindex:ue.tabindex,"aria-label":ue.label||ue.ariaLabel,placeholder:ue.placeholder,style:ue.inputStyle,form:ue.form,autofocus:ue.autofocus,onCompositionstart:oe,onCompositionupdate:Se,onCompositionend:_e,onInput:J,onFocus:Ve[0]||(Ve[0]=(...bt)=>p.unref($)&&p.unref($)(...bt)),onBlur:Ve[1]||(Ve[1]=(...bt)=>p.unref(A)&&p.unref(A)(...bt)),onChange:ae,onKeydown:Xe}),null,16,V$e),p.createCommentVNode(" suffix slot "),p.unref(q)?(p.openBlock(),p.createElementBlock("span",{key:1,class:p.normalizeClass(p.unref(v).e("suffix"))},[p.createElementVNode("span",{class:p.normalizeClass(p.unref(v).e("suffix-inner"))},[!p.unref(z)||!p.unref(B)||!p.unref(F)?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[p.renderSlot(ue.$slots,"suffix"),ue.suffixIcon?(p.openBlock(),p.createBlock(p.unref(ts),{key:0,class:p.normalizeClass(p.unref(v).e("icon"))},{default:p.withCtx(()=>[(p.openBlock(),p.createBlock(p.resolveDynamicComponent(ue.suffixIcon)))]),_:1},8,["class"])):p.createCommentVNode("v-if",!0)],64)):p.createCommentVNode("v-if",!0),p.unref(z)?(p.openBlock(),p.createBlock(p.unref(ts),{key:1,class:p.normalizeClass([p.unref(v).e("icon"),p.unref(v).e("clear")]),onMousedown:p.withModifiers(p.unref(Yp),["prevent"]),onClick:yt},{default:p.withCtx(()=>[p.createVNode(p.unref(Nz))]),_:1},8,["class","onMousedown"])):p.createCommentVNode("v-if",!0),p.unref(B)?(p.openBlock(),p.createBlock(p.unref(ts),{key:2,class:p.normalizeClass([p.unref(v).e("icon"),p.unref(v).e("password")]),onClick:ge},{default:p.withCtx(()=>[(p.openBlock(),p.createBlock(p.resolveDynamicComponent(p.unref(R))))]),_:1},8,["class"])):p.createCommentVNode("v-if",!0),p.unref(F)?(p.openBlock(),p.createElementBlock("span",{key:3,class:p.normalizeClass(p.unref(v).e("count"))},[p.createElementVNode("span",{class:p.normalizeClass(p.unref(v).e("count-inner"))},p.toDisplayString(p.unref(j))+" / "+p.toDisplayString(ue.maxlength),3)],2)):p.createCommentVNode("v-if",!0),p.unref(D)&&p.unref(M)&&p.unref(E)?(p.openBlock(),p.createBlock(p.unref(ts),{key:4,class:p.normalizeClass([p.unref(v).e("icon"),p.unref(v).e("validateIcon"),p.unref(v).is("loading",p.unref(D)==="validating")])},{default:p.withCtx(()=>[(p.openBlock(),p.createBlock(p.resolveDynamicComponent(p.unref(M))))]),_:1},8,["class"])):p.createCommentVNode("v-if",!0)],2)],2)):p.createCommentVNode("v-if",!0)],2),p.createCommentVNode(" append slot "),ue.$slots.append?(p.openBlock(),p.createElementBlock("div",{key:1,class:p.normalizeClass(p.unref(v).be("group","append"))},[p.renderSlot(ue.$slots,"append")],2)):p.createCommentVNode("v-if",!0)],64)):(p.openBlock(),p.createElementBlock(p.Fragment,{key:1},[p.createCommentVNode(" textarea "),p.createElementVNode("textarea",p.mergeProps({id:p.unref(d),ref_key:"textarea",ref:b,class:[p.unref(m).e("inner"),p.unref(v).is("focus",p.unref(C))]},p.unref(u),{minlength:ue.minlength,maxlength:ue.maxlength,tabindex:ue.tabindex,disabled:p.unref(g),readonly:ue.readonly,autocomplete:ue.autocomplete,style:p.unref(V),"aria-label":ue.label||ue.ariaLabel,placeholder:ue.placeholder,form:ue.form,autofocus:ue.autofocus,onCompositionstart:oe,onCompositionupdate:Se,onCompositionend:_e,onInput:J,onFocus:Ve[2]||(Ve[2]=(...bt)=>p.unref($)&&p.unref($)(...bt)),onBlur:Ve[3]||(Ve[3]=(...bt)=>p.unref(A)&&p.unref(A)(...bt)),onChange:ae,onKeydown:Xe}),null,16,B$e),p.unref(F)?(p.openBlock(),p.createElementBlock("span",{key:0,style:p.normalizeStyle(x.value),class:p.normalizeClass(p.unref(v).e("count"))},p.toDisplayString(p.unref(j))+" / "+p.toDisplayString(ue.maxlength),7)):p.createCommentVNode("v-if",!0)],64))],16,L$e))}});var W$e=pn(F$e,[["__file","input.vue"]]);const GP=xu(W$e),ZP=Symbol("popper"),_F=Symbol("popperContent"),OF=Sn({role:{type:String,values:["dialog","grid","group","listbox","menu","navigation","tooltip","tree"],default:"tooltip"}}),Q$e=p.defineComponent({name:"ElPopper",inheritAttrs:!1}),H$e=p.defineComponent({...Q$e,props:OF,setup(t,{expose:e}){const n=t,r=p.ref(),i=p.ref(),a=p.ref(),o=p.ref(),s=p.computed(()=>n.role),l={triggerRef:r,popperInstanceRef:i,contentRef:a,referenceRef:o,role:s};return e(l),p.provide(ZP,l),(u,c)=>p.renderSlot(u.$slots,"default")}});var j$e=pn(H$e,[["__file","popper.vue"]]);const SF=Sn({arrowOffset:{type:Number,default:5}}),G$e=p.defineComponent({name:"ElPopperArrow",inheritAttrs:!1}),Z$e=p.defineComponent({...G$e,props:SF,setup(t,{expose:e}){const n=t,r=xn("popper"),{arrowOffset:i,arrowRef:a,arrowStyle:o}=p.inject(_F,void 0);return p.watch(()=>n.arrowOffset,s=>{i.value=s}),p.onBeforeUnmount(()=>{a.value=void 0}),e({arrowRef:a}),(s,l)=>(p.openBlock(),p.createElementBlock("span",{ref_key:"arrowRef",ref:a,class:p.normalizeClass(p.unref(r).e("arrow")),style:p.normalizeStyle(p.unref(o)),"data-popper-arrow":""},null,6))}});var U$e=pn(Z$e,[["__file","arrow.vue"]]);const UP="ElOnlyChild",X$e=p.defineComponent({name:UP,setup(t,{slots:e,attrs:n}){var r;const i=p.inject(hF),a=y$e((r=i==null?void 0:i.setForwardRef)!=null?r:Yp);return()=>{var o;const s=(o=e.default)==null?void 0:o.call(e,n);if(!s)return null;if(s.length>1)return li(UP,"requires exact only one valid child."),null;const l=xF(s);return l?p.withDirectives(p.cloneVNode(l,n),[[a]]):(li(UP,"no valid child node found"),null)}}});function xF(t){if(!t)return null;const e=t;for(const n of e){if(Kp(n))switch(n.type){case p.Comment:continue;case p.Text:case"svg":return wF(n);case p.Fragment:return xF(n.children);default:return n}return wF(n)}return null}function wF(t){const e=xn("only-child");return p.createVNode("span",{class:e.e("content")},[t])}const CF=Sn({virtualRef:{type:Tt(Object)},virtualTriggering:Boolean,onMouseenter:{type:Tt(Function)},onMouseleave:{type:Tt(Function)},onClick:{type:Tt(Function)},onKeydown:{type:Tt(Function)},onFocus:{type:Tt(Function)},onBlur:{type:Tt(Function)},onContextmenu:{type:Tt(Function)},id:String,open:Boolean}),Y$e=p.defineComponent({name:"ElPopperTrigger",inheritAttrs:!1}),q$e=p.defineComponent({...Y$e,props:CF,setup(t,{expose:e}){const n=t,{role:r,triggerRef:i}=p.inject(ZP,void 0);m$e(i);const a=p.computed(()=>s.value?n.id:void 0),o=p.computed(()=>{if(r&&r.value==="tooltip")return n.open&&n.id?n.id:void 0}),s=p.computed(()=>{if(r&&r.value!=="tooltip")return r.value}),l=p.computed(()=>s.value?`${n.open}`:void 0);let u;return p.onMounted(()=>{p.watch(()=>n.virtualRef,c=>{c&&(i.value=Qs(c))},{immediate:!0}),p.watch(i,(c,f)=>{u==null||u(),u=void 0,Jp(c)&&(["onMouseenter","onMouseleave","onClick","onKeydown","onFocus","onBlur","onContextmenu"].forEach(d=>{var h;const g=n[d];g&&(c.addEventListener(d.slice(2).toLowerCase(),g),(h=f==null?void 0:f.removeEventListener)==null||h.call(f,d.slice(2).toLowerCase(),g))}),u=p.watch([a,o,s,l],d=>{["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach((h,g)=>{Ns(d[g])?c.removeAttribute(h):c.setAttribute(h,d[g])})},{immediate:!0})),Jp(f)&&["aria-controls","aria-describedby","aria-haspopup","aria-expanded"].forEach(d=>f.removeAttribute(d))},{immediate:!0})}),p.onBeforeUnmount(()=>{u==null||u(),u=void 0}),e({triggerRef:i}),(c,f)=>c.virtualTriggering?p.createCommentVNode("v-if",!0):(p.openBlock(),p.createBlock(p.unref(X$e),p.mergeProps({key:0},c.$attrs,{"aria-controls":p.unref(a),"aria-describedby":p.unref(o),"aria-expanded":p.unref(l),"aria-haspopup":p.unref(s)}),{default:p.withCtx(()=>[p.renderSlot(c.$slots,"default")]),_:3},16,["aria-controls","aria-describedby","aria-expanded","aria-haspopup"]))}});var K$e=pn(q$e,[["__file","trigger.vue"]]);const XP="focus-trap.focus-after-trapped",YP="focus-trap.focus-after-released",J$e="focus-trap.focusout-prevented",TF={cancelable:!0,bubbles:!1},e2e={cancelable:!0,bubbles:!1},PF="focusAfterTrapped",$F="focusAfterReleased",t2e=Symbol("elFocusTrap"),qP=p.ref(),zb=p.ref(0),KP=p.ref(0);let Fb=0;const AF=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},EF=(t,e)=>{for(const n of t)if(!n2e(n,e))return n},n2e=(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},r2e=t=>{const e=AF(t),n=EF(e,t),r=EF(e.reverse(),t);return[n,r]},i2e=t=>t instanceof HTMLInputElement&&"select"in t,js=(t,e)=>{if(t&&t.focus){const n=document.activeElement;t.focus({preventScroll:!0}),KP.value=window.performance.now(),t!==n&&i2e(t)&&e&&t.select()}};function MF(t,e){const n=[...t],r=t.indexOf(e);return r!==-1&&n.splice(r,1),n}const a2e=()=>{let t=[];return{push:r=>{const i=t[0];i&&r!==i&&i.pause(),t=MF(t,r),t.unshift(r)},remove:r=>{var i,a;t=MF(t,r),(a=(i=t[0])==null?void 0:i.resume)==null||a.call(i)}}},o2e=(t,e=!1)=>{const n=document.activeElement;for(const r of t)if(js(r,e),document.activeElement!==n)return},IF=a2e(),s2e=()=>zb.value>KP.value,Wb=()=>{qP.value="pointer",zb.value=window.performance.now()},DF=()=>{qP.value="keyboard",zb.value=window.performance.now()},l2e=()=>(p.onMounted(()=>{Fb===0&&(document.addEventListener("mousedown",Wb),document.addEventListener("touchstart",Wb),document.addEventListener("keydown",DF)),Fb++}),p.onBeforeUnmount(()=>{Fb--,Fb<=0&&(document.removeEventListener("mousedown",Wb),document.removeEventListener("touchstart",Wb),document.removeEventListener("keydown",DF))}),{focusReason:qP,lastUserFocusTimestamp:zb,lastAutomatedFocusTimestamp:KP}),Qb=t=>new CustomEvent(J$e,{...e2e,detail:t}),u2e=p.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[PF,$F,"focusin","focusout","focusout-prevented","release-requested"],setup(t,{emit:e}){const n=p.ref();let r,i;const{focusReason:a}=l2e();d$e(g=>{t.trapped&&!o.paused&&e("release-requested",g)});const o={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},s=g=>{if(!t.loop&&!t.trapped||o.paused)return;const{key:v,altKey:m,ctrlKey:y,metaKey:b,currentTarget:_,shiftKey:O}=g,{loop:S}=t,x=v===wu.tab&&!m&&!y&&!b,w=document.activeElement;if(x&&w){const T=_,[P,C]=r2e(T);if(P&&C){if(!O&&w===C){const A=Qb({focusReason:a.value});e("focusout-prevented",A),A.defaultPrevented||(g.preventDefault(),S&&js(P,!0))}else if(O&&[P,T].includes(w)){const A=Qb({focusReason:a.value});e("focusout-prevented",A),A.defaultPrevented||(g.preventDefault(),S&&js(C,!0))}}else if(w===T){const A=Qb({focusReason:a.value});e("focusout-prevented",A),A.defaultPrevented||g.preventDefault()}}};p.provide(t2e,{focusTrapRef:n,onKeydown:s}),p.watch(()=>t.focusTrapEl,g=>{g&&(n.value=g)},{immediate:!0}),p.watch([n],([g],[v])=>{g&&(g.addEventListener("keydown",s),g.addEventListener("focusin",c),g.addEventListener("focusout",f)),v&&(v.removeEventListener("keydown",s),v.removeEventListener("focusin",c),v.removeEventListener("focusout",f))});const l=g=>{e(PF,g)},u=g=>e($F,g),c=g=>{const v=p.unref(n);if(!v)return;const m=g.target,y=g.relatedTarget,b=m&&v.contains(m);t.trapped||y&&v.contains(y)||(r=y),b&&e("focusin",g),!o.paused&&t.trapped&&(b?i=m:js(i,!0))},f=g=>{const v=p.unref(n);if(!(o.paused||!v))if(t.trapped){const m=g.relatedTarget;!Ns(m)&&!v.contains(m)&&setTimeout(()=>{if(!o.paused&&t.trapped){const y=Qb({focusReason:a.value});e("focusout-prevented",y),y.defaultPrevented||js(i,!0)}},0)}else{const m=g.target;m&&v.contains(m)||e("focusout",g)}};async function d(){await p.nextTick();const g=p.unref(n);if(g){IF.push(o);const v=g.contains(document.activeElement)?r:document.activeElement;if(r=v,!g.contains(v)){const y=new Event(XP,TF);g.addEventListener(XP,l),g.dispatchEvent(y),y.defaultPrevented||p.nextTick(()=>{let b=t.focusStartEl;Di(b)||(js(b),document.activeElement!==b&&(b="first")),b==="first"&&o2e(AF(g),!0),(document.activeElement===v||b==="container")&&js(g)})}}}function h(){const g=p.unref(n);if(g){g.removeEventListener(XP,l);const v=new CustomEvent(YP,{...TF,detail:{focusReason:a.value}});g.addEventListener(YP,u),g.dispatchEvent(v),!v.defaultPrevented&&(a.value=="keyboard"||!s2e()||g.contains(document.activeElement))&&js(r??document.body),g.removeEventListener(YP,u),IF.remove(o)}}return p.onMounted(()=>{t.trapped&&d(),p.watch(()=>t.trapped,g=>{g?d():h()})}),p.onBeforeUnmount(()=>{t.trapped&&h()}),{onKeydown:s}}});function c2e(t,e,n,r,i,a){return p.renderSlot(t.$slots,"default",{handleKeydown:t.onKeydown})}var f2e=pn(u2e,[["render",c2e],["__file","focus-trap.vue"]]);const d2e=["fixed","absolute"],h2e=Sn({boundariesPadding:{type:Number,default:0},fallbackPlacements:{type:Tt(Array),default:void 0},gpuAcceleration:{type:Boolean,default:!0},offset:{type:Number,default:12},placement:{type:String,values:DP,default:"bottom"},popperOptions:{type:Tt(Object),default:()=>({})},strategy:{type:String,values:d2e,default:"absolute"}}),RF=Sn({...h2e,id:String,style:{type:Tt([String,Array,Object])},className:{type:Tt([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:Tt([String,Array,Object])},popperStyle:{type:Tt([String,Array,Object])},referenceEl:{type:Tt(Object)},triggerTargetEl:{type:Tt(Object)},stopPopperMouseEvent:{type:Boolean,default:!0},virtualTriggering:Boolean,zIndex:Number,...ug(["ariaLabel"])}),p2e={mouseenter:t=>t instanceof MouseEvent,mouseleave:t=>t instanceof MouseEvent,focus:()=>!0,blur:()=>!0,close:()=>!0},g2e=(t,e=[])=>{const{placement:n,strategy:r,popperOptions:i}=t,a={placement:n,strategy:r,...i,modifiers:[...m2e(t),...e]};return y2e(a,i==null?void 0:i.modifiers),a},v2e=t=>{if(mr)return Qs(t)};function m2e(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 y2e(t,e){e&&(t.modifiers=[...t.modifiers,...e??[]])}const b2e=0,_2e=t=>{const{popperInstanceRef:e,contentRef:n,triggerRef:r,role:i}=p.inject(ZP,void 0),a=p.ref(),o=p.ref(),s=p.computed(()=>({name:"eventListeners",enabled:!!t.visible})),l=p.computed(()=>{var y;const b=p.unref(a),_=(y=p.unref(o))!=null?y:b2e;return{name:"arrow",enabled:!dye(b),options:{element:b,padding:_}}}),u=p.computed(()=>({onFirstUpdate:()=>{g()},...g2e(t,[p.unref(l),p.unref(s)])})),c=p.computed(()=>v2e(t.referenceEl)||p.unref(r)),{attributes:f,state:d,styles:h,update:g,forceUpdate:v,instanceRef:m}=u$e(c,n,u);return p.watch(m,y=>e.value=y),p.onMounted(()=>{p.watch(()=>{var y;return(y=p.unref(c))==null?void 0:y.getBoundingClientRect()},()=>{g()})}),{attributes:f,arrowRef:a,contentRef:n,instanceRef:m,state:d,styles:h,role:i,forceUpdate:v,update:g}},O2e=(t,{attributes:e,styles:n,role:r})=>{const{nextZIndex:i}=O$e(),a=xn("popper"),o=p.computed(()=>p.unref(e).popper),s=p.ref(Ko(t.zIndex)?t.zIndex:i()),l=p.computed(()=>[a.b(),a.is("pure",t.pure),a.is(t.effect),t.popperClass]),u=p.computed(()=>[{zIndex:p.unref(s)},p.unref(n).popper,t.popperStyle||{}]),c=p.computed(()=>r.value==="dialog"?"false":void 0),f=p.computed(()=>p.unref(n).arrow||{});return{ariaModal:c,arrowStyle:f,contentAttrs:o,contentClass:l,contentStyle:u,contentZIndex:s,updateZIndex:()=>{s.value=Ko(t.zIndex)?t.zIndex:i()}}},S2e=(t,e)=>{const n=p.ref(!1),r=p.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")}}},x2e=p.defineComponent({name:"ElPopperContent"}),w2e=p.defineComponent({...x2e,props:RF,emits:p2e,setup(t,{expose:e,emit:n}){const r=t,{focusStartRef:i,trapped:a,onFocusAfterReleased:o,onFocusAfterTrapped:s,onFocusInTrap:l,onFocusoutPrevented:u,onReleaseRequested:c}=S2e(r,n),{attributes:f,arrowRef:d,contentRef:h,styles:g,instanceRef:v,role:m,update:y}=_2e(r),{ariaModal:b,arrowStyle:_,contentAttrs:O,contentClass:S,contentStyle:x,updateZIndex:w}=O2e(r,{styles:g,attributes:f,role:m}),T=p.inject(Lb,void 0),P=p.ref();p.provide(_F,{arrowStyle:_,arrowRef:d,arrowOffset:P}),T&&p.provide(Lb,{...T,addInputId:Yp,removeInputId:Yp});let C;const $=(E=!0)=>{y(),E&&w()},A=()=>{$(!1),r.visible&&r.focusOnShow?a.value=!0:r.visible===!1&&(a.value=!1)};return p.onMounted(()=>{p.watch(()=>r.triggerTargetEl,(E,D)=>{C==null||C(),C=void 0;const M=p.unref(E||h.value),R=p.unref(D||h.value);Jp(M)&&(C=p.watch([m,()=>r.ariaLabel,b,()=>r.id],N=>{["role","aria-label","aria-modal","id"].forEach((V,L)=>{Ns(N[L])?M.removeAttribute(V):M.setAttribute(V,N[L])})},{immediate:!0})),R!==M&&Jp(R)&&["role","aria-label","aria-modal","id"].forEach(N=>{R.removeAttribute(N)})},{immediate:!0}),p.watch(()=>r.visible,A,{immediate:!0})}),p.onBeforeUnmount(()=>{C==null||C(),C=void 0}),e({popperContentRef:h,popperInstanceRef:v,updatePopper:$,contentStyle:x}),(E,D)=>(p.openBlock(),p.createElementBlock("div",p.mergeProps({ref_key:"contentRef",ref:h},p.unref(O),{style:p.unref(x),class:p.unref(S),tabindex:"-1",onMouseenter:D[0]||(D[0]=M=>E.$emit("mouseenter",M)),onMouseleave:D[1]||(D[1]=M=>E.$emit("mouseleave",M))}),[p.createVNode(p.unref(f2e),{trapped:p.unref(a),"trap-on-focus-in":!0,"focus-trap-el":p.unref(h),"focus-start-el":p.unref(i),onFocusAfterTrapped:p.unref(s),onFocusAfterReleased:p.unref(o),onFocusin:p.unref(l),onFocusoutPrevented:p.unref(u),onReleaseRequested:p.unref(c)},{default:p.withCtx(()=>[p.renderSlot(E.$slots,"default")]),_:3},8,["trapped","focus-trap-el","focus-start-el","onFocusAfterTrapped","onFocusAfterReleased","onFocusin","onFocusoutPrevented","onReleaseRequested"])],16))}});var C2e=pn(w2e,[["__file","content.vue"]]);const T2e=xu(j$e),JP=Symbol("elTooltip"),e$=Sn({...g$e,...RF,appendTo:{type:Tt([String,Object])},content:{type:String,default:""},rawContent:{type:Boolean,default:!1},persistent:Boolean,visible:{type:Tt(Boolean),default:null},transition:String,teleported:{type:Boolean,default:!0},disabled:Boolean,...ug(["ariaLabel"])}),kF=Sn({...CF,disabled:Boolean,trigger:{type:Tt([String,Array]),default:"hover"},triggerKeys:{type:Tt(Array),default:()=>[wu.enter,wu.space]}}),{useModelToggleProps:P2e,useModelToggleEmits:$2e,useModelToggle:A2e}=zz("visible"),E2e=Sn({...OF,...P2e,...e$,...kF,...SF,showArrow:{type:Boolean,default:!0}}),M2e=[...$2e,"before-show","before-hide","show","hide","open","close"],I2e=(t,e)=>TTe(t)?t.includes(e):t===e,td=(t,e,n)=>r=>{I2e(p.unref(t),e)&&n(r)},D2e=p.defineComponent({name:"ElTooltipTrigger"}),R2e=p.defineComponent({...D2e,props:kF,setup(t,{expose:e}){const n=t,r=xn("tooltip"),{controlled:i,id:a,open:o,onOpen:s,onClose:l,onToggle:u}=p.inject(JP,void 0),c=p.ref(null),f=()=>{if(p.unref(i)||n.disabled)return!0},d=p.toRef(n,"trigger"),h=qo(f,td(d,"hover",s)),g=qo(f,td(d,"hover",l)),v=qo(f,td(d,"click",O=>{O.button===0&&u(O)})),m=qo(f,td(d,"focus",s)),y=qo(f,td(d,"focus",l)),b=qo(f,td(d,"contextmenu",O=>{O.preventDefault(),u(O)})),_=qo(f,O=>{const{code:S}=O;n.triggerKeys.includes(S)&&(O.preventDefault(),u(O))});return e({triggerRef:c}),(O,S)=>(p.openBlock(),p.createBlock(p.unref(K$e),{id:p.unref(a),"virtual-ref":O.virtualRef,open:p.unref(o),"virtual-triggering":O.virtualTriggering,class:p.normalizeClass(p.unref(r).e("trigger")),onBlur:p.unref(y),onClick:p.unref(v),onContextmenu:p.unref(b),onFocus:p.unref(m),onMouseenter:p.unref(h),onMouseleave:p.unref(g),onKeydown:p.unref(_)},{default:p.withCtx(()=>[p.renderSlot(O.$slots,"default")]),_:3},8,["id","virtual-ref","open","virtual-triggering","class","onBlur","onClick","onContextmenu","onFocus","onMouseenter","onMouseleave","onKeydown"]))}});var k2e=pn(R2e,[["__file","trigger.vue"]]);const N2e=p.defineComponent({name:"ElTooltipContent",inheritAttrs:!1}),L2e=p.defineComponent({...N2e,props:e$,setup(t,{expose:e}){const n=t,{selector:r}=dF(),i=xn("tooltip"),a=p.ref(null),o=p.ref(!1),{controlled:s,id:l,open:u,trigger:c,onClose:f,onOpen:d,onShow:h,onHide:g,onBeforeShow:v,onBeforeHide:m}=p.inject(JP,void 0),y=p.computed(()=>n.transition||`${i.namespace.value}-fade-in-linear`),b=p.computed(()=>process.env.NODE_ENV==="test"?!0:n.persistent);p.onBeforeUnmount(()=>{o.value=!0});const _=p.computed(()=>p.unref(b)?!0:p.unref(u)),O=p.computed(()=>n.disabled?!1:p.unref(u)),S=p.computed(()=>n.appendTo||r.value),x=p.computed(()=>{var N;return(N=n.style)!=null?N:{}}),w=p.computed(()=>!p.unref(u)),T=()=>{g()},P=()=>{if(p.unref(s))return!0},C=qo(P,()=>{n.enterable&&p.unref(c)==="hover"&&d()}),$=qo(P,()=>{p.unref(c)==="hover"&&f()}),A=()=>{var N,V;(V=(N=a.value)==null?void 0:N.updatePopper)==null||V.call(N),v==null||v()},E=()=>{m==null||m()},D=()=>{h(),R=pTe(p.computed(()=>{var N;return(N=a.value)==null?void 0:N.popperContentRef}),()=>{if(p.unref(s))return;p.unref(c)!=="hover"&&f()})},M=()=>{n.virtualTriggering||f()};let R;return p.watch(()=>p.unref(u),N=>{N||R==null||R()},{flush:"post"}),p.watch(()=>n.content,()=>{var N,V;(V=(N=a.value)==null?void 0:N.updatePopper)==null||V.call(N)}),e({contentRef:a}),(N,V)=>(p.openBlock(),p.createBlock(p.Teleport,{disabled:!N.teleported,to:p.unref(S)},[p.createVNode(p.Transition,{name:p.unref(y),onAfterLeave:T,onBeforeEnter:A,onAfterEnter:D,onBeforeLeave:E},{default:p.withCtx(()=>[p.unref(_)?p.withDirectives((p.openBlock(),p.createBlock(p.unref(C2e),p.mergeProps({key:0,id:p.unref(l),ref_key:"contentRef",ref:a},N.$attrs,{"aria-label":N.ariaLabel,"aria-hidden":p.unref(w),"boundaries-padding":N.boundariesPadding,"fallback-placements":N.fallbackPlacements,"gpu-acceleration":N.gpuAcceleration,offset:N.offset,placement:N.placement,"popper-options":N.popperOptions,strategy:N.strategy,effect:N.effect,enterable:N.enterable,pure:N.pure,"popper-class":N.popperClass,"popper-style":[N.popperStyle,p.unref(x)],"reference-el":N.referenceEl,"trigger-target-el":N.triggerTargetEl,visible:p.unref(O),"z-index":N.zIndex,onMouseenter:p.unref(C),onMouseleave:p.unref($),onBlur:M,onClose:p.unref(f)}),{default:p.withCtx(()=>[o.value?p.createCommentVNode("v-if",!0):p.renderSlot(N.$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"])),[[p.vShow,p.unref(O)]]):p.createCommentVNode("v-if",!0)]),_:3},8,["name"])],8,["disabled","to"]))}});var V2e=pn(L2e,[["__file","content.vue"]]);const B2e=["innerHTML"],z2e={key:1},F2e=p.defineComponent({name:"ElTooltip"}),W2e=p.defineComponent({...F2e,props:E2e,emits:M2e,setup(t,{expose:e,emit:n}){const r=t;p$e();const i=QP(),a=p.ref(),o=p.ref(),s=()=>{var y;const b=p.unref(a);b&&((y=b.popperInstanceRef)==null||y.update())},l=p.ref(!1),u=p.ref(),{show:c,hide:f,hasUpdateHandler:d}=A2e({indicator:l,toggleReason:u}),{onOpen:h,onClose:g}=v$e({showAfter:p.toRef(r,"showAfter"),hideAfter:p.toRef(r,"hideAfter"),autoClose:p.toRef(r,"autoClose"),open:c,close:f}),v=p.computed(()=>Eb(r.visible)&&!d.value);p.provide(JP,{controlled:v,id:i,open:p.readonly(l),trigger:p.toRef(r,"trigger"),onOpen:y=>{h(y)},onClose:y=>{g(y)},onToggle:y=>{p.unref(l)?g(y):h(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}),p.watch(()=>r.disabled,y=>{y&&l.value&&(l.value=!1)});const m=y=>{var b,_;const O=(_=(b=o.value)==null?void 0:b.contentRef)==null?void 0:_.popperContentRef,S=(y==null?void 0:y.relatedTarget)||document.activeElement;return O&&O.contains(S)};return p.onDeactivated(()=>l.value&&f()),e({popperRef:a,contentRef:o,isFocusInsideContent:m,updatePopper:s,onOpen:h,onClose:g,hide:f}),(y,b)=>(p.openBlock(),p.createBlock(p.unref(T2e),{ref_key:"popperRef",ref:a,role:y.role},{default:p.withCtx(()=>[p.createVNode(k2e,{disabled:y.disabled,trigger:y.trigger,"trigger-keys":y.triggerKeys,"virtual-ref":y.virtualRef,"virtual-triggering":y.virtualTriggering},{default:p.withCtx(()=>[y.$slots.default?p.renderSlot(y.$slots,"default",{key:0}):p.createCommentVNode("v-if",!0)]),_:3},8,["disabled","trigger","trigger-keys","virtual-ref","virtual-triggering"]),p.createVNode(V2e,{ref_key:"contentRef",ref:o,"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:p.withCtx(()=>[p.renderSlot(y.$slots,"content",{},()=>[y.rawContent?(p.openBlock(),p.createElementBlock("span",{key:0,innerHTML:y.content},null,8,B2e)):(p.openBlock(),p.createElementBlock("span",z2e,p.toDisplayString(y.content),1))]),y.showArrow?(p.openBlock(),p.createBlock(p.unref(U$e),{key:0,"arrow-offset":y.arrowOffset},null,8,["arrow-offset"])):p.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 Q2e=pn(W2e,[["__file","tooltip.vue"]]);const H2e=xu(Q2e),NF=Symbol("buttonGroupContextKey"),j2e=(t,e)=>{eg({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},p.computed(()=>t.type==="text"));const n=p.inject(NF,void 0),r=P$e("button"),{form:i}=Bb(),a=Vb(p.computed(()=>n==null?void 0:n.size)),o=cg(),s=p.ref(),l=p.useSlots(),u=p.computed(()=>t.type||(n==null?void 0:n.type)||""),c=p.computed(()=>{var g,v,m;return(m=(v=t.autoInsertSpace)!=null?v:(g=r.value)==null?void 0:g.autoInsertSpace)!=null?m:!1}),f=p.computed(()=>t.tag==="button"?{ariaDisabled:o.value||t.loading,disabled:o.value||t.loading,autofocus:t.autofocus,type:t.nativeType}:{}),d=p.computed(()=>{var g;const v=(g=l.default)==null?void 0:g.call(l);if(c.value&&(v==null?void 0:v.length)===1){const m=v[0];if((m==null?void 0:m.type)===p.Text){const y=m.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(y.trim())}}return!1});return{_disabled:o,_size:a,_type:u,_ref:s,_props:f,shouldAddSpace:d,handleClick:g=>{t.nativeType==="reset"&&(i==null||i.resetFields()),e("click",g)}}},t$=Sn({size:lg,disabled:Boolean,type:{type:String,values:["default","primary","success","warning","info","danger","text",""],default:""},icon:{type:Ib},nativeType:{type:String,values:["button","submit","reset"],default:"button"},loading:Boolean,loadingIcon:{type:Ib,default:()=>Lz},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:Tt([String,Object]),default:"button"}}),G2e={click:t=>t instanceof MouseEvent};function Gs(t,e=20){return t.mix("#141414",e).toString()}function Z2e(t){const e=cg(),n=xn("button");return p.computed(()=>{let r={},i=t.color;if(i){const a=i.match(/var\((.*?)\)/);a&&(i=window.getComputedStyle(window.document.documentElement).getPropertyValue(a[1]));const o=new It(i),s=t.dark?o.tint(20).toString():Gs(o,20);if(t.plain)r=n.cssVarBlock({"bg-color":t.dark?Gs(o,90):o.tint(90).toString(),"text-color":i,"border-color":t.dark?Gs(o,50):o.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?Gs(o,90):o.tint(90).toString(),r[n.cssVarBlockName("disabled-text-color")]=t.dark?Gs(o,50):o.tint(50).toString(),r[n.cssVarBlockName("disabled-border-color")]=t.dark?Gs(o,80):o.tint(80).toString());else{const l=t.dark?Gs(o,30):o.tint(30).toString(),u=o.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?Gs(o,50):o.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 U2e=p.defineComponent({name:"ElButton"}),X2e=p.defineComponent({...U2e,props:t$,emits:G2e,setup(t,{expose:e,emit:n}){const r=t,i=Z2e(r),a=xn("button"),{_ref:o,_size:s,_type:l,_disabled:u,_props:c,shouldAddSpace:f,handleClick:d}=j2e(r,n),h=p.computed(()=>[a.b(),a.m(l.value),a.m(s.value),a.is("disabled",u.value),a.is("loading",r.loading),a.is("plain",r.plain),a.is("round",r.round),a.is("circle",r.circle),a.is("text",r.text),a.is("link",r.link),a.is("has-bg",r.bg)]);return e({ref:o,size:s,type:l,disabled:u,shouldAddSpace:f}),(g,v)=>(p.openBlock(),p.createBlock(p.resolveDynamicComponent(g.tag),p.mergeProps({ref_key:"_ref",ref:o},p.unref(c),{class:p.unref(h),style:p.unref(i),onClick:p.unref(d)}),{default:p.withCtx(()=>[g.loading?(p.openBlock(),p.createElementBlock(p.Fragment,{key:0},[g.$slots.loading?p.renderSlot(g.$slots,"loading",{key:0}):(p.openBlock(),p.createBlock(p.unref(ts),{key:1,class:p.normalizeClass(p.unref(a).is("loading"))},{default:p.withCtx(()=>[(p.openBlock(),p.createBlock(p.resolveDynamicComponent(g.loadingIcon)))]),_:1},8,["class"]))],64)):g.icon||g.$slots.icon?(p.openBlock(),p.createBlock(p.unref(ts),{key:1},{default:p.withCtx(()=>[g.icon?(p.openBlock(),p.createBlock(p.resolveDynamicComponent(g.icon),{key:0})):p.renderSlot(g.$slots,"icon",{key:1})]),_:3})):p.createCommentVNode("v-if",!0),g.$slots.default?(p.openBlock(),p.createElementBlock("span",{key:2,class:p.normalizeClass({[p.unref(a).em("text","expand")]:p.unref(f)})},[p.renderSlot(g.$slots,"default")],2)):p.createCommentVNode("v-if",!0)]),_:3},16,["class","style","onClick"]))}});var Y2e=pn(X2e,[["__file","button.vue"]]);const q2e={size:t$.size,type:t$.type},K2e=p.defineComponent({name:"ElButtonGroup"}),J2e=p.defineComponent({...K2e,props:q2e,setup(t){const e=t;p.provide(NF,p.reactive({size:p.toRef(e,"size"),type:p.toRef(e,"type")}));const n=xn("button");return(r,i)=>(p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(`${p.unref(n).b("group")}`)},[p.renderSlot(r.$slots,"default")],2))}});var LF=pn(J2e,[["__file","button-group.vue"]]);const VF=xu(Y2e,{ButtonGroup:LF});AP(LF);const Zs=new Map;let BF;mr&&(document.addEventListener("mousedown",t=>BF=t),document.addEventListener("mouseup",t=>{for(const e of Zs.values())for(const{documentHandler:n}of e)n(t,BF)}));function zF(t,e){let n=[];return Array.isArray(e.arg)?n=e.arg:Jp(e.arg)&&n.push(e.arg),function(r,i){const a=e.instance.popperRef,o=r.target,s=i==null?void 0:i.target,l=!e||!e.instance,u=!o||!s,c=t.contains(o)||t.contains(s),f=t===o,d=n.length&&n.some(g=>g==null?void 0:g.contains(o))||n.length&&n.includes(s),h=a&&(a.contains(o)||a.contains(s));l||u||c||f||d||h||e.value(r,i)}}const eAe={beforeMount(t,e){Zs.has(t)||Zs.set(t,[]),Zs.get(t).push({documentHandler:zF(t,e),bindingFn:e.value})},updated(t,e){Zs.has(t)||Zs.set(t,[]);const n=Zs.get(t),r=n.findIndex(a=>a.bindingFn===e.oldValue),i={documentHandler:zF(t,e),bindingFn:e.value};r>=0?n.splice(r,1,i):n.push(i)},unmounted(t){Zs.delete(t)}},FF=Sn({modelValue:{type:[String,Number,Boolean],default:void 0},size:lg,disabled:Boolean,label:{type:[String,Number,Boolean],default:void 0},value:{type:[String,Number,Boolean],default:void 0},name:{type:String,default:void 0}}),tAe=Sn({...FF,border:Boolean}),WF={[Jo]:t=>Di(t)||Ko(t)||Eb(t),[Bz]:t=>Di(t)||Ko(t)||Eb(t)},QF=Symbol("radioGroupKey"),HF=(t,e)=>{const n=p.ref(),r=p.inject(QF,void 0),i=p.computed(()=>!!r),a=p.computed(()=>kz(t.value)?t.label:t.value),o=p.computed({get(){return i.value?r.modelValue:t.modelValue},set(f){i.value?r.changeEvent(f):e&&e(Jo,f),n.value.checked=t.modelValue===a.value}}),s=Vb(p.computed(()=>r==null?void 0:r.size)),l=cg(p.computed(()=>r==null?void 0:r.disabled)),u=p.ref(!1),c=p.computed(()=>l.value||i.value&&o.value!==a.value?-1:0);return eg({from:"label act as value",replacement:"value",version:"3.0.0",scope:"el-radio",ref:"https://element-plus.org/en-US/component/radio.html"},p.computed(()=>i.value&&kz(t.value))),{radioRef:n,isGroup:i,radioGroup:r,focus:u,size:s,disabled:l,tabIndex:c,modelValue:o,actualValue:a}},nAe=["value","name","disabled"],rAe=p.defineComponent({name:"ElRadio"}),iAe=p.defineComponent({...rAe,props:tAe,emits:WF,setup(t,{emit:e}){const n=t,r=xn("radio"),{radioRef:i,radioGroup:a,focus:o,size:s,disabled:l,modelValue:u,actualValue:c}=HF(n,e);function f(){p.nextTick(()=>e("change",u.value))}return(d,h)=>{var g;return p.openBlock(),p.createElementBlock("label",{class:p.normalizeClass([p.unref(r).b(),p.unref(r).is("disabled",p.unref(l)),p.unref(r).is("focus",p.unref(o)),p.unref(r).is("bordered",d.border),p.unref(r).is("checked",p.unref(u)===p.unref(c)),p.unref(r).m(p.unref(s))])},[p.createElementVNode("span",{class:p.normalizeClass([p.unref(r).e("input"),p.unref(r).is("disabled",p.unref(l)),p.unref(r).is("checked",p.unref(u)===p.unref(c))])},[p.withDirectives(p.createElementVNode("input",{ref_key:"radioRef",ref:i,"onUpdate:modelValue":h[0]||(h[0]=v=>p.isRef(u)?u.value=v:null),class:p.normalizeClass(p.unref(r).e("original")),value:p.unref(c),name:d.name||((g=p.unref(a))==null?void 0:g.name),disabled:p.unref(l),type:"radio",onFocus:h[1]||(h[1]=v=>o.value=!0),onBlur:h[2]||(h[2]=v=>o.value=!1),onChange:f,onClick:h[3]||(h[3]=p.withModifiers(()=>{},["stop"]))},null,42,nAe),[[p.vModelRadio,p.unref(u)]]),p.createElementVNode("span",{class:p.normalizeClass(p.unref(r).e("inner"))},null,2)],2),p.createElementVNode("span",{class:p.normalizeClass(p.unref(r).e("label")),onKeydown:h[4]||(h[4]=p.withModifiers(()=>{},["stop"]))},[p.renderSlot(d.$slots,"default",{},()=>[p.createTextVNode(p.toDisplayString(d.label),1)])],34)],2)}}});var aAe=pn(iAe,[["__file","radio.vue"]]);const oAe=Sn({...FF}),sAe=["value","name","disabled"],lAe=p.defineComponent({name:"ElRadioButton"}),uAe=p.defineComponent({...lAe,props:oAe,setup(t){const e=t,n=xn("radio"),{radioRef:r,focus:i,size:a,disabled:o,modelValue:s,radioGroup:l,actualValue:u}=HF(e),c=p.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 h;return p.openBlock(),p.createElementBlock("label",{class:p.normalizeClass([p.unref(n).b("button"),p.unref(n).is("active",p.unref(s)===p.unref(u)),p.unref(n).is("disabled",p.unref(o)),p.unref(n).is("focus",p.unref(i)),p.unref(n).bm("button",p.unref(a))])},[p.withDirectives(p.createElementVNode("input",{ref_key:"radioRef",ref:r,"onUpdate:modelValue":d[0]||(d[0]=g=>p.isRef(s)?s.value=g:null),class:p.normalizeClass(p.unref(n).be("button","original-radio")),value:p.unref(u),type:"radio",name:f.name||((h=p.unref(l))==null?void 0:h.name),disabled:p.unref(o),onFocus:d[1]||(d[1]=g=>i.value=!0),onBlur:d[2]||(d[2]=g=>i.value=!1),onClick:d[3]||(d[3]=p.withModifiers(()=>{},["stop"]))},null,42,sAe),[[p.vModelRadio,p.unref(s)]]),p.createElementVNode("span",{class:p.normalizeClass(p.unref(n).be("button","inner")),style:p.normalizeStyle(p.unref(s)===p.unref(u)?p.unref(c):{}),onKeydown:d[4]||(d[4]=p.withModifiers(()=>{},["stop"]))},[p.renderSlot(f.$slots,"default",{},()=>[p.createTextVNode(p.toDisplayString(f.label),1)])],38)],2)}}});var jF=pn(uAe,[["__file","radio-button.vue"]]);const cAe=Sn({id:{type:String,default:void 0},size:lg,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},...ug(["ariaLabel"])}),fAe=WF,dAe=["id","aria-label","aria-labelledby"],hAe=p.defineComponent({name:"ElRadioGroup"}),pAe=p.defineComponent({...hAe,props:cAe,emits:fAe,setup(t,{emit:e}){const n=t,r=xn("radio"),i=QP(),a=p.ref(),{formItem:o}=Bb(),{inputId:s,isLabeledByFormItem:l}=jP(n,{formItemContext:o}),u=f=>{e(Jo,f),p.nextTick(()=>e("change",f))};p.onMounted(()=>{const f=a.value.querySelectorAll("[type=radio]"),d=f[0];!Array.from(f).some(h=>h.checked)&&d&&(d.tabIndex=0)});const c=p.computed(()=>n.name||i.value);return p.provide(QF,p.reactive({...p.toRefs(n),changeEvent:u,name:c})),p.watch(()=>n.modelValue,()=>{n.validateEvent&&(o==null||o.validate("change").catch(f=>li(f)))}),eg({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-radio-group",ref:"https://element-plus.org/en-US/component/radio.html"},p.computed(()=>!!n.label)),(f,d)=>(p.openBlock(),p.createElementBlock("div",{id:p.unref(s),ref_key:"radioGroupRef",ref:a,class:p.normalizeClass(p.unref(r).b("group")),role:"radiogroup","aria-label":p.unref(l)?void 0:f.label||f.ariaLabel||"radio-group","aria-labelledby":p.unref(l)?p.unref(o).labelId:void 0},[p.renderSlot(f.$slots,"default")],10,dAe))}});var GF=pn(pAe,[["__file","radio-group.vue"]]);xu(aAe,{RadioButton:jF,RadioGroup:GF});const ZF=AP(GF),fg=AP(jF),gAe=Sn({color:{type:Tt(Object),required:!0},vertical:{type:Boolean,default:!1}});let n$=!1;function dg(t,e){if(!mr)return;const n=function(a){var o;(o=e.drag)==null||o.call(e,a)},r=function(a){var o;document.removeEventListener("mousemove",n),document.removeEventListener("mouseup",r),document.removeEventListener("touchmove",n),document.removeEventListener("touchend",r),document.onselectstart=null,document.ondragstart=null,n$=!1,(o=e.end)==null||o.call(e,a)},i=function(a){var o;n$||(a.preventDefault(),document.onselectstart=()=>!1,document.ondragstart=()=>!1,document.addEventListener("mousemove",n),document.addEventListener("mouseup",r),document.addEventListener("touchmove",n),document.addEventListener("touchend",r),n$=!0,(o=e.start)==null||o.call(e,a))};t.addEventListener("mousedown",i),t.addEventListener("touchstart",i)}const vAe=t=>{const e=p.getCurrentInstance(),n=p.shallowRef(),r=p.shallowRef();function i(o){o.target!==n.value&&a(o)}function a(o){if(!r.value||!n.value)return;const l=e.vnode.el.getBoundingClientRect(),{clientX:u,clientY:c}=PP(o);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:a,handleClick:i}},mAe=(t,{bar:e,thumb:n,handleDrag:r})=>{const i=p.getCurrentInstance(),a=xn("color-alpha-slider"),o=p.ref(0),s=p.ref(0),l=p.ref();function u(){if(!n.value||t.vertical)return 0;const b=i.vnode.el,_=t.color.get("alpha");return b?Math.round(_*(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 _=t.color.get("alpha");return b?Math.round(_*(b.offsetHeight-n.value.offsetHeight/2)/100):0}function f(){if(t.color&&t.color.value){const{r:b,g:_,b:O}=t.color.toRgb();return`linear-gradient(to right, rgba(${b}, ${_}, ${O}, 0) 0%, rgba(${b}, ${_}, ${O}, 1) 100%)`}return""}function d(){o.value=u(),s.value=c(),l.value=f()}p.onMounted(()=>{if(!e.value||!n.value)return;const b={drag:_=>{r(_)},end:_=>{r(_)}};dg(e.value,b),dg(n.value,b),d()}),p.watch(()=>t.color.get("alpha"),()=>d()),p.watch(()=>t.color.value,()=>d());const h=p.computed(()=>[a.b(),a.is("vertical",t.vertical)]),g=p.computed(()=>a.e("bar")),v=p.computed(()=>a.e("thumb")),m=p.computed(()=>({background:l.value})),y=p.computed(()=>({left:$P(o.value),top:$P(s.value)}));return{rootKls:h,barKls:g,barStyle:m,thumbKls:v,thumbStyle:y,update:d}},yAe=p.defineComponent({name:"ElColorAlphaSlider"}),bAe=p.defineComponent({...yAe,props:gAe,setup(t,{expose:e}){const n=t,{bar:r,thumb:i,handleDrag:a,handleClick:o}=vAe(n),{rootKls:s,barKls:l,barStyle:u,thumbKls:c,thumbStyle:f,update:d}=mAe(n,{bar:r,thumb:i,handleDrag:a});return e({update:d,bar:r,thumb:i}),(h,g)=>(p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(p.unref(s))},[p.createElementVNode("div",{ref_key:"bar",ref:r,class:p.normalizeClass(p.unref(l)),style:p.normalizeStyle(p.unref(u)),onClick:g[0]||(g[0]=(...v)=>p.unref(o)&&p.unref(o)(...v))},null,6),p.createElementVNode("div",{ref_key:"thumb",ref:i,class:p.normalizeClass(p.unref(c)),style:p.normalizeStyle(p.unref(f))},null,6)],2))}});var _Ae=pn(bAe,[["__file","alpha-slider.vue"]]);const OAe=p.defineComponent({name:"ElColorHueSlider",props:{color:{type:Object,required:!0},vertical:Boolean},setup(t){const e=xn("color-hue-slider"),n=p.getCurrentInstance(),r=p.ref(),i=p.ref(),a=p.ref(0),o=p.ref(0),s=p.computed(()=>t.color.get("hue"));p.watch(()=>s.value,()=>{d()});function l(h){h.target!==r.value&&u(h)}function u(h){if(!i.value||!r.value)return;const v=n.vnode.el.getBoundingClientRect(),{clientX:m,clientY:y}=PP(h);let b;if(t.vertical){let _=y-v.top;_=Math.min(_,v.height-r.value.offsetHeight/2),_=Math.max(r.value.offsetHeight/2,_),b=Math.round((_-r.value.offsetHeight/2)/(v.height-r.value.offsetHeight)*360)}else{let _=m-v.left;_=Math.min(_,v.width-r.value.offsetWidth/2),_=Math.max(r.value.offsetWidth/2,_),b=Math.round((_-r.value.offsetWidth/2)/(v.width-r.value.offsetWidth)*360)}t.color.set("hue",b)}function c(){if(!r.value)return 0;const h=n.vnode.el;if(t.vertical)return 0;const g=t.color.get("hue");return h?Math.round(g*(h.offsetWidth-r.value.offsetWidth/2)/360):0}function f(){if(!r.value)return 0;const h=n.vnode.el;if(!t.vertical)return 0;const g=t.color.get("hue");return h?Math.round(g*(h.offsetHeight-r.value.offsetHeight/2)/360):0}function d(){a.value=c(),o.value=f()}return p.onMounted(()=>{if(!i.value||!r.value)return;const h={drag:g=>{u(g)},end:g=>{u(g)}};dg(i.value,h),dg(r.value,h),d()}),{bar:i,thumb:r,thumbLeft:a,thumbTop:o,hueValue:s,handleClick:l,update:d,ns:e}}});function SAe(t,e,n,r,i,a){return p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass([t.ns.b(),t.ns.is("vertical",t.vertical)])},[p.createElementVNode("div",{ref:"bar",class:p.normalizeClass(t.ns.e("bar")),onClick:e[0]||(e[0]=(...o)=>t.handleClick&&t.handleClick(...o))},null,2),p.createElementVNode("div",{ref:"thumb",class:p.normalizeClass(t.ns.e("thumb")),style:p.normalizeStyle({left:t.thumbLeft+"px",top:t.thumbTop+"px"})},null,6)],2)}var xAe=pn(OAe,[["render",SAe],["__file","hue-slider.vue"]]);const wAe=Sn({modelValue:String,id:String,showAlpha:Boolean,colorFormat:String,disabled:Boolean,size:lg,popperClass:{type:String,default:""},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},teleported:e$.teleported,predefine:{type:Tt(Array)},validateEvent:{type:Boolean,default:!0},...ug(["ariaLabel"])}),CAe={[Jo]:t=>Di(t)||Ns(t),[Bz]:t=>Di(t)||Ns(t),activeChange:t=>Di(t)||Ns(t),focus:t=>t instanceof FocusEvent,blur:t=>t instanceof FocusEvent},UF=Symbol("colorPickerContextKey"),XF=function(t,e,n){return[t,e*n/((t=(2-e)*n)<1?t:2-t)||0,t/2]},TAe=function(t){return typeof t=="string"&&t.includes(".")&&Number.parseFloat(t)===1},PAe=function(t){return typeof t=="string"&&t.includes("%")},nd=function(t,e){TAe(t)&&(t="100%");const n=PAe(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)},YF={10:"A",11:"B",12:"C",13:"D",14:"E",15:"F"},Hb=t=>{t=Math.min(Math.round(t),255);const e=Math.floor(t/16),n=t%16;return`${YF[e]||e}${YF[n]||n}`},qF=function({r:t,g:e,b:n}){return Number.isNaN(+t)||Number.isNaN(+e)||Number.isNaN(+n)?"":`#${Hb(t)}${Hb(e)}${Hb(n)}`},r$={A:10,B:11,C:12,D:13,E:14,F:15},Pu=function(t){return t.length===2?(r$[t[0].toUpperCase()]||+t[0])*16+(r$[t[1].toUpperCase()]||+t[1]):r$[t[1].toUpperCase()]||+t[1]},$Ae=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 a=(n+e)/2,o=n===0?2*r/(i+r):2*e/(n+e);return{h:t,s:o*100,v:a*100}},KF=(t,e,n)=>{t=nd(t,255),e=nd(e,255),n=nd(n,255);const r=Math.max(t,e,n),i=Math.min(t,e,n);let a;const o=r,s=r-i,l=r===0?0:s/r;if(r===i)a=0;else{switch(r){case t:{a=(e-n)/s+(e<n?6:0);break}case e:{a=(n-t)/s+2;break}case n:{a=(t-e)/s+4;break}}a/=6}return{h:a*360,s:l*100,v:o*100}},hg=function(t,e,n){t=nd(t,360)*6,e=nd(e,100),n=nd(n,100);const r=Math.floor(t),i=t-r,a=n*(1-e),o=n*(1-i*e),s=n*(1-(1-i)*e),l=r%6,u=[n,o,a,a,s,n][l],c=[s,n,n,o,a,a][l],f=[a,a,s,n,n,o][l];return{r:Math.round(u*255),g:Math.round(c*255),b:Math.round(f*255)}};class pg{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)Ab(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)Ab(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 hg(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,a)=>{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,a)),this.doOnChange()};if(e.includes("hsl")){const r=e.replace(/hsla|hsl|\(|\)/gm,"").split(/\s|,/g).filter(i=>i!=="").map((i,a)=>a>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:a,v:o}=$Ae(r[0],r[1],r[2]);n(i,a,o)}}else if(e.includes("hsv")){const r=e.replace(/hsva|hsv|\(|\)/gm,"").split(/\s|,/g).filter(i=>i!=="").map((i,a)=>a>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,a)=>a>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:a,v:o}=KF(r[0],r[1],r[2]);n(i,a,o)}}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,a,o;r.length===3?(i=Pu(r[0]+r[0]),a=Pu(r[1]+r[1]),o=Pu(r[2]+r[2])):(r.length===6||r.length===8)&&(i=Pu(r.slice(0,2)),a=Pu(r.slice(2,4)),o=Pu(r.slice(4,6))),r.length===8?this._alpha=Pu(r.slice(6))/255*100:(r.length===3||r.length===6)&&(this._alpha=100);const{h:s,s:l,v:u}=KF(i,a,o);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:a}=this;if(this.enableAlpha)switch(a){case"hsl":{const o=XF(e,n/100,r/100);this.value=`hsla(${e}, ${Math.round(o[1]*100)}%, ${Math.round(o[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=`${qF(hg(e,n,r))}${Hb(i*255/100)}`;break}default:{const{r:o,g:s,b:l}=hg(e,n,r);this.value=`rgba(${o}, ${s}, ${l}, ${this.get("alpha")/100})`}}else switch(a){case"hsl":{const o=XF(e,n/100,r/100);this.value=`hsl(${e}, ${Math.round(o[1]*100)}%, ${Math.round(o[2]*100)}%)`;break}case"hsv":{this.value=`hsv(${e}, ${Math.round(n)}%, ${Math.round(r)}%)`;break}case"rgb":{const{r:o,g:s,b:l}=hg(e,n,r);this.value=`rgb(${o}, ${s}, ${l})`;break}default:this.value=qF(hg(e,n,r))}}}const AAe=p.defineComponent({props:{colors:{type:Array,required:!0},color:{type:Object,required:!0},enableAlpha:{type:Boolean,required:!0}},setup(t){const e=xn("color-predefine"),{currentColor:n}=p.inject(UF),r=p.ref(a(t.colors,t.color));p.watch(()=>n.value,o=>{const s=new pg;s.fromString(o),r.value.forEach(l=>{l.selected=s.compare(l)})}),p.watchEffect(()=>{r.value=a(t.colors,t.color)});function i(o){t.color.fromString(t.colors[o])}function a(o,s){return o.map(l=>{const u=new pg;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}}}),EAe=["onClick"];function MAe(t,e,n,r,i,a){return p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(t.ns.b())},[p.createElementVNode("div",{class:p.normalizeClass(t.ns.e("colors"))},[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(t.rgbaColors,(o,s)=>(p.openBlock(),p.createElementBlock("div",{key:t.colors[s],class:p.normalizeClass([t.ns.e("color-selector"),t.ns.is("alpha",o._alpha<100),{selected:o.selected}]),onClick:l=>t.handleSelect(s)},[p.createElementVNode("div",{style:p.normalizeStyle({backgroundColor:o.value})},null,4)],10,EAe))),128))],2)],2)}var IAe=pn(AAe,[["render",MAe],["__file","predefine.vue"]]);const DAe=p.defineComponent({name:"ElSlPanel",props:{color:{type:Object,required:!0}},setup(t){const e=xn("color-svpanel"),n=p.getCurrentInstance(),r=p.ref(0),i=p.ref(0),a=p.ref("hsl(0, 100%, 50%)"),o=p.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:h}=f;i.value=u*d/100,r.value=(100-c)*h/100,a.value=`hsl(${t.color.get("hue")}, 100%, 50%)`}function l(u){const f=n.vnode.el.getBoundingClientRect(),{clientX:d,clientY:h}=PP(u);let g=d-f.left,v=h-f.top;g=Math.max(0,g),g=Math.min(g,f.width),v=Math.max(0,v),v=Math.min(v,f.height),i.value=g,r.value=v,t.color.set({saturation:g/f.width*100,value:100-v/f.height*100})}return p.watch(()=>o.value,()=>{s()}),p.onMounted(()=>{dg(n.vnode.el,{drag:u=>{l(u)},end:u=>{l(u)}}),s()}),{cursorTop:r,cursorLeft:i,background:a,colorValue:o,handleDrag:l,update:s,ns:e}}}),RAe=[p.createElementVNode("div",null,null,-1)];function kAe(t,e,n,r,i,a){return p.openBlock(),p.createElementBlock("div",{class:p.normalizeClass(t.ns.b()),style:p.normalizeStyle({backgroundColor:t.background})},[p.createElementVNode("div",{class:p.normalizeClass(t.ns.e("white"))},null,2),p.createElementVNode("div",{class:p.normalizeClass(t.ns.e("black"))},null,2),p.createElementVNode("div",{class:p.normalizeClass(t.ns.e("cursor")),style:p.normalizeStyle({top:t.cursorTop+"px",left:t.cursorLeft+"px"})},RAe,6)],6)}var NAe=pn(DAe,[["render",kAe],["__file","sv-panel.vue"]]);const LAe=["onKeydown"],VAe=["id","aria-label","aria-labelledby","aria-description","aria-disabled","tabindex"],BAe=p.defineComponent({name:"ElColorPicker"}),zAe=p.defineComponent({...BAe,props:wAe,emits:CAe,setup(t,{expose:e,emit:n}){const r=t,{t:i}=nPe(),a=xn("color"),{formItem:o}=Bb(),s=Vb(),l=cg(),{inputId:u,isLabeledByFormItem:c}=jP(r,{formItemContext:o}),f=p.ref(),d=p.ref(),h=p.ref(),g=p.ref(),v=p.ref(),m=p.ref(),{isFocused:y,handleFocus:b,handleBlur:_}=mF(v,{beforeBlur(W){var Q;return(Q=g.value)==null?void 0:Q.isFocusInsideContent(W)},afterBlur(){R(!1),z()}}),O=W=>{if(l.value)return G();b(W)};let S=!0;const x=p.reactive(new pg({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue})),w=p.ref(!1),T=p.ref(!1),P=p.ref(""),C=p.computed(()=>!r.modelValue&&!T.value?"transparent":M(x,r.showAlpha)),$=p.computed(()=>!r.modelValue&&!T.value?"":x.value),A=p.computed(()=>c.value?void 0:r.label||r.ariaLabel||i("el.colorpicker.defaultLabel"));eg({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-color-picker",ref:"https://element-plus.org/en-US/component/color-picker.html"},p.computed(()=>!!r.label));const E=p.computed(()=>c.value?o==null?void 0:o.labelId:void 0),D=p.computed(()=>[a.b("picker"),a.is("disabled",l.value),a.bm("picker",s.value),a.is("focused",y.value)]);function M(W,Q){if(!(W instanceof pg))throw new TypeError("color should be instance of _color Class");const{r:J,g:ae,b:oe}=W.toRgb();return Q?`rgba(${J}, ${ae}, ${oe}, ${W.get("alpha")/100})`:`rgb(${J}, ${ae}, ${oe})`}function R(W){w.value=W}const N=jC(R,100,{leading:!0});function V(){l.value||R(!0)}function L(){N(!1),z()}function z(){p.nextTick(()=>{r.modelValue?x.fromString(r.modelValue):(x.value="",p.nextTick(()=>{T.value=!1}))})}function B(){l.value||N(!w.value)}function F(){x.fromString(P.value)}function j(){const W=x.value;n(Jo,W),n("change",W),r.validateEvent&&(o==null||o.validate("change").catch(Q=>li(Q))),N(!1),p.nextTick(()=>{const Q=new pg({enableAlpha:r.showAlpha,format:r.colorFormat||"",value:r.modelValue});x.compare(Q)||z()})}function K(){N(!1),n(Jo,null),n("change",null),r.modelValue!==null&&r.validateEvent&&(o==null||o.validate("change").catch(W=>li(W))),z()}function q(W){if(w.value&&(L(),y.value)){const Q=new FocusEvent("focus",W);_(Q)}}function te(W){W.preventDefault(),W.stopPropagation(),R(!1),z()}function X(W){switch(W.code){case wu.enter:case wu.space:W.preventDefault(),W.stopPropagation(),V(),m.value.focus();break;case wu.esc:te(W);break}}function ee(){v.value.focus()}function G(){v.value.blur()}return p.onMounted(()=>{r.modelValue&&(P.value=$.value)}),p.watch(()=>r.modelValue,W=>{W?W&&W!==x.value&&(S=!1,x.fromString(W)):T.value=!1}),p.watch(()=>$.value,W=>{P.value=W,S&&n("activeChange",W),S=!0}),p.watch(()=>x.value,()=>{!r.modelValue&&!T.value&&(T.value=!0)}),p.watch(()=>w.value,()=>{p.nextTick(()=>{var W,Q,J;(W=f.value)==null||W.update(),(Q=d.value)==null||Q.update(),(J=h.value)==null||J.update()})}),p.provide(UF,{currentColor:$}),e({color:x,show:V,hide:L,focus:ee,blur:G}),(W,Q)=>(p.openBlock(),p.createBlock(p.unref(H2e),{ref_key:"popper",ref:g,visible:w.value,"show-arrow":!1,"fallback-placements":["bottom","top","right","left"],offset:0,"gpu-acceleration":!1,"popper-class":[p.unref(a).be("picker","panel"),p.unref(a).b("dropdown"),W.popperClass],"stop-popper-mouse-event":!1,effect:"light",trigger:"click",teleported:W.teleported,transition:`${p.unref(a).namespace.value}-zoom-in-top`,persistent:"",onHide:Q[2]||(Q[2]=J=>R(!1))},{content:p.withCtx(()=>[p.withDirectives((p.openBlock(),p.createElementBlock("div",{onKeydown:p.withKeys(te,["esc"])},[p.createElementVNode("div",{class:p.normalizeClass(p.unref(a).be("dropdown","main-wrapper"))},[p.createVNode(xAe,{ref_key:"hue",ref:f,class:"hue-slider",color:p.unref(x),vertical:""},null,8,["color"]),p.createVNode(NAe,{ref_key:"sv",ref:d,color:p.unref(x)},null,8,["color"])],2),W.showAlpha?(p.openBlock(),p.createBlock(_Ae,{key:0,ref_key:"alpha",ref:h,color:p.unref(x)},null,8,["color"])):p.createCommentVNode("v-if",!0),W.predefine?(p.openBlock(),p.createBlock(IAe,{key:1,ref:"predefine","enable-alpha":W.showAlpha,color:p.unref(x),colors:W.predefine},null,8,["enable-alpha","color","colors"])):p.createCommentVNode("v-if",!0),p.createElementVNode("div",{class:p.normalizeClass(p.unref(a).be("dropdown","btns"))},[p.createElementVNode("span",{class:p.normalizeClass(p.unref(a).be("dropdown","value"))},[p.createVNode(p.unref(GP),{ref_key:"inputRef",ref:m,modelValue:P.value,"onUpdate:modelValue":Q[0]||(Q[0]=J=>P.value=J),"validate-event":!1,size:"small",onKeyup:p.withKeys(F,["enter"]),onBlur:F},null,8,["modelValue","onKeyup"])],2),p.createVNode(p.unref(VF),{class:p.normalizeClass(p.unref(a).be("dropdown","link-btn")),text:"",size:"small",onClick:K},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(p.unref(i)("el.colorpicker.clear")),1)]),_:1},8,["class"]),p.createVNode(p.unref(VF),{plain:"",size:"small",class:p.normalizeClass(p.unref(a).be("dropdown","btn")),onClick:j},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(p.unref(i)("el.colorpicker.confirm")),1)]),_:1},8,["class"])],2)],40,LAe)),[[p.unref(eAe),q]])]),default:p.withCtx(()=>[p.createElementVNode("div",p.mergeProps({id:p.unref(u),ref_key:"triggerRef",ref:v},W.$attrs,{class:p.unref(D),role:"button","aria-label":p.unref(A),"aria-labelledby":p.unref(E),"aria-description":p.unref(i)("el.colorpicker.description",{color:W.modelValue||""}),"aria-disabled":p.unref(l),tabindex:p.unref(l)?-1:W.tabindex,onKeydown:X,onFocus:O,onBlur:Q[1]||(Q[1]=(...J)=>p.unref(_)&&p.unref(_)(...J))}),[p.unref(l)?(p.openBlock(),p.createElementBlock("div",{key:0,class:p.normalizeClass(p.unref(a).be("picker","mask"))},null,2)):p.createCommentVNode("v-if",!0),p.createElementVNode("div",{class:p.normalizeClass(p.unref(a).be("picker","trigger")),onClick:B},[p.createElementVNode("span",{class:p.normalizeClass([p.unref(a).be("picker","color"),p.unref(a).is("alpha",W.showAlpha)])},[p.createElementVNode("span",{class:p.normalizeClass(p.unref(a).be("picker","color-inner")),style:p.normalizeStyle({backgroundColor:p.unref(C)})},[p.withDirectives(p.createVNode(p.unref(ts),{class:p.normalizeClass([p.unref(a).be("picker","icon"),p.unref(a).is("icon-arrow-down")])},{default:p.withCtx(()=>[p.createVNode(p.unref(ITe))]),_:1},8,["class"]),[[p.vShow,W.modelValue||T.value]]),p.withDirectives(p.createVNode(p.unref(ts),{class:p.normalizeClass([p.unref(a).be("picker","empty"),p.unref(a).is("icon-close")])},{default:p.withCtx(()=>[p.createVNode(p.unref(LTe))]),_:1},8,["class"]),[[p.vShow,!W.modelValue&&!T.value]])],6)],2)],2)],16,VAe)]),_:1},8,["visible","popper-class","teleported","transition"]))}});var FAe=pn(zAe,[["__file","color-picker.vue"]]);const rd=xu(FAe),JF=t=>(p.pushScopeId("data-v-70598cf2"),t=t(),p.popScopeId(),t),WAe={key:0,class:"color-box"},QAe={class:"img-preview"},HAe=JF(()=>p.createElementVNode("div",{class:"img-empty"},"未选择",-1)),jAe=JF(()=>p.createElementVNode("div",{class:"img-tip"},"选择素材",-1)),GAe=p.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=p.ref(n.value),a=[{label:"无",value:"none"},{label:"颜色",value:"color"},{label:"图片",value:"image"}],o=p.computed(()=>n.filterOptions?a.filter(l=>{var u;return!((u=n.filterOptions)!=null&&u.includes(l.value))}):a);p.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)=>(p.openBlock(),p.createElementBlock(p.Fragment,null,[p.createVNode(p.unref(Nr),{value:i.value.type,"onUpdate:value":u[0]||(u[0]=c=>i.value.type=c),style:{width:"100%"},options:o.value,onChange:s},null,8,["value","options"]),i.value.type==="color"?(p.openBlock(),p.createElementBlock("div",WAe,[p.createVNode(p.unref(rd),{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"]),p.createVNode(p.unref(GP),{modelValue:i.value.color,"onUpdate:modelValue":u[2]||(u[2]=c=>i.value.color=c),size:"small"},null,8,["modelValue"])])):i.value.type==="image"?(p.openBlock(),p.createElementBlock(p.Fragment,{key:1},[p.createElementVNode("div",QAe,[HAe,p.createVNode(p.unref(Ws),{src:i.value.image},null,8,["src"]),jAe]),p.createVNode(p.unref(ZF),{modelValue:i.value.fillType,"onUpdate:modelValue":u[3]||(u[3]=c=>i.value.fillType=c)},{default:p.withCtx(()=>[p.createVNode(p.unref(fg),{value:"cover"},{default:p.withCtx(()=>[p.createTextVNode("填充")]),_:1}),p.createVNode(p.unref(fg),{value:"contain"},{default:p.withCtx(()=>[p.createTextVNode("适应")]),_:1}),p.createVNode(p.unref(fg),{value:"stretch"},{default:p.withCtx(()=>[p.createTextVNode("拉伸")]),_:1})]),_:1},8,["modelValue"])],64)):p.createCommentVNode("",!0)],64))}}),_a=(t,e)=>{const n=t.__vccOpts||t;for(const[r,i]of e)n[r]=i;return n},ZAe=_a(GAe,[["__scopeId","data-v-70598cf2"]]),UAe=_a(p.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=p.ref(((s=r.value)==null?void 0:s.length)<=9||!r.value?"pure":"gradient"),a=p.ref(r.value),o=p.ref(((l=r.value)==null?void 0:l.length)>=9?r.value.slice(22).replace(")","").split(","):["#4ba9ff","#fff"]);return p.watch(()=>[i.value,a.value,o.value],()=>{i.value==="pure"?a.value=a.value.length>9?"#FFFFFFFF":a.value:a.value=`linear-gradient(90deg, ${o.value.join(",")})`,n("update:value",a.value)},{deep:!0}),p.watch(()=>r.gradient,u=>{u||(i.value="pure",a.value=a.value.length>9?"#FFFFFFFF":a.value)}),(u,c)=>(p.openBlock(),p.createElementBlock(p.Fragment,null,[u.gradient?(p.openBlock(),p.createBlock(p.unref(ZF),{key:0,modelValue:i.value,"onUpdate:modelValue":c[0]||(c[0]=f=>i.value=f),size:"small",style:{width:"100%"}},{default:p.withCtx(()=>[p.createVNode(p.unref(fg),{value:"pure"},{default:p.withCtx(()=>[p.createTextVNode("单色")]),_:1}),p.createVNode(p.unref(fg),{value:"gradient"},{default:p.withCtx(()=>[p.createTextVNode("渐变色")]),_:1})]),_:1},8,["modelValue"])):p.createCommentVNode("",!0),i.value==="pure"?(p.openBlock(),p.createElementBlock("div",{key:1,class:"color-box",style:p.normalizeStyle({marginTop:u.gradient?"12px":"0"})},[p.createVNode(p.unref(rd),{modelValue:a.value,"onUpdate:modelValue":c[1]||(c[1]=f=>a.value=f),"color-format":"hex","show-alpha":"",size:"small"},null,8,["modelValue"]),p.createVNode(p.unref(GP),{modelValue:a.value,"onUpdate:modelValue":c[2]||(c[2]=f=>a.value=f),size:"small"},null,8,["modelValue"])],4)):i.value==="gradient"?(p.openBlock(),p.createElementBlock("div",{key:2,class:"gradient-box",style:p.normalizeStyle({background:a.value})},[p.createVNode(p.unref(rd),{modelValue:o.value[0],"onUpdate:modelValue":c[3]||(c[3]=f=>o.value[0]=f),"color-format":"hex","show-alpha":"",size:"small"},null,8,["modelValue"]),p.createVNode(p.unref(rd),{modelValue:o.value[1],"onUpdate:modelValue":c[4]||(c[4]=f=>o.value[1]=f),"color-format":"hex","show-alpha":"",size:"small"},null,8,["modelValue"])],4)):p.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-d5768739"]]),jb=[{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"]}],XAe={color:jb[0].color,title:{show:!0,left:"center",top:8,textStyle:{color:"#FFFFFFFF",fontSize:16,fontWeight:"normal"}},legend:{show:!0,textStyle:{color:"#FFFFFFFF"},top:32},grid:{bottom:34,right:20,left:50,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:"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",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:""}},YAe={class:"color-list"},qAe={class:"del-btn"},KAe=_a(p.defineComponent({__name:"ColorScheme",props:{value:{type:Array,default:()=>[]}},emits:["update:value"],setup(t,{emit:e}){const n=t,r=jb.map(d=>d.color.join(",")),i=e,a=p.ref(r.includes(n.value.join(","))?n.value.join(","):"custom"),o=p.ref(n.value),s=p.ref();function l(d){d==="custom"||(o.value=d.split(","),i("update:value",d.split(",")))}const u=()=>{var d;(d=s.value)==null||d.show()};function c(d){o.value.push(d),a.value="custom",i("update:value",o.value)}const f=d=>{o.value.splice(d,1),a.value="custom",i("update:value",o.value)};return(d,h)=>(p.openBlock(),p.createElementBlock("div",null,[p.createVNode(p.unref(Nr),{value:a.value,"onUpdate:value":h[0]||(h[0]=g=>a.value=g),size:"small",style:{width:"100%"},onChange:l},{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(p.unref(jb),g=>(p.openBlock(),p.createBlock(p.unref(Hy),{key:g.name,value:g.color.join(",")},{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(g.color.slice(0,5),v=>(p.openBlock(),p.createElementBlock("span",{class:"color-block",key:v,style:p.normalizeStyle({background:v})},null,4))),128)),p.createTextVNode(" "+p.toDisplayString(g.name),1)]),_:2},1032,["value"]))),128)),p.createVNode(p.unref(Hy),{value:"custom"},{default:p.withCtx(()=>[p.createTextVNode("自定义组合")]),_:1})]),_:1},8,["value"]),p.createElementVNode("div",YAe,[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(o.value,(g,v)=>(p.openBlock(),p.createElementBlock("span",{class:"color-block",key:v,style:p.normalizeStyle({background:g})},[p.createElementVNode("span",qAe,[p.createVNode(p.unref(Ai),{onClick:m=>f(v)},null,8,["onClick"])])],4))),128)),p.createElementVNode("span",{class:"color-block cus-btn",onClick:u},[p.createVNode(p.unref(cb))]),p.createVNode(p.unref(rd),{ref_key:"colorPickerRef",ref:s,style:{width:"0",height:"0",opacity:"0"},onChange:c},null,512)])]))}}),[["__scopeId","data-v-b29b1b78"]]),JAe={class:"position"},eEe=_a(p.defineComponent({__name:"Position",props:{value:{},type:{default:"line"}},emits:["update:value"],setup(t){return(e,n)=>(p.openBlock(),p.createElementBlock("div",JAe,[e.type==="line"?(p.openBlock(),p.createBlock(p.unref(gu),{key:0,value:e.value,onChange:n[0]||(n[0]=r=>e.$emit("update:value",r.target.value))},{default:p.withCtx(()=>[p.createVNode(p.unref(qa),{value:"left"},{default:p.withCtx(()=>[p.createVNode(p.unref(dP))]),_:1}),p.createVNode(p.unref(qa),{value:"center"},{default:p.withCtx(()=>[p.createVNode(p.unref(fP))]),_:1}),p.createVNode(p.unref(qa),{value:"right"},{default:p.withCtx(()=>[p.createVNode(p.unref(hP))]),_:1})]),_:1},8,["value"])):e.type==="round"?(p.openBlock(),p.createBlock(p.unref(gu),{key:1,value:e.value,onChange:n[1]||(n[1]=r=>e.$emit("update:value",r.target.value))},{default:p.withCtx(()=>[p.createVNode(p.unref(qa),{value:"top"},{default:p.withCtx(()=>[p.createVNode(p.unref(yP))]),_:1}),p.createVNode(p.unref(qa),{value:"bottom"},{default:p.withCtx(()=>[p.createVNode(p.unref(gP))]),_:1}),p.createVNode(p.unref(qa),{value:"left"},{default:p.withCtx(()=>[p.createVNode(p.unref(vP))]),_:1}),p.createVNode(p.unref(qa),{value:"right"},{default:p.withCtx(()=>[p.createVNode(p.unref(mP))]),_:1})]),_:1},8,["value"])):p.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-a4b8591a"]]),tEe={class:"font-style"},nEe={class:"cus-btn"},rEe=_a(p.defineComponent({__name:"FontStyle",props:{value:{}},emits:["update:value"],setup(t,{emit:e}){var v,m,y,b;const n=t,r=e,i=p.ref((v=n.value)==null?void 0:v.bold),a=p.ref((m=n.value)==null?void 0:m.italic),o=p.ref((y=n.value)==null?void 0:y.size),s=p.ref((b=n.value)==null?void 0:b.color),l=p.ref(),u=()=>{r("update:value",{size:o.value,bold:i.value,italic:a.value,color:s.value})},c=()=>{i.value=!i.value,u()},f=()=>{a.value=!a.value,u()};function d(_){s.value=_,u()}function h(_){o.value=_,u()}const g=()=>{var _;(_=l.value)==null||_.show()};return(_,O)=>(p.openBlock(),p.createElementBlock("div",tEe,[p.createVNode(p.unref(gr),{size:"small",onClick:g},{default:p.withCtx(()=>[p.createElementVNode("span",nEe,[p.createVNode(p.unref(bP)),p.createElementVNode("div",{class:"color-block",style:p.normalizeStyle({background:s.value})},null,4),p.createVNode(p.unref(rd),{ref_key:"colorPickerRef",ref:l,style:{width:"0",height:"0",opacity:"0"},value:s.value,"onUpdate:value":O[0]||(O[0]=S=>s.value=S),onChange:d},null,8,["value"])])]),_:1}),p.createVNode(p.unref(gr),{size:"small",onClick:c},{default:p.withCtx(()=>[p.createElementVNode("span",{class:p.normalizeClass(["cus-btn",{"active-btn":i.value}])},[p.createVNode(p.unref(pP))],2)]),_:1}),p.createVNode(p.unref(gr),{size:"small",onClick:f},{default:p.withCtx(()=>[p.createElementVNode("span",{class:p.normalizeClass(["cus-btn",{"active-btn":a.value}])},[p.createVNode(p.unref(_P))],2)]),_:1}),p.createVNode(p.unref(Hp),{size:"small",value:o.value,min:12,step:1,precision:0,style:{width:"80px"},onChange:h},{addonAfter:p.withCtx(()=>[p.createTextVNode("px")]),_:1},8,["value"])]))}}),[["__scopeId","data-v-12e62bfe"]]),iEe={class:"cus-slider"},aEe=_a(p.defineComponent({__name:"CusSlider",props:{value:{}},emits:["update:value"],setup(t){return(e,n)=>(p.openBlock(),p.createElementBlock("div",iEe,[p.createVNode(p.unref(MCe),{value:e.value,onChange:n[0]||(n[0]=r=>e.$emit("update:value",r)),"tip-formatter":r=>`${r}%`},null,8,["value","tip-formatter"]),p.createVNode(p.unref(Hp),{value:e.value,onChange:n[1]||(n[1]=r=>e.$emit("update:value",r)),"addon-after":"%"},null,8,["value"])]))}}),[["__scopeId","data-v-2fe8fa98"]]),oEe=p.defineComponent({name:"FmBorderRadius",components:{RadioGroup:gu,RadioButton:qa,InputNumber:Hp,Select:Nr,RadiusUpleftOutlined:xP,RadiusUprightOutlined:wP,RadiusBottomleftOutlined:OP,RadiusBottomrightOutlined:SP},props:{value:{type:Object,default:()=>({})}},emits:["update:value"],setup(t,{emit:e}){var r,i,a,o;const n=p.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"?(a=t.value.value)==null?void 0:a.bottomLeft:0,bottomRight:typeof t.value.value=="object"?(o=t.value.value)==null?void 0:o.bottomRight:0});return p.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:"%"}]}}}),sEe={key:0,class:"all"},lEe={key:1,class:"custom"};function uEe(t,e,n,r,i,a){const o=p.resolveComponent("RadioButton"),s=p.resolveComponent("RadioGroup"),l=p.resolveComponent("InputNumber"),u=p.resolveComponent("Select"),c=p.resolveComponent("RadiusUpleftOutlined"),f=p.resolveComponent("RadiusUprightOutlined"),d=p.resolveComponent("RadiusBottomleftOutlined"),h=p.resolveComponent("RadiusBottomrightOutlined");return p.openBlock(),p.createElementBlock("div",null,[p.createVNode(s,{value:t.radius.type,"onUpdate:value":e[0]||(e[0]=g=>t.radius.type=g)},{default:p.withCtx(()=>[p.createVNode(o,{value:"all"},{default:p.withCtx(()=>[p.createTextVNode("整体")]),_:1}),p.createVNode(o,{value:"custom"},{default:p.withCtx(()=>[p.createTextVNode("单个")]),_:1})]),_:1},8,["value"]),t.radius.type==="all"?(p.openBlock(),p.createElementBlock("div",sEe,[p.createVNode(l,{value:t.radius.value,"onUpdate:value":e[1]||(e[1]=g=>t.radius.value=g)},null,8,["value"]),p.createVNode(u,{value:t.radius.unit,"onUpdate:value":e[2]||(e[2]=g=>t.radius.unit=g),options:t.unitOptions},null,8,["value","options"])])):(p.openBlock(),p.createElementBlock("div",lEe,[p.createVNode(l,{value:t.radius.topLeft,"onUpdate:value":e[3]||(e[3]=g=>t.radius.topLeft=g)},{addonBefore:p.withCtx(()=>[p.createVNode(c)]),_:1},8,["value"]),p.createVNode(l,{value:t.radius.topRight,"onUpdate:value":e[4]||(e[4]=g=>t.radius.topRight=g)},{addonBefore:p.withCtx(()=>[p.createVNode(f)]),_:1},8,["value"]),p.createVNode(l,{value:t.radius.bottomLeft,"onUpdate:value":e[5]||(e[5]=g=>t.radius.bottomLeft=g)},{addonBefore:p.withCtx(()=>[p.createVNode(d)]),_:1},8,["value"]),p.createVNode(l,{value:t.radius.bottomRight,"onUpdate:value":e[6]||(e[6]=g=>t.radius.bottomRight=g)},{addonBefore:p.withCtx(()=>[p.createVNode(h)]),_:1},8,["value"]),p.createVNode(u,{value:t.radius.unit,"onUpdate:value":e[7]||(e[7]=g=>t.radius.unit=g),options:t.unitOptions},null,8,["value","options"])]))])}const cEe=_a(oEe,[["render",uEe],["__scopeId","data-v-da2b5cf6"]]),fEe=_a(p.defineComponent({__name:"CusFormItem",props:{item:{},modelValue:{}},emits:["update:modelValue"],setup(t,{emit:e}){const n=t,r=e,i=p.ref(n.modelValue);return p.watch(()=>i.value,()=>{r("update:modelValue",i.value)},{deep:!0}),p.watch(()=>n.modelValue,a=>{_y(a,i.value)||(i.value=a)}),(a,o)=>(p.openBlock(),p.createBlock(p.unref(b6),{label:a.item.type!=="divider"?a.item.label:"",name:a.item.prop,rules:a.item.rules},{default:p.withCtx(()=>{var s,l,u,c,f,d,h,g,v,m,y;return[a.item.type==="divider"?(p.openBlock(),p.createBlock(p.unref($xe),{key:0,style:{margin:"0"}},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(a.item.label),1)]),_:1})):a.item.type==="input"?(p.openBlock(),p.createBlock(p.unref(On),p.mergeProps({key:1,value:i.value,"onUpdate:value":o[0]||(o[0]=b=>i.value=b)},(s=a.item)==null?void 0:s.fieldProps),null,16,["value"])):a.item.type==="select"?(p.openBlock(),p.createBlock(p.unref(Nr),p.mergeProps({key:2,value:i.value,"onUpdate:value":o[1]||(o[1]=b=>i.value=b)},(l=a.item)==null?void 0:l.fieldProps),null,16,["value"])):a.item.type==="inputNumber"?(p.openBlock(),p.createBlock(p.unref(Hp),p.mergeProps({key:3,value:i.value,"onUpdate:value":o[2]||(o[2]=b=>i.value=b)},(u=a.item)==null?void 0:u.fieldProps,{style:{width:"100%"}}),null,16,["value"])):a.item.type==="image"?(p.openBlock(),p.createBlock(p.unref(Ws),p.mergeProps({key:4,value:i.value,"onUpdate:value":o[3]||(o[3]=b=>i.value=b)},(c=a.item)==null?void 0:c.fieldProps),null,16,["value"])):a.item.type==="checkboxGroup"?(p.openBlock(),p.createBlock(p.unref(mb),p.mergeProps({key:5,value:i.value,"onUpdate:value":o[4]||(o[4]=b=>i.value=b)},(f=a.item)==null?void 0:f.fieldProps),null,16,["value"])):a.item.type==="backgroundSelect"?(p.openBlock(),p.createBlock(ZAe,p.mergeProps({key:6,value:i.value,"onUpdate:value":o[5]||(o[5]=b=>i.value=b)},(d=a.item)==null?void 0:d.fieldProps),null,16,["value"])):a.item.type==="colorSelect"?(p.openBlock(),p.createBlock(UAe,p.mergeProps({key:7,value:i.value,"onUpdate:value":o[6]||(o[6]=b=>i.value=b)},(h=a.item)==null?void 0:h.fieldProps),null,16,["value"])):a.item.type==="colorScheme"?(p.openBlock(),p.createBlock(KAe,p.mergeProps({key:8,value:i.value,"onUpdate:value":o[7]||(o[7]=b=>i.value=b)},(g=a.item)==null?void 0:g.fieldProps),null,16,["value"])):a.item.type==="radioGroup"?(p.openBlock(),p.createBlock(p.unref(gu),p.mergeProps({key:9,value:i.value,"onUpdate:value":o[8]||(o[8]=b=>i.value=b),size:"small"},(v=a.item)==null?void 0:v.fieldProps),null,16,["value"])):a.item.type==="radioGroupButton"?(p.openBlock(),p.createBlock(p.unref(gu),{key:10,value:i.value,"onUpdate:value":o[9]||(o[9]=b=>i.value=b),size:"small"},{default:p.withCtx(()=>[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(a.item.fieldProps.options,b=>(p.openBlock(),p.createBlock(p.unref(qa),{key:b.value,value:b.value},{default:p.withCtx(()=>[p.createTextVNode(p.toDisplayString(b.label),1)]),_:2},1032,["value"]))),128))]),_:1},8,["value"])):a.item.type==="position"?(p.openBlock(),p.createBlock(eEe,p.mergeProps({key:11,value:i.value,"onUpdate:value":o[10]||(o[10]=b=>i.value=b)},(m=a.item)==null?void 0:m.fieldProps),null,16,["value"])):a.item.type==="fontStyle"?(p.openBlock(),p.createBlock(rEe,p.mergeProps({key:12,value:i.value,"onUpdate:value":o[11]||(o[11]=b=>i.value=b)},(y=a.item)==null?void 0:y.fieldProps),null,16,["value"])):a.item.type==="slider"?(p.openBlock(),p.createBlock(p.unref(Pp),{key:13},{default:p.withCtx(()=>{var b;return[p.createVNode(aEe,p.mergeProps({value:i.value,"onUpdate:value":o[12]||(o[12]=_=>i.value=_)},(b=a.item)==null?void 0:b.fieldProps),null,16,["value"])]}),_:1})):a.item.type==="boderRadiusSelect"?(p.openBlock(),p.createBlock(p.unref(Pp),{key:14},{default:p.withCtx(()=>{var b;return[p.createVNode(cEe,p.mergeProps({value:i.value,"onUpdate:value":o[13]||(o[13]=_=>i.value=_)},(b=a.item)==null?void 0:b.fieldProps),null,16,["value"])]}),_:1})):p.createCommentVNode("",!0),a.item.tip?(p.openBlock(),p.createBlock(p.unref(Uy),{key:15,title:a.item.tip},{default:p.withCtx(()=>[p.createVNode(p.unref(jy),{style:{color:"#666"}})]),_:1},8,["title"])):p.createCommentVNode("",!0)]}),_:1},8,["label","name","rules"]))}}),[["__scopeId","data-v-04c55003"]]),gg=p.defineComponent({props:{columns:{type:Array,default:()=>[]},formModel:{type:Object,default:()=>({})}},emits:["change"],setup(t,{emit:e}){const n=p.ref({}),r=p.ref(),i=p.ref({}),a=p.computed(()=>t.columns.map(f=>({...f,rules:(f==null?void 0:f.rules)||[]}))),o=f=>{f==null||f.forEach(d=>{var h;if(d.type==="group")o(d.children);else if(d.type==="dependency"){const g=(h=d.children)==null?void 0:h.call(d,Mp(n.value,d.name||[]),n);o(g)}else{if(d.type==="divider")return;const g=gt(t.formModel,d.prop);n.value[d.prop]=d!=null&&d.valueToForm?d.valueToForm(g,t.formModel):g??d.defaultValue,d.format?d.format(i,n.value[d.prop]):i.value[d.prop]=g??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 h=(d=f.children)==null?void 0:d.call(f,Mp(n.value,f.name||[]),n);return o(h),c(h)}case"group":return u(f);default:return React.createElement(fEe,{key:f.prop,item:f,modelValue:n.value[f.prop],"onUpdate:modelValue":h=>{s(h,f)}})}},u=f=>{var d;return React.createElement(Rp,{style:{borderRadius:0}},React.createElement(fb,{style:{borderRadius:0},key:f.prop,header:f.label},(d=f.children)==null?void 0:d.map(h=>l(h))))},c=f=>f.map(d=>{switch(d.type){case"group":return u(d);default:return l(d)}});return p.watch(()=>a.value,f=>{f&&o(f)},{immediate:!0}),()=>React.createElement(Qn,{model:n,colon:!1,"label-col":{span:8},ref:r,layout:"horizontal",size:"small"},c(a.value))}}),eW=p.defineComponent({__name:"Config",props:Jx,emits:["change"],setup(t,{emit:e}){const n=t,r=e,i=p.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"}]}}]),a=o=>{r("change",o)};return(o,s)=>(p.openBlock(),p.createBlock(p.unref(gg),p.mergeProps({columns:i.value},o.$attrs,{onChange:a}),null,16,["columns"]))}});sf.Config=eW,sf.install=t=>(t.component("FmDashboardTitle",sf),t);const dEe=Object.freeze(Object.defineProperty({__proto__:null,Config:eW,default:sf,defaultPropsValue:Mse,titleProps:Jx},Symbol.toStringTag,{value:"Module"}));/*! *****************************************************************************
  278. Copyright (c) Microsoft Corporation.
  279. Permission to use, copy, modify, and/or distribute this software for any
  280. purpose with or without fee is hereby granted.
  281. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
  282. REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  283. AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
  284. INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  285. LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  286. OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  287. PERFORMANCE OF THIS SOFTWARE.
  288. ***************************************************************************** */var i$=function(t,e){return i$=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])},i$(t,e)};function U(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");i$(t,e);function n(){this.constructor=t}t.prototype=e===null?Object.create(e):(n.prototype=e.prototype,new n)}var hEe=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),pEe=function(){function t(){this.browser=new hEe,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}(),$u=new pEe;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?($u.wxa=!0,$u.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?$u.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?($u.node=!0,$u.svgSupported=!0):gEe(navigator.userAgent,$u);function gEe(t,e){var n=e.browser,r=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),a=t.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(t);r&&(n.firefox=!0,n.version=r[1]),i&&(n.ie=!0,n.version=i[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(".")[0]>18),o&&(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 Je=$u;var a$=12,tW="sans-serif",Us=a$+"px "+tW,vEe=20,mEe=100,yEe="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function bEe(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)-vEe)/mEe;e[r]=i}return e}var _Ee=bEe(yEe),Oa={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var t,e;return function(n,r){if(!t){var i=Oa.createCanvas();t=i&&i.getContext("2d")}if(t)return e!==r&&(e=t.font=r||Us),t.measureText(n);n=n||"",r=r||Us;var a=/((?:\d+)?\.?\d*)px/.exec(r),o=a&&+a[1]||a$,s=0;if(r.indexOf("mono")>=0)s=o*n.length;else for(var l=0;l<n.length;l++){var u=_Ee[n[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(t,e,n){var r=new Image;return r.onload=e,r.onerror=n,r.src=t,r}};function nW(t){for(var e in Oa)t[e]&&(Oa[e]=t[e])}var rW=Vi(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(t,e){return t["[object "+e+"]"]=!0,t},{}),iW=Vi(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(t,e){return t["[object "+e+"Array]"]=!0,t},{}),id=Object.prototype.toString,Gb=Array.prototype,OEe=Gb.forEach,SEe=Gb.filter,o$=Gb.slice,xEe=Gb.map,aW=(function(){}).constructor,Zb=aW?aW.prototype:null,s$="__proto__",wEe=2311;function l$(){return wEe++}function Li(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];typeof console<"u"&&console.error.apply(console,t)}function $e(t){if(t==null||typeof t!="object")return t;var e=t,n=id.call(t);if(n==="[object Array]"){if(!ad(t)){e=[];for(var r=0,i=t.length;r<i;r++)e[r]=$e(t[r])}}else if(iW[n]){if(!ad(t)){var a=t.constructor;if(a.from)e=a.from(t);else{e=new a(t.length);for(var r=0,i=t.length;r<i;r++)e[r]=t[r]}}}else if(!rW[n]&&!ad(t)&&!Xs(t)){e={};for(var o in t)t.hasOwnProperty(o)&&o!==s$&&(e[o]=$e(t[o]))}return e}function Le(t,e,n){if(!we(e)||!we(t))return n?$e(e):t;for(var r in e)if(e.hasOwnProperty(r)&&r!==s$){var i=t[r],a=e[r];we(a)&&we(i)&&!re(a)&&!re(i)&&!Xs(a)&&!Xs(i)&&!c$(a)&&!c$(i)&&!ad(a)&&!ad(i)?Le(i,a,n):(n||!(r in t))&&(t[r]=$e(e[r]))}return t}function Ub(t,e){for(var n=t[0],r=1,i=t.length;r<i;r++)n=Le(n,t[r],e);return n}function ne(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==s$&&(t[n]=e[n]);return t}function Te(t,e,n){for(var r=Ue(e),i=0;i<r.length;i++){var a=r[i];(n?e[a]!=null:t[a]==null)&&(t[a]=e[a])}return t}var CEe=Oa.createCanvas;function Fe(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 u$(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 Kt(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 a=r[i];a!=="constructor"&&(n?e[a]!=null:t[a]==null)&&(t[a]=e[a])}else Te(t,e,n)}function jn(t){return!t||typeof t=="string"?!1:typeof t.length=="number"}function k(t,e,n){if(t&&e)if(t.forEach&&t.forEach===OEe)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 a in t)t.hasOwnProperty(a)&&e.call(n,t[a],a,t)}function ie(t,e,n){if(!t)return[];if(!e)return Xb(t);if(t.map&&t.map===xEe)return t.map(e,n);for(var r=[],i=0,a=t.length;i<a;i++)r.push(e.call(n,t[i],i,t));return r}function Vi(t,e,n,r){if(t&&e){for(var i=0,a=t.length;i<a;i++)n=e.call(r,n,t[i],i,t);return n}}function vt(t,e,n){if(!t)return[];if(!e)return Xb(t);if(t.filter&&t.filter===SEe)return t.filter(e,n);for(var r=[],i=0,a=t.length;i<a;i++)e.call(n,t[i],i,t)&&r.push(t[i]);return r}function oW(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 Ue(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 TEe(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return function(){return t.apply(e,n.concat(o$.call(arguments)))}}var ve=Zb&&xe(Zb.bind)?Zb.call.bind(Zb.bind):TEe;function ke(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(o$.call(arguments)))}}function re(t){return Array.isArray?Array.isArray(t):id.call(t)==="[object Array]"}function xe(t){return typeof t=="function"}function pe(t){return typeof t=="string"}function vg(t){return id.call(t)==="[object String]"}function it(t){return typeof t=="number"}function we(t){var e=typeof t;return e==="function"||!!t&&e==="object"}function c$(t){return!!rW[id.call(t)]}function rr(t){return!!iW[id.call(t)]}function Xs(t){return typeof t=="object"&&typeof t.nodeType=="number"&&typeof t.ownerDocument=="object"}function mg(t){return t.colorStops!=null}function sW(t){return t.image!=null}function f$(t){return id.call(t)==="[object RegExp]"}function Ys(t){return t!==t}function tn(){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 Re(t,e){return t??e}function ui(t,e,n){return t??e??n}function Xb(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return o$.apply(t,e)}function Yb(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 Pe(t,e){if(!t)throw new Error(e)}function Bi(t){return t==null?null:typeof t.trim=="function"?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var lW="__ec_primitive__";function yg(t){t[lW]=!0}function ad(t){return t[lW]}var PEe=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 Ue(this.data)},t.prototype.forEach=function(e){var n=this.data;for(var r in n)n.hasOwnProperty(r)&&e(n[r],r)},t}(),uW=typeof Map=="function";function $Ee(){return uW?new Map:new PEe}var cW=function(){function t(e){var n=re(e);this.data=$Ee();var r=this;e instanceof t?e.each(i):e&&k(e,i);function i(a,o){n?r.set(a,o):r.set(o,a)}}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 uW?Array.from(e):e},t.prototype.removeKey=function(e){this.data.delete(e)},t}();function be(t){return new cW(t)}function bg(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 _g(t,e){var n;if(Object.create)n=Object.create(t);else{var r=function(){};r.prototype=t,n=new r}return e&&ne(n,e),n}function d$(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function me(t,e){return t.hasOwnProperty(e)}function Jt(){}var Og=180/Math.PI;const AEe=Object.freeze(Object.defineProperty({__proto__:null,HashMap:cW,RADIAN_TO_DEGREE:Og,assert:Pe,bind:ve,clone:$e,concatArray:bg,createCanvas:CEe,createHashMap:be,createObject:_g,curry:ke,defaults:Te,disableUserSelect:d$,each:k,eqNaN:Ys,extend:ne,filter:vt,find:oW,guid:l$,hasOwn:me,indexOf:Fe,inherits:u$,isArray:re,isArrayLike:jn,isBuiltInObject:c$,isDom:Xs,isFunction:xe,isGradientObject:mg,isImagePatternObject:sW,isNumber:it,isObject:we,isPrimitive:ad,isRegExp:f$,isString:pe,isStringSafe:vg,isTypedArray:rr,keys:Ue,logError:Li,map:ie,merge:Le,mergeAll:Ub,mixin:Kt,noop:Jt,normalizeCssArray:Yb,reduce:Vi,retrieve:tn,retrieve2:Re,retrieve3:ui,setAsPrimitive:yg,slice:Xb,trim:Bi},Symbol.toStringTag,{value:"Module"}));function qs(t,e){return t==null&&(t=0),e==null&&(e=0),[t,e]}function ir(t,e){return t[0]=e[0],t[1]=e[1],t}function to(t){return[t[0],t[1]]}function fW(t,e,n){return t[0]=e,t[1]=n,t}function h$(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function qb(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function Ks(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function Sg(t){return Math.sqrt(p$(t))}var EEe=Sg;function p$(t){return t[0]*t[0]+t[1]*t[1]}var MEe=p$;function IEe(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function DEe(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function REe(t,e){return t[0]*e[0]+t[1]*e[1]}function xg(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function Au(t,e){var n=Sg(e);return n===0?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function Kb(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var ns=Kb;function dW(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var Js=dW;function kEe(t,e){return t[0]=-e[0],t[1]=-e[1],t}function wg(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 kn(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 rs(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function is(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}const NEe=Object.freeze(Object.defineProperty({__proto__:null,add:h$,applyTransform:kn,clone:to,copy:ir,create:qs,dist:ns,distSquare:Js,distance:Kb,distanceSquare:dW,div:DEe,dot:REe,len:Sg,lenSquare:p$,length:EEe,lengthSquare:MEe,lerp:wg,max:is,min:rs,mul:IEe,negate:kEe,normalize:Au,scale:xg,scaleAndAdd:qb,set:fW,sub:Ks},Symbol.toStringTag,{value:"Module"}));var od=function(){function t(e,n){this.target=e,this.topTarget=n&&n.topTarget}return t}(),LEe=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 od(n,e),"dragstart",e.event))},t.prototype._drag=function(e){var n=this._draggingTarget;if(n){var r=e.offsetX,i=e.offsetY,a=r-this._x,o=i-this._y;this._x=r,this._y=i,n.drift(a,o,e),this.handler.dispatchToElement(new od(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 od(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new od(s,e),"dragenter",e.event))}},t.prototype._dragEnd=function(e){var n=this._draggingTarget;n&&(n.dragging=!1),this.handler.dispatchToElement(new od(n,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new od(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},t}(),zi=function(){function t(e){e&&(this._$eventProcessor=e)}return t.prototype.on=function(e,n,r,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof n=="function"&&(i=r,r=n,n=null),!r||!e)return this;var o=this._$eventProcessor;n!=null&&o&&o.normalizeQuery&&(n=o.normalizeQuery(n)),a[e]||(a[e]=[]);for(var s=0;s<a[e].length;s++)if(a[e][s].h===r)return this;var l={h:r,query:n,ctx:i||this,callAtLast:r.zrEventfulCallAtLast},u=a[e].length-1,c=a[e][u];return c&&c.callAtLast?a[e].splice(u,0,l):a[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=[],a=0,o=r[e].length;a<o;a++)r[e][a].h!==n&&i.push(r[e][a]);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],a=this._$eventProcessor;if(i)for(var o=n.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(e,u.query)))switch(o){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 a&&a.afterTrigger&&a.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],a=this._$eventProcessor;if(i)for(var o=n.length,s=n[o-1],l=i.length,u=0;u<l;u++){var c=i[u];if(!(a&&a.filter&&c.query!=null&&!a.filter(e,c.query)))switch(o){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,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(e),this},t}(),VEe=Math.log(2);function g$(t,e,n,r,i,a){var o=r+"-"+i,s=t.length;if(a.hasOwnProperty(o))return a[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~i)/VEe);return t[n][l]}for(var u=r|1<<n,c=n+1;r&1<<c;)c++;for(var f=0,d=0,h=0;d<s;d++){var g=1<<d;g&i||(f+=(h%2?-1:1)*t[n][d]*g$(t,e-1,c,u,i|g,a),h++)}return a[o]=f,f}function hW(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=g$(n,8,0,0,0,r);if(i!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*g$(n,7,o===0?1:0,1<<o,1<<s,r)/i*e[o];return function(l,u,c){var f=u*a[6]+c*a[7]+1;l[0]=(u*a[0]+c*a[1]+a[2])/f,l[1]=(u*a[3]+c*a[4]+a[5])/f}}}var pW="___zrEVENTSAVED",v$=[];function BEe(t,e,n,r,i){return m$(v$,e,r,i,!0)&&m$(t,n,v$[0],v$[1])}function m$(t,e,n,r,i){if(e.getBoundingClientRect&&Je.domSupported&&!gW(e)){var a=e[pW]||(e[pW]={}),o=zEe(e,a),s=FEe(o,a,i);if(s)return s(t,n,r),!0}return!1}function zEe(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var r=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>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(o),n.push(o)}return n}function FEe(t,e,n){for(var r=n?"invTrans":"trans",i=e[r],a=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),f=2*u,d=c.left,h=c.top;o.push(d,h),l=l&&a&&d===a[f]&&h===a[f+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=o,e[r]=n?hW(s,o):hW(o,s))}function gW(t){return t.nodeName.toUpperCase()==="CANVAS"}var WEe=/([&<>"'])/g,QEe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function yr(t){return t==null?"":(t+"").replace(WEe,function(e,n){return QEe[n]})}var HEe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,y$=[],jEe=Je.browser.firefox&&+Je.browser.version.split(".")[0]<39;function b$(t,e,n,r){return n=n||{},r?vW(t,e,n):jEe&&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):vW(t,e,n),n}function vW(t,e,n){if(Je.domSupported&&t.getBoundingClientRect){var r=e.clientX,i=e.clientY;if(gW(t)){var a=t.getBoundingClientRect();n.zrX=r-a.left,n.zrY=i-a.top;return}else if(m$(y$,t,r,i)){n.zrX=y$[0],n.zrY=y$[1];return}}n.zrX=n.zrY=0}function _$(t){return t||window.event}function Fi(t,e,n){if(e=_$(e),e.zrX!=null)return e;var r=e.type,i=r&&r.indexOf("touch")>=0;if(i){var o=r!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&b$(t,o,e,n)}else{b$(t,e,e,n);var a=GEe(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&HEe.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function GEe(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),a=r>0?-1:r<0?1:n>0?-1:1;return 3*i*a}function O$(t,e,n,r){t.addEventListener(e,n,r)}function ZEe(t,e,n,r){t.removeEventListener(e,n,r)}var as=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function mW(t){return t.which===2||t.which===3}var UEe=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 a={points:[],touches:[],target:n,event:e},o=0,s=i.length;o<s;o++){var l=i[o],u=b$(r,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},t.prototype._recognize=function(e){for(var n in S$)if(S$.hasOwnProperty(n)){var r=S$[n](this._track,e);if(r)return r}},t}();function yW(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function XEe(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var S$={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 a=yW(r)/yW(i);!isFinite(a)&&(a=1),e.pinchScale=a;var o=XEe(r);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:t[0].target,event:e}}}}};function zr(){return[1,0,0,1,0,0]}function Cg(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Jb(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 no(t,e,n){var r=e[0]*n[0]+e[2]*n[1],i=e[1]*n[0]+e[3]*n[1],a=e[0]*n[2]+e[2]*n[3],o=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]=a,t[3]=o,t[4]=s,t[5]=l,t}function Sa(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 el(t,e,n,r){r===void 0&&(r=[0,0]);var i=e[0],a=e[2],o=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]=a*f+l*c,t[3]=-a*c+f*l,t[4]=f*(o-r[0])+c*(u-r[1])+r[0],t[5]=f*(u-r[1])-c*(o-r[0])+r[1],t}function e_(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 Eu(t,e){var n=e[0],r=e[2],i=e[4],a=e[1],o=e[3],s=e[5],l=n*o-a*r;return l?(l=1/l,t[0]=o*l,t[1]=-a*l,t[2]=-r*l,t[3]=n*l,t[4]=(r*s-o*i)*l,t[5]=(a*i-n*s)*l,t):null}function bW(t){var e=zr();return Jb(e,t),e}const YEe=Object.freeze(Object.defineProperty({__proto__:null,clone:bW,copy:Jb,create:zr,identity:Cg,invert:Eu,mul:no,rotate:el,scale:e_,translate:Sa},Symbol.toStringTag,{value:"Module"}));var Be=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 a=1-i;e.x=a*n.x+i*r.x,e.y=a*n.y+i*r.y},t}(),t_=Math.min,n_=Math.max,Mu=new Be,Iu=new Be,Du=new Be,Ru=new Be,Tg=new Be,Pg=new Be,qEe=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=t_(e.x,this.x),r=t_(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=n_(e.x+e.width,this.x+this.width)-n:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=n_(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,a=zr();return Sa(a,a,[-n.x,-n.y]),e_(a,a,[r,i]),Sa(a,a,[e.x,e.y]),a},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var r=this,i=r.x,a=r.x+r.width,o=r.y,s=r.y+r.height,l=e.x,u=e.x+e.width,c=e.y,f=e.y+e.height,d=!(a<l||u<i||s<c||f<o);if(n){var h=1/0,g=0,v=Math.abs(a-l),m=Math.abs(u-i),y=Math.abs(s-c),b=Math.abs(f-o),_=Math.min(v,m),O=Math.min(y,b);a<l||u<i?_>g&&(g=_,v<m?Be.set(Pg,-v,0):Be.set(Pg,m,0)):_<h&&(h=_,v<m?Be.set(Tg,v,0):Be.set(Tg,-m,0)),s<c||f<o?O>g&&(g=O,y<b?Be.set(Pg,0,-y):Be.set(Pg,0,b)):_<h&&(h=_,y<b?Be.set(Tg,0,y):Be.set(Tg,0,-b))}return n&&Be.copy(n,d?Tg:Pg),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],a=r[3],o=r[4],s=r[5];e.x=n.x*i+o,e.y=n.y*a+s,e.width=n.width*i,e.height=n.height*a,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}Mu.x=Du.x=n.x,Mu.y=Ru.y=n.y,Iu.x=Ru.x=n.x+n.width,Iu.y=Du.y=n.y+n.height,Mu.transform(r),Ru.transform(r),Iu.transform(r),Du.transform(r),e.x=t_(Mu.x,Iu.x,Du.x,Ru.x),e.y=t_(Mu.y,Iu.y,Du.y,Ru.y);var l=n_(Mu.x,Iu.x,Du.x,Ru.x),u=n_(Mu.y,Iu.y,Du.y,Ru.y);e.width=l-e.x,e.height=u-e.y},t}();const ze=qEe;var _W="silent";function KEe(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:JEe}}function JEe(){as(this.event)}var eMe=function(t){U(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}(zi),$g=function(){function t(e,n){this.x=e,this.y=n}return t}(),tMe=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],x$=new ze(0,0,0,0),OW=function(t){U(e,t);function e(n,r,i,a,o){var s=t.call(this)||this;return s._hovered=new $g(0,0),s.storage=n,s.painter=r,s.painterRoot=a,s._pointerSize=o,i=i||new eMe,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new LEe(s),s}return e.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(k(tMe,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,a=xW(this,r,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new $g(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(o,"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 $g(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 a=n.target;if(!(a&&a.silent)){for(var o="on"+r,s=KEe(r,n,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(r,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(r,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(r,s)}))}},e.prototype.findHover=function(n,r,i){var a=this.storage.getDisplayList(),o=new $g(n,r);if(SW(a,o,n,r,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new ze(n-u,r-u,l,l),f=a.length-1;f>=0;f--){var d=a[f];d!==i&&!d.ignore&&!d.ignoreCoarsePointer&&(!d.parent||!d.parent.ignoreCoarsePointer)&&(x$.copy(d.getBoundingRect()),d.transform&&x$.applyTransform(d.transform),x$.intersect(c)&&s.push(d))}if(s.length)for(var h=4,g=Math.PI/12,v=Math.PI*2,m=0;m<u;m+=h)for(var y=0;y<v;y+=g){var b=n+m*Math.cos(y),_=r+m*Math.sin(y);if(SW(s,o,b,_,i),o.target)return o}}return o},e.prototype.processGesture=function(n,r){this._gestureMgr||(this._gestureMgr=new UEe);var i=this._gestureMgr;r==="start"&&i.clear();var a=i.recognize(n,this.findHover(n.zrX,n.zrY,null).target,this.proxy.dom);if(r==="end"&&i.clear(),a){var o=a.type;n.gestureEvent=o;var s=new $g;s.target=a.target,this.dispatchToElement(s,o,a.event)}},e}(zi);k(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){OW.prototype[t]=function(e){var n=e.zrX,r=e.zrY,i=xW(this,n,r),a,o;if((t!=="mouseup"||!i)&&(a=this.findHover(n,r),o=a.target),t==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(t==="mouseup")this._upEl=o;else if(t==="click"){if(this._downEl!==this._upEl||!this._downPoint||ns(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,t,e)}});function nMe(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var r=t,i=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(e,n))return!1}r.silent&&(i=!0);var s=r.__hostTarget;r=s||r.parent}return i?_W:!0}return!1}function SW(t,e,n,r,i){for(var a=t.length-1;a>=0;a--){var o=t[a],s=void 0;if(o!==i&&!o.ignore&&(s=nMe(o,n,r))&&(!e.topTarget&&(e.topTarget=o),s!==_W)){e.target=o;break}}}function xW(t,e,n){var r=t.painter;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}var wW=32,Ag=7;function rMe(t){for(var e=0;t>=wW;)e|=t&1,t>>=1;return t+e}function CW(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++;iMe(t,e,i)}else for(;i<n&&r(t[i],t[i-1])>=0;)i++;return i-e}function iMe(t,e,n){for(n--;e<n;){var r=t[e];t[e++]=t[n],t[n--]=r}}function TW(t,e,n,r,i){for(r===e&&r++;r<n;r++){for(var a=t[r],o=e,s=r,l;o<s;)l=o+s>>>1,i(a,t[l])<0?s=l:o=l+1;var u=r-o;switch(u){case 3:t[o+3]=t[o+2];case 2:t[o+2]=t[o+1];case 1:t[o+1]=t[o];break;default:for(;u>0;)t[o+u]=t[o+u-1],u--}t[o]=a}}function w$(t,e,n,r,i,a){var o=0,s=0,l=1;if(a(t,e[n+i])>0){for(s=r-i;l<s&&a(t,e[n+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(t,e[n+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var c=o+(l-o>>>1);a(t,e[n+c])>0?o=c+1:l=c}return l}function C$(t,e,n,r,i,a){var o=0,s=0,l=1;if(a(t,e[n+i])<0){for(s=i+1;l<s&&a(t,e[n+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=r-i;l<s&&a(t,e[n+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var c=o+(l-o>>>1);a(t,e[n+c])<0?l=c:o=c+1}return l}function aMe(t,e){var n=Ag,r,i,a=0,o=[];r=[],i=[];function s(h,g){r[a]=h,i[a]=g,a+=1}function l(){for(;a>1;){var h=a-2;if(h>=1&&i[h-1]<=i[h]+i[h+1]||h>=2&&i[h-2]<=i[h]+i[h-1])i[h-1]<i[h+1]&&h--;else if(i[h]>i[h+1])break;c(h)}}function u(){for(;a>1;){var h=a-2;h>0&&i[h-1]<i[h+1]&&h--,c(h)}}function c(h){var g=r[h],v=i[h],m=r[h+1],y=i[h+1];i[h]=v+y,h===a-3&&(r[h+1]=r[h+2],i[h+1]=i[h+2]),a--;var b=C$(t[m],t,g,v,0,e);g+=b,v-=b,v!==0&&(y=w$(t[g+v-1],t,m,y,y-1,e),y!==0&&(v<=y?f(g,v,m,y):d(g,v,m,y)))}function f(h,g,v,m){var y=0;for(y=0;y<g;y++)o[y]=t[h+y];var b=0,_=v,O=h;if(t[O++]=t[_++],--m===0){for(y=0;y<g;y++)t[O+y]=o[b+y];return}if(g===1){for(y=0;y<m;y++)t[O+y]=t[_+y];t[O+m]=o[b];return}for(var S=n,x,w,T;;){x=0,w=0,T=!1;do if(e(t[_],o[b])<0){if(t[O++]=t[_++],w++,x=0,--m===0){T=!0;break}}else if(t[O++]=o[b++],x++,w=0,--g===1){T=!0;break}while((x|w)<S);if(T)break;do{if(x=C$(t[_],o,b,g,0,e),x!==0){for(y=0;y<x;y++)t[O+y]=o[b+y];if(O+=x,b+=x,g-=x,g<=1){T=!0;break}}if(t[O++]=t[_++],--m===0){T=!0;break}if(w=w$(o[b],t,_,m,0,e),w!==0){for(y=0;y<w;y++)t[O+y]=t[_+y];if(O+=w,_+=w,m-=w,m===0){T=!0;break}}if(t[O++]=o[b++],--g===1){T=!0;break}S--}while(x>=Ag||w>=Ag);if(T)break;S<0&&(S=0),S+=2}if(n=S,n<1&&(n=1),g===1){for(y=0;y<m;y++)t[O+y]=t[_+y];t[O+m]=o[b]}else{if(g===0)throw new Error;for(y=0;y<g;y++)t[O+y]=o[b+y]}}function d(h,g,v,m){var y=0;for(y=0;y<m;y++)o[y]=t[v+y];var b=h+g-1,_=m-1,O=v+m-1,S=0,x=0;if(t[O--]=t[b--],--g===0){for(S=O-(m-1),y=0;y<m;y++)t[S+y]=o[y];return}if(m===1){for(O-=g,b-=g,x=O+1,S=b+1,y=g-1;y>=0;y--)t[x+y]=t[S+y];t[O]=o[_];return}for(var w=n;;){var T=0,P=0,C=!1;do if(e(o[_],t[b])<0){if(t[O--]=t[b--],T++,P=0,--g===0){C=!0;break}}else if(t[O--]=o[_--],P++,T=0,--m===1){C=!0;break}while((T|P)<w);if(C)break;do{if(T=g-C$(o[_],t,h,g,g-1,e),T!==0){for(O-=T,b-=T,g-=T,x=O+1,S=b+1,y=T-1;y>=0;y--)t[x+y]=t[S+y];if(g===0){C=!0;break}}if(t[O--]=o[_--],--m===1){C=!0;break}if(P=m-w$(t[b],o,0,m,m-1,e),P!==0){for(O-=P,_-=P,m-=P,x=O+1,S=_+1,y=0;y<P;y++)t[x+y]=o[S+y];if(m<=1){C=!0;break}}if(t[O--]=t[b--],--g===0){C=!0;break}w--}while(T>=Ag||P>=Ag);if(C)break;w<0&&(w=0),w+=2}if(n=w,n<1&&(n=1),m===1){for(O-=g,b-=g,x=O+1,S=b+1,y=g-1;y>=0;y--)t[x+y]=t[S+y];t[O]=o[_]}else{if(m===0)throw new Error;for(S=O-(m-1),y=0;y<m;y++)t[S+y]=o[y]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function r_(t,e,n,r){n||(n=0),r||(r=t.length);var i=r-n;if(!(i<2)){var a=0;if(i<wW){a=CW(t,n,r,e),TW(t,n,r,n+a,e);return}var o=aMe(t,e),s=rMe(i);do{if(a=CW(t,n,r,e),a<s){var l=i;l>s&&(l=s),TW(t,n,n+l,n+a,e),a=l}o.pushRun(n,a),o.mergeRuns(),i-=a,n+=a}while(i!==0);o.forceMergeRuns()}}var ci=1,Eg=2,sd=4,PW=!1;function T$(){PW||(PW=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function $W(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var oMe=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=$W}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,a=n.length;i<a;i++)this._updateAndAddDisplayable(n[i],null,e);r.length=this._displayListLen,r_(r,$W)},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 a=i,o=e;a;)a.parent=o,a.updateTransform(),n.push(a),o=a,a=a.getClipPath()}if(e.childrenRef){for(var s=e.childrenRef(),l=0;l<s.length;l++){var u=s[l];e.__dirty&&(u.__dirty|=ci),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)&&(T$(),c.z=0),isNaN(c.z2)&&(T$(),c.z2=0),isNaN(c.zlevel)&&(T$(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var f=e.getDecalElement&&e.getDecalElement();f&&this._updateAndAddDisplayable(f,n,r);var d=e.getTextGuideLine();d&&this._updateAndAddDisplayable(d,n,r);var h=e.getTextContent();h&&this._updateAndAddDisplayable(h,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=Fe(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}(),i_;i_=Je.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var Mg={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-Mg.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?Mg.bounceIn(t*2)*.5:Mg.bounceOut(t*2-1)*.5+.5}},a_=Math.pow,tl=Math.sqrt,o_=1e-8,AW=1e-4,EW=tl(3),s_=1/3,ro=qs(),Wi=qs(),ld=qs();function nl(t){return t>-o_&&t<o_}function MW(t){return t>o_||t<-o_}function wn(t,e,n,r,i){var a=1-i;return a*a*(a*t+3*i*e)+i*i*(i*r+3*a*n)}function IW(t,e,n,r,i){var a=1-i;return 3*(((e-t)*a+2*(n-e)*i)*a+(r-n)*i*i)}function l_(t,e,n,r,i,a){var o=r+3*(e-n)-t,s=3*(n-e*2+t),l=3*(e-t),u=t-i,c=s*s-3*o*l,f=s*l-9*o*u,d=l*l-3*s*u,h=0;if(nl(c)&&nl(f))if(nl(s))a[0]=0;else{var g=-l/s;g>=0&&g<=1&&(a[h++]=g)}else{var v=f*f-4*c*d;if(nl(v)){var m=f/c,g=-s/o+m,y=-m/2;g>=0&&g<=1&&(a[h++]=g),y>=0&&y<=1&&(a[h++]=y)}else if(v>0){var b=tl(v),_=c*s+1.5*o*(-f+b),O=c*s+1.5*o*(-f-b);_<0?_=-a_(-_,s_):_=a_(_,s_),O<0?O=-a_(-O,s_):O=a_(O,s_);var g=(-s-(_+O))/(3*o);g>=0&&g<=1&&(a[h++]=g)}else{var S=(2*c*s-3*o*f)/(2*tl(c*c*c)),x=Math.acos(S)/3,w=tl(c),T=Math.cos(x),g=(-s-2*w*T)/(3*o),y=(-s+w*(T+EW*Math.sin(x)))/(3*o),P=(-s+w*(T-EW*Math.sin(x)))/(3*o);g>=0&&g<=1&&(a[h++]=g),y>=0&&y<=1&&(a[h++]=y),P>=0&&P<=1&&(a[h++]=P)}}return h}function DW(t,e,n,r,i){var a=6*n-12*e+6*t,o=9*e+3*r-3*t-9*n,s=3*e-3*t,l=0;if(nl(o)){if(MW(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(nl(c))i[0]=-a/(2*o);else if(c>0){var f=tl(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 rl(t,e,n,r,i,a){var o=(e-t)*i+t,s=(n-e)*i+e,l=(r-n)*i+n,u=(s-o)*i+o,c=(l-s)*i+s,f=(c-u)*i+u;a[0]=t,a[1]=o,a[2]=u,a[3]=f,a[4]=f,a[5]=c,a[6]=l,a[7]=r}function RW(t,e,n,r,i,a,o,s,l,u,c){var f,d=.005,h=1/0,g,v,m,y;ro[0]=l,ro[1]=u;for(var b=0;b<1;b+=.05)Wi[0]=wn(t,n,i,o,b),Wi[1]=wn(e,r,a,s,b),m=Js(ro,Wi),m<h&&(f=b,h=m);h=1/0;for(var _=0;_<32&&!(d<AW);_++)g=f-d,v=f+d,Wi[0]=wn(t,n,i,o,g),Wi[1]=wn(e,r,a,s,g),m=Js(Wi,ro),g>=0&&m<h?(f=g,h=m):(ld[0]=wn(t,n,i,o,v),ld[1]=wn(e,r,a,s,v),y=Js(ld,ro),v<=1&&y<h?(f=v,h=y):d*=.5);return c&&(c[0]=wn(t,n,i,o,f),c[1]=wn(e,r,a,s,f)),tl(h)}function sMe(t,e,n,r,i,a,o,s,l){for(var u=t,c=e,f=0,d=1/l,h=1;h<=l;h++){var g=h*d,v=wn(t,n,i,o,g),m=wn(e,r,a,s,g),y=v-u,b=m-c;f+=Math.sqrt(y*y+b*b),u=v,c=m}return f}function Nn(t,e,n,r){var i=1-r;return i*(i*t+2*r*e)+r*r*n}function P$(t,e,n,r){return 2*((1-r)*(e-t)+r*(n-e))}function lMe(t,e,n,r,i){var a=t-2*e+n,o=2*(e-t),s=t-r,l=0;if(nl(a)){if(MW(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(nl(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var f=tl(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 kW(t,e,n){var r=t+n-2*e;return r===0?.5:(t-e)/r}function Ig(t,e,n,r,i){var a=(e-t)*r+t,o=(n-e)*r+e,s=(o-a)*r+a;i[0]=t,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=n}function NW(t,e,n,r,i,a,o,s,l){var u,c=.005,f=1/0;ro[0]=o,ro[1]=s;for(var d=0;d<1;d+=.05){Wi[0]=Nn(t,n,i,d),Wi[1]=Nn(e,r,a,d);var h=Js(ro,Wi);h<f&&(u=d,f=h)}f=1/0;for(var g=0;g<32&&!(c<AW);g++){var v=u-c,m=u+c;Wi[0]=Nn(t,n,i,v),Wi[1]=Nn(e,r,a,v);var h=Js(Wi,ro);if(v>=0&&h<f)u=v,f=h;else{ld[0]=Nn(t,n,i,m),ld[1]=Nn(e,r,a,m);var y=Js(ld,ro);m<=1&&y<f?(u=m,f=y):c*=.5}}return l&&(l[0]=Nn(t,n,i,u),l[1]=Nn(e,r,a,u)),tl(f)}function uMe(t,e,n,r,i,a,o){for(var s=t,l=e,u=0,c=1/o,f=1;f<=o;f++){var d=f*c,h=Nn(t,n,i,d),g=Nn(e,r,a,d),v=h-s,m=g-l;u+=Math.sqrt(v*v+m*m),s=h,l=g}return u}var cMe=/cubic-bezier\(([0-9,\.e ]+)\)/;function $$(t){var e=t&&cMe.exec(t);if(e){var n=e[1].split(","),r=+Bi(n[0]),i=+Bi(n[1]),a=+Bi(n[2]),o=+Bi(n[3]);if(isNaN(r+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:l_(0,r,a,1,l,s)&&wn(0,i,o,1,s[0])}}}var fMe=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||Jt,this.ondestroy=e.ondestroy||Jt,this.onrestart=e.onrestart||Jt,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,a=i/r;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===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=xe(e)?e:Mg[e]||$$(e)},t}(),LW=function(){function t(e){this.value=e}return t}(),dMe=function(){function t(){this._len=0}return t.prototype.insert=function(e){var n=new LW(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}(),Dg=function(){function t(e){this._list=new dMe,this._maxSize=10,this._map={},this._maxSize=e}return t.prototype.put=function(e,n){var r=this._list,i=this._map,a=null;if(i[e]==null){var o=r.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=r.head;r.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=n:s=new LW(n),s.key=e,r.insertEntry(s),i[e]=s}return a},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}(),VW={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 xa(t){return t=Math.round(t),t<0?0:t>255?255:t}function hMe(t){return t=Math.round(t),t<0?0:t>360?360:t}function Rg(t){return t<0?0:t>1?1:t}function A$(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?xa(parseFloat(e)/100*255):xa(parseInt(e,10))}function ku(t){var e=t;return e.length&&e.charAt(e.length-1)==="%"?Rg(parseFloat(e)/100):Rg(parseFloat(e))}function E$(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 il(t,e,n){return t+(e-t)*n}function Qi(t,e,n,r,i){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t}function M$(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var BW=new Dg(20),u_=null;function ud(t,e){u_&&M$(u_,e),u_=BW.put(t,u_||e.slice())}function br(t,e){if(t){e=e||[];var n=BW.get(t);if(n)return M$(e,n);t=t+"";var r=t.replace(/ /g,"").toLowerCase();if(r in VW)return M$(e,VW[r]),ud(t,e),e;var i=r.length;if(r.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){Qi(e,0,0,0,1);return}return Qi(e,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),ud(t,e),e}else if(i===7||i===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){Qi(e,0,0,0,1);return}return Qi(e,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(r.slice(7),16)/255:1),ud(t,e),e}return}var o=r.indexOf("("),s=r.indexOf(")");if(o!==-1&&s+1===i){var l=r.substr(0,o),u=r.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?Qi(e,+u[0],+u[1],+u[2],1):Qi(e,0,0,0,1);c=ku(u.pop());case"rgb":if(u.length>=3)return Qi(e,A$(u[0]),A$(u[1]),A$(u[2]),u.length===3?c:ku(u[3])),ud(t,e),e;Qi(e,0,0,0,1);return;case"hsla":if(u.length!==4){Qi(e,0,0,0,1);return}return u[3]=ku(u[3]),I$(u,e),ud(t,e),e;case"hsl":if(u.length!==3){Qi(e,0,0,0,1);return}return I$(u,e),ud(t,e),e;default:return}}Qi(e,0,0,0,1)}}function I$(t,e){var n=(parseFloat(t[0])%360+360)%360/360,r=ku(t[1]),i=ku(t[2]),a=i<=.5?i*(r+1):i+r-i*r,o=i*2-a;return e=e||[],Qi(e,xa(E$(o,a,n+1/3)*255),xa(E$(o,a,n)*255),xa(E$(o,a,n-1/3)*255),1),t.length===4&&(e[3]=t[3]),e}function pMe(t){if(t){var e=t[0]/255,n=t[1]/255,r=t[2]/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=a-i,s=(a+i)/2,l,u;if(o===0)l=0,u=0;else{s<.5?u=o/(a+i):u=o/(2-a-i);var c=((a-e)/6+o/2)/o,f=((a-n)/6+o/2)/o,d=((a-r)/6+o/2)/o;e===a?l=d-f:n===a?l=1/3+c-d:r===a&&(l=2/3+f-c),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return t[3]!=null&&h.push(t[3]),h}}function c_(t,e){var n=br(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 wa(n,n.length===4?"rgba":"rgb")}}function gMe(t){var e=br(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function kg(t,e,n){if(!(!(e&&e.length)||!(t>=0&&t<=1))){n=n||[];var r=t*(e.length-1),i=Math.floor(r),a=Math.ceil(r),o=e[i],s=e[a],l=r-i;return n[0]=xa(il(o[0],s[0],l)),n[1]=xa(il(o[1],s[1],l)),n[2]=xa(il(o[2],s[2],l)),n[3]=Rg(il(o[3],s[3],l)),n}}var vMe=kg;function D$(t,e,n){if(!(!(e&&e.length)||!(t>=0&&t<=1))){var r=t*(e.length-1),i=Math.floor(r),a=Math.ceil(r),o=br(e[i]),s=br(e[a]),l=r-i,u=wa([xa(il(o[0],s[0],l)),xa(il(o[1],s[1],l)),xa(il(o[2],s[2],l)),Rg(il(o[3],s[3],l))],"rgba");return n?{color:u,leftIndex:i,rightIndex:a,value:r}:u}}var mMe=D$;function cd(t,e,n,r){var i=br(t);if(t)return i=pMe(i),e!=null&&(i[0]=hMe(e)),n!=null&&(i[1]=ku(n)),r!=null&&(i[2]=ku(r)),wa(I$(i),"rgba")}function Ng(t,e){var n=br(t);if(n&&e!=null)return n[3]=Rg(e),wa(n,"rgba")}function wa(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 Lg(t,e){var n=br(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function yMe(){return wa([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var zW=new Dg(100);function f_(t){if(pe(t)){var e=zW.get(t);return e||(e=c_(t,-.1),zW.put(t,e)),e}else if(mg(t)){var n=ne({},t);return n.colorStops=ie(t.colorStops,function(r){return{offset:r.offset,color:c_(r.color,-.1)}}),n}return t}const bMe=Object.freeze(Object.defineProperty({__proto__:null,fastLerp:kg,fastMapToColor:vMe,lerp:D$,lift:c_,liftColor:f_,lum:Lg,mapToColor:mMe,modifyAlpha:Ng,modifyHSL:cd,parse:br,random:yMe,stringify:wa,toHex:gMe},Symbol.toStringTag,{value:"Module"}));var d_=Math.round;function Vg(t){var e;if(!t||t==="transparent")t="none";else if(typeof t=="string"&&t.indexOf("rgba")>-1){var n=br(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}return{color:t,opacity:e??1}}var FW=1e-4;function al(t){return t<FW&&t>-FW}function h_(t){return d_(t*1e3)/1e3}function R$(t){return d_(t*1e4)/1e4}function _Me(t){return"matrix("+h_(t[0])+","+h_(t[1])+","+h_(t[2])+","+h_(t[3])+","+R$(t[4])+","+R$(t[5])+")"}var OMe={left:"start",right:"end",center:"middle",middle:"middle"};function SMe(t,e,n){return n==="top"?t+=e/2:n==="bottom"&&(t-=e/2),t}function xMe(t){return t&&(t.shadowBlur||t.shadowOffsetX||t.shadowOffsetY)}function wMe(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 WW(t){return t&&!!t.image}function CMe(t){return t&&!!t.svgElement}function k$(t){return WW(t)||CMe(t)}function QW(t){return t.type==="linear"}function HW(t){return t.type==="radial"}function jW(t){return t&&(t.type==="linear"||t.type==="radial")}function p_(t){return"url(#"+t+")"}function GW(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 ZW(t){var e=t.x||0,n=t.y||0,r=(t.rotation||0)*Og,i=Re(t.scaleX,1),a=Re(t.scaleY,1),o=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||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+d_(o*Og)+"deg, "+d_(s*Og)+"deg)"),l.join(" ")}var TMe=function(){return Je.hasGlobalWindow&&xe(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"&&Li("Base64 isn't natively supported in the current environment."),null}}(),N$=Array.prototype.slice;function os(t,e,n){return(e-t)*n+t}function L$(t,e,n,r){for(var i=e.length,a=0;a<i;a++)t[a]=os(e[a],n[a],r);return t}function PMe(t,e,n,r){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=os(e[o][s],n[o][s],r)}return t}function g_(t,e,n,r){for(var i=e.length,a=0;a<i;a++)t[a]=e[a]+n[a]*r;return t}function UW(t,e,n,r){for(var i=e.length,a=i&&e[0].length,o=0;o<i;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=e[o][s]+n[o][s]*r}return t}function $Me(t,e){for(var n=t.length,r=e.length,i=n>r?e:t,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(n,r);s++)i.push({offset:o.offset,color:o.color.slice()})}function AMe(t,e,n){var r=t,i=e;if(!(!r.push||!i.push)){var a=r.length,o=i.length;if(a!==o){var s=a>o;if(s)r.length=o;else for(var l=a;l<o;l++)r.push(n===1?i[l]:N$.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 Bg(t){if(jn(t)){var e=t.length;if(jn(t[0])){for(var n=[],r=0;r<e;r++)n.push(N$.call(t[r]));return n}return N$.call(t)}return t}function v_(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 EMe(t){return jn(t&&t[0])?2:1}var m_=0,y_=1,XW=2,zg=3,V$=4,B$=5,YW=6;function qW(t){return t===V$||t===B$}function b_(t){return t===y_||t===XW}var Fg=[0,0,0,0],MMe=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,a=i.length,o=!1,s=YW,l=n;if(jn(n)){var u=EMe(n);s=u,(u===1&&!it(n[0])||u===2&&!it(n[0][0]))&&(o=!0)}else if(it(n)&&!Ys(n))s=m_;else if(pe(n))if(!isNaN(+n))s=m_;else{var c=br(n);c&&(l=c,s=zg)}else if(mg(n)){var f=ne({},l);f.colorStops=ie(n.colorStops,function(h){return{offset:h.offset,color:br(h.color)}}),QW(n)?s=V$:HW(n)&&(s=B$),l=f}a===0?this.valType=s:(s!==this.valType||s===YW)&&(o=!0),this.discrete=this.discrete||o;var d={time:e,value:l,rawValue:n,percent:0};return r&&(d.easing=r,d.easingFunc=xe(r)?r:Mg[r]||$$(r)),i.push(d),d},t.prototype.prepare=function(e,n){var r=this.keyframes;this._needsSort&&r.sort(function(v,m){return v.time-m.time});for(var i=this.valType,a=r.length,o=r[a-1],s=this.discrete,l=b_(i),u=qW(i),c=0;c<a;c++){var f=r[c],d=f.value,h=o.value;f.percent=f.time/e,s||(l&&c!==a-1?AMe(d,h,i):u&&$Me(d.colorStops,h.colorStops))}if(!s&&i!==B$&&n&&this.needsAnimate()&&n.needsAnimate()&&i===n.valType&&!n._finished){this._additiveTrack=n;for(var g=r[0].value,c=0;c<a;c++)i===m_?r[c].additiveValue=r[c].value-g:i===zg?r[c].additiveValue=g_([],r[c].value,g,-1):b_(i)&&(r[c].additiveValue=i===y_?g_([],r[c].value,g,-1):UW([],r[c].value,g,-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",a=this.valType,o=this.keyframes,s=o.length,l=this.propName,u=a===zg,c,f=this._lastFr,d=Math.min,h,g;if(s===1)h=g=o[0];else{if(n<0)c=0;else if(n<this._lastFrP){var v=d(f+1,s-1);for(c=v;c>=0&&!(o[c].percent<=n);c--);c=d(c,s-2)}else{for(c=f;c<s&&!(o[c].percent>n);c++);c=d(c-1,s-2)}g=o[c+1],h=o[c]}if(h&&g){this._lastFr=c,this._lastFrP=n;var m=g.percent-h.percent,y=m===0?1:d((n-h.percent)/m,1);g.easingFunc&&(y=g.easingFunc(y));var b=r?this._additiveValue:u?Fg:e[l];if((b_(a)||u)&&!b&&(b=this._additiveValue=[]),this.discrete)e[l]=y<1?h.rawValue:g.rawValue;else if(b_(a))a===y_?L$(b,h[i],g[i],y):PMe(b,h[i],g[i],y);else if(qW(a)){var _=h[i],O=g[i],S=a===V$;e[l]={type:S?"linear":"radial",x:os(_.x,O.x,y),y:os(_.y,O.y,y),colorStops:ie(_.colorStops,function(w,T){var P=O.colorStops[T];return{offset:os(w.offset,P.offset,y),color:v_(L$([],w.color,P.color,y))}}),global:O.global},S?(e[l].x2=os(_.x2,O.x2,y),e[l].y2=os(_.y2,O.y2,y)):e[l].r=os(_.r,O.r,y)}else if(u)L$(b,h[i],g[i],y),r||(e[l]=v_(b));else{var x=os(h[i],g[i],y);r?this._additiveValue=x:e[l]=x}r&&this._addToTarget(e)}}},t.prototype._addToTarget=function(e){var n=this.valType,r=this.propName,i=this._additiveValue;n===m_?e[r]=e[r]+i:n===zg?(br(e[r],Fg),g_(Fg,Fg,i,1),e[r]=v_(Fg)):n===y_?g_(e[r],e[r],i,1):n===XW&&UW(e[r],e[r],i,1)},t}(),z$=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){Li("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,Ue(n),r)},t.prototype.whenWithKeys=function(e,n,r,i){for(var a=this._tracks,o=0;o<r.length;o++){var s=r[o],l=a[s];if(!l){l=a[s]=new MMe(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===zg&&u&&(u=v_(u))}else u=this._target[s];if(u==null)continue;e>0&&l.addKeyframe(0,Bg(u),i),this._trackKeys.push(s)}l.addKeyframe(e,Bg(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 a=r[i].getTrack(e);a&&(n=a)}return n},t.prototype.start=function(e){if(!(this._started>0)){this._started=1;for(var n=this,r=[],i=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],l=this._getAdditiveTrack(o),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 fMe({life:i,loop:this._loop,delay:this._delay||0,onframe:function(h){n._started=2;var g=n._additiveAnimators;if(g){for(var v=!1,m=0;m<g.length;m++)if(g[m]._clip){v=!0;break}v||(n._additiveAnimators=null)}for(var m=0;m<r.length;m++)r[m].step(n._target,h);var y=n._onframeCbs;if(y)for(var m=0;m<y.length;m++)y[m](n._target,h)},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 ie(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,a=0;a<e.length;a++){var o=r[e[a]];o&&!o.isFinished()&&(n?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<i.length;a++)if(!r[i[a]].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 a=n[i],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,l=s[r?0:s.length-1];l&&(e[a]=Bg(l.rawValue))}}}},t.prototype.__changeFinalValue=function(e,n){n=n||Ue(e);for(var r=0;r<n.length;r++){var i=n[r],a=this._tracks[i];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,e[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},t}();function fd(){return new Date().getTime()}var IMe=function(t){U(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=fd()-this._pausedTime,i=r-this._time,a=this._head;a;){var o=a.next,s=a.step(r,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}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&&(i_(r),!n._paused&&n.update())}i_(r)},e.prototype.start=function(){this._running||(this._time=fd(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=fd(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=fd()-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 z$(n,r.loop);return this.addAnimator(i),i},e}(zi),DMe=300,F$=Je.domSupported,W$=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=ie(t,function(i){var a=i.replace("mouse","pointer");return n.hasOwnProperty(a)?a:i});return{mouse:t,touch:e,pointer:r}}(),KW={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},JW=!1;function Q$(t){var e=t.pointerType;return e==="pen"||e==="touch"}function RMe(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 H$(t){t&&(t.zrByTouch=!0)}function kMe(t,e){return Fi(t.dom,new NMe(t,e),!0)}function e7(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 NMe=function(){function t(e,n){this.stopPropagation=Jt,this.stopImmediatePropagation=Jt,this.preventDefault=Jt,this.type=n.type,this.target=this.currentTarget=e.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return t}(),Ca={mousedown:function(t){t=Fi(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Fi(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=Fi(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){t=Fi(this.dom,t);var e=t.toElement||t.relatedTarget;e7(this,e)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){JW=!0,t=Fi(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){JW||(t=Fi(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){t=Fi(this.dom,t),H$(t),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Ca.mousemove.call(this,t),Ca.mousedown.call(this,t)},touchmove:function(t){t=Fi(this.dom,t),H$(t),this.handler.processGesture(t,"change"),Ca.mousemove.call(this,t)},touchend:function(t){t=Fi(this.dom,t),H$(t),this.handler.processGesture(t,"end"),Ca.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<DMe&&Ca.click.call(this,t)},pointerdown:function(t){Ca.mousedown.call(this,t)},pointermove:function(t){Q$(t)||Ca.mousemove.call(this,t)},pointerup:function(t){Ca.mouseup.call(this,t)},pointerout:function(t){Q$(t)||Ca.mouseout.call(this,t)}};k(["click","dblclick","contextmenu"],function(t){Ca[t]=function(e){e=Fi(this.dom,e),this.trigger(t,e)}});var j$={pointermove:function(t){Q$(t)||j$.mousemove.call(this,t)},pointerup:function(t){j$.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 LMe(t,e){var n=e.domHandlers;Je.pointerEventsSupported?k(W$.pointer,function(r){__(e,r,function(i){n[r].call(t,i)})}):(Je.touchEventsSupported&&k(W$.touch,function(r){__(e,r,function(i){n[r].call(t,i),RMe(e)})}),k(W$.mouse,function(r){__(e,r,function(i){i=_$(i),e.touching||n[r].call(t,i)})}))}function VMe(t,e){Je.pointerEventsSupported?k(KW.pointer,n):Je.touchEventsSupported||k(KW.mouse,n);function n(r){function i(a){a=_$(a),e7(t,a.target)||(a=kMe(t,a),e.domHandlers[r].call(t,a))}__(e,r,i,{capture:!0})}}function __(t,e,n,r){t.mounted[e]=n,t.listenerOpts[e]=r,O$(t.domTarget,e,n,r)}function G$(t){var e=t.mounted;for(var n in e)e.hasOwnProperty(n)&&ZEe(t.domTarget,n,e[n],t.listenerOpts[n]);t.mounted={}}var t7=function(){function t(e,n){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=e,this.domHandlers=n}return t}(),BMe=function(t){U(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 t7(n,Ca),F$&&(i._globalHandlerScope=new t7(document,j$)),LMe(i,i._localHandlerScope),i}return e.prototype.dispose=function(){G$(this._localHandlerScope),F$&&G$(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,F$&&+this.__pointerCapturing^+n){this.__pointerCapturing=n;var r=this._globalHandlerScope;n?VMe(this,r):G$(r)}},e}(zi),n7=1;Je.hasGlobalWindow&&(n7=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var O_=n7,Z$=.4,U$="#333",X$="#ccc",zMe="#eee",r7=Cg,i7=5e-5;function Nu(t){return t>i7||t<-i7}var Lu=[],dd=[],Y$=zr(),q$=Math.abs,FMe=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 Nu(this.rotation)||Nu(this.x)||Nu(this.y)||Nu(this.scaleX-1)||Nu(this.scaleY-1)||Nu(this.skewX)||Nu(this.skewY)},t.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||e)){r&&(r7(r),this.invTransform=null);return}r=r||zr(),n?this.getLocalTransform(r):r7(r),e&&(n?no(r,e,r):Jb(r,e)),this.transform=r,this._resolveGlobalScaleRatio(r)},t.prototype._resolveGlobalScaleRatio=function(e){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(Lu);var r=Lu[0]<0?-1:1,i=Lu[1]<0?-1:1,a=((Lu[0]-r)*n+r)/Lu[0]||0,o=((Lu[1]-i)*n+i)/Lu[1]||0;e[0]*=a,e[1]*=a,e[2]*=o,e[3]*=o}this.invTransform=this.invTransform||zr(),Eu(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]),a=Math.PI/2+i-Math.atan2(e[3],e[2]);r=Math.sqrt(r)*Math.cos(a),n=Math.sqrt(n),this.skewX=a,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||zr(),no(dd,e.invTransform,n),n=dd);var r=this.originX,i=this.originY;(r||i)&&(Y$[4]=r,Y$[5]=i,no(dd,n,Y$),dd[4]-=r,dd[5]-=i,n=dd),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&&kn(r,r,i),r},t.prototype.transformCoordToGlobal=function(e,n){var r=[e,n],i=this.transform;return i&&kn(r,r,i),r},t.prototype.getLineScale=function(){var e=this.transform;return e&&q$(e[0]-1)>1e-10&&q$(e[3]-1)>1e-10?Math.sqrt(q$(e[0]*e[3]-e[2]*e[1])):1},t.prototype.copyTransform=function(e){a7(this,e)},t.getLocalTransform=function(e,n){n=n||[];var r=e.originX||0,i=e.originY||0,a=e.scaleX,o=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,h=e.skewY?Math.tan(-e.skewY):0;if(r||i||s||l){var g=r+s,v=i+l;n[4]=-g*a-d*v*o,n[5]=-v*o-h*g*a}else n[4]=n[5]=0;return n[0]=a,n[3]=o,n[1]=h*a,n[2]=d*o,u&&el(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}(),io=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function a7(t,e){for(var n=0;n<io.length;n++){var r=io[n];t[r]=e[r]}}const ss=FMe;var o7={};function fi(t,e){e=e||Us;var n=o7[e];n||(n=o7[e]=new Dg(500));var r=n.get(t);return r==null&&(r=Oa.measureText(t,e).width,n.put(t,r)),r}function s7(t,e,n,r){var i=fi(t,e),a=S_(e),o=Qg(0,i,n),s=hd(0,a,r),l=new ze(o,s,i,a);return l}function Wg(t,e,n,r){var i=((t||"")+"").split(`
  289. `),a=i.length;if(a===1)return s7(i[0],e,n,r);for(var o=new ze(0,0,0,0),s=0;s<i.length;s++){var l=s7(i[s],e,n,r);s===0?o.copy(l):o.union(l)}return o}function Qg(t,e,n){return n==="right"?t-=e:n==="center"&&(t-=e/2),t}function hd(t,e,n){return n==="middle"?t-=e/2:n==="bottom"&&(t-=e),t}function S_(t){return fi("国",t)}function Ta(t,e){return typeof t=="string"?t.lastIndexOf("%")>=0?parseFloat(t)/100*e:parseFloat(t):t}function x_(t,e,n){var r=e.position||"inside",i=e.distance!=null?e.distance:5,a=n.height,o=n.width,s=a/2,l=n.x,u=n.y,c="left",f="top";if(r instanceof Array)l+=Ta(r[0],n.width),u+=Ta(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+o,u+=s,f="middle";break;case"top":l+=o/2,u-=i,c="center",f="bottom";break;case"bottom":l+=o/2,u+=a+i,c="center";break;case"inside":l+=o/2,u+=s,c="center",f="middle";break;case"insideLeft":l+=i,u+=s,f="middle";break;case"insideRight":l+=o-i,u+=s,c="right",f="middle";break;case"insideTop":l+=o/2,u+=i,c="center";break;case"insideBottom":l+=o/2,u+=a-i,c="center",f="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=o-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=a-i,f="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,c="right",f="bottom";break}return t=t||{},t.x=l,t.y=u,t.align=c,t.verticalAlign=f,t}var K$="__zr_normal__",J$=io.concat(["ignore"]),WMe=Vi(io,function(t,e){return t[e]=!0,t},{ignore:!1}),pd={},QMe=new ze(0,0,0,0),w_=function(){function t(e){this.id=l$(),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,a=n.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(n),r.position!=null){var c=QMe;r.layoutRect?c.copy(r.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(pd,r,c):x_(pd,r,c),a.x=pd.x,a.y=pd.y,o=pd.align,s=pd.verticalAlign;var f=r.origin;if(f&&r.rotation!=null){var d=void 0,h=void 0;f==="center"?(d=c.width*.5,h=c.height*.5):(d=Ta(f[0],c.width),h=Ta(f[1],c.height)),u=!0,a.originX=-a.x+d+(i?0:c.x),a.originY=-a.y+h+(i?0:c.y)}}r.rotation!=null&&(a.rotation=r.rotation);var g=r.offset;g&&(a.x+=g[0],a.y+=g[1],u||(a.originX=-g[0],a.originY=-g[1]));var v=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,_=void 0;v&&this.canBeInsideText()?(y=r.insideFill,b=r.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(b==null||b==="auto")&&(b=this.getInsideTextStroke(y),_=!0)):(y=r.outsideFill,b=r.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(b==null||b==="auto")&&(b=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==m.fill||b!==m.stroke||_!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=y,m.stroke=b,m.autoStroke=_,m.align=o,m.verticalAlign=s,n.setDefaultTextStyle(m)),n.__dirty|=ci,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()?X$:U$},t.prototype.getOutsideStroke=function(e){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&br(n);r||(r=[255,255,255,1]);for(var i=r[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)r[o]=r[o]*i+(a?0:255)*(1-i);return r[3]=1,wa(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||{},ne(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(we(e))for(var r=e,i=Ue(r),a=0;a<i.length;a++){var o=i[a];this.attrKV(o,e[o])}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],a=i.__fromStateTransition;if(!(i.getLoop()||a&&a!==K$)){var o=i.targetName,s=o?n[o]: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,J$)},t.prototype._savePrimaryToNormal=function(e,n,r){for(var i=0;i<r.length;i++){var a=r[i];e[a]!=null&&!(a in n)&&(n[a]=this[a])}},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(K$,!1,e)},t.prototype.useState=function(e,n,r,i){var a=e===K$,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(Fe(s,e)>=0&&(n||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(e)),u||(u=this.states&&this.states[e]),!u&&!a){Li("State "+e+" not exists.");return}a||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),a?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~ci),u}}},t.prototype.useStates=function(e,n,r){if(!e.length)this.clearStates();else{var i=[],a=this.currentStates,o=e.length,s=o===a.length;if(s){for(var l=0;l<o;l++)if(e[l]!==a[l]){s=!1;break}}if(s)return;for(var l=0;l<o;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[o-1],d=!!(f&&f.hoverLayer||r);d&&this._toggleHoverLayerFlag(!0);var h=this._mergeStates(i),g=this.stateTransition;this.saveCurrentToNormalState(h),this._applyStateObj(e.join(","),h,this._normalState,!1,!n&&!this.__inHover&&g&&g.duration>0,g);var v=this._textContent,m=this._textGuide;v&&v.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&=~ci)}},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=Fe(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(),a=Fe(i,e),o=Fe(i,n)>=0;a>=0?o?i.splice(a,1):i[a]=n:r&&!o&&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 a=e[i];ne(n,a),a.textConfig&&(r=r||{},ne(r,a.textConfig))}return r&&(n.textConfig=r),n},t.prototype._applyStateObj=function(e,n,r,i,a,o){var s=!(n&&i);n&&n.textConfig?(this.textConfig=ne({},i?this.textConfig:r.textConfig),ne(this.textConfig,n.textConfig)):s&&r.textConfig&&(this.textConfig=r.textConfig);for(var l={},u=!1,c=0;c<J$.length;c++){var f=J$[c],d=a&&WMe[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(!a)for(var c=0;c<this.animators.length;c++){var h=this.animators[c],g=h.targetName;h.getLoop()||h.__changeFinalValue(g?(n||r)[g]:n||r)}u&&this._transitionState(e,l,o)},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 ss,this._attachComponent(e),this._textContent=e,this.markRedraw()}},t.prototype.setTextConfig=function(e){this.textConfig||(this.textConfig={}),ne(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|=ci;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){Li('Property "'+e+'" is not existed in element '+this.id);return}var a=new z$(i,n,r);return e&&(a.targetName=e),this.addAnimator(a,e),a},t.prototype.addAnimator=function(e,n){var r=this.__zr,i=this;e.during(function(){i.updateDuringAnimation(n)}).done(function(){var a=i.animators,o=Fe(a,e);o>=0&&a.splice(o,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,a=[],o=0;o<i;o++){var s=r[o];!e||e===s.scope?s.stop(n):a.push(s)}return this.animators=a,this},t.prototype.animateTo=function(e,n,r){e2(this,e,n,r)},t.prototype.animateFrom=function(e,n,r){e2(this,e,n,r,!0)},t.prototype._transitionState=function(e,n,r,i){for(var a=e2(this,n,r,i),o=0;o<a.length;o++)a[o].__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=ci;var n={};function r(a,o,s){n[a+o+s]||(console.warn("DEPRECATED: '"+a+"' has been deprecated. use '"+o+"', '"+s+"' instead"),n[a+o+s]=!0)}function i(a,o,s,l){Object.defineProperty(e,a,{get:function(){if(process.env.NODE_ENV!=="production"&&r(a,s,l),!this[o]){var c=this[o]=[];u(this,c)}return this[o]},set:function(c){process.env.NODE_ENV!=="production"&&r(a,s,l),this[s]=c[0],this[l]=c[1],this[o]=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}();Kt(w_,zi),Kt(w_,ss);function e2(t,e,n,r,i){n=n||{};var a=[];l7(t,"",t,e,n,r,a,i);var o=a.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,o--,o<=0&&(s?l&&l():u&&u())},f=function(){o--,o<=0&&(s?l&&l():u&&u())};o||l&&l(),a.length>0&&n.during&&a[0].during(function(g,v){n.during(v)});for(var d=0;d<a.length;d++){var h=a[d];c&&h.done(c),f&&h.aborted(f),n.force&&h.duration(n.duration),h.start(n.easing)}return a}function t2(t,e,n){for(var r=0;r<n;r++)t[r]=e[r]}function HMe(t){return jn(t[0])}function jMe(t,e,n){if(jn(e[n]))if(jn(t[n])||(t[n]=[]),rr(e[n])){var r=e[n].length;t[n].length!==r&&(t[n]=new e[n].constructor(r),t2(t[n],e[n],r))}else{var i=e[n],a=t[n],o=i.length;if(HMe(i))for(var s=i[0].length,l=0;l<o;l++)a[l]?t2(a[l],i[l],s):a[l]=Array.prototype.slice.call(i[l]);else t2(a,i,o);a.length=i.length}else t[n]=e[n]}function GMe(t,e){return t===e||jn(t)&&jn(e)&&ZMe(t,e)}function ZMe(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 l7(t,e,n,r,i,a,o,s){for(var l=Ue(r),u=i.duration,c=i.delay,f=i.additive,d=i.setToFinal,h=!we(a),g=t.animators,v=[],m=0;m<l.length;m++){var y=l[m],b=r[y];if(b!=null&&n[y]!=null&&(h||a[y]))if(we(b)&&!jn(b)&&!mg(b)){if(e){s||(n[y]=b,t.updateDuringAnimation(e));continue}l7(t,y,n[y],b,i,a&&a[y],o,s)}else v.push(y);else s||(n[y]=b,t.updateDuringAnimation(e),v.push(y))}var _=v.length;if(!f&&_)for(var O=0;O<g.length;O++){var S=g[O];if(S.targetName===e){var x=S.stopTracks(v);if(x){var w=Fe(g,S);g.splice(w,1)}}}if(i.force||(v=vt(v,function($){return!GMe(r[$],n[$])}),_=v.length),_>0||i.force&&!o.length){var T=void 0,P=void 0,C=void 0;if(s){P={},d&&(T={});for(var O=0;O<_;O++){var y=v[O];P[y]=n[y],d?T[y]=r[y]:n[y]=r[y]}}else if(d){C={};for(var O=0;O<_;O++){var y=v[O];C[y]=Bg(n[y]),jMe(n,r,y)}}var S=new z$(n,!1,!1,f?vt(g,function(A){return A.targetName===e}):null);S.targetName=e,i.scope&&(S.scope=i.scope),d&&T&&S.whenWithKeys(0,T,v),C&&S.whenWithKeys(0,C,v),S.whenWithKeys(u??500,s?P:r,v).delay(c||0),t.addAnimator(S,e),o.push(S)}}var u7=function(t){U(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,a=i.indexOf(r);a>=0&&(i.splice(a,0,n),this._doAdd(n))}return this},e.prototype.replace=function(n,r){var i=Fe(this._children,n);return i>=0&&this.replaceAt(r,i),this},e.prototype.replaceAt=function(n,r){var i=this._children,a=i[r];if(n&&n!==this&&n.parent!==this&&n!==a){i[r]=n,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),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,a=Fe(i,n);return a<0?this:(i.splice(a,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 a=n[i];r&&a.removeSelfFromZr(r),a.parent=null}return n.length=0,this},e.prototype.eachChild=function(n,r){for(var i=this._children,a=0;a<i.length;a++){var o=i[a];n.call(r,o,a)}return this},e.prototype.traverse=function(n,r){for(var i=0;i<this._children.length;i++){var a=this._children[i],o=n.call(r,a);a.isGroup&&!o&&a.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 ze(0,0,0,0),i=n||this._children,a=[],o=null,s=0;s<i.length;s++){var l=i[s];if(!(l.ignore||l.invisible)){var u=l.getBoundingRect(),c=l.getLocalTransform(a);c?(ze.applyTransform(r,u,c),o=o||r.clone(),o.union(r)):(o=o||u.clone(),o.union(u))}}return o||r},e}(w_);u7.prototype.type="group";const Me=u7;/*!
  290. * ZRender, a high performance 2d drawing library.
  291. *
  292. * Copyright (c) 2013, Baidu Inc.
  293. * All rights reserved.
  294. *
  295. * LICENSE
  296. * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
  297. */var Hg={},Vu={};function UMe(t){delete Vu[t]}function XMe(t){if(!t)return!1;if(typeof t=="string")return Lg(t,1)<Z$;if(t.colorStops){for(var e=t.colorStops,n=0,r=e.length,i=0;i<r;i++)n+=Lg(e[i].color,1);return n/=r,n<Z$}return!1}var YMe=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 a=new oMe,o=r.renderer||"canvas";if(Hg[o]||(o=Ue(Hg)[0]),process.env.NODE_ENV!=="production"&&!Hg[o])throw new Error("Renderer '"+o+"' is not imported. Please import it first.");r.useDirtyRect=r.useDirtyRect==null?!1:r.useDirtyRect;var s=new Hg[o](n,a,r,e),l=r.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!Je.node&&!Je.worker&&!l?new BMe(s.getViewportRoot(),s.root):null,c=r.useCoarsePointer,f=c==null||c==="auto"?Je.touchEventsSupported:!!c,d=44,h;f&&(h=Re(r.pointerSize,d)),this.handler=new OW(a,s,u,s.root,h),this.animation=new IMe({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=XMe(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=fd();this._needsRefresh&&(n=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(n=!0,this.refreshHoverImmediately());var i=fd();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 Me&&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,UMe(this.id))},t}();function n2(t,e){var n=new YMe(l$(),t,e);return Vu[n.id]=n,n}function qMe(t){t.dispose()}function KMe(){for(var t in Vu)Vu.hasOwnProperty(t)&&Vu[t].dispose();Vu={}}function JMe(t){return Vu[t]}function c7(t,e){Hg[t]=e}var r2;function f7(t){if(typeof r2=="function")return r2(t)}function d7(t){r2=t}var eIe="5.6.0";const tIe=Object.freeze(Object.defineProperty({__proto__:null,dispose:qMe,disposeAll:KMe,getElementSSRData:f7,getInstance:JMe,init:n2,registerPainter:c7,registerSSRDataGetter:d7,version:eIe},Symbol.toStringTag,{value:"Module"}));var h7=1e-4,p7=20;function nIe(t){return t.replace(/^\s+|\s+$/g,"")}function mt(t,e,n,r){var i=e[0],a=e[1],o=n[0],s=n[1],l=a-i,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(r)if(l>0){if(t<=i)return o;if(t>=a)return s}else{if(t>=i)return o;if(t<=a)return s}else{if(t===i)return o;if(t===a)return s}return(t-i)/l*u+o}function he(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 pe(t)?nIe(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):t==null?NaN:+t}function Ut(t,e,n){return e==null&&(e=10),e=Math.min(Math.max(0,e),p7),t=(+t).toFixed(e),n?t:+t}function di(t){return t.sort(function(e,n){return e-n}),t}function Pa(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 C_(t)}function C_(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),r=n>0?+e.slice(n+1):0,i=n>0?n:e.length,a=e.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-r)}function i2(t,e){var n=Math.log,r=Math.LN10,i=Math.floor(n(t[1]-t[0])/r),a=Math.round(n(Math.abs(e[1]-e[0]))/r),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function rIe(t,e,n){if(!t[e])return 0;var r=g7(t,n);return r[e]||0}function g7(t,e){var n=Vi(t,function(h,g){return h+(isNaN(g)?0:g)},0);if(n===0)return[];for(var r=Math.pow(10,e),i=ie(t,function(h){return(isNaN(h)?0:h)/n*r*100}),a=r*100,o=ie(i,function(h){return Math.floor(h)}),s=Vi(o,function(h,g){return h+g},0),l=ie(i,function(h,g){return h-o[g]});s<a;){for(var u=Number.NEGATIVE_INFINITY,c=null,f=0,d=l.length;f<d;++f)l[f]>u&&(u=l[f],c=f);++o[c],l[c]=0,++s}return ie(o,function(h){return h/r})}function iIe(t,e){var n=Math.max(Pa(t),Pa(e)),r=t+e;return n>p7?r:Ut(r,n)}var a2=9007199254740991;function o2(t){var e=Math.PI*2;return(t%e+e)%e}function gd(t){return t>-h7&&t<h7}var aIe=/^(?:(\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 hi(t){if(t instanceof Date)return t;if(pe(t)){var e=aIe.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 v7(t){return Math.pow(10,jg(t))}function jg(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 s2(t,e){var n=jg(t),r=Math.pow(10,n),i=t/r,a;return e?i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10:i<1?a=1:i<2?a=2:i<3?a=3:i<5?a=5:a=10,t=a*r,n>=-20?+t.toFixed(n<0?-n:0):t}function T_(t,e){var n=(t.length-1)*e+1,r=Math.floor(n),i=+t[r-1],a=n-r;return a?i+a*(t[r]-i):i}function l2(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,a=t[r].close,o=0;o<2;o++)i[o]<=e&&(i[o]=e,a[o]=o?1:1-n),e=i[o],n=a[o];i[0]===i[1]&&a[0]*a[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 ao(t){var e=parseFloat(t);return e==t&&(e!==0||!pe(t)||t.indexOf("x")<=0)?e:NaN}function P_(t){return!isNaN(ao(t))}function m7(){return Math.round(Math.random()*9)}function y7(t,e){return e===0?t:y7(e,t%e)}function b7(t,e){return t==null?e:e==null?t:t*e/y7(t,e)}var oIe="[ECharts] ",_7={},sIe=typeof console<"u"&&console.warn&&console.log;function $_(t,e,n){if(sIe){if(n){if(_7[e])return;_7[e]=!0}console[t](oIe+e)}}function lIe(t,e){$_("log",t,e)}function Wt(t,e){$_("warn",t,e)}function Gn(t,e){$_("error",t,e)}function Hi(t){process.env.NODE_ENV!=="production"&&$_("warn","DEPRECATED: "+t,!0)}function nn(t,e,n){process.env.NODE_ENV!=="production"&&Hi((n?"["+n+"]":"")+(t+" is deprecated, use "+e+" instead."))}function _r(){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":Ys(i)?"NaN":i instanceof Date?"Date("+i.toISOString()+")":xe(i)?"function () { ... }":f$(i)?i+"":null};n=ie(t,function(i){if(pe(i))return i;var a=r(i);if(a!=null)return a;if(typeof JSON<"u"&&JSON.stringify)try{return JSON.stringify(i,function(o,s){var l=r(s);return l??s})}catch{return"?"}else return"?"}).join(" ")}return n}function dt(t){throw new Error(t)}function O7(t,e,n){return(e-t)*n+t}var S7="series\0",x7="\0_ec_\0";function xt(t){return t instanceof Array?t:t==null?[]:[t]}function Bu(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 a=n[r];!t.emphasis[e].hasOwnProperty(a)&&t[e].hasOwnProperty(a)&&(t.emphasis[e][a]=t[e][a])}}}var w7=["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 vd(t){return we(t)&&!re(t)&&!(t instanceof Date)?t.value:t}function uIe(t){return we(t)&&!(t instanceof Array)}function C7(t,e,n){var r=n==="normalMerge",i=n==="replaceMerge",a=n==="replaceAll";t=t||[],e=(e||[]).slice();var o=be();k(e,function(l,u){if(!we(l)){e[u]=null;return}process.env.NODE_ENV!=="production"&&(l.id!=null&&!$7(l.id)&&P7(l.id),l.name!=null&&!$7(l.name)&&P7(l.name))});var s=cIe(t,o,n);return(r||i)&&fIe(s,t,o,e),r&&dIe(s,e),r||i?hIe(s,e,i):a&&pIe(s,e),gIe(s),s}function cIe(t,e,n){var r=[];if(n==="replaceAll")return r;for(var i=0;i<t.length;i++){var a=t[i];a&&a.id!=null&&e.set(a.id,i),r.push({existing:n==="replaceMerge"||md(a)?null:a,newOption:null,keyInfo:null,brandNew:null})}return r}function fIe(t,e,n,r){k(r,function(i,a){if(!(!i||i.id==null)){var o=Gg(i.id),s=n.get(o);if(s!=null){var l=t[s];Pe(!l.newOption,'Duplicated option on id "'+o+'".'),l.newOption=i,l.existing=e[s],r[a]=null}}})}function dIe(t,e){k(e,function(n,r){if(!(!n||n.name==null))for(var i=0;i<t.length;i++){var a=t[i].existing;if(!t[i].newOption&&a&&(a.id==null||n.id==null)&&!md(n)&&!md(a)&&T7("name",a,n)){t[i].newOption=n,e[r]=null;return}}})}function hIe(t,e,n){k(e,function(r){if(r){for(var i,a=0;(i=t[a])&&(i.newOption||md(i.existing)||i.existing&&r.id!=null&&!T7("id",r,i.existing));)a++;i?(i.newOption=r,i.brandNew=n):t.push({newOption:r,brandNew:n,existing:null,keyInfo:null}),a++}})}function pIe(t,e){k(e,function(n){t.push({newOption:n,brandNew:!0,existing:null,keyInfo:null})})}function gIe(t){var e=be();k(t,function(n){var r=n.existing;r&&e.set(r.id,n)}),k(t,function(n){var r=n.newOption;Pe(!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={})}),k(t,function(n,r){var i=n.existing,a=n.newOption,o=n.keyInfo;if(we(a)){if(o.name=a.name!=null?Gg(a.name):i?i.name:S7+r,i)o.id=Gg(i.id);else if(a.id!=null)o.id=Gg(a.id);else{var s=0;do o.id="\0"+o.name+"\0"+s++;while(e.get(o.id))}e.set(o.id,n)}})}function T7(t,e,n){var r=gn(e[t],null),i=gn(n[t],null);return r!=null&&i!=null&&r===i}function Gg(t){if(process.env.NODE_ENV!=="production"&&t==null)throw new Error;return gn(t,"")}function gn(t,e){return t==null?e:pe(t)?t:it(t)||vg(t)?t+"":e}function P7(t){process.env.NODE_ENV!=="production"&&Wt("`"+t+"` is invalid id or name. Must be a string or number.")}function $7(t){return vg(t)||P_(t)}function u2(t){var e=t.name;return!!(e&&e.indexOf(S7))}function md(t){return t&&t.id!=null&&Gg(t.id).indexOf(x7)===0}function vIe(t){return x7+t}function mIe(t,e,n){k(t,function(r){var i=r.newOption;we(i)&&(r.keyInfo.mainType=e,r.keyInfo.subType=yIe(e,i,r.existing,n))})}function yIe(t,e,n,r){var i=e.type?e.type:n?n.subType:r.determineSubType(t,e);return i}function bIe(t,e){var n={},r={};return i(t||[],n),i(e||[],r,n),[a(n),a(r)];function i(o,s,l){for(var u=0,c=o.length;u<c;u++){var f=gn(o[u].seriesId,null);if(f==null)return;for(var d=xt(o[u].dataIndex),h=l&&l[f],g=0,v=d.length;g<v;g++){var m=d[g];h&&h[m]?h[m]=null:(s[f]||(s[f]={}))[m]=1}}}function a(o,s){var l=[];for(var u in o)if(o.hasOwnProperty(u)&&o[u]!=null)if(s)l.push(+u);else{var c=a(o[u],!0);c.length&&l.push({seriesId:u,dataIndex:c})}return l}}function zu(t,e){if(e.dataIndexInside!=null)return e.dataIndexInside;if(e.dataIndex!=null)return re(e.dataIndex)?ie(e.dataIndex,function(n){return t.indexOfRawIndex(n)}):t.indexOfRawIndex(e.dataIndex);if(e.name!=null)return re(e.name)?ie(e.name,function(n){return t.indexOfName(n)}):t.indexOfName(e.name)}function et(){var t="__ec_inner_"+_Ie++;return function(e){return e[t]||(e[t]={})}}var _Ie=m7();function Zg(t,e,n){var r=c2(e,n),i=r.mainTypeSpecified,a=r.queryOptionMap,o=r.others,s=o,l=n?n.defaultMainType:null;return!i&&l&&a.set(l,{}),a.each(function(u,c){var f=Ug(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 c2(t,e){var n;if(pe(t)){var r={};r[t+"Index"]=0,n=r}else n=t;var i=be(),a={},o=!1;return k(n,function(s,l){if(l==="dataIndex"||l==="dataIndexInside"){a[l]=s;return}var u=l.match(/^(\w+)(Index|Id|Name)$/)||[],c=u[1],f=(u[2]||"").toLowerCase();if(!(!c||!f||e&&e.includeMainTypes&&Fe(e.includeMainTypes,c)<0)){o=o||!!c;var d=i.get(c)||i.set(c,{});d[f]=s}}),{mainTypeSpecified:o,queryOptionMap:i,others:a}}var on={useDefault:!0,enableAll:!1,enableNone:!1},OIe={useDefault:!1,enableAll:!0,enableNone:!0};function Ug(t,e,n,r){r=r||on;var i=n.index,a=n.id,o=n.name,s={models:null,specified:i!=null||a!=null||o!=null};if(!s.specified){var l=void 0;return s.models=r.useDefault&&(l=t.getComponent(e))?[l]:[],s}return i==="none"||i===!1?(Pe(r.enableNone,'`"none"` or `false` is not a valid value on index option.'),s.models=[],s):(i==="all"&&(Pe(r.enableAll,'`"all"` is not a valid value on index option.'),i=a=o=null),s.models=t.queryComponents({mainType:e,index:i,id:a,name:o}),s)}function A7(t,e,n){t.setAttribute?t.setAttribute(e,n):t[e]=n}function SIe(t,e){return t.getAttribute?t.getAttribute(e):t[e]}function xIe(t){return t==="auto"?Je.domSupported?"html":"richText":t||"html"}function f2(t,e){var n=be(),r=[];return k(t,function(i){var a=e(i);(n.get(a)||(r.push(a),n.set(a,[]))).push(i)}),{keys:r,buckets:n}}function E7(t,e,n,r,i){var a=e==null||e==="auto";if(r==null)return r;if(it(r)){var o=O7(n||0,r,i);return Ut(o,a?Math.max(Pa(n||0),Pa(r)):e)}else{if(pe(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 h=l&&l[f]?l[f]:0,g=u[f],o=O7(h,g,i);s[f]=Ut(o,a?Math.max(Pa(h),Pa(g)):e)}}return s}}var wIe=".",Fu="___EC__COMPONENT__CONTAINER___",M7="___EC__EXTENDED_CLASS___";function oo(t){var e={main:"",sub:""};if(t){var n=t.split(wIe);e.main=n[0]||"",e.sub=n[1]||""}return e}function CIe(t){Pe(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function TIe(t){return!!(t&&t[M7])}function d2(t,e){t.$constructor=t,t.extend=function(n){process.env.NODE_ENV!=="production"&&k(e,function(a){n[a]||console.warn("Method `"+a+"` should be implemented"+(n.type?" in "+n.type:"")+".")});var r=this,i;return PIe(r)?i=function(a){U(o,a);function o(){return a.apply(this,arguments)||this}return o}(r):(i=function(){(n.$constructor||r).apply(this,arguments)},u$(i,this)),ne(i.prototype,n),i[M7]=!0,i.extend=this.extend,i.superCall=EIe,i.superApply=MIe,i.superClass=r,i}}function PIe(t){return xe(t)&&/^class\s/.test(Function.prototype.toString.call(t))}function I7(t,e){t.extend=e.extend}var $Ie=Math.round(Math.random()*10);function AIe(t){var e=["__\0is_clz",$Ie++].join("_");t.prototype[e]=!0,process.env.NODE_ENV!=="production"&&Pe(!t.isInstance,'The method "is" can not be defined.'),t.isInstance=function(n){return!!(n&&n[e])}}function EIe(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 MIe(t,e,n){return this.superClass.prototype[e].apply(t,n)}function A_(t){var e={};t.registerClass=function(r){var i=r.type||r.prototype.type;if(i){CIe(i),r.prototype.type=i;var a=oo(i);if(!a.sub)process.env.NODE_ENV!=="production"&&e[a.main]&&console.warn(a.main+" exists."),e[a.main]=r;else if(a.sub!==Fu){var o=n(a);o[a.sub]=r}}return r},t.getClass=function(r,i,a){var o=e[r];if(o&&o[Fu]&&(o=i?o[i]:null),a&&!o)throw new Error(i?"Component "+r+"."+(i||"")+" is used but not imported.":r+".type should be specified.");return o},t.getClassesByMainType=function(r){var i=oo(r),a=[],o=e[i.main];return o&&o[Fu]?k(o,function(s,l){l!==Fu&&a.push(s)}):a.push(o),a},t.hasClass=function(r){var i=oo(r);return!!e[i.main]},t.getAllClassMainTypes=function(){var r=[];return k(e,function(i,a){r.push(a)}),r},t.hasSubTypes=function(r){var i=oo(r),a=e[i.main];return a&&a[Fu]};function n(r){var i=e[r.main];return(!i||!i[Fu])&&(i=e[r.main]={},i[Fu]=!0),i}}function Wu(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,a){for(var o={},s=0;s<t.length;s++){var l=t[s][1];if(!(i&&Fe(i,l)>=0||a&&Fe(a,l)<0)){var u=r.getShallow(l,e);u!=null&&(o[t[s][0]]=u)}}return o}}var IIe=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],DIe=Wu(IIe),RIe=function(){function t(){}return t.prototype.getAreaStyle=function(e,n){return DIe(this,e,n)},t}(),h2=new Dg(50);function kIe(t){if(typeof t=="string"){var e=h2.get(t);return e&&e.image}else return t}function p2(t,e,n,r,i){if(t)if(typeof t=="string"){if(e&&e.__zrImageSrc===t||!n)return e;var a=h2.get(t),o={hostEl:n,cb:r,cbPayload:i};return a?(e=a.image,!E_(e)&&a.pending.push(o)):(e=Oa.loadImage(t,D7,D7),e.__zrImageSrc=t,h2.put(t,e.__cachedImgObj={image:e,pending:[o]})),e}else return t;else return e}function D7(){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 E_(t){return t&&t.width&&t.height}var g2=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function R7(t,e,n,r,i){if(!e)return"";var a=(t+"").split(`
  298. `);i=k7(e,n,r,i);for(var o=0,s=a.length;o<s;o++)a[o]=N7(a[o],i);return a.join(`
  299. `)}function k7(t,e,n,r){r=r||{};var i=ne({},r);i.font=e,n=Re(n,"..."),i.maxIterations=Re(r.maxIterations,2);var a=i.minChar=Re(r.minChar,0);i.cnCharWidth=fi("国",e);var o=i.ascCharWidth=fi("a",e);i.placeholder=Re(r.placeholder,"");for(var s=t=Math.max(0,t-1),l=0;l<a&&s>=o;l++)s-=o;var u=fi(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 N7(t,e){var n=e.containerWidth,r=e.font,i=e.contentWidth;if(!n)return"";var a=fi(t,r);if(a<=n)return t;for(var o=0;;o++){if(a<=i||o>=e.maxIterations){t+=e.ellipsis;break}var s=o===0?NIe(t,i,e.ascCharWidth,e.cnCharWidth):a>0?Math.floor(t.length*i/a):0;t=t.substr(0,s),a=fi(t,r)}return t===""&&(t=e.placeholder),t}function NIe(t,e,n,r){for(var i=0,a=0,o=t.length;a<o&&i<e;a++){var s=t.charCodeAt(a);i+=0<=s&&s<=127?n:r}return a}function LIe(t,e){t!=null&&(t+="");var n=e.overflow,r=e.padding,i=e.font,a=n==="truncate",o=S_(i),s=Re(e.lineHeight,o),l=!!e.backgroundColor,u=e.lineOverflow==="truncate",c=e.width,f;c!=null&&(n==="break"||n==="breakAll")?f=t?V7(t,e.font,c,n==="breakAll",0).lines:[]:f=t?t.split(`
  300. `):[];var d=f.length*s,h=Re(e.height,d);if(d>h&&u){var g=Math.floor(h/s);f=f.slice(0,g)}if(t&&a&&c!=null)for(var v=k7(c,i,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),m=0;m<f.length;m++)f[m]=N7(f[m],v);for(var y=h,b=0,m=0;m<f.length;m++)b=Math.max(fi(f[m],i),b);c==null&&(c=b);var _=b;return r&&(y+=r[0]+r[2],_+=r[1]+r[3],c+=r[1]+r[3]),l&&(_=c),{lines:f,height:h,outerWidth:_,outerHeight:y,lineHeight:s,calculatedLineHeight:o,contentWidth:b,contentHeight:d,width:c}}var VIe=function(){function t(){}return t}(),L7=function(){function t(e){this.tokens=[],e&&(this.tokens=e)}return t}(),BIe=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 zIe(t,e){var n=new BIe;if(t!=null&&(t+=""),!t)return n;for(var r=e.width,i=e.height,a=e.overflow,o=(a==="break"||a==="breakAll")&&r!=null?{width:r,accumWidth:0,breakAll:a==="breakAll"}:null,s=g2.lastIndex=0,l;(l=g2.exec(t))!=null;){var u=l.index;u>s&&v2(n,t.substring(s,u),e,o),v2(n,l[2],e,o,l[1]),s=g2.lastIndex}s<t.length&&v2(n,t.substring(s,t.length),e,o);var c=[],f=0,d=0,h=e.padding,g=a==="truncate",v=e.lineOverflow==="truncate";function m(V,L,z){V.width=L,V.lineHeight=z,f+=z,d=Math.max(d,L)}e:for(var y=0;y<n.lines.length;y++){for(var b=n.lines[y],_=0,O=0,S=0;S<b.tokens.length;S++){var x=b.tokens[S],w=x.styleName&&e.rich[x.styleName]||{},T=x.textPadding=w.padding,P=T?T[1]+T[3]:0,C=x.font=w.font||e.font;x.contentHeight=S_(C);var $=Re(w.height,x.contentHeight);if(x.innerHeight=$,T&&($+=T[0]+T[2]),x.height=$,x.lineHeight=ui(w.lineHeight,e.lineHeight,$),x.align=w&&w.align||e.align,x.verticalAlign=w&&w.verticalAlign||"middle",v&&i!=null&&f+x.lineHeight>i){S>0?(b.tokens=b.tokens.slice(0,S),m(b,O,_),n.lines=n.lines.slice(0,y+1)):n.lines=n.lines.slice(0,y);break e}var A=w.width,E=A==null||A==="auto";if(typeof A=="string"&&A.charAt(A.length-1)==="%")x.percentWidth=A,c.push(x),x.contentWidth=fi(x.text,C);else{if(E){var D=w.backgroundColor,M=D&&D.image;M&&(M=kIe(M),E_(M)&&(x.width=Math.max(x.width,M.width*$/M.height)))}var R=g&&r!=null?r-O:null;R!=null&&R<x.width?!E||R<P?(x.text="",x.width=x.contentWidth=0):(x.text=R7(x.text,R-P,C,e.ellipsis,{minChar:e.truncateMinChar}),x.width=x.contentWidth=fi(x.text,C)):x.contentWidth=fi(x.text,C)}x.width+=P,O+=x.width,w&&(_=Math.max(_,x.lineHeight))}m(b,O,_)}n.outerWidth=n.width=Re(r,d),n.outerHeight=n.height=Re(i,f),n.contentHeight=f,n.contentWidth=d,h&&(n.outerWidth+=h[1]+h[3],n.outerHeight+=h[0]+h[2]);for(var y=0;y<c.length;y++){var x=c[y],N=x.percentWidth;x.width=parseInt(N,10)/100*n.width}return n}function v2(t,e,n,r,i){var a=e==="",o=i&&n.rich[i]||{},s=t.lines,l=o.font||n.font,u=!1,c,f;if(r){var d=o.padding,h=d?d[1]+d[3]:0;if(o.width!=null&&o.width!=="auto"){var g=Ta(o.width,r.width)+h;s.length>0&&g+r.accumWidth>r.width&&(c=e.split(`
  301. `),u=!0),r.accumWidth=g}else{var v=V7(e,l,r.width,r.breakAll,r.accumWidth);r.accumWidth=v.accumWidth+h,f=v.linesWidths,c=v.lines}}else c=e.split(`
  302. `);for(var m=0;m<c.length;m++){var y=c[m],b=new VIe;if(b.styleName=i,b.text=y,b.isLineHolder=!y&&!a,typeof o.width=="number"?b.width=o.width:b.width=f?f[m]:fi(y,l),!m&&!u){var _=(s[s.length-1]||(s[0]=new L7)).tokens,O=_.length;O===1&&_[0].isLineHolder?_[0]=b:(y||!O||a)&&_.push(b)}else s.push(new L7([b]))}}function FIe(t){var e=t.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var WIe=Vi(",&?/;] ".split(""),function(t,e){return t[e]=!0,t},{});function QIe(t){return FIe(t)?!!WIe[t]:!0}function V7(t,e,n,r,i){for(var a=[],o=[],s="",l="",u=0,c=0,f=0;f<t.length;f++){var d=t.charAt(f);if(d===`
  303. `){l&&(s+=l,c+=u),a.push(s),o.push(c),s="",l="",u=0,c=0;continue}var h=fi(d,e),g=r?!1:!QIe(d);if(a.length?c+h>n:i+c+h>n){c?(s||l)&&(g?(s||(s=l,l="",u=0,c=u),a.push(s),o.push(c-u),l+=d,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=d,c=h)):g?(a.push(l),o.push(u),l=d,u=h):(a.push(d),o.push(h));continue}c+=h,g?(l+=d,u+=h):(l&&(s+=l,l="",u=0),s+=d)}return!a.length&&!s&&(s=t,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(c)),a.length===1&&(c+=i),{accumWidth:c,lines:a,linesWidths:o}}var m2="__zr_style_"+Math.round(Math.random()*10),Qu={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},M_={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Qu[m2]=!0;var B7=["z","z2","invisible"],HIe=["invisible"],jIe=function(t){U(e,t);function e(n){return t.call(this,n)||this}return e.prototype._init=function(n){for(var r=Ue(n),i=0;i<r.length;i++){var a=r[i];a==="style"?this.useStyle(n[a]):t.prototype.attrKV.call(this,a,n[a])}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,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&GIe(this,n,r)||o&&!o[0]&&!o[3])return!1;if(i&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&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),a=this.getBoundingRect();return a.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(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,l=a.shadowOffsetY||0;n=this._paintRect||(this._paintRect=new ze(0,0,0,0)),r?ze.applyTransform(n,i,r):n.copy(i),(o||s||l)&&(n.width+=o*2+Math.abs(s),n.height+=o*2+Math.abs(l),n.x=Math.min(n.x,n.x+s-o),n.y=Math.min(n.y,n.y+l-o));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 ze(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:ne(this.style,n),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(n){n||this.markRedraw(),this.__dirty|=Eg,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Eg)},e.prototype.styleUpdated=function(){this.__dirty&=~Eg},e.prototype.createStyle=function(n){return _g(Qu,n)},e.prototype.useStyle=function(n){n[m2]||(n=this.createStyle(n)),this.__inHover?this.__hoverStyle=n:this.style=n,this.dirtyStyle()},e.prototype.isStyleObject=function(n){return n[m2]},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,B7)},e.prototype._applyStateObj=function(n,r,i,a,o,s){t.prototype._applyStateObj.call(this,n,r,i,a,o,s);var l=!(r&&a),u;if(r&&r.style?o?a?u=r.style:(u=this._mergeStyle(this.createStyle(),i.style),this._mergeStyle(u,r.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:i.style),this._mergeStyle(u,r.style)):l&&(u=i.style),u)if(o){var c=this.style;if(this.style=this.createStyle(l?{}:c),l)for(var f=Ue(c),d=0;d<f.length;d++){var h=f[d];h in u&&(u[h]=u[h],this.style[h]=c[h])}for(var g=Ue(u),d=0;d<g.length;d++){var h=g[d];this.style[h]=this.style[h]}this._transitionState(n,{style:u},s,this.getAnimationStyleProps())}else this.useStyle(u);for(var v=this.__inHover?HIe:B7,d=0;d<v.length;d++){var h=v[d];r&&r[h]!=null?this[h]=r[h]:l&&i[h]!=null&&(this[h]=i[h])}},e.prototype._mergeStates=function(n){for(var r=t.prototype._mergeStates.call(this,n),i,a=0;a<n.length;a++){var o=n[a];o.style&&(i=i||{},this._mergeStyle(i,o.style))}return i&&(r.style=i),r},e.prototype._mergeStyle=function(n,r){return ne(n,r),n},e.prototype.getAnimationStyleProps=function(){return M_},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=ci|Eg}(),e}(w_),y2=new ze(0,0,0,0),b2=new ze(0,0,0,0);function GIe(t,e,n){return y2.copy(t.getBoundingRect()),t.transform&&y2.applyTransform(t.transform),b2.width=e,b2.height=n,!y2.intersect(b2)}const ji=jIe;var Fr=Math.min,Wr=Math.max,_2=Math.sin,O2=Math.cos,Hu=Math.PI*2,I_=qs(),D_=qs(),R_=qs();function k_(t,e,n){if(t.length!==0){for(var r=t[0],i=r[0],a=r[0],o=r[1],s=r[1],l=1;l<t.length;l++)r=t[l],i=Fr(i,r[0]),a=Wr(a,r[0]),o=Fr(o,r[1]),s=Wr(s,r[1]);e[0]=i,e[1]=o,n[0]=a,n[1]=s}}function z7(t,e,n,r,i,a){i[0]=Fr(t,n),i[1]=Fr(e,r),a[0]=Wr(t,n),a[1]=Wr(e,r)}var F7=[],W7=[];function ZIe(t,e,n,r,i,a,o,s,l,u){var c=DW,f=wn,d=c(t,n,i,o,F7);l[0]=1/0,l[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var h=0;h<d;h++){var g=f(t,n,i,o,F7[h]);l[0]=Fr(g,l[0]),u[0]=Wr(g,u[0])}d=c(e,r,a,s,W7);for(var h=0;h<d;h++){var v=f(e,r,a,s,W7[h]);l[1]=Fr(v,l[1]),u[1]=Wr(v,u[1])}l[0]=Fr(t,l[0]),u[0]=Wr(t,u[0]),l[0]=Fr(o,l[0]),u[0]=Wr(o,u[0]),l[1]=Fr(e,l[1]),u[1]=Wr(e,u[1]),l[1]=Fr(s,l[1]),u[1]=Wr(s,u[1])}function UIe(t,e,n,r,i,a,o,s){var l=kW,u=Nn,c=Wr(Fr(l(t,n,i),1),0),f=Wr(Fr(l(e,r,a),1),0),d=u(t,n,i,c),h=u(e,r,a,f);o[0]=Fr(t,i,d),o[1]=Fr(e,a,h),s[0]=Wr(t,i,d),s[1]=Wr(e,a,h)}function XIe(t,e,n,r,i,a,o,s,l){var u=rs,c=is,f=Math.abs(i-a);if(f%Hu<1e-4&&f>1e-4){s[0]=t-n,s[1]=e-r,l[0]=t+n,l[1]=e+r;return}if(I_[0]=O2(i)*n+t,I_[1]=_2(i)*r+e,D_[0]=O2(a)*n+t,D_[1]=_2(a)*r+e,u(s,I_,D_),c(l,I_,D_),i=i%Hu,i<0&&(i=i+Hu),a=a%Hu,a<0&&(a=a+Hu),i>a&&!o?a+=Hu:i<a&&o&&(i+=Hu),o){var d=a;a=i,i=d}for(var h=0;h<a;h+=Math.PI/2)h>i&&(R_[0]=O2(h)*n+t,R_[1]=_2(h)*r+e,u(s,R_,s),c(l,R_,l))}var Pt={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},ju=[],Gu=[],so=[],ol=[],lo=[],uo=[],S2=Math.min,x2=Math.max,Zu=Math.cos,Uu=Math.sin,ls=Math.abs,w2=Math.PI,sl=w2*2,C2=typeof Float32Array<"u",Xg=[];function T2(t){var e=Math.round(t/w2*1e8)/1e8;return e%2*w2}function P2(t,e){var n=T2(t[0]);n<0&&(n+=sl);var r=n-t[0],i=t[1];i+=r,!e&&i-n>=sl?i=n+sl:e&&n-i>=sl?i=n-sl:!e&&n>i?i=n+(sl-T2(n-i)):e&&n<i&&(i=n-(sl-T2(i-n))),t[0]=n,t[1]=i}var co=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=ls(r/O_/e)||0,this._uy=ls(r/O_/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(Pt.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=ls(e-this._xi),i=ls(n-this._yi),a=r>this._ux||i>this._uy;if(this.addData(Pt.L,e,n),this._ctx&&a&&this._ctx.lineTo(e,n),a)this._xi=e,this._yi=n,this._pendingPtDist=0;else{var o=r*r+i*i;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=n,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(e,n,r,i,a,o){return this._drawPendingPt(),this.addData(Pt.C,e,n,r,i,a,o),this._ctx&&this._ctx.bezierCurveTo(e,n,r,i,a,o),this._xi=a,this._yi=o,this},t.prototype.quadraticCurveTo=function(e,n,r,i){return this._drawPendingPt(),this.addData(Pt.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,a,o){this._drawPendingPt(),Xg[0]=i,Xg[1]=a,P2(Xg,o),i=Xg[0],a=Xg[1];var s=a-i;return this.addData(Pt.A,e,n,r,r,i,s,0,o?0:1),this._ctx&&this._ctx.arc(e,n,r,i,a,o),this._xi=Zu(a)*r+e,this._yi=Uu(a)*r+n,this},t.prototype.arcTo=function(e,n,r,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,n,r,i,a),this},t.prototype.rect=function(e,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,n,r,i),this.addData(Pt.R,e,n,r,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Pt.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)&&C2&&(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,a=0;a<n;a++)r+=e[a].len();C2&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+r));for(var a=0;a<n;a++)for(var o=e[a].data,s=0;s<o.length;s++)this.data[i++]=o[s];this._len=i},t.prototype.addData=function(e,n,r,i,a,o,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,C2&&this._len>11&&(this.data=new Float32Array(e)))}},t.prototype.getBoundingRect=function(){so[0]=so[1]=lo[0]=lo[1]=Number.MAX_VALUE,ol[0]=ol[1]=uo[0]=uo[1]=-Number.MAX_VALUE;var e=this.data,n=0,r=0,i=0,a=0,o;for(o=0;o<this._len;){var s=e[o++],l=o===1;switch(l&&(n=e[o],r=e[o+1],i=n,a=r),s){case Pt.M:n=i=e[o++],r=a=e[o++],lo[0]=i,lo[1]=a,uo[0]=i,uo[1]=a;break;case Pt.L:z7(n,r,e[o],e[o+1],lo,uo),n=e[o++],r=e[o++];break;case Pt.C:ZIe(n,r,e[o++],e[o++],e[o++],e[o++],e[o],e[o+1],lo,uo),n=e[o++],r=e[o++];break;case Pt.Q:UIe(n,r,e[o++],e[o++],e[o],e[o+1],lo,uo),n=e[o++],r=e[o++];break;case Pt.A:var u=e[o++],c=e[o++],f=e[o++],d=e[o++],h=e[o++],g=e[o++]+h;o+=1;var v=!e[o++];l&&(i=Zu(h)*f+u,a=Uu(h)*d+c),XIe(u,c,f,d,h,g,v,lo,uo),n=Zu(g)*f+u,r=Uu(g)*d+c;break;case Pt.R:i=n=e[o++],a=r=e[o++];var m=e[o++],y=e[o++];z7(i,a,i+m,a+y,lo,uo);break;case Pt.Z:n=i,r=a;break}rs(so,so,lo),is(ol,ol,uo)}return o===0&&(so[0]=so[1]=ol[0]=ol[1]=0),new ze(so[0],so[1],ol[0]-so[0],ol[1]-so[1])},t.prototype._calculateLength=function(){var e=this.data,n=this._len,r=this._ux,i=this._uy,a=0,o=0,s=0,l=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,c=0,f=0,d=0;d<n;){var h=e[d++],g=d===1;g&&(a=e[d],o=e[d+1],s=a,l=o);var v=-1;switch(h){case Pt.M:a=s=e[d++],o=l=e[d++];break;case Pt.L:{var m=e[d++],y=e[d++],b=m-a,_=y-o;(ls(b)>r||ls(_)>i||d===n-1)&&(v=Math.sqrt(b*b+_*_),a=m,o=y);break}case Pt.C:{var O=e[d++],S=e[d++],m=e[d++],y=e[d++],x=e[d++],w=e[d++];v=sMe(a,o,O,S,m,y,x,w,10),a=x,o=w;break}case Pt.Q:{var O=e[d++],S=e[d++],m=e[d++],y=e[d++];v=uMe(a,o,O,S,m,y,10),a=m,o=y;break}case Pt.A:var T=e[d++],P=e[d++],C=e[d++],$=e[d++],A=e[d++],E=e[d++],D=E+A;d+=1,g&&(s=Zu(A)*C+T,l=Uu(A)*$+P),v=x2(C,$)*S2(sl,Math.abs(E)),a=Zu(D)*C+T,o=Uu(D)*$+P;break;case Pt.R:{s=a=e[d++],l=o=e[d++];var M=e[d++],R=e[d++];v=M*2+R*2;break}case Pt.Z:{var b=s-a,_=l-o;v=Math.sqrt(b*b+_*_),a=s,o=l;break}}v>=0&&(u[f++]=v,c+=v)}return this._pathLen=c,c},t.prototype.rebuildPath=function(e,n){var r=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,c,f,d,h=n<1,g,v,m=0,y=0,b,_=0,O,S;if(!(h&&(this._pathSegLen||this._calculateLength(),g=this._pathSegLen,v=this._pathLen,b=n*v,!b)))e:for(var x=0;x<o;){var w=r[x++],T=x===1;switch(T&&(u=r[x],c=r[x+1],s=u,l=c),w!==Pt.L&&_>0&&(e.lineTo(O,S),_=0),w){case Pt.M:s=u=r[x++],l=c=r[x++],e.moveTo(u,c);break;case Pt.L:{f=r[x++],d=r[x++];var P=ls(f-u),C=ls(d-c);if(P>i||C>a){if(h){var $=g[y++];if(m+$>b){var A=(b-m)/$;e.lineTo(u*(1-A)+f*A,c*(1-A)+d*A);break e}m+=$}e.lineTo(f,d),u=f,c=d,_=0}else{var E=P*P+C*C;E>_&&(O=f,S=d,_=E)}break}case Pt.C:{var D=r[x++],M=r[x++],R=r[x++],N=r[x++],V=r[x++],L=r[x++];if(h){var $=g[y++];if(m+$>b){var A=(b-m)/$;rl(u,D,R,V,A,ju),rl(c,M,N,L,A,Gu),e.bezierCurveTo(ju[1],Gu[1],ju[2],Gu[2],ju[3],Gu[3]);break e}m+=$}e.bezierCurveTo(D,M,R,N,V,L),u=V,c=L;break}case Pt.Q:{var D=r[x++],M=r[x++],R=r[x++],N=r[x++];if(h){var $=g[y++];if(m+$>b){var A=(b-m)/$;Ig(u,D,R,A,ju),Ig(c,M,N,A,Gu),e.quadraticCurveTo(ju[1],Gu[1],ju[2],Gu[2]);break e}m+=$}e.quadraticCurveTo(D,M,R,N),u=R,c=N;break}case Pt.A:var z=r[x++],B=r[x++],F=r[x++],j=r[x++],K=r[x++],q=r[x++],te=r[x++],X=!r[x++],ee=F>j?F:j,G=ls(F-j)>.001,W=K+q,Q=!1;if(h){var $=g[y++];m+$>b&&(W=K+q*(b-m)/$,Q=!0),m+=$}if(G&&e.ellipse?e.ellipse(z,B,F,j,te,K,W,X):e.arc(z,B,ee,K,W,X),Q)break e;T&&(s=Zu(K)*F+z,l=Uu(K)*j+B),u=Zu(W)*F+z,c=Uu(W)*j+B;break;case Pt.R:s=u=r[x],l=c=r[x+1],f=r[x++],d=r[x++];var J=r[x++],ae=r[x++];if(h){var $=g[y++];if(m+$>b){var oe=b-m;e.moveTo(f,d),e.lineTo(f+S2(oe,J),d),oe-=J,oe>0&&e.lineTo(f+J,d+S2(oe,ae)),oe-=ae,oe>0&&e.lineTo(f+x2(J-oe,0),d+ae),oe-=J,oe>0&&e.lineTo(f,d+x2(ae-oe,0));break e}m+=$}e.rect(f,d,J,ae);break;case Pt.Z:if(h){var $=g[y++];if(m+$>b){var A=(b-m)/$;e.lineTo(u*(1-A)+s*A,c*(1-A)+l*A);break e}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=Pt,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();function ll(t,e,n,r,i,a,o){if(i===0)return!1;var s=i,l=0,u=t;if(o>e+s&&o>r+s||o<e-s&&o<r-s||a>t+s&&a>n+s||a<t-s&&a<n-s)return!1;if(t!==n)l=(e-r)/(t-n),u=(t*r-n*e)/(t-n);else return Math.abs(a-t)<=s/2;var c=l*a-o+u,f=c*c/(l*l+1);return f<=s/2*s/2}function YIe(t,e,n,r,i,a,o,s,l,u,c){if(l===0)return!1;var f=l;if(c>e+f&&c>r+f&&c>a+f&&c>s+f||c<e-f&&c<r-f&&c<a-f&&c<s-f||u>t+f&&u>n+f&&u>i+f&&u>o+f||u<t-f&&u<n-f&&u<i-f&&u<o-f)return!1;var d=RW(t,e,n,r,i,a,o,s,u,c,null);return d<=f/2}function Q7(t,e,n,r,i,a,o,s,l){if(o===0)return!1;var u=o;if(l>e+u&&l>r+u&&l>a+u||l<e-u&&l<r-u&&l<a-u||s>t+u&&s>n+u&&s>i+u||s<t-u&&s<n-u&&s<i-u)return!1;var c=NW(t,e,n,r,i,a,s,l,null);return c<=u/2}var H7=Math.PI*2;function pi(t){return t%=H7,t<0&&(t+=H7),t}var Yg=Math.PI*2;function qIe(t,e,n,r,i,a,o,s,l){if(o===0)return!1;var u=o;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)%Yg<1e-4)return!0;if(a){var f=r;r=pi(i),i=pi(f)}else r=pi(r),i=pi(i);r>i&&(i+=Yg);var d=Math.atan2(l,s);return d<0&&(d+=Yg),d>=r&&d<=i||d+Yg>=r&&d+Yg<=i}function us(t,e,n,r,i,a){if(a>e&&a>r||a<e&&a<r||r===e)return 0;var o=(a-e)/(r-e),s=r<e?1:-1;(o===1||o===0)&&(s=r<e?.5:-.5);var l=o*(n-t)+t;return l===i?1/0:l>i?s:0}var ul=co.CMD,Xu=Math.PI*2,KIe=1e-4;function JIe(t,e){return Math.abs(t-e)<KIe}var Or=[-1,-1,-1],Gi=[-1,-1];function eDe(){var t=Gi[0];Gi[0]=Gi[1],Gi[1]=t}function tDe(t,e,n,r,i,a,o,s,l,u){if(u>e&&u>r&&u>a&&u>s||u<e&&u<r&&u<a&&u<s)return 0;var c=l_(e,r,a,s,u,Or);if(c===0)return 0;for(var f=0,d=-1,h=void 0,g=void 0,v=0;v<c;v++){var m=Or[v],y=m===0||m===1?.5:1,b=wn(t,n,i,o,m);b<l||(d<0&&(d=DW(e,r,a,s,Gi),Gi[1]<Gi[0]&&d>1&&eDe(),h=wn(e,r,a,s,Gi[0]),d>1&&(g=wn(e,r,a,s,Gi[1]))),d===2?m<Gi[0]?f+=h<e?y:-y:m<Gi[1]?f+=g<h?y:-y:f+=s<g?y:-y:m<Gi[0]?f+=h<e?y:-y:f+=s<h?y:-y)}return f}function nDe(t,e,n,r,i,a,o,s){if(s>e&&s>r&&s>a||s<e&&s<r&&s<a)return 0;var l=lMe(e,r,a,s,Or);if(l===0)return 0;var u=kW(e,r,a);if(u>=0&&u<=1){for(var c=0,f=Nn(e,r,a,u),d=0;d<l;d++){var h=Or[d]===0||Or[d]===1?.5:1,g=Nn(t,n,i,Or[d]);g<o||(Or[d]<u?c+=f<e?h:-h:c+=a<f?h:-h)}return c}else{var h=Or[0]===0||Or[0]===1?.5:1,g=Nn(t,n,i,Or[0]);return g<o?0:a<e?h:-h}}function rDe(t,e,n,r,i,a,o,s){if(s-=e,s>n||s<-n)return 0;var l=Math.sqrt(n*n-s*s);Or[0]=-l,Or[1]=l;var u=Math.abs(r-i);if(u<1e-4)return 0;if(u>=Xu-1e-4){r=0,i=Xu;var c=a?1:-1;return o>=Or[0]+t&&o<=Or[1]+t?c:0}if(r>i){var f=r;r=i,i=f}r<0&&(r+=Xu,i+=Xu);for(var d=0,h=0;h<2;h++){var g=Or[h];if(g+t>o){var v=Math.atan2(s,g),c=a?1:-1;v<0&&(v=Xu+v),(v>=r&&v<=i||v+Xu>=r&&v+Xu<=i)&&(v>Math.PI/2&&v<Math.PI*1.5&&(c=-c),d+=c)}}return d}function j7(t,e,n,r,i){for(var a=t.data,o=t.len(),s=0,l=0,u=0,c=0,f=0,d,h,g=0;g<o;){var v=a[g++],m=g===1;switch(v===ul.M&&g>1&&(n||(s+=us(l,u,c,f,r,i))),m&&(l=a[g],u=a[g+1],c=l,f=u),v){case ul.M:c=a[g++],f=a[g++],l=c,u=f;break;case ul.L:if(n){if(ll(l,u,a[g],a[g+1],e,r,i))return!0}else s+=us(l,u,a[g],a[g+1],r,i)||0;l=a[g++],u=a[g++];break;case ul.C:if(n){if(YIe(l,u,a[g++],a[g++],a[g++],a[g++],a[g],a[g+1],e,r,i))return!0}else s+=tDe(l,u,a[g++],a[g++],a[g++],a[g++],a[g],a[g+1],r,i)||0;l=a[g++],u=a[g++];break;case ul.Q:if(n){if(Q7(l,u,a[g++],a[g++],a[g],a[g+1],e,r,i))return!0}else s+=nDe(l,u,a[g++],a[g++],a[g],a[g+1],r,i)||0;l=a[g++],u=a[g++];break;case ul.A:var y=a[g++],b=a[g++],_=a[g++],O=a[g++],S=a[g++],x=a[g++];g+=1;var w=!!(1-a[g++]);d=Math.cos(S)*_+y,h=Math.sin(S)*O+b,m?(c=d,f=h):s+=us(l,u,d,h,r,i);var T=(r-y)*O/_+y;if(n){if(qIe(y,b,O,S,S+x,w,e,T,i))return!0}else s+=rDe(y,b,O,S,S+x,w,T,i);l=Math.cos(S+x)*_+y,u=Math.sin(S+x)*O+b;break;case ul.R:c=l=a[g++],f=u=a[g++];var P=a[g++],C=a[g++];if(d=c+P,h=f+C,n){if(ll(c,f,d,f,e,r,i)||ll(d,f,d,h,e,r,i)||ll(d,h,c,h,e,r,i)||ll(c,h,c,f,e,r,i))return!0}else s+=us(d,f,d,h,r,i),s+=us(c,h,c,f,r,i);break;case ul.Z:if(n){if(ll(l,u,c,f,e,r,i))return!0}else s+=us(l,u,c,f,r,i);l=c,u=f;break}}return!n&&!JIe(u,f)&&(s+=us(l,u,c,f,r,i)||0),s!==0}function iDe(t,e,n){return j7(t,0,!1,e,n)}function aDe(t,e,n,r){return j7(t,e,!0,n,r)}var N_=Te({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Qu),oDe={style:Te({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},M_.style)},$2=io.concat(["invisible","culling","z","z2","zlevel","parent"]),Ge=function(t){U(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 a=i.style;for(var o in r)a[o]!==r[o]&&(a[o]=r[o]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var s=0;s<$2.length;++s)i[$2[s]]=this[$2[s]];i.__dirty|=ci}else this._decalEl&&(this._decalEl=null)},e.prototype.getDecalElement=function(){return this._decalEl},e.prototype._init=function(n){var r=Ue(n);this.shape=this.getDefaultShape();var i=this.getDefaultStyle();i&&this.useStyle(i);for(var a=0;a<r.length;a++){var o=r[a],s=n[o];o==="style"?this.style?ne(this.style,s):this.useStyle(s):o==="shape"?ne(this.shape,s):t.prototype.attrKV.call(this,o,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(pe(n)){var r=Lg(n,0);return r>.5?U$:r>.2?zMe:X$}else if(n)return X$}return U$},e.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(pe(r)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=Lg(n,0)<Z$;if(a===o)return r}},e.prototype.buildPath=function(n,r,i){},e.prototype.pathUpdated=function(){this.__dirty&=~sd},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 co(!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 a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&sd)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),n=o.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),a=this.getBoundingRect(),o=this.style;if(n=i[0],r=i[1],a.contain(n,r)){var s=this.path;if(this.hasStroke()){var l=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(l=Math.max(l,this.strokeContainThreshold)),aDe(s,l/u,n,r)))return!0}if(this.hasFill())return iDe(s,n,r)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=sd,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:ne(i,n),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&sd)},e.prototype.createStyle=function(n){return _g(N_,n)},e.prototype._innerSaveToNormal=function(n){t.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=ne({},this.shape))},e.prototype._applyStateObj=function(n,r,i,a,o,s){t.prototype._applyStateObj.call(this,n,r,i,a,o,s);var l=!(r&&a),u;if(r&&r.shape?o?a?u=r.shape:(u=ne({},i.shape),ne(u,r.shape)):(u=ne({},a?this.shape:i.shape),ne(u,r.shape)):l&&(u=i.shape),u)if(o){this.shape=ne({},this.shape);for(var c={},f=Ue(u),d=0;d<f.length;d++){var h=f[d];typeof u[h]=="object"?this.shape[h]=u[h]:c[h]=u[h]}this._transitionState(n,{shape:c},s)}else this.shape=u,this.dirtyShape()},e.prototype._mergeStates=function(n){for(var r=t.prototype._mergeStates.call(this,n),i,a=0;a<n.length;a++){var o=n[a];o.shape&&(i=i||{},this._mergeStyle(i,o.shape))}return i&&(r.shape=i),r},e.prototype.getAnimationStyleProps=function(){return oDe},e.prototype.isZeroArea=function(){return!1},e.extend=function(n){var r=function(a){U(o,a);function o(s){var l=a.call(this,s)||this;return n.init&&n.init.call(l,s),l}return o.prototype.getDefaultStyle=function(){return $e(n.style)},o.prototype.getDefaultShape=function(){return $e(n.shape)},o}(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=ci|Eg|sd}(),e}(ji),sDe=Te({strokeFirst:!0,font:Us,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},N_),yd=function(t){U(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 _g(sDe,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=Wg(r,n.font,n.textAlign,n.textBaseline);if(i.x+=n.x||0,i.y+=n.y||0,this.hasStroke()){var a=n.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},e.initDefaultProps=function(){var n=e.prototype;n.dirtyRectTolerance=10}(),e}(ji);yd.prototype.type="tspan";var lDe=Te({x:0,y:0},Qu),uDe={style:Te({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},M_.style)};function cDe(t){return!!(t&&typeof t!="string"&&t.width&&t.height)}var G7=function(t){U(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.createStyle=function(n){return _g(lDe,n)},e.prototype._getSize=function(n){var r=this.style,i=r[n];if(i!=null)return i;var a=cDe(r.image)?r.image:this.__image;if(!a)return 0;var o=n==="width"?"height":"width",s=r[o];return s==null?a[n]:a[n]/a[o]*s},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return uDe},e.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new ze(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},e}(ji);G7.prototype.type="image";const Ln=G7;function fDe(t,e){var n=e.x,r=e.y,i=e.width,a=e.height,o=e.r,s,l,u,c;i<0&&(n=n+i,i=-i),a<0&&(r=r+a,a=-a),typeof o=="number"?s=l=u=c=o:o instanceof Array?o.length===1?s=l=u=c=o[0]:o.length===2?(s=u=o[0],l=c=o[1]):o.length===3?(s=o[0],l=c=o[1],u=o[2]):(s=o[0],l=o[1],u=o[2],c=o[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>a&&(f=l+u,l*=a/f,u*=a/f),s+c>a&&(f=s+c,s*=a/f,c*=a/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+a-u),u!==0&&t.arc(n+i-u,r+a-u,u,0,Math.PI/2),t.lineTo(n+c,r+a),c!==0&&t.arc(n+c,r+a-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 bd=Math.round;function Z7(t,e,n){if(e){var r=e.x1,i=e.x2,a=e.y1,o=e.y2;t.x1=r,t.x2=i,t.y1=a,t.y2=o;var s=n&&n.lineWidth;return s&&(bd(r*2)===bd(i*2)&&(t.x1=t.x2=Yu(r,s,!0)),bd(a*2)===bd(o*2)&&(t.y1=t.y2=Yu(a,s,!0))),t}}function U7(t,e,n){if(e){var r=e.x,i=e.y,a=e.width,o=e.height;t.x=r,t.y=i,t.width=a,t.height=o;var s=n&&n.lineWidth;return s&&(t.x=Yu(r,s,!0),t.y=Yu(i,s,!0),t.width=Math.max(Yu(r+a,s,!1)-t.x,a===0?0:1),t.height=Math.max(Yu(i+o,s,!1)-t.y,o===0?0:1)),t}}function Yu(t,e,n){if(!e)return t;var r=bd(t*2);return(r+bd(e))%2===0?r/2:(r+(n?1:-1))/2}var dDe=function(){function t(){this.x=0,this.y=0,this.width=0,this.height=0}return t}(),hDe={},X7=function(t){U(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new dDe},e.prototype.buildPath=function(n,r){var i,a,o,s;if(this.subPixelOptimize){var l=U7(hDe,r,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=r.r,r=l}else i=r.x,a=r.y,o=r.width,s=r.height;r.r?fDe(n,r):n.rect(i,a,o,s)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(Ge);X7.prototype.type="rect";const tt=X7;var Y7={fill:"#000"},q7=2,pDe={style:Te({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},M_.style)},K7=function(t){U(e,t);function e(n){var r=t.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=Y7,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,mDe(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 ze(0,0,0,0),r=this._children,i=[],a=null,o=0;o<r.length;o++){var s=r[o],l=s.getBoundingRect(),u=s.getLocalTransform(i);u?(n.copy(l),n.applyTransform(u),a=a||n.clone(),a.union(n)):(a=a||l.clone(),a.union(l))}this._rect=a||n}return this._rect},e.prototype.setDefaultTextStyle=function(n){this._defaultStyle=n||Y7},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,a=n.rich||i&&{};return ne(n,r),i&&a?(this._mergeRich(a,i),n.rich=a):a&&(n.rich=a),n},e.prototype._mergeRich=function(n,r){for(var i=Ue(r),a=0;a<i.length;a++){var o=i[a];n[o]=n[o]||{},ne(n[o],r[o])}},e.prototype.getAnimationStyleProps=function(){return pDe},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||Us,i=n.padding,a=sQ(n),o=LIe(a,n),s=A2(n),l=!!n.backgroundColor,u=o.outerHeight,c=o.outerWidth,f=o.contentWidth,d=o.lines,h=o.lineHeight,g=this._defaultStyle,v=n.x||0,m=n.y||0,y=n.align||g.align||"left",b=n.verticalAlign||g.verticalAlign||"top",_=v,O=hd(m,o.contentHeight,b);if(s||i){var S=Qg(v,c,y),x=hd(m,u,b);s&&this._renderBackground(n,n,S,x,c,u)}O+=h/2,i&&(_=oQ(v,y,i),b==="top"?O+=i[0]:b==="bottom"&&(O-=i[2]));for(var w=0,T=!1,P=aQ("fill"in n?n.fill:(T=!0,g.fill)),C=iQ("stroke"in n?n.stroke:!l&&(!g.autoStroke||T)?(w=q7,g.stroke):null),$=n.textShadowBlur>0,A=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),E=o.calculatedLineHeight,D=0;D<d.length;D++){var M=this._getOrCreateChild(yd),R=M.createStyle();M.useStyle(R),R.text=d[D],R.x=_,R.y=O,y&&(R.textAlign=y),R.textBaseline="middle",R.opacity=n.opacity,R.strokeFirst=!0,$&&(R.shadowBlur=n.textShadowBlur||0,R.shadowColor=n.textShadowColor||"transparent",R.shadowOffsetX=n.textShadowOffsetX||0,R.shadowOffsetY=n.textShadowOffsetY||0),R.stroke=C,R.fill=P,C&&(R.lineWidth=n.lineWidth||w,R.lineDash=n.lineDash,R.lineDashOffset=n.lineDashOffset||0),R.font=r,tQ(R,n),O+=h,A&&M.setBoundingRect(new ze(Qg(R.x,n.width,R.textAlign),hd(R.y,E,R.textBaseline),f,E))}},e.prototype._updateRichTexts=function(){var n=this.style,r=sQ(n),i=zIe(r,n),a=i.width,o=i.outerWidth,s=i.outerHeight,l=n.padding,u=n.x||0,c=n.y||0,f=this._defaultStyle,d=n.align||f.align,h=n.verticalAlign||f.verticalAlign,g=Qg(u,o,d),v=hd(c,s,h),m=g,y=v;l&&(m+=l[3],y+=l[0]);var b=m+a;A2(n)&&this._renderBackground(n,n,g,v,o,s);for(var _=!!n.backgroundColor,O=0;O<i.lines.length;O++){for(var S=i.lines[O],x=S.tokens,w=x.length,T=S.lineHeight,P=S.width,C=0,$=m,A=b,E=w-1,D=void 0;C<w&&(D=x[C],!D.align||D.align==="left");)this._placeToken(D,n,T,y,$,"left",_),P-=D.width,$+=D.width,C++;for(;E>=0&&(D=x[E],D.align==="right");)this._placeToken(D,n,T,y,A,"right",_),P-=D.width,A-=D.width,E--;for($+=(a-($-m)-(b-A)-P)/2;C<=E;)D=x[C],this._placeToken(D,n,T,y,$+D.width/2,"center",_),$+=D.width,C++;y+=T}},e.prototype._placeToken=function(n,r,i,a,o,s,l){var u=r.rich[n.styleName]||{};u.text=n.text;var c=n.verticalAlign,f=a+i/2;c==="top"?f=a+n.height/2:c==="bottom"&&(f=a+i-n.height/2);var d=!n.isLineHolder&&A2(u);d&&this._renderBackground(u,r,s==="right"?o-n.width:s==="center"?o-n.width/2:o,f-n.height/2,n.width,n.height);var h=!!u.backgroundColor,g=n.textPadding;g&&(o=oQ(o,s,g),f-=n.height/2-g[0]-n.innerHeight/2);var v=this._getOrCreateChild(yd),m=v.createStyle();v.useStyle(m);var y=this._defaultStyle,b=!1,_=0,O=aQ("fill"in u?u.fill:"fill"in r?r.fill:(b=!0,y.fill)),S=iQ("stroke"in u?u.stroke:"stroke"in r?r.stroke:!h&&!l&&(!y.autoStroke||b)?(_=q7,y.stroke):null),x=u.textShadowBlur>0||r.textShadowBlur>0;m.text=n.text,m.x=o,m.y=f,x&&(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||Us,m.opacity=ui(u.opacity,r.opacity,1),tQ(m,u),S&&(m.lineWidth=ui(u.lineWidth,r.lineWidth,_),m.lineDash=Re(u.lineDash,r.lineDash),m.lineDashOffset=r.lineDashOffset||0,m.stroke=S),O&&(m.fill=O);var w=n.contentWidth,T=n.contentHeight;v.setBoundingRect(new ze(Qg(m.x,w,m.textAlign),hd(m.y,T,m.textBaseline),w,T))},e.prototype._renderBackground=function(n,r,i,a,o,s){var l=n.backgroundColor,u=n.borderWidth,c=n.borderColor,f=l&&l.image,d=l&&!f,h=n.borderRadius,g=this,v,m;if(d||n.lineHeight||u&&c){v=this._getOrCreateChild(tt),v.useStyle(v.createStyle()),v.style.fill=null;var y=v.shape;y.x=i,y.y=a,y.width=o,y.height=s,y.r=h,v.dirtyShape()}if(d){var b=v.style;b.fill=l||null,b.fillOpacity=Re(n.fillOpacity,1)}else if(f){m=this._getOrCreateChild(Ln),m.onload=function(){g.dirtyStyle()};var _=m.style;_.image=l.image,_.x=i,_.y=a,_.width=o,_.height=s}if(u&&c){var b=v.style;b.lineWidth=u,b.stroke=c,b.strokeOpacity=Re(n.strokeOpacity,1),b.lineDash=n.borderDash,b.lineDashOffset=n.borderDashOffset||0,v.strokeContainThreshold=0,v.hasFill()&&v.hasStroke()&&(b.strokeFirst=!0,b.lineWidth*=2)}var O=(v||m).style;O.shadowBlur=n.shadowBlur||0,O.shadowColor=n.shadowColor||"transparent",O.shadowOffsetX=n.shadowOffsetX||0,O.shadowOffsetY=n.shadowOffsetY||0,O.opacity=ui(n.opacity,r.opacity,1)},e.makeFont=function(n){var r="";return nQ(n)&&(r=[n.fontStyle,n.fontWeight,eQ(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&Bi(r)||n.textFont||n.font},e}(ji),gDe={left:!0,right:1,center:1},vDe={top:1,bottom:1,middle:1},J7=["fontStyle","fontWeight","fontSize","fontFamily"];function eQ(t){return typeof t=="string"&&(t.indexOf("px")!==-1||t.indexOf("rem")!==-1||t.indexOf("em")!==-1)?t:isNaN(+t)?a$+"px":t+"px"}function tQ(t,e){for(var n=0;n<J7.length;n++){var r=J7[n],i=e[r];i!=null&&(t[r]=i)}}function nQ(t){return t.fontSize!=null||t.fontFamily||t.fontWeight}function mDe(t){return rQ(t),k(t.rich,rQ),t}function rQ(t){if(t){t.font=K7.makeFont(t);var e=t.align;e==="middle"&&(e="center"),t.align=e==null||gDe[e]?e:"left";var n=t.verticalAlign;n==="center"&&(n="middle"),t.verticalAlign=n==null||vDe[n]?n:"top";var r=t.padding;r&&(t.padding=Yb(t.padding))}}function iQ(t,e){return t==null||e<=0||t==="transparent"||t==="none"?null:t.image||t.colorStops?"#000":t}function aQ(t){return t==null||t==="none"?null:t.image||t.colorStops?"#000":t}function oQ(t,e,n){return e==="right"?t-n[1]:e==="center"?t+n[3]/2-n[1]/2:t+n[3]}function sQ(t){var e=t.text;return e!=null&&(e+=""),e}function A2(t){return!!(t.backgroundColor||t.lineHeight||t.borderWidth&&t.borderColor)}const nt=K7;var De=et(),E2=function(t,e,n,r){if(r){var i=De(r);i.dataIndex=n,i.dataType=e,i.seriesIndex=t,i.ssrType="chart",r.type==="group"&&r.traverse(function(a){var o=De(a);o.seriesIndex=t,o.dataIndex=n,o.dataType=e,o.ssrType="chart"})}},lQ=1,uQ={},cQ=et(),M2=et(),I2=0,qg=1,L_=2,Sr=["emphasis","blur","select"],Kg=["normal","emphasis","blur","select"],_d=10,yDe=9,qu="highlight",V_="downplay",Jg="select",B_="unselect",ev="toggleSelect";function Od(t){return t!=null&&t!=="none"}function z_(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function fQ(t){z_(t,"emphasis",L_)}function dQ(t){t.hoverState===L_&&z_(t,"normal",I2)}function D2(t){z_(t,"blur",qg)}function hQ(t){t.hoverState===qg&&z_(t,"normal",I2)}function bDe(t){t.selected=!0}function _De(t){t.selected=!1}function pQ(t,e,n){e(t,n)}function cs(t,e,n){pQ(t,e,n),t.isGroup&&t.traverse(function(r){pQ(r,e,n)})}function F_(t,e){switch(e){case"emphasis":t.hoverState=L_;break;case"normal":t.hoverState=I2;break;case"blur":t.hoverState=qg;break;case"select":t.selected=!0}}function ODe(t,e,n,r){for(var i=t.style,a={},o=0;o<e.length;o++){var s=e[o],l=i[s];a[s]=l??(r&&r[s])}for(var o=0;o<t.animators.length;o++){var u=t.animators[o];u.__fromStateTransition&&u.__fromStateTransition.indexOf(n)<0&&u.targetName==="style"&&u.saveTo(a,e)}return a}function SDe(t,e,n,r){var i=n&&Fe(n,"select")>=0,a=!1;if(t instanceof Ge){var o=cQ(t),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Od(s)||Od(l)){r=r||{};var u=r.style||{};u.fill==="inherit"?(a=!0,r=ne({},r),u=ne({},u),u.fill=s):!Od(u.fill)&&Od(s)?(a=!0,r=ne({},r),u=ne({},u),u.fill=f_(s)):!Od(u.stroke)&&Od(l)&&(a||(r=ne({},r),u=ne({},u)),u.stroke=f_(l)),r.style=u}}if(r&&r.z2==null){a||(r=ne({},r));var c=t.z2EmphasisLift;r.z2=t.z2+(c??_d)}return r}function xDe(t,e,n){if(n&&n.z2==null){n=ne({},n);var r=t.z2SelectLift;n.z2=t.z2+(r??yDe)}return n}function wDe(t,e,n){var r=Fe(t.currentStates,e)>=0,i=t.style.opacity,a=r?null:ODe(t,["opacity"],e,{opacity:1});n=n||{};var o=n.style||{};return o.opacity==null&&(n=ne({},n),o=ne({opacity:r?i:a.opacity*.1},o),n.style=o),n}function R2(t,e){var n=this.states[t];if(this.style){if(t==="emphasis")return SDe(this,t,e,n);if(t==="blur")return wDe(this,t,n);if(t==="select")return xDe(this,t,n)}return n}function Ku(t){t.stateProxy=R2;var e=t.getTextContent(),n=t.getTextGuideLine();e&&(e.stateProxy=R2),n&&(n.stateProxy=R2)}function gQ(t,e){!_Q(t,e)&&!t.__highByOuter&&cs(t,fQ)}function vQ(t,e){!_Q(t,e)&&!t.__highByOuter&&cs(t,dQ)}function fs(t,e){t.__highByOuter|=1<<(e||0),cs(t,fQ)}function ds(t,e){!(t.__highByOuter&=~(1<<(e||0)))&&cs(t,dQ)}function mQ(t){cs(t,D2)}function k2(t){cs(t,hQ)}function yQ(t){cs(t,bDe)}function bQ(t){cs(t,_De)}function _Q(t,e){return t.__highDownSilentOnTouch&&e.zrByTouch}function OQ(t){var e=t.getModel(),n=[],r=[];e.eachComponent(function(i,a){var o=M2(a),s=i==="series",l=s?t.getViewOfSeriesModel(a):t.getViewOfComponentModel(a);!s&&r.push(l),o.isBlured&&(l.group.traverse(function(u){hQ(u)}),s&&n.push(a)),o.isBlured=!1}),k(r,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(n,!1,e)})}function N2(t,e,n,r){var i=r.getModel();n=n||"coordinateSystem";function a(u,c){for(var f=0;f<c.length;f++){var d=u.getItemGraphicEl(c[f]);d&&k2(d)}}if(t!=null&&!(!e||e==="none")){var o=i.getSeriesByIndex(t),s=o.coordinateSystem;s&&s.master&&(s=s.master);var l=[];i.eachSeries(function(u){var c=o===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 h=r.getViewOfSeriesModel(u);if(h.group.traverse(function(m){m.__highByOuter&&c&&e==="self"||D2(m)}),jn(e))a(u.getData(),e);else if(we(e))for(var g=Ue(e),v=0;v<g.length;v++)a(u.getData(g[v]),e[g[v]]);l.push(u),M2(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 L2(t,e,n){if(!(t==null||e==null)){var r=n.getModel().getComponent(t,e);if(r){M2(r).isBlured=!0;var i=n.getViewOfComponentModel(r);!i||!i.focusBlurEnabled||i.group.traverse(function(a){D2(a)})}}}function CDe(t,e,n){var r=t.seriesIndex,i=t.getData(e.dataType);if(!i){process.env.NODE_ENV!=="production"&&Gn("Unknown dataType "+e.dataType);return}var a=zu(i,e);a=(re(a)?a[0]:a)||0;var o=i.getItemGraphicEl(a);if(!o)for(var s=i.count(),l=0;!o&&l<s;)o=i.getItemGraphicEl(l++);if(o){var u=De(o);N2(r,u.focus,u.blurScope,n)}else{var c=t.get(["emphasis","focus"]),f=t.get(["emphasis","blurScope"]);c!=null&&N2(r,c,f,n)}}function V2(t,e,n,r){var i={focusSelf:!1,dispatchers:null};if(t==null||t==="series"||e==null||n==null)return i;var a=r.getModel().getComponent(t,e);if(!a)return i;var o=r.getViewOfComponentModel(a);if(!o||!o.findHighDownDispatchers)return i;for(var s=o.findHighDownDispatchers(n),l,u=0;u<s.length;u++)if(process.env.NODE_ENV!=="production"&&!fl(s[u])&&Gn("param should be highDownDispatcher"),De(s[u]).focus==="self"){l=!0;break}return{focusSelf:l,dispatchers:s}}function TDe(t,e,n){process.env.NODE_ENV!=="production"&&!fl(t)&&Gn("param should be highDownDispatcher");var r=De(t),i=V2(r.componentMainType,r.componentIndex,r.componentHighDownName,n),a=i.dispatchers,o=i.focusSelf;a?(o&&L2(r.componentMainType,r.componentIndex,n),k(a,function(s){return gQ(s,e)})):(N2(r.seriesIndex,r.focus,r.blurScope,n),r.focus==="self"&&L2(r.componentMainType,r.componentIndex,n),gQ(t,e))}function PDe(t,e,n){process.env.NODE_ENV!=="production"&&!fl(t)&&Gn("param should be highDownDispatcher"),OQ(n);var r=De(t),i=V2(r.componentMainType,r.componentIndex,r.componentHighDownName,n).dispatchers;i?k(i,function(a){return vQ(a,e)}):vQ(t,e)}function $De(t,e,n){if(z2(e)){var r=e.dataType,i=t.getData(r),a=zu(i,e);re(a)||(a=[a]),t[e.type===ev?"toggleSelect":e.type===Jg?"select":"unselect"](a,r)}}function SQ(t){var e=t.getAllData();k(e,function(n){var r=n.data,i=n.type;r.eachItemGraphicEl(function(a,o){t.isSelected(o,i)?yQ(a):bQ(a)})})}function ADe(t){var e=[];return t.eachSeries(function(n){var r=n.getAllData();k(r,function(i){i.data;var a=i.type,o=n.getSelectedDataIndices();if(o.length>0){var s={dataIndex:o,seriesIndex:n.seriesIndex};a!=null&&(s.dataType=a),e.push(s)}})}),e}function cl(t,e,n){Ju(t,!0),cs(t,Ku),B2(t,e,n)}function EDe(t){Ju(t,!1)}function Xt(t,e,n,r){r?EDe(t):cl(t,e,n)}function B2(t,e,n){var r=De(t);e!=null?(r.focus=e,r.blurScope=n):r.focus&&(r.focus=null)}var xQ=["emphasis","blur","select"],MDe={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Zn(t,e,n,r){n=n||"itemStyle";for(var i=0;i<xQ.length;i++){var a=xQ[i],o=e.getModel([a,n]),s=t.ensureState(a);s.style=r?r(o):o[MDe[n]]()}}function Ju(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 fl(t){return!!(t&&t.__highDownDispatcher)}function IDe(t,e,n){var r=De(t);r.componentMainType=e.mainType,r.componentIndex=e.componentIndex,r.componentHighDownName=n}function DDe(t){var e=uQ[t];return e==null&&lQ<=32&&(e=uQ[t]=lQ++),e}function z2(t){var e=t.type;return e===Jg||e===B_||e===ev}function wQ(t){var e=t.type;return e===qu||e===V_}function RDe(t){var e=cQ(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 Sd=co.CMD,kDe=[[],[],[]],CQ=Math.sqrt,NDe=Math.atan2;function TQ(t,e){if(e){var n=t.data,r=t.len(),i,a,o,s,l,u,c=Sd.M,f=Sd.C,d=Sd.L,h=Sd.R,g=Sd.A,v=Sd.Q;for(o=0,s=0;o<r;){switch(i=n[o++],s=o,a=0,i){case c:a=1;break;case d:a=1;break;case f:a=3;break;case v:a=2;break;case g:var m=e[4],y=e[5],b=CQ(e[0]*e[0]+e[1]*e[1]),_=CQ(e[2]*e[2]+e[3]*e[3]),O=NDe(-e[1]/_,e[0]/b);n[o]*=b,n[o++]+=m,n[o]*=_,n[o++]+=y,n[o++]*=b,n[o++]*=_,n[o++]+=O,n[o++]+=O,o+=2,s=o;break;case h:u[0]=n[o++],u[1]=n[o++],kn(u,u,e),n[s++]=u[0],n[s++]=u[1],u[0]+=n[o++],u[1]+=n[o++],kn(u,u,e),n[s++]=u[0],n[s++]=u[1]}for(l=0;l<a;l++){var S=kDe[l];S[0]=n[o++],S[1]=n[o++],kn(S,S,e),n[s++]=S[0],n[s++]=S[1]}}t.increaseVersion()}}var F2=Math.sqrt,W_=Math.sin,Q_=Math.cos,tv=Math.PI;function PQ(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function W2(t,e){return(t[0]*e[0]+t[1]*e[1])/(PQ(t)*PQ(e))}function $Q(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(W2(t,e))}function AQ(t,e,n,r,i,a,o,s,l,u,c){var f=l*(tv/180),d=Q_(f)*(t-n)/2+W_(f)*(e-r)/2,h=-1*W_(f)*(t-n)/2+Q_(f)*(e-r)/2,g=d*d/(o*o)+h*h/(s*s);g>1&&(o*=F2(g),s*=F2(g));var v=(i===a?-1:1)*F2((o*o*(s*s)-o*o*(h*h)-s*s*(d*d))/(o*o*(h*h)+s*s*(d*d)))||0,m=v*o*h/s,y=v*-s*d/o,b=(t+n)/2+Q_(f)*m-W_(f)*y,_=(e+r)/2+W_(f)*m+Q_(f)*y,O=$Q([1,0],[(d-m)/o,(h-y)/s]),S=[(d-m)/o,(h-y)/s],x=[(-1*d-m)/o,(-1*h-y)/s],w=$Q(S,x);if(W2(S,x)<=-1&&(w=tv),W2(S,x)>=1&&(w=0),w<0){var T=Math.round(w/tv*1e6)/1e6;w=tv*2+T%2*tv}c.addData(u,b,_,o,s,O,w,f,a)}var LDe=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,VDe=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function BDe(t){var e=new co;if(!t)return e;var n=0,r=0,i=n,a=r,o,s=co.CMD,l=t.match(LDe);if(!l)return e;for(var u=0;u<l.length;u++){for(var c=l[u],f=c.charAt(0),d=void 0,h=c.match(VDe)||[],g=h.length,v=0;v<g;v++)h[v]=parseFloat(h[v]);for(var m=0;m<g;){var y=void 0,b=void 0,_=void 0,O=void 0,S=void 0,x=void 0,w=void 0,T=n,P=r,C=void 0,$=void 0;switch(f){case"l":n+=h[m++],r+=h[m++],d=s.L,e.addData(d,n,r);break;case"L":n=h[m++],r=h[m++],d=s.L,e.addData(d,n,r);break;case"m":n+=h[m++],r+=h[m++],d=s.M,e.addData(d,n,r),i=n,a=r,f="l";break;case"M":n=h[m++],r=h[m++],d=s.M,e.addData(d,n,r),i=n,a=r,f="L";break;case"h":n+=h[m++],d=s.L,e.addData(d,n,r);break;case"H":n=h[m++],d=s.L,e.addData(d,n,r);break;case"v":r+=h[m++],d=s.L,e.addData(d,n,r);break;case"V":r=h[m++],d=s.L,e.addData(d,n,r);break;case"C":d=s.C,e.addData(d,h[m++],h[m++],h[m++],h[m++],h[m++],h[m++]),n=h[m-2],r=h[m-1];break;case"c":d=s.C,e.addData(d,h[m++]+n,h[m++]+r,h[m++]+n,h[m++]+r,h[m++]+n,h[m++]+r),n+=h[m-2],r+=h[m-1];break;case"S":y=n,b=r,C=e.len(),$=e.data,o===s.C&&(y+=n-$[C-4],b+=r-$[C-3]),d=s.C,T=h[m++],P=h[m++],n=h[m++],r=h[m++],e.addData(d,y,b,T,P,n,r);break;case"s":y=n,b=r,C=e.len(),$=e.data,o===s.C&&(y+=n-$[C-4],b+=r-$[C-3]),d=s.C,T=n+h[m++],P=r+h[m++],n+=h[m++],r+=h[m++],e.addData(d,y,b,T,P,n,r);break;case"Q":T=h[m++],P=h[m++],n=h[m++],r=h[m++],d=s.Q,e.addData(d,T,P,n,r);break;case"q":T=h[m++]+n,P=h[m++]+r,n+=h[m++],r+=h[m++],d=s.Q,e.addData(d,T,P,n,r);break;case"T":y=n,b=r,C=e.len(),$=e.data,o===s.Q&&(y+=n-$[C-4],b+=r-$[C-3]),n=h[m++],r=h[m++],d=s.Q,e.addData(d,y,b,n,r);break;case"t":y=n,b=r,C=e.len(),$=e.data,o===s.Q&&(y+=n-$[C-4],b+=r-$[C-3]),n+=h[m++],r+=h[m++],d=s.Q,e.addData(d,y,b,n,r);break;case"A":_=h[m++],O=h[m++],S=h[m++],x=h[m++],w=h[m++],T=n,P=r,n=h[m++],r=h[m++],d=s.A,AQ(T,P,n,r,x,w,_,O,S,d,e);break;case"a":_=h[m++],O=h[m++],S=h[m++],x=h[m++],w=h[m++],T=n,P=r,n+=h[m++],r+=h[m++],d=s.A,AQ(T,P,n,r,x,w,_,O,S,d,e);break}}(f==="z"||f==="Z")&&(d=s.Z,e.addData(d),n=i,r=a),o=d}return e.toStatic(),e}var EQ=function(t){U(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.applyTransform=function(n){},e}(Ge);function MQ(t){return t.setData!=null}function IQ(t,e){var n=BDe(t),r=ne({},e);return r.buildPath=function(i){if(MQ(i)){i.setData(n.data);var a=i.getContext();a&&i.rebuildPath(a,1)}else{var a=i;n.rebuildPath(a,1)}},r.applyTransform=function(i){TQ(n,i),this.dirtyShape()},r}function DQ(t,e){return new EQ(IQ(t,e))}function zDe(t,e){var n=IQ(t,e),r=function(i){U(a,i);function a(o){var s=i.call(this,o)||this;return s.applyTransform=n.applyTransform,s.buildPath=n.buildPath,s}return a}(EQ);return r}function FDe(t,e){for(var n=[],r=t.length,i=0;i<r;i++){var a=t[i];n.push(a.getUpdatedPathProxy(!0))}var o=new Ge(e);return o.createPathProxy(),o.buildPath=function(s){if(MQ(s)){s.appendPath(n);var l=s.getContext();l&&s.rebuildPath(l,1)}},o}function Q2(t,e){e=e||{};var n=new Ge;return t.shape&&n.setShape(t.shape),n.setStyle(t.style),e.bakeTransform?TQ(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 WDe=function(){function t(){this.cx=0,this.cy=0,this.r=0}return t}(),RQ=function(t){U(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new WDe},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}(Ge);RQ.prototype.type="circle";const hs=RQ;var QDe=function(){function t(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return t}(),kQ=function(t){U(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new QDe},e.prototype.buildPath=function(n,r){var i=.5522848,a=r.cx,o=r.cy,s=r.rx,l=r.ry,u=s*i,c=l*i;n.moveTo(a-s,o),n.bezierCurveTo(a-s,o-c,a-u,o-l,a,o-l),n.bezierCurveTo(a+u,o-l,a+s,o-c,a+s,o),n.bezierCurveTo(a+s,o+c,a+u,o+l,a,o+l),n.bezierCurveTo(a-u,o+l,a-s,o+c,a-s,o),n.closePath()},e}(Ge);kQ.prototype.type="ellipse";const H_=kQ;var NQ=Math.PI,H2=NQ*2,ec=Math.sin,xd=Math.cos,HDe=Math.acos,ar=Math.atan2,LQ=Math.abs,nv=Math.sqrt,rv=Math.max,fo=Math.min,$a=1e-4;function jDe(t,e,n,r,i,a,o,s){var l=n-t,u=r-e,c=o-i,f=s-a,d=f*l-c*u;if(!(d*d<$a))return d=(c*(e-a)-f*(t-i))/d,[t+d*l,e+d*u]}function j_(t,e,n,r,i,a,o){var s=t-n,l=e-r,u=(o?a:-a)/nv(s*s+l*l),c=u*l,f=-u*s,d=t+c,h=e+f,g=n+c,v=r+f,m=(d+g)/2,y=(h+v)/2,b=g-d,_=v-h,O=b*b+_*_,S=i-a,x=d*v-g*h,w=(_<0?-1:1)*nv(rv(0,S*S*O-x*x)),T=(x*_-b*w)/O,P=(-x*b-_*w)/O,C=(x*_+b*w)/O,$=(-x*b+_*w)/O,A=T-m,E=P-y,D=C-m,M=$-y;return A*A+E*E>D*D+M*M&&(T=C,P=$),{cx:T,cy:P,x0:-c,y0:-f,x1:T*(i/S-1),y1:P*(i/S-1)}}function GDe(t){var e;if(re(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 ZDe(t,e){var n,r=rv(e.r,0),i=rv(e.r0||0,0),a=r>0,o=i>0;if(!(!a&&!o)){if(a||(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,h=LQ(u-l),g=h>H2&&h%H2;if(g>$a&&(h=g),!(r>$a))t.moveTo(c,f);else if(h>H2-$a)t.moveTo(c+r*xd(l),f+r*ec(l)),t.arc(c,f,r,l,u,!d),i>$a&&(t.moveTo(c+i*xd(u),f+i*ec(u)),t.arc(c,f,i,u,l,d));else{var v=void 0,m=void 0,y=void 0,b=void 0,_=void 0,O=void 0,S=void 0,x=void 0,w=void 0,T=void 0,P=void 0,C=void 0,$=void 0,A=void 0,E=void 0,D=void 0,M=r*xd(l),R=r*ec(l),N=i*xd(u),V=i*ec(u),L=h>$a;if(L){var z=e.cornerRadius;z&&(n=GDe(z),v=n[0],m=n[1],y=n[2],b=n[3]);var B=LQ(r-i)/2;if(_=fo(B,y),O=fo(B,b),S=fo(B,v),x=fo(B,m),P=w=rv(_,O),C=T=rv(S,x),(w>$a||T>$a)&&($=r*xd(u),A=r*ec(u),E=i*xd(l),D=i*ec(l),h<NQ)){var F=jDe(M,R,E,D,$,A,N,V);if(F){var j=M-F[0],K=R-F[1],q=$-F[0],te=A-F[1],X=1/ec(HDe((j*q+K*te)/(nv(j*j+K*K)*nv(q*q+te*te)))/2),ee=nv(F[0]*F[0]+F[1]*F[1]);P=fo(w,(r-ee)/(X+1)),C=fo(T,(i-ee)/(X-1))}}}if(!L)t.moveTo(c+M,f+R);else if(P>$a){var G=fo(y,P),W=fo(b,P),Q=j_(E,D,M,R,r,G,d),J=j_($,A,N,V,r,W,d);t.moveTo(c+Q.cx+Q.x0,f+Q.cy+Q.y0),P<w&&G===W?t.arc(c+Q.cx,f+Q.cy,P,ar(Q.y0,Q.x0),ar(J.y0,J.x0),!d):(G>0&&t.arc(c+Q.cx,f+Q.cy,G,ar(Q.y0,Q.x0),ar(Q.y1,Q.x1),!d),t.arc(c,f,r,ar(Q.cy+Q.y1,Q.cx+Q.x1),ar(J.cy+J.y1,J.cx+J.x1),!d),W>0&&t.arc(c+J.cx,f+J.cy,W,ar(J.y1,J.x1),ar(J.y0,J.x0),!d))}else t.moveTo(c+M,f+R),t.arc(c,f,r,l,u,!d);if(!(i>$a)||!L)t.lineTo(c+N,f+V);else if(C>$a){var G=fo(v,C),W=fo(m,C),Q=j_(N,V,$,A,i,-W,d),J=j_(M,R,E,D,i,-G,d);t.lineTo(c+Q.cx+Q.x0,f+Q.cy+Q.y0),C<T&&G===W?t.arc(c+Q.cx,f+Q.cy,C,ar(Q.y0,Q.x0),ar(J.y0,J.x0),!d):(W>0&&t.arc(c+Q.cx,f+Q.cy,W,ar(Q.y0,Q.x0),ar(Q.y1,Q.x1),!d),t.arc(c,f,i,ar(Q.cy+Q.y1,Q.cx+Q.x1),ar(J.cy+J.y1,J.cx+J.x1),d),G>0&&t.arc(c+J.cx,f+J.cy,G,ar(J.y1,J.x1),ar(J.y0,J.x0),!d))}else t.lineTo(c+N,f+V),t.arc(c,f,i,u,l,d)}t.closePath()}}}var UDe=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}(),VQ=function(t){U(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new UDe},e.prototype.buildPath=function(n,r){ZDe(n,r)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(Ge);VQ.prototype.type="sector";const xr=VQ;var XDe=function(){function t(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return t}(),BQ=function(t){U(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new XDe},e.prototype.buildPath=function(n,r){var i=r.cx,a=r.cy,o=Math.PI*2;n.moveTo(i+r.r,a),n.arc(i,a,r.r,0,o,!1),n.moveTo(i+r.r0,a),n.arc(i,a,r.r0,0,o,!0)},e}(Ge);BQ.prototype.type="ring";const iv=BQ;function YDe(t,e,n,r){var i=[],a=[],o=[],s=[],l,u,c,f;if(r){c=[1/0,1/0],f=[-1/0,-1/0];for(var d=0,h=t.length;d<h;d++)rs(c,c,t[d]),is(f,f,t[d]);rs(c,c,r[0]),is(f,f,r[1])}for(var d=0,h=t.length;d<h;d++){var g=t[d];if(n)l=t[d?d-1:h-1],u=t[(d+1)%h];else if(d===0||d===h-1){i.push(to(t[d]));continue}else l=t[d-1],u=t[d+1];Ks(a,u,l),xg(a,a,e);var v=Kb(g,l),m=Kb(g,u),y=v+m;y!==0&&(v/=y,m/=y),xg(o,a,-v),xg(s,a,m);var b=h$([],g,o),_=h$([],g,s);r&&(is(b,b,c),rs(b,b,f),is(_,_,c),rs(_,_,f)),i.push(b),i.push(_)}return n&&i.push(i.shift()),i}function zQ(t,e,n){var r=e.smooth,i=e.points;if(i&&i.length>=2){if(r){var a=YDe(i,r,n,e.smoothConstraint);t.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(n?o:o-1);s++){var l=a[s*2],u=a[s*2+1],c=i[(s+1)%o];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 qDe=function(){function t(){this.points=null,this.smooth=0,this.smoothConstraint=null}return t}(),FQ=function(t){U(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new qDe},e.prototype.buildPath=function(n,r){zQ(n,r,!0)},e}(Ge);FQ.prototype.type="polygon";const wr=FQ;var KDe=function(){function t(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return t}(),WQ=function(t){U(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 KDe},e.prototype.buildPath=function(n,r){zQ(n,r,!1)},e}(Ge);WQ.prototype.type="polyline";const Cr=WQ;var JDe={},eRe=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}(),QQ=function(t){U(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 eRe},e.prototype.buildPath=function(n,r){var i,a,o,s;if(this.subPixelOptimize){var l=Z7(JDe,r,this.style);i=l.x1,a=l.y1,o=l.x2,s=l.y2}else i=r.x1,a=r.y1,o=r.x2,s=r.y2;var u=r.percent;u!==0&&(n.moveTo(i,a),u<1&&(o=i*(1-u)+o*u,s=a*(1-u)+s*u),n.lineTo(o,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}(Ge);QQ.prototype.type="line";const Cn=QQ;var Qr=[],tRe=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 HQ(t,e,n){var r=t.cpx2,i=t.cpy2;return r!=null||i!=null?[(n?IW:wn)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?IW:wn)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?P$:Nn)(t.x1,t.cpx1,t.x2,e),(n?P$:Nn)(t.y1,t.cpy1,t.y2,e)]}var jQ=function(t){U(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 tRe},e.prototype.buildPath=function(n,r){var i=r.x1,a=r.y1,o=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,a),c==null||f==null?(d<1&&(Ig(i,l,o,d,Qr),l=Qr[1],o=Qr[2],Ig(a,u,s,d,Qr),u=Qr[1],s=Qr[2]),n.quadraticCurveTo(l,u,o,s)):(d<1&&(rl(i,l,c,o,d,Qr),l=Qr[1],c=Qr[2],o=Qr[3],rl(a,u,f,s,d,Qr),u=Qr[1],f=Qr[2],s=Qr[3]),n.bezierCurveTo(l,u,c,f,o,s)))},e.prototype.pointAt=function(n){return HQ(this.shape,n,!1)},e.prototype.tangentAt=function(n){var r=HQ(this.shape,n,!0);return Au(r,r)},e}(Ge);jQ.prototype.type="bezier-curve";const av=jQ;var nRe=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}(),GQ=function(t){U(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 nRe},e.prototype.buildPath=function(n,r){var i=r.cx,a=r.cy,o=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*o+i,f*o+a),n.arc(i,a,o,s,l,!u)},e}(Ge);GQ.prototype.type="arc";const G_=GQ;var rRe=function(t){U(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||[],a=0;a<i.length;a++)i[a].buildPath(n,i[a].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),Ge.prototype.getBoundingRect.call(this)},e}(Ge);const Z_=rRe;var ZQ=function(){function t(e){this.colorStops=e||[]}return t.prototype.addColorStop=function(e,n){this.colorStops.push({offset:e,color:n})},t}(),iRe=function(t){U(e,t);function e(n,r,i,a,o,s){var l=t.call(this,o)||this;return l.x=n??0,l.y=r??0,l.x2=i??1,l.y2=a??0,l.type="linear",l.global=s||!1,l}return e}(ZQ);const wd=iRe;var aRe=function(t){U(e,t);function e(n,r,i,a,o){var s=t.call(this,a)||this;return s.x=n??.5,s.y=r??.5,s.r=i??.5,s.type="radial",s.global=o||!1,s}return e}(ZQ);const j2=aRe;var tc=[0,0],nc=[0,0],U_=new Be,X_=new Be,oRe=function(){function t(e,n){this._corners=[],this._axes=[],this._origin=[0,0];for(var r=0;r<4;r++)this._corners[r]=new Be;for(var r=0;r<2;r++)this._axes[r]=new Be;e&&this.fromBoundingRect(e,n)}return t.prototype.fromBoundingRect=function(e,n){var r=this._corners,i=this._axes,a=e.x,o=e.y,s=a+e.width,l=o+e.height;if(r[0].set(a,o),r[1].set(s,o),r[2].set(s,l),r[3].set(a,l),n)for(var u=0;u<4;u++)r[u].transform(n);Be.sub(i[0],r[1],r[0]),Be.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 U_.set(1/0,1/0),X_.set(0,0),!this._intersectCheckOneSide(this,e,U_,X_,i,1)&&(r=!1,i)||!this._intersectCheckOneSide(e,this,U_,X_,i,-1)&&(r=!1,i)||i||Be.copy(n,r?U_:X_),r},t.prototype._intersectCheckOneSide=function(e,n,r,i,a,o){for(var s=!0,l=0;l<2;l++){var u=this._axes[l];if(this._getProjMinMaxOnAxis(l,e._corners,tc),this._getProjMinMaxOnAxis(l,n._corners,nc),tc[1]<nc[0]||tc[0]>nc[1]){if(s=!1,a)return s;var c=Math.abs(nc[0]-tc[1]),f=Math.abs(tc[0]-nc[1]);Math.min(c,f)>i.len()&&(c<f?Be.scale(i,u,-c*o):Be.scale(i,u,f*o))}else if(r){var c=Math.abs(nc[0]-tc[1]),f=Math.abs(tc[0]-nc[1]);Math.min(c,f)<r.len()&&(c<f?Be.scale(r,u,c*o):Be.scale(r,u,-f*o))}}return s},t.prototype._getProjMinMaxOnAxis=function(e,n,r){for(var i=this._axes[e],a=this._origin,o=n[0].dot(i)+a[e],s=o,l=o,u=1;u<n.length;u++){var c=n[u].dot(i)+a[e];s=Math.min(c,s),l=Math.max(c,l)}r[0]=s,r[1]=l},t}();const Y_=oRe;var sRe=[],lRe=function(t){U(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 ze(1/0,1/0,-1/0,-1/0),r=0;r<this._displayables.length;r++){var i=this._displayables[r],a=i.getBoundingRect().clone();i.needLocalTransform()&&a.applyTransform(i.getLocalTransform(sRe)),n.union(a)}this._rect=n}return this._rect},e.prototype.contain=function(n,r){var i=this.transformCoordToLocal(n,r),a=this.getBoundingRect();if(a.contain(i[0],i[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(n,r))return!0}return!1},e}(ji);const UQ=lRe;var XQ=et();function Cd(t,e,n,r,i){var a;if(e&&e.ecModel){var o=e.ecModel.getUpdatePayload();a=o&&o.animation}var s=e&&e.isAnimationEnabled(),l=t==="update";if(s){var u=void 0,c=void 0,f=void 0;r?(u=Re(r.duration,200),c=Re(r.easing,"cubicOut"),f=0):(u=e.getShallow(l?"animationDurationUpdate":"animationDuration"),c=e.getShallow(l?"animationEasingUpdate":"animationEasing"),f=e.getShallow(l?"animationDelayUpdate":"animationDelay")),a&&(a.duration!=null&&(u=a.duration),a.easing!=null&&(c=a.easing),a.delay!=null&&(f=a.delay)),xe(f)&&(f=f(n,i)),xe(u)&&(u=u(n));var d={duration:u||0,delay:f,easing:c};return d}else return null}function G2(t,e,n,r,i,a,o){var s=!1,l;xe(i)?(o=a,a=i,i=null):we(i)&&(a=i.cb,o=i.during,s=i.isFrom,l=i.removeOpt,i=i.dataIndex);var u=t==="leave";u||e.stopAnimation("leave");var c=Cd(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,h=c.easing,g={duration:f,delay:d||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:t,during:o};s?e.animateFrom(n,g):e.animateTo(n,g)}else e.stopAnimation(),!s&&e.attr(n),o&&o(1),a&&a()}function ot(t,e,n,r,i,a){G2("update",t,e,n,r,i,a)}function Mt(t,e,n,r,i,a){G2("enter",t,e,n,r,i,a)}function Td(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 dl(t,e,n,r,i,a){Td(t)||G2("leave",t,e,n,r,i,a)}function YQ(t,e,n,r){t.removeTextContent(),t.removeTextGuideLine(),dl(t,{style:{opacity:0}},e,n,r)}function ov(t,e,n){function r(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(i){i.isGroup||YQ(i,e,n,r)}):YQ(t,e,n,r)}function Aa(t){XQ(t).oldStyle=t.style}function uRe(t){return XQ(t).oldStyle}var q_=Math.max,K_=Math.min,Z2={};function qQ(t){return Ge.extend(t)}var cRe=zDe;function KQ(t,e){return cRe(t,e)}function Zi(t,e){Z2[t]=e}function J_(t){if(Z2.hasOwnProperty(t))return Z2[t]}function sv(t,e,n,r){var i=DQ(t,e);return n&&(r==="center"&&(n=JQ(n,i.getBoundingRect())),X2(i,n)),i}function U2(t,e,n){var r=new Ln({style:{image:t,x:e.x,y:e.y,width:e.width,height:e.height},onload:function(i){if(n==="center"){var a={width:i.width,height:i.height};r.setStyle(JQ(e,a))}}});return r}function JQ(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 a=t.x+t.width/2,o=t.y+t.height/2;return{x:a-r/2,y:o-i/2,width:r,height:i}}var gi=FDe;function X2(t,e){if(t.applyTransform){var n=t.getBoundingRect(),r=n.calculateTransform(e);t.applyTransform(r)}}function Pd(t,e){return Z7(t,t,{lineWidth:e}),t}function fRe(t){return U7(t.shape,t.shape,t.style),t}var e1=Yu;function hl(t,e){for(var n=Cg([]);t&&t!==e;)no(n,t.getLocalTransform(),n),t=t.parent;return n}function Ea(t,e,n){return e&&!jn(e)&&(e=ss.getLocalTransform(e)),n&&(e=Eu([],e)),kn([],t,e)}function t1(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]),a=[t==="left"?-r:t==="right"?r:0,t==="top"?-i:t==="bottom"?i:0];return a=Ea(a,e,n),Math.abs(a[0])>Math.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function eH(t){return!t.isGroup}function dRe(t){return t.shape!=null}function lv(t,e,n){if(!t||!e)return;function r(o){var s={};return o.traverse(function(l){eH(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return dRe(o)&&(s.shape=ne({},o.shape)),s}var a=r(t);e.traverse(function(o){if(eH(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),ot(o,l,n,De(o).dataIndex)}}})}function Y2(t,e){return ie(t,function(n){var r=n[0];r=q_(r,e.x),r=K_(r,e.x+e.width);var i=n[1];return i=q_(i,e.y),i=K_(i,e.y+e.height),[r,i]})}function tH(t,e){var n=q_(t.x,e.x),r=K_(t.x+t.width,e.x+e.width),i=q_(t.y,e.y),a=K_(t.y+t.height,e.y+e.height);if(r>=n&&a>=i)return{x:n,y:i,width:r-n,height:a-i}}function $d(t,e,n){var r=ne({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),Te(i,n),new Ln(r)):sv(t.replace("path://",""),r,n,"center")}function uv(t,e,n,r,i){for(var a=0,o=i[i.length-1];a<i.length;a++){var s=i[a];if(nH(t,e,n,r,s[0],s[1],o[0],o[1]))return!0;o=s}}function nH(t,e,n,r,i,a,o,s){var l=n-t,u=r-e,c=o-i,f=s-a,d=q2(c,f,l,u);if(hRe(d))return!1;var h=t-i,g=e-a,v=q2(h,g,l,u)/d;if(v<0||v>1)return!1;var m=q2(h,g,c,f)/d;return!(m<0||m>1)}function q2(t,e,n,r){return t*r-n*e}function hRe(t){return t<=1e-6&&t>=-1e-6}function Ad(t){var e=t.itemTooltipOption,n=t.componentModel,r=t.itemName,i=pe(e)?{formatter:e}:e,a=n.mainType,o=n.componentIndex,s={componentType:a,name:r,$vars:["name"]};s[a+"Index"]=o;var l=t.formatterParamsExtra;l&&k(Ue(l),function(c){me(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=De(t.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:r,option:Te({content:r,encodeHTMLContent:!0,formatterParams:s},i)}}function rH(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function pl(t,e){if(t)if(re(t))for(var n=0;n<t.length;n++)rH(t[n],e);else rH(t,e)}Zi("circle",hs),Zi("ellipse",H_),Zi("sector",xr),Zi("ring",iv),Zi("polygon",wr),Zi("polyline",Cr),Zi("rect",tt),Zi("line",Cn),Zi("bezierCurve",av),Zi("arc",G_);const rc=Object.freeze(Object.defineProperty({__proto__:null,Arc:G_,BezierCurve:av,BoundingRect:ze,Circle:hs,CompoundPath:Z_,Ellipse:H_,Group:Me,Image:Ln,IncrementalDisplayable:UQ,Line:Cn,LinearGradient:wd,OrientedBoundingRect:Y_,Path:Ge,Point:Be,Polygon:wr,Polyline:Cr,RadialGradient:j2,Rect:tt,Ring:iv,Sector:xr,Text:nt,applyTransform:Ea,clipPointsByRect:Y2,clipRectByRect:tH,createIcon:$d,extendPath:KQ,extendShape:qQ,getShapeClass:J_,getTransform:hl,groupTransition:lv,initProps:Mt,isElementRemoved:Td,lineLineIntersect:nH,linePolygonIntersect:uv,makeImage:U2,makePath:sv,mergePath:gi,registerShape:Zi,removeElement:dl,removeElementWithFadeOut:ov,resizePath:X2,setTooltipConfig:Ad,subPixelOptimize:e1,subPixelOptimizeLine:Pd,subPixelOptimizeRect:fRe,transformDirection:t1,traverseElements:pl,updateProps:ot},Symbol.toStringTag,{value:"Module"}));var n1={};function iH(t,e){for(var n=0;n<Sr.length;n++){var r=Sr[n],i=e[r],a=t.ensureState(r);a.style=a.style||{},a.style.text=i}var o=t.currentStates.slice();t.clearStates(!0),t.setStyle({text:e.normal}),t.useStates(o,!0)}function K2(t,e,n){var r=t.labelFetcher,i=t.labelDataIndex,a=t.labelDimIndex,o=e.normal,s;r&&(s=r.getFormattedLabel(i,"normal",null,a,o&&o.get("formatter"),n!=null?{interpolatedValue:n}:null)),s==null&&(s=xe(t.defaultText)?t.defaultText(i,t,n):t.defaultText);for(var l={normal:s},u=0;u<Sr.length;u++){var c=Sr[u],f=e[c];l[c]=Re(r?r.getFormattedLabel(i,c,null,a,f&&f.get("formatter")):null,s)}return l}function Un(t,e,n,r){n=n||n1;for(var i=t instanceof nt,a=!1,o=0;o<Kg.length;o++){var s=e[Kg[o]];if(s&&s.getShallow("show")){a=!0;break}}var l=i?t:t.getTextContent();if(a){i||(l||(l=new nt,t.setTextContent(l)),t.stateProxy&&(l.stateProxy=t.stateProxy));var u=K2(n,e),c=e.normal,f=!!c.getShallow("show"),d=$t(c,r&&r.normal,n,!1,!i);d.text=u.normal,i||t.setTextConfig(r1(c,n,!1));for(var o=0;o<Sr.length;o++){var h=Sr[o],s=e[h];if(s){var g=l.ensureState(h),v=!!Re(s.getShallow("show"),f);if(v!==f&&(g.ignore=!v),g.style=$t(s,r&&r[h],n,!0,!i),g.style.text=u[h],!i){var m=t.ensureState(h);m.textConfig=r1(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&&(Ed(l).setLabelText=function(y){var b=K2(n,e,y);iH(l,b)})}else l&&(l.ignore=!0);t.dirty()}function Tn(t,e){e=e||"label";for(var n={normal:t.getModel(e)},r=0;r<Sr.length;r++){var i=Sr[r];n[i]=t.getModel([i,e])}return n}function $t(t,e,n,r,i){var a={};return pRe(a,t,n,r,i),e&&ne(a,e),a}function r1(t,e,n){e=e||{};var r={},i,a=t.getShallow("rotate"),o=Re(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),a!=null&&(a*=Math.PI/180,r.rotation=a),o!=null&&(r.distance=o),r.outsideFill=t.get("color")==="inherit"?e.inheritColor||null:"auto",r}function pRe(t,e,n,r,i){n=n||n1;var a=e.ecModel,o=a&&a.option.textStyle,s=gRe(e),l;if(s){l={};for(var u in s)if(s.hasOwnProperty(u)){var c=e.getModel(["rich",u]);lH(l[u]={},c,o,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),lH(t,e,o,n,r,i,!0,!1)}function gRe(t){for(var e;t&&t!==t.ecModel;){var n=(t.option||n1).rich;if(n){e=e||{};for(var r=Ue(n),i=0;i<r.length;i++){var a=r[i];e[a]=1}}t=t.parentModel}return e}var aH=["fontStyle","fontWeight","fontSize","fontFamily","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY"],oH=["align","lineHeight","width","height","tag","verticalAlign","ellipsis"],sH=["padding","borderWidth","borderRadius","borderDashOffset","backgroundColor","borderColor","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function lH(t,e,n,r,i,a,o,s){n=!i&&n||n1;var l=r&&r.inheritColor,u=e.getShallow("color"),c=e.getShallow("textBorderColor"),f=Re(e.getShallow("opacity"),n.opacity);(u==="inherit"||u==="auto")&&(process.env.NODE_ENV!=="production"&&u==="auto"&&nn("color: 'auto'","color: 'inherit'"),l?u=l:u=null),(c==="inherit"||c==="auto")&&(process.env.NODE_ENV!=="production"&&c==="auto"&&nn("color: 'auto'","color: 'inherit'"),l?c=l:c=null),a||(u=u||n.color,c=c||n.textBorderColor),u!=null&&(t.fill=u),c!=null&&(t.stroke=c);var d=Re(e.getShallow("textBorderWidth"),n.textBorderWidth);d!=null&&(t.lineWidth=d);var h=Re(e.getShallow("textBorderType"),n.textBorderType);h!=null&&(t.lineDash=h);var g=Re(e.getShallow("textBorderDashOffset"),n.textBorderDashOffset);g!=null&&(t.lineDashOffset=g),!i&&f==null&&!s&&(f=r&&r.defaultOpacity),f!=null&&(t.opacity=f),!i&&!a&&t.fill==null&&r.inheritColor&&(t.fill=r.inheritColor);for(var v=0;v<aH.length;v++){var m=aH[v],y=Re(e.getShallow(m),n[m]);y!=null&&(t[m]=y)}for(var v=0;v<oH.length;v++){var m=oH[v],y=e.getShallow(m);y!=null&&(t[m]=y)}if(t.verticalAlign==null){var b=e.getShallow("baseline");b!=null&&(t.verticalAlign=b)}if(!o||!r.disableBox){for(var v=0;v<sH.length;v++){var m=sH[v],y=e.getShallow(m);y!=null&&(t[m]=y)}var _=e.getShallow("borderType");_!=null&&(t.borderDash=_),(t.backgroundColor==="auto"||t.backgroundColor==="inherit")&&l&&(process.env.NODE_ENV!=="production"&&t.backgroundColor==="auto"&&nn("backgroundColor: 'auto'","backgroundColor: 'inherit'"),t.backgroundColor=l),(t.borderColor==="auto"||t.borderColor==="inherit")&&l&&(process.env.NODE_ENV!=="production"&&t.borderColor==="auto"&&nn("borderColor: 'auto'","borderColor: 'inherit'"),t.borderColor=l)}}function J2(t,e){var n=e&&e.getModel("textStyle");return Bi([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 Ed=et();function uH(t,e,n,r){if(t){var i=Ed(t);i.prevValue=i.value,i.value=n;var a=e.normal;i.valueAnimation=a.get("valueAnimation"),i.valueAnimation&&(i.precision=a.get("precision"),i.defaultInterpolatedText=r,i.statesModels=e)}}function cH(t,e,n,r,i){var a=Ed(t);if(!a.valueAnimation||a.prevValue===a.value)return;var o=a.defaultInterpolatedText,s=Re(a.interpolatedValue,a.prevValue),l=a.value;function u(c){var f=E7(n,a.precision,s,l,c);a.interpolatedValue=c===1?null:f;var d=K2({labelDataIndex:e,labelFetcher:i,defaultText:o?o(f):f+""},a.statesModels,f);iH(t,d)}t.percent=0,(a.prevValue==null?Mt:ot)(t,{percent:1},r,e,null,u)}var vRe=["textStyle","color"],eA=["fontStyle","fontWeight","fontSize","fontFamily","padding","lineHeight","rich","width","height","overflow"],tA=new nt,mRe=function(){function t(){}return t.prototype.getTextColor=function(e){var n=this.ecModel;return this.getShallow("color")||(!e&&n?n.get(vRe):null)},t.prototype.getFont=function(){return J2({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<eA.length;r++)n[eA[r]]=this.getShallow(eA[r]);return tA.useStyle(n),tA.update(),tA.getBoundingRect()},t}(),fH=[["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","type"],["lineDashOffset","dashOffset"],["lineCap","cap"],["lineJoin","join"],["miterLimit"]],yRe=Wu(fH),bRe=function(){function t(){}return t.prototype.getLineStyle=function(e){return yRe(this,e)},t}(),dH=[["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["lineDash","borderType"],["lineDashOffset","borderDashOffset"],["lineCap","borderCap"],["lineJoin","borderJoin"],["miterLimit","borderMiterLimit"]],_Re=Wu(dH),ORe=function(){function t(){}return t.prototype.getItemStyle=function(e,n){return _Re(this,e,n)},t}(),ic=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){Le(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 a=this.parentModel;a&&(i=a.getShallow(e))}return i},t.prototype.getModel=function(e,n){var r=e!=null,i=r?this.parsePath(e):null,a=r?this._doGet(i):this.option;return n=n||this.parentModel&&this.parentModel.getModel(this.resolveParentPath(i)),new t(a,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($e(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(!Je.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}();d2(ic),AIe(ic),Kt(ic,bRe),Kt(ic,ORe),Kt(ic,RIe),Kt(ic,mRe);const wt=ic;var SRe=Math.round(Math.random()*10);function Md(t){return[t||"",SRe++].join("_")}function xRe(t){var e={};t.registerSubTypeDefaulter=function(n,r){var i=oo(n);e[i.main]=r},t.determineSubType=function(n,r){var i=r.type;if(!i){var a=oo(n).main;t.hasSubTypes(n)&&e[a]&&(i=e[a](r))}return i}}function wRe(t,e){t.topologicalTravel=function(a,o,s,l){if(!a.length)return;var u=n(o),c=u.graph,f=u.noEntryList,d={};for(k(a,function(b){d[b]=!0});f.length;){var h=f.pop(),g=c[h],v=!!d[h];v&&(s.call(l,h,g.originalDeps.slice()),delete d[h]),k(g.successor,v?y:m)}k(d,function(){var b="";throw process.env.NODE_ENV!=="production"&&(b=_r("Circular dependency may exists: ",d,a,o)),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(a){var o={},s=[];return k(a,function(l){var u=r(o,l),c=u.originalDeps=e(l),f=i(c,a);u.entryCount=f.length,u.entryCount===0&&s.push(l),k(f,function(d){Fe(u.predecessor,d)<0&&u.predecessor.push(d);var h=r(o,d);Fe(h.successor,d)<0&&h.successor.push(l)})}),{graph:o,noEntryList:s}}function r(a,o){return a[o]||(a[o]={predecessor:[],successor:[]}),a[o]}function i(a,o){var s=[];return k(a,function(l){Fe(o,l)>=0&&s.push(l)}),s}}function gl(t,e){return Le(Le({},t,!0),e,!0)}const CRe={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:". "}}}},TRe={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 i1="ZH",nA="EN",Id=nA,a1={},rA={},hH=Je.domSupported?function(){var t=(document.documentElement.lang||navigator.language||navigator.browserLanguage||Id).toUpperCase();return t.indexOf(i1)>-1?i1:Id}():Id;function iA(t,e){t=t.toUpperCase(),rA[t]=new wt(e),a1[t]=e}function PRe(t){if(pe(t)){var e=a1[t.toUpperCase()]||{};return t===i1||t===nA?$e(e):Le($e(e),$e(a1[Id]),!1)}else return Le($e(t),$e(a1[Id]),!1)}function aA(t){return rA[t]}function $Re(){return rA[Id]}iA(nA,CRe),iA(i1,TRe);var oA=1e3,sA=oA*60,cv=sA*60,Ui=cv*24,pH=Ui*365,fv={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},o1="{yyyy}-{MM}-{dd}",gH={year:"{yyyy}",month:"{yyyy}-{MM}",day:o1,hour:o1+" "+fv.hour,minute:o1+" "+fv.minute,second:o1+" "+fv.second,millisecond:fv.none},lA=["year","month","day","hour","minute","second","millisecond"],vH=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Tr(t,e){return t+="","0000".substr(0,e-t.length)+t}function Dd(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 ARe(t){return t===Dd(t)}function ERe(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function dv(t,e,n,r){var i=hi(t),a=i[uA(n)](),o=i[Rd(n)]()+1,s=Math.floor((o-1)/3)+1,l=i[s1(n)](),u=i["get"+(n?"UTC":"")+"Day"](),c=i[hv(n)](),f=(c-1)%12+1,d=i[l1(n)](),h=i[u1(n)](),g=i[c1(n)](),v=c>=12?"pm":"am",m=v.toUpperCase(),y=r instanceof wt?r:aA(r||hH)||$Re(),b=y.getModel("time"),_=b.get("month"),O=b.get("monthAbbr"),S=b.get("dayOfWeek"),x=b.get("dayOfWeekAbbr");return(e||"").replace(/{a}/g,v+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Tr(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,O[o-1]).replace(/{MM}/g,Tr(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Tr(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,S[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Tr(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Tr(f+"",2)).replace(/{h}/g,f+"").replace(/{mm}/g,Tr(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Tr(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Tr(g,3)).replace(/{S}/g,g+"")}function MRe(t,e,n,r,i){var a=null;if(pe(n))a=n;else if(xe(n))a=n(t.value,e,{level:t.level});else{var o=ne({},fv);if(t.level>0)for(var s=0;s<lA.length;++s)o[lA[s]]="{primary|"+o[lA[s]]+"}";var l=n?n.inherit===!1?n:Te(n,o):o,u=mH(t.value,i);if(l[u])a=l[u];else if(l.inherit){for(var c=vH.indexOf(u),s=c-1;s>=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(re(a)){var f=t.level==null?0:t.level>=0?t.level:a.length+t.level;f=Math.min(f,a.length-1),a=a[f]}}return dv(new Date(t.value),a,i,r)}function mH(t,e){var n=hi(t),r=n[Rd(e)]()+1,i=n[s1(e)](),a=n[hv(e)](),o=n[l1(e)](),s=n[u1(e)](),l=n[c1(e)](),u=l===0,c=u&&s===0,f=c&&o===0,d=f&&a===0,h=d&&i===1,g=h&&r===1;return g?"year":h?"month":d?"day":f?"hour":c?"minute":u?"second":"millisecond"}function yH(t,e,n){var r=it(t)?hi(t):t;switch(e=e||mH(t,n),e){case"year":return r[uA(n)]();case"half-year":return r[Rd(n)]()>=6?1:0;case"quarter":return Math.floor((r[Rd(n)]()+1)/4);case"month":return r[Rd(n)]();case"day":return r[s1(n)]();case"half-day":return r[hv(n)]()/24;case"hour":return r[hv(n)]();case"minute":return r[l1(n)]();case"second":return r[u1(n)]();case"millisecond":return r[c1(n)]()}}function uA(t){return t?"getUTCFullYear":"getFullYear"}function Rd(t){return t?"getUTCMonth":"getMonth"}function s1(t){return t?"getUTCDate":"getDate"}function hv(t){return t?"getUTCHours":"getHours"}function l1(t){return t?"getUTCMinutes":"getMinutes"}function u1(t){return t?"getUTCSeconds":"getSeconds"}function c1(t){return t?"getUTCMilliseconds":"getMilliseconds"}function IRe(t){return t?"setUTCFullYear":"setFullYear"}function bH(t){return t?"setUTCMonth":"setMonth"}function _H(t){return t?"setUTCDate":"setDate"}function OH(t){return t?"setUTCHours":"setHours"}function SH(t){return t?"setUTCMinutes":"setMinutes"}function xH(t){return t?"setUTCSeconds":"setSeconds"}function wH(t){return t?"setUTCMilliseconds":"setMilliseconds"}function DRe(t,e,n,r,i,a,o,s){var l=new nt({style:{text:t,font:e,align:n,verticalAlign:r,padding:i,rich:a,overflow:o?"truncate":null,lineHeight:s}});return l.getBoundingRect()}function cA(t){if(!P_(t))return pe(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function fA(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 ac=Yb;function dA(t,e,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&Bi(c)?c:"-"}function a(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=e==="time",s=t instanceof Date;if(o||s){var l=o?hi(t):t;if(isNaN(+l)){if(s)return"-"}else return dv(l,r,n)}if(e==="ordinal")return vg(t)?i(t):it(t)&&a(t)?t+"":"-";var u=ao(t);return a(u)?cA(u):vg(t)?i(t):typeof t=="boolean"?t+"":"-"}var CH=["a","b","c","d","e","f","g"],hA=function(t,e){return"{"+t+(e??"")+"}"};function pA(t,e,n){re(e)||(e=[e]);var r=e.length;if(!r)return"";for(var i=e[0].$vars||[],a=0;a<i.length;a++){var o=CH[a];t=t.replace(hA(o),hA(o,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(hA(CH[l],s),n?yr(u):u)}return t}function RRe(t,e,n){return k(e,function(r,i){t=t.replace("{"+i+"}",r)}),t}function TH(t,e){var n=pe(t)?{color:t,extraCssText:e}:t||{},r=n.color,i=n.type;e=n.extraCssText;var a=n.renderMode||"html";if(!r)return"";if(a==="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:'+yr(r)+";"+(e||"")+'"></span>':'<span style="display:inline-block;margin-right:4px;border-radius:10px;width:10px;height:10px;background-color:'+yr(r)+";"+(e||"")+'"></span>';var o=n.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function kRe(t,e,n){process.env.NODE_ENV!=="production"&&nn("echarts.format.formatTime","echarts.time.format"),(t==="week"||t==="month"||t==="quarter"||t==="half-year"||t==="year")&&(t=`MM-dd
  304. yyyy`);var r=hi(e),i=n?"getUTC":"get",a=r[i+"FullYear"](),o=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",Tr(o,2)).replace("M",o).replace("yyyy",a).replace("yy",Tr(a%100+"",2)).replace("dd",Tr(s,2)).replace("d",s).replace("hh",Tr(l,2)).replace("h",l).replace("mm",Tr(u,2)).replace("m",u).replace("ss",Tr(c,2)).replace("s",c).replace("SSS",Tr(f,3)),t}function NRe(t){return t&&t.charAt(0).toUpperCase()+t.substr(1)}function oc(t,e){return e=e||"transparent",pe(t)?t:we(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function f1(t,e){if(e==="_blank"||e==="blank"){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var d1=k,PH=["left","right","top","bottom","width","height"],sc=[["width","left","right"],["height","top","bottom"]];function gA(t,e,n,r,i){var a=0,o=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(),h,g;if(t==="horizontal"){var v=c.width+(d?-d.x+c.x:0);h=a+v,h>r||l.newline?(a=0,h=v,o+=s+n,s=c.height):s=Math.max(s,c.height)}else{var m=c.height+(d?-d.y+c.y:0);g=o+m,g>i||l.newline?(a+=s+n,o=0,g=m,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),t==="horizontal"?a=h+n:o=g+n)})}var lc=gA;ke(gA,"vertical"),ke(gA,"horizontal");function LRe(t,e,n){var r=e.width,i=e.height,a=he(t.left,r),o=he(t.top,i),s=he(t.right,r),l=he(t.bottom,i);return(isNaN(a)||isNaN(parseFloat(t.left)))&&(a=0),(isNaN(s)||isNaN(parseFloat(t.right)))&&(s=r),(isNaN(o)||isNaN(parseFloat(t.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(t.bottom)))&&(l=i),n=ac(n||0),{width:Math.max(s-a-n[1]-n[3],0),height:Math.max(l-o-n[0]-n[2],0)}}function sn(t,e,n){n=ac(n||0);var r=e.width,i=e.height,a=he(t.left,r),o=he(t.top,i),s=he(t.right,r),l=he(t.bottom,i),u=he(t.width,r),c=he(t.height,i),f=n[2]+n[0],d=n[1]+n[3],h=t.aspect;switch(isNaN(u)&&(u=r-s-d-a),isNaN(c)&&(c=i-l-f-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>r/i?u=r*.8:c=i*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(a)&&(a=r-s-u-d),isNaN(o)&&(o=i-l-c-f),t.left||t.right){case"center":a=r/2-u/2-n[3];break;case"right":a=r-u-d;break}switch(t.top||t.bottom){case"middle":case"center":o=i/2-c/2-n[0];break;case"bottom":o=i-c-f;break}a=a||0,o=o||0,isNaN(u)&&(u=r-d-a-(s||0)),isNaN(c)&&(c=i-f-o-(l||0));var g=new ze(a+n[3],o+n[0],u,c);return g.margin=n,g}function h1(t,e,n,r,i,a){var o=!i||!i.hv||i.hv[0],s=!i||!i.hv||i.hv[1],l=i&&i.boundingMode||"all";if(a=a||t,a.x=t.x,a.y=t.y,!o&&!s)return!1;var u;if(l==="raw")u=t.type==="group"?new ze(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=sn(Te({width:u.width,height:u.height},e),n,r),d=o?f.x-u.x:0,h=s?f.y-u.y:0;return l==="raw"?(a.x=d,a.y=h):(a.x+=d,a.y+=h),a===t&&t.markRedraw(),!0}function VRe(t,e){return t[sc[e][0]]!=null||t[sc[e][1]]!=null&&t[sc[e][2]]!=null}function pv(t){var e=t.layoutMode||t.constructor.layoutMode;return we(e)?e:e?{type:e}:null}function vl(t,e,n){var r=n&&n.ignoreSize;!re(r)&&(r=[r,r]);var i=o(sc[0],0),a=o(sc[1],1);u(sc[0],t,i),u(sc[1],t,a);function o(c,f){var d={},h=0,g={},v=0,m=2;if(d1(c,function(_){g[_]=t[_]}),d1(c,function(_){s(e,_)&&(d[_]=g[_]=e[_]),l(d,_)&&h++,l(g,_)&&v++}),r[f])return l(e,c[1])?g[c[2]]=null:l(e,c[2])&&(g[c[1]]=null),g;if(v===m||!h)return g;if(h>=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){d1(c,function(h){f[h]=d[h]})}}function kd(t){return $H({},t)}function $H(t,e){return e&&t&&d1(PH,function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t}var BRe=et(),He=function(t){U(e,t);function e(n,r,i){var a=t.call(this,n,r,i)||this;return a.uid=Md("ec_cpt_model"),a}return e.prototype.init=function(n,r,i){this.mergeDefaultAndTheme(n,i)},e.prototype.mergeDefaultAndTheme=function(n,r){var i=pv(this),a=i?kd(n):{},o=r.getTheme();Le(n,o.get(this.mainType)),Le(n,this.getDefaultOption()),i&&vl(n,a,i)},e.prototype.mergeOption=function(n,r){Le(this.option,n,!0);var i=pv(this);i&&vl(this.option,n,i)},e.prototype.optionUpdated=function(n,r){},e.prototype.getDefaultOption=function(){var n=this.constructor;if(!TIe(n))return n.defaultOption;var r=BRe(this);if(!r.defaultOption){for(var i=[],a=n;a;){var o=a.prototype.defaultOption;o&&i.push(o),a=a.superClass}for(var s={},l=i.length-1;l>=0;l--)s=Le(s,i[l],!0);r.defaultOption=s}return r.defaultOption},e.prototype.getReferringComponents=function(n,r){var i=n+"Index",a=n+"Id";return Ug(this.ecModel,n,{index:this.get(i,!0),id:this.get(a,!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}(wt);I7(He,wt),A_(He),xRe(He),wRe(He,zRe);function zRe(t){var e=[];return k(He.getClassesByMainType(t),function(n){e=e.concat(n.dependencies||n.prototype.dependencies||[])}),e=ie(e,function(n){return oo(n).main}),t!=="dataset"&&Fe(e,"dataset")<=0&&e.unshift("dataset"),e}var AH="";typeof navigator<"u"&&(AH=navigator.platform||"");var Nd="rgba(0, 0, 0, 0.2)";const FRe={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Nd,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Nd,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Nd,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Nd,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Nd,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Nd,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:AH.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 vA=be(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Xi="original",or="arrayRows",Yi="objectRows",ho="keyedColumns",ps="typedArray",EH="unknown",po="column",Ld="row",Xn={Must:1,Might:2,Not:3},MH=et();function WRe(t){MH(t).datasetMap=be()}function IH(t,e,n){var r={},i=yA(e);if(!i||!t)return r;var a=[],o=[],s=e.ecModel,l=MH(s).datasetMap,u=i.uid+"_"+n.seriesLayoutBy,c,f;t=t.slice(),k(t,function(v,m){var y=we(v)?v:t[m]={name:v};y.type==="ordinal"&&c==null&&(c=m,f=g(y)),r[y.name]=[]});var d=l.get(u)||l.set(u,{categoryWayDim:f,valueWayDim:0});k(t,function(v,m){var y=v.name,b=g(v);if(c==null){var _=d.valueWayDim;h(r[y],_,b),h(o,_,b),d.valueWayDim+=b}else if(c===m)h(r[y],0,b),h(a,0,b);else{var _=d.categoryWayDim;h(r[y],_,b),h(o,_,b),d.categoryWayDim+=b}});function h(v,m,y){for(var b=0;b<y;b++)v.push(m+b)}function g(v){var m=v.dimsDef;return m?m.length:1}return a.length&&(r.itemName=a),o.length&&(r.seriesName=o),r}function mA(t,e,n){var r={},i=yA(t);if(!i)return r;var a=e.sourceFormat,o=e.dimensionsDefine,s;(a===Yi||a===ho)&&k(o,function(c,f){(we(c)?c.name:c)==="name"&&(s=f)});var l=function(){for(var c={},f={},d=[],h=0,g=Math.min(5,n);h<g;h++){var v=RH(e.data,a,e.seriesLayoutBy,o,e.startIndex,h);d.push(v);var m=v===Xn.Not;if(m&&c.v==null&&h!==s&&(c.v=h),(c.n==null||c.n===c.v||!m&&d[c.n]===Xn.Not)&&(c.n=h),y(c)&&d[c.n]!==Xn.Not)return c;m||(v===Xn.Might&&f.v==null&&h!==s&&(f.v=h),(f.n==null||f.n===f.v)&&(f.n=h))}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 yA(t){var e=t.get("data",!0);if(!e)return Ug(t.ecModel,"dataset",{index:t.get("datasetIndex",!0),id:t.get("datasetId",!0)},on).models[0]}function QRe(t){return!t.get("transform",!0)&&!t.get("fromTransformResult",!0)?[]:Ug(t.ecModel,"dataset",{index:t.get("fromDatasetIndex",!0),id:t.get("fromDatasetId",!0)},on).models}function DH(t,e){return RH(t.data,t.sourceFormat,t.seriesLayoutBy,t.dimensionsDefine,t.startIndex,e)}function RH(t,e,n,r,i,a){var o,s=5;if(rr(t))return Xn.Not;var l,u;if(r){var c=r[a];we(c)?(l=c.name,u=c.type):pe(c)&&(l=c)}if(u!=null)return u==="ordinal"?Xn.Must:Xn.Not;if(e===or){var f=t;if(n===Ld){for(var d=f[a],h=0;h<(d||[]).length&&h<s;h++)if((o=O(d[i+h]))!=null)return o}else for(var h=0;h<f.length&&h<s;h++){var g=f[i+h];if(g&&(o=O(g[a]))!=null)return o}}else if(e===Yi){var v=t;if(!l)return Xn.Not;for(var h=0;h<v.length&&h<s;h++){var m=v[h];if(m&&(o=O(m[l]))!=null)return o}}else if(e===ho){var y=t;if(!l)return Xn.Not;var d=y[l];if(!d||rr(d))return Xn.Not;for(var h=0;h<d.length&&h<s;h++)if((o=O(d[h]))!=null)return o}else if(e===Xi)for(var b=t,h=0;h<b.length&&h<s;h++){var m=b[h],_=vd(m);if(!re(_))return Xn.Not;if((o=O(_[a]))!=null)return o}function O(S){var x=pe(S);if(S!=null&&Number.isFinite(Number(S))&&S!=="")return x?Xn.Might:Xn.Not;if(x&&S!=="-")return Xn.Must}return Xn.Not}var bA=be();function HRe(t,e){Pe(bA.get(t)==null&&e),bA.set(t,e)}function jRe(t,e,n){var r=bA.get(e);if(!r)return n;var i=r(t);if(!i)return n;if(process.env.NODE_ENV!=="production")for(var a=0;a<i.length;a++)Pe(md(i[a]));return n.concat(i)}var kH=et(),GRe=et(),_A=function(){function t(){}return t.prototype.getColorFromPalette=function(e,n,r){var i=xt(this.get("color",!0)),a=this.get("colorLayer",!0);return NH(this,kH,i,a,e,n,r)},t.prototype.clearColorPalette=function(){URe(this,kH)},t}();function OA(t,e,n,r){var i=xt(t.get(["aria","decal","decals"]));return NH(t,GRe,i,null,e,n,r)}function ZRe(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 NH(t,e,n,r,i,a,o){a=a||t;var s=e(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=o==null||!r?n:ZRe(r,o);if(c=c||n,!(!c||!c.length)){var f=c[l];return i&&(u[i]=f),s.paletteIdx=(l+1)%c.length,f}}function URe(t,e){e(t).paletteIdx=0,e(t).paletteNameMap={}}var p1,gv,LH,SA="\0_ec_inner",VH=1,XRe={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"},YRe={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"},g1={};function qRe(t){k(t,function(e,n){if(!He.hasClass(n)){var r=XRe[n];r&&!g1[r]&&(Gn("Component "+n+` is used but not imported.
  305. import { `+r+` } from 'echarts/components';
  306. echarts.use([`+r+"]);"),g1[r]=!0)}})}var xA=function(t){U(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(n,r,i,a,o,s){a=a||{},this.option=null,this._theme=new wt(a),this._locale=new wt(o),this._optionManager=s},e.prototype.setOption=function(n,r,i){process.env.NODE_ENV!=="production"&&(Pe(n!=null,"option is null/undefined"),Pe(n[SA]!==VH,"please use chart.getOption()"));var a=FH(r);this._optionManager.setOption(n,i,a),this._resetOption(null,a)},e.prototype.resetOption=function(n,r){return this._resetOption(n,FH(r))},e.prototype._resetOption=function(n,r){var i=!1,a=this._optionManager;if(!n||n==="recreate"){var o=a.mountOption(n==="recreate");process.env.NODE_ENV!=="production"&&qRe(o),!this.option||n==="recreate"?LH(this,o):(this.restoreData(),this._mergeOption(o,r)),i=!0}if((n==="timeline"||n==="media")&&this.restoreData(),!n||n==="recreate"||n==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,r))}if(!n||n==="recreate"||n==="media"){var l=a.getMediaOption(this);l.length&&k(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,a=this._componentsMap,o=this._componentsCount,s=[],l=be(),u=r&&r.replaceMergeMainTypeMap;WRe(this),k(n,function(f,d){f!=null&&(He.hasClass(d)?d&&(s.push(d),l.set(d,!0)):i[d]=i[d]==null?$e(f):Le(i[d],f,!0))}),u&&u.each(function(f,d){He.hasClass(d)&&!l.get(d)&&(s.push(d),l.set(d,!0))}),He.topologicalTravel(s,He.getAllClassMainTypes(),c,this);function c(f){var d=jRe(this,f,xt(n[f])),h=a.get(f),g=h?u&&u.get(f)?"replaceMerge":"normalMerge":"replaceAll",v=C7(h,d,g);mIe(v,f,He),i[f]=null,a.set(f,null),o.set(f,0);var m=[],y=[],b=0,_,O;k(v,function(S,x){var w=S.existing,T=S.newOption;if(!T)w&&(w.mergeOption({},this),w.optionUpdated({},!1));else{var P=f==="series",C=He.getClass(f,S.keyInfo.subType,!P);if(!C){if(process.env.NODE_ENV!=="production"){var $=S.keyInfo.subType,A=YRe[$];g1[$]||(g1[$]=!0,Gn(A?"Series "+$+` is used but not imported.
  307. import { `+A+` } from 'echarts/charts';
  308. echarts.use([`+A+"]);":"Unknown series "+$))}return}if(f==="tooltip"){if(_){process.env.NODE_ENV!=="production"&&(O||(Wt("Currently only one tooltip component is allowed."),O=!0));return}_=!0}if(w&&w.constructor===C)w.name=S.keyInfo.name,w.mergeOption(T,this),w.optionUpdated(T,!1);else{var E=ne({componentIndex:x},S.keyInfo);w=new C(T,this,this,E),ne(w,E),S.brandNew&&(w.__requireNewView=!0),w.init(T,this,this),w.optionUpdated(null,!0)}}w?(m.push(w.option),y.push(w),b++):(m.push(void 0),y.push(void 0))},this),i[f]=m,a.set(f,y),o.set(f,b),f==="series"&&p1(this)}this._seriesIndices||p1(this)},e.prototype.getOption=function(){var n=$e(this.option);return k(n,function(r,i){if(He.hasClass(i)){for(var a=xt(r),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!md(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,n[i]=a}}),delete n[SA],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 a=i[r||0];if(a)return a;if(r==null){for(var o=0;o<i.length;o++)if(i[o])return i[o]}}},e.prototype.queryComponents=function(n){var r=n.mainType;if(!r)return[];var i=n.index,a=n.id,o=n.name,s=this._componentsMap.get(r);if(!s||!s.length)return[];var l;return i!=null?(l=[],k(xt(i),function(u){s[u]&&l.push(s[u])})):a!=null?l=BH("id",a,s):o!=null?l=BH("name",o,s):l=vt(s,function(u){return!!u}),zH(l,n)},e.prototype.findComponents=function(n){var r=n.query,i=n.mainType,a=s(r),o=a?this.queryComponents(a):vt(this._componentsMap.get(i),function(u){return!!u});return l(zH(o,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?vt(u,n.filter):u}},e.prototype.eachComponent=function(n,r,i){var a=this._componentsMap;if(xe(n)){var o=r,s=n;a.each(function(f,d){for(var h=0;f&&h<f.length;h++){var g=f[h];g&&s.call(o,d,g,g.componentIndex)}})}else for(var l=pe(n)?a.get(n):we(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=gn(n,null);return vt(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 vt(this._componentsMap.get("series"),function(r){return!!r&&r.subType===n})},e.prototype.getSeries=function(){return vt(this._componentsMap.get("series"),function(n){return!!n})},e.prototype.getSeriesCount=function(){return this._componentsCount.get("series")},e.prototype.eachSeries=function(n,r){gv(this),k(this._seriesIndices,function(i){var a=this._componentsMap.get("series")[i];n.call(r,a,i)},this)},e.prototype.eachRawSeries=function(n,r){k(this._componentsMap.get("series"),function(i){i&&n.call(r,i,i.componentIndex)})},e.prototype.eachSeriesByType=function(n,r,i){gv(this),k(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];o.subType===n&&r.call(i,o,a)},this)},e.prototype.eachRawSeriesByType=function(n,r,i){return k(this.getSeriesByType(n),r,i)},e.prototype.isSeriesFiltered=function(n){return gv(this),this._seriesIndicesMap.get(n.componentIndex)==null},e.prototype.getCurrentSeriesIndices=function(){return(this._seriesIndices||[]).slice()},e.prototype.filterSeries=function(n,r){gv(this);var i=[];k(this._seriesIndices,function(a){var o=this._componentsMap.get("series")[a];n.call(r,o,a)&&i.push(a)},this),this._seriesIndices=i,this._seriesIndicesMap=be(i)},e.prototype.restoreData=function(n){p1(this);var r=this._componentsMap,i=[];r.each(function(a,o){He.hasClass(o)&&i.push(o)}),He.topologicalTravel(i,He.getAllClassMainTypes(),function(a){k(r.get(a),function(o){o&&(a!=="series"||!KRe(o,n))&&o.restoreData()})})},e.internalField=function(){p1=function(n){var r=n._seriesIndices=[];k(n._componentsMap.get("series"),function(i){i&&r.push(i.componentIndex)}),n._seriesIndicesMap=be(r)},gv=function(n){if(process.env.NODE_ENV!=="production"&&!n._seriesIndices)throw new Error("Option should contains series.")},LH=function(n,r){n.option={},n.option[SA]=VH,n._componentsMap=be({series:[]}),n._componentsCount=be();var i=r.aria;we(i)&&i.enabled==null&&(i.enabled=!0),JRe(r,n._theme.option),Le(r,FRe,!1),n._mergeOption(r,null)}}(),e}(wt);function KRe(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 JRe(t,e){var n=t.color&&!t.colorLayer;k(e,function(r,i){i==="colorLayer"&&n||He.hasClass(i)||(typeof r=="object"?t[i]=t[i]?Le(t[i],r,!1):$e(r):t[i]==null&&(t[i]=r))})}function BH(t,e,n){if(re(e)){var r=be();return k(e,function(a){if(a!=null){var o=gn(a,null);o!=null&&r.set(a,!0)}}),vt(n,function(a){return a&&r.get(a[t])})}else{var i=gn(e,null);return vt(n,function(a){return a&&i!=null&&a[t]===i})}}function zH(t,e){return e.hasOwnProperty("subType")?vt(t,function(n){return n&&n.subType===e.subType}):t}function FH(t){var e=be();return t&&k(xt(t.replaceMerge),function(n){process.env.NODE_ENV!=="production"&&Pe(He.hasClass(n),'"'+n+'" is not valid component main type in "replaceMerge"'),e.set(n,!0)}),{replaceMergeMainTypeMap:e}}Kt(xA,_A);var eke=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isSSR","isDisposed","on","off","getDataURL","getConnectedDataURL","getOption","getId","updateLabelLayout"],WH=function(){function t(e){k(eke,function(n){this[n]=ve(e[n],e)},this)}return t}(),wA={},uc=function(){function t(){this._coordinateSystems=[]}return t.prototype.create=function(e,n){var r=[];k(wA,function(i,a){var o=i.create(e,n);r=r.concat(o||[])}),this._coordinateSystems=r},t.prototype.update=function(e,n){k(this._coordinateSystems,function(r){r.update&&r.update(e,n)})},t.prototype.getCoordinateSystems=function(){return this._coordinateSystems.slice()},t.register=function(e,n){wA[e]=n},t.get=function(e){return wA[e]},t}(),tke=/^(min|max)?(.+)$/,nke=function(){function t(e){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=e}return t.prototype.setOption=function(e,n,r){e&&(k(xt(e.series),function(o){o&&o.data&&rr(o.data)&&yg(o.data)}),k(xt(e.dataset),function(o){o&&o.source&&rr(o.source)&&yg(o.source)})),e=$e(e);var i=this._optionBackup,a=rke(e,n,!i);this._newBaseOption=a.baseOption,i?(a.timelineOptions.length&&(i.timelineOptions=a.timelineOptions),a.mediaList.length&&(i.mediaList=a.mediaList),a.mediaDefault&&(i.mediaDefault=a.mediaDefault)):this._optionBackup=a},t.prototype.mountOption=function(e){var n=this._optionBackup;return this._timelineOptions=n.timelineOptions,this._mediaList=n.mediaList,this._mediaDefault=n.mediaDefault,this._currentMediaIndices=[],$e(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=$e(r[i.getCurrentIndex()]))}return n},t.prototype.getMediaOption=function(e){var n=this._api.getWidth(),r=this._api.getHeight(),i=this._mediaList,a=this._mediaDefault,o=[],s=[];if(!i.length&&!a)return s;for(var l=0,u=i.length;l<u;l++)ike(i[l].query,n,r)&&o.push(l);return!o.length&&a&&(o=[-1]),o.length&&!oke(o,this._currentMediaIndices)&&(s=ie(o,function(c){return $e(c===-1?a.option:i[c].option)})),this._currentMediaIndices=o,s},t}();function rke(t,e,n){var r=[],i,a,o=t.baseOption,s=t.timeline,l=t.options,u=t.media,c=!!t.media,f=!!(l||s||o&&o.timeline);o?(a=o,a.timeline||(a.timeline=s)):((f||c)&&(t.options=t.media=null),a=t),c&&(re(u)?k(u,function(h){process.env.NODE_ENV!=="production"&&h&&!h.option&&we(h.query)&&we(h.query.option)&&Gn("Illegal media option. Must be like { media: [ { query: {}, option: {} } ] }"),h&&h.option&&(h.query?r.push(h):i||(i=h))}):process.env.NODE_ENV!=="production"&&Gn("Illegal media option. Must be an array. Like { media: [ {...}, {...} ] }")),d(a),k(l,function(h){return d(h)}),k(r,function(h){return d(h.option)});function d(h){k(e,function(g){g(h,n)})}return{baseOption:a,timelineOptions:l||[],mediaDefault:i,mediaList:r}}function ike(t,e,n){var r={width:e,height:n,aspectratio:e/n},i=!0;return k(t,function(a,o){var s=o.match(tke);if(!(!s||!s[1]||!s[2])){var l=s[1],u=s[2].toLowerCase();ake(r[u],a,l)||(i=!1)}}),i}function ake(t,e,n){return n==="min"?t>=e:n==="max"?t<=e:t===e}function oke(t,e){return t.join(",")===e.join(",")}var qi=k,vv=we,QH=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function CA(t){var e=t&&t.itemStyle;if(e)for(var n=0,r=QH.length;n<r;n++){var i=QH[n],a=e.normal,o=e.emphasis;a&&a[i]&&(process.env.NODE_ENV!=="production"&&nn("itemStyle.normal."+i,i),t[i]=t[i]||{},t[i].normal?Le(t[i].normal,a[i]):t[i].normal=a[i],a[i]=null),o&&o[i]&&(process.env.NODE_ENV!=="production"&&nn("itemStyle.emphasis."+i,"emphasis."+i),t[i]=t[i]||{},t[i].emphasis?Le(t[i].emphasis,o[i]):t[i].emphasis=o[i],o[i]=null)}}function sr(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"&&Hi("'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,Te(t[e],r)):t[e]=r),i&&(process.env.NODE_ENV!=="production"&&Hi(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 mv(t){sr(t,"itemStyle"),sr(t,"lineStyle"),sr(t,"areaStyle"),sr(t,"label"),sr(t,"labelLine"),sr(t,"upperLabel"),sr(t,"edgeLabel")}function ln(t,e){var n=vv(t)&&t[e],r=vv(n)&&n.textStyle;if(r){process.env.NODE_ENV!=="production"&&Hi("textStyle hierarchy in "+e+" has been removed since 4.0. All textStyle properties are configured in "+e+" directly now.");for(var i=0,a=w7.length;i<a;i++){var o=w7[i];r.hasOwnProperty(o)&&(n[o]=r[o])}}}function Ki(t){t&&(mv(t),ln(t,"label"),t.emphasis&&ln(t.emphasis,"label"))}function ske(t){if(vv(t)){CA(t),mv(t),ln(t,"label"),ln(t,"upperLabel"),ln(t,"edgeLabel"),t.emphasis&&(ln(t.emphasis,"label"),ln(t.emphasis,"upperLabel"),ln(t.emphasis,"edgeLabel"));var e=t.markPoint;e&&(CA(e),Ki(e));var n=t.markLine;n&&(CA(n),Ki(n));var r=t.markArea;r&&Ki(r);var i=t.data;if(t.type==="graph"){i=i||t.nodes;var a=t.links||t.edges;if(a&&!rr(a))for(var o=0;o<a.length;o++)Ki(a[o]);k(t.categories,function(u){mv(u)})}if(i&&!rr(i))for(var o=0;o<i.length;o++)Ki(i[o]);if(e=t.markPoint,e&&e.data)for(var s=e.data,o=0;o<s.length;o++)Ki(s[o]);if(n=t.markLine,n&&n.data)for(var l=n.data,o=0;o<l.length;o++)re(l[o])?(Ki(l[o][0]),Ki(l[o][1])):Ki(l[o]);t.type==="gauge"?(ln(t,"axisLabel"),ln(t,"title"),ln(t,"detail")):t.type==="treemap"?(sr(t.breadcrumb,"itemStyle"),k(t.levels,function(u){mv(u)})):t.type==="tree"&&mv(t.leaves)}}function gs(t){return re(t)?t:t?[t]:[]}function HH(t){return(re(t)?t[0]:t)||{}}function lke(t,e){qi(gs(t.series),function(r){vv(r)&&ske(r)});var n=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];e&&n.push("valueAxis","categoryAxis","logAxis","timeAxis"),qi(n,function(r){qi(gs(t[r]),function(i){i&&(ln(i,"axisLabel"),ln(i.axisPointer,"label"))})}),qi(gs(t.parallel),function(r){var i=r&&r.parallelAxisDefault;ln(i,"axisLabel"),ln(i&&i.axisPointer,"label")}),qi(gs(t.calendar),function(r){sr(r,"itemStyle"),ln(r,"dayLabel"),ln(r,"monthLabel"),ln(r,"yearLabel")}),qi(gs(t.radar),function(r){ln(r,"name"),r.name&&r.axisName==null&&(r.axisName=r.name,delete r.name,process.env.NODE_ENV!=="production"&&Hi("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"&&Hi("nameGap property in radar component has been changed to axisNameGap")),process.env.NODE_ENV!=="production"&&qi(r.indicator,function(i){i.text&&nn("text","name","radar.indicator")})}),qi(gs(t.geo),function(r){vv(r)&&(Ki(r),qi(gs(r.regions),function(i){Ki(i)}))}),qi(gs(t.timeline),function(r){Ki(r),sr(r,"label"),sr(r,"itemStyle"),sr(r,"controlStyle",!0);var i=r.data;re(i)&&k(i,function(a){we(a)&&(sr(a,"label"),sr(a,"itemStyle"))})}),qi(gs(t.toolbox),function(r){sr(r,"iconStyle"),qi(r.feature,function(i){sr(i,"iconStyle")})}),ln(HH(t.axisPointer),"label"),ln(HH(t.tooltip).axisPointer,"label")}function uke(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 cke(t,e,n,r){for(var i=e.split(","),a=t,o,s=0;s<i.length-1;s++)o=i[s],a[o]==null&&(a[o]={}),a=a[o];a[i[s]]==null&&(a[i[s]]=n)}function jH(t){t&&k(fke,function(e){e[0]in t&&!(e[1]in t)&&(t[e[1]]=t[e[0]])})}var fke=[["x","left"],["y","top"],["x2","right"],["y2","bottom"]],dke=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"],TA=[["borderRadius","barBorderRadius"],["borderColor","barBorderColor"],["borderWidth","barBorderWidth"]];function yv(t){var e=t&&t.itemStyle;if(e)for(var n=0;n<TA.length;n++){var r=TA[n][1],i=TA[n][0];e[r]!=null&&(e[i]=e[r],process.env.NODE_ENV!=="production"&&nn(r,i))}}function GH(t){t&&t.alignTo==="edge"&&t.margin!=null&&t.edgeDistance==null&&(process.env.NODE_ENV!=="production"&&nn("label.margin","label.edgeDistance","pie"),t.edgeDistance=t.margin)}function ZH(t){t&&t.downplay&&!t.blur&&(t.blur=t.downplay,process.env.NODE_ENV!=="production"&&nn("downplay","blur","sunburst"))}function hke(t){t&&t.focusNodeAdjacency!=null&&(t.emphasis=t.emphasis||{},t.emphasis.focus==null&&(process.env.NODE_ENV!=="production"&&nn("focusNodeAdjacency","emphasis: { focus: 'adjacency'}","graph/sankey"),t.emphasis.focus="adjacency"))}function UH(t,e){if(t)for(var n=0;n<t.length;n++)e(t[n]),t[n]&&UH(t[n].children,e)}function XH(t,e){lke(t,e),t.series=xt(t.series),k(t.series,function(n){if(we(n)){var r=n.type;if(r==="line")n.clipOverflow!=null&&(n.clip=n.clipOverflow,process.env.NODE_ENV!=="production"&&nn("clipOverflow","clip","line"));else if(r==="pie"||r==="gauge"){n.clockWise!=null&&(n.clockwise=n.clockWise,process.env.NODE_ENV!=="production"&&nn("clockWise","clockwise")),GH(n.label);var i=n.data;if(i&&!rr(i))for(var a=0;a<i.length;a++)GH(i[a]);n.hoverOffset!=null&&(n.emphasis=n.emphasis||{},(n.emphasis.scaleSize=null)&&(process.env.NODE_ENV!=="production"&&nn("hoverOffset","emphasis.scaleSize"),n.emphasis.scaleSize=n.hoverOffset))}else if(r==="gauge"){var o=uke(n,"pointer.color");o!=null&&cke(n,"itemStyle.color",o)}else if(r==="bar"){yv(n),yv(n.backgroundStyle),yv(n.emphasis);var i=n.data;if(i&&!rr(i))for(var a=0;a<i.length;a++)typeof i[a]=="object"&&(yv(i[a]),yv(i[a]&&i[a].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"&&nn("highlightPolicy","emphasis.focus","sunburst"))),ZH(n),UH(n.data,ZH)}else r==="graph"||r==="sankey"?hke(n):r==="map"&&(n.mapType&&!n.map&&(process.env.NODE_ENV!=="production"&&nn("mapType","map","map"),n.map=n.mapType),n.mapLocation&&(process.env.NODE_ENV!=="production"&&Hi("`mapLocation` is not used anymore."),Te(n,n.mapLocation)));n.hoverAnimation!=null&&(n.emphasis=n.emphasis||{},n.emphasis&&n.emphasis.scale==null&&(process.env.NODE_ENV!=="production"&&nn("hoverAnimation","emphasis.scale"),n.emphasis.scale=n.hoverAnimation)),jH(n)}}),t.dataRange&&(t.visualMap=t.dataRange),k(dke,function(n){var r=t[n];r&&(re(r)||(r=[r]),k(r,function(i){jH(i)}))})}function pke(t){var e=be();t.eachSeries(function(n){var r=n.get("stack");if(r){var i=e.get(r)||e.set(r,[]),a=n.getData(),o={stackResultDimension:a.getCalculationInfo("stackResultDimension"),stackedOverDimension:a.getCalculationInfo("stackedOverDimension"),stackedDimension:a.getCalculationInfo("stackedDimension"),stackedByDimension:a.getCalculationInfo("stackedByDimension"),isStackedByIndex:a.getCalculationInfo("isStackedByIndex"),data:a,seriesModel:n};if(!o.stackedDimension||!(o.isStackedByIndex||o.stackedByDimension))return;i.length&&a.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),e.each(gke)}function gke(t){k(t,function(e,n){var r=[],i=[NaN,NaN],a=[e.stackResultDimension,e.stackedOverDimension],o=e.data,s=e.isStackedByIndex,l=e.seriesModel.get("stackStrategy")||"samesign";o.modify(a,function(u,c,f){var d=o.get(e.stackedDimension,f);if(isNaN(d))return i;var h,g;s?g=o.getRawIndex(f):h=o.get(e.stackedByDimension,f);for(var v=NaN,m=n-1;m>=0;m--){var y=t[m];if(s||(g=y.data.rawIndexOf(y.stackedByDimension,h)),g>=0){var b=y.data.getByRawIndex(y.stackResultDimension,g);if(l==="all"||l==="positive"&&b>0||l==="negative"&&b<0||l==="samesign"&&d>=0&&b>0||l==="samesign"&&d<=0&&b<0){d=iIe(d,b),v=b;break}}}return r[0]=d,r[1]=v,r})})}var v1=function(){function t(e){this.data=e.data||(e.sourceFormat===ho?{}:[]),this.sourceFormat=e.sourceFormat||EH,this.seriesLayoutBy=e.seriesLayoutBy||po,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&&DH(this,r)===Xn.Must&&(i.type="ordinal")}}return t}();function PA(t){return t instanceof v1}function $A(t,e,n){n=n||YH(t);var r=e.seriesLayoutBy,i=mke(t,n,r,e.sourceHeader,e.dimensions),a=new v1({data:t,sourceFormat:n,seriesLayoutBy:r,dimensionsDefine:i.dimensionsDefine,startIndex:i.startIndex,dimensionsDetectedCount:i.dimensionsDetectedCount,metaRawOption:$e(e)});return a}function AA(t){return new v1({data:t,sourceFormat:rr(t)?ps:Xi})}function vke(t){return new v1({data:t.data,sourceFormat:t.sourceFormat,seriesLayoutBy:t.seriesLayoutBy,dimensionsDefine:$e(t.dimensionsDefine),startIndex:t.startIndex,dimensionsDetectedCount:t.dimensionsDetectedCount})}function YH(t){var e=EH;if(rr(t))e=ps;else if(re(t)){t.length===0&&(e=or);for(var n=0,r=t.length;n<r;n++){var i=t[n];if(i!=null){if(re(i)||rr(i)){e=or;break}else if(we(i)){e=Yi;break}}}}else if(we(t)){for(var a in t)if(me(t,a)&&jn(t[a])){e=ho;break}}return e}function mke(t,e,n,r,i){var a,o;if(!t)return{dimensionsDefine:qH(i),startIndex:o,dimensionsDetectedCount:a};if(e===or){var s=t;r==="auto"||r==null?KH(function(u){u!=null&&u!=="-"&&(pe(u)?o==null&&(o=1):o=0)},n,s,10):o=it(r)?r:r?1:0,!i&&o===1&&(i=[],KH(function(u,c){i[c]=u!=null?u+"":""},n,s,1/0)),a=i?i.length:n===Ld?s.length:s[0]?s[0].length:null}else if(e===Yi)i||(i=yke(t));else if(e===ho)i||(i=[],k(t,function(u,c){i.push(c)}));else if(e===Xi){var l=vd(t[0]);a=re(l)&&l.length||1}else e===ps&&process.env.NODE_ENV!=="production"&&Pe(!!i,"dimensions must be given if data is TypedArray.");return{startIndex:o,dimensionsDefine:qH(i),dimensionsDetectedCount:a}}function yke(t){for(var e=0,n;e<t.length&&!(n=t[e++]););if(n)return Ue(n)}function qH(t){if(t){var e=be();return ie(t,function(n,r){n=we(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 a=e.get(i.name);return a?i.name+="-"+a.count++:e.set(i.name,{count:1}),i})}}function KH(t,e,n,r){if(e===Ld)for(var i=0;i<n.length&&i<r;i++)t(n[i]?n[i][0]:null,i);else for(var a=n[0]||[],i=0;i<a.length&&i<r;i++)t(a[i],i)}function JH(t){var e=t.sourceFormat;return e===Yi||e===ho}var cc,fc,dc,ej,tj,nj=function(){function t(e,n){var r=PA(e)?e:AA(e);this._source=r;var i=this._data=r.data;if(r.sourceFormat===ps){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}tj(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;tj=function(o,s,l){var u=l.sourceFormat,c=l.seriesLayoutBy,f=l.startIndex,d=l.dimensionsDefine,h=ej[MA(u,c)];if(process.env.NODE_ENV!=="production"&&Pe(h,"Invalide sourceFormat: "+u),ne(o,h),u===ps)o.getItem=n,o.count=i,o.fillStorage=r;else{var g=ij(u,c);o.getItem=ve(g,null,s,f,d);var v=oj(u,c);o.count=ve(v,null,s,f,d)}};var n=function(o,s){o=o-this._offset,s=s||[];for(var l=this._data,u=this._dimSize,c=u*o,f=0;f<u;f++)s[f]=l[c+f];return s},r=function(o,s,l,u){for(var c=this._data,f=this._dimSize,d=0;d<f;d++){for(var h=u[d],g=h[0]==null?1/0:h[0],v=h[1]==null?-1/0:h[1],m=s-o,y=l[d],b=0;b<m;b++){var _=c[b*f+d];y[o+b]=_,_<g&&(g=_),_>v&&(v=_)}h[0]=g,h[1]=v}},i=function(){return this._data?this._data.length/this._dimSize:0};ej=(e={},e[or+"_"+po]={pure:!0,appendData:a},e[or+"_"+Ld]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},e[Yi]={pure:!0,appendData:a},e[ho]={pure:!0,appendData:function(o){var s=this._data;k(o,function(l,u){for(var c=s[u]||(s[u]=[]),f=0;f<(l||[]).length;f++)c.push(l[f])})}},e[Xi]={appendData:a},e[ps]={persistent:!1,pure:!0,appendData:function(o){process.env.NODE_ENV!=="production"&&Pe(rr(o),"Added data must be TypedArray if data in initialization is TypedArray"),this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},e);function a(o){for(var s=0;s<o.length;s++)this._data.push(o[s])}}(),t}(),rj=function(t,e,n,r){return t[r]},bke=(cc={},cc[or+"_"+po]=function(t,e,n,r){return t[r+e]},cc[or+"_"+Ld]=function(t,e,n,r,i){r+=e;for(var a=i||[],o=t,s=0;s<o.length;s++){var l=o[s];a[s]=l?l[r]:null}return a},cc[Yi]=rj,cc[ho]=function(t,e,n,r,i){for(var a=i||[],o=0;o<n.length;o++){var s=n[o].name;if(process.env.NODE_ENV!=="production"&&s==null)throw new Error;var l=t[s];a[o]=l?l[r]:null}return a},cc[Xi]=rj,cc);function ij(t,e){var n=bke[MA(t,e)];return process.env.NODE_ENV!=="production"&&Pe(n,'Do not support get item on "'+t+'", "'+e+'".'),n}var aj=function(t,e,n){return t.length},_ke=(fc={},fc[or+"_"+po]=function(t,e,n){return Math.max(0,t.length-e)},fc[or+"_"+Ld]=function(t,e,n){var r=t[0];return r?Math.max(0,r.length-e):0},fc[Yi]=aj,fc[ho]=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},fc[Xi]=aj,fc);function oj(t,e){var n=_ke[MA(t,e)];return process.env.NODE_ENV!=="production"&&Pe(n,'Do not support count on "'+t+'", "'+e+'".'),n}var EA=function(t,e,n){return t[e]},Oke=(dc={},dc[or]=EA,dc[Yi]=function(t,e,n){return t[n]},dc[ho]=EA,dc[Xi]=function(t,e,n){var r=vd(t);return r instanceof Array?r[e]:r},dc[ps]=EA,dc);function sj(t){var e=Oke[t];return process.env.NODE_ENV!=="production"&&Pe(e,'Do not support get value on "'+t+'".'),e}function MA(t,e){return t===or?t+"_"+e:t}function Vd(t,e,n){if(t){var r=t.getRawDataItem(e);if(r!=null){var i=t.getStore(),a=i.getSource().sourceFormat;if(n!=null){var o=t.getDimensionIndex(n),s=i.getDimensionProperty(o);return sj(a)(r,o,s)}else{var l=r;return a===Xi&&(l=vd(r)),l}}}}var Ske=/\{@(.+?)\}/g,m1=function(){function t(){}return t.prototype.getDataParams=function(e,n){var r=this.getData(n),i=this.getRawValue(e,n),a=r.getRawIndex(e),o=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",h=r.userOutput&&r.userOutput.get();return{componentType:f,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:d?this.subType:null,seriesIndex:this.seriesIndex,seriesId:d?this.id:null,seriesName:d?this.name:null,name:o,dataIndex:a,data:s,dataType:n,value:i,color:u,borderColor:c,dimensionNames:h?h.fullDimensions:null,encode:h?h.encode:null,$vars:["seriesName","name","value"]}},t.prototype.getFormattedLabel=function(e,n,r,i,a,o){n=n||"normal";var s=this.getData(r),l=this.getDataParams(e,r);if(o&&(l.value=o.interpolatedValue),i!=null&&re(l.value)&&(l.value=l.value[i]),!a){var u=s.getItemModel(e);a=u.get(n==="normal"?["label","formatter"]:[n,"label","formatter"])}if(xe(a))return l.status=n,l.dimensionIndex=i,a(l);if(pe(a)){var c=pA(a,l);return c.replace(Ske,function(f,d){var h=d.length,g=d;g.charAt(0)==="["&&g.charAt(h-1)==="]"&&(g=+g.slice(1,h-1),process.env.NODE_ENV!=="production"&&isNaN(g)&&Gn("Invalide label formatter: @"+d+", only support @[0], @[1], @[2], ..."));var v=Vd(s,e,g);if(o&&re(o.interpolatedValue)){var m=s.getDimensionIndex(g);m>=0&&(v=o.interpolatedValue[m])}return v!=null?v+"":""})}},t.prototype.getRawValue=function(e,n){return Vd(this.getData(n),e)},t.prototype.formatTooltip=function(e,n,r){},t}();function lj(t){var e,n;return we(t)?t.type?n=t:process.env.NODE_ENV!=="production"&&console.warn("The return type of `formatTooltip` is not supported: "+_r(t)):e=t,{text:e,frag:n}}function bv(t){return new xke(t)}var xke=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 a;this._plan&&!r&&(a=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(e&&e.modBy),u=e&&e.modDataCount||0;(o!==l||s!==u)&&(a="reset");function c(b){return!(b>=1)&&(b=1),b}var f;(this._dirty||a==="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"&&Pe(n._outputDueEnd!=null),this._dueEnd=n._outputDueEnd):(process.env.NODE_ENV!=="production"&&Pe(!this._progress||this._count),this._dueEnd=this._count?this._count(this.context):1/0),this._progress){var h=this._dueIndex,g=Math.min(d!=null?this._dueIndex+d:1/0,this._dueEnd);if(!r&&(f||h<g)){var v=this._progress;if(re(v))for(var m=0;m<v.length;m++)this._doProgress(v[m],h,g,l,u);else this._doProgress(v,h,g,l,u)}this._dueIndex=g;var y=this._settedOutputEnd!=null?this._settedOutputEnd:g;process.env.NODE_ENV!=="production"&&Pe(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,a){uj.reset(n,r,i,a),this._callingProgress=e,this._callingProgress({start:n,end:r,count:r-n,next:uj.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),re(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"&&Pe(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}(),uj=function(){var t,e,n,r,i,a={reset:function(l,u,c,f){e=l,t=u,n=c,r=f,i=Math.ceil(r/n),a.next=n>1&&r>0?s:o}};return a;function o(){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 ml(t,e){var n=e&&e.type;return n==="ordinal"?t:(n==="time"&&!it(t)&&t!=null&&t!=="-"&&(t=+hi(t)),t==null||t===""?NaN:Number(t))}var wke=be({number:function(t){return parseFloat(t)},time:function(t){return+hi(t)},trim:function(t){return pe(t)?Bi(t):t}});function cj(t){return wke.get(t)}var fj={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}},Cke=function(){function t(e,n){if(!it(n)){var r="";process.env.NODE_ENV!=="production"&&(r='rvalue of "<", ">", "<=", ">=" can only be number in filter.'),dt(r)}this._opFn=fj[e],this._rvalFloat=ao(n)}return t.prototype.evaluate=function(e){return it(e)?this._opFn(e,this._rvalFloat):this._opFn(ao(e),this._rvalFloat)},t}(),dj=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:ao(e),i=it(n)?n:ao(n),a=isNaN(r),o=isNaN(i);if(a&&(r=this._incomparable),o&&(i=this._incomparable),a&&o){var s=pe(e),l=pe(n);s&&(r=l?e:0),l&&(i=s?n:0)}return r<i?this._resultLT:r>i?-this._resultLT:0},t}(),Tke=function(){function t(e,n){this._rval=n,this._isEQ=e,this._rvalTypeof=typeof n,this._rvalFloat=ao(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=ao(e)===this._rvalFloat)}return this._isEQ?n:!n},t}();function Pke(t,e){return t==="eq"||t==="ne"?new Tke(t==="eq",e):me(fj,t)?new Cke(t,e):null}var $ke=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 ml(e,n)},t}();function Ake(t,e){var n=new $ke,r=t.data,i=n.sourceFormat=t.sourceFormat,a=t.startIndex,o="";t.seriesLayoutBy!==po&&(process.env.NODE_ENV!=="production"&&(o='`seriesLayoutBy` of upstream dataset can only be "column" in data transform.'),dt(o));var s=[],l={},u=t.dimensionsDefine;if(u)k(u,function(v,m){var y=v.name,b={index:m,name:y,displayName:v.displayName};if(s.push(b),y!=null){var _="";me(l,y)&&(process.env.NODE_ENV!=="production"&&(_='dimension name "'+y+'" duplicated.'),dt(_)),l[y]=b}});else for(var c=0;c<t.dimensionsDetectedCount;c++)s.push({index:c});var f=ij(i,po);e.__isBuiltIn&&(n.getRawDataItem=function(v){return f(r,a,s,v)},n.getRawData=ve(Eke,null,t)),n.cloneRawData=ve(Mke,null,t);var d=oj(i,po);n.count=ve(d,null,r,a,s);var h=sj(i);n.retrieveValue=function(v,m){var y=f(r,a,s,v);return g(y,m)};var g=n.retrieveValueFromItem=function(v,m){if(v!=null){var y=s[m];if(y)return h(v,m,y.name)}};return n.getDimensionInfo=ve(Ike,null,s,l),n.cloneAllDimensionInfo=ve(Dke,null,s),n}function Eke(t){var e=t.sourceFormat;if(!IA(e)){var n="";process.env.NODE_ENV!=="production"&&(n="`getRawData` is not supported in source format "+e),dt(n)}return t.data}function Mke(t){var e=t.sourceFormat,n=t.data;if(!IA(e)){var r="";process.env.NODE_ENV!=="production"&&(r="`cloneRawData` is not supported in source format "+e),dt(r)}if(e===or){for(var i=[],a=0,o=n.length;a<o;a++)i.push(n[a].slice());return i}else if(e===Yi){for(var i=[],a=0,o=n.length;a<o;a++)i.push(ne({},n[a]));return i}}function Ike(t,e,n){if(n!=null){if(it(n)||!isNaN(n)&&!me(e,n))return t[n];if(me(e,n))return e[n]}}function Dke(t){return $e(t)}var hj=be();function Rke(t){t=$e(t);var e=t.type,n="";e||(process.env.NODE_ENV!=="production"&&(n="Must have a `type` when `registerTransform`."),dt(n));var r=e.split(":");r.length!==2&&(process.env.NODE_ENV!=="production"&&(n='Name must include namespace like "ns:regression".'),dt(n));var i=!1;r[0]==="echarts"&&(e=r[1],i=!0),t.__isBuiltIn=i,hj.set(e,t)}function kke(t,e,n){var r=xt(t),i=r.length,a="";i||(process.env.NODE_ENV!=="production"&&(a="If `transform` declared, it should at least contain one transform."),dt(a));for(var o=0,s=i;o<s;o++){var l=r[o];e=Nke(l,e,n,i===1?null:o),o!==s-1&&(e.length=Math.max(e.length,1))}return e}function Nke(t,e,n,r){var i="";e.length||(process.env.NODE_ENV!=="production"&&(i="Must have at least one upstream dataset."),dt(i)),we(t)||(process.env.NODE_ENV!=="production"&&(i="transform declaration must be an object rather than "+typeof t+"."),dt(i));var a=t.type,o=hj.get(a);o||(process.env.NODE_ENV!=="production"&&(i='Can not find transform on type "'+a+'".'),dt(i));var s=ie(e,function(c){return Ake(c,o)}),l=xt(o.transform({upstream:s[0],upstreamList:s,config:$e(t.config)}));if(process.env.NODE_ENV!=="production"&&t.print){var u=ie(l,function(c){var f=r!=null?" === pipe index: "+r:"";return["=== dataset index: "+n.datasetIndex+f+" ===","- transform result data:",_r(c.data),"- transform result dimensions:",_r(c.dimensions)].join(`
  309. `)}).join(`
  310. `);lIe(u)}return ie(l,function(c,f){var d="";we(c)||(process.env.NODE_ENV!=="production"&&(d="A transform should not return some empty results."),dt(d)),c.data||(process.env.NODE_ENV!=="production"&&(d="Transform result data should be not be null or undefined"),dt(d));var h=YH(c.data);IA(h)||(process.env.NODE_ENV!=="production"&&(d="Transform result data should be array rows or object rows."),dt(d));var g,v=e[0];if(v&&f===0&&!c.dimensions){var m=v.startIndex;m&&(c.data=v.data.slice(0,m).concat(c.data)),g={seriesLayoutBy:po,sourceHeader:m,dimensions:v.metaRawOption.dimensions}}else g={seriesLayoutBy:po,sourceHeader:0,dimensions:c.dimensions};return $A(c.data,g,null)})}function IA(t){return t===or||t===Yi}var y1="undefined",Lke=typeof Uint32Array===y1?Array:Uint32Array,Vke=typeof Uint16Array===y1?Array:Uint16Array,pj=typeof Int32Array===y1?Array:Int32Array,gj=typeof Float64Array===y1?Array:Float64Array,vj={float:gj,int:pj,ordinal:Array,number:Array,time:gj},DA;function _v(t){return t>65535?Lke:Vke}function Bd(){return[1/0,-1/0]}function Bke(t){var e=t.constructor;return e===Array?t.slice():new e(t)}function mj(t,e,n,r,i){var a=vj[n||"float"];if(i){var o=t[e],s=o&&o.length;if(s!==r){for(var l=new a(r),u=0;u<s;u++)l[u]=o[u];t[e]=l}}else t[e]=new a(r)}var RA=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"&&Pe(xe(e.getItem)&&xe(e.count),"Invalid data provider."),this._provider=e,this._chunks=[],this._indices=null,this.getRawIndex=this._getRawIdxIdentity;var i=e.getSource(),a=this.defaultDimValueGetter=DA[i.sourceFormat];this._dimValueGetter=r||a,this._rawExtent=[];var o=JH(i);this._dimensions=ie(n,function(s){return process.env.NODE_ENV!=="production"&&o&&Pe(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,a=r.get(e);if(a!=null){if(i[a].type===n)return a}else a=i.length;return i[a]={type:n},r.set(e,a),this._chunks[a]=new vj[n||"float"](this._rawCount),this._rawExtent[a]=Bd(),a},t.prototype.collectOrdinalMeta=function(e,n){var r=this._chunks[e],i=this._dimensions[e],a=this._rawExtent,o=i.ordinalOffset||0,s=r.length;o===0&&(a[e]=Bd());for(var l=a[e],u=o;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"&&Pe(!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,a=i.length,o=this._rawExtent,s=this.count(),l=s+Math.max(e.length,n||0),u=0;u<a;u++){var c=i[u];mj(r,u,c.type,l,!0)}for(var f=[],d=s;d<l;d++)for(var h=d-s,g=0;g<a;g++){var c=i[g],v=DA.arrayRows.call(this,e[h]||f,c.property,h,g);r[g][d]=v;var m=o[g];v<m[0]&&(m[0]=v),v>m[1]&&(m[1]=v)}return this._rawCount=this._count=l,{start:s,end:l}},t.prototype._initDataFromProvider=function(e,n,r){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=ie(o,function(b){return b.property}),c=0;c<s;c++){var f=o[c];l[c]||(l[c]=Bd()),mj(a,c,f.type,n,r)}if(i.fillStorage)i.fillStorage(e,n,a,l);else for(var d=[],h=e;h<n;h++){d=i.getItem(h,d);for(var g=0;g<s;g++){var v=a[g],m=this._dimValueGetter(d,u[g],h,g);v[h]=m;var y=l[g];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 a=0;a<this._dimensions.length;a++)i.push(a)}else i=e;for(var a=0,o=i.length;a<o;a++)r.push(this.get(i[a],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,a=this.count();i<a;i++){var o=this.get(e,i);isNaN(o)||(r+=o)}return r},t.prototype.getMedian=function(e){var n=[];this.each([e],function(a){isNaN(a)||n.push(a)});var r=n.sort(function(a,o){return a-o}),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,a=this._count-1;i<=a;){var o=(i+a)/2|0;if(n[o]<e)i=o+1;else if(n[o]>e)a=o-1;else return o}return-1},t.prototype.indicesOfNearest=function(e,n,r){var i=this._chunks,a=i[e],o=[];if(!a)return o;r==null&&(r=1/0);for(var s=1/0,l=-1,u=0,c=0,f=this.count();c<f;c++){var d=this.getRawIndex(c),h=n-a[d],g=Math.abs(h);g<=r&&((g<s||g===s&&h>=0&&l<0)&&(s=g,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},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 a=0;a<i;a++)e[a]=n[a]}else e=new r(n.buffer,0,i)}else{var r=_v(this._rawCount);e=new r(this.count());for(var a=0;a<e.length;a++)e[a]=a}return e},t.prototype.filter=function(e,n){if(!this._count)return this;for(var r=this.clone(),i=r.count(),a=_v(r._rawCount),o=new a(i),s=[],l=e.length,u=0,c=e[0],f=r._chunks,d=0;d<i;d++){var h=void 0,g=r.getRawIndex(d);if(l===0)h=n(d);else if(l===1){var v=f[c][g];h=n(v,d)}else{for(var m=0;m<l;m++)s[m]=f[e[m]][g];s[m]=d,h=n.apply(null,s)}h&&(o[u++]=g)}return u<i&&(r._indices=o),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=Ue(e),a=i.length;if(!a)return this;var o=n.count(),s=_v(n._rawCount),l=new s(o),u=0,c=i[0],f=e[c][0],d=e[c][1],h=n._chunks,g=!1;if(!n._indices){var v=0;if(a===1){for(var m=h[i[0]],y=0;y<r;y++){var b=m[y];(b>=f&&b<=d||isNaN(b))&&(l[u++]=v),v++}g=!0}else if(a===2){for(var m=h[i[0]],_=h[i[1]],O=e[i[1]][0],S=e[i[1]][1],y=0;y<r;y++){var b=m[y],x=_[y];(b>=f&&b<=d||isNaN(b))&&(x>=O&&x<=S||isNaN(x))&&(l[u++]=v),v++}g=!0}}if(!g)if(a===1)for(var y=0;y<o;y++){var w=n.getRawIndex(y),b=h[i[0]][w];(b>=f&&b<=d||isNaN(b))&&(l[u++]=w)}else for(var y=0;y<o;y++){for(var T=!0,w=n.getRawIndex(y),P=0;P<a;P++){var C=i[P],b=h[C][w];(b<e[C][0]||b>e[C][1])&&(T=!1)}T&&(l[u++]=n.getRawIndex(y))}return u<o&&(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,a=[],o=n.length,s=e.count(),l=[],u=e._rawExtent,c=0;c<n.length;c++)u[n[c]]=Bd();for(var f=0;f<s;f++){for(var d=e.getRawIndex(f),h=0;h<o;h++)l[h]=i[n[h]][d];l[o]=f;var g=r&&r.apply(null,l);if(g!=null){typeof g!="object"&&(a[0]=g,g=a);for(var c=0;c<g.length;c++){var v=n[c],m=g[c],y=u[v],b=i[v];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,a=i[e],o=this.count(),s=0,l=Math.floor(1/n),u=this.getRawIndex(0),c,f,d,h=new(_v(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var g=1;g<o-1;g+=l){for(var v=Math.min(g+l,o-1),m=Math.min(g+l*2,o),y=(m+v)/2,b=0,_=v;_<m;_++){var O=this.getRawIndex(_),S=a[O];isNaN(S)||(b+=S)}b/=m-v;var x=g,w=Math.min(g+l,o),T=g-1,P=a[u];c=-1,d=x;for(var C=-1,$=0,_=x;_<w;_++){var O=this.getRawIndex(_),S=a[O];if(isNaN(S)){$++,C<0&&(C=O);continue}f=Math.abs((T-y)*(S-P)-(T-_)*(b-P)),f>c&&(c=f,d=O)}$>0&&$<w-x&&(h[s++]=Math.min(C,d),d=Math.max(C,d)),h[s++]=d,u=d}return h[s++]=this.getRawIndex(o-1),r._count=s,r._indices=h,r.getRawIndex=this._getRawIdx,r},t.prototype.downSample=function(e,n,r,i){for(var a=this.clone([e],!0),o=a._chunks,s=[],l=Math.floor(1/n),u=o[e],c=this.count(),f=a._rawExtent[e]=Bd(),d=new(_v(this._rawCount))(Math.ceil(c/l)),h=0,g=0;g<c;g+=l){l>c-g&&(l=c-g,s.length=l);for(var v=0;v<l;v++){var m=this.getRawIndex(g+v);s[v]=u[m]}var y=r(s),b=this.getRawIndex(Math.min(g+i(s,y)||0,c-1));u[b]=y,y<f[0]&&(f[0]=y),y>f[1]&&(f[1]=y),d[h++]=b}return a._count=h,a._indices=d,a._updateGetRawIdx(),a},t.prototype.each=function(e,n){if(this._count)for(var r=e.length,i=this._chunks,a=0,o=this.count();a<o;a++){var s=this.getRawIndex(a);switch(r){case 0:n(a);break;case 1:n(i[e[0]][s],a);break;case 2:n(i[e[0]][s],i[e[1]][s],a);break;default:for(var l=0,u=[];l<r;l++)u[l]=i[e[l]][s];u[l]=a,n.apply(null,u)}}},t.prototype.getDataExtent=function(e){var n=this._chunks[e],r=Bd();if(!n)return r;var i=this.count(),a=!this._indices,o;if(a)return this._rawExtent[e].slice();if(o=this._extent[e],o)return o.slice();o=r;for(var s=o[0],l=o[1],u=0;u<i;u++){var c=this.getRawIndex(u),f=n[c];f<s&&(s=f),f>l&&(l=f)}return o=[s,l],this._extent[e]=o,o},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,a=0;a<i.length;a++)r.push(i[a][n]);return r},t.prototype.clone=function(e,n){var r=new t,i=this._chunks,a=e&&Vi(e,function(s,l){return s[l]=!0,s},{});if(a)for(var o=0;o<i.length;o++)r._chunks[o]=a[o]?Bke(i[o]):i[o];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=$e(this._extent),e._rawExtent=$e(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,a){return ml(n[a],this._dimensions[a])}DA={arrayRows:e,objectRows:function(n,r,i,a){return ml(n[r],this._dimensions[a])},keyedColumns:e,original:function(n,r,i,a){var o=n&&(n.value==null?n:n.value);return ml(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(n,r,i,a){return n[a]}}}(),t}(),yj=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,a;if(Ov(e)){var o=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,a=[c._getVersionSign()]}else s=o.get("data",!0),l=rr(s)?ps:Xi,a=[];var f=this._getSourceMetaRawOption()||{},d=u&&u.metaRawOption||{},h=Re(f.seriesLayoutBy,d.seriesLayoutBy)||null,g=Re(f.sourceHeader,d.sourceHeader),v=Re(f.dimensions,d.dimensions),m=h!==d.seriesLayoutBy||!!g!=!!d.sourceHeader||v;i=m?[$A(s,{seriesLayoutBy:h,sourceHeader:g,dimensions:v},l)]:[]}else{var y=e;if(r){var b=this._applyTransform(n);i=b.sourceList,a=b.upstreamSignList}else{var _=y.get("source",!0);i=[$A(_,this._getSourceMetaRawOption(),null)],a=[]}}process.env.NODE_ENV!=="production"&&Pe(i&&a),this._setLocalSource(i,a)},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"&&Pe(i!=null||r!=null),i!=null){var a="";e.length!==1&&(process.env.NODE_ENV!=="production"&&(a="When using `fromTransformResult`, there should be only one upstream dataset"),_j(a))}var o,s=[],l=[];return k(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),_j(f)),s.push(c),l.push(u._getVersionSign())}),r?o=kke(r,s,{datasetIndex:n.componentIndex}):i!=null&&(o=[vke(s[0])]),{sourceList:o,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"&&Pe(Ov(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,a=this._storeList,o=a[i];o||(o=a[i]={});var s=o[r];if(!s){var l=this._getUpstreamSourceManagers()[0];Ov(this._sourceHost)&&l?s=l._innerGetDataStore(e,n,r):(s=new RA,s.initData(new nj(n,e.length),e)),o[r]=s}return s},t.prototype._getUpstreamSourceManagers=function(){var e=this._sourceHost;if(Ov(e)){var n=yA(e);return n?[n.getSourceManager()]:[]}else return ie(QRe(e),function(r){return r.getSourceManager()})},t.prototype._getSourceMetaRawOption=function(){var e=this._sourceHost,n,r,i;if(Ov(e))n=e.get("seriesLayoutBy",!0),r=e.get("sourceHeader",!0),i=e.get("dimensions",!0);else if(!this._getUpstreamSourceManagers().length){var a=e;n=a.get("seriesLayoutBy",!0),r=a.get("sourceHeader",!0),i=a.get("dimensions",!0)}return{seriesLayoutBy:n,sourceHeader:r,dimensions:i}},t}();function bj(t){var e=t.option.transform;e&&yg(t.option.transform)}function Ov(t){return t.mainType==="series"}function _j(t){throw new Error(t)}var Oj="line-height:1";function Sj(t,e){var n=t.color||"#6e7079",r=t.fontSize||12,i=t.fontWeight||"400",a=t.color||"#464646",o=t.fontSize||14,s=t.fontWeight||"900";return e==="html"?{nameStyle:"font-size:"+yr(r+"")+"px;color:"+yr(n)+";font-weight:"+yr(i+""),valueStyle:"font-size:"+yr(o+"")+"px;color:"+yr(a)+";font-weight:"+yr(s+"")}:{nameStyle:{fontSize:r,fill:n,fontWeight:i},valueStyle:{fontSize:o,fill:a,fontWeight:s}}}var zke=[0,10,20,30],Fke=["",`
  311. `,`
  312. `,`
  313. `];function Pn(t,e){return e.type=t,e}function kA(t){return t.type==="section"}function xj(t){return kA(t)?Wke:Qke}function wj(t){if(kA(t)){var e=0,n=t.blocks.length,r=n>1||n>0&&!t.noHeader;return k(t.blocks,function(i){var a=wj(i);a>=e&&(e=a+ +(r&&(!a||kA(i)&&!i.noHeader)))}),e}return 0}function Wke(t,e,n,r){var i=e.noHeader,a=Hke(wj(e)),o=[],s=e.blocks||[];Pe(!s||re(s)),s=s||[];var l=t.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(me(u,l)){var c=new dj(u[l],null);s.sort(function(g,v){return c.evaluate(g.sortParam,v.sortParam)})}else l==="seriesDesc"&&s.reverse()}k(s,function(g,v){var m=e.valueFormatter,y=xj(g)(m?ne(ne({},t),{valueFormatter:m}):t,g,v>0?a.html:0,r);y!=null&&o.push(y)});var f=t.renderMode==="richText"?o.join(a.richText):NA(o.join(""),i?n:a.html);if(i)return f;var d=dA(e.header,"ordinal",t.useUTC),h=Sj(r,t.renderMode).nameStyle;return t.renderMode==="richText"?Tj(t,d,h)+a.richText+f:NA('<div style="'+h+";"+Oj+';">'+yr(d)+"</div>"+f,n)}function Qke(t,e,n,r){var i=t.renderMode,a=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(O){return O=re(O)?O:[O],ie(O,function(S,x){return dA(S,re(h)?h[x]:h,u)})};if(!(a&&o)){var f=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),d=a?"":dA(l,"ordinal",u),h=e.valueType,g=o?[]:c(e.value,e.dataIndex),v=!s||!a,m=!s&&a,y=Sj(r,i),b=y.nameStyle,_=y.valueStyle;return i==="richText"?(s?"":f)+(a?"":Tj(t,d,b))+(o?"":Zke(t,g,v,m,_)):NA((s?"":f)+(a?"":jke(d,!s,b))+(o?"":Gke(g,v,m,_)),n)}}function Cj(t,e,n,r,i,a){if(t){var o=xj(t),s={useUTC:i,renderMode:n,orderMode:r,markupStyleCreator:e,valueFormatter:t.valueFormatter};return o(s,t,0,a)}}function Hke(t){return{html:zke[t],richText:Fke[t]}}function NA(t,e){var n='<div style="clear:both"></div>',r="margin: "+e+"px 0 0";return'<div style="'+r+";"+Oj+';">'+t+n+"</div>"}function jke(t,e,n){var r=e?"margin-left:2px":"";return'<span style="'+n+";"+r+'">'+yr(t)+"</span>"}function Gke(t,e,n,r){var i=n?"10px":"20px",a=e?"float:right;margin-left:"+i:"";return t=re(t)?t:[t],'<span style="'+a+";"+r+'">'+ie(t,function(o){return yr(o)}).join("&nbsp;&nbsp;")+"</span>"}function Tj(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Zke(t,e,n,r,i){var a=[i],o=r?10:20;return n&&a.push({padding:[0,0,0,o],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(re(e)?e.join(" "):e,a)}function Pj(t,e){var n=t.getData().getItemVisual(e,"style"),r=n[t.visualDrawType];return oc(r)}function $j(t,e){var n=t.get("padding");return n??(e==="richText"?[8,10]:10)}var LA=function(){function t(){this.richTextStyles={},this._nextStyleNameId=m7()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(e,n,r){var i=r==="richText"?this._generateStyleName():null,a=TH({color:n,type:e,renderMode:r,markerId:i});return pe(a)?a:(process.env.NODE_ENV!=="production"&&Pe(i),this.richTextStyles[i]=a.style,a.content)},t.prototype.wrapRichTextStyle=function(e,n){var r={};re(n)?k(n,function(a){return ne(r,a)}):ne(r,n);var i=this._generateStyleName();return this.richTextStyles[i]=r,"{"+i+"|"+e+"}"},t}();function Aj(t){var e=t.series,n=t.dataIndex,r=t.multipleSeries,i=e.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=e.getRawValue(n),l=re(s),u=Pj(e,n),c,f,d,h;if(o>1||l&&!o){var g=Uke(s,e,n,a,u);c=g.inlineValues,f=g.inlineValueTypes,d=g.blocks,h=g.inlineValues[0]}else if(o){var v=i.getDimensionInfo(a[0]);h=c=Vd(i,n,a[0]),f=v.type}else h=c=l?s[0]:s;var m=u2(e),y=m&&e.name||"",b=i.getName(n),_=r?y:b;return Pn("section",{header:y,noHeader:r||!m,sortParam:h,blocks:[Pn("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Bi(_),value:c,valueType:f,dataIndex:n})].concat(d||[])})}function Uke(t,e,n,r,i){var a=e.getData(),o=Vi(t,function(f,d,h){var g=a.getDimensionInfo(h);return f=f||g&&g.tooltip!==!1&&g.displayName!=null},!1),s=[],l=[],u=[];r.length?k(r,function(f){c(Vd(a,n,f),f)}):k(t,c);function c(f,d){var h=a.getDimensionInfo(d);!h||h.otherDims.tooltip===!1||(o?u.push(Pn("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:f,valueType:h.type})):(s.push(f),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var yl=et();function b1(t,e){return t.getName(e)||t.getId(e)}var _1="__universalTransitionEnabled",Ct=function(t){U(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=bv({count:Yke,reset:qke}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,i);var a=yl(this).sourceManager=new yj(this);a.prepareSource();var o=this.getInitialData(n,i);Mj(o,this),this.dataTask.context.data=o,process.env.NODE_ENV!=="production"&&Pe(o,"getInitialData returned invalid data."),yl(this).dataBeforeProcessed=o,Ej(this),this._initSelectedMapFromData(o)},e.prototype.mergeDefaultAndTheme=function(n,r){var i=pv(this),a=i?kd(n):{},o=this.subType;He.hasClass(o)&&(o+="Series"),Le(n,r.getTheme().get(this.subType)),Le(n,this.getDefaultOption()),Bu(n,"label",["show"]),this.fillDataTextStyle(n.data),i&&vl(n,a,i)},e.prototype.mergeOption=function(n,r){n=Le(this.option,n,!0),this.fillDataTextStyle(n.data);var i=pv(this);i&&vl(this.option,n,i);var a=yl(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(n,r);Mj(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,yl(this).dataBeforeProcessed=o,Ej(this),this._initSelectedMapFromData(o)},e.prototype.fillDataTextStyle=function(n){if(n&&!rr(n))for(var r=["show"],i=0;i<n.length;i++)n[i]&&n[i].label&&Bu(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=VA(this);if(r){var i=r.context.data;return n==null||!i.getLinkedData?i:i.getLinkedData(n)}else return yl(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=VA(this);if(r){var i=r.context;i.outputData=n,r!==this.dataTask&&(i.data=n)}yl(this).data=n},e.prototype.getEncode=function(){var n=this.get("encode",!0);if(n)return be(n)},e.prototype.getSourceManager=function(){return yl(this).sourceManager},e.prototype.getSource=function(){return this.getSourceManager().getSource()},e.prototype.getRawData=function(){return yl(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 Aj({series:this,dataIndex:n,multipleSeries:r})},e.prototype.isAnimationEnabled=function(){var n=this.ecModel;if(Je.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 a=this.ecModel,o=_A.prototype.getColorFromPalette.call(this,n,r,i);return o||(o=a.getColorFromPalette(n,r,i)),o},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 a=this.option.selectedMode,o=this.getData(r);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s<n.length;s++){var l=n[s],u=b1(o,l);i[u]=!1,this._selectedDataIndicesMap[u]=-1}}},e.prototype.toggleSelect=function(n,r){for(var i=[],a=0;a<n.length;a++)i[0]=n[a],this.isSelected(n[a],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=Ue(n),i=[],a=0;a<r.length;a++){var o=n[r[a]];o>=0&&i.push(o)}return i},e.prototype.isSelected=function(n,r){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(r);return(i==="all"||i[b1(a,n)])&&!a.getItemModel(n).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[_1])return!0;var n=this.option.universalTransition;return n?n===!0?!0:n&&n.enabled:!1},e.prototype._innerSelect=function(n,r){var i,a,o=this.option,s=o.selectedMode,l=r.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){we(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c<l;c++){var f=r[c],d=b1(n,f);u[d]=!0,this._selectedDataIndicesMap[d]=n.getRawIndex(f)}}else if(s==="single"||s===!0){var h=r[l-1],d=b1(n,h);o.selectedMap=(i={},i[d]=!0,i),this._selectedDataIndicesMap=(a={},a[d]=n.getRawIndex(h),a)}}},e.prototype._initSelectedMapFromData=function(n){if(!this.option.selectedMap){var r=[];n.hasItemOption&&n.each(function(i){var a=n.getRawDataItem(i);a&&a.selected&&r.push(i)}),r.length>0&&this._innerSelect(n,r)}},e.registerClass=function(n){return He.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}(He);Kt(Ct,m1),Kt(Ct,_A),I7(Ct,He);function Ej(t){var e=t.name;u2(t)||(t.name=Xke(t)||e)}function Xke(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),r=[];return k(n,function(i){var a=e.getDimensionInfo(i);a.displayName&&r.push(a.displayName)}),r.join(" ")}function Yke(t){return t.model.getRawData().count()}function qke(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Kke}function Kke(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Mj(t,e){k(bg(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,ke(Jke,e))})}function Jke(t,e){var n=VA(t);return n&&n.setOutputEnd((e||this).count()),e}function VA(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 At=function(){function t(){this.group=new Me,this.uid=Md("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}();d2(At),A_(At);function zd(){var t=et();return function(e){var n=t(e),r=e.pipelineContext,i=!!n.large,a=!!n.progressiveRender,o=n.large=!!(r&&r.large),s=n.progressiveRender=!!(r&&r.progressiveRender);return(i!==o||a!==s)&&"reset"}}var Ij=et(),eNe=zd(),_t=function(){function t(){this.group=new Me,this.uid=Md("viewChart"),this.renderTask=bv({plan:tNe,reset:nNe}),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 a=e.getData(i&&i.dataType);if(!a){process.env.NODE_ENV!=="production"&&Gn("Unknown dataType "+i.dataType);return}Rj(a,i,"emphasis")},t.prototype.downplay=function(e,n,r,i){var a=e.getData(i&&i.dataType);if(!a){process.env.NODE_ENV!=="production"&&Gn("Unknown dataType "+i.dataType);return}Rj(a,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){pl(this.group,e)},t.markUpdateMethod=function(e,n){Ij(e).updateMethod=n},t.protoInitialize=function(){var e=t.prototype;e.type="chart"}(),t}();function Dj(t,e,n){t&&fl(t)&&(e==="emphasis"?fs:ds)(t,n)}function Rj(t,e,n){var r=zu(t,e),i=e&&e.highlightKey!=null?DDe(e.highlightKey):null;r!=null?k(xt(r),function(a){Dj(t.getItemGraphicEl(a),n,i)}):t.eachItemGraphicEl(function(a){Dj(a,n,i)})}d2(_t,["dispose"]),A_(_t);function tNe(t){return eNe(t.model)}function nNe(t){var e=t.model,n=t.ecModel,r=t.api,i=t.payload,a=e.pipelineContext.progressiveRender,o=t.view,s=i&&Ij(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](e,n,r,i),rNe[l]}var rNe={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)}}},O1="\0__throttleOriginMethod",kj="\0__throttleRate",Nj="\0__throttleType";function S1(t,e,n){var r,i=0,a=0,o=null,s,l,u,c;e=e||0;function f(){a=new Date().getTime(),o=null,t.apply(l,u||[])}var d=function(){for(var h=[],g=0;g<arguments.length;g++)h[g]=arguments[g];r=new Date().getTime(),l=this,u=h;var v=c||e,m=c||n;c=null,s=r-(m?i:a)-v,clearTimeout(o),m?o=setTimeout(f,v):s>=0?f():o=setTimeout(f,-s),i=r};return d.clear=function(){o&&(clearTimeout(o),o=null)},d.debounceNextCall=function(h){c=h},d}function Fd(t,e,n,r){var i=t[e];if(i){var a=i[O1]||i,o=i[Nj],s=i[kj];if(s!==n||o!==r){if(n==null||!r)return t[e]=a;i=t[e]=S1(a,n,r==="debounce"),i[O1]=a,i[Nj]=r,i[kj]=n}return i}}function Sv(t,e){var n=t[e];n&&n[O1]&&(n.clear&&n.clear(),t[e]=n[O1])}var Lj=et(),Vj={itemStyle:Wu(dH,!0),lineStyle:Wu(fH,!0)},iNe={lineStyle:"stroke",itemStyle:"fill"};function Bj(t,e){var n=t.visualStyleMapper||Vj[e];return n||(console.warn("Unknown style type '"+e+"'."),Vj.itemStyle)}function zj(t,e){var n=t.visualDrawType||iNe[e];return n||(console.warn("Unknown style type '"+e+"'."),"fill")}var aNe={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=t.getModel(r),a=Bj(t,r),o=a(i),s=i.getShallow("decal");s&&(n.setVisual("decal",s),s.dirty=!0);var l=zj(t,r),u=o[l],c=xe(u)?u:null,f=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||f){var d=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[l]||(o[l]=d,n.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||xe(o.fill)?d:o.fill,o.stroke=o.stroke==="auto"||xe(o.stroke)?d:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",l),!e.isSeriesFiltered(t)&&c)return n.setVisual("colorFromPalette",!1),{dataEach:function(h,g){var v=t.getDataParams(g),m=ne({},o);m[l]=c(v),h.setItemVisual(g,"style",m)}}}},xv=new wt,oNe={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!(t.ignoreStyleOnData||e.isSeriesFiltered(t))){var n=t.getData(),r=t.visualStyleAccessPath||"itemStyle",i=Bj(t,r),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[r]){xv.option=l[r];var u=i(xv),c=o.ensureUniqueItemVisual(s,"style");ne(c,u),xv.option.decal&&(o.setItemVisual(s,"decal",xv.option.decal),xv.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},sNe={performRawSeries:!0,overallReset:function(t){var e=be();t.eachSeries(function(n){var r=n.getColorBy();if(!n.isColorBySeries()){var i=n.type+"-"+r,a=e.get(i);a||(a={},e.set(i,a)),Lj(n).scope=a}}),t.eachSeries(function(n){if(!(n.isColorBySeries()||t.isSeriesFiltered(n))){var r=n.getRawData(),i={},a=n.getData(),o=Lj(n).scope,s=n.visualStyleAccessPath||"itemStyle",l=zj(n,s);a.each(function(u){var c=a.getRawIndex(u);i[c]=u}),r.each(function(u){var c=i[u],f=a.getItemVisual(c,"colorFromPalette");if(f){var d=a.ensureUniqueItemVisual(c,"style"),h=r.getName(u)||u+"",g=r.count();d[l]=n.getColorFromPalette(h,o,g)}})}})}},x1=Math.PI;function lNe(t,e){e=e||{},Te(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 Me,r=new tt({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(r);var i=new nt({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new tt({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});n.add(a);var o;return e.showSpinner&&(o=new G_({shape:{startAngle:-x1/2,endAngle:-x1/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:x1*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:x1*3/2}).delay(300).start("circularInOut"),n.add(o)),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&&o.setShape({cx:u,cy:c}),a.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 Fj=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,a=!n&&r.progressiveEnabled&&(!i||i.progressiveRender)&&e.__idxInPipeline>r.blockIndex,o=a?r.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,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(),a=i.count(),o=r.progressiveEnabled&&n.incrementalPrepareRender&&a>=r.threshold,s=e.get("large")&&a>=e.get("largeThreshold"),l=e.get("progressiveChunkMode")==="mod"?a:null;e.pipelineContext=r.context={progressiveRender:o,modDataCount:l,large:s}},t.prototype.restorePipelines=function(e){var n=this,r=n._pipelineMap=be();e.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;r.set(o,{id:o,head:null,tail:null,threshold:i.getProgressiveThreshold(),progressiveEnabled:a&&!(i.preventIncremental&&i.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),n._pipe(i,i.dataTask)})},t.prototype.prepareStageTasks=function(){var e=this._stageTaskMap,n=this.api.getModel(),r=this.api;k(this._allHandlers,function(i){var a=e.get(i.uid)||e.set(i.uid,{}),o="";process.env.NODE_ENV!=="production"&&(o='"reset" and "overallReset" must not be both specified.'),Pe(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,n,r),i.overallReset&&this._createOverallStageTask(i,a,n,r)},this)},t.prototype.prepareView=function(e,n,r,i){var a=e.renderTask,o=a.context;o.model=n,o.ecModel=r,o.api=i,a.__block=!e.incrementalPrepareRender,this._pipe(n,a)},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 a=!1,o=this;k(e,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),f=c.seriesTaskMap,d=c.overallTask;if(d){var h,g=d.agentStubMap;g.each(function(m){s(i,m)&&(m.dirty(),h=!0)}),h&&d.dirty(),o.updatePayload(d,r);var v=o.getPerformArgs(d,i.block);g.each(function(m){m.perform(v)}),d.perform(v)&&(a=!0)}else f&&f.each(function(m,y){s(i,m)&&m.dirty();var b=o.getPerformArgs(m,i.block);b.skip=!l.performRawSeries&&n.isSeriesFiltered(m.context.model),o.updatePayload(m,r),m.perform(b)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||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 a=this,o=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,h=s.set(d,o&&o.get(d)||bv({plan:hNe,reset:pNe,count:vNe}));h.context={model:f,ecModel:r,api:i,useClearVisual:e.isVisual&&!e.isLayout,plan:e.plan,reset:e.reset,scheduler:a},a._pipe(f,h)}},t.prototype._createOverallStageTask=function(e,n,r,i){var a=this,o=n.overallTask=n.overallTask||bv({reset:uNe});o.context={ecModel:r,api:i,overallReset:e.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=be(),u=e.seriesType,c=e.getTargetSeries,f=!0,d=!1,h="";process.env.NODE_ENV!=="production"&&(h='"createOnAllSeries" is not supported for "overallReset", because it will block all streams.'),Pe(!e.createOnAllSeries,h),u?r.eachRawSeriesByType(u,g):c?c(r,i).each(g):(f=!1,k(r.getSeries(),g));function g(v){var m=v.uid,y=l.set(m,s&&s.get(m)||(d=!0,bv({reset:cNe,onDirty:dNe})));y.context={model:v,overallProgress:f},y.agent=o,y.__block=f,a._pipe(v,y)}d&&o.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 xe(e)&&(e={overallReset:e,seriesType:mNe(e)}),e.uid=Md("stageHandler"),n&&(e.visualType=n),e},t}();function uNe(t){t.overallReset(t.ecModel,t.api,t.payload)}function cNe(t){return t.overallProgress&&fNe}function fNe(){this.agent.dirty(),this.getDownstream().dirty()}function dNe(){this.agent&&this.agent.dirty()}function hNe(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function pNe(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=xt(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?ie(e,function(n,r){return Wj(r)}):gNe}var gNe=Wj(0);function Wj(t){return function(e,n){var r=n.data,i=n.resetDefines[t];if(i&&i.dataEach)for(var a=e.start;a<e.end;a++)i.dataEach(r,a);else i&&i.progress&&i.progress(e,r)}}function vNe(t){return t.data.count()}function mNe(t){w1=null;try{t(wv,Qj)}catch{}return w1}var wv={},Qj={},w1;Hj(wv,xA),Hj(Qj,WH),wv.eachSeriesByType=wv.eachRawSeriesByType=function(t){w1=t},wv.eachComponent=function(t){t.mainType==="series"&&t.subType&&(w1=t.subType)};function Hj(t,e){for(var n in e.prototype)t[n]=Jt}var jj=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"];const yNe={color:jj,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],jj]};var Pr="#B9B8CE",Gj="#100C2A",C1=function(){return{axisLine:{lineStyle:{color:Pr}},splitLine:{lineStyle:{color:"#484753"}},splitArea:{areaStyle:{color:["rgba(255,255,255,0.02)","rgba(255,255,255,0.05)"]}},minorSplitLine:{lineStyle:{color:"#20203B"}}}},Zj=["#4992ff","#7cffb2","#fddd60","#ff6e76","#58d9f9","#05c091","#ff8a45","#8d48e3","#dd79ff"],Uj={darkMode:!0,color:Zj,backgroundColor:Gj,axisPointer:{lineStyle:{color:"#817f91"},crossStyle:{color:"#817f91"},label:{color:"#fff"}},legend:{textStyle:{color:Pr}},textStyle:{color:Pr},title:{textStyle:{color:"#EEF1FA"},subtextStyle:{color:"#B9B8CE"}},toolbox:{iconStyle:{borderColor:Pr}},dataZoom:{borderColor:"#71708A",textStyle:{color:Pr},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:Pr}},timeline:{lineStyle:{color:Pr},label:{color:Pr},controlStyle:{color:Pr,borderColor:Pr}},calendar:{itemStyle:{color:Gj},dayLabel:{color:Pr},monthLabel:{color:Pr},yearLabel:{color:Pr}},timeAxis:C1(),logAxis:C1(),valueAxis:C1(),categoryAxis:C1(),line:{symbol:"circle"},graph:{color:Zj},gauge:{title:{color:Pr},axisLine:{lineStyle:{color:[[1,"rgba(207,212,219,0.2)"]]}},axisLabel:{color:Pr},detail:{color:"#EEF1FA"}},candlestick:{itemStyle:{color:"#f64e56",color0:"#54ea92",borderColor:"#f64e56",borderColor0:"#54ea92"}}};Uj.categoryAxis.splitLine.show=!1;var bNe=function(){function t(){}return t.prototype.normalizeQuery=function(e){var n={},r={},i={};if(pe(e)){var a=oo(e);n.mainType=a.main||null,n.subType=a.sub||null}else{var o=["Index","Name","Id"],s={name:1,dataIndex:1,dataType:1};k(e,function(l,u){for(var c=!1,f=0;f<o.length;f++){var d=o[f],h=u.lastIndexOf(d);if(h>0&&h===u.length-d.length){var g=u.slice(0,h);g!=="data"&&(n.mainType=g,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,a=r.packedEvent,o=r.model,s=r.view;if(!o||!s)return!0;var l=n.cptQuery,u=n.dataQuery;return c(l,o,"mainType")&&c(l,o,"subType")&&c(l,o,"index","componentIndex")&&c(l,o,"name")&&c(l,o,"id")&&c(u,a,"name")&&c(u,a,"dataIndex")&&c(u,a,"dataType")&&(!s.filterForExposedEvent||s.filterForExposedEvent(e,n.otherQuery,i,a));function c(f,d,h,g){return f[h]==null||d[g||h]===f[h]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),BA=["symbol","symbolSize","symbolRotate","symbolOffset"],Xj=BA.concat(["symbolKeepAspect"]),_Ne={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={},a=!1,o=0;o<BA.length;o++){var s=BA[o],l=t.get(s);xe(l)?(a=!0,i[s]=l):r[s]=l}if(r.symbol=r.symbol||t.defaultSymbol,n.setVisual(ne({legendIcon:t.legendIcon||r.symbol,symbolKeepAspect:t.get("symbolKeepAspect")},r)),e.isSeriesFiltered(t))return;var u=Ue(i);function c(f,d){for(var h=t.getRawValue(d),g=t.getDataParams(d),v=0;v<u.length;v++){var m=u[v];f.setItemVisual(d,m,i[m](h,g))}}return{dataEach:a?c:null}}},ONe={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.hasSymbolVisual||e.isSeriesFiltered(t))return;var n=t.getData();function r(i,a){for(var o=i.getItemModel(a),s=0;s<Xj.length;s++){var l=Xj[s],u=o.getShallow(l,!0);u!=null&&i.setItemVisual(a,l,u)}}return{dataEach:n.hasItemOption?r:null}}};function zA(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 Cv(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 Yj(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 qj(t,e){function n(r,i){var a=[];return r.eachComponent({mainType:"series",subType:t,query:i},function(o){a.push(o.seriesIndex)}),a}k([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(r){e(r[0],function(i,a,o){i=ne({},i),process.env.NODE_ENV!=="production"&&nn(i.type,r[1]),o.dispatchAction(ne(i,{type:r[1],seriesIndex:n(a,i)}))})})}function Wd(t,e,n,r,i){var a=t+e;n.isSilent(a)||(process.env.NODE_ENV!=="production"&&Hi("event "+a+" is deprecated."),r.eachComponent({mainType:"series",subType:"pie"},function(o){for(var s=o.seriesIndex,l=o.option.selectedMap,u=i.selected,c=0;c<u.length;c++)if(u[c].seriesIndex===s){var f=o.getData(),d=zu(f,i.fromActionPayload);n.trigger(a,{type:a,seriesId:o.id,name:re(d)?f.getName(d[0]):f.getName(d),selected:pe(l)?l:ne({},l)})}}))}function SNe(t,e,n){t.on("selectchanged",function(r){var i=n.getModel();r.isFromClick?(Wd("map","selectchanged",e,i,r),Wd("pie","selectchanged",e,i,r)):r.fromAction==="select"?(Wd("map","selected",e,i,r),Wd("pie","selected",e,i,r)):r.fromAction==="unselect"&&(Wd("map","unselected",e,i,r),Wd("pie","unselected",e,i,r))})}function hc(t,e,n){for(var r;t&&!(e(t)&&(r=t,n));)t=t.__hostTarget||t.parent;return r}var xNe=Math.round(Math.random()*9),wNe=typeof Object.defineProperty=="function",CNe=function(){function t(){this._id="__ec_inner_"+xNe++}return t.prototype.get=function(e){return this._guard(e)[this._id]},t.prototype.set=function(e,n){var r=this._guard(e);return wNe?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}(),TNe=Ge.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,a=e.height/2;t.moveTo(n,r-a),t.lineTo(n+i,r+a),t.lineTo(n-i,r+a),t.closePath()}}),PNe=Ge.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,a=e.height/2;t.moveTo(n,r-a),t.lineTo(n+i,r),t.lineTo(n,r+a),t.lineTo(n-i,r),t.closePath()}}),$Ne=Ge.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,a=Math.max(i,e.height),o=i/2,s=o*o/(a-o),l=r-a+o+s,u=Math.asin(s/o),c=Math.cos(u)*o,f=Math.sin(u),d=Math.cos(u),h=o*.6,g=o*.7;t.moveTo(n-c,l+s),t.arc(n,l,o,Math.PI-u,Math.PI*2+u),t.bezierCurveTo(n+c-f*h,l+s+d*h,n,r-g,n,r),t.bezierCurveTo(n,r-g,n-c+f*h,l+s+d*h,n-c,l+s),t.closePath()}}),ANe=Ge.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,a=e.y,o=r/3*2;t.moveTo(i,a),t.lineTo(i+o,a+n),t.lineTo(i,a+n/4*3),t.lineTo(i-o,a+n),t.lineTo(i,a),t.closePath()}}),ENe={line:Cn,rect:tt,roundRect:tt,square:tt,circle:hs,diamond:PNe,pin:$Ne,arrow:ANe,triangle:TNe},MNe={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 a=Math.min(n,r);i.x=t,i.y=e,i.width=a,i.height=a},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}},T1={};k(ENe,function(t,e){T1[e]=new t});var INe=Ge.extend({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(t,e,n){var r=x_(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=T1[r];i||(r="rect",i=T1[r]),MNe[r](e.x,e.y,e.width,e.height,i.shape),i.buildPath(t,i.shape,n)}}});function DNe(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 rn(t,e,n,r,i,a,o){var s=t.indexOf("empty")===0;s&&(t=t.substr(5,1).toLowerCase()+t.substr(6));var l;return t.indexOf("image://")===0?l=U2(t.slice(8),new ze(e,n,r,i),o?"center":"cover"):t.indexOf("path://")===0?l=sv(t.slice(7),{},new ze(e,n,r,i),o?"center":"cover"):l=new INe({shape:{symbolType:t,x:e,y:n,width:r,height:i}}),l.__isEmptyBrush=s,l.setColor=DNe,a&&l.setColor(a),l}function Qd(t){return re(t)||(t=[+t,+t]),[t[0]||0,t[1]||0]}function pc(t,e){if(t!=null)return re(t)||(t=[t,t]),[he(t[0],e[0])||0,he(Re(t[1],t[0]),e[1])||0]}function gc(t){return isFinite(t)}function RNe(t,e,n){var r=e.x==null?0:e.x,i=e.x2==null?1:e.x2,a=e.y==null?0:e.y,o=e.y2==null?0:e.y2;e.global||(r=r*n.width+n.x,i=i*n.width+n.x,a=a*n.height+n.y,o=o*n.height+n.y),r=gc(r)?r:0,i=gc(i)?i:1,a=gc(a)?a:0,o=gc(o)?o:0;var s=t.createLinearGradient(r,a,i,o);return s}function kNe(t,e,n){var r=n.width,i=n.height,a=Math.min(r,i),o=e.x==null?.5:e.x,s=e.y==null?.5:e.y,l=e.r==null?.5:e.r;e.global||(o=o*r+n.x,s=s*i+n.y,l=l*a),o=gc(o)?o:.5,s=gc(s)?s:.5,l=l>=0&&gc(l)?l:.5;var u=t.createRadialGradient(o,s,0,o,s,l);return u}function FA(t,e,n){for(var r=e.type==="radial"?kNe(t,e,n):RNe(t,e,n),i=e.colorStops,a=0;a<i.length;a++)r.addColorStop(i[a].offset,i[a].color);return r}function NNe(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 P1(t){return parseInt(t,10)}function Hd(t,e,n){var r=["width","height"][e],i=["clientWidth","clientHeight"][e],a=["paddingLeft","paddingTop"][e],o=["paddingRight","paddingBottom"][e];if(n[r]!=null&&n[r]!=="auto")return parseFloat(n[r]);var s=document.defaultView.getComputedStyle(t);return(t[i]||P1(s[r])||P1(t.style[r]))-(P1(s[a])||0)-(P1(s[o])||0)|0}function LNe(t,e){return!t||t==="solid"||!(e>0)?null:t==="dashed"?[4*e,2*e]:t==="dotted"?[e]:it(t)?[t]:re(t)?t:null}function WA(t){var e=t.style,n=e.lineDash&&e.lineWidth>0&&LNe(e.lineDash,e.lineWidth),r=e.lineDashOffset;if(n){var i=e.strokeNoScale&&t.getLineScale?t.getLineScale():1;i&&i!==1&&(n=ie(n,function(a){return a/i}),r/=i)}return[n,r]}var VNe=new co(!0);function $1(t){var e=t.stroke;return!(e==null||e==="none"||!(t.lineWidth>0))}function Kj(t){return typeof t=="string"&&t!=="none"}function A1(t){var e=t.fill;return e!=null&&e!=="none"}function Jj(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 e9(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 QA(t,e,n){var r=p2(e.image,e.__image,n);if(E_(r)){var i=t.createPattern(r,e.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(e.x||0,e.y||0),a.rotateSelf(0,0,(e.rotation||0)*Og),a.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(a)}return i}}function BNe(t,e,n,r){var i,a=$1(n),o=A1(n),s=n.strokePercent,l=s<1,u=!e.path;(!e.silent||l)&&u&&e.createPathProxy();var c=e.path||VNe,f=e.__dirty;if(!r){var d=n.fill,h=n.stroke,g=o&&!!d.colorStops,v=a&&!!h.colorStops,m=o&&!!d.image,y=a&&!!h.image,b=void 0,_=void 0,O=void 0,S=void 0,x=void 0;(g||v)&&(x=e.getBoundingRect()),g&&(b=f?FA(t,d,x):e.__canvasFillGradient,e.__canvasFillGradient=b),v&&(_=f?FA(t,h,x):e.__canvasStrokeGradient,e.__canvasStrokeGradient=_),m&&(O=f||!e.__canvasFillPattern?QA(t,d,e):e.__canvasFillPattern,e.__canvasFillPattern=O),y&&(S=f||!e.__canvasStrokePattern?QA(t,h,e):e.__canvasStrokePattern,e.__canvasStrokePattern=O),g?t.fillStyle=b:m&&(O?t.fillStyle=O:o=!1),v?t.strokeStyle=_:y&&(S?t.strokeStyle=S:a=!1)}var w=e.getGlobalScale();c.setScale(w[0],w[1],e.segmentIgnoreThreshold);var T,P;t.setLineDash&&n.lineDash&&(i=WA(e),T=i[0],P=i[1]);var C=!0;(u||f&sd)&&(c.setDPR(t.dpr),l?c.setContext(null):(c.setContext(t),C=!1),c.reset(),e.buildPath(c,e.shape,r),c.toStatic(),e.pathUpdated()),C&&c.rebuildPath(t,l?s:1),T&&(t.setLineDash(T),t.lineDashOffset=P),r||(n.strokeFirst?(a&&e9(t,n),o&&Jj(t,n)):(o&&Jj(t,n),a&&e9(t,n))),T&&t.setLineDash([])}function zNe(t,e,n){var r=e.__image=p2(n.image,e.__image,e,e.onload);if(!(!r||!E_(r))){var i=n.x||0,a=n.y||0,o=e.getWidth(),s=e.getHeight(),l=r.width/r.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=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,a,o,s)}else if(n.sx&&n.sy){var u=n.sx,c=n.sy,f=o-u,d=s-c;t.drawImage(r,u,c,f,d,i,a,o,s)}else t.drawImage(r,i,a,o,s)}}function FNe(t,e,n){var r,i=n.text;if(i!=null&&(i+=""),i){t.font=n.font||Us,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var a=void 0,o=void 0;t.setLineDash&&n.lineDash&&(r=WA(e),a=r[0],o=r[1]),a&&(t.setLineDash(a),t.lineDashOffset=o),n.strokeFirst?($1(n)&&t.strokeText(i,n.x,n.y),A1(n)&&t.fillText(i,n.x,n.y)):(A1(n)&&t.fillText(i,n.x,n.y),$1(n)&&t.strokeText(i,n.x,n.y)),a&&t.setLineDash([])}}var t9=["shadowBlur","shadowOffsetX","shadowOffsetY"],n9=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function r9(t,e,n,r,i){var a=!1;if(!r&&(n=n||{},e===n))return!1;if(r||e.opacity!==n.opacity){Hr(t,i),a=!0;var o=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(o)?Qu.opacity:o}(r||e.blend!==n.blend)&&(a||(Hr(t,i),a=!0),t.globalCompositeOperation=e.blend||Qu.blend);for(var s=0;s<t9.length;s++){var l=t9[s];(r||e[l]!==n[l])&&(a||(Hr(t,i),a=!0),t[l]=t.dpr*(e[l]||0))}return(r||e.shadowColor!==n.shadowColor)&&(a||(Hr(t,i),a=!0),t.shadowColor=e.shadowColor||Qu.shadowColor),a}function i9(t,e,n,r,i){var a=Tv(e,i.inHover),o=r?null:n&&Tv(n,i.inHover)||{};if(a===o)return!1;var s=r9(t,a,o,r,i);if((r||a.fill!==o.fill)&&(s||(Hr(t,i),s=!0),Kj(a.fill)&&(t.fillStyle=a.fill)),(r||a.stroke!==o.stroke)&&(s||(Hr(t,i),s=!0),Kj(a.stroke)&&(t.strokeStyle=a.stroke)),(r||a.opacity!==o.opacity)&&(s||(Hr(t,i),s=!0),t.globalAlpha=a.opacity==null?1:a.opacity),e.hasStroke()){var l=a.lineWidth,u=l/(a.strokeNoScale&&e.getLineScale?e.getLineScale():1);t.lineWidth!==u&&(s||(Hr(t,i),s=!0),t.lineWidth=u)}for(var c=0;c<n9.length;c++){var f=n9[c],d=f[0];(r||a[d]!==o[d])&&(s||(Hr(t,i),s=!0),t[d]=a[d]||f[1])}return s}function WNe(t,e,n,r,i){return r9(t,Tv(e,i.inHover),n&&Tv(n,i.inHover),r,i)}function a9(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 QNe(t,e,n){for(var r=!1,i=0;i<t.length;i++){var a=t[i];r=r||a.isZeroArea(),a9(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}n.allClipped=r}function HNe(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 o9=1,s9=2,l9=3,u9=4;function jNe(t){var e=A1(t),n=$1(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 Hr(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function Tv(t,e){return e&&t.__hoverStyle||t.style}function HA(t,e){vc(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function vc(t,e,n,r){var i=e.transform;if(!e.shouldBePainted(n.viewWidth,n.viewHeight,!1,!1)){e.__dirty&=~ci,e.__isRendered=!1;return}var a=e.__clipPaths,o=n.prevElClipPaths,s=!1,l=!1;if((!o||NNe(a,o))&&(o&&o.length&&(Hr(t,n),t.restore(),l=s=!0,n.prevElClipPaths=null,n.allClipped=!1,n.prevEl=null),a&&a.length&&(Hr(t,n),t.save(),QNe(a,t,n),s=!0),n.prevElClipPaths=a),n.allClipped){e.__isRendered=!1;return}e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var u=n.prevEl;u||(l=s=!0);var c=e instanceof Ge&&e.autoBatch&&jNe(e.style);s||HNe(i,u.transform)?(Hr(t,n),a9(t,e)):c||Hr(t,n);var f=Tv(e,n.inHover);e instanceof Ge?(n.lastDrawType!==o9&&(l=!0,n.lastDrawType=o9),i9(t,e,u,l,n),(!c||!n.batchFill&&!n.batchStroke)&&t.beginPath(),BNe(t,e,f,c),c&&(n.batchFill=f.fill||"",n.batchStroke=f.stroke||"")):e instanceof yd?(n.lastDrawType!==l9&&(l=!0,n.lastDrawType=l9),i9(t,e,u,l,n),FNe(t,e,f)):e instanceof Ln?(n.lastDrawType!==s9&&(l=!0,n.lastDrawType=s9),WNe(t,e,u,l,n),zNe(t,e,f)):e.getTemporalDisplayables&&(n.lastDrawType!==u9&&(l=!0,n.lastDrawType=u9),GNe(t,e,n)),c&&r&&Hr(t,n),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),n.prevEl=e,e.__dirty=0,e.__isRendered=!0}function GNe(t,e,n){var r=e.getDisplayables(),i=e.getTemporalDisplayables();t.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover},o,s;for(o=e.getCursor(),s=r.length;o<s;o++){var l=r[o];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),vc(t,l,a,o===s-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}for(var u=0,c=i.length;u<c;u++){var l=i[u];l.beforeBrush&&l.beforeBrush(),l.innerBeforeBrush(),vc(t,l,a,u===c-1),l.innerAfterBrush(),l.afterBrush&&l.afterBrush(),a.prevEl=l}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}var jA=new CNe,c9=new Dg(100),f9=["symbol","symbolSize","symbolKeepAspect","color","backgroundColor","dashArrayX","dashArrayY","maxTileWidth","maxTileHeight"];function jd(t,e){if(t==="none")return null;var n=e.getDevicePixelRatio(),r=e.getZr(),i=r.painter.type==="svg";t.dirty&&jA.delete(t);var a=jA.get(t);if(a)return a;var o=Te(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});o.backgroundColor==="none"&&(o.backgroundColor=null);var s={repeat:"repeat"};return l(s),s.rotation=o.rotation,s.scaleX=s.scaleY=i?1:1/n,jA.set(t,s),t.dirty=!1,s;function l(u){for(var c=[n],f=!0,d=0;d<f9.length;++d){var h=o[f9[d]];if(h!=null&&!re(h)&&!pe(h)&&!it(h)&&typeof h!="boolean"){f=!1;break}c.push(h)}var g;if(f){g=c.join(",")+(i?"-svg":"");var v=c9.get(g);v&&(i?u.svgElement=v:u.image=v)}var m=h9(o.dashArrayX),y=ZNe(o.dashArrayY),b=d9(o.symbol),_=UNe(m),O=p9(y),S=!i&&Oa.createCanvas(),x=i&&{tag:"g",attrs:{},key:"dcl",children:[]},w=P(),T;S&&(S.width=w.width*n,S.height=w.height*n,T=S.getContext("2d")),C(),f&&c9.put(g,S||x),u.image=S,u.svgElement=x,u.svgWidth=w.width,u.svgHeight=w.height;function P(){for(var $=1,A=0,E=_.length;A<E;++A)$=b7($,_[A]);for(var D=1,A=0,E=b.length;A<E;++A)D=b7(D,b[A].length);$*=D;var M=O*_.length*b.length;if(process.env.NODE_ENV!=="production"){var R=function(N){console.warn("Calculated decal size is greater than "+N+" due to decal option settings so "+N+" is used for the decal size. Please consider changing the decal option to make a smaller decal or set "+N+" to be larger to avoid incontinuity.")};$>o.maxTileWidth&&R("maxTileWidth"),M>o.maxTileHeight&&R("maxTileHeight")}return{width:Math.max(1,Math.min($,o.maxTileWidth)),height:Math.max(1,Math.min(M,o.maxTileHeight))}}function C(){T&&(T.clearRect(0,0,S.width,S.height),o.backgroundColor&&(T.fillStyle=o.backgroundColor,T.fillRect(0,0,S.width,S.height)));for(var $=0,A=0;A<y.length;++A)$+=y[A];if($<=0)return;for(var E=-O,D=0,M=0,R=0;E<w.height;){if(D%2===0){for(var N=M/2%b.length,V=0,L=0,z=0;V<w.width*2;){for(var B=0,A=0;A<m[R].length;++A)B+=m[R][A];if(B<=0)break;if(L%2===0){var F=(1-o.symbolSize)*.5,j=V+m[R][L]*F,K=E+y[D]*F,q=m[R][L]*o.symbolSize,te=y[D]*o.symbolSize,X=z/2%b[N].length;ee(j,K,q,te,b[N][X])}V+=m[R][L],++z,++L,L===m[R].length&&(L=0)}++R,R===m.length&&(R=0)}E+=y[D],++M,++D,D===y.length&&(D=0)}function ee(G,W,Q,J,ae){var oe=i?1:n,Se=rn(ae,G*oe,W*oe,Q*oe,J*oe,o.color,o.symbolKeepAspect);if(i){var _e=r.painter.renderOneToVNode(Se);_e&&x.children.push(_e)}else HA(T,Se)}}}}function d9(t){if(!t||t.length===0)return[["rect"]];if(pe(t))return[[t]];for(var e=!0,n=0;n<t.length;++n)if(!pe(t[n])){e=!1;break}if(e)return d9([t]);for(var r=[],n=0;n<t.length;++n)pe(t[n])?r.push([t[n]]):r.push(t[n]);return r}function h9(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 h9([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=ie(t[r],function(s){return Math.ceil(s)});e.length%2===1?i.push(e.concat(e)):i.push(e)}return i}function ZNe(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=ie(t,function(r){return Math.ceil(r)});return t.length%2?n.concat(n):n}function UNe(t){return ie(t,function(e){return p9(e)})}function p9(t){for(var e=0,n=0;n<t.length;++n)e+=t[n];return t.length%2===1?e*2:e}function XNe(t,e){t.eachRawSeries(function(n){if(!t.isSeriesFiltered(n)){var r=n.getData();r.hasItemVisual()&&r.each(function(o){var s=r.getItemVisual(o,"decal");if(s){var l=r.ensureUniqueItemVisual(o,"style");l.decal=jd(s,e)}});var i=r.getVisual("decal");if(i){var a=r.getVisual("style");a.decal=jd(i,e)}}})}var Ma=new zi,E1={};function YNe(t,e){process.env.NODE_ENV!=="production"&&E1[t]&&Gn("Already has an implementation of "+t+"."),E1[t]=e}function g9(t){return process.env.NODE_ENV!=="production"&&(E1[t]||Gn("Implementation of "+t+" doesn't exists.")),E1[t]}var qNe="5.5.1",KNe={zrender:"5.6.0"},JNe=1,eLe=800,tLe=900,nLe=1e3,rLe=2e3,iLe=5e3,v9=1e3,aLe=1100,GA=2e3,m9=3e3,oLe=4e3,M1=4500,sLe=4600,lLe=5e3,uLe=6e3,y9=7e3,b9={PROCESSOR:{FILTER:nLe,SERIES_FILTER:eLe,STATISTIC:iLe},VISUAL:{LAYOUT:v9,PROGRESSIVE_LAYOUT:aLe,GLOBAL:GA,CHART:m9,POST_CHART_LAYOUT:sLe,COMPONENT:oLe,BRUSH:lLe,CHART_ITEM:M1,ARIA:uLe,DECAL:y9}},lr="__flagInMainProcess",jr="__pendingUpdate",ZA="__needsUpdateStatus",_9=/^[a-zA-Z0-9_]+$/,UA="__connectUpdateStatus",O9=0,cLe=1,fLe=2;function S9(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this.isDisposed()){vi(this.id);return}return w9(this,t,e)}}function x9(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return w9(this,t,e)}}function w9(t,e,n){return n[0]=n[0]&&n[0].toLowerCase(),zi.prototype[e].apply(t,n)}var C9=function(t){U(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(zi),T9=C9.prototype;T9.on=x9("on"),T9.off=x9("off");var Gd,XA,I1,bl,YA,qA,KA,Pv,$v,P9,$9,JA,A9,D1,E9,M9,Ji,I9,R1=function(t){U(e,t);function e(n,r,i){var a=t.call(this,new bNe)||this;a._chartsViews=[],a._chartsMap={},a._componentsViews=[],a._componentsMap={},a._pendingActions=[],i=i||{},pe(r)&&(r=D9[r]),a._dom=n;var o="canvas",s="auto",l=!1;if(process.env.NODE_ENV!=="production"){var u=Je.hasGlobalWindow?window:global;u&&(o=Re(u.__ECHARTS__DEFAULT__RENDERER__,o),s=Re(u.__ECHARTS__DEFAULT__COARSE_POINTER,s),l=Re(u.__ECHARTS__DEFAULT__USE_DIRTY_RECT__,l))}i.ssr&&d7(function(h){var g=De(h),v=g.dataIndex;if(v!=null){var m=be();return m.set("series_index",g.seriesIndex),m.set("data_index",v),g.ssrType&&m.set("ssr_type",g.ssrType),m}});var c=a._zr=n2(n,{renderer:i.renderer||o,devicePixelRatio:i.devicePixelRatio,width:i.width,height:i.height,ssr:i.ssr,useDirtyRect:Re(i.useDirtyRect,l),useCoarsePointer:Re(i.useCoarsePointer,s),pointerSize:i.pointerSize});a._ssr=i.ssr,a._throttledZrFlush=S1(ve(c.flush,c),17),r=$e(r),r&&XH(r,!0),a._theme=r,a._locale=PRe(i.locale||hH),a._coordSysMgr=new uc;var f=a._api=E9(a);function d(h,g){return h.__prio-g.__prio}return r_(N1,d),r_(tE,d),a._scheduler=new Fj(a,f,tE,N1),a._messageCenter=new C9,a._initEvents(),a.resize=ve(a.resize,a),c.animation.on("frame",a._onframe,a),P9(c,a),$9(c,a),yg(a),a}return e.prototype._onframe=function(){if(!this._disposed){I9(this);var n=this._scheduler;if(this[jr]){var r=this[jr].silent;this[lr]=!0;try{Gd(this),bl.update.call(this,null,this[jr].updateParams)}catch(l){throw this[lr]=!1,this[jr]=null,l}this._zr.flush(),this[lr]=!1,this[jr]=null,Pv.call(this,r),$v.call(this,r)}else if(n.unfinished){var i=JNe,a=this._model,o=this._api;n.unfinished=!1;do{var s=+new Date;n.performSeriesTasks(a),n.performDataProcessorTasks(a),qA(this,a),n.performVisualTasks(a),D1(this,this._model,o,"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[lr]){process.env.NODE_ENV!=="production"&&Gn("`setOption` should not be called during main process.");return}if(this._disposed){vi(this.id);return}var a,o,s;if(we(r)&&(i=r.lazyUpdate,a=r.silent,o=r.replaceMerge,s=r.transition,r=r.notMerge),this[lr]=!0,!this._model||r){var l=new nke(this._api),u=this._theme,c=this._model=new xA;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(n,{replaceMerge:o},nE);var f={seriesTransition:s,optionChanged:!0};if(i)this[jr]={silent:a,updateParams:f},this[lr]=!1,this.getZr().wakeUp();else{try{Gd(this),bl.update.call(this,null,f)}catch(d){throw this[jr]=null,this[lr]=!1,d}this._ssr||this._zr.flush(),this[jr]=null,this[lr]=!1,Pv.call(this,a),$v.call(this,a)}},e.prototype.setTheme=function(){Hi("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||Je.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(n){return process.env.NODE_ENV!=="production"&&nn("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(Je.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return k(r,function(i){i.stopAnimation(null,!0)}),n.painter.toDataURL()}},e.prototype.getDataURL=function(n){if(this._disposed){vi(this.id);return}n=n||{};var r=n.excludeComponents,i=this._model,a=[],o=this;k(r,function(l){i.eachComponent({mainType:l},function(u){var c=o._componentsMap[u.__viewId];c.group.ignore||(a.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 k(a,function(l){l.group.ignore=!1}),s},e.prototype.getConnectedDataURL=function(n){if(this._disposed){vi(this.id);return}var r=n.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(L1[i]){var l=s,u=s,c=-s,f=-s,d=[],h=n&&n.pixelRatio||this.getDevicePixelRatio();k(mc,function(_,O){if(_.group===i){var S=r?_.getZr().painter.getSvgDom().innerHTML:_.renderToCanvas($e(n)),x=_.getDom().getBoundingClientRect();l=a(x.left,l),u=a(x.top,u),c=o(x.right,c),f=o(x.bottom,f),d.push({dom:S,left:x.left,top:x.top})}}),l*=h,u*=h,c*=h,f*=h;var g=c-l,v=f-u,m=Oa.createCanvas(),y=n2(m,{renderer:r?"svg":"canvas"});if(y.resize({width:g,height:v}),r){var b="";return k(d,function(_){var O=_.left-l,S=_.top-u;b+='<g transform="translate('+O+","+S+')">'+_.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 tt({shape:{x:0,y:0,width:g,height:v},style:{fill:n.connectedBackgroundColor}})),k(d,function(_){var O=new Ln({style:{x:_.left*h-l,y:_.top*h-u,image:_.dom}});y.add(O)}),y.refreshImmediately(),m.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},e.prototype.convertToPixel=function(n,r){return YA(this,"convertToPixel",n,r)},e.prototype.convertFromPixel=function(n,r){return YA(this,"convertFromPixel",n,r)},e.prototype.containPixel=function(n,r){if(this._disposed){vi(this.id);return}var i=this._model,a,o=Zg(i,n);return k(o,function(s,l){l.indexOf("Models")>=0&&k(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)a=a||!!c.containPoint(r);else if(l==="seriesModels"){var f=this._chartsMap[u.__viewId];f&&f.containPoint?a=a||f.containPoint(r,u):process.env.NODE_ENV!=="production"&&Wt(l+": "+(f?"The found component do not support containPoint.":"No view mapping to the found component."))}else process.env.NODE_ENV!=="production"&&Wt(l+": containPoint is not supported")},this)},this),!!a},e.prototype.getVisual=function(n,r){var i=this._model,a=Zg(i,n,{defaultMainType:"series"}),o=a.seriesModel;process.env.NODE_ENV!=="production"&&(o||Wt("There is no specified series model"));var s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?zA(s,l,r):Cv(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;k(dLe,function(r){var i=function(a){var o=n.getModel(),s=a.target,l,u=r==="globalout";if(u?l={}:s&&hc(s,function(g){var v=De(g);if(v&&v.dataIndex!=null){var m=v.dataModel||o.getSeriesByIndex(v.seriesIndex);return l=m&&m.getDataParams(v.dataIndex,v.dataType,s)||{},!0}else if(v.eventData)return l=ne({},v.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&&o.getComponent(c,f),h=d&&n[d.mainType==="series"?"_chartsMap":"_componentsMap"][d.__viewId];process.env.NODE_ENV!=="production"&&!u&&!(d&&h)&&Wt("model or view can not be found by params"),l.event=a,l.type=r,n._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:d,view:h},n.trigger(r,l)}};i.zrEventfulCallAtLast=!0,n._zr.on(r,i,n)}),k(Av,function(r,i){n._messageCenter.on(i,function(a){this.trigger(i,a)},n)}),k(["selectchanged"],function(r){n._messageCenter.on(r,function(i){this.trigger(r,i)},n)}),SNe(this._messageCenter,this,this._api)},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){if(this._disposed){vi(this.id);return}this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed){vi(this.id);return}this._disposed=!0;var n=this.getDom();n&&A7(this.getDom(),iE,"");var r=this,i=r._api,a=r._model;k(r._componentsViews,function(o){o.dispose(a,i)}),k(r._chartsViews,function(o){o.dispose(a,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 mc[r.id]},e.prototype.resize=function(n){if(this[lr]){process.env.NODE_ENV!=="production"&&Gn("`resize` should not be called during main process.");return}if(this._disposed){vi(this.id);return}this._zr.resize(n);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var i=r.resetOption("media"),a=n&&n.silent;this[jr]&&(a==null&&(a=this[jr].silent),i=!0,this[jr]=null),this[lr]=!0;try{i&&Gd(this),bl.update.call(this,{type:"resize",animation:ne({duration:0},n&&n.animation)})}catch(o){throw this[lr]=!1,o}this[lr]=!1,Pv.call(this,a),$v.call(this,a)}},e.prototype.showLoading=function(n,r){if(this._disposed){vi(this.id);return}if(we(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!rE[n]){process.env.NODE_ENV!=="production"&&Wt("Loading effects "+n+" not exists.");return}var i=rE[n](this._api,r),a=this._zr;this._loadingFX=i,a.add(i)},e.prototype.hideLoading=function(){if(this._disposed){vi(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},e.prototype.makeActionFromEvent=function(n){var r=ne({},n);return r.type=Av[n.type],r},e.prototype.dispatchAction=function(n,r){if(this._disposed){vi(this.id);return}if(we(r)||(r={silent:!!r}),!!k1[n.type]&&this._model){if(this[lr]){this._pendingActions.push(n);return}var i=r.silent;KA.call(this,n,i);var a=r.flush;a?this._zr.flush():a!==!1&&Je.browser.weChat&&this._throttledZrFlush(),Pv.call(this,i),$v.call(this,i)}},e.prototype.updateLabelLayout=function(){Ma.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(n){if(this._disposed){vi(this.id);return}var r=n.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(r);process.env.NODE_ENV!=="production"&&Pe(n.data&&a),a.appendData(n),this._scheduler.unfinished=!0,this.getZr().wakeUp()},e.internalField=function(){Gd=function(f){var d=f._scheduler;d.restorePipelines(f._model),d.prepareStageTasks(),XA(f,!0),XA(f,!1),d.plan()},XA=function(f,d){for(var h=f._model,g=f._scheduler,v=d?f._componentsViews:f._chartsViews,m=d?f._componentsMap:f._chartsMap,y=f._zr,b=f._api,_=0;_<v.length;_++)v[_].__alive=!1;d?h.eachComponent(function(x,w){x!=="series"&&O(w)}):h.eachSeries(O);function O(x){var w=x.__requireNewView;x.__requireNewView=!1;var T="_ec_"+x.id+"_"+x.type,P=!w&&m[T];if(!P){var C=oo(x.type),$=d?At.getClass(C.main,C.sub):_t.getClass(C.sub);process.env.NODE_ENV!=="production"&&Pe($,C.sub+" does not exist."),P=new $,P.init(h,b),m[T]=P,v.push(P),y.add(P.group)}x.__viewId=P.__id=T,P.__alive=!0,P.__model=x,P.group.__ecComponentInfo={mainType:x.mainType,index:x.componentIndex},!d&&g.prepareView(P,x,h,b)}for(var _=0;_<v.length;){var S=v[_];S.__alive?_++:(!d&&S.renderTask.dispose(),y.remove(S.group),S.dispose(h,b),v.splice(_,1),m[S.__id]===S&&delete m[S.__id],S.__id=S.group.__ecComponentInfo=null)}},I1=function(f,d,h,g,v){var m=f._model;if(m.setUpdatePayload(h),!g){k([].concat(f._componentsViews).concat(f._chartsViews),S);return}var y={};y[g+"Id"]=h[g+"Id"],y[g+"Index"]=h[g+"Index"],y[g+"Name"]=h[g+"Name"];var b={mainType:g,query:y};v&&(b.subType=v);var _=h.excludeSeriesId,O;_!=null&&(O=be(),k(xt(_),function(x){var w=gn(x,null);w!=null&&O.set(w,!0)})),m&&m.eachComponent(b,function(x){var w=O&&O.get(x.id)!=null;if(!w)if(wQ(h))if(x instanceof Ct)h.type===qu&&!h.notBlur&&!x.get(["emphasis","disabled"])&&CDe(x,h,f._api);else{var T=V2(x.mainType,x.componentIndex,h.name,f._api),P=T.focusSelf,C=T.dispatchers;h.type===qu&&P&&!h.notBlur&&L2(x.mainType,x.componentIndex,f._api),C&&k(C,function($){h.type===qu?fs($):ds($)})}else z2(h)&&x instanceof Ct&&($De(x,h,f._api),SQ(x),Ji(f))},f),m&&m.eachComponent(b,function(x){var w=O&&O.get(x.id)!=null;w||S(f[g==="series"?"_chartsMap":"_componentsMap"][x.__viewId])},f);function S(x){x&&x.__alive&&x[d]&&x[d](x.__model,m,f._api,h)}},bl={prepareAndUpdate:function(f){Gd(this),bl.update.call(this,f,{optionChanged:f.newOption!=null})},update:function(f,d){var h=this._model,g=this._api,v=this._zr,m=this._coordSysMgr,y=this._scheduler;if(h){h.setUpdatePayload(f),y.restoreData(h,f),y.performSeriesTasks(h),m.create(h,g),y.performDataProcessorTasks(h,f),qA(this,h),m.update(h,g),n(h),y.performVisualTasks(h,f),JA(this,h,g,f,d);var b=h.get("backgroundColor")||"transparent",_=h.get("darkMode");v.setBackgroundColor(b),_!=null&&_!=="auto"&&v.setDarkMode(_),Ma.trigger("afterupdate",h,g)}},updateTransform:function(f){var d=this,h=this._model,g=this._api;if(h){h.setUpdatePayload(f);var v=[];h.eachComponent(function(y,b){if(y!=="series"){var _=d.getViewOfComponentModel(b);if(_&&_.__alive)if(_.updateTransform){var O=_.updateTransform(b,h,g,f);O&&O.update&&v.push(_)}else v.push(_)}});var m=be();h.eachSeries(function(y){var b=d._chartsMap[y.__viewId];if(b.updateTransform){var _=b.updateTransform(y,h,g,f);_&&_.update&&m.set(y.uid,1)}else m.set(y.uid,1)}),n(h),this._scheduler.performVisualTasks(h,f,{setDirty:!0,dirtyMap:m}),D1(this,h,g,f,{},m),Ma.trigger("afterupdate",h,g)}},updateView:function(f){var d=this._model;d&&(d.setUpdatePayload(f),_t.markUpdateMethod(f,"updateView"),n(d),this._scheduler.performVisualTasks(d,f,{setDirty:!0}),JA(this,d,this._api,f,{}),Ma.trigger("afterupdate",d,this._api))},updateVisual:function(f){var d=this,h=this._model;h&&(h.setUpdatePayload(f),h.eachSeries(function(g){g.getData().clearAllVisual()}),_t.markUpdateMethod(f,"updateVisual"),n(h),this._scheduler.performVisualTasks(h,f,{visualType:"visual",setDirty:!0}),h.eachComponent(function(g,v){if(g!=="series"){var m=d.getViewOfComponentModel(v);m&&m.__alive&&m.updateVisual(v,h,d._api,f)}}),h.eachSeries(function(g){var v=d._chartsMap[g.__viewId];v.updateVisual(g,h,d._api,f)}),Ma.trigger("afterupdate",h,this._api))},updateLayout:function(f){bl.update.call(this,f)}},YA=function(f,d,h,g){if(f._disposed){vi(f.id);return}for(var v=f._model,m=f._coordSysMgr.getCoordinateSystems(),y,b=Zg(v,h),_=0;_<m.length;_++){var O=m[_];if(O[d]&&(y=O[d](v,b,g))!=null)return y}process.env.NODE_ENV!=="production"&&Wt("No coordinate system that supports "+d+" found by the given finder.")},qA=function(f,d){var h=f._chartsMap,g=f._scheduler;d.eachSeries(function(v){g.updateStreamModes(v,h[v.__viewId])})},KA=function(f,d){var h=this,g=this.getModel(),v=f.type,m=f.escapeConnect,y=k1[v],b=y.actionInfo,_=(b.update||"update").split(":"),O=_.pop(),S=_[0]!=null&&oo(_[0]);this[lr]=!0;var x=[f],w=!1;f.batch&&(w=!0,x=ie(f.batch,function(D){return D=Te(ne({},D),f),D.batch=null,D}));var T=[],P,C=z2(f),$=wQ(f);if($&&OQ(this._api),k(x,function(D){if(P=y.action(D,h._model,h._api),P=P||ne({},D),P.type=b.event||P.type,T.push(P),$){var M=c2(f),R=M.queryOptionMap,N=M.mainTypeSpecified,V=N?R.keys()[0]:"series";I1(h,O,D,V),Ji(h)}else C?(I1(h,O,D,"series"),Ji(h)):S&&I1(h,O,D,S.main,S.sub)}),O!=="none"&&!$&&!C&&!S)try{this[jr]?(Gd(this),bl.update.call(this,f),this[jr]=null):bl[O].call(this,f)}catch(D){throw this[lr]=!1,D}if(w?P={type:b.event||v,escapeConnect:m,batch:T}:P=T[0],this[lr]=!1,!d){var A=this._messageCenter;if(A.trigger(P.type,P),C){var E={type:"selectchanged",escapeConnect:m,selected:ADe(g),isFromClick:f.isFromClick||!1,fromAction:f.type,fromActionPayload:f};A.trigger(E.type,E)}}},Pv=function(f){for(var d=this._pendingActions;d.length;){var h=d.shift();KA.call(this,h,f)}},$v=function(f){!f&&this.trigger("updated")},P9=function(f,d){f.on("rendered",function(h){d.trigger("rendered",h),f.animation.isFinished()&&!d[jr]&&!d._scheduler.unfinished&&!d._pendingActions.length&&d.trigger("finished")})},$9=function(f,d){f.on("mouseover",function(h){var g=h.target,v=hc(g,fl);v&&(TDe(v,h,d._api),Ji(d))}).on("mouseout",function(h){var g=h.target,v=hc(g,fl);v&&(PDe(v,h,d._api),Ji(d))}).on("click",function(h){var g=h.target,v=hc(g,function(b){return De(b).dataIndex!=null},!0);if(v){var m=v.selected?"unselect":"select",y=De(v);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=[],h=[],g=!1;if(f.eachComponent(function(b,_){var O=_.get("zlevel")||0,S=_.get("z")||0,x=_.getZLevelKey();g=g||!!x,(b==="series"?h:d).push({zlevel:O,z:S,idx:_.componentIndex,type:b,key:x})}),g){var v=d.concat(h),m,y;r_(v,function(b,_){return b.zlevel===_.zlevel?b.z-_.z:b.zlevel-_.zlevel}),k(v,function(b){var _=f.getComponent(b.type,b.idx),O=b.zlevel,S=b.key;m!=null&&(O=Math.max(m,O)),S?(O===m&&S!==y&&O++,y=S):y&&(O===m&&O++,y=""),m=O,_.setZLevel(O)})}}JA=function(f,d,h,g,v){r(d),A9(f,d,h,g,v),k(f._chartsViews,function(m){m.__alive=!1}),D1(f,d,h,g,v),k(f._chartsViews,function(m){m.__alive||m.remove(d,h)})},A9=function(f,d,h,g,v,m){k(m||f._componentsViews,function(y){var b=y.__model;u(b,y),y.render(b,d,h,g),s(b,y),c(b,y)})},D1=function(f,d,h,g,v,m){var y=f._scheduler;v=ne(v||{},{updatedSeries:d.getSeries()}),Ma.trigger("series:beforeupdate",d,h,v);var b=!1;d.eachSeries(function(_){var O=f._chartsMap[_.__viewId];O.__alive=!0;var S=O.renderTask;y.updatePayload(S,g),u(_,O),m&&m.get(_.uid)&&S.dirty(),S.perform(y.getPerformArgs(S))&&(b=!0),O.group.silent=!!_.get("silent"),o(_,O),SQ(_)}),y.unfinished=b||y.unfinished,Ma.trigger("series:layoutlabels",d,h,v),Ma.trigger("series:transition",d,h,v),d.eachSeries(function(_){var O=f._chartsMap[_.__viewId];s(_,O),c(_,O)}),a(f,d),Ma.trigger("series:afterupdate",d,h,v)},Ji=function(f){f[ZA]=!0,f.getZr().wakeUp()},I9=function(f){f[ZA]&&(f.getZr().storage.traverse(function(d){Td(d)||i(d)}),f[ZA]=!1)};function i(f){for(var d=[],h=f.currentStates,g=0;g<h.length;g++){var v=h[g];v==="emphasis"||v==="blur"||v==="select"||d.push(v)}f.selected&&f.states.select&&d.push("select"),f.hoverState===L_&&f.states.emphasis?d.push("emphasis"):f.hoverState===qg&&f.states.blur&&d.push("blur"),f.useStates(d)}function a(f,d){var h=f._zr,g=h.storage,v=0;g.traverse(function(m){m.isGroup||v++}),v>d.get("hoverLayerThreshold")&&!Je.node&&!Je.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 o(f,d){var h=f.get("blendMode")||null;d.eachRendered(function(g){g.isGroup||(g.style.blend=h)})}function s(f,d){if(!f.preventAutoZ){var h=f.get("z")||0,g=f.get("zlevel")||0;d.eachRendered(function(v){return l(v,h,g,-1/0),!0})}}function l(f,d,h,g){var v=f.getTextContent(),m=f.getTextGuideLine(),y=f.isGroup;if(y)for(var b=f.childrenRef(),_=0;_<b.length;_++)g=Math.max(l(b[_],d,h,g),g);else f.z=d,f.zlevel=h,g=Math.max(f.z2,g);if(v&&(v.z=d,v.zlevel=h,isFinite(g)&&(v.z2=g+2)),m){var O=f.textGuideLineConfig;m.z=d,m.zlevel=h,isFinite(g)&&(m.z2=g+(O&&O.showAbove?1:-1))}return g}function u(f,d){d.eachRendered(function(h){if(!Td(h)){var g=h.getTextContent(),v=h.getTextGuideLine();h.stateTransition&&(h.stateTransition=null),g&&g.stateTransition&&(g.stateTransition=null),v&&v.stateTransition&&(v.stateTransition=null),h.hasState()?(h.prevStates=h.currentStates,h.clearStates()):h.prevStates&&(h.prevStates=null)}})}function c(f,d){var h=f.getModel("stateAnimation"),g=f.isAnimationEnabled(),v=h.get("duration"),m=v>0?{duration:v,delay:h.get("delay"),easing:h.get("easing")}:null;d.eachRendered(function(y){if(y.states&&y.states.emphasis){if(Td(y))return;if(y instanceof Ge&&RDe(y),y.__dirty){var b=y.prevStates;b&&y.useStates(b)}if(g){y.stateTransition=m;var _=y.getTextContent(),O=y.getTextGuideLine();_&&(_.stateTransition=m),O&&(O.stateTransition=m)}y.__dirty&&i(y)}})}E9=function(f){return new(function(d){U(h,d);function h(){return d!==null&&d.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return f._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(g){for(;g;){var v=g.__ecComponentInfo;if(v!=null)return f._model.getComponent(v.mainType,v.index);g=g.parent}},h.prototype.enterEmphasis=function(g,v){fs(g,v),Ji(f)},h.prototype.leaveEmphasis=function(g,v){ds(g,v),Ji(f)},h.prototype.enterBlur=function(g){mQ(g),Ji(f)},h.prototype.leaveBlur=function(g){k2(g),Ji(f)},h.prototype.enterSelect=function(g){yQ(g),Ji(f)},h.prototype.leaveSelect=function(g){bQ(g),Ji(f)},h.prototype.getModel=function(){return f.getModel()},h.prototype.getViewOfComponentModel=function(g){return f.getViewOfComponentModel(g)},h.prototype.getViewOfSeriesModel=function(g){return f.getViewOfSeriesModel(g)},h}(WH))(f)},M9=function(f){function d(h,g){for(var v=0;v<h.length;v++){var m=h[v];m[UA]=g}}k(Av,function(h,g){f._messageCenter.on(g,function(v){if(L1[f.group]&&f[UA]!==O9){if(v&&v.escapeConnect)return;var m=f.makeActionFromEvent(v),y=[];k(mc,function(b){b!==f&&b.group===f.group&&y.push(b)}),d(y,O9),k(y,function(b){b[UA]!==cLe&&b.dispatchAction(m)}),d(y,fLe)}})})}}(),e}(zi),eE=R1.prototype;eE.on=S9("on"),eE.off=S9("off"),eE.one=function(t,e,n){var r=this;Hi("ECharts#one is deprecated.");function i(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];e&&e.apply&&e.apply(this,a),r.off(t,i)}this.on.call(this,t,i,n)};var dLe=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];function vi(t){process.env.NODE_ENV!=="production"&&Wt("Instance "+t+" has been disposed")}var k1={},Av={},tE=[],nE=[],N1=[],D9={},rE={},mc={},L1={},hLe=+new Date-0,pLe=+new Date-0,iE="_echarts_instance_";function R9(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=aE(t);if(i)return process.env.NODE_ENV!=="production"&&Wt("There is a chart instance already initialized on the dom."),i;process.env.NODE_ENV!=="production"&&Xs(t)&&t.nodeName.toUpperCase()!=="CANVAS"&&(!t.clientWidth&&(!n||n.width==null)||!t.clientHeight&&(!n||n.height==null))&&Wt("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 a=new R1(t,e,n);return a.id="ec_"+hLe++,mc[a.id]=a,r&&A7(t,iE,a.id),M9(a),Ma.trigger("afterinit",a),a}function gLe(t){if(re(t)){var e=t;t=null,k(e,function(n){n.group!=null&&(t=n.group)}),t=t||"g_"+pLe++,k(e,function(n){n.group=t})}return L1[t]=!0,t}function k9(t){L1[t]=!1}var vLe=k9;function mLe(t){pe(t)?t=mc[t]:t instanceof R1||(t=aE(t)),t instanceof R1&&!t.isDisposed()&&t.dispose()}function aE(t){return mc[SIe(t,iE)]}function yLe(t){return mc[t]}function oE(t,e){D9[t]=e}function sE(t){Fe(nE,t)<0&&nE.push(t)}function lE(t,e){uE(tE,t,e,rLe)}function N9(t){V1("afterinit",t)}function L9(t){V1("afterupdate",t)}function V1(t,e){Ma.on(t,e)}function Ia(t,e,n){xe(e)&&(n=e,e="");var r=we(t)?t.type:[t,t={event:e}][0];t.event=(t.event||r).toLowerCase(),e=t.event,!Av[e]&&(Pe(_9.test(r)&&_9.test(e)),k1[r]||(k1[r]={action:n,actionInfo:t}),Av[e]=r)}function V9(t,e){uc.register(t,e)}function bLe(t){var e=uc.get(t);if(e)return e.getDimensionsInfo?e.getDimensionsInfo():e.dimensions.slice()}function B9(t,e){uE(N1,t,e,v9,"layout")}function _l(t,e){uE(N1,t,e,m9,"visual")}var z9=[];function uE(t,e,n,r,i){if((xe(e)||we(e))&&(n=e,e=r),process.env.NODE_ENV!=="production"){if(isNaN(e)||e==null)throw new Error("Illegal priority");k(t,function(o){Pe(o.__raw!==n)})}if(!(Fe(z9,n)>=0)){z9.push(n);var a=Fj.wrapStageHandler(n,i);a.__prio=e,a.__raw=n,t.push(a)}}function cE(t,e){rE[t]=e}function _Le(t){process.env.NODE_ENV!=="production"&&Hi("setCanvasCreator is deprecated. Use setPlatformAPI({ createCanvas }) instead."),nW({createCanvas:t})}function F9(t,e,n){var r=g9("registerMap");r&&r(t,e,n)}function OLe(t){var e=g9("getMap");return e&&e(t)}var W9=Rke;_l(GA,aNe),_l(M1,oNe),_l(M1,sNe),_l(GA,_Ne),_l(M1,ONe),_l(y9,XNe),sE(XH),lE(tLe,pke),cE("default",lNe),Ia({type:qu,event:qu,update:qu},Jt),Ia({type:V_,event:V_,update:V_},Jt),Ia({type:Jg,event:Jg,update:Jg},Jt),Ia({type:B_,event:B_,update:B_},Jt),Ia({type:ev,event:ev,update:ev},Jt),oE("light",yNe),oE("dark",Uj);var SLe={},Q9=[],xLe={registerPreprocessor:sE,registerProcessor:lE,registerPostInit:N9,registerPostUpdate:L9,registerUpdateLifecycle:V1,registerAction:Ia,registerCoordinateSystem:V9,registerLayout:B9,registerVisual:_l,registerTransform:W9,registerLoading:cE,registerMap:F9,registerImpl:YNe,PRIORITY:b9,ComponentModel:He,ComponentView:At,SeriesModel:Ct,ChartView:_t,registerComponentModel:function(t){He.registerClass(t)},registerComponentView:function(t){At.registerClass(t)},registerSeriesModel:function(t){Ct.registerClass(t)},registerChartView:function(t){_t.registerClass(t)},registerSubTypeDefaulter:function(t,e){He.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){c7(t,e)}};function je(t){if(re(t)){k(t,function(e){je(e)});return}Fe(Q9,t)>=0||(Q9.push(t),xe(t)&&(t={install:t}),t.install(xLe))}function Ev(t){return t==null?0:t.length||1}function H9(t){return t}var vs=function(){function t(e,n,r,i,a,o){this._old=e,this._new=n,this._oldKeyGetter=r||H9,this._newKeyGetter=i||H9,this.context=a,this._diffModeMultiple=o==="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),a=new Array(n.length);this._initIndexMap(e,null,i,"_oldKeyGetter"),this._initIndexMap(n,r,a,"_newKeyGetter");for(var o=0;o<e.length;o++){var s=i[o],l=r[s],u=Ev(l);if(u>1){var c=l.shift();l.length===1&&(r[s]=l[0]),this._update&&this._update(c,o)}else u===1?(r[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,r)},t.prototype._executeMultiple=function(){var e=this._old,n=this._new,r={},i={},a=[],o=[];this._initIndexMap(e,r,a,"_oldKeyGetter"),this._initIndexMap(n,i,o,"_newKeyGetter");for(var s=0;s<a.length;s++){var l=a[s],u=r[l],c=i[l],f=Ev(u),d=Ev(c);if(f>1&&d===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(f===1&&d>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(f===1&&d===1)this._update&&this._update(c,u),i[l]=null;else if(f>1&&d>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(f>1)for(var h=0;h<f;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},t.prototype._performRestAdd=function(e,n){for(var r=0;r<e.length;r++){var i=e[r],a=n[i],o=Ev(a);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(a[s]);else o===1&&this._add&&this._add(a);n[i]=null}},t.prototype._initIndexMap=function(e,n,r,i){for(var a=this._diffModeMultiple,o=0;o<e.length;o++){var s="_ec_"+this[i](e[o],o);if(a||(r[o]=s),!!n){var l=n[s],u=Ev(l);u===0?(n[s]=o,a&&r.push(s)):u===1?n[s]=[l,o]:l.push(o)}}},t}(),wLe=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 CLe(t,e){var n={},r=n.encode={},i=be(),a=[],o=[],s={};k(t.dimensions,function(d){var h=t.getDimensionInfo(d),g=h.coordDim;if(g){process.env.NODE_ENV!=="production"&&Pe(vA.get(g)==null);var v=h.coordDimIndex;fE(r,g)[v]=d,h.isExtraCoord||(i.set(g,1),TLe(h.type)&&(a[0]=d),fE(s,g)[v]=t.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(d)}vA.each(function(m,y){var b=fE(r,y),_=h.otherDims[y];_!=null&&_!==!1&&(b[_]=h.name)})});var l=[],u={};i.each(function(d,h){var g=r[h];u[h]=g[0],l=l.concat(g)}),n.dataDimsOnCoord=l,n.dataDimIndicesOnCoord=ie(l,function(d){return t.getDimensionInfo(d).storeDimIndex}),n.encodeFirstDimNotExtra=u;var c=r.label;c&&c.length&&(a=c.slice());var f=r.tooltip;return f&&f.length?o=f.slice():o.length||(o=a.slice()),r.defaultedLabel=a,r.defaultedTooltip=o,n.userOutput=new wLe(s,e),n}function fE(t,e){return t.hasOwnProperty(e)||(t[e]=[]),t[e]}function B1(t){return t==="category"?"ordinal":t==="time"?"time":"float"}function TLe(t){return!(t==="ordinal"||t==="time")}var z1=function(){function t(e){this.otherDims={},e!=null&&ne(this,e)}return t}(),PLe=et(),$Le={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},j9=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=U9(this.source)))},t.prototype.getSourceDimensionIndex=function(e){return Re(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=JH(this.source),r=!X9(e),i="",a=[],o=0,s=0;o<e;o++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===o)l=n?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var d=this.getSourceDimension(o);d&&(l=n?d.name:null,u=d.type)}a.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+=$Le[u]||"f",c&&(i+=c.uid),i+="$"}var h=this.source,g=[h.seriesLayoutBy,h.startIndex,i].join("$$");return{dimensions:a,hash:g}},t.prototype.makeOutputDimensionNames=function(){for(var e=[],n=0,r=0;n<this._fullDimCount;n++){var i=void 0,a=this.dimensions[r];if(a&&a.storeDimIndex===n)a.isCalculationCoord||(i=a.name),r++;else{var o=this.getSourceDimension(n);o&&(i=o.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 G9(t){return t instanceof j9}function Z9(t){for(var e=be(),n=0;n<(t||[]).length;n++){var r=t[n],i=we(r)?r.name:r;i!=null&&e.get(i)==null&&e.set(i,n)}return e}function U9(t){var e=PLe(t);return e.dimNameMap||(e.dimNameMap=Z9(t.dimensionsDefine))}function X9(t){return t>30}var Mv=we,Ol=ie,ALe=typeof Int32Array>"u"?Array:Int32Array,ELe="e\0\0",Y9=-1,MLe=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],ILe=["_approximateExtent"],q9,F1,Iv,Zd,dE,W1,hE,DLe=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;G9(e)?(r=e.dimensions,this._dimOmitted=e.isDimensionOmitted(),this._schema=e):(i=!0,r=e),r=r||["x","y"];for(var a={},o=[],s={},l=!1,u={},c=0;c<r.length;c++){var f=r[c],d=pe(f)?new z1({name:f}):f instanceof z1?f:new z1(f),h=d.name;d.type=d.type||"float",d.coordDim||(d.coordDim=h,d.coordDimIndex=0);var g=d.otherDims=d.otherDims||{};o.push(h),a[h]=d,u[h]!=null&&(l=!0),d.createInvertedIndices&&(s[h]=[]),g.itemName===0&&(this._nameDimIdx=c),g.itemId===0&&(this._idDimIdx=c),process.env.NODE_ENV!=="production"&&Pe(i||d.storeDimIndex>=0),i&&(d.storeDimIndex=c)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(l),this.hostModel=n,this._invertedIndicesMap=s,this._dimOmitted){var v=this._dimIdxToName=be();k(o,function(m){v.set(a[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,a;if(e instanceof RA&&(a=e),!a){var o=this.dimensions,s=PA(e)||jn(e)?new nj(e,o.length):e;a=new RA;var l=Ol(o,function(u){return{type:i._dimInfos[u].type,property:u}});a.initData(s,l,r)}this._store=a,this._nameList=(n||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=CLe(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,a=r.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),n)for(var s=i;s<a;s++){var l=s-i;this._nameList[s]=n[l],o&&hE(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!==ps&&!e.fillStorage},t.prototype._doInit=function(e,n){if(!(e>=n)){var r=this._store,i=r.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Xi;if(l&&!i.pure)for(var u=[],c=e;c<n;c++){var f=i.getItem(c,u);if(!this.hasItemOption&&uIe(f)&&(this.hasItemOption=!0),f){var d=f.name;a[c]==null&&d!=null&&(a[c]=gn(d,null));var h=f.id;o[c]==null&&h!=null&&(o[c]=gn(h,null))}}if(this._shouldMakeIdFromName())for(var c=e;c<n;c++)hE(this,c);q9(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){Mv(e)?ne(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=Iv(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 F1(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 re(e)?i.getValues(Ol(e,function(a){return r._getStoreDimIndex(a)}),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)?Y9:i},t.prototype.indicesOfNearest=function(e,n,r){return this._store.indicesOfNearest(this._getStoreDimIndex(e),n,r)},t.prototype.each=function(e,n,r){xe(e)&&(r=n,n=e,e=[]);var i=r||this,a=Ol(Zd(e),this._getStoreDimIndex,this);this._store.each(a,i?ve(n,i):n)},t.prototype.filterSelf=function(e,n,r){xe(e)&&(r=n,n=e,e=[]);var i=r||this,a=Ol(Zd(e),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?ve(n,i):n),this},t.prototype.selectRange=function(e){var n=this,r={},i=Ue(e);return k(i,function(a){var o=n._getStoreDimIndex(a);r[o]=e[a]}),this._store=this._store.selectRange(r),this},t.prototype.mapArray=function(e,n,r){xe(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 a=r||i||this,o=Ol(Zd(e),this._getStoreDimIndex,this),s=W1(this);return s._store=this._store.map(o,a?ve(n,a):n),s},t.prototype.modify=function(e,n,r,i){var a=this,o=r||i||this;process.env.NODE_ENV!=="production"&&k(Zd(e),function(l){var u=a.getDimensionInfo(l);u.isCalculationCoord||console.error("Danger: only stack dimension can be modified")});var s=Ol(Zd(e),this._getStoreDimIndex,this);this._store.modify(s,o?ve(n,o):n)},t.prototype.downSample=function(e,n,r,i){var a=W1(this);return a._store=this._store.downSample(this._getStoreDimIndex(e),n,r,i),a},t.prototype.lttbDownSample=function(e,n){var r=W1(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 wt(r,n,n&&n.ecModel)},t.prototype.diff=function(e){var n=this;return new vs(e?e.getStore().getIndices():[],this.getStore().getIndices(),function(r){return F1(e,r)},function(r){return F1(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||{},Mv(e)?ne(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 a=i[n];return a==null&&(a=this.getVisual(n),re(a)?a=a.slice():Mv(a)&&(a=ne({},a)),i[n]=a),a},t.prototype.setItemVisual=function(e,n,r){var i=this._itemVisuals[e]||{};this._itemVisuals[e]=i,Mv(n)?ne(i,n):i[n]=r},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(e,n){Mv(e)?ne(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?ne(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;E2(r,this.dataType,e,n),this._graphicEls[e]=n},t.prototype.getItemGraphicEl=function(e){return this._graphicEls[e]},t.prototype.eachItemGraphicEl=function(e,n){k(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:Ol(this.dimensions,this._getDimInfo,this),this.hostModel)),dE(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(e,n){var r=this[e];xe(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var i=r.apply(this,arguments);return n.apply(this,[i].concat(Xb(arguments)))})},t.internalField=function(){q9=function(e){var n=e._invertedIndicesMap;k(n,function(r,i){var a=e._dimInfos[i],o=a.ordinalMeta,s=e._store;if(o){r=n[i]=new ALe(o.categories.length);for(var l=0;l<r.length;l++)r[l]=Y9;for(var l=0;l<s.count();l++)r[s.get(a.storeDimIndex,l)]=l}})},Iv=function(e,n,r){return gn(e._getCategory(n,r),null)},F1=function(e,n){var r=e._idList[n];return r==null&&e._idDimIdx!=null&&(r=Iv(e,e._idDimIdx,n)),r==null&&(r=ELe+n),r},Zd=function(e){return re(e)||(e=e!=null?[e]:[]),e},W1=function(e){var n=new t(e._schema?e._schema:Ol(e.dimensions,e._getDimInfo,e),e.hostModel);return dE(n,e),n},dE=function(e,n){k(MLe.concat(n.__wrappedMethods||[]),function(r){n.hasOwnProperty(r)&&(e[r]=n[r])}),e.__wrappedMethods=n.__wrappedMethods,k(ILe,function(r){e[r]=$e(n[r])}),e._calculationInfo=ne({},n._calculationInfo)},hE=function(e,n){var r=e._nameList,i=e._idList,a=e._nameDimIdx,o=e._idDimIdx,s=r[n],l=i[n];if(s==null&&a!=null&&(r[n]=s=Iv(e,a,n)),l==null&&o!=null&&(i[n]=l=Iv(e,o,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 ur=DLe;function RLe(t,e){return Ud(t,e).dimensions}function Ud(t,e){PA(t)||(t=AA(t)),e=e||{};var n=e.coordDimensions||[],r=e.dimensionsDefine||t.dimensionsDefine||[],i=be(),a=[],o=NLe(t,n,r,e.dimensionsCount),s=e.canOmitUnusedDimensions&&X9(o),l=r===t.dimensionsDefine,u=l?U9(t):Z9(r),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,o));for(var f=be(c),d=new pj(o),h=0;h<d.length;h++)d[h]=-1;function g(P){var C=d[P];if(C<0){var $=r[P],A=we($)?$:{name:$},E=new z1,D=A.name;D!=null&&u.get(D)!=null&&(E.name=E.displayName=D),A.type!=null&&(E.type=A.type),A.displayName!=null&&(E.displayName=A.displayName);var M=a.length;return d[P]=M,E.storeDimIndex=P,a.push(E),E}return a[C]}if(!s)for(var h=0;h<o;h++)g(h);f.each(function(P,C){var $=xt(P).slice();if($.length===1&&!pe($[0])&&$[0]<0){f.set(C,!1);return}var A=f.set(C,[]);k($,function(E,D){var M=pe(E)?u.get(E):E;M!=null&&M<o&&(A[D]=M,m(g(M),C,D))})});var v=0;k(n,function(P){var C,$,A,E;if(pe(P))C=P,E={};else{E=P,C=E.name;var D=E.ordinalMeta;E.ordinalMeta=null,E=ne({},E),E.ordinalMeta=D,$=E.dimsDef,A=E.otherDims,E.name=E.coordDim=E.coordDimIndex=E.dimsDef=E.otherDims=null}var M=f.get(C);if(M!==!1){if(M=xt(M),!M.length)for(var R=0;R<($&&$.length||1);R++){for(;v<o&&g(v).coordDim!=null;)v++;v<o&&M.push(v++)}k(M,function(N,V){var L=g(N);if(l&&E.type!=null&&(L.type=E.type),m(Te(L,E),C,V),L.name==null&&$){var z=$[V];!we(z)&&(z={name:z}),L.name=L.displayName=z.name,L.defaultTooltip=z.defaultTooltip}A&&Te(L.otherDims,A)})}});function m(P,C,$){vA.get(C)!=null?P.otherDims[C]=$:(P.coordDim=C,P.coordDimIndex=$,i.set(C,!0))}var y=e.generateCoord,b=e.generateCoordCount,_=b!=null;b=y?b||1:0;var O=y||"value";function S(P){P.name==null&&(P.name=P.coordDim)}if(s)k(a,function(P){S(P)}),a.sort(function(P,C){return P.storeDimIndex-C.storeDimIndex});else for(var x=0;x<o;x++){var w=g(x),T=w.coordDim;T==null&&(w.coordDim=LLe(O,i,_),w.coordDimIndex=0,(!y||b<=0)&&(w.isExtraCoord=!0),b--),S(w),w.type==null&&(DH(t,x)===Xn.Must||w.isExtraCoord&&(w.otherDims.itemName!=null||w.otherDims.seriesName!=null))&&(w.type="ordinal")}return kLe(a),new j9({source:t,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function kLe(t){for(var e=be(),n=0;n<t.length;n++){var r=t[n],i=r.name,a=e.get(i)||0;a>0&&(r.name=i+(a-1)),a++,e.set(i,a)}}function NLe(t,e,n,r){var i=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,r||0);return k(e,function(a){var o;we(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function LLe(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 VLe=function(){function t(e){this.coordSysDims=[],this.axisMap=be(),this.categoryAxisMap=be(),this.coordSysName=e}return t}();function BLe(t){var e=t.get("coordinateSystem"),n=new VLe(e),r=zLe[e];if(r)return r(t,n,n.axisMap,n.categoryAxisMap),n}var zLe={cartesian2d:function(t,e,n,r){var i=t.getReferringComponents("xAxis",on).models[0],a=t.getReferringComponents("yAxis",on).models[0];if(process.env.NODE_ENV!=="production"){if(!i)throw new Error('xAxis "'+tn(t.get("xAxisIndex"),t.get("xAxisId"),0)+'" not found');if(!a)throw new Error('yAxis "'+tn(t.get("xAxisIndex"),t.get("yAxisId"),0)+'" not found')}e.coordSysDims=["x","y"],n.set("x",i),n.set("y",a),Xd(i)&&(r.set("x",i),e.firstCategoryDimIndex=0),Xd(a)&&(r.set("y",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,r){var i=t.getReferringComponents("singleAxis",on).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error("singleAxis should be specified.");e.coordSysDims=["single"],n.set("single",i),Xd(i)&&(r.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,n,r){var i=t.getReferringComponents("polar",on).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");if(process.env.NODE_ENV!=="production"){if(!o)throw new Error("angleAxis option not found");if(!a)throw new Error("radiusAxis option not found")}e.coordSysDims=["radius","angle"],n.set("radius",a),n.set("angle",o),Xd(a)&&(r.set("radius",a),e.firstCategoryDimIndex=0),Xd(o)&&(r.set("angle",o),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,a=i.getComponent("parallel",t.get("parallelIndex")),o=e.coordSysDims=a.dimensions.slice();k(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];n.set(c,u),Xd(u)&&(r.set(c,u),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=l))})}};function Xd(t){return t.get("type")==="category"}function K9(t,e,n){n=n||{};var r=n.byIndex,i=n.stackedCoordDimension,a,o,s;FLe(e)?a=e:(o=e.schema,a=o.dimensions,s=e.store);var l=!!(t&&t.get("stack")),u,c,f,d;if(k(a,function(b,_){pe(b)&&(a[_]=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 h=c.coordDim,g=c.type,v=0;k(a,function(b){b.coordDim===h&&v++});var m={name:f,coordDim:h,coordDimIndex:v,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},y={name:d,coordDim:d,coordDimIndex:v+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(d,g),y.storeDimIndex=s.ensureCalculationDimension(f,g)),o.appendCalculationDimension(m),o.appendCalculationDimension(y)):(a.push(m),a.push(y))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:r,stackedOverDimension:d,stackResultDimension:f}}function FLe(t){return!G9(t.schema)}function ms(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function pE(t,e){return ms(t,e)?t.getCalculationInfo("stackResultDimension"):e}function WLe(t,e){var n=t.get("coordinateSystem"),r=uc.get(n),i;return e&&e.coordSysDims&&(i=ie(e.coordSysDims,function(a){var o={name:a},s=e.axisMap.get(a);if(s){var l=s.get("type");o.type=B1(l)}return o})),i||(i=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),i}function QLe(t,e,n){var r,i;return n&&k(t,function(a,o){var s=a.coordDim,l=n.categoryAxisMap.get(s);l&&(r==null&&(r=o),a.ordinalMeta=l.getOrdinalMeta(),e&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&r!=null&&(t[r].otherDims.itemName=0),r}function go(t,e,n){n=n||{};var r=e.getSourceManager(),i,a=!1;t?(a=!0,i=AA(t)):(i=r.getSource(),a=i.sourceFormat===Xi);var o=BLe(e),s=WLe(e,o),l=n.useEncodeDefaulter,u=xe(l)?l:l?ke(IH,s,e):null,c={coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},f=Ud(i,c),d=QLe(f.dimensions,n.createInvertedIndices,o),h=a?null:r.getSharedDataStore(f),g=K9(e,{schema:f,store:h}),v=new ur(f,e);v.setCalculationInfo(g);var m=d!=null&&HLe(i)?function(y,b,_,O){return O===d?_:this.defaultDimValueGetter(y,b,_,O)}:null;return v.hasItemOption=!1,v.initData(a?i:h,null,m),v}function HLe(t){if(t.sourceFormat===Xi){var e=jLe(t.data||[]);return!re(vd(e))}}function jLe(t){for(var e=0;e<t.length&&t[e]==null;)e++;return t[e]}var vo=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}();A_(vo);var GLe=0,gE=function(){function t(e){this.categories=e.categories||[],this._needCollect=e.needCollect,this._deduplication=e.deduplication,this.uid=++GLe}return t.createByAxisModel=function(e){var n=e.option,r=n.data,i=r&&ie(r,ZLe);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(!pe(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 ZLe(t){return we(t)&&t.value!=null?t.value:t+""}function ULe(t){var e=Math.pow(10,jg(Math.abs(t))),n=Math.abs(t/e);return n===0||n===1||n===2||n===3||n===5}function vE(t){return t.type==="interval"||t.type==="log"}function XLe(t,e,n,r){var i={},a=t[1]-t[0],o=i.interval=s2(a/e,!0);n!=null&&o<n&&(o=i.interval=n),r!=null&&o>r&&(o=i.interval=r);var s=i.intervalPrecision=J9(o),l=i.niceTickExtent=[Ut(Math.ceil(t[0]/o)*o,s),Ut(Math.floor(t[1]/o)*o,s)];return YLe(l,t),i}function mE(t){var e=Math.pow(10,jg(t)),n=t/e;return n?n===2?n=3:n===3?n=5:n*=2:n=1,Ut(n*e)}function J9(t){return Pa(t)+2}function eG(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function YLe(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),eG(t,0,e),eG(t,1,e),t[0]>t[1]&&(t[0]=t[1])}function Q1(t,e){return t>=e[0]&&t<=e[1]}function H1(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function j1(t,e){return t*(e[1]-e[0])+e[0]}var G1=function(t){U(e,t);function e(n){var r=t.call(this,n)||this;r.type="ordinal";var i=r.getSetting("ordinalMeta");return i||(i=new gE({})),re(i)&&(i=new gE({categories:ie(i,function(a){return we(a)?a.value:a})})),r._ordinalMeta=i,r._extent=r.getSetting("extent")||[0,i.categories.length-1],r}return e.prototype.parse=function(n){return n==null?NaN:pe(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},e.prototype.contain=function(n){return n=this.parse(n),Q1(n,this._extent)&&this._ordinalMeta.categories[n]!=null},e.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),H1(n,this._extent)},e.prototype.scale=function(n){return n=Math.round(j1(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=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,r.length);o<l;++o){var u=r[o];i[o]=u,a[u]=o}for(var c=0;o<s;++o){for(;a[c]!=null;)c++;i.push(c),a[c]=o}},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}(vo);vo.registerClass(G1);var yc=Ut,ys=function(t){U(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 Q1(n,this._extent)},e.prototype.normalize=function(n){return H1(n,this._extent)},e.prototype.scale=function(n){return j1(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=J9(n)},e.prototype.getTicks=function(n){var r=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!r)return s;var l=1e4;i[0]<a[0]&&(n?s.push({value:yc(a[0]-r,o)}):s.push({value:i[0]}));for(var u=a[0];u<=a[1]&&(s.push({value:u}),u=yc(u+r,o),u!==s[s.length-1].value);)if(s.length>l)return[];var c=s.length?s[s.length-1].value:a[1];return i[1]>c&&(n?s.push({value:yc(c+r,o)}):s.push({value:i[1]})),s},e.prototype.getMinorTicks=function(n){for(var r=this.getTicks(!0),i=[],a=this.getExtent(),o=1;o<r.length;o++){for(var s=r[o],l=r[o-1],u=0,c=[],f=s.value-l.value,d=f/n;u<n-1;){var h=yc(l.value+(u+1)*d);h>a[0]&&h<a[1]&&c.push(h),u++}i.push(c)}return i},e.prototype.getLabel=function(n,r){if(n==null)return"";var i=r&&r.precision;i==null?i=Pa(n.value)||0:i==="auto"&&(i=this._intervalPrecision);var a=yc(n.value,i,!0);return cA(a)},e.prototype.calcNiceTicks=function(n,r,i){n=n||5;var a=this._extent,o=a[1]-a[0];if(isFinite(o)){o<0&&(o=-o,a.reverse());var s=XLe(a,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 a=r[1]-r[0];isFinite(a)||(r[0]=0,r[1]=1),this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval);var o=this._interval;n.fixMin||(r[0]=yc(Math.floor(r[0]/o)*o)),n.fixMax||(r[1]=yc(Math.ceil(r[1]/o)*o))},e.prototype.setNiceExtent=function(n,r){this._niceExtent=[n,r]},e.type="interval",e}(vo);vo.registerClass(ys);var tG=typeof Float32Array<"u",qLe=tG?Float32Array:Array;function mo(t){return re(t)?tG?new Float32Array(t):t:new qLe(t)}var yE="__ec_stack_";function bE(t){return t.get("stack")||yE+t.seriesIndex}function _E(t){return t.dim+t.index}function KLe(t){var e=[],n=t.axis,r="axis0";if(n.type==="category"){for(var i=n.getBandWidth(),a=0;a<t.count;a++)e.push(Te({bandWidth:i,axisKey:r,stackId:yE+a},t));for(var o=iG(e),s=[],a=0;a<t.count;a++){var l=o[r][yE+a];l.offsetCenter=l.offset+l.width/2,s.push(l)}return s}}function nG(t,e){var n=[];return e.eachSeriesByType(t,function(r){sG(r)&&n.push(r)}),n}function JLe(t){var e={};k(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,h=f.getDimensionIndex(f.mapDimension(c.dim)),g=f.getStore(),v=0,m=g.count();v<m;++v){var y=g.get(h,v);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 a=null,o=1;o<i.length;++o){var s=i[o]-i[o-1];s>0&&(a=a===null?s:Math.min(a,s))}n[r]=a}}return n}function rG(t){var e=JLe(t),n=[];return k(t,function(r){var i=r.coordinateSystem,a=i.getBaseAxis(),o=a.getExtent(),s;if(a.type==="category")s=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var l=a.dim+"_"+a.index,u=e[l],c=Math.abs(o[1]-o[0]),f=a.scale.getExtent(),d=Math.abs(f[1]-f[0]);s=u?c/d*u:c}else{var h=r.getData();s=Math.abs(o[1]-o[0])/h.count()}var g=he(r.get("barWidth"),s),v=he(r.get("barMaxWidth"),s),m=he(r.get("barMinWidth")||(lG(r)?.5:1),s),y=r.get("barGap"),b=r.get("barCategoryGap");n.push({bandWidth:s,barWidth:g,barMaxWidth:v,barMinWidth:m,barGap:y,barCategoryGap:b,axisKey:_E(a),stackId:bE(r)})}),iG(n)}function iG(t){var e={};k(t,function(r,i){var a=r.axisKey,o=r.bandWidth,s=e[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;e[a]=s;var u=r.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=r.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var f=r.barMaxWidth;f&&(l[u].maxWidth=f);var d=r.barMinWidth;d&&(l[u].minWidth=d);var h=r.barGap;h!=null&&(s.gap=h);var g=r.barCategoryGap;g!=null&&(s.categoryGap=g)});var n={};return k(e,function(r,i){n[i]={};var a=r.stacks,o=r.bandWidth,s=r.categoryGap;if(s==null){var l=Ue(a).length;s=Math.max(35-l*4,15)+"%"}var u=he(s,o),c=he(r.gap,1),f=r.remainedWidth,d=r.autoWidthCount,h=(f-u)/(d+(d-1)*c);h=Math.max(h,0),k(a,function(y){var b=y.maxWidth,_=y.minWidth;if(y.width){var O=y.width;b&&(O=Math.min(O,b)),_&&(O=Math.max(O,_)),y.width=O,f-=O+c*O,d--}else{var O=h;b&&b<O&&(O=Math.min(b,f)),_&&_>O&&(O=_),O!==h&&(y.width=O,f-=O+c*O,d--)}}),h=(f-u)/(d+(d-1)*c),h=Math.max(h,0);var g=0,v;k(a,function(y,b){y.width||(y.width=h),v=y,g+=y.width*(1+c)}),v&&(g-=v.width*c);var m=-g/2;k(a,function(y,b){n[i][b]=n[i][b]||{bandWidth:o,offset:m,width:y.width},m+=y.width*(1+c)})}),n}function e4e(t,e,n){if(t&&e){var r=t[_E(e)];return r!=null&&n!=null?r[bE(n)]:r}}function aG(t,e){var n=nG(t,e),r=rG(n);k(n,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=bE(i),u=r[_E(s)][l],c=u.offset,f=u.width;a.setLayout({bandWidth:u.bandWidth,offset:c,size:f})})}function oG(t){return{seriesType:t,plan:zd(),reset:function(e){if(sG(e)){var n=e.getData(),r=e.coordinateSystem,i=r.getBaseAxis(),a=r.getOtherAxis(i),o=n.getDimensionIndex(n.mapDimension(a.dim)),s=n.getDimensionIndex(n.mapDimension(i.dim)),l=e.get("showBackground",!0),u=n.mapDimension(a.dim),c=n.getCalculationInfo("stackResultDimension"),f=ms(n,u)&&!!n.getCalculationInfo("stackedOnSeries"),d=a.isHorizontal(),h=t4e(i,a),g=lG(e),v=e.get("barMinHeight")||0,m=c&&n.getDimensionIndex(c),y=n.getLayout("size"),b=n.getLayout("offset");return{progress:function(_,O){for(var S=_.count,x=g&&mo(S*3),w=g&&l&&mo(S*3),T=g&&mo(S),P=r.master.getRect(),C=d?P.width:P.height,$,A=O.getStore(),E=0;($=_.next())!=null;){var D=A.get(f?m:o,$),M=A.get(s,$),R=h,N=void 0;f&&(N=+D-A.get(o,$));var V=void 0,L=void 0,z=void 0,B=void 0;if(d){var F=r.dataToPoint([D,M]);if(f){var j=r.dataToPoint([N,M]);R=j[0]}V=R,L=F[1]+b,z=F[0]-R,B=y,Math.abs(z)<v&&(z=(z<0?-1:1)*v)}else{var F=r.dataToPoint([M,D]);if(f){var j=r.dataToPoint([M,N]);R=j[1]}V=F[0]+b,L=R,z=y,B=F[1]-R,Math.abs(B)<v&&(B=(B<=0?-1:1)*v)}g?(x[E]=V,x[E+1]=L,x[E+2]=d?z:B,w&&(w[E]=d?P.x:V,w[E+1]=d?L:P.y,w[E+2]=C),T[$]=$):O.setItemLayout($,{x:V,y:L,width:z,height:B}),E+=3}g&&O.setLayout({largePoints:x,largeDataIndices:T,largeBackgroundPoints:w,valueAxisHorizontal:d})}}}}}}function sG(t){return t.coordinateSystem&&t.coordinateSystem.type==="cartesian2d"}function lG(t){return t.pipelineContext&&t.pipelineContext.large}function t4e(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 n4e=function(t,e,n,r){for(;n<r;){var i=n+r>>>1;t[i][1]<e?n=i+1:r=i}return n},OE=function(t){U(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 dv(n.value,gH[ERe(Dd(this._minLevelUnit))]||gH.second,r,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(n,r,i){var a=this.getSetting("useUTC"),o=this.getSetting("locale");return MRe(n,r,i,o,a)},e.prototype.getTicks=function(){var n=this._interval,r=this._extent,i=[];if(!n)return i;i.push({value:r[0],level:0});var a=this.getSetting("useUTC"),o=u4e(this._minLevelUnit,this._approxInterval,a,r);return i=i.concat(o),i.push({value:r[1],level:0}),i},e.prototype.calcNiceExtent=function(n){var r=this._extent;if(r[0]===r[1]&&(r[0]-=Ui,r[1]+=Ui),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]-Ui}this.calcNiceTicks(n.splitNumber,n.minInterval,n.maxInterval)},e.prototype.calcNiceTicks=function(n,r,i){n=n||10;var a=this._extent,o=a[1]-a[0];this._approxInterval=o/n,r!=null&&this._approxInterval<r&&(this._approxInterval=r),i!=null&&this._approxInterval>i&&(this._approxInterval=i);var s=Z1.length,l=Math.min(n4e(Z1,this._approxInterval,0,s),s-1);this._interval=Z1[l][1],this._minLevelUnit=Z1[Math.max(l-1,0)][0]},e.prototype.parse=function(n){return it(n)?n:+hi(n)},e.prototype.contain=function(n){return Q1(this.parse(n),this._extent)},e.prototype.normalize=function(n){return H1(this.parse(n),this._extent)},e.prototype.scale=function(n){return j1(n,this._extent)},e.type="time",e}(ys),Z1=[["second",oA],["minute",sA],["hour",cv],["quarter-day",cv*6],["half-day",cv*12],["day",Ui*1.2],["half-week",Ui*3.5],["week",Ui*7],["month",Ui*31],["quarter",Ui*95],["half-year",pH/2],["year",pH]];function r4e(t,e,n,r){var i=hi(e),a=hi(n),o=function(g){return yH(i,g,r)===yH(a,g,r)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},f=function(){return c()&&o("minute")},d=function(){return f()&&o("second")},h=function(){return d()&&o("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 h()}}function i4e(t,e){return t/=Ui,t>16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function a4e(t){var e=30*Ui;return t/=e,t>6?6:t>3?3:t>2?2:1}function o4e(t){return t/=cv,t>12?12:t>6?6:t>3.5?4:t>2?2:1}function uG(t,e){return t/=e?sA:oA,t>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function s4e(t){return s2(t,!0)}function l4e(t,e,n){var r=new Date(t);switch(Dd(e)){case"year":case"month":r[bH(n)](0);case"day":r[_H(n)](1);case"hour":r[OH(n)](0);case"minute":r[SH(n)](0);case"second":r[xH(n)](0),r[wH(n)](0)}return r.getTime()}function u4e(t,e,n,r){var i=1e4,a=vH,o=0;function s(C,$,A,E,D,M,R){for(var N=new Date($),V=$,L=N[E]();V<A&&V<=r[1];)R.push({value:V}),L+=C,N[D](L),V=N.getTime();R.push({value:V,notAdd:!0})}function l(C,$,A){var E=[],D=!$.length;if(!r4e(Dd(C),r[0],r[1],n)){D&&($=[{value:l4e(new Date(r[0]),C,n)},{value:r[1]}]);for(var M=0;M<$.length-1;M++){var R=$[M].value,N=$[M+1].value;if(R!==N){var V=void 0,L=void 0,z=void 0,B=!1;switch(C){case"year":V=Math.max(1,Math.round(e/Ui/365)),L=uA(n),z=IRe(n);break;case"half-year":case"quarter":case"month":V=a4e(e),L=Rd(n),z=bH(n);break;case"week":case"half-week":case"day":V=i4e(e),L=s1(n),z=_H(n),B=!0;break;case"half-day":case"quarter-day":case"hour":V=o4e(e),L=hv(n),z=OH(n);break;case"minute":V=uG(e,!0),L=l1(n),z=SH(n);break;case"second":V=uG(e,!1),L=u1(n),z=xH(n);break;case"millisecond":V=s4e(e),L=c1(n),z=wH(n);break}s(V,R,N,L,z,B,E),C==="year"&&A.length>1&&M===0&&A.unshift({value:A[0].value-V})}}for(var M=0;M<E.length;M++)A.push(E[M]);return E}}for(var u=[],c=[],f=0,d=0,h=0;h<a.length&&o++<i;++h){var g=Dd(a[h]);if(ARe(a[h])){l(a[h],u[u.length-1]||[],c);var v=a[h+1]?Dd(a[h+1]):null;if(g!==v){if(c.length){d=f,c.sort(function(C,$){return C.value-$.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 _=(r[1]-r[0])/e;if(f>_*1.5&&d>_/1.5||(u.push(m),f>_||t===a[h]))break}c=[]}}}process.env.NODE_ENV!=="production"&&o>=i&&Wt("Exceed safe limit.");for(var O=vt(ie(u,function(C){return vt(C,function($){return $.value>=r[0]&&$.value<=r[1]&&!$.notAdd})}),function(C){return C.length>0}),S=[],x=O.length-1,h=0;h<O.length;++h)for(var w=O[h],T=0;T<w.length;++T)S.push({value:w[T].value,level:x-h});S.sort(function(C,$){return C.value-$.value});for(var P=[],h=0;h<S.length;++h)(h===0||S[h].value!==S[h-1].value)&&P.push(S[h]);return P}vo.registerClass(OE);var cG=vo.prototype,Dv=ys.prototype,c4e=Ut,f4e=Math.floor,d4e=Math.ceil,U1=Math.pow,Da=Math.log,SE=function(t){U(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="log",n.base=10,n._originalScale=new ys,n._interval=0,n}return e.prototype.getTicks=function(n){var r=this._originalScale,i=this._extent,a=r.getExtent(),o=Dv.getTicks.call(this,n);return ie(o,function(s){var l=s.value,u=Ut(U1(this.base,l));return u=l===i[0]&&this._fixMin?X1(u,a[0]):u,u=l===i[1]&&this._fixMax?X1(u,a[1]):u,{value:u}},this)},e.prototype.setExtent=function(n,r){var i=Da(this.base);n=Da(Math.max(0,n))/i,r=Da(Math.max(0,r))/i,Dv.setExtent.call(this,n,r)},e.prototype.getExtent=function(){var n=this.base,r=cG.getExtent.call(this);r[0]=U1(n,r[0]),r[1]=U1(n,r[1]);var i=this._originalScale,a=i.getExtent();return this._fixMin&&(r[0]=X1(r[0],a[0])),this._fixMax&&(r[1]=X1(r[1],a[1])),r},e.prototype.unionExtent=function(n){this._originalScale.unionExtent(n);var r=this.base;n[0]=Da(n[0])/Da(r),n[1]=Da(n[1])/Da(r),cG.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 a=v7(i),o=n/i*a;for(o<=.5&&(a*=10);!isNaN(a)&&Math.abs(a)<1&&Math.abs(a)>0;)a*=10;var s=[Ut(d4e(r[0]/a)*a),Ut(f4e(r[1]/a)*a)];this._interval=a,this._niceExtent=s}},e.prototype.calcNiceExtent=function(n){Dv.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=Da(n)/Da(this.base),Q1(n,this._extent)},e.prototype.normalize=function(n){return n=Da(n)/Da(this.base),H1(n,this._extent)},e.prototype.scale=function(n){return n=j1(n,this._extent),U1(this.base,n)},e.type="log",e}(vo),fG=SE.prototype;fG.getMinorTicks=Dv.getMinorTicks,fG.getLabel=Dv.getLabel;function X1(t,e){return c4e(t,Pa(e))}vo.registerClass(SE);var h4e=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 a=n.get("min",!0);a==null&&(a=n.get("startValue",!0));var o=this._modelMinRaw=a;xe(o)?this._modelMinNum=Y1(e,o({min:r[0],max:r[1]})):o!=="dataMin"&&(this._modelMinNum=Y1(e,o));var s=this._modelMaxRaw=n.get("max",!0);if(xe(s)?this._modelMaxNum=Y1(e,s({min:r[0],max:r[1]})):s!=="dataMax"&&(this._modelMaxNum=Y1(e,s)),i)this._axisDataLen=n.getCategories().length;else{var l=n.get("boundaryGap"),u=re(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=[Ta(u[0],1),Ta(u[1],1)]}},t.prototype.calculate=function(){var e=this._isOrdinal,n=this._dataMin,r=this._dataMax,i=this._axisDataLen,a=this._boundaryGapInner,o=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-a[0]*o),l==null&&(l=e?i?i-1:NaN:r+a[1]*o),(s==null||!isFinite(s))&&(s=NaN),(l==null||!isFinite(l))&&(l=NaN);var f=Ys(s)||Ys(l)||e&&!i;this._needCrossZero&&(s>0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var d=this._determinedMin,h=this._determinedMax;return d!=null&&(s=d,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:f}},t.prototype.modifyDataMinMax=function(e,n){process.env.NODE_ENV!=="production"&&Pe(!this.frozen),this[g4e[e]]=n},t.prototype.setDeterminedMinMax=function(e,n){var r=p4e[e];process.env.NODE_ENV!=="production"&&Pe(!this.frozen&&this[r]==null),this[r]=n},t.prototype.freeze=function(){this.frozen=!0},t}(),p4e={min:"_determinedMin",max:"_determinedMax"},g4e={min:"_dataMin",max:"_dataMax"};function dG(t,e,n){var r=t.rawExtentInfo;return r||(r=new h4e(t,e,n),t.rawExtentInfo=r,r)}function Y1(t,e){return e==null?null:Ys(e)?NaN:t.parse(e)}function hG(t,e){var n=t.type,r=dG(t,e,t.getExtent()).calculate();t.setBlank(r.isBlank);var i=r.min,a=r.max,o=e.ecModel;if(o&&n==="time"){var s=nG("bar",o),l=!1;if(k(s,function(f){l=l||f.getBaseAxis()===e.axis}),l){var u=rG(s),c=v4e(i,a,e,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:r.minFixed,fixMax:r.maxFixed}}function v4e(t,e,n,r){var i=n.axis.getExtent(),a=i[1]-i[0],o=e4e(r,n.axis);if(o===void 0)return{min:t,max:e};var s=1/0;k(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;k(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,f=1-(s+l)/a,d=c/f-c;return e+=d*(l/u),t-=d*(s/u),{min:t,max:e}}function bc(t,e){var n=e,r=hG(t,n),i=r.extent,a=n.get("splitNumber");t instanceof SE&&(t.base=n.get("logBase"));var o=t.type,s=n.get("interval"),l=o==="interval"||o==="time";t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:a,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 Rv(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new G1({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new OE({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(vo.getClass(e)||ys)}}function m4e(t){var e=t.scale.getExtent(),n=e[0],r=e[1];return!(n>0&&r>0||n<0&&r<0)}function Yd(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,a){return t.scale.getFormattedLabel(i,a,r)}}(e):pe(e)?function(r){return function(i){var a=t.scale.getLabel(i),o=r.replace("{value}",a??"");return o}}(e):xe(e)?function(r){return function(i,a){return n!=null&&(a=i.value-n),r(xE(t,i),a,i.level!=null?{level:i.level}:null)}}(e):function(r){return t.scale.getLabel(r)}}function xE(t,e){return t.type==="category"?t.scale.getLabel(e):e.value}function y4e(t){var e=t.model,n=t.scale;if(!(!e.get(["axisLabel","show"])||n.isBlank())){var r,i,a=n.getExtent();n instanceof G1?i=n.count():(r=n.getTicks(),i=r.length);var o=t.getLabelModel(),s=Yd(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:a[0]+c},d=s(f,c),h=o.getTextRect(d),g=b4e(h,o.get("rotate")||0);l?l.union(g):l=g}return l}}function b4e(t,e){var n=e*Math.PI/180,r=t.width,i=t.height,a=r*Math.abs(Math.cos(n))+Math.abs(i*Math.sin(n)),o=r*Math.abs(Math.sin(n))+Math.abs(i*Math.cos(n)),s=new ze(t.x,t.y,a,o);return s}function wE(t){var e=t.get("interval");return e??"auto"}function pG(t){return t.type==="category"&&wE(t.getLabelModel())===0}function q1(t,e){var n={};return k(t.mapDimensionsAll(e),function(r){n[pE(t,r)]=!0}),Ue(n)}function _4e(t,e,n){e&&k(q1(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 qd=function(){function t(){}return t.prototype.getNeedCrossZero=function(){var e=this.option;return!e.scale},t.prototype.getCoordSysModel=function(){},t}();function O4e(t){return go(null,t)}var S4e={isDimensionStacked:ms,enableDataStack:K9,getStackedDimension:pE};function x4e(t,e){var n=e;e instanceof wt||(n=new wt(e));var r=Rv(n);return r.setExtent(t[0],t[1]),bc(r,n),r}function w4e(t){Kt(t,qd)}function C4e(t,e){return e=e||{},$t(t,null,null,e.state!=="normal")}const T4e=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:RLe,createList:O4e,createScale:x4e,createSymbol:rn,createTextStyle:C4e,dataStack:S4e,enableHoverEmphasis:cl,getECData:De,getLayoutRect:sn,mixinAxisModelCommonMethods:w4e},Symbol.toStringTag,{value:"Module"}));var P4e=1e-8;function gG(t,e){return Math.abs(t-e)<P4e}function _c(t,e,n){var r=0,i=t[0];if(!i)return!1;for(var a=1;a<t.length;a++){var o=t[a];r+=us(i[0],i[1],o[0],o[1],e,n),i=o}var s=t[0];return(!gG(i[0],s[0])||!gG(i[1],s[1]))&&(r+=us(i[0],i[1],s[0],s[1],e,n)),r!==0}var $4e=[];function CE(t,e){for(var n=0;n<t.length;n++)kn(t[n],t[n],e)}function vG(t,e,n,r){for(var i=0;i<t.length;i++){var a=t[i];r&&(a=r.project(a)),a&&isFinite(a[0])&&isFinite(a[1])&&(rs(e,e,a),is(n,n,a))}}function A4e(t){for(var e=0,n=0,r=0,i=t.length,a=t[i-1][0],o=t[i-1][1],s=0;s<i;s++){var l=t[s][0],u=t[s][1],c=a*u-l*o;e+=c,n+=(a+l)*c,r+=(o+u)*c,a=l,o=u}return e?[n/e/3,r/e/3,e]:[t[0][0]||0,t[0][1]||0]}var mG=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}(),bG=function(){function t(e){this.type="linestring",this.points=e}return t}(),_G=function(t){U(e,t);function e(n,r,i){var a=t.call(this,n)||this;return a.type="geoJSON",a.geometries=r,a._center=i&&[i[0],i[1]],a}return e.prototype.calcCenter=function(){for(var n=this.geometries,r,i=0,a=0;a<n.length;a++){var o=n[a],s=o.exterior,l=s&&s.length;l>i&&(r=o,i=l)}if(r)return A4e(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],a=[-1/0,-1/0],o=this.geometries;return k(o,function(s){s.type==="polygon"?vG(s.exterior,i,a,n):k(s.points,function(l){vG(l,i,a,n)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),r=new ze(i[0],i[1],a[0]-i[0],a[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 a=0,o=i.length;a<o;a++){var s=i[a];if(s.type==="polygon"){var l=s.exterior,u=s.interiors;if(_c(l,n[0],n[1])){for(var c=0;c<(u?u.length:0);c++)if(_c(u[c],n[0],n[1]))continue e;return!0}}}return!1},e.prototype.transformTo=function(n,r,i,a){var o=this.getBoundingRect(),s=o.width/o.height;i?a||(a=i/s):i=s*a;for(var l=new ze(n,r,i,a),u=o.calculateTransform(l),c=this.geometries,f=0;f<c.length;f++){var d=c[f];d.type==="polygon"?(CE(d.exterior,u),k(d.interiors,function(h){CE(h,u)})):k(d.points,function(h){CE(h,u)})}o=this._rect,o.copy(l),this._center=[o.x+o.width/2,o.y+o.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}(mG),E4e=function(t){U(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],a=Cg($4e),o=n;o&&!o.isGeoSVGGraphicRoot;)no(a,o.getLocalTransform(),a),o=o.parent;return Eu(a,a),kn(i,i,a),i},e}(mG);function M4e(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;n==null&&(n=1024);var r=e.features;return k(r,function(i){var a=i.geometry,o=a.encodeOffsets,s=a.coordinates;if(o)switch(a.type){case"LineString":a.coordinates=OG(s,o,n);break;case"Polygon":TE(s,o,n);break;case"MultiLineString":TE(s,o,n);break;case"MultiPolygon":k(s,function(l,u){return TE(l,o[u],n)})}}),e.UTF8Encoding=!1,e}function TE(t,e,n){for(var r=0;r<t.length;r++)t[r]=OG(t[r],e[r],n)}function OG(t,e,n){for(var r=[],i=e[0],a=e[1],o=0;o<t.length;o+=2){var s=t.charCodeAt(o)-64,l=t.charCodeAt(o+1)-64;s=s>>1^-(s&1),l=l>>1^-(l&1),s+=i,l+=a,i=s,a=l,r.push([s/n,l/n])}return r}function PE(t,e){return t=M4e(t),ie(vt(t.features,function(n){return n.geometry&&n.properties&&n.geometry.coordinates.length>0}),function(n){var r=n.properties,i=n.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new yG(o[0],o.slice(1)));break;case"MultiPolygon":k(i.coordinates,function(l){l[0]&&a.push(new yG(l[0],l.slice(1)))});break;case"LineString":a.push(new bG([i.coordinates]));break;case"MultiLineString":a.push(new bG(i.coordinates))}var s=new _G(r[e||"name"],a,r.cp);return s.properties=r,s})}const I4e=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:a2,asc:di,getPercentWithPrecision:rIe,getPixelPrecision:i2,getPrecision:Pa,getPrecisionSafe:C_,isNumeric:P_,isRadianAroundZero:gd,linearMap:mt,nice:s2,numericToNumber:ao,parseDate:hi,quantile:T_,quantity:v7,quantityExponent:jg,reformIntervals:l2,remRadian:o2,round:Ut},Symbol.toStringTag,{value:"Module"})),D4e=Object.freeze(Object.defineProperty({__proto__:null,format:dv,parse:hi},Symbol.toStringTag,{value:"Module"})),R4e=Object.freeze(Object.defineProperty({__proto__:null,Arc:G_,BezierCurve:av,BoundingRect:ze,Circle:hs,CompoundPath:Z_,Ellipse:H_,Group:Me,Image:Ln,IncrementalDisplayable:UQ,Line:Cn,LinearGradient:wd,Polygon:wr,Polyline:Cr,RadialGradient:j2,Rect:tt,Ring:iv,Sector:xr,Text:nt,clipPointsByRect:Y2,clipRectByRect:tH,createIcon:$d,extendPath:KQ,extendShape:qQ,getShapeClass:J_,getTransform:hl,initProps:Mt,makeImage:U2,makePath:sv,mergePath:gi,registerShape:Zi,resizePath:X2,updateProps:ot},Symbol.toStringTag,{value:"Module"})),k4e=Object.freeze(Object.defineProperty({__proto__:null,addCommas:cA,capitalFirst:NRe,encodeHTML:yr,formatTime:kRe,formatTpl:pA,getTextRect:DRe,getTooltipMarker:TH,normalizeCssArray:ac,toCamelCase:fA,truncateText:R7},Symbol.toStringTag,{value:"Module"})),N4e=Object.freeze(Object.defineProperty({__proto__:null,bind:ve,clone:$e,curry:ke,defaults:Te,each:k,extend:ne,filter:vt,indexOf:Fe,inherits:u$,isArray:re,isFunction:xe,isObject:we,isString:pe,map:ie,merge:Le,reduce:Vi},Symbol.toStringTag,{value:"Module"}));var kv=et();function SG(t,e){var n=ie(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 L4e(t){var e=t.getLabelModel().get("customValues");if(e){var n=Yd(t);return{labels:SG(t,e).map(function(r){var i={value:r};return{formattedLabel:n(i),rawLabel:t.scale.getLabel(i),tickValue:r}})}}return t.type==="category"?B4e(t):F4e(t)}function V4e(t,e){var n=t.getTickModel().get("customValues");return n?{ticks:SG(t,n)}:t.type==="category"?z4e(t,e):{ticks:ie(t.scale.getTicks(),function(r){return r.value})}}function B4e(t){var e=t.getLabelModel(),n=xG(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function xG(t,e){var n=wG(t,"labels"),r=wE(e),i=CG(n,r);if(i)return i;var a,o;return xe(r)?a=$G(t,r):(o=r==="auto"?W4e(t):r,a=PG(t,o)),TG(n,r,{labels:a,labelCategoryInterval:o})}function z4e(t,e){var n=wG(t,"ticks"),r=wE(e),i=CG(n,r);if(i)return i;var a,o;if((!e.get("show")||t.scale.isBlank())&&(a=[]),xe(r))a=$G(t,r,!0);else if(r==="auto"){var s=xG(t,t.getLabelModel());o=s.labelCategoryInterval,a=ie(s.labels,function(l){return l.tickValue})}else o=r,a=PG(t,o,!0);return TG(n,r,{ticks:a,tickCategoryInterval:o})}function F4e(t){var e=t.scale.getTicks(),n=Yd(t);return{labels:ie(e,function(r,i){return{level:r.level,formattedLabel:n(r,i),rawLabel:t.scale.getLabel(r),tickValue:r.value}})}}function wG(t,e){return kv(t)[e]||(kv(t)[e]=[])}function CG(t,e){for(var n=0;n<t.length;n++)if(t[n].key===e)return t[n].value}function TG(t,e,n){return t.push({key:e,value:n}),n}function W4e(t){var e=kv(t).autoInterval;return e??(kv(t).autoInterval=t.calculateCategoryInterval())}function Q4e(t){var e=H4e(t),n=Yd(t),r=(e.axisRotate-e.labelRotate)/180*Math.PI,i=t.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=1;o>40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[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,h=0;l<=a[1];l+=s){var g=0,v=0,m=Wg(n({value:l}),e.font,"center","top");g=m.width*1.3,v=m.height*1.3,d=Math.max(d,g,7),h=Math.max(h,v,7)}var y=d/c,b=h/f;isNaN(y)&&(y=1/0),isNaN(b)&&(b=1/0);var _=Math.max(0,Math.floor(Math.min(y,b))),O=kv(t.model),S=t.getExtent(),x=O.lastAutoInterval,w=O.lastTickCount;return x!=null&&w!=null&&Math.abs(x-_)<=1&&Math.abs(w-o)<=1&&x>_&&O.axisExtent0===S[0]&&O.axisExtent1===S[1]?_=x:(O.lastTickCount=o,O.lastAutoInterval=_,O.axisExtent0=S[0],O.axisExtent1=S[1]),_}function H4e(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 PG(t,e,n){var r=Yd(t),i=t.scale,a=i.getExtent(),o=t.getLabelModel(),s=[],l=Math.max((e||0)+1,1),u=a[0],c=i.count();u!==0&&l>1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var f=pG(t),d=o.get("showMinLabel")||f,h=o.get("showMaxLabel")||f;d&&u!==a[0]&&v(a[0]);for(var g=u;g<=a[1];g+=l)v(g);h&&g-l!==a[1]&&v(a[1]);function v(m){var y={value:m};s.push(n?m:{formattedLabel:r(y),rawLabel:i.getLabel(y),tickValue:m})}return s}function $G(t,e,n){var r=t.scale,i=Yd(t),a=[];return k(r.getTicks(),function(o){var s=r.getLabel(o),l=o.value;e(o.value,s)&&a.push(n?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var AG=[0,1],j4e=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 i2(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(),EG(r,i.count())),mt(e,AG,r,n)},t.prototype.coordToData=function(e,n){var r=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(r=r.slice(),EG(r,i.count()));var a=mt(e,r,AG,n);return this.scale.scale(a)},t.prototype.pointToData=function(e,n){},t.prototype.getTicksCoords=function(e){e=e||{};var n=e.tickModel||this.getTickModel(),r=V4e(this,n),i=r.ticks,a=ie(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=n.get("alignWithLabel");return G4e(this,a,o,e.clamp),a},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=ie(r,function(a){return ie(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},t.prototype.getViewLabels=function(){return L4e(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 Q4e(this)},t}();function EG(t,e){var n=t[1]-t[0],r=e,i=n/r/2;t[0]+=i,t[1]-=i}function G4e(t,e,n,r){var i=e.length;if(!t.onBand||n||!i)return;var a=t.getExtent(),o,s;if(i===1)e[0].coord=a[0],o=e[1]={coord:a[1]};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;k(e,function(h){h.coord-=u/2});var c=t.scale.getExtent();s=1+c[1]-e[i-1].tickValue,o={coord:e[i-1].coord+u*s},e.push(o)}var f=a[0]>a[1];d(e[0].coord,a[0])&&(r?e[0].coord=a[0]:e.shift()),r&&d(a[0],e[0].coord)&&e.unshift({coord:a[0]}),d(a[1],o.coord)&&(r?o.coord=a[1]:e.pop()),r&&d(o.coord,a[1])&&e.push({coord:a[1]});function d(h,g){return h=Ut(h),g=Ut(g),f?h>g:h<g}}const ea=j4e;function Z4e(t){var e=He.extend(t);return He.registerClass(e),e}function U4e(t){var e=At.extend(t);return At.registerClass(e),e}function X4e(t){var e=Ct.extend(t);return Ct.registerClass(e),e}function Y4e(t){var e=_t.extend(t);return _t.registerClass(e),e}var Nv=Math.PI*2,Oc=co.CMD,q4e=["top","right","bottom","left"];function K4e(t,e,n,r,i){var a=n.width,o=n.height;switch(t){case"top":r.set(n.x+a/2,n.y-e),i.set(0,-1);break;case"bottom":r.set(n.x+a/2,n.y+o+e),i.set(0,1);break;case"left":r.set(n.x-e,n.y+o/2),i.set(-1,0);break;case"right":r.set(n.x+a+e,n.y+o/2),i.set(1,0);break}}function J4e(t,e,n,r,i,a,o,s,l){o-=t,s-=e;var u=Math.sqrt(o*o+s*s);o/=u,s/=u;var c=o*n+t,f=s*n+e;if(Math.abs(r-i)%Nv<1e-4)return l[0]=c,l[1]=f,u-n;if(a){var d=r;r=pi(i),i=pi(d)}else r=pi(r),i=pi(i);r>i&&(i+=Nv);var h=Math.atan2(s,o);if(h<0&&(h+=Nv),h>=r&&h<=i||h+Nv>=r&&h+Nv<=i)return l[0]=c,l[1]=f,u-n;var g=n*Math.cos(r)+t,v=n*Math.sin(r)+e,m=n*Math.cos(i)+t,y=n*Math.sin(i)+e,b=(g-o)*(g-o)+(v-s)*(v-s),_=(m-o)*(m-o)+(y-s)*(y-s);return b<_?(l[0]=g,l[1]=v,Math.sqrt(b)):(l[0]=m,l[1]=y,Math.sqrt(_))}function K1(t,e,n,r,i,a,o,s){var l=i-t,u=a-e,c=n-t,f=r-e,d=Math.sqrt(c*c+f*f);c/=d,f/=d;var h=l*c+u*f,g=h/d;s&&(g=Math.min(Math.max(g,0),1)),g*=d;var v=o[0]=t+g*c,m=o[1]=e+g*f;return Math.sqrt((v-i)*(v-i)+(m-a)*(m-a))}function MG(t,e,n,r,i,a,o){n<0&&(t=t+n,n=-n),r<0&&(e=e+r,r=-r);var s=t+n,l=e+r,u=o[0]=Math.min(Math.max(i,t),s),c=o[1]=Math.min(Math.max(a,e),l);return Math.sqrt((u-i)*(u-i)+(c-a)*(c-a))}var Ra=[];function e8e(t,e,n){var r=MG(e.x,e.y,e.width,e.height,t.x,t.y,Ra);return n.set(Ra[0],Ra[1]),r}function t8e(t,e,n){for(var r=0,i=0,a=0,o=0,s,l,u=1/0,c=e.data,f=t.x,d=t.y,h=0;h<c.length;){var g=c[h++];h===1&&(r=c[h],i=c[h+1],a=r,o=i);var v=u;switch(g){case Oc.M:a=c[h++],o=c[h++],r=a,i=o;break;case Oc.L:v=K1(r,i,c[h],c[h+1],f,d,Ra,!0),r=c[h++],i=c[h++];break;case Oc.C:v=RW(r,i,c[h++],c[h++],c[h++],c[h++],c[h],c[h+1],f,d,Ra),r=c[h++],i=c[h++];break;case Oc.Q:v=NW(r,i,c[h++],c[h++],c[h],c[h+1],f,d,Ra),r=c[h++],i=c[h++];break;case Oc.A:var m=c[h++],y=c[h++],b=c[h++],_=c[h++],O=c[h++],S=c[h++];h+=1;var x=!!(1-c[h++]);s=Math.cos(O)*b+m,l=Math.sin(O)*_+y,h<=1&&(a=s,o=l);var w=(f-m)*_/b+m;v=J4e(m,y,_,O,O+S,x,w,d,Ra),r=Math.cos(O+S)*b+m,i=Math.sin(O+S)*_+y;break;case Oc.R:a=r=c[h++],o=i=c[h++];var T=c[h++],P=c[h++];v=MG(a,o,T,P,f,d,Ra);break;case Oc.Z:v=K1(r,i,a,o,f,d,Ra,!0),r=a,i=o;break}v<u&&(u=v,n.set(Ra[0],Ra[1]))}return u}var ka=new Be,Et=new Be,an=new Be,yo=new Be,bo=new Be;function IG(t,e){if(t){var n=t.getTextGuideLine(),r=t.getTextContent();if(r&&n){var i=t.textGuideLineConfig||{},a=[[0,0],[0,0],[0,0]],o=i.candidates||q4e,s=r.getBoundingRect().clone();s.applyTransform(r.getComputedTransform());var l=1/0,u=i.anchor,c=t.getComputedTransform(),f=c&&Eu([],c),d=e.get("length2")||0;u&&an.copy(u);for(var h=0;h<o.length;h++){var g=o[h];K4e(g,0,s,ka,yo),Be.scaleAndAdd(Et,ka,yo,d),Et.transform(f);var v=t.getBoundingRect(),m=u?u.distance(Et):t instanceof Ge?t8e(Et,t.path,an):e8e(Et,v,an);m<l&&(l=m,Et.transform(c),an.transform(c),an.toArray(a[0]),Et.toArray(a[1]),ka.toArray(a[2]))}DG(a,e.get("minTurnAngle")),n.setShape({points:a})}}}var J1=[],$r=new Be;function DG(t,e){if(e<=180&&e>0){e=e/180*Math.PI,ka.fromArray(t[0]),Et.fromArray(t[1]),an.fromArray(t[2]),Be.sub(yo,ka,Et),Be.sub(bo,an,Et);var n=yo.len(),r=bo.len();if(!(n<.001||r<.001)){yo.scale(1/n),bo.scale(1/r);var i=yo.dot(bo),a=Math.cos(e);if(a<i){var o=K1(Et.x,Et.y,an.x,an.y,ka.x,ka.y,J1,!1);$r.fromArray(J1),$r.scaleAndAdd(bo,o/Math.tan(Math.PI-e));var s=an.x!==Et.x?($r.x-Et.x)/(an.x-Et.x):($r.y-Et.y)/(an.y-Et.y);if(isNaN(s))return;s<0?Be.copy($r,Et):s>1&&Be.copy($r,an),$r.toArray(t[1])}}}}function n8e(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,ka.fromArray(t[0]),Et.fromArray(t[1]),an.fromArray(t[2]),Be.sub(yo,Et,ka),Be.sub(bo,an,Et);var r=yo.len(),i=bo.len();if(!(r<.001||i<.001)){yo.scale(1/r),bo.scale(1/i);var a=yo.dot(e),o=Math.cos(n);if(a<o){var s=K1(Et.x,Et.y,an.x,an.y,ka.x,ka.y,J1,!1);$r.fromArray(J1);var l=Math.PI/2,u=Math.acos(bo.dot(e)),c=l+u-n;if(c>=l)Be.copy($r,an);else{$r.scaleAndAdd(bo,s/Math.tan(Math.PI/2-c));var f=an.x!==Et.x?($r.x-Et.x)/(an.x-Et.x):($r.y-Et.y)/(an.y-Et.y);if(isNaN(f))return;f<0?Be.copy($r,Et):f>1&&Be.copy($r,an)}$r.toArray(t[1])}}}}function $E(t,e,n,r){var i=n==="normal",a=i?t:t.ensureState(n);a.ignore=e;var o=r.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=r.getModel("lineStyle").getLineStyle();i?t.useStyle(s):a.style=s}function r8e(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=ns(r[0],r[1]),a=ns(r[1],r[2]);if(!i||!a){t.lineTo(r[1][0],r[1][1]),t.lineTo(r[2][0],r[2][1]);return}var o=Math.min(i,a)*n,s=wg([],r[1],r[0],o/i),l=wg([],r[1],r[2],o/a),u=wg([],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 AE(t,e,n){var r=t.getTextGuideLine(),i=t.getTextContent();if(!i){r&&t.removeTextGuideLine();return}for(var a=e.normal,o=a.get("show"),s=i.ignore,l=0;l<Kg.length;l++){var u=Kg[l],c=e[u],f=u==="normal";if(c){var d=c.get("show"),h=f?s:Re(i.states[u]&&i.states[u].ignore,s);if(h||!Re(d,o)){var g=f?r:r&&r.states[u];g&&(g.ignore=!0),r&&$E(r,!0,u,c);continue}r||(r=new Cr,t.setTextGuideLine(r),!f&&(s||!o)&&$E(r,!0,"normal",e.normal),t.stateProxy&&(r.stateProxy=t.stateProxy)),$E(r,!1,u,c)}}if(r){Te(r.style,n),r.style.fill=null;var v=a.get("showAbove"),m=t.textGuideLineConfig=t.textGuideLineConfig||{};m.showAbove=v||!1,r.buildPath=r8e}}function EE(t,e){e=e||"labelLine";for(var n={normal:t.getModel(e)},r=0;r<Sr.length;r++){var i=Sr[r];n[i]=t.getModel([i,e])}return n}function RG(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(!r.defaultAttr.ignore){var i=r.label,a=i.getComputedTransform(),o=i.getBoundingRect(),s=!a||a[1]<1e-5&&a[2]<1e-5,l=i.style.margin||0,u=o.clone();u.applyTransform(a),u.x-=l/2,u.y-=l/2,u.width+=l,u.height+=l;var c=s?new Y_(o,a):null;e.push({label:i,labelLine:r.labelLine,rect:u,localRect:o,obb:c,priority:r.priority,defaultAttr:r.defaultAttr,layoutOption:r.computedLayoutOption,axisAligned:s,transform:a})}}return e}function kG(t,e,n,r,i,a){var o=t.length;if(o<2)return;t.sort(function(T,P){return T.rect[e]-P.rect[e]});for(var s=0,l,u=!1,c=0,f=0;f<o;f++){var d=t[f],h=d.rect;l=h[e]-s,l<0&&(h[e]-=l,d.label[e]-=l,u=!0);var g=Math.max(-l,0);c+=g,s=h[e]+h[n]}c>0&&a&&S(-c/o,0,o);var v=t[0],m=t[o-1],y,b;_(),y<0&&x(-y,.8),b<0&&x(b,.8),_(),O(y,b,1),O(b,y,-1),_(),y<0&&w(-y),b<0&&w(b);function _(){y=v.rect[e]-r,b=i-m.rect[e]-m.rect[n]}function O(T,P,C){if(T<0){var $=Math.min(P,-T);if($>0){S($*C,0,o);var A=$+T;A<0&&x(-A*C,1)}else x(-T*C,1)}}function S(T,P,C){T!==0&&(u=!0);for(var $=P;$<C;$++){var A=t[$],E=A.rect;E[e]+=T,A.label[e]+=T}}function x(T,P){for(var C=[],$=0,A=1;A<o;A++){var E=t[A-1].rect,D=Math.max(t[A].rect[e]-E[e]-E[n],0);C.push(D),$+=D}if($){var M=Math.min(Math.abs(T)/$,P);if(T>0)for(var A=0;A<o-1;A++){var R=C[A]*M;S(R,0,A+1)}else for(var A=o-1;A>0;A--){var R=C[A-1]*M;S(-R,A,o)}}}function w(T){var P=T<0?-1:1;T=Math.abs(T);for(var C=Math.ceil(T/(o-1)),$=0;$<o-1;$++)if(P>0?S(C,0,$+1):S(-C,o-$-1,o),T-=C,T<=0)return}return u}function i8e(t,e,n,r){return kG(t,"x","width",e,n,r)}function NG(t,e,n,r){return kG(t,"y","height",e,n,r)}function LG(t){var e=[];t.sort(function(v,m){return m.priority-v.priority});var n=new ze(0,0,0,0);function r(v){if(!v.ignore){var m=v.ensureState("emphasis");m.ignore==null&&(m.ignore=!1)}v.ignore=!0}for(var i=0;i<t.length;i++){var a=t[i],o=a.axisAligned,s=a.localRect,l=a.transform,u=a.label,c=a.labelLine;n.copy(a.rect),n.width-=.1,n.height-=.1,n.x+=.05,n.y+=.05;for(var f=a.obb,d=!1,h=0;h<e.length;h++){var g=e[h];if(n.intersect(g.rect)){if(o&&g.axisAligned){d=!0;break}if(g.obb||(g.obb=new Y_(g.localRect,g.transform)),f||(f=new Y_(s,l)),f.intersect(g.obb)){d=!0;break}}}d?(r(u),c&&r(c)):(u.attr("ignore",a.defaultAttr.ignore),c&&c.attr("ignore",a.defaultAttr.labelGuideIgnore),e.push(a))}}function a8e(t){if(t){for(var e=[],n=0;n<t.length;n++)e.push(t[n].slice());return e}}function o8e(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:a8e(r&&r.shape.points)}}var VG=["align","verticalAlign","width","height","fontSize"],Ar=new ss,ME=et(),s8e=et();function eO(t,e,n){for(var r=0;r<n.length;r++){var i=n[r];e[i]!=null&&(t[i]=e[i])}}var tO=["x","y","rotation"],l8e=function(){function t(){this._labelList=[],this._chartViewList=[]}return t.prototype.clearLabels=function(){this._labelList=[],this._chartViewList=[]},t.prototype._addLabel=function(e,n,r,i,a){var o=i.style,s=i.__hostTarget,l=s.textConfig||{},u=i.getComputedTransform(),c=i.getBoundingRect().plain();ze.applyTransform(c,c,u),u?Ar.setLocalTransform(u):(Ar.x=Ar.y=Ar.rotation=Ar.originX=Ar.originY=0,Ar.scaleX=Ar.scaleY=1),Ar.rotation=pi(Ar.rotation);var f=i.__hostTarget,d;if(f){d=f.getBoundingRect().plain();var h=f.getComputedTransform();ze.applyTransform(d,d,h)}var g=d&&f.getTextGuideLine();this._labelList.push({label:i,labelLine:g,seriesModel:r,dataIndex:e,dataType:n,layoutOption:a,computedLayoutOption:null,rect:c,hostRect:d,priority:d?d.width*d.height:0,defaultAttr:{ignore:i.ignore,labelGuideIgnore:g&&g.ignore,x:Ar.x,y:Ar.y,scaleX:Ar.scaleX,scaleY:Ar.scaleY,rotation:Ar.rotation,style:{x:o.x,y:o.y,align:o.align,verticalAlign:o.verticalAlign,width:o.width,height:o.height,fontSize:o.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");(xe(i)||Ue(i).length)&&e.group.traverse(function(a){if(a.ignore)return!0;var o=a.getTextContent(),s=De(a);o&&!o.disableLabelLayout&&n._addLabel(s.dataIndex,s.dataType,r,o,i)})},t.prototype.updateLayoutConfig=function(e){var n=e.getWidth(),r=e.getHeight();function i(_,O){return function(){IG(_,O)}}for(var a=0;a<this._labelList.length;a++){var o=this._labelList[a],s=o.label,l=s.__hostTarget,u=o.defaultAttr,c=void 0;xe(o.layoutOption)?c=o.layoutOption(o8e(o,l)):c=o.layoutOption,c=c||{},o.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=he(c.x,n),s.setStyle("x",0),d=!0):(s.x=u.x,s.setStyle("x",u.style.x)),c.y!=null?(s.y=he(c.y,r),s.setStyle("y",0),d=!0):(s.y=u.y,s.setStyle("y",u.style.y)),c.labelLinePoints){var h=l.getTextGuideLine();h&&(h.setShape({points:c.labelLinePoints}),d=!1)}var g=ME(s);g.needsUpdateLabelLine=d,s.rotation=c.rotate!=null?c.rotate*f:u.rotation,s.scaleX=u.scaleX,s.scaleY=u.scaleY;for(var v=0;v<VG.length;v++){var m=VG[v];s.setStyle(m,c[m]!=null?c[m]:u.style[m])}if(c.draggable){if(s.draggable=!0,s.cursor="move",l){var y=o.seriesModel;if(o.dataIndex!=null){var b=o.seriesModel.getData(o.dataType);y=b.getItemModel(o.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=RG(this._labelList),a=vt(i,function(l){return l.layoutOption.moveOverlap==="shiftX"}),o=vt(i,function(l){return l.layoutOption.moveOverlap==="shiftY"});i8e(a,0,n),NG(o,0,r);var s=vt(i,function(l){return l.layoutOption.hideOverlap});LG(s)},t.prototype.processLabelsOverall=function(){var e=this;k(this._chartViewList,function(n){var r=n.__model,i=n.ignoreLabelLineUpdate,a=r.isAnimationEnabled();n.group.traverse(function(o){if(o.ignore&&!o.forceLabelAnimation)return!0;var s=!i,l=o.getTextContent();!s&&l&&(s=ME(l).needsUpdateLabelLine),s&&e._updateLabelLine(o,r),a&&e._animateLabels(o,r)})})},t.prototype._updateLabelLine=function(e,n){var r=e.getTextContent(),i=De(e),a=i.dataIndex;if(r&&a!=null){var o=n.getData(i.dataType),s=o.getItemModel(a),l={},u=o.getItemVisual(a,"style");if(u){var c=o.getVisual("drawType");l.stroke=u[c]}var f=s.getModel("labelLine");AE(e,EE(s),l),IG(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&&!Td(e))){var a=ME(r),o=a.oldLayout,s=De(e),l=s.dataIndex,u={x:r.x,y:r.y,rotation:r.rotation},c=n.getData(s.dataType);if(o){r.attr(o);var d=e.prevStates;d&&(Fe(d,"select")>=0&&r.attr(a.oldLayoutSelect),Fe(d,"emphasis")>=0&&r.attr(a.oldLayoutEmphasis)),ot(r,u,n,l)}else if(r.attr(u),!Ed(r).valueAnimation){var f=Re(r.style.opacity,1);r.style.opacity=0,Mt(r,{style:{opacity:f}},n,l)}if(a.oldLayout=u,r.states.select){var h=a.oldLayoutSelect={};eO(h,u,tO),eO(h,r.states.select,tO)}if(r.states.emphasis){var g=a.oldLayoutEmphasis={};eO(g,u,tO),eO(g,r.states.emphasis,tO)}cH(r,l,c,n,n)}if(i&&!i.ignore&&!i.invisible){var a=s8e(i),o=a.oldLayout,v={points:i.shape.points};o?(i.attr({shape:o}),ot(i,{shape:v},n)):(i.setShape(v),i.style.strokePercent=0,Mt(i,{style:{strokePercent:1}},n)),a.oldLayout=v}},t}(),IE=et();function u8e(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,n,r){var i=IE(n).labelManager;i||(i=IE(n).labelManager=new l8e),i.clearLabels()}),t.registerUpdateLifecycle("series:layoutlabels",function(e,n,r){var i=IE(n).labelManager;r.updatedSeries.forEach(function(a){i.addLabelsOfSeries(n.getViewOfSeriesModel(a))}),i.updateLayoutConfig(n),i.layout(n),i.processLabelsOverall()})}var DE=Math.sin,RE=Math.cos,BG=Math.PI,Sc=Math.PI*2,c8e=180/BG,zG=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,a,o){this._add("C",e,n,r,i,a,o)},t.prototype.quadraticCurveTo=function(e,n,r,i){this._add("Q",e,n,r,i)},t.prototype.arc=function(e,n,r,i,a,o){this.ellipse(e,n,r,r,0,i,a,o)},t.prototype.ellipse=function(e,n,r,i,a,o,s,l){var u=s-o,c=!l,f=Math.abs(u),d=al(f-Sc)||(c?u>=Sc:-u>=Sc),h=u>0?u%Sc:u%Sc+Sc,g=!1;d?g=!0:al(f)?g=!1:g=h>=BG==!!c;var v=e+r*RE(o),m=n+i*DE(o);this._start&&this._add("M",v,m);var y=Math.round(a*c8e);if(d){var b=1/this._p,_=(c?1:-1)*(Sc-b);this._add("A",r,i,y,1,+c,e+r*RE(o+_),n+i*DE(o+_)),b>.01&&this._add("A",r,i,y,0,+c,v,m)}else{var O=e+r*RE(s),S=n+i*DE(s);this._add("A",r,i,y,+g,+c,O,S)}},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,a,o,s,l,u){for(var c=[],f=this._p,d=1;d<arguments.length;d++){var h=arguments[d];if(isNaN(h)){this._invalid=!0;return}c.push(Math.round(h*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}(),kE="none",f8e=Math.round;function d8e(t){var e=t.fill;return e!=null&&e!==kE}function h8e(t){var e=t.stroke;return e!=null&&e!==kE}var NE=["lineCap","miterLimit","lineJoin"],p8e=ie(NE,function(t){return"stroke-"+t.toLowerCase()});function g8e(t,e,n,r){var i=e.opacity==null?1:e.opacity;if(n instanceof Ln){t("opacity",i);return}if(d8e(e)){var a=Vg(e.fill);t("fill",a.color);var o=e.fillOpacity!=null?e.fillOpacity*a.opacity*i:a.opacity*i;o<1&&t("fill-opacity",o)}else t("fill",kE);if(h8e(e)){var s=Vg(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=WA(n),h=d[0],g=d[1];h&&(g=f8e(g||0),t("stroke-dasharray",h.join(",")),(g||r)&&t("stroke-dashoffset",g))}for(var v=0;v<NE.length;v++){var m=NE[v];if(e[m]!==N_[m]){var y=e[m]||N_[m];y&&t(p8e[v],y)}}}}var FG="http://www.w3.org/2000/svg",WG="http://www.w3.org/1999/xlink",v8e="http://www.w3.org/2000/xmlns/",m8e="http://www.w3.org/XML/1998/namespace",QG="ecmeta_";function HG(t){return document.createElementNS(FG,t)}function $n(t,e,n,r,i){return{tag:t,attrs:n||{},children:r,text:i,key:e}}function y8e(t,e){var n=[];if(e)for(var r in e){var i=e[r],a=r;i!==!1&&(i!==!0&&i!=null&&(a+='="'+i+'"'),n.push(a))}return"<"+t+" "+n.join(" ")+">"}function b8e(t){return"</"+t+">"}function LE(t,e){e=e||{};var n=e.newline?`
  314. `:"";function r(i){var a=i.children,o=i.tag,s=i.attrs,l=i.text;return y8e(o,s)+(o!=="style"?yr(l):l||"")+(a?""+n+ie(a,function(u){return r(u)}).join(n)+n:"")+b8e(o)}return r(t)}function _8e(t,e,n){n=n||{};var r=n.newline?`
  315. `:"",i=" {"+r,a=r+"}",o=ie(Ue(t),function(l){return l+i+ie(Ue(t[l]),function(u){return u+":"+t[l][u]+";"}).join(r)+a}).join(r),s=ie(Ue(e),function(l){return"@keyframes "+l+i+ie(Ue(e[l]),function(u){return u+i+ie(Ue(e[l][u]),function(c){var f=e[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(r)+a}).join(r)+a}).join(r);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(r)}function VE(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function jG(t,e,n,r){return $n("svg","root",{width:t,height:e,xmlns:FG,"xmlns:xlink":WG,version:"1.1",baseProfile:"full",viewBox:r?"0 0 "+t+" "+e:!1},n)}var O8e=0;function GG(){return O8e++}var ZG={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"},xc="transform-origin";function S8e(t,e,n){var r=ne({},t.shape);ne(r,e),t.buildPath(n,r);var i=new zG;return i.reset(GW(t)),n.rebuildPath(i,1),i.generateStr(),i.getStr()}function x8e(t,e){var n=e.originX,r=e.originY;(n||r)&&(t[xc]=n+"px "+r+"px")}var w8e={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function UG(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function C8e(t,e,n){var r=t.shape.paths,i={},a,o;if(k(r,function(l){var u=VE(n.zrId);u.animation=!0,nO(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,d=Ue(c),h=d.length;if(h){o=d[h-1];var g=c[o];for(var v in g){var m=g[v];i[v]=i[v]||{d:""},i[v].d+=m.d||""}for(var y in f){var b=f[y].animation;b.indexOf(o)>=0&&(a=b)}}}),!!a){e.d=!1;var s=UG(i,n);return a.replace(o,s)}}function XG(t){return pe(t)?ZG[t]?"cubic-bezier("+ZG[t]+")":$$(t)?t:"":""}function nO(t,e,n,r){var i=t.animators,a=i.length,o=[];if(t instanceof Z_){var s=C8e(t,e,n);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u<a;u++){var c=i[u],f=[c.getMaxTime()/1e3+"s"],d=XG(c.getClip().easing),h=c.getDelay();d?f.push(d):f.push("linear"),h&&f.push(h/1e3+"s"),c.getLoop()&&f.push("infinite");var g=f.join(" ");l[g]=l[g]||[g,[]],l[g][1].push(c)}function v(b){var _=b[1],O=_.length,S={},x={},w={},T="animation-timing-function";function P(ee,G,W){for(var Q=ee.getTracks(),J=ee.getMaxTime(),ae=0;ae<Q.length;ae++){var oe=Q[ae];if(oe.needsAnimate()){var Se=oe.keyframes,_e=oe.propName;if(W&&(_e=W(_e)),_e)for(var ge=0;ge<Se.length;ge++){var de=Se[ge],se=Math.round(de.time/J*100)+"%",ye=XG(de.easing),Ie=de.rawValue;(pe(Ie)||it(Ie))&&(G[se]=G[se]||{},G[se][_e]=de.rawValue,ye&&(G[se][T]=ye))}}}}for(var C=0;C<O;C++){var $=_[C],A=$.targetName;A?A==="shape"&&P($,x):!r&&P($,S)}for(var E in S){var D={};a7(D,t),ne(D,S[E]);var M=ZW(D),R=S[E][T];w[E]=M?{transform:M}:{},x8e(w[E],D),R&&(w[E][T]=R)}var N,V=!0;for(var E in x){w[E]=w[E]||{};var L=!N,R=x[E][T];L&&(N=new co);var z=N.len();N.reset(),w[E].d=S8e(t,x[E],N);var B=N.len();if(!L&&z!==B){V=!1;break}R&&(w[E][T]=R)}if(!V)for(var E in w)delete w[E].d;if(!r)for(var C=0;C<O;C++){var $=_[C],A=$.targetName;A==="style"&&P($,w,function(Q){return w8e[Q]})}for(var F=Ue(w),j=!0,K,C=1;C<F.length;C++){var q=F[C-1],te=F[C];if(w[q][xc]!==w[te][xc]){j=!1;break}K=w[q][xc]}if(j&&K){for(var E in w)w[E][xc]&&delete w[E][xc];e[xc]=K}if(vt(F,function(ee){return Ue(w[ee]).length>0}).length){var X=UG(w,n);return X+" "+b[0]+" both"}}for(var m in l){var s=v(l[m]);s&&o.push(s)}if(o.length){var y=n.zrId+"-cls-"+GG();n.cssNodes["."+y]={animation:o.join(",")},e.class=y}}function T8e(t,e,n){if(!t.ignore)if(t.isSilent()){var r={"pointer-events":"none"};YG(r,e,n)}else{var i=t.states.emphasis&&t.states.emphasis.style?t.states.emphasis.style:{},a=i.fill;if(!a){var o=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||o;l&&(a=f_(l))}var u=i.lineWidth;if(u){var c=!i.strokeNoScale&&t.transform?t.transform[0]:1;u=u/c}var r={cursor:"pointer"};a&&(r.fill=a),i.stroke&&(r.stroke=i.stroke),u&&(r["stroke-width"]=u),YG(r,e,n)}}function YG(t,e,n,r){var i=JSON.stringify(t),a=n.cssStyleCache[i];a||(a=n.zrId+"-cls-"+GG(),n.cssStyleCache[i]=a,n.cssNodes["."+a+":hover"]=t),e.class=e.class?e.class+" "+a:a}var Lv=Math.round;function qG(t){return t&&pe(t.src)}function KG(t){return t&&xe(t.toDataURL)}function BE(t,e,n,r){g8e(function(i,a){var o=i==="fill"||i==="stroke";o&&jW(a)?iZ(e,t,i,r):o&&k$(a)?aZ(n,t,i,r):o&&a==="none"?t[i]="transparent":t[i]=a},e,n,!1),D8e(n,t,r)}function zE(t,e){var n=f7(e);n&&(n.each(function(r,i){r!=null&&(t[(QG+i).toLowerCase()]=r+"")}),e.isSilent()&&(t[QG+"silent"]="true"))}function JG(t){return al(t[0]-1)&&al(t[1])&&al(t[2])&&al(t[3]-1)}function P8e(t){return al(t[4])&&al(t[5])}function FE(t,e,n){if(e&&!(P8e(e)&&JG(e))){var r=1e4;t.transform=JG(e)?"translate("+Lv(e[4]*r)/r+" "+Lv(e[5]*r)/r+")":_Me(e)}}function eZ(t,e,n){for(var r=t.points,i=[],a=0;a<r.length;a++)i.push(Lv(r[a][0]*n)/n),i.push(Lv(r[a][1]*n)/n);e.points=i.join(" ")}function tZ(t){return!t.smooth}function $8e(t){var e=ie(t,function(n){return typeof n=="string"?[n,n]:n});return function(n,r,i){for(var a=0;a<e.length;a++){var o=e[a],s=n[o[0]];s!=null&&(r[o[1]]=Lv(s*i)/i)}}}var A8e={circle:[$8e(["cx","cy","r"])],polyline:[eZ,tZ],polygon:[eZ,tZ]};function E8e(t){for(var e=t.animators,n=0;n<e.length;n++)if(e[n].targetName==="shape")return!0;return!1}function nZ(t,e){var n=t.style,r=t.shape,i=A8e[t.type],a={},o=e.animation,s="path",l=t.style.strokePercent,u=e.compress&&GW(t)||4;if(i&&!e.willUpdate&&!(i[1]&&!i[1](r))&&!(o&&E8e(t))&&!(l<1)){s=t.type;var c=Math.pow(10,u);i[0](r,a,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 h=d.getVersion(),g=t,v=g.__svgPathBuilder;(g.__svgPathVersion!==h||!v||l!==g.__svgPathStrokePercent)&&(v||(v=g.__svgPathBuilder=new zG),v.reset(u),d.rebuildPath(v,l),v.generateStr(),g.__svgPathVersion=h,g.__svgPathStrokePercent=l),a.d=v.getStr()}return FE(a,t.transform),BE(a,n,t,e),zE(a,t),e.animation&&nO(t,a,e),e.emphasis&&T8e(t,a,e),$n(s,t.id+"",a)}function M8e(t,e){var n=t.style,r=n.image;if(r&&!pe(r)&&(qG(r)?r=r.src:KG(r)&&(r=r.toDataURL())),!!r){var i=n.x||0,a=n.y||0,o=n.width,s=n.height,l={href:r,width:o,height:s};return i&&(l.x=i),a&&(l.y=a),FE(l,t.transform),BE(l,n,t,e),zE(l,t),e.animation&&nO(t,l,e),$n("image",t.id+"",l)}}function I8e(t,e){var n=t.style,r=n.text;if(r!=null&&(r+=""),!(!r||isNaN(n.x)||isNaN(n.y))){var i=n.font||Us,a=n.x||0,o=SMe(n.y||0,S_(i),n.textBaseline),s=OMe[n.textAlign]||n.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(nQ(n)){var u="",c=n.fontStyle,f=eQ(n.fontSize);if(!parseFloat(f))return;var d=n.fontFamily||tW,h=n.fontWeight;u+="font-size:"+f+";font-family:"+d+";",c&&c!=="normal"&&(u+="font-style:"+c+";"),h&&h!=="normal"&&(u+="font-weight:"+h+";"),l.style=u}else l.style="font: "+i;return r.match(/\s/)&&(l["xml:space"]="preserve"),a&&(l.x=a),o&&(l.y=o),FE(l,t.transform),BE(l,n,t,e),zE(l,t),e.animation&&nO(t,l,e),$n("text",t.id+"",l,void 0,r)}}function rZ(t,e){if(t instanceof Ge)return nZ(t,e);if(t instanceof Ln)return M8e(t,e);if(t instanceof yd)return I8e(t,e)}function D8e(t,e,n){var r=t.style;if(xMe(r)){var i=wMe(t),a=n.shadowCache,o=a[i];if(!o){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,h=Vg(r.shadowColor),g=h.opacity,v=h.color,m=d/2/l,y=d/2/u,b=m+" "+y;o=n.zrId+"-s"+n.shadowIdx++,n.defs[o]=$n("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[$n("feDropShadow","",{dx:c/l,dy:f/u,stdDeviation:b,"flood-color":v,"flood-opacity":g})]),a[i]=o}e.filter=p_(o)}}function iZ(t,e,n,r){var i=t[n],a,o={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(QW(i))a="linearGradient",o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(HW(i))a="radialGradient",o.cx=Re(i.x,.5),o.cy=Re(i.y,.5),o.r=Re(i.r,.5);else{process.env.NODE_ENV!=="production"&&Li("Illegal gradient type.");return}for(var s=i.colorStops,l=[],u=0,c=s.length;u<c;++u){var f=R$(s[u].offset)*100+"%",d=s[u].color,h=Vg(d),g=h.color,v=h.opacity,m={offset:f};m["stop-color"]=g,v<1&&(m["stop-opacity"]=v),l.push($n("stop",u+"",m))}var y=$n(a,"",o,l),b=LE(y),_=r.gradientCache,O=_[b];O||(O=r.zrId+"-g"+r.gradientIdx++,_[b]=O,o.id=O,r.defs[O]=$n(a,O,o,l)),e[n]=p_(O)}function aZ(t,e,n,r){var i=t.style[n],a=t.getBoundingRect(),o={},s=i.repeat,l=s==="no-repeat",u=s==="repeat-x",c=s==="repeat-y",f;if(WW(i)){var d=i.imageWidth,h=i.imageHeight,g=void 0,v=i.image;if(pe(v)?g=v:qG(v)?g=v.src:KG(v)&&(g=v.toDataURL()),typeof Image>"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";Pe(d,m),Pe(h,m)}else if(d==null||h==null){var y=function(C,$){if(C){var A=C.elm,E=d||$.width,D=h||$.height;C.tag==="pattern"&&(u?(D=1,E/=a.width):c&&(E=1,D/=a.height)),C.attrs.width=E,C.attrs.height=D,A&&(A.setAttribute("width",E),A.setAttribute("height",D))}},b=p2(g,null,t,function(C){l||y(x,C),y(f,C)});b&&b.width&&b.height&&(d=d||b.width,h=h||b.height)}f=$n("image","img",{href:g,width:d,height:h}),o.width=d,o.height=h}else i.svgElement&&(f=$e(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(f){var _,O;l?_=O=1:u?(O=1,_=o.width/a.width):c?(_=1,O=o.height/a.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),O!=null&&!isNaN(O)&&(o.height=O);var S=ZW(i);S&&(o.patternTransform=S);var x=$n("pattern","",o,[f]),w=LE(x),T=r.patternCache,P=T[w];P||(P=r.zrId+"-p"+r.patternIdx++,T[w]=P,o.id=P,x=r.defs[P]=$n("pattern",P,o,[f])),e[n]=p_(P)}}function R8e(t,e,n){var r=n.clipPathCache,i=n.defs,a=r[t.id];if(!a){a=n.zrId+"-c"+n.clipPathIdx++;var o={id:a};r[t.id]=a,i[a]=$n("clipPath",a,o,[nZ(t,n)])}e["clip-path"]=p_(a)}function oZ(t){return document.createTextNode(t)}function wc(t,e,n){t.insertBefore(e,n)}function sZ(t,e){t.removeChild(e)}function lZ(t,e){t.appendChild(e)}function uZ(t){return t.parentNode}function cZ(t){return t.nextSibling}function WE(t,e){t.textContent=e}var fZ=58,k8e=120,N8e=$n("","");function QE(t){return t===void 0}function _o(t){return t!==void 0}function L8e(t,e,n){for(var r={},i=e;i<=n;++i){var a=t[i].key;a!==void 0&&(process.env.NODE_ENV!=="production"&&r[a]!=null&&console.error("Duplicate key "+a),r[a]=i)}return r}function Vv(t,e){var n=t.key===e.key,r=t.tag===e.tag;return r&&n}function Bv(t){var e,n=t.children,r=t.tag;if(_o(r)){var i=t.elm=HG(r);if(HE(N8e,t),re(n))for(e=0;e<n.length;++e){var a=n[e];a!=null&&lZ(i,Bv(a))}else _o(t.text)&&!we(t.text)&&lZ(i,oZ(t.text))}else t.elm=oZ(t.text);return t.elm}function dZ(t,e,n,r,i){for(;r<=i;++r){var a=n[r];a!=null&&wc(t,Bv(a),e)}}function rO(t,e,n,r){for(;n<=r;++n){var i=e[n];if(i!=null)if(_o(i.tag)){var a=uZ(i.elm);sZ(a,i.elm)}else sZ(t,i.elm)}}function HE(t,e){var n,r=e.elm,i=t&&t.attrs||{},a=e.attrs||{};if(i!==a){for(n in a){var o=a[n],s=i[n];s!==o&&(o===!0?r.setAttribute(n,""):o===!1?r.removeAttribute(n):n==="style"?r.style.cssText=o:n.charCodeAt(0)!==k8e?r.setAttribute(n,o):n==="xmlns:xlink"||n==="xmlns"?r.setAttributeNS(v8e,n,o):n.charCodeAt(3)===fZ?r.setAttributeNS(m8e,n,o):n.charCodeAt(5)===fZ?r.setAttributeNS(WG,n,o):r.setAttribute(n,o))}for(n in i)n in a||r.removeAttribute(n)}}function V8e(t,e,n){for(var r=0,i=0,a=e.length-1,o=e[0],s=e[a],l=n.length-1,u=n[0],c=n[l],f,d,h,g;r<=a&&i<=l;)o==null?o=e[++r]:s==null?s=e[--a]:u==null?u=n[++i]:c==null?c=n[--l]:Vv(o,u)?(Kd(o,u),o=e[++r],u=n[++i]):Vv(s,c)?(Kd(s,c),s=e[--a],c=n[--l]):Vv(o,c)?(Kd(o,c),wc(t,o.elm,cZ(s.elm)),o=e[++r],c=n[--l]):Vv(s,u)?(Kd(s,u),wc(t,s.elm,o.elm),s=e[--a],u=n[++i]):(QE(f)&&(f=L8e(e,r,a)),d=f[u.key],QE(d)?wc(t,Bv(u),o.elm):(h=e[d],h.tag!==u.tag?wc(t,Bv(u),o.elm):(Kd(h,u),e[d]=void 0,wc(t,h.elm,o.elm))),u=n[++i]);(r<=a||i<=l)&&(r>a?(g=n[l+1]==null?null:n[l+1].elm,dZ(t,g,n,i,l)):rO(t,e,r,a))}function Kd(t,e){var n=e.elm=t.elm,r=t.children,i=e.children;t!==e&&(HE(t,e),QE(e.text)?_o(r)&&_o(i)?r!==i&&V8e(n,r,i):_o(i)?(_o(t.text)&&WE(n,""),dZ(n,null,i,0,i.length-1)):_o(r)?rO(n,r,0,r.length-1):_o(t.text)&&WE(n,""):t.text!==e.text&&(_o(r)&&rO(n,r,0,r.length-1),WE(n,e.text)))}function B8e(t,e){if(Vv(t,e))Kd(t,e);else{var n=t.elm,r=uZ(n);Bv(e),r!==null&&(wc(r,e.elm,cZ(n)),rO(r,[t],0,0))}return e}var z8e=0,F8e=function(){function t(e,n,r){if(this.type="svg",this.refreshHover=hZ("refreshHover"),this.configLayer=hZ("configLayer"),this.storage=n,this._opts=r=ne({},r),this.root=e,this._id="zr"+z8e++,this._oldVNode=jG(r.width,r.height),e&&!r.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=HG("svg");HE(null,this._oldVNode),i.appendChild(a),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",B8e(this._oldVNode,e),this._oldVNode=e}},t.prototype.renderOneToVNode=function(e){return rZ(e,VE(this._id))},t.prototype.renderToVNode=function(e){e=e||{};var n=this.storage.getDisplayList(!0),r=this._width,i=this._height,a=VE(this._id);a.animation=e.animation,a.willUpdate=e.willUpdate,a.compress=e.compress,a.emphasis=e.emphasis;var o=[],s=this._bgVNode=W8e(r,i,this._backgroundColor,a);s&&o.push(s);var l=e.compress?null:this._mainVNode=$n("g","main",{},[]);this._paintList(n,a,l?l.children:o),l&&o.push(l);var u=ie(Ue(a.defs),function(d){return a.defs[d]});if(u.length&&o.push($n("defs","defs",{},u)),e.animation){var c=_8e(a.cssNodes,a.cssAnims,{newline:!0});if(c){var f=$n("style","stl",{},[],c);o.push(f)}}return jG(r,i,o,e.useViewBox)},t.prototype.renderToString=function(e){return e=e||{},LE(this.renderToVNode({animation:Re(e.cssAnimation,!0),emphasis:Re(e.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:Re(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,a=[],o=0,s,l,u=0,c=0;c<i;c++){var f=e[c];if(!f.invisible){var d=f.__clipPaths,h=d&&d.length||0,g=l&&l.length||0,v=void 0;for(v=Math.max(h-1,g-1);v>=0&&!(d&&l&&d[v]===l[v]);v--);for(var m=g-1;m>v;m--)o--,s=a[o-1];for(var y=v+1;y<h;y++){var b={};R8e(d[y],b,n);var _=$n("g","clip-g-"+u++,b,[]);(s?s.children:r).push(_),a[o++]=_,s=_}l=d;var O=rZ(f,n);O&&(s?s.children:r).push(O)}}},t.prototype.resize=function(e,n){var r=this._opts,i=this.root,a=this._viewport;if(e!=null&&(r.width=e),n!=null&&(r.height=n),i&&a&&(a.style.display="none",e=Hd(i,0,r),n=Hd(i,1,r),a.style.display=""),this._width!==e||this._height!==n){if(this._width=e,this._height=n,a){var o=a.style;o.width=e+"px",o.height=n+"px"}if(k$(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=TMe(n),n&&r+"base64,"+n):r+"charset=UTF-8,"+encodeURIComponent(n)},t}();function hZ(t){return function(){process.env.NODE_ENV!=="production"&&Li('In SVG mode painter not support method "'+t+'"')}}function W8e(t,e,n,r){var i;if(n&&n!=="none")if(i=$n("rect","bg",{width:t,height:e,x:"0",y:"0"}),jW(n))iZ({fill:n},i.attrs,"fill",r);else if(k$(n))aZ({style:{fill:n},dirty:Jt,getBoundingRect:function(){return{width:t,height:e}}},i.attrs,"fill",r);else{var a=Vg(n),o=a.color,s=a.opacity;i.attrs.fill=o,s<1&&(i.attrs["fill-opacity"]=s)}return i}function Q8e(t){t.registerPainter("svg",F8e)}function pZ(t,e,n){var r=Oa.createCanvas(),i=e.getWidth(),a=e.getHeight(),o=r.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",r.setAttribute("data-zr-dom-id",t)),r.width=i*n,r.height=a*n,r}var jE=function(t){U(e,t);function e(n,r,i){var a=t.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||O_,typeof n=="string"?o=pZ(n,r,i):we(n)&&(o=n,n=o.id),a.id=n,a.dom=o;var s=o.style;return s&&(d$(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=r,a.dpr=i,a}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=pZ("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,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,l=!1,u=new ze(0,0,0,0);function c(b){if(!(!b.isFinite()||b.isZero()))if(o.length===0){var _=new ze(0,0,0,0);_.copy(b),o.push(_)}else{for(var O=!1,S=1/0,x=0,w=0;w<o.length;++w){var T=o[w];if(T.intersect(b)){var P=new ze(0,0,0,0);P.copy(T),P.union(b),o[w]=P,O=!0;break}else if(l){u.copy(b),u.union(T);var C=b.width*b.height,$=T.width*T.height,A=u.width*u.height,E=A-C-$;E<S&&(S=E,x=w)}}if(l&&(o[x].union(b),O=!0),!O){var _=new ze(0,0,0,0);_.copy(b),o.push(_)}l||(l=o.length>=s)}}for(var f=this.__startIndex;f<this.__endIndex;++f){var d=n[f];if(d){var h=d.shouldBePainted(i,a,!0,!0),g=d.__isRendered&&(d.__dirty&ci||!h)?d.getPrevPaintRect():null;g&&c(g);var v=h&&(d.__dirty&ci||!d.__isRendered)?d.getPaintRect():null;v&&c(v)}}for(var f=this.__prevStartIndex;f<this.__prevEndIndex;++f){var d=r[f],h=d&&d.shouldBePainted(i,a,!0,!0);if(d&&(!h||!d.__zr)&&d.__isRendered){var g=d.getPrevPaintRect();g&&c(g)}}var m;do{m=!1;for(var f=0;f<o.length;){if(o[f].isZero()){o.splice(f,1);continue}for(var y=f+1;y<o.length;)o[f].intersect(o[y])?(m=!0,o[f].union(o[y]),o.splice(y,1)):y++;f++}}while(m);return this._paintRects=o,o},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(n,r){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=n+"px",o.height=r+"px"),a.width=n*i,a.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 a=this.dom,o=this.ctx,s=a.width,l=a.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(a,0,0,s/f,l/f));var h=this.domBack;function g(v,m,y,b){if(o.clearRect(v,m,y,b),r&&r!=="transparent"){var _=void 0;if(mg(r)){var O=r.global||r.__width===y&&r.__height===b;_=O&&r.__canvasGradient||FA(o,r,{x:0,y:0,width:y,height:b}),r.__canvasGradient=_,r.__width=y,r.__height=b}else sW(r)&&(r.scaleX=r.scaleX||f,r.scaleY=r.scaleY||f,_=QA(o,r,{dirty:function(){d.setUnpainted(),d.painter.refresh()}}));o.save(),o.fillStyle=_||r,o.fillRect(v,m,y,b),o.restore()}u&&(o.save(),o.globalAlpha=c,o.drawImage(h,v,m,y,b),o.restore())}!i||u?g(0,0,s,l):i.length&&k(i,function(v){g(v.x*f,v.y*f,v.width*f,v.height*f)})},e}(zi),gZ=1e5,Cc=314159,iO=.01,H8e=.001;function j8e(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function G8e(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 Z8e=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 a=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=r=ne({},r||{}),this.dpr=r.devicePixelRatio||O_,this._singleCanvas=a,this.root=e;var o=e.style;o&&(d$(e),e.innerHTML=""),this.storage=n;var s=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(a){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 h=new jE(c,this,this.dpr);h.__builtin__=!0,h.initContext(),l[Cc]=h,h.zlevel=Cc,s.push(Cc),this._domRoot=e}else{this._width=Hd(e,0,r),this._height=Hd(e,1,r);var u=this._domRoot=G8e(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 a=0;a<i.length;a++){var o=i[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var l=a===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},a,o=0;o<n;o++){var s=e[o];s.__inHover&&(r||(r=this._hoverlayer=this.getLayer(gZ)),a||(a=r.ctx,a.save()),vc(a,s,i,o===n-1))}a&&a.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(gZ)},t.prototype.paintOne=function(e,n){HA(e,n)},t.prototype._paintList=function(e,n,r,i){if(this._redrawId===i){r=r||!1,this._updateLayerStatus(e);var a=this._doPaintList(e,n,r),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(e),o)this.eachLayer(function(u){u.afterBrush&&u.afterBrush()});else{var l=this;i_(function(){l._paintList(e,n,r,i)})}}},t.prototype._compositeManually=function(){var e=this.getLayer(Cc).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,a=[],o=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)&&a.push(u)}for(var c=!0,f=!1,d=function(v){var m=a[v],y=m.ctx,b=o&&m.createRepaintRects(e,n,h._width,h._height),_=r?m.__startIndex:m.__drawIndex,O=!r&&m.incremental&&Date.now,S=O&&Date.now(),x=m.zlevel===h._zlevelList[0]?h._backgroundColor:null;if(m.__startIndex===m.__endIndex)m.clear(!1,x,b);else if(_===m.__startIndex){var w=e[_];(!w.incremental||!w.notClear||r)&&m.clear(!1,x,b)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=m.__startIndex);var T,P=function(E){var D={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(T=_;T<m.__endIndex;T++){var M=e[T];if(M.__inHover&&(f=!0),i._doPaintEl(M,m,o,E,D,T===m.__endIndex-1),O){var R=Date.now()-S;if(R>15)break}}D.prevElClipPaths&&y.restore()};if(b)if(b.length===0)T=m.__endIndex;else for(var C=h.dpr,$=0;$<b.length;++$){var A=b[$];y.save(),y.beginPath(),y.rect(A.x*C,A.y*C,A.width*C,A.height*C),y.clip(),P(A),y.restore()}else y.save(),P(),y.restore();m.__drawIndex=T,m.__drawIndex<m.__endIndex&&(c=!1)},h=this,g=0;g<a.length;g++)d(g);return Je.wxa&&k(this._layers,function(v){v&&v.ctx&&v.ctx.draw&&v.ctx.draw()}),{finished:c,needsRefreshHover:f}},t.prototype._doPaintEl=function(e,n,r,i,a,o){var s=n.ctx;if(r){var l=e.getPaintRect();(!i||l&&l.intersect(i))&&(vc(s,e,a,o),e.setPrevPaintRect(l))}else vc(s,e,a,o)},t.prototype.getLayer=function(e,n){this._singleCanvas&&!this._needsManuallyCompositing&&(e=Cc);var r=this._layers[e];return r||(r=new jE("zr_"+e,this,this.dpr),r.zlevel=e,r.__builtin__=!0,this._layerConfig[e]?Le(r,this._layerConfig[e],!0):this._layerConfig[e-iO]&&Le(r,this._layerConfig[e-iO],!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,a=i.length,o=this._domRoot,s=null,l=-1;if(r[e]){process.env.NODE_ENV!=="production"&&Li("ZLevel "+e+" has been used already");return}if(!j8e(n)){process.env.NODE_ENV!=="production"&&Li("Layer of zlevel "+e+" is not valid");return}if(a>0&&e>i[0]){for(l=0;l<a-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?o.insertBefore(n.dom,u.nextSibling):o.appendChild(n.dom)}else o.firstChild?o.insertBefore(n.dom,o.firstChild):o.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 a=r[i];e.call(n,this._layers[a],a)}},t.prototype.eachBuiltinLayer=function(e,n){for(var r=this._zlevelList,i=0;i<r.length;i++){var a=r[i],o=this._layers[a];o.__builtin__&&e.call(n,o,a)}},t.prototype.eachOtherLayer=function(e,n){for(var r=this._zlevelList,i=0;i<r.length;i++){var a=r[i],o=this._layers[a];o.__builtin__||e.call(n,o,a)}},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){a&&(a.__endIndex!==f&&(a.__dirty=!0),a.__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 a=null,o=0,s,l;for(l=0;l<e.length;l++){var i=e[l],u=i.zlevel,c=void 0;s!==u&&(s=u,o=0),i.incremental?(c=this.getLayer(u+H8e,this._needsManuallyCompositing),c.incremental=!0,o=1):c=this.getLayer(u+(o>0?iO:0),this._needsManuallyCompositing),c.__builtin__||Li("ZLevel "+u+" has been used by unkown layer "+c.id),c!==a&&(c.__used=!0,c.__startIndex!==l&&(c.__dirty=!0),c.__startIndex=l,c.incremental?c.__drawIndex=-1:c.__drawIndex=l,n(l),a=c),i.__dirty&ci&&!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,k(this._layers,function(n){n.setUnpainted()})},t.prototype.configLayer=function(e,n){if(n){var r=this._layerConfig;r[e]?Le(r[e],n,!0):r[e]=n;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===e||a===e+iO){var o=this._layers[a];Le(o,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(Fe(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,a=this.root;if(e!=null&&(i.width=e),n!=null&&(i.height=n),e=Hd(a,0,i),n=Hd(a,1,i),r.style.display="",this._width!==e||n!==this._height){r.style.width=e+"px",r.style.height=n+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].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(Cc).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[Cc].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,a=n.dom.height;this.eachLayer(function(f){f.__builtin__?r.drawImage(f.dom,0,0,i,a):f.renderToCanvas&&(r.save(),f.renderToCanvas(r),r.restore())})}else for(var o={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];vc(r,c,o,l===u-1)}return n.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}();function U8e(t){t.registerPainter("canvas",Z8e)}var X8e=function(t){U(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 go(null,this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(n){var r=new Me,i=rn("line",0,n.itemHeight/2,n.itemWidth,0,n.lineStyle.stroke,!1);r.add(i),i.setStyle(n.lineStyle);var a=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=a==="none"?"circle":a,l=n.itemHeight*.8,u=rn(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"?o: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}(Ct);function Jd(t,e){var n=t.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var i=Vd(t,e,n[0]);return i!=null?i+"":null}else if(r){for(var a=[],o=0;o<n.length;o++)a.push(Vd(t,e,n[o]));return a.join(" ")}}function vZ(t,e){var n=t.mapDimensionsAll("defaultedLabel");if(!re(e))return e+"";for(var r=[],i=0;i<n.length;i++){var a=t.getDimensionIndex(n[i]);a>=0&&r.push(e[a])}return r.join(" ")}var zv=function(t){U(e,t);function e(n,r,i,a){var o=t.call(this)||this;return o.updateData(n,r,i,a),o}return e.prototype._createSymbol=function(n,r,i,a,o){this.removeAll();var s=rn(n,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=Y8e,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(){fs(this.childAt(0))},e.prototype.downplay=function(){ds(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,a){this.silent=!1;var o=n.getItemVisual(r,"symbol")||"circle",s=n.hostModel,l=e.getSymbolSize(n,r),u=o!==this._symbolType,c=a&&a.disableAnimation;if(u){var f=n.getItemVisual(r,"symbolKeepAspect");this._createSymbol(o,n,r,l,f)}else{var d=this.childAt(0);d.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?d.attr(h):ot(d,h,s,r),Aa(d)}if(this._updateCommon(n,r,l,i,a),u){var d=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}};d.scaleX=d.scaleY=0,d.style.opacity=0,Mt(d,h,s,r)}}c&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(n,r,i,a,o){var s=this.childAt(0),l=n.hostModel,u,c,f,d,h,g,v,m,y;if(a&&(u=a.emphasisItemStyle,c=a.blurItemStyle,f=a.selectItemStyle,d=a.focus,h=a.blurScope,v=a.labelStatesModels,m=a.hoverScale,y=a.cursorStyle,g=a.emphasisDisabled),!a||n.hasItemOption){var b=a&&a.itemModel?a.itemModel:n.getItemModel(r),_=b.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),f=b.getModel(["select","itemStyle"]).getItemStyle(),c=b.getModel(["blur","itemStyle"]).getItemStyle(),d=_.get("focus"),h=_.get("blurScope"),g=_.get("disabled"),v=Tn(b),m=_.getShallow("scale"),y=b.getShallow("cursor")}var O=n.getItemVisual(r,"symbolRotate");s.attr("rotation",(O||0)*Math.PI/180||0);var S=pc(n.getItemVisual(r,"symbolOffset"),i);S&&(s.x=S[0],s.y=S[1]),y&&s.attr("cursor",y);var x=n.getItemVisual(r,"style"),w=x.fill;if(s instanceof Ln){var T=s.style;s.useStyle(ne({image:T.image,x:T.x,y:T.y,width:T.width,height:T.height},x))}else s.__isEmptyBrush?s.useStyle(ne({},x)):s.useStyle(x),s.style.decal=null,s.setColor(w,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var P=n.getItemVisual(r,"liftZ"),C=this._z2;P!=null?C==null&&(this._z2=s.z2,s.z2+=P):C!=null&&(s.z2=C,this._z2=null);var $=o&&o.useNameLabel;Un(s,v,{labelFetcher:l,labelDataIndex:r,defaultText:A,inheritColor:w,defaultOpacity:x.opacity});function A(M){return $?n.getName(M):Jd(n,M)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var E=s.ensureState("emphasis");E.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var D=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;E.scaleX=this._sizeX*D,E.scaleY=this._sizeY*D,this.setSymbolScale(1),Xt(this,d,h,g)},e.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},e.prototype.fadeOut=function(n,r,i){var a=this.childAt(0),o=De(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&dl(l,{style:{opacity:0}},r,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();dl(a,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:o,cb:n,removeOpt:s})},e.getSymbolSize=function(n,r){return Qd(n.getItemVisual(r,"symbolSize"))},e}(Me);function Y8e(t,e){this.parent.drift(t,e)}function GE(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 mZ(t){return t!=null&&!we(t)&&(t={isIgnore:t}),t||{}}function yZ(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:Tn(e),cursorStyle:e.get("cursor")}}var Fv=function(){function t(e){this.group=new Me,this._SymbolCtor=e||zv}return t.prototype.updateData=function(e,n){this._progressiveEls=null,n=mZ(n);var r=this.group,i=e.hostModel,a=this._data,o=this._SymbolCtor,s=n.disableAnimation,l=yZ(e),u={disableAnimation:s},c=n.getSymbolPoint||function(f){return e.getItemLayout(f)};a||r.removeAll(),e.diff(a).add(function(f){var d=c(f);if(GE(e,d,f,n)){var h=new o(e,f,l,u);h.setPosition(d),e.setItemGraphicEl(f,h),r.add(h)}}).update(function(f,d){var h=a.getItemGraphicEl(d),g=c(f);if(!GE(e,g,f,n)){r.remove(h);return}var v=e.getItemVisual(f,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==v)r.remove(h),h=new o(e,f,l,u),h.setPosition(g);else{h.updateData(e,f,l,u);var y={x:g[0],y:g[1]};s?h.attr(y):ot(h,y,i)}r.add(h),e.setItemGraphicEl(f,h)}).remove(function(f){var d=a.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 a=e._getSymbolPoint(i);r.setPosition(a),r.markRedraw()})},t.prototype.incrementalPrepareUpdate=function(e){this._seriesScope=yZ(e),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,n,r){this._progressiveEls=[],r=mZ(r);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=e.start;a<e.end;a++){var o=n.getItemLayout(a);if(GE(n,o,a,r)){var s=new this._SymbolCtor(n,a,this._seriesScope);s.traverse(i),s.setPosition(o),this.group.add(s),n.setItemGraphicEl(a,s),this._progressiveEls.push(s)}}},t.prototype.eachRendered=function(e){pl(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 bZ(t,e,n){var r=t.getBaseAxis(),i=t.getOtherAxis(r),a=q8e(i,n),o=r.dim,s=i.dim,l=e.mapDimension(s),u=e.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=ie(t.dimensions,function(g){return e.mapDimension(g)}),d=!1,h=e.getCalculationInfo("stackResultDimension");return ms(e,f[0])&&(d=!0,f[0]=h),ms(e,f[1])&&(d=!0,f[1]=h),{dataDimsForPoint:f,valueStart:a,valueAxisDim:s,baseAxisDim:o,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function q8e(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 _Z(t,e,n,r){var i=NaN;t.stacked&&(i=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(i)&&(i=t.valueStart);var a=t.baseDataOffset,o=[];return o[a]=n.get(t.baseDim,r),o[1-a]=i,e.dataToPoint(o)}function K8e(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 J8e(t,e,n,r,i,a,o,s){for(var l=K8e(t,e),u=[],c=[],f=[],d=[],h=[],g=[],v=[],m=bZ(i,e,o),y=t.getLayout("points")||[],b=e.getLayout("points")||[],_=0;_<l.length;_++){var O=l[_],S=!0,x=void 0,w=void 0;switch(O.cmd){case"=":x=O.idx*2,w=O.idx1*2;var T=y[x],P=y[x+1],C=b[w],$=b[w+1];(isNaN(T)||isNaN(P))&&(T=C,P=$),u.push(T,P),c.push(C,$),f.push(n[x],n[x+1]),d.push(r[w],r[w+1]),v.push(e.getRawIndex(O.idx1));break;case"+":var A=O.idx,E=m.dataDimsForPoint,D=i.dataToPoint([e.get(E[0],A),e.get(E[1],A)]);w=A*2,u.push(D[0],D[1]),c.push(b[w],b[w+1]);var M=_Z(m,i,e,A);f.push(M[0],M[1]),d.push(r[w],r[w+1]),v.push(e.getRawIndex(A));break;case"-":S=!1}S&&(h.push(O),g.push(g.length))}g.sort(function(q,te){return v[q]-v[te]});for(var R=u.length,N=mo(R),V=mo(R),L=mo(R),z=mo(R),B=[],_=0;_<g.length;_++){var F=g[_],j=_*2,K=F*2;N[j]=u[K],N[j+1]=u[K+1],V[j]=c[K],V[j+1]=c[K+1],L[j]=f[K],L[j+1]=f[K+1],z[j]=d[K],z[j+1]=d[K+1],B[_]=h[F]}return{current:N,next:V,stackedOnCurrent:L,stackedOnNext:z,status:B}}var Sl=Math.min,xl=Math.max;function Tc(t,e){return isNaN(t)||isNaN(e)}function ZE(t,e,n,r,i,a,o,s,l){for(var u,c,f,d,h,g,v=n,m=0;m<r;m++){var y=e[v*2],b=e[v*2+1];if(v>=i||v<0)break;if(Tc(y,b)){if(l){v+=a;continue}break}if(v===n)t[a>0?"moveTo":"lineTo"](y,b),f=y,d=b;else{var _=y-u,O=b-c;if(_*_+O*O<.5){v+=a;continue}if(o>0){for(var S=v+a,x=e[S*2],w=e[S*2+1];x===y&&w===b&&m<r;)m++,S+=a,v+=a,x=e[S*2],w=e[S*2+1],y=e[v*2],b=e[v*2+1],_=y-u,O=b-c;var T=m+1;if(l)for(;Tc(x,w)&&T<r;)T++,S+=a,x=e[S*2],w=e[S*2+1];var P=.5,C=0,$=0,A=void 0,E=void 0;if(T>=r||Tc(x,w))h=y,g=b;else{C=x-u,$=w-c;var D=y-u,M=x-y,R=b-c,N=w-b,V=void 0,L=void 0;if(s==="x"){V=Math.abs(D),L=Math.abs(M);var z=C>0?1:-1;h=y-z*V*o,g=b,A=y+z*L*o,E=b}else if(s==="y"){V=Math.abs(R),L=Math.abs(N);var B=$>0?1:-1;h=y,g=b-B*V*o,A=y,E=b+B*L*o}else V=Math.sqrt(D*D+R*R),L=Math.sqrt(M*M+N*N),P=L/(L+V),h=y-C*o*(1-P),g=b-$*o*(1-P),A=y+C*o*P,E=b+$*o*P,A=Sl(A,xl(x,y)),E=Sl(E,xl(w,b)),A=xl(A,Sl(x,y)),E=xl(E,Sl(w,b)),C=A-y,$=E-b,h=y-C*V/L,g=b-$*V/L,h=Sl(h,xl(u,y)),g=Sl(g,xl(c,b)),h=xl(h,Sl(u,y)),g=xl(g,Sl(c,b)),C=y-h,$=b-g,A=y+C*L/V,E=b+$*L/V}t.bezierCurveTo(f,d,h,g,y,b),f=A,d=E}else t.lineTo(y,b)}u=y,c=b,v+=a}return m}var OZ=function(){function t(){this.smooth=0,this.smoothConstraint=!0}return t}(),e5e=function(t){U(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 OZ},e.prototype.buildPath=function(n,r){var i=r.points,a=0,o=i.length/2;if(r.connectNulls){for(;o>0&&Tc(i[o*2-2],i[o*2-1]);o--);for(;a<o&&Tc(i[a*2],i[a*2+1]);a++);}for(;a<o;)a+=ZE(n,i,a,o,o,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,a=i.data,o=co.CMD,s,l,u=r==="x",c=[],f=0;f<a.length;){var d=a[f++],h=void 0,g=void 0,v=void 0,m=void 0,y=void 0,b=void 0,_=void 0;switch(d){case o.M:s=a[f++],l=a[f++];break;case o.L:if(h=a[f++],g=a[f++],_=u?(n-s)/(h-s):(n-l)/(g-l),_<=1&&_>=0){var O=u?(g-l)*_+l:(h-s)*_+s;return u?[n,O]:[O,n]}s=h,l=g;break;case o.C:h=a[f++],g=a[f++],v=a[f++],m=a[f++],y=a[f++],b=a[f++];var S=u?l_(s,h,v,y,n,c):l_(l,g,m,b,n,c);if(S>0)for(var x=0;x<S;x++){var w=c[x];if(w<=1&&w>=0){var O=u?wn(l,g,m,b,w):wn(s,h,v,y,w);return u?[n,O]:[O,n]}}s=y,l=b;break}}},e}(Ge),t5e=function(t){U(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(OZ),SZ=function(t){U(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 t5e},e.prototype.buildPath=function(n,r){var i=r.points,a=r.stackedOnPoints,o=0,s=i.length/2,l=r.smoothMonotone;if(r.connectNulls){for(;s>0&&Tc(i[s*2-2],i[s*2-1]);s--);for(;o<s&&Tc(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=ZE(n,i,o,s,s,1,r.smooth,l,r.connectNulls);ZE(n,a,o+u-1,u,s,-1,r.stackedOnSmooth,l,r.connectNulls),o+=u+1,n.closePath()}},e}(Ge);function xZ(t,e,n,r,i){var a=t.getArea(),o=a.x,s=a.y,l=a.width,u=a.height,c=n.get(["lineStyle","width"])||2;o-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var f=new tt({shape:{x:o,y:s,width:l,height:u}});if(e){var d=t.getBaseAxis(),h=d.isHorizontal(),g=d.inverse;h?(g&&(f.shape.x+=l),f.shape.width=0):(g||(f.shape.y+=u),f.shape.height=0);var v=xe(i)?function(m){i(m,f)}:null;Mt(f,{shape:{width:l,height:u,x:o,y:s}},n,null,r,v)}return f}function wZ(t,e,n){var r=t.getArea(),i=Ut(r.r0,1),a=Ut(r.r,1),o=new xr({shape:{cx:Ut(t.cx,1),cy:Ut(t.cy,1),r0:i,r:a,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});if(e){var s=t.getBaseAxis().dim==="angle";s?o.shape.endAngle=r.startAngle:o.shape.r=i,Mt(o,{shape:{endAngle:r.endAngle,r:a}},n)}return o}function Wv(t,e,n,r,i){if(t){if(t.type==="polar")return wZ(t,e,n);if(t.type==="cartesian2d")return xZ(t,e,n,r,i)}else return null;return null}function Pc(t,e){return t.type===e}function CZ(t,e){if(t.length===e.length){for(var n=0;n<t.length;n++)if(t[n]!==e[n])return;return!0}}function TZ(t){for(var e=1/0,n=1/0,r=-1/0,i=-1/0,a=0;a<t.length;){var o=t[a++],s=t[a++];isNaN(o)||(e=Math.min(o,e),r=Math.max(o,r)),isNaN(s)||(n=Math.min(s,n),i=Math.max(s,i))}return[[e,n],[r,i]]}function PZ(t,e){var n=TZ(t),r=n[0],i=n[1],a=TZ(e),o=a[0],s=a[1];return Math.max(Math.abs(r[0]-o[0]),Math.abs(r[1]-o[1]),Math.abs(i[0]-s[0]),Math.abs(i[1]-s[1]))}function $Z(t){return it(t)?t:t?.5:0}function n5e(t,e,n){if(!n.valueDim)return[];for(var r=e.count(),i=mo(r*2),a=0;a<r;a++){var o=_Z(n,t,e,a);i[a*2]=o[0],i[a*2+1]=o[1]}return i}function wl(t,e,n,r){var i=e.getBaseAxis(),a=i.dim==="x"||i.dim==="radius"?0:1,o=[],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],o.push(u[0],u[1]),n){case"end":l[a]=c[a],l[1-a]=u[1-a],o.push(l[0],l[1]);break;case"middle":var d=(u[a]+c[a])/2,h=[];l[a]=h[a]=d,l[1-a]=u[1-a],h[1-a]=c[1-a],o.push(l[0],l[1]),o.push(h[0],h[1]);break;default:l[a]=u[a],l[1-a]=c[1-a],o.push(l[0],l[1])}return o.push(t[s++],t[s++]),o}function r5e(t,e){var n=[],r=t.length,i,a;function o(c,f,d){var h=c.coord,g=(d-h)/(f.coord-h),v=D$(g,[c.color,f.color]);return{coord:d,color:v}}for(var s=0;s<r;s++){var l=t[s],u=l.coord;if(u<0)i=l;else if(u>e){a?n.push(o(a,l,e)):i&&n.push(o(i,l,0),o(i,l,e));break}else i&&(n.push(o(i,l,0)),i=null),n.push(l),a=l}return n}function i5e(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,a,o=r.length-1;o>=0;o--){var s=t.getDimensionInfo(r[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=r[o];break}}if(!a){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=ie(a.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,f=a.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var d=r5e(u,i==="x"?n.getWidth():n.getHeight()),h=d.length;if(!h&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var g=10,v=d[0].coord-g,m=d[h-1].coord+g,y=m-v;if(y<.001)return"transparent";k(d,function(_){_.offset=(_.coord-v)/y}),d.push({offset:h?d[h-1].offset:.5,color:f[1]||"transparent"}),d.unshift({offset:h?d[0].offset:.5,color:f[0]||"transparent"});var b=new wd(0,0,0,0,d,!0);return b[i]=v,b[i+"2"]=m,b}}function a5e(t,e,n){var r=t.get("showAllSymbol"),i=r==="auto";if(!(r&&!i)){var a=n.getAxesByScale("ordinal")[0];if(a&&!(i&&o5e(a,e))){var o=e.mapDimension(a.dim),s={};return k(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(e.get(o,l))}}}}function o5e(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(),a=Math.max(1,Math.round(i/5)),o=0;o<i;o+=a)if(zv.getSymbolSize(e,o)[t.isHorizontal()?1:0]*1.5>r)return!1;return!0}function s5e(t,e){return isNaN(t)||isNaN(e)}function l5e(t){for(var e=t.length/2;e>0&&s5e(t[e*2-2],t[e*2-1]);e--);return e-1}function AZ(t,e){return[t[e*2],t[e*2+1]]}function u5e(t,e,n){for(var r=t.length/2,i=n==="x"?0:1,a,o,s=0,l=-1,u=0;u<r;u++)if(o=t[u*2+i],!(isNaN(o)||isNaN(t[u*2+1-i]))){if(u===0){a=o;continue}if(a<=e&&o>=e||a>=e&&o<=e){l=u;break}s=u,a=o}return{range:[s,l],t:(e-a)/(o-a)}}function EZ(t){if(t.get(["endLabel","show"]))return!0;for(var e=0;e<Sr.length;e++)if(t.get([Sr[e],"endLabel","show"]))return!0;return!1}function UE(t,e,n,r){if(Pc(e,"cartesian2d")){var i=r.getModel("endLabel"),a=i.get("valueAnimation"),o=r.getData(),s={lastFrameIndex:0},l=EZ(r)?function(h,g){t._endLabelOnDuring(h,g,o,s,a,i,e)}:null,u=e.getBaseAxis().isHorizontal(),c=xZ(e,n,r,function(){var h=t._endLabel;h&&n&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!r.get("clip",!0)){var f=c.shape,d=Math.max(f.width,f.height);u?(f.y-=d,f.height+=d*2):(f.x-=d,f.width+=d*2)}return l&&l(1,c),c}else return process.env.NODE_ENV!=="production"&&r.get(["endLabel","show"])&&console.warn("endLabel is not supported for lines in polar systems."),wZ(e,n,r)}function c5e(t,e){var n=e.getBaseAxis(),r=n.isHorizontal(),i=n.inverse,a=r?i?"right":"left":"center",o=r?"middle":i?"top":"bottom";return{normal:{align:t.get("align")||a,verticalAlign:t.get("verticalAlign")||o}}}var f5e=function(t){U(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.init=function(){var n=new Me,r=new Fv;this.group.add(r.group),this._symbolDraw=r,this._lineGroup=n},e.prototype.render=function(n,r,i){var a=this,o=n.coordinateSystem,s=this.group,l=n.getData(),u=n.getModel("lineStyle"),c=n.getModel("areaStyle"),f=l.getLayout("points")||[],d=o.type==="polar",h=this._coordSys,g=this._symbolDraw,v=this._polyline,m=this._polygon,y=this._lineGroup,b=!r.ssr&&n.get("animation"),_=!c.isEmpty(),O=c.get("origin"),S=bZ(o,l,O),x=_&&n5e(o,l,S),w=n.get("showSymbol"),T=n.get("connectNulls"),P=w&&!d&&a5e(n,l,o),C=this._data;C&&C.eachItemGraphicEl(function(te,X){te.__temp&&(s.remove(te),C.setItemGraphicEl(X,null))}),w||g.remove(),s.add(y);var $=d?!1:n.get("step"),A;o&&o.getArea&&n.get("clip",!0)&&(A=o.getArea(),A.width!=null?(A.x-=.1,A.y-=.1,A.width+=.2,A.height+=.2):A.r0&&(A.r0-=.5,A.r+=.5)),this._clipShapeForSymbol=A;var E=i5e(l,o,i)||l.getVisual("style")[l.getVisual("drawType")];if(!(v&&h.type===o.type&&$===this._step))w&&g.updateData(l,{isIgnore:P,clipShape:A,disableAnimation:!0,getSymbolPoint:function(te){return[f[te*2],f[te*2+1]]}}),b&&this._initSymbolLabelAnimation(l,o,A),$&&(f=wl(f,o,$,T),x&&(x=wl(x,o,$,T))),v=this._newPolyline(f),_?m=this._newPolygon(f,x):m&&(y.remove(m),m=this._polygon=null),d||this._initOrUpdateEndLabel(n,o,oc(E)),y.setClipPath(UE(this,o,!0,n));else{_&&!m?m=this._newPolygon(f,x):m&&!_&&(y.remove(m),m=this._polygon=null),d||this._initOrUpdateEndLabel(n,o,oc(E));var D=y.getClipPath();if(D){var M=UE(this,o,!1,n);Mt(D,{shape:M.shape},n)}else y.setClipPath(UE(this,o,!0,n));w&&g.updateData(l,{isIgnore:P,clipShape:A,disableAnimation:!0,getSymbolPoint:function(te){return[f[te*2],f[te*2+1]]}}),(!CZ(this._stackedOnPoints,x)||!CZ(this._points,f))&&(b?this._doUpdateAnimation(l,x,o,i,$,O,T):($&&(f=wl(f,o,$,T),x&&(x=wl(x,o,$,T))),v.setShape({points:f}),m&&m.setShape({points:f,stackedOnPoints:x})))}var R=n.getModel("emphasis"),N=R.get("focus"),V=R.get("blurScope"),L=R.get("disabled");if(v.useStyle(Te(u.getLineStyle(),{fill:"none",stroke:E,lineJoin:"bevel"})),Zn(v,n,"lineStyle"),v.style.lineWidth>0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var z=v.getState("emphasis").style;z.lineWidth=+v.style.lineWidth+1}De(v).seriesIndex=n.seriesIndex,Xt(v,N,V,L);var B=$Z(n.get("smooth")),F=n.get("smoothMonotone");if(v.setShape({smooth:B,smoothMonotone:F,connectNulls:T}),m){var j=l.getCalculationInfo("stackedOnSeries"),K=0;m.useStyle(Te(c.getAreaStyle(),{fill:E,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),j&&(K=$Z(j.get("smooth"))),m.setShape({smooth:B,stackedOnSmooth:K,smoothMonotone:F,connectNulls:T}),Zn(m,n,"areaStyle"),De(m).seriesIndex=n.seriesIndex,Xt(m,N,V,L)}var q=function(te){a._changePolyState(te)};l.eachItemGraphicEl(function(te){te&&(te.onHoverStateChange=q)}),this._polyline.onHoverStateChange=q,this._data=l,this._coordSys=o,this._stackedOnPoints=x,this._points=f,this._step=$,this._valueOrigin=O,n.get("triggerLineEvent")&&(this.packEventData(n,v),m&&this.packEventData(n,m))},e.prototype.packEventData=function(n,r){De(r).eventData={componentType:"series",componentSubType:"line",componentIndex:n.componentIndex,seriesIndex:n.seriesIndex,seriesName:n.name,seriesType:"line"}},e.prototype.highlight=function(n,r,i,a){var o=n.getData(),s=zu(o,a);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(isNaN(c)||isNaN(f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var d=n.get("zlevel")||0,h=n.get("z")||0;u=new zv(o,s),u.x=c,u.y=f,u.setZ(d,h);var g=u.getSymbolPath().getTextContent();g&&(g.zlevel=d,g.z=h,g.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else _t.prototype.highlight.call(this,n,r,i,a)},e.prototype.downplay=function(n,r,i,a){var o=n.getData(),s=zu(o,a);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else _t.prototype.downplay.call(this,n,r,i,a)},e.prototype._changePolyState=function(n){var r=this._polygon;F_(this._polyline,n),r&&F_(r,n)},e.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new e5e({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 SZ({shape:{points:n,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},e.prototype._initSymbolLabelAnimation=function(n,r,i){var a,o,s=r.getBaseAxis(),l=s.inverse;r.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):r.type==="polar"&&(a=s.dim==="angle",o=!0);var u=n.hostModel,c=u.get("animationDuration");xe(c)&&(c=c(null));var f=u.get("animationDelay")||0,d=xe(f)?f(null):f;n.eachItemGraphicEl(function(h,g){var v=h;if(v){var m=[h.x,h.y],y=void 0,b=void 0,_=void 0;if(i)if(o){var O=i,S=r.pointToCoord(m);a?(y=O.startAngle,b=O.endAngle,_=-S[1]/180*Math.PI):(y=O.r0,b=O.r,_=S[0])}else{var x=i;a?(y=x.x,b=x.x+x.width,_=h.x):(y=x.y+x.height,b=x.y,_=h.y)}var w=b===y?0:(_-y)/(b-y);l&&(w=1-w);var T=xe(f)?f(g):c*w+d,P=v.getSymbolPath(),C=P.getTextContent();v.attr({scaleX:0,scaleY:0}),v.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:T}),C&&C.animateFrom({style:{opacity:0}},{duration:300,delay:T}),P.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(n,r,i){var a=n.getModel("endLabel");if(EZ(n)){var o=n.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new nt({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=l5e(l);c>=0&&(Un(s,Tn(n,"endLabel"),{inheritColor:i,labelFetcher:n,labelDataIndex:c,defaultText:function(f,d,h){return h!=null?vZ(o,h):Jd(o,f)},enableTextSetter:!0},c5e(a,r)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(n,r,i,a,o,s,l){var u=this._endLabel,c=this._polyline;if(u){n<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var f=i.getLayout("points"),d=i.hostModel,h=d.get("connectNulls"),g=s.get("precision"),v=s.get("distance")||0,m=l.getBaseAxis(),y=m.isHorizontal(),b=m.inverse,_=r.shape,O=b?y?_.x:_.y+_.height:y?_.x+_.width:_.y,S=(y?v:0)*(b?-1:1),x=(y?0:-v)*(b?-1:1),w=y?"x":"y",T=u5e(f,O,w),P=T.range,C=P[1]-P[0],$=void 0;if(C>=1){if(C>1&&!h){var A=AZ(f,P[0]);u.attr({x:A[0]+S,y:A[1]+x}),o&&($=d.getRawValue(P[0]))}else{var A=c.getPointOn(O,w);A&&u.attr({x:A[0]+S,y:A[1]+x});var E=d.getRawValue(P[0]),D=d.getRawValue(P[1]);o&&($=E7(i,g,E,D,T.t))}a.lastFrameIndex=P[0]}else{var M=n===1||a.lastFrameIndex>0?P[0]:0,A=AZ(f,M);o&&($=d.getRawValue(M)),u.attr({x:A[0]+S,y:A[1]+x})}if(o){var R=Ed(u);typeof R.setLabelText=="function"&&R.setLabelText($)}}},e.prototype._doUpdateAnimation=function(n,r,i,a,o,s,l){var u=this._polyline,c=this._polygon,f=n.hostModel,d=J8e(this._data,n,this._stackedOnPoints,r,this._coordSys,i,this._valueOrigin),h=d.current,g=d.stackedOnCurrent,v=d.next,m=d.stackedOnNext;if(o&&(h=wl(d.current,i,o,l),g=wl(d.stackedOnCurrent,i,o,l),v=wl(d.next,i,o,l),m=wl(d.stackedOnNext,i,o,l)),PZ(h,v)>3e3||c&&PZ(g,m)>3e3){u.stopAnimation(),u.setShape({points:v}),c&&(c.stopAnimation(),c.setShape({points:v,stackedOnPoints:m}));return}u.shape.__points=d.current,u.shape.points=h;var y={shape:{points:v}};d.current!==h&&(y.shape.__points=d.next),u.stopAnimation(),ot(u,y,f),c&&(c.setShape({points:h,stackedOnPoints:g}),c.stopAnimation(),ot(c,{shape:{stackedOnPoints:m}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var b=[],_=d.status,O=0;O<_.length;O++){var S=_[O].cmd;if(S==="="){var x=n.getItemGraphicEl(_[O].idx1);x&&b.push({el:x,ptIdx:O})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var w=u.shape.__points,T=0;T<b.length;T++){var P=b[T].el,C=b[T].ptIdx*2;P.x=w[C],P.y=w[C+1],P.markRedraw()}})},e.prototype.remove=function(n){var r=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(a,o){a.__temp&&(r.remove(a),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},e.type="line",e}(_t);function Qv(t,e){return{seriesType:t,plan:zd(),reset:function(n){var r=n.getData(),i=n.coordinateSystem,a=n.pipelineContext,o=e||a.large;if(i){var s=ie(i.dimensions,function(h){return r.mapDimension(h)}).slice(0,2),l=s.length,u=r.getCalculationInfo("stackResultDimension");ms(r,s[0])&&(s[0]=u),ms(r,s[1])&&(s[1]=u);var c=r.getStore(),f=r.getDimensionIndex(s[0]),d=r.getDimensionIndex(s[1]);return l&&{progress:function(h,g){for(var v=h.end-h.start,m=o&&mo(v*l),y=[],b=[],_=h.start,O=0;_<h.end;_++){var S=void 0;if(l===1){var x=c.get(f,_);S=i.dataToPoint(x,null,b)}else y[0]=c.get(f,_),y[1]=c.get(d,_),S=i.dataToPoint(y,null,b);o?(m[O++]=S[0],m[O++]=S[1]):g.setItemLayout(_,S.slice())}o&&g.setLayout("points",m)}}}}}}var d5e={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],a=Math.abs(i);a>e&&(e=a,n=i)}return isFinite(n)?n:NaN},nearest:function(t){return t[0]}},h5e=function(t){return Math.round(t.length/2)};function MZ(t){return{seriesType:t,reset:function(e,n,r){var i=e.getData(),a=e.get("sampling"),o=e.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=r.getDevicePixelRatio(),d=Math.abs(c[1]-c[0])*(f||1),h=Math.round(s/d);if(isFinite(h)&&h>1){a==="lttb"&&e.setData(i.lttbDownSample(i.mapDimension(u.dim),1/h));var g=void 0;pe(a)?g=d5e[a]:xe(a)&&(g=a),g&&e.setData(i.downSample(i.mapDimension(u.dim),1/h,g,h5e))}}}}}function p5e(t){t.registerChartView(f5e),t.registerSeriesModel(X8e),t.registerLayout(Qv("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,MZ("line"))}var Hv=function(t){U(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 go(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(n,r,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(n),s=a.dataToPoint(o);if(i)k(a.getAxes(),function(d,h){if(d.type==="category"&&r!=null){var g=d.getTicksCoords(),v=d.getTickModel().get("alignWithLabel"),m=o[h],y=r[h]==="x1"||r[h]==="y1";if(y&&!v&&(m+=1),g.length<2)return;if(g.length===2){s[h]=d.toGlobalCoord(d.getExtent()[y?1:0]);return}for(var b=void 0,_=void 0,O=1,S=0;S<g.length;S++){var x=g[S].coord,w=S===g.length-1?g[S-1].tickValue+O:g[S].tickValue;if(w===m){_=x;break}else if(w<m)b=x;else if(b!=null&&w>m){_=(x+b)/2;break}S===1&&(O=w-g[0].tickValue)}_==null&&(b?b&&(_=g[g.length-1].coord):_=g[0].coord),s[h]=d.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=a.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}(Ct);Ct.registerClass(Hv);var g5e=function(t){U(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 go(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=gl(Hv.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}(Hv),v5e=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}(),aO=function(t){U(e,t);function e(n){var r=t.call(this,n)||this;return r.type="sausage",r}return e.prototype.getDefaultShape=function(){return new v5e},e.prototype.buildPath=function(n,r){var i=r.cx,a=r.cy,o=Math.max(r.r0||0,0),s=Math.max(r.r,0),l=(s-o)*.5,u=o+l,c=r.startAngle,f=r.endAngle,d=r.clockwise,h=Math.PI*2,g=d?f-c<h:c-f<h;g||(c=f-(d?h:-h));var v=Math.cos(c),m=Math.sin(c),y=Math.cos(f),b=Math.sin(f);g?(n.moveTo(v*o+i,m*o+a),n.arc(v*u+i,m*u+a,l,-Math.PI+c,c,!d)):n.moveTo(v*s+i,m*s+a),n.arc(i,a,s,c,f,!d),n.arc(y*u+i,b*u+a,l,f-Math.PI*2,f-Math.PI,!d),o!==0&&n.arc(i,a,o,f,c,d)},e}(Ge);function m5e(t,e){e=e||{};var n=e.isRoundCap;return function(r,i,a){var o=i.position;if(!o||o instanceof Array)return x_(r,i,a);var s=t(o),l=i.distance!=null?i.distance:5,u=this.shape,c=u.cx,f=u.cy,d=u.r,h=u.r0,g=(d+h)/2,v=u.startAngle,m=u.endAngle,y=(v+m)/2,b=n?Math.abs(d-h)/2:0,_=Math.cos,O=Math.sin,S=c+d*_(v),x=f+d*O(v),w="left",T="top";switch(s){case"startArc":S=c+(h-l)*_(y),x=f+(h-l)*O(y),w="center",T="top";break;case"insideStartArc":S=c+(h+l)*_(y),x=f+(h+l)*O(y),w="center",T="bottom";break;case"startAngle":S=c+g*_(v)+oO(v,l+b,!1),x=f+g*O(v)+sO(v,l+b,!1),w="right",T="middle";break;case"insideStartAngle":S=c+g*_(v)+oO(v,-l+b,!1),x=f+g*O(v)+sO(v,-l+b,!1),w="left",T="middle";break;case"middle":S=c+g*_(y),x=f+g*O(y),w="center",T="middle";break;case"endArc":S=c+(d+l)*_(y),x=f+(d+l)*O(y),w="center",T="bottom";break;case"insideEndArc":S=c+(d-l)*_(y),x=f+(d-l)*O(y),w="center",T="top";break;case"endAngle":S=c+g*_(m)+oO(m,l+b,!0),x=f+g*O(m)+sO(m,l+b,!0),w="left",T="middle";break;case"insideEndAngle":S=c+g*_(m)+oO(m,-l+b,!0),x=f+g*O(m)+sO(m,-l+b,!0),w="right",T="middle";break;default:return x_(r,i,a)}return r=r||{},r.x=S,r.y=x,r.align=w,r.verticalAlign=T,r}}function y5e(t,e,n,r){if(it(r)){t.setTextConfig({rotation:r});return}else if(re(e)){t.setTextConfig({rotation:0});return}var i=t.shape,a=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(a+o)/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=a;break;case"endAngle":case"insideEndAngle":l=o;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 oO(t,e,n){return e*Math.sin(t)*(n?-1:1)}function sO(t,e,n){return e*Math.cos(t)*(n?1:-1)}function $c(t,e,n){var r=t.get("borderRadius");if(r==null)return n?{cornerRadius:0}:null;re(r)||(r=[r,r,r,r]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:ie(r,function(a){return Ta(a,i)})}}var XE=Math.max,YE=Math.min;function b5e(t,e){var n=t.getArea&&t.getArea();if(Pc(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 _5e=function(t){U(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,a){this._model=n,this._removeOnRenderedListener(i),this._updateDrawMode(n);var o=n.get("coordinateSystem");o==="cartesian2d"||o==="polar"?(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(n,r,i):this._renderNormal(n,r,i,a)):process.env.NODE_ENV!=="production"&&Wt("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){pl(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,a){var o=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,h=O5e(n,u);h&&this._enableRealtimeSort(h,s,i);var g=n.get("clip",!0)||h,v=b5e(u,s);o.removeClipPath();var m=n.get("roundCap",!0),y=n.get("showBackground",!0),b=n.getModel("backgroundStyle"),_=b.get("borderRadius")||0,O=[],S=this._backgroundEls,x=a&&a.isInitSort,w=a&&a.type==="changeAxisOrder";function T($){var A=lO[u.type](s,$),E=$5e(u,f,A);return E.useStyle(b.getItemStyle()),u.type==="cartesian2d"?E.setShape("r",_):E.setShape("cornerRadius",_),O[$]=E,E}s.diff(l).add(function($){var A=s.getItemModel($),E=lO[u.type](s,$,A);if(y&&T($),!(!s.hasValue($)||!NZ[u.type](E))){var D=!1;g&&(D=IZ[u.type](v,E));var M=DZ[u.type](n,s,$,E,f,d,c.model,!1,m);h&&(M.forceLabelAnimation=!0),VZ(M,s,$,A,E,n,f,u.type==="polar"),x?M.attr({shape:E}):h?RZ(h,d,M,E,$,f,!1,!1):Mt(M,{shape:E},n,$),s.setItemGraphicEl($,M),o.add(M),M.ignore=D}}).update(function($,A){var E=s.getItemModel($),D=lO[u.type](s,$,E);if(y){var M=void 0;S.length===0?M=T(A):(M=S[A],M.useStyle(b.getItemStyle()),u.type==="cartesian2d"?M.setShape("r",_):M.setShape("cornerRadius",_),O[$]=M);var R=lO[u.type](s,$),N=WZ(f,R,u);ot(M,{shape:N},d,$)}var V=l.getItemGraphicEl(A);if(!s.hasValue($)||!NZ[u.type](D)){o.remove(V);return}var L=!1;if(g&&(L=IZ[u.type](v,D),L&&o.remove(V)),V?Aa(V):V=DZ[u.type](n,s,$,D,f,d,c.model,!!V,m),h&&(V.forceLabelAnimation=!0),w){var z=V.getTextContent();if(z){var B=Ed(z);B.prevValue!=null&&(B.prevValue=B.value)}}else VZ(V,s,$,E,D,n,f,u.type==="polar");x?V.attr({shape:D}):h?RZ(h,d,V,D,$,f,!0,w):ot(V,{shape:D},n,$,null),s.setItemGraphicEl($,V),V.ignore=L,o.add(V)}).remove(function($){var A=l.getItemGraphicEl($);A&&ov(A,n,$)}).execute();var P=this._backgroundGroup||(this._backgroundGroup=new Me);P.removeAll();for(var C=0;C<O.length;++C)P.add(O[C]);o.add(P),this._backgroundEls=O,this._data=s},e.prototype._renderLarge=function(n,r,i){this._clear(),zZ(n,this.group),this._updateLargeClip(n)},e.prototype._incrementalRenderLarge=function(n,r){this._removeBackground(),zZ(r,this.group,this._progressiveEls,!0)},e.prototype._updateLargeClip=function(n){var r=n.get("clip",!0)&&Wv(n.coordinateSystem,!1,n),i=this.group;r?i.setClipPath(r):i.removeClipPath()},e.prototype._enableRealtimeSort=function(n,r,i){var a=this;if(r.count()){var o=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(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){a._updateSortWithinSameData(r,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},e.prototype._dataSort=function(n,r,i){var a=[];return n.each(n.mapDimension(r.dim),function(o,s){var l=i(s);l=l??NaN,a.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),a.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:ie(a,function(o){return o.ordinalNumber})}},e.prototype._isOrderChangedWithinSameData=function(n,r,i){for(var a=i.scale,o=n.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=a.getOrdinalMeta().categories.length;l<u;++l){var c=n.rawIndexOf(o,a.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,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(n.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},e.prototype._updateSortWithinSameData=function(n,r,i,a){if(this._isOrderChangedWithinSameData(n,r,i)){var o=this._dataSort(n,i,r);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},e.prototype._dispatchInitSort=function(n,r,i){var a=r.baseAxis,o=this._dataSort(n,a,function(s){return n.get(n.mapDimension(r.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},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(a){ov(a,n,De(a).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}(_t),IZ={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,a=t.y+t.height,o=XE(e.x,t.x),s=YE(e.x+e.width,i),l=XE(e.y,t.y),u=YE(e.y+e.height,a),c=s<o,f=u<l;return e.x=c&&o>i?s:o,e.y=f&&l>a?u:l,e.width=c?0:s-o,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),a=XE(e.r0,t.r0);e.r=i,e.r0=a;var o=i-a<0;if(n<0){var r=e.r;e.r=e.r0,e.r0=r}return o}},DZ={cartesian2d:function(t,e,n,r,i,a,o,s,l){var u=new tt({shape:ne({},r),z2:1});if(u.__dataIndex=n,u.name="item",a){var c=u.shape,f=i?"height":"width";c[f]=0}return u},polar:function(t,e,n,r,i,a,o,s,l){var u=!i&&l?aO:xr,c=new u({shape:r,z2:1});c.name="item";var f=LZ(i);if(c.calculateTextPosition=m5e(f,{isRoundCap:u===aO}),a){var d=c.shape,h=i?"r":"endAngle",g={};d[h]=i?r.r0:r.startAngle,g[h]=r[h],(s?ot:Mt)(c,{shape:g},a)}return c}};function O5e(t,e){var n=t.get("realtimeSort",!0),r=e.getBaseAxis();if(process.env.NODE_ENV!=="production"&&n&&(r.type!=="category"&&Wt("`realtimeSort` will not work because this bar series is not based on a category axis."),e.type!=="cartesian2d"&&Wt("`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 RZ(t,e,n,r,i,a,o,s){var l,u;a?(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||(o?ot:Mt)(n,{shape:l},e,i,null);var c=e?t.baseAxis.model:null;(o?ot:Mt)(n,{shape:u},c,i)}function kZ(t,e){for(var n=0;n<e.length;n++)if(!isFinite(t[e[n]]))return!0;return!1}var S5e=["x","y","width","height"],x5e=["cx","cy","r","startAngle","endAngle"],NZ={cartesian2d:function(t){return!kZ(t,S5e)},polar:function(t){return!kZ(t,x5e)}},lO={cartesian2d:function(t,e,n){var r=t.getItemLayout(e),i=n?C5e(n,r):0,a=r.width>0?1:-1,o=r.height>0?1:-1;return{x:r.x+a*i/2,y:r.y+o*i/2,width:r.width-a*i,height:r.height-o*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 w5e(t){return t.startAngle!=null&&t.endAngle!=null&&t.startAngle===t.endAngle}function LZ(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 VZ(t,e,n,r,i,a,o,s){var l=e.getItemVisual(n,"style");if(s){if(!a.get("roundCap")){var c=t.shape,f=$c(r.getModel("itemStyle"),c,!0);ne(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 h=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?i.height>=0?"bottom":"top":i.width>=0?"right":"left",g=Tn(r);Un(t,g,{labelFetcher:a,labelDataIndex:n,defaultText:Jd(a.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var v=t.getTextContent();if(s&&v){var m=r.get(["label","position"]);t.textConfig.inside=m==="middle"?!0:null,y5e(t,m==="outside"?h:m,LZ(o),r.get(["label","rotate"]))}uH(v,g,a.getRawValue(n),function(b){return vZ(e,b)});var y=r.getModel(["emphasis"]);Xt(t,y.get("focus"),y.get("blurScope"),y.get("disabled")),Zn(t,r),w5e(i)&&(t.style.fill="none",t.style.stroke="none",k(t.states,function(b){b.style&&(b.style.fill=b.style.stroke="none")}))}function C5e(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),a=isNaN(e.height)?Number.MAX_VALUE:Math.abs(e.height);return Math.min(r,i,a)}var T5e=function(){function t(){}return t}(),BZ=function(t){U(e,t);function e(n){var r=t.call(this,n)||this;return r.type="largeBar",r}return e.prototype.getDefaultShape=function(){return new T5e},e.prototype.buildPath=function(n,r){for(var i=r.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<i.length;c+=3)l[a]=u,l[o]=i[c+2],s[a]=i[c+a],s[o]=i[c+o],n.rect(s[0],s[1],l[0],l[1])},e}(Ge);function zZ(t,e,n,r){var i=t.getData(),a=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=t.getModel("backgroundStyle"),u=i.getLayout("largeBackgroundPoints");if(u){var c=new BZ({shape:{points:u},incremental:!!r,silent:!0,z2:0});c.baseDimIdx=a,c.largeDataIndices=o,c.barWidth=s,c.useStyle(l.getItemStyle()),e.add(c),n&&n.push(c)}var f=new BZ({shape:{points:i.getLayout("largePoints")},incremental:!!r,ignoreCoarsePointer:!0,z2:1});f.baseDimIdx=a,f.largeDataIndices=o,f.barWidth=s,e.add(f),f.useStyle(i.getVisual("style")),De(f).seriesIndex=t.seriesIndex,t.get("silent")||(f.on("mousedown",FZ),f.on("mousemove",FZ)),n&&n.push(f)}var FZ=S1(function(t){var e=this,n=P5e(e,t.offsetX,t.offsetY);De(e).dataIndex=n>=0?n:null},30,!1);function P5e(t,e,n){for(var r=t.baseDimIdx,i=1-r,a=t.shape.points,o=t.largeDataIndices,s=[],l=[],u=t.barWidth,c=0,f=a.length/3;c<f;c++){var d=c*3;if(l[r]=u,l[i]=a[d+2],s[r]=a[d+r],s[i]=a[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 o[c]}return-1}function WZ(t,e,n){if(Pc(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(),a=e;return{cx:i.cx,cy:i.cy,r0:t?i.r0:a.r0,r:t?i.r:a.r,startAngle:t?a.startAngle:0,endAngle:t?a.endAngle:Math.PI*2}}}function $5e(t,e,n){var r=t.type==="polar"?xr:tt;return new r({shape:WZ(e,n,t),silent:!0,z2:0})}function A5e(t){t.registerChartView(_5e),t.registerSeriesModel(g5e),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,ke(aG,"bar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,oG("bar")),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,MZ("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 QZ=Math.PI*2,uO=Math.PI/180;function HZ(t,e){return sn(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function jZ(t,e){var n=HZ(t,e),r=t.get("center"),i=t.get("radius");re(i)||(i=[0,i]);var a=he(n.width,e.getWidth()),o=he(n.height,e.getHeight()),s=Math.min(a,o),l=he(i[0],s/2),u=he(i[1],s/2),c,f,d=t.coordinateSystem;if(d){var h=d.dataToPoint(r);c=h[0]||0,f=h[1]||0}else re(r)||(r=[r,r]),c=he(r[0],a)+n.x,f=he(r[1],o)+n.y;return{cx:c,cy:f,r0:l,r:u}}function E5e(t,e,n){e.eachSeriesByType(t,function(r){var i=r.getData(),a=i.mapDimension("value"),o=HZ(r,n),s=jZ(r,n),l=s.cx,u=s.cy,c=s.r,f=s.r0,d=-r.get("startAngle")*uO,h=r.get("endAngle"),g=r.get("padAngle")*uO;h=h==="auto"?d-QZ:-h*uO;var v=r.get("minAngle")*uO,m=v+g,y=0;i.each(a,function(N){!isNaN(N)&&y++});var b=i.getSum(a),_=Math.PI/(b||y)*2,O=r.get("clockwise"),S=r.get("roseType"),x=r.get("stillShowZeroSum"),w=i.getDataExtent(a);w[0]=0;var T=O?1:-1,P=[d,h],C=T*g/2;P2(P,!O),d=P[0],h=P[1];var $=GZ(r);$.startAngle=d,$.endAngle=h,$.clockwise=O;var A=Math.abs(h-d),E=A,D=0,M=d;if(i.setLayout({viewRect:o,r:c}),i.each(a,function(N,V){var L;if(isNaN(N)){i.setItemLayout(V,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:O,cx:l,cy:u,r0:f,r:S?NaN:c});return}S!=="area"?L=b===0&&x?_:N*_:L=A/y,L<m?(L=m,E-=m):D+=N;var z=M+T*L,B=0,F=0;g>L?(B=M+T*L/2,F=B):(B=M+C,F=z-C),i.setItemLayout(V,{angle:L,startAngle:B,endAngle:F,clockwise:O,cx:l,cy:u,r0:f,r:S?mt(N,w,[f,c]):c}),M=z}),E<QZ&&y)if(E<=.001){var R=A/y;i.each(a,function(N,V){if(!isNaN(N)){var L=i.getItemLayout(V);L.angle=R;var z=0,B=0;R<g?(z=d+T*(V+1/2)*R,B=z):(z=d+T*V*R+C,B=d+T*(V+1)*R-C),L.startAngle=z,L.endAngle=B}})}else _=E/D,M=d,i.each(a,function(N,V){if(!isNaN(N)){var L=i.getItemLayout(V),z=L.angle===m?m:N*_,B=0,F=0;z<g?(B=M+T*z/2,F=B):(B=M+C,F=M+T*z-C),L.startAngle=B,L.endAngle=F,M+=T*z}})})}var GZ=et();function jv(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(a){for(var o=i.getName(a),s=0;s<r.length;s++)if(!r[s].isSelected(o))return!1;return!0})}}}}var M5e=Math.PI/180;function ZZ(t,e,n,r,i,a,o,s,l,u){if(t.length<2)return;function c(v){for(var m=v.rB,y=m*m,b=0;b<v.list.length;b++){var _=v.list[b],O=Math.abs(_.label.y-n),S=r+_.len,x=S*S,w=Math.sqrt((1-Math.abs(O*O/y))*x),T=e+(w+_.len2)*i,P=T-_.label.x,C=_.targetTextWidth-P*i;UZ(_,C,!0),_.label.x=T}}function f(v){for(var m={list:[],maxY:0},y={list:[],maxY:0},b=0;b<v.length;b++)if(v[b].labelAlignTo==="none"){var _=v[b],O=_.label.y>n?y:m,S=Math.abs(_.label.y-n);if(S>=O.maxY){var x=_.label.x-e-_.len2*i,w=r+_.len,T=Math.abs(x)<w?Math.sqrt(S*S/(1-x*x/w/w)):w;O.rB=T,O.maxY=S}O.list.push(_)}c(m),c(y)}for(var d=t.length,h=0;h<d;h++)if(t[h].position==="outer"&&t[h].labelAlignTo==="labelLine"){var g=t[h].label.x-u;t[h].linePoints[1][0]+=g,t[h].label.x=u}NG(t,l,l+o)&&f(t)}function I5e(t,e,n,r,i,a,o,s){for(var l=[],u=[],c=Number.MAX_VALUE,f=-Number.MAX_VALUE,d=0;d<t.length;d++){var h=t[d].label;qE(t[d])||(h.x<e?(c=Math.min(c,h.x),l.push(t[d])):(f=Math.max(f,h.x),u.push(t[d])))}for(var d=0;d<t.length;d++){var g=t[d];if(!qE(g)&&g.linePoints){if(g.labelStyleWidth!=null)continue;var h=g.label,v=g.linePoints,m=void 0;g.labelAlignTo==="edge"?h.x<e?m=v[2][0]-g.labelDistance-o-g.edgeDistance:m=o+i-g.edgeDistance-v[2][0]-g.labelDistance:g.labelAlignTo==="labelLine"?h.x<e?m=c-o-g.bleedMargin:m=o+i-f-g.bleedMargin:h.x<e?m=h.x-o-g.bleedMargin:m=o+i-h.x-g.bleedMargin,g.targetTextWidth=m,UZ(g,m)}}ZZ(u,e,n,r,1,i,a,o,s,f),ZZ(l,e,n,r,-1,i,a,o,s,c);for(var d=0;d<t.length;d++){var g=t[d];if(!qE(g)&&g.linePoints){var h=g.label,v=g.linePoints,y=g.labelAlignTo==="edge",b=h.style.padding,_=b?b[1]+b[3]:0,O=h.style.backgroundColor?0:_,S=g.rect.width+O,x=v[1][0]-v[2][0];y?h.x<e?v[2][0]=o+g.edgeDistance+S+g.labelDistance:v[2][0]=o+i-g.edgeDistance-S-g.labelDistance:(h.x<e?v[2][0]=h.x+g.labelDistance:v[2][0]=h.x-g.labelDistance,v[1][0]=v[2][0]+x),v[1][1]=v[2][1]=h.y}}}function UZ(t,e,n){if(n===void 0&&(n=!1),t.labelStyleWidth==null){var r=t.label,i=r.style,a=t.rect,o=i.backgroundColor,s=i.padding,l=s?s[1]+s[3]:0,u=i.overflow,c=a.width+(o?0:l);if(e<c||n){var f=a.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",o)}else{var h=e-l,g=e<c?h:n?h>t.unconstrainedWidth?null:h:null;r.setStyle("width",g)}var v=r.getBoundingRect();a.width=v.width;var m=(r.style.margin||0)+2.1;a.height=v.height+m,a.y-=(a.height-f)/2}}}function qE(t){return t.position==="center"}function D5e(t){var e=t.getData(),n=[],r,i,a=!1,o=(t.get("minShowLabelAngle")||0)*M5e,s=e.getLayout("viewRect"),l=e.getLayout("r"),u=s.width,c=s.x,f=s.y,d=s.height;function h(x){x.ignore=!0}function g(x){if(!x.ignore)return!0;for(var w in x.states)if(x.states[w].ignore===!1)return!0;return!1}e.each(function(x){var w=e.getItemGraphicEl(x),T=w.shape,P=w.getTextContent(),C=w.getTextGuideLine(),$=e.getItemModel(x),A=$.getModel("label"),E=A.get("position")||$.get(["emphasis","label","position"]),D=A.get("distanceToLabelLine"),M=A.get("alignTo"),R=he(A.get("edgeDistance"),u),N=A.get("bleedMargin"),V=$.getModel("labelLine"),L=V.get("length");L=he(L,u);var z=V.get("length2");if(z=he(z,u),Math.abs(T.endAngle-T.startAngle)<o){k(P.states,h),P.ignore=!0,C&&(k(C.states,h),C.ignore=!0);return}if(g(P)){var B=(T.startAngle+T.endAngle)/2,F=Math.cos(B),j=Math.sin(B),K,q,te,X;r=T.cx,i=T.cy;var ee=E==="inside"||E==="inner";if(E==="center")K=T.cx,q=T.cy,X="center";else{var G=(ee?(T.r+T.r0)/2*F:T.r*F)+r,W=(ee?(T.r+T.r0)/2*j:T.r*j)+i;if(K=G+F*3,q=W+j*3,!ee){var Q=G+F*(L+l-T.r),J=W+j*(L+l-T.r),ae=Q+(F<0?-1:1)*z,oe=J;M==="edge"?K=F<0?c+R:c+u-R:K=ae+(F<0?-D:D),q=oe,te=[[G,W],[Q,J],[ae,oe]]}X=ee?"center":M==="edge"?F>0?"right":"left":F>0?"left":"right"}var Se=Math.PI,_e=0,ge=A.get("rotate");if(it(ge))_e=ge*(Se/180);else if(E==="center")_e=0;else if(ge==="radial"||ge===!0){var de=F<0?-B+Se:-B;_e=de}else if(ge==="tangential"&&E!=="outside"&&E!=="outer"){var se=Math.atan2(F,j);se<0&&(se=Se*2+se);var ye=j>0;ye&&(se=Se+se),_e=se-Se}if(a=!!_e,P.x=K,P.y=q,P.rotation=_e,P.setStyle({verticalAlign:"middle"}),ee){P.setStyle({align:X});var Ke=P.states.select;Ke&&(Ke.x+=P.x,Ke.y+=P.y)}else{var Ie=P.getBoundingRect().clone();Ie.applyTransform(P.getComputedTransform());var Xe=(P.style.margin||0)+2.1;Ie.y-=Xe/2,Ie.height+=Xe,n.push({label:P,labelLine:C,position:E,len:L,len2:z,minTurnAngle:V.get("minTurnAngle"),maxSurfaceAngle:V.get("maxSurfaceAngle"),surfaceNormal:new Be(F,j),linePoints:te,textAlign:X,labelDistance:D,labelAlignTo:M,edgeDistance:R,bleedMargin:N,rect:Ie,unconstrainedWidth:Ie.width,labelStyleWidth:P.style.width})}w.setTextConfig({inside:ee})}}),!a&&t.get("avoidLabelOverlap")&&I5e(n,r,i,l,u,d,c,f);for(var v=0;v<n.length;v++){var m=n[v],y=m.label,b=m.labelLine,_=isNaN(y.x)||isNaN(y.y);if(y){y.setStyle({align:m.textAlign}),_&&(k(y.states,h),y.ignore=!0);var O=y.states.select;O&&(O.x+=y.x,O.y+=y.y)}if(b){var S=m.linePoints;_||!S?(k(b.states,h),b.ignore=!0):(DG(S,m.minTurnAngle),n8e(S,m.surfaceNormal,m.maxSurfaceAngle),b.setShape({points:S}),y.__hostTarget.textGuideLineConfig={anchor:new Be(S[0][0],S[0][1])})}}}var R5e=function(t){U(e,t);function e(n,r,i){var a=t.call(this)||this;a.z2=2;var o=new nt;return a.setTextContent(o),a.updateData(n,r,i,!0),a}return e.prototype.updateData=function(n,r,i,a){var o=this,s=n.hostModel,l=n.getItemModel(r),u=l.getModel("emphasis"),c=n.getItemLayout(r),f=ne($c(l.getModel("itemStyle"),c,!0),c);if(isNaN(f.startAngle)){o.setShape(f);return}if(a){o.setShape(f);var d=s.getShallow("animationType");s.ecModel.ssr?(Mt(o,{scaleX:0,scaleY:0},s,{dataIndex:r,isFrom:!0}),o.originX=f.cx,o.originY=f.cy):d==="scale"?(o.shape.r=c.r0,Mt(o,{shape:{r:c.r}},s,r)):i!=null?(o.setShape({startAngle:i,endAngle:i}),Mt(o,{shape:{startAngle:c.startAngle,endAngle:c.endAngle}},s,r)):(o.shape.endAngle=c.startAngle,ot(o,{shape:{endAngle:c.endAngle}},s,r))}else Aa(o),ot(o,{shape:f},s,r);o.useStyle(n.getItemVisual(r,"style")),Zn(o,l);var h=(c.startAngle+c.endAngle)/2,g=s.get("selectedOffset"),v=Math.cos(h)*g,m=Math.sin(h)*g,y=l.getShallow("cursor");y&&o.attr("cursor",y),this._updateLabel(s,n,r),o.ensureState("emphasis").shape=ne({r:c.r+(u.get("scale")&&u.get("scaleSize")||0)},$c(u.getModel("itemStyle"),c)),ne(o.ensureState("select"),{x:v,y:m,shape:$c(l.getModel(["select","itemStyle"]),c)}),ne(o.ensureState("blur"),{shape:$c(l.getModel(["blur","itemStyle"]),c)});var b=o.getTextGuideLine(),_=o.getTextContent();b&&ne(b.ensureState("select"),{x:v,y:m}),ne(_.ensureState("select"),{x:v,y:m}),Xt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(n,r,i){var a=this,o=r.getItemModel(i),s=o.getModel("labelLine"),l=r.getItemVisual(i,"style"),u=l&&l.fill,c=l&&l.opacity;Un(a,Tn(o),{labelFetcher:r.hostModel,labelDataIndex:i,inheritColor:u,defaultOpacity:c,defaultText:n.getFormattedLabel(i,"normal")||r.getName(i)});var f=a.getTextContent();a.setTextConfig({position:null,rotation:null}),f.attr({z2:10});var d=n.get(["label","position"]);if(d!=="outside"&&d!=="outer")a.removeTextGuideLine();else{var h=this.getTextGuideLine();h||(h=new Cr,this.setTextGuideLine(h)),AE(this,EE(o),{stroke:u,opacity:ui(s.get(["lineStyle","opacity"]),c,1)})}},e}(xr),k5e=function(t){U(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,a){var o=n.getData(),s=this._data,l=this.group,u;if(!s&&o.count()>0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f<o.count();++f)c=o.getItemLayout(f);c&&(u=c.startAngle)}if(this._emptyCircleSector&&l.remove(this._emptyCircleSector),o.count()===0&&n.get("showEmptyCircle")){var d=GZ(n),h=new xr({shape:ne(jZ(n,i),d)});h.useStyle(n.getModel("emptyCircleStyle").getItemStyle()),this._emptyCircleSector=h,l.add(h)}o.diff(s).add(function(g){var v=new R5e(o,g,u);o.setItemGraphicEl(g,v),l.add(v)}).update(function(g,v){var m=s.getItemGraphicEl(v);m.updateData(o,g,u),m.off("click"),l.add(m),o.setItemGraphicEl(g,m)}).remove(function(g){var v=s.getItemGraphicEl(g);ov(v,n,g)}).execute(),D5e(n),n.get("animationTypeUpdate")!=="expansion"&&(this._data=o)},e.prototype.dispose=function(){},e.prototype.containPoint=function(n,r){var i=r.getData(),a=i.getItemLayout(0);if(a){var o=n[0]-a.cx,s=n[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},e.type="pie",e}(_t);function eh(t,e,n){e=re(e)&&{coordDimensions:e}||ne({encodeDefine:t.getEncode()},e);var r=t.getSource(),i=Ud(r,e).dimensions,a=new ur(i,t);return a.initData(r,n),a}var Gv=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}(),N5e=et(),L5e=function(t){U(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 Gv(ve(this.getData,this),ve(this.getRawData,this)),this._defaultLabelLine(n)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return eh(this,{coordDimensions:["value"],encodeDefaulter:ke(mA,this)})},e.prototype.getDataParams=function(n){var r=this.getData(),i=N5e(r),a=i.seats;if(!a){var o=[];r.each(r.mapDimension("value"),function(l){o.push(l)}),a=i.seats=g7(o,r.hostModel.get("percentPrecision"))}var s=t.prototype.getDataParams.call(this,n);return s.percent=a[n]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(n){Bu(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}(Ct);function V5e(t){return{seriesType:t,reset:function(e,n){var r=e.getData();r.filterSelf(function(i){var a=r.mapDimension("value"),o=r.get(a,i);return!(it(o)&&!isNaN(o)&&o<0)})}}}function B5e(t){t.registerChartView(k5e),t.registerSeriesModel(L5e),qj("pie",t.registerAction),t.registerLayout(ke(E5e,"pie")),t.registerProcessor(jv("pie")),t.registerProcessor(V5e("pie"))}var z5e=function(t){U(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 go(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}(Ct),XZ=4,F5e=function(){function t(){}return t}(),W5e=function(t){U(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 F5e},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(n,r){var i=r.points,a=r.size,o=this.symbolProxy,s=o.shape,l=n.getContext?n.getContext():n,u=l&&a[0]<XZ,c=this.softClipShape,f;if(u){this._ctx=l;return}for(this._ctx=null,f=this._off;f<i.length;){var d=i[f++],h=i[f++];isNaN(d)||isNaN(h)||c&&!c.contain(d,h)||(s.x=d-a[0]/2,s.y=h-a[1]/2,s.width=a[0],s.height=a[1],o.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,a=this._ctx,o=this.softClipShape,s;if(a){for(s=this._off;s<r.length;){var l=r[s++],u=r[s++];isNaN(l)||isNaN(u)||o&&!o.contain(l,u)||a.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,a=i.points,o=i.size,s=Math.max(o[0],4),l=Math.max(o[1],4),u=a.length/2-1;u>=0;u--){var c=u*2,f=a[c]-s/2,d=a[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),a=this.getBoundingRect();if(n=i[0],r=i[1],a.contain(n,r)){var o=this.hoverDataIdx=this.findDataIndex(n,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var r=this.shape,i=r.points,a=r.size,o=a[0],s=a[1],l=1/0,u=1/0,c=-1/0,f=-1/0,d=0;d<i.length;){var h=i[d++],g=i[d++];l=Math.min(h,l),c=Math.max(h,c),u=Math.min(g,u),f=Math.max(g,f)}n=this._rect=new ze(l-o/2,u-s/2,c-l+o,f-u+s)}return n},e}(Ge),Q5e=function(){function t(){this.group=new Me}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,a=r.startIndex*4*2;n=new Float32Array(n.buffer,a,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],a=n.getLayout("points"),o=i&&i.shape.points;if(o&&o.length<2e4){var s=o.length,l=new Float32Array(s+a.length);l.set(o),l.set(a,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:a}),this._setCommon(u,n,r)}},t.prototype.eachRendered=function(e){this._newAdded[0]&&e(this._newAdded[0])},t.prototype._create=function(){var e=new W5e({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 a=n.getVisual("symbolSize");e.setShape("size",a instanceof Array?a:[a,a]),e.softClipShape=r.clipShape||null,e.symbolProxy=rn(n.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor;var o=e.shape.size[0]<XZ;e.useStyle(i.getModel("itemStyle").getItemStyle(o?["color","shadowBlur","shadowColor"]:["color"]));var s=n.getVisual("style"),l=s&&s.fill;l&&e.setColor(l);var u=De(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}(),H5e=function(t){U(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 a=n.getData(),o=this._updateSymbolDraw(a,n);o.updateData(a,{clipShape:this._getClipShape(n)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(n,r,i){var a=n.getData(),o=this._updateSymbolDraw(a,n);o.incrementalPrepareUpdate(a),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 a=n.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var o=Qv("").reset(n,r,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},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,a=r.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new Q5e:new Fv,this._isLargeDraw=o,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}(_t),j5e=function(t){U(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}(He),KE=function(t){U(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",on).models[0]},e.type="cartesian2dAxis",e}(He);Kt(KE,qd);var YZ={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)"]}}},G5e=Le({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},YZ),JE=Le({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}}},YZ),Z5e=Le({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},JE),U5e=Te({logBase:10},JE);const qZ={category:G5e,value:JE,time:Z5e,log:U5e};var X5e={value:1,category:1,time:1,log:1};function th(t,e,n,r){k(X5e,function(i,a){var o=Le(Le({},qZ[a],!0),r,!0),s=function(l){U(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=e+"Axis."+a,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var d=pv(this),h=d?kd(c):{},g=f.getTheme();Le(c,g.get(a+"Axis")),Le(c,this.getDefaultOption()),c.type=KZ(c),d&&vl(c,h,d)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=gE.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."+a,u.defaultOption=o,u}(n);t.registerComponentModel(s)}),t.registerSubTypeDefaulter(e+"Axis",KZ)}function KZ(t){return t.type||(t.data?"category":"value")}var Y5e=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 ie(this._dimList,function(e){return this._axes[e]},this)},t.prototype.getAxesByScale=function(e){return e=e.toLowerCase(),vt(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}(),eM=["x","y"];function JZ(t){return t.type==="interval"||t.type==="time"}var q5e=function(t){U(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=eM,n}return e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!JZ(n)||!JZ(r))){var i=n.getExtent(),a=r.getExtent(),o=this.dataToPoint([i[0],a[0]]),s=this.dataToPoint([i[1],a[1]]),l=i[1]-i[0],u=a[1]-a[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,d=o[0]-i[0]*c,h=o[1]-a[0]*f,g=this._transform=[c,0,0,f,d,h];this._invTransform=Eu([],g)}}},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),a=this.dataToPoint(r),o=this.getArea(),s=new ze(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},e.prototype.dataToPoint=function(n,r,i){i=i||[];var a=n[0],o=n[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return kn(i,n,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,r)),i[1]=l.toGlobalCoord(l.dataToCoord(o,r)),i},e.prototype.clampData=function(n,r){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(n[0]),u=a.parse(n[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[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 kn(i,n,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(n[0]),r),i[1]=o.coordToData(o.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(),a=Math.min(r[0],r[1])-n,o=Math.min(i[0],i[1])-n,s=Math.max(r[0],r[1])-a+n,l=Math.max(i[0],i[1])-o+n;return new ze(a,o,s,l)},e}(Y5e),K5e=function(t){U(e,t);function e(n,r,i,a,o){var s=t.call(this,n,r,i)||this;return s.index=0,s.type=a||"value",s.position=o||"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}(ea);function tM(t,e,n){n=n||{};var r=t.coordinateSystem,i=e.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,c=r.getRect(),f=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get("offset")||0,g=u==="x"?[f[2]-h,f[3]+h]:[f[0]-h,f[1]+h];if(o){var v=o.toGlobalCoord(o.dataToCoord(0));g[d.onZero]=Math.max(Math.min(v,g[1]),g[0])}a.position=[u==="y"?g[d[l]]:f[0],u==="x"?g[d[l]]:f[3]],a.rotation=Math.PI/2*(u==="x"?0:1);var m={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=m[s],a.labelOffset=o?g[d[s]]-g[d.onZero]:0,e.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),tn(n.labelInside,e.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var y=e.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-y:y,a.z2=1,a}function eU(t){return t.get("coordinateSystem")==="cartesian2d"}function tU(t){var e={xAxisModel:null,yAxisModel:null};return k(e,function(n,r){var i=r.replace(/Model$/,""),a=t.getReferringComponents(i,on).models[0];if(process.env.NODE_ENV!=="production"&&!a)throw new Error(i+' "'+ui(t.get(i+"Index"),t.get(i+"Id"),0)+'" not found');e[r]=a}),e}var nM=Math.log;function nU(t,e,n){var r=ys.prototype,i=r.getTicks.call(n),a=r.getTicks.call(n,!0),o=i.length-1,s=r.getInterval.call(n),l=hG(t,e),u=l.extent,c=l.fixMin,f=l.fixMax;if(t.type==="log"){var d=nM(t.base);u=[nM(u[0])/d,nM(u[1])/d]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:f});var h=r.getExtent.call(t);c&&(u[0]=h[0]),f&&(u[1]=h[1]);var g=r.getInterval.call(t),v=u[0],m=u[1];if(c&&f)g=(m-v)/o;else if(c)for(m=u[0]+g*o;m<u[1]&&isFinite(m)&&isFinite(u[1]);)g=mE(g),m=u[0]+g*o;else if(f)for(v=u[1]-g*o;v>u[0]&&isFinite(v)&&isFinite(u[0]);)g=mE(g),v=u[1]-g*o;else{var y=t.getTicks().length-1;y>o&&(g=mE(g));var b=g*o;m=Math.ceil(u[1]/g)*g,v=Ut(m-b),v<0&&u[0]>=0?(v=0,m=Ut(b)):m>0&&u[1]<=0&&(m=0,v=-Ut(b))}var _=(i[0].value-a[0].value)/s,O=(i[o].value-a[o].value)/s;if(r.setExtent.call(t,v+g*_,m+g*O),r.setInterval.call(t,g),(_||O)&&r.setNiceExtent.call(t,v+g,m-g),process.env.NODE_ENV!=="production"){var S=r.getTicks.call(t);S[1]&&(!ULe(g)||C_(S[1].value)>C_(g))&&Wt("The ticks may be not readable when set min: "+e.get("min")+", max: "+e.get("max")+" and alignTicks: true")}}var J5e=function(){function t(e,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=eM,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(o){var s,l=Ue(o),u=l.length;if(u){for(var c=[],f=u-1;f>=0;f--){var d=+l[f],h=o[d],g=h.model,v=h.scale;vE(v)&&g.get("alignTicks")&&g.get("interval")==null?c.push(h):(bc(v,g),vE(v)&&(s=h))}c.length&&(s||(s=c.pop(),bc(s.scale,s.model)),k(c,function(m){nU(m.scale,m.model,s.scale)}))}}i(r.x),i(r.y);var a={};k(r.x,function(o){rU(r,"y",o,a)}),k(r.y,function(o){rU(r,"x",o,a)}),this.resize(this.model,n)},t.prototype.resize=function(e,n,r){var i=e.getBoxLayoutParams(),a=!r&&e.get("containLabel"),o=sn(i,{width:n.getWidth(),height:n.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(k(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=y4e(u);if(c){var f=u.isHorizontal()?"height":"width",d=u.model.get(["axisLabel","margin"]);o[f]-=c[f]+d,u.position==="top"?o.y+=c.height+d:u.position==="left"&&(o.x+=c.width+d)}}}),l()),k(this._coordsList,function(u){u.calcAffineTransform()});function l(){k(s,function(u){var c=u.isHorizontal(),f=c?[0,o.width]:[0,o.height],d=u.inverse?1:0;u.setExtent(f[d],f[1-d]),e3e(u,c?o.x:o.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]}we(e)&&(n=e.yAxisIndex,e=e.xAxisIndex);for(var i=0,a=this._coordsList;i<a.length;i++)if(a[i].getAxis("x").index===e||a[i].getAxis("y").index===n)return a[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",on).models[0],i=e.yAxisModel||n&&n.getReferringComponents("yAxis",on).models[0],a=e.gridModel,o=this._coordsList,s,l;if(n)s=n.coordinateSystem,Fe(o,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(a){var u=a.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,a=this,o={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,k(s.x,function(c,f){k(s.y,function(d,h){var g="x"+f+"y"+h,v=new q5e(g);v.master=i,v.model=e,i._coordsMap[g]=v,i._coordsList.push(v),v.addAxis(c),v.addAxis(d)})});function u(c){return function(f,d){if(rM(f,e)){var h=f.get("position");c==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var g=new K5e(c,Rv(f),[0,0],f.get("type"),h),v=g.type==="category";g.onBand=v&&f.get("boundaryGap"),g.inverse=f.get("inverse"),f.axis=g,g.model=f,g.grid=a,g.index=d,a._axesList.push(g),s[c][d]=g,l[c]++}}}},t.prototype._updateScale=function(e,n){k(this._axesList,function(i){if(i.scale.setExtent(1/0,-1/0),i.type==="category"){var a=i.model.get("categorySortInfo");i.scale.setSortInfo(a)}}),e.eachSeries(function(i){if(eU(i)){var a=tU(i),o=a.xAxisModel,s=a.yAxisModel;if(!rM(o,n)||!rM(s,n))return;var l=this.getCartesian(o.componentIndex,s.componentIndex),u=i.getData(),c=l.getAxis("x"),f=l.getAxis("y");r(u,c),r(u,f)}},this);function r(i,a){k(q1(i,a.dim),function(o){a.scale.unionExtentFromData(i,o)})}},t.prototype.getTooltipAxes=function(e){var n=[],r=[];return k(this.getCartesians(),function(i){var a=e!=null&&e!=="auto"?i.getAxis(e):i.getBaseAxis(),o=i.getOtherAxis(a);Fe(n,a)<0&&n.push(a),Fe(r,o)<0&&r.push(o)}),{baseAxes:n,otherAxes:r}},t.create=function(e,n){var r=[];return e.eachComponent("grid",function(i,a){var o=new t(i,e,n);o.name="grid_"+a,o.resize(i,n,!0),i.coordinateSystem=o,r.push(o)}),e.eachSeries(function(i){if(eU(i)){var a=tU(i),o=a.xAxisModel,s=a.yAxisModel,l=o.getCoordSysModel();if(process.env.NODE_ENV!=="production"){if(!l)throw new Error('Grid "'+ui(o.get("gridIndex"),o.get("gridId"),0)+'" not found');if(o.getCoordSysModel()!==s.getCoordSysModel())throw new Error("xAxis and yAxis must use the same grid")}var u=l.coordinateSystem;i.coordinateSystem=u.getCartesian(o.componentIndex,s.componentIndex)}}),r},t.dimensions=eM,t}();function rM(t,e){return t.getCoordSysModel()===e}function rU(t,e,n,r){n.getAxesOnZeroOf=function(){return a?[a]:[]};var i=t[e],a,o=n.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)iU(i[l])&&(a=i[l]);else for(var u in i)if(i.hasOwnProperty(u)&&iU(i[u])&&!r[c(i[u])]){a=i[u];break}a&&(r[c(a)]=!0);function c(f){return f.dim+"_"+f.index}}function iU(t){return t&&t.type!=="category"&&t.type!=="time"&&m4e(t)}function e3e(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 Cl=Math.PI,Er=function(){function t(e,n){this.group=new Me,this.opt=n,this.axisModel=e,Te(n,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var r=new Me({x:n.position[0],y:n.position[1],rotation:n.rotation});r.updateTransform(),this._transformGroup=r}return t.prototype.hasBuilder=function(e){return!!aU[e]},t.prototype.add=function(e){aU[e](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(e,n,r){var i=o2(n-e),a,o;return gd(i)?(o=r>0?"top":"bottom",a="center"):gd(i-Cl)?(o=r>0?"bottom":"top",a="center"):(o="middle",i>0&&i<Cl?a=r>0?"right":"left":a=r>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},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}(),aU={axisLine:function(t,e,n,r){var i=e.get(["axisLine","show"]);if(i==="auto"&&t.handleAutoShown&&(i=t.handleAutoShown("axisLine")),!!i){var a=e.axis.getExtent(),o=r.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(kn(s,s,o),kn(l,l,o));var c=ne({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),f=new Cn({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});Pd(f.shape,f.style.lineWidth),f.anid="line",n.add(f);var d=e.get(["axisLine","symbol"]);if(d!=null){var h=e.get(["axisLine","symbolSize"]);pe(d)&&(d=[d,d]),(pe(h)||it(h))&&(h=[h,h]);var g=pc(e.get(["axisLine","symbolOffset"])||0,h),v=h[0],m=h[1];k([{rotate:t.rotation+Math.PI/2,offset:g[0],r:0},{rotate:t.rotation-Math.PI/2,offset:g[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 _=rn(d[b],-v/2,-m/2,v,m,c.stroke,!0),O=y.r+y.offset,S=u?l:s;_.attr({rotation:y.rotate,x:S[0]+O*Math.cos(t.rotation),y:S[1]-O*Math.sin(t.rotation),silent:!0,z2:11}),n.add(_)}})}}},axisTickLabel:function(t,e,n,r){var i=r3e(n,r,e,t),a=a3e(n,r,e,t);if(n3e(e,a,i),i3e(n,r,e,t.tickDirection),e.get(["axisLabel","hideOverlap"])){var o=RG(ie(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));LG(o)}},axisName:function(t,e,n,r){var i=tn(t.axisName,e.get("name"));if(i){var a=e.get("nameLocation"),o=t.nameDirection,s=e.getModel("nameTextStyle"),l=e.get("nameGap")||0,u=e.axis.getExtent(),c=u[0]>u[1]?-1:1,f=[a==="start"?u[0]-c*l:a==="end"?u[1]+c*l:(u[0]+u[1])/2,sU(a)?t.labelOffset+o*l:0],d,h=e.get("nameRotate");h!=null&&(h=h*Cl/180);var g;sU(a)?d=Er.innerTextLayout(t.rotation,h??t.rotation,o):(d=t3e(t.rotation,a,h||0,u),g=t.axisNameAvailableWidth,g!=null&&(g=Math.abs(g/Math.sin(d.rotation)),!isFinite(g)&&(g=null)));var v=s.getFont(),m=e.get("nameTruncate",!0)||{},y=m.ellipsis,b=tn(t.nameTruncateMaxWidth,m.maxWidth,g),_=new nt({x:f[0],y:f[1],rotation:d.rotation,silent:Er.isLabelSilent(e),style:$t(s,{text:i,font:v,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(Ad({el:_,componentModel:e,itemName:i}),_.__fullText=i,_.anid="name",e.get("triggerEvent")){var O=Er.makeAxisEventDataBase(e);O.targetType="axisName",O.name=i,De(_).eventData=O}r.add(_),_.updateTransform(),n.add(_),_.decomposeTransform()}}};function t3e(t,e,n,r){var i=o2(n-t),a,o,s=r[0]>r[1],l=e==="start"&&!s||e!=="start"&&s;return gd(i-Cl/2)?(o=l?"bottom":"top",a="center"):gd(i-Cl*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",i<Cl*1.5&&i>Cl/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function n3e(t,e,n){if(!pG(t.axis)){var r=t.get(["axisLabel","showMinLabel"]),i=t.get(["axisLabel","showMaxLabel"]);e=e||[],n=n||[];var a=e[0],o=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?(ta(a),ta(u)):oU(a,o)&&(r?(ta(o),ta(c)):(ta(a),ta(u))),i===!1?(ta(s),ta(f)):oU(l,s)&&(i?(ta(l),ta(d)):(ta(s),ta(f)))}}function ta(t){t&&(t.ignore=!0)}function oU(t,e){var n=t&&t.getBoundingRect().clone(),r=e&&e.getBoundingRect().clone();if(!(!n||!r)){var i=Cg([]);return el(i,i,-t.rotation),n.applyTransform(no([],i,t.getLocalTransform())),r.applyTransform(no([],i,e.getLocalTransform())),n.intersect(r)}}function sU(t){return t==="middle"||t==="center"}function lU(t,e,n,r,i){for(var a=[],o=[],s=[],l=0;l<t.length;l++){var u=t[l].coord;o[0]=u,o[1]=0,s[0]=u,s[1]=n,e&&(kn(o,o,e),kn(s,s,e));var c=new Cn({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:r,z2:2,autoBatch:!0,silent:!0});Pd(c.shape,c.style.lineWidth),c.anid=i+"_"+t[l].tickValue,a.push(c)}return a}function r3e(t,e,n,r){var i=n.axis,a=n.getModel("axisTick"),o=a.get("show");if(o==="auto"&&r.handleAutoShown&&(o=r.handleAutoShown("axisTick")),!(!o||i.scale.isBlank())){for(var s=a.getModel("lineStyle"),l=r.tickDirection*a.get("length"),u=i.getTicksCoords(),c=lU(u,e.transform,l,Te(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)t.add(c[f]);return c}}function i3e(t,e,n,r){var i=n.axis,a=n.getModel("minorTick");if(!(!a.get("show")||i.scale.isBlank())){var o=i.getMinorTicksCoords();if(o.length)for(var s=a.getModel("lineStyle"),l=r*a.get("length"),u=Te(s.getLineStyle(),Te(n.getModel("axisTick").getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])})),c=0;c<o.length;c++)for(var f=lU(o[c],e.transform,l,u,"minorticks_"+c),d=0;d<f.length;d++)t.add(f[d])}}function a3e(t,e,n,r){var i=n.axis,a=tn(r.axisLabelShow,n.get(["axisLabel","show"]));if(!(!a||i.scale.isBlank())){var o=n.getModel("axisLabel"),s=o.get("margin"),l=i.getViewLabels(),u=(tn(r.labelRotate,o.get("rotate"))||0)*Cl/180,c=Er.innerTextLayout(r.rotation,u,r.labelDirection),f=n.getCategories&&n.getCategories(!0),d=[],h=Er.isLabelSilent(n),g=n.get("triggerEvent");return k(l,function(v,m){var y=i.scale.type==="ordinal"?i.scale.getRawOrdinalNumber(v.tickValue):v.tickValue,b=v.formattedLabel,_=v.rawLabel,O=o;if(f&&f[y]){var S=f[y];we(S)&&S.textStyle&&(O=new wt(S.textStyle,o,n.ecModel))}var x=O.getTextColor()||n.get(["axisLine","lineStyle","color"]),w=i.dataToCoord(y),T=O.getShallow("align",!0)||c.textAlign,P=Re(O.getShallow("alignMinLabel",!0),T),C=Re(O.getShallow("alignMaxLabel",!0),T),$=O.getShallow("verticalAlign",!0)||O.getShallow("baseline",!0)||c.textVerticalAlign,A=Re(O.getShallow("verticalAlignMinLabel",!0),$),E=Re(O.getShallow("verticalAlignMaxLabel",!0),$),D=new nt({x:w,y:r.labelOffset+r.labelDirection*s,rotation:c.rotation,silent:h,z2:10+(v.level||0),style:$t(O,{text:b,align:m===0?P:m===l.length-1?C:T,verticalAlign:m===0?A:m===l.length-1?E:$,fill:xe(x)?x(i.type==="category"?_:i.type==="value"?y+"":y,m):x})});if(D.anid="label_"+y,g){var M=Er.makeAxisEventDataBase(n);M.targetType="axisLabel",M.value=_,M.tickIndex=m,i.type==="category"&&(M.dataIndex=y),De(D).eventData=M}e.add(D),D.updateTransform(),d.push(D),t.add(D),D.decomposeTransform()}),d}}function o3e(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return s3e(n,t,e),n.seriesInvolved&&u3e(n,t),n}function s3e(t,e,n){var r=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),a=i.get("link",!0)||[],o=[];k(n.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Zv(s.model),u=t.coordSysAxesInfo[l]={};t.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",r);if(k(s.getAxes(),ke(v,!1,null)),s.getTooltipAxes&&r&&f.get("show")){var d=f.get("trigger")==="axis",h=f.get(["axisPointer","type"])==="cross",g=s.getTooltipAxes(f.get(["axisPointer","axis"]));(d||h)&&k(g.baseAxes,ke(v,h?"cross":!0,d)),h&&k(g.otherAxes,ke(v,"cross",!1))}function v(m,y,b){var _=b.model.getModel("axisPointer",i),O=_.get("show");if(!(!O||O==="auto"&&!m&&!oM(_))){y==null&&(y=_.get("triggerTooltip")),_=m?l3e(b,f,i,e,m,y):_;var S=_.get("snap"),x=_.get("triggerEmphasis"),w=Zv(b.model),T=y||S||b.type==="category",P=t.axesInfo[w]={key:w,axis:b,coordSys:s,axisPointerModel:_,triggerTooltip:y,triggerEmphasis:x,involveSeries:T,snap:S,useHandle:oM(_),seriesModels:[],linkGroup:null};u[w]=P,t.seriesInvolved=t.seriesInvolved||T;var C=c3e(a,b);if(C!=null){var $=o[C]||(o[C]={axesInfo:{}});$.axesInfo[w]=P,$.mapper=a[C].mapper,P.linkGroup=$}}}})}function l3e(t,e,n,r,i,a){var o=e.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};k(s,function(d){l[d]=$e(o.get(d))}),l.snap=t.type!=="category"&&!!a,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var c=o.get(["label","show"]);if(u.show=c??!0,!a){var f=l.lineStyle=o.get("crossStyle");f&&Te(u,f.textStyle)}}return t.model.getModel("axisPointer",new wt(l,n,r))}function u3e(t,e){e.eachSeries(function(n){var r=n.coordinateSystem,i=n.get(["tooltip","trigger"],!0),a=n.get(["tooltip","show"],!0);!r||i==="none"||i===!1||i==="item"||a===!1||n.get(["axisPointer","show"],!0)===!1||k(t.coordSysAxesInfo[Zv(r.model)],function(o){var s=o.axis;r.getAxis(s.dim)===s&&(o.seriesModels.push(n),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=n.getData().count())})})}function c3e(t,e){for(var n=e.model,r=e.dim,i=0;i<t.length;i++){var a=t[i]||{};if(iM(a[r+"AxisId"],n.id)||iM(a[r+"AxisIndex"],n.componentIndex)||iM(a[r+"AxisName"],n.name))return i}}function iM(t,e){return t==="all"||re(t)&&Fe(t,e)>=0||t===e}function f3e(t){var e=aM(t);if(e){var n=e.axisPointerModel,r=e.axis.scale,i=n.option,a=n.get("status"),o=n.get("value");o!=null&&(o=r.parse(o));var s=oM(n);a==null&&(i.status=s?"show":"hide");var l=r.getExtent().slice();l[0]>l[1]&&l.reverse(),(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=e.axis.scale.isBlank()?"hide":"show")}}function aM(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[Zv(t)]}function d3e(t){var e=aM(t);return e&&e.axisPointerModel}function oM(t){return!!t.get(["handle","show"])}function Zv(t){return t.type+"||"+t.id}var sM={},Ac=function(t){U(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,a){this.axisPointerClass&&f3e(n),t.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(n,i,!0)},e.prototype.updateAxisPointer=function(n,r,i,a){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 a=e.getAxisPointerClass(this.axisPointerClass);if(a){var o=d3e(n);o?(this._axisPointer||(this._axisPointer=new a)).render(n,o,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"&&sM[n])throw new Error("axisPointer "+n+" exists");sM[n]=r},e.getAxisPointerClass=function(n){return n&&sM[n]},e.type="axis",e}(At),lM=et();function uU(t,e,n,r){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel("splitArea"),o=a.getModel("areaStyle"),s=o.get("color"),l=r.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:a,clamp:!0});if(u.length){var c=s.length,f=lM(t).splitAreaColors,d=be(),h=0;if(f)for(var g=0;g<u.length;g++){var v=f.get(u[g].tickValue);if(v!=null){h=(v+(c-1)*g)%c;break}}var m=i.toGlobalCoord(u[0].coord),y=o.getAreaStyle();s=re(s)?s:[s];for(var g=1;g<u.length;g++){var b=i.toGlobalCoord(u[g].coord),_=void 0,O=void 0,S=void 0,x=void 0;i.isHorizontal()?(_=m,O=l.y,S=b-_,x=l.height,m=_+S):(_=l.x,O=m,S=l.width,x=b-O,m=O+x);var w=u[g-1].tickValue;w!=null&&d.set(w,h),e.add(new tt({anid:w!=null?"area_"+w:null,shape:{x:_,y:O,width:S,height:x},style:Te({fill:s[h]},y),autoBatch:!0,silent:!0})),h=(h+1)%c}lM(t).splitAreaColors=d}}}function cU(t){lM(t).splitAreaColors=null}var h3e=["axisLine","axisTickLabel","axisName"],p3e=["splitArea","splitLine","minorSplitLine"],fU=function(t){U(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,a){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Me,this.group.add(this._axisGroup),!!n.get("show")){var s=n.getCoordSysModel(),l=tM(s,n),u=new Er(n,ne({handleAutoShown:function(f){for(var d=s.coordinateSystem.getCartesians(),h=0;h<d.length;h++)if(vE(d[h].getOtherAxis(n.axis).scale))return!0;return!1}},l));k(h3e,u.add,u),this._axisGroup.add(u.getGroup()),k(p3e,function(f){n.get([f,"show"])&&g3e[f](this,this._axisGroup,n,s)},this);var c=a&&a.type==="changeAxisOrder"&&a.isInitSort;c||lv(o,this._axisGroup,n),t.prototype.render.call(this,n,r,i,a)}},e.prototype.remove=function(){cU(this)},e.type="cartesianAxis",e}(Ac),g3e={splitLine:function(t,e,n,r){var i=n.axis;if(!i.scale.isBlank()){var a=n.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=re(s)?s:[s];for(var l=r.coordinateSystem.getRect(),u=i.isHorizontal(),c=0,f=i.getTicksCoords({tickModel:a}),d=[],h=[],g=o.getLineStyle(),v=0;v<f.length;v++){var m=i.toGlobalCoord(f[v].coord);u?(d[0]=m,d[1]=l.y,h[0]=m,h[1]=l.y+l.height):(d[0]=l.x,d[1]=m,h[0]=l.x+l.width,h[1]=m);var y=c++%s.length,b=f[v].tickValue,_=new Cn({anid:b!=null?"line_"+f[v].tickValue:null,autoBatch:!0,shape:{x1:d[0],y1:d[1],x2:h[0],y2:h[1]},style:Te({stroke:s[y]},g),silent:!0});Pd(_.shape,g.lineWidth),e.add(_)}}},minorSplitLine:function(t,e,n,r){var i=n.axis,a=n.getModel("minorSplitLine"),o=a.getModel("lineStyle"),s=r.coordinateSystem.getRect(),l=i.isHorizontal(),u=i.getMinorTicksCoords();if(u.length)for(var c=[],f=[],d=o.getLineStyle(),h=0;h<u.length;h++)for(var g=0;g<u[h].length;g++){var v=i.toGlobalCoord(u[h][g].coord);l?(c[0]=v,c[1]=s.y,f[0]=v,f[1]=s.y+s.height):(c[0]=s.x,c[1]=v,f[0]=s.x+s.width,f[1]=v);var m=new Cn({anid:"minor_line_"+u[h][g].tickValue,autoBatch:!0,shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]},style:d,silent:!0});Pd(m.shape,d.lineWidth),e.add(m)}},splitArea:function(t,e,n,r){uU(t,e,n,r)}},dU=function(t){U(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="xAxis",e}(fU),v3e=function(t){U(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=dU.type,n}return e.type="yAxis",e}(fU),m3e=function(t){U(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 tt({shape:n.coordinateSystem.getRect(),style:Te({fill:n.get("backgroundColor")},n.getItemStyle()),silent:!0,z2:-1}))},e.type="grid",e}(At),hU={offset:0};function pU(t){t.registerComponentView(m3e),t.registerComponentModel(j5e),t.registerCoordinateSystem("cartesian2d",J5e),th(t,"x",KE,hU),th(t,"y",KE,hU),t.registerComponentView(dU),t.registerComponentView(v3e),t.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})}function y3e(t){je(pU),t.registerSeriesModel(z5e),t.registerChartView(H5e),t.registerLayout(Qv("scatter"))}function b3e(t){t.eachSeriesByType("radar",function(e){var n=e.getData(),r=[],i=e.coordinateSystem;if(i){var a=i.getIndicatorAxes();k(a,function(o,s){n.each(n.mapDimension(a[s].dim),function(l,u){r[u]=r[u]||[];var c=i.dataToPoint(l,s);r[u][s]=gU(c)?c:vU(i)})}),n.each(function(o){var s=oW(r[o],function(l){return gU(l)})||vU(i);r[o].push(s.slice()),n.setItemLayout(o,r[o])})}})}function gU(t){return!isNaN(t[0])&&!isNaN(t[1])}function vU(t){return[t.cx,t.cy]}function _3e(t){var e=t.polar;if(e){re(e)||(e=[e]);var n=[];k(e,function(r,i){r.indicator?(r.type&&!r.shape&&(r.shape=r.type),t.radar=t.radar||[],re(t.radar)||(t.radar=[t.radar]),t.radar.push(r)):n.push(r)}),t.polar=n}k(t.series,function(r){r&&r.type==="radar"&&r.polarIndex&&(r.radarIndex=r.polarIndex)})}var O3e=function(t){U(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 a=n.coordinateSystem,o=this.group,s=n.getData(),l=this._data;function u(d,h){var g=d.getItemVisual(h,"symbol")||"circle";if(g!=="none"){var v=Qd(d.getItemVisual(h,"symbolSize")),m=rn(g,-1,-1,2,2),y=d.getItemVisual(h,"symbolRotate")||0;return m.attr({style:{strokeNoScale:!0},z2:100,scaleX:v[0]/2,scaleY:v[1]/2,rotation:y*Math.PI/180||0}),m}}function c(d,h,g,v,m,y){g.removeAll();for(var b=0;b<h.length-1;b++){var _=u(v,m);_&&(_.__dimIdx=b,d[b]?(_.setPosition(d[b]),rc[y?"initProps":"updateProps"](_,{x:h[b][0],y:h[b][1]},n,m)):_.setPosition(h[b]),g.add(_))}}function f(d){return ie(d,function(h){return[a.cx,a.cy]})}s.diff(l).add(function(d){var h=s.getItemLayout(d);if(h){var g=new wr,v=new Cr,m={shape:{points:h}};g.shape.points=f(h),v.shape.points=f(h),Mt(g,m,n,d),Mt(v,m,n,d);var y=new Me,b=new Me;y.add(v),y.add(g),y.add(b),c(v.shape.points,h,b,s,d,!0),s.setItemGraphicEl(d,y)}}).update(function(d,h){var g=l.getItemGraphicEl(h),v=g.childAt(0),m=g.childAt(1),y=g.childAt(2),b={shape:{points:s.getItemLayout(d)}};b.shape.points&&(c(v.shape.points,b.shape.points,y,s,d,!1),Aa(m),Aa(v),ot(v,b,n),ot(m,b,n),s.setItemGraphicEl(d,g))}).remove(function(d){o.remove(l.getItemGraphicEl(d))}).execute(),s.eachItemGraphicEl(function(d,h){var g=s.getItemModel(h),v=d.childAt(0),m=d.childAt(1),y=d.childAt(2),b=s.getItemVisual(h,"style"),_=b.fill;o.add(d),v.useStyle(Te(g.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),Zn(v,g,"lineStyle"),Zn(m,g,"areaStyle");var O=g.getModel("areaStyle"),S=O.isEmpty()&&O.parentModel.isEmpty();m.ignore=S,k(["emphasis","select","blur"],function(T){var P=g.getModel([T,"areaStyle"]),C=P.isEmpty()&&P.parentModel.isEmpty();m.ensureState(T).ignore=C&&S}),m.useStyle(Te(O.getAreaStyle(),{fill:_,opacity:.7,decal:b.decal}));var x=g.getModel("emphasis"),w=x.getModel("itemStyle").getItemStyle();y.eachChild(function(T){if(T instanceof Ln){var P=T.style;T.useStyle(ne({image:P.image,x:P.x,y:P.y,width:P.width,height:P.height},b))}else T.useStyle(b),T.setColor(_),T.style.strokeNoScale=!0;var C=T.ensureState("emphasis");C.style=$e(w);var $=s.getStore().get(s.getDimensionIndex(T.__dimIdx),h);($==null||isNaN($))&&($=""),Un(T,Tn(g),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:T.__dimIdx,defaultText:$,inheritColor:_,defaultOpacity:b.opacity})}),Xt(d,x.get("focus"),x.get("blurScope"),x.get("disabled"))}),this._data=s},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.type="radar",e}(_t),S3e=function(t){U(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 Gv(ve(this.getData,this),ve(this.getRawData,this))},e.prototype.getInitialData=function(n,r){return eh(this,{generateCoord:"indicator_",generateCoordCount:1/0})},e.prototype.formatTooltip=function(n,r,i){var a=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(n),u=l===""?this.name:l,c=Pj(this,n);return Pn("section",{header:u,sortBlocks:!0,blocks:ie(s,function(f){var d=a.get(a.mapDimension(f.dim),n);return Pn("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,a=r.getValues(ie(i.dimensions,function(u){return r.mapDimension(u)}),n),o=0,s=a.length;o<s;o++)if(!isNaN(a[o])){var l=i.getIndicatorAxes();return i.coordToPoint(l[o].dataToCoord(a[o]),o)}}},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}(Ct),Uv=qZ.value;function cO(t,e){return Te({show:e},t)}var x3e=function(t){U(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"),a=this.get("axisLine"),o=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"),h=ie(this.get("indicator")||[],function(g){g.max!=null&&g.max>0&&!g.min?g.min=0:g.min!=null&&g.min<0&&!g.max&&(g.max=0);var v=l;g.color!=null&&(v=Te({color:g.color},l));var m=Le($e(g),{boundaryGap:n,splitNumber:r,scale:i,axisLine:a,axisTick:o,axisLabel:s,name:g.text,showName:u,nameLocation:"end",nameGap:f,nameTextStyle:v,triggerEvent:d},!1);if(pe(c)){var y=m.name;m.name=c.replace("{value}",y??"")}else xe(c)&&(m.name=c(m.name,m));var b=new wt(m,null,this.ecModel);return Kt(b,qd.prototype),b.mainType="radar",b.componentIndex=this.componentIndex,b},this);this._indicatorModels=h},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:Le({lineStyle:{color:"#bbb"}},Uv.axisLine),axisLabel:cO(Uv.axisLabel,!1),axisTick:cO(Uv.axisTick,!1),splitLine:cO(Uv.splitLine,!0),splitArea:cO(Uv.splitArea,!0),indicator:[]},e}(He),w3e=["axisLine","axisTickLabel","axisName"],C3e=function(t){U(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 a=this.group;a.removeAll(),this._buildAxes(n),this._buildSplitLineAndArea(n)},e.prototype._buildAxes=function(n){var r=n.coordinateSystem,i=r.getIndicatorAxes(),a=ie(i,function(o){var s=o.model.get("showName")?o.name:"",l=new Er(o.model,{axisName:s,position:[r.cx,r.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});k(a,function(o){k(w3e,o.add,o),this.group.add(o.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(n){var r=n.coordinateSystem,i=r.getIndicatorAxes();if(!i.length)return;var a=n.get("shape"),o=n.getModel("splitLine"),s=n.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),f=s.get("show"),d=l.get("color"),h=u.get("color"),g=re(d)?d:[d],v=re(h)?h:[h],m=[],y=[];function b(M,R,N){var V=N%R.length;return M[V]=M[V]||[],V}if(a==="circle")for(var _=i[0].getTicksCoords(),O=r.cx,S=r.cy,x=0;x<_.length;x++){if(c){var w=b(m,g,x);m[w].push(new hs({shape:{cx:O,cy:S,r:_[x].coord}}))}if(f&&x<_.length-1){var w=b(y,v,x);y[w].push(new iv({shape:{cx:O,cy:S,r0:_[x].coord,r:_[x+1].coord}}))}}else for(var T,P=ie(i,function(M,R){var N=M.getTicksCoords();return T=T==null?N.length-1:Math.min(N.length-1,T),ie(N,function(V){return r.coordToPoint(V.coord,R)})}),C=[],x=0;x<=T;x++){for(var $=[],A=0;A<i.length;A++)$.push(P[A][x]);if($[0]?$.push($[0].slice()):process.env.NODE_ENV!=="production"&&console.error("Can't draw value axis "+x),c){var w=b(m,g,x);m[w].push(new Cr({shape:{points:$}}))}if(f&&C){var w=b(y,v,x-1);y[w].push(new wr({shape:{points:$.concat(C)}}))}C=$.slice().reverse()}var E=l.getLineStyle(),D=u.getAreaStyle();k(y,function(M,R){this.group.add(gi(M,{style:Te({stroke:"none",fill:v[R%v.length]},D),silent:!0}))},this),k(m,function(M,R){this.group.add(gi(M,{style:Te({fill:"none",stroke:g[R%g.length]},E),silent:!0}))},this)},e.type="radar",e}(At),T3e=function(t){U(e,t);function e(n,r,i){var a=t.call(this,n,r,i)||this;return a.type="value",a.angle=0,a.name="",a}return e}(ea),P3e=function(){function t(e,n,r){this.dimensions=[],this._model=e,this._indicatorAxes=ie(e.getIndicatorModels(),function(i,a){var o="indicator_"+a,s=new T3e(o,new ys);return s.name=i.get("name"),s.model=i,i.axis=s,this.dimensions.push(o),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,a=this.cx+e*Math.cos(i),o=this.cy-e*Math.sin(i);return[a,o]},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 a=Math.atan2(-r,n),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],f=Math.abs(a-c.angle);f<o&&(s=c,l=u,o=f)}return[l,+(s&&s.coordToData(i))]},t.prototype.resize=function(e,n){var r=e.get("center"),i=n.getWidth(),a=n.getHeight(),o=Math.min(i,a)/2;this.cx=he(r[0],i),this.cy=he(r[1],a),this.startAngle=e.get("startAngle")*Math.PI/180;var s=e.get("radius");(pe(s)||it(s))&&(s=[0,s]),this.r0=he(s[0],o),this.r=he(s[1],o),k(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;k(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();k(r,function(c){c.scale.unionExtentFromData(u,u.mapDimension(c.dim))})}},this);var a=i.get("splitNumber"),o=new ys;o.setExtent(0,a),o.setInterval(1),k(r,function(s,l){nU(s.scale,s.model,o)})},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 a=new t(i,e,n);r.push(a),i.coordinateSystem=a}),e.eachSeriesByType("radar",function(i){i.get("coordinateSystem")==="radar"&&(i.coordinateSystem=r[i.get("radarIndex")||0])}),r},t.dimensions=[],t}();function $3e(t){t.registerCoordinateSystem("radar",P3e),t.registerComponentModel(x3e),t.registerComponentView(C3e),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 A3e(t){je($3e),t.registerChartView(O3e),t.registerSeriesModel(S3e),t.registerLayout(b3e),t.registerProcessor(jv("radar")),t.registerPreprocessor(_3e)}var mU="\0_ec_interaction_mutex";function E3e(t,e,n){var r=uM(t);r[e]=n}function M3e(t,e,n){var r=uM(t),i=r[e];i===n&&(r[e]=null)}function yU(t,e){return!!uM(t)[e]}function uM(t){return t[mU]||(t[mU]={})}Ia({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},Jt);var Xv=function(t){U(e,t);function e(n){var r=t.call(this)||this;r._zr=n;var i=ve(r._mousedownHandler,r),a=ve(r._mousemoveHandler,r),o=ve(r._mouseupHandler,r),s=ve(r._mousewheelHandler,r),l=ve(r._pinchHandler,r);return r.enable=function(u,c){this.disable(),this._opt=Te($e(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",a),n.on("mouseup",o)),(u===!0||u==="scale"||u==="zoom")&&(n.on("mousewheel",s),n.on("pinch",l))},r.disable=function(){n.off("mousedown",i),n.off("mousemove",a),n.off("mouseup",o),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(!mW(n)){for(var r=n.target;r;){if(r.draggable)return;r=r.__hostTarget||r.parent}var i=n.offsetX,a=n.offsetY;this.pointerChecker&&this.pointerChecker(n,i,a)&&(this._x=i,this._y=a,this._dragging=!0)}},e.prototype._mousemoveHandler=function(n){if(!(!this._dragging||!fO("moveOnMouseMove",n,this._opt)||n.gestureEvent==="pinch"||yU(this._zr,"globalPan"))){var r=n.offsetX,i=n.offsetY,a=this._x,o=this._y,s=r-a,l=i-o;this._x=r,this._y=i,this._opt.preventDefaultMouseMove&&as(n.event),bU(this,"pan","moveOnMouseMove",n,{dx:s,dy:l,oldX:a,oldY:o,newX:r,newY:i,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(n){mW(n)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(n){var r=fO("zoomOnMouseWheel",n,this._opt),i=fO("moveOnMouseWheel",n,this._opt),a=n.wheelDelta,o=Math.abs(a),s=n.offsetX,l=n.offsetY;if(!(a===0||!r&&!i)){if(r){var u=o>3?1.4:o>1?1.2:1.1,c=a>0?u:1/u;cM(this,"zoom","zoomOnMouseWheel",n,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(i){var f=Math.abs(a),d=(a>0?1:-1)*(f>3?.4:f>1?.15:.05);cM(this,"scrollMove","moveOnMouseWheel",n,{scrollDelta:d,originX:s,originY:l,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(n){if(!yU(this._zr,"globalPan")){var r=n.pinchScale>1?1.1:1/1.1;cM(this,"zoom",null,n,{scale:r,originX:n.pinchX,originY:n.pinchY,isAvailableBehavior:null})}},e}(zi);function cM(t,e,n,r,i){t.pointerChecker&&t.pointerChecker(r,i.originX,i.originY)&&(as(r.event),bU(t,e,n,r,i))}function bU(t,e,n,r,i){i.isAvailableBehavior=ve(fO,null,n,r),t.trigger(e,i)}function fO(t,e,n){var r=n[t];return!t||r&&(!pe(r)||e.event[r+"Key"])}function fM(t,e,n){var r=t.target;r.x+=e,r.y+=n,r.dirty()}function dM(t,e,n,r){var i=t.target,a=t.zoomLimit,o=t.zoom=t.zoom||1;if(o*=e,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/t.zoom;t.zoom=o,i.x-=(n-i.x)*(u-1),i.y-=(r-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var I3e={axisPointer:1,tooltip:1,brush:1};function dO(t,e,n){var r=e.getComponentByElement(t.topTarget),i=r&&r.coordinateSystem;return r&&r!==n&&!I3e.hasOwnProperty(r.mainType)&&i&&i.model!==n}function _U(t){if(pe(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 hM,hO={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"},OU=Ue(hO),pO={"alignment-baseline":"textBaseline","stop-color":"stopColor"},SU=Ue(pO),D3e=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(e,n){n=n||{};var r=_U(e);if(process.env.NODE_ENV!=="production"&&!r)throw new Error("Illegal svg");this._defsUsePending=[];var i=new Me;this._root=i;var a=[],o=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),mi(r,i,null,!0,!1);for(var u=r.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;N3e(this._defs,this._defsUsePending),this._defsUsePending=[];var c,f;if(o){var d=gO(o);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=EU(c,{x:0,y:0,width:s,height:l}),!n.ignoreViewBox)){var h=i;i=new Me,i.add(h),h.scaleX=h.scaleY=f.scale,h.x=f.x,h.y=f.y}return!n.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new tt({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:c,viewBoxTransform:f,named:a}},t.prototype._parseNode=function(e,n,r,i,a,o){var s=e.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(a=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=n;else{if(!a){var c=hM[s];if(c&&me(hM,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 h=xU[s];if(h&&me(xU,s)){var g=h.call(this,e),v=e.getAttribute("id");v&&(this._defs[v]=g)}}if(l&&l.isGroup)for(var m=e.firstChild;m;)m.nodeType===1?this._parseNode(m,l,r,u,a,o):m.nodeType===3&&o&&this._parseText(m,l),m=m.nextSibling},t.prototype._parseText=function(e,n){var r=new yd({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});na(n,r),mi(e,r,this._defsUsePending,!1,!1),R3e(r,n);var i=r.style,a=i.fontSize;a&&a<9&&(i.fontSize=9,r.scaleX*=a/9,r.scaleY*=a/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var s=r.getBoundingRect();return this._textX+=s.width,n.add(r),r},t.internalField=function(){hM={g:function(e,n){var r=new Me;return na(n,r),mi(e,r,this._defsUsePending,!1,!1),r},rect:function(e,n){var r=new tt;return na(n,r),mi(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 hs;return na(n,r),mi(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 Cn;return na(n,r),mi(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 H_;return na(n,r),mi(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 a=new wr({shape:{points:i||[]},silent:!0});return na(n,a),mi(e,a,this._defsUsePending,!1,!1),a},polyline:function(e,n){var r=e.getAttribute("points"),i;r&&(i=TU(r));var a=new Cr({shape:{points:i||[]},silent:!0});return na(n,a),mi(e,a,this._defsUsePending,!1,!1),a},image:function(e,n){var r=new Ln;return na(n,r),mi(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",a=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(r)+parseFloat(a),this._textY=parseFloat(i)+parseFloat(o);var s=new Me;return na(n,s),mi(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 a=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new Me;return na(n,s),mi(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(a),this._textY+=parseFloat(o),s},path:function(e,n){var r=e.getAttribute("d")||"",i=DQ(r);return na(n,i),mi(e,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),t}(),xU={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),a=new wd(e,n,r,i);return wU(t,a),CU(t,a),a},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 j2(e,n,r);return wU(t,i),CU(t,i),i}};function wU(t,e){var n=t.getAttribute("gradientUnits");n==="userSpaceOnUse"&&(e.global=!0)}function CU(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 a={};AU(n,a,a);var o=a.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:o})}n=n.nextSibling}}function na(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Te(e.__inheritedStyle,t.__inheritedStyle))}function TU(t){for(var e=gO(t),n=[],r=0;r<e.length;r+=2){var i=parseFloat(e[r]),a=parseFloat(e[r+1]);n.push([i,a])}return n}function mi(t,e,n,r,i){var a=e,o=a.__inheritedStyle=a.__inheritedStyle||{},s={};t.nodeType===1&&(B3e(t,e),AU(t,o,s),r||z3e(t,o,s)),a.style=a.style||{},o.fill!=null&&(a.style.fill=PU(a,"fill",o.fill,n)),o.stroke!=null&&(a.style.stroke=PU(a,"stroke",o.stroke,n)),k(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(a.style[l]=parseFloat(o[l]))}),k(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(a.style[l]=o[l])}),i&&(a.__selfStyle=s),o.lineDash&&(a.style.lineDash=ie(gO(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(a.invisible=!0),o.display==="none"&&(a.ignore=!0)}function R3e(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 a=e.__inheritedStyle;if(a){var o=a.textAlign,s=o;o&&(o==="middle"&&(s="center"),t.style.textAlign=s)}}var k3e=/^url\(\s*#(.*?)\)/;function PU(t,e,n,r){var i=n&&n.match(k3e);if(i){var a=Bi(i[1]);r.push([t,e,a]);return}return n==="none"&&(n=null),n}function N3e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r[0].style[r[1]]=t[r[2]]}}var L3e=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function gO(t){return t.match(L3e)||[]}var V3e=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,pM=Math.PI/180;function B3e(t,e){var n=t.getAttribute("transform");if(n){n=n.replace(/,/g," ");var r=[],i=null;n.replace(V3e,function(f,d,h){return r.push(d,h),""});for(var a=r.length-1;a>0;a-=2){var o=r[a],s=r[a-1],l=gO(o);switch(i=i||zr(),s){case"translate":Sa(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":e_(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":el(i,i,-parseFloat(l[0])*pM,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*pM);no(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*pM);no(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 $U=/([^\s:;]+)\s*:\s*([^:;]+)/g;function AU(t,e,n){var r=t.getAttribute("style");if(r){$U.lastIndex=0;for(var i;(i=$U.exec(r))!=null;){var a=i[1],o=me(hO,a)?hO[a]:null;o&&(e[o]=i[2]);var s=me(pO,a)?pO[a]:null;s&&(n[s]=i[2])}}}function z3e(t,e,n){for(var r=0;r<OU.length;r++){var i=OU[r],a=t.getAttribute(i);a!=null&&(e[hO[i]]=a)}for(var r=0;r<SU.length;r++){var i=SU[r],a=t.getAttribute(i);a!=null&&(n[pO[i]]=a)}}function EU(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 F3e(t,e){var n=new D3e;return n.parse(t,e)}var W3e=be(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),Q3e=function(){function t(e,n){this.type="geoSVG",this._usedGraphicMap=be(),this._freedGraphics=[],this._mapName=e,this._parsedXML=_U(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=j3e(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&&F3e(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},r=n.root,Pe(r!=null)}catch(m){throw new Error(`Invalid svg format
  316. `+m.message)}var i=new Me;i.add(r),i.isGeoSVGGraphicRoot=!0;var a=n.width,o=n.height,s=n.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,c=void 0,f=void 0,d=void 0;if(a!=null?(u=0,f=a):s&&(u=s.x,f=s.width),o!=null?(c=0,d=o):s&&(c=s.y,d=s.height),u==null||c==null){var h=r.getBoundingRect();u==null&&(u=h.x,f=h.width),c==null&&(c=h.y,d=h.height)}l=this._boundingRect=new ze(u,c,f,d)}if(s){var g=EU(s,l);r.scaleX=r.scaleY=g.scale,r.x=g.x,r.y=g.y}i.setClipPath(new tt({shape:l.plain()}));var v=[];return k(n.named,function(m){W3e.get(m.svgNodeTagLower)!=null&&(v.push(m),H3e(m.el))}),{root:i,boundingRect:l,named:v}},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 H3e(t){t.silent=!1,t.isGroup&&t.traverse(function(e){e.silent=!1})}function j3e(t){var e=[],n=be();return k(t,function(r){if(r.namedFrom==null){var i=new E4e(r.name,r.el);e.push(i),n.set(r.name,i)}}),{regions:e,regionsMap:n}}for(var gM=[126,25],MU="南海诸岛",Ec=[[[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]]],Mc=0;Mc<Ec.length;Mc++)for(var nh=0;nh<Ec[Mc].length;nh++)Ec[Mc][nh][0]/=10.5,Ec[Mc][nh][1]/=-10.5/.75,Ec[Mc][nh][0]+=gM[0],Ec[Mc][nh][1]+=gM[1];function G3e(t,e){if(t==="china"){for(var n=0;n<e.length;n++)if(e[n].name===MU)return;e.push(new _G(MU,ie(Ec,function(r){return{type:"polygon",exterior:r}}),gM))}}var Z3e={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function U3e(t,e){if(t==="china"){var n=Z3e[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 X3e=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function Y3e(t,e){t==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:X3e[0]})}var q3e="name",K3e=function(){function t(e,n,r){this.type="geoJSON",this._parsedMap=be(),this._mapName=e,this._specialAreas=r,this._geoJSON=eVe(n)}return t.prototype.load=function(e,n){n=n||q3e;var r=this._parsedMap.get(n);if(!r){var i=this._parseToRegions(n);r=this._parsedMap.set(n,{regions:i,boundingRect:J3e(i)})}var a=be(),o=[];return k(r.regions,function(s){var l=s.name;e&&me(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),a.set(l,s)}),{regions:o,boundingRect:r.boundingRect||new ze(0,0,0,0),regionsMap:a}},t.prototype._parseToRegions=function(e){var n=this._mapName,r=this._geoJSON,i;try{i=r?PE(r,e):[]}catch(a){throw new Error(`Invalid geoJson format
  317. `+a.message)}return G3e(n,i),k(i,function(a){var o=a.name;U3e(n,a),Y3e(n,a);var s=this._specialAreas&&this._specialAreas[o];s&&a.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 J3e(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 eVe(t){return pe(t)?typeof JSON<"u"&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")():t}var Yv=be();const bs={registerMap:function(t,e,n){if(e.svg){var r=new Q3e(t,e.svg);Yv.set(t,r)}else{var i=e.geoJson||e.geoJSON;i&&!e.features?n=e.specialAreas:i=e;var r=new K3e(t,i,n);Yv.set(t,r)}},getGeoResource:function(t){return Yv.get(t)},getMapForUser:function(t){var e=Yv.get(t);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(t,e,n){var r=Yv.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 vM=["rect","circle","line","ellipse","polygon","polyline","path"],tVe=be(vM),nVe=be(vM.concat(["g"])),rVe=be(vM.concat(["g"])),IU=et();function vO(t){var e=t.getItemStyle(),n=t.get("areaColor");return n!=null&&(e.fill=n),e}function DU(t){var e=t.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var RU=function(){function t(e){var n=new Me;this.uid=Md("ec_map_draw"),this._controller=new Xv(e.getZr()),this._controllerHost={target:n},this.group=n,n.add(this._regionsGroup=new Me),n.add(this._svgGroup=new Me)}return t.prototype.draw=function(e,n,r,i,a){var o=e.mainType==="geo",s=e.getData&&e.getData();o&&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,h=f.roam,g=!u.childAt(0)||a;g?(c.x=h.x,c.y=h.y,c.scaleX=h.scaleX,c.scaleY=h.scaleY,c.dirty()):ot(c,h,e);var v=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,m={api:r,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:v,isGeo:o,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,a=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function c(h,g){return g&&(h=g(h)),h&&[h[0]*a.scaleX+a.x,h[1]*a.scaleY+a.y]}function f(h){for(var g=[],v=!u&&l&&l.project,m=0;m<h.length;++m){var y=c(h[m],v);y&&g.push(y)}return g}function d(h){return{shape:{points:f(h)}}}i.removeAll(),k(e.geo.regions,function(h){var g=h.name,v=n.get(g),m=r.get(g)||{},y=m.dataIdx,b=m.regionModel;v||(v=n.set(g,new Me),i.add(v),y=s?s.indexOfName(g):null,b=e.isGeo?o.getRegionModel(g):s?s.getItemModel(y):null,r.set(g,{dataIdx:y,regionModel:b}));var _=[],O=[];k(h.geometries,function(w){if(w.type==="polygon"){var T=[w.exterior].concat(w.interiors||[]);u&&(T=zU(T,u)),k(T,function(C){_.push(new wr(d(C)))})}else{var P=w.points;u&&(P=zU(P,u,!0)),k(P,function(C){O.push(new Cr(d(C)))})}});var S=c(h.getCenter(),l&&l.project);function x(w,T){if(w.length){var P=new Z_({culling:!0,segmentIgnoreThreshold:1,shape:{paths:w}});v.add(P),kU(e,P,y,b),NU(e,P,g,b,o,y,S),T&&(DU(P),k(P.states,DU))}}x(_),x(O,!0)}),n.each(function(h,g){var v=r.get(g),m=v.dataIdx,y=v.regionModel;LU(e,h,g,y,o,m),VU(e,h,g,y,o),BU(e,h,g,y,o)},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(),a=!1;k(this._svgGraphicRecord.named,function(o){var s=o.name,l=e.mapOrGeoModel,u=e.data,c=o.svgNodeTagLower,f=o.el,d=u?u.indexOfName(s):null,h=l.getRegionModel(s);if(tVe.get(c)!=null&&f instanceof ji&&kU(e,f,d,h),f instanceof ji&&(f.culling=!0),f.z2EmphasisLift=0,!o.namedFrom&&(rVe.get(c)!=null&&NU(e,f,s,h,l,d,null),LU(e,f,s,h,l,d),VU(e,f,s,h,l),nVe.get(c)!=null)){var g=BU(e,f,s,h,l);g==="self"&&(a=!0);var v=i.get(s)||i.set(s,[]);v.push(f)}},this),this._enableBlurEntireSVG(a,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(a){if(!a.isGroup){Ku(a);var o=a.ensureState("blur").style||{};o.opacity==null&&i!=null&&(o.opacity=i),a.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 a=i.get(e);return a?[a]:[]}}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=bs.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=bs.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,a=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=i.getZoom(),a.enable(e.get("roam")||!1);var s=e.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=e.id,u}a.off("pan").on("pan",function(u){this._mouseDownFlag=!1,fM(o,u.dx,u.dy),r.dispatchAction(ne(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),a.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,dM(o,u.scale,u.originX,u.originY),r.dispatchAction(ne(l(),{totalZoom:o.zoom,zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),a.setPointerChecker(function(u,c,f){return i.containPoint([c,f])&&!dO(u,r,e)})},t.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var n=e.getTextContent();n&&(n.ignore=IU(n).ignore)})},t.prototype._updateMapSelectHandler=function(e,n,r,i){var a=this;n.off("mousedown"),n.off("click"),e.get("selectedMode")&&(n.on("mousedown",function(){a._mouseDownFlag=!0}),n.on("click",function(o){a._mouseDownFlag&&(a._mouseDownFlag=!1)}))},t}();function kU(t,e,n,r){var i=r.getModel("itemStyle"),a=r.getModel(["emphasis","itemStyle"]),o=r.getModel(["blur","itemStyle"]),s=r.getModel(["select","itemStyle"]),l=vO(i),u=vO(a),c=vO(s),f=vO(o),d=t.data;if(d){var h=d.getItemVisual(n,"style"),g=d.getItemVisual(n,"decal");t.isVisualEncodedByVisualMap&&h.fill&&(l.fill=h.fill),g&&(l.decal=jd(g,t.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=c,e.ensureState("blur").style=f,Ku(e)}function NU(t,e,n,r,i,a,o){var s=t.data,l=t.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),a)),c=s&&s.getItemLayout(a);if(l||u||c&&c.showLabel){var f=l?n:a,d=void 0;(!s||a>=0)&&(d=i);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Un(e,Tn(r),{labelFetcher:d,labelDataIndex:f,defaultText:n},h);var g=e.getTextContent();if(g&&(IU(g).ignore=g.ignore,e.textConfig&&o)){var v=e.getBoundingRect().clone();e.textConfig.layoutRect=v,e.textConfig.position=[(o[0]-v.x)/v.width*100+"%",(o[1]-v.y)/v.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function LU(t,e,n,r,i,a){t.data?t.data.setItemGraphicEl(a,e):De(e).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:n,region:r&&r.option||{}}}function VU(t,e,n,r,i){t.data||Ad({el:e,componentModel:i,itemName:n,itemTooltipOption:r.get("tooltip")})}function BU(t,e,n,r,i){e.highDownSilentOnTouch=!!i.get("selectedMode");var a=r.getModel("emphasis"),o=a.get("focus");return Xt(e,o,a.get("blurScope"),a.get("disabled")),t.isGeo&&IDe(e,i,n),o}function zU(t,e,n){var r=[],i;function a(){i=[]}function o(){i.length&&(r.push(i),i=[])}var s=e({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!n&&s.polygonStart(),k(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 iVe=function(t){U(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,a){if(!(a&&a.type==="mapToggleSelect"&&a.from===this.uid)){var o=this.group;if(o.removeAll(),!n.getHostGeoModel()){if(this._mapDraw&&a&&a.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),a&&a.type==="geoRoam"&&a.componentType==="series"&&a.seriesId===n.id){var s=this._mapDraw;s&&o.add(s.group)}else if(n.needsDrawMap){var s=this._mapDraw||new RU(i);o.add(s.group),s.draw(n,r,i,this,a),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 a=n.originalData,o=this.group;a.each(a.mapDimension("value"),function(s,l){if(!isNaN(s)){var u=a.getItemLayout(l);if(!(!u||!u.point)){var c=u.point,f=u.offset,d=new hs({style:{fill:n.getData().getVisual("style").fill},shape:{cx:c[0]+f*9,cy:c[1],r:3},silent:!0,z2:8+(f?0:_d+1)});if(!f){var h=n.mainSeries.getData(),g=a.getName(l),v=h.indexOfName(g),m=a.getItemModel(l),y=m.getModel("label"),b=h.getItemGraphicEl(v);Un(d,Tn(m),{labelFetcher:{getFormattedLabel:function(_,O){return n.getFormattedLabel(v,O)}},defaultText:g}),d.disableLabelAnimation=!0,y.get("position")||d.setTextConfig({position:"bottom"}),b.onHoverStateChange=function(_){F_(d,_)}}o.add(d)}}})},e.type="map",e}(_t),aVe=function(t){U(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),a=this.coordinateSystem,o=a.getRegion(i);return o&&a.dataToPoint(o.getCenter())}},n}return e.prototype.getInitialData=function(n){for(var r=eh(this,{coordDimensions:["value"],encodeDefaulter:ke(mA,this)}),i=be(),a=[],o=0,s=r.count();o<s;o++){var l=r.getName(o);i.set(l,!0)}var u=bs.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return k(u.regions,function(c){var f=c.name;i.get(f)||a.push(f)}),r.appendValues([],a),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 a=this.getData(),o=this.getRawValue(n),s=a.getName(n),l=this.seriesGroup,u=[],c=0;c<l.length;c++){var f=l[c].originalData.indexOfName(s),d=a.mapDimension("value");isNaN(l[c].originalData.get(d,f))||u.push(l[c].name)}return Pn("section",{header:u.join(", "),noHeader:!u.length,blocks:[Pn("nameValue",{name:s,value:o})]})},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=rn(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}(Ct);function oVe(t,e){var n={};return k(t,function(r){r.each(r.mapDimension("value"),function(i,a){var o="ec-"+r.getName(a);n[o]=n[o]||[],isNaN(i)||n[o].push(i)})}),t[0].map(t[0].mapDimension("value"),function(r,i){for(var a="ec-"+t[0].getName(i),o=0,s=1/0,l=-1/0,u=n[a].length,c=0;c<u;c++)s=Math.min(s,n[a][c]),l=Math.max(l,n[a][c]),o+=n[a][c];var f;return e==="min"?f=s:e==="max"?f=l:e==="average"?f=o/u:f=o,u===0?NaN:f})}function sVe(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)}),k(e,function(n,r){for(var i=oVe(ie(n,function(o){return o.getData()}),n[0].get("mapValueCalculation")),a=0;a<n.length;a++)n[a].originalData=n[a].getData();for(var a=0;a<n.length;a++)n[a].seriesGroup=n,n[a].needsDrawMap=a===0&&!n[a].getHostGeoModel(),n[a].setData(i.cloneShallow()),n[a].mainSeries=n[0]})}function lVe(t){var e={};t.eachSeriesByType("map",function(n){var r=n.getMapType();if(!(n.getHostGeoModel()||e[r])){var i={};k(n.seriesGroup,function(o){var s=o.coordinateSystem,l=o.originalData;o.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 h=i[f]||0,g=s.dataToPoint(d.getCenter());i[f]=h+1,l.setItemLayout(c,{point:g,offset:h})}})});var a=n.getData();a.each(function(o){var s=a.getName(o),l=a.getItemLayout(o)||{};l.showLabel=!i[s],a.setItemLayout(o,l)}),e[r]=!0}})}var FU=kn,qv=function(t){U(e,t);function e(n){var r=t.call(this)||this;return r.type="view",r.dimensions=["x","y"],r._roamTransformable=new ss,r._rawTransformable=new ss,r.name=n,r}return e.prototype.setBoundingRect=function(n,r,i,a){return this._rect=new ze(n,r,i,a),this._rect},e.prototype.getBoundingRect=function(){return this._rect},e.prototype.setViewRect=function(n,r,i,a){this._transformTo(n,r,i,a),this._viewRect=new ze(n,r,i,a)},e.prototype._transformTo=function(n,r,i,a){var o=this.getBoundingRect(),s=this._rawTransformable;s.transform=o.calculateTransform(new ze(n,r,i,a));var l=s.parent;s.parent=null,s.decomposeTransform(),s.parent=l,this._updateTransform()},e.prototype.setCenter=function(n,r){n&&(this._center=[he(n[0],r.getWidth()),he(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(),a=this.getCenter(),o=this.getZoom();a=kn([],a,n),i=kn([],i,n),r.originX=a[0],r.originY=a[1],r.x=i[0]-a[0],r.y=i[1]-a[1],r.scaleX=r.scaleY=o,this._updateTransform()},e.prototype._updateTransform=function(){var n=this._roamTransformable,r=this._rawTransformable;r.parent=n,n.updateTransform(),r.updateTransform(),Jb(this.transform||(this.transform=[]),r.transform||zr()),this._rawTransform=r.getLocalTransform(),this.invTransform=this.invTransform||[],Eu(this.invTransform,this.transform),this.decomposeTransform()},e.prototype.getTransformInfo=function(){var n=this._rawTransformable,r=this._roamTransformable,i=new ss;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 a=r?this._rawTransform:this.transform;return i=i||[],a?FU(i,n,a):ir(i,n)},e.prototype.pointToData=function(n){var r=this.invTransform;return r?FU([],n,r):[n[0],n[1]]},e.prototype.convertToPixel=function(n,r,i){var a=WU(r);return a===this?a.dataToPoint(i):null},e.prototype.convertFromPixel=function(n,r,i){var a=WU(r);return a===this?a.pointToData(i):null},e.prototype.containPoint=function(n){return this.getViewRectAfterRoam().contain(n[0],n[1])},e.dimensions=["x","y"],e}(ss);function WU(t){var e=t.seriesModel;return e?e.coordinateSystem:null}var uVe={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},QU=["lng","lat"],HU=function(t){U(e,t);function e(n,r,i){var a=t.call(this,n)||this;a.dimensions=QU,a.type="geo",a._nameCoordMap=be(),a.map=r;var o=i.projection,s=bs.load(r,i.nameMap,i.nameProperty),l=bs.getGeoResource(r),u=a.resourceType=l?l.type:null,c=a.regions=s.regions,f=uVe[l.type];a._regionsMap=s.regionsMap,a.regions=s.regions,process.env.NODE_ENV!=="production"&&o&&(u==="geoSVG"&&(process.env.NODE_ENV!=="production"&&Wt("Map "+r+" with SVG source can't use projection. Only GeoJSON source supports projection."),o=null),o.project&&o.unproject||(process.env.NODE_ENV!=="production"&&Wt("project and unproject must be both provided in the projeciton."),o=null)),a.projection=o;var d;if(o)for(var h=0;h<c.length;h++){var g=c[h].getBoundingRect(o);d=d||g.clone(),d.union(g)}else d=s.boundingRect;return a.setBoundingRect(d.x,d.y,d.width,d.height),a.aspectScale=o?1:Re(i.aspectScale,f.aspectScale),a._invertLongitute=o?!1:f.invertLongitute,a}return e.prototype._transformTo=function(n,r,i,a){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new ze(n,r,i,a));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 a=r[i];if(a.type==="geoJSON"&&a.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(pe(n)&&(n=this.getGeoCoord(n)),n){var a=this.projection;return a&&(n=a.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 a=jU(r);return a===this?a.dataToPoint(i):null},e.prototype.convertFromPixel=function(n,r,i){var a=jU(r);return a===this?a.pointToData(i):null},e}(qv);Kt(HU,qv);function jU(t){var e=t.geoModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem||(n.getReferringComponents("geo",on).models[0]||{}).coordinateSystem:null}const GU=HU;function ZU(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 a=this.projection;if(a){var o=r[0],s=r[1],l=i[0],u=i[1];r=[1/0,1/0],i=[-1/0,-1/0];var c=function(x,w,T,P){for(var C=T-x,$=P-w,A=0;A<=100;A++){var E=A/100,D=a.project([x+C*E,w+$*E]);rs(r,r,D),is(i,i,D)}};c(o,s,l,s),c(l,s,l,u),c(l,u,o,u),c(o,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"),h=t.get("layoutSize"),g=e.getWidth(),v=e.getHeight(),m=f.width/f.height*this.aspectScale,y=!1,b,_;d&&h&&(b=[he(d[0],g),he(d[1],v)],_=he(h,Math.min(g,v)),!isNaN(b[0])&&!isNaN(b[1])&&!isNaN(_)?y=!0:process.env.NODE_ENV!=="production"&&console.warn("Given layoutCenter or layoutSize data are invalid. Use left/top/width/height instead."));var O;if(y)O={},m>1?(O.width=_,O.height=_/m):(O.height=_,O.width=_*m),O.y=b[1]-O.height/2,O.x=b[0]-O.width/2;else{var S=t.getBoxLayoutParams();S.aspect=m,O=sn(S,{width:g,height:v})}this.setViewRect(O.x,O.y,O.width,O.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}function cVe(t,e){k(e.get("geoCoord"),function(n,r){t.addGeoCoord(r,n)})}var fVe=function(){function t(){this.dimensions=QU}return t.prototype.create=function(e,n){var r=[];function i(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new GU(l+s,l,ne({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),r.push(u),o.coordinateSystem=u,u.model=o,u.resize=ZU,u.resize(o,n)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=r[l]}});var a={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();a[s]=a[s]||[],a[s].push(o)}}),k(a,function(o,s){var l=ie(o,function(c){return c.get("nameMap")}),u=new GU(s,s,ne({nameMap:Ub(l)},i(o[0])));u.zoomLimit=tn.apply(null,ie(o,function(c){return c.get("scaleLimit")})),r.push(u),u.resize=ZU,u.resize(o[0],n),k(o,function(c){c.coordinateSystem=u,cVe(u,c)})}),r},t.prototype.getFilledRegions=function(e,n,r,i){for(var a=(e||[]).slice(),o=be(),s=0;s<a.length;s++)o.set(a[s].name,a[s]);var l=bs.load(n,r,i);return k(l.regions,function(u){var c=u.name;!o.get(c)&&a.push({name:c})}),a},t}(),UU=new fVe,dVe=function(t){U(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 a=bs.getGeoResource(n.map);if(a&&a.type==="geoJSON"){var o=n.itemStyle=n.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(n,i),Bu(n,"label",["show"])},e.prototype.optionUpdated=function(){var n=this,r=this.option;r.regions=UU.getFilledRegions(r.regions,r.map,r.nameMap,r.nameProperty);var i={};this._optionModelMap=Vi(r.regions||[],function(a,o){var s=o.name;return s&&(a.set(s,new wt(o,n,n.ecModel)),o.selected&&(i[s]=!0)),a},be()),r.selectedMap||(r.selectedMap=i)},e.prototype.getRegionModel=function(n){return this._optionModelMap.get(n)||new wt(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(n,r){var i=this.getRegionModel(n),a=r==="normal"?i.get(["label","formatter"]):i.get(["emphasis","label","formatter"]),o={name:n};if(xe(a))return o.status=r,a(o);if(pe(a))return a.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 a=r.selectedMap||(r.selectedMap={});a[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}(He);function XU(t,e){return t.pointToProjected?t.pointToProjected(e):t.pointToData(e)}function mM(t,e,n,r){var i=t.getZoom(),a=t.getCenter(),o=e.zoom,s=t.projectedToPoint?t.projectedToPoint(a):t.dataToPoint(a);if(e.dx!=null&&e.dy!=null&&(s[0]-=e.dx,s[1]-=e.dy,t.setCenter(XU(t,s),r)),o!=null){if(n){var l=n.min||0,u=n.max||1/0;o=Math.max(Math.min(i*o,u),l)/i}t.scaleX*=o,t.scaleY*=o;var c=(e.originX-t.x)*(o-1),f=(e.originY-t.y)*(o-1);t.x-=c,t.y-=f,t.updateTransform(),t.setCenter(XU(t,s),r),t.setZoom(o*i)}return{center:t.getCenter(),zoom:t.getZoom()}}var hVe=function(t){U(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,a){if(this._model=n,!n.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new RU(i));var o=this._mapDraw;o.draw(n,r,i,this,a),o.group.on("click",this._handleRegionClick,this),o.group.silent=n.get("silent"),this.group.add(o.group),this.updateSelectStatus(n,r,i)},e.prototype._handleRegionClick=function(n){var r;hc(n.target,function(i){return(r=De(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 a=this;this._mapDraw.group.traverse(function(o){var s=De(o).eventData;if(s)return a._model.isSelected(s.name)?i.enterSelect(o):i.leaveSelect(o),!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}(At);function pVe(t,e,n){bs.registerMap(t,e,n)}function YU(t){t.registerCoordinateSystem("geo",UU),t.registerComponentModel(dVe),t.registerComponentView(hVe),t.registerImpl("registerMap",pVe),t.registerImpl("getMap",function(n){return bs.getMapForUser(n)});function e(n,r){r.update="geo:updateSelectStatus",t.registerAction(r,function(i,a){var o={},s=[];return a.eachComponent({mainType:"geo",query:i},function(l){l[n](i.name);var u=l.coordinateSystem;k(u.regions,function(f){o[f.name]=l.isSelected(f.name)||!1});var c=[];k(o,function(f,d){o[d]&&c.push(d)}),s.push({geoIndex:l.componentIndex,name:c})}),{selected:o,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 a=n.componentType||"series";r.eachComponent({mainType:a,query:n},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=mM(s,n,o.get("scaleLimit"),i);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),a==="series"&&k(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function gVe(t){je(YU),t.registerChartView(iVe),t.registerSeriesModel(aVe),t.registerLayout(lVe),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,sVe),qj("map",t.registerAction)}function vVe(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 a=i.length,o=a-1;o>=0;o--){var s=i[o];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},n.push(s)}}function mVe(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){_Ve(t);var a=(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-a):t.hierNode.prelim=a}else i&&(t.hierNode.prelim=i.hierNode.prelim+e(t,i));t.parentNode.hierNode.defaultAncestor=OVe(t,i,t.parentNode.hierNode.defaultAncestor||r[0],e)}function yVe(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function qU(t){return arguments.length?t:wVe}function Kv(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function bVe(t,e){return sn(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function _Ve(t){for(var e=t.children,n=e.length,r=0,i=0;--n>=0;){var a=e[n];a.hierNode.prelim+=r,a.hierNode.modifier+=r,i+=a.hierNode.change,r+=a.hierNode.shift+i}}function OVe(t,e,n,r){if(e){for(var i=t,a=t,o=a.parentNode.children[0],s=e,l=i.hierNode.modifier,u=a.hierNode.modifier,c=o.hierNode.modifier,f=s.hierNode.modifier;s=yM(s),a=bM(a),s&&a;){i=yM(i),o=bM(o),i.hierNode.ancestor=t;var d=s.hierNode.prelim+f-a.hierNode.prelim-u+r(s,a);d>0&&(xVe(SVe(s,t,n),t,d),u+=d,l+=d),f+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=i.hierNode.modifier,c+=o.hierNode.modifier}s&&!yM(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=f-l),a&&!bM(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-c,n=t)}return n}function yM(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function bM(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function SVe(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function xVe(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 wVe(t,e){return t.parentNode===e.parentNode?1:2}var CVe=function(){function t(){this.parentPoint=[],this.childPoints=[]}return t}(),TVe=function(t){U(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 CVe},e.prototype.buildPath=function(n,r){var i=r.childPoints,a=i.length,o=r.parentPoint,s=i[0],l=i[a-1];if(a===1){n.moveTo(o[0],o[1]),n.lineTo(s[0],s[1]);return}var u=r.orient,c=u==="TB"||u==="BT"?0:1,f=1-c,d=he(r.forkPosition,1),h=[];h[c]=o[c],h[f]=o[f]+(l[f]-o[f])*d,n.moveTo(o[0],o[1]),n.lineTo(h[0],h[1]),n.moveTo(s[0],s[1]),h[c]=s[c],n.lineTo(h[0],h[1]),h[c]=l[c],n.lineTo(h[0],h[1]),n.lineTo(l[0],l[1]);for(var g=1;g<a-1;g++){var v=i[g];n.moveTo(v[0],v[1]),h[c]=v[c],n.lineTo(h[0],h[1])}},e}(Ge),PVe=function(t){U(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._mainGroup=new Me,n}return e.prototype.init=function(n,r){this._controller=new Xv(r.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},e.prototype.render=function(n,r,i){var a=n.getData(),o=n.layoutInfo,s=this._mainGroup,l=n.get("layout");l==="radial"?(s.x=o.x+o.width/2,s.y=o.y+o.height/2):(s.x=o.x,s.y=o.y),this._updateViewCoordSys(n,i),this._updateController(n,r,i);var u=this._data;a.diff(u).add(function(c){KU(a,c)&&JU(a,c,null,s,n)}).update(function(c,f){var d=u.getItemGraphicEl(f);if(!KU(a,c)){d&&nX(u,f,d,s,n);return}JU(a,c,d,s,n)}).remove(function(c){var f=u.getItemGraphicEl(c);f&&nX(u,c,f,s,n)}).execute(),this._nodeScaleRatio=n.get("nodeScaleRatio"),this._updateNodeAndLinkScale(n),n.get("expandAndCollapse")===!0&&a.eachItemGraphicEl(function(c,f){c.off("click").on("click",function(){i.dispatchAction({type:"treeExpandAndCollapse",seriesId:n.id,dataIndex:f})})}),this._data=a},e.prototype._updateViewCoordSys=function(n,r){var i=n.getData(),a=[];i.each(function(f){var d=i.getItemLayout(f);d&&!isNaN(d.x)&&!isNaN(d.y)&&a.push([+d.x,+d.y])});var o=[],s=[];k_(a,o,s);var l=this._min,u=this._max;s[0]-o[0]===0&&(o[0]=l?l[0]:o[0]-1,s[0]=u?u[0]:s[0]+1),s[1]-o[1]===0&&(o[1]=l?l[1]:o[1]-1,s[1]=u?u[1]:s[1]+1);var c=n.coordinateSystem=new qv;c.zoomLimit=n.get("scaleLimit"),c.setBoundingRect(o[0],o[1],s[0]-o[0],s[1]-o[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=o,this._max=s},e.prototype._updateController=function(n,r,i){var a=this,o=this._controller,s=this._controllerHost,l=this.group;o.setPointerChecker(function(u,c,f){var d=l.getBoundingRect();return d.applyTransform(l.transform),d.contain(c,f)&&!dO(u,i,n)}),o.enable(n.get("roam")),s.zoomLimit=n.get("scaleLimit"),s.zoom=n.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){fM(s,u.dx,u.dy),i.dispatchAction({seriesId:n.id,type:"treeRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){dM(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:n.id,type:"treeRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(n),i.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(n){var r=n.getData(),i=this._getNodeGlobalScale(n);r.eachItemGraphicEl(function(a,o){a.setSymbolScale(i)})},e.prototype._getNodeGlobalScale=function(n){var r=n.coordinateSystem;if(r.type!=="view")return 1;var i=this._nodeScaleRatio,a=r.scaleX||1,o=r.getZoom(),s=(o-1)*i+1;return s/a},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}(_t);function KU(t,e){var n=t.getItemLayout(e);return n&&!isNaN(n.x)&&!isNaN(n.y)}function JU(t,e,n,r,i){var a=!n,o=t.tree.getNodeByDataIndex(e),s=o.getModel(),l=o.getVisual("style").fill,u=o.isExpand===!1&&o.children.length!==0?l:"#fff",c=t.tree.root,f=o.parentNode===c?o:o.parentNode||o,d=t.getItemGraphicEl(f.dataIndex),h=f.getLayout(),g=d?{x:d.__oldX,y:d.__oldY,rawX:d.__radialOldRawX,rawY:d.__radialOldRawY}:h,v=o.getLayout();a?(n=new zv(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.x=g.x,n.y=g.y):n.updateData(t,e,null,{symbolInnerColor:u,useNameLabel:!0}),n.__radialOldRawX=n.__radialRawX,n.__radialOldRawY=n.__radialRawY,n.__radialRawX=v.rawX,n.__radialRawY=v.rawY,r.add(n),t.setItemGraphicEl(e,n),n.__oldX=n.x,n.__oldY=n.y,ot(n,{x:v.x,y:v.y},i);var m=n.getSymbolPath();if(i.get("layout")==="radial"){var y=c.children[0],b=y.getLayout(),_=y.children.length,O=void 0,S=void 0;if(v.x===b.x&&o.isExpand===!0&&y.children.length){var x={x:(y.children[0].getLayout().x+y.children[_-1].getLayout().x)/2,y:(y.children[0].getLayout().y+y.children[_-1].getLayout().y)/2};O=Math.atan2(x.y-b.y,x.x-b.x),O<0&&(O=Math.PI*2+O),S=x.x<b.x,S&&(O=O-Math.PI)}else O=Math.atan2(v.y-b.y,v.x-b.x),O<0&&(O=Math.PI*2+O),o.children.length===0||o.children.length!==0&&o.isExpand===!1?(S=v.x<b.x,S&&(O=O-Math.PI)):(S=v.x>b.x,S||(O=O-Math.PI));var w=S?"left":"right",T=s.getModel("label"),P=T.get("rotate"),C=P*(Math.PI/180),$=m.getTextContent();$&&(m.setTextConfig({position:T.get("position")||w,rotation:P==null?-O:C,origin:"center"}),$.setStyle("verticalAlign","middle"))}var A=s.get(["emphasis","focus"]),E=A==="relative"?bg(o.getAncestorsIndices(),o.getDescendantIndices()):A==="ancestor"?o.getAncestorsIndices():A==="descendant"?o.getDescendantIndices():null;E&&(De(n).focus=E),$Ve(i,o,c,n,g,h,v,r),n.__edge&&(n.onHoverStateChange=function(D){if(D!=="blur"){var M=o.parentNode&&t.getItemGraphicEl(o.parentNode.dataIndex);M&&M.hoverState===qg||F_(n.__edge,D)}})}function $Ve(t,e,n,r,i,a,o,s){var l=e.getModel(),u=t.get("edgeShape"),c=t.get("layout"),f=t.getOrient(),d=t.get(["lineStyle","curveness"]),h=t.get("edgeForkPosition"),g=l.getModel("lineStyle").getLineStyle(),v=r.__edge;if(u==="curve")e.parentNode&&e.parentNode!==n&&(v||(v=r.__edge=new av({shape:_M(c,f,d,i,i)})),ot(v,{shape:_M(c,f,d,a,o)},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 _=m[b].getLayout();y.push([_.x,_.y])}v||(v=r.__edge=new TVe({shape:{parentPoint:[o.x,o.y],childPoints:[[o.x,o.y]],orient:f,forkPosition:h}})),ot(v,{shape:{parentPoint:[o.x,o.y],childPoints:y}},t)}}else if(process.env.NODE_ENV!=="production")throw new Error("The polyline edgeShape can only be used in orthogonal layout")}v&&!(u==="polyline"&&!e.isExpand)&&(v.useStyle(Te({strokeNoScale:!0,fill:null},g)),Zn(v,l,"lineStyle"),Ku(v),s.add(v))}function eX(t,e,n,r,i){var a=e.tree.root,o=tX(a,t),s=o.source,l=o.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),h=r.get("edgeShape"),g=r.get("layout"),v=r.get("orient"),m=r.get(["lineStyle","curveness"]);d&&(h==="curve"?dl(d,{shape:_M(g,v,m,l,l),style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:i}):h==="polyline"&&r.get("layout")==="orthogonal"&&dl(d,{shape:{parentPoint:[l.x,l.y],childPoints:[[l.x,l.y]]},style:{opacity:0}},r,{cb:function(){n.remove(d)},removeOpt:i}))}}function tX(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 nX(t,e,n,r,i){var a=t.tree.getNodeByDataIndex(e),o=t.tree.root,s=tX(o,a).sourceLayout,l={duration:i.get("animationDurationUpdate"),easing:i.get("animationEasingUpdate")};dl(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}),a.children.forEach(function(u){eX(u,t,r,i,l)}),eX(a,t,r,i,l)}function _M(t,e,n,r,i){var a,o,s,l,u,c,f,d;if(t==="radial"){u=r.rawX,f=r.rawY,c=i.rawX,d=i.rawY;var h=Kv(u,f),g=Kv(u,f+(d-f)*n),v=Kv(c,d+(f-d)*n),m=Kv(c,d);return{x1:h.x||0,y1:h.y||0,x2:m.x||0,y2:m.y||0,cpx1:g.x||0,cpy1:g.y||0,cpx2:v.x||0,cpy2:v.y||0}}else u=r.x,f=r.y,c=i.x,d=i.y,(e==="LR"||e==="RL")&&(a=u+(c-u)*n,o=f,s=c+(u-c)*n,l=d),(e==="TB"||e==="BT")&&(a=u,o=f+(d-f)*n,s=c,l=d+(f-d)*n);return{x1:u,y1:f,x2:c,y2:d,cpx1:a,cpy1:o,cpx2:s,cpy2:l}}var ra=et();function rX(t){var e=t.mainData,n=t.datas;n||(n={main:e},t.datasAttr={main:"data"}),t.datas=t.mainData=null,iX(e,n,t),k(n,function(r){k(e.TRANSFERABLE_METHODS,function(i){r.wrapMethod(i,ke(AVe,t))})}),e.wrapMethod("cloneShallow",ke(MVe,t)),k(e.CHANGABLE_METHODS,function(r){e.wrapMethod(r,ke(EVe,t))}),Pe(n[e.dataType]===e)}function AVe(t,e){if(RVe(this)){var n=ne({},ra(this).datas);n[this.dataType]=e,iX(e,n,t)}else OM(e,this.dataType,ra(this).mainData,t);return e}function EVe(t,e){return t.struct&&t.struct.update(),e}function MVe(t,e){return k(ra(e).datas,function(n,r){n!==e&&OM(n.cloneShallow(),r,e,t)}),e}function IVe(t){var e=ra(this).mainData;return t==null||e==null?e:ra(e).datas[t]}function DVe(){var t=ra(this).mainData;return t==null?[{data:t}]:ie(Ue(ra(t).datas),function(e){return{type:e,data:ra(t).datas[e]}})}function RVe(t){return ra(t).mainData===t}function iX(t,e,n){ra(t).datas={},k(e,function(r,i){OM(r,i,t,n)})}function OM(t,e,n,r){ra(n).datas[e]=t,ra(t).mainData=n,t.dataType=e,r.struct&&(t[r.structAttr]=r.struct,r.struct[r.datasAttr[e]]=t),t.getLinkedData=IVe,t.getLinkedDataAll=DVe}var kVe=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){xe(e)&&(r=n,n=e,e=null),e=e||{},pe(e)&&(e={order:e});var i=e.order||"preorder",a=this[e.attr||"children"],o;i==="preorder"&&(o=n.call(r,this));for(var s=0;!o&&s<a.length;s++)a[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 a=r[n].getNodeById(e);if(a)return a}},t.prototype.contains=function(e){if(e===this)return!0;for(var n=0,r=this.children,i=r.length;n<i;n++){var a=r[n].contains(e);if(a)return a}},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}(),SM=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),a=[],o=1;s(e);function s(c,f){var d=c.value;o=Math.max(o,re(d)?d.length:1),a.push(c);var h=new kVe(gn(c.name,""),i);f?NVe(h,f):i.root=h,i._nodes.push(h);var g=c.children;if(g)for(var v=0;v<g.length;v++)s(g[v],h)}i.root.updateDepthAndHeight(0);var l=Ud(a,{coordDimensions:["value"],dimensionsCount:o}).dimensions,u=new ur(l,n);return u.initData(a),r&&r(u),rX({mainData:u,struct:i,structAttr:"tree"}),i.update(),i},t}();function NVe(t,e){var n=e.children;t.parentNode!==e&&(n.push(t),t.parentNode=e)}function Jv(t,e,n){if(t&&Fe(e,t.type)>=0){var r=n.getData().tree.root,i=t.targetNode;if(pe(i)&&(i=r.getNodeById(i)),i&&r.contains(i))return{node:i};var a=t.targetNodeId;if(a!=null&&(i=r.getNodeById(a)))return{node:i}}}function aX(t){for(var e=[];t;)t=t.parentNode,t&&e.push(t);return e.reverse()}function xM(t,e){var n=aX(t);return Fe(n,e)>=0}function mO(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 LVe=function(t){U(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||{},a=new wt(i,this,this.ecModel),o=SM.createTree(r,this,s);function s(f){f.wrapMethod("getItemModel",function(d,h){var g=o.getNodeByDataIndex(h);return g&&g.children.length&&g.isExpand||(d.parentModel=a),d})}var l=0;o.eachNode("preorder",function(f){f.depth>l&&(l=f.depth)});var u=n.expandAndCollapse,c=u&&n.initialTreeDepth>=0?n.initialTreeDepth:l;return o.root.eachNode("preorder",function(f){var d=f.hostTree.data.getRawDataItem(f.dataIndex);f.isExpand=d&&d.collapsed!=null?!d.collapsed:f.depth<=c}),o.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 a=this.getData().tree,o=a.root.children[0],s=a.getNodeByDataIndex(n),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return Pn("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=mO(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}(Ct);function VVe(t,e,n){for(var r=[t],i=[],a;a=r.pop();)if(i.push(a),a.isExpand){var o=a.children;if(o.length)for(var s=0;s<o.length;s++)r.push(o[s])}for(;a=i.pop();)e(a,n)}function em(t,e){for(var n=[t],r;r=n.pop();)if(e(r),r.isExpand){var i=r.children;if(i.length)for(var a=i.length-1;a>=0;a--)n.push(i[a])}}function BVe(t,e){t.eachSeriesByType("tree",function(n){zVe(n,e)})}function zVe(t,e){var n=bVe(t,e);t.layoutInfo=n;var r=t.get("layout"),i=0,a=0,o=null;r==="radial"?(i=2*Math.PI,a=Math.min(n.height,n.width)/2,o=qU(function(_,O){return(_.parentNode===O.parentNode?1:2)/_.depth})):(i=n.width,a=n.height,o=qU());var s=t.getData().tree.root,l=s.children[0];if(l){vVe(s),VVe(l,mVe,o),s.hierNode.modifier=-l.hierNode.prelim,em(l,yVe);var u=l,c=l,f=l;em(l,function(_){var O=_.getLayout().x;O<u.getLayout().x&&(u=_),O>c.getLayout().x&&(c=_),_.depth>f.depth&&(f=_)});var d=u===c?1:o(u,c)/2,h=d-u.getLayout().x,g=0,v=0,m=0,y=0;if(r==="radial")g=i/(c.getLayout().x+d+h),v=a/(f.depth-1||1),em(l,function(_){m=(_.getLayout().x+h)*g,y=(_.depth-1)*v;var O=Kv(m,y);_.setLayout({x:O.x,y:O.y,rawX:m,rawY:y},!0)});else{var b=t.getOrient();b==="RL"||b==="LR"?(v=a/(c.getLayout().x+d+h),g=i/(f.depth-1||1),em(l,function(_){y=(_.getLayout().x+h)*v,m=b==="LR"?(_.depth-1)*g:i-(_.depth-1)*g,_.setLayout({x:m,y},!0)})):(b==="TB"||b==="BT")&&(g=i/(c.getLayout().x+d+h),v=a/(f.depth-1||1),em(l,function(_){m=(_.getLayout().x+h)*g,y=b==="TB"?(_.depth-1)*v:a-(_.depth-1)*v,_.setLayout({x:m,y},!0)}))}}}function FVe(t){t.eachSeriesByType("tree",function(e){var n=e.getData(),r=n.tree;r.eachNode(function(i){var a=i.getModel(),o=a.getModel("itemStyle").getItemStyle(),s=n.ensureUniqueItemVisual(i.dataIndex,"style");ne(s,o)})})}function WVe(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,a=r.getData().tree,o=a.getNodeByDataIndex(i);o.isExpand=!o.isExpand})}),t.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(e,n,r){n.eachComponent({mainType:"series",subType:"tree",query:e},function(i){var a=i.coordinateSystem,o=mM(a,e,void 0,r);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function QVe(t){t.registerChartView(PVe),t.registerSeriesModel(LVe),t.registerLayout(BVe),t.registerVisual(FVe),WVe(t)}var oX=["treemapZoomToNode","treemapRender","treemapMove"];function HVe(t){for(var e=0;e<oX.length;e++)t.registerAction({type:oX[e],update:"updateView"},Jt);t.registerAction({type:"treemapRootToNode",update:"updateView"},function(n,r){r.eachComponent({mainType:"series",subType:"treemap",query:n},i);function i(a,o){var s=["treemapZoomToNode","treemapRootToNode"],l=Jv(n,s,a);if(l){var u=a.getViewRoot();u&&(n.direction=xM(u,l.node)?"rollUp":"drillDown"),a.resetViewRoot(l.node)}}})}function sX(t){var e=t.getData(),n=e.tree,r={};n.eachNode(function(i){for(var a=i;a&&a.depth>1;)a=a.parentNode;var o=OA(t.ecModel,a.name||a.dataIndex+"",r);i.setVisual("decal",o)})}var jVe=function(t){U(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};lX(i);var a=n.levels||[],o=this.designatedVisualItemStyle={},s=new wt({itemStyle:o},this,r);a=n.levels=GVe(a,r);var l=ie(a||[],function(f){return new wt(f,s,r)},this),u=SM.createTree(i,this,c);function c(f){f.wrapMethod("getItemModel",function(d,h){var g=u.getNodeByDataIndex(h),v=g?l[g.depth]:null;return d.parentModel=v||s,d})}return u.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(n,r,i){var a=this.getData(),o=this.getRawValue(n),s=a.getName(n);return Pn("nameValue",{name:s,value:o})},e.prototype.getDataParams=function(n){var r=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(n);return r.treeAncestors=mO(i,this),r.treePathInfo=r.treeAncestors,r},e.prototype.setLayoutInfo=function(n){this.layoutInfo=this.layoutInfo||{},ne(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(){sX(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}(Ct);function lX(t){var e=0;k(t.children,function(r){lX(r);var i=r.value;re(i)&&(i=i[0]),e+=i});var n=t.value;re(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=e),n<0&&(n=0),re(t.value)?t.value[0]=n:t.value=n}function GVe(t,e){var n=xt(e.get("color")),r=xt(e.get(["aria","decal","decals"]));if(n){t=t||[];var i,a;k(t,function(s){var l=new wt(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")&&(a=!0)});var o=t[0]||(t[0]={});return i||(o.color=n.slice()),!a&&r&&(o.decal=r.slice()),t}}var ZVe=8,uX=8,wM=5,UVe=function(){function t(e){this.group=new Me,e.add(this.group)}return t.prototype.render=function(e,n,r,i){var a=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!a.get("show")||!r)){var s=a.getModel("itemStyle"),l=a.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),f={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:n.getWidth(),height:n.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(r,f,u),this._renderContent(e,f,s,l,u,c,i),h1(o,f.pos,f.box)}},t.prototype._prepare=function(e,n,r){for(var i=e;i;i=i.parentNode){var a=gn(i.getModel().get("name"),""),o=r.getTextRect(a),s=Math.max(o.width+ZVe*2,n.emptyItemWidth);n.totalWidth+=s+uX,n.renderList.push({node:i,text:a,width:s})}},t.prototype._renderContent=function(e,n,r,i,a,o,s){for(var l=0,u=n.emptyItemWidth,c=e.get(["breadcrumb","height"]),f=LRe(n.pos,n.box),d=n.totalWidth,h=n.renderList,g=i.getModel("itemStyle").getItemStyle(),v=h.length-1;v>=0;v--){var m=h[v],y=m.node,b=m.width,_=m.text;d>f.width&&(d-=b-u,b=u,_=null);var O=new wr({shape:{points:XVe(l,0,b,c,v===h.length-1,v===0)},style:Te(r.getItemStyle(),{lineJoin:"bevel"}),textContent:new nt({style:$t(a,{text:_})}),textConfig:{position:"inside"},z2:_d*1e4,onclick:ke(s,y)});O.disableLabelAnimation=!0,O.getTextContent().ensureState("emphasis").style=$t(o,{text:_}),O.ensureState("emphasis").style=g,Xt(O,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(O),YVe(O,e,y),l+=b+uX}},t.prototype.remove=function(){this.group.removeAll()},t}();function XVe(t,e,n,r,i,a){var o=[[i?t:t-wM,e],[t+n,e],[t+n,e+r],[i?t:t-wM,e+r]];return!a&&o.splice(2,0,[t+n+wM,e+r/2]),!i&&o.push([t,e+r/2]),o}function YVe(t,e,n){De(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&&mO(n,e)}}var qVe=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(e,n,r,i,a){return this._elExistsMap[e.id]?!1:(this._elExistsMap[e.id]=!0,this._storage.push({el:e,target:n,duration:r,delay:i,easing:a}),!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,a=this._storage.length;i<a;i++){var o=this._storage[i];o.el.animateTo(o.target,{duration:o.duration,delay:o.delay,easing:o.easing,setToFinal:!0,done:r,aborted:r})}return this},t}();function KVe(){return new qVe}var CM=Me,cX=tt,fX=3,dX="label",hX="upperLabel",JVe=_d*10,e6e=_d*2,t6e=_d*3,Ic=Wu([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),pX=function(t){var e=Ic(t);return e.stroke=e.fill=e.lineWidth=null,e},yO=et(),n6e=function(t){U(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._state="ready",n._storage=tm(),n}return e.prototype.render=function(n,r,i,a){var o=r.findComponents({mainType:"series",subType:"treemap",query:a});if(!(Fe(o,n)<0)){this.seriesModel=n,this.api=i,this.ecModel=r;var s=["treemapZoomToNode","treemapRootToNode"],l=Jv(a,s,n),u=a&&a.type,c=n.layoutInfo,f=!this._oldTree,d=this._storage,h=u==="treemapRootToNode"&&l&&d?{rootNodeGroup:d.nodeGroup[l.node.getRawIndex()],direction:a.direction}:null,g=this._giveContainerGroup(c),v=n.get("animation"),m=this._doRender(g,n,h);v&&!f&&(!u||u==="treemapZoomToNode"||u==="treemapRootToNode")?this._doAnimation(g,m,n,h):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 CM,this._initEvents(r),this.group.add(r)),r.x=n.x,r.y=n.y,r},e.prototype._doRender=function(n,r,i){var a=r.getData().tree,o=this._oldTree,s=tm(),l=tm(),u=this._storage,c=[];function f(b,_,O,S){return r6e(r,l,u,i,s,c,b,_,O,S)}v(a.root?[a.root]:[],o&&o.root?[o.root]:[],n,a===o||!o,0);var d=m(u);if(this._oldTree=a,this._storage=l,this._controllerHost){var h=this.seriesModel.layoutInfo,g=a.root.getLayout();g.width===h.width&&g.height===h.height&&(this._controllerHost.zoom=1)}return{lastsForAnimation:s,willDeleteEls:d,renderFinally:y};function v(b,_,O,S,x){S?(_=b,k(b,function(P,C){!P.isRemoved()&&T(C,C)})):new vs(_,b,w,w).add(T).update(T).remove(ke(T,null)).execute();function w(P){return P.getId()}function T(P,C){var $=P!=null?b[P]:null,A=C!=null?_[C]:null,E=f($,A,O,x);E&&v($&&$.viewChildren||[],A&&A.viewChildren||[],E,S,x+1)}}function m(b){var _=tm();return b&&k(b,function(O,S){var x=_[S];k(O,function(w){w&&(x.push(w),yO(w).willDelete=!0)})}),_}function y(){k(d,function(b){k(b,function(_){_.parent&&_.parent.remove(_)})}),k(c,function(b){b.invisible=!0,b.dirty()})}},e.prototype._doAnimation=function(n,r,i,a){var o=i.get("animationDurationUpdate"),s=i.get("animationEasing"),l=(xe(o)?0:o)||0,u=(xe(s)?null:s)||"cubicOut",c=KVe();k(r.willDeleteEls,function(f,d){k(f,function(h,g){if(!h.invisible){var v=h.parent,m,y=yO(v);if(a&&a.direction==="drillDown")m=v===a.rootNodeGroup?{shape:{x:0,y:0,width:y.nodeWidth,height:y.nodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var b=0,_=0;y.willDelete||(b=y.nodeWidth/2,_=y.nodeHeight/2),m=d==="nodeGroup"?{x:b,y:_,style:{opacity:0}}:{shape:{x:b,y:_,width:0,height:0},style:{opacity:0}}}m&&c.add(h,m,l,0,u)}})}),k(this._storage,function(f,d){k(f,function(h,g){var v=r.lastsForAnimation[d][g],m={};v&&(h instanceof Me?v.oldX!=null&&(m.x=h.x,m.y=h.y,h.x=v.oldX,h.y=v.oldY):(v.oldShape&&(m.shape=ne({},h.shape),h.setShape(v.oldShape)),v.fadein?(h.setStyle("opacity",0),m.style={opacity:1}):h.style.opacity!==1&&(m.style={opacity:1})),c.add(h,m,l,0,u))})},this),this._state="animating",c.finished(ve(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 Xv(n.getZr()),r.enable(this.seriesModel.get("roam")),i.zoomLimit=this.seriesModel.get("scaleLimit"),i.zoom=this.seriesModel.get("zoom"),r.on("pan",ve(this._onPan,this)),r.on("zoom",ve(this._onZoom,this)));var a=new ze(0,0,n.getWidth(),n.getHeight());r.setPointerChecker(function(o,s,l){return a.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)>fX||Math.abs(n.dy)>fX)){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,a=n.scale;if(this._state!=="animating"){var o=this.seriesModel.getData().tree.root;if(!o)return;var s=o.getLayout();if(!s)return;var l=new ze(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*=a,u){var d=u.min||0,h=u.max||1/0;f=Math.max(Math.min(h,f),d)}var g=f/c.zoom;c.zoom=f;var v=this.seriesModel.layoutInfo;r-=v.x,i-=v.y;var m=zr();Sa(m,m,[-r,-i]),e_(m,m,[g,g]),Sa(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 a=r.seriesModel.get("nodeClick",!0);if(a){var o=r.findTarget(i.offsetX,i.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)r._rootToNode(o);else if(a==="zoomToNode")r._zoomToNode(o);else if(a==="link"){var l=s.hostTree.data.getItemModel(s.dataIndex),u=l.get("link",!0),c=l.get("target",!0)||"blank";u&&f1(u,c)}}}}},this)},e.prototype._renderBreadcrumb=function(n,r,i){var a=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 UVe(this.group))).render(n,r,i.node,function(o){a._state!=="animating"&&(xM(n.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=tm(),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,a=this.seriesModel.getViewRoot();return a.eachNode({attr:"viewChildren",order:"preorder"},function(o){var s=this._storage.background[o.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:o,offsetX:l[0],offsetY:l[1]};else return!1}},this),i},e.type="treemap",e}(_t);function tm(){return{nodeGroup:[],background:[],content:[]}}function r6e(t,e,n,r,i,a,o,s,l,u){if(!o)return;var c=o.getLayout(),f=t.getData(),d=o.getModel();if(f.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var h=c.width,g=c.height,v=c.borderWidth,m=c.invisible,y=o.getRawIndex(),b=s&&s.getRawIndex(),_=o.viewChildren,O=c.upperHeight,S=_&&_.length,x=d.getModel("itemStyle"),w=d.getModel(["emphasis","itemStyle"]),T=d.getModel(["blur","itemStyle"]),P=d.getModel(["select","itemStyle"]),C=x.get("borderRadius")||0,$=K("nodeGroup",CM);if(!$)return;if(l.add($),$.x=c.x||0,$.y=c.y||0,$.markRedraw(),yO($).nodeWidth=h,yO($).nodeHeight=g,c.isAboveViewRoot)return $;var A=K("background",cX,u,e6e);A&&L($,A,S&&c.upperLabelHeight);var E=d.getModel("emphasis"),D=E.get("focus"),M=E.get("blurScope"),R=E.get("disabled"),N=D==="ancestor"?o.getAncestorsIndices():D==="descendant"?o.getDescendantIndices():D;if(S)fl($)&&Ju($,!1),A&&(Ju(A,!R),f.setItemGraphicEl(o.dataIndex,A),B2(A,N,M));else{var V=K("content",cX,u,t6e);V&&z($,V),A.disableMorphing=!0,A&&fl(A)&&Ju(A,!1),Ju($,!R),f.setItemGraphicEl(o.dataIndex,$),B2($,N,M)}return $;function L(X,ee,G){var W=De(ee);if(W.dataIndex=o.dataIndex,W.seriesIndex=t.seriesIndex,ee.setShape({x:0,y:0,width:h,height:g,r:C}),m)B(ee);else{ee.invisible=!1;var Q=o.getVisual("style"),J=Q.stroke,ae=pX(x);ae.fill=J;var oe=Ic(w);oe.fill=w.get("borderColor");var Se=Ic(T);Se.fill=T.get("borderColor");var _e=Ic(P);if(_e.fill=P.get("borderColor"),G){var ge=h-2*v;F(ee,J,Q.opacity,{x:v,y:0,width:ge,height:O})}else ee.removeTextContent();ee.setStyle(ae),ee.ensureState("emphasis").style=oe,ee.ensureState("blur").style=Se,ee.ensureState("select").style=_e,Ku(ee)}X.add(ee)}function z(X,ee){var G=De(ee);G.dataIndex=o.dataIndex,G.seriesIndex=t.seriesIndex;var W=Math.max(h-2*v,0),Q=Math.max(g-2*v,0);if(ee.culling=!0,ee.setShape({x:v,y:v,width:W,height:Q,r:C}),m)B(ee);else{ee.invisible=!1;var J=o.getVisual("style"),ae=J.fill,oe=pX(x);oe.fill=ae,oe.decal=J.decal;var Se=Ic(w),_e=Ic(T),ge=Ic(P);F(ee,ae,J.opacity,null),ee.setStyle(oe),ee.ensureState("emphasis").style=Se,ee.ensureState("blur").style=_e,ee.ensureState("select").style=ge,Ku(ee)}X.add(ee)}function B(X){!X.invisible&&a.push(X)}function F(X,ee,G,W){var Q=d.getModel(W?hX:dX),J=gn(d.get("name"),null),ae=Q.getShallow("show");Un(X,Tn(d,W?hX:dX),{defaultText:ae?J:null,inheritColor:ee,defaultOpacity:G,labelFetcher:t,labelDataIndex:o.dataIndex});var oe=X.getTextContent();if(oe){var Se=oe.style,_e=Yb(Se.padding||0);W&&(X.setTextConfig({layoutRect:W}),oe.disableLabelLayout=!0),oe.beforeUpdate=function(){var de=Math.max((W?W.width:X.shape.width)-_e[1]-_e[3],0),se=Math.max((W?W.height:X.shape.height)-_e[0]-_e[2],0);(Se.width!==de||Se.height!==se)&&oe.setStyle({width:de,height:se})},Se.truncateMinChar=2,Se.lineOverflow="truncate",j(Se,W,c);var ge=oe.getState("emphasis");j(ge?ge.style:null,W,c)}}function j(X,ee,G){var W=X?X.text:null;if(!ee&&G.isLeafRoot&&W!=null){var Q=t.get("drillDownIcon",!0);X.text=Q?Q+" "+W:W}}function K(X,ee,G,W){var Q=b!=null&&n[X][b],J=i[X];return Q?(n[X][b]=null,q(J,Q)):m||(Q=new ee,Q instanceof ji&&(Q.z2=i6e(G,W)),te(J,Q)),e[X][y]=Q}function q(X,ee){var G=X[y]={};ee instanceof CM?(G.oldX=ee.x,G.oldY=ee.y):G.oldShape=ne({},ee.shape)}function te(X,ee){var G=X[y]={},W=o.parentNode,Q=ee instanceof Me;if(W&&(!r||r.direction==="drillDown")){var J=0,ae=0,oe=i.background[W.getRawIndex()];!r&&oe&&oe.oldShape&&(J=oe.oldShape.width,ae=oe.oldShape.height),Q?(G.oldX=0,G.oldY=ae):G.oldShape={x:J,y:ae,width:0,height:0}}G.fadein=!Q}}function i6e(t,e){return t*JVe+e}var nm=k,a6e=we,bO=-1,An=function(){function t(e){var n=e.mappingMethod,r=e.type,i=this.option=$e(e);this.type=r,this.mappingMethod=n,this._normalizeData=l6e[n];var a=t.visualHandlers[r];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[n],n==="piecewise"?(TM(i),o6e(i)):n==="category"?i.categories?s6e(i):TM(i,!0):(Pe(n!=="linear"||i.dataExtent),TM(i))}return t.prototype.mapValueToVisual=function(e){var n=this._normalizeData(e);return this._normalizedToVisual(n,e)},t.prototype.getNormalizer=function(){return ve(this._normalizeData,this)},t.listVisualTypes=function(){return Ue(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(e,n,r){we(e)?k(e,n,r):n.call(r,e)},t.mapVisual=function(e,n,r){var i,a=re(e)?[]:we(e)?{}:(i=!0,null);return t.eachVisual(e,function(o,s){var l=n.call(r,o,s);i?a=l:a[s]=l}),a},t.retrieveVisuals=function(e){var n={},r;return e&&nm(t.visualHandlers,function(i,a){e.hasOwnProperty(a)&&(n[a]=e[a],r=!0)}),r?n:null},t.prepareVisualTypes=function(e){if(re(e))e=e.slice();else if(a6e(e)){var n=[];nm(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,a=1/0,o=0,s=n.length;o<s;o++){var l=n[o].value;if(l!=null){if(l===e||pe(l)&&l===e+"")return o;r&&d(l,o)}}for(var o=0,s=n.length;o<s;o++){var u=n[o],c=u.interval,f=u.close;if(c){if(c[0]===-1/0){if(OO(f[1],e,c[1]))return o}else if(c[1]===1/0){if(OO(f[0],c[0],e))return o}else if(OO(f[0],c[0],e)&&OO(f[1],e,c[1]))return o;r&&d(c[0],o),r&&d(c[1],o)}}if(r)return e===1/0?n.length-1:e===-1/0?0:i;function d(h,g){var v=Math.abs(h-e);v<a&&(a=v,i=g)}},t.visualHandlers={color:{applyVisual:rm("color"),getColorMapper:function(){var e=this.option;return ve(e.mappingMethod==="category"?function(n,r){return!r&&(n=this._normalizeData(n)),im.call(this,n)}:function(n,r,i){var a=!!i;return!r&&(n=this._normalizeData(n)),i=kg(n,e.parsedVisual,i),a?i:wa(i,"rgba")},this)},_normalizedToVisual:{linear:function(e){return wa(kg(e,this.option.parsedVisual),"rgba")},category:im,piecewise:function(e,n){var r=$M.call(this,n);return r==null&&(r=wa(kg(e,this.option.parsedVisual),"rgba")),r},fixed:Dc}},colorHue:_O(function(e,n){return cd(e,n)}),colorSaturation:_O(function(e,n){return cd(e,null,n)}),colorLightness:_O(function(e,n){return cd(e,null,null,n)}),colorAlpha:_O(function(e,n){return Ng(e,n)}),decal:{applyVisual:rm("decal"),_normalizedToVisual:{linear:null,category:im,piecewise:null,fixed:null}},opacity:{applyVisual:rm("opacity"),_normalizedToVisual:PM([0,1])},liftZ:{applyVisual:rm("liftZ"),_normalizedToVisual:{linear:Dc,category:Dc,piecewise:Dc,fixed:Dc}},symbol:{applyVisual:function(e,n,r){var i=this.mapValueToVisual(e);r("symbol",i)},_normalizedToVisual:{linear:gX,category:im,piecewise:function(e,n){var r=$M.call(this,n);return r==null&&(r=gX.call(this,e)),r},fixed:Dc}},symbolSize:{applyVisual:rm("symbolSize"),_normalizedToVisual:PM([0,1])}},t}();function o6e(t){var e=t.pieceList;t.hasSpecialVisual=!1,k(e,function(n,r){n.originIndex=r,n.visual!=null&&(t.hasSpecialVisual=!0)})}function s6e(t){var e=t.categories,n=t.categoryMap={},r=t.visual;if(nm(e,function(o,s){n[o]=s}),!re(r)){var i=[];we(r)?nm(r,function(o,s){var l=n[s];i[l??bO]=o}):i[bO]=r,r=vX(t,i)}for(var a=e.length-1;a>=0;a--)r[a]==null&&(delete n[e[a]],e.pop())}function TM(t,e){var n=t.visual,r=[];we(n)?nm(n,function(a){r.push(a)}):n!=null&&r.push(n);var i={color:1,symbol:1};!e&&r.length===1&&!i.hasOwnProperty(t.type)&&(r[1]=r[0]),vX(t,r)}function _O(t){return{applyVisual:function(e,n,r){var i=this.mapValueToVisual(e);r("color",t(n("color"),i))},_normalizedToVisual:PM([0,1])}}function gX(t){var e=this.option.visual;return e[Math.round(mt(t,[0,1],[0,e.length-1],!0))]||{}}function rm(t){return function(e,n,r){r(t,this.mapValueToVisual(e))}}function im(t){var e=this.option.visual;return e[this.option.loop&&t!==bO?t%e.length:t]}function Dc(){return this.option.visual[0]}function PM(t){return{linear:function(e){return mt(e,t,this.option.visual,!0)},category:im,piecewise:function(e,n){var r=$M.call(this,n);return r==null&&(r=mt(e,t,this.option.visual,!0)),r},fixed:Dc}}function $M(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var r=An.findPieceIndex(t,n),i=n[r];if(i&&i.visual)return i.visual[this.type]}}function vX(t,e){return t.visual=e,t.type==="color"&&(t.parsedVisual=ie(e,function(n){var r=br(n);return!r&&process.env.NODE_ENV!=="production"&&Wt("'"+n+"' is an illegal color, fallback to '#000000'",!0),r||[0,0,0,1]})),e}var l6e={linear:function(t){return mt(t,this.option.dataExtent,[0,1],!0)},piecewise:function(t){var e=this.option.pieceList,n=An.findPieceIndex(t,e,!0);if(n!=null)return mt(n,[0,e.length-1],[0,1],!0)},category:function(t){var e=this.option.categories?this.option.categoryMap[t]:t;return e??bO},fixed:Jt};function OO(t,e,n){return t?e<=n:e<n}var u6e="itemStyle",mX=et();const c6e={seriesType:"treemap",reset:function(t){var e=t.getData().tree,n=e.root;n.isRemoved()||yX(n,{},t.getViewRoot().getAncestors(),t)}};function yX(t,e,n,r){var i=t.getModel(),a=t.getLayout(),o=t.hostTree.data;if(!(!a||a.invisible||!a.isInView)){var s=i.getModel(u6e),l=f6e(s,e,r),u=o.ensureUniqueItemVisual(t.dataIndex,"style"),c=s.get("borderColor"),f=s.get("borderColorSaturation"),d;f!=null&&(d=bX(l),c=d6e(f,d)),u.stroke=c;var h=t.viewChildren;if(!h||!h.length)d=bX(l),u.fill=d;else{var g=h6e(t,i,a,s,l,h);k(h,function(v,m){if(v.depth>=n.length||v===n[v.depth]){var y=p6e(i,l,v,m,g,r);yX(v,y,n,r)}})}}}function f6e(t,e,n){var r=ne({},e),i=n.designatedVisualItemStyle;return k(["color","colorAlpha","colorSaturation"],function(a){i[a]=e[a];var o=t.get(a);i[a]=null,o!=null&&(r[a]=o)}),r}function bX(t){var e=AM(t,"color");if(e){var n=AM(t,"colorAlpha"),r=AM(t,"colorSaturation");return r&&(e=cd(e,null,null,r)),n&&(e=Ng(e,n)),e}}function d6e(t,e){return e!=null?cd(e,null,null,t):null}function AM(t,e){var n=t[e];if(n!=null&&n!=="none")return n}function h6e(t,e,n,r,i,a){if(!(!a||!a.length)){var o=EM(e,"color")||i.color!=null&&i.color!=="none"&&(EM(e,"colorAlpha")||EM(e,"colorSaturation"));if(o){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:o.name,dataExtent:u,visual:o.range};f.type==="color"&&(c==="index"||c==="id")?(f.mappingMethod="category",f.loop=!0):f.mappingMethod="linear";var d=new An(f);return mX(d).drColorMappingBy=c,d}}}function EM(t,e){var n=t.get(e);return re(n)&&n.length?{name:e,range:n}:null}function p6e(t,e,n,r,i,a){var o=ne({},e);if(i){var s=i.type,l=s==="color"&&mX(i).drColorMappingBy,u=l==="index"?r:l==="id"?a.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));o[s]=i.mapValueToVisual(u)}return o}var am=Math.max,SO=Math.min,_X=tn,MM=k,OX=["itemStyle","borderWidth"],g6e=["itemStyle","gapWidth"],v6e=["upperLabel","show"],m6e=["upperLabel","height"];const y6e={seriesType:"treemap",reset:function(t,e,n,r){var i=n.getWidth(),a=n.getHeight(),o=t.option,s=sn(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=o.size||[],u=he(_X(s.width,l[0]),i),c=he(_X(s.height,l[1]),a),f=r&&r.type,d=["treemapZoomToNode","treemapRootToNode"],h=Jv(r,d,t),g=f==="treemapRender"||f==="treemapMove"?r.rootRect:null,v=t.getViewRoot(),m=aX(v);if(f!=="treemapMove"){var y=f==="treemapZoomToNode"?w6e(t,h,v,u,c):g?[g.width,g.height]:[u,c],b=o.sort;b&&b!=="asc"&&b!=="desc"&&(b="desc");var _={squareRatio:o.squareRatio,sort:b,leafDepth:o.leafDepth};v.hostTree.clearLayouts();var O={x:0,y:0,width:y[0],height:y[1],area:y[0]*y[1]};v.setLayout(O),SX(v,_,!1,0),O=v.getLayout(),MM(m,function(x,w){var T=(m[w+1]||v).getValue();x.setLayout(ne({dataExtent:[T,T],borderWidth:0,upperHeight:0},O))})}var S=t.getData().tree.root;S.setLayout(C6e(s,g,h),!0),t.setLayoutInfo(s),wX(S,new ze(-s.x,-s.y,i,a),m,v,0)}};function SX(t,e,n,r){var i,a;if(!t.isRemoved()){var o=t.getLayout();i=o.width,a=o.height;var s=t.getModel(),l=s.get(OX),u=s.get(g6e)/2,c=CX(s),f=Math.max(l,c),d=l-u,h=f-u;t.setLayout({borderWidth:l,upperHeight:f,upperLabelHeight:c},!0),i=am(i-2*d,0),a=am(a-d-h,0);var g=i*a,v=b6e(t,s,g,e,n,r);if(v.length){var m={x:d,y:h,width:i,height:a},y=SO(i,a),b=1/0,_=[];_.area=0;for(var O=0,S=v.length;O<S;){var x=v[O];_.push(x),_.area+=x.getLayout().area;var w=x6e(_,y,e.squareRatio);w<=b?(O++,b=w):(_.area-=_.pop().getLayout().area,xX(_,y,m,u,!1),y=SO(m.width,m.height),_.length=_.area=0,b=1/0)}if(_.length&&xX(_,y,m,u,!0),!n){var T=s.get("childrenVisibleMin");T!=null&&g<T&&(n=!0)}for(var O=0,S=v.length;O<S;O++)SX(v[O],e,n,r+1)}}}function b6e(t,e,n,r,i,a){var o=t.children||[],s=r.sort;s!=="asc"&&s!=="desc"&&(s=null);var l=r.leafDepth!=null&&r.leafDepth<=a;if(i&&!l)return t.viewChildren=[];o=vt(o,function(h){return!h.isRemoved()}),O6e(o,s);var u=S6e(e,o,s);if(u.sum===0)return t.viewChildren=[];if(u.sum=_6e(e,n,u.sum,s,o),u.sum===0)return t.viewChildren=[];for(var c=0,f=o.length;c<f;c++){var d=o[c].getValue()/u.sum*n;o[c].setLayout({area:d})}return l&&(o.length&&t.setLayout({isLeafRoot:!0},!0),o.length=0),t.viewChildren=o,t.setLayout({dataExtent:u.dataExtent},!0),o}function _6e(t,e,n,r,i){if(!r)return n;for(var a=t.get("visibleMin"),o=i.length,s=o,l=o-1;l>=0;l--){var u=i[r==="asc"?o-l-1:l].getValue();u/n*e<a&&(s=l,n-=u)}return r==="asc"?i.splice(0,o-s):i.splice(s,o-s),n}function O6e(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 S6e(t,e,n){for(var r=0,i=0,a=e.length;i<a;i++)r+=e[i].getValue();var o=t.get("visualDimension"),s;return!e||!e.length?s=[NaN,NaN]:o==="value"&&n?(s=[e[e.length-1].getValue(),e[0].getValue()],n==="asc"&&s.reverse()):(s=[1/0,-1/0],MM(e,function(l){var u=l.getValue(o);u<s[0]&&(s[0]=u),u>s[1]&&(s[1]=u)})),{sum:r,dataExtent:s}}function x6e(t,e,n){for(var r=0,i=1/0,a=0,o=void 0,s=t.length;a<s;a++)o=t[a].getLayout().area,o&&(o<i&&(i=o),o>r&&(r=o));var l=t.area*t.area,u=e*e*n;return l?am(u*r/l,l/(u*i)):1/0}function xX(t,e,n,r,i){var a=e===n.width?0:1,o=1-a,s=["x","y"],l=["width","height"],u=n[s[a]],c=e?t.area/e:0;(i||c>n[l[o]])&&(c=n[l[o]]);for(var f=0,d=t.length;f<d;f++){var h=t[f],g={},v=c?h.getLayout().area/c:0,m=g[l[o]]=am(c-2*r,0),y=n[s[a]]+n[l[a]]-u,b=f===d-1||y<v?y:v,_=g[l[a]]=am(b-2*r,0);g[s[o]]=n[s[o]]+SO(r,m/2),g[s[a]]=u+SO(r,_/2),u+=b,h.setLayout(g,!0)}n[s[o]]+=c,n[l[o]]-=c}function w6e(t,e,n,r,i){var a=(e||{}).node,o=[r,i];if(!a||a===n)return o;for(var s,l=r*i,u=l*t.option.zoomToNodeRatio;s=a.parentNode;){for(var c=0,f=s.children,d=0,h=f.length;d<h;d++)c+=f[d].getValue();var g=a.getValue();if(g===0)return o;u*=c/g;var v=s.getModel(),m=v.get(OX),y=Math.max(m,CX(v));u+=4*m*m+(3*m+y)*Math.pow(u,.5),u>a2&&(u=a2),a=s}u<l&&(u=l);var b=Math.pow(u/l,.5);return[r*b,i*b]}function C6e(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,a=i.getLayout();if(!a)return r;for(var o=[a.width/2,a.height/2],s=i;s;){var l=s.getLayout();o[0]+=l.x,o[1]+=l.y,s=s.parentNode}return{x:t.width/2-o[0],y:t.height/2-o[1]}}function wX(t,e,n,r,i){var a=t.getLayout(),o=n[i],s=o&&o===t;if(!(o&&!s||i===n.length&&t!==r)){t.setLayout({isInView:!0,invisible:!s&&!e.intersect(a),isAboveViewRoot:s},!0);var l=new ze(e.x-a.x,e.y-a.y,e.width,e.height);MM(t.viewChildren||[],function(u){wX(u,l,n,r,i+1)})}}function CX(t){return t.get(v6e)?t.get(m6e):0}function T6e(t){t.registerSeriesModel(jVe),t.registerChartView(n6e),t.registerVisual(c6e),t.registerLayout(y6e),HVe(t)}function P6e(t){var e=t.findComponents({mainType:"legend"});!e||!e.length||t.eachSeriesByType("graph",function(n){var r=n.getCategoriesData(),i=n.getGraph(),a=i.data,o=r.mapArray(r.getName);a.filterSelf(function(s){var l=a.getItemModel(s),u=l.getShallow("category");if(u!=null){it(u)&&(u=o[u]);for(var c=0;c<e.length;c++)if(!e[c].isSelected(u))return!1}return!0})})}function $6e(t){var e={};t.eachSeriesByType("graph",function(n){var r=n.getCategoriesData(),i=n.getData(),a={};r.each(function(o){var s=r.getName(o);a["ec-"+s]=o;var l=r.getItemModel(o),u=l.getModel("itemStyle").getItemStyle();u.fill||(u.fill=n.getColorFromPalette(s,e)),r.setItemVisual(o,"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(o,c[f],d)}}),r.count()&&i.each(function(o){var s=i.getItemModel(o),l=s.getShallow("category");if(l!=null){pe(l)&&(l=a["ec-"+l]);var u=r.getItemVisual(l,"style"),c=i.ensureUniqueItemVisual(o,"style");ne(c,u);for(var f=["symbol","symbolSize","symbolKeepAspect"],d=0;d<f.length;d++)i.setItemVisual(o,f[d],r.getItemVisual(l,f[d]))}})})}function xO(t){return t instanceof Array||(t=[t,t]),t}function A6e(t){t.eachSeriesByType("graph",function(e){var n=e.getGraph(),r=e.getEdgeData(),i=xO(e.get("edgeSymbol")),a=xO(e.get("edgeSymbolSize"));r.setVisual("fromSymbol",i&&i[0]),r.setVisual("toSymbol",i&&i[1]),r.setVisual("fromSymbolSize",a&&a[0]),r.setVisual("toSymbolSize",a&&a[1]),r.setVisual("style",e.getModel("lineStyle").getLineStyle()),r.each(function(o){var s=r.getItemModel(o),l=n.getEdgeByIndex(o),u=xO(s.getShallow("symbol",!0)),c=xO(s.getShallow("symbolSize",!0)),f=s.getModel("lineStyle").getLineStyle(),d=r.ensureUniqueItemVisual(o,"style");switch(ne(d,f),d.stroke){case"source":{var h=l.node1.getVisual("style");d.stroke=h&&h.fill;break}case"target":{var h=l.node2.getVisual("style");d.stroke=h&&h.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 IM="-->",wO=function(t){return t.get("autoCurveness")||null},TX=function(t,e){var n=wO(t),r=20,i=[];if(it(n))r=n;else if(re(n)){t.__curvenessList=n;return}e>r&&(r=e);var a=r%2?r+2:r+3;i=[];for(var o=0;o<a;o++)i.push((o%2?o+1:o)/10*(o%2?-1:1));t.__curvenessList=i},om=function(t,e,n){var r=[t.id,t.dataIndex].join("."),i=[e.id,e.dataIndex].join(".");return[n.uid,r,i].join(IM)},PX=function(t){var e=t.split(IM);return[e[0],e[2],e[1]].join(IM)},E6e=function(t,e){var n=om(t.node1,t.node2,e);return e.__edgeMap[n]},M6e=function(t,e){var n=DM(om(t.node1,t.node2,e),e),r=DM(om(t.node2,t.node1,e),e);return n+r},DM=function(t,e){var n=e.__edgeMap;return n[t]?n[t].length:0};function I6e(t){wO(t)&&(t.__curvenessList=[],t.__edgeMap={},TX(t))}function D6e(t,e,n,r){if(wO(n)){var i=om(t,e,n),a=n.__edgeMap,o=a[PX(i)];a[i]&&!o?a[i].isForward=!0:o&&a[i]&&(o.isForward=!0,a[i].isForward=!1),a[i]=a[i]||[],a[i].push(r)}}function RM(t,e,n,r){var i=wO(e),a=re(i);if(!i)return null;var o=E6e(t,e);if(!o)return null;for(var s=-1,l=0;l<o.length;l++)if(o[l]===n){s=l;break}var u=M6e(t,e);TX(e,u),t.lineStyle=t.lineStyle||{};var c=om(t.node1,t.node2,e),f=e.__curvenessList,d=a||u%2?0:1;if(o.isForward)return f[d+s];var h=PX(c),g=DM(h,e),v=f[s+g+d];return r?a?i&&i[0]===0?(g+d)%2?v:-v:((g%2?0:1)+d)%2?v:-v:(g+d)%2?v:-v:f[s+g+d]}function $X(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")])}),kM(n,t)}}function kM(t,e){t.eachEdge(function(n,r){var i=ui(n.getModel().get(["lineStyle","curveness"]),-RM(n,e,r,!0),0),a=to(n.node1.getLayout()),o=to(n.node2.getLayout()),s=[a,o];+i&&s.push([(a[0]+o[0])/2-(a[1]-o[1])*i,(a[1]+o[1])/2-(o[0]-a[0])*i]),n.setLayout(s)})}function R6e(t,e){t.eachSeriesByType("graph",function(n){var r=n.get("layout"),i=n.coordinateSystem;if(i&&i.type!=="view"){var a=n.getData(),o=[];k(i.dimensions,function(d){o=o.concat(a.mapDimensionsAll(d))});for(var s=0;s<a.count();s++){for(var l=[],u=!1,c=0;c<o.length;c++){var f=a.get(o[c],s);isNaN(f)||(u=!0),l.push(f)}u?a.setItemLayout(s,i.dataToPoint(l)):a.setItemLayout(s,[NaN,NaN])}kM(a.graph,n)}else(!r||r==="none")&&$X(n)})}function sm(t){var e=t.coordinateSystem;if(e.type!=="view")return 1;var n=t.option.nodeScaleRatio,r=e.scaleX,i=e.getZoom(),a=(i-1)*n+1;return a/r}function lm(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),+e}var AX=Math.PI,NM=[];function LM(t,e,n,r){var i=t.coordinateSystem;if(!(i&&i.type!=="view")){var a=i.getBoundingRect(),o=t.getData(),s=o.graph,l=a.width/2+a.x,u=a.height/2+a.y,c=Math.min(a.width,a.height)/2,f=o.count();if(o.setLayout({cx:l,cy:u}),!!f){if(n){var d=i.pointToData(r),h=d[0],g=d[1],v=[h-l,g-u];Au(v,v),xg(v,v,c),n.setLayout([l+v[0],u+v[1]],!0);var m=t.get(["circular","rotateLabel"]);EX(n,m,l,u)}k6e[e](t,s,o,c,l,u,f),s.eachEdge(function(y,b){var _=ui(y.getModel().get(["lineStyle","curveness"]),RM(y,t,b),0),O=to(y.node1.getLayout()),S=to(y.node2.getLayout()),x,w=(O[0]+S[0])/2,T=(O[1]+S[1])/2;+_&&(_*=3,x=[l*_+w*(1-_),u*_+T*(1-_)]),y.setLayout([O,S,x])})}}}var k6e={value:function(t,e,n,r,i,a,o){var s=0,l=n.getSum("value"),u=Math.PI*2/(l||o);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)+a]),s+=d})},symbolSize:function(t,e,n,r,i,a,o){var s=0;NM.length=o;var l=sm(t);e.eachNode(function(f){var d=lm(f);isNaN(d)&&(d=2),d<0&&(d=0),d*=l;var h=Math.asin(d/2/r);isNaN(h)&&(h=AX/2),NM[f.dataIndex]=h,s+=h*2});var u=(2*AX-s)/o/2,c=0;e.eachNode(function(f){var d=u+NM[f.dataIndex];c+=d,(!f.getLayout()||!f.getLayout().fixed)&&f.setLayout([r*Math.cos(c)+i,r*Math.sin(c)+a]),c+=d})}};function EX(t,e,n,r){var i=t.getGraphicEl();if(i){var a=t.getModel(),o=a.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");ne(d.textConfig||(d.textConfig={}),{position:f})}else s.setTextConfig({rotation:o*=Math.PI/180})}}function N6e(t){t.eachSeriesByType("graph",function(e){e.get("layout")==="circular"&&LM(e,"symbolSize")})}var rh=qb;function L6e(t,e,n){for(var r=t,i=e,a=n.rect,o=a.width,s=a.height,l=[a.x+o/2,a.y+s/2],u=n.gravity==null?.1:n.gravity,c=0;c<r.length;c++){var f=r[c];f.p||(f.p=qs(o*(Math.random()-.5)+l[0],s*(Math.random()-.5)+l[1])),f.pp=to(f.p),f.edges=null}var d=n.friction==null?.6:n.friction,h=d,g,v;return{warmUp:function(){h=d*.8},setFixed:function(m){r[m].fixed=!0},setUnfixed:function(m){r[m].fixed=!1},beforeStep:function(m){g=m},afterStep:function(m){v=m},step:function(m){g&&g(r,i);for(var y=[],b=r.length,_=0;_<i.length;_++){var O=i[_];if(!O.ignoreForceLayout){var S=O.n1,x=O.n2;Ks(y,x.p,S.p);var w=Sg(y)-O.d,T=x.w/(S.w+x.w);isNaN(T)&&(T=0),Au(y,y),!S.fixed&&rh(S.p,S.p,y,T*w*h),!x.fixed&&rh(x.p,x.p,y,-(1-T)*w*h)}}for(var _=0;_<b;_++){var P=r[_];P.fixed||(Ks(y,l,P.p),rh(P.p,P.p,y,u*h))}for(var _=0;_<b;_++)for(var S=r[_],C=_+1;C<b;C++){var x=r[C];Ks(y,x.p,S.p);var w=Sg(y);w===0&&(fW(y,Math.random()-.5,Math.random()-.5),w=1);var $=(S.rep+x.rep)/w/w;!S.fixed&&rh(S.pp,S.pp,y,$),!x.fixed&&rh(x.pp,x.pp,y,-$)}for(var A=[],_=0;_<b;_++){var P=r[_];P.fixed||(Ks(A,P.p,P.pp),rh(P.p,P.p,A,h),ir(P.pp,P.p))}h=h*.992;var E=h<.01;v&&v(r,i,E),m&&m(E)}}}function V6e(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(),a=i.data,o=i.edgeData,s=e.getModel("force"),l=s.get("initLayout");e.preservedPoints?a.each(function(_){var O=a.getId(_);a.setItemLayout(_,r[O]||[NaN,NaN])}):!l||l==="none"?$X(e):l==="circular"&&LM(e,"value");var u=a.getDataExtent("value"),c=o.getDataExtent("value"),f=s.get("repulsion"),d=s.get("edgeLength"),h=re(f)?f:[f,f],g=re(d)?d:[d,d];g=[g[1],g[0]];var v=a.mapArray("value",function(_,O){var S=a.getItemLayout(O),x=mt(_,u,h);return isNaN(x)&&(x=(h[0]+h[1])/2),{w:x,rep:x,fixed:a.getItemModel(O).get("fixed"),p:!S||isNaN(S[0])||isNaN(S[1])?null:S}}),m=o.mapArray("value",function(_,O){var S=i.getEdgeByIndex(O),x=mt(_,c,g);isNaN(x)&&(x=(g[0]+g[1])/2);var w=S.getModel(),T=ui(S.getModel().get(["lineStyle","curveness"]),-RM(S,e,O,!0),0);return{n1:v[S.node1.dataIndex],n2:v[S.node2.dataIndex],d:x,curveness:T,ignoreForceLayout:w.get("ignoreForceLayout")}}),y=n.getBoundingRect(),b=L6e(v,m,{rect:y,gravity:s.get("gravity"),friction:s.get("friction")});b.beforeStep(function(_,O){for(var S=0,x=_.length;S<x;S++)_[S].fixed&&ir(_[S].p,i.getNodeByIndex(S).getLayout())}),b.afterStep(function(_,O,S){for(var x=0,w=_.length;x<w;x++)_[x].fixed||i.getNodeByIndex(x).setLayout(_[x].p),r[a.getId(x)]=_[x].p;for(var x=0,w=O.length;x<w;x++){var T=O[x],P=i.getEdgeByIndex(x),C=T.n1.p,$=T.n2.p,A=P.getLayout();A=A?A.slice():[],A[0]=A[0]||[],A[1]=A[1]||[],ir(A[0],C),ir(A[1],$),+T.curveness&&(A[2]=[(C[0]+$[0])/2-(C[1]-$[1])*T.curveness,(C[1]+$[1])/2-($[0]-C[0])*T.curveness]),P.setLayout(A)}}),e.forceLayout=b,e.preservedPoints=r,b.step()}else e.forceLayout=null})}function B6e(t,e,n){var r=ne(t.getBoxLayoutParams(),{aspect:n});return sn(r,{width:e.getWidth(),height:e.getHeight()})}function z6e(t,e){var n=[];return t.eachSeriesByType("graph",function(r){var i=r.get("coordinateSystem");if(!i||i==="view"){var a=r.getData(),o=a.mapArray(function(m){var y=a.getItemModel(m);return[+y.get("x"),+y.get("y")]}),s=[],l=[];k_(o,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=B6e(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],h=c.width,g=c.height,v=r.coordinateSystem=new qv;v.zoomLimit=r.get("scaleLimit"),v.setBoundingRect(s[0],s[1],f,d),v.setViewRect(c.x,c.y,h,g),v.setCenter(r.get("center"),e),v.setZoom(r.get("zoom")),n.push(v)}}),n}var MX=Cn.prototype,VM=av.prototype,IX=function(){function t(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return t}();(function(t){U(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e})(IX);function BM(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var F6e=function(t){U(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 IX},e.prototype.buildPath=function(n,r){BM(r)?MX.buildPath.call(this,n,r):VM.buildPath.call(this,n,r)},e.prototype.pointAt=function(n){return BM(this.shape)?MX.pointAt.call(this,n):VM.pointAt.call(this,n)},e.prototype.tangentAt=function(n){var r=this.shape,i=BM(r)?[r.x2-r.x1,r.y2-r.y1]:VM.tangentAt.call(this,n);return Au(i,i)},e}(Ge),zM=["fromSymbol","toSymbol"];function DX(t){return"_"+t+"Type"}function RX(t,e,n){var r=e.getItemVisual(n,t);if(!r||r==="none")return r;var i=e.getItemVisual(n,t+"Size"),a=e.getItemVisual(n,t+"Rotate"),o=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=Qd(i),u=pc(o||0,l);return r+l+u+(a||"")+(s||"")}function kX(t,e,n){var r=e.getItemVisual(n,t);if(!(!r||r==="none")){var i=e.getItemVisual(n,t+"Size"),a=e.getItemVisual(n,t+"Rotate"),o=e.getItemVisual(n,t+"Offset"),s=e.getItemVisual(n,t+"KeepAspect"),l=Qd(i),u=pc(o||0,l),c=rn(r,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=a==null||isNaN(a)?void 0:+a*Math.PI/180||0,c.name=t,c}}function W6e(t){var e=new F6e({name:"line",subPixelOptimize:!0});return FM(e.shape,t),e}function FM(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 WM=function(t){U(e,t);function e(n,r,i){var a=t.call(this)||this;return a._createLine(n,r,i),a}return e.prototype._createLine=function(n,r,i){var a=n.hostModel,o=n.getItemLayout(r),s=W6e(o);s.shape.percent=0,Mt(s,{shape:{percent:1}},a,r),this.add(s),k(zM,function(l){var u=kX(l,n,r);this.add(u),this[DX(l)]=RX(l,n,r)},this),this._updateCommonStl(n,r,i)},e.prototype.updateData=function(n,r,i){var a=n.hostModel,o=this.childOfName("line"),s=n.getItemLayout(r),l={shape:{}};FM(l.shape,s),ot(o,l,a,r),k(zM,function(u){var c=RX(u,n,r),f=DX(u);if(this[f]!==c){this.remove(this.childOfName(u));var d=kX(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 a=n.hostModel,o=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,h=i&&i.blurScope;if(!i||n.hasItemOption){var g=n.getItemModel(r),v=g.getModel("emphasis");s=v.getModel("lineStyle").getLineStyle(),l=g.getModel(["blur","lineStyle"]).getLineStyle(),u=g.getModel(["select","lineStyle"]).getLineStyle(),f=v.get("disabled"),d=v.get("focus"),h=v.get("blurScope"),c=Tn(g)}var m=n.getItemVisual(r,"style"),y=m.stroke;o.useStyle(m),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,k(zM,function(x){var w=this.childOfName(x);if(w){w.setColor(y),w.style.opacity=m.opacity;for(var T=0;T<Sr.length;T++){var P=Sr[T],C=o.getState(P);if(C){var $=C.style||{},A=w.ensureState(P),E=A.style||(A.style={});$.stroke!=null&&(E[w.__isEmptyBrush?"stroke":"fill"]=$.stroke),$.opacity!=null&&(E.opacity=$.opacity)}}w.markRedraw()}},this);var b=a.getRawValue(r);Un(this,c,{labelDataIndex:r,labelFetcher:{getFormattedLabel:function(x,w){return a.getFormattedLabel(x,w,n.dataType)}},inheritColor:y||"#000",defaultOpacity:m.opacity,defaultText:(b==null?n.getName(r):isFinite(b)?Ut(b):b)+""});var _=this.getTextContent();if(_){var O=c.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=O.get("position")||"middle";var S=O.get("distance");re(S)||(S=[S,S]),_.__labelDistance=S}this.setTextConfig({position:null,local:!0,inside:!1}),Xt(this,d,h,f)},e.prototype.highlight=function(){fs(this)},e.prototype.downplay=function(){ds(this)},e.prototype.updateLayout=function(n,r){this.setLinePoints(n.getItemLayout(r))},e.prototype.setLinePoints=function(n){var r=this.childOfName("line");FM(r.shape,n),r.dirty()},e.prototype.beforeUpdate=function(){var n=this,r=n.childOfName("fromSymbol"),i=n.childOfName("toSymbol"),a=n.getTextContent();if(!r&&!i&&(!a||a.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=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=Ks([],f,c);Au(d,d);function h(C,$){var A=C.__specifiedRotation;if(A==null){var E=l.tangentAt($);C.attr("rotation",($===1?-1:1)*Math.PI/2-Math.atan2(E[1],E[0]))}else C.attr("rotation",A)}if(r&&(r.setPosition(c),h(r,0),r.scaleX=r.scaleY=o*u,r.markRedraw()),i&&(i.setPosition(f),h(i,1),i.scaleX=i.scaleY=o*u,i.markRedraw()),a&&!a.ignore){a.x=a.y=0,a.originX=a.originY=0;var g=void 0,v=void 0,m=a.__labelDistance,y=m[0]*o,b=m[1]*o,_=u/2,O=l.tangentAt(_),S=[O[1],-O[0]],x=l.pointAt(_);S[1]>0&&(S[0]=-S[0],S[1]=-S[1]);var w=O[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var T=-Math.atan2(O[1],O[0]);f[0]<c[0]&&(T=Math.PI+T),a.rotation=T}var P=void 0;switch(a.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":P=-b,v="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":P=b,v="top";break;default:P=0,v="middle"}switch(a.__position){case"end":a.x=d[0]*y+f[0],a.y=d[1]*b+f[1],g=d[0]>.8?"left":d[0]<-.8?"right":"center",v=d[1]>.8?"top":d[1]<-.8?"bottom":"middle";break;case"start":a.x=-d[0]*y+c[0],a.y=-d[1]*b+c[1],g=d[0]>.8?"right":d[0]<-.8?"left":"center",v=d[1]>.8?"bottom":d[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=y*w+c[0],a.y=c[1]+P,g=O[0]<0?"right":"left",a.originX=-y*w,a.originY=-P;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=x[0],a.y=x[1]+P,g="center",a.originY=-P;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-y*w+f[0],a.y=f[1]+P,g=O[0]>=0?"right":"left",a.originX=y*w,a.originY=-P;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||v,align:a.__align||g})}},e}(Me),QM=function(){function t(e){this.group=new Me,this._LineCtor=e||WM}return t.prototype.updateData=function(e){var n=this;this._progressiveEls=null;var r=this,i=r.group,a=r._lineData;r._lineData=e,a||i.removeAll();var o=NX(e);e.diff(a).add(function(s){n._doAdd(e,s,o)}).update(function(s,l){n._doUpdate(a,e,l,s,o)}).remove(function(s){i.remove(a.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=NX(e),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(e,n){this._progressiveEls=[];function r(s){!s.isGroup&&!Q6e(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=e.start;i<e.end;i++){var a=n.getItemLayout(i);if(HM(a)){var o=new this._LineCtor(n,i,this._seriesScope);o.traverse(r),this.group.add(o),n.setItemGraphicEl(i,o),this._progressiveEls.push(o)}}},t.prototype.remove=function(){this.group.removeAll()},t.prototype.eachRendered=function(e){pl(this._progressiveEls||this.group,e)},t.prototype._doAdd=function(e,n,r){var i=e.getItemLayout(n);if(HM(i)){var a=new this._LineCtor(e,n,r);e.setItemGraphicEl(n,a),this.group.add(a)}},t.prototype._doUpdate=function(e,n,r,i,a){var o=e.getItemGraphicEl(r);if(!HM(n.getItemLayout(i))){this.group.remove(o);return}o?o.updateData(n,i,a):o=new this._LineCtor(n,i,a),n.setItemGraphicEl(i,o),this.group.add(o)},t}();function Q6e(t){return t.animators&&t.animators.length>0}function NX(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:Tn(e)}}function LX(t){return isNaN(t[0])||isNaN(t[1])}function HM(t){return t&&!LX(t[0])&&!LX(t[1])}var jM=[],GM=[],ZM=[],ih=Nn,UM=Js,VX=Math.abs;function BX(t,e,n){for(var r=t[0],i=t[1],a=t[2],o=1/0,s,l=n*n,u=.1,c=.1;c<=.9;c+=.1){jM[0]=ih(r[0],i[0],a[0],c),jM[1]=ih(r[1],i[1],a[1],c);var f=VX(UM(jM,e)-l);f<o&&(o=f,s=c)}for(var d=0;d<32;d++){var h=s+u;GM[0]=ih(r[0],i[0],a[0],s),GM[1]=ih(r[1],i[1],a[1],s),ZM[0]=ih(r[0],i[0],a[0],h),ZM[1]=ih(r[1],i[1],a[1],h);var f=UM(GM,e)-l;if(VX(f)<.01)break;var g=UM(ZM,e)-l;u/=2,f<0?g>=0?s=s+u:s=s-u:g>=0?s=s-u:s=s+u}return s}function XM(t,e){var n=[],r=Ig,i=[[],[],[]],a=[[],[]],o=[];e/=2,t.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),f=s.getVisual("toSymbol");u.__original||(u.__original=[to(u[0]),to(u[1])],u[2]&&u.__original.push(to(u[2])));var d=u.__original;if(u[2]!=null){if(ir(i[0],d[0]),ir(i[1],d[2]),ir(i[2],d[1]),c&&c!=="none"){var h=lm(s.node1),g=BX(i,d[0],h*e);r(i[0][0],i[1][0],i[2][0],g,n),i[0][0]=n[3],i[1][0]=n[4],r(i[0][1],i[1][1],i[2][1],g,n),i[0][1]=n[3],i[1][1]=n[4]}if(f&&f!=="none"){var h=lm(s.node2),g=BX(i,d[1],h*e);r(i[0][0],i[1][0],i[2][0],g,n),i[1][0]=n[1],i[2][0]=n[2],r(i[0][1],i[1][1],i[2][1],g,n),i[1][1]=n[1],i[2][1]=n[2]}ir(u[0],i[0]),ir(u[1],i[2]),ir(u[2],i[1])}else{if(ir(a[0],d[0]),ir(a[1],d[1]),Ks(o,a[1],a[0]),Au(o,o),c&&c!=="none"){var h=lm(s.node1);qb(a[0],a[0],o,h*e)}if(f&&f!=="none"){var h=lm(s.node2);qb(a[1],a[1],o,-h*e)}ir(u[0],a[0]),ir(u[1],a[1])}})}function zX(t){return t.type==="view"}var H6e=function(t){U(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 Fv,a=new QM,o=this.group;this._controller=new Xv(r.getZr()),this._controllerHost={target:o},o.add(i.group),o.add(a.group),this._symbolDraw=i,this._lineDraw=a,this._firstRender=!0},e.prototype.render=function(n,r,i){var a=this,o=n.coordinateSystem;this._model=n;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(zX(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):ot(u,c,n)}XM(n.getGraph(),sm(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 h=n.forceLayout,g=n.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,g);var v=n.get("layout");f.graph.eachNode(function(_){var O=_.dataIndex,S=_.getGraphicEl(),x=_.getModel();if(S){S.off("drag").off("dragend");var w=x.get("draggable");w&&S.on("drag",function(P){switch(v){case"force":h.warmUp(),!a._layouting&&a._startForceLayoutIteration(h,g),h.setFixed(O),f.setItemLayout(O,[S.x,S.y]);break;case"circular":f.setItemLayout(O,[S.x,S.y]),_.setLayout({fixed:!0},!0),LM(n,"symbolSize",_,[P.offsetX,P.offsetY]),a.updateLayout(n);break;case"none":default:f.setItemLayout(O,[S.x,S.y]),kM(n.getGraph(),n),a.updateLayout(n);break}}).on("dragend",function(){h&&h.setUnfixed(O)}),S.setDraggable(w,!!x.get("cursor"));var T=x.get(["emphasis","focus"]);T==="adjacency"&&(De(S).focus=_.getAdjacentDataIndices())}}),f.graph.eachEdge(function(_){var O=_.getGraphicEl(),S=_.getModel().get(["emphasis","focus"]);O&&S==="adjacency"&&(De(O).focus={edge:[_.dataIndex],node:[_.node1.dataIndex,_.node2.dataIndex]})});var m=n.get("layout")==="circular"&&n.get(["circular","rotateLabel"]),y=f.getLayout("cx"),b=f.getLayout("cy");f.graph.eachNode(function(_){EX(_,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 a(){n.step(function(o){i.updateLayout(i._model),(i._layouting=!o)&&(r?i._layoutTimeout=setTimeout(a,16):a())})})()},e.prototype._updateController=function(n,r,i){var a=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,f){var d=l.getBoundingRect();return d.applyTransform(l.transform),d.contain(c,f)&&!dO(u,i,n)}),!zX(n.coordinateSystem)){o.disable();return}o.enable(n.get("roam")),s.zoomLimit=n.get("scaleLimit"),s.zoom=n.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){fM(s,u.dx,u.dy),i.dispatchAction({seriesId:n.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){dM(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:n.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(),XM(n.getGraph(),sm(n)),a._lineDraw.updateLayout(),i.updateLabelLayout()})},e.prototype._updateNodeAndLinkScale=function(){var n=this._model,r=n.getData(),i=sm(n);r.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},e.prototype.updateLayout=function(n){XM(n.getGraph(),sm(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}(_t);function ah(t){return"_EC_"+t}var j6e=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[ah(e)]){process.env.NODE_ENV!=="production"&&console.error("Graph nodes have duplicate name or id");return}var i=new Rc(e,n);return i.hostGraph=this,this.nodes.push(i),r[ah(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[ah(e)]},t.prototype.addEdge=function(e,n,r){var i=this._nodesMap,a=this._edgesMap;if(it(e)&&(e=this.nodes[e]),it(n)&&(n=this.nodes[n]),e instanceof Rc||(e=i[ah(e)]),n instanceof Rc||(n=i[ah(n)]),!(!e||!n)){var o=e.id+"-"+n.id,s=new FX(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),a[o]=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 Rc&&(e=e.id),n instanceof Rc&&(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,a=0;a<i;a++)r[a].dataIndex>=0&&e.call(n,r[a],a)},t.prototype.eachEdge=function(e,n){for(var r=this.edges,i=r.length,a=0;a<i;a++)r[a].dataIndex>=0&&r[a].node1.dataIndex>=0&&r[a].node2.dataIndex>=0&&e.call(n,r[a],a)},t.prototype.breadthFirstTraverse=function(e,n,r,i){if(n instanceof Rc||(n=this._nodesMap[ah(n)]),!!n){for(var a=r==="out"?"outEdges":r==="in"?"inEdges":"edges",o=0;o<this.nodes.length;o++)this.nodes[o].__visited=!1;if(!e.call(i,n,null))for(var s=[n];s.length;)for(var l=s.shift(),u=l[a],o=0;o<u.length;o++){var c=u[o],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,a=0,o=r.length;a<o;a++)r[a].dataIndex=-1;for(var a=0,o=e.count();a<o;a++)r[e.getRawIndex(a)].dataIndex=a;n.filterSelf(function(s){var l=i[n.getRawIndex(s)];return l.node1.dataIndex>=0&&l.node2.dataIndex>=0});for(var a=0,o=i.length;a<o;a++)i[a].dataIndex=-1;for(var a=0,o=n.count();a<o;a++)i[n.getRawIndex(a)].dataIndex=a},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 a=r[i];e.addEdge(a.node1.id,a.node2.id,a.dataIndex)}return e},t}(),Rc=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 a=[i.node1],o=[i.node2],s=0;s<a.length;){var l=a[s];s++,n.set(l.dataIndex,!0);for(var u=0;u<l.inEdges.length;u++)e.set(l.inEdges[u].dataIndex,!0),a.push(l.inEdges[u].node1)}for(s=0;s<o.length;){var c=o[s];s++,n.set(c.dataIndex,!0);for(var u=0;u<c.outEdges.length;u++)e.set(c.outEdges[u].dataIndex,!0),o.push(c.outEdges[u].node2)}}}return{edge:e.keys(),node:n.keys()}},t}(),FX=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],a=0;a<r.length;){var o=r[a];a++,n.set(o.dataIndex,!0);for(var s=0;s<o.inEdges.length;s++)e.set(o.inEdges[s].dataIndex,!0),r.push(o.inEdges[s].node1)}for(a=0;a<i.length;){var l=i[a];a++,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 WX(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)}}}Kt(Rc,WX("hostGraph","data")),Kt(FX,WX("hostGraph","edgeData"));function QX(t,e,n,r,i){for(var a=new j6e(r),o=0;o<t.length;o++)a.addNode(tn(t[o].id,t[o].name,o),o);for(var s=[],l=[],u=0,o=0;o<e.length;o++){var c=e[o],f=c.source,d=c.target;a.addEdge(f,d,u)&&(l.push(c),s.push(tn(gn(c.id,null),f+" > "+d)),u++)}var h=n.get("coordinateSystem"),g;if(h==="cartesian2d"||h==="polar")g=go(t,n);else{var v=uc.get(h),m=v?v.dimensions||[]:[];Fe(m,"value")<0&&m.concat(["value"]);var y=Ud(t,{coordDimensions:m,encodeDefine:n.getEncode()}).dimensions;g=new ur(y,n),g.initData(t)}var b=new ur(["value"],n);return b.initData(l,s),i&&i(g,b),rX({mainData:g,struct:a,structAttr:"graph",datas:{node:g,edge:b},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var G6e=function(t){U(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 Gv(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),Bu(n,"edgeLabel",["show"])},e.prototype.getInitialData=function(n,r){var i=n.edges||n.links||[],a=n.data||n.nodes||[],o=this;if(a&&i){I6e(this);var s=QX(a,i,this,!0,l);return k(s.edges,function(u){D6e(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(g){var v=o._categoriesModels,m=g.getShallow("category"),y=v[m];return y&&(y.parentModel=g.parentModel,g.parentModel=y),g});var f=wt.prototype.getModel;function d(g,v){var m=f.call(this,g,v);return m.resolveParentPath=h,m}c.wrapMethod("getItemModel",function(g){return g.resolveParentPath=h,g.getModel=d,g});function h(g){if(g&&(g[0]==="label"||g[1]==="label")){var v=g.slice();return g[0]==="label"?v[0]="edgeLabel":g[1]==="label"&&(v[1]="edgeLabel"),v}return g}}},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 a=this.getData(),o=this.getDataParams(n,i),s=a.graph.getEdgeByIndex(n),l=a.getName(s.node1.dataIndex),u=a.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Pn("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var f=Aj({series:this,dataIndex:n,multipleSeries:r});return f},e.prototype._updateCategoriesData=function(){var n=ie(this.option.categories||[],function(i){return i.value!=null?i:ne({value:0},i)}),r=new ur(["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}(Ct),Z6e={type:"graphRoam",event:"graphRoam",update:"none"};function U6e(t){t.registerChartView(H6e),t.registerSeriesModel(G6e),t.registerProcessor(P6e),t.registerVisual($6e),t.registerVisual(A6e),t.registerLayout(R6e),t.registerLayout(t.PRIORITY.VISUAL.POST_CHART_LAYOUT,N6e),t.registerLayout(V6e),t.registerCoordinateSystem("graphView",{dimensions:qv.dimensions,create:z6e}),t.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Jt),t.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Jt),t.registerAction(Z6e,function(e,n,r){n.eachComponent({mainType:"series",query:e},function(i){var a=i.coordinateSystem,o=mM(a,e,void 0,r);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var X6e=function(){function t(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return t}(),Y6e=function(t){U(e,t);function e(n){var r=t.call(this,n)||this;return r.type="pointer",r}return e.prototype.getDefaultShape=function(){return new X6e},e.prototype.buildPath=function(n,r){var i=Math.cos,a=Math.sin,o=r.r,s=r.width,l=r.angle,u=r.x-i(l)*s*(s>=o/3?1:2),c=r.y-a(l)*s*(s>=o/3?1:2);l=r.angle-Math.PI/2,n.moveTo(u,c),n.lineTo(r.x+i(l)*s,r.y+a(l)*s),n.lineTo(r.x+i(r.angle)*o,r.y+a(r.angle)*o),n.lineTo(r.x-i(l)*s,r.y-a(l)*s),n.lineTo(u,c)},e}(Ge);function q6e(t,e){var n=t.get("center"),r=e.getWidth(),i=e.getHeight(),a=Math.min(r,i),o=he(n[0],e.getWidth()),s=he(n[1],e.getHeight()),l=he(t.get("radius"),a/2);return{cx:o,cy:s,r:l}}function CO(t,e){var n=t==null?"":t+"";return e&&(pe(e)?n=e.replace("{value}",n):xe(e)&&(n=e(t))),n}var K6e=function(t){U(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 a=n.get(["axisLine","lineStyle","color"]),o=q6e(n,i);this._renderMain(n,r,i,a,o),this._data=n.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(n,r,i,a,o){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"),h=d?aO:xr,g=f.get("show"),v=f.getModel("lineStyle"),m=v.get("width"),y=[u,c];P2(y,!l),u=y[0],c=y[1];for(var b=c-u,_=u,O=[],S=0;g&&S<a.length;S++){var x=Math.min(Math.max(a[S][0],0),1);c=u+b*x;var w=new h({shape:{startAngle:_,endAngle:c,cx:o.cx,cy:o.cy,clockwise:l,r0:o.r-m,r:o.r},silent:!0});w.setStyle({fill:a[S][1]}),w.setStyle(v.getLineStyle(["color","width"])),O.push(w),_=c}O.reverse(),k(O,function(P){return s.add(P)});var T=function(P){if(P<=0)return a[0][1];var C;for(C=0;C<a.length;C++)if(a[C][0]>=P&&(C===0?0:a[C-1][0])<P)return a[C][1];return a[C-1][1]};this._renderTicks(n,r,i,T,o,u,c,l,m),this._renderTitleAndDetail(n,r,i,T,o),this._renderAnchor(n,o),this._renderPointer(n,r,i,T,o,u,c,l,m)},e.prototype._renderTicks=function(n,r,i,a,o,s,l,u,c){for(var f=this.group,d=o.cx,h=o.cy,g=o.r,v=+n.get("min"),m=+n.get("max"),y=n.getModel("splitLine"),b=n.getModel("axisTick"),_=n.getModel("axisLabel"),O=n.get("splitNumber"),S=b.get("splitNumber"),x=he(y.get("length"),g),w=he(b.get("length"),g),T=s,P=(l-s)/O,C=P/S,$=y.getModel("lineStyle").getLineStyle(),A=b.getModel("lineStyle").getLineStyle(),E=y.get("distance"),D,M,R=0;R<=O;R++){if(D=Math.cos(T),M=Math.sin(T),y.get("show")){var N=E?E+c:c,V=new Cn({shape:{x1:D*(g-N)+d,y1:M*(g-N)+h,x2:D*(g-x-N)+d,y2:M*(g-x-N)+h},style:$,silent:!0});$.stroke==="auto"&&V.setStyle({stroke:a(R/O)}),f.add(V)}if(_.get("show")){var N=_.get("distance")+E,L=CO(Ut(R/O*(m-v)+v),_.get("formatter")),z=a(R/O),B=D*(g-x-N)+d,F=M*(g-x-N)+h,j=_.get("rotate"),K=0;j==="radial"?(K=-T+2*Math.PI,K>Math.PI/2&&(K+=Math.PI)):j==="tangential"?K=-T-Math.PI/2:it(j)&&(K=j*Math.PI/180),K===0?f.add(new nt({style:$t(_,{text:L,x:B,y:F,verticalAlign:M<-.8?"top":M>.8?"bottom":"middle",align:D<-.4?"left":D>.4?"right":"center"},{inheritColor:z}),silent:!0})):f.add(new nt({style:$t(_,{text:L,x:B,y:F,verticalAlign:"middle",align:"center"},{inheritColor:z}),silent:!0,originX:B,originY:F,rotation:K}))}if(b.get("show")&&R!==O){var N=b.get("distance");N=N?N+c:c;for(var q=0;q<=S;q++){D=Math.cos(T),M=Math.sin(T);var te=new Cn({shape:{x1:D*(g-N)+d,y1:M*(g-N)+h,x2:D*(g-w-N)+d,y2:M*(g-w-N)+h},silent:!0,style:A});A.stroke==="auto"&&te.setStyle({stroke:a((R+q/S)/O)}),f.add(te),T+=C}T-=C}else T+=P}},e.prototype._renderPointer=function(n,r,i,a,o,s,l,u,c){var f=this.group,d=this._data,h=this._progressEls,g=[],v=n.get(["pointer","show"]),m=n.getModel("progress"),y=m.get("show"),b=n.getData(),_=b.mapDimension("value"),O=+n.get("min"),S=+n.get("max"),x=[O,S],w=[s,l];function T(C,$){var A=b.getItemModel(C),E=A.getModel("pointer"),D=he(E.get("width"),o.r),M=he(E.get("length"),o.r),R=n.get(["pointer","icon"]),N=E.get("offsetCenter"),V=he(N[0],o.r),L=he(N[1],o.r),z=E.get("keepAspect"),B;return R?B=rn(R,V-D/2,L-M,D,M,null,z):B=new Y6e({shape:{angle:-Math.PI/2,width:D,r:M,x:V,y:L}}),B.rotation=-($+Math.PI/2),B.x=o.cx,B.y=o.cy,B}function P(C,$){var A=m.get("roundCap"),E=A?aO:xr,D=m.get("overlap"),M=D?m.get("width"):c/b.count(),R=D?o.r-M:o.r-(C+1)*M,N=D?o.r:o.r-C*M,V=new E({shape:{startAngle:s,endAngle:$,cx:o.cx,cy:o.cy,clockwise:u,r0:R,r:N}});return D&&(V.z2=S-b.get(_,C)%S),V}(y||v)&&(b.diff(d).add(function(C){var $=b.get(_,C);if(v){var A=T(C,s);Mt(A,{rotation:-((isNaN(+$)?w[0]:mt($,x,w,!0))+Math.PI/2)},n),f.add(A),b.setItemGraphicEl(C,A)}if(y){var E=P(C,s),D=m.get("clip");Mt(E,{shape:{endAngle:mt($,x,w,D)}},n),f.add(E),E2(n.seriesIndex,b.dataType,C,E),g[C]=E}}).update(function(C,$){var A=b.get(_,C);if(v){var E=d.getItemGraphicEl($),D=E?E.rotation:s,M=T(C,D);M.rotation=D,ot(M,{rotation:-((isNaN(+A)?w[0]:mt(A,x,w,!0))+Math.PI/2)},n),f.add(M),b.setItemGraphicEl(C,M)}if(y){var R=h[$],N=R?R.shape.endAngle:s,V=P(C,N),L=m.get("clip");ot(V,{shape:{endAngle:mt(A,x,w,L)}},n),f.add(V),E2(n.seriesIndex,b.dataType,C,V),g[C]=V}}).execute(),b.each(function(C){var $=b.getItemModel(C),A=$.getModel("emphasis"),E=A.get("focus"),D=A.get("blurScope"),M=A.get("disabled");if(v){var R=b.getItemGraphicEl(C),N=b.getItemVisual(C,"style"),V=N.fill;if(R instanceof Ln){var L=R.style;R.useStyle(ne({image:L.image,x:L.x,y:L.y,width:L.width,height:L.height},N))}else R.useStyle(N),R.type!=="pointer"&&R.setColor(V);R.setStyle($.getModel(["pointer","itemStyle"]).getItemStyle()),R.style.fill==="auto"&&R.setStyle("fill",a(mt(b.get(_,C),x,[0,1],!0))),R.z2EmphasisLift=0,Zn(R,$),Xt(R,E,D,M)}if(y){var z=g[C];z.useStyle(b.getItemVisual(C,"style")),z.setStyle($.getModel(["progress","itemStyle"]).getItemStyle()),z.z2EmphasisLift=0,Zn(z,$),Xt(z,E,D,M)}}),this._progressEls=g)},e.prototype._renderAnchor=function(n,r){var i=n.getModel("anchor"),a=i.get("show");if(a){var o=i.get("size"),s=i.get("icon"),l=i.get("offsetCenter"),u=i.get("keepAspect"),c=rn(s,r.cx-o/2+he(l[0],r.r),r.cy-o/2+he(l[1],r.r),o,o,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,a,o){var s=this,l=n.getData(),u=l.mapDimension("value"),c=+n.get("min"),f=+n.get("max"),d=new Me,h=[],g=[],v=n.isAnimationEnabled(),m=n.get(["pointer","showAbove"]);l.diff(this._data).add(function(y){h[y]=new nt({silent:!0}),g[y]=new nt({silent:!0})}).update(function(y,b){h[y]=s._titleEls[b],g[y]=s._detailEls[b]}).execute(),l.each(function(y){var b=l.getItemModel(y),_=l.get(u,y),O=new Me,S=a(mt(_,[c,f],[0,1],!0)),x=b.getModel("title");if(x.get("show")){var w=x.get("offsetCenter"),T=o.cx+he(w[0],o.r),P=o.cy+he(w[1],o.r),C=h[y];C.attr({z2:m?0:2,style:$t(x,{x:T,y:P,text:l.getName(y),align:"center",verticalAlign:"middle"},{inheritColor:S})}),O.add(C)}var $=b.getModel("detail");if($.get("show")){var A=$.get("offsetCenter"),E=o.cx+he(A[0],o.r),D=o.cy+he(A[1],o.r),M=he($.get("width"),o.r),R=he($.get("height"),o.r),N=n.get(["progress","show"])?l.getItemVisual(y,"style").fill:S,C=g[y],V=$.get("formatter");C.attr({z2:m?0:2,style:$t($,{x:E,y:D,text:CO(_,V),width:isNaN(M)?null:M,height:isNaN(R)?null:R,align:"center",verticalAlign:"middle"},{inheritColor:N})}),uH(C,{normal:$},_,function(z){return CO(z,V)}),v&&cH(C,y,l,n,{getFormattedLabel:function(z,B,F,j,K,q){return CO(q?q.interpolatedValue:_,V)}}),O.add(C)}d.add(O)}),this.group.add(d),this._titleEls=h,this._detailEls=g},e.type="gauge",e}(_t),J6e=function(t){U(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 eh(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}(Ct);function eBe(t){t.registerChartView(K6e),t.registerSeriesModel(J6e)}var tBe=["itemStyle","opacity"],nBe=function(t){U(e,t);function e(n,r){var i=t.call(this)||this,a=i,o=new Cr,s=new nt;return a.setTextContent(s),i.setTextGuideLine(o),i.updateData(n,r,!0),i}return e.prototype.updateData=function(n,r,i){var a=this,o=n.hostModel,s=n.getItemModel(r),l=n.getItemLayout(r),u=s.getModel("emphasis"),c=s.get(tBe);c=c??1,i||Aa(a),a.useStyle(n.getItemVisual(r,"style")),a.style.lineJoin="round",i?(a.setShape({points:l.points}),a.style.opacity=0,Mt(a,{style:{opacity:c}},o,r)):ot(a,{style:{opacity:c},shape:{points:l.points}},o,r),Zn(a,s),this._updateLabel(n,r),Xt(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(n,r){var i=this,a=this.getTextGuideLine(),o=i.getTextContent(),s=n.hostModel,l=n.getItemModel(r),u=n.getItemLayout(r),c=u.label,f=n.getItemVisual(r,"style"),d=f.fill;Un(o,Tn(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 h=c.linePoints;a.setShape({points:h}),i.textGuideLineConfig={anchor:h?new Be(h[0][0],h[0][1]):null},ot(o,{style:{x:c.x,y:c.y}},s,r),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),AE(i,EE(l),{stroke:d})},e}(wr),rBe=function(t){U(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 a=n.getData(),o=this._data,s=this.group;a.diff(o).add(function(l){var u=new nBe(a,l);a.setItemGraphicEl(l,u),s.add(u)}).update(function(l,u){var c=o.getItemGraphicEl(u);c.updateData(a,l),s.add(c),a.setItemGraphicEl(l,c)}).remove(function(l){var u=o.getItemGraphicEl(l);ov(u,n,l)}).execute(),this._data=a},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(_t),iBe=function(t){U(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 Gv(ve(this.getData,this),ve(this.getRawData,this)),this._defaultLabelLine(n)},e.prototype.getInitialData=function(n,r){return eh(this,{coordDimensions:["value"],encodeDefaulter:ke(mA,this)})},e.prototype._defaultLabelLine=function(n){Bu(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),a=r.mapDimension("value"),o=r.getSum(a);return i.percent=o?+(r.get(a,n)/o*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}(Ct);function aBe(t,e){return sn(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function oBe(t,e){for(var n=t.mapDimension("value"),r=t.mapArray(n,function(l){return l}),i=[],a=e==="ascending",o=0,s=t.count();o<s;o++)i[o]=o;return xe(e)?i.sort(e):e!=="none"&&i.sort(function(l,u){return a?r[l]-r[u]:r[u]-r[l]}),i}function sBe(t){var e=t.hostModel,n=e.get("orient");t.each(function(r){var i=t.getItemModel(r),a=i.getModel("label"),o=a.get("position"),s=i.getModel("labelLine"),l=t.getItemLayout(r),u=l.points,c=o==="inner"||o==="inside"||o==="center"||o==="insideLeft"||o==="insideRight",f,d,h,g;if(c)o==="insideLeft"?(d=(u[0][0]+u[3][0])/2+5,h=(u[0][1]+u[3][1])/2,f="left"):o==="insideRight"?(d=(u[1][0]+u[2][0])/2-5,h=(u[1][1]+u[2][1])/2,f="right"):(d=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,h=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,f="center"),g=[[d,h],[d,h]];else{var v=void 0,m=void 0,y=void 0,b=void 0,_=s.get("length");process.env.NODE_ENV!=="production"&&(n==="vertical"&&["top","bottom"].indexOf(o)>-1&&(o="left",console.warn("Position error: Funnel chart on vertical orient dose not support top and bottom.")),n==="horizontal"&&["left","right"].indexOf(o)>-1&&(o="bottom",console.warn("Position error: Funnel chart on horizontal orient dose not support left and right."))),o==="left"?(v=(u[3][0]+u[0][0])/2,m=(u[3][1]+u[0][1])/2,y=v-_,d=y-5,f="right"):o==="right"?(v=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,y=v+_,d=y+5,f="left"):o==="top"?(v=(u[3][0]+u[0][0])/2,m=(u[3][1]+u[0][1])/2,b=m-_,h=b-5,f="center"):o==="bottom"?(v=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,b=m+_,h=b+5,f="center"):o==="rightTop"?(v=n==="horizontal"?u[3][0]:u[1][0],m=n==="horizontal"?u[3][1]:u[1][1],n==="horizontal"?(b=m-_,h=b-5,f="center"):(y=v+_,d=y+5,f="top")):o==="rightBottom"?(v=u[2][0],m=u[2][1],n==="horizontal"?(b=m+_,h=b+5,f="center"):(y=v+_,d=y+5,f="bottom")):o==="leftTop"?(v=u[0][0],m=n==="horizontal"?u[0][1]:u[1][1],n==="horizontal"?(b=m-_,h=b-5,f="center"):(y=v-_,d=y-5,f="right")):o==="leftBottom"?(v=n==="horizontal"?u[1][0]:u[3][0],m=n==="horizontal"?u[1][1]:u[2][1],n==="horizontal"?(b=m+_,h=b+5,f="center"):(y=v-_,d=y-5,f="right")):(v=(u[1][0]+u[2][0])/2,m=(u[1][1]+u[2][1])/2,n==="horizontal"?(b=m+_,h=b+5,f="center"):(y=v+_,d=y+5,f="left")),n==="horizontal"?(y=v,d=y):(b=m,h=b),g=[[v,m],[y,b]]}l.label={linePoints:g,x:d,y:h,verticalAlign:"middle",textAlign:f,inside:c}})}function lBe(t,e){t.eachSeriesByType("funnel",function(n){var r=n.getData(),i=r.mapDimension("value"),a=n.get("sort"),o=aBe(n,e),s=n.get("orient"),l=o.width,u=o.height,c=oBe(r,a),f=o.x,d=o.y,h=s==="horizontal"?[he(n.get("minSize"),u),he(n.get("maxSize"),u)]:[he(n.get("minSize"),l),he(n.get("maxSize"),l)],g=r.getDataExtent(i),v=n.get("min"),m=n.get("max");v==null&&(v=Math.min(g[0],0)),m==null&&(m=g[1]);var y=n.get("funnelAlign"),b=n.get("gap"),_=s==="horizontal"?l:u,O=(_-b*(r.count()-1))/r.count(),S=function(D,M){if(s==="horizontal"){var R=r.get(i,D)||0,N=mt(R,[v,m],h,!0),V=void 0;switch(y){case"top":V=d;break;case"center":V=d+(u-N)/2;break;case"bottom":V=d+(u-N);break}return[[M,V],[M,V+N]]}var L=r.get(i,D)||0,z=mt(L,[v,m],h,!0),B;switch(y){case"left":B=f;break;case"center":B=f+(l-z)/2;break;case"right":B=f+l-z;break}return[[B,M],[B+z,M]]};a==="ascending"&&(O=-O,b=-b,s==="horizontal"?f+=l:d+=u,c=c.reverse());for(var x=0;x<c.length;x++){var w=c[x],T=c[x+1],P=r.getItemModel(w);if(s==="horizontal"){var C=P.get(["itemStyle","width"]);C==null?C=O:(C=he(C,l),a==="ascending"&&(C=-C));var $=S(w,f),A=S(T,f+C);f+=C+b,r.setItemLayout(w,{points:$.concat(A.slice().reverse())})}else{var E=P.get(["itemStyle","height"]);E==null?E=O:(E=he(E,u),a==="ascending"&&(E=-E));var $=S(w,d),A=S(T,d+E);d+=E+b,r.setItemLayout(w,{points:$.concat(A.slice().reverse())})}}sBe(r)})}function uBe(t){t.registerChartView(rBe),t.registerSeriesModel(iBe),t.registerLayout(lBe),t.registerProcessor(jv("funnel"))}var cBe=.3,fBe=function(t){U(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n._dataGroup=new Me,n._initialized=!1,n}return e.prototype.init=function(){this.group.add(this._dataGroup)},e.prototype.render=function(n,r,i,a){this._progressiveEls=null;var o=this._dataGroup,s=n.getData(),l=this._data,u=n.coordinateSystem,c=u.dimensions,f=GX(n);s.diff(l).add(d).update(h).remove(g).execute();function d(m){var y=jX(s,o,m,c,u);YM(y,s,m,f)}function h(m,y){var b=l.getItemGraphicEl(y),_=HX(s,m,c,u);s.setItemGraphicEl(m,b),ot(b,{shape:{points:_}},n,m),Aa(b),YM(b,s,m,f)}function g(m){var y=l.getItemGraphicEl(m);o.remove(y)}if(!this._initialized){this._initialized=!0;var v=dBe(u,n,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(v)}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 a=r.getData(),o=r.coordinateSystem,s=o.dimensions,l=GX(r),u=this._progressiveEls=[],c=n.start;c<n.end;c++){var f=jX(a,this._dataGroup,c,s,o);f.incremental=!0,YM(f,a,c,l),u.push(f)}},e.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},e.type="parallel",e}(_t);function dBe(t,e,n){var r=t.model,i=t.getRect(),a=new tt({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),o=r.get("layout")==="horizontal"?"width":"height";return a.setShape(o,0),Mt(a,{shape:{width:i.width,height:i.height}},e,n),a}function HX(t,e,n,r){for(var i=[],a=0;a<n.length;a++){var o=n[a],s=t.get(t.mapDimension(o),e);hBe(s,r.getAxis(o).type)||i.push(r.dataToPoint(s,o))}return i}function jX(t,e,n,r,i){var a=HX(t,n,r,i),o=new Cr({shape:{points:a},z2:10});return e.add(o),t.setItemGraphicEl(n,o),o}function GX(t){var e=t.get("smooth",!0);return e===!0&&(e=cBe),e=ao(e),Ys(e)&&(e=0),{smooth:e}}function YM(t,e,n,r){t.useStyle(e.getItemVisual(n,"style")),t.style.fill=null,t.setShape("smooth",r.smooth);var i=e.getItemModel(n),a=i.getModel("emphasis");Zn(t,i,"lineStyle"),Xt(t,a.get("focus"),a.get("blurScope"),a.get("disabled"))}function hBe(t,e){return e==="category"?t==null:t==null||isNaN(t)}var pBe=function(t){U(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 go(null,this,{useEncodeDefaulter:ve(gBe,null,this)})},e.prototype.getRawIndicesByActiveState=function(n){var r=this.coordinateSystem,i=this.getData(),a=[];return r.eachActiveState(i,function(o,s){n===o&&a.push(i.getRawIndex(s))}),a},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}(Ct);function gBe(t){var e=t.ecModel.getComponent("parallel",t.get("parallelIndex"));if(e){var n={};return k(e.dimensions,function(r){var i=vBe(r);n[r]=i}),n}}function vBe(t){return+t.replace("dim","")}var mBe=["lineStyle","opacity"],yBe={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,a){n.eachActiveState(a,function(o,s){var l=r[o];if(o==="normal"&&a.hasItemOption){var u=a.getItemModel(s).get(mBe,!0);u!=null&&(l=u)}var c=a.ensureUniqueItemVisual(s,"style");c.opacity=l},i.start,i.end)}}}};function bBe(t){_Be(t),OBe(t)}function _Be(t){if(!t.parallel){var e=!1;k(t.series,function(n){n&&n.type==="parallel"&&(e=!0)}),e&&(t.parallel=[{}])}}function OBe(t){var e=xt(t.parallelAxis);k(e,function(n){if(we(n)){var r=n.parallelIndex||0,i=xt(t.parallel)[r];i&&i.parallelAxisDefault&&Le(n,i.parallelAxisDefault,!1)}})}var SBe=5,xBe=function(t){U(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={},k(wBe,function(a,o){i.getZr().on(o,this._handlers[o]=ve(a,this))},this)),Fd(this,"_throttledDispatchExpand",n.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(n,r){Sv(this,"_throttledDispatchExpand"),k(this._handlers,function(i,a){r.getZr().off(a,i)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(n){this._dispatchExpand(n)},e.prototype._dispatchExpand=function(n){n&&this._api.dispatchAction(ne({type:"parallelAxisExpand"},n))},e.type="parallel",e}(At),wBe={mousedown:function(t){qM(this,"click")&&(this._mouseDownPoint=[t.offsetX,t.offsetY])},mouseup:function(t){var e=this._mouseDownPoint;if(qM(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>SBe)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||!qM(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 qM(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}var CBe=function(t){U(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&&Le(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){k(["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=vt(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);k(i,function(a){n.push("dim"+a.get("dim")),r.push(a.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}(He),TBe=function(t){U(e,t);function e(n,r,i,a,o){var s=t.call(this,n,r,i)||this;return s.type=a||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e}(ea);function kc(t,e,n,r,i,a){t=t||0;var o=n[1]-n[0];if(i!=null&&(i=oh(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),r==="all"){var s=Math.abs(e[1]-e[0]);s=oh(s,[0,o]),i=a=oh(s,[i,a]),r=0}e[0]=oh(e[0],n),e[1]=oh(e[1],n);var l=KM(e,r);e[r]+=t;var u=i||0,c=n.slice();l.sign<0?c[0]+=u:c[1]-=u,e[r]=oh(e[r],c);var f;return f=KM(e,r),i!=null&&(f.sign!==l.sign||f.span<i)&&(e[1-r]=e[r]+l.sign*i),f=KM(e,r),a!=null&&f.span>a&&(e[1-r]=e[r]+f.sign*a),e}function KM(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 oh(t,e){return Math.min(e[1]!=null?e[1]:1/0,Math.max(e[0]!=null?e[0]:-1/0,t))}var JM=k,ZX=Math.min,UX=Math.max,XX=Math.floor,PBe=Math.ceil,YX=Ut,$Be=Math.PI,ABe=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,a=e.parallelAxisIndex;JM(i,function(o,s){var l=a[s],u=n.getComponent("parallelAxis",l),c=this._axesMap.set(o,new TBe(o,Rv(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,a=n.pixelDimIndex,o=e[1-a],s=e[a];return o>=r&&o<=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();JM(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),bc(o.scale,o.model)},this)}},this)},t.prototype.resize=function(e,n){this._rect=sn(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"],a=e.get("layout"),o=a==="horizontal"?0:1,s=n[i[o]],l=[0,s],u=this.dimensions.length,c=TO(e.get("axisExpandWidth"),l),f=TO(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>f&&f>1&&c>0&&s>0,h=e.get("axisExpandWindow"),g;if(h)g=TO(h[1]-h[0],l),h[1]=h[0]+g;else{g=TO(c*(f-1),l);var v=e.get("axisExpandCenter")||XX(u/2);h=[c*v-g/2],h[1]=h[0]+g}var m=(s-g)/(u-f);m<3&&(m=0);var y=[XX(YX(h[0]/c,1))+1,PBe(YX(h[1]/c,1))-1],b=m/c*h[0];return{layout:a,pixelDimIndex:o,layoutBase:n[r[o]],layoutLength:s,axisBase:n[r[1-o]],axisLength:n[i[1-o]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:m,axisExpandWindow:h,axisCount:u,winInnerIndices:y,axisExpandWindow0Pos:b}},t.prototype._layoutAxes=function(){var e=this._rect,n=this._axesMap,r=this.dimensions,i=this._makeLayoutInfo(),a=i.layout;n.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),JM(r,function(o,s){var l=(i.axisExpandable?MBe:EBe)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:$Be/2,vertical:0},f=[u[a].x+e.x,u[a].y+e.y],d=c[a],h=zr();el(h,h,d),Sa(h,h,f),this._axesLayout[o]={position:f,rotation:d,transform:h,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 a=this._axesMap,o=this.dimensions,s=[],l=[];k(o,function(m){s.push(e.mapDimension(m)),l.push(a.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),h=0,g=o.length;h<g;h++){var v=l[h].getActiveState(d[h]);if(v==="inactive"){f="inactive";break}}}n(f,c)}},t.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,n=this._axesMap,r=!1,i=0,a=e.length;i<a;i++)n.get(e[i]).model.getActiveState()!=="normal"&&(r=!0);return r},t.prototype.axisCoordToPoint=function(e,n){var r=this._axesLayout[n];return Ea([e,0],r.transform)},t.prototype.getAxisLayout=function(e){return $e(this._axesLayout[e])},t.prototype.getSlidedAxisExpandWindow=function(e){var n=this._makeLayoutInfo(),r=n.pixelDimIndex,i=n.axisExpandWindow.slice(),a=i[1]-i[0],o=[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<a*f[0]?(u="jump",l=s-a*f[2]):d&&c&&s>a*(1-f[0])?(u="jump",l=s-a*(1-f[2])):(l=s-a*f[1])>=0&&(l=s-a*(1-f[1]))<=0&&(l=0),l*=n.axisExpandWidth/c,l?kc(l,i,o,"all"):u="none";else{var h=i[1]-i[0],g=o[1]*s/h;i=[UX(0,g-h/2)],i[1]=ZX(o[1],i[0]+h),i[0]=i[1]-h}return{axisExpandWindow:i,behavior:u}},t}();function TO(t,e){return ZX(UX(t,e[0]),e[1])}function EBe(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function MBe(t,e){var n=e.layoutLength,r=e.axisExpandWidth,i=e.axisCount,a=e.axisCollapseWidth,o=e.winInnerIndices,s,l=a,u=!1,c;return t<o[0]?(s=t*a,c=a):t<=o[1]?(s=e.axisExpandWindow0Pos+t*r-e.axisExpandWindow[0],l=r,u=!0):(s=n-(i-1-t)*a,c=a),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:c}}function IBe(t,e){var n=[];return t.eachComponent("parallel",function(r,i){var a=new ABe(r,t,e);a.name="parallel_"+i,a.resize(r,e),r.coordinateSystem=a,a.model=r,n.push(a)}),t.eachSeries(function(r){if(r.get("coordinateSystem")==="parallel"){var i=r.getReferringComponents("parallel",on).models[0];r.coordinateSystem=i.coordinateSystem}}),n}var DBe={create:IBe},eI=function(t){U(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 Wu([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(n){var r=this.activeIntervals=$e(n);if(r)for(var i=r.length-1;i>=0;i--)di(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 a=0,o=r.length;a<o;a++)if(r[a][0]<=n&&n<=r[a][1])return"active";return"inactive"},e}(He);Kt(eI,qd);var Nc=!0,um=Math.min,sh=Math.max,RBe=Math.pow,kBe=1e4,NBe=6,LBe=6,qX="globalPan",VBe={w:[0,0],e:[0,1],n:[1,0],s:[1,1]},BBe={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},KX={brushStyle:{lineWidth:2,stroke:"rgba(210,219,238,0.3)",fill:"#D2DBEE"},transformable:!0,brushMode:"single",removeOnClick:!1},zBe=0,tI=function(t){U(e,t);function e(n){var r=t.call(this)||this;return r._track=[],r._covers=[],r._handlers={},process.env.NODE_ENV!=="production"&&Pe(n),r._zr=n,r.group=new Me,r._uid="brushController_"+zBe++,k(ZBe,function(i,a){this._handlers[a]=ve(i,this)},r),r}return e.prototype.enableBrush=function(n){return process.env.NODE_ENV!=="production"&&Pe(this._mounted),this._brushType&&this._doDisableBrush(),n.brushType&&this._doEnableBrush(n),this},e.prototype._doEnableBrush=function(n){var r=this._zr;this._enableGlobalPan||E3e(r,qX,this._uid),k(this._handlers,function(i,a){r.on(a,i)}),this._brushType=n.brushType,this._brushOption=Le($e(KX),n,!0)},e.prototype._doDisableBrush=function(){var n=this._zr;M3e(n,qX,this._uid),k(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={};k(n,function(i){r[i.panelId]=$e(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"&&Pe(this._mounted),n=ie(n,function(d){return Le($e(KX),d,!0)});var r="\0-brush-index-",i=this._covers,a=this._covers=[],o=this,s=this._creatingCover;return new vs(i,n,u,l).add(c).update(c).remove(f).execute(),this;function l(d,h){return(d.id!=null?d.id:r+h)+"-"+d.brushType}function u(d,h){return l(d.__brushOption,h)}function c(d,h){var g=n[d];if(h!=null&&i[h]===s)a[d]=i[h];else{var v=a[d]=h!=null?(i[h].__brushOption=g,i[h]):eY(o,JX(o,g));nI(o,v)}}function f(d){i[d]!==s&&o.group.remove(i[d])}},e.prototype.unmount=function(){if(!(process.env.NODE_ENV!=="production"&&!this._mounted))return this.enableBrush(!1),aI(this),this._zr.remove(this.group),process.env.NODE_ENV!=="production"&&(this._mounted=!1),this},e.prototype.dispose=function(){this.unmount(),this.off()},e}(zi);function JX(t,e){var n=PO[e.brushType].createCover(t,e);return n.__brushOption=e,nY(n,e),t.group.add(n),n}function eY(t,e){var n=rI(e);return n.endCreating&&(n.endCreating(t,e),nY(e,e.__brushOption)),e}function tY(t,e){var n=e.__brushOption;rI(e).updateCoverShape(t,e,n.range,n)}function nY(t,e){var n=e.z;n==null&&(n=kBe),t.traverse(function(r){r.z=n,r.z2=n})}function nI(t,e){rI(e).updateCommon(t,e),tY(t,e)}function rI(t){return PO[t.__brushOption.brushType]}function iI(t,e,n){var r=t._panels;if(!r)return Nc;var i,a=t._transform;return k(r,function(o){o.isTargetByCursor(e,n,a)&&(i=o)}),i}function rY(t,e){var n=t._panels;if(!n)return Nc;var r=e.__brushOption.panelId;return r!=null?n[r]:Nc}function aI(t){var e=t._covers,n=e.length;return k(e,function(r){t.group.remove(r)},t),e.length=0,!!n}function Lc(t,e){var n=ie(t._covers,function(r){var i=r.__brushOption,a=$e(i.range);return{brushType:i.brushType,panelId:i.panelId,range:a}});t.trigger("brush",{areas:n,isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function FBe(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],r=e[0],i=n[0]-r[0],a=n[1]-r[1],o=RBe(i*i+a*a,.5);return o>NBe}function iY(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function aY(t,e,n,r){var i=new Me;return i.add(new tt({name:"main",style:sI(n),silent:!0,draggable:!0,cursor:"move",drift:ke(lY,t,e,i,["n","s","w","e"]),ondragend:ke(Lc,e,{isEnd:!0})})),k(r,function(a){i.add(new tt({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:ke(lY,t,e,i,a),ondragend:ke(Lc,e,{isEnd:!0})}))}),i}function oY(t,e,n,r){var i=r.brushStyle.lineWidth||0,a=sh(i,LBe),o=n[0][0],s=n[1][0],l=o-i/2,u=s-i/2,c=n[0][1],f=n[1][1],d=c-a+i/2,h=f-a+i/2,g=c-o,v=f-s,m=g+i,y=v+i;_s(t,e,"main",o,s,g,v),r.transformable&&(_s(t,e,"w",l,u,a,y),_s(t,e,"e",d,u,a,y),_s(t,e,"n",l,u,m,a),_s(t,e,"s",l,h,m,a),_s(t,e,"nw",l,u,a,a),_s(t,e,"ne",d,u,a,a),_s(t,e,"sw",l,h,a,a),_s(t,e,"se",d,h,a,a))}function oI(t,e){var n=e.__brushOption,r=n.transformable,i=e.childAt(0);i.useStyle(sI(n)),i.attr({silent:!r,cursor:r?"move":"default"}),k([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=e.childOfName(a.join("")),s=a.length===1?lI(t,a[0]):QBe(t,a);o&&o.attr({silent:!r,invisible:!r,cursor:r?BBe[s]+"-resize":null})})}function _s(t,e,n,r,i,a,o){var s=e.childOfName(n);s&&s.setShape(jBe(uI(t,e,[[r,i],[r+a,i+o]])))}function sI(t){return Te({strokeNoScale:!0},t.brushStyle)}function sY(t,e,n,r){var i=[um(t,n),um(e,r)],a=[sh(t,n),sh(e,r)];return[[i[0],a[0]],[i[1],a[1]]]}function WBe(t){return hl(t.group)}function lI(t,e){var n={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},i=t1(n[e],WBe(t));return r[i]}function QBe(t,e){var n=[lI(t,e[0]),lI(t,e[1])];return(n[0]==="e"||n[0]==="w")&&n.reverse(),n.join("")}function lY(t,e,n,r,i,a){var o=n.__brushOption,s=t.toRectRange(o.range),l=uY(e,i,a);k(r,function(u){var c=VBe[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=t.fromRectRange(sY(s[0][0],s[1][0],s[0][1],s[1][1])),nI(e,n),Lc(e,{isEnd:!1})}function HBe(t,e,n,r){var i=e.__brushOption.range,a=uY(t,n,r);k(i,function(o){o[0]+=a[0],o[1]+=a[1]}),nI(t,e),Lc(t,{isEnd:!1})}function uY(t,e,n){var r=t.group,i=r.transformCoordToLocal(e,n),a=r.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function uI(t,e,n){var r=rY(t,e);return r&&r!==Nc?r.clipPath(n,t._transform):$e(n)}function jBe(t){var e=um(t[0][0],t[1][0]),n=um(t[0][1],t[1][1]),r=sh(t[0][0],t[1][0]),i=sh(t[0][1],t[1][1]);return{x:e,y:n,width:r-e,height:i-n}}function GBe(t,e,n){if(!(!t._brushType||UBe(t,e.offsetX,e.offsetY))){var r=t._zr,i=t._covers,a=iI(t,e,n);if(!t._dragging)for(var o=0;o<i.length;o++){var s=i[o].__brushOption;if(a&&(a===Nc||s.panelId===a.panelId)&&PO[s.brushType].contain(i[o],n[0],n[1]))return}a&&r.setCursorStyle("crosshair")}}function cI(t){var e=t.event;e.preventDefault&&e.preventDefault()}function fI(t,e,n){return t.childOfName("main").contain(e,n)}function cY(t,e,n,r){var i=t._creatingCover,a=t._creatingPanel,o=t._brushOption,s;if(t._track.push(n.slice()),FBe(t)||i){if(a&&!i){o.brushMode==="single"&&aI(t);var l=$e(o);l.brushType=fY(l.brushType,a),l.panelId=a===Nc?null:a.panelId,i=t._creatingCover=JX(t,l),t._covers.push(i)}if(i){var u=PO[fY(t._brushType,a)],c=i.__brushOption;c.range=u.getCreatingRange(uI(t,i,t._track)),r&&(eY(t,i),u.updateCommon(t,i)),tY(t,i),s={isEnd:r}}}else r&&o.brushMode==="single"&&o.removeOnClick&&iI(t,e,n)&&aI(t)&&(s={isEnd:r,removeOnClick:!0});return s}function fY(t,e){return t==="auto"?(process.env.NODE_ENV!=="production"&&Pe(e&&e.defaultBrushType,'MUST have defaultBrushType when brushType is "atuo"'),e.defaultBrushType):t}var ZBe={mousedown:function(t){if(this._dragging)dY(this,t);else if(!t.target||!t.target.draggable){cI(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null;var n=this._creatingPanel=iI(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(GBe(this,t,r),this._dragging){cI(t);var i=cY(this,t,r,!1);i&&Lc(this,i)}},mouseup:function(t){dY(this,t)}};function dY(t,e){if(t._dragging){cI(e);var n=e.offsetX,r=e.offsetY,i=t.group.transformCoordToLocal(n,r),a=cY(t,e,i,!0);t._dragging=!1,t._track=[],t._creatingCover=null,a&&Lc(t,a)}}function UBe(t,e,n){var r=t._zr;return e<0||e>r.getWidth()||n<0||n>r.getHeight()}var PO={lineX:hY(0),lineY:hY(1),rect:{createCover:function(t,e){function n(r){return r}return aY({toRectRange:n,fromRectRange:n},t,e,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(t){var e=iY(t);return sY(e[1][0],e[1][1],e[0][0],e[0][1])},updateCoverShape:function(t,e,n,r){oY(t,e,n,r)},updateCommon:oI,contain:fI},polygon:{createCover:function(t,e){var n=new Me;return n.add(new Cr({name:"main",style:sI(e),silent:!0})),n},getCreatingRange:function(t){return t},endCreating:function(t,e){e.remove(e.childAt(0)),e.add(new wr({name:"main",draggable:!0,drift:ke(HBe,t,e),ondragend:ke(Lc,t,{isEnd:!0})}))},updateCoverShape:function(t,e,n,r){e.childAt(0).setShape({points:uI(t,e,n)})},updateCommon:oI,contain:fI}};function hY(t){return{createCover:function(e,n){return aY({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=iY(e),r=um(n[0][t],n[1][t]),i=sh(n[0][t],n[1][t]);return[r,i]},updateCoverShape:function(e,n,r,i){var a,o=rY(e,n);if(o!==Nc&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(t);else{var s=e._zr;a=[0,[s.getWidth(),s.getHeight()][1-t]]}var l=[r,a];t&&l.reverse(),oY(e,n,l,i)},updateCommon:oI,contain:fI}}function pY(t){return t=dI(t),function(e){return Y2(e,t)}}function gY(t,e){return t=dI(t),function(n){var r=e??n,i=r?t.width:t.height,a=r?t.x:t.y;return[a,a+(i||0)]}}function vY(t,e,n){var r=dI(t);return function(i,a){return r.contain(a[0],a[1])&&!dO(i,e,n)}}function dI(t){return ze.create(t)}var XBe=["axisLine","axisTickLabel","axisName"],YBe=function(t){U(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 tI(r.getZr())).on("brush",ve(this._onBrush,this))},e.prototype.render=function(n,r,i,a){if(!qBe(n,r,a)){this.axisModel=n,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new Me,this.group.add(this._axisGroup),!!n.get("show")){var s=JBe(n,r),l=s.coordinateSystem,u=n.getAreaSelectStyle(),c=u.width,f=n.axis.dim,d=l.getAxisLayout(f),h=ne({strokeContainThreshold:c},d),g=new Er(n,h);k(XBe,g.add,g),this._axisGroup.add(g.getGroup()),this._refreshBrushController(h,u,n,s,c,i),lv(o,this._axisGroup,n)}}},e.prototype._refreshBrushController=function(n,r,i,a,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),f=ze.create({x:l[0],y:-o/2,width:u,height:o});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:pY(f),isTargetByCursor:vY(f,s,a),getLinearBrushOtherExtent:gY(f,0)}]).enableBrush({brushType:"lineX",brushStyle:r,removeOnClick:!0}).updateCovers(KBe(i))},e.prototype._onBrush=function(n){var r=n.areas,i=this.axisModel,a=i.axis,o=ie(r,function(s){return[a.coordToData(s.range[0],!0),a.coordToData(s.range[1],!0)]});(!i.option.realtime===n.isEnd||n.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e}(At);function qBe(t,e,n){return n&&n.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:n})[0]===t}function KBe(t){var e=t.axis;return ie(t.activeIntervals,function(n){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(n[0],!0),e.dataToCoord(n[1],!0)]}})}function JBe(t,e){return e.getComponent("parallel",t.get("parallelIndex"))}var eze={type:"axisAreaSelect",event:"axisAreaSelected"};function tze(t){t.registerAction(eze,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 nze={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function mY(t){t.registerComponentView(xBe),t.registerComponentModel(CBe),t.registerCoordinateSystem("parallel",DBe),t.registerPreprocessor(bBe),t.registerComponentModel(eI),t.registerComponentView(YBe),th(t,"parallel",eI,nze),tze(t)}function rze(t){je(mY),t.registerChartView(fBe),t.registerSeriesModel(pBe),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,yBe)}var ize=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}(),aze=function(t){U(e,t);function e(n){return t.call(this,n)||this}return e.prototype.getDefaultShape=function(){return new ize},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(){fs(this)},e.prototype.downplay=function(){ds(this)},e}(Ge),oze=function(t){U(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 a=this,o=n.getGraph(),s=this.group,l=n.layoutInfo,u=l.width,c=l.height,f=n.getData(),d=n.getData("edge"),h=n.get("orient");this._model=n,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(g){var v=new aze,m=De(v);m.dataIndex=g.dataIndex,m.seriesIndex=n.seriesIndex,m.dataType="edge";var y=g.getModel(),b=y.getModel("lineStyle"),_=b.get("curveness"),O=g.node1.getLayout(),S=g.node1.getModel(),x=S.get("localX"),w=S.get("localY"),T=g.node2.getLayout(),P=g.node2.getModel(),C=P.get("localX"),$=P.get("localY"),A=g.getLayout(),E,D,M,R,N,V,L,z;v.shape.extent=Math.max(1,A.dy),v.shape.orient=h,h==="vertical"?(E=(x!=null?x*u:O.x)+A.sy,D=(w!=null?w*c:O.y)+O.dy,M=(C!=null?C*u:T.x)+A.ty,R=$!=null?$*c:T.y,N=E,V=D*(1-_)+R*_,L=M,z=D*_+R*(1-_)):(E=(x!=null?x*u:O.x)+O.dx,D=(w!=null?w*c:O.y)+A.sy,M=C!=null?C*u:T.x,R=($!=null?$*c:T.y)+A.ty,N=E*(1-_)+M*_,V=D,L=E*_+M*(1-_),z=R),v.setShape({x1:E,y1:D,x2:M,y2:R,cpx1:N,cpy1:V,cpx2:L,cpy2:z}),v.useStyle(b.getItemStyle()),yY(v.style,h,g);var B=""+y.get("value"),F=Tn(y,"edgeLabel");Un(v,F,{labelFetcher:{getFormattedLabel:function(q,te,X,ee,G,W){return n.getFormattedLabel(q,te,"edge",ee,ui(G,F.normal&&F.normal.get("formatter"),B),W)}},labelDataIndex:g.dataIndex,defaultText:B}),v.setTextConfig({position:"inside"});var j=y.getModel("emphasis");Zn(v,y,"lineStyle",function(q){var te=q.getItemStyle();return yY(te,h,g),te}),s.add(v),d.setItemGraphicEl(g.dataIndex,v);var K=j.get("focus");Xt(v,K==="adjacency"?g.getAdjacentDataIndices():K==="trajectory"?g.getTrajectoryDataIndices():K,j.get("blurScope"),j.get("disabled"))}),o.eachNode(function(g){var v=g.getLayout(),m=g.getModel(),y=m.get("localX"),b=m.get("localY"),_=m.getModel("emphasis"),O=m.get(["itemStyle","borderRadius"])||0,S=new tt({shape:{x:y!=null?y*u:v.x,y:b!=null?b*c:v.y,width:v.dx,height:v.dy,r:O},style:m.getModel("itemStyle").getItemStyle(),z2:10});Un(S,Tn(m),{labelFetcher:{getFormattedLabel:function(w,T){return n.getFormattedLabel(w,T,"node")}},labelDataIndex:g.dataIndex,defaultText:g.id}),S.disableLabelAnimation=!0,S.setStyle("fill",g.getVisual("color")),S.setStyle("decal",g.getVisual("style").decal),Zn(S,m),s.add(S),f.setItemGraphicEl(g.dataIndex,S),De(S).dataType="node";var x=_.get("focus");Xt(S,x==="adjacency"?g.getAdjacentDataIndices():x==="trajectory"?g.getTrajectoryDataIndices():x,_.get("blurScope"),_.get("disabled"))}),f.eachItemGraphicEl(function(g,v){var m=f.getItemModel(v);m.get("draggable")&&(g.drift=function(y,b){a._focusAdjacencyDisabled=!0,this.shape.x+=y,this.shape.y+=b,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:n.id,dataIndex:f.getRawIndex(v),localX:this.shape.x/u,localY:this.shape.y/c})},g.ondragend=function(){a._focusAdjacencyDisabled=!1},g.draggable=!0,g.cursor="move")}),!this._data&&n.isAnimationEnabled()&&s.setClipPath(sze(s.getBoundingRect(),n,function(){s.removeClipPath()})),this._data=n.getData()},e.prototype.dispose=function(){},e.type="sankey",e}(_t);function yY(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");pe(r)&&pe(i)&&(t.fill=new wd(0,0,+(e==="horizontal"),+(e==="vertical"),[{color:r,offset:0},{color:i,offset:1}]))}}function sze(t,e,n){var r=new tt({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return Mt(r,{shape:{width:t.width+20}},e,n),r}var lze=function(t){U(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,a=n.data||n.nodes,o=n.levels;this.levelModels=[];for(var s=this.levelModels,l=0;l<o.length;l++)if(o[l].depth!=null&&o[l].depth>=0)s[o[l].depth]=new wt(o[l],this,r);else if(process.env.NODE_ENV!=="production")throw new Error("levels[i].depth is mandatory and should be natural number");if(a&&i){var u=QX(a,i,this,!0,c);return u.data}function c(f,d){f.wrapMethod("getItemModel",function(h,g){var v=h.parentModel,m=v.getData().getItemLayout(g);if(m){var y=m.depth,b=v.levelModels[y];b&&(h.parentModel=b)}return h}),d.wrapMethod("getItemModel",function(h,g){var v=h.parentModel,m=v.getGraph().getEdgeByIndex(g),y=m.node1.getLayout();if(y){var b=y.depth,_=v.levelModels[b];_&&(h.parentModel=_)}return h})}},e.prototype.setNodePosition=function(n,r){var i=this.option.data||this.option.nodes,a=i[n];a.localX=r[0],a.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 a(h){return isNaN(h)||h==null}if(i==="edge"){var o=this.getDataParams(n,i),s=o.data,l=o.value,u=s.source+" -- "+s.target;return Pn("nameValue",{name:u,value:l,noValue:a(l)})}else{var c=this.getGraph().getNodeByIndex(n),f=c.getLayout().value,d=this.getDataParams(n,i).data.name;return Pn("nameValue",{name:d!=null?d+"":null,value:f,noValue:a(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 a=this.getGraph().getNodeByIndex(n),o=a.getLayout().value;i.value=o}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}(Ct);function uze(t,e){t.eachSeriesByType("sankey",function(n){var r=n.get("nodeWidth"),i=n.get("nodeGap"),a=cze(n,e);n.layoutInfo=a;var o=a.width,s=a.height,l=n.getGraph(),u=l.nodes,c=l.edges;dze(u);var f=vt(u,function(v){return v.getLayout().value===0}),d=f.length!==0?0:n.get("layoutIterations"),h=n.get("orient"),g=n.get("nodeAlign");fze(u,c,r,i,o,s,d,h,g)})}function cze(t,e){return sn(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function fze(t,e,n,r,i,a,o,s,l){hze(t,e,n,i,a,s,l),mze(t,e,a,i,r,o,s),Tze(t,s)}function dze(t){k(t,function(e){var n=Pl(e.outEdges,$O),r=Pl(e.inEdges,$O),i=e.getValue()||0,a=Math.max(n,r,i);e.setLayout({value:a},!0)})}function hze(t,e,n,r,i,a,o){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 h=-1;u.length;){for(var g=0;g<u.length;g++){var v=u[g],m=v.hostGraph.data.getRawDataItem(v.dataIndex),y=m.depth!=null&&m.depth>=0;y&&m.depth>h&&(h=m.depth),v.setLayout({depth:y?m.depth:f},!0),a==="vertical"?v.setLayout({dy:n},!0):v.setLayout({dx:n},!0);for(var b=0;b<v.outEdges.length;b++){var _=v.outEdges[b],O=e.indexOf(_);s[O]=0;var S=_.node2,x=t.indexOf(S);--l[x]===0&&c.indexOf(S)<0&&c.push(S)}}++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 w=h>f-1?h:f-1;o&&o!=="left"&&pze(t,o,a,w);var T=a==="vertical"?(i-n)/w:(r-n)/w;vze(t,T,a)}function bY(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return e.depth!=null&&e.depth>=0}function pze(t,e,n,r){if(e==="right"){for(var i=[],a=t,o=0;a.length;){for(var s=0;s<a.length;s++){var l=a[s];l.setLayout({skNodeHeight:o},!0);for(var u=0;u<l.inEdges.length;u++){var c=l.inEdges[u];i.indexOf(c.node1)<0&&i.push(c.node1)}}a=i,i=[],++o}k(t,function(f){bY(f)||f.setLayout({depth:Math.max(0,r-f.getLayout().skNodeHeight)},!0)})}else e==="justify"&&gze(t,r)}function gze(t,e){k(t,function(n){!bY(n)&&!n.outEdges.length&&n.setLayout({depth:e},!0)})}function vze(t,e,n){k(t,function(r){var i=r.getLayout().depth*e;n==="vertical"?r.setLayout({y:i},!0):r.setLayout({x:i},!0)})}function mze(t,e,n,r,i,a,o){var s=yze(t,o);bze(s,e,n,r,i,o),hI(s,i,n,r,o);for(var l=1;a>0;a--)l*=.99,_ze(s,l,o),hI(s,i,n,r,o),Cze(s,l,o),hI(s,i,n,r,o)}function yze(t,e){var n=[],r=e==="vertical"?"y":"x",i=f2(t,function(a){return a.getLayout()[r]});return i.keys.sort(function(a,o){return a-o}),k(i.keys,function(a){n.push(i.buckets.get(a))}),n}function bze(t,e,n,r,i,a){var o=1/0;k(t,function(s){var l=s.length,u=0;k(s,function(f){u+=f.getLayout().value});var c=a==="vertical"?(r-(l-1)*i)/u:(n-(l-1)*i)/u;c<o&&(o=c)}),k(t,function(s){k(s,function(l,u){var c=l.getLayout().value*o;a==="vertical"?(l.setLayout({x:u},!0),l.setLayout({dx:c},!0)):(l.setLayout({y:u},!0),l.setLayout({dy:c},!0))})}),k(e,function(s){var l=+s.getValue()*o;s.setLayout({dy:l},!0)})}function hI(t,e,n,r,i){var a=i==="vertical"?"x":"y";k(t,function(o){o.sort(function(v,m){return v.getLayout()[a]-m.getLayout()[a]});for(var s,l,u,c=0,f=o.length,d=i==="vertical"?"dx":"dy",h=0;h<f;h++)l=o[h],u=c-l.getLayout()[a],u>0&&(s=l.getLayout()[a]+u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]+l.getLayout()[d]+e;var g=i==="vertical"?r:n;if(u=c-e-g,u>0){s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0),c=s;for(var h=f-2;h>=0;--h)l=o[h],u=l.getLayout()[a]+l.getLayout()[d]+e-c,u>0&&(s=l.getLayout()[a]-u,i==="vertical"?l.setLayout({x:s},!0):l.setLayout({y:s},!0)),c=l.getLayout()[a]}})}function _ze(t,e,n){k(t.slice().reverse(),function(r){k(r,function(i){if(i.outEdges.length){var a=Pl(i.outEdges,Oze,n)/Pl(i.outEdges,$O);if(isNaN(a)){var o=i.outEdges.length;a=o?Pl(i.outEdges,Sze,n)/o:0}if(n==="vertical"){var s=i.getLayout().x+(a-Tl(i,n))*e;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-Tl(i,n))*e;i.setLayout({y:l},!0)}}})})}function Oze(t,e){return Tl(t.node2,e)*t.getValue()}function Sze(t,e){return Tl(t.node2,e)}function xze(t,e){return Tl(t.node1,e)*t.getValue()}function wze(t,e){return Tl(t.node1,e)}function Tl(t,e){return e==="vertical"?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function $O(t){return t.getValue()}function Pl(t,e,n){for(var r=0,i=t.length,a=-1;++a<i;){var o=+e(t[a],n);isNaN(o)||(r+=o)}return r}function Cze(t,e,n){k(t,function(r){k(r,function(i){if(i.inEdges.length){var a=Pl(i.inEdges,xze,n)/Pl(i.inEdges,$O);if(isNaN(a)){var o=i.inEdges.length;a=o?Pl(i.inEdges,wze,n)/o:0}if(n==="vertical"){var s=i.getLayout().x+(a-Tl(i,n))*e;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-Tl(i,n))*e;i.setLayout({y:l},!0)}}})})}function Tze(t,e){var n=e==="vertical"?"x":"y";k(t,function(r){r.outEdges.sort(function(i,a){return i.node2.getLayout()[n]-a.node2.getLayout()[n]}),r.inEdges.sort(function(i,a){return i.node1.getLayout()[n]-a.node1.getLayout()[n]})}),k(t,function(r){var i=0,a=0;k(r.outEdges,function(o){o.setLayout({sy:i},!0),i+=o.getLayout().dy}),k(r.inEdges,function(o){o.setLayout({ty:a},!0),a+=o.getLayout().dy})})}function Pze(t){t.eachSeriesByType("sankey",function(e){var n=e.getGraph(),r=n.nodes,i=n.edges;if(r.length){var a=1/0,o=-1/0;k(r,function(s){var l=s.getLayout().value;l<a&&(a=l),l>o&&(o=l)}),k(r,function(s){var l=new An({type:"color",mappingMethod:"linear",dataExtent:[a,o],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&&k(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function $ze(t){t.registerChartView(oze),t.registerSeriesModel(lze),t.registerLayout(uze),t.registerVisual(Pze),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 _Y=function(){function t(){}return t.prototype.getInitialData=function(e,n){var r,i=n.getComponent("xAxis",this.get("xAxisIndex")),a=n.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=a.get("type"),l;o==="category"?(e.layout="horizontal",r=i.getOrdinalMeta(),l=!0):s==="category"?(e.layout="vertical",r=a.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],h=[i,a],g=h[c].get("type"),v=h[1-c].get("type"),m=e.data;if(m&&l){var y=[];k(m,function(O,S){var x;re(O)?(x=O.slice(),O.unshift(S)):re(O.value)?(x=ne({},O),x.value=x.value.slice(),O.value.unshift(S)):x=O,y.push(x)}),e.data=y}var b=this.defaultValueDimensions,_=[{name:f,type:B1(g),ordinalMeta:r,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:d,type:B1(v),dimsDef:b.slice()}];return eh(this,{coordDimensions:_,dimensionsCount:b.length+1,encodeDefaulter:ke(IH,_,this)})},t.prototype.getBaseAxis=function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis},t}(),OY=function(t){U(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}(Ct);Kt(OY,_Y,!0);var Aze=function(t){U(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 a=n.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=n.get("layout")==="horizontal"?1:0;a.diff(s).add(function(u){if(a.hasValue(u)){var c=a.getItemLayout(u),f=SY(c,a,u,l,!0);a.setItemGraphicEl(u,f),o.add(f)}}).update(function(u,c){var f=s.getItemGraphicEl(c);if(!a.hasValue(u)){o.remove(f);return}var d=a.getItemLayout(u);f?(Aa(f),xY(d,f,a,u)):f=SY(d,a,u,l),o.add(f),a.setItemGraphicEl(u,f)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=a},e.prototype.remove=function(n){var r=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(a){a&&r.remove(a)})},e.type="boxplot",e}(_t),Eze=function(){function t(){}return t}(),Mze=function(t){U(e,t);function e(n){var r=t.call(this,n)||this;return r.type="boxplotBoxPath",r}return e.prototype.getDefaultShape=function(){return new Eze},e.prototype.buildPath=function(n,r){var i=r.points,a=0;for(n.moveTo(i[a][0],i[a][1]),a++;a<4;a++)n.lineTo(i[a][0],i[a][1]);for(n.closePath();a<i.length;a++)n.moveTo(i[a][0],i[a][1]),a++,n.lineTo(i[a][0],i[a][1])},e}(Ge);function SY(t,e,n,r,i){var a=t.ends,o=new Mze({shape:{points:i?Ize(a,r,t):a}});return xY(t,o,e,n,i),o}function xY(t,e,n,r,i){var a=n.hostModel,o=rc[i?"initProps":"updateProps"];o(e,{shape:{points:t.ends}},a,r),e.useStyle(n.getItemVisual(r,"style")),e.style.strokeNoScale=!0,e.z2=100;var s=n.getItemModel(r),l=s.getModel("emphasis");Zn(e,s),Xt(e,l.get("focus"),l.get("blurScope"),l.get("disabled"))}function Ize(t,e,n){return ie(t,function(r){return r=r.slice(),r[e]=n.initBaseline,r})}var cm=k;function Dze(t){var e=Rze(t);cm(e,function(n){var r=n.seriesModels;r.length&&(kze(n),cm(r,function(i,a){Nze(i,n.boxOffsetList[a],n.boxWidthList[a])}))})}function Rze(t){var e=[],n=[];return t.eachSeriesByType("boxplot",function(r){var i=r.getBaseAxis(),a=Fe(n,i);a<0&&(a=n.length,n[a]=i,e[a]={axis:i,seriesModels:[]}),e[a].seriesModels.push(r)}),e}function kze(t){var e=t.axis,n=t.seriesModels,r=n.length,i=t.boxWidthList=[],a=t.boxOffsetList=[],o=[],s;if(e.type==="category")s=e.getBandWidth();else{var l=0;cm(n,function(g){l=Math.max(l,g.getData().count())});var u=e.getExtent();s=Math.abs(u[1]-u[0])/l}cm(n,function(g){var v=g.get("boxWidth");re(v)||(v=[v,v]),o.push([he(v[0],s)||0,he(v[1],s)||0])});var c=s*.8-2,f=c/r*.3,d=(c-f*(r-1))/r,h=d/2-c/2;cm(n,function(g,v){a.push(h),h+=f+d,i.push(Math.min(Math.max(d,o[v][0]),o[v][1]))})}function Nze(t,e,n){var r=t.coordinateSystem,i=t.getData(),a=n/2,o=t.get("layout")==="horizontal"?0:1,s=1-o,l=["x","y"],u=i.mapDimension(l[o]),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),h=_(d,c[2],f),g=_(d,c[0],f),v=_(d,c[1],f),m=_(d,c[3],f),y=_(d,c[4],f),b=[];O(b,v,!1),O(b,m,!0),b.push(g,v,y,m),S(b,g),S(b,y),S(b,h),i.setItemLayout(f,{initBaseline:h[s],ends:b})}function _(x,w,T){var P=i.get(w,T),C=[];C[o]=x,C[s]=P;var $;return isNaN(x)||isNaN(P)?$=[NaN,NaN]:($=r.dataToPoint(C),$[o]+=e),$}function O(x,w,T){var P=w.slice(),C=w.slice();P[o]+=a,C[o]-=a,T?x.push(P,C):x.push(C,P)}function S(x,w){var T=w.slice(),P=w.slice();T[o]-=a,P[o]+=a,x.push(T,P)}}function Lze(t,e){e=e||{};for(var n=[],r=[],i=e.boundIQR,a=i==="none"||i===0,o=0;o<t.length;o++){var s=di(t[o].slice()),l=T_(s,.25),u=T_(s,.5),c=T_(s,.75),f=s[0],d=s[s.length-1],h=(i??1.5)*(c-l),g=a?f:Math.max(f,l-h),v=a?d:Math.min(d,c+h),m=e.itemNameFormatter,y=xe(m)?m({value:o}):pe(m)?m.replace("{value}",o+""):o+"";n.push([y,g,l,u,c,v]);for(var b=0;b<s.length;b++){var _=s[b];if(_<g||_>v){var O=[y,_];r.push(O)}}}return{boxData:n,outliers:r}}var Vze={type:"echarts:boxplot",transform:function(e){var n=e.upstream;if(n.sourceFormat!==or){var r="";process.env.NODE_ENV!=="production"&&(r=_r("source data is not applicable for this boxplot transform. Expect number[][].")),dt(r)}var i=Lze(n.getRawData(),e.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function Bze(t){t.registerSeriesModel(OY),t.registerChartView(Aze),t.registerLayout(Dze),t.registerTransform(Vze)}var zze=["color","borderColor"],Fze=function(t){U(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,a){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(n,r):this._incrementalRenderNormal(n,r)},e.prototype.eachRendered=function(n){pl(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,a=this.group,o=r.getLayout("isSimpleBox"),s=n.get("clip",!0),l=n.coordinateSystem,u=l.getArea&&l.getArea();this._data||a.removeAll(),r.diff(i).add(function(c){if(r.hasValue(c)){var f=r.getItemLayout(c);if(s&&wY(u,f))return;var d=pI(f,c,!0);Mt(d,{shape:{points:f.ends}},n,c),gI(d,r,c,o),a.add(d),r.setItemGraphicEl(c,d)}}).update(function(c,f){var d=i.getItemGraphicEl(f);if(!r.hasValue(c)){a.remove(d);return}var h=r.getItemLayout(c);if(s&&wY(u,h)){a.remove(d);return}d?(ot(d,{shape:{points:h.ends}},n,c),Aa(d)):d=pI(h),gI(d,r,c,o),a.add(d),r.setItemGraphicEl(c,d)}).remove(function(c){var f=i.getItemGraphicEl(c);f&&a.remove(f)}).execute(),this._data=r},e.prototype._renderLarge=function(n){this._clear(),CY(n,this.group);var r=n.get("clip",!0)?Wv(n.coordinateSystem,!1,n):null;r?this.group.setClipPath(r):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(n,r){for(var i=r.getData(),a=i.getLayout("isSimpleBox"),o;(o=n.next())!=null;){var s=i.getItemLayout(o),l=pI(s);gI(l,i,o,a),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},e.prototype._incrementalRenderLarge=function(n,r){CY(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}(_t),Wze=function(){function t(){}return t}(),Qze=function(t){U(e,t);function e(n){var r=t.call(this,n)||this;return r.type="normalCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new Wze},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}(Ge);function pI(t,e,n){var r=t.ends;return new Qze({shape:{points:n?Hze(r,t):r},z2:100})}function wY(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 gI(t,e,n,r){var i=e.getItemModel(n);t.useStyle(e.getItemVisual(n,"style")),t.style.strokeNoScale=!0,t.__simpleBox=r,Zn(t,i)}function Hze(t,e){return ie(t,function(n){return n=n.slice(),n[1]=e.initBaseline,n})}var jze=function(){function t(){}return t}(),vI=function(t){U(e,t);function e(n){var r=t.call(this,n)||this;return r.type="largeCandlestickBox",r}return e.prototype.getDefaultShape=function(){return new jze},e.prototype.buildPath=function(n,r){for(var i=r.points,a=0;a<i.length;)if(this.__sign===i[a++]){var o=i[a++];n.moveTo(o,i[a++]),n.lineTo(o,i[a++])}else a+=3},e}(Ge);function CY(t,e,n,r){var i=t.getData(),a=i.getLayout("largePoints"),o=new vI({shape:{points:a},__sign:1,ignoreCoarsePointer:!0});e.add(o);var s=new vI({shape:{points:a},__sign:-1,ignoreCoarsePointer:!0});e.add(s);var l=new vI({shape:{points:a},__sign:0,ignoreCoarsePointer:!0});e.add(l),mI(1,o,t),mI(-1,s,t),mI(0,l,t),r&&(o.incremental=!0,s.incremental=!0),n&&n.push(o,s)}function mI(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 a=n.getModel("itemStyle").getItemStyle(zze);e.useStyle(a),e.style.fill=null,e.style.stroke=i}var TY=function(t){U(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 a=r.getItemLayout(n);return a&&i.rect(a.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}(Ct);Kt(TY,_Y,!0);function Gze(t){!t||!re(t.series)||k(t.series,function(e){we(e)&&e.type==="k"&&(e.type="candlestick")})}var Zze=["itemStyle","borderColor"],Uze=["itemStyle","borderColor0"],Xze=["itemStyle","borderColorDoji"],Yze=["itemStyle","color"],qze=["itemStyle","color0"],Kze={seriesType:"candlestick",plan:zd(),performRawSeries:!0,reset:function(t,e){function n(a,o){return o.get(a>0?Yze:qze)}function r(a,o){return o.get(a===0?Xze:a>0?Zze:Uze)}if(!e.isSeriesFiltered(t)){var i=t.pipelineContext.large;return!i&&{progress:function(a,o){for(var s;(s=a.next())!=null;){var l=o.getItemModel(s),u=o.getItemLayout(s).sign,c=l.getItemStyle();c.fill=n(u,l),c.stroke=r(u,l)||c.fill;var f=o.ensureUniqueItemVisual(s,"style");ne(f,c)}}}}}},Jze={seriesType:"candlestick",plan:zd(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),r=eFe(t,n),i=0,a=1,o=["x","y"],s=n.getDimensionIndex(n.mapDimension(o[i])),l=ie(n.mapDimensionsAll(o[a]),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?g:h};function h(v,m){for(var y,b=m.getStore();(y=v.next())!=null;){var _=b.get(s,y),O=b.get(u,y),S=b.get(c,y),x=b.get(f,y),w=b.get(d,y),T=Math.min(O,S),P=Math.max(O,S),C=N(T,_),$=N(P,_),A=N(x,_),E=N(w,_),D=[];V(D,$,0),V(D,C,1),D.push(z(E),z($),z(A),z(C));var M=m.getItemModel(y),R=!!M.get(["itemStyle","borderColorDoji"]);m.setItemLayout(y,{sign:PY(b,y,O,S,c,R),initBaseline:O>S?$[a]:C[a],ends:D,brushRect:L(x,w,_)})}function N(B,F){var j=[];return j[i]=F,j[a]=B,isNaN(F)||isNaN(B)?[NaN,NaN]:e.dataToPoint(j)}function V(B,F,j){var K=F.slice(),q=F.slice();K[i]=e1(K[i]+r/2,1,!1),q[i]=e1(q[i]-r/2,1,!0),j?B.push(K,q):B.push(q,K)}function L(B,F,j){var K=N(B,j),q=N(F,j);return K[i]-=r/2,q[i]-=r/2,{x:K[0],y:K[1],width:r,height:q[1]-K[1]}}function z(B){return B[i]=e1(B[i],1),B}}function g(v,m){for(var y=mo(v.count*4),b=0,_,O=[],S=[],x,w=m.getStore(),T=!!t.get(["itemStyle","borderColorDoji"]);(x=v.next())!=null;){var P=w.get(s,x),C=w.get(u,x),$=w.get(c,x),A=w.get(f,x),E=w.get(d,x);if(isNaN(P)||isNaN(A)||isNaN(E)){y[b++]=NaN,b+=3;continue}y[b++]=PY(w,x,C,$,c,T),O[i]=P,O[a]=A,_=e.dataToPoint(O,null,S),y[b++]=_?_[0]:NaN,y[b++]=_?_[1]:NaN,O[a]=E,_=e.dataToPoint(O,null,S),y[b++]=_?_[1]:NaN}m.setLayout("largePoints",y)}}};function PY(t,e,n,r,i,a){var o;return n>r?o=-1:n<r?o=1:o=a?0:e>0?t.get(i,e-1)<=r?1:-1:1,o}function eFe(t,e){var n=t.getBaseAxis(),r,i=n.type==="category"?n.getBandWidth():(r=n.getExtent(),Math.abs(r[1]-r[0])/e.count()),a=he(Re(t.get("barMaxWidth"),i),i),o=he(Re(t.get("barMinWidth"),1),i),s=t.get("barWidth");return s!=null?he(s,i):Math.max(Math.min(i/2,a),o)}function tFe(t){t.registerChartView(Fze),t.registerSeriesModel(TY),t.registerPreprocessor(Gze),t.registerVisual(Kze),t.registerLayout(Jze)}function $Y(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 nFe=function(t){U(e,t);function e(n,r){var i=t.call(this)||this,a=new zv(n,r),o=new Me;return i.add(a),i.add(o),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,a=n.rippleNumber,o=this.childAt(1),s=0;s<a;s++){var l=rn(r,-1,-1,2,2,i);l.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var u=-s/a*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(),o.add(l)}$Y(o,n)},e.prototype.updateEffectAnimation=function(n){for(var r=this._effectCfg,i=this.childAt(1),a=["symbolType","period","rippleScale","rippleNumber"],o=0;o<a.length;o++){var s=a[o];if(r[s]!==n[s]){this.stopEffectAnimation(),this.startEffectAnimation(n);return}}$Y(i,n)},e.prototype.highlight=function(){fs(this)},e.prototype.downplay=function(){ds(this)},e.prototype.getSymbolType=function(){var n=this.childAt(0);return n&&n.getSymbolType()},e.prototype.updateData=function(n,r){var i=this,a=n.hostModel;this.childAt(0).updateData(n,r);var o=this.childAt(1),s=n.getItemModel(r),l=n.getItemVisual(r,"symbol"),u=Qd(n.getItemVisual(r,"symbolSize")),c=n.getItemVisual(r,"style"),f=c&&c.fill,d=s.getModel("emphasis");o.setScale(u),o.traverse(function(m){m.setStyle("fill",f)});var h=pc(n.getItemVisual(r,"symbolOffset"),u);h&&(o.x=h[0],o.y=h[1]);var g=n.getItemVisual(r,"symbolRotate");o.rotation=(g||0)*Math.PI/180||0;var v={};v.showEffectOn=a.get("showEffectOn"),v.rippleScale=s.get(["rippleEffect","scale"]),v.brushType=s.get(["rippleEffect","brushType"]),v.period=s.get(["rippleEffect","period"])*1e3,v.effectOffset=r/n.count(),v.z=a.getShallow("z")||0,v.zlevel=a.getShallow("zlevel")||0,v.symbolType=l,v.color=f,v.rippleEffectColor=s.get(["rippleEffect","color"]),v.rippleNumber=s.get(["rippleEffect","number"]),v.showEffectOn==="render"?(this._effectCfg?this.updateEffectAnimation(v):this.startEffectAnimation(v),this._effectCfg=v):(this._effectCfg=null,this.stopEffectAnimation(),this.onHoverStateChange=function(m){m==="emphasis"?v.showEffectOn!=="render"&&i.startEffectAnimation(v):m==="normal"&&v.showEffectOn!=="render"&&i.stopEffectAnimation()}),this._effectCfg=v,Xt(this,d.get("focus"),d.get("blurScope"),d.get("disabled"))},e.prototype.fadeOut=function(n){n&&n()},e}(Me),rFe=function(t){U(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 Fv(nFe)},e.prototype.render=function(n,r,i){var a=n.getData(),o=this._symbolDraw;o.updateData(a,{clipShape:this._getClipShape(n)}),this.group.add(o.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 a=n.getData();this.group.dirty();var o=Qv("").reset(n,r,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout()},e.prototype._updateGroupTransform=function(n){var r=n.coordinateSystem;r&&r.getRoamTransform&&(this.group.transform=bW(r.getRoamTransform()),this.group.decomposeTransform())},e.prototype.remove=function(n,r){this._symbolDraw&&this._symbolDraw.remove(!0)},e.type="effectScatter",e}(_t),iFe=function(t){U(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 go(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}(Ct);function aFe(t){t.registerChartView(rFe),t.registerSeriesModel(iFe),t.registerLayout(Qv("effectScatter"))}var AY=function(t){U(e,t);function e(n,r,i){var a=t.call(this)||this;return a.add(a.createLine(n,r,i)),a._updateEffectSymbol(n,r),a}return e.prototype.createLine=function(n,r,i){return new WM(n,r,i)},e.prototype._updateEffectSymbol=function(n,r){var i=n.getItemModel(r),a=i.getModel("effect"),o=a.get("symbolSize"),s=a.get("symbol");re(o)||(o=[o,o]);var l=n.getItemVisual(r,"style"),u=a.get("color")||l&&l.stroke,c=this.childAt(1);this._symbolType!==s&&(this.remove(c),c=rn(s,-.5,-.5,1,1,u),c.z2=100,c.culling=!0,this.add(c)),c&&(c.setStyle("shadowColor",u),c.setStyle(a.getItemStyle(["color"])),c.scaleX=o[0],c.scaleY=o[1],c.setColor(u),this._symbolType=s,this._symbolScale=o,this._updateEffectAnimation(n,a,r))},e.prototype._updateEffectAnimation=function(n,r,i){var a=this.childAt(1);if(a){var o=n.getItemLayout(i),s=r.get("period")*1e3,l=r.get("loop"),u=r.get("roundTrip"),c=r.get("constantSpeed"),f=tn(r.get("delay"),function(h){return h/n.count()*s/3});if(a.ignore=!0,this._updateAnimationPoints(a,o),c>0&&(s=this._getLineLength(a)/c*1e3),s!==this._period||l!==this._loop||u!==this._roundTrip){a.stopAnimation();var d=void 0;xe(f)?d=f(i):d=f,a.__t>0&&(d=-s*a.__t),this._animateSymbol(a,s,d,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},e.prototype._animateSymbol=function(n,r,i,a,o){if(r>0){n.__t=0;var s=this,l=n.animate("",a).when(o?r*2:r,{__t:o?2:1}).delay(i).during(function(){s._updateSymbolPosition(n)});a||l.done(function(){s.remove(n)}),l.start()}},e.prototype._getLineLength=function(n){return ns(n.__p1,n.__cp1)+ns(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,a=n.__cp1,o=n.__t<1?n.__t:2-n.__t,s=[n.x,n.y],l=s.slice(),u=Nn,c=P$;s[0]=u(r[0],a[0],i[0],o),s[1]=u(r[1],a[1],i[1],o);var f=n.__t<1?c(r[0],a[0],i[0],o):c(i[0],a[0],r[0],1-o),d=n.__t<1?c(r[1],a[1],i[1],o):c(i[1],a[1],r[1],1-o);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=ns(l,s)*1.05,o===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*ns(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}(Me),EY=function(t){U(e,t);function e(n,r,i){var a=t.call(this)||this;return a._createPolyline(n,r,i),a}return e.prototype._createPolyline=function(n,r,i){var a=n.getItemLayout(r),o=new Cr({shape:{points:a}});this.add(o),this._updateCommonStl(n,r,i)},e.prototype.updateData=function(n,r,i){var a=n.hostModel,o=this.childAt(0),s={shape:{points:n.getItemLayout(r)}};ot(o,s,a,r),this._updateCommonStl(n,r,i)},e.prototype._updateCommonStl=function(n,r,i){var a=this.childAt(0),o=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=o.getModel("emphasis");s=f.getModel("lineStyle").getLineStyle(),c=f.get("disabled"),l=f.get("focus"),u=f.get("blurScope")}a.useStyle(n.getItemVisual(r,"style")),a.style.fill=null,a.style.strokeNoScale=!0;var d=a.ensureState("emphasis");d.style=s,Xt(this,l,u,c)},e.prototype.updateLayout=function(n,r){var i=this.childAt(0);i.setShape("points",n.getItemLayout(r))},e}(Me),oFe=function(t){U(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 EY(n,r,i)},e.prototype._updateAnimationPoints=function(n,r){this._points=r;for(var i=[0],a=0,o=1;o<r.length;o++){var s=r[o-1],l=r[o];a+=ns(s,l),i.push(a)}if(a===0){this._length=0;return}for(var o=0;o<i.length;o++)i[o]/=a;this._offsets=i,this._length=a},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,a=this._offsets,o=i.length;if(a){var s=this._lastFrame,l;if(r<this._lastFramePercent){var u=Math.min(s+1,o-1);for(l=u;l>=0&&!(a[l]<=r);l--);l=Math.min(l,o-2)}else{for(l=s;l<o&&!(a[l]>r);l++);l=Math.min(l-1,o-2)}var c=(r-a[l])/(a[l+1]-a[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 h=n.__t<1?d[0]-f[0]:f[0]-d[0],g=n.__t<1?d[1]-f[1]:f[1]-d[1];n.rotation=-Math.atan2(g,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=r,n.ignore=!1}},e}(AY),sFe=function(){function t(){this.polyline=!1,this.curveness=0,this.segs=[]}return t}(),lFe=function(t){U(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 sFe},e.prototype.buildPath=function(n,r){var i=r.segs,a=r.curveness,o;if(r.polyline)for(o=this._off;o<i.length;){var s=i[o++];if(s>0){n.moveTo(i[o++],i[o++]);for(var l=1;l<s;l++)n.lineTo(i[o++],i[o++])}}else for(o=this._off;o<i.length;){var u=i[o++],c=i[o++],f=i[o++],d=i[o++];if(n.moveTo(u,c),a>0){var h=(u+f)/2-(c-d)*a,g=(c+d)/2-(f-u)*a;n.quadraticCurveTo(h,g,f,d)}else n.lineTo(f,d)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(n,r){var i=this.shape,a=i.segs,o=i.curveness,s=this.style.lineWidth;if(i.polyline)for(var l=0,u=0;u<a.length;){var c=a[u++];if(c>0)for(var f=a[u++],d=a[u++],h=1;h<c;h++){var g=a[u++],v=a[u++];if(ll(f,d,g,v,s,n,r))return l}l++}else for(var l=0,u=0;u<a.length;){var f=a[u++],d=a[u++],g=a[u++],v=a[u++];if(o>0){var m=(f+g)/2-(d-v)*o,y=(d+v)/2-(g-f)*o;if(Q7(f,d,m,y,g,v,s,n,r))return l}else if(ll(f,d,g,v,s,n,r))return l;l++}return-1},e.prototype.contain=function(n,r){var i=this.transformCoordToLocal(n,r),a=this.getBoundingRect();if(n=i[0],r=i[1],a.contain(n,r)){var o=this.hoverDataIdx=this.findDataIndex(n,r);return o>=0}return this.hoverDataIdx=-1,!1},e.prototype.getBoundingRect=function(){var n=this._rect;if(!n){for(var r=this.shape,i=r.segs,a=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u<i.length;){var c=i[u++],f=i[u++];a=Math.min(c,a),s=Math.max(c,s),o=Math.min(f,o),l=Math.max(f,l)}n=this._rect=new ze(a,o,s,l)}return n},e}(Ge),uFe=function(){function t(){this.group=new Me}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"),a=r&&r.shape.segs;if(a&&a.length<2e4){var o=a.length,s=new Float32Array(o+i.length);s.set(a),s.set(i,o),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 lFe({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 a=n.getVisual("style");a&&a.stroke&&e.setStyle("stroke",a.stroke),e.setStyle("fill",null);var o=De(e);o.seriesIndex=i.seriesIndex,e.on("mousemove",function(s){o.dataIndex=null;var l=e.hoverDataIdx;l>0&&(o.dataIndex=l+e.__startIndex)})},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}(),MY={seriesType:"lines",plan:zd(),reset:function(t){var e=t.coordinateSystem;if(!e){process.env.NODE_ENV!=="production"&&Gn("The lines series must have a coordinate system.");return}var n=t.get("polyline"),r=t.pipelineContext.large;return{progress:function(i,a){var o=[];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 h=t.getLineCoords(c,o);n&&(s[f++]=h);for(var g=0;g<h;g++)d=e.dataToPoint(o[g],!1,d),s[f++]=d[0],s[f++]=d[1]}a.setLayout("linesPoints",s)}else for(var c=i.start;c<i.end;c++){var v=a.getItemModel(c),h=t.getLineCoords(c,o),m=[];if(n)for(var y=0;y<h;y++)m.push(e.dataToPoint(o[y]));else{m[0]=e.dataToPoint(o[0]),m[1]=e.dataToPoint(o[1]);var b=v.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])}a.setItemLayout(c,m)}}}}},cFe=function(t){U(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 a=n.getData(),o=this._updateLineDraw(a,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)})),o.updateData(a);var f=n.get("clip",!0)&&Wv(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 a=n.getData(),o=this._updateLineDraw(a,n);o.incrementalPrepareUpdate(a),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 a=n.getData(),o=n.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=MY.reset(n,r,i);s.progress&&s.progress({start:0,end:a.count(),count:a.count()},a),this._lineDraw.updateLayout(),this._clearLayer(i)},e.prototype._updateLineDraw=function(n,r){var i=this._lineDraw,a=this._showEffect(r),o=!!r.get("polyline"),s=r.pipelineContext,l=s.large;return process.env.NODE_ENV!=="production"&&a&&l&&console.warn("Large lines not support effect"),(!i||a!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=l?new uFe:new QM(o?a?oFe:EY:a?AY:WM),this._hasEffet=a,this._isPolyline=o,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}(_t),fFe=typeof Uint32Array>"u"?Array:Uint32Array,dFe=typeof Float64Array>"u"?Array:Float64Array;function IY(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=ie(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),Ub([i,n[0],n[1]])}))}var hFe=function(t){U(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||[],IY(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(IY(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=bg(this._flatCoords,r.flatCoords),this._flatCoordsOffset=bg(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],a=this._flatCoordsOffset[n*2+1],o=0;o<a;o++)r[o]=r[o]||[],r[o][0]=this._flatCoords[i+o*2],r[o][1]=this._flatCoords[i+o*2+1];return a}else{for(var s=this._getCoordsFromItemModel(n),o=0;o<s.length;o++)r[o]=r[o]||[],r[o][0]=s[o][0],r[o][1]=s[o][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,a=new fFe(i),o=new dFe(i),s=0,l=0,u=0,c=0;c<i;){u++;var f=n[c++];a[l++]=s+r,a[l++]=f;for(var d=0;d<f;d++){var h=n[c++],g=n[c++];if(o[s++]=h,o[s++]=g,c>i&&process.env.NODE_ENV!=="production")throw new Error("Invalid data format.")}}return{flatCoordsOffset:new Uint32Array(a.buffer,0,l),flatCoords:o,count:u}}return{flatCoordsOffset:null,flatCoords:null,count:n.length}},e.prototype.getInitialData=function(n,r){if(process.env.NODE_ENV!=="production"){var i=uc.get(n.coordinateSystem);if(!i)throw new Error("Unknown coordinate system "+n.coordinateSystem)}var a=new ur(["value"],this);return a.hasItemOption=!1,a.initData(n.data,[],function(o,s,l,u){if(o instanceof Array)return NaN;a.hasItemOption=!0;var c=o.value;if(c!=null)return c instanceof Array?c[u]:c}),a},e.prototype.formatTooltip=function(n,r,i){var a=this.getData(),o=a.getItemModel(n),s=o.get("name");if(s)return s;var l=o.get("fromName"),u=o.get("toName"),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Pn("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}(Ct);function AO(t){return t instanceof Array||(t=[t,t]),t}var pFe={seriesType:"lines",reset:function(t){var e=AO(t.get("symbol")),n=AO(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(a,o){var s=a.getItemModel(o),l=AO(s.getShallow("symbol",!0)),u=AO(s.getShallow("symbolSize",!0));l[0]&&a.setItemVisual(o,"fromSymbol",l[0]),l[1]&&a.setItemVisual(o,"toSymbol",l[1]),u[0]&&a.setItemVisual(o,"fromSymbolSize",u[0]),u[1]&&a.setItemVisual(o,"toSymbolSize",u[1])}return{dataEach:r.hasItemOption?i:null}}};function gFe(t){t.registerChartView(cFe),t.registerSeriesModel(hFe),t.registerLayout(MY),t.registerVisual(pFe)}var vFe=256,mFe=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var e=Oa.createCanvas();this.canvas=e}return t.prototype.update=function(e,n,r,i,a,o){var s=this._getBrush(),l=this._getGradient(a,"inRange"),u=this._getGradient(a,"outOfRange"),c=this.pointSize+this.blurSize,f=this.canvas,d=f.getContext("2d"),h=e.length;f.width=n,f.height=r;for(var g=0;g<h;++g){var v=e[g],m=v[0],y=v[1],b=v[2],_=i(b);d.globalAlpha=_,d.drawImage(s,m-c,y-c)}if(!f.width||!f.height)return f;for(var O=d.getImageData(0,0,f.width,f.height),S=O.data,x=0,w=S.length,T=this.minOpacity,P=this.maxOpacity,C=P-T;x<w;){var _=S[x+3]/256,$=Math.floor(_*(vFe-1))*4;if(_>0){var A=o(_)?l:u;_>0&&(_=_*C+T),S[x++]=A[$],S[x++]=A[$+1],S[x++]=A[$+2],S[x++]=A[$+3]*_*256}else x+=4}return d.putImageData(O,0,0),f},t.prototype._getBrush=function(){var e=this._brushCanvas||(this._brushCanvas=Oa.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)),a=[0,0,0,0],o=0,s=0;s<256;s++)e[n](s/255,!0,a),i[o++]=a[0],i[o++]=a[1],i[o++]=a[2],i[o++]=a[3];return i},t}();function yFe(t,e,n){var r=t[1]-t[0];e=ie(e,function(o){return{interval:[(o.interval[0]-t[0])/r,(o.interval[1]-t[0])/r]}});var i=e.length,a=0;return function(o){var s;for(s=a;s<i;s++){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}if(s===i)for(s=a-1;s>=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}return s>=0&&s<i&&n[s]}}function bFe(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 DY(t){var e=t.dimensions;return e[0]==="lng"&&e[1]==="lat"}var _Fe=function(t){U(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 a;if(r.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===n&&(a=s)})}),process.env.NODE_ENV!=="production"&&!a)throw new Error("Heatmap must use with visualMap");this._progressiveEls=null,this.group.removeAll();var o=n.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(n,i,0,n.getData().count()):DY(o)&&this._renderOnGeo(o,n,a,i)},e.prototype.incrementalPrepareRender=function(n,r,i){this.group.removeAll()},e.prototype.incrementalRender=function(n,r,i,a){var o=r.coordinateSystem;o&&(DY(o)?this.render(r,i,a):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,a,n.start,n.end,!0)))},e.prototype.eachRendered=function(n){pl(this._progressiveEls||this.group,n)},e.prototype._renderOnCartesianAndCalendar=function(n,r,i,a,o){var s=n.coordinateSystem,l=Pc(s,"cartesian2d"),u,c,f,d;if(l){var h=s.getAxis("x"),g=s.getAxis("y");if(process.env.NODE_ENV!=="production"){if(!(h.type==="category"&&g.type==="category"))throw new Error("Heatmap on cartesian must have two category axes");if(!(h.onBand&&g.onBand))throw new Error("Heatmap on cartesian must have two axes with boundaryGap true")}u=h.getBandWidth()+.5,c=g.getBandWidth()+.5,f=h.scale.getExtent(),d=g.scale.getExtent()}for(var v=this.group,m=n.getData(),y=n.getModel(["emphasis","itemStyle"]).getItemStyle(),b=n.getModel(["blur","itemStyle"]).getItemStyle(),_=n.getModel(["select","itemStyle"]).getItemStyle(),O=n.get(["itemStyle","borderRadius"]),S=Tn(n),x=n.getModel("emphasis"),w=x.get("focus"),T=x.get("blurScope"),P=x.get("disabled"),C=l?[m.mapDimension("x"),m.mapDimension("y"),m.mapDimension("value")]:[m.mapDimension("time"),m.mapDimension("value")],$=i;$<a;$++){var A=void 0,E=m.getItemVisual($,"style");if(l){var D=m.get(C[0],$),M=m.get(C[1],$);if(isNaN(m.get(C[2],$))||isNaN(D)||isNaN(M)||D<f[0]||D>f[1]||M<d[0]||M>d[1])continue;var R=s.dataToPoint([D,M]);A=new tt({shape:{x:R[0]-u/2,y:R[1]-c/2,width:u,height:c},style:E})}else{if(isNaN(m.get(C[1],$)))continue;A=new tt({z2:1,shape:s.dataToRect([m.get(C[0],$)]).contentShape,style:E})}if(m.hasItemOption){var N=m.getItemModel($),V=N.getModel("emphasis");y=V.getModel("itemStyle").getItemStyle(),b=N.getModel(["blur","itemStyle"]).getItemStyle(),_=N.getModel(["select","itemStyle"]).getItemStyle(),O=N.get(["itemStyle","borderRadius"]),w=V.get("focus"),T=V.get("blurScope"),P=V.get("disabled"),S=Tn(N)}A.shape.r=O;var L=n.getRawValue($),z="-";L&&L[2]!=null&&(z=L[2]+""),Un(A,S,{labelFetcher:n,labelDataIndex:$,defaultOpacity:E.opacity,defaultText:z}),A.ensureState("emphasis").style=y,A.ensureState("blur").style=b,A.ensureState("select").style=_,Xt(A,w,T,P),A.incremental=o,o&&(A.states.emphasis.hoverLayer=!0),v.add(A),m.setItemGraphicEl($,A),this._progressiveEls&&this._progressiveEls.push(A)}},e.prototype._renderOnGeo=function(n,r,i,a){var o=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=r.getData(),u=this._hmLayer||this._hmLayer||new mFe;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),h=Math.max(c.y,0),g=Math.min(c.width+c.x,a.getWidth()),v=Math.min(c.height+c.y,a.getHeight()),m=g-d,y=v-h,b=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],_=l.mapArray(b,function(w,T,P){var C=n.dataToPoint([w,T]);return C[0]-=d,C[1]-=h,C.push(P),C}),O=i.getExtent(),S=i.type==="visualMap.continuous"?bFe(O,i.option.range):yFe(O,i.getPieceList(),i.option.selected);u.update(_,m,y,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},S);var x=new Ln({style:{width:m,height:y,x:d,y:h,image:u.canvas},silent:!0});this.group.add(x)},e.type="heatmap",e}(_t),OFe=function(t){U(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 go(null,this,{generateCoord:"value"})},e.prototype.preventIncremental=function(){var n=uc.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}(Ct);function SFe(t){t.registerChartView(_Fe),t.registerSeriesModel(OFe)}var xFe=["itemStyle","borderWidth"],RY=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],yI=new hs,wFe=function(t){U(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 a=this.group,o=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:RY[+c],categoryDim:RY[1-+c]};o.diff(s).add(function(g){if(o.hasValue(g)){var v=FY(o,g),m=kY(o,g,v,d),y=WY(o,d,m);o.setItemGraphicEl(g,y),a.add(y),jY(y,d,m)}}).update(function(g,v){var m=s.getItemGraphicEl(v);if(!o.hasValue(g)){a.remove(m);return}var y=FY(o,g),b=kY(o,g,y,d),_=HY(o,b);m&&_!==m.__pictorialShapeStr&&(a.remove(m),o.setItemGraphicEl(g,null),m=null),m?MFe(m,d,b):m=WY(o,d,b,!0),o.setItemGraphicEl(g,m),m.__pictorialSymbolMeta=b,a.add(m),jY(m,d,b)}).remove(function(g){var v=s.getItemGraphicEl(g);v&&QY(s,g,v.__pictorialSymbolMeta.animationModel,v)}).execute();var h=n.get("clip",!0)?Wv(n.coordinateSystem,!1,n):null;return h?a.setClipPath(h):a.removeClipPath(),this._data=o,this.group},e.prototype.remove=function(n,r){var i=this.group,a=this._data;n.get("animation")?a&&a.eachItemGraphicEl(function(o){QY(a,De(o).dataIndex,n,o)}):i.removeAll()},e.type="pictorialBar",e}(_t);function kY(t,e,n,r){var i=t.getItemLayout(e),a=n.get("symbolRepeat"),o=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:o,symbolRepeat:a,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:f?n:null,hoverScale:f&&n.get(["emphasis","scale"]),z2:n.getShallow("z",!0)||0};CFe(n,a,i,r,d),TFe(t,e,i,a,o,d.boundingLength,d.pxSign,c,r,d),PFe(n,d.symbolScale,u,r,d);var h=d.symbolSize,g=pc(n.get("symbolOffset"),h);return $Fe(n,h,i,a,o,g,s,d.valueLineWidth,d.boundingLength,d.repeatCutLength,r,d),d}function CFe(t,e,n,r,i){var a=r.valueDim,o=t.get("symbolBoundingData"),s=r.coordSys.getOtherAxis(r.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(n[a.wh]<=0),c;if(re(o)){var f=[bI(s,o[0])-l,bI(s,o[1])-l];f[1]<f[0]&&f.reverse(),c=f[u]}else o!=null?c=bI(s,o)-l:e?c=r.coordSysExtent[a.index][u]-l:c=n[a.wh];i.boundingLength=c,e&&(i.repeatCutLength=n[a.wh]),i.pxSign=c>0?1:-1}function bI(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function TFe(t,e,n,r,i,a,o,s,l,u){var c=l.valueDim,f=l.categoryDim,d=Math.abs(n[f.wh]),h=t.getItemVisual(e,"symbolSize"),g;re(h)?g=h.slice():h==null?g=["100%","100%"]:g=[h,h],g[f.index]=he(g[f.index],d),g[c.index]=he(g[c.index],r?d:Math.abs(a)),u.symbolSize=g;var v=u.symbolScale=[g[0]/s,g[1]/s];v[c.index]*=(l.isHorizontal?-1:1)*o}function PFe(t,e,n,r,i){var a=t.get(xFe)||0;a&&(yI.attr({scaleX:e[0],scaleY:e[1],rotation:n}),yI.updateTransform(),a/=yI.getLineScale(),a*=e[r.valueDim.index]),i.valueLineWidth=a||0}function $Fe(t,e,n,r,i,a,o,s,l,u,c,f){var d=c.categoryDim,h=c.valueDim,g=f.pxSign,v=Math.max(e[h.index]+s,0),m=v;if(r){var y=Math.abs(l),b=tn(t.get("symbolMargin"),"15%")+"",_=!1;b.lastIndexOf("!")===b.length-1&&(_=!0,b=b.slice(0,b.length-1));var O=he(b,e[h.index]),S=Math.max(v+O*2,0),x=_?0:O*2,w=P_(r),T=w?r:GY((y+x)/S),P=y-T*v;O=P/2/(_?T:Math.max(T-1,1)),S=v+O*2,x=_?0:O*2,!w&&r!=="fixed"&&(T=u?GY((Math.abs(u)+x)/S):0),m=T*S-x,f.repeatTimes=T,f.symbolMargin=O}var C=g*(m/2),$=f.pathPosition=[];$[d.index]=n[d.wh]/2,$[h.index]=o==="start"?C:o==="end"?l-C:l/2,a&&($[0]+=a[0],$[1]+=a[1]);var A=f.bundlePosition=[];A[d.index]=n[d.xy],A[h.index]=n[h.xy];var E=f.barRectShape=ne({},n);E[h.wh]=g*Math.max(Math.abs(n[h.wh]),Math.abs($[h.index]+C)),E[d.wh]=n[d.wh];var D=f.clipShape={};D[d.xy]=-n[d.xy],D[d.wh]=c.ecSize[d.wh],D[h.xy]=0,D[h.wh]=n[h.wh]}function NY(t){var e=t.symbolPatternSize,n=rn(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),n.type!=="image"&&n.setStyle({strokeNoScale:!0}),n}function LY(t,e,n,r){var i=t.__pictorialBundle,a=n.symbolSize,o=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,c=0,f=a[e.valueDim.index]+o+n.symbolMargin*2;for(_I(t,function(v){v.__pictorialAnimationIndex=c,v.__pictorialRepeatTimes=u,c<u?lh(v,null,g(c),n,r):lh(v,null,{scaleX:0,scaleY:0},n,r,function(){i.remove(v)}),c++});c<u;c++){var d=NY(n);d.__pictorialAnimationIndex=c,d.__pictorialRepeatTimes=u,i.add(d);var h=g(c);lh(d,{x:h.x,y:h.y,scaleX:0,scaleY:0},{scaleX:h.scaleX,scaleY:h.scaleY,rotation:h.rotation},n,r)}function g(v){var m=s.slice(),y=n.pxSign,b=v;return(n.symbolRepeatDirection==="start"?y>0:y<0)&&(b=u-1-v),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 VY(t,e,n,r){var i=t.__pictorialBundle,a=t.__pictorialMainPath;a?lh(a,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,r):(a=t.__pictorialMainPath=NY(n),i.add(a),lh(a,{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 BY(t,e,n){var r=ne({},e.barRectShape),i=t.__pictorialBarRect;i?lh(i,null,{shape:r},e,n):(i=t.__pictorialBarRect=new tt({z2:2,shape:r,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,t.add(i))}function zY(t,e,n,r){if(n.symbolClip){var i=t.__pictorialClipPath,a=ne({},n.clipShape),o=e.valueDim,s=n.animationModel,l=n.dataIndex;if(i)ot(i,{shape:a},s,l);else{a[o.wh]=0,i=new tt({shape:a}),t.__pictorialBundle.setClipPath(i),t.__pictorialClipPath=i;var u={};u[o.wh]=n.clipShape[o.wh],rc[r?"updateProps":"initProps"](i,{shape:u},s,l)}}}function FY(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=AFe,n.isAnimationEnabled=EFe,n}function AFe(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function EFe(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function WY(t,e,n,r){var i=new Me,a=new Me;return i.add(a),i.__pictorialBundle=a,a.x=n.bundlePosition[0],a.y=n.bundlePosition[1],n.symbolRepeat?LY(i,e,n):VY(i,e,n),BY(i,n,r),zY(i,e,n,r),i.__pictorialShapeStr=HY(t,n),i.__pictorialSymbolMeta=n,i}function MFe(t,e,n){var r=n.animationModel,i=n.dataIndex,a=t.__pictorialBundle;ot(a,{x:n.bundlePosition[0],y:n.bundlePosition[1]},r,i),n.symbolRepeat?LY(t,e,n,!0):VY(t,e,n,!0),BY(t,n,!0),zY(t,e,n,!0)}function QY(t,e,n,r){var i=r.__pictorialBarRect;i&&i.removeTextContent();var a=[];_I(r,function(o){a.push(o)}),r.__pictorialMainPath&&a.push(r.__pictorialMainPath),r.__pictorialClipPath&&(n=null),k(a,function(o){dl(o,{scaleX:0,scaleY:0},n,e,function(){r.parent&&r.parent.remove(r)})}),t.setItemGraphicEl(e,null)}function HY(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function _I(t,e,n){k(t.__pictorialBundle.children(),function(r){r!==t.__pictorialBarRect&&e.call(n,r)})}function lh(t,e,n,r,i,a){e&&t.attr(e),r.symbolClip&&!i?n&&t.attr(n):n&&rc[i?"updateProps":"initProps"](t,n,r.animationModel,r.dataIndex,a)}function jY(t,e,n){var r=n.dataIndex,i=n.itemModel,a=i.getModel("emphasis"),o=a.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),c=a.get("focus"),f=a.get("blurScope"),d=a.get("scale");_I(t,function(v){if(v instanceof Ln){var m=v.style;v.useStyle(ne({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},n.style))}else v.useStyle(n.style);var y=v.ensureState("emphasis");y.style=o,d&&(y.scaleX=v.scaleX*1.1,y.scaleY=v.scaleY*1.1),v.ensureState("blur").style=s,v.ensureState("select").style=l,u&&(v.cursor=u),v.z2=n.z2});var h=e.valueDim.posDesc[+(n.boundingLength>0)],g=t.__pictorialBarRect;g.ignoreClip=!0,Un(g,Tn(i),{labelFetcher:e.seriesModel,labelDataIndex:r,defaultText:Jd(e.seriesModel.getData(),r),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:h}),Xt(t,c,f,a.get("disabled"))}function GY(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var IFe=function(t){U(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=gl(Hv.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}(Hv);function DFe(t){t.registerChartView(wFe),t.registerSeriesModel(IFe),t.registerLayout(t.PRIORITY.VISUAL.LAYOUT,ke(aG,"pictorialBar")),t.registerLayout(t.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,oG("pictorialBar"))}var RFe=function(t){U(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 a=n.getData(),o=this,s=this.group,l=n.getLayerSeries(),u=a.getLayout("layoutInfo"),c=u.rect,f=u.boundaryGap;s.x=0,s.y=c.y+f[0];function d(m){return m.name}var h=new vs(this._layersSeries||[],l,d,d),g=[];h.add(ve(v,this,"add")).update(ve(v,this,"update")).remove(ve(v,this,"remove")).execute();function v(m,y,b){var _=o._layers;if(m==="remove"){s.remove(_[y]);return}for(var O=[],S=[],x,w=l[y].indices,T=0;T<w.length;T++){var P=a.getItemLayout(w[T]),C=P.x,$=P.y0,A=P.y;O.push(C,$),S.push(C,$+A),x=a.getItemVisual(w[T],"style")}var E,D=a.getItemLayout(w[0]),M=n.getModel("label"),R=M.get("margin"),N=n.getModel("emphasis");if(m==="add"){var V=g[y]=new Me;E=new SZ({shape:{points:O,stackedOnPoints:S,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),V.add(E),s.add(V),n.isAnimationEnabled()&&E.setClipPath(kFe(E.getBoundingRect(),n,function(){E.removeClipPath()}))}else{var V=_[b];E=V.childAt(0),s.add(V),g[y]=V,ot(E,{shape:{points:O,stackedOnPoints:S}},n),Aa(E)}Un(E,Tn(n),{labelDataIndex:w[T-1],defaultText:a.getName(w[T-1]),inheritColor:x.fill},{normal:{verticalAlign:"middle"}}),E.setTextConfig({position:null,local:!0});var L=E.getTextContent();L&&(L.x=D.x-R,L.y=D.y0+D.y/2),E.useStyle(x),a.setItemGraphicEl(y,E),Zn(E,n),Xt(E,N.get("focus"),N.get("blurScope"),N.get("disabled"))}this._layersSeries=l,this._layers=g},e.type="themeRiver",e}(_t);function kFe(t,e,n){var r=new tt({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return Mt(r,{shape:{x:t.x-50,width:t.width+100,height:t.height+20}},e,n),r}var OI=2,NFe=function(t){U(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 Gv(ve(this.getData,this),ve(this.getRawData,this))},e.prototype.fixData=function(n){var r=n.length,i={},a=f2(n,function(d){return i.hasOwnProperty(d[0]+"")||(i[d[0]+""]=-1),d[2]}),o=[];a.buckets.each(function(d,h){o.push({name:h,dataList:d})});for(var s=o.length,l=0;l<s;++l){for(var u=o[l].name,c=0;c<o[l].dataList.length;++c){var f=o[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",on).models[0],a=i.get("type"),o=vt(n.data,function(g){return g[2]!==void 0}),s=this.fixData(o||[]),l=[],u=this.nameMap=be(),c=0,f=0;f<s.length;++f)l.push(s[f][OI]),u.get(s[f][OI])||(u.set(s[f][OI],c),c++);var d=Ud(s,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:B1(a)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new ur(d,this);return h.initData(s),h},e.prototype.getLayerSeries=function(){for(var n=this.getData(),r=n.count(),i=[],a=0;a<r;++a)i[a]=a;var o=n.mapDimension("single"),s=f2(i,function(u){return n.get("name",u)}),l=[];return s.buckets.each(function(u,c){u.sort(function(f,d){return n.get(o,f)-n.get(o,d)}),l.push({name:c,indices:u})}),l},e.prototype.getAxisTooltipData=function(n,r,i){re(n)||(n=n?[n]:[]);for(var a=this.getData(),o=this.getLayerSeries(),s=[],l=o.length,u,c=0;c<l;++c){for(var f=Number.MAX_VALUE,d=-1,h=o[c].indices.length,g=0;g<h;++g){var v=a.get(n[0],o[c].indices[g]),m=Math.abs(v-r);m<=f&&(u=v,f=m,d=o[c].indices[g])}s.push(d)}return{dataIndices:s,nestestValue:u}},e.prototype.formatTooltip=function(n,r,i){var a=this.getData(),o=a.getName(n),s=a.get(a.mapDimension("value"),n);return Pn("nameValue",{name:o,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}(Ct);function LFe(t,e){t.eachSeriesByType("themeRiver",function(n){var r=n.getData(),i=n.coordinateSystem,a={},o=i.getRect();a.rect=o;var s=n.get("boundaryGap"),l=i.getAxis();if(a.boundaryGap=s,l.orient==="horizontal"){s[0]=he(s[0],o.height),s[1]=he(s[1],o.height);var u=o.height-s[0]-s[1];ZY(r,n,u)}else{s[0]=he(s[0],o.width),s[1]=he(s[1],o.width);var c=o.width-s[0]-s[1];ZY(r,n,c)}r.setLayout("layoutInfo",a)})}function ZY(t,e,n){if(t.count())for(var r=e.coordinateSystem,i=e.getLayerSeries(),a=t.mapDimension("single"),o=t.mapDimension("value"),s=ie(i,function(m){return ie(m.indices,function(y){var b=r.dataToPoint(t.get(a,y));return b[1]=t.get(o,y),b})}),l=VFe(s),u=l.y0,c=n/l.max,f=i.length,d=i[0].indices.length,h,g=0;g<d;++g){h=u[g]*c,t.setItemLayout(i[0].indices[g],{layerIndex:0,x:s[0][g][0],y0:h,y:s[0][g][1]*c});for(var v=1;v<f;++v)h+=s[v-1][g][1]*c,t.setItemLayout(i[v].indices[g],{layerIndex:v,x:s[v][g][0],y0:h,y:s[v][g][1]*c})}}function VFe(t){for(var e=t.length,n=t[0].length,r=[],i=[],a=0,o=0;o<n;++o){for(var s=0,l=0;l<e;++l)s+=t[l][o][1];s>a&&(a=s),r.push(s)}for(var u=0;u<n;++u)i[u]=(a-r[u])/2;a=0;for(var c=0;c<n;++c){var f=r[c]+i[c];f>a&&(a=f)}return{y0:i,max:a}}function BFe(t){t.registerChartView(RFe),t.registerSeriesModel(NFe),t.registerLayout(LFe),t.registerProcessor(jv("themeRiver"))}var zFe=2,FFe=4,UY=function(t){U(e,t);function e(n,r,i,a){var o=t.call(this)||this;o.z2=zFe,o.textConfig={inside:!0},De(o).seriesIndex=r.seriesIndex;var s=new nt({z2:FFe,silent:n.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,n,r,i,a),o}return e.prototype.updateData=function(n,r,i,a,o){this.node=r,r.piece=this,i=i||this._seriesModel,a=a||this._ecModel;var s=this;De(s).dataIndex=r.dataIndex;var l=r.getModel(),u=l.getModel("emphasis"),c=r.getLayout(),f=ne({},c);f.label=null;var d=r.getVisual("style");d.lineJoin="bevel";var h=r.getVisual("decal");h&&(d.decal=jd(h,o));var g=$c(l.getModel("itemStyle"),f,!0);ne(f,g),k(Sr,function(b){var _=s.ensureState(b),O=l.getModel([b,"itemStyle"]);_.style=O.getItemStyle();var S=$c(O,f);S&&(_.shape=S)}),n?(s.setShape(f),s.shape.r=c.r0,Mt(s,{shape:{r:c.r}},i,r.dataIndex)):(ot(s,{shape:f},i),Aa(s)),s.useStyle(d),this._updateLabel(i);var v=l.getShallow("cursor");v&&s.attr("cursor",v),this._seriesModel=i||this._seriesModel,this._ecModel=a||this._ecModel;var m=u.get("focus"),y=m==="ancestor"?r.getAncestorsIndices():m==="descendant"?r.getDescendantIndices():m;Xt(this,y,u.get("blurScope"),u.get("disabled"))},e.prototype._updateLabel=function(n){var r=this,i=this.node.getModel(),a=i.getModel("label"),o=this.node.getLayout(),s=o.endAngle-o.startAngle,l=(o.startAngle+o.endAngle)/2,u=Math.cos(l),c=Math.sin(l),f=this,d=f.getTextContent(),h=this.node.dataIndex,g=a.get("minAngle")/180*Math.PI,v=a.get("show")&&!(g!=null&&Math.abs(s)<g);d.ignore=!v,k(Kg,function(y){var b=y==="normal"?i.getModel("label"):i.getModel([y,"label"]),_=y==="normal",O=_?d:d.ensureState(y),S=n.getFormattedLabel(h,y);_&&(S=S||r.node.name),O.style=$t(b,{},null,y!=="normal",!0),S&&(O.style.text=S);var x=b.get("show");x!=null&&!_&&(O.ignore=!x);var w=m(b,"position"),T=_?f:f.states[y],P=T.style.fill;T.textConfig={outsideFill:b.get("color")==="inherit"?P:null,inside:w!=="outside"};var C,$=m(b,"distance")||0,A=m(b,"align"),E=m(b,"rotate"),D=Math.PI*.5,M=Math.PI*1.5,R=pi(E==="tangential"?Math.PI/2-l:l),N=R>D&&!gd(R-D)&&R<M;w==="outside"?(C=o.r+$,A=N?"right":"left"):!A||A==="center"?(s===2*Math.PI&&o.r0===0?C=0:C=(o.r+o.r0)/2,A="center"):A==="left"?(C=o.r0+$,A=N?"right":"left"):A==="right"&&(C=o.r-$,A=N?"left":"right"),O.style.align=A,O.style.verticalAlign=m(b,"verticalAlign")||"middle",O.x=C*u+o.cx,O.y=C*c+o.cy;var V=0;E==="radial"?V=pi(-l)+(N?Math.PI:0):E==="tangential"?V=pi(Math.PI/2-l)+(N?Math.PI:0):it(E)&&(V=E*Math.PI/180),O.rotation=pi(V)});function m(y,b){var _=y.get(b);return _??a.get(b)}d.dirtyStyle()},e}(xr),SI="sunburstRootToNode",XY="sunburstHighlight",WFe="sunburstUnhighlight";function QFe(t){t.registerAction({type:SI,update:"updateView"},function(e,n){n.eachComponent({mainType:"series",subType:"sunburst",query:e},r);function r(i,a){var o=Jv(e,[SI],i);if(o){var s=i.getViewRoot();s&&(e.direction=xM(s,o.node)?"rollUp":"drillDown"),i.resetViewRoot(o.node)}}}),t.registerAction({type:XY,update:"none"},function(e,n,r){e=ne({},e),n.eachComponent({mainType:"series",subType:"sunburst",query:e},i);function i(a){var o=Jv(e,[XY],a);o&&(e.dataIndex=o.node.dataIndex)}process.env.NODE_ENV!=="production"&&nn("sunburstHighlight","highlight"),r.dispatchAction(ne(e,{type:"highlight"}))}),t.registerAction({type:WFe,update:"updateView"},function(e,n,r){e=ne({},e),process.env.NODE_ENV!=="production"&&nn("sunburstUnhighlight","downplay"),r.dispatchAction(ne(e,{type:"downplay"}))})}var HFe=function(t){U(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,a){var o=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 h=this._oldChildren||[];g(d,h),y(l,u),this._initEvents(),this._oldChildren=d;function g(b,_){if(b.length===0&&_.length===0)return;new vs(_,b,O,O).add(S).update(S).remove(ke(S,null)).execute();function O(x){return x.getId()}function S(x,w){var T=x==null?null:b[x],P=w==null?null:_[w];v(T,P)}}function v(b,_){if(!f&&b&&!b.getValue()&&(b=null),b!==l&&_!==l){if(_&&_.piece)b?(_.piece.updateData(!1,b,n,r,i),s.setItemGraphicEl(b.dataIndex,_.piece)):m(_);else if(b){var O=new UY(b,n,r,i);c.add(O),s.setItemGraphicEl(b.dataIndex,O)}}}function m(b){b&&b.piece&&(c.remove(b.piece),b.piece=null)}function y(b,_){_.depth>0?(o.virtualPiece?o.virtualPiece.updateData(!1,b,n,r,i):(o.virtualPiece=new UY(b,n,r,i),c.add(o.virtualPiece)),_.piece.off("click"),o.virtualPiece.on("click",function(O){o._rootToNode(_.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},e.prototype._initEvents=function(){var n=this;this.group.off("click"),this.group.on("click",function(r){var i=!1,a=n.seriesModel.getViewRoot();a.eachNode(function(o){if(!i&&o.piece&&o.piece===r.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")n._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";f1(u,c)}}i=!0}})})},e.prototype._rootToNode=function(n){n!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:SI,from:this.uid,seriesId:this.seriesModel.id,targetNode:n})},e.prototype.containPoint=function(n,r){var i=r.getData(),a=i.getItemLayout(0);if(a){var o=n[0]-a.cx,s=n[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},e.type="sunburst",e}(_t),jFe=function(t){U(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};YY(i);var a=this._levelModels=ie(n.levels||[],function(l){return new wt(l,this,r)},this),o=SM.createTree(i,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var f=o.getNodeByDataIndex(c),d=a[f.depth];return d&&(u.parentModel=d),u})}return o.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=mO(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(){sX(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}(Ct);function YY(t){var e=0;k(t.children,function(r){YY(r);var i=r.value;re(i)&&(i=i[0]),e+=i});var n=t.value;re(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=e),n<0&&(n=0),re(t.value)?t.value[0]=n:t.value=n}var qY=Math.PI/180;function GFe(t,e,n){e.eachSeriesByType(t,function(r){var i=r.get("center"),a=r.get("radius");re(a)||(a=[0,a]),re(i)||(i=[i,i]);var o=n.getWidth(),s=n.getHeight(),l=Math.min(o,s),u=he(i[0],o),c=he(i[1],s),f=he(a[0],l/2),d=he(a[1],l/2),h=-r.get("startAngle")*qY,g=r.get("minAngle")*qY,v=r.getData().tree.root,m=r.getViewRoot(),y=m.depth,b=r.get("sort");b!=null&&KY(m,b);var _=0;k(m.children,function(R){!isNaN(R.getValue())&&_++});var O=m.getValue(),S=Math.PI/(O||_)*2,x=m.depth>0,w=m.height-(x?-1:1),T=(d-f)/(w||1),P=r.get("clockwise"),C=r.get("stillShowZeroSum"),$=P?1:-1,A=function(R,N){if(R){var V=N;if(R!==v){var L=R.getValue(),z=O===0&&C?S:L*S;z<g&&(z=g),V=N+$*z;var B=R.depth-y-(x?-1:1),F=f+T*B,j=f+T*(B+1),K=r.getLevelModel(R);if(K){var q=K.get("r0",!0),te=K.get("r",!0),X=K.get("radius",!0);X!=null&&(q=X[0],te=X[1]),q!=null&&(F=he(q,l/2)),te!=null&&(j=he(te,l/2))}R.setLayout({angle:z,startAngle:N,endAngle:V,clockwise:P,cx:u,cy:c,r0:F,r:j})}if(R.children&&R.children.length){var ee=0;k(R.children,function(G){ee+=A(G,N+ee)})}return V-N}};if(x){var E=f,D=f+T,M=Math.PI*2;v.setLayout({angle:M,startAngle:h,endAngle:h+M,clockwise:P,cx:u,cy:c,r0:E,r:D})}A(m,h)})}function KY(t,e){var n=t.children||[];t.children=ZFe(n,e),n.length&&k(t.children,function(r){KY(r,e)})}function ZFe(t,e){if(xe(e)){var n=ie(t,function(i,a){var o=i.getValue();return{params:{depth:i.depth,height:i.height,dataIndex:i.dataIndex,getValue:function(){return o}},index:a}});return n.sort(function(i,a){return e(i.params,a.params)}),ie(n,function(i){return t[i.index]})}else{var r=e==="asc";return t.sort(function(i,a){var o=(i.getValue()-a.getValue())*(r?1:-1);return o===0?(i.dataIndex-a.dataIndex)*(r?-1:1):o})}}function UFe(t){var e={};function n(r,i,a){for(var o=r;o&&o.depth>1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",e);return r.depth>1&&pe(s)&&(s=c_(s,(r.depth-1)/(a-1)*.5)),s}t.eachSeriesByType("sunburst",function(r){var i=r.getData(),a=i.tree;a.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=n(o,r,a.root.height));var u=i.ensureUniqueItemVisual(o.dataIndex,"style");ne(u,l)})})}function XFe(t){t.registerChartView(HFe),t.registerSeriesModel(jFe),t.registerLayout(ke(GFe,"sunburst")),t.registerProcessor(ke(jv,"sunburst")),t.registerVisual(UFe),QFe(t)}var JY={color:"fill",borderColor:"stroke"},YFe={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},Os=et(),qFe=function(t){U(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 go(null,this)},e.prototype.getDataParams=function(n,r,i){var a=t.prototype.getDataParams.call(this,n,r);return i&&(a.info=Os(i).info),a},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(Ct);function KFe(t,e){return e=e||[0,0],ie(["x","y"],function(n,r){var i=this.getAxis(n),a=e[r],o=t[r]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function JFe(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:ve(KFe,t)}}}function eWe(t,e){return e=e||[0,0],ie([0,1],function(n){var r=e[n],i=t[n]/2,a=[],o=[];return a[n]=r-i,o[n]=r+i,a[1-n]=o[1-n]=e[1-n],Math.abs(this.dataToPoint(a)[n]-this.dataToPoint(o)[n])},this)}function tWe(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:ve(eWe,t)}}}function nWe(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 rWe(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:ve(nWe,t)}}}function iWe(t,e){return e=e||[0,0],ie(["Radius","Angle"],function(n,r){var i="get"+n+"Axis",a=this[i](),o=e[r],s=t[r]/2,l=a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return n==="Angle"&&(l=l*Math.PI/180),l},this)}function aWe(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 a=e.dataToRadius(i[0]),o=n.dataToAngle(i[1]),s=t.coordToPoint([a,o]);return s.push(a,o*Math.PI/180),s},size:ve(iWe,t)}}}function oWe(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 eq={};function tq(t,e,n,r){return t&&(t.legacy||t.legacy!==!1&&!n&&!r&&e!=="tspan"&&(e==="text"||me(t,"text")))}function nq(t,e,n){var r=t,i,a,o;if(e==="text")o=r;else{o={},me(r,"text")&&(o.text=r.text),me(r,"rich")&&(o.rich=r.rich),me(r,"textFill")&&(o.fill=r.textFill),me(r,"textStroke")&&(o.stroke=r.textStroke),me(r,"fontFamily")&&(o.fontFamily=r.fontFamily),me(r,"fontSize")&&(o.fontSize=r.fontSize),me(r,"fontStyle")&&(o.fontStyle=r.fontStyle),me(r,"fontWeight")&&(o.fontWeight=r.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=me(r,"textPosition");n?i.position=s?r.textPosition:"inside":s&&(i.position=r.textPosition),me(r,"textPosition")&&(i.position=r.textPosition),me(r,"textOffset")&&(i.offset=r.textOffset),me(r,"textRotation")&&(i.rotation=r.textRotation),me(r,"textDistance")&&(i.distance=r.textDistance)}return rq(o,t),k(o.rich,function(l){rq(l,l)}),{textConfig:i,textContent:a}}function rq(t,e){e&&(e.font=e.textFont||e.font,me(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),me(e,"textAlign")&&(t.align=e.textAlign),me(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),me(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),me(e,"textWidth")&&(t.width=e.textWidth),me(e,"textHeight")&&(t.height=e.textHeight),me(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),me(e,"textPadding")&&(t.padding=e.textPadding),me(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),me(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),me(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),me(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),me(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),me(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),me(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function iq(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,a=t.fill||"#000";aq(r,e);var o=r.textFill==null;return i?o&&(r.textFill=n.insideFill||"#fff",!r.textStroke&&n.insideStroke&&(r.textStroke=n.insideStroke),!r.textStroke&&(r.textStroke=a),r.textStrokeWidth==null&&(r.textStrokeWidth=2)):(o&&(r.textFill=t.fill||n.outsideFill||"#000"),!r.textStroke&&n.outsideStroke&&(r.textStroke=n.outsideStroke)),r.text=e.text,r.rich=e.rich,k(e.rich,function(s){aq(s,s)}),r}function aq(t,e){e&&(me(e,"fill")&&(t.textFill=e.fill),me(e,"stroke")&&(t.textStroke=e.fill),me(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),me(e,"font")&&(t.font=e.font),me(e,"fontStyle")&&(t.fontStyle=e.fontStyle),me(e,"fontWeight")&&(t.fontWeight=e.fontWeight),me(e,"fontSize")&&(t.fontSize=e.fontSize),me(e,"fontFamily")&&(t.fontFamily=e.fontFamily),me(e,"align")&&(t.textAlign=e.align),me(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),me(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),me(e,"width")&&(t.textWidth=e.width),me(e,"height")&&(t.textHeight=e.height),me(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),me(e,"padding")&&(t.textPadding=e.padding),me(e,"borderColor")&&(t.textBorderColor=e.borderColor),me(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),me(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),me(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),me(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),me(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),me(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),me(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),me(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),me(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),me(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}function oq(t,e){if(process.env.NODE_ENV!=="production"){var n=t+"^_^"+e;eq[n]||(console.warn('[ECharts] DEPRECATED: "'+t+'" has been deprecated. '+e),eq[n]=!0)}}var sq={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},lq=Ue(sq),EO=Vi(io,function(t,e){return t[e]=1,t},{}),uq=io.join(", "),MO=["","style","shape","extra"],uh=et();function xI(t,e,n,r,i){var a=t+"Animation",o=Cd(t,r,i)||{},s=uh(e).userDuring;return o.duration>0&&(o.during=s?ve(fWe,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=t),ne(o,n[a]),o}function IO(t,e,n,r){r=r||{};var i=r.dataIndex,a=r.isInit,o=r.clearStyle,s=n.isAnimationEnabled(),l=uh(t),u=e.style;l.userDuring=e.during;var c={},f={};if(hWe(t,e,f),dq("shape",e,f),dq("extra",e,f),!a&&s&&(dWe(t,e,c),fq("shape",t,e,c),fq("extra",t,e,c),pWe(t,e,u,c)),f.style=u,sWe(t,f,o),uWe(t,e),s)if(a){var d={};k(MO,function(g){var v=g?e[g]:e;v&&v.enterFrom&&(g&&(d[g]=d[g]||{}),ne(g?d[g]:d,v.enterFrom))});var h=xI("enter",t,e,n,i);h.duration>0&&t.animateFrom(d,h)}else lWe(t,e,i||0,n,c);cq(t,e),u?t.dirty():t.markRedraw()}function cq(t,e){for(var n=uh(t).leaveToProps,r=0;r<MO.length;r++){var i=MO[r],a=i?e[i]:e;a&&a.leaveTo&&(n||(n=uh(t).leaveToProps={}),i&&(n[i]=n[i]||{}),ne(i?n[i]:n,a.leaveTo))}}function DO(t,e,n,r){if(t){var i=t.parent,a=uh(t).leaveToProps;if(a){var o=xI("update",t,e,n,0);o.done=function(){i.remove(t)},t.animateTo(a,o)}else i.remove(t)}}function Vc(t){return t==="all"}function sWe(t,e,n){var r=e.style;if(!t.isGroup&&r){if(n){t.useStyle({});for(var i=t.animators,a=0;a<i.length;a++){var o=i[a];o.targetName==="style"&&o.changeTarget(t.style)}}t.setStyle(r)}e&&(e.style=null,e&&t.attr(e),e.style=r)}function lWe(t,e,n,r,i){if(i){var a=xI("update",t,e,r,n);a.duration>0&&t.animateFrom(i,a)}}function uWe(t,e){me(e,"silent")&&(t.silent=e.silent),me(e,"ignore")&&(t.ignore=e.ignore),t instanceof ji&&me(e,"invisible")&&(t.invisible=e.invisible),t instanceof Ge&&me(e,"autoBatch")&&(t.autoBatch=e.autoBatch)}var Oo={},cWe={setTransform:function(t,e){return process.env.NODE_ENV!=="production"&&Pe(me(EO,t),"Only "+uq+" available in `setTransform`."),Oo.el[t]=e,this},getTransform:function(t){return process.env.NODE_ENV!=="production"&&Pe(me(EO,t),"Only "+uq+" available in `getTransform`."),Oo.el[t]},setShape:function(t,e){process.env.NODE_ENV!=="production"&&ch(t);var n=Oo.el,r=n.shape||(n.shape={});return r[t]=e,n.dirtyShape&&n.dirtyShape(),this},getShape:function(t){process.env.NODE_ENV!=="production"&&ch(t);var e=Oo.el.shape;if(e)return e[t]},setStyle:function(t,e){process.env.NODE_ENV!=="production"&&ch(t);var n=Oo.el,r=n.style;return r&&(process.env.NODE_ENV!=="production"&&Ys(e)&&Wt("style."+t+" must not be assigned with NaN."),r[t]=e,n.dirtyStyle&&n.dirtyStyle()),this},getStyle:function(t){process.env.NODE_ENV!=="production"&&ch(t);var e=Oo.el.style;if(e)return e[t]},setExtra:function(t,e){process.env.NODE_ENV!=="production"&&ch(t);var n=Oo.el.extra||(Oo.el.extra={});return n[t]=e,this},getExtra:function(t){process.env.NODE_ENV!=="production"&&ch(t);var e=Oo.el.extra;if(e)return e[t]}};function ch(t){if(process.env.NODE_ENV!=="production"&&(t==="transition"||t==="enterFrom"||t==="leaveTo"))throw new Error('key must not be "'+t+'"')}function fWe(){var t=this,e=t.el;if(e){var n=uh(e).userDuring,r=t.userDuring;if(n!==r){t.el=t.userDuring=null;return}Oo.el=e,r(cWe)}}function fq(t,e,n,r){var i=n[t];if(i){var a=e[t],o;if(a){var s=n.transition,l=i.transition;if(l)if(!o&&(o=r[t]={}),Vc(l))ne(o,a);else for(var u=xt(l),c=0;c<u.length;c++){var f=u[c],d=a[f];o[f]=d}else if(Vc(s)||Fe(s,t)>=0){!o&&(o=r[t]={});for(var h=Ue(a),c=0;c<h.length;c++){var f=h[c],d=a[f];gWe(i[f],d)&&(o[f]=d)}}}}}function dq(t,e,n){var r=e[t];if(r)for(var i=n[t]={},a=Ue(r),o=0;o<a.length;o++){var s=a[o];i[s]=Bg(r[s])}}function dWe(t,e,n){for(var r=e.transition,i=Vc(r)?io:xt(r||[]),a=0;a<i.length;a++){var o=i[a];if(!(o==="style"||o==="shape"||o==="extra")){var s=t[o];process.env.NODE_ENV!=="production"&&hq(o,"el.transition"),n[o]=s}}}function hWe(t,e,n){for(var r=0;r<lq.length;r++){var i=lq[r],a=sq[i],o=e[i];o&&(n[a[0]]=o[0],n[a[1]]=o[1])}for(var r=0;r<io.length;r++){var s=io[r];e[s]!=null&&(n[s]=e[s])}}function pWe(t,e,n,r){if(n){var i=t.style,a;if(i){var o=n.transition,s=e.transition;if(o&&!Vc(o)){var l=xt(o);!a&&(a=r.style={});for(var u=0;u<l.length;u++){var c=l[u],f=i[c];a[c]=f}}else if(t.getAnimationStyleProps&&(Vc(s)||Vc(o)||Fe(s,"style")>=0)){var d=t.getAnimationStyleProps(),h=d?d.style:null;if(h){!a&&(a=r.style={});for(var g=Ue(n),u=0;u<g.length;u++){var c=g[u];if(h[c]){var f=i[c];a[c]=f}}}}}}}function gWe(t,e){return jn(t)?t!==e:t!=null&&isFinite(t)}var hq;process.env.NODE_ENV!=="production"&&(hq=function(t,e){me(EO,t)||Wt("Prop `"+t+"` is not a permitted in `"+e+"`. Only `"+Ue(EO).join("`, `")+"` are permitted.")});var pq=et(),vWe=["percent","easing","shape","style","extra"];function gq(t){t.stopAnimation("keyframe"),t.attr(pq(t))}function RO(t,e,n){if(!(!n.isAnimationEnabled()||!e)){if(re(e)){k(e,function(s){RO(t,s,n)});return}var r=e.keyframes,i=e.duration;if(n&&i==null){var a=Cd("enter",n,0);i=a&&a.duration}if(!(!r||!i)){var o=pq(t);k(MO,function(s){if(!(s&&!t[s])){var l,u=!1;r.sort(function(c,f){return c.percent-f.percent}),k(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 h=Ue(d);if(s||(h=vt(h,function(m){return Fe(vWe,m)<0})),!!h.length){l||(l=t.animate(s,e.loop,!0),l.scope="keyframe");for(var g=0;g<f.length;g++)f[g]!==l&&f[g].targetName===l.targetName&&f[g].stopTracks(h);s&&(o[s]=o[s]||{});var v=s?o[s]:o;k(h,function(m){v[m]=((s?t[s]:t)||{})[m]}),l.whenWithKeys(i*c.percent,d,h,c.easing)}}}),l&&(process.env.NODE_ENV!=="production"&&(u||Wt("End frame with percent: 1 is missing in the keyframeAnimation.",!0)),l.delay(e.delay||0).duration(i).start(e.easing))}})}}}var Ss="emphasis",$l="normal",wI="blur",CI="select",Al=[$l,Ss,wI,CI],TI={normal:["itemStyle"],emphasis:[Ss,"itemStyle"],blur:[wI,"itemStyle"],select:[CI,"itemStyle"]},PI={normal:["label"],emphasis:[Ss,"label"],blur:[wI,"label"],select:[CI,"label"]},mWe=["x","y"],yWe="e\0\0",ia={normal:{},emphasis:{},blur:{},select:{}},vq={cartesian2d:JFe,geo:tWe,single:rWe,polar:aWe,calendar:oWe};function kO(t){return t instanceof Ge}function $I(t){return t instanceof ji}function bWe(t,e){e.copyTransform(t),$I(e)&&$I(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,kO(e)&&kO(t)&&e.setShape(t.shape))}var _We=function(t){U(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,a){this._progressiveEls=null;var o=this._data,s=n.getData(),l=this.group,u=yq(n,s,r,i);o||l.removeAll(),s.diff(o).add(function(f){MI(i,null,f,u(f,a),n,l,s)}).remove(function(f){var d=o.getItemGraphicEl(f);d&&DO(d,Os(d).option,n)}).update(function(f,d){var h=o.getItemGraphicEl(d);MI(i,h,f,u(f,a),n,l,s)}).execute();var c=n.get("clip",!0)?Wv(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,a,o){var s=r.getData(),l=yq(r,s,i,a),u=this._progressiveEls=[];function c(h){h.isGroup||(h.incremental=!0,h.ensureState("emphasis").hoverLayer=!0)}for(var f=n.start;f<n.end;f++){var d=MI(null,null,f,l(f,o),r,this.group,s);d&&(d.traverse(c),u.push(d))}},e.prototype.eachRendered=function(n){pl(this._progressiveEls||this.group,n)},e.prototype.filterForExposedEvent=function(n,r,i,a){var o=r.element;if(o==null||i.name===o)return!0;for(;(i=i.__hostTarget||i.parent)&&i!==this.group;)if(i.name===o)return!0;return!1},e.type="custom",e}(_t);function AI(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,a=xq(r);n=sv(a,null,i,r.layout||"center"),Os(n).customPathData=a}else if(e==="image")n=new Ln({}),Os(n).customImagePath=t.style.image;else if(e==="text")n=new nt({});else if(e==="group")n=new Me;else{if(e==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=J_(e);if(!o){var s="";process.env.NODE_ENV!=="production"&&(s='graphic type "'+e+'" can not be found.'),dt(s)}n=new o}return Os(n).customGraphicType=e,n.name=t.name,n.z2EmphasisLift=1,n.z2SelectLift=1,n}function EI(t,e,n,r,i,a,o){gq(e);var s=i&&i.normal.cfg;s&&e.setTextConfig(s),r&&r.transition==null&&(r.transition=mWe);var l=r&&r.style;if(l){if(e.type==="text"){var u=l;me(u,"textFill")&&(u.fill=u.textFill),me(u,"textStroke")&&(u.stroke=u.textStroke)}var c=void 0,f=kO(e)?l.decal:null;t&&f&&(f.dirty=!0,c=jd(f,t)),l.__decalPattern=c}if($I(e)&&l){var c=l.__decalPattern;c&&(l.decal=c)}IO(e,r,a,{dataIndex:n,isInit:o,clearStyle:!0}),RO(e,r.keyframeAnimation,a)}function mq(t,e,n,r,i){var a=e.isGroup?null:e,o=i&&i[t].cfg;if(a){var s=a.ensureState(t);if(r===!1){var l=a.getState(t);l&&(l.style=null)}else s.style=r||null;o&&(s.textConfig=o),Ku(a)}}function OWe(t,e,n){if(!t.isGroup){var r=t,i=n.currentZ,a=n.currentZLevel;r.z=i,r.zlevel=a;var o=e.z2;o!=null&&(r.z2=o||0);for(var s=0;s<Al.length;s++)SWe(r,e,Al[s])}}function SWe(t,e,n){var r=n===$l,i=r?e:NO(e,n),a=i?i.z2:null,o;a!=null&&(o=r?t:t.ensureState(n),o.z2=a||0)}function yq(t,e,n,r){var i=t.get("renderItem"),a=t.coordinateSystem,o={};a&&(process.env.NODE_ENV!=="production"&&(Pe(i,"series.render is required."),Pe(a.prepareCustoms||vq[a.type],"This coordSys does not support custom series.")),o=a.prepareCustoms?a.prepareCustoms(a):vq[a.type](a));for(var s=Te({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:O,style:x,ordinalRawValue:S,styleEmphasis:w,visual:C,barLayout:$,currentSeriesIndices:A,font:E},o.api||{}),l={context:{},seriesId:t.id,seriesName:t.name,seriesIndex:t.seriesIndex,coordSys:o.coordSys,dataInsideLength:e.count(),encode:xWe(t.getData())},u,c,f={},d={},h={},g={},v=0;v<Al.length;v++){var m=Al[v];h[m]=t.getModel(TI[m]),g[m]=t.getModel(PI[m])}function y(D){return D===u?c||(c=e.getItemModel(D)):e.getItemModel(D)}function b(D,M){return e.hasItemOption?D===u?f[M]||(f[M]=y(D).getModel(TI[M])):y(D).getModel(TI[M]):h[M]}function _(D,M){return e.hasItemOption?D===u?d[M]||(d[M]=y(D).getModel(PI[M])):y(D).getModel(PI[M]):g[M]}return function(D,M){return u=D,c=null,f={},d={},i&&i(Te({dataIndexInside:D,dataIndex:e.getRawIndex(D),actionType:M?M.type:null},l),s)};function O(D,M){return M==null&&(M=u),e.getStore().get(e.getDimensionIndex(D||0),M)}function S(D,M){M==null&&(M=u),D=D||0;var R=e.getDimensionInfo(D);if(!R){var N=e.getDimensionIndex(D);return N>=0?e.getStore().get(N,M):void 0}var V=e.get(R.name,M),L=R&&R.ordinalMeta;return L?L.categories[V]:V}function x(D,M){process.env.NODE_ENV!=="production"&&oq("api.style","Please write literal style directly instead."),M==null&&(M=u);var R=e.getItemVisual(M,"style"),N=R&&R.fill,V=R&&R.opacity,L=b(M,$l).getItemStyle();N!=null&&(L.fill=N),V!=null&&(L.opacity=V);var z={inheritColor:pe(N)?N:"#000"},B=_(M,$l),F=$t(B,null,z,!1,!0);F.text=B.getShallow("show")?Re(t.getFormattedLabel(M,$l),Jd(e,M)):null;var j=r1(B,z,!1);return P(D,L),L=iq(L,F,j),D&&T(L,D),L.legacy=!0,L}function w(D,M){process.env.NODE_ENV!=="production"&&oq("api.styleEmphasis","Please write literal style directly instead."),M==null&&(M=u);var R=b(M,Ss).getItemStyle(),N=_(M,Ss),V=$t(N,null,null,!0,!0);V.text=N.getShallow("show")?ui(t.getFormattedLabel(M,Ss),t.getFormattedLabel(M,$l),Jd(e,M)):null;var L=r1(N,null,!0);return P(D,R),R=iq(R,V,L),D&&T(R,D),R.legacy=!0,R}function T(D,M){for(var R in M)me(M,R)&&(D[R]=M[R])}function P(D,M){D&&(D.textFill&&(M.textFill=D.textFill),D.textPosition&&(M.textPosition=D.textPosition))}function C(D,M){if(M==null&&(M=u),me(JY,D)){var R=e.getItemVisual(M,"style");return R?R[JY[D]]:null}if(me(YFe,D))return e.getItemVisual(M,D)}function $(D){if(a.type==="cartesian2d"){var M=a.getBaseAxis();return KLe(Te({axis:M},D))}}function A(){return n.getCurrentSeriesIndices()}function E(D){return J2(D,n)}}function xWe(t){var e={};return k(t.dimensions,function(n){var r=t.getDimensionInfo(n);if(!r.isExtraCoord){var i=r.coordDim,a=e[i]=e[i]||[];a[r.coordDimIndex]=t.getDimensionIndex(n)}}),e}function MI(t,e,n,r,i,a,o){if(!r){a.remove(e);return}var s=II(t,e,n,r,i,a);return s&&o.setItemGraphicEl(n,s),s&&Xt(s,r.focus,r.blurScope,r.emphasisDisabled),s}function II(t,e,n,r,i,a){process.env.NODE_ENV!=="production"&&Pe(r,"should not have an null/undefined element setting");var o=-1,s=e;e&&bq(e,r,i)&&(o=Fe(a.childrenRef(),e),e=null);var l=!e,u=e;u?u.clearStates():(u=AI(r),s&&bWe(s,u)),r.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),ia.normal.cfg=ia.normal.conOpt=ia.emphasis.cfg=ia.emphasis.conOpt=ia.blur.cfg=ia.blur.conOpt=ia.select.cfg=ia.select.conOpt=null,ia.isLegacy=!1,CWe(u,n,r,i,l,ia),wWe(u,n,r,i,l),EI(t,u,n,r,ia,i,l),me(r,"info")&&(Os(u).info=r.info);for(var c=0;c<Al.length;c++){var f=Al[c];if(f!==$l){var d=NO(r,f),h=DI(r,d,f);mq(f,u,d,h,ia)}}return OWe(u,r,i),r.type==="group"&&TWe(t,u,n,r,i),o>=0?a.replaceAt(u,o):a.add(u),u}function bq(t,e,n){var r=Os(t),i=e.type,a=e.shape,o=e.style;return n.isUniversalTransitionEnabled()||i!=null&&i!==r.customGraphicType||i==="path"&&EWe(a)&&xq(a)!==r.customPathData||i==="image"&&me(o,"image")&&o.image!==r.customImagePath}function wWe(t,e,n,r,i){var a=n.clipPath;if(a===!1)t&&t.getClipPath()&&t.removeClipPath();else if(a){var o=t.getClipPath();o&&bq(o,a,r)&&(o=null),o||(o=AI(a),process.env.NODE_ENV!=="production"&&Pe(kO(o),"Only any type of `path` can be used in `clipPath`, rather than "+o.type+"."),t.setClipPath(o)),EI(null,o,e,a,null,r,i)}}function CWe(t,e,n,r,i,a){if(!t.isGroup){_q(n,null,a),_q(n,Ss,a);var o=a.normal.conOpt,s=a.emphasis.conOpt,l=a.blur.conOpt,u=a.select.conOpt;if(o!=null||s!=null||u!=null||l!=null){var c=t.getTextContent();if(o===!1)c&&t.removeTextContent();else{o=a.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=AI(o),t.setTextContent(c)),EI(null,c,e,o,null,r,i);for(var f=o&&o.style,d=0;d<Al.length;d++){var h=Al[d];if(h!==$l){var g=a[h].conOpt;mq(h,c,g,DI(o,g,h),null)}}f?c.dirty():c.markRedraw()}}}}function _q(t,e,n){var r=e?NO(t,e):t,i=e?DI(t,r,Ss):t.style,a=t.type,o=r?r.textConfig:null,s=t.textContent,l=s?e?NO(s,e):s:null;if(i&&(n.isLegacy||tq(i,a,!!o,!!l))){n.isLegacy=!0;var u=nq(i,a,!e);!o&&u.textConfig&&(o=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var c=l;!c.type&&(c.type="text"),process.env.NODE_ENV!=="production"&&Pe(c.type==="text",'textContent.type must be "text"')}var f=e?n[e]:n.normal;f.cfg=o,f.conOpt=l}function NO(t,e){return e?t?t[e]:null:t}function DI(t,e,n){var r=e&&e.style;return r==null&&n===Ss&&t&&(r=t.styleEmphasis),r}function TWe(t,e,n,r,i){var a=r.children,o=a?a.length:0,s=r.$mergeChildren,l=s==="byName"||r.diffChildrenByName,u=s===!1;if(!(!o&&!l&&!u)){if(l){$We({api:t,oldChildren:e.children()||[],newChildren:a||[],dataIndex:n,seriesModel:i,group:e});return}u&&e.removeAll();for(var c=0;c<o;c++){var f=a[c],d=e.childAt(c);f?(f.ignore==null&&(f.ignore=!1),II(t,d,n,f,i,e)):(process.env.NODE_ENV!=="production"&&Pe(d,"renderItem should not return a group containing elements as null/undefined/{} if they do not exist before."),d.ignore=!0)}for(var h=e.childCount()-1;h>=c;h--){var g=e.childAt(h);PWe(e,g,i)}}}function PWe(t,e,n){e&&DO(e,Os(t).option,n)}function $We(t){new vs(t.oldChildren,t.newChildren,Oq,Oq,t).add(Sq).update(Sq).remove(AWe).execute()}function Oq(t,e){var n=t&&t.name;return n??yWe+e}function Sq(t,e){var n=this.context,r=t!=null?n.newChildren[t]:null,i=e!=null?n.oldChildren[e]:null;II(n.api,i,n.dataIndex,r,n.seriesModel,n.group)}function AWe(t){var e=this.context,n=e.oldChildren[t];n&&DO(n,Os(n).option,e.seriesModel)}function xq(t){return t&&(t.pathData||t.d)}function EWe(t){return t&&(me(t,"pathData")||me(t,"d"))}function MWe(t){t.registerChartView(_We),t.registerSeriesModel(qFe)}var Bc=et(),wq=$e,RI=ve,kI=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(e,n,r,i){var a=n.get("value"),o=n.get("status");if(this._axisModel=e,this._axisPointerModel=n,this._api=r,!(!i&&this._lastValue===a&&this._lastStatus===o)){this._lastValue=a,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,a,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 Me,this.createPointerEl(s,u,e,n),this.createLabelEl(s,u,e,n),r.getZr().add(s);else{var d=ke(Cq,n,f);this.updatePointerEl(s,u,d),this.updateLabelEl(s,u,d,n)}$q(s,n,!0),this._renderHandle(a)}},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,a=i.type==="category",o=n.get("snap");if(!o&&!a)return!1;if(r==="auto"||r==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=aM(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,a){},t.prototype.createPointerEl=function(e,n,r,i){var a=n.pointer;if(a){var o=Bc(e).pointerEl=new rc[a.type](wq(n.pointer));e.add(o)}},t.prototype.createLabelEl=function(e,n,r,i){if(n.label){var a=Bc(e).labelEl=new nt(wq(n.label));e.add(a),Pq(a,i)}},t.prototype.updatePointerEl=function(e,n,r){var i=Bc(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 a=Bc(e).labelEl;a&&(a.setStyle(n.label.style),r(a,{x:n.label.x,y:n.label.y}),Pq(a,i))},t.prototype._renderHandle=function(e){if(!(this._dragging||!this.updateHandleTransform)){var n=this._axisPointerModel,r=this._api.getZr(),i=this._handle,a=n.getModel("handle"),o=n.get("status");if(!a.get("show")||!o||o==="hide"){i&&r.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=$d(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){as(u.event)},onmousedown:RI(this._onHandleDragMove,this,0,0),drift:RI(this._onHandleDragMove,this),ondragend:RI(this._onHandleDragEnd,this)}),r.add(i)),$q(i,n,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");re(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,Fd(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(e,s)}},t.prototype._moveHandleToValue=function(e,n){Cq(this._axisPointerModel,!n&&this._moveAnimation,this._handle,NI(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(NI(r),[e,n],this._axisModel,this._axisPointerModel);this._payloadInfo=i,r.stopAnimation(),r.attr(NI(i)),Bc(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),Sv(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 Cq(t,e,n,r){Tq(Bc(n).lastProp,r)||(Bc(n).lastProp=r,e?ot(n,r,t):(n.stopAnimation(),n.attr(r)))}function Tq(t,e){if(we(t)&&we(e)){var n=!0;return k(e,function(r,i){n=n&&Tq(t[i],r)}),!!n}else return t===e}function Pq(t,e){t[e.get(["label","show"])?"show":"hide"]()}function NI(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function $q(t,e,n){var r=e.get("z"),i=e.get("zlevel");t&&t.traverse(function(a){a.type!=="group"&&(r!=null&&(a.z=r),i!=null&&(a.zlevel=i),a.silent=n)})}function LI(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 Aq(t,e,n,r,i){var a=n.get("value"),o=Eq(a,e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),s=n.getModel("label"),l=ac(s.get("padding")||0),u=s.getFont(),c=Wg(o,u),f=i.position,d=c.width+l[1]+l[3],h=c.height+l[0]+l[2],g=i.align;g==="right"&&(f[0]-=d),g==="center"&&(f[0]-=d/2);var v=i.verticalAlign;v==="bottom"&&(f[1]-=h),v==="middle"&&(f[1]-=h/2),IWe(f,d,h,r);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=e.get(["axisLine","lineStyle","color"])),t.label={x:f[0],y:f[1],style:$t(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function IWe(t,e,n,r){var i=r.getWidth(),a=r.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+n,a)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}function Eq(t,e,n,r,i){t=e.scale.parse(t);var a=e.scale.getLabel({value:t},{precision:i.precision}),o=i.formatter;if(o){var s={value:xE(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};k(r,function(l){var u=n.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),pe(o)?a=o.replace("{value}",a):xe(o)&&(a=o(s))}return a}function VI(t,e,n){var r=zr();return el(r,r,n.rotation),Sa(r,r,n.position),Ea([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function Mq(t,e,n,r,i,a){var o=Er.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=i.get(["label","margin"]),Aq(e,r,i,a,{position:VI(r.axis,t,n),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function BI(t,e,n){return n=n||0,{x1:t[n],y1:t[1-n],x2:e[n],y2:e[1-n]}}function Iq(t,e,n){return n=n||0,{x:t[n],y:t[1-n],width:e[n],height:e[1-n]}}function Dq(t,e,n,r,i,a){return{cx:t,cy:e,r0:n,r,startAngle:i,endAngle:a,clockwise:!0}}var DWe=function(t){U(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(n,r,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),c=Rq(l,s).getOtherAxis(s).getGlobalExtent(),f=s.toGlobalCoord(s.dataToCoord(r,!0));if(u&&u!=="none"){var d=LI(a),h=RWe[u](s,f,c);h.style=d,n.graphicKey=h.type,n.pointer=h}var g=tM(l.model,i);Mq(r,n,g,i,a,o)},e.prototype.getHandleTransform=function(n,r,i){var a=tM(r.axis.grid.model,r,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=VI(r.axis,n,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(n,r,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=Rq(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[n.x,n.y];f[c]+=r[c],f[c]=Math.min(l[1],f[c]),f[c]=Math.max(l[0],f[c]);var d=(u[1]+u[0])/2,h=[d,d];h[c]=f[c];var g=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:n.rotation,cursorPoint:h,tooltipOption:g[c]}},e}(kI);function Rq(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var RWe={line:function(t,e,n){var r=BI([e,n[0]],[e,n[1]],kq(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:Iq([e-r/2,n[0]],[r,i],kq(t))}}};function kq(t){return t.dim==="x"?0:1}var kWe=function(t){U(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}(He),xs=et(),NWe=k;function Nq(t,e,n){if(!Je.node){var r=e.getZr();xs(r).records||(xs(r).records={}),LWe(r,e);var i=xs(r).records[t]||(xs(r).records[t]={});i.handler=n}}function LWe(t,e){if(xs(t).initialized)return;xs(t).initialized=!0,n("click",ke(Lq,"click")),n("mousemove",ke(Lq,"mousemove")),n("globalout",BWe);function n(r,i){t.on(r,function(a){var o=zWe(e);NWe(xs(t).records,function(s){s&&i(s,a,o.dispatchAction)}),VWe(o.pendings,e)})}}function VWe(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 BWe(t,e,n){t.handler("leave",null,n)}function Lq(t,e,n,r){e.handler(t,n,r)}function zWe(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 zI(t,e){if(!Je.node){var n=e.getZr(),r=(xs(n).records||{})[t];r&&(xs(n).records[t]=null)}}var FWe=function(t){U(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 a=r.getComponent("tooltip"),o=n.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";Nq("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},e.prototype.remove=function(n,r){zI("axisPointer",r)},e.prototype.dispose=function(n,r){zI("axisPointer",r)},e.type="axisPointer",e}(At);function Vq(t,e){var n=[],r=t.seriesIndex,i;if(r==null||!(i=e.getSeriesByIndex(r)))return{point:[]};var a=i.getData(),o=zu(a,t);if(o==null||o<0||re(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)n=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,d=u.dim,h=f==="x"||f==="radius"?1:0,g=a.mapDimension(d),v=[];v[h]=a.get(g,o),v[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),n=l.dataToPoint(v)||[]}else n=l.dataToPoint(a.getValues(ie(l.dimensions,function(y){return a.mapDimension(y)}),o))||[];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 Bq=et();function WWe(t,e,n){var r=t.currTrigger,i=[t.x,t.y],a=t,o=t.dispatchAction||ve(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){LO(i)&&(i=Vq({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},e).point);var l=LO(i),u=a.axesInfo,c=s.axesInfo,f=r==="leave"||LO(i),d={},h={},g={list:[],map:{}},v={showPointer:ke(HWe,h),showTooltip:ke(jWe,g)};k(s.coordSysMap,function(y,b){var _=l||y.containPoint(i);k(s.coordSysAxesInfo[b],function(O,S){var x=O.axis,w=XWe(u,O);if(!f&&_&&(!u||w)){var T=w&&w.value;T==null&&!l&&(T=x.pointToData(i)),T!=null&&zq(O,T,v,!1,d)}})});var m={};return k(c,function(y,b){var _=y.linkGroup;_&&!h[b]&&k(_.axesInfo,function(O,S){var x=h[S];if(O!==y&&x){var w=x.value;_.mapper&&(w=y.axis.scale.parse(_.mapper(w,Fq(O),Fq(y)))),m[y.key]=w}})}),k(m,function(y,b){zq(c[b],y,v,!0,d)}),GWe(h,c,d),ZWe(g,i,t,o),UWe(c,o,n),d}}function zq(t,e,n,r,i){var a=t.axis;if(!(a.scale.isBlank()||!a.containData(e))){if(!t.involveSeries){n.showPointer(t,e);return}var o=QWe(e,t),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&ne(i,s[0]),!r&&t.snap&&a.containData(l)&&l!=null&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,o,l)}}function QWe(t,e){var n=e.axis,r=n.dim,i=t,a=[],o=Number.MAX_VALUE,s=-1;return k(e.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(r),f,d;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,t,n);d=h.dataIndices,f=h.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 g=t-f,v=Math.abs(g);v<=o&&((v<o||g>=0&&s<0)&&(o=v,s=g,i=f,a.length=0),k(d,function(m){a.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:a,snapToValue:i}}function HWe(t,e,n,r){t[e.key]={value:n,payloadBatch:r}}function jWe(t,e,n,r){var i=n.payloadBatch,a=e.axis,o=a.model,s=e.axisPointerModel;if(!(!e.triggerTooltip||!i.length)){var l=e.coordSys.model,u=Zv(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:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:r,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function GWe(t,e,n){var r=n.axesInfo=[];k(e,function(i,a){var o=i.axisPointerModel.option,s=t[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&r.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function ZWe(t,e,n,r){if(LO(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 UWe(t,e,n){var r=n.getZr(),i="axisPointerLastHighlights",a=Bq(r)[i]||{},o=Bq(r)[i]={};k(t,function(u,c){var f=u.axisPointerModel.option;f.status==="show"&&u.triggerEmphasis&&k(f.seriesDataIndices,function(d){var h=d.seriesIndex+" | "+d.dataIndex;o[h]=d})});var s=[],l=[];k(a,function(u,c){!o[c]&&l.push(u)}),k(o,function(u,c){!a[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 XWe(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 Fq(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 LO(t){return!t||t[0]==null||isNaN(t[0])||t[1]==null||isNaN(t[1])}function fm(t){Ac.registerAxisPointerClass("CartesianAxisPointer",DWe),t.registerComponentModel(kWe),t.registerComponentView(FWe),t.registerPreprocessor(function(e){if(e){(!e.axisPointer||e.axisPointer.length===0)&&(e.axisPointer={});var n=e.axisPointer.link;n&&!re(n)&&(e.axisPointer.link=[n])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(e,n){e.getComponent("axisPointer").coordSysAxesInfo=o3e(e,n)}),t.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},WWe)}function YWe(t){je(pU),je(fm)}var qWe=function(t){U(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(n,r,i,a,o){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=a.get("type");if(d&&d!=="none"){var h=LI(a),g=JWe[d](s,l,f,c);g.style=h,n.graphicKey=g.type,n.pointer=g}var v=a.get(["label","margin"]),m=KWe(r,i,a,l,v);Aq(n,i,a,o,m)},e}(kI);function KWe(t,e,n,r,i){var a=e.axis,o=a.dataToCoord(t),s=r.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=r.getRadiusAxis().getExtent(),u,c,f;if(a.dim==="radius"){var d=zr();el(d,d,s),Sa(d,d,[r.cx,r.cy]),u=Ea([o,-i],d);var h=e.getModel("axisLabel").get("rotate")||0,g=Er.innerTextLayout(s,h*Math.PI/180,-1);c=g.textAlign,f=g.textVerticalAlign}else{var v=l[1];u=r.coordToPoint([v+i,o]);var m=r.cx,y=r.cy;c=Math.abs(u[0]-m)/v<.3?"center":u[0]>m?"left":"right",f=Math.abs(u[1]-y)/v<.3?"middle":u[1]>y?"top":"bottom"}return{position:u,align:c,verticalAlign:f}}var JWe={line:function(t,e,n,r){return t.dim==="angle"?{type:"Line",shape:BI(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()),a=Math.PI/180;return t.dim==="angle"?{type:"Sector",shape:Dq(e.cx,e.cy,r[0],r[1],(-n-i/2)*a,(-n+i/2)*a)}:{type:"Sector",shape:Dq(e.cx,e.cy,n-i/2,n+i/2,0,Math.PI*2)}}},e7e=function(t){U(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(a){a.getCoordSysModel()===this&&(r=a)},this),r},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(He),FI=function(t){U(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",on).models[0]},e.type="polarAxis",e}(He);Kt(FI,qd);var t7e=function(t){U(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="angleAxis",e}(FI),n7e=function(t){U(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="radiusAxis",e}(FI),WI=function(t){U(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}(ea);WI.prototype.dataToRadius=ea.prototype.dataToCoord,WI.prototype.radiusToData=ea.prototype.coordToData;var r7e=et(),QI=function(t){U(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,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=a[0],l=n.dataToCoord(s+1)-n.dataToCoord(s),u=Math.abs(l),c=Wg(s==null?"":s+"",r.getFont(),"center","top"),f=Math.max(c.height,7),d=f/u;isNaN(d)&&(d=1/0);var h=Math.max(0,Math.floor(d)),g=r7e(n.model),v=g.lastAutoInterval,m=g.lastTickCount;return v!=null&&m!=null&&Math.abs(v-h)<=1&&Math.abs(m-o)<=1&&v>h?h=v:(g.lastTickCount=o,g.lastAutoInterval=h),h},e}(ea);QI.prototype.dataToAngle=ea.prototype.dataToCoord,QI.prototype.angleToData=ea.prototype.coordToData;var Wq=["radius","angle"],i7e=function(){function t(e){this.dimensions=Wq,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new WI,this._angleAxis=new QI,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(),a=i.getExtent(),o=Math.min(a[0],a[1]),s=Math.max(a[0],a[1]);i.inverse?o=s-360:s=o+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<o?1:-1;u<o||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,a=-Math.sin(r)*n+this.cy;return[i,a]},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(),a=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:r[0],r:r[1],startAngle:-i[0]*a,endAngle:-i[1]*a,clockwise:e.inverse,contain:function(o,s){var l=o-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=Qq(n);return i===this?this.dataToPoint(r):null},t.prototype.convertFromPixel=function(e,n,r){var i=Qq(n);return i===this?this.pointToData(r):null},t}();function Qq(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}const a7e=i7e;function o7e(t,e,n){var r=e.get("center"),i=n.getWidth(),a=n.getHeight();t.cx=he(r[0],i),t.cy=he(r[1],a);var o=t.getRadiusAxis(),s=Math.min(i,a)/2,l=e.get("radius");l==null?l=[0,"100%"]:re(l)||(l=[0,l]);var u=[he(l[0],s),he(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function s7e(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();k(q1(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),k(q1(l,"angle"),function(u){r.scale.unionExtentFromData(l,u)})}}),bc(r.scale,r.model),bc(i.scale,i.model),r.type==="category"&&!r.onBand){var a=r.getExtent(),o=360/r.scale.count();r.inverse?a[1]+=o:a[1]-=o,r.setExtent(a[0],a[1])}}function l7e(t){return t.mainType==="angleAxis"}function Hq(t,e){var n;if(t.type=e.get("type"),t.scale=Rv(e),t.onBand=e.get("boundaryGap")&&t.type==="category",t.inverse=e.get("inverse"),l7e(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 u7e={dimensions:Wq,create:function(t,e){var n=[];return t.eachComponent("polar",function(r,i){var a=new a7e(i+"");a.update=s7e;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=r.findAxisModel("radiusAxis"),u=r.findAxisModel("angleAxis");Hq(o,l),Hq(s,u),o7e(a,r,e),n.push(a),r.coordinateSystem=a,a.model=r}),t.eachSeries(function(r){if(r.get("coordinateSystem")==="polar"){var i=r.getReferringComponents("polar",on).models[0];if(process.env.NODE_ENV!=="production"&&!i)throw new Error('Polar "'+tn(r.get("polarIndex"),r.get("polarId"),0)+'" not found');r.coordinateSystem=i.coordinateSystem}}),n}},c7e=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function VO(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 BO(t){var e=t.getRadiusAxis();return e.inverse?0:1}function jq(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 f7e=function(t){U(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,a=i.polar,o=a.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=ie(i.getViewLabels(),function(c){c=$e(c);var f=i.scale,d=f.type==="ordinal"?f.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=i.dataToCoord(d),c});jq(u),jq(s),k(c7e,function(c){n.get([c,"show"])&&(!i.scale.isBlank()||c==="axisLine")&&d7e[c](this.group,n,a,s,l,o,u)},this)}},e.type="angleAxis",e}(Ac),d7e={axisLine:function(t,e,n,r,i,a){var o=e.getModel(["axisLine","lineStyle"]),s=n.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),c=BO(n),f=c?0:1,d,h=Math.abs(u[1]-u[0])===360?"Circle":"Arc";a[f]===0?d=new rc[h]({shape:{cx:n.cx,cy:n.cy,r:a[c],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):d=new iv({shape:{cx:n.cx,cy:n.cy,r:a[c],r0:a[f]},style:o.getLineStyle(),z2:1,silent:!0}),d.style.fill=null,t.add(d)},axisTick:function(t,e,n,r,i,a){var o=e.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[BO(n)],u=ie(r,function(c){return new Cn({shape:VO(n,[l,l+s],c.coord)})});t.add(gi(u,{style:Te(o.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,r,i,a){if(i.length){for(var o=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[BO(n)],c=[],f=0;f<i.length;f++)for(var d=0;d<i[f].length;d++)c.push(new Cn({shape:VO(n,[u,u+l],i[f][d].coord)}));t.add(gi(c,{style:Te(s.getModel("lineStyle").getLineStyle(),Te(o.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}))}))}},axisLabel:function(t,e,n,r,i,a,o){var s=e.getCategories(!0),l=e.getModel("axisLabel"),u=l.get("margin"),c=e.get("triggerEvent");k(o,function(f,d){var h=l,g=f.tickValue,v=a[BO(n)],m=n.coordToPoint([v+u,f.coord]),y=n.cx,b=n.cy,_=Math.abs(m[0]-y)/v<.3?"center":m[0]>y?"left":"right",O=Math.abs(m[1]-b)/v<.3?"middle":m[1]>b?"top":"bottom";if(s&&s[g]){var S=s[g];we(S)&&S.textStyle&&(h=new wt(S.textStyle,l,l.ecModel))}var x=new nt({silent:Er.isLabelSilent(e),style:$t(h,{x:m[0],y:m[1],fill:h.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:f.formattedLabel,align:_,verticalAlign:O})});if(t.add(x),c){var w=Er.makeAxisEventDataBase(e);w.targetType="axisLabel",w.value=f.rawLabel,De(x).eventData=w}},this)},splitLine:function(t,e,n,r,i,a){var o=e.getModel("splitLine"),s=o.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 Cn({shape:VO(n,a,r[f].coord)}))}for(var f=0;f<c.length;f++)t.add(gi(c[f],{style:Te({stroke:l[f%l.length]},s.getLineStyle()),silent:!0,z:e.get("z")}))},minorSplitLine:function(t,e,n,r,i,a){if(i.length){for(var o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=[],u=0;u<i.length;u++)for(var c=0;c<i[u].length;c++)l.push(new Cn({shape:VO(n,a,i[u][c].coord)}));t.add(gi(l,{style:s.getLineStyle(),silent:!0,z:e.get("z")}))}},splitArea:function(t,e,n,r,i,a){if(r.length){var o=e.getModel("splitArea"),s=o.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,h=Math.min(a[0],a[1]),g=Math.max(a[0],a[1]),v=e.get("clockwise"),m=1,y=r.length;m<=y;m++){var b=m===y?r[0].coord:r[m].coord,_=u++%l.length;c[_]=c[_]||[],c[_].push(new xr({shape:{cx:n.cx,cy:n.cy,r0:h,r:g,startAngle:d,endAngle:-b*f,clockwise:v},silent:!0})),d=-b*f}for(var m=0;m<c.length;m++)t.add(gi(c[m],{style:Te({fill:l[m%l.length]},s.getAreaStyle()),silent:!0}))}}},h7e=["axisLine","axisTickLabel","axisName"],p7e=["splitLine","splitArea","minorSplitLine"],g7e=function(t){U(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,a=this._axisGroup=new Me;this.group.add(a);var o=n.axis,s=o.polar,l=s.getAngleAxis(),u=o.getTicksCoords(),c=o.getMinorTicksCoords(),f=l.getExtent()[0],d=o.getExtent(),h=m7e(s,n,f),g=new Er(n,h);k(h7e,g.add,g),a.add(g.getGroup()),lv(i,a,n),k(p7e,function(v){n.get([v,"show"])&&!o.scale.isBlank()&&v7e[v](this.group,n,s,f,d,u,c)},this)}},e.type="radiusAxis",e}(Ac),v7e={splitLine:function(t,e,n,r,i,a){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0,c=n.getAngleAxis(),f=Math.PI/180,d=c.getExtent(),h=Math.abs(d[1]-d[0])===360?"Circle":"Arc";l=l instanceof Array?l:[l];for(var g=[],v=0;v<a.length;v++){var m=u++%l.length;g[m]=g[m]||[],g[m].push(new rc[h]({shape:{cx:n.cx,cy:n.cy,r:Math.max(a[v].coord,0),startAngle:-d[0]*f,endAngle:-d[1]*f,clockwise:c.inverse}}))}for(var v=0;v<g.length;v++)t.add(gi(g[v],{style:Te({stroke:l[v%l.length],fill:null},s.getLineStyle()),silent:!0}))},minorSplitLine:function(t,e,n,r,i,a,o){if(o.length){for(var s=e.getModel("minorSplitLine"),l=s.getModel("lineStyle"),u=[],c=0;c<o.length;c++)for(var f=0;f<o[c].length;f++)u.push(new hs({shape:{cx:n.cx,cy:n.cy,r:o[c][f].coord}}));t.add(gi(u,{style:Te({fill:null},l.getLineStyle()),silent:!0}))}},splitArea:function(t,e,n,r,i,a){if(a.length){var o=e.getModel("splitArea"),s=o.getModel("areaStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],f=a[0].coord,d=1;d<a.length;d++){var h=u++%l.length;c[h]=c[h]||[],c[h].push(new xr({shape:{cx:n.cx,cy:n.cy,r0:f,r:a[d].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),f=a[d].coord}for(var d=0;d<c.length;d++)t.add(gi(c[d],{style:Te({fill:l[d%l.length]},s.getAreaStyle()),silent:!0}))}}};function m7e(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 Gq(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function Zq(t,e){return e.dim+t.model.componentIndex}function y7e(t,e,n){var r={},i=b7e(vt(e.getSeriesByType(t),function(a){return!e.isSeriesFiltered(a)&&a.coordinateSystem&&a.coordinateSystem.type==="polar"}));e.eachSeriesByType(t,function(a){if(a.coordinateSystem.type==="polar"){var o=a.getData(),s=a.coordinateSystem,l=s.getBaseAxis(),u=Zq(s,l),c=Gq(a),f=i[u][c],d=f.offset,h=f.width,g=s.getOtherAxis(l),v=a.coordinateSystem.cx,m=a.coordinateSystem.cy,y=a.get("barMinHeight")||0,b=a.get("barMinAngle")||0;r[c]=r[c]||[];for(var _=o.mapDimension(g.dim),O=o.mapDimension(l.dim),S=ms(o,_),x=l.dim!=="radius"||!a.get("roundCap",!0),w=g.model,T=w.get("startValue"),P=g.dataToCoord(T||0),C=0,$=o.count();C<$;C++){var A=o.get(_,C),E=o.get(O,C),D=A>=0?"p":"n",M=P;S&&(r[c][E]||(r[c][E]={p:P,n:P}),M=r[c][E][D]);var R=void 0,N=void 0,V=void 0,L=void 0;if(g.dim==="radius"){var z=g.dataToCoord(A)-P,B=l.dataToCoord(E);Math.abs(z)<y&&(z=(z<0?-1:1)*y),R=M,N=M+z,V=B-d,L=V-h,S&&(r[c][E][D]=N)}else{var F=g.dataToCoord(A,x)-P,j=l.dataToCoord(E);Math.abs(F)<b&&(F=(F<0?-1:1)*b),R=j+d,N=R+h,V=M,L=M+F,S&&(r[c][E][D]=L)}o.setItemLayout(C,{cx:v,cy:m,r0:R,r:N,startAngle:-V*Math.PI/180,endAngle:-L*Math.PI/180,clockwise:V>=L})}}})}function b7e(t){var e={};k(t,function(r,i){var a=r.getData(),o=r.coordinateSystem,s=o.getBaseAxis(),l=Zq(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/a.count(),f=e[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},d=f.stacks;e[l]=f;var h=Gq(r);d[h]||f.autoWidthCount++,d[h]=d[h]||{width:0,maxWidth:0};var g=he(r.get("barWidth"),c),v=he(r.get("barMaxWidth"),c),m=r.get("barGap"),y=r.get("barCategoryGap");g&&!d[h].width&&(g=Math.min(f.remainedWidth,g),d[h].width=g,f.remainedWidth-=g),v&&(d[h].maxWidth=v),m!=null&&(f.gap=m),y!=null&&(f.categoryGap=y)});var n={};return k(e,function(r,i){n[i]={};var a=r.stacks,o=r.bandWidth,s=he(r.categoryGap,o),l=he(r.gap,1),u=r.remainedWidth,c=r.autoWidthCount,f=(u-s)/(c+(c-1)*l);f=Math.max(f,0),k(a,function(v,m){var y=v.maxWidth;y&&y<f&&(y=Math.min(y,u),v.width&&(y=Math.min(y,v.width)),u-=y,v.width=y,c--)}),f=(u-s)/(c+(c-1)*l),f=Math.max(f,0);var d=0,h;k(a,function(v,m){v.width||(v.width=f),h=v,d+=v.width*(1+l)}),h&&(d-=h.width*l);var g=-d/2;k(a,function(v,m){n[i][m]=n[i][m]||{offset:g,width:v.width},g+=v.width*(1+l)})}),n}var _7e={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},O7e={splitNumber:5},S7e=function(t){U(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="polar",e}(At);function x7e(t){je(fm),Ac.registerAxisPointerClass("PolarAxisPointer",qWe),t.registerCoordinateSystem("polar",u7e),t.registerComponentModel(e7e),t.registerComponentView(S7e),th(t,"angle",t7e,_7e),th(t,"radius",n7e,O7e),t.registerComponentView(f7e),t.registerComponentView(g7e),t.registerLayout(ke(y7e,"bar"))}function HI(t,e){e=e||{};var n=t.coordinateSystem,r=t.axis,i={},a=r.position,o=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=[o==="vertical"?u.vertical[a]:l[0],o==="horizontal"?u.horizontal[a]:l[3]];var c={horizontal:0,vertical:1};i.rotation=Math.PI/2*c[o];var f={top:-1,bottom:1,right:1,left:-1};i.labelDirection=i.tickDirection=i.nameDirection=f[a],t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),tn(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var d=e.rotate;return d==null&&(d=t.get(["axisLabel","rotate"])),i.labelRotation=a==="top"?-d:d,i.z2=1,i}var w7e=["axisLine","axisTickLabel","axisName"],C7e=["splitArea","splitLine"],T7e=function(t){U(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,a){var o=this.group;o.removeAll();var s=this._axisGroup;this._axisGroup=new Me;var l=HI(n),u=new Er(n,l);k(w7e,u.add,u),o.add(this._axisGroup),o.add(u.getGroup()),k(C7e,function(c){n.get([c,"show"])&&P7e[c](this,this.group,this._axisGroup,n)},this),lv(s,this._axisGroup,n),t.prototype.render.call(this,n,r,i,a)},e.prototype.remove=function(){cU(this)},e.type="singleAxis",e}(Ac),P7e={splitLine:function(t,e,n,r){var i=r.axis;if(!i.scale.isBlank()){var a=r.getModel("splitLine"),o=a.getModel("lineStyle"),s=o.get("color");s=s instanceof Array?s:[s];for(var l=o.get("width"),u=r.coordinateSystem.getRect(),c=i.isHorizontal(),f=[],d=0,h=i.getTicksCoords({tickModel:a}),g=[],v=[],m=0;m<h.length;++m){var y=i.toGlobalCoord(h[m].coord);c?(g[0]=y,g[1]=u.y,v[0]=y,v[1]=u.y+u.height):(g[0]=u.x,g[1]=y,v[0]=u.x+u.width,v[1]=y);var b=new Cn({shape:{x1:g[0],y1:g[1],x2:v[0],y2:v[1]},silent:!0});Pd(b.shape,l);var _=d++%s.length;f[_]=f[_]||[],f[_].push(b)}for(var O=o.getLineStyle(["color"]),m=0;m<f.length;++m)e.add(gi(f[m],{style:Te({stroke:s[m%s.length]},O),silent:!0}))}},splitArea:function(t,e,n,r){uU(t,n,r,r)}},zO=function(t){U(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}(He);Kt(zO,qd.prototype);var $7e=function(t){U(e,t);function e(n,r,i,a,o){var s=t.call(this,n,r,i)||this;return s.type=a||"value",s.position=o||"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}(ea),Uq=["single"],A7e=function(){function t(e,n,r){this.type="single",this.dimension="single",this.dimensions=Uq,this.axisPointerEnabled=!0,this.model=e,this._init(e,n,r)}return t.prototype._init=function(e,n,r){var i=this.dimension,a=new $7e(i,Rv(e),[0,0],e.get("type"),e.get("position")),o=a.type==="category";a.onBand=o&&e.get("boundaryGap"),a.inverse=e.get("inverse"),a.orient=e.get("orient"),e.axis=a,a.model=e,a.coordinateSystem=this,this._axis=a},t.prototype.update=function(e,n){e.eachSeries(function(r){if(r.coordinateSystem===this){var i=r.getData();k(i.mapDimensionsAll(this.dimension),function(a){this._axis.scale.unionExtentFromData(i,a)},this),bc(this._axis.scale,this._axis.model)}},this)},t.prototype.resize=function(e,n){this._rect=sn({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],a=n.inverse?1:0;n.setExtent(i[a],i[1-a]),this._updateAxisTransform(n,r?e.x:e.y)},t.prototype._updateAxisTransform=function(e,n){var r=e.getExtent(),i=r[0]+r[1],a=e.isHorizontal();e.toGlobalCoord=a?function(o){return o+n}:function(o){return i-o+n},e.toLocalCoord=a?function(o){return o-n}:function(o){return i-o+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=[],a=n.orient==="horizontal"?0:1;return e instanceof Array&&(e=e[0]),i[a]=n.toGlobalCoord(n.dataToCoord(+e)),i[1-a]=a===0?r.y+r.height/2:r.x+r.width/2,i},t.prototype.convertToPixel=function(e,n,r){var i=Xq(n);return i===this?this.dataToPoint(r):null},t.prototype.convertFromPixel=function(e,n,r){var i=Xq(n);return i===this?this.pointToData(r):null},t}();function Xq(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}function E7e(t,e){var n=[];return t.eachComponent("singleAxis",function(r,i){var a=new A7e(r,t,e);a.name="single_"+i,a.resize(r,e),r.coordinateSystem=a,n.push(a)}),t.eachSeries(function(r){if(r.get("coordinateSystem")==="singleAxis"){var i=r.getReferringComponents("singleAxis",on).models[0];r.coordinateSystem=i&&i.coordinateSystem}}),n}var M7e={create:E7e,dimensions:Uq},Yq=["x","y"],I7e=["width","height"],D7e=function(t){U(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.makeElOption=function(n,r,i,a,o){var s=i.axis,l=s.coordinateSystem,u=jI(l,1-FO(s)),c=l.dataToPoint(r)[0],f=a.get("type");if(f&&f!=="none"){var d=LI(a),h=R7e[f](s,c,u);h.style=d,n.graphicKey=h.type,n.pointer=h}var g=HI(i);Mq(r,n,g,i,a,o)},e.prototype.getHandleTransform=function(n,r,i){var a=HI(r,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=VI(r.axis,n,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(n,r,i,a){var o=i.axis,s=o.coordinateSystem,l=FO(o),u=jI(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=jI(s,1-l),d=(f[1]+f[0])/2,h=[d,d];return h[l]=c[l],{x:c[0],y:c[1],rotation:n.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(kI),R7e={line:function(t,e,n){var r=BI([e,n[0]],[e,n[1]],FO(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:Iq([e-r/2,n[0]],[r,i],FO(t))}}};function FO(t){return t.isHorizontal()?0:1}function jI(t,e){var n=t.getRect();return[n[Yq[e]],n[Yq[e]]+n[I7e[e]]]}var k7e=function(t){U(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="single",e}(At);function N7e(t){je(fm),Ac.registerAxisPointerClass("SingleAxisPointer",D7e),t.registerComponentView(k7e),t.registerComponentView(T7e),t.registerComponentModel(zO),th(t,"single",zO,zO.defaultOption),t.registerCoordinateSystem("single",M7e)}var L7e=function(t){U(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 a=kd(n);t.prototype.init.apply(this,arguments),qq(n,a)},e.prototype.mergeOption=function(n){t.prototype.mergeOption.apply(this,arguments),qq(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}(He);function qq(t,e){var n=t.cellSize,r;re(n)?r=n:r=t.cellSize=[n,n],r.length===1&&(r[1]=r[0]);var i=ie([0,1],function(a){return VRe(e,a)&&(r[a]="auto"),r[a]!=null&&r[a]!=="auto"});vl(t,e,{type:"box",ignoreSize:i})}var V7e=function(t){U(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 a=this.group;a.removeAll();var o=n.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=r.getLocaleModel();this._renderDayRect(n,s,a),this._renderLines(n,s,l,a),this._renderYearText(n,s,l,a),this._renderMonthText(n,u,l,a),this._renderWeekText(n,u,s,l,a)},e.prototype._renderDayRect=function(n,r,i){for(var a=n.coordinateSystem,o=n.getModel("itemStyle").getItemStyle(),s=a.getCellWidth(),l=a.getCellHeight(),u=r.start.time;u<=r.end.time;u=a.getNextNDay(u,1).time){var c=a.dataToRect([u],!1).tl,f=new tt({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});i.add(f)}},e.prototype._renderLines=function(n,r,i,a){var o=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++){g(f.formatedDate),d===0&&(f=s.getDateInfo(r.start.y+"-"+r.start.m));var h=f.date;h.setMonth(h.getMonth()+1),f=s.getDateInfo(h)}g(s.getNextNDay(r.end.time,1).formatedDate);function g(v){o._firstDayOfMonth.push(s.getDateInfo(v)),o._firstDayPoints.push(s.dataToRect([v],!1).tl);var m=o._getLinePointsOfOneWeek(n,v,i);o._tlpoints.push(m[0]),o._blpoints.push(m[m.length-1]),u&&o._drawSplitline(m,l,a)}u&&this._drawSplitline(o._getEdgesPoints(o._tlpoints,c,i),l,a),u&&this._drawSplitline(o._getEdgesPoints(o._blpoints,c,i),l,a)},e.prototype._getEdgesPoints=function(n,r,i){var a=[n[0].slice(),n[n.length-1].slice()],o=i==="horizontal"?0:1;return a[0][o]=a[0][o]-r/2,a[1][o]=a[1][o]+r/2,a},e.prototype._drawSplitline=function(n,r,i){var a=new Cr({z2:20,shape:{points:n},style:r});i.add(a)},e.prototype._getLinePointsOfOneWeek=function(n,r,i){for(var a=n.coordinateSystem,o=a.getDateInfo(r),s=[],l=0;l<7;l++){var u=a.getNextNDay(o.time,l),c=a.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 pe(n)&&n?RRe(n,r):xe(n)?n(r):r.nameMap},e.prototype._yearTextPositionControl=function(n,r,i,a,o){var s=r[0],l=r[1],u=["center","bottom"];a==="bottom"?(l+=o,u=["center","top"]):a==="left"?s-=o:a==="right"?(s+=o,u=["center","top"]):l-=o;var c=0;return(a==="left"||a==="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,a){var o=n.getModel("yearLabel");if(o.get("show")){var s=o.get("margin"),l=o.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,h={top:[c,u[d][1]],bottom:[c,u[1-d][1]],left:[u[1-d][0],f],right:[u[d][0],f]},g=r.start.y;+r.end.y>+r.start.y&&(g=g+"-"+r.end.y);var v=o.get("formatter"),m={start:r.start.y,end:r.end.y,nameMap:g},y=this._formatterLabel(v,m),b=new nt({z2:30,style:$t(o,{text:y})});b.attr(this._yearTextPositionControl(b,h[l],i,l,s)),a.add(b)}},e.prototype._monthTextPositionControl=function(n,r,i,a,o){var s="left",l="top",u=n[0],c=n[1];return i==="horizontal"?(c=c+o,r&&(s="center"),a==="start"&&(l="bottom")):(u=u+o,r&&(l="middle"),a==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderMonthText=function(n,r,i,a){var o=n.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),f=[this._tlpoints,this._blpoints];(!s||pe(s))&&(s&&(r=aA(s)||r),s=r.get(["time","monthAbbr"])||[]);var d=u==="start"?0:1,h=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var g=c==="center",v=0;v<f[d].length-1;v++){var m=f[d][v].slice(),y=this._firstDayOfMonth[v];if(g){var b=this._firstDayPoints[v];m[h]=(b[h]+f[0][v+1][h])/2}var _=o.get("formatter"),O=s[+y.m-1],S={yyyy:y.y,yy:(y.y+"").slice(2),MM:y.m,M:+y.m,nameMap:O},x=this._formatterLabel(_,S),w=new nt({z2:30,style:ne($t(o,{text:x}),this._monthTextPositionControl(m,g,i,u,l))});a.add(w)}}},e.prototype._weekTextPositionControl=function(n,r,i,a,o){var s="center",l="middle",u=n[0],c=n[1],f=i==="start";return r==="horizontal"?(u=u+a+(f?1:-1)*o[0]/2,s=f?"right":"left"):(c=c+a+(f?1:-1)*o[1]/2,l=f?"bottom":"top"),{x:u,y:c,align:s,verticalAlign:l}},e.prototype._renderWeekText=function(n,r,i,a,o){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||pe(c)){c&&(r=aA(c)||r);var h=r.get(["time","dayOfWeekShort"]);c=h||ie(r.get(["time","dayOfWeekAbbr"]),function(S){return S[0]})}var g=l.getNextNDay(i.end.time,7-i.lweek).time,v=[l.getCellWidth(),l.getCellHeight()];f=he(f,Math.min(v[1],v[0])),u==="start"&&(g=l.getNextNDay(i.start.time,-(7+i.fweek)).time,f=-f);for(var m=0;m<7;m++){var y=l.getNextNDay(g,m),b=l.dataToRect([y.time],!1).center,_=m;_=Math.abs((m+d)%7);var O=new nt({z2:30,style:ne($t(s,{text:c[_]}),this._weekTextPositionControl(b,a,u,f,v))});o.add(O)}}},e.type="calendar",e}(At),GI=864e5,B7e=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=hi(e);var n=e.getFullYear(),r=e.getMonth()+1,i=r<10?"0"+r:""+r,a=e.getDate(),o=a<10?"0"+a:""+a,s=e.getDay();return s=Math.abs((s+7-this.getFirstDayOfWeek())%7),{y:n+"",m:i,d:o,day:s,time:e.getTime(),formatedDate:n+"-"+i+"-"+o,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"],a=this._model.getCellSize().slice(),o=this._model.getBoxLayoutParams(),s=this._orient==="horizontal"?[r,7]:[7,r];k([0,1],function(f){c(a,f)&&(o[i[f]]=a[f]*s[f])});var l={width:n.getWidth(),height:n.getHeight()},u=this._rect=sn(o,l);k([0,1],function(f){c(a,f)||(a[f]=u[i[f]]/s[f])});function c(f,d){return f[d]!=null&&f[d]!=="auto"}this._sw=a[0],this._sh=a[1]},t.prototype.dataToPoint=function(e,n){re(e)&&(e=e[0]),n==null&&(n=!0);var r=this.getDateInfo(e),i=this._rangeInfo,a=r.formatedDate;if(n&&!(r.time>=i.start.time&&r.time<i.end.time+GI))return[NaN,NaN];var o=r.day,s=this._getRangeInfo([i.start.time,a]).nthWeek;return this._orient==="vertical"?[this._rect.x+o*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+o*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=Kq(n);return i===this?i.dataToPoint(r):null},t.prototype.convertFromPixel=function(e,n,r){var i=Kq(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(re(e)&&e.length===1&&(e=e[0]),re(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),a=i.date;a.setMonth(a.getMonth()+1);var o=this.getNextNDay(a,-1);n=[i.formatedDate,o.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(r)&&(n=[r,r])}if(!n)return process.env.NODE_ENV!=="production"&&Li("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/GI)-Math.floor(n[0].time/GI)+1,a=new Date(n[0].time),o=a.getDate(),s=n[1].date.getDate();a.setDate(o+i-1);var l=a.getDate();if(l!==s)for(var u=a.getTime()-n[1].time>0?1:-1;(l=a.getDate())!==s&&(a.getTime()-n[1].time)*u>0;)i-=u,a.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 a=(e-1)*7-i.fweek+n,o=new Date(i.start.time);return o.setDate(+i.start.d+a),this.getDateInfo(o)},t.create=function(e,n){var r=[];return e.eachComponent("calendar",function(i){var a=new t(i);r.push(a),i.coordinateSystem=a}),e.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=r[i.get("calendarIndex")||0])}),r},t.dimensions=["time","value"],t}();function Kq(t){var e=t.calendarModel,n=t.seriesModel,r=e?e.coordinateSystem:n?n.coordinateSystem:null;return r}function z7e(t){t.registerComponentModel(L7e),t.registerComponentView(V7e),t.registerCoordinateSystem("calendar",B7e)}function F7e(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 Jq(t,e){var n;return k(e,function(r){t[r]!=null&&t[r]!=="auto"&&(n=!0)}),n}function W7e(t,e,n){var r=ne({},n),i=t[e],a=n.$action||"merge";if(a==="merge")if(i){if(process.env.NODE_ENV!=="production"){var o=n.type;Pe(!o||i.type===o,'Please set $action: "replace" to change `type`')}Le(i,r,!0),vl(i,r,{ignoreSize:!0}),$H(n,i),WO(n,i),WO(n,i,"shape"),WO(n,i,"style"),WO(n,i,"extra"),n.clipPath=i.clipPath}else t[e]=r;else a==="replace"?t[e]=r:a==="remove"&&i&&(t[e]=null)}var eK=["transition","enterFrom","leaveTo"],Q7e=eK.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function WO(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),!(!t||!e))for(var r=n?eK:Q7e,i=0;i<r.length;i++){var a=r[i];t[a]==null&&e[a]!=null&&(t[a]=e[a])}}function H7e(t,e){if(t&&(t.hv=e.hv=[Jq(e,["left","right"]),Jq(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 j7e=function(t){U(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,a=(r?i:n).elements,o=i.elements=r?[]:i.elements,s=[];this._flatten(a,s,null);var l=C7(o,s,"normalMerge"),u=this._elOptionsToUpdate=[];k(l,function(c,f){var d=c.newOption;process.env.NODE_ENV!=="production"&&Pe(we(d)||c.existing,"Empty graphic option definition"),d&&(u.push(d),F7e(c,d),W7e(o,f,d),H7e(o[f],d))},this),i.elements=vt(o,function(c){return c&&delete c.$action,c!=null})},e.prototype._flatten=function(n,r,i){k(n,function(a){if(a){i&&(a.parentOption=i),r.push(a);var o=a.children;o&&o.length&&this._flatten(o,r,a),delete a.children}},this)},e.prototype.useElOptionsToUpdate=function(){var n=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,n},e.type="graphic",e.defaultOption={elements:[]},e}(He),tK={path:null,compoundPath:null,group:Me,image:Ln,text:nt},aa=et(),G7e=function(t){U(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,a=this.group,o=n.get("z"),s=n.get("zlevel");k(r,function(l){var u=gn(l.id,null),c=u!=null?i.get(u):null,f=gn(l.parentId,null),d=f!=null?i.get(f):a,h=l.type,g=l.style;h==="text"&&g&&l.hv&&l.hv[1]&&(g.textVerticalAlign=g.textBaseline=g.verticalAlign=g.align=null);var v=l.textContent,m=l.textConfig;if(g&&tq(g,h,!!m,!!v)){var y=nq(g,h,!0);!m&&y.textConfig&&(m=l.textConfig=y.textConfig),!v&&y.textContent&&(v=y.textContent)}var b=Z7e(l);process.env.NODE_ENV!=="production"&&c&&Pe(d===c.parent,"Changing parent is not supported.");var _=l.$action||"merge",O=_==="merge",S=_==="replace";if(O){var x=!c,w=c;x?w=nK(u,d,l.type,i):(w&&(aa(w).isNew=!1),gq(w)),w&&(IO(w,b,n,{isInit:x}),rK(w,l,o,s))}else if(S){QO(c,l,i,n);var T=nK(u,d,l.type,i);T&&(IO(T,b,n,{isInit:!0}),rK(T,l,o,s))}else _==="remove"&&(cq(c,l),QO(c,l,i,n));var P=i.get(u);if(P&&v)if(O){var C=P.getTextContent();C?C.attr(v):P.setTextContent(new nt(v))}else S&&P.setTextContent(new nt(v));if(P){var $=l.clipPath;if($){var A=$.type,E=void 0,x=!1;if(O){var D=P.getClipPath();x=!D||aa(D).type!==A,E=x?ZI(A):D}else S&&(x=!0,E=ZI(A));P.setClipPath(E),IO(E,$,n,{isInit:x}),RO(E,$.keyframeAnimation,n)}var M=aa(P);P.setTextConfig(m),M.option=l,U7e(P,n,l),Ad({el:P,componentModel:n,itemName:P.name,itemTooltipOption:l.tooltip}),RO(P,l.keyframeAnimation,n)}})}},e.prototype._relocate=function(n,r){for(var i=n.option.elements,a=this.group,o=this._elMap,s=r.getWidth(),l=r.getHeight(),u=["x","y"],c=0;c<i.length;c++){var f=i[c],d=gn(f.id,null),h=d!=null?o.get(d):null;if(!(!h||!h.isGroup)){var g=h.parent,v=g===a,m=aa(h),y=aa(g);m.width=he(m.option.width,v?s:y.width)||0,m.height=he(m.option.height,v?l:y.height)||0}}for(var c=i.length-1;c>=0;c--){var f=i[c],d=gn(f.id,null),h=d!=null?o.get(d):null;if(h){var g=h.parent,y=aa(g),b=g===a?{width:s,height:l}:{width:y.width,height:y.height},_={},O=h1(h,f,b,null,{hv:f.hv,boundingMode:f.bounding},_);if(!aa(h).isNew&&O){for(var S=f.transition,x={},w=0;w<u.length;w++){var T=u[w],P=_[T];S&&(Vc(S)||Fe(S,T)>=0)?x[T]=P:h[T]=P}ot(h,x,n,0)}else h.attr(_)}}},e.prototype._clear=function(){var n=this,r=this._elMap;r.each(function(i){QO(i,aa(i).option,r,n._lastGraphicModel)}),this._elMap=be()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(At);function ZI(t){process.env.NODE_ENV!=="production"&&Pe(t,"graphic type MUST be set");var e=me(tK,t)?tK[t]:J_(t);process.env.NODE_ENV!=="production"&&Pe(e,"graphic type "+t+" can not be found");var n=new e({});return aa(n).type=t,n}function nK(t,e,n,r){var i=ZI(n);return e.add(i),r.set(t,i),aa(i).id=t,aa(i).isNew=!0,i}function QO(t,e,n,r){var i=t&&t.parent;i&&(t.type==="group"&&t.traverse(function(a){QO(a,e,n,r)}),DO(t,e,r),n.removeKey(aa(t).id))}function rK(t,e,n,r){t.isGroup||k([["cursor",ji.prototype.cursor],["zlevel",r||0],["z",n||0],["z2",0]],function(i){var a=i[0];me(e,a)?t[a]=Re(e[a],i[1]):t[a]==null&&(t[a]=i[1])}),k(Ue(e),function(i){if(i.indexOf("on")===0){var a=e[i];t[i]=xe(a)?a:null}}),me(e,"draggable")&&(t.draggable=e.draggable),e.name!=null&&(t.name=e.name),e.id!=null&&(t.id=e.id)}function Z7e(t){return t=ne({},t),k(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(PH),function(e){delete t[e]}),t}function U7e(t,e,n){var r=De(t).eventData;!t.silent&&!t.ignore&&!r&&(r=De(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),r&&(r.info=n.info)}function X7e(t){t.registerComponentModel(j7e),t.registerComponentView(G7e),t.registerPreprocessor(function(e){var n=e.graphic;re(n)?!n[0]||!n[0].elements?e.graphic=[{elements:n}]:e.graphic=[e.graphic[0]]:n&&!n.elements&&(e.graphic=[{elements:[n]}])})}var iK=["x","y","radius","angle","single"],Y7e=["cartesian2d","polar","singleAxis"];function q7e(t){var e=t.get("coordinateSystem");return Fe(Y7e,e)>=0}function El(t){return process.env.NODE_ENV!=="production"&&Pe(t),t+"Axis"}function K7e(t,e){var n=be(),r=[],i=be();t.eachComponent({mainType:"dataZoom",query:e},function(c){i.get(c.uid)||s(c)});var a;do a=!1,t.eachComponent("dataZoom",o);while(a);function o(c){!i.get(c.uid)&&l(c)&&(s(c),a=!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,h){var g=n.get(d);g&&g[h]&&(f=!0)}),f}function u(c){c.eachTargetAxis(function(f,d){(n.get(f)||n.set(f,[]))[d]=!0})}return r}function aK(t){var e=t.ecModel,n={infoList:[],infoMap:be()};return t.eachTargetAxis(function(r,i){var a=e.getComponent(El(r),i);if(a){var o=a.getCoordSysModel();if(o){var s=o.uid,l=n.infoMap.get(s);l||(l={model:o,axisModels:[]},n.infoList.push(l),n.infoMap.set(s,l)),l.axisModels.push(a)}}}),n}var UI=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}(),dm=function(t){U(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 a=oK(n);this.settledOption=a,this.mergeDefaultAndTheme(n,i),this._doInit(a)},e.prototype.mergeOption=function(n){var r=oK(n);Le(this.option,n,!0),Le(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;k([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(r[a[0]]=i[a[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(a){a.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(n){var r=!1;return k(iK,function(i){var a=this.getReferringComponents(El(i),OIe);if(a.specified){r=!0;var o=new UI;k(a.models,function(s){o.add(s.componentIndex)}),n.set(i,o)}},this),r},e.prototype._fillAutoTargetAxisByOrient=function(n,r){var i=this.ecModel,a=!0;if(a){var o=r==="vertical"?"y":"x",s=i.findComponents({mainType:o+"Axis"});l(s,o)}if(a){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 UI;if(d.add(f.componentIndex),n.set(c,d),a=!1,c==="x"||c==="y"){var h=f.getReferringComponents("grid",on).models[0];h&&k(u,function(g){f.componentIndex!==g.componentIndex&&h===g.getReferringComponents("grid",on).models[0]&&d.add(g.componentIndex)})}}}a&&k(iK,function(u){if(a){var c=i.findComponents({mainType:El(u),filter:function(d){return d.get("type",!0)==="category"}});if(c[0]){var f=new UI;f.add(c[0].componentIndex),n.set(u,f),a=!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");k([["start","startValue"],["end","endValue"]],function(a,o){var s=n[a[0]]!=null,l=n[a[1]]!=null;s&&!l?r[o]="percent":!s&&l?r[o]="value":i?r[o]=i[o]:s&&(r[o]="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(El(r),i))},this),n},e.prototype.eachTargetAxis=function(n,r){this._targetAxisInfoMap.each(function(i,a){k(i.indexList,function(o){n.call(r,a,o)})})},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"&&Pe(n&&r!=null);var i=this._targetAxisInfoMap.get(n);if(i&&i.indexMap[r])return this.ecModel.getComponent(El(n),r)},e.prototype.setRawRange=function(n){var r=this.option,i=this.settledOption;k([["start","startValue"],["end","endValue"]],function(a){(n[a[0]]!=null||n[a[1]]!=null)&&(r[a[0]]=i[a[0]]=n[a[0]],r[a[1]]=i[a[1]]=n[a[1]])},this),this._updateRangeUse(n)},e.prototype.setCalculatedRange=function(n){var r=this.option;k(["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(),a=0;a<i.length;a++)for(var o=i[a],s=this._targetAxisInfoMap.get(o),l=0;l<s.indexList.length;l++){var u=this.getAxisProxy(o,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"&&Pe(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}(He);function oK(t){var e={};return k(["start","end","startValue","endValue","throttle"],function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var J7e=function(t){U(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}(dm),XI=function(t){U(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,a){this.dataZoomModel=n,this.ecModel=r,this.api=i},e.type="dataZoom",e}(At),eQe=function(t){U(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}(XI),fh=k,sK=di,tQe=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(q7e(n)){var r=El(this._dimName),i=n.getReferringComponents(r,on).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 $e(this._minMaxSpan)},t.prototype.calculateDataWindow=function(e){var n=this._dataExtent,r=this.getAxisModel(),i=r.axis.scale,a=this._dataZoomModel.getRangePropMode(),o=[0,100],s=[],l=[],u;fh(["start","end"],function(d,h){var g=e[d],v=e[d+"Value"];a[h]==="percent"?(g==null&&(g=o[h]),v=i.parse(mt(g,o,n))):(u=!0,v=v==null?n[h]:i.parse(v),g=mt(v,n,o)),l[h]=v==null||isNaN(v)?n[h]:v,s[h]=g==null||isNaN(g)?o[h]:g}),sK(l),sK(s);var c=this._minMaxSpan;u?f(l,s,n,o,!1):f(s,l,o,n,!0);function f(d,h,g,v,m){var y=m?"Span":"ValueSpan";kc(0,d,g,"all",c["min"+y],c["max"+y]);for(var b=0;b<2;b++)h[b]=mt(d[b],g,v,!0),m&&(h[b]=i.parse(h[b]))}return{valueWindow:l,percentWindow:s}},t.prototype.reset=function(e){if(e===this._dataZoomModel){var n=this.getTargetSeriesModels();this._dataExtent=nQe(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(),a=e.get("filterMode"),o=this._valueWindow;if(a==="none")return;fh(i,function(l){var u=l.getData(),c=u.mapDimensionsAll(r);if(c.length){if(a==="weakFilter"){var f=u.getStore(),d=ie(c,function(h){return u.getDimensionIndex(h)},u);u.filterSelf(function(h){for(var g,v,m,y=0;y<c.length;y++){var b=f.get(d[y],h),_=!isNaN(b),O=b<o[0],S=b>o[1];if(_&&!O&&!S)return!0;_&&(m=!0),O&&(g=!0),S&&(v=!0)}return m&&g&&v})}else fh(c,function(h){if(a==="empty")l.setData(u=u.map(h,function(v){return s(v)?v:NaN}));else{var g={};g[h]=o,u.selectRange(g)}});fh(c,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},t.prototype._updateMinMaxSpan=function(){var e=this._minMaxSpan={},n=this._dataZoomModel,r=this._dataExtent;fh(["min","max"],function(i){var a=n.get(i+"Span"),o=n.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=mt(r[0]+o,r,[0,100],!0):a!=null&&(o=mt(a,[0,100],r,!0)-r[0]),e[i+"Span"]=a,e[i+"ValueSpan"]=o},this)},t.prototype._setAxisModel=function(){var e=this.getAxisModel(),n=this._percentWindow,r=this._valueWindow;if(n){var i=i2(r,[0,500]);i=Math.min(i,20);var a=e.axis.scale.rawExtentInfo;n[0]!==0&&a.setDeterminedMinMax("min",+r[0].toFixed(i)),n[1]!==100&&a.setDeterminedMinMax("max",+r[1].toFixed(i)),a.freeze()}},t}();function nQe(t,e,n){var r=[1/0,-1/0];fh(n,function(o){_4e(r,o.getData(),e)});var i=t.getAxisModel(),a=dG(i.axis.scale,i,r).calculate();return[a.min,a.max]}var rQe={getTargetSeries:function(t){function e(i){t.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=t.getComponent(El(o),s);i(o,s,l,a)})})}e(function(i,a,o,s){o.__dzAxisProxy=null});var n=[];e(function(i,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new tQe(i,a,s,t),n.push(o.__dzAxisProxy))});var r=be();return k(n,function(i){k(i.getTargetSeriesModels(),function(a){r.set(a.uid,a)})}),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(),a=r.getDataValueWindow();n.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}};function iQe(t){t.registerAction("dataZoom",function(e,n){var r=K7e(n,e);k(r,function(i){i.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})}var lK=!1;function YI(t){lK||(lK=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,rQe),iQe(t),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function aQe(t){t.registerComponentModel(J7e),t.registerComponentView(eQe),YI(t)}var oa=function(){function t(){}return t}(),uK={};function dh(t,e){uK[t]=e}function cK(t){return uK[t]}var oQe=function(t){U(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;k(this.option.feature,function(r,i){var a=cK(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(n)),Le(r,a.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}(He);function sQe(t,e,n){var r=e.getBoxLayoutParams(),i=e.get("padding"),a={width:n.getWidth(),height:n.getHeight()},o=sn(r,a,i);lc(e.get("orient"),t,e.get("itemGap"),o.width,o.height),h1(t,r,a,i)}function fK(t,e){var n=ac(e.get("padding")),r=e.getItemStyle(["color","opacity"]);return r.fill=e.get("backgroundColor"),t=new tt({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 lQe=function(t){U(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(n,r,i,a){var o=this.group;if(o.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=[];k(u,function(g,v){f.push(v)}),new vs(this._featureNames||[],f).add(d).update(d).remove(ke(d,null)).execute(),this._featureNames=f;function d(g,v){var m=f[g],y=f[v],b=u[m],_=new wt(b,n,n.ecModel),O;if(a&&a.newTitle!=null&&a.featureName===m&&(b.title=a.newTitle),m&&!y){if(uQe(m))O={onclick:_.option.onclick,featureName:m};else{var S=cK(m);if(!S)return;O=new S}c[m]=O}else if(O=c[y],!O)return;O.uid=Md("toolbox-feature"),O.model=_,O.ecModel=r,O.api=i;var x=O instanceof oa;if(!m&&y){x&&O.dispose&&O.dispose(r,i);return}if(!_.get("show")||x&&O.unusable){x&&O.remove&&O.remove(r,i);return}h(_,O,m),_.setIconStatus=function(w,T){var P=this.option,C=this.iconPaths;P.iconStatus=P.iconStatus||{},P.iconStatus[w]=T,C[w]&&(T==="emphasis"?fs:ds)(C[w])},O instanceof oa&&O.render&&O.render(_,r,i,a)}function h(g,v,m){var y=g.getModel("iconStyle"),b=g.getModel(["emphasis","iconStyle"]),_=v instanceof oa&&v.getIcons?v.getIcons():g.get("icon"),O=g.get("title")||{},S,x;pe(_)?(S={},S[m]=_):S=_,pe(O)?(x={},x[m]=O):x=O;var w=g.iconPaths={};k(S,function(T,P){var C=$d(T,{},{x:-s/2,y:-s/2,width:s,height:s});C.setStyle(y.getItemStyle());var $=C.ensureState("emphasis");$.style=b.getItemStyle();var A=new nt({style:{text:x[P],align:b.get("textAlign"),borderRadius:b.get("textBorderRadius"),padding:b.get("textPadding"),fill:null,font:J2({fontStyle:b.get("textFontStyle"),fontFamily:b.get("textFontFamily"),fontSize:b.get("textFontSize"),fontWeight:b.get("textFontWeight")},r)},ignore:!0});C.setTextContent(A),Ad({el:C,componentModel:n,itemName:P,formatterParamsExtra:{title:x[P]}}),C.__title=x[P],C.on("mouseover",function(){var E=b.getItemStyle(),D=l?n.get("right")==null&&n.get("left")!=="right"?"right":"left":n.get("bottom")==null&&n.get("top")!=="bottom"?"bottom":"top";A.setStyle({fill:b.get("textFill")||E.fill||E.stroke||"#000",backgroundColor:b.get("textBackgroundColor")}),C.setTextConfig({position:b.get("textPosition")||D}),A.ignore=!n.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){g.get(["iconStatus",P])!=="emphasis"&&i.leaveEmphasis(this),A.hide()}),(g.get(["iconStatus",P])==="emphasis"?fs:ds)(C),o.add(C),C.on("click",ve(v.onclick,v,r,i,P)),w[P]=C})}sQe(o,n,i),o.add(fK(o.getBoundingRect(),n)),l||o.eachChild(function(g){var v=g.__title,m=g.ensureState("emphasis"),y=m.textConfig||(m.textConfig={}),b=g.getTextContent(),_=b&&b.ensureState("emphasis");if(_&&!xe(_)&&v){var O=_.style||(_.style={}),S=Wg(v,nt.makeFont(O)),x=g.x+o.x,w=g.y+o.y+s,T=!1;w+S.height>i.getHeight()&&(y.position="top",T=!0);var P=T?-5-S.height:s+10;x+S.width/2>i.getWidth()?(y.position=["100%",P],O.align="right"):x-S.width/2<0&&(y.position=[0,P],O.align="left")}})},e.prototype.updateView=function(n,r,i,a){k(this._features,function(o){o instanceof oa&&o.updateView&&o.updateView(o.model,r,i,a)})},e.prototype.remove=function(n,r){k(this._features,function(i){i instanceof oa&&i.remove&&i.remove(n,r)}),this.group.removeAll()},e.prototype.dispose=function(n,r){k(this._features,function(i){i instanceof oa&&i.dispose&&i.dispose(n,r)})},e.type="toolbox",e}(At);function uQe(t){return t.indexOf("my")===0}var cQe=function(t){U(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onclick=function(n,r){var i=this.model,a=i.get("name")||n.get("title.0.text")||"echarts",o=r.getZr().painter.getType()==="svg",s=o?"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=Je.browser;if(typeof MouseEvent=="function"&&(u.newEdge||!u.ie&&!u.edge)){var c=document.createElement("a");c.download=a+"."+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||o){var d=l.split(","),h=d[0].indexOf("base64")>-1,g=o?decodeURIComponent(d[1]):d[1];h&&(g=window.atob(g));var v=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=g.length,y=new Uint8Array(m);m--;)y[m]=g.charCodeAt(m);var b=new Blob([y]);window.navigator.msSaveOrOpenBlob(b,v)}else{var _=document.createElement("iframe");document.body.appendChild(_);var O=_.contentWindow,S=O.document;S.open("image/svg+xml","replace"),S.write(g),S.close(),O.focus(),S.execCommand("SaveAs",!0,v),document.body.removeChild(_)}}else{var x=i.get("lang"),w='<body style="margin:0;"><img src="'+l+'" style="max-width:100%;" title="'+(x&&x[0]||"")+'" /></body>',T=window.open();T.document.write(w),T.document.title=a}},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}(oa),dK="__ec_magicType_stack__",fQe=[["line","bar"],["stack"]],dQe=function(t){U(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 k(n.get("type"),function(a){r[a]&&(i[a]=r[a])}),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 a=this.model,o=a.get(["seriesIndex",i]);if(hK[i]){var s={series:[]},l=function(f){var d=f.subType,h=f.id,g=hK[i](d,h,f,a);g&&(Te(g,f.option),s.series.push(g));var v=f.coordinateSystem;if(v&&v.type==="cartesian2d"&&(i==="line"||i==="bar")){var m=v.getAxesByScale("ordinal")[0];if(m){var y=m.dim,b=y+"Axis",_=f.getReferringComponents(b,on).models[0],O=_.componentIndex;s[b]=s[b]||[];for(var S=0;S<=O;S++)s[b][O]=s[b][O]||{};s[b][O].boundaryGap=i==="bar"}}};k(fQe,function(f){Fe(f,i)>=0&&k(f,function(d){a.setIconStatus(d,"normal")})}),a.setIconStatus(i,"emphasis"),n.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=i;i==="stack"&&(u=Le({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",i])!=="emphasis"&&(c="tiled")),r.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},e}(oa),hK={line:function(t,e,n,r){if(t==="bar")return Le({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 Le({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")===dK;if(t==="line"||t==="bar")return r.setIconStatus("stack",i?"normal":"emphasis"),Le({id:e,stack:i?"":dK},r.get(["option","stack"])||{},!0)}};Ia({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)});var HO=new Array(60).join("-"),hh=" ";function hQe(t){var e={},n=[],r=[];return t.eachRawSeries(function(i){var a=i.coordinateSystem;if(a&&(a.type==="cartesian2d"||a.type==="polar")){var o=a.getBaseAxis();if(o.type==="category"){var s=o.dim+"_"+o.index;e[s]||(e[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},r.push({axisDim:o.dim,axisIndex:o.index})),e[s].series.push(i)}else n.push(i)}else n.push(i)}),{seriesGroupByCategoryAxis:e,other:n,meta:r}}function pQe(t){var e=[];return k(t,function(n,r){var i=n.categoryAxis,a=n.valueAxis,o=a.dim,s=[" "].concat(ie(n.series,function(h){return h.name})),l=[i.model.getCategories()];k(n.series,function(h){var g=h.getRawData();l.push(h.getRawData().mapArray(g.mapDimension(o),function(v){return v}))});for(var u=[s.join(hh)],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(hh))}e.push(u.join(`
  318. `))}),e.join(`
  319. `+HO+`
  320. `)}function gQe(t){return ie(t,function(e){var n=e.getRawData(),r=[e.name],i=[];return n.each(n.dimensions,function(){for(var a=arguments.length,o=arguments[a-1],s=n.getName(o),l=0;l<a-1;l++)i[l]=arguments[l];r.push((s?s+hh:"")+i.join(hh))}),r.join(`
  321. `)}).join(`
  322. `+HO+`
  323. `)}function vQe(t){var e=hQe(t);return{value:vt([pQe(e.seriesGroupByCategoryAxis),gQe(e.other)],function(n){return!!n.replace(/[\n\t\s]/g,"")}).join(`
  324. `+HO+`
  325. `),meta:e.meta}}function jO(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function mQe(t){var e=t.slice(0,t.indexOf(`
  326. `));if(e.indexOf(hh)>=0)return!0}var qI=new RegExp("["+hh+"]+","g");function yQe(t){for(var e=t.split(/\n+/g),n=jO(e.shift()).split(qI),r=[],i=ie(n,function(l){return{name:l,data:[]}}),a=0;a<e.length;a++){var o=jO(e[a]).split(qI);r.push(o.shift());for(var s=0;s<o.length;s++)i[s]&&(i[s].data[a]=o[s])}return{series:i,categories:r}}function bQe(t){for(var e=t.split(/\n+/g),n=jO(e.shift()),r=[],i=0;i<e.length;i++){var a=jO(e[i]);if(a){var o=a.split(qI),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),r[i]={name:s,value:[]},l=r[i].value):l=r[i]=[];for(var c=0;c<o.length;c++)l.push(+o[c]);l.length===1&&(u?r[i].value=l[0]:r[i]=l[0])}}return{name:n,data:r}}function _Qe(t,e){var n=t.split(new RegExp(`
  327. *`+HO+`
  328. *`,"g")),r={series:[]};return k(n,function(i,a){if(mQe(i)){var o=yQe(i),s=e[a],l=s.axisDim+"Axis";s&&(r[l]=r[l]||[],r[l][s.axisIndex]={data:o.categories},r.series=r.series.concat(o.series))}else{var o=bQe(i);r.series.push(o)}}),r}var OQe=function(t){U(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(),a=this.model;this._dom&&i.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=a.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=a.get("lang")||[];s.innerHTML=l[0]||a.get("title"),s.style.cssText="margin:10px 20px",s.style.color=a.get("textColor");var u=document.createElement("div"),c=document.createElement("textarea");u.style.cssText="overflow:auto";var f=a.get("optionToContent"),d=a.get("contentToOption"),h=vQe(n);if(xe(f)){var g=f(r.getOption());pe(g)?u.innerHTML=g:Xs(g)&&u.appendChild(g)}else{c.readOnly=a.get("readOnly");var v=c.style;v.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",v.color=a.get("textColor"),v.borderColor=a.get("textareaBorderColor"),v.backgroundColor=a.get("textareaColor"),c.value=h.value,u.appendChild(c)}var m=h.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",_=document.createElement("div"),O=document.createElement("div");b+=";background-color:"+a.get("buttonColor"),b+=";color:"+a.get("buttonTextColor");var S=this;function x(){i.removeChild(o),S._dom=null}O$(_,"click",x),O$(O,"click",function(){if(d==null&&f!=null||d!=null&&f==null){process.env.NODE_ENV!=="production"&&Wt("It seems you have just provided one of `contentToOption` and `optionToContent` functions but missed the other one. Data change is ignored."),x();return}var w;try{xe(d)?w=d(u,r.getOption()):w=_Qe(c.value,m)}catch(T){throw x(),new Error("Data view format error "+T)}w&&r.dispatchAction({type:"changeDataView",newOption:w}),x()}),_.innerHTML=l[1],O.innerHTML=l[2],O.style.cssText=_.style.cssText=b,!a.get("readOnly")&&y.appendChild(O),y.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=i.clientHeight-80+"px",i.appendChild(o),this._dom=o},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}(oa);function SQe(t,e){return ie(t,function(n,r){var i=e&&e[r];if(we(i)&&!re(i)){var a=we(n)&&!re(n);a||(n={value:n});var o=i.name!=null&&n.name==null;return n=Te(n,i),o&&delete n.name,n}else return n})}Ia({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(t,e){var n=[];k(t.newOption.series,function(r){var i=e.getSeriesByName(r.name)[0];if(!i)n.push(ne({type:"scatter"},r));else{var a=i.get("data");n.push({name:r.name,data:SQe(r.data,a)})}}),e.mergeOption(Te({series:n},t.newOption))});var pK=k,gK=et();function xQe(t,e){var n=KI(t);pK(e,function(r,i){for(var a=n.length-1;a>=0;a--){var o=n[a];if(o[i])break}if(a<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 wQe(t){var e=KI(t),n=e[e.length-1];e.length>1&&e.pop();var r={};return pK(n,function(i,a){for(var o=e.length-1;o>=0;o--)if(i=e[o][a],i){r[a]=i;break}}),r}function CQe(t){gK(t).snapshots=null}function TQe(t){return KI(t).length}function KI(t){var e=gK(t);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var PQe=function(t){U(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.onclick=function(n,r){CQe(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}(oa);Ia({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")});var $Qe=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],JI=function(){function t(e,n,r){var i=this;this._targetInfoList=[];var a=vK(n,e);k(AQe,function(o,s){(!r||!r.include||Fe(r.include,s)>=0)&&o(a,i._targetInfoList)})}return t.prototype.setOutputRanges=function(e,n){return this.matchOutputRanges(e,n,function(r,i,a){if((r.coordRanges||(r.coordRanges=[])).push(i),!r.coordRange){r.coordRange=i;var o=tD[r.brushType](0,a,i);r.__rangeOffset={offset:_K[r.brushType](o.values,r.range,[1,1]),xyMinMax:o.xyMinMax}}}),e},t.prototype.matchOutputRanges=function(e,n,r){k(e,function(i){var a=this.findTargetInfo(i,n);a&&a!==!0&&k(a.coordSyses,function(o){var s=tD[i.brushType](1,o,i.range,!0);r(i,s.values,o,n)})},this)},t.prototype.setInputRanges=function(e,n){k(e,function(r){var i=this.findTargetInfo(r,n);if(process.env.NODE_ENV!=="production"&&(Pe(!i||i===!0||r.coordRange,"coordRange must be specified when coord index specified."),Pe(!i||i!==!0||r.range,"range must be specified in global brush.")),r.range=r.range||[],i&&i!==!0){r.panelId=i.panelId;var a=tD[r.brushType](0,i.coordSys,r.coordRange),o=r.__rangeOffset;r.range=o?_K[r.brushType](a.values,o.offset,EQe(a.xyMinMax,o.xyMinMax)):a.values}},this)},t.prototype.makePanelOpts=function(e,n){return ie(this._targetInfoList,function(r){var i=r.getPanelRect();return{panelId:r.panelId,defaultBrushType:n?n(r):null,clipPath:pY(i),isTargetByCursor:vY(i,e,r.coordSysModel),getLinearBrushOtherExtent:gY(i)}})},t.prototype.controlSeries=function(e,n,r){var i=this.findTargetInfo(e,r);return i===!0||i&&Fe(i.coordSyses,n.coordinateSystem)>=0},t.prototype.findTargetInfo=function(e,n){for(var r=this._targetInfoList,i=vK(n,e),a=0;a<r.length;a++){var o=r[a],s=e.panelId;if(s){if(o.panelId===s)return o}else for(var l=0;l<mK.length;l++)if(mK[l](i,o))return o}return!0},t}();function eD(t){return t[0]>t[1]&&t.reverse(),t}function vK(t,e){return Zg(t,e,{includeMainTypes:$Qe})}var AQe={grid:function(t,e){var n=t.xAxisModels,r=t.yAxisModels,i=t.gridModels,a=be(),o={},s={};!n&&!r&&!i||(k(n,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),k(r,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),k(i,function(l){a.set(l.id,l),o[l.id]=!0,s[l.id]=!0}),a.each(function(l){var u=l.coordinateSystem,c=[];k(u.getCartesians(),function(f,d){(Fe(n,f.getAxis("x").model)>=0||Fe(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:yK.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(t,e){k(t.geoModels,function(n){var r=n.coordinateSystem;e.push({panelId:"geo--"+n.id,geoModel:n,coordSysModel:n,coordSys:r,coordSyses:[r],getPanelRect:yK.geo})})}},mK=[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}],yK={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(hl(t)),e}},tD={lineX:ke(bK,0),lineY:ke(bK,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),a=t?e.pointToData([n[0][1],n[1][1]],r):e.dataToPoint([n[0][1],n[1][1]],r),o=[eD([i[0],a[0]]),eD([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(t,e,n,r){var i=[[1/0,-1/0],[1/0,-1/0]],a=ie(n,function(o){var s=t?e.pointToData(o,r):e.dataToPoint(o,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:a,xyMinMax:i}}};function bK(t,e,n,r){process.env.NODE_ENV!=="production"&&Pe(n.type==="cartesian2d","lineX/lineY brush is available only in cartesian2d.");var i=n.getAxis(["x","y"][t]),a=eD(ie([0,1],function(s){return e?i.coordToData(i.toLocalCoord(r[s]),!0):i.toGlobalCoord(i.dataToCoord(r[s]))})),o=[];return o[t]=a,o[1-t]=[NaN,NaN],{values:a,xyMinMax:o}}var _K={lineX:ke(OK,0),lineY:ke(OK,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 ie(t,function(r,i){return[r[0]-n[0]*e[i][0],r[1]-n[1]*e[i][1]]})}};function OK(t,e,n,r){return[e[0]-r[t]*n[0],e[1]-r[t]*n[1]]}function EQe(t,e){var n=SK(t),r=SK(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 SK(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var nD=k,MQe=vIe("toolbox-dataZoom_"),IQe=function(t){U(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(n,r,i,a){this._brushController||(this._brushController=new tI(i.getZr()),this._brushController.on("brush",ve(this._onBrush,this)).mount()),kQe(n,r,this,a,i),RQe(n,r)},e.prototype.onclick=function(n,r,i){DQe[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={},a=this.ecModel;this._brushController.updateCovers([]);var o=new JI(rD(this.model),a,{include:["grid"]});o.matchOutputRanges(r,a,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)}}),xQe(a,i),this._dispatchZoomAction(i);function s(u,c,f){var d=c.getAxis(u),h=d.model,g=l(u,h,a),v=g.findRepresentativeAxisProxy(h).getMinMaxSpan();(v.minValueSpan!=null||v.maxValueSpan!=null)&&(f=kc(0,f.slice(),d.scale.getExtent(),0,v.minValueSpan,v.maxValueSpan)),g&&(i[g.id]={dataZoomId:g.id,startValue:f[0],endValue:f[1]})}function l(u,c,f){var d;return f.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var g=h.getAxisModel(u,c.componentIndex);g&&(d=h)}),d}},e.prototype._dispatchZoomAction=function(n){var r=[];nD(n,function(i,a){r.push($e(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}(oa),DQe={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(wQe(this.ecModel))}};function rD(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 RQe(t,e){t.setIconStatus("back",TQe(e)>1?"emphasis":"normal")}function kQe(t,e,n,r,i){var a=n._isZoomActive;r&&r.type==="takeGlobalCursor"&&(a=r.key==="dataZoomSelect"?r.dataZoomSelectActive:!1),n._isZoomActive=a,t.setIconStatus("zoom",a?"emphasis":"normal");var o=new JI(rD(t),e,{include:["grid"]}),s=o.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});n._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()}:!1)}HRe("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=[],a=rD(r),o=Zg(t,a);nD(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),nD(o.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:MQe+u+f};d[c]=f,i.push(d)}return i});function NQe(t){t.registerComponentModel(oQe),t.registerComponentView(lQe),dh("saveAsImage",cQe),dh("magicType",dQe),dh("dataView",OQe),dh("dataZoom",IQe),dh("restore",PQe),je(aQe)}var LQe=function(t){U(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}(He);function xK(t){var e=t.get("confine");return e!=null?!!e:t.get("renderMode")==="richText"}function wK(t){if(Je.domSupported){for(var e=document.documentElement.style,n=0,r=t.length;n<r;n++)if(t[n]in e)return t[n]}}var CK=wK(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),VQe=wK(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function TK(t,e){if(!t)return e;e=fA(e,!0);var n=t.indexOf(e);return t=n===-1?e:"-"+t.slice(0,n)+"-"+e,t.toLowerCase()}function BQe(t,e){var n=t.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(t);return n?n[e]:null}var zQe=TK(VQe,"transition"),iD=TK(CK,"transform"),FQe="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(Je.transform3dSupported?"will-change:transform;":"");function WQe(t){return t=t==="left"?"right":t==="right"?"left":t==="top"?"bottom":"top",t}function QQe(t,e,n){if(!pe(n)||n==="inside")return"";var r=t.get("backgroundColor"),i=t.get("borderWidth");e=oc(e);var a=WQe(n),o=Math.max(Math.round(i)*1.5,6),s="",l=iD+":",u;Fe(["left","right"],a)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=a==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=a==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+i,d=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),h=Math.round(((d-Math.SQRT2*i)/2+Math.SQRT2*i-(d-f)/2)*100)/100;s+=";"+a+":-"+h+"px";var g=e+" solid "+i+"px;",v=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+g,"border-right:"+g,"background-color:"+r+";"];return'<div style="'+v.join("")+'"></div>'}function HQe(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+=Je.transformSupported?","+iD+r:",left"+r+",top"+r),zQe+":"+i}function PK(t,e,n){var r=t.toFixed(0)+"px",i=e.toFixed(0)+"px";if(!Je.transformSupported)return n?"top:"+i+";left:"+r+";":[["top",i],["left",r]];var a=Je.transform3dSupported,o="translate"+(a?"3d":"")+"("+r+","+i+(a?",0":"")+")";return n?"top:0;left:0;"+iD+":"+o+";":[["top",0],["left",0],[CK,o]]}function jQe(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"),a=t.get("textShadowBlur")||0,o=t.get("textShadowOffsetX")||0,s=t.get("textShadowOffsetY")||0;return i&&a&&e.push("text-shadow:"+o+"px "+s+"px "+a+"px "+i),k(["decoration","align"],function(l){var u=t.get(l);u&&e.push("text-"+l+":"+u)}),e.join(";")}function GQe(t,e,n){var r=[],i=t.get("transitionDuration"),a=t.get("backgroundColor"),o=t.get("shadowBlur"),s=t.get("shadowColor"),l=t.get("shadowOffsetX"),u=t.get("shadowOffsetY"),c=t.getModel("textStyle"),f=$j(t,"html"),d=l+"px "+u+"px "+o+"px "+s;return r.push("box-shadow:"+d),e&&i&&r.push(HQe(i,n)),a&&r.push("background-color:"+a),k(["width","color","radius"],function(h){var g="border-"+h,v=fA(g),m=t.get(v);m!=null&&r.push(g+":"+m+(h==="color"?"":"px"))}),r.push(jQe(c)),f!=null&&r.push("padding:"+ac(f).join("px ")+"px"),r.join(";")+";"}function $K(t,e,n,r,i){var a=e&&e.painter;if(n){var o=a&&a.getViewportRoot();o&&BEe(t,o,n,r,i)}else{t[0]=r,t[1]=i;var s=a&&a.getViewportRootOffset();s&&(t[0]+=s.offsetLeft,t[1]+=s.offsetTop)}t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var ZQe=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,Je.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var i=this._zr=e.getZr(),a=n.appendTo,o=a&&(pe(a)?document.querySelector(a):Xs(a)?a:xe(a)&&a(e.getDom()));$K(this._styleCoord,i,o,e.getWidth()/2,e.getHeight()/2),(o||e.getDom()).appendChild(r),this._api=e,this._container=o;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();Fi(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=BQe(n,"position"),i=n.style;i.position!=="absolute"&&r!=="absolute"&&(i.position="relative")}var a=e.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,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,a=this._styleCoord;r.innerHTML?i.cssText=FQe+GQe(e,!this._firstShow,this._longHide)+PK(a[0],a[1],!0)+("border-color:"+oc(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,a){var o=this.el;if(e==null){o.innerHTML="";return}var s="";if(pe(a)&&r.get("trigger")==="item"&&!xK(r)&&(s=QQe(r,i,a)),pe(e))o.innerHTML=e+s;else if(e){o.innerHTML="",re(e)||(e=[e]);for(var l=0;l<e.length;l++)Xs(e[l])&&e[l].parentNode!==o&&o.appendChild(e[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.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($K(r,this._zr,this._container,e,n),r[0]!=null&&r[1]!=null){var i=this.el.style,a=PK(r[0],r[1]);k(a,function(o){i[o[0]]=o[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",Je.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(ve(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}(),UQe=function(){function t(e){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=e.getZr(),EK(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,a){var o=this;we(e)&&dt(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 nt({style:{rich:n.richTextStyles,text:e,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:r.get(["textStyle","color"]),padding:$j(r,"richText"),verticalAlign:"top",align:"left"},z:r.get("z")}),k(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=r.get(u)}),k(["textShadowBlur","textShadowOffsetX","textShadowOffsetY"],function(u){o.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=AK(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;EK(i,this._zr,e,n),e=i[0],n=i[1];var a=r.style,o=Ml(a.borderWidth||0),s=AK(a);r.x=e+o+s.left,r.y=n+o+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(ve(this.hide,this),e)):this.hide())},t.prototype.isShow=function(){return this._show},t.prototype.dispose=function(){this._zr.remove(this.el)},t}();function Ml(t){return Math.max(0,t)}function AK(t){var e=Ml(t.shadowBlur||0),n=Ml(t.shadowOffsetX||0),r=Ml(t.shadowOffsetY||0);return{left:Ml(e-n),right:Ml(e+n),top:Ml(e-r),bottom:Ml(e+r)}}function EK(t,e,n,r){t[0]=n,t[1]=r,t[2]=t[0]/e.getWidth(),t[3]=t[1]/e.getHeight()}var XQe=new tt({shape:{x:-1,y:-1,width:2,height:2}}),YQe=function(t){U(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(!(Je.node||!r.getDom())){var i=n.getComponent("tooltip"),a=this._renderMode=xIe(i.get("renderMode"));this._tooltipContent=a==="richText"?new UQe(r):new ZQe(r,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},e.prototype.render=function(n,r,i){if(!(Je.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=n,this._ecModel=r,this._api=i;var a=this._tooltipContent;a.update(n),a.setEnterable(n.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&n.get("transitionDuration")?Fd(this,"_updatePosition",50,"fixRate"):Sv(this,"_updatePosition")}},e.prototype._initGlobalListener=function(){var n=this._tooltipModel,r=n.get("triggerOn");Nq("itemTooltip",this._api,ve(function(i,a,o){r!=="none"&&(r.indexOf(i)>=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},e.prototype._keepShow=function(){var n=this._tooltipModel,r=this._ecModel,i=this._api,a=n.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(n,r,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(n,r,i,a){if(!(a.from===this.uid||Je.node||!i.getDom())){var o=MK(a,i);this._ticket="";var s=a.dataByCoordSys,l=eHe(a,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:a.position,positionDefault:"bottom"},o)}else if(a.tooltip&&a.x!=null&&a.y!=null){var c=XQe;c.x=a.x,c.y=a.y,c.update(),De(c).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:c},o)}else if(s)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:s,tooltipOption:a.tooltipOption},o);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(n,r,i,a))return;var f=Vq(a,r),d=f.point[0],h=f.point[1];d!=null&&h!=null&&this._tryShow({offsetX:d,offsetY:h,target:f.el,position:a.position,positionDefault:"bottom"},o)}else a.x!=null&&a.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:i.getZr().findHover(a.x,a.y).target},o))}},e.prototype.manuallyHideTip=function(n,r,i,a){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(MK(a,i))},e.prototype._manuallyAxisShowTip=function(n,r,i,a){var o=a.seriesIndex,s=a.dataIndex,l=r.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=r.getSeriesByIndex(o);if(u){var c=u.getData(),f=hm([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},e.prototype._tryShow=function(n,r){var i=n.target,a=this._tooltipModel;if(a){this._lastX=n.offsetX,this._lastY=n.offsetY;var o=n.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,n);else if(i){var s=De(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;hc(i,function(c){if(De(c).dataIndex!=null)return l=c,!0;if(De(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=ve(r,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(r,i):r()},e.prototype._showAxisTooltip=function(n,r){var i=this._ecModel,a=this._tooltipModel,o=[r.offsetX,r.offsetY],s=hm([r.tooltipOption],a),l=this._renderMode,u=[],c=Pn("section",{blocks:[],noHeader:!0}),f=[],d=new LA;k(n,function(b){k(b.dataByAxis,function(_){var O=i.getComponent(_.axisDim+"Axis",_.axisIndex),S=_.value;if(!(!O||S==null)){var x=Eq(S,O.axis,i,_.seriesDataIndices,_.valueLabelOpt),w=Pn("section",{header:x,noHeader:!Bi(x),sortBlocks:!0,blocks:[]});c.blocks.push(w),k(_.seriesDataIndices,function(T){var P=i.getSeriesByIndex(T.seriesIndex),C=T.dataIndexInside,$=P.getDataParams(C);if(!($.dataIndex<0)){$.axisDim=_.axisDim,$.axisIndex=_.axisIndex,$.axisType=_.axisType,$.axisId=_.axisId,$.axisValue=xE(O.axis,{value:S}),$.axisValueLabel=x,$.marker=d.makeTooltipMarker("item",oc($.color),l);var A=lj(P.formatTooltip(C,!0,null)),E=A.frag;if(E){var D=hm([P],a).get("valueFormatter");w.blocks.push(D?ne({valueFormatter:D},E):E)}A.text&&f.push(A.text),u.push($)}})}})}),c.blocks.reverse(),f.reverse();var h=r.position,g=s.get("order"),v=Cj(c,d,l,g,i.get("useUTC"),s.get("textStyle"));v&&f.unshift(v);var m=l==="richText"?`
  329. `:"<br/>",y=f.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(n,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],h,null,d)})},e.prototype._showSeriesItemTooltip=function(n,r,i){var a=this._ecModel,o=De(r),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,d=u.getData(f),h=this._renderMode,g=n.positionDefault,v=hm([d.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,g?{position:g}:null),m=v.get("trigger");if(!(m!=null&&m!=="item")){var y=u.getDataParams(c,f),b=new LA;y.marker=b.makeTooltipMarker("item",oc(y.color),h);var _=lj(u.formatTooltip(c,!1,f)),O=v.get("order"),S=v.get("valueFormatter"),x=_.frag,w=x?Cj(S?ne({valueFormatter:S},x):x,b,h,O,a.get("useUTC"),v.get("textStyle")):_.text,T="item_"+u.name+"_"+c;this._showOrMove(v,function(){this._showTooltipContent(v,w,y,T,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 a=this._renderMode==="html",o=De(r),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(pe(l)){var c=l;l={content:c,formatter:c},u=!0}u&&a&&l.content&&(l=$e(l),l.content=yr(l.content));var f=[l],d=this._ecModel.getComponent(o.componentMainType,o.componentIndex);d&&f.push(d),f.push({formatter:l.content});var h=n.positionDefault,g=hm(f,this._tooltipModel,h?{position:h}:null),v=g.get("content"),m=Math.random()+"",y=new LA;this._showOrMove(g,function(){var b=$e(g.get("formatterParams")||{});this._showTooltipContent(g,v,b,m,n.offsetX,n.offsetY,n.position,r,y)}),i({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(n,r,i,a,o,s,l,u,c){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var f=this._tooltipContent;f.setEnterable(n.get("enterable"));var d=n.get("formatter");l=l||n.get("position");var h=r,g=this._getNearestPoint([o,s],i,n.get("trigger"),n.get("borderColor")),v=g.color;if(d)if(pe(d)){var m=n.ecModel.get("useUTC"),y=re(i)?i[0]:i,b=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=d,b&&(h=dv(y.axisValue,h,m)),h=pA(h,i,!0)}else if(xe(d)){var _=ve(function(O,S){O===this._ticket&&(f.setContent(S,c,n,v,l),this._updatePosition(n,l,o,s,f,i,u))},this);this._ticket=a,h=d(i,a,_)}else h=d;f.setContent(h,c,n,v,l),f.show(n,v),this._updatePosition(n,l,o,s,f,i,u)}},e.prototype._getNearestPoint=function(n,r,i,a){if(i==="axis"||re(r))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!re(r))return{color:a||r.color||r.borderColor}},e.prototype._updatePosition=function(n,r,i,a,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();r=r||n.get("position");var f=o.getSize(),d=n.get("align"),h=n.get("verticalAlign"),g=l&&l.getBoundingRect().clone();if(l&&g.applyTransform(l.transform),xe(r)&&(r=r([i,a],s,o.el,g,{viewSize:[u,c],contentSize:f.slice()})),re(r))i=he(r[0],u),a=he(r[1],c);else if(we(r)){var v=r;v.width=f[0],v.height=f[1];var m=sn(v,{width:u,height:c});i=m.x,a=m.y,d=null,h=null}else if(pe(r)&&l){var y=JQe(r,g,f,n.get("borderWidth"));i=y[0],a=y[1]}else{var y=qQe(i,a,o,u,c,d?null:20,h?null:20);i=y[0],a=y[1]}if(d&&(i-=IK(d)?f[0]/2:d==="right"?f[0]:0),h&&(a-=IK(h)?f[1]/2:h==="bottom"?f[1]:0),xK(n)){var y=KQe(i,a,o,u,c);i=y[0],a=y[1]}o.moveTo(i,a)},e.prototype._updateContentNotChangedOnAxis=function(n,r){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===n.length;return o&&k(i,function(s,l){var u=s.dataByAxis||[],c=n[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&k(u,function(d,h){var g=f[h]||{},v=d.seriesDataIndices||[],m=g.seriesDataIndices||[];o=o&&d.value===g.value&&d.axisType===g.axisType&&d.axisId===g.axisId&&v.length===m.length,o&&k(v,function(y,b){var _=m[b];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),a&&k(d.seriesDataIndices,function(y){var b=y.seriesIndex,_=r[b],O=a[b];_&&O&&O.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!o},e.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},e.prototype.dispose=function(n,r){Je.node||!r.getDom()||(Sv(this,"_updatePosition"),this._tooltipContent.dispose(),zI("itemTooltip",r))},e.type="tooltip",e}(At);function hm(t,e,n){var r=e.ecModel,i;n?(i=new wt(n,r,r),i=new wt(e.option,i,r)):i=e;for(var a=t.length-1;a>=0;a--){var o=t[a];o&&(o instanceof wt&&(o=o.get("tooltip",!0)),pe(o)&&(o={formatter:o}),o&&(i=new wt(o,i,r)))}return i}function MK(t,e){return t.dispatchAction||ve(e.dispatchAction,e)}function qQe(t,e,n,r,i,a,o){var s=n.getSize(),l=s[0],u=s[1];return a!=null&&(t+l+a+2>r?t-=l+a:t+=a),o!=null&&(e+u+o>i?e-=u+o:e+=o),[t,e]}function KQe(t,e,n,r,i){var a=n.getSize(),o=a[0],s=a[1];return t=Math.min(t+o,r)-o,e=Math.min(e+s,i)-s,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function JQe(t,e,n,r){var i=n[0],a=n[1],o=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-a/2;break;case"top":s=e.x+u/2-i/2,l=e.y-a-o;break;case"bottom":s=e.x+u/2-i/2,l=e.y+c+o;break;case"left":s=e.x-i-o,l=e.y+c/2-a/2;break;case"right":s=e.x+u+o,l=e.y+c/2-a/2}return[s,l]}function IK(t){return t==="center"||t==="middle"}function eHe(t,e,n){var r=c2(t).queryOptionMap,i=r.keys()[0];if(!(!i||i==="series")){var a=Ug(e,i,r.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=n.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=De(u).tooltipConfig;if(c&&c.name===t.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function tHe(t){je(fm),t.registerComponentModel(LQe),t.registerComponentView(YQe),t.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Jt),t.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Jt)}var nHe=["rect","polygon","keep","clear"];function rHe(t,e){var n=xt(t?t.brush:[]);if(n.length){var r=[];k(n,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(r=r.concat(u))});var i=t&&t.toolbox;re(i)&&(i=i[0]),i||(i={feature:{}},t.toolbox=[i]);var a=i.feature||(i.feature={}),o=a.brush||(a.brush={}),s=o.type||(o.type=[]);s.push.apply(s,r),iHe(s),e&&!s.length&&s.push.apply(s,nHe)}}function iHe(t){var e={};k(t,function(n){e[n]=1}),t.length=0,k(e,function(n,r){t.push(r)})}var DK=k;function RK(t){if(t){for(var e in t)if(t.hasOwnProperty(e))return!0}}function aD(t,e,n){var r={};return DK(e,function(a){var o=r[a]=i();DK(t[a],function(s,l){if(An.isValidType(l)){var u={type:l,visual:s};n&&n(u,a),o[l]=new An(u),l==="opacity"&&(u=$e(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new An(u))}})}),r;function i(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function kK(t,e,n){var r;k(n,function(i){e.hasOwnProperty(i)&&RK(e[i])&&(r=!0)}),r&&k(n,function(i){e.hasOwnProperty(i)&&RK(e[i])?t[i]=$e(e[i]):delete t[i]})}function aHe(t,e,n,r,i,a){var o={};k(t,function(f){var d=An.prepareVisualTypes(e[f]);o[f]=d});var s;function l(f){return zA(n,s,f)}function u(f,d){Yj(n,s,f,d)}n.each(c);function c(f,d){s=f;var h=n.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var g=r.call(i,f),v=e[g],m=o[g],y=0,b=m.length;y<b;y++){var _=m[y];v[_]&&v[_].applyVisual(f,l,u)}}}function oHe(t,e,n,r){var i={};return k(t,function(a){var o=An.prepareVisualTypes(e[a]);i[a]=o}),{progress:function(o,s){var l;r!=null&&(l=s.getDimensionIndex(r));function u(S){return zA(s,f,S)}function c(S,x){Yj(s,f,S,x)}for(var f,d=s.getStore();(f=o.next())!=null;){var h=s.getRawDataItem(f);if(!(h&&h.visualMap===!1))for(var g=r!=null?d.get(l,f):f,v=n(g),m=e[v],y=i[v],b=0,_=y.length;b<_;b++){var O=y[b];m[O]&&m[O].applyVisual(g,u,c)}}}}}function sHe(t){var e=t.brushType,n={point:function(r){return NK[e].point(r,n,t)},rect:function(r){return NK[e].rect(r,n,t)}};return n}var NK={lineX:LK(0),lineY:LK(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])&&_c(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,a=t.y,o=t.width,s=t.height,l=r[0];if(_c(r,i,a)||_c(r,i+o,a)||_c(r,i,a+s)||_c(r,i+o,a+s)||ze.create(t).contain(l[0],l[1])||uv(i,a,i+o,a,r)||uv(i,a,i,a+s,r)||uv(i+o,a,i+o,a+s,r)||uv(i,a+s,i+o,a+s,r))return!0}}};function LK(t){var e=["x","y"],n=["width","height"];return{point:function(r,i,a){if(r){var o=a.range,s=r[t];return pm(s,o)}},rect:function(r,i,a){if(r){var o=a.range,s=[r[e[t]],r[e[t]]+r[n[t]]];return s[1]<s[0]&&s.reverse(),pm(s[0],o)||pm(s[1],o)||pm(o[0],s)||pm(o[1],s)}}}}function pm(t,e){return e[0]<=t&&t<=e[1]}var VK=["inBrush","outOfBrush"],oD="__ecBrushSelect",sD="__ecInBrushSelectEvent";function BK(t){t.eachComponent({mainType:"brush"},function(e){var n=e.brushTargetManager=new JI(e.option,t);n.setInputRanges(e.areas,t)})}function lHe(t,e,n){var r=[],i,a;t.eachComponent({mainType:"brush"},function(o){n&&n.type==="takeGlobalCursor"&&o.setBrushOption(n.key==="brush"?n.brushOption:{brushType:!1})}),BK(t),t.eachComponent({mainType:"brush"},function(o,s){var l={brushId:o.id,brushIndex:s,brushName:o.name,areas:$e(o.areas),selected:[]};r.push(l);var u=o.option,c=u.brushLink,f=[],d=[],h=[],g=!1;s||(i=u.throttleType,a=u.throttleDelay);var v=ie(o.areas,function(S){var x=dHe[S.brushType],w=Te({boundingRect:x?x(S):void 0},S);return w.selectors=sHe(w),w}),m=aD(o.option,VK,function(S){S.mappingMethod="fixed"});re(c)&&k(c,function(S){f[S]=1});function y(S){return c==="all"||!!f[S]}function b(S){return!!S.length}t.eachSeries(function(S,x){var w=h[x]=[];S.subType==="parallel"?_(S,x):O(S,x,w)});function _(S,x){var w=S.coordinateSystem;g=g||w.hasAxisBrushed(),y(x)&&w.eachActiveState(S.getData(),function(T,P){T==="active"&&(d[P]=1)})}function O(S,x,w){if(!(!S.brushSelector||fHe(o,x))&&(k(v,function(P){o.brushTargetManager.controlSeries(P,S,t)&&w.push(P),g=g||b(w)}),y(x)&&b(w))){var T=S.getData();T.each(function(P){zK(S,w,T,P)&&(d[P]=1)})}}t.eachSeries(function(S,x){var w={seriesId:S.id,seriesIndex:x,seriesName:S.name,dataIndex:[]};l.selected.push(w);var T=h[x],P=S.getData(),C=y(x)?function($){return d[$]?(w.dataIndex.push(P.getRawIndex($)),"inBrush"):"outOfBrush"}:function($){return zK(S,T,P,$)?(w.dataIndex.push(P.getRawIndex($)),"inBrush"):"outOfBrush"};(y(x)?g:b(T))&&aHe(VK,m,P,C)})}),uHe(e,i,a,r,n)}function uHe(t,e,n,r,i){if(i){var a=t.getZr();if(!a[sD]){a[oD]||(a[oD]=cHe);var o=Fd(a,oD,n,e);o(t,r)}}}function cHe(t,e){if(!t.isDisposed()){var n=t.getZr();n[sD]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[sD]=!1}}function zK(t,e,n,r){for(var i=0,a=e.length;i<a;i++){var o=e[i];if(t.brushSelector(r,n,o.selectors,o))return!0}}function fHe(t,e){var n=t.option.seriesIndex;return n!=null&&n!=="all"&&(re(n)?Fe(n,e)<0:e!==n)}var dHe={rect:function(t){return FK(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 a=n[r];a[0]<e[0][0]&&(e[0][0]=a[0]),a[0]>e[0][1]&&(e[0][1]=a[0]),a[1]<e[1][0]&&(e[1][0]=a[1]),a[1]>e[1][1]&&(e[1][1]=a[1])}return e&&FK(e)}};function FK(t){return new ze(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var hHe=function(t){U(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 tI(r.getZr())).on("brush",ve(this._onBrush,this)).mount()},e.prototype.render=function(n,r,i,a){this.model=n,this._updateController(n,r,i,a)},e.prototype.updateTransform=function(n,r,i,a){BK(r),this._updateController(n,r,i,a)},e.prototype.updateVisual=function(n,r,i,a){this.updateTransform(n,r,i,a)},e.prototype.updateView=function(n,r,i,a){this._updateController(n,r,i,a)},e.prototype._updateController=function(n,r,i,a){(!a||a.$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:$e(i),$from:r}),n.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:r,areas:$e(i),$from:r})},e.type="brush",e}(At),pHe="#ddd",gHe=function(t){U(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&&kK(i,n,["inBrush","outOfBrush"]);var a=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:pHe},a.hasOwnProperty("liftZ")||(a.liftZ=5)},e.prototype.setAreas=function(n){process.env.NODE_ENV!=="production"&&(Pe(re(n)),k(n,function(r){Pe(r.brushType,"Illegal areas")})),n&&(this.areas=ie(n,function(r){return WK(this.option,r)},this))},e.prototype.setBrushOption=function(n){this.brushOption=WK(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}(He);function WK(t,e){return Le({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new wt(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var vHe=["rect","polygon","lineX","lineY","keep","clear"],mHe=function(t){U(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.render=function(n,r,i){var a,o,s;r.eachComponent({mainType:"brush"},function(l){a=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=a,this._brushMode=o,k(n.get("type",!0),function(l){n.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===a)?"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 k(n.get("type",!0),function(a){r[a]&&(i[a]=r[a])}),i},e.prototype.onclick=function(n,r,i){var a=this._brushType,o=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"?a:a===i?!1:i,brushMode:i==="keep"?o==="multiple"?"single":"multiple":o}})},e.getDefaultOption=function(n){var r={show:!0,type:vHe.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}(oa);function yHe(t){t.registerComponentView(hHe),t.registerComponentModel(gHe),t.registerPreprocessor(rHe),t.registerVisual(t.PRIORITY.VISUAL.BRUSH,lHe),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"},Jt),t.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Jt),dh("brush",mHe)}var bHe=function(t){U(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}(He),_He=function(t){U(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 a=this.group,o=n.getModel("textStyle"),s=n.getModel("subtextStyle"),l=n.get("textAlign"),u=Re(n.get("textBaseline"),n.get("textVerticalAlign")),c=new nt({style:$t(o,{text:n.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),f=c.getBoundingRect(),d=n.get("subtext"),h=new nt({style:$t(s,{text:d,fill:s.getTextColor(),y:f.height+n.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),g=n.get("link"),v=n.get("sublink"),m=n.get("triggerEvent",!0);c.silent=!g&&!m,h.silent=!v&&!m,g&&c.on("click",function(){f1(g,"_"+n.get("target"))}),v&&h.on("click",function(){f1(v,"_"+n.get("subtarget"))}),De(c).eventData=De(h).eventData=m?{componentType:"title",componentIndex:n.componentIndex}:null,a.add(c),d&&a.add(h);var y=a.getBoundingRect(),b=n.getBoxLayoutParams();b.width=y.width,b.height=y.height;var _=sn(b,{width:i.getWidth(),height:i.getHeight()},n.get("padding"));l||(l=n.get("left")||n.get("right"),l==="middle"&&(l="center"),l==="right"?_.x+=_.width:l==="center"&&(_.x+=_.width/2)),u||(u=n.get("top")||n.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?_.y+=_.height:u==="middle"&&(_.y+=_.height/2),u=u||"top"),a.x=_.x,a.y=_.y,a.markRedraw();var O={align:l,verticalAlign:u};c.setStyle(O),h.setStyle(O),y=a.getBoundingRect();var S=_.margin,x=n.getItemStyle(["color","opacity"]);x.fill=n.get("backgroundColor");var w=new tt({shape:{x:y.x-S[3],y:y.y-S[0],width:y.width+S[1]+S[3],height:y.height+S[0]+S[2],r:n.get("borderRadius")},style:x,subPixelOptimize:!0,silent:!0});a.add(w)}},e.type="title",e}(At);function OHe(t){t.registerComponentModel(bHe),t.registerComponentView(_He)}var QK=function(t){U(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,a=this._names=[],o;i==="category"?(o=[],k(r,function(u,c){var f=gn(vd(u),""),d;we(u)?(d=$e(u),d.value=c):d=c,o.push(d),a.push(f)})):o=r;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new ur([{name:"value",type:s}],this);l.initData(o,a)},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}(He),HK=function(t){U(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=gl(QK.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}(QK);Kt(HK,m1.prototype);var SHe=function(t){U(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type=e.type,n}return e.type="timeline",e}(At),xHe=function(t){U(e,t);function e(n,r,i,a){var o=t.call(this,n,r,i)||this;return o.type=a||"value",o}return e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},e}(ea),lD=Math.PI,jK=et(),wHe=function(t){U(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 a=this._layout(n,i),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(a,n);n.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return Pn("nameValue",{noName:!0,value:c})},k(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](a,o,l,n)},this),this._renderAxisLabel(a,s,l,n),this._position(a,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"]),a=n.get("orient"),o=THe(n,r),s;i==null||i==="auto"?s=a==="horizontal"?o.y+o.height/2<r.getHeight()/2?"-":"+":o.x+o.width/2<r.getWidth()/2?"+":"-":pe(i)?s={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[a][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:lD/2},f=a==="vertical"?o.height:o.width,d=n.getModel("controlStyle"),h=d.get("show",!0),g=h?d.get("itemSize"):0,v=h?d.get("itemGap"):0,m=g+v,y=n.get(["label","rotate"])||0;y=y*lD/180;var b,_,O,S=d.get("position",!0),x=h&&d.get("showPlayBtn",!0),w=h&&d.get("showPrevBtn",!0),T=h&&d.get("showNextBtn",!0),P=0,C=f;S==="left"||S==="bottom"?(x&&(b=[0,0],P+=m),w&&(_=[P,0],P+=m),T&&(O=[C-g,0],C-=m)):(x&&(b=[C-g,0],C-=m),w&&(_=[0,0],P+=m),T&&(O=[C-g,0],C-=m));var $=[P,C];return n.get("inverse")&&$.reverse(),{viewRect:o,mainLength:f,orient:a,rotation:c[a],labelRotation:y,labelPosOpt:s,labelAlign:n.get(["label","align"])||l[a],labelBaseline:n.get(["label","verticalAlign"])||n.get(["label","baseline"])||u[a],playPosition:b,prevBtnPosition:_,nextBtnPosition:O,axisExtent:$,controlSize:g,controlGap:v}},e.prototype._position=function(n,r){var i=this._mainGroup,a=this._labelGroup,o=n.viewRect;if(n.orient==="vertical"){var s=zr(),l=o.x,u=o.y+o.height;Sa(s,s,[-l,-u]),el(s,s,-lD/2),Sa(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=b(o),f=b(i.getBoundingRect()),d=b(a.getBoundingRect()),h=[i.x,i.y],g=[a.x,a.y];g[0]=h[0]=c[0][0];var v=n.labelPosOpt;if(v==null||pe(v)){var m=v==="+"?0:1;_(h,f,c,1,m),_(g,d,c,1,1-m)}else{var m=v>=0?0:1;_(h,f,c,1,m),g[1]=h[1]+v}i.setPosition(h),a.setPosition(g),i.rotation=a.rotation=n.rotation,y(i),y(a);function y(O){O.originX=c[0][0]-O.x,O.originY=c[1][0]-O.y}function b(O){return[[O.x,O.x+O.width],[O.y,O.y+O.height]]}function _(O,S,x,w,T){O[w]+=x[w][T]-S[w][T]}},e.prototype._createAxis=function(n,r){var i=r.getData(),a=r.get("axisType"),o=CHe(r,a);o.getTicks=function(){return i.mapArray(["value"],function(u){return{value:u}})};var s=i.getDataExtent("value");o.setExtent(s[0],s[1]),o.calcNiceTicks();var l=new xHe("value",o,n.axisExtent,a);return l.model=r,l},e.prototype._createGroup=function(n){var r=this[n]=new Me;return this.group.add(r),r},e.prototype._renderAxisLine=function(n,r,i,a){var o=i.getExtent();if(a.get(["lineStyle","show"])){var s=new Cn({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:ne({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});r.add(s);var l=this._progressLine=new Cn({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Te({lineCap:"round",lineWidth:s.style.lineWidth},a.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});r.add(l)}},e.prototype._renderAxisTick=function(n,r,i,a){var o=this,s=a.getData(),l=i.scale.getTicks();this._tickSymbols=[],k(l,function(u){var c=i.dataToCoord(u.value),f=s.getItemModel(u.value),d=f.getModel("itemStyle"),h=f.getModel(["emphasis","itemStyle"]),g=f.getModel(["progress","itemStyle"]),v={x:c,y:0,onclick:ve(o._changeTimeline,o,u.value)},m=GK(f,d,r,v);m.ensureState("emphasis").style=h.getItemStyle(),m.ensureState("progress").style=g.getItemStyle(),cl(m);var y=De(m);f.get("tooltip")?(y.dataIndex=u.value,y.dataModel=a):y.dataIndex=y.dataModel=null,o._tickSymbols.push(m)})},e.prototype._renderAxisLabel=function(n,r,i,a){var o=this,s=i.getLabelModel();if(s.get("show")){var l=a.getData(),u=i.getViewLabels();this._tickLabels=[],k(u,function(c){var f=c.tickValue,d=l.getItemModel(f),h=d.getModel("label"),g=d.getModel(["emphasis","label"]),v=d.getModel(["progress","label"]),m=i.dataToCoord(c.tickValue),y=new nt({x:m,y:0,rotation:n.labelRotation-n.rotation,onclick:ve(o._changeTimeline,o,f),silent:!1,style:$t(h,{text:c.formattedLabel,align:n.labelAlign,verticalAlign:n.labelBaseline})});y.ensureState("emphasis").style=$t(g),y.ensureState("progress").style=$t(v),r.add(y),cl(y),jK(y).dataIndex=f,o._tickLabels.push(y)})}},e.prototype._renderControl=function(n,r,i,a){var o=n.controlSize,s=n.rotation,l=a.getModel("controlStyle").getItemStyle(),u=a.getModel(["emphasis","controlStyle"]).getItemStyle(),c=a.getPlayState(),f=a.get("inverse",!0);d(n.nextBtnPosition,"next",ve(this._changeTimeline,this,f?"-":"+")),d(n.prevBtnPosition,"prev",ve(this._changeTimeline,this,f?"+":"-")),d(n.playPosition,c?"stop":"play",ve(this._handlePlayClick,this,!c),!0);function d(h,g,v,m){if(h){var y=Ta(Re(a.get(["controlStyle",g+"BtnSize"]),o),o),b=[0,-y/2,y,y],_=PHe(a,g+"Icon",b,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:m?-s:0,rectHover:!0,style:l,onclick:v});_.ensureState("emphasis").style=u,r.add(_),cl(_)}}},e.prototype._renderCurrentPointer=function(n,r,i,a){var o=a.getData(),s=a.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(f){f.draggable=!0,f.drift=ve(u._handlePointerDrag,u),f.ondragend=ve(u._handlePointerDragend,u),ZK(f,u._progressLine,s,i,a,!0)},onUpdate:function(f){ZK(f,u._progressLine,s,i,a)}};this._currentPointer=GK(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],a=this._axis,o=di(a.getExtent().slice());i>o[1]&&(i=o[1]),i<o[0]&&(i=o[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 Ea(n,r,!0)},e.prototype._findNearestTick=function(n){var r=this.model.getData(),i=1/0,a,o=this._axis;return r.each(["value"],function(s,l){var u=o.dataToCoord(s),c=Math.abs(u-n);c<i&&(i=c,a=l)}),a},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 a=0;a<r.length;a++)r&&r[a]&&r[a].toggleState("progress",a<n);if(i)for(var a=0;a<i.length;a++)i&&i[a]&&i[a].toggleState("progress",jK(i[a]).dataIndex<=n)},e.type="timeline.slider",e}(SHe);function CHe(t,e){if(e=e||t.get("type"),e)switch(e){case"category":return new G1({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new OE({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new ys}}function THe(t,e){return sn(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}function PHe(t,e,n,r){var i=r.style,a=$d(t.get(["controlStyle",e]),r||{},new ze(n[0],n[1],n[2],n[3]));return i&&a.setStyle(i),a}function GK(t,e,n,r,i,a){var o=e.get("color");if(i)i.setColor(o),n.add(i),a&&a.onUpdate(i);else{var s=t.get("symbol");i=rn(s,-1,-1,2,2,o),i.setStyle("strokeNoScale",!0),n.add(i),a&&a.onCreate(i)}var l=e.getItemStyle(["color"]);i.setStyle(l),r=Le({rectHover:!0,z2:100},r,!0);var u=Qd(t.get("symbolSize"));r.scaleX=u[0]/2,r.scaleY=u[1]/2;var c=pc(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 ZK(t,e,n,r,i,a){if(!t.dragging){var o=i.getModel("checkpointStyle"),s=r.dataToCoord(i.getData().get("value",n));if(a||!o.get("animation",!0))t.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:o.get("animationDuration",!0),easing:o.get("animationEasing",!0)};t.stopAnimation(null,!0),t.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}function $He(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)}),Te({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 AHe(t){var e=t&&t.timeline;re(e)||(e=e?[e]:[]),k(e,function(n){n&&EHe(n)})}function EHe(t){var e=t.type,n={number:"value",time:"time"};if(n[e]&&(t.axisType=n[e],delete t.type),UK(t),zc(t,"controlPosition")){var r=t.controlStyle||(t.controlStyle={});zc(r,"position")||(r.position=t.controlPosition),r.position==="none"&&!zc(r,"show")&&(r.show=!1,delete r.position),delete t.controlPosition}k(t.data||[],function(i){we(i)&&!re(i)&&(!zc(i,"value")&&zc(i,"name")&&(i.value=i.name),UK(i))})}function UK(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),r=t.label||t.label||{},i=r.normal||(r.normal={}),a={normal:1,emphasis:1};k(r,function(o,s){!a[s]&&!zc(i,s)&&(i[s]=o)}),n.label&&!zc(r,"emphasis")&&(r.emphasis=n.label,delete n.label)}function zc(t,e){return t.hasOwnProperty(e)}function MHe(t){t.registerComponentModel(HK),t.registerComponentView(wHe),t.registerSubTypeDefaulter("timeline",function(){return"slider"}),$He(t),t.registerPreprocessor(AHe)}function uD(t,e){if(!t)return!1;for(var n=re(t)?t:[t],r=0;r<n.length;r++)if(n[r]&&n[r][e])return!0;return!1}function GO(t){Bu(t,"label",["show"])}var ZO=et(),ws=function(t){U(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(Je.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,a){var o=this.mainType;i||r.eachSeries(function(s){var l=s.get(this.mainType,!0),u=ZO(s)[o];if(!l||!l.data){ZO(s)[o]=null;return}u?u._mergeOption(l,r,!0):(a&&GO(l),k(l.data,function(c){c instanceof Array?(GO(c[0]),GO(c[1])):GO(c)}),u=this.createMarkerModelFromSeries(l,this,r),ne(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),ZO(s)[o]=u},this)},e.prototype.formatTooltip=function(n,r,i){var a=this.getData(),o=this.getRawValue(n),s=a.getName(n);return Pn("section",{header:this.name,blocks:[Pn("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},e.prototype.getData=function(){return this._data},e.prototype.setData=function(n){this._data=n},e.prototype.getDataParams=function(n,r){var i=m1.prototype.getDataParams.call(this,n,r),a=this.__hostSeries;return a&&(i.seriesId=a.id,i.seriesName=a.name,i.seriesType=a.subType),i},e.getMarkerModelFromSeries=function(n,r){return ZO(n)[r]},e.type="marker",e.dependencies=["series","grid","polar","geo"],e}(He);Kt(ws,m1.prototype);var IHe=function(t){U(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}(ws);function cD(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function DHe(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function UO(t,e,n,r,i,a){var o=[],s=ms(e,r),l=s?e.getCalculationInfo("stackResultDimension"):r,u=dD(e,l,t),c=e.indicesOfNearest(l,u)[0];o[i]=e.get(n,c),o[a]=e.get(l,c);var f=e.get(r,c),d=Pa(e.get(r,c));return d=Math.min(d,20),d>=0&&(o[a]=+o[a].toFixed(d)),[o,f]}var fD={min:ke(UO,"min"),max:ke(UO,"max"),average:ke(UO,"average"),median:ke(UO,"median")};function gm(t,e){if(e){var n=t.getData(),r=t.coordinateSystem,i=r&&r.dimensions;if(!DHe(e)&&!re(e.coord)&&re(i)){var a=XK(e,n,r,t);if(e=$e(e),e.type&&fD[e.type]&&a.baseAxis&&a.valueAxis){var o=Fe(i,a.baseAxis.dim),s=Fe(i,a.valueAxis.dim),l=fD[e.type](n,a.baseDataDim,a.valueDataDim,o,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||!re(i))e.coord=[];else for(var u=e.coord,c=0;c<2;c++)fD[u[c]]&&(u[c]=dD(n,n.mapDimension(i[c]),u[c]));return e}}function XK(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(RHe(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 RHe(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}function vm(t,e){return t&&t.containData&&e.coord&&!cD(e)?t.containData(e.coord):!0}function kHe(t,e,n){return t&&t.containZone&&e.coord&&n.coord&&!cD(e)&&!cD(n)?t.containZone(e.coord,n.coord):!0}function YK(t,e){return t?function(n,r,i,a){var o=a<2?n.coord&&n.coord[a]:n.value;return ml(o,e[a])}:function(n,r,i,a){return ml(n.value,e[a])}}function dD(t,e,n){if(n==="average"){var r=0,i=0;return t.each(e,function(a,o){isNaN(a)||(r+=a,i++)}),r/i}else return n==="median"?t.getMedian(e):t.getDataExtent(e)[n==="max"?1:0]}var hD=et(),pD=function(t){U(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 a=this,o=this.markerGroupMap;o.each(function(s){hD(s).keep=!1}),r.eachSeries(function(s){var l=ws.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,r,i)}),o.each(function(s){!hD(s).keep&&a.group.remove(s.group)})},e.prototype.markKeep=function(n){hD(n).keep=!0},e.prototype.toggleBlurSeries=function(n,r){var i=this;k(n,function(a){var o=ws.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(r?mQ(l):k2(l))})}})},e.type="marker",e}(At);function qK(t,e,n){var r=e.coordinateSystem;t.each(function(i){var a=t.getItemModel(i),o,s=he(a.get("x"),n.getWidth()),l=he(a.get("y"),n.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(e.getMarkerPosition)o=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);o=r.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(i,o)})}var NHe=function(t){U(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(a){var o=ws.getMarkerModelFromSeries(a,"markPoint");o&&(qK(o.getData(),a,i),this.markerGroupMap.get(a.id).updateLayout())},this)},e.prototype.renderSeries=function(n,r,i,a){var o=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new Fv),f=LHe(o,n,r);r.setData(f),qK(r.getData(),n,a),f.each(function(d){var h=f.getItemModel(d),g=h.getShallow("symbol"),v=h.getShallow("symbolSize"),m=h.getShallow("symbolRotate"),y=h.getShallow("symbolOffset"),b=h.getShallow("symbolKeepAspect");if(xe(g)||xe(v)||xe(m)||xe(y)){var _=r.getRawValue(d),O=r.getDataParams(d);xe(g)&&(g=g(_,O)),xe(v)&&(v=v(_,O)),xe(m)&&(m=m(_,O)),xe(y)&&(y=y(_,O))}var S=h.getModel("itemStyle").getItemStyle(),x=Cv(l,"color");S.fill||(S.fill=x),f.setItemVisual(d,{symbol:g,symbolSize:v,symbolRotate:m,symbolOffset:y,symbolKeepAspect:b,style:S})}),c.updateData(f),this.group.add(c.group),f.eachItemGraphicEl(function(d){d.traverse(function(h){De(h).dataModel=r})}),this.markKeep(c),c.group.silent=r.get("silent")||n.get("silent")},e.type="markPoint",e}(pD);function LHe(t,e,n){var r;t?r=ie(t&&t.dimensions,function(s){var l=e.getData().getDimensionInfo(e.getData().mapDimension(s))||{};return ne(ne({},l),{name:s,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var i=new ur(r,n),a=ie(n.get("data"),ke(gm,e));t&&(a=vt(a,ke(vm,t)));var o=YK(!!t,r);return i.initData(a,null,o),i}function VHe(t){t.registerComponentModel(IHe),t.registerComponentView(NHe),t.registerPreprocessor(function(e){uD(e.series,"markPoint")&&(e.markPoint=e.markPoint||{})})}var BHe=function(t){U(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}(ws),XO=et(),zHe=function(t,e,n,r){var i=t.getData(),a;if(re(r))a=r;else{var o=r.type;if(o==="min"||o==="max"||o==="average"||o==="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=tn(r.yAxis,r.xAxis);else{var u=XK(r,i,e,t);s=u.valueAxis;var c=pE(i,u.valueDataDim);l=dD(i,c,o)}var f=s.dim==="x"?0:1,d=1-f,h=$e(r),g={coord:[]};h.type=null,h.coord=[],h.coord[d]=-1/0,g.coord[d]=1/0;var v=n.get("precision");v>=0&&it(l)&&(l=+l.toFixed(Math.min(v,20))),h.coord[f]=g.coord[f]=l,a=[h,g,{type:o,valueIndex:r.valueIndex,value:l}]}else process.env.NODE_ENV!=="production"&&Li("Invalid markLine data."),a=[]}var m=[gm(t,a[0]),gm(t,a[1]),ne({},a[2])];return m[2].type=m[2].type||null,Le(m[2],m[0]),Le(m[2],m[1]),m};function YO(t){return!isNaN(t)&&!isFinite(t)}function KK(t,e,n,r){var i=1-t,a=r.dimensions[t];return YO(e[i])&&YO(n[i])&&e[t]===n[t]&&r.getAxis(a).containData(e[t])}function FHe(t,e){if(t.type==="cartesian2d"){var n=e[0].coord,r=e[1].coord;if(n&&r&&(KK(1,n,r,t)||KK(0,n,r,t)))return!0}return vm(t,e[0])&&vm(t,e[1])}function gD(t,e,n,r,i){var a=r.coordinateSystem,o=t.getItemModel(e),s,l=he(o.get("x"),i.getWidth()),u=he(o.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=a.dimensions,f=t.get(c[0],e),d=t.get(c[1],e);s=a.dataToPoint([f,d])}if(Pc(a,"cartesian2d")){var h=a.getAxis("x"),g=a.getAxis("y"),c=a.dimensions;YO(t.get(c[0],e))?s[0]=h.toGlobalCoord(h.getExtent()[n?0:1]):YO(t.get(c[1],e))&&(s[1]=g.toGlobalCoord(g.getExtent()[n?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}t.setItemLayout(e,s)}var WHe=function(t){U(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(a){var o=ws.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=XO(o).from,u=XO(o).to;l.each(function(c){gD(l,c,!0,a,i),gD(u,c,!1,a,i)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(a.id).updateLayout()}},this)},e.prototype.renderSeries=function(n,r,i,a){var o=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new QM);this.group.add(c.group);var f=QHe(o,n,r),d=f.from,h=f.to,g=f.line;XO(r).from=d,XO(r).to=h,r.setData(g);var v=r.get("symbol"),m=r.get("symbolSize"),y=r.get("symbolRotate"),b=r.get("symbolOffset");re(v)||(v=[v,v]),re(m)||(m=[m,m]),re(y)||(y=[y,y]),re(b)||(b=[b,b]),f.from.each(function(O){_(d,O,!0),_(h,O,!1)}),g.each(function(O){var S=g.getItemModel(O).getModel("lineStyle").getLineStyle();g.setItemLayout(O,[d.getItemLayout(O),h.getItemLayout(O)]),S.stroke==null&&(S.stroke=d.getItemVisual(O,"style").fill),g.setItemVisual(O,{fromSymbolKeepAspect:d.getItemVisual(O,"symbolKeepAspect"),fromSymbolOffset:d.getItemVisual(O,"symbolOffset"),fromSymbolRotate:d.getItemVisual(O,"symbolRotate"),fromSymbolSize:d.getItemVisual(O,"symbolSize"),fromSymbol:d.getItemVisual(O,"symbol"),toSymbolKeepAspect:h.getItemVisual(O,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(O,"symbolOffset"),toSymbolRotate:h.getItemVisual(O,"symbolRotate"),toSymbolSize:h.getItemVisual(O,"symbolSize"),toSymbol:h.getItemVisual(O,"symbol"),style:S})}),c.updateData(g),f.line.eachItemGraphicEl(function(O){De(O).dataModel=r,O.traverse(function(S){De(S).dataModel=r})});function _(O,S,x){var w=O.getItemModel(S);gD(O,S,x,n,a);var T=w.getModel("itemStyle").getItemStyle();T.fill==null&&(T.fill=Cv(l,"color")),O.setItemVisual(S,{symbolKeepAspect:w.get("symbolKeepAspect"),symbolOffset:Re(w.get("symbolOffset",!0),b[x?0:1]),symbolRotate:Re(w.get("symbolRotate",!0),y[x?0:1]),symbolSize:Re(w.get("symbolSize"),m[x?0:1]),symbol:Re(w.get("symbol",!0),v[x?0:1]),style:T})}this.markKeep(c),c.group.silent=r.get("silent")||n.get("silent")},e.type="markLine",e}(pD);function QHe(t,e,n){var r;t?r=ie(t&&t.dimensions,function(u){var c=e.getData().getDimensionInfo(e.getData().mapDimension(u))||{};return ne(ne({},c),{name:u,ordinalMeta:null})}):r=[{name:"value",type:"float"}];var i=new ur(r,n),a=new ur(r,n),o=new ur([],n),s=ie(n.get("data"),ke(zHe,e,t,n));t&&(s=vt(s,ke(FHe,t)));var l=YK(!!t,r);return i.initData(ie(s,function(u){return u[0]}),null,l),a.initData(ie(s,function(u){return u[1]}),null,l),o.initData(ie(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}function HHe(t){t.registerComponentModel(BHe),t.registerComponentView(WHe),t.registerPreprocessor(function(e){uD(e.series,"markLine")&&(e.markLine=e.markLine||{})})}var jHe=function(t){U(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}(ws),qO=et(),GHe=function(t,e,n,r){var i=r[0],a=r[1];if(!(!i||!a)){var o=gm(t,i),s=gm(t,a),l=o.coord,u=s.coord;l[0]=tn(l[0],-1/0),l[1]=tn(l[1],-1/0),u[0]=tn(u[0],1/0),u[1]=tn(u[1],1/0);var c=Ub([{},o,s]);return c.coord=[o.coord,s.coord],c.x0=o.x,c.y0=o.y,c.x1=s.x,c.y1=s.y,c}};function KO(t){return!isNaN(t)&&!isFinite(t)}function JK(t,e,n,r){var i=1-t;return KO(e[i])&&KO(n[i])}function ZHe(t,e){var n=e.coord[0],r=e.coord[1],i={coord:n,x:e.x0,y:e.y0},a={coord:r,x:e.x1,y:e.y1};return Pc(t,"cartesian2d")?n&&r&&(JK(1,n,r)||JK(0,n,r))?!0:kHe(t,i,a):vm(t,i)||vm(t,a)}function eJ(t,e,n,r,i){var a=r.coordinateSystem,o=t.getItemModel(e),s,l=he(o.get(n[0]),i.getWidth()),u=he(o.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=a.clampData(c),h=a.clampData(f),g=[];n[0]==="x0"?g[0]=d[0]>h[0]?f[0]:c[0]:g[0]=d[0]>h[0]?c[0]:f[0],n[1]==="y0"?g[1]=d[1]>h[1]?f[1]:c[1]:g[1]=d[1]>h[1]?c[1]:f[1],s=r.getMarkerPosition(g,n,!0)}else{var v=t.get(n[0],e),m=t.get(n[1],e),y=[v,m];a.clampData&&a.clampData(y,y),s=a.dataToPoint(y,!0)}if(Pc(a,"cartesian2d")){var b=a.getAxis("x"),_=a.getAxis("y"),v=t.get(n[0],e),m=t.get(n[1],e);KO(v)?s[0]=b.toGlobalCoord(b.getExtent()[n[0]==="x0"?0:1]):KO(m)&&(s[1]=_.toGlobalCoord(_.getExtent()[n[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var tJ=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],UHe=function(t){U(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(a){var o=ws.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=ie(tJ,function(f){return eJ(s,l,f,a,i)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},e.prototype.renderSeries=function(n,r,i,a){var o=n.coordinateSystem,s=n.id,l=n.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new Me});this.group.add(c.group),this.markKeep(c);var f=XHe(o,n,r);r.setData(f),f.each(function(d){var h=ie(tJ,function(T){return eJ(f,d,T,n,a)}),g=o.getAxis("x").scale,v=o.getAxis("y").scale,m=g.getExtent(),y=v.getExtent(),b=[g.parse(f.get("x0",d)),g.parse(f.get("x1",d))],_=[v.parse(f.get("y0",d)),v.parse(f.get("y1",d))];di(b),di(_);var O=!(m[0]>b[1]||m[1]<b[0]||y[0]>_[1]||y[1]<_[0]),S=!O;f.setItemLayout(d,{points:h,allClipped:S});var x=f.getItemModel(d).getModel("itemStyle").getItemStyle(),w=Cv(l,"color");x.fill||(x.fill=w,pe(x.fill)&&(x.fill=Ng(x.fill,.4))),x.stroke||(x.stroke=w),f.setItemVisual(d,"style",x)}),f.diff(qO(c).data).add(function(d){var h=f.getItemLayout(d);if(!h.allClipped){var g=new wr({shape:{points:h.points}});f.setItemGraphicEl(d,g),c.group.add(g)}}).update(function(d,h){var g=qO(c).data.getItemGraphicEl(h),v=f.getItemLayout(d);v.allClipped?g&&c.group.remove(g):(g?ot(g,{shape:{points:v.points}},r,d):g=new wr({shape:{points:v.points}}),f.setItemGraphicEl(d,g),c.group.add(g))}).remove(function(d){var h=qO(c).data.getItemGraphicEl(d);c.group.remove(h)}).execute(),f.eachItemGraphicEl(function(d,h){var g=f.getItemModel(h),v=f.getItemVisual(h,"style");d.useStyle(f.getItemVisual(h,"style")),Un(d,Tn(g),{labelFetcher:r,labelDataIndex:h,defaultText:f.getName(h)||"",inheritColor:pe(v.fill)?Ng(v.fill,1):"#000"}),Zn(d,g),Xt(d,null,null,g.get(["emphasis","disabled"])),De(d).dataModel=r}),qO(c).data=f,c.group.silent=r.get("silent")||n.get("silent")},e.type="markArea",e}(pD);function XHe(t,e,n){var r,i,a=["x0","y0","x1","y1"];if(t){var o=ie(t&&t.dimensions,function(u){var c=e.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return ne(ne({},f),{name:u,ordinalMeta:null})});i=ie(a,function(u,c){return{name:u,type:o[c%2].type}}),r=new ur(i,n)}else i=[{name:"value",type:"float"}],r=new ur(i,n);var s=ie(n.get("data"),ke(GHe,e,t,n));t&&(s=vt(s,ke(ZHe,t)));var l=t?function(u,c,f,d){var h=u.coord[Math.floor(d/2)][d%2];return ml(h,i[d])}:function(u,c,f,d){return ml(u.value,i[d])};return r.initData(s,null,l),r.hasItemOption=!0,r}function YHe(t){t.registerComponentModel(jHe),t.registerComponentView(UHe),t.registerPreprocessor(function(e){uD(e.series,"markArea")&&(e.markArea=e.markArea||{})})}var qHe=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"])}},vD=function(t){U(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"]),re(r)&&k(r,function(a,o){pe(a)&&(a={type:a}),r[o]=Le(a,qHe(i,a.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 a=n[i].get("name");if(this.isSelected(a)){this.select(a),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&&u2(l)&&r.push(l.name)}),this._availableNames=i;var a=this.get("data")||r,o=be(),s=ie(a,function(l){return(pe(l)||it(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new wt(l,this,this.ecModel))},this);this._data=vt(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 a=this._data;k(a,function(o){r[o.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;k(n,function(i){r[i.get("name",!0)]=!0})},e.prototype.inverseSelect=function(){var n=this._data,r=this.option.selected;k(n,function(i){var a=i.get("name",!0);r.hasOwnProperty(a)||(r[a]=!0),r[a]=!r[a]})},e.prototype.isSelected=function(n){var r=this.option.selected;return!(r.hasOwnProperty(n)&&!r[n])&&Fe(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}(He),ph=ke,mD=k,JO=Me,nJ=function(t){U(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 JO),this.group.add(this._selectorGroup=new JO),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 a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!n.get("show",!0)){var o=n.get("align"),s=n.get("orient");(!o||o==="auto")&&(o=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(o,n,r,i,l,s,u);var c=n.getBoxLayoutParams(),f={width:i.getWidth(),height:i.getHeight()},d=n.get("padding"),h=sn(c,f,d),g=this.layoutInner(n,o,h,a,l,u),v=sn(Te({width:g.width,height:g.height},c),f,d);this.group.x=v.x-g.x,this.group.y=v.y-g.y,this.group.markRedraw(),this.group.add(this._backgroundEl=fK(g,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,a,o,s,l){var u=this.getContentGroup(),c=be(),f=r.get("selectedMode"),d=[];i.eachRawSeries(function(h){!h.get("legendHoverLink")&&d.push(h.id)}),mD(r.getData(),function(h,g){var v=h.get("name");if(!this.newlineDisabled&&(v===""||v===`
  330. `)){var m=new JO;m.newline=!0,u.add(m);return}var y=i.getSeriesByName(v)[0];if(!c.get(v)){if(y){var b=y.getData(),_=b.getVisual("legendLineStyle")||{},O=b.getVisual("legendIcon"),S=b.getVisual("style"),x=this._createItem(y,v,g,h,r,n,_,S,O,f,a);x.on("click",ph(rJ,v,null,a,d)).on("mouseover",ph(yD,y.name,null,a,d)).on("mouseout",ph(bD,y.name,null,a,d)),i.ssr&&x.eachChild(function(w){var T=De(w);T.seriesIndex=y.seriesIndex,T.dataIndex=g,T.ssrType="legend"}),c.set(v,!0)}else i.eachRawSeries(function(w){if(!c.get(v)&&w.legendVisualProvider){var T=w.legendVisualProvider;if(!T.containName(v))return;var P=T.indexOfName(v),C=T.getItemVisual(P,"style"),$=T.getItemVisual(P,"legendIcon"),A=br(C.fill);A&&A[3]===0&&(A[3]=.2,C=ne(ne({},C),{fill:wa(A,"rgba")}));var E=this._createItem(w,v,g,h,r,n,{},C,$,f,a);E.on("click",ph(rJ,null,v,a,d)).on("mouseover",ph(yD,null,v,a,d)).on("mouseout",ph(bD,null,v,a,d)),i.ssr&&E.eachChild(function(D){var M=De(D);M.seriesIndex=w.seriesIndex,M.dataIndex=g,M.ssrType="legend"}),c.set(v,!0)}},this);process.env.NODE_ENV!=="production"&&(c.get(v)||console.warn(v+" series not exists. Legend data should be same with series name or data name."))}},this),o&&this._createSelector(o,r,a,s,l)},e.prototype._createSelector=function(n,r,i,a,o){var s=this.getSelectorGroup();mD(n,function(u){var c=u.type,f=new nt({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"),h=r.getModel(["emphasis","selectorLabel"]);Un(f,{normal:d,emphasis:h},{defaultText:u.title}),cl(f)})},e.prototype._createItem=function(n,r,i,a,o,s,l,u,c,f,d){var h=n.visualDrawType,g=o.get("itemWidth"),v=o.get("itemHeight"),m=o.isSelected(r),y=a.get("symbolRotate"),b=a.get("symbolKeepAspect"),_=a.get("icon");c=_||c||"roundRect";var O=KHe(c,a,l,u,h,m,d),S=new JO,x=a.getModel("textStyle");if(xe(n.getLegendIcon)&&(!_||_==="inherit"))S.add(n.getLegendIcon({itemWidth:g,itemHeight:v,icon:c,iconRotate:y,itemStyle:O.itemStyle,lineStyle:O.lineStyle,symbolKeepAspect:b}));else{var w=_==="inherit"&&n.getData().getVisual("symbol")?y==="inherit"?n.getData().getVisual("symbolRotate"):y:0;S.add(JHe({itemWidth:g,itemHeight:v,icon:c,iconRotate:w,itemStyle:O.itemStyle,lineStyle:O.lineStyle,symbolKeepAspect:b}))}var T=s==="left"?g+5:-5,P=s,C=o.get("formatter"),$=r;pe(C)&&C?$=C.replace("{name}",r??""):xe(C)&&($=C(r));var A=m?x.getTextColor():a.get("inactiveColor");S.add(new nt({style:$t(x,{text:$,x:T,y:v/2,fill:A,align:P,verticalAlign:"middle"},{inheritColor:A})}));var E=new tt({shape:S.getBoundingRect(),style:{fill:"transparent"}}),D=a.getModel("tooltip");return D.get("show")&&Ad({el:E,componentModel:o,itemName:r,itemTooltipOption:D.option}),S.add(E),S.eachChild(function(M){M.silent=!0}),E.silent=!f,this.getContentGroup().add(S),cl(S),S.__legendDataIndex=i,S},e.prototype.layoutInner=function(n,r,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();lc(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(),o){lc("horizontal",u,n.get("selectorItemGap",!0));var d=u.getBoundingRect(),h=[-d.x,-d.y],g=n.get("selectorButtonGap",!0),v=n.getOrient().index,m=v===0?"width":"height",y=v===0?"height":"width",b=v===0?"y":"x";s==="end"?h[v]+=c[m]+g:f[v]+=d[m]+g,h[1-v]+=c[y]/2-d[y]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[m]=c[m]+g+d[m],_[y]=Math.max(c[y],d[y]),_[b]=Math.min(0,d[b]+h[1-v]),_}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}(At);function KHe(t,e,n,r,i,a,o){function s(m,y){m.lineWidth==="auto"&&(m.lineWidth=y.lineWidth>0?2:0),mD(m,function(b,_){m[_]==="inherit"&&(m[_]=y[_])})}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:jd(f,o),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"),h=d.getLineStyle();if(s(h,n),u.fill==="auto"&&(u.fill=r.fill),u.stroke==="auto"&&(u.stroke=r.fill),h.stroke==="auto"&&(h.stroke=r.fill),!a){var g=e.get("inactiveBorderWidth"),v=u[c];u.lineWidth=g==="auto"?r.lineWidth>0&&v?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=d.get("inactiveColor"),h.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function JHe(t){var e=t.icon||"roundRect",n=rn(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 rJ(t,e,n,r){bD(t,e,n,r),n.dispatchAction({type:"legendToggleSelect",name:t??e}),yD(t,e,n,r)}function iJ(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 yD(t,e,n,r){iJ(n)||n.dispatchAction({type:"highlight",seriesName:t,name:e,excludeSeriesId:r})}function bD(t,e,n,r){iJ(n)||n.dispatchAction({type:"downplay",seriesName:t,name:e,excludeSeriesId:r})}function eje(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 mm(t,e,n){var r={},i=t==="toggleSelected",a;return n.eachComponent("legend",function(o){i&&a!=null?o[a?"select":"unSelect"](e.name):t==="allSelect"||t==="inverseSelect"?o[t]():(o[t](e.name),a=o.isSelected(e.name));var s=o.getData();k(s,function(l){var u=l.get("name");if(!(u===`
  331. `||u==="")){var c=o.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 tje(t){t.registerAction("legendToggleSelect","legendselectchanged",ke(mm,"toggleSelected")),t.registerAction("legendAllSelect","legendselectall",ke(mm,"allSelect")),t.registerAction("legendInverseSelect","legendinverseselect",ke(mm,"inverseSelect")),t.registerAction("legendSelect","legendselected",ke(mm,"select")),t.registerAction("legendUnSelect","legendunselected",ke(mm,"unSelect"))}function aJ(t){t.registerComponentModel(vD),t.registerComponentView(nJ),t.registerProcessor(t.PRIORITY.PROCESSOR.SERIES_FILTER,eje),t.registerSubTypeDefaulter("legend",function(){return"plain"}),tje(t)}var nje=function(t){U(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 a=kd(n);t.prototype.init.call(this,n,r,i),oJ(this,n,a)},e.prototype.mergeOption=function(n,r){t.prototype.mergeOption.call(this,n,r),oJ(this,this.option,n)},e.type="legend.scroll",e.defaultOption=gl(vD.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}(vD);function oJ(t,e,n){var r=t.getOrient(),i=[1,1];i[r.index]=0,vl(e,n,{type:"box",ignoreSize:!!i})}var sJ=Me,_D=["width","height"],OD=["x","y"],rje=function(t){U(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 sJ),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new sJ)},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,a,o,s,l){var u=this;t.prototype.renderInner.call(this,n,r,i,a,o,s,l);var c=this._controllerGroup,f=r.get("pageIconSize",!0),d=re(f)?f:[f,f];g("pagePrev",0);var h=r.getModel("pageTextStyle");c.add(new nt({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),g("pageNext",1);function g(v,m){var y=v+"DataIndex",b=$d(r.get("pageIcons",!0)[r.getOrient().name][m],{onclick:ve(u._pageGo,u,y,r,a)},{x:-d[0]/2,y:-d[1]/2,width:d[0],height:d[1]});b.name=v,c.add(b)}},e.prototype.layoutInner=function(n,r,i,a,o,s){var l=this.getSelectorGroup(),u=n.getOrient().index,c=_D[u],f=OD[u],d=_D[1-u],h=OD[1-u];o&&lc("horizontal",l,n.get("selectorItemGap",!0));var g=n.get("selectorButtonGap",!0),v=l.getBoundingRect(),m=[-v.x,-v.y],y=$e(i);o&&(y[c]=i[c]-v[c]-g);var b=this._layoutContentAndController(n,a,y,u,c,d,h,f);if(o){if(s==="end")m[u]+=b[c]+g;else{var _=v[c]+g;m[u]-=_,b[f]-=_}b[c]+=v[c]+g,m[1-u]+=b[h]+b[d]/2-v[d]/2,b[d]=Math.max(b[d],v[d]),b[h]=Math.min(b[h],v[h]+m[1-u]),l.x=m[0],l.y=m[1],l.markRedraw()}return b},e.prototype._layoutContentAndController=function(n,r,i,a,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,d=this._controllerGroup;lc(n.get("orient"),c,n.get("itemGap"),a?i.width:null,a?null:i.height),lc("horizontal",d,n.get("pageButtonItemGap",!0));var h=c.getBoundingRect(),g=d.getBoundingRect(),v=this._showController=h[o]>i[o],m=[-h.x,-h.y];r||(m[a]=c[u]);var y=[0,0],b=[-g.x,-g.y],_=Re(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(v){var O=n.get("pageButtonPosition",!0);O==="end"?b[a]+=i[o]-g[o]:y[a]+=g[o]+_}b[1-a]+=h[s]/2-g[s]/2,c.setPosition(m),f.setPosition(y),d.setPosition(b);var S={x:0,y:0};if(S[o]=v?i[o]:h[o],S[s]=Math.max(h[s],g[s]),S[l]=Math.min(0,g[l]+b[1-a]),f.__rectSize=i[o],v){var x={x:0,y:0};x[o]=Math.max(i[o]-g[o]-_,0),x[s]=S[s],f.setClipPath(new tt({shape:x})),f.__rectSize=x[o]}else d.eachChild(function(T){T.attr({invisible:!0,silent:!0})});var w=this._getPageInfo(n);return w.pageIndex!=null&&ot(c,{x:w.contentPosition[0],y:w.contentPosition[1]},v?n:null),this._updatePageInfoView(n,w),S},e.prototype._pageGo=function(n,r,i){var a=this._getPageInfo(r)[n];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:r.id})},e.prototype._updatePageInfoView=function(n,r){var i=this._controllerGroup;k(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",d=r[f]!=null,h=i.childOfName(c);h&&(h.setStyle("fill",d?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),h.cursor=d?"pointer":"default")});var a=i.childOfName("pageText"),o=n.get("pageFormatter"),s=r.pageIndex,l=s!=null?s+1:0,u=r.pageCount;a&&o&&a.setStyle("text",pe(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},e.prototype._getPageInfo=function(n){var r=n.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=n.getOrient().index,s=_D[o],l=OD[o],u=this._findTargetItemIndex(r),c=i.children(),f=c[u],d=c.length,h=d?1:0,g={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return g;var v=O(f);g.contentPosition[o]=-v.s;for(var m=u+1,y=v,b=v,_=null;m<=d;++m)_=O(c[m]),(!_&&b.e>y.s+a||_&&!S(_,y.s))&&(b.i>y.i?y=b:y=_,y&&(g.pageNextDataIndex==null&&(g.pageNextDataIndex=y.i),++g.pageCount)),b=_;for(var m=u-1,y=v,b=v,_=null;m>=-1;--m)_=O(c[m]),(!_||!S(b,_.s))&&y.i<b.i&&(b=y,g.pagePrevDataIndex==null&&(g.pagePrevDataIndex=y.i),++g.pageCount,++g.pageIndex),y=_;return g;function O(x){if(x){var w=x.getBoundingRect(),T=w[l]+x[l];return{s:T,e:T+w[s],i:x.__legendDataIndex}}}function S(x,w){return x.e>=w&&x.s<=w+a}},e.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var r,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===n&&(r=s)}),r??a},e.type="legend.scroll",e}(nJ);function ije(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 aje(t){je(aJ),t.registerComponentModel(nje),t.registerComponentView(rje),ije(t)}function oje(t){je(aJ),je(aje)}var sje=function(t){U(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=gl(dm.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(dm),SD=et();function lje(t,e,n){SD(t).coordSysRecordMap.each(function(r){var i=r.dataZoomInfoMap.get(e.uid);i&&(i.getRange=n)})}function uje(t,e){for(var n=SD(t).coordSysRecordMap,r=n.keys(),i=0;i<r.length;i++){var a=r[i],o=n.get(a),s=o.dataZoomInfoMap;if(s){var l=e.uid,u=s.get(l);u&&(s.removeKey(l),s.keys().length||lJ(n,o))}}}function lJ(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function cje(t,e){var n={model:e,containsPoint:ke(dje,e),dispatchAction:ke(fje,t),dataZoomInfoMap:null,controller:null},r=n.controller=new Xv(t.getZr());return k(["pan","zoom","scrollMove"],function(i){r.on(i,function(a){var o=[];n.dataZoomInfoMap.each(function(s){if(a.isAvailableBehavior(s.model.option)){var l=(s.getRange||{})[i],u=l&&l(s.dzReferCoordSysInfo,n.model.mainType,n.controller,a);!s.model.get("disabled",!0)&&u&&o.push({dataZoomId:s.model.id,start:u[0],end:u[1]})}}),o.length&&n.dispatchAction(o)})}),n}function fje(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function dje(t,e,n,r){return t.coordinateSystem.containPoint([n,r])}function hje(t){var e,n="type_",r={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return t.each(function(a){var o=a.model,s=o.get("disabled",!0)?!1:o.get("zoomLock",!0)?"move":!0;r[n+s]>r[n+e]&&(e=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function pje(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(e,n){var r=SD(n),i=r.coordSysRecordMap||(r.coordSysRecordMap=be());i.each(function(a){a.dataZoomInfoMap=null}),e.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=aK(a);k(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,cje(n,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=be());c.set(a.uid,{dzReferCoordSysInfo:s,model:a,getRange:null})})}),i.each(function(a){var o=a.controller,s,l=a.dataZoomInfoMap;if(l){var u=l.keys()[0];u!=null&&(s=l.get(u))}if(!s){lJ(i,a);return}var c=hje(l);o.enable(c.controlType,c.opt),o.setPointerChecker(a.containsPoint),Fd(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var gje=function(t){U(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(),lje(i,n,{pan:ve(xD.pan,this),zoom:ve(xD.zoom,this),scrollMove:ve(xD.scrollMove,this)})},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){uje(this.api,this.dataZoomModel),this.range=null},e.type="dataZoom.inside",e}(XI),xD={zoom:function(t,e,n,r){var i=this.range,a=i.slice(),o=t.axisModels[0];if(o){var s=wD[e](null,[r.originX,r.originY],o,n,t),l=(s.signal>0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(a[1]-a[0])+a[0],u=Math.max(1/r.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(kc(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:uJ(function(t,e,n,r,i,a){var o=wD[r]([a.oldX,a.oldY],[a.newX,a.newY],e,i,n);return o.signal*(t[1]-t[0])*o.pixel/o.pixelLength}),scrollMove:uJ(function(t,e,n,r,i,a){var o=wD[r]([0,0],[a.scrollDelta,a.scrollDelta],e,i,n);return o.signal*(t[1]-t[0])*a.scrollDelta})};function uJ(t){return function(e,n,r,i){var a=this.range,o=a.slice(),s=e.axisModels[0];if(s){var l=t(o,s,e,n,r,i);if(kc(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var wD={grid:function(t,e,n,r,i){var a=n.axis,o={},s=i.model.coordinateSystem.getRect();return t=t||[0,0],a.dim==="x"?(o.pixel=e[0]-t[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(t,e,n,r,i){var a=n.axis,o={},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"?(o.pixel=e[0]-t[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=e[1]-t[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(t,e,n,r,i){var a=n.axis,o=i.model.coordinateSystem.getRect(),s={};return t=t||[0,0],a.orient==="horizontal"?(s.pixel=e[0]-t[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function cJ(t){YI(t),t.registerComponentModel(sje),t.registerComponentView(gje),pje(t)}var vje=function(t){U(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=gl(dm.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}(dm),ym=tt,fJ=7,mje=1,CD=30,yje=7,bm="horizontal",dJ="vertical",bje=5,_je=["line","bar","candlestick","scatter"],Oje={easing:"cubicOut",duration:100,delay:0},Sje=function(t){U(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=ve(this._onBrush,this),this._onBrushEnd=ve(this._onBrushEnd,this)},e.prototype.render=function(n,r,i,a){if(t.prototype.render.apply(this,arguments),Fd(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}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){Sv(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 Me;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"),a=i?yje:0,o=this._findCoordRect(),s={width:r.getWidth(),height:r.getHeight()},l=this._orient===bm?{right:s.width-o.x-o.width,top:s.height-CD-fJ-a,width:o.width,height:CD}:{right:fJ,top:o.y,width:CD,height:o.height},u=kd(n.option);k(["right","top","width","height"],function(f){u[f]==="ph"&&(u[f]=l[f])});var c=sn(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===dJ&&this._size.reverse()},e.prototype._positionGroup=function(){var n=this.group,r=this._location,i=this._orient,a=this.dataZoomModel.getFirstTargetAxisModel(),o=a&&a.get("inverse"),s=this._displayables.sliderGroup,l=(this._dataShadowInfo||{}).otherAxisInverse;s.attr(i===bm&&!o?{scaleY:l?1:-1,scaleX:1}:i===bm&&o?{scaleY:l?1:-1,scaleX:-1}:i===dJ&&!o?{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,a=n.get("brushSelect");i.add(new ym({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:n.get("backgroundColor")},z2:-40}));var o=new ym({shape:{x:0,y:0,width:r[0],height:r[1]},style:{fill:"transparent"},z2:0,onclick:ve(this._onClickPanel,this)}),s=this.api.getZr();a?(o.on("mousedown",this._onBrushStart,this),o.cursor="crosshair",s.on("mousemove",this._onBrush),s.on("mouseup",this._onBrushEnd)):(s.off("mousemove",this._onBrush),s.off("mouseup",this._onBrushEnd)),i.add(o)},e.prototype._renderDataShadow=function(){var n=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!n)return;var r=this._size,i=this._shadowSize||[],a=n.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():n.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||r[0]!==i[0]||r[1]!==i[1]){var f=o.getDataExtent(l),d=(f[1]-f[0])*.3;f=[f[0]-d,f[1]+d];var h=[0,r[1]],g=[0,r[0]],v=[[r[0],0],[0,0]],m=[],y=g[1]/(o.count()-1),b=0,_=Math.round(o.count()/r[0]),O;o.each([l],function(P,C){if(_>0&&C%_){b+=y;return}var $=P==null||isNaN(P)||P==="",A=$?0:mt(P,f,h,!0);$&&!O&&C?(v.push([v[v.length-1][0],0]),m.push([m[m.length-1][0],0])):!$&&O&&(v.push([b,0]),m.push([b,0])),v.push([b,A]),m.push([b,A]),b+=y,O=$}),u=this._shadowPolygonPts=v,c=this._shadowPolylinePts=m}this._shadowData=o,this._shadowDim=l,this._shadowSize=[r[0],r[1]];var S=this.dataZoomModel;function x(P){var C=S.getModel(P?"selectedDataBackground":"dataBackground"),$=new Me,A=new wr({shape:{points:u},segmentIgnoreThreshold:1,style:C.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),E=new Cr({shape:{points:c},segmentIgnoreThreshold:1,style:C.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return $.add(A),$.add(E),$}for(var w=0;w<3;w++){var T=x(w===1);this._displayables.sliderGroup.add(T),this._displayables.dataShadowSegs.push(T)}},e.prototype._prepareDataShadowInfo=function(){var n=this.dataZoomModel,r=n.get("showDataShadow");if(r!==!1){var i,a=this.ecModel;return n.eachTargetAxis(function(o,s){var l=n.getAxisProxy(o,s).getTargetSeriesModels();k(l,function(u){if(!i&&!(r!==!0&&Fe(_je,u.get("type"))<0)){var c=a.getComponent(El(o),s).axis,f=xje(o),d,h=u.coordinateSystem;f!=null&&h.getOtherAxis&&(d=h.getOtherAxis(c).inverse),f=u.getData().mapDimension(f),i={thisAxis:c,series:u,thisDim:o,otherDim:f,otherAxisInverse:d}}},this)},this),i}},e.prototype._renderHandle=function(){var n=this.group,r=this._displayables,i=r.handles=[null,null],a=r.handleLabels=[null,null],o=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 ym({silent:f,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(d),o.add(new ym({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:mje,fill:"rgba(0,0,0,0)"}})),k([0,1],function(_){var O=l.get("handleIcon");!T1[O]&&O.indexOf("path://")<0&&O.indexOf("image://")<0&&(O="path://"+O,process.env.NODE_ENV!=="production"&&Hi("handleIcon now needs 'path://' prefix when using a path string"));var S=rn(O,-1,0,2,2,null,!0);S.attr({cursor:hJ(this._orient),draggable:!0,drift:ve(this._onDragMove,this,_),ondragend:ve(this._onDragEnd,this),onmouseover:ve(this._showDataInfo,this,!0),onmouseout:ve(this._showDataInfo,this,!1),z2:5});var x=S.getBoundingRect(),w=l.get("handleSize");this._handleHeight=he(w,this._size[1]),this._handleWidth=x.width/x.height*this._handleHeight,S.setStyle(l.getModel("handleStyle").getItemStyle()),S.style.strokeNoScale=!0,S.rectHover=!0,S.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),cl(S);var T=l.get("handleColor");T!=null&&(S.style.fill=T),o.add(i[_]=S);var P=l.getModel("textStyle");n.add(a[_]=new nt({silent:!0,invisible:!0,style:$t(P,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:P.getTextColor(),font:P.getFont()}),z2:10}))},this);var h=d;if(f){var g=he(l.get("moveHandleSize"),s[1]),v=r.moveHandle=new tt({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:g}}),m=g*.8,y=r.moveHandleIcon=rn(l.get("moveHandleIcon"),-m/2,-m/2,m,m,"#fff",!0);y.silent=!0,y.y=s[1]+g/2-.5,v.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var b=Math.min(s[1]/2,Math.max(g,10));h=r.moveZone=new tt({invisible:!0,shape:{y:s[1]-b,height:g+b}}),h.on("mouseover",function(){u.enterEmphasis(v)}).on("mouseout",function(){u.leaveEmphasis(v)}),o.add(v),o.add(y),o.add(h)}h.attr({draggable:!0,cursor:hJ(this._orient),drift:ve(this._onDragMove,this,"all"),ondragstart:ve(this._showDataInfo,this,!0),ondragend:ve(this._onDragEnd,this),onmouseover:ve(this._showDataInfo,this,!0),onmouseout:ve(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var n=this._range=this.dataZoomModel.getPercentRange(),r=this._getViewExtent();this._handleEnds=[mt(n[0],[0,100],r,!0),mt(n[1],[0,100],r,!0)]},e.prototype._updateInterval=function(n,r){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];kc(r,a,o,i.get("zoomLock")?"all":n,s.minSpan!=null?mt(s.minSpan,l,o,!0):null,s.maxSpan!=null?mt(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=di([mt(a[0],o,l,!0),mt(a[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},e.prototype._updateView=function(n){var r=this._displayables,i=this._handleEnds,a=di(i.slice()),o=this._size;k([0,1],function(h){var g=r.handles[h],v=this._handleHeight;g.attr({scaleX:v/2,scaleY:v/2,x:i[h]+(h?-1:1),y:o[1]/2-v/2})},this),r.filler.setShape({x:a[0],y:0,width:a[1]-a[0],height:o[1]});var s={x:a[0],width:a[1]-a[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,a[0],a[1],o[0]],c=0;c<l.length;c++){var f=l[c],d=f.getClipPath();d||(d=new tt,f.setClipPath(d)),d.setShape({x:u[c],y:0,width:u[c+1]-u[c],height:o[1]})}this._updateDataInfo(n)},e.prototype._updateDataInfo=function(n){var r=this.dataZoomModel,i=this._displayables,a=i.handleLabels,o=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=di(this._handleEnds.slice());h.call(this,0),h.call(this,1);function h(g){var v=hl(i.handles[g].parent,this.group),m=t1(g===0?"right":"left",v),y=this._handleWidth/2+bje,b=Ea([d[g]+(g===0?-y:y),this._size[1]/2],v);a[g].setStyle({x:b[0],y:b[1],verticalAlign:o===bm?"middle":m,align:o===bm?m:"center",text:s[g]})}},e.prototype._formatLabel=function(n,r){var i=this.dataZoomModel,a=i.get("labelFormatter"),o=i.get("labelPrecision");(o==null||o==="auto")&&(o=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(o,20));return xe(a)?a(n,s):pe(a)?a.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,a){this._dragging=!0,as(a.event);var o=this._displayables.sliderGroup.getLocalTransform(),s=Ea([r,i],o,!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 a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(n){var r=n.offsetX,i=n.offsetY;this._brushStart=new Be(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,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=di([mt(i.x,o,s,!0),mt(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(n){this._brushing&&(as(n.event),this._updateBrushRect(n.offsetX,n.offsetY))},e.prototype._updateBrushRect=function(n,r){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new ym({silent:!0,style:a.getModel("brushStyle").getItemStyle()}),i.sliderGroup.add(o)),o.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),o.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?Oje:null,start:r[0],end:r[1]})},e.prototype._findCoordRect=function(){var n,r=aK(this.dataZoomModel).infoList;if(!n&&r.length){var i=r[0].model.coordinateSystem;n=i.getRect&&i.getRect()}if(!n){var a=this.api.getWidth(),o=this.api.getHeight();n={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return n},e.type="dataZoom.slider",e}(XI);function xje(t){var e={x:"y",y:"x",radius:"angle",angle:"radius"};return e[t]}function hJ(t){return t==="vertical"?"ns-resize":"ew-resize"}function pJ(t){t.registerComponentModel(vje),t.registerComponentView(Sje),YI(t)}function wje(t){je(cJ),je(pJ)}var gJ={get:function(t,e,n){var r=$e((Cje[t]||{})[e]);return n&&re(r)?r[r.length-1]:r}},Cje={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]}},vJ=An.mapVisual,Tje=An.eachVisual,Pje=re,mJ=k,$je=di,Aje=mt,eS=function(t){U(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&&kK(i,n,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(n){var r=this.stateList;n=ve(n,this),this.controllerVisuals=aD(this.option.controller,r,n),this.targetVisuals=aD(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,a){r.push(a)}):r=xt(n),r},e.prototype.eachTargetSeries=function(n,r){k(this.getTargetSeriesIndices(),function(i){var a=this.ecModel.getSeriesByIndex(i);a&&n.call(r,a)},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 a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;i=i||["<",">"],re(n)&&(n=n.slice(),u=!0);var c=r?n:u?[f(n[0]),f(n[1])]:f(n);if(pe(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(xe(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(o,20))}},e.prototype.resetExtent=function(){var n=this.option,r=$je([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,a=i.length-1;a>=0;a--){var o=i[a],s=n.getDimensionInfo(o);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},a=r.target||(r.target={}),o=r.controller||(r.controller={});Le(a,i),Le(o,i);var s=this.isCategory();l.call(this,a),l.call(this,o),u.call(this,a,"inRange","outOfRange"),c.call(this,o);function l(f){Pje(r.color)&&!f.inRange&&(f.inRange={color:r.color.slice().reverse()}),f.inRange=f.inRange||{color:n.get("gradientColor")}}function u(f,d,h){var g=f[d],v=f[h];g&&!v&&(v=f[h]={},mJ(g,function(m,y){if(An.isValidType(y)){var b=gJ.get(y,"inactive",s);b!=null&&(v[y]=b,y==="color"&&!v.hasOwnProperty("opacity")&&!v.hasOwnProperty("colorAlpha")&&(v.opacity=[0,0]))}}))}function c(f){var d=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,h=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,g=this.get("inactiveColor"),v=this.getItemSymbol(),m=v||"roundRect";mJ(this.stateList,function(y){var b=this.itemSize,_=f[y];_||(_=f[y]={color:s?g:[g]}),_.symbol==null&&(_.symbol=d&&$e(d)||(s?m:[m])),_.symbolSize==null&&(_.symbolSize=h&&$e(h)||(s?b[0]:[b[0],b[0]])),_.symbol=vJ(_.symbol,function(x){return x==="none"?m:x});var O=_.symbolSize;if(O!=null){var S=-1/0;Tje(O,function(x){x>S&&(S=x)}),_.symbolSize=vJ(O,function(x){return Aje(x,[0,S],[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}(He),yJ=[20,140],Eje=function(t){U(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]=yJ[0]),(n[1]==null||isNaN(n[1]))&&(n[1]=yJ[1])},e.prototype._resetRange=function(){var n=this.getExtent(),r=this.option.range;!r||r.auto?(n.auto=1,this.option.range=n):re(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),k(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=di((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 a=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){n[0]<=s&&s<=n[1]&&a.push(l)},this),r.push({seriesId:i.id,dataIndex:a})},this),r},e.prototype.getVisualMeta=function(n){var r=bJ(this,"outOfRange",this.getExtent()),i=bJ(this,"inRange",this.option.range.slice()),a=[];function o(h,g){a.push({value:h,color:n(h,g)})}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]&&o(r[l],"outOfRange");for(var f=1;s<u;s++,f=0)f&&a.length&&o(i[s],"outOfRange"),o(i[s],"inRange");for(var f=1;l<c;l++)(!i.length||i[i.length-1]<r[l])&&(f&&(a.length&&o(a[a.length-1].value,"outOfRange"),f=0),o(r[l],"outOfRange"));var d=a.length;return{stops:a,outerColors:[d?a[0].color:"transparent",d?a[d-1].color:"transparent"]}},e.type="visualMap.continuous",e.defaultOption=gl(eS.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}(eS);function bJ(t,e,n){if(n[0]===n[1])return n.slice();for(var r=200,i=(n[1]-n[0])/r,a=n[0],o=[],s=0;s<=r&&a<n[1];s++)o.push(a),a+=i;return o.push(n[1]),o}var _J=function(t){U(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,a){if(this.visualMapModel=n,n.get("show")===!1){this.group.removeAll();return}this.doRender(n,r,i,a)},e.prototype.renderBackground=function(n){var r=this.visualMapModel,i=ac(r.get("padding")||0),a=n.getBoundingRect();n.add(new tt({z2:-1,silent:!0,shape:{x:a.x-i[3],y:a.y-i[0],width:a.width+i[3]+i[1],height:a.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 a=i.forceState,o=this.visualMapModel,s={};if(r==="color"){var l=o.get("contentColor");s.color=l}function u(h){return s[h]}function c(h,g){s[h]=g}var f=o.controllerVisuals[a||o.getValueState(n)],d=An.prepareVisualTypes(f);return k(d,function(h){var g=f[h];i.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",g=f.__alphaForOpacity),An.dependsOn(h,r)&&g&&g.applyVisual(n,u,c)}),s[r]},e.prototype.positionGroup=function(n){var r=this.visualMapModel,i=this.api;h1(n,r.getBoxLayoutParams(),{width:i.getWidth(),height:i.getHeight()})},e.prototype.doRender=function(n,r,i,a){},e.type="visualMap",e}(At),OJ=[["left","right","width"],["top","bottom","height"]];function SJ(t,e,n){var r=t.option,i=r.align;if(i!=null&&i!=="auto")return i;for(var a={width:e.getWidth(),height:e.getHeight()},o=r.orient==="horizontal"?1:0,s=OJ[o],l=[0,null,10],u={},c=0;c<3;c++)u[OJ[1-o][c]]=l[c],u[s[c]]=c===2?n[0]:r[s[c]];var f=[["x","width",3],["y","height",0]][o],d=sn(u,a,r.padding);return s[(d.margin[f[2]]||0)+d[f[0]]+d[f[1]]*.5<a[f[1]]*.5?0:1]}function tS(t,e){return k(t||[],function(n){n.dataIndex!=null&&(n.dataIndexInside=n.dataIndex,n.dataIndex=null),n.highlightKey="visualMap"+(e?e.componentIndex:"")}),t}var So=mt,Mje=k,xJ=Math.min,TD=Math.max,Ije=12,Dje=6,Rje=function(t){U(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=ve(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=ve(this._hideIndicator,this)},e.prototype.doRender=function(n,r,i,a){(!a||a.type!=="selectDataRange"||a.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 a=r[1-i];a=a!=null?a+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.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,h=this.visualMapModel.textStyleModel;this.group.add(new nt({style:$t(h,{x:c[0],y:c[1],verticalAlign:d==="horizontal"?"middle":f,align:d==="horizontal"?f:"center",text:a})}))}},e.prototype._renderBar=function(n){var r=this.visualMapModel,i=this._shapes,a=r.itemSize,o=this._orient,s=this._useHandle,l=SJ(r,this.api,a),u=i.mainGroup=this._createBarGroup(l),c=new Me;u.add(c),c.add(i.outOfRange=wJ()),c.add(i.inRange=wJ(null,s?TJ(this._orient):null,ve(this._dragHandle,this,"all",!1),ve(this._dragHandle,this,"all",!0))),c.setClipPath(new tt({shape:{x:0,y:0,width:a[0],height:a[1],r:3}}));var f=r.textStyleModel.getTextRect("国"),d=TD(f.width,f.height);s&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(r,u,0,a,d,o),this._createHandle(r,u,1,a,d,o)),this._createIndicator(r,u,a,d,o),n.add(u)},e.prototype._createHandle=function(n,r,i,a,o,s){var l=ve(this._dragHandle,this,i,!1),u=ve(this._dragHandle,this,i,!0),c=Ta(n.get("handleSize"),a[0]),f=rn(n.get("handleIcon"),-c/2,-c/2,c,c,null,!0),d=TJ(this._orient);f.attr({cursor:d,draggable:!0,drift:l,ondragend:u,onmousemove:function(y){as(y.event)}}),f.x=a[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(),Ju(f,!0),r.add(f);var h=this.visualMapModel.textStyleModel,g=new nt({cursor:d,draggable:!0,drift:l,onmousemove:function(y){as(y.event)},ondragend:u,style:$t(h,{x:0,y:0,text:""})});g.ensureState("blur").style={opacity:.1},g.stateTransition={duration:200},this.group.add(g);var v=[c,0],m=this._shapes;m.handleThumbs[i]=f,m.handleLabelPoints[i]=v,m.handleLabels[i]=g},e.prototype._createIndicator=function(n,r,i,a,o){var s=Ta(n.get("indicatorSize"),i[0]),l=rn(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 Ln){var c=l.style;l.useStyle(ne({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 nt({silent:!0,invisible:!0,style:$t(f,{x:0,y:0,text:""})});this.group.add(d);var h=[(o==="horizontal"?a/2:Dje)+i[0]/2,0],g=this._shapes;g.indicator=l,g.indicatorLabel=d,g.indicatorLabelPoint=h,this._firstShowIndicator=!0},e.prototype._dragHandle=function(n,r,i,a){if(this._useHandle){if(this._dragging=!r,!r){var o=this._applyTransform([i,a],this._shapes.mainGroup,!0);this._updateInterval(n,o[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():CJ(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[n],!1)}},e.prototype._resetInterval=function(){var n=this.visualMapModel,r=this._dataInterval=n.getSelected(),i=n.getExtent(),a=[0,n.itemSize[1]];this._handleEnds=[So(r[0],i,a,!0),So(r[1],i,a,!0)]},e.prototype._updateInterval=function(n,r){r=r||0;var i=this.visualMapModel,a=this._handleEnds,o=[0,i.itemSize[1]];kc(r,a,o,n,0);var s=i.getExtent();this._dataInterval=[So(a[0],o,s,!0),So(a[1],o,s,!0)]},e.prototype._updateView=function(n){var r=this.visualMapModel,i=r.getExtent(),a=this._shapes,o=[0,r.itemSize[1]],s=n?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,i,s,"inRange"),u=this._createBarVisual(i,i,o,"outOfRange");a.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),a.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},e.prototype._createBarVisual=function(n,r,i,a){var o={forceState:a,convertOpacityToAlpha:!0},s=this._makeColorGradient(n,o),l=[this.getControllerVisual(n[0],"symbolSize",o),this.getControllerVisual(n[1],"symbolSize",o)],u=this._createBarPoints(i,l);return{barColor:new wd(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,a=[],o=(n[1]-n[0])/i;a.push({color:this.getControllerVisual(n[0],"color",r),offset:0});for(var s=1;s<i;s++){var l=n[0]+o*s;if(l>n[1])break;a.push({color:this.getControllerVisual(l,"color",r),offset:s/i})}return a.push({color:this.getControllerVisual(n[1],"color",r),offset:1}),a},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 Me(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,a=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=a.itemSize,u=a.getExtent();Mje([0,1],function(c){var f=o[c];f.setStyle("fill",r.handlesColor[c]),f.y=n[c];var d=So(n[c],[0,l[1]],u,!0),h=this.getControllerVisual(d,"symbolSize");f.scaleX=f.scaleY=h/l[0],f.x=l[0]-h/2;var g=Ea(i.handleLabelPoints[c],hl(f,this.group));s[c].setStyle({x:g[0],y:g[1],text:a.formatValueText(this._dataInterval[c]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(n,r,i,a){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var d={convertOpacityToAlpha:!0},h=this.getControllerVisual(n,"color",d),g=this.getControllerVisual(n,"symbolSize"),v=So(n,s,u,!0),m=l[0]-g/2,y={x:f.x,y:f.y};f.y=v,f.x=m;var b=Ea(c.indicatorLabelPoint,hl(f,this.group)),_=c.indicatorLabel;_.attr("invisible",!1);var O=this._applyTransform("left",c.mainGroup),S=this._orient,x=S==="horizontal";_.setStyle({text:(i||"")+o.formatValueText(r),verticalAlign:x?O:"middle",align:x?"center":O});var w={x:m,y:v,style:{fill:h}},T={style:{x:b[0],y:b[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var P={duration:100,easing:"cubicInOut",additive:!0};f.x=y.x,f.y=y.y,f.animateTo(w,P),_.animateTo(T,P)}else f.attr(w),_.attr(T);this._firstShowIndicator=!1;var C=this._shapes.handleLabels;if(C)for(var $=0;$<C.length;$++)this.api.enterBlur(C[$])}},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,a=n._applyTransform([r.offsetX,r.offsetY],n._shapes.mainGroup,!0,!0);a[1]=xJ(TD(0,a[1]),i[1]),n._doHoverLinkToSeries(a[1],0<=a[0]&&a[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,a=i.itemSize;if(i.option.hoverLink){var o=[0,a[1]],s=i.getExtent();n=xJ(TD(o[0],n),o[1]);var l=kje(i,s,o),u=[n-l,n+l],c=So(n,o,s,!0),f=[So(u[0],o,s,!0),So(u[1],o,s,!0)];u[0]<o[0]&&(f[0]=-1/0),u[1]>o[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,h=[];(r||CJ(i))&&(h=this._hoverLinkDataIndices=i.findTargetDataIndices(f));var g=bIe(d,h);this._dispatchHighDown("downplay",tS(g[0],i)),this._dispatchHighDown("highlight",tS(g[1],i))}},e.prototype._hoverLinkFromSeriesMouseOver=function(n){var r;if(hc(n.target,function(l){var u=De(l);if(u.dataIndex!=null)return r=u,!0},!0),!!r){var i=this.ecModel.getSeriesByIndex(r.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(i)){var o=i.getData(r.dataType),s=o.getStore().get(a.getDataDimensionIndex(o),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",tS(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,a){var o=hl(r,a?null:this.group);return re(n)?Ea(n,o,i):t1(n,o,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}(_J);function wJ(t,e,n,r){return new wr({shape:{points:t},draggable:!!n,cursor:e,drift:n,onmousemove:function(i){as(i.event)},ondragend:r})}function kje(t,e,n){var r=Ije/2,i=t.get("hoverLinkDataSize");return i&&(r=So(i,e,n,!0)/2),r}function CJ(t){var e=t.get("hoverLinkOnHandle");return!!(e??t.get("realtime"))}function TJ(t){return t==="vertical"?"ns-resize":"ew-resize"}var Nje={type:"selectDataRange",event:"dataRangeSelected",update:"update"},Lje=function(t,e){e.eachComponent({mainType:"visualMap",query:t},function(n){n.setSelected(t.selected)})},Vje=[{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(oHe(r.stateList,r.targetVisuals,ve(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 a=i.getVisualMeta(ve(Bje,null,t,i))||{stops:[],outerColors:[]},o=i.getDataDimensionIndex(n);o>=0&&(a.dimension=o,r.push(a))}}),t.getData().setVisual("visualMeta",r)}}];function Bje(t,e,n,r){for(var i=e.targetVisuals[r],a=An.prepareVisualTypes(i),o={color:Cv(t.getData(),"color")},s=0,l=a.length;s<l;s++){var u=a[s],c=i[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(n,f,d)}return o.color;function f(h){return o[h]}function d(h,g){o[h]=g}}var PJ=k;function zje(t){var e=t&&t.visualMap;re(e)||(e=e?[e]:[]),PJ(e,function(n){if(n){gh(n,"splitList")&&!gh(n,"pieces")&&(n.pieces=n.splitList,delete n.splitList);var r=n.pieces;r&&re(r)&&PJ(r,function(i){we(i)&&(gh(i,"start")&&!gh(i,"min")&&(i.min=i.start),gh(i,"end")&&!gh(i,"max")&&(i.max=i.end))})}})}function gh(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var $J=!1;function AJ(t){$J||($J=!0,t.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),t.registerAction(Nje,Lje),k(Vje,function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)}),t.registerPreprocessor(zje))}function EJ(t){t.registerComponentModel(Eje),t.registerComponentView(Rje),AJ(t)}var Fje=function(t){U(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=[],Wje[this._mode].call(this,this._pieceList),this._resetSelected(n,r);var a=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=$e(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=ie(this._pieceList,function(l){return l=$e(l),s!=="inRange"&&(l.visual=null),l}))})},e.prototype.completeVisualOption=function(){var n=this.option,r={},i=An.listVisualTypes(),a=this.isCategory();k(n.pieces,function(s){k(i,function(l){s.hasOwnProperty(l)&&(r[l]=1)})}),k(r,function(s,l){var u=!1;k(this.stateList,function(c){u=u||o(n,c,l)||o(n.target,c,l)},this),!u&&k(this.stateList,function(c){(n[c]||(n[c]={}))[l]=gJ.get(l,c==="inRange"?"active":"inactive",a)})},this);function o(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,a=this._pieceList,o=(r?i:n).selected||{};if(i.selected=o,k(a,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),i.selectedMode==="single"){var s=!1;k(a,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[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=$e(n)},e.prototype.getValueState=function(n){var r=An.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(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=An.findPieceIndex(l,i);c===n&&o.push(u)},this),r.push({seriesId:a.id,dataIndex:o})},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=["",""],a=this;function o(c,f){var d=a.getRepresentValue({interval:c});f||(f=a.getValueState(d));var h=n(d,f);c[0]===-1/0?i[0]=h:c[1]===1/0?i[1]=h:r.push({value:c[0],color:h},{value:c[1],color:h})}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 k(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:r,outerColors:i}},e.type="visualMap.piecewise",e.defaultOption=gl(eS.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}(eS),Wje={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 a=(r[1]-r[0])/i;+a.toFixed(n)!==a&&n<5;)n++;e.precision=n,a=+a.toFixed(n),e.minOpen&&t.push({interval:[-1/0,r[0]],close:[0,0]});for(var o=0,s=r[0];o<i;s+=a,o++){var l=o===i-1?r[1]:s+a;t.push({interval:[s,l],close:[1,1]})}e.maxOpen&&t.push({interval:[r[1],1/0],close:[0,0]}),l2(t),k(t,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(t){var e=this.option;k(e.categories,function(n){t.push({text:this.formatValueText(n,!0),value:n})},this),MJ(e,t)},pieces:function(t){var e=this.option;k(e.pieces,function(n,r){we(n)||(n={value:n});var i={text:"",index:r};if(n.label!=null&&(i.text=n.label),n.hasOwnProperty("value")){var a=i.value=n.value;i.interval=[a,a],i.close=[1,1]}else{for(var o=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],h=0;h<3&&o[f]==null;h++)o[f]=n[d[h]],s[f]=l[h],c[f]=h===2;o[f]==null&&(o[f]=u[f])}c[0]&&o[1]===1/0&&(s[0]=0),c[1]&&o[0]===-1/0&&(s[1]=0),process.env.NODE_ENV!=="production"&&o[0]>o[1]&&console.warn("Piece "+r+"is illegal: "+o+" lower bound should not greater then uppper bound."),o[0]===o[1]&&s[0]&&s[1]&&(i.value=o[0])}i.visual=An.retrieveVisuals(n),t.push(i)},this),MJ(e,t),l2(t),k(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 MJ(t,e){var n=t.inverse;(t.orient==="vertical"?!n:n)&&e.reverse()}var Qje=function(t){U(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"),a=r.textStyleModel,o=a.getFont(),s=a.getTextColor(),l=this._getItemAlign(),u=r.itemSize,c=this._getViewData(),f=c.endsText,d=tn(r.get("showLabel",!0),!f);f&&this._renderEndsText(n,f[0],u,d,l),k(c.viewPieceList,function(h){var g=h.piece,v=new Me;v.onclick=ve(this._onItemClick,this,g),this._enableHoverLink(v,h.indexInModelPieceList);var m=r.getRepresentValue(g);if(this._createItemSymbol(v,m,[0,0,u[0],u[1]]),d){var y=this.visualMapModel.getValueState(m);v.add(new nt({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:g.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:y==="outOfRange"?.5:1}}))}n.add(v)},this),f&&this._renderEndsText(n,f[1],u,d,l),lc(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 a("highlight")}).on("mouseout",function(){return a("downplay")});var a=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:tS(s.findTargetDataIndices(r),s)})}},e.prototype._getItemAlign=function(){var n=this.visualMapModel,r=n.option;if(r.orient==="vertical")return SJ(n,this.api,n.itemSize);var i=r.align;return(!i||i==="auto")&&(i="left"),i},e.prototype._renderEndsText=function(n,r,i,a,o){if(r){var s=new Me,l=this.visualMapModel.textStyleModel;s.add(new nt({style:$t(l,{x:a?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:a?o:"center",text:r})})),n.add(s)}},e.prototype._getViewData=function(){var n=this.visualMapModel,r=ie(n.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=n.get("text"),a=n.get("orient"),o=n.get("inverse");return(a==="horizontal"?o:!o)?r.reverse():i&&(i=i.slice().reverse()),{viewPieceList:r,endsText:i}},e.prototype._createItemSymbol=function(n,r,i){n.add(rn(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,a=i.selectedMode;if(a){var o=$e(i.selected),s=r.getSelectedMapKey(n);a==="single"||a===!0?(o[s]=!0,k(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},e.type="visualMap.piecewise",e}(_J);function IJ(t){t.registerComponentModel(Fje),t.registerComponentView(Qje),AJ(t)}function Hje(t){je(EJ),je(IJ)}var jje={label:{enabled:!0},decal:{show:!1}},DJ=et(),Gje={};function Zje(t,e){var n=t.getModel("aria");if(!n.get("enabled"))return;var r=$e(jje);Le(r.label,t.getLocaleModel().get("aria"),!1),Le(n.option,r,!1),i(),a();function i(){var u=n.getModel("decal"),c=u.get("show");if(c){var f=be();t.eachSeries(function(d){if(!d.isColorBySeries()){var h=f.get(d.type);h||(h={},f.set(d.type,h)),DJ(d).scope=h}}),t.eachRawSeries(function(d){if(t.isSeriesFiltered(d))return;if(xe(d.enableAriaDecal)){d.enableAriaDecal();return}var h=d.getData();if(d.isColorBySeries()){var b=OA(d.ecModel,d.name,Gje,t.getSeriesCount()),_=h.getVisual("decal");h.setVisual("decal",O(_,b))}else{var g=d.getRawData(),v={},m=DJ(d).scope;h.each(function(S){var x=h.getRawIndex(S);v[x]=S});var y=g.count();g.each(function(S){var x=v[S],w=g.getName(S)||S+"",T=OA(d.ecModel,w,m,y),P=h.getItemVisual(x,"decal");h.setItemVisual(x,"decal",O(P,T))})}function O(S,x){var w=S?ne(ne({},x),S):x;return w.dirty=!0,w}})}}function a(){var u=e.getZr().dom;if(u){var c=t.getLocaleModel().get("aria"),f=n.getModel("label");if(f.option=Te(f.option,c),!!f.get("enabled")){if(f.get("description")){u.setAttribute("aria-label",f.get("description"));return}var d=t.getSeriesCount(),h=f.get(["data","maxCount"])||10,g=f.get(["series","maxCount"])||10,v=Math.min(d,g),m;if(!(d<1)){var y=s();if(y){var b=f.get(["general","withTitle"]);m=o(b,{title:y})}else m=f.get(["general","withoutTitle"]);var _=[],O=d>1?f.get(["series","multiple","prefix"]):f.get(["series","single","prefix"]);m+=o(O,{seriesCount:d}),t.eachSeries(function(T,P){if(P<v){var C=void 0,$=T.get("name"),A=$?"withName":"withoutName";C=d>1?f.get(["series","multiple",A]):f.get(["series","single",A]),C=o(C,{seriesId:T.seriesIndex,seriesName:T.get("name"),seriesType:l(T.subType)});var E=T.getData();if(E.count()>h){var D=f.get(["data","partialData"]);C+=o(D,{displayCnt:h})}else C+=f.get(["data","allData"]);for(var M=f.get(["data","separator","middle"]),R=f.get(["data","separator","end"]),N=[],V=0;V<E.count();V++)if(V<h){var L=E.getName(V),z=E.getValues(V),B=f.get(["data",L?"withName":"withoutName"]);N.push(o(B,{name:L,value:z.join(M)}))}C+=N.join(M)+R,_.push(C)}});var S=f.getModel(["series","multiple","separator"]),x=S.get("middle"),w=S.get("end");m+=_.join(x)+w,u.setAttribute("aria-label",m)}}}}function o(u,c){if(!pe(u))return u;var f=u;return k(c,function(d,h){f=f.replace(new RegExp("\\{\\s*"+h+"\\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 Uje(t){if(!(!t||!t.aria)){var e=t.aria;e.show!=null&&(e.enabled=e.show),e.label=e.label||{},k(["description","general","series","data"],function(n){e[n]!=null&&(e.label[n]=e[n])})}}function Xje(t){t.registerPreprocessor(Uje),t.registerVisual(t.PRIORITY.VISUAL.ARIA,Zje)}var RJ={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},Yje=function(){function t(e){var n=this._condVal=pe(e)?new RegExp(e):f$(e)?e:null;if(n==null){var r="";process.env.NODE_ENV!=="production"&&(r=_r("Illegal regexp",e,"in")),dt(r)}}return t.prototype.evaluate=function(e){var n=typeof e;return pe(n)?this._condVal.test(e):it(n)?this._condVal.test(e+""):!1},t}(),qje=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),Kje=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}(),Jje=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}(),e9e=function(){function t(){}return t.prototype.evaluate=function(){return!this.child.evaluate()},t}(),t9e=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,a=0;a<this.subCondList.length;a++)if(!this.subCondList[a].evaluate(e?i:r))return!1;return!0},t}();function PD(t,e){if(t===!0||t===!1){var n=new qje;return n.value=t,n}var r="";return NJ(t)||(process.env.NODE_ENV!=="production"&&(r=_r("Illegal config. Expect a plain object but actually",t)),dt(r)),t.and?kJ("and",t,e):t.or?kJ("or",t,e):t.not?n9e(t,e):r9e(t,e)}function kJ(t,e,n){var r=e[t],i="";process.env.NODE_ENV!=="production"&&(i=_r('"and"/"or" condition should only be `'+t+": [...]` and must not be empty array.","Illegal condition:",e)),re(r)||dt(i),r.length||dt(i);var a=t==="and"?new Kje:new Jje;return a.children=ie(r,function(o){return PD(o,n)}),a.children.length||dt(i),a}function n9e(t,e){var n=t.not,r="";process.env.NODE_ENV!=="production"&&(r=_r('"not" condition should only be `not: {}`.',"Illegal condition:",t)),NJ(n)||dt(r);var i=new e9e;return i.child=PD(n,e),i.child||dt(r),i}function r9e(t,e){for(var n="",r=e.prepareGetValue(t),i=[],a=Ue(t),o=t.parser,s=o?cj(o):null,l=0;l<a.length;l++){var u=a[l];if(!(u==="parser"||e.valueGetterAttrMap.get(u))){var c=me(RJ,u)?RJ[u]:u,f=t[u],d=s?s(f):f,h=Pke(c,d)||c==="reg"&&new Yje(d);h||(process.env.NODE_ENV!=="production"&&(n=_r('Illegal relational operation: "'+u+'" in condition:',t)),dt(n)),i.push(h)}}i.length||(process.env.NODE_ENV!=="production"&&(n=_r("Relational condition must have at least one operator.","Illegal condition:",t)),dt(n));var g=new t9e;return g.valueGetterParam=r,g.valueParser=s,g.getValue=e.getValue,g.subCondList=i,g}function NJ(t){return we(t)&&!jn(t)}var i9e=function(){function t(e,n){this._cond=PD(e,n)}return t.prototype.evaluate=function(){return this._cond.evaluate()},t}();function a9e(t,e){return new i9e(t,e)}var o9e={type:"echarts:filter",transform:function(t){for(var e=t.upstream,n,r=a9e(t.config,{valueGetterAttrMap:be({dimension:!0}),prepareGetValue:function(s){var l="",u=s.dimension;me(s,"dimension")||(process.env.NODE_ENV!=="production"&&(l=_r('Relation condition must has prop "dimension" specified.',"Illegal condition:",s)),dt(l));var c=e.getDimensionInfo(u);return c||(process.env.NODE_ENV!=="production"&&(l=_r("Can not find dimension info via: "+u+`.
  332. `,"Existing dimensions: ",e.cloneAllDimensionInfo(),`.
  333. `,"Illegal condition:",s,`.
  334. `)),dt(l)),{dimIdx:c.index}},getValue:function(s){return e.retrieveValueFromItem(n,s.dimIdx)}}),i=[],a=0,o=e.count();a<o;a++)n=e.getRawDataItem(a),r.evaluate()&&i.push(n);return{data:i}}},$D="";process.env.NODE_ENV!=="production"&&($D=["Valid config is like:",'{ dimension: "age", order: "asc" }','or [{ dimension: "age", order: "asc"], { dimension: "date", order: "desc" }]'].join(" "));var s9e={type:"echarts:sort",transform:function(t){var e=t.upstream,n=t.config,r="",i=xt(n);i.length||(process.env.NODE_ENV!=="production"&&(r="Empty `config` in sort transform."),dt(r));var a=[];k(i,function(c){var f=c.dimension,d=c.order,h=c.parser,g=c.incomparable;if(f==null&&(process.env.NODE_ENV!=="production"&&(r='Sort transform config must has "dimension" specified.'+$D),dt(r)),d!=="asc"&&d!=="desc"&&(process.env.NODE_ENV!=="production"&&(r='Sort transform config must has "order" specified.'+$D),dt(r)),g&&g!=="min"&&g!=="max"){var v="";process.env.NODE_ENV!=="production"&&(v='incomparable must be "min" or "max" rather than "'+g+'".'),dt(v)}if(d!=="asc"&&d!=="desc"){var m="";process.env.NODE_ENV!=="production"&&(m='order must be "asc" or "desc" rather than "'+d+'".'),dt(m)}var y=e.getDimensionInfo(f);y||(process.env.NODE_ENV!=="production"&&(r=_r("Can not find dimension info via: "+f+`.
  335. `,"Existing dimensions: ",e.cloneAllDimensionInfo(),`.
  336. `,"Illegal config:",c,`.
  337. `)),dt(r));var b=h?cj(h):null;h&&!b&&(process.env.NODE_ENV!=="production"&&(r=_r("Invalid parser name "+h+`.
  338. `,"Illegal config:",c,`.
  339. `)),dt(r)),a.push({dimIdx:y.index,parser:b,comparator:new dj(d,g)})});var o=e.sourceFormat;o!==or&&o!==Yi&&(process.env.NODE_ENV!=="production"&&(r='sourceFormat "'+o+'" is not supported yet'),dt(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<a.length;d++){var h=a[d],g=e.retrieveValueFromItem(c,h.dimIdx),v=e.retrieveValueFromItem(f,h.dimIdx);h.parser&&(g=h.parser(g),v=h.parser(v));var m=h.comparator.evaluate(g,v);if(m!==0)return m}return 0}),{data:s}}};function l9e(t){t.registerTransform(o9e),t.registerTransform(s9e)}var u9e=function(t){U(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 yj(this),bj(this)},e.prototype.mergeOption=function(n,r){t.prototype.mergeOption.call(this,n,r),bj(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:po},e}(He),c9e=function(t){U(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="dataset",n}return e.type="dataset",e}(At);function f9e(t){t.registerComponentModel(u9e),t.registerComponentView(c9e)}var xo=co.CMD;function vh(t,e){return Math.abs(t-e)<1e-5}function AD(t){var e=t.data,n=t.len(),r=[],i,a=0,o=0,s=0,l=0;function u(E,D){i&&i.length>2&&r.push(i),i=[E,D]}function c(E,D,M,R){vh(E,M)&&vh(D,R)||i.push(E,D,M,R,M,R)}function f(E,D,M,R,N,V){var L=Math.abs(D-E),z=Math.tan(L/4)*4/3,B=D<E?-1:1,F=Math.cos(E),j=Math.sin(E),K=Math.cos(D),q=Math.sin(D),te=F*N+M,X=j*V+R,ee=K*N+M,G=q*V+R,W=N*z*B,Q=V*z*B;i.push(te-W*j,X+Q*F,ee+W*q,G-Q*K,ee,G)}for(var d,h,g,v,m=0;m<n;){var y=e[m++],b=m===1;switch(b&&(a=e[m],o=e[m+1],s=a,l=o,(y===xo.L||y===xo.C||y===xo.Q)&&(i=[s,l])),y){case xo.M:a=s=e[m++],o=l=e[m++],u(s,l);break;case xo.L:d=e[m++],h=e[m++],c(a,o,d,h),a=d,o=h;break;case xo.C:i.push(e[m++],e[m++],e[m++],e[m++],a=e[m++],o=e[m++]);break;case xo.Q:d=e[m++],h=e[m++],g=e[m++],v=e[m++],i.push(a+2/3*(d-a),o+2/3*(h-o),g+2/3*(d-g),v+2/3*(h-v),g,v),a=g,o=v;break;case xo.A:var _=e[m++],O=e[m++],S=e[m++],x=e[m++],w=e[m++],T=e[m++]+w;m+=1;var P=!e[m++];d=Math.cos(w)*S+_,h=Math.sin(w)*x+O,b?(s=d,l=h,u(s,l)):c(a,o,d,h),a=Math.cos(T)*S+_,o=Math.sin(T)*x+O;for(var C=(P?-1:1)*Math.PI/2,$=w;P?$>T:$<T;$+=C){var A=P?Math.max($+C,T):Math.min($+C,T);f($,A,_,O,S,x)}break;case xo.R:s=a=e[m++],l=o=e[m++],d=s+e[m++],h=l+e[m++],u(d,l),c(d,l,d,h),c(d,h,s,h),c(s,h,s,l),c(s,l,d,l);break;case xo.Z:i&&c(a,o,s,l),a=s,o=l;break}}return i&&i.length>2&&r.push(i),r}function ED(t,e,n,r,i,a,o,s,l,u){if(vh(t,n)&&vh(e,r)&&vh(i,o)&&vh(a,s)){l.push(o,s);return}var c=2/u,f=c*c,d=o-t,h=s-e,g=Math.sqrt(d*d+h*h);d/=g,h/=g;var v=n-t,m=r-e,y=i-o,b=a-s,_=v*v+m*m,O=y*y+b*b;if(_<f&&O<f){l.push(o,s);return}var S=d*v+h*m,x=-d*y-h*b,w=_-S*S,T=O-x*x;if(w<f&&S>=0&&T<f&&x>=0){l.push(o,s);return}var P=[],C=[];rl(t,n,i,o,.5,P),rl(e,r,a,s,.5,C),ED(P[0],C[0],P[1],C[1],P[2],C[2],P[3],C[3],l,u),ED(P[4],C[4],P[5],C[5],P[6],C[6],P[7],C[7],l,u)}function d9e(t,e){var n=AD(t),r=[];e=e||1;for(var i=0;i<n.length;i++){var a=n[i],o=[],s=a[0],l=a[1];o.push(s,l);for(var u=2;u<a.length;){var c=a[u++],f=a[u++],d=a[u++],h=a[u++],g=a[u++],v=a[u++];ED(s,l,c,f,d,h,g,v,o,e),s=g,l=v}r.push(o)}return r}function LJ(t,e,n){var r=t[e],i=t[1-e],a=Math.abs(r/i),o=Math.ceil(Math.sqrt(a*n)),s=Math.floor(n/o);s===0&&(s=1,o=n);for(var l=[],u=0;u<o;u++)l.push(s);var c=o*s,f=n-c;if(f>0)for(var u=0;u<f;u++)l[u%o]+=1;return l}function VJ(t,e,n){for(var r=t.r0,i=t.r,a=t.startAngle,o=t.endAngle,s=Math.abs(o-a),l=s*i,u=i-r,c=l>Math.abs(u),f=LJ([l,u],c?0:1,e),d=(c?s:u)/f.length,h=0;h<f.length;h++)for(var g=(c?u:s)/f[h],v=0;v<f[h];v++){var m={};c?(m.startAngle=a+d*h,m.endAngle=a+d*(h+1),m.r0=r+g*v,m.r=r+g*(v+1)):(m.startAngle=a+g*v,m.endAngle=a+g*(v+1),m.r0=r+d*h,m.r=r+d*(h+1)),m.clockwise=t.clockwise,m.cx=t.cx,m.cy=t.cy,n.push(m)}}function h9e(t,e,n){for(var r=t.width,i=t.height,a=r>i,o=LJ([r,i],a?0:1,e),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",c=a?"y":"x",f=t[s]/o.length,d=0;d<o.length;d++)for(var h=t[l]/o[d],g=0;g<o[d];g++){var v={};v[u]=d*f,v[c]=g*h,v[s]=f,v[l]=h,v.x+=t.x,v.y+=t.y,n.push(v)}}function BJ(t,e,n,r){return t*r-n*e}function p9e(t,e,n,r,i,a,o,s){var l=n-t,u=r-e,c=o-i,f=s-a,d=BJ(c,f,l,u);if(Math.abs(d)<1e-6)return null;var h=t-i,g=e-a,v=BJ(h,g,c,f)/d;return v<0||v>1?null:new Be(v*l+t,v*u+e)}function g9e(t,e,n){var r=new Be;Be.sub(r,n,e),r.normalize();var i=new Be;Be.sub(i,t,e);var a=i.dot(r);return a}function mh(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function v9e(t,e,n){for(var r=t.length,i=[],a=0;a<r;a++){var o=t[a],s=t[(a+1)%r],l=p9e(o[0],o[1],s[0],s[1],e.x,e.y,n.x,n.y);l&&i.push({projPt:g9e(l,e,n),pt:l,idx:a})}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],h=[c.pt.x,c.pt.y],g=[d],v=[h],a=u.idx+1;a<=c.idx;a++)mh(g,t[a].slice());mh(g,h),mh(g,d);for(var a=c.idx+1;a<=u.idx+r;a++)mh(v,t[a%r].slice());return mh(v,d),mh(v,h),[{points:g},{points:v}]}function zJ(t){var e=t.points,n=[],r=[];k_(e,n,r);var i=new ze(n[0],n[1],r[0]-n[0],r[1]-n[1]),a=i.width,o=i.height,s=i.x,l=i.y,u=new Be,c=new Be;return a>o?(u.x=c.x=s+a/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+a),v9e(e,u,c)}function nS(t,e,n,r){if(n===1)r.push(e);else{var i=Math.floor(n/2),a=t(e);nS(t,a[0],i,r),nS(t,a[1],n-i,r)}return r}function m9e(t,e){for(var n=[],r=0;r<e;r++)n.push(Q2(t));return n}function y9e(t,e){e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel}function b9e(t){for(var e=[],n=0;n<t.length;)e.push([t[n++],t[n++]]);return e}function _9e(t,e){var n=[],r=t.shape,i;switch(t.type){case"rect":h9e(r,e,n),i=tt;break;case"sector":VJ(r,e,n),i=xr;break;case"circle":VJ({r0:0,r:r.r,startAngle:0,endAngle:Math.PI*2,cx:r.cx,cy:r.cy},e,n),i=xr;break;default:var a=t.getComputedTransform(),o=a?Math.sqrt(Math.max(a[0]*a[0]+a[1]*a[1],a[2]*a[2]+a[3]*a[3])):1,s=ie(d9e(t.getUpdatedPathProxy(),o),function(y){return b9e(y)}),l=s.length;if(l===0)nS(zJ,{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=ie(s,function(y){var b=[],_=[];k_(y,b,_);var O=(_[1]-b[1])*(_[0]-b[0]);return c+=O,{poly:y,area:O}});f.sort(function(y,b){return b.area-y.area});for(var d=e,u=0;u<l;u++){var h=f[u];if(d<=0)break;var g=u===l-1?d:Math.ceil(h.area/c*e);g<0||(nS(zJ,{points:h.poly},g,n),d-=g)}}i=wr;break}if(!i)return m9e(t,e);for(var v=[],u=0;u<n.length;u++){var m=new i;m.setShape(n[u]),y9e(t,m),v.push(m)}return v}function O9e(t,e){var n=t.length,r=e.length;if(n===r)return[t,e];for(var i=[],a=[],o=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=[o[0],o[1]],d=l,h=2;h<s;){var g=o[h-2],v=o[h-1],m=o[h++],y=o[h++],b=o[h++],_=o[h++],O=o[h++],S=o[h++];if(d<=0){f.push(m,y,b,_,O,S);continue}for(var x=Math.min(d,c-1)+1,w=1;w<=x;w++){var T=w/x;rl(g,m,b,O,T,i),rl(v,y,_,S,T,a),g=i[3],v=a[3],f.push(i[1],a[1],i[2],a[2],g,v),m=i[5],y=a[5],b=i[6],_=a[6]}d-=x-1}return o===t?[f,e]:[t,f]}function FJ(t,e){for(var n=t.length,r=t[n-2],i=t[n-1],a=[],o=0;o<e.length;)a[o++]=r,a[o++]=i;return a}function S9e(t,e){for(var n,r,i,a=[],o=[],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=O9e(l,u),c=n[0],f=n[1],r=c,i=f):(f=FJ(i||l,l),c=l):(c=FJ(r||u,u),f=u),a.push(c),o.push(f)}return[a,o]}function WJ(t){for(var e=0,n=0,r=0,i=t.length,a=0,o=i-2;a<i;o=a,a+=2){var s=t[o],l=t[o+1],u=t[a],c=t[a+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 x9e(t,e,n,r){for(var i=(t.length-2)/6,a=1/0,o=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 h=d===0?c:(c+d-2)%l+2,g=t[h]-n[0],v=t[h+1]-n[1],m=e[d]-r[0],y=e[d+1]-r[1],b=m-g,_=y-v;f+=b*b+_*_}f<a&&(a=f,o=u)}return o}function w9e(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 C9e(t,e,n,r){for(var i=[],a,o=0;o<t.length;o++){var s=t[o],l=e[o],u=WJ(s),c=WJ(l);a==null&&(a=u[2]<0!=c[2]<0);var f=[],d=[],h=0,g=1/0,v=[],m=s.length;a&&(s=w9e(s));for(var y=x9e(s,l,u,c)*6,b=m-2,_=0;_<b;_+=2){var O=(y+_)%b+2;f[_+2]=s[O]-u[0],f[_+3]=s[O+1]-u[1]}f[0]=s[y]-u[0],f[1]=s[y+1]-u[1];for(var S=r/n,x=-r/2;x<=r/2;x+=S){for(var w=Math.sin(x),T=Math.cos(x),P=0,_=0;_<s.length;_+=2){var C=f[_],$=f[_+1],A=l[_]-c[0],E=l[_+1]-c[1],D=A*T-E*w,M=A*w+E*T;v[_]=D,v[_+1]=M;var R=D-C,N=M-$;P+=R*R+N*N}if(P<g){g=P,h=x;for(var V=0;V<v.length;V++)d[V]=v[V]}}i.push({from:f,to:d,fromCp:u,toCp:c,rotation:-h})}return i}function rS(t){return t.__isCombineMorphing}var QJ="__mOriginal_";function iS(t,e,n){var r=QJ+e,i=t[r]||t[e];t[r]||(t[r]=t[e]);var a=n.replace,o=n.after,s=n.before;t[e]=function(){var l=arguments,u;return s&&s.apply(this,l),a?u=a.apply(this,l):u=i.apply(this,l),o&&o.apply(this,l),u}}function _m(t,e){var n=QJ+e;t[n]&&(t[e]=t[n],t[n]=null)}function HJ(t,e){for(var n=0;n<t.length;n++)for(var r=t[n],i=0;i<r.length;){var a=r[i],o=r[i+1];r[i++]=e[0]*a+e[2]*o+e[4],r[i++]=e[1]*a+e[3]*o+e[5]}}function jJ(t,e){var n=t.getUpdatedPathProxy(),r=e.getUpdatedPathProxy(),i=S9e(AD(n),AD(r)),a=i[0],o=i[1],s=t.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&HJ(a,s),l&&HJ(o,l),iS(e,"updateTransform",{replace:u}),e.transform=null;var c=C9e(a,o,10,Math.PI),f=[];iS(e,"buildPath",{replace:function(d){for(var h=e.__morphT,g=1-h,v=[],m=0;m<c.length;m++){var y=c[m],b=y.from,_=y.to,O=y.rotation*h,S=y.fromCp,x=y.toCp,w=Math.sin(O),T=Math.cos(O);wg(v,S,x,h);for(var P=0;P<b.length;P+=2){var C=b[P],$=b[P+1],A=_[P],E=_[P+1],D=C*g+A*h,M=$*g+E*h;f[P]=D*T-M*w+v[0],f[P+1]=D*w+M*T+v[1]}var R=f[0],N=f[1];d.moveTo(R,N);for(var P=2;P<b.length;){var A=f[P++],E=f[P++],V=f[P++],L=f[P++],z=f[P++],B=f[P++];R===A&&N===E&&V===z&&L===B?d.lineTo(z,B):d.bezierCurveTo(A,E,V,L,z,B),R=z,N=B}}}})}function MD(t,e,n){if(!t||!e)return e;var r=n.done,i=n.during;jJ(t,e),e.__morphT=0;function a(){_m(e,"buildPath"),_m(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},Te({during:function(o){e.dirtyShape(),i&&i(o)},done:function(){a(),r&&r()}},n)),e}function T9e(t,e,n,r,i,a){var o=16;t=i===n?0:Math.round(32767*(t-n)/(i-n)),e=a===r?0:Math.round(32767*(e-r)/(a-r));for(var s=0,l,u=(1<<o)/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 aS(t){var e=1/0,n=1/0,r=-1/0,i=-1/0,a=ie(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]}),o=ie(a,function(s,l){return{cp:s,z:T9e(s[0],s[1],e,n,r,i),path:t[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function GJ(t){return _9e(t.path,t.count)}function ID(){return{fromIndividuals:[],toIndividuals:[],count:0}}function P9e(t,e,n){var r=[];function i(S){for(var x=0;x<S.length;x++){var w=S[x];rS(w)?i(w.childrenRef()):w instanceof Ge&&r.push(w)}}i(t);var a=r.length;if(!a)return ID();var o=n.dividePath||GJ,s=o({path:e,count:a});if(s.length!==a)return console.error("Invalid morphing: unmatched splitted path"),ID();r=aS(r),s=aS(s);for(var l=n.done,u=n.during,c=n.individualDelay,f=new ss,d=0;d<a;d++){var h=r[d],g=s[d];g.parent=e,g.copyTransform(f),c||jJ(h,g)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function v(S){for(var x=0;x<s.length;x++)s[x].addSelfToZr(S)}iS(e,"addSelfToZr",{after:function(S){v(S)}}),iS(e,"removeSelfFromZr",{after:function(S){for(var x=0;x<s.length;x++)s[x].removeSelfFromZr(S)}});function m(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,_m(e,"addSelfToZr"),_m(e,"removeSelfFromZr")}var y=s.length;if(c)for(var b=y,_=function(){b--,b===0&&(m(),l&&l())},d=0;d<y;d++){var O=c?Te({delay:(n.delay||0)+c(d,y,r[d],s[d]),done:_},n):n;MD(r[d],s[d],O)}else e.__morphT=0,e.animateTo({__morphT:1},Te({during:function(S){for(var x=0;x<y;x++){var w=s[x];w.__morphT=e.__morphT,w.dirtyShape()}u&&u(S)},done:function(){m();for(var S=0;S<t.length;S++)_m(t[S],"updateTransform");l&&l()}},n));return e.__zr&&v(e.__zr),{fromIndividuals:r,toIndividuals:s,count:y}}function $9e(t,e,n){var r=e.length,i=[],a=n.dividePath||GJ;function o(h){for(var g=0;g<h.length;g++){var v=h[g];rS(v)?o(v.childrenRef()):v instanceof Ge&&i.push(v)}}if(rS(t)){o(t.childrenRef());var s=i.length;if(s<r)for(var l=0,u=s;u<r;u++)i.push(Q2(i[l++%s]));i.length=r}else{i=a({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"),ID()}i=aS(i),e=aS(e);for(var f=n.individualDelay,u=0;u<r;u++){var d=f?Te({delay:(n.delay||0)+f(u,r,i[u],e[u])},n):n;MD(i[u],e[u],d)}return{fromIndividuals:i,toIndividuals:e,count:e.length}}function ZJ(t){return re(t[0])}function UJ(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 a=e[i].length,o=void 0;for(o=0;o<a;o++)n[o%r].many.push(e[i][o])}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 a=l.length,u=Math.ceil(a/2);n[i].many=l.slice(u,a),n[s].many=l.slice(0,u),s++}return n}var A9e={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=Q2(t.path);i.setStyle("opacity",n),e.push(i)}return e},split:null};function DD(t,e,n,r,i,a){if(!t.length||!e.length)return;var o=Cd("update",r,i);if(!(o&&o.duration>0))return;var s=r.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;ZJ(t)&&(u=t,c=e),ZJ(e)&&(u=e,c=t);function f(y,b,_,O,S){var x=y.many,w=y.one;if(x.length===1&&!S){var T=b?x[0]:w,P=b?w:x[0];if(rS(T))f({many:[T],one:P},!0,_,O,!0);else{var C=s?Te({delay:s(_,O)},l):l;MD(T,P,C),a(T,P,T,P,C)}}else for(var $=Te({dividePath:A9e[n],individualDelay:s&&function(N,V,L,z){return s(N+_,O)}},l),A=b?P9e(x,w,$):$9e(w,x,$),E=A.fromIndividuals,D=A.toIndividuals,M=E.length,R=0;R<M;R++){var C=s?Te({delay:s(R,M)},l):l;a(E[R],D[R],b?x[R]:y.one,b?y.one:x[R],C)}}for(var d=u?u===t:t.length>e.length,h=u?UJ(c,u):UJ(d?e:t,[d?t:e]),g=0,v=0;v<h.length;v++)g+=h[v].many.length;for(var m=0,v=0;v<h.length;v++)f(h[v],d,m,g),m+=h[v].many.length}function Fc(t){if(!t)return[];if(re(t)){for(var e=[],n=0;n<t.length;n++)e.push(Fc(t[n]));return e}var r=[];return t.traverse(function(i){i instanceof Ge&&!i.disableMorphing&&!i.invisible&&!i.ignore&&r.push(i)}),r}var XJ=1e4,E9e=0,YJ=1,qJ=2,M9e=et();function I9e(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 D9e(t,e,n){var r=t.getDimensionInfo(n),i=r&&r.ordinalMeta;if(r){var a=t.get(r.name,e);return i&&i.categories[a]||a+""}}function KJ(t,e,n,r){var i=r?"itemChildGroupId":"itemGroupId",a=I9e(t,i);if(a){var o=D9e(t,e,a);return o}var s=t.getRawDataItem(e),l=r?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!r)return n||t.getId(e)}function JJ(t){var e=[];return k(t,function(n){var r=n.data,i=n.dataGroupId;if(r.count()>XJ){process.env.NODE_ENV!=="production"&&Wt("Universal transition is disabled on large data > 10k.");return}for(var a=r.getIndices(),o=0;o<a.length;o++)e.push({data:r,groupId:KJ(r,o,i,!1),childGroupId:KJ(r,o,i,!0),divide:n.divide,dataIndex:o})}),e}function RD(t,e,n){t.traverse(function(r){r instanceof Ge&&Mt(r,{style:{opacity:0}},e,{dataIndex:n,isFrom:!0})})}function kD(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function yh(t){t.stopAnimation(),t.isGroup&&t.traverse(function(e){e.stopAnimation()})}function R9e(t,e,n){var r=Cd("update",n,e);r&&t.traverse(function(i){if(i instanceof ji){var a=uRe(i);a&&i.animateFrom({style:a},r)}})}function k9e(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++){var i=t[r],a=e[r];if(i.data.getId(i.dataIndex)!==a.data.getId(a.dataIndex))return!1}return!0}function eee(t,e,n){var r=JJ(t),i=JJ(e);function a(_,O,S,x,w){(S||_)&&O.animateFrom({style:S&&S!==_?ne(ne({},S.style),_.style):_.style},w)}var o=!1,s=E9e,l=be(),u=be();r.forEach(function(_){_.groupId&&l.set(_.groupId,!0),_.childGroupId&&u.set(_.childGroupId,!0)});for(var c=0;c<i.length;c++){var f=i[c].groupId;if(u.get(f)){s=YJ;break}var d=i[c].childGroupId;if(d&&l.get(d)){s=qJ;break}}function h(_,O){return function(S){var x=S.data,w=S.dataIndex;return O?x.getId(w):_?s===YJ?S.childGroupId:S.groupId:s===qJ?S.childGroupId:S.groupId}}var g=k9e(r,i),v={};if(!g)for(var c=0;c<i.length;c++){var m=i[c],y=m.data.getItemGraphicEl(m.dataIndex);y&&(v[y.id]=!0)}function b(_,O){var S=r[O],x=i[_],w=x.data.hostModel,T=S.data.getItemGraphicEl(S.dataIndex),P=x.data.getItemGraphicEl(x.dataIndex);if(T===P){P&&R9e(P,x.dataIndex,w);return}T&&v[T.id]||P&&(yh(P),T?(yh(T),kD(T),o=!0,DD(Fc(T),Fc(P),x.divide,w,_,a)):RD(P,w,_))}new vs(r,i,h(!0,g),h(!1,g),null,"multiple").update(b).updateManyToOne(function(_,O){var S=i[_],x=S.data,w=x.hostModel,T=x.getItemGraphicEl(S.dataIndex),P=vt(ie(O,function(C){return r[C].data.getItemGraphicEl(r[C].dataIndex)}),function(C){return C&&C!==T&&!v[C.id]});T&&(yh(T),P.length?(k(P,function(C){yh(C),kD(C)}),o=!0,DD(Fc(P),Fc(T),S.divide,w,_,a)):RD(T,w,S.dataIndex))}).updateOneToMany(function(_,O){var S=r[O],x=S.data.getItemGraphicEl(S.dataIndex);if(!(x&&v[x.id])){var w=vt(ie(_,function(P){return i[P].data.getItemGraphicEl(i[P].dataIndex)}),function(P){return P&&P!==x}),T=i[_[0]].data.hostModel;w.length&&(k(w,function(P){return yh(P)}),x?(yh(x),kD(x),o=!0,DD(Fc(x),Fc(w),S.divide,T,_[0],a)):k(w,function(P){return RD(P,T,_[0])}))}}).updateManyToMany(function(_,O){new vs(O,_,function(S){return r[S].data.getId(r[S].dataIndex)},function(S){return i[S].data.getId(i[S].dataIndex)}).update(function(S,x){b(_[S],O[x])}).execute()}).execute(),o&&k(e,function(_){var O=_.data,S=O.hostModel,x=S&&n.getViewOfSeriesModel(S),w=Cd("update",S,0);x&&S.isAnimationEnabled()&&w&&w.duration>0&&x.group.traverse(function(T){T instanceof Ge&&!T.animators.length&&T.animateFrom({style:{opacity:0}},w)})})}function tee(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function nee(t){return re(t)?t.sort().join(","):t}function Il(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function N9e(t,e){var n=be(),r=be(),i=be();k(t.oldSeries,function(o,s){var l=t.oldDataGroupIds[s],u=t.oldData[s],c=tee(o),f=nee(c);r.set(f,{dataGroupId:l,data:u}),re(c)&&k(c,function(d){i.set(d,{key:f,dataGroupId:l,data:u})})});function a(o){n.get(o)&&Wt("Duplicated seriesKey in universalTransition "+o)}return k(e.updatedSeries,function(o){if(o.isUniversalTransitionEnabled()&&o.isAnimationEnabled()){var s=o.get("dataGroupId"),l=o.getData(),u=tee(o),c=nee(u),f=r.get(c);if(f)process.env.NODE_ENV!=="production"&&a(c),n.set(c,{oldSeries:[{dataGroupId:f.dataGroupId,divide:Il(f.data),data:f.data}],newSeries:[{dataGroupId:s,divide:Il(l),data:l}]});else if(re(u)){process.env.NODE_ENV!=="production"&&a(c);var d=[];k(u,function(v){var m=r.get(v);m.data&&d.push({dataGroupId:m.dataGroupId,divide:Il(m.data),data:m.data})}),d.length&&n.set(c,{oldSeries:d,newSeries:[{dataGroupId:s,data:l,divide:Il(l)}]})}else{var h=i.get(u);if(h){var g=n.get(h.key);g||(g={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:Il(h.data)}],newSeries:[]},n.set(h.key,g)),g.newSeries.push({dataGroupId:s,data:l,divide:Il(l)})}}}}),n}function ree(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 L9e(t,e,n,r){var i=[],a=[];k(xt(t.from),function(o){var s=ree(e.oldSeries,o);s>=0&&i.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:Il(e.oldData[s]),groupIdDim:o.dimension})}),k(xt(t.to),function(o){var s=ree(n.updatedSeries,o);if(s>=0){var l=n.updatedSeries[s].getData();a.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:Il(l),groupIdDim:o.dimension})}}),i.length>0&&a.length>0&&eee(i,a,r)}function V9e(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,n,r){k(xt(r.seriesTransition),function(i){k(xt(i.to),function(a){for(var o=r.updatedSeries,s=0;s<o.length;s++)(a.seriesIndex!=null&&a.seriesIndex===o[s].seriesIndex||a.seriesId!=null&&a.seriesId===o[s].id)&&(o[s][_1]=!0)})})}),t.registerUpdateLifecycle("series:transition",function(e,n,r){var i=M9e(n);if(i.oldSeries&&r.updatedSeries&&r.optionChanged){var a=r.seriesTransition;if(a)k(xt(a),function(h){L9e(h,i,r,n)});else{var o=N9e(i,r);k(o.keys(),function(h){var g=o.get(h);eee(g.oldSeries,g.newSeries,n)})}k(r.updatedSeries,function(h){h[_1]&&(h[_1]=!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()<XJ&&(l.push(s[f]),u.push(s[f].get("dataGroupId")),c.push(d))}})}je([U8e]),je([Q8e]),je([p5e,A5e,B5e,y3e,A3e,gVe,QVe,T6e,U6e,eBe,uBe,rze,$ze,Bze,tFe,aFe,gFe,SFe,DFe,BFe,XFe,MWe]),je(YWe),je(x7e),je(YU),je(N7e),je(mY),je(z7e),je(X7e),je(NQe),je(tHe),je(fm),je(yHe),je(OHe),je(MHe),je(VHe),je(HHe),je(YHe),je(oje),je(wje),je(cJ),je(pJ),je(Hje),je(EJ),je(IJ),je(Xje),je(l9e),je(f9e),je(V9e),je(u8e);const B9e=Object.freeze(Object.defineProperty({__proto__:null,Axis:ea,ChartView:_t,ComponentModel:He,ComponentView:At,List:ur,Model:wt,PRIORITY:b9,SeriesModel:Ct,color:bMe,connect:gLe,dataTool:SLe,dependencies:KNe,disConnect:vLe,disconnect:k9,dispose:mLe,env:Je,extendChartView:Y4e,extendComponentModel:Z4e,extendComponentView:U4e,extendSeriesModel:X4e,format:k4e,getCoordinateSystemDimensions:bLe,getInstanceByDom:aE,getInstanceById:yLe,getMap:OLe,graphic:R4e,helper:T4e,init:R9,innerDrawElementOnCanvas:HA,matrix:YEe,number:I4e,parseGeoJSON:PE,parseGeoJson:PE,registerAction:Ia,registerCoordinateSystem:V9,registerLayout:B9,registerLoading:cE,registerLocale:iA,registerMap:F9,registerPostInit:N9,registerPostUpdate:L9,registerPreprocessor:sE,registerProcessor:lE,registerTheme:oE,registerTransform:W9,registerUpdateLifecycle:V1,registerVisual:_l,setCanvasCreator:_Le,setPlatformAPI:nW,throttle:S1,time:D4e,use:je,util:N4e,vector:NEe,version:qNe,zrUtil:AEe,zrender:tIe},Symbol.toStringTag,{value:"Module"}));function z9e(t){return p.getCurrentScope()?(p.onScopeDispose(t),!0):!1}function oS(t){return typeof t=="function"?t():p.unref(t)}const F9e=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const W9e=Object.prototype.toString,Q9e=t=>W9e.call(t)==="[object Object]",ND=()=>{};function H9e(t,e){function n(...r){return new Promise((i,a)=>{Promise.resolve(t(()=>e.apply(this,r),{fn:e,thisArg:this,args:r})).then(i).catch(a)})}return n}function j9e(t,e={}){let n,r,i=ND;const a=s=>{clearTimeout(s),i(),i=ND};return s=>{const l=oS(t),u=oS(e.maxWait);return n&&a(n),l<=0||u!==void 0&&u<=0?(r&&(a(r),r=null),Promise.resolve(s())):new Promise((c,f)=>{i=e.rejectOnCancel?f:c,u&&!r&&(r=setTimeout(()=>{n&&a(n),r=null,c(s())},u)),n=setTimeout(()=>{r&&a(r),r=null,c(s())},l)})}}function G9e(t){return p.getCurrentInstance()}function Z9e(t,e=200,n={}){return H9e(j9e(e,n),t)}function U9e(t,e){G9e()&&p.onUnmounted(t,e)}function X9e(t){var e;const n=oS(t);return(e=n==null?void 0:n.$el)!=null?e:n}const Y9e=F9e?window:void 0;function q9e(...t){let e,n,r,i;if(typeof t[0]=="string"||Array.isArray(t[0])?([n,r,i]=t,e=Y9e):[e,n,r,i]=t,!e)return ND;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const a=[],o=()=>{a.forEach(c=>c()),a.length=0},s=(c,f,d,h)=>(c.addEventListener(f,d,h),()=>c.removeEventListener(f,d,h)),l=p.watch(()=>[X9e(e),oS(i)],([c,f])=>{if(o(),!c)return;const d=Q9e(f)?{...f}:f;a.push(...n.flatMap(h=>r.map(g=>s(c,h,g,d))))},{immediate:!0,flush:"post"}),u=()=>{l(),o()};return z9e(u),u}function K9e(t,e="default"){let n=null,r=s;const i=p.ref({});let a;const o=p.computed(()=>i.value);r=Z9e(s,200);function s(){n==null||n.resize({animation:{duration:300,easing:"quadraticIn"}})}function l(f=e){const d=p.unref(t);if(!d||!p.unref(d))return;n=R9(d,f),a=q9e(window,"resize",r)}function u(f,d=!1){return i.value=f,new Promise(h=>{var g;((g=p.unref(t))==null?void 0:g.offsetHeight)===0&&setTimeout(()=>{u(p.unref(o)),h(null)},30),p.nextTick(()=>{setTimeout(()=>{!n&&(l("default"),!n)||(d&&(n==null||n.clear()),n==null||n.setOption(p.unref(o)),h(null))},30)})})}p.watch(()=>e,f=>{n&&(n.dispose(),l(f),u(i.value))}),U9e(()=>{n&&(a(),n.dispose(),n=null)});function c(){return n||l("default"),n}return{setOptions:u,resize:s,echarts:B9e,getInstance:c}}const LD=p.defineComponent({__name:"Charts",props:{echartsOptions:{},width:{},height:{},loading:{type:Boolean}},setup(t){const e=t,n=p.ref(null),{setOptions:r,resize:i}=K9e(n),a=p.h(Xa,{style:{fontSize:"24px"}});return p.watch(()=>[e.width,e.height],Oye(async()=>{i()},200)),p.watch(()=>e,async()=>{await p.nextTick();const{echartsOptions:o}=e;r(o)},{immediate:!0,deep:!0}),(o,s)=>(p.openBlock(),p.createBlock(p.unref(jp),{spinning:o.loading,indicator:p.unref(a)},{default:p.withCtx(()=>[p.createElementVNode("div",{ref_key:"chartRef",ref:n,style:p.normalizeStyle({width:o.width+"px",height:o.height+"px"})},null,4)]),_:1},8,["spinning","indicator"]))}});function VD(t){return g3(t,XAe)}const BD={type:Object,default:()=>({sourceType:Rr.STATIC,data:[],url:"",method:"GET",params:{},headers:{},refreshTime:0,dataProcess:()=>[]})},J9e=(t,e)=>new Promise((n,r)=>{const i=new Blob([`
  340. self.onmessage = function(e) {
  341. self.postMessage((${t}).call(null, e.data));
  342. }
  343. `],{type:"application/javascript"}),a=new Worker(URL.createObjectURL(i));a.postMessage(JSON.parse(e)),a.onmessage=o=>{a.terminate(),n(o.data)},a.onerror=o=>{a.terminate(),r(o)}}),sS={width:{type:Number,default:400},height:{type:Number,default:260},dataSource:BD,title:{type:Object},legend:{type:Object},backgroundColor:{type:String},grid:{type:Object},tooltip:{type:Object},xAxis:{type:Object},yAxis:{type:Object},series:{type:Array},dataset:{type:Object}},iee=[];iee.line={lineStyle:{type:"solid",width:1},symbol:"rect",symbolSize:4,symbolRotate:0,smooth:!1,step:!1};const eGe=VD({title:{text:"折线图标题"},xAxis:{data:["轴标签A","轴标签B","轴标签C","轴标签D"]},series:iee}),aee={container:{props:{width:400,height:260}},props:{dataSource:{sourceType:Rr.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:`
  344. (res) => {
  345. // 取出列表
  346. const data = res.data;
  347. // x轴数据
  348. const xData = data.map((item) => item.name);
  349. // 系列数据
  350. const series = [
  351. { type: 'line', name: '苹果', data: data.map(item => item.apple) },
  352. { type: 'line', name: 'VIVO', data: data.map(item => item.vivo) },
  353. { type: 'line', name: '小米', data: data.map(item => item.mi) },
  354. ];
  355. // 返回图表数据
  356. return { xData, series };
  357. }
  358. `},...eGe}},oee=(t,{manual:e,ready:n=!0,refreshDeps:r=[],refreshDepsAction:i})=>{const a=p.ref(!1);return p.watchEffect(()=>{!e&&t.options.refreshDeps!==!0&&(a.value=p.unref(n))}),r instanceof Array?p.watch([a,...r],([o])=>{o&&!e&&o&&(i?i():t.refresh())},{deep:!0,immediate:!1}):p.watch(a,o=>{!e&&o&&(i?i():t.refresh())}),{name:"autoRunPlugin",onBefore:()=>{if(!p.unref(n))return{stopNow:!0}}}};oee.onInit=({ready:t=!0,manual:e})=>({loading:!e&&p.unref(t)});const lS=new Map,tGe=(t,e,n)=>{const r=lS.get(t);r!=null&&r.timer&&clearTimeout(r.timer);let i;e>-1&&(i=setTimeout(()=>{lS.delete(t)},e)),lS.set(t,{...n,timer:i})},nGe=t=>lS.get(t),uS=new Map,rGe=t=>uS.get(t),iGe=(t,e)=>{uS.set(t,e),e.then(n=>(uS.delete(t),n)).catch(n=>{throw uS.delete(t),n})},Wc={},aGe=[],oGe=(t,e)=>{Wc[t]&&(Wc[t].forEach(n=>n(e)),aGe.forEach(n=>n({type:t,data:e})))},zD=(t,e)=>(Wc[t]||(Wc[t]=[]),Wc[t].push(e),function(){const r=Wc[t].indexOf(e);Wc[t].splice(r,1)}),sGe=(t,{cacheKey:e,cacheTime:n=5*60*1e3,staleTime:r=0,setCache:i,getCache:a})=>{const o=p.ref(),s=p.ref(),l=(c,f)=>{i?i(f):tGe(c,n,f),oGe(c,f.data)},u=(c,f=[])=>a?a(f):nGe(c);return p.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)),o.value=zD(e,f=>{t.setState({data:f})})}),p.onScopeDispose(()=>{var c;(c=o.value)==null||c.call(o)}),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=rGe(e);return d&&d!==s.value?{servicePromise:d}:(d=c(...f),s.value=d,iGe(e,d),{servicePromise:d})},onSuccess:(c,f)=>{var d;e&&((d=o.value)==null||d.call(o),l(e,{data:c,params:f,time:new Date().getTime()}),o.value=zD(e,h=>{t.setState({data:h})}))},onMutate:c=>{var f;e&&((f=o.value)==null||f.call(o),l(e,{data:c,params:t.state.params,time:new Date().getTime()}),o.value=zD(e,d=>{t.setState({data:d})}))}}:{}};function lGe(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Na=lGe,uGe=typeof ib=="object"&&ib&&ib.Object===Object&&ib,see=uGe,cGe=see,fGe=typeof self=="object"&&self&&self.Object===Object&&self,dGe=cGe||fGe||Function("return this")(),La=dGe,hGe=La,pGe=function(){return hGe.Date.now()},gGe=pGe,vGe=/\s/;function mGe(t){for(var e=t.length;e--&&vGe.test(t.charAt(e)););return e}var yGe=mGe,bGe=yGe,_Ge=/^\s+/;function OGe(t){return t&&t.slice(0,bGe(t)+1).replace(_Ge,"")}var SGe=OGe,xGe=La,wGe=xGe.Symbol,cS=wGe,lee=cS,uee=Object.prototype,CGe=uee.hasOwnProperty,TGe=uee.toString,Om=lee?lee.toStringTag:void 0;function PGe(t){var e=CGe.call(t,Om),n=t[Om];try{t[Om]=void 0;var r=!0}catch{}var i=TGe.call(t);return r&&(e?t[Om]=n:delete t[Om]),i}var $Ge=PGe,AGe=Object.prototype,EGe=AGe.toString;function MGe(t){return EGe.call(t)}var IGe=MGe,cee=cS,DGe=$Ge,RGe=IGe,kGe="[object Null]",NGe="[object Undefined]",fee=cee?cee.toStringTag:void 0;function LGe(t){return t==null?t===void 0?NGe:kGe:fee&&fee in Object(t)?DGe(t):RGe(t)}var bh=LGe;function VGe(t){return t!=null&&typeof t=="object"}var Dl=VGe,BGe=bh,zGe=Dl,FGe="[object Symbol]";function WGe(t){return typeof t=="symbol"||zGe(t)&&BGe(t)==FGe}var QGe=WGe,HGe=SGe,dee=Na,jGe=QGe,hee=NaN,GGe=/^[-+]0x[0-9a-f]+$/i,ZGe=/^0b[01]+$/i,UGe=/^0o[0-7]+$/i,XGe=parseInt;function YGe(t){if(typeof t=="number")return t;if(jGe(t))return hee;if(dee(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=dee(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=HGe(t);var n=ZGe.test(t);return n||UGe.test(t)?XGe(t.slice(2),n?2:8):GGe.test(t)?hee:+t}var qGe=YGe,KGe=Na,FD=gGe,pee=qGe,JGe="Expected a function",eZe=Math.max,tZe=Math.min;function nZe(t,e,n){var r,i,a,o,s,l,u=0,c=!1,f=!1,d=!0;if(typeof t!="function")throw new TypeError(JGe);e=pee(e)||0,KGe(n)&&(c=!!n.leading,f="maxWait"in n,a=f?eZe(pee(n.maxWait)||0,e):a,d="trailing"in n?!!n.trailing:d);function h(x){var w=r,T=i;return r=i=void 0,u=x,o=t.apply(T,w),o}function g(x){return u=x,s=setTimeout(y,e),c?h(x):o}function v(x){var w=x-l,T=x-u,P=e-w;return f?tZe(P,a-T):P}function m(x){var w=x-l,T=x-u;return l===void 0||w>=e||w<0||f&&T>=a}function y(){var x=FD();if(m(x))return b(x);s=setTimeout(y,v(x))}function b(x){return s=void 0,d&&r?h(x):(r=i=void 0,o)}function _(){s!==void 0&&clearTimeout(s),u=0,r=l=i=s=void 0}function O(){return s===void 0?o:b(FD())}function S(){var x=FD(),w=m(x);if(r=arguments,i=this,l=x,w){if(s===void 0)return g(l);if(f)return clearTimeout(s),s=setTimeout(y,e),h(l)}return s===void 0&&(s=setTimeout(y,e)),o}return S.cancel=_,S.flush=O,S}var gee=nZe;const rZe=ab(gee),iZe=(t,{debounceWait:e,debounceLeading:n,debounceTrailing:r,debounceMaxWait:i})=>{const a=p.ref(),o=p.computed(()=>{const s={},l=p.unref(n),u=p.unref(r),c=p.unref(i);return l!==void 0&&(s.leading=l),u!==void 0&&(s.trailing=u),c!==void 0&&(s.maxWait=c),s});return p.watchEffect(s=>{if(p.unref(e)){const l=t.runAsync.bind(t);a.value=rZe(u=>{u()},p.unref(e),o.value),t.runAsync=(...u)=>new Promise((c,f)=>{var d;(d=a.value)==null||d.call(a,()=>{l(...u).then(c).catch(f)})}),s(()=>{var u;(u=a.value)==null||u.cancel(),t.runAsync=l})}}),p.unref(e)?{name:"debouncePlugin",onCancel:()=>{var s;(s=a.value)==null||s.cancel()}}:{}};var aZe=Object.defineProperty,oZe=(t,e,n)=>e in t?aZe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,vee=(t,e,n)=>(oZe(t,typeof e!="symbol"?e+"":e,n),n);class sZe{constructor(){vee(this,"table",{}),vee(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 sZe;function lZe(t){const n=t.toString().match(/^function\s+([^\s(]+)/);return n?n[1]:""}function uZe(t){const e=t.toString(),n=/([a-zA-Z$_][a-zA-Z0-9$_]*)\s*\(/,r=e.match(n);return r?r[1].trim():""}var cZe=Object.defineProperty,fZe=(t,e,n)=>e in t?cZe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,mee=(t,e,n)=>(fZe(t,typeof e!="symbol"?e+"":e,n),n);class dZe{constructor(){mee(this,"requestInstances",new Map),mee(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 Gr=new dZe,hZe=(t,{ready:e=!0,debugKey:n,...r})=>{const i=()=>{if(n&&!Gr.has(n)){const o=t.serviceRef.value.toString().includes("function")?lZe(t.serviceRef.value.toString()):uZe(t.serviceRef.value.toString());Gr.insert(n,{instance:t,requestName:o,time:Date.now()})}},a=p.computed(()=>Object.fromEntries(Object.entries({ready:e,...r}).map(([o,s])=>[o,p.unref(s)])));return p.watchEffect(()=>{n&&Gr.has(n)&&Gr.emit({...t,options:{...t.options,...a.value}})}),{name:"devtoolsPlugin",onBefore:o=>{i(),n&&Gr.has(n)&&Gr.emit({...t.state,key:n,params:o,loading:!0,time:Date.now(),type:"pending"})},onSuccess(o,s){i(),n&&Gr.has(n)&&Gr.emit({...t.state,key:n,data:o,params:s,loading:!1,time:Date.now(),type:"done"})},onCancel(){i(),n&&Gr.has(n)&&Gr.emit({...t.state,key:n,loading:!1,time:Date.now(),type:"cancel"})},onError(o,s){i(),n&&Gr.has(n)&&Gr.emit({...t.state,key:n,params:s,loading:!1,error:o,time:Date.now(),type:"error"})},onMutate(o){i(),n&&Gr.has(n)&&Gr.emit({...t.state,key:n,data:o,loading:!1,time:Date.now(),type:"mutate"})}}},pZe=(t,{loadingDelay:e})=>{const n=p.ref(),r=()=>{n.value&&(clearTimeout(p.unref(n.value)),n.value=void 0)};return{name:"loadingDelayPlugin",onFinally:()=>{r();const i=p.unref(e);i&&(t.setState({loading:!0}),n.value=setTimeout(()=>{t.setState({loading:!1})},i))},onError:()=>{r()}}};function WD(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}const gZe=!!(typeof window<"u"&&window.document&&window.document.createElement);function QD(){return WD()?document.visibilityState!=="hidden":!0}const Sm=[];function vZe(t){return Sm.push(t),function(){const n=Sm.indexOf(t);Sm.splice(n,1)}}if(WD()){const t=()=>{if(QD())for(let e=0;e<Sm.length;e++){const n=Sm[e];n()}};window.addEventListener("visibilitychange",t,!1)}const mZe=(t,{pollingInterval:e,pollingWhenHidden:n=!0,pollingErrorRetryCount:r=-1})=>{let i;const a=p.ref(),o=p.ref(0),s=()=>{var l;i&&clearTimeout(i),(l=a.value)==null||l.call(a)};return p.watchEffect(()=>{p.unref(e)||s()}),p.unref(e)?{name:"pollingPlugin",onBefore:()=>{s()},onError:()=>{o.value+=1},onSuccess:()=>{o.value=0},onFinally:()=>{r===-1||r!==-1&&o.value<=r?i=setTimeout(()=>{!n&&!QD()?a.value=vZe(()=>{t.refresh()}):t.refresh()},p.unref(e)):o.value=0},onCancel:()=>{s()}}:{}};function yZe(t,e){let n=!1;return(...r)=>{n||(n=!0,t(...r),setTimeout(()=>{n=!1},e))}}function bZe(){return WD()&&typeof navigator.onLine<"u"?navigator.onLine:!0}const xm=[];function _Ze(t){return xm.push(t),function(){const n=xm.indexOf(t);n>-1&&xm.splice(n,1)}}if(gZe){const t=()=>{if(!(!QD()||!bZe()))for(let e=0;e<xm.length;e++){const n=xm[e];n()}};window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1)}const OZe=(t,{refreshOnWindowFocus:e,focusTimespan:n=5e3})=>{const r=p.ref(),i=()=>{var a;(a=r.value)==null||a.call(r)};return p.watchEffect(a=>{if(p.unref(e)){const o=yZe(t.refresh.bind(t),p.unref(n));r.value=_Ze(()=>{o()})}a(()=>{i()})}),p.onScopeDispose(()=>{i()}),{name:"refreshOnWindowFocusPlugin"}},SZe=(t,{retryInterval:e,retryCount:n})=>{const r=p.ref(),i=p.ref(0),a=p.ref(!1);return n?{name:"retryPlugin",onBefore:()=>{a.value||(i.value=0),a.value=!1,r.value&&clearTimeout(r.value)},onSuccess:()=>{i.value=0},onError:()=>{if(i.value+=1,n===-1||i.value<=n){const o=e??Math.min(1e3*2**i.value,3e4);r.value=setTimeout(()=>{a.value=!0,t.refresh()},o)}else i.value=0},onCancel:()=>{i.value=0,r.value&&clearTimeout(r.value)}}:{}};var xZe=gee,wZe=Na,CZe="Expected a function";function TZe(t,e,n){var r=!0,i=!0;if(typeof t!="function")throw new TypeError(CZe);return wZe(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),xZe(t,e,{leading:r,maxWait:e,trailing:i})}var PZe=TZe;const $Ze=ab(PZe),AZe=(t,{throttleWait:e,throttleLeading:n,throttleTrailing:r})=>{const i=p.computed(()=>{const o={};return p.unref(n)!==void 0&&(o.leading=p.unref(n)),p.unref(r)!==void 0&&(o.trailing=p.unref(r)),o}),a=p.computed(()=>$Ze(o=>{o()},p.unref(e),i.value));return p.watchEffect(o=>{if(p.unref(e)){const s=t.runAsync.bind(t);t.runAsync=(...l)=>new Promise((u,c)=>{var f;(f=a.value)==null||f.call(a,()=>{s(...l).then(u).catch(c)})}),o(()=>{var l;t.runAsync=s,(l=a.value)==null||l.cancel()})}}),p.unref(e)?{name:"throttlePlugin",onCancel:()=>{var o;(o=a.value)==null||o.cancel()}}:{}},yee=t=>typeof t=="function",EZe=t=>typeof t=="boolean";var MZe=Object.defineProperty,IZe=(t,e,n)=>e in t?MZe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,fS=(t,e,n)=>(IZe(t,typeof e!="symbol"?e+"":e,n),n);class DZe{constructor(e,n,r,i={}){fS(this,"pluginImpls"),fS(this,"count",0),fS(this,"state",{loading:!1,params:void 0,data:void 0,error:void 0}),fS(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,a;const o=(a=(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:a.filter(Boolean);return Object.assign({},...o)}async runAsync(...e){var n,r,i,a,o,s,l,u,c,f,d;this.count+=1;const h=this.count,{stopNow:g=!1,returnNow:v=!1,...m}=this.runPluginHandler("onBefore",e);if(g)return new Promise(()=>{});if(this.setState({loading:!0,params:e,...m}),v)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}),(a=(i=this.options).onError)==null||a.call(i,y,e),this.runPluginHandler("onError",y,e),new Promise(()=>{})}try{let{servicePromise:y}=this.runPluginHandler("onRequest",this.serviceRef.value,e);const b=O=>{var S,x,w,T;if(h!==this.count)return new Promise(()=>{});const P=this.options.formatResult?this.options.formatResult(O):O;return this.setState({data:P,error:void 0,loading:!1}),(x=(S=this.options).onSuccess)==null||x.call(S,P,e),this.runPluginHandler("onSuccess",P,e),this.previousValidData=P,(T=(w=this.options).onFinally)==null||T.call(w,e,P,void 0),h===this.count&&this.runPluginHandler("onFinally",e,P,void 0),P};y||(y=this.serviceRef.value(...e));const _=await y;return b(_)}catch(y){if(h!==this.count)return new Promise(()=>{});throw this.setState({error:y,loading:!1}),(s=(o=this.options).onError)==null||s.call(o,y,e),this.runPluginHandler("onError",y,e),(yee((l=this.options)==null?void 0:l.rollbackOnError)&&((u=this.options)!=null&&u.rollbackOnError(e))||EZe((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),h===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=yee(e)?e(this.state.data):e;this.runPluginHandler("onMutate",n),this.setState({data:n})}}const RZe=Symbol("USEREQUEST_GLOBAL_OPTIONS_PROVIDE_KEY");function kZe(t){return Object.keys(t).filter(n=>["data","loading","params","error"].includes(n)).length===4}function NZe(t,e={},n=[]){const r=p.inject(RZe,{}),{initialData:i=void 0,manual:a=!1,ready:o=!0,...s}={...r??{},...e??{}},l={manual:a,ready:o,initialData:i,...s},u=p.ref(t),c=p.reactive({data:i,loading:!1,params:void 0,error:void 0}),f=(v,m)=>{m?c[m]=v:kZe(v)&&(c.data=v.data,c.loading=v.loading,c.error=v.error,c.params=v.params)},d=n.map(v=>{var m;return(m=v==null?void 0:v.onInit)==null?void 0:m.call(v,l)}).filter(Boolean),h=new DZe(u,l,f,Object.assign({},...d,c));h.options=l,h.pluginImpls=n.map(v=>v(h,l));const g=p.computed(()=>p.isRef(o)?o.value:o);if(p.watchEffect(()=>{if(!a){const v=h.state.params||e.defaultParams||[];g.value&&h.options.refreshDeps===!0&&u.value&&h.run(...v)}}),!a&&h.options.refreshDeps!==!0){const v=h.state.params||e.defaultParams||[];p.unref(o)&&h.run(...v)}return p.onScopeDispose(()=>{h.cancel()}),{...p.toRefs(c),cancel:h.cancel.bind(h),refresh:h.refresh.bind(h),refreshAsync:h.refreshAsync.bind(h),run:h.run.bind(h),runAsync:h.runAsync.bind(h),mutate:h.mutate.bind(h)}}const LZe=(t,e)=>function(r,i={},a=[]){let o=t;const s=e||[];for(let l=s.length;l--;)o=s[l](o);return o(r,i,a)};function VZe(t,e,n){var r;const i=(r=[process.env.NODE_ENV==="development"?hZe:null,iZe,pZe,mZe,OZe,AZe,oee,sGe,SZe])==null?void 0:r.filter(Boolean);return LZe(NZe,e==null?void 0:e.use)(t,e,[...i])}/*! js-cookie v3.0.5 | MIT */function dS(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 BZe={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 HD(t,e){function n(i,a,o){if(!(typeof document>"u")){o=dS({},e,o),typeof o.expires=="number"&&(o.expires=new Date(Date.now()+o.expires*864e5)),o.expires&&(o.expires=o.expires.toUTCString()),i=encodeURIComponent(i).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var s="";for(var l in o)o[l]&&(s+="; "+l,o[l]!==!0&&(s+="="+o[l].split(";")[0]));return document.cookie=i+"="+t.write(a,i)+s}}function r(i){if(!(typeof document>"u"||arguments.length&&!i)){for(var a=document.cookie?document.cookie.split("; "):[],o={},s=0;s<a.length;s++){var l=a[s].split("="),u=l.slice(1).join("=");try{var c=decodeURIComponent(l[0]);if(o[c]=t.read(u,c),i===c)break}catch{}}return i?o[i]:o}}return Object.create({set:n,get:r,remove:function(i,a){n(i,"",dS({},a,{expires:-1}))},withAttributes:function(i){return HD(this.converter,dS({},this.attributes,i))},withConverter:function(i){return HD(dS({},this.converter,i),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}HD(BZe,{path:"/"});function zZe(){this.__data__=[],this.size=0}var FZe=zZe;function WZe(t,e){return t===e||t!==t&&e!==e}var hS=WZe,QZe=hS;function HZe(t,e){for(var n=t.length;n--;)if(QZe(t[n][0],e))return n;return-1}var pS=HZe,jZe=pS,GZe=Array.prototype,ZZe=GZe.splice;function UZe(t){var e=this.__data__,n=jZe(e,t);if(n<0)return!1;var r=e.length-1;return n==r?e.pop():ZZe.call(e,n,1),--this.size,!0}var XZe=UZe,YZe=pS;function qZe(t){var e=this.__data__,n=YZe(e,t);return n<0?void 0:e[n][1]}var KZe=qZe,JZe=pS;function eUe(t){return JZe(this.__data__,t)>-1}var tUe=eUe,nUe=pS;function rUe(t,e){var n=this.__data__,r=nUe(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var iUe=rUe,aUe=FZe,oUe=XZe,sUe=KZe,lUe=tUe,uUe=iUe;function _h(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])}}_h.prototype.clear=aUe,_h.prototype.delete=oUe,_h.prototype.get=sUe,_h.prototype.has=lUe,_h.prototype.set=uUe;var gS=_h,cUe=gS;function fUe(){this.__data__=new cUe,this.size=0}var dUe=fUe;function hUe(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}var pUe=hUe;function gUe(t){return this.__data__.get(t)}var vUe=gUe;function mUe(t){return this.__data__.has(t)}var yUe=mUe,bUe=bh,_Ue=Na,OUe="[object AsyncFunction]",SUe="[object Function]",xUe="[object GeneratorFunction]",wUe="[object Proxy]";function CUe(t){if(!_Ue(t))return!1;var e=bUe(t);return e==SUe||e==xUe||e==OUe||e==wUe}var jD=CUe,TUe=La,PUe=TUe["__core-js_shared__"],$Ue=PUe,GD=$Ue,bee=function(){var t=/[^.]+$/.exec(GD&&GD.keys&&GD.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function AUe(t){return!!bee&&bee in t}var EUe=AUe,MUe=Function.prototype,IUe=MUe.toString;function DUe(t){if(t!=null){try{return IUe.call(t)}catch{}try{return t+""}catch{}}return""}var _ee=DUe,RUe=jD,kUe=EUe,NUe=Na,LUe=_ee,VUe=/[\\^$.*+?()[\]{}|]/g,BUe=/^\[object .+?Constructor\]$/,zUe=Function.prototype,FUe=Object.prototype,WUe=zUe.toString,QUe=FUe.hasOwnProperty,HUe=RegExp("^"+WUe.call(QUe).replace(VUe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function jUe(t){if(!NUe(t)||kUe(t))return!1;var e=RUe(t)?HUe:BUe;return e.test(LUe(t))}var GUe=jUe;function ZUe(t,e){return t==null?void 0:t[e]}var UUe=ZUe,XUe=GUe,YUe=UUe;function qUe(t,e){var n=YUe(t,e);return XUe(n)?n:void 0}var Qc=qUe,KUe=Qc,JUe=La,eXe=KUe(JUe,"Map"),ZD=eXe,tXe=Qc,nXe=tXe(Object,"create"),vS=nXe,Oee=vS;function rXe(){this.__data__=Oee?Oee(null):{},this.size=0}var iXe=rXe;function aXe(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var oXe=aXe,sXe=vS,lXe="__lodash_hash_undefined__",uXe=Object.prototype,cXe=uXe.hasOwnProperty;function fXe(t){var e=this.__data__;if(sXe){var n=e[t];return n===lXe?void 0:n}return cXe.call(e,t)?e[t]:void 0}var dXe=fXe,hXe=vS,pXe=Object.prototype,gXe=pXe.hasOwnProperty;function vXe(t){var e=this.__data__;return hXe?e[t]!==void 0:gXe.call(e,t)}var mXe=vXe,yXe=vS,bXe="__lodash_hash_undefined__";function _Xe(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=yXe&&e===void 0?bXe:e,this}var OXe=_Xe,SXe=iXe,xXe=oXe,wXe=dXe,CXe=mXe,TXe=OXe;function Oh(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])}}Oh.prototype.clear=SXe,Oh.prototype.delete=xXe,Oh.prototype.get=wXe,Oh.prototype.has=CXe,Oh.prototype.set=TXe;var PXe=Oh,See=PXe,$Xe=gS,AXe=ZD;function EXe(){this.size=0,this.__data__={hash:new See,map:new(AXe||$Xe),string:new See}}var MXe=EXe;function IXe(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var DXe=IXe,RXe=DXe;function kXe(t,e){var n=t.__data__;return RXe(e)?n[typeof e=="string"?"string":"hash"]:n.map}var mS=kXe,NXe=mS;function LXe(t){var e=NXe(this,t).delete(t);return this.size-=e?1:0,e}var VXe=LXe,BXe=mS;function zXe(t){return BXe(this,t).get(t)}var FXe=zXe,WXe=mS;function QXe(t){return WXe(this,t).has(t)}var HXe=QXe,jXe=mS;function GXe(t,e){var n=jXe(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}var ZXe=GXe,UXe=MXe,XXe=VXe,YXe=FXe,qXe=HXe,KXe=ZXe;function Sh(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])}}Sh.prototype.clear=UXe,Sh.prototype.delete=XXe,Sh.prototype.get=YXe,Sh.prototype.has=qXe,Sh.prototype.set=KXe;var xee=Sh,JXe=gS,eYe=ZD,tYe=xee,nYe=200;function rYe(t,e){var n=this.__data__;if(n instanceof JXe){var r=n.__data__;if(!eYe||r.length<nYe-1)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new tYe(r)}return n.set(t,e),this.size=n.size,this}var iYe=rYe,aYe=gS,oYe=dUe,sYe=pUe,lYe=vUe,uYe=yUe,cYe=iYe;function xh(t){var e=this.__data__=new aYe(t);this.size=e.size}xh.prototype.clear=oYe,xh.prototype.delete=sYe,xh.prototype.get=lYe,xh.prototype.has=uYe,xh.prototype.set=cYe;var wee=xh;function fYe(t,e){for(var n=-1,r=t==null?0:t.length;++n<r&&e(t[n],n,t)!==!1;);return t}var dYe=fYe,hYe=Qc,pYe=function(){try{var t=hYe(Object,"defineProperty");return t({},"",{}),t}catch{}}(),Cee=pYe,Tee=Cee;function gYe(t,e,n){e=="__proto__"&&Tee?Tee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}var UD=gYe,vYe=UD,mYe=hS,yYe=Object.prototype,bYe=yYe.hasOwnProperty;function _Ye(t,e,n){var r=t[e];(!(bYe.call(t,e)&&mYe(r,n))||n===void 0&&!(e in t))&&vYe(t,e,n)}var Pee=_Ye,OYe=Pee,SYe=UD;function xYe(t,e,n,r){var i=!n;n||(n={});for(var a=-1,o=e.length;++a<o;){var s=e[a],l=r?r(n[s],t[s],s,n,t):void 0;l===void 0&&(l=t[s]),i?SYe(n,s,l):OYe(n,s,l)}return n}var wm=xYe;function wYe(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}var CYe=wYe,TYe=bh,PYe=Dl,$Ye="[object Arguments]";function AYe(t){return PYe(t)&&TYe(t)==$Ye}var EYe=AYe,$ee=EYe,MYe=Dl,Aee=Object.prototype,IYe=Aee.hasOwnProperty,DYe=Aee.propertyIsEnumerable,RYe=$ee(function(){return arguments}())?$ee:function(t){return MYe(t)&&IYe.call(t,"callee")&&!DYe.call(t,"callee")},Eee=RYe,kYe=Array.isArray,yS=kYe,bS={exports:{}};function NYe(){return!1}var LYe=NYe;bS.exports,function(t,e){var n=La,r=LYe,i=e&&!e.nodeType&&e,a=i&&!0&&t&&!t.nodeType&&t,o=a&&a.exports===i,s=o?n.Buffer:void 0,l=s?s.isBuffer:void 0,u=l||r;t.exports=u}(bS,bS.exports);var XD=bS.exports,VYe=9007199254740991,BYe=/^(?:0|[1-9]\d*)$/;function zYe(t,e){var n=typeof t;return e=e??VYe,!!e&&(n=="number"||n!="symbol"&&BYe.test(t))&&t>-1&&t%1==0&&t<e}var Mee=zYe,FYe=9007199254740991;function WYe(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=FYe}var Iee=WYe,QYe=bh,HYe=Iee,jYe=Dl,GYe="[object Arguments]",ZYe="[object Array]",UYe="[object Boolean]",XYe="[object Date]",YYe="[object Error]",qYe="[object Function]",KYe="[object Map]",JYe="[object Number]",eqe="[object Object]",tqe="[object RegExp]",nqe="[object Set]",rqe="[object String]",iqe="[object WeakMap]",aqe="[object ArrayBuffer]",oqe="[object DataView]",sqe="[object Float32Array]",lqe="[object Float64Array]",uqe="[object Int8Array]",cqe="[object Int16Array]",fqe="[object Int32Array]",dqe="[object Uint8Array]",hqe="[object Uint8ClampedArray]",pqe="[object Uint16Array]",gqe="[object Uint32Array]",Qt={};Qt[sqe]=Qt[lqe]=Qt[uqe]=Qt[cqe]=Qt[fqe]=Qt[dqe]=Qt[hqe]=Qt[pqe]=Qt[gqe]=!0,Qt[GYe]=Qt[ZYe]=Qt[aqe]=Qt[UYe]=Qt[oqe]=Qt[XYe]=Qt[YYe]=Qt[qYe]=Qt[KYe]=Qt[JYe]=Qt[eqe]=Qt[tqe]=Qt[nqe]=Qt[rqe]=Qt[iqe]=!1;function vqe(t){return jYe(t)&&HYe(t.length)&&!!Qt[QYe(t)]}var mqe=vqe;function yqe(t){return function(e){return t(e)}}var YD=yqe,_S={exports:{}};_S.exports,function(t,e){var n=see,r=e&&!e.nodeType&&e,i=r&&!0&&t&&!t.nodeType&&t,a=i&&i.exports===r,o=a&&n.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();t.exports=s}(_S,_S.exports);var qD=_S.exports,bqe=mqe,_qe=YD,Dee=qD,Ree=Dee&&Dee.isTypedArray,Oqe=Ree?_qe(Ree):bqe,kee=Oqe,Sqe=CYe,xqe=Eee,wqe=yS,Cqe=XD,Tqe=Mee,Pqe=kee,$qe=Object.prototype,Aqe=$qe.hasOwnProperty;function Eqe(t,e){var n=wqe(t),r=!n&&xqe(t),i=!n&&!r&&Cqe(t),a=!n&&!r&&!i&&Pqe(t),o=n||r||i||a,s=o?Sqe(t.length,String):[],l=s.length;for(var u in t)(e||Aqe.call(t,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Tqe(u,l)))&&s.push(u);return s}var Nee=Eqe,Mqe=Object.prototype;function Iqe(t){var e=t&&t.constructor,n=typeof e=="function"&&e.prototype||Mqe;return t===n}var KD=Iqe;function Dqe(t,e){return function(n){return t(e(n))}}var Lee=Dqe,Rqe=Lee,kqe=Rqe(Object.keys,Object),Nqe=kqe,Lqe=KD,Vqe=Nqe,Bqe=Object.prototype,zqe=Bqe.hasOwnProperty;function Fqe(t){if(!Lqe(t))return Vqe(t);var e=[];for(var n in Object(t))zqe.call(t,n)&&n!="constructor"&&e.push(n);return e}var Wqe=Fqe,Qqe=jD,Hqe=Iee;function jqe(t){return t!=null&&Hqe(t.length)&&!Qqe(t)}var OS=jqe,Gqe=Nee,Zqe=Wqe,Uqe=OS;function Xqe(t){return Uqe(t)?Gqe(t):Zqe(t)}var JD=Xqe,Yqe=wm,qqe=JD;function Kqe(t,e){return t&&Yqe(e,qqe(e),t)}var Jqe=Kqe;function eKe(t){var e=[];if(t!=null)for(var n in Object(t))e.push(n);return e}var tKe=eKe,nKe=Na,rKe=KD,iKe=tKe,aKe=Object.prototype,oKe=aKe.hasOwnProperty;function sKe(t){if(!nKe(t))return iKe(t);var e=rKe(t),n=[];for(var r in t)r=="constructor"&&(e||!oKe.call(t,r))||n.push(r);return n}var lKe=sKe,uKe=Nee,cKe=lKe,fKe=OS;function dKe(t){return fKe(t)?uKe(t,!0):cKe(t)}var Cm=dKe,hKe=wm,pKe=Cm;function gKe(t,e){return t&&hKe(e,pKe(e),t)}var vKe=gKe,SS={exports:{}};SS.exports,function(t,e){var n=La,r=e&&!e.nodeType&&e,i=r&&!0&&t&&!t.nodeType&&t,a=i&&i.exports===r,o=a?n.Buffer:void 0,s=o?o.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}(SS,SS.exports);var Vee=SS.exports;function mKe(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}var Bee=mKe;function yKe(t,e){for(var n=-1,r=t==null?0:t.length,i=0,a=[];++n<r;){var o=t[n];e(o,n,t)&&(a[i++]=o)}return a}var bKe=yKe;function _Ke(){return[]}var zee=_Ke,OKe=bKe,SKe=zee,xKe=Object.prototype,wKe=xKe.propertyIsEnumerable,Fee=Object.getOwnPropertySymbols,CKe=Fee?function(t){return t==null?[]:(t=Object(t),OKe(Fee(t),function(e){return wKe.call(t,e)}))}:SKe,eR=CKe,TKe=wm,PKe=eR;function $Ke(t,e){return TKe(t,PKe(t),e)}var AKe=$Ke;function EKe(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}var Wee=EKe,MKe=Lee,IKe=MKe(Object.getPrototypeOf,Object),tR=IKe,DKe=Wee,RKe=tR,kKe=eR,NKe=zee,LKe=Object.getOwnPropertySymbols,VKe=LKe?function(t){for(var e=[];t;)DKe(e,kKe(t)),t=RKe(t);return e}:NKe,Qee=VKe,BKe=wm,zKe=Qee;function FKe(t,e){return BKe(t,zKe(t),e)}var WKe=FKe,QKe=Wee,HKe=yS;function jKe(t,e,n){var r=e(t);return HKe(t)?r:QKe(r,n(t))}var Hee=jKe,GKe=Hee,ZKe=eR,UKe=JD;function XKe(t){return GKe(t,UKe,ZKe)}var YKe=XKe,qKe=Hee,KKe=Qee,JKe=Cm;function eJe(t){return qKe(t,JKe,KKe)}var tJe=eJe,nJe=Qc,rJe=La,iJe=nJe(rJe,"DataView"),aJe=iJe,oJe=Qc,sJe=La,lJe=oJe(sJe,"Promise"),uJe=lJe,cJe=Qc,fJe=La,dJe=cJe(fJe,"Set"),hJe=dJe,pJe=Qc,gJe=La,vJe=pJe(gJe,"WeakMap"),mJe=vJe,nR=aJe,rR=ZD,iR=uJe,aR=hJe,oR=mJe,jee=bh,wh=_ee,Gee="[object Map]",yJe="[object Object]",Zee="[object Promise]",Uee="[object Set]",Xee="[object WeakMap]",Yee="[object DataView]",bJe=wh(nR),_Je=wh(rR),OJe=wh(iR),SJe=wh(aR),xJe=wh(oR),Hc=jee;(nR&&Hc(new nR(new ArrayBuffer(1)))!=Yee||rR&&Hc(new rR)!=Gee||iR&&Hc(iR.resolve())!=Zee||aR&&Hc(new aR)!=Uee||oR&&Hc(new oR)!=Xee)&&(Hc=function(t){var e=jee(t),n=e==yJe?t.constructor:void 0,r=n?wh(n):"";if(r)switch(r){case bJe:return Yee;case _Je:return Gee;case OJe:return Zee;case SJe:return Uee;case xJe:return Xee}return e});var sR=Hc,wJe=Object.prototype,CJe=wJe.hasOwnProperty;function TJe(t){var e=t.length,n=new t.constructor(e);return e&&typeof t[0]=="string"&&CJe.call(t,"index")&&(n.index=t.index,n.input=t.input),n}var PJe=TJe,$Je=La,AJe=$Je.Uint8Array,EJe=AJe,qee=EJe;function MJe(t){var e=new t.constructor(t.byteLength);return new qee(e).set(new qee(t)),e}var lR=MJe,IJe=lR;function DJe(t,e){var n=e?IJe(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}var RJe=DJe,kJe=/\w*$/;function NJe(t){var e=new t.constructor(t.source,kJe.exec(t));return e.lastIndex=t.lastIndex,e}var LJe=NJe,Kee=cS,Jee=Kee?Kee.prototype:void 0,ete=Jee?Jee.valueOf:void 0;function VJe(t){return ete?Object(ete.call(t)):{}}var BJe=VJe,zJe=lR;function FJe(t,e){var n=e?zJe(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}var tte=FJe,WJe=lR,QJe=RJe,HJe=LJe,jJe=BJe,GJe=tte,ZJe="[object Boolean]",UJe="[object Date]",XJe="[object Map]",YJe="[object Number]",qJe="[object RegExp]",KJe="[object Set]",JJe="[object String]",eet="[object Symbol]",tet="[object ArrayBuffer]",net="[object DataView]",ret="[object Float32Array]",iet="[object Float64Array]",aet="[object Int8Array]",oet="[object Int16Array]",set="[object Int32Array]",uet="[object Uint8Array]",cet="[object Uint8ClampedArray]",fet="[object Uint16Array]",det="[object Uint32Array]";function het(t,e,n){var r=t.constructor;switch(e){case tet:return WJe(t);case ZJe:case UJe:return new r(+t);case net:return QJe(t,n);case ret:case iet:case aet:case oet:case set:case uet:case cet:case fet:case det:return GJe(t,n);case XJe:return new r;case YJe:case JJe:return new r(t);case qJe:return HJe(t);case KJe:return new r;case eet:return jJe(t)}}var pet=het,get=Na,nte=Object.create,vet=function(){function t(){}return function(e){if(!get(e))return{};if(nte)return nte(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),met=vet,yet=met,bet=tR,_et=KD;function Oet(t){return typeof t.constructor=="function"&&!_et(t)?yet(bet(t)):{}}var rte=Oet,xet=sR,wet=Dl,Cet="[object Map]";function Tet(t){return wet(t)&&xet(t)==Cet}var Pet=Tet,$et=Pet,Aet=YD,ite=qD,ate=ite&&ite.isMap,Eet=ate?Aet(ate):$et,Met=Eet,Iet=sR,Det=Dl,Ret="[object Set]";function ket(t){return Det(t)&&Iet(t)==Ret}var Net=ket,Let=Net,Vet=YD,ote=qD,ste=ote&&ote.isSet,Bet=ste?Vet(ste):Let,zet=Bet,Fet=wee,Wet=dYe,Qet=Pee,Het=Jqe,jet=vKe,Get=Vee,Zet=Bee,Uet=AKe,Xet=WKe,Yet=YKe,qet=tJe,Ket=sR,Jet=PJe,ett=pet,ttt=rte,ntt=yS,rtt=XD,itt=Met,att=Na,ott=zet,stt=JD,ltt=Cm,utt=1,ctt=2,ftt=4,lte="[object Arguments]",dtt="[object Array]",htt="[object Boolean]",ptt="[object Date]",gtt="[object Error]",ute="[object Function]",vtt="[object GeneratorFunction]",mtt="[object Map]",ytt="[object Number]",cte="[object Object]",btt="[object RegExp]",_tt="[object Set]",Ott="[object String]",Stt="[object Symbol]",xtt="[object WeakMap]",wtt="[object ArrayBuffer]",Ctt="[object DataView]",Ttt="[object Float32Array]",Ptt="[object Float64Array]",$tt="[object Int8Array]",Att="[object Int16Array]",Ett="[object Int32Array]",Mtt="[object Uint8Array]",Itt="[object Uint8ClampedArray]",Dtt="[object Uint16Array]",Rtt="[object Uint32Array]",Lt={};Lt[lte]=Lt[dtt]=Lt[wtt]=Lt[Ctt]=Lt[htt]=Lt[ptt]=Lt[Ttt]=Lt[Ptt]=Lt[$tt]=Lt[Att]=Lt[Ett]=Lt[mtt]=Lt[ytt]=Lt[cte]=Lt[btt]=Lt[_tt]=Lt[Ott]=Lt[Stt]=Lt[Mtt]=Lt[Itt]=Lt[Dtt]=Lt[Rtt]=!0,Lt[gtt]=Lt[ute]=Lt[xtt]=!1;function xS(t,e,n,r,i,a){var o,s=e&utt,l=e&ctt,u=e&ftt;if(n&&(o=i?n(t,r,i,a):n(t)),o!==void 0)return o;if(!att(t))return t;var c=ntt(t);if(c){if(o=Jet(t),!s)return Zet(t,o)}else{var f=Ket(t),d=f==ute||f==vtt;if(rtt(t))return Get(t,s);if(f==cte||f==lte||d&&!i){if(o=l||d?{}:ttt(t),!s)return l?Xet(t,jet(o,t)):Uet(t,Het(o,t))}else{if(!Lt[f])return i?t:{};o=ett(t,f,s)}}a||(a=new Fet);var h=a.get(t);if(h)return h;a.set(t,o),ott(t)?t.forEach(function(m){o.add(xS(m,e,n,m,t,a))}):itt(t)&&t.forEach(function(m,y){o.set(y,xS(m,e,n,y,t,a))});var g=u?l?qet:Yet:l?ltt:stt,v=c?void 0:g(t);return Wet(v||t,function(m,y){v&&(y=m,m=t[y]),Qet(o,y,xS(m,e,n,y,t,a))}),o}var ktt=xS,Ntt=ktt,Ltt=1,Vtt=4;function Btt(t){return Ntt(t,Ltt|Vtt)}var ztt=Btt;const fte=ab(ztt);var Ftt=Object.defineProperty,Wtt=(t,e,n)=>e in t?Ftt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,jc=(t,e,n)=>(Wtt(t,typeof e!="symbol"?e+"":e,n),n);class Qtt{constructor(){jc(this,"subscriptions",new Map),jc(this,"emitEffectCache",new Map),jc(this,"useSubscription",(e,n)=>{const r=p.ref();p.watchEffect(i=>{var a,o;r.value=n;function s(u){r.value&&r.value(u)}const l=(o=(a=this.subscriptions)==null?void 0:a.get(e))!=null?o:[];l.push(s),this.subscriptions.set(e,l),this.emitEffect(e),i(()=>{this.subscriptions.delete(e)})})}),jc(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:fte(n),event:e})}),this.emitEffectCache.set(e,{params:fte(n),event:e})}else throw new TypeError("event must be string or number !")}),jc(this,"emitEffect",e=>{const n=this.emitEffectCache.get(e),r=this.subscriptions.get(e);n&&(r==null||r.forEach(i=>{i==null||i({...n})}))}),jc(this,"removeListener",e=>{this.subscriptions.delete(e)}),jc(this,"clear",()=>{this.subscriptions.clear()}),this.clear()}}new Qtt;var Htt={exports:{}};/*!
  359. * screenfull
  360. * v5.2.0 - 2021-11-03
  361. * (c) Sindre Sorhus; MIT License
  362. */(function(t){(function(){var e=typeof window<"u"&&typeof window.document<"u"?window.document:{},n=t.exports,r=function(){for(var o,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(o=s[l],o&&o[1]in e){for(l=0;l<o.length;l++)c[s[0][l]]=o[l];return c}return!1}(),i={change:r.fullscreenchange,error:r.fullscreenerror},a={request:function(o,s){return new Promise((function(l,u){var c=(function(){this.off("change",c),l()}).bind(this);this.on("change",c),o=o||e.documentElement;var f=o[r.requestFullscreen](s);f instanceof Promise&&f.then(c).catch(u)}).bind(this))},exit:function(){return new Promise((function(o,s){if(!this.isFullscreen){o();return}var l=(function(){this.off("change",l),o()}).bind(this);this.on("change",l);var u=e[r.exitFullscreen]();u instanceof Promise&&u.then(l).catch(s)}).bind(this))},toggle:function(o,s){return this.isFullscreen?this.exit():this.request(o,s)},onchange:function(o){this.on("change",o)},onerror:function(o){this.on("error",o)},on:function(o,s){var l=i[o];l&&e.addEventListener(l,s,!1)},off:function(o,s){var l=i[o];l&&e.removeEventListener(l,s,!1)},raw:r};if(!r){n?t.exports={isEnabled:!1}:window.screenfull={isEnabled:!1};return}Object.defineProperties(a,{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=a:window.screenfull=a})()})(Htt);var jtt="__lodash_hash_undefined__";function Gtt(t){return this.__data__.set(t,jtt),this}var Ztt=Gtt;function Utt(t){return this.__data__.has(t)}var Xtt=Utt,Ytt=xee,qtt=Ztt,Ktt=Xtt;function uR(t){var e=-1,n=t==null?0:t.length;for(this.__data__=new Ytt;++e<n;)this.add(t[e])}uR.prototype.add=uR.prototype.push=qtt,uR.prototype.has=Ktt;var dte=cS,hte=dte?dte.prototype:void 0;hte&&hte.valueOf;var Jtt=UD,ent=hS;function tnt(t,e,n){(n!==void 0&&!ent(t[e],n)||n===void 0&&!(e in t))&&Jtt(t,e,n)}var pte=tnt;function nnt(t){return function(e,n,r){for(var i=-1,a=Object(e),o=r(e),s=o.length;s--;){var l=o[t?s:++i];if(n(a[l],l,a)===!1)break}return e}}var rnt=nnt,int=rnt,ant=int(),ont=ant,snt=OS,lnt=Dl;function unt(t){return lnt(t)&&snt(t)}var cnt=unt,fnt=bh,dnt=tR,hnt=Dl,pnt="[object Object]",gnt=Function.prototype,vnt=Object.prototype,gte=gnt.toString,mnt=vnt.hasOwnProperty,ynt=gte.call(Object);function bnt(t){if(!hnt(t)||fnt(t)!=pnt)return!1;var e=dnt(t);if(e===null)return!0;var n=mnt.call(e,"constructor")&&e.constructor;return typeof n=="function"&&n instanceof n&&gte.call(n)==ynt}var _nt=bnt;function Ont(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var vte=Ont,Snt=wm,xnt=Cm;function wnt(t){return Snt(t,xnt(t))}var Cnt=wnt,mte=pte,Tnt=Vee,Pnt=tte,$nt=Bee,Ant=rte,yte=Eee,bte=yS,Ent=cnt,Mnt=XD,Int=jD,Dnt=Na,Rnt=_nt,knt=kee,_te=vte,Nnt=Cnt;function Lnt(t,e,n,r,i,a,o){var s=_te(t,n),l=_te(e,n),u=o.get(l);if(u){mte(t,n,u);return}var c=a?a(s,l,n+"",t,e,o):void 0,f=c===void 0;if(f){var d=bte(l),h=!d&&Mnt(l),g=!d&&!h&&knt(l);c=l,d||h||g?bte(s)?c=s:Ent(s)?c=$nt(s):h?(f=!1,c=Tnt(l,!0)):g?(f=!1,c=Pnt(l,!0)):c=[]:Rnt(l)||yte(l)?(c=s,yte(s)?c=Nnt(s):(!Dnt(s)||Int(s))&&(c=Ant(l))):f=!1}f&&(o.set(l,c),i(c,l,r,a,o),o.delete(l)),mte(t,n,c)}var Vnt=Lnt,Bnt=wee,znt=pte,Fnt=ont,Wnt=Vnt,Qnt=Na,Hnt=Cm,jnt=vte;function Ote(t,e,n,r,i){t!==e&&Fnt(e,function(a,o){if(i||(i=new Bnt),Qnt(a))Wnt(t,e,o,n,Ote,r,i);else{var s=r?r(jnt(t,o),a,o+"",t,e,i):void 0;s===void 0&&(s=a),znt(t,o,s)}},Hnt)}var Gnt=Ote;function Znt(t){return t}var Ste=Znt;function Unt(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 Xnt=Unt,Ynt=Xnt,xte=Math.max;function qnt(t,e,n){return e=xte(e===void 0?t.length-1:e,0),function(){for(var r=arguments,i=-1,a=xte(r.length-e,0),o=Array(a);++i<a;)o[i]=r[e+i];i=-1;for(var s=Array(e+1);++i<e;)s[i]=r[i];return s[e]=n(o),Ynt(t,this,s)}}var Knt=qnt;function Jnt(t){return function(){return t}}var ert=Jnt,trt=ert,wte=Cee,nrt=Ste,rrt=wte?function(t,e){return wte(t,"toString",{configurable:!0,enumerable:!1,value:trt(e),writable:!0})}:nrt,irt=rrt,art=800,ort=16,srt=Date.now;function lrt(t){var e=0,n=0;return function(){var r=srt(),i=ort-(r-n);if(n=r,i>0){if(++e>=art)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var urt=lrt,crt=irt,frt=urt,drt=frt(crt),hrt=drt,prt=Ste,grt=Knt,vrt=hrt;function mrt(t,e){return vrt(grt(t,e,prt),t+"")}var yrt=mrt,brt=hS,_rt=OS,Ort=Mee,Srt=Na;function xrt(t,e,n){if(!Srt(n))return!1;var r=typeof e;return(r=="number"?_rt(n)&&Ort(e,n.length):r=="string"&&e in n)?brt(n[e],t):!1}var wrt=xrt,Crt=yrt,Trt=wrt;function Prt(t){return Crt(function(e,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,o=i>2?n[2]:void 0;for(a=t.length>3&&typeof a=="function"?(i--,a):void 0,o&&Trt(n[0],n[1],o)&&(a=i<3?void 0:a,i=1),e=Object(e);++r<i;){var s=n[r];s&&t(e,s,r,a)}return e})}var $rt=Prt,Art=Gnt,Ert=$rt;Ert(function(t,e,n){Art(t,e,n)});const cR=t=>{var d,h;const e=t.dataSource||{},n=p.ref(),r=p.ref(),i=p.ref((d=e==null?void 0:e.data)==null?void 0:d.series),a=p.computed(()=>async()=>await fetch(t.dataSource.url,{method:t.dataSource.method}).then(g=>g.json())),{run:o,refresh:s,cancel:l,data:u,loading:c}=VZe(a.value,{defaultParams:t.dataSource.params,manual:!0,pollingInterval:(((h=t.dataSource)==null?void 0:h.refreshTime)||0)*1e3,onError:g=>{console.error(g),Wf.error(t.dataSource.url+"请求失败")}});return t.dataSource.sourceType===Rr.API&&o(),p.watch(()=>u.value,async g=>{if(g&&t.dataSource.sourceType===Rr.API){let v=g;t.dataSource.dataProcess&&(v=await J9e(t.dataSource.dataProcess,JSON.stringify(g))),n.value=v.xAxis||{data:v.xData},r.value=v.yAxis||{data:v.yData},i.value=v.series}},{deep:!0}),p.watch(()=>[t.dataSource.sourceType,t.dataSource.method],()=>{if(t.dataSource.sourceType===Rr.API)s();else{l();const g=t.dataSource||{},{xData:v,yData:m,series:y}=(g==null?void 0:g.data)||{};v&&(n.value={data:v}),m&&(r.value={data:m}),y.value=y}},{deep:!0}),{options:p.computed(()=>{var y;const g=m3(t,["width","height","dataSource"]),v=(g==null?void 0:g.label)||{},m=g3({xAxis:n.value,yAxis:r.value,series:(y=i.value)==null?void 0:y.map(b=>{var O;const _=((O=g.series)==null?void 0:O[b.type])||{};return{...v,...b,..._}})},g);return console.log("option result:",m),m}),loading:c}},Ch=p.defineComponent({__name:"BasicLine",props:sS,setup(t){const e=t,{options:n,loading:r}=cR(e);return(i,a)=>(p.openBlock(),p.createBlock(LD,{width:i.width,height:i.height,"echarts-options":p.unref(n),loading:p.unref(r)},null,8,["width","height","echarts-options","loading"]))}});class Ot{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]=Th(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),wo.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]=Th(this,e,n);let r=[];return this.decompose(e,n,r,0),wo.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 Tm(this),a=new Tm(e);for(let o=n,s=n;;){if(i.next(o),a.next(o),o=0,i.lineBreak!=a.lineBreak||i.done!=a.done||i.value!=a.value)return!1;if(s+=i.value.length,i.done||s>=r)return!0}}iter(e=1){return new Tm(this,e)}iterRange(e,n=this.length){return new Tte(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 Pte(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]?Ot.empty:e.length<=32?new un(e):wo.from(un.split(e,[]))}}class un extends Ot{constructor(e,n=Mrt(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 a=0;;a++){let o=this.text[a],s=i+o.length;if((n?r:s)>=e)return new Irt(i,s,r,o);i=s+1,r++}}decompose(e,n,r,i){let a=e<=0&&n>=this.length?this:new un(Cte(this.text,e,n),Math.min(n,this.length)-Math.max(0,e));if(i&1){let o=r.pop(),s=wS(a.text,o.text.slice(),0,a.length);if(s.length<=32)r.push(new un(s,o.length+a.length));else{let l=s.length>>1;r.push(new un(s.slice(0,l)),new un(s.slice(l)))}}else r.push(a)}replace(e,n,r){if(!(r instanceof un))return super.replace(e,n,r);[e,n]=Th(this,e,n);let i=wS(this.text,wS(r.text,Cte(this.text,0,e)),n),a=this.length+r.length-(n-e);return i.length<=32?new un(i,a):wo.from(un.split(i,[]),a)}sliceString(e,n=this.length,r=`
  363. `){[e,n]=Th(this,e,n);let i="";for(let a=0,o=0;a<=n&&o<this.text.length;o++){let s=this.text[o],l=a+s.length;a>e&&o&&(i+=r),e<l&&n>a&&(i+=s.slice(Math.max(0,e-a),n-a)),a=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 a of e)r.push(a),i+=a.length+1,r.length==32&&(n.push(new un(r,i)),r=[],i=-1);return i>-1&&n.push(new un(r,i)),n}}class wo extends Ot{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 a=0;;a++){let o=this.children[a],s=i+o.length,l=r+o.lines-1;if((n?l:s)>=e)return o.lineInner(e,n,r,i);i=s+1,r=l+1}}decompose(e,n,r,i){for(let a=0,o=0;o<=n&&a<this.children.length;a++){let s=this.children[a],l=o+s.length;if(e<=l&&n>=o){let u=i&((o<=e?1:0)|(l>=n?2:0));o>=e&&l<=n&&!u?r.push(s):s.decompose(e-o,n-o,r,u)}o=l+1}}replace(e,n,r){if([e,n]=Th(this,e,n),r.lines<this.lines)for(let i=0,a=0;i<this.children.length;i++){let o=this.children[i],s=a+o.length;if(e>=a&&n<=s){let l=o.replace(e-a,n-a,r),u=this.lines-o.lines+l.lines;if(l.lines<u>>4&&l.lines>u>>6){let c=this.children.slice();return c[i]=l,new wo(c,this.length-(n-e)+r.length)}return super.replace(a,s,l)}a=s+1}return super.replace(e,n,r)}sliceString(e,n=this.length,r=`
  364. `){[e,n]=Th(this,e,n);let i="";for(let a=0,o=0;a<this.children.length&&o<=n;a++){let s=this.children[a],l=o+s.length;o>e&&a&&(i+=r),e<l&&n>o&&(i+=s.sliceString(e-o,n-o,r)),o=l+1}return i}flatten(e){for(let n of this.children)n.flatten(e)}scanIdentical(e,n){if(!(e instanceof wo))return 0;let r=0,[i,a,o,s]=n>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;i+=n,a+=n){if(i==o||a==s)return r;let l=this.children[i],u=e.children[a];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 h of e)r+=h.lines;if(r<32){let h=[];for(let g of e)g.flatten(h);return new un(h,n)}let i=Math.max(32,r>>5),a=i<<1,o=i>>1,s=[],l=0,u=-1,c=[];function f(h){let g;if(h.lines>a&&h instanceof wo)for(let v of h.children)f(v);else h.lines>o&&(l>o||!l)?(d(),s.push(h)):h instanceof un&&l&&(g=c[c.length-1])instanceof un&&h.lines+g.lines<=32?(l+=h.lines,u+=h.length+1,c[c.length-1]=new un(g.text.concat(h.text),g.length+1+h.length)):(l+h.lines>i&&d(),l+=h.lines,u+=h.length+1,c.push(h))}function d(){l!=0&&(s.push(c.length==1?c[0]:wo.from(c,u)),u=-1,l=c.length=0)}for(let h of e)f(h);return d(),s.length==1?s[0]:new wo(s,n)}}Ot.empty=new un([""],0);function Mrt(t){let e=-1;for(let n of t)e+=n.length+1;return e}function wS(t,e,n=0,r=1e9){for(let i=0,a=0,o=!0;a<t.length&&i<=r;a++){let s=t[a],l=i+s.length;l>=n&&(l>r&&(s=s.slice(0,r-i)),i<n&&(s=s.slice(n-i)),o?(e[e.length-1]+=s,o=!1):e.push(s)),i=l+1}return e}function Cte(t,e,n){return wS(t,[""],e,n)}class Tm{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 un?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],a=this.offsets[r],o=a>>1,s=i instanceof un?i.text.length:i.children.length;if(o==(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((a&1)==(n>0?0:1)){if(this.offsets[r]+=n,e==0)return this.lineBreak=!0,this.value=`
  365. `,this;e--}else if(i instanceof un){let l=i.text[o+(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[o+(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 un?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 Tte{constructor(e,n,r){this.value="",this.done=!1,this.cursor=new Tm(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 Pte{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"&&(Ot.prototype[Symbol.iterator]=function(){return this.iter()},Tm.prototype[Symbol.iterator]=Tte.prototype[Symbol.iterator]=Pte.prototype[Symbol.iterator]=function(){return this});class Irt{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 Th(t,e,n){return e=Math.max(0,Math.min(t.length,e)),[e,Math.max(e,Math.min(t.length,n))]}let Ph="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<Ph.length;t++)Ph[t]+=Ph[t-1];function Drt(t){for(let e=1;e<Ph.length;e+=2)if(Ph[e]>t)return Ph[e-1]<=t;return!1}function $te(t){return t>=127462&&t<=127487}const Ate=8205;function Yn(t,e,n=!0,r=!0){return(n?Ete:Rrt)(t,e,r)}function Ete(t,e,n){if(e==t.length)return e;e&&Mte(t.charCodeAt(e))&&Ite(t.charCodeAt(e-1))&&e--;let r=qn(t,e);for(e+=sa(r);e<t.length;){let i=qn(t,e);if(r==Ate||i==Ate||n&&Drt(i))e+=sa(i),r=i;else if($te(i)){let a=0,o=e-2;for(;o>=0&&$te(qn(t,o));)a++,o-=2;if(a%2==0)break;e+=2}else break}return e}function Rrt(t,e,n){for(;e>0;){let r=Ete(t,e-2,n);if(r<e)return r;e--}return 0}function Mte(t){return t>=56320&&t<57344}function Ite(t){return t>=55296&&t<56320}function qn(t,e){let n=t.charCodeAt(e);if(!Ite(n)||e+1==t.length)return n;let r=t.charCodeAt(e+1);return Mte(r)?(n-55296<<10)+(r-56320)+65536:n}function fR(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode((t>>10)+55296,(t&1023)+56320))}function sa(t){return t<65536?1:2}const dR=/\r\n?|\n/;var Kn=function(t){return t[t.Simple=0]="Simple",t[t.TrackDel=1]="TrackDel",t[t.TrackBefore=2]="TrackBefore",t[t.TrackAfter=3]="TrackAfter",t}(Kn||(Kn={}));class Co{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 a=this.sections[n++],o=this.sections[n++];o<0?(e(r,i,a),i+=a):i+=o,r+=a}}iterChangedRanges(e,n=!1){hR(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 Co(e)}composeDesc(e){return this.empty?e:e.empty?this:Dte(this,e)}mapDesc(e,n=!1){return e.empty?this:pR(this,e,n)}mapPos(e,n=-1,r=Kn.Simple){let i=0,a=0;for(let o=0;o<this.sections.length;){let s=this.sections[o++],l=this.sections[o++],u=i+s;if(l<0){if(u>e)return a+(e-i);a+=s}else{if(r!=Kn.Simple&&u>=e&&(r==Kn.TrackDel&&i<e&&u>e||r==Kn.TrackBefore&&i<e||r==Kn.TrackAfter&&u>e))return null;if(u>e||u==e&&n<0&&!s)return e==i||n<0?a:a+l;a+=l}i=u}if(e>i)throw new RangeError(`Position ${e} is out of range for changeset of length ${i}`);return a}touchesRange(e,n=e){for(let r=0,i=0;r<this.sections.length&&i<=n;){let a=this.sections[r++],o=this.sections[r++],s=i+a;if(o>=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 Co(e)}static create(e){return new Co(e)}}class En extends Co{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 hR(this,(n,r,i,a,o)=>e=e.replace(i,i+(r-n),o),!1),e}mapDesc(e,n=!1){return pR(this,e,n,!0)}invert(e){let n=this.sections.slice(),r=[];for(let i=0,a=0;i<n.length;i+=2){let o=n[i],s=n[i+1];if(s>=0){n[i]=s,n[i+1]=o;let l=i>>1;for(;r.length<l;)r.push(Ot.empty);r.push(o?e.slice(a,a+o):Ot.empty)}a+=o}return new En(n,r)}compose(e){return this.empty?e:e.empty?this:Dte(this,e,!0)}map(e,n=!1){return e.empty?this:pR(this,e,n,!0)}iterChanges(e,n=!1){hR(this,e,n)}get desc(){return Co.create(this.sections)}filter(e){let n=[],r=[],i=[],a=new Pm(this);e:for(let o=0,s=0;;){let l=o==e.length?1e9:e[o++];for(;s<l||s==l&&a.len==0;){if(a.done)break e;let c=Math.min(a.len,l-s);cr(i,c,-1);let f=a.ins==-1?-1:a.off==0?a.ins:0;cr(n,c,f),f>0&&Rl(r,n,a.text),a.forward(c),s+=c}let u=e[o++];for(;s<u;){if(a.done)break e;let c=Math.min(a.len,u-s);cr(n,c,-1),cr(i,c,a.ins==-1?-1:a.off==0?a.ins:0),a.forward(c),s+=c}}return{changes:new En(n,r),filtered:Co.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=[],a=[],o=0,s=null;function l(c=!1){if(!c&&!i.length)return;o<n&&cr(i,n-o,-1);let f=new En(i,a);s=s?s.compose(f.map(s)):f,i=[],a=[],o=0}function u(c){if(Array.isArray(c))for(let f of c)u(f);else if(c instanceof En){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:h}=c;if(f>d||f<0||d>n)throw new RangeError(`Invalid change range ${f} to ${d} (in doc of length ${n})`);let g=h?typeof h=="string"?Ot.of(h.split(r||dR)):h:Ot.empty,v=g.length;if(f==d&&v==0)return;f<o&&l(),f>o&&cr(i,f-o,-1),cr(i,d-f,v),Rl(a,i,g),o=d}}return u(e),l(!s),s}static empty(e){return new En(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 a=e[i];if(typeof a=="number")n.push(a,-1);else{if(!Array.isArray(a)||typeof a[0]!="number"||a.some((o,s)=>s&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(a.length==1)n.push(a[0],0);else{for(;r.length<i;)r.push(Ot.empty);r[i]=Ot.of(a.slice(1)),n.push(a[0],r[i].length)}}}return new En(n,r)}static createSet(e,n){return new En(e,n)}}function cr(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 Rl(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(Ot.empty);t.push(n)}}function hR(t,e,n){let r=t.inserted;for(let i=0,a=0,o=0;o<t.sections.length;){let s=t.sections[o++],l=t.sections[o++];if(l<0)i+=s,a+=s;else{let u=i,c=a,f=Ot.empty;for(;u+=s,c+=l,l&&r&&(f=f.append(r[o-2>>1])),!(n||o==t.sections.length||t.sections[o+1]<0);)s=t.sections[o++],l=t.sections[o++];e(i,u,a,c,f),i=u,a=c}}}function pR(t,e,n,r=!1){let i=[],a=r?[]:null,o=new Pm(t),s=new Pm(e);for(let l=-1;;)if(o.ins==-1&&s.ins==-1){let u=Math.min(o.len,s.len);cr(i,u,-1),o.forward(u),s.forward(u)}else if(s.ins>=0&&(o.ins<0||l==o.i||o.off==0&&(s.len<o.len||s.len==o.len&&!n))){let u=s.len;for(cr(i,s.ins,-1);u;){let c=Math.min(o.len,u);o.ins>=0&&l<o.i&&o.len<=c&&(cr(i,0,o.ins),a&&Rl(a,i,o.text),l=o.i),o.forward(c),u-=c}s.next()}else if(o.ins>=0){let u=0,c=o.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;cr(i,u,l<o.i?o.ins:0),a&&l<o.i&&Rl(a,i,o.text),l=o.i,o.forward(o.len-c)}else{if(o.done&&s.done)return a?En.createSet(i,a):Co.create(i);throw new Error("Mismatched change set lengths")}}function Dte(t,e,n=!1){let r=[],i=n?[]:null,a=new Pm(t),o=new Pm(e);for(let s=!1;;){if(a.done&&o.done)return i?En.createSet(r,i):Co.create(r);if(a.ins==0)cr(r,a.len,0,s),a.next();else if(o.len==0&&!o.done)cr(r,0,o.ins,s),i&&Rl(i,r,o.text),o.next();else{if(a.done||o.done)throw new Error("Mismatched change set lengths");{let l=Math.min(a.len2,o.len),u=r.length;if(a.ins==-1){let c=o.ins==-1?-1:o.off?0:o.ins;cr(r,l,c,s),i&&c&&Rl(i,r,o.text)}else o.ins==-1?(cr(r,a.off?0:a.len,l,s),i&&Rl(i,r,a.textBit(l))):(cr(r,a.off?0:a.len,o.off?0:o.ins,s),i&&!o.off&&Rl(i,r,o.text));s=(a.ins>l||o.ins>=0&&o.len>l)&&(s||r.length>u),a.forward2(l),o.forward(l)}}}}class Pm{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?Ot.empty:e[n]}textBit(e){let{inserted:n}=this.set,r=this.i-2>>1;return r>=n.length&&!e?Ot.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 Gc{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 Gc(r,i,this.flags)}extend(e,n=e){if(e<=this.anchor&&n>=this.anchor)return ce.range(e,n);let r=Math.abs(e-this.anchor)>Math.abs(n-this.anchor)?e:n;return ce.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 ce.range(e.anchor,e.head)}static create(e,n,r){return new Gc(e,n,r)}}class ce{constructor(e,n){this.ranges=e,this.mainIndex=n}map(e,n=-1){return e.empty?this:ce.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 ce([this.main],0)}addRange(e,n=!0){return ce.create([e].concat(this.ranges),n?0:this.mainIndex+1)}replaceRange(e,n=this.mainIndex){let r=this.ranges.slice();return r[n]=e,ce.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 ce(e.ranges.map(n=>Gc.fromJSON(n)),e.main)}static single(e,n=e){return new ce([ce.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 a=e[i];if(a.empty?a.from<=r:a.from<r)return ce.normalized(e.slice(),n);r=a.to}return new ce(e,n)}static cursor(e,n=0,r,i){return Gc.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 a=(r??16777215)<<6|(i==null?7:Math.min(6,i));return n<e?Gc.create(n,e,48|a):Gc.create(e,n,(n>e?8:0)|a)}static normalized(e,n=0){let r=e[n];e.sort((i,a)=>i.from-a.from),n=e.indexOf(r);for(let i=1;i<e.length;i++){let a=e[i],o=e[i-1];if(a.empty?a.from<=o.to:a.from<o.to){let s=o.from,l=Math.max(a.to,o.to);i<=n&&n--,e.splice(--i,2,a.anchor>a.head?ce.range(l,s):ce.range(s,l))}}return new ce(e,n)}}function Rte(t,e){for(let n of t.ranges)if(n.to>e)throw new RangeError("Selection points outside of document")}let gR=0;class Ee{constructor(e,n,r,i,a){this.combine=e,this.compareInput=n,this.compare=r,this.isStatic=i,this.id=gR++,this.default=e([]),this.extensions=typeof a=="function"?a(this):a}get reader(){return this}static define(e={}){return new Ee(e.combine||(n=>n),e.compareInput||((n,r)=>n===r),e.compare||(e.combine?(n,r)=>n===r:vR),!!e.static,e.enables)}of(e){return new CS([],this,0,e)}compute(e,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new CS(e,this,1,n)}computeN(e,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new CS(e,this,2,n)}from(e,n){return n||(n=r=>r),this.compute([e],r=>n(r.field(e)))}}function vR(t,e){return t==e||t.length==e.length&&t.every((n,r)=>n===e[r])}class CS{constructor(e,n,r,i){this.dependencies=e,this.facet=n,this.type=r,this.value=i,this.id=gR++}dynamicSlot(e){var n;let r=this.value,i=this.facet.compareInput,a=this.id,o=e[a]>>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[o]=r(f),1},update(f,d){if(l&&d.docChanged||u&&(d.docChanged||d.selection)||mR(f,c)){let h=r(f);if(s?!kte(h,f.values[o],i):!i(h,f.values[o]))return f.values[o]=h,1}return 0},reconfigure:(f,d)=>{let h,g=d.config.address[a];if(g!=null){let v=PS(d,g);if(this.dependencies.every(m=>m instanceof Ee?d.facet(m)===f.facet(m):m instanceof Vn?d.field(m,!1)==f.field(m,!1):!0)||(s?kte(h=r(f),v,i):i(h=r(f),v)))return f.values[o]=v,0}else h=r(f);return f.values[o]=h,1}}}}function kte(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 mR(t,e){let n=!1;for(let r of e)Em(t,r)&1&&(n=!0);return n}function krt(t,e,n){let r=n.map(l=>t[l.id]),i=n.map(l=>l.type),a=r.filter(l=>!(l&1)),o=t[e.id]>>1;function s(l){let u=[];for(let c=0;c<r.length;c++){let f=PS(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)Em(l,u);return l.values[o]=s(l),1},update(l,u){if(!mR(l,a))return 0;let c=s(l);return e.compare(c,l.values[o])?0:(l.values[o]=c,1)},reconfigure(l,u){let c=mR(l,r),f=u.config.facets[e.id],d=u.facet(e);if(f&&!c&&vR(n,f))return l.values[o]=d,0;let h=s(l);return e.compare(h,d)?(l.values[o]=d,0):(l.values[o]=h,1)}}}const Nte=Ee.define({static:!0});class Vn{constructor(e,n,r,i,a){this.id=e,this.createF=n,this.updateF=r,this.compareF=i,this.spec=a,this.provides=void 0}static define(e){let n=new Vn(gR++,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(Nte).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 a=r.values[n],o=this.updateF(a,i);return this.compareF(a,o)?0:(r.values[n]=o,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,Nte.of({field:this,create:e})]}get extension(){return this}}const Zc={lowest:4,low:3,default:2,high:1,highest:0};function $m(t){return e=>new Lte(e,t)}const kl={highest:$m(Zc.highest),high:$m(Zc.high),default:$m(Zc.default),low:$m(Zc.low),lowest:$m(Zc.lowest)};class Lte{constructor(e,n){this.inner=e,this.prec=n}}class Am{of(e){return new yR(this,e)}reconfigure(e){return Am.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class yR{constructor(e,n){this.compartment=e,this.inner=n}}class TS{constructor(e,n,r,i,a,o){for(this.base=e,this.compartments=n,this.dynamicSlots=r,this.address=i,this.staticValues=a,this.facets=o,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=[],a=Object.create(null),o=new Map;for(let d of Nrt(e,n,o))d instanceof Vn?i.push(d):(a[d.facet.id]||(a[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(h=>d.slot(h));let c=r==null?void 0:r.config.facets;for(let d in a){let h=a[d],g=h[0].facet,v=c&&c[d]||[];if(h.every(m=>m.type==0))if(s[g.id]=l.length<<1|1,vR(v,h))l.push(r.facet(g));else{let m=g.combine(h.map(y=>y.value));l.push(r&&g.compare(m,r.facet(g))?r.facet(g):m)}else{for(let m of h)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[g.id]=u.length<<1,u.push(m=>krt(m,g,h))}}let f=u.map(d=>d(s));return new TS(e,o,f,s,l,a)}}function Nrt(t,e,n){let r=[[],[],[],[],[]],i=new Map;function a(o,s){let l=i.get(o);if(l!=null){if(l<=s)return;let u=r[l].indexOf(o);u>-1&&r[l].splice(u,1),o instanceof yR&&n.delete(o.compartment)}if(i.set(o,s),Array.isArray(o))for(let u of o)a(u,s);else if(o instanceof yR){if(n.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let u=e.get(o.compartment)||o.inner;n.set(o.compartment,u),a(u,s)}else if(o instanceof Lte)a(o.inner,o.prec);else if(o instanceof Vn)r[s].push(o),o.provides&&a(o.provides,s);else if(o instanceof CS)r[s].push(o),o.facet.extensions&&a(o.facet.extensions,Zc.default);else{let u=o.extension;if(!u)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);a(u,s)}}return a(t,Zc.default),r.reduce((o,s)=>o.concat(s))}function Em(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 PS(t,e){return e&1?t.config.staticValues[e>>1]:t.values[e>>1]}const Vte=Ee.define(),bR=Ee.define({combine:t=>t.some(e=>e),static:!0}),Bte=Ee.define({combine:t=>t.length?t[0]:void 0,static:!0}),zte=Ee.define(),Fte=Ee.define(),Wte=Ee.define(),Qte=Ee.define({combine:t=>t.length?t[0]:!1});class Cs{constructor(e,n){this.type=e,this.value=n}static define(){return new Lrt}}class Lrt{of(e){return new Cs(this,e)}}class Vrt{constructor(e){this.map=e}of(e){return new qe(this,e)}}class qe{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 qe(this.type,n)}is(e){return this.type==e}static define(e={}){return new Vrt(e.map||(n=>n))}static mapEffects(e,n){if(!e.length)return e;let r=[];for(let i of e){let a=i.map(n);a&&r.push(a)}return r}}qe.reconfigure=qe.define(),qe.appendConfig=qe.define();class vn{constructor(e,n,r,i,a,o){this.startState=e,this.changes=n,this.selection=r,this.effects=i,this.annotations=a,this.scrollIntoView=o,this._doc=null,this._state=null,r&&Rte(r,n.newLength),a.some(s=>s.type==vn.time)||(this.annotations=a.concat(vn.time.of(Date.now())))}static create(e,n,r,i,a,o){return new vn(e,n,r,i,a,o)}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(vn.userEvent);return!!(n&&(n==e||n.length>e.length&&n.slice(0,e.length)==e&&n[e.length]=="."))}}vn.time=Cs.define(),vn.userEvent=Cs.define(),vn.addToHistory=Cs.define(),vn.remote=Cs.define();function Brt(t,e){let n=[];for(let r=0,i=0;;){let a,o;if(r<t.length&&(i==e.length||e[i]>=t[r]))a=t[r++],o=t[r++];else if(i<e.length)a=e[i++],o=e[i++];else return n;!n.length||n[n.length-1]<a?n.push(a,o):n[n.length-1]<o&&(n[n.length-1]=o)}}function Hte(t,e,n){var r;let i,a,o;return n?(i=e.changes,a=En.empty(e.changes.length),o=t.changes.compose(e.changes)):(i=e.changes.map(t.changes),a=t.changes.mapDesc(e.changes,!0),o=t.changes.compose(i)),{changes:o,selection:e.selection?e.selection.map(a):(r=t.selection)===null||r===void 0?void 0:r.map(i),effects:qe.mapEffects(t.effects,i).concat(qe.mapEffects(e.effects,a)),annotations:t.annotations.length?t.annotations.concat(e.annotations):e.annotations,scrollIntoView:t.scrollIntoView||e.scrollIntoView}}function _R(t,e,n){let r=e.selection,i=$h(e.annotations);return e.userEvent&&(i=i.concat(vn.userEvent.of(e.userEvent))),{changes:e.changes instanceof En?e.changes:En.of(e.changes||[],n,t.facet(Bte)),selection:r&&(r instanceof ce?r:ce.single(r.anchor,r.head)),effects:$h(e.effects),annotations:i,scrollIntoView:!!e.scrollIntoView}}function jte(t,e,n){let r=_R(t,e.length?e[0]:{},t.doc.length);e.length&&e[0].filter===!1&&(n=!1);for(let a=1;a<e.length;a++){e[a].filter===!1&&(n=!1);let o=!!e[a].sequential;r=Hte(r,_R(t,e[a],o?r.changes.newLength:t.doc.length),o)}let i=vn.create(t,r.changes,r.selection,r.effects,r.annotations,r.scrollIntoView);return Frt(n?zrt(i):i)}function zrt(t){let e=t.startState,n=!0;for(let i of e.facet(zte)){let a=i(t);if(a===!1){n=!1;break}Array.isArray(a)&&(n=n===!0?a:Brt(n,a))}if(n!==!0){let i,a;if(n===!1)a=t.changes.invertedDesc,i=En.empty(e.doc.length);else{let o=t.changes.filter(n);i=o.changes,a=o.filtered.mapDesc(o.changes).invertedDesc}t=vn.create(e,i,t.selection&&t.selection.map(a),qe.mapEffects(t.effects,a),t.annotations,t.scrollIntoView)}let r=e.facet(Fte);for(let i=r.length-1;i>=0;i--){let a=r[i](t);a instanceof vn?t=a:Array.isArray(a)&&a.length==1&&a[0]instanceof vn?t=a[0]:t=jte(e,$h(a),!1)}return t}function Frt(t){let e=t.startState,n=e.facet(Wte),r=t;for(let i=n.length-1;i>=0;i--){let a=n[i](t);a&&Object.keys(a).length&&(r=Hte(r,_R(e,a,t.changes.newLength),!0))}return r==t?t:vn.create(e,t.changes,t.selection,r.effects,r.annotations,r.scrollIntoView)}const Wrt=[];function $h(t){return t==null?Wrt:Array.isArray(t)?t:[t]}var Yt=function(t){return t[t.Word=0]="Word",t[t.Space=1]="Space",t[t.Other=2]="Other",t}(Yt||(Yt={}));const Qrt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let OR;try{OR=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function Hrt(t){if(OR)return OR.test(t);for(let e=0;e<t.length;e++){let n=t[e];if(/\w/.test(n)||n>"€"&&(n.toUpperCase()!=n.toLowerCase()||Qrt.test(n)))return!0}return!1}function jrt(t){return e=>{if(!/\S/.test(e))return Yt.Space;if(Hrt(e))return Yt.Word;for(let n=0;n<t.length;n++)if(e.indexOf(t[n])>-1)return Yt.Word;return Yt.Other}}class ht{constructor(e,n,r,i,a,o){this.config=e,this.doc=n,this.selection=r,this.values=i,this.status=e.statusTemplate.slice(),this.computeSlot=a,o&&(o._state=this);for(let s=0;s<this.config.dynamicSlots.length;s++)Em(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 Em(this,r),PS(this,r)}update(...e){return jte(this,e,!0)}applyTransaction(e){let n=this.config,{base:r,compartments:i}=n;for(let s of e.effects)s.is(Am.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(qe.reconfigure)?(n=null,r=s.value):s.is(qe.appendConfig)&&(n=null,r=$h(r).concat(s.value));let a;n?a=e.startState.values.slice():(n=TS.resolve(r,i,this),a=new ht(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(l,u)=>u.reconfigure(l,this),null).values);let o=e.startState.facet(bR)?e.newSelection:e.newSelection.asSingle();new ht(n,e.newDoc,o,a,(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:ce.cursor(n.from+e.length)}))}changeByRange(e){let n=this.selection,r=e(n.ranges[0]),i=this.changes(r.changes),a=[r.range],o=$h(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++)a[d]=a[d].map(c);let f=i.mapDesc(u,!0);a.push(l.range.map(f)),i=i.compose(c),o=qe.mapEffects(o,c).concat(qe.mapEffects($h(l.effects),f))}return{changes:i,selection:ce.create(a,n.mainIndex),effects:o}}changes(e=[]){return e instanceof En?e:En.of(e,this.doc.length,this.facet(ht.lineSeparator))}toText(e){return Ot.of(e.split(this.facet(ht.lineSeparator)||dR))}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:(Em(this,n),PS(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 Vn&&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 a in r)if(Object.prototype.hasOwnProperty.call(e,a)){let o=r[a],s=e[a];i.push(o.init(l=>o.spec.fromJSON(s,l)))}}return ht.create({doc:e.doc,selection:ce.fromJSON(e.selection),extensions:n.extensions?i.concat([n.extensions]):i})}static create(e={}){let n=TS.resolve(e.extensions||[],new Map),r=e.doc instanceof Ot?e.doc:Ot.of((e.doc||"").split(n.staticFacet(ht.lineSeparator)||dR)),i=e.selection?e.selection instanceof ce?e.selection:ce.single(e.selection.anchor,e.selection.head):ce.single(0);return Rte(i,r.length),n.staticFacet(bR)||(i=i.asSingle()),new ht(n,r,i,n.dynamicSlots.map(()=>null),(a,o)=>o.create(a),null)}get tabSize(){return this.facet(ht.tabSize)}get lineBreak(){return this.facet(ht.lineSeparator)||`
  366. `}get readOnly(){return this.facet(Qte)}phrase(e,...n){for(let r of this.facet(ht.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 a=+(i||1);return!a||a>n.length?r:n[a-1]})),e}languageDataAt(e,n,r=-1){let i=[];for(let a of this.facet(Vte))for(let o of a(this,n,r))Object.prototype.hasOwnProperty.call(o,e)&&i.push(o[e]);return i}charCategorizer(e){return jrt(this.languageDataAt("wordChars",e).join(""))}wordAt(e){let{text:n,from:r,length:i}=this.doc.lineAt(e),a=this.charCategorizer(e),o=e-r,s=e-r;for(;o>0;){let l=Yn(n,o,!1);if(a(n.slice(l,o))!=Yt.Word)break;o=l}for(;s<i;){let l=Yn(n,s);if(a(n.slice(s,l))!=Yt.Word)break;s=l}return o==s?null:ce.range(o+r,s+r)}}ht.allowMultipleSelections=bR,ht.tabSize=Ee.define({combine:t=>t.length?t[0]:4}),ht.lineSeparator=Bte,ht.readOnly=Qte,ht.phrases=Ee.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])}}),ht.languageData=Vte,ht.changeFilter=zte,ht.transactionFilter=Fte,ht.transactionExtender=Wte,Am.reconfigure=qe.define();function To(t,e,n={}){let r={};for(let i of t)for(let a of Object.keys(i)){let o=i[a],s=r[a];if(s===void 0)r[a]=o;else if(!(s===o||o===void 0))if(Object.hasOwnProperty.call(n,a))r[a]=n[a](s,o);else throw new Error("Config merge conflict for field "+a)}for(let i in e)r[i]===void 0&&(r[i]=e[i]);return r}class Uc{eq(e){return this==e}range(e,n=e){return SR.create(e,n,this)}}Uc.prototype.startSide=Uc.prototype.endSide=0,Uc.prototype.point=!1,Uc.prototype.mapMode=Kn.TrackDel;let SR=class Ese{constructor(e,n,r){this.from=e,this.to=n,this.value=r}static create(e,n,r){return new Ese(e,n,r)}};function xR(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}class wR{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 a=r?this.to:this.from;for(let o=i,s=a.length;;){if(o==s)return o;let l=o+s>>1,u=a[l]-e||(r?this.value[l].endSide:this.value[l].startSide)-n;if(l==o)return u>=0?o:s;u>=0?s=l:o=l+1}}between(e,n,r,i){for(let a=this.findIndex(n,-1e9,!0),o=this.findIndex(r,1e9,!1,a);a<o;a++)if(i(this.from[a]+e,this.to[a]+e,this.value[a])===!1)return!1}map(e,n){let r=[],i=[],a=[],o=-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,h;if(c==f){let g=n.mapPos(c,u.startSide,u.mapMode);if(g==null||(d=h=g,u.startSide!=u.endSide&&(h=n.mapPos(c,u.endSide),h<d)))continue}else if(d=n.mapPos(c,u.startSide),h=n.mapPos(f,u.endSide),d>h||d==h&&u.startSide>0&&u.endSide<=0)continue;(h-d||u.endSide-u.startSide)<0||(o<0&&(o=d),u.point&&(s=Math.max(s,h-d)),r.push(u),i.push(d-o),a.push(h-o))}return{mapped:r.length?new wR(i,a,r,s):null,pos:o}}}class St{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 St(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:a=this.length}=e,o=e.filter;if(n.length==0&&!o)return this;if(r&&(n=n.slice().sort(xR)),this.isEmpty)return n.length?St.of(n):this;let s=new Zte(this,null,-1).goto(0),l=0,u=[],c=new Nl;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)&&(!o||i>this.chunkEnd(s.chunkIndex)||a<this.chunkPos[s.chunkIndex])&&c.addChunk(this.chunkPos[s.chunkIndex],this.chunk[s.chunkIndex])?s.nextChunk():((!o||i>s.to||a<s.from||o(s.from,s.to,s.value))&&(c.addInner(s.from,s.to,s.value)||u.push(SR.create(s.from,s.to,s.value))),s.next());return c.finishInner(this.nextLayer.isEmpty&&!u.length?St.empty:this.nextLayer.update({add:u,filter:o,filterFrom:i,filterTo:a}))}map(e){if(e.empty||this.isEmpty)return this;let n=[],r=[],i=-1;for(let o=0;o<this.chunk.length;o++){let s=this.chunkPos[o],l=this.chunk[o],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 a=this.nextLayer.map(e);return n.length==0?a:new St(r,n,a||St.empty,i)}between(e,n,r){if(!this.isEmpty){for(let i=0;i<this.chunk.length;i++){let a=this.chunkPos[i],o=this.chunk[i];if(n>=a&&e<=a+o.length&&o.between(a,e-a,n-a,r)===!1)return}this.nextLayer.between(e,n,r)}}iter(e=0){return Mm.from([this]).goto(e)}get isEmpty(){return this.nextLayer==this}static iter(e,n=0){return Mm.from(e).goto(n)}static compare(e,n,r,i,a=-1){let o=e.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=a),s=n.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=a),l=Gte(o,s,r),u=new Im(o,l,a),c=new Im(s,l,a);r.iterGaps((f,d,h)=>Ute(u,f,c,d,h,i)),r.empty&&r.length==0&&Ute(u,0,c,0,0,i)}static eq(e,n,r=0,i){i==null&&(i=999999999);let a=e.filter(c=>!c.isEmpty&&n.indexOf(c)<0),o=n.filter(c=>!c.isEmpty&&e.indexOf(c)<0);if(a.length!=o.length)return!1;if(!a.length)return!0;let s=Gte(a,o),l=new Im(a,s,0).goto(r),u=new Im(o,s,0).goto(r);for(;;){if(l.to!=u.to||!TR(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,a=-1){let o=new Im(e,null,a).goto(n),s=n,l=o.openStart;for(;;){let u=Math.min(o.to,r);if(o.point){let c=o.activeForPoint(o.to),f=o.pointFrom<n?c.length+1:o.point.startSide<0?c.length:Math.min(c.length,l);i.point(s,u,o.point,c,f,o.pointRank),l=Math.min(o.openEnd(u),c.length)}else u>s&&(i.span(s,u,o.active,l),l=o.openEnd(u));if(o.to>r)return l+(o.point&&o.to>r?1:0);s=o.to,o.next()}}static of(e,n=!1){let r=new Nl;for(let i of e instanceof SR?[e]:n?Grt(e):e)r.add(i.from,i.to,i.value);return r.finish()}static join(e){if(!e.length)return St.empty;let n=e[e.length-1];for(let r=e.length-2;r>=0;r--)for(let i=e[r];i!=St.empty;i=i.nextLayer)n=new St(i.chunkPos,i.chunk,n,Math.max(i.maxPoint,n.maxPoint));return n}}St.empty=new St([],[],null,-1);function Grt(t){if(t.length>1)for(let e=t[0],n=1;n<t.length;n++){let r=t[n];if(xR(e,r)>0)return t.slice().sort(xR);e=r}return t}St.empty.nextLayer=St.empty;class Nl{finishChunk(e){this.chunks.push(new wR(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 Nl)).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(St.empty)}finishInner(e){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return e;let n=St.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(e):e,this.setMaxPoint);return this.from=null,n}}function Gte(t,e,n){let r=new Map;for(let a of t)for(let o=0;o<a.chunk.length;o++)a.chunk[o].maxPoint<=0&&r.set(a.chunk[o],a.chunkPos[o]);let i=new Set;for(let a of e)for(let o=0;o<a.chunk.length;o++){let s=r.get(a.chunk[o]);s!=null&&(n?n.mapPos(s):s)==a.chunkPos[o]&&!(n!=null&&n.touchesRange(s,s+a.chunk[o].length))&&i.add(a.chunk[o])}return i}class Zte{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 Mm{constructor(e){this.heap=e}static from(e,n=null,r=-1){let i=[];for(let a=0;a<e.length;a++)for(let o=e[a];!o.isEmpty;o=o.nextLayer)o.maxPoint>=r&&i.push(new Zte(o,n,r,a));return i.length==1?i[0]:new Mm(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--)CR(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--)CR(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(),CR(this.heap,0)}}}function CR(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 Im{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=Mm.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){$S(this.active,e),$S(this.activeTo,e),$S(this.activeRank,e),this.minActive=Xte(this.active,this.activeTo)}addActive(e){let n=0,{value:r,to:i,rank:a}=this.cursor;for(;n<this.activeRank.length&&(a-this.activeRank[n]||i-this.activeTo[n])>0;)n++;AS(this.active,n,r),AS(this.activeTo,n,i),AS(this.activeRank,n,a),e&&AS(e,n,this.cursor.from),this.minActive=Xte(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&&$S(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 a=this.cursor.value;if(!a.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=a,this.pointFrom=this.cursor.from,this.pointRank=this.cursor.rank,this.to=this.cursor.to,this.endSide=a.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 Ute(t,e,n,r,i,a){t.goto(e),n.goto(r);let o=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,o);if(t.point||n.point?t.point&&n.point&&(t.point==n.point||t.point.eq(n.point))&&TR(t.activeForPoint(t.to),n.activeForPoint(n.to))||a.comparePoint(s,f,t.point,n.point):f>s&&!TR(t.active,n.active)&&a.compareRange(s,f,t.active,n.active),c>o)break;s=c,u<=0&&t.next(),u>=0&&n.next()}}function TR(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 $S(t,e){for(let n=e,r=t.length-1;n<r;n++)t[n]=t[n+1];t.pop()}function AS(t,e,n){for(let r=t.length-1;r>=e;r--)t[r+1]=t[r];t[e]=n}function Xte(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 Ah(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=Yn(t,i));return r}function PR(t,e,n,r){for(let i=0,a=0;;){if(a>=e)return i;if(i==t.length)break;a+=t.charCodeAt(i)==9?n-a%n:1,i=Yn(t,i)}return r===!0?-1:t.length}const $R="ͼ",Yte=typeof Symbol>"u"?"__"+$R:Symbol.for($R),AR=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),qte=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class Ll{constructor(e,n){this.rules=[];let{finish:r}=n||{};function i(o){return/^@/.test(o)?[o]:o.split(/,\s*/)}function a(o,s,l,u){let c=[],f=/^@(\w+)\b/.exec(o[0]),d=f&&f[1]=="keyframes";if(f&&s==null)return l.push(o[0]+";");for(let h in s){let g=s[h];if(/&/.test(h))a(h.split(/,\s*/).map(v=>o.map(m=>v.replace(/&/,m))).reduce((v,m)=>v.concat(m)),g,l);else if(g&&typeof g=="object"){if(!f)throw new RangeError("The value of a property ("+h+") should be a primitive value.");a(i(h),g,c,d)}else g!=null&&c.push(h.replace(/_.*/,"").replace(/[A-Z]/g,v=>"-"+v.toLowerCase())+": "+g+";")}(c.length||d)&&l.push((r&&!f&&!u?o.map(r):o).join(", ")+" {"+c.join(" ")+"}")}for(let o in e)a(i(o),e[o],this.rules)}getRules(){return this.rules.join(`
  367. `)}static newName(){let e=qte[Yte]||1;return qte[Yte]=e+1,$R+e.toString(36)}static mount(e,n,r){let i=e[AR],a=r&&r.nonce;i?a&&i.setNonce(a):i=new Zrt(e,a),i.mount(Array.isArray(n)?n:[n],e)}}let Kte=new Map;class Zrt{constructor(e,n){let r=e.ownerDocument||e,i=r.defaultView;if(!e.head&&e.adoptedStyleSheets&&i.CSSStyleSheet){let a=Kte.get(r);if(a)return e[AR]=a;this.sheet=new i.CSSStyleSheet,Kte.set(r,this)}else this.styleTag=r.createElement("style"),n&&this.styleTag.setAttribute("nonce",n);this.modules=[],e[AR]=this}mount(e,n){let r=this.sheet,i=0,a=0;for(let o=0;o<e.length;o++){let s=e[o],l=this.modules.indexOf(s);if(l<a&&l>-1&&(this.modules.splice(l,1),a--,l=-1),l==-1){if(this.modules.splice(a++,0,s),r)for(let u=0;u<s.rules.length;u++)r.insertRule(s.rules[u],i++)}else{for(;a<l;)i+=this.modules[a++].rules.length;i+=s.rules.length,a++}}if(r)n.adoptedStyleSheets.indexOf(this.sheet)<0&&(n.adoptedStyleSheets=[this.sheet,...n.adoptedStyleSheets]);else{let o="";for(let l=0;l<this.modules.length;l++)o+=this.modules[l].getRules()+`
  368. `;this.styleTag.textContent=o;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)}}for(var Vl={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:"'"},Dm={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},Urt=typeof navigator<"u"&&/Mac/.test(navigator.platform),Xrt=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),Jn=0;Jn<10;Jn++)Vl[48+Jn]=Vl[96+Jn]=String(Jn);for(var Jn=1;Jn<=24;Jn++)Vl[Jn+111]="F"+Jn;for(var Jn=65;Jn<=90;Jn++)Vl[Jn]=String.fromCharCode(Jn+32),Dm[Jn]=String.fromCharCode(Jn);for(var ER in Vl)Dm.hasOwnProperty(ER)||(Dm[ER]=Vl[ER]);function Yrt(t){var e=Urt&&t.metaKey&&t.shiftKey&&!t.ctrlKey&&!t.altKey||Xrt&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified",n=!e&&t.key||(t.shiftKey?Dm:Vl)[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 Rm(t){let e;return t.nodeType==11?e=t.getSelection?t:t.ownerDocument:e=t,e.getSelection()}function MR(t,e){return e?t==e||t.contains(e.nodeType!=1?e.parentNode:e):!1}function qrt(t){let e=t.activeElement;for(;e&&e.shadowRoot;)e=e.shadowRoot.activeElement;return e}function ES(t,e){if(!e.anchorNode)return!1;try{return MR(t,e.anchorNode)}catch{return!1}}function Eh(t){return t.nodeType==3?Yc(t,0,t.nodeValue.length).getClientRects():t.nodeType==1?t.getClientRects():[]}function km(t,e,n,r){return n?Jte(t,e,n,r,-1)||Jte(t,e,n,r,1):!1}function Xc(t){for(var e=0;;e++)if(t=t.previousSibling,!t)return e}function MS(t){return t.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}function Jte(t,e,n,r,i){for(;;){if(t==n&&e==r)return!0;if(e==(i<0?0:Ts(t))){if(t.nodeName=="DIV")return!1;let a=t.parentNode;if(!a||a.nodeType!=1)return!1;e=Xc(t)+(i<0?0:1),t=a}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?Ts(t):0}else return!1}}function Ts(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}function IS(t,e){let n=e?t.left:t.right;return{left:n,right:n,top:t.top,bottom:t.bottom}}function Krt(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 ene(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 Jrt(t,e,n,r,i,a,o,s){let l=t.ownerDocument,u=l.defaultView||window;for(let c=t,f=!1;c&&!f;)if(c.nodeType==1){let d,h=c==l.body,g=1,v=1;if(h)d=Krt(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:g,scaleY:v}=ene(c,b)),d={left:b.left,right:b.left+c.clientWidth*g,top:b.top,bottom:b.top+c.clientHeight*v}}let m=0,y=0;if(i=="nearest")e.top<d.top?(y=-(d.top-e.top+o),n>0&&e.bottom>d.bottom+y&&(y=e.bottom-d.bottom+y+o)):e.bottom>d.bottom&&(y=e.bottom-d.bottom+o,n<0&&e.top-y<d.top&&(y=-(d.top+y-e.top+o)));else{let b=e.bottom-e.top,_=d.bottom-d.top;y=(i=="center"&&b<=_?e.top+b/2-_/2:i=="start"||i=="center"&&n<0?e.top-o:e.bottom-_+o)-d.top}if(r=="nearest"?e.left<d.left?(m=-(d.left-e.left+a),n>0&&e.right>d.right+m&&(m=e.right-d.right+m+a)):e.right>d.right&&(m=e.right-d.right+a,n<0&&e.left<d.left+m&&(m=-(d.left+m-e.left+a))):m=(r=="center"?e.left+(e.right-e.left)/2-(d.right-d.left)/2:r=="start"==s?e.left-a:e.right-(d.right-d.left)+a)-d.left,m||y)if(h)u.scrollBy(m,y);else{let b=0,_=0;if(y){let O=c.scrollTop;c.scrollTop+=y/v,_=(c.scrollTop-O)*v}if(m){let O=c.scrollLeft;c.scrollLeft+=m/g,b=(c.scrollLeft-O)*g}e={left:e.left-b,top:e.top-_,right:e.right-b,bottom:e.bottom-_},b&&Math.abs(b-m)<1&&(r="nearest"),_&&Math.abs(_-y)<1&&(i="nearest")}if(h)break;c=c.assignedSlot||c.parentNode}else if(c.nodeType==11)c=c.host;else break}function eit(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 tit{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?Ts(n):0),r,Math.min(e.focusOffset,r?Ts(r):0))}set(e,n,r,i){this.anchorNode=e,this.anchorOffset=n,this.focusNode=r,this.focusOffset=i}}let Mh=null;function tne(t){if(t.setActive)return t.setActive();if(Mh)return t.focus(Mh);let e=[];for(let n=t;n&&(e.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(t.focus(Mh==null?{get preventScroll(){return Mh={preventScroll:!0},!0}}:void 0),!Mh){Mh=!1;for(let n=0;n<e.length;){let r=e[n++],i=e[n++],a=e[n++];r.scrollTop!=i&&(r.scrollTop=i),r.scrollLeft!=a&&(r.scrollLeft=a)}}}let nne;function Yc(t,e,n=e){let r=nne||(nne=document.createRange());return r.setEnd(t,n),r.setStart(t,e),r}function Ih(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 a=new KeyboardEvent("keydown",i);a.synthetic=!0,t.dispatchEvent(a);let o=new KeyboardEvent("keyup",i);return o.synthetic=!0,t.dispatchEvent(o),a.defaultPrevented||o.defaultPrevented}function nit(t){for(;t;){if(t&&(t.nodeType==9||t.nodeType==11&&t.host))return t;t=t.assignedSlot||t.parentNode}return null}function rne(t){for(;t.attributes.length;)t.removeAttributeNode(t.attributes[0])}function rit(t,e){let n=e.focusNode,r=e.focusOffset;if(!n||e.anchorNode!=n||e.anchorOffset!=r)return!1;for(r=Math.min(r,Ts(n));;)if(r){if(n.nodeType!=1)return!1;let i=n.childNodes[r-1];i.contentEditable=="false"?r--:(n=i,r=Ts(n))}else{if(n==t)return!0;r=Xc(n),n=n.parentNode}}function ine(t){return t.scrollTop>Math.max(1,t.scrollHeight-t.clientHeight-4)}function ane(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=Ts(n)}else if(n.parentNode&&!MS(n))r=Xc(n),n=n.parentNode;else return null}}function one(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&&!MS(n))r=Xc(n)+1,n=n.parentNode;else return null}}class fr{constructor(e,n,r=!0){this.node=e,this.offset=n,this.precise=r}static before(e,n){return new fr(e.parentNode,Xc(e),n)}static after(e,n){return new fr(e.parentNode,Xc(e)+1,n)}}const IR=[];class Rt{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,a;for(let o of this.children){if(o.flags&7){if(!o.dom&&(a=i?i.nextSibling:r.firstChild)){let s=Rt.get(a);(!s||!s.parent&&s.canReuseDOM(o))&&o.reuseDOM(a)}o.sync(e,n),o.flags&=-8}if(a=i?i.nextSibling:r.firstChild,n&&!n.written&&n.node==r&&a!=o.dom&&(n.written=!0),o.dom.parentNode==r)for(;a&&a!=o.dom;)a=sne(a);else r.insertBefore(o.dom,a);i=o.dom}for(a=i?i.nextSibling:r.firstChild,a&&n&&n.node==r&&(n.written=!0);a;)a=sne(a)}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=Ts(e)==0?0:n==0?-1:1;for(;;){let a=e.parentNode;if(a==this.dom)break;i==0&&a.firstChild!=a.lastChild&&(e==a.firstChild?i=-1:i=1),e=a}i<0?r=e:r=e.nextSibling}if(r==this.dom.firstChild)return 0;for(;r&&!Rt.get(r);)r=r.nextSibling;if(!r)return this.length;for(let i=0,a=0;;i++){let o=this.children[i];if(o.dom==r)return a;a+=o.length+o.breakAfter}}domBoundsAround(e,n,r=0){let i=-1,a=-1,o=-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,a=u),u>n&&f.dom.parentNode==this.dom){o=l,s=c;break}c=d,u=d+f.breakAfter}return{from:a,to:s<0?r+this.length:s,startDOM:(i?this.children[i-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:o<this.children.length&&o>=0?this.children[o].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=IR){this.markDirty();for(let i=e;i<n;i++){let a=this.children[i];a.parent==this&&r.indexOf(a)<0&&a.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 lne(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,a,o){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}}Rt.prototype.breakAfter=0;function sne(t){let e=t.nextSibling;return t.parentNode.removeChild(t),e}class lne{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 une(t,e,n,r,i,a,o,s,l){let{children:u}=t,c=u.length?u[e]:null,f=a.length?a[a.length-1]:null,d=f?f.breakAfter:o;if(!(e==r&&c&&!o&&!d&&a.length<2&&c.merge(n,i,a.length?f:null,n==0,s,l))){if(r<u.length){let h=u[r];h&&(i<h.length||h.breakAfter&&(f!=null&&f.breakAfter))?(e==r&&(h=h.split(i),i=0),!d&&f&&h.merge(0,i,f,!0,0,l)?a[a.length-1]=h:((i||h.children.length&&!h.children[0].length)&&h.merge(0,i,null,!1,0,l),a.push(h))):h!=null&&h.breakAfter&&(f?f.breakAfter=1:o=1),r++}for(c&&(c.breakAfter=o,n>0&&(!o&&a.length&&c.merge(n,c.length,a[0],!1,s,0)?c.breakAfter=a.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&&a.length;)if(u[r-1].become(a[a.length-1]))r--,a.pop(),l=a.length?0:s;else if(u[e].become(a[0]))e++,a.shift(),s=a.length?0:l;else break;!a.length&&e&&r<u.length&&!u[e-1].breakAfter&&u[r].merge(0,0,u[e-1],!1,s,l)&&e--,(e<r||a.length)&&t.replaceChildren(e,r,a)}}function cne(t,e,n,r,i,a){let o=t.childCursor(),{i:s,off:l}=o.findPos(n,1),{i:u,off:c}=o.findPos(e,-1),f=e-n;for(let d of r)f+=d.length;t.length+=f,une(t,u,c,s,l,r,0,i,a)}let Zr=typeof navigator<"u"?navigator:{userAgent:"",vendor:"",platform:""},DR=typeof document<"u"?document:{documentElement:{style:{}}};const RR=/Edge\/(\d+)/.exec(Zr.userAgent),fne=/MSIE \d/.test(Zr.userAgent),kR=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Zr.userAgent),DS=!!(fne||kR||RR),dne=!DS&&/gecko\/(\d+)/i.test(Zr.userAgent),NR=!DS&&/Chrome\/(\d+)/.exec(Zr.userAgent),hne="webkitFontSmoothing"in DR.documentElement.style,pne=!DS&&/Apple Computer/.test(Zr.vendor),gne=pne&&(/Mobile\/\w+/.test(Zr.userAgent)||Zr.maxTouchPoints>2);var Ae={mac:gne||/Mac/.test(Zr.platform),windows:/Win/.test(Zr.platform),linux:/Linux|X11/.test(Zr.platform),ie:DS,ie_version:fne?DR.documentMode||6:kR?+kR[1]:RR?+RR[1]:0,gecko:dne,gecko_version:dne?+(/Firefox\/(\d+)/.exec(Zr.userAgent)||[0,0])[1]:0,chrome:!!NR,chrome_version:NR?+NR[1]:0,ios:gne,android:/Android\b/.test(Zr.userAgent),webkit:hne,safari:pne,webkit_version:hne?+(/\bAppleWebKit\/(\d+)/.exec(Zr.userAgent)||[0,0])[1]:0,tabSize:DR.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const iit=256;class Va extends Rt{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 Va)||this.length-(n-e)+r.length>iit||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 Va(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 fr(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 ait(this.dom,e,n)}}class Ps extends Rt{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(rne(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,a,o){return r&&(!(r instanceof Ps&&r.mark.eq(this.mark))||e&&a<=0||n<this.length&&o<=0)?!1:(cne(this,e,n,r?r.children.slice():[],a-1,o-1),this.markDirty(),!0)}split(e){let n=[],r=0,i=-1,a=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=a),r=l,a++}let o=this.length-e;return this.length=e,i>-1&&(this.children.length=i,this.markDirty()),new Ps(this.mark,n,o)}domAtPos(e){return vne(this,e)}coordsAt(e,n){return yne(this,e,n)}}function ait(t,e,n){let r=t.nodeValue.length;e>r&&(e=r);let i=e,a=e,o=0;e==0&&n<0||e==r&&n>=0?Ae.chrome||Ae.gecko||(e?(i--,o=1):a<r&&(a++,o=-1)):n<0?i--:a<r&&a++;let s=Yc(t,i,a).getClientRects();if(!s.length)return null;let l=s[(o?o<0:n>=0)?0:s.length-1];return Ae.safari&&!o&&l.width==0&&(l=Array.prototype.find.call(s,u=>u.width)||l),o?IS(l,o<0):l||null}class Bl extends Rt{static create(e,n,r){return new Bl(e,n,r)}constructor(e,n,r){super(),this.widget=e,this.length=n,this.side=r,this.prevWidget=null}split(e){let n=Bl.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,a,o){return r&&(!(r instanceof Bl)||!this.widget.compare(r.widget)||e>0&&a<=0||n<this.length&&o<=0)?!1:(this.length=e+(r?r.length:0)+(this.length-n),!0)}become(e){return e instanceof Bl&&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 Ot.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):Ot.empty}domAtPos(e){return(this.length?e==0:this.side>0)?fr.before(this.dom):fr.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(),a=null;if(!i.length)return null;let o=this.side?this.side<0:e>0;for(let s=o?i.length-1:0;a=i[s],!(e>0?s==0:s==i.length-1||a.top<a.bottom);s+=o?-1:1);return IS(a,!o)}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 Dh extends Rt{constructor(e){super(),this.side=e}get length(){return 0}merge(){return!1}become(e){return e instanceof Dh&&e.side==this.side}split(){return new Dh(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?fr.before(this.dom):fr.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(e){return this.dom.getBoundingClientRect()}get overrideDOMText(){return Ot.empty}get isHidden(){return!0}}Va.prototype.children=Bl.prototype.children=Dh.prototype.children=IR;function vne(t,e){let n=t.dom,{children:r}=t,i=0;for(let a=0;i<r.length;i++){let o=r[i],s=a+o.length;if(!(s==a&&o.getSide()<=0)){if(e>a&&e<s&&o.dom.parentNode==n)return o.domAtPos(e-a);if(e<=a)break;a=s}}for(let a=i;a>0;a--){let o=r[a-1];if(o.dom.parentNode==n)return o.domAtPos(o.length)}for(let a=i;a<r.length;a++){let o=r[a];if(o.dom.parentNode==n)return o.domAtPos(0)}return new fr(n,0)}function mne(t,e,n){let r,{children:i}=t;n>0&&e instanceof Ps&&i.length&&(r=i[i.length-1])instanceof Ps&&r.mark.eq(e.mark)?mne(r,e.children[0],n-1):(i.push(e),e.setParent(t)),t.length+=e.length}function yne(t,e,n){let r=null,i=-1,a=null,o=-1;function s(u,c){for(let f=0,d=0;f<u.children.length&&d<=c;f++){let h=u.children[f],g=d+h.length;g>=c&&(h.children.length?s(h,c-d):(!a||a.isHidden&&n>0)&&(g>c||d==g&&h.getSide()>0)?(a=h,o=c-d):(d<c||d==g&&h.getSide()<0&&!h.isHidden)&&(r=h,i=c-d)),d=g}}s(t,e);let l=(n<0?r:a)||r||a;return l?l.coordsAt(Math.max(0,l==r?i:o),n):oit(t)}function oit(t){let e=t.dom.lastChild;if(!e)return t.dom.getBoundingClientRect();let n=Eh(e);return n[n.length-1]||null}function LR(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 bne=Object.create(null);function RS(t,e,n){if(t==e)return!0;t||(t=bne),e||(e=bne);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 a of r)if(a!=n&&(i.indexOf(a)==-1||t[a]!==e[a]))return!1;return!0}function VR(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 sit(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 mn extends Rt{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(e,n,r,i,a,o){if(r){if(!(r instanceof mn))return!1;this.dom||r.transferDOM(this)}return i&&this.setDeco(r?r.attrs:null),cne(this,e,n,r?r.children.slice():[],a,o),!0}split(e){let n=new mn;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 a=r;a<this.children.length;a++)n.append(this.children[a],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){RS(this.attrs,e)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=e)}append(e,n){mne(this,e,n)}addLineDeco(e){let n=e.spec.attributes,r=e.spec.class;n&&(this.attrs=LR(n,this.attrs||{})),r&&(this.attrs=LR({class:r},this.attrs||{}))}domAtPos(e){return vne(this,e)}reuseDOM(e){e.nodeName=="DIV"&&(this.setDOM(e),this.flags|=6)}sync(e,n){var r;this.dom?this.flags&4&&(rne(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&&(VR(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&&Rt.get(i)instanceof Ps;)i=i.lastChild;if(!i||!this.length||i.nodeName!="BR"&&((r=Rt.get(i))===null||r===void 0?void 0:r.isEditable)==!1&&(!Ae.ios||!this.children.some(a=>a instanceof Va))){let a=document.createElement("BR");a.cmIgnore=!0,this.dom.appendChild(a)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let e=0,n;for(let r of this.children){if(!(r instanceof Va)||/[^ -~]/.test(r.text))return null;let i=Eh(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=yne(this,e,n);if(!this.children.length&&r&&this.parent){let{heightOracle:i}=this.parent.view.viewState,a=r.bottom-r.top;if(Math.abs(a-i.lineHeight)<2&&i.textHeight<a){let o=(a-i.textHeight)/2;return{top:r.top+o,bottom:r.bottom-o,left:r.left,right:r.left}}}return r}become(e){return e instanceof mn&&this.children.length==0&&e.children.length==0&&RS(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 a=e.children[r],o=i+a.length;if(o>=n){if(a instanceof mn)return a;if(o>n)break}i=o+a.breakAfter}return null}}class $s extends Rt{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,a,o){return r&&(!(r instanceof $s)||!this.widget.compare(r.widget)||e>0&&a<=0||n<this.length&&o<=0)?!1:(this.length=e+(r?r.length:0)+(this.length-n),!0)}domAtPos(e){return e==0?fr.before(this.dom):fr.after(this.dom,e==this.length)}split(e){let n=this.length-e;this.length=e;let r=new $s(this.widget,n,this.deco);return r.breakAfter=this.breakAfter,r}get children(){return IR}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):Ot.empty}domBoundsAround(){return null}become(e){return e instanceof $s&&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 Po{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 Mr=function(t){return t[t.Text=0]="Text",t[t.WidgetBefore=1]="WidgetBefore",t[t.WidgetAfter=2]="WidgetAfter",t[t.WidgetRange=3]="WidgetRange",t}(Mr||(Mr={}));class Ne extends Uc{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 Nm(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 zl(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:a,end:o}=_ne(e,n);r=(a?n?-3e8:-1:5e8)-1,i=(o?n?2e8:1:-6e8)+1}return new zl(e,r,i,n,e.widget||null,!0)}static line(e){return new Lm(e)}static set(e,n=!1){return St.of(e,n)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}Ne.none=St.empty;class Nm extends Ne{constructor(e){let{start:n,end:r}=_ne(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 Nm&&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))&&RS(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)}}Nm.prototype.point=!1;class Lm extends Ne{constructor(e){super(-2e8,-2e8,null,e)}eq(e){return e instanceof Lm&&this.spec.class==e.spec.class&&RS(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)}}Lm.prototype.mapMode=Kn.TrackBefore,Lm.prototype.point=!0;class zl extends Ne{constructor(e,n,r,i,a,o){super(n,r,a,e),this.block=i,this.isReplace=o,this.mapMode=i?n<=0?Kn.TrackBefore:Kn.TrackAfter:Kn.TrackDel}get type(){return this.startSide!=this.endSide?Mr.WidgetRange:this.startSide<=0?Mr.WidgetBefore:Mr.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(e){return e instanceof zl&&lit(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)}}zl.prototype.point=!0;function _ne(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 lit(t,e){return t==e||!!(t&&e&&t.compare(e))}function BR(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 Vm{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 $s&&e.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new mn),this.atCursorPos=!0),this.curLine}flushBuffer(e=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(kS(new Dh(-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 $s)&&this.getLine()}buildText(e,n,r){for(;e>0;){if(this.textOff==this.text.length){let{value:a,lineBreak:o,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(o){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=a,this.textOff=0}let i=Math.min(this.text.length-this.textOff,e,512);this.flushBuffer(n.slice(n.length-r)),this.getLine().append(kS(new Va(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,a,o){if(this.disallowBlockEffectsFor[o]&&r instanceof zl){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 zl)if(r.block)r.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new $s(r.widget||Rh.block,s,r));else{let l=Bl.create(r.widget||Rh.inline,s,s?0:r.startSide),u=this.atCursorPos&&!l.isEditable&&a<=i.length&&(e<n||r.startSide>0),c=!l.isEditable&&(e<n||a>i.length||r.startSide<=0),f=this.getLine();this.pendingBuffer==2&&!u&&!l.isEditable&&(this.pendingBuffer=0),this.flushBuffer(i),u&&(f.append(kS(new Dh(1),i),a),a=i.length+Math.max(0,a-i.length)),f.append(kS(l,i),a),this.atCursorPos=c,this.pendingBuffer=c?e<n||a>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=a)}static build(e,n,r,i,a){let o=new Vm(e,n,r,a);return o.openEnd=St.spans(i,n,r,o),o.openStart<0&&(o.openStart=o.openEnd),o.finish(o.openEnd),o}}function kS(t,e){for(let n of e)t=new Ps(n,[t],t.length);return t}class Rh extends Po{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}}Rh.inline=new Rh("span"),Rh.block=new Rh("div");var Ht=function(t){return t[t.LTR=0]="LTR",t[t.RTL=1]="RTL",t}(Ht||(Ht={}));const qc=Ht.LTR,zR=Ht.RTL;function One(t){let e=[];for(let n=0;n<t.length;n++)e.push(1<<+t[n]);return e}const uit=One("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"),cit=One("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"),FR=Object.create(null),$o=[];for(let t of["()","[]","{}"]){let e=t.charCodeAt(0),n=t.charCodeAt(1);FR[e]=n,FR[n]=-e}function Sne(t){return t<=247?uit[t]:1424<=t&&t<=1524?2:1536<=t&&t<=1785?cit[t-1536]:1774<=t&&t<=2220?4:8192<=t&&t<=8204?256:64336<=t&&t<=65023?4:1}const fit=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac\ufb50-\ufdff]/;class Fl{get dir(){return this.level%2?zR:qc}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 a=-1;for(let o=0;o<e.length;o++){let s=e[o];if(s.from<=n&&s.to>=n){if(s.level==r)return o;(a<0||(i!=0?i<0?s.from<n:s.to>n:e[a].level>s.level))&&(a=o)}}if(a<0)throw new RangeError("Index out of range");return a}}function xne(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||!xne(r.inner,i.inner))return!1}return!0}const kt=[];function dit(t,e,n,r,i){for(let a=0;a<=r.length;a++){let o=a?r[a-1].to:e,s=a<r.length?r[a].from:n,l=a?256:i;for(let u=o,c=l,f=l;u<s;u++){let d=Sne(t.charCodeAt(u));d==512?d=c:d==8&&f==4&&(d=16),kt[u]=d==4?2:d,d&7&&(f=d),c=d}for(let u=o,c=l,f=l;u<s;u++){let d=kt[u];if(d==128)u<s-1&&c==kt[u+1]&&c&24?d=kt[u]=c:kt[u]=256;else if(d==64){let h=u+1;for(;h<s&&kt[h]==64;)h++;let g=u&&c==8||h<n&&kt[h]==8?f==1?1:8:256;for(let v=u;v<h;v++)kt[v]=g;u=h-1}else d==8&&f==1&&(kt[u]=1);c=d,d&7&&(f=d)}}}function hit(t,e,n,r,i){let a=i==1?2:1;for(let o=0,s=0,l=0;o<=r.length;o++){let u=o?r[o-1].to:e,c=o<r.length?r[o].from:n;for(let f=u,d,h,g;f<c;f++)if(h=FR[d=t.charCodeAt(f)])if(h<0){for(let v=s-3;v>=0;v-=3)if($o[v+1]==-h){let m=$o[v+2],y=m&2?i:m&4?m&1?a:i:0;y&&(kt[f]=kt[$o[v]]=y),s=v;break}}else{if($o.length==189)break;$o[s++]=f,$o[s++]=d,$o[s++]=l}else if((g=kt[f])==2||g==1){let v=g==i;l=v?0:1;for(let m=s-3;m>=0;m-=3){let y=$o[m+2];if(y&2)break;if(v)$o[m+2]|=2;else{if(y&4)break;$o[m+2]|=4}}}}}function pit(t,e,n,r){for(let i=0,a=r;i<=n.length;i++){let o=i?n[i-1].to:t,s=i<n.length?n[i].from:e;for(let l=o;l<s;){let u=kt[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(kt[c]==256)c++;else break;let f=a==1,d=(c<e?kt[c]:r)==1,h=f==d?f?1:2:r;for(let g=c,v=i,m=v?n[v-1].to:t;g>l;)g==m&&(g=n[--v].from,m=v?n[v-1].to:t),kt[--g]=h;l=c}else a=u,l++}}}function WR(t,e,n,r,i,a,o){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==a.length||l<a[u].from){let v=kt[l];v!=s&&(c=!1,f=v==16)}let d=!c&&s==1?[]:null,h=c?r:r+1,g=l;e:for(;;)if(u<a.length&&g==a[u].from){if(f)break e;let v=a[u];if(!c)for(let m=v.to,y=u+1;;){if(m==n)break e;if(y<a.length&&a[y].from==m)m=a[y++].to;else{if(kt[m]==s)break e;break}}if(u++,d)d.push(v);else{v.from>l&&o.push(new Fl(l,v.from,h));let m=v.direction==qc!=!(h%2);QR(t,m?r+1:r,i,v.inner,v.from,v.to,o),l=v.to}g=v.to}else{if(g==n||(c?kt[g]!=s:kt[g]==s))break;g++}d?WR(t,l,g,r+1,i,d,o):l<g&&o.push(new Fl(l,g,h)),l=g}else for(let l=n,u=a.length;l>e;){let c=!0,f=!1;if(!u||l>a[u-1].to){let v=kt[l-1];v!=s&&(c=!1,f=v==16)}let d=!c&&s==1?[]:null,h=c?r:r+1,g=l;e:for(;;)if(u&&g==a[u-1].to){if(f)break e;let v=a[--u];if(!c)for(let m=v.from,y=u;;){if(m==e)break e;if(y&&a[y-1].to==m)m=a[--y].from;else{if(kt[m-1]==s)break e;break}}if(d)d.push(v);else{v.to<l&&o.push(new Fl(v.to,l,h));let m=v.direction==qc!=!(h%2);QR(t,m?r+1:r,i,v.inner,v.from,v.to,o),l=v.from}g=v.from}else{if(g==e||(c?kt[g-1]!=s:kt[g-1]==s))break;g--}d?WR(t,g,l,r+1,i,d,o):g<l&&o.push(new Fl(g,l,h)),l=g}}function QR(t,e,n,r,i,a,o){let s=e%2?2:1;dit(t,i,a,r,s),hit(t,i,a,r,s),pit(i,a,r,s),WR(t,i,a,e,n,r,o)}function git(t,e,n){if(!t)return[new Fl(0,0,e==zR?1:0)];if(e==qc&&!n.length&&!fit.test(t))return wne(t.length);if(n.length)for(;t.length>kt.length;)kt[kt.length]=256;let r=[],i=e==qc?0:1;return QR(t,i,i,n,0,t.length,r),r}function wne(t){return[new Fl(0,t,0)]}let Cne="";function vit(t,e,n,r,i){var a;let o=r.head-t.from,s=Fl.find(e,o,(a=r.bidiLevel)!==null&&a!==void 0?a:-1,r.assoc),l=e[s],u=l.side(i,n);if(o==u){let d=s+=i?1:-1;if(d<0||d>=e.length)return null;l=e[s=d],o=l.side(!i,n),u=l.side(i,n)}let c=Yn(t.text,o,l.forward(i,n));(c<l.from||c>l.to)&&(c=u),Cne=t.text.slice(Math.min(o,c),Math.max(o,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?ce.cursor(f.side(!i,n)+t.from,f.forward(i,n)?1:-1,f.level):ce.cursor(c+t.from,l.forward(i,n)?-1:1,l.level)}function mit(t,e,n){for(let r=e;r<n;r++){let i=Sne(t.charCodeAt(r));if(i==1)return qc;if(i==2||i==4)return zR}return qc}const Tne=Ee.define(),Pne=Ee.define(),$ne=Ee.define(),Ane=Ee.define(),HR=Ee.define(),Ene=Ee.define(),Mne=Ee.define(),Ine=Ee.define({combine:t=>t.some(e=>e)}),Dne=Ee.define({combine:t=>t.some(e=>e)}),Rne=Ee.define();class kh{constructor(e,n="nearest",r="nearest",i=5,a=5,o=!1){this.range=e,this.y=n,this.x=r,this.yMargin=i,this.xMargin=a,this.isSnapshot=o}map(e){return e.empty?this:new kh(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 kh(ce.cursor(e.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const NS=qe.define({map:(t,e)=>t.map(e)}),kne=qe.define();function Ur(t,e,n){let r=t.facet(Ane);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 Wl=Ee.define({combine:t=>t.length?t[0]:!0});let yit=0;const Bm=Ee.define();class cn{constructor(e,n,r,i,a){this.id=e,this.create=n,this.domEventHandlers=r,this.domEventObservers=i,this.extension=a(this)}static define(e,n){const{eventHandlers:r,eventObservers:i,provide:a,decorations:o}=n||{};return new cn(yit++,e,r,i,s=>{let l=[Bm.of(s)];return o&&l.push(zm.of(u=>{let c=u.plugin(s);return c?o(c):Ne.none})),a&&l.push(a(s)),l})}static fromClass(e,n){return cn.define(r=>new e(r),n)}}class jR{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(Ur(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){Ur(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){Ur(e.state,r,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const Nne=Ee.define(),GR=Ee.define(),zm=Ee.define(),Lne=Ee.define(),ZR=Ee.define(),Vne=Ee.define();function Bne(t,e){let n=t.state.facet(Vne);if(!n.length)return n;let r=n.map(a=>a instanceof Function?a(t):a),i=[];return St.spans(r,e.from,e.to,{point(){},span(a,o,s,l){let u=a-e.from,c=o-e.from,f=i;for(let d=s.length-1;d>=0;d--,l--){let h=s[d].spec.bidiIsolate,g;if(h==null&&(h=mit(e.text,u,c)),l>0&&f.length&&(g=f[f.length-1]).to==u&&g.direction==h)g.to=c,f=g.inner;else{let v={from:u,to:c,direction:h,inner:[]};f.push(v),f=v.inner}}}}),i}const zne=Ee.define();function Fne(t){let e=0,n=0,r=0,i=0;for(let a of t.state.facet(zne)){let o=a(t);o&&(o.left!=null&&(e=Math.max(e,o.left)),o.right!=null&&(n=Math.max(n,o.right)),o.top!=null&&(r=Math.max(r,o.top)),o.bottom!=null&&(i=Math.max(i,o.bottom)))}return{left:e,right:n,top:r,bottom:i}}const Fm=Ee.define();class la{constructor(e,n,r,i){this.fromA=e,this.toA=n,this.fromB=r,this.toB=i}join(e){return new la(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,a=0,o=0,s=0;;i++){let l=i==e.length?null:e[i],u=o-s,c=l?l.fromB:1e9;for(;a<n.length&&n[a]<c;){let f=n[a],d=n[a+1],h=Math.max(s,f),g=Math.min(c,d);if(h<=g&&new la(h+u,g+u,h,g).addToSet(r),d>c)break;a+=2}if(!l)return r;new la(l.fromA,l.toA,l.fromB,l.toB).addToSet(r),o=l.toA,s=l.toB}}}class LS{constructor(e,n,r){this.view=e,this.state=n,this.transactions=r,this.flags=0,this.startState=e.state,this.changes=En.empty(this.startState.doc.length);for(let a of r)this.changes=this.changes.compose(a.changes);let i=[];this.changes.iterChangedRanges((a,o,s,l)=>i.push(new la(a,o,s,l))),this.changedRanges=i}static create(e,n,r){return new LS(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 Wne extends Rt{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=Ne.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 mn],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new la(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:!Cit(e.changes,this.hasComposition)&&!e.selectionSet&&(i=e.state.selection.main.head));let a=i>-1?_it(this.view,e.changes,i):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:u,to:c}=this.hasComposition;r=new la(u,c,e.changes.mapPos(u,-1),e.changes.mapPos(c,1)).addToSet(r.slice())}this.hasComposition=a?{from:a.range.fromB,to:a.range.toB}:null,(Ae.ie||Ae.chrome)&&!a&&e&&e.state.doc.lines!=e.startState.doc.lines&&(this.forceSelection=!0);let o=this.decorations,s=this.updateDeco(),l=xit(o,s,e.changes);return r=la.extendWithRanges(r,l),!(this.flags&7)&&r.length==0?!1:(this.updateInner(r,e.startState.doc.length,a),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 o=Ae.chrome||Ae.ios?{node:i.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,o),this.flags&=-8,o&&(o.written||i.selectionRange.focusNode!=o.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(o=>o.flags&=-9);let a=[];if(this.view.viewport.from||this.view.viewport.to<this.view.state.doc.length)for(let o of this.children)o instanceof $s&&o.widget instanceof Qne&&a.push(o.dom);i.updateGaps(a)}updateChildren(e,n,r){let i=r?r.range.addToSet(e.slice()):e,a=this.childCursor(n);for(let o=i.length-1;;o--){let s=o>=0?i[o]:null;if(!s)break;let{fromA:l,toA:u,fromB:c,toB:f}=s,d,h,g,v;if(r&&r.range.fromB<f&&r.range.toB>c){let O=Vm.build(this.view.state.doc,c,r.range.fromB,this.decorations,this.dynamicDecorationMap),S=Vm.build(this.view.state.doc,r.range.toB,f,this.decorations,this.dynamicDecorationMap);h=O.breakAtStart,g=O.openStart,v=S.openEnd;let x=this.compositionView(r);S.breakAtStart?x.breakAfter=1:S.content.length&&x.merge(x.length,x.length,S.content[0],!1,S.openStart,0)&&(x.breakAfter=S.content[0].breakAfter,S.content.shift()),O.content.length&&x.merge(0,0,O.content[O.content.length-1],!0,0,O.openEnd)&&O.content.pop(),d=O.content.concat(x).concat(S.content)}else({content:d,breakAtStart:h,openStart:g,openEnd:v}=Vm.build(this.view.state.doc,c,f,this.decorations,this.dynamicDecorationMap));let{i:m,off:y}=a.findPos(u,1),{i:b,off:_}=a.findPos(l,-1);une(this,b,_,m,y,d,h,g,v)}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(kne)&&(this.editContextFormatting=r.value)}compositionView(e){let n=new Va(e.text.nodeValue);n.flags|=8;for(let{deco:i}of e.marks)n=new Ps(i,[n],n.length);let r=new mn;return r.append(n,0),r}fixCompositionDOM(e){let n=(a,o)=>{o.flags|=8|(o.children.some(l=>l.flags&7)?1:0),this.markedForComposition.add(o);let s=Rt.get(a);s&&s!=o&&(s.dom=null),o.setDOM(a)},r=this.childPos(e.range.fromB,1),i=this.children[r.i];n(e.line,i);for(let a=e.marks.length-1;a>=-1;a--)r=i.childPos(r.off,1),i=i.children[r.i],n(a>=0?e.marks[a].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,a=!i&&ES(this.dom,this.view.observer.selectionRange)&&!(r&&this.dom.contains(r));if(!(i||n||a))return;let o=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(Ae.gecko&&s.empty&&!this.hasComposition&&bit(l)){let f=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(f,l.node.childNodes[l.offset]||null)),l=u=new fr(f,0),o=!0}let c=this.view.observer.selectionRange;(o||!c.focusNode||(!km(l.node,l.offset,c.anchorNode,c.anchorOffset)||!km(u.node,u.offset,c.focusNode,c.focusOffset))&&!this.suppressWidgetCursorChange(c,s))&&(this.view.observer.ignore(()=>{Ae.android&&Ae.chrome&&this.dom.contains(c.focusNode)&&wit(c.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let f=Rm(this.view.root);if(f)if(s.empty){if(Ae.gecko){let d=Oit(l.node,l.offset);if(d&&d!=3){let h=(d==1?ane:one)(l.node,l.offset);h&&(l=new fr(h.node,h.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)}a&&this.view.root.activeElement==this.dom&&(this.dom.blur(),r&&r.focus())}),this.view.observer.setSelectionRange(l,u)),this.impreciseAnchor=l.precise?null:new fr(c.anchorNode,c.anchorOffset),this.impreciseHead=u.precise?null:new fr(c.focusNode,c.focusOffset)}suppressWidgetCursorChange(e,n){return this.hasComposition&&n.empty&&km(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=Rm(e.root),{anchorNode:i,anchorOffset:a}=e.observer.selectionRange;if(!r||!n.empty||!n.assoc||!r.modify)return;let o=mn.find(this,n.head);if(!o)return;let s=o.posAtStart;if(n.head==s||n.head==s+o.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,a)}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 a=Rt.get(n.childNodes[i]);a instanceof mn&&(r=a.domAtPos(0))}for(let i=e.offset-1;!r&&i>=0;i--){let a=Rt.get(n.childNodes[i]);a instanceof mn&&(r=a.domAtPos(a.length))}return r?new fr(r.node,r.offset,!0):e}nearest(e){for(let n=e;n;){let r=Rt.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 mn)break;n++,r=0}return this.children[n].domAtPos(r)}coordsAt(e,n){let r=null,i=0;for(let a=this.length,o=this.children.length-1;o>=0;o--){let s=this.children[o],l=a-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 mn&&!(r instanceof mn&&n>=0)))r=s,i=u;else if(r&&u==e&&l==e&&s instanceof $s&&Math.abs(n)<2){if(s.deco.startSide<0)break;o&&(r=null)}a=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 mn))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 Va))return null;let a=Yn(i.text,r);if(a==r)return null;let o=Yc(i.dom,r,a).getClientRects();for(let s=0;s<o.length;s++){let l=o[s];if(s==o.length-1||l.top<l.bottom&&l.left<l.right)return l}return null}measureVisibleLineHeights(e){let n=[],{from:r,to:i}=e,a=this.view.contentDOM.clientWidth,o=a>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,s=-1,l=this.view.textDirection==Ht.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 h=f.dom.getBoundingClientRect();if(n.push(h.height),o){let g=f.dom.lastChild,v=g?Eh(g):[];if(v.length){let m=v[v.length-1],y=l?m.right-h.left:h.right-m.left;y>s&&(s=y,this.minWidth=a,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"?Ht.RTL:Ht.LTR}measureTextSize(){for(let a of this.children)if(a instanceof mn){let o=a.measureTextSize();if(o)return o}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 a=Eh(e.firstChild)[0];n=e.getBoundingClientRect().height,r=a?a.width/27:7,i=a?a.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 lne(this.children,e,n)}computeBlockGapDeco(){let e=[],n=this.view.viewState;for(let r=0,i=0;;i++){let a=i==n.viewports.length?null:n.viewports[i],o=a?a.from-1:this.length;if(o>r){let s=(n.lineBlockAt(o).bottom-n.lineBlockAt(r).top)/this.view.scaleY;e.push(Ne.replace({widget:new Qne(s),block:!0,inclusive:!0,isBlockGap:!0}).range(r,o))}if(!a)break;r=a.to+1}return Ne.set(e)}updateDeco(){let e=1,n=this.view.state.facet(zm).map(a=>(this.dynamicDecorationMap[e++]=typeof a=="function")?a(this.view):a),r=!1,i=this.view.state.facet(Lne).map((a,o)=>{let s=typeof a=="function";return s&&(r=!0),s?a(this.view):a});for(i.length&&(this.dynamicDecorationMap[e++]=r,n.push(St.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(Rne))try{if(u(this.view,e.range,e))return!0}catch(c){Ur(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 a=Fne(this.view),o={left:r.left-a.left,top:r.top-a.top,right:r.right+a.right,bottom:r.bottom+a.bottom},{offsetWidth:s,offsetHeight:l}=this.view.scrollDOM;Jrt(this.view.scrollDOM,o,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==Ht.LTR)}}function bit(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 Qne extends Po{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 Hne(t,e){let n=t.observer.selectionRange;if(!n.focusNode)return null;let r=ane(n.focusNode,n.focusOffset),i=one(n.focusNode,n.focusOffset),a=r||i;if(i&&r&&i.node!=r.node){let s=Rt.get(i.node);if(!s||s instanceof Va&&s.text!=i.node.nodeValue)a=i;else if(t.docView.lastCompositionAfterCursor){let l=Rt.get(r.node);!l||l instanceof Va&&l.text!=r.node.nodeValue||(a=i)}}if(t.docView.lastCompositionAfterCursor=a!=r,!a)return null;let o=e-a.offset;return{from:o,to:o+a.node.nodeValue.length,node:a.node}}function _it(t,e,n){let r=Hne(t,n);if(!r)return null;let{node:i,from:a,to:o}=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 la(l.mapPos(a),l.mapPos(o),a,o),c=[];for(let f=i.parentNode;;f=f.parentNode){let d=Rt.get(f);if(d instanceof Ps)c.push({node:f,deco:d.mark});else{if(d instanceof mn||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 Nm({inclusive:!0,attributes:sit(f),tagName:f.tagName.toLowerCase()})});else return null}}}function Oit(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 Sit=class{constructor(){this.changes=[]}compareRange(e,n){BR(e,n,this.changes)}comparePoint(e,n){BR(e,n,this.changes)}};function xit(t,e,n){let r=new Sit;return St.compare(t,e,n,r),r.changes}function wit(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 Cit(t,e){let n=!1;return e&&t.iterChangedRanges((r,i)=>{r<e.to&&i>e.from&&(n=!0)}),n}function Tit(t,e,n=1){let r=t.charCategorizer(e),i=t.doc.lineAt(e),a=e-i.from;if(i.length==0)return ce.cursor(e);a==0?n=1:a==i.length&&(n=-1);let o=a,s=a;n<0?o=Yn(i.text,a,!1):s=Yn(i.text,a);let l=r(i.text.slice(o,s));for(;o>0;){let u=Yn(i.text,o,!1);if(r(i.text.slice(u,o))!=l)break;o=u}for(;s<i.length;){let u=Yn(i.text,s);if(r(i.text.slice(s,u))!=l)break;s=u}return ce.range(o+i.from,s+i.from)}function Pit(t,e){return e.left>t?e.left-t:Math.max(0,t-e.right)}function $it(t,e){return e.top>t?e.top-t:Math.max(0,t-e.bottom)}function UR(t,e){return t.top<e.bottom-1&&t.bottom>e.top+1}function jne(t,e){return e<t.top?{top:e,left:t.left,right:t.right,bottom:t.bottom}:t}function Gne(t,e){return e>t.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function XR(t,e,n){let r,i,a,o,s=!1,l,u,c,f;for(let g=t.firstChild;g;g=g.nextSibling){let v=Eh(g);for(let m=0;m<v.length;m++){let y=v[m];i&&UR(i,y)&&(y=jne(Gne(y,i.bottom),i.top));let b=Pit(e,y),_=$it(n,y);if(b==0&&_==0)return g.nodeType==3?Zne(g,e,n):XR(g,e,n);if(!r||o>_||o==_&&a>b){r=g,i=y,a=b,o=_;let O=_?n<y.top?-1:1:b?e<y.left?-1:1:0;s=!O||(O>0?m<v.length-1:m>0)}b==0?n>y.bottom&&(!c||c.bottom<y.bottom)?(l=g,c=y):n<y.top&&(!f||f.top>y.top)&&(u=g,f=y):c&&UR(c,y)?c=Gne(c,y.bottom):f&&UR(f,y)&&(f=jne(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 Zne(r,d,n);if(s&&r.contentEditable!="false")return XR(r,d,n);let h=Array.prototype.indexOf.call(t.childNodes,r)+(e>=(i.left+i.right)/2?1:0);return{node:t,offset:h}}function Zne(t,e,n){let r=t.nodeValue.length,i=-1,a=1e9,o=0;for(let s=0;s<r;s++){let l=Yc(t,s,s+1).getClientRects();for(let u=0;u<l.length;u++){let c=l[u];if(c.top==c.bottom)continue;o||(o=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<a){let d=e>=(c.left+c.right)/2,h=d;if((Ae.chrome||Ae.gecko)&&Yc(t,s).getBoundingClientRect().left==c.right&&(h=!d),f<=0)return{node:t,offset:s+(h?1:0)};i=s+(h?1:0),a=f}}}return{node:t,offset:i>-1?i:o>0?t.nodeValue.length:0}}function Une(t,e,n,r=-1){var i,a;let o=t.contentDOM.getBoundingClientRect(),s=o.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 O=t.viewState.heightOracle.textHeight/2,S=!1;l=t.elementAtHeight(d),l.type!=Mr.Text;)for(;d=r>0?l.bottom+O:l.top-O,!(d>=0&&d<=u);){if(S)return n?null:0;S=!0,r=-r}f=s+d;let h=l.from;if(h<t.viewport.from)return t.viewport.from==0?0:n?null:Xne(t,o,l,c,f);if(h>t.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:n?null:Xne(t,o,l,c,f);let g=t.dom.ownerDocument,v=t.root.elementFromPoint?t.root:g,m=v.elementFromPoint(c,f);m&&!t.contentDOM.contains(m)&&(m=null),m||(c=Math.max(o.left+1,Math.min(o.right-1,c)),m=v.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(g.caretPositionFromPoint){let O=g.caretPositionFromPoint(c,f);O&&({offsetNode:y,offset:b}=O)}else if(g.caretRangeFromPoint){let O=g.caretRangeFromPoint(c,f);O&&({startContainer:y,startOffset:b}=O,(!t.contentDOM.contains(y)||Ae.safari&&Ait(y,b,c)||Ae.chrome&&Eit(y,b,c))&&(y=void 0))}}if(!y||!t.docView.dom.contains(y)){let O=mn.find(t.docView,h);if(!O)return d>l.top+l.height/2?l.to:l.from;({node:y,offset:b}=XR(O.dom,c,f))}let _=t.docView.nearest(y);if(!_)return null;if(_.isWidget&&((a=_.dom)===null||a===void 0?void 0:a.nodeType)==1){let O=_.dom.getBoundingClientRect();return e.y<O.top||e.y<=O.bottom&&e.x<=(O.left+O.right)/2?_.posAtStart:_.posAtEnd}else return _.localPosFromDOM(y,b)+_.posAtStart}function Xne(t,e,n,r,i){let a=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);a+=l*t.viewState.heightOracle.lineLength}let o=t.state.sliceDoc(n.from,n.to);return n.from+PR(o,a,t.state.tabSize)}function Ait(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 Yc(t,r-1,r).getBoundingClientRect().left>n}function Eit(t,e,n){if(e!=0)return!1;for(let i=t;;){let a=i.parentNode;if(!a||a.nodeType!=1||a.firstChild!=i)return!1;if(a.classList.contains("cm-line"))break;i=a}let r=t.nodeType==1?t.getBoundingClientRect():Yc(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect();return n-r.left>5}function YR(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==Mr.Text))return r}return n}function Mit(t,e,n,r){let i=YR(t,e.head),a=!r||i.type!=Mr.Text||!(t.lineWrapping||i.widgetLineBreaks)?null:t.coordsAtPos(e.assoc<0&&e.head>i.from?e.head-1:e.head);if(a){let o=t.dom.getBoundingClientRect(),s=t.textDirectionAt(i.from),l=t.posAtCoords({x:n==(s==Ht.LTR)?o.right-1:o.left+1,y:(a.top+a.bottom)/2});if(l!=null)return ce.cursor(l,n?-1:1)}return ce.cursor(n?i.to:i.from,n?-1:1)}function Yne(t,e,n,r){let i=t.state.doc.lineAt(e.head),a=t.bidiSpans(i),o=t.textDirectionAt(i.from);for(let s=e,l=null;;){let u=vit(i,a,o,s,n),c=Cne;if(!u){if(i.number==(n?t.state.doc.lines:1))return s;c=`
  369. `,i=t.state.doc.line(i.number+(n?1:-1)),a=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 Iit(t,e,n){let r=t.state.charCategorizer(e),i=r(n);return a=>{let o=r(a);return i==Yt.Space&&(i=o),i==o}}function Dit(t,e,n,r){let i=e.head,a=n?1:-1;if(i==(n?t.state.doc.length:0))return ce.cursor(i,e.assoc);let o=e.goalColumn,s,l=t.contentDOM.getBoundingClientRect(),u=t.coordsAtPos(i,e.assoc||-1),c=t.documentTop;if(u)o==null&&(o=u.left-l.left),s=a<0?u.top:u.bottom;else{let h=t.viewState.lineBlockAt(i);o==null&&(o=Math.min(l.right-l.left,t.defaultCharacterWidth*(i-h.from))),s=(a<0?h.top:h.bottom)+c}let f=l.left+o,d=r??t.viewState.heightOracle.textHeight>>1;for(let h=0;;h+=10){let g=s+(d+h)*a,v=Une(t,{x:f,y:g},!1,a);if(g<l.top||g>l.bottom||(a<0?v<i:v>i)){let m=t.docView.coordsForChar(v),y=!m||g<m.top?-1:1;return ce.cursor(v,y,void 0,o)}}}function VS(t,e,n){for(;;){let r=0;for(let i of t)i.between(e-1,e+1,(a,o,s)=>{if(e>a&&e<o){let l=r||n||(e-a<o-e?-1:1);e=l<0?a:o,r=l}});if(!r)return e}}function qR(t,e,n){let r=VS(t.state.facet(ZR).map(i=>i(t)),n.from,e.head>n.from?-1:1);return r==n.from?n:ce.cursor(r,r<n.from?1:-1)}class Rit{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,Ae.safari&&e.contentDOM.addEventListener("input",()=>null),Ae.gecko&&Yit(e.contentDOM.ownerDocument)}handleEvent(e){!Wit(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=kit(e),r=this.handlers,i=this.view.contentDOM;for(let a in n)if(a!="scroll"){let o=!n[a].handlers.length,s=r[a];s&&o!=!s.handlers.length&&(i.removeEventListener(a,this.handleEvent),s=null),s||i.addEventListener(a,this.handleEvent,{passive:o})}for(let a in r)a!="scroll"&&!n[a]&&i.removeEventListener(a,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&&Jne.indexOf(e.keyCode)<0&&(this.tabFocusMode=-1),Ae.android&&Ae.chrome&&!e.synthetic&&(e.keyCode==13||e.keyCode==8))return this.view.observer.delayAndroidKey(e.key,e.keyCode),!0;let n;return Ae.ios&&!e.synthetic&&!e.altKey&&!e.metaKey&&((n=Kne.find(r=>r.keyCode==e.keyCode))&&!e.ctrlKey||Nit.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,Ih(this.view.contentDOM,n.key,n.keyCode,n instanceof KeyboardEvent?n:void 0))}ignoreDuringComposition(e){return/^key/.test(e.type)?this.composing>0?!0:Ae.safari&&!Ae.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 qne(t,e){return(n,r)=>{try{return e.call(t,r,n)}catch(i){Ur(n.state,i)}}}function kit(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 a in i.domEventHandlers){let o=i.domEventHandlers[a];o&&n(a).handlers.push(qne(r.value,o))}if(i&&i.domEventObservers)for(let a in i.domEventObservers){let o=i.domEventObservers[a];o&&n(a).observers.push(qne(r.value,o))}}for(let r in Ba)n(r).handlers.push(Ba[r]);for(let r in ua)n(r).observers.push(ua[r]);return e}const Kne=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],Nit="dthko",Jne=[16,17,18,20,91,92,224,225],BS=6;function zS(t){return Math.max(0,t)*.7+8}function Lit(t,e){return Math.max(Math.abs(t.clientX-e.clientX),Math.abs(t.clientY-e.clientY))}class Vit{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=eit(e.contentDOM),this.atoms=e.state.facet(ZR).map(o=>o(e));let a=e.contentDOM.ownerDocument;a.addEventListener("mousemove",this.move=this.move.bind(this)),a.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=n.shiftKey,this.multiple=e.state.facet(ht.allowMultipleSelections)&&Bit(e,n),this.dragging=Fit(e,n)&&ure(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&&Lit(this.startEvent,e)<10)return;this.select(this.lastEvent=e);let r=0,i=0,a=((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},o=Fne(this.view);e.clientX-o.left<=a.left+BS?r=-zS(a.left-e.clientX):e.clientX+o.right>=a.right-BS&&(r=zS(e.clientX-a.right)),e.clientY-o.top<=a.top+BS?i=-zS(a.top-e.clientY):e.clientY+o.bottom>=a.bottom-BS&&(i=zS(e.clientY-a.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],a=null;if(i.empty){let o=VS(this.atoms,i.from,0);o!=i.from&&(a=ce.cursor(o,-1))}else{let o=VS(this.atoms,i.from,-1),s=VS(this.atoms,i.to,1);(o!=i.from||s!=i.to)&&(a=ce.range(i.from==i.anchor?o:s,i.from==i.head?o:s))}a&&(n||(n=e.ranges.slice()),n[r]=a)}return n?ce.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 Bit(t,e){let n=t.state.facet(Tne);return n.length?n[0](e):Ae.mac?e.metaKey:e.ctrlKey}function zit(t,e){let n=t.state.facet(Pne);return n.length?n[0](e):Ae.mac?!e.altKey:!e.ctrlKey}function Fit(t,e){let{main:n}=t.state.selection;if(n.empty)return!1;let r=Rm(t.root);if(!r||r.rangeCount==0)return!0;let i=r.getRangeAt(0).getClientRects();for(let a=0;a<i.length;a++){let o=i[a];if(o.left<=e.clientX&&o.right>=e.clientX&&o.top<=e.clientY&&o.bottom>=e.clientY)return!0}return!1}function Wit(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=Rt.get(n))&&r.ignoreEvent(e))return!1;return!0}const Ba=Object.create(null),ua=Object.create(null),ere=Ae.ie&&Ae.ie_version<15||Ae.ios&&Ae.webkit_version<604;function Qit(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(),tre(t,n.value)},50)}function tre(t,e){let{state:n}=t,r,i=1,a=n.toText(e),o=a.lines==n.selection.ranges.length;if(KR!=null&&n.selection.ranges.every(l=>l.empty)&&KR==a.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((o?a.line(i++).text:e)+n.lineBreak);return{changes:{from:c.from,insert:f},range:ce.cursor(u.from+f.length)}})}else o?r=n.changeByRange(l=>{let u=a.line(i++);return{changes:{from:l.from,to:l.to,insert:u.text},range:ce.cursor(l.from+u.length)}}):r=n.replaceSelection(a);t.dispatch(r,{userEvent:"input.paste",scrollIntoView:!0})}ua.scroll=t=>{t.inputState.lastScrollTop=t.scrollDOM.scrollTop,t.inputState.lastScrollLeft=t.scrollDOM.scrollLeft},Ba.keydown=(t,e)=>(t.inputState.setSelectionOrigin("select"),e.keyCode==27&&t.inputState.tabFocusMode!=0&&(t.inputState.tabFocusMode=Date.now()+2e3),!1),ua.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now(),t.inputState.setSelectionOrigin("select.pointer")},ua.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")},Ba.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($ne))if(n=r(t,e),n)break;if(!n&&e.button==0&&(n=Git(t,e)),n){let r=!t.hasFocus;t.inputState.startMouseSelection(new Vit(t,e,n,r)),r&&t.observer.ignore(()=>{tne(t.contentDOM);let a=t.root.activeElement;a&&!a.contains(t.contentDOM)&&a.blur()});let i=t.inputState.mouseSelection;if(i)return i.start(e),i.dragging===!1}return!1};function nre(t,e,n,r){if(r==1)return ce.cursor(e,n);if(r==2)return Tit(t.state,e,n);{let i=mn.find(t.docView,e),a=t.state.doc.lineAt(i?i.posAtEnd:e),o=i?i.posAtStart:a.from,s=i?i.posAtEnd:a.to;return s<t.state.doc.length&&s==a.to&&s++,ce.range(o,s)}}let rre=(t,e)=>t>=e.top&&t<=e.bottom,ire=(t,e,n)=>rre(e,n)&&t>=n.left&&t<=n.right;function Hit(t,e,n,r){let i=mn.find(t.docView,e);if(!i)return 1;let a=e-i.posAtStart;if(a==0)return 1;if(a==i.length)return-1;let o=i.coordsAt(a,-1);if(o&&ire(n,r,o))return-1;let s=i.coordsAt(a,1);return s&&ire(n,r,s)?1:o&&rre(r,o)?-1:1}function are(t,e){let n=t.posAtCoords({x:e.clientX,y:e.clientY},!1);return{pos:n,bias:Hit(t,n,e.clientX,e.clientY)}}const jit=Ae.ie&&Ae.ie_version<=11;let ore=null,sre=0,lre=0;function ure(t){if(!jit)return t.detail;let e=ore,n=lre;return ore=t,lre=Date.now(),sre=!e||n>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(sre+1)%3:1}function Git(t,e){let n=are(t,e),r=ure(e),i=t.state.selection;return{update(a){a.docChanged&&(n.pos=a.changes.mapPos(n.pos),i=i.map(a.changes))},get(a,o,s){let l=are(t,a),u,c=nre(t,l.pos,l.bias,r);if(n.pos!=l.pos&&!o){let f=nre(t,n.pos,n.bias,r),d=Math.min(f.from,c.from),h=Math.max(f.to,c.to);c=d<c.from?ce.range(d,h):ce.range(h,d)}return o?i.replaceRange(i.main.extend(c.from,c.to)):s&&r==1&&i.ranges.length>1&&(u=Zit(i,l.pos))?u:s?i.addRange(c):ce.create([c])}}}function Zit(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 ce.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}Ba.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 a=i.posAtStart,o=a+i.length;(a>=n.to||o<=n.from)&&(n=ce.range(a,o))}}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},Ba.dragend=t=>(t.inputState.draggedContent=null,!1);function cre(t,e,n,r){if(!n)return;let i=t.posAtCoords({x:e.clientX,y:e.clientY},!1),{draggedContent:a}=t.inputState,o=r&&a&&zit(t,e)?{from:a.from,to:a.to}:null,s={from:i,insert:n},l=t.state.changes(o?[o,s]:s);t.focus(),t.dispatch({changes:l,selection:{anchor:l.mapPos(i,-1),head:l.mapPos(i,1)},userEvent:o?"move.drop":"input.drop"}),t.inputState.draggedContent=null}Ba.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,a=()=>{++i==n.length&&cre(t,e,r.filter(o=>o!=null).join(t.state.lineBreak),!1)};for(let o=0;o<n.length;o++){let s=new FileReader;s.onerror=a,s.onload=()=>{/[\x00-\x08\x0e-\x1f]{2}/.test(s.result)||(r[o]=s.result),a()},s.readAsText(n[o])}return!0}else{let r=e.dataTransfer.getData("Text");if(r)return cre(t,e,r,!0),!0}return!1},Ba.paste=(t,e)=>{if(t.state.readOnly)return!0;t.observer.flush();let n=ere?null:e.clipboardData;return n?(tre(t,n.getData("text/plain")||n.getData("text/uri-list")),!0):(Qit(t),!1)};function Uit(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 Xit(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:a}of t.selection.ranges){let o=t.doc.lineAt(a);o.number>i&&(e.push(o.text),n.push({from:o.from,to:Math.min(t.doc.length,o.to+1)})),i=o.number}r=!0}return{text:e.join(t.lineBreak),ranges:n,linewise:r}}let KR=null;Ba.copy=Ba.cut=(t,e)=>{let{text:n,ranges:r,linewise:i}=Xit(t.state);if(!n&&!i)return!1;KR=i?n:null,e.type=="cut"&&!t.state.readOnly&&t.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let a=ere?null:e.clipboardData;return a?(a.clearData(),a.setData("text/plain",n),!0):(Uit(t,n),!1)};const fre=Cs.define();function dre(t,e){let n=[];for(let r of t.facet(Mne)){let i=r(t,e);i&&n.push(i)}return n?t.update({effects:n,annotations:fre.of(!0)}):null}function hre(t){setTimeout(()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let n=dre(t.state,e);n?t.dispatch(n):t.update([])}},10)}ua.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),hre(t)},ua.blur=t=>{t.observer.clearSelectionRange(),hre(t)},ua.compositionstart=ua.compositionupdate=t=>{t.observer.editContext||(t.inputState.compositionFirstChange==null&&(t.inputState.compositionFirstChange=!0),t.inputState.composing<0&&(t.inputState.composing=0))},ua.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,Ae.chrome&&Ae.android?t.observer.flushSoon():t.inputState.compositionPendingChange?Promise.resolve().then(()=>t.observer.flush()):setTimeout(()=>{t.inputState.composing<0&&t.docView.hasComposition&&t.update([])},50))},ua.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()},Ba.beforeinput=(t,e)=>{var n;let r;if(Ae.chrome&&Ae.android&&(r=Kne.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 a;(((a=window.visualViewport)===null||a===void 0?void 0:a.height)||0)>i+10&&t.hasFocus&&(t.contentDOM.blur(),t.focus())},100)}return Ae.ios&&e.inputType=="deleteContentForward"&&t.observer.flushSoon(),Ae.safari&&e.inputType=="insertText"&&t.inputState.composing>=0&&setTimeout(()=>ua.compositionend(t,e),20),!1};const pre=new Set;function Yit(t){pre.has(t)||(pre.add(t),t.addEventListener("copy",()=>{}),t.addEventListener("cut",()=>{}))}const gre=["pre-wrap","normal","pre-line","break-spaces"];class qit{constructor(e){this.lineWrapping=e,this.doc=Ot.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 gre.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,a,o){let s=gre.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=a,l){this.heightSamples={};for(let u=0;u<o.length;u++){let c=o[u];c<0?u++:this.heightSamples[Math.floor(c*10)]=!0}}return l}}class Kit{constructor(e,n){this.from=e,this.heights=n,this.index=0}get more(){return this.index<this.heights.length}}class Ao{constructor(e,n,r,i,a){this.from=e,this.length=n,this.top=r,this.height=i,this._content=a}get type(){return typeof this._content=="number"?Mr.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 zl?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 Ao(this.from,this.length+e.length,this.top,this.height+e.height,n)}}var jt=function(t){return t[t.ByPos=0]="ByPos",t[t.ByHeight=1]="ByHeight",t[t.ByPosNoHeight=2]="ByPosNoHeight",t}(jt||(jt={}));const FS=.001;class Ir{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)>FS&&(e.heightChanged=!0),this.height=n)}replace(e,n,r){return Ir.of(r)}decomposeLeft(e,n){n.push(this)}decomposeRight(e,n){n.push(this)}applyChanges(e,n,r,i){let a=this,o=r.doc;for(let s=i.length-1;s>=0;s--){let{fromA:l,toA:u,fromB:c,toB:f}=i[s],d=a.lineAt(l,jt.ByPosNoHeight,r.setDoc(n),0,0),h=d.to>=u?d:a.lineAt(u,jt.ByPosNoHeight,r,0,0);for(f+=h.to-u,u=h.to;s>0&&d.from<=i[s-1].toA;)l=i[s-1].fromA,c=i[s-1].fromB,s--,l<d.from&&(d=a.lineAt(l,jt.ByPosNoHeight,r,0,0));c+=d.from-l,l=d.from;let g=JR.build(r.setDoc(o),e,c,f);a=a.replace(l,u,g)}return a.updateHeight(r,0)}static empty(){return new yi(0,0)}static of(e){if(e.length==1)return e[0];let n=0,r=e.length,i=0,a=0;for(;;)if(n==r)if(i>a*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(a>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,a-=s.size}else break;else if(i<a){let s=e[n++];s&&(i+=s.size)}else{let s=e[--r];s&&(a+=s.size)}let o=0;return e[n-1]==null?(o=1,n--):e[n]==null&&(o=1,r++),new Jit(Ir.of(e.slice(0,n)),o,Ir.of(e.slice(r)))}}Ir.prototype.size=1;class vre extends Ir{constructor(e,n,r){super(e,n),this.deco=r}blockAt(e,n,r,i){return new Ao(i,this.length,r,this.height,this.deco||0)}lineAt(e,n,r,i,a){return this.blockAt(0,r,i,a)}forEachLine(e,n,r,i,a,o){e<=a+this.length&&n>=a&&o(this.blockAt(0,r,i,a))}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 yi extends vre{constructor(e,n){super(e,n,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(e,n,r,i){return new Ao(i,this.length,r,this.height,this.breaks)}replace(e,n,r){let i=r[0];return r.length==1&&(i instanceof yi||i instanceof er&&i.flags&4)&&Math.abs(this.length-i.length)<10?(i instanceof er?i=new yi(i.length,this.height):i.height=this.height,this.outdated||(i.outdated=!1),i):Ir.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 er extends Ir{constructor(e){super(e,0)}heightMetrics(e,n){let r=e.doc.lineAt(n).number,i=e.doc.lineAt(n+this.length).number,a=i-r+1,o,s=0;if(e.lineWrapping){let l=Math.min(this.height,e.lineHeight*a);o=l/a,this.length>a+1&&(s=(this.height-l)/(this.length-a-1))}else o=this.height/a;return{firstLine:r,lastLine:i,perLine:o,perChar:s}}blockAt(e,n,r,i){let{firstLine:a,lastLine:o,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 Ao(c.from,c.length,d,f,0)}else{let u=Math.max(0,Math.min(o-a,Math.floor((e-r)/s))),{from:c,length:f}=n.doc.line(a+u);return new Ao(c,f,r+s*u,s,0)}}lineAt(e,n,r,i,a){if(n==jt.ByHeight)return this.blockAt(e,r,i,a);if(n==jt.ByPosNoHeight){let{from:h,to:g}=r.doc.lineAt(e);return new Ao(h,g-h,0,0,0)}let{firstLine:o,perLine:s,perChar:l}=this.heightMetrics(r,a),u=r.doc.lineAt(e),c=s+u.length*l,f=u.number-o,d=i+s*f+l*(u.from-a-f);return new Ao(u.from,u.length,Math.max(i,Math.min(d,i+this.height-c)),c,0)}forEachLine(e,n,r,i,a,o){e=Math.max(e,a),n=Math.min(n,a+this.length);let{firstLine:s,perLine:l,perChar:u}=this.heightMetrics(r,a);for(let c=e,f=i;c<=n;){let d=r.doc.lineAt(c);if(c==e){let g=d.number-s;f+=l*g+u*(e-a-g)}let h=l+u*d.length;o(new Ao(d.from,d.length,f,h,0)),f+=h,c=d.to+1}}replace(e,n,r){let i=this.length-n;if(i>0){let a=r[r.length-1];a instanceof er?r[r.length-1]=new er(a.length+i):r.push(null,new er(i-1))}if(e>0){let a=r[0];a instanceof er?r[0]=new er(e+a.length):r.unshift(new er(e-1),null)}return Ir.of(r)}decomposeLeft(e,n){n.push(new er(e-1),null)}decomposeRight(e,n){n.push(null,new er(this.length-e-1))}updateHeight(e,n=0,r=!1,i){let a=n+this.length;if(i&&i.from<=n+this.length&&i.more){let o=[],s=Math.max(n,i.from),l=-1;for(i.from>n&&o.push(new er(i.from-n-1).updateHeight(e,n));s<=a&&i.more;){let c=e.doc.lineAt(s).length;o.length&&o.push(null);let f=i.heights[i.index++];l==-1?l=f:Math.abs(f-l)>=FS&&(l=-2);let d=new yi(c,f);d.outdated=!1,o.push(d),s+=c+1}s<=a&&o.push(null,new er(a-s).updateHeight(e,s));let u=Ir.of(o);return(l<0||Math.abs(u.height-this.height)>=FS||Math.abs(l-this.heightMetrics(e,n).perLine)>=FS)&&(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 Jit extends Ir{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 a=r+this.left.height;return e<a?this.left.blockAt(e,n,r,i):this.right.blockAt(e,n,a,i+this.left.length+this.break)}lineAt(e,n,r,i,a){let o=i+this.left.height,s=a+this.left.length+this.break,l=n==jt.ByHeight?e<o:e<s,u=l?this.left.lineAt(e,n,r,i,a):this.right.lineAt(e,n,r,o,s);if(this.break||(l?u.to<s:u.from>s))return u;let c=n==jt.ByPosNoHeight?jt.ByPosNoHeight:jt.ByPos;return l?u.join(this.right.lineAt(s,c,r,o,s)):this.left.lineAt(s,c,r,i,a).join(u)}forEachLine(e,n,r,i,a,o){let s=i+this.left.height,l=a+this.left.length+this.break;if(this.break)e<l&&this.left.forEachLine(e,n,r,i,a,o),n>=l&&this.right.forEachLine(e,n,r,s,l,o);else{let u=this.lineAt(l,jt.ByPos,r,i,a);e<u.from&&this.left.forEachLine(e,u.from-1,r,i,a,o),u.to>=e&&u.from<=n&&o(u),n>u.to&&this.right.forEachLine(u.to+1,n,r,s,l,o)}}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 a=[];e>0&&this.decomposeLeft(e,a);let o=a.length;for(let s of r)a.push(s);if(e>0&&mre(a,o-1),n<this.length){let s=a.length;this.decomposeRight(n,a),mre(a,s)}return Ir.of(a)}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?Ir.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:a,right:o}=this,s=n+a.length+this.break,l=null;return i&&i.from<=n+a.length&&i.more?l=a=a.updateHeight(e,n,r,i):a.updateHeight(e,n,r),i&&i.from<=s+o.length&&i.more?l=o=o.updateHeight(e,s,r,i):o.updateHeight(e,s,r),l?this.balanced(a,o):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function mre(t,e){let n,r;t[e]==null&&(n=t[e-1])instanceof er&&(r=t[e+1])instanceof er&&t.splice(e-1,3,new er(n.length+1+r.length))}const eat=5;class JR{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 yi?i.length+=r-this.pos:(r>this.pos||!this.isCovered)&&this.nodes.push(new yi(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,a=r.widget?r.widget.lineBreaks:0;i<0&&(i=this.oracle.lineHeight);let o=n-e;r.block?this.addBlock(new vre(o,i,r)):(o||a||i>=eat)&&this.addLineDeco(i,a,o)}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 yi(this.pos-e,-1)),this.writtenTo=this.pos}blankContent(e,n){let r=new er(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 yi)return e;let n=new yi(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 yi)&&!this.isCovered?this.nodes.push(new yi(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 yi&&i.updateHeight(this.oracle,r),r+=i?i.length:1;return this.nodes}static build(e,n,r,i){let a=new JR(r,e);return St.spans(n,r,i,a,0),a.finish(r)}}function tat(t,e,n){let r=new nat;return St.compare(t,e,n,r,0),r.changes}class nat{constructor(){this.changes=[]}compareRange(){}comparePoint(e,n,r,i){(e<n||r&&r.heightRelevant||i&&i.heightRelevant)&&BR(e,n,this.changes,5)}}function rat(t,e){let n=t.getBoundingClientRect(),r=t.ownerDocument,i=r.defaultView||window,a=Math.max(0,n.left),o=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();a=Math.max(a,d.left),o=Math.min(o,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:a-n.left,right:Math.max(a,o)-n.left,top:s-(n.top+e),bottom:Math.max(s,l)-(n.top+e)}}function iat(t,e){let n=t.getBoundingClientRect();return{left:0,right:n.right-n.left,top:e,bottom:n.bottom-(n.top+e)}}class ek{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],a=n[r];if(i.from!=a.from||i.to!=a.to||i.size!=a.size)return!1}return!0}draw(e,n){return Ne.replace({widget:new aat(this.size*(n?e.scaleY:e.scaleX),n)}).range(this.from,this.to)}}class aat extends Po{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 yre{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=bre,this.scrollTarget=null,this.printing=!1,this.mustMeasureContent=!0,this.defaultTextDirection=Ht.LTR,this.visibleRanges=[],this.mustEnforceCursorAssoc=!1;let n=e.facet(GR).some(r=>typeof r!="function"&&r.class=="cm-lineWrapping");this.heightOracle=new qit(n),this.stateDeco=e.facet(zm).filter(r=>typeof r!="function"),this.heightMap=Ir.empty().applyChanges(this.stateDeco,Ot.empty,this.heightOracle.setDoc(e.doc),[new la(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=Ne.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:a,to:o})=>i>=a&&i<=o)){let{from:a,to:o}=this.lineBlockAt(i);e.push(new WS(a,o))}}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?bre:new tk(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(Wm(e,this.scaler))})}update(e,n=null){this.state=e.state;let r=this.stateDeco;this.stateDeco=this.state.facet(zm).filter(c=>typeof c!="function");let i=e.changedRanges,a=la.extendWithRanges(i,tat(r,this.stateDeco,e?e.changes:En.empty(this.state.doc.length))),o=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),a),this.heightMap.height!=o&&(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=a.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(Dne)&&(this.mustEnforceCursorAssoc=!0)}measure(e){let n=e.contentDOM,r=window.getComputedStyle(n),i=this.heightOracle,a=r.whiteSpace;this.defaultTextDirection=r.direction=="rtl"?Ht.RTL:Ht.LTR;let o=this.heightOracle.mustRefreshForWrapping(a),s=n.getBoundingClientRect(),l=o||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:O,scaleY:S}=ene(n,s);(O>.005&&Math.abs(this.scaleX-O)>.005||S>.005&&Math.abs(this.scaleY-S)>.005)&&(this.scaleX=O,this.scaleY=S,u|=8,o=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 h=e.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=h&&(this.scrollAnchorHeight=-1,this.scrollTop=h),this.scrolledToBottom=ine(e.scrollDOM);let g=(this.printing?iat:rat)(n,this.paddingTop),v=g.top-this.pixelViewport.top,m=g.bottom-this.pixelViewport.bottom;this.pixelViewport=g;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 O=e.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(O)&&(o=!0),o||i.lineWrapping&&Math.abs(b-this.contentDOMWidth)>i.charWidth){let{lineHeight:S,charWidth:x,textHeight:w}=e.docView.measureTextSize();o=S>0&&i.refresh(a,S,x,w,b/x,O),o&&(e.docView.minWidth=0,u|=8)}v>0&&m>0?c=Math.max(v,m):v<0&&m<0&&(c=Math.min(v,m)),i.heightChanged=!1;for(let S of this.viewports){let x=S.from==this.viewport.from?O:e.docView.measureVisibleLineHeights(S);this.heightMap=(o?Ir.empty().applyChanges(this.stateDeco,Ot.empty,this.heightOracle,[new la(0,0,0,e.state.doc.length)]):this.heightMap).updateHeight(i,0,o,new Kit(S.from,x))}i.heightChanged&&(u|=2)}let _=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.head<this.viewport.from||this.scrollTarget.range.head>this.viewport.to);return _&&(u&2&&(u|=this.updateScaler()),this.viewport=this.getViewport(c,this.scrollTarget),u|=this.updateForViewport()),(u&2||_)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(o?[]: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,a=this.heightOracle,{visibleTop:o,visibleBottom:s}=this,l=new WS(i.lineAt(o-r*1e3,jt.ByHeight,a,0,0).from,i.lineAt(s+(1-r)*1e3,jt.ByHeight,a,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,jt.ByPos,a,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 WS(i.lineAt(d-1e3/2,jt.ByHeight,a,0,0).from,i.lineAt(d+c+1e3/2,jt.ByHeight,a,0,0).to)}}return l}mapViewport(e,n){let r=n.mapPos(e.from,-1),i=n.mapPos(e.to,1);return new WS(this.heightMap.lineAt(r,jt.ByPos,this.heightOracle,0,0).from,this.heightMap.lineAt(i,jt.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,jt.ByPos,this.heightOracle,0,0),{bottom:a}=this.heightMap.lineAt(n,jt.ByPos,this.heightOracle,0,0),{visibleTop:o,visibleBottom:s}=this;return(e==0||i<=o-Math.max(10,Math.min(-r,250)))&&(n==this.state.doc.length||a>=s+Math.max(10,Math.min(r,250)))&&i>o-2*1e3&&a<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 ek(n.mapPos(i.from),n.mapPos(i.to),i.size));return r}ensureLineGaps(e,n){let r=this.heightOracle.lineWrapping,i=r?1e4:2e3,a=i>>1,o=i<<1;if(this.defaultTextDirection!=Ht.LTR&&!r)return[];let s=[],l=(c,f,d,h)=>{if(f-c<a)return;let g=this.state.selection.main,v=[g.from];g.empty||v.push(g.to);for(let y of v)if(y>c&&y<f){l(c,y-10,d,h),l(y+10,f,d,h);return}let m=sat(e,y=>y.from>=d.from&&y.to<=d.to&&Math.abs(y.from-c)<a&&Math.abs(y.to-f)<a&&!v.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(ce.cursor(f),!1,!0).head;y>c&&(f=y)}m=new ek(c,f,this.gapSize(d,c,f,h))}s.push(m)},u=c=>{if(c.length<o||c.type!=Mr.Text)return;let f=oat(c.from,c.to,this.stateDeco);if(f.total<o)return;let d=this.scrollTarget?this.scrollTarget.range.head:null,h,g;if(r){let v=i/this.heightOracle.lineLength*this.heightOracle.lineHeight,m,y;if(d!=null){let b=HS(f,d),_=((this.visibleBottom-this.visibleTop)/2+v)/c.height;m=b-_,y=b+_}else m=(this.visibleTop-c.top-v)/c.height,y=(this.visibleBottom-c.top+v)/c.height;h=QS(f,m),g=QS(f,y)}else{let v=f.total*this.heightOracle.charWidth,m=i*this.heightOracle.charWidth,y,b;if(d!=null){let _=HS(f,d),O=((this.pixelViewport.right-this.pixelViewport.left)/2+m)/v;y=_-O,b=_+O}else y=(this.pixelViewport.left-m)/v,b=(this.pixelViewport.right+m)/v;h=QS(f,y),g=QS(f,b)}h>c.from&&l(c.from,h,c,f),g<c.to&&l(g,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 a=HS(i,r)-HS(i,n);return this.heightOracle.lineWrapping?e.height*a:i.total*this.heightOracle.charWidth*a}updateLineGaps(e){ek.same(e,this.lineGaps)||(this.lineGaps=e,this.lineGapDeco=Ne.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=[];St.spans(e,this.viewport.from,this.viewport.to,{span(i,a){n.push({from:i,to:a})},point(){}},20);let r=n.length!=this.visibleRanges.length||this.visibleRanges.some((i,a)=>i.from!=n[a].from||i.to!=n[a].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)||Wm(this.heightMap.lineAt(e,jt.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)||Wm(this.heightMap.lineAt(this.scaler.fromDOM(e),jt.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 Wm(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 WS{constructor(e,n){this.from=e,this.to=n}}function oat(t,e,n){let r=[],i=t,a=0;return St.spans(n,t,e,{span(){},point(o,s){o>i&&(r.push({from:i,to:o}),a+=o-i),i=s}},20),i<e&&(r.push({from:i,to:e}),a+=e-i),{total:a,ranges:r}}function QS({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:a,to:o}=e[i],s=o-a;if(r<=s)return a+r;r-=s}}function HS(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 sat(t,e){for(let n of t)if(e(n))return n}const bre={toDOM(t){return t},fromDOM(t){return t},scale:1,eq(t){return t==this}};class tk{constructor(e,n,r){let i=0,a=0,o=0;this.viewports=r.map(({from:s,to:l})=>{let u=n.lineAt(s,jt.ByPos,e,0,0).top,c=n.lineAt(l,jt.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=o+(s.top-a)*this.scale,o=s.domBottom=s.domTop+(s.bottom-s.top),a=s.bottom}toDOM(e){for(let n=0,r=0,i=0;;n++){let a=n<this.viewports.length?this.viewports[n]:null;if(!a||e<a.top)return i+(e-r)*this.scale;if(e<=a.bottom)return a.domTop+(e-a.top);r=a.bottom,i=a.domBottom}}fromDOM(e){for(let n=0,r=0,i=0;;n++){let a=n<this.viewports.length?this.viewports[n]:null;if(!a||e<a.domTop)return r+(e-i)/this.scale;if(e<=a.domBottom)return a.top+(e-a.domTop);r=a.bottom,i=a.domBottom}}eq(e){return e instanceof tk?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 Wm(t,e){if(e.scale==1)return t;let n=e.toDOM(t.top),r=e.toDOM(t.bottom);return new Ao(t.from,t.length,n,r-n,Array.isArray(t._content)?t._content.map(i=>Wm(i,e)):t._content)}const jS=Ee.define({combine:t=>t.join(" ")}),nk=Ee.define({combine:t=>t.indexOf(!0)>-1}),rk=Ll.newName(),_re=Ll.newName(),Ore=Ll.newName(),Sre={"&light":"."+_re,"&dark":"."+Ore};function ik(t,e,n){return new Ll(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 lat=ik("."+rk,{"&":{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"}},Sre),Qm="￿";class uat{constructor(e,n){this.points=e,this.text="",this.lineSeparator=n.facet(ht.lineSeparator)}append(e){this.text+=e}lineBreak(){this.text+=Qm}readRange(e,n){if(!e)return this;let r=e.parentNode;for(let i=e;;){this.findPointBefore(r,i);let a=this.text.length;this.readNode(i);let o=i.nextSibling;if(o==n)break;let s=Rt.get(i),l=Rt.get(o);(s&&l?s.breakAfter:(s?s.breakAfter:MS(i))||MS(o)&&(i.nodeName!="BR"||i.cmIgnore)&&this.text.length>a)&&this.lineBreak(),i=o}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 a=-1,o=1,s;if(this.lineSeparator?(a=n.indexOf(this.lineSeparator,r),o=this.lineSeparator.length):(s=i.exec(n))&&(a=s.index,o=s[0].length),this.append(n.slice(r,a<0?n.length:a)),a<0)break;if(this.lineBreak(),o>1)for(let l of this.points)l.node==e&&l.pos>this.text.length&&(l.pos-=o-1);r=a+o}}readNode(e){if(e.cmIgnore)return;let n=Rt.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+(cat(e,r.node,r.offset)?n:0))}}function cat(t,e,n){for(;;){if(!e||n<Ts(e))return!1;if(e==t)return!0;n=Xc(e)+1,e=e.parentNode}}class xre{constructor(e,n){this.node=e,this.offset=n,this.pos=-1}}class fat{constructor(e,n,r,i){this.typeOver=i,this.bounds=null,this.text="",this.domChanged=n>-1;let{impreciseHead:a,impreciseAnchor:o}=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=a||o?[]:pat(e),l=new uat(s,e.state);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=gat(s,this.bounds.from)}else{let s=e.observer.selectionRange,l=a&&a.node==s.focusNode&&a.offset==s.focusOffset||!MR(e.contentDOM,s.focusNode)?e.state.selection.main.head:e.docView.posFromDOM(s.focusNode,s.focusOffset),u=o&&o.node==s.anchorNode&&o.offset==s.anchorOffset||!MR(e.contentDOM,s.anchorNode)?e.state.selection.main.anchor:e.docView.posFromDOM(s.anchorNode,s.anchorOffset),c=e.viewport;if((Ae.ios||Ae.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),h=c.from-f,g=c.to-d;(h==0||h==1||f==0)&&(g==0||g==-1||d==e.state.doc.length)&&(l=0,u=e.state.doc.length)}this.newSel=ce.single(u,l)}}}function wre(t,e){let n,{newSel:r}=e,i=t.state.selection.main,a=t.inputState.lastKeyTime>Date.now()-100?t.inputState.lastKeyCode:-1;if(e.bounds){let{from:o,to:s}=e.bounds,l=i.from,u=null;(a===8||Ae.android&&e.text.length<s-o)&&(l=i.to,u="end");let c=hat(t.state.doc.sliceString(o,s,Qm),e.text,l-o,u);c&&(Ae.chrome&&a==13&&c.toB==c.from+2&&e.text.slice(c.from,c.toB)==Qm+Qm&&c.toB--,n={from:o+c.from,to:o+c.toA,insert:Ot.of(e.text.slice(c.from,c.toB).split(Qm))})}else r&&(!t.hasFocus&&t.state.facet(Wl)||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))}:(Ae.mac||Ae.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=ce.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:Ot.of([" "])}):Ae.chrome&&n&&n.from==n.to&&n.from==i.head&&n.insert.toString()==`
  370. `&&t.lineWrapping&&(r&&(r=ce.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:Ot.of([" "])}),n)return Cre(t,n,r,a);if(r&&!r.main.eq(i)){let o=!1,s="select";return t.inputState.lastSelectionTime>Date.now()-50&&(t.inputState.lastSelectionOrigin=="select"&&(o=!0),s=t.inputState.lastSelectionOrigin),t.dispatch({selection:r,scrollIntoView:o,userEvent:s}),!0}else return!1}function Cre(t,e,n,r=-1){if(Ae.ios&&t.inputState.flushIOSKey(e))return!0;let i=t.state.selection.main;if(Ae.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&&Ih(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)&&Ih(t.contentDOM,"Backspace",8)||e.from==i.from&&e.to==i.to+1&&e.insert.length==0&&Ih(t.contentDOM,"Delete",46)))return!0;let a=e.insert.toString();t.inputState.composing>=0&&t.inputState.composing++;let o,s=()=>o||(o=dat(t,e,n));return t.state.facet(Ene).some(l=>l(t,e.from,e.to,a,s))||t.dispatch(s()),!0}function dat(t,e,n){let r,i=t.state,a=i.selection.main;if(e.from>=a.from&&e.to<=a.to&&e.to-e.from>=(a.to-a.from)/3&&(!n||n.main.empty&&n.main.from==e.from+e.insert.length)&&t.inputState.composing<0){let s=a.from<e.from?i.sliceDoc(a.from,e.from):"",l=a.to>e.to?i.sliceDoc(e.to,a.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<=a.to&&e.to>=a.to-10){let u=t.state.sliceDoc(e.from,e.to),c,f=n&&Hne(t,n.main.head);if(f){let g=e.insert.length-(e.to-e.from);c={from:f.from,to:f.to-g}}else c=t.state.doc.lineAt(a.head);let d=a.to-e.to,h=a.to-a.from;r=i.changeByRange(g=>{if(g.from==a.from&&g.to==a.to)return{changes:s,range:l||g.map(s)};let v=g.to-d,m=v-u.length;if(g.to-g.from!=h||t.state.sliceDoc(m,v)!=u||g.to>=c.from&&g.from<=c.to)return{range:g};let y=i.changes({from:m,to:v,insert:e.insert}),b=g.to-a.to;return{changes:y,range:l?ce.range(Math.max(0,l.anchor+b),Math.max(0,l.head+b)):g.map(y)}})}else r={changes:s,selection:l&&i.selection.replaceRange(l)}}let o="input.type";return(t.composing||t.inputState.compositionPendingChange&&t.inputState.compositionEndedAt>Date.now()-50)&&(t.inputState.compositionPendingChange=!1,o+=".compose",t.inputState.compositionFirstChange&&(o+=".start",t.inputState.compositionFirstChange=!1)),i.update(r,{userEvent:o,scrollIntoView:!0})}function hat(t,e,n,r){let i=Math.min(t.length,e.length),a=0;for(;a<i&&t.charCodeAt(a)==e.charCodeAt(a);)a++;if(a==i&&t.length==e.length)return null;let o=t.length,s=e.length;for(;o>0&&s>0&&t.charCodeAt(o-1)==e.charCodeAt(s-1);)o--,s--;if(r=="end"){let l=Math.max(0,a-Math.min(o,s));n-=o+l-a}if(o<a&&t.length<e.length){let l=n<=a&&n>=o?a-n:0;a-=l,s=a+(s-o),o=a}else if(s<a){let l=n<=a&&n>=s?a-n:0;a-=l,o=a+(o-s),s=a}return{from:a,toA:o,toB:s}}function pat(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:a}=t.observer.selectionRange;return n&&(e.push(new xre(n,r)),(i!=n||a!=r)&&e.push(new xre(i,a))),e}function gat(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?ce.single(n+e,r+e):null}const vat={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},ak=Ae.ie&&Ae.ie_version<=11;class mat{constructor(e){this.view=e,this.active=!1,this.editContext=null,this.selectionRange=new tit,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);(Ae.ie&&Ae.ie_version<=11||Ae.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&&!(Ae.chrome&&Ae.chrome_version<126)&&(this.editContext=new bat(e),e.state.facet(Wl)&&(e.contentDOM.editContext=this.editContext.editContext)),ak&&(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(Wl)?r.root.activeElement!=this.dom:!ES(r.dom,i))return;let a=i.anchorNode&&r.docView.nearest(i.anchorNode);if(a&&a.ignoreEvent(e)){n||(this.selectionChanged=!1);return}(Ae.ie&&Ae.ie_version<=11||Ae.android&&Ae.chrome)&&!r.state.selection.main.empty&&i.focusNode&&km(i.focusNode,i.focusOffset,i.anchorNode,i.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:e}=this,n=Rm(e.root);if(!n)return!1;let r=Ae.safari&&e.root.nodeType==11&&qrt(this.dom.ownerDocument)==this.dom&&yat(this.view,n)||n;if(!r||this.selectionRange.eq(r))return!1;let i=ES(this.dom,r);return i&&!this.selectionChanged&&e.inputState.lastFocusTime>Date.now()-200&&e.inputState.lastTouchTime<Date.now()-300&&rit(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,vat),ak&&this.dom.addEventListener("DOMCharacterDataModified",this.onCharData),this.active=!0)}stop(){this.active&&(this.active=!1,this.observer.disconnect(),ak&&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 a=this.delayedAndroidKey;a&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=a.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&a.force&&Ih(this.dom,a.key,a.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 a of e){let o=this.readMutation(a);o&&(o.typeOver&&(i=!0),n==-1?{from:n,to:r}=o:(n=Math.min(o.from,n),r=Math.max(o.to,r)))}return{from:n,to:r,typeOver:i}}readChange(){let{from:e,to:n,typeOver:r}=this.processRecords(),i=this.selectionChanged&&ES(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 a=new fat(this.view,e,n,r);return this.view.docView.domChanged={newSel:a.newSel?a.newSel.main:null},a}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=wre(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=Tre(n,e.previousSibling||e.target.previousSibling,-1),i=Tre(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(Wl)!=e.state.facet(Wl)&&(e.view.contentDOM.editContext=e.state.facet(Wl)?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 Tre(t,e,n){for(;e;){let r=Rt.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 Pre(t,e){let n=e.startContainer,r=e.startOffset,i=e.endContainer,a=e.endOffset,o=t.docView.domAtPos(t.state.selection.main.anchor);return km(o.node,o.offset,i,a)&&([n,r,i,a]=[i,a,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:a}}function yat(t,e){if(e.getComposedRanges){let i=e.getComposedRanges(t.root)[0];if(i)return Pre(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?Pre(t,n):null}class bat{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,a={from:this.toEditorPos(r.updateRangeStart),to:this.toEditorPos(r.updateRangeEnd),insert:Ot.of(r.text.split(`
  371. `))};a.from==this.from&&i<this.from?a.from=i:a.to==this.to&&i>this.to&&(a.to=i),!(a.from==a.to&&!a.insert.length)&&(this.pendingContextChange=a,Cre(e,a,ce.single(this.toEditorPos(r.selectionStart),this.toEditorPos(r.selectionEnd))),this.pendingContextChange&&this.revertPending(e.state))}),n.addEventListener("characterboundsupdate",r=>{let i=[],a=null;for(let o=this.toEditorPos(r.rangeStart),s=this.toEditorPos(r.rangeEnd);o<s;o++){let l=e.coordsForChar(o);a=l&&new DOMRect(l.left,l.top,l.right-l.left,l.bottom-l.top)||a||new DOMRect,i.push(a)}n.updateCharacterBounds(r.rangeStart,i)}),n.addEventListener("textformatupdate",r=>{let i=[];for(let a of r.getTextFormats()){let o=a.underlineStyle,s=a.underlineThickness;if(o!="None"&&s!="None"){let l=`text-decoration: underline ${o=="Dashed"?"dashed ":o=="Squiggle"?"wavy ":""}${s=="Thin"?1:2}px`;i.push(Ne.mark({attributes:{style:l}}).range(this.toEditorPos(a.rangeStart),this.toEditorPos(a.rangeEnd)))}}e.dispatch({effects:kne.of(Ne.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=Rm(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((a,o,s,l,u)=>{if(r)return;let c=u.length-(o-a);if(i&&o>=i.to)if(i.from==a&&i.to==o&&i.insert.eq(u)){i=this.pendingContextChange=null,n+=c,this.to+=c;return}else i=null,this.revertPending(e.state);if(a+=n,o+=n,o<=this.from)this.from+=c,this.to+=c;else if(a<this.to){if(a<this.from||o>this.to||this.to-this.from+u.length>3e4){r=!0;return}this.editContext.updateText(this.toContextPos(a),this.toContextPos(o),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 Ce{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||nit(e.parent)||document,this.viewState=new yre(e.state||ht.create(e)),e.scrollTo&&e.scrollTo.is(NS)&&(this.viewState.scrollTarget=e.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(Bm).map(r=>new jR(r));for(let r of this.plugins)r.update(this);this.observer=new mat(this),this.inputState=new Rit(this),this.inputState.ensureHandlers(this.plugins),this.docView=new Wne(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...e){let n=e.length==1&&e[0]instanceof vn?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,a=this.state;for(let d of e){if(d.startState!=a)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");a=d.state}if(this.destroyed){this.viewState.state=a;return}let o=this.hasFocus,s=0,l=null;e.some(d=>d.annotation(fre))?(this.inputState.notifiedFocused=o,s=1):o!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=o,l=dre(a,o),l||(s=1));let u=this.observer.delayedAndroidKey,c=null;if(u?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(a.doc)||!this.state.selection.eq(a.selection))&&(c=null)):this.observer.clear(),a.facet(ht.phrases)!=this.state.facet(ht.phrases))return this.setState(a);i=LS.create(this,a,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:h}=d.state.selection;f=new kh(h.empty?h:ce.cursor(h.head,h.head>h.anchor?-1:1))}for(let h of d.effects)h.is(NS)&&(f=h.value.clip(this.state))}this.viewState.update(i,f),this.bidiCache=GS.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),n=this.docView.update(i),this.state.facet(Fm)!=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(jS)!=i.state.facet(jS)&&(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(HR))try{d(i)}catch(h){Ur(this.state,h,"update listener")}(l||c)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),c&&!wre(this,c)&&u.force&&Ih(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 yre(e),this.plugins=e.facet(Bm).map(r=>new jR(r)),this.pluginMap.clear();for(let r of this.plugins)r.update(this);this.docView.destroy(),this.docView=new Wne(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(Bm),r=e.state.facet(Bm);if(n!=r){let i=[];for(let a of r){let o=n.indexOf(a);if(o<0)i.push(new jR(a));else{let s=this.plugins[o];s.mustUpdate=e,i.push(s)}}for(let a of this.plugins)a.mustUpdate!=e&&a.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){Ur(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:a,scrollAnchorHeight:o}=this.viewState;Math.abs(i-this.viewState.scrollTop)>1&&(o=-1),this.viewState.scrollAnchorHeight=-1;try{for(let s=0;;s++){if(o<0)if(ine(r))a=-1,o=this.viewState.heightMap.height;else{let h=this.viewState.scrollAnchorAt(i);a=h.from,o=h.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(h=>{try{return h.read(this)}catch(g){return Ur(this.state,g),$re}}),f=LS.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 h=0;h<u.length;h++)if(c[h]!=$re)try{let g=u[h];g.write&&g.write(c[h],this)}catch(g){Ur(this.state,g)}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,o=-1;continue}else{let g=(a<0?this.viewState.heightMap.height:this.viewState.lineBlockAt(a).top)-o;if(g>1||g<-1){i=i+g,r.scrollTop=i/this.scaleY,o=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(n&&!n.empty)for(let s of this.state.facet(HR))s(n)}get themeClasses(){return rk+" "+(this.state.facet(nk)?Ore:_re)+" "+this.state.facet(jS)}updateAttrs(){let e=Are(this,Nne,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),n={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(Wl)?"true":"false",class:"cm-content",style:`${Ae.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(n["aria-readonly"]="true"),Are(this,GR,n);let r=this.observer.ignore(()=>{let i=VR(this.contentDOM,this.contentAttrs,n),a=VR(this.dom,this.editorAttrs,e);return i||a});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(Ce.announce)){n&&(this.announceDOM.textContent=""),n=!1;let a=this.announceDOM.appendChild(document.createElement("div"));a.textContent=i.value}}mountStyles(){this.styleModules=this.state.facet(Fm);let e=this.state.facet(Ce.cspNonce);Ll.mount(this.root,this.styleModules.concat(lat).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 qR(this,e,Yne(this,e,n,r))}moveByGroup(e,n){return qR(this,e,Yne(this,e,n,r=>Iit(this,e.head,r)))}visualLineSide(e,n){let r=this.bidiSpans(e),i=this.textDirectionAt(e.from),a=r[n?r.length-1:0];return ce.cursor(a.side(n,i)+e.from,a.forward(!n,i)?1:-1)}moveToLineBoundary(e,n,r=!0){return Mit(this,e,n,r)}moveVertically(e,n,r){return qR(this,e,Dit(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(),Une(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),a=this.bidiSpans(i),o=a[Fl.find(a,e-i.from,-1,n)];return IS(r,o.dir==Ht.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(Ine)||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>_at)return wne(e.length);let n=this.textDirectionAt(e.from),r;for(let a of this.bidiCache)if(a.from==e.from&&a.dir==n&&(a.fresh||xne(a.isolates,r=Bne(this,e))))return a.order;r||(r=Bne(this,e));let i=git(e.text,n,r);return this.bidiCache.push(new GS(e.from,e.to,n,r,!0,i)),i}get hasFocus(){var e;return(this.dom.ownerDocument.hasFocus()||Ae.safari&&((e=this.inputState)===null||e===void 0?void 0:e.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{tne(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 NS.of(new kh(typeof e=="number"?ce.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 NS.of(new kh(ce.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 cn.define(()=>({}),{eventHandlers:e})}static domEventObservers(e){return cn.define(()=>({}),{eventObservers:e})}static theme(e,n){let r=Ll.newName(),i=[jS.of(r),Fm.of(ik(`.${r}`,e))];return n&&n.dark&&i.push(nk.of(!0)),i}static baseTheme(e){return kl.lowest(Fm.of(ik("."+rk,e,Sre)))}static findFromDOM(e){var n;let r=e.querySelector(".cm-content"),i=r&&Rt.get(r)||Rt.get(e);return((n=i==null?void 0:i.rootView)===null||n===void 0?void 0:n.view)||null}}Ce.styleModule=Fm,Ce.inputHandler=Ene,Ce.scrollHandler=Rne,Ce.focusChangeEffect=Mne,Ce.perLineTextDirection=Ine,Ce.exceptionSink=Ane,Ce.updateListener=HR,Ce.editable=Wl,Ce.mouseSelectionStyle=$ne,Ce.dragMovesSelection=Pne,Ce.clickAddsSelectionRange=Tne,Ce.decorations=zm,Ce.outerDecorations=Lne,Ce.atomicRanges=ZR,Ce.bidiIsolatedRanges=Vne,Ce.scrollMargins=zne,Ce.darkTheme=nk,Ce.cspNonce=Ee.define({combine:t=>t.length?t[0]:""}),Ce.contentAttributes=GR,Ce.editorAttributes=Nne,Ce.lineWrapping=Ce.contentAttributes.of({class:"cm-lineWrapping"}),Ce.announce=qe.define();const _at=4096,$re={};class GS{constructor(e,n,r,i,a,o){this.from=e,this.to=n,this.dir=r,this.isolates=i,this.fresh=a,this.order=o}static update(e,n){if(n.empty&&!e.some(a=>a.fresh))return e;let r=[],i=e.length?e[e.length-1].dir:Ht.LTR;for(let a=Math.max(0,e.length-10);a<e.length;a++){let o=e[a];o.dir==i&&!n.touchesRange(o.from,o.to)&&r.push(new GS(n.mapPos(o.from,1),n.mapPos(o.to,-1),o.dir,o.isolates,!1,o.order))}return r}}function Are(t,e,n){for(let r=t.state.facet(e),i=r.length-1;i>=0;i--){let a=r[i],o=typeof a=="function"?a(t):a;o&&LR(o,n)}return n}const Oat=Ae.mac?"mac":Ae.windows?"win":Ae.linux?"linux":"key";function Sat(t,e){const n=t.split(/-(?!$)/);let r=n[n.length-1];r=="Space"&&(r=" ");let i,a,o,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))a=!0;else if(/^s(hift)?$/i.test(u))o=!0;else if(/^mod$/i.test(u))e=="mac"?s=!0:a=!0;else throw new Error("Unrecognized modifier name: "+u)}return i&&(r="Alt-"+r),a&&(r="Ctrl-"+r),s&&(r="Meta-"+r),o&&(r="Shift-"+r),r}function ZS(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 xat=kl.default(Ce.domEventHandlers({keydown(t,e){return Ire(Mre(e.state),t,e,"editor")}})),Hm=Ee.define({enables:xat}),Ere=new WeakMap;function Mre(t){let e=t.facet(Hm),n=Ere.get(e);return n||Ere.set(e,n=Tat(e.reduce((r,i)=>r.concat(i),[]))),n}function wat(t,e,n){return Ire(Mre(t.state),e,t,n)}let Ql=null;const Cat=4e3;function Tat(t,e=Oat){let n=Object.create(null),r=Object.create(null),i=(o,s)=>{let l=r[o];if(l==null)r[o]=s;else if(l!=s)throw new Error("Key binding "+o+" is used both as a regular binding and as a multi-stroke prefix")},a=(o,s,l,u,c)=>{var f,d;let h=n[o]||(n[o]=Object.create(null)),g=s.split(/ (?!$)/).map(y=>Sat(y,e));for(let y=1;y<g.length;y++){let b=g.slice(0,y).join(" ");i(b,!0),h[b]||(h[b]={preventDefault:!0,stopPropagation:!1,run:[_=>{let O=Ql={view:_,prefix:b,scope:o};return setTimeout(()=>{Ql==O&&(Ql=null)},Cat),!0}]})}let v=g.join(" ");i(v,!1);let m=h[v]||(h[v]={preventDefault:!1,stopPropagation:!1,run:((d=(f=h._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 o of t){let s=o.scope?o.scope.split(" "):["editor"];if(o.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}=o;for(let d in c)c[d].run.push(h=>f(h,ok))}let l=o[e]||o.key;if(l)for(let u of s)a(u,l,o.run,o.preventDefault,o.stopPropagation),o.shift&&a(u,"Shift-"+l,o.shift,o.preventDefault,o.stopPropagation)}return n}let ok=null;function Ire(t,e,n,r){ok=e;let i=Yrt(e),a=qn(i,0),o=sa(a)==i.length&&i!=" ",s="",l=!1,u=!1,c=!1;Ql&&Ql.view==n&&Ql.scope==r&&(s=Ql.prefix+" ",Jne.indexOf(e.keyCode)<0&&(u=!0,Ql=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},h=t[r],g,v;return h&&(d(h[s+ZS(i,e,!o)])?l=!0:o&&(e.altKey||e.metaKey||e.ctrlKey)&&!(Ae.windows&&e.ctrlKey&&e.altKey)&&(g=Vl[e.keyCode])&&g!=i?(d(h[s+ZS(g,e,!0)])||e.shiftKey&&(v=Dm[e.keyCode])!=i&&v!=g&&d(h[s+ZS(v,e,!1)]))&&(l=!0):o&&e.shiftKey&&d(h[s+ZS(i,e,!0)])&&(l=!0),!l&&d(h._any)&&(l=!0)),u&&(l=!0),l&&c&&e.stopPropagation(),ok=null,l}class jm{constructor(e,n,r,i,a){this.className=e,this.left=n,this.top=r,this.width=i,this.height=a}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 a=Dre(e);return[new jm(n,i.left-a.left,i.top-a.top,null,i.bottom-i.top)]}else return Pat(e,n,r)}}function Dre(t){let e=t.scrollDOM.getBoundingClientRect();return{left:(t.textDirection==Ht.LTR?e.left:e.right-t.scrollDOM.clientWidth*t.scaleX)-t.scrollDOM.scrollLeft*t.scaleX,top:e.top-t.scrollDOM.scrollTop*t.scaleY}}function Rre(t,e,n,r){let i=t.coordsAtPos(e,n*2);if(!i)return r;let a=t.dom.getBoundingClientRect(),o=(i.top+i.bottom)/2,s=t.posAtCoords({x:a.left+1,y:o}),l=t.posAtCoords({x:a.right-1,y:o});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 Pat(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),a=t.textDirection==Ht.LTR,o=t.contentDOM,s=o.getBoundingClientRect(),l=Dre(t),u=o.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),h=YR(t,r),g=YR(t,i),v=h.type==Mr.Text?h:null,m=g.type==Mr.Text?g:null;if(v&&(t.lineWrapping||h.widgetLineBreaks)&&(v=Rre(t,r,1,v)),m&&(t.lineWrapping||g.widgetLineBreaks)&&(m=Rre(t,i,-1,m)),v&&m&&v.from==m.from&&v.to==m.to)return b(_(n.from,n.to,v));{let S=v?_(n.from,null,v):O(h,!1),x=m?_(null,n.to,m):O(g,!0),w=[];return(v||h).to<(m||g).from-(v&&m?1:0)||h.widgetLineBreaks>1&&S.bottom+t.defaultLineHeight/2<x.top?w.push(y(f,S.bottom,d,x.top)):S.bottom<x.top&&t.elementAtHeight((S.bottom+x.top)/2).type==Mr.Text&&(S.bottom=x.top=(S.bottom+x.top)/2),b(S).concat(w).concat(b(x))}function y(S,x,w,T){return new jm(e,S-l.left,x-l.top-.01,w-S,T-x+.01)}function b({top:S,bottom:x,horizontal:w}){let T=[];for(let P=0;P<w.length;P+=2)T.push(y(w[P],S,w[P+1],x));return T}function _(S,x,w){let T=1e9,P=-1e9,C=[];function $(D,M,R,N,V){let L=t.coordsAtPos(D,D==w.to?-2:2),z=t.coordsAtPos(R,R==w.from?2:-2);!L||!z||(T=Math.min(L.top,z.top,T),P=Math.max(L.bottom,z.bottom,P),V==Ht.LTR?C.push(a&&M?f:L.left,a&&N?d:z.right):C.push(!a&&N?f:z.left,!a&&M?d:L.right))}let A=S??w.from,E=x??w.to;for(let D of t.visibleRanges)if(D.to>A&&D.from<E)for(let M=Math.max(D.from,A),R=Math.min(D.to,E);;){let N=t.state.doc.lineAt(M);for(let V of t.bidiSpans(N)){let L=V.from+N.from,z=V.to+N.from;if(L>=R)break;z>M&&$(Math.max(L,M),S==null&&L<=A,Math.min(z,R),x==null&&z>=E,V.dir)}if(M=N.to+1,M>=R)break}return C.length==0&&$(A,S==null,E,x==null,t.textDirection),{top:T,bottom:P,horizontal:C}}function O(S,x){let w=s.top+(x?S.top:S.bottom);return{top:w,bottom:w,horizontal:[]}}}function $at(t,e){return t.constructor==e.constructor&&t.eq(e)}class Aat{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(US)!=e.state.facet(US)&&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(US);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)=>!$at(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 US=Ee.define();function kre(t){return[cn.define(e=>new Aat(e,t)),US.of(t)]}const Nre=!Ae.ios,Gm=Ee.define({combine(t){return To(t,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(e,n)=>Math.min(e,n),drawRangeCursor:(e,n)=>e||n})}});function Eat(t={}){return[Gm.of(t),Mat,Iat,Dat,Dne.of(!0)]}function Lre(t){return t.startState.facet(Gm)!=t.state.facet(Gm)}const Mat=kre({above:!0,markers(t){let{state:e}=t,n=e.facet(Gm),r=[];for(let i of e.selection.ranges){let a=i==e.selection.main;if(i.empty?!a||Nre:n.drawRangeCursor){let o=a?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",s=i.empty?i:ce.cursor(i.head,i.head>i.anchor?-1:1);for(let l of jm.forRange(t,o,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=Lre(t);return n&&Vre(t.state,e),t.docChanged||t.selectionSet||n},mount(t,e){Vre(e.state,t)},class:"cm-cursorLayer"});function Vre(t,e){e.style.animationDuration=t.facet(Gm).cursorBlinkRate+"ms"}const Iat=kre({above:!1,markers(t){return t.state.selection.ranges.map(e=>e.empty?[]:jm.forRange(t,"cm-selectionBackground",e)).reduce((e,n)=>e.concat(n))},update(t,e){return t.docChanged||t.selectionSet||t.viewportChanged||Lre(t)},class:"cm-selectionLayer"}),sk={".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"}},".cm-content":{"& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}};Nre&&(sk[".cm-line"].caretColor=sk[".cm-content"].caretColor="transparent !important");const Dat=kl.highest(Ce.theme(sk)),Bre=qe.define({map(t,e){return t==null?null:e.mapPos(t)}}),Zm=Vn.define({create(){return null},update(t,e){return t!=null&&(t=e.changes.mapPos(t)),e.effects.reduce((n,r)=>r.is(Bre)?r.value:n,t)}}),Rat=cn.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(Zm);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(Zm)!=n||t.docChanged||t.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:t}=this,e=t.state.field(Zm),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(Zm)!=t&&this.view.dispatch({effects:Bre.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 kat(){return[Zm,Rat]}function zre(t,e,n,r,i){e.lastIndex=0;for(let a=t.iterRange(n,r),o=n,s;!a.next().done;o+=a.value.length)if(!a.lineBreak)for(;s=e.exec(a.value);)i(o+s.index,s)}function Nat(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:a}of n)i=Math.max(t.state.doc.lineAt(i).from,i-e),a=Math.min(t.state.doc.lineAt(a).to,a+e),r.length&&r[r.length-1].to>=i?r[r.length-1].to=a:r.push({from:i,to:a});return r}class Lat{constructor(e){const{regexp:n,decoration:r,decorate:i,boundary:a,maxLength:o=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=a,this.maxLength=o}createDeco(e){let n=new Nl,r=n.add.bind(n);for(let{from:i,to:a}of Nat(e,this.maxLength))zre(e.state.doc,this.regexp,i,a,(o,s)=>this.addMatch(s,e,o,r));return n.finish()}updateDeco(e,n){let r=1e9,i=-1;return e.docChanged&&e.changes.iterChanges((a,o,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 a of e.visibleRanges){let o=Math.max(a.from,r),s=Math.min(a.to,i);if(s>o){let l=e.state.doc.lineAt(o),u=l.to<s?e.state.doc.lineAt(s):l,c=Math.max(a.from,l.from),f=Math.min(a.to,u.to);if(this.boundary){for(;o>l.from;o--)if(this.boundary.test(l.text[o-1-l.from])){c=o;break}for(;s<u.to;s++)if(this.boundary.test(u.text[s-u.from])){f=s;break}}let d=[],h,g=(v,m,y)=>d.push(y.range(v,m));if(l==u)for(this.regexp.lastIndex=c-l.from;(h=this.regexp.exec(l.text))&&h.index<f-l.from;)this.addMatch(h,e,h.index+l.from,g);else zre(e.state.doc,this.regexp,c,f,(v,m)=>this.addMatch(m,e,v,g));n=n.update({filterFrom:c,filterTo:f,filter:(v,m)=>v<c||m>f,add:d})}}return n}}const lk=/x/.unicode!=null?"gu":"g",Vat=new RegExp(`[\0-\b
  372. --Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,lk),Bat={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 uk=null;function zat(){var t;if(uk==null&&typeof document<"u"&&document.body){let e=document.body.style;uk=((t=e.tabSize)!==null&&t!==void 0?t:e.MozTabSize)!=null}return uk||!1}const XS=Ee.define({combine(t){let e=To(t,{render:null,specialChars:Vat,addSpecialChars:null});return(e.replaceTabs=!zat())&&(e.specialChars=new RegExp(" |"+e.specialChars.source,lk)),e.addSpecialChars&&(e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,lk)),e}});function Fat(t={}){return[XS.of(t),Wat()]}let Fre=null;function Wat(){return Fre||(Fre=cn.fromClass(class{constructor(t){this.view=t,this.decorations=Ne.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(t.state.facet(XS)),this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new Lat({regexp:t.specialChars,decoration:(e,n,r)=>{let{doc:i}=n.state,a=qn(e[0],0);if(a==9){let o=i.lineAt(r),s=n.state.tabSize,l=Ah(o.text,s,r-o.from);return Ne.replace({widget:new Gat((s-l%s)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[a]||(this.decorationCache[a]=Ne.replace({widget:new jat(t,a)}))},boundary:t.replaceTabs?void 0:/[^]/})}update(t){let e=t.state.facet(XS);t.startState.facet(XS)!=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 Qat="•";function Hat(t){return t>=32?Qat:t==10?"␤":String.fromCharCode(9216+t)}class jat extends Po{constructor(e,n){super(),this.options=e,this.code=n}eq(e){return e.code==this.code}toDOM(e){let n=Hat(this.code),r=e.state.phrase("Control character")+" "+(Bat[this.code]||"0x"+this.code.toString(16)),i=this.options.render&&this.options.render(this.code,r,n);if(i)return i;let a=document.createElement("span");return a.textContent=n,a.title=r,a.setAttribute("aria-label",r),a.className="cm-specialChar",a}ignoreEvent(){return!1}}class Gat extends Po{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 Zat(){return Xat}const Uat=Ne.line({class:"cm-activeLine"}),Xat=cn.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(Uat.range(i.from)),e=i.from)}return Ne.set(n)}},{decorations:t=>t.decorations});class Yat extends Po{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?Eh(e.firstChild):[];if(!n.length)return null;let r=window.getComputedStyle(e.parentNode),i=IS(n[0],r.direction!="rtl"),a=parseInt(r.lineHeight);return i.bottom-i.top>a*1.5?{left:i.left,right:i.right,top:i.top,bottom:i.top+a}:i}ignoreEvent(){return!1}}function qat(t){return cn.fromClass(class{constructor(e){this.view=e,this.placeholder=t?Ne.set([Ne.widget({widget:new Yat(t),side:1}).range(0)]):Ne.none}get decorations(){return this.view.state.doc.length?Ne.none:this.placeholder}},{decorations:e=>e.decorations})}const ck=2e3;function Kat(t,e,n){let r=Math.min(e.line,n.line),i=Math.max(e.line,n.line),a=[];if(e.off>ck||n.off>ck||e.col<0||n.col<0){let o=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&&a.push(ce.range(u.from+o,u.to+s))}}else{let o=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=PR(u.text,o,t.tabSize,!0);if(c<0)a.push(ce.cursor(u.to));else{let f=PR(u.text,s,t.tabSize);a.push(ce.range(u.from+c,u.from+f))}}}return a}function Jat(t,e){let n=t.coordsAtPos(t.viewport.from);return n?Math.round(Math.abs((n.left-e)/t.defaultCharacterWidth)):-1}function Wre(t,e){let n=t.posAtCoords({x:e.clientX,y:e.clientY},!1),r=t.state.doc.lineAt(n),i=n-r.from,a=i>ck?-1:i==r.length?Jat(t,e.clientX):Ah(r.text,t.state.tabSize,n-r.from);return{line:r.number,col:a,off:i}}function eot(t,e){let n=Wre(t,e),r=t.state.selection;return n?{update(i){if(i.docChanged){let a=i.changes.mapPos(i.startState.doc.line(n.line).from),o=i.state.doc.lineAt(a);n={line:o.number,col:n.col,off:Math.min(n.off,o.length)},r=r.map(i.changes)}},get(i,a,o){let s=Wre(t,i);if(!s)return r;let l=Kat(t.state,n,s);return l.length?o?ce.create(l.concat(r.ranges)):ce.create(l):r}}:null}function tot(t){let e=n=>n.altKey&&n.button==0;return Ce.mouseSelectionStyle.of((n,r)=>e(r)?eot(n,r):null)}const not={Alt:[18,t=>!!t.altKey],Control:[17,t=>!!t.ctrlKey],Shift:[16,t=>!!t.shiftKey],Meta:[91,t=>!!t.metaKey]},rot={style:"cursor: crosshair"};function iot(t={}){let[e,n]=not[t.key||"Alt"],r=cn.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,Ce.contentAttributes.of(i=>{var a;return!((a=i.plugin(r))===null||a===void 0)&&a.isDown?rot:null})]}const Um="-10000px";class Qre{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(o=>o);let a=null;this.tooltipViews=this.tooltips.map(o=>a=r(o,a))}update(e,n){var r;let i=e.state.facet(this.facet),a=i.filter(l=>l);if(i===this.input){for(let l of this.tooltipViews)l.update&&l.update(e);return!1}let o=[],s=n?[]:null;for(let l=0;l<a.length;l++){let u=a[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)o[l]=this.createTooltipView(u,l?o[l-1]:null),s&&(s[l]=!!u.above);else{let f=o[l]=this.tooltipViews[c];s&&(s[l]=n[c]),f.update&&f.update(e)}}}for(let l of this.tooltipViews)o.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=a,this.tooltipViews=o,!0}}function aot(t){let{win:e}=t;return{top:0,left:0,bottom:e.innerHeight,right:e.innerWidth}}const fk=Ee.define({combine:t=>{var e,n,r;return{position:Ae.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)||aot}}}),Hre=new WeakMap,dk=cn.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(fk);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 Qre(t,hk,(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(fk);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=Um,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(Ae.gecko)r=i.offsetParent!=this.container.ownerDocument.body;else if(i.style.top==Um&&i.style.left=="0px"){let a=i.getBoundingClientRect();r=Math.abs(a.top+1e4)>1||Math.abs(a.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,a)=>{let o=this.manager.tooltipViews[a];return o.getCoords?o.getCoords(i.pos):this.view.coordsAtPos(i.pos)}),size:this.manager.tooltipViews.map(({dom:i})=>i.getBoundingClientRect()),space:this.view.state.facet(fk).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:a}=t,o=[];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=Um;continue}let h=l.arrow?u.dom.querySelector(".cm-tooltip-arrow"):null,g=h?7:0,v=d.right-d.left,m=(e=Hre.get(u))!==null&&e!==void 0?e:d.bottom-d.top,y=u.offset||sot,b=this.view.textDirection==Ht.LTR,_=d.width>r.right-r.left?b?r.left:r.right-d.width:b?Math.min(f.left-(h?14:0)+y.x,r.right-v):Math.max(r.left,f.left-v+(h?14:0)-y.x),O=this.above[s];!l.strictSide&&(O?f.top-(d.bottom-d.top)-y.y<r.top:f.bottom+(d.bottom-d.top)+y.y>r.bottom)&&O==r.bottom-f.bottom>f.top-r.top&&(O=this.above[s]=!O);let S=(O?f.top-r.top:r.bottom-f.bottom)-g;if(S<m&&u.resize!==!1){if(S<this.view.defaultLineHeight){c.style.top=Um;continue}Hre.set(u,m),c.style.height=(m=S)/a+"px"}else c.style.height&&(c.style.height="");let x=O?f.top-m-g-y.y:f.bottom+g+y.y,w=_+v;if(u.overlap!==!0)for(let T of o)T.left<w&&T.right>_&&T.top<x+m&&T.bottom>x&&(x=O?T.top-m-2-g:T.bottom+g+2);if(this.position=="absolute"?(c.style.top=(x-t.parent.top)/a+"px",c.style.left=(_-t.parent.left)/i+"px"):(c.style.top=x/a+"px",c.style.left=_/i+"px"),h){let T=f.left+(b?y.x:-y.x)-(_+14-7);h.style.left=T/i+"px"}u.overlap!==!0&&o.push({left:_,top:x,right:w,bottom:x+m}),c.classList.toggle("cm-tooltip-above",O),c.classList.toggle("cm-tooltip-below",!O),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=Um}},{eventObservers:{scroll(){this.maybeMeasure()}}}),oot=Ce.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"}}}),sot={x:0,y:0},hk=Ee.define({enables:[dk,oot]}),YS=Ee.define({combine:t=>t.reduce((e,n)=>e.concat(n),[])});class qS{static create(e){return new qS(e)}constructor(e){this.view=e,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new Qre(e,YS,(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 lot=hk.compute([YS],t=>{let e=t.facet(YS);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:qS.create,above:e[0].above,arrow:e.some(n=>n.arrow)}});class uot{constructor(e,n,r,i,a){this.view=e,this.source=n,this.field=r,this.setHover=i,this.hoverTime=a,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,a=1;if(r instanceof Bl)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==Ht.RTL?-1:1;a=n.x<s.left?-u:u}let o=this.source(e,i,a);if(o!=null&&o.then){let s=this.pending={pos:i};o.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=>Ur(e.state,l,"hover tooltip"))}else o&&!(Array.isArray(o)&&!o.length)&&e.dispatch({effects:this.setHover.of(Array.isArray(o)?o:[o])})}get tooltip(){let e=this.view.plugin(dk),n=e?e.manager.tooltips.findIndex(r=>r.create==qS.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:a}=this;if(i.length&&a&&!cot(a.dom,e)||this.pending){let{pos:o}=i[0]||this.pending,s=(r=(n=i[0])===null||n===void 0?void 0:n.end)!==null&&r!==void 0?r:o;(o==s?this.view.posAtCoords(this.lastMove)!=o:!fot(this.view,o,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 KS=4;function cot(t,e){let n=t.getBoundingClientRect();return e.clientX>=n.left-KS&&e.clientX<=n.right+KS&&e.clientY>=n.top-KS&&e.clientY<=n.bottom+KS}function fot(t,e,n,r,i,a){let o=t.scrollDOM.getBoundingClientRect(),s=t.documentTop+t.documentPadding.top+t.contentHeight;if(o.left>r||o.right<r||o.top>i||Math.min(o.bottom,s)<i)return!1;let l=t.posAtCoords({x:r,y:i},!1);return l>=e&&l<=n}function dot(t,e={}){let n=qe.define(),r=Vn.define({create(){return[]},update(i,a){if(i.length&&(e.hideOnChange&&(a.docChanged||a.selection)?i=[]:e.hideOn&&(i=i.filter(o=>!e.hideOn(a,o))),a.docChanged)){let o=[];for(let s of i){let l=a.changes.mapPos(s.pos,-1,Kn.TrackDel);if(l!=null){let u=Object.assign(Object.create(null),s);u.pos=l,u.end!=null&&(u.end=a.changes.mapPos(u.end)),o.push(u)}}i=o}for(let o of a.effects)o.is(n)&&(i=o.value),o.is(hot)&&(i=[]);return i},provide:i=>YS.from(i)});return[r,cn.define(i=>new uot(i,t,r,n,e.hoverTime||300)),lot]}function jre(t,e){let n=t.plugin(dk);if(!n)return null;let r=n.manager.tooltips.indexOf(e);return r<0?null:n.manager.tooltipViews[r]}const hot=qe.define(),Gre=Ee.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 Xm(t,e){let n=t.plugin(Zre),r=n?n.specs.indexOf(e):-1;return r>-1?n.panels[r]:null}const Zre=cn.fromClass(class{constructor(t){this.input=t.state.facet(Ym),this.specs=this.input.filter(n=>n),this.panels=this.specs.map(n=>n(t));let e=t.state.facet(Gre);this.top=new JS(t,!0,e.topContainer),this.bottom=new JS(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(Gre);this.top.container!=e.topContainer&&(this.top.sync([]),this.top=new JS(t.view,!0,e.topContainer)),this.bottom.container!=e.bottomContainer&&(this.bottom.sync([]),this.bottom=new JS(t.view,!1,e.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=t.state.facet(Ym);if(n!=this.input){let r=n.filter(l=>l),i=[],a=[],o=[],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?a:o).push(c)}this.specs=r,this.panels=i,this.top.sync(a),this.bottom.sync(o);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=>Ce.scrollMargins.of(e=>{let n=e.plugin(t);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})});class JS{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=Ure(e);e=e.nextSibling}else this.dom.insertBefore(n.dom,e);for(;e;)e=Ure(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 Ure(t){let e=t.nextSibling;return t.remove(),e}const Ym=Ee.define({enables:Zre});class As extends Uc{compare(e){return this==e||this.constructor==e.constructor&&this.eq(e)}eq(e){return!1}destroy(e){}}As.prototype.elementClass="",As.prototype.toDOM=void 0,As.prototype.mapMode=Kn.TrackBefore,As.prototype.startSide=As.prototype.endSide=-1,As.prototype.point=!0;const ex=Ee.define(),pot={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>St.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},qm=Ee.define();function got(t){return[Yre(),qm.of(Object.assign(Object.assign({},pot),t))]}const Xre=Ee.define({combine:t=>t.some(e=>e)});function Yre(t){return[vot]}const vot=cn.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(qm).map(e=>new Kre(t,e));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!t.state.facet(Xre),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(Xre)!=!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=St.iter(this.view.state.facet(ex),this.view.viewport.from),r=[],i=this.gutters.map(a=>new mot(a,this.view.viewport,-this.view.documentPadding.top));for(let a of this.view.viewportLineBlocks)if(r.length&&(r=[]),Array.isArray(a.type)){let o=!0;for(let s of a.type)if(s.type==Mr.Text&&o){pk(n,r,s.from);for(let l of i)l.line(this.view,s,r);o=!1}else if(s.widget)for(let l of i)l.widget(this.view,s)}else if(a.type==Mr.Text){pk(n,r,a.from);for(let o of i)o.line(this.view,a,r)}else if(a.widget)for(let o of i)o.widget(this.view,a);for(let a of i)a.finish();t&&this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(t){let e=t.startState.facet(qm),n=t.state.facet(qm),r=t.docChanged||t.heightChanged||t.viewportChanged||!St.eq(t.startState.facet(ex),t.state.facet(ex),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 a of n){let o=e.indexOf(a);o<0?i.push(new Kre(this.view,a)):(this.gutters[o].update(t),i.push(this.gutters[o]))}for(let a of this.gutters)a.dom.remove(),i.indexOf(a)<0&&a.destroy();for(let a of i)this.dom.appendChild(a.dom);this.gutters=i}return r}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove()}},{provide:t=>Ce.scrollMargins.of(e=>{let n=e.plugin(t);return!n||n.gutters.length==0||!n.fixed?null:e.textDirection==Ht.LTR?{left:n.dom.offsetWidth*e.scaleX}:{right:n.dom.offsetWidth*e.scaleX}})});function qre(t){return Array.isArray(t)?t:[t]}function pk(t,e,n){for(;t.value&&t.from<=n;)t.from==n&&e.push(t.value),t.next()}class mot{constructor(e,n,r){this.gutter=e,this.height=r,this.i=0,this.cursor=St.iter(e.markers,n.from)}addElement(e,n,r){let{gutter:i}=this,a=(n.top-this.height)/e.scaleY,o=n.height/e.scaleY;if(this.i==i.elements.length){let s=new Jre(e,o,a,r);i.elements.push(s),i.dom.appendChild(s.dom)}else i.elements[this.i].update(e,o,a,r);this.height=n.bottom,this.i++}line(e,n,r){let i=[];pk(this.cursor,i,n.from),r.length&&(i=i.concat(r));let a=this.gutter.config.lineMarker(e,n,i);a&&i.unshift(a);let o=this.gutter;i.length==0&&!o.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 Kre{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 a=i.target,o;if(a!=this.dom&&this.dom.contains(a)){for(;a.parentNode!=this.dom;)a=a.parentNode;let l=a.getBoundingClientRect();o=(l.top+l.bottom)/2}else o=i.clientY;let s=e.lineBlockAtHeight(o-e.documentTop);n.domEventHandlers[r](e,s,i)&&i.preventDefault()});this.markers=qre(n.markers(e)),n.initialSpacer&&(this.spacer=new Jre(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=qre(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!St.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 Jre{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":""),yot(this.markers,i)||this.setMarkers(e,i)}setMarkers(e,n){let r="cm-gutterElement",i=this.dom.firstChild;for(let a=0,o=0;;){let s=o,l=a<n.length?n[a++]:null,u=!1;if(l){let c=l.elementClass;c&&(r+=" "+c);for(let f=o;f<this.markers.length;f++)if(this.markers[f].compare(l)){s=f,u=!0;break}}else s=this.markers.length;for(;o<s;){let c=this.markers[o++];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&&o++}this.dom.className=r,this.markers=n}destroy(){this.setMarkers(null,[])}}function yot(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 bot=Ee.define(),Nh=Ee.define({combine(t){return To(t,{formatNumber:String,domEventHandlers:{}},{domEventHandlers(e,n){let r=Object.assign({},e);for(let i in n){let a=r[i],o=n[i];r[i]=a?(s,l,u)=>a(s,l,u)||o(s,l,u):o}return r}})}});class gk extends As{constructor(e){super(),this.number=e}eq(e){return this.number==e.number}toDOM(){return document.createTextNode(this.number)}}function vk(t,e){return t.state.facet(Nh).formatNumber(e,t.state)}const _ot=qm.compute([Nh],t=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(e){return e.state.facet(bot)},lineMarker(e,n,r){return r.some(i=>i.toDOM)?null:new gk(vk(e,e.state.doc.lineAt(n.from).number))},widgetMarker:()=>null,lineMarkerChange:e=>e.startState.facet(Nh)!=e.state.facet(Nh),initialSpacer(e){return new gk(vk(e,eie(e.state.doc.lines)))},updateSpacer(e,n){let r=vk(n.view,eie(n.view.state.doc.lines));return r==e.number?e:new gk(r)},domEventHandlers:t.facet(Nh).domEventHandlers}));function Oot(t={}){return[Nh.of(t),Yre(),_ot]}function eie(t){let e=9;for(;e<t;)e=e*10+9;return e}const Sot=new class extends As{constructor(){super(...arguments),this.elementClass="cm-activeLineGutter"}},xot=ex.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(Sot.range(i)))}return St.of(e)});function wot(){return xot}const tie=1024;let Cot=0;class mk{constructor(e,n){this.from=e,this.to=n}}class st{constructor(e={}){this.id=Cot++,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=Xr.match(e)),n=>{let r=e(n);return r===void 0?null:[this,r]}}}st.closedBy=new st({deserialize:t=>t.split(" ")}),st.openedBy=new st({deserialize:t=>t.split(" ")}),st.group=new st({deserialize:t=>t.split(" ")}),st.isolate=new st({deserialize:t=>{if(t&&t!="rtl"&&t!="ltr"&&t!="auto")throw new RangeError("Invalid value for isolate: "+t);return t||"auto"}}),st.contextHash=new st({perNode:!0}),st.lookAhead=new st({perNode:!0}),st.mounted=new st({perNode:!0});class tx{constructor(e,n,r){this.tree=e,this.overlay=n,this.parser=r}static get(e){return e&&e.props&&e.props[st.mounted.id]}}const Tot=Object.create(null);class Xr{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):Tot,r=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0),i=new Xr(e.name||"",n,e.id,r);if(e.props){for(let a of e.props)if(Array.isArray(a)||(a=a(i)),a){if(a[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[a[0].id]=a[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(st.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(st.group),a=-1;a<(i?i.length:0);a++){let o=n[a<0?r.name:i[a]];if(o)return o}}}}Xr.none=new Xr("",Object.create(null),0,8);class yk{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 a of e){let o=a(r);o&&(i||(i=Object.assign({},r.props)),i[o[0].id]=o[1])}n.push(i?new Xr(r.name,i,r.id,r.flags):r)}return new yk(n)}}const nx=new WeakMap,nie=new WeakMap;var Mn;(function(t){t[t.ExcludeBuffers=1]="ExcludeBuffers",t[t.IncludeAnonymous=2]="IncludeAnonymous",t[t.IgnoreMounts=4]="IgnoreMounts",t[t.IgnoreOverlays=8]="IgnoreOverlays"})(Mn||(Mn={}));class yn{constructor(e,n,r,i,a){if(this.type=e,this.children=n,this.positions=r,this.length=i,this.props=null,a&&a.length){this.props=Object.create(null);for(let[o,s]of a)this.props[typeof o=="number"?o:o.id]=s}}toString(){let e=tx.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 Ok(this.topNode,e)}cursorAt(e,n=0,r=0){let i=nx.get(this)||this.topNode,a=new Ok(i);return a.moveTo(e,n),nx.set(this,a._tree),a}get topNode(){return new Yr(this,0,0,null)}resolve(e,n=0){let r=Km(nx.get(this)||this.topNode,e,n,!1);return nx.set(this,r),r}resolveInner(e,n=0){let r=Km(nie.get(this)||this.topNode,e,n,!0);return nie.set(this,r),r}resolveStack(e,n=0){return Aot(this,e,n)}iterate(e){let{enter:n,leave:r,from:i=0,to:a=this.length}=e,o=e.mode||0,s=(o&Mn.IncludeAnonymous)>0;for(let l=this.cursor(o|Mn.IncludeAnonymous);;){let u=!1;if(l.from<=a&&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:xk(Xr.none,this.children,this.positions,0,this.children.length,0,this.length,(n,r,i)=>new yn(this.type,n,r,i,this.propValues),e.makeTree||((n,r,i)=>new yn(Xr.none,n,r,i)))}static build(e){return Eot(e)}}yn.empty=new yn(Xr.none,[],[],0);class bk{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 bk(this.buffer,this.index)}}class Hl{constructor(e,n,r){this.buffer=e,this.length=n,this.set=r}get type(){return Xr.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],a=i.name;if(/\W/.test(a)&&!i.isError&&(a=JSON.stringify(a)),e+=4,r==e)return a;let o=[];for(;e<r;)o.push(this.childString(e)),e=this.buffer[e+3];return a+"("+o.join(",")+")"}findChild(e,n,r,i,a){let{buffer:o}=this,s=-1;for(let l=e;l!=n&&!(rie(a,i,o[l+1],o[l+2])&&(s=l,r>0));l=o[l+3]);return s}slice(e,n,r){let i=this.buffer,a=new Uint16Array(n-e),o=0;for(let s=e,l=0;s<n;){a[l++]=i[s++],a[l++]=i[s++]-r;let u=a[l++]=i[s++]-r;a[l++]=i[s++]-e,o=Math.max(o,u)}return new Hl(a,o,this.set)}}function rie(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 Km(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 o=!r&&t instanceof Yr&&t.index<0?null:t.parent;if(!o)return t;t=o}let a=r?0:Mn.IgnoreOverlays;if(r)for(let o=t,s=o.parent;s;o=s,s=o.parent)o instanceof Yr&&o.index<0&&((i=s.enter(e,n,a))===null||i===void 0?void 0:i.from)!=o.from&&(t=s);for(;;){let o=t.enter(e,n,a);if(!o)return t;t=o}}class iie{cursor(e=0){return new Ok(this,e)}getChild(e,n=null,r=null){let i=aie(this,e,n,r);return i.length?i[0]:null}getChildren(e,n=null,r=null){return aie(this,e,n,r)}resolve(e,n=0){return Km(this,e,n,!1)}resolveInner(e,n=0){return Km(this,e,n,!0)}matchContext(e){return _k(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 Yr extends iie{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,a=0){for(let o=this;;){for(let{children:s,positions:l}=o._tree,u=n>0?s.length:-1;e!=u;e+=n){let c=s[e],f=l[e]+o.from;if(rie(i,r,f,f+c.length)){if(c instanceof Hl){if(a&Mn.ExcludeBuffers)continue;let d=c.findChild(0,c.buffer.length,n,r-f,i);if(d>-1)return new Eo(new Pot(o,c,e,f),null,d)}else if(a&Mn.IncludeAnonymous||!c.type.isAnonymous||Sk(c)){let d;if(!(a&Mn.IgnoreMounts)&&(d=tx.get(c))&&!d.overlay)return new Yr(d.tree,f,e,o);let h=new Yr(c,f,e,o);return a&Mn.IncludeAnonymous||!h.type.isAnonymous?h:h.nextChild(n<0?c.children.length-1:0,n,r,i)}}}if(a&Mn.IncludeAnonymous||!o.type.isAnonymous||(o.index>=0?e=o.index+n:e=n<0?-1:o._parent._tree.children.length,o=o._parent,!o))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&Mn.IgnoreOverlays)&&(i=tx.get(this._tree))&&i.overlay){let a=e-this.from;for(let{from:o,to:s}of i.overlay)if((n>0?o<=a:o<a)&&(n<0?s>=a:s>a))return new Yr(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 aie(t,e,n,r){let i=t.cursor(),a=[];if(!i.firstChild())return a;if(n!=null){for(let o=!1;!o;)if(o=i.type.is(n),!i.nextSibling())return a}for(;;){if(r!=null&&i.type.is(r))return a;if(i.type.is(e)&&a.push(i.node),!i.nextSibling())return r==null?a:[]}}function _k(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 Pot{constructor(e,n,r,i){this.parent=e,this.buffer=n,this.index=r,this.start=i}}class Eo extends iie{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,a=i.findChild(this.index+4,i.buffer[this.index+3],e,n-this.context.start,r);return a<0?null:new Eo(this.context,this,a)}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&Mn.ExcludeBuffers)return null;let{buffer:i}=this.context,a=i.findChild(this.index+4,i.buffer[this.index+3],n>0?1:-1,e-this.context.start,n);return a<0?null:new Eo(this.context,this,a)}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 Eo(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 Eo(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,a=r.buffer[this.index+3];if(a>i){let o=r.buffer[this.index+1];e.push(r.slice(i,a,o)),n.push(0)}return new yn(this.type,e,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function oie(t){if(!t.length)return null;let e=0,n=t[0];for(let a=1;a<t.length;a++){let o=t[a];(o.from>n.from||o.to<n.to)&&(n=o,e=a)}let r=n instanceof Yr&&n.index<0?null:n.parent,i=t.slice();return r?i[e]=r:i.splice(e,1),new $ot(i,n)}class $ot{constructor(e,n){this.heads=e,this.node=n}get next(){return oie(this.heads)}}function Aot(t,e,n){let r=t.resolveInner(e,n),i=null;for(let a=r instanceof Yr?r:r.context.parent;a;a=a.parent)if(a.index<0){let o=a.parent;(i||(i=[r])).push(o.resolve(e,n)),a=o}else{let o=tx.get(a.tree);if(o&&o.overlay&&o.overlay[0].from<=e&&o.overlay[o.overlay.length-1].to>=e){let s=new Yr(o.tree,o.overlay[0].from+a.from,-1,a);(i||(i=[r])).push(Km(s,e,n,!1))}}return i?oie(i):r}class Ok{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 Yr)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 Yr?(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,a=i.findChild(this.index+4,i.buffer[this.index+3],e,n-this.buffer.start,r);return a<0?!1:(this.stack.push(this.index),this.yieldBuf(a))}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&Mn.ExcludeBuffers?!1:this.enterChild(1,e,n):this.yield(this._tree.enter(e,n,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&Mn.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&Mn.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 a=0;a<this.index;a++)if(i.buffer.buffer[a+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 a=n+e,o=e<0?-1:r._tree.children.length;a!=o;a+=e){let s=r._tree.children[a];if(this.mode&Mn.IncludeAnonymous||s instanceof Hl||!s.type.isAnonymous||Sk(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,a=this.stack.length;a>=0;){for(let o=e;o;o=o._parent)if(o.index==i){if(i==this.index)return o;n=o,r=a+1;break e}i=this.stack[--a]}for(let i=r;i<this.stack.length;i++)n=new Eo(this.buffer,n,this.stack[i]);return this.bufferNode=new Eo(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 _k(this.node,e);let{buffer:n}=this.buffer,{types:r}=n.set;for(let i=e.length-1,a=this.stack.length-1;i>=0;a--){if(a<0)return _k(this.node,e,i);let o=r[n.buffer[this.stack[a]]];if(!o.isAnonymous){if(e[i]&&e[i]!=o.name)return!1;i--}}return!0}}function Sk(t){return t.children.some(e=>e instanceof Hl||!e.type.isAnonymous||Sk(e))}function Eot(t){var e;let{buffer:n,nodeSet:r,maxBufferLength:i=tie,reused:a=[],minRepeatType:o=r.types.length}=t,s=Array.isArray(n)?new bk(n,n.length):n,l=r.types,u=0,c=0;function f(S,x,w,T,P,C){let{id:$,start:A,end:E,size:D}=s,M=c;for(;D<0;)if(s.next(),D==-1){let z=a[$];w.push(z),T.push(A-S);return}else if(D==-3){u=$;return}else if(D==-4){c=$;return}else throw new RangeError(`Unrecognized record size: ${D}`);let R=l[$],N,V,L=A-S;if(E-A<=i&&(V=m(s.pos-x,P))){let z=new Uint16Array(V.size-V.skip),B=s.pos-V.size,F=z.length;for(;s.pos>B;)F=y(V.start,z,F);N=new Hl(z,E-V.start,r),L=V.start-S}else{let z=s.pos-D;s.next();let B=[],F=[],j=$>=o?$:-1,K=0,q=E;for(;s.pos>z;)j>=0&&s.id==j&&s.size>=0?(s.end<=q-i&&(g(B,F,A,K,s.end,q,j,M),K=B.length,q=s.end),s.next()):C>2500?d(A,z,B,F):f(A,z,B,F,j,C+1);if(j>=0&&K>0&&K<B.length&&g(B,F,A,K,A,q,j,M),B.reverse(),F.reverse(),j>-1&&K>0){let te=h(R);N=xk(R,B,F,0,B.length,0,E-A,te,te)}else N=v(R,B,F,E-A,M-E)}w.push(N),T.push(L)}function d(S,x,w,T){let P=[],C=0,$=-1;for(;s.pos>x;){let{id:A,start:E,end:D,size:M}=s;if(M>4)s.next();else{if($>-1&&E<$)break;$<0&&($=D-i),P.push(A,E,D),C++,s.next()}}if(C){let A=new Uint16Array(C*4),E=P[P.length-2];for(let D=P.length-3,M=0;D>=0;D-=3)A[M++]=P[D],A[M++]=P[D+1]-E,A[M++]=P[D+2]-E,A[M++]=M;w.push(new Hl(A,P[2]-E,r)),T.push(E-S)}}function h(S){return(x,w,T)=>{let P=0,C=x.length-1,$,A;if(C>=0&&($=x[C])instanceof yn){if(!C&&$.type==S&&$.length==T)return $;(A=$.prop(st.lookAhead))&&(P=w[C]+$.length+A)}return v(S,x,w,T,P)}}function g(S,x,w,T,P,C,$,A){let E=[],D=[];for(;S.length>T;)E.push(S.pop()),D.push(x.pop()+w-P);S.push(v(r.types[$],E,D,C-P,A-C)),x.push(P-w)}function v(S,x,w,T,P=0,C){if(u){let $=[st.contextHash,u];C=C?[$].concat(C):[$]}if(P>25){let $=[st.lookAhead,P];C=C?[$].concat(C):[$]}return new yn(S,x,w,T,C)}function m(S,x){let w=s.fork(),T=0,P=0,C=0,$=w.end-i,A={size:0,start:0,skip:0};e:for(let E=w.pos-S;w.pos>E;){let D=w.size;if(w.id==x&&D>=0){A.size=T,A.start=P,A.skip=C,C+=4,T+=4,w.next();continue}let M=w.pos-D;if(D<0||M<E||w.start<$)break;let R=w.id>=o?4:0,N=w.start;for(w.next();w.pos>M;){if(w.size<0)if(w.size==-3)R+=4;else break e;else w.id>=o&&(R+=4);w.next()}P=N,T+=D,C+=R}return(x<0||T==S)&&(A.size=T,A.start=P,A.skip=C),A.size>4?A:void 0}function y(S,x,w){let{id:T,start:P,end:C,size:$}=s;if(s.next(),$>=0&&T<o){let A=w;if($>4){let E=s.pos-($-4);for(;s.pos>E;)w=y(S,x,w)}x[--w]=A,x[--w]=C-S,x[--w]=P-S,x[--w]=T}else $==-3?u=T:$==-4&&(c=T);return w}let b=[],_=[];for(;s.pos>0;)f(t.start||0,t.bufferStart||0,b,_,-1,0);let O=(e=t.length)!==null&&e!==void 0?e:b.length?_[0]+b[0].length:0;return new yn(l[t.topID],b.reverse(),_.reverse(),O)}const sie=new WeakMap;function rx(t,e){if(!t.isAnonymous||e instanceof Hl||e.type!=t)return 1;let n=sie.get(e);if(n==null){n=1;for(let r of e.children){if(r.type!=t||!(r instanceof yn)){n=1;break}n+=rx(t,r)}sie.set(e,n)}return n}function xk(t,e,n,r,i,a,o,s,l){let u=0;for(let g=r;g<i;g++)u+=rx(t,e[g]);let c=Math.ceil(u*1.5/8),f=[],d=[];function h(g,v,m,y,b){for(let _=m;_<y;){let O=_,S=v[_],x=rx(t,g[_]);for(_++;_<y;_++){let w=rx(t,g[_]);if(x+w>=c)break;x+=w}if(_==O+1){if(x>c){let w=g[O];h(w.children,w.positions,0,w.children.length,v[O]+b);continue}f.push(g[O])}else{let w=v[_-1]+g[_-1].length-S;f.push(xk(t,g,v,O,_,S,w,null,l))}d.push(S+b-a)}}return h(e,n,r,i,0),(s||l)(f,d,o)}class Mot{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 Eo?this.setBuffer(e.context.buffer,e.index,n):e instanceof Yr&&this.map.set(e.tree,n)}get(e){return e instanceof Eo?this.getBuffer(e.context.buffer,e.index):e instanceof Yr?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 Kc{constructor(e,n,r,i,a=!1,o=!1){this.from=e,this.to=n,this.tree=r,this.offset=i,this.open=(a?1:0)|(o?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 Kc(0,e.length,e,0,!1,r)];for(let a of n)a.to>e.length&&i.push(a);return i}static applyChanges(e,n,r=128){if(!n.length)return e;let i=[],a=1,o=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(;o&&o.from<f;){let d=o;if(l>=d.from||f<=d.to||u){let h=Math.max(d.from,l)-u,g=Math.min(d.to,f)-u;d=h>=g?null:new Kc(h,g,d.tree,d.offset+u,s>0,!!c)}if(d&&i.push(d),o.to>f)break;o=a<e.length?e[a++]:null}if(!c)break;l=c.toA,u=c.toA-c.toB}return i}}class lie{startParse(e,n,r){return typeof e=="string"&&(e=new Iot(e)),r=r?r.length?r.map(i=>new mk(i.from,i.to)):[new mk(0,0)]:[new mk(0,e.length)],this.createParse(e,n||[],r)}parse(e,n,r){let i=this.startParse(e,n,r);for(;;){let a=i.advance();if(a)return a}}}class Iot{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 st({perNode:!0});let Dot=0;class Mo{constructor(e,n,r){this.set=e,this.base=n,this.modified=r,this.id=Dot++}static define(e){if(e!=null&&e.base)throw new Error("Can not derive from a modified tag");let n=new Mo([],null,[]);if(n.set.push(n),e)for(let r of e.set)n.set.push(r);return n}static defineModifier(){let e=new ix;return n=>n.modified.indexOf(e)>-1?n:ix.get(n.base||n,n.modified.concat(e).sort((r,i)=>r.id-i.id))}}let Rot=0;class ix{constructor(){this.instances=[],this.id=Rot++}static get(e,n){if(!n.length)return e;let r=n[0].instances.find(s=>s.base==e&&kot(n,s.modified));if(r)return r;let i=[],a=new Mo(i,e,n);for(let s of n)s.instances.push(a);let o=Not(n);for(let s of e.set)if(!s.modified.length)for(let l of o)i.push(ix.get(s,l));return a}}function kot(t,e){return t.length==e.length&&t.every((n,r)=>n==e[r])}function Not(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 wk(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 a=[],o=2,s=i;for(let f=0;;){if(s=="..."&&f>0&&f+3==i.length){o=1;break}let d=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(s);if(!d)throw new RangeError("Invalid path: "+i);if(a.push(d[0]=="*"?"":d[0][0]=='"'?JSON.parse(d[0]):d[0]),f+=d[0].length,f==i.length)break;let h=i[f++];if(f==i.length&&h=="!"){o=0;break}if(h!="/")throw new RangeError("Invalid path: "+i);s=i.slice(f)}let l=a.length-1,u=a[l];if(!u)throw new RangeError("Invalid path: "+i);let c=new ax(r,o,l>0?a.slice(0,l):null);e[u]=c.sort(e[u])}}return uie.add(e)}const uie=new st;class ax{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}}ax.empty=new ax([],2,null);function cie(t,e){let n=Object.create(null);for(let a of t)if(!Array.isArray(a.tag))n[a.tag.id]=a.class;else for(let o of a.tag)n[o.id]=a.class;let{scope:r,all:i=null}=e||{};return{style:a=>{let o=i;for(let s of a)for(let l of s.set){let u=n[l.id];if(u){o=o?o+" "+u:u;break}}return o},scope:r}}function Lot(t,e){let n=null;for(let r of t){let i=r.style(e);i&&(n=n?n+" "+i:i)}return n}function Vot(t,e,n,r=0,i=t.length){let a=new Bot(r,Array.isArray(e)?e:[e],n);a.highlightRange(t.cursor(),r,i,"",a.highlighters),a.flush(i)}class Bot{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,a){let{type:o,from:s,to:l}=e;if(s>=r||l<=n)return;o.isTop&&(a=this.highlighters.filter(h=>!h.scope||h.scope(o)));let u=i,c=zot(e)||ax.empty,f=Lot(a,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(st.mounted);if(d&&d.overlay){let h=e.node.enter(d.overlay[0].from+s,1),g=this.highlighters.filter(m=>!m.scope||m.scope(d.tree.type)),v=e.firstChild();for(let m=0,y=s;;m++){let b=m<d.overlay.length?d.overlay[m]:null,_=b?b.from+s:l,O=Math.max(n,y),S=Math.min(r,_);if(O<S&&v)for(;e.from<S&&(this.highlightRange(e,O,S,i,a),this.startSpan(Math.min(S,e.to),u),!(e.to>=_||!e.nextSibling())););if(!b||_>r)break;y=b.to+s,y>n&&(this.highlightRange(h.cursor(),Math.max(n,b.from+s),Math.min(r,y),"",g),this.startSpan(Math.min(r,y),u))}v&&e.parent()}else if(e.firstChild()){d&&(i="");do if(!(e.to<=n)){if(e.from>=r)break;this.highlightRange(e,n,r,i,a),this.startSpan(Math.min(r,e.to),u)}while(e.nextSibling());e.parent()}}}function zot(t){let e=t.type.prop(uie);for(;e&&e.context&&!t.matchContext(e.context);)e=e.next;return e||null}const Oe=Mo.define,ox=Oe(),jl=Oe(),fie=Oe(jl),die=Oe(jl),Gl=Oe(),sx=Oe(Gl),Ck=Oe(Gl),Io=Oe(),Jc=Oe(Io),Do=Oe(),Ro=Oe(),Tk=Oe(),Jm=Oe(Tk),lx=Oe(),Y={comment:ox,lineComment:Oe(ox),blockComment:Oe(ox),docComment:Oe(ox),name:jl,variableName:Oe(jl),typeName:fie,tagName:Oe(fie),propertyName:die,attributeName:Oe(die),className:Oe(jl),labelName:Oe(jl),namespace:Oe(jl),macroName:Oe(jl),literal:Gl,string:sx,docString:Oe(sx),character:Oe(sx),attributeValue:Oe(sx),number:Ck,integer:Oe(Ck),float:Oe(Ck),bool:Oe(Gl),regexp:Oe(Gl),escape:Oe(Gl),color:Oe(Gl),url:Oe(Gl),keyword:Do,self:Oe(Do),null:Oe(Do),atom:Oe(Do),unit:Oe(Do),modifier:Oe(Do),operatorKeyword:Oe(Do),controlKeyword:Oe(Do),definitionKeyword:Oe(Do),moduleKeyword:Oe(Do),operator:Ro,derefOperator:Oe(Ro),arithmeticOperator:Oe(Ro),logicOperator:Oe(Ro),bitwiseOperator:Oe(Ro),compareOperator:Oe(Ro),updateOperator:Oe(Ro),definitionOperator:Oe(Ro),typeOperator:Oe(Ro),controlOperator:Oe(Ro),punctuation:Tk,separator:Oe(Tk),bracket:Jm,angleBracket:Oe(Jm),squareBracket:Oe(Jm),paren:Oe(Jm),brace:Oe(Jm),content:Io,heading:Jc,heading1:Oe(Jc),heading2:Oe(Jc),heading3:Oe(Jc),heading4:Oe(Jc),heading5:Oe(Jc),heading6:Oe(Jc),contentSeparator:Oe(Io),list:Oe(Io),quote:Oe(Io),emphasis:Oe(Io),strong:Oe(Io),link:Oe(Io),monospace:Oe(Io),strikethrough:Oe(Io),inserted:Oe(),deleted:Oe(),changed:Oe(),invalid:Oe(),meta:lx,documentMeta:Oe(lx),annotation:Oe(lx),processingInstruction:Oe(lx),definition:Mo.defineModifier(),constant:Mo.defineModifier(),function:Mo.defineModifier(),standard:Mo.defineModifier(),local:Mo.defineModifier(),special:Mo.defineModifier()};cie([{tag:Y.link,class:"tok-link"},{tag:Y.heading,class:"tok-heading"},{tag:Y.emphasis,class:"tok-emphasis"},{tag:Y.strong,class:"tok-strong"},{tag:Y.keyword,class:"tok-keyword"},{tag:Y.atom,class:"tok-atom"},{tag:Y.bool,class:"tok-bool"},{tag:Y.url,class:"tok-url"},{tag:Y.labelName,class:"tok-labelName"},{tag:Y.inserted,class:"tok-inserted"},{tag:Y.deleted,class:"tok-deleted"},{tag:Y.literal,class:"tok-literal"},{tag:Y.string,class:"tok-string"},{tag:Y.number,class:"tok-number"},{tag:[Y.regexp,Y.escape,Y.special(Y.string)],class:"tok-string2"},{tag:Y.variableName,class:"tok-variableName"},{tag:Y.local(Y.variableName),class:"tok-variableName tok-local"},{tag:Y.definition(Y.variableName),class:"tok-variableName tok-definition"},{tag:Y.special(Y.variableName),class:"tok-variableName2"},{tag:Y.definition(Y.propertyName),class:"tok-propertyName tok-definition"},{tag:Y.typeName,class:"tok-typeName"},{tag:Y.namespace,class:"tok-namespace"},{tag:Y.className,class:"tok-className"},{tag:Y.macroName,class:"tok-macroName"},{tag:Y.propertyName,class:"tok-propertyName"},{tag:Y.operator,class:"tok-operator"},{tag:Y.comment,class:"tok-comment"},{tag:Y.meta,class:"tok-meta"},{tag:Y.invalid,class:"tok-invalid"},{tag:Y.punctuation,class:"tok-punctuation"}]);var Pk;const Lh=new st;function hie(t){return Ee.define({combine:t?e=>e.concat(t):void 0})}const $k=new st;class za{constructor(e,n,r=[],i=""){this.data=e,this.name=i,ht.prototype.hasOwnProperty("tree")||Object.defineProperty(ht.prototype,"tree",{get(){return In(this)}}),this.parser=n,this.extension=[Zl.of(this),ht.languageData.of((a,o,s)=>{let l=pie(a,o,s),u=l.type.prop(Lh);if(!u)return[];let c=a.facet(u),f=l.type.prop($k);if(f){let d=l.resolve(o-l.from,s);for(let h of f)if(h.test(d,a)){let g=a.facet(h.facet);return h.type=="replace"?g:g.concat(c)}}return c})].concat(r)}isActiveAt(e,n,r=-1){return pie(e,n,r).type.prop(Lh)==this.data}findRegions(e){let n=e.facet(Zl);if((n==null?void 0:n.data)==this.data)return[{from:0,to:e.doc.length}];if(!n||!n.allowsNesting)return[];let r=[],i=(a,o)=>{if(a.prop(Lh)==this.data){r.push({from:o,to:o+a.length});return}let s=a.prop(st.mounted);if(s){if(s.tree.prop(Lh)==this.data){if(s.overlay)for(let l of s.overlay)r.push({from:l.from+o,to:l.to+o});else r.push({from:o,to:o+a.length});return}else if(s.overlay){let l=r.length;if(i(s.tree,s.overlay[0].from+o),r.length>l)return}}for(let l=0;l<a.children.length;l++){let u=a.children[l];u instanceof yn&&i(u,a.positions[l]+o)}};return i(In(e),0),r}get allowsNesting(){return!0}}za.setState=qe.define();function pie(t,e,n){let r=t.facet(Zl),i=In(t).topNode;if(!r||r.allowsNesting)for(let a=i;a;a=a.enter(e,n,Mn.ExcludeBuffers))a.type.isTop&&(i=a);return i}class e0 extends za{constructor(e,n,r){super(e,n,[],r),this.parser=n}static define(e){let n=hie(e.languageData);return new e0(n,e.parser.configure({props:[Lh.add(r=>r.isTop?n:void 0)]}),e.name)}configure(e,n){return new e0(this.data,this.parser.configure(e),n||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function In(t){let e=t.field(za.state,!1);return e?e.tree:yn.empty}class Fot{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 t0=null;class ux{constructor(e,n,r=[],i,a,o,s,l){this.parser=e,this.state=n,this.fragments=r,this.tree=i,this.treeLen=a,this.viewport=o,this.skipped=s,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(e,n,r){return new ux(e,n,[],yn.empty,0,r,[],null)}startParse(){return this.parser.startParse(new Fot(this.state.doc),this.fragments)}work(e,n){return n!=null&&n>=this.state.doc.length&&(n=void 0),this.tree!=yn.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(Kc.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(Kc.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(e){let n=t0;t0=this;try{return e()}finally{t0=n}}withoutTempSkipped(e){for(let n;n=this.tempSkipped.pop();)e=gie(e,n.from,n.to);return e}changes(e,n){let{fragments:r,tree:i,treeLen:a,viewport:o,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=Kc.applyChanges(r,l),i=yn.empty,a=0,o={from:e.mapPos(o.from,-1),to:e.mapPos(o.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 ux(this.parser,n,r,i,a,o,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:a}=this.skipped[r];i<e.to&&a>e.from&&(this.fragments=gie(this.fragments,i,a),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 lie{createParse(n,r,i){let a=i[0].from,o=i[i.length-1].to;return{parsedPos:a,advance(){let l=t0;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=o,new yn(Xr.none,[],[],o-a)},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 t0}}function gie(t,e,n){return Kc.applyChanges(t,[{fromA:e,toA:n,fromB:e,toB:n}])}class Vh{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 Vh(n)}static init(e){let n=Math.min(3e3,e.doc.length),r=ux.create(e.facet(Zl).parser,e,{from:0,to:n});return r.work(20,n)||r.takeTree(),new Vh(r)}}za.state=Vn.define({create:Vh.init,update(t,e){for(let n of e.effects)if(n.is(za.setState))return n.value;return e.startState.facet(Zl)!=e.state.facet(Zl)?Vh.init(e.state):t.apply(e)}});let vie=t=>{let e=setTimeout(()=>t(),500);return()=>clearTimeout(e)};typeof requestIdleCallback<"u"&&(vie=t=>{let e=-1,n=setTimeout(()=>{e=requestIdleCallback(t,{timeout:400})},100);return()=>e<0?clearTimeout(n):cancelIdleCallback(e)});const Ak=typeof navigator<"u"&&(!((Pk=navigator.scheduling)===null||Pk===void 0)&&Pk.isInputPending)?()=>navigator.scheduling.isInputPending():null,Wot=cn.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(za.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(za.state);(n.tree!=n.context.tree||!n.context.isDone(e.doc.length))&&(this.working=vie(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,a=r.field(za.state);if(a.tree==a.context.tree&&a.context.isDone(i+1e5))return;let o=Date.now()+Math.min(this.chunkBudget,100,e&&!Ak?Math.max(25,e.timeRemaining()-5):1e9),s=a.context.treeLen<i&&r.doc.length>i+1e3,l=a.context.work(()=>Ak&&Ak()||Date.now()>o,i+(s?0:1e5));this.chunkBudget-=Date.now()-n,(l||this.chunkBudget<=0)&&(a.context.takeTree(),this.view.dispatch({effects:za.setState.of(new Vh(a.context))})),this.chunkBudget>0&&!(l&&!s)&&this.scheduleWork(),this.checkAsyncSchedule(a.context)}checkAsyncSchedule(e){e.scheduleOn&&(this.workScheduled++,e.scheduleOn.then(()=>this.scheduleWork()).catch(n=>Ur(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()}}}),Zl=Ee.define({combine(t){return t.length?t[0]:null},enables:t=>[za.state,Wot,Ce.contentAttributes.compute([t],e=>{let n=e.facet(t);return n&&n.name?{"data-language":n.name}:{}})]});class mie{constructor(e,n=[]){this.language=e,this.support=n,this.extension=[e,n]}}const Qot=Ee.define(),n0=Ee.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 cx(t){let e=t.facet(n0);return e.charCodeAt(0)==9?t.tabSize*e.length:e.length}function r0(t,e){let n="",r=t.tabSize,i=t.facet(n0)[0];if(i==" "){for(;e>=r;)n+=" ",e-=r;i=" "}for(let a=0;a<e;a++)n+=i;return n}function Ek(t,e){t instanceof ht&&(t=new fx(t));for(let r of t.state.facet(Qot)){let i=r(t,e);if(i!==void 0)return i}let n=In(t.state);return n.length>=e?Hot(t,n,e):null}class fx{constructor(e,n={}){this.state=e,this.options=n,this.unit=cx(e)}lineAt(e,n=1){let r=this.state.doc.lineAt(e),{simulateBreak:i,simulateDoubleBreak:a}=this.options;return i!=null&&i>=r.from&&i<=r.to?a&&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),a=this.countColumn(r,e-i),o=this.options.overrideIndentation?this.options.overrideIndentation(i):-1;return o>-1&&(a+=o-this.countColumn(r,r.search(/\S|$/))),a}countColumn(e,n=e.length){return Ah(e,this.state.tabSize,n)}lineIndent(e,n=1){let{text:r,from:i}=this.lineAt(e,n),a=this.options.overrideIndentation;if(a){let o=a(i);if(o>-1)return o}return this.countColumn(r,r.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const Mk=new st;function Hot(t,e,n){let r=e.resolveStack(n),i=r.node.enterUnfinishedNodesBefore(n);if(i!=r.node){let a=[];for(let o=i;o!=r.node;o=o.parent)a.push(o);for(let o=a.length-1;o>=0;o--)r={node:a[o],next:r}}return yie(r,t,n)}function yie(t,e,n){for(let r=t;r;r=r.next){let i=Got(r.node);if(i)return i(Ik.create(e,n,r))}return 0}function jot(t){return t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak}function Got(t){let e=t.type.prop(Mk);if(e)return e;let n=t.firstChild,r;if(n&&(r=n.type.prop(st.closedBy))){let i=t.lastChild,a=i&&r.indexOf(i.name)>-1;return o=>bie(o,!0,1,void 0,a&&!jot(o)?i.from:void 0)}return t.parent==null?Zot:null}function Zot(){return 0}class Ik extends fx{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 Ik(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(Uot(r,e))break;n=this.state.doc.lineAt(r.from)}return this.lineIndent(n.from)}continue(){return yie(this.context.next,this.base,this.pos)}}function Uot(t,e){for(let n=e;n;n=n.parent)if(t==n)return!0;return!1}function Xot(t){let e=t.node,n=e.childAfter(e.from),r=e.lastChild;if(!n)return null;let i=t.options.simulateBreak,a=t.state.doc.lineAt(n.from),o=i==null||i<=a.from?a.to:Math.min(a.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<o?n:null;s=l.to}}function Yot({closing:t,align:e=!0,units:n=1}){return r=>bie(r,e,n,t)}function bie(t,e,n,r,i){let a=t.textAfter,o=a.match(/^\s*/)[0].length,s=r&&a.slice(o,o+r.length)==r||i==t.pos+o,l=e?Xot(t):null;return l?s?t.column(l.from):t.column(l.to):t.baseIndent+(s?0:t.unit*n)}const qot=t=>t.baseIndent;function i0({except:t,units:e=1}={}){return n=>{let r=t&&t.test(n.textAfter);return n.baseIndent+(r?0:e*n.unit)}}const Kot=200;function Jot(){return ht.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+Kot)return t;let a=n.sliceString(i.from,r);if(!e.some(u=>u.test(a)))return t;let{state:o}=t,s=-1,l=[];for(let{head:u}of o.selection.ranges){let c=o.doc.lineAt(u);if(c.from==s)continue;s=c.from;let f=Ek(o,c.from);if(f==null)continue;let d=/^\s*/.exec(c.text)[0],h=r0(o,f);d!=h&&l.push({from:c.from,to:c.from+d.length,insert:h})}return l.length?[t,{changes:l,sequential:!0}]:t})}const est=Ee.define(),Dk=new st;function _ie(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 tst(t,e,n){let r=In(t);if(r.length<n)return null;let i=r.resolveStack(n,1),a=null;for(let o=i;o;o=o.next){let s=o.node;if(s.to<=n||s.from>n)continue;if(a&&s.from<e)break;let l=s.type.prop(Dk);if(l&&(s.to<r.length-50||r.length==t.doc.length||!nst(s))){let u=l(s,t);u&&u.from<=n&&u.from>=e&&u.to>n&&(a=u)}}return a}function nst(t){let e=t.lastChild;return e&&e.to==t.to&&e.type.isError}function dx(t,e,n){for(let r of t.facet(est)){let i=r(t,e,n);if(i)return i}return tst(t,e,n)}function Oie(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 hx=qe.define({map:Oie}),a0=qe.define({map:Oie});function Sie(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 ef=Vn.define({create(){return Ne.none},update(t,e){t=t.map(e.changes);for(let n of e.effects)if(n.is(hx)&&!rst(t,n.value.from,n.value.to)){let{preparePlaceholder:r}=e.state.facet(Cie),i=r?Ne.replace({widget:new lst(r(e.state,n.value))}):$ie;t=t.update({add:[i.range(n.value.from,n.value.to)]})}else n.is(a0)&&(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,a)=>{i<r&&a>r&&(n=!0)}),n&&(t=t.update({filterFrom:r,filterTo:r,filter:(i,a)=>a<=r||i>=r}))}return t},provide:t=>Ce.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($ie.range(r,i))}return Ne.set(e,!0)}});function px(t,e,n){var r;let i=null;return(r=t.field(ef,!1))===null||r===void 0||r.between(e,n,(a,o)=>{(!i||i.from>a)&&(i={from:a,to:o})}),i}function rst(t,e,n){let r=!1;return t.between(e,e,(i,a)=>{i==e&&a==n&&(r=!0)}),r}function xie(t,e){return t.field(ef,!1)?e:e.concat(qe.appendConfig.of(Tie()))}const ist=t=>{for(let e of Sie(t)){let n=dx(t.state,e.from,e.to);if(n)return t.dispatch({effects:xie(t.state,[hx.of(n),wie(t,n)])}),!0}return!1},ast=t=>{if(!t.state.field(ef,!1))return!1;let e=[];for(let n of Sie(t)){let r=px(t.state,n.from,n.to);r&&e.push(a0.of(r),wie(t,r,!1))}return e.length&&t.dispatch({effects:e}),e.length>0};function wie(t,e,n=!0){let r=t.state.doc.lineAt(e.from).number,i=t.state.doc.lineAt(e.to).number;return Ce.announce.of(`${t.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${t.state.phrase("to")} ${i}.`)}const ost=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:ist},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:ast},{key:"Ctrl-Alt-[",run:t=>{let{state:e}=t,n=[];for(let r=0;r<e.doc.length;){let i=t.lineBlockAt(r),a=dx(e,i.from,i.to);a&&n.push(hx.of(a)),r=(a?t.lineBlockAt(a.to):i).to+1}return n.length&&t.dispatch({effects:xie(t.state,n)}),!!n.length}},{key:"Ctrl-Alt-]",run:t=>{let e=t.state.field(ef,!1);if(!e||!e.size)return!1;let n=[];return e.between(0,t.state.doc.length,(r,i)=>{n.push(a0.of({from:r,to:i}))}),t.dispatch({effects:n}),!0}}],sst={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},Cie=Ee.define({combine(t){return To(t,sst)}});function Tie(t){return[ef,fst]}function Pie(t,e){let{state:n}=t,r=n.facet(Cie),i=o=>{let s=t.lineBlockAt(t.posAtDOM(o.target)),l=px(t.state,s.from,s.to);l&&t.dispatch({effects:a0.of(l)}),o.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(t,i,e);let a=document.createElement("span");return a.textContent=r.placeholderText,a.setAttribute("aria-label",n.phrase("folded code")),a.title=n.phrase("unfold"),a.className="cm-foldPlaceholder",a.onclick=i,a}const $ie=Ne.replace({widget:new class extends Po{toDOM(t){return Pie(t,null)}}});class lst extends Po{constructor(e){super(),this.value=e}eq(e){return this.value==e.value}toDOM(e){return Pie(e,this.value)}}const ust={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class Rk extends As{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 cst(t={}){let e=Object.assign(Object.assign({},ust),t),n=new Rk(e,!0),r=new Rk(e,!1),i=cn.fromClass(class{constructor(o){this.from=o.viewport.from,this.markers=this.buildMarkers(o)}update(o){(o.docChanged||o.viewportChanged||o.startState.facet(Zl)!=o.state.facet(Zl)||o.startState.field(ef,!1)!=o.state.field(ef,!1)||In(o.startState)!=In(o.state)||e.foldingChanged(o))&&(this.markers=this.buildMarkers(o.view))}buildMarkers(o){let s=new Nl;for(let l of o.viewportLineBlocks){let u=px(o.state,l.from,l.to)?r:dx(o.state,l.from,l.to)?n:null;u&&s.add(l.from,l.from,u)}return s.finish()}}),{domEventHandlers:a}=e;return[i,got({class:"cm-foldGutter",markers(o){var s;return((s=o.plugin(i))===null||s===void 0?void 0:s.markers)||St.empty},initialSpacer(){return new Rk(e,!1)},domEventHandlers:Object.assign(Object.assign({},a),{click:(o,s,l)=>{if(a.click&&a.click(o,s,l))return!0;let u=px(o.state,s.from,s.to);if(u)return o.dispatch({effects:a0.of(u)}),!0;let c=dx(o.state,s.from,s.to);return c?(o.dispatch({effects:hx.of(c)}),!0):!1}})}),Tie()]}const fst=Ce.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 o0{constructor(e,n){this.specs=e;let r;function i(s){let l=Ll.newName();return(r||(r=Object.create(null)))["."+l]=s,l}const a=typeof n.all=="string"?n.all:n.all?i(n.all):void 0,o=n.scope;this.scope=o instanceof za?s=>s.prop(Lh)==o.data:o?s=>s==o:void 0,this.style=cie(e.map(s=>({tag:s.tag,class:s.class||i(Object.assign({},s,{tag:null}))})),{all:a}).style,this.module=r?new Ll(r):null,this.themeType=n.themeType}static define(e,n){return new o0(e,n||{})}}const kk=Ee.define(),Aie=Ee.define({combine(t){return t.length?[t[0]]:null}});function Nk(t){let e=t.facet(kk);return e.length?e:t.facet(Aie)}function Eie(t,e){let n=[hst],r;return t instanceof o0&&(t.module&&n.push(Ce.styleModule.of(t.module)),r=t.themeType),e!=null&&e.fallback?n.push(Aie.of(t)):r?n.push(kk.computeN([Ce.darkTheme],i=>i.facet(Ce.darkTheme)==(r=="dark")?[t]:[])):n.push(kk.of(t)),n}class dst{constructor(e){this.markCache=Object.create(null),this.tree=In(e.state),this.decorations=this.buildDeco(e,Nk(e.state)),this.decoratedTo=e.viewport.to}update(e){let n=In(e.state),r=Nk(e.state),i=r!=Nk(e.startState),{viewport:a}=e.view,o=e.changes.mapPos(this.decoratedTo,1);n.length<a.to&&!i&&n.type==this.tree.type&&o>=a.to?(this.decorations=this.decorations.map(e.changes),this.decoratedTo=o):(n!=this.tree||e.viewportChanged||i)&&(this.tree=n,this.decorations=this.buildDeco(e.view,r),this.decoratedTo=a.to)}buildDeco(e,n){if(!n||!this.tree.length)return Ne.none;let r=new Nl;for(let{from:i,to:a}of e.visibleRanges)Vot(this.tree,n,(o,s,l)=>{r.add(o,s,this.markCache[l]||(this.markCache[l]=Ne.mark({class:l})))},i,a);return r.finish()}}const hst=kl.high(cn.fromClass(dst,{decorations:t=>t.decorations})),pst=o0.define([{tag:Y.meta,color:"#404740"},{tag:Y.link,textDecoration:"underline"},{tag:Y.heading,textDecoration:"underline",fontWeight:"bold"},{tag:Y.emphasis,fontStyle:"italic"},{tag:Y.strong,fontWeight:"bold"},{tag:Y.strikethrough,textDecoration:"line-through"},{tag:Y.keyword,color:"#708"},{tag:[Y.atom,Y.bool,Y.url,Y.contentSeparator,Y.labelName],color:"#219"},{tag:[Y.literal,Y.inserted],color:"#164"},{tag:[Y.string,Y.deleted],color:"#a11"},{tag:[Y.regexp,Y.escape,Y.special(Y.string)],color:"#e40"},{tag:Y.definition(Y.variableName),color:"#00f"},{tag:Y.local(Y.variableName),color:"#30a"},{tag:[Y.typeName,Y.namespace],color:"#085"},{tag:Y.className,color:"#167"},{tag:[Y.special(Y.variableName),Y.macroName],color:"#256"},{tag:Y.definition(Y.propertyName),color:"#00c"},{tag:Y.comment,color:"#940"},{tag:Y.invalid,color:"#f00"}]),gst=Ce.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),Mie=1e4,Iie="()[]{}",Die=Ee.define({combine(t){return To(t,{afterCursor:!0,brackets:Iie,maxScanDistance:Mie,renderMatch:yst})}}),vst=Ne.mark({class:"cm-matchingBracket"}),mst=Ne.mark({class:"cm-nonmatchingBracket"});function yst(t){let e=[],n=t.matched?vst:mst;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 bst=[Vn.define({create(){return Ne.none},update(t,e){if(!e.docChanged&&!e.selection)return t;let n=[],r=e.state.facet(Die);for(let i of e.state.selection.ranges){if(!i.empty)continue;let a=ko(e.state,i.head,-1,r)||i.head>0&&ko(e.state,i.head-1,1,r)||r.afterCursor&&(ko(e.state,i.head,1,r)||i.head<e.state.doc.length&&ko(e.state,i.head+1,-1,r));a&&(n=n.concat(r.renderMatch(a,e.state)))}return Ne.set(n,!0)},provide:t=>Ce.decorations.from(t)}),gst];function _st(t={}){return[Die.of(t),bst]}const Ost=new st;function Lk(t,e,n){let r=t.prop(e<0?st.openedBy:st.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 Vk(t){let e=t.type.prop(Ost);return e?e(t.node):t}function ko(t,e,n,r={}){let i=r.maxScanDistance||Mie,a=r.brackets||Iie,o=In(t),s=o.resolveInner(e,n);for(let l=s;l;l=l.parent){let u=Lk(l.type,n,a);if(u&&l.from<l.to){let c=Vk(l);if(c&&(n>0?e>=c.from&&e<c.to:e>c.from&&e<=c.to))return Sst(t,e,n,l,c,u,a)}}return xst(t,e,n,o,s.type,i,a)}function Sst(t,e,n,r,i,a,o){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&&a.indexOf(c.type.name)>-1&&c.from<c.to){let f=Vk(c);return{start:l,end:f?{from:f.from,to:f.to}:void 0,matched:!0}}else if(Lk(c.type,n,o))u++;else if(Lk(c.type,-n,o)){if(u==0){let f=Vk(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 xst(t,e,n,r,i,a,o){let s=n<0?t.sliceDoc(e-1,e):t.sliceDoc(e,e+1),l=o.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<=a;){let h=c.value;n<0&&(d+=h.length);let g=e+d*n;for(let v=n>0?0:h.length-1,m=n>0?h.length:-1;v!=m;v+=n){let y=o.indexOf(h[v]);if(!(y<0||r.resolveInner(g+v,1).type!=i))if(y%2==0==n>0)f++;else{if(f==1)return{start:u,end:{from:g+v,to:g+v+1},matched:y>>1==l>>1};f--}}n>0&&(d+=h.length)}return c.done?{start:u,matched:!1}:null}const wst=Object.create(null),Rie=[Xr.none],kie=[],Nie=Object.create(null),Cst=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"]])Cst[t]=Tst(wst,e);function Bk(t,e){kie.indexOf(t)>-1||(kie.push(t),console.warn(e))}function Tst(t,e){let n=[];for(let s of e.split(" ")){let l=[];for(let u of s.split(".")){let c=t[u]||Y[u];c?typeof c=="function"?l.length?l=l.map(c):Bk(u,`Modifier ${u} used at start of tag`):l.length?Bk(u,`Tag ${u} used as modifier`):l=Array.isArray(c)?c:[c]:Bk(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),a=Nie[i];if(a)return a.id;let o=Nie[i]=Xr.define({id:Rie.length,name:r,props:[wk({[r]:n})]});return Rie.push(o),o.id}Ht.RTL,Ht.LTR;const Pst=t=>{let{state:e}=t,n=e.doc.lineAt(e.selection.main.from),r=Fk(t.state,n.from);return r.line?$st(t):r.block?Est(t):!1};function zk(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 $st=zk(Dst,0),Ast=zk(Lie,0),Est=zk((t,e)=>Lie(t,e,Ist(e)),0);function Fk(t,e){let n=t.languageDataAt("commentTokens",e);return n.length?n[0]:{}}const s0=50;function Mst(t,{open:e,close:n},r,i){let a=t.sliceDoc(r-s0,r),o=t.sliceDoc(i,i+s0),s=/\s*$/.exec(a)[0].length,l=/^\s*/.exec(o)[0].length,u=a.length-s;if(a.slice(u-e.length,u)==e&&o.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*s0?c=f=t.sliceDoc(r,i):(c=t.sliceDoc(r,r+s0),f=t.sliceDoc(i-s0,i));let d=/^\s*/.exec(c)[0].length,h=/\s*$/.exec(f)[0].length,g=f.length-h-n.length;return c.slice(d,d+e.length)==e&&f.slice(g,g+n.length)==n?{open:{pos:r+d+e.length,margin:/\s/.test(c.charAt(d+e.length))?1:0},close:{pos:i-h-n.length,margin:/\s/.test(f.charAt(g-1))?1:0}}:null}function Ist(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),a=e.length-1;a>=0&&e[a].to>r.from?e[a].to=i.to:e.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return e}function Lie(t,e,n=e.selection.ranges){let r=n.map(a=>Fk(e,a.from).block);if(!r.every(a=>a))return null;let i=n.map((a,o)=>Mst(e,r[o],a.from,a.to));if(t!=2&&!i.every(a=>a))return{changes:e.changes(n.map((a,o)=>i[o]?[]:[{from:a.from,insert:r[o].open+" "},{from:a.to,insert:" "+r[o].close}]))};if(t!=1&&i.some(a=>a)){let a=[];for(let o=0,s;o<i.length;o++)if(s=i[o]){let l=r[o],{open:u,close:c}=s;a.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:a}}return null}function Dst(t,e,n=e.selection.ranges){let r=[],i=-1;for(let{from:a,to:o}of n){let s=r.length,l=1e9,u=Fk(e,a).line;if(u){for(let c=a;c<=o;){let f=e.doc.lineAt(c);if(f.from>i&&(a==o||o>f.from)){i=f.from;let d=/^\s*/.exec(f.text)[0].length,h=d==f.length,g=f.text.slice(d,d+u.length)==u?d:-1;d<f.text.length&&d<l&&(l=d),r.push({line:f,comment:g,token:u,indent:d,empty:h,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(a=>a.comment<0&&(!a.empty||a.single))){let a=[];for(let{line:s,token:l,indent:u,empty:c,single:f}of r)(f||!c)&&a.push({from:s.from+u,insert:l+" "});let o=e.changes(a);return{changes:o,selection:e.selection.map(o,1)}}else if(t!=1&&r.some(a=>a.comment>=0)){let a=[];for(let{line:o,comment:s,token:l}of r)if(s>=0){let u=o.from+s,c=u+l.length;o.text[c-o.from]==" "&&c++,a.push({from:u,to:c})}return{changes:a}}return null}const Wk=Cs.define(),Rst=Cs.define(),kst=Ee.define(),Vie=Ee.define({combine(t){return To(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)})}}),Bie=Vn.define({create(){return No.empty},update(t,e){let n=e.state.facet(Vie),r=e.annotation(Wk);if(r){let l=qr.fromTransaction(e,r.selection),u=r.side,c=u==0?t.undone:t.done;return l?c=vx(c,c.length,n.minDepth,l):c=Wie(c,e.startState.selection),new No(u==0?r.rest:c,u==0?c:r.rest)}let i=e.annotation(Rst);if((i=="full"||i=="before")&&(t=t.isolate()),e.annotation(vn.addToHistory)===!1)return e.changes.empty?t:t.addMapping(e.changes.desc);let a=qr.fromTransaction(e),o=e.annotation(vn.time),s=e.annotation(vn.userEvent);return a?t=t.addChanges(a,o,s,n,e):e.selection&&(t=t.addSelection(e.startState.selection,o,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 No(t.done.map(qr.fromJSON),t.undone.map(qr.fromJSON))}});function Nst(t={}){return[Bie,Vie.of(t),Ce.domEventHandlers({beforeinput(e,n){let r=e.inputType=="historyUndo"?zie:e.inputType=="historyRedo"?Qk:null;return r?(e.preventDefault(),r(n)):!1}})]}function gx(t,e){return function({state:n,dispatch:r}){if(!e&&n.readOnly)return!1;let i=n.field(Bie,!1);if(!i)return!1;let a=i.pop(t,n,e);return a?(r(a),!0):!1}}const zie=gx(0,!1),Qk=gx(1,!1),Lst=gx(0,!0),Vst=gx(1,!0);class qr{constructor(e,n,r,i,a){this.changes=e,this.effects=n,this.mapped=r,this.startSelection=i,this.selectionsAfter=a}setSelAfter(e){return new qr(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 qr(e.changes&&En.fromJSON(e.changes),[],e.mapped&&Co.fromJSON(e.mapped),e.startSelection&&ce.fromJSON(e.startSelection),e.selectionsAfter.map(ce.fromJSON))}static fromTransaction(e,n){let r=ca;for(let i of e.startState.facet(kst)){let a=i(e);a.length&&(r=r.concat(a))}return!r.length&&e.changes.empty?null:new qr(e.changes.invert(e.startState.doc),r,void 0,n||e.startState.selection,ca)}static selection(e){return new qr(void 0,ca,void 0,void 0,e)}}function vx(t,e,n,r){let i=e+1>n+20?e-n-1:0,a=t.slice(i,e);return a.push(r),a}function Bst(t,e){let n=[],r=!1;return t.iterChangedRanges((i,a)=>n.push(i,a)),e.iterChangedRanges((i,a,o,s)=>{for(let l=0;l<n.length;){let u=n[l++],c=n[l++];s>=u&&o<=c&&(r=!0)}}),r}function zst(t,e){return t.ranges.length==e.ranges.length&&t.ranges.filter((n,r)=>n.empty!=e.ranges[r].empty).length===0}function Fie(t,e){return t.length?e.length?t.concat(e):t:e}const ca=[],Fst=200;function Wie(t,e){if(t.length){let n=t[t.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-Fst));return r.length&&r[r.length-1].eq(e)?t:(r.push(e),vx(t,t.length-1,1e9,n.setSelAfter(r)))}else return[qr.selection([e])]}function Wst(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 Hk(t,e){if(!t.length)return t;let n=t.length,r=ca;for(;n;){let i=Qst(t[n-1],e,r);if(i.changes&&!i.changes.empty||i.effects.length){let a=t.slice(0,n);return a[n-1]=i,a}else e=i.mapped,n--,r=i.selectionsAfter}return r.length?[qr.selection(r)]:ca}function Qst(t,e,n){let r=Fie(t.selectionsAfter.length?t.selectionsAfter.map(s=>s.map(e)):ca,n);if(!t.changes)return qr.selection(r);let i=t.changes.map(e),a=e.mapDesc(t.changes,!0),o=t.mapped?t.mapped.composeDesc(a):a;return new qr(i,qe.mapEffects(t.effects,e),o,t.startSelection.map(a),r)}const Hst=/^(input\.type|delete)($|\.)/;class No{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 No(this.done,this.undone):this}addChanges(e,n,r,i,a){let o=this.done,s=o[o.length-1];return s&&s.changes&&!s.changes.empty&&e.changes&&(!r||Hst.test(r))&&(!s.selectionsAfter.length&&n-this.prevTime<i.newGroupDelay&&i.joinToEvent(a,Bst(s.changes,e.changes))||r=="input.type.compose")?o=vx(o,o.length-1,i.minDepth,new qr(e.changes.compose(s.changes),Fie(e.effects,s.effects),s.mapped,s.startSelection,ca)):o=vx(o,o.length,i.minDepth,e),new No(o,ca,n,r)}addSelection(e,n,r,i){let a=this.done.length?this.done[this.done.length-1].selectionsAfter:ca;return a.length>0&&n-this.prevTime<i&&r==this.prevUserEvent&&r&&/^select($|\.)/.test(r)&&zst(a[a.length-1],e)?this:new No(Wie(this.done,e),this.undone,n,r)}addMapping(e){return new No(Hk(this.done,e),Hk(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 a=i[i.length-1],o=a.selectionsAfter[0]||n.selection;if(r&&a.selectionsAfter.length)return n.update({selection:a.selectionsAfter[a.selectionsAfter.length-1],annotations:Wk.of({side:e,rest:Wst(i),selection:o}),userEvent:e==0?"select.undo":"select.redo",scrollIntoView:!0});if(a.changes){let s=i.length==1?ca:i.slice(0,i.length-1);return a.mapped&&(s=Hk(s,a.mapped)),n.update({changes:a.changes,selection:a.startSelection,effects:a.effects,annotations:Wk.of({side:e,rest:s,selection:o}),filter:!1,userEvent:e==0?"undo":"redo",scrollIntoView:!0})}else return null}}No.empty=new No(ca,ca);const jst=[{key:"Mod-z",run:zie,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:Qk,preventDefault:!0},{linux:"Ctrl-Shift-z",run:Qk,preventDefault:!0},{key:"Mod-u",run:Lst,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:Vst,preventDefault:!0}];function Bh(t,e){return ce.create(t.ranges.map(e),t.mainIndex)}function Lo(t,e){return t.update({selection:e,scrollIntoView:!0,userEvent:"select"})}function Fa({state:t,dispatch:e},n){let r=Bh(t.selection,n);return r.eq(t.selection,!0)?!1:(e(Lo(t,r)),!0)}function mx(t,e){return ce.cursor(e?t.to:t.from)}function Qie(t,e){return Fa(t,n=>n.empty?t.moveByChar(n,e):mx(n,e))}function dr(t){return t.textDirectionAt(t.state.selection.main.head)==Ht.LTR}const Hie=t=>Qie(t,!dr(t)),jie=t=>Qie(t,dr(t));function Gie(t,e){return Fa(t,n=>n.empty?t.moveByGroup(n,e):mx(n,e))}const Gst=t=>Gie(t,!dr(t)),Zst=t=>Gie(t,dr(t));function Ust(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 yx(t,e,n){let r=In(t).resolveInner(e.head),i=n?st.closedBy:st.openedBy;for(let l=e.head;;){let u=n?r.childAfter(l):r.childBefore(l);if(!u)break;Ust(t,u,i)?r=u:l=n?u.to:u.from}let a=r.type.prop(i),o,s;return a&&(o=n?ko(t,r.from,1):ko(t,r.to,-1))&&o.matched?s=n?o.end.to:o.end.from:s=n?r.to:r.from,ce.cursor(s,n?-1:1)}const Xst=t=>Fa(t,e=>yx(t.state,e,!dr(t))),Yst=t=>Fa(t,e=>yx(t.state,e,dr(t)));function Zie(t,e){return Fa(t,n=>{if(!n.empty)return mx(n,e);let r=t.moveVertically(n,e);return r.head!=n.head?r:t.moveToLineBoundary(n,e)})}const Uie=t=>Zie(t,!1),Xie=t=>Zie(t,!0);function Yie(t){let e=t.scrollDOM.clientHeight<t.scrollDOM.scrollHeight-2,n=0,r=0,i;if(e){for(let a of t.state.facet(Ce.scrollMargins)){let o=a(t);o!=null&&o.top&&(n=Math.max(o==null?void 0:o.top,n)),o!=null&&o.bottom&&(r=Math.max(o==null?void 0:o.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 qie(t,e){let n=Yie(t),{state:r}=t,i=Bh(r.selection,o=>o.empty?t.moveVertically(o,e,n.height):mx(o,e));if(i.eq(r.selection))return!1;let a;if(n.selfScroll){let o=t.coordsAtPos(r.selection.main.head),s=t.scrollDOM.getBoundingClientRect(),l=s.top+n.marginTop,u=s.bottom-n.marginBottom;o&&o.top>l&&o.bottom<u&&(a=Ce.scrollIntoView(i.main.head,{y:"start",yMargin:o.top-l}))}return t.dispatch(Lo(r,i),{effects:a}),!0}const Kie=t=>qie(t,!1),jk=t=>qie(t,!0);function Ul(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 a=/^\s*/.exec(t.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;a&&e.head!=r.from+a&&(i=ce.cursor(r.from+a))}return i}const qst=t=>Fa(t,e=>Ul(t,e,!0)),Kst=t=>Fa(t,e=>Ul(t,e,!1)),Jst=t=>Fa(t,e=>Ul(t,e,!dr(t))),elt=t=>Fa(t,e=>Ul(t,e,dr(t))),tlt=t=>Fa(t,e=>ce.cursor(t.lineBlockAt(e.head).from,1)),nlt=t=>Fa(t,e=>ce.cursor(t.lineBlockAt(e.head).to,-1));function rlt(t,e,n){let r=!1,i=Bh(t.selection,a=>{let o=ko(t,a.head,-1)||ko(t,a.head,1)||a.head>0&&ko(t,a.head-1,1)||a.head<t.doc.length&&ko(t,a.head+1,-1);if(!o||!o.end)return a;r=!0;let s=o.start.from==a.head?o.end.to:o.end.from;return ce.cursor(s)});return r?(e(Lo(t,i)),!0):!1}const ilt=({state:t,dispatch:e})=>rlt(t,e);function fa(t,e){let n=Bh(t.state.selection,r=>{let i=e(r);return ce.range(r.anchor,i.head,i.goalColumn,i.bidiLevel||void 0)});return n.eq(t.state.selection)?!1:(t.dispatch(Lo(t.state,n)),!0)}function Jie(t,e){return fa(t,n=>t.moveByChar(n,e))}const eae=t=>Jie(t,!dr(t)),tae=t=>Jie(t,dr(t));function nae(t,e){return fa(t,n=>t.moveByGroup(n,e))}const alt=t=>nae(t,!dr(t)),olt=t=>nae(t,dr(t)),slt=t=>fa(t,e=>yx(t.state,e,!dr(t))),llt=t=>fa(t,e=>yx(t.state,e,dr(t)));function rae(t,e){return fa(t,n=>t.moveVertically(n,e))}const iae=t=>rae(t,!1),aae=t=>rae(t,!0);function oae(t,e){return fa(t,n=>t.moveVertically(n,e,Yie(t).height))}const sae=t=>oae(t,!1),lae=t=>oae(t,!0),ult=t=>fa(t,e=>Ul(t,e,!0)),clt=t=>fa(t,e=>Ul(t,e,!1)),flt=t=>fa(t,e=>Ul(t,e,!dr(t))),dlt=t=>fa(t,e=>Ul(t,e,dr(t))),hlt=t=>fa(t,e=>ce.cursor(t.lineBlockAt(e.head).from)),plt=t=>fa(t,e=>ce.cursor(t.lineBlockAt(e.head).to)),uae=({state:t,dispatch:e})=>(e(Lo(t,{anchor:0})),!0),cae=({state:t,dispatch:e})=>(e(Lo(t,{anchor:t.doc.length})),!0),fae=({state:t,dispatch:e})=>(e(Lo(t,{anchor:t.selection.main.anchor,head:0})),!0),dae=({state:t,dispatch:e})=>(e(Lo(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0),glt=({state:t,dispatch:e})=>(e(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0),vlt=({state:t,dispatch:e})=>{let n=_x(t).map(({from:r,to:i})=>ce.range(r,Math.min(i+1,t.doc.length)));return e(t.update({selection:ce.create(n),userEvent:"select"})),!0},mlt=({state:t,dispatch:e})=>{let n=Bh(t.selection,r=>{var i;let a=In(t).resolveStack(r.from,1);for(let o=a;o;o=o.next){let{node:s}=o;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 ce.range(s.to,s.from)}return r});return e(Lo(t,n)),!0},ylt=({state:t,dispatch:e})=>{let n=t.selection,r=null;return n.ranges.length>1?r=ce.create([n.main]):n.main.empty||(r=ce.create([ce.cursor(n.main.head)])),r?(e(Lo(t,r)),!0):!1};function l0(t,e){if(t.state.readOnly)return!1;let n="delete.selection",{state:r}=t,i=r.changeByRange(a=>{let{from:o,to:s}=a;if(o==s){let l=e(a);l<o?(n="delete.backward",l=bx(t,l,!1)):l>o&&(n="delete.forward",l=bx(t,l,!0)),o=Math.min(o,l),s=Math.max(s,l)}else o=bx(t,o,!1),s=bx(t,s,!0);return o==s?{range:a}:{changes:{from:o,to:s},range:ce.cursor(o,o<a.head?-1:1)}});return i.changes.empty?!1:(t.dispatch(r.update(i,{scrollIntoView:!0,userEvent:n,effects:n=="delete.selection"?Ce.announce.of(r.phrase("Selection deleted")):void 0})),!0)}function bx(t,e,n){if(t instanceof Ce)for(let r of t.state.facet(Ce.atomicRanges).map(i=>i(t)))r.between(e,e,(i,a)=>{i<e&&a>e&&(e=n?a:i)});return e}const hae=(t,e,n)=>l0(t,r=>{let i=r.from,{state:a}=t,o=a.doc.lineAt(i),s,l;if(n&&!e&&i>o.from&&i<o.from+200&&!/[^ \t]/.test(s=o.text.slice(0,i-o.from))){if(s[s.length-1]==" ")return i-1;let u=Ah(s,a.tabSize),c=u%cx(a)||cx(a);for(let f=0;f<c&&s[s.length-1-f]==" ";f++)i--;l=i}else l=Yn(o.text,i-o.from,e,e)+o.from,l==i&&o.number!=(e?a.doc.lines:1)?l+=e?1:-1:!e&&/[\ufe00-\ufe0f]/.test(o.text.slice(l-o.from,i-o.from))&&(l=Yn(o.text,l-o.from,!1,!1)+o.from);return l}),Gk=t=>hae(t,!1,!0),pae=t=>hae(t,!0,!1),gae=(t,e)=>l0(t,n=>{let r=n.head,{state:i}=t,a=i.doc.lineAt(r),o=i.charCategorizer(r);for(let s=null;;){if(r==(e?a.to:a.from)){r==n.head&&a.number!=(e?i.doc.lines:1)&&(r+=e?1:-1);break}let l=Yn(a.text,r-a.from,e)+a.from,u=a.text.slice(Math.min(r,l)-a.from,Math.max(r,l)-a.from),c=o(u);if(s!=null&&c!=s)break;(u!=" "||r!=n.head)&&(s=c),r=l}return r}),vae=t=>gae(t,!1),blt=t=>gae(t,!0),_lt=t=>l0(t,e=>{let n=t.lineBlockAt(e.head).to;return e.head<n?n:Math.min(t.state.doc.length,e.head+1)}),Olt=t=>l0(t,e=>{let n=t.moveToLineBoundary(e,!1).head;return e.head>n?n:Math.max(0,e.head-1)}),Slt=t=>l0(t,e=>{let n=t.moveToLineBoundary(e,!0).head;return e.head<n?n:Math.min(t.state.doc.length,e.head+1)}),xlt=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=t.changeByRange(r=>({changes:{from:r.from,to:r.to,insert:Ot.of(["",""])},range:ce.cursor(r.from)}));return e(t.update(n,{scrollIntoView:!0,userEvent:"input"})),!0},wlt=({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,a=t.doc.lineAt(i),o=i==a.from?i-1:Yn(a.text,i-a.from,!1)+a.from,s=i==a.to?i+1:Yn(a.text,i-a.from,!0)+a.from;return{changes:{from:o,to:s,insert:t.doc.slice(i,s).append(t.doc.slice(o,i))},range:ce.cursor(s)}});return n.changes.empty?!1:(e(t.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function _x(t){let e=[],n=-1;for(let r of t.selection.ranges){let i=t.doc.lineAt(r.from),a=t.doc.lineAt(r.to);if(!r.empty&&r.to==a.from&&(a=t.doc.lineAt(r.to-1)),n>=i.number){let o=e[e.length-1];o.to=a.to,o.ranges.push(r)}else e.push({from:i.from,to:a.to,ranges:[r]});n=a.number+1}return e}function mae(t,e,n){if(t.readOnly)return!1;let r=[],i=[];for(let a of _x(t)){if(n?a.to==t.doc.length:a.from==0)continue;let o=t.doc.lineAt(n?a.to+1:a.from-1),s=o.length+1;if(n){r.push({from:a.to,to:o.to},{from:a.from,insert:o.text+t.lineBreak});for(let l of a.ranges)i.push(ce.range(Math.min(t.doc.length,l.anchor+s),Math.min(t.doc.length,l.head+s)))}else{r.push({from:o.from,to:a.from},{from:a.to,insert:t.lineBreak+o.text});for(let l of a.ranges)i.push(ce.range(l.anchor-s,l.head-s))}}return r.length?(e(t.update({changes:r,scrollIntoView:!0,selection:ce.create(i,t.selection.mainIndex),userEvent:"move.line"})),!0):!1}const Clt=({state:t,dispatch:e})=>mae(t,e,!1),Tlt=({state:t,dispatch:e})=>mae(t,e,!0);function yae(t,e,n){if(t.readOnly)return!1;let r=[];for(let i of _x(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 Plt=({state:t,dispatch:e})=>yae(t,e,!1),$lt=({state:t,dispatch:e})=>yae(t,e,!0),Alt=t=>{if(t.state.readOnly)return!1;let{state:e}=t,n=e.changes(_x(e).map(({from:i,to:a})=>(i>0?i--:a<e.doc.length&&a++,{from:i,to:a}))),r=Bh(e.selection,i=>{let a;if(t.lineWrapping){let o=t.lineBlockAt(i.head),s=t.coordsAtPos(i.head,i.assoc||1);s&&(a=o.bottom+t.documentTop-s.bottom+t.defaultLineHeight/2)}return t.moveVertically(i,!0,a)}).map(n);return t.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0};function Elt(t,e){if(/\(\)|\[\]|\{\}/.test(t.sliceDoc(e-1,e+1)))return{from:e,to:e};let n=In(t).resolveInner(e),r=n.childBefore(e),i=n.childAfter(e),a;return r&&i&&r.to<=e&&i.from>=e&&(a=r.type.prop(st.closedBy))&&a.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 Mlt=bae(!1),Ilt=bae(!0);function bae(t){return({state:e,dispatch:n})=>{if(e.readOnly)return!1;let r=e.changeByRange(i=>{let{from:a,to:o}=i,s=e.doc.lineAt(a),l=!t&&a==o&&Elt(e,a);t&&(a=o=(o<=s.to?s:e.doc.lineAt(o)).to);let u=new fx(e,{simulateBreak:a,simulateDoubleBreak:!!l}),c=Ek(u,a);for(c==null&&(c=Ah(/^\s*/.exec(e.doc.lineAt(a).text)[0],e.tabSize));o<s.to&&/\s/.test(s.text[o-s.from]);)o++;l?{from:a,to:o}=l:a>s.from&&a<s.from+100&&!/\S/.test(s.text.slice(0,a))&&(a=s.from);let f=["",r0(e,c)];return l&&f.push(r0(e,u.lineIndent(s.from,-1))),{changes:{from:a,to:o,insert:Ot.of(f)},range:ce.cursor(a+1+f[1].length)}});return n(e.update(r,{scrollIntoView:!0,userEvent:"input"})),!0}}function Zk(t,e){let n=-1;return t.changeByRange(r=>{let i=[];for(let o=r.from;o<=r.to;){let s=t.doc.lineAt(o);s.number>n&&(r.empty||r.to>s.from)&&(e(s,i,r),n=s.number),o=s.to+1}let a=t.changes(i);return{changes:i,range:ce.range(a.mapPos(r.anchor,1),a.mapPos(r.head,1))}})}const Dlt=({state:t,dispatch:e})=>{if(t.readOnly)return!1;let n=Object.create(null),r=new fx(t,{overrideIndentation:a=>{let o=n[a];return o??-1}}),i=Zk(t,(a,o,s)=>{let l=Ek(r,a.from);if(l==null)return;/\S/.test(a.text)||(l=0);let u=/^\s*/.exec(a.text)[0],c=r0(t,l);(u!=c||s.from<a.from+u.length)&&(n[a.from]=l,o.push({from:a.from,to:a.from+u.length,insert:c}))});return i.changes.empty||e(t.update(i,{userEvent:"indent"})),!0},_ae=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(Zk(t,(n,r)=>{r.push({from:n.from,insert:t.facet(n0)})}),{userEvent:"input.indent"})),!0),Oae=({state:t,dispatch:e})=>t.readOnly?!1:(e(t.update(Zk(t,(n,r)=>{let i=/^\s*/.exec(n.text)[0];if(!i)return;let a=Ah(i,t.tabSize),o=0,s=r0(t,Math.max(0,a-cx(t)));for(;o<i.length&&o<s.length&&i.charCodeAt(o)==s.charCodeAt(o);)o++;r.push({from:n.from+o,to:n.from+i.length,insert:s.slice(o)})}),{userEvent:"delete.dedent"})),!0),Rlt=t=>(t.setTabFocusMode(),!0),klt=[{key:"Ctrl-b",run:Hie,shift:eae,preventDefault:!0},{key:"Ctrl-f",run:jie,shift:tae},{key:"Ctrl-p",run:Uie,shift:iae},{key:"Ctrl-n",run:Xie,shift:aae},{key:"Ctrl-a",run:tlt,shift:hlt},{key:"Ctrl-e",run:nlt,shift:plt},{key:"Ctrl-d",run:pae},{key:"Ctrl-h",run:Gk},{key:"Ctrl-k",run:_lt},{key:"Ctrl-Alt-h",run:vae},{key:"Ctrl-o",run:xlt},{key:"Ctrl-t",run:wlt},{key:"Ctrl-v",run:jk}],Nlt=[{key:"ArrowLeft",run:Hie,shift:eae,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:Gst,shift:alt,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:Jst,shift:flt,preventDefault:!0},{key:"ArrowRight",run:jie,shift:tae,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:Zst,shift:olt,preventDefault:!0},{mac:"Cmd-ArrowRight",run:elt,shift:dlt,preventDefault:!0},{key:"ArrowUp",run:Uie,shift:iae,preventDefault:!0},{mac:"Cmd-ArrowUp",run:uae,shift:fae},{mac:"Ctrl-ArrowUp",run:Kie,shift:sae},{key:"ArrowDown",run:Xie,shift:aae,preventDefault:!0},{mac:"Cmd-ArrowDown",run:cae,shift:dae},{mac:"Ctrl-ArrowDown",run:jk,shift:lae},{key:"PageUp",run:Kie,shift:sae},{key:"PageDown",run:jk,shift:lae},{key:"Home",run:Kst,shift:clt,preventDefault:!0},{key:"Mod-Home",run:uae,shift:fae},{key:"End",run:qst,shift:ult,preventDefault:!0},{key:"Mod-End",run:cae,shift:dae},{key:"Enter",run:Mlt},{key:"Mod-a",run:glt},{key:"Backspace",run:Gk,shift:Gk},{key:"Delete",run:pae},{key:"Mod-Backspace",mac:"Alt-Backspace",run:vae},{key:"Mod-Delete",mac:"Alt-Delete",run:blt},{mac:"Mod-Backspace",run:Olt},{mac:"Mod-Delete",run:Slt}].concat(klt.map(t=>({mac:t.key,run:t.run,shift:t.shift}))),Llt=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:Xst,shift:slt},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:Yst,shift:llt},{key:"Alt-ArrowUp",run:Clt},{key:"Shift-Alt-ArrowUp",run:Plt},{key:"Alt-ArrowDown",run:Tlt},{key:"Shift-Alt-ArrowDown",run:$lt},{key:"Escape",run:ylt},{key:"Mod-Enter",run:Ilt},{key:"Alt-l",mac:"Ctrl-l",run:vlt},{key:"Mod-i",run:mlt,preventDefault:!0},{key:"Mod-[",run:Oae},{key:"Mod-]",run:_ae},{key:"Mod-Alt-\\",run:Dlt},{key:"Shift-Mod-k",run:Alt},{key:"Shift-Mod-\\",run:ilt},{key:"Mod-/",run:Pst},{key:"Alt-A",run:Ast},{key:"Ctrl-m",mac:"Shift-Alt-m",run:Rlt}].concat(Nlt),Vlt={key:"Tab",run:_ae,shift:Oae};function Vt(){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++)Sae(t,arguments[e]);return t}function Sae(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++)Sae(t,e[n]);else throw new RangeError("Unsupported child node: "+e)}const xae=typeof String.prototype.normalize=="function"?t=>t.normalize("NFKD"):t=>t;class zh{constructor(e,n,r=0,i=e.length,a,o){this.test=o,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=a?s=>a(xae(s)):xae,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 qn(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=fR(e),r=this.bufferStart+this.bufferPos;this.bufferPos+=sa(e);let i=this.normalize(n);for(let a=0,o=r;;a++){let s=i.charCodeAt(a),l=this.match(s,o,this.bufferPos+this.bufferStart);if(a==i.length-1){if(l)return this.value=l,this;break}o==r&&a<n.length&&n.charCodeAt(a)==s&&o++}}}match(e,n,r){let i=null;for(let a=0;a<this.matches.length;a+=2){let o=this.matches[a],s=!1;this.query.charCodeAt(o)==e&&(o==this.query.length-1?i={from:this.matches[a+1],to:r}:(this.matches[a]++,s=!0)),s||(this.matches.splice(a,2),a-=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"&&(zh.prototype[Symbol.iterator]=function(){return this});const wae={from:-1,to:-1,match:/.*/.exec("")},Uk="gm"+(/x/.unicode==null?"":"u");class Cae{constructor(e,n,r,i=0,a=e.length){if(this.text=e,this.to=a,this.curLine="",this.done=!1,this.value=wae,/\\[sWDnr]|\n|\r|\[\^/.test(n))return new Tae(e,n,r,i,a);this.re=new RegExp(n,Uk+(r!=null&&r.ignoreCase?"i":"")),this.test=r==null?void 0:r.test,this.iter=e.iter();let o=e.lineAt(i);this.curLineStart=o.from,this.matchPos=Ox(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=Ox(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 Xk=new WeakMap;class Fh{constructor(e,n){this.from=e,this.text=n}get to(){return this.from+this.text.length}static get(e,n,r){let i=Xk.get(e);if(!i||i.from>=r||i.to<=n){let s=new Fh(n,e.sliceString(n,r));return Xk.set(e,s),s}if(i.from==n&&i.to==r)return i;let{text:a,from:o}=i;return o>n&&(a=e.sliceString(n,o)+a,o=n),i.to<r&&(a+=e.sliceString(i.to,r)),Xk.set(e,new Fh(o,a)),new Fh(n,a.slice(n-o,r-o))}}class Tae{constructor(e,n,r,i,a){this.text=e,this.to=a,this.done=!1,this.value=wae,this.matchPos=Ox(e,i),this.re=new RegExp(n,Uk+(r!=null&&r.ignoreCase?"i":"")),this.test=r==null?void 0:r.test,this.flat=Fh.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=Ox(this.text,i+(r==i?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Fh.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(Cae.prototype[Symbol.iterator]=Tae.prototype[Symbol.iterator]=function(){return this});function Blt(t){try{return new RegExp(t,Uk),!0}catch{return!1}}function Ox(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 Yk(t){let e=String(t.state.doc.lineAt(t.state.selection.main.head).number),n=Vt("input",{class:"cm-textfield",name:"line",value:e}),r=Vt("form",{class:"cm-gotoLine",onkeydown:a=>{a.keyCode==27?(a.preventDefault(),t.dispatch({effects:Sx.of(!1)}),t.focus()):a.keyCode==13&&(a.preventDefault(),i())},onsubmit:a=>{a.preventDefault(),i()}},Vt("label",t.state.phrase("Go to line"),": ",n)," ",Vt("button",{class:"cm-button",type:"submit"},t.state.phrase("go")));function i(){let a=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(!a)return;let{state:o}=t,s=o.doc.lineAt(o.selection.main.head),[,l,u,c,f]=a,d=c?+c.slice(1):0,h=u?+u:s.number;if(u&&f){let m=h/100;l&&(m=m*(l=="-"?-1:1)+s.number/o.doc.lines),h=Math.round(o.doc.lines*m)}else u&&l&&(h=h*(l=="-"?-1:1)+s.number);let g=o.doc.line(Math.max(1,Math.min(o.doc.lines,h))),v=ce.cursor(g.from+Math.max(0,Math.min(d,g.length)));t.dispatch({effects:[Sx.of(!1),Ce.scrollIntoView(v.from,{y:"center"})],selection:v}),t.focus()}return{dom:r}}const Sx=qe.define(),Pae=Vn.define({create(){return!0},update(t,e){for(let n of e.effects)n.is(Sx)&&(t=n.value);return t},provide:t=>Ym.from(t,e=>e?Yk:null)}),zlt=t=>{let e=Xm(t,Yk);if(!e){let n=[Sx.of(!0)];t.state.field(Pae,!1)==null&&n.push(qe.appendConfig.of([Pae,Flt])),t.dispatch({effects:n}),e=Xm(t,Yk)}return e&&e.dom.querySelector("input").select(),!0},Flt=Ce.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),Wlt={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Qlt=Ee.define({combine(t){return To(t,Wlt,{highlightWordAroundCursor:(e,n)=>e||n,minSelectionLength:Math.min,maxMatches:Math.min})}});function Hlt(t){return[Xlt,Ult]}const jlt=Ne.mark({class:"cm-selectionMatch"}),Glt=Ne.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function $ae(t,e,n,r){return(n==0||t(e.sliceDoc(n-1,n))!=Yt.Word)&&(r==e.doc.length||t(e.sliceDoc(r,r+1))!=Yt.Word)}function Zlt(t,e,n,r){return t(e.sliceDoc(n,n+1))==Yt.Word&&t(e.sliceDoc(r-1,r))==Yt.Word}const Ult=cn.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(Qlt),{state:n}=t,r=n.selection;if(r.ranges.length>1)return Ne.none;let i=r.main,a,o=null;if(i.empty){if(!e.highlightWordAroundCursor)return Ne.none;let l=n.wordAt(i.head);if(!l)return Ne.none;o=n.charCategorizer(i.head),a=n.sliceDoc(l.from,l.to)}else{let l=i.to-i.from;if(l<e.minSelectionLength||l>200)return Ne.none;if(e.wholeWords){if(a=n.sliceDoc(i.from,i.to),o=n.charCategorizer(i.head),!($ae(o,n,i.from,i.to)&&Zlt(o,n,i.from,i.to)))return Ne.none}else if(a=n.sliceDoc(i.from,i.to),!a)return Ne.none}let s=[];for(let l of t.visibleRanges){let u=new zh(n.doc,a,l.from,l.to);for(;!u.next().done;){let{from:c,to:f}=u.value;if((!o||$ae(o,n,c,f))&&(i.empty&&c<=i.from&&f>=i.to?s.push(Glt.range(c,f)):(c>=i.to||f<=i.from)&&s.push(jlt.range(c,f)),s.length>e.maxMatches))return Ne.none}}return Ne.set(s)}},{decorations:t=>t.decorations}),Xlt=Ce.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),Ylt=({state:t,dispatch:e})=>{let{selection:n}=t,r=ce.create(n.ranges.map(i=>t.wordAt(i.head)||ce.cursor(i.head)),n.mainIndex);return r.eq(n)?!1:(e(t.update({selection:r})),!0)};function qlt(t,e){let{main:n,ranges:r}=t.selection,i=t.wordAt(n.head),a=i&&i.from==n.from&&i.to==n.to;for(let o=!1,s=new zh(t.doc,e,r[r.length-1].to);;)if(s.next(),s.done){if(o)return null;s=new zh(t.doc,e,0,Math.max(0,r[r.length-1].from-1)),o=!0}else{if(o&&r.some(l=>l.from==s.value.from))continue;if(a){let l=t.wordAt(s.value.from);if(!l||l.from!=s.value.from||l.to!=s.value.to)continue}return s.value}}const Klt=({state:t,dispatch:e})=>{let{ranges:n}=t.selection;if(n.some(a=>a.from===a.to))return Ylt({state:t,dispatch:e});let r=t.sliceDoc(n[0].from,n[0].to);if(t.selection.ranges.some(a=>t.sliceDoc(a.from,a.to)!=r))return!1;let i=qlt(t,r);return i?(e(t.update({selection:t.selection.addRange(ce.range(i.from,i.to),!1),effects:Ce.scrollIntoView(i.to)})),!0):!1},Wh=Ee.define({combine(t){return To(t,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new cut(e),scrollToMatch:e=>Ce.scrollIntoView(e)})}});class Aae{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||Blt(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"?`
  373. `: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 nut(this):new eut(this)}getCursor(e,n=0,r){let i=e.doc?e:ht.create({doc:e});return r==null&&(r=i.doc.length),this.regexp?Hh(this,i,n,r):Qh(this,i,n,r)}}class Eae{constructor(e){this.spec=e}}function Qh(t,e,n,r){return new zh(e.doc,t.unquoted,n,r,t.caseSensitive?void 0:i=>i.toLowerCase(),t.wholeWord?Jlt(e.doc,e.charCategorizer(e.selection.main.head)):void 0)}function Jlt(t,e){return(n,r,i,a)=>((a>n||a+i.length<r)&&(a=Math.max(0,n-2),i=t.sliceString(a,Math.min(t.length,r+2))),(e(xx(i,n-a))!=Yt.Word||e(Cx(i,n-a))!=Yt.Word)&&(e(Cx(i,r-a))!=Yt.Word||e(xx(i,r-a))!=Yt.Word))}class eut extends Eae{constructor(e){super(e)}nextMatch(e,n,r){let i=Qh(this.spec,e,r,e.doc.length).nextOverlapping();return i.done&&(i=Qh(this.spec,e,0,n).nextOverlapping()),i.done?null:i.value}prevMatchInRange(e,n,r){for(let i=r;;){let a=Math.max(n,i-1e4-this.spec.unquoted.length),o=Qh(this.spec,e,a,i),s=null;for(;!o.nextOverlapping().done;)s=o.value;if(s)return s;if(a==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=Qh(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 a=Qh(this.spec,e,Math.max(0,n-this.spec.unquoted.length),Math.min(r+this.spec.unquoted.length,e.doc.length));for(;!a.next().done;)i(a.value.from,a.value.to)}}function Hh(t,e,n,r){return new Cae(e.doc,t.search,{ignoreCase:!t.caseSensitive,test:t.wholeWord?tut(e.charCategorizer(e.selection.main.head)):void 0},n,r)}function xx(t,e){return t.slice(Yn(t,e,!1),e)}function Cx(t,e){return t.slice(e,Yn(t,e))}function tut(t){return(e,n,r)=>!r[0].length||(t(xx(r.input,r.index))!=Yt.Word||t(Cx(r.input,r.index))!=Yt.Word)&&(t(Cx(r.input,r.index+r[0].length))!=Yt.Word||t(xx(r.input,r.index+r[0].length))!=Yt.Word)}class nut extends Eae{nextMatch(e,n,r){let i=Hh(this.spec,e,r,e.doc.length).next();return i.done&&(i=Hh(this.spec,e,0,n).next()),i.done?null:i.value}prevMatchInRange(e,n,r){for(let i=1;;i++){let a=Math.max(n,r-i*1e4),o=Hh(this.spec,e,a,r),s=null;for(;!o.next().done;)s=o.value;if(s&&(a==n||s.from>a+10))return s;if(a==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=Hh(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 a=Hh(this.spec,e,Math.max(0,n-250),Math.min(r+250,e.doc.length));for(;!a.next().done;)i(a.value.from,a.value.to)}}const u0=qe.define(),qk=qe.define(),Xl=Vn.define({create(t){return new Kk(eN(t).create(),null)},update(t,e){for(let n of e.effects)n.is(u0)?t=new Kk(n.value.create(),t.panel):n.is(qk)&&(t=new Kk(t.query,n.value?Jk:null));return t},provide:t=>Ym.from(t,e=>e.panel)});class Kk{constructor(e,n){this.query=e,this.panel=n}}const rut=Ne.mark({class:"cm-searchMatch"}),iut=Ne.mark({class:"cm-searchMatch cm-searchMatch-selected"}),aut=cn.fromClass(class{constructor(t){this.view=t,this.decorations=this.highlight(t.state.field(Xl))}update(t){let e=t.state.field(Xl);(e!=t.startState.field(Xl)||t.docChanged||t.selectionSet||t.viewportChanged)&&(this.decorations=this.highlight(e))}highlight({query:t,panel:e}){if(!e||!t.spec.valid)return Ne.none;let{view:n}=this,r=new Nl;for(let i=0,a=n.visibleRanges,o=a.length;i<o;i++){let{from:s,to:l}=a[i];for(;i<o-1&&l>a[i+1].from-2*250;)l=a[++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?iut:rut)})}return r.finish()}},{decorations:t=>t.decorations});function c0(t){return e=>{let n=e.state.field(Xl,!1);return n&&n.query.spec.valid?t(e,n):Rae(e)}}const Tx=c0((t,{query:e})=>{let{to:n}=t.state.selection.main,r=e.nextMatch(t.state,n,n);if(!r)return!1;let i=ce.single(r.from,r.to),a=t.state.facet(Wh);return t.dispatch({selection:i,effects:[tN(t,r),a.scrollToMatch(i.main,t)],userEvent:"select.search"}),Dae(t),!0}),Px=c0((t,{query:e})=>{let{state:n}=t,{from:r}=n.selection.main,i=e.prevMatch(n,r,r);if(!i)return!1;let a=ce.single(i.from,i.to),o=t.state.facet(Wh);return t.dispatch({selection:a,effects:[tN(t,i),o.scrollToMatch(a.main,t)],userEvent:"select.search"}),Dae(t),!0}),out=c0((t,{query:e})=>{let n=e.matchAll(t.state,1e3);return!n||!n.length?!1:(t.dispatch({selection:ce.create(n.map(r=>ce.range(r.from,r.to))),userEvent:"select.search.matches"}),!0)}),sut=({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,a=[],o=0;for(let s=new zh(t.doc,t.sliceDoc(r,i));!s.next().done;){if(a.length>1e3)return!1;s.value.from==r&&(o=a.length),a.push(ce.range(s.value.from,s.value.to))}return e(t.update({selection:ce.create(a,o),userEvent:"select.search.matches"})),!0},Mae=c0((t,{query:e})=>{let{state:n}=t,{from:r,to:i}=n.selection.main;if(n.readOnly)return!1;let a=e.nextMatch(n,r,r);if(!a)return!1;let o=[],s,l,u=[];if(a.from==r&&a.to==i&&(l=n.toText(e.getReplacement(a)),o.push({from:a.from,to:a.to,insert:l}),a=e.nextMatch(n,a.from,a.to),u.push(Ce.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(r).number)+"."))),a){let c=o.length==0||o[0].from>=a.to?0:a.to-a.from-l.length;s=ce.single(a.from-c,a.to-c),u.push(tN(t,a)),u.push(n.facet(Wh).scrollToMatch(s.main,t))}return t.dispatch({changes:o,selection:s,effects:u,userEvent:"input.replace"}),!0}),lut=c0((t,{query:e})=>{if(t.state.readOnly)return!1;let n=e.matchAll(t.state,1e9).map(i=>{let{from:a,to:o}=i;return{from:a,to:o,insert:e.getReplacement(i)}});if(!n.length)return!1;let r=t.state.phrase("replaced $ matches",n.length)+".";return t.dispatch({changes:n,effects:Ce.announce.of(r),userEvent:"input.replace.all"}),!0});function Jk(t){return t.state.facet(Wh).createPanel(t)}function eN(t,e){var n,r,i,a,o;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(Wh);return new Aae({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:(a=e==null?void 0:e.regexp)!==null&&a!==void 0?a:u.regexp,wholeWord:(o=e==null?void 0:e.wholeWord)!==null&&o!==void 0?o:u.wholeWord})}function Iae(t){let e=Xm(t,Jk);return e&&e.dom.querySelector("[main-field]")}function Dae(t){let e=Iae(t);e&&e==t.root.activeElement&&e.select()}const Rae=t=>{let e=t.state.field(Xl,!1);if(e&&e.panel){let n=Iae(t);if(n&&n!=t.root.activeElement){let r=eN(t.state,e.query.spec);r.valid&&t.dispatch({effects:u0.of(r)}),n.focus(),n.select()}}else t.dispatch({effects:[qk.of(!0),e?u0.of(eN(t.state,e.query.spec)):qe.appendConfig.of(dut)]});return!0},kae=t=>{let e=t.state.field(Xl,!1);if(!e||!e.panel)return!1;let n=Xm(t,Jk);return n&&n.dom.contains(t.root.activeElement)&&t.focus(),t.dispatch({effects:qk.of(!1)}),!0},uut=[{key:"Mod-f",run:Rae,scope:"editor search-panel"},{key:"F3",run:Tx,shift:Px,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:Tx,shift:Px,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:kae,scope:"editor search-panel"},{key:"Mod-Shift-l",run:sut},{key:"Mod-Alt-g",run:zlt},{key:"Mod-d",run:Klt,preventDefault:!0}];class cut{constructor(e){this.view=e;let n=this.query=e.state.field(Xl).query.spec;this.commit=this.commit.bind(this),this.searchField=Vt("input",{value:n.search,placeholder:bi(e,"Find"),"aria-label":bi(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Vt("input",{value:n.replace,placeholder:bi(e,"Replace"),"aria-label":bi(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Vt("input",{type:"checkbox",name:"case",form:"",checked:n.caseSensitive,onchange:this.commit}),this.reField=Vt("input",{type:"checkbox",name:"re",form:"",checked:n.regexp,onchange:this.commit}),this.wordField=Vt("input",{type:"checkbox",name:"word",form:"",checked:n.wholeWord,onchange:this.commit});function r(i,a,o){return Vt("button",{class:"cm-button",name:i,onclick:a,type:"button"},o)}this.dom=Vt("div",{onkeydown:i=>this.keydown(i),class:"cm-search"},[this.searchField,r("next",()=>Tx(e),[bi(e,"next")]),r("prev",()=>Px(e),[bi(e,"previous")]),r("select",()=>out(e),[bi(e,"all")]),Vt("label",null,[this.caseField,bi(e,"match case")]),Vt("label",null,[this.reField,bi(e,"regexp")]),Vt("label",null,[this.wordField,bi(e,"by word")]),...e.state.readOnly?[]:[Vt("br"),this.replaceField,r("replace",()=>Mae(e),[bi(e,"replace")]),r("replaceAll",()=>lut(e),[bi(e,"replace all")])],Vt("button",{name:"close",onclick:()=>kae(e),"aria-label":bi(e,"close"),type:"button"},["×"])])}commit(){let e=new Aae({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:u0.of(e)}))}keydown(e){wat(this.view,e,"search-panel")?e.preventDefault():e.keyCode==13&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?Px:Tx)(this.view)):e.keyCode==13&&e.target==this.replaceField&&(e.preventDefault(),Mae(this.view))}update(e){for(let n of e.transactions)for(let r of n.effects)r.is(u0)&&!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(Wh).top}}function bi(t,e){return t.state.phrase(e)}const $x=30,Ax=/[\s\.,:;?!]/;function tN(t,{from:e,to:n}){let r=t.state.doc.lineAt(e),i=t.state.doc.lineAt(n).to,a=Math.max(r.from,e-$x),o=Math.min(i,n+$x),s=t.state.sliceDoc(a,o);if(a!=r.from){for(let l=0;l<$x;l++)if(!Ax.test(s[l+1])&&Ax.test(s[l])){s=s.slice(l);break}}if(o!=i){for(let l=s.length-1;l>s.length-$x;l--)if(!Ax.test(s[l-1])&&Ax.test(s[l])){s=s.slice(0,l);break}}return Ce.announce.of(`${t.state.phrase("current match")}. ${s} ${t.state.phrase("on line")} ${r.number}.`)}const fut=Ce.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"}}),dut=[Xl,kl.low(aut),fut];class Nae{constructor(e,n,r,i){this.state=e,this.pos=n,this.explicit=r,this.view=i,this.abortListeners=[]}tokenBefore(e){let n=In(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),a=i.search(zae(e,!1));return a<0?null:{from:r+a,to:this.pos,text:i.slice(a)}}get aborted(){return this.abortListeners==null}addEventListener(e,n){e=="abort"&&this.abortListeners&&this.abortListeners.push(n)}}function Lae(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 hut(t){let e=Object.create(null),n=Object.create(null);for(let{label:i}of t){e[i[0]]=!0;for(let a=1;a<i.length;a++)n[i[a]]=!0}let r=Lae(e)+Lae(n)+"*$";return[new RegExp("^"+r),new RegExp(r)]}function Vae(t){let e=t.map(i=>typeof i=="string"?{label:i}:i),[n,r]=e.every(i=>/^\w+$/.test(i.label))?[/\w*$/,/\w+$/]:hut(e);return i=>{let a=i.matchBefore(r);return a||i.explicit?{from:a?a.from:i.pos,options:e,validFor:n}:null}}function put(t,e){return n=>{for(let r=In(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 Bae{constructor(e,n,r,i){this.completion=e,this.source=n,this.match=r,this.score=i}}function Yl(t){return t.selection.main.from}function zae(t,e){var n;let{source:r}=t,i=e&&r[0]!="^",a=r[r.length-1]!="$";return!i&&!a?t:new RegExp(`${i?"^":""}(?:${r})${a?"$":""}`,(n=t.flags)!==null&&n!==void 0?n:t.ignoreCase?"i":"")}const nN=Cs.define();function gut(t,e,n,r){let{main:i}=t.selection,a=n-i.from,o=r-i.from;return Object.assign(Object.assign({},t.changeByRange(s=>s!=i&&n!=r&&t.sliceDoc(s.from+a,s.from+o)!=t.sliceDoc(n,r)?{range:s}:{changes:{from:s.from+a,to:r==i.from?s.to:s.from+o,insert:e},range:ce.cursor(s.from+a+e.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}const Fae=new WeakMap;function vut(t){if(!Array.isArray(t))return t;let e=Fae.get(t);return e||Fae.set(t,e=Vae(t)),e}const Ex=qe.define(),f0=qe.define();class mut{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=qn(e,n),i=sa(r);this.chars.push(r);let a=e.slice(n,n+i),o=a.toUpperCase();this.folded.push(qn(o==a?a.toLowerCase():o,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:a,byWord:o}=this;if(n.length==1){let b=qn(e,0),_=sa(b),O=_==e.length?0:-100;if(b!=n[0])if(b==r[0])O+=-200;else return null;return this.ret(O,[0,_])}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,_=Math.min(e.length,200);b<_&&u<l;){let O=qn(e,b);(O==n[u]||O==r[u])&&(i[u++]=b),b+=sa(O)}if(u<l)return null}let c=0,f=0,d=!1,h=0,g=-1,v=-1,m=/[a-z]/.test(e),y=!0;for(let b=0,_=Math.min(e.length,200),O=0;b<_&&f<l;){let S=qn(e,b);s<0&&(c<l&&S==n[c]&&(a[c++]=b),h<l&&(S==n[h]||S==r[h]?(h==0&&(g=b),v=b+1,h++):h=0));let x,w=S<255?S>=48&&S<=57||S>=97&&S<=122?2:S>=65&&S<=90?1:0:(x=fR(S))!=x.toLowerCase()?1:x!=x.toUpperCase()?2:0;(!b||w==1&&m||O==0&&w!=0)&&(n[f]==S||r[f]==S&&(d=!0)?o[f++]=b:o.length&&(y=!1)),O=w,b+=sa(S)}return f==l&&o[0]==0&&y?this.result(-100+(d?-200:0),o,e):h==l&&g==0?this.ret(-200-e.length+(v==e.length?0:-100),[0,v]):s>-1?this.ret(-700-e.length,[s,s+this.pattern.length]):h==l?this.ret(-900-e.length,[g,v]):f==l?this.result(-100+(d?-200:0)+-700+(y?0:-1100),o,e):n.length==2?null:this.result((i[0]?-700:0)+-200+-1100,i,e)}result(e,n,r){let i=[],a=0;for(let o of n){let s=o+(this.astral?sa(qn(r,o)):1);a&&i[a-1]==o?i[a-1]=s:(i[a++]=o,i[a++]=s)}return this.ret(e-r.length,i)}}class yut{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 tr=Ee.define({combine(t){return To(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:but,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=>Wae(e(r),n(r)),optionClass:(e,n)=>r=>Wae(e(r),n(r)),addToOptions:(e,n)=>e.concat(n),filterStrict:(e,n)=>e||n})}});function Wae(t,e){return t?e?t+" "+e:t:e}function but(t,e,n,r,i,a){let o=t.textDirection==Ht.RTL,s=o,l=!1,u="top",c,f,d=e.left-i.left,h=i.right-e.right,g=r.right-r.left,v=r.bottom-r.top;if(s&&d<Math.min(g,h)?s=!1:!s&&h<Math.min(g,d)&&(s=!0),g<=(s?d:h))c=Math.max(i.top,Math.min(n.top,i.bottom-v))-e.top,f=Math.min(400,s?d:h);else{l=!0,f=Math.min(400,(o?e.right:i.right-e.left)-30);let b=i.bottom-e.bottom;b>=v||b>e.top?c=n.bottom-e.top:(u="bottom",c=e.bottom-n.top)}let m=(e.bottom-e.top)/a.offsetHeight,y=(e.right-e.left)/a.offsetWidth;return{style:`${u}: ${c/m}px; max-width: ${f/y}px`,class:"cm-completionInfo-"+(l?o?"left-narrow":"right-narrow":s?"left":"right")}}function _ut(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,a){let o=document.createElement("span");o.className="cm-completionLabel";let s=n.displayLabel||n.label,l=0;for(let u=0;u<a.length;){let c=a[u++],f=a[u++];c>l&&o.appendChild(document.createTextNode(s.slice(l,c)));let d=o.appendChild(document.createElement("span"));d.appendChild(document.createTextNode(s.slice(c,f))),d.className="cm-completionMatchedText",l=f}return l<s.length&&o.appendChild(document.createTextNode(s.slice(l))),o},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 rN(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 Out{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:a,selected:o}=i.open,s=e.state.facet(tr);this.optionContent=_ut(s),this.optionClass=s.optionClass,this.tooltipClass=s.tooltipClass,this.range=rN(a.length,o,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(tr).closeOnBlur&&l.relatedTarget!=e.contentDOM&&e.dispatch({effects:f0.of(null)})}),this.showOptions(a,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:a,selected:o,disabled:s}=r.open;(!i.open||i.open.options!=a)&&(this.range=rN(a.length,o,e.state.facet(tr).maxRenderedOptions),this.showOptions(a,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=rN(n.options.length,n.selected,this.view.state.facet(tr).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 a=typeof i=="string"?document.createTextNode(i):i(r);if(!a)return;"then"in a?a.then(o=>{o&&this.view.state.field(this.stateField,!1)==e&&this.addInfoPane(o,r)}).catch(o=>Ur(this.view.state,o,"completion info")):this.addInfoPane(a,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:a}=e;r.appendChild(i),this.infoDestroy=a||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&&xut(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(),a=this.space;if(!a){let o=this.dom.ownerDocument.defaultView||window;a={left:0,top:0,right:o.innerWidth,bottom:o.innerHeight}}return i.top>Math.min(a.bottom,n.bottom)-10||i.bottom<Math.max(a.top,n.top)+10?null:this.view.state.facet(tr).positionInfo(this.view,n,i,r,a,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 a=null;for(let o=r.from;o<r.to;o++){let{completion:s,match:l}=e[o],{section:u}=s;if(u){let d=typeof u=="string"?u:u.name;if(d!=a&&(o>r.from||r.from==0))if(a=d,typeof u!="string"&&u.header)i.appendChild(u.header(u));else{let h=i.appendChild(document.createElement("completion-section"));h.textContent=d}}const c=i.appendChild(document.createElement("li"));c.id=n+"-"+o,c.setAttribute("role","option");let f=this.optionClass(s);f&&(c.className=f);for(let d of this.optionContent){let h=d(s,this.view.state,this.view,l);h&&c.appendChild(h)}}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 Sut(t,e){return n=>new Out(n,t,e)}function xut(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 Qae(t){return(t.boost||0)*100+(t.apply?10:0)+(t.info?5:0)+(t.type?1:0)}function wut(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)}},a=e.facet(tr);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 Bae(f,u.source,c?c(f):[],1e9-n.length));else{let f=e.sliceDoc(u.from,u.to),d,h=a.filterStrict?new yut(f):new mut(f);for(let g of u.result.options)if(d=h.match(g.label)){let v=g.displayLabel?c?c(g,d.matched):[]:d.matched;i(new Bae(g,u.source,v,d.score+(g.boost||0)))}}}if(r){let u=Object.create(null),c=0,f=(d,h)=>{var g,v;return((g=d.rank)!==null&&g!==void 0?g:1e9)-((v=h.rank)!==null&&v!==void 0?v:1e9)||(d.name<h.name?-1:1)};for(let d of r.sort(f))c-=1e5,u[d.name]=c;for(let d of n){let{section:h}=d.completion;h&&(d.score+=u[typeof h=="string"?h:h.name])}}let o=[],s=null,l=a.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?o.push(u):Qae(u.completion)>Qae(s)&&(o[o.length-1]=u),s=u.completion}return o}class jh{constructor(e,n,r,i,a,o){this.options=e,this.attrs=n,this.tooltip=r,this.timestamp=i,this.selected=a,this.disabled=o}setSelected(e,n){return e==this.selected||e>=this.options.length?this:new jh(this.options,Hae(n,e),this.tooltip,this.timestamp,e,this.disabled)}static build(e,n,r,i,a){let o=wut(e,n);if(!o.length)return i&&e.some(l=>l.state==1)?new jh(i.options,i.attrs,i.tooltip,i.timestamp,i.selected,!0):null;let s=n.facet(tr).selectOnOpen?0:-1;if(i&&i.selected!=s&&i.selected!=-1){let l=i.options[i.selected].completion;for(let u=0;u<o.length;u++)if(o[u].completion==l){s=u;break}}return new jh(o,Hae(r,s),{pos:e.reduce((l,u)=>u.hasResult()?Math.min(l,u.from):l,1e8),create:Eut,above:a.aboveCursor},i?i.timestamp:Date.now(),s,!1)}map(e){return new jh(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:e.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class Mx{constructor(e,n,r){this.active=e,this.id=n,this.open=r}static start(){return new Mx($ut,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(e){let{state:n}=e,r=n.facet(tr),a=(r.override||n.languageDataAt("autocomplete",Yl(n)).map(vut)).map(s=>(this.active.find(u=>u.source==s)||new _i(s,this.active.some(u=>u.state!=0)?1:0)).update(e,r));a.length==this.active.length&&a.every((s,l)=>s==this.active[l])&&(a=this.active);let o=this.open;o&&e.docChanged&&(o=o.map(e.changes)),e.selection||a.some(s=>s.hasResult()&&e.changes.touchesRange(s.from,s.to))||!Cut(a,this.active)?o=jh.build(a,n,this.id,o,r):o&&o.disabled&&!a.some(s=>s.state==1)&&(o=null),!o&&a.every(s=>s.state!=1)&&a.some(s=>s.hasResult())&&(a=a.map(s=>s.hasResult()?new _i(s.source,0):s));for(let s of e.effects)s.is(Zae)&&(o=o&&o.setSelected(s.value,this.id));return a==this.active&&o==this.open?this:new Mx(a,this.id,o)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?Tut:Put}}function Cut(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,a=r==e.length;if(i||a)return i==a;if(t[n++].result!=e[r++].result)return!1}}const Tut={"aria-autocomplete":"list"},Put={};function Hae(t,e){let n={"aria-autocomplete":"list","aria-haspopup":"listbox","aria-controls":t};return e>-1&&(n["aria-activedescendant"]=t+"-"+e),n}const $ut=[];function jae(t,e){if(t.isUserEvent("input.complete")){let r=t.annotation(nN);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 _i{constructor(e,n,r=-1){this.source=e,this.state=n,this.explicitPos=r}hasResult(){return!1}update(e,n){let r=jae(e,n),i=this;(r&8||r&16&&this.touches(e))&&(i=new _i(i.source,0)),r&4&&i.state==0&&(i=new _i(this.source,1)),i=i.updateFor(e,r);for(let a of e.effects)if(a.is(Ex))i=new _i(i.source,1,a.value?Yl(e.state):-1);else if(a.is(f0))i=new _i(i.source,0);else if(a.is(Gae))for(let o of a.value)o.source==i.source&&(i=o);return i}updateFor(e,n){return this.map(e.changes)}map(e){return e.empty||this.explicitPos<0?this:new _i(this.source,this.state,e.mapPos(this.explicitPos))}touches(e){return e.changes.touchesRange(Yl(e.state))}}class Gh extends _i{constructor(e,n,r,i,a){super(e,2,n),this.result=r,this.from=i,this.to=a}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 a=e.changes.mapPos(this.from),o=e.changes.mapPos(this.to,1),s=Yl(e.state);if((this.explicitPos<0?s<=a:s<this.from)||s>o||!i||n&2&&Yl(e.startState)==this.from)return new _i(this.source,n&4?1:0);let l=this.explicitPos<0?-1:e.changes.mapPos(this.explicitPos);return Aut(i.validFor,e.state,a,o)?new Gh(this.source,l,i,a,o):i.update&&(i=i.update(i,a,o,new Nae(e.state,s,l>=0)))?new Gh(this.source,l,i,i.from,(r=i.to)!==null&&r!==void 0?r:Yl(e.state)):new _i(this.source,1,l)}map(e){return e.empty?this:(this.result.map?this.result.map(this.result,e):this.result)?new Gh(this.source,this.explicitPos<0?-1:e.mapPos(this.explicitPos),this.result,e.mapPos(this.from),e.mapPos(this.to,1)):new _i(this.source,0)}touches(e){return e.changes.touchesRange(this.from,this.to)}}function Aut(t,e,n,r){if(!t)return!1;let i=e.sliceDoc(n,r);return typeof t=="function"?t(i,n,r,e):zae(t,!0).test(i)}const Gae=qe.define({map(t,e){return t.map(n=>n.map(e))}}),Zae=qe.define(),Kr=Vn.define({create(){return Mx.start()},update(t,e){return t.update(e)},provide:t=>[hk.from(t,e=>e.tooltip),Ce.contentAttributes.from(t,e=>e.attrs)]});function iN(t,e){const n=e.completion.apply||e.completion.label;let r=t.state.field(Kr).active.find(i=>i.source==e.source);return r instanceof Gh?(typeof n=="string"?t.dispatch(Object.assign(Object.assign({},gut(t.state,n,r.from,r.to)),{annotations:nN.of(e.completion)})):n(t,e.completion,r.from,r.to),!0):!1}const Eut=Sut(Kr,iN);function Ix(t,e="option"){return n=>{let r=n.state.field(Kr,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp<n.state.facet(tr).interactionDelay)return!1;let i=1,a;e=="page"&&(a=jre(n,r.open.tooltip))&&(i=Math.max(2,Math.floor(a.dom.offsetHeight/a.dom.querySelector("li").offsetHeight)-1));let{length:o}=r.open.options,s=r.open.selected>-1?r.open.selected+i*(t?1:-1):t?0:o-1;return s<0?s=e=="page"?0:o-1:s>=o&&(s=e=="page"?o-1:0),n.dispatch({effects:Zae.of(s)}),!0}}const Mut=t=>{let e=t.state.field(Kr,!1);return t.state.readOnly||!e||!e.open||e.open.selected<0||e.open.disabled||Date.now()-e.open.timestamp<t.state.facet(tr).interactionDelay?!1:iN(t,e.open.options[e.open.selected])},Iut=t=>t.state.field(Kr,!1)?(t.dispatch({effects:Ex.of(!0)}),!0):!1,Dut=t=>{let e=t.state.field(Kr,!1);return!e||!e.active.some(n=>n.state!=0)?!1:(t.dispatch({effects:f0.of(null)}),!0)};class Rut{constructor(e,n){this.active=e,this.context=n,this.time=Date.now(),this.updates=[],this.done=void 0}}const kut=50,Nut=1e3,Lut=cn.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(Kr).active)e.state==1&&this.startQuery(e)}update(t){let e=t.state.field(Kr),n=t.state.facet(tr);if(!t.selectionSet&&!t.docChanged&&t.startState.field(Kr)==e)return;let r=t.transactions.some(a=>{let o=jae(a,n);return o&8||(a.selection||a.docChanged)&&!(o&3)});for(let a=0;a<this.running.length;a++){let o=this.running[a];if(r||o.updates.length+t.transactions.length>kut&&Date.now()-o.time>Nut){for(let s of o.context.abortListeners)try{s()}catch(l){Ur(this.view.state,l)}o.context.abortListeners=null,this.running.splice(a--,1)}else o.updates.push(...t.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),t.transactions.some(a=>a.effects.some(o=>o.is(Ex)))&&(this.pendingStart=!0);let i=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=e.active.some(a=>a.state==1&&!this.running.some(o=>o.active.source==a.source))?setTimeout(()=>this.startUpdate(),i):-1,this.composing!=0)for(let a of t.transactions)a.isUserEvent("input.type")?this.composing=2:this.composing==2&&a.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:t}=this.view,e=t.field(Kr);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=Yl(e),r=new Nae(e,n,t.explicitPos==n,this.view),i=new Rut(t,r);this.running.push(i),Promise.resolve(t.source(r)).then(a=>{i.context.aborted||(i.done=a||null,this.scheduleAccept())},a=>{this.view.dispatch({effects:f0.of(null)}),Ur(this.view.state,a)})}scheduleAccept(){this.running.every(t=>t.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(tr).updateSyncTime))}accept(){var t;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let e=[],n=this.view.state.facet(tr);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 o=new Gh(i.active.source,i.active.explicitPos,i.done,i.done.from,(t=i.done.to)!==null&&t!==void 0?t:Yl(i.updates.length?i.updates[0].startState:this.view.state));for(let s of i.updates)o=o.update(s,n);if(o.hasResult()){e.push(o);continue}}let a=this.view.state.field(Kr).active.find(o=>o.source==i.active.source);if(a&&a.state==1)if(i.done==null){let o=new _i(i.active.source,0);for(let s of i.updates)o=o.update(s,n);o.state!=1&&e.push(o)}else this.startQuery(a)}e.length&&this.view.dispatch({effects:Gae.of(e)})}},{eventHandlers:{blur(t){let e=this.view.state.field(Kr,!1);if(e&&e.tooltip&&this.view.state.facet(tr).closeOnBlur){let n=e.open&&jre(this.view,e.open.tooltip);(!n||!n.dom.contains(t.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:f0.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:Ex.of(!1)}),20),this.composing=0}}}),Vut=typeof navigator=="object"&&/Win/.test(navigator.platform),But=kl.highest(Ce.domEventHandlers({keydown(t,e){let n=e.state.field(Kr,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||t.key.length>1||t.ctrlKey&&!(Vut&&t.altKey)||t.metaKey)return!1;let r=n.open.options[n.open.selected],i=n.active.find(o=>o.source==r.source),a=r.completion.commitCharacters||i.result.commitCharacters;return a&&a.indexOf(t.key)>-1&&iN(e,r),!1}})),Uae=Ce.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 zut{constructor(e,n,r,i){this.field=e,this.line=n,this.from=r,this.to=i}}class aN{constructor(e,n,r){this.field=e,this.from=n,this.to=r}map(e){let n=e.mapPos(this.from,-1,Kn.TrackDel),r=e.mapPos(this.to,1,Kn.TrackDel);return n==null||r==null?null:new aN(this.field,n,r)}}class oN{constructor(e,n){this.lines=e,this.fieldPositions=n}instantiate(e,n){let r=[],i=[n],a=e.doc.lineAt(n),o=/^\s*/.exec(a.text)[0];for(let l of this.lines){if(r.length){let u=o,c=/^\t*/.exec(l)[0].length;for(let f=0;f<c;f++)u+=e.facet(n0);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 aN(l.field,i[l.line]+l.from,i[l.line]+l.to));return{text:r,ranges:s}}static parse(e){let n=[],r=[],i=[],a;for(let o of e.split(/\r\n?|\n/)){for(;a=/[#$]\{(?:(\d+)(?::([^}]*))?|((?:\\[{}]|[^}])*))\}/.exec(o);){let s=a[1]?+a[1]:null,l=a[2]||a[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 zut(u,r.length,a.index,a.index+c.length)),o=o.slice(0,a.index)+l+o.slice(a.index+a[0].length)}o=o.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(o)}return new oN(r,i)}}let Fut=Ne.widget({widget:new class extends Po{toDOM(){let t=document.createElement("span");return t.className="cm-snippetFieldPosition",t}ignoreEvent(){return!1}}}),Wut=Ne.mark({class:"cm-snippetField"});class Zh{constructor(e,n){this.ranges=e,this.active=n,this.deco=Ne.set(e.map(r=>(r.from==r.to?Fut:Wut).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 Zh(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 d0=qe.define({map(t,e){return t&&t.map(e)}}),Qut=qe.define(),h0=Vn.define({create(){return null},update(t,e){for(let n of e.effects){if(n.is(d0))return n.value;if(n.is(Qut)&&t)return new Zh(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=>Ce.decorations.from(t,e=>e?e.deco:Ne.none)});function sN(t,e){return ce.create(t.filter(n=>n.field==e).map(n=>ce.range(n.from,n.to)))}function Hut(t){let e=oN.parse(t);return(n,r,i,a)=>{let{text:o,ranges:s}=e.instantiate(n.state,i),l={changes:{from:i,to:a,insert:Ot.of(o)},scrollIntoView:!0,annotations:r?[nN.of(r),vn.userEvent.of("input.complete")]:void 0};if(s.length&&(l.selection=sN(s,0)),s.some(u=>u.field>0)){let u=new Zh(s,0),c=l.effects=[d0.of(u)];n.state.field(h0,!1)===void 0&&c.push(qe.appendConfig.of([h0,Gut,Zut,Uae]))}n.dispatch(n.state.update(l))}}function Xae(t){return({state:e,dispatch:n})=>{let r=e.field(h0,!1);if(!r||t<0&&r.active==0)return!1;let i=r.active+t,a=t>0&&!r.ranges.some(o=>o.field==i+t);return n(e.update({selection:sN(r.ranges,i),effects:d0.of(a?null:new Zh(r.ranges,i)),scrollIntoView:!0})),!0}}const jut=[{key:"Tab",run:Xae(1),shift:Xae(-1)},{key:"Escape",run:({state:t,dispatch:e})=>t.field(h0,!1)?(e(t.update({effects:d0.of(null)})),!0):!1}],Yae=Ee.define({combine(t){return t.length?t[0]:jut}}),Gut=kl.highest(Hm.compute([Yae],t=>t.facet(Yae)));function Jr(t,e){return Object.assign(Object.assign({},e),{apply:Hut(t)})}const Zut=Ce.domEventHandlers({mousedown(t,e){let n=e.state.field(h0,!1),r;if(!n||(r=e.posAtCoords({x:t.clientX,y:t.clientY}))==null)return!1;let i=n.ranges.find(a=>a.from<=r&&a.to>=r);return!i||i.field==n.active?!1:(e.dispatch({selection:sN(n.ranges,i.field),effects:d0.of(n.ranges.some(a=>a.field>i.field)?new Zh(n.ranges,i.field):null),scrollIntoView:!0}),!0)}}),p0={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},tf=qe.define({map(t,e){let n=e.mapPos(t,-1,Kn.TrackAfter);return n??void 0}}),lN=new class extends Uc{};lN.startSide=1,lN.endSide=-1;const qae=Vn.define({create(){return St.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(tf)&&(t=t.update({add:[lN.range(n.value,n.value+1)]}));return t}});function Uut(){return[Yut,qae]}const uN="()[]{}<>";function Kae(t){for(let e=0;e<uN.length;e+=2)if(uN.charCodeAt(e)==t)return uN.charAt(e+1);return fR(t<128?t:t+1)}function Jae(t,e){return t.languageDataAt("closeBrackets",e)[0]||p0}const Xut=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),Yut=Ce.inputHandler.of((t,e,n,r)=>{if((Xut?t.composing:t.compositionStarted)||t.state.readOnly)return!1;let i=t.state.selection.main;if(r.length>2||r.length==2&&sa(qn(r,0))==1||e!=i.from||n!=i.to)return!1;let a=Kut(t.state,r);return a?(t.dispatch(a),!0):!1}),qut=[{key:"Backspace",run:({state:t,dispatch:e})=>{if(t.readOnly)return!1;let r=Jae(t,t.selection.main.head).brackets||p0.brackets,i=null,a=t.changeByRange(o=>{if(o.empty){let s=Jut(t.doc,o.head);for(let l of r)if(l==s&&Dx(t.doc,o.head)==Kae(qn(l,0)))return{changes:{from:o.head-l.length,to:o.head+l.length},range:ce.cursor(o.head-l.length)}}return{range:i=o}});return i||e(t.update(a,{scrollIntoView:!0,userEvent:"delete.backward"})),!i}}];function Kut(t,e){let n=Jae(t,t.selection.main.head),r=n.brackets||p0.brackets;for(let i of r){let a=Kae(qn(i,0));if(e==i)return a==i?nct(t,i,r.indexOf(i+i+i)>-1,n):ect(t,i,a,n.before||p0.before);if(e==a&&eoe(t,t.selection.main.from))return tct(t,i,a)}return null}function eoe(t,e){let n=!1;return t.field(qae).between(0,t.doc.length,r=>{r==e&&(n=!0)}),n}function Dx(t,e){let n=t.sliceString(e,e+2);return n.slice(0,sa(qn(n,0)))}function Jut(t,e){let n=t.sliceString(e-2,e);return sa(qn(n,0))==n.length?n:n.slice(1)}function ect(t,e,n,r){let i=null,a=t.changeByRange(o=>{if(!o.empty)return{changes:[{insert:e,from:o.from},{insert:n,from:o.to}],effects:tf.of(o.to+e.length),range:ce.range(o.anchor+e.length,o.head+e.length)};let s=Dx(t.doc,o.head);return!s||/\s/.test(s)||r.indexOf(s)>-1?{changes:{insert:e+n,from:o.head},effects:tf.of(o.head+e.length),range:ce.cursor(o.head+e.length)}:{range:i=o}});return i?null:t.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function tct(t,e,n){let r=null,i=t.changeByRange(a=>a.empty&&Dx(t.doc,a.head)==n?{changes:{from:a.head,to:a.head+n.length,insert:n},range:ce.cursor(a.head+n.length)}:r={range:a});return r?null:t.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function nct(t,e,n,r){let i=r.stringPrefixes||p0.stringPrefixes,a=null,o=t.changeByRange(s=>{if(!s.empty)return{changes:[{insert:e,from:s.from},{insert:e,from:s.to}],effects:tf.of(s.to+e.length),range:ce.range(s.anchor+e.length,s.head+e.length)};let l=s.head,u=Dx(t.doc,l),c;if(u==e){if(toe(t,l))return{changes:{insert:e+e,from:l},effects:tf.of(l+e.length),range:ce.cursor(l+e.length)};if(eoe(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:ce.cursor(l+d.length)}}}else{if(n&&t.sliceDoc(l-2*e.length,l)==e+e&&(c=noe(t,l-2*e.length,i))>-1&&toe(t,c))return{changes:{insert:e+e+e+e,from:l},effects:tf.of(l+e.length),range:ce.cursor(l+e.length)};if(t.charCategorizer(l)(u)!=Yt.Word&&noe(t,l,i)>-1&&!rct(t,l,e,i))return{changes:{insert:e+e,from:l},effects:tf.of(l+e.length),range:ce.cursor(l+e.length)}}return{range:a=s}});return a?null:t.update(o,{scrollIntoView:!0,userEvent:"input.type"})}function toe(t,e){let n=In(t).resolveInner(e+1);return n.parent&&n.from==e}function rct(t,e,n,r){let i=In(t).resolveInner(e,-1),a=r.reduce((o,s)=>Math.max(o,s.length),0);for(let o=0;o<5;o++){let s=t.sliceDoc(i.from,Math.min(i.to,i.from+n.length+a)),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 noe(t,e,n){let r=t.charCategorizer(e);if(r(t.sliceDoc(e-1,e))!=Yt.Word)return e;for(let i of n){let a=e-i.length;if(t.sliceDoc(a,e)==i&&r(t.sliceDoc(a-1,a))!=Yt.Word)return a}return-1}function ict(t={}){return[But,Kr,tr.of(t),Lut,act,Uae]}const roe=[{key:"Ctrl-Space",run:Iut},{key:"Escape",run:Dut},{key:"ArrowDown",run:Ix(!0)},{key:"ArrowUp",run:Ix(!1)},{key:"PageDown",run:Ix(!0,"page")},{key:"PageUp",run:Ix(!1,"page")},{key:"Enter",run:Mut}],act=kl.highest(Hm.computeN([tr],t=>t.facet(tr).defaultKeymap?[roe]:[]));class oct{constructor(e,n,r){this.from=e,this.to=n,this.diagnostic=r}}class nf{constructor(e,n,r){this.diagnostics=e,this.panel=n,this.selected=r}static init(e,n,r){let i=e,a=r.facet(g0).markerFilter;a&&(i=a(i,r));let o=Ne.set(i.map(s=>s.from==s.to||s.from==s.to-1&&r.doc.lineAt(s.from).to==s.from?Ne.widget({widget:new pct(s),diagnostic:s}).range(s.from):Ne.mark({attributes:{class:"cm-lintRange cm-lintRange-"+s.severity+(s.markClass?" "+s.markClass:"")},diagnostic:s}).range(s.from,s.to)),!0);return new nf(o,n,Uh(o))}}function Uh(t,e=null,n=0){let r=null;return t.between(n,1e9,(i,a,{spec:o})=>{if(!(e&&o.diagnostic!=e))return r=new oct(i,a,o.diagnostic),!1}),r}function sct(t,e){let n=e.pos,r=e.end||n,i=t.state.facet(g0).hideOn(t,n,r);if(i!=null)return i;let a=t.startState.doc.lineAt(e.pos);return!!(t.effects.some(o=>o.is(ioe))||t.changes.touchesRange(a.from,Math.max(a.to,r)))}function lct(t,e){return t.field(Oi,!1)?e:e.concat(qe.appendConfig.of(mct))}const ioe=qe.define(),cN=qe.define(),aoe=qe.define(),Oi=Vn.define({create(){return new nf(Ne.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 a=e.changes.mapPos(t.selected.from,1);r=Uh(n,t.selected.diagnostic,a)||Uh(n,null,a)}!n.size&&i&&e.state.facet(g0).autoPanel&&(i=null),t=new nf(n,i,r)}for(let n of e.effects)if(n.is(ioe)){let r=e.state.facet(g0).autoPanel?n.value.length?v0.open:null:t.panel;t=nf.init(n.value,r,e.state)}else n.is(cN)?t=new nf(t.diagnostics,n.value?v0.open:null,t.selected):n.is(aoe)&&(t=new nf(t.diagnostics,t.panel,n.value));return t},provide:t=>[Ym.from(t,e=>e.panel),Ce.decorations.from(t,e=>e.diagnostics)]}),uct=Ne.mark({class:"cm-lintRange cm-lintRange-active"});function cct(t,e,n){let{diagnostics:r}=t.state.field(Oi),i=[],a=2e8,o=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),a=Math.min(l,a),o=Math.max(u,o))});let s=t.state.facet(g0).tooltipFilter;return s&&(i=s(i,t.state)),i.length?{pos:a,end:o,above:t.state.doc.lineAt(a).to<o,create(){return{dom:fct(t,i)}}}:null}function fct(t,e){return Vt("ul",{class:"cm-tooltip-lint"},e.map(n=>loe(t,n,!1)))}const dct=t=>{let e=t.state.field(Oi,!1);(!e||!e.panel)&&t.dispatch({effects:lct(t.state,[cN.of(!0)])});let n=Xm(t,v0.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},ooe=t=>{let e=t.state.field(Oi,!1);return!e||!e.panel?!1:(t.dispatch({effects:cN.of(!1)}),!0)},hct=[{key:"Mod-Shift-m",run:dct,preventDefault:!0},{key:"F8",run:t=>{let e=t.state.field(Oi,!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)}}],g0=Ee.define({combine(t){return Object.assign({sources:t.map(e=>e.source).filter(e=>e!=null)},To(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 soe(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(a=>a.toLowerCase()==i.toLowerCase())){e.push(i);continue e}}e.push("")}return e}function loe(t,e,n){var r;let i=n?soe(e.actions):[];return Vt("li",{class:"cm-diagnostic cm-diagnostic-"+e.severity},Vt("span",{class:"cm-diagnosticText"},e.renderMessage?e.renderMessage(t):e.message),(r=e.actions)===null||r===void 0?void 0:r.map((a,o)=>{let s=!1,l=d=>{if(d.preventDefault(),s)return;s=!0;let h=Uh(t.state.field(Oi).diagnostics,e);h&&a.apply(t,h.from,h.to)},{name:u}=a,c=i[o]?u.indexOf(i[o]):-1,f=c<0?u:[u.slice(0,c),Vt("u",u.slice(c,c+1)),u.slice(c+1)];return Vt("button",{type:"button",class:"cm-diagnosticAction",onclick:l,onmousedown:l,"aria-label":` Action: ${u}${c<0?"":` (access key "${i[o]})"`}.`},f)}),e.source&&Vt("div",{class:"cm-diagnosticSource"},e.source))}class pct extends Po{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return Vt("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class uoe{constructor(e,n){this.diagnostic=n,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=loe(e,n,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class v0{constructor(e){this.view=e,this.items=[];let n=i=>{if(i.keyCode==27)ooe(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:a}=this.items[this.selectedIndex],o=soe(a.actions);for(let s=0;s<o.length;s++)if(o[s].toUpperCase().charCodeAt(0)==i.keyCode){let l=Uh(this.view.state.field(Oi).diagnostics,a);l&&a.actions[s].apply(e,l.from,l.to)}}else return;i.preventDefault()},r=i=>{for(let a=0;a<this.items.length;a++)this.items[a].dom.contains(i.target)&&this.moveSelection(a)};this.list=Vt("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:n,onclick:r}),this.dom=Vt("div",{class:"cm-panel-lint"},this.list,Vt("button",{type:"button",name:"close","aria-label":this.view.state.phrase("close"),onclick:()=>ooe(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(Oi).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(Oi),r=0,i=!1,a=null;for(e.between(0,this.view.state.doc.length,(o,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 uoe(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"),a=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 uoe(this.view,{from:-1,to:-1,severity:"info",message:this.view.state.phrase("No diagnostics")})),i=!0),a?(this.list.setAttribute("aria-activedescendant",a.id),this.view.requestMeasure({key:this,read:()=>({sel:a.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:o,panel:s})=>{let l=s.height/this.list.offsetHeight;o.top<s.top?this.list.scrollTop-=(s.top-o.top)/l:o.bottom>s.bottom&&(this.list.scrollTop+=(o.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(Oi),r=Uh(n.diagnostics,this.items[e].diagnostic);r&&this.view.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:aoe.of(r)})}static open(e){return new v0(e)}}function gct(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 Rx(t){return gct(`<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 vct=Ce.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:Rx("#d11")},".cm-lintRange-warning":{backgroundImage:Rx("orange")},".cm-lintRange-info":{backgroundImage:Rx("#999")},".cm-lintRange-hint":{backgroundImage:Rx("#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}}}),mct=[Oi,Ce.decorations.compute([Oi],t=>{let{selected:e,panel:n}=t.field(Oi);return!e||!n||e.from==e.to?Ne.none:Ne.set([uct.range(e.from,e.to)])}),dot(cct,{hideOn:sct}),vct],yct=[Oot(),wot(),Fat(),Nst(),cst(),Eat(),kat(),ht.allowMultipleSelections.of(!0),Jot(),Eie(pst,{fallback:!0}),_st(),Uut(),ict(),tot(),iot(),Zat(),Hlt(),Hm.of([...qut,...Llt,...uut,...jst,...ost,...roe,...hct])];/*!
  374. * VueCodemirror v6.1.1
  375. * Copyright (c) Surmon. All rights reserved.
  376. * Released under the MIT License.
  377. * Surmon
  378. */var bct=Object.freeze({autofocus:!1,disabled:!1,indentWithTab:!0,tabSize:2,placeholder:"",autoDestroy:!0,extensions:[yct]}),_ct=Symbol("vue-codemirror-global-config"),Dr,Oct=function(t){var e=t.onUpdate,n=t.onChange,r=t.onFocus,i=t.onBlur,a=function(o,s){var l={};for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&s.indexOf(u)<0&&(l[u]=o[u]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function"){var c=0;for(u=Object.getOwnPropertySymbols(o);c<u.length;c++)s.indexOf(u[c])<0&&Object.prototype.propertyIsEnumerable.call(o,u[c])&&(l[u[c]]=o[u[c]])}return l}(t,["onUpdate","onChange","onFocus","onBlur"]);return ht.create({doc:a.doc,selection:a.selection,extensions:(Array.isArray(a.extensions)?a.extensions:[a.extensions]).concat([Ce.updateListener.of(function(o){e(o),o.docChanged&&n(o.state.doc.toString(),o),o.focusChanged&&(o.view.hasFocus?r(o):i(o))})])})},Xh=function(t){var e=new Am;return{compartment:e,run:function(n){e.get(t.state)?t.dispatch({effects:e.reconfigure(n)}):t.dispatch({effects:qe.appendConfig.of(e.of(n))})}}},coe=function(t,e){var n=Xh(t),r=n.compartment,i=n.run;return function(a){var o=r.get(t.state);i(a??o!==e?e:[])}},kx={type:Boolean,default:void 0},Sct={autofocus:kx,disabled:kx,indentWithTab:kx,tabSize:Number,placeholder:String,style:Object,autoDestroy:kx,phrases:Object,root:Object,extensions:Array,selection:Object},xct={modelValue:{type:String,default:""}},wct=Object.assign(Object.assign({},Sct),xct);(function(t){t.Change="change",t.Update="update",t.Focus="focus",t.Blur="blur",t.Ready="ready",t.ModelUpdate="update:modelValue"})(Dr||(Dr={}));var rf={};rf[Dr.Change]=function(t,e){return!0},rf[Dr.Update]=function(t){return!0},rf[Dr.Focus]=function(t){return!0},rf[Dr.Blur]=function(t){return!0},rf[Dr.Ready]=function(t){return!0};var foe={};foe[Dr.ModelUpdate]=rf[Dr.Change];var Cct=Object.assign(Object.assign({},rf),foe),Tct=p.defineComponent({name:"VueCodemirror",props:Object.assign({},wct),emits:Object.assign({},Cct),setup:function(t,e){var n=p.shallowRef(),r=p.shallowRef(),i=p.shallowRef(),a=Object.assign(Object.assign({},bct),p.inject(_ct,{})),o=p.computed(function(){var s={};return Object.keys(p.toRaw(t)).forEach(function(l){var u;l!=="modelValue"&&(s[l]=(u=t[l])!==null&&u!==void 0?u:a[l])}),s});return p.onMounted(function(){var s;r.value=Oct({doc:t.modelValue,selection:o.value.selection,extensions:(s=a.extensions)!==null&&s!==void 0?s:[],onFocus:function(u){return e.emit(Dr.Focus,u)},onBlur:function(u){return e.emit(Dr.Blur,u)},onUpdate:function(u){return e.emit(Dr.Update,u)},onChange:function(u,c){u!==t.modelValue&&(e.emit(Dr.Change,u,c),e.emit(Dr.ModelUpdate,u,c))}}),i.value=function(u){return new Ce(Object.assign({},u))}({state:r.value,parent:n.value,root:o.value.root});var l=function(u){var c=function(){return u.state.doc.toString()},f=Xh(u).run,d=coe(u,[Ce.editable.of(!1),ht.readOnly.of(!0)]),h=coe(u,Hm.of([Vlt])),g=Xh(u).run,v=Xh(u).run,m=Xh(u).run,y=Xh(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:h,setTabSize:function(b){g([ht.tabSize.of(b),n0.of(" ".repeat(b))])},setPhrases:function(b){v([ht.phrases.of(b)])},setPlaceholder:function(b){m(qat(b))},setStyle:function(b){b===void 0&&(b={}),y(Ce.theme({"&":Object.assign({},b)}))}}}(i.value);p.watch(function(){return t.modelValue},function(u){u!==l.getDoc()&&l.setDoc(u)}),p.watch(function(){return t.extensions},function(u){return l.reExtensions(u||[])},{immediate:!0}),p.watch(function(){return o.value.disabled},function(u){return l.toggleDisabled(u)},{immediate:!0}),p.watch(function(){return o.value.indentWithTab},function(u){return l.toggleIndentWithTab(u)},{immediate:!0}),p.watch(function(){return o.value.tabSize},function(u){return l.setTabSize(u)},{immediate:!0}),p.watch(function(){return o.value.phrases},function(u){return l.setPhrases(u||{})},{immediate:!0}),p.watch(function(){return o.value.placeholder},function(u){return l.setPlaceholder(u)},{immediate:!0}),p.watch(function(){return o.value.style},function(u){return l.setStyle(u)},{immediate:!0}),o.value.autofocus&&l.focus(),e.emit(Dr.Ready,{state:r.value,view:i.value,container:n.value})}),p.onBeforeUnmount(function(){o.value.autoDestroy&&i.value&&function(s){s.destroy()}(i.value)}),function(){return p.h("div",{class:"v-codemirror",style:{display:"contents"},ref:n})}}}),Pct=Tct;const $ct="#e5c07b",doe="#e06c75",Act="#56b6c2",Ect="#ffffff",Nx="#abb2bf",fN="#7d8799",Mct="#61afef",Ict="#98c379",hoe="#d19a66",Dct="#c678dd",Rct="#21252b",poe="#2c313a",goe="#282c34",dN="#353a42",kct="#3E4451",voe="#528bff",Nct=Ce.theme({"&":{color:Nx,backgroundColor:goe},".cm-content":{caretColor:voe},".cm-cursor, .cm-dropCursor":{borderLeftColor:voe},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:kct},".cm-panels":{backgroundColor:Rct,color:Nx},".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:goe,color:fN,border:"none"},".cm-activeLineGutter":{backgroundColor:poe},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:dN},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:dN,borderBottomColor:dN},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:poe,color:Nx}}},{dark:!0}),Lct=o0.define([{tag:Y.keyword,color:Dct},{tag:[Y.name,Y.deleted,Y.character,Y.propertyName,Y.macroName],color:doe},{tag:[Y.function(Y.variableName),Y.labelName],color:Mct},{tag:[Y.color,Y.constant(Y.name),Y.standard(Y.name)],color:hoe},{tag:[Y.definition(Y.name),Y.separator],color:Nx},{tag:[Y.typeName,Y.className,Y.number,Y.changed,Y.annotation,Y.modifier,Y.self,Y.namespace],color:$ct},{tag:[Y.operator,Y.operatorKeyword,Y.url,Y.escape,Y.regexp,Y.link,Y.special(Y.string)],color:Act},{tag:[Y.meta,Y.comment],color:fN},{tag:Y.strong,fontWeight:"bold"},{tag:Y.emphasis,fontStyle:"italic"},{tag:Y.strikethrough,textDecoration:"line-through"},{tag:Y.link,color:fN,textDecoration:"underline"},{tag:Y.heading,fontWeight:"bold",color:doe},{tag:[Y.atom,Y.bool,Y.special(Y.variableName)],color:hoe},{tag:[Y.processingInstruction,Y.string,Y.inserted],color:Ict},{tag:Y.invalid,color:Ect}]),Vct=[Nct,Eie(Lct)];class Lx{constructor(e,n,r,i,a,o,s,l,u,c=0,f){this.p=e,this.stack=n,this.state=r,this.reducePos=i,this.pos=a,this.score=o,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 Lx(e,[],n,r,r,0,[],0,i?new moe(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:a}=this.p;this.reducePos<this.pos-25&&this.setLookAhead(this.pos);let o=a.dynamicPrecedence(i);if(o&&(this.score+=o),r==0){this.pushState(a.getGoto(this.state,i,!0),this.reducePos),i<a.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<a.minRepeatTerm||e&131072){let d=a.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=a.getGoto(d,i,!0)}for(;this.stack.length>s;)this.stack.pop();this.reduceContext(i,l)}storeNode(e,n,r,i=4,a=!1){if(e==0&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let o=this,s=this.buffer.length;if(s==0&&o.parent&&(s=o.bufferBase-o.parent.bufferBase,o=o.parent),s>0&&o.buffer[s-4]==0&&o.buffer[s-1]>-1){if(n==r)return;if(o.buffer[s-2]>=n){o.buffer[s-2]=r;return}}}if(!a||this.pos==r)this.buffer.push(e,n,r,i);else{let o=this.buffer.length;if(o>0&&this.buffer[o-4]!=0)for(;o>0&&this.buffer[o-2]>r;)this.buffer[o]=this.buffer[o-4],this.buffer[o+1]=this.buffer[o-3],this.buffer[o+2]=this.buffer[o-2],this.buffer[o+3]=this.buffer[o-1],o-=4,i>4&&(i-=4);this.buffer[o]=e,this.buffer[o+1]=n,this.buffer[o+2]=r,this.buffer[o+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 a=e,{parser:o}=this.p;(i>this.pos||n<=o.maxNode)&&(this.pos=i,o.stateFlag(a,1)||(this.reducePos=i)),this.pushState(a,r),this.shiftContext(n,r),n<=o.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 Lx(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 Bct(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 a=0,o;a<n.length;a+=2)(o=n[a+1])!=this.state&&this.p.parser.hasAction(o,e)&&i.push(n[a],o);if(this.stack.length<120)for(let a=0;i.length<8&&a<n.length;a+=2){let o=n[a+1];i.some((s,l)=>l&1&&s==o)||i.push(n[a],o)}n=i}let r=[];for(let i=0;i<n.length&&r.length<4;i+=2){let a=n[i+1];if(a==this.state)continue;let o=this.split();o.pushState(a,this.pos),o.storeNode(0,o.pos,o.pos,4,!0),o.shiftContext(n[i],this.pos),o.reducePos=this.pos,o.score-=200,r.push(o)}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,a=this.stack.length-r*3;if(a<0||e.getGoto(this.stack[a],i,!1)<0){let o=this.findForcedReduction();if(o==null)return!1;n=o}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,a)=>{if(!n.includes(i))return n.push(i),e.allActions(i,o=>{if(!(o&393216))if(o&65536){let s=(o>>19)-a;if(s>1){let l=o&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(o,a+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 moe(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 moe{constructor(e,n){this.tracker=e,this.context=n,this.hash=e.strict?e.hash(n):0}}class Bct{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 Vx{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 Vx(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 Vx(this.stack,this.pos,this.index)}}function m0(t,e=Uint16Array){if(typeof t!="string")return t;let n=null;for(let r=0,i=0;r<t.length;){let a=0;for(;;){let o=t.charCodeAt(r++),s=!1;if(o==126){a=65535;break}o>=92&&o--,o>=34&&o--;let l=o-32;if(l>=46&&(l-=46,s=!0),a+=l,s)break;a*=46}n?n[i++]=a:n=new e(a)}return n}class Bx{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const yoe=new Bx;class zct{constructor(e,n){this.input=e,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=yoe,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,a=this.pos+e;for(;a<r.from;){if(!i)return null;let o=this.ranges[--i];a-=r.from-o.to,r=o}for(;n<0?a>r.to:a>=r.to;){if(i==this.ranges.length-1)return null;let o=this.ranges[++i];a+=o.from-r.to,r=o}return a}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 a=this.resolveOffset(e,1);if(a==null)return-1;if(r=a,r>=this.chunk2Pos&&r<this.chunk2Pos+this.chunk2.length)i=this.chunk2.charCodeAt(r-this.chunk2Pos);else{let o=this.rangeIndex,s=this.range;for(;s.to<=r;)s=this.ranges[++o];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=yoe,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 Yh{constructor(e,n){this.data=e,this.id=n}token(e,n){let{parser:r}=n.p;boe(this.data,e,n,this.id,r.data,r.tokenPrecTable)}}Yh.prototype.contextual=Yh.prototype.fallback=Yh.prototype.extend=!1;class hN{constructor(e,n,r){this.precTable=n,this.elseToken=r,this.data=typeof e=="string"?m0(e):e}token(e,n){let r=e.pos,i=0;for(;;){let a=e.next<0,o=e.resolveOffset(1,1);if(boe(this.data,e,n,0,this.data,this.precTable),e.token.value>-1)break;if(this.elseToken==null)return;if(a||i++,o==null)break;e.reset(o,e.token)}i&&(e.reset(r,e.token),e.acceptToken(this.elseToken,i))}}hN.prototype.contextual=Yh.prototype.fallback=Yh.prototype.extend=!1;class zx{constructor(e,n={}){this.token=e,this.contextual=!!n.contextual,this.fallback=!!n.fallback,this.extend=!!n.extend}}function boe(t,e,n,r,i,a){let o=0,s=1<<r,{dialect:l}=n.p.parser;e:for(;s&t[o];){let u=t[o+1];for(let h=o+3;h<u;h+=2)if((t[h+1]&s)>0){let g=t[h];if(l.allows(g)&&(e.token.value==-1||e.token.value==g||Fct(g,e.token.value,i,a))){e.acceptToken(g);break}}let c=e.next,f=0,d=t[o+2];if(e.next<0&&d>f&&t[u+d*3-3]==65535){o=t[u+d*3-1];continue e}for(;f<d;){let h=f+d>>1,g=u+h+(h<<1),v=t[g],m=t[g+1]||65536;if(c<v)d=h;else if(c>=m)f=h+1;else{o=t[g+2],e.advance();continue e}}break}}function _oe(t,e,n){for(let r=e,i;(i=t[r])!=65535;r++)if(i==n)return r-e;return-1}function Fct(t,e,n,r){let i=_oe(n,r,e);return i<0||_oe(n,r,t)<i}const Si=typeof process<"u"&&process.env&&/\bparse\b/.test(process.env.LOG);let pN=null;function Ooe(t,e,n){let r=t.cursor(Mn.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 Wct{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?Ooe(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?Ooe(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 a=r.children[i],o=this.start[n]+r.positions[i];if(o>e)return this.nextStart=o,null;if(a instanceof yn){if(o==e){if(o<this.safeFrom)return null;let s=o+a.length;if(s<=this.safeTo){let l=a.prop(st.lookAhead);if(!l||s+l<this.fragment.to)return a}}this.index[n]++,o+a.length>=Math.max(this.safeFrom,e)&&(this.trees.push(a),this.start.push(o),this.index.push(0))}else this.index[n]++,this.nextStart=o+a.length}}}class Qct{constructor(e,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(r=>new Bx)}getActions(e){let n=0,r=null,{parser:i}=e.p,{tokenizers:a}=i,o=i.stateSlot(e.state,3),s=e.curContext?e.curContext.hash:0,l=0;for(let u=0;u<a.length;u++){if(!(1<<u&o))continue;let c=a[u],f=this.tokens[u];if(!(r&&!c.fallback)&&((c.contextual||f.start!=e.pos||f.mask!=o||f.context!=s)&&(this.updateCachedToken(f,c,e),f.mask=o,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 Bx,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 Bx,{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:a}=r.p;for(let o=0;o<a.specialized.length;o++)if(a.specialized[o]==e.value){let s=a.specializers[o](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 a=0;a<i;a+=3)if(this.actions[a]==e)return i;return this.actions[i++]=e,this.actions[i++]=n,this.actions[i++]=r,i}addActions(e,n,r,i){let{state:a}=e,{parser:o}=e.p,{data:s}=o;for(let l=0;l<2;l++)for(let u=o.stateSlot(a,l?2:1);;u+=3){if(s[u]==65535)if(s[u+1]==1)u=Es(s,u+2);else{i==0&&s[u+1]==2&&(i=this.putAction(Es(s,u+2),n,r,i));break}s[u]==n&&(i=this.putAction(Es(s,u+1),n,r,i))}return i}}class Hct{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 zct(n,i),this.tokens=new Qct(e,this.stream),this.topTerm=e.top[1];let{from:a}=i[0];this.stacks=[Lx.start(this,e.top[0],a)],this.fragments=r.length&&this.stream.end-a>e.bufferLength*4?new Wct(r,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e=this.stacks,n=this.minStackPos,r=this.stacks=[],i,a;if(this.bigReductionCount>300&&e.length==1){let[o]=e;for(;o.forceReduce()&&o.stack.length&&o.stack[o.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;o<e.length;o++){let s=e[o];for(;;){if(this.tokens.mainToken=null,s.pos>n)r.push(s);else{if(this.advanceStack(s,r,e))continue;{i||(i=[],a=[]),i.push(s);let l=this.tokens.getMainToken(s);a.push(l.value,l.end)}}break}}if(!r.length){let o=i&&Zct(i);if(o)return Si&&console.log("Finish with "+this.stackID(o)),this.stackToTree(o);if(this.parser.strict)throw Si&&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 o=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,a,r);if(o)return Si&&console.log("Force-finish "+this.stackID(o)),this.stackToTree(o.forceAll())}if(this.recovering){let o=this.recovering==1?1:this.recovering*3;if(r.length>o)for(r.sort((s,l)=>l.score-s.score);r.length>o;)r.pop();r.some(s=>s.reducePos>n)&&this.recovering--}else if(r.length>1){e:for(let o=0;o<r.length-1;o++){let s=r[o];for(let l=o+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(o--,1);continue e}}}r.length>12&&r.splice(12,r.length-12)}this.minStackPos=r[0].pos;for(let o=1;o<r.length;o++)r[o].pos<this.minStackPos&&(this.minStackPos=r[o].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:a}=this,o=Si?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?a.getGoto(e.state,f.type.id):-1;if(d>-1&&f.length&&(!u||(f.prop(st.contextHash)||0)==c))return e.useNode(f,d),Si&&console.log(o+this.stackID(e)+` (via reuse of ${a.getName(f.type.id)})`),!0;if(!(f instanceof yn)||f.children.length==0||f.positions[0]>0)break;let h=f.children[0];if(h instanceof yn&&f.positions[0]==0)f=h;else break}}let s=a.stateSlot(e.state,4);if(s>0)return e.reduce(s),Si&&console.log(o+this.stackID(e)+` (via always-reduce ${a.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++],h=u==l.length||!r,g=h?e:e.split(),v=this.tokens.mainToken;if(g.apply(c,f,v?v.start:g.pos,d),Si&&console.log(o+this.stackID(g)+` (via ${c&65536?`reduce of ${a.getName(c&65535)}`:"shift"} for ${a.getName(f)} @ ${i}${g==e?"":", split"})`),h)return!0;g.pos>i?n.push(g):r.push(g)}return!1}advanceFully(e,n){let r=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>r)return Soe(e,n),!0}}runRecovery(e,n,r){let i=null,a=!1;for(let o=0;o<e.length;o++){let s=e[o],l=n[o<<1],u=n[(o<<1)+1],c=Si?this.stackID(s)+" -> ":"";if(s.deadEnd&&(a||(a=!0,s.restart(),Si&&console.log(c+this.stackID(s)+" (restarted)"),this.advanceFully(s,r))))continue;let f=s.split(),d=c;for(let h=0;f.forceReduce()&&h<10&&(Si&&console.log(d+this.stackID(f)+" (via force-reduce)"),!this.advanceFully(f,r));h++)Si&&(d=this.stackID(f)+" -> ");for(let h of s.recoverByInsert(l))Si&&console.log(c+this.stackID(h)+" (via recover-insert)"),this.advanceFully(h,r);this.stream.end>s.pos?(u==s.pos&&(u++,l=0),s.recoverByDelete(l,u),Si&&console.log(c+this.stackID(s)+` (via recover-delete ${this.parser.getName(l)})`),Soe(s,r)):(!i||i.score<s.score)&&(i=s)}return i}stackToTree(e){return e.close(),yn.build({buffer:Vx.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=(pN||(pN=new WeakMap)).get(e);return n||pN.set(e,n=String.fromCodePoint(this.nextStackID++)),n+e}}function Soe(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 jct{constructor(e,n,r){this.source=e,this.flags=n,this.disabled=r}allows(e){return!this.disabled||this.disabled[e]==0}}const gN=t=>t;class Gct{constructor(e){this.start=e.start,this.shift=e.shift||gN,this.reduce=e.reduce||gN,this.reuse=e.reuse||gN,this.hash=e.hash||(()=>0),this.strict=e.strict!==!1}}class y0 extends lie{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 a(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=st[l]);for(let u=1;u<s.length;){let c=s[u++];if(c>=0)a(c,l,s[u++]);else{let f=s[u+-c];for(let d=-c;d>0;d--)a(s[u++],l,f);u++}}}this.nodeSet=new yk(n.map((s,l)=>Xr.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=tie;let o=m0(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(xoe),this.states=m0(e.states,Uint32Array),this.data=m0(e.stateData),this.goto=m0(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(s=>typeof s=="number"?new Yh(o,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 Hct(this,e,n,r);for(let a of this.wrappers)i=a(i,e,n,r);return i}getGoto(e,n,r=!1){let i=this.goto;if(n>=i[0])return-1;for(let a=i[n+1];;){let o=i[a++],s=o&1,l=i[a++];if(s&&r)return l;for(let u=a+(o>>1);a<u;a++)if(i[a]==e)return l;if(s)return-1}}hasAction(e,n){let r=this.data;for(let i=0;i<2;i++)for(let a=this.stateSlot(e,i?2:1),o;;a+=3){if((o=r[a])==65535)if(r[a+1]==1)o=r[a=Es(r,a+2)];else{if(r[a+1]==2)return Es(r,a+2);break}if(o==n||o==0)return Es(r,a+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 a=this.stateSlot(e,1);i==null;a+=3){if(this.data[a]==65535)if(this.data[a+1]==1)a=Es(this.data,a+2);else break;i=n(Es(this.data,a+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=Es(this.data,r+2);else break;if(!(this.data[r+2]&1)){let i=this.data[r+1];n.some((a,o)=>o&1&&a==i)||n.push(this.data[r],i)}}return n}configure(e){let n=Object.assign(Object.create(y0.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(a=>a.from==r);return i?i.to:r})),e.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((r,i)=>{let a=e.specializers.find(s=>s.from==r.external);if(!a)return r;let o=Object.assign(Object.assign({},r),{external:a.to});return n.specializers[i]=xoe(o),o})),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 a of e.split(" ")){let o=n.indexOf(a);o>=0&&(r[o]=!0)}let i=null;for(let a=0;a<n.length;a++)if(!r[a])for(let o=this.dialects[n[a]],s;(s=this.data[o++])!=65535;)(i||(i=new Uint8Array(this.maxTerm+1)))[s]=1;return new jct(e,r,i)}static deserialize(e){return new y0(e)}}function Es(t,e){return t[e]|t[e+1]<<16}function Zct(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 xoe(t){if(t.external){let e=t.extend?1:0;return(n,r)=>t.external(n,r)<<1|e}return t.get}const Uct=312,woe=1,Xct=2,Yct=3,qct=4,Kct=313,Jct=315,eft=316,tft=5,nft=6,rft=0,vN=[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],Coe=125,ift=59,mN=47,aft=42,oft=43,sft=45,lft=60,uft=44,cft=63,fft=46,dft=new Gct({start:!1,shift(t,e){return e==tft||e==nft||e==Jct?t:e==eft},strict:!1}),hft=new zx((t,e)=>{let{next:n}=t;(n==Coe||n==-1||e.context)&&t.acceptToken(Kct)},{contextual:!0,fallback:!0}),pft=new zx((t,e)=>{let{next:n}=t,r;vN.indexOf(n)>-1||n==mN&&((r=t.peek(1))==mN||r==aft)||n!=Coe&&n!=ift&&n!=-1&&!e.context&&t.acceptToken(Uct)},{contextual:!0}),gft=new zx((t,e)=>{let{next:n}=t;if(n==oft||n==sft){if(t.advance(),n==t.next){t.advance();let r=!e.context&&e.canShift(woe);t.acceptToken(r?woe:Xct)}}else n==cft&&t.peek(1)==fft&&(t.advance(),t.advance(),(t.next<48||t.next>57)&&t.acceptToken(Yct))},{contextual:!0});function yN(t,e){return t>=65&&t<=90||t>=97&&t<=122||t==95||t>=192||!e&&t>=48&&t<=57}const vft=new zx((t,e)=>{if(t.next!=lft||!e.dialectEnabled(rft)||(t.advance(),t.next==mN))return;let n=0;for(;vN.indexOf(t.next)>-1;)t.advance(),n++;if(yN(t.next,!0)){for(t.advance(),n++;yN(t.next,!1);)t.advance(),n++;for(;vN.indexOf(t.next)>-1;)t.advance(),n++;if(t.next==uft)return;for(let r=0;;r++){if(r==7){if(!yN(t.next,!0))return;break}if(t.next!="extends".charCodeAt(r))break;t.advance(),n++}}t.acceptToken(qct,-n)}),mft=wk({"get set async static":Y.modifier,"for while do if else switch try catch finally return throw break continue default case":Y.controlKeyword,"in of await yield void typeof delete instanceof":Y.operatorKeyword,"let var const using function class extends":Y.definitionKeyword,"import export from":Y.moduleKeyword,"with debugger as new":Y.keyword,TemplateString:Y.special(Y.string),super:Y.atom,BooleanLiteral:Y.bool,this:Y.self,null:Y.null,Star:Y.modifier,VariableName:Y.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":Y.function(Y.variableName),VariableDefinition:Y.definition(Y.variableName),Label:Y.labelName,PropertyName:Y.propertyName,PrivatePropertyName:Y.special(Y.propertyName),"CallExpression/MemberExpression/PropertyName":Y.function(Y.propertyName),"FunctionDeclaration/VariableDefinition":Y.function(Y.definition(Y.variableName)),"ClassDeclaration/VariableDefinition":Y.definition(Y.className),PropertyDefinition:Y.definition(Y.propertyName),PrivatePropertyDefinition:Y.definition(Y.special(Y.propertyName)),UpdateOp:Y.updateOperator,"LineComment Hashbang":Y.lineComment,BlockComment:Y.blockComment,Number:Y.number,String:Y.string,Escape:Y.escape,ArithOp:Y.arithmeticOperator,LogicOp:Y.logicOperator,BitOp:Y.bitwiseOperator,CompareOp:Y.compareOperator,RegExp:Y.regexp,Equals:Y.definitionOperator,Arrow:Y.function(Y.punctuation),": Spread":Y.punctuation,"( )":Y.paren,"[ ]":Y.squareBracket,"{ }":Y.brace,"InterpolationStart InterpolationEnd":Y.special(Y.brace),".":Y.derefOperator,", ;":Y.separator,"@":Y.meta,TypeName:Y.typeName,TypeDefinition:Y.definition(Y.typeName),"type enum interface implements namespace module declare":Y.definitionKeyword,"abstract global Privacy readonly override":Y.modifier,"is keyof unique infer":Y.operatorKeyword,JSXAttributeValue:Y.attributeValue,JSXText:Y.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":Y.angleBracket,"JSXIdentifier JSXNameSpacedName":Y.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":Y.attributeName,"JSXBuiltin/JSXIdentifier":Y.standard(Y.tagName)}),yft={__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},bft={__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},_ft={__proto__:null,"<":187},Oft=y0.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:dft,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:[mft],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:[pft,gft,vft,2,3,4,5,6,7,8,9,10,11,12,13,14,hft,new hN("$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 hN("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=>yft[t]||-1},{term:338,get:t=>bft[t]||-1},{term:92,get:t=>_ft[t]||-1}],tokenPrec:14749}),Toe=[Jr("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),Jr("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),Jr("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),Jr("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),Jr("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),Jr(`try {
  379. \${}
  380. } catch (\${error}) {
  381. \${}
  382. }`,{label:"try",detail:"/ catch block",type:"keyword"}),Jr("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),Jr(`if (\${}) {
  383. \${}
  384. } else {
  385. \${}
  386. }`,{label:"if",detail:"/ else block",type:"keyword"}),Jr(`class \${name} {
  387. constructor(\${params}) {
  388. \${}
  389. }
  390. }`,{label:"class",detail:"definition",type:"keyword"}),Jr('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),Jr('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],Sft=Toe.concat([Jr("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),Jr("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),Jr("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),Poe=new Mot,$oe=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function b0(t){return(e,n)=>{let r=e.node.getChild("VariableDefinition");return r&&n(r,t),!0}}const xft=["FunctionDeclaration"],wft={FunctionDeclaration:b0("function"),ClassDeclaration:b0("class"),ClassExpression:()=>!0,EnumDeclaration:b0("constant"),TypeAliasDeclaration:b0("type"),NamespaceDeclaration:b0("namespace"),VariableDefinition(t,e){t.matchContext(xft)||e(t,"variable")},TypeDefinition(t,e){e(t,"type")},__proto__:null};function Aoe(t,e){let n=Poe.get(e);if(n)return n;let r=[],i=!0;function a(o,s){let l=t.sliceString(o.from,o.to);r.push({label:l,type:s})}return e.cursor(Mn.IncludeAnonymous).iterate(o=>{if(i)i=!1;else if(o.name){let s=wft[o.name];if(s&&s(o,a)||$oe.has(o.name))return!1}else if(o.to-o.from>8192){for(let s of Aoe(t,o.node))r.push(s);return!1}}),Poe.set(e,r),r}const Eoe=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,Moe=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function Cft(t){let e=In(t.state).resolveInner(t.pos,-1);if(Moe.indexOf(e.name)>-1)return null;let n=e.name=="VariableName"||e.to-e.from<20&&Eoe.test(t.state.sliceDoc(e.from,e.to));if(!n&&!t.explicit)return null;let r=[];for(let i=e;i;i=i.parent)$oe.has(i.name)&&(r=r.concat(Aoe(t.state.doc,i)));return{options:r,from:n?e.from:t.pos,validFor:Eoe}}const af=e0.define({name:"javascript",parser:Oft.configure({props:[Mk.add({IfStatement:i0({except:/^\s*({|else\b)/}),TryStatement:i0({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:qot,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:Yot({closing:"}"}),ArrowFunction:t=>t.baseIndent+t.unit,"TemplateString BlockComment":()=>null,"Statement Property":i0({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}}),Dk.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":_ie,BlockComment(t){return{from:t.from+2,to:t.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),Ioe={test:t=>/^JSX/.test(t.name),facet:hie({commentTokens:{block:{open:"{/*",close:"*/}"}}})},Tft=af.configure({dialect:"ts"},"typescript"),Pft=af.configure({dialect:"jsx",props:[$k.add(t=>t.isTop?[Ioe]:void 0)]}),$ft=af.configure({dialect:"jsx ts",props:[$k.add(t=>t.isTop?[Ioe]:void 0)]},"typescript");let Doe=t=>({label:t,type:"keyword"});const Roe="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(Doe),Aft=Roe.concat(["declare","implements","private","protected","public"].map(Doe));function Eft(t={}){let e=t.jsx?t.typescript?$ft:Pft:t.typescript?Tft:af,n=t.typescript?Sft.concat(Aft):Toe.concat(Roe);return new mie(e,[af.data.of({autocomplete:put(Moe,Vae(n))}),af.data.of({autocomplete:Cft}),t.jsx?Dft:[]])}function Mft(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 koe(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 Ift=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),Dft=Ce.inputHandler.of((t,e,n,r,i)=>{if((Ift?t.composing:t.compositionStarted)||t.state.readOnly||e!=n||r!=">"&&r!="/"||!af.isActiveAt(t.state,e,-1))return!1;let a=i(),{state:o}=a,s=o.changeByRange(l=>{var u;let{head:c}=l,f=In(o).resolveInner(c-1,-1),d;if(f.name=="JSXStartTag"&&(f=f.parent),!(o.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 h=f.parent,g=h.parent;if(g&&h.from==c-2&&((d=koe(o.doc,g.firstChild,c))||((u=g.firstChild)===null||u===void 0?void 0:u.name)=="JSXFragmentTag")){let v=`${d}>`;return{range:ce.cursor(c+v.length,-1),changes:{from:c,insert:v}}}}else if(r==">"){let h=Mft(f);if(h&&h.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(o.doc.sliceString(c,c+2))&&(d=koe(o.doc,h,c)))return{range:l,changes:{from:c,insert:`</${d}>`}}}}return{range:l}});return s.changes.empty?!1:(t.dispatch([a,o.update(s,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),Rft=wk({String:Y.string,Number:Y.number,"True False":Y.bool,PropertyName:Y.propertyName,Null:Y.null,",":Y.separator,"[ ]":Y.squareBracket,"{ }":Y.brace}),kft=y0.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:[Rft],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}),Nft=e0.define({name:"json",parser:kft.configure({props:[Mk.add({Object:i0({except:/^\s*\}/}),Array:i0({except:/^\s*\]/})}),Dk.add({"Object Array":_ie})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function Lft(){return new mie(Nft)}var Noe={exports:{}},_0={},Fx={exports:{}},bN={},_N={},Loe;function ON(){if(Loe)return _N;Loe=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(`
  391. `);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 a=this.__base_string_length;return i=i||0,r<0&&(a=0),a+=r*this.__indent_size,a+=i,a},e.prototype.get_indent_string=function(r,i){var a=this.__base_string;return i=i||0,r<0&&(r=0,a=""),i+=r*this.__indent_size,this.__ensure_cache(i),a+=this.__cache[i],a},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,a="";this.__indent_size&&r>=this.__indent_size&&(i=Math.floor(r/this.__indent_size),r-=i*this.__indent_size,a=new Array(i+1).join(this.__indent_string)),r&&(a+=new Array(r+1).join(" ")),this.__cache.push(a)};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]===`
  392. `&&(i=i.replace(/\n+$/g,"")),this.current_line.push(i)),this._end_with_newline&&this.__add_outputline();var a=this.__lines.join(`
  393. `);return r!==`
  394. `&&(a=a.replace(/[\n]/g,r)),a},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 a=this.__lines.length-2;a>=0;){var o=this.__lines[a];if(o.is_empty())break;if(o.item(0).indexOf(r)!==0&&o.item(-1)!==i){this.__lines.splice(a+1,0,new t(this)),this.previous_line=this.__lines[this.__lines.length-2];break}a--}},_N.Output=n,_N}var SN={},Voe;function Boe(){if(Voe)return SN;Voe=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 SN.Token=t,SN}var xN={},zoe;function Foe(){return zoe||(zoe=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",a="\\\\u[0-9a-fA-F]{4}|\\\\u\\{[0-9a-fA-F]+\\}",o="(?:"+a+"|["+e+r+"])",s="(?:"+a+"|["+n+r+i+"])*";t.identifier=new RegExp(o+s,"g"),t.identifierStart=new RegExp(o),t.identifierMatch=new RegExp("(?:"+a+"|["+n+r+i+"])+"),t.newline=/[\n\r\u2028\u2029]/,t.lineBreak=new RegExp(`\r
  395. |`+t.newline.source),t.allLineBreaks=new RegExp(t.lineBreak.source,"g")}(xN)),xN}var wN={},O0={},Woe;function CN(){if(Woe)return O0;Woe=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 a=this.raw_options[r],o=i||[];return typeof a=="object"?a!==null&&typeof a.concat=="function"&&(o=a.concat()):typeof a=="string"&&(o=a.split(/[^a-zA-Z0-9_\/\-]+/)),o},t.prototype._get_boolean=function(r,i){var a=this.raw_options[r],o=a===void 0?!!i:!!a;return o},t.prototype._get_characters=function(r,i){var a=this.raw_options[r],o=i||"";return typeof a=="string"&&(o=a.replace(/\\r/,"\r").replace(/\\n/,`
  396. `).replace(/\\t/," ")),o},t.prototype._get_number=function(r,i){var a=this.raw_options[r];i=parseInt(i,10),isNaN(i)&&(i=0);var o=parseInt(a,10);return isNaN(o)&&(o=i),o},t.prototype._get_selection=function(r,i,a){var o=this._get_selection_list(r,i,a);if(o.length!==1)throw new Error("Invalid Option Value: The option '"+r+`' can only be one of the following values:
  397. `+i+`
  398. You passed in: '`+this.raw_options[r]+"'");return o[0]},t.prototype._get_selection_list=function(r,i,a){if(!i||i.length===0)throw new Error("Selection list cannot be empty.");if(a=a||[i[0]],!this._is_valid_selection(a,i))throw new Error("Invalid Default Value!");var o=this._get_array(r,a);if(!this._is_valid_selection(o,i))throw new Error("Invalid Option Value: The option '"+r+`' can contain only the following values:
  399. `+i+`
  400. You passed in: '`+this.raw_options[r]+"'");return o},t.prototype._is_valid_selection=function(r,i){return r.length&&i.length&&!r.some(function(a){return i.indexOf(a)===-1})};function e(r,i){var a={};r=n(r);var o;for(o in r)o!==i&&(a[o]=r[o]);if(i&&r[i])for(o in r[i])a[o]=r[i][o];return a}function n(r){var i={},a;for(a in r){var o=a.replace(/-/g,"_");i[o]=r[a]}return i}return O0.Options=t,O0.normalizeOpts=n,O0.mergeOpts=e,O0}var Qoe;function Hoe(){if(Qoe)return wN;Qoe=1;var t=CN().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 a=this._get_selection_list("brace_style",["collapse","expand","end-expand","none","preserve-inline"]);this.brace_preserve_inline=!1,this.brace_style="collapse";for(var o=0;o<a.length;o++)a[o]==="preserve-inline"?this.brace_preserve_inline=!0:this.brace_style=a[o];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,wN.Options=n,wN}var qh={},TN={},joe;function PN(){if(joe)return TN;joe=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 a="",o;return n&&(o=this.match(n),o&&(a+=o[0])),r&&(o||!n)&&(a+=this.readUntil(r,i)),a},e.prototype.readUntil=function(n,r){var i="",a=this.__position;n.lastIndex=this.__position;var o=n.exec(this.__input);return o?(a=o.index,r&&(a+=o[0].length)):a=this.__input_length,i=this.__input.substring(this.__position,a),this.__position=a,i},e.prototype.readUntilAfter=function(n){return this.readUntil(n,!0)},e.prototype.get_regexp=function(n,r){var i=null,a="g";return r&&t&&(a="y"),typeof n=="string"&&n!==""?i=new RegExp(n,a):n&&(i=new RegExp(n.source,a)),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},TN.InputScanner=e,TN}var Wx={},$N={},Goe;function Vft(){if(Goe)return $N;Goe=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},$N.TokenStream=t,$N}var AN={},EN={},Zoe;function Qx(){if(Zoe)return EN;Zoe=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(){},EN.Pattern=t,EN}var Uoe;function Bft(){if(Uoe)return AN;Uoe=1;var t=Qx().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,a=[],o=n.exec(r);o;)a.push(r.substring(i,o.index)),i=o.index+o[0].length,o=n.exec(r);return i<r.length?a.push(r.substring(i,r.length)):a.push(""),a},AN.WhitespacePattern=e,AN}var Xoe;function Hx(){if(Xoe)return Wx;Xoe=1;var t=PN().InputScanner,e=Boe().Token,n=Vft().TokenStream,r=Bft().WhitespacePattern,i={START:"TK_START",RAW:"TK_RAW",EOF:"TK_EOF"},a=function(o,s){this._input=new t(o),this._options=s||{},this.__tokens=null,this._patterns={},this._patterns.whitespace=new r(this._input)};return a.prototype.tokenize=function(){this._input.restart(),this.__tokens=new n,this._reset();for(var o,s=new e(i.START,""),l=null,u=[],c=new n;s.type!==i.EOF;){for(o=this._get_next_token(s,l);this._is_comment(o);)c.add(o),o=this._get_next_token(s,l);c.isEmpty()||(o.comments_before=c,c=new n),o.parent=l,this._is_opening(o)?(u.push(l),l=o):l&&this._is_closing(o,l)&&(o.opened=l,l.closed=o,l=u.pop(),o.parent=l),o.previous=s,s.next=o,this.__tokens.add(o),s=o}return this.__tokens},a.prototype._is_first_token=function(){return this.__tokens.isEmpty()},a.prototype._reset=function(){},a.prototype._get_next_token=function(o,s){this._readWhitespace();var l=this._input.read(/.+/g);return l?this._create_token(i.RAW,l):this._create_token(i.EOF,"")},a.prototype._is_comment=function(o){return!1},a.prototype._is_opening=function(o){return!1},a.prototype._is_closing=function(o,s){return!1},a.prototype._create_token=function(o,s){var l=new e(o,s,this._patterns.whitespace.newline_count,this._patterns.whitespace.whitespace_before_token);return l},a.prototype._readWhitespace=function(){return this._patterns.whitespace.read()},Wx.Tokenizer=a,Wx.TOKEN=i,Wx}var MN={},Yoe;function IN(){if(Yoe)return MN;Yoe=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)},MN.Directives=t,MN}var DN={},qoe;function Koe(){if(qoe)return DN;qoe=1;var t=Qx().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 a=new t(r);this.__patterns={handlebars_comment:a.starting_with(/{{!--/).until_after(/--}}/),handlebars_unescaped:a.starting_with(/{{{/).until_after(/}}}/),handlebars:a.starting_with(/{{/).until_after(/}}/),php:a.starting_with(/<\?(?:[= ]|php)/).until_after(/\?>/),erb:a.starting_with(/<%[^%]/).until_after(/[^%]%>/),django:a.starting_with(/{%/).until_after(/%}/),django_value:a.starting_with(/{{/).until_after(/}}/),django_comment:a.starting_with(/{#/).until_after(/#}/),smarty:a.starting_with(/{(?=[^}{\s\n])/).until_after(/[^\s\n]}/),smarty_comment:a.starting_with(/{\*/).until_after(/\*}/),smarty_literal:a.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 a in e)i._disabled[a]=r.templating.indexOf(a)===-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 a=this._input.peek(1);!this._disabled.php&&!this._excluded.php&&a==="?"&&(r=r||this.__patterns.php.read()),!this._disabled.erb&&!this._excluded.erb&&a==="%"&&(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},DN.TemplatablePattern=n,DN}var Joe;function jx(){if(Joe)return qh;Joe=1;var t=PN().InputScanner,e=Hx().Tokenizer,n=Hx().TOKEN,r=IN().Directives,i=Foe(),a=Qx().Pattern,o=Koe().TemplatablePattern;function s(x,w){return w.indexOf(x)!==-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\.]/,h=">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "),g=">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";g=g.replace(/[-[\]{}()*+?.,\\^$|#]/g,"\\$&"),g="\\?\\.(?!\\d) "+g,g=g.replace(/ /g,"|");var v=new RegExp(g),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=function(x,w){e.call(this,x,w),this._patterns.whitespace=this._patterns.whitespace.matching(/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,/\u2028\u2029/.source);var T=new a(this._input),P=new o(this._input).read_options(this._options);this.__patterns={template:P,identifier:P.starting_with(i.identifier).matching(i.identifierMatch),number:T.matching(c),punct:T.matching(v),comment:T.starting_with(/\/\//).until(/[\n\r\u2028\u2029]/),block_comment:T.starting_with(/\/\*/).until_after(/\*\//),html_comment_start:T.matching(/<!--/),html_comment_end:T.matching(/-->/),include:T.starting_with(/#include/).until_after(i.lineBreak),shebang:T.starting_with(/#!/).until_after(i.lineBreak),xml:T.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:P.until(/['\\\n\r\u2028\u2029]/),double_quote:P.until(/["\\\n\r\u2028\u2029]/),template_text:P.until(/[`\\$]/),template_expression:P.until(/[`}\\]/)}};O.prototype=new e,O.prototype._is_comment=function(x){return x.type===l.COMMENT||x.type===l.BLOCK_COMMENT||x.type===l.UNKNOWN},O.prototype._is_opening=function(x){return x.type===l.START_BLOCK||x.type===l.START_EXPR},O.prototype._is_closing=function(x,w){return(x.type===l.END_BLOCK||x.type===l.END_EXPR)&&w&&(x.text==="]"&&w.text==="["||x.text===")"&&w.text==="("||x.text==="}"&&w.text==="{")},O.prototype._reset=function(){_=!1},O.prototype._get_next_token=function(x,w){var T=null;this._readWhitespace();var P=this._input.peek();return P===null?this._create_token(l.EOF,""):(T=T||this._read_non_javascript(P),T=T||this._read_string(P),T=T||this._read_pair(P,this._input.peek(1)),T=T||this._read_word(x),T=T||this._read_singles(P),T=T||this._read_comment(P),T=T||this._read_regexp(P,x),T=T||this._read_xml(P,x),T=T||this._read_punctuation(),T=T||this._create_token(l.UNKNOWN,this._input.next()),T)},O.prototype._read_word=function(x){var w;if(w=this.__patterns.identifier.read(),w!=="")return w=w.replace(i.allLineBreaks,`
  401. `),!(x.type===l.DOT||x.type===l.RESERVED&&(x.text==="set"||x.text==="get"))&&b.test(w)?(w==="in"||w==="of")&&(x.type===l.WORD||x.type===l.STRING)?this._create_token(l.OPERATOR,w):this._create_token(l.RESERVED,w):this._create_token(l.WORD,w);if(w=this.__patterns.number.read(),w!=="")return this._create_token(l.WORD,w)},O.prototype._read_singles=function(x){var w=null;return x==="("||x==="["?w=this._create_token(l.START_EXPR,x):x===")"||x==="]"?w=this._create_token(l.END_EXPR,x):x==="{"?w=this._create_token(l.START_BLOCK,x):x==="}"?w=this._create_token(l.END_BLOCK,x):x===";"?w=this._create_token(l.SEMICOLON,x):x==="."&&d.test(this._input.peek(1))?w=this._create_token(l.DOT,x):x===","&&(w=this._create_token(l.COMMA,x)),w&&this._input.next(),w},O.prototype._read_pair=function(x,w){var T=null;return x==="#"&&w==="{"&&(T=this._create_token(l.START_BLOCK,x+w)),T&&(this._input.next(),this._input.next()),T},O.prototype._read_punctuation=function(){var x=this.__patterns.punct.read();if(x!=="")return x==="="?this._create_token(l.EQUALS,x):x==="?."?this._create_token(l.DOT,x):this._create_token(l.OPERATOR,x)},O.prototype._read_non_javascript=function(x){var w="";if(x==="#"){if(this._is_first_token()&&(w=this.__patterns.shebang.read(),w))return this._create_token(l.UNKNOWN,w.trim()+`
  402. `);if(w=this.__patterns.include.read(),w)return this._create_token(l.UNKNOWN,w.trim()+`
  403. `);x=this._input.next();var T="#";if(this._input.hasNext()&&this._input.testChar(f)){do x=this._input.next(),T+=x;while(this._input.hasNext()&&x!=="#"&&x!=="=");return x==="#"||(this._input.peek()==="["&&this._input.peek(1)==="]"?(T+="[]",this._input.next(),this._input.next()):this._input.peek()==="{"&&this._input.peek(1)==="}"&&(T+="{}",this._input.next(),this._input.next())),this._create_token(l.WORD,T)}this._input.back()}else if(x==="<"&&this._is_first_token()){if(w=this.__patterns.html_comment_start.read(),w){for(;this._input.hasNext()&&!this._input.testChar(i.newline);)w+=this._input.next();return _=!0,this._create_token(l.COMMENT,w)}}else if(_&&x==="-"&&(w=this.__patterns.html_comment_end.read(),w))return _=!1,this._create_token(l.COMMENT,w);return null},O.prototype._read_comment=function(x){var w=null;if(x==="/"){var T="";if(this._input.peek(1)==="*"){T=this.__patterns.block_comment.read();var P=u.get_directives(T);P&&P.ignore==="start"&&(T+=u.readIgnored(this._input)),T=T.replace(i.allLineBreaks,`
  404. `),w=this._create_token(l.BLOCK_COMMENT,T),w.directives=P}else this._input.peek(1)==="/"&&(T=this.__patterns.comment.read(),w=this._create_token(l.COMMENT,T))}return w},O.prototype._read_string=function(x){if(x==="`"||x==="'"||x==='"'){var w=this._input.next();return this.has_char_escapes=!1,x==="`"?w+=this._read_string_recursive("`",!0,"${"):w+=this._read_string_recursive(x),this.has_char_escapes&&this._options.unescape_strings&&(w=S(w)),this._input.peek()===x&&(w+=this._input.next()),w=w.replace(i.allLineBreaks,`
  405. `),this._create_token(l.STRING,w)}return null},O.prototype._allow_regexp_or_xml=function(x){return x.type===l.RESERVED&&s(x.text,["return","case","throw","else","do","typeof","yield"])||x.type===l.END_EXPR&&x.text===")"&&x.opened.previous.type===l.RESERVED&&s(x.opened.previous.text,["if","while","for"])||s(x.type,[l.COMMENT,l.START_EXPR,l.START_BLOCK,l.START,l.END_BLOCK,l.OPERATOR,l.EQUALS,l.EOF,l.SEMICOLON,l.COMMA])},O.prototype._read_regexp=function(x,w){if(x==="/"&&this._allow_regexp_or_xml(w)){for(var T=this._input.next(),P=!1,C=!1;this._input.hasNext()&&(P||C||this._input.peek()!==x)&&!this._input.testChar(i.newline);)T+=this._input.peek(),P?P=!1:(P=this._input.peek()==="\\",this._input.peek()==="["?C=!0:this._input.peek()==="]"&&(C=!1)),this._input.next();return this._input.peek()===x&&(T+=this._input.next(),T+=this._input.read(i.identifier)),this._create_token(l.STRING,T)}return null},O.prototype._read_xml=function(x,w){if(this._options.e4x&&x==="<"&&this._allow_regexp_or_xml(w)){var T="",P=this.__patterns.xml.read_match();if(P){for(var C=P[2].replace(/^{\s+/,"{").replace(/\s+}$/,"}"),$=C.indexOf("{")===0,A=0;P;){var E=!!P[1],D=P[2],M=!!P[P.length-1]||D.slice(0,8)==="![CDATA[";if(!M&&(D===C||$&&D.replace(/^{\s+/,"{").replace(/\s+}$/,"}"))&&(E?--A:++A),T+=P[0],A<=0)break;P=this.__patterns.xml.read_match()}return P||(T+=this._input.match(/[\s\S]*/g)[0]),T=T.replace(i.allLineBreaks,`
  406. `),this._create_token(l.STRING,T)}}return null};function S(x){for(var w="",T=0,P=new t(x),C=null;P.hasNext();)if(C=P.match(/([\s]|[^\\]|\\\\)+/g),C&&(w+=C[0]),P.peek()==="\\"){if(P.next(),P.peek()==="x")C=P.match(/x([0-9A-Fa-f]{2})/g);else if(P.peek()==="u")C=P.match(/u([0-9A-Fa-f]{4})/g),C||(C=P.match(/u\{([0-9A-Fa-f]+)\}/g));else{w+="\\",P.hasNext()&&(w+=P.next());continue}if(!C||(T=parseInt(C[1],16),T>126&&T<=255&&C[0].indexOf("x")===0))return x;T>=0&&T<32||T>1114111?w+="\\"+C[0]:T===34||T===39||T===92?w+="\\"+String.fromCharCode(T):w+=String.fromCharCode(T)}return w}return O.prototype._read_string_recursive=function(x,w,T){var P,C;x==="'"?C=this.__patterns.single_quote:x==='"'?C=this.__patterns.double_quote:x==="`"?C=this.__patterns.template_text:x==="}"&&(C=this.__patterns.template_expression);for(var $=C.read(),A="";this._input.hasNext();){if(A=this._input.next(),A===x||!w&&i.newline.test(A)){this._input.back();break}else A==="\\"&&this._input.hasNext()?(P=this._input.peek(),P==="x"||P==="u"?this.has_char_escapes=!0:P==="\r"&&this._input.peek(1)===`
  407. `&&this._input.next(),A+=this._input.next()):T&&(T==="${"&&A==="$"&&this._input.peek()==="{"&&(A+=this._input.next()),T===A&&(x==="`"?A+=this._read_string_recursive("}",w,"`"):A+=this._read_string_recursive("`",w,"${"),this._input.hasNext()&&(A+=this._input.next())));A+=C.read(),$+=A}return $},qh.Tokenizer=O,qh.TOKEN=l,qh.positionable_operators=h.slice(),qh.line_starters=m.slice(),qh}var ese;function zft(){if(ese)return bN;ese=1;var t=ON().Output,e=Boe().Token,n=Foe(),r=Hoe().Options,i=jx().Tokenizer,a=jx().line_starters,o=jx().positionable_operators,s=jx().TOKEN;function l(C,$){return $.indexOf(C)!==-1}function u(C){return C.replace(/^\s+/g,"")}function c(C){for(var $={},A=0;A<C.length;A++)$[C[A].replace(/-/g,"_")]=C[A];return $}function f(C,$){return C&&C.type===s.RESERVED&&C.text===$}function d(C,$){return C&&C.type===s.RESERVED&&l(C.text,$)}var h=["case","return","do","if","throw","else","await","break","continue","async"],g=["before-newline","after-newline","preserve-newline"],v=c(g),m=[v.before_newline,v.preserve_newline],y={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"};function b(C,$){$.multiline_frame||$.mode===y.ForInitializer||$.mode===y.Conditional||C.remove_indent($.start_line_index)}function _(C){C=C.replace(n.allLineBreaks,`
  408. `);for(var $=[],A=C.indexOf(`
  409. `);A!==-1;)$.push(C.substring(0,A)),C=C.substring(A+1),A=C.indexOf(`
  410. `);return C.length&&$.push(C),$}function O(C){return C===y.ArrayLiteral}function S(C){return l(C,[y.Expression,y.ForInitializer,y.Conditional])}function x(C,$){for(var A=0;A<C.length;A++){var E=C[A].trim();if(E.charAt(0)!==$)return!1}return!0}function w(C,$){for(var A=0,E=C.length,D;A<E;A++)if(D=C[A],D&&D.indexOf($)!==0)return!1;return!0}function T(C,$){$=$||{},this._source_text=C||"",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($)}T.prototype.create_flags=function(C,$){var A=0;C&&(A=C.indentation_level,!this._output.just_added_newline()&&C.line_indent_level>A&&(A=C.line_indent_level));var E={mode:$,parent:C,last_token:C?C.last_token:new e(s.START_BLOCK,""),last_word:C?C.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:A,alignment:0,line_indent_level:C?C.line_indent_level:A,start_line_index:this._output.get_line_number(),ternary_depth:0};return E},T.prototype._reset=function(C){var $=C.match(/^[\t ]*/)[0];this._last_last_text="",this._output=new t(this._options,$),this._output.raw=this._options.test_output_raw,this._flag_store=[],this.set_mode(y.BlockStatement);var A=new i(C,this._options);return this._tokens=A.tokenize(),C},T.prototype.beautify=function(){if(this._options.disabled)return this._source_text;var C,$=this._reset(this._source_text),A=this._options.eol;this._options.eol==="auto"&&(A=`
  411. `,$&&n.lineBreak.test($||"")&&(A=$.match(n.lineBreak)[0]));for(var E=this._tokens.next();E;)this.handle_token(E),this._last_last_text=this._flags.last_token.text,this._flags.last_token=E,E=this._tokens.next();return C=this._output.get_code(A),C},T.prototype.handle_token=function(C,$){C.type===s.START_EXPR?this.handle_start_expr(C):C.type===s.END_EXPR?this.handle_end_expr(C):C.type===s.START_BLOCK?this.handle_start_block(C):C.type===s.END_BLOCK?this.handle_end_block(C):C.type===s.WORD?this.handle_word(C):C.type===s.RESERVED?this.handle_word(C):C.type===s.SEMICOLON?this.handle_semicolon(C):C.type===s.STRING?this.handle_string(C):C.type===s.EQUALS?this.handle_equals(C):C.type===s.OPERATOR?this.handle_operator(C):C.type===s.COMMA?this.handle_comma(C):C.type===s.BLOCK_COMMENT?this.handle_block_comment(C,$):C.type===s.COMMENT?this.handle_comment(C,$):C.type===s.DOT?this.handle_dot(C):C.type===s.EOF?this.handle_eof(C):C.type===s.UNKNOWN?this.handle_unknown(C,$):this.handle_unknown(C,$)},T.prototype.handle_whitespace_and_comments=function(C,$){var A=C.newlines,E=this._options.keep_array_indentation&&O(this._flags.mode);if(C.comments_before)for(var D=C.comments_before.next();D;)this.handle_whitespace_and_comments(D,$),this.handle_token(D,$),D=C.comments_before.next();if(E)for(var M=0;M<A;M+=1)this.print_newline(M>0,$);else if(this._options.max_preserve_newlines&&A>this._options.max_preserve_newlines&&(A=this._options.max_preserve_newlines),this._options.preserve_newlines&&A>1){this.print_newline(!1,$);for(var R=1;R<A;R+=1)this.print_newline(!0,$)}};var P=["async","break","continue","return","throw","yield"];return T.prototype.allow_wrap_or_preserved_newline=function(C,$){if($=$===void 0?!1:$,!this._output.just_added_newline()){var A=this._options.preserve_newlines&&C.newlines||$,E=l(this._flags.last_token.text,o)||l(C.text,o);if(E){var D=l(this._flags.last_token.text,o)&&l(this._options.operator_position,m)||l(C.text,o);A=A&&D}if(A)this.print_newline(!1,!0);else if(this._options.wrap_line_length){if(d(this._flags.last_token,P))return;this._output.set_wrap_point()}}},T.prototype.print_newline=function(C,$){if(!$&&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 A=this._tokens.peek();this._flags.mode===y.Statement&&!(this._flags.if_block&&f(A,"else"))&&!this._flags.do_block;)this.restore_mode();this._output.add_new_line(C)&&(this._flags.multiline_frame=!0)},T.prototype.print_token_line_indentation=function(C){this._output.just_added_newline()&&(this._options.keep_array_indentation&&C.newlines&&(C.text==="["||O(this._flags.mode))?(this._output.current_line.set_indent(-1),this._output.current_line.push(C.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))},T.prototype.print_token=function(C){if(this._output.raw){this._output.add_raw_token(C);return}if(this._options.comma_first&&C.previous&&C.previous.type===s.COMMA&&this._output.just_added_newline()&&this._output.previous_line.last()===","){var $=this._output.previous_line.pop();this._output.previous_line.is_empty()&&(this._output.previous_line.push($),this._output.trim(!0),this._output.current_line.pop(),this._output.trim()),this.print_token_line_indentation(C),this._output.add_token(","),this._output.space_before_token=!0}this.print_token_line_indentation(C),this._output.non_breaking_space=!0,this._output.add_token(C.text),this._output.previous_token_wrapped&&(this._flags.multiline_frame=!0)},T.prototype.indent=function(){this._flags.indentation_level+=1,this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},T.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))},T.prototype.set_mode=function(C){this._flags?(this._flag_store.push(this._flags),this._previous_flags=this._flags):this._previous_flags=this.create_flags(null,C),this._flags=this.create_flags(this._previous_flags,C),this._output.set_indent(this._flags.indentation_level,this._flags.alignment)},T.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))},T.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"]))},T.prototype.start_of_statement=function(C){var $=!1;return $=$||d(this._flags.last_token,["var","let","const"])&&C.type===s.WORD,$=$||f(this._flags.last_token,"do"),$=$||!(this._flags.parent.mode===y.ObjectLiteral&&this._flags.mode===y.Statement)&&d(this._flags.last_token,P)&&!C.newlines,$=$||f(this._flags.last_token,"else")&&!(f(C,"if")&&!C.comments_before),$=$||this._flags.last_token.type===s.END_EXPR&&(this._previous_flags.mode===y.ForInitializer||this._previous_flags.mode===y.Conditional),$=$||this._flags.last_token.type===s.WORD&&this._flags.mode===y.BlockStatement&&!this._flags.in_case&&!(C.text==="--"||C.text==="++")&&this._last_last_text!=="function"&&C.type!==s.WORD&&C.type!==s.RESERVED,$=$||this._flags.mode===y.ObjectLiteral&&(this._flags.last_token.text===":"&&this._flags.ternary_depth===0||d(this._flags.last_token,["get","set"])),$?(this.set_mode(y.Statement),this.indent(),this.handle_whitespace_and_comments(C,!0),this.start_of_object_property()||this.allow_wrap_or_preserved_newline(C,d(C,["do","for","if","while"])),!0):!1},T.prototype.handle_start_expr=function(C){this.start_of_statement(C)||this.handle_whitespace_and_comments(C);var $=y.Expression;if(C.text==="["){if(this._flags.last_token.type===s.WORD||this._flags.last_token.text===")"){d(this._flags.last_token,a)&&(this._output.space_before_token=!0),this.print_token(C),this.set_mode($),this.indent(),this._options.space_in_paren&&(this._output.space_before_token=!0);return}$=y.ArrayLiteral,O(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,$=y.ForInitializer):l(this._flags.last_token.text,["if","while","switch"])?(this._output.space_before_token=this._options.space_before_conditional,$=y.Conditional):l(this._flags.last_word,["await","async"])?this._output.space_before_token=!0:this._flags.last_token.text==="import"&&C.whitespace_before===""?this._output.space_before_token=!1:(l(this._flags.last_token.text,a)||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(C);else if(this._flags.last_token.type===s.WORD){this._output.space_before_token=!1;var A=this._tokens.peek(-3);if(this._options.space_after_named_function&&A){var E=this._tokens.peek(-4);d(A,["async","function"])||A.text==="*"&&d(E,["async","function"])?this._output.space_before_token=!0:this._flags.mode===y.ObjectLiteral?(A.text==="{"||A.text===","||A.text==="*"&&(E.text==="{"||E.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(C);(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(C,C.newlines),this.print_token(C),this.set_mode($),this._options.space_in_paren&&(this._output.space_before_token=!0),this.indent()},T.prototype.handle_end_expr=function(C){for(;this._flags.mode===y.Statement;)this.restore_mode();this.handle_whitespace_and_comments(C),this._flags.multiline_frame&&this.allow_wrap_or_preserved_newline(C,C.text==="]"&&O(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(C),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)},T.prototype.handle_start_block=function(C){this.handle_whitespace_and_comments(C);var $=this._tokens.peek(),A=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):A&&(l(A.text,[":",","])&&l($.type,[s.STRING,s.WORD,s.RESERVED])||l($.text,["get","set","..."])&&l(A.type,[s.WORD,s.RESERVED]))?l(this._last_last_text,["class","interface"])&&!l(A.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 E=!$.comments_before&&$.text==="}",D=E&&this._flags.last_word==="function"&&this._flags.last_token.type===s.END_EXPR;if(this._options.brace_preserve_inline){var M=0,R=null;this._flags.inline_frame=!0;do if(M+=1,R=this._tokens.peek(M-1),R.newlines){this._flags.inline_frame=!1;break}while(R.type!==s.EOF&&!(R.type===s.END_BLOCK&&R.opened===C))}(this._options.brace_style==="expand"||this._options.brace_style==="none"&&C.newlines)&&!this._flags.inline_frame?this._flags.last_token.type!==s.OPERATOR&&(D||this._flags.last_token.type===s.EQUALS||d(this._flags.last_token,h)&&this._flags.last_token.text!=="else")?this._output.space_before_token=!0:this.print_newline(!1,!0):(O(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(C),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(C),this.indent(),!E&&!(this._options.brace_preserve_inline&&this._flags.inline_frame)&&this.print_newline()},T.prototype.handle_end_block=function(C){for(this.handle_whitespace_and_comments(C);this._flags.mode===y.Statement;)this.restore_mode();var $=this._flags.last_token.type===s.START_BLOCK;this._flags.inline_frame&&!$?this._output.space_before_token=!0:this._options.brace_style==="expand"?$||this.print_newline():$||(O(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(C)},T.prototype.handle_word=function(C){if(C.type===s.RESERVED){if(l(C.text,["set","get"])&&this._flags.mode!==y.ObjectLiteral)C.type=s.WORD;else if(C.text==="import"&&l(this._tokens.peek().text,["(","."]))C.type=s.WORD;else if(l(C.text,["as","from"])&&!this._flags.import_block)C.type=s.WORD;else if(this._flags.mode===y.ObjectLiteral){var $=this._tokens.peek();$.text===":"&&(C.type=s.WORD)}}if(this.start_of_statement(C)?d(this._flags.last_token,["var","let","const"])&&C.type===s.WORD&&(this._flags.declaration_statement=!0):C.newlines&&!S(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(C),this.print_newline()):this.handle_whitespace_and_comments(C),this._flags.do_block&&!this._flags.do_while)if(f(C,"while")){this._output.space_before_token=!0,this.print_token(C),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(C,"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(C,["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(C),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(C),f(C,"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()&&!C.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,P)?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&&(S(this._flags.mode)||O(this._flags.mode))||this.print_newline(),this.print_token(C),this._flags.last_word=C.text;return}var A="NONE";if(this._flags.last_token.type===s.END_BLOCK?this._previous_flags.inline_frame?A="SPACE":d(C,["else","catch","finally","from"])?this._options.brace_style==="expand"||this._options.brace_style==="end-expand"||this._options.brace_style==="none"&&C.newlines?A="NEWLINE":(A="SPACE",this._output.space_before_token=!0):A="NEWLINE":this._flags.last_token.type===s.SEMICOLON&&this._flags.mode===y.BlockStatement?A="NEWLINE":this._flags.last_token.type===s.SEMICOLON&&S(this._flags.mode)?A="SPACE":this._flags.last_token.type===s.STRING?A="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,["{",","]))?A="SPACE":this._flags.last_token.type===s.START_BLOCK?this._flags.inline_frame?A="SPACE":A="NEWLINE":this._flags.last_token.type===s.END_EXPR&&(this._output.space_before_token=!0,A="NEWLINE"),d(C,a)&&this._flags.last_token.text!==")"&&(this._flags.inline_frame||this._flags.last_token.text==="else"||this._flags.last_token.text==="export"?A="SPACE":A="NEWLINE"),d(C,["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"&&C.newlines)&&!this._flags.inline_frame)this.print_newline();else{this._output.trim(!0);var E=this._output.current_line;E.last()!=="}"&&this.print_newline(),this._output.space_before_token=!0}else A==="NEWLINE"?d(this._flags.last_token,h)?this._output.space_before_token=!0:this._flags.last_token.text==="declare"&&d(C,["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(C,["var","let","const"]))&&this._flags.last_token.text!==":"&&(f(C,"if")&&f(C.previous,"else")?this._output.space_before_token=!0:this.print_newline()):d(C,a)&&this._flags.last_token.text!==")"&&this.print_newline():this._flags.multiline_frame&&O(this._flags.mode)&&this._flags.last_token.text===","&&this._last_last_text==="}"?this.print_newline():A==="SPACE"&&(this._output.space_before_token=!0);C.previous&&(C.previous.type===s.WORD||C.previous.type===s.RESERVED)&&(this._output.space_before_token=!0),this.print_token(C),this._flags.last_word=C.text,C.type===s.RESERVED&&(C.text==="do"?this._flags.do_block=!0:C.text==="if"?this._flags.if_block=!0:C.text==="import"?this._flags.import_block=!0:this._flags.import_block&&f(C,"from")&&(this._flags.import_block=!1))},T.prototype.handle_semicolon=function(C){this.start_of_statement(C)?this._output.space_before_token=!1:this.handle_whitespace_and_comments(C);for(var $=this._tokens.peek();this._flags.mode===y.Statement&&!(this._flags.if_block&&f($,"else"))&&!this._flags.do_block;)this.restore_mode();this._flags.import_block&&(this._flags.import_block=!1),this.print_token(C)},T.prototype.handle_string=function(C){C.text.startsWith("`")&&C.newlines===0&&C.whitespace_before===""&&(C.previous.text===")"||this._flags.last_token.type===s.WORD)||(this.start_of_statement(C)?this._output.space_before_token=!0:(this.handle_whitespace_and_comments(C),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(C):C.text.startsWith("`")&&this._flags.last_token.type===s.END_EXPR&&(C.previous.text==="]"||C.previous.text===")")&&C.newlines===0?this._output.space_before_token=!0:this.print_newline())),this.print_token(C)},T.prototype.handle_equals=function(C){this.start_of_statement(C)||this.handle_whitespace_and_comments(C),this._flags.declaration_statement&&(this._flags.declaration_assignment=!0),this._output.space_before_token=!0,this.print_token(C),this._output.space_before_token=!0},T.prototype.handle_comma=function(C){this.handle_whitespace_and_comments(C,!0),this.print_token(C),this._output.space_before_token=!0,this._flags.declaration_statement?(S(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(C)):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(C)},T.prototype.handle_operator=function(C){var $=C.text==="*"&&(d(this._flags.last_token,["function","yield"])||l(this._flags.last_token.type,[s.START_BLOCK,s.COMMA,s.END_BLOCK,s.SEMICOLON])),A=l(C.text,["-","+"])&&(l(this._flags.last_token.type,[s.START_BLOCK,s.START_EXPR,s.EQUALS,s.OPERATOR])||l(this._flags.last_token.text,a)||this._flags.last_token.text===",");if(!this.start_of_statement(C)){var E=!$;this.handle_whitespace_and_comments(C,E)}if(C.text==="*"&&this._flags.last_token.type===s.DOT){this.print_token(C);return}if(C.text==="::"){this.print_token(C);return}if(l(C.text,["-","+"])&&this.start_of_object_property()){this.print_token(C);return}if(this._flags.last_token.type===s.OPERATOR&&l(this._options.operator_position,m)&&this.allow_wrap_or_preserved_newline(C),C.text===":"&&this._flags.in_case){this.print_token(C),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 D=!0,M=!0,R=!1;if(C.text===":"?this._flags.ternary_depth===0?D=!1:(this._flags.ternary_depth-=1,R=!0):C.text==="?"&&(this._flags.ternary_depth+=1),!A&&!$&&this._options.preserve_newlines&&l(C.text,o)){var N=C.text===":",V=N&&R,L=N&&!R;switch(this._options.operator_position){case v.before_newline:this._output.space_before_token=!L,this.print_token(C),(!N||V)&&this.allow_wrap_or_preserved_newline(C),this._output.space_before_token=!0;return;case v.after_newline:this._output.space_before_token=!0,!N||V?this._tokens.peek().newlines?this.print_newline(!1,!0):this.allow_wrap_or_preserved_newline(C):this._output.space_before_token=!1,this.print_token(C),this._output.space_before_token=!0;return;case v.preserve_newline:L||this.allow_wrap_or_preserved_newline(C),D=!(this._output.just_added_newline()||L),this._output.space_before_token=D,this.print_token(C),this._output.space_before_token=!0;return}}if($){this.allow_wrap_or_preserved_newline(C),D=!1;var z=this._tokens.peek();M=z&&l(z.type,[s.WORD,s.RESERVED])}else if(C.text==="...")this.allow_wrap_or_preserved_newline(C),D=this._flags.last_token.type===s.START_BLOCK,M=!1;else if(l(C.text,["--","++","!","~"])||A){if((this._flags.last_token.type===s.COMMA||this._flags.last_token.type===s.START_EXPR)&&this.allow_wrap_or_preserved_newline(C),D=!1,M=!1,C.newlines&&(C.text==="--"||C.text==="++"||C.text==="~")){var B=d(this._flags.last_token,h)&&C.newlines;B&&(this._previous_flags.if_block||this._previous_flags.else_block)&&this.restore_mode(),this.print_newline(B,!0)}this._flags.last_token.text===";"&&S(this._flags.mode)&&(D=!0),this._flags.last_token.type===s.RESERVED?D=!0:this._flags.last_token.type===s.END_EXPR?D=!(this._flags.last_token.text==="]"&&(C.text==="--"||C.text==="++")):this._flags.last_token.type===s.OPERATOR&&(D=l(C.text,["--","-","++","+"])&&l(this._flags.last_token.text,["--","-","++","+"]),l(C.text,["+","-"])&&l(this._flags.last_token.text,["--","++"])&&(M=!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||D,this.print_token(C),this._output.space_before_token=M},T.prototype.handle_block_comment=function(C,$){if(this._output.raw){this._output.add_raw_token(C),C.directives&&C.directives.preserve==="end"&&(this._output.raw=this._options.test_output_raw);return}if(C.directives){this.print_newline(!1,$),this.print_token(C),C.directives.preserve==="start"&&(this._output.raw=!0),this.print_newline(!1,!0);return}if(!n.newline.test(C.text)&&!C.newlines){this._output.space_before_token=!0,this.print_token(C),this._output.space_before_token=!0;return}else this.print_block_commment(C,$)},T.prototype.print_block_commment=function(C,$){var A=_(C.text),E,D=!1,M=!1,R=C.whitespace_before,N=R.length;if(this.print_newline(!1,$),this.print_token_line_indentation(C),this._output.add_token(A[0]),this.print_newline(!1,$),A.length>1){for(A=A.slice(1),D=x(A,"*"),M=w(A,R),D&&(this._flags.alignment=1),E=0;E<A.length;E++)D?(this.print_token_line_indentation(C),this._output.add_token(u(A[E]))):M&&A[E]?(this.print_token_line_indentation(C),this._output.add_token(A[E].substring(N))):(this._output.current_line.set_indent(-1),this._output.add_token(A[E])),this.print_newline(!1,$);this._flags.alignment=0}},T.prototype.handle_comment=function(C,$){C.newlines?this.print_newline(!1,$):this._output.trim(!0),this._output.space_before_token=!0,this.print_token(C),this.print_newline(!1,$)},T.prototype.handle_dot=function(C){this.start_of_statement(C)||this.handle_whitespace_and_comments(C,!0),this._flags.last_token.text.match("^[0-9]+$")&&(this._output.space_before_token=!0),d(this._flags.last_token,h)?this._output.space_before_token=!1:this.allow_wrap_or_preserved_newline(C,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(C)},T.prototype.handle_unknown=function(C,$){this.print_token(C),C.text[C.text.length-1]===`
  412. `&&this.print_newline(!1,$)},T.prototype.handle_eof=function(C){for(;this._flags.mode===y.Statement;)this.restore_mode();this.handle_whitespace_and_comments(C)},bN.Beautifier=T,bN}var tse;function Fft(){if(tse)return Fx.exports;tse=1;var t=zft().Beautifier,e=Hoe().Options;function n(r,i){var a=new t(r,i);return a.beautify()}return Fx.exports=n,Fx.exports.defaultOptions=function(){return new e},Fx.exports}var Gx={exports:{}},RN={},kN={},nse;function rse(){if(nse)return kN;nse=1;var t=CN().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 a=0;a<i.length;a++)i[a]!=="expand"?this.brace_style="collapse":this.brace_style=i[a]}return e.prototype=new t,kN.Options=e,kN}var ise;function Wft(){if(ise)return RN;ise=1;var t=rse().Options,e=ON().Output,n=PN().InputScanner,r=IN().Directives,i=new r(/\/\*/,/\*\//),a=/\r\n|[\r\n]/,o=/\r\n|[\r\n]/g,s=/\s/,l=/(?:\s|\n)+/g,u=/\/\*(?:[\s\S]*?)((?:\*\/)|$)/g,c=/\/\/(?:[^\n\r\u2028\u2029]*)/g;function f(d,h){this._source_text=d||"",this._options=new t(h),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 h="";for(this._ch=this._input.next();this._ch;){if(h+=this._ch,this._ch==="\\")h+=this._input.next();else if(d.indexOf(this._ch)!==-1||this._ch===`
  413. `)break;this._ch=this._input.next()}return h},f.prototype.eatWhitespace=function(d){for(var h=s.test(this._input.peek()),g=0;s.test(this._input.peek());)this._ch=this._input.next(),d&&this._ch===`
  414. `&&(g===0||g<this._options.max_preserve_newlines)&&(g++,this._output.add_new_line(!0));return h},f.prototype.foundNestedPseudoClass=function(){for(var d=0,h=1,g=this._input.peek(h);g;){if(g==="{")return!0;if(g==="(")d+=1;else if(g===")"){if(d===0)return!1;d-=1}else if(g===";"||g==="}")return!1;h++,g=this._input.peek(h)}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,h=this._options.eol;h==="auto"&&(h=`
  415. `,d&&a.test(d||"")&&(h=d.match(a)[0])),d=d.replace(o,`
  416. `);var g=d.match(/^[\t ]*/)[0];this._output=new e(this._options,g),this._input=new n(d),this._indentLevel=0,this._nestedLevel=0,this._ch=null;for(var v=0,m=!1,y=!1,b=!1,_=!1,O=!1,S=this._ch,x=!1,w,T,P;w=this._input.read(l),T=w!=="",P=S,this._ch=this._input.next(),this._ch==="\\"&&this._input.hasNext()&&(this._ch+=this._input.next()),S=this._ch,this._ch;)if(this._ch==="/"&&this._input.peek()==="*"){this._output.add_new_line(),this._input.back();var C=this._input.read(u),$=i.get_directives(C);$&&$.ignore==="start"&&(C+=i.readIgnored(this._input)),this.print_string(C),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(T),this.print_string(this._ch);var A=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);A.match(/[ :]$/)&&(A=this.eatString(": ").replace(/\s+$/,""),this.print_string(A),this._output.space_before_token=!0),v===0&&A.indexOf(":")!==-1&&(y=!0,this.indent())}else if(this._ch==="@")if(this.preserveSingleSpace(T),this._input.peek()==="{")this.print_string(this._ch+this.eatString("}"));else{this.print_string(this._ch);var E=this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);E.match(/[ :]$/)&&(E=this.eatString(": ").replace(/\s+$/,""),this.print_string(E),this._output.space_before_token=!0),v===0&&E.indexOf(":")!==-1?(y=!0,this.indent()):E in this.NESTED_AT_RULE?(this._nestedLevel+=1,E in this.CONDITIONAL_GROUP_RULE&&(b=!0)):v===0&&!y&&(_=!0)}else if(this._ch==="#"&&this._input.peek()==="{")this.preserveSingleSpace(T),this.print_string(this._ch+this.eatString("}"));else if(this._ch==="{")y&&(y=!1,this.outdent()),_=!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)):(P==="("?this._output.space_before_token=!1:P!==","&&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(),P==="{"&&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 D=0;D<this.NON_SEMICOLON_NEWLINE_PROPERTY.length;D++)if(this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[D])){x=!0;break}(m||b)&&!(this._input.lookBack("&")||this.foundNestedPseudoClass())&&!this._input.lookBack("(")&&!_&&v===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 M=P==='"'||P==="'";this.preserveSingleSpace(M||T),this.print_string(this._ch+this.eatString(this._ch)),this.eatWhitespace(!0)}else if(this._ch===";")x=!1,v===0?(y&&(this.outdent(),y=!1),_=!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(),v++,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(")")),v&&(v--,this.outdent()));else{var R=!1;this._input.lookBack("with")&&(R=!0),this.preserveSingleSpace(T||R),this.print_string(this._ch),y&&P==="$"&&this._options.selector_separator_newline?(this._output.add_new_line(),O=!0):(this.eatWhitespace(),v++,this.indent())}else if(this._ch===")")v&&(v--,this.outdent()),O&&this._input.peek()===";"&&this._options.selector_separator_newline&&(O=!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||O)&&v===0&&!_?this._output.add_new_line():this._output.space_before_token=!0;else if((this._ch===">"||this._ch==="+"||this._ch==="~")&&!y&&v===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(T),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 N=P==='"'||P==="'";this.preserveSingleSpace(N||T),this.print_string(this._ch),!this._output.just_added_newline()&&this._input.peek()===`
  417. `&&x&&this._output.add_new_line()}var V=this._output.get_code(h);return V},RN.Beautifier=f,RN}var ase;function Qft(){if(ase)return Gx.exports;ase=1;var t=Wft().Beautifier,e=rse().Options;function n(r,i){var a=new t(r,i);return a.beautify()}return Gx.exports=n,Gx.exports.defaultOptions=function(){return new e},Gx.exports}var Zx={exports:{}},NN={},LN={},ose;function sse(){if(ose)return LN;ose=1;var t=CN().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,LN.Options=e,LN}var Ux={},lse;function use(){if(lse)return Ux;lse=1;var t=Hx().Tokenizer,e=Hx().TOKEN,n=IN().Directives,r=Koe().TemplatablePattern,i=Qx().Pattern,a={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},o=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===a.TAG_OPEN||l.type===a.CONTROL_FLOW_OPEN},s.prototype._is_closing=function(l,u){return l.type===a.TAG_CLOSE&&u&&((l.text===">"||l.text==="/>")&&u.text[0]==="<"||l.text==="}}"&&u.text[0]==="{"&&u.text[1]==="{")||l.type===a.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(a.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(a.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=o.get_directives(c),f&&f.ignore==="start"&&(c+=o.readIgnored(this._input))):c=this.__patterns.cdata.read()),c&&(u=this._create_token(a.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(a.COMMENT,c),u.directives=f)}return u},s.prototype._read_open=function(l,u){var c=null,f=null;return(!u||u.type===a.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(a.TAG_OPEN,c)),f},s.prototype._read_open_handlebars=function(l,u){var c=null,f=null;return(!u||u.type===a.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(a.COMMENT,c)):(c=this.__patterns.handlebars_open.read(),f=this._create_token(a.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,h=0;!(c.endsWith("{")&&d===h);){var g=this._input.next();if(g===null)break;g==="("?d++:g===")"&&h++,c+=g}f=this._create_token(a.CONTROL_FLOW_OPEN,c)}else l==="}"&&u&&u.type===a.CONTROL_FLOW_OPEN&&(c=this._input.next(),f=this._create_token(a.CONTROL_FLOW_CLOSE,c));return f},s.prototype._read_close=function(l,u){var c=null,f=null;return u&&u.type===a.TAG_OPEN&&(u.text[0]==="<"&&(l===">"||l==="/"&&this._input.peek(1)===">")?(c=this._input.next(),l==="/"&&(c+=this._input.next()),f=this._create_token(a.TAG_CLOSE,c)):u.text[0]==="{"&&l==="}"&&this._input.peek(1)==="}"&&(this._input.next(),this._input.next(),f=this._create_token(a.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(a.EQUALS,this._input.next());else if(l==='"'||l==="'"){var h=this._input.next();l==='"'?h+=this.__patterns.double_quote.read():h+=this.__patterns.single_quote.read(),f=this._create_token(a.VALUE,h)}else d=this.__patterns.attribute.read(),d&&(u.type===a.EQUALS?f=this._create_token(a.VALUE,d):f=this._create_token(a.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===a.TAG_CLOSE&&u.opened.text[0]==="<"&&u.text[0]!=="/"){var d=u.opened.text.substr(1).toLowerCase();if(d==="script"||d==="style"){var h=this._read_comment_or_cdata(l);if(h)return h.type=a.TEXT,h;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(a.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===a.CONTROL_FLOW_OPEN?this.__patterns.word_control_flow_close_excluded.read():this.__patterns.word.read()),c)return this._create_token(a.TEXT,c)},Ux.Tokenizer=s,Ux.TOKEN=a,Ux}var cse;function Hft(){if(cse)return NN;cse=1;var t=sse().Options,e=ON().Output,n=use().Tokenizer,r=use().TOKEN,i=/\r\n|[\r\n]/,a=/\r\n|[\r\n]/g,o=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)};o.prototype.current_line_has_match=function(m){return this._output.current_line.has_match(m)},o.prototype.set_space_before_token=function(m,y){this._output.space_before_token=m,this._output.non_breaking_space=y},o.prototype.set_wrap_point=function(){this._output.set_indent(this.indent_level,this.alignment_size),this._output.set_wrap_point()},o.prototype.add_raw_token=function(m){this._output.add_raw_token(m)},o.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},o.prototype.traverse_whitespace=function(m){return m.whitespace_before||m.newlines?(this.print_preserved_newlines(m)||(this._output.space_before_token=!0),!0):!1},o.prototype.previous_token_wrapped=function(){return this._output.previous_token_wrapped},o.prototype.print_newline=function(m){this._output.add_new_line(m)},o.prototype.print_token=function(m){m.text&&(this._output.set_indent(this.indent_level,this.alignment_size),this._output.add_token(m.text))},o.prototype.indent=function(){this.indent_level++},o.prototype.deindent=function(){this.indent_level>0&&(this.indent_level--,this._output.set_indent(this.indent_level,this.alignment_size))},o.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,_=null;return y.closed?(m==="script"?b="text/javascript":m==="style"&&(b="text/css"),b=s(y)||b,b.search("text/css")>-1?_="css":b.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/)>-1?_="javascript":b.search(/(text|application|dojo)\/(x-)?(html)/)>-1?_="html":b.search(/test\/null/)>-1&&(_="null"),_):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,_){this._source_text=m||"",y=y||{},this._js_beautify=b,this._css_beautify=_,this._tag_stack=null;var O=new t(y,"html");this._options=O,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=`
  418. `,m&&i.test(m)&&(y=m.match(i)[0])),m=m.replace(a,`
  419. `);var b=m.match(/^[\t ]*/)[0],_={text:"",type:""},O=new h,S=new o(this._options,b),x=new n(m,this._options).tokenize();this._tag_stack=new f(S);for(var w=null,T=x.next();T.type!==r.EOF;)T.type===r.TAG_OPEN||T.type===r.COMMENT?(w=this._handle_tag_open(S,T,O,_,x),O=w):T.type===r.ATTRIBUTE||T.type===r.EQUALS||T.type===r.VALUE||T.type===r.TEXT&&!O.tag_complete?w=this._handle_inside_tag(S,T,O,_):T.type===r.TAG_CLOSE?w=this._handle_tag_close(S,T,O):T.type===r.TEXT?w=this._handle_text(S,T,O):T.type===r.CONTROL_FLOW_OPEN?w=this._handle_control_flow_open(S,T):T.type===r.CONTROL_FLOW_CLOSE?w=this._handle_control_flow_close(S,T):S.add_raw_token(T),_=w,T=x.next();var P=S._output.get_code(y);return P},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 _={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(),_},d.prototype._handle_inside_tag=function(m,y,b,_){var O=b.has_wrapped_attrs,S={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),O=O||y.newlines!==0),this._is_wrap_attributes_force&&b.attr_count>=this._options.wrap_attributes_min_attrs&&(_.type!==r.TAG_OPEN||this._is_wrap_attributes_force_expand_multiline)&&(m.print_newline(!1),O=!0)),m.print_token(y),O=O||m.previous_token_wrapped(),b.has_wrapped_attrs=O),S},d.prototype._handle_text=function(m,y,b){var _={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)),_},d.prototype._print_custom_beatifier_text=function(m,y,b){var _=this;if(y.text!==""){var O=y.text,S,x=1,w="",T="";b.custom_beautifier_name==="javascript"&&typeof this._js_beautify=="function"?S=this._js_beautify:b.custom_beautifier_name==="css"&&typeof this._css_beautify=="function"?S=this._css_beautify:b.custom_beautifier_name==="html"&&(S=function(D,M){var R=new d(D,M,_._js_beautify,_._css_beautify);return R.beautify()}),this._options.indent_scripts==="keep"?x=0:this._options.indent_scripts==="separate"&&(x=-m.indent_level);var P=m.get_full_indent(x);if(O=O.replace(/\n[ \t]*$/,""),b.custom_beautifier_name!=="html"&&O[0]==="<"&&O.match(/^(<!--|<!\[CDATA\[)/)){var C=/^(<!--[^\n]*|<!\[CDATA\[)(\n?)([ \t\n]*)([\s\S]*)(-->|]]>)$/.exec(O);if(!C){m.add_raw_token(y);return}w=P+C[1]+`
  420. `,O=C[4],C[5]&&(T=P+C[5]),O=O.replace(/\n[ \t]*$/,""),(C[2]||C[3].indexOf(`
  421. `)!==-1)&&(C=C[3].match(/[ \t]+$/),C&&(y.whitespace_before=C[0]))}if(O)if(S){var $=function(){this.eol=`
  422. `};$.prototype=this._options.raw_options;var A=new $;O=S(P+O,A)}else{var E=y.whitespace_before;E&&(O=O.replace(new RegExp(`
  423. (`+E+")?","g"),`
  424. `)),O=P+O.replace(/\n/g,`
  425. `+P)}w&&(O?O=w+O+`
  426. `+T:O=w+T),m.print_newline(!1),O&&(y.text=O,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){var S=this._get_tag_open_token(y);if((b.is_unformatted||b.is_content_unformatted)&&!b.is_empty_element&&y.type===r.TAG_OPEN&&!S.is_start_tag?(m.add_raw_token(y),S.start_tag_token=this._tag_stack.try_pop(S.tag_name)):(m.traverse_whitespace(y),this._set_tag_position(m,y,S,b,_),S.is_inline_element||m.set_wrap_point(),m.print_token(y)),S.is_start_tag&&this._is_wrap_attributes_force){var x=0,w;do w=O.peek(x),w.type===r.ATTRIBUTE&&(S.attr_count+=1),x+=1;while(w.type!==r.EOF&&w.type!==r.TAG_CLOSE)}return(this._is_wrap_attributes_force_aligned||this._is_wrap_attributes_aligned_multiple||this._is_wrap_attributes_preserve_aligned)&&(S.alignment_size=y.text.length+1),!S.tag_complete&&!S.is_unformatted&&(m.alignment_size=S.alignment_size),S};var h=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 _=2;this.tag_start_char==="{"&&this.text.length>=3&&this.text.charAt(2)==="~"&&(_=3),this.is_end_tag=this.is_end_tag||this.tag_start_char==="{"&&(this.text.length<3||/[^#\^]/.test(this.text.charAt(_)))}};d.prototype._get_tag_open_token=function(m){var y=new h(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){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 S=m.current_line_has_match(/{{#if/);S||m.print_newline(!1)}b.tag_name==="!--"&&O.type===r.TAG_CLOSE&&_.is_end_tag&&b.text.indexOf(`
  427. `)===-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 x=!1;x=b.start_tag_token&&b.start_tag_token.multiline_content,x=x||!b.is_inline_element&&!(_.is_inline_element||_.is_unformatted)&&!(O.type===r.TAG_CLOSE&&b.start_tag_token===_)&&O.type!=="TK_CONTENT",(b.is_content_unformatted||b.is_unformatted)&&(x=!1),x&&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)&&(O.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 g=["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"],v=["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"&&g.indexOf(m.tag_name)!==-1){var b=m.parent.parent;(!b||v.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}},NN.Beautifier=d,NN}var fse;function jft(){if(fse)return Zx.exports;fse=1;var t=Hft().Beautifier,e=sse().Options;function n(r,i,a,o){var s=new t(r,i,a,o);return s.beautify()}return Zx.exports=n,Zx.exports.defaultOptions=function(){return new e},Zx.exports}var dse;function Gft(){if(dse)return _0;dse=1;var t=Fft(),e=Qft(),n=jft();function r(i,a,o,s){return o=o||t,s=s||e,n(i,a,o,s)}return r.defaultOptions=n.defaultOptions,_0.js=t,_0.css=e,_0.html=r,_0}(function(t){function e(n,r,i){var a=function(o,s){return n.js_beautify(o,s)};return a.js=n.js_beautify,a.css=r.css_beautify,a.html=i.html_beautify,a.js_beautify=n.js_beautify,a.css_beautify=r.css_beautify,a.html_beautify=i.html_beautify,a}(function(n){var r=Gft();r.js_beautify=r.js,r.css_beautify=r.css,r.html_beautify=r.html,n.exports=e(r,r,r)})(t)})(Noe);var Zft=Noe.exports;const Uft=ab(Zft),Xft=p.defineComponent({__name:"Editor",props:{code:{type:String,default:""}},emits:["update:code","change"],setup(t,{emit:e}){const n=t,r=e,i=p.ref(null),a=p.ref(n.code);p.watch(()=>n.code,s=>{a.value=Uft.js(s,{indent_size:2})},{immediate:!0});const o=s=>{try{r("update:code",s),r("change",s)}catch(l){console.error(l);return}};return(s,l)=>(p.openBlock(),p.createBlock(p.unref(Pct),{ref_key:"editorRef",ref:i,placeholder:"请输入",style:{height:"500px"},"model-value":a.value,"tab-size":2,"auto-focus":!0,"indent-with-tabs":!0,extensions:[p.unref(Vct),p.unref(Eft)(),p.unref(Lft)()],onChange:o},null,8,["model-value","extensions"]))}}),Yft=p.defineComponent({__name:"index",props:{title:{default:"编辑"},width:{default:800}},emits:["ok"],setup(t,{expose:e,emit:n}){const r=n,i=p.ref(!1),a=p.ref(""),o=()=>{r("ok",a.value),i.value=!1};return e({open:s=>{i.value=!0,a.value=s},close:()=>{i.value=!1}}),(s,l)=>(p.openBlock(),p.createBlock(p.unref(si),{open:i.value,"onUpdate:open":l[1]||(l[1]=u=>i.value=u),title:s.title,width:s.width,onOk:o},{default:p.withCtx(()=>[p.createVNode(Xft,{code:a.value,"onUpdate:code":l[0]||(l[0]=u=>a.value=u)},null,8,["code"])]),_:1},8,["open","title","width"]))}}),qft=p.createElementVNode("span",{class:"text-gray-500"},"秒",-1),VN=p.defineComponent({__name:"DataConfig",props:{dataSource:{}},emits:["change"],setup(t,{emit:e}){const n=e,r=t,i=p.ref({sourceType:Rr.STATIC,data:"",url:"",method:"",params:{},headers:{},refreshTime:0,dataProcess:""}),a=c=>{i.value.refreshTime=c===0||c>=60?c:60};let o;const s=p.ref(null),l=c=>{var f;o=c,(f=s.value)==null||f.open(JSON.stringify(i.value[c]))},u=c=>{i.value[o]=JSON.parse(c)};return p.watch(()=>r.dataSource,c=>{Object.assign(i.value,c||{})},{immediate:!0}),p.watch(()=>i.value,c=>{n("change",c)},{deep:!0}),(c,f)=>(p.openBlock(),p.createElementBlock(p.Fragment,null,[p.createVNode(p.unref(Qn),{size:"small",layout:"horizontal",model:i.value,"label-col":{span:8},"wrapper-col":{span:16}},{default:p.withCtx(()=>[p.createVNode(p.unref(Qn).Item,{label:"类型",name:"sourceType"},{default:p.withCtx(()=>[p.createVNode(p.unref(Nr),{value:i.value.sourceType,"onUpdate:value":f[0]||(f[0]=d=>i.value.sourceType=d)},{default:p.withCtx(()=>[p.createVNode(p.unref(Hy),{value:p.unref(Rr).STATIC},{default:p.withCtx(()=>[p.createTextVNode("静态数据")]),_:1},8,["value"]),p.createVNode(p.unref(Hy),{value:p.unref(Rr).API},{default:p.withCtx(()=>[p.createTextVNode("动态数据")]),_:1},8,["value"])]),_:1},8,["value"])]),_:1}),i.value.sourceType===p.unref(Rr).STATIC?(p.openBlock(),p.createBlock(p.unref(Qn).Item,{key:0,label:"数据",name:"data"},{default:p.withCtx(()=>[p.createVNode(p.unref(gr),{type:"default",size:"small",onClick:f[1]||(f[1]=d=>l("data"))},{default:p.withCtx(()=>[p.createTextVNode("编辑")]),_:1})]),_:1})):i.value.sourceType===p.unref(Rr).API?(p.openBlock(),p.createElementBlock(p.Fragment,{key:1},[p.createVNode(p.unref(Qn).Item,{label:"接口地址",name:"url"},{default:p.withCtx(()=>[p.createVNode(p.unref(On).TextArea,{"auto-size":{minRows:5},placeholder:"请输入接口地址",value:i.value.url,"onUpdate:value":f[2]||(f[2]=d=>i.value.url=d)},null,8,["value"])]),_:1}),p.createVNode(p.unref(Qn).Item,{label:"请求方式",name:"method"},{default:p.withCtx(()=>[p.createVNode(p.unref(gu),{value:i.value.method,"onUpdate:value":f[3]||(f[3]=d=>i.value.method=d)},{default:p.withCtx(()=>[p.createVNode(p.unref(Lr),{value:"GET"},{default:p.withCtx(()=>[p.createTextVNode("GET")]),_:1}),p.createVNode(p.unref(Lr),{value:"POST"},{default:p.withCtx(()=>[p.createTextVNode("POST")]),_:1})]),_:1},8,["value"])]),_:1}),p.createVNode(p.unref(Qn).Item,{label:"刷新时间",name:"refreshTime"},{default:p.withCtx(()=>[p.createVNode(p.unref(Hp),{value:i.value.refreshTime,"onUpdate:value":f[4]||(f[4]=d=>i.value.refreshTime=d),step:1,style:{width:"100%"},onChange:a},{addonAfter:p.withCtx(()=>[qft]),_:1},8,["value"])]),_:1}),p.createVNode(p.unref(Qn).Item,{label:"请求参数",name:"params"},{default:p.withCtx(()=>[p.createVNode(p.unref(gr),{type:"default",size:"small",onClick:f[5]||(f[5]=d=>l("params"))},{default:p.withCtx(()=>[p.createTextVNode("编辑")]),_:1})]),_:1}),p.createVNode(p.unref(Qn).Item,{label:"请求头",name:"headers"},{default:p.withCtx(()=>[p.createVNode(p.unref(gr),{type:"default",size:"small",onClick:f[6]||(f[6]=d=>l("headers"))},{default:p.withCtx(()=>[p.createTextVNode("编辑")]),_:1})]),_:1}),p.createVNode(p.unref(Qn).Item,{label:"数据处理",name:"dataProcess"},{default:p.withCtx(()=>[p.createVNode(p.unref(gr),{type:"default",size:"small",onClick:f[7]||(f[7]=d=>l("dataProcess"))},{default:p.withCtx(()=>[p.createTextVNode("编辑")]),_:1})]),_:1})],64)):p.createCommentVNode("",!0)]),_:1},8,["model"]),p.createVNode(p.unref(Yft),{ref_key:"codeEditorRef",ref:s,title:"编辑数据",onOk:u},null,512)],64))}}),fn={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:gt(n,"title.textStyle.color","#FFFFFF"),size:gt(n,"title.textStyle.size",16),bold:gt(n,"title.textStyle.fontWeight")==="bold",italic:gt(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)=>gt(n,"legend.orient")==="vertical"?e==="top"?"top":e==="bottom"?"bottom":"left":gt(n,"legend.bottom")===8&&gt(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:gt(n,"legend.textStyle.color","#000000ff"),size:gt(n,"legend.textStyle.fontSize",12),bold:gt(n,"legend.textStyle.fontWeight")==="bold",italic:gt(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:jb[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:gt(n,"xAxis.axisLabel.color","#000000ff"),size:gt(n,"xAxis.axisLabel.fontSize",12),bold:gt(n,"xAxis.axisLabel.fontWeight")==="bold",italic:gt(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:gt(n,"yAxis.axisLabel.color","#000000ff"),size:gt(n,"yAxis.axisLabel.fontSize",12),bold:gt(n,"yAxis.axisLabel.fontWeight")==="bold",italic:gt(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=gt(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:gt(n,"tooltip.textStyle.color","#000000ff"),size:gt(n,"tooltip.textStyle.fontSize",12),bold:gt(n,"tooltip.textStyle.fontWeight")==="bold",italic:gt(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)=>!!gt(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=gt(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:gt(n,"label.color","#000000ff"),size:gt(n,"label.fontSize",12),bold:gt(n,"label.fontWeight")==="bold",italic:gt(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}]:[]}]}},hse=t=>(p.pushScopeId("data-v-0b356b47"),t=t(),p.popScopeId(),t),Kft={class:"chart-config"},Jft={class:"config-tab"},edt=hse(()=>p.createElementVNode("span",null,"数据设置",-1)),tdt=hse(()=>p.createElementVNode("span",null,"样式设置",-1)),BN=_a(p.defineComponent({__name:"Config",props:sS,emits:["change"],setup(t,{emit:e}){const n=t,r=p.ref("1"),i=e,a=[{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=gt(c,"series.line.step"),d=gt(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:"°"}}],o=[fn.title,fn.legend,fn.label,{...fn.series,children:fn.series.children.concat(a)},fn.tooltip,fn.background],s=u=>{i("change",{...n,dataSource:u})},l=u=>{const c=hu(n);Object.keys(u).forEach(f=>{XC(c,f,u[f])}),i("change",c)};return(u,c)=>(p.openBlock(),p.createElementBlock("div",Kft,[p.createElementVNode("div",Jft,[p.createVNode(p.unref(vu),{activeKey:r.value,"onUpdate:activeKey":c[0]||(c[0]=f=>r.value=f),size:"small",centered:""},{default:p.withCtx(()=>[p.createVNode(p.unref(Yo),{key:"1"},{tab:p.withCtx(()=>[p.createVNode(p.unref(Up)),edt]),_:1}),p.createVNode(p.unref(Yo),{key:"2"},{tab:p.withCtx(()=>[p.createVNode(p.unref(Xp)),tdt]),_:1})]),_:1},8,["activeKey"])]),r.value==="1"?(p.openBlock(),p.createBlock(VN,{key:0,dataSource:u.dataSource,onChange:s},null,8,["dataSource"])):p.createCommentVNode("",!0),r.value==="2"?(p.openBlock(),p.createBlock(p.unref(gg),{key:1,columns:o,formModel:n,onChange:l},null,8,["formModel"])):p.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-0b356b47"]]);Ch.Config=BN,Ch.install=t=>(t.component("FmBasicLine",Ch),t);const ndt=Object.freeze(Object.defineProperty({__proto__:null,Config:BN,basicLineProps:sS,default:Ch,defaultPropsValue:aee},Symbol.toStringTag,{value:"Module"})),Xx={width:{type:Number,default:400},height:{type:Number,default:260},dataSource:BD,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}},pse=[];pse.bar={fixedBarWidth:!1,barWidth:"auto",barGap:"30%",barCategoryGap:"20%",itemStyle:{borderColor:"#ccc",borderRadius:0,borderWidth:0}};const rdt=VD({title:{text:"柱状图标题"},xAxis:{data:["轴标签A","轴标签B","轴标签C","轴标签D"]},series:pse}),gse={container:{props:{width:400,height:260}},props:{dataSource:{sourceType:Rr.STATIC,data:{xData:["轴标签A","轴标签B","轴标签C","轴标签D"],series:[{type:"bar",name:"系列1",data:[89.3,92.1,94.4,85.4]},{type:"bar",name:"系列2",data:[95.8,89.4,91.2,76.9]}]},url:location.origin+"/mock/api/get/example/bar",method:"POST",params:{},headers:{},refreshTime:0,dataProcess:`
  428. (res) => {
  429. // 取出列表
  430. const data = res.data;
  431. // x轴数据
  432. const xData = data.map((item) => item.name);
  433. // 系列数据
  434. const series = [
  435. { type: 'bar', name: '价格', data: data.map(item => item.price) },
  436. { type: 'bar', name: '总量', data: data.map(item => item.count) },
  437. ];
  438. // 返回图表数据
  439. return { xData, series };
  440. }
  441. `},...rdt}},Kh=p.defineComponent({__name:"BasicBar",props:Xx,setup(t){const e=t,{options:n,loading:r}=cR(e);return(i,a)=>(p.openBlock(),p.createBlock(LD,{width:i.width,height:i.height,"echarts-options":p.unref(n),loading:p.unref(r)},null,8,["width","height","echarts-options","loading"]))}}),vse=t=>(p.pushScopeId("data-v-d6923dbc"),t=t(),p.popScopeId(),t),idt={class:"chart-config"},adt={class:"config-tab"},odt=vse(()=>p.createElementVNode("span",null,"数据设置",-1)),sdt=vse(()=>p.createElementVNode("span",null,"样式设置",-1)),zN=_a(p.defineComponent({__name:"Config",props:Xx,emits:["change"],setup(t,{emit:e}){const n=t,r=p.ref("1"),i=e,a=[{label:"样式",prop:"",type:"divider"},{label:"固定柱宽",prop:"series.bar.fixedBarWidth",type:"radioGroup",fieldProps:{options:[{label:"是",value:!0},{label:"否",value:!1}]},defaultValue:!1,format:(u,c)=>{var f,d;u.value["series.bar.barWidth"]=c&&((f=u.value)==null?void 0:f["series.bar.barWidth"])!=="auto"?((d=u.value)==null?void 0:d["series.bar.barWidth"])||20:"auto"}},{label:"",prop:"",type:"dependency",name:["series.bar.fixedBarWidth"],children:u=>u["series.bar.fixedBarWidth"]?[{label:"柱宽",prop:"series.bar.barWidth",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:20}]:[]},{label:"系列间隔",prop:"series.bar.barGap",type:"slider",defaultValue:30,format:(u,c)=>{u.value["series.bar.barGap"]=c+"%"},valueToForm:u=>+((u==null?void 0:u.replace("%",""))||0)},{label:"分类间隔",prop:"series.bar.barCategoryGap",type:"slider",defaultValue:20,format:(u,c)=>{u.value["series.bar.barCategoryGap"]=c+"%"},valueToForm:u=>+((u==null?void 0:u.replace("%",""))||0)},{label:"边框",prop:"",type:"divider"},{label:"线宽",prop:"series.bar.itemStyle.borderWidth",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:0},{label:"颜色",prop:"series.bar.itemStyle.borderColor",type:"colorSelect",defaultValue:"#ccc"},{label:"圆角",prop:"series.bar.itemStyle.borderRadius",type:"inputNumber",fieldProps:{addonAfter:"px"},defaultValue:0}],o=[fn.title,fn.legend,fn.label,{...fn.series,children:fn.series.children.concat(a)},fn.xAxis,fn.yAxis,fn.tooltip],s=u=>{i("change",{...n,dataSource:u})},l=u=>{const c=hu(n);Object.keys(u).forEach(f=>{XC(c,f,u[f])}),i("change",c)};return(u,c)=>(p.openBlock(),p.createElementBlock("div",idt,[p.createElementVNode("div",adt,[p.createVNode(p.unref(vu),{activeKey:r.value,"onUpdate:activeKey":c[0]||(c[0]=f=>r.value=f),size:"small",centered:""},{default:p.withCtx(()=>[p.createVNode(p.unref(Yo),{key:"1"},{tab:p.withCtx(()=>[p.createVNode(p.unref(Up)),odt]),_:1}),p.createVNode(p.unref(Yo),{key:"2"},{tab:p.withCtx(()=>[p.createVNode(p.unref(Xp)),sdt]),_:1})]),_:1},8,["activeKey"])]),r.value==="1"?(p.openBlock(),p.createBlock(VN,{key:0,dataSource:u.dataSource,onChange:s},null,8,["dataSource"])):p.createCommentVNode("",!0),r.value==="2"?(p.openBlock(),p.createBlock(p.unref(gg),{key:1,columns:o,formModel:n,onChange:l},null,8,["formModel"])):p.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-d6923dbc"]]);Kh.Config=zN,Kh.install=t=>(t.component("FmBasicBar",Kh),t);const ldt=Object.freeze(Object.defineProperty({__proto__:null,Config:zN,basicBarProps:Xx,default:Kh,defaultPropsValue:gse},Symbol.toStringTag,{value:"Module"})),Yx={width:{type:Number,default:400},height:{type:Number,default:260},dataSource:BD,title:{type:Object},legend:{type:Object},backgroundColor:{type:String},grid:{type:Object},tooltip:{type:Object},series:{type:Array},color:{type:Object}},mse=[];mse.pie={top:70,startAngle:0,endAngle:360,radius:["0%","75%"]};const udt=VD({title:{text:"饼图标题"},grid:{show:!1},xAxis:{show:!1},yAxis:{show:!1},series:mse}),yse={container:{props:{width:400,height:260}},props:{dataSource:{sourceType:Rr.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:`
  442. (res) => {
  443. // 取出列表
  444. const data = res.data;
  445. // 系列数据
  446. const series = [
  447. { type: 'pie', name: '价格', data: data.map(item => item.price) },
  448. ];
  449. // 返回图表数据
  450. return { series };
  451. }
  452. `},...udt}},Jh=p.defineComponent({__name:"BasicPie",props:Yx,setup(t){const e=t,{options:n,loading:r}=cR(e);return(i,a)=>(p.openBlock(),p.createBlock(LD,{width:i.width,height:i.height,"echarts-options":p.unref(n),loading:p.unref(r)},null,8,["width","height","echarts-options","loading"]))}}),bse=t=>(p.pushScopeId("data-v-bd423688"),t=t(),p.popScopeId(),t),cdt={class:"chart-config"},fdt={class:"config-tab"},ddt=bse(()=>p.createElementVNode("span",null,"数据设置",-1)),hdt=bse(()=>p.createElementVNode("span",null,"样式设置",-1)),FN=_a(p.defineComponent({__name:"Config",props:Yx,emits:["change"],setup(t,{emit:e}){const n=t,r=p.ref("1"),i=e,a=[{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)=>{console.log("formatModel",u);const f=c*.75;return u.value["series.pie.radius"]=[f+"%","75%"],c*100},valueToForm:u=>(u||["0%","75%"])[0].replace("%","")/.75}],o=[fn.title,fn.legend,fn.label,{...fn.series,children:fn.series.children.concat(a)},fn.tooltip],s=u=>{i("change",{...n,dataSource:u})},l=u=>{const c=hu(n);Object.keys(u).forEach(f=>{XC(c,f,u[f])}),i("change",c)};return(u,c)=>(p.openBlock(),p.createElementBlock("div",cdt,[p.createElementVNode("div",fdt,[p.createVNode(p.unref(vu),{activeKey:r.value,"onUpdate:activeKey":c[0]||(c[0]=f=>r.value=f),size:"small",centered:""},{default:p.withCtx(()=>[p.createVNode(p.unref(Yo),{key:"1"},{tab:p.withCtx(()=>[p.createVNode(p.unref(Up)),ddt]),_:1}),p.createVNode(p.unref(Yo),{key:"2"},{tab:p.withCtx(()=>[p.createVNode(p.unref(Xp)),hdt]),_:1})]),_:1},8,["activeKey"])]),r.value==="1"?(p.openBlock(),p.createBlock(VN,{key:0,dataSource:u.dataSource,onChange:s},null,8,["dataSource"])):p.createCommentVNode("",!0),r.value==="2"?(p.openBlock(),p.createBlock(p.unref(gg),{key:1,columns:o,formModel:n,onChange:l},null,8,["formModel"])):p.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-bd423688"]]);Jh.Config=FN,Jh.install=t=>(t.component("FmBasicPie",Jh),t);const pdt=Object.freeze(Object.defineProperty({__proto__:null,Config:FN,basicPieProps:Yx,default:Jh,defaultPropsValue:yse},Symbol.toStringTag,{value:"Module"})),gdt={Title:()=>Promise.resolve().then(()=>dEe),BasicLine:()=>Promise.resolve().then(()=>ndt),BasicBar:()=>Promise.resolve().then(()=>ldt),BasicPie:()=>Promise.resolve().then(()=>pdt)},WN={BasicLine:Ch,BasicBar:Kh,Title:sf,BasicPie:Jh},_se=function(t){return Object.keys(WN).forEach(e=>{const n=WN[e];n!=null&&n.install&&(console.log("注册组件:",e),t.use(n))}),t},vdt={version:"1.0.0",install:_se};lt.BasicBar=Kh,lt.BasicBarConfig=zN,lt.BasicBarDefaultProps=gse,lt.BasicBarProps=Xx,lt.BasicLine=Ch,lt.BasicLineConfig=BN,lt.BasicLineDefaultProps=aee,lt.BasicLineProps=sS,lt.BasicPie=Jh,lt.BasicPieConfig=FN,lt.BasicPieDefaultProps=yse,lt.BasicPieProps=Yx,lt.CusForm=gg,lt.DataSourceType=Rr,lt.Title=sf,lt.asyncComponentAll=gdt,lt.components=WN,lt.default=vdt,lt.install=_se,Object.defineProperties(lt,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
  453. //# sourceMappingURL=shalu-dashboard-ui.umd.cjs.map