(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;etypeof 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;e0},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"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;a0&&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{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;n1&&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]{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=Ti2||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;v0?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 ")}`:""}`)}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} `;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+(e1&&(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>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=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=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, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', '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{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:` 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02) `,boxShadowSecondary:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowTertiary:` 0 1px 2px 0 rgba(0, 0, 0, 0.03), 0 1px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px 0 rgba(0, 0, 0, 0.02) `,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:` 0 1px 2px -2px ${new It("rgba(0, 0, 0, 0.16)").toRgbString()}, 0 3px 6px 0 ${new It("rgba(0, 0, 0, 0.12)").toRgbString()}, 0 5px 12px 4px ${new It("rgba(0, 0, 0, 0.09)").toRgbString()} `,boxShadowDrawerRight:` -6px 0 16px 0 rgba(0, 0, 0, 0.08), -3px 0 6px -4px rgba(0, 0, 0, 0.12), -9px 0 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowDrawerLeft:` 6px 0 16px 0 rgba(0, 0, 0, 0.08), 3px 0 6px -4px rgba(0, 0, 0, 0.12), 9px 0 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowDrawerUp:` 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05) `,boxShadowDrawerDown:` 0 -6px 16px 0 rgba(0, 0, 0, 0.08), 0 -3px 6px -4px rgba(0, 0, 0, 0.12), 0 -9px 28px 8px rgba(0, 0, 0, 0.05) `,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{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({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;re||a>t&&o=e&&s>=n?a-t-r:o>e&&sn?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=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=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(` * `);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: `+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||"<>",{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;r0&&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: `+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=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+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+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.leftn.right}function a8(t,e,n){return t.topn.bottom}function mfe(t,e,n){return t.left>n.right||t.left+e.widthn.bottom||t.top+e.height=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();++es))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-1&&t%1==0&&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.nodeType&<,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{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;o0&&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;r1&&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(` html body { overflow-y: hidden; ${a?`width: calc(100% - ${i}px);`:""} }`,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{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.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);it.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{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 alt async autocomplete autofocus autoplay capture cellpadding cellspacing challenge charset checked classid classname colspan cols content contenteditable contextmenu controls coords crossorigin data datetime default defer dir disabled download draggable enctype form formaction formenctype formmethod formnovalidate formtarget frameborder headers height hidden high href hreflang htmlfor for httpequiv icon id inputmode integrity is keyparams keytype kind label lang list loop low manifest marginheight marginwidth max maxlength media mediagroup method min minlength multiple muted name novalidate nonce open optimum pattern placeholder poster preload radiogroup readonly rel required reversed role rowspan rows sandbox scope scoped scrolling seamless selected shape size sizes span spellcheck src srcdoc srclang srcset start step style summary tabindex target title type usemap value width wmode wrap onCopy onCut onPaste onCompositionend onCompositionstart onCompositionupdate onKeydown onKeypress onKeyup onFocus onBlur onChange onInput onSubmit onClick onContextmenu onDoubleclick onDblclick onDrag onDragend onDragenter onDragexit onDragleave onDragover onDragstart onDrop onMousedown onMouseenter onMouseleave onMousemove onMouseout onMouseover onMouseup onSelect onTouchcancel onTouchend onTouchmove onTouchstart onTouchstartPassive onTouchmovePassive onScroll onWheel onAbort onCanplay onCanplaythrough onDurationchange onEmptied onEncrypted onEnded onError onLoadeddata onLoadedmetadata 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);it.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{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({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{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;Vs.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({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=>[` `,`\r `].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;_e1?Q-1:0),ae=1;ae{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{};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;wA&&(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{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=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`${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;T1&&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);i1&&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;g0&&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{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 * { line-height: 1; } .anticon svg { display: inline-block; } .anticon::before { display: none; } .anticon .anticon-icon { display: block; } .anticon[tabindex] { cursor: pointer; } .anticon-spin::before, .anticon-spin { display: inline-block; -webkit-animation: loadingCircle 1s infinite linear; animation: loadingCircle 1s infinite linear; } @-webkit-keyframes loadingCircle { 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } @keyframes loadingCircle { 100% { -webkit-transform: rotate(360deg); transform: rotate(360deg); } } `;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=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=0)&&(n[i]=t[i]);return n}function Py(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n=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=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;e1&&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. 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);++n0){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-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;++a1?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);++ri?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=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=120&&c.length>=120?new xf(o&&c):void 0}c=t[0];var f=-1,d=s[0];e:for(;++f1),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=wye){var u=xye(t);if(u)return tC(u);o=!1,i=dy,l=new xf}else l=s;e:for(;++r({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{[` ${a}${t}-enter, ${a}${t}-appear `]:I(I({},Aye(r)),{animationPlayState:"paused"}),[`${a}${t}-leave`]:I(I({},Eye(r)),{animationPlayState:"paused"}),[` ${a}${t}-enter${t}-enter-active, ${a}${t}-appear${t}-appear-active `]:{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),{[` ${i}${r}-enter, ${i}${r}-appear `]:{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),{[` ${r}-enter, ${r}-appear `]:{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),{[` ${r}-enter, ${r}-appear `]:{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),{[` ${r}-enter, ${r}-appear `]:{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}, opacity ${t.motionDurationMid} ${t.motionEaseInOut} !important`}},[`${t.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${t.motionDurationMid} ${t.motionEaseInOut}, 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,[` &${e}-slide-up-enter${e}-slide-up-enter-active${n}-dropdown-placement-bottomLeft, &${e}-slide-up-appear${e}-slide-up-appear-active${n}-dropdown-placement-bottomLeft `]:{animationName:O3},[` &${e}-slide-up-enter${e}-slide-up-enter-active${n}-dropdown-placement-topLeft, &${e}-slide-up-appear${e}-slide-up-appear-active${n}-dropdown-placement-topLeft `]:{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"'}},[` &${n}-show-arrow ${n}-selector, &${n}-allow-clear ${n}-selector `]:{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%"}},[` ${n}-selection-item, ${n}-selection-placeholder `]:{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"'}}),[` &${n}-show-arrow ${n}-selection-item, &${n}-show-arrow ${n}-selection-placeholder `]:{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},[` &${e}-show-arrow ${e}-selection-item, &${e}-show-arrow ${e}-selection-placeholder `]:{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{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({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{}),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`${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);it.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;ep.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{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{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, > ${e}-item-active, > ${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, ${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, > ${e}-submenu > ${e}-submenu-title`]:{height:n,lineHeight:`${n}px`},[`${e}-item-group-list ${e}-submenu-title, ${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, > ${e}-item-group > ${e}-item-group-list > ${e}-item, > ${e}-item-group > ${e}-item-group-list > ${e}-submenu > ${e}-submenu-title, > ${e}-submenu > ${e}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${c}px)`,textOverflow:"clip",[` ${e}-submenu-arrow, ${e}-submenu-expand-icon `]:{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, &-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);it.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 &, &: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({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, & > ${n}-select-auto-complete ${e}, & > ${n}-cascader-picker ${e}, & > ${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, & > ${n}-select:first-child > ${n}-select-selector, & > ${n}-select-auto-complete:first-child ${e}, & > ${n}-cascader-picker:first-child ${e}`]:{borderStartStartRadius:t.borderRadius,borderEndStartRadius:t.borderRadius},[`& > *:last-child, & > ${n}-select:last-child > ${n}-select-selector, & > ${n}-cascader-picker:last-child ${e}, & > ${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, > ${e}, ${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{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{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{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){if(Math.abs(C)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=>deV.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.righth.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&&Xeye+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]{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{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{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}, 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, > 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":{[` &, & > ${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}`},[` > ${e}-item:last-child, > ${e}-item:last-child ${e}-header `]:{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;ewi()&&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{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;Tt.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"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=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()\[\]\\.,;:\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&&ce.max?i.push(ai(a.messages[f].max,e.fullField,e.max)):s&&l&&(ce.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;_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;rc6(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;fTT(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{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}, opacity ${t.motionDurationSlow} ${t.motionEaseInOut}, 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, &-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, > ${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, ${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, .${r}-col-24${n}-label, .${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({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;a1&&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{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"},[` ${n}:not(${n}-disabled), ${e}:not(${e}-disabled) `]:{[`&: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}`}},[` ${n}-checked:not(${n}-disabled), ${e}-checked:not(${e}-disabled) `]:{[`&: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(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`${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{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);idocument.body;let E6=0;function BSe(){const t={};for(var e=arguments.length,n=new Array(e),r=0;r{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"},[` ${e}-move-up-appear, ${e}-move-up-enter `]:{animationName:y,animationDuration:f,animationPlayState:"paused",animationTimingFunction:c},[` ${e}-move-up-appear${e}-move-up-appear-active, ${e}-move-up-enter${e}-move-up-enter-active `]:{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},[` ${e}-info ${n}, ${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);ia("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);it.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"),` :root { ${Object.keys(n).map(o=>`--${t}-${o}: ${n[o]};`).join(` `)} } `.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{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);it.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$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{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=` min-height:0 !important; max-height:none !important; height:0 !important; visibility:hidden !important; overflow:hidden !important; position:absolute !important; z-index:-1000 !important; top:0 !important; right:0 !important; pointer-events: none !important; `,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||""].lengthr&&(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;et?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&&ir)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{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({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{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, ${e}-body, ${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}, ${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;eNumber.MAX_SAFE_INTEGER)return String(eP()?BigInt(t).toString():Number.MAX_SAFE_INTEGER);if(tNumber.MAX_SAFE_INTEGER)return new _u(Number.MAX_SAFE_INTEGER);if(r0&&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);it||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%",[` ${e}-handler-up-inner, ${e}-handler-down-inner `]:{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%",[` ${e}-handler-up-inner, ${e}-handler-down-inner `]:{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"}},[` ${e}-handler-up-disabled, ${e}-handler-down-disabled `]:{cursor:"not-allowed"},[` ${e}-handler-up-disabled:hover &-handler-up-inner, ${e}-handler-down-disabled:hover &-handler-down-inner `]:{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);iI(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;bt?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({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{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{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;fh&&h.triggerCancel);t.onCancel&&d&&t.onCancel(()=>{},...c.slice(1));for(let h=0;h{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 tr}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{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.sValue1&&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[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[r]&&(n=r);return Math.abs(e[n+1]-t)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=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[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:` inset-inline-start ${t.motionDurationMid}, inset-block-start ${t.motionDurationMid}, width ${t.motionDurationMid}, height ${t.motionDurationMid}, box-shadow ${t.motionDurationMid} `},"&: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`},[` ${e}-dot `]:{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},[` ${e}-mark-text, ${e}-dot `]:{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);itypeof 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;ei=>{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}};/** * @vue/shared v3.4.31 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/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. For more detail, please visit: ${i} `)},{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=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{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 usage: app.provide(ID_INJECTION_KEY, { prefix: number, current: number, })`);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 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=` height:0 !important; visibility:hidden !important; ${wTe()?"":"overflow:hidden !important;"} position:absolute !important; z-index:-1000 !important; top:0 !important; right:0 !important; `,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{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"}));/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var 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=0)s=o*n.length;else for(var l=0;l>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={"&":"&","<":"<",">":">",'"':""","'":"'"};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;o1&&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=!(ag&&(g=_,vg&&(g=O,y=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;m4)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=0;)i++;return i-e}function iMe(t,e,n){for(n--;e>>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;l0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}for(o++;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;ls&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=r-i;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;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])break;c(h)}}function u(){for(;a>1;){var h=a-2;h>0&&i[h-1]=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=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)=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=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;ys&&(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;r0&&(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=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_&&to_||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=0&&m=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=0&&h=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}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;ar?e:t,a=Math.min(n,r),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)r.length=o;else for(var l=a;l=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=0&&!(o[c].percent<=n);c--);c=d(c,s-2)}else{for(c=f;cn);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;o0&&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;r0)){this._started=1;for(var n=this,r=[],i=this._maxTime||0,a=0;a1){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.__lastTouchMomenti7||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=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;a0},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;l0,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=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=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;o0&&n.during&&a[0].during(function(g,v){n.during(v)});for(var d=0;d0||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=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;i0&&(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;n0){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]});su&&(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=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=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=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;ah&&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;ms&&v2(n,t.substring(s,u),e,o),v2(n,l[2],e,o,l[1]),s=g2.lastIndex}si){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&&R0&&g+r.accumWidth>r.width&&(c=e.split(` `),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(` `);for(var m=0;m=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;fn: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;i1e-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:ii&&(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&&n0&&(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;rc.length&&(this._expandData(),c=this.data);for(var f=0;f0&&(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;n11&&(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;or||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;x0&&(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||ot+s&&a>n+s||ae+f&&c>r+f&&c>a+f&&c>s+f||ct+f&&u>n+f&&u>i+f&&u>o+f||ue+u&&l>r+u&&l>a+u||lt+u&&s>n+u&&s>i+u||sn||c+ui&&(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||ai?s:0}var ul=co.CMD,Xu=Math.PI*2,KIe=1e-4;function JIe(t,e){return Math.abs(t-e)e&&u>r&&u>a&&u>s||u1&&eDe(),h=wn(e,r,a,s,Gi[0]),d>1&&(g=wn(e,r,a,s,Gi[1]))),d===2?me&&s>r&&s>a||s=0&&u<=1){for(var c=0,f=Nn(e,r,a,u),d=0;dn||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&&v1&&(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.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)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;d0},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;n0,A=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),E=o.calculatedLineHeight,D=0;D=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=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;f0){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;i1&&(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;uD*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$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),P0&&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),C0&&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=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;snc[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()&&(c0){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;eMath.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];a1)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=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=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':'';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 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=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;be)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. import { `+r+` } from 'echarts/components'; 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. import { `+A+` } from 'echarts/charts'; 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=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=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;rv&&(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=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=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._dueIndex1&&r>0?s:o}};return a;function o(){return e=t?null:le},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 ri?-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;c65535?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;um[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;cy[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=0&&n=this._rawCount||e<0)return-1;if(!this._indices)return e;var n=this._indices,r=n[e];if(r!=null&&re)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=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=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=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=f&&b<=d||isNaN(b))&&(l[u++]=w)}else for(var y=0;ye[C][1])&&(T=!1)}T&&(l[u++]=n.getRawIndex(y))}return uy[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;gc&&(c=f,d=O)}$>0&&$c-g&&(l=c-g,s.length=l);for(var v=0;vf[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();al&&(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=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;n1||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('
'+yr(d)+"
"+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='
',r="margin: "+e+"px 0 0";return'
'+t+n+"
"}function jke(t,e,n){var r=e?"margin-left:2px":"";return''+yr(t)+""}function Gke(t,e,n,r){var i=n?"10px":"20px",a=e?"float:right;margin-left:"+i:"";return t=re(t)?t:[t],''+ie(t,function(o){return yr(o)}).join("  ")+""}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;ithis.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=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;c0&&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=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;a0&&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=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;a0)?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;so.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;A0&&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+=''+_.dom+""}),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;_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;_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=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;o1){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;s1&&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;h1)for(var s=0;s30}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=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=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;c0},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;l1&&(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;h0&&(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;en[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&&or&&(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=0&&n=0&&n=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[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]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;oa[0]&&h0&&(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&&bO&&(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)0?n:1:n))}var n4e=function(t,e,n,r){for(;n>>1;t[i][1]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]();V1&&M===0&&A.unshift({value:A[0].value-V})}}for(var M=0;M=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;h0;)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]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;ct[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)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>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;n40&&(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:hi&&(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;h0){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(a1&&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=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;c0&&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;$0)for(var A=0;A0;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;$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=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"}function b8e(t){return""}function LE(t,e){e=e||{};var n=e.newline?` `:"";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?` `:"",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?"":[""].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;u0}).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"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;ea?(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=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=s)}}for(var f=this.__startIndex;f15)break}}D.prevElClipPaths&&y.restore()};if(b)if(b.length===0)T=m.__endIndex;else for(var C=h.dpr,$=0;$0&&e>i[0]){for(l=0;le);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;i0?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-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=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;a0?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;_=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||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=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=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(;oe){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;or)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=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;e0&&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;Te&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;ne&&(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;Sm){_=(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-cMath.PI/2&&cs)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=si?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;n0?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=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=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,LL?(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}),En?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)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)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;v0){for(var c=o.getItemLayout(0),f=1;isNaN(c&&c.startAngle)&&f=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]=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=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;mu[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;i0?"top":"bottom",a="center"):gd(i-Cl)?(o=r>0?"bottom":"top",a="center"):(o="middle",i>0&&i0?"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",iCl/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=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]),o0&&!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;A3?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;r0;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;r0,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=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-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;c1?(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=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;gb.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;bn&&(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=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=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=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;Oc.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;e1;)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;ifX||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=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.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&&su[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=0;l--){var u=i[r==="asc"?o-l-1:l].getValue();u/n*es[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;ar&&(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;fa2&&(u=a2),a=s}ur&&(r=e);var a=r%2?r+2:r+3;i=[];for(var o=0;o0&&(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].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;i0}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=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=0&&e.call(n,r[a],a)},t.prototype.eachEdge=function(e,n){for(var r=this.edges,i=r.length,a=0;a=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=0&&l.node2.dataIndex>=0});for(var a=0,o=i.length;a=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 "+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=P&&(C===0?0:a[C-1][0])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-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;xSBe)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.spana&&(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;ca*(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=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;aNBe}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;or.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=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=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;bf-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;s0;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;c0&&(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;++ao&&(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();av){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;r0?"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:n0?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;s0&&(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=0&&!(a[l]<=r);l--);l=Math.min(l,o-2)}else{for(l=s;lr);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;o0){n.moveTo(i[o++],i[o++]);for(var l=1;l0){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;u0)for(var f=a[u++],d=a[u++],h=1;h0){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;u0&&(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;c0&&(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;oi&&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;g0){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=0;s--){var l=e[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}return s>=0&&s=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;$f[1]||Md[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]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,c0: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;Ta&&(a=s),r.push(s)}for(var u=0;ua&&(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)D&&!gd(R-D)&&R0?(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;z1;)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;r0&&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=0){!o&&(o=r[t]={});for(var h=Ue(a),c=0;c=0)){var d=t.getAnimationStyleProps(),h=d?d.style:null;if(h){!a&&(a=r.style={});for(var g=Ue(n),u=0;u=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=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=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=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=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=us;)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;fy?"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=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)=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=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=i.start.time&&r.times.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&&ni.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=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=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;ao[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='',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=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=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;at[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-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'
'}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=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"?` `:"
",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;ye[0][1]&&(e[0][1]=a[0]),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=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=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]_[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=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===` `)){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;ri[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=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;ir[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;cr[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]=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;ln[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;$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=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;s0: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];oo[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(P1?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":"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;n2&&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=DT:$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(_=0&&T=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;i0)for(var u=0;uMath.abs(u),f=LJ([l,u],c?0:1,e),d=(c?s:u)/f.length,h=0;hi,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;d1?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;ao?(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;r0;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=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;r0))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;Re.length,h=u?UJ(c,u):UJ(d?e:t,[d?t:e]),g=0,v=0;vXJ){process.env.NODE_ENV!=="production"&&Wt("Universal transition is disabled on large data > 10k.");return}for(var a=r.getIndices(),o=0;o0&&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=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;sW9e.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([` self.onmessage = function(e) { self.postMessage((${t}).call(null, e.data)); } `],{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:` (res) => { // 取出列表 const data = res.data; // x轴数据 const xData = data.map((item) => item.name); // 系列数据 const series = [ { type: 'line', name: '苹果', data: data.map(item => item.apple) }, { type: 'line', name: 'VIVO', data: data.map(item => item.vivo) }, { type: 'line', name: '小米', data: data.map(item => item.mi) }, ]; // 返回图表数据 return { xData, series }; } `},...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{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{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"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-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-1&&t%1==0&&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));++ne 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:{}};/*! * screenfull * v5.2.0 - 2021-11-03 * (c) Sindre Sorhus; MIT License */(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={};l0){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{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=` `){[e,n]=Th(this,e,n);let i="";for(let a=0,o=0;a<=n&&oe&&o&&(i+=r),ea&&(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=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=a&&n<=s){let l=o.replace(e-a,n-a,r),u=this.lines-o.lines+l.lines;if(l.lines>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=` `){[e,n]=Th(this,e,n);let i="";for(let a=0,o=0;ae&&a&&(i+=r),eo&&(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=n&&(l>r&&(s=s.slice(0,r-i)),i0?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=` `,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;tt)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=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=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;ne)return a+(e-i);a+=s}else{if(r!=Kn.Simple&&u>=e&&(r==Kn.TrackDel&&ie||r==Kn.TrackBefore&&ie))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=0&&i<=n&&s>=e)return in?"cover":!0;i=s}return!1}toString(){let e="";for(let n=0;n=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=0){n[i]=s,n[i+1]=o;let l=i>>1;for(;r.length0&&Rl(r,n,a.text),a.forward(c),s+=c}let u=e[o++];for(;s>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;od||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;fo&&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;is&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(a.length==1)n.push(a[0],0);else{for(;r.length=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>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=0&&l=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.lenl||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>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;re.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;ie?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;ia.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;rt[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;cr===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>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[r]))a=t[r++],o=t[r++];else if(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"€"&&(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-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;si.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;so.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)||` `}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(;st.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);ah||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=0){let f=n[l++];c.addInner(f.from,f.to,f.value)||u.push(f)}else s.rangeIndex==1&&s.chunkIndexthis.chunkEnd(s.chunkIndex)||as.to||a=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.pointFroms&&(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;n0)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=this.minPoint)break}}setRangeIndex(e){if(e==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=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=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(;n0;)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=0&&r[i]=0&&!(this.activeRank[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=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)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(` `)}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-1&&(this.modules.splice(l,1),a--,l=-1),l==-1){if(this.modules.splice(a++,0,s),r)for(let u=0;u",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.top0&&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-y0&&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.leftn.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;nMath.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&&rn)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=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;ithis.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(r0&&(!o&&a.length&&c.merge(n,c.length,a[0],!1,s,0)?c.breakAfter=a.shift().breakAfter:(n2);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||ne&&n.push(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=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||n0)?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.top0?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;ia&&e0;a--){let o=r[a-1];if(o.dom.parentNode==n)return o.domAtPos(o.length)}for(let a=i;a0&&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=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-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;n0&&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=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||n0}}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&&(e0),c=!l.isEditable&&(ei.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?ei.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=n){if(s.level==r)return o;(a<0||(i!=0?i<0?s.fromn: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=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=il;)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;ll&&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):le;){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.tokt.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));(cl.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)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.toAc)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})=>cthis.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=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.fromBc){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=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=0;o--){let s=this.children[o],l=a-s.breakAfter,u=l-s.length;if(le||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;sMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,s=-1,l=this.view.textDirection==Ht.LTR;for(let u=0,c=0;ci)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];en.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{re.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(;st?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.tope.top+1}function jne(t,e){return et.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_||o==_&&a>b){r=g,i=y,a=b,o=_;let O=_?n0?m0)}b==0?n>y.bottom&&(!c||c.bottomy.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;sn?c.top-n:n-c.bottom)-1;if(c.left-1<=e&&c.right+1>=e&&f=(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(ht.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.yt.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=` `,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(gl.bottom||(a<0?vi)){let m=t.docView.coordsForChar(v),y=!m||g{if(e>a&&ei(t)),n.from,e.head>n.from?-1:1);return r==n.from?n:ce.cursor(r,rnull),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.from0?!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;rn.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=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 st>=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=d1&&(u=Zit(i,l.pos))?u:s?i.addRange(c):ce.create([c])}}}function Zit(t,e){for(let n=0;n=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{/[\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-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;u0}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--,la*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&&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+(e0){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 es))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.right.forEachLine(e,n,r,s,l,o);else{let u=this.lineAt(l,jt.ByPos,r,i,a);e=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(nthis.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=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);e2*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=eat)&&this.addLineDeco(i,a,o)}else n>e&&this.span(e,n);this.lineEnd>-1&&this.lineEnd-1)return;let{from:e,to:n}=this.oracle.doc.lineAt(this.pos);this.lineStart=e,this.lineEnd=n,this.writtenToe&&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.writtenToc.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;rtypeof 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.headl.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.headthis.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(ul.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=s+Math.max(10,Math.min(r,250)))&&i>o-2*1e3&&a>1,o=i<<1;if(this.defaultTextDirection!=Ht.LTR&&!r)return[];let s=[],l=(c,f,d,h)=>{if(f-cc&&yy.from>=d.from&&y.to<=d.to&&Math.abs(y.from-c)y.fromb));if(!m){if(fy.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.lengthc.from&&l(c.from,h,c,f),gn.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=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=nn.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,')`,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-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.toDate.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=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()==` `&&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.lengthi.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.frome.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(;a0&&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=o?a-n:0;a-=l,s=a+(s-o),o=a}else if(s=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){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{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{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(` `))};a.from==this.from&&ithis.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{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(athis.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.to1e4*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-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;h1||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;nr.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)||ethis.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=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;lr.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{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/2A&&D.from=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!$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&&s1e3?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.tol.from;o--)if(this.boundary.test(l.text[o-1-l.from])){c=o;break}for(;sd.push(y.range(v,m));if(l==u)for(this.regexp.lastIndex=c-l.from;(h=this.regexp.exec(l.text))&&h.indexthis.addMatch(m,e,v,g));n=n.update({filterFrom:c,filterTo:f,filter:(v,m)=>vf,add:d})}}return n}}const lk=/x/.unicode!=null?"gu":"g",Vat=new RegExp(`[\0-\b --Ÿ­؜​‎‏\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;ln[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=Math.min(n.bottom,r.bottom)||f.rightMath.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.yr.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_&&T.topx&&(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;es.bottom||n.xs.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{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.righti||Math.min(o.bottom,s)=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=aa(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{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;n0;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;n0));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=e&&ne;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.to0?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: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;an.from||o.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-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=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=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-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=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&&T4){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=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=r)for(;o&&o.from=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=anew 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;nr.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{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=_||!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;lr.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=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.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);ce.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.chunkEndi+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?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-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.frombie(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.ton)continue;if(a&&s.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)=>{ir&&(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{(!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{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?(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.headCe.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.from0?e>=c.from&&ec.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.from0)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;oi&&(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;da.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=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.prevTime0&&n-this.prevTimen.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.clientHeighto.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.bottomqie(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.headrlt(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.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);lo&&(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,oi(t)))r.between(e,e,(i,a)=>{ie&&(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&&ihae(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.headl0(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{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{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));os.from&&a{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.fromt.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(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(;et.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&&athis.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(),(rthis.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=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=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=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(l200)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"?` `: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=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=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;ia[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;atypeof 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=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!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=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;ul&&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 ln.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]{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.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.bottomr.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.tonew Out(n,t,e)}function xut(t,e){let n=t.getBoundingClientRect(),r=e.getBoundingClientRect(),i=n.height/t.offsetHeight;r.topn.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.namef.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;uu.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-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:so||!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-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.timestampt.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;akut&&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;ro.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;fnew 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=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{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)&&(eloe(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;ra.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{for(let a=0;aooe(this.view)},"×")),this.update()}get selectedIndex(){let e=this.view.state.field(Oi).selected;if(!e)return-1;for(let n=0;n{let u=-1,c;for(let f=r;fr&&(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({sel:a.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:o,panel:s})=>{let l=s.height/this.list.offsetHeight;o.tops.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,${encodeURIComponent(t)}')`}function Rx(t){return gct(``,'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])];/*! * VueCodemirror v6.1.1 * Copyright (c) Surmon. All rights reserved. * Released under the MIT License. * Surmon */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 .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=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.lastBigReductionSizes;)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]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;al&1&&s==o)||i.push(n[a],o)}n=i}let r=[];for(let i=0;i>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;nthis.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=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(;ar.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&&ee)return Math.max(e,n.from);return this.end}peek(e){let n=this.chunkOff+e,r,i;if(n>=0&&n=this.chunk2Pos&&rs.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.chunk2Pos&&this.posthis.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.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&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<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>1,g=u+h+(h<<1),v=t[g],m=t[g+1]||65536;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)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(ee)return this.nextStart=o,null;if(a instanceof yn){if(o==e){if(o=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;uf.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=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;ae.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;on)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;o500&&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 ":"";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;ui?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 ":"";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.scoret;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;se.topRules[s][1]),i=[];for(let s=0;s=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;stypeof 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);a0}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;ar)&&n.p.parser.stateFlag(n.state,2)&&(!e||e.scoret.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'#HOOVQWO'#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-EpOOQU'#Jc'#JcOOQU,5>q,5>qOOQU-EtQWO'#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-EzO+}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-EuQ?NdO1G0|O#>|Q?NdO1G0|O#AZQ07bO'#CiO#CUQ07bO1G1_O#C]Q07bO'#JnO#CpQ?NdO,5?WOOQ?Mp-EoQWO1G3oO$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$tQWO1G0qO!A}Q`O1G0qO!BVQ7[O1G0qOOQ?Mp1G5w1G5wO!ArQ?MxO1G0ZOOQO1G0j1G0jO%[Q^O1G0jO$=aQ?MxO1G0jO$=lQ?MxO1G0jO!A}Q`O1G0ZOCrQ`O1G0ZO$=zQ?MxO1G0jOOQO1G0Z1G0ZO$>`Q?NdO1G0jPOOO-EjQpO,5rQrO1G4fOOQO1G4l1G4lO%[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[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-EtQWO7+&]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<|O%[Q^O,5>|OOQO-E<`-E<`O%FwQWO1G5xOOQ?Mr<]OOQU,5>_,5>_O&8uQWO1G3|O9WQWO7+&cO!(oQ^O7+&cOOQO7+%[7+%[O&8zQ07bO1G6UO>tQWO7+%[OOQ?Mr<tQWO<`Q?NdO<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,5tQWO7+)hO'(OQWO<`Q?NdOAN?[OOQOAN>{AN>{O%[Q^OAN?[OOQO<`Q?NdOG24vO#&wQWOLD,nOOQULD,nLD,nO!&_Q7[OLD,nO'5TQrOLD,nO'5[Q07bO7+'xO'6}Q07bO,5?]O'8}Q07bO,5?_O':}Q07bO7+'zO'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;POSfOdkOg'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(OQ#>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;{ < 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$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`#P#o`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^!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|#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^!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!^!LYP;=`<%l!KS>^!L`P;=`<%l!_#c#d#Bq#d#l%Z#l#m#Es#m#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#_#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-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 { \${} } catch (\${error}) { \${} }`,{label:"try",detail:"/ catch block",type:"keyword"}),Jr("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),Jr(`if (\${}) { \${} } else { \${} }`,{label:"if",detail:"/ else block",type:"keyword"}),Jr(`class \${name} { constructor(\${params}) { \${} } }`,{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:``}}}}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(` `);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]===` `&&(i=i.replace(/\n+$/g,"")),this.current_line.push(i)),this._end_with_newline&&this.__add_outputline();var a=this.__lines.join(` `);return r!==` `&&(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;i1&&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 |`+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/,` `).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: `+i+` 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: `+i+` 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;o0&&(this.__position-=1)},e.prototype.hasNext=function(){return this.__position=0&&n=0&&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=0&&e/),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(//),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,` `),!(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()+` `);if(w=this.__patterns.include.read(),w)return this._create_token(l.UNKNOWN,w.trim()+` `);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,` `),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,` `),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,` `),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)===` `&&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;AA&&(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=` `,$&&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;M0,$);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;R0&&(!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;E0&&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=` `,d&&a.test(d||"")&&(h=d.match(a)[0])),d=d.replace(o,` `);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._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()===` `&&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(//),cdata:f.starting_with(//),conditional_comment:f.starting_with(//),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("","ig"))}else this._is_content_unformatted(d)&&(f=this._input.readUntil(new RegExp("","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.newlines0);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=` `,m&&i.test(m)&&(y=m.match(i)[0])),m=m.replace(a,` `);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(/^(|]]>)$/.exec(O);if(!C){m.add_raw_token(y);return}w=P+C[1]+` `,O=C[4],C[5]&&(T=P+C[5]),O=O.replace(/\n[ \t]*$/,""),(C[2]||C[3].indexOf(` `)!==-1)&&(C=C[3].match(/[ \t]+$/),C&&(y.whitespace_before=C[0]))}if(O)if(S){var $=function(){this.eol=` `};$.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(` (`+E+")?","g"),` `)),O=P+O.replace(/\n/g,` `+P)}w&&(O?O=w+O+` `+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(` `)===-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&>(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:` (res) => { // 取出列表 const data = res.data; // x轴数据 const xData = data.map((item) => item.name); // 系列数据 const series = [ { type: 'bar', name: '价格', data: data.map(item => item.price) }, { type: 'bar', name: '总量', data: data.map(item => item.count) }, ]; // 返回图表数据 return { xData, series }; } `},...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:` (res) => { // 取出列表 const data = res.data; // 系列数据 const series = [ { type: 'pie', name: '价格', data: data.map(item => item.price) }, ]; // 返回图表数据 return { series }; } `},...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"}})}); //# sourceMappingURL=shalu-dashboard-ui.umd.cjs.map