var J3t=Object.defineProperty;var _Qe=e=>{throw TypeError(e)};var X3t=(e,t,r)=>t in e?J3t(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var RA=(e,t,r)=>X3t(e,typeof t!="symbol"?t+"":t,r),aae=(e,t,r)=>t.has(e)||_Qe("Cannot "+r);var yb=(e,t,r)=>(aae(e,t,"read from private field"),r?r.call(e):t.get(e)),oae=(e,t,r)=>t.has(e)?_Qe("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Sj=(e,t,r,n)=>(aae(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),sae=(e,t,r)=>(aae(e,t,"access private method"),r);/** * @vue/shared v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **//*! #__NO_SIDE_EFFECTS__ */function Ig(e){const t=Object.create(null);for(const r of e.split(","))t[r]=1;return r=>r in t}const hu={},Pk=[],wg=()=>{},W8=()=>!1,O5=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Nq=e=>e.startsWith("onUpdate:"),du=Object.assign,Lq=(e,t)=>{const r=e.indexOf(t);r>-1&&e.splice(r,1)},Z3t=Object.prototype.hasOwnProperty,rc=(e,t)=>Z3t.call(e,t),Co=Array.isArray,Uk=e=>V6(e)==="[object Map]",N5=e=>V6(e)==="[object Set]",d1e=e=>V6(e)==="[object Date]",_rt=e=>V6(e)==="[object RegExp]",Fs=e=>typeof e=="function",Zs=e=>typeof e=="string",q0=e=>typeof e=="symbol",Ac=e=>e!==null&&typeof e=="object",Pq=e=>(Ac(e)||Fs(e))&&Fs(e.then)&&Fs(e.catch),NIe=Object.prototype.toString,V6=e=>NIe.call(e),Trt=e=>V6(e).slice(8,-1),uL=e=>V6(e)==="[object Object]",Uq=e=>Zs(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,TE=Ig(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Drt=Ig("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),Hq=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},e5t=/-(\w)/g,EA=Hq(e=>e.replace(e5t,(t,r)=>r?r.toUpperCase():"")),t5t=/\B([A-Z])/g,Zp=Hq(e=>e.replace(t5t,"-$1").toLowerCase()),L5=Hq(e=>e.charAt(0).toUpperCase()+e.slice(1)),Hk=Hq(e=>e?`on${L5(e)}`:""),Wp=(e,t)=>!Object.is(e,t),jk=(e,...t)=>{for(let r=0;r{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:r})},BO=e=>{const t=parseFloat(e);return isNaN(t)?e:t},xO=e=>{const t=Zs(e)?Number(e):NaN;return isNaN(t)?e:t};let TQe;const cL=()=>TQe||(TQe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),r5t=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function n5t(e){return r5t.test(e)?`__props.${e}`:`__props[${JSON.stringify(e)}]`}function i5t(e,t){return e+JSON.stringify(t,(r,n)=>typeof n=="function"?n.toString():n)}const a5t={TEXT:1,1:"TEXT",CLASS:2,2:"CLASS",STYLE:4,4:"STYLE",PROPS:8,8:"PROPS",FULL_PROPS:16,16:"FULL_PROPS",NEED_HYDRATION:32,32:"NEED_HYDRATION",STABLE_FRAGMENT:64,64:"STABLE_FRAGMENT",KEYED_FRAGMENT:128,128:"KEYED_FRAGMENT",UNKEYED_FRAGMENT:256,256:"UNKEYED_FRAGMENT",NEED_PATCH:512,512:"NEED_PATCH",DYNAMIC_SLOTS:1024,1024:"DYNAMIC_SLOTS",DEV_ROOT_FRAGMENT:2048,2048:"DEV_ROOT_FRAGMENT",CACHED:-1,"-1":"CACHED",BAIL:-2,"-2":"BAIL"},o5t={1:"TEXT",2:"CLASS",4:"STYLE",8:"PROPS",16:"FULL_PROPS",32:"NEED_HYDRATION",64:"STABLE_FRAGMENT",128:"KEYED_FRAGMENT",256:"UNKEYED_FRAGMENT",512:"NEED_PATCH",1024:"DYNAMIC_SLOTS",2048:"DEV_ROOT_FRAGMENT",[-1]:"HOISTED",[-2]:"BAIL"},s5t={ELEMENT:1,1:"ELEMENT",FUNCTIONAL_COMPONENT:2,2:"FUNCTIONAL_COMPONENT",STATEFUL_COMPONENT:4,4:"STATEFUL_COMPONENT",TEXT_CHILDREN:8,8:"TEXT_CHILDREN",ARRAY_CHILDREN:16,16:"ARRAY_CHILDREN",SLOTS_CHILDREN:32,32:"SLOTS_CHILDREN",TELEPORT:64,64:"TELEPORT",SUSPENSE:128,128:"SUSPENSE",COMPONENT_SHOULD_KEEP_ALIVE:256,256:"COMPONENT_SHOULD_KEEP_ALIVE",COMPONENT_KEPT_ALIVE:512,512:"COMPONENT_KEPT_ALIVE",COMPONENT:6,6:"COMPONENT"},l5t={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},u5t={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},c5t="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console,Error,Symbol",PIe=Ig(c5t),A5t=PIe,DQe=2;function Frt(e,t=0,r=e.length){if(t=Math.max(0,Math.min(t,e.length)),r=Math.max(0,Math.min(r,e.length)),t>r)return"";let n=e.split(/(\r?\n)/);const i=n.filter((s,l)=>l%2===1);n=n.filter((s,l)=>l%2===0);let a=0;const o=[];for(let s=0;s=t){for(let l=s-DQe;l<=s+DQe||r>a;l++){if(l<0||l>=n.length)continue;const u=l+1;o.push(`${u}${" ".repeat(Math.max(3-String(u).length,0))}| ${n[l]}`);const c=n[l].length,A=i[l]&&i[l].length||0;if(l===s){const f=t-(a-(c+A)),h=Math.max(1,r>a?c-f:r-t);o.push(" | "+" ".repeat(f)+"^".repeat(h))}else if(l>s){if(r>a){const f=Math.max(Math.min(r-a,c),1);o.push(" | "+"^".repeat(f))}a+=c+A}}break}return o.join(` `)}function F7(e){if(Co(e)){const t={};for(let r=0;r{if(r){const n=r.split(h5t);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function g5t(e){if(!e)return"";if(Zs(e))return e;let t="";for(const r in e){const n=e[r];if(Zs(n)||typeof n=="number"){const i=r.startsWith("--")?r:Zp(r);t+=`${i}:${n};`}}return t}function R7(e){let t="";if(Zs(e))t=e;else if(Co(e))for(let r=0;r/="'\u0009\u000a\u000c\u0020]/,lae={};function C5t(e){if(lae.hasOwnProperty(e))return lae[e];const t=w5t.test(e);return t&&console.error(`unsafe attribute name: ${e}`),lae[e]=!t}const I5t={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},E5t=Ig("accept,accept-charset,accesskey,action,align,allow,alt,async,autocapitalize,autocomplete,autofocus,autoplay,background,bgcolor,border,buffered,capture,challenge,charset,checked,cite,class,code,codebase,color,cols,colspan,content,contenteditable,contextmenu,controls,coords,crossorigin,csp,data,datetime,decoding,default,defer,dir,dirname,disabled,download,draggable,dropzone,enctype,enterkeyhint,for,form,formaction,formenctype,formmethod,formnovalidate,formtarget,headers,height,hidden,high,href,hreflang,http-equiv,icon,id,importance,inert,integrity,ismap,itemprop,keytype,kind,label,lang,language,loading,list,loop,low,manifest,max,maxlength,minlength,media,min,multiple,muted,name,novalidate,open,optimum,pattern,ping,placeholder,poster,preload,radiogroup,readonly,referrerpolicy,rel,required,reversed,rows,rowspan,sandbox,scope,scoped,selected,shape,size,sizes,slot,span,spellcheck,src,srcdoc,srclang,srcset,start,step,style,summary,tabindex,target,title,translate,type,usemap,value,width,wrap"),B5t=Ig("xmlns,accent-height,accumulate,additive,alignment-baseline,alphabetic,amplitude,arabic-form,ascent,attributeName,attributeType,azimuth,baseFrequency,baseline-shift,baseProfile,bbox,begin,bias,by,calcMode,cap-height,class,clip,clipPathUnits,clip-path,clip-rule,color,color-interpolation,color-interpolation-filters,color-profile,color-rendering,contentScriptType,contentStyleType,crossorigin,cursor,cx,cy,d,decelerate,descent,diffuseConstant,direction,display,divisor,dominant-baseline,dur,dx,dy,edgeMode,elevation,enable-background,end,exponent,fill,fill-opacity,fill-rule,filter,filterRes,filterUnits,flood-color,flood-opacity,font-family,font-size,font-size-adjust,font-stretch,font-style,font-variant,font-weight,format,from,fr,fx,fy,g1,g2,glyph-name,glyph-orientation-horizontal,glyph-orientation-vertical,glyphRef,gradientTransform,gradientUnits,hanging,height,href,hreflang,horiz-adv-x,horiz-origin-x,id,ideographic,image-rendering,in,in2,intercept,k,k1,k2,k3,k4,kernelMatrix,kernelUnitLength,kerning,keyPoints,keySplines,keyTimes,lang,lengthAdjust,letter-spacing,lighting-color,limitingConeAngle,local,marker-end,marker-mid,marker-start,markerHeight,markerUnits,markerWidth,mask,maskContentUnits,maskUnits,mathematical,max,media,method,min,mode,name,numOctaves,offset,opacity,operator,order,orient,orientation,origin,overflow,overline-position,overline-thickness,panose-1,paint-order,path,pathLength,patternContentUnits,patternTransform,patternUnits,ping,pointer-events,points,pointsAtX,pointsAtY,pointsAtZ,preserveAlpha,preserveAspectRatio,primitiveUnits,r,radius,referrerPolicy,refX,refY,rel,rendering-intent,repeatCount,repeatDur,requiredExtensions,requiredFeatures,restart,result,rotate,rx,ry,scale,seed,shape-rendering,slope,spacing,specularConstant,specularExponent,speed,spreadMethod,startOffset,stdDeviation,stemh,stemv,stitchTiles,stop-color,stop-opacity,strikethrough-position,strikethrough-thickness,string,stroke,stroke-dasharray,stroke-dashoffset,stroke-linecap,stroke-linejoin,stroke-miterlimit,stroke-opacity,stroke-width,style,surfaceScale,systemLanguage,tabindex,tableValues,target,targetX,targetY,text-anchor,text-decoration,text-rendering,textLength,to,transform,transform-origin,type,u1,u2,underline-position,underline-thickness,unicode,unicode-bidi,unicode-range,units-per-em,v-alphabetic,v-hanging,v-ideographic,v-mathematical,values,vector-effect,version,vert-adv-y,vert-origin-x,vert-origin-y,viewBox,viewTarget,visibility,width,widths,word-spacing,writing-mode,x,x-height,x1,x2,xChannelSelector,xlink:actuate,xlink:arcrole,xlink:href,xlink:role,xlink:show,xlink:title,xlink:type,xmlns:xlink,xml:base,xml:lang,xml:space,y,y1,y2,yChannelSelector,z,zoomAndPan"),x5t=Ig("accent,accentunder,actiontype,align,alignmentscope,altimg,altimg-height,altimg-valign,altimg-width,alttext,bevelled,close,columnsalign,columnlines,columnspan,denomalign,depth,dir,display,displaystyle,encoding,equalcolumns,equalrows,fence,fontstyle,fontweight,form,frame,framespacing,groupalign,height,href,id,indentalign,indentalignfirst,indentalignlast,indentshift,indentshiftfirst,indentshiftlast,indextype,justify,largetop,largeop,lquote,lspace,mathbackground,mathcolor,mathsize,mathvariant,maxsize,minlabelspacing,mode,other,overflow,position,rowalign,rowlines,rowspan,rquote,rspace,scriptlevel,scriptminsize,scriptsizemultiplier,selection,separator,separators,shift,side,src,stackalign,stretchy,subscriptshift,superscriptshift,symmetric,voffset,width,widths,xlink:href,xlink:show,xlink:type,xmlns");function S5t(e){if(e==null)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"}const k5t=/["'&<>]/;function Q5t(e){const t=""+e,r=k5t.exec(t);if(!r)return t;let n="",i,a,o=0;for(a=r.index;a||--!>|?@[\\\]^`{|}~]/g;function D5t(e,t){return e.replace(Hrt,r=>t?r==='"'?'\\\\\\"':`\\\\${r}`:`\\${r}`)}function F5t(e,t){if(e.length!==t.length)return!1;let r=!0;for(let n=0;r&&nKE(r,t))}const jrt=e=>!!(e&&e.__v_isRef===!0),jIe=e=>Zs(e)?e:e==null?"":Co(e)||Ac(e)&&(e.toString===NIe||!Fs(e.toString))?jrt(e)?jIe(e.value):JSON.stringify(e,Grt,2):String(e),Grt=(e,t)=>jrt(t)?Grt(e,t.value):Uk(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((r,[n,i],a)=>(r[uae(n,a)+" =>"]=i,r),{})}:N5(t)?{[`Set(${t.size})`]:[...t.values()].map(r=>uae(r))}:q0(t)?uae(t):Ac(t)&&!Co(t)&&!uL(t)?String(t):t,uae=(e,t="")=>{var r;return q0(e)?`Symbol(${(r=e.description)!=null?r:t})`:e},R5t=Object.freeze(Object.defineProperty({__proto__:null,EMPTY_ARR:Pk,EMPTY_OBJ:hu,NO:W8,NOOP:wg,PatchFlagNames:o5t,PatchFlags:a5t,ShapeFlags:s5t,SlotFlags:l5t,camelize:EA,capitalize:L5,cssVarNameEscapeSymbolsRE:Hrt,def:LIe,escapeHtml:Q5t,escapeHtmlComment:T5t,extend:du,genCacheKey:i5t,genPropsAccessExp:n5t,generateCodeFrame:Frt,getEscapedCssVarName:D5t,getGlobalThis:cL,hasChanged:Wp,hasOwn:rc,hyphenate:Zp,includeBooleanAttr:HIe,invokeArrayFns:jk,isArray:Co,isBooleanAttr:b5t,isBuiltInDirective:Drt,isDate:d1e,isFunction:Fs,isGloballyAllowed:PIe,isGloballyWhitelisted:A5t,isHTMLTag:Mrt,isIntegerKey:Uq,isKnownHtmlAttr:E5t,isKnownMathMLAttr:x5t,isKnownSvgAttr:B5t,isMap:Uk,isMathMLTag:Nrt,isModelListener:Nq,isObject:Ac,isOn:O5,isPlainObject:uL,isPromise:Pq,isRegExp:_rt,isRenderableAttrValue:S5t,isReservedProp:TE,isSSRSafeAttrName:C5t,isSVGTag:Ort,isSet:N5,isSpecialBooleanAttr:Urt,isString:Zs,isSymbol:q0,isVoidTag:Lrt,looseEqual:KE,looseIndexOf:AL,looseToNumber:BO,makeMap:Ig,normalizeClass:R7,normalizeProps:Rrt,normalizeStyle:F7,objectToString:NIe,parseStringStyle:UIe,propsToAttrMap:I5t,remove:Lq,slotFlagsText:u5t,stringifyStyle:g5t,toDisplayString:jIe,toHandlerKey:Hk,toNumber:xO,toRawType:Trt,toTypeString:V6},Symbol.toStringTag,{value:"Module"}));/** * @vue/reactivity v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let R0;class GIe{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=R0,!t&&R0&&(this.index=(R0.scopes||(R0.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,r;if(this.scopes)for(t=0,r=this.scopes.length;t0)return;if(EM){let t=EM;for(EM=void 0;t;){const r=t.next;t.next=void 0,t.flags&=-9,t=r}}let e;for(;IM;){let t=IM;for(IM=void 0;t;){const r=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=r}}if(e)throw e}function Vrt(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Wrt(e){let t,r=e.depsTail,n=r;for(;n;){const i=n.prevDep;n.version===-1?(n===r&&(r=i),VIe(n),O5t(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=i}e.deps=t,e.depsTail=r}function g1e(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Yrt(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Yrt(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===kO))return;e.globalVersion=kO;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!g1e(e)){e.flags&=-3;return}const r=mA,n=Wb;mA=e,Wb=!0;try{Vrt(e);const i=e.fn(e._value);(t.version===0||Wp(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{mA=r,Wb=n,Wrt(e),e.flags&=-3}}function VIe(e,t=!1){const{dep:r,prevSub:n,nextSub:i}=e;if(n&&(n.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=n,e.nextSub=void 0),r.subs===e&&(r.subs=n,!n&&r.computed)){r.computed.flags&=-5;for(let a=r.computed.deps;a;a=a.nextDep)VIe(a,!0)}!t&&!--r.sc&&r.map&&r.map.delete(r.key)}function O5t(e){const{prevDep:t,nextDep:r}=e;t&&(t.nextDep=r,e.prevDep=void 0),r&&(r.prevDep=t,e.nextDep=void 0)}function N5t(e,t){e.effect instanceof SO&&(e=e.effect.fn);const r=new SO(e);t&&du(r,t);try{r.run()}catch(i){throw r.stop(),i}const n=r.run.bind(r);return n.effect=r,n}function L5t(e){e.effect.stop()}let Wb=!0;const qrt=[];function P5(){qrt.push(Wb),Wb=!1}function U5(){const e=qrt.pop();Wb=e===void 0?!0:e}function FQe(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const r=mA;mA=void 0;try{t()}finally{mA=r}}}let kO=0;class P5t{constructor(t,r){this.sub=t,this.dep=r,this.version=r.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class jq{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!mA||!Wb||mA===this.computed)return;let r=this.activeLink;if(r===void 0||r.sub!==mA)r=this.activeLink=new P5t(mA,this),mA.deps?(r.prevDep=mA.depsTail,mA.depsTail.nextDep=r,mA.depsTail=r):mA.deps=mA.depsTail=r,Jrt(r);else if(r.version===-1&&(r.version=this.version,r.nextDep)){const n=r.nextDep;n.prevDep=r.prevDep,r.prevDep&&(r.prevDep.nextDep=n),r.prevDep=mA.depsTail,r.nextDep=void 0,mA.depsTail.nextDep=r,mA.depsTail=r,mA.deps===r&&(mA.deps=n)}return r}trigger(t){this.version++,kO++,this.notify(t)}notify(t){zIe();try{for(let r=this.subs;r;r=r.prevSub)r.sub.notify()&&r.sub.dep.notify()}finally{KIe()}}}function Jrt(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)Jrt(n)}const r=e.dep.subs;r!==e&&(e.prevSub=r,r&&(r.nextSub=e)),e.dep.subs=e}}const HV=new WeakMap,Gk=Symbol(""),p1e=Symbol(""),QO=Symbol("");function Yp(e,t,r){if(Wb&&mA){let n=HV.get(e);n||HV.set(e,n=new Map);let i=n.get(r);i||(n.set(r,i=new jq),i.map=n,i.key=r),i.track()}}function gE(e,t,r,n,i,a){const o=HV.get(e);if(!o){kO++;return}const s=l=>{l&&l.trigger()};if(zIe(),t==="clear")o.forEach(s);else{const l=Co(e),u=l&&Uq(r);if(l&&r==="length"){const c=Number(n);o.forEach((A,f)=>{(f==="length"||f===QO||!q0(f)&&f>=c)&&s(A)})}else switch((r!==void 0||o.has(void 0))&&s(o.get(r)),u&&s(o.get(QO)),t){case"add":l?u&&s(o.get("length")):(s(o.get(Gk)),Uk(e)&&s(o.get(p1e)));break;case"delete":l||(s(o.get(Gk)),Uk(e)&&s(o.get(p1e)));break;case"set":Uk(e)&&s(o.get(Gk));break}}KIe()}function U5t(e,t){const r=HV.get(e);return r&&r.get(t)}function k_(e){const t=ll(e);return t===e?t:(Yp(t,"iterate",QO),n1(e)?t:t.map(qp))}function Gq(e){return Yp(e=ll(e),"iterate",QO),e}const H5t={__proto__:null,[Symbol.iterator](){return Aae(this,Symbol.iterator,qp)},concat(...e){return k_(this).concat(...e.map(t=>Co(t)?k_(t):t))},entries(){return Aae(this,"entries",e=>(e[1]=qp(e[1]),e))},every(e,t){return KI(this,"every",e,t,void 0,arguments)},filter(e,t){return KI(this,"filter",e,t,r=>r.map(qp),arguments)},find(e,t){return KI(this,"find",e,t,qp,arguments)},findIndex(e,t){return KI(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return KI(this,"findLast",e,t,qp,arguments)},findLastIndex(e,t){return KI(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return KI(this,"forEach",e,t,void 0,arguments)},includes(...e){return fae(this,"includes",e)},indexOf(...e){return fae(this,"indexOf",e)},join(e){return k_(this).join(e)},lastIndexOf(...e){return fae(this,"lastIndexOf",e)},map(e,t){return KI(this,"map",e,t,void 0,arguments)},pop(){return xF(this,"pop")},push(...e){return xF(this,"push",e)},reduce(e,...t){return RQe(this,"reduce",e,t)},reduceRight(e,...t){return RQe(this,"reduceRight",e,t)},shift(){return xF(this,"shift")},some(e,t){return KI(this,"some",e,t,void 0,arguments)},splice(...e){return xF(this,"splice",e)},toReversed(){return k_(this).toReversed()},toSorted(e){return k_(this).toSorted(e)},toSpliced(...e){return k_(this).toSpliced(...e)},unshift(...e){return xF(this,"unshift",e)},values(){return Aae(this,"values",qp)}};function Aae(e,t,r){const n=Gq(e),i=n[t]();return n!==e&&!n1(e)&&(i._next=i.next,i.next=()=>{const a=i._next();return a.value&&(a.value=r(a.value)),a}),i}const j5t=Array.prototype;function KI(e,t,r,n,i,a){const o=Gq(e),s=o!==e&&!n1(e),l=o[t];if(l!==j5t[t]){const A=l.apply(e,a);return s?qp(A):A}let u=r;o!==e&&(s?u=function(A,f){return r.call(this,qp(A),f,e)}:r.length>2&&(u=function(A,f){return r.call(this,A,f,e)}));const c=l.call(o,u,n);return s&&i?i(c):c}function RQe(e,t,r,n){const i=Gq(e);let a=r;return i!==e&&(n1(e)?r.length>3&&(a=function(o,s,l){return r.call(this,o,s,l,e)}):a=function(o,s,l){return r.call(this,o,qp(s),l,e)}),i[t](a,...n)}function fae(e,t,r){const n=ll(e);Yp(n,"iterate",QO);const i=n[t](...r);return(i===-1||i===!1)&&Kq(r[0])?(r[0]=ll(r[0]),n[t](...r)):i}function xF(e,t,r=[]){P5(),zIe();const n=ll(e)[t].apply(e,r);return KIe(),U5(),n}const G5t=Ig("__proto__,__v_isRef,__isVue"),Xrt=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(q0));function $5t(e){q0(e)||(e=String(e));const t=ll(this);return Yp(t,"has",e),t.hasOwnProperty(e)}class Zrt{constructor(t=!1,r=!1){this._isReadonly=t,this._isShallow=r}get(t,r,n){if(r==="__v_skip")return t.__v_skip;const i=this._isReadonly,a=this._isShallow;if(r==="__v_isReactive")return!i;if(r==="__v_isReadonly")return i;if(r==="__v_isShallow")return a;if(r==="__v_raw")return n===(i?a?ant:int:a?nnt:rnt).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=Co(t);if(!i){let l;if(o&&(l=H5t[r]))return l;if(r==="hasOwnProperty")return $5t}const s=Reflect.get(t,r,kh(t)?t:n);return(q0(r)?Xrt.has(r):G5t(r))||(i||Yp(t,"get",r),a)?s:kh(s)?o&&Uq(r)?s:s.value:Ac(s)?i?YIe(s):uc(s):s}}class ent extends Zrt{constructor(t=!1){super(!1,t)}set(t,r,n,i){let a=t[r];if(!this._isShallow){const l=A5(a);if(!n1(n)&&!A5(n)&&(a=ll(a),n=ll(n)),!Co(t)&&kh(a)&&!kh(n))return l?!1:(a.value=n,!0)}const o=Co(t)&&Uq(r)?Number(r)e,kj=e=>Reflect.getPrototypeOf(e);function Y5t(e,t,r){return function(...n){const i=this.__v_raw,a=ll(i),o=Uk(a),s=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,u=i[e](...n),c=r?v1e:t?m1e:qp;return!t&&Yp(a,"iterate",l?p1e:Gk),{next(){const{value:A,done:f}=u.next();return f?{value:A,done:f}:{value:s?[c(A[0]),c(A[1])]:c(A),done:f}},[Symbol.iterator](){return this}}}}function Qj(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function q5t(e,t){const r={get(i){const a=this.__v_raw,o=ll(a),s=ll(i);e||(Wp(i,s)&&Yp(o,"get",i),Yp(o,"get",s));const{has:l}=kj(o),u=t?v1e:e?m1e:qp;if(l.call(o,i))return u(a.get(i));if(l.call(o,s))return u(a.get(s));a!==o&&a.get(i)},get size(){const i=this.__v_raw;return!e&&Yp(ll(i),"iterate",Gk),Reflect.get(i,"size",i)},has(i){const a=this.__v_raw,o=ll(a),s=ll(i);return e||(Wp(i,s)&&Yp(o,"has",i),Yp(o,"has",s)),i===s?a.has(i):a.has(i)||a.has(s)},forEach(i,a){const o=this,s=o.__v_raw,l=ll(s),u=t?v1e:e?m1e:qp;return!e&&Yp(l,"iterate",Gk),s.forEach((c,A)=>i.call(a,u(c),u(A),o))}};return du(r,e?{add:Qj("add"),set:Qj("set"),delete:Qj("delete"),clear:Qj("clear")}:{add(i){!t&&!n1(i)&&!A5(i)&&(i=ll(i));const a=ll(this);return kj(a).has.call(a,i)||(a.add(i),gE(a,"add",i,i)),this},set(i,a){!t&&!n1(a)&&!A5(a)&&(a=ll(a));const o=ll(this),{has:s,get:l}=kj(o);let u=s.call(o,i);u||(i=ll(i),u=s.call(o,i));const c=l.call(o,i);return o.set(i,a),u?Wp(a,c)&&gE(o,"set",i,a):gE(o,"add",i,a),this},delete(i){const a=ll(this),{has:o,get:s}=kj(a);let l=o.call(a,i);l||(i=ll(i),l=o.call(a,i)),s&&s.call(a,i);const u=a.delete(i);return l&&gE(a,"delete",i,void 0),u},clear(){const i=ll(this),a=i.size!==0,o=i.clear();return a&&gE(i,"clear",void 0,void 0),o}}),["keys","values","entries",Symbol.iterator].forEach(i=>{r[i]=Y5t(i,e,t)}),r}function $q(e,t){const r=q5t(e,t);return(n,i,a)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?n:Reflect.get(rc(r,i)&&i in n?r:n,i,a)}const J5t={get:$q(!1,!1)},X5t={get:$q(!1,!0)},Z5t={get:$q(!0,!1)},eSt={get:$q(!0,!0)},rnt=new WeakMap,nnt=new WeakMap,int=new WeakMap,ant=new WeakMap;function tSt(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function rSt(e){return e.__v_skip||!Object.isExtensible(e)?0:tSt(Trt(e))}function uc(e){return A5(e)?e:zq(e,!1,z5t,J5t,rnt)}function WIe(e){return zq(e,!1,V5t,X5t,nnt)}function YIe(e){return zq(e,!0,K5t,Z5t,int)}function nSt(e){return zq(e,!0,W5t,eSt,ant)}function zq(e,t,r,n,i){if(!Ac(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=i.get(e);if(a)return a;const o=rSt(e);if(o===0)return e;const s=new Proxy(e,o===2?n:r);return i.set(e,s),s}function q3(e){return A5(e)?q3(e.__v_raw):!!(e&&e.__v_isReactive)}function A5(e){return!!(e&&e.__v_isReadonly)}function n1(e){return!!(e&&e.__v_isShallow)}function Kq(e){return e?!!e.__v_raw:!1}function ll(e){const t=e&&e.__v_raw;return t?ll(t):e}function ont(e){return!rc(e,"__v_skip")&&Object.isExtensible(e)&&LIe(e,"__v_skip",!0),e}const qp=e=>Ac(e)?uc(e):e,m1e=e=>Ac(e)?YIe(e):e;function kh(e){return e?e.__v_isRef===!0:!1}function Hn(e){return snt(e,!1)}function sn(e){return snt(e,!0)}function snt(e,t){return kh(e)?e:new iSt(e,t)}class iSt{constructor(t,r){this.dep=new jq,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=r?t:ll(t),this._value=r?t:qp(t),this.__v_isShallow=r}get value(){return this.dep.track(),this._value}set value(t){const r=this._rawValue,n=this.__v_isShallow||n1(t)||A5(t);t=n?t:ll(t),Wp(t,r)&&(this._rawValue=t,this._value=n?t:qp(t),this.dep.trigger())}}function aSt(e){e.dep&&e.dep.trigger()}function bA(e){return kh(e)?e.value:e}function oSt(e){return Fs(e)?e():bA(e)}const sSt={get:(e,t,r)=>t==="__v_raw"?e:bA(Reflect.get(e,t,r)),set:(e,t,r,n)=>{const i=e[t];return kh(i)&&!kh(r)?(i.value=r,!0):Reflect.set(e,t,r,n)}};function qIe(e){return q3(e)?e:new Proxy(e,sSt)}class lSt{constructor(t){this.__v_isRef=!0,this._value=void 0;const r=this.dep=new jq,{get:n,set:i}=t(r.track.bind(r),r.trigger.bind(r));this._get=n,this._set=i}get value(){return this._value=this._get()}set value(t){this._set(t)}}function lnt(e){return new lSt(e)}function BM(e){const t=Co(e)?new Array(e.length):{};for(const r in e)t[r]=unt(e,r);return t}class uSt{constructor(t,r,n){this._object=t,this._key=r,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return U5t(ll(this._object),this._key)}}class cSt{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function ws(e,t,r){return kh(e)?e:Fs(e)?new cSt(e):Ac(e)&&arguments.length>1?unt(e,t,r):Hn(e)}function unt(e,t,r){const n=e[t];return kh(n)?n:new uSt(e,t,r)}class ASt{constructor(t,r,n){this.fn=t,this.setter=r,this._value=void 0,this.dep=new jq(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=kO-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!r,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&mA!==this)return Krt(this,!0),!0}get value(){const t=this.dep.track();return Yrt(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function fSt(e,t,r=!1){let n,i;return Fs(e)?n=e:(n=e.get,i=e.set),new ASt(n,i,r)}const hSt={GET:"get",HAS:"has",ITERATE:"iterate"},dSt={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},_j={},jV=new WeakMap;let n3;function gSt(){return n3}function cnt(e,t=!1,r=n3){if(r){let n=jV.get(r);n||jV.set(r,n=[]),n.push(e)}}function pSt(e,t,r=hu){const{immediate:n,deep:i,once:a,scheduler:o,augmentJob:s,call:l}=r,u=_=>i?_:n1(_)||i===!1||i===0?pE(_,1):pE(_);let c,A,f,h,g=!1,p=!1;if(kh(e)?(A=()=>e.value,g=n1(e)):q3(e)?(A=()=>u(e),g=!0):Co(e)?(p=!0,g=e.some(_=>q3(_)||n1(_)),A=()=>e.map(_=>{if(kh(_))return _.value;if(q3(_))return u(_);if(Fs(_))return l?l(_,2):_()})):Fs(e)?t?A=l?()=>l(e,2):e:A=()=>{if(f){P5();try{f()}finally{U5()}}const _=n3;n3=c;try{return l?l(e,3,[h]):e(h)}finally{n3=_}}:A=wg,t&&i){const _=A,F=i===!0?1/0:i;A=()=>pE(_(),F)}const m=$Ie(),b=()=>{c.stop(),m&&m.active&&Lq(m.effects,c)};if(a&&t){const _=t;t=(...F)=>{_(...F),b()}}let C=p?new Array(e.length).fill(_j):_j;const E=_=>{if(!(!(c.flags&1)||!c.dirty&&!_))if(t){const F=c.run();if(i||g||(p?F.some((M,N)=>Wp(M,C[N])):Wp(F,C))){f&&f();const M=n3;n3=c;try{const N=[F,C===_j?void 0:p&&C[0]===_j?[]:C,h];l?l(t,3,N):t(...N),C=F}finally{n3=M}}}else c.run()};return s&&s(E),c=new SO(A),c.scheduler=o?()=>o(E,!1):E,h=_=>cnt(_,!1,c),f=c.onStop=()=>{const _=jV.get(c);if(_){if(l)l(_,4);else for(const F of _)F();jV.delete(c)}},t?n?E(!0):C=c.run():o?o(E.bind(null,!0),!0):c.run(),b.pause=c.pause.bind(c),b.resume=c.resume.bind(c),b.stop=b,b}function pE(e,t=1/0,r){if(t<=0||!Ac(e)||e.__v_skip||(r=r||new Set,r.has(e)))return e;if(r.add(e),t--,kh(e))pE(e.value,t,r);else if(Co(e))for(let n=0;n{pE(n,t,r)});else if(uL(e)){for(const n in e)pE(e[n],t,r);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&pE(e[n],t,r)}return e}/** * @vue/runtime-core v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const Ant=[];function vSt(e){Ant.push(e)}function mSt(){Ant.pop()}function ySt(e,t){}const bSt={SETUP_FUNCTION:0,0:"SETUP_FUNCTION",RENDER_FUNCTION:1,1:"RENDER_FUNCTION",NATIVE_EVENT_HANDLER:5,5:"NATIVE_EVENT_HANDLER",COMPONENT_EVENT_HANDLER:6,6:"COMPONENT_EVENT_HANDLER",VNODE_HOOK:7,7:"VNODE_HOOK",DIRECTIVE_HOOK:8,8:"DIRECTIVE_HOOK",TRANSITION_HOOK:9,9:"TRANSITION_HOOK",APP_ERROR_HANDLER:10,10:"APP_ERROR_HANDLER",APP_WARN_HANDLER:11,11:"APP_WARN_HANDLER",FUNCTION_REF:12,12:"FUNCTION_REF",ASYNC_COMPONENT_LOADER:13,13:"ASYNC_COMPONENT_LOADER",SCHEDULER:14,14:"SCHEDULER",COMPONENT_UPDATE:15,15:"COMPONENT_UPDATE",APP_UNMOUNT_CLEANUP:16,16:"APP_UNMOUNT_CLEANUP"},wSt={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function M7(e,t,r,n){try{return n?e(...n):e()}catch(i){W6(i,t,r)}}function Qy(e,t,r,n){if(Fs(e)){const i=M7(e,t,r,n);return i&&Pq(i)&&i.catch(a=>{W6(a,t,r)}),i}if(Co(e)){const i=[];for(let a=0;a>>1,i=L0[n],a=TO(i);a=TO(r)?L0.push(e):L0.splice(ISt(t),0,e),e.flags|=1,hnt()}}function hnt(){GV||(GV=fnt.then(dnt))}function _O(e){Co(e)?o9.push(...e):i3&&e.id===-1?i3.splice(Q8+1,0,e):e.flags&1||(o9.push(e),e.flags|=1),hnt()}function MQe(e,t,r=Fw+1){for(;rTO(r)-TO(n));if(o9.length=0,i3){i3.push(...t);return}for(i3=t,Q8=0;Q8e.id==null?e.flags&2?-1:1/0:e.id;function dnt(e){try{for(Fw=0;Fw_8.emit(i,...a)),Tj=[]):typeof window<"u"&&window.HTMLElement&&!((n=(r=window.navigator)==null?void 0:r.userAgent)!=null&&n.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(a=>{gnt(a,t)}),setTimeout(()=>{_8||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Tj=[])},3e3)):Tj=[]}let Pd=null,Vq=null;function DO(e){const t=Pd;return Pd=e,Vq=e&&e.type.__scopeId||null,t}function ESt(e){Vq=e}function BSt(){Vq=null}const xSt=e=>XIe;function XIe(e,t=Pd,r){if(!t||e._n)return e;const n=(...i)=>{n._d&&x1e(-1);const a=DO(t);let o;try{o=e(...i)}finally{DO(a),n._d&&x1e(1)}return o};return n._n=!0,n._c=!0,n._d=!0,n}function rp(e,t){if(Pd===null)return e;const r=dL(Pd),n=e.dirs||(e.dirs=[]);for(let i=0;ie.__isTeleport,xM=e=>e&&(e.disabled||e.disabled===""),OQe=e=>e&&(e.defer||e.defer===""),NQe=e=>typeof SVGElement<"u"&&e instanceof SVGElement,LQe=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,y1e=(e,t)=>{const r=e&&e.to;return Zs(r)?t?t(r):null:r},mnt={name:"Teleport",__isTeleport:!0,process(e,t,r,n,i,a,o,s,l,u){const{mc:c,pc:A,pbc:f,o:{insert:h,querySelector:g,createText:p,createComment:m}}=u,b=xM(t.props);let{shapeFlag:C,children:E,dynamicChildren:_}=t;if(e==null){const F=t.el=p(""),M=t.anchor=p("");h(F,r,n),h(M,r,n);const N=(j,z)=>{C&16&&(i&&i.isCE&&(i.ce._teleportTarget=j),c(E,j,z,i,a,o,s,l))},P=()=>{const j=t.target=y1e(t.props,g),z=ynt(j,t,p,h);j&&(o!=="svg"&&NQe(j)?o="svg":o!=="mathml"&&LQe(j)&&(o="mathml"),b||(N(j,z),tK(t,!1)))};b&&(N(r,M),tK(t,!0)),OQe(t.props)?Td(()=>{P(),t.el.__isMounted=!0},a):P()}else{if(OQe(t.props)&&!e.el.__isMounted){Td(()=>{mnt.process(e,t,r,n,i,a,o,s,l,u),delete e.el.__isMounted},a);return}t.el=e.el,t.targetStart=e.targetStart;const F=t.anchor=e.anchor,M=t.target=e.target,N=t.targetAnchor=e.targetAnchor,P=xM(e.props),j=P?r:M,z=P?F:N;if(o==="svg"||NQe(M)?o="svg":(o==="mathml"||LQe(M))&&(o="mathml"),_?(f(e.dynamicChildren,_,j,i,a,o,s),uEe(e,t,!0)):l||A(e,t,j,z,i,a,o,s,!1),b)P?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Dj(t,r,F,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const W=t.target=y1e(t.props,g);W&&Dj(t,W,null,u,0)}else P&&Dj(t,M,N,u,1);tK(t,b)}},remove(e,t,r,{um:n,o:{remove:i}},a){const{shapeFlag:o,children:s,anchor:l,targetStart:u,targetAnchor:c,target:A,props:f}=e;if(A&&(i(u),i(c)),a&&i(l),o&16){const h=a||!xM(f);for(let g=0;g{e.isMounted=!0}),el(()=>{e.isUnmounting=!0}),e}const K1=[Function,Array],eEe={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:K1,onEnter:K1,onAfterEnter:K1,onEnterCancelled:K1,onBeforeLeave:K1,onLeave:K1,onAfterLeave:K1,onLeaveCancelled:K1,onBeforeAppear:K1,onAppear:K1,onAfterAppear:K1,onAppearCancelled:K1},bnt=e=>{const t=e.subTree;return t.component?bnt(t.component):t},kSt={name:"BaseTransition",props:eEe,setup(e,{slots:t}){const r=sA(),n=ZIe();return()=>{const i=t.default&&Yq(t.default(),!0);if(!i||!i.length)return;const a=wnt(i),o=ll(e),{mode:s}=o;if(n.isLeaving)return hae(a);const l=PQe(a);if(!l)return hae(a);let u=R9(l,o,n,r,A=>u=A);l.type!==Eh&&VE(l,u);let c=r.subTree&&PQe(r.subTree);if(c&&c.type!==Eh&&!Ub(l,c)&&bnt(r).type!==Eh){let A=R9(c,o,n,r);if(VE(c,A),s==="out-in"&&l.type!==Eh)return n.isLeaving=!0,A.afterLeave=()=>{n.isLeaving=!1,r.job.flags&8||r.update(),delete A.afterLeave,c=void 0},hae(a);s==="in-out"&&l.type!==Eh?A.delayLeave=(f,h,g)=>{const p=Int(n,c);p[String(c.key)]=c,f[a3]=()=>{h(),f[a3]=void 0,delete u.delayedLeave,c=void 0},u.delayedLeave=()=>{g(),delete u.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return a}}};function wnt(e){let t=e[0];if(e.length>1){for(const r of e)if(r.type!==Eh){t=r;break}}return t}const Cnt=kSt;function Int(e,t){const{leavingVNodes:r}=e;let n=r.get(t.type);return n||(n=Object.create(null),r.set(t.type,n)),n}function R9(e,t,r,n,i){const{appear:a,mode:o,persisted:s=!1,onBeforeEnter:l,onEnter:u,onAfterEnter:c,onEnterCancelled:A,onBeforeLeave:f,onLeave:h,onAfterLeave:g,onLeaveCancelled:p,onBeforeAppear:m,onAppear:b,onAfterAppear:C,onAppearCancelled:E}=t,_=String(e.key),F=Int(r,e),M=(j,z)=>{j&&Qy(j,n,9,z)},N=(j,z)=>{const W=z[1];M(j,z),Co(j)?j.every(Y=>Y.length<=1)&&W():j.length<=1&&W()},P={mode:o,persisted:s,beforeEnter(j){let z=l;if(!r.isMounted)if(a)z=m||l;else return;j[a3]&&j[a3](!0);const W=F[_];W&&Ub(e,W)&&W.el[a3]&&W.el[a3](),M(z,[j])},enter(j){let z=u,W=c,Y=A;if(!r.isMounted)if(a)z=b||u,W=C||c,Y=E||A;else return;let ee=!1;const q=j[Fj]=ae=>{ee||(ee=!0,ae?M(Y,[j]):M(W,[j]),P.delayedLeave&&P.delayedLeave(),j[Fj]=void 0)};z?N(z,[j,q]):q()},leave(j,z){const W=String(e.key);if(j[Fj]&&j[Fj](!0),r.isUnmounting)return z();M(f,[j]);let Y=!1;const ee=j[a3]=q=>{Y||(Y=!0,z(),q?M(p,[j]):M(g,[j]),j[a3]=void 0,F[W]===e&&delete F[W])};F[W]=e,h?N(h,[j,ee]):ee()},clone(j){const z=R9(j,t,r,n,i);return i&&i(z),z}};return P}function hae(e){if(fL(e))return e=np(e),e.children=null,e}function PQe(e){if(!fL(e))return vnt(e.type)&&e.children?wnt(e.children):e;const{shapeFlag:t,children:r}=e;if(r){if(t&16)return r[0];if(t&32&&Fs(r.default))return r.default()}}function VE(e,t){e.shapeFlag&6&&e.component?(e.transition=t,VE(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Yq(e,t=!1,r){let n=[],i=0;for(let a=0;a1)for(let a=0;ar.value,set:a=>r.value=a})}return r}function FO(e,t,r,n,i=!1){if(Co(e)){e.forEach((g,p)=>FO(g,t&&(Co(t)?t[p]:t),r,n,i));return}if(J3(n)&&!i){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&FO(e,t,r,n.component.subTree);return}const a=n.shapeFlag&4?dL(n.component):n.el,o=i?null:a,{i:s,r:l}=e,u=t&&t.r,c=s.refs===hu?s.refs={}:s.refs,A=s.setupState,f=ll(A),h=A===hu?()=>!1:g=>rc(f,g);if(u!=null&&u!==l&&(Zs(u)?(c[u]=null,h(u)&&(A[u]=null)):kh(u)&&(u.value=null)),Fs(l))M7(l,s,12,[o,c]);else{const g=Zs(l),p=kh(l);if(g||p){const m=()=>{if(e.f){const b=g?h(l)?A[l]:c[l]:l.value;i?Co(b)&&Lq(b,a):Co(b)?b.includes(a)||b.push(a):g?(c[l]=[a],h(l)&&(A[l]=c[l])):(l.value=[a],e.k&&(c[e.k]=l.value))}else g?(c[l]=o,h(l)&&(A[l]=o)):p&&(l.value=o,e.k&&(c[e.k]=o))};o?(m.id=-1,Td(m,r)):m()}}}let UQe=!1;const Q_=()=>{UQe||(console.error("Hydration completed but contains mismatches."),UQe=!0)},TSt=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",DSt=e=>e.namespaceURI.includes("MathML"),Rj=e=>{if(e.nodeType===1){if(TSt(e))return"svg";if(DSt(e))return"mathml"}},Y8=e=>e.nodeType===8;function FSt(e){const{mt:t,p:r,o:{patchProp:n,createText:i,nextSibling:a,parentNode:o,remove:s,insert:l,createComment:u}}=e,c=(E,_)=>{if(!_.hasChildNodes()){r(null,E,_),$V(),_._vnode=E;return}A(_.firstChild,E,null,null,null),$V(),_._vnode=E},A=(E,_,F,M,N,P=!1)=>{P=P||!!_.dynamicChildren;const j=Y8(E)&&E.data==="[",z=()=>p(E,_,F,M,N,j),{type:W,ref:Y,shapeFlag:ee,patchFlag:q}=_;let ae=E.nodeType;_.el=E,q===-2&&(P=!1,_.dynamicChildren=null);let se=null;switch(W){case Yb:ae!==3?_.children===""?(l(_.el=i(""),o(E),E),se=E):se=z():(E.data!==_.children&&(Q_(),E.data=_.children),se=a(E));break;case Eh:C(E)?(se=a(E),b(_.el=E.content.firstChild,E,F)):ae!==8||j?se=z():se=a(E);break;case zk:if(j&&(E=a(E),ae=E.nodeType),ae===1||ae===3){se=E;const de=!_.children.length;for(let Ae=0;Ae<_.staticCount;Ae++)de&&(_.children+=se.nodeType===1?se.outerHTML:se.data),Ae===_.staticCount-1&&(_.anchor=se),se=a(se);return j?a(se):se}else z();break;case ls:j?se=g(E,_,F,M,N,P):se=z();break;default:if(ee&1)(ae!==1||_.type.toLowerCase()!==E.tagName.toLowerCase())&&!C(E)?se=z():se=f(E,_,F,M,N,P);else if(ee&6){_.slotScopeIds=N;const de=o(E);if(j?se=m(E):Y8(E)&&E.data==="teleport start"?se=m(E,E.data,"teleport end"):se=a(E),t(_,de,null,F,M,Rj(de),P),J3(_)&&!_.type.__asyncResolved){let Ae;j?(Ae=De(ls),Ae.anchor=se?se.previousSibling:de.lastChild):Ae=E.nodeType===3?t2(""):De("div"),Ae.el=E,_.component.subTree=Ae}}else ee&64?ae!==8?se=z():se=_.type.hydrate(E,_,F,M,N,P,e,h):ee&128&&(se=_.type.hydrate(E,_,F,M,Rj(o(E)),N,P,e,A))}return Y!=null&&FO(Y,null,M,_),se},f=(E,_,F,M,N,P)=>{P=P||!!_.dynamicChildren;const{type:j,props:z,patchFlag:W,shapeFlag:Y,dirs:ee,transition:q}=_,ae=j==="input"||j==="option";if(ae||W!==-1){ee&&Mw(_,null,F,"created");let se=!1;if(C(E)){se=Wnt(null,q)&&F&&F.vnode.props&&F.vnode.props.appear;const Ae=E.content.firstChild;se&&q.beforeEnter(Ae),b(Ae,E,F),_.el=E=Ae}if(Y&16&&!(z&&(z.innerHTML||z.textContent))){let Ae=h(E.firstChild,_,E,F,M,N,P);for(;Ae;){Mj(E,1)||Q_();const be=Ae;Ae=Ae.nextSibling,s(be)}}else if(Y&8){let Ae=_.children;Ae[0]===` `&&(E.tagName==="PRE"||E.tagName==="TEXTAREA")&&(Ae=Ae.slice(1)),E.textContent!==Ae&&(Mj(E,0)||Q_(),E.textContent=_.children)}if(z){if(ae||!P||W&48){const Ae=E.tagName.includes("-");for(const be in z)(ae&&(be.endsWith("value")||be==="indeterminate")||O5(be)&&!TE(be)||be[0]==="."||Ae)&&n(E,be,null,z[be],void 0,F)}else if(z.onClick)n(E,"onClick",null,z.onClick,void 0,F);else if(W&4&&q3(z.style))for(const Ae in z.style)z.style[Ae]}let de;(de=z&&z.onVnodeBeforeMount)&&Lv(de,F,_),ee&&Mw(_,null,F,"beforeMount"),((de=z&&z.onVnodeMounted)||ee||se)&&nit(()=>{de&&Lv(de,F,_),se&&q.enter(E),ee&&Mw(_,null,F,"mounted")},M)}return E.nextSibling},h=(E,_,F,M,N,P,j)=>{j=j||!!_.dynamicChildren;const z=_.children,W=z.length;for(let Y=0;Y{const{slotScopeIds:j}=_;j&&(N=N?N.concat(j):j);const z=o(E),W=h(a(E),_,z,F,M,N,P);return W&&Y8(W)&&W.data==="]"?a(_.anchor=W):(Q_(),l(_.anchor=u("]"),z,W),W)},p=(E,_,F,M,N,P)=>{if(Mj(E.parentElement,1)||Q_(),_.el=null,P){const W=m(E);for(;;){const Y=a(E);if(Y&&Y!==W)s(Y);else break}}const j=a(E),z=o(E);return s(E),r(null,_,z,j,F,M,Rj(z),N),F&&(F.vnode.el=_.el,Zq(F,_.el)),j},m=(E,_="[",F="]")=>{let M=0;for(;E;)if(E=a(E),E&&Y8(E)&&(E.data===_&&M++,E.data===F)){if(M===0)return a(E);M--}return E},b=(E,_,F)=>{const M=_.parentNode;M&&M.replaceChild(E,_);let N=F;for(;N;)N.vnode.el===_&&(N.vnode.el=N.subTree.el=E),N=N.parent},C=E=>E.nodeType===1&&E.tagName==="TEMPLATE";return[c,A]}const HQe="data-allow-mismatch",RSt={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function Mj(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(HQe);)e=e.parentElement;const r=e&&e.getAttribute(HQe);if(r==null)return!1;if(r==="")return!0;{const n=r.split(",");return t===0&&n.includes("children")?!0:r.split(",").includes(RSt[t])}}const MSt=cL().requestIdleCallback||(e=>setTimeout(e,1)),OSt=cL().cancelIdleCallback||(e=>clearTimeout(e)),NSt=(e=1e4)=>t=>{const r=MSt(t,{timeout:e});return()=>OSt(r)};function LSt(e){const{top:t,left:r,bottom:n,right:i}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:o}=window;return(t>0&&t0&&n0&&r0&&i(t,r)=>{const n=new IntersectionObserver(i=>{for(const a of i)if(a.isIntersecting){n.disconnect(),t();break}},e);return r(i=>{if(i instanceof Element){if(LSt(i))return t(),n.disconnect(),!1;n.observe(i)}}),()=>n.disconnect()},USt=e=>t=>{if(e){const r=matchMedia(e);if(r.matches)t();else return r.addEventListener("change",t,{once:!0}),()=>r.removeEventListener("change",t)}},HSt=(e=[])=>(t,r)=>{Zs(e)&&(e=[e]);let n=!1;const i=o=>{n||(n=!0,a(),t(),o.target.dispatchEvent(new o.constructor(o.type,o)))},a=()=>{r(o=>{for(const s of e)o.removeEventListener(s,i)})};return r(o=>{for(const s of e)o.addEventListener(s,i,{once:!0})}),a};function jSt(e,t){if(Y8(e)&&e.data==="["){let r=1,n=e.nextSibling;for(;n;){if(n.nodeType===1){if(t(n)===!1)break}else if(Y8(n))if(n.data==="]"){if(--r===0)break}else n.data==="["&&r++;n=n.nextSibling}}else t(e)}const J3=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function GSt(e){Fs(e)&&(e={loader:e});const{loader:t,loadingComponent:r,errorComponent:n,delay:i=200,hydrate:a,timeout:o,suspensible:s=!0,onError:l}=e;let u=null,c,A=0;const f=()=>(A++,u=null,h()),h=()=>{let g;return u||(g=u=t().catch(p=>{if(p=p instanceof Error?p:new Error(String(p)),l)return new Promise((m,b)=>{l(p,()=>m(f()),()=>b(p),A+1)});throw p}).then(p=>g!==u&&u?u:(p&&(p.__esModule||p[Symbol.toStringTag]==="Module")&&(p=p.default),c=p,p)))};return $n({name:"AsyncComponentWrapper",__asyncLoader:h,__asyncHydrate(g,p,m){const b=a?()=>{const C=a(m,E=>jSt(g,E));C&&(p.bum||(p.bum=[])).push(C)}:m;c?b():h().then(()=>!p.isUnmounted&&b())},get __asyncResolved(){return c},setup(){const g=Nd;if(tEe(g),c)return()=>dae(c,g);const p=E=>{u=null,W6(E,g,13,!n)};if(s&&g.suspense||M9)return h().then(E=>()=>dae(E,g)).catch(E=>(p(E),()=>n?De(n,{error:E}):null));const m=Hn(!1),b=Hn(),C=Hn(!!i);return i&&setTimeout(()=>{C.value=!1},i),o!=null&&setTimeout(()=>{if(!m.value&&!b.value){const E=new Error(`Async component timed out after ${o}ms.`);p(E),b.value=E}},o),h().then(()=>{m.value=!0,g.parent&&fL(g.parent.vnode)&&g.parent.update()}).catch(E=>{p(E),b.value=E}),()=>{if(m.value&&c)return dae(c,g);if(b.value&&n)return De(n,{error:b.value});if(r&&!C.value)return De(r)}}})}function dae(e,t){const{ref:r,props:n,children:i,ce:a}=t.vnode,o=De(e,n,i);return o.ref=r,o.ce=a,delete t.vnode.ce,o}const fL=e=>e.type.__isKeepAlive,$St={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const r=sA(),n=r.ctx;if(!n.renderer)return()=>{const C=t.default&&t.default();return C&&C.length===1?C[0]:C};const i=new Map,a=new Set;let o=null;const s=r.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:A}}}=n,f=A("div");n.activate=(C,E,_,F,M)=>{const N=C.component;u(C,E,_,0,s),l(N.vnode,C,E,_,N,s,F,C.slotScopeIds,M),Td(()=>{N.isDeactivated=!1,N.a&&jk(N.a);const P=C.props&&C.props.onVnodeMounted;P&&Lv(P,N.parent,C)},s)},n.deactivate=C=>{const E=C.component;KV(E.m),KV(E.a),u(C,f,null,1,s),Td(()=>{E.da&&jk(E.da);const _=C.props&&C.props.onVnodeUnmounted;_&&Lv(_,E.parent,C),E.isDeactivated=!0},s)};function h(C){gae(C),c(C,r,s,!0)}function g(C){i.forEach((E,_)=>{const F=T1e(E.type);F&&!C(F)&&p(_)})}function p(C){const E=i.get(C);E&&(!o||!Ub(E,o))?h(E):o&&gae(o),i.delete(C),a.delete(C)}di(()=>[e.include,e.exclude],([C,E])=>{C&&g(_=>PR(C,_)),E&&g(_=>!PR(E,_))},{flush:"post",deep:!0});let m=null;const b=()=>{m!=null&&(VV(r.subTree.type)?Td(()=>{i.set(m,Oj(r.subTree))},r.subTree.suspense):i.set(m,Oj(r.subTree)))};return Is(b),lm(b),el(()=>{i.forEach(C=>{const{subTree:E,suspense:_}=r,F=Oj(E);if(C.type===F.type&&C.key===F.key){gae(F);const M=F.component.da;M&&Td(M,_);return}h(C)})}),()=>{if(m=null,!t.default)return o=null;const C=t.default(),E=C[0];if(C.length>1)return o=null,C;if(!ud(E)||!(E.shapeFlag&4)&&!(E.shapeFlag&128))return o=null,E;let _=Oj(E);if(_.type===Eh)return o=null,_;const F=_.type,M=T1e(J3(_)?_.type.__asyncResolved||{}:F),{include:N,exclude:P,max:j}=e;if(N&&(!M||!PR(N,M))||P&&M&&PR(P,M))return _.shapeFlag&=-257,o=_,E;const z=_.key==null?F:_.key,W=i.get(z);return _.el&&(_=np(_),E.shapeFlag&128&&(E.ssContent=_)),m=z,W?(_.el=W.el,_.component=W.component,_.transition&&VE(_,_.transition),_.shapeFlag|=512,a.delete(z),a.add(z)):(a.add(z),j&&a.size>parseInt(j,10)&&p(a.values().next().value)),_.shapeFlag|=256,o=_,VV(E.type)?E:_}}},zSt=$St;function PR(e,t){return Co(e)?e.some(r=>PR(r,t)):Zs(e)?e.split(",").includes(t):_rt(e)?(e.lastIndex=0,e.test(t)):!1}function rEe(e,t){Bnt(e,"a",t)}function Ent(e,t){Bnt(e,"da",t)}function Bnt(e,t,r=Nd){const n=e.__wdc||(e.__wdc=()=>{let i=r;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(qq(t,n,r),r){let i=r.parent;for(;i&&i.parent;)fL(i.parent.vnode)&&KSt(n,t,r,i),i=i.parent}}function KSt(e,t,r,n){const i=qq(t,e,n,!0);um(()=>{Lq(n[t],i)},r)}function gae(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Oj(e){return e.shapeFlag&128?e.ssContent:e}function qq(e,t,r=Nd,n=!1){if(r){const i=r[e]||(r[e]=[]),a=t.__weh||(t.__weh=(...o)=>{P5();const s=v6(r),l=Qy(t,r,e,o);return s(),U5(),l});return n?i.unshift(a):i.push(a),a}}const pB=e=>(t,r=Nd)=>{(!M9||e==="sp")&&qq(e,(...n)=>t(...n),r)},nEe=pB("bm"),Is=pB("m"),O7=pB("bu"),lm=pB("u"),el=pB("bum"),um=pB("um"),xnt=pB("sp"),Snt=pB("rtg"),knt=pB("rtc");function Qnt(e,t=Nd){qq("ec",e,t)}const iEe="components",VSt="directives";function WSt(e,t){return aEe(iEe,e,!0,t)||e}const _nt=Symbol.for("v-ndc");function YSt(e){return Zs(e)?aEe(iEe,e,!1)||e:e||_nt}function Tnt(e){return aEe(VSt,e)}function aEe(e,t,r=!0,n=!1){const i=Pd||Nd;if(i){const a=i.type;if(e===iEe){const s=T1e(a,!1);if(s&&(s===t||s===EA(t)||s===L5(EA(t))))return a}const o=jQe(i[e]||a[e],t)||jQe(i.appContext[e],t);return!o&&n?a:o}}function jQe(e,t){return e&&(e[t]||e[EA(t)]||e[L5(EA(t))])}function qSt(e,t,r,n){let i;const a=r&&r[n],o=Co(e);if(o||Zs(e)){const s=o&&q3(e);let l=!1;s&&(l=!n1(e),e=Gq(e)),i=new Array(e.length);for(let u=0,c=e.length;ut(s,l,void 0,a&&a[l]));else{const s=Object.keys(e);i=new Array(s.length);for(let l=0,u=s.length;l{const a=n.fn(...i);return a&&(a.key=n.key),a}:n.fn)}return e}function Jq(e,t,r={},n,i){if(Pd.ce||Pd.parent&&J3(Pd.parent)&&Pd.parent.ce)return t!=="default"&&(r.name=t),OO(),WV(ls,null,[De("slot",r,n&&n())],64);let a=e[t];a&&a._c&&(a._d=!1),OO();const o=a&&oEe(a(r)),s=r.key||o&&o.key,l=WV(ls,{key:(s&&!q0(s)?s:`_${t}`)+(!o&&n?"_fb":"")},o||(n?n():[]),o&&e._===1?64:-2);return!i&&l.scopeId&&(l.slotScopeIds=[l.scopeId+"-s"]),a&&a._c&&(a._d=!0),l}function oEe(e){return e.some(t=>ud(t)?!(t.type===Eh||t.type===ls&&!oEe(t.children)):!0)?e:null}function XSt(e,t){const r={};for(const n in e)r[t&&/[A-Z]/.test(n)?`on:${n}`:Hk(n)]=e[n];return r}const b1e=e=>e?cit(e)?dL(e):b1e(e.parent):null,SM=du(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>b1e(e.parent),$root:e=>b1e(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>sEe(e),$forceUpdate:e=>e.f||(e.f=()=>{JIe(e.update)}),$nextTick:e=>e.n||(e.n=il.bind(e.proxy)),$watch:e=>k4t.bind(e)}),pae=(e,t)=>e!==hu&&!e.__isScriptSetup&&rc(e,t),w1e={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:r,setupState:n,data:i,props:a,accessCache:o,type:s,appContext:l}=e;let u;if(t[0]!=="$"){const h=o[t];if(h!==void 0)switch(h){case 1:return n[t];case 2:return i[t];case 4:return r[t];case 3:return a[t]}else{if(pae(n,t))return o[t]=1,n[t];if(i!==hu&&rc(i,t))return o[t]=2,i[t];if((u=e.propsOptions[0])&&rc(u,t))return o[t]=3,a[t];if(r!==hu&&rc(r,t))return o[t]=4,r[t];C1e&&(o[t]=0)}}const c=SM[t];let A,f;if(c)return t==="$attrs"&&Yp(e.attrs,"get",""),c(e);if((A=s.__cssModules)&&(A=A[t]))return A;if(r!==hu&&rc(r,t))return o[t]=4,r[t];if(f=l.config.globalProperties,rc(f,t))return f[t]},set({_:e},t,r){const{data:n,setupState:i,ctx:a}=e;return pae(i,t)?(i[t]=r,!0):n!==hu&&rc(n,t)?(n[t]=r,!0):rc(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=r,!0)},has({_:{data:e,setupState:t,accessCache:r,ctx:n,appContext:i,propsOptions:a}},o){let s;return!!r[o]||e!==hu&&rc(e,o)||pae(t,o)||(s=a[0])&&rc(s,o)||rc(n,o)||rc(SM,o)||rc(i.config.globalProperties,o)},defineProperty(e,t,r){return r.get!=null?e._.accessCache[t]=0:rc(r,"value")&&this.set(e,t,r.value,null),Reflect.defineProperty(e,t,r)}},ZSt=du({},w1e,{get(e,t){if(t!==Symbol.unscopables)return w1e.get(e,t,e)},has(e,t){return t[0]!=="_"&&!PIe(t)}});function e4t(){return null}function t4t(){return null}function r4t(e){}function n4t(e){}function i4t(){return null}function a4t(){}function o4t(e,t){return null}function s4t(){return Fnt().slots}function Dnt(){return Fnt().attrs}function Fnt(){const e=sA();return e.setupContext||(e.setupContext=hit(e))}function RO(e){return Co(e)?e.reduce((t,r)=>(t[r]=null,t),{}):e}function l4t(e,t){const r=RO(e);for(const n in t){if(n.startsWith("__skip"))continue;let i=r[n];i?Co(i)||Fs(i)?i=r[n]={type:i,default:t[n]}:i.default=t[n]:i===null&&(i=r[n]={default:t[n]}),i&&t[`__skip_${n}`]&&(i.skipFactory=!0)}return r}function u4t(e,t){return!e||!t?e||t:Co(e)&&Co(t)?e.concat(t):du({},RO(e),RO(t))}function c4t(e,t){const r={};for(const n in e)t.includes(n)||Object.defineProperty(r,n,{enumerable:!0,get:()=>e[n]});return r}function A4t(e){const t=sA();let r=e();return k1e(),Pq(r)&&(r=r.catch(n=>{throw v6(t),n})),[r,()=>v6(t)]}let C1e=!0;function f4t(e){const t=sEe(e),r=e.proxy,n=e.ctx;C1e=!1,t.beforeCreate&&GQe(t.beforeCreate,e,"bc");const{data:i,computed:a,methods:o,watch:s,provide:l,inject:u,created:c,beforeMount:A,mounted:f,beforeUpdate:h,updated:g,activated:p,deactivated:m,beforeDestroy:b,beforeUnmount:C,destroyed:E,unmounted:_,render:F,renderTracked:M,renderTriggered:N,errorCaptured:P,serverPrefetch:j,expose:z,inheritAttrs:W,components:Y,directives:ee,filters:q}=t;if(u&&h4t(u,n,null),o)for(const de in o){const Ae=o[de];Fs(Ae)&&(n[de]=Ae.bind(r))}if(i){const de=i.call(r,r);Ac(de)&&(e.data=uc(de))}if(C1e=!0,a)for(const de in a){const Ae=a[de],be=Fs(Ae)?Ae.bind(r,r):Fs(Ae.get)?Ae.get.bind(r,r):wg,Le=!Fs(Ae)&&Fs(Ae.set)?Ae.set.bind(r):wg,Ne=vt({get:be,set:Le});Object.defineProperty(n,de,{enumerable:!0,configurable:!0,get:()=>Ne.value,set:ue=>Ne.value=ue})}if(s)for(const de in s)Rnt(s[de],n,r,de);if(l){const de=Fs(l)?l.call(r):l;Reflect.ownKeys(de).forEach(Ae=>{Es(Ae,de[Ae])})}c&&GQe(c,e,"c");function se(de,Ae){Co(Ae)?Ae.forEach(be=>de(be.bind(r))):Ae&&de(Ae.bind(r))}if(se(nEe,A),se(Is,f),se(O7,h),se(lm,g),se(rEe,p),se(Ent,m),se(Qnt,P),se(knt,M),se(Snt,N),se(el,C),se(um,_),se(xnt,j),Co(z))if(z.length){const de=e.exposed||(e.exposed={});z.forEach(Ae=>{Object.defineProperty(de,Ae,{get:()=>r[Ae],set:be=>r[Ae]=be})})}else e.exposed||(e.exposed={});F&&e.render===wg&&(e.render=F),W!=null&&(e.inheritAttrs=W),Y&&(e.components=Y),ee&&(e.directives=ee),j&&tEe(e)}function h4t(e,t,r=wg){Co(e)&&(e=I1e(e));for(const n in e){const i=e[n];let a;Ac(i)?"default"in i?a=Wo(i.from||n,i.default,!0):a=Wo(i.from||n):a=Wo(i),kh(a)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>a.value,set:o=>a.value=o}):t[n]=a}}function GQe(e,t,r){Qy(Co(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,r)}function Rnt(e,t,r,n){let i=n.includes(".")?Znt(r,n):()=>r[n];if(Zs(e)){const a=t[e];Fs(a)&&di(i,a)}else if(Fs(e))di(i,e.bind(r));else if(Ac(e))if(Co(e))e.forEach(a=>Rnt(a,t,r,n));else{const a=Fs(e.handler)?e.handler.bind(r):t[e.handler];Fs(a)&&di(i,a,e)}}function sEe(e){const t=e.type,{mixins:r,extends:n}=t,{mixins:i,optionsCache:a,config:{optionMergeStrategies:o}}=e.appContext,s=a.get(t);let l;return s?l=s:!i.length&&!r&&!n?l=t:(l={},i.length&&i.forEach(u=>zV(l,u,o,!0)),zV(l,t,o)),Ac(t)&&a.set(t,l),l}function zV(e,t,r,n=!1){const{mixins:i,extends:a}=t;a&&zV(e,a,r,!0),i&&i.forEach(o=>zV(e,o,r,!0));for(const o in t)if(!(n&&o==="expose")){const s=d4t[o]||r&&r[o];e[o]=s?s(e[o],t[o]):t[o]}return e}const d4t={data:$Qe,props:zQe,emits:zQe,methods:UR,computed:UR,beforeCreate:_0,created:_0,beforeMount:_0,mounted:_0,beforeUpdate:_0,updated:_0,beforeDestroy:_0,beforeUnmount:_0,destroyed:_0,unmounted:_0,activated:_0,deactivated:_0,errorCaptured:_0,serverPrefetch:_0,components:UR,directives:UR,watch:p4t,provide:$Qe,inject:g4t};function $Qe(e,t){return t?e?function(){return du(Fs(e)?e.call(this,this):e,Fs(t)?t.call(this,this):t)}:t:e}function g4t(e,t){return UR(I1e(e),I1e(t))}function I1e(e){if(Co(e)){const t={};for(let r=0;r1)return r&&Fs(t)?t.call(n&&n.proxy):t}}function y4t(){return!!(Nd||Pd||$k)}const Ont={},Nnt=()=>Object.create(Ont),Lnt=e=>Object.getPrototypeOf(e)===Ont;function b4t(e,t,r,n=!1){const i={},a=Nnt();e.propsDefaults=Object.create(null),Pnt(e,t,i,a);for(const o in e.propsOptions[0])o in i||(i[o]=void 0);r?e.props=n?i:WIe(i):e.type.props?e.props=i:e.props=a,e.attrs=a}function w4t(e,t,r,n){const{props:i,attrs:a,vnode:{patchFlag:o}}=e,s=ll(i),[l]=e.propsOptions;let u=!1;if((n||o>0)&&!(o&16)){if(o&8){const c=e.vnode.dynamicProps;for(let A=0;A{l=!0;const[f,h]=Unt(A,t,!0);du(o,f),h&&s.push(...h)};!r&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!a&&!l)return Ac(e)&&n.set(e,Pk),Pk;if(Co(a))for(let c=0;ce[0]==="_"||e==="$stable",lEe=e=>Co(e)?e.map(zv):[zv(e)],I4t=(e,t,r)=>{if(t._n)return t;const n=XIe((...i)=>lEe(t(...i)),r);return n._c=!1,n},jnt=(e,t,r)=>{const n=e._ctx;for(const i in e){if(Hnt(i))continue;const a=e[i];if(Fs(a))t[i]=I4t(i,a,n);else if(a!=null){const o=lEe(a);t[i]=()=>o}}},Gnt=(e,t)=>{const r=lEe(t);e.slots.default=()=>r},$nt=(e,t,r)=>{for(const n in t)(r||n!=="_")&&(e[n]=t[n])},E4t=(e,t,r)=>{const n=e.slots=Nnt();if(e.vnode.shapeFlag&32){const i=t._;i?($nt(n,t,r),r&&LIe(n,"_",i,!0)):jnt(t,n)}else t&&Gnt(e,t)},B4t=(e,t,r)=>{const{vnode:n,slots:i}=e;let a=!0,o=hu;if(n.shapeFlag&32){const s=t._;s?r&&s===1?a=!1:$nt(i,t,r):(a=!t.$stable,jnt(t,i)),o=t}else t&&(Gnt(e,t),o={default:1});if(a)for(const s in i)!Hnt(s)&&o[s]==null&&delete i[s]},Td=nit;function znt(e){return Vnt(e)}function Knt(e){return Vnt(e,FSt)}function Vnt(e,t){const r=cL();r.__VUE__=!0;const{insert:n,remove:i,patchProp:a,createElement:o,createText:s,createComment:l,setText:u,setElementText:c,parentNode:A,nextSibling:f,setScopeId:h=wg,insertStaticContent:g}=e,p=(st,Re,dt,Oe=null,Ce=null,Be=null,We=void 0,mt=null,Tt=!!Re.dynamicChildren)=>{if(st===Re)return;st&&!Ub(st,Re)&&(Oe=me(st),ue(st,Ce,Be,!0),st=null),Re.patchFlag===-2&&(Tt=!1,Re.dynamicChildren=null);const{type:bt,ref:qt,shapeFlag:cr}=Re;switch(bt){case Yb:m(st,Re,dt,Oe);break;case Eh:b(st,Re,dt,Oe);break;case zk:st==null&&C(Re,dt,Oe,We);break;case ls:Y(st,Re,dt,Oe,Ce,Be,We,mt,Tt);break;default:cr&1?F(st,Re,dt,Oe,Ce,Be,We,mt,Tt):cr&6?ee(st,Re,dt,Oe,Ce,Be,We,mt,Tt):(cr&64||cr&128)&&bt.process(st,Re,dt,Oe,Ce,Be,We,mt,Tt,nt)}qt!=null&&Ce&&FO(qt,st&&st.ref,Be,Re||st,!Re)},m=(st,Re,dt,Oe)=>{if(st==null)n(Re.el=s(Re.children),dt,Oe);else{const Ce=Re.el=st.el;Re.children!==st.children&&u(Ce,Re.children)}},b=(st,Re,dt,Oe)=>{st==null?n(Re.el=l(Re.children||""),dt,Oe):Re.el=st.el},C=(st,Re,dt,Oe)=>{[st.el,st.anchor]=g(st.children,Re,dt,Oe,st.el,st.anchor)},E=({el:st,anchor:Re},dt,Oe)=>{let Ce;for(;st&&st!==Re;)Ce=f(st),n(st,dt,Oe),st=Ce;n(Re,dt,Oe)},_=({el:st,anchor:Re})=>{let dt;for(;st&&st!==Re;)dt=f(st),i(st),st=dt;i(Re)},F=(st,Re,dt,Oe,Ce,Be,We,mt,Tt)=>{Re.type==="svg"?We="svg":Re.type==="math"&&(We="mathml"),st==null?M(Re,dt,Oe,Ce,Be,We,mt,Tt):j(st,Re,Ce,Be,We,mt,Tt)},M=(st,Re,dt,Oe,Ce,Be,We,mt)=>{let Tt,bt;const{props:qt,shapeFlag:cr,transition:Gt,dirs:Xt}=st;if(Tt=st.el=o(st.type,Be,qt&&qt.is,qt),cr&8?c(Tt,st.children):cr&16&&P(st.children,Tt,null,Oe,Ce,vae(st,Be),We,mt),Xt&&Mw(st,null,Oe,"created"),N(Tt,st,st.scopeId,We,Oe),qt){for(const on in qt)on!=="value"&&!TE(on)&&a(Tt,on,null,qt[on],Be,Oe);"value"in qt&&a(Tt,"value",null,qt.value,Be),(bt=qt.onVnodeBeforeMount)&&Lv(bt,Oe,st)}Xt&&Mw(st,null,Oe,"beforeMount");const Er=Wnt(Ce,Gt);Er&&Gt.beforeEnter(Tt),n(Tt,Re,dt),((bt=qt&&qt.onVnodeMounted)||Er||Xt)&&Td(()=>{bt&&Lv(bt,Oe,st),Er&&Gt.enter(Tt),Xt&&Mw(st,null,Oe,"mounted")},Ce)},N=(st,Re,dt,Oe,Ce)=>{if(dt&&h(st,dt),Oe)for(let Be=0;Be{for(let bt=Tt;bt{const mt=Re.el=st.el;let{patchFlag:Tt,dynamicChildren:bt,dirs:qt}=Re;Tt|=st.patchFlag&16;const cr=st.props||hu,Gt=Re.props||hu;let Xt;if(dt&&a4(dt,!1),(Xt=Gt.onVnodeBeforeUpdate)&&Lv(Xt,dt,Re,st),qt&&Mw(Re,st,dt,"beforeUpdate"),dt&&a4(dt,!0),(cr.innerHTML&&Gt.innerHTML==null||cr.textContent&&Gt.textContent==null)&&c(mt,""),bt?z(st.dynamicChildren,bt,mt,dt,Oe,vae(Re,Ce),Be):We||Ae(st,Re,mt,null,dt,Oe,vae(Re,Ce),Be,!1),Tt>0){if(Tt&16)W(mt,cr,Gt,dt,Ce);else if(Tt&2&&cr.class!==Gt.class&&a(mt,"class",null,Gt.class,Ce),Tt&4&&a(mt,"style",cr.style,Gt.style,Ce),Tt&8){const Er=Re.dynamicProps;for(let on=0;on{Xt&&Lv(Xt,dt,Re,st),qt&&Mw(Re,st,dt,"updated")},Oe)},z=(st,Re,dt,Oe,Ce,Be,We)=>{for(let mt=0;mt{if(Re!==dt){if(Re!==hu)for(const Be in Re)!TE(Be)&&!(Be in dt)&&a(st,Be,Re[Be],null,Ce,Oe);for(const Be in dt){if(TE(Be))continue;const We=dt[Be],mt=Re[Be];We!==mt&&Be!=="value"&&a(st,Be,mt,We,Ce,Oe)}"value"in dt&&a(st,"value",Re.value,dt.value,Ce)}},Y=(st,Re,dt,Oe,Ce,Be,We,mt,Tt)=>{const bt=Re.el=st?st.el:s(""),qt=Re.anchor=st?st.anchor:s("");let{patchFlag:cr,dynamicChildren:Gt,slotScopeIds:Xt}=Re;Xt&&(mt=mt?mt.concat(Xt):Xt),st==null?(n(bt,dt,Oe),n(qt,dt,Oe),P(Re.children||[],dt,qt,Ce,Be,We,mt,Tt)):cr>0&&cr&64&&Gt&&st.dynamicChildren?(z(st.dynamicChildren,Gt,dt,Ce,Be,We,mt),(Re.key!=null||Ce&&Re===Ce.subTree)&&uEe(st,Re,!0)):Ae(st,Re,dt,qt,Ce,Be,We,mt,Tt)},ee=(st,Re,dt,Oe,Ce,Be,We,mt,Tt)=>{Re.slotScopeIds=mt,st==null?Re.shapeFlag&512?Ce.ctx.activate(Re,dt,Oe,We,Tt):q(Re,dt,Oe,Ce,Be,We,Tt):ae(st,Re,Tt)},q=(st,Re,dt,Oe,Ce,Be,We)=>{const mt=st.component=uit(st,Oe,Ce);if(fL(st)&&(mt.ctx.renderer=nt),Ait(mt,!1,We),mt.asyncDep){if(Ce&&Ce.registerDep(mt,se,We),!st.el){const Tt=mt.subTree=De(Eh);b(null,Tt,Re,dt)}}else se(mt,st,Re,dt,Ce,Be,We)},ae=(st,Re,dt)=>{const Oe=Re.component=st.component;if(R4t(st,Re,dt))if(Oe.asyncDep&&!Oe.asyncResolved){de(Oe,Re,dt);return}else Oe.next=Re,Oe.update();else Re.el=st.el,Oe.vnode=Re},se=(st,Re,dt,Oe,Ce,Be,We)=>{const mt=()=>{if(st.isMounted){let{next:cr,bu:Gt,u:Xt,parent:Er,vnode:on}=st;{const Lr=Ynt(st);if(Lr){cr&&(cr.el=on.el,de(st,cr,We)),Lr.asyncDep.then(()=>{st.isUnmounted||mt()});return}}let wn=cr,jr;a4(st,!1),cr?(cr.el=on.el,de(st,cr,We)):cr=on,Gt&&jk(Gt),(jr=cr.props&&cr.props.onVnodeBeforeUpdate)&&Lv(jr,Er,cr,on),a4(st,!0);const ur=rK(st),Hr=st.subTree;st.subTree=ur,p(Hr,ur,A(Hr.el),me(Hr),st,Ce,Be),cr.el=ur.el,wn===null&&Zq(st,ur.el),Xt&&Td(Xt,Ce),(jr=cr.props&&cr.props.onVnodeUpdated)&&Td(()=>Lv(jr,Er,cr,on),Ce)}else{let cr;const{el:Gt,props:Xt}=Re,{bm:Er,m:on,parent:wn,root:jr,type:ur}=st,Hr=J3(Re);if(a4(st,!1),Er&&jk(Er),!Hr&&(cr=Xt&&Xt.onVnodeBeforeMount)&&Lv(cr,wn,Re),a4(st,!0),Gt&&ft){const Lr=()=>{st.subTree=rK(st),ft(Gt,st.subTree,st,Ce,null)};Hr&&ur.__asyncHydrate?ur.__asyncHydrate(Gt,st,Lr):Lr()}else{jr.ce&&jr.ce._injectChildStyle(ur);const Lr=st.subTree=rK(st);p(null,Lr,dt,Oe,st,Ce,Be),Re.el=Lr.el}if(on&&Td(on,Ce),!Hr&&(cr=Xt&&Xt.onVnodeMounted)){const Lr=Re;Td(()=>Lv(cr,wn,Lr),Ce)}(Re.shapeFlag&256||wn&&J3(wn.vnode)&&wn.vnode.shapeFlag&256)&&st.a&&Td(st.a,Ce),st.isMounted=!0,Re=dt=Oe=null}};st.scope.on();const Tt=st.effect=new SO(mt);st.scope.off();const bt=st.update=Tt.run.bind(Tt),qt=st.job=Tt.runIfDirty.bind(Tt);qt.i=st,qt.id=st.uid,Tt.scheduler=()=>JIe(qt),a4(st,!0),bt()},de=(st,Re,dt)=>{Re.component=st;const Oe=st.vnode.props;st.vnode=Re,st.next=null,w4t(st,Re.props,Oe,dt),B4t(st,Re.children,dt),P5(),MQe(st),U5()},Ae=(st,Re,dt,Oe,Ce,Be,We,mt,Tt=!1)=>{const bt=st&&st.children,qt=st?st.shapeFlag:0,cr=Re.children,{patchFlag:Gt,shapeFlag:Xt}=Re;if(Gt>0){if(Gt&128){Le(bt,cr,dt,Oe,Ce,Be,We,mt,Tt);return}else if(Gt&256){be(bt,cr,dt,Oe,Ce,Be,We,mt,Tt);return}}Xt&8?(qt&16&&Ye(bt,Ce,Be),cr!==bt&&c(dt,cr)):qt&16?Xt&16?Le(bt,cr,dt,Oe,Ce,Be,We,mt,Tt):Ye(bt,Ce,Be,!0):(qt&8&&c(dt,""),Xt&16&&P(cr,dt,Oe,Ce,Be,We,mt,Tt))},be=(st,Re,dt,Oe,Ce,Be,We,mt,Tt)=>{st=st||Pk,Re=Re||Pk;const bt=st.length,qt=Re.length,cr=Math.min(bt,qt);let Gt;for(Gt=0;Gtqt?Ye(st,Ce,Be,!0,!1,cr):P(Re,dt,Oe,Ce,Be,We,mt,Tt,cr)},Le=(st,Re,dt,Oe,Ce,Be,We,mt,Tt)=>{let bt=0;const qt=Re.length;let cr=st.length-1,Gt=qt-1;for(;bt<=cr&&bt<=Gt;){const Xt=st[bt],Er=Re[bt]=Tt?o3(Re[bt]):zv(Re[bt]);if(Ub(Xt,Er))p(Xt,Er,dt,null,Ce,Be,We,mt,Tt);else break;bt++}for(;bt<=cr&&bt<=Gt;){const Xt=st[cr],Er=Re[Gt]=Tt?o3(Re[Gt]):zv(Re[Gt]);if(Ub(Xt,Er))p(Xt,Er,dt,null,Ce,Be,We,mt,Tt);else break;cr--,Gt--}if(bt>cr){if(bt<=Gt){const Xt=Gt+1,Er=XtGt)for(;bt<=cr;)ue(st[bt],Ce,Be,!0),bt++;else{const Xt=bt,Er=bt,on=new Map;for(bt=Er;bt<=Gt;bt++){const Kn=Re[bt]=Tt?o3(Re[bt]):zv(Re[bt]);Kn.key!=null&&on.set(Kn.key,bt)}let wn,jr=0;const ur=Gt-Er+1;let Hr=!1,Lr=0;const Un=new Array(ur);for(bt=0;bt=ur){ue(Kn,Ce,Be,!0);continue}let qr;if(Kn.key!=null)qr=on.get(Kn.key);else for(wn=Er;wn<=Gt;wn++)if(Un[wn-Er]===0&&Ub(Kn,Re[wn])){qr=wn;break}qr===void 0?ue(Kn,Ce,Be,!0):(Un[qr-Er]=bt+1,qr>=Lr?Lr=qr:Hr=!0,p(Kn,Re[qr],dt,null,Ce,Be,We,mt,Tt),jr++)}const en=Hr?x4t(Un):Pk;for(wn=en.length-1,bt=ur-1;bt>=0;bt--){const Kn=Er+bt,qr=Re[Kn],Gi=Kn+1{const{el:Be,type:We,transition:mt,children:Tt,shapeFlag:bt}=st;if(bt&6){Ne(st.component.subTree,Re,dt,Oe);return}if(bt&128){st.suspense.move(Re,dt,Oe);return}if(bt&64){We.move(st,Re,dt,nt);return}if(We===ls){n(Be,Re,dt);for(let cr=0;crmt.enter(Be),Ce);else{const{leave:cr,delayLeave:Gt,afterLeave:Xt}=mt,Er=()=>n(Be,Re,dt),on=()=>{cr(Be,()=>{Er(),Xt&&Xt()})};Gt?Gt(Be,Er,on):on()}else n(Be,Re,dt)},ue=(st,Re,dt,Oe=!1,Ce=!1)=>{const{type:Be,props:We,ref:mt,children:Tt,dynamicChildren:bt,shapeFlag:qt,patchFlag:cr,dirs:Gt,cacheIndex:Xt}=st;if(cr===-2&&(Ce=!1),mt!=null&&FO(mt,null,dt,st,!0),Xt!=null&&(Re.renderCache[Xt]=void 0),qt&256){Re.ctx.deactivate(st);return}const Er=qt&1&&Gt,on=!J3(st);let wn;if(on&&(wn=We&&We.onVnodeBeforeUnmount)&&Lv(wn,Re,st),qt&6)je(st.component,dt,Oe);else{if(qt&128){st.suspense.unmount(dt,Oe);return}Er&&Mw(st,null,Re,"beforeUnmount"),qt&64?st.type.remove(st,Re,dt,nt,Oe):bt&&!bt.hasOnce&&(Be!==ls||cr>0&&cr&64)?Ye(bt,Re,dt,!1,!0):(Be===ls&&cr&384||!Ce&&qt&16)&&Ye(Tt,Re,dt),Oe&&Ke(st)}(on&&(wn=We&&We.onVnodeUnmounted)||Er)&&Td(()=>{wn&&Lv(wn,Re,st),Er&&Mw(st,null,Re,"unmounted")},dt)},Ke=st=>{const{type:Re,el:dt,anchor:Oe,transition:Ce}=st;if(Re===ls){Pe(dt,Oe);return}if(Re===zk){_(st);return}const Be=()=>{i(dt),Ce&&!Ce.persisted&&Ce.afterLeave&&Ce.afterLeave()};if(st.shapeFlag&1&&Ce&&!Ce.persisted){const{leave:We,delayLeave:mt}=Ce,Tt=()=>We(dt,Be);mt?mt(st.el,Be,Tt):Tt()}else Be()},Pe=(st,Re)=>{let dt;for(;st!==Re;)dt=f(st),i(st),st=dt;i(Re)},je=(st,Re,dt)=>{const{bum:Oe,scope:Ce,job:Be,subTree:We,um:mt,m:Tt,a:bt}=st;KV(Tt),KV(bt),Oe&&jk(Oe),Ce.stop(),Be&&(Be.flags|=8,ue(We,st,Re,dt)),mt&&Td(mt,Re),Td(()=>{st.isUnmounted=!0},Re),Re&&Re.pendingBranch&&!Re.isUnmounted&&st.asyncDep&&!st.asyncResolved&&st.suspenseId===Re.pendingId&&(Re.deps--,Re.deps===0&&Re.resolve())},Ye=(st,Re,dt,Oe=!1,Ce=!1,Be=0)=>{for(let We=Be;We{if(st.shapeFlag&6)return me(st.component.subTree);if(st.shapeFlag&128)return st.suspense.next();const Re=f(st.anchor||st.el),dt=Re&&Re[pnt];return dt?f(dt):Re};let Se=!1;const et=(st,Re,dt)=>{st==null?Re._vnode&&ue(Re._vnode,null,null,!0):p(Re._vnode||null,st,Re,null,null,null,dt),Re._vnode=st,Se||(Se=!0,MQe(),$V(),Se=!1)},nt={p,um:ue,m:Ne,r:Ke,mt:q,mc:P,pc:Ae,pbc:z,n:me,o:e};let tt,ft;return t&&([tt,ft]=t(nt)),{render:et,hydrate:tt,createApp:m4t(et,tt)}}function vae({type:e,props:t},r){return r==="svg"&&e==="foreignObject"||r==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:r}function a4({effect:e,job:t},r){r?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Wnt(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function uEe(e,t,r=!1){const n=e.children,i=t.children;if(Co(n)&&Co(i))for(let a=0;a>1,e[r[s]]0&&(t[n]=r[a-1]),r[a]=n)}}for(a=r.length,o=r[a-1];a-- >0;)r[a]=o,o=t[o];return r}function Ynt(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ynt(t)}function KV(e){if(e)for(let t=0;tWo(qnt);function ks(e,t){return hL(e,null,t)}function S4t(e,t){return hL(e,null,{flush:"post"})}function Xnt(e,t){return hL(e,null,{flush:"sync"})}function di(e,t,r){return hL(e,t,r)}function hL(e,t,r=hu){const{immediate:n,deep:i,flush:a,once:o}=r,s=du({},r),l=t&&n||!t&&a!=="post";let u;if(M9){if(a==="sync"){const h=Jnt();u=h.__watcherHandles||(h.__watcherHandles=[])}else if(!l){const h=()=>{};return h.stop=wg,h.resume=wg,h.pause=wg,h}}const c=Nd;s.call=(h,g,p)=>Qy(h,c,g,p);let A=!1;a==="post"?s.scheduler=h=>{Td(h,c&&c.suspense)}:a!=="sync"&&(A=!0,s.scheduler=(h,g)=>{g?h():JIe(h)}),s.augmentJob=h=>{t&&(h.flags|=4),A&&(h.flags|=2,c&&(h.id=c.uid,h.i=c))};const f=pSt(e,t,s);return M9&&(u?u.push(f):l&&f()),f}function k4t(e,t,r){const n=this.proxy,i=Zs(e)?e.includes(".")?Znt(n,e):()=>n[e]:e.bind(n,n);let a;Fs(t)?a=t:(a=t.handler,r=t);const o=v6(this),s=hL(i,a.bind(n),r);return o(),s}function Znt(e,t){const r=t.split(".");return()=>{let n=e;for(let i=0;i{let c,A=hu,f;return Xnt(()=>{const h=e[i];Wp(c,h)&&(c=h,u())}),{get(){return l(),r.get?r.get(c):c},set(h){const g=r.set?r.set(h):h;if(!Wp(g,c)&&!(A!==hu&&Wp(h,A)))return;const p=n.vnode.props;p&&(t in p||i in p||a in p)&&(`onUpdate:${t}`in p||`onUpdate:${i}`in p||`onUpdate:${a}`in p)||(c=h,u()),n.emit(`update:${t}`,g),Wp(h,g)&&Wp(h,A)&&!Wp(g,f)&&u(),A=h,f=g}}});return s[Symbol.iterator]=()=>{let l=0;return{next(){return l<2?{value:l++?o||hu:s,done:!1}:{done:!0}}}},s}const eit=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${EA(t)}Modifiers`]||e[`${Zp(t)}Modifiers`];function _4t(e,t,...r){if(e.isUnmounted)return;const n=e.vnode.props||hu;let i=r;const a=t.startsWith("update:"),o=a&&eit(n,t.slice(7));o&&(o.trim&&(i=r.map(c=>Zs(c)?c.trim():c)),o.number&&(i=r.map(BO)));let s,l=n[s=Hk(t)]||n[s=Hk(EA(t))];!l&&a&&(l=n[s=Hk(Zp(t))]),l&&Qy(l,e,6,i);const u=n[s+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[s])return;e.emitted[s]=!0,Qy(u,e,6,i)}}function tit(e,t,r=!1){const n=t.emitsCache,i=n.get(e);if(i!==void 0)return i;const a=e.emits;let o={},s=!1;if(!Fs(e)){const l=u=>{const c=tit(u,t,!0);c&&(s=!0,du(o,c))};!r&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!a&&!s?(Ac(e)&&n.set(e,null),null):(Co(a)?a.forEach(l=>o[l]=null):du(o,a),Ac(e)&&n.set(e,o),o)}function Xq(e,t){return!e||!O5(t)?!1:(t=t.slice(2).replace(/Once$/,""),rc(e,t[0].toLowerCase()+t.slice(1))||rc(e,Zp(t))||rc(e,t))}function rK(e){const{type:t,vnode:r,proxy:n,withProxy:i,propsOptions:[a],slots:o,attrs:s,emit:l,render:u,renderCache:c,props:A,data:f,setupState:h,ctx:g,inheritAttrs:p}=e,m=DO(e);let b,C;try{if(r.shapeFlag&4){const _=i||n,F=_;b=zv(u.call(F,_,c,A,h,f,g)),C=s}else{const _=t;b=zv(_.length>1?_(A,{attrs:s,slots:o,emit:l}):_(A,null)),C=t.props?s:D4t(s)}}catch(_){kM.length=0,W6(_,e,1),b=De(Eh)}let E=b;if(C&&p!==!1){const _=Object.keys(C),{shapeFlag:F}=E;_.length&&F&7&&(a&&_.some(Nq)&&(C=F4t(C,a)),E=np(E,C,!1,!0))}return r.dirs&&(E=np(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(r.dirs):r.dirs),r.transition&&VE(E,r.transition),b=E,DO(m),b}function T4t(e,t=!0){let r;for(let n=0;n{let t;for(const r in e)(r==="class"||r==="style"||O5(r))&&((t||(t={}))[r]=e[r]);return t},F4t=(e,t)=>{const r={};for(const n in e)(!Nq(n)||!(n.slice(9)in t))&&(r[n]=e[n]);return r};function R4t(e,t,r){const{props:n,children:i,component:a}=e,{props:o,children:s,patchFlag:l}=t,u=a.emitsOptions;if(t.dirs||t.transition)return!0;if(r&&l>=0){if(l&1024)return!0;if(l&16)return n?VQe(n,o,u):!!o;if(l&8){const c=t.dynamicProps;for(let A=0;Ae.__isSuspense;let B1e=0;const M4t={name:"Suspense",__isSuspense:!0,process(e,t,r,n,i,a,o,s,l,u){if(e==null)N4t(t,r,n,i,a,o,s,l,u);else{if(a&&a.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}L4t(e,t,r,n,i,o,s,l,u)}},hydrate:P4t,normalize:U4t},O4t=M4t;function MO(e,t){const r=e.props&&e.props[t];Fs(r)&&r()}function N4t(e,t,r,n,i,a,o,s,l){const{p:u,o:{createElement:c}}=l,A=c("div"),f=e.suspense=rit(e,i,n,t,A,r,a,o,s,l);u(null,f.pendingBranch=e.ssContent,A,null,n,f,a,o),f.deps>0?(MO(e,"onPending"),MO(e,"onFallback"),u(null,e.ssFallback,t,r,n,null,a,o),s9(f,e.ssFallback)):f.resolve(!1,!0)}function L4t(e,t,r,n,i,a,o,s,{p:l,um:u,o:{createElement:c}}){const A=t.suspense=e.suspense;A.vnode=t,t.el=e.el;const f=t.ssContent,h=t.ssFallback,{activeBranch:g,pendingBranch:p,isInFallback:m,isHydrating:b}=A;if(p)A.pendingBranch=f,Ub(f,p)?(l(p,f,A.hiddenContainer,null,i,A,a,o,s),A.deps<=0?A.resolve():m&&(b||(l(g,h,r,n,i,null,a,o,s),s9(A,h)))):(A.pendingId=B1e++,b?(A.isHydrating=!1,A.activeBranch=p):u(p,i,A),A.deps=0,A.effects.length=0,A.hiddenContainer=c("div"),m?(l(null,f,A.hiddenContainer,null,i,A,a,o,s),A.deps<=0?A.resolve():(l(g,h,r,n,i,null,a,o,s),s9(A,h))):g&&Ub(f,g)?(l(g,f,r,n,i,A,a,o,s),A.resolve(!0)):(l(null,f,A.hiddenContainer,null,i,A,a,o,s),A.deps<=0&&A.resolve()));else if(g&&Ub(f,g))l(g,f,r,n,i,A,a,o,s),s9(A,f);else if(MO(t,"onPending"),A.pendingBranch=f,f.shapeFlag&512?A.pendingId=f.component.suspenseId:A.pendingId=B1e++,l(null,f,A.hiddenContainer,null,i,A,a,o,s),A.deps<=0)A.resolve();else{const{timeout:C,pendingId:E}=A;C>0?setTimeout(()=>{A.pendingId===E&&A.fallback(h)},C):C===0&&A.fallback(h)}}function rit(e,t,r,n,i,a,o,s,l,u,c=!1){const{p:A,m:f,um:h,n:g,o:{parentNode:p,remove:m}}=u;let b;const C=H4t(e);C&&t&&t.pendingBranch&&(b=t.pendingId,t.deps++);const E=e.props?xO(e.props.timeout):void 0,_=a,F={vnode:e,parent:t,parentComponent:r,namespace:o,container:n,hiddenContainer:i,deps:0,pendingId:B1e++,timeout:typeof E=="number"?E:-1,activeBranch:null,pendingBranch:null,isInFallback:!c,isHydrating:c,isUnmounted:!1,effects:[],resolve(M=!1,N=!1){const{vnode:P,activeBranch:j,pendingBranch:z,pendingId:W,effects:Y,parentComponent:ee,container:q}=F;let ae=!1;F.isHydrating?F.isHydrating=!1:M||(ae=j&&z.transition&&z.transition.mode==="out-in",ae&&(j.transition.afterLeave=()=>{W===F.pendingId&&(f(z,q,a===_?g(j):a,0),_O(Y))}),j&&(p(j.el)===q&&(a=g(j)),h(j,ee,F,!0)),ae||f(z,q,a,0)),s9(F,z),F.pendingBranch=null,F.isInFallback=!1;let se=F.parent,de=!1;for(;se;){if(se.pendingBranch){se.effects.push(...Y),de=!0;break}se=se.parent}!de&&!ae&&_O(Y),F.effects=[],C&&t&&t.pendingBranch&&b===t.pendingId&&(t.deps--,t.deps===0&&!N&&t.resolve()),MO(P,"onResolve")},fallback(M){if(!F.pendingBranch)return;const{vnode:N,activeBranch:P,parentComponent:j,container:z,namespace:W}=F;MO(N,"onFallback");const Y=g(P),ee=()=>{F.isInFallback&&(A(null,M,z,Y,j,null,W,s,l),s9(F,M))},q=M.transition&&M.transition.mode==="out-in";q&&(P.transition.afterLeave=ee),F.isInFallback=!0,h(P,j,null,!0),q||ee()},move(M,N,P){F.activeBranch&&f(F.activeBranch,M,N,P),F.container=M},next(){return F.activeBranch&&g(F.activeBranch)},registerDep(M,N,P){const j=!!F.pendingBranch;j&&F.deps++;const z=M.vnode.el;M.asyncDep.catch(W=>{W6(W,M,0)}).then(W=>{if(M.isUnmounted||F.isUnmounted||F.pendingId!==M.suspenseId)return;M.asyncResolved=!0;const{vnode:Y}=M;Q1e(M,W,!1),z&&(Y.el=z);const ee=!z&&M.subTree.el;N(M,Y,p(z||M.subTree.el),z?null:g(M.subTree),F,o,P),ee&&m(ee),Zq(M,Y.el),j&&--F.deps===0&&F.resolve()})},unmount(M,N){F.isUnmounted=!0,F.activeBranch&&h(F.activeBranch,r,M,N),F.pendingBranch&&h(F.pendingBranch,r,M,N)}};return F}function P4t(e,t,r,n,i,a,o,s,l){const u=t.suspense=rit(t,n,r,e.parentNode,document.createElement("div"),null,i,a,o,s,!0),c=l(e,u.pendingBranch=t.ssContent,r,u,a,o);return u.deps===0&&u.resolve(!1,!0),c}function U4t(e){const{shapeFlag:t,children:r}=e,n=t&32;e.ssContent=WQe(n?r.default:r),e.ssFallback=n?WQe(r.fallback):De(Eh)}function WQe(e){let t;if(Fs(e)){const r=p6&&e._c;r&&(e._d=!1,OO()),e=e(),r&&(e._d=!0,t=n0,iit())}return Co(e)&&(e=T4t(e)),e=zv(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(r=>r!==e)),e}function nit(e,t){t&&t.pendingBranch?Co(e)?t.effects.push(...e):t.effects.push(e):_O(e)}function s9(e,t){e.activeBranch=t;const{vnode:r,parentComponent:n}=e;let i=t.el;for(;!i&&t.component;)t=t.component.subTree,i=t.el;r.el=i,n&&n.subTree===r&&(n.vnode.el=i,Zq(n,i))}function H4t(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const ls=Symbol.for("v-fgt"),Yb=Symbol.for("v-txt"),Eh=Symbol.for("v-cmt"),zk=Symbol.for("v-stc"),kM=[];let n0=null;function OO(e=!1){kM.push(n0=e?null:[])}function iit(){kM.pop(),n0=kM[kM.length-1]||null}let p6=1;function x1e(e,t=!1){p6+=e,e<0&&n0&&t&&(n0.hasOnce=!0)}function ait(e){return e.dynamicChildren=p6>0?n0||Pk:null,iit(),p6>0&&n0&&n0.push(e),e}function j4t(e,t,r,n,i,a){return ait(cEe(e,t,r,n,i,a,!0))}function WV(e,t,r,n,i){return ait(De(e,t,r,n,i,!0))}function ud(e){return e?e.__v_isVNode===!0:!1}function Ub(e,t){return e.type===t.type&&e.key===t.key}function G4t(e){}const oit=({key:e})=>e??null,nK=({ref:e,ref_key:t,ref_for:r})=>(typeof e=="number"&&(e=""+e),e!=null?Zs(e)||kh(e)||Fs(e)?{i:Pd,r:e,k:t,f:!!r}:e:null);function cEe(e,t=null,r=null,n=0,i=null,a=e===ls?0:1,o=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&oit(t),ref:t&&nK(t),scopeId:Vq,slotScopeIds:null,children:r,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Pd};return s?(AEe(l,r),a&128&&e.normalize(l)):r&&(l.shapeFlag|=Zs(r)?8:16),p6>0&&!o&&n0&&(l.patchFlag>0||a&6)&&l.patchFlag!==32&&n0.push(l),l}const De=$4t;function $4t(e,t=null,r=null,n=0,i=null,a=!1){if((!e||e===_nt)&&(e=Eh),ud(e)){const s=np(e,t,!0);return r&&AEe(s,r),p6>0&&!a&&n0&&(s.shapeFlag&6?n0[n0.indexOf(e)]=s:n0.push(s)),s.patchFlag=-2,s}if(Z4t(e)&&(e=e.__vccOpts),t){t=sit(t);let{class:s,style:l}=t;s&&!Zs(s)&&(t.class=R7(s)),Ac(l)&&(Kq(l)&&!Co(l)&&(l=du({},l)),t.style=F7(l))}const o=Zs(e)?1:VV(e)?128:vnt(e)?64:Ac(e)?4:Fs(e)?2:0;return cEe(e,t,r,n,i,o,a,!0)}function sit(e){return e?Kq(e)||Lnt(e)?du({},e):e:null}function np(e,t,r=!1,n=!1){const{props:i,ref:a,patchFlag:o,children:s,transition:l}=e,u=t?lit(i||{},t):i,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&oit(u),ref:t&&t.ref?r&&a?Co(a)?a.concat(nK(t)):[a,nK(t)]:nK(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ls?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&np(e.ssContent),ssFallback:e.ssFallback&&np(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&n&&VE(c,l.clone(c)),c}function t2(e=" ",t=0){return De(Yb,null,e,t)}function z4t(e,t){const r=De(zk,null,e);return r.staticCount=t,r}function K4t(e="",t=!1){return t?(OO(),WV(Eh,null,e)):De(Eh,null,e)}function zv(e){return e==null||typeof e=="boolean"?De(Eh):Co(e)?De(ls,null,e.slice()):ud(e)?o3(e):De(Yb,null,String(e))}function o3(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:np(e)}function AEe(e,t){let r=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(Co(t))r=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),AEe(e,i()),i._c&&(i._d=!0));return}else{r=32;const i=t._;!i&&!Lnt(t)?t._ctx=Pd:i===3&&Pd&&(Pd.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Fs(t)?(t={default:t,_ctx:Pd},r=32):(t=String(t),n&64?(r=16,t=[t2(t)]):r=8);e.children=t,e.shapeFlag|=r}function lit(...e){const t={};for(let r=0;rNd||Pd;let YV,S1e;{const e=cL(),t=(r,n)=>{let i;return(i=e[r])||(i=e[r]=[]),i.push(n),a=>{i.length>1?i.forEach(o=>o(a)):i[0](a)}};YV=t("__VUE_INSTANCE_SETTERS__",r=>Nd=r),S1e=t("__VUE_SSR_SETTERS__",r=>M9=r)}const v6=e=>{const t=Nd;return YV(e),e.scope.on(),()=>{e.scope.off(),YV(t)}},k1e=()=>{Nd&&Nd.scope.off(),YV(null)};function cit(e){return e.vnode.shapeFlag&4}let M9=!1;function Ait(e,t=!1,r=!1){t&&S1e(t);const{props:n,children:i}=e.vnode,a=cit(e);b4t(e,n,a,t),E4t(e,i,r);const o=a?Y4t(e,t):void 0;return t&&S1e(!1),o}function Y4t(e,t){const r=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,w1e);const{setup:n}=r;if(n){P5();const i=e.setupContext=n.length>1?hit(e):null,a=v6(e),o=M7(n,e,0,[e.props,i]),s=Pq(o);if(U5(),a(),(s||e.sp)&&!J3(e)&&tEe(e),s){if(o.then(k1e,k1e),t)return o.then(l=>{Q1e(e,l,t)}).catch(l=>{W6(l,e,0)});e.asyncDep=o}else Q1e(e,o,t)}else fit(e,t)}function Q1e(e,t,r){Fs(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Ac(t)&&(e.setupState=qIe(t)),fit(e,r)}let qV,_1e;function q4t(e){qV=e,_1e=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,ZSt))}}const J4t=()=>!qV;function fit(e,t,r){const n=e.type;if(!e.render){if(!t&&qV&&!n.render){const i=n.template||sEe(e).template;if(i){const{isCustomElement:a,compilerOptions:o}=e.appContext.config,{delimiters:s,compilerOptions:l}=n,u=du(du({isCustomElement:a,delimiters:s},o),l);n.render=qV(i,u)}}e.render=n.render||wg,_1e&&_1e(e)}{const i=v6(e);P5();try{f4t(e)}finally{U5(),i()}}}const X4t={get(e,t){return Yp(e,"get",""),e[t]}};function hit(e){const t=r=>{e.exposed=r||{}};return{attrs:new Proxy(e.attrs,X4t),slots:e.slots,emit:e.emit,expose:t}}function dL(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(qIe(ont(e.exposed)),{get(t,r){if(r in t)return t[r];if(r in SM)return SM[r](e)},has(t,r){return r in t||r in SM}})):e.proxy}function T1e(e,t=!0){return Fs(e)?e.displayName||e.name:e.name||t&&e.__name}function Z4t(e){return Fs(e)&&"__vccOpts"in e}const vt=(e,t)=>fSt(e,t,M9);function WE(e,t,r){const n=arguments.length;return n===2?Ac(t)&&!Co(t)?ud(t)?De(e,null,[t]):De(e,t):De(e,null,t):(n>3?r=Array.prototype.slice.call(arguments,2):n===3&&ud(r)&&(r=[r]),De(e,t,r))}function ekt(){}function tkt(e,t,r,n){const i=r[n];if(i&&dit(i,e))return i;const a=t();return a.memo=e.slice(),a.cacheIndex=n,r[n]=a}function dit(e,t){const r=e.memo;if(r.length!=t.length)return!1;for(let n=0;n0&&n0&&n0.push(e),!0}const git="3.5.13",rkt=wg,nkt=wSt,ikt=_8,akt=gnt,okt={createComponentInstance:uit,setupComponent:Ait,renderComponentRoot:rK,setCurrentRenderingInstance:DO,isVNode:ud,normalizeVNode:zv,getComponentPublicInstance:dL,ensureValidVNode:oEe,pushWarningContext:vSt,popWarningContext:mSt},skt=okt,lkt=null,ukt=null,ckt=null;/** * @vue/runtime-dom v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let D1e;const YQe=typeof window<"u"&&window.trustedTypes;if(YQe)try{D1e=YQe.createPolicy("vue",{createHTML:e=>e})}catch{}const pit=D1e?e=>D1e.createHTML(e):e=>e,Akt="http://www.w3.org/2000/svg",fkt="http://www.w3.org/1998/Math/MathML",uE=typeof document<"u"?document:null,qQe=uE&&uE.createElement("template"),hkt={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,n)=>{const i=t==="svg"?uE.createElementNS(Akt,e):t==="mathml"?uE.createElementNS(fkt,e):r?uE.createElement(e,{is:r}):uE.createElement(e);return e==="select"&&n&&n.multiple!=null&&i.setAttribute("multiple",n.multiple),i},createText:e=>uE.createTextNode(e),createComment:e=>uE.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>uE.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,n,i,a){const o=r?r.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),r),!(i===a||!(i=i.nextSibling)););else{qQe.innerHTML=pit(n==="svg"?`${e}`:n==="mathml"?`${e}`:e);const s=qQe.content;if(n==="svg"||n==="mathml"){const l=s.firstChild;for(;l.firstChild;)s.appendChild(l.firstChild);s.removeChild(l)}t.insertBefore(s,r)}return[o?o.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},Dx="transition",SF="animation",O9=Symbol("_vtc"),vit={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},mit=du({},eEe,vit),dkt=e=>(e.displayName="Transition",e.props=mit,e),nm=dkt((e,{slots:t})=>WE(Cnt,yit(e),t)),o4=(e,t=[])=>{Co(e)?e.forEach(r=>r(...t)):e&&e(...t)},JQe=e=>e?Co(e)?e.some(t=>t.length>1):e.length>1:!1;function yit(e){const t={};for(const Y in e)Y in vit||(t[Y]=e[Y]);if(e.css===!1)return t;const{name:r="v",type:n,duration:i,enterFromClass:a=`${r}-enter-from`,enterActiveClass:o=`${r}-enter-active`,enterToClass:s=`${r}-enter-to`,appearFromClass:l=a,appearActiveClass:u=o,appearToClass:c=s,leaveFromClass:A=`${r}-leave-from`,leaveActiveClass:f=`${r}-leave-active`,leaveToClass:h=`${r}-leave-to`}=e,g=gkt(i),p=g&&g[0],m=g&&g[1],{onBeforeEnter:b,onEnter:C,onEnterCancelled:E,onLeave:_,onLeaveCancelled:F,onBeforeAppear:M=b,onAppear:N=C,onAppearCancelled:P=E}=t,j=(Y,ee,q,ae)=>{Y._enterCancelled=ae,Xx(Y,ee?c:s),Xx(Y,ee?u:o),q&&q()},z=(Y,ee)=>{Y._isLeaving=!1,Xx(Y,A),Xx(Y,h),Xx(Y,f),ee&&ee()},W=Y=>(ee,q)=>{const ae=Y?N:C,se=()=>j(ee,Y,q);o4(ae,[ee,se]),XQe(()=>{Xx(ee,Y?l:a),Bw(ee,Y?c:s),JQe(ae)||ZQe(ee,n,p,se)})};return du(t,{onBeforeEnter(Y){o4(b,[Y]),Bw(Y,a),Bw(Y,o)},onBeforeAppear(Y){o4(M,[Y]),Bw(Y,l),Bw(Y,u)},onEnter:W(!1),onAppear:W(!0),onLeave(Y,ee){Y._isLeaving=!0;const q=()=>z(Y,ee);Bw(Y,A),Y._enterCancelled?(Bw(Y,f),F1e()):(F1e(),Bw(Y,f)),XQe(()=>{Y._isLeaving&&(Xx(Y,A),Bw(Y,h),JQe(_)||ZQe(Y,n,m,q))}),o4(_,[Y,q])},onEnterCancelled(Y){j(Y,!1,void 0,!0),o4(E,[Y])},onAppearCancelled(Y){j(Y,!0,void 0,!0),o4(P,[Y])},onLeaveCancelled(Y){z(Y),o4(F,[Y])}})}function gkt(e){if(e==null)return null;if(Ac(e))return[mae(e.enter),mae(e.leave)];{const t=mae(e);return[t,t]}}function mae(e){return xO(e)}function Bw(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[O9]||(e[O9]=new Set)).add(t)}function Xx(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const r=e[O9];r&&(r.delete(t),r.size||(e[O9]=void 0))}function XQe(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let pkt=0;function ZQe(e,t,r,n){const i=e._endId=++pkt,a=()=>{i===e._endId&&n()};if(r!=null)return setTimeout(a,r);const{type:o,timeout:s,propCount:l}=bit(e,t);if(!o)return n();const u=o+"end";let c=0;const A=()=>{e.removeEventListener(u,f),a()},f=h=>{h.target===e&&++c>=l&&A()};setTimeout(()=>{c(r[g]||"").split(", "),i=n(`${Dx}Delay`),a=n(`${Dx}Duration`),o=e_e(i,a),s=n(`${SF}Delay`),l=n(`${SF}Duration`),u=e_e(s,l);let c=null,A=0,f=0;t===Dx?o>0&&(c=Dx,A=o,f=a.length):t===SF?u>0&&(c=SF,A=u,f=l.length):(A=Math.max(o,u),c=A>0?o>u?Dx:SF:null,f=c?c===Dx?a.length:l.length:0);const h=c===Dx&&/\b(transform|all)(,|$)/.test(n(`${Dx}Property`).toString());return{type:c,timeout:A,propCount:f,hasTransform:h}}function e_e(e,t){for(;e.lengtht_e(r)+t_e(e[n])))}function t_e(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function F1e(){return document.body.offsetHeight}function vkt(e,t,r){const n=e[O9];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const JV=Symbol("_vod"),wit=Symbol("_vsh"),_y={beforeMount(e,{value:t},{transition:r}){e[JV]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):kF(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:n}){!t!=!r&&(n?t?(n.beforeEnter(e),kF(e,!0),n.enter(e)):n.leave(e,()=>{kF(e,!1)}):kF(e,t))},beforeUnmount(e,{value:t}){kF(e,t)}};function kF(e,t){e.style.display=t?e[JV]:"none",e[wit]=!t}function mkt(){_y.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Cit=Symbol("");function ykt(e){const t=sA();if(!t)return;const r=t.ut=(i=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(a=>XV(a,i))},n=()=>{const i=e(t.proxy);t.ce?XV(t.ce,i):R1e(t.subTree,i),r(i)};O7(()=>{_O(n)}),Is(()=>{di(n,wg,{flush:"post"});const i=new MutationObserver(n);i.observe(t.subTree.el.parentNode,{childList:!0}),um(()=>i.disconnect())})}function R1e(e,t){if(e.shapeFlag&128){const r=e.suspense;e=r.activeBranch,r.pendingBranch&&!r.isHydrating&&r.effects.push(()=>{R1e(r.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)XV(e.el,t);else if(e.type===ls)e.children.forEach(r=>R1e(r,t));else if(e.type===zk){let{el:r,anchor:n}=e;for(;r&&(XV(r,t),r!==n);)r=r.nextSibling}}function XV(e,t){if(e.nodeType===1){const r=e.style;let n="";for(const i in t)r.setProperty(`--${i}`,t[i]),n+=`--${i}: ${t[i]};`;r[Cit]=n}}const bkt=/(^|;)\s*display\s*:/;function wkt(e,t,r){const n=e.style,i=Zs(r);let a=!1;if(r&&!i){if(t)if(Zs(t))for(const o of t.split(";")){const s=o.slice(0,o.indexOf(":")).trim();r[s]==null&&iK(n,s,"")}else for(const o in t)r[o]==null&&iK(n,o,"");for(const o in r)o==="display"&&(a=!0),iK(n,o,r[o])}else if(i){if(t!==r){const o=n[Cit];o&&(r+=";"+o),n.cssText=r,a=bkt.test(r)}}else t&&e.removeAttribute("style");JV in e&&(e[JV]=a?n.display:"",e[wit]&&(n.display="none"))}const r_e=/\s*!important$/;function iK(e,t,r){if(Co(r))r.forEach(n=>iK(e,t,n));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const n=Ckt(e,t);r_e.test(r)?e.setProperty(Zp(n),r.replace(r_e,""),"important"):e[n]=r}}const n_e=["Webkit","Moz","ms"],yae={};function Ckt(e,t){const r=yae[t];if(r)return r;let n=EA(t);if(n!=="filter"&&n in e)return yae[t]=n;n=L5(n);for(let i=0;ibae||(xkt.then(()=>bae=0),bae=Date.now());function kkt(e,t){const r=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=r.attached)return;Qy(Qkt(n,r.value),t,5,[n])};return r.value=e,r.attached=Skt(),r}function Qkt(e,t){if(Co(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(n=>i=>!i._stopped&&n&&n(i))}else return t}const u_e=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,_kt=(e,t,r,n,i,a)=>{const o=i==="svg";t==="class"?vkt(e,n,o):t==="style"?wkt(e,r,n):O5(t)?Nq(t)||Ekt(e,t,r,n,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Tkt(e,t,n,o))?(o_e(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&a_e(e,t,n,o,a,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Zs(n))?o_e(e,EA(t),n,a,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),a_e(e,t,n,o))};function Tkt(e,t,r,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&u_e(t)&&Fs(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return u_e(t)&&Zs(r)?!1:t in e}const c_e={};/*! #__NO_SIDE_EFFECTS__ */function Iit(e,t,r){const n=$n(e,t);uL(n)&&du(n,t);class i extends eJ{constructor(o){super(n,o,r)}}return i.def=n,i}/*! #__NO_SIDE_EFFECTS__ */const Dkt=(e,t)=>Iit(e,t,Rit),Fkt=typeof HTMLElement<"u"?HTMLElement:class{};class eJ extends Fkt{constructor(t,r={},n=O1e){super(),this._def=t,this._props=r,this._createApp=n,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&n!==O1e?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow({mode:"open"}),this._root=this.shadowRoot):this._root=this,this._def.__asyncLoader||this._resolveProps(this._def)}connectedCallback(){if(!this.isConnected)return;this.shadowRoot||this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof eJ){this._parent=t;break}this._instance||(this._resolved?(this._setParent(),this._update()):t&&t._pendingResolve?this._pendingResolve=t._pendingResolve.then(()=>{this._pendingResolve=void 0,this._resolveDef()}):this._resolveDef())}_setParent(t=this._parent){t&&(this._instance.parent=t._instance,this._instance.provides=t._instance.provides)}disconnectedCallback(){this._connected=!1,il(()=>{this._connected||(this._ob&&(this._ob.disconnect(),this._ob=null),this._app&&this._app.unmount(),this._instance&&(this._instance.ce=void 0),this._app=this._instance=null)})}_resolveDef(){if(this._pendingResolve)return;for(let n=0;n{for(const i of n)this._setAttr(i.attributeName)}),this._ob.observe(this,{attributes:!0});const t=(n,i=!1)=>{this._resolved=!0,this._pendingResolve=void 0;const{props:a,styles:o}=n;let s;if(a&&!Co(a))for(const l in a){const u=a[l];(u===Number||u&&u.type===Number)&&(l in this._props&&(this._props[l]=xO(this._props[l])),(s||(s=Object.create(null)))[EA(l)]=!0)}this._numberProps=s,i&&this._resolveProps(n),this.shadowRoot&&this._applyStyles(o),this._mount(n)},r=this._def.__asyncLoader;r?this._pendingResolve=r().then(n=>t(this._def=n,!0)):t(this._def)}_mount(t){this._app=this._createApp(t),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const r=this._instance&&this._instance.exposed;if(r)for(const n in r)rc(this,n)||Object.defineProperty(this,n,{get:()=>bA(r[n])})}_resolveProps(t){const{props:r}=t,n=Co(r)?r:Object.keys(r||{});for(const i of Object.keys(this))i[0]!=="_"&&n.includes(i)&&this._setProp(i,this[i]);for(const i of n.map(EA))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(a){this._setProp(i,a,!0,!0)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const r=this.hasAttribute(t);let n=r?this.getAttribute(t):c_e;const i=EA(t);r&&this._numberProps&&this._numberProps[i]&&(n=xO(n)),this._setProp(i,n,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,r,n=!0,i=!1){if(r!==this._props[t]&&(r===c_e?delete this._props[t]:(this._props[t]=r,t==="key"&&this._app&&(this._app._ceVNode.key=r)),i&&this._instance&&this._update(),n)){const a=this._ob;a&&a.disconnect(),r===!0?this.setAttribute(Zp(t),""):typeof r=="string"||typeof r=="number"?this.setAttribute(Zp(t),r+""):r||this.removeAttribute(Zp(t)),a&&a.observe(this,{attributes:!0})}}_update(){h5(this._createVNode(),this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const r=De(this._def,du(t,this._props));return this._instance||(r.ce=n=>{this._instance=n,n.ce=this,n.isCE=!0;const i=(a,o)=>{this.dispatchEvent(new CustomEvent(a,uL(o[0])?du({detail:o},o[0]):{detail:o}))};n.emit=(a,...o)=>{i(a,o),Zp(a)!==a&&i(Zp(a),o)},this._setParent()}),r}_applyStyles(t,r){if(!t)return;if(r){if(r===this._def||this._styleChildren.has(r))return;this._styleChildren.add(r)}const n=this._nonce;for(let i=t.length-1;i>=0;i--){const a=document.createElement("style");n&&a.setAttribute("nonce",n),a.textContent=t[i],this.shadowRoot.prepend(a)}}_parseSlots(){const t=this._slots={};let r;for(;r=this.firstChild;){const n=r.nodeType===1&&r.getAttribute("slot")||"default";(t[n]||(t[n]=[])).push(r),this.removeChild(r)}}_renderSlots(){const t=(this._teleportTarget||this).querySelectorAll("slot"),r=this._instance.type.__scopeId;for(let n=0;n(delete e.props.mode,e),Nkt=Okt({name:"TransitionGroup",props:du({},mit,{tag:String,moveClass:String}),setup(e,{slots:t}){const r=sA(),n=ZIe();let i,a;return lm(()=>{if(!i.length)return;const o=e.moveClass||`${e.name||"v"}-move`;if(!Hkt(i[0].el,r.vnode.el,o))return;i.forEach(Lkt),i.forEach(Pkt);const s=i.filter(Ukt);F1e(),s.forEach(l=>{const u=l.el,c=u.style;Bw(u,o),c.transform=c.webkitTransform=c.transitionDuration="";const A=u[ZV]=f=>{f&&f.target!==u||(!f||/transform$/.test(f.propertyName))&&(u.removeEventListener("transitionend",A),u[ZV]=null,Xx(u,o))};u.addEventListener("transitionend",A)})}),()=>{const o=ll(e),s=yit(o);let l=o.tag||ls;if(i=[],a)for(let u=0;u{s.split(/\s+/).forEach(l=>l&&n.classList.remove(l))}),r.split(/\s+/).forEach(s=>s&&n.classList.add(s)),n.style.display="none";const a=t.nodeType===1?t:t.parentNode;a.appendChild(n);const{hasTransform:o}=bit(n);return a.removeChild(n),o}const f5=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Co(t)?r=>jk(t,r):t};function jkt(e){e.target.composing=!0}function f_e(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const By=Symbol("_assign"),eW={created(e,{modifiers:{lazy:t,trim:r,number:n}},i){e[By]=f5(i);const a=n||i.props&&i.props.type==="number";vE(e,t?"change":"input",o=>{if(o.target.composing)return;let s=e.value;r&&(s=s.trim()),a&&(s=BO(s)),e[By](s)}),r&&vE(e,"change",()=>{e.value=e.value.trim()}),t||(vE(e,"compositionstart",jkt),vE(e,"compositionend",f_e),vE(e,"change",f_e))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:n,trim:i,number:a}},o){if(e[By]=f5(o),e.composing)return;const s=(a||e.type==="number")&&!/^0\d/.test(e.value)?BO(e.value):e.value,l=t??"";s!==l&&(document.activeElement===e&&e.type!=="range"&&(n&&t===r||i&&e.value.trim()===l)||(e.value=l))}},fEe={deep:!0,created(e,t,r){e[By]=f5(r),vE(e,"change",()=>{const n=e._modelValue,i=N9(e),a=e.checked,o=e[By];if(Co(n)){const s=AL(n,i),l=s!==-1;if(a&&!l)o(n.concat(i));else if(!a&&l){const u=[...n];u.splice(s,1),o(u)}}else if(N5(n)){const s=new Set(n);a?s.add(i):s.delete(i),o(s)}else o(kit(e,a))})},mounted:h_e,beforeUpdate(e,t,r){e[By]=f5(r),h_e(e,t,r)}};function h_e(e,{value:t,oldValue:r},n){e._modelValue=t;let i;if(Co(t))i=AL(t,n.props.value)>-1;else if(N5(t))i=t.has(n.props.value);else{if(t===r)return;i=KE(t,kit(e,!0))}e.checked!==i&&(e.checked=i)}const hEe={created(e,{value:t},r){e.checked=KE(t,r.props.value),e[By]=f5(r),vE(e,"change",()=>{e[By](N9(e))})},beforeUpdate(e,{value:t,oldValue:r},n){e[By]=f5(n),t!==r&&(e.checked=KE(t,n.props.value))}},Sit={deep:!0,created(e,{value:t,modifiers:{number:r}},n){const i=N5(t);vE(e,"change",()=>{const a=Array.prototype.filter.call(e.options,o=>o.selected).map(o=>r?BO(N9(o)):N9(o));e[By](e.multiple?i?new Set(a):a:a[0]),e._assigning=!0,il(()=>{e._assigning=!1})}),e[By]=f5(n)},mounted(e,{value:t}){d_e(e,t)},beforeUpdate(e,t,r){e[By]=f5(r)},updated(e,{value:t}){e._assigning||d_e(e,t)}};function d_e(e,t){const r=e.multiple,n=Co(t);if(!(r&&!n&&!N5(t))){for(let i=0,a=e.options.length;iString(u)===String(s)):o.selected=AL(t,s)>-1}else o.selected=t.has(s);else if(KE(N9(o),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!r&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function N9(e){return"_value"in e?e._value:e.value}function kit(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const Qit={created(e,t,r){Nj(e,t,r,null,"created")},mounted(e,t,r){Nj(e,t,r,null,"mounted")},beforeUpdate(e,t,r,n){Nj(e,t,r,n,"beforeUpdate")},updated(e,t,r,n){Nj(e,t,r,n,"updated")}};function _it(e,t){switch(e){case"SELECT":return Sit;case"TEXTAREA":return eW;default:switch(t){case"checkbox":return fEe;case"radio":return hEe;default:return eW}}}function Nj(e,t,r,n,i){const o=_it(e.tagName,r.props&&r.props.type)[i];o&&o(e,t,r,n)}function Gkt(){eW.getSSRProps=({value:e})=>({value:e}),hEe.getSSRProps=({value:e},t)=>{if(t.props&&KE(t.props.value,e))return{checked:!0}},fEe.getSSRProps=({value:e},t)=>{if(Co(e)){if(t.props&&AL(e,t.props.value)>-1)return{checked:!0}}else if(N5(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Qit.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const r=_it(t.type.toUpperCase(),t.props&&t.props.type);if(r.getSSRProps)return r.getSSRProps(e,t)}}const $kt=["ctrl","shift","alt","meta"],zkt={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>$kt.some(r=>e[`${r}Key`]&&!t.includes(r))},M1e=(e,t)=>{const r=e._withMods||(e._withMods={}),n=t.join(".");return r[n]||(r[n]=(i,...a)=>{for(let o=0;o{const r=e._withKeys||(e._withKeys={}),n=t.join(".");return r[n]||(r[n]=i=>{if(!("key"in i))return;const a=Zp(i.key);if(t.some(o=>o===a||Kkt[o]===a))return e(i)})},Tit=du({patchProp:_kt},hkt);let QM,g_e=!1;function Dit(){return QM||(QM=znt(Tit))}function Fit(){return QM=g_e?QM:Knt(Tit),g_e=!0,QM}const h5=(...e)=>{Dit().render(...e)},Wkt=(...e)=>{Fit().hydrate(...e)},O1e=(...e)=>{const t=Dit().createApp(...e),{mount:r}=t;return t.mount=n=>{const i=Oit(n);if(!i)return;const a=t._component;!Fs(a)&&!a.render&&!a.template&&(a.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const o=r(i,!1,Mit(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),o},t},Rit=(...e)=>{const t=Fit().createApp(...e),{mount:r}=t;return t.mount=n=>{const i=Oit(n);if(i)return r(i,!0,Mit(i))},t};function Mit(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Oit(e){return Zs(e)?document.querySelector(e):e}let p_e=!1;const Ykt=()=>{p_e||(p_e=!0,Gkt(),mkt())},qkt=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:Cnt,BaseTransitionPropsValidators:eEe,Comment:Eh,DeprecationTypes:ckt,EffectScope:GIe,ErrorCodes:bSt,ErrorTypeStrings:nkt,Fragment:ls,KeepAlive:zSt,ReactiveEffect:SO,Static:zk,Suspense:O4t,Teleport:Wq,Text:Yb,TrackOpTypes:hSt,Transition:nm,TransitionGroup:gL,TriggerOpTypes:dSt,VueElement:eJ,assertNumber:ySt,callWithAsyncErrorHandling:Qy,callWithErrorHandling:M7,camelize:EA,capitalize:L5,cloneVNode:np,compatUtils:ukt,computed:vt,createApp:O1e,createBlock:WV,createCommentVNode:K4t,createElementBlock:j4t,createElementVNode:cEe,createHydrationRenderer:Knt,createPropsRestProxy:c4t,createRenderer:znt,createSSRApp:Rit,createSlots:JSt,createStaticVNode:z4t,createTextVNode:t2,createVNode:De,customRef:lnt,defineAsyncComponent:GSt,defineComponent:$n,defineCustomElement:Iit,defineEmits:t4t,defineExpose:r4t,defineModel:a4t,defineOptions:n4t,defineProps:e4t,defineSSRCustomElement:Dkt,defineSlots:i4t,devtools:ikt,effect:N5t,effectScope:M5t,getCurrentInstance:sA,getCurrentScope:$Ie,getCurrentWatcher:gSt,getTransitionRawChildren:Yq,guardReactiveProps:sit,h:WE,handleError:W6,hasInjectionContext:y4t,hydrate:Wkt,hydrateOnIdle:NSt,hydrateOnInteraction:HSt,hydrateOnMediaQuery:USt,hydrateOnVisible:PSt,initCustomFormatter:ekt,initDirectivesForSSR:Ykt,inject:Wo,isMemoSame:dit,isProxy:Kq,isReactive:q3,isReadonly:A5,isRef:kh,isRuntimeOnly:J4t,isShallow:n1,isVNode:ud,markRaw:ont,mergeDefaults:l4t,mergeModels:u4t,mergeProps:lit,nextTick:il,normalizeClass:R7,normalizeProps:Rrt,normalizeStyle:F7,onActivated:rEe,onBeforeMount:nEe,onBeforeUnmount:el,onBeforeUpdate:O7,onDeactivated:Ent,onErrorCaptured:Qnt,onMounted:Is,onRenderTracked:knt,onRenderTriggered:Snt,onScopeDispose:$rt,onServerPrefetch:xnt,onUnmounted:um,onUpdated:lm,onWatcherCleanup:cnt,openBlock:OO,popScopeId:BSt,provide:Es,proxyRefs:qIe,pushScopeId:ESt,queuePostFlushCb:_O,reactive:uc,readonly:YIe,ref:Hn,registerRuntimeCompiler:q4t,render:h5,renderList:qSt,renderSlot:Jq,resolveComponent:WSt,resolveDirective:Tnt,resolveDynamicComponent:YSt,resolveFilter:lkt,resolveTransitionHooks:R9,setBlockTracking:x1e,setDevtoolsHook:akt,setTransitionHooks:VE,shallowReactive:WIe,shallowReadonly:nSt,shallowRef:sn,ssrContextKey:qnt,ssrUtils:skt,stop:L5t,toDisplayString:jIe,toHandlerKey:Hk,toHandlers:XSt,toRaw:ll,toRef:ws,toRefs:BM,toValue:oSt,transformVNodeArgs:G4t,triggerRef:aSt,unref:bA,useAttrs:Dnt,useCssModule:Mkt,useCssVars:ykt,useHost:Eit,useId:QSt,useModel:Q4t,useSSRContext:Jnt,useShadowRoot:Rkt,useSlots:s4t,useTemplateRef:_St,useTransitionState:ZIe,vModelCheckbox:fEe,vModelDynamic:Qit,vModelRadio:hEe,vModelSelect:Sit,vModelText:eW,vShow:_y,version:git,warn:rkt,watch:di,watchEffect:ks,watchPostEffect:S4t,watchSyncEffect:Xnt,withAsyncContext:A4t,withCtx:XIe,withDefaults:o4t,withDirectives:rp,withKeys:Vkt,withMemo:tkt,withModifiers:M1e,withScopeId:xSt},Symbol.toStringTag,{value:"Module"}));var xh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function A0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function N7(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var r=function n(){return this instanceof n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(n){var i=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return e[n]}})}),r}var aK={exports:{}},Jkt=aK.exports,v_e;function Nit(){return v_e||(v_e=1,function(e,t){(function(r,n){e.exports=n()})(Jkt,function(){var r=1e3,n=6e4,i=36e5,a="millisecond",o="second",s="minute",l="hour",u="day",c="week",A="month",f="quarter",h="year",g="date",p="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,b=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(q){var ae=["th","st","nd","rd"],se=q%100;return"["+q+(ae[(se-20)%10]||ae[se]||ae[0])+"]"}},E=function(q,ae,se){var de=String(q);return!de||de.length>=ae?q:""+Array(ae+1-de.length).join(se)+q},_={s:E,z:function(q){var ae=-q.utcOffset(),se=Math.abs(ae),de=Math.floor(se/60),Ae=se%60;return(ae<=0?"+":"-")+E(de,2,"0")+":"+E(Ae,2,"0")},m:function q(ae,se){if(ae.date()1)return q(Le[0])}else{var Ne=ae.name;M[Ne]=ae,Ae=Ne}return!de&&Ae&&(F=Ae),Ae||!de&&F},z=function(q,ae){if(P(q))return q.clone();var se=typeof ae=="object"?ae:{};return se.date=q,se.args=arguments,new Y(se)},W=_;W.l=j,W.i=P,W.w=function(q,ae){return z(q,{locale:ae.$L,utc:ae.$u,x:ae.$x,$offset:ae.$offset})};var Y=function(){function q(se){this.$L=j(se.locale,null,!0),this.parse(se),this.$x=this.$x||se.x||{},this[N]=!0}var ae=q.prototype;return ae.parse=function(se){this.$d=function(de){var Ae=de.date,be=de.utc;if(Ae===null)return new Date(NaN);if(W.u(Ae))return new Date;if(Ae instanceof Date)return new Date(Ae);if(typeof Ae=="string"&&!/Z$/i.test(Ae)){var Le=Ae.match(m);if(Le){var Ne=Le[2]-1||0,ue=(Le[7]||"0").substring(0,3);return be?new Date(Date.UTC(Le[1],Ne,Le[3]||1,Le[4]||0,Le[5]||0,Le[6]||0,ue)):new Date(Le[1],Ne,Le[3]||1,Le[4]||0,Le[5]||0,Le[6]||0,ue)}}return new Date(Ae)}(se),this.init()},ae.init=function(){var se=this.$d;this.$y=se.getFullYear(),this.$M=se.getMonth(),this.$D=se.getDate(),this.$W=se.getDay(),this.$H=se.getHours(),this.$m=se.getMinutes(),this.$s=se.getSeconds(),this.$ms=se.getMilliseconds()},ae.$utils=function(){return W},ae.isValid=function(){return this.$d.toString()!==p},ae.isSame=function(se,de){var Ae=z(se);return this.startOf(de)<=Ae&&Ae<=this.endOf(de)},ae.isAfter=function(se,de){return z(se)typeof e=="function",r6t=Array.isArray,n6t=e=>typeof e=="string",i6t=e=>e!==null&&typeof e=="object",a6t=/^on[^a-z]/,o6t=e=>a6t.test(e),dEe=e=>{const t=Object.create(null);return r=>t[r]||(t[r]=e(r))},s6t=/-(\w)/g,pL=dEe(e=>e.replace(s6t,(t,r)=>r?r.toUpperCase():"")),l6t=/\B([A-Z])/g,u6t=dEe(e=>e.replace(l6t,"-$1").toLowerCase()),c6t=dEe(e=>e.charAt(0).toUpperCase()+e.slice(1)),A6t=Object.prototype.hasOwnProperty,y_e=(e,t)=>A6t.call(e,t);function f6t(e,t,r,n){const i=e[r];if(i!=null){const a=y_e(i,"default");if(a&&n===void 0){const o=i.default;n=i.type!==Function&&t6t(o)?o():o}i.type===Boolean&&(!y_e(t,r)&&!a?n=!1:n===""&&(n=!0))}return n}function nk(e){return typeof e=="number"?`${e}px`:e}function q8(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return typeof e=="function"?e(t):e??r}function h6t(e){let t;const r=new Promise(i=>{t=e(()=>{i(!0)})}),n=()=>{t==null||t()};return n.then=(i,a)=>r.then(i,a),n.promise=r,n}function Vn(){const e=[];for(let t=0;t0},e.prototype.connect_=function(){!L1e||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),y6t?(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)},e.prototype.disconnect_=function(){!L1e||!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)},e.prototype.onTransitionEnd_=function(t){var r=t.propertyName,n=r===void 0?"":r,i=m6t.some(function(a){return!!~n.indexOf(a)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),jit=function(e,t){for(var r=0,n=Object.keys(t);r"u"||!(Element instanceof Object))){if(!(t instanceof L9(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)||(r.set(t,new k6t(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof L9(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(t)&&(r.delete(t),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&t.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,r=this.activeObservations_.map(function(n){return new Q6t(n.target,n.broadcastRect())});this.callback_.call(t,r,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),$it=typeof WeakMap<"u"?new WeakMap:new Hit,zit=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=b6t.getInstance(),n=new _6t(t,r,this);$it.set(this,n)}return e}();["observe","unobserve","disconnect"].forEach(function(e){zit.prototype[e]=function(){var t;return(t=$it.get(this))[e].apply(t,arguments)}});var Kit=function(){return typeof tW.ResizeObserver<"u"?tW.ResizeObserver:zit}(),Vit=typeof global=="object"&&global&&global.Object===Object&&global,T6t=typeof self=="object"&&self&&self.Object===Object&&self,f2=Vit||T6t||Function("return this")(),Ty=f2.Symbol,Wit=Object.prototype,D6t=Wit.hasOwnProperty,F6t=Wit.toString,QF=Ty?Ty.toStringTag:void 0;function R6t(e){var t=D6t.call(e,QF),r=e[QF];try{e[QF]=void 0;var n=!0}catch{}var i=F6t.call(e);return n&&(t?e[QF]=r:delete e[QF]),i}var M6t=Object.prototype,O6t=M6t.toString;function N6t(e){return O6t.call(e)}var L6t="[object Null]",P6t="[object Undefined]",w_e=Ty?Ty.toStringTag:void 0;function Y6(e){return e==null?e===void 0?P6t:L6t:w_e&&w_e in Object(e)?R6t(e):N6t(e)}function Yit(e,t){return function(r){return e(t(r))}}var gEe=Yit(Object.getPrototypeOf,Object);function AC(e){return e!=null&&typeof e=="object"}var U6t="[object Object]",H6t=Function.prototype,j6t=Object.prototype,qit=H6t.toString,G6t=j6t.hasOwnProperty,$6t=qit.call(Object);function Jit(e){if(!AC(e)||Y6(e)!=U6t)return!1;var t=gEe(e);if(t===null)return!0;var r=G6t.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&qit.call(r)==$6t}const P1e=e=>e!=null&&e!=="",ju=(e,t)=>{const r=$e({},e);return Object.keys(t).forEach(n=>{const i=r[n];if(i)i.type||i.default?i.default=t[n]:i.def?i.def(t[n]):r[n]={type:i,default:t[n]};else throw new Error(`not have ${n} prop`)}),r},Xit=e=>{const t=Object.keys(e),r={},n={},i={};for(let a=0,o=t.length;a0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;const r={},n=/;(?![^(]*\))/g,i=/:(.+)/;return typeof e=="object"?e:(e.split(n).forEach(function(a){if(a){const o=a.split(i);if(o.length>1){const s=t?pL(o[0].trim()):o[0].trim();r[s]=o[1].trim()}}}),r)},T8=(e,t)=>e[t]!==void 0,Zit=Symbol("skipFlatten"),sf=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const r=Array.isArray(e)?e:[e],n=[];return r.forEach(i=>{Array.isArray(i)?n.push(...sf(i,t)):i&&i.type===ls?i.key===Zit?n.push(i):n.push(...sf(i.children,t)):i&&ud(i)?t&&!tat(i)?n.push(i):t||n.push(i):P1e(i)&&n.push(i)}),n},K6t=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(ud(e))return e.type===ls?t==="default"?sf(e.children):[]:e.children&&e.children[t]?sf(e.children[t](r)):[];{let n=e.$slots[t]&&e.$slots[t](r);return sf(n)}},IE=e=>{var t;let r=((t=e==null?void 0:e.vnode)===null||t===void 0?void 0:t.el)||e&&(e.$el||e);for(;r&&!r.tagName;)r=r.nextSibling;return r},V6t=e=>{const t={};if(e.$&&e.$.vnode){const r=e.$.vnode.props||{};Object.keys(e.$props).forEach(n=>{const i=e.$props[n],a=u6t(n);(i!==void 0||a in r)&&(t[n]=i)})}else if(ud(e)&&typeof e.type=="object"){const r=e.props||{},n={};Object.keys(r).forEach(a=>{n[pL(a)]=r[a]});const i=e.type.props||{};Object.keys(i).forEach(a=>{const o=f6t(i,n,a,n[a]);(o!==void 0||a in n)&&(t[a]=o)})}return t},eat=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"default",r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:e,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0,i;if(e.$){const a=e[t];if(a!==void 0)return typeof a=="function"&&n?a(r):a;i=e.$slots[t],i=n&&i?i(r):i}else if(ud(e)){const a=e.props&&e.props[t];if(a!==void 0&&e.props!==null)return typeof a=="function"&&n?a(r):a;e.type===ls?i=e.children:e.children&&e.children[t]&&(i=e.children[t],i=n&&i?i(r):i)}return Array.isArray(i)&&(i=sf(i),i=i.length===1?i[0]:i,i=i.length===0?void 0:i),i};function C_e(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r={};return e.$?r=$e($e({},r),e.$attrs):r=$e($e({},r),e.props),Xit(r)[t?"onEvents":"events"]}function W6t(e,t){let n=((ud(e)?e.props:e.$attrs)||{}).style||{};return typeof n=="string"&&(n=z6t(n,t)),n}function Y6t(e){return e.length===1&&e[0].type===ls}function tat(e){return e&&(e.type===Eh||e.type===ls&&e.children.length===0||e.type===Yb&&e.children.trim()==="")}function Cg(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const t=[];return e.forEach(r=>{Array.isArray(r)?t.push(...r):(r==null?void 0:r.type)===ls?t.push(...Cg(r.children)):t.push(r)}),t.filter(r=>!tat(r))}function l0(e){return Array.isArray(e)&&e.length===1&&(e=e[0]),e&&e.__v_isVNode&&typeof e.type!="symbol"}function Xv(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"default";var n,i;return(n=t[r])!==null&&n!==void 0?n:(i=e[r])===null||i===void 0?void 0:i.call(e)}const YE=$n({compatConfig:{MODE:3},name:"ResizeObserver",props:{disabled:Boolean,onResize:Function},emits:["resize"],setup(e,t){let{slots:r}=t;const n=uc({width:0,height:0,offsetHeight:0,offsetWidth:0});let i=null,a=null;const o=()=>{a&&(a.disconnect(),a=null)},s=c=>{const{onResize:A}=e,f=c[0].target,{width:h,height:g}=f.getBoundingClientRect(),{offsetWidth:p,offsetHeight:m}=f,b=Math.floor(h),C=Math.floor(g);if(n.width!==b||n.height!==C||n.offsetWidth!==p||n.offsetHeight!==m){const E={width:b,height:C,offsetWidth:p,offsetHeight:m};$e(n,E),A&&Promise.resolve().then(()=>{A($e($e({},E),{offsetWidth:p,offsetHeight:m}),f)})}},l=sA(),u=()=>{const{disabled:c}=e;if(c){o();return}const A=IE(l);A!==i&&(o(),i=A),!a&&A&&(a=new Kit(s),a.observe(A))};return Is(()=>{u()}),lm(()=>{u()}),um(()=>{o()}),di(()=>e.disabled,()=>{u()},{flush:"post"}),()=>{var c;return(c=r.default)===null||c===void 0?void 0:c.call(r)[0]}}});let rat=e=>setTimeout(e,16),nat=e=>clearTimeout(e);typeof window<"u"&&"requestAnimationFrame"in window&&(rat=e=>window.requestAnimationFrame(e),nat=e=>window.cancelAnimationFrame(e));let I_e=0;const pEe=new Map;function iat(e){pEe.delete(e)}function ms(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;I_e+=1;const r=I_e;function n(i){if(i===0)iat(r),e();else{const a=rat(()=>{n(i-1)});pEe.set(r,a)}}return n(t),r}ms.cancel=e=>{const t=pEe.get(e);return iat(t),nat(t)};const fC=function(){for(var e=arguments.length,t=new Array(e),r=0;r{const t=e;return t.install=function(r){r.component(t.displayName||t.name,e)},e};function m6(){return{type:[Function,Array]}}function To(e){return{type:Object,default:e}}function Pa(e){return{type:Boolean,default:e}}function pi(e){return{type:Function,default:e}}function Wf(e,t){const r={validator:()=>!0,default:e};return r}function nc(e){return{type:Array,default:e}}function Us(e){return{type:String,default:e}}function $l(e,t){return e?{type:e,default:t}:Wf(t)}let Jp=!1;try{let e=Object.defineProperty({},"passive",{get(){Jp=!0}});window.addEventListener("testPassive",null,e),window.removeEventListener("testPassive",null,e)}catch{}function Ym(e,t,r,n){if(e&&e.addEventListener){let i=n;i===void 0&&Jp&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(i={passive:!1}),e.addEventListener(t,r,i)}return{remove:()=>{e&&e.removeEventListener&&e.removeEventListener(t,r)}}}const vEe="anticon",aat=Symbol("GlobalFormContextKey"),q6t=e=>{Es(aat,e)},J6t=()=>Wo(aat,{validateMessages:vt(()=>{})}),X6t=()=>({iconPrefixCls:String,getTargetContainer:{type:Function},getPopupContainer:{type:Function},prefixCls:String,getPrefixCls:{type:Function},renderEmpty:{type:Function},transformCellText:{type:Function},csp:To(),input:To(),autoInsertSpaceInButton:{type:Boolean,default:void 0},locale:To(),pageHeader:To(),componentSize:{type:String},componentDisabled:{type:Boolean,default:void 0},direction:{type:String},space:To(),virtual:{type:Boolean,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},form:To(),pagination:To(),theme:To(),select:To()}),mEe=Symbol("configProvider"),oat={getPrefixCls:(e,t)=>t||(e?`ant-${e}`:"ant"),iconPrefixCls:vt(()=>vEe),getPopupContainer:vt(()=>()=>document.body)},yEe=()=>Wo(mEe,oat),Z6t=e=>Es(mEe,e),sat=Symbol("DisabledContextKey"),hC=()=>Wo(sat,Hn(void 0)),lat=e=>{const t=hC();return Es(sat,vt(()=>{var r;return(r=e.value)!==null&&r!==void 0?r:t.value})),e},uat={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"},eQt={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"},cat={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},nW={lang:$e({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"]},eQt),timePickerLocale:$e({},cat)},Nm="${label} is not a valid ${type}",r2={locale:"en",Pagination:uat,DatePicker:nW,TimePicker:cat,Calendar:nW,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:Nm,method:Nm,array:Nm,object:Nm,number:Nm,date:Nm,boolean:Nm,integer:Nm,float:Nm,regexp:Nm,email:Nm,url:Nm,hex:Nm},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"}},Aat=$n({compatConfig:{MODE:3},name:"LocaleReceiver",props:{componentName:String,defaultLocale:{type:[Object,Function]},children:{type:Function}},setup(e,t){let{slots:r}=t;const n=Wo("localeData",{}),i=vt(()=>{const{componentName:o="global",defaultLocale:s}=e,l=s||r2[o||"global"],{antLocale:u}=n,c=o&&u?u[o]:{};return $e($e({},typeof l=="function"?l():l),c||{})}),a=vt(()=>{const{antLocale:o}=n,s=o&&o.locale;return o&&o.exist&&!s?r2.locale:s});return()=>{const o=e.children||r.default,{antLocale:s}=n;return o==null?void 0:o(i.value,a.value,s)}}});function SC(e,t,r){const n=Wo("localeData",{});return[vt(()=>{const{antLocale:a}=n,o=bA(t)||r2[e||"global"],s=e&&a?a[e]:{};return $e($e($e({},typeof o=="function"?o():o),s||{}),bA(r)||{})})]}function bEe(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}class tQt{constructor(){this.cache=new Map}get(t){return this.cache.get(Array.isArray(t)?t.join("%"):t)||null}update(t,r){const n=Array.isArray(t)?t.join("%"):t,i=this.cache.get(n),a=r(i);a===null?this.cache.delete(n):this.cache.set(n,a)}}const fat="data-token-hash",l9="data-css-hash",_M="__cssinjs_instance__",iW=Math.random().toString(12).slice(2);function hat(){if(typeof document<"u"&&document.head&&document.body){const e=document.body.querySelectorAll(`style[${l9}]`)||[],{firstChild:t}=document.head;Array.from(e).forEach(n=>{n[_M]=n[_M]||iW,document.head.insertBefore(n,t)});const r={};Array.from(document.querySelectorAll(`style[${l9}]`)).forEach(n=>{var i;const a=n.getAttribute(l9);r[a]?n[_M]===iW&&((i=n.parentNode)===null||i===void 0||i.removeChild(n)):r[a]=!0})}return new tQt}const dat=Symbol("StyleContextKey"),wEe={cache:hat(),defaultCache:!0,hashPriority:"low"},CEe=()=>Wo(dat,sn($e({},wEe))),rQt=e=>{const t=CEe(),r=sn($e({},wEe));return di([e,t],()=>{const n=$e({},t.value),i=bA(e);Object.keys(i).forEach(o=>{const s=i[o];i[o]!==void 0&&(n[o]=s)});const{cache:a}=i;n.cache=n.cache||hat(),n.defaultCache=!a&&t.value.defaultCache,r.value=n},{immediate:!0}),Es(dat,r),r},nQt=()=>({autoClear:Pa(),mock:Us(),cache:To(),defaultCache:Pa(),hashPriority:Us(),container:$l(),ssrInline:Pa(),transformers:nc(),linters:nc()});Ly($n({name:"AStyleProvider",inheritAttrs:!1,props:ju(nQt(),wEe),setup(e,t){let{slots:r}=t;return rQt(e),()=>{var n;return(n=r.default)===null||n===void 0?void 0:n.call(r)}}}));function gat(e,t,r,n){const i=CEe(),a=sn(""),o=sn();ks(()=>{a.value=[e,...t.value].join("%")});const s=l=>{i.value.cache.update(l,u=>{const[c=0,A]=u||[];return c-1===0?(n==null||n(A,!1),null):[c-1,A]})};return di(a,(l,u)=>{u&&s(u),i.value.cache.update(l,c=>{const[A=0,f]=c||[],g=f||r();return[A+1,g]}),o.value=i.value.cache.get(a.value)[1]},{immediate:!0}),el(()=>{s(a.value)}),o}function kC(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function v3(e,t){return e&&e.contains?e.contains(t):!1}const E_e="data-vc-order",iQt="vc-util-key",U1e=new Map;function pat(){let{mark:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return e?e.startsWith("data-")?e:`data-${e}`:iQt}function rJ(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function aQt(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function vat(e){return Array.from((U1e.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function mat(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!kC())return null;const{csp:r,prepend:n}=t,i=document.createElement("style");i.setAttribute(E_e,aQt(n)),r!=null&&r.nonce&&(i.nonce=r==null?void 0:r.nonce),i.innerHTML=e;const a=rJ(t),{firstChild:o}=a;if(n){if(n==="queue"){const s=vat(a).filter(l=>["prepend","prependQueue"].includes(l.getAttribute(E_e)));if(s.length)return a.insertBefore(i,s[s.length-1].nextSibling),i}a.insertBefore(i,o)}else a.appendChild(i);return i}function yat(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=rJ(t);return vat(r).find(n=>n.getAttribute(pat(t))===e)}function aW(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=yat(e,t);r&&rJ(t).removeChild(r)}function oQt(e,t){const r=U1e.get(e);if(!r||!v3(document,r)){const n=mat("",t),{parentNode:i}=n;U1e.set(e,i),e.removeChild(n)}}function NO(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var n,i,a;const o=rJ(r);oQt(o,r);const s=yat(t,r);if(s)return!((n=r.csp)===null||n===void 0)&&n.nonce&&s.nonce!==((i=r.csp)===null||i===void 0?void 0:i.nonce)&&(s.nonce=(a=r.csp)===null||a===void 0?void 0:a.nonce),s.innerHTML!==e&&(s.innerHTML=e),s;const l=mat(e,r);return l.setAttribute(pat(r),t),l}function oW(e){let t="";return Object.keys(e).forEach(r=>{const n=e[r];t+=r,n&&typeof n=="object"?t+=oW(n):t+=n}),t}function sQt(e,t){return bEe(`${t}_${oW(e)}`)}const TM=`layer-${Date.now()}-${Math.random()}`.replace(/\./g,""),bat="903px";function lQt(e,t){var r;if(kC()){NO(e,TM);const n=document.createElement("div");n.style.position="fixed",n.style.left="0",n.style.top="0",t==null||t(n),document.body.appendChild(n);const i=getComputedStyle(n).width===bat;return(r=n.parentNode)===null||r===void 0||r.removeChild(n),aW(TM),i}return!1}let wae;function uQt(){return wae===void 0&&(wae=lQt(`@layer ${TM} { .${TM} { width: ${bat}!important; } }`,e=>{e.className=TM})),wae}const B_e={},cQt="css",ik=new Map;function AQt(e){ik.set(e,(ik.get(e)||0)+1)}function fQt(e){typeof document<"u"&&document.querySelectorAll(`style[${fat}="${e}"]`).forEach(r=>{var n;r[_M]===iW&&((n=r.parentNode)===null||n===void 0||n.removeChild(r))})}function hQt(e){ik.set(e,(ik.get(e)||0)-1);const t=Array.from(ik.keys()),r=t.filter(n=>(ik.get(n)||0)<=0);r.length{fQt(n),ik.delete(n)})}function dQt(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Hn({});const n=vt(()=>$e({},...t.value)),i=vt(()=>oW(n.value)),a=vt(()=>oW(r.value.override||B_e));return gat("token",vt(()=>[r.value.salt||"",e.value.id,i.value,a.value]),()=>{const{salt:s="",override:l=B_e,formatToken:u}=r.value,c=e.value.getDerivativeToken(n.value);let A=$e($e({},c),l);u&&(A=u(A));const f=sQt(A,s);A._tokenKey=f,AQt(f);const h=`${cQt}-${bEe(f)}`;return A._hashId=h,[A,h]},s=>{hQt(s[0]._tokenKey)})}var gQt={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},wat="comm",Cat="rule",Iat="decl",pQt="@import",vQt="@keyframes",mQt="@layer",Eat=Math.abs,IEe=String.fromCharCode;function Bat(e){return e.trim()}function oK(e,t,r){return e.replace(t,r)}function yQt(e,t,r){return e.indexOf(t,r)}function LO(e,t){return e.charCodeAt(t)|0}function P9(e,t,r){return e.slice(t,r)}function Ow(e){return e.length}function bQt(e){return e.length}function Lj(e,t){return t.push(e),e}var nJ=1,U9=1,xat=0,Dy=0,td=0,L7="";function EEe(e,t,r,n,i,a,o,s){return{value:e,root:t,parent:r,type:n,props:i,children:a,line:nJ,column:U9,length:o,return:"",siblings:s}}function wQt(){return td}function CQt(){return td=Dy>0?LO(L7,--Dy):0,U9--,td===10&&(U9=1,nJ--),td}function qb(){return td=Dy2||PO(td)>3?"":" "}function xQt(e,t){for(;--t&&qb()&&!(td<48||td>102||td>57&&td<65||td>70&&td<97););return iJ(e,sK()+(t<6&&I3()==32&&qb()==32))}function H1e(e){for(;qb();)switch(td){case e:return Dy;case 34:case 39:e!==34&&e!==39&&H1e(td);break;case 40:e===41&&H1e(e);break;case 92:qb();break}return Dy}function SQt(e,t){for(;qb()&&e+td!==57;)if(e+td===84&&I3()===47)break;return"/*"+iJ(t,Dy-1)+"*"+IEe(e===47?e:qb())}function kQt(e){for(;!PO(I3());)qb();return iJ(e,Dy)}function QQt(e){return EQt(lK("",null,null,null,[""],e=IQt(e),0,[0],e))}function lK(e,t,r,n,i,a,o,s,l){for(var u=0,c=0,A=o,f=0,h=0,g=0,p=1,m=1,b=1,C=0,E="",_=i,F=a,M=n,N=E;m;)switch(g=C,C=qb()){case 40:if(g!=108&&LO(N,A-1)==58){yQt(N+=oK(Cae(C),"&","&\f"),"&\f",Eat(u?s[u-1]:0))!=-1&&(b=-1);break}case 34:case 39:case 91:N+=Cae(C);break;case 9:case 10:case 13:case 32:N+=BQt(g);break;case 92:N+=xQt(sK()-1,7);continue;case 47:switch(I3()){case 42:case 47:Lj(_Qt(SQt(qb(),sK()),t,r,l),l),(PO(g||1)==5||PO(I3()||1)==5)&&Ow(N)&&P9(N,-1,void 0)!==" "&&(N+=" ");break;default:N+="/"}break;case 123*p:s[u++]=Ow(N)*b;case 125*p:case 59:case 0:switch(C){case 0:case 125:m=0;case 59+c:b==-1&&(N=oK(N,/\f/g,"")),h>0&&(Ow(N)-A||p===0&&g===47)&&Lj(h>32?S_e(N+";",n,r,A-1,l):S_e(oK(N," ","")+";",n,r,A-2,l),l);break;case 59:N+=";";default:if(Lj(M=x_e(N,t,r,u,c,i,s,E,_=[],F=[],A,a),a),C===123)if(c===0)lK(N,t,M,M,_,a,A,s,F);else switch(f===99&&LO(N,3)===110?100:f){case 100:case 108:case 109:case 115:lK(e,M,M,n&&Lj(x_e(e,M,M,0,0,i,s,E,i,_=[],A,F),F),i,F,A,s,n?_:F);break;default:lK(N,M,M,M,[""],F,0,s,F)}}u=c=h=0,p=b=1,E=N="",A=o;break;case 58:A=1+Ow(N),h=g;default:if(p<1){if(C==123)--p;else if(C==125&&p++==0&&CQt()==125)continue}switch(N+=IEe(C),C*p){case 38:b=c>0?1:(N+="\f",-1);break;case 44:s[u++]=(Ow(N)-1)*b,b=1;break;case 64:I3()===45&&(N+=Cae(qb())),f=I3(),c=A=Ow(E=N+=kQt(sK())),C++;break;case 45:g===45&&Ow(N)==2&&(p=0)}}return a}function x_e(e,t,r,n,i,a,o,s,l,u,c,A){for(var f=i-1,h=i===0?a:[""],g=bQt(h),p=0,m=0,b=0;p0?h[C]+" "+E:oK(E,/&\f/g,h[C])))&&(l[b++]=_);return EEe(e,t,r,i===0?Cat:s,l,u,c,A)}function _Qt(e,t,r,n){return EEe(e,t,r,wat,IEe(wQt()),P9(e,2,-2),0,n)}function S_e(e,t,r,n,i){return EEe(e,t,r,Iat,P9(e,0,n),P9(e,n+1,-1),n,i)}function j1e(e,t){for(var r="",n=0;n{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 T_e=new Set,G1e=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{root:r,injectHash:n,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=[]}=t;let A="",f={};function h(m){const b=m.getName(a);if(!f[b]){const[C]=G1e(m.style,t,{root:!1,parentSelectors:i});f[b]=`@keyframes ${m.getName(a)}${C}`}}function g(m){let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return m.forEach(C=>{Array.isArray(C)?g(C,b):C&&b.push(C)}),b}if(g(Array.isArray(e)?e:[e]).forEach(m=>{const b=typeof m=="string"&&!r?{}:m;if(typeof b=="string")A+=`${b} `;else if(b._keyframe)h(b);else{const C=u.reduce((E,_)=>{var F;return((F=_==null?void 0:_.visit)===null||F===void 0?void 0:F.call(_,E))||E},b);Object.keys(C).forEach(E=>{var _;const F=C[E];if(typeof F=="object"&&F&&(E!=="animationName"||!F._keyframe)&&!OQt(F)){let M=!1,N=E.trim(),P=!1;(r||n)&&a?N.startsWith("@")?M=!0:N=NQt(E,a,l):r&&!a&&(N==="&"||N==="")&&(N="",P=!0);const[j,z]=G1e(F,t,{root:P,injectHash:M,parentSelectors:[...i,N]});f=$e($e({},f),z),A+=`${N}${j}`}else{const M=(_=F==null?void 0:F.value)!==null&&_!==void 0?_:F,N=E.replace(/[A-Z]/g,j=>`-${j.toLowerCase()}`);let P=M;!gQt[E]&&typeof P=="number"&&P!==0&&(P=`${P}px`),E==="animationName"&&(F!=null&&F._keyframe)&&(h(F),P=F.getName(a)),A+=`${N}:${P};`}})}}),!r)A=`{${A}}`;else if(o&&uQt()){const m=o.split(",");A=`@layer ${m[m.length-1].trim()} {${A}}`,m.length>1&&(A=`@layer ${o}{%%%:%}${A}`)}return[A,f]};function LQt(e,t){return bEe(`${e.join("%")}${t}`)}function $1e(e,t){const r=CEe(),n=vt(()=>e.value.token._tokenKey),i=vt(()=>[n.value,...e.value.path]);let a=Q_e;return gat("style",i,()=>{const o=t(),{hashPriority:s,container:l,transformers:u,linters:c}=r.value,{path:A,hashId:f,layer:h}=e.value,[g,p]=G1e(o,{hashId:f,hashPriority:s,layer:h,path:A.join("-"),transformers:u,linters:c}),m=__e(g),b=LQt(i.value,m);if(a){const C=NO(m,b,{mark:l9,prepend:"queue",attachTo:l});C[_M]=iW,C.setAttribute(fat,n.value),Object.keys(p).forEach(E=>{T_e.has(E)||(T_e.add(E),NO(__e(p[E]),`_effect-${E}`,{mark:l9,prepend:"queue",attachTo:l}))})}return[m,n.value,b]},(o,s)=>{let[,,l]=o;(s||r.value.autoClear)&&Q_e&&aW(l,{mark:l9})}),o=>o}class vl{constructor(t,r){this._keyframe=!0,this.name=t,this.style=r}getName(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return t?`${t}-${this.name}`:this.name}}function PQt(e,t){if(e.length!==t.length)return!1;for(let r=0;r1&&arguments[1]!==void 0?arguments[1]:!1,n={map:this.cache};return t.forEach(i=>{var a;n?n=(a=n==null?void 0:n.map)===null||a===void 0?void 0:a.get(i):n=void 0}),n!=null&&n.value&&r&&(n.value[1]=this.cacheCallTimes++),n==null?void 0:n.value}get(t){var r;return(r=this.internalGet(t,!0))===null||r===void 0?void 0:r[0]}has(t){return!!this.internalGet(t)}set(t,r){if(!this.has(t)){if(this.size()+1>H9.MAX_CACHE_SIZE+H9.MAX_CACHE_OFFSET){const[i]=this.keys.reduce((a,o)=>{const[,s]=a;return this.internalGet(o)[1]{if(a===t.length-1)n.set(i,{value:[r,this.cacheCallTimes++]});else{const o=n.get(i);o?o.map||(o.map=new Map):n.set(i,{map:new Map}),n=n.get(i).map}})}deleteByPath(t,r){var n;const i=t.get(r[0]);if(r.length===1)return i.map?t.set(r[0],{map:i.map}):t.delete(r[0]),(n=i.value)===null||n===void 0?void 0:n[0];const a=this.deleteByPath(i.map,r.slice(1));return(!i.map||i.map.size===0)&&!i.value&&t.delete(r[0]),a}delete(t){if(this.has(t))return this.keys=this.keys.filter(r=>!PQt(r,t)),this.deleteByPath(this.cache,t)}}H9.MAX_CACHE_SIZE=20;H9.MAX_CACHE_OFFSET=5;function UQt(){}let vB=UQt,D_e=0;class HQt{constructor(t){this.derivatives=Array.isArray(t)?t:[t],this.id=D_e,t.length===0&&vB(t.length>0),D_e+=1}getDerivativeToken(t){return this.derivatives.reduce((r,n)=>n(t,r),void 0)}}const Iae=new H9;function kat(e){const t=Array.isArray(e)?e:[e];return Iae.has(t)||Iae.set(t,new HQt(t)),Iae.get(t)}function __(e){return e.notSplit=!0,e}__(["borderTop","borderBottom"]),__(["borderTop"]),__(["borderBottom"]),__(["borderLeft","borderRight"]),__(["borderLeft"]),__(["borderRight"]);const jQt="4.0.0-rc.6",UO=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"];function Zg(e,t){GQt(e)&&(e="100%");var r=$Qt(e);return e=t===360?e:Math.min(t,Math.max(0,parseFloat(e))),r&&(e=parseInt(String(e*t),10)/100),Math.abs(e-t)<1e-6?1:(t===360?e=(e<0?e%t+t:e%t)/parseFloat(String(t)):e=e%t/parseFloat(String(t)),e)}function Pj(e){return Math.min(1,Math.max(0,e))}function GQt(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function $Qt(e){return typeof e=="string"&&e.indexOf("%")!==-1}function Qat(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Uj(e){return e<=1?"".concat(Number(e)*100,"%"):e}function mk(e){return e.length===1?"0"+e:String(e)}function zQt(e,t,r){return{r:Zg(e,255)*255,g:Zg(t,255)*255,b:Zg(r,255)*255}}function F_e(e,t,r){e=Zg(e,255),t=Zg(t,255),r=Zg(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),a=0,o=0,s=(n+i)/2;if(n===i)o=0,a=0;else{var l=n-i;switch(o=s>.5?l/(2-n-i):l/(n+i),n){case e:a=(t-r)/l+(t1&&(r-=1),r<1/6?e+(t-e)*(6*r):r<1/2?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function KQt(e,t,r){var n,i,a;if(e=Zg(e,360),t=Zg(t,100),r=Zg(r,100),t===0)i=r,a=r,n=r;else{var o=r<.5?r*(1+t):r+t-r*t,s=2*r-o;n=Eae(s,o,e+1/3),i=Eae(s,o,e),a=Eae(s,o,e-1/3)}return{r:n*255,g:i*255,b:a*255}}function z1e(e,t,r){e=Zg(e,255),t=Zg(t,255),r=Zg(r,255);var n=Math.max(e,t,r),i=Math.min(e,t,r),a=0,o=n,s=n-i,l=n===0?0:s/n;if(n===i)a=0;else{switch(n){case e:a=(t-r)/s+(t>16,g:(e&65280)>>8,b:e&255}}var V1e={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 D8(e){var t={r:0,g:0,b:0},r=1,n=null,i=null,a=null,o=!1,s=!1;return typeof e=="string"&&(e=ZQt(e)),typeof e=="object"&&(VI(e.r)&&VI(e.g)&&VI(e.b)?(t=zQt(e.r,e.g,e.b),o=!0,s=String(e.r).substr(-1)==="%"?"prgb":"rgb"):VI(e.h)&&VI(e.s)&&VI(e.v)?(n=Uj(e.s),i=Uj(e.v),t=VQt(e.h,n,i),o=!0,s="hsv"):VI(e.h)&&VI(e.s)&&VI(e.l)&&(n=Uj(e.s),a=Uj(e.l),t=KQt(e.h,n,a),o=!0,s="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(r=e.a)),r=Qat(r),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:r}}var JQt="[-\\+]?\\d+%?",XQt="[-\\+]?\\d*\\.\\d+%?",E3="(?:".concat(XQt,")|(?:").concat(JQt,")"),Bae="[\\s|\\(]+(".concat(E3,")[,|\\s]+(").concat(E3,")[,|\\s]+(").concat(E3,")\\s*\\)?"),xae="[\\s|\\(]+(".concat(E3,")[,|\\s]+(").concat(E3,")[,|\\s]+(").concat(E3,")[,|\\s]+(").concat(E3,")\\s*\\)?"),kb={CSS_UNIT:new RegExp(E3),rgb:new RegExp("rgb"+Bae),rgba:new RegExp("rgba"+xae),hsl:new RegExp("hsl"+Bae),hsla:new RegExp("hsla"+xae),hsv:new RegExp("hsv"+Bae),hsva:new RegExp("hsva"+xae),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 ZQt(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var t=!1;if(V1e[e])e=V1e[e],t=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var r=kb.rgb.exec(e);return r?{r:r[1],g:r[2],b:r[3]}:(r=kb.rgba.exec(e),r?{r:r[1],g:r[2],b:r[3],a:r[4]}:(r=kb.hsl.exec(e),r?{h:r[1],s:r[2],l:r[3]}:(r=kb.hsla.exec(e),r?{h:r[1],s:r[2],l:r[3],a:r[4]}:(r=kb.hsv.exec(e),r?{h:r[1],s:r[2],v:r[3]}:(r=kb.hsva.exec(e),r?{h:r[1],s:r[2],v:r[3],a:r[4]}:(r=kb.hex8.exec(e),r?{r:Um(r[1]),g:Um(r[2]),b:Um(r[3]),a:R_e(r[4]),format:t?"name":"hex8"}:(r=kb.hex6.exec(e),r?{r:Um(r[1]),g:Um(r[2]),b:Um(r[3]),format:t?"name":"hex"}:(r=kb.hex4.exec(e),r?{r:Um(r[1]+r[1]),g:Um(r[2]+r[2]),b:Um(r[3]+r[3]),a:R_e(r[4]+r[4]),format:t?"name":"hex8"}:(r=kb.hex3.exec(e),r?{r:Um(r[1]+r[1]),g:Um(r[2]+r[2]),b:Um(r[3]+r[3]),format:t?"name":"hex"}:!1)))))))))}function VI(e){return!!kb.CSS_UNIT.exec(String(e))}var Rc=function(){function e(t,r){t===void 0&&(t=""),r===void 0&&(r={});var n;if(t instanceof e)return t;typeof t=="number"&&(t=qQt(t)),this.originalInput=t;var i=D8(t);this.originalInput=t,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=(n=r.format)!==null&&n!==void 0?n:i.format,this.gradientType=r.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 e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var t=this.toRgb();return(t.r*299+t.g*587+t.b*114)/1e3},e.prototype.getLuminance=function(){var t=this.toRgb(),r,n,i,a=t.r/255,o=t.g/255,s=t.b/255;return a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),o<=.03928?n=o/12.92:n=Math.pow((o+.055)/1.055,2.4),s<=.03928?i=s/12.92:i=Math.pow((s+.055)/1.055,2.4),.2126*r+.7152*n+.0722*i},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(t){return this.a=Qat(t),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var t=this.toHsl().s;return t===0},e.prototype.toHsv=function(){var t=z1e(this.r,this.g,this.b);return{h:t.h*360,s:t.s,v:t.v,a:this.a}},e.prototype.toHsvString=function(){var t=z1e(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.v*100);return this.a===1?"hsv(".concat(r,", ").concat(n,"%, ").concat(i,"%)"):"hsva(".concat(r,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var t=F_e(this.r,this.g,this.b);return{h:t.h*360,s:t.s,l:t.l,a:this.a}},e.prototype.toHslString=function(){var t=F_e(this.r,this.g,this.b),r=Math.round(t.h*360),n=Math.round(t.s*100),i=Math.round(t.l*100);return this.a===1?"hsl(".concat(r,", ").concat(n,"%, ").concat(i,"%)"):"hsla(".concat(r,", ").concat(n,"%, ").concat(i,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(t){return t===void 0&&(t=!1),K1e(this.r,this.g,this.b,t)},e.prototype.toHexString=function(t){return t===void 0&&(t=!1),"#"+this.toHex(t)},e.prototype.toHex8=function(t){return t===void 0&&(t=!1),WQt(this.r,this.g,this.b,this.a,t)},e.prototype.toHex8String=function(t){return t===void 0&&(t=!1),"#"+this.toHex8(t)},e.prototype.toHexShortString=function(t){return t===void 0&&(t=!1),this.a===1?this.toHexString(t):this.toHex8String(t)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var t=Math.round(this.r),r=Math.round(this.g),n=Math.round(this.b);return this.a===1?"rgb(".concat(t,", ").concat(r,", ").concat(n,")"):"rgba(".concat(t,", ").concat(r,", ").concat(n,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var t=function(r){return"".concat(Math.round(Zg(r,255)*100),"%")};return{r:t(this.r),g:t(this.g),b:t(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var t=function(r){return Math.round(Zg(r,255)*100)};return this.a===1?"rgb(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%)"):"rgba(".concat(t(this.r),"%, ").concat(t(this.g),"%, ").concat(t(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return!1;for(var t="#"+K1e(this.r,this.g,this.b,!1),r=0,n=Object.entries(V1e);r=0,a=!r&&i&&(t.startsWith("hex")||t==="name");return a?t==="name"&&this.a===0?this.toName():this.toRgbString():(t==="rgb"&&(n=this.toRgbString()),t==="prgb"&&(n=this.toPercentageRgbString()),(t==="hex"||t==="hex6")&&(n=this.toHexString()),t==="hex3"&&(n=this.toHexString(!0)),t==="hex4"&&(n=this.toHex8String(!0)),t==="hex8"&&(n=this.toHex8String()),t==="name"&&(n=this.toName()),t==="hsl"&&(n=this.toHslString()),t==="hsv"&&(n=this.toHsvString()),n||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l+=t/100,r.l=Pj(r.l),new e(r)},e.prototype.brighten=function(t){t===void 0&&(t=10);var r=this.toRgb();return r.r=Math.max(0,Math.min(255,r.r-Math.round(255*-(t/100)))),r.g=Math.max(0,Math.min(255,r.g-Math.round(255*-(t/100)))),r.b=Math.max(0,Math.min(255,r.b-Math.round(255*-(t/100)))),new e(r)},e.prototype.darken=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.l-=t/100,r.l=Pj(r.l),new e(r)},e.prototype.tint=function(t){return t===void 0&&(t=10),this.mix("white",t)},e.prototype.shade=function(t){return t===void 0&&(t=10),this.mix("black",t)},e.prototype.desaturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s-=t/100,r.s=Pj(r.s),new e(r)},e.prototype.saturate=function(t){t===void 0&&(t=10);var r=this.toHsl();return r.s+=t/100,r.s=Pj(r.s),new e(r)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var r=this.toHsl(),n=(r.h+t)%360;return r.h=n<0?360+n:n,new e(r)},e.prototype.mix=function(t,r){r===void 0&&(r=50);var n=this.toRgb(),i=new e(t).toRgb(),a=r/100,o={r:(i.r-n.r)*a+n.r,g:(i.g-n.g)*a+n.g,b:(i.b-n.b)*a+n.b,a:(i.a-n.a)*a+n.a};return new e(o)},e.prototype.analogous=function(t,r){t===void 0&&(t=6),r===void 0&&(r=30);var n=this.toHsl(),i=360/r,a=[this];for(n.h=(n.h-(i*t>>1)+720)%360;--t;)n.h=(n.h+i)%360,a.push(new e(n));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){t===void 0&&(t=6);for(var r=this.toHsv(),n=r.h,i=r.s,a=r.v,o=[],s=1/t;t--;)o.push(new e({h:n,s:i,v:a})),a=(a+s)%1;return o},e.prototype.splitcomplement=function(){var t=this.toHsl(),r=t.h;return[this,new e({h:(r+72)%360,s:t.s,l:t.l}),new e({h:(r+216)%360,s:t.s,l:t.l})]},e.prototype.onBackground=function(t){var r=this.toRgb(),n=new e(t).toRgb(),i=r.a+n.a*(1-r.a);return new e({r:(r.r*r.a+n.r*n.a*(1-r.a))/i,g:(r.g*r.a+n.g*n.a*(1-r.a))/i,b:(r.b*r.a+n.b*n.a*(1-r.a))/i,a:i})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var r=this.toHsl(),n=r.h,i=[this],a=360/t,o=1;o=60&&Math.round(e.h)<=240?n=r?Math.round(e.h)-Hj*t:Math.round(e.h)+Hj*t:n=r?Math.round(e.h)+Hj*t:Math.round(e.h)-Hj*t,n<0?n+=360:n>=360&&(n-=360),n}function L_e(e,t,r){if(e.h===0&&e.s===0)return e.s;var n;return r?n=e.s-M_e*t:t===Tat?n=e.s+M_e:n=e.s+e_t*t,n>1&&(n=1),r&&t===_at&&n>.1&&(n=.1),n<.06&&(n=.06),Number(n.toFixed(2))}function P_e(e,t,r){var n;return r?n=e.v+t_t*t:n=e.v-r_t*t,n>1&&(n=1),Number(n.toFixed(2))}function d5(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=[],n=D8(e),i=_at;i>0;i-=1){var a=O_e(n),o=jj(D8({h:N_e(a,i,!0),s:L_e(a,i,!0),v:P_e(a,i,!0)}));r.push(o)}r.push(jj(n));for(var s=1;s<=Tat;s+=1){var l=O_e(n),u=jj(D8({h:N_e(l,s),s:L_e(l,s),v:P_e(l,s)}));r.push(u)}return t.theme==="dark"?n_t.map(function(c){var A=c.index,f=c.opacity,h=jj(i_t(D8(t.backgroundColor||"#141414"),D8(r[A]),f*100));return h}):r}var u9={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"},uK={},Sae={};Object.keys(u9).forEach(function(e){uK[e]=d5(u9[e]),uK[e].primary=uK[e][5],Sae[e]=d5(u9[e],{theme:"dark",backgroundColor:"#141414"}),Sae[e].primary=Sae[e][5]});var a_t=uK.blue;const o_t=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function s_t(e){const{sizeUnit:t,sizeStep:r}=e;return{sizeXXL:t*(r+8),sizeXL:t*(r+4),sizeLG:t*(r+2),sizeMD:t*(r+1),sizeMS:t*r,size:t*r,sizeSM:t*(r-1),sizeXS:t*(r-2),sizeXXS:t*(r-3)}}const Dat={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"},aJ=$e($e({},Dat),{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 l_t(e,t){let{generateColorPalettes:r,generateNeutralColorPalettes:n}=t;const{colorSuccess:i,colorWarning:a,colorError:o,colorInfo:s,colorPrimary:l,colorBgBase:u,colorTextBase:c}=e,A=r(l),f=r(i),h=r(a),g=r(o),p=r(s),m=n(u,c);return $e($e({},m),{colorPrimaryBg:A[1],colorPrimaryBgHover:A[2],colorPrimaryBorder:A[3],colorPrimaryBorderHover:A[4],colorPrimaryHover:A[5],colorPrimary:A[6],colorPrimaryActive:A[7],colorPrimaryTextHover:A[8],colorPrimaryText:A[9],colorPrimaryTextActive:A[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[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:p[1],colorInfoBgHover:p[2],colorInfoBorder:p[3],colorInfoBorderHover:p[4],colorInfoHover:p[4],colorInfo:p[6],colorInfoActive:p[7],colorInfoTextHover:p[8],colorInfoText:p[9],colorInfoTextActive:p[10],colorBgMask:new Rc("#000").setAlpha(.45).toRgbString(),colorWhite:"#fff"})}const u_t=e=>{let t=e,r=e,n=e,i=e;return e<6&&e>=5?t=e+1:e<16&&e>=6?t=e+2:e>=16&&(t=16),e<7&&e>=5?r=4:e<8&&e>=7?r=5:e<14&&e>=8?r=6:e<16&&e>=14?r=7:e>=16&&(r=8),e<6&&e>=2?n=1:e>=6&&(n=2),e>4&&e<8?i=4:e>=8&&(i=6),{borderRadius:e>16?16:e,borderRadiusXS:n,borderRadiusSM:r,borderRadiusLG:t,borderRadiusOuter:i}};function c_t(e){const{motionUnit:t,motionBase:r,borderRadius:n,lineWidth:i}=e;return $e({motionDurationFast:`${(r+t).toFixed(1)}s`,motionDurationMid:`${(r+t*2).toFixed(1)}s`,motionDurationSlow:`${(r+t*3).toFixed(1)}s`,lineWidthBold:i+1},u_t(n))}const WI=(e,t)=>new Rc(e).setAlpha(t).toRgbString(),_F=(e,t)=>new Rc(e).darken(t).toHexString(),A_t=e=>{const t=d5(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},f_t=(e,t)=>{const r=e||"#fff",n=t||"#000";return{colorBgBase:r,colorTextBase:n,colorText:WI(n,.88),colorTextSecondary:WI(n,.65),colorTextTertiary:WI(n,.45),colorTextQuaternary:WI(n,.25),colorFill:WI(n,.15),colorFillSecondary:WI(n,.06),colorFillTertiary:WI(n,.04),colorFillQuaternary:WI(n,.02),colorBgLayout:_F(r,4),colorBgContainer:_F(r,0),colorBgElevated:_F(r,0),colorBgSpotlight:WI(n,.85),colorBorder:_F(r,15),colorBorderSecondary:_F(r,6)}};function h_t(e){const t=new Array(10).fill(null).map((r,n)=>{const i=n-1,a=e*Math.pow(2.71828,i/5),o=n>1?Math.floor(a):Math.ceil(a);return Math.floor(o/2)*2});return t[1]=e,t.map(r=>{const n=r+8;return{size:r,lineHeight:n/r}})}const d_t=e=>{const t=h_t(e),r=t.map(i=>i.size),n=t.map(i=>i.lineHeight);return{fontSizeSM:r[0],fontSize:r[1],fontSizeLG:r[2],fontSizeXL:r[3],fontSizeHeading1:r[6],fontSizeHeading2:r[5],fontSizeHeading3:r[4],fontSizeHeading4:r[3],fontSizeHeading5:r[2],lineHeight:n[1],lineHeightLG:n[2],lineHeightSM:n[0],lineHeightHeading1:n[6],lineHeightHeading2:n[5],lineHeightHeading3:n[4],lineHeightHeading4:n[3],lineHeightHeading5:n[2]}};function g_t(e){const t=Object.keys(Dat).map(r=>{const n=d5(e[r]);return new Array(10).fill(1).reduce((i,a,o)=>(i[`${r}-${o+1}`]=n[o],i),{})}).reduce((r,n)=>(r=$e($e({},r),n),r),{});return $e($e($e($e($e($e($e({},e),t),l_t(e,{generateColorPalettes:A_t,generateNeutralColorPalettes:f_t})),d_t(e.fontSize)),s_t(e)),o_t(e)),c_t(e))}function kae(e){return e>=0&&e<=255}function Gj(e,t){const{r,g:n,b:i,a}=new Rc(e).toRgb();if(a<1)return e;const{r:o,g:s,b:l}=new Rc(t).toRgb();for(let u=.01;u<=1;u+=.01){const c=Math.round((r-o*(1-u))/u),A=Math.round((n-s*(1-u))/u),f=Math.round((i-l*(1-u))/u);if(kae(c)&&kae(A)&&kae(f))return new Rc({r:c,g:A,b:f,a:Math.round(u*100)/100}).toRgbString()}return new Rc({r,g:n,b:i,a:1}).toRgbString()}var p_t=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{delete n[h]});const i=$e($e({},r),n),a=480,o=576,s=768,l=992,u=1200,c=1600,A=2e3;return $e($e($e({},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:Gj(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:Gj(i.colorErrorBg,i.colorBgContainer),colorWarningOutline:Gj(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:Gj(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:A-1,screenXXXL:A,screenXXXLMin:A,boxShadowPopoverArrow:"3px 3px 7px rgba(0, 0, 0, 0.1)",boxShadowCard:` 0 1px 2px -2px ${new Rc("rgba(0, 0, 0, 0.16)").toRgbString()}, 0 3px 6px 0 ${new Rc("rgba(0, 0, 0, 0.12)").toRgbString()}, 0 5px 12px 4px ${new Rc("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)"}),n)}const m_t=e=>({color:e.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:focus, &:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive}}),xEe=(e,t,r,n,i)=>{const a=e/2,o=a-r*(Math.sqrt(2)-1),s=a,l=a+r*(1-1/Math.sqrt(2)),u=a-r*(1-1/Math.sqrt(2)),c=2*a-t*(1/Math.sqrt(2)),A=t*(1/Math.sqrt(2)),f=4*a-c,h=A,g=4*a-l,p=u,m=4*a-o,b=s;return{borderRadius:{_skip_check_:!0,value:`0 0 ${t}px`},pointerEvents:"none",width:e*2,height:e*2,overflow:"hidden","&::after":{content:'""',position:"absolute",width:e/Math.sqrt(2),height:e/Math.sqrt(2),bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${t}px 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:i,zIndex:0,background:"transparent"},"&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:e*2,height:e/2,background:n,clipPath:`path('M ${o} ${s} A ${r} ${r} 0 0 0 ${l} ${u} L ${c} ${A} A ${t} ${t} 0 0 1 ${f} ${h} L ${g} ${p} A ${r} ${r} 0 0 0 ${m} ${b} Z')`,content:'""'}}};function Fat(e,t){return UO.reduce((r,n)=>{const i=e[`${n}-1`],a=e[`${n}-3`],o=e[`${n}-6`],s=e[`${n}-7`];return $e($e({},r),t(n,{lightColor:i,lightBorderColor:a,darkColor:o,textColor:s}))},{})}const qE={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},gu=e=>({boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:e.fontFamily}),vL=()=>({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"}}),y6=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),y_t=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active,\n &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),b_t=(e,t)=>{const{fontFamily:r,fontSize:n}=e,i=`[class^="${t}"], [class*=" ${t}"]`;return{[i]:{fontFamily:r,fontSize:n,boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"},[i]:{boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}}}}},JE=e=>({outline:`${e.lineWidthBold}px solid ${e.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),g5=e=>({"&:focus-visible":$e({},JE(e))});function Gu(e,t,r){return n=>{const i=vt(()=>n==null?void 0:n.value),[a,o,s]=P7(),{getPrefixCls:l,iconPrefixCls:u}=yEe(),c=vt(()=>l()),A=vt(()=>({theme:a.value,token:o.value,hashId:s.value,path:["Shared",c.value]}));$1e(A,()=>[{"&":y_t(o.value)}]);const f=vt(()=>({theme:a.value,token:o.value,hashId:s.value,path:[e,i.value,u.value]}));return[$1e(f,()=>{const{token:h,flush:g}=C_t(o.value),p=typeof r=="function"?r(h):r,m=$e($e({},p),o.value[e]),b=`.${i.value}`,C=Al(h,{componentCls:b,prefixCls:i.value,iconCls:`.${u.value}`,antCls:`.${c.value}`},m),E=t(C,{hashId:s.value,prefixCls:i.value,rootPrefixCls:c.value,iconPrefixCls:u.value,overrideComponentToken:o.value[e]});return g(e,m),[b_t(o.value,i.value),E]}),s]}}const Rat=typeof CSSINJS_STATISTIC<"u";let W1e=!0;function Al(){for(var e=arguments.length,t=new Array(e),r=0;r{Object.keys(i).forEach(o=>{Object.defineProperty(n,o,{configurable:!0,enumerable:!0,get:()=>i[o]})})}),W1e=!0,n}function w_t(){}function C_t(e){let t,r=e,n=w_t;return Rat&&(t=new Set,r=new Proxy(e,{get(i,a){return W1e&&t.add(a),i[a]}}),n=(i,a)=>{Array.from(t)}),{token:r,keys:t,flush:n}}function SEe(e){if(!kh(e))return uc(e);const t=new Proxy({},{get(r,n,i){return Reflect.get(e.value,n,i)},set(r,n,i){return e.value[n]=i,!0},deleteProperty(r,n){return Reflect.deleteProperty(e.value,n)},has(r,n){return Reflect.has(e.value,n)},ownKeys(){return Object.keys(e.value)},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}}});return uc(t)}const I_t=kat(g_t),Mat={token:aJ,hashed:!0},Oat=Symbol("DesignTokenContext"),Nat=Hn(),E_t=e=>{Es(Oat,e),ks(()=>{Nat.value=e})},B_t=$n({props:{value:To()},setup(e,t){let{slots:r}=t;return E_t(SEe(vt(()=>e.value))),()=>{var n;return(n=r.default)===null||n===void 0?void 0:n.call(r)}}});function P7(){const e=Wo(Oat,Nat.value||Mat),t=vt(()=>`${jQt}-${e.hashed||""}`),r=vt(()=>e.theme||I_t),n=dQt(r,vt(()=>[aJ,e.token]),vt(()=>({salt:t.value,override:$e({override:e.token},e.components),formatToken:v_t})));return[r,vt(()=>n.value[0]),vt(()=>e.hashed?n.value[1]:"")]}const Lat=$n({compatConfig:{MODE:3},setup(){const[,e]=P7(),t=vt(()=>new Rc(e.value.colorBgBase).toHsl().l<.5?{opacity:.65}:{});return()=>De("svg",{style:t.value,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},[De("g",{fill:"none","fill-rule":"evenodd"},[De("g",{transform:"translate(24 31.67)"},[De("ellipse",{"fill-opacity":".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"},null),De("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),De("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),De("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),De("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)]),De("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),De("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},[De("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"},null),De("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"},null)])])])}});Lat.PRESENTED_IMAGE_DEFAULT=!0;const Pat=$n({compatConfig:{MODE:3},setup(){const[,e]=P7(),t=vt(()=>{const{colorFill:r,colorFillTertiary:n,colorFillQuaternary:i,colorBgContainer:a}=e.value;return{borderColor:new Rc(r).onBackground(a).toHexString(),shadowColor:new Rc(n).onBackground(a).toHexString(),contentColor:new Rc(i).onBackground(a).toHexString()}});return()=>De("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},[De("g",{transform:"translate(0 1)",fill:"none","fill-rule":"evenodd"},[De("ellipse",{fill:t.value.shadowColor,cx:"32",cy:"33",rx:"32",ry:"7"},null),De("g",{"fill-rule":"nonzero",stroke:t.value.borderColor},[De("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),De("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:t.value.contentColor},null)])])])}});Pat.PRESENTED_IMAGE_SIMPLE=!0;const x_t=e=>{const{componentCls:t,margin:r,marginXS:n,marginXL:i,fontSize:a,lineHeight:o}=e;return{[t]:{marginInline:n,fontSize:a,lineHeight:o,textAlign:"center",[`${t}-image`]:{height:e.emptyImgHeight,marginBottom:n,opacity:e.opacityImage,img:{height:"100%"},svg:{height:"100%",margin:"auto"}},[`${t}-footer`]:{marginTop:r},"&-normal":{marginBlock:i,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:n,color:e.colorTextDisabled,[`${t}-image`]:{height:e.emptyImgHeightSM}}}}},S_t=Gu("Empty",e=>{const{componentCls:t,controlHeightLG:r}=e,n=Al(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r*2.5,emptyImgHeightMD:r,emptyImgHeightSM:r*.875});return[x_t(n)]});var k_t=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i({prefixCls:String,imageStyle:To(),image:Wf(),description:Wf()}),kEe=$n({name:"AEmpty",compatConfig:{MODE:3},inheritAttrs:!1,props:Q_t(),setup(e,t){let{slots:r={},attrs:n}=t;const{direction:i,prefixCls:a}=gs("empty",e),[o,s]=S_t(a);return()=>{var l,u;const c=a.value,A=$e($e({},e),n),{image:f=((l=r.image)===null||l===void 0?void 0:l.call(r))||Uat,description:h=((u=r.description)===null||u===void 0?void 0:u.call(r))||void 0,imageStyle:g,class:p=""}=A,m=k_t(A,["image","description","imageStyle","class"]);return o(De(Aat,{componentName:"Empty",children:b=>{const C=typeof h<"u"?h:b.description,E=typeof C=="string"?C:"empty";let _=null;return typeof f=="string"?_=De("img",{alt:E,src:f},null):_=f,De("div",Ot({class:Vn(c,p,s.value,{[`${c}-normal`]:f===Hat,[`${c}-rtl`]:i.value==="rtl"})},m),[De("div",{class:`${c}-image`,style:g},[_]),C&&De("p",{class:`${c}-description`},[C]),r.default&&De("div",{class:`${c}-footer`},[Cg(r.default())])])}},null))}}});kEe.PRESENTED_IMAGE_DEFAULT=Uat;kEe.PRESENTED_IMAGE_SIMPLE=Hat;const ak=Ly(kEe),QEe=e=>{const{prefixCls:t}=gs("empty",e);return(n=>{switch(n){case"Table":case"List":return De(ak,{image:ak.PRESENTED_IMAGE_SIMPLE},null);case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return De(ak,{image:ak.PRESENTED_IMAGE_SIMPLE,class:`${t.value}-small`},null);default:return De(ak,null,null)}})(e.componentName)};function __t(e){return De(QEe,{componentName:e},null)}const jat=Symbol("SizeContextKey"),Gat=()=>Wo(jat,Hn(void 0)),$at=e=>{const t=Gat();return Es(jat,vt(()=>e.value||t.value)),e},gs=(e,t)=>{const r=Gat(),n=hC(),i=Wo(mEe,$e($e({},oat),{renderEmpty:M=>WE(QEe,{componentName:M})})),a=vt(()=>i.getPrefixCls(e,t.prefixCls)),o=vt(()=>{var M,N;return(M=t.direction)!==null&&M!==void 0?M:(N=i.direction)===null||N===void 0?void 0:N.value}),s=vt(()=>{var M;return(M=t.iconPrefixCls)!==null&&M!==void 0?M:i.iconPrefixCls.value}),l=vt(()=>i.getPrefixCls()),u=vt(()=>{var M;return(M=i.autoInsertSpaceInButton)===null||M===void 0?void 0:M.value}),c=i.renderEmpty,A=i.space,f=i.pageHeader,h=i.form,g=vt(()=>{var M,N;return(M=t.getTargetContainer)!==null&&M!==void 0?M:(N=i.getTargetContainer)===null||N===void 0?void 0:N.value}),p=vt(()=>{var M,N;return(M=t.getPopupContainer)!==null&&M!==void 0?M:(N=i.getPopupContainer)===null||N===void 0?void 0:N.value}),m=vt(()=>{var M,N;return(M=t.dropdownMatchSelectWidth)!==null&&M!==void 0?M:(N=i.dropdownMatchSelectWidth)===null||N===void 0?void 0:N.value}),b=vt(()=>{var M;return(t.virtual===void 0?((M=i.virtual)===null||M===void 0?void 0:M.value)!==!1:t.virtual!==!1)&&m.value!==!1}),C=vt(()=>t.size||r.value),E=vt(()=>{var M,N,P;return(M=t.autocomplete)!==null&&M!==void 0?M:(P=(N=i.input)===null||N===void 0?void 0:N.value)===null||P===void 0?void 0:P.autocomplete}),_=vt(()=>{var M;return(M=t.disabled)!==null&&M!==void 0?M:n.value}),F=vt(()=>{var M;return(M=t.csp)!==null&&M!==void 0?M:i.csp});return{configProvider:i,prefixCls:a,direction:o,size:C,getTargetContainer:g,getPopupContainer:p,space:A,pageHeader:f,form:h,autoInsertSpaceInButton:u,renderEmpty:c,virtual:b,dropdownMatchSelectWidth:m,rootPrefixCls:l,getPrefixCls:i.getPrefixCls,autocomplete:E,csp:F,iconPrefixCls:s,disabled:_,select:i.select}};function Cc(e,t){const r=$e({},e);for(let n=0;nt||a>e&&o=t&&s>=r?a-e-n:o>t&&sr?o-t+i:0}var j_e=function(e,t){var r=window,n=t.scrollMode,i=t.block,a=t.inline,o=t.boundary,s=t.skipOverflowHiddenElements,l=typeof o=="function"?o:function(Re){return Re!==o};if(!U_e(e))throw new TypeError("Invalid target");for(var u,c,A=document.scrollingElement||document.documentElement,f=[],h=e;U_e(h)&&l(h);){if((h=(c=(u=h).parentElement)==null?u.getRootNode().host||null:c)===A){f.push(h);break}h!=null&&h===document.body&&Qae(h)&&!Qae(document.documentElement)||h!=null&&Qae(h,s)&&f.push(h)}for(var g=r.visualViewport?r.visualViewport.width:innerWidth,p=r.visualViewport?r.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,b=window.scrollY||pageYOffset,C=e.getBoundingClientRect(),E=C.height,_=C.width,F=C.top,M=C.right,N=C.bottom,P=C.left,j=i==="start"||i==="nearest"?F:i==="end"?N:F+E/2,z=a==="center"?P+_/2:a==="end"?M:P,W=[],Y=0;Y=0&&P>=0&&N<=p&&M<=g&&F>=de&&N<=be&&P>=Le&&M<=Ae)return W;var Ne=getComputedStyle(ee),ue=parseInt(Ne.borderLeftWidth,10),Ke=parseInt(Ne.borderTopWidth,10),Pe=parseInt(Ne.borderRightWidth,10),je=parseInt(Ne.borderBottomWidth,10),Ye=0,me=0,Se="offsetWidth"in ee?ee.offsetWidth-ee.clientWidth-ue-Pe:0,et="offsetHeight"in ee?ee.offsetHeight-ee.clientHeight-Ke-je:0,nt="offsetWidth"in ee?ee.offsetWidth===0?0:se/ee.offsetWidth:0,tt="offsetHeight"in ee?ee.offsetHeight===0?0:ae/ee.offsetHeight:0;if(A===ee)Ye=i==="start"?j:i==="end"?j-p:i==="nearest"?$j(b,b+p,p,Ke,je,b+j,b+j+E,E):j-p/2,me=a==="start"?z:a==="center"?z-g/2:a==="end"?z-g:$j(m,m+g,g,ue,Pe,m+z,m+z+_,_),Ye=Math.max(0,Ye+b),me=Math.max(0,me+m);else{Ye=i==="start"?j-de-Ke:i==="end"?j-be+je+et:i==="nearest"?$j(de,be,ae,Ke,je+et,j,j+E,E):j-(de+ae/2)+et/2,me=a==="start"?z-Le-ue:a==="center"?z-(Le+se/2)+Se/2:a==="end"?z-Ae+Pe+Se:$j(Le,Ae,se,ue,Pe+Se,z,z+_,_);var ft=ee.scrollLeft,st=ee.scrollTop;j+=st-(Ye=Math.max(0,Math.min(st+Ye/tt,ee.scrollHeight-ae/tt+et))),z+=ft-(me=Math.max(0,Math.min(ft+me/nt,ee.scrollWidth-se/nt+Se)))}W.push({el:ee,top:Ye,left:me})}return W};function zat(e){return e===Object(e)&&Object.keys(e).length!==0}function T_t(e,t){t===void 0&&(t="auto");var r="scrollBehavior"in document.body.style;e.forEach(function(n){var i=n.el,a=n.top,o=n.left;i.scroll&&r?i.scroll({top:a,left:o,behavior:t}):(i.scrollTop=a,i.scrollLeft=o)})}function D_t(e){return e===!1?{block:"end",inline:"nearest"}:zat(e)?e:{block:"start",inline:"nearest"}}function F_t(e,t){var r=e.isConnected||e.ownerDocument.documentElement.contains(e);if(zat(t)&&typeof t.behavior=="function")return t.behavior(r?j_e(e,t):[]);if(r){var n=D_t(t);return T_t(j_e(e,n),n.behavior)}}function R_t(e,t,r,n){const i=r-t;return e/=n/2,e<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t}function Y1e(e){return e!=null&&e===e.window}function M_t(e,t){var r,n;if(typeof window>"u")return 0;const i="scrollTop";let a=0;return Y1e(e)?a=e.pageYOffset:e instanceof Document?a=e.documentElement[i]:(e instanceof HTMLElement||e)&&(a=e[i]),e&&!Y1e(e)&&typeof a!="number"&&(a=(n=((r=e.ownerDocument)!==null&&r!==void 0?r:e).documentElement)===null||n===void 0?void 0:n[i]),a}function O_t(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:r=()=>window,callback:n,duration:i=450}=t,a=r(),o=M_t(a),s=Date.now(),l=()=>{const c=Date.now()-s,A=R_t(c>i?i:c,o,e,i);Y1e(a)?a.scrollTo(window.pageXOffset,A):a instanceof Document||a.constructor.name==="HTMLDocument"?a.documentElement.scrollTop=A:a.scrollTop=A,c=0||(i[r]=e[r]);return i}function G_e(e){return((t=e)!=null&&typeof t=="object"&&Array.isArray(t)===!1)==1&&Object.prototype.toString.call(e)==="[object Object]";var t}var Yat=Object.prototype,qat=Yat.toString,L_t=Yat.hasOwnProperty,Jat=/^\s*function (\w+)/;function $_e(e){var t,r=(t=e==null?void 0:e.type)!==null&&t!==void 0?t:e;if(r){var n=r.toString().match(Jat);return n?n[1]:""}return""}var b6=function(e){var t,r;return G_e(e)!==!1&&typeof(t=e.constructor)=="function"&&G_e(r=t.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1},P_t=function(e){return e},H0=P_t,HO=function(e,t){return L_t.call(e,t)},U_t=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e},j9=Array.isArray||function(e){return qat.call(e)==="[object Array]"},G9=function(e){return qat.call(e)==="[object Function]"},sW=function(e){return b6(e)&&HO(e,"_vueTypes_name")},Xat=function(e){return b6(e)&&(HO(e,"type")||["_vueTypes_name","validator","default","required"].some(function(t){return HO(e,t)}))};function _Ee(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function q6(e,t,r){var n;r===void 0&&(r=!1);var i=!0,a="";n=b6(e)?e:{type:e};var o=sW(n)?n._vueTypes_name+" - ":"";if(Xat(n)&&n.type!==null){if(n.type===void 0||n.type===!0||!n.required&&t===void 0)return i;j9(n.type)?(i=n.type.some(function(A){return q6(A,t,!0)===!0}),a=n.type.map(function(A){return $_e(A)}).join(" or ")):i=(a=$_e(n))==="Array"?j9(t):a==="Object"?b6(t):a==="String"||a==="Number"||a==="Boolean"||a==="Function"?function(A){if(A==null)return"";var f=A.constructor.toString().match(Jat);return f?f[1]:""}(t)===a:t instanceof n.type}if(!i){var s=o+'value "'+t+'" should be of type "'+a+'"';return r===!1?(H0(s),!1):s}if(HO(n,"validator")&&G9(n.validator)){var l=H0,u=[];if(H0=function(A){u.push(A)},i=n.validator(t),H0=l,!i){var c=(u.length>1?"* ":"")+u.join(` * `);return u.length=0,r===!1?(H0(c),i):c}}return i}function c1(e,t){var r=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get:function(){return this.required=!0,this}},def:{value:function(i){return i!==void 0||this.default?G9(i)||q6(this,i,!0)===!0?(this.default=j9(i)?function(){return[].concat(i)}:b6(i)?function(){return Object.assign({},i)}:i,this):(H0(this._vueTypes_name+' - invalid default value: "'+i+'"'),this):this}}}),n=r.validator;return G9(n)&&(r.validator=_Ee(n,r)),r}function dC(e,t){var r=c1(e,t);return Object.defineProperty(r,"validate",{value:function(n){return G9(this.validator)&&H0(this._vueTypes_name+` - calling .validate() will overwrite the current custom validator function. Validator info: `+JSON.stringify(this)),this.validator=_Ee(n,this),this}})}function z_e(e,t,r){var n,i,a=(n=t,i={},Object.getOwnPropertyNames(n).forEach(function(A){i[A]=Object.getOwnPropertyDescriptor(n,A)}),Object.defineProperties({},i));if(a._vueTypes_name=e,!b6(r))return a;var o,s,l=r.validator,u=Wat(r,["validator"]);if(G9(l)){var c=a.validator;c&&(c=(s=(o=c).__original)!==null&&s!==void 0?s:o),a.validator=_Ee(c?function(A){return c.call(this,A)&&l.call(this,A)}:l,a)}return Object.assign(a,u)}function oJ(e){return e.replace(/^(?!\s*$)/gm," ")}var H_t=function(){return dC("any",{})},j_t=function(){return dC("function",{type:Function})},G_t=function(){return dC("boolean",{type:Boolean})},$_t=function(){return dC("string",{type:String})},z_t=function(){return dC("number",{type:Number})},K_t=function(){return dC("array",{type:Array})},V_t=function(){return dC("object",{type:Object})},W_t=function(){return c1("integer",{type:Number,validator:function(e){return U_t(e)}})},Y_t=function(){return c1("symbol",{validator:function(e){return typeof e=="symbol"}})};function q_t(e,t){if(t===void 0&&(t="custom validation failed"),typeof e!="function")throw new TypeError("[VueTypes error]: You must provide a function as argument");return c1(e.name||"<>",{validator:function(r){var n=e(r);return n||H0(this._vueTypes_name+" - "+t),n}})}function J_t(e){if(!j9(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");var t='oneOf - value should be one of "'+e.join('", "')+'".',r=e.reduce(function(n,i){if(i!=null){var a=i.constructor;n.indexOf(a)===-1&&n.push(a)}return n},[]);return c1("oneOf",{type:r.length>0?r:void 0,validator:function(n){var i=e.indexOf(n)!==-1;return i||H0(t),i}})}function X_t(e){if(!j9(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");for(var t=!1,r=[],n=0;n0&&r.some(function(l){return o.indexOf(l)===-1})){var s=r.filter(function(l){return o.indexOf(l)===-1});return H0(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(t.indexOf(l)===-1)return a._vueTypes_isLoose===!0||(H0('shape - shape definition does not include a "'+l+'" property. Allowed keys: "'+t.join('", "')+'".'),!1);var u=q6(e[l],i[l],!0);return typeof u=="string"&&H0('shape - "'+l+`" property validation error: `+oJ(u)),u===!0})}});return Object.defineProperty(n,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(n,"loose",{get:function(){return this._vueTypes_isLoose=!0,this}}),n}var xw=function(){function e(){}return e.extend=function(t){var r=this;if(j9(t))return t.forEach(function(A){return r.extend(A)}),this;var n=t.name,i=t.validate,a=i!==void 0&&i,o=t.getter,s=o!==void 0&&o,l=Wat(t,["name","validate","getter"]);if(HO(this,n))throw new TypeError('[VueTypes error]: Type "'+n+'" already defined');var u,c=l.type;return sW(c)?(delete l.type,Object.defineProperty(this,n,s?{get:function(){return z_e(n,c,l)}}:{value:function(){var A,f=z_e(n,c,l);return f.validator&&(f.validator=(A=f.validator).bind.apply(A,[f].concat([].slice.call(arguments)))),f}})):(u=s?{get:function(){var A=Object.assign({},l);return a?dC(n,A):c1(n,A)},enumerable:!0}:{value:function(){var A,f,h=Object.assign({},l);return A=a?dC(n,h):c1(n,h),h.validator&&(A.validator=(f=h.validator).bind.apply(f,[A].concat([].slice.call(arguments)))),A},enumerable:!0},Object.defineProperty(this,n,u))},Kat(e,null,[{key:"any",get:function(){return H_t()}},{key:"func",get:function(){return j_t().def(this.defaults.func)}},{key:"bool",get:function(){return G_t().def(this.defaults.bool)}},{key:"string",get:function(){return $_t().def(this.defaults.string)}},{key:"number",get:function(){return z_t().def(this.defaults.number)}},{key:"array",get:function(){return K_t().def(this.defaults.array)}},{key:"object",get:function(){return V_t().def(this.defaults.object)}},{key:"integer",get:function(){return W_t().def(this.defaults.integer)}},{key:"symbol",get:function(){return Y_t()}}]),e}();function Zat(e){var t;return e===void 0&&(e={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}),(t=function(r){function n(){return r.apply(this,arguments)||this}return Vat(n,r),Kat(n,null,[{key:"sensibleDefaults",get:function(){return cK({},this.defaults)},set:function(i){this.defaults=i!==!1?cK({},i!==!0?i:e):{}}}]),n}(xw)).defaults=cK({},e),t}xw.defaults={},xw.custom=q_t,xw.oneOf=J_t,xw.instanceOf=e8t,xw.oneOfType=X_t,xw.arrayOf=Z_t,xw.objectOf=t8t,xw.shape=r8t,xw.utils={validate:function(e,t){return q6(t,e,!0)===!0},toType:function(e,t,r){return r===void 0&&(r=!1),r?dC(e,t):c1(e,t)}};(function(e){function t(){return e.apply(this,arguments)||this}return Vat(t,e),t})(Zat());const cn=Zat({func:void 0,bool:void 0,string:void 0,number:void 0,array:void 0,object:void 0,integer:void 0});cn.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}]);const BA=(e,t,r)=>{BEe(e,`[ant-design-vue: ${t}] ${r}`)};function K_e(e,t){const{key:r}=e;let n;return"value"in e&&({value:n}=e),r??(n!==void 0?n:`rc-index-key-${t}`)}function eot(e,t){const{label:r,value:n,options:i}=e||{};return{label:r||(t?"children":"label"),value:n||"value",options:i||"options"}}function n8t(e){let{fieldNames:t,childrenAsData:r}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const n=[],{label:i,value:a,options:o}=eot(t,!1);function s(l,u){l.forEach(c=>{const A=c[i];if(u||!(o in c)){const f=c[a];n.push({key:K_e(c,n.length),groupOption:u,data:c,label:A,value:f})}else{let f=A;f===void 0&&r&&(f=c.label),n.push({key:K_e(c,n.length),group:!0,data:c,label:f}),s(c[o],!0)}})}return s(e,!1),n}function q1e(e){const t=$e({},e);return"props"in t||Object.defineProperty(t,"props",{get(){return t}}),t}function i8t(e,t){if(!t||!t.length)return null;let r=!1;function n(a,o){let[s,...l]=o;if(!s)return[a];const u=a.split(s);return r=r||u.length>1,u.reduce((c,A)=>[...c,...n(A,l)],[]).filter(c=>c)}const i=n(e,t);return r?i:null}function a8t(){return""}function o8t(e){return e?e.ownerDocument:window.document}function tot(){}const s8t=()=>({action:cn.oneOfType([cn.string,cn.arrayOf(cn.string)]).def([]),showAction:cn.any.def([]),hideAction:cn.any.def([]),getPopupClassNameFromAlign:cn.any.def(a8t),onPopupVisibleChange:Function,afterPopupVisibleChange:cn.func.def(tot),popup:cn.any,popupStyle:{type:Object,default:void 0},prefixCls:cn.string.def("rc-trigger-popup"),popupClassName:cn.string.def(""),popupPlacement:String,builtinPlacements:cn.object,popupTransitionName:String,popupAnimation:cn.any,mouseEnterDelay:cn.number.def(0),mouseLeaveDelay:cn.number.def(.1),zIndex:Number,focusDelay:cn.number.def(0),blurDelay:cn.number.def(.15),getPopupContainer:Function,getDocument:cn.func.def(o8t),forceRender:{type:Boolean,default:void 0},destroyPopupOnHide:{type:Boolean,default:!1},mask:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},popupAlign:cn.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}),TEe={visible:Boolean,prefixCls:String,zIndex:Number,destroyPopupOnHide:Boolean,forceRender:Boolean,animation:[String,Object],transitionName:String,stretch:{type:String},align:{type:Object},point:{type:Object},getRootDomNode:{type:Function},getClassNameFromAlign:{type:Function},onMouseenter:{type:Function},onMouseleave:{type:Function},onMousedown:{type:Function},onTouchstart:{type:Function}},l8t=$e($e({},TEe),{mobile:{type:Object}}),u8t=$e($e({},TEe),{mask:Boolean,mobile:{type:Object},maskAnimation:String,maskTransitionName:String});function DEe(e){let{prefixCls:t,animation:r,transitionName:n}=e;return r?{name:`${t}-${r}`}:n?{name:n}:{}}function rot(e){const{prefixCls:t,visible:r,zIndex:n,mask:i,maskAnimation:a,maskTransitionName:o}=e;if(!i)return null;let s={};return(o||a)&&(s=DEe({prefixCls:t,transitionName:o,animation:a})),De(nm,Ot({appear:!0},s),{default:()=>[rp(De("div",{style:{zIndex:n},class:`${t}-mask`},null),[[Tnt("if"),r]])]})}rot.displayName="Mask";const c8t=$n({compatConfig:{MODE:3},name:"MobilePopupInner",inheritAttrs:!1,props:l8t,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(e,t){let{expose:r,slots:n}=t;const i=Hn();return r({forceAlign:()=>{},getElement:()=>i.value}),()=>{var a;const{zIndex:o,visible:s,prefixCls:l,mobile:{popupClassName:u,popupStyle:c,popupMotion:A={},popupRender:f}={}}=e,h=$e({zIndex:o},c);let g=sf((a=n.default)===null||a===void 0?void 0:a.call(n));g.length>1&&(g=De("div",{class:`${l}-content`},[g])),f&&(g=f(g));const p=Vn(l,u);return De(nm,Ot({ref:i},A),{default:()=>[s?De("div",{class:p,style:h},[g]):null]})}}});var A8t=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(c){try{u(n.next(c))}catch(A){o(A)}}function l(c){try{u(n.throw(c))}catch(A){o(A)}}function u(c){c.done?a(c.value):i(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};const V_e=["measure","align",null,"motion"],f8t=(e,t)=>{const r=sn(null),n=sn(),i=sn(!1);function a(l){i.value||(r.value=l)}function o(){ms.cancel(n.value)}function s(l){o(),n.value=ms(()=>{let u=r.value;switch(r.value){case"align":u="motion";break;case"motion":u="stable";break}a(u),l==null||l()})}return di(e,()=>{a("measure")},{immediate:!0,flush:"post"}),Is(()=>{di(r,()=>{switch(r.value){case"measure":t();break}r.value&&(n.value=ms(()=>A8t(void 0,void 0,void 0,function*(){const l=V_e.indexOf(r.value),u=V_e[l+1];u&&l!==-1&&a(u)})))},{immediate:!0,flush:"post"})}),el(()=>{i.value=!0,o()}),[r,s]},h8t=e=>{const t=sn({width:0,height:0});function r(i){t.value={width:i.offsetWidth,height:i.offsetHeight}}return[vt(()=>{const i={};if(e.value){const{width:a,height:o}=t.value;e.value.indexOf("height")!==-1&&o?i.height=`${o}px`:e.value.indexOf("minHeight")!==-1&&o&&(i.minHeight=`${o}px`),e.value.indexOf("width")!==-1&&a?i.width=`${a}px`:e.value.indexOf("minWidth")!==-1&&a&&(i.minWidth=`${a}px`)}return i}),r]};function W_e(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Y_e(e){for(var t=1;t=0&&r.left>=0&&r.bottom>r.top&&r.right>r.left?r:null}function O8t(e,t,r,n){var i=Il.clone(e),a={width:t.width,height:t.height};return n.adjustX&&i.left=r.left&&i.left+a.width>r.right&&(a.width-=i.left+a.width-r.right),n.adjustX&&i.left+a.width>r.right&&(i.left=Math.max(r.right-a.width,r.left)),n.adjustY&&i.top=r.top&&i.top+a.height>r.bottom&&(a.height-=i.top+a.height-r.bottom),n.adjustY&&i.top+a.height>r.bottom&&(i.top=Math.max(r.bottom-a.height,r.top)),Il.mix(i,a)}function OEe(e){var t,r,n;if(!Il.isWindow(e)&&e.nodeType!==9)t=Il.offset(e),r=Il.outerWidth(e),n=Il.outerHeight(e);else{var i=Il.getWindow(e);t={left:Il.getWindowScrollLeft(i),top:Il.getWindowScrollTop(i)},r=Il.viewportWidth(i),n=Il.viewportHeight(i)}return t.width=r,t.height=n,t}function n8e(e,t){var r=t.charAt(0),n=t.charAt(1),i=e.width,a=e.height,o=e.left,s=e.top;return r==="c"?s+=a/2:r==="b"&&(s+=a),n==="c"?o+=i/2:n==="r"&&(o+=i),{left:o,top:s}}function Kj(e,t,r,n,i){var a=n8e(t,r[1]),o=n8e(e,r[0]),s=[o.left-a.left,o.top-a.top];return{left:Math.round(e.left-s[0]+n[0]-i[0]),top:Math.round(e.top-s[1]+n[1]-i[1])}}function i8e(e,t,r){return e.leftr.right}function a8e(e,t,r){return e.topr.bottom}function N8t(e,t,r){return e.left>r.right||e.left+t.widthr.bottom||e.top+t.height=r.right||n.top>=r.bottom}function NEe(e,t,r){var n=r.target||t,i=OEe(n),a=!P8t(n,r.overflow&&r.overflow.alwaysByViewport);return cot(e,i,r,a)}NEe.__getOffsetParent=eye;NEe.__getVisibleRectForElement=MEe;function U8t(e,t,r){var n,i,a=Il.getDocument(e),o=a.defaultView||a.parentWindow,s=Il.getWindowScrollLeft(o),l=Il.getWindowScrollTop(o),u=Il.viewportWidth(o),c=Il.viewportHeight(o);"pageX"in t?n=t.pageX:n=s+t.clientX,"pageY"in t?i=t.pageY:i=l+t.clientY;var A={left:n,top:i,width:0,height:0},f=n>=0&&n<=s+u&&i>=0&&i<=l+c,h=[r.points[0],"cc"];return cot(e,A,Y_e(Y_e({},r),{},{points:h}),f)}function aA(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,i=e;if(Array.isArray(e)&&(i=Cg(e)[0]),!i)return null;const a=np(i,t,n);return a.props=r?$e($e({},a.props),t):a.props,vB(typeof a.props.class!="object"),a}function H8t(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return e.map(n=>aA(n,t,r))}const lJ=e=>{if(!e)return!1;if(e.offsetParent)return!0;if(e.getBBox){const t=e.getBBox();if(t.width||t.height)return!0}if(e.getBoundingClientRect){const t=e.getBoundingClientRect();if(t.width||t.height)return!0}return!1};function j8t(e,t){return e===t?!0:!e||!t?!1:"pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t?e.clientX===t.clientX&&e.clientY===t.clientY:!1}function G8t(e,t){e!==document.activeElement&&v3(t,e)&&typeof e.focus=="function"&&e.focus()}function l8e(e,t){let r=null,n=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),A=Math.floor(u);(r!==c||n!==A)&&Promise.resolve().then(()=>{t({width:c,height:A})}),r=c,n=A}const a=new Kit(i);return e&&a.observe(e),()=>{a.disconnect()}}const $8t=(e,t)=>{let r=!1,n=null;function i(){clearTimeout(n)}function a(o){if(!r||o===!0){if(e()===!1)return;r=!0,i(),n=setTimeout(()=>{r=!1},t.value)}else i(),n=setTimeout(()=>{r=!1,a()},t.value)}return[a,()=>{r=!1,i()}]};function z8t(){this.__data__=[],this.size=0}function LEe(e,t){return e===t||e!==e&&t!==t}function uJ(e,t){for(var r=e.length;r--;)if(LEe(e[r][0],t))return r;return-1}var K8t=Array.prototype,V8t=K8t.splice;function W8t(e){var t=this.__data__,r=uJ(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():V8t.call(t,r,1),--this.size,!0}function Y8t(e){var t=this.__data__,r=uJ(t,e);return r<0?void 0:t[r][1]}function q8t(e){return uJ(this.__data__,e)>-1}function J8t(e,t){var r=this.__data__,n=uJ(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}function mB(e){var t=-1,r=e==null?0:e.length;for(this.clear();++ts))return!1;var u=a.get(e),c=a.get(t);if(u&&c)return u==t&&c==e;var A=-1,f=!0,h=r&j9t?new $9:void 0;for(a.set(e,t),a.set(t,e);++A-1&&e%1==0&&e-1&&e%1==0&&e<=p7t}var v7t="[object Arguments]",m7t="[object Array]",y7t="[object Boolean]",b7t="[object Date]",w7t="[object Error]",C7t="[object Function]",I7t="[object Map]",E7t="[object Number]",B7t="[object Object]",x7t="[object RegExp]",S7t="[object Set]",k7t="[object String]",Q7t="[object WeakMap]",_7t="[object ArrayBuffer]",T7t="[object DataView]",D7t="[object Float32Array]",F7t="[object Float64Array]",R7t="[object Int8Array]",M7t="[object Int16Array]",O7t="[object Int32Array]",N7t="[object Uint8Array]",L7t="[object Uint8ClampedArray]",P7t="[object Uint16Array]",U7t="[object Uint32Array]",LA={};LA[D7t]=LA[F7t]=LA[R7t]=LA[M7t]=LA[O7t]=LA[N7t]=LA[L7t]=LA[P7t]=LA[U7t]=!0;LA[v7t]=LA[m7t]=LA[_7t]=LA[y7t]=LA[T7t]=LA[b7t]=LA[w7t]=LA[C7t]=LA[I7t]=LA[E7t]=LA[B7t]=LA[x7t]=LA[S7t]=LA[k7t]=LA[Q7t]=!1;function H7t(e){return AC(e)&&GEe(e.length)&&!!LA[Y6(e)]}function $Ee(e){return function(t){return e(t)}}var vot=typeof exports=="object"&&exports&&!exports.nodeType&&exports,DM=vot&&typeof module=="object"&&module&&!module.nodeType&&module,j7t=DM&&DM.exports===vot,Oae=j7t&&Vit.process,z9=function(){try{var e=DM&&DM.require&&DM.require("util").types;return e||Oae&&Oae.binding&&Oae.binding("util")}catch{}}(),g8e=z9&&z9.isTypedArray,zEe=g8e?$Ee(g8e):H7t,G7t=Object.prototype,$7t=G7t.hasOwnProperty;function mot(e,t){var r=A1(e),n=!r&&AJ(e),i=!r&&!n&&zO(e),a=!r&&!n&&!i&&zEe(e),o=r||n||i||a,s=o?s7t(e.length,String):[],l=s.length;for(var u in e)(t||$7t.call(e,u))&&!(o&&(u=="length"||i&&(u=="offset"||u=="parent")||a&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||jEe(u,l)))&&s.push(u);return s}var z7t=Object.prototype;function fJ(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||z7t;return e===r}var K7t=Yit(Object.keys,Object),V7t=Object.prototype,W7t=V7t.hasOwnProperty;function yot(e){if(!fJ(e))return K7t(e);var t=[];for(var r in Object(e))W7t.call(e,r)&&r!="constructor"&&t.push(r);return t}function U7(e){return e!=null&&GEe(e.length)&&!Aot(e)}function H7(e){return U7(e)?mot(e):yot(e)}function tye(e){return hot(e,H7,HEe)}var Y7t=1,q7t=Object.prototype,J7t=q7t.hasOwnProperty;function X7t(e,t,r,n,i,a){var o=r&Y7t,s=tye(e),l=s.length,u=tye(t),c=u.length;if(l!=c&&!o)return!1;for(var A=l;A--;){var f=s[A];if(!(o?f in t:J7t.call(t,f)))return!1}var h=a.get(e),g=a.get(t);if(h&&g)return h==t&&g==e;var p=!0;a.set(e,t),a.set(t,e);for(var m=o;++A{const{disabled:f,target:h,align:g,onAlign:p}=e;if(!f&&h&&a.value){const m=a.value;let b;const C=E8e(h),E=B8e(h);i.value.element=C,i.value.point=E,i.value.align=g;const{activeElement:_}=document;return C&&lJ(C)?b=NEe(m,C,g):E&&(b=U8t(m,E,g)),G8t(_,m),p&&b&&p(m,b),!0}return!1},vt(()=>e.monitorBufferTime)),l=Hn({cancel:()=>{}}),u=Hn({cancel:()=>{}}),c=()=>{const f=e.target,h=E8e(f),g=B8e(f);a.value!==u.value.element&&(u.value.cancel(),u.value.element=a.value,u.value.cancel=l8e(a.value,o)),(i.value.element!==h||!j8t(i.value.point,g)||!KEe(i.value.align,e.align))&&(o(),l.value.element!==h&&(l.value.cancel(),l.value.element=h,l.value.cancel=l8e(h,o)))};Is(()=>{il(()=>{c()})}),lm(()=>{il(()=>{c()})}),di(()=>e.disabled,f=>{f?s():o()},{immediate:!0,flush:"post"});const A=Hn(null);return di(()=>e.monitorWindowResize,f=>{f?A.value||(A.value=Ym(window,"resize",o)):A.value&&(A.value.remove(),A.value=null)},{flush:"post"}),um(()=>{l.value.cancel(),u.value.cancel(),A.value&&A.value.remove(),s()}),r({forceAlign:()=>o(!0)}),()=>{const f=n==null?void 0:n.default();return f?aA(f[0],{ref:a},!0,!0):null}}});fC("bottomLeft","bottomRight","topLeft","topRight");const cTt=e=>e!==void 0&&(e==="topLeft"||e==="topRight")?"slide-down":"slide-up",p5=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return $e(e?{name:e,appear:!0,enterFromClass:`${e}-enter ${e}-enter-prepare ${e}-enter-start`,enterActiveClass:`${e}-enter ${e}-enter-prepare`,enterToClass:`${e}-enter ${e}-enter-active`,leaveFromClass:` ${e}-leave`,leaveActiveClass:`${e}-leave ${e}-leave-active`,leaveToClass:`${e}-leave ${e}-leave-active`}:{css:!1},t)},dJ=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return $e(e?{name:e,appear:!0,appearActiveClass:`${e}`,appearToClass:`${e}-appear ${e}-appear-active`,enterFromClass:`${e}-appear ${e}-enter ${e}-appear-prepare ${e}-enter-prepare`,enterActiveClass:`${e}`,enterToClass:`${e}-enter ${e}-appear ${e}-appear-active ${e}-enter-active`,leaveActiveClass:`${e} ${e}-leave`,leaveToClass:`${e}-leave-active`}:{css:!1},t)},gC=(e,t,r)=>r!==void 0?r:`${e}-${t}`,ATt=$n({compatConfig:{MODE:3},name:"PopupInner",inheritAttrs:!1,props:TEe,emits:["mouseenter","mouseleave","mousedown","touchstart","align"],setup(e,t){let{expose:r,attrs:n,slots:i}=t;const a=sn(),o=sn(),s=sn(),[l,u]=h8t(ws(e,"stretch")),c=()=>{e.stretch&&u(e.getRootDomNode())},A=sn(!1);let f;di(()=>e.visible,M=>{clearTimeout(f),M?f=setTimeout(()=>{A.value=e.visible}):A.value=!1},{immediate:!0});const[h,g]=f8t(A,c),p=sn(),m=()=>e.point?e.point:e.getRootDomNode,b=()=>{var M;(M=a.value)===null||M===void 0||M.forceAlign()},C=(M,N)=>{var P;const j=e.getClassNameFromAlign(N),z=s.value;s.value!==j&&(s.value=j),h.value==="align"&&(z!==j?Promise.resolve().then(()=>{b()}):g(()=>{var W;(W=p.value)===null||W===void 0||W.call(p)}),(P=e.onAlign)===null||P===void 0||P.call(e,M,N))},E=vt(()=>{const M=typeof e.animation=="object"?e.animation:DEe(e);return["onAfterEnter","onAfterLeave"].forEach(N=>{const P=M[N];M[N]=j=>{g(),h.value="stable",P==null||P(j)}}),M}),_=()=>new Promise(M=>{p.value=M});di([E,h],()=>{!E.value&&h.value==="motion"&&g()},{immediate:!0}),r({forceAlign:b,getElement:()=>o.value.$el||o.value});const F=vt(()=>{var M;return!(!((M=e.align)===null||M===void 0)&&M.points&&(h.value==="align"||h.value==="stable"))});return()=>{var M;const{zIndex:N,align:P,prefixCls:j,destroyPopupOnHide:z,onMouseenter:W,onMouseleave:Y,onTouchstart:ee=()=>{},onMousedown:q}=e,ae=h.value,se=[$e($e({},l.value),{zIndex:N,opacity:ae==="motion"||ae==="stable"||!A.value?null:0,pointerEvents:!A.value&&ae!=="stable"?"none":null}),n.style];let de=sf((M=i.default)===null||M===void 0?void 0:M.call(i,{visible:e.visible}));de.length>1&&(de=De("div",{class:`${j}-content`},[de]));const Ae=Vn(j,n.class,s.value),Le=A.value||!e.visible?p5(E.value.name,E.value):{};return De(nm,Ot(Ot({ref:o},Le),{},{onBeforeEnter:_}),{default:()=>!z||e.visible?rp(De(uTt,{target:m(),key:"popup",ref:a,monitorWindowResize:!0,disabled:F.value,align:P,onAlign:C},{default:()=>De("div",{class:Ae,onMouseenter:W,onMouseleave:Y,onMousedown:M1e(q,["capture"]),[Jp?"onTouchstartPassive":"onTouchstart"]:M1e(ee,["capture"]),style:se},[de])}),[[_y,A.value]]):null})}}}),fTt=$n({compatConfig:{MODE:3},name:"Popup",inheritAttrs:!1,props:u8t,setup(e,t){let{attrs:r,slots:n,expose:i}=t;const a=sn(!1),o=sn(!1),s=sn(),l=sn();return di([()=>e.visible,()=>e.mobile],()=>{a.value=e.visible,e.visible&&e.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=$e($e($e({},e),r),{visible:a.value}),c=o.value?De(c8t,Ot(Ot({},u),{},{mobile:e.mobile,ref:s}),{default:n.default}):De(ATt,Ot(Ot({},u),{},{ref:s}),{default:n.default});return De("div",{ref:l},[De(rot,u,null),c])}}});function hTt(e,t,r){return r?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function x8e(e,t,r){const n=e[t]||{};return $e($e({},n),r)}function dTt(e,t,r,n){const{points:i}=r,a=Object.keys(e);for(let o=0;o0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,r=typeof e=="function"?e(this.$data,this.$props):e;if(this.getDerivedStateFromProps){const n=this.getDerivedStateFromProps(V6t(this),$e($e({},this.$data),r));if(n===null)return;r=$e($e({},r),n||{})}$e(this.$data,r),this._.isMounted&&this.$forceUpdate(),il(()=>{t&&t()})},__emit(){const e=[].slice.call(arguments,0);let t=e[0];t=`on${t[0].toUpperCase()}${t.substring(1)}`;const r=this.$props[t]||this.$attrs[t];if(e.length&&r)if(Array.isArray(r))for(let n=0,i=r.length;n1&&arguments[1]!==void 0?arguments[1]:{inTriggerContext:!0};Es(wot,{inTriggerContext:t.inTriggerContext,shouldRender:vt(()=>{const{sPopupVisible:r,popupRef:n,forceRender:i,autoDestroy:a}=e||{};let o=!1;return(r||n||i)&&(o=!0),!r&&a&&(o=!1),o})})},gTt=()=>{VEe({},{inTriggerContext:!1});const e=Wo(wot,{shouldRender:vt(()=>!1),inTriggerContext:!1});return{shouldRender:vt(()=>e.shouldRender.value||e.inTriggerContext===!1)}},Cot=$n({compatConfig:{MODE:3},name:"Portal",inheritAttrs:!1,props:{getContainer:cn.func.isRequired,didUpdate:Function},setup(e,t){let{slots:r}=t,n=!0,i;const{shouldRender:a}=gTt();nEe(()=>{n=!1,a.value&&(i=e.getContainer())});const o=di(a,()=>{a.value&&!i&&(i=e.getContainer()),i&&o()});return lm(()=>{il(()=>{var s;a.value&&((s=e.didUpdate)===null||s===void 0||s.call(e,e))})}),el(()=>{i&&i.parentNode&&i.parentNode.removeChild(i)}),()=>{var s;return a.value?n?(s=r.default)===null||s===void 0?void 0:s.call(r):i?De(Wq,{to:i},r):null:null}}});let Nae;function AW(e){if(typeof document>"u")return 0;if(Nae===void 0){const t=document.createElement("div");t.style.width="100%",t.style.height="200px";const r=document.createElement("div"),n=r.style;n.position="absolute",n.top="0",n.left="0",n.pointerEvents="none",n.visibility="hidden",n.width="200px",n.height="150px",n.overflow="hidden",r.appendChild(t),document.body.appendChild(r);const i=t.offsetWidth;r.style.overflow="scroll";let a=t.offsetWidth;i===a&&(a=r.clientWidth),document.body.removeChild(r),Nae=i-a}return Nae}function S8e(e){const t=e.match(/^(.*)px$/),r=Number(t==null?void 0:t[1]);return Number.isNaN(r)?AW():r}function pTt(e){if(typeof document>"u"||!e||!(e instanceof Element))return{width:0,height:0};const{width:t,height:r}=getComputedStyle(e,"::-webkit-scrollbar");return{width:S8e(t),height:S8e(r)}}const vTt=`vc-util-locker-${Date.now()}`;let k8e=0;function mTt(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}function yTt(e){const t=vt(()=>!!e&&!!e.value);k8e+=1;const r=`${vTt}_${k8e}`;ks(n=>{if(t.value){const i=AW(),a=mTt();NO(` html body { overflow-y: hidden; ${a?`width: calc(100% - ${i}px);`:""} }`,r)}else aW(r);n(()=>{aW(r)})},{flush:"post"})}let l4=0;const AK=kC(),Q8e=e=>{if(!AK)return null;if(e){if(typeof e=="string")return document.querySelectorAll(e)[0];if(typeof e=="function")return e();if(typeof e=="object"&&e instanceof window.HTMLElement)return e}return document.body},WEe=$n({compatConfig:{MODE:3},name:"PortalWrapper",inheritAttrs:!1,props:{wrapperClassName:String,forceRender:{type:Boolean,default:void 0},getContainer:cn.any,visible:{type:Boolean,default:void 0},autoLock:Pa(),didUpdate:Function},setup(e,t){let{slots:r}=t;const n=sn(),i=sn(),a=sn(),o=()=>{var h,g;(g=(h=n.value)===null||h===void 0?void 0:h.parentNode)===null||g===void 0||g.removeChild(n.value),n.value=null};let s=null;const l=function(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1)||n.value&&!n.value.parentNode?(s=Q8e(e.getContainer),s?(s.appendChild(n.value),!0):!1):!0},u=document.createElement("div"),c=()=>AK?(n.value||(n.value=u,l(!0)),A(),n.value):null,A=()=>{const{wrapperClassName:h}=e;n.value&&h&&h!==n.value.className&&(n.value.className=h)};lm(()=>{A(),l()});const f=sA();return yTt(vt(()=>e.autoLock&&e.visible&&kC()&&(n.value===document.body||n.value===u))),Is(()=>{let h=!1;di([()=>e.visible,()=>e.getContainer],(g,p)=>{let[m,b]=g,[C,E]=p;AK&&(s=Q8e(e.getContainer),s===document.body&&(m&&!C?l4+=1:h&&(l4-=1))),h&&(typeof b=="function"&&typeof E=="function"?b.toString()!==E.toString():b!==E)&&o(),h=!0},{immediate:!0,flush:"post"}),il(()=>{l()||(a.value=ms(()=>{f.update()}))})}),el(()=>{const{visible:h}=e;AK&&s===document.body&&(l4=h&&l4?l4-1:l4),o(),ms.cancel(a.value)}),()=>{const{forceRender:h,visible:g}=e;let p=null;const m={getOpenCount:()=>l4,getContainer:c};return(h||g||i.value)&&(p=De(Cot,{getContainer:c,ref:i,didUpdate:e.didUpdate},{default:()=>{var b;return(b=r.default)===null||b===void 0?void 0:b.call(r,m)}})),p}}}),bTt=["onClick","onMousedown","onTouchstart","onMouseenter","onMouseleave","onFocus","onBlur","onContextmenu"],yL=$n({compatConfig:{MODE:3},name:"Trigger",mixins:[bot],inheritAttrs:!1,props:s8t(),setup(e){const t=vt(()=>{const{popupPlacement:i,popupAlign:a,builtinPlacements:o}=e;return i&&o?x8e(o,i,a):a}),r=sn(null),n=i=>{r.value=i};return{vcTriggerContext:Wo("vcTriggerContext",{}),popupRef:r,setPopupRef:n,triggerRef:sn(null),align:t,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 e=this.$props;let t;return this.popupVisible!==void 0?t=!!e.popupVisible:t=!!e.defaultPopupVisible,bTt.forEach(r=>{this[`fire${r}`]=n=>{this.fireEvents(r,n)}}),{prevPopupVisible:t,sPopupVisible:t,point:null}},watch:{popupVisible(e){e!==void 0&&(this.prevPopupVisible=this.sPopupVisible,this.sPopupVisible=e)}},created(){Es("vcTriggerContext",{onPopupMouseDown:this.onPopupMouseDown,onPopupMouseenter:this.onPopupMouseenter,onPopupMouseleave:this.onPopupMouseleave}),VEe(this)},deactivated(){this.setPopupVisible(!1)},mounted(){this.$nextTick(()=>{this.updatedCal()})},updated(){this.$nextTick(()=>{this.updatedCal()})},beforeUnmount(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),ms.cancel(this.attachId)},methods:{updatedCal(){const e=this.$props;if(this.$data.sPopupVisible){let r;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextmenuToShow())&&(r=e.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Ym(r,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(r=r||e.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Ym(r,"touchstart",this.onDocumentClick,Jp?{passive:!1}:!1)),!this.contextmenuOutsideHandler1&&this.isContextmenuToShow()&&(r=r||e.getDocument(this.getRootDomNode()),this.contextmenuOutsideHandler1=Ym(r,"scroll",this.onContextmenuClose)),!this.contextmenuOutsideHandler2&&this.isContextmenuToShow()&&(this.contextmenuOutsideHandler2=Ym(window,"blur",this.onContextmenuClose))}else this.clearOutsideHandler()},onMouseenter(e){const{mouseEnterDelay:t}=this.$props;this.fireEvents("onMouseenter",e),this.delaySetPopupVisible(!0,t,t?null:e)},onMouseMove(e){this.fireEvents("onMousemove",e),this.setPoint(e)},onMouseleave(e){this.fireEvents("onMouseleave",e),this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay)},onPopupMouseenter(){const{vcTriggerContext:e={}}=this;e.onPopupMouseenter&&e.onPopupMouseenter(),this.clearDelayTimer()},onPopupMouseleave(e){var t;if(e&&e.relatedTarget&&!e.relatedTarget.setTimeout&&v3((t=this.popupRef)===null||t===void 0?void 0:t.getElement(),e.relatedTarget))return;this.delaySetPopupVisible(!1,this.$props.mouseLeaveDelay);const{vcTriggerContext:r={}}=this;r.onPopupMouseleave&&r.onPopupMouseleave(e)},onFocus(e){this.fireEvents("onFocus",e),this.clearDelayTimer(),this.isFocusToShow()&&(this.focusTime=Date.now(),this.delaySetPopupVisible(!0,this.$props.focusDelay))},onMousedown(e){this.fireEvents("onMousedown",e),this.preClickTime=Date.now()},onTouchstart(e){this.fireEvents("onTouchstart",e),this.preTouchTime=Date.now()},onBlur(e){v3(e.target,e.relatedTarget||document.activeElement)||(this.fireEvents("onBlur",e),this.clearDelayTimer(),this.isBlurToHide()&&this.delaySetPopupVisible(!1,this.$props.blurDelay))},onContextmenu(e){e.preventDefault(),this.fireEvents("onContextmenu",e),this.setPopupVisible(!0,e)},onContextmenuClose(){this.isContextmenuToShow()&&this.close()},onClick(e){if(this.fireEvents("onClick",e),this.focusTime){let r;if(this.preClickTime&&this.preTouchTime?r=Math.min(this.preClickTime,this.preTouchTime):this.preClickTime?r=this.preClickTime:this.preTouchTime&&(r=this.preTouchTime),Math.abs(r-this.focusTime)<20)return;this.focusTime=0}this.preClickTime=0,this.preTouchTime=0,this.isClickToShow()&&(this.isClickToHide()||this.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault(),e&&e.domEvent&&e.domEvent.preventDefault();const t=!this.$data.sPopupVisible;(this.isClickToHide()&&!t||t&&this.isClickToShow())&&this.setPopupVisible(!this.$data.sPopupVisible,e)},onPopupMouseDown(){const{vcTriggerContext:e={}}=this;this.hasPopupMouseDown=!0,clearTimeout(this.mouseDownTimeout),this.mouseDownTimeout=setTimeout(()=>{this.hasPopupMouseDown=!1},0),e.onPopupMouseDown&&e.onPopupMouseDown(...arguments)},onDocumentClick(e){if(this.$props.mask&&!this.$props.maskClosable)return;const t=e.target,r=this.getRootDomNode(),n=this.getPopupDomNode();(!v3(r,t)||this.isContextMenuOnly())&&!v3(n,t)&&!this.hasPopupMouseDown&&this.delaySetPopupVisible(!1,.1)},getPopupDomNode(){var e;return((e=this.popupRef)===null||e===void 0?void 0:e.getElement())||null},getRootDomNode(){var e,t,r,n;const{getTriggerDOMNode:i}=this.$props;if(i){const a=((t=(e=this.triggerRef)===null||e===void 0?void 0:e.$el)===null||t===void 0?void 0:t.nodeName)==="#comment"?null:IE(this.triggerRef);return IE(i(a))}try{const a=((n=(r=this.triggerRef)===null||r===void 0?void 0:r.$el)===null||n===void 0?void 0:n.nodeName)==="#comment"?null:IE(this.triggerRef);if(a)return a}catch{}return IE(this)},handleGetPopupClassFromAlign(e){const t=[],r=this.$props,{popupPlacement:n,builtinPlacements:i,prefixCls:a,alignPoint:o,getPopupClassNameFromAlign:s}=r;return n&&i&&t.push(dTt(i,a,e,o)),s&&t.push(s(e)),t.join(" ")},getPopupAlign(){const e=this.$props,{popupPlacement:t,popupAlign:r,builtinPlacements:n}=e;return t&&n?x8e(n,t,r):r},getComponent(){const e={};this.isMouseEnterToShow()&&(e.onMouseenter=this.onPopupMouseenter),this.isMouseLeaveToHide()&&(e.onMouseleave=this.onPopupMouseleave),e.onMousedown=this.onPopupMouseDown,e[Jp?"onTouchstartPassive":"onTouchstart"]=this.onPopupMouseDown;const{handleGetPopupClassFromAlign:t,getRootDomNode:r,$attrs:n}=this,{prefixCls:i,destroyPopupOnHide:a,popupClassName:o,popupAnimation:s,popupTransitionName:l,popupStyle:u,mask:c,maskAnimation:A,maskTransitionName:f,zIndex:h,stretch:g,alignPoint:p,mobile:m,forceRender:b}=this.$props,{sPopupVisible:C,point:E}=this.$data,_=$e($e({prefixCls:i,destroyPopupOnHide:a,visible:C,point:p?E:null,align:this.align,animation:s,getClassNameFromAlign:t,stretch:g,getRootDomNode:r,mask:c,zIndex:h,transitionName:l,maskAnimation:A,maskTransitionName:f,class:o,style:u,onAlign:n.onPopupAlign||tot},e),{ref:this.setPopupRef,mobile:m,forceRender:b});return De(fTt,_,{default:this.$slots.popup||(()=>eat(this,"popup"))})},attachParent(e){ms.cancel(this.attachId);const{getPopupContainer:t,getDocument:r}=this.$props,n=this.getRootDomNode();let i;t?(n||t.length===0)&&(i=t(n)):i=r(this.getRootDomNode()).body,i?i.appendChild(e):this.attachId=ms(()=>{this.attachParent(e)})},getContainer(){const{$props:e}=this,{getDocument:t}=e,r=t(this.getRootDomNode()).createElement("div");return r.style.position="absolute",r.style.top="0",r.style.left="0",r.style.width="100%",this.attachParent(r),r},setPopupVisible(e,t){const{alignPoint:r,sPopupVisible:n,onPopupVisibleChange:i}=this;this.clearDelayTimer(),n!==e&&(T8(this,"popupVisible")||this.setState({sPopupVisible:e,prevPopupVisible:n}),i&&i(e)),r&&t&&e&&this.setPoint(t)},setPoint(e){const{alignPoint:t}=this.$props;!t||!e||this.setState({point:{pageX:e.pageX,pageY:e.pageY}})},handlePortalUpdate(){this.prevPopupVisible!==this.sPopupVisible&&this.afterPopupVisibleChange(this.sPopupVisible)},delaySetPopupVisible(e,t,r){const n=t*1e3;if(this.clearDelayTimer(),n){const i=r?{pageX:r.pageX,pageY:r.pageY}:null;this.delayTimer=setTimeout(()=>{this.setPopupVisible(e,i),this.clearDelayTimer()},n)}else this.setPopupVisible(e,r)},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(e){let t=()=>{};const r=C_e(this);return this.childOriginEvents[e]&&r[e]?this[`fire${e}`]:(t=this.childOriginEvents[e]||r[e]||t,t)},isClickToShow(){const{action:e,showAction:t}=this.$props;return e.indexOf("click")!==-1||t.indexOf("click")!==-1},isContextMenuOnly(){const{action:e}=this.$props;return e==="contextmenu"||e.length===1&&e[0]==="contextmenu"},isContextmenuToShow(){const{action:e,showAction:t}=this.$props;return e.indexOf("contextmenu")!==-1||t.indexOf("contextmenu")!==-1},isClickToHide(){const{action:e,hideAction:t}=this.$props;return e.indexOf("click")!==-1||t.indexOf("click")!==-1},isMouseEnterToShow(){const{action:e,showAction:t}=this.$props;return e.indexOf("hover")!==-1||t.indexOf("mouseenter")!==-1},isMouseLeaveToHide(){const{action:e,hideAction:t}=this.$props;return e.indexOf("hover")!==-1||t.indexOf("mouseleave")!==-1},isFocusToShow(){const{action:e,showAction:t}=this.$props;return e.indexOf("focus")!==-1||t.indexOf("focus")!==-1},isBlurToHide(){const{action:e,hideAction:t}=this.$props;return e.indexOf("focus")!==-1||t.indexOf("blur")!==-1},forcePopupAlign(){var e;this.$data.sPopupVisible&&((e=this.popupRef)===null||e===void 0||e.forceAlign())},fireEvents(e,t){this.childOriginEvents[e]&&this.childOriginEvents[e](t);const r=this.$props[e]||this.$attrs[e];r&&r(t)},close(){this.setPopupVisible(!1)}},render(){const{$attrs:e}=this,t=Cg(K6t(this)),{alignPoint:r,getPopupContainer:n}=this.$props,i=t[0];this.childOriginEvents=C_e(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[Jp?"onTouchstartPassive":"onTouchstart"]=this.onTouchstart):(a.onClick=this.createTwoChains("onClick"),a.onMousedown=this.createTwoChains("onMousedown"),a[Jp?"onTouchstartPassive":"onTouchstart"]=this.createTwoChains("onTouchstart")),this.isMouseEnterToShow()?(a.onMouseenter=this.onMouseenter,r&&(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||!v3(u.target,u.relatedTarget))&&this.createTwoChains("onBlur")(u)});const o=Vn(i&&i.props&&i.props.class,e.class);o&&(a.class=o);const s=aA(i,$e($e({},a),{ref:"triggerRef"}),!0,!0),l=De(WEe,{key:"portal",getContainer:n&&(()=>n(this.getRootDomNode())),didUpdate:this.handlePortalUpdate,visible:this.$data.sPopupVisible},{default:this.getComponent});return De(ls,null,[s,l])}});var wTt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{const t=e===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1}}}},ITt=$n({name:"SelectTrigger",inheritAttrs:!1,props:{dropdownAlign:Object,visible:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},dropdownClassName:String,dropdownStyle:cn.object,placement:String,empty:{type:Boolean,default:void 0},prefixCls:String,popupClassName:String,animation:String,transitionName:String,getPopupContainer:Function,dropdownRender:Function,containerWidth:Number,dropdownMatchSelectWidth:cn.oneOfType([Number,Boolean]).def(!0),popupElement:cn.any,direction:String,getTriggerDOMNode:Function,onPopupVisibleChange:Function,onPopupMouseEnter:Function},setup(e,t){let{slots:r,attrs:n,expose:i}=t;const a=vt(()=>{const{dropdownMatchSelectWidth:s}=e;return CTt(s)}),o=Hn();return i({getPopupElement:()=>o.value}),()=>{const s=$e($e({},e),n),{empty:l=!1}=s,u=wTt(s,["empty"]),{visible:c,dropdownAlign:A,prefixCls:f,popupElement:h,dropdownClassName:g,dropdownStyle:p,direction:m="ltr",placement:b,dropdownMatchSelectWidth:C,containerWidth:E,dropdownRender:_,animation:F,transitionName:M,getPopupContainer:N,getTriggerDOMNode:P,onPopupVisibleChange:j,onPopupMouseEnter:z}=u,W=`${f}-dropdown`;let Y=h;_&&(Y=_({menuNode:h,props:e}));const ee=F?`${W}-${F}`:M,q=$e({minWidth:`${E}px`},p);return typeof C=="number"?q.width=`${C}px`:C&&(q.width=`${E}px`),De(yL,Ot(Ot({},e),{},{showAction:j?["click"]:[],hideAction:j?["click"]:[],popupPlacement:b||(m==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:a.value,prefixCls:W,popupTransitionName:ee,popupAlign:A,popupVisible:c,getPopupContainer:N,popupClassName:Vn(g,{[`${W}-empty`]:l}),popupStyle:q,getTriggerDOMNode:P,onPopupVisibleChange:j}),{default:r.default,popup:()=>De("div",{ref:o,onMouseenter:z},[Y])})}}}),yi={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(t){const{keyCode:r}=t;if(t.altKey&&!t.ctrlKey||t.metaKey||r>=yi.F1&&r<=yi.F12)return!1;switch(r){case yi.ALT:case yi.CAPS_LOCK:case yi.CONTEXT_MENU:case yi.CTRL:case yi.DOWN:case yi.END:case yi.ESC:case yi.HOME:case yi.INSERT:case yi.LEFT:case yi.MAC_FF_META:case yi.META:case yi.NUMLOCK:case yi.NUM_CENTER:case yi.PAGE_DOWN:case yi.PAGE_UP:case yi.PAUSE:case yi.PRINT_SCREEN:case yi.RIGHT:case yi.SHIFT:case yi.UP:case yi.WIN_KEY:case yi.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(t){if(t>=yi.ZERO&&t<=yi.NINE||t>=yi.NUM_ZERO&&t<=yi.NUM_MULTIPLY||t>=yi.A&&t<=yi.Z||window.navigator.userAgent.indexOf("WebKit")!==-1&&t===0)return!0;switch(t){case yi.SPACE:case yi.QUESTION_MARK:case yi.NUM_PLUS:case yi.NUM_MINUS:case yi.NUM_PERIOD:case yi.NUM_DIVISION:case yi.SEMICOLON:case yi.DASH:case yi.EQUALS:case yi.COMMA:case yi.PERIOD:case yi.SLASH:case yi.APOSTROPHE:case yi.SINGLE_QUOTE:case yi.OPEN_SQUARE_BRACKET:case yi.BACKSLASH:case yi.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}},C6=(e,t)=>{let{slots:r}=t;var n;const{class:i,customizeIcon:a,customizeIconProps:o,onMousedown:s,onClick:l}=e;let u;return typeof a=="function"?u=a(o):u=a,De("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:De("span",{class:i.split(/\s+/).map(c=>`${c}-icon`)},[(n=r.default)===null||n===void 0?void 0:n.call(r)])])};C6.inheritAttrs=!1;C6.displayName="TransBtn";C6.props={class:String,customizeIcon:cn.any,customizeIconProps:cn.any,onMousedown:Function,onClick:Function};function ETt(e){e.target.composing=!0}function _8e(e){e.target.composing&&(e.target.composing=!1,BTt(e.target,"input"))}function BTt(e,t){const r=document.createEvent("HTMLEvents");r.initEvent(t,!0,!0),e.dispatchEvent(r)}function Lae(e,t,r,n){e.addEventListener(t,r,n)}const bL={created(e,t){(!t.modifiers||!t.modifiers.lazy)&&(Lae(e,"compositionstart",ETt),Lae(e,"compositionend",_8e),Lae(e,"change",_8e))}},xTt={inputRef:cn.any,prefixCls:String,id:String,inputElement:cn.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:cn.oneOfType([cn.number,cn.string]),attrs:cn.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}},Iot=$n({compatConfig:{MODE:3},name:"Input",inheritAttrs:!1,props:xTt,setup(e){let t=null;const r=Wo("VCSelectContainerEvent");return()=>{var n;const{prefixCls:i,id:a,inputElement:o,disabled:s,tabindex:l,autofocus:u,autocomplete:c,editable:A,activeDescendantId:f,value:h,onKeydown:g,onMousedown:p,onChange:m,onPaste:b,onCompositionstart:C,onCompositionend:E,onFocus:_,onBlur:F,open:M,inputRef:N,attrs:P}=e;let j=o||rp(De("input",null,null),[[bL]]);const z=j.props||{},{onKeydown:W,onInput:Y,onFocus:ee,onBlur:q,onMousedown:ae,onCompositionstart:se,onCompositionend:de,style:Ae}=z;return j=aA(j,$e($e($e($e($e({type:"search"},z),{id:a,ref:N,disabled:s,tabindex:l,autocomplete:c||"off",autofocus:u,class:Vn(`${i}-selection-search-input`,(n=j==null?void 0:j.props)===null||n===void 0?void 0:n.class),role:"combobox","aria-expanded":M,"aria-haspopup":"listbox","aria-owns":`${a}_list`,"aria-autocomplete":"list","aria-controls":`${a}_list`,"aria-activedescendant":f}),P),{value:A?h:"",readonly:!A,unselectable:A?null:"on",style:$e($e({},Ae),{opacity:A?null:0}),onKeydown:be=>{g(be),W&&W(be)},onMousedown:be=>{p(be),ae&&ae(be)},onInput:be=>{m(be),Y&&Y(be)},onCompositionstart(be){C(be),se&&se(be)},onCompositionend(be){E(be),de&&de(be)},onPaste:b,onFocus:function(){clearTimeout(t),ee&&ee(arguments.length<=0?void 0:arguments[0]),_&&_(arguments.length<=0?void 0:arguments[0]),r==null||r.focus(arguments.length<=0?void 0:arguments[0])},onBlur:function(){for(var be=arguments.length,Le=new Array(be),Ne=0;Ne{q&&q(Le[0]),F&&F(Le[0]),r==null||r.blur(Le[0])},100)}}),j.type==="textarea"?{}:{type:"search"}),!0,!0),j}}}),STt=`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`,kTt=`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`,T8e=`${STt} ${kTt}`.split(/[\s\n]+/),QTt="aria-",_Tt="data-";function D8e(e,t){return e.indexOf(t)===0}function H5(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r;t===!1?r={aria:!0,data:!0,attr:!0}:t===!0?r={aria:!0}:r=$e({},t);const n={};return Object.keys(e).forEach(i=>{(r.aria&&(i==="role"||D8e(i,QTt))||r.data&&D8e(i,_Tt)||r.attr&&(T8e.includes(i)||T8e.includes(i.toLowerCase())))&&(n[i]=e[i])}),n}const Eot=Symbol("OverflowContextProviderKey"),aye=$n({compatConfig:{MODE:3},name:"OverflowContextProvider",inheritAttrs:!1,props:{value:{type:Object}},setup(e,t){let{slots:r}=t;return Es(Eot,vt(()=>e.value)),()=>{var n;return(n=r.default)===null||n===void 0?void 0:n.call(r)}}}),TTt=()=>Wo(Eot,vt(()=>null));var DTt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);ie.responsive&&!e.display),a=Hn();n({itemNodeRef:a});function o(s){e.registerSize(e.itemKey,s)}return um(()=>{o(null)}),()=>{var s;const{prefixCls:l,invalidate:u,item:c,renderItem:A,responsive:f,registerSize:h,itemKey:g,display:p,order:m,component:b="div"}=e,C=DTt(e,["prefixCls","invalidate","item","renderItem","responsive","registerSize","itemKey","display","order","component"]),E=(s=r.default)===null||s===void 0?void 0:s.call(r),_=A&&c!==T_?A(c):E;let F;u||(F={opacity:i.value?0:1,height:i.value?0:T_,overflowY:i.value?"hidden":T_,order:f?m:T_,pointerEvents:i.value?"none":T_,position:i.value?"absolute":T_});const M={};return i.value&&(M["aria-hidden"]=!0),De(YE,{disabled:!f,onResize:N=>{let{offsetWidth:P}=N;o(P)}},{default:()=>De(b,Ot(Ot(Ot({class:Vn(!u&&l),style:F},M),C),{},{ref:a}),{default:()=>[_]})})}}});var Pae=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{var a;if(!i.value){const{component:A="div"}=e,f=Pae(e,["component"]);return De(A,Ot(Ot({},f),n),{default:()=>[(a=r.default)===null||a===void 0?void 0:a.call(r)]})}const o=i.value,{className:s}=o,l=Pae(o,["className"]),{class:u}=n,c=Pae(n,["class"]);return De(aye,{value:null},{default:()=>[De(fK,Ot(Ot(Ot({class:Vn(s,u)},l),c),e),r)]})}}});var RTt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);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:cn.any,component:String,itemComponent:cn.any,onVisibleChange:Function,ssr:String,onMousedown:Function}),DE=$n({name:"Overflow",inheritAttrs:!1,props:OTt(),emits:["visibleChange"],setup(e,t){let{attrs:r,emit:n,slots:i}=t;const a=vt(()=>e.ssr==="full"),o=sn(null),s=vt(()=>o.value||0),l=sn(new Map),u=sn(0),c=sn(0),A=sn(0),f=sn(null),h=sn(null),g=vt(()=>h.value===null&&a.value?Number.MAX_SAFE_INTEGER:h.value||0),p=sn(!1),m=vt(()=>`${e.prefixCls}-item`),b=vt(()=>Math.max(u.value,c.value)),C=vt(()=>!!(e.data.length&&e.maxCount===Bot)),E=vt(()=>e.maxCount===xot),_=vt(()=>C.value||typeof e.maxCount=="number"&&e.data.length>e.maxCount),F=vt(()=>{let ae=e.data;return C.value?o.value===null&&a.value?ae=e.data:ae=e.data.slice(0,Math.min(e.data.length,s.value/e.itemWidth)):typeof e.maxCount=="number"&&(ae=e.data.slice(0,e.maxCount)),ae}),M=vt(()=>C.value?e.data.slice(g.value+1):e.data.slice(F.value.length)),N=(ae,se)=>{var de;return typeof e.itemKey=="function"?e.itemKey(ae):(de=e.itemKey&&(ae==null?void 0:ae[e.itemKey]))!==null&&de!==void 0?de:se},P=vt(()=>e.renderItem||(ae=>ae)),j=(ae,se)=>{h.value=ae,se||(p.value=ae{o.value=se.clientWidth},W=(ae,se)=>{const de=new Map(l.value);se===null?de.delete(ae):de.set(ae,se),l.value=de},Y=(ae,se)=>{u.value=c.value,c.value=se},ee=(ae,se)=>{A.value=se},q=ae=>l.value.get(N(F.value[ae],ae));return di([s,l,c,A,()=>e.itemKey,F],()=>{if(s.value&&b.value&&F.value){let ae=A.value;const se=F.value.length,de=se-1;if(!se){j(0),f.value=null;return}for(let Ae=0;Aes.value){j(Ae-1),f.value=ae-be-A.value+c.value;break}}e.suffix&&q(0)+A.value>s.value&&(f.value=null)}}),()=>{const ae=p.value&&!!M.value.length,{itemComponent:se,renderRawItem:de,renderRawRest:Ae,renderRest:be,prefixCls:Le="rc-overflow",suffix:Ne,component:ue="div",id:Ke,onMousedown:Pe}=e,{class:je,style:Ye}=r,me=RTt(r,["class","style"]);let Se={};f.value!==null&&C.value&&(Se={position:"absolute",left:`${f.value}px`,top:0});const et={prefixCls:m.value,responsive:C.value,component:se,invalidate:E.value},nt=de?(Re,dt)=>{const Oe=N(Re,dt);return De(aye,{key:Oe,value:$e($e({},et),{order:dt,item:Re,itemKey:Oe,registerSize:W,display:dt<=g.value})},{default:()=>[de(Re,dt)]})}:(Re,dt)=>{const Oe=N(Re,dt);return De(fK,Ot(Ot({},et),{},{order:dt,key:Oe,item:Re,renderItem:P.value,itemKey:Oe,registerSize:W,display:dt<=g.value}),null)};let tt=()=>null;const ft={order:ae?g.value:Number.MAX_SAFE_INTEGER,className:`${m.value} ${m.value}-rest`,registerSize:Y,display:ae};if(Ae)Ae&&(tt=()=>De(aye,{value:$e($e({},et),ft)},{default:()=>[Ae(M.value)]}));else{const Re=be||MTt;tt=()=>De(fK,Ot(Ot({},et),ft),{default:()=>typeof Re=="function"?Re(M.value):Re})}const st=()=>{var Re;return De(ue,Ot({id:Ke,class:Vn(!E.value&&Le,je),style:Ye,onMousedown:Pe},me),{default:()=>[F.value.map(nt),_.value?tt():null,Ne&&De(fK,Ot(Ot({},et),{},{order:g.value,class:`${m.value}-suffix`,registerSize:ee,display:!0,style:Se}),{default:()=>Ne}),(Re=i.default)===null||Re===void 0?void 0:Re.call(i)]})};return De(YE,{disabled:!C.value,onResize:z},{default:st})}}});DE.Item=FTt;DE.RESPONSIVE=Bot;DE.INVALIDATE=xot;const NTt=Symbol("TreeSelectLegacyContextPropsKey");function YEe(){return Wo(NTt,{})}const LTt={id:String,prefixCls:String,values:cn.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:cn.any,placeholder:cn.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:cn.oneOfType([cn.number,cn.string]),removeIcon:cn.any,choiceTransitionName:String,maxTagCount:cn.oneOfType([cn.number,cn.string]),maxTagTextLength:Number,maxTagPlaceholder:cn.any.def(()=>e=>`+ ${e.length} ...`),tagRender:Function,onToggleOpen:{type:Function},onRemove:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},F8e=e=>{e.preventDefault(),e.stopPropagation()},PTt=$n({name:"MultipleSelectSelector",inheritAttrs:!1,props:LTt,setup(e){const t=sn(),r=sn(0),n=sn(!1),i=YEe(),a=vt(()=>`${e.prefixCls}-selection`),o=vt(()=>e.open||e.mode==="tags"?e.searchValue:""),s=vt(()=>e.mode==="tags"||e.showSearch&&(e.open||n.value));Is(()=>{di(o,()=>{r.value=t.value.scrollWidth},{flush:"post",immediate:!0})});function l(f,h,g,p,m){return De("span",{class:Vn(`${a.value}-item`,{[`${a.value}-item-disabled`]:g}),title:typeof f=="string"||typeof f=="number"?f.toString():void 0},[De("span",{class:`${a.value}-item-content`},[h]),p&&De(C6,{class:`${a.value}-item-remove`,onMousedown:F8e,onClick:m,customizeIcon:e.removeIcon},{default:()=>[t2("×")]})])}function u(f,h,g,p,m,b){var C;const E=F=>{F8e(F),e.onToggleOpen(!open)};let _=b;return i.keyEntities&&(_=((C=i.keyEntities[f])===null||C===void 0?void 0:C.node)||{}),De("span",{key:f,onMousedown:E},[e.tagRender({label:h,value:f,disabled:g,closable:p,onClose:m,option:_})])}function c(f){const{disabled:h,label:g,value:p,option:m}=f,b=!e.disabled&&!h;let C=g;if(typeof e.maxTagTextLength=="number"&&(typeof g=="string"||typeof g=="number")){const _=String(C);_.length>e.maxTagTextLength&&(C=`${_.slice(0,e.maxTagTextLength)}...`)}const E=_=>{var F;_&&_.stopPropagation(),(F=e.onRemove)===null||F===void 0||F.call(e,f)};return typeof e.tagRender=="function"?u(p,C,h,b,E,m):l(g,C,h,b,E)}function A(f){const{maxTagPlaceholder:h=p=>`+ ${p.length} ...`}=e,g=typeof h=="function"?h(f):h;return l(g,g,!1)}return()=>{const{id:f,prefixCls:h,values:g,open:p,inputRef:m,placeholder:b,disabled:C,autofocus:E,autocomplete:_,activeDescendantId:F,tabindex:M,onInputChange:N,onInputPaste:P,onInputKeyDown:j,onInputMouseDown:z,onInputCompositionStart:W,onInputCompositionEnd:Y}=e,ee=De("div",{class:`${a.value}-search`,style:{width:r.value+"px"},key:"input"},[De(Iot,{inputRef:m,open:p,prefixCls:h,id:f,inputElement:null,disabled:C,autofocus:E,autocomplete:_,editable:s.value,activeDescendantId:F,value:o.value,onKeydown:j,onMousedown:z,onChange:N,onPaste:P,onCompositionstart:W,onCompositionend:Y,tabindex:M,attrs:H5(e,!0),onFocus:()=>n.value=!0,onBlur:()=>n.value=!1},null),De("span",{ref:t,class:`${a.value}-search-mirror`,"aria-hidden":!0},[o.value,t2(" ")])]),q=De(DE,{prefixCls:`${a.value}-overflow`,data:g,renderItem:c,renderRest:A,suffix:ee,itemKey:"key",maxCount:e.maxTagCount,key:"overflow"},null);return De(ls,null,[q,!g.length&&!o.value&&De("span",{class:`${a.value}-placeholder`},[b])])}}}),UTt={inputElement:cn.any,id:String,prefixCls:String,values:cn.array,open:{type:Boolean,default:void 0},searchValue:String,inputRef:cn.any,placeholder:cn.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:cn.oneOfType([cn.number,cn.string]),activeValue:String,backfill:{type:Boolean,default:void 0},optionLabelRender:Function,onInputChange:Function,onInputPaste:Function,onInputKeyDown:Function,onInputMouseDown:Function,onInputCompositionStart:Function,onInputCompositionEnd:Function},qEe=$n({name:"SingleSelector",setup(e){const t=sn(!1),r=vt(()=>e.mode==="combobox"),n=vt(()=>r.value||e.showSearch),i=vt(()=>{let u=e.searchValue||"";return r.value&&e.activeValue&&!t.value&&(u=e.activeValue),u}),a=YEe();di([r,()=>e.activeValue],()=>{r.value&&(t.value=!1)},{immediate:!0});const o=vt(()=>e.mode!=="combobox"&&!e.open&&!e.showSearch?!1:!!i.value),s=vt(()=>{const u=e.values[0];return u&&(typeof u.label=="string"||typeof u.label=="number")?u.label.toString():void 0}),l=()=>{if(e.values[0])return null;const u=o.value?{visibility:"hidden"}:void 0;return De("span",{class:`${e.prefixCls}-selection-placeholder`,style:u},[e.placeholder])};return()=>{var u,c,A,f;const{inputElement:h,prefixCls:g,id:p,values:m,inputRef:b,disabled:C,autofocus:E,autocomplete:_,activeDescendantId:F,open:M,tabindex:N,optionLabelRender:P,onInputKeyDown:j,onInputMouseDown:z,onInputChange:W,onInputPaste:Y,onInputCompositionStart:ee,onInputCompositionEnd:q}=e,ae=m[0];let se=null;if(ae&&a.customSlots){const de=(u=ae.key)!==null&&u!==void 0?u:ae.value,Ae=((c=a.keyEntities[de])===null||c===void 0?void 0:c.node)||{};se=a.customSlots[(A=Ae.slots)===null||A===void 0?void 0:A.title]||a.customSlots.title||ae.label,typeof se=="function"&&(se=se(Ae))}else se=P&&ae?P(ae.option):ae==null?void 0:ae.label;return De(ls,null,[De("span",{class:`${g}-selection-search`},[De(Iot,{inputRef:b,prefixCls:g,id:p,open:M,inputElement:h,disabled:C,autofocus:E,autocomplete:_,editable:n.value,activeDescendantId:F,value:i.value,onKeydown:j,onMousedown:z,onChange:de=>{t.value=!0,W(de)},onPaste:Y,onCompositionstart:ee,onCompositionend:q,tabindex:N,attrs:H5(e,!0)},null)]),!r.value&&ae&&!o.value&&De("span",{class:`${g}-selection-item`,title:s.value},[De(ls,{key:(f=ae.key)!==null&&f!==void 0?f:ae.value},[se])]),l()])}}});qEe.props=UTt;qEe.inheritAttrs=!1;function HTt(e){return![yi.ESC,yi.SHIFT,yi.BACKSPACE,yi.TAB,yi.WIN_KEY,yi.ALT,yi.META,yi.WIN_KEY_RIGHT,yi.CTRL,yi.SEMICOLON,yi.EQUALS,yi.CAPS_LOCK,yi.CONTEXT_MENU,yi.F1,yi.F2,yi.F3,yi.F4,yi.F5,yi.F6,yi.F7,yi.F8,yi.F9,yi.F10,yi.F11,yi.F12].includes(e)}function Sot(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=null,r;el(()=>{clearTimeout(r)});function n(i){(i||t===null)&&(t=i),clearTimeout(r),r=setTimeout(()=>{t=null},e)}return[()=>t,n]}function KO(){const e=t=>{e.current=t};return e}const jTt=$n({name:"Selector",inheritAttrs:!1,props:{id:String,prefixCls:String,showSearch:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},values:cn.array,multiple:{type:Boolean,default:void 0},mode:String,searchValue:String,activeValue:String,inputElement:cn.any,autofocus:{type:Boolean,default:void 0},activeDescendantId:String,tabindex:cn.oneOfType([cn.number,cn.string]),disabled:{type:Boolean,default:void 0},placeholder:cn.any,removeIcon:cn.any,maxTagCount:cn.oneOfType([cn.number,cn.string]),maxTagTextLength:Number,maxTagPlaceholder:cn.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(e,t){let{expose:r}=t;const n=KO();let i=!1;const[a,o]=Sot(0),s=b=>{const{which:C}=b;(C===yi.UP||C===yi.DOWN)&&b.preventDefault(),e.onInputKeyDown&&e.onInputKeyDown(b),C===yi.ENTER&&e.mode==="tags"&&!i&&!e.open&&e.onSearchSubmit(b.target.value),HTt(C)&&e.onToggleOpen(!0)},l=()=>{o(!0)};let u=null;const c=b=>{e.onSearch(b,!0,i)!==!1&&e.onToggleOpen(!0)},A=()=>{i=!0},f=b=>{i=!1,e.mode!=="combobox"&&c(b.target.value)},h=b=>{let{target:{value:C}}=b;if(e.tokenWithEnter&&u&&/[\r\n]/.test(u)){const E=u.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");C=C.replace(E,u)}u=null,c(C)},g=b=>{const{clipboardData:C}=b;u=C.getData("text")},p=b=>{let{target:C}=b;C!==n.current&&(document.body.style.msTouchAction!==void 0?setTimeout(()=>{n.current.focus()}):n.current.focus())},m=b=>{const C=a();b.target!==n.current&&!C&&b.preventDefault(),(e.mode!=="combobox"&&(!e.showSearch||!C)||!e.open)&&(e.open&&e.onSearch("",!0,!1),e.onToggleOpen())};return r({focus:()=>{n.current.focus()},blur:()=>{n.current.blur()}}),()=>{const{prefixCls:b,domRef:C,mode:E}=e,_={inputRef:n,onInputKeyDown:s,onInputMouseDown:l,onInputChange:h,onInputPaste:g,onInputCompositionStart:A,onInputCompositionEnd:f},F=E==="multiple"||E==="tags"?De(PTt,Ot(Ot({},e),_),null):De(qEe,Ot(Ot({},e),_),null);return De("div",{ref:C,class:`${b}-selector`,onClick:p,onMousedown:m},[F])}}});function GTt(e,t,r){function n(i){var a,o,s;let l=i.target;l.shadowRoot&&i.composed&&(l=i.composedPath()[0]||l);const u=[(a=e[0])===null||a===void 0?void 0:a.value,(s=(o=e[1])===null||o===void 0?void 0:o.value)===null||s===void 0?void 0:s.getPopupElement()];t.value&&u.every(c=>c&&!c.contains(l)&&c!==l)&&r(!1)}Is(()=>{window.addEventListener("mousedown",n)}),el(()=>{window.removeEventListener("mousedown",n)})}function $Tt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10;const t=sn(!1);let r;const n=()=>{clearTimeout(r)};return Is(()=>{n()}),[t,(a,o)=>{n(),r=setTimeout(()=>{t.value=a,o&&o()},e)},n]}const kot=Symbol("BaseSelectContextKey");function zTt(e){return Es(kot,e)}function KTt(){return Wo(kot,{})}const JEe=()=>{if(typeof navigator>"u"||typeof window>"u")return!1;const e=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(e)||/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(e==null?void 0:e.substr(0,4))};var VTt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);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:cn.any,emptyOptions:Boolean}),Qot=()=>({showSearch:{type:Boolean,default:void 0},tagRender:{type:Function},optionLabelRender:{type:Function},direction:{type:String},tabindex:Number,autofocus:Boolean,notFoundContent:cn.any,placeholder:cn.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:cn.any,tokenSeparators:{type:Array},allowClear:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:void 0},inputIcon:cn.any,clearIcon:cn.any,removeIcon:cn.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}),qTt=()=>$e($e({},YTt()),Qot());function _ot(e){return e==="tags"||e==="multiple"}const JTt=$n({compatConfig:{MODE:3},name:"BaseSelect",inheritAttrs:!1,props:ju(qTt(),{showAction:[],notFoundContent:"Not Found"}),setup(e,t){let{attrs:r,expose:n,slots:i}=t;const a=vt(()=>_ot(e.mode)),o=vt(()=>e.showSearch!==void 0?e.showSearch:a.value||e.mode==="combobox"),s=sn(!1);Is(()=>{s.value=JEe()});const l=YEe(),u=sn(null),c=KO(),A=sn(null),f=sn(null),h=sn(null),[g,p,m]=$Tt();n({focus:()=>{var me;(me=f.value)===null||me===void 0||me.focus()},blur:()=>{var me;(me=f.value)===null||me===void 0||me.blur()},scrollTo:me=>{var Se;return(Se=h.value)===null||Se===void 0?void 0:Se.scrollTo(me)}});const E=vt(()=>{var me;if(e.mode!=="combobox")return e.searchValue;const Se=(me=e.displayValues[0])===null||me===void 0?void 0:me.value;return typeof Se=="string"||typeof Se=="number"?String(Se):""}),_=e.open!==void 0?e.open:e.defaultOpen,F=sn(_),M=sn(_),N=me=>{F.value=e.open!==void 0?e.open:me,M.value=F.value};di(()=>e.open,()=>{N(e.open)});const P=vt(()=>!e.notFoundContent&&e.emptyOptions);ks(()=>{M.value=F.value,(e.disabled||P.value&&M.value&&e.mode==="combobox")&&(M.value=!1)});const j=vt(()=>P.value?!1:M.value),z=me=>{const Se=me!==void 0?me:!M.value;F.value!==Se&&!e.disabled&&(N(Se),e.onDropdownVisibleChange&&e.onDropdownVisibleChange(Se))},W=vt(()=>(e.tokenSeparators||[]).some(me=>[` `,`\r `].includes(me))),Y=(me,Se,et)=>{var nt,tt;let ft=!0,st=me;(nt=e.onActiveValueChange)===null||nt===void 0||nt.call(e,null);const Re=et?null:i8t(me,e.tokenSeparators);return e.mode!=="combobox"&&Re&&(st="",(tt=e.onSearchSplit)===null||tt===void 0||tt.call(e,Re),z(!1),ft=!1),e.onSearch&&E.value!==st&&e.onSearch(st,{source:Se?"typing":"effect"}),ft},ee=me=>{var Se;!me||!me.trim()||(Se=e.onSearch)===null||Se===void 0||Se.call(e,me,{source:"submit"})};di(M,()=>{!M.value&&!a.value&&e.mode!=="combobox"&&Y("",!1,!1)},{immediate:!0,flush:"post"}),di(()=>e.disabled,()=>{F.value&&e.disabled&&N(!1)},{immediate:!0});const[q,ae]=Sot(),se=function(me){var Se;const et=q(),{which:nt}=me;if(nt===yi.ENTER&&(e.mode!=="combobox"&&me.preventDefault(),M.value||z(!0)),ae(!!E.value),nt===yi.BACKSPACE&&!et&&a.value&&!E.value&&e.displayValues.length){const Re=[...e.displayValues];let dt=null;for(let Oe=Re.length-1;Oe>=0;Oe-=1){const Ce=Re[Oe];if(!Ce.disabled){Re.splice(Oe,1),dt=Ce;break}}dt&&e.onDisplayValuesChange(Re,{type:"remove",values:[dt]})}for(var tt=arguments.length,ft=new Array(tt>1?tt-1:0),st=1;st1?Se-1:0),nt=1;nt{const Se=e.displayValues.filter(et=>et!==me);e.onDisplayValuesChange(Se,{type:"remove",values:[me]})},be=sn(!1);Es("VCSelectContainerEvent",{focus:function(){p(!0),e.disabled||(e.onFocus&&!be.value&&e.onFocus(...arguments),e.showAction&&e.showAction.includes("focus")&&z(!0)),be.value=!0},blur:function(){if(p(!1,()=>{be.value=!1,z(!1)}),e.disabled)return;const me=E.value;me&&(e.mode==="tags"?e.onSearch(me,{source:"submit"}):e.mode==="multiple"&&e.onSearch("",{source:"blur"})),e.onBlur&&e.onBlur(...arguments)}});const ue=[];Is(()=>{ue.forEach(me=>clearTimeout(me)),ue.splice(0,ue.length)}),el(()=>{ue.forEach(me=>clearTimeout(me)),ue.splice(0,ue.length)});const Ke=function(me){var Se,et;const{target:nt}=me,tt=(Se=A.value)===null||Se===void 0?void 0:Se.getPopupElement();if(tt&&tt.contains(nt)){const dt=setTimeout(()=>{var Oe;const Ce=ue.indexOf(dt);Ce!==-1&&ue.splice(Ce,1),m(),!s.value&&!tt.contains(document.activeElement)&&((Oe=f.value)===null||Oe===void 0||Oe.focus())});ue.push(dt)}for(var ft=arguments.length,st=new Array(ft>1?ft-1:0),Re=1;Re{je.update()};return Is(()=>{di(j,()=>{var me;if(j.value){const Se=Math.ceil((me=u.value)===null||me===void 0?void 0:me.offsetWidth);Pe.value!==Se&&!Number.isNaN(Se)&&(Pe.value=Se)}},{immediate:!0,flush:"post"})}),GTt([u,A],j,z),zTt(SEe($e($e({},BM(e)),{open:M,triggerOpen:j,showSearch:o,multiple:a,toggleOpen:z}))),()=>{const me=$e($e({},e),r),{prefixCls:Se,id:et,open:nt,defaultOpen:tt,mode:ft,showSearch:st,searchValue:Re,onSearch:dt,allowClear:Oe,clearIcon:Ce,showArrow:Be,inputIcon:We,disabled:mt,loading:Tt,getInputElement:bt,getPopupContainer:qt,placement:cr,animation:Gt,transitionName:Xt,dropdownStyle:Er,dropdownClassName:on,dropdownMatchSelectWidth:wn,dropdownRender:jr,dropdownAlign:ur,showAction:Hr,direction:Lr,tokenSeparators:Un,tagRender:en,optionLabelRender:Kn,onPopupScroll:qr,onDropdownVisibleChange:Gi,onFocus:za,onBlur:xa,onKeyup:Wa,onKeydown:$i,onMousedown:Ji,onClear:ci,omitDomProps:Ni,getRawInputElement:oo,displayValues:Ft,onDisplayValuesChange:ze,emptyOptions:Me,activeDescendantId:pe,activeValue:Ge,OptionList:ct}=me,Dt=VTt(me,["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"]),Pt=ft==="combobox"&&bt&&bt()||null,Vt=typeof oo=="function"&&oo(),Ar=$e({},Dt);let pn;Vt&&(pn=va=>{z(va)}),WTt.forEach(va=>{delete Ar[va]}),Ni==null||Ni.forEach(va=>{delete Ar[va]});const Kr=Be!==void 0?Be:Tt||!a.value&&ft!=="combobox";let xn;Kr&&(xn=De(C6,{class:Vn(`${Se}-arrow`,{[`${Se}-arrow-loading`]:Tt}),customizeIcon:We,customizeIconProps:{loading:Tt,searchValue:E.value,open:M.value,focused:g.value,showSearch:o.value}},null));let bn;const jn=()=>{ci==null||ci(),ze([],{type:"clear",values:Ft}),Y("",!1,!1)};!mt&&Oe&&(Ft.length||E.value)&&(bn=De(C6,{class:`${Se}-clear`,onMousedown:jn,customizeIcon:Ce},{default:()=>[t2("×")]}));const Br=De(ct,{ref:h},$e($e({},l.customSlots),{option:i.option})),ca=Vn(Se,r.class,{[`${Se}-focused`]:g.value,[`${Se}-multiple`]:a.value,[`${Se}-single`]:!a.value,[`${Se}-allow-clear`]:Oe,[`${Se}-show-arrow`]:Kr,[`${Se}-disabled`]:mt,[`${Se}-loading`]:Tt,[`${Se}-open`]:M.value,[`${Se}-customize-input`]:Pt,[`${Se}-show-search`]:o.value}),$r=De(ITt,{ref:A,disabled:mt,prefixCls:Se,visible:j.value,popupElement:Br,containerWidth:Pe.value,animation:Gt,transitionName:Xt,dropdownStyle:Er,dropdownClassName:on,direction:Lr,dropdownMatchSelectWidth:wn,dropdownRender:jr,dropdownAlign:ur,placement:cr,getPopupContainer:qt,empty:Me,getTriggerDOMNode:()=>c.current,onPopupVisibleChange:pn,onPopupMouseEnter:Ye},{default:()=>Vt?l0(Vt)&&aA(Vt,{ref:c},!1,!0):De(jTt,Ot(Ot({},e),{},{domRef:c,prefixCls:Se,inputElement:Pt,ref:f,id:et,showSearch:o.value,mode:ft,activeDescendantId:pe,tagRender:en,optionLabelRender:Kn,values:Ft,open:M.value,onToggleOpen:z,activeValue:Ge,searchValue:E.value,onSearch:Y,onSearchSubmit:ee,onRemove:Ae,tokenWithEnter:W.value}),null)});let Pi;return Vt?Pi=$r:Pi=De("div",Ot(Ot({},Ar),{},{class:ca,ref:u,onMousedown:Ke,onKeydown:se,onKeyup:de}),[g.value&&!M.value&&De("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},[`${Ft.map(va=>{let{label:Fi,value:Jr}=va;return["number","string"].includes(typeof Fi)?Fi:Jr}).join(", ")}`]),$r,xn,bn]),Pi}}}),gJ=(e,t)=>{let{height:r,offset:n,prefixCls:i,onInnerResize:a}=e,{slots:o}=t;var s;let l={},u={display:"flex",flexDirection:"column"};return n!==void 0&&(l={height:`${r}px`,position:"relative",overflow:"hidden"},u=$e($e({},u),{transform:`translateY(${n}px)`,position:"absolute",left:0,right:0,top:0})),De("div",{style:l},[De(YE,{onResize:c=>{let{offsetHeight:A}=c;A&&a&&a()}},{default:()=>[De("div",{style:u,class:Vn({[`${i}-holder-inner`]:i})},[(s=o.default)===null||s===void 0?void 0:s.call(o)])]})])};gJ.displayName="Filter";gJ.inheritAttrs=!1;gJ.props={prefixCls:String,height:Number,offset:Number,onInnerResize:Function};const Tot=(e,t)=>{let{setRef:r}=e,{slots:n}=t;var i;const a=sf((i=n.default)===null||i===void 0?void 0:i.call(n));return a.length?np(a[0],{ref:r}):a};Tot.props={setRef:{type:Function,default:()=>{}}};const XTt=20;function R8e(e){return"touches"in e?e.touches[0].pageY:e.pageY}const ZTt=$n({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:KO(),thumbRef:KO(),visibleTimeout:null,state:uc({dragging:!1,pageY:null,startTop:null,visible:!1})}},watch:{scrollTop:{handler(){this.delayHidden()},flush:"post"}},mounted(){var e,t;(e=this.scrollbarRef.current)===null||e===void 0||e.addEventListener("touchstart",this.onScrollbarTouchStart,Jp?{passive:!1}:!1),(t=this.thumbRef.current)===null||t===void 0||t.addEventListener("touchstart",this.onMouseDown,Jp?{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(e){e.preventDefault()},onContainerMouseDown(e){e.stopPropagation(),e.preventDefault()},patchEvents(){window.addEventListener("mousemove",this.onMouseMove),window.addEventListener("mouseup",this.onMouseUp),this.thumbRef.current.addEventListener("touchmove",this.onMouseMove,Jp?{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,Jp?{passive:!1}:!1),this.thumbRef.current&&(this.thumbRef.current.removeEventListener("touchstart",this.onMouseDown,Jp?{passive:!1}:!1),this.thumbRef.current.removeEventListener("touchmove",this.onMouseMove,Jp?{passive:!1}:!1),this.thumbRef.current.removeEventListener("touchend",this.onMouseUp)),ms.cancel(this.moveRaf)},onMouseDown(e){const{onStartMove:t}=this.$props;$e(this.state,{dragging:!0,pageY:R8e(e),startTop:this.getTop()}),t(),this.patchEvents(),e.stopPropagation(),e.preventDefault()},onMouseMove(e){const{dragging:t,pageY:r,startTop:n}=this.state,{onScroll:i}=this.$props;if(ms.cancel(this.moveRaf),t){const a=R8e(e)-r,o=n+a,s=this.getEnableScrollRange(),l=this.getEnableHeightRange(),u=l?o/l:0,c=Math.ceil(u*s);this.moveRaf=ms(()=>{i(c)})}},onMouseUp(){const{onStopMove:e}=this.$props;this.state.dragging=!1,e(),this.removeEvents()},getSpinHeight(){const{height:e,count:t}=this.$props;let r=e/t*10;return r=Math.max(r,XTt),r=Math.min(r,e/2),Math.floor(r)},getEnableScrollRange(){const{scrollHeight:e,height:t}=this.$props;return e-t||0},getEnableHeightRange(){const{height:e}=this.$props,t=this.getSpinHeight();return e-t||0},getTop(){const{scrollTop:e}=this.$props,t=this.getEnableScrollRange(),r=this.getEnableHeightRange();return e===0||t===0?0:e/t*r},showScroll(){const{height:e,scrollHeight:t}=this.$props;return t>e}},render(){const{dragging:e,visible:t}=this.state,{prefixCls:r}=this.$props,n=this.getSpinHeight()+"px",i=this.getTop()+"px",a=this.showScroll(),o=a&&t;return De("div",{ref:this.scrollbarRef,class:Vn(`${r}-scrollbar`,{[`${r}-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},[De("div",{ref:this.thumbRef,class:Vn(`${r}-scrollbar-thumb`,{[`${r}-scrollbar-thumb-moving`]:e}),style:{width:"100%",height:n,top:i,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:"99px",cursor:"pointer",userSelect:"none"},onMousedown:this.onMouseDown},null)])}});function eDt(e,t,r,n){const i=new Map,a=new Map,o=Hn(Symbol("update"));di(e,()=>{o.value=Symbol("update")});let s;function l(){ms.cancel(s)}function u(){l(),s=ms(()=>{i.forEach((A,f)=>{if(A&&A.offsetParent){const{offsetHeight:h}=A;a.get(f)!==h&&(o.value=Symbol("update"),a.set(f,A.offsetHeight))}})})}function c(A,f){const h=t(A);i.get(h),f?(i.set(h,f.$el||f),u()):i.delete(h)}return um(()=>{l()}),[c,u,a,o]}function tDt(e,t,r,n,i,a,o,s){let l;return u=>{if(u==null){s();return}ms.cancel(l);const c=t.value,A=n.itemHeight;if(typeof u=="number")o(u);else if(u&&typeof u=="object"){let f;const{align:h}=u;"index"in u?{index:f}=u:f=c.findIndex(m=>i(m)===u.key);const{offset:g=0}=u,p=(m,b)=>{if(m<0||!e.value)return;const C=e.value.clientHeight;let E=!1,_=b;if(C){const F=b||h;let M=0,N=0,P=0;const j=Math.min(c.length,f);for(let Y=0;Y<=j;Y+=1){const ee=i(c[Y]);N=M;const q=r.get(ee);P=N+(q===void 0?A:q),M=P,Y===f&&q===void 0&&(E=!0)}const z=e.value.scrollTop;let W=null;switch(F){case"top":W=N-g;break;case"bottom":W=P-C+g;break;default:{const Y=z+C;NY&&(_="bottom")}}W!==null&&W!==z&&o(W)}l=ms(()=>{E&&a(),p(m-1,_)},2)};p(5)}}}const rDt=typeof navigator=="object"&&/Firefox/i.test(navigator.userAgent),Dot=(e,t)=>{let r=!1,n=null;function i(){clearTimeout(n),r=!0,n=setTimeout(()=>{r=!1},50)}return function(a){let o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const s=a<0&&e.value||a>0&&t.value;return o&&s?(clearTimeout(n),r=!1):(!s||r)&&i(),!r&&s}};function nDt(e,t,r,n){let i=0,a=null,o=null,s=!1;const l=Dot(t,r);function u(A){if(!e.value)return;ms.cancel(a);const{deltaY:f}=A;i+=f,o=f,!l(f)&&(rDt||A.preventDefault(),a=ms(()=>{n(i*(s?10:1)),i=0}))}function c(A){e.value&&(s=A.detail===o)}return[u,c]}const iDt=14/15;function aDt(e,t,r){let n=!1,i=0,a=null,o=null;const s=()=>{a&&(a.removeEventListener("touchmove",l),a.removeEventListener("touchend",u))},l=f=>{if(n){const h=Math.ceil(f.touches[0].pageY);let g=i-h;i=h,r(g)&&f.preventDefault(),clearInterval(o),o=setInterval(()=>{g*=iDt,(!r(g,!0)||Math.abs(g)<=.1)&&clearInterval(o)},16)}},u=()=>{n=!1,s()},c=f=>{s(),f.touches.length===1&&!n&&(n=!0,i=Math.ceil(f.touches[0].pageY),a=f.target,a.addEventListener("touchmove",l,{passive:!1}),a.addEventListener("touchend",u))},A=()=>{};Is(()=>{document.addEventListener("touchmove",A,{passive:!1}),di(e,f=>{t.value.removeEventListener("touchstart",c),s(),clearInterval(o),f&&t.value.addEventListener("touchstart",c,{passive:!1})},{immediate:!0})}),el(()=>{document.removeEventListener("touchmove",A)})}var oDt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{const u=t+l,c=i(s,u,{}),A=o(s);return De(Tot,{key:A,setRef:f=>n(s,f)},{default:()=>[c]})})}const Fot=$n({compatConfig:{MODE:3},name:"List",inheritAttrs:!1,props:{prefixCls:String,data:cn.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(e,t){let{expose:r}=t;const n=vt(()=>{const{height:Ae,itemHeight:be,virtual:Le}=e;return!!(Le!==!1&&Ae&&be)}),i=vt(()=>{const{height:Ae,itemHeight:be,data:Le}=e;return n.value&&Le&&be*Le.length>Ae}),a=uc({scrollTop:0,scrollMoving:!1}),o=vt(()=>e.data||sDt),s=sn([]);di(o,()=>{s.value=ll(o.value).slice()},{immediate:!0});const l=sn(Ae=>{});di(()=>e.itemKey,Ae=>{typeof Ae=="function"?l.value=Ae:l.value=be=>be==null?void 0:be[Ae]},{immediate:!0});const u=sn(),c=sn(),A=sn(),f=Ae=>l.value(Ae),h={getKey:f};function g(Ae){let be;typeof Ae=="function"?be=Ae(a.scrollTop):be=Ae;const Le=M(be);u.value&&(u.value.scrollTop=Le),a.scrollTop=Le}const[p,m,b,C]=eDt(s,f),E=uc({scrollHeight:void 0,start:0,end:0,offset:void 0}),_=sn(0);Is(()=>{il(()=>{var Ae;_.value=((Ae=c.value)===null||Ae===void 0?void 0:Ae.offsetHeight)||0})}),lm(()=>{il(()=>{var Ae;_.value=((Ae=c.value)===null||Ae===void 0?void 0:Ae.offsetHeight)||0})}),di([n,s],()=>{n.value||$e(E,{scrollHeight:void 0,start:0,end:s.value.length-1,offset:void 0})},{immediate:!0}),di([n,s,_,i],()=>{n.value&&!i.value&&$e(E,{scrollHeight:_.value,start:0,end:s.value.length-1,offset:void 0}),u.value&&(a.scrollTop=u.value.scrollTop)},{immediate:!0}),di([i,n,()=>a.scrollTop,s,C,()=>e.height,_],()=>{if(!n.value||!i.value)return;let Ae=0,be,Le,Ne;const ue=s.value.length,Ke=s.value,Pe=a.scrollTop,{itemHeight:je,height:Ye}=e,me=Pe+Ye;for(let Se=0;Se=Pe&&(be=Se,Le=Ae),Ne===void 0&&ft>me&&(Ne=Se),Ae=ft}be===void 0&&(be=0,Le=0,Ne=Math.ceil(Ye/je)),Ne===void 0&&(Ne=ue-1),Ne=Math.min(Ne+1,ue),$e(E,{scrollHeight:Ae,start:be,end:Ne,offset:Le})},{immediate:!0});const F=vt(()=>E.scrollHeight-e.height);function M(Ae){let be=Ae;return Number.isNaN(F.value)||(be=Math.min(be,F.value)),be=Math.max(be,0),be}const N=vt(()=>a.scrollTop<=0),P=vt(()=>a.scrollTop>=F.value),j=Dot(N,P);function z(Ae){g(Ae)}function W(Ae){var be;const{scrollTop:Le}=Ae.currentTarget;Le!==a.scrollTop&&g(Le),(be=e.onScroll)===null||be===void 0||be.call(e,Ae)}const[Y,ee]=nDt(n,N,P,Ae=>{g(be=>be+Ae)});aDt(n,u,(Ae,be)=>j(Ae,be)?!1:(Y({preventDefault(){},deltaY:Ae}),!0));function q(Ae){n.value&&Ae.preventDefault()}const ae=()=>{u.value&&(u.value.removeEventListener("wheel",Y,Jp?{passive:!1}:!1),u.value.removeEventListener("DOMMouseScroll",ee),u.value.removeEventListener("MozMousePixelScroll",q))};ks(()=>{il(()=>{u.value&&(ae(),u.value.addEventListener("wheel",Y,Jp?{passive:!1}:!1),u.value.addEventListener("DOMMouseScroll",ee),u.value.addEventListener("MozMousePixelScroll",q))})}),el(()=>{ae()});const se=tDt(u,s,b,e,f,m,g,()=>{var Ae;(Ae=A.value)===null||Ae===void 0||Ae.delayHidden()});r({scrollTo:se});const de=vt(()=>{let Ae=null;return e.height&&(Ae=$e({[e.fullHeight?"height":"maxHeight"]:e.height+"px"},lDt),n.value&&(Ae.overflowY="hidden",a.scrollMoving&&(Ae.pointerEvents="none"))),Ae});return di([()=>E.start,()=>E.end,s],()=>{if(e.onVisibleChange){const Ae=s.value.slice(E.start,E.end+1);e.onVisibleChange(Ae,s.value)}},{flush:"post"}),{state:a,mergedData:s,componentStyle:de,onFallbackScroll:W,onScrollBar:z,componentRef:u,useVirtual:n,calRes:E,collectHeight:m,setInstance:p,sharedConfig:h,scrollBarRef:A,fillerInnerRef:c}},render(){const e=$e($e({},this.$props),this.$attrs),{prefixCls:t="rc-virtual-list",height:r,itemHeight:n,fullHeight:i,data:a,itemKey:o,virtual:s,component:l="div",onScroll:u,children:c=this.$slots.default,style:A,class:f}=e,h=oDt(e,["prefixCls","height","itemHeight","fullHeight","data","itemKey","virtual","component","onScroll","children","style","class"]),g=Vn(t,f),{scrollTop:p}=this.state,{scrollHeight:m,offset:b,start:C,end:E}=this.calRes,{componentStyle:_,onFallbackScroll:F,onScrollBar:M,useVirtual:N,collectHeight:P,sharedConfig:j,setInstance:z,mergedData:W}=this;return De("div",Ot({style:$e($e({},A),{position:"relative"}),class:g},h),[De(l,{class:`${t}-holder`,style:_,ref:"componentRef",onScroll:F},{default:()=>[De(gJ,{prefixCls:t,height:m,offset:b,onInnerResize:P,ref:"fillerInnerRef"},{default:()=>uDt(W,C,E,z,c,j)})]}),N&&De(ZTt,{ref:"scrollBarRef",prefixCls:t,scrollTop:p,height:r,scrollHeight:m,count:W.length,onScroll:M,onStartMove:()=>{this.state.scrollMoving=!0},onStopMove:()=>{this.state.scrollMoving=!1}},null)])}});function Rot(e,t,r){const n=Hn(e());return di(t,(i,a)=>{r?r(i,a)&&(n.value=e()):n.value=e()}),n}function cDt(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}const Mot=Symbol("SelectContextKey");function ADt(e){return Es(Mot,e)}function fDt(){return Wo(Mot,{})}var hDt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i`${i.prefixCls}-item`),s=Rot(()=>a.flattenOptions,[()=>i.open,()=>a.flattenOptions],F=>F[0]),l=KO(),u=F=>{F.preventDefault()},c=F=>{l.current&&l.current.scrollTo(typeof F=="number"?{index:F}:F)},A=function(F){let M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;const N=s.value.length;for(let P=0;P1&&arguments[1]!==void 0?arguments[1]:!1;f.activeIndex=F;const N={source:M?"keyboard":"mouse"},P=s.value[F];if(!P){a.onActiveValue(null,-1,N);return}a.onActiveValue(P.value,F,N)};di([()=>s.value.length,()=>i.searchValue],()=>{h(a.defaultActiveFirstOption!==!1?A(0):-1)},{immediate:!0});const g=F=>a.rawValues.has(F)&&i.mode!=="combobox";di([()=>i.open,()=>i.searchValue],()=>{if(!i.multiple&&i.open&&a.rawValues.size===1){const F=Array.from(a.rawValues)[0],M=ll(s.value).findIndex(N=>{let{data:P}=N;return P[a.fieldNames.value]===F});M!==-1&&(h(M),il(()=>{c(M)}))}i.open&&il(()=>{var F;(F=l.current)===null||F===void 0||F.scrollTo(void 0)})},{immediate:!0,flush:"post"});const p=F=>{F!==void 0&&a.onSelect(F,{selected:!a.rawValues.has(F)}),i.multiple||i.toggleOpen(!1)},m=F=>typeof F.label=="function"?F.label():F.label;function b(F){const M=s.value[F];if(!M)return null;const N=M.data||{},{value:P}=N,{group:j}=M,z=H5(N,!0),W=m(M);return M?De("div",Ot(Ot({"aria-label":typeof W=="string"&&!j?W:null},z),{},{key:F,role:j?"presentation":"option",id:`${i.id}_list_${F}`,"aria-selected":g(P)}),[P]):null}return r({onKeydown:F=>{const{which:M,ctrlKey:N}=F;switch(M){case yi.N:case yi.P:case yi.UP:case yi.DOWN:{let P=0;if(M===yi.UP?P=-1:M===yi.DOWN?P=1:cDt()&&N&&(M===yi.N?P=1:M===yi.P&&(P=-1)),P!==0){const j=A(f.activeIndex+P,P);c(j),h(j,!0)}break}case yi.ENTER:{const P=s.value[f.activeIndex];P&&!P.data.disabled?p(P.value):p(void 0),i.open&&F.preventDefault();break}case yi.ESC:i.toggleOpen(!1),i.open&&F.stopPropagation()}},onKeyup:()=>{},scrollTo:F=>{c(F)}}),()=>{const{id:F,notFoundContent:M,onPopupScroll:N}=i,{menuItemSelectedIcon:P,fieldNames:j,virtual:z,listHeight:W,listItemHeight:Y}=a,ee=n.option,{activeIndex:q}=f,ae=Object.keys(j).map(se=>j[se]);return s.value.length===0?De("div",{role:"listbox",id:`${F}_list`,class:`${o.value}-empty`,onMousedown:u},[M]):De(ls,null,[De("div",{role:"listbox",id:`${F}_list`,style:{height:0,width:0,overflow:"hidden"}},[b(q-1),b(q),b(q+1)]),De(Fot,{itemKey:"key",ref:l,data:s.value,height:W,itemHeight:Y,fullHeight:!1,onMousedown:u,onScroll:N,virtual:z},{default:(se,de)=>{var Ae;const{group:be,groupOption:Le,data:Ne,value:ue}=se,{key:Ke}=Ne,Pe=typeof se.label=="function"?se.label():se.label;if(be){const mt=(Ae=Ne.title)!==null&&Ae!==void 0?Ae:M8e(Pe)&&Pe;return De("div",{class:Vn(o.value,`${o.value}-group`),title:mt},[ee?ee(Ne):Pe!==void 0?Pe:Ke])}const{disabled:je,title:Ye,children:me,style:Se,class:et,className:nt}=Ne,tt=hDt(Ne,["disabled","title","children","style","class","className"]),ft=Cc(tt,ae),st=g(ue),Re=`${o.value}-option`,dt=Vn(o.value,Re,et,nt,{[`${Re}-grouped`]:Le,[`${Re}-active`]:q===de&&!je,[`${Re}-disabled`]:je,[`${Re}-selected`]:st}),Oe=m(se),Ce=!P||typeof P=="function"||st,Be=typeof Oe=="number"?Oe:Oe||ue;let We=M8e(Be)?Be.toString():void 0;return Ye!==void 0&&(We=Ye),De("div",Ot(Ot({},ft),{},{"aria-selected":st,class:dt,title:We,onMousemove:mt=>{tt.onMousemove&&tt.onMousemove(mt),!(q===de||je)&&h(de)},onClick:mt=>{je||p(ue),tt.onClick&&tt.onClick(mt)},style:Se}),[De("div",{class:`${Re}-content`},[ee?ee(Ne):Be]),l0(P)||st,Ce&&De(C6,{class:`${o.value}-option-state`,customizeIcon:P,customizeIconProps:{isSelected:st}},{default:()=>[st?"✓":null]})])}})])}}});var gDt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i1&&arguments[1]!==void 0?arguments[1]:!1;return sf(e).map((n,i)=>{var a;if(!l0(n)||!n.type)return null;const{type:{isSelectOptGroup:o},key:s,children:l,props:u}=n;if(t||!o)return pDt(n);const c=l&&l.default?l.default():void 0,A=(u==null?void 0:u.label)||((a=l.label)===null||a===void 0?void 0:a.call(l))||s;return $e($e({key:`__RC_SELECT_GRP__${s===null?i:String(s)}__`},u),{label:A,options:Oot(c||[])})}).filter(n=>n)}function vDt(e,t,r){const n=sn(),i=sn(),a=sn(),o=sn([]);return di([e,t],()=>{e.value?o.value=ll(e.value).slice():o.value=Oot(t.value)},{immediate:!0,deep:!0}),ks(()=>{const s=o.value,l=new Map,u=new Map,c=r.value;function A(f){let h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;for(let g=0;g0&&arguments[0]!==void 0?arguments[0]:Hn("");const t=`rc_select_${yDt()}`;return e.value||t}function Not(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}function Uae(e,t){return Not(e).join("").toUpperCase().includes(t)}const wDt=(e,t,r,n,i)=>vt(()=>{const a=r.value,o=i==null?void 0:i.value,s=n==null?void 0:n.value;if(!a||s===!1)return e.value;const{options:l,label:u,value:c}=t.value,A=[],f=typeof s=="function",h=a.toUpperCase(),g=f?s:(m,b)=>o?Uae(b[o],h):b[l]?Uae(b[u!=="children"?u:"label"],h):Uae(b[c],h),p=f?m=>q1e(m):m=>m;return e.value.forEach(m=>{if(m[l]){if(g(a,p(m)))A.push(m);else{const C=m[l].filter(E=>g(a,p(E)));C.length&&A.push($e($e({},m),{[l]:C}))}return}g(a,p(m))&&A.push(m)}),A}),CDt=(e,t)=>{const r=sn({values:new Map,options:new Map});return[vt(()=>{const{values:a,options:o}=r.value,s=e.value.map(c=>{var A;return c.label===void 0?$e($e({},c),{label:(A=a.get(c.value))===null||A===void 0?void 0:A.label}):c}),l=new Map,u=new Map;return s.forEach(c=>{l.set(c.value,c),u.set(c.value,t.value.get(c.value)||o.get(c.value))}),r.value.values=l,r.value.options=u,s}),a=>t.value.get(a)||r.value.options.get(a)]};function Vg(e,t){const{defaultValue:r,value:n=Hn()}=t||{};let i=typeof e=="function"?e():e;n.value!==void 0&&(i=bA(n)),r!==void 0&&(i=typeof r=="function"?r():r);const a=Hn(i),o=Hn(i);ks(()=>{let l=n.value!==void 0?n.value:a.value;t.postState&&(l=t.postState(l)),o.value=l});function s(l){const u=o.value;a.value=l,ll(o.value)!==l&&t.onChange&&t.onChange(l,u)}return di(n,()=>{a.value=n.value}),[o,s]}function Hu(e){const t=typeof e=="function"?e():e,r=Hn(t);function n(i){r.value=i}return[r,n]}const IDt=["inputValue"];function Lot(){return $e($e({},Qot()),{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:cn.any,mode:String,labelInValue:{type:Boolean,default:void 0},value:cn.any,defaultValue:cn.any,onChange:Function,children:Array})}function EDt(e){return!e||typeof e!="object"}const BDt=$n({compatConfig:{MODE:3},name:"Select",inheritAttrs:!1,props:ju(Lot(),{prefixCls:"vc-select",autoClearSearchValue:!0,listHeight:200,listItemHeight:20,dropdownMatchSelectWidth:!0}),setup(e,t){let{expose:r,attrs:n,slots:i}=t;const a=bDt(ws(e,"id")),o=vt(()=>_ot(e.mode)),s=vt(()=>!!(!e.options&&e.children)),l=vt(()=>e.filterOption===void 0&&e.mode==="combobox"?!1:e.filterOption),u=vt(()=>eot(e.fieldNames,s.value)),[c,A]=Vg("",{value:vt(()=>e.searchValue!==void 0?e.searchValue:e.inputValue),postState:et=>et||""}),f=vDt(ws(e,"options"),ws(e,"children"),u),{valueOptions:h,labelOptions:g,options:p}=f,m=et=>Not(et).map(tt=>{var ft,st;let Re,dt,Oe,Ce;EDt(tt)?Re=tt:(Oe=tt.key,dt=tt.label,Re=(ft=tt.value)!==null&&ft!==void 0?ft:Oe);const Be=h.value.get(Re);return Be&&(dt===void 0&&(dt=Be==null?void 0:Be[e.optionLabelProp||u.value.label]),Oe===void 0&&(Oe=(st=Be==null?void 0:Be.key)!==null&&st!==void 0?st:Re),Ce=Be==null?void 0:Be.disabled),{label:dt,value:Re,key:Oe,disabled:Ce,option:Be}}),[b,C]=Vg(e.defaultValue,{value:ws(e,"value")}),E=vt(()=>{var et;const nt=m(b.value);return e.mode==="combobox"&&!(!((et=nt[0])===null||et===void 0)&&et.value)?[]:nt}),[_,F]=CDt(E,h),M=vt(()=>{if(!e.mode&&_.value.length===1){const et=_.value[0];if(et.value===null&&(et.label===null||et.label===void 0))return[]}return _.value.map(et=>{var nt;return $e($e({},et),{label:(nt=typeof et.label=="function"?et.label():et.label)!==null&&nt!==void 0?nt:et.value})})}),N=vt(()=>new Set(_.value.map(et=>et.value)));ks(()=>{var et;if(e.mode==="combobox"){const nt=(et=_.value[0])===null||et===void 0?void 0:et.value;nt!=null&&A(String(nt))}},{flush:"post"});const P=(et,nt)=>{const tt=nt??et;return{[u.value.value]:et,[u.value.label]:tt}},j=sn();ks(()=>{if(e.mode!=="tags"){j.value=p.value;return}const et=p.value.slice(),nt=tt=>h.value.has(tt);[..._.value].sort((tt,ft)=>tt.value{const ft=tt.value;nt(ft)||et.push(P(ft,tt.label))}),j.value=et});const z=wDt(j,u,c,l,ws(e,"optionFilterProp")),W=vt(()=>e.mode!=="tags"||!c.value||z.value.some(et=>et[e.optionFilterProp||"value"]===c.value)?z.value:[P(c.value),...z.value]),Y=vt(()=>e.filterSort?[...W.value].sort((et,nt)=>e.filterSort(et,nt)):W.value),ee=vt(()=>n8t(Y.value,{fieldNames:u.value,childrenAsData:s.value})),q=et=>{const nt=m(et);if(C(nt),e.onChange&&(nt.length!==_.value.length||nt.some((tt,ft)=>{var st;return((st=_.value[ft])===null||st===void 0?void 0:st.value)!==(tt==null?void 0:tt.value)}))){const tt=e.labelInValue?nt.map(st=>$e($e({},st),{originLabel:st.label,label:typeof st.label=="function"?st.label():st.label})):nt.map(st=>st.value),ft=nt.map(st=>q1e(F(st.value)));e.onChange(o.value?tt:tt[0],o.value?ft:ft[0])}},[ae,se]=Hu(null),[de,Ae]=Hu(0),be=vt(()=>e.defaultActiveFirstOption!==void 0?e.defaultActiveFirstOption:e.mode!=="combobox"),Le=function(et,nt){let{source:tt="keyboard"}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Ae(nt),e.backfill&&e.mode==="combobox"&&et!==null&&tt==="keyboard"&&se(String(et))},Ne=(et,nt)=>{const tt=()=>{var ft;const st=F(et),Re=st==null?void 0:st[u.value.label];return[e.labelInValue?{label:typeof Re=="function"?Re():Re,originLabel:Re,value:et,key:(ft=st==null?void 0:st.key)!==null&&ft!==void 0?ft:et}:et,q1e(st)]};if(nt&&e.onSelect){const[ft,st]=tt();e.onSelect(ft,st)}else if(!nt&&e.onDeselect){const[ft,st]=tt();e.onDeselect(ft,st)}},ue=(et,nt)=>{let tt;const ft=o.value?nt.selected:!0;ft?tt=o.value?[..._.value,et]:[et]:tt=_.value.filter(st=>st.value!==et),q(tt),Ne(et,ft),e.mode==="combobox"?se(""):(!o.value||e.autoClearSearchValue)&&(A(""),se(""))},Ke=(et,nt)=>{q(et),(nt.type==="remove"||nt.type==="clear")&&nt.values.forEach(tt=>{Ne(tt.value,!1)})},Pe=(et,nt)=>{var tt;if(A(et),se(null),nt.source==="submit"){const ft=(et||"").trim();if(ft){const st=Array.from(new Set([...N.value,ft]));q(st),Ne(ft,!0),A("")}return}nt.source!=="blur"&&(e.mode==="combobox"&&q(et),(tt=e.onSearch)===null||tt===void 0||tt.call(e,et))},je=et=>{let nt=et;e.mode!=="tags"&&(nt=et.map(ft=>{const st=g.value.get(ft);return st==null?void 0:st.value}).filter(ft=>ft!==void 0));const tt=Array.from(new Set([...N.value,...nt]));q(tt),tt.forEach(ft=>{Ne(ft,!0)})},Ye=vt(()=>e.virtual!==!1&&e.dropdownMatchSelectWidth!==!1);ADt(SEe($e($e({},f),{flattenOptions:ee,onActiveValue:Le,defaultActiveFirstOption:be,onSelect:ue,menuItemSelectedIcon:ws(e,"menuItemSelectedIcon"),rawValues:N,fieldNames:u,virtual:Ye,listHeight:ws(e,"listHeight"),listItemHeight:ws(e,"listItemHeight"),childrenAsData:s})));const me=Hn();r({focus(){var et;(et=me.value)===null||et===void 0||et.focus()},blur(){var et;(et=me.value)===null||et===void 0||et.blur()},scrollTo(et){var nt;(nt=me.value)===null||nt===void 0||nt.scrollTo(et)}});const Se=vt(()=>Cc(e,["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()=>De(JTt,Ot(Ot(Ot({},Se.value),n),{},{id:a,prefixCls:e.prefixCls,ref:me,omitDomProps:IDt,mode:e.mode,displayValues:M.value,onDisplayValuesChange:Ke,searchValue:c.value,onSearch:Pe,onSearchSplit:je,dropdownMatchSelectWidth:e.dropdownMatchSelectWidth,OptionList:dDt,emptyOptions:!ee.value.length,activeValue:ae.value,activeDescendantId:`${a}_list_${de.value}`}),i)}}),XEe=()=>null;XEe.isSelectOption=!0;XEe.displayName="ASelectOption";const ZEe=()=>null;ZEe.isSelectOptGroup=!0;ZEe.displayName="ASelectOptGroup";var Pot={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"},N8e=[],DF=[],xDt="insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).";function SDt(){var e=document.createElement("style");return e.setAttribute("type","text/css"),e}function kDt(e,t){if(t=t||{},e===void 0)throw new Error(xDt);var r=t.prepend===!0?"prepend":"append",n=t.container!==void 0?t.container:document.querySelector("head"),i=N8e.indexOf(n);i===-1&&(i=N8e.push(n)-1,DF[i]={});var a;return DF[i]!==void 0&&DF[i][r]!==void 0?a=DF[i][r]:(a=DF[i][r]=SDt(),r==="prepend"?n.insertBefore(a,n.childNodes[0]):n.appendChild(a)),e.charCodeAt(0)===65279&&(e=e.substr(1,e.length)),a.styleSheet?a.styleSheet.cssText+=e:a.textContent+=e,a}function L8e(e){for(var t=1;t * { 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); } } `,U8e=!1,jot=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:TDt;il(function(){U8e||(typeof window<"u"&&window.document&&window.document.documentElement&&kDt(t,{prepend:!0}),U8e=!0)})},DDt=["icon","primaryColor","secondaryColor"];function FDt(e,t){if(e==null)return{};var r=RDt(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function RDt(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function hK(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function JDt(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}Got("#1890ff");var ml=function(t,r){var n,i=G8e({},t,r.attrs),a=i.class,o=i.icon,s=i.spin,l=i.rotate,u=i.tabindex,c=i.twoToneColor,A=i.onClick,f=qDt(i,$Dt),h=(n={anticon:!0},sye(n,"anticon-".concat(o.name),!!o.name),sye(n,a,a),n),g=s===""||s||o.name==="loading"?"anticon-spin":"",p=u;p===void 0&&A&&(p=-1,f.tabindex=p);var m=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,b=Hot(c),C=zDt(b,2),E=C[0],_=C[1];return De("span",G8e({role:"img","aria-label":o.name},f,{onClick:A,class:h}),[De(j5,{class:g,icon:o,primaryColor:E,secondaryColor:_,style:m},null)])};ml.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:String};ml.displayName="AntdIcon";ml.inheritAttrs=!1;ml.getTwoToneColor=GDt;ml.setTwoToneColor=Got;function $8e(e){for(var t=1;t1&&arguments[1]!==void 0?arguments[1]:{};const{loading:r,multiple:n,prefixCls:i,hasFeedback:a,feedbackIcon:o,showArrow:s}=e,l=e.suffixIcon||t.suffixIcon&&t.suffixIcon(),u=e.clearIcon||t.clearIcon&&t.clearIcon(),c=e.menuItemSelectedIcon||t.menuItemSelectedIcon&&t.menuItemSelectedIcon(),A=e.removeIcon||t.removeIcon&&t.removeIcon(),f=u??De(cm,null,null),h=b=>De(ls,null,[s!==!1&&b,a&&o]);let g=null;if(l!==void 0)g=h(l);else if(r)g=h(De(Fy,{spin:!0},null));else{const b=`${i}-suffix`;g=C=>{let{open:E,showSearch:_}=C;return h(E&&_?De(wL,{class:b},null):De(j7,{class:b},null))}}let p=null;c!==void 0?p=c:n?p=De(pJ,null,null):p=null;let m=null;return A!==void 0?m=A:m=De(QC,null,null),{clearIcon:f,suffixIcon:g,itemIcon:p,removeIcon:m}}function eBe(e){const t=Symbol("contextKey");return{useProvide:(i,a)=>{const o=uc({});return Es(t,o),ks(()=>{$e(o,i,a||{})}),o},useInject:()=>Wo(t,e)||{}}}const fW=Symbol("ContextProps"),hW=Symbol("InternalContextProps"),uFt=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:vt(()=>!0);const r=Hn(new Map),n=(a,o)=>{r.value.set(a,o),r.value=new Map(r.value)},i=a=>{r.value.delete(a),r.value=new Map(r.value)};di([t,r],()=>{}),Es(fW,e),Es(hW,{addFormItemField:n,removeFormItemField:i})},lye={id:vt(()=>{}),onFieldBlur:()=>{},onFieldChange:()=>{},clearValidate:()=>{}},uye={addFormItemField:()=>{},removeFormItemField:()=>{}},im=()=>{const e=Wo(hW,uye),t=Symbol("FormItemFieldKey"),r=sA();return e.addFormItemField(t,r.type),el(()=>{e.removeFormItemField(t)}),Es(hW,uye),Es(fW,lye),Wo(fW,lye)},cye=$n({compatConfig:{MODE:3},name:"AFormItemRest",setup(e,t){let{slots:r}=t;return Es(hW,uye),Es(fW,lye),()=>{var n;return(n=r.default)===null||n===void 0?void 0:n.call(r)}}}),f1=eBe({}),dW=$n({name:"NoFormStatus",setup(e,t){let{slots:r}=t;return f1.useProvide({}),()=>{var n;return(n=r.default)===null||n===void 0?void 0:n.call(r)}}});function Jb(e,t,r){return Vn({[`${e}-status-success`]:t==="success",[`${e}-status-warning`]:t==="warning",[`${e}-status-error`]:t==="error",[`${e}-status-validating`]:t==="validating",[`${e}-has-feedback`]:r})}const Z6=(e,t)=>t||e,cFt=e=>{const{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},AFt=e=>{const{componentCls:t}=e;return{[t]:{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"}},[`${t}-space-item`]:{"&:empty":{display:"none"}}}}},fFt=Gu("Space",e=>[AFt(e),cFt(e)]);var hFt="[object Symbol]";function vJ(e){return typeof e=="symbol"||AC(e)&&Y6(e)==hFt}function tBe(e,t){for(var r=-1,n=e==null?0:e.length,i=Array(n);++r0){if(++t>=_Ft)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function RFt(e){return function(){return e}}var gW=function(){try{var e=X6(Object,"defineProperty");return e({},"",{}),e}catch{}}(),MFt=gW?function(e,t){return gW(e,"toString",{configurable:!0,enumerable:!1,value:RFt(t),writable:!0})}:rBe,Kot=FFt(MFt);function OFt(e,t){for(var r=-1,n=e==null?0:e.length;++r-1}function Yot(e,t,r){t=="__proto__"&&gW?gW(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var UFt=Object.prototype,HFt=UFt.hasOwnProperty;function nBe(e,t,r){var n=e[t];(!(HFt.call(e,t)&&LEe(n,r))||r===void 0&&!(t in e))&&Yot(e,t,r)}function CL(e,t,r,n){var i=!r;r||(r={});for(var a=-1,o=t.length;++ai?0:i+t),r=r>i?i:r,r<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(i);++n=t||N<0||A&&P>=a}function b(){var M=Hae();if(m(M))return C(M);s=setTimeout(b,p(M))}function C(M){return s=void 0,f&&n?h(M):(n=i=void 0,o)}function E(){s!==void 0&&clearTimeout(s),u=0,n=l=i=s=void 0}function _(){return s===void 0?o:C(Hae())}function F(){var M=Hae(),N=m(M);if(n=arguments,i=this,l=M,N){if(s===void 0)return g(l);if(A)return clearTimeout(s),s=setTimeout(b,t),h(l)}return s===void 0&&(s=setTimeout(b,t)),o}return F.cancel=E,F.flush=_,F}function WMt(e){return AC(e)&&U7(e)}function YMt(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}function qMt(e){return function(t,r,n){var i=Object(t);if(!U7(t)){var a=lBe(r);t=H7(t),r=function(s){return a(i[s],s,i)}}var o=e(t,r,n);return o>-1?i[a?t[o]:o]:void 0}}var JMt=Math.max;function XMt(e,t,r){var n=e==null?0:e.length;if(!n)return-1;var i=r==null?0:BFt(r);return i<0&&(i=JMt(n+i,0)),Vot(e,lBe(t),i)}var ZMt=qMt(XMt);function eOt(e){for(var t=-1,r=e==null?0:e.length,n={};++t=120&&c.length>=120?new $9(o&&c):void 0}c=e[0];var A=-1,f=s[0];e:for(;++A1),a}),CL(e,est(e),r),n&&(r=RM(r,fOt|hOt|dOt,AOt));for(var i=t.length;i--;)cOt(r,t[i]);return r});function pOt(e,t,r,n){if(!n2(e))return e;t=G7(t,e);for(var i=-1,a=t.length,o=a-1,s=e;s!=null&&++i=COt){var u=wOt(e);if(u)return PEe(u);o=!1,i=uW,l=new $9}else l=s;e:for(;++n({compactSize:String,compactDirection:cn.oneOf(fC("horizontal","vertical")).def("horizontal"),isFirstItem:Pa(),isLastItem:Pa()}),yJ=eBe(null),z7=(e,t)=>{const r=yJ.useInject(),n=vt(()=>{if(!r||lst(r))return"";const{compactDirection:i,isFirstItem:a,isLastItem:o}=r,s=i==="vertical"?"-vertical-":"-";return Vn({[`${e.value}-compact${s}item`]:!0,[`${e.value}-compact${s}first-item`]:a,[`${e.value}-compact${s}last-item`]:o,[`${e.value}-compact${s}item-rtl`]:t.value==="rtl"})});return{compactSize:vt(()=>r==null?void 0:r.compactSize),compactDirection:vt(()=>r==null?void 0:r.compactDirection),compactItemClassnames:n}},VO=$n({name:"NoCompactStyle",setup(e,t){let{slots:r}=t;return yJ.useProvide(null),()=>{var n;return(n=r.default)===null||n===void 0?void 0:n.call(r)}}}),BOt=()=>({prefixCls:String,size:{type:String},direction:cn.oneOf(fC("horizontal","vertical")).def("horizontal"),align:cn.oneOf(fC("start","end","center","baseline")),block:{type:Boolean,default:void 0}}),xOt=$n({name:"CompactItem",props:EOt(),setup(e,t){let{slots:r}=t;return yJ.useProvide(e),()=>{var n;return(n=r.default)===null||n===void 0?void 0:n.call(r)}}});BOt();const SOt=e=>({animationDuration:e,animationFillMode:"both"}),kOt=e=>({animationDuration:e,animationFillMode:"both"}),bJ=function(e,t,r,n){const a=(arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1)?"&":"";return{[` ${a}${e}-enter, ${a}${e}-appear `]:$e($e({},SOt(n)),{animationPlayState:"paused"}),[`${a}${e}-leave`]:$e($e({},kOt(n)),{animationPlayState:"paused"}),[` ${a}${e}-enter${e}-enter-active, ${a}${e}-appear${e}-appear-active `]:{animationName:t,animationPlayState:"running"},[`${a}${e}-leave${e}-leave-active`]:{animationName:r,animationPlayState:"running",pointerEvents:"none"}}},QOt=new vl("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),_Ot=new vl("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),TOt=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const{antCls:r}=e,n=`${r}-fade`,i=t?"&":"";return[bJ(n,QOt,_Ot,e.motionDurationMid,t),{[` ${i}${n}-enter, ${i}${n}-appear `]:{opacity:0,animationTimingFunction:"linear"},[`${i}${n}-leave`]:{animationTimingFunction:"linear"}}]},DOt=new vl("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),FOt=new vl("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),ROt=new vl("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),MOt=new vl("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),OOt=new vl("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),NOt=new vl("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),LOt=new vl("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),POt=new vl("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),UOt={"move-up":{inKeyframes:LOt,outKeyframes:POt},"move-down":{inKeyframes:DOt,outKeyframes:FOt},"move-left":{inKeyframes:ROt,outKeyframes:MOt},"move-right":{inKeyframes:OOt,outKeyframes:NOt}},K9=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:i,outKeyframes:a}=UOt[t];return[bJ(n,i,a,e.motionDurationMid),{[` ${n}-enter, ${n}-appear `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},wJ=new vl("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),CJ=new vl("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),IJ=new vl("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),EJ=new vl("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),HOt=new vl("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),jOt=new vl("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),GOt=new vl("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),$Ot=new vl("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),zOt={"slide-up":{inKeyframes:wJ,outKeyframes:CJ},"slide-down":{inKeyframes:IJ,outKeyframes:EJ},"slide-left":{inKeyframes:HOt,outKeyframes:jOt},"slide-right":{inKeyframes:GOt,outKeyframes:$Ot}},pC=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:i,outKeyframes:a}=zOt[t];return[bJ(n,i,a,e.motionDurationMid),{[` ${n}-enter, ${n}-appear `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},uBe=new vl("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),KOt=new vl("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),c9e=new vl("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),A9e=new vl("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),VOt=new vl("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),WOt=new vl("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),YOt=new vl("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),qOt=new vl("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),JOt=new vl("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),XOt=new vl("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),ZOt=new vl("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),eNt=new vl("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),tNt={zoom:{inKeyframes:uBe,outKeyframes:KOt},"zoom-big":{inKeyframes:c9e,outKeyframes:A9e},"zoom-big-fast":{inKeyframes:c9e,outKeyframes:A9e},"zoom-left":{inKeyframes:YOt,outKeyframes:qOt},"zoom-right":{inKeyframes:JOt,outKeyframes:XOt},"zoom-up":{inKeyframes:VOt,outKeyframes:WOt},"zoom-down":{inKeyframes:ZOt,outKeyframes:eNt}},IL=(e,t)=>{const{antCls:r}=e,n=`${r}-${t}`,{inKeyframes:i,outKeyframes:a}=tNt[t];return[bJ(n,i,a,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[` ${n}-enter, ${n}-appear `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${n}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},BJ=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut}, opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),f9e=e=>{const{controlPaddingHorizontal:t}=e;return{position:"relative",display:"block",minHeight:e.controlHeight,padding:`${(e.controlHeight-e.fontSize*e.lineHeight)/2}px ${t}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,boxSizing:"border-box"}},rNt=e=>{const{antCls:t,componentCls:r}=e,n=`${r}-item`;return[{[`${r}-dropdown`]:$e($e({},gu(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[` &${t}-slide-up-enter${t}-slide-up-enter-active${r}-dropdown-placement-bottomLeft, &${t}-slide-up-appear${t}-slide-up-appear-active${r}-dropdown-placement-bottomLeft `]:{animationName:wJ},[` &${t}-slide-up-enter${t}-slide-up-enter-active${r}-dropdown-placement-topLeft, &${t}-slide-up-appear${t}-slide-up-appear-active${r}-dropdown-placement-topLeft `]:{animationName:IJ},[`&${t}-slide-up-leave${t}-slide-up-leave-active${r}-dropdown-placement-bottomLeft`]:{animationName:CJ},[`&${t}-slide-up-leave${t}-slide-up-leave-active${r}-dropdown-placement-topLeft`]:{animationName:EJ},"&-hidden":{display:"none"},"&-empty":{color:e.colorTextDisabled},[`${n}-empty`]:$e($e({},f9e(e)),{color:e.colorTextDisabled}),[`${n}`]:$e($e({},f9e(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":$e({flex:"auto"},qE),"&-state":{flex:"none"},[`&-active:not(${n}-option-disabled)`]:{backgroundColor:e.controlItemBgHover},[`&-selected:not(${n}-option-disabled)`]:{color:e.colorText,fontWeight:e.fontWeightStrong,backgroundColor:e.controlItemBgActive,[`${n}-option-state`]:{color:e.colorPrimary}},"&-disabled":{[`&${n}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},pC(e,"slide-up"),pC(e,"slide-down"),K9(e,"move-up"),K9(e,"move-down")]},D_=2;function cst(e){let{controlHeightSM:t,controlHeight:r,lineWidth:n}=e;const i=(r-t)/2-n,a=Math.ceil(i/2);return[i,a]}function Gae(e,t){const{componentCls:r,iconCls:n}=e,i=`${r}-selection-overflow`,a=e.controlHeightSM,[o]=cst(e),s=t?`${r}-${t}`:"";return{[`${r}-multiple${s}`]:{fontSize:e.fontSize,[i]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${r}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${o-D_}px ${D_*2}px`,borderRadius:e.borderRadius,[`${r}-show-search&`]:{cursor:"text"},[`${r}-disabled&`]:{background:e.colorBgContainerDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${D_}px 0`,lineHeight:`${a}px`,content:'"\\a0"'}},[` &${r}-show-arrow ${r}-selector, &${r}-allow-clear ${r}-selector `]:{paddingInlineEnd:e.fontSizeIcon+e.controlPaddingHorizontal},[`${r}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:a,marginTop:D_,marginBottom:D_,lineHeight:`${a-e.lineWidth*2}px`,background:e.colorFillSecondary,border:`${e.lineWidth}px solid ${e.colorSplit}`,borderRadius:e.borderRadiusSM,cursor:"default",transition:`font-size ${e.motionDurationSlow}, line-height ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,userSelect:"none",marginInlineEnd:D_*2,paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS/2,[`${r}-disabled&`]:{color:e.colorTextDisabled,borderColor:e.colorBorder,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":$e($e({},vL()),{display:"inline-block",color:e.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:e.colorIconHover}})},[`${i}-item + ${i}-item`]:{[`${r}-selection-search`]:{marginInlineStart:0}},[`${r}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.inputPaddingHorizontalBase-o,"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:`${a}px`,transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${r}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}}}}function nNt(e){const{componentCls:t}=e,r=Al(e,{controlHeight:e.controlHeightSM,controlHeightSM:e.controlHeightXS,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),[,n]=cst(e);return[Gae(e),Gae(r,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInlineStart:e.controlPaddingHorizontalSM-e.lineWidth,insetInlineEnd:"auto"},[`${t}-selection-search`]:{marginInlineStart:n}}},Gae(Al(e,{fontSize:e.fontSizeLG,controlHeight:e.controlHeightLG,controlHeightSM:e.controlHeight,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius}),"lg")]}function $ae(e,t){const{componentCls:r,inputPaddingHorizontalBase:n,borderRadius:i}=e,a=e.controlHeight-e.lineWidth*2,o=Math.ceil(e.fontSize*1.25),s=t?`${r}-${t}`:"";return{[`${r}-single${s}`]:{fontSize:e.fontSize,[`${r}-selector`]:$e($e({},gu(e)),{display:"flex",borderRadius:i,[`${r}-selection-search`]:{position:"absolute",top:0,insetInlineStart:n,insetInlineEnd:n,bottom:0,"&-input":{width:"100%"}},[` ${r}-selection-item, ${r}-selection-placeholder `]:{padding:0,lineHeight:`${a}px`,transition:`all ${e.motionDurationSlow}`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${a}px`}},[`${r}-selection-item`]:{position:"relative",userSelect:"none"},[`${r}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${r}-selection-item:after`,`${r}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[` &${r}-show-arrow ${r}-selection-item, &${r}-show-arrow ${r}-selection-placeholder `]:{paddingInlineEnd:o},[`&${r}-open ${r}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${r}-customize-input)`]:{[`${r}-selector`]:{width:"100%",height:e.controlHeight,padding:`0 ${n}px`,[`${r}-selection-search-input`]:{height:a},"&:after":{lineHeight:`${a}px`}}},[`&${r}-customize-input`]:{[`${r}-selector`]:{"&:after":{display:"none"},[`${r}-selection-search`]:{position:"static",width:"100%"},[`${r}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${n}px`,"&:after":{display:"none"}}}}}}}function iNt(e){const{componentCls:t}=e,r=e.controlPaddingHorizontalSM-e.lineWidth;return[$ae(e),$ae(Al(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selection-search`]:{insetInlineStart:r,insetInlineEnd:r},[`${t}-selector`]:{padding:`0 ${r}px`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:r+e.fontSize*1.5},[` &${t}-show-arrow ${t}-selection-item, &${t}-show-arrow ${t}-selection-placeholder `]:{paddingInlineEnd:e.fontSize*1.5}}}},$ae(Al(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}function aNt(e,t,r){const{focusElCls:n,focus:i,borderElCls:a}=r,o=a?"> *":"",s=["hover",i?"focus":null,"active"].filter(Boolean).map(l=>`&:${l} ${o}`).join(",");return{[`&-item:not(${t}-last-item)`]:{marginInlineEnd:-e.lineWidth},"&-item":$e($e({[s]:{zIndex:2}},n?{[`&${n}`]:{zIndex:2}}:{}),{[`&[disabled] ${o}`]:{zIndex:0}})}}function oNt(e,t,r){const{borderElCls:n}=r,i=n?`> ${n}`:"";return{[`&-item:not(${t}-first-item):not(${t}-last-item) ${i}`]:{borderRadius:0},[`&-item:not(${t}-last-item)${t}-first-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${t}-first-item)${t}-last-item`]:{[`& ${i}, &${e}-sm ${i}, &${e}-lg ${i}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function EL(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{focus:!0};const{componentCls:r}=e,n=`${r}-compact`;return{[n]:$e($e({},aNt(e,n,t)),oNt(r,n,t))}}const sNt=e=>{const{componentCls:t}=e;return{position:"relative",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${t}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${t}-disabled&`]:{color:e.colorTextDisabled,background:e.colorBgContainerDisabled,cursor:"not-allowed",[`${t}-multiple&`]:{background:e.colorBgContainerDisabled},input:{cursor:"not-allowed"}}}},zae=function(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:n,borderHoverColor:i,outlineColor:a,antCls:o}=t,s=r?{[`${n}-selector`]:{borderColor:i}}:{};return{[e]:{[`&:not(${n}-disabled):not(${n}-customize-input):not(${o}-pagination-size-changer)`]:$e($e({},s),{[`${n}-focused& ${n}-selector`]:{borderColor:i,boxShadow:`0 0 0 ${t.controlOutlineWidth}px ${a}`,borderInlineEndWidth:`${t.controlLineWidth}px !important`,outline:0},[`&:hover ${n}-selector`]:{borderColor:i,borderInlineEndWidth:`${t.controlLineWidth}px !important`}})}}},lNt=e=>{const{componentCls:t}=e;return{[`${t}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},uNt=e=>{const{componentCls:t,inputPaddingHorizontalBase:r,iconCls:n}=e;return{[t]:$e($e({},gu(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:$e($e({},sNt(e)),lNt(e)),[`${t}-selection-item`]:$e({flex:1,fontWeight:"normal"},qE),[`${t}-selection-placeholder`]:$e($e({},qE),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:$e($e({},vL()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[n]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:-e.fontSizeIcon/2,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:e.colorBgContainer,cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:r+e.fontSize+e.paddingXXS}}}},cNt=e=>{const{componentCls:t}=e;return[{[t]:{[`&-borderless ${t}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${t}-in-form-item`]:{width:"100%"}}},uNt(e),iNt(e),nNt(e),rNt(e),{[`${t}-rtl`]:{direction:"rtl"}},zae(t,Al(e,{borderHoverColor:e.colorPrimaryHover,outlineColor:e.controlOutline})),zae(`${t}-status-error`,Al(e,{borderHoverColor:e.colorErrorHover,outlineColor:e.colorErrorOutline}),!0),zae(`${t}-status-warning`,Al(e,{borderHoverColor:e.colorWarningHover,outlineColor:e.colorWarningOutline}),!0),EL(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},ANt=Gu("Select",(e,t)=>{let{rootPrefixCls:r}=t;const n=Al(e,{rootPrefixCls:r,inputPaddingHorizontalBase:e.paddingSM-1});return[cNt(n)]},e=>({zIndexPopup:e.zIndexPopupBase+50})),cBe=()=>$e($e({},Cc(Lot(),["inputIcon","mode","getInputElement","getRawInputElement","backfill"])),{value:$l([Array,Object,String,Number]),defaultValue:$l([Array,Object,String,Number]),notFoundContent:cn.any,suffixIcon:cn.any,itemIcon:cn.any,size:Us(),mode:Us(),bordered:Pa(!0),transitionName:String,choiceTransitionName:Us(""),popupClassName:String,dropdownClassName:String,placement:Us(),status:Us(),"onUpdate:value":pi()}),h9e="SECRET_COMBOBOX_MODE_DO_NOT_USE",zm=$n({compatConfig:{MODE:3},name:"ASelect",Option:XEe,OptGroup:ZEe,inheritAttrs:!1,props:ju(cBe(),{listHeight:256,listItemHeight:24}),SECRET_COMBOBOX_MODE_DO_NOT_USE:h9e,slots:Object,setup(e,t){let{attrs:r,emit:n,slots:i,expose:a}=t;const o=Hn(),s=im(),l=f1.useInject(),u=vt(()=>Z6(l.status,e.status)),c=()=>{var ue;(ue=o.value)===null||ue===void 0||ue.focus()},A=()=>{var ue;(ue=o.value)===null||ue===void 0||ue.blur()},f=ue=>{var Ke;(Ke=o.value)===null||Ke===void 0||Ke.scrollTo(ue)},h=vt(()=>{const{mode:ue}=e;if(ue!=="combobox")return ue===h9e?"combobox":ue}),{prefixCls:g,direction:p,configProvider:m,renderEmpty:b,size:C,getPrefixCls:E,getPopupContainer:_,disabled:F,select:M}=gs("select",e),{compactSize:N,compactItemClassnames:P}=z7(g,p),j=vt(()=>N.value||C.value),z=hC(),W=vt(()=>{var ue;return(ue=F.value)!==null&&ue!==void 0?ue:z.value}),[Y,ee]=ANt(g),q=vt(()=>E()),ae=vt(()=>e.placement!==void 0?e.placement:p.value==="rtl"?"bottomRight":"bottomLeft"),se=vt(()=>gC(q.value,cTt(ae.value),e.transitionName)),de=vt(()=>Vn({[`${g.value}-lg`]:j.value==="large",[`${g.value}-sm`]:j.value==="small",[`${g.value}-rtl`]:p.value==="rtl",[`${g.value}-borderless`]:!e.bordered,[`${g.value}-in-form-item`]:l.isFormItemInput},Jb(g.value,u.value,l.hasFeedback),P.value,ee.value)),Ae=function(){for(var ue=arguments.length,Ke=new Array(ue),Pe=0;Pe{n("blur",ue),s.onFieldBlur()};a({blur:A,focus:c,scrollTo:f});const Le=vt(()=>h.value==="multiple"||h.value==="tags"),Ne=vt(()=>e.showArrow!==void 0?e.showArrow:e.loading||!(Le.value||h.value==="combobox"));return()=>{var ue,Ke,Pe,je;const{notFoundContent:Ye,listHeight:me=256,listItemHeight:Se=24,popupClassName:et,dropdownClassName:nt,virtual:tt,dropdownMatchSelectWidth:ft,id:st=s.id.value,placeholder:Re=(ue=i.placeholder)===null||ue===void 0?void 0:ue.call(i),showArrow:dt}=e,{hasFeedback:Oe,feedbackIcon:Ce}=l;let Be;Ye!==void 0?Be=Ye:i.notFoundContent?Be=i.notFoundContent():h.value==="combobox"?Be=null:Be=(b==null?void 0:b("Select"))||De(QEe,{componentName:"Select"},null);const{suffixIcon:We,itemIcon:mt,removeIcon:Tt,clearIcon:bt}=lFt($e($e({},e),{multiple:Le.value,prefixCls:g.value,hasFeedback:Oe,feedbackIcon:Ce,showArrow:Ne.value}),i),qt=Cc(e,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered","status"]),cr=Vn(et||nt,{[`${g.value}-dropdown-${p.value}`]:p.value==="rtl"},ee.value);return Y(De(BDt,Ot(Ot(Ot({ref:o,virtual:tt,dropdownMatchSelectWidth:ft},qt),r),{},{showSearch:(Ke=e.showSearch)!==null&&Ke!==void 0?Ke:(Pe=M==null?void 0:M.value)===null||Pe===void 0?void 0:Pe.showSearch,placeholder:Re,listHeight:me,listItemHeight:Se,mode:h.value,prefixCls:g.value,direction:p.value,inputIcon:We,menuItemSelectedIcon:mt,removeIcon:Tt,clearIcon:bt,notFoundContent:Be,class:[de.value,r.class],getPopupContainer:_==null?void 0:_.value,dropdownClassName:cr,onChange:Ae,onBlur:be,id:st,dropdownRender:qt.dropdownRender||i.dropdownRender,transitionName:se.value,children:(je=i.default)===null||je===void 0?void 0:je.call(i),tagRender:e.tagRender||i.tagRender,optionLabelRender:i.optionLabel,maxTagPlaceholder:e.maxTagPlaceholder||i.maxTagPlaceholder,showArrow:Oe||dt,disabled:W.value}),{option:i.option}))}}});zm.install=function(e){return e.component(zm.name,zm),e.component(zm.Option.displayName,zm.Option),e.component(zm.OptGroup.displayName,zm.OptGroup),e};zm.Option;zm.OptGroup;var fNt={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 d9e(e){for(var t=1;t({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`,xxxl:`{min-width: ${e.screenXXXL}px}`});function Ast(){const[,e]=P7();return vt(()=>{const t=xNt(e.value),r=new Map;let n=-1,i={};return{matchHandlers:{},dispatch(a){return i=a,r.forEach(o=>o(i)),r.size>=1},subscribe(a){return r.size||this.register(),n+=1,r.set(n,a),a(i),n},unsubscribe(a){r.delete(a),r.size||this.unregister()},unregister(){Object.keys(t).forEach(a=>{const o=t[a],s=this.matchHandlers[o];s==null||s.mql.removeListener(s==null?void 0:s.listener)}),r.clear()},register(){Object.keys(t).forEach(a=>{const o=t[a],s=u=>{let{matches:c}=u;this.dispatch($e($e({},i),{[a]:c}))},l=window.matchMedia(o);l.addListener(s),this.matchHandlers[o]={mql:l,listener:s},s(l)})},responsiveMap:t}})}function gBe(){const e=sn({});let t=null;const r=Ast();return Is(()=>{t=r.value.subscribe(n=>{e.value=n})}),um(()=>{r.value.unsubscribe(t)}),e}function sy(e){const t=sn();return ks(()=>{t.value=e()},{flush:"sync"}),t}const SNt=e=>{const{antCls:t,componentCls:r,iconCls:n,avatarBg:i,avatarColor:a,avatarSizeBase:o,avatarSizeLG:s,avatarSizeSM:l,avatarFontSizeBase:u,avatarFontSizeLG:c,avatarFontSizeSM:A,borderRadius:f,borderRadiusLG:h,borderRadiusSM:g,lineWidth:p,lineType:m}=e,b=(C,E,_)=>({width:C,height:C,lineHeight:`${C-p*2}px`,borderRadius:"50%",[`&${r}-square`]:{borderRadius:_},[`${r}-string`]:{position:"absolute",left:{_skip_check_:!0,value:"50%"},transformOrigin:"0 center"},[`&${r}-icon`]:{fontSize:E,[`> ${n}`]:{margin:0}}});return{[r]:$e($e($e($e({},gu(e)),{position:"relative",display:"inline-block",overflow:"hidden",color:a,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:i,border:`${p}px ${m} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),b(o,u,f)),{"&-lg":$e({},b(s,c,h)),"&-sm":$e({},b(l,A,g)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},kNt=e=>{const{componentCls:t,avatarGroupBorderColor:r,avatarGroupSpace:n}=e;return{[`${t}-group`]:{display:"inline-flex",[`${t}`]:{borderColor:r},"> *:not(:first-child)":{marginInlineStart:n}}}},fst=Gu("Avatar",e=>{const{colorTextLightSolid:t,controlHeight:r,controlHeightLG:n,controlHeightSM:i,fontSize:a,fontSizeLG:o,fontSizeXL:s,fontSizeHeading3:l,marginXS:u,colorBorderBg:c,colorTextPlaceholder:A}=e,f=Al(e,{avatarBg:A,avatarColor:t,avatarSizeBase:r,avatarSizeLG:n,avatarSizeSM:i,avatarFontSizeBase:Math.round((o+s)/2),avatarFontSizeLG:l,avatarFontSizeSM:a,avatarGroupSpace:-u,avatarGroupBorderColor:c});return[SNt(f),kNt(f)]}),hst=Symbol("SizeContextKey"),dst=()=>Wo(hst,Hn("default")),QNt=e=>{const t=dst();return Es(hst,vt(()=>e.value||t.value)),e},_Nt=()=>({prefixCls:String,shape:{type:String,default:"circle"},size:{type:[Number,String,Object],default:()=>"default"},src:String,srcset:String,icon:cn.any,alt:String,gap:Number,draggable:{type:Boolean,default:void 0},crossOrigin:String,loadError:{type:Function}}),MM=$n({compatConfig:{MODE:3},name:"AAvatar",inheritAttrs:!1,props:_Nt(),slots:Object,setup(e,t){let{slots:r,attrs:n}=t;const i=sn(!0),a=sn(!1),o=sn(1),s=sn(null),l=sn(null),{prefixCls:u}=gs("avatar",e),[c,A]=fst(u),f=dst(),h=vt(()=>e.size==="default"?f.value:e.size),g=gBe(),p=sy(()=>{if(typeof e.size!="object")return;const E=jR.find(F=>g.value[F]);return e.size[E]}),m=E=>p.value?{width:`${p.value}px`,height:`${p.value}px`,lineHeight:`${p.value}px`,fontSize:`${E?p.value/2:18}px`}:{},b=()=>{if(!s.value||!l.value)return;const E=s.value.offsetWidth,_=l.value.offsetWidth;if(E!==0&&_!==0){const{gap:F=4}=e;F*2<_&&(o.value=_-F*2{const{loadError:E}=e;(E==null?void 0:E())!==!1&&(i.value=!1)};return di(()=>e.src,()=>{il(()=>{i.value=!0,o.value=1})}),di(()=>e.gap,()=>{il(()=>{b()})}),Is(()=>{il(()=>{b(),a.value=!0})}),()=>{var E;const{shape:_,src:F,alt:M,srcset:N,draggable:P,crossOrigin:j}=e,z=Xv(r,e,"icon"),W=u.value,Y={[`${n.class}`]:!!n.class,[W]:!0,[`${W}-lg`]:h.value==="large",[`${W}-sm`]:h.value==="small",[`${W}-${_}`]:_,[`${W}-image`]:F&&i.value,[`${W}-icon`]:z,[A.value]:!0},ee=typeof h.value=="number"?{width:`${h.value}px`,height:`${h.value}px`,lineHeight:`${h.value}px`,fontSize:z?`${h.value/2}px`:"18px"}:{},q=(E=r.default)===null||E===void 0?void 0:E.call(r);let ae;if(F&&i.value)ae=De("img",{draggable:P,src:F,srcset:N,onError:C,alt:M,crossorigin:j},null);else if(z)ae=z;else if(a.value||o.value!==1){const se=`scale(${o.value}) translateX(-50%)`,de={msTransform:se,WebkitTransform:se,transform:se},Ae=typeof h.value=="number"?{lineHeight:`${h.value}px`}:{};ae=De(YE,{onResize:b},{default:()=>[De("span",{class:`${W}-string`,ref:s,style:$e($e({},Ae),de)},[q])]})}else ae=De("span",{class:`${W}-string`,ref:s,style:{opacity:0}},[q]);return c(De("span",Ot(Ot({},n),{},{ref:l,class:Y,style:[ee,m(!!z),n.style]}),[ae]))}}}),V1={adjustX:1,adjustY:1},W1=[0,0],gst={left:{points:["cr","cl"],overflow:V1,offset:[-4,0],targetOffset:W1},right:{points:["cl","cr"],overflow:V1,offset:[4,0],targetOffset:W1},top:{points:["bc","tc"],overflow:V1,offset:[0,-4],targetOffset:W1},bottom:{points:["tc","bc"],overflow:V1,offset:[0,4],targetOffset:W1},topLeft:{points:["bl","tl"],overflow:V1,offset:[0,-4],targetOffset:W1},leftTop:{points:["tr","tl"],overflow:V1,offset:[-4,0],targetOffset:W1},topRight:{points:["br","tr"],overflow:V1,offset:[0,-4],targetOffset:W1},rightTop:{points:["tl","tr"],overflow:V1,offset:[4,0],targetOffset:W1},bottomRight:{points:["tr","br"],overflow:V1,offset:[0,4],targetOffset:W1},rightBottom:{points:["bl","br"],overflow:V1,offset:[4,0],targetOffset:W1},bottomLeft:{points:["tl","bl"],overflow:V1,offset:[0,4],targetOffset:W1},leftBottom:{points:["br","bl"],overflow:V1,offset:[-4,0],targetOffset:W1}},TNt={prefixCls:String,id:String,overlayInnerStyle:cn.any},DNt=$n({compatConfig:{MODE:3},name:"Content",props:TNt,setup(e,t){let{slots:r}=t;return()=>{var n;return De("div",{class:`${e.prefixCls}-inner`,id:e.id,role:"tooltip",style:e.overlayInnerStyle},[(n=r.overlay)===null||n===void 0?void 0:n.call(r)])}}});var FNt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{}),overlayStyle:{type:Object,default:void 0},overlayClassName:String,prefixCls:cn.string.def("rc-tooltip"),mouseEnterDelay:cn.number.def(.1),mouseLeaveDelay:cn.number.def(.1),getPopupContainer:Function,destroyTooltipOnHide:{type:Boolean,default:!1},align:cn.object.def(()=>({})),arrowContent:cn.any.def(null),tipId:String,builtinPlacements:cn.object,overlayInnerStyle:{type:Object,default:void 0},popupVisible:{type:Boolean,default:void 0},onVisibleChange:Function,onPopupAlign:Function},setup(e,t){let{slots:r,attrs:n,expose:i}=t;const a=sn(),o=()=>{const{prefixCls:c,tipId:A,overlayInnerStyle:f}=e;return[De("div",{class:`${c}-arrow`,key:"arrow"},[Xv(r,e,"arrowContent")]),De(DNt,{key:"content",prefixCls:c,id:A,overlayInnerStyle:f},{overlay:r.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=sn(!1),u=sn(!1);return ks(()=>{const{destroyTooltipOnHide:c}=e;if(typeof c=="boolean")l.value=c;else if(c&&typeof c=="object"){const{keepParent:A}=c;l.value=A===!0,u.value=A===!1}}),()=>{const{overlayClassName:c,trigger:A,mouseEnterDelay:f,mouseLeaveDelay:h,overlayStyle:g,prefixCls:p,afterVisibleChange:m,transitionName:b,animation:C,placement:E,align:_,destroyTooltipOnHide:F,defaultVisible:M}=e,N=FNt(e,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","afterVisibleChange","transitionName","animation","placement","align","destroyTooltipOnHide","defaultVisible"]),P=$e({},N);e.visible!==void 0&&(P.popupVisible=e.visible);const j=$e($e($e({popupClassName:c,prefixCls:p,action:A,builtinPlacements:gst,popupPlacement:E,popupAlign:_,afterPopupVisibleChange:m,popupTransitionName:b,popupAnimation:C,defaultPopupVisible:M,destroyPopupOnHide:l.value,autoDestroy:u.value,mouseLeaveDelay:h,popupStyle:g,mouseEnterDelay:f},P),n),{onPopupVisibleChange:e.onVisibleChange||w9e,onPopupAlign:e.onPopupAlign||w9e,ref:a,popup:o()});return De(yL,j,{default:r.default})}}}),pBe=()=>({trigger:[String,Array],open:{type:Boolean,default:void 0},visible:{type:Boolean,default:void 0},placement:String,color:String,transitionName:String,overlayStyle:To(),overlayInnerStyle:To(),overlayClassName:String,openClassName:String,prefixCls:String,mouseEnterDelay:Number,mouseLeaveDelay:Number,getPopupContainer:Function,arrowPointAtCenter:{type:Boolean,default:void 0},autoAdjustOverflow:{type:[Boolean,Object],default:void 0},destroyTooltipOnHide:{type:Boolean,default:void 0},align:To(),builtinPlacements:To(),children:Array,onVisibleChange:Function,"onUpdate:visible":Function,onOpenChange:Function,"onUpdate:open":Function}),MNt={adjustX:1,adjustY:1},C9e={adjustX:0,adjustY:0},ONt=[0,0];function I9e(e){return typeof e=="boolean"?e?MNt:C9e:$e($e({},C9e),e)}function pst(e){const{arrowWidth:t=4,horizontalArrowShift:r=16,verticalArrowShift:n=8,autoAdjustOverflow:i,arrowPointAtCenter:a}=e,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:[-(r+t),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(n+t)]},topRight:{points:["br","tc"],offset:[r+t,-4]},rightTop:{points:["tl","cr"],offset:[4,-(n+t)]},bottomRight:{points:["tr","bc"],offset:[r+t,4]},rightBottom:{points:["bl","cr"],offset:[4,n+t]},bottomLeft:{points:["tl","bc"],offset:[-(r+t),4]},leftBottom:{points:["br","cl"],offset:[-4,n+t]}};return Object.keys(o).forEach(s=>{o[s]=a?$e($e({},o[s]),{overflow:I9e(i),targetOffset:ONt}):$e($e({},gst[s]),{overflow:I9e(i)}),o[s].ignoreShake=!0}),o}function fye(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];for(let t=0,r=e.length;t`${e}-inverse`),LNt=["success","processing","error","default","warning"];function vst(e){return(arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0)?[...NNt,...UO].includes(e):UO.includes(e)}function PNt(e){return LNt.includes(e)}function UNt(e,t){const r=vst(t),n=Vn({[`${e}-${t}`]:t&&r}),i={},a={};return t&&!r&&(i.background=t,a["--antd-arrow-background-color"]=t),{className:n,overlayStyle:i,arrowStyle:a}}function qj(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return e.map(r=>`${t}${r}`).join(",")}const mst=8;function yst(e){const t=mst,{sizePopupArrow:r,contentRadius:n,borderRadiusOuter:i,limitVerticalRadius:a}=e,o=r/2-Math.ceil(i*(Math.sqrt(2)-1)),s=(n>12?n+2:12)-o,l=a?t-o:s;return{dropdownArrowOffset:s,dropdownArrowOffsetVertical:l}}function bst(e,t){const{componentCls:r,sizePopupArrow:n,marginXXS:i,borderRadiusXS:a,borderRadiusOuter:o,boxShadowPopoverArrow:s}=e,{colorBg:l,showArrowCls:u,contentRadius:c=e.borderRadiusLG,limitVerticalRadius:A}=t,{dropdownArrowOffsetVertical:f,dropdownArrowOffset:h}=yst({sizePopupArrow:n,contentRadius:c,borderRadiusOuter:o,limitVerticalRadius:A}),g=n/2+i;return{[r]:{[`${r}-arrow`]:[$e($e({position:"absolute",zIndex:1,display:"block"},xEe(n,a,o,l,s)),{"&:before":{background:l}})],[[`&-placement-top ${r}-arrow`,`&-placement-topLeft ${r}-arrow`,`&-placement-topRight ${r}-arrow`].join(",")]:{bottom:0,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft ${r}-arrow`]:{left:{_skip_check_:!0,value:h}},[`&-placement-topRight ${r}-arrow`]:{right:{_skip_check_:!0,value:h}},[[`&-placement-bottom ${r}-arrow`,`&-placement-bottomLeft ${r}-arrow`,`&-placement-bottomRight ${r}-arrow`].join(",")]:{top:0,transform:"translateY(-100%)"},[`&-placement-bottom ${r}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(-100%)"},[`&-placement-bottomLeft ${r}-arrow`]:{left:{_skip_check_:!0,value:h}},[`&-placement-bottomRight ${r}-arrow`]:{right:{_skip_check_:!0,value:h}},[[`&-placement-left ${r}-arrow`,`&-placement-leftTop ${r}-arrow`,`&-placement-leftBottom ${r}-arrow`].join(",")]:{right:{_skip_check_:!0,value:0},transform:"translateX(100%) rotate(90deg)"},[`&-placement-left ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(100%) rotate(90deg)"},[`&-placement-leftTop ${r}-arrow`]:{top:f},[`&-placement-leftBottom ${r}-arrow`]:{bottom:f},[[`&-placement-right ${r}-arrow`,`&-placement-rightTop ${r}-arrow`,`&-placement-rightBottom ${r}-arrow`].join(",")]:{left:{_skip_check_:!0,value:0},transform:"translateX(-100%) rotate(-90deg)"},[`&-placement-right ${r}-arrow`]:{top:{_skip_check_:!0,value:"50%"},transform:"translateY(-50%) translateX(-100%) rotate(-90deg)"},[`&-placement-rightTop ${r}-arrow`]:{top:f},[`&-placement-rightBottom ${r}-arrow`]:{bottom:f},[qj(["&-placement-topLeft","&-placement-top","&-placement-topRight"],u)]:{paddingBottom:g},[qj(["&-placement-bottomLeft","&-placement-bottom","&-placement-bottomRight"],u)]:{paddingTop:g},[qj(["&-placement-leftTop","&-placement-left","&-placement-leftBottom"],u)]:{paddingRight:{_skip_check_:!0,value:g}},[qj(["&-placement-rightTop","&-placement-right","&-placement-rightBottom"],u)]:{paddingLeft:{_skip_check_:!0,value:g}}}}}const HNt=e=>{const{componentCls:t,tooltipMaxWidth:r,tooltipColor:n,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:o,controlHeight:s,boxShadowSecondary:l,paddingSM:u,paddingXS:c,tooltipRadiusOuter:A}=e;return[{[t]:$e($e($e($e({},gu(e)),{position:"absolute",zIndex:o,display:"block","&":[{width:"max-content"},{width:"intrinsic"}],maxWidth:r,visibility:"visible","&-hidden":{display:"none"},"--antd-arrow-background-color":i,[`${t}-inner`]:{minWidth:s,minHeight:s,padding:`${u/2}px ${c}px`,color:n,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(",")]:{[`${t}-inner`]:{borderRadius:Math.min(a,mst)}},[`${t}-content`]:{position:"relative"}}),Fat(e,(f,h)=>{let{darkColor:g}=h;return{[`&${t}-${f}`]:{[`${t}-inner`]:{backgroundColor:g},[`${t}-arrow`]:{"--antd-arrow-background-color":g}}}})),{"&-rtl":{direction:"rtl"}})},bst(Al(e,{borderRadiusOuter:A}),{colorBg:"var(--antd-arrow-background-color)",showArrowCls:"",contentRadius:a,limitVerticalRadius:!0}),{[`${t}-pure`]:{position:"relative",maxWidth:"none"}}]},jNt=(e,t)=>Gu("Tooltip",n=>{if((t==null?void 0:t.value)===!1)return[];const{borderRadius:i,colorTextLightSolid:a,colorBgDefault:o,borderRadiusOuter:s}=n,l=Al(n,{tooltipMaxWidth:250,tooltipColor:a,tooltipBorderRadius:i,tooltipBg:o,tooltipRadiusOuter:s>4?4:s});return[HNt(l),IL(n,"zoom-big-fast")]},n=>{let{zIndexPopupBase:i,colorBgSpotlight:a}=n;return{zIndexPopup:i+70,colorBgDefault:a}})(e),GNt=(e,t)=>{const r={},n=$e({},e);return t.forEach(i=>{e&&i in e&&(r[i]=e[i],delete n[i])}),{picked:r,omitted:n}},$Nt=()=>$e($e({},pBe()),{title:cn.any}),wst=()=>({trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),zNt=$n({compatConfig:{MODE:3},name:"ATooltip",inheritAttrs:!1,props:ju($Nt(),{trigger:"hover",align:{},placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}),slots:Object,setup(e,t){let{slots:r,emit:n,attrs:i,expose:a}=t;const{prefixCls:o,getPopupContainer:s,direction:l,rootPrefixCls:u}=gs("tooltip",e),c=vt(()=>{var z;return(z=e.open)!==null&&z!==void 0?z:e.visible}),A=Hn(fye([e.open,e.visible])),f=Hn();let h;di(c,z=>{ms.cancel(h),h=ms(()=>{A.value=!!z})});const g=()=>{var z;const W=(z=e.title)!==null&&z!==void 0?z:r.title;return!W&&W!==0},p=z=>{const W=g();c.value===void 0&&(A.value=W?!1:z),W||(n("update:visible",z),n("visibleChange",z),n("update:open",z),n("openChange",z))};a({getPopupDomNode:()=>f.value.getPopupDomNode(),open:A,forcePopupAlign:()=>{var z;return(z=f.value)===null||z===void 0?void 0:z.forcePopupAlign()}});const b=vt(()=>{const{builtinPlacements:z,arrowPointAtCenter:W,autoAdjustOverflow:Y}=e;return z||pst({arrowPointAtCenter:W,autoAdjustOverflow:Y})}),C=z=>z||z==="",E=z=>{const W=z.type;if(typeof W=="object"&&z.props&&((W.__ANT_BUTTON===!0||W==="button")&&C(z.props.disabled)||W.__ANT_SWITCH===!0&&(C(z.props.disabled)||C(z.props.loading))||W.__ANT_RADIO===!0&&C(z.props.disabled))){const{picked:Y,omitted:ee}=GNt(W6t(z),["position","left","right","top","bottom","float","display","zIndex"]),q=$e($e({display:"inline-block"},Y),{cursor:"not-allowed",lineHeight:1,width:z.props&&z.props.block?"100%":void 0}),ae=$e($e({},ee),{pointerEvents:"none"}),se=aA(z,{style:ae},!0);return De("span",{style:q,class:`${o.value}-disabled-compatible-wrapper`},[se])}return z},_=()=>{var z,W;return(z=e.title)!==null&&z!==void 0?z:(W=r.title)===null||W===void 0?void 0:W.call(r)},F=(z,W)=>{const Y=b.value,ee=Object.keys(Y).find(q=>{var ae,se;return Y[q].points[0]===((ae=W.points)===null||ae===void 0?void 0:ae[0])&&Y[q].points[1]===((se=W.points)===null||se===void 0?void 0:se[1])});if(ee){const q=z.getBoundingClientRect(),ae={top:"50%",left:"50%"};ee.indexOf("top")>=0||ee.indexOf("Bottom")>=0?ae.top=`${q.height-W.offset[1]}px`:(ee.indexOf("Top")>=0||ee.indexOf("bottom")>=0)&&(ae.top=`${-W.offset[1]}px`),ee.indexOf("left")>=0||ee.indexOf("Right")>=0?ae.left=`${q.width-W.offset[0]}px`:(ee.indexOf("right")>=0||ee.indexOf("Left")>=0)&&(ae.left=`${-W.offset[0]}px`),z.style.transformOrigin=`${ae.left} ${ae.top}`}},M=vt(()=>UNt(o.value,e.color)),N=vt(()=>i["data-popover-inject"]),[P,j]=jNt(o,vt(()=>!N.value));return()=>{var z,W;const{openClassName:Y,overlayClassName:ee,overlayStyle:q,overlayInnerStyle:ae}=e;let se=(W=Cg((z=r.default)===null||z===void 0?void 0:z.call(r)))!==null&&W!==void 0?W:null;se=se.length===1?se[0]:se;let de=A.value;if(c.value===void 0&&g()&&(de=!1),!se)return null;const Ae=E(l0(se)&&!Y6t(se)?se:De("span",null,[se])),be=Vn({[Y||`${o.value}-open`]:!0,[Ae.props&&Ae.props.class]:Ae.props&&Ae.props.class}),Le=Vn(ee,{[`${o.value}-rtl`]:l.value==="rtl"},M.value.className,j.value),Ne=$e($e({},M.value.overlayStyle),ae),ue=M.value.arrowStyle,Ke=$e($e($e({},i),e),{prefixCls:o.value,getPopupContainer:s==null?void 0:s.value,builtinPlacements:b.value,visible:de,ref:f,overlayClassName:Le,overlayStyle:$e($e({},ue),q),overlayInnerStyle:Ne,onVisibleChange:p,onPopupAlign:F,transitionName:gC(u.value,"zoom-big-fast",e.transitionName)});return P(De(RNt,Ke,{default:()=>[A.value?aA(Ae,{class:be}):Ae],arrowContent:()=>De("span",{class:`${o.value}-arrow-content`},null),overlay:_}))}}}),BL=Ly(zNt),KNt=e=>{const{componentCls:t,popoverBg:r,popoverColor:n,width:i,fontWeightStrong:a,popoverPadding:o,boxShadowSecondary:s,colorTextHeading:l,borderRadiusLG:u,zIndexPopup:c,marginXS:A,colorBgElevated:f}=e;return[{[t]:$e($e({},gu(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--antd-arrow-background-color":f,"&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:r,backgroundClip:"padding-box",borderRadius:u,boxShadow:s,padding:o},[`${t}-title`]:{minWidth:i,marginBottom:A,color:l,fontWeight:a},[`${t}-inner-content`]:{color:n}})},bst(e,{colorBg:"var(--antd-arrow-background-color)"}),{[`${t}-pure`]:{position:"relative",maxWidth:"none",[`${t}-content`]:{display:"inline-block"}}}]},VNt=e=>{const{componentCls:t}=e;return{[t]:UO.map(r=>{const n=e[`${r}-6`];return{[`&${t}-${r}`]:{"--antd-arrow-background-color":n,[`${t}-inner`]:{backgroundColor:n},[`${t}-arrow`]:{background:"transparent"}}}})}},WNt=e=>{const{componentCls:t,lineWidth:r,lineType:n,colorSplit:i,paddingSM:a,controlHeight:o,fontSize:s,lineHeight:l,padding:u}=e,c=o-Math.round(s*l),A=c/2,f=c/2-r,h=u;return{[t]:{[`${t}-inner`]:{padding:0},[`${t}-title`]:{margin:0,padding:`${A}px ${h}px ${f}px`,borderBottom:`${r}px ${n} ${i}`},[`${t}-inner-content`]:{padding:`${a}px ${h}px`}}}},YNt=Gu("Popover",e=>{const{colorBgElevated:t,colorText:r,wireframe:n}=e,i=Al(e,{popoverBg:t,popoverColor:r,popoverPadding:12});return[KNt(i),VNt(i),n&&WNt(i),IL(i,"zoom-big")]},e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+30,width:177}}),qNt=()=>$e($e({},pBe()),{content:Wf(),title:Wf()}),JNt=$n({compatConfig:{MODE:3},name:"APopover",inheritAttrs:!1,props:ju(qNt(),$e($e({},wst()),{trigger:"hover",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1})),setup(e,t){let{expose:r,slots:n,attrs:i}=t;const a=Hn();vB(e.visible===void 0),r({getPopupDomNode:()=>{var f,h;return(h=(f=a.value)===null||f===void 0?void 0:f.getPopupDomNode)===null||h===void 0?void 0:h.call(f)}});const{prefixCls:o,configProvider:s}=gs("popover",e),[l,u]=YNt(o),c=vt(()=>s.getPrefixCls()),A=()=>{var f,h;const{title:g=Cg((f=n.title)===null||f===void 0?void 0:f.call(n)),content:p=Cg((h=n.content)===null||h===void 0?void 0:h.call(n))}=e,m=!!(Array.isArray(g)?g.length:g),b=!!(Array.isArray(p)?p.length:g);return!m&&!b?null:De(ls,null,[m&&De("div",{class:`${o.value}-title`},[g]),De("div",{class:`${o.value}-inner-content`},[p])])};return()=>{const f=Vn(e.overlayClassName,u.value);return l(De(BL,Ot(Ot(Ot({},Cc(e,["title","content"])),i),{},{prefixCls:o.value,ref:a,overlayClassName:f,transitionName:gC(c.value,"zoom-big",e.transitionName),"data-popover-inject":!0}),{title:A,default:n.default}))}}}),Cst=Ly(JNt),XNt=()=>({prefixCls:String,maxCount:Number,maxStyle:{type:Object,default:void 0},maxPopoverPlacement:{type:String,default:"top"},maxPopoverTrigger:String,size:{type:[Number,String,Object],default:"default"}}),hye=$n({compatConfig:{MODE:3},name:"AAvatarGroup",inheritAttrs:!1,props:XNt(),setup(e,t){let{slots:r,attrs:n}=t;const{prefixCls:i,direction:a}=gs("avatar",e),o=vt(()=>`${i.value}-group`),[s,l]=fst(i);return QNt(vt(()=>e.size)),()=>{const{maxPopoverPlacement:u="top",maxCount:c,maxStyle:A,maxPopoverTrigger:f="hover"}=e,h={[o.value]:!0,[`${o.value}-rtl`]:a.value==="rtl",[`${n.class}`]:!!n.class,[l.value]:!0},g=Xv(r,e),p=sf(g).map((b,C)=>aA(b,{key:`avatar-key-${C}`})),m=p.length;if(c&&c[De(MM,{style:A},{default:()=>[`+${m-c}`]})]})),s(De("div",Ot(Ot({},n),{},{class:h,style:n.style}),[b]))}return s(De("div",Ot(Ot({},n),{},{class:h,style:n.style}),[p]))}}});MM.Group=hye;MM.install=function(e){return e.component(MM.name,MM),e.component(hye.name,hye),e};const dye=e=>!isNaN(parseFloat(e))&&isFinite(e),F_={adjustX:1,adjustY:1},R_=[0,0],ZNt={topLeft:{points:["bl","tl"],overflow:F_,offset:[0,-4],targetOffset:R_},topCenter:{points:["bc","tc"],overflow:F_,offset:[0,-4],targetOffset:R_},topRight:{points:["br","tr"],overflow:F_,offset:[0,-4],targetOffset:R_},bottomLeft:{points:["tl","bl"],overflow:F_,offset:[0,4],targetOffset:R_},bottomCenter:{points:["tc","bc"],overflow:F_,offset:[0,4],targetOffset:R_},bottomRight:{points:["tr","br"],overflow:F_,offset:[0,4],targetOffset:R_}};var eLt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);ie.visible,h=>{h!==void 0&&(a.value=h)});const o=Hn();i({triggerRef:o});const s=h=>{e.visible===void 0&&(a.value=!1),n("overlayClick",h)},l=h=>{e.visible===void 0&&(a.value=h),n("visibleChange",h)},u=()=>{var h;const g=(h=r.overlay)===null||h===void 0?void 0:h.call(r),p={prefixCls:`${e.prefixCls}-menu`,onClick:s};return De(ls,{key:Zit},[e.arrow&&De("div",{class:`${e.prefixCls}-arrow`},null),aA(g,p,!1)])},c=vt(()=>{const{minOverlayWidthMatchTrigger:h=!e.alignPoint}=e;return h}),A=()=>{var h;const g=(h=r.default)===null||h===void 0?void 0:h.call(r);return a.value&&g?aA(g[0],{class:e.openClassName||`${e.prefixCls}-open`},!1):g},f=vt(()=>!e.hideAction&&e.trigger.indexOf("contextmenu")!==-1?["click"]:e.hideAction);return()=>{const{prefixCls:h,arrow:g,showAction:p,overlayStyle:m,trigger:b,placement:C,align:E,getPopupContainer:_,transitionName:F,animation:M,overlayClassName:N}=e,P=eLt(e,["prefixCls","arrow","showAction","overlayStyle","trigger","placement","align","getPopupContainer","transitionName","animation","overlayClassName"]);return De(yL,Ot(Ot({},P),{},{prefixCls:h,ref:o,popupClassName:Vn(N,{[`${h}-show-arrow`]:g}),popupStyle:m,builtinPlacements:ZNt,action:b,showAction:p,hideAction:f.value||[],popupPlacement:C,popupAlign:E,popupTransitionName:F,popupAnimation:M,popupVisible:a.value,stretch:c.value?"minWidth":"",onPopupVisibleChange:l,getPopupContainer:_}),{popup:u,default:A})}}}),tLt=e=>{const{componentCls:t,colorPrimary:r}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${r})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${e.motionEaseOutCirc}`,`opacity 2s ${e.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0}}}}},rLt=Gu("Wave",e=>[tLt(e)]);function nLt(e){const t=(e||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return t&&t[1]&&t[2]&&t[3]?!(t[1]===t[2]&&t[2]===t[3]):!0}function Kae(e){return e&&e!=="#fff"&&e!=="#ffffff"&&e!=="rgb(255, 255, 255)"&&e!=="rgba(255, 255, 255, 1)"&&nLt(e)&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&e!=="transparent"}function iLt(e){const{borderTopColor:t,borderColor:r,backgroundColor:n}=getComputedStyle(e);return Kae(t)?t:Kae(r)?r:Kae(n)?n:null}function Vae(e){return Number.isNaN(e)?0:e}const aLt=$n({props:{target:To(),className:String},setup(e){const t=sn(null),[r,n]=Hu(null),[i,a]=Hu([]),[o,s]=Hu(0),[l,u]=Hu(0),[c,A]=Hu(0),[f,h]=Hu(0),[g,p]=Hu(!1);function m(){const{target:N}=e,P=getComputedStyle(N);n(iLt(N));const j=P.position==="static",{borderLeftWidth:z,borderTopWidth:W}=P;s(j?N.offsetLeft:Vae(-parseFloat(z))),u(j?N.offsetTop:Vae(-parseFloat(W))),A(N.offsetWidth),h(N.offsetHeight);const{borderTopLeftRadius:Y,borderTopRightRadius:ee,borderBottomLeftRadius:q,borderBottomRightRadius:ae}=P;a([Y,ee,ae,q].map(se=>Vae(parseFloat(se))))}let b,C,E;const _=()=>{clearTimeout(E),ms.cancel(C),b==null||b.disconnect()},F=()=>{var N;const P=(N=t.value)===null||N===void 0?void 0:N.parentElement;P&&(h5(null,P),P.parentElement&&P.parentElement.removeChild(P))};Is(()=>{_(),E=setTimeout(()=>{F()},5e3);const{target:N}=e;N&&(C=ms(()=>{m(),p(!0)}),typeof ResizeObserver<"u"&&(b=new ResizeObserver(m),b.observe(N)))}),el(()=>{_()});const M=N=>{N.propertyName==="opacity"&&F()};return()=>{if(!g.value)return null;const N={left:`${o.value}px`,top:`${l.value}px`,width:`${c.value}px`,height:`${f.value}px`,borderRadius:i.value.map(P=>`${P}px`).join(" ")};return r&&(N["--wave-color"]=r.value),De(nm,{appear:!0,name:"wave-motion",appearFromClass:"wave-motion-appear",appearActiveClass:"wave-motion-appear",appearToClass:"wave-motion-appear wave-motion-appear-active"},{default:()=>[De("div",{ref:t,class:e.className,style:N,onTransitionend:M},null)]})}}});function oLt(e,t){const r=document.createElement("div");r.style.position="absolute",r.style.left="0px",r.style.top="0px",e==null||e.insertBefore(r,e==null?void 0:e.firstChild),h5(De(aLt,{target:e,className:t},null),r)}function sLt(e,t){function r(){const n=IE(e);oLt(n,t.value)}return r}const Est=$n({compatConfig:{MODE:3},name:"Wave",props:{disabled:Boolean},setup(e,t){let{slots:r}=t;const n=sA(),{prefixCls:i}=gs("wave",e),[,a]=rLt(i),o=sLt(n,vt(()=>Vn(i.value,a.value)));let s;const l=()=>{IE(n).removeEventListener("click",s,!0)};return Is(()=>{di(()=>e.disabled,()=>{l(),il(()=>{const u=IE(n);if(!u||u.nodeType!==1||e.disabled)return;const c=A=>{A.target.tagName==="INPUT"||!lJ(A.target)||!u.getAttribute||u.getAttribute("disabled")||u.disabled||u.className.includes("disabled")||u.className.includes("-leave")||o()};u.addEventListener("click",c,!0)})},{immediate:!0,flush:"post"})}),el(()=>{l()}),()=>{var u;return(u=r.default)===null||u===void 0?void 0:u.call(r)[0]}}});function pW(e){return e==="danger"?{danger:!0}:{type:e}}const Bst=()=>({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:cn.any,href:String,target:String,title:String,onClick:m6(),onMousedown:m6()}),E9e=e=>{e&&(e.style.width="0px",e.style.opacity="0",e.style.transform="scale(0)")},B9e=e=>{il(()=>{e&&(e.style.width=`${e.scrollWidth}px`,e.style.opacity="1",e.style.transform="scale(1)")})},x9e=e=>{e&&e.style&&(e.style.width=null,e.style.opacity=null,e.style.transform=null)},lLt=$n({compatConfig:{MODE:3},name:"LoadingIcon",props:{prefixCls:String,loading:[Boolean,Object],existIcon:Boolean},setup(e){return()=>{const{existIcon:t,prefixCls:r,loading:n}=e;if(t)return De("span",{class:`${r}-loading-icon`},[De(Fy,null,null)]);const i=!!n;return De(nm,{name:`${r}-loading-icon-motion`,onBeforeEnter:E9e,onEnter:B9e,onAfterEnter:x9e,onBeforeLeave:B9e,onLeave:a=>{setTimeout(()=>{E9e(a)})},onAfterLeave:x9e},{default:()=>[i?De("span",{class:`${r}-loading-icon`},[De(Fy,null,null)]):null]})}}}),S9e=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),uLt=e=>{const{componentCls:t,fontSize:r,lineWidth:n,colorPrimaryHover:i,colorErrorHover:a}=e;return{[`${t}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${t}`]:{"&:not(:last-child)":{[`&, & > ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:-n,[`&, & > ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover,\n &:focus,\n &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${t}-icon-only`]:{fontSize:r}},S9e(`${t}-primary`,i),S9e(`${t}-danger`,a)]}};function cLt(e,t){return{[`&-item:not(${t}-last-item)`]:{marginBottom:-e.lineWidth},"&-item":{"&:hover,&:focus,&:active":{zIndex:2},"&[disabled]":{zIndex:0}}}}function ALt(e,t){return{[`&-item:not(${t}-first-item):not(${t}-last-item)`]:{borderRadius:0},[`&-item${t}-first-item:not(${t}-last-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${t}-last-item:not(${t}-first-item)`]:{[`&, &${e}-sm, &${e}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function fLt(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:$e($e({},cLt(e,t)),ALt(e.componentCls,t))}}const hLt=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:{outline:"none",position:"relative",display:"inline-block",fontWeight:400,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,cursor:"pointer",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",lineHeight:e.lineHeight,color:e.colorText,"> span":{display:"inline-block"},[`> ${r} + span, > span + ${r}`]:{marginInlineStart:e.marginXS},"> a":{color:"currentColor"},"&:not(:disabled)":$e({},g5(e)),[`&-icon-only${t}-compact-item`]:{flex:"none"},[`&-compact-item${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:e.lineWidth,height:`calc(100% + ${e.lineWidth*2}px)`,backgroundColor:e.colorPrimaryHover,content:'""'}}},"&-compact-vertical-item":{[`&${t}-primary`]:{[`&:not([disabled]) + ${t}-compact-vertical-item${t}-primary:not([disabled])`]:{position:"relative","&:before":{position:"absolute",top:-e.lineWidth,insetInlineStart:-e.lineWidth,display:"inline-block",width:`calc(100% + ${e.lineWidth*2}px)`,height:e.lineWidth,backgroundColor:e.colorPrimaryHover,content:'""'}}}}}}},XE=(e,t)=>({"&:not(:disabled)":{"&:hover":e,"&:active":t}}),dLt=e=>({minWidth:e.controlHeight,paddingInlineStart:0,paddingInlineEnd:0,borderRadius:"50%"}),gLt=e=>({borderRadius:e.controlHeight,paddingInlineStart:e.controlHeight/2,paddingInlineEnd:e.controlHeight/2}),gye=e=>({cursor:"not-allowed",borderColor:e.colorBorder,color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,boxShadow:"none"}),vW=(e,t,r,n,i,a,o)=>({[`&${e}-background-ghost`]:$e($e({color:t||void 0,backgroundColor:"transparent",borderColor:r||void 0,boxShadow:"none"},XE($e({backgroundColor:"transparent"},a),$e({backgroundColor:"transparent"},o))),{"&:disabled":{cursor:"not-allowed",color:n||void 0,borderColor:i||void 0}})}),vBe=e=>({"&:disabled":$e({},gye(e))}),xst=e=>$e({},vBe(e)),mW=e=>({"&:disabled":{cursor:"not-allowed",color:e.colorTextDisabled}}),Sst=e=>$e($e($e($e($e({},xst(e)),{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlTmpOutline}`}),XE({color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),vW(e.componentCls,e.colorBgContainer,e.colorBgContainer,e.colorTextDisabled,e.colorBorder)),{[`&${e.componentCls}-dangerous`]:$e($e($e({color:e.colorError,borderColor:e.colorError},XE({color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),vW(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder)),vBe(e))}),pLt=e=>$e($e($e($e($e({},xst(e)),{color:e.colorTextLightSolid,backgroundColor:e.colorPrimary,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.controlOutline}`}),XE({color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryHover},{color:e.colorTextLightSolid,backgroundColor:e.colorPrimaryActive})),vW(e.componentCls,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),{[`&${e.componentCls}-dangerous`]:$e($e($e({backgroundColor:e.colorError,boxShadow:`0 ${e.controlOutlineWidth}px 0 ${e.colorErrorOutline}`},XE({backgroundColor:e.colorErrorHover},{backgroundColor:e.colorErrorActive})),vW(e.componentCls,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),vBe(e))}),vLt=e=>$e($e({},Sst(e)),{borderStyle:"dashed"}),mLt=e=>$e($e($e({color:e.colorLink},XE({color:e.colorLinkHover},{color:e.colorLinkActive})),mW(e)),{[`&${e.componentCls}-dangerous`]:$e($e({color:e.colorError},XE({color:e.colorErrorHover},{color:e.colorErrorActive})),mW(e))}),yLt=e=>$e($e($e({},XE({color:e.colorText,backgroundColor:e.colorBgTextHover},{color:e.colorText,backgroundColor:e.colorBgTextActive})),mW(e)),{[`&${e.componentCls}-dangerous`]:$e($e({color:e.colorError},mW(e)),XE({color:e.colorErrorHover,backgroundColor:e.colorErrorBg},{color:e.colorErrorHover,backgroundColor:e.colorErrorBg}))}),bLt=e=>$e($e({},gye(e)),{[`&${e.componentCls}:hover`]:$e({},gye(e))}),wLt=e=>{const{componentCls:t}=e;return{[`${t}-default`]:Sst(e),[`${t}-primary`]:pLt(e),[`${t}-dashed`]:vLt(e),[`${t}-link`]:mLt(e),[`${t}-text`]:yLt(e),[`${t}-disabled`]:bLt(e)}},mBe=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const{componentCls:r,iconCls:n,controlHeight:i,fontSize:a,lineHeight:o,lineWidth:s,borderRadius:l,buttonPaddingHorizontal:u}=e,c=Math.max(0,(i-a*o)/2-s),A=u-s,f=`${r}-icon-only`;return[{[`${r}${t}`]:{fontSize:a,height:i,padding:`${c}px ${A}px`,borderRadius:l,[`&${f}`]:{width:i,paddingInlineStart:0,paddingInlineEnd:0,[`&${r}-round`]:{width:"auto"},"> span":{transform:"scale(1.143)"}},[`&${r}-loading`]:{opacity:e.opacityLoading,cursor:"default"},[`${r}-loading-icon`]:{transition:`width ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`&:not(${f}) ${r}-loading-icon > ${n}`]:{marginInlineEnd:e.marginXS}}},{[`${r}${r}-circle${t}`]:dLt(e)},{[`${r}${r}-round${t}`]:gLt(e)}]},CLt=e=>mBe(e),ILt=e=>{const t=Al(e,{controlHeight:e.controlHeightSM,padding:e.paddingXS,buttonPaddingHorizontal:8,borderRadius:e.borderRadiusSM});return mBe(t,`${e.componentCls}-sm`)},ELt=e=>{const t=Al(e,{controlHeight:e.controlHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG});return mBe(t,`${e.componentCls}-lg`)},BLt=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},xLt=Gu("Button",e=>{const{controlTmpOutline:t,paddingContentHorizontal:r}=e,n=Al(e,{colorOutlineDefault:t,buttonPaddingHorizontal:r});return[hLt(n),ILt(n),CLt(n),ELt(n),BLt(n),wLt(n),uLt(n),EL(e,{focus:!1}),fLt(e)]}),SLt=()=>({prefixCls:String,size:{type:String}}),kst=eBe(),pye=$n({compatConfig:{MODE:3},name:"AButtonGroup",props:SLt(),setup(e,t){let{slots:r}=t;const{prefixCls:n,direction:i}=gs("btn-group",e),[,,a]=P7();kst.useProvide(uc({size:vt(()=>e.size)}));const o=vt(()=>{const{size:s}=e;let l="";switch(s){case"large":l="lg";break;case"small":l="sm";break;case"middle":case void 0:break;default:BA(!s,"Button.Group","Invalid prop `size`.")}return{[`${n.value}`]:!0,[`${n.value}-${l}`]:l,[`${n.value}-rtl`]:i.value==="rtl",[a.value]:!0}});return()=>{var s;return De("div",{class:o.value},[sf((s=r.default)===null||s===void 0?void 0:s.call(r))])}}}),k9e=/^[\u4e00-\u9fa5]{2}$/,Q9e=k9e.test.bind(k9e);function Jj(e){return e==="text"||e==="link"}const ep=$n({compatConfig:{MODE:3},name:"AButton",inheritAttrs:!1,__ANT_BUTTON:!0,props:ju(Bst(),{type:"default"}),slots:Object,setup(e,t){let{slots:r,attrs:n,emit:i,expose:a}=t;const{prefixCls:o,autoInsertSpaceInButton:s,direction:l,size:u}=gs("btn",e),[c,A]=xLt(o),f=kst.useInject(),h=hC(),g=vt(()=>{var ae;return(ae=e.disabled)!==null&&ae!==void 0?ae:h.value}),p=sn(null),m=sn(void 0);let b=!1;const C=sn(!1),E=sn(!1),_=vt(()=>s.value!==!1),{compactSize:F,compactItemClassnames:M}=z7(o,l),N=vt(()=>typeof e.loading=="object"&&e.loading.delay?e.loading.delay||!0:!!e.loading);di(N,ae=>{clearTimeout(m.value),typeof N.value=="number"?m.value=setTimeout(()=>{C.value=ae},N.value):C.value=ae},{immediate:!0});const P=vt(()=>{const{type:ae,shape:se="default",ghost:de,block:Ae,danger:be}=e,Le=o.value,Ne={large:"lg",small:"sm",middle:void 0},ue=F.value||(f==null?void 0:f.size)||u.value,Ke=ue&&Ne[ue]||"";return[M.value,{[A.value]:!0,[`${Le}`]:!0,[`${Le}-${se}`]:se!=="default"&&se,[`${Le}-${ae}`]:ae,[`${Le}-${Ke}`]:Ke,[`${Le}-loading`]:C.value,[`${Le}-background-ghost`]:de&&!Jj(ae),[`${Le}-two-chinese-chars`]:E.value&&_.value,[`${Le}-block`]:Ae,[`${Le}-dangerous`]:!!be,[`${Le}-rtl`]:l.value==="rtl"}]}),j=()=>{const ae=p.value;if(!ae||s.value===!1)return;const se=ae.textContent;b&&Q9e(se)?E.value||(E.value=!0):E.value&&(E.value=!1)},z=ae=>{if(C.value||g.value){ae.preventDefault();return}i("click",ae)},W=ae=>{i("mousedown",ae)},Y=(ae,se)=>{const de=se?" ":"";if(ae.type===Yb){let Ae=ae.children.trim();return Q9e(Ae)&&(Ae=Ae.split("").join(de)),De("span",null,[Ae])}return ae};return ks(()=>{BA(!(e.ghost&&Jj(e.type)),"Button","`link` or `text` button can't be a `ghost` button.")}),Is(j),lm(j),el(()=>{m.value&&clearTimeout(m.value)}),a({focus:()=>{var ae;(ae=p.value)===null||ae===void 0||ae.focus()},blur:()=>{var ae;(ae=p.value)===null||ae===void 0||ae.blur()}}),()=>{var ae,se;const{icon:de=(ae=r.icon)===null||ae===void 0?void 0:ae.call(r)}=e,Ae=sf((se=r.default)===null||se===void 0?void 0:se.call(r));b=Ae.length===1&&!de&&!Jj(e.type);const{type:be,htmlType:Le,href:Ne,title:ue,target:Ke}=e,Pe=C.value?"loading":de,je=$e($e({},n),{title:ue,disabled:g.value,class:[P.value,n.class,{[`${o.value}-icon-only`]:Ae.length===0&&!!Pe}],onClick:z,onMousedown:W});g.value||delete je.disabled;const Ye=de&&!C.value?de:De(lLt,{existIcon:!!de,prefixCls:o.value,loading:!!C.value},null),me=Ae.map(et=>Y(et,b&&_.value));if(Ne!==void 0)return c(De("a",Ot(Ot({},je),{},{href:Ne,target:Ke,ref:p}),[Ye,me]));let Se=De("button",Ot(Ot({},je),{},{ref:p,type:Le}),[Ye,me]);if(!Jj(be)){const et=function(){return Se}();Se=De(Est,{ref:"wave",disabled:!!C.value},{default:()=>[et]})}return c(Se)}}});ep.Group=pye;ep.install=function(e){return e.component(ep.name,ep),e.component(pye.name,pye),e};const Qst=()=>({arrow:$l([Boolean,Object]),trigger:{type:[Array,String]},menu:To(),overlay:cn.any,visible:Pa(),open:Pa(),disabled:Pa(),danger:Pa(),autofocus:Pa(),align:To(),getPopupContainer:Function,prefixCls:String,transitionName:String,placement:String,overlayClassName:String,overlayStyle:To(),forceRender:Pa(),mouseEnterDelay:Number,mouseLeaveDelay:Number,openClassName:String,minOverlayWidthMatchTrigger:Pa(),destroyPopupOnHide:Pa(),onVisibleChange:{type:Function},"onUpdate:visible":{type:Function},onOpenChange:{type:Function},"onUpdate:open":{type:Function}}),Wae=Bst(),kLt=()=>$e($e({},Qst()),{type:Wae.type,size:String,htmlType:Wae.htmlType,href:String,disabled:Pa(),prefixCls:String,icon:cn.any,title:String,loading:Wae.loading,onClick:m6()});var QLt={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 _9e(e){for(var t=1;t{const{componentCls:t,antCls:r,paddingXS:n,opacityLoading:i}=e;return{[`${t}-button`]:{whiteSpace:"nowrap",[`&${r}-btn-group > ${r}-btn`]:{[`&-loading, &-loading + ${r}-btn`]:{cursor:"default",pointerEvents:"none",opacity:i},[`&:last-child:not(:first-child):not(${r}-btn-icon-only)`]:{paddingInline:n}}}}},DLt=e=>{const{componentCls:t,menuCls:r,colorError:n,colorTextLightSolid:i}=e,a=`${r}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${r} ${a}`]:{[`&${a}-danger:not(${a}-disabled)`]:{color:n,"&:hover":{color:i,backgroundColor:n}}}}}},FLt=e=>{const{componentCls:t,menuCls:r,zIndexPopup:n,dropdownArrowDistance:i,dropdownArrowOffset:a,sizePopupArrow:o,antCls:s,iconCls:l,motionDurationMid:u,dropdownPaddingVertical:c,fontSize:A,dropdownEdgeChildPadding:f,colorTextDisabled:h,fontSizeIcon:g,controlPaddingHorizontal:p,colorBgElevated:m,boxShadowPopoverArrow:b}=e;return[{[t]:$e($e({},gu(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:n,display:"block","&::before":{position:"absolute",insetBlock:-i+o/2,zIndex:-9999,opacity:1e-4,content:'""'},[`${t}-wrap`]:{position:"relative",[`${s}-btn > ${l}-down`]:{fontSize:g},[`${l}-down::before`]:{transition:`transform ${u}`}},[`${t}-wrap-open`]:{[`${l}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[` &-show-arrow${t}-placement-topLeft, &-show-arrow${t}-placement-top, &-show-arrow${t}-placement-topRight `]:{paddingBottom:i},[` &-show-arrow${t}-placement-bottomLeft, &-show-arrow${t}-placement-bottom, &-show-arrow${t}-placement-bottomRight `]:{paddingTop:i},[`${t}-arrow`]:$e({position:"absolute",zIndex:1,display:"block"},xEe(o,e.borderRadiusXS,e.borderRadiusOuter,m,b)),[` &-placement-top > ${t}-arrow, &-placement-topLeft > ${t}-arrow, &-placement-topRight > ${t}-arrow `]:{bottom:i,transform:"translateY(100%) rotate(180deg)"},[`&-placement-top > ${t}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateX(-50%) translateY(100%) rotate(180deg)"},[`&-placement-topLeft > ${t}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-topRight > ${t}-arrow`]:{right:{_skip_check_:!0,value:a}},[` &-placement-bottom > ${t}-arrow, &-placement-bottomLeft > ${t}-arrow, &-placement-bottomRight > ${t}-arrow `]:{top:i,transform:"translateY(-100%)"},[`&-placement-bottom > ${t}-arrow`]:{left:{_skip_check_:!0,value:"50%"},transform:"translateY(-100%) translateX(-50%)"},[`&-placement-bottomLeft > ${t}-arrow`]:{left:{_skip_check_:!0,value:a}},[`&-placement-bottomRight > ${t}-arrow`]:{right:{_skip_check_:!0,value:a}},[`&${s}-slide-down-enter${s}-slide-down-enter-active${t}-placement-bottomLeft, &${s}-slide-down-appear${s}-slide-down-appear-active${t}-placement-bottomLeft, &${s}-slide-down-enter${s}-slide-down-enter-active${t}-placement-bottom, &${s}-slide-down-appear${s}-slide-down-appear-active${t}-placement-bottom, &${s}-slide-down-enter${s}-slide-down-enter-active${t}-placement-bottomRight, &${s}-slide-down-appear${s}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:wJ},[`&${s}-slide-up-enter${s}-slide-up-enter-active${t}-placement-topLeft, &${s}-slide-up-appear${s}-slide-up-appear-active${t}-placement-topLeft, &${s}-slide-up-enter${s}-slide-up-enter-active${t}-placement-top, &${s}-slide-up-appear${s}-slide-up-appear-active${t}-placement-top, &${s}-slide-up-enter${s}-slide-up-enter-active${t}-placement-topRight, &${s}-slide-up-appear${s}-slide-up-appear-active${t}-placement-topRight`]:{animationName:IJ},[`&${s}-slide-down-leave${s}-slide-down-leave-active${t}-placement-bottomLeft, &${s}-slide-down-leave${s}-slide-down-leave-active${t}-placement-bottom, &${s}-slide-down-leave${s}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:CJ},[`&${s}-slide-up-leave${s}-slide-up-leave-active${t}-placement-topLeft, &${s}-slide-up-leave${s}-slide-up-leave-active${t}-placement-top, &${s}-slide-up-leave${s}-slide-up-leave-active${t}-placement-topRight`]:{animationName:EJ}})},{[`${t} ${r}`]:{position:"relative",margin:0},[`${r}-submenu-popup`]:{position:"absolute",zIndex:n,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul,li":{listStyle:"none"},ul:{marginInline:"0.3em"}},[`${t}, ${t}-menu-submenu`]:{[r]:$e($e({padding:f,listStyleType:"none",backgroundColor:m,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},g5(e)),{[`${r}-item-group-title`]:{padding:`${c}px ${p}px`,color:e.colorTextDescription,transition:`all ${u}`},[`${r}-item`]:{position:"relative",display:"flex",alignItems:"center",borderRadius:e.borderRadiusSM},[`${r}-item-icon`]:{minWidth:A,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},[`${r}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${u}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${r}-item, ${r}-submenu-title`]:$e($e({clear:"both",margin:0,padding:`${c}px ${p}px`,color:e.colorText,fontWeight:"normal",fontSize:A,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${u}`,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},g5(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:h,cursor:"not-allowed","&:hover":{color:h,backgroundColor:m,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${e.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},[`${t}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:e.paddingXS,[`${t}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:e.colorTextDescription,fontSize:g,fontStyle:"normal"}}}),[`${r}-item-group-list`]:{margin:`0 ${e.marginXS}px`,padding:0,listStyle:"none"},[`${r}-submenu-title`]:{paddingInlineEnd:p+e.fontSizeSM},[`${r}-submenu-vertical`]:{position:"relative"},[`${r}-submenu${r}-submenu-disabled ${t}-menu-submenu-title`]:{[`&, ${t}-menu-submenu-arrow-icon`]:{color:h,backgroundColor:m,cursor:"not-allowed"}},[`${r}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})}},[pC(e,"slide-up"),pC(e,"slide-down"),K9(e,"move-up"),K9(e,"move-down"),IL(e,"zoom-big")]]},_st=Gu("Dropdown",(e,t)=>{let{rootPrefixCls:r}=t;const{marginXXS:n,sizePopupArrow:i,controlHeight:a,fontSize:o,lineHeight:s,paddingXXS:l,componentCls:u,borderRadiusOuter:c,borderRadiusLG:A}=e,f=(a-o*s)/2,{dropdownArrowOffset:h}=yst({sizePopupArrow:i,contentRadius:A,borderRadiusOuter:c}),g=Al(e,{menuCls:`${u}-menu`,rootPrefixCls:r,dropdownArrowDistance:i/2+n,dropdownArrowOffset:h,dropdownPaddingVertical:f,dropdownEdgeChildPadding:l});return[FLt(g),TLt(g),DLt(g)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));var RLt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{i("update:visible",f),i("visibleChange",f),i("update:open",f),i("openChange",f)},{prefixCls:o,direction:s,getPopupContainer:l}=gs("dropdown",e),u=vt(()=>`${o.value}-button`),[c,A]=_st(o);return()=>{var f,h;const g=$e($e({},e),n),{type:p="default",disabled:m,danger:b,loading:C,htmlType:E,class:_="",overlay:F=(f=r.overlay)===null||f===void 0?void 0:f.call(r),trigger:M,align:N,open:P,visible:j,onVisibleChange:z,placement:W=s.value==="rtl"?"bottomLeft":"bottomRight",href:Y,title:ee,icon:q=((h=r.icon)===null||h===void 0?void 0:h.call(r))||De(xL,null,null),mouseEnterDelay:ae,mouseLeaveDelay:se,overlayClassName:de,overlayStyle:Ae,destroyPopupOnHide:be,onClick:Le,"onUpdate:open":Ne}=g,ue=RLt(g,["type","disabled","danger","loading","htmlType","class","overlay","trigger","align","open","visible","onVisibleChange","placement","href","title","icon","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","onClick","onUpdate:open"]),Ke={align:N,disabled:m,trigger:m?[]:M,placement:W,getPopupContainer:l==null?void 0:l.value,onOpenChange:a,mouseEnterDelay:ae,mouseLeaveDelay:se,open:P??j,overlayClassName:de,overlayStyle:Ae,destroyPopupOnHide:be},Pe=De(ep,{danger:b,type:p,disabled:m,loading:C,onClick:Le,htmlType:E,href:Y,title:ee},{default:r.default}),je=De(ep,{danger:b,type:p,icon:q},null);return c(De(MLt,Ot(Ot({},ue),{},{class:Vn(u.value,_,A.value)}),{default:()=>[r.leftButton?r.leftButton({button:Pe}):Pe,De(FE,Ke,{default:()=>[r.rightButton?r.rightButton({button:je}):je],overlay:()=>F})]}))}}});var Tst={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"};function T9e(e){for(var t=1;tWo(Dst,void 0),Rst=e=>{var t,r,n;const{prefixCls:i,mode:a,selectable:o,validator:s,onClick:l,expandIcon:u}=Fst()||{};Es(Dst,{prefixCls:vt(()=>{var c,A;return(A=(c=e.prefixCls)===null||c===void 0?void 0:c.value)!==null&&A!==void 0?A:i==null?void 0:i.value}),mode:vt(()=>{var c,A;return(A=(c=e.mode)===null||c===void 0?void 0:c.value)!==null&&A!==void 0?A:a==null?void 0:a.value}),selectable:vt(()=>{var c,A;return(A=(c=e.selectable)===null||c===void 0?void 0:c.value)!==null&&A!==void 0?A:o==null?void 0:o.value}),validator:(t=e.validator)!==null&&t!==void 0?t:s,onClick:(r=e.onClick)!==null&&r!==void 0?r:l,expandIcon:(n=e.expandIcon)!==null&&n!==void 0?n:u==null?void 0:u.value})},FE=$n({compatConfig:{MODE:3},name:"ADropdown",inheritAttrs:!1,props:ju(Qst(),{mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft",trigger:"hover"}),slots:Object,setup(e,t){let{slots:r,attrs:n,emit:i}=t;const{prefixCls:a,rootPrefixCls:o,direction:s,getPopupContainer:l}=gs("dropdown",e),[u,c]=_st(a),A=vt(()=>{const{placement:m="",transitionName:b}=e;return b!==void 0?b:m.includes("top")?`${o.value}-slide-down`:`${o.value}-slide-up`});Rst({prefixCls:vt(()=>`${a.value}-menu`),expandIcon:vt(()=>De("span",{class:`${a.value}-menu-submenu-arrow`},[De(v5,{class:`${a.value}-menu-submenu-arrow-icon`},null)])),mode:vt(()=>"vertical"),selectable:vt(()=>!1),onClick:()=>{},validator:m=>{}});const f=()=>{var m,b,C;const E=e.overlay||((m=r.overlay)===null||m===void 0?void 0:m.call(r)),_=Array.isArray(E)?E[0]:E;if(!_)return null;const F=_.props||{};BA(!F.mode||F.mode==="vertical","Dropdown",`mode="${F.mode}" is not supported for Dropdown's Menu.`);const{selectable:M=!1,expandIcon:N=(C=(b=_.children)===null||b===void 0?void 0:b.expandIcon)===null||C===void 0?void 0:C.call(b)}=F,P=typeof N<"u"&&l0(N)?N:De("span",{class:`${a.value}-menu-submenu-arrow`},[De(v5,{class:`${a.value}-menu-submenu-arrow-icon`},null)]);return l0(_)?aA(_,{mode:"vertical",selectable:M,expandIcon:()=>P}):_},h=vt(()=>{const m=e.placement;if(!m)return s.value==="rtl"?"bottomRight":"bottomLeft";if(m.includes("Center")){const b=m.slice(0,m.indexOf("Center"));return BA(!m.includes("Center"),"Dropdown",`You are using '${m}' placement in Dropdown, which is deprecated. Try to use '${b}' instead.`),b}return m}),g=vt(()=>typeof e.visible=="boolean"?e.visible:e.open),p=m=>{i("update:visible",m),i("visibleChange",m),i("update:open",m),i("openChange",m)};return()=>{var m,b;const{arrow:C,trigger:E,disabled:_,overlayClassName:F}=e,M=(m=r.default)===null||m===void 0?void 0:m.call(r)[0],N=aA(M,$e({class:Vn((b=M==null?void 0:M.props)===null||b===void 0?void 0:b.class,{[`${a.value}-rtl`]:s.value==="rtl"},`${a.value}-trigger`)},_?{disabled:_}:{})),P=Vn(F,c.value,{[`${a.value}-rtl`]:s.value==="rtl"}),j=_?[]:E;let z;j&&j.includes("contextmenu")&&(z=!0);const W=pst({arrowPointAtCenter:typeof C=="object"&&C.pointAtCenter,autoAdjustOverflow:!0}),Y=Cc($e($e($e({},e),n),{visible:g.value,builtinPlacements:W,overlayClassName:P,arrow:!!C,alignPoint:z,prefixCls:a.value,getPopupContainer:l==null?void 0:l.value,transitionName:A.value,trigger:j,onVisibleChange:p,placement:h.value}),["overlay","onUpdate:visible"]);return u(De(Ist,Y,{default:()=>[N],overlay:f}))}}});FE.Button=yW;var NLt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i({prefixCls:String,href:String,separator:cn.any,dropdownProps:To(),overlay:cn.any,onClick:m6()}),bW=$n({compatConfig:{MODE:3},name:"ABreadcrumbItem",inheritAttrs:!1,__ANT_BREADCRUMB_ITEM:!0,props:LLt(),slots:Object,setup(e,t){let{slots:r,attrs:n,emit:i}=t;const{prefixCls:a}=gs("breadcrumb",e),o=(l,u)=>{const c=Xv(r,e,"overlay");return c?De(FE,Ot(Ot({},e.dropdownProps),{},{overlay:c,placement:"bottom"}),{default:()=>[De("span",{class:`${u}-overlay-link`},[l,De(j7,null,null)])]}):l},s=l=>{i("click",l)};return()=>{var l;const u=(l=Xv(r,e,"separator"))!==null&&l!==void 0?l:"/",c=Xv(r,e),{class:A,style:f}=n,h=NLt(n,["class","style"]);let g;return e.href!==void 0?g=De("a",Ot({class:`${a.value}-link`,onClick:s},h),[c]):g=De("span",Ot({class:`${a.value}-link`,onClick:s},h),[c]),g=o(g,a.value),c!=null?De("li",{class:A,style:f},[g,u&&De("span",{class:`${a.value}-separator`},[u])]):null}}});function PLt(e,t,r,n){let i;if(i!==void 0)return!!i;if(e===t)return!0;if(typeof e!="object"||!e||typeof t!="object"||!t)return!1;const a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;const s=Object.prototype.hasOwnProperty.bind(t);for(let l=0;l{Es(Mst,e)},CB=()=>Wo(Mst),Nst=Symbol("ForceRenderKey"),ULt=e=>{Es(Nst,e)},Lst=()=>Wo(Nst,!1),Pst=Symbol("menuFirstLevelContextKey"),Ust=e=>{Es(Pst,e)},HLt=()=>Wo(Pst,!0),wW=$n({compatConfig:{MODE:3},name:"MenuContextProvider",inheritAttrs:!1,props:{mode:{type:String,default:void 0},overflowDisabled:{type:Boolean,default:void 0}},setup(e,t){let{slots:r}=t;const n=CB(),i=$e({},n);return e.mode!==void 0&&(i.mode=ws(e,"mode")),e.overflowDisabled!==void 0&&(i.overflowDisabled=ws(e,"overflowDisabled")),Ost(i),()=>{var a;return(a=r.default)===null||a===void 0?void 0:a.call(r)}}}),Hst=Symbol("siderCollapsed"),jst=Symbol("siderHookProvider"),Xj="$$__vc-menu-more__key",Gst=Symbol("KeyPathContext"),yBe=()=>Wo(Gst,{parentEventKeys:vt(()=>[]),parentKeys:vt(()=>[]),parentInfo:{}}),jLt=(e,t,r)=>{const{parentEventKeys:n,parentKeys:i}=yBe(),a=vt(()=>[...n.value,e]),o=vt(()=>[...i.value,t]);return Es(Gst,{parentEventKeys:a,parentKeys:o,parentInfo:r}),o},$st=Symbol("measure"),D9e=$n({compatConfig:{MODE:3},setup(e,t){let{slots:r}=t;return Es($st,!0),()=>{var n;return(n=r.default)===null||n===void 0?void 0:n.call(r)}}}),bBe=()=>Wo($st,!1);function zst(e){const{mode:t,rtl:r,inlineIndent:n}=CB();return vt(()=>t.value!=="inline"?null:r.value?{paddingRight:`${e.value*n.value}px`}:{paddingLeft:`${e.value*n.value}px`})}let GLt=0;const $Lt=()=>({id:String,role:String,disabled:Boolean,danger:Boolean,title:{type:[String,Boolean],default:void 0},icon:cn.any,onMouseenter:Function,onMouseleave:Function,onClick:Function,onKeydown:Function,onFocus:Function,originItemValue:To()}),V9=$n({compatConfig:{MODE:3},name:"AMenuItem",inheritAttrs:!1,props:$Lt(),slots:Object,setup(e,t){let{slots:r,emit:n,attrs:i}=t;const a=sA(),o=bBe(),s=typeof a.vnode.key=="symbol"?String(a.vnode.key):a.vnode.key;BA(typeof a.vnode.key!="symbol","MenuItem",`MenuItem \`:key="${String(s)}"\` not support Symbol type`);const l=`menu_item_${++GLt}_$$_${s}`,{parentEventKeys:u,parentKeys:c}=yBe(),{prefixCls:A,activeKeys:f,disabled:h,changeActiveKeys:g,rtl:p,inlineCollapsed:m,siderCollapsed:b,onItemClick:C,selectedKeys:E,registerMenuInfo:_,unRegisterMenuInfo:F}=CB(),M=HLt(),N=sn(!1),P=vt(()=>[...c.value,s]);_(l,{eventKey:l,key:s,parentEventKeys:u,parentKeys:c,isLeaf:!0}),el(()=>{F(l)}),di(f,()=>{N.value=!!f.value.find(Ne=>Ne===s)},{immediate:!0});const z=vt(()=>h.value||e.disabled),W=vt(()=>E.value.includes(s)),Y=vt(()=>{const Ne=`${A.value}-item`;return{[`${Ne}`]:!0,[`${Ne}-danger`]:e.danger,[`${Ne}-active`]:N.value,[`${Ne}-selected`]:W.value,[`${Ne}-disabled`]:z.value}}),ee=Ne=>({key:s,eventKey:l,keyPath:P.value,eventKeyPath:[...u.value,l],domEvent:Ne,item:$e($e({},e),i)}),q=Ne=>{if(z.value)return;const ue=ee(Ne);n("click",Ne),C(ue)},ae=Ne=>{z.value||(g(P.value),n("mouseenter",Ne))},se=Ne=>{z.value||(g([]),n("mouseleave",Ne))},de=Ne=>{if(n("keydown",Ne),Ne.which===yi.ENTER){const ue=ee(Ne);n("click",Ne),C(ue)}},Ae=Ne=>{g(P.value),n("focus",Ne)},be=(Ne,ue)=>{const Ke=De("span",{class:`${A.value}-title-content`},[ue]);return(!Ne||l0(ue)&&ue.type==="span")&&m.value&&M&&typeof ue=="string"?De("div",{class:`${A.value}-inline-collapsed-noicon`},[ue.charAt(0)]):Ke},Le=zst(vt(()=>P.value.length));return()=>{var Ne,ue,Ke,Pe,je;if(o)return null;const Ye=(Ne=e.title)!==null&&Ne!==void 0?Ne:(ue=r.title)===null||ue===void 0?void 0:ue.call(r),me=sf((Ke=r.default)===null||Ke===void 0?void 0:Ke.call(r)),Se=me.length;let et=Ye;typeof Ye>"u"?et=M&&Se?me:"":Ye===!1&&(et="");const nt={title:et};!b.value&&!m.value&&(nt.title=null,nt.open=!1);const tt={};e.role==="option"&&(tt["aria-selected"]=W.value);const ft=(Pe=e.icon)!==null&&Pe!==void 0?Pe:(je=r.icon)===null||je===void 0?void 0:je.call(r,e);return De(BL,Ot(Ot({},nt),{},{placement:p.value?"left":"right",overlayClassName:`${A.value}-inline-collapsed-tooltip`}),{default:()=>[De(DE.Item,Ot(Ot(Ot({component:"li"},i),{},{id:e.id,style:$e($e({},i.style||{}),Le.value),class:[Y.value,{[`${i.class}`]:!!i.class,[`${A.value}-item-only-child`]:(ft?Se+1:Se)===1}],role:e.role||"menuitem",tabindex:e.disabled?null:-1,"data-menu-id":s,"aria-disabled":e.disabled},tt),{},{onMouseenter:ae,onMouseleave:se,onClick:q,onKeydown:de,onFocus:Ae,title:typeof Ye=="string"?Ye:void 0}),{default:()=>[aA(typeof ft=="function"?ft(e.originItemValue):ft,{class:`${A.value}-item-icon`},!1),be(ft,me)]})]})}}}),B3={adjustX:1,adjustY:1},zLt={topLeft:{points:["bl","tl"],overflow:B3,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:B3,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:B3,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:B3,offset:[4,0]}},KLt={topLeft:{points:["bl","tl"],overflow:B3,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:B3,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:B3,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:B3,offset:[4,0]}},VLt={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},F9e=$n({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(e,t){let{slots:r,emit:n}=t;const i=sn(!1),{getPopupContainer:a,rtl:o,subMenuOpenDelay:s,subMenuCloseDelay:l,builtinPlacements:u,triggerSubMenuAction:c,forceSubMenuRender:A,motion:f,defaultMotions:h,rootClassName:g}=CB(),p=Lst(),m=vt(()=>o.value?$e($e({},KLt),u.value):$e($e({},zLt),u.value)),b=vt(()=>VLt[e.mode]),C=sn();di(()=>e.visible,F=>{ms.cancel(C.value),C.value=ms(()=>{i.value=F})},{immediate:!0}),el(()=>{ms.cancel(C.value)});const E=F=>{n("visibleChange",F)},_=vt(()=>{var F,M;const N=f.value||((F=h.value)===null||F===void 0?void 0:F[e.mode])||((M=h.value)===null||M===void 0?void 0:M.other),P=typeof N=="function"?N():N;return P?p5(P.name,{css:!0}):void 0});return()=>{const{prefixCls:F,popupClassName:M,mode:N,popupOffset:P,disabled:j}=e;return De(yL,{prefixCls:F,popupClassName:Vn(`${F}-popup`,{[`${F}-rtl`]:o.value},M,g.value),stretch:N==="horizontal"?"minWidth":null,getPopupContainer:a.value,builtinPlacements:m.value,popupPlacement:b.value,popupVisible:i.value,popupAlign:P&&{offset:P},action:j?[]:[c.value],mouseEnterDelay:s.value,mouseLeaveDelay:l.value,onPopupVisibleChange:E,forceRender:p||A.value,popupAnimation:_.value},{popup:r.popup,default:r.default})}}}),wBe=(e,t)=>{let{slots:r,attrs:n}=t;var i;const{prefixCls:a,mode:o}=CB();return De("ul",Ot(Ot({},n),{},{class:Vn(a.value,`${a.value}-sub`,`${a.value}-${o.value==="inline"?"inline":"vertical"}`),"data-menu-list":!0}),[(i=r.default)===null||i===void 0?void 0:i.call(r)])};wBe.displayName="SubMenuList";const WLt=$n({compatConfig:{MODE:3},name:"InlineSubMenuList",inheritAttrs:!1,props:{id:String,open:Boolean,keyPath:Array},setup(e,t){let{slots:r}=t;const n=vt(()=>"inline"),{motion:i,mode:a,defaultMotions:o}=CB(),s=vt(()=>a.value===n.value),l=Hn(!s.value),u=vt(()=>s.value?e.open:!1);di(a,()=>{s.value&&(l.value=!1)},{flush:"post"});const c=vt(()=>{var A,f;const h=i.value||((A=o.value)===null||A===void 0?void 0:A[n.value])||((f=o.value)===null||f===void 0?void 0:f.other),g=typeof h=="function"?h():h;return $e($e({},g),{appear:e.keyPath.length<=1})});return()=>{var A;return l.value?null:De(wW,{mode:n.value},{default:()=>[De(nm,c.value,{default:()=>[rp(De(wBe,{id:e.id},{default:()=>[(A=r.default)===null||A===void 0?void 0:A.call(r)]}),[[_y,u.value]])]})]})}}});let R9e=0;const YLt=()=>({icon:cn.any,title:cn.any,disabled:Boolean,level:Number,popupClassName:String,popupOffset:Array,internalPopupClose:Boolean,eventKey:String,expandIcon:Function,theme:String,onMouseenter:Function,onMouseleave:Function,onTitleClick:Function,originItemValue:To()}),W9=$n({compatConfig:{MODE:3},name:"ASubMenu",inheritAttrs:!1,props:YLt(),slots:Object,setup(e,t){let{slots:r,attrs:n,emit:i}=t;var a,o;Ust(!1);const s=bBe(),l=sA(),u=typeof l.vnode.key=="symbol"?String(l.vnode.key):l.vnode.key;BA(typeof l.vnode.key!="symbol","SubMenu",`SubMenu \`:key="${String(u)}"\` not support Symbol type`);const c=P1e(u)?u:`sub_menu_${++R9e}_$$_not_set_key`,A=(a=e.eventKey)!==null&&a!==void 0?a:P1e(u)?`sub_menu_${++R9e}_$$_${u}`:c,{parentEventKeys:f,parentInfo:h,parentKeys:g}=yBe(),p=vt(()=>[...g.value,c]),m=sn([]),b={eventKey:A,key:c,parentEventKeys:f,childrenEventKeys:m,parentKeys:g};(o=h.childrenEventKeys)===null||o===void 0||o.value.push(A),el(()=>{var We;h.childrenEventKeys&&(h.childrenEventKeys.value=(We=h.childrenEventKeys)===null||We===void 0?void 0:We.value.filter(mt=>mt!=A))}),jLt(A,c,b);const{prefixCls:C,activeKeys:E,disabled:_,changeActiveKeys:F,mode:M,inlineCollapsed:N,openKeys:P,overflowDisabled:j,onOpenChange:z,registerMenuInfo:W,unRegisterMenuInfo:Y,selectedSubMenuKeys:ee,expandIcon:q,theme:ae}=CB(),se=u!=null,de=!s&&(Lst()||!se);ULt(de),(s&&se||!s&&!se||de)&&(W(A,b),el(()=>{Y(A)}));const Ae=vt(()=>`${C.value}-submenu`),be=vt(()=>_.value||e.disabled),Le=sn(),Ne=sn(),ue=vt(()=>P.value.includes(c)),Ke=vt(()=>!j.value&&ue.value),Pe=vt(()=>ee.value.includes(c)),je=sn(!1);di(E,()=>{je.value=!!E.value.find(We=>We===c)},{immediate:!0});const Ye=We=>{be.value||(i("titleClick",We,c),M.value==="inline"&&z(c,!ue.value))},me=We=>{be.value||(F(p.value),i("mouseenter",We))},Se=We=>{be.value||(F([]),i("mouseleave",We))},et=zst(vt(()=>p.value.length)),nt=We=>{M.value!=="inline"&&z(c,We)},tt=()=>{F(p.value)},ft=A&&`${A}-popup`,st=vt(()=>Vn(C.value,`${C.value}-${e.theme||ae.value}`,e.popupClassName)),Re=(We,mt)=>{if(!mt)return N.value&&!g.value.length&&We&&typeof We=="string"?De("div",{class:`${C.value}-inline-collapsed-noicon`},[We.charAt(0)]):De("span",{class:`${C.value}-title-content`},[We]);const Tt=l0(We)&&We.type==="span";return De(ls,null,[aA(typeof mt=="function"?mt(e.originItemValue):mt,{class:`${C.value}-item-icon`},!1),Tt?We:De("span",{class:`${C.value}-title-content`},[We])])},dt=vt(()=>M.value!=="inline"&&p.value.length>1?"vertical":M.value),Oe=vt(()=>M.value==="horizontal"?"vertical":M.value),Ce=vt(()=>dt.value==="horizontal"?"vertical":dt.value),Be=()=>{var We,mt;const Tt=Ae.value,bt=(We=e.icon)!==null&&We!==void 0?We:(mt=r.icon)===null||mt===void 0?void 0:mt.call(r,e),qt=e.expandIcon||r.expandIcon||q.value,cr=Re(Xv(r,e,"title"),bt);return De("div",{style:et.value,class:`${Tt}-title`,tabindex:be.value?null:-1,ref:Le,title:typeof cr=="string"?cr:null,"data-menu-id":c,"aria-expanded":Ke.value,"aria-haspopup":!0,"aria-controls":ft,"aria-disabled":be.value,onClick:Ye,onFocus:tt},[cr,M.value!=="horizontal"&&qt?qt($e($e({},e),{isOpen:Ke.value})):De("i",{class:`${Tt}-arrow`},null)])};return()=>{var We;if(s)return se?(We=r.default)===null||We===void 0?void 0:We.call(r):null;const mt=Ae.value;let Tt=()=>null;if(!j.value&&M.value!=="inline"){const bt=M.value==="horizontal"?[0,8]:[10,0];Tt=()=>De(F9e,{mode:dt.value,prefixCls:mt,visible:!e.internalPopupClose&&Ke.value,popupClassName:st.value,popupOffset:e.popupOffset||bt,disabled:be.value,onVisibleChange:nt},{default:()=>[Be()],popup:()=>De(wW,{mode:Ce.value},{default:()=>[De(wBe,{id:ft,ref:Ne},{default:r.default})]})})}else Tt=()=>De(F9e,null,{default:Be});return De(wW,{mode:Oe.value},{default:()=>[De(DE.Item,Ot(Ot({component:"li"},n),{},{role:"none",class:Vn(mt,`${mt}-${M.value}`,n.class,{[`${mt}-open`]:Ke.value,[`${mt}-active`]:je.value,[`${mt}-selected`]:Pe.value,[`${mt}-disabled`]:be.value}),onMouseenter:me,onMouseleave:Se,"data-submenu-id":c}),{default:()=>De(ls,null,[Tt(),!j.value&&De(WLt,{id:ft,open:Ke.value,keyPath:p.value},{default:r.default})])})]})}}});function Kst(e,t){return e.classList?e.classList.contains(t):` ${e.className} `.indexOf(` ${t} `)>-1}function M9e(e,t){e.classList?e.classList.add(t):Kst(e,t)||(e.className=`${e.className} ${t}`)}function O9e(e,t){if(e.classList)e.classList.remove(t);else if(Kst(e,t)){const r=e.className;e.className=` ${r} `.replace(` ${t} `," ")}}const xJ=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ant-motion-collapse",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return{name:e,appear:t,css:!0,onBeforeEnter:r=>{r.style.height="0px",r.style.opacity="0",M9e(r,e)},onEnter:r=>{il(()=>{r.style.height=`${r.scrollHeight}px`,r.style.opacity="1"})},onAfterEnter:r=>{r&&(O9e(r,e),r.style.height=null,r.style.opacity=null)},onBeforeLeave:r=>{M9e(r,e),r.style.height=`${r.offsetHeight}px`,r.style.opacity=null},onLeave:r=>{setTimeout(()=>{r.style.height="0px",r.style.opacity="0"})},onAfterLeave:r=>{r&&(O9e(r,e),r.style&&(r.style.height=null,r.style.opacity=null))}}},qLt=()=>({title:cn.any,originItemValue:To()}),CW=$n({compatConfig:{MODE:3},name:"AMenuItemGroup",inheritAttrs:!1,props:qLt(),slots:Object,setup(e,t){let{slots:r,attrs:n}=t;const{prefixCls:i}=CB(),a=vt(()=>`${i.value}-item-group`),o=bBe();return()=>{var s,l;return o?(s=r.default)===null||s===void 0?void 0:s.call(r):De("li",Ot(Ot({},n),{},{onClick:u=>u.stopPropagation(),class:a.value}),[De("div",{title:typeof e.title=="string"?e.title:void 0,class:`${a.value}-title`},[Xv(r,e,"title")]),De("ul",{class:`${a.value}-list`},[(l=r.default)===null||l===void 0?void 0:l.call(r)])])}}}),JLt=()=>({prefixCls:String,dashed:Boolean}),IW=$n({compatConfig:{MODE:3},name:"AMenuDivider",props:JLt(),setup(e){const{prefixCls:t}=CB(),r=vt(()=>({[`${t.value}-item-divider`]:!0,[`${t.value}-item-divider-dashed`]:!!e.dashed}));return()=>De("li",{class:r.value},null)}});var XLt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{if(n&&typeof n=="object"){const a=n,{label:o,children:s,key:l,type:u}=a,c=XLt(a,["label","children","key","type"]),A=l??`tmp-${i}`,f=r?r.parentKeys.slice():[],h=[],g={eventKey:A,key:A,parentEventKeys:Hn(f),parentKeys:Hn(f),childrenEventKeys:Hn(h),isLeaf:!1};if(s||u==="group"){if(u==="group"){const m=vye(s,t,r);return De(CW,Ot(Ot({key:A},c),{},{title:o,originItemValue:n}),{default:()=>[m]})}t.set(A,g),r&&r.childrenEventKeys.push(A);const p=vye(s,t,{childrenEventKeys:h,parentKeys:[].concat(f,A)});return De(W9,Ot(Ot({key:A},c),{},{title:o,originItemValue:n}),{default:()=>[p]})}return u==="divider"?De(IW,Ot({key:A},c),null):(g.isLeaf=!0,t.set(A,g),De(V9,Ot(Ot({key:A},c),{},{originItemValue:n}),{default:()=>[o]}))}return null}).filter(n=>n)}function ZLt(e){const t=sn([]),r=sn(!1),n=sn(new Map);return di(()=>e.items,()=>{const i=new Map;r.value=!1,e.items?(r.value=!0,t.value=vye(e.items,i)):t.value=void 0,n.value=i},{immediate:!0,deep:!0}),{itemsNodes:t,store:n,hasItmes:r}}const ePt=e=>{const{componentCls:t,motionDurationSlow:r,menuHorizontalHeight:n,colorSplit:i,lineWidth:a,lineType:o,menuItemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:`${n}px`,border:0,borderBottom:`${a}px ${o} ${i}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover, > ${t}-item-active, > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${r}`,`background ${r}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},tPt=e=>{let{componentCls:t,menuArrowOffset:r}=e;return{[`${t}-rtl`]:{direction:"rtl"},[`${t}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${t}-rtl${t}-vertical, ${t}-submenu-rtl ${t}-vertical`]:{[`${t}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${r})`},"&::after":{transform:`rotate(45deg) translateY(${r})`}}}}},N9e=e=>$e({},JE(e)),L9e=(e,t)=>{const{componentCls:r,colorItemText:n,colorItemTextSelected:i,colorGroupTitle:a,colorItemBg:o,colorSubItemBg:s,colorItemBgSelected:l,colorActiveBarHeight:u,colorActiveBarWidth:c,colorActiveBarBorderSize:A,motionDurationSlow:f,motionEaseInOut:h,motionEaseOut:g,menuItemPaddingInline:p,motionDurationMid:m,colorItemTextHover:b,lineType:C,colorSplit:E,colorItemTextDisabled:_,colorDangerItemText:F,colorDangerItemTextHover:M,colorDangerItemTextSelected:N,colorDangerItemBgActive:P,colorDangerItemBgSelected:j,colorItemBgHover:z,menuSubMenuBg:W,colorItemTextSelectedHorizontal:Y,colorItemBgSelectedHorizontal:ee}=e;return{[`${r}-${t}`]:{color:n,background:o,[`&${r}-root:focus-visible`]:$e({},N9e(e)),[`${r}-item-group-title`]:{color:a},[`${r}-submenu-selected`]:{[`> ${r}-submenu-title`]:{color:i}},[`${r}-item-disabled, ${r}-submenu-disabled`]:{color:`${_} !important`},[`${r}-item:hover, ${r}-submenu-title:hover`]:{[`&:not(${r}-item-selected):not(${r}-submenu-selected)`]:{color:b}},[`&:not(${r}-horizontal)`]:{[`${r}-item:not(${r}-item-selected)`]:{"&:hover":{backgroundColor:z},"&:active":{backgroundColor:l}},[`${r}-submenu-title`]:{"&:hover":{backgroundColor:z},"&:active":{backgroundColor:l}}},[`${r}-item-danger`]:{color:F,[`&${r}-item:hover`]:{[`&:not(${r}-item-selected):not(${r}-submenu-selected)`]:{color:M}},[`&${r}-item:active`]:{background:P}},[`${r}-item a`]:{"&, &:hover":{color:"inherit"}},[`${r}-item-selected`]:{color:i,[`&${r}-item-danger`]:{color:N},"a, a:hover":{color:"inherit"}},[`& ${r}-item-selected`]:{backgroundColor:l,[`&${r}-item-danger`]:{backgroundColor:j}},[`${r}-item, ${r}-submenu-title`]:{[`&:not(${r}-item-disabled):focus-visible`]:$e({},N9e(e))},[`&${r}-submenu > ${r}`]:{backgroundColor:W},[`&${r}-popup > ${r}`]:{backgroundColor:o},[`&${r}-horizontal`]:$e($e({},t==="dark"?{borderBottom:0}:{}),{[`> ${r}-item, > ${r}-submenu`]:{top:A,marginTop:-A,marginBottom:0,borderRadius:0,"&::after":{position:"absolute",insetInline:p,bottom:0,borderBottom:`${u}px solid transparent`,transition:`border-color ${f} ${h}`,content:'""'},"&:hover, &-active, &-open":{"&::after":{borderBottomWidth:u,borderBottomColor:Y}},"&-selected":{color:Y,backgroundColor:ee,"&::after":{borderBottomWidth:u,borderBottomColor:Y}}}}),[`&${r}-root`]:{[`&${r}-inline, &${r}-vertical`]:{borderInlineEnd:`${A}px ${C} ${E}`}},[`&${r}-inline`]:{[`${r}-sub${r}-inline`]:{background:s},[`${r}-item, ${r}-submenu-title`]:A&&c?{width:`calc(100% + ${A}px)`}:{},[`${r}-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:'""'},[`&${r}-item-danger`]:{"&::after":{borderInlineEndColor:N}}},[`${r}-selected, ${r}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${m} ${h}`,`opacity ${m} ${h}`].join(",")}}}}}},P9e=e=>{const{componentCls:t,menuItemHeight:r,itemMarginInline:n,padding:i,menuArrowSize:a,marginXS:o,marginXXS:s}=e,l=i+a+o;return{[`${t}-item`]:{position:"relative"},[`${t}-item, ${t}-submenu-title`]:{height:r,lineHeight:`${r}px`,paddingInline:i,overflow:"hidden",textOverflow:"ellipsis",marginInline:n,marginBlock:s,width:`calc(100% - ${n*2}px)`},[`${t}-submenu`]:{paddingBottom:.02},[`> ${t}-item, > ${t}-submenu > ${t}-submenu-title`]:{height:r,lineHeight:`${r}px`},[`${t}-item-group-list ${t}-submenu-title, ${t}-submenu-title`]:{paddingInlineEnd:l}}},rPt=e=>{const{componentCls:t,iconCls:r,menuItemHeight:n,colorTextLightSolid:i,dropdownWidth:a,controlHeightLG:o,motionDurationMid:s,motionEaseOut:l,paddingXL:u,fontSizeSM:c,fontSizeLG:A,motionDurationSlow:f,paddingXS:h,boxShadowSecondary:g}=e,p={height:n,lineHeight:`${n}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":$e({[`&${t}-root`]:{boxShadow:"none"}},P9e(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:$e($e({},P9e(e)),{boxShadow:g})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:a,maxHeight:`calc(100vh - ${o*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${t}-inline`]:{width:"100%",[`&${t}-root`]:{[`${t}-item, ${t}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${f}`,`background ${f}`,`padding ${s} ${l}`].join(","),[`> ${t}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${t}-sub${t}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${t}-submenu > ${t}-submenu-title`]:p,[`& ${t}-item-group-title`]:{paddingInlineStart:u}},[`${t}-item`]:p}},{[`${t}-inline-collapsed`]:{width:n*2,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:A,textAlign:"center"}}},[`> ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-item, > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title, > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${c}px)`,textOverflow:"clip",[` ${t}-submenu-arrow, ${t}-submenu-expand-icon `]:{opacity:0},[`${t}-item-icon, ${r}`]:{margin:0,fontSize:A,lineHeight:`${n}px`,"+ span":{display:"inline-block",opacity:0}}},[`${t}-item-icon, ${r}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${t}-item-icon, ${r}`]:{display:"none"},"a, a:hover":{color:i}},[`${t}-item-group-title`]:$e($e({},qE),{paddingInline:h})}}]},U9e=e=>{const{componentCls:t,fontSize:r,motionDurationSlow:n,motionDurationMid:i,motionEaseInOut:a,motionEaseOut:o,iconCls:s,controlHeightSM:l}=e;return{[`${t}-item, ${t}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${n}`,`background ${n}`,`padding ${n} ${a}`].join(","),[`${t}-item-icon, ${s}`]:{minWidth:r,fontSize:r,transition:[`font-size ${i} ${o}`,`margin ${n} ${a}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l-r,opacity:1,transition:[`opacity ${n} ${a}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:$e({},vL()),[`&${t}-item-only-child`]:{[`> ${s}, > ${t}-item-icon`]:{marginInlineEnd:0}}},[`${t}-item-disabled, ${t}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${t}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},H9e=e=>{const{componentCls:t,motionDurationSlow:r,motionEaseInOut:n,borderRadius:i,menuArrowSize:a,menuArrowOffset:o}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:a,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${r} ${n}, opacity ${r}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:a*.6,height:a*.15,backgroundColor:"currentcolor",borderRadius:i,transition:[`background ${r} ${n}`,`transform ${r} ${n}`,`top ${r} ${n}`,`color ${r} ${n}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${o})`},"&::after":{transform:`rotate(-45deg) translateY(${o})`}}}}},nPt=e=>{const{antCls:t,componentCls:r,fontSize:n,motionDurationSlow:i,motionDurationMid:a,motionEaseInOut:o,lineHeight:s,paddingXS:l,padding:u,colorSplit:c,lineWidth:A,zIndexPopup:f,borderRadiusLG:h,radiusSubMenuItem:g,menuArrowSize:p,menuArrowOffset:m,lineType:b,menuPanelMaskInset:C}=e;return[{"":{[`${r}`]:$e($e({},y6()),{"&-hidden":{display:"none"}})},[`${r}-submenu-hidden`]:{display:"none"}},{[r]:$e($e($e($e($e($e($e({},gu(e)),y6()),{marginBottom:0,paddingInlineStart:0,fontSize:n,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",[`${r}-item`]:{flex:"none"}},[`${r}-item, ${r}-submenu, ${r}-submenu-title`]:{borderRadius:e.radiusItem},[`${r}-item-group-title`]:{padding:`${l}px ${u}px`,fontSize:n,lineHeight:s,transition:`all ${i}`},[`&-horizontal ${r}-submenu`]:{transition:[`border-color ${i} ${o}`,`background ${i} ${o}`].join(",")},[`${r}-submenu, ${r}-submenu-inline`]:{transition:[`border-color ${i} ${o}`,`background ${i} ${o}`,`padding ${a} ${o}`].join(",")},[`${r}-submenu ${r}-sub`]:{cursor:"initial",transition:[`background ${i} ${o}`,`padding ${i} ${o}`].join(",")},[`${r}-title-content`]:{transition:`color ${i}`},[`${r}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${r}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:c,borderStyle:b,borderWidth:0,borderTopWidth:A,marginBlock:A,padding:0,"&-dashed":{borderStyle:"dashed"}}}),U9e(e)),{[`${r}-item-group`]:{[`${r}-item-group-list`]:{margin:0,padding:0,[`${r}-item, ${r}-submenu-title`]:{paddingInline:`${n*2}px ${u}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:f,background:"transparent",borderRadius:h,boxShadow:"none",transformOrigin:"0 0","&::before":{position:"absolute",inset:`${C}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:C},[`> ${r}`]:$e($e($e({borderRadius:h},U9e(e)),H9e(e)),{[`${r}-item, ${r}-submenu > ${r}-submenu-title`]:{borderRadius:g},[`${r}-submenu-title::after`]:{transition:`transform ${i} ${o}`}})}}),H9e(e)),{[`&-inline-collapsed ${r}-submenu-arrow, &-inline ${r}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${m})`},"&::after":{transform:`rotate(45deg) translateX(-${m})`}},[`${r}-submenu-open${r}-submenu-inline > ${r}-submenu-title > ${r}-submenu-arrow`]:{transform:`translateY(-${p*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${m})`},"&::before":{transform:`rotate(45deg) translateX(${m})`}}})},{[`${t}-layout-header`]:{[r]:{lineHeight:"inherit"}}}]},iPt=(e,t)=>Gu("Menu",(n,i)=>{let{overrideComponentToken:a}=i;if((t==null?void 0:t.value)===!1)return[];const{colorBgElevated:o,colorPrimary:s,colorError:l,colorErrorHover:u,colorTextLightSolid:c}=n,{controlHeightLG:A,fontSize:f}=n,h=f/7*5,g=Al(n,{menuItemHeight:A,menuItemPaddingInline:n.margin,menuArrowSize:h,menuHorizontalHeight:A*1.15,menuArrowOffset:`${h*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:o}),p=new Rc(c).setAlpha(.65).toRgbString(),m=Al(g,{colorItemText:p,colorItemTextHover:c,colorGroupTitle:p,colorItemTextSelected:c,colorItemBg:"#001529",colorSubItemBg:"#000c17",colorItemBgActive:"transparent",colorItemBgSelected:s,colorActiveBarWidth:0,colorActiveBarHeight:0,colorActiveBarBorderSize:0,colorItemTextDisabled:new Rc(c).setAlpha(.25).toRgbString(),colorDangerItemText:l,colorDangerItemTextHover:u,colorDangerItemTextSelected:c,colorDangerItemBgActive:l,colorDangerItemBgSelected:l,menuSubMenuBg:"#001529",colorItemTextSelectedHorizontal:c,colorItemBgSelectedHorizontal:s},$e({},a));return[nPt(g),ePt(g),rPt(g),L9e(g,"light"),L9e(m,"dark"),tPt(g),BJ(g),pC(g,"slide-up"),pC(g,"slide-down"),IL(g,"zoom-big")]},n=>{const{colorPrimary:i,colorError:a,colorTextDisabled:o,colorErrorBg:s,colorText:l,colorTextDescription:u,colorBgContainer:c,colorFillAlter:A,colorFillContent:f,lineWidth:h,lineWidthBold:g,controlItemBgActive:p,colorBgTextHover:m}=n;return{dropdownWidth:160,zIndexPopup:n.zIndexPopupBase+50,radiusItem:n.borderRadiusLG,radiusSubMenuItem:n.borderRadiusSM,colorItemText:l,colorItemTextHover:l,colorItemTextHoverHorizontal:i,colorGroupTitle:u,colorItemTextSelected:i,colorItemTextSelectedHorizontal:i,colorItemBg:c,colorItemBgHover:m,colorItemBgActive:f,colorSubItemBg:A,colorItemBgSelected:p,colorItemBgSelectedHorizontal:"transparent",colorActiveBarWidth:0,colorActiveBarHeight:g,colorActiveBarBorderSize:h,colorItemTextDisabled:o,colorDangerItemText:a,colorDangerItemTextHover:a,colorDangerItemTextSelected:a,colorDangerItemBgActive:s,colorDangerItemBgSelected:s,itemMarginInline:n.marginXXS}})(e),aPt=()=>({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}),j9e=[],i1=$n({compatConfig:{MODE:3},name:"AMenu",inheritAttrs:!1,props:aPt(),slots:Object,setup(e,t){let{slots:r,emit:n,attrs:i}=t;const{direction:a,getPrefixCls:o}=gs("menu",e),s=Fst(),l=vt(()=>{var Ye;return o("menu",e.prefixCls||((Ye=s==null?void 0:s.prefixCls)===null||Ye===void 0?void 0:Ye.value))}),[u,c]=iPt(l,vt(()=>!s)),A=sn(new Map),f=Wo(Hst,Hn(void 0)),h=vt(()=>f.value!==void 0?f.value:e.inlineCollapsed),{itemsNodes:g}=ZLt(e),p=sn(!1);Is(()=>{p.value=!0}),ks(()=>{BA(!(e.inlineCollapsed===!0&&e.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),BA(!(f.value!==void 0&&e.inlineCollapsed===!0),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead.")});const m=Hn([]),b=Hn([]),C=Hn({});di(A,()=>{const Ye={};for(const me of A.value.values())Ye[me.key]=me;C.value=Ye},{flush:"post"}),ks(()=>{if(e.activeKey!==void 0){let Ye=[];const me=e.activeKey?C.value[e.activeKey]:void 0;me&&e.activeKey!==void 0?Ye=jae([].concat(bA(me.parentKeys),e.activeKey)):Ye=[],F8(m.value,Ye)||(m.value=Ye)}}),di(()=>e.selectedKeys,Ye=>{Ye&&(b.value=Ye.slice())},{immediate:!0,deep:!0});const E=Hn([]);di([C,b],()=>{let Ye=[];b.value.forEach(me=>{const Se=C.value[me];Se&&(Ye=Ye.concat(bA(Se.parentKeys)))}),Ye=jae(Ye),F8(E.value,Ye)||(E.value=Ye)},{immediate:!0});const _=Ye=>{if(e.selectable){const{key:me}=Ye,Se=b.value.includes(me);let et;e.multiple?Se?et=b.value.filter(tt=>tt!==me):et=[...b.value,me]:et=[me];const nt=$e($e({},Ye),{selectedKeys:et});F8(et,b.value)||(e.selectedKeys===void 0&&(b.value=et),n("update:selectedKeys",et),Se&&e.multiple?n("deselect",nt):n("select",nt))}z.value!=="inline"&&!e.multiple&&F.value.length&&ee(j9e)},F=Hn([]);di(()=>e.openKeys,function(){let Ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:F.value;F8(F.value,Ye)||(F.value=Ye.slice())},{immediate:!0,deep:!0});let M;const N=Ye=>{clearTimeout(M),M=setTimeout(()=>{e.activeKey===void 0&&(m.value=Ye),n("update:activeKey",Ye[Ye.length-1])})},P=vt(()=>!!e.disabled),j=vt(()=>a.value==="rtl"),z=Hn("vertical"),W=sn(!1);ks(()=>{var Ye;(e.mode==="inline"||e.mode==="vertical")&&h.value?(z.value="vertical",W.value=h.value):(z.value=e.mode,W.value=!1),!((Ye=s==null?void 0:s.mode)===null||Ye===void 0)&&Ye.value&&(z.value=s.mode.value)});const Y=vt(()=>z.value==="inline"),ee=Ye=>{F.value=Ye,n("update:openKeys",Ye),n("openChange",Ye)},q=Hn(F.value),ae=sn(!1);di(F,()=>{Y.value&&(q.value=F.value)},{immediate:!0}),di(Y,()=>{if(!ae.value){ae.value=!0;return}Y.value?F.value=q.value:ee(j9e)},{immediate:!0});const se=vt(()=>({[`${l.value}`]:!0,[`${l.value}-root`]:!0,[`${l.value}-${z.value}`]:!0,[`${l.value}-inline-collapsed`]:W.value,[`${l.value}-rtl`]:j.value,[`${l.value}-${e.theme}`]:!0})),de=vt(()=>o()),Ae=vt(()=>({horizontal:{name:`${de.value}-slide-up`},inline:xJ,other:{name:`${de.value}-zoom-big`}}));Ust(!0);const be=function(){let Ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];const me=[],Se=A.value;return Ye.forEach(et=>{const{key:nt,childrenEventKeys:tt}=Se.get(et);me.push(nt,...be(bA(tt)))}),me},Le=Ye=>{var me;n("click",Ye),_(Ye),(me=s==null?void 0:s.onClick)===null||me===void 0||me.call(s)},Ne=(Ye,me)=>{var Se;const et=((Se=C.value[Ye])===null||Se===void 0?void 0:Se.childrenEventKeys)||[];let nt=F.value.filter(tt=>tt!==Ye);if(me)nt.push(Ye);else if(z.value!=="inline"){const tt=be(bA(et));nt=jae(nt.filter(ft=>!tt.includes(ft)))}F8(F,nt)||ee(nt)},ue=(Ye,me)=>{A.value.set(Ye,me),A.value=new Map(A.value)},Ke=Ye=>{A.value.delete(Ye),A.value=new Map(A.value)},Pe=Hn(0),je=vt(()=>{var Ye;return e.expandIcon||r.expandIcon||!((Ye=s==null?void 0:s.expandIcon)===null||Ye===void 0)&&Ye.value?me=>{let Se=e.expandIcon||r.expandIcon;return Se=typeof Se=="function"?Se(me):Se,aA(Se,{class:`${l.value}-submenu-expand-icon`},!1)}:null});return Ost({prefixCls:l,activeKeys:m,openKeys:F,selectedKeys:b,changeActiveKeys:N,disabled:P,rtl:j,mode:z,inlineIndent:vt(()=>e.inlineIndent),subMenuCloseDelay:vt(()=>e.subMenuCloseDelay),subMenuOpenDelay:vt(()=>e.subMenuOpenDelay),builtinPlacements:vt(()=>e.builtinPlacements),triggerSubMenuAction:vt(()=>e.triggerSubMenuAction),getPopupContainer:vt(()=>e.getPopupContainer),inlineCollapsed:W,theme:vt(()=>e.theme),siderCollapsed:f,defaultMotions:vt(()=>p.value?Ae.value:null),motion:vt(()=>p.value?e.motion:null),overflowDisabled:sn(void 0),onOpenChange:Ne,onItemClick:Le,registerMenuInfo:ue,unRegisterMenuInfo:Ke,selectedSubMenuKeys:E,expandIcon:je,forceSubMenuRender:vt(()=>e.forceSubMenuRender),rootClassName:c}),()=>{var Ye,me;const Se=g.value||sf((Ye=r.default)===null||Ye===void 0?void 0:Ye.call(r)),et=Pe.value>=Se.length-1||z.value!=="horizontal"||e.disabledOverflow,nt=z.value!=="horizontal"||e.disabledOverflow?Se:Se.map((ft,st)=>De(wW,{key:ft.key,overflowDisabled:st>Pe.value},{default:()=>ft})),tt=((me=r.overflowedIndicator)===null||me===void 0?void 0:me.call(r))||De(xL,null,null);return u(De(DE,Ot(Ot({},i),{},{onMousedown:e.onMousedown,prefixCls:`${l.value}-overflow`,component:"ul",itemComponent:V9,class:[se.value,i.class,c.value],role:"menu",id:e.id,data:nt,renderRawItem:ft=>ft,renderRawRest:ft=>{const st=ft.length,Re=st?Se.slice(-st):null;return De(ls,null,[De(W9,{eventKey:Xj,key:Xj,title:tt,disabled:et,internalPopupClose:st===0},{default:()=>Re}),De(D9e,null,{default:()=>[De(W9,{eventKey:Xj,key:Xj,title:tt,disabled:et,internalPopupClose:st===0},{default:()=>Re})]})])},maxCount:z.value!=="horizontal"||e.disabledOverflow?DE.INVALIDATE:DE.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:ft=>{Pe.value=ft}}),{default:()=>[De(Wq,{to:"body"},{default:()=>[De("div",{style:{display:"none"},"aria-hidden":!0},[De(D9e,null,{default:()=>[nt]})])]})]}))}}});i1.install=function(e){return e.component(i1.name,i1),e.component(V9.name,V9),e.component(W9.name,W9),e.component(IW.name,IW),e.component(CW.name,CW),e};i1.Item=V9;i1.Divider=IW;i1.SubMenu=W9;i1.ItemGroup=CW;const oPt=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:$e($e({},gu(e)),{color:e.breadcrumbBaseColor,fontSize:e.breadcrumbFontSize,[r]:{fontSize:e.breadcrumbIconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:$e({color:e.breadcrumbLinkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${e.paddingXXS}px`,borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",marginInline:-e.marginXXS,"&:hover":{color:e.breadcrumbLinkColorHover,backgroundColor:e.colorBgTextHover}},g5(e)),"li:last-child":{color:e.breadcrumbLastItemColor,[`& > ${t}-separator`]:{display:"none"}},[`${t}-separator`]:{marginInline:e.breadcrumbSeparatorMargin,color:e.breadcrumbSeparatorColor},[`${t}-link`]:{[` > ${r} + span, > ${r} + a `]:{marginInlineStart:e.marginXXS}},[`${t}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",padding:`0 ${e.paddingXXS}px`,marginInline:-e.marginXXS,[`> ${r}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.breadcrumbLinkColorHover,backgroundColor:e.colorBgTextHover,a:{color:e.breadcrumbLinkColorHover}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}},sPt=Gu("Breadcrumb",e=>{const t=Al(e,{breadcrumbBaseColor:e.colorTextDescription,breadcrumbFontSize:e.fontSize,breadcrumbIconFontSize:e.fontSize,breadcrumbLinkColor:e.colorTextDescription,breadcrumbLinkColorHover:e.colorText,breadcrumbLastItemColor:e.colorText,breadcrumbSeparatorMargin:e.marginXS,breadcrumbSeparatorColor:e.colorTextDescription});return[oPt(t)]}),lPt=()=>({prefixCls:String,routes:{type:Array},params:cn.any,separator:cn.any,itemRender:{type:Function}});function uPt(e,t){if(!e.breadcrumbName)return null;const r=Object.keys(t).join("|");return e.breadcrumbName.replace(new RegExp(`:(${r})`,"g"),(i,a)=>t[a]||i)}function G9e(e){const{route:t,params:r,routes:n,paths:i}=e,a=n.indexOf(t)===n.length-1,o=uPt(t,r);return a?De("span",null,[o]):De("a",{href:`#/${i.join("/")}`},[o])}const OM=$n({compatConfig:{MODE:3},name:"ABreadcrumb",inheritAttrs:!1,props:lPt(),slots:Object,setup(e,t){let{slots:r,attrs:n}=t;const{prefixCls:i,direction:a}=gs("breadcrumb",e),[o,s]=sPt(i),l=(A,f)=>(A=(A||"").replace(/^\//,""),Object.keys(f).forEach(h=>{A=A.replace(`:${h}`,f[h])}),A),u=(A,f,h)=>{const g=[...A],p=l(f||"",h);return p&&g.push(p),g},c=A=>{let{routes:f=[],params:h={},separator:g,itemRender:p=G9e}=A;const m=[];return f.map(b=>{const C=l(b.path,h);C&&m.push(C);const E=[...m];let _=null;b.children&&b.children.length&&(_=De(i1,{items:b.children.map(M=>({key:M.path||M.breadcrumbName,label:p({route:M,params:h,routes:f,paths:u(E,M.path,h)})}))},null));const F={separator:g};return _&&(F.overlay=_),De(bW,Ot(Ot({},F),{},{key:C||b.breadcrumbName}),{default:()=>[p({route:b,params:h,routes:f,paths:E})]})})};return()=>{var A;let f;const{routes:h,params:g={}}=e,p=sf(Xv(r,e)),m=(A=Xv(r,e,"separator"))!==null&&A!==void 0?A:"/",b=e.itemRender||r.itemRender||G9e;h&&h.length>0?f=c({routes:h,params:g,separator:m,itemRender:b}):p.length&&(f=p.map((E,_)=>(vB(typeof E.type=="object"&&(E.type.__ANT_BREADCRUMB_ITEM||E.type.__ANT_BREADCRUMB_SEPARATOR)),np(E,{separator:m,key:_}))));const C={[i.value]:!0,[`${i.value}-rtl`]:a.value==="rtl",[`${n.class}`]:!!n.class,[s.value]:!0};return o(De("nav",Ot(Ot({},n),{},{class:C}),[De("ol",null,[f])]))}}});var cPt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i({prefixCls:String}),mye=$n({compatConfig:{MODE:3},name:"ABreadcrumbSeparator",__ANT_BREADCRUMB_SEPARATOR:!0,inheritAttrs:!1,props:APt(),setup(e,t){let{slots:r,attrs:n}=t;const{prefixCls:i}=gs("breadcrumb",e);return()=>{var a;const{separator:o,class:s}=n,l=cPt(n,["separator","class"]),u=sf((a=r.default)===null||a===void 0?void 0:a.call(r));return De("span",Ot({class:[`${i.value}-separator`,s]},l),[u.length>0?u:"/"])}}});OM.Item=bW;OM.Separator=mye;OM.install=function(e){return e.component(OM.name,OM),e.component(bW.name,bW),e.component(mye.name,mye),e};var gK={exports:{}},fPt=gK.exports,$9e;function hPt(){return $9e||($9e=1,function(e,t){(function(r,n){e.exports=n()})(fPt,function(){return function(r,n){n.prototype.weekday=function(i){var a=this.$locale().weekStart||0,o=this.$W,s=(o25){var c=o(this).startOf(n).add(1,n).date(u),A=o(this).endOf(r);if(c.isBefore(A))return 1}var f=o(this).startOf(n).date(u).startOf(r).subtract(1,"millisecond"),h=this.diff(f,r,!0);return h<0?o(this).startOf("week").week():Math.ceil(h)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})}(vK)),vK.exports}var CPt=wPt();const IPt=A0(CPt);var mK={exports:{}},EPt=mK.exports,V9e;function BPt(){return V9e||(V9e=1,function(e,t){(function(r,n){e.exports=n()})(EPt,function(){return function(r,n){n.prototype.weekYear=function(){var i=this.month(),a=this.week(),o=this.year();return a===1&&i===11?o+1:i===0&&a>=52?o-1:o}}})}(mK)),mK.exports}var xPt=BPt();const SPt=A0(xPt);var yK={exports:{}},kPt=yK.exports,W9e;function QPt(){return W9e||(W9e=1,function(e,t){(function(r,n){e.exports=n()})(kPt,function(){var r="month",n="quarter";return function(i,a){var o=a.prototype;o.quarter=function(u){return this.$utils().u(u)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(u-1))};var s=o.add;o.add=function(u,c){return u=Number(u),this.$utils().p(c)===n?this.add(3*u,r):s.bind(this)(u,c)};var l=o.startOf;o.startOf=function(u,c){var A=this.$utils(),f=!!A.u(c)||c;if(A.p(u)===n){var h=this.quarter()-1;return f?this.month(3*h).startOf(r).startOf("day"):this.month(3*h+2).endOf(r).endOf("day")}return l.bind(this)(u,c)}}})}(yK)),yK.exports}var _Pt=QPt();const TPt=A0(_Pt);var bK={exports:{}},DPt=bK.exports,Y9e;function FPt(){return Y9e||(Y9e=1,function(e,t){(function(r,n){e.exports=n()})(DPt,function(){return function(r,n){var i=n.prototype,a=i.format;i.format=function(o){var s=this,l=this.$locale();if(!this.isValid())return a.bind(this)(o);var u=this.$utils(),c=(o||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(A){switch(A){case"Q":return Math.ceil((s.$M+1)/3);case"Do":return l.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return l.ordinal(s.week(),"W");case"w":case"ww":return u.s(s.week(),A==="w"?1:2,"0");case"W":case"WW":return u.s(s.isoWeek(),A==="W"?1:2,"0");case"k":case"kk":return u.s(String(s.$H===0?24:s.$H),A==="k"?1:2,"0");case"X":return Math.floor(s.$d.getTime()/1e3);case"x":return s.$d.getTime();case"z":return"["+s.offsetName()+"]";case"zzz":return"["+s.offsetName("long")+"]";default:return A}});return a.bind(this)(c)}}})}(bK)),bK.exports}var RPt=FPt();const MPt=A0(RPt);var wK={exports:{}},OPt=wK.exports,q9e;function NPt(){return q9e||(q9e=1,function(e,t){(function(r,n){e.exports=n()})(OPt,function(){var r={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,i=/\d/,a=/\d\d/,o=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},u=function(m){return(m=+m)+(m>68?1900:2e3)},c=function(m){return function(b){this[m]=+b}},A=[/[+-]\d\d:?(\d\d)?|Z/,function(m){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var C=b.match(/([+-]|\d\d)/g),E=60*C[1]+(+C[2]||0);return E===0?0:C[0]==="+"?-E:E}(m)}],f=function(m){var b=l[m];return b&&(b.indexOf?b:b.s.concat(b.f))},h=function(m,b){var C,E=l.meridiem;if(E){for(var _=1;_<=24;_+=1)if(m.indexOf(E(_,0,b))>-1){C=_>12;break}}else C=m===(b?"pm":"PM");return C},g={A:[s,function(m){this.afternoon=h(m,!1)}],a:[s,function(m){this.afternoon=h(m,!0)}],Q:[i,function(m){this.month=3*(m-1)+1}],S:[i,function(m){this.milliseconds=100*+m}],SS:[a,function(m){this.milliseconds=10*+m}],SSS:[/\d{3}/,function(m){this.milliseconds=+m}],s:[o,c("seconds")],ss:[o,c("seconds")],m:[o,c("minutes")],mm:[o,c("minutes")],H:[o,c("hours")],h:[o,c("hours")],HH:[o,c("hours")],hh:[o,c("hours")],D:[o,c("day")],DD:[a,c("day")],Do:[s,function(m){var b=l.ordinal,C=m.match(/\d+/);if(this.day=C[0],b)for(var E=1;E<=31;E+=1)b(E).replace(/\[|\]/g,"")===m&&(this.day=E)}],w:[o,c("week")],ww:[a,c("week")],M:[o,c("month")],MM:[a,c("month")],MMM:[s,function(m){var b=f("months"),C=(f("monthsShort")||b.map(function(E){return E.slice(0,3)})).indexOf(m)+1;if(C<1)throw new Error;this.month=C%12||C}],MMMM:[s,function(m){var b=f("months").indexOf(m)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,c("year")],YY:[a,function(m){this.year=u(m)}],YYYY:[/\d{4}/,c("year")],Z:A,ZZ:A};function p(m){var b,C;b=m,C=l&&l.formats;for(var E=(m=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(z,W,Y){var ee=Y&&Y.toUpperCase();return W||C[Y]||r[Y]||C[ee].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(q,ae,se){return ae||se.slice(1)})})).match(n),_=E.length,F=0;F<_;F+=1){var M=E[F],N=g[M],P=N&&N[0],j=N&&N[1];E[F]=j?{regex:P,parser:j}:M.replace(/^\[|\]$/g,"")}return function(z){for(var W={},Y=0,ee=0;Y<_;Y+=1){var q=E[Y];if(typeof q=="string")ee+=q.length;else{var ae=q.regex,se=q.parser,de=z.slice(ee),Ae=ae.exec(de)[0];se.call(W,Ae),z=z.replace(Ae,"")}}return function(be){var Le=be.afternoon;if(Le!==void 0){var Ne=be.hours;Le?Ne<12&&(be.hours+=12):Ne===12&&(be.hours=0),delete be.afternoon}}(W),W}}return function(m,b,C){C.p.customParseFormat=!0,m&&m.parseTwoDigitYear&&(u=m.parseTwoDigitYear);var E=b.prototype,_=E.parse;E.parse=function(F){var M=F.date,N=F.utc,P=F.args;this.$u=N;var j=P[1];if(typeof j=="string"){var z=P[2]===!0,W=P[3]===!0,Y=z||W,ee=P[2];W&&(ee=P[2]),l=this.$locale(),!z&&ee&&(l=C.Ls[ee]),this.$d=function(de,Ae,be,Le){try{if(["x","X"].indexOf(Ae)>-1)return new Date((Ae==="X"?1e3:1)*de);var Ne=p(Ae)(de),ue=Ne.year,Ke=Ne.month,Pe=Ne.day,je=Ne.hours,Ye=Ne.minutes,me=Ne.seconds,Se=Ne.milliseconds,et=Ne.zone,nt=Ne.week,tt=new Date,ft=Pe||(ue||Ke?1:tt.getDate()),st=ue||tt.getFullYear(),Re=0;ue&&!Ke||(Re=Ke>0?Ke-1:tt.getMonth());var dt,Oe=je||0,Ce=Ye||0,Be=me||0,We=Se||0;return et?new Date(Date.UTC(st,Re,ft,Oe,Ce,Be,We+60*et.offset*1e3)):be?new Date(Date.UTC(st,Re,ft,Oe,Ce,Be,We)):(dt=new Date(st,Re,ft,Oe,Ce,Be,We),nt&&(dt=Le(dt).week(nt).toDate()),dt)}catch{return new Date("")}}(M,j,N,C),this.init(),ee&&ee!==!0&&(this.$L=this.locale(ee).$L),Y&&M!=this.format(j)&&(this.$d=new Date("")),l={}}else if(j instanceof Array)for(var q=j.length,ae=1;ae<=q;ae+=1){P[1]=j[ae-1];var se=C.apply(this,P);if(se.isValid()){this.$d=se.$d,this.$L=se.$L,this.init();break}ae===q&&(this.$d=new Date(""))}else _.call(this,F)}}})}(wK)),wK.exports}var LPt=NPt();const PPt=A0(LPt);Dd.extend(PPt);Dd.extend(MPt);Dd.extend(gPt);Dd.extend(yPt);Dd.extend(IPt);Dd.extend(SPt);Dd.extend(TPt);Dd.extend((e,t)=>{const r=t.prototype,n=r.format;r.format=function(a){const o=(a||"").replace("Wo","wo");return n.bind(this)(o)}});const UPt={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},u4=e=>UPt[e]||e.split("_")[0],J9e=()=>{RQt(!1,"Not match any format. Please help to fire a issue about this.")},HPt=/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|k{1,2}|S/g;function X9e(e,t,r){const n=[...new Set(e.split(r))];let i=0;for(let a=0;at)return o;i+=r.length}}const Z9e=(e,t)=>{if(!e)return null;if(Dd.isDayjs(e))return e;const r=t.matchAll(HPt);let n=Dd(e,t);if(r===null)return n;for(const i of r){const a=i[0],o=i.index;if(a==="Q"){const s=e.slice(o-1,o),l=X9e(e,o,s).match(/\d+/)[0];n=n.quarter(parseInt(l))}if(a.toLowerCase()==="wo"){const s=e.slice(o-1,o),l=X9e(e,o,s).match(/\d+/)[0];n=n.week(parseInt(l))}a.toLowerCase()==="ww"&&(n=n.week(parseInt(e.slice(o,o+a.length)))),a.toLowerCase()==="w"&&(n=n.week(parseInt(e.slice(o,o+a.length+1))))}return n},Vst={getNow:()=>Dd(),getFixedDate:e=>Dd(e,["YYYY-M-DD","YYYY-MM-DD"]),getEndDate:e=>e.endOf("month"),getWeekDay:e=>{const t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:e=>e.year(),getMonth:e=>e.month(),getDate:e=>e.date(),getHour:e=>e.hour(),getMinute:e=>e.minute(),getSecond:e=>e.second(),addYear:(e,t)=>e.add(t,"year"),addMonth:(e,t)=>e.add(t,"month"),addDate:(e,t)=>e.add(t,"day"),setYear:(e,t)=>e.year(t),setMonth:(e,t)=>e.month(t),setDate:(e,t)=>e.date(t),setHour:(e,t)=>e.hour(t),setMinute:(e,t)=>e.minute(t),setSecond:(e,t)=>e.second(t),isAfter:(e,t)=>e.isAfter(t),isValidate:e=>e.isValid(),locale:{getWeekFirstDay:e=>Dd().locale(u4(e)).localeData().firstDayOfWeek(),getWeekFirstDate:(e,t)=>t.locale(u4(e)).weekday(0),getWeek:(e,t)=>t.locale(u4(e)).week(),getShortWeekDays:e=>Dd().locale(u4(e)).localeData().weekdaysMin(),getShortMonths:e=>Dd().locale(u4(e)).localeData().monthsShort(),format:(e,t,r)=>t.locale(u4(e)).format(r),parse:(e,t,r)=>{const n=u4(e);for(let i=0;iArray.isArray(e)?e.map(r=>Z9e(r,t)):Z9e(e,t),toString:(e,t)=>Array.isArray(e)?e.map(r=>Dd.isDayjs(r)?r.format(t):r):Dd.isDayjs(e)?e.format(t):e};function Zf(e){const t=Dnt();return $e($e({},e),t)}const Wst=Symbol("PanelContextProps"),CBe=e=>{Es(Wst,e)},_C=()=>Wo(Wst,{}),Zj={visibility:"hidden"};function G5(e,t){let{slots:r}=t;var n;const i=Zf(e),{prefixCls:a,prevIcon:o="‹",nextIcon:s="›",superPrevIcon:l="«",superNextIcon:u="»",onSuperPrev:c,onSuperNext:A,onPrev:f,onNext:h}=i,{hideNextBtn:g,hidePrevBtn:p}=_C();return De("div",{class:a},[c&&De("button",{type:"button",onClick:c,tabindex:-1,class:`${a}-super-prev-btn`,style:p.value?Zj:{}},[l]),f&&De("button",{type:"button",onClick:f,tabindex:-1,class:`${a}-prev-btn`,style:p.value?Zj:{}},[o]),De("div",{class:`${a}-view`},[(n=r.default)===null||n===void 0?void 0:n.call(r)]),h&&De("button",{type:"button",onClick:h,tabindex:-1,class:`${a}-next-btn`,style:g.value?Zj:{}},[s]),A&&De("button",{type:"button",onClick:A,tabindex:-1,class:`${a}-super-next-btn`,style:g.value?Zj:{}},[u])])}G5.displayName="Header";G5.inheritAttrs=!1;function IBe(e){const t=Zf(e),{prefixCls:r,generateConfig:n,viewDate:i,onPrevDecades:a,onNextDecades:o}=t,{hideHeader:s}=_C();if(s)return null;const l=`${r}-header`,u=n.getYear(i),c=Math.floor(u/EE)*EE,A=c+EE-1;return De(G5,Ot(Ot({},t),{},{prefixCls:l,onSuperPrev:a,onSuperNext:o}),{default:()=>[c,t2("-"),A]})}IBe.displayName="DecadeHeader";IBe.inheritAttrs=!1;function Yst(e,t,r,n,i){let a=e.setHour(t,r);return a=e.setMinute(a,n),a=e.setSecond(a,i),a}function CK(e,t,r){if(!r)return t;let n=t;return n=e.setHour(n,e.getHour(r)),n=e.setMinute(n,e.getMinute(r)),n=e.setSecond(n,e.getSecond(r)),n}function jPt(e,t,r,n,i,a){const o=Math.floor(e/n)*n;if(o{Y||n(W)},onMouseenter:()=>{!Y&&b&&b(W)},onMouseleave:()=>{!Y&&C&&C(W)}},[f?f(W):De("div",{class:`${_}-inner`},[A(W)])]))}F.push(De("tr",{key:M,class:l&&l(P)},[N]))}return De("div",{class:`${t}-body`},[De("table",{class:`${t}-content`},[m&&De("thead",null,[De("tr",null,[m])]),De("tbody",null,[F])])])}tQ.displayName="PanelBody";tQ.inheritAttrs=!1;const yye=3,e7e=4;function EBe(e){const t=Zf(e),r=Hb-1,{prefixCls:n,viewDate:i,generateConfig:a}=t,o=`${n}-cell`,s=a.getYear(i),l=Math.floor(s/Hb)*Hb,u=Math.floor(s/EE)*EE,c=u+EE-1,A=a.setYear(i,u-Math.ceil((yye*e7e*Hb-EE)/2)),f=h=>{const g=a.getYear(h),p=g+r;return{[`${o}-in-view`]:u<=g&&p<=c,[`${o}-selected`]:g===l}};return De(tQ,Ot(Ot({},t),{},{rowNum:e7e,colNum:yye,baseDate:A,getCellText:h=>{const g=a.getYear(h);return`${g}-${g+r}`},getCellClassName:f,getCellDate:(h,g)=>a.addYear(h,g*Hb)}),null)}EBe.displayName="DecadeBody";EBe.inheritAttrs=!1;const eG=new Map;function $Pt(e,t){let r;function n(){lJ(e)?t():r=ms(()=>{n()})}return n(),()=>{ms.cancel(r)}}function bye(e,t,r){if(eG.get(e)&&ms.cancel(eG.get(e)),r<=0){eG.set(e,ms(()=>{e.scrollTop=t}));return}const i=(t-e.scrollTop)/r*10;eG.set(e,ms(()=>{e.scrollTop+=i,e.scrollTop!==t&&bye(e,t,r-10)}))}function K7(e,t){let{onLeftRight:r,onCtrlLeftRight:n,onUpDown:i,onPageUpDown:a,onEnter:o}=t;const{which:s,ctrlKey:l,metaKey:u}=e;switch(s){case yi.LEFT:if(l||u){if(n)return n(-1),!0}else if(r)return r(-1),!0;break;case yi.RIGHT:if(l||u){if(n)return n(1),!0}else if(r)return r(1),!0;break;case yi.UP:if(i)return i(-1),!0;break;case yi.DOWN:if(i)return i(1),!0;break;case yi.PAGE_UP:if(a)return a(-1),!0;break;case yi.PAGE_DOWN:if(a)return a(1),!0;break;case yi.ENTER:if(o)return o(),!0;break}return!1}function qst(e,t,r,n){let i=e;if(!i)switch(t){case"time":i=n?"hh:mm:ss a":"HH:mm:ss";break;case"week":i="gggg-wo";break;case"month":i="YYYY-MM";break;case"quarter":i="YYYY-[Q]Q";break;case"year":i="YYYY";break;default:i=r?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return i}function Jst(e,t,r){const n=e==="time"?8:10,i=typeof t=="function"?t(r.getNow()).length:t.length;return Math.max(n,i)+2}let FF=null;const tG=new Set;function zPt(e){return!FF&&typeof window<"u"&&window.addEventListener&&(FF=t=>{[...tG].forEach(r=>{r(t)})},window.addEventListener("mousedown",FF)),tG.add(e),()=>{tG.delete(e),tG.size===0&&(window.removeEventListener("mousedown",FF),FF=null)}}function KPt(e){var t;const r=e.target;return e.composed&&r.shadowRoot&&((t=e.composedPath)===null||t===void 0?void 0:t.call(e)[0])||r}const VPt=e=>e==="month"||e==="date"?"year":e,WPt=e=>e==="date"?"month":e,YPt=e=>e==="month"||e==="date"?"quarter":e,qPt=e=>e==="date"?"week":e,JPt={year:VPt,month:WPt,quarter:YPt,week:qPt,time:null,date:null};function Xst(e,t){return e.some(r=>r&&r.contains(t))}const Hb=10,EE=Hb*10;function BBe(e){const t=Zf(e),{prefixCls:r,onViewDateChange:n,generateConfig:i,viewDate:a,operationRef:o,onSelect:s,onPanelChange:l}=t,u=`${r}-decade-panel`;o.value={onKeydown:f=>K7(f,{onLeftRight:h=>{s(i.addYear(a,h*Hb),"key")},onCtrlLeftRight:h=>{s(i.addYear(a,h*EE),"key")},onUpDown:h=>{s(i.addYear(a,h*Hb*yye),"key")},onEnter:()=>{l("year",a)}})};const c=f=>{const h=i.addYear(a,f*EE);n(h),l(null,h)},A=f=>{s(f,"mouse"),l("year",f)};return De("div",{class:u},[De(IBe,Ot(Ot({},t),{},{prefixCls:r,onPrevDecades:()=>{c(-1)},onNextDecades:()=>{c(1)}}),null),De(EBe,Ot(Ot({},t),{},{prefixCls:r,onSelect:A}),null)])}BBe.displayName="DecadePanel";BBe.inheritAttrs=!1;const IK=7;function rQ(e,t){if(!e&&!t)return!0;if(!e||!t)return!1}function XPt(e,t,r){const n=rQ(t,r);if(typeof n=="boolean")return n;const i=Math.floor(e.getYear(t)/10),a=Math.floor(e.getYear(r)/10);return i===a}function SJ(e,t,r){const n=rQ(t,r);return typeof n=="boolean"?n:e.getYear(t)===e.getYear(r)}function wye(e,t){return Math.floor(e.getMonth(t)/3)+1}function Zst(e,t,r){const n=rQ(t,r);return typeof n=="boolean"?n:SJ(e,t,r)&&wye(e,t)===wye(e,r)}function xBe(e,t,r){const n=rQ(t,r);return typeof n=="boolean"?n:SJ(e,t,r)&&e.getMonth(t)===e.getMonth(r)}function BE(e,t,r){const n=rQ(t,r);return typeof n=="boolean"?n:e.getYear(t)===e.getYear(r)&&e.getMonth(t)===e.getMonth(r)&&e.getDate(t)===e.getDate(r)}function ZPt(e,t,r){const n=rQ(t,r);return typeof n=="boolean"?n:e.getHour(t)===e.getHour(r)&&e.getMinute(t)===e.getMinute(r)&&e.getSecond(t)===e.getSecond(r)}function elt(e,t,r,n){const i=rQ(r,n);return typeof i=="boolean"?i:e.locale.getWeek(t,r)===e.locale.getWeek(t,n)}function f9(e,t,r){return BE(e,t,r)&&ZPt(e,t,r)}function rG(e,t,r,n){return!t||!r||!n?!1:!BE(e,t,n)&&!BE(e,r,n)&&e.isAfter(n,t)&&e.isAfter(r,n)}function eUt(e,t,r){const n=t.locale.getWeekFirstDay(e),i=t.setDate(r,1),a=t.getWeekDay(i);let o=t.addDate(i,n-a);return t.getMonth(o)===t.getMonth(r)&&t.getDate(o)>1&&(o=t.addDate(o,-7)),o}function NM(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(t){case"year":return r.addYear(e,n*10);case"quarter":case"month":return r.addYear(e,n);default:return r.addMonth(e,n)}}function qg(e,t){let{generateConfig:r,locale:n,format:i}=t;return typeof i=="function"?i(e):r.locale.format(n.locale,e,i)}function tlt(e,t){let{generateConfig:r,locale:n,formatList:i}=t;return!e||typeof i[0]=="function"?null:r.locale.parse(n.locale,e,i)}function Cye(e){let{cellDate:t,mode:r,disabledDate:n,generateConfig:i}=e;if(!n)return!1;const a=(o,s,l)=>{let u=s;for(;u<=l;){let c;switch(o){case"date":{if(c=i.setDate(t,u),!n(c))return!1;break}case"month":{if(c=i.setMonth(t,u),!Cye({cellDate:c,mode:"month",generateConfig:i,disabledDate:n}))return!1;break}case"year":{if(c=i.setYear(t,u),!Cye({cellDate:c,mode:"year",generateConfig:i,disabledDate:n}))return!1;break}}u+=1}return!0};switch(r){case"date":case"week":return n(t);case"month":{const s=i.getDate(i.getEndDate(t));return a("date",1,s)}case"quarter":{const o=Math.floor(i.getMonth(t)/3)*3,s=o+2;return a("month",o,s)}case"year":return a("month",0,11);case"decade":{const o=i.getYear(t),s=Math.floor(o/Hb)*Hb,l=s+Hb-1;return a("year",s,l)}}}function SBe(e){const t=Zf(e),{hideHeader:r}=_C();if(r.value)return null;const{prefixCls:n,generateConfig:i,locale:a,value:o,format:s}=t,l=`${n}-header`;return De(G5,{prefixCls:l},{default:()=>[o?qg(o,{locale:a,format:s,generateConfig:i}):" "]})}SBe.displayName="TimeHeader";SBe.inheritAttrs=!1;const nG=$n({name:"TimeUnitColumn",props:["prefixCls","units","onSelect","value","active","hideDisabledOptions"],setup(e){const{open:t}=_C(),r=Hn(null),n=Hn(new Map),i=Hn();return di(()=>e.value,()=>{const a=n.value.get(e.value);a&&t.value!==!1&&bye(r.value,a.offsetTop,120)}),el(()=>{var a;(a=i.value)===null||a===void 0||a.call(i)}),di(t,()=>{var a;(a=i.value)===null||a===void 0||a.call(i),il(()=>{if(t.value){const o=n.value.get(e.value);o&&(i.value=$Pt(o,()=>{bye(r.value,o.offsetTop,0)}))}})},{immediate:!0,flush:"post"}),()=>{const{prefixCls:a,units:o,onSelect:s,value:l,active:u,hideDisabledOptions:c}=e,A=`${a}-cell`;return De("ul",{class:Vn(`${a}-column`,{[`${a}-column-active`]:u}),ref:r,style:{position:"relative"}},[o.map(f=>c&&f.disabled?null:De("li",{key:f.value,ref:h=>{n.value.set(f.value,h)},class:Vn(A,{[`${A}-disabled`]:f.disabled,[`${A}-selected`]:l===f.value}),onClick:()=>{f.disabled||s(f.value)}},[De("div",{class:`${A}-inner`},[f.label])]))])}}});function rlt(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",n=String(e);for(;n.length{(r.startsWith("data-")||r.startsWith("aria-")||r==="role"||r==="name")&&!r.startsWith("data-__")&&(t[r]=e[r])}),t}function bu(e,t){return e?e[t]:null}function uy(e,t,r){const n=[bu(e,0),bu(e,1)];return n[r]=typeof t=="function"?t(n[r]):t,!n[0]&&!n[1]?null:n}function Yae(e,t,r,n){const i=[];for(let a=e;a<=t;a+=r)i.push({label:rlt(a,2),value:a,disabled:(n||[]).includes(a)});return i}const rUt=$n({compatConfig:{MODE:3},name:"TimeBody",inheritAttrs:!1,props:["generateConfig","prefixCls","operationRef","activeColumnIndex","value","showHour","showMinute","showSecond","use12Hours","hourStep","minuteStep","secondStep","disabledHours","disabledMinutes","disabledSeconds","disabledTime","hideDisabledOptions","onSelect"],setup(e){const t=vt(()=>e.value?e.generateConfig.getHour(e.value):-1),r=vt(()=>e.use12Hours?t.value>=12:!1),n=vt(()=>e.use12Hours?t.value%12:t.value),i=vt(()=>e.value?e.generateConfig.getMinute(e.value):-1),a=vt(()=>e.value?e.generateConfig.getSecond(e.value):-1),o=Hn(e.generateConfig.getNow()),s=Hn(),l=Hn(),u=Hn();O7(()=>{o.value=e.generateConfig.getNow()}),ks(()=>{if(e.disabledTime){const m=e.disabledTime(o);[s.value,l.value,u.value]=[m.disabledHours,m.disabledMinutes,m.disabledSeconds]}else[s.value,l.value,u.value]=[e.disabledHours,e.disabledMinutes,e.disabledSeconds]});const c=(m,b,C,E)=>{let _=e.value||e.generateConfig.getNow();const F=Math.max(0,b),M=Math.max(0,C),N=Math.max(0,E);return _=Yst(e.generateConfig,_,!e.use12Hours||!m?F:F+12,M,N),_},A=vt(()=>{var m;return Yae(0,23,(m=e.hourStep)!==null&&m!==void 0?m:1,s.value&&s.value())}),f=vt(()=>{if(!e.use12Hours)return[!1,!1];const m=[!0,!0];return A.value.forEach(b=>{let{disabled:C,value:E}=b;C||(E>=12?m[1]=!1:m[0]=!1)}),m}),h=vt(()=>e.use12Hours?A.value.filter(r.value?m=>m.value>=12:m=>m.value<12).map(m=>{const b=m.value%12,C=b===0?"12":rlt(b,2);return $e($e({},m),{label:C,value:b})}):A.value),g=vt(()=>{var m;return Yae(0,59,(m=e.minuteStep)!==null&&m!==void 0?m:1,l.value&&l.value(t.value))}),p=vt(()=>{var m;return Yae(0,59,(m=e.secondStep)!==null&&m!==void 0?m:1,u.value&&u.value(t.value,i.value))});return()=>{const{prefixCls:m,operationRef:b,activeColumnIndex:C,showHour:E,showMinute:_,showSecond:F,use12Hours:M,hideDisabledOptions:N,onSelect:P}=e,j=[],z=`${m}-content`,W=`${m}-time-panel`;b.value={onUpDown:q=>{const ae=j[C];if(ae){const se=ae.units.findIndex(Ae=>Ae.value===ae.value),de=ae.units.length;for(let Ae=1;Ae{P(c(r.value,q,i.value,a.value),"mouse")}),Y(_,De(nG,{key:"minute"},null),i.value,g.value,q=>{P(c(r.value,n.value,q,a.value),"mouse")}),Y(F,De(nG,{key:"second"},null),a.value,p.value,q=>{P(c(r.value,n.value,i.value,q),"mouse")});let ee=-1;return typeof r.value=="boolean"&&(ee=r.value?1:0),Y(M===!0,De(nG,{key:"12hours"},null),ee,[{label:"AM",value:0,disabled:f.value[0]},{label:"PM",value:1,disabled:f.value[1]}],q=>{P(c(!!q,n.value,i.value,a.value),"mouse")}),De("div",{class:z},[j.map(q=>{let{node:ae}=q;return ae})])}}}),nUt=e=>e.filter(t=>t!==!1).length;function kJ(e){const t=Zf(e),{generateConfig:r,format:n="HH:mm:ss",prefixCls:i,active:a,operationRef:o,showHour:s,showMinute:l,showSecond:u,use12Hours:c=!1,onSelect:A,value:f}=t,h=`${i}-time-panel`,g=Hn(),p=Hn(-1),m=nUt([s,l,u,c]);return o.value={onKeydown:b=>K7(b,{onLeftRight:C=>{p.value=(p.value+C+m)%m},onUpDown:C=>{p.value===-1?p.value=0:g.value&&g.value.onUpDown(C)},onEnter:()=>{A(f||r.getNow(),"key"),p.value=-1}}),onBlur:()=>{p.value=-1}},De("div",{class:Vn(h,{[`${h}-active`]:a})},[De(SBe,Ot(Ot({},t),{},{format:n,prefixCls:i}),null),De(rUt,Ot(Ot({},t),{},{prefixCls:i,activeColumnIndex:p.value,operationRef:g}),null)])}kJ.displayName="TimePanel";kJ.inheritAttrs=!1;function QJ(e){let{cellPrefixCls:t,generateConfig:r,rangedValue:n,hoverRangedValue:i,isInView:a,isSameCell:o,offsetCell:s,today:l,value:u}=e;function c(A){const f=s(A,-1),h=s(A,1),g=bu(n,0),p=bu(n,1),m=bu(i,0),b=bu(i,1),C=rG(r,m,b,A);function E(j){return o(g,j)}function _(j){return o(p,j)}const F=o(m,A),M=o(b,A),N=(C||M)&&(!a(f)||_(f)),P=(C||F)&&(!a(h)||E(h));return{[`${t}-in-view`]:a(A),[`${t}-in-range`]:rG(r,g,p,A),[`${t}-range-start`]:E(A),[`${t}-range-end`]:_(A),[`${t}-range-start-single`]:E(A)&&!p,[`${t}-range-end-single`]:_(A)&&!g,[`${t}-range-start-near-hover`]:E(A)&&(o(f,m)||rG(r,m,b,f)),[`${t}-range-end-near-hover`]:_(A)&&(o(h,b)||rG(r,m,b,h)),[`${t}-range-hover`]:C,[`${t}-range-hover-start`]:F,[`${t}-range-hover-end`]:M,[`${t}-range-hover-edge-start`]:N,[`${t}-range-hover-edge-end`]:P,[`${t}-range-hover-edge-start-near-range`]:N&&o(f,p),[`${t}-range-hover-edge-end-near-range`]:P&&o(h,g),[`${t}-today`]:o(l,A),[`${t}-selected`]:o(u,A)}}return c}const alt=Symbol("RangeContextProps"),iUt=e=>{Es(alt,e)},SL=()=>Wo(alt,{rangedValue:Hn(),hoverRangedValue:Hn(),inRange:Hn(),panelPosition:Hn()}),aUt=$n({compatConfig:{MODE:3},name:"PanelContextProvider",inheritAttrs:!1,props:{value:{type:Object,default:()=>({})}},setup(e,t){let{slots:r}=t;const n={rangedValue:Hn(e.value.rangedValue),hoverRangedValue:Hn(e.value.hoverRangedValue),inRange:Hn(e.value.inRange),panelPosition:Hn(e.value.panelPosition)};return iUt(n),di(()=>e.value,()=>{Object.keys(e.value).forEach(i=>{n[i]&&(n[i].value=e.value[i])})}),()=>{var i;return(i=r.default)===null||i===void 0?void 0:i.call(r)}}});function _J(e){const t=Zf(e),{prefixCls:r,generateConfig:n,prefixColumn:i,locale:a,rowCount:o,viewDate:s,value:l,dateRender:u}=t,{rangedValue:c,hoverRangedValue:A}=SL(),f=eUt(a.locale,n,s),h=`${r}-cell`,g=n.locale.getWeekFirstDay(a.locale),p=n.getNow(),m=[],b=a.shortWeekDays||(n.locale.getShortWeekDays?n.locale.getShortWeekDays(a.locale):[]);i&&m.push(De("th",{key:"empty","aria-label":"empty cell"},null));for(let _=0;_BE(n,_,F),isInView:_=>xBe(n,_,s),offsetCell:(_,F)=>n.addDate(_,F)}),E=u?_=>u({current:_,today:p}):void 0;return De(tQ,Ot(Ot({},t),{},{rowNum:o,colNum:IK,baseDate:f,getCellNode:E,getCellText:n.getDate,getCellClassName:C,getCellDate:n.addDate,titleCell:_=>qg(_,{locale:a,format:"YYYY-MM-DD",generateConfig:n}),headerCells:m}),null)}_J.displayName="DateBody";_J.inheritAttrs=!1;_J.props=["prefixCls","generateConfig","value?","viewDate","locale","rowCount","onSelect","dateRender?","disabledDate?","prefixColumn?","rowClassName?"];function kBe(e){const t=Zf(e),{prefixCls:r,generateConfig:n,locale:i,viewDate:a,onNextMonth:o,onPrevMonth:s,onNextYear:l,onPrevYear:u,onYearClick:c,onMonthClick:A}=t,{hideHeader:f}=_C();if(f.value)return null;const h=`${r}-header`,g=i.shortMonths||(n.locale.getShortMonths?n.locale.getShortMonths(i.locale):[]),p=n.getMonth(a),m=De("button",{type:"button",key:"year",onClick:c,tabindex:-1,class:`${r}-year-btn`},[qg(a,{locale:i,format:i.yearFormat,generateConfig:n})]),b=De("button",{type:"button",key:"month",onClick:A,tabindex:-1,class:`${r}-month-btn`},[i.monthFormat?qg(a,{locale:i,format:i.monthFormat,generateConfig:n}):g[p]]),C=i.monthBeforeYear?[b,m]:[m,b];return De(G5,Ot(Ot({},t),{},{prefixCls:h,onSuperPrev:u,onPrev:s,onNext:o,onSuperNext:l}),{default:()=>[C]})}kBe.displayName="DateHeader";kBe.inheritAttrs=!1;const oUt=6;function kL(e){const t=Zf(e),{prefixCls:r,panelName:n="date",keyboardConfig:i,active:a,operationRef:o,generateConfig:s,value:l,viewDate:u,onViewDateChange:c,onPanelChange:A,onSelect:f}=t,h=`${r}-${n}-panel`;o.value={onKeydown:m=>K7(m,$e({onLeftRight:b=>{f(s.addDate(l||u,b),"key")},onCtrlLeftRight:b=>{f(s.addYear(l||u,b),"key")},onUpDown:b=>{f(s.addDate(l||u,b*IK),"key")},onPageUpDown:b=>{f(s.addMonth(l||u,b),"key")}},i))};const g=m=>{const b=s.addYear(u,m);c(b),A(null,b)},p=m=>{const b=s.addMonth(u,m);c(b),A(null,b)};return De("div",{class:Vn(h,{[`${h}-active`]:a})},[De(kBe,Ot(Ot({},t),{},{prefixCls:r,value:l,viewDate:u,onPrevYear:()=>{g(-1)},onNextYear:()=>{g(1)},onPrevMonth:()=>{p(-1)},onNextMonth:()=>{p(1)},onMonthClick:()=>{A("month",u)},onYearClick:()=>{A("year",u)}}),null),De(_J,Ot(Ot({},t),{},{onSelect:m=>f(m,"mouse"),prefixCls:r,value:l,viewDate:u,rowCount:oUt}),null)])}kL.displayName="DatePanel";kL.inheritAttrs=!1;const t7e=tUt("date","time");function QBe(e){const t=Zf(e),{prefixCls:r,operationRef:n,generateConfig:i,value:a,defaultValue:o,disabledTime:s,showTime:l,onSelect:u}=t,c=`${r}-datetime-panel`,A=Hn(null),f=Hn({}),h=Hn({}),g=typeof l=="object"?$e({},l):{};function p(E){const _=t7e.indexOf(A.value)+E;return t7e[_]||null}const m=E=>{h.value.onBlur&&h.value.onBlur(E),A.value=null};n.value={onKeydown:E=>{if(E.which===yi.TAB){const _=p(E.shiftKey?-1:1);return A.value=_,_&&E.preventDefault(),!0}if(A.value){const _=A.value==="date"?f:h;return _.value&&_.value.onKeydown&&_.value.onKeydown(E),!0}return[yi.LEFT,yi.RIGHT,yi.UP,yi.DOWN].includes(E.which)?(A.value="date",!0):!1},onBlur:m,onClose:m};const b=(E,_)=>{let F=E;_==="date"&&!a&&g.defaultValue?(F=i.setHour(F,i.getHour(g.defaultValue)),F=i.setMinute(F,i.getMinute(g.defaultValue)),F=i.setSecond(F,i.getSecond(g.defaultValue))):_==="time"&&!a&&o&&(F=i.setYear(F,i.getYear(o)),F=i.setMonth(F,i.getMonth(o)),F=i.setDate(F,i.getDate(o))),u&&u(F,"mouse")},C=s?s(a||null):{};return De("div",{class:Vn(c,{[`${c}-active`]:A.value})},[De(kL,Ot(Ot({},t),{},{operationRef:f,active:A.value==="date",onSelect:E=>{b(CK(i,E,!a&&typeof l=="object"?l.defaultValue:null),"date")}}),null),De(kJ,Ot(Ot(Ot(Ot({},t),{},{format:void 0},g),C),{},{disabledTime:null,defaultValue:void 0,operationRef:h,active:A.value==="time",onSelect:E=>{b(E,"time")}}),null)])}QBe.displayName="DatetimePanel";QBe.inheritAttrs=!1;function _Be(e){const t=Zf(e),{prefixCls:r,generateConfig:n,locale:i,value:a}=t,o=`${r}-cell`,s=c=>De("td",{key:"week",class:Vn(o,`${o}-week`)},[n.locale.getWeek(i.locale,c)]),l=`${r}-week-panel-row`,u=c=>Vn(l,{[`${l}-selected`]:elt(n,i.locale,a,c)});return De(kL,Ot(Ot({},t),{},{panelName:"week",prefixColumn:s,rowClassName:u,keyboardConfig:{onLeftRight:null}}),null)}_Be.displayName="WeekPanel";_Be.inheritAttrs=!1;function TBe(e){const t=Zf(e),{prefixCls:r,generateConfig:n,locale:i,viewDate:a,onNextYear:o,onPrevYear:s,onYearClick:l}=t,{hideHeader:u}=_C();if(u.value)return null;const c=`${r}-header`;return De(G5,Ot(Ot({},t),{},{prefixCls:c,onSuperPrev:s,onSuperNext:o}),{default:()=>[De("button",{type:"button",onClick:l,class:`${r}-year-btn`},[qg(a,{locale:i,format:i.yearFormat,generateConfig:n})])]})}TBe.displayName="MonthHeader";TBe.inheritAttrs=!1;const olt=3,sUt=4;function DBe(e){const t=Zf(e),{prefixCls:r,locale:n,value:i,viewDate:a,generateConfig:o,monthCellRender:s}=t,{rangedValue:l,hoverRangedValue:u}=SL(),c=`${r}-cell`,A=QJ({cellPrefixCls:c,value:i,generateConfig:o,rangedValue:l.value,hoverRangedValue:u.value,isSameCell:(p,m)=>xBe(o,p,m),isInView:()=>!0,offsetCell:(p,m)=>o.addMonth(p,m)}),f=n.shortMonths||(o.locale.getShortMonths?o.locale.getShortMonths(n.locale):[]),h=o.setMonth(a,0),g=s?p=>s({current:p,locale:n}):void 0;return De(tQ,Ot(Ot({},t),{},{rowNum:sUt,colNum:olt,baseDate:h,getCellNode:g,getCellText:p=>n.monthFormat?qg(p,{locale:n,format:n.monthFormat,generateConfig:o}):f[o.getMonth(p)],getCellClassName:A,getCellDate:o.addMonth,titleCell:p=>qg(p,{locale:n,format:"YYYY-MM",generateConfig:o})}),null)}DBe.displayName="MonthBody";DBe.inheritAttrs=!1;function FBe(e){const t=Zf(e),{prefixCls:r,operationRef:n,onViewDateChange:i,generateConfig:a,value:o,viewDate:s,onPanelChange:l,onSelect:u}=t,c=`${r}-month-panel`;n.value={onKeydown:f=>K7(f,{onLeftRight:h=>{u(a.addMonth(o||s,h),"key")},onCtrlLeftRight:h=>{u(a.addYear(o||s,h),"key")},onUpDown:h=>{u(a.addMonth(o||s,h*olt),"key")},onEnter:()=>{l("date",o||s)}})};const A=f=>{const h=a.addYear(s,f);i(h),l(null,h)};return De("div",{class:c},[De(TBe,Ot(Ot({},t),{},{prefixCls:r,onPrevYear:()=>{A(-1)},onNextYear:()=>{A(1)},onYearClick:()=>{l("year",s)}}),null),De(DBe,Ot(Ot({},t),{},{prefixCls:r,onSelect:f=>{u(f,"mouse"),l("date",f)}}),null)])}FBe.displayName="MonthPanel";FBe.inheritAttrs=!1;function RBe(e){const t=Zf(e),{prefixCls:r,generateConfig:n,locale:i,viewDate:a,onNextYear:o,onPrevYear:s,onYearClick:l}=t,{hideHeader:u}=_C();if(u.value)return null;const c=`${r}-header`;return De(G5,Ot(Ot({},t),{},{prefixCls:c,onSuperPrev:s,onSuperNext:o}),{default:()=>[De("button",{type:"button",onClick:l,class:`${r}-year-btn`},[qg(a,{locale:i,format:i.yearFormat,generateConfig:n})])]})}RBe.displayName="QuarterHeader";RBe.inheritAttrs=!1;const lUt=4,uUt=1;function MBe(e){const t=Zf(e),{prefixCls:r,locale:n,value:i,viewDate:a,generateConfig:o}=t,{rangedValue:s,hoverRangedValue:l}=SL(),u=`${r}-cell`,c=QJ({cellPrefixCls:u,value:i,generateConfig:o,rangedValue:s.value,hoverRangedValue:l.value,isSameCell:(f,h)=>Zst(o,f,h),isInView:()=>!0,offsetCell:(f,h)=>o.addMonth(f,h*3)}),A=o.setDate(o.setMonth(a,0),1);return De(tQ,Ot(Ot({},t),{},{rowNum:uUt,colNum:lUt,baseDate:A,getCellText:f=>qg(f,{locale:n,format:n.quarterFormat||"[Q]Q",generateConfig:o}),getCellClassName:c,getCellDate:(f,h)=>o.addMonth(f,h*3),titleCell:f=>qg(f,{locale:n,format:"YYYY-[Q]Q",generateConfig:o})}),null)}MBe.displayName="QuarterBody";MBe.inheritAttrs=!1;function OBe(e){const t=Zf(e),{prefixCls:r,operationRef:n,onViewDateChange:i,generateConfig:a,value:o,viewDate:s,onPanelChange:l,onSelect:u}=t,c=`${r}-quarter-panel`;n.value={onKeydown:f=>K7(f,{onLeftRight:h=>{u(a.addMonth(o||s,h*3),"key")},onCtrlLeftRight:h=>{u(a.addYear(o||s,h),"key")},onUpDown:h=>{u(a.addYear(o||s,h),"key")}})};const A=f=>{const h=a.addYear(s,f);i(h),l(null,h)};return De("div",{class:c},[De(RBe,Ot(Ot({},t),{},{prefixCls:r,onPrevYear:()=>{A(-1)},onNextYear:()=>{A(1)},onYearClick:()=>{l("year",s)}}),null),De(MBe,Ot(Ot({},t),{},{prefixCls:r,onSelect:f=>{u(f,"mouse")}}),null)])}OBe.displayName="QuarterPanel";OBe.inheritAttrs=!1;function NBe(e){const t=Zf(e),{prefixCls:r,generateConfig:n,viewDate:i,onPrevDecade:a,onNextDecade:o,onDecadeClick:s}=t,{hideHeader:l}=_C();if(l.value)return null;const u=`${r}-header`,c=n.getYear(i),A=Math.floor(c/x3)*x3,f=A+x3-1;return De(G5,Ot(Ot({},t),{},{prefixCls:u,onSuperPrev:a,onSuperNext:o}),{default:()=>[De("button",{type:"button",onClick:s,class:`${r}-decade-btn`},[A,t2("-"),f])]})}NBe.displayName="YearHeader";NBe.inheritAttrs=!1;const Iye=3,r7e=4;function LBe(e){const t=Zf(e),{prefixCls:r,value:n,viewDate:i,locale:a,generateConfig:o}=t,{rangedValue:s,hoverRangedValue:l}=SL(),u=`${r}-cell`,c=o.getYear(i),A=Math.floor(c/x3)*x3,f=A+x3-1,h=o.setYear(i,A-Math.ceil((Iye*r7e-x3)/2)),g=m=>{const b=o.getYear(m);return A<=b&&b<=f},p=QJ({cellPrefixCls:u,value:n,generateConfig:o,rangedValue:s.value,hoverRangedValue:l.value,isSameCell:(m,b)=>SJ(o,m,b),isInView:g,offsetCell:(m,b)=>o.addYear(m,b)});return De(tQ,Ot(Ot({},t),{},{rowNum:r7e,colNum:Iye,baseDate:h,getCellText:o.getYear,getCellClassName:p,getCellDate:o.addYear,titleCell:m=>qg(m,{locale:a,format:"YYYY",generateConfig:o})}),null)}LBe.displayName="YearBody";LBe.inheritAttrs=!1;const x3=10;function PBe(e){const t=Zf(e),{prefixCls:r,operationRef:n,onViewDateChange:i,generateConfig:a,value:o,viewDate:s,sourceMode:l,onSelect:u,onPanelChange:c}=t,A=`${r}-year-panel`;n.value={onKeydown:h=>K7(h,{onLeftRight:g=>{u(a.addYear(o||s,g),"key")},onCtrlLeftRight:g=>{u(a.addYear(o||s,g*x3),"key")},onUpDown:g=>{u(a.addYear(o||s,g*Iye),"key")},onEnter:()=>{c(l==="date"?"date":"month",o||s)}})};const f=h=>{const g=a.addYear(s,h*10);i(g),c(null,g)};return De("div",{class:A},[De(NBe,Ot(Ot({},t),{},{prefixCls:r,onPrevDecade:()=>{f(-1)},onNextDecade:()=>{f(1)},onDecadeClick:()=>{c("decade",s)}}),null),De(LBe,Ot(Ot({},t),{},{prefixCls:r,onSelect:h=>{c(l==="date"?"date":"month",h),u(h,"mouse")}}),null)])}PBe.displayName="YearPanel";PBe.inheritAttrs=!1;function slt(e,t,r){return r?De("div",{class:`${e}-footer-extra`},[r(t)]):null}function llt(e){let{prefixCls:t,components:r={},needConfirmButton:n,onNow:i,onOk:a,okDisabled:o,showNow:s,locale:l}=e,u,c;if(n){const A=r.button||"button";i&&s!==!1&&(u=De("li",{class:`${t}-now`},[De("a",{class:`${t}-now-btn`,onClick:i},[l.now])])),c=n&&De("li",{class:`${t}-ok`},[De(A,{disabled:o,onClick:a},{default:()=>[l.ok]})])}return!u&&!c?null:De("ul",{class:`${t}-ranges`},[u,c])}function cUt(){return $n({name:"PickerPanel",inheritAttrs:!1,props:{prefixCls:String,locale:Object,generateConfig:Object,value:Object,defaultValue:Object,pickerValue:Object,defaultPickerValue:Object,disabledDate:Function,mode:String,picker:{type:String,default:"date"},tabindex:{type:[Number,String],default:0},showNow:{type:Boolean,default:void 0},showTime:[Boolean,Object],showToday:Boolean,renderExtraFooter:Function,dateRender:Function,hideHeader:{type:Boolean,default:void 0},onSelect:Function,onChange:Function,onPanelChange:Function,onMousedown:Function,onPickerValueChange:Function,onOk:Function,components:Object,direction:String,hourStep:{type:Number,default:1},minuteStep:{type:Number,default:1},secondStep:{type:Number,default:1}},setup(e,t){let{attrs:r}=t;const n=vt(()=>e.picker==="date"&&!!e.showTime||e.picker==="time"),i=vt(()=>24%e.hourStep===0),a=vt(()=>60%e.minuteStep===0),o=vt(()=>60%e.secondStep===0),s=_C(),{operationRef:l,onSelect:u,hideRanges:c,defaultOpenValue:A}=s,{inRange:f,panelPosition:h,rangedValue:g,hoverRangedValue:p}=SL(),m=Hn({}),[b,C]=Vg(null,{value:ws(e,"value"),defaultValue:e.defaultValue,postState:de=>!de&&(A!=null&&A.value)&&e.picker==="time"?A.value:de}),[E,_]=Vg(null,{value:ws(e,"pickerValue"),defaultValue:e.defaultPickerValue||b.value,postState:de=>{const{generateConfig:Ae,showTime:be,defaultValue:Le}=e,Ne=Ae.getNow();return de?!b.value&&e.showTime?typeof be=="object"?CK(Ae,Array.isArray(de)?de[0]:de,be.defaultValue||Ne):Le?CK(Ae,Array.isArray(de)?de[0]:de,Le):CK(Ae,Array.isArray(de)?de[0]:de,Ne):de:Ne}}),F=de=>{_(de),e.onPickerValueChange&&e.onPickerValueChange(de)},M=de=>{const Ae=JPt[e.picker];return Ae?Ae(de):de},[N,P]=Vg(()=>e.picker==="time"?"time":M("date"),{value:ws(e,"mode")});di(()=>e.picker,()=>{P(e.picker)});const j=Hn(N.value),z=de=>{j.value=de},W=(de,Ae)=>{const{onPanelChange:be,generateConfig:Le}=e,Ne=M(de||N.value);z(N.value),P(Ne),be&&(N.value!==Ne||f9(Le,E.value,E.value))&&be(Ae,Ne)},Y=function(de,Ae){let be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{picker:Le,generateConfig:Ne,onSelect:ue,onChange:Ke,disabledDate:Pe}=e;(N.value===Le||be)&&(C(de),ue&&ue(de),u&&u(de,Ae),Ke&&!f9(Ne,de,b.value)&&!(Pe!=null&&Pe(de))&&Ke(de))},ee=de=>m.value&&m.value.onKeydown?([yi.LEFT,yi.RIGHT,yi.UP,yi.DOWN,yi.PAGE_UP,yi.PAGE_DOWN,yi.ENTER].includes(de.which)&&de.preventDefault(),m.value.onKeydown(de)):!1,q=de=>{m.value&&m.value.onBlur&&m.value.onBlur(de)},ae=()=>{const{generateConfig:de,hourStep:Ae,minuteStep:be,secondStep:Le}=e,Ne=de.getNow(),ue=jPt(de.getHour(Ne),de.getMinute(Ne),de.getSecond(Ne),i.value?Ae:1,a.value?be:1,o.value?Le:1),Ke=Yst(de,Ne,ue[0],ue[1],ue[2]);Y(Ke,"submit")},se=vt(()=>{const{prefixCls:de,direction:Ae}=e;return Vn(`${de}-panel`,{[`${de}-panel-has-range`]:g&&g.value&&g.value[0]&&g.value[1],[`${de}-panel-has-range-hover`]:p&&p.value&&p.value[0]&&p.value[1],[`${de}-panel-rtl`]:Ae==="rtl"})});return CBe($e($e({},s),{mode:N,hideHeader:vt(()=>{var de;return e.hideHeader!==void 0?e.hideHeader:(de=s.hideHeader)===null||de===void 0?void 0:de.value}),hidePrevBtn:vt(()=>f.value&&h.value==="right"),hideNextBtn:vt(()=>f.value&&h.value==="left")})),di(()=>e.value,()=>{e.value&&_(e.value)}),()=>{const{prefixCls:de="ant-picker",locale:Ae,generateConfig:be,disabledDate:Le,picker:Ne="date",tabindex:ue=0,showNow:Ke,showTime:Pe,showToday:je,renderExtraFooter:Ye,onMousedown:me,onOk:Se,components:et}=e;l&&h.value!=="right"&&(l.value={onKeydown:ee,onClose:()=>{m.value&&m.value.onClose&&m.value.onClose()}});let nt;const tt=$e($e($e({},r),e),{operationRef:m,prefixCls:de,viewDate:E.value,value:b.value,onViewDateChange:F,sourceMode:j.value,onPanelChange:W,disabledDate:Le});switch(delete tt.onChange,delete tt.onSelect,N.value){case"decade":nt=De(BBe,Ot(Ot({},tt),{},{onSelect:(dt,Oe)=>{F(dt),Y(dt,Oe)}}),null);break;case"year":nt=De(PBe,Ot(Ot({},tt),{},{onSelect:(dt,Oe)=>{F(dt),Y(dt,Oe)}}),null);break;case"month":nt=De(FBe,Ot(Ot({},tt),{},{onSelect:(dt,Oe)=>{F(dt),Y(dt,Oe)}}),null);break;case"quarter":nt=De(OBe,Ot(Ot({},tt),{},{onSelect:(dt,Oe)=>{F(dt),Y(dt,Oe)}}),null);break;case"week":nt=De(_Be,Ot(Ot({},tt),{},{onSelect:(dt,Oe)=>{F(dt),Y(dt,Oe)}}),null);break;case"time":delete tt.showTime,nt=De(kJ,Ot(Ot(Ot({},tt),typeof Pe=="object"?Pe:null),{},{onSelect:(dt,Oe)=>{F(dt),Y(dt,Oe)}}),null);break;default:Pe?nt=De(QBe,Ot(Ot({},tt),{},{onSelect:(dt,Oe)=>{F(dt),Y(dt,Oe)}}),null):nt=De(kL,Ot(Ot({},tt),{},{onSelect:(dt,Oe)=>{F(dt),Y(dt,Oe)}}),null)}let ft,st;c!=null&&c.value||(ft=slt(de,N.value,Ye),st=llt({prefixCls:de,components:et,needConfirmButton:n.value,okDisabled:!b.value||Le&&Le(b.value),locale:Ae,showNow:Ke,onNow:n.value&&ae,onOk:()=>{b.value&&(Y(b.value,"submit",!0),Se&&Se(b.value))}}));let Re;if(je&&N.value==="date"&&Ne==="date"&&!Pe){const dt=be.getNow(),Oe=`${de}-today-btn`,Ce=Le&&Le(dt);Re=De("a",{class:Vn(Oe,Ce&&`${Oe}-disabled`),"aria-disabled":Ce,onClick:()=>{Ce||Y(dt,"mouse",!0)}},[Ae.today])}return De("div",{tabindex:ue,class:Vn(se.value,r.class),style:r.style,onKeydown:ee,onBlur:q,onMousedown:me},[nt,ft||st||Re?De("div",{class:`${de}-footer`},[ft,st,Re]):null])}}})}const AUt=cUt(),ult=e=>De(AUt,e),fUt={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function clt(e,t){let{slots:r}=t;const{prefixCls:n,popupStyle:i,visible:a,dropdownClassName:o,dropdownAlign:s,transitionName:l,getPopupContainer:u,range:c,popupPlacement:A,direction:f}=Zf(e),h=`${n}-dropdown`;return De(yL,{showAction:[],hideAction:[],popupPlacement:A!==void 0?A:f==="rtl"?"bottomRight":"bottomLeft",builtinPlacements:fUt,prefixCls:h,popupTransitionName:l,popupAlign:s,popupVisible:a,popupClassName:Vn(o,{[`${h}-range`]:c,[`${h}-rtl`]:f==="rtl"}),popupStyle:i,getPopupContainer:u},{default:r.default,popup:r.popupElement})}const Alt=$n({name:"PresetPanel",props:{prefixCls:String,presets:{type:Array,default:()=>[]},onClick:Function,onHover:Function},setup(e){return()=>e.presets.length?De("div",{class:`${e.prefixCls}-presets`},[De("ul",null,[e.presets.map((t,r)=>{let{label:n,value:i}=t;return De("li",{key:r,onClick:()=>{e.onClick(i)},onMouseenter:()=>{var a;(a=e.onHover)===null||a===void 0||a.call(e,i)},onMouseleave:()=>{var a;(a=e.onHover)===null||a===void 0||a.call(e,null)}},[n])})])]):null}});function Eye(e){let{open:t,value:r,isClickOutside:n,triggerOpen:i,forwardKeydown:a,onKeydown:o,blurToCancel:s,onSubmit:l,onCancel:u,onFocus:c,onBlur:A}=e;const f=sn(!1),h=sn(!1),g=sn(!1),p=sn(!1),m=sn(!1),b=vt(()=>({onMousedown:()=>{f.value=!0,i(!0)},onKeydown:E=>{if(o(E,()=>{m.value=!0}),!m.value){switch(E.which){case yi.ENTER:{t.value?l()!==!1&&(f.value=!0):i(!0),E.preventDefault();return}case yi.TAB:{f.value&&t.value&&!E.shiftKey?(f.value=!1,E.preventDefault()):!f.value&&t.value&&!a(E)&&E.shiftKey&&(f.value=!0,E.preventDefault());return}case yi.ESC:{f.value=!0,u();return}}!t.value&&![yi.SHIFT].includes(E.which)?i(!0):f.value||a(E)}},onFocus:E=>{f.value=!0,h.value=!0,c&&c(E)},onBlur:E=>{if(g.value||!n(document.activeElement)){g.value=!1;return}s.value?setTimeout(()=>{let{activeElement:_}=document;for(;_&&_.shadowRoot;)_=_.shadowRoot.activeElement;n(_)&&u()},0):t.value&&(i(!1),p.value&&l()),h.value=!1,A&&A(E)}}));di(t,()=>{p.value=!1}),di(r,()=>{p.value=!0});const C=sn();return Is(()=>{C.value=zPt(E=>{const _=KPt(E);if(t.value){const F=n(_);F?(!h.value||F)&&i(!1):(g.value=!0,ms(()=>{g.value=!1}))}})}),el(()=>{C.value&&C.value()}),[b,{focused:h,typing:f}]}function Bye(e){let{valueTexts:t,onTextChange:r}=e;const n=Hn("");function i(o){n.value=o,r(o)}function a(){n.value=t.value[0]}return di(()=>[...t.value],function(o){let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];o.join("||")!==s.join("||")&&t.value.every(l=>l!==n.value)&&a()},{immediate:!0}),[n,i,a]}function EW(e,t){let{formatList:r,generateConfig:n,locale:i}=t;const a=Rot(()=>{if(!e.value)return[[""],""];let l="";const u=[];for(let c=0;cu[0]!==l[0]||!F8(u[1],l[1])),o=vt(()=>a.value[0]),s=vt(()=>a.value[1]);return[o,s]}function xye(e,t){let{formatList:r,generateConfig:n,locale:i}=t;const a=Hn(null);let o;function s(A){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(ms.cancel(o),f){a.value=A;return}o=ms(()=>{a.value=A})}const[,l]=EW(a,{formatList:r,generateConfig:n,locale:i});function u(A){s(A)}function c(){let A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;s(null,A)}return di(e,()=>{c(!0)}),el(()=>{ms.cancel(o)}),[l,u,c]}function flt(e,t){return vt(()=>e!=null&&e.value?e.value:t!=null&&t.value?(BEe(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.keys(t.value).map(n=>{const i=t.value[n],a=typeof i=="function"?i():i;return{label:n,value:a}})):[])}function hUt(){return $n({name:"Picker",inheritAttrs:!1,props:["prefixCls","id","tabindex","dropdownClassName","dropdownAlign","popupStyle","transitionName","generateConfig","locale","inputReadOnly","allowClear","autofocus","showTime","showNow","showHour","showMinute","showSecond","picker","format","use12Hours","value","defaultValue","open","defaultOpen","defaultOpenValue","suffixIcon","presets","clearIcon","disabled","disabledDate","placeholder","getPopupContainer","panelRender","inputRender","onChange","onOpenChange","onFocus","onBlur","onMousedown","onMouseup","onMouseenter","onMouseleave","onContextmenu","onClick","onKeydown","onSelect","direction","autocomplete","showToday","renderExtraFooter","dateRender","minuteStep","hourStep","secondStep","hideDisabledOptions"],setup(e,t){let{attrs:r,expose:n}=t;const i=Hn(null),a=vt(()=>e.presets),o=flt(a),s=vt(()=>{var Le;return(Le=e.picker)!==null&&Le!==void 0?Le:"date"}),l=vt(()=>s.value==="date"&&!!e.showTime||s.value==="time"),u=vt(()=>nlt(qst(e.format,s.value,e.showTime,e.use12Hours))),c=Hn(null),A=Hn(null),f=Hn(null),[h,g]=Vg(null,{value:ws(e,"value"),defaultValue:e.defaultValue}),p=Hn(h.value),m=Le=>{p.value=Le},b=Hn(null),[C,E]=Vg(!1,{value:ws(e,"open"),defaultValue:e.defaultOpen,postState:Le=>e.disabled?!1:Le,onChange:Le=>{e.onOpenChange&&e.onOpenChange(Le),!Le&&b.value&&b.value.onClose&&b.value.onClose()}}),[_,F]=EW(p,{formatList:u,generateConfig:ws(e,"generateConfig"),locale:ws(e,"locale")}),[M,N,P]=Bye({valueTexts:_,onTextChange:Le=>{const Ne=tlt(Le,{locale:e.locale,formatList:u.value,generateConfig:e.generateConfig});Ne&&(!e.disabledDate||!e.disabledDate(Ne))&&m(Ne)}}),j=Le=>{const{onChange:Ne,generateConfig:ue,locale:Ke}=e;m(Le),g(Le),Ne&&!f9(ue,h.value,Le)&&Ne(Le,Le?qg(Le,{generateConfig:ue,locale:Ke,format:u.value[0]}):"")},z=Le=>{e.disabled&&Le||E(Le)},W=Le=>C.value&&b.value&&b.value.onKeydown?b.value.onKeydown(Le):!1,Y=function(){e.onMouseup&&e.onMouseup(...arguments),i.value&&(i.value.focus(),z(!0))},[ee,{focused:q,typing:ae}]=Eye({blurToCancel:l,open:C,value:M,triggerOpen:z,forwardKeydown:W,isClickOutside:Le=>!Xst([c.value,A.value,f.value],Le),onSubmit:()=>!p.value||e.disabledDate&&e.disabledDate(p.value)?!1:(j(p.value),z(!1),P(),!0),onCancel:()=>{z(!1),m(h.value),P()},onKeydown:(Le,Ne)=>{var ue;(ue=e.onKeydown)===null||ue===void 0||ue.call(e,Le,Ne)},onFocus:Le=>{var Ne;(Ne=e.onFocus)===null||Ne===void 0||Ne.call(e,Le)},onBlur:Le=>{var Ne;(Ne=e.onBlur)===null||Ne===void 0||Ne.call(e,Le)}});di([C,_],()=>{C.value||(m(h.value),!_.value.length||_.value[0]===""?N(""):F.value!==M.value&&P())}),di(s,()=>{C.value||P()}),di(h,()=>{m(h.value)});const[se,de,Ae]=xye(M,{formatList:u,generateConfig:ws(e,"generateConfig"),locale:ws(e,"locale")}),be=(Le,Ne)=>{(Ne==="submit"||Ne!=="key"&&!l.value)&&(j(Le),z(!1))};return CBe({operationRef:b,hideHeader:vt(()=>s.value==="time"),onSelect:be,open:C,defaultOpenValue:ws(e,"defaultOpenValue"),onDateMouseenter:de,onDateMouseleave:Ae}),n({focus:()=>{i.value&&i.value.focus()},blur:()=>{i.value&&i.value.blur()}}),()=>{const{prefixCls:Le="rc-picker",id:Ne,tabindex:ue,dropdownClassName:Ke,dropdownAlign:Pe,popupStyle:je,transitionName:Ye,generateConfig:me,locale:Se,inputReadOnly:et,allowClear:nt,autofocus:tt,picker:ft="date",defaultOpenValue:st,suffixIcon:Re,clearIcon:dt,disabled:Oe,placeholder:Ce,getPopupContainer:Be,panelRender:We,onMousedown:mt,onMouseenter:Tt,onMouseleave:bt,onContextmenu:qt,onClick:cr,onSelect:Gt,direction:Xt,autocomplete:Er="off"}=e,on=$e($e($e({},e),r),{class:Vn({[`${Le}-panel-focused`]:!ae.value}),style:void 0,pickerValue:void 0,onPickerValueChange:void 0,onChange:null});let wn=De("div",{class:`${Le}-panel-layout`},[De(Alt,{prefixCls:Le,presets:o.value,onClick:Kn=>{j(Kn),z(!1)}},null),De(ult,Ot(Ot({},on),{},{generateConfig:me,value:p.value,locale:Se,tabindex:-1,onSelect:Kn=>{Gt==null||Gt(Kn),m(Kn)},direction:Xt,onPanelChange:(Kn,qr)=>{const{onPanelChange:Gi}=e;Ae(!0),Gi==null||Gi(Kn,qr)}}),null)]);We&&(wn=We(wn));const jr=De("div",{class:`${Le}-panel-container`,ref:c,onMousedown:Kn=>{Kn.preventDefault()}},[wn]);let ur;Re&&(ur=De("span",{class:`${Le}-suffix`},[Re]));let Hr;nt&&h.value&&!Oe&&(Hr=De("span",{onMousedown:Kn=>{Kn.preventDefault(),Kn.stopPropagation()},onMouseup:Kn=>{Kn.preventDefault(),Kn.stopPropagation(),j(null),z(!1)},class:`${Le}-clear`,role:"button"},[dt||De("span",{class:`${Le}-clear-btn`},null)]));const Lr=$e($e($e($e({id:Ne,tabindex:ue,disabled:Oe,readonly:et||typeof u.value[0]=="function"||!ae.value,value:se.value||M.value,onInput:Kn=>{N(Kn.target.value)},autofocus:tt,placeholder:Ce,ref:i,title:M.value},ee.value),{size:Jst(ft,u.value[0],me)}),ilt(e)),{autocomplete:Er}),Un=e.inputRender?e.inputRender(Lr):De("input",Lr,null),en=Xt==="rtl"?"bottomRight":"bottomLeft";return De("div",{ref:f,class:Vn(Le,r.class,{[`${Le}-disabled`]:Oe,[`${Le}-focused`]:q.value,[`${Le}-rtl`]:Xt==="rtl"}),style:r.style,onMousedown:mt,onMouseup:Y,onMouseenter:Tt,onMouseleave:bt,onContextmenu:qt,onClick:cr},[De("div",{class:Vn(`${Le}-input`,{[`${Le}-input-placeholder`]:!!se.value}),ref:A},[Un,ur,Hr]),De(clt,{visible:C.value,popupStyle:je,prefixCls:Le,dropdownClassName:Ke,dropdownAlign:Pe,getPopupContainer:Be,transitionName:Ye,popupPlacement:en,direction:Xt},{default:()=>[De("div",{style:{pointerEvents:"none",position:"absolute",top:0,bottom:0,left:0,right:0}},null)],popupElement:()=>jr})])}}})}const dUt=hUt();function gUt(e,t){let{picker:r,locale:n,selectedValue:i,disabledDate:a,disabled:o,generateConfig:s}=e;const l=vt(()=>bu(i.value,0)),u=vt(()=>bu(i.value,1));function c(p){return s.value.locale.getWeekFirstDate(n.value.locale,p)}function A(p){const m=s.value.getYear(p),b=s.value.getMonth(p);return m*100+b}function f(p){const m=s.value.getYear(p),b=wye(s.value,p);return m*10+b}return[p=>{var m;if(a&&(!((m=a==null?void 0:a.value)===null||m===void 0)&&m.call(a,p)))return!0;if(o[1]&&u)return!BE(s.value,p,u.value)&&s.value.isAfter(p,u.value);if(t.value[1]&&u.value)switch(r.value){case"quarter":return f(p)>f(u.value);case"month":return A(p)>A(u.value);case"week":return c(p)>c(u.value);default:return!BE(s.value,p,u.value)&&s.value.isAfter(p,u.value)}return!1},p=>{var m;if(!((m=a.value)===null||m===void 0)&&m.call(a,p))return!0;if(o[0]&&l)return!BE(s.value,p,u.value)&&s.value.isAfter(l.value,p);if(t.value[0]&&l.value)switch(r.value){case"quarter":return f(p)XPt(n,o,s));case"quarter":case"month":return a((o,s)=>SJ(n,o,s));default:return a((o,s)=>xBe(n,o,s))}}function vUt(e,t,r,n){const i=bu(e,0),a=bu(e,1);if(t===0)return i;if(i&&a)switch(pUt(i,a,r,n)){case"same":return i;case"closing":return i;default:return NM(a,r,n,-1)}return i}function mUt(e){let{values:t,picker:r,defaultDates:n,generateConfig:i}=e;const a=Hn([bu(n,0),bu(n,1)]),o=Hn(null),s=vt(()=>bu(t.value,0)),l=vt(()=>bu(t.value,1)),u=h=>a.value[h]?a.value[h]:bu(o.value,h)||vUt(t.value,h,r.value,i.value)||s.value||l.value||i.value.getNow(),c=Hn(null),A=Hn(null);ks(()=>{c.value=u(0),A.value=u(1)});function f(h,g){if(h){let p=uy(o.value,h,g);a.value=uy(a.value,null,g)||[null,null];const m=(g+1)%2;bu(t.value,m)||(p=uy(p,h,m)),o.value=p}else(s.value||l.value)&&(o.value=null)}return[c,A,f]}function yUt(e){return $Ie()?($rt(e),!0):!1}function bUt(e){return typeof e=="function"?e():bA(e)}function hlt(e){var t;const r=bUt(e);return(t=r==null?void 0:r.$el)!==null&&t!==void 0?t:r}function wUt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;sA()?Is(e):t?e():il(e)}function CUt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=sn(),n=()=>r.value=!!e();return n(),wUt(n,t),r}var qae;const dlt=typeof window<"u";dlt&&(!((qae=window==null?void 0:window.navigator)===null||qae===void 0)&&qae.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);const IUt=dlt?window:void 0;var EUt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i2&&arguments[2]!==void 0?arguments[2]:{};const{window:n=IUt}=r,i=EUt(r,["window"]);let a;const o=CUt(()=>n&&"ResizeObserver"in n),s=()=>{a&&(a.disconnect(),a=void 0)},l=di(()=>hlt(e),c=>{s(),o.value&&n&&c&&(a=new ResizeObserver(t),a.observe(c,i))},{immediate:!0,flush:"post"}),u=()=>{s(),l()};return yUt(u),{isSupported:o,stop:u}}function RF(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{width:0,height:0},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{box:n="content-box"}=r,i=sn(t.width),a=sn(t.height);return BUt(e,o=>{let[s]=o;const l=n==="border-box"?s.borderBoxSize:n==="content-box"?s.contentBoxSize:s.devicePixelContentBoxSize;l?(i.value=l.reduce((u,c)=>{let{inlineSize:A}=c;return u+A},0),a.value=l.reduce((u,c)=>{let{blockSize:A}=c;return u+A},0)):(i.value=s.contentRect.width,a.value=s.contentRect.height)},r),di(()=>hlt(e),o=>{i.value=o?t.width:0,a.value=o?t.height:0}),{width:i,height:a}}function n7e(e,t){return e&&e[0]&&e[1]&&t.isAfter(e[0],e[1])?[e[1],e[0]]:e}function i7e(e,t,r,n){return!!(e||n&&n[t]||r[(t+1)%2])}function xUt(){return $n({name:"RangerPicker",inheritAttrs:!1,props:["prefixCls","id","popupStyle","dropdownClassName","transitionName","dropdownAlign","getPopupContainer","generateConfig","locale","placeholder","autofocus","disabled","format","picker","showTime","showNow","showHour","showMinute","showSecond","use12Hours","separator","value","defaultValue","defaultPickerValue","open","defaultOpen","disabledDate","disabledTime","dateRender","panelRender","ranges","allowEmpty","allowClear","suffixIcon","clearIcon","pickerRef","inputReadOnly","mode","renderExtraFooter","onChange","onOpenChange","onPanelChange","onCalendarChange","onFocus","onBlur","onMousedown","onMouseup","onMouseenter","onMouseleave","onClick","onOk","onKeydown","components","order","direction","activePickerIndex","autocomplete","minuteStep","hourStep","secondStep","hideDisabledOptions","disabledMinutes","presets"],setup(e,t){let{attrs:r,expose:n}=t;const i=vt(()=>e.picker==="date"&&!!e.showTime||e.picker==="time"),a=vt(()=>e.presets),o=vt(()=>e.ranges),s=flt(a,o),l=Hn({}),u=Hn(null),c=Hn(null),A=Hn(null),f=Hn(null),h=Hn(null),g=Hn(null),p=Hn(null),m=Hn(null),b=vt(()=>nlt(qst(e.format,e.picker,e.showTime,e.use12Hours))),[C,E]=Vg(0,{value:ws(e,"activePickerIndex")}),_=Hn(null),F=vt(()=>{const{disabled:Dt}=e;return Array.isArray(Dt)?Dt:[Dt||!1,Dt||!1]}),[M,N]=Vg(null,{value:ws(e,"value"),defaultValue:e.defaultValue,postState:Dt=>e.picker==="time"&&!e.order?Dt:n7e(Dt,e.generateConfig)}),[P,j,z]=mUt({values:M,picker:ws(e,"picker"),defaultDates:e.defaultPickerValue,generateConfig:ws(e,"generateConfig")}),[W,Y]=Vg(M.value,{postState:Dt=>{let Pt=Dt;if(F.value[0]&&F.value[1])return Pt;for(let Vt=0;Vt<2;Vt+=1)F.value[Vt]&&!bu(Pt,Vt)&&!bu(e.allowEmpty,Vt)&&(Pt=uy(Pt,e.generateConfig.getNow(),Vt));return Pt}}),[ee,q]=Vg([e.picker,e.picker],{value:ws(e,"mode")});di(()=>e.picker,()=>{q([e.picker,e.picker])});const ae=(Dt,Pt)=>{var Vt;q(Dt),(Vt=e.onPanelChange)===null||Vt===void 0||Vt.call(e,Pt,Dt)},[se,de]=gUt({picker:ws(e,"picker"),selectedValue:W,locale:ws(e,"locale"),disabled:F,disabledDate:ws(e,"disabledDate"),generateConfig:ws(e,"generateConfig")},l),[Ae,be]=Vg(!1,{value:ws(e,"open"),defaultValue:e.defaultOpen,postState:Dt=>F.value[C.value]?!1:Dt,onChange:Dt=>{var Pt;(Pt=e.onOpenChange)===null||Pt===void 0||Pt.call(e,Dt),!Dt&&_.value&&_.value.onClose&&_.value.onClose()}}),Le=vt(()=>Ae.value&&C.value===0),Ne=vt(()=>Ae.value&&C.value===1),ue=Hn(0),Ke=Hn(0),Pe=Hn(0),{width:je}=RF(u);di([Ae,je],()=>{!Ae.value&&u.value&&(Pe.value=je.value)});const{width:Ye}=RF(c),{width:me}=RF(m),{width:Se}=RF(A),{width:et}=RF(h);di([C,Ae,Ye,me,Se,et,()=>e.direction],()=>{Ke.value=0,Ae.value&&C.value?A.value&&h.value&&c.value&&(Ke.value=Se.value+et.value,Ye.value&&me.value&&Ke.value>Ye.value-me.value-(e.direction==="rtl"||m.value.offsetLeft>Ke.value?0:m.value.offsetLeft)&&(ue.value=Ke.value)):C.value===0&&(ue.value=0)},{immediate:!0});const nt=Hn();function tt(Dt,Pt){if(Dt)clearTimeout(nt.value),l.value[Pt]=!0,E(Pt),be(Dt),Ae.value||z(null,Pt);else if(C.value===Pt){be(Dt);const Vt=l.value;nt.value=setTimeout(()=>{Vt===l.value&&(l.value={})})}}function ft(Dt){tt(!0,Dt),setTimeout(()=>{const Pt=[g,p][Dt];Pt.value&&Pt.value.focus()},0)}function st(Dt,Pt){let Vt=Dt,Ar=bu(Vt,0),pn=bu(Vt,1);const{generateConfig:Kr,locale:xn,picker:bn,order:jn,onCalendarChange:Br,allowEmpty:ca,onChange:$r,showTime:Pi}=e;Ar&&pn&&Kr.isAfter(Ar,pn)&&(bn==="week"&&!elt(Kr,xn.locale,Ar,pn)||bn==="quarter"&&!Zst(Kr,Ar,pn)||bn!=="week"&&bn!=="quarter"&&bn!=="time"&&!(Pi?f9(Kr,Ar,pn):BE(Kr,Ar,pn))?(Pt===0?(Vt=[Ar,null],pn=null):(Ar=null,Vt=[null,pn]),l.value={[Pt]:!0}):(bn!=="time"||jn!==!1)&&(Vt=n7e(Vt,Kr))),Y(Vt);const va=Vt&&Vt[0]?qg(Vt[0],{generateConfig:Kr,locale:xn,format:b.value[0]}):"",Fi=Vt&&Vt[1]?qg(Vt[1],{generateConfig:Kr,locale:xn,format:b.value[0]}):"";Br&&Br(Vt,[va,Fi],{range:Pt===0?"start":"end"});const Jr=i7e(Ar,0,F.value,ca),vi=i7e(pn,1,F.value,ca);(Vt===null||Jr&&vi)&&(N(Vt),$r&&(!f9(Kr,bu(M.value,0),Ar)||!f9(Kr,bu(M.value,1),pn))&&$r(Vt,[va,Fi]));let ma=null;Pt===0&&!F.value[1]?ma=1:Pt===1&&!F.value[0]&&(ma=0),ma!==null&&ma!==C.value&&(!l.value[ma]||!bu(Vt,ma))&&bu(Vt,Pt)?ft(ma):tt(!1,Pt)}const Re=Dt=>Ae&&_.value&&_.value.onKeydown?_.value.onKeydown(Dt):!1,dt={formatList:b,generateConfig:ws(e,"generateConfig"),locale:ws(e,"locale")},[Oe,Ce]=EW(vt(()=>bu(W.value,0)),dt),[Be,We]=EW(vt(()=>bu(W.value,1)),dt),mt=(Dt,Pt)=>{const Vt=tlt(Dt,{locale:e.locale,formatList:b.value,generateConfig:e.generateConfig});Vt&&!(Pt===0?se:de)(Vt)&&(Y(uy(W.value,Vt,Pt)),z(Vt,Pt))},[Tt,bt,qt]=Bye({valueTexts:Oe,onTextChange:Dt=>mt(Dt,0)}),[cr,Gt,Xt]=Bye({valueTexts:Be,onTextChange:Dt=>mt(Dt,1)}),[Er,on]=Hu(null),[wn,jr]=Hu(null),[ur,Hr,Lr]=xye(Tt,dt),[Un,en,Kn]=xye(cr,dt),qr=Dt=>{jr(uy(W.value,Dt,C.value)),C.value===0?Hr(Dt):en(Dt)},Gi=()=>{jr(uy(W.value,null,C.value)),C.value===0?Lr():Kn()},za=(Dt,Pt)=>({forwardKeydown:Re,onBlur:Vt=>{var Ar;(Ar=e.onBlur)===null||Ar===void 0||Ar.call(e,Vt)},isClickOutside:Vt=>!Xst([c.value,A.value,f.value,u.value],Vt),onFocus:Vt=>{var Ar;E(Dt),(Ar=e.onFocus)===null||Ar===void 0||Ar.call(e,Vt)},triggerOpen:Vt=>{tt(Vt,Dt)},onSubmit:()=>{if(!W.value||e.disabledDate&&e.disabledDate(W.value[Dt]))return!1;st(W.value,Dt),Pt()},onCancel:()=>{tt(!1,Dt),Y(M.value),Pt()}}),[xa,{focused:Wa,typing:$i}]=Eye($e($e({},za(0,qt)),{blurToCancel:i,open:Le,value:Tt,onKeydown:(Dt,Pt)=>{var Vt;(Vt=e.onKeydown)===null||Vt===void 0||Vt.call(e,Dt,Pt)}})),[Ji,{focused:ci,typing:Ni}]=Eye($e($e({},za(1,Xt)),{blurToCancel:i,open:Ne,value:cr,onKeydown:(Dt,Pt)=>{var Vt;(Vt=e.onKeydown)===null||Vt===void 0||Vt.call(e,Dt,Pt)}})),oo=Dt=>{var Pt;(Pt=e.onClick)===null||Pt===void 0||Pt.call(e,Dt),!Ae.value&&!g.value.contains(Dt.target)&&!p.value.contains(Dt.target)&&(F.value[0]?F.value[1]||ft(1):ft(0))},Ft=Dt=>{var Pt;(Pt=e.onMousedown)===null||Pt===void 0||Pt.call(e,Dt),Ae.value&&(Wa.value||ci.value)&&!g.value.contains(Dt.target)&&!p.value.contains(Dt.target)&&Dt.preventDefault()},ze=vt(()=>{var Dt;return!((Dt=M.value)===null||Dt===void 0)&&Dt[0]?qg(M.value[0],{locale:e.locale,format:"YYYYMMDDHHmmss",generateConfig:e.generateConfig}):""}),Me=vt(()=>{var Dt;return!((Dt=M.value)===null||Dt===void 0)&&Dt[1]?qg(M.value[1],{locale:e.locale,format:"YYYYMMDDHHmmss",generateConfig:e.generateConfig}):""});di([Ae,Oe,Be],()=>{Ae.value||(Y(M.value),!Oe.value.length||Oe.value[0]===""?bt(""):Ce.value!==Tt.value&&qt(),!Be.value.length||Be.value[0]===""?Gt(""):We.value!==cr.value&&Xt())}),di([ze,Me],()=>{Y(M.value)}),n({focus:()=>{g.value&&g.value.focus()},blur:()=>{g.value&&g.value.blur(),p.value&&p.value.blur()}});const pe=vt(()=>Ae.value&&wn.value&&wn.value[0]&&wn.value[1]&&e.generateConfig.isAfter(wn.value[1],wn.value[0])?wn.value:null);function Ge(){let Dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{generateConfig:Vt,showTime:Ar,dateRender:pn,direction:Kr,disabledTime:xn,prefixCls:bn,locale:jn}=e;let Br=Ar;if(Ar&&typeof Ar=="object"&&Ar.defaultValue){const $r=Ar.defaultValue;Br=$e($e({},Ar),{defaultValue:bu($r,C.value)||void 0})}let ca=null;return pn&&(ca=$r=>{let{current:Pi,today:va}=$r;return pn({current:Pi,today:va,info:{range:C.value?"end":"start"}})}),De(aUt,{value:{inRange:!0,panelPosition:Dt,rangedValue:Er.value||W.value,hoverRangedValue:pe.value}},{default:()=>[De(ult,Ot(Ot(Ot({},e),Pt),{},{dateRender:ca,showTime:Br,mode:ee.value[C.value],generateConfig:Vt,style:void 0,direction:Kr,disabledDate:C.value===0?se:de,disabledTime:$r=>xn?xn($r,C.value===0?"start":"end"):!1,class:Vn({[`${bn}-panel-focused`]:C.value===0?!$i.value:!Ni.value}),value:bu(W.value,C.value),locale:jn,tabIndex:-1,onPanelChange:($r,Pi)=>{C.value===0&&Lr(!0),C.value===1&&Kn(!0),ae(uy(ee.value,Pi,C.value),uy(W.value,$r,C.value));let va=$r;Dt==="right"&&ee.value[C.value]===Pi&&(va=NM(va,Pi,Vt,-1)),z(va,C.value)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:C.value===0?bu(W.value,1):bu(W.value,0)}),null)]})}const ct=(Dt,Pt)=>{const Vt=uy(W.value,Dt,C.value);Pt==="submit"||Pt!=="key"&&!i.value?(st(Vt,C.value),C.value===0?Lr():Kn()):Y(Vt)};return CBe({operationRef:_,hideHeader:vt(()=>e.picker==="time"),onDateMouseenter:qr,onDateMouseleave:Gi,hideRanges:vt(()=>!0),onSelect:ct,open:Ae}),()=>{const{prefixCls:Dt="rc-picker",id:Pt,popupStyle:Vt,dropdownClassName:Ar,transitionName:pn,dropdownAlign:Kr,getPopupContainer:xn,generateConfig:bn,locale:jn,placeholder:Br,autofocus:ca,picker:$r="date",showTime:Pi,separator:va="~",disabledDate:Fi,panelRender:Jr,allowClear:vi,suffixIcon:oi,clearIcon:ma,inputReadOnly:rs,renderExtraFooter:vn,onMouseenter:gi,onMouseleave:ka,onMouseup:xi,onOk:Ks,components:Vs,direction:Ms,autocomplete:Ws="off"}=e,uu=Ms==="rtl"?{right:`${Ke.value}px`}:{left:`${Ke.value}px`};function Ya(){let ns;const GA=slt(Dt,ee.value[C.value],vn),dd=llt({prefixCls:Dt,components:Vs,needConfirmButton:i.value,okDisabled:!bu(W.value,C.value)||Fi&&Fi(W.value[C.value]),locale:jn,onOk:()=>{bu(W.value,C.value)&&(st(W.value,C.value),Ks&&Ks(W.value))}});if($r!=="time"&&!Pi){const Xo=C.value===0?P.value:j.value,Oh=NM(Xo,$r,bn),KA=ee.value[C.value]===$r,al=Ge(KA?"left":!1,{pickerValue:Xo,onPickerValueChange:th=>{z(th,C.value)}}),Sg=Ge("right",{pickerValue:Oh,onPickerValueChange:th=>{z(NM(th,$r,bn,-1),C.value)}});Ms==="rtl"?ns=De(ls,null,[Sg,KA&&al]):ns=De(ls,null,[al,KA&&Sg])}else ns=Ge();let $A=De("div",{class:`${Dt}-panel-layout`},[De(Alt,{prefixCls:Dt,presets:s.value,onClick:Xo=>{st(Xo,null),tt(!1,C.value)},onHover:Xo=>{on(Xo)}},null),De("div",null,[De("div",{class:`${Dt}-panels`},[ns]),(GA||dd)&&De("div",{class:`${Dt}-footer`},[GA,dd])])]);return Jr&&($A=Jr($A)),De("div",{class:`${Dt}-panel-container`,style:{marginLeft:`${ue.value}px`},ref:c,onMousedown:Xo=>{Xo.preventDefault()}},[$A])}const Zl=De("div",{class:Vn(`${Dt}-range-wrapper`,`${Dt}-${$r}-range-wrapper`),style:{minWidth:`${Pe.value}px`}},[De("div",{ref:m,class:`${Dt}-range-arrow`,style:uu},null),Ya()]);let qc;oi&&(qc=De("span",{class:`${Dt}-suffix`},[oi]));let Ic;vi&&(bu(M.value,0)&&!F.value[0]||bu(M.value,1)&&!F.value[1])&&(Ic=De("span",{onMousedown:ns=>{ns.preventDefault(),ns.stopPropagation()},onMouseup:ns=>{ns.preventDefault(),ns.stopPropagation();let GA=M.value;F.value[0]||(GA=uy(GA,null,0)),F.value[1]||(GA=uy(GA,null,1)),st(GA,null),tt(!1,C.value)},class:`${Dt}-clear`},[ma||De("span",{class:`${Dt}-clear-btn`},null)]));const as={size:Jst($r,b.value[0],bn)};let Yo=0,zo=0;A.value&&f.value&&h.value&&(C.value===0?zo=A.value.offsetWidth:(Yo=Ke.value,zo=f.value.offsetWidth));const yl=Ms==="rtl"?{right:`${Yo}px`}:{left:`${Yo}px`};return De("div",Ot({ref:u,class:Vn(Dt,`${Dt}-range`,r.class,{[`${Dt}-disabled`]:F.value[0]&&F.value[1],[`${Dt}-focused`]:C.value===0?Wa.value:ci.value,[`${Dt}-rtl`]:Ms==="rtl"}),style:r.style,onClick:oo,onMouseenter:gi,onMouseleave:ka,onMousedown:Ft,onMouseup:xi},ilt(e)),[De("div",{class:Vn(`${Dt}-input`,{[`${Dt}-input-active`]:C.value===0,[`${Dt}-input-placeholder`]:!!ur.value}),ref:A},[De("input",Ot(Ot(Ot({id:Pt,disabled:F.value[0],readonly:rs||typeof b.value[0]=="function"||!$i.value,value:ur.value||Tt.value,onInput:ns=>{bt(ns.target.value)},autofocus:ca,placeholder:bu(Br,0)||"",ref:g},xa.value),as),{},{autocomplete:Ws}),null)]),De("div",{class:`${Dt}-range-separator`,ref:h},[va]),De("div",{class:Vn(`${Dt}-input`,{[`${Dt}-input-active`]:C.value===1,[`${Dt}-input-placeholder`]:!!Un.value}),ref:f},[De("input",Ot(Ot(Ot({disabled:F.value[1],readonly:rs||typeof b.value[0]=="function"||!Ni.value,value:Un.value||cr.value,onInput:ns=>{Gt(ns.target.value)},placeholder:bu(Br,1)||"",ref:p},Ji.value),as),{},{autocomplete:Ws}),null)]),De("div",{class:`${Dt}-active-bar`,style:$e($e({},yl),{width:`${zo}px`,position:"absolute"})},null),qc,Ic,De(clt,{visible:Ae.value,popupStyle:Vt,prefixCls:Dt,dropdownClassName:Ar,dropdownAlign:Kr,getPopupContainer:xn,transitionName:pn,range:!0,direction:Ms},{default:()=>[De("div",{style:{pointerEvents:"none",position:"absolute",top:0,bottom:0,left:0,right:0}},null)],popupElement:()=>Zl})])}}})}const SUt=xUt();var kUt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);ie.checked,()=>{a.value=e.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=Hn(),l=c=>{if(e.disabled)return;e.checked===void 0&&(a.value=c.target.checked),c.shiftKey=s.value;const A={target:$e($e({},e),{checked:c.target.checked}),stopPropagation(){c.stopPropagation()},preventDefault(){c.preventDefault()},nativeEvent:c};e.checked!==void 0&&(o.value.checked=!!e.checked),n("change",A),s.value=!1},u=c=>{n("click",c),s.value=c.shiftKey};return()=>{const{prefixCls:c,name:A,id:f,type:h,disabled:g,readonly:p,tabindex:m,autofocus:b,value:C,required:E}=e,_=kUt(e,["prefixCls","name","id","type","disabled","readonly","tabindex","autofocus","value","required"]),{class:F,onFocus:M,onBlur:N,onKeydown:P,onKeypress:j,onKeyup:z}=r,W=$e($e({},_),r),Y=Object.keys(W).reduce((ae,se)=>((se.startsWith("data-")||se.startsWith("aria-")||se==="role")&&(ae[se]=W[se]),ae),{}),ee=Vn(c,F,{[`${c}-checked`]:a.value,[`${c}-disabled`]:g}),q=$e($e({name:A,id:f,type:h,readonly:p,disabled:g,tabindex:m,class:`${c}-input`,checked:!!a.value,autofocus:b,value:C},Y),{onChange:l,onClick:u,onFocus:M,onBlur:N,onKeydown:P,onKeypress:j,onKeyup:z,required:E});return De("span",{class:ee},[De("input",Ot({ref:o},q),null),De("span",{class:`${c}-inner`},null)])}}}),plt=Symbol("radioGroupContextKey"),_Ut=e=>{Es(plt,e)},TUt=()=>Wo(plt,void 0),vlt=Symbol("radioOptionTypeContextKey"),DUt=e=>{Es(vlt,e)},FUt=()=>Wo(vlt,void 0),RUt=new vl("antRadioEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),MUt=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-group`;return{[n]:$e($e({},gu(e)),{display:"inline-block",fontSize:0,[`&${n}-rtl`]:{direction:"rtl"},[`${r}-badge ${r}-badge-count`]:{zIndex:1},[`> ${r}-badge:not(:first-child) > ${r}-button-wrapper`]:{borderInlineStart:"none"}})}},OUt=e=>{const{componentCls:t,radioWrapperMarginRight:r,radioCheckedColor:n,radioSize:i,motionDurationSlow:a,motionDurationMid:o,motionEaseInOut:s,motionEaseInOutCirc:l,radioButtonBg:u,colorBorder:c,lineWidth:A,radioDotSize:f,colorBgContainerDisabled:h,colorTextDisabled:g,paddingXS:p,radioDotDisabledColor:m,lineType:b,radioDotDisabledSize:C,wireframe:E,colorWhite:_}=e,F=`${t}-inner`;return{[`${t}-wrapper`]:$e($e({},gu(e)),{position:"relative",display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:r,cursor:"pointer",[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${t}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${A}px ${b} ${n}`,borderRadius:"50%",visibility:"hidden",animationName:RUt,animationDuration:a,animationTimingFunction:s,animationFillMode:"both",content:'""'},[t]:$e($e({},gu(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center"}),[`${t}-wrapper:hover &, &:hover ${F}`]:{borderColor:n},[`${t}-input:focus-visible + ${F}`]:$e({},JE(e)),[`${t}:hover::after, ${t}-wrapper:hover &::after`]:{visibility:"visible"},[`${t}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:i,height:i,marginBlockStart:i/-2,marginInlineStart:i/-2,backgroundColor:E?n:_,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:A,borderRadius:"50%",transition:`all ${o}`},[`${t}-input`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,insetBlockEnd:0,insetInlineStart:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[F]:{borderColor:n,backgroundColor:E?u:n,"&::after":{transform:`scale(${f/i})`,opacity:1,transition:`all ${a} ${l}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[F]:{backgroundColor:h,borderColor:c,cursor:"not-allowed","&::after":{backgroundColor:m}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:g,cursor:"not-allowed"},[`&${t}-checked`]:{[F]:{"&::after":{transform:`scale(${C/i})`}}}},[`span${t} + *`]:{paddingInlineStart:p,paddingInlineEnd:p}})}},NUt=e=>{const{radioButtonColor:t,controlHeight:r,componentCls:n,lineWidth:i,lineType:a,colorBorder:o,motionDurationSlow:s,motionDurationMid:l,radioButtonPaddingHorizontal:u,fontSize:c,radioButtonBg:A,fontSizeLG:f,controlHeightLG:h,controlHeightSM:g,paddingXS:p,borderRadius:m,borderRadiusSM:b,borderRadiusLG:C,radioCheckedColor:E,radioButtonCheckedBg:_,radioButtonHoverColor:F,radioButtonActiveColor:M,radioSolidCheckedColor:N,colorTextDisabled:P,colorBgContainerDisabled:j,radioDisabledButtonCheckedColor:z,radioDisabledButtonCheckedBg:W}=e;return{[`${n}-button-wrapper`]:{position:"relative",display:"inline-block",height:r,margin:0,paddingInline:u,paddingBlock:0,color:t,fontSize:c,lineHeight:`${r-i*2}px`,background:A,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:t},[`> ${n}-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},[`${n}-group-large &`]:{height:h,fontSize:f,lineHeight:`${h-i*2}px`,"&:first-child":{borderStartStartRadius:C,borderEndStartRadius:C},"&:last-child":{borderStartEndRadius:C,borderEndEndRadius:C}},[`${n}-group-small &`]:{height:g,paddingInline:p-i,paddingBlock:0,lineHeight:`${g-i*2}px`,"&:first-child":{borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b}},"&:hover":{position:"relative",color:E},"&:has(:focus-visible)":$e({},JE(e)),[`${n}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${n}-button-wrapper-disabled)`]:{zIndex:1,color:E,background:_,borderColor:E,"&::before":{backgroundColor:E},"&:first-child":{borderColor:E},"&:hover":{color:F,borderColor:F,"&::before":{backgroundColor:F}},"&:active":{color:M,borderColor:M,"&::before":{backgroundColor:M}}},[`${n}-group-solid &-checked:not(${n}-button-wrapper-disabled)`]:{color:N,background:E,borderColor:E,"&:hover":{color:N,background:F,borderColor:F},"&:active":{color:N,background:M,borderColor:M}},"&-disabled":{color:P,backgroundColor:j,borderColor:o,cursor:"not-allowed","&:first-child, &:hover":{color:P,backgroundColor:j,borderColor:o}},[`&-disabled${n}-button-wrapper-checked`]:{color:z,backgroundColor:W,borderColor:o,boxShadow:"none"}}}},mlt=Gu("Radio",e=>{const{padding:t,lineWidth:r,controlItemBgActiveDisabled:n,colorTextDisabled:i,colorBgContainer:a,fontSizeLG:o,controlOutline:s,colorPrimaryHover:l,colorPrimaryActive:u,colorText:c,colorPrimary:A,marginXS:f,controlOutlineWidth:h,colorTextLightSolid:g,wireframe:p}=e,m=`0 0 0 ${h}px ${s}`,b=m,C=o,E=4,_=C-E*2,F=p?_:C-(E+r)*2,M=A,N=c,P=l,j=u,z=t-r,ee=Al(e,{radioFocusShadow:m,radioButtonFocusShadow:b,radioSize:C,radioDotSize:F,radioDotDisabledSize:_,radioCheckedColor:M,radioDotDisabledColor:i,radioSolidCheckedColor:g,radioButtonBg:a,radioButtonCheckedBg:a,radioButtonColor:N,radioButtonHoverColor:P,radioButtonActiveColor:j,radioButtonPaddingHorizontal:z,radioDisabledButtonCheckedBg:n,radioDisabledButtonCheckedColor:i,radioWrapperMarginRight:f});return[MUt(ee),OUt(ee),NUt(ee)]});var LUt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i({prefixCls:String,checked:Pa(),disabled:Pa(),isGroup:Pa(),value:cn.any,name:String,id:String,autofocus:Pa(),onChange:pi(),onFocus:pi(),onBlur:pi(),onClick:pi(),"onUpdate:checked":pi(),"onUpdate:value":pi()}),Gv=$n({compatConfig:{MODE:3},name:"ARadio",inheritAttrs:!1,props:ylt(),setup(e,t){let{emit:r,expose:n,slots:i,attrs:a}=t;const o=im(),s=f1.useInject(),l=FUt(),u=TUt(),c=hC(),A=vt(()=>{var P;return(P=p.value)!==null&&P!==void 0?P:c.value}),f=Hn(),{prefixCls:h,direction:g,disabled:p}=gs("radio",e),m=vt(()=>(u==null?void 0:u.optionType.value)==="button"||l==="button"?`${h.value}-button`:h.value),b=hC(),[C,E]=mlt(h);n({focus:()=>{f.value.focus()},blur:()=>{f.value.blur()}});const M=P=>{const j=P.target.checked;r("update:checked",j),r("update:value",j),r("change",P),o.onFieldChange()},N=P=>{r("change",P),u&&u.onChange&&u.onChange(P)};return()=>{var P;const j=u,{prefixCls:z,id:W=o.id.value}=e,Y=LUt(e,["prefixCls","id"]),ee=$e($e({prefixCls:m.value,id:W},Cc(Y,["onUpdate:checked","onUpdate:value"])),{disabled:(P=p.value)!==null&&P!==void 0?P:b.value});j?(ee.name=j.name.value,ee.onChange=N,ee.checked=e.value===j.value.value,ee.disabled=A.value||j.disabled.value):ee.onChange=M;const q=Vn({[`${m.value}-wrapper`]:!0,[`${m.value}-wrapper-checked`]:ee.checked,[`${m.value}-wrapper-disabled`]:ee.disabled,[`${m.value}-wrapper-rtl`]:g.value==="rtl",[`${m.value}-wrapper-in-form-item`]:s.isFormItemInput},a.class,E.value);return C(De("label",Ot(Ot({},a),{},{class:q}),[De(glt,Ot(Ot({},ee),{},{type:"radio",ref:f}),null),i.default&&De("span",null,[i.default()])]))}}}),PUt=()=>({prefixCls:String,value:cn.any,size:Us(),options:nc(),disabled:Pa(),name:String,buttonStyle:Us("outline"),id:String,optionType:Us("default"),onChange:pi(),"onUpdate:value":pi()}),UUt=$n({compatConfig:{MODE:3},name:"ARadioGroup",inheritAttrs:!1,props:PUt(),setup(e,t){let{slots:r,emit:n,attrs:i}=t;const a=im(),{prefixCls:o,direction:s,size:l}=gs("radio",e),[u,c]=mlt(o),A=Hn(e.value),f=Hn(!1);return di(()=>e.value,g=>{A.value=g,f.value=!1}),_Ut({onChange:g=>{const p=A.value,{value:m}=g.target;"value"in e||(A.value=m),!f.value&&m!==p&&(f.value=!0,n("update:value",m),n("change",g),a.onFieldChange()),il(()=>{f.value=!1})},value:A,disabled:vt(()=>e.disabled),name:vt(()=>e.name),optionType:vt(()=>e.optionType)}),()=>{var g;const{options:p,buttonStyle:m,id:b=a.id.value}=e,C=`${o.value}-group`,E=Vn(C,`${C}-${m}`,{[`${C}-${l.value}`]:l.value,[`${C}-rtl`]:s.value==="rtl"},i.class,c.value);let _=null;return p&&p.length>0?_=p.map(F=>{if(typeof F=="string"||typeof F=="number")return De(Gv,{key:F,prefixCls:o.value,disabled:e.disabled,value:F,checked:A.value===F},{default:()=>[F]});const{value:M,disabled:N,label:P}=F;return De(Gv,{key:`radio-group-value-options-${M}`,prefixCls:o.value,disabled:N||e.disabled,value:M,checked:A.value===M},{default:()=>[P]})}):_=(g=r.default)===null||g===void 0?void 0:g.call(r),u(De("div",Ot(Ot({},i),{},{class:E,id:b}),[_]))}}}),HUt=$n({compatConfig:{MODE:3},name:"ARadioButton",inheritAttrs:!1,props:ylt(),setup(e,t){let{slots:r,attrs:n}=t;const{prefixCls:i}=gs("radio",e);return DUt("button"),()=>{var a;return De(Gv,Ot(Ot(Ot({},n),e),{},{prefixCls:i.value}),{default:()=>[(a=r.default)===null||a===void 0?void 0:a.call(r)]})}}});Gv.Group=UUt;Gv.Button=HUt;Gv.install=function(e){return e.component(Gv.name,Gv),e.component(Gv.Group.name,Gv.Group),e.component(Gv.Button.name,Gv.Button),e};const blt=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),V7=e=>({borderColor:e.inputBorderHoverColor,borderInlineEndWidth:e.lineWidth}),I6=e=>({borderColor:e.inputBorderHoverColor,boxShadow:`0 0 0 ${e.controlOutlineWidth}px ${e.controlOutline}`,borderInlineEndWidth:e.lineWidth,outline:0}),wlt=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":$e({},V7(Al(e,{inputBorderHoverColor:e.colorBorder})))}),Clt=e=>{const{inputPaddingVerticalLG:t,fontSizeLG:r,lineHeightLG:n,borderRadiusLG:i,inputPaddingHorizontalLG:a}=e;return{padding:`${t}px ${a}px`,fontSize:r,lineHeight:n,borderRadius:i}},UBe=e=>({padding:`${e.inputPaddingVerticalSM}px ${e.controlPaddingHorizontalSM-1}px`,borderRadius:e.borderRadiusSM}),TJ=(e,t)=>{const{componentCls:r,colorError:n,colorWarning:i,colorErrorOutline:a,colorWarningOutline:o,colorErrorBorderHover:s,colorWarningBorderHover:l}=e;return{[`&-status-error:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:n,"&:hover":{borderColor:s},"&:focus, &-focused":$e({},I6(Al(e,{inputBorderActiveColor:n,inputBorderHoverColor:n,controlOutline:a}))),[`${r}-prefix`]:{color:n}},[`&-status-warning:not(${t}-disabled):not(${t}-borderless)${t}`]:{borderColor:i,"&:hover":{borderColor:l},"&:focus, &-focused":$e({},I6(Al(e,{inputBorderActiveColor:i,inputBorderHoverColor:i,controlOutline:o}))),[`${r}-prefix`]:{color:i}}}},W7=e=>$e($e({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${e.inputPaddingVertical}px ${e.inputPaddingHorizontal}px`,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,backgroundColor:e.colorBgContainer,backgroundImage:"none",borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:e.colorBorder,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},blt(e.colorTextPlaceholder)),{"&:hover":$e({},V7(e)),"&:focus, &-focused":$e({},I6(e)),"&-disabled, &[disabled]":$e({},wlt(e)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":$e({},Clt(e)),"&-sm":$e({},UBe(e)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),Ilt=e=>{const{componentCls:t,antCls:r}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:$e({},Clt(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:$e({},UBe(e)),[`&-lg ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${r}-select-single ${r}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-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 ${e.inputPaddingHorizontal}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,textAlign:"center",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${r}-select`]:{margin:`-${e.inputPaddingVertical+1}px -${e.inputPaddingHorizontal}px`,[`&${r}-select-single:not(${r}-select-customize-input)`]:{[`${r}-select-selector`]:{backgroundColor:"inherit",border:`${e.lineWidth}px ${e.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${r}-select-selector`]:{color:e.colorPrimary}}},[`${r}-cascader-picker`]:{margin:`-9px -${e.inputPaddingHorizontal}px`,backgroundColor:"transparent",[`${r}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${t}`]:{float:"inline-start",width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${r}-select ${r}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:$e($e({display:"block"},y6()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`& > ${t}-affix-wrapper`]:{display:"inline-flex"},[`& > ${r}-picker-range`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-e.lineWidth,borderInlineEndWidth:e.lineWidth},[`${t}`]:{float:"none"},[`& > ${r}-select > ${r}-select-selector, & > ${r}-select-auto-complete ${t}, & > ${r}-cascader-picker ${t}, & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${r}-select-focused`]:{zIndex:1},[`& > ${r}-select > ${r}-select-arrow`]:{zIndex:1},[`& > *:first-child, & > ${r}-select:first-child > ${r}-select-selector, & > ${r}-select-auto-complete:first-child ${t}, & > ${r}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child, & > ${r}-select:last-child > ${r}-select-selector, & > ${r}-cascader-picker:last-child ${t}, & > ${r}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${r}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:-e.lineWidth,[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},jUt=e=>{const{componentCls:t,controlHeightSM:r,lineWidth:n}=e,a=(r-n*2-16)/2;return{[t]:$e($e($e($e({},gu(e)),W7(e)),TJ(e,t)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:r,paddingTop:a,paddingBottom:a}}})}},GUt=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextTertiary},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${e.inputAffixPadding}px`}},"&-textarea-with-clear-btn":{padding:"0 !important",border:"0 !important",[`${t}-clear-icon`]:{position:"absolute",insetBlockStart:e.paddingXS,insetInlineEnd:e.paddingXS,zIndex:1}}}},$Ut=e=>{const{componentCls:t,inputAffixPadding:r,colorTextDescription:n,motionDurationSlow:i,colorIcon:a,colorIconHover:o,iconCls:s}=e;return{[`${t}-affix-wrapper`]:$e($e($e($e($e({},W7(e)),{display:"inline-flex",[`&:not(${t}-affix-wrapper-disabled):hover`]:$e($e({},V7(e)),{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> input${t}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&:focus":{boxShadow:"none !important"}},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:n},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:r},"&-suffix":{marginInlineStart:r}}}),GUt(e)),{[`${s}${t}-password-icon`]:{color:a,cursor:"pointer",transition:`all ${i}`,"&:hover":{color:o}}}),TJ(e,`${t}-affix-wrapper`))}},zUt=e=>{const{componentCls:t,colorError:r,colorSuccess:n,borderRadiusLG:i,borderRadiusSM:a}=e;return{[`${t}-group`]:$e($e($e({},gu(e)),Ilt(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:i}},"&-sm":{[`${t}-group-addon`]:{borderRadius:a}},"&-status-error":{[`${t}-group-addon`]:{color:r,borderColor:r}},"&-status-warning":{[`${t}-group-addon:last-child`]:{color:n,borderColor:n}}}})}},KUt=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-search`;return{[n]:{[`${t}`]:{"&:hover, &:focus":{borderColor:e.colorPrimaryHover,[`+ ${t}-group-addon ${n}-button:not(${r}-btn-primary)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{borderRadius:0},[`${t}-lg`]:{lineHeight:e.lineHeightLG-2e-4},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${n}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius,borderEndStartRadius:0},[`${n}-button:not(${r}-btn-primary)`]:{color:e.colorTextDescription,"&:hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${r}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${n}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${n}-button`]:{height:e.controlHeightLG},[`&-small ${n}-button`]:{height:e.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:-e.lineWidth,borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button, > ${t}, ${t}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}};function DJ(e){return Al(e,{inputAffixPadding:e.paddingXXS,inputPaddingVertical:Math.max(Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,3),inputPaddingVerticalLG:Math.ceil((e.controlHeightLG-e.fontSizeLG*e.lineHeightLG)/2*10)/10-e.lineWidth,inputPaddingVerticalSM:Math.max(Math.round((e.controlHeightSM-e.fontSize*e.lineHeight)/2*10)/10-e.lineWidth,0),inputPaddingHorizontal:e.paddingSM-e.lineWidth,inputPaddingHorizontalSM:e.paddingXS-e.lineWidth,inputPaddingHorizontalLG:e.controlPaddingHorizontal-e.lineWidth,inputBorderHoverColor:e.colorPrimaryHover,inputBorderActiveColor:e.colorPrimaryHover})}const VUt=e=>{const{componentCls:t,inputPaddingHorizontal:r,paddingLG:n}=e,i=`${t}-textarea`;return{[i]:{position:"relative",[`${i}-suffix`]:{position:"absolute",top:0,insetInlineEnd:r,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`]:{[`${t}`]:{paddingInlineEnd:n}}},"&-show-count":{[`> ${t}`]:{height:"100%"},"&::after":{color:e.colorTextDescription,whiteSpace:"nowrap",content:"attr(data-count)",pointerEvents:"none",float:"right"}},"&-rtl":{"&::after":{float:"left"}}}}},HBe=Gu("Input",e=>{const t=DJ(e);return[jUt(t),VUt(t),$Ut(t),zUt(t),KUt(t),EL(t)]}),Jae=(e,t,r,n)=>{const{lineHeight:i}=e,a=Math.floor(r*i)+2,o=Math.max((t-a)/2,0),s=Math.max(t-a-o,0);return{padding:`${o}px ${n}px ${s}px`}},WUt=e=>{const{componentCls:t,pickerCellCls:r,pickerCellInnerCls:n,pickerPanelCellHeight:i,motionDurationSlow:a,borderRadiusSM:o,motionDurationMid:s,controlItemBgHover:l,lineWidth:u,lineType:c,colorPrimary:A,controlItemBgActive:f,colorTextLightSolid:h,controlHeightSM:g,pickerDateHoverRangeBorderColor:p,pickerCellBorderGap:m,pickerBasicCellHoverWithRangeColor:b,pickerPanelCellWidth:C,colorTextDisabled:E,colorBgContainerDisabled:_}=e;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:i,transform:"translateY(-50%)",transition:`all ${a}`,content:'""'},[n]:{position:"relative",zIndex:2,display:"inline-block",minWidth:i,height:i,lineHeight:`${i}px`,borderRadius:o,transition:`background ${s}, border ${s}`},[`&:hover:not(${r}-in-view), &:hover:not(${r}-selected):not(${r}-range-start):not(${r}-range-end):not(${r}-range-hover-start):not(${r}-range-hover-end)`]:{[n]:{background:l}},[`&-in-view${r}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${u}px ${c} ${A}`,borderRadius:o,content:'""'}},[`&-in-view${r}-in-range`]:{position:"relative","&::before":{background:f}},[`&-in-view${r}-selected ${n}, &-in-view${r}-range-start ${n}, &-in-view${r}-range-end ${n}`]:{color:h,background:A},[`&-in-view${r}-range-start:not(${r}-range-start-single), &-in-view${r}-range-end:not(${r}-range-end-single)`]:{"&::before":{background:f}},[`&-in-view${r}-range-start::before`]:{insetInlineStart:"50%"},[`&-in-view${r}-range-end::before`]:{insetInlineEnd:"50%"},[`&-in-view${r}-range-hover-start:not(${r}-in-range):not(${r}-range-start):not(${r}-range-end), &-in-view${r}-range-hover-end:not(${r}-in-range):not(${r}-range-start):not(${r}-range-end), &-in-view${r}-range-hover-start${r}-range-start-single, &-in-view${r}-range-hover-start${r}-range-start${r}-range-end${r}-range-end-near-hover, &-in-view${r}-range-hover-end${r}-range-start${r}-range-end${r}-range-start-near-hover, &-in-view${r}-range-hover-end${r}-range-end-single, &-in-view${r}-range-hover:not(${r}-in-range)`]:{"&::after":{position:"absolute",top:"50%",zIndex:0,height:g,borderTop:`${u}px dashed ${p}`,borderBottom:`${u}px dashed ${p}`,transform:"translateY(-50%)",transition:`all ${a}`,content:'""'}},"&-range-hover-start::after,\n &-range-hover-end::after,\n &-range-hover::after":{insetInlineEnd:0,insetInlineStart:m},[`&-in-view${r}-in-range${r}-range-hover::before, &-in-view${r}-range-start${r}-range-hover::before, &-in-view${r}-range-end${r}-range-hover::before, &-in-view${r}-range-start:not(${r}-range-start-single)${r}-range-hover-start::before, &-in-view${r}-range-end:not(${r}-range-end-single)${r}-range-hover-end::before, ${t}-panel > :not(${t}-date-panel) &-in-view${r}-in-range${r}-range-hover-start::before, ${t}-panel > :not(${t}-date-panel) &-in-view${r}-in-range${r}-range-hover-end::before`]:{background:b},[`&-in-view${r}-range-start:not(${r}-range-start-single):not(${r}-range-end) ${n}`]:{borderStartStartRadius:o,borderEndStartRadius:o,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${r}-range-end:not(${r}-range-end-single):not(${r}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o},[`&-range-hover${r}-range-end::after`]:{insetInlineStart:"50%"},[`tr > &-in-view${r}-range-hover:first-child::after, tr > &-in-view${r}-range-hover-end:first-child::after, &-in-view${r}-start${r}-range-hover-edge-start${r}-range-hover-edge-start-near-range::after, &-in-view${r}-range-hover-edge-start:not(${r}-range-hover-edge-start-near-range)::after, &-in-view${r}-range-hover-start::after`]:{insetInlineStart:(C-i)/2,borderInlineStart:`${u}px dashed ${p}`,borderStartStartRadius:u,borderEndStartRadius:u},[`tr > &-in-view${r}-range-hover:last-child::after, tr > &-in-view${r}-range-hover-start:last-child::after, &-in-view${r}-end${r}-range-hover-edge-end${r}-range-hover-edge-end-near-range::after, &-in-view${r}-range-hover-edge-end:not(${r}-range-hover-edge-end-near-range)::after, &-in-view${r}-range-hover-end::after`]:{insetInlineEnd:(C-i)/2,borderInlineEnd:`${u}px dashed ${p}`,borderStartEndRadius:u,borderEndEndRadius:u},"&-disabled":{color:E,pointerEvents:"none",[n]:{background:"transparent"},"&::before":{background:_}},[`&-disabled${r}-today ${n}::before`]:{borderColor:E}}},YUt=e=>{const{componentCls:t,pickerCellInnerCls:r,pickerYearMonthCellWidth:n,pickerControlIconSize:i,pickerPanelCellWidth:a,paddingSM:o,paddingXS:s,paddingXXS:l,colorBgContainer:u,lineWidth:c,lineType:A,borderRadiusLG:f,colorPrimary:h,colorTextHeading:g,colorSplit:p,pickerControlIconBorderWidth:m,colorIcon:b,pickerTextHeight:C,motionDurationMid:E,colorIconHover:_,fontWeightStrong:F,pickerPanelCellHeight:M,pickerCellPaddingVertical:N,colorTextDisabled:P,colorText:j,fontSize:z,pickerBasicCellHoverWithRangeColor:W,motionDurationSlow:Y,pickerPanelWithoutTimeCellHeight:ee,pickerQuarterPanelContentHeight:q,colorLink:ae,colorLinkActive:se,colorLinkHover:de,pickerDateHoverRangeBorderColor:Ae,borderRadiusSM:be,colorTextLightSolid:Le,borderRadius:Ne,controlItemBgHover:ue,pickerTimePanelColumnHeight:Ke,pickerTimePanelColumnWidth:Pe,pickerTimePanelCellHeight:je,controlItemBgActive:Ye,marginXXS:me}=e,Se=a*7+o*2+4,et=(Se-s*2)/3-n-o;return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:u,border:`${c}px ${A} ${p}`,borderRadius:f,outline:"none","&-focused":{borderColor:h},"&-rtl":{direction:"rtl",[`${t}-prev-icon, ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon, ${t}-super-next-icon`]:{transform:"rotate(-135deg)"}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:Se},"&-header":{display:"flex",padding:`0 ${s}px`,color:g,borderBottom:`${c}px ${A} ${p}`,"> *":{flex:"none"},button:{padding:0,color:b,lineHeight:`${C}px`,background:"transparent",border:0,cursor:"pointer",transition:`color ${E}`},"> button":{minWidth:"1.6em",fontSize:z,"&:hover":{color:_}},"&-view":{flex:"auto",fontWeight:F,lineHeight:`${C}px`,button:{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:s},"&:hover":{color:h}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",display:"inline-block",width:i,height:i,"&::before":{position:"absolute",top:0,insetInlineStart:0,display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderBlockStartWidth:m,borderBlockEndWidth:0,borderInlineStartWidth:m,borderInlineEndWidth:0,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:Math.ceil(i/2),insetInlineStart:Math.ceil(i/2),display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderBlockStartWidth:m,borderBlockEndWidth:0,borderInlineStartWidth:m,borderInlineEndWidth:0,content:'""'}},"&-prev-icon,\n &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon,\n &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:M,fontWeight:"normal"},th:{height:M+N*2,color:j,verticalAlign:"middle"}},"&-cell":$e({padding:`${N}px 0`,color:P,cursor:"pointer","&-in-view":{color:j}},WUt(e)),[`&-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-start ${r}, &-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-end ${r}`]:{"&::after":{position:"absolute",top:0,bottom:0,zIndex:-1,background:W,transition:`all ${Y}`,content:'""'}},[`&-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-start ${r}::after`]:{insetInlineEnd:-(a-M)/2,insetInlineStart:0},[`&-date-panel ${t}-cell-in-view${t}-cell-in-range${t}-cell-range-hover-end ${r}::after`]:{insetInlineEnd:0,insetInlineStart:-(a-M)/2},[`&-range-hover${t}-range-start::after`]:{insetInlineEnd:"50%"},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-content`]:{height:ee*4},[r]:{padding:`0 ${s}px`}},"&-quarter-panel":{[`${t}-content`]:{height:q}},[`&-panel ${t}-footer`]:{borderTop:`${c}px ${A} ${p}`},"&-footer":{width:"min-content",minWidth:"100%",lineHeight:`${C-2*c}px`,textAlign:"center","&-extra":{padding:`0 ${o}`,lineHeight:`${C-2*c}px`,textAlign:"start","&:not(:last-child)":{borderBottom:`${c}px ${A} ${p}`}}},"&-now":{textAlign:"start"},"&-today-btn":{color:ae,"&:hover":{color:de},"&:active":{color:se},[`&${t}-today-btn-disabled`]:{color:P,cursor:"not-allowed"}},"&-decade-panel":{[r]:{padding:`0 ${s/2}px`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${t}-body`]:{padding:`0 ${s}px`},[r]:{width:n},[`${t}-cell-range-hover-start::after`]:{insetInlineStart:et,borderInlineStart:`${c}px dashed ${Ae}`,borderStartStartRadius:be,borderBottomStartRadius:be,borderStartEndRadius:0,borderBottomEndRadius:0,[`${t}-panel-rtl &`]:{insetInlineEnd:et,borderInlineEnd:`${c}px dashed ${Ae}`,borderStartStartRadius:0,borderBottomStartRadius:0,borderStartEndRadius:be,borderBottomEndRadius:be}},[`${t}-cell-range-hover-end::after`]:{insetInlineEnd:et,borderInlineEnd:`${c}px dashed ${Ae}`,borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:Ne,borderEndEndRadius:Ne,[`${t}-panel-rtl &`]:{insetInlineStart:et,borderInlineStart:`${c}px dashed ${Ae}`,borderStartStartRadius:Ne,borderEndStartRadius:Ne,borderStartEndRadius:0,borderEndEndRadius:0}}},"&-week-panel":{[`${t}-body`]:{padding:`${s}px ${o}px`},[`${t}-cell`]:{[`&:hover ${r}, &-selected ${r}, ${r}`]:{background:"transparent !important"}},"&-row":{td:{transition:`background ${E}`,"&:first-child":{borderStartStartRadius:be,borderEndStartRadius:be},"&:last-child":{borderStartEndRadius:be,borderEndEndRadius:be}},"&:hover td":{background:ue},"&-selected td,\n &-selected:hover td":{background:h,[`&${t}-cell-week`]:{color:new Rc(Le).setAlpha(.5).toHexString()},[`&${t}-cell-today ${r}::before`]:{borderColor:Le},[r]:{color:Le}}}},"&-date-panel":{[`${t}-body`]:{padding:`${s}px ${o}px`},[`${t}-content`]:{width:a*7,th:{width:a}}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${c}px ${A} ${p}`},[`${t}-date-panel, ${t}-time-panel`]:{transition:`opacity ${Y}`},"&-active":{[`${t}-date-panel, ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",direction:"ltr",[`${t}-content`]:{display:"flex",flex:"auto",height:Ke},"&-column":{flex:"1 0 auto",width:Pe,margin:`${l}px 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${E}`,overflowX:"hidden","&::after":{display:"block",height:Ke-je,content:'""'},"&:not(:first-child)":{borderInlineStart:`${c}px ${A} ${p}`},"&-active":{background:new Rc(Ye).setAlpha(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:me,[`${t}-time-panel-cell-inner`]:{display:"block",width:Pe-2*me,height:je,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:(Pe-je)/2,color:j,lineHeight:`${je}px`,borderRadius:be,cursor:"pointer",transition:`background ${E}`,"&:hover":{background:ue}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:Ye}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:P,background:"transparent",cursor:"not-allowed"}}}}}},[`&-datetime-panel ${t}-time-panel-column:after`]:{height:Ke-je+l*2}}}},qUt=e=>{const{componentCls:t,colorBgContainer:r,colorError:n,colorErrorOutline:i,colorWarning:a,colorWarningOutline:o}=e;return{[t]:{[`&-status-error${t}`]:{"&, &:not([disabled]):hover":{backgroundColor:r,borderColor:n},"&-focused, &:focus":$e({},I6(Al(e,{inputBorderActiveColor:n,inputBorderHoverColor:n,controlOutline:i}))),[`${t}-active-bar`]:{background:n}},[`&-status-warning${t}`]:{"&, &:not([disabled]):hover":{backgroundColor:r,borderColor:a},"&-focused, &:focus":$e({},I6(Al(e,{inputBorderActiveColor:a,inputBorderHoverColor:a,controlOutline:o}))),[`${t}-active-bar`]:{background:a}}}}},JUt=e=>{const{componentCls:t,antCls:r,boxShadowPopoverArrow:n,controlHeight:i,fontSize:a,inputPaddingHorizontal:o,colorBgContainer:s,lineWidth:l,lineType:u,colorBorder:c,borderRadius:A,motionDurationMid:f,colorBgContainerDisabled:h,colorTextDisabled:g,colorTextPlaceholder:p,controlHeightLG:m,fontSizeLG:b,controlHeightSM:C,inputPaddingHorizontalSM:E,paddingXS:_,marginXS:F,colorTextDescription:M,lineWidthBold:N,lineHeight:P,colorPrimary:j,motionDurationSlow:z,zIndexPopup:W,paddingXXS:Y,paddingSM:ee,pickerTextHeight:q,controlItemBgActive:ae,colorPrimaryBorder:se,sizePopupArrow:de,borderRadiusXS:Ae,borderRadiusOuter:be,colorBgElevated:Le,borderRadiusLG:Ne,boxShadowSecondary:ue,borderRadiusSM:Ke,colorSplit:Pe,controlItemBgHover:je,presetsWidth:Ye,presetsMaxWidth:me}=e;return[{[t]:$e($e($e({},gu(e)),Jae(e,i,a,o)),{position:"relative",display:"inline-flex",alignItems:"center",background:s,lineHeight:1,border:`${l}px ${u} ${c}`,borderRadius:A,transition:`border ${f}, box-shadow ${f}`,"&:hover, &-focused":$e({},V7(e)),"&-focused":$e({},I6(e)),[`&${t}-disabled`]:{background:h,borderColor:c,cursor:"not-allowed",[`${t}-suffix`]:{color:g}},[`&${t}-borderless`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":$e($e({},W7(e)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,"&:focus":{boxShadow:"none"},"&[disabled]":{background:"transparent"}}),"&:hover":{[`${t}-clear`]:{opacity:1}},"&-placeholder":{"> input":{color:p}}},"&-large":$e($e({},Jae(e,m,b,o)),{[`${t}-input > input`]:{fontSize:b}}),"&-small":$e({},Jae(e,C,a,E)),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:_/2,color:g,lineHeight:1,pointerEvents:"none","> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:F}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:g,lineHeight:1,background:s,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${f}, color ${f}`,"> *":{verticalAlign:"top"},"&:hover":{color:M}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:b,color:g,fontSize:b,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:M},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-clear`]:{insetInlineEnd:o},"&:hover":{[`${t}-clear`]:{opacity:1}},[`${t}-active-bar`]:{bottom:-l,height:N,marginInlineStart:o,background:j,opacity:0,transition:`all ${z} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${_}px`,lineHeight:1},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:E},[`${t}-active-bar`]:{marginInlineStart:E}}},"&-dropdown":$e($e($e({},gu(e)),YUt(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:W,[`&${t}-dropdown-hidden`]:{display:"none"},[`&${t}-dropdown-placement-bottomLeft`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${r}-slide-up-enter${r}-slide-up-enter-active${t}-dropdown-placement-topLeft, &${r}-slide-up-enter${r}-slide-up-enter-active${t}-dropdown-placement-topRight, &${r}-slide-up-appear${r}-slide-up-appear-active${t}-dropdown-placement-topLeft, &${r}-slide-up-appear${r}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:IJ},[`&${r}-slide-up-enter${r}-slide-up-enter-active${t}-dropdown-placement-bottomLeft, &${r}-slide-up-enter${r}-slide-up-enter-active${t}-dropdown-placement-bottomRight, &${r}-slide-up-appear${r}-slide-up-appear-active${t}-dropdown-placement-bottomLeft, &${r}-slide-up-appear${r}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:wJ},[`&${r}-slide-up-leave${r}-slide-up-leave-active${t}-dropdown-placement-topLeft, &${r}-slide-up-leave${r}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:EJ},[`&${r}-slide-up-leave${r}-slide-up-leave-active${t}-dropdown-placement-bottomLeft, &${r}-slide-up-leave${r}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:CJ},[`${t}-panel > ${t}-time-panel`]:{paddingTop:Y},[`${t}-ranges`]:{marginBottom:0,padding:`${Y}px ${ee}px`,overflow:"hidden",lineHeight:`${q-2*l-_/2}px`,textAlign:"start",listStyle:"none",display:"flex",justifyContent:"space-between","> li":{display:"inline-block"},[`${t}-preset > ${r}-tag-blue`]:{color:j,background:ae,borderColor:se,cursor:"pointer"},[`${t}-ok`]:{marginInlineStart:"auto"}},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:$e({position:"absolute",zIndex:1,display:"none",marginInlineStart:o*1.5,transition:`left ${z} ease-out`},xEe(de,Ae,be,Le,n)),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:Le,borderRadius:Ne,boxShadow:ue,transition:`margin ${z}`,[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:Ye,maxWidth:me,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:_,borderInlineEnd:`${l}px ${u} ${Pe}`,li:$e($e({},qE),{borderRadius:Ke,paddingInline:_,paddingBlock:(C-Math.round(a*P))/2,cursor:"pointer",transition:`all ${z}`,"+ li":{marginTop:F},"&:hover":{background:je}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap",direction:"ltr",[`${t}-panel`]:{borderWidth:`0 0 ${l}px`},"&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:c}}}}),"&-dropdown-range":{padding:`${de*2/3}px 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"rotate(180deg)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},pC(e,"slide-up"),pC(e,"slide-down"),K9(e,"move-up"),K9(e,"move-down")]},XUt=e=>{const{componentCls:r,controlHeightLG:n,controlHeightSM:i,colorPrimary:a,paddingXXS:o}=e;return{pickerCellCls:`${r}-cell`,pickerCellInnerCls:`${r}-cell-inner`,pickerTextHeight:n,pickerPanelCellWidth:i*1.5,pickerPanelCellHeight:i,pickerDateHoverRangeBorderColor:new Rc(a).lighten(20).toHexString(),pickerBasicCellHoverWithRangeColor:new Rc(a).lighten(35).toHexString(),pickerPanelWithoutTimeCellHeight:n*1.65,pickerYearMonthCellWidth:n*1.5,pickerTimePanelColumnHeight:28*8,pickerTimePanelColumnWidth:n*1.4,pickerTimePanelCellHeight:28,pickerQuarterPanelContentHeight:n*1.4,pickerCellPaddingVertical:o,pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconBorderWidth:1.5}},Elt=Gu("DatePicker",e=>{const t=Al(DJ(e),XUt(e));return[JUt(t),qUt(t),EL(e,{focusElCls:`${e.componentCls}-focused`})]},e=>({presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}));function ZUt(e){const t=sn(),r=sn(!1);function n(){for(var i=arguments.length,a=new Array(i),o=0;o{e(...a)}))}return el(()=>{r.value=!0,ms.cancel(t.value)}),n}function eHt(e){const t=sn([]),r=sn(typeof e=="function"?e():e),n=ZUt(()=>{let a=r.value;t.value.forEach(o=>{a=o(a)}),t.value=[],r.value=a});function i(a){t.value.push(a),n()}return[r,i]}const tHt=$n({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(e,t){let{expose:r,attrs:n}=t;const i=Hn();function a(l){var u;!((u=e.tab)===null||u===void 0)&&u.disabled||e.onClick(l)}r({domRef:i});function o(l){var u;l.preventDefault(),l.stopPropagation(),e.editable.onEdit("remove",{key:(u=e.tab)===null||u===void 0?void 0:u.key,event:l})}const s=vt(()=>{var l;return e.editable&&e.closable!==!1&&!(!((l=e.tab)===null||l===void 0)&&l.disabled)});return()=>{var l;const{prefixCls:u,id:c,active:A,tab:{key:f,tab:h,disabled:g,closeIcon:p},renderWrapper:m,removeAriaLabel:b,editable:C,onFocus:E}=e,_=`${u}-tab`,F=De("div",{key:f,ref:i,class:Vn(_,{[`${_}-with-remove`]:s.value,[`${_}-active`]:A,[`${_}-disabled`]:g}),style:n.style,onClick:a},[De("div",{role:"tab","aria-selected":A,id:c&&`${c}-tab-${f}`,class:`${_}-btn`,"aria-controls":c&&`${c}-panel-${f}`,"aria-disabled":g,tabindex:g?null:0,onClick:M=>{M.stopPropagation(),a(M)},onKeydown:M=>{[yi.SPACE,yi.ENTER].includes(M.which)&&(M.preventDefault(),a(M))},onFocus:E},[typeof h=="function"?h():h]),s.value&&De("button",{type:"button","aria-label":b||"remove",tabindex:0,class:`${_}-remove`,onClick:M=>{M.stopPropagation(),o(M)}},[(p==null?void 0:p())||((l=C.removeIcon)===null||l===void 0?void 0:l.call(C))||"×"])]);return m?m(F):F}}}),a7e={width:0,height:0,left:0,top:0};function rHt(e,t){const r=Hn(new Map);return ks(()=>{var n,i;const a=new Map,o=e.value,s=t.value.get((n=o[0])===null||n===void 0?void 0:n.key)||a7e,l=s.left+s.width;for(let u=0;u{const{prefixCls:a,editable:o,locale:s}=e;return!o||o.showAdd===!1?null:De("button",{ref:i,type:"button",class:`${a}-nav-add`,style:n.style,"aria-label":(s==null?void 0:s.addAriaLabel)||"Add tab",onClick:l=>{o.onEdit("add",{event:l})}},[o.addIcon?o.addIcon():"+"])}}}),nHt={prefixCls:{type:String},id:{type:String},tabs:{type:Object},rtl:{type:Boolean},tabBarGutter:{type:Number},activeKey:{type:[String,Number]},mobile:{type:Boolean},moreIcon:cn.any,moreTransitionName:{type:String},editable:{type:Object},locale:{type:Object,default:void 0},removeAriaLabel:String,onTabClick:{type:Function},popupClassName:String,getPopupContainer:pi()},iHt=$n({compatConfig:{MODE:3},name:"OperationNode",inheritAttrs:!1,props:nHt,emits:["tabClick"],slots:Object,setup(e,t){let{attrs:r,slots:n}=t;const[i,a]=Hu(!1),[o,s]=Hu(null),l=h=>{const g=e.tabs.filter(b=>!b.disabled);let p=g.findIndex(b=>b.key===o.value)||0;const m=g.length;for(let b=0;b{const{which:g}=h;if(!i.value){[yi.DOWN,yi.SPACE,yi.ENTER].includes(g)&&(a(!0),h.preventDefault());return}switch(g){case yi.UP:l(-1),h.preventDefault();break;case yi.DOWN:l(1),h.preventDefault();break;case yi.ESC:a(!1);break;case yi.SPACE:case yi.ENTER:o.value!==null&&e.onTabClick(o.value,h);break}},c=vt(()=>`${e.id}-more-popup`),A=vt(()=>o.value!==null?`${c.value}-${o.value}`:null),f=(h,g)=>{h.preventDefault(),h.stopPropagation(),e.editable.onEdit("remove",{key:g,event:h})};return Is(()=>{di(o,()=>{const h=document.getElementById(A.value);h&&h.scrollIntoView&&h.scrollIntoView(!1)},{flush:"post",immediate:!0})}),di(i,()=>{i.value||s(null)}),Rst({}),()=>{var h;const{prefixCls:g,id:p,tabs:m,locale:b,mobile:C,moreIcon:E=((h=n.moreIcon)===null||h===void 0?void 0:h.call(n))||De(xL,null,null),moreTransitionName:_,editable:F,tabBarGutter:M,rtl:N,onTabClick:P,popupClassName:j}=e,z=`${g}-dropdown`,W=b==null?void 0:b.dropdownAriaLabel,Y={[N?"marginRight":"marginLeft"]:M};m.length||(Y.visibility="hidden",Y.order=1);const ee=Vn({[`${z}-rtl`]:N,[`${j}`]:!0}),q=C?null:De(Ist,{prefixCls:z,trigger:["hover"],visible:i.value,transitionName:_,onVisibleChange:a,overlayClassName:ee,mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:e.getPopupContainer},{overlay:()=>De(i1,{onClick:ae=>{let{key:se,domEvent:de}=ae;P(se,de),a(!1)},id:c.value,tabindex:-1,role:"listbox","aria-activedescendant":A.value,selectedKeys:[o.value],"aria-label":W!==void 0?W:"expanded dropdown"},{default:()=>[m.map(ae=>{var se,de;const Ae=F&&ae.closable!==!1&&!ae.disabled;return De(V9,{key:ae.key,id:`${c.value}-${ae.key}`,role:"option","aria-controls":p&&`${p}-panel-${ae.key}`,disabled:ae.disabled},{default:()=>[De("span",null,[typeof ae.tab=="function"?ae.tab():ae.tab]),Ae&&De("button",{type:"button","aria-label":e.removeAriaLabel||"remove",tabindex:0,class:`${z}-menu-item-remove`,onClick:be=>{be.stopPropagation(),f(be,ae.key)}},[((se=ae.closeIcon)===null||se===void 0?void 0:se.call(ae))||((de=F.removeIcon)===null||de===void 0?void 0:de.call(F))||"×"])]})})]}),default:()=>De("button",{type:"button",class:`${g}-nav-more`,style:Y,tabindex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":c.value,id:`${p}-more`,"aria-expanded":i.value,onKeydown:u},[E])});return De("div",{class:Vn(`${g}-nav-operations`,r.class),style:r.style},[q,De(Blt,{prefixCls:g,locale:b,editable:F},null)])}}}),xlt=Symbol("tabsContextKey"),aHt=e=>{Es(xlt,e)},Slt=()=>Wo(xlt,{tabs:Hn([]),prefixCls:Hn()}),oHt=.1,o7e=.01,EK=20,s7e=Math.pow(.995,EK);function sHt(e,t){const[r,n]=Hu(),[i,a]=Hu(0),[o,s]=Hu(0),[l,u]=Hu(),c=Hn();function A(F){const{screenX:M,screenY:N}=F.touches[0];n({x:M,y:N}),clearInterval(c.value)}function f(F){if(!r.value)return;F.preventDefault();const{screenX:M,screenY:N}=F.touches[0],P=M-r.value.x,j=N-r.value.y;t(P,j),n({x:M,y:N});const z=Date.now();s(z-i.value),a(z),u({x:P,y:j})}function h(){if(!r.value)return;const F=l.value;if(n(null),u(null),F){const M=F.x/o.value,N=F.y/o.value,P=Math.abs(M),j=Math.abs(N);if(Math.max(P,j){if(Math.abs(z)z?(P=M,g.value="x"):(P=N,g.value="y"),t(-P,-P)&&F.preventDefault()}const m=Hn({onTouchStart:A,onTouchMove:f,onTouchEnd:h,onWheel:p});function b(F){m.value.onTouchStart(F)}function C(F){m.value.onTouchMove(F)}function E(F){m.value.onTouchEnd(F)}function _(F){m.value.onWheel(F)}Is(()=>{var F,M;document.addEventListener("touchmove",C,{passive:!1}),document.addEventListener("touchend",E,{passive:!1}),(F=e.value)===null||F===void 0||F.addEventListener("touchstart",b,{passive:!1}),(M=e.value)===null||M===void 0||M.addEventListener("wheel",_,{passive:!1})}),el(()=>{document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E)})}function l7e(e,t){const r=Hn(e);function n(i){const a=typeof i=="function"?i(r.value):i;a!==r.value&&t(a,r.value),r.value=a}return[r,n]}const jBe=()=>{const e=Hn(new Map),t=r=>n=>{e.value.set(r,n)};return O7(()=>{e.value=new Map}),[t,e]},u7e={width:0,height:0,left:0,top:0,right:0},lHt=()=>({id:{type:String},tabPosition:{type:String},activeKey:{type:[String,Number]},rtl:{type:Boolean},animated:To(),editable:To(),moreIcon:cn.any,moreTransitionName:{type:String},mobile:{type:Boolean},tabBarGutter:{type:Number},renderTabBar:{type:Function},locale:To(),popupClassName:String,getPopupContainer:pi(),onTabClick:{type:Function},onTabScroll:{type:Function}}),c7e=$n({compatConfig:{MODE:3},name:"TabNavList",inheritAttrs:!1,props:lHt(),slots:Object,emits:["tabClick","tabScroll"],setup(e,t){let{attrs:r,slots:n}=t;const{tabs:i,prefixCls:a}=Slt(),o=sn(),s=sn(),l=sn(),u=sn(),[c,A]=jBe(),f=vt(()=>e.tabPosition==="top"||e.tabPosition==="bottom"),[h,g]=l7e(0,(Ce,Be)=>{f.value&&e.onTabScroll&&e.onTabScroll({direction:Ce>Be?"left":"right"})}),[p,m]=l7e(0,(Ce,Be)=>{!f.value&&e.onTabScroll&&e.onTabScroll({direction:Ce>Be?"top":"bottom"})}),[b,C]=Hu(0),[E,_]=Hu(0),[F,M]=Hu(null),[N,P]=Hu(null),[j,z]=Hu(0),[W,Y]=Hu(0),[ee,q]=eHt(new Map),ae=rHt(i,ee),se=vt(()=>`${a.value}-nav-operations-hidden`),de=sn(0),Ae=sn(0);ks(()=>{f.value?e.rtl?(de.value=0,Ae.value=Math.max(0,b.value-F.value)):(de.value=Math.min(0,F.value-b.value),Ae.value=0):(de.value=Math.min(0,N.value-E.value),Ae.value=0)});const be=Ce=>CeAe.value?Ae.value:Ce,Le=sn(),[Ne,ue]=Hu(),Ke=()=>{ue(Date.now())},Pe=()=>{clearTimeout(Le.value)},je=(Ce,Be)=>{Ce(We=>be(We+Be))};sHt(o,(Ce,Be)=>{if(f.value){if(F.value>=b.value)return!1;je(g,Ce)}else{if(N.value>=E.value)return!1;je(m,Be)}return Pe(),Ke(),!0}),di(Ne,()=>{Pe(),Ne.value&&(Le.value=setTimeout(()=>{ue(0)},100))});const Ye=function(){let Ce=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.activeKey;const Be=ae.value.get(Ce)||{width:0,height:0,left:0,right:0,top:0};if(f.value){let We=h.value;e.rtl?Be.righth.value+F.value&&(We=Be.right+Be.width-F.value):Be.left<-h.value?We=-Be.left:Be.left+Be.width>-h.value+F.value&&(We=-(Be.left+Be.width-F.value)),m(0),g(be(We))}else{let We=p.value;Be.top<-p.value?We=-Be.top:Be.top+Be.height>-p.value+N.value&&(We=-(Be.top+Be.height-N.value)),g(0),m(be(We))}},me=sn(0),Se=sn(0);ks(()=>{let Ce,Be,We,mt,Tt,bt;const qt=ae.value;["top","bottom"].includes(e.tabPosition)?(Ce="width",mt=F.value,Tt=b.value,bt=j.value,Be=e.rtl?"right":"left",We=Math.abs(h.value)):(Ce="height",mt=N.value,Tt=b.value,bt=W.value,Be="top",We=-p.value);let cr=mt;Tt+bt>mt&&TtWe+cr){Er=wn-1;break}}let on=0;for(let wn=Xt-1;wn>=0;wn-=1)if((qt.get(Gt[wn].key)||u7e)[Be]{var Ce,Be,We,mt,Tt;const bt=((Ce=o.value)===null||Ce===void 0?void 0:Ce.offsetWidth)||0,qt=((Be=o.value)===null||Be===void 0?void 0:Be.offsetHeight)||0,cr=((We=u.value)===null||We===void 0?void 0:We.$el)||{},Gt=cr.offsetWidth||0,Xt=cr.offsetHeight||0;M(bt),P(qt),z(Gt),Y(Xt);const Er=(((mt=s.value)===null||mt===void 0?void 0:mt.offsetWidth)||0)-Gt,on=(((Tt=s.value)===null||Tt===void 0?void 0:Tt.offsetHeight)||0)-Xt;C(Er),_(on),q(()=>{const wn=new Map;return i.value.forEach(jr=>{let{key:ur}=jr;const Hr=A.value.get(ur),Lr=(Hr==null?void 0:Hr.$el)||Hr;Lr&&wn.set(ur,{width:Lr.offsetWidth,height:Lr.offsetHeight,left:Lr.offsetLeft,top:Lr.offsetTop})}),wn})},nt=vt(()=>[...i.value.slice(0,me.value),...i.value.slice(Se.value+1)]),[tt,ft]=Hu(),st=vt(()=>ae.value.get(e.activeKey)),Re=sn(),dt=()=>{ms.cancel(Re.value)};di([st,f,()=>e.rtl],()=>{const Ce={};st.value&&(f.value?(e.rtl?Ce.right=nk(st.value.right):Ce.left=nk(st.value.left),Ce.width=nk(st.value.width)):(Ce.top=nk(st.value.top),Ce.height=nk(st.value.height))),dt(),Re.value=ms(()=>{ft(Ce)})}),di([()=>e.activeKey,st,ae,f],()=>{Ye()},{flush:"post"}),di([()=>e.rtl,()=>e.tabBarGutter,()=>e.activeKey,()=>i.value],()=>{et()},{flush:"post"});const Oe=Ce=>{let{position:Be,prefixCls:We,extra:mt}=Ce;if(!mt)return null;const Tt=mt==null?void 0:mt({position:Be});return Tt?De("div",{class:`${We}-extra-content`},[Tt]):null};return el(()=>{Pe(),dt()}),()=>{const{id:Ce,animated:Be,activeKey:We,rtl:mt,editable:Tt,locale:bt,tabPosition:qt,tabBarGutter:cr,onTabClick:Gt}=e,{class:Xt,style:Er}=r,on=a.value,wn=!!nt.value.length,jr=`${on}-nav-wrap`;let ur,Hr,Lr,Un;f.value?mt?(Hr=h.value>0,ur=h.value+F.value{const{key:za}=qr;return De(tHt,{id:Ce,prefixCls:on,key:za,tab:qr,style:Gi===0?void 0:en,closable:qr.closable,editable:Tt,active:za===We,removeAriaLabel:bt==null?void 0:bt.removeAriaLabel,ref:c(za),onClick:xa=>{Gt(za,xa)},onFocus:()=>{Ye(za),Ke(),o.value&&(mt||(o.value.scrollLeft=0),o.value.scrollTop=0)}},n)});return De("div",{role:"tablist",class:Vn(`${on}-nav`,Xt),style:Er,onKeydown:()=>{Ke()}},[De(Oe,{position:"left",prefixCls:on,extra:n.leftExtra},null),De(YE,{onResize:et},{default:()=>[De("div",{class:Vn(jr,{[`${jr}-ping-left`]:ur,[`${jr}-ping-right`]:Hr,[`${jr}-ping-top`]:Lr,[`${jr}-ping-bottom`]:Un}),ref:o},[De(YE,{onResize:et},{default:()=>[De("div",{ref:s,class:`${on}-nav-list`,style:{transform:`translate(${h.value}px, ${p.value}px)`,transition:Ne.value?"none":void 0}},[Kn,De(Blt,{ref:u,prefixCls:on,locale:bt,editable:Tt,style:$e($e({},Kn.length===0?void 0:en),{visibility:wn?"hidden":null})},null),De("div",{class:Vn(`${on}-ink-bar`,{[`${on}-ink-bar-animated`]:Be.inkBar}),style:tt.value},null)])]})])]}),De(iHt,Ot(Ot({},e),{},{removeAriaLabel:bt==null?void 0:bt.removeAriaLabel,ref:l,prefixCls:on,tabs:nt.value,class:!wn&&se.value}),ust(n,["moreIcon"])),De(Oe,{position:"right",prefixCls:on,extra:n.rightExtra},null),De(Oe,{position:"right",prefixCls:on,extra:n.tabBarExtraContent},null)])}}}),uHt=$n({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(e){const{tabs:t,prefixCls:r}=Slt();return()=>{const{id:n,activeKey:i,animated:a,tabPosition:o,rtl:s,destroyInactiveTabPane:l}=e,u=a.tabPane,c=r.value,A=t.value.findIndex(f=>f.key===i);return De("div",{class:`${c}-content-holder`},[De("div",{class:[`${c}-content`,`${c}-content-${o}`,{[`${c}-content-animated`]:u}],style:A&&u?{[s?"marginRight":"marginLeft"]:`-${A}00%`}:null},[t.value.map(f=>aA(f.node,{key:f.key,prefixCls:c,tabKey:f.key,id:n,animated:u,active:f.key===i,destroyInactiveTabPane:l}))])])}}});var klt={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 A7e(e){for(var t=1;t{const{componentCls:t,motionDurationSlow:r}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${r}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${r}`}}}}},[pC(e,"slide-up"),pC(e,"slide-down")]]},fHt=e=>{const{componentCls:t,tabsCardHorizontalPadding:r,tabsCardHeadBackground:n,tabsCardGutter:i,colorSplit:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:r,background:n,border:`${e.lineWidth}px ${e.lineType} ${a}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:e.colorPrimary,background:e.colorBgContainer},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:`${i}px`}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:`${i}px`}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadiusLG}px 0 0 ${e.borderRadiusLG}px`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},hHt=e=>{const{componentCls:t,tabsHoverColor:r,dropdownEdgeChildVerticalPadding:n}=e;return{[`${t}-dropdown`]:$e($e({},gu(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${n}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":$e($e({},qE),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${e.paddingXXS}px ${e.paddingSM}px`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:r}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},dHt=e=>{const{componentCls:t,margin:r,colorSplit:n}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:`0 0 ${r}px 0`,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${e.lineWidth}px ${e.lineType} ${n}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow}, right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:`${r}px`,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:e.controlHeight*1.25,[`${t}-tab`]:{padding:`${e.paddingXS}px ${e.paddingLG}px`,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:`${e.margin}px 0 0 0`},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-e.lineWidth},borderRight:{_skip_check_:!0,value:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},gHt=e=>{const{componentCls:t,padding:r}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px 0`,fontSize:e.fontSize}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${r}px 0`,fontSize:e.fontSizeLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXXS*1.5}px ${r}px`}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${e.borderRadius}px ${e.borderRadius}px`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${e.borderRadius}px ${e.borderRadius}px 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${e.borderRadius}px ${e.borderRadius}px 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${e.borderRadius}px 0 0 ${e.borderRadius}px`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:`${e.paddingXS}px ${r}px ${e.paddingXXS*1.5}px`}}}}}},pHt=e=>{const{componentCls:t,tabsActiveColor:r,tabsHoverColor:n,iconCls:i,tabsHorizontalGutter:a}=e,o=`${t}-tab`;return{[o]:{position:"relative",display:"inline-flex",alignItems:"center",padding:`${e.paddingSM}px 0`,fontSize:`${e.fontSize}px`,background:"transparent",border:0,outline:"none",cursor:"pointer","&-btn, &-remove":$e({"&:focus:not(:focus-visible), &:active":{color:r}},g5(e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-e.marginXXS},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorTextDescription,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},"&:hover":{color:n},[`&${o}-active ${o}-btn`]:{color:e.colorPrimary,textShadow:e.tabsActiveTextShadow},[`&${o}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${o}-disabled ${o}-btn, &${o}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${o}-remove ${i}`]:{margin:0},[i]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${o} + ${o}`]:{margin:{_skip_check_:!0,value:`0 0 0 ${a}px`}}}},vHt=e=>{const{componentCls:t,tabsHorizontalGutter:r,iconCls:n,tabsCardGutter:i}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:`0 0 0 ${r}px`},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[n]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${e.marginSM}px`}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${e.marginXXS}px`},[n]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:`${i}px`},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},mHt=e=>{const{componentCls:t,tabsCardHorizontalPadding:r,tabsCardHeight:n,tabsCardGutter:i,tabsHoverColor:a,tabsActiveColor:o,colorSplit:s}=e;return{[t]:$e($e($e($e({},gu(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-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 ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:r,background:"transparent",border:0,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:$e({minWidth:`${n}px`,marginLeft:{_skip_check_:!0,value:`${i}px`},padding:`0 ${e.paddingXS}px`,background:"transparent",border:`${e.lineWidth}px ${e.lineType} ${s}`,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:a},"&:active, &:focus:not(:focus-visible)":{color:o}},g5(e))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.colorPrimary,pointerEvents:"none"}}),pHt(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}},yHt=Gu("Tabs",e=>{const t=e.controlHeightLG,r=Al(e,{tabsHoverColor:e.colorPrimaryHover,tabsActiveColor:e.colorPrimaryActive,tabsCardHorizontalPadding:`${(t-Math.round(e.fontSize*e.lineHeight))/2-e.lineWidth}px ${e.padding}px`,tabsCardHeight:t,tabsCardGutter:e.marginXXS/2,tabsHorizontalGutter:32,tabsCardHeadBackground:e.colorFillAlter,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120});return[gHt(r),vHt(r),dHt(r),hHt(r),fHt(r),mHt(r),AHt(r)]},e=>({zIndexPopup:e.zIndexPopupBase+50}));let f7e=0;const Qlt=()=>({prefixCls:{type:String},id:{type:String},popupClassName:String,getPopupContainer:pi(),activeKey:{type:[String,Number]},defaultActiveKey:{type:[String,Number]},direction:Us(),animated:$l([Boolean,Object]),renderTabBar:pi(),tabBarGutter:{type:Number},tabBarStyle:To(),tabPosition:Us(),destroyInactiveTabPane:Pa(),hideAdd:Boolean,type:Us(),size:Us(),centered:Boolean,onEdit:pi(),onChange:pi(),onTabClick:pi(),onTabScroll:pi(),"onUpdate:activeKey":pi(),locale:To(),onPrevClick:pi(),onNextClick:pi(),tabBarExtraContent:cn.any});function bHt(e){return e.map(t=>{if(l0(t)){const r=$e({},t.props||{});for(const[f,h]of Object.entries(r))delete r[f],r[pL(f)]=h;const n=t.children||{},i=t.key!==void 0?t.key:void 0,{tab:a=n.tab,disabled:o,forceRender:s,closable:l,animated:u,active:c,destroyInactiveTabPane:A}=r;return $e($e({key:i},r),{node:t,closeIcon:n.closeIcon,tab:a,disabled:o===""||o,forceRender:s===""||s,closable:l===""||l,animated:u===""||u,active:c===""||c,destroyInactiveTabPane:A===""||A})}return null}).filter(t=>t)}const wHt=$n({compatConfig:{MODE:3},name:"InternalTabs",inheritAttrs:!1,props:$e($e({},ju(Qlt(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}})),{tabs:nc()}),slots:Object,setup(e,t){let{attrs:r,slots:n}=t;BA(e.onPrevClick===void 0&&e.onNextClick===void 0,"Tabs","`onPrevClick / @prevClick` and `onNextClick / @nextClick` has been removed. Please use `onTabScroll / @tabScroll` instead."),BA(e.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` prop has been removed. Please use `rightExtra` slot instead."),BA(n.tabBarExtraContent===void 0,"Tabs","`tabBarExtraContent` slot is deprecated. Please use `rightExtra` slot instead.");const{prefixCls:i,direction:a,size:o,rootPrefixCls:s,getPopupContainer:l}=gs("tabs",e),[u,c]=yHt(i),A=vt(()=>a.value==="rtl"),f=vt(()=>{const{animated:N,tabPosition:P}=e;return N===!1||["left","right"].includes(P)?{inkBar:!1,tabPane:!1}:N===!0?{inkBar:!0,tabPane:!0}:$e({inkBar:!0,tabPane:!1},typeof N=="object"?N:{})}),[h,g]=Hu(!1);Is(()=>{g(JEe())});const[p,m]=Vg(()=>{var N;return(N=e.tabs[0])===null||N===void 0?void 0:N.key},{value:vt(()=>e.activeKey),defaultValue:e.defaultActiveKey}),[b,C]=Hu(()=>e.tabs.findIndex(N=>N.key===p.value));ks(()=>{var N;let P=e.tabs.findIndex(j=>j.key===p.value);P===-1&&(P=Math.max(0,Math.min(b.value,e.tabs.length-1)),m((N=e.tabs[P])===null||N===void 0?void 0:N.key)),C(P)});const[E,_]=Vg(null,{value:vt(()=>e.id)}),F=vt(()=>h.value&&!["left","right"].includes(e.tabPosition)?"top":e.tabPosition);Is(()=>{e.id||(_(`rc-tabs-${f7e}`),f7e+=1)});const M=(N,P)=>{var j,z;(j=e.onTabClick)===null||j===void 0||j.call(e,N,P);const W=N!==p.value;m(N),W&&((z=e.onChange)===null||z===void 0||z.call(e,N))};return aHt({tabs:vt(()=>e.tabs),prefixCls:i}),()=>{const{id:N,type:P,tabBarGutter:j,tabBarStyle:z,locale:W,destroyInactiveTabPane:Y,renderTabBar:ee=n.renderTabBar,onTabScroll:q,hideAdd:ae,centered:se}=e,de={id:E.value,activeKey:p.value,animated:f.value,tabPosition:F.value,rtl:A.value,mobile:h.value};let Ae;P==="editable-card"&&(Ae={onEdit:(ue,Ke)=>{let{key:Pe,event:je}=Ke;var Ye;(Ye=e.onEdit)===null||Ye===void 0||Ye.call(e,ue==="add"?je:Pe,ue)},removeIcon:()=>De(QC,null,null),addIcon:n.addIcon?n.addIcon:()=>De(GBe,null,null),showAdd:ae!==!0});let be;const Le=$e($e({},de),{moreTransitionName:`${s.value}-slide-up`,editable:Ae,locale:W,tabBarGutter:j,onTabClick:M,onTabScroll:q,style:z,getPopupContainer:l.value,popupClassName:Vn(e.popupClassName,c.value)});ee?be=ee($e($e({},Le),{DefaultTabBar:c7e})):be=De(c7e,Le,ust(n,["moreIcon","leftExtra","rightExtra","tabBarExtraContent"]));const Ne=i.value;return u(De("div",Ot(Ot({},r),{},{id:N,class:Vn(Ne,`${Ne}-${F.value}`,{[c.value]:!0,[`${Ne}-${o.value}`]:o.value,[`${Ne}-card`]:["card","editable-card"].includes(P),[`${Ne}-editable-card`]:P==="editable-card",[`${Ne}-centered`]:se,[`${Ne}-mobile`]:h.value,[`${Ne}-editable`]:P==="editable-card",[`${Ne}-rtl`]:A.value},r.class)}),[be,De(uHt,Ot(Ot({destroyInactiveTabPane:Y},de),{},{animated:f.value}),null)]))}}}),BK=$n({compatConfig:{MODE:3},name:"ATabs",inheritAttrs:!1,props:ju(Qlt(),{tabPosition:"top",animated:{inkBar:!0,tabPane:!1}}),slots:Object,setup(e,t){let{attrs:r,slots:n,emit:i}=t;const a=o=>{i("update:activeKey",o),i("change",o)};return()=>{var o;const s=bHt(sf((o=n.default)===null||o===void 0?void 0:o.call(n)));return De(wHt,Ot(Ot(Ot({},Cc(e,["onUpdate:activeKey"])),r),{},{onChange:a,tabs:s}),n)}}}),CHt=()=>({tab:cn.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}}),Sye=$n({compatConfig:{MODE:3},name:"ATabPane",inheritAttrs:!1,__ANT_TAB_PANE:!0,props:CHt(),slots:Object,setup(e,t){let{attrs:r,slots:n}=t;const i=Hn(e.forceRender);di([()=>e.active,()=>e.destroyInactiveTabPane],()=>{e.active?i.value=!0:e.destroyInactiveTabPane&&(i.value=!1)},{immediate:!0});const a=vt(()=>e.active?{}:e.animated?{visibility:"hidden",height:0,overflowY:"hidden"}:{display:"none"});return()=>{var o;const{prefixCls:s,forceRender:l,id:u,active:c,tabKey:A}=e;return De("div",{id:u&&`${u}-panel-${A}`,role:"tabpanel",tabindex:c?0:-1,"aria-labelledby":u&&`${u}-tab-${A}`,"aria-hidden":!c,style:[a.value,r.style],class:[`${s}-tabpane`,c&&`${s}-tabpane-active`,r.class]},[(c||i.value||l)&&((o=n.default)===null||o===void 0?void 0:o.call(n))])}}});BK.TabPane=Sye;BK.install=function(e){return e.component(BK.name,BK),e.component(Sye.name,Sye),e};const _lt=Symbol("TreeContextKey"),IHt=$n({compatConfig:{MODE:3},name:"TreeContext",props:{value:{type:Object}},setup(e,t){let{slots:r}=t;return Es(_lt,vt(()=>e.value)),()=>{var n;return(n=r.default)===null||n===void 0?void 0:n.call(r)}}}),$Be=()=>Wo(_lt,vt(()=>({}))),Tlt=Symbol("KeysStateKey"),EHt=e=>{Es(Tlt,e)},Dlt=()=>Wo(Tlt,{expandedKeys:sn([]),selectedKeys:sn([]),loadedKeys:sn([]),loadingKeys:sn([]),checkedKeys:sn([]),halfCheckedKeys:sn([]),expandedKeysSet:vt(()=>new Set),selectedKeysSet:vt(()=>new Set),loadedKeysSet:vt(()=>new Set),loadingKeysSet:vt(()=>new Set),checkedKeysSet:vt(()=>new Set),halfCheckedKeysSet:vt(()=>new Set),flattenNodes:sn([])}),BHt=e=>{let{prefixCls:t,level:r,isStart:n,isEnd:i}=e;const a=`${t}-indent-unit`,o=[];for(let s=0;s({prefixCls:String,focusable:{type:Boolean,default:void 0},activeKey:[Number,String],tabindex:Number,children:cn.any,treeData:{type:Array},fieldNames:{type:Object},showLine:{type:[Boolean,Object],default:void 0},showIcon:{type:Boolean,default:void 0},icon:cn.any,selectable:{type:Boolean,default:void 0},expandAction:[String,Boolean],disabled:{type:Boolean,default:void 0},multiple:{type:Boolean,default:void 0},checkable:{type:Boolean,default:void 0},checkStrictly:{type:Boolean,default:void 0},draggable:{type:[Function,Boolean]},defaultExpandParent:{type:Boolean,default:void 0},autoExpandParent:{type:Boolean,default:void 0},defaultExpandAll:{type:Boolean,default:void 0},defaultExpandedKeys:{type:Array},expandedKeys:{type:Array},defaultCheckedKeys:{type:Array},checkedKeys:{type:[Object,Array]},defaultSelectedKeys:{type:Array},selectedKeys:{type:Array},allowDrop:{type:Function},dropIndicatorRender:{type:Function},onFocus:{type:Function},onBlur:{type:Function},onKeydown:{type:Function},onContextmenu:{type:Function},onClick:{type:Function},onDblclick:{type:Function},onScroll:{type:Function},onExpand:{type:Function},onCheck:{type:Function},onSelect:{type:Function},onLoad:{type:Function},loadData:{type:Function},loadedKeys:{type:Array},onMouseenter:{type:Function},onMouseleave:{type:Function},onRightClick:{type:Function},onDragstart:{type:Function},onDragenter:{type:Function},onDragover:{type:Function},onDragleave:{type:Function},onDragend:{type:Function},onDrop:{type:Function},onActiveChange:{type:Function},filterTreeNode:{type:Function},motion:cn.any,switcherIcon:cn.any,height:Number,itemHeight:Number,virtual:{type:Boolean,default:void 0},direction:{type:String},rootClassName:String,rootStyle:Object});var SHt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i"`v-slot:"+Gt+"` ")}`;const a=sn(!1),o=$Be(),{expandedKeysSet:s,selectedKeysSet:l,loadedKeysSet:u,loadingKeysSet:c,checkedKeysSet:A,halfCheckedKeysSet:f}=Dlt(),{dragOverNodeKey:h,dropPosition:g,keyEntities:p}=o.value,m=vt(()=>xK(e.eventKey,{expandedKeysSet:s.value,selectedKeysSet:l.value,loadedKeysSet:u.value,loadingKeysSet:c.value,checkedKeysSet:A.value,halfCheckedKeysSet:f.value,dragOverNodeKey:h,dropPosition:g,keyEntities:p})),b=sy(()=>m.value.expanded),C=sy(()=>m.value.selected),E=sy(()=>m.value.checked),_=sy(()=>m.value.loaded),F=sy(()=>m.value.loading),M=sy(()=>m.value.halfChecked),N=sy(()=>m.value.dragOver),P=sy(()=>m.value.dragOverGapTop),j=sy(()=>m.value.dragOverGapBottom),z=sy(()=>m.value.pos),W=sn(),Y=vt(()=>{const{eventKey:Gt}=e,{keyEntities:Xt}=o.value,{children:Er}=Xt[Gt]||{};return!!(Er||[]).length}),ee=vt(()=>{const{isLeaf:Gt}=e,{loadData:Xt}=o.value,Er=Y.value;return Gt===!1?!1:Gt||!Xt&&!Er||Xt&&_.value&&!Er}),q=vt(()=>ee.value?null:b.value?h7e:d7e),ae=vt(()=>{const{disabled:Gt}=e,{disabled:Xt}=o.value;return!!(Xt||Gt)}),se=vt(()=>{const{checkable:Gt}=e,{checkable:Xt}=o.value;return!Xt||Gt===!1?!1:Xt}),de=vt(()=>{const{selectable:Gt}=e,{selectable:Xt}=o.value;return typeof Gt=="boolean"?Gt:Xt}),Ae=vt(()=>{const{data:Gt,active:Xt,checkable:Er,disableCheckbox:on,disabled:wn,selectable:jr}=e;return $e($e({active:Xt,checkable:Er,disableCheckbox:on,disabled:wn,selectable:jr},Gt),{dataRef:Gt,data:Gt,isLeaf:ee.value,checked:E.value,expanded:b.value,loading:F.value,selected:C.value,halfChecked:M.value})}),be=sA(),Le=vt(()=>{const{eventKey:Gt}=e,{keyEntities:Xt}=o.value,{parent:Er}=Xt[Gt]||{};return $e($e({},SK($e({},e,m.value))),{parent:Er})}),Ne=uc({eventData:Le,eventKey:vt(()=>e.eventKey),selectHandle:W,pos:z,key:be.vnode.key});i(Ne);const ue=Gt=>{const{onNodeDoubleClick:Xt}=o.value;Xt(Gt,Le.value)},Ke=Gt=>{if(ae.value)return;const{onNodeSelect:Xt}=o.value;Gt.preventDefault(),Xt(Gt,Le.value)},Pe=Gt=>{if(ae.value)return;const{disableCheckbox:Xt}=e,{onNodeCheck:Er}=o.value;if(!se.value||Xt)return;Gt.preventDefault();const on=!E.value;Er(Gt,Le.value,on)},je=Gt=>{const{onNodeClick:Xt}=o.value;Xt(Gt,Le.value),de.value?Ke(Gt):Pe(Gt)},Ye=Gt=>{const{onNodeMouseEnter:Xt}=o.value;Xt(Gt,Le.value)},me=Gt=>{const{onNodeMouseLeave:Xt}=o.value;Xt(Gt,Le.value)},Se=Gt=>{const{onNodeContextMenu:Xt}=o.value;Xt(Gt,Le.value)},et=Gt=>{const{onNodeDragStart:Xt}=o.value;Gt.stopPropagation(),a.value=!0,Xt(Gt,Ne);try{Gt.dataTransfer.setData("text/plain","")}catch{}},nt=Gt=>{const{onNodeDragEnter:Xt}=o.value;Gt.preventDefault(),Gt.stopPropagation(),Xt(Gt,Ne)},tt=Gt=>{const{onNodeDragOver:Xt}=o.value;Gt.preventDefault(),Gt.stopPropagation(),Xt(Gt,Ne)},ft=Gt=>{const{onNodeDragLeave:Xt}=o.value;Gt.stopPropagation(),Xt(Gt,Ne)},st=Gt=>{const{onNodeDragEnd:Xt}=o.value;Gt.stopPropagation(),a.value=!1,Xt(Gt,Ne)},Re=Gt=>{const{onNodeDrop:Xt}=o.value;Gt.preventDefault(),Gt.stopPropagation(),a.value=!1,Xt(Gt,Ne)},dt=Gt=>{const{onNodeExpand:Xt}=o.value;F.value||Xt(Gt,Le.value)},Oe=()=>{const{data:Gt}=e,{draggable:Xt}=o.value;return!!(Xt&&(!Xt.nodeDraggable||Xt.nodeDraggable(Gt)))},Ce=()=>{const{draggable:Gt,prefixCls:Xt}=o.value;return Gt&&(Gt!=null&&Gt.icon)?De("span",{class:`${Xt}-draggable-icon`},[Gt.icon]):null},Be=()=>{var Gt,Xt,Er;const{switcherIcon:on=n.switcherIcon||((Gt=o.value.slots)===null||Gt===void 0?void 0:Gt[(Er=(Xt=e.data)===null||Xt===void 0?void 0:Xt.slots)===null||Er===void 0?void 0:Er.switcherIcon])}=e,{switcherIcon:wn}=o.value,jr=on||wn;return typeof jr=="function"?jr(Ae.value):jr},We=()=>{const{loadData:Gt,onNodeLoad:Xt}=o.value;F.value||Gt&&b.value&&!ee.value&&!Y.value&&!_.value&&Xt(Le.value)};Is(()=>{We()}),lm(()=>{We()});const mt=()=>{const{prefixCls:Gt}=o.value,Xt=Be();if(ee.value)return Xt!==!1?De("span",{class:Vn(`${Gt}-switcher`,`${Gt}-switcher-noop`)},[Xt]):null;const Er=Vn(`${Gt}-switcher`,`${Gt}-switcher_${b.value?h7e:d7e}`);return Xt!==!1?De("span",{onClick:dt,class:Er},[Xt]):null},Tt=()=>{var Gt,Xt;const{disableCheckbox:Er}=e,{prefixCls:on}=o.value,wn=ae.value;return se.value?De("span",{class:Vn(`${on}-checkbox`,E.value&&`${on}-checkbox-checked`,!E.value&&M.value&&`${on}-checkbox-indeterminate`,(wn||Er)&&`${on}-checkbox-disabled`),onClick:Pe},[(Xt=(Gt=o.value).customCheckable)===null||Xt===void 0?void 0:Xt.call(Gt)]):null},bt=()=>{const{prefixCls:Gt}=o.value;return De("span",{class:Vn(`${Gt}-iconEle`,`${Gt}-icon__${q.value||"docu"}`,F.value&&`${Gt}-icon_loading`)},null)},qt=()=>{const{disabled:Gt,eventKey:Xt}=e,{draggable:Er,dropLevelOffset:on,dropPosition:wn,prefixCls:jr,indent:ur,dropIndicatorRender:Hr,dragOverNodeKey:Lr,direction:Un}=o.value;return!Gt&&Er!==!1&&Lr===Xt?Hr({dropPosition:wn,dropLevelOffset:on,indent:ur,prefixCls:jr,direction:Un}):null},cr=()=>{var Gt,Xt,Er,on,wn,jr;const{icon:ur=n.icon,data:Hr}=e,Lr=n.title||((Gt=o.value.slots)===null||Gt===void 0?void 0:Gt[(Er=(Xt=e.data)===null||Xt===void 0?void 0:Xt.slots)===null||Er===void 0?void 0:Er.title])||((on=o.value.slots)===null||on===void 0?void 0:on.title)||e.title,{prefixCls:Un,showIcon:en,icon:Kn,loadData:qr}=o.value,Gi=ae.value,za=`${Un}-node-content-wrapper`;let xa;if(en){const Ji=ur||((wn=o.value.slots)===null||wn===void 0?void 0:wn[(jr=Hr==null?void 0:Hr.slots)===null||jr===void 0?void 0:jr.icon])||Kn;xa=Ji?De("span",{class:Vn(`${Un}-iconEle`,`${Un}-icon__customize`)},[typeof Ji=="function"?Ji(Ae.value):Ji]):bt()}else qr&&F.value&&(xa=bt());let Wa;typeof Lr=="function"?Wa=Lr(Ae.value):Wa=Lr,Wa=Wa===void 0?kHt:Wa;const $i=De("span",{class:`${Un}-title`},[Wa]);return De("span",{ref:W,title:typeof Lr=="string"?Lr:"",class:Vn(`${za}`,`${za}-${q.value||"normal"}`,!Gi&&(C.value||a.value)&&`${Un}-node-selected`),onMouseenter:Ye,onMouseleave:me,onContextmenu:Se,onClick:je,onDblclick:ue},[xa,$i,qt()])};return()=>{const Gt=$e($e({},e),r),{eventKey:Xt,isLeaf:Er,isStart:on,isEnd:wn,domRef:jr,active:ur,data:Hr,onMousemove:Lr,selectable:Un}=Gt,en=SHt(Gt,["eventKey","isLeaf","isStart","isEnd","domRef","active","data","onMousemove","selectable"]),{prefixCls:Kn,filterTreeNode:qr,keyEntities:Gi,dropContainerKey:za,dropTargetKey:xa,draggingNodeKey:Wa}=o.value,$i=ae.value,Ji=H5(en,{aria:!0,data:!0}),{level:ci}=Gi[Xt]||{},Ni=wn[wn.length-1],oo=Oe(),Ft=!$i&&oo,ze=Wa===Xt,Me=Un!==void 0?{"aria-selected":!!Un}:void 0;return De("div",Ot(Ot({ref:jr,class:Vn(r.class,`${Kn}-treenode`,{[`${Kn}-treenode-disabled`]:$i,[`${Kn}-treenode-switcher-${b.value?"open":"close"}`]:!Er,[`${Kn}-treenode-checkbox-checked`]:E.value,[`${Kn}-treenode-checkbox-indeterminate`]:M.value,[`${Kn}-treenode-selected`]:C.value,[`${Kn}-treenode-loading`]:F.value,[`${Kn}-treenode-active`]:ur,[`${Kn}-treenode-leaf-last`]:Ni,[`${Kn}-treenode-draggable`]:Ft,dragging:ze,"drop-target":xa===Xt,"drop-container":za===Xt,"drag-over":!$i&&N.value,"drag-over-gap-top":!$i&&P.value,"drag-over-gap-bottom":!$i&&j.value,"filter-node":qr&&qr(Le.value)}),style:r.style,draggable:Ft,"aria-grabbed":ze,onDragstart:Ft?et:void 0,onDragenter:oo?nt:void 0,onDragover:oo?tt:void 0,onDragleave:oo?ft:void 0,onDrop:oo?Re:void 0,onDragend:oo?st:void 0,onMousemove:Lr},Me),Ji),[De(BHt,{prefixCls:Kn,level:ci,isStart:on,isEnd:wn},null),Ce(),mt(),Tt(),cr()])}}});function Sw(e,t){if(!e)return[];const r=e.slice(),n=r.indexOf(t);return n>=0&&r.splice(n,1),r}function oE(e,t){const r=(e||[]).slice();return r.indexOf(t)===-1&&r.push(t),r}function zBe(e){return e.split("-")}function Mlt(e,t){return`${e}-${t}`}function QHt(e){return e&&e.type&&e.type.isTreeNode}function _Ht(e,t){const r=[],n=t[e];function i(){(arguments.length>0&&arguments[0]!==void 0?arguments[0]:[]).forEach(o=>{let{key:s,children:l}=o;r.push(s),i(l)})}return i(n.children),r}function THt(e){if(e.parent){const t=zBe(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function DHt(e){const t=zBe(e.pos);return Number(t[t.length-1])===0}function g7e(e,t,r,n,i,a,o,s,l,u){var c;const{clientX:A,clientY:f}=e,{top:h,height:g}=e.target.getBoundingClientRect(),m=((u==="rtl"?-1:1)*(((i==null?void 0:i.x)||0)-A)-12)/n;let b=s[r.eventKey];if(fee.key===b.key),W=z<=0?0:z-1,Y=o[W].key;b=s[Y]}const C=b.key,E=b,_=b.key;let F=0,M=0;if(!l.has(C))for(let z=0;z-1.5?a({dragNode:N,dropNode:P,dropPosition:1})?F=1:j=!1:a({dragNode:N,dropNode:P,dropPosition:0})?F=0:a({dragNode:N,dropNode:P,dropPosition:1})?F=1:j=!1:a({dragNode:N,dropNode:P,dropPosition:1})?F=1:j=!1,{dropPosition:F,dropLevelOffset:M,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:_,dropContainerKey:F===0?null:((c=b.parent)===null||c===void 0?void 0:c.key)||null,dropAllowed:j}}function p7e(e,t){if(!e)return;const{multiple:r}=t;return r?e.slice():e.length?[e[0]]:e}function Xae(e){if(!e)return null;let t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(typeof e=="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return null;return t}function Qye(e,t){const r=new Set;function n(i){if(r.has(i))return;const a=t[i];if(!a)return;r.add(i);const{parent:o,node:s}=a;s.disabled||o&&n(o.key)}return(e||[]).forEach(i=>{n(i)}),[...r]}var FHt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i0&&arguments[0]!==void 0?arguments[0]:[];return Cg(r).map(i=>{var a,o,s,l;if(!QHt(i))return null;const u=i.children||{},c=i.key,A={};for(const[z,W]of Object.entries(i.props))A[pL(z)]=W;const{isLeaf:f,checkable:h,selectable:g,disabled:p,disableCheckbox:m}=A,b={isLeaf:f||f===""||void 0,checkable:h||h===""||void 0,selectable:g||g===""||void 0,disabled:p||p===""||void 0,disableCheckbox:m||m===""||void 0},C=$e($e({},A),b),{title:E=(a=u.title)===null||a===void 0?void 0:a.call(u,C),icon:_=(o=u.icon)===null||o===void 0?void 0:o.call(u,C),switcherIcon:F=(s=u.switcherIcon)===null||s===void 0?void 0:s.call(u,C)}=A,M=FHt(A,["title","icon","switcherIcon"]),N=(l=u.default)===null||l===void 0?void 0:l.call(u),P=$e($e($e({},M),{title:E,icon:_,switcherIcon:F,key:c,isLeaf:f}),b),j=t(N);return j.length&&(P.children=j),P})}return t(e)}function RHt(e,t,r){const{_title:n,key:i,children:a}=FJ(r),o=new Set(t===!0?[]:t),s=[];function l(u){let c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return u.map((A,f)=>{const h=Mlt(c?c.pos:"0",f),g=QL(A[i],h);let p;for(let b=0;bf[a]:typeof a=="function"&&(c=f=>a(f)):c=(f,h)=>QL(f[s],h);function A(f,h,g,p){const m=f?f[u]:e,b=f?Mlt(g.pos,h):"0",C=f?[...p,f]:[];if(f){const E=c(f,b),_={node:f,index:h,pos:b,key:E,parentPos:g.node?g.pos:null,level:g.level+1,nodes:C};t(_)}m&&m.forEach((E,_)=>{A(E,_,{node:f,pos:b,level:g?g.level+1:-1},C)})}A(null)}function KBe(e){let{initWrapper:t,processEntity:r,onProcessFinished:n,externalGetKey:i,childrenPropName:a,fieldNames:o}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=arguments.length>2?arguments[2]:void 0;const l=i||s,u={},c={};let A={posEntities:u,keyEntities:c};return t&&(A=t(A)||A),MHt(e,f=>{const{node:h,index:g,pos:p,key:m,parentPos:b,level:C,nodes:E}=f,_={node:h,nodes:E,index:g,key:m,pos:p,level:C},F=QL(m,p);u[p]=_,c[F]=_,_.parent=u[b],_.parent&&(_.parent.children=_.parent.children||[],_.parent.children.push(_)),r&&r(_,A)},{externalGetKey:l,childrenPropName:a,fieldNames:o}),n&&n(A),A}function xK(e,t){let{expandedKeysSet:r,selectedKeysSet:n,loadedKeysSet:i,loadingKeysSet:a,checkedKeysSet:o,halfCheckedKeysSet:s,dragOverNodeKey:l,dropPosition:u,keyEntities:c}=t;const A=c[e];return{eventKey:e,expanded:r.has(e),selected:n.has(e),loaded:i.has(e),loading:a.has(e),checked:o.has(e),halfChecked:s.has(e),pos:String(A?A.pos:""),parent:A.parent,dragOver:l===e&&u===0,dragOverGapTop:l===e&&u===-1,dragOverGapBottom:l===e&&u===1}}function SK(e){const{data:t,expanded:r,selected:n,checked:i,loaded:a,loading:o,halfChecked:s,dragOver:l,dragOverGapTop:u,dragOverGapBottom:c,pos:A,active:f,eventKey:h}=e,g=$e($e({dataRef:t},t),{expanded:r,selected:n,checked:i,loaded:a,loading:o,halfChecked:s,dragOver:l,dragOverGapTop:u,dragOverGapBottom:c,pos:A,active:f,eventKey:h,key:h});return"props"in g||Object.defineProperty(g,"props",{get(){return e}}),g}function Olt(e,t){const r=new Set;return e.forEach(n=>{t.has(n)||r.add(n)}),r}function OHt(e){const{disabled:t,disableCheckbox:r,checkable:n}=e||{};return!!(t||r)||n===!1}function NHt(e,t,r,n){const i=new Set(e),a=new Set;for(let s=0;s<=r;s+=1)(t.get(s)||new Set).forEach(u=>{const{key:c,node:A,children:f=[]}=u;i.has(c)&&!n(A)&&f.filter(h=>!n(h.node)).forEach(h=>{i.add(h.key)})});const o=new Set;for(let s=r;s>=0;s-=1)(t.get(s)||new Set).forEach(u=>{const{parent:c,node:A}=u;if(n(A)||!u.parent||o.has(u.parent.key))return;if(n(u.parent.node)){o.add(c.key);return}let f=!0,h=!1;(c.children||[]).filter(g=>!n(g.node)).forEach(g=>{let{key:p}=g;const m=i.has(p);f&&!m&&(f=!1),!h&&(m||a.has(p))&&(h=!0)}),f&&i.add(c.key),h&&a.add(c.key),o.add(c.key)});return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(Olt(a,i))}}function LHt(e,t,r,n,i){const a=new Set(e);let o=new Set(t);for(let l=0;l<=n;l+=1)(r.get(l)||new Set).forEach(c=>{const{key:A,node:f,children:h=[]}=c;!a.has(A)&&!o.has(A)&&!i(f)&&h.filter(g=>!i(g.node)).forEach(g=>{a.delete(g.key)})});o=new Set;const s=new Set;for(let l=n;l>=0;l-=1)(r.get(l)||new Set).forEach(c=>{const{parent:A,node:f}=c;if(i(f)||!c.parent||s.has(c.parent.key))return;if(i(c.parent.node)){s.add(A.key);return}let h=!0,g=!1;(A.children||[]).filter(p=>!i(p.node)).forEach(p=>{let{key:m}=p;const b=a.has(m);h&&!b&&(h=!1),!g&&(b||o.has(m))&&(g=!0)}),h||a.delete(A.key),g&&o.add(A.key),s.add(A.key)});return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(Olt(o,a))}}function h9(e,t,r,n,i,a){let o;a?o=a:o=OHt;const s=new Set(e.filter(u=>!!r[u]));let l;return t===!0?l=NHt(s,i,n,o):l=LHt(s,t.halfCheckedKeys,i,n,o),l}function Nlt(e){const t=Hn(0),r=sn();return ks(()=>{const n=new Map;let i=0;const a=e.value||{};for(const o in a)if(Object.prototype.hasOwnProperty.call(a,o)){const s=a[o],{level:l}=s;let u=n.get(l);u||(u=new Set,n.set(l,u)),u.add(s),i=Math.max(i,l)}t.value=i,r.value=n}),{maxLevel:t,levelEntities:r}}var PHt={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 v7e(e){for(var t=1;tkC()&&window.document.documentElement,Plt=e=>{if(kC()&&window.document.documentElement){const t=Array.isArray(e)?e:[e],{documentElement:r}=window.document;return t.some(n=>n in r.style)}return!1},HHt=(e,t)=>{if(!Plt(e))return!1;const r=document.createElement("div"),n=r.style[e];return r.style[e]=t,r.style[e]!==n};function jHt(e,t){return!Array.isArray(e)&&t!==void 0?HHt(e,t):Plt(e)}let iG;const GHt=()=>{if(!Llt())return!1;if(iG!==void 0)return iG;const e=document.createElement("div");return e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e),iG=e.scrollHeight===1,document.body.removeChild(e),iG},$Ht=()=>{const e=sn(!1);return Is(()=>{e.value=GHt()}),e},Ult=Symbol("rowContextKey"),zHt=e=>{Es(Ult,e)},KHt=()=>Wo(Ult,{gutter:vt(()=>{}),wrap:vt(()=>{}),supportFlexGap:vt(()=>{})}),VHt=e=>{const{componentCls:t}=e;return{[t]:{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"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},WHt=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},YHt=(e,t)=>{const{componentCls:r,gridColumns:n}=e,i={};for(let a=n;a>=0;a--)a===0?(i[`${r}${t}-${a}`]={display:"none"},i[`${r}-push-${a}`]={insetInlineStart:"auto"},i[`${r}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${a}`]={marginInlineEnd:0},i[`${r}${t}-order-${a}`]={order:0}):(i[`${r}${t}-${a}`]={display:"block",flex:`0 0 ${a/n*100}%`,maxWidth:`${a/n*100}%`},i[`${r}${t}-push-${a}`]={insetInlineStart:`${a/n*100}%`},i[`${r}${t}-pull-${a}`]={insetInlineEnd:`${a/n*100}%`},i[`${r}${t}-offset-${a}`]={marginInlineStart:`${a/n*100}%`},i[`${r}${t}-order-${a}`]={order:a});return i},Tye=(e,t)=>YHt(e,t),qHt=(e,t,r)=>({[`@media (min-width: ${t}px)`]:$e({},Tye(e,r))}),JHt=Gu("Grid",e=>[VHt(e)]),XHt=Gu("Grid",e=>{const t=Al(e,{gridColumns:24}),r={"-sm":t.screenSMMin,"-md":t.screenMDMin,"-lg":t.screenLGMin,"-xl":t.screenXLMin,"-xxl":t.screenXXLMin};return[WHt(t),Tye(t,""),Tye(t,"-xs"),Object.keys(r).map(n=>qHt(t,r[n],n)).reduce((n,i)=>$e($e({},n),i),{})]}),ZHt=()=>({align:$l([String,Object]),justify:$l([String,Object]),prefixCls:String,gutter:$l([Number,Array,Object],0),wrap:{type:Boolean,default:void 0}}),Hlt=$n({compatConfig:{MODE:3},name:"ARow",inheritAttrs:!1,props:ZHt(),setup(e,t){let{slots:r,attrs:n}=t;const{prefixCls:i,direction:a}=gs("row",e),[o,s]=JHt(i);let l;const u=Ast(),c=Hn({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),A=Hn({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,xxl:!1}),f=E=>vt(()=>{if(typeof e[E]=="string")return e[E];if(typeof e[E]!="object")return"";for(let _=0;_{l=u.value.subscribe(E=>{A.value=E;const _=e.gutter||0;(!Array.isArray(_)&&typeof _=="object"||Array.isArray(_)&&(typeof _[0]=="object"||typeof _[1]=="object"))&&(c.value=E)})}),el(()=>{u.value.unsubscribe(l)});const m=vt(()=>{const E=[void 0,void 0],{gutter:_=0}=e;return(Array.isArray(_)?_:[_,void 0]).forEach((M,N)=>{if(typeof M=="object")for(let P=0;Pe.wrap)});const b=vt(()=>Vn(i.value,{[`${i.value}-no-wrap`]:e.wrap===!1,[`${i.value}-${g.value}`]:g.value,[`${i.value}-${h.value}`]:h.value,[`${i.value}-rtl`]:a.value==="rtl"},n.class,s.value)),C=vt(()=>{const E=m.value,_={},F=E[0]!=null&&E[0]>0?`${E[0]/-2}px`:void 0,M=E[1]!=null&&E[1]>0?`${E[1]/-2}px`:void 0;return F&&(_.marginLeft=F,_.marginRight=F),p.value?_.rowGap=`${E[1]}px`:M&&(_.marginTop=M,_.marginBottom=M),_});return()=>{var E;return o(De("div",Ot(Ot({},n),{},{class:b.value,style:$e($e({},C.value),n.style)}),[(E=r.default)===null||E===void 0?void 0:E.call(r)]))}}});function yk(){return yk=Object.assign?Object.assign.bind():function(e){for(var t=1;t"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 kK(e,t,r){return tjt()?kK=Reflect.construct.bind():kK=function(i,a,o){var s=[null];s.push.apply(s,a);var l=Function.bind.apply(i,s),u=new l;return o&&WO(u,o.prototype),u},kK.apply(null,arguments)}function rjt(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function Fye(e){var t=typeof Map=="function"?new Map:void 0;return Fye=function(n){if(n===null||!rjt(n))return n;if(typeof n!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,i)}function i(){return kK(n,arguments,Dye(this).constructor)}return i.prototype=Object.create(n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),WO(i,n)},Fye(e)}var njt=/%[sdj%]/g,ijt=function(){};function Rye(e){if(!e||!e.length)return null;var t={};return e.forEach(function(r){var n=r.field;t[n]=t[n]||[],t[n].push(r)}),t}function qm(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n=a)return s;switch(s){case"%s":return String(r[i++]);case"%d":return Number(r[i++]);case"%j":try{return JSON.stringify(r[i++])}catch{return"[Circular]"}break;default:return s}});return o}return e}function ajt(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function $d(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||ajt(t)&&typeof e=="string"&&!e)}function ojt(e,t,r){var n=[],i=0,a=e.length;function o(s){n.push.apply(n,s||[]),i++,i===a&&r(n)}e.forEach(function(s){t(s,o)})}function m7e(e,t,r){var n=0,i=e.length;function a(o){if(o&&o.length){r(o);return}var s=n;n=n+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},GR={integer:function(t){return GR.number(t)&&parseInt(t,10)===t},float:function(t){return GR.number(t)&&!GR.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch{return!1}},date:function(t){return typeof t.getTime=="function"&&typeof t.getMonth=="function"&&typeof t.getYear=="function"&&!isNaN(t.getTime())},number:function(t){return isNaN(t)?!1:typeof t=="number"},object:function(t){return typeof t=="object"&&!GR.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(C7e.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(fjt())},hex:function(t){return typeof t=="string"&&!!t.match(C7e.hex)}},hjt=function(t,r,n,i,a){if(t.required&&r===void 0){jlt(t,r,n,i,a);return}var o=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;o.indexOf(s)>-1?GR[s](r)||i.push(qm(a.messages.types[s],t.fullField,t.type)):s&&typeof r!==t.type&&i.push(qm(a.messages.types[s],t.fullField,t.type))},djt=function(t,r,n,i,a){var o=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,c=r,A=null,f=typeof r=="number",h=typeof r=="string",g=Array.isArray(r);if(f?A="number":h?A="string":g&&(A="array"),!A)return!1;g&&(c=r.length),h&&(c=r.replace(u,"_").length),o?c!==t.len&&i.push(qm(a.messages[A].len,t.fullField,t.len)):s&&!l&&ct.max?i.push(qm(a.messages[A].max,t.fullField,t.max)):s&&l&&(ct.max)&&i.push(qm(a.messages[A].range,t.fullField,t.min,t.max))},M_="enum",gjt=function(t,r,n,i,a){t[M_]=Array.isArray(t[M_])?t[M_]:[],t[M_].indexOf(r)===-1&&i.push(qm(a.messages[M_],t.fullField,t[M_].join(", ")))},pjt=function(t,r,n,i,a){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(r)||i.push(qm(a.messages.pattern.mismatch,t.fullField,r,t.pattern));else if(typeof t.pattern=="string"){var o=new RegExp(t.pattern);o.test(r)||i.push(qm(a.messages.pattern.mismatch,t.fullField,r,t.pattern))}}},Iu={required:jlt,whitespace:Ajt,type:hjt,range:djt,enum:gjt,pattern:pjt},vjt=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if($d(r,"string")&&!t.required)return n();Iu.required(t,r,i,o,a,"string"),$d(r,"string")||(Iu.type(t,r,i,o,a),Iu.range(t,r,i,o,a),Iu.pattern(t,r,i,o,a),t.whitespace===!0&&Iu.whitespace(t,r,i,o,a))}n(o)},mjt=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if($d(r)&&!t.required)return n();Iu.required(t,r,i,o,a),r!==void 0&&Iu.type(t,r,i,o,a)}n(o)},yjt=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(r===""&&(r=void 0),$d(r)&&!t.required)return n();Iu.required(t,r,i,o,a),r!==void 0&&(Iu.type(t,r,i,o,a),Iu.range(t,r,i,o,a))}n(o)},bjt=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if($d(r)&&!t.required)return n();Iu.required(t,r,i,o,a),r!==void 0&&Iu.type(t,r,i,o,a)}n(o)},wjt=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if($d(r)&&!t.required)return n();Iu.required(t,r,i,o,a),$d(r)||Iu.type(t,r,i,o,a)}n(o)},Cjt=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if($d(r)&&!t.required)return n();Iu.required(t,r,i,o,a),r!==void 0&&(Iu.type(t,r,i,o,a),Iu.range(t,r,i,o,a))}n(o)},Ijt=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if($d(r)&&!t.required)return n();Iu.required(t,r,i,o,a),r!==void 0&&(Iu.type(t,r,i,o,a),Iu.range(t,r,i,o,a))}n(o)},Ejt=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if(r==null&&!t.required)return n();Iu.required(t,r,i,o,a,"array"),r!=null&&(Iu.type(t,r,i,o,a),Iu.range(t,r,i,o,a))}n(o)},Bjt=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if($d(r)&&!t.required)return n();Iu.required(t,r,i,o,a),r!==void 0&&Iu.type(t,r,i,o,a)}n(o)},xjt="enum",Sjt=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if($d(r)&&!t.required)return n();Iu.required(t,r,i,o,a),r!==void 0&&Iu[xjt](t,r,i,o,a)}n(o)},kjt=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if($d(r,"string")&&!t.required)return n();Iu.required(t,r,i,o,a),$d(r,"string")||Iu.pattern(t,r,i,o,a)}n(o)},Qjt=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if($d(r,"date")&&!t.required)return n();if(Iu.required(t,r,i,o,a),!$d(r,"date")){var l;r instanceof Date?l=r:l=new Date(r),Iu.type(t,l,i,o,a),l&&Iu.range(t,l.getTime(),i,o,a)}}n(o)},_jt=function(t,r,n,i,a){var o=[],s=Array.isArray(r)?"array":typeof r;Iu.required(t,r,i,o,a,s),n(o)},Zae=function(t,r,n,i,a){var o=t.type,s=[],l=t.required||!t.required&&i.hasOwnProperty(t.field);if(l){if($d(r,o)&&!t.required)return n();Iu.required(t,r,i,s,a,o),$d(r,o)||Iu.type(t,r,i,s,a)}n(s)},Tjt=function(t,r,n,i,a){var o=[],s=t.required||!t.required&&i.hasOwnProperty(t.field);if(s){if($d(r)&&!t.required)return n();Iu.required(t,r,i,o,a)}n(o)},LM={string:vjt,method:mjt,number:yjt,boolean:bjt,regexp:wjt,integer:Cjt,float:Ijt,array:Ejt,object:Bjt,enum:Sjt,pattern:kjt,date:Qjt,url:Zae,hex:Zae,email:Zae,required:_jt,any:Tjt};function Mye(){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 t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var Oye=Mye(),_L=function(){function e(r){this.rules=null,this._messages=Oye,this.define(r)}var t=e.prototype;return t.define=function(n){var i=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(typeof n!="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(a){var o=n[a];i.rules[a]=Array.isArray(o)?o:[o]})},t.messages=function(n){return n&&(this._messages=w7e(Mye(),n)),this._messages},t.validate=function(n,i,a){var o=this;i===void 0&&(i={}),a===void 0&&(a=function(){});var s=n,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(p){var m=[],b={};function C(_){if(Array.isArray(_)){var F;m=(F=m).concat.apply(F,_)}else m.push(_)}for(var E=0;E3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&n&&r===void 0&&!Glt(e,t.slice(0,-1))?e:$lt(e,t,r,n)}function Nye(e){return X3(e)}function Fjt(e,t){return Glt(e,t)}function Rjt(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return Djt(e,t,r,n)}function Mjt(e,t){return e&&e.some(r=>Njt(r,t))}function I7e(e){return typeof e=="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function zlt(e,t){const r=Array.isArray(e)?[...e]:$e({},e);return t&&Object.keys(t).forEach(n=>{const i=r[n],a=t[n],o=I7e(i)&&I7e(a);r[n]=o?zlt(i,a||{}):a}),r}function Ojt(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;nzlt(i,a),e)}function E7e(e,t){let r={};return t.forEach(n=>{const i=Fjt(e,n);r=Rjt(r,n,i)}),r}function Njt(e,t){return!e||!t||e.length!==t.length?!1:e.every((r,n)=>t[n]===r)}const Lm="'${name}' is not a valid ${type}",RJ={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:Lm,method:Lm,array:Lm,object:Lm,number:Lm,date:Lm,boolean:Lm,integer:Lm,float:Lm,regexp:Lm,email:Lm,url:Lm,hex:Lm},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 MJ=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(c){try{u(n.next(c))}catch(A){o(A)}}function l(c){try{u(n.throw(c))}catch(A){o(A)}}function u(c){c.done?a(c.value):i(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};const Ljt=_L;function Pjt(e,t){return e.replace(/\$\{\w+\}/g,r=>{const n=r.slice(2,-1);return t[n]})}function Lye(e,t,r,n,i){return MJ(this,void 0,void 0,function*(){const a=$e({},r);delete a.ruleIndex,delete a.trigger;let o=null;a&&a.type==="array"&&a.defaultField&&(o=a.defaultField,delete a.defaultField);const s=new Ljt({[e]:[a]}),l=Ojt({},RJ,n.validateMessages);s.messages(l);let u=[];try{yield Promise.resolve(s.validate({[e]:t},$e({},n)))}catch(f){f.errors?u=f.errors.map((h,g)=>{let{message:p}=h;return l0(p)?np(p,{key:`error_${g}`}):p}):(console.error(f),u=[l.default()])}if(!u.length&&o)return(yield Promise.all(t.map((h,g)=>Lye(`${e}.${g}`,h,o,n,i)))).reduce((h,g)=>[...h,...g],[]);const c=$e($e($e({},r),{name:e,enum:(r.enum||[]).join(", ")}),i);return u.map(f=>typeof f=="string"?Pjt(f,c):f)})}function Klt(e,t,r,n,i,a){const o=e.join("."),s=r.map((u,c)=>{const A=u.validator,f=$e($e({},u),{ruleIndex:c});return A&&(f.validator=(h,g,p)=>{let m=!1;const C=A(h,g,function(){for(var E=arguments.length,_=new Array(E),F=0;F{m||p(..._)})});m=C&&typeof C.then=="function"&&typeof C.catch=="function",m&&C.then(()=>{p()}).catch(E=>{p(E||" ")})}),f}).sort((u,c)=>{let{warningOnly:A,ruleIndex:f}=u,{warningOnly:h,ruleIndex:g}=c;return!!A==!!h?f-g:A?1:-1});let l;if(i===!0)l=new Promise((u,c)=>MJ(this,void 0,void 0,function*(){for(let A=0;ALye(o,t,c,n,a).then(A=>({errors:A,rule:c})));l=(i?Hjt(u):Ujt(u)).then(c=>Promise.reject(c))}return l.catch(u=>u),l}function Ujt(e){return MJ(this,void 0,void 0,function*(){return Promise.all(e).then(t=>[].concat(...t))})}function Hjt(e){return MJ(this,void 0,void 0,function*(){let t=0;return new Promise(r=>{e.forEach(n=>{n.then(i=>{i.errors.length&&r([i]),t+=1,t===e.length&&r([])})})})})}const Vlt=Symbol("formContextKey"),Wlt=e=>{Es(Vlt,e)},VBe=()=>Wo(Vlt,{name:vt(()=>{}),labelAlign:vt(()=>"right"),vertical:vt(()=>!1),addField:(e,t)=>{},removeField:e=>{},model:vt(()=>{}),rules:vt(()=>{}),colon:vt(()=>{}),labelWrap:vt(()=>{}),labelCol:vt(()=>{}),requiredMark:vt(()=>!1),validateTrigger:vt(()=>{}),onValidate:()=>{},validateMessages:vt(()=>RJ)}),Ylt=Symbol("formItemPrefixContextKey"),jjt=e=>{Es(Ylt,e)},Gjt=()=>Wo(Ylt,{prefixCls:vt(()=>"")});function $jt(e){return typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const zjt=()=>({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]}),Kjt=["xs","sm","md","lg","xl","xxl"],WBe=$n({compatConfig:{MODE:3},name:"ACol",inheritAttrs:!1,props:zjt(),setup(e,t){let{slots:r,attrs:n}=t;const{gutter:i,supportFlexGap:a,wrap:o}=KHt(),{prefixCls:s,direction:l}=gs("col",e),[u,c]=XHt(s),A=vt(()=>{const{span:h,order:g,offset:p,push:m,pull:b}=e,C=s.value;let E={};return Kjt.forEach(_=>{let F={};const M=e[_];typeof M=="number"?F.span=M:typeof M=="object"&&(F=M||{}),E=$e($e({},E),{[`${C}-${_}-${F.span}`]:F.span!==void 0,[`${C}-${_}-order-${F.order}`]:F.order||F.order===0,[`${C}-${_}-offset-${F.offset}`]:F.offset||F.offset===0,[`${C}-${_}-push-${F.push}`]:F.push||F.push===0,[`${C}-${_}-pull-${F.pull}`]:F.pull||F.pull===0,[`${C}-rtl`]:l.value==="rtl"})}),Vn(C,{[`${C}-${h}`]:h!==void 0,[`${C}-order-${g}`]:g,[`${C}-offset-${p}`]:p,[`${C}-push-${m}`]:m,[`${C}-pull-${b}`]:b},E,n.class,c.value)}),f=vt(()=>{const{flex:h}=e,g=i.value,p={};if(g&&g[0]>0){const m=`${g[0]/2}px`;p.paddingLeft=m,p.paddingRight=m}if(g&&g[1]>0&&!a.value){const m=`${g[1]/2}px`;p.paddingTop=m,p.paddingBottom=m}return h&&(p.flex=$jt(h),o.value===!1&&!p.minWidth&&(p.minWidth=0)),p});return()=>{var h;return u(De("div",Ot(Ot({},n),{},{class:A.value,style:[f.value,n.style]}),[(h=r.default)===null||h===void 0?void 0:h.call(r)]))}}}),YBe=(e,t)=>{let{slots:r,emit:n,attrs:i}=t;var a,o,s,l,u;const{prefixCls:c,htmlFor:A,labelCol:f,labelAlign:h,colon:g,required:p,requiredMark:m}=$e($e({},e),i),[b]=SC("Form"),C=(a=e.label)!==null&&a!==void 0?a:(o=r.label)===null||o===void 0?void 0:o.call(r);if(!C)return null;const{vertical:E,labelAlign:_,labelCol:F,labelWrap:M,colon:N}=VBe(),P=f||(F==null?void 0:F.value)||{},j=h||(_==null?void 0:_.value),z=`${c}-item-label`,W=Vn(z,j==="left"&&`${z}-left`,P.class,{[`${z}-wrap`]:!!M.value});let Y=C;const ee=g===!0||(N==null?void 0:N.value)!==!1&&g!==!1;ee&&!E.value&&typeof C=="string"&&C.trim()!==""&&(Y=C.replace(/[:|:]\s*$/,"")),Y=De(ls,null,[Y,(s=r.tooltip)===null||s===void 0?void 0:s.call(r,{class:`${c}-item-tooltip`})]),m==="optional"&&!p&&(Y=De(ls,null,[Y,De("span",{class:`${c}-item-optional`},[((l=b.value)===null||l===void 0?void 0:l.optional)||((u=r2.Form)===null||u===void 0?void 0:u.optional)])]));const ae=Vn({[`${c}-item-required`]:p,[`${c}-item-required-mark-optional`]:m==="optional",[`${c}-item-no-colon`]:!ee});return De(WBe,Ot(Ot({},P),{},{class:W}),{default:()=>[De("label",{for:A,class:ae,title:typeof C=="string"?C:"",onClick:se=>n("click",se)},[Y])]})};YBe.displayName="FormItemLabel";YBe.inheritAttrs=!1;const Vjt=e=>{const{componentCls:t}=e,r=`${t}-show-help`,n=`${t}-show-help-item`;return{[r]:{transition:`opacity ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[n]:{overflow:"hidden",transition:`height ${e.motionDurationSlow} ${e.motionEaseInOut}, opacity ${e.motionDurationSlow} ${e.motionEaseInOut}, transform ${e.motionDurationSlow} ${e.motionEaseInOut} !important`,[`&${n}-appear, &${n}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${n}-leave-active`]:{transform:"translateY(-5px)"}}}}},Wjt=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`},label:{fontSize:e.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 ${e.controlOutlineWidth}px ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),B7e=(e,t)=>{const{formItemCls:r}=e;return{[r]:{[`${r}-label > label`]:{height:t},[`${r}-control-input`]:{minHeight:t}}}},Yjt=e=>{const{componentCls:t}=e;return{[e.componentCls]:$e($e($e({},gu(e)),Wjt(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":$e({},B7e(e,e.controlHeightSM)),"&-large":$e({},B7e(e,e.controlHeightLG))})}},qjt=e=>{const{formItemCls:t,iconCls:r,componentCls:n,rootPrefixCls:i}=e;return{[t]:$e($e({},gu(e)),{marginBottom:e.marginLG,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden, &-hidden.${i}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{display:"inline-block",flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${e.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:e.controlHeight,color:e.colorTextHeading,fontSize:e.fontSize,[`> ${r}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required:not(${t}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:e.marginXXS,color:e.colorError,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${n}-hide-required-mark &`]:{display:"none"}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`${n}-hide-required-mark &`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:e.marginXXS/2,marginInlineEnd:e.marginXS},[`&${t}-no-colon::after`]:{content:'" "'}}},[`${t}-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:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[t]:{"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:uBe,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},Jjt=e=>{const{componentCls:t,formItemCls:r,rootPrefixCls:n}=e;return{[`${t}-horizontal`]:{[`${r}-label`]:{flexGrow:0},[`${r}-control`]:{flex:"1 1 0",minWidth:0},[`${r}-label.${n}-col-24 + ${r}-control`]:{minWidth:"unset"}}}},Xjt=e=>{const{componentCls:t,formItemCls:r}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[r]:{flex:"none",flexWrap:"nowrap",marginInlineEnd:e.margin,marginBottom:0,"&-with-help":{marginBottom:e.marginLG},[`> ${r}-label, > ${r}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${r}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${r}-has-feedback`]:{display:"inline-block"}}}}},R8=e=>({margin:0,padding:`0 0 ${e.paddingXS}px`,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{display:"none"}}}),Zjt=e=>{const{componentCls:t,formItemCls:r}=e;return{[`${r} ${r}-label`]:R8(e),[t]:{[r]:{flexWrap:"wrap",[`${r}-label, ${r}-control`]:{flex:"0 0 100%",maxWidth:"100%"}}}}},eGt=e=>{const{componentCls:t,formItemCls:r,rootPrefixCls:n}=e;return{[`${t}-vertical`]:{[r]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${t}-item-control`]:{width:"100%"}}},[`${t}-vertical ${r}-label, .${n}-col-24${r}-label, .${n}-col-xl-24${r}-label`]:R8(e),[`@media (max-width: ${e.screenXSMax}px)`]:[Zjt(e),{[t]:{[`.${n}-col-xs-24${r}-label`]:R8(e)}}],[`@media (max-width: ${e.screenSMMax}px)`]:{[t]:{[`.${n}-col-sm-24${r}-label`]:R8(e)}},[`@media (max-width: ${e.screenMDMax}px)`]:{[t]:{[`.${n}-col-md-24${r}-label`]:R8(e)}},[`@media (max-width: ${e.screenLGMax}px)`]:{[t]:{[`.${n}-col-lg-24${r}-label`]:R8(e)}}}},qBe=Gu("Form",(e,t)=>{let{rootPrefixCls:r}=t;const n=Al(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:r});return[Yjt(n),qjt(n),Vjt(n),Jjt(n),Xjt(n),eGt(n),BJ(n),uBe]}),tGt=$n({compatConfig:{MODE:3},name:"ErrorList",inheritAttrs:!1,props:["errors","help","onErrorVisibleChanged","helpStatus","warnings"],setup(e,t){let{attrs:r}=t;const{prefixCls:n,status:i}=Gjt(),a=vt(()=>`${n.value}-item-explain`),o=vt(()=>!!(e.errors&&e.errors.length)),s=Hn(i.value),[,l]=qBe(n);return di([o,i],()=>{o.value&&(s.value=i.value)}),()=>{var u,c;const A=xJ(`${n.value}-show-help-item`),f=dJ(`${n.value}-show-help-item`,A);return f.role="alert",f.class=[l.value,a.value,r.class,`${n.value}-show-help`],De(nm,Ot(Ot({},p5(`${n.value}-show-help`)),{},{onAfterEnter:()=>e.onErrorVisibleChanged(!0),onAfterLeave:()=>e.onErrorVisibleChanged(!1)}),{default:()=>[rp(De(gL,Ot(Ot({},f),{},{tag:"div"}),{default:()=>[(c=e.errors)===null||c===void 0?void 0:c.map((h,g)=>De("div",{key:g,class:s.value?`${a.value}-${s.value}`:""},[h]))]}),[[_y,!!(!((u=e.errors)===null||u===void 0)&&u.length)]])]})}}}),rGt=$n({compatConfig:{MODE:3},slots:Object,inheritAttrs:!1,props:["prefixCls","errors","hasFeedback","onDomErrorVisibleChange","wrapperCol","help","extra","status","marginBottom","onErrorVisibleChanged"],setup(e,t){let{slots:r}=t;const n=VBe(),{wrapperCol:i}=n,a=$e({},n);return delete a.labelCol,delete a.wrapperCol,Wlt(a),jjt({prefixCls:vt(()=>e.prefixCls),status:vt(()=>e.status)}),()=>{var o,s,l;const{prefixCls:u,wrapperCol:c,marginBottom:A,onErrorVisibleChanged:f,help:h=(o=r.help)===null||o===void 0?void 0:o.call(r),errors:g=Cg((s=r.errors)===null||s===void 0?void 0:s.call(r)),extra:p=(l=r.extra)===null||l===void 0?void 0:l.call(r)}=e,m=`${u}-item`,b=c||(i==null?void 0:i.value)||{},C=Vn(`${m}-control`,b.class);return De(WBe,Ot(Ot({},b),{},{class:C}),{default:()=>{var E;return De(ls,null,[De("div",{class:`${m}-control-input`},[De("div",{class:`${m}-control-input-content`},[(E=r.default)===null||E===void 0?void 0:E.call(r)])]),A!==null||g.length?De("div",{style:{display:"flex",flexWrap:"nowrap"}},[De(tGt,{errors:g,help:h,class:`${m}-explain-connected`,onErrorVisibleChanged:f},null),!!A&&De("div",{style:{width:0,height:`${A}px`}},null)]):null,p?De("div",{class:`${m}-extra`},[p]):null])}})}}});function nGt(e){const t=sn(e.value.slice());let r=null;return ks(()=>{clearTimeout(r),r=setTimeout(()=>{t.value=e.value},e.value.length?0:10)}),t}fC("success","warning","error","validating","");const iGt={success:bB,warning:wB,error:cm,validating:Fy};function eoe(e,t,r){let n=e;const i=t;let a=0;try{for(let o=i.length;a({htmlFor:String,prefixCls:String,label:cn.any,help:cn.any,extra:cn.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:cn.oneOf(fC("","success","warning","error","validating")),validateTrigger:{type:[String,Array]},messageVariables:{type:Object},hidden:Boolean,noStyle:Boolean});let oGt=0;const sGt="form_item",lGt=$n({compatConfig:{MODE:3},name:"AFormItem",inheritAttrs:!1,__ANT_NEW_FORM_ITEM:!0,props:aGt(),slots:Object,setup(e,t){let{slots:r,attrs:n,expose:i}=t;e.prop;const a=`form-item-${++oGt}`,{prefixCls:o}=gs("form",e),[s,l]=qBe(o),u=sn(),c=VBe(),A=vt(()=>e.name||e.prop),f=sn([]),h=sn(!1),g=sn(),p=vt(()=>{const je=A.value;return Nye(je)}),m=vt(()=>{if(p.value.length){const je=c.name.value,Ye=p.value.join("_");return je?`${je}_${Ye}`:`${sGt}_${Ye}`}else return}),b=()=>{const je=c.model.value;if(!(!je||!A.value))return eoe(je,p.value,!0).v},C=vt(()=>b()),E=sn(dK(C.value)),_=vt(()=>{let je=e.validateTrigger!==void 0?e.validateTrigger:c.validateTrigger.value;return je=je===void 0?"change":je,X3(je)}),F=vt(()=>{let je=c.rules.value;const Ye=e.rules,me=e.required!==void 0?{required:!!e.required,trigger:_.value}:[],Se=eoe(je,p.value);je=je?Se.o[Se.k]||Se.v:[];const et=[].concat(Ye||je||[]);return ZMt(et,nt=>nt.required)?et:et.concat(me)}),M=vt(()=>{const je=F.value;let Ye=!1;return je&&je.length&&je.every(me=>me.required?(Ye=!0,!1):!0),Ye||e.required}),N=sn();ks(()=>{N.value=e.validateStatus});const P=vt(()=>{let je={};return typeof e.label=="string"?je.label=e.label:e.name&&(je.label=String(e.name)),e.messageVariables&&(je=$e($e({},je),e.messageVariables)),je}),j=je=>{if(p.value.length===0)return;const{validateFirst:Ye=!1}=e,{triggerName:me}=je||{};let Se=F.value;if(me&&(Se=Se.filter(nt=>{const{trigger:tt}=nt;return!tt&&!_.value.length?!0:X3(tt||_.value).includes(me)})),!Se.length)return Promise.resolve();const et=Klt(p.value,C.value,Se,$e({validateMessages:c.validateMessages.value},je),Ye,P.value);return N.value="validating",f.value=[],et.catch(nt=>nt).then(function(){let nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(N.value==="validating"){const tt=nt.filter(ft=>ft&&ft.errors.length);N.value=tt.length?"error":"success",f.value=tt.map(ft=>ft.errors),c.onValidate(A.value,!f.value.length,f.value.length?ll(f.value[0]):null)}}),et},z=()=>{j({triggerName:"blur"})},W=()=>{if(h.value){h.value=!1;return}j({triggerName:"change"})},Y=()=>{N.value=e.validateStatus,h.value=!1,f.value=[]},ee=()=>{N.value=e.validateStatus,h.value=!0,f.value=[];const je=c.model.value||{},Ye=C.value,me=eoe(je,p.value,!0);Array.isArray(Ye)?me.o[me.k]=[].concat(E.value):me.o[me.k]=E.value,il(()=>{h.value=!1})},q=vt(()=>e.htmlFor===void 0?m.value:e.htmlFor),ae=()=>{const je=q.value;if(!je||!g.value)return;const Ye=g.value.$el.querySelector(`[id="${je}"]`);Ye&&Ye.focus&&Ye.focus()};i({onFieldBlur:z,onFieldChange:W,clearValidate:Y,resetField:ee}),uFt({id:m,onFieldBlur:()=>{e.autoLink&&z()},onFieldChange:()=>{e.autoLink&&W()},clearValidate:Y},vt(()=>!!(e.autoLink&&c.model.value&&A.value)));let se=!1;di(A,je=>{je?se||(se=!0,c.addField(a,{fieldValue:C,fieldId:m,fieldName:A,resetField:ee,clearValidate:Y,namePath:p,validateRules:j,rules:F})):(se=!1,c.removeField(a))},{immediate:!0}),el(()=>{c.removeField(a)});const de=nGt(f),Ae=vt(()=>e.validateStatus!==void 0?e.validateStatus:de.value.length?"error":N.value),be=vt(()=>({[`${o.value}-item`]:!0,[l.value]:!0,[`${o.value}-item-has-feedback`]:Ae.value&&e.hasFeedback,[`${o.value}-item-has-success`]:Ae.value==="success",[`${o.value}-item-has-warning`]:Ae.value==="warning",[`${o.value}-item-has-error`]:Ae.value==="error",[`${o.value}-item-is-validating`]:Ae.value==="validating",[`${o.value}-item-hidden`]:e.hidden})),Le=uc({});f1.useProvide(Le),ks(()=>{let je;if(e.hasFeedback){const Ye=Ae.value&&iGt[Ae.value];je=Ye?De("span",{class:Vn(`${o.value}-item-feedback-icon`,`${o.value}-item-feedback-icon-${Ae.value}`)},[De(Ye,null,null)]):null}$e(Le,{status:Ae.value,hasFeedback:e.hasFeedback,feedbackIcon:je,isFormItemInput:!0})});const Ne=sn(null),ue=sn(!1),Ke=()=>{if(u.value){const je=getComputedStyle(u.value);Ne.value=parseInt(je.marginBottom,10)}};Is(()=>{di(ue,()=>{ue.value&&Ke()},{flush:"post",immediate:!0})});const Pe=je=>{je||(Ne.value=null)};return()=>{var je,Ye;if(e.noStyle)return(je=r.default)===null||je===void 0?void 0:je.call(r);const me=(Ye=e.help)!==null&&Ye!==void 0?Ye:r.help?Cg(r.help()):null,Se=!!(me!=null&&Array.isArray(me)&&me.length||de.value.length);return ue.value=Se,s(De("div",{class:[be.value,Se?`${o.value}-item-with-help`:"",n.class],ref:u},[De(Hlt,Ot(Ot({},n),{},{class:`${o.value}-row`,key:"row"}),{default:()=>{var et,nt,tt,ft;return De(ls,null,[De(YBe,Ot(Ot({},e),{},{htmlFor:q.value,required:M.value,requiredMark:c.requiredMark.value,prefixCls:o.value,onClick:ae,label:(et=e.label)!==null&&et!==void 0?et:(nt=r.label)===null||nt===void 0?void 0:nt.call(r)}),null),De(rGt,Ot(Ot({},e),{},{errors:me!=null?X3(me):de.value,marginBottom:Ne.value,prefixCls:o.value,status:Ae.value,ref:g,help:me,extra:(tt=e.extra)!==null&&tt!==void 0?tt:(ft=r.extra)===null||ft===void 0?void 0:ft.call(r),onErrorVisibleChanged:Pe}),{default:r.default})])}}),!!Ne.value&&De("div",{class:`${o.value}-margin-offset`,style:{marginBottom:`-${Ne.value}px`}},null)]))}}});function qlt(e){let t=!1,r=e.length;const n=[];return e.length?new Promise((i,a)=>{e.forEach((o,s)=>{o.catch(l=>(t=!0,l)).then(l=>{r-=1,n[s]=l,!(r>0)&&(t&&a(n),i(n))})})}):Promise.resolve([])}function x7e(e){let t=!1;return e&&e.length&&e.every(r=>r.required?(t=!0,!1):!0),t}function S7e(e){return e==null?[]:Array.isArray(e)?e:[e]}function toe(e,t,r){let n=e;t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");const i=t.split(".");let a=0;for(let o=i.length;a1&&arguments[1]!==void 0?arguments[1]:Hn({}),r=arguments.length>2?arguments[2]:void 0;const n=dK(bA(e)),i=uc({}),a=sn([]),o=E=>{$e(bA(e),$e($e({},dK(n)),E)),il(()=>{Object.keys(i).forEach(_=>{i[_]={autoLink:!1,required:x7e(bA(t)[_])}})})},s=function(){let E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],_=arguments.length>1?arguments[1]:void 0;return _.length?E.filter(F=>{const M=S7e(F.trigger||"change");return iOt(M,_).length}):E};let l=null;const u=function(E){let _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},F=arguments.length>2?arguments[2]:void 0;const M=[],N={};for(let z=0;z({name:W,errors:[],warnings:[]})).catch(q=>{const ae=[],se=[];return q.forEach(de=>{let{rule:{warningOnly:Ae},errors:be}=de;Ae?se.push(...be):ae.push(...be)}),ae.length?Promise.reject({name:W,errors:ae,warnings:se}):{name:W,errors:ae,warnings:se}}))}const P=qlt(M);l=P;const j=P.then(()=>l===P?Promise.resolve(N):Promise.reject([])).catch(z=>{const W=z.filter(Y=>Y&&Y.errors.length);return Promise.reject({values:N,errorFields:W,outOfDate:l!==P})});return j.catch(z=>z),j},c=function(E,_,F){let M=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const N=Klt([E],_,F,$e({validateMessages:RJ},M),!!M.validateFirst);return i[E]?(i[E].validateStatus="validating",N.catch(P=>P).then(function(){let P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];var j;if(i[E].validateStatus==="validating"){const z=P.filter(W=>W&&W.errors.length);i[E].validateStatus=z.length?"error":"success",i[E].help=z.length?z.map(W=>W.errors):null,(j=r==null?void 0:r.onValidate)===null||j===void 0||j.call(r,E,!z.length,z.length?ll(i[E].help[0]):null)}}),N):N.catch(P=>P)},A=(E,_)=>{let F=[],M=!0;E?Array.isArray(E)?F=E:F=[E]:(M=!1,F=a.value);const N=u(F,_||{},M);return N.catch(P=>P),N},f=E=>{let _=[];E?Array.isArray(E)?_=E:_=[E]:_=a.value,_.forEach(F=>{i[F]&&$e(i[F],{validateStatus:"",help:null})})},h=E=>{const _={autoLink:!1},F=[],M=Array.isArray(E)?E:[E];for(let N=0;N{const _=[];a.value.forEach(F=>{const M=toe(E,F,!1),N=toe(g,F,!1);(p&&(r==null?void 0:r.immediate)&&M.isValid||!KEe(M.v,N.v))&&_.push(F)}),A(_,{trigger:"change"}),p=!1,g=dK(ll(E))},b=r==null?void 0:r.debounce;let C=!0;return di(t,()=>{a.value=t?Object.keys(bA(t)):[],!C&&r&&r.validateOnRuleChange&&A(),C=!1},{deep:!0,immediate:!0}),di(a,()=>{const E={};a.value.forEach(_=>{E[_]=$e({},i[_],{autoLink:!1,required:x7e(bA(t)[_])}),delete i[_]});for(const _ in i)Object.prototype.hasOwnProperty.call(i,_)&&delete i[_];$e(i,E)},{immediate:!0}),di(e,b&&b.wait?sst(m,b.wait,gOt(b,["wait"])):m,{immediate:r&&!!r.immediate,deep:!0}),{modelRef:e,rulesRef:t,initialModel:n,validateInfos:i,resetFields:o,validate:A,validateField:c,mergeValidateInfo:h,clearValidate:f}}const cGt=()=>({layout:cn.oneOf(fC("horizontal","inline","vertical")),labelCol:To(),wrapperCol:To(),colon:Pa(),labelAlign:Us(),labelWrap:Pa(),prefixCls:String,requiredMark:$l([String,Boolean]),hideRequiredMark:Pa(),model:cn.object,rules:To(),validateMessages:To(),validateOnRuleChange:Pa(),scrollToFirstError:Wf(),onSubmit:pi(),name:String,validateTrigger:$l([String,Array]),size:Us(),disabled:Pa(),onValuesChange:pi(),onFieldsChange:pi(),onFinish:pi(),onFinishFailed:pi(),onValidate:pi()});function AGt(e,t){return KEe(X3(e),X3(t))}const ok=$n({compatConfig:{MODE:3},name:"AForm",inheritAttrs:!1,props:ju(cGt(),{layout:"horizontal",hideRequiredMark:!1,colon:!0}),Item:lGt,useForm:uGt,setup(e,t){let{emit:r,slots:n,expose:i,attrs:a}=t;const{prefixCls:o,direction:s,form:l,size:u,disabled:c}=gs("form",e),A=vt(()=>e.requiredMark===""||e.requiredMark),f=vt(()=>{var de;return A.value!==void 0?A.value:l&&((de=l.value)===null||de===void 0?void 0:de.requiredMark)!==void 0?l.value.requiredMark:!e.hideRequiredMark});$at(u),lat(c);const h=vt(()=>{var de,Ae;return(de=e.colon)!==null&&de!==void 0?de:(Ae=l.value)===null||Ae===void 0?void 0:Ae.colon}),{validateMessages:g}=J6t(),p=vt(()=>$e($e($e({},RJ),g.value),e.validateMessages)),[m,b]=qBe(o),C=vt(()=>Vn(o.value,{[`${o.value}-${e.layout}`]:!0,[`${o.value}-hide-required-mark`]:f.value===!1,[`${o.value}-rtl`]:s.value==="rtl",[`${o.value}-${u.value}`]:u.value},b.value)),E=Hn(),_={},F=(de,Ae)=>{_[de]=Ae},M=de=>{delete _[de]},N=de=>{const Ae=!!de,be=Ae?X3(de).map(Nye):[];return Ae?Object.values(_).filter(Le=>be.findIndex(Ne=>AGt(Ne,Le.fieldName.value))>-1):Object.values(_)},P=de=>{e.model&&N(de).forEach(Ae=>{Ae.resetField()})},j=de=>{N(de).forEach(Ae=>{Ae.clearValidate()})},z=de=>{const{scrollToFirstError:Ae}=e;if(r("finishFailed",de),Ae&&de.errorFields.length){let be={};typeof Ae=="object"&&(be=Ae),Y(de.errorFields[0].name,be)}},W=function(){return ae(...arguments)},Y=function(de){let Ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const be=N(de?[de]:void 0);if(be.length){const Le=be[0].fieldId.value,Ne=Le?document.getElementById(Le):null;Ne&&F_t(Ne,$e({scrollMode:"if-needed",block:"nearest"},Ae))}},ee=function(){let de=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;if(de===!0){const Ae=[];return Object.values(_).forEach(be=>{let{namePath:Le}=be;Ae.push(Le.value)}),E7e(e.model,Ae)}else return E7e(e.model,de)},q=(de,Ae)=>{if(!e.model)return Promise.reject("Form `model` is required for validateFields to work.");const be=!!de,Le=be?X3(de).map(Nye):[],Ne=[];Object.values(_).forEach(Pe=>{var je;if(be||Le.push(Pe.namePath.value),!(!((je=Pe.rules)===null||je===void 0)&&je.value.length))return;const Ye=Pe.namePath.value;if(!be||Mjt(Le,Ye)){const me=Pe.validateRules($e({validateMessages:p.value},Ae));Ne.push(me.then(()=>({name:Ye,errors:[],warnings:[]})).catch(Se=>{const et=[],nt=[];return Se.forEach(tt=>{let{rule:{warningOnly:ft},errors:st}=tt;ft?nt.push(...st):et.push(...st)}),et.length?Promise.reject({name:Ye,errors:et,warnings:nt}):{name:Ye,errors:et,warnings:nt}}))}});const ue=qlt(Ne);E.value=ue;const Ke=ue.then(()=>E.value===ue?Promise.resolve(ee(Le)):Promise.reject([])).catch(Pe=>{const je=Pe.filter(Ye=>Ye&&Ye.errors.length);return Promise.reject({values:ee(Le),errorFields:je,outOfDate:E.value!==ue})});return Ke.catch(Pe=>Pe),Ke},ae=function(){return q(...arguments)},se=de=>{de.preventDefault(),de.stopPropagation(),r("submit",de),e.model&&q().then(be=>{r("finish",be)}).catch(be=>{z(be)})};return i({resetFields:P,clearValidate:j,validateFields:q,getFieldsValue:ee,validate:W,scrollToField:Y}),Wlt({model:vt(()=>e.model),name:vt(()=>e.name),labelAlign:vt(()=>e.labelAlign),labelCol:vt(()=>e.labelCol),labelWrap:vt(()=>e.labelWrap),wrapperCol:vt(()=>e.wrapperCol),vertical:vt(()=>e.layout==="vertical"),colon:h,requiredMark:f,validateTrigger:vt(()=>e.validateTrigger),rules:vt(()=>e.rules),addField:F,removeField:M,onValidate:(de,Ae,be)=>{r("validate",de,Ae,be)},validateMessages:p}),di(()=>e.rules,()=>{e.validateOnRuleChange&&q()}),()=>{var de;return m(De("form",Ot(Ot({},a),{},{onSubmit:se,class:[C.value,a.class]}),[(de=n.default)===null||de===void 0?void 0:de.call(n)]))}}});ok.useInjectFormItemContext=im;ok.ItemRest=cye;ok.install=function(e){return e.component(ok.name,ok),e.component(ok.Item.name,ok.Item),e.component(cye.name,cye),e};const fGt=new vl("antCheckboxEffect",{"0%":{transform:"scale(1)",opacity:.5},"100%":{transform:"scale(1.6)",opacity:0}}),hGt=e=>{const{checkboxCls:t}=e,r=`${t}-wrapper`;return[{[`${t}-group`]:$e($e({},gu(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[r]:$e($e({},gu(e)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${r}`]:{marginInlineStart:0},[`&${r}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[t]:$e($e({},gu(e)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${t}-inner`]:$e({},JE(e))},[`${t}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:e.checkboxSize/14*5,height:e.checkboxSize/14*8,border:`${e.lineWidthBold}px solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[t]:{"&-indeterminate":{[`${t}-inner`]:{"&:after":{top:"50%",insetInlineStart:"50%",width:e.fontSizeLG/2,height:e.fontSizeLG/2,backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${r}:hover ${t}:after`]:{visibility:"visible"},[` ${r}:not(${r}-disabled), ${t}:not(${t}-disabled) `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${r}:not(${r}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}},"&:after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderRadius:e.borderRadiusSM,visibility:"hidden",border:`${e.lineWidthBold}px solid ${e.colorPrimary}`,animationName:fGt,animationDuration:e.motionDurationSlow,animationTimingFunction:"ease-in-out",animationFillMode:"backwards",content:'""',transition:`all ${e.motionDurationSlow}`}},[` ${r}-checked:not(${r}-disabled), ${t}-checked:not(${t}-disabled) `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}:after`]:{borderColor:e.colorPrimaryHover}}},{[`${r}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function Jlt(e,t){const r=Al(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return[hGt(r)]}const Xlt=Gu("Checkbox",(e,t)=>{let{prefixCls:r}=t;return[Jlt(r,e)]}),dGt=()=>({name:String,prefixCls:String,options:nc([]),disabled:Boolean,id:String}),gGt=()=>$e($e({},dGt()),{defaultValue:nc(),value:nc(),onChange:pi(),"onUpdate:value":pi()}),pGt=()=>({prefixCls:String,defaultChecked:Pa(),checked:Pa(),disabled:Pa(),isGroup:Pa(),value:cn.any,name:String,id:String,indeterminate:Pa(),type:Us("checkbox"),autofocus:Pa(),onChange:pi(),"onUpdate:checked":pi(),onClick:pi(),skipGroup:Pa(!1)}),vGt=()=>$e($e({},pGt()),{indeterminate:Pa(!1)}),Zlt=Symbol("CheckboxGroupContext");var k7e=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i(h==null?void 0:h.disabled.value)||c.value);ks(()=>{!e.skipGroup&&h&&h.registerValue(g,e.value)}),el(()=>{h&&h.cancelValue(g)}),Is(()=>{vB(!!(e.checked!==void 0||h||e.value===void 0))});const m=_=>{const F=_.target.checked;r("update:checked",F),r("change",_)},b=Hn();return a({focus:()=>{var _;(_=b.value)===null||_===void 0||_.focus()},blur:()=>{var _;(_=b.value)===null||_===void 0||_.blur()}}),()=>{var _;const F=sf((_=i.default)===null||_===void 0?void 0:_.call(i)),{indeterminate:M,skipGroup:N,id:P=o.id.value}=e,j=k7e(e,["indeterminate","skipGroup","id"]),{onMouseenter:z,onMouseleave:W,onInput:Y,class:ee,style:q}=n,ae=k7e(n,["onMouseenter","onMouseleave","onInput","class","style"]),se=$e($e($e($e({},j),{id:P,prefixCls:l.value}),ae),{disabled:p.value});h&&!N?(se.onChange=function(){for(var Le=arguments.length,Ne=new Array(Le),ue=0;ue`${s.value}-group`),[c,A]=Xlt(u),f=Hn((e.value===void 0?e.defaultValue:e.value)||[]);di(()=>e.value,()=>{f.value=e.value||[]});const h=vt(()=>e.options.map(_=>typeof _=="string"||typeof _=="number"?{label:_,value:_}:_)),g=Hn(Symbol()),p=Hn(new Map),m=_=>{p.value.delete(_),g.value=Symbol()},b=(_,F)=>{p.value.set(_,F),g.value=Symbol()},C=Hn(new Map);return di(g,()=>{const _=new Map;for(const F of p.value.values())_.set(F,!0);C.value=_}),Es(Zlt,{cancelValue:m,registerValue:b,toggleOption:_=>{const F=f.value.indexOf(_.value),M=[...f.value];F===-1?M.push(_.value):M.splice(F,1),e.value===void 0&&(f.value=M);const N=M.filter(P=>C.value.has(P)).sort((P,j)=>{const z=h.value.findIndex(Y=>Y.value===P),W=h.value.findIndex(Y=>Y.value===j);return z-W});i("update:value",N),i("change",N),o.onFieldChange()},mergedValue:f,name:vt(()=>e.name),disabled:vt(()=>e.disabled)}),a({mergedValue:f}),()=>{var _;const{id:F=o.id.value}=e;let M=null;return h.value&&h.value.length>0&&(M=h.value.map(N=>{var P;return De(RE,{prefixCls:s.value,key:N.value.toString(),disabled:"disabled"in N?N.disabled:e.disabled,indeterminate:N.indeterminate,value:N.value,checked:f.value.indexOf(N.value)!==-1,onChange:N.onChange,class:`${u.value}-item`},{default:()=>[r.label!==void 0?(P=r.label)===null||P===void 0?void 0:P.call(r,N):N.label]})})),c(De("div",Ot(Ot({},n),{},{class:[u.value,{[`${u.value}-rtl`]:l.value==="rtl"},n.class,A.value],id:F}),[M||((_=r.default)===null||_===void 0?void 0:_.call(r))]))}}});RE.Group=Pye;RE.install=function(e){return e.component(RE.name,RE),e.component(Pye.name,Pye),e};const pZr=Ly(WBe);let QK=$e({},r2.Modal);function mGt(e){e?QK=$e($e({},QK),e):QK=$e({},r2.Modal)}function yGt(){return QK}const Uye="internalMark",_K=$n({compatConfig:{MODE:3},name:"ALocaleProvider",props:{locale:{type:Object},ANT_MARK__:String},setup(e,t){let{slots:r}=t;vB(e.ANT_MARK__===Uye);const n=uc({antLocale:$e($e({},e.locale),{exist:!0}),ANT_MARK__:Uye});return Es("localeData",n),di(()=>e.locale,i=>{mGt(i&&i.Modal),n.antLocale=$e($e({},i),{exist:!0})},{immediate:!0}),()=>{var i;return(i=r.default)===null||i===void 0?void 0:i.call(r)}}});_K.install=function(e){return e.component(_K.name,_K),e};const bGt=Ly(_K),eut=$n({name:"Notice",inheritAttrs:!1,props:["prefixCls","duration","updateMark","noticeKey","closeIcon","closable","props","onClick","onClose","holder","visible"],setup(e,t){let{attrs:r,slots:n}=t,i,a=!1;const o=vt(()=>e.duration===void 0?4.5:e.duration),s=()=>{o.value&&!a&&(i=setTimeout(()=>{u()},o.value*1e3))},l=()=>{i&&(clearTimeout(i),i=null)},u=A=>{A&&A.stopPropagation(),l();const{onClose:f,noticeKey:h}=e;f&&f(h)},c=()=>{l(),s()};return Is(()=>{s()}),um(()=>{a=!0,l()}),di([o,()=>e.updateMark,()=>e.visible],(A,f)=>{let[h,g,p]=A,[m,b,C]=f;(h!==m||g!==b||p!==C&&C)&&c()},{flush:"post"}),()=>{var A,f;const{prefixCls:h,closable:g,closeIcon:p=(A=n.closeIcon)===null||A===void 0?void 0:A.call(n),onClick:m,holder:b}=e,{class:C,style:E}=r,_=`${h}-notice`,F=Object.keys(r).reduce((N,P)=>((P.startsWith("data-")||P.startsWith("aria-")||P==="role")&&(N[P]=r[P]),N),{}),M=De("div",Ot({class:Vn(_,C,{[`${_}-closable`]:g}),style:E,onMouseenter:l,onMouseleave:s,onClick:m},F),[De("div",{class:`${_}-content`},[(f=n.default)===null||f===void 0?void 0:f.call(n)]),g?De("a",{tabindex:0,onClick:u,class:`${_}-close`},[p||De("span",{class:`${_}-close-x`},null)]):null]);return b?De(Wq,{to:b},{default:()=>M}):M}}});var wGt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{const{prefixCls:c,animation:A="fade"}=e;let f=e.transitionName;return!f&&A&&(f=`${c}-${A}`),dJ(f)}),l=(c,A)=>{const f=c.key||_7e(),h=$e($e({},c),{key:f}),{maxCount:g}=e,p=o.value.map(b=>b.notice.key).indexOf(f),m=o.value.concat();p!==-1?m.splice(p,1,{notice:h,holderCallback:A}):(g&&o.value.length>=g&&(h.key=m[0].notice.key,h.updateMark=_7e(),h.userPassKey=f,m.shift()),m.push({notice:h,holderCallback:A})),o.value=m},u=c=>{o.value=o.value.filter(A=>{let{notice:{key:f,userPassKey:h}}=A;return(h||f)!==c})};return n({add:l,remove:u,notices:o}),()=>{var c;const{prefixCls:A,closeIcon:f=(c=i.closeIcon)===null||c===void 0?void 0:c.call(i,{prefixCls:A})}=e,h=o.value.map((p,m)=>{let{notice:b,holderCallback:C}=p;const E=m===o.value.length-1?b.updateMark:void 0,{key:_,userPassKey:F}=b,{content:M}=b,N=$e($e($e({prefixCls:A,closeIcon:typeof f=="function"?f({prefixCls:A}):f},b),b.props),{key:_,noticeKey:F||_,updateMark:E,onClose:P=>{var j;u(P),(j=b.onClose)===null||j===void 0||j.call(b)},onClick:b.onClick});return C?De("div",{key:_,class:`${A}-hook-holder`,ref:P=>{typeof _>"u"||(P?(a.set(_,P),C(P,N)):a.delete(_))}},null):De(eut,Ot(Ot({},N),{},{class:Vn(N.class,e.hashId)}),{default:()=>[typeof M=="function"?M({prefixCls:A}):M]})}),g={[A]:1,[r.class]:!!r.class,[e.hashId]:!0};return De("div",{class:g,style:r.style||{top:"65px",left:"50%"}},[De(gL,Ot({tag:"div"},s.value),{default:()=>[h]})])}}});BW.newInstance=function(t,r){const n=t||{},{name:i="notification",getContainer:a,appContext:o,prefixCls:s,rootPrefixCls:l,transitionName:u,hasTransitionName:c,useStyle:A}=n,f=wGt(n,["name","getContainer","appContext","prefixCls","rootPrefixCls","transitionName","hasTransitionName","useStyle"]),h=document.createElement("div");a?a().appendChild(h):document.body.appendChild(h);const p=De($n({compatConfig:{MODE:3},name:"NotificationWrapper",setup(m,b){let{attrs:C}=b;const E=sn(),_=vt(()=>zg.getPrefixCls(i,s)),[,F]=A(_);return Is(()=>{r({notice(M){var N;(N=E.value)===null||N===void 0||N.add(M)},removeNotice(M){var N;(N=E.value)===null||N===void 0||N.remove(M)},destroy(){h5(null,h),h.parentNode&&h.parentNode.removeChild(h)},component:E})}),()=>{const M=zg,N=M.getRootPrefixCls(l,_.value),P=c?u:`${_.value}-${u}`;return De(g9,Ot(Ot({},M),{},{prefixCls:N}),{default:()=>[De(BW,Ot(Ot({ref:E},C),{},{prefixCls:_.value,transitionName:P,hashId:F.value}),null)]})}}}),f);p.appContext=o||p.appContext,h5(p,h)};let T7e=0;const IGt=Date.now();function D7e(){const e=T7e;return T7e+=1,`rcNotification_${IGt}_${e}`}const EGt=$n({name:"HookNotification",inheritAttrs:!1,props:["prefixCls","transitionName","animation","maxCount","closeIcon","hashId","remove","notices","getStyles","getClassName","onAllRemoved","getContainer"],setup(e,t){let{attrs:r,slots:n}=t;const i=new Map,a=vt(()=>e.notices),o=vt(()=>{let c=e.transitionName;if(!c&&e.animation)switch(typeof e.animation){case"string":c=e.animation;break;case"function":c=e.animation().name;break;case"object":c=e.animation.name;break;default:c=`${e.prefixCls}-fade`;break}return dJ(c)}),s=c=>e.remove(c),l=Hn({});di(a,()=>{const c={};Object.keys(l.value).forEach(A=>{c[A]=[]}),e.notices.forEach(A=>{const{placement:f="topRight"}=A.notice;f&&(c[f]=c[f]||[],c[f].push(A))}),l.value=c});const u=vt(()=>Object.keys(l.value));return()=>{var c;const{prefixCls:A,closeIcon:f=(c=n.closeIcon)===null||c===void 0?void 0:c.call(n,{prefixCls:A})}=e,h=u.value.map(g=>{var p,m;const b=l.value[g],C=(p=e.getClassName)===null||p===void 0?void 0:p.call(e,g),E=(m=e.getStyles)===null||m===void 0?void 0:m.call(e,g),_=b.map((N,P)=>{let{notice:j,holderCallback:z}=N;const W=P===a.value.length-1?j.updateMark:void 0,{key:Y,userPassKey:ee}=j,{content:q}=j,ae=$e($e($e({prefixCls:A,closeIcon:typeof f=="function"?f({prefixCls:A}):f},j),j.props),{key:Y,noticeKey:ee||Y,updateMark:W,onClose:se=>{var de;s(se),(de=j.onClose)===null||de===void 0||de.call(j)},onClick:j.onClick});return z?De("div",{key:Y,class:`${A}-hook-holder`,ref:se=>{typeof Y>"u"||(se?(i.set(Y,se),z(se,ae)):i.delete(Y))}},null):De(eut,Ot(Ot({},ae),{},{class:Vn(ae.class,e.hashId)}),{default:()=>[typeof q=="function"?q({prefixCls:A}):q]})}),F={[A]:1,[`${A}-${g}`]:1,[r.class]:!!r.class,[e.hashId]:!0,[C]:!!C};function M(){var N;b.length>0||(Reflect.deleteProperty(l.value,g),(N=e.onAllRemoved)===null||N===void 0||N.call(e))}return De("div",{key:g,class:F,style:r.style||E||{top:"65px",left:"50%"}},[De(gL,Ot(Ot({tag:"div"},o.value),{},{onAfterLeave:M}),{default:()=>[_]})])});return De(Cot,{getContainer:e.getContainer},{default:()=>[h]})}}});var BGt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);idocument.body;let F7e=0;function SGt(){const e={};for(var t=arguments.length,r=new Array(t),n=0;n{i&&Object.keys(i).forEach(a=>{const o=i[a];o!==void 0&&(e[a]=o)})}),e}function tut(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{getContainer:t=xGt,motion:r,prefixCls:n,maxCount:i,getClassName:a,getStyles:o,onAllRemoved:s}=e,l=BGt(e,["getContainer","motion","prefixCls","maxCount","getClassName","getStyles","onAllRemoved"]),u=sn([]),c=sn(),A=(b,C)=>{const E=b.key||D7e(),_=$e($e({},b),{key:E}),F=u.value.map(N=>N.notice.key).indexOf(E),M=u.value.concat();F!==-1?M.splice(F,1,{notice:_,holderCallback:C}):(i&&u.value.length>=i&&(_.key=M[0].notice.key,_.updateMark=D7e(),_.userPassKey=E,M.shift()),M.push({notice:_,holderCallback:C})),u.value=M},f=b=>{u.value=u.value.filter(C=>{let{notice:{key:E,userPassKey:_}}=C;return(_||E)!==b})},h=()=>{u.value=[]},g=vt(()=>De(EGt,{ref:c,prefixCls:n,maxCount:i,notices:u.value,remove:f,getClassName:a,getStyles:o,animation:r,hashId:e.hashId,onAllRemoved:s,getContainer:t},null)),p=sn([]),m={open:b=>{const C=SGt(l,b);(C.key===null||C.key===void 0)&&(C.key=`vc-notification-${F7e}`,F7e+=1),p.value=[...p.value,{type:"open",config:C}]},close:b=>{p.value=[...p.value,{type:"close",key:b}]},destroy:()=>{p.value=[...p.value,{type:"destroy"}]}};return di(p,()=>{p.value.length&&(p.value.forEach(b=>{switch(b.type){case"open":A(b.config);break;case"close":f(b.key);break;case"destroy":h();break}}),p.value=[])}),[m,()=>g.value]}const kGt=e=>{const{componentCls:t,iconCls:r,boxShadowSecondary:n,colorBgElevated:i,colorSuccess:a,colorError:o,colorWarning:s,colorInfo:l,fontSizeLG:u,motionEaseInOutCirc:c,motionDurationSlow:A,marginXS:f,paddingXS:h,borderRadiusLG:g,zIndexPopup:p,messageNoticeContentPadding:m}=e,b=new vl("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:h,transform:"translateY(0)",opacity:1}}),C=new vl("MessageMoveOut",{"0%":{maxHeight:e.height,padding:h,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}});return[{[t]:$e($e({},gu(e)),{position:"fixed",top:f,width:"100%",pointerEvents:"none",zIndex:p,[`${t}-move-up`]:{animationFillMode:"forwards"},[` ${t}-move-up-appear, ${t}-move-up-enter `]:{animationName:b,animationDuration:A,animationPlayState:"paused",animationTimingFunction:c},[` ${t}-move-up-appear${t}-move-up-appear-active, ${t}-move-up-enter${t}-move-up-enter-active `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:C,animationDuration:A,animationPlayState:"paused",animationTimingFunction:c},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[`${t}-notice`]:{padding:h,textAlign:"center",[r]:{verticalAlign:"text-bottom",marginInlineEnd:f,fontSize:u},[`${t}-notice-content`]:{display:"inline-block",padding:m,background:i,borderRadius:g,boxShadow:n,pointerEvents:"all"},[`${t}-success ${r}`]:{color:a},[`${t}-error ${r}`]:{color:o},[`${t}-warning ${r}`]:{color:s},[` ${t}-info ${r}, ${t}-loading ${r}`]:{color:l}}},{[`${t}-notice-pure-panel`]:{padding:0,textAlign:"start"}}]},rut=Gu("Message",e=>{const t=Al(e,{messageNoticeContentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`});return[kGt(t)]},e=>({height:150,zIndexPopup:e.zIndexPopupBase+10}));var QGt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},_Gt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M296 250c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H296zm184 144H296c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zm-48 458H208V148h560v320c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V108c0-17.7-14.3-32-32-32H168c-17.7 0-32 14.3-32 32v784c0 17.7 14.3 32 32 32h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm440-88H728v-36.6c46.3-13.8 80-56.6 80-107.4 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 50.7 33.7 93.6 80 107.4V764H520c-8.8 0-16 7.2-16 16v152c0 8.8 7.2 16 16 16h352c8.8 0 16-7.2 16-16V780c0-8.8-7.2-16-16-16zM646 620c0-27.6 22.4-50 50-50s50 22.4 50 50-22.4 50-50 50-50-22.4-50-50zm180 266H566v-60h260v60z"}}]},name:"audit",theme:"outlined"},TGt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};function R7e(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function L$t(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}var UJ=function(t,r){var n=r.attrs,i=r.slots,a=oG({},t,n),o=a.class,s=a.component,l=a.viewBox,u=a.spin,c=a.rotate,A=a.tabindex,f=a.onClick,h=N$t(a,O$t),g=i.default&&i.default(),p=g&&g.length,m=i.component;jot();var b=aut({anticon:!0},o,o),C={"anticon-spin":u===""||!!u},E=c?{msTransform:"rotate(".concat(c,"deg)"),transform:"rotate(".concat(c,"deg)")}:void 0,_=oG({},_Dt,{viewBox:l,class:C,style:E});l||delete _.viewBox;var F=function(){return s?De(s,_,{default:function(){return[g]}}):m?m(_):p?(l||g.length===1&&g[0]&&g[0].type,De("svg",oG({},_,{viewBox:l}),[g])):null},M=A;return M===void 0&&f&&(M=-1,h.tabindex=M),De("span",oG({role:"img"},h,{onClick:f,class:b}),[F()])};UJ.props={spin:Boolean,rotate:Number,viewBox:String,ariaLabel:String};UJ.inheritAttrs=!1;UJ.displayName="Icon";const P$t={info:De(eQ,null,null),success:De(bB,null,null),error:De(cm,null,null),warning:De(wB,null,null),loading:De(Fy,null,null)},U$t=$n({name:"PureContent",inheritAttrs:!1,props:["prefixCls","type","icon"],setup(e,t){let{slots:r}=t;return()=>{var n;return De("div",{class:Vn(`${e.prefixCls}-custom-content`,`${e.prefixCls}-${e.type}`)},[e.icon||P$t[e.type],De("span",null,[(n=r.default)===null||n===void 0?void 0:n.call(r)])])}}});var H$t=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);ii("message",e.prefixCls)),[,s]=rut(o),l=()=>{var g;const p=(g=e.top)!==null&&g!==void 0?g:j$t;return{left:"50%",transform:"translateX(-50%)",top:typeof p=="number"?`${p}px`:p}},u=()=>Vn(s.value,e.rtl?`${o.value}-rtl`:""),c=()=>{var g;return DEe({prefixCls:o.value,animation:(g=e.animation)!==null&&g!==void 0?g:"move-up",transitionName:e.transitionName})},A=De("span",{class:`${o.value}-close-x`},[De(UJ,{class:`${o.value}-close-icon`},null)]),[f,h]=tut({getStyles:l,prefixCls:o.value,getClassName:u,motion:c,closable:!1,closeIcon:A,duration:(n=e.duration)!==null&&n!==void 0?n:G$t,getContainer:()=>{var g,p;return((g=e.staticGetContainer)===null||g===void 0?void 0:g.call(e))||((p=a.value)===null||p===void 0?void 0:p.call(a))||document.body},maxCount:e.maxCount,onAllRemoved:e.onAllRemoved});return r($e($e({},f),{prefixCls:o,hashId:s})),h}});let nTe=0;function z$t(e){const t=sn(null),r=Symbol("messageHolderKey"),n=l=>{var u;(u=t.value)===null||u===void 0||u.close(l)},i=l=>{if(!t.value){const F=()=>{};return F.then=()=>{},F}const{open:u,prefixCls:c,hashId:A}=t.value,f=`${c}-notice`,{content:h,icon:g,type:p,key:m,class:b,onClose:C}=l,E=H$t(l,["content","icon","type","key","class","onClose"]);let _=m;return _==null&&(nTe+=1,_=`antd-message-${nTe}`),h6t(F=>(u($e($e({},E),{key:_,content:()=>De(U$t,{prefixCls:c,type:p,icon:typeof g=="function"?g():g},{default:()=>[typeof h=="function"?h():h]}),placement:"top",class:Vn(p&&`${f}-${p}`,A,b),onClose:()=>{C==null||C(),F()}})),()=>{n(_)}))},o={open:i,destroy:l=>{var u;l!==void 0?n(l):(u=t.value)===null||u===void 0||u.destroy()}};return["info","success","warning","error","loading"].forEach(l=>{const u=(c,A,f)=>{let h;c&&typeof c=="object"&&"content"in c?h=c:h={content:c};let g,p;typeof A=="function"?p=A:(g=A,p=f);const m=$e($e({onClose:p,duration:g},h),{type:l});return i(m)};o[l]=u}),[o,()=>De($$t,Ot(Ot({key:r},e),{},{ref:t}),null)]}function K$t(e){return z$t(e)}let out=3,sut,j0,V$t=1,lut="",uut="move-up",cut=!1,Aut=()=>document.body,fut,hut=!1;function W$t(){return V$t++}function Y$t(e){e.top!==void 0&&(sut=e.top,j0=null),e.duration!==void 0&&(out=e.duration),e.prefixCls!==void 0&&(lut=e.prefixCls),e.getContainer!==void 0&&(Aut=e.getContainer,j0=null),e.transitionName!==void 0&&(uut=e.transitionName,j0=null,cut=!0),e.maxCount!==void 0&&(fut=e.maxCount,j0=null),e.rtl!==void 0&&(hut=e.rtl)}function q$t(e,t){if(j0){t(j0);return}BW.newInstance({appContext:e.appContext,prefixCls:e.prefixCls||lut,rootPrefixCls:e.rootPrefixCls,transitionName:uut,hasTransitionName:cut,style:{top:sut},getContainer:Aut||e.getPopupContainer,maxCount:fut,name:"message",useStyle:rut},r=>{if(j0){t(j0);return}j0=r,t(r)})}const dut={info:eQ,success:bB,error:cm,warning:wB,loading:Fy},J$t=Object.keys(dut);function X$t(e){const t=e.duration!==void 0?e.duration:out,r=e.key||W$t(),n=new Promise(a=>{const o=()=>(typeof e.onClose=="function"&&e.onClose(),a(!0));q$t(e,s=>{s.notice({key:r,duration:t,style:e.style||{},class:e.class,content:l=>{let{prefixCls:u}=l;const c=dut[e.type],A=c?De(c,null,null):"",f=Vn(`${u}-custom-content`,{[`${u}-${e.type}`]:e.type,[`${u}-rtl`]:hut===!0});return De("div",{class:f},[typeof e.icon=="function"?e.icon():e.icon||A,De("span",null,[typeof e.content=="function"?e.content():e.content])])},onClose:o,onClick:e.onClick})})}),i=()=>{j0&&j0.removeNotice(r)};return i.then=(a,o)=>n.then(a,o),i.promise=n,i}function Z$t(e){return Object.prototype.toString.call(e)==="[object Object]"&&!!e.content}const YO={open:X$t,config:Y$t,destroy(e){if(j0)if(e){const{removeNotice:t}=j0;t(e)}else{const{destroy:t}=j0;t(),j0=null}}};function ezt(e,t){e[t]=(r,n,i)=>Z$t(r)?e.open($e($e({},r),{type:t})):(typeof n=="function"&&(i=n,n=void 0),e.open({content:r,duration:n,type:t,onClose:i}))}J$t.forEach(e=>ezt(YO,e));YO.warn=YO.warning;YO.useMessage=K$t;const tzt=e=>{const{componentCls:t,width:r,notificationMarginEdge:n}=e,i=new vl("antNotificationTopFadeIn",{"0%":{marginTop:"-100%",opacity:0},"100%":{marginTop:0,opacity:1}}),a=new vl("antNotificationBottomFadeIn",{"0%":{marginBottom:"-100%",opacity:0},"100%":{marginBottom:0,opacity:1}}),o=new vl("antNotificationLeftFadeIn",{"0%":{right:{_skip_check_:!0,value:r},opacity:0},"100%":{right:{_skip_check_:!0,value:0},opacity:1}});return{[`&${t}-top, &${t}-bottom`]:{marginInline:0},[`&${t}-top`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:i}},[`&${t}-bottom`]:{[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:a}},[`&${t}-topLeft, &${t}-bottomLeft`]:{marginInlineEnd:0,marginInlineStart:n,[`${t}-fade-enter${t}-fade-enter-active, ${t}-fade-appear${t}-fade-appear-active`]:{animationName:o}}}},rzt=e=>{const{iconCls:t,componentCls:r,boxShadowSecondary:n,fontSizeLG:i,notificationMarginBottom:a,borderRadiusLG:o,colorSuccess:s,colorInfo:l,colorWarning:u,colorError:c,colorTextHeading:A,notificationBg:f,notificationPadding:h,notificationMarginEdge:g,motionDurationMid:p,motionEaseInOut:m,fontSize:b,lineHeight:C,width:E,notificationIconSize:_}=e,F=`${r}-notice`,M=new vl("antNotificationFadeIn",{"0%":{left:{_skip_check_:!0,value:E},opacity:0},"100%":{left:{_skip_check_:!0,value:0},opacity:1}}),N=new vl("antNotificationFadeOut",{"0%":{maxHeight:e.animationMaxHeight,marginBottom:a,opacity:1},"100%":{maxHeight:0,marginBottom:0,paddingTop:0,paddingBottom:0,opacity:0}});return[{[r]:$e($e($e($e({},gu(e)),{position:"fixed",zIndex:e.zIndexPopup,marginInlineEnd:g,[`${r}-hook-holder`]:{position:"relative"},[`&${r}-top, &${r}-bottom`]:{[`${r}-notice`]:{marginInline:"auto auto"}},[`&${r}-topLeft, &${r}-bottomLeft`]:{[`${r}-notice`]:{marginInlineEnd:"auto",marginInlineStart:0}},[`${r}-fade-enter, ${r}-fade-appear`]:{animationDuration:e.motionDurationMid,animationTimingFunction:m,animationFillMode:"both",opacity:0,animationPlayState:"paused"},[`${r}-fade-leave`]:{animationTimingFunction:m,animationFillMode:"both",animationDuration:p,animationPlayState:"paused"},[`${r}-fade-enter${r}-fade-enter-active, ${r}-fade-appear${r}-fade-appear-active`]:{animationName:M,animationPlayState:"running"},[`${r}-fade-leave${r}-fade-leave-active`]:{animationName:N,animationPlayState:"running"}}),tzt(e)),{"&-rtl":{direction:"rtl",[`${r}-notice-btn`]:{float:"left"}}})},{[F]:{position:"relative",width:E,maxWidth:`calc(100vw - ${g*2}px)`,marginBottom:a,marginInlineStart:"auto",padding:h,overflow:"hidden",lineHeight:C,wordWrap:"break-word",background:f,borderRadius:o,boxShadow:n,[`${r}-close-icon`]:{fontSize:b,cursor:"pointer"},[`${F}-message`]:{marginBottom:e.marginXS,color:A,fontSize:i,lineHeight:e.lineHeightLG},[`${F}-description`]:{fontSize:b},[`&${F}-closable ${F}-message`]:{paddingInlineEnd:e.paddingLG},[`${F}-with-icon ${F}-message`]:{marginBottom:e.marginXS,marginInlineStart:e.marginSM+_,fontSize:i},[`${F}-with-icon ${F}-description`]:{marginInlineStart:e.marginSM+_,fontSize:b},[`${F}-icon`]:{position:"absolute",fontSize:_,lineHeight:0,[`&-success${t}`]:{color:s},[`&-info${t}`]:{color:l},[`&-warning${t}`]:{color:u},[`&-error${t}`]:{color:c}},[`${F}-close`]:{position:"absolute",top:e.notificationPaddingVertical,insetInlineEnd:e.notificationPaddingHorizontal,color:e.colorIcon,outline:"none",width:e.notificationCloseButtonSize,height:e.notificationCloseButtonSize,borderRadius:e.borderRadiusSM,transition:`background-color ${e.motionDurationMid}, color ${e.motionDurationMid}`,display:"flex",alignItems:"center",justifyContent:"center","&:hover":{color:e.colorIconHover,backgroundColor:e.wireframe?"transparent":e.colorFillContent}},[`${F}-btn`]:{float:"right",marginTop:e.marginSM}}},{[`${F}-pure-panel`]:{margin:0}}]},gut=Gu("Notification",e=>{const t=e.paddingMD,r=e.paddingLG,n=Al(e,{notificationBg:e.colorBgElevated,notificationPaddingVertical:t,notificationPaddingHorizontal:r,notificationPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`,notificationMarginBottom:e.margin,notificationMarginEdge:e.marginLG,animationMaxHeight:150,notificationIconSize:e.fontSizeLG*e.lineHeightLG,notificationCloseButtonSize:e.controlHeightLG*.55});return[rzt(n)]},e=>({zIndexPopup:e.zIndexPopupBase+50,width:384}));function nzt(e,t){return De("span",{class:`${e}-close-x`},[De(QC,{class:`${e}-close-icon`},null)])}De(eQ,null,null),De(bB,null,null),De(cm,null,null),De(wB,null,null),De(Fy,null,null);const izt={success:bB,info:eQ,error:cm,warning:wB};function azt(e){let{prefixCls:t,icon:r,type:n,message:i,description:a,btn:o}=e,s=null;if(r)s=De("span",{class:`${t}-icon`},[q8(r)]);else if(n){const l=izt[n];s=De(l,{class:`${t}-icon ${t}-icon-${n}`},null)}return De("div",{class:Vn({[`${t}-with-icon`]:s}),role:"alert"},[s,De("div",{class:`${t}-message`},[i]),De("div",{class:`${t}-description`},[a]),o&&De("div",{class:`${t}-btn`},[o])])}function put(e,t,r){let n;switch(t=typeof t=="number"?`${t}px`:t,r=typeof r=="number"?`${r}px`:r,e){case"top":n={left:"50%",transform:"translateX(-50%)",right:"auto",top:t,bottom:"auto"};break;case"topLeft":n={left:0,top:t,bottom:"auto"};break;case"topRight":n={right:0,top:t,bottom:"auto"};break;case"bottom":n={left:"50%",transform:"translateX(-50%)",right:"auto",top:"auto",bottom:r};break;case"bottomLeft":n={left:0,top:"auto",bottom:r};break;default:n={right:0,top:"auto",bottom:r};break}return n}function ozt(e){return{name:`${e}-fade`}}var szt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);ie.prefixCls||n("notification")),o=f=>{var h,g;return put(f,(h=e.top)!==null&&h!==void 0?h:iTe,(g=e.bottom)!==null&&g!==void 0?g:iTe)},[,s]=gut(a),l=()=>Vn(s.value,{[`${a.value}-rtl`]:e.rtl}),u=()=>ozt(a.value),[c,A]=tut({prefixCls:a.value,getStyles:o,getClassName:l,motion:u,closable:!0,closeIcon:nzt(a.value),duration:lzt,getContainer:()=>{var f,h;return((f=e.getPopupContainer)===null||f===void 0?void 0:f.call(e))||((h=i.value)===null||h===void 0?void 0:h.call(i))||document.body},maxCount:e.maxCount,hashId:s.value,onAllRemoved:e.onAllRemoved});return r($e($e({},c),{prefixCls:a.value,hashId:s})),A}});function czt(e){const t=sn(null),r=Symbol("notificationHolderKey"),n=s=>{if(!t.value)return;const{open:l,prefixCls:u,hashId:c}=t.value,A=`${u}-notice`,{message:f,description:h,icon:g,type:p,btn:m,class:b}=s,C=szt(s,["message","description","icon","type","btn","class"]);return l($e($e({placement:"topRight"},C),{content:()=>De(azt,{prefixCls:A,icon:typeof g=="function"?g():g,type:p,message:typeof f=="function"?f():f,description:typeof h=="function"?h():h,btn:typeof m=="function"?m():m},null),class:Vn(p&&`${A}-${p}`,c,b)}))},a={open:n,destroy:s=>{var l,u;s!==void 0?(l=t.value)===null||l===void 0||l.close(s):(u=t.value)===null||u===void 0||u.destroy()}};return["success","info","warning","error"].forEach(s=>{a[s]=l=>n($e($e({},l),{type:s}))}),[a,()=>De(uzt,Ot(Ot({key:r},e),{},{ref:t}),null)]}function Azt(e){return czt(e)}const sk={};let vut=4.5,mut="24px",yut="24px",Hye="",but="topRight",wut=()=>document.body,Cut=null,jye=!1,Iut;function fzt(e){const{duration:t,placement:r,bottom:n,top:i,getContainer:a,closeIcon:o,prefixCls:s}=e;s!==void 0&&(Hye=s),t!==void 0&&(vut=t),r!==void 0&&(but=r),n!==void 0&&(yut=typeof n=="number"?`${n}px`:n),i!==void 0&&(mut=typeof i=="number"?`${i}px`:i),a!==void 0&&(wut=a),o!==void 0&&(Cut=o),e.rtl!==void 0&&(jye=e.rtl),e.maxCount!==void 0&&(Iut=e.maxCount)}function hzt(e,t){let{prefixCls:r,placement:n=but,getContainer:i=wut,top:a,bottom:o,closeIcon:s=Cut,appContext:l}=e;const{getPrefixCls:u}=Bzt(),c=u("notification",r||Hye),A=`${c}-${n}-${jye}`,f=sk[A];if(f){Promise.resolve(f).then(g=>{t(g)});return}const h=Vn(`${c}-${n}`,{[`${c}-rtl`]:jye===!0});BW.newInstance({name:"notification",prefixCls:r||Hye,useStyle:gut,class:h,style:put(n,a??mut,o??yut),appContext:l,getContainer:i,closeIcon:g=>{let{prefixCls:p}=g;return De("span",{class:`${p}-close-x`},[q8(s,{},De(QC,{class:`${p}-close-icon`},null))])},maxCount:Iut,hasTransitionName:!0},g=>{sk[A]=g,t(g)})}const dzt={success:ABe,info:hBe,error:dBe,warning:fBe};function gzt(e){const{icon:t,type:r,description:n,message:i,btn:a}=e,o=e.duration===void 0?vut:e.duration;hzt(e,s=>{s.notice({content:l=>{let{prefixCls:u}=l;const c=`${u}-notice`;let A=null;if(t)A=()=>De("span",{class:`${c}-icon`},[q8(t)]);else if(r){const f=dzt[r];A=()=>De(f,{class:`${c}-icon ${c}-icon-${r}`},null)}return De("div",{class:A?`${c}-with-icon`:""},[A&&A(),De("div",{class:`${c}-message`},[!n&&A?De("span",{class:`${c}-message-single-line-auto-margin`},null):null,q8(i)]),De("div",{class:`${c}-description`},[q8(n)]),a?De("span",{class:`${c}-btn`},[q8(a)]):null])},duration:o,closable:!0,onClose:e.onClose,onClick:e.onClick,key:e.key,style:e.style||{},class:e.class})})}const q9={open:gzt,close(e){Object.keys(sk).forEach(t=>Promise.resolve(sk[t]).then(r=>{r.removeNotice(e)}))},config:fzt,destroy(){Object.keys(sk).forEach(e=>{Promise.resolve(sk[e]).then(t=>{t.destroy()}),delete sk[e]})}},pzt=["success","info","warning","error"];pzt.forEach(e=>{q9[e]=t=>q9.open($e($e({},t),{type:e}))});q9.warn=q9.warning;q9.useNotification=Azt;const vzt=`-ant-${Date.now()}-${Math.random()}`;function mzt(e,t){const r={},n=(o,s)=>{let l=o.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},i=(o,s)=>{const l=new Rc(o),u=d5(l.toRgbString());r[`${s}-color`]=n(l),r[`${s}-color-disabled`]=u[1],r[`${s}-color-hover`]=u[4],r[`${s}-color-active`]=u[6],r[`${s}-color-outline`]=l.clone().setAlpha(.2).toRgbString(),r[`${s}-color-deprecated-bg`]=u[0],r[`${s}-color-deprecated-border`]=u[2]};if(t.primaryColor){i(t.primaryColor,"primary");const o=new Rc(t.primaryColor),s=d5(o.toRgbString());s.forEach((u,c)=>{r[`primary-${c+1}`]=u}),r["primary-color-deprecated-l-35"]=n(o,u=>u.lighten(35)),r["primary-color-deprecated-l-20"]=n(o,u=>u.lighten(20)),r["primary-color-deprecated-t-20"]=n(o,u=>u.tint(20)),r["primary-color-deprecated-t-50"]=n(o,u=>u.tint(50)),r["primary-color-deprecated-f-12"]=n(o,u=>u.setAlpha(u.getAlpha()*.12));const l=new Rc(s[0]);r["primary-color-active-deprecated-f-30"]=n(l,u=>u.setAlpha(u.getAlpha()*.3)),r["primary-color-active-deprecated-d-02"]=n(l,u=>u.darken(2))}return t.successColor&&i(t.successColor,"success"),t.warningColor&&i(t.warningColor,"warning"),t.errorColor&&i(t.errorColor,"error"),t.infoColor&&i(t.infoColor,"info"),` :root { ${Object.keys(r).map(o=>`--${e}-${o}: ${r[o]};`).join(` `)} } `.trim()}function yzt(e,t){const r=mzt(e,t);kC()&&NO(r,`${vzt}-dynamic-theme`)}const bzt=e=>{const[t,r]=P7();return $1e(vt(()=>({theme:t.value,token:r.value,hashId:"",path:["ant-design-icons",e.value]})),()=>[{[`.${e.value}`]:$e($e({},vL()),{[`.${e.value} .${e.value}-icon`]:{display:"block"}})}])};function wzt(e,t){const r=vt(()=>(e==null?void 0:e.value)||{}),n=vt(()=>r.value.inherit===!1||!(t!=null&&t.value)?Mat:t.value);return vt(()=>{if(!(e!=null&&e.value))return t==null?void 0:t.value;const a=$e({},n.value.components);return Object.keys(e.value.components||{}).forEach(o=>{a[o]=$e($e({},a[o]),e.value.components[o])}),$e($e($e({},n.value),r.value),{token:$e($e({},n.value.token),r.value.token),components:a})})}var Czt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{$e(zg,dxe),zg.prefixCls=d9(),zg.iconPrefixCls=Eut(),zg.getPrefixCls=(e,t)=>t||(e?`${zg.prefixCls}-${e}`:zg.prefixCls),zg.getRootPrefixCls=()=>zg.prefixCls?zg.prefixCls:d9()});let roe;const Ezt=e=>{roe&&roe(),roe=ks(()=>{$e(dxe,uc(e)),$e(zg,uc(e))}),e.theme&&yzt(d9(),e.theme)},Bzt=()=>({getPrefixCls:(e,t)=>t||(e?`${d9()}-${e}`:d9()),getIconPrefixCls:Eut,getRootPrefixCls:()=>zg.prefixCls?zg.prefixCls:d9()}),g9=$n({compatConfig:{MODE:3},name:"AConfigProvider",inheritAttrs:!1,props:X6t(),setup(e,t){let{slots:r}=t;const n=yEe(),i=(q,ae)=>{const{prefixCls:se="ant"}=e;if(ae)return ae;const de=se||n.getPrefixCls("");return q?`${de}-${q}`:de},a=vt(()=>e.iconPrefixCls||n.iconPrefixCls.value||vEe),o=vt(()=>a.value!==n.iconPrefixCls.value),s=vt(()=>{var q;return e.csp||((q=n.csp)===null||q===void 0?void 0:q.value)}),l=bzt(a),u=wzt(vt(()=>e.theme),vt(()=>{var q;return(q=n.theme)===null||q===void 0?void 0:q.value})),c=q=>(e.renderEmpty||r.renderEmpty||n.renderEmpty||__t)(q),A=vt(()=>{var q,ae;return(q=e.autoInsertSpaceInButton)!==null&&q!==void 0?q:(ae=n.autoInsertSpaceInButton)===null||ae===void 0?void 0:ae.value}),f=vt(()=>{var q;return e.locale||((q=n.locale)===null||q===void 0?void 0:q.value)});di(f,()=>{dxe.locale=f.value},{immediate:!0});const h=vt(()=>{var q;return e.direction||((q=n.direction)===null||q===void 0?void 0:q.value)}),g=vt(()=>{var q,ae;return(q=e.space)!==null&&q!==void 0?q:(ae=n.space)===null||ae===void 0?void 0:ae.value}),p=vt(()=>{var q,ae;return(q=e.virtual)!==null&&q!==void 0?q:(ae=n.virtual)===null||ae===void 0?void 0:ae.value}),m=vt(()=>{var q,ae;return(q=e.dropdownMatchSelectWidth)!==null&&q!==void 0?q:(ae=n.dropdownMatchSelectWidth)===null||ae===void 0?void 0:ae.value}),b=vt(()=>{var q;return e.getTargetContainer!==void 0?e.getTargetContainer:(q=n.getTargetContainer)===null||q===void 0?void 0:q.value}),C=vt(()=>{var q;return e.getPopupContainer!==void 0?e.getPopupContainer:(q=n.getPopupContainer)===null||q===void 0?void 0:q.value}),E=vt(()=>{var q;return e.pageHeader!==void 0?e.pageHeader:(q=n.pageHeader)===null||q===void 0?void 0:q.value}),_=vt(()=>{var q;return e.input!==void 0?e.input:(q=n.input)===null||q===void 0?void 0:q.value}),F=vt(()=>{var q;return e.pagination!==void 0?e.pagination:(q=n.pagination)===null||q===void 0?void 0:q.value}),M=vt(()=>{var q;return e.form!==void 0?e.form:(q=n.form)===null||q===void 0?void 0:q.value}),N=vt(()=>{var q;return e.select!==void 0?e.select:(q=n.select)===null||q===void 0?void 0:q.value}),P=vt(()=>e.componentSize),j=vt(()=>e.componentDisabled),z={csp:s,autoInsertSpaceInButton:A,locale:f,direction:h,space:g,virtual:p,dropdownMatchSelectWidth:m,getPrefixCls:i,iconPrefixCls:a,theme:vt(()=>{var q,ae;return(q=u.value)!==null&&q!==void 0?q:(ae=n.theme)===null||ae===void 0?void 0:ae.value}),renderEmpty:c,getTargetContainer:b,getPopupContainer:C,pageHeader:E,input:_,pagination:F,form:M,select:N,componentSize:P,componentDisabled:j,transformCellText:vt(()=>e.transformCellText)},W=vt(()=>{const q=u.value||{},{algorithm:ae,token:se}=q,de=Czt(q,["algorithm","token"]),Ae=ae&&(!Array.isArray(ae)||ae.length>0)?kat(ae):void 0;return $e($e({},de),{theme:Ae,token:$e($e({},aJ),se)})}),Y=vt(()=>{var q,ae;let se={};return f.value&&(se=((q=f.value.Form)===null||q===void 0?void 0:q.defaultValidateMessages)||((ae=r2.Form)===null||ae===void 0?void 0:ae.defaultValidateMessages)||{}),e.form&&e.form.validateMessages&&(se=$e($e({},se),e.form.validateMessages)),se});Z6t(z),q6t({validateMessages:Y}),$at(P),lat(j);const ee=q=>{var ae,se;let de=o.value?l((ae=r.default)===null||ae===void 0?void 0:ae.call(r)):(se=r.default)===null||se===void 0?void 0:se.call(r);if(e.theme){const Ae=function(){return de}();de=De(B_t,{value:W.value},{default:()=>[Ae]})}return De(bGt,{locale:f.value||q,ANT_MARK__:Uye},{default:()=>[de]})};return ks(()=>{h.value&&(YO.config({rtl:h.value==="rtl"}),q9.config({rtl:h.value==="rtl"}))}),()=>De(Aat,{children:(q,ae,se)=>ee(se)},null)}});g9.config=Ezt;g9.install=function(e){e.component(g9.name,g9)};const xzt=(e,t)=>{let{attrs:r,slots:n}=t;return De(ep,Ot(Ot({size:"small",type:"primary"},e),r),n)},sG=(e,t,r)=>{const n=c6t(r);return{[`${e.componentCls}-${t}`]:{color:e[`color${r}`],background:e[`color${n}Bg`],borderColor:e[`color${n}Border`]}}},Szt=e=>Fat(e,(t,r)=>{let{textColor:n,lightBorderColor:i,lightColor:a,darkColor:o}=r;return{[`${e.componentCls}-${t}`]:{color:n,background:a,borderColor:i,"&-inverse":{color:e.colorTextLightSolid,background:o,borderColor:o}}}}),kzt=e=>{const{paddingXXS:t,lineWidth:r,tagPaddingHorizontal:n,componentCls:i}=e,a=n-r,o=t-r;return{[i]:$e($e({},gu(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:`${e.tagLineHeight}px`,whiteSpace:"nowrap",background:e.tagDefaultBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",[`&${i}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.tagDefaultColor},[`${i}-close-icon`]:{marginInlineStart:o,color:e.colorTextDescription,fontSize:e.tagIconSize,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},[`&${i}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${e.iconCls}-close, ${e.iconCls}-close:hover`]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${i}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:a}})}},But=Gu("Tag",e=>{const{fontSize:t,lineHeight:r,lineWidth:n,fontSizeIcon:i}=e,a=Math.round(t*r),o=e.fontSizeSM,s=a-n*2,l=e.colorFillAlter,u=e.colorText,c=Al(e,{tagFontSize:o,tagLineHeight:s,tagDefaultBg:l,tagDefaultColor:u,tagIconSize:i-2*n,tagPaddingHorizontal:8});return[kzt(c),Szt(c),sG(c,"success","Success"),sG(c,"processing","Info"),sG(c,"error","Error"),sG(c,"warning","Warning")]}),Qzt=()=>({prefixCls:String,checked:{type:Boolean,default:void 0},onChange:{type:Function},onClick:{type:Function},"onUpdate:checked":Function}),Gye=$n({compatConfig:{MODE:3},name:"ACheckableTag",inheritAttrs:!1,props:Qzt(),setup(e,t){let{slots:r,emit:n,attrs:i}=t;const{prefixCls:a}=gs("tag",e),[o,s]=But(a),l=c=>{const{checked:A}=e;n("update:checked",!A),n("change",!A),n("click",c)},u=vt(()=>Vn(a.value,s.value,{[`${a.value}-checkable`]:!0,[`${a.value}-checkable-checked`]:e.checked}));return()=>{var c;return o(De("span",Ot(Ot({},i),{},{class:u.value,onClick:l}),[(c=r.default)===null||c===void 0?void 0:c.call(r)]))}}}),_zt=()=>({prefixCls:String,color:{type:String},closable:{type:Boolean,default:!1},closeIcon:cn.any,visible:{type:Boolean,default:void 0},onClose:{type:Function},onClick:m6(),"onUpdate:visible":Function,icon:cn.any}),PM=$n({compatConfig:{MODE:3},name:"ATag",inheritAttrs:!1,props:_zt(),slots:Object,setup(e,t){let{slots:r,emit:n,attrs:i}=t;const{prefixCls:a,direction:o}=gs("tag",e),[s,l]=But(a),u=sn(!0);ks(()=>{e.visible!==void 0&&(u.value=e.visible)});const c=g=>{g.stopPropagation(),n("update:visible",!1),n("close",g),!g.defaultPrevented&&e.visible===void 0&&(u.value=!1)},A=vt(()=>vst(e.color)||PNt(e.color)),f=vt(()=>Vn(a.value,l.value,{[`${a.value}-${e.color}`]:A.value,[`${a.value}-has-color`]:e.color&&!A.value,[`${a.value}-hidden`]:!u.value,[`${a.value}-rtl`]:o.value==="rtl"})),h=g=>{n("click",g)};return()=>{var g,p,m;const{icon:b=(g=r.icon)===null||g===void 0?void 0:g.call(r),color:C,closeIcon:E=(p=r.closeIcon)===null||p===void 0?void 0:p.call(r),closable:_=!1}=e,F=()=>_?E?De("span",{class:`${a.value}-close-icon`,onClick:c},[E]):De(QC,{class:`${a.value}-close-icon`,onClick:c},null):null,M={backgroundColor:C&&!A.value?C:void 0},N=b||null,P=(m=r.default)===null||m===void 0?void 0:m.call(r),j=N?De(ls,null,[N,De("span",null,[P])]):P,z=e.onClick!==void 0,W=De("span",Ot(Ot({},i),{},{onClick:h,class:[f.value,i.class],style:[M,i.style]}),[j,F()]);return s(z?De(Est,null,{default:()=>[W]}):W)}}});PM.CheckableTag=Gye;PM.install=function(e){return e.component(PM.name,PM),e.component(Gye.name,Gye),e};function Tzt(e,t){let{slots:r,attrs:n}=t;return De(PM,Ot(Ot({color:"blue"},e),n),r)}function Dzt(e,t,r){return r!==void 0?r:t==="year"&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t==="quarter"&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder}function Fzt(e,t,r){return r!==void 0?r:t==="year"&&e.lang.yearPlaceholder?e.lang.rangeYearPlaceholder:t==="month"&&e.lang.monthPlaceholder?e.lang.rangeMonthPlaceholder:t==="week"&&e.lang.weekPlaceholder?e.lang.rangeWeekPlaceholder:t==="time"&&e.timePickerLocale.placeholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder}function xut(e,t){const r={adjustX:1,adjustY:1};switch(t){case"bottomLeft":return{points:["tl","bl"],offset:[0,4],overflow:r};case"bottomRight":return{points:["tr","br"],offset:[0,4],overflow:r};case"topLeft":return{points:["bl","tl"],offset:[0,-4],overflow:r};case"topRight":return{points:["br","tr"],offset:[0,-4],overflow:r};default:return{points:e==="rtl"?["tr","br"]:["tl","bl"],offset:[0,4],overflow:r}}}function kW(){return{id:String,dropdownClassName:String,popupClassName:String,popupStyle:To(),transitionName:String,placeholder:String,allowClear:Pa(),autofocus:Pa(),disabled:Pa(),tabindex:Number,open:Pa(),defaultOpen:Pa(),inputReadOnly:Pa(),format:$l([String,Function,Array]),getPopupContainer:pi(),panelRender:pi(),onChange:pi(),"onUpdate:value":pi(),onOk:pi(),onOpenChange:pi(),"onUpdate:open":pi(),onFocus:pi(),onBlur:pi(),onMousedown:pi(),onMouseup:pi(),onMouseenter:pi(),onMouseleave:pi(),onClick:pi(),onContextmenu:pi(),onKeydown:pi(),role:String,name:String,autocomplete:String,direction:Us(),showToday:Pa(),showTime:$l([Boolean,Object]),locale:To(),size:Us(),bordered:Pa(),dateRender:pi(),disabledDate:pi(),mode:Us(),picker:Us(),valueFormat:String,placement:Us(),status:Us(),disabledHours:pi(),disabledMinutes:pi(),disabledSeconds:pi()}}function Sut(){return{defaultPickerValue:$l([Object,String]),defaultValue:$l([Object,String]),value:$l([Object,String]),presets:nc(),disabledTime:pi(),renderExtraFooter:pi(),showNow:Pa(),monthCellRender:pi(),monthCellContentRender:pi()}}function kut(){return{allowEmpty:nc(),dateRender:pi(),defaultPickerValue:nc(),defaultValue:nc(),value:nc(),presets:nc(),disabledTime:pi(),disabled:$l([Boolean,Array]),renderExtraFooter:pi(),separator:{type:String},showTime:$l([Boolean,Object]),ranges:To(),placeholder:nc(),mode:nc(),onChange:pi(),"onUpdate:value":pi(),onCalendarChange:pi(),onPanelChange:pi(),onOk:pi()}}var Rzt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);iW.value||P.value),[q,ae]=Elt(F),se=Hn();p({focus:()=>{var Se;(Se=se.value)===null||Se===void 0||Se.focus()},blur:()=>{var Se;(Se=se.value)===null||Se===void 0||Se.blur()}});const de=Se=>C.valueFormat?e.toString(Se,C.valueFormat):Se,Ae=(Se,et)=>{const nt=de(Se);b("update:value",nt),b("change",nt,et),E.onFieldChange()},be=Se=>{b("update:open",Se),b("openChange",Se)},Le=Se=>{b("focus",Se)},Ne=Se=>{b("blur",Se),E.onFieldBlur()},ue=(Se,et)=>{const nt=de(Se);b("panelChange",nt,et)},Ke=Se=>{const et=de(Se);b("ok",et)},[Pe]=SC("DatePicker",nW),je=vt(()=>C.value?C.valueFormat?e.toDate(C.value,C.valueFormat):C.value:C.value===""?void 0:C.value),Ye=vt(()=>C.defaultValue?C.valueFormat?e.toDate(C.defaultValue,C.valueFormat):C.defaultValue:C.defaultValue===""?void 0:C.defaultValue),me=vt(()=>C.defaultPickerValue?C.valueFormat?e.toDate(C.defaultPickerValue,C.valueFormat):C.defaultPickerValue:C.defaultPickerValue===""?void 0:C.defaultPickerValue);return()=>{var Se,et,nt,tt,ft,st;const Re=$e($e({},Pe.value),C.locale),dt=$e($e({},C),m),{bordered:Oe=!0,placeholder:Ce,suffixIcon:Be=(Se=g.suffixIcon)===null||Se===void 0?void 0:Se.call(g),showToday:We=!0,transitionName:mt,allowClear:Tt=!0,dateRender:bt=g.dateRender,renderExtraFooter:qt=g.renderExtraFooter,monthCellRender:cr=g.monthCellRender||C.monthCellContentRender||g.monthCellContentRender,clearIcon:Gt=(et=g.clearIcon)===null||et===void 0?void 0:et.call(g),id:Xt=E.id.value}=dt,Er=Rzt(dt,["bordered","placeholder","suffixIcon","showToday","transitionName","allowClear","dateRender","renderExtraFooter","monthCellRender","clearIcon","id"]),on=dt.showTime===""?!0:dt.showTime,{format:wn}=dt;let jr={};u&&(jr.picker=u);const ur=u||dt.picker||"date";jr=$e($e($e({},jr),on?QW($e({format:wn,picker:ur},typeof on=="object"?on:{})):{}),ur==="time"?QW($e($e({format:wn},Er),{picker:ur})):{});const Hr=F.value,Lr=De(ls,null,[Be||De(u==="time"?NJ:OJ,null,null),_.hasFeedback&&_.feedbackIcon]);return q(De(dUt,Ot(Ot(Ot({monthCellRender:cr,dateRender:bt,renderExtraFooter:qt,ref:se,placeholder:Dzt(Re,ur,Ce),suffixIcon:Lr,dropdownAlign:xut(M.value,C.placement),clearIcon:Gt||De(cm,null,null),allowClear:Tt,transitionName:mt||`${j.value}-slide-up`},Er),jr),{},{id:Xt,picker:ur,value:je.value,defaultValue:Ye.value,defaultPickerValue:me.value,showToday:We,locale:Re.lang,class:Vn({[`${Hr}-${ee.value}`]:ee.value,[`${Hr}-borderless`]:!Oe},Jb(Hr,Z6(_.status,C.status),_.hasFeedback),m.class,ae.value,Y.value),disabled:z.value,prefixCls:Hr,getPopupContainer:m.getCalendarContainer||N.value,generateConfig:e,prevIcon:((nt=g.prevIcon)===null||nt===void 0?void 0:nt.call(g))||De("span",{class:`${Hr}-prev-icon`},null),nextIcon:((tt=g.nextIcon)===null||tt===void 0?void 0:tt.call(g))||De("span",{class:`${Hr}-next-icon`},null),superPrevIcon:((ft=g.superPrevIcon)===null||ft===void 0?void 0:ft.call(g))||De("span",{class:`${Hr}-super-prev-icon`},null),superNextIcon:((st=g.superNextIcon)===null||st===void 0?void 0:st.call(g))||De("span",{class:`${Hr}-super-next-icon`},null),components:Qut,direction:M.value,dropdownClassName:Vn(ae.value,C.popupClassName,C.dropdownClassName),onChange:Ae,onOpenChange:be,onFocus:Le,onBlur:Ne,onPanelChange:ue,onOk:Ke}),null))}}})}const n=r(void 0,"ADatePicker"),i=r("week","AWeekPicker"),a=r("month","AMonthPicker"),o=r("year","AYearPicker"),s=r("time","TimePicker"),l=r("quarter","AQuarterPicker");return{DatePicker:n,WeekPicker:i,MonthPicker:a,YearPicker:o,TimePicker:s,QuarterPicker:l}}var Ozt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);iC.value||p.value),[F,M]=Elt(f),N=Hn();a({focus:()=>{var Le;(Le=N.value)===null||Le===void 0||Le.focus()},blur:()=>{var Le;(Le=N.value)===null||Le===void 0||Le.blur()}});const P=Le=>u.valueFormat?e.toString(Le,u.valueFormat):Le,j=(Le,Ne)=>{const ue=P(Le);l("update:value",ue),l("change",ue,Ne),c.onFieldChange()},z=Le=>{l("update:open",Le),l("openChange",Le)},W=Le=>{l("focus",Le)},Y=Le=>{l("blur",Le),c.onFieldBlur()},ee=(Le,Ne)=>{const ue=P(Le);l("panelChange",ue,Ne)},q=Le=>{const Ne=P(Le);l("ok",Ne)},ae=(Le,Ne,ue)=>{const Ke=P(Le);l("calendarChange",Ke,Ne,ue)},[se]=SC("DatePicker",nW),de=vt(()=>u.value&&u.valueFormat?e.toDate(u.value,u.valueFormat):u.value),Ae=vt(()=>u.defaultValue&&u.valueFormat?e.toDate(u.defaultValue,u.valueFormat):u.defaultValue),be=vt(()=>u.defaultPickerValue&&u.valueFormat?e.toDate(u.defaultPickerValue,u.valueFormat):u.defaultPickerValue);return()=>{var Le,Ne,ue,Ke,Pe,je,Ye;const me=$e($e({},se.value),u.locale),Se=$e($e({},u),s),{prefixCls:et,bordered:nt=!0,placeholder:tt,suffixIcon:ft=(Le=o.suffixIcon)===null||Le===void 0?void 0:Le.call(o),picker:st="date",transitionName:Re,allowClear:dt=!0,dateRender:Oe=o.dateRender,renderExtraFooter:Ce=o.renderExtraFooter,separator:Be=(Ne=o.separator)===null||Ne===void 0?void 0:Ne.call(o),clearIcon:We=(ue=o.clearIcon)===null||ue===void 0?void 0:ue.call(o),id:mt=c.id.value}=Se,Tt=Ozt(Se,["prefixCls","bordered","placeholder","suffixIcon","picker","transitionName","allowClear","dateRender","renderExtraFooter","separator","clearIcon","id"]);delete Tt["onUpdate:value"],delete Tt["onUpdate:open"];const{format:bt,showTime:qt}=Se;let cr={};cr=$e($e($e({},cr),qt?QW($e({format:bt,picker:st},qt)):{}),st==="time"?QW($e($e({format:bt},Cc(Tt,["disabledTime"])),{picker:st})):{});const Gt=f.value,Xt=De(ls,null,[ft||De(st==="time"?NJ:OJ,null,null),A.hasFeedback&&A.feedbackIcon]);return F(De(SUt,Ot(Ot(Ot({dateRender:Oe,renderExtraFooter:Ce,separator:Be||De("span",{"aria-label":"to",class:`${Gt}-separator`},[De(fxe,null,null)]),ref:N,dropdownAlign:xut(h.value,u.placement),placeholder:Fzt(me,st,tt),suffixIcon:Xt,clearIcon:We||De(cm,null,null),allowClear:dt,transitionName:Re||`${m.value}-slide-up`},Tt),cr),{},{disabled:b.value,id:mt,value:de.value,defaultValue:Ae.value,defaultPickerValue:be.value,picker:st,class:Vn({[`${Gt}-${_.value}`]:_.value,[`${Gt}-borderless`]:!nt},Jb(Gt,Z6(A.status,u.status),A.hasFeedback),s.class,M.value,E.value),locale:me.lang,prefixCls:Gt,getPopupContainer:s.getCalendarContainer||g.value,generateConfig:e,prevIcon:((Ke=o.prevIcon)===null||Ke===void 0?void 0:Ke.call(o))||De("span",{class:`${Gt}-prev-icon`},null),nextIcon:((Pe=o.nextIcon)===null||Pe===void 0?void 0:Pe.call(o))||De("span",{class:`${Gt}-next-icon`},null),superPrevIcon:((je=o.superPrevIcon)===null||je===void 0?void 0:je.call(o))||De("span",{class:`${Gt}-super-prev-icon`},null),superNextIcon:((Ye=o.superNextIcon)===null||Ye===void 0?void 0:Ye.call(o))||De("span",{class:`${Gt}-super-next-icon`},null),components:Qut,direction:h.value,dropdownClassName:Vn(M.value,u.popupClassName,u.dropdownClassName),onChange:j,onOpenChange:z,onFocus:W,onBlur:Y,onPanelChange:ee,onOk:q,onCalendarChange:ae}),null))}}})}const Qut={button:xzt,rangeItem:Tzt};function Lzt(e){return e?Array.isArray(e)?e:[e]:[]}function QW(e){const{format:t,picker:r,showHour:n,showMinute:i,showSecond:a,use12Hours:o}=e,s=Lzt(t)[0],l=$e({},e);return s&&typeof s=="string"&&(!s.includes("s")&&a===void 0&&(l.showSecond=!1),!s.includes("m")&&i===void 0&&(l.showMinute=!1),!s.includes("H")&&!s.includes("h")&&n===void 0&&(l.showHour=!1),(s.includes("a")||s.includes("A"))&&o===void 0&&(l.use12Hours=!0)),r==="time"?l:(typeof s=="function"&&delete l.format,{showTime:l})}function _ut(e,t){const{DatePicker:r,WeekPicker:n,MonthPicker:i,YearPicker:a,TimePicker:o,QuarterPicker:s}=Mzt(e,t),l=Nzt(e,t);return{DatePicker:r,WeekPicker:n,MonthPicker:i,YearPicker:a,TimePicker:o,QuarterPicker:s,RangePicker:l}}const{DatePicker:noe,WeekPicker:ioe,MonthPicker:aoe,YearPicker:Pzt,TimePicker:Uzt,QuarterPicker:ooe,RangePicker:soe}=_ut(Vst),vZr=$e(noe,{WeekPicker:ioe,MonthPicker:aoe,YearPicker:Pzt,RangePicker:soe,TimePicker:Uzt,QuarterPicker:ooe,install:e=>(e.component(noe.name,noe),e.component(soe.name,soe),e.component(aoe.name,aoe),e.component(ioe.name,ioe),e.component(ooe.name,ooe),e)}),Hzt=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:r,colorSplit:n,lineWidth:i}=e;return{[t]:$e($e({},gu(e)),{borderBlockStart:`${i}px solid ${n}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",margin:`0 ${e.dividerVerticalGutterMargin}px`,verticalAlign:"middle",borderTop:0,borderInlineStart:`${i}px solid ${n}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${n}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${i}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:"5%"},"&::after":{width:"95%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:"95%"},"&::after":{width:"5%"}},[`${t}-inner-text`]:{display:"inline-block",padding:"0 1em"},"&-dashed":{background:"none",borderColor:n,borderStyle:"dashed",borderWidth:`${i}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStart:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:r}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:r}}})}},jzt=Gu("Divider",e=>{const t=Al(e,{dividerVerticalGutterMargin:e.marginXS,dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG});return[Hzt(t)]},{sizePaddingEdgeHorizontal:0}),Gzt=()=>({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]}),$zt=$n({name:"ADivider",inheritAttrs:!1,compatConfig:{MODE:3},props:Gzt(),setup(e,t){let{slots:r,attrs:n}=t;const{prefixCls:i,direction:a}=gs("divider",e),[o,s]=jzt(i),l=vt(()=>e.orientation==="left"&&e.orientationMargin!=null),u=vt(()=>e.orientation==="right"&&e.orientationMargin!=null),c=vt(()=>{const{type:h,dashed:g,plain:p}=e,m=i.value;return{[m]:!0,[s.value]:!!s.value,[`${m}-${h}`]:!0,[`${m}-dashed`]:!!g,[`${m}-plain`]:!!p,[`${m}-rtl`]:a.value==="rtl",[`${m}-no-default-orientation-margin-left`]:l.value,[`${m}-no-default-orientation-margin-right`]:u.value}}),A=vt(()=>{const h=typeof e.orientationMargin=="number"?`${e.orientationMargin}px`:e.orientationMargin;return $e($e({},l.value&&{marginLeft:h}),u.value&&{marginRight:h})}),f=vt(()=>e.orientation.length>0?"-"+e.orientation:e.orientation);return()=>{var h;const g=sf((h=r.default)===null||h===void 0?void 0:h.call(r));return o(De("div",Ot(Ot({},n),{},{class:[c.value,g.length?`${i.value}-with-text ${i.value}-with-text${f.value}`:"",n.class],role:"separator"}),[g.length?De("span",{class:`${i.value}-inner-text`,style:A.value},[g]):null]))}}}),mZr=Ly($zt);FE.Button=yW;FE.install=function(e){return e.component(FE.name,FE),e.component(yW.name,yW),e};const Tut=()=>({prefixCls:String,width:cn.oneOfType([cn.string,cn.number]),height:cn.oneOfType([cn.string,cn.number]),style:{type:Object,default:void 0},class:String,rootClassName:String,rootStyle:To(),placement:{type:String},wrapperClassName:String,level:{type:[String,Array]},levelMove:{type:[Number,Function,Array]},duration:String,ease:String,showMask:{type:Boolean,default:void 0},maskClosable:{type:Boolean,default:void 0},maskStyle:{type:Object,default:void 0},afterVisibleChange:Function,keyboard:{type:Boolean,default:void 0},contentWrapperStyle:nc(),autofocus:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},motion:pi(),maskMotion:To()}),zzt=()=>$e($e({},Tut()),{forceRender:{type:Boolean,default:void 0},getContainer:cn.oneOfType([cn.string,cn.func,cn.object,cn.looseBool])}),Kzt=()=>$e($e({},Tut()),{getContainer:Function,getOpenCount:Function,scrollLocker:cn.any,inline:Boolean});function Vzt(e){return Array.isArray(e)?e:[e]}const Wzt={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"};Object.keys(Wzt).filter(e=>{if(typeof document>"u")return!1;const t=document.getElementsByTagName("html")[0];return e in(t?t.style:{})})[0];const Yzt=!(typeof window<"u"&&window.document&&window.document.createElement);var qzt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{il(()=>{var b;const{open:C,getContainer:E,showMask:_,autofocus:F}=e,M=E==null?void 0:E();g(e),C&&(M&&(M.parentNode,document.body),il(()=>{F&&c()}),_&&((b=e.scrollLocker)===null||b===void 0||b.lock()))})}),di(()=>e.level,()=>{g(e)},{flush:"post"}),di(()=>e.open,()=>{const{open:b,getContainer:C,scrollLocker:E,showMask:_,autofocus:F}=e,M=C==null?void 0:C();M&&(M.parentNode,document.body),b?(F&&c(),_&&(E==null||E.lock())):E==null||E.unLock()},{flush:"post"}),um(()=>{var b;const{open:C}=e;C&&(document.body.style.touchAction=""),(b=e.scrollLocker)===null||b===void 0||b.unLock()}),di(()=>e.placement,b=>{b&&(l.value=null)});const c=()=>{var b,C;(C=(b=a.value)===null||b===void 0?void 0:b.focus)===null||C===void 0||C.call(b)},A=b=>{r("close",b)},f=b=>{b.keyCode===yi.ESC&&(b.stopPropagation(),A(b))},h=()=>{const{open:b,afterVisibleChange:C}=e;C&&C(!!b)},g=b=>{let{level:C,getContainer:E}=b;if(Yzt)return;const _=E==null?void 0:E(),F=_?_.parentNode:null;u=[],C==="all"?(F?Array.prototype.slice.call(F.children):[]).forEach(N=>{N.nodeName!=="SCRIPT"&&N.nodeName!=="STYLE"&&N.nodeName!=="LINK"&&N!==_&&u.push(N)}):C&&Vzt(C).forEach(M=>{document.querySelectorAll(M).forEach(N=>{u.push(N)})})},p=b=>{r("handleClick",b)},m=sn(!1);return di(a,()=>{il(()=>{m.value=!0})}),()=>{var b,C;const{width:E,height:_,open:F,prefixCls:M,placement:N,level:P,levelMove:j,ease:z,duration:W,getContainer:Y,onChange:ee,afterVisibleChange:q,showMask:ae,maskClosable:se,maskStyle:de,keyboard:Ae,getOpenCount:be,scrollLocker:Le,contentWrapperStyle:Ne,style:ue,class:Ke,rootClassName:Pe,rootStyle:je,maskMotion:Ye,motion:me,inline:Se}=e,et=qzt(e,["width","height","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","keyboard","getOpenCount","scrollLocker","contentWrapperStyle","style","class","rootClassName","rootStyle","maskMotion","motion","inline"]),nt=F&&m.value,tt=Vn(M,{[`${M}-${N}`]:!0,[`${M}-open`]:nt,[`${M}-inline`]:Se,"no-mask":!ae,[Pe]:!0}),ft=typeof me=="function"?me(N):me;return De("div",Ot(Ot({},Cc(et,["autofocus"])),{},{tabindex:-1,class:tt,style:je,ref:a,onKeydown:nt&&Ae?f:void 0}),[De(nm,Ye,{default:()=>[ae&&rp(De("div",{class:`${M}-mask`,onClick:se?A:void 0,style:de,ref:o},null),[[_y,nt]])]}),De(nm,Ot(Ot({},ft),{},{onAfterEnter:h,onAfterLeave:h}),{default:()=>[rp(De("div",{class:`${M}-content-wrapper`,style:[Ne],ref:i},[De("div",{class:[`${M}-content`,Ke],style:ue,ref:l},[(b=n.default)===null||b===void 0?void 0:b.call(n)]),n.handler?De("div",{onClick:p,ref:s},[(C=n.handler)===null||C===void 0?void 0:C.call(n)]):null]),[[_y,nt]])]})])}}});var oTe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{},showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",keyboard:!0,forceRender:!1,autofocus:!0}),emits:["handleClick","close"],setup(e,t){let{emit:r,slots:n}=t;const i=Hn(null),a=s=>{r("handleClick",s)},o=s=>{r("close",s)};return()=>{const{getContainer:s,wrapperClassName:l,rootClassName:u,rootStyle:c,forceRender:A}=e,f=oTe(e,["getContainer","wrapperClassName","rootClassName","rootStyle","forceRender"]);let h=null;if(!s)return De(aTe,Ot(Ot({},f),{},{rootClassName:u,rootStyle:c,open:e.open,onClose:o,onHandleClick:a,inline:!0}),n);const g=!!n.handler||A;return(g||e.open||i.value)&&(h=De(WEe,{autoLock:!0,visible:e.open,forceRender:g,getContainer:s,wrapperClassName:l},{default:p=>{var{visible:m,afterClose:b}=p,C=oTe(p,["visible","afterClose"]);return De(aTe,Ot(Ot(Ot({ref:i},f),C),{},{rootClassName:u,rootStyle:c,open:m!==void 0?m:e.open,afterVisibleChange:b!==void 0?b:e.afterVisibleChange,onClose:o,onHandleClick:a}),n)}})),h}}}),Xzt=e=>{const{componentCls:t,motionDurationSlow:r}=e,n={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${r}`}}};return{[t]:{[`${t}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${r}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${t}-panel-motion`]:{"&-left":[n,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[n,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[n,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[n,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}},Zzt=e=>{const{componentCls:t,zIndexPopup:r,colorBgMask:n,colorBgElevated:i,motionDurationSlow:a,motionDurationMid:o,padding:s,paddingLG:l,fontSizeLG:u,lineHeightLG:c,lineWidth:A,lineType:f,colorSplit:h,marginSM:g,colorIcon:p,colorIconHover:m,colorText:b,fontWeightStrong:C,drawerFooterPaddingVertical:E,drawerFooterPaddingHorizontal:_}=e,F=`${t}-content-wrapper`;return{[t]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none","&-pure":{position:"relative",background:i,[`&${t}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${t}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${t}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${t}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${t}-mask`]:{position:"absolute",inset:0,zIndex:r,background:n,pointerEvents:"auto"},[F]:{position:"absolute",zIndex:r,transition:`all ${a}`,"&-hidden":{display:"none"}},[`&-left > ${F}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${F}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${F}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${F}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${t}-content`]:{width:"100%",height:"100%",overflow:"auto",background:i,pointerEvents:"auto"},[`${t}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${t}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${s}px ${l}px`,fontSize:u,lineHeight:c,borderBottom:`${A}px ${f} ${h}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${t}-extra`]:{flex:"none"},[`${t}-close`]:{display:"inline-block",marginInlineEnd:g,color:p,fontWeight:C,fontSize:u,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${o}`,textRendering:"auto","&:focus, &:hover":{color:m,textDecoration:"none"}},[`${t}-title`]:{flex:1,margin:0,color:b,fontWeight:e.fontWeightStrong,fontSize:u,lineHeight:c},[`${t}-body`]:{flex:1,minWidth:0,minHeight:0,padding:l,overflow:"auto"},[`${t}-footer`]:{flexShrink:0,padding:`${E}px ${_}px`,borderTop:`${A}px ${f} ${h}`},"&-rtl":{direction:"rtl"}}}},eKt=Gu("Drawer",e=>{const t=Al(e,{drawerFooterPaddingVertical:e.paddingXS,drawerFooterPaddingHorizontal:e.padding});return[Zzt(t),Xzt(t)]},e=>({zIndexPopup:e.zIndexPopupBase}));var tKt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i({autofocus:{type:Boolean,default:void 0},closable:{type:Boolean,default:void 0},closeIcon:cn.any,destroyOnClose:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},getContainer:{type:[String,Function,Boolean,Object],default:void 0},maskClosable:{type:Boolean,default:void 0},mask:{type:Boolean,default:void 0},maskStyle:To(),rootClassName:String,rootStyle:To(),size:{type:String},drawerStyle:To(),headerStyle:To(),bodyStyle:To(),contentWrapperStyle:{type:Object,default:void 0},title:cn.any,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},width:cn.oneOfType([cn.string,cn.number]),height:cn.oneOfType([cn.string,cn.number]),zIndex:Number,prefixCls:String,push:cn.oneOfType([cn.looseBool,{type:Object}]),placement:cn.oneOf(rKt),keyboard:{type:Boolean,default:void 0},extra:cn.any,footer:cn.any,footerStyle:To(),level:cn.any,levelMove:{type:[Number,Array,Function]},handle:cn.any,afterVisibleChange:Function,onAfterVisibleChange:Function,onAfterOpenChange:Function,"onUpdate:visible":Function,"onUpdate:open":Function,onClose:Function}),iKt=$n({compatConfig:{MODE:3},name:"ADrawer",inheritAttrs:!1,props:ju(nKt(),{closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0,push:sTe}),slots:Object,setup(e,t){let{emit:r,slots:n,attrs:i}=t;const a=sn(!1),o=sn(!1),s=sn(null),l=sn(!1),u=sn(!1),c=vt(()=>{var be;return(be=e.open)!==null&&be!==void 0?be:e.visible});di(c,()=>{c.value?l.value=!0:u.value=!1},{immediate:!0}),di([c,l],()=>{c.value&&l.value&&(u.value=!0)},{immediate:!0});const A=Wo("parentDrawerOpts",null),{prefixCls:f,getPopupContainer:h,direction:g}=gs("drawer",e),[p,m]=eKt(f),b=vt(()=>e.getContainer===void 0&&(h!=null&&h.value)?()=>h.value(document.body):e.getContainer);BA(!e.afterVisibleChange,"Drawer","`afterVisibleChange` prop is deprecated, please use `@afterVisibleChange` event instead"),Es("parentDrawerOpts",{setPush:()=>{a.value=!0},setPull:()=>{a.value=!1,il(()=>{_()})}}),Is(()=>{c.value&&A&&A.setPush()}),um(()=>{A&&A.setPull()}),di(u,()=>{A&&(u.value?A.setPush():A.setPull())},{flush:"post"});const _=()=>{var be,Le;(Le=(be=s.value)===null||be===void 0?void 0:be.domFocus)===null||Le===void 0||Le.call(be)},F=be=>{r("update:visible",!1),r("update:open",!1),r("close",be)},M=be=>{var Le;be||(o.value===!1&&(o.value=!0),e.destroyOnClose&&(l.value=!1)),(Le=e.afterVisibleChange)===null||Le===void 0||Le.call(e,be),r("afterVisibleChange",be),r("afterOpenChange",be)},N=vt(()=>{const{push:be,placement:Le}=e;let Ne;return typeof be=="boolean"?Ne=be?sTe.distance:0:Ne=be.distance,Ne=parseFloat(String(Ne||0)),Le==="left"||Le==="right"?`translateX(${Le==="left"?Ne:-Ne}px)`:Le==="top"||Le==="bottom"?`translateY(${Le==="top"?Ne:-Ne}px)`:null}),P=vt(()=>{var be;return(be=e.width)!==null&&be!==void 0?be:e.size==="large"?736:378}),j=vt(()=>{var be;return(be=e.height)!==null&&be!==void 0?be:e.size==="large"?736:378}),z=vt(()=>{const{mask:be,placement:Le}=e;if(!u.value&&!be)return{};const Ne={};return Le==="left"||Le==="right"?Ne.width=dye(P.value)?`${P.value}px`:P.value:Ne.height=dye(j.value)?`${j.value}px`:j.value,Ne}),W=vt(()=>{const{zIndex:be}=e,Le=z.value;return[{zIndex:be,transform:a.value?N.value:void 0},Le]}),Y=be=>{const{closable:Le,headerStyle:Ne}=e,ue=Xv(n,e,"extra"),Ke=Xv(n,e,"title");return!Ke&&!Le?null:De("div",{class:Vn(`${be}-header`,{[`${be}-header-close-only`]:Le&&!Ke&&!ue}),style:Ne},[De("div",{class:`${be}-header-title`},[ee(be),Ke&&De("div",{class:`${be}-title`},[Ke])]),ue&&De("div",{class:`${be}-extra`},[ue])])},ee=be=>{var Le;const{closable:Ne}=e,ue=n.closeIcon?(Le=n.closeIcon)===null||Le===void 0?void 0:Le.call(n):e.closeIcon;return Ne&&De("button",{key:"closer",onClick:F,"aria-label":"Close",class:`${be}-close`},[ue===void 0?De(QC,null,null):ue])},q=be=>{var Le;if(o.value&&!e.forceRender&&!l.value)return null;const{bodyStyle:Ne,drawerStyle:ue}=e;return De("div",{class:`${be}-wrapper-body`,style:ue},[Y(be),De("div",{key:"body",class:`${be}-body`,style:Ne},[(Le=n.default)===null||Le===void 0?void 0:Le.call(n)]),ae(be)])},ae=be=>{const Le=Xv(n,e,"footer");if(!Le)return null;const Ne=`${be}-footer`;return De("div",{class:Ne,style:e.footerStyle},[Le])},se=vt(()=>Vn({"no-mask":!e.mask,[`${f.value}-rtl`]:g.value==="rtl"},e.rootClassName,m.value)),de=vt(()=>p5(gC(f.value,"mask-motion"))),Ae=be=>p5(gC(f.value,`panel-motion-${be}`));return()=>{const{width:be,height:Le,placement:Ne,mask:ue,forceRender:Ke}=e,Pe=tKt(e,["width","height","placement","mask","forceRender"]),je=$e($e($e({},i),Cc(Pe,["size","closeIcon","closable","destroyOnClose","drawerStyle","headerStyle","bodyStyle","title","push","onAfterVisibleChange","onClose","onUpdate:visible","onUpdate:open","visible"])),{forceRender:Ke,onClose:F,afterVisibleChange:M,handler:!1,prefixCls:f.value,open:u.value,showMask:ue,placement:Ne,ref:s});return p(De(VO,null,{default:()=>[De(Jzt,Ot(Ot({},je),{},{maskMotion:de.value,motion:Ae,width:P.value,height:j.value,getContainer:b.value,rootClassName:se.value,rootStyle:e.rootStyle,contentWrapperStyle:W.value}),{handler:e.handle?()=>e.handle:n.handle,default:()=>q(f.value)})]}))}}}),yZr=Ly(iKt),UM=e=>e!=null&&(Array.isArray(e)?Cg(e).length:!0);function gxe(e){return UM(e.prefix)||UM(e.suffix)||UM(e.allowClear)}function TK(e){return UM(e.addonBefore)||UM(e.addonAfter)}function $ye(e){return typeof e>"u"||e===null?"":String(e)}function HM(e,t,r,n){if(!r)return;const i=t;if(t.type==="click"){Object.defineProperty(i,"target",{writable:!0}),Object.defineProperty(i,"currentTarget",{writable:!0});const a=e.cloneNode(!0);i.target=a,i.currentTarget=a,a.value="",r(i);return}if(n!==void 0){Object.defineProperty(i,"target",{writable:!0}),Object.defineProperty(i,"currentTarget",{writable:!0}),i.target=e,i.currentTarget=e,e.value=n,r(i);return}r(i)}function Dut(e,t){if(!e)return;e.focus(t);const{cursor:r}=t||{};if(r){const n=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(n,n);break;default:e.setSelectionRange(0,n)}}}const aKt=()=>({addonBefore:cn.any,addonAfter:cn.any,prefix:cn.any,suffix:cn.any,clearIcon:cn.any,affixWrapperClassName:String,groupClassName:String,wrapperClassName:String,inputClassName:String,allowClear:{type:Boolean,default:void 0}}),Fut=()=>$e($e({},aKt()),{value:{type:[String,Number,Symbol],default:void 0},defaultValue:{type:[String,Number,Symbol],default:void 0},inputElement:cn.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}}),Rut=()=>$e($e({},Fut()),{id:String,placeholder:{type:[String,Number]},autocomplete:String,type:Us("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}),oKt=$n({name:"BaseInput",inheritAttrs:!1,props:Fut(),setup(e,t){let{slots:r,attrs:n}=t;const i=Hn(),a=s=>{var l;if(!((l=i.value)===null||l===void 0)&&l.contains(s.target)){const{triggerFocus:u}=e;u==null||u()}},o=()=>{var s;const{allowClear:l,value:u,disabled:c,readonly:A,handleReset:f,suffix:h=r.suffix,prefixCls:g}=e;if(!l)return null;const p=!c&&!A&&u,m=`${g}-clear-icon`,b=((s=r.clearIcon)===null||s===void 0?void 0:s.call(r))||"*";return De("span",{onClick:f,onMousedown:C=>C.preventDefault(),class:Vn({[`${m}-hidden`]:!p,[`${m}-has-suffix`]:!!h},m),role:"button",tabindex:-1},[b])};return()=>{var s,l;const{focused:u,value:c,disabled:A,allowClear:f,readonly:h,hidden:g,prefixCls:p,prefix:m=(s=r.prefix)===null||s===void 0?void 0:s.call(r),suffix:b=(l=r.suffix)===null||l===void 0?void 0:l.call(r),addonAfter:C=r.addonAfter,addonBefore:E=r.addonBefore,inputElement:_,affixWrapperClassName:F,wrapperClassName:M,groupClassName:N}=e;let P=aA(_,{value:c,hidden:g});if(gxe({prefix:m,suffix:b,allowClear:f})){const j=`${p}-affix-wrapper`,z=Vn(j,{[`${j}-disabled`]:A,[`${j}-focused`]:u,[`${j}-readonly`]:h,[`${j}-input-with-clear-btn`]:b&&f&&c},!TK({addonAfter:C,addonBefore:E})&&n.class,F),W=(b||f)&&De("span",{class:`${p}-suffix`},[o(),b]);P=De("span",{class:z,style:n.style,hidden:!TK({addonAfter:C,addonBefore:E})&&g,onMousedown:a,ref:i},[m&&De("span",{class:`${p}-prefix`},[m]),aA(_,{style:null,value:c,hidden:null}),W])}if(TK({addonAfter:C,addonBefore:E})){const j=`${p}-group`,z=`${j}-addon`,W=Vn(`${p}-wrapper`,j,M),Y=Vn(`${p}-group-wrapper`,n.class,N);return De("span",{class:Y,style:n.style,hidden:g},[De("span",{class:W},[E&&De("span",{class:z},[E]),aA(P,{style:null,hidden:null}),C&&De("span",{class:z},[C])])])}return P}}});var sKt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);ie.value,()=>{o.value=e.value}),di(()=>e.disabled,()=>{e.disabled&&(s.value=!1)});const u=N=>{l.value&&Dut(l.value,N)};i({focus:u,blur:()=>{var N;(N=l.value)===null||N===void 0||N.blur()},input:l,stateValue:o,setSelectionRange:(N,P,j)=>{var z;(z=l.value)===null||z===void 0||z.setSelectionRange(N,P,j)},select:()=>{var N;(N=l.value)===null||N===void 0||N.select()}});const h=N=>{a("change",N)},g=sA(),p=(N,P)=>{o.value!==N&&(e.value===void 0?o.value=N:il(()=>{l.value.value!==o.value&&g.update()}),il(()=>{P&&P()}))},m=N=>{const{value:P,composing:j}=N.target;if((N.isComposing||j)&&e.lazy||o.value===P)return;const z=N.target.value;HM(l.value,N,h),p(z)},b=N=>{N.keyCode===13&&a("pressEnter",N),a("keydown",N)},C=N=>{s.value=!0,a("focus",N)},E=N=>{s.value=!1,a("blur",N)},_=N=>{HM(l.value,N,h),p("",()=>{u()})},F=()=>{var N,P;const{addonBefore:j=r.addonBefore,addonAfter:z=r.addonAfter,disabled:W,valueModifiers:Y={},htmlSize:ee,autocomplete:q,prefixCls:ae,inputClassName:se,prefix:de=(N=r.prefix)===null||N===void 0?void 0:N.call(r),suffix:Ae=(P=r.suffix)===null||P===void 0?void 0:P.call(r),allowClear:be,type:Le="text"}=e,Ne=Cc(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","bordered","htmlSize","lazy","showCount","valueModifiers","showCount","affixWrapperClassName","groupClassName","inputClassName","wrapperClassName"]),ue=$e($e($e({},Ne),n),{autocomplete:q,onChange:m,onInput:m,onFocus:C,onBlur:E,onKeydown:b,class:Vn(ae,{[`${ae}-disabled`]:W},se,!TK({addonAfter:z,addonBefore:j})&&!gxe({prefix:de,suffix:Ae,allowClear:be})&&n.class),ref:l,key:"ant-input",size:ee,type:Le});Y.lazy&&delete ue.onInput,ue.autofocus||delete ue.autofocus;const Ke=De("input",Cc(ue,["size"]),null);return rp(Ke,[[bL]])},M=()=>{var N;const{maxlength:P,suffix:j=(N=r.suffix)===null||N===void 0?void 0:N.call(r),showCount:z,prefixCls:W}=e,Y=Number(P)>0;if(j||z){const ee=[...$ye(o.value)].length,q=typeof z=="object"?z.formatter({count:ee,maxlength:P}):`${ee}${Y?` / ${P}`:""}`;return De(ls,null,[!!z&&De("span",{class:Vn(`${W}-show-count-suffix`,{[`${W}-show-count-has-suffix`]:!!j})},[q]),j])}return null};return Is(()=>{}),()=>{const{prefixCls:N,disabled:P}=e,j=sKt(e,["prefixCls","disabled"]);return De(oKt,Ot(Ot(Ot({},j),n),{},{prefixCls:N,inputElement:F(),handleReset:_,value:$ye(o.value),focused:s.value,triggerFocus:u,suffix:M(),disabled:P}),r)}}}),HJ=()=>Cc(Rut(),["wrapperClassName","groupClassName","inputClassName","affixWrapperClassName"]),Mut=()=>$e($e({},Cc(HJ(),["prefix","addonBefore","addonAfter","suffix"])),{rows:Number,autosize:{type:[Boolean,Object],default:void 0},autoSize:{type:[Boolean,Object],default:void 0},onResize:{type:Function},onCompositionstart:m6(),onCompositionend:m6(),valueModifiers:Object});var uKt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);iZ6(l.status,e.status)),{direction:c,prefixCls:A,size:f,autocomplete:h}=gs("input",e),{compactSize:g,compactItemClassnames:p}=z7(A,c),m=vt(()=>g.value||f.value),[b,C]=HBe(A),E=hC();i({focus:ee=>{var q;(q=o.value)===null||q===void 0||q.focus(ee)},blur:()=>{var ee;(ee=o.value)===null||ee===void 0||ee.blur()},input:o,setSelectionRange:(ee,q,ae)=>{var se;(se=o.value)===null||se===void 0||se.setSelectionRange(ee,q,ae)},select:()=>{var ee;(ee=o.value)===null||ee===void 0||ee.select()}});const P=Hn([]),j=()=>{P.value.push(setTimeout(()=>{var ee,q,ae,se;!((ee=o.value)===null||ee===void 0)&&ee.input&&((q=o.value)===null||q===void 0?void 0:q.input.getAttribute("type"))==="password"&&(!((ae=o.value)===null||ae===void 0)&&ae.input.hasAttribute("value"))&&((se=o.value)===null||se===void 0||se.input.removeAttribute("value"))}))};Is(()=>{j()}),O7(()=>{P.value.forEach(ee=>clearTimeout(ee))}),el(()=>{P.value.forEach(ee=>clearTimeout(ee))});const z=ee=>{j(),a("blur",ee),s.onFieldBlur()},W=ee=>{j(),a("focus",ee)},Y=ee=>{a("update:value",ee.target.value),a("change",ee),a("input",ee),s.onFieldChange()};return()=>{var ee,q,ae,se,de,Ae;const{hasFeedback:be,feedbackIcon:Le}=l,{allowClear:Ne,bordered:ue=!0,prefix:Ke=(ee=r.prefix)===null||ee===void 0?void 0:ee.call(r),suffix:Pe=(q=r.suffix)===null||q===void 0?void 0:q.call(r),addonAfter:je=(ae=r.addonAfter)===null||ae===void 0?void 0:ae.call(r),addonBefore:Ye=(se=r.addonBefore)===null||se===void 0?void 0:se.call(r),id:me=(de=s.id)===null||de===void 0?void 0:de.value}=e,Se=uKt(e,["allowClear","bordered","prefix","suffix","addonAfter","addonBefore","id"]),et=(be||Pe)&&De(ls,null,[Pe,be&&Le]),nt=A.value,tt=gxe({prefix:Ke,suffix:Pe})||!!be,ft=r.clearIcon||(()=>De(cm,null,null));return b(De(lKt,Ot(Ot(Ot({},n),Cc(Se,["onUpdate:value","onChange","onInput"])),{},{onChange:Y,id:me,disabled:(Ae=e.disabled)!==null&&Ae!==void 0?Ae:E.value,ref:o,prefixCls:nt,autocomplete:h.value,onBlur:z,onFocus:W,suffix:et,allowClear:Ne,addonAfter:je&&De(VO,null,{default:()=>[De(dW,null,{default:()=>[je]})]}),addonBefore:Ye&&De(VO,null,{default:()=>[De(dW,null,{default:()=>[Ye]})]}),class:[n.class,p.value],inputClassName:Vn({[`${nt}-sm`]:m.value==="small",[`${nt}-lg`]:m.value==="large",[`${nt}-rtl`]:c.value==="rtl",[`${nt}-borderless`]:!ue},!tt&&Jb(nt,u.value),C.value),affixWrapperClassName:Vn({[`${nt}-affix-wrapper-sm`]:m.value==="small",[`${nt}-affix-wrapper-lg`]:m.value==="large",[`${nt}-affix-wrapper-rtl`]:c.value==="rtl",[`${nt}-affix-wrapper-borderless`]:!ue},Jb(`${nt}-affix-wrapper`,u.value,be),C.value),wrapperClassName:Vn({[`${nt}-group-rtl`]:c.value==="rtl"},C.value),groupClassName:Vn({[`${nt}-group-wrapper-sm`]:m.value==="small",[`${nt}-group-wrapper-lg`]:m.value==="large",[`${nt}-group-wrapper-rtl`]:c.value==="rtl"},Jb(`${nt}-group-wrapper`,u.value,be),C.value)}),$e($e({},r),{clearIcon:ft})))}}}),cKt=$n({compatConfig:{MODE:3},name:"AInputGroup",inheritAttrs:!1,props:{prefixCls:String,size:{type:String},compact:{type:Boolean,default:void 0}},setup(e,t){let{slots:r,attrs:n}=t;const{prefixCls:i,direction:a,getPrefixCls:o}=gs("input-group",e),s=f1.useInject();f1.useProvide(s,{isFormItemInput:!1});const l=vt(()=>o("input")),[u,c]=HBe(l),A=vt(()=>{const f=i.value;return{[`${f}`]:!0,[c.value]:!0,[`${f}-lg`]:e.size==="large",[`${f}-sm`]:e.size==="small",[`${f}-compact`]:e.compact,[`${f}-rtl`]:a.value==="rtl"}});return()=>{var f;return u(De("span",Ot(Ot({},n),{},{class:Vn(A.value,n.class)}),[(f=r.default)===null||f===void 0?void 0:f.call(r)]))}}});var AKt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{var F;(F=o.value)===null||F===void 0||F.focus()},blur:()=>{var F;(F=o.value)===null||F===void 0||F.blur()}});const c=F=>{a("update:value",F.target.value),F&&F.target&&F.type==="click"&&a("search",F.target.value,F),a("change",F)},A=F=>{var M;document.activeElement===((M=o.value)===null||M===void 0?void 0:M.input)&&F.preventDefault()},f=F=>{var M,N;a("search",(N=(M=o.value)===null||M===void 0?void 0:M.input)===null||N===void 0?void 0:N.stateValue,F)},h=F=>{s.value||e.loading||f(F)},g=F=>{s.value=!0,a("compositionstart",F)},p=F=>{s.value=!1,a("compositionend",F)},{prefixCls:m,getPrefixCls:b,direction:C,size:E}=gs("input-search",e),_=vt(()=>b("input",e.inputPrefixCls));return()=>{var F,M,N,P;const{disabled:j,loading:z,addonAfter:W=(F=r.addonAfter)===null||F===void 0?void 0:F.call(r),suffix:Y=(M=r.suffix)===null||M===void 0?void 0:M.call(r)}=e,ee=AKt(e,["disabled","loading","addonAfter","suffix"]);let{enterButton:q=(P=(N=r.enterButton)===null||N===void 0?void 0:N.call(r))!==null&&P!==void 0?P:!1}=e;q=q||q==="";const ae=typeof q=="boolean"?De(wL,null,null):null,se=`${m.value}-button`,de=Array.isArray(q)?q[0]:q;let Ae;const be=de.type&&Jit(de.type)&&de.type.__ANT_BUTTON;if(be||de.tagName==="button")Ae=aA(de,$e({onMousedown:A,onClick:f,key:"enterButton"},be?{class:se,size:E.value}:{}),!1);else{const Ne=ae&&!q;Ae=De(ep,{class:se,type:q?"primary":void 0,size:E.value,disabled:j,key:"enterButton",onMousedown:A,onClick:f,loading:z,icon:Ne?ae:null},{default:()=>[Ne?null:ae||q]})}W&&(Ae=[Ae,W]);const Le=Vn(m.value,{[`${m.value}-rtl`]:C.value==="rtl",[`${m.value}-${E.value}`]:!!E.value,[`${m.value}-with-button`]:!!q},n.class);return De(pg,Ot(Ot(Ot({ref:o},Cc(ee,["onUpdate:value","onSearch","enterButton"])),n),{},{onPressEnter:h,onCompositionstart:g,onCompositionend:p,size:E.value,prefixCls:_.value,addonAfter:Ae,suffix:Y,onChange:c,class:Le,disabled:j}),r)}}}),lTe=e=>e!=null&&(Array.isArray(e)?Cg(e).length:!0);function hKt(e){return lTe(e.addonBefore)||lTe(e.addonAfter)}const dKt=["text","input"],gKt=$n({compatConfig:{MODE:3},name:"ClearableLabeledInput",inheritAttrs:!1,props:{prefixCls:String,inputType:cn.oneOf(fC("text","input")),value:Wf(),defaultValue:Wf(),allowClear:{type:Boolean,default:void 0},element:Wf(),handleReset:Function,disabled:{type:Boolean,default:void 0},direction:{type:String},size:{type:String},suffix:Wf(),prefix:Wf(),addonBefore:Wf(),addonAfter:Wf(),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(e,t){let{slots:r,attrs:n}=t;const i=f1.useInject(),a=s=>{const{value:l,disabled:u,readonly:c,handleReset:A,suffix:f=r.suffix}=e,h=!u&&!c&&l,g=`${s}-clear-icon`;return De(cm,{onClick:A,onMousedown:p=>p.preventDefault(),class:Vn({[`${g}-hidden`]:!h,[`${g}-has-suffix`]:!!f},g),role:"button"},null)},o=(s,l)=>{const{value:u,allowClear:c,direction:A,bordered:f,hidden:h,status:g,addonAfter:p=r.addonAfter,addonBefore:m=r.addonBefore,hashId:b}=e,{status:C,hasFeedback:E}=i;if(!c)return aA(l,{value:u,disabled:e.disabled});const _=Vn(`${s}-affix-wrapper`,`${s}-affix-wrapper-textarea-with-clear-btn`,Jb(`${s}-affix-wrapper`,Z6(C,g),E),{[`${s}-affix-wrapper-rtl`]:A==="rtl",[`${s}-affix-wrapper-borderless`]:!f,[`${n.class}`]:!hKt({addonAfter:p,addonBefore:m})&&n.class},b);return De("span",{class:_,style:n.style,hidden:h},[aA(l,{style:null,value:u,disabled:e.disabled}),a(s)])};return()=>{var s;const{prefixCls:l,inputType:u,element:c=(s=r.element)===null||s===void 0?void 0:s.call(r)}=e;return u===dKt[0]?o(l,c):null}}}),pKt=` 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 `,vKt=["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"],loe={};let Y1;function mKt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&loe[r])return loe[r];const n=window.getComputedStyle(e),i=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),a=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),o=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),l={sizingStyle:vKt.map(u=>`${u}:${n.getPropertyValue(u)}`).join(";"),paddingSize:a,borderSize:o,boxSizing:i};return t&&r&&(loe[r]=l),l}function yKt(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Y1||(Y1=document.createElement("textarea"),Y1.setAttribute("tab-index","-1"),Y1.setAttribute("aria-hidden","true"),document.body.appendChild(Y1)),e.getAttribute("wrap")?Y1.setAttribute("wrap",e.getAttribute("wrap")):Y1.removeAttribute("wrap");const{paddingSize:i,borderSize:a,boxSizing:o,sizingStyle:s}=mKt(e,t);Y1.setAttribute("style",`${s};${pKt}`),Y1.value=e.value||e.placeholder||"";let l=Number.MIN_SAFE_INTEGER,u=Number.MAX_SAFE_INTEGER,c=Y1.scrollHeight,A;if(o==="border-box"?c+=a:o==="content-box"&&(c-=i),r!==null||n!==null){Y1.value=" ";const f=Y1.scrollHeight-i;r!==null&&(l=f*r,o==="border-box"&&(l=l+i+a),c=Math.max(l,c)),n!==null&&(u=f*n,o==="border-box"&&(u=u+i+a),A=c>u?"":"hidden",c=Math.min(u,c))}return{height:`${c}px`,minHeight:`${l}px`,maxHeight:`${u}px`,overflowY:A,resize:"none"}}const uoe=0,uTe=1,bKt=2,wKt=$n({compatConfig:{MODE:3},name:"ResizableTextArea",inheritAttrs:!1,props:Mut(),setup(e,t){let{attrs:r,emit:n,expose:i}=t,a,o;const s=Hn(),l=Hn({}),u=Hn(uoe);el(()=>{ms.cancel(a),ms.cancel(o)});const c=()=>{try{if(document.activeElement===s.value){const m=s.value.selectionStart,b=s.value.selectionEnd;s.value.setSelectionRange(m,b)}}catch{}},A=()=>{const m=e.autoSize||e.autosize;if(!m||!s.value)return;const{minRows:b,maxRows:C}=m;l.value=yKt(s.value,!1,b,C),u.value=uTe,ms.cancel(o),o=ms(()=>{u.value=bKt,o=ms(()=>{u.value=uoe,c()})})},f=()=>{ms.cancel(a),a=ms(A)},h=m=>{if(u.value!==uoe)return;n("resize",m),(e.autoSize||e.autosize)&&f()};vB(e.autosize===void 0);const g=()=>{const{prefixCls:m,autoSize:b,autosize:C,disabled:E}=e,_=Cc(e,["prefixCls","onPressEnter","autoSize","autosize","defaultValue","allowClear","type","lazy","maxlength","valueModifiers"]),F=Vn(m,r.class,{[`${m}-disabled`]:E}),M=[r.style,l.value,u.value===uTe?{overflowX:"hidden",overflowY:"hidden"}:null],N=$e($e($e({},_),r),{style:M,class:F});return N.autofocus||delete N.autofocus,N.rows===0&&delete N.rows,De(YE,{onResize:h,disabled:!(b||C)},{default:()=>[rp(De("textarea",Ot(Ot({},N),{},{ref:s}),null),[[bL]])]})};di(()=>e.value,()=>{il(()=>{A()})}),Is(()=>{il(()=>{A()})});const p=sA();return i({resizeTextarea:A,textArea:s,instance:p}),()=>g()}});function Out(e,t){return[...e||""].slice(0,t).join("")}function cTe(e,t,r,n){let i=r;return e?i=Out(r,n):[...t||""].lengthn&&(i=t),i}const CKt=$n({compatConfig:{MODE:3},name:"ATextarea",inheritAttrs:!1,props:Mut(),setup(e,t){let{attrs:r,expose:n,emit:i}=t;const a=im(),o=f1.useInject(),s=vt(()=>Z6(o.status,e.status)),l=sn(e.value===void 0?e.defaultValue:e.value),u=sn(),c=sn(""),{prefixCls:A,size:f,direction:h}=gs("input",e),[g,p]=HBe(A),m=hC(),b=vt(()=>e.showCount===""||e.showCount||!1),C=vt(()=>Number(e.maxlength)>0),E=sn(!1),_=sn(),F=sn(0),M=Ae=>{E.value=!0,_.value=c.value,F.value=Ae.currentTarget.selectionStart,i("compositionstart",Ae)},N=Ae=>{var be;E.value=!1;let Le=Ae.currentTarget.value;if(C.value){const Ne=F.value>=e.maxlength+1||F.value===((be=_.value)===null||be===void 0?void 0:be.length);Le=cTe(Ne,_.value,Le,e.maxlength)}Le!==c.value&&(W(Le),HM(Ae.currentTarget,Ae,q,Le)),i("compositionend",Ae)},P=sA();di(()=>e.value,()=>{var Ae;"value"in P.vnode.props,l.value=(Ae=e.value)!==null&&Ae!==void 0?Ae:""});const j=Ae=>{var be;Dut((be=u.value)===null||be===void 0?void 0:be.textArea,Ae)},z=()=>{var Ae,be;(be=(Ae=u.value)===null||Ae===void 0?void 0:Ae.textArea)===null||be===void 0||be.blur()},W=(Ae,be)=>{l.value!==Ae&&(e.value===void 0?l.value=Ae:il(()=>{var Le,Ne,ue;u.value.textArea.value!==c.value&&((ue=(Le=u.value)===null||Le===void 0?void 0:(Ne=Le.instance).update)===null||ue===void 0||ue.call(Ne))}),il(()=>{be&&be()}))},Y=Ae=>{Ae.keyCode===13&&i("pressEnter",Ae),i("keydown",Ae)},ee=Ae=>{const{onBlur:be}=e;be==null||be(Ae),a.onFieldBlur()},q=Ae=>{i("update:value",Ae.target.value),i("change",Ae),i("input",Ae),a.onFieldChange()},ae=Ae=>{HM(u.value.textArea,Ae,q),W("",()=>{j()})},se=Ae=>{const{composing:be}=Ae.target;let Le=Ae.target.value;if(E.value=!!(Ae.isComposing||be),!(E.value&&e.lazy||l.value===Le)){if(C.value){const Ne=Ae.target,ue=Ne.selectionStart>=e.maxlength+1||Ne.selectionStart===Le.length||!Ne.selectionStart;Le=cTe(ue,c.value,Le,e.maxlength)}HM(Ae.currentTarget,Ae,q,Le),W(Le)}},de=()=>{var Ae,be;const{class:Le}=r,{bordered:Ne=!0}=e,ue=$e($e($e({},Cc(e,["allowClear"])),r),{class:[{[`${A.value}-borderless`]:!Ne,[`${Le}`]:Le&&!b.value,[`${A.value}-sm`]:f.value==="small",[`${A.value}-lg`]:f.value==="large"},Jb(A.value,s.value),p.value],disabled:m.value,showCount:null,prefixCls:A.value,onInput:se,onChange:se,onBlur:ee,onKeydown:Y,onCompositionstart:M,onCompositionend:N});return!((Ae=e.valueModifiers)===null||Ae===void 0)&&Ae.lazy&&delete ue.onInput,De(wKt,Ot(Ot({},ue),{},{id:(be=ue==null?void 0:ue.id)!==null&&be!==void 0?be:a.id.value,ref:u,maxlength:e.maxlength}),null)};return n({focus:j,blur:z,resizableTextArea:u}),ks(()=>{let Ae=$ye(l.value);!E.value&&C.value&&(e.value===null||e.value===void 0)&&(Ae=Out(Ae,e.maxlength)),c.value=Ae}),()=>{var Ae;const{maxlength:be,bordered:Le=!0,hidden:Ne}=e,{style:ue,class:Ke}=r,Pe=$e($e($e({},e),r),{prefixCls:A.value,inputType:"text",handleReset:ae,direction:h.value,bordered:Le,style:b.value?void 0:ue,hashId:p.value,disabled:(Ae=e.disabled)!==null&&Ae!==void 0?Ae:m.value});let je=De(gKt,Ot(Ot({},Pe),{},{value:c.value,status:e.status}),{element:de});if(b.value||o.hasFeedback){const Ye=[...c.value].length;let me="";typeof b.value=="object"?me=b.value.formatter({value:c.value,count:Ye,maxlength:be}):me=`${Ye}${C.value?` / ${be}`:""}`,je=De("div",{hidden:Ne,class:Vn(`${A.value}-textarea`,{[`${A.value}-textarea-rtl`]:h.value==="rtl",[`${A.value}-textarea-show-count`]:b.value,[`${A.value}-textarea-in-form-item`]:o.isFormItemInput},`${A.value}-textarea-show-count`,Ke,p.value),style:ue,"data-count":typeof me!="object"?me:void 0},[je,o.hasFeedback&&De("span",{class:`${A.value}-textarea-suffix`},[o.feedbackIcon])])}return g(je)}}});var IKt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);iDe(e?LJ:nxe,null,null),xKt=$n({compatConfig:{MODE:3},name:"AInputPassword",inheritAttrs:!1,props:$e($e({},HJ()),{prefixCls:String,inputPrefixCls:String,action:{type:String,default:"click"},visibilityToggle:{type:Boolean,default:!0},iconRender:Function}),setup(e,t){let{slots:r,attrs:n,expose:i}=t;const a=sn(!1),o=()=>{const{disabled:p}=e;p||(a.value=!a.value)},s=sn();i({focus:()=>{var p;(p=s.value)===null||p===void 0||p.focus()},blur:()=>{var p;(p=s.value)===null||p===void 0||p.blur()}});const c=p=>{const{action:m,iconRender:b=r.iconRender||BKt}=e,C=EKt[m]||"",E=b(a.value),_={[C]:o,class:`${p}-icon`,key:"passwordIcon",onMousedown:F=>{F.preventDefault()},onMouseup:F=>{F.preventDefault()}};return aA(l0(E)?E:De("span",null,[E]),_)},{prefixCls:A,getPrefixCls:f}=gs("input-password",e),h=vt(()=>f("input",e.inputPrefixCls)),g=()=>{const{size:p,visibilityToggle:m}=e,b=IKt(e,["size","visibilityToggle"]),C=m&&c(A.value),E=Vn(A.value,n.class,{[`${A.value}-${p}`]:!!p}),_=$e($e($e({},Cc(b,["suffix","iconRender","action"])),n),{type:a.value?"text":"password",class:E,prefixCls:h.value,suffix:C});return p&&(_.size=p),De(pg,Ot({ref:s},_),r)};return()=>g()}});pg.Group=cKt;pg.Search=fKt;pg.TextArea=CKt;pg.Password=xKt;pg.install=function(e){return e.component(pg.name,pg),e.component(pg.Group.name,pg.Group),e.component(pg.Search.name,pg.Search),e.component(pg.TextArea.name,pg.TextArea),e.component(pg.Password.name,pg.Password),e};function ATe(e){const t=e.getBoundingClientRect(),r=document.documentElement;return{left:t.left+(window.pageXOffset||r.scrollLeft)-(r.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||r.scrollTop)-(r.clientTop||document.body.clientTop||0)}}function pxe(){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:cn.shape({x:Number,y:Number}).loose,title:cn.any,footer:cn.any,transitionName:String,maskTransitionName:String,animation:cn.any,maskAnimation:cn.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:cn.any,maskProps:cn.any,wrapProps:cn.any,getContainer:cn.any,dialogStyle:{type:Object,default:void 0},dialogClass:String,closeIcon:cn.any,forceRender:{type:Boolean,default:void 0},getOpenCount:Function,focusTriggerAfterClose:{type:Boolean,default:void 0},onClose:Function,modalRender:Function}}function fTe(e,t,r){let n=t;return!n&&r&&(n=`${e}-${r}`),n}let hTe=-1;function SKt(){return hTe+=1,hTe}function dTe(e,t){let r=e[`page${t?"Y":"X"}Offset`];const n=`scroll${t?"Top":"Left"}`;if(typeof r!="number"){const i=e.document;r=i.documentElement[n],typeof r!="number"&&(r=i.body[n])}return r}function kKt(e){const t=e.getBoundingClientRect(),r={left:t.left,top:t.top},n=e.ownerDocument,i=n.defaultView||n.parentWindow;return r.left+=dTe(i),r.top+=dTe(i,!0),r}const gTe={width:0,height:0,overflow:"hidden",outline:"none"},QKt=$n({compatConfig:{MODE:3},name:"Content",inheritAttrs:!1,props:$e($e({},pxe()),{motionName:String,ariaId:String,onVisibleChanged:Function,onMousedown:Function,onMouseup:Function}),setup(e,t){let{expose:r,slots:n,attrs:i}=t;const a=Hn(),o=Hn(),s=Hn();r({focus:()=>{var f;(f=a.value)===null||f===void 0||f.focus()},changeActive:f=>{const{activeElement:h}=document;f&&h===o.value?a.value.focus():!f&&h===a.value&&o.value.focus()}});const l=Hn(),u=vt(()=>{const{width:f,height:h}=e,g={};return f!==void 0&&(g.width=typeof f=="number"?`${f}px`:f),h!==void 0&&(g.height=typeof h=="number"?`${h}px`:h),l.value&&(g.transformOrigin=l.value),g}),c=()=>{il(()=>{if(s.value){const f=kKt(s.value);l.value=e.mousePosition?`${e.mousePosition.x-f.left}px ${e.mousePosition.y-f.top}px`:""}})},A=f=>{e.onVisibleChanged(f)};return()=>{var f,h,g,p;const{prefixCls:m,footer:b=(f=n.footer)===null||f===void 0?void 0:f.call(n),title:C=(h=n.title)===null||h===void 0?void 0:h.call(n),ariaId:E,closable:_,closeIcon:F=(g=n.closeIcon)===null||g===void 0?void 0:g.call(n),onClose:M,bodyStyle:N,bodyProps:P,onMousedown:j,onMouseup:z,visible:W,modalRender:Y=n.modalRender,destroyOnClose:ee,motionName:q}=e;let ae;b&&(ae=De("div",{class:`${m}-footer`},[b]));let se;C&&(se=De("div",{class:`${m}-header`},[De("div",{class:`${m}-title`,id:E},[C])]));let de;_&&(de=De("button",{type:"button",onClick:M,"aria-label":"Close",class:`${m}-close`},[F||De("span",{class:`${m}-close-x`},null)]));const Ae=De("div",{class:`${m}-content`},[de,se,De("div",Ot({class:`${m}-body`,style:N},P),[(p=n.default)===null||p===void 0?void 0:p.call(n)]),ae]),be=p5(q);return De(nm,Ot(Ot({},be),{},{onBeforeEnter:c,onAfterEnter:()=>A(!0),onAfterLeave:()=>A(!1)}),{default:()=>[W||!ee?rp(De("div",Ot(Ot({},i),{},{ref:s,key:"dialog-element",role:"document",style:[u.value,i.style],class:[m,i.class],onMousedown:j,onMouseup:z}),[De("div",{tabindex:0,ref:a,style:gTe,"aria-hidden":"true"},null),Y?Y({originVNode:Ae}):Ae,De("div",{tabindex:0,ref:o,style:gTe,"aria-hidden":"true"},null)]),[[_y,W]]):null]})}}}),_Kt=$n({compatConfig:{MODE:3},name:"Mask",props:{prefixCls:String,visible:Boolean,motionName:String,maskProps:Object},setup(e,t){return()=>{const{prefixCls:r,visible:n,maskProps:i,motionName:a}=e,o=p5(a);return De(nm,o,{default:()=>[rp(De("div",Ot({class:`${r}-mask`},i),null),[[_y,n]])]})}}}),pTe=$n({compatConfig:{MODE:3},name:"Dialog",inheritAttrs:!1,props:ju($e($e({},pxe()),{getOpenCount:Function,scrollLocker:Object}),{mask:!0,visible:!1,keyboard:!0,closable:!0,maskClosable:!0,destroyOnClose:!1,prefixCls:"rc-dialog",getOpenCount:()=>null,focusTriggerAfterClose:!0}),setup(e,t){let{attrs:r,slots:n}=t;const i=sn(),a=sn(),o=sn(),s=sn(e.visible),l=sn(`vcDialogTitle${SKt()}`),u=b=>{var C,E;if(b)v3(a.value,document.activeElement)||(i.value=document.activeElement,(C=o.value)===null||C===void 0||C.focus());else{const _=s.value;if(s.value=!1,e.mask&&i.value&&e.focusTriggerAfterClose){try{i.value.focus({preventScroll:!0})}catch{}i.value=null}_&&((E=e.afterClose)===null||E===void 0||E.call(e))}},c=b=>{var C;(C=e.onClose)===null||C===void 0||C.call(e,b)},A=sn(!1),f=sn(),h=()=>{clearTimeout(f.value),A.value=!0},g=()=>{f.value=setTimeout(()=>{A.value=!1})},p=b=>{if(!e.maskClosable)return null;A.value?A.value=!1:a.value===b.target&&c(b)},m=b=>{if(e.keyboard&&b.keyCode===yi.ESC){b.stopPropagation(),c(b);return}e.visible&&b.keyCode===yi.TAB&&o.value.changeActive(!b.shiftKey)};return di(()=>e.visible,()=>{e.visible&&(s.value=!0)},{flush:"post"}),el(()=>{var b;clearTimeout(f.value),(b=e.scrollLocker)===null||b===void 0||b.unLock()}),ks(()=>{var b,C;(b=e.scrollLocker)===null||b===void 0||b.unLock(),s.value&&((C=e.scrollLocker)===null||C===void 0||C.lock())}),()=>{const{prefixCls:b,mask:C,visible:E,maskTransitionName:_,maskAnimation:F,zIndex:M,wrapClassName:N,rootClassName:P,wrapStyle:j,closable:z,maskProps:W,maskStyle:Y,transitionName:ee,animation:q,wrapProps:ae,title:se=n.title}=e,{style:de,class:Ae}=r;return De("div",Ot({class:[`${b}-root`,P]},H5(e,{data:!0})),[De(_Kt,{prefixCls:b,visible:C&&E,motionName:fTe(b,_,F),style:$e({zIndex:M},Y),maskProps:W},null),De("div",Ot({tabIndex:-1,onKeydown:m,class:Vn(`${b}-wrap`,N),ref:a,onClick:p,role:"dialog","aria-labelledby":se?l.value:null,style:$e($e({zIndex:M},j),{display:s.value?null:"none"})},ae),[De(QKt,Ot(Ot({},Cc(e,["scrollLocker"])),{},{style:de,class:Ae,onMousedown:h,onMouseup:g,ref:o,closable:z,ariaId:l.value,prefixCls:b,visible:E,onClose:c,onVisibleChanged:u,motionName:fTe(b,ee,q)}),n)])])}}}),TKt=pxe(),DKt=$n({compatConfig:{MODE:3},name:"DialogWrap",inheritAttrs:!1,props:ju(TKt,{visible:!1}),setup(e,t){let{attrs:r,slots:n}=t;const i=Hn(e.visible);return VEe({},{inTriggerContext:!1}),di(()=>e.visible,()=>{e.visible&&(i.value=!0)},{flush:"post"}),()=>{const{visible:a,getContainer:o,forceRender:s,destroyOnClose:l=!1,afterClose:u}=e;let c=$e($e($e({},e),r),{ref:"_component",key:"dialog"});return o===!1?De(pTe,Ot(Ot({},c),{},{getOpenCount:()=>2}),n):!s&&l&&!i.value?null:De(WEe,{autoLock:!0,visible:a,forceRender:s,getContainer:o},{default:A=>(c=$e($e($e({},c),A),{afterClose:()=>{u==null||u(),i.value=!1}}),De(pTe,c,n))})}}});function vTe(e){return{position:e,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0}}const FKt=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}${e.antCls}-zoom-enter, ${t}${e.antCls}-zoom-appear`]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},[`${t}${e.antCls}-zoom-leave ${t}-content`]:{pointerEvents:"none"},[`${t}-mask`]:$e($e({},vTe("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:$e($e({},vTe("fixed")),{overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:TOt(e)}]},RKt=e=>{const{componentCls:t}=e;return[{[`${t}-root`]:{[`${t}-wrap`]:{zIndex:e.zIndexPopupBase,position:"fixed",inset:0,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"},[`${t}-wrap-rtl`]:{direction:"rtl"},[`${t}-centered`]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},[`@media (max-width: ${e.screenSMMax})`]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:`${e.marginXS} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:$e($e({},gu(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${e.margin*2}px)`,margin:"0 auto",paddingBottom:e.paddingLG,[`${t}-title`]:{margin:0,color:e.modalHeadingColor,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,wordWrap:"break-word"},[`${t}-content`]:{position:"relative",backgroundColor:e.modalContentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadowSecondary,pointerEvents:"auto",padding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`},[`${t}-close`]:$e({position:"absolute",top:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,insetInlineEnd:(e.modalHeaderCloseSize-e.modalCloseBtnSize)/2,zIndex:e.zIndexPopupBase+10,padding:0,color:e.modalCloseColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalConfirmIconSize,height:e.modalConfirmIconSize,border:0,outline:0,cursor:"pointer",transition:`color ${e.motionDurationMid}, background-color ${e.motionDurationMid}`,"&-x":{display:"block",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:`${e.modalCloseBtnSize}px`,textAlign:"center",textTransform:"none",textRendering:"auto"},"&:hover":{color:e.modalIconHoverColor,backgroundColor:e.wireframe?"transparent":e.colorFillContent,textDecoration:"none"},"&:active":{backgroundColor:e.wireframe?"transparent":e.colorFillContentHover}},g5(e)),[`${t}-header`]:{color:e.colorText,background:e.modalHeaderBg,borderRadius:`${e.borderRadiusLG}px ${e.borderRadiusLG}px 0 0`,marginBottom:e.marginXS},[`${t}-body`]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word"},[`${t}-footer`]:{textAlign:"end",background:e.modalFooterBg,marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn:not(${e.antCls}-dropdown-trigger)`]:{marginBottom:0,marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content, ${t}-body, ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},MKt=e=>{const{componentCls:t}=e,r=`${t}-confirm`;return{[r]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${r}-body-wrapper`]:$e({},y6()),[`${r}-body`]:{display:"flex",flexWrap:"wrap",alignItems:"center",[`${r}-title`]:{flex:"0 0 100%",display:"block",overflow:"hidden",color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.modalHeaderTitleFontSize,lineHeight:e.modalHeaderTitleLineHeight,[`+ ${r}-content`]:{marginBlockStart:e.marginXS,flexBasis:"100%",maxWidth:`calc(100% - ${e.modalConfirmIconSize+e.marginSM}px)`}},[`${r}-content`]:{color:e.colorText,fontSize:e.fontSize},[`> ${e.iconCls}`]:{flex:"none",marginInlineEnd:e.marginSM,fontSize:e.modalConfirmIconSize,[`+ ${r}-title`]:{flex:1},[`+ ${r}-title + ${r}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.marginSM}}},[`${r}-btns`]:{textAlign:"end",marginTop:e.marginSM,[`${e.antCls}-btn + ${e.antCls}-btn`]:{marginBottom:0,marginInlineStart:e.marginXS}}},[`${r}-error ${r}-body > ${e.iconCls}`]:{color:e.colorError},[`${r}-warning ${r}-body > ${e.iconCls}, ${r}-confirm ${r}-body > ${e.iconCls}`]:{color:e.colorWarning},[`${r}-info ${r}-body > ${e.iconCls}`]:{color:e.colorInfo},[`${r}-success ${r}-body > ${e.iconCls}`]:{color:e.colorSuccess},[`${t}-zoom-leave ${t}-btns`]:{pointerEvents:"none"}}},OKt=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},NKt=e=>{const{componentCls:t,antCls:r}=e,n=`${t}-confirm`;return{[t]:{[`${t}-content`]:{padding:0},[`${t}-header`]:{padding:e.modalHeaderPadding,borderBottom:`${e.modalHeaderBorderWidth}px ${e.modalHeaderBorderStyle} ${e.modalHeaderBorderColorSplit}`,marginBottom:0},[`${t}-body`]:{padding:e.modalBodyPadding},[`${t}-footer`]:{padding:`${e.modalFooterPaddingVertical}px ${e.modalFooterPaddingHorizontal}px`,borderTop:`${e.modalFooterBorderWidth}px ${e.modalFooterBorderStyle} ${e.modalFooterBorderColorSplit}`,borderRadius:`0 0 ${e.borderRadiusLG}px ${e.borderRadiusLG}px`,marginTop:0}},[n]:{[`${r}-modal-body`]:{padding:`${e.padding*2}px ${e.padding*2}px ${e.paddingLG}px`},[`${n}-body`]:{[`> ${e.iconCls}`]:{marginInlineEnd:e.margin,[`+ ${n}-title + ${n}-content`]:{marginInlineStart:e.modalConfirmIconSize+e.margin}}},[`${n}-btns`]:{marginTop:e.marginLG}}}},LKt=Gu("Modal",e=>{const t=e.padding,r=e.fontSizeHeading5,n=e.lineHeightHeading5,i=Al(e,{modalBodyPadding:e.paddingLG,modalHeaderBg:e.colorBgElevated,modalHeaderPadding:`${t}px ${e.paddingLG}px`,modalHeaderBorderWidth:e.lineWidth,modalHeaderBorderStyle:e.lineType,modalHeaderTitleLineHeight:n,modalHeaderTitleFontSize:r,modalHeaderBorderColorSplit:e.colorSplit,modalHeaderCloseSize:n*r+t*2,modalContentBg:e.colorBgElevated,modalHeadingColor:e.colorTextHeading,modalCloseColor:e.colorTextDescription,modalFooterBg:"transparent",modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterPaddingVertical:e.paddingXS,modalFooterPaddingHorizontal:e.padding,modalFooterBorderWidth:e.lineWidth,modalConfirmTitleFontSize:e.fontSizeLG,modalIconHoverColor:e.colorIconHover,modalConfirmIconSize:e.fontSize*e.lineHeight,modalCloseBtnSize:e.controlHeightLG*.55});return[RKt(i),MKt(i),OKt(i),FKt(i),e.wireframe&&NKt(i),IL(i,"zoom")]});function zye(){return typeof BigInt=="function"}function jM(e){let t=e.trim(),r=t.startsWith("-");r&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t=`0${t}`);const n=t||"0",i=n.split("."),a=i[0]||"0",o=i[1]||"0";a==="0"&&o==="0"&&(r=!1);const s=r?"-":"";return{negative:r,negativeStr:s,trimStr:n,integerStr:a,decimalStr:o,fullStr:`${s}${n}`}}function vxe(e){const t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function qO(e){const t=String(e);if(vxe(e)){let r=Number(t.slice(t.indexOf("e-")+2));const n=t.match(/\.(\d+)/);return n!=null&&n[1]&&(r+=n[1].length),r}return t.includes(".")&&yxe(t)?t.length-t.indexOf(".")-1:0}function mxe(e){let t=String(e);if(vxe(e)){if(e>Number.MAX_SAFE_INTEGER)return String(zye()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(eNumber.MAX_SAFE_INTEGER)return new lk(Number.MAX_SAFE_INTEGER);if(n0&&arguments[0]!==void 0?arguments[0]:!0)?this.isInvalidate()?"":mxe(this.number):this.origin}}class J8{constructor(t){if(this.origin="",Nut(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}let r=t;if(vxe(r)&&(r=Number(r)),r=typeof r=="string"?r:mxe(r),yxe(r)){const n=jM(r);this.negative=n.negative;const i=n.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(t){const r=`${this.getMark()}${this.getIntegerStr()}${this.getDecimalStr().padEnd(t,"0")}`;return BigInt(r)}negate(){const t=new J8(this.toString());return t.negative=!t.negative,t}add(t){if(this.isInvalidate())return new J8(t);const r=new J8(t);if(r.isInvalidate())return this;const n=Math.max(this.getDecimalStr().length,r.getDecimalStr().length),i=this.alignDecimal(n),a=r.alignDecimal(n),o=(i+a).toString(),{negativeStr:s,trimStr:l}=jM(o),u=`${s}${l.padStart(n+1,"0")}`;return new J8(`${u.slice(0,-n)}.${u.slice(-n)}`)}isEmpty(){return this.empty}isNaN(){return this.nan}isInvalidate(){return this.isEmpty()||this.isNaN()}equals(t){return this.toString()===(t==null?void 0:t.toString())}lessEquals(t){return this.add(t.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()?"":jM(`${this.getMark()}${this.getIntegerStr()}.${this.getDecimalStr()}`).fullStr:this.origin}}function Rw(e){return zye()?new J8(e):new lk(e)}function Kye(e,t,r){let n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";const{negativeStr:i,integerStr:a,decimalStr:o}=jM(e),s=`${t}${o}`,l=`${i}${a}`;if(r>=0){const u=Number(o[r]);if(u>=5&&!n){const c=Rw(e).add(`${i}0.${"0".repeat(r)}${10-u}`);return Kye(c.toString(),t,r,n)}return r===0?l:`${l}${t}${o.padEnd(r,"0").slice(0,r)}`}return s===".0"?l:`${l}${s}`}const PKt=200,UKt=600,HKt=$n({compatConfig:{MODE:3},name:"StepHandler",inheritAttrs:!1,props:{prefixCls:String,upDisabled:Boolean,downDisabled:Boolean,onStep:pi()},slots:Object,setup(e,t){let{slots:r,emit:n}=t;const i=Hn(),a=(s,l)=>{s.preventDefault(),n("step",l);function u(){n("step",l),i.value=setTimeout(u,PKt)}i.value=setTimeout(u,UKt)},o=()=>{clearTimeout(i.value)};return el(()=>{o()}),()=>{if(JEe())return null;const{prefixCls:s,upDisabled:l,downDisabled:u}=e,c=`${s}-handler`,A=Vn(c,`${c}-up`,{[`${c}-up-disabled`]:l}),f=Vn(c,`${c}-down`,{[`${c}-down-disabled`]:u}),h={unselectable:"on",role:"button",onMouseup:o,onMouseleave:o},{upNode:g,downNode:p}=r;return De("div",{class:`${c}-wrap`},[De("span",Ot(Ot({},h),{},{onMousedown:m=>{a(m,!0)},"aria-label":"Increase Value","aria-disabled":l,class:A}),[(g==null?void 0:g())||De("span",{unselectable:"on",class:`${s}-handler-up-inner`},null)]),De("span",Ot(Ot({},h),{},{onMousedown:m=>{a(m,!1)},"aria-label":"Decrease Value","aria-disabled":u,class:f}),[(p==null?void 0:p())||De("span",{unselectable:"on",class:`${s}-handler-down-inner`},null)])])}}});function jKt(e,t){const r=Hn(null);function n(){try{const{selectionStart:a,selectionEnd:o,value:s}=e.value,l=s.substring(0,a),u=s.substring(o);r.value={start:a,end:o,value:s,beforeTxt:l,afterTxt:u}}catch{}}function i(){if(e.value&&r.value&&t.value)try{const{value:a}=e.value,{beforeTxt:o,afterTxt:s,start:l}=r.value;let u=a.length;if(a.endsWith(s))u=a.length-r.value.afterTxt.length;else if(a.startsWith(o))u=o.length;else{const c=o[l-1],A=a.indexOf(c,l-1);A!==-1&&(u=A+1)}e.value.setSelectionRange(u,u)}catch(a){`${a.message}`}}return[n,i]}const GKt=()=>{const e=sn(0),t=()=>{ms.cancel(e.value)};return el(()=>{t()}),r=>{t(),e.value=ms(()=>{r()})}};var $Kt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);ie||t.isEmpty()?t.toString():t.toNumber(),yTe=e=>{const t=Rw(e);return t.isInvalidate()?null:t},Lut=()=>({stringMode:Pa(),defaultValue:$l([String,Number]),value:$l([String,Number]),prefixCls:Us(),min:$l([String,Number]),max:$l([String,Number]),step:$l([String,Number],1),tabindex:Number,controls:Pa(!0),readonly:Pa(),disabled:Pa(),autofocus:Pa(),keyboard:Pa(!0),parser:pi(),formatter:pi(),precision:Number,decimalSeparator:String,onInput:pi(),onChange:pi(),onPressEnter:pi(),onStep:pi(),onBlur:pi(),onFocus:pi()}),zKt=$n({compatConfig:{MODE:3},name:"InnerInputNumber",inheritAttrs:!1,props:$e($e({},Lut()),{lazy:Boolean}),slots:Object,setup(e,t){let{attrs:r,slots:n,emit:i,expose:a}=t;const o=sn(),s=sn(!1),l=sn(!1),u=sn(!1),c=sn(Rw(e.value));function A(Ne){e.value===void 0&&(c.value=Ne)}const f=(Ne,ue)=>{if(!ue)return e.precision>=0?e.precision:Math.max(qO(Ne),qO(e.step))},h=Ne=>{const ue=String(Ne);if(e.parser)return e.parser(ue);let Ke=ue;return e.decimalSeparator&&(Ke=Ke.replace(e.decimalSeparator,".")),Ke.replace(/[^\w.-]+/g,"")},g=sn(""),p=(Ne,ue)=>{if(e.formatter)return e.formatter(Ne,{userTyping:ue,input:String(g.value)});let Ke=typeof Ne=="number"?mxe(Ne):Ne;if(!ue){const Pe=f(Ke,ue);if(yxe(Ke)&&(e.decimalSeparator||Pe>=0)){const je=e.decimalSeparator||".";Ke=Kye(Ke,je,Pe)}}return Ke},m=(()=>{const Ne=e.value;return c.value.isInvalidate()&&["string","number"].includes(typeof Ne)?Number.isNaN(Ne)?"":Ne:p(c.value.toString(),!1)})();g.value=m;function b(Ne,ue){g.value=p(Ne.isInvalidate()?Ne.toString(!1):Ne.toString(!ue),ue)}const C=vt(()=>yTe(e.max)),E=vt(()=>yTe(e.min)),_=vt(()=>!C.value||!c.value||c.value.isInvalidate()?!1:C.value.lessEquals(c.value)),F=vt(()=>!E.value||!c.value||c.value.isInvalidate()?!1:c.value.lessEquals(E.value)),[M,N]=jKt(o,s),P=Ne=>C.value&&!Ne.lessEquals(C.value)?C.value:E.value&&!E.value.lessEquals(Ne)?E.value:null,j=Ne=>!P(Ne),z=(Ne,ue)=>{var Ke;let Pe=Ne,je=j(Pe)||Pe.isEmpty();if(!Pe.isEmpty()&&!ue&&(Pe=P(Pe)||Pe,je=!0),!e.readonly&&!e.disabled&&je){const Ye=Pe.toString(),me=f(Ye,ue);return me>=0&&(Pe=Rw(Kye(Ye,".",me))),Pe.equals(c.value)||(A(Pe),(Ke=e.onChange)===null||Ke===void 0||Ke.call(e,Pe.isEmpty()?null:mTe(e.stringMode,Pe)),e.value===void 0&&b(Pe,ue)),Pe}return c.value},W=GKt(),Y=Ne=>{var ue;if(M(),g.value=Ne,!u.value){const Ke=h(Ne),Pe=Rw(Ke);Pe.isNaN()||z(Pe,!0)}(ue=e.onInput)===null||ue===void 0||ue.call(e,Ne),W(()=>{let Ke=Ne;e.parser||(Ke=Ne.replace(/。/g,".")),Ke!==Ne&&Y(Ke)})},ee=()=>{u.value=!0},q=()=>{u.value=!1,Y(o.value.value)},ae=Ne=>{Y(Ne.target.value)},se=Ne=>{var ue,Ke;if(Ne&&_.value||!Ne&&F.value)return;l.value=!1;let Pe=Rw(e.step);Ne||(Pe=Pe.negate());const je=(c.value||Rw(0)).add(Pe.toString()),Ye=z(je,!1);(ue=e.onStep)===null||ue===void 0||ue.call(e,mTe(e.stringMode,Ye),{offset:e.step,type:Ne?"up":"down"}),(Ke=o.value)===null||Ke===void 0||Ke.focus()},de=Ne=>{const ue=Rw(h(g.value));let Ke=ue;ue.isNaN()?Ke=c.value:Ke=z(ue,Ne),e.value!==void 0?b(c.value,!1):Ke.isNaN()||b(Ke,!1)},Ae=Ne=>{var ue;const{which:Ke}=Ne;l.value=!0,Ke===yi.ENTER&&(u.value||(l.value=!1),de(!1),(ue=e.onPressEnter)===null||ue===void 0||ue.call(e,Ne)),e.keyboard!==!1&&!u.value&&[yi.UP,yi.DOWN].includes(Ke)&&(se(yi.UP===Ke),Ne.preventDefault())},be=()=>{l.value=!1},Le=Ne=>{de(!1),s.value=!1,l.value=!1,i("blur",Ne)};return di(()=>e.precision,()=>{c.value.isInvalidate()||b(c.value,!1)},{flush:"post"}),di(()=>e.value,()=>{const Ne=Rw(e.value);c.value=Ne;const ue=Rw(h(g.value));(!Ne.equals(ue)||!l.value||e.formatter)&&b(Ne,l.value)},{flush:"post"}),di(g,()=>{e.formatter&&N()},{flush:"post"}),di(()=>e.disabled,Ne=>{Ne&&(s.value=!1)}),a({focus:()=>{var Ne;(Ne=o.value)===null||Ne===void 0||Ne.focus()},blur:()=>{var Ne;(Ne=o.value)===null||Ne===void 0||Ne.blur()}}),()=>{const Ne=$e($e({},r),e),{prefixCls:ue="rc-input-number",min:Ke,max:Pe,step:je=1,defaultValue:Ye,value:me,disabled:Se,readonly:et,keyboard:nt,controls:tt=!0,autofocus:ft,stringMode:st,parser:Re,formatter:dt,precision:Oe,decimalSeparator:Ce,onChange:Be,onInput:We,onPressEnter:mt,onStep:Tt,lazy:bt,class:qt,style:cr}=Ne,Gt=$Kt(Ne,["prefixCls","min","max","step","defaultValue","value","disabled","readonly","keyboard","controls","autofocus","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","lazy","class","style"]),{upHandler:Xt,downHandler:Er}=n,on=`${ue}-input`,wn={};return bt?wn.onChange=ae:wn.onInput=ae,De("div",{class:Vn(ue,qt,{[`${ue}-focused`]:s.value,[`${ue}-disabled`]:Se,[`${ue}-readonly`]:et,[`${ue}-not-a-number`]:c.value.isNaN(),[`${ue}-out-of-range`]:!c.value.isInvalidate()&&!j(c.value)}),style:cr,onKeydown:Ae,onKeyup:be},[tt&&De(HKt,{prefixCls:ue,upDisabled:_.value,downDisabled:F.value,onStep:se},{upNode:Xt,downNode:Er}),De("div",{class:`${on}-wrap`},[De("input",Ot(Ot(Ot({autofocus:ft,autocomplete:"off",role:"spinbutton","aria-valuemin":Ke,"aria-valuemax":Pe,"aria-valuenow":c.value.isInvalidate()?null:c.value.toString(),step:je},Gt),{},{ref:o,class:on,value:g.value,disabled:Se,readonly:et,onFocus:jr=>{s.value=!0,i("focus",jr)}},wn),{},{onBlur:Le,onCompositionstart:ee,onCompositionend:q}),null)])])}}});function coe(e){return e!=null}const KKt=e=>{const{componentCls:t,lineWidth:r,lineType:n,colorBorder:i,borderRadius:a,fontSizeLG:o,controlHeightLG:s,controlHeightSM:l,colorError:u,inputPaddingHorizontalSM:c,colorTextDescription:A,motionDurationMid:f,colorPrimary:h,controlHeight:g,inputPaddingHorizontal:p,colorBgContainer:m,colorTextDisabled:b,borderRadiusSM:C,borderRadiusLG:E,controlWidth:_,handleVisible:F}=e;return[{[t]:$e($e($e($e({},gu(e)),W7(e)),TJ(e,t)),{display:"inline-block",width:_,margin:0,padding:0,border:`${r}px ${n} ${i}`,borderRadius:a,"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:o,borderRadius:E,[`input${t}-input`]:{height:s-2*r}},"&-sm":{padding:0,borderRadius:C,[`input${t}-input`]:{height:l-2*r,padding:`0 ${c}px`}},"&:hover":$e({},V7(e)),"&-focused":$e({},I6(e)),"&-disabled":$e($e({},wlt(e)),{[`${t}-input`]:{cursor:"not-allowed"}}),"&-out-of-range":{input:{color:u}},"&-group":$e($e($e({},gu(e)),Ilt(e)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:E}},"&-sm":{[`${t}-group-addon`]:{borderRadius:C}}}}),[t]:{"&-input":$e($e({width:"100%",height:g-2*r,padding:`0 ${p}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${f} linear`,appearance:"textfield",color:e.colorText,fontSize:"inherit",verticalAlign:"top"},blt(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[t]:{[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{opacity:1},[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleWidth,height:"100%",background:m,borderStartStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a,borderEndStartRadius:0,opacity:F===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${f} linear ${f}`,[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[` ${t}-handler-up-inner, ${t}-handler-down-inner `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:A,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${r}px ${n} ${i}`,transition:`all ${f} linear`,"&:active":{background:e.colorFillAlter},"&:hover":{height:"60%",[` ${t}-handler-up-inner, ${t}-handler-down-inner `]:{color:h}},"&-up-inner, &-down-inner":$e($e({},vL()),{color:A,transition:`all ${f} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:a},[`${t}-handler-down`]:{borderBlockStart:`${r}px ${n} ${i}`,borderEndEndRadius:a},"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"}},[` ${t}-handler-up-disabled, ${t}-handler-down-disabled `]:{cursor:"not-allowed"},[` ${t}-handler-up-disabled:hover &-handler-up-inner, ${t}-handler-down-disabled:hover &-handler-down-inner `]:{color:b}}},{[`${t}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${t}-handler-down`]:{borderBlockStartWidth:0}}}]},VKt=e=>{const{componentCls:t,inputPaddingHorizontal:r,inputAffixPadding:n,controlWidth:i,borderRadiusLG:a,borderRadiusSM:o}=e;return{[`${t}-affix-wrapper`]:$e($e($e({},W7(e)),TJ(e,`${t}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a},"&-sm":{borderRadius:o},[`&:not(${t}-affix-wrapper-disabled):hover`]:$e($e({},V7(e)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${t}[disabled]`]:{background:"transparent"}},[`> div${t}`]:{width:"100%",border:"none",outline:"none",[`&${t}-focused`]:{boxShadow:"none !important"}},[`input${t}-input`]:{padding:0},"&::before":{width:0,visibility:"hidden",content:'"\\a0"'},[`${t}-handler-wrap`]:{zIndex:2},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:n},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:r,marginInlineStart:n}}})}},WKt=Gu("InputNumber",e=>{const t=DJ(e);return[KKt(t),VKt(t),EL(t)]},e=>({controlWidth:90,handleWidth:e.controlHeightSM-e.lineWidth*2,handleFontSize:e.fontSize/2,handleVisible:"auto"}));var YKt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i$e($e({},bTe),{size:Us(),bordered:Pa(!0),placeholder:String,name:String,id:String,type:String,addonBefore:cn.any,addonAfter:cn.any,prefix:cn.any,"onUpdate:value":bTe.onChange,valueModifiers:Object,status:Us()}),Aoe=$n({compatConfig:{MODE:3},name:"AInputNumber",inheritAttrs:!1,props:qKt(),slots:Object,setup(e,t){let{emit:r,expose:n,attrs:i,slots:a}=t;const o=im(),s=f1.useInject(),l=vt(()=>Z6(s.status,e.status)),{prefixCls:u,size:c,direction:A,disabled:f}=gs("input-number",e),{compactSize:h,compactItemClassnames:g}=z7(u,A),p=hC(),m=vt(()=>{var Y;return(Y=f.value)!==null&&Y!==void 0?Y:p.value}),[b,C]=WKt(u),E=vt(()=>h.value||c.value),_=sn(e.value===void 0?e.defaultValue:e.value),F=sn(!1);di(()=>e.value,()=>{_.value=e.value});const M=sn(null);n({focus:()=>{var Y;(Y=M.value)===null||Y===void 0||Y.focus()},blur:()=>{var Y;(Y=M.value)===null||Y===void 0||Y.blur()}});const j=Y=>{e.value===void 0&&(_.value=Y),r("update:value",Y),r("change",Y),o.onFieldChange()},z=Y=>{F.value=!1,r("blur",Y),o.onFieldBlur()},W=Y=>{F.value=!0,r("focus",Y)};return()=>{var Y,ee,q,ae;const{hasFeedback:se,isFormItemInput:de,feedbackIcon:Ae}=s,be=(Y=e.id)!==null&&Y!==void 0?Y:o.id.value,Le=$e($e($e({},i),e),{id:be,disabled:m.value}),{class:Ne,bordered:ue,readonly:Ke,style:Pe,addonBefore:je=(ee=a.addonBefore)===null||ee===void 0?void 0:ee.call(a),addonAfter:Ye=(q=a.addonAfter)===null||q===void 0?void 0:q.call(a),prefix:me=(ae=a.prefix)===null||ae===void 0?void 0:ae.call(a),valueModifiers:Se={}}=Le,et=YKt(Le,["class","bordered","readonly","style","addonBefore","addonAfter","prefix","valueModifiers"]),nt=u.value,tt=Vn({[`${nt}-lg`]:E.value==="large",[`${nt}-sm`]:E.value==="small",[`${nt}-rtl`]:A.value==="rtl",[`${nt}-readonly`]:Ke,[`${nt}-borderless`]:!ue,[`${nt}-in-form-item`]:de},Jb(nt,l.value),Ne,g.value,C.value);let ft=De(zKt,Ot(Ot({},Cc(et,["size","defaultValue"])),{},{ref:M,lazy:!!Se.lazy,value:_.value,class:tt,prefixCls:nt,readonly:Ke,onChange:j,onBlur:z,onFocus:W}),{upHandler:a.upIcon?()=>De("span",{class:`${nt}-handler-up-inner`},[a.upIcon()]):()=>De(hxe,{class:`${nt}-handler-up-inner`},null),downHandler:a.downIcon?()=>De("span",{class:`${nt}-handler-down-inner`},[a.downIcon()]):()=>De(j7,{class:`${nt}-handler-down-inner`},null)});const st=coe(je)||coe(Ye),Re=coe(me);if(Re||se){const dt=Vn(`${nt}-affix-wrapper`,Jb(`${nt}-affix-wrapper`,l.value,se),{[`${nt}-affix-wrapper-focused`]:F.value,[`${nt}-affix-wrapper-disabled`]:m.value,[`${nt}-affix-wrapper-sm`]:E.value==="small",[`${nt}-affix-wrapper-lg`]:E.value==="large",[`${nt}-affix-wrapper-rtl`]:A.value==="rtl",[`${nt}-affix-wrapper-readonly`]:Ke,[`${nt}-affix-wrapper-borderless`]:!ue,[`${Ne}`]:!st&&Ne},C.value);ft=De("div",{class:dt,style:Pe,onMouseup:()=>M.value.focus()},[Re&&De("span",{class:`${nt}-prefix`},[me]),ft,se&&De("span",{class:`${nt}-suffix`},[Ae])])}if(st){const dt=`${nt}-group`,Oe=`${dt}-addon`,Ce=je?De("div",{class:Oe},[je]):null,Be=Ye?De("div",{class:Oe},[Ye]):null,We=Vn(`${nt}-wrapper`,dt,{[`${dt}-rtl`]:A.value==="rtl"},C.value),mt=Vn(`${nt}-group-wrapper`,{[`${nt}-group-wrapper-sm`]:E.value==="small",[`${nt}-group-wrapper-lg`]:E.value==="large",[`${nt}-group-wrapper-rtl`]:A.value==="rtl"},Jb(`${u}-group-wrapper`,l.value,se),Ne,C.value);ft=De("div",{class:mt,style:Pe},[De("div",{class:We},[Ce&&De(VO,null,{default:()=>[De(dW,null,{default:()=>[Ce]})]}),ft,Be&&De(VO,null,{default:()=>[De(dW,null,{default:()=>[Be]})]})])])}return b(aA(ft,{style:Pe}))}}}),bZr=$e(Aoe,{install:e=>(e.component(Aoe.name,Aoe),e)}),JKt=e=>{const{componentCls:t,colorBgContainer:r,colorBgBody:n,colorText:i}=e;return{[`${t}-sider-light`]:{background:r,[`${t}-sider-trigger`]:{color:i,background:r},[`${t}-sider-zero-width-trigger`]:{color:i,background:r,border:`1px solid ${n}`,borderInlineStart:0}}}},XKt=e=>{const{antCls:t,componentCls:r,colorText:n,colorTextLightSolid:i,colorBgHeader:a,colorBgBody:o,colorBgTrigger:s,layoutHeaderHeight:l,layoutHeaderPaddingInline:u,layoutHeaderColor:c,layoutFooterPadding:A,layoutTriggerHeight:f,layoutZeroTriggerSize:h,motionDurationMid:g,motionDurationSlow:p,fontSize:m,borderRadius:b}=e;return{[r]:$e($e({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:o,"&, *":{boxSizing:"border-box"},[`&${r}-has-sider`]:{flexDirection:"row",[`> ${r}, > ${r}-content`]:{width:0}},[`${r}-header, &${r}-footer`]:{flex:"0 0 auto"},[`${r}-header`]:{height:l,paddingInline:u,color:c,lineHeight:`${l}px`,background:a,[`${t}-menu`]:{lineHeight:"inherit"}},[`${r}-footer`]:{padding:A,color:n,fontSize:m,background:o},[`${r}-content`]:{flex:"auto",minHeight:0},[`${r}-sider`]:{position:"relative",minWidth:0,background:a,transition:`all ${g}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${t}-menu${t}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:f},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:f,color:i,lineHeight:`${f}px`,textAlign:"center",background:s,cursor:"pointer",transition:`all ${g}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:l,insetInlineEnd:-h,zIndex:1,width:h,height:h,color:i,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:a,borderStartStartRadius:0,borderStartEndRadius:b,borderEndEndRadius:b,borderEndStartRadius:0,cursor:"pointer",transition:`background ${p} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${p}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-h,borderStartStartRadius:b,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:b}}}}},JKt(e)),{"&-rtl":{direction:"rtl"}})}},ZKt=Gu("Layout",e=>{const{colorText:t,controlHeightSM:r,controlHeight:n,controlHeightLG:i,marginXXS:a}=e,o=i*1.25,s=Al(e,{layoutHeaderHeight:n*2,layoutHeaderPaddingInline:o,layoutHeaderColor:t,layoutFooterPadding:`${r}px ${o}px`,layoutTriggerHeight:i+a*2,layoutZeroTriggerSize:i});return[XKt(s)]},e=>{const{colorBgLayout:t}=e;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140"}}),bxe=()=>({prefixCls:String,hasSider:{type:Boolean,default:void 0},tagName:String});function jJ(e){let{suffixCls:t,tagName:r,name:n}=e;return i=>$n({compatConfig:{MODE:3},name:n,props:bxe(),setup(o,s){let{slots:l}=s;const{prefixCls:u}=gs(t,o);return()=>{const c=$e($e({},o),{prefixCls:u.value,tagName:r});return De(i,c,l)}}})}const wxe=$n({compatConfig:{MODE:3},props:bxe(),setup(e,t){let{slots:r}=t;return()=>De(e.tagName,{class:e.prefixCls},r)}}),eVt=$n({compatConfig:{MODE:3},inheritAttrs:!1,props:bxe(),setup(e,t){let{slots:r,attrs:n}=t;const{prefixCls:i,direction:a}=gs("",e),[o,s]=ZKt(i),l=Hn([]);Es(jst,{addSider:A=>{l.value=[...l.value,A]},removeSider:A=>{l.value=l.value.filter(f=>f!==A)}});const c=vt(()=>{const{prefixCls:A,hasSider:f}=e;return{[s.value]:!0,[`${A}`]:!0,[`${A}-has-sider`]:typeof f=="boolean"?f:l.value.length>0,[`${A}-rtl`]:a.value==="rtl"}});return()=>{const{tagName:A}=e;return o(De(A,$e($e({},n),{class:[c.value,n.class]}),r))}}}),foe=jJ({suffixCls:"layout",tagName:"section",name:"ALayout"})(eVt),hoe=jJ({suffixCls:"layout-header",tagName:"header",name:"ALayoutHeader"})(wxe),doe=jJ({suffixCls:"layout-footer",tagName:"footer",name:"ALayoutFooter"})(wxe),goe=jJ({suffixCls:"layout-content",tagName:"main",name:"ALayoutContent"})(wxe),wTe={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px",xxxl:"1999.98px"},tVt=()=>({prefixCls:String,collapsible:{type:Boolean,default:void 0},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean,default:void 0},reverseArrow:{type:Boolean,default:void 0},zeroWidthTriggerStyle:{type:Object,default:void 0},trigger:cn.any,width:cn.oneOfType([cn.number,cn.string]),collapsedWidth:cn.oneOfType([cn.number,cn.string]),breakpoint:cn.oneOf(fC("xs","sm","md","lg","xl","xxl","xxxl")),theme:cn.oneOf(fC("light","dark")).def("dark"),onBreakpoint:Function,onCollapse:Function}),rVt=(()=>{let e=0;return function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return e+=1,`${t}${e}`}})(),poe=$n({compatConfig:{MODE:3},name:"ALayoutSider",inheritAttrs:!1,props:ju(tVt(),{collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80}),emits:["breakpoint","update:collapsed","collapse"],setup(e,t){let{emit:r,attrs:n,slots:i}=t;const{prefixCls:a}=gs("layout-sider",e),o=Wo(jst,void 0),s=sn(!!(e.collapsed!==void 0?e.collapsed:e.defaultCollapsed)),l=sn(!1);di(()=>e.collapsed,()=>{s.value=!!e.collapsed}),Es(Hst,s);const u=(p,m)=>{e.collapsed===void 0&&(s.value=p),r("update:collapsed",p),r("collapse",p,m)},c=sn(p=>{l.value=p.matches,r("breakpoint",p.matches),s.value!==p.matches&&u(p.matches,"responsive")});let A;function f(p){return c.value(p)}const h=rVt("ant-sider-");o&&o.addSider(h),Is(()=>{di(()=>e.breakpoint,()=>{try{A==null||A.removeEventListener("change",f)}catch{A==null||A.removeListener(f)}if(typeof window<"u"){const{matchMedia:p}=window;if(p&&e.breakpoint&&e.breakpoint in wTe){A=p(`(max-width: ${wTe[e.breakpoint]})`);try{A.addEventListener("change",f)}catch{A.addListener(f)}f(A)}}},{immediate:!0})}),el(()=>{try{A==null||A.removeEventListener("change",f)}catch{A==null||A.removeListener(f)}o&&o.removeSider(h)});const g=()=>{u(!s.value,"clickTrigger")};return()=>{var p,m;const b=a.value,{collapsedWidth:C,width:E,reverseArrow:_,zeroWidthTriggerStyle:F,trigger:M=(p=i.trigger)===null||p===void 0?void 0:p.call(i),collapsible:N,theme:P}=e,j=s.value?C:E,z=dye(j)?`${j}px`:String(j),W=parseFloat(String(C||0))===0?De("span",{onClick:g,class:Vn(`${b}-zero-width-trigger`,`${b}-zero-width-trigger-${_?"right":"left"}`),style:F},[M||De(JBe,null,null)]):null,Y={expanded:De(_?v5:Y9,null,null),collapsed:De(_?Y9:v5,null,null)},ee=s.value?"collapsed":"expanded",q=Y[ee],ae=M!==null?W||De("div",{class:`${b}-trigger`,onClick:g,style:{width:z}},[M||q]):null,se=[n.style,{flex:`0 0 ${z}`,maxWidth:z,minWidth:z,width:z}],de=Vn(b,`${b}-${P}`,{[`${b}-collapsed`]:!!s.value,[`${b}-has-trigger`]:N&&M!==null&&!W,[`${b}-below`]:!!l.value,[`${b}-zero-width`]:parseFloat(z)===0},n.class);return De("aside",Ot(Ot({},n),{},{class:de,style:se}),[De("div",{class:`${b}-children`},[(m=i.default)===null||m===void 0?void 0:m.call(i)]),N||l.value&&W?ae:null])}}}),wZr=$e(foe,{Header:hoe,Footer:doe,Content:goe,Sider:poe,install:e=>(e.component(foe.name,foe),e.component(hoe.name,hoe),e.component(doe.name,doe),e.component(poe.name,poe),e.component(goe.name,goe),e)});function nVt(e,t,r){var n=r,i=n.noTrailing,a=i===void 0?!1:i,o=n.noLeading,s=o===void 0?!1:o,l=n.debounceMode,u=l===void 0?void 0:l,c,A=!1,f=0;function h(){c&&clearTimeout(c)}function g(m){var b=m||{},C=b.upcomingOnly,E=C===void 0?!1:C;h(),A=!E}function p(){for(var m=arguments.length,b=new Array(m),C=0;Ce?s?(f=Date.now(),a||(c=setTimeout(u?M:F,e))):F():a!==!0&&(c=setTimeout(u?M:F,u===void 0?e-_:e))}return p.cancel=g,p}function iVt(e,t,r){var n={},i=n.atBegin,a=i===void 0?!1:i;return nVt(e,t,{debounceMode:a!==!1})}const aVt=new vl("antSpinMove",{to:{opacity:1}}),oVt=new vl("antRotate",{to:{transform:"rotate(405deg)"}}),sVt=e=>({[`${e.componentCls}`]:$e($e({},gu(e)),{position:"absolute",display:"none",color:e.colorPrimary,textAlign:"center",verticalAlign:"middle",opacity:0,transition:`transform ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,"&-spinning":{position:"static",display:"inline-block",opacity:1},"&-nested-loading":{position:"relative",[`> div > ${e.componentCls}`]:{position:"absolute",top:0,insetInlineStart:0,zIndex:4,display:"block",width:"100%",height:"100%",maxHeight:e.contentHeight,[`${e.componentCls}-dot`]:{position:"absolute",top:"50%",insetInlineStart:"50%",margin:-e.spinDotSize/2},[`${e.componentCls}-text`]:{position:"absolute",top:"50%",width:"100%",paddingTop:(e.spinDotSize-e.fontSize)/2+2,textShadow:`0 1px 2px ${e.colorBgContainer}`},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSize/2)-10},"&-sm":{[`${e.componentCls}-dot`]:{margin:-e.spinDotSizeSM/2},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeSM-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeSM/2)-10}},"&-lg":{[`${e.componentCls}-dot`]:{margin:-(e.spinDotSizeLG/2)},[`${e.componentCls}-text`]:{paddingTop:(e.spinDotSizeLG-e.fontSize)/2+2},[`&${e.componentCls}-show-text ${e.componentCls}-dot`]:{marginTop:-(e.spinDotSizeLG/2)-10}}},[`${e.componentCls}-container`]:{position:"relative",transition:`opacity ${e.motionDurationSlow}`,"&::after":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:10,width:"100%",height:"100%",background:e.colorBgContainer,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'""',pointerEvents:"none"}},[`${e.componentCls}-blur`]:{clear:"both",opacity:.5,userSelect:"none",pointerEvents:"none","&::after":{opacity:.4,pointerEvents:"auto"}}},"&-tip":{color:e.spinDotDefault},[`${e.componentCls}-dot`]:{position:"relative",display:"inline-block",fontSize:e.spinDotSize,width:"1em",height:"1em","&-item":{position:"absolute",display:"block",width:(e.spinDotSize-e.marginXXS/2)/2,height:(e.spinDotSize-e.marginXXS/2)/2,backgroundColor:e.colorPrimary,borderRadius:"100%",transform:"scale(0.75)",transformOrigin:"50% 50%",opacity:.3,animationName:aVt,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:oVt,animationDuration:"1.2s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&-sm ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeSM,i:{width:(e.spinDotSizeSM-e.marginXXS/2)/2,height:(e.spinDotSizeSM-e.marginXXS/2)/2}},[`&-lg ${e.componentCls}-dot`]:{fontSize:e.spinDotSizeLG,i:{width:(e.spinDotSizeLG-e.marginXXS)/2,height:(e.spinDotSizeLG-e.marginXXS)/2}},[`&${e.componentCls}-show-text ${e.componentCls}-text`]:{display:"block"}})}),lVt=Gu("Spin",e=>{const t=Al(e,{spinDotDefault:e.colorTextDescription,spinDotSize:e.controlHeightLG/2,spinDotSizeSM:e.controlHeightLG*.35,spinDotSizeLG:e.controlHeight});return[sVt(t)]},{contentHeight:400});var uVt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i({prefixCls:String,spinning:{type:Boolean,default:void 0},size:String,wrapperClassName:String,tip:cn.any,delay:Number,indicator:cn.any});let DK=null;function AVt(e,t){return!!e&&!!t&&!isNaN(Number(t))}function fVt(e){const t=e.indicator;DK=typeof t=="function"?t:()=>De(t,null,null)}const GM=$n({compatConfig:{MODE:3},name:"ASpin",inheritAttrs:!1,props:ju(cVt(),{size:"default",spinning:!0,wrapperClassName:""}),setup(e,t){let{attrs:r,slots:n}=t;const{prefixCls:i,size:a,direction:o}=gs("spin",e),[s,l]=lVt(i),u=sn(e.spinning&&!AVt(e.spinning,e.delay));let c;return di([()=>e.spinning,()=>e.delay],()=>{c==null||c.cancel(),c=iVt(e.delay,()=>{u.value=e.spinning}),c==null||c()},{immediate:!0,flush:"post"}),el(()=>{c==null||c.cancel()}),()=>{var A,f;const{class:h}=r,g=uVt(r,["class"]),{tip:p=(A=n.tip)===null||A===void 0?void 0:A.call(n)}=e,m=(f=n.default)===null||f===void 0?void 0:f.call(n),b={[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`]:!!p,[`${i.value}-rtl`]:o.value==="rtl",[h]:!!h};function C(_){const F=`${_}-dot`;let M=Xv(n,e,"indicator");return M===null?null:(Array.isArray(M)&&(M=M.length===1?M[0]:M),ud(M)?np(M,{class:F}):DK&&ud(DK())?np(DK(),{class:F}):De("span",{class:`${F} ${_}-dot-spin`},[De("i",{class:`${_}-dot-item`},null),De("i",{class:`${_}-dot-item`},null),De("i",{class:`${_}-dot-item`},null),De("i",{class:`${_}-dot-item`},null)]))}const E=De("div",Ot(Ot({},g),{},{class:b,"aria-live":"polite","aria-busy":u.value}),[C(i.value),p?De("div",{class:`${i.value}-text`},[p]):null]);if(m&&Cg(m).length){const _={[`${i.value}-container`]:!0,[`${i.value}-blur`]:u.value};return s(De("div",{class:[`${i.value}-nested-loading`,e.wrapperClassName,l.value]},[u.value&&De("div",{key:"loading"},[E]),De("div",{class:_,key:"container"},[m])]))}return s(E)}}});GM.setDefaultIndicator=fVt;GM.install=function(e){return e.component(GM.name,GM),e};const hVt=$n({name:"MiniSelect",compatConfig:{MODE:3},inheritAttrs:!1,props:cBe(),Option:zm.Option,setup(e,t){let{attrs:r,slots:n}=t;return()=>{const i=$e($e($e({},e),{size:"small"}),r);return De(zm,i,n)}}}),dVt=$n({name:"MiddleSelect",inheritAttrs:!1,props:cBe(),Option:zm.Option,setup(e,t){let{attrs:r,slots:n}=t;return()=>{const i=$e($e($e({},e),{size:"middle"}),r);return De(zm,i,n)}}}),c4=$n({compatConfig:{MODE:3},name:"Pager",inheritAttrs:!1,props:{rootPrefixCls:String,page:Number,active:{type:Boolean,default:void 0},last:{type:Boolean,default:void 0},locale:cn.object,showTitle:{type:Boolean,default:void 0},itemRender:{type:Function,default:()=>{}},onClick:{type:Function},onKeypress:{type:Function}},eimt:["click","keypress"],setup(e,t){let{emit:r,attrs:n}=t;const i=()=>{r("click",e.page)},a=o=>{r("keypress",o,i,e.page)};return()=>{const{showTitle:o,page:s,itemRender:l}=e,{class:u,style:c}=n,A=`${e.rootPrefixCls}-item`,f=Vn(A,`${A}-${e.page}`,{[`${A}-active`]:e.active,[`${A}-disabled`]:!e.page},u);return De("li",{onClick:i,onKeypress:a,title:o?String(s):null,tabindex:"0",class:f,style:c},[l({page:s,type:"page",originalElement:De("a",{rel:"nofollow"},[s])})])}}}),V4={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},gVt=$n({compatConfig:{MODE:3},props:{disabled:{type:Boolean,default:void 0},changeSize:Function,quickGo:Function,selectComponentClass:cn.any,current:Number,pageSizeOptions:cn.array.def(["10","20","50","100"]),pageSize:Number,buildOptionText:Function,locale:cn.object,rootPrefixCls:String,selectPrefixCls:String,goButton:cn.any},setup(e){const t=Hn(""),r=vt(()=>!t.value||isNaN(t.value)?void 0:Number(t.value)),n=l=>`${l.value} ${e.locale.items_per_page}`,i=l=>{const{value:u,composing:c}=l.target;l.isComposing||c||t.value===u||(t.value=u)},a=l=>{const{goButton:u,quickGo:c,rootPrefixCls:A}=e;if(!(u||t.value===""))if(l.relatedTarget&&(l.relatedTarget.className.indexOf(`${A}-item-link`)>=0||l.relatedTarget.className.indexOf(`${A}-item`)>=0)){t.value="";return}else c(r.value),t.value=""},o=l=>{t.value!==""&&(l.keyCode===V4.ENTER||l.type==="click")&&(e.quickGo(r.value),t.value="")},s=vt(()=>{const{pageSize:l,pageSizeOptions:u}=e;return u.some(c=>c.toString()===l.toString())?u:u.concat([l.toString()]).sort((c,A)=>{const f=isNaN(Number(c))?0:Number(c),h=isNaN(Number(A))?0:Number(A);return f-h})});return()=>{const{rootPrefixCls:l,locale:u,changeSize:c,quickGo:A,goButton:f,selectComponentClass:h,selectPrefixCls:g,pageSize:p,disabled:m}=e,b=`${l}-options`;let C=null,E=null,_=null;if(!c&&!A)return null;if(c&&h){const F=e.buildOptionText||n,M=s.value.map((N,P)=>De(h.Option,{key:P,value:N},{default:()=>[F({value:N})]}));C=De(h,{disabled:m,prefixCls:g,showSearch:!1,class:`${b}-size-changer`,optionLabelProp:"children",value:(p||s.value[0]).toString(),onChange:N=>c(Number(N)),getPopupContainer:N=>N.parentNode},{default:()=>[M]})}return A&&(f&&(_=typeof f=="boolean"?De("button",{type:"button",onClick:o,onKeyup:o,disabled:m,class:`${b}-quick-jumper-button`},[u.jump_to_confirm]):De("span",{onClick:o,onKeyup:o},[f])),E=De("div",{class:`${b}-quick-jumper`},[u.jump_to,rp(De("input",{disabled:m,type:"text",value:t.value,onInput:i,onChange:i,onKeyup:o,onBlur:a},null),[[bL]]),u.page,_])),De("li",{class:`${b}`},[C,E])}}});var pVt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i"u"?t.statePageSize:e;return Math.floor((r.total-1)/n)+1}const yVt=$n({compatConfig:{MODE:3},name:"Pagination",mixins:[bot],inheritAttrs:!1,props:{disabled:{type:Boolean,default:void 0},prefixCls:cn.string.def("rc-pagination"),selectPrefixCls:cn.string.def("rc-select"),current:Number,defaultCurrent:cn.number.def(1),total:cn.number.def(0),pageSize:Number,defaultPageSize:cn.number.def(10),hideOnSinglePage:{type:Boolean,default:!1},showSizeChanger:{type:Boolean,default:void 0},showLessItems:{type:Boolean,default:!1},selectComponentClass:cn.any,showPrevNextJumpers:{type:Boolean,default:!0},showQuickJumper:cn.oneOfType([cn.looseBool,cn.object]).def(!1),showTitle:{type:Boolean,default:!0},pageSizeOptions:cn.arrayOf(cn.oneOfType([cn.number,cn.string])),buildOptionText:Function,showTotal:Function,simple:{type:Boolean,default:void 0},locale:cn.object.def(Lit),itemRender:cn.func.def(mVt),prevIcon:cn.any,nextIcon:cn.any,jumpPrevIcon:cn.any,jumpNextIcon:cn.any,totalBoundaryShowSizeChanger:cn.number.def(50)},data(){const e=this.$props;let t=fye([this.current,this.defaultCurrent]);const r=fye([this.pageSize,this.defaultPageSize]);return t=Math.min(t,YI(r,void 0,e)),{stateCurrent:t,stateCurrentInputValue:t,statePageSize:r}},watch:{current(e){this.setState({stateCurrent:e,stateCurrentInputValue:e})},pageSize(e){const t={};let r=this.stateCurrent;const n=YI(e,this.$data,this.$props);r=r>n?n:r,T8(this,"current")||(t.stateCurrent=r,t.stateCurrentInputValue=r),t.statePageSize=e,this.setState(t)},stateCurrent(e,t){this.$nextTick(()=>{if(this.$refs.paginationNode){const r=this.$refs.paginationNode.querySelector(`.${this.prefixCls}-item-${t}`);r&&document.activeElement===r&&r.blur()}})},total(){const e={},t=YI(this.pageSize,this.$data,this.$props);if(T8(this,"current")){const r=Math.min(this.current,t);e.stateCurrent=r,e.stateCurrentInputValue=r}else{let r=this.stateCurrent;r===0&&t>0?r=1:r=Math.min(this.stateCurrent,t),e.stateCurrent=r}this.setState(e)}},methods:{getJumpPrevPage(){return Math.max(1,this.stateCurrent-(this.showLessItems?3:5))},getJumpNextPage(){return Math.min(YI(void 0,this.$data,this.$props),this.stateCurrent+(this.showLessItems?3:5))},getItemIcon(e,t){const{prefixCls:r}=this.$props;return eat(this,e,this.$props)||De("button",{type:"button","aria-label":t,class:`${r}-item-link`},null)},getValidValue(e){const t=e.target.value,r=YI(void 0,this.$data,this.$props),{stateCurrentInputValue:n}=this.$data;let i;return t===""?i=t:isNaN(Number(t))?i=n:t>=r?i=r:i=Number(t),i},isValid(e){return vVt(e)&&e!==this.stateCurrent},shouldDisplayQuickJumper(){const{showQuickJumper:e,pageSize:t,total:r}=this.$props;return r<=t?!1:e},handleKeyDown(e){(e.keyCode===V4.ARROW_UP||e.keyCode===V4.ARROW_DOWN)&&e.preventDefault()},handleKeyUp(e){if(e.isComposing||e.target.composing)return;const t=this.getValidValue(e),r=this.stateCurrentInputValue;t!==r&&this.setState({stateCurrentInputValue:t}),e.keyCode===V4.ENTER?this.handleChange(t):e.keyCode===V4.ARROW_UP?this.handleChange(t-1):e.keyCode===V4.ARROW_DOWN&&this.handleChange(t+1)},changePageSize(e){let t=this.stateCurrent;const r=t,n=YI(e,this.$data,this.$props);t=t>n?n:t,n===0&&(t=this.stateCurrent),typeof e=="number"&&(T8(this,"pageSize")||this.setState({statePageSize:e}),T8(this,"current")||this.setState({stateCurrent:t,stateCurrentInputValue:t})),this.__emit("update:pageSize",e),t!==r&&this.__emit("update:current",t),this.__emit("showSizeChange",t,e),this.__emit("change",t,e)},handleChange(e){const{disabled:t}=this.$props;let r=e;if(this.isValid(r)&&!t){const n=YI(void 0,this.$data,this.$props);return r>n?r=n:r<1&&(r=1),T8(this,"current")||this.setState({stateCurrent:r,stateCurrentInputValue:r}),this.__emit("update:current",r),this.__emit("change",r,this.statePageSize),r}return this.stateCurrent},prev(){this.hasPrev()&&this.handleChange(this.stateCurrent-1)},next(){this.hasNext()&&this.handleChange(this.stateCurrent+1)},jumpPrev(){this.handleChange(this.getJumpPrevPage())},jumpNext(){this.handleChange(this.getJumpNextPage())},hasPrev(){return this.stateCurrent>1},hasNext(){return this.stateCurrentr},runIfEnter(e,t){if(e.key==="Enter"||e.charCode===13){for(var r=arguments.length,n=new Array(r>2?r-2:0),i=2;i0?b-1:0,se=b+1=q*2&&b!==3&&(N[0]=De(c4,{locale:i,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:je,page:je,class:`${e}-item-after-jump-prev`,active:!1,showTitle:this.showTitle,itemRender:c},null),N.unshift(P)),M-b>=q*2&&b!==M-2&&(N[N.length-1]=De(c4,{locale:i,rootPrefixCls:e,onClick:this.handleChange,onKeypress:this.runIfEnter,key:Ye,page:Ye,class:`${e}-item-before-jump-next`,active:!1,showTitle:this.showTitle,itemRender:c},null),N.push(j)),je!==1&&N.unshift(z),Ye!==M&&N.push(W)}let be=null;l&&(be=De("li",{class:`${e}-total-text`},[l(n,[n===0?0:(b-1)*C+1,b*C>n?n:b*C])]));const Le=!de||!M,Ne=!Ae||!M,ue=this.buildOptionText||this.$slots.buildOptionText;return De("ul",Ot(Ot({unselectable:"on",ref:"paginationNode"},F),{},{class:Vn({[`${e}`]:!0,[`${e}-disabled`]:t},_)}),[be,De("li",{title:s?i.prev_page:null,onClick:this.prev,tabindex:Le?null:0,onKeypress:this.runIfEnterPrev,class:Vn(`${e}-prev`,{[`${e}-disabled`]:Le}),"aria-disabled":Le},[this.renderPrev(ae)]),N,De("li",{title:s?i.next_page:null,onClick:this.next,tabindex:Ne?null:0,onKeypress:this.runIfEnterNext,class:Vn(`${e}-next`,{[`${e}-disabled`]:Ne}),"aria-disabled":Ne},[this.renderNext(se)]),De(gVt,{disabled:t,locale:i,rootPrefixCls:e,selectComponentClass:g,selectPrefixCls:p,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:b,pageSize:C,pageSizeOptions:m,buildOptionText:ue||null,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:ee},null)])}}),bVt=e=>{const{componentCls:t}=e;return{[`${t}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},[`&${t}-disabled`]:{cursor:"not-allowed",[`&${t}-mini`]:{[` &:hover ${t}-item:not(${t}-item-active), &:active ${t}-item:not(${t}-item-active), &:hover ${t}-item-link, &:active ${t}-item-link `]:{backgroundColor:"transparent"}},[`${t}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.paginationItemDisabledBgActive,"&:hover, &:active":{backgroundColor:e.paginationItemDisabledBgActive},a:{color:e.paginationItemDisabledColorActive}}},[`${t}-item-link`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${t}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${t}-simple-pager`]:{color:e.colorTextDisabled},[`${t}-jump-prev, ${t}-jump-next`]:{[`${t}-item-link-icon`]:{opacity:0},[`${t}-item-ellipsis`]:{opacity:1}}},[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{[`&${t}-disabled ${t}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},wVt=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`},[`&${t}-mini ${t}-item`]:{minWidth:e.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:`${e.paginationItemSizeSM-2}px`},[`&${t}-mini ${t}-item:not(${t}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.paginationItemSizeSM,height:e.paginationItemSizeSM,margin:0,lineHeight:`${e.paginationItemSizeSM}px`,[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}},[` &${t}-mini ${t}-prev ${t}-item-link, &${t}-mini ${t}-next ${t}-item-link `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.paginationItemSizeSM,marginInlineEnd:0,lineHeight:`${e.paginationItemSizeSM}px`},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.paginationMiniOptionsSizeChangerTop},"&-quick-jumper":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`,input:$e($e({},UBe(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},CVt=e=>{const{componentCls:t}=e;return{[` &${t}-simple ${t}-prev, &${t}-simple ${t}-next `]:{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`,verticalAlign:"top",[`${t}-item-link`]:{height:e.paginationItemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.paginationItemSizeSM,lineHeight:`${e.paginationItemSizeSM}px`}}},[`&${t}-simple ${t}-simple-pager`]:{display:"inline-block",height:e.paginationItemSizeSM,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:e.marginXS,padding:`0 ${e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:e.paginationItemInputBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadius,outline:"none",transition:`border-color ${e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:`${e.inputOutlineOffset}px 0 ${e.controlOutlineWidth}px ${e.controlOutline}`},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}}}},IVt=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},"&:focus-visible":$e({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},JE(e))},[` ${t}-prev, ${t}-jump-prev, ${t}-jump-next `]:{marginInlineEnd:e.marginXS},[` ${t}-prev, ${t}-next, ${t}-jump-prev, ${t}-jump-next `]:{display:"inline-block",minWidth:e.paginationItemSize,height:e.paginationItemSize,color:e.colorText,fontFamily:e.paginationFontFamily,lineHeight:`${e.paginationItemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:`all ${e.motionDurationMid}`},[`${t}-prev, ${t}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},[`${t}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:"none",transition:`border ${e.motionDurationMid}`},[`&:focus-visible ${t}-item-link`]:$e({},JE(e)),[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover`]:{[`${t}-item-link`]:{backgroundColor:"transparent"}}},[`${t}-slash`]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},[`${t}-options`]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:`${e.controlHeight}px`,verticalAlign:"top",input:$e($e({},W7(e)),{width:e.controlHeightLG*1.25,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},EVt=e=>{const{componentCls:t}=e;return{[`${t}-item`]:$e($e({display:"inline-block",minWidth:e.paginationItemSize,height:e.paginationItemSize,marginInlineEnd:e.marginXS,fontFamily:e.paginationFontFamily,lineHeight:`${e.paginationItemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${e.lineWidth}px ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${e.paginationItemPaddingInline}px`,color:e.colorText,transition:"none","&:hover":{textDecoration:"none"}},[`&:not(${t}-item-active)`]:{"&:hover":{transition:`all ${e.motionDurationMid}`,backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}}},g5(e)),{"&-active":{fontWeight:e.paginationFontWeightActive,backgroundColor:e.paginationItemBgActive,borderColor:e.colorPrimary,a:{color:e.colorPrimary},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.colorPrimaryHover}}})}},BVt=e=>{const{componentCls:t}=e;return{[t]:$e($e($e($e($e($e($e($e({},gu(e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${t}-total-text`]:{display:"inline-block",height:e.paginationItemSize,marginInlineEnd:e.marginXS,lineHeight:`${e.paginationItemSize-2}px`,verticalAlign:"middle"}}),EVt(e)),IVt(e)),CVt(e)),wVt(e)),bVt(e)),{[`@media only screen and (max-width: ${e.screenLG}px)`]:{[`${t}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${e.screenSM}px)`]:{[`${t}-options`]:{display:"none"}}}),[`&${e.componentCls}-rtl`]:{direction:"rtl"}}},xVt=e=>{const{componentCls:t}=e;return{[`${t}${t}-disabled`]:{"&, &:hover":{[`${t}-item-link`]:{borderColor:e.colorBorder}},"&:focus-visible":{[`${t}-item-link`]:{borderColor:e.colorBorder}},[`${t}-item, ${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,[`&:hover:not(${t}-item-active)`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},[`&${t}-item-active`]:{backgroundColor:e.paginationItemDisabledBgActive}},[`${t}-prev, ${t}-next`]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},[`${t}-item-link`]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},[t]:{[`${t}-prev, ${t}-next`]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.paginationItemBg},[`${t}-item-link`]:{backgroundColor:e.paginationItemLinkBg,borderColor:e.colorBorder},[`&:hover ${t}-item-link`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,color:e.colorPrimary},[`&${t}-disabled`]:{[`${t}-item-link`]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},[`${t}-item`]:{backgroundColor:e.paginationItemBg,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,[`&:hover:not(${t}-item-active)`]:{borderColor:e.colorPrimary,backgroundColor:e.paginationItemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}},SVt=Gu("Pagination",e=>{const t=Al(e,{paginationItemSize:e.controlHeight,paginationFontFamily:e.fontFamily,paginationItemBg:e.colorBgContainer,paginationItemBgActive:e.colorBgContainer,paginationFontWeightActive:e.fontWeightStrong,paginationItemSizeSM:e.controlHeightSM,paginationItemInputBg:e.colorBgContainer,paginationMiniOptionsSizeChangerTop:0,paginationItemDisabledBgActive:e.controlItemBgActiveDisabled,paginationItemDisabledColorActive:e.colorTextDisabled,paginationItemLinkBg:e.colorBgContainer,inputOutlineOffset:"0 0",paginationMiniOptionsMarginInlineStart:e.marginXXS/2,paginationMiniQuickJumperInputWidth:e.controlHeightLG*1.1,paginationItemPaddingInline:e.marginXXS*1.5,paginationEllipsisLetterSpacing:e.marginXXS/2,paginationSlashMarginInlineStart:e.marginXXS,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},DJ(e));return[BVt(t),e.wireframe&&xVt(t)]});var kVt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i({total:Number,defaultCurrent:Number,disabled:Pa(),current:Number,defaultPageSize:Number,pageSize:Number,hideOnSinglePage:Pa(),showSizeChanger:Pa(),pageSizeOptions:nc(),buildOptionText:pi(),showQuickJumper:$l([Boolean,Object]),showTotal:pi(),size:Us(),simple:Pa(),locale:Object,prefixCls:String,selectPrefixCls:String,totalBoundaryShowSizeChanger:Number,selectComponentClass:String,itemRender:pi(),role:String,responsive:Boolean,showLessItems:Pa(),onChange:pi(),onShowSizeChange:pi(),"onUpdate:current":pi(),"onUpdate:pageSize":pi()}),_Vt=$n({compatConfig:{MODE:3},name:"APagination",inheritAttrs:!1,props:QVt(),setup(e,t){let{slots:r,attrs:n}=t;const{prefixCls:i,configProvider:a,direction:o,size:s}=gs("pagination",e),[l,u]=SVt(i),c=vt(()=>a.getPrefixCls("select",e.selectPrefixCls)),A=gBe(),[f]=SC("Pagination",uat,ws(e,"locale")),h=g=>{const p=De("span",{class:`${g}-item-ellipsis`},[t2("•••")]),m=De("button",{class:`${g}-item-link`,type:"button",tabindex:-1},[o.value==="rtl"?De(v5,null,null):De(Y9,null,null)]),b=De("button",{class:`${g}-item-link`,type:"button",tabindex:-1},[o.value==="rtl"?De(Y9,null,null):De(v5,null,null)]),C=De("a",{rel:"nofollow",class:`${g}-item-link`},[De("div",{class:`${g}-item-container`},[o.value==="rtl"?De(SW,{class:`${g}-item-link-icon`},null):De(xW,{class:`${g}-item-link-icon`},null),p])]),E=De("a",{rel:"nofollow",class:`${g}-item-link`},[De("div",{class:`${g}-item-container`},[o.value==="rtl"?De(xW,{class:`${g}-item-link-icon`},null):De(SW,{class:`${g}-item-link-icon`},null),p])]);return{prevIcon:m,nextIcon:b,jumpPrevIcon:C,jumpNextIcon:E}};return()=>{var g;const{itemRender:p=r.itemRender,buildOptionText:m=r.buildOptionText,selectComponentClass:b,responsive:C}=e,E=kVt(e,["itemRender","buildOptionText","selectComponentClass","responsive"]),_=s.value==="small"||!!(!((g=A.value)===null||g===void 0)&&g.xs&&!s.value&&C),F=$e($e($e($e($e({},E),h(i.value)),{prefixCls:i.value,selectPrefixCls:c.value,selectComponentClass:b||(_?hVt:dVt),locale:f.value,buildOptionText:m}),n),{class:Vn({[`${i.value}-mini`]:_,[`${i.value}-rtl`]:o.value==="rtl"},n.class,u.value),itemRender:p});return l(De(yVt,F,null))}}}),TVt=Ly(_Vt);var DVt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{Vye={x:e.pageX,y:e.pageY},setTimeout(()=>Vye=null,100)};Llt()&&Ym(document.documentElement,"click",FVt,!0);const RVt=()=>({prefixCls:String,visible:{type:Boolean,default:void 0},open:{type:Boolean,default:void 0},confirmLoading:{type:Boolean,default:void 0},title:cn.any,closable:{type:Boolean,default:void 0},closeIcon:cn.any,onOk:Function,onCancel:Function,"onUpdate:visible":Function,onChange:Function,afterClose:Function,centered:{type:Boolean,default:void 0},width:[String,Number],footer:cn.any,okText:cn.any,okType:String,cancelText:cn.any,icon:cn.any,maskClosable:{type:Boolean,default:void 0},forceRender:{type:Boolean,default:void 0},okButtonProps:To(),cancelButtonProps:To(),destroyOnClose:{type:Boolean,default:void 0},wrapClassName:String,maskTransitionName:String,transitionName:String,getContainer:{type:[String,Function,Boolean,Object],default:void 0},zIndex:Number,bodyStyle:To(),maskStyle:To(),mask:{type:Boolean,default:void 0},keyboard:{type:Boolean,default:void 0},wrapProps:Object,focusTriggerAfterClose:{type:Boolean,default:void 0},modalRender:Function,mousePosition:To()}),xy=$n({compatConfig:{MODE:3},name:"AModal",inheritAttrs:!1,props:ju(RVt(),{width:520,confirmLoading:!1,okType:"primary"}),setup(e,t){let{emit:r,slots:n,attrs:i}=t;const[a]=SC("Modal"),{prefixCls:o,rootPrefixCls:s,direction:l,getPopupContainer:u}=gs("modal",e),[c,A]=LKt(o);vB(e.visible===void 0);const f=p=>{r("update:visible",!1),r("update:open",!1),r("cancel",p),r("change",!1)},h=p=>{r("ok",p)},g=()=>{var p,m;const{okText:b=(p=n.okText)===null||p===void 0?void 0:p.call(n),okType:C,cancelText:E=(m=n.cancelText)===null||m===void 0?void 0:m.call(n),confirmLoading:_}=e;return De(ls,null,[De(ep,Ot({onClick:f},e.cancelButtonProps),{default:()=>[E||a.value.cancelText]}),De(ep,Ot(Ot({},pW(C)),{},{loading:_,onClick:h},e.okButtonProps),{default:()=>[b||a.value.okText]})])};return()=>{var p,m;const{prefixCls:b,visible:C,open:E,wrapClassName:_,centered:F,getContainer:M,closeIcon:N=(p=n.closeIcon)===null||p===void 0?void 0:p.call(n),focusTriggerAfterClose:P=!0}=e,j=DVt(e,["prefixCls","visible","open","wrapClassName","centered","getContainer","closeIcon","focusTriggerAfterClose"]),z=Vn(_,{[`${o.value}-centered`]:!!F,[`${o.value}-wrap-rtl`]:l.value==="rtl"});return c(De(DKt,Ot(Ot(Ot({},j),i),{},{rootClassName:A.value,class:Vn(A.value,i.class),getContainer:M||(u==null?void 0:u.value),prefixCls:o.value,wrapClassName:z,visible:E??C,onClose:f,focusTriggerAfterClose:P,transitionName:gC(s.value,"zoom",e.transitionName),maskTransitionName:gC(s.value,"fade",e.maskTransitionName),mousePosition:(m=j.mousePosition)!==null&&m!==void 0?m:Vye}),$e($e({},n),{footer:n.footer||g,closeIcon:()=>De("span",{class:`${o.value}-close-x`},[N||De(QC,{class:`${o.value}-close-icon`},null)])})))}}}),MVt=()=>{const e=sn(!1);return el(()=>{e.value=!0}),e},OVt={type:{type:String},actionFn:Function,close:Function,autofocus:Boolean,prefixCls:String,buttonProps:To(),emitEvent:Boolean,quitOnNullishReturnValue:Boolean};function CTe(e){return!!(e&&e.then)}const Wye=$n({compatConfig:{MODE:3},name:"ActionButton",props:OVt,setup(e,t){let{slots:r}=t;const n=sn(!1),i=sn(),a=sn(!1);let o;const s=MVt();Is(()=>{e.autofocus&&(o=setTimeout(()=>{var A,f;return(f=(A=IE(i.value))===null||A===void 0?void 0:A.focus)===null||f===void 0?void 0:f.call(A)}))}),el(()=>{clearTimeout(o)});const l=function(){for(var A,f=arguments.length,h=new Array(f),g=0;g{CTe(A)&&(a.value=!0,A.then(function(){s.value||(a.value=!1),l(...arguments),n.value=!1},f=>(s.value||(a.value=!1),n.value=!1,Promise.reject(f))))},c=A=>{const{actionFn:f}=e;if(n.value)return;if(n.value=!0,!f){l();return}let h;if(e.emitEvent){if(h=f(A),e.quitOnNullishReturnValue&&!CTe(h)){n.value=!1,l(A);return}}else if(f.length)h=f(e.close),n.value=!1;else if(h=f(),!h){l();return}u(h)};return()=>{const{type:A,prefixCls:f,buttonProps:h}=e;return De(ep,Ot(Ot(Ot({},pW(A)),{},{onClick:c,loading:a.value,prefixCls:f},h),{},{ref:i}),r)}}});function O_(e){return typeof e=="function"?e():e}const Put=$n({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(e,t){let{attrs:r}=t;const[n]=SC("Modal");return()=>{const{icon:i,onCancel:a,onOk:o,close:s,closable:l=!1,zIndex:u,afterClose:c,keyboard:A,centered:f,getContainer:h,maskStyle:g,okButtonProps:p,cancelButtonProps:m,okCancel:b,width:C=416,mask:E=!0,maskClosable:_=!1,type:F,open:M,title:N,content:P,direction:j,closeIcon:z,modalRender:W,focusTriggerAfterClose:Y,rootPrefixCls:ee,bodyStyle:q,wrapClassName:ae,footer:se}=e;let de=i;if(!i&&i!==null)switch(F){case"info":de=De(eQ,null,null);break;case"success":de=De(bB,null,null);break;case"error":de=De(cm,null,null);break;default:de=De(wB,null,null)}const Ae=e.okType||"primary",be=e.prefixCls||"ant-modal",Le=`${be}-confirm`,Ne=r.style||{},ue=O_(e.okText)||(b?n.value.okText:n.value.justOkText),Ke=b??F==="confirm",Pe=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",je=`${be}-confirm`,Ye=Vn(je,`${je}-${e.type}`,{[`${je}-rtl`]:j==="rtl"},r.class),me=Ke&&De(Wye,{actionFn:a,close:s,autofocus:Pe==="cancel",buttonProps:m,prefixCls:`${ee}-btn`},{default:()=>[O_(e.cancelText)||n.value.cancelText]});return De(xy,{prefixCls:be,class:Ye,wrapClassName:Vn({[`${je}-centered`]:!!f},ae),onCancel:Se=>s==null?void 0:s({triggerCancel:!0},Se),open:M,title:"",footer:"",transitionName:gC(ee,"zoom",e.transitionName),maskTransitionName:gC(ee,"fade",e.maskTransitionName),mask:E,maskClosable:_,maskStyle:g,style:Ne,bodyStyle:q,width:C,zIndex:u,afterClose:c,keyboard:A,centered:f,getContainer:h,closable:l,closeIcon:z,modalRender:W,focusTriggerAfterClose:Y},{default:()=>[De("div",{class:`${Le}-body-wrapper`},[De("div",{class:`${Le}-body`},[O_(de),N===void 0?null:De("span",{class:`${Le}-title`},[O_(N)]),De("div",{class:`${Le}-content`},[O_(P)])]),se!==void 0?O_(se):De("div",{class:`${Le}-btns`},[me,De(Wye,{type:Ae,actionFn:o,close:s,autofocus:Pe==="ok",buttonProps:p,prefixCls:`${ee}-btn`},{default:()=>[ue]})])])]})}}}),bk=[],TL=e=>{const t=document.createDocumentFragment();let r=$e($e({},Cc(e,["parentContext","appContext"])),{close:a,open:!0}),n=null;function i(){n&&(h5(null,t),n.component.update(),n=null);for(var u=arguments.length,c=new Array(u),A=0;Ah&&h.triggerCancel);e.onCancel&&f&&e.onCancel(()=>{},...c.slice(1));for(let h=0;h{typeof e.afterClose=="function"&&e.afterClose(),i.apply(this,c)}}),r.visible&&delete r.visible,o(r)}function o(u){typeof u=="function"?r=u(r):r=$e($e({},r),u),n&&($e(n.component.props,r),n.component.update())}const s=u=>{const c=zg,A=c.prefixCls,f=u.prefixCls||`${A}-modal`,h=c.iconPrefixCls,g=yGt();return De(g9,Ot(Ot({},c),{},{prefixCls:A}),{default:()=>[De(Put,Ot(Ot({},u),{},{rootPrefixCls:A,prefixCls:f,iconPrefixCls:h,locale:g,cancelText:u.cancelText||g.cancelText}),null)]})};function l(u){const c=De(s,$e({},u));return c.appContext=e.parentContext||e.appContext||c.appContext,h5(c,t),c}return n=l(r),bk.push(a),{destroy:a,update:o}};function Uut(e){return $e($e({},e),{type:"warning"})}function Hut(e){return $e($e({},e),{type:"info"})}function jut(e){return $e($e({},e),{type:"success"})}function Gut(e){return $e($e({},e),{type:"error"})}function $ut(e){return $e($e({},e),{type:"confirm"})}const NVt=()=>({config:Object,afterClose:Function,destroyAction:Function,open:Boolean}),LVt=$n({name:"HookModal",inheritAttrs:!1,props:ju(NVt(),{config:{width:520,okType:"primary"}}),setup(e,t){let{expose:r}=t;var n;const i=vt(()=>e.open),a=vt(()=>e.config),{direction:o,getPrefixCls:s}=yEe(),l=s("modal"),u=s(),c=()=>{var g,p;e==null||e.afterClose(),(p=(g=a.value).afterClose)===null||p===void 0||p.call(g)},A=function(){e.destroyAction(...arguments)};r({destroy:A});const f=(n=a.value.okCancel)!==null&&n!==void 0?n:a.value.type==="confirm",[h]=SC("Modal",r2.Modal);return()=>De(Put,Ot(Ot({prefixCls:l,rootPrefixCls:u},a.value),{},{close:A,open:i.value,afterClose:c,okText:a.value.okText||(f?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 ITe=0;const PVt=$n({name:"ElementsHolder",inheritAttrs:!1,setup(e,t){let{expose:r}=t;const n=sn([]);return r({addModal:a=>(n.value.push(a),n.value=n.value.slice(),()=>{n.value=n.value.filter(o=>o!==a)})}),()=>n.value.map(a=>a())}});function UVt(){const e=sn(null),t=sn([]);di(t,()=>{t.value.length&&([...t.value].forEach(o=>{o()}),t.value=[])},{immediate:!0});const r=a=>function(s){var l;ITe+=1;const u=sn(!0),c=sn(null),A=sn(bA(s)),f=sn({});di(()=>s,E=>{m($e($e({},kh(E)?E.value:E),f.value))});const h=function(){u.value=!1;for(var E=arguments.length,_=new Array(E),F=0;FN&&N.triggerCancel);A.value.onCancel&&M&&A.value.onCancel(()=>{},..._.slice(1))};let g;const p=()=>De(LVt,{key:`modal-${ITe}`,config:a(A.value),ref:c,open:u.value,destroyAction:h,afterClose:()=>{g==null||g()}},null);g=(l=e.value)===null||l===void 0?void 0:l.addModal(p),g&&bk.push(g);const m=E=>{A.value=$e($e({},A.value),E)};return{destroy:()=>{c.value?h():t.value=[...t.value,h]},update:E=>{f.value=E,c.value?m(E):t.value=[...t.value,()=>m(E)]}}},n=vt(()=>({info:r(Hut),success:r(jut),error:r(Gut),warning:r(Uut),confirm:r($ut)})),i=Symbol("modalHolderKey");return[n.value,()=>De(PVt,{key:i,ref:e},null)]}function zut(e){return TL(Uut(e))}xy.useModal=UVt;xy.info=function(t){return TL(Hut(t))};xy.success=function(t){return TL(jut(t))};xy.error=function(t){return TL(Gut(t))};xy.warning=zut;xy.warn=zut;xy.confirm=function(t){return TL($ut(t))};xy.destroyAll=function(){for(;bk.length;){const t=bk.pop();t&&t()}};xy.install=function(e){return e.component(xy.name,xy),e};const HVt=e=>{const{componentCls:t,iconCls:r,zIndexPopup:n,colorText:i,colorWarning:a,marginXS:o,fontSize:s,fontWeightStrong:l,lineHeight:u}=e;return{[t]:{zIndex:n,[`${t}-inner-content`]:{color:i},[`${t}-message`]:{position:"relative",marginBottom:o,color:i,fontSize:s,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${r}`]:{color:a,fontSize:s,flex:"none",lineHeight:1,paddingTop:(Math.round(s*u)-s)/2},"&-title":{flex:"auto",marginInlineStart:o},"&-title-only":{fontWeight:l}},[`${t}-description`]:{position:"relative",marginInlineStart:s+o,marginBottom:o,color:i,fontSize:s},[`${t}-buttons`]:{textAlign:"end",button:{marginInlineStart:o}}}}},jVt=Gu("Popconfirm",e=>HVt(e),e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}});var GVt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i$e($e({},pBe()),{prefixCls:String,content:Wf(),title:Wf(),description:Wf(),okType:Us("primary"),disabled:{type:Boolean,default:!1},okText:Wf(),cancelText:Wf(),icon:Wf(),okButtonProps:To(),cancelButtonProps:To(),showCancel:{type:Boolean,default:!0},onConfirm:Function,onCancel:Function}),zVt=$n({compatConfig:{MODE:3},name:"APopconfirm",inheritAttrs:!1,props:ju($Vt(),$e($e({},wst()),{trigger:"click",placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0,okType:"primary",disabled:!1})),slots:Object,setup(e,t){let{slots:r,emit:n,expose:i,attrs:a}=t;const o=Hn();vB(e.visible===void 0),i({getPopupDomNode:()=>{var M,N;return(N=(M=o.value)===null||M===void 0?void 0:M.getPopupDomNode)===null||N===void 0?void 0:N.call(M)}});const[s,l]=Vg(!1,{value:ws(e,"open")}),u=(M,N)=>{e.open===void 0&&l(M),n("update:open",M),n("openChange",M,N)},c=M=>{u(!1,M)},A=M=>{var N;return(N=e.onConfirm)===null||N===void 0?void 0:N.call(e,M)},f=M=>{var N;u(!1,M),(N=e.onCancel)===null||N===void 0||N.call(e,M)},h=M=>{M.keyCode===yi.ESC&&s&&u(!1,M)},g=M=>{const{disabled:N}=e;N||u(M)},{prefixCls:p,getPrefixCls:m}=gs("popconfirm",e),b=vt(()=>m()),C=vt(()=>m("btn")),[E]=jVt(p),[_]=SC("Popconfirm",r2.Popconfirm),F=()=>{var M,N,P,j,z;const{okButtonProps:W,cancelButtonProps:Y,title:ee=(M=r.title)===null||M===void 0?void 0:M.call(r),description:q=(N=r.description)===null||N===void 0?void 0:N.call(r),cancelText:ae=(P=r.cancel)===null||P===void 0?void 0:P.call(r),okText:se=(j=r.okText)===null||j===void 0?void 0:j.call(r),okType:de,icon:Ae=((z=r.icon)===null||z===void 0?void 0:z.call(r))||De(wB,null,null),showCancel:be=!0}=e,{cancelButton:Le,okButton:Ne}=r,ue=$e({onClick:f,size:"small"},Y),Ke=$e($e($e({onClick:A},pW(de)),{size:"small"}),W);return De("div",{class:`${p.value}-inner-content`},[De("div",{class:`${p.value}-message`},[Ae&&De("span",{class:`${p.value}-message-icon`},[Ae]),De("div",{class:[`${p.value}-message-title`,{[`${p.value}-message-title-only`]:!!q}]},[ee])]),q&&De("div",{class:`${p.value}-description`},[q]),De("div",{class:`${p.value}-buttons`},[be?Le?Le(ue):De(ep,ue,{default:()=>[ae||_.value.cancelText]}):null,Ne?Ne(Ke):De(Wye,{buttonProps:$e($e({size:"small"},pW(de)),W),actionFn:A,close:c,prefixCls:C.value,quitOnNullishReturnValue:!0,emitEvent:!0},{default:()=>[se||_.value.okText]})])])};return()=>{var M;const{placement:N,overlayClassName:P,trigger:j="click"}=e,z=GVt(e,["placement","overlayClassName","trigger"]),W=Cc(z,["title","content","cancelText","okText","onUpdate:open","onConfirm","onCancel","prefixCls"]),Y=Vn(p.value,P);return E(De(Cst,Ot(Ot(Ot({},W),a),{},{trigger:j,placement:N,onOpenChange:g,open:s.value,overlayClassName:Y,transitionName:gC(b.value,"zoom-big",e.transitionName),ref:o,"data-popover-inject":!0}),{default:()=>[H8t(((M=r.default)===null||M===void 0?void 0:M.call(r))||[],{onKeydown:ee=>{h(ee)}},!1)],content:F}))}}}),CZr=Ly(zVt),KVt=["normal","exception","active","success"],GJ=()=>({prefixCls:String,type:Us(),percent:Number,format:pi(),status:Us(),showInfo:Pa(),strokeWidth:Number,strokeLinecap:Us(),strokeColor:Wf(),trailColor:String,width:Number,success:To(),gapDegree:Number,gapPosition:Us(),size:$l([String,Number,Array]),steps:Number,successPercent:Number,title:String,progressStatus:Us()});function Kk(e){return!e||e<0?0:e>100?100:e}function _W(e){let{success:t,successPercent:r}=e,n=r;return t&&"progress"in t&&(BA(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),n=t.progress),t&&"percent"in t&&(n=t.percent),n}function VVt(e){let{percent:t,success:r,successPercent:n}=e;const i=Kk(_W({success:r,successPercent:n}));return[i,Kk(Kk(t)-i)]}function WVt(e){let{success:t={},strokeColor:r}=e;const{strokeColor:n}=t;return[n||u9.green,r||null]}const $J=(e,t,r)=>{var n,i,a,o;let s=-1,l=-1;if(t==="step"){const u=r.steps,c=r.strokeWidth;typeof e=="string"||typeof e>"u"?(s=e==="small"?2:14,l=c??8):typeof e=="number"?[s,l]=[e,e]:[s=14,l=8]=e,s*=u}else if(t==="line"){const u=r==null?void 0:r.strokeWidth;typeof e=="string"||typeof e>"u"?l=u||(e==="small"?6:8):typeof e=="number"?[s,l]=[e,e]:[s=-1,l=8]=e}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[s,l]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,l]=[e,e]:(s=(i=(n=e[0])!==null&&n!==void 0?n:e[1])!==null&&i!==void 0?i:120,l=(o=(a=e[0])!==null&&a!==void 0?a:e[1])!==null&&o!==void 0?o:120));return{width:s,height:l}};var YVt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i$e($e({},GJ()),{strokeColor:Wf(),direction:Us()}),JVt=e=>{let t=[];return Object.keys(e).forEach(r=>{const n=parseFloat(r.replace(/%/g,""));isNaN(n)||t.push({key:n,value:e[r]})}),t=t.sort((r,n)=>r.key-n.key),t.map(r=>{let{key:n,value:i}=r;return`${i} ${n}%`}).join(", ")},XVt=(e,t)=>{const{from:r=u9.blue,to:n=u9.blue,direction:i=t==="rtl"?"to left":"to right"}=e,a=YVt(e,["from","to","direction"]);if(Object.keys(a).length!==0){const o=JVt(a);return{backgroundImage:`linear-gradient(${i}, ${o})`}}return{backgroundImage:`linear-gradient(${i}, ${r}, ${n})`}},ZVt=$n({compatConfig:{MODE:3},name:"Line",inheritAttrs:!1,props:qVt(),setup(e,t){let{slots:r,attrs:n}=t;const i=vt(()=>{const{strokeColor:h,direction:g}=e;return h&&typeof h!="string"?XVt(h,g):{backgroundColor:h}}),a=vt(()=>e.strokeLinecap==="square"||e.strokeLinecap==="butt"?0:void 0),o=vt(()=>e.trailColor?{backgroundColor:e.trailColor}:void 0),s=vt(()=>{var h;return(h=e.size)!==null&&h!==void 0?h:[-1,e.strokeWidth||(e.size==="small"?6:8)]}),l=vt(()=>$J(s.value,"line",{strokeWidth:e.strokeWidth})),u=vt(()=>{const{percent:h}=e;return $e({width:`${Kk(h)}%`,height:`${l.value.height}px`,borderRadius:a.value},i.value)}),c=vt(()=>_W(e)),A=vt(()=>{const{success:h}=e;return{width:`${Kk(c.value)}%`,height:`${l.value.height}px`,borderRadius:a.value,backgroundColor:h==null?void 0:h.strokeColor}}),f={width:l.value.width<0?"100%":l.value.width,height:`${l.value.height}px`};return()=>{var h;return De(ls,null,[De("div",Ot(Ot({},n),{},{class:[`${e.prefixCls}-outer`,n.class],style:[n.style,f]}),[De("div",{class:`${e.prefixCls}-inner`,style:o.value},[De("div",{class:`${e.prefixCls}-bg`,style:u.value},null),c.value!==void 0?De("div",{class:`${e.prefixCls}-success-bg`,style:A.value},null):null])]),(h=r.default)===null||h===void 0?void 0:h.call(r)])}}}),Kut={percent:0,prefixCls:"vc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1},Vut=e=>{const t=Hn(null);return lm(()=>{const r=Date.now();let n=!1;e.value.forEach(i=>{const a=(i==null?void 0:i.$el)||i;if(!a)return;n=!0;const o=a.style;o.transitionDuration=".3s, .3s, .3s, .06s",t.value&&r-t.value<100&&(o.transitionDuration="0s, 0s")}),n&&(t.value=Date.now())}),e},Wut={gapDegree:Number,gapPosition:{type:String},percent:{type:[Array,Number]},prefixCls:String,strokeColor:{type:[Object,String,Array]},strokeLinecap:{type:String},strokeWidth:Number,trailColor:String,trailWidth:Number,transition:String};var eWt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i4&&arguments[4]!==void 0?arguments[4]:0,a=arguments.length>5?arguments[5]:void 0;const o=50-n/2;let s=0,l=-o,u=0,c=-2*o;switch(a){case"left":s=-o,l=0,u=2*o,c=0;break;case"right":s=o,l=0,u=-2*o,c=0;break;case"bottom":l=o,c=2*o;break}const A=`M 50,50 m ${s},${l} a ${o},${o} 0 1 1 ${u},${-c} a ${o},${o} 0 1 1 ${-u},${c}`,f=Math.PI*2*o,h={stroke:r,strokeDasharray:`${t/100*(f-i)}px ${f}px`,strokeDashoffset:`-${i/2+e/100*(f-i)}px`,transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s"};return{pathString:A,pathStyle:h}}const rWt=$n({compatConfig:{MODE:3},name:"VCCircle",props:ju(Wut,Kut),setup(e){ETe+=1;const t=Hn(ETe),r=vt(()=>xTe(e.percent)),n=vt(()=>xTe(e.strokeColor)),[i,a]=jBe();Vut(a);const o=()=>{const{prefixCls:s,strokeWidth:l,strokeLinecap:u,gapDegree:c,gapPosition:A}=e;let f=0;return r.value.map((h,g)=>{const p=n.value[g]||n.value[n.value.length-1],m=Object.prototype.toString.call(p)==="[object Object]"?`url(#${s}-gradient-${t.value})`:"",{pathString:b,pathStyle:C}=STe(f,h,p,l,c,A);f+=h;const E={key:g,d:b,stroke:m,"stroke-linecap":u,"stroke-width":l,opacity:h===0?0:1,"fill-opacity":"0",class:`${s}-circle-path`,style:C};return De("path",Ot({ref:i(g)},E),null)})};return()=>{const{prefixCls:s,strokeWidth:l,trailWidth:u,gapDegree:c,gapPosition:A,trailColor:f,strokeLinecap:h,strokeColor:g}=e,p=tWt(e,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","strokeColor"]),{pathString:m,pathStyle:b}=STe(0,100,f,l,c,A);delete p.percent;const C=n.value.find(_=>Object.prototype.toString.call(_)==="[object Object]"),E={d:m,stroke:f,"stroke-linecap":h,"stroke-width":u||l,"fill-opacity":"0",class:`${s}-circle-trail`,style:b};return De("svg",Ot({class:`${s}-circle`,viewBox:"0 0 100 100"},p),[C&&De("defs",null,[De("linearGradient",{id:`${s}-gradient-${t.value}`,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[Object.keys(C).sort((_,F)=>BTe(_)-BTe(F)).map((_,F)=>De("stop",{key:F,offset:_,"stop-color":C[_]},null))])]),De("path",E,null),o().reverse()])}}}),nWt=()=>$e($e({},GJ()),{strokeColor:Wf()}),iWt=3,aWt=e=>iWt/e*100,oWt=$n({compatConfig:{MODE:3},name:"Circle",inheritAttrs:!1,props:ju(nWt(),{trailColor:null}),setup(e,t){let{slots:r,attrs:n}=t;const i=vt(()=>{var p;return(p=e.width)!==null&&p!==void 0?p:120}),a=vt(()=>{var p;return(p=e.size)!==null&&p!==void 0?p:[i.value,i.value]}),o=vt(()=>$J(a.value,"circle")),s=vt(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type==="dashboard")return 75}),l=vt(()=>({width:`${o.value.width}px`,height:`${o.value.height}px`,fontSize:`${o.value.width*.15+6}px`})),u=vt(()=>{var p;return(p=e.strokeWidth)!==null&&p!==void 0?p:Math.max(aWt(o.value.width),6)}),c=vt(()=>e.gapPosition||e.type==="dashboard"&&"bottom"||void 0),A=vt(()=>VVt(e)),f=vt(()=>Object.prototype.toString.call(e.strokeColor)==="[object Object]"),h=vt(()=>WVt({success:e.success,strokeColor:e.strokeColor})),g=vt(()=>({[`${e.prefixCls}-inner`]:!0,[`${e.prefixCls}-circle-gradient`]:f.value}));return()=>{var p;const m=De(rWt,{percent:A.value,strokeWidth:u.value,trailWidth:u.value,strokeColor:h.value,strokeLinecap:e.strokeLinecap,trailColor:e.trailColor,prefixCls:e.prefixCls,gapDegree:s.value,gapPosition:c.value},null);return De("div",Ot(Ot({},n),{},{class:[g.value,n.class],style:[n.style,l.value]}),[o.value.width<=20?De(BL,null,{default:()=>[De("span",null,[m])],title:r.default}):De(ls,null,[m,(p=r.default)===null||p===void 0?void 0:p.call(r)])])}}}),sWt=()=>$e($e({},GJ()),{steps:Number,strokeColor:$l(),trailColor:String}),lWt=$n({compatConfig:{MODE:3},name:"Steps",props:sWt(),setup(e,t){let{slots:r}=t;const n=vt(()=>Math.round(e.steps*((e.percent||0)/100))),i=vt(()=>{var s;return(s=e.size)!==null&&s!==void 0?s:[e.size==="small"?2:14,e.strokeWidth||8]}),a=vt(()=>$J(i.value,"step",{steps:e.steps,strokeWidth:e.strokeWidth||8})),o=vt(()=>{const{steps:s,strokeColor:l,trailColor:u,prefixCls:c}=e,A=[];for(let f=0;f{var s;return De("div",{class:`${e.prefixCls}-steps-outer`},[o.value,(s=r.default)===null||s===void 0?void 0:s.call(r)])}}}),uWt=new vl("antProgressActive",{"0%":{transform:"translateX(-100%) scaleX(0)",opacity:.1},"20%":{transform:"translateX(-100%) scaleX(0)",opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}}),cWt=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:$e($e({},gu(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize,marginInlineEnd:e.marginXS,marginBottom:e.marginXS},[`${t}-outer`]:{display:"inline-block",width:"100%"},[`&${t}-show-info`]:{[`${t}-outer`]:{marginInlineEnd:`calc(-2em - ${e.marginXS}px)`,paddingInlineEnd:`calc(2em + ${e.paddingXS}px)`}},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:e.progressRemainingColor,borderRadius:e.progressLineRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorInfo}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",backgroundColor:e.colorInfo,borderRadius:e.progressLineRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",width:"2em",marginInlineStart:e.marginXS,color:e.progressInfoTextColor,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[r]:{fontSize:e.fontSize}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.progressLineRadius,opacity:0,animationName:uWt,animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},AWt=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.progressRemainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.colorText,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[r]:{fontSize:`${e.fontSize/e.fontSizeSM}em`}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},fWt=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.progressRemainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.colorInfo}}}}}},hWt=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${r}`]:{fontSize:e.fontSizeSM}}}},dWt=Gu("Progress",e=>{const t=e.marginXXS/2,r=Al(e,{progressLineRadius:100,progressInfoTextColor:e.colorText,progressDefaultColor:e.colorInfo,progressRemainingColor:e.colorFillSecondary,progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[cWt(r),AWt(r),fWt(r),hWt(r)]});var gWt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);iArray.isArray(e.strokeColor)?e.strokeColor[0]:e.strokeColor),u=vt(()=>{const{percent:g=0}=e,p=_W(e);return parseInt(p!==void 0?p.toString():g.toString(),10)}),c=vt(()=>{const{status:g}=e;return!KVt.includes(g)&&u.value>=100?"success":g||"normal"}),A=vt(()=>{const{type:g,showInfo:p,size:m}=e,b=i.value;return{[b]:!0,[`${b}-inline-circle`]:g==="circle"&&$J(m,"circle").width<=20,[`${b}-${g==="dashboard"&&"circle"||g}`]:!0,[`${b}-status-${c.value}`]:!0,[`${b}-show-info`]:p,[`${b}-${m}`]:m,[`${b}-rtl`]:a.value==="rtl",[s.value]:!0}}),f=vt(()=>typeof e.strokeColor=="string"||Array.isArray(e.strokeColor)?e.strokeColor:void 0),h=()=>{const{showInfo:g,format:p,type:m,percent:b,title:C}=e,E=_W(e);if(!g)return null;let _;const F=p||(r==null?void 0:r.format)||(N=>`${N}%`),M=m==="line";return p||r!=null&&r.format||c.value!=="exception"&&c.value!=="success"?_=F(Kk(b),Kk(E)):c.value==="exception"?_=De(M?cm:QC,null,null):c.value==="success"&&(_=De(M?bB:pJ,null,null)),De("span",{class:`${i.value}-text`,title:C===void 0&&typeof _=="string"?_:void 0},[_])};return()=>{const{type:g,steps:p,title:m}=e,{class:b}=n,C=gWt(n,["class"]),E=h();let _;return g==="line"?_=p?De(lWt,Ot(Ot({},e),{},{strokeColor:f.value,prefixCls:i.value,steps:p}),{default:()=>[E]}):De(ZVt,Ot(Ot({},e),{},{strokeColor:l.value,prefixCls:i.value,direction:a.value}),{default:()=>[E]}):(g==="circle"||g==="dashboard")&&(_=De(oWt,Ot(Ot({},e),{},{prefixCls:i.value,strokeColor:l.value,progressStatus:c.value}),{default:()=>[E]})),o(De("div",Ot(Ot({role:"progressbar"},C),{},{class:[A.value,b],title:m}),[_]))}}}),vWt=Ly(pWt),IZr=Ly(Hlt),Yut=Symbol("TableContextProps"),mWt=e=>{Es(Yut,e)},TC=()=>Wo(Yut,{}),yWt="RC_TABLE_KEY";function qut(e){return e==null?[]:Array.isArray(e)?e:[e]}function Jut(e,t){if(!t&&typeof t!="number")return e;const r=qut(t);let n=e;for(let i=0;i{const{key:i,dataIndex:a}=n||{};let o=i||qut(a).join("-")||yWt;for(;r[o];)o=`${o}_next`;r[o]=!0,t.push(o)}),t}function bWt(){const e={};function t(a,o){o&&Object.keys(o).forEach(s=>{const l=o[s];l&&typeof l=="object"?(a[s]=a[s]||{},t(a[s],l)):a[s]=l})}for(var r=arguments.length,n=new Array(r),i=0;i{t(e,a)}),e}function Yye(e){return e!=null}const Xut=Symbol("SlotsContextProps"),wWt=e=>{Es(Xut,e)},Cxe=()=>Wo(Xut,vt(()=>({}))),Zut=Symbol("ContextProps"),CWt=e=>{Es(Zut,e)},IWt=()=>Wo(Zut,{onResizeColumn:()=>{}}),p9="RC_TABLE_INTERNAL_COL_DEFINE",ect=Symbol("HoverContextProps"),EWt=e=>{Es(ect,e)},BWt=()=>Wo(ect,{startRow:sn(-1),endRow:sn(-1),onHover(){}}),qye=sn(!1),xWt=()=>{Is(()=>{qye.value=qye.value||jHt("position","sticky")})},SWt=()=>qye;var kWt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i=r}function _Wt(e){return e&&typeof e=="object"&&!Array.isArray(e)&&!ud(e)}const KJ=$n({name:"Cell",props:["prefixCls","record","index","renderIndex","dataIndex","customRender","component","colSpan","rowSpan","fixLeft","fixRight","firstFixLeft","lastFixLeft","firstFixRight","lastFixRight","appendNode","additionalProps","ellipsis","align","rowType","isSticky","column","cellType","transformCellText"],setup(e,t){let{slots:r}=t;const n=Cxe(),{onHover:i,startRow:a,endRow:o}=BWt(),s=vt(()=>{var g,p,m,b;return(m=(g=e.colSpan)!==null&&g!==void 0?g:(p=e.additionalProps)===null||p===void 0?void 0:p.colSpan)!==null&&m!==void 0?m:(b=e.additionalProps)===null||b===void 0?void 0:b.colspan}),l=vt(()=>{var g,p,m,b;return(m=(g=e.rowSpan)!==null&&g!==void 0?g:(p=e.additionalProps)===null||p===void 0?void 0:p.rowSpan)!==null&&m!==void 0?m:(b=e.additionalProps)===null||b===void 0?void 0:b.rowspan}),u=sy(()=>{const{index:g}=e;return QWt(g,l.value||1,a.value,o.value)}),c=SWt(),A=(g,p)=>{var m;const{record:b,index:C,additionalProps:E}=e;b&&i(C,C+p-1),(m=E==null?void 0:E.onMouseenter)===null||m===void 0||m.call(E,g)},f=g=>{var p;const{record:m,additionalProps:b}=e;m&&i(-1,-1),(p=b==null?void 0:b.onMouseleave)===null||p===void 0||p.call(b,g)},h=g=>{const p=Cg(g)[0];return ud(p)?p.type===Yb?p.children:Array.isArray(p.children)?h(p.children):void 0:p};return()=>{var g,p,m,b,C,E;const{prefixCls:_,record:F,index:M,renderIndex:N,dataIndex:P,customRender:j,component:z="td",fixLeft:W,fixRight:Y,firstFixLeft:ee,lastFixLeft:q,firstFixRight:ae,lastFixRight:se,appendNode:de=(g=r.appendNode)===null||g===void 0?void 0:g.call(r),additionalProps:Ae={},ellipsis:be,align:Le,rowType:Ne,isSticky:ue,column:Ke={},cellType:Pe}=e,je=`${_}-cell`;let Ye,me;const Se=(p=r.default)===null||p===void 0?void 0:p.call(r);if(Yye(Se)||Pe==="header")me=Se;else{const cr=Jut(F,P);if(me=cr,j){const Gt=j({text:cr,value:cr,record:F,index:M,renderIndex:N,column:Ke.__originColumn__});_Wt(Gt)?(me=Gt.children,Ye=Gt.props):me=Gt}if(!(p9 in Ke)&&Pe==="body"&&n.value.bodyCell&&!(!((m=Ke.slots)===null||m===void 0)&&m.customRender)){const Gt=Jq(n.value,"bodyCell",{text:cr,value:cr,record:F,index:M,column:Ke.__originColumn__},()=>{const Xt=me===void 0?cr:me;return[typeof Xt=="object"&&l0(Xt)||typeof Xt!="object"?Xt:null]});me=sf(Gt)}e.transformCellText&&(me=e.transformCellText({text:me,record:F,index:M,column:Ke.__originColumn__}))}typeof me=="object"&&!Array.isArray(me)&&!ud(me)&&(me=null),be&&(q||ae)&&(me=De("span",{class:`${je}-content`},[me])),Array.isArray(me)&&me.length===1&&(me=me[0]);const et=Ye||{},{colSpan:nt,rowSpan:tt,style:ft,class:st}=et,Re=kWt(et,["colSpan","rowSpan","style","class"]),dt=(b=nt!==void 0?nt:s.value)!==null&&b!==void 0?b:1,Oe=(C=tt!==void 0?tt:l.value)!==null&&C!==void 0?C:1;if(dt===0||Oe===0)return null;const Ce={},Be=typeof W=="number"&&c.value,We=typeof Y=="number"&&c.value;Be&&(Ce.position="sticky",Ce.left=`${W}px`),We&&(Ce.position="sticky",Ce.right=`${Y}px`);const mt={};Le&&(mt.textAlign=Le);let Tt;const bt=be===!0?{showTitle:!0}:be;bt&&(bt.showTitle||Ne==="header")&&(typeof me=="string"||typeof me=="number"?Tt=me.toString():ud(me)&&(Tt=h([me])));const qt=$e($e($e({title:Tt},Re),Ae),{colSpan:dt!==1?dt:null,rowSpan:Oe!==1?Oe:null,class:Vn(je,{[`${je}-fix-left`]:Be&&c.value,[`${je}-fix-left-first`]:ee&&c.value,[`${je}-fix-left-last`]:q&&c.value,[`${je}-fix-right`]:We&&c.value,[`${je}-fix-right-first`]:ae&&c.value,[`${je}-fix-right-last`]:se&&c.value,[`${je}-ellipsis`]:be,[`${je}-with-append`]:de,[`${je}-fix-sticky`]:(Be||We)&&ue&&c.value,[`${je}-row-hover`]:!Ye&&u.value},Ae.class,st),onMouseenter:cr=>{A(cr,Oe)},onMouseleave:f,style:[Ae.style,mt,Ce,ft]});return De(z,qt,{default:()=>[de,me,(E=r.dragHandle)===null||E===void 0?void 0:E.call(r)]})}}});function Ixe(e,t,r,n,i){const a=r[e]||{},o=r[t]||{};let s,l;a.fixed==="left"?s=n.left[e]:o.fixed==="right"&&(l=n.right[t]);let u=!1,c=!1,A=!1,f=!1;const h=r[t+1],g=r[e-1];return i==="rtl"?s!==void 0?f=!(g&&g.fixed==="left"):l!==void 0&&(A=!(h&&h.fixed==="right")):s!==void 0?u=!(h&&h.fixed==="left"):l!==void 0&&(c=!(g&&g.fixed==="right")),{fixLeft:s,fixRight:l,lastFixLeft:u,firstFixRight:c,lastFixRight:A,firstFixLeft:f,isSticky:n.isSticky}}const kTe={mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"},touch:{start:"touchstart",move:"touchmove",stop:"touchend"}},QTe=50,TWt=$n({compatConfig:{MODE:3},name:"DragHandle",props:{prefixCls:String,width:{type:Number,required:!0},minWidth:{type:Number,default:QTe},maxWidth:{type:Number,default:1/0},column:{type:Object,default:void 0}},setup(e){let t=0,r={remove:()=>{}},n={remove:()=>{}};const i=()=>{r.remove(),n.remove()};um(()=>{i()}),ks(()=>{BA(!isNaN(e.width),"Table","width must be a number when use resizable")});const{onResizeColumn:a}=IWt(),o=vt(()=>typeof e.minWidth=="number"&&!isNaN(e.minWidth)?e.minWidth:QTe),s=vt(()=>typeof e.maxWidth=="number"&&!isNaN(e.maxWidth)?e.maxWidth:1/0),l=sA();let u=0;const c=sn(!1);let A;const f=E=>{let _=0;E.touches?E.touches.length?_=E.touches[0].pageX:_=E.changedTouches[0].pageX:_=E.pageX;const F=t-_;let M=Math.max(u-F,o.value);M=Math.min(M,s.value),ms.cancel(A),A=ms(()=>{a(M,e.column.__originColumn__)})},h=E=>{f(E)},g=E=>{c.value=!1,f(E),i()},p=(E,_)=>{c.value=!0,i(),u=l.vnode.el.parentNode.getBoundingClientRect().width,!(E instanceof MouseEvent&&E.which!==1)&&(E.stopPropagation&&E.stopPropagation(),t=E.touches?E.touches[0].pageX:E.pageX,r=Ym(document.documentElement,_.move,h),n=Ym(document.documentElement,_.stop,g))},m=E=>{E.stopPropagation(),E.preventDefault(),p(E,kTe.mouse)},b=E=>{E.stopPropagation(),E.preventDefault(),p(E,kTe.touch)},C=E=>{E.stopPropagation(),E.preventDefault()};return()=>{const{prefixCls:E}=e,_={[Jp?"onTouchstartPassive":"onTouchstart"]:F=>b(F)};return De("div",Ot(Ot({class:`${E}-resize-handle ${c.value?"dragging":""}`,onMousedown:m},_),{},{onClick:C}),[De("div",{class:`${E}-resize-handle-line`},null)])}}}),DWt=$n({name:"HeaderRow",props:["cells","stickyOffsets","flattenColumns","rowComponent","cellComponent","index","customHeaderRow"],setup(e){const t=TC();return()=>{const{prefixCls:r,direction:n}=t,{cells:i,stickyOffsets:a,flattenColumns:o,rowComponent:s,cellComponent:l,customHeaderRow:u,index:c}=e;let A;u&&(A=u(i.map(h=>h.column),c));const f=zJ(i.map(h=>h.column));return De(s,A,{default:()=>[i.map((h,g)=>{const{column:p}=h,m=Ixe(h.colStart,h.colEnd,o,a,n);let b;p&&p.customHeaderCell&&(b=h.column.customHeaderCell(p));const C=p;return De(KJ,Ot(Ot(Ot({},h),{},{cellType:"header",ellipsis:p.ellipsis,align:p.align,component:l,prefixCls:r,key:f[g]},m),{},{additionalProps:b,rowType:"header",column:p}),{default:()=>p.title,dragHandle:()=>C.resizable?De(TWt,{prefixCls:r,width:C.width,minWidth:C.minWidth,maxWidth:C.maxWidth,column:C},null):null})})]})}}});function FWt(e){const t=[];function r(i,a){let o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[o]=t[o]||[];let s=a;return i.filter(Boolean).map(u=>{const c={key:u.key,class:Vn(u.className,u.class),column:u,colStart:s};let A=1;const f=u.children;return f&&f.length>0&&(A=r(f,s,o+1).reduce((h,g)=>h+g,0),c.hasSubColumns=!0),"colSpan"in u&&({colSpan:A}=u),"rowSpan"in u&&(c.rowSpan=u.rowSpan),c.colSpan=A,c.colEnd=c.colStart+A-1,t[o].push(c),s+=A,A})}r(e,0);const n=t.length;for(let i=0;i{!("rowSpan"in a)&&!a.hasSubColumns&&(a.rowSpan=n-i)});return t}const _Te=$n({name:"Header",inheritAttrs:!1,props:["columns","flattenColumns","stickyOffsets","customHeaderRow"],setup(e){const t=TC(),r=vt(()=>FWt(e.columns));return()=>{const{prefixCls:n,getComponent:i}=t,{stickyOffsets:a,flattenColumns:o,customHeaderRow:s}=e,l=i(["header","wrapper"],"thead"),u=i(["header","row"],"tr"),c=i(["header","cell"],"th");return De(l,{class:`${n}-thead`},{default:()=>[r.value.map((A,f)=>De(DWt,{key:f,flattenColumns:o,cells:A,stickyOffsets:a,rowComponent:u,cellComponent:c,customHeaderRow:s,index:f},null))]})}}}),tct=Symbol("ExpandedRowProps"),RWt=e=>{Es(tct,e)},MWt=()=>Wo(tct,{}),rct=$n({name:"ExpandedRow",inheritAttrs:!1,props:["prefixCls","component","cellComponent","expanded","colSpan","isEmpty"],setup(e,t){let{slots:r,attrs:n}=t;const i=TC(),a=MWt(),{fixHeader:o,fixColumn:s,componentWidth:l,horizonScroll:u}=a;return()=>{const{prefixCls:c,component:A,cellComponent:f,expanded:h,colSpan:g,isEmpty:p}=e;return De(A,{class:n.class,style:{display:h?null:"none"}},{default:()=>[De(KJ,{component:f,prefixCls:c,colSpan:g},{default:()=>{var m;let b=(m=r.default)===null||m===void 0?void 0:m.call(r);return(p?u.value:s.value)&&(b=De("div",{style:{width:`${l.value-(o.value?i.scrollbarSize:0)}px`,position:"sticky",left:0,overflow:"hidden"},class:`${c}-expanded-row-fixed`},[b])),b}})]})}}}),OWt=$n({name:"MeasureCell",props:["columnKey"],setup(e,t){let{emit:r}=t;const n=Hn();return Is(()=>{n.value&&r("columnResize",e.columnKey,n.value.offsetWidth)}),()=>De(YE,{onResize:i=>{let{offsetWidth:a}=i;r("columnResize",e.columnKey,a)}},{default:()=>[De("td",{ref:n,style:{padding:0,border:0,height:0}},[De("div",{style:{height:0,overflow:"hidden"}},[t2(" ")])])]})}}),nct=Symbol("BodyContextProps"),NWt=e=>{Es(nct,e)},ict=()=>Wo(nct,{}),LWt=$n({name:"BodyRow",inheritAttrs:!1,props:["record","index","renderIndex","recordKey","expandedKeys","rowComponent","cellComponent","customRow","rowExpandable","indent","rowKey","getRowKey","childrenColumnName"],setup(e,t){let{attrs:r}=t;const n=TC(),i=ict(),a=sn(!1),o=vt(()=>e.expandedKeys&&e.expandedKeys.has(e.recordKey));ks(()=>{o.value&&(a.value=!0)});const s=vt(()=>i.expandableType==="row"&&(!e.rowExpandable||e.rowExpandable(e.record))),l=vt(()=>i.expandableType==="nest"),u=vt(()=>e.childrenColumnName&&e.record&&e.record[e.childrenColumnName]),c=vt(()=>s.value||l.value),A=(m,b)=>{i.onTriggerExpand(m,b)},f=vt(()=>{var m;return((m=e.customRow)===null||m===void 0?void 0:m.call(e,e.record,e.index))||{}}),h=function(m){var b,C;i.expandRowByClick&&c.value&&A(e.record,m);for(var E=arguments.length,_=new Array(E>1?E-1:0),F=1;F{const{record:m,index:b,indent:C}=e,{rowClassName:E}=i;return typeof E=="string"?E:typeof E=="function"?E(m,b,C):""}),p=vt(()=>zJ(i.flattenColumns));return()=>{const{class:m,style:b}=r,{record:C,index:E,rowKey:_,indent:F=0,rowComponent:M,cellComponent:N}=e,{prefixCls:P,fixedInfoList:j,transformCellText:z}=n,{flattenColumns:W,expandedRowClassName:Y,indentSize:ee,expandIcon:q,expandedRowRender:ae,expandIconColumnIndex:se}=i,de=De(M,Ot(Ot({},f.value),{},{"data-row-key":_,class:Vn(m,`${P}-row`,`${P}-row-level-${F}`,g.value,f.value.class),style:[b,f.value.style],onClick:h}),{default:()=>[W.map((be,Le)=>{const{customRender:Ne,dataIndex:ue,className:Ke}=be,Pe=p[Le],je=j[Le];let Ye;be.customCell&&(Ye=be.customCell(C,E,be));const me=Le===(se||0)&&l.value?De(ls,null,[De("span",{style:{paddingLeft:`${ee*F}px`},class:`${P}-row-indent indent-level-${F}`},null),q({prefixCls:P,expanded:o.value,expandable:u.value,record:C,onExpand:A})]):null;return De(KJ,Ot(Ot({cellType:"body",class:Ke,ellipsis:be.ellipsis,align:be.align,component:N,prefixCls:P,key:Pe,record:C,index:E,renderIndex:e.renderIndex,dataIndex:ue,customRender:Ne},je),{},{additionalProps:Ye,column:be,transformCellText:z,appendNode:me}),null)})]});let Ae;if(s.value&&(a.value||o.value)){const be=ae({record:C,index:E,indent:F+1,expanded:o.value}),Le=Y&&Y(C,E,F);Ae=De(rct,{expanded:o.value,class:Vn(`${P}-expanded-row`,`${P}-expanded-row-level-${F+1}`,Le),prefixCls:P,component:M,cellComponent:N,colSpan:W.length,isEmpty:!1},{default:()=>[be]})}return De(ls,null,[de,Ae])}}});function act(e,t,r,n,i,a){const o=[];o.push({record:e,indent:t,index:a});const s=i(e),l=n==null?void 0:n.has(s);if(e&&Array.isArray(e[r])&&l)for(let u=0;u{const a=t.value,o=r.value,s=e.value;if(o!=null&&o.size){const l=[];for(let u=0;u<(s==null?void 0:s.length);u+=1){const c=s[u];l.push(...act(c,0,a,o,n.value,u))}return l}return s==null?void 0:s.map((l,u)=>({record:l,indent:0,index:u}))})}const oct=Symbol("ResizeContextProps"),UWt=e=>{Es(oct,e)},HWt=()=>Wo(oct,{onColumnResize:()=>{}}),jWt=$n({name:"Body",props:["data","getRowKey","measureColumnWidth","expandedKeys","customRow","rowExpandable","childrenColumnName"],setup(e,t){let{slots:r}=t;const n=HWt(),i=TC(),a=ict(),o=PWt(ws(e,"data"),ws(e,"childrenColumnName"),ws(e,"expandedKeys"),ws(e,"getRowKey")),s=sn(-1),l=sn(-1);let u;return EWt({startRow:s,endRow:l,onHover:(c,A)=>{clearTimeout(u),u=setTimeout(()=>{s.value=c,l.value=A},100)}}),()=>{var c;const{data:A,getRowKey:f,measureColumnWidth:h,expandedKeys:g,customRow:p,rowExpandable:m,childrenColumnName:b}=e,{onColumnResize:C}=n,{prefixCls:E,getComponent:_}=i,{flattenColumns:F}=a,M=_(["body","wrapper"],"tbody"),N=_(["body","row"],"tr"),P=_(["body","cell"],"td");let j;A.length?j=o.value.map((W,Y)=>{const{record:ee,indent:q,index:ae}=W,se=f(ee,Y);return De(LWt,{key:se,rowKey:se,record:ee,recordKey:se,index:Y,renderIndex:ae,rowComponent:N,cellComponent:P,expandedKeys:g,customRow:p,getRowKey:f,rowExpandable:m,childrenColumnName:b,indent:q},null)}):j=De(rct,{expanded:!0,class:`${E}-placeholder`,prefixCls:E,component:N,cellComponent:P,colSpan:F.length,isEmpty:!0},{default:()=>[(c=r.emptyNode)===null||c===void 0?void 0:c.call(r)]});const z=zJ(F);return De(M,{class:`${E}-tbody`},{default:()=>[h&&De("tr",{"aria-hidden":"true",class:`${E}-measure-row`,style:{height:0,fontSize:0}},[z.map(W=>De(OWt,{key:W,columnKey:W,onColumnResize:C},null))]),j]})}}}),s3={};var GWt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{const{fixed:n}=r,i=n===!0?"left":n,a=r.children;return a&&a.length>0?[...t,...Jye(a).map(o=>$e({fixed:i},o))]:[...t,$e($e({},r),{fixed:i})]},[])}function $Wt(e){return e.map(t=>{const{fixed:r}=t,n=GWt(t,["fixed"]);let i=r;return r==="left"?i="right":r==="right"&&(i="left"),$e({fixed:i},n)})}function zWt(e,t){let{prefixCls:r,columns:n,expandable:i,expandedKeys:a,getRowKey:o,onTriggerExpand:s,expandIcon:l,rowExpandable:u,expandIconColumnIndex:c,direction:A,expandRowByClick:f,expandColumnWidth:h,expandFixed:g}=e;const p=Cxe(),m=vt(()=>{if(i.value){let E=n.value.slice();if(!E.includes(s3)){const ee=c.value||0;ee>=0&&E.splice(ee,0,s3)}const _=E.indexOf(s3);E=E.filter((ee,q)=>ee!==s3||q===_);const F=n.value[_];let M;(g.value==="left"||g.value)&&!c.value?M="left":(g.value==="right"||g.value)&&c.value===n.value.length?M="right":M=F?F.fixed:null;const N=a.value,P=u.value,j=l.value,z=r.value,W=f.value,Y={[p9]:{class:`${r.value}-expand-icon-col`,columnType:"EXPAND_COLUMN"},title:Jq(p.value,"expandColumnTitle",{},()=>[""]),fixed:M,class:`${r.value}-row-expand-icon-cell`,width:h.value,customRender:ee=>{let{record:q,index:ae}=ee;const se=o.value(q,ae),de=N.has(se),Ae=P?P(q):!0,be=j({prefixCls:z,expanded:de,expandable:Ae,record:q,onExpand:s});return W?De("span",{onClick:Le=>Le.stopPropagation()},[be]):be}};return E.map(ee=>ee===s3?Y:ee)}return n.value.filter(E=>E!==s3)}),b=vt(()=>{let E=m.value;return t.value&&(E=t.value(E)),E.length||(E=[{customRender:()=>null}]),E}),C=vt(()=>A.value==="rtl"?$Wt(Jye(b.value)):Jye(b.value));return[b,C]}function sct(e){const t=sn(e);let r;const n=sn([]);function i(a){n.value.push(a),ms.cancel(r),r=ms(()=>{const o=n.value;n.value=[],o.forEach(s=>{t.value=s(t.value)})})}return el(()=>{ms.cancel(r)}),[t,i]}function KWt(e){const t=Hn(null),r=Hn();function n(){clearTimeout(r.value)}function i(o){t.value=o,n(),r.value=setTimeout(()=>{t.value=null,r.value=void 0},100)}function a(){return t.value}return el(()=>{n()}),[i,a]}function VWt(e,t,r){return vt(()=>{const i=[],a=[];let o=0,s=0;const l=e.value,u=t.value,c=r.value;for(let A=0;A=0;s-=1){const l=t[s],u=r&&r[s],c=u&&u[p9];if(l||c||o){const A=c||{},f=WWt(A,["columnType"]);i.unshift(De("col",Ot({key:s,style:{width:typeof l=="number"?`${l}px`:l}},f),null)),o=!0}}return De("colgroup",null,[i])}function Xye(e,t){let{slots:r}=t;var n;return De("div",null,[(n=r.default)===null||n===void 0?void 0:n.call(r)])}Xye.displayName="Panel";let YWt=0;const qWt=$n({name:"Summary",props:["fixed"],setup(e,t){let{slots:r}=t;const n=TC(),i=`table-summary-uni-key-${++YWt}`,a=vt(()=>e.fixed===""||e.fixed);return ks(()=>{n.summaryCollect(i,a.value)}),el(()=>{n.summaryCollect(i,!1)}),()=>{var o;return(o=r.default)===null||o===void 0?void 0:o.call(r)}}}),JWt=$n({compatConfig:{MODE:3},name:"ATableSummaryRow",setup(e,t){let{slots:r}=t;return()=>{var n;return De("tr",null,[(n=r.default)===null||n===void 0?void 0:n.call(r)])}}}),uct=Symbol("SummaryContextProps"),XWt=e=>{Es(uct,e)},ZWt=()=>Wo(uct,{}),eYt=$n({name:"ATableSummaryCell",props:["index","colSpan","rowSpan","align"],setup(e,t){let{attrs:r,slots:n}=t;const i=TC(),a=ZWt();return()=>{const{index:o,colSpan:s=1,rowSpan:l,align:u}=e,{prefixCls:c,direction:A}=i,{scrollColumnIndex:f,stickyOffsets:h,flattenColumns:g}=a,m=o+s-1+1===f?s+1:s,b=Ixe(o,o+m-1,g,h,A);return De(KJ,Ot({class:r.class,index:o,component:"td",prefixCls:c,record:null,dataIndex:null,align:u,colSpan:m,rowSpan:l,customRender:()=>{var C;return(C=n.default)===null||C===void 0?void 0:C.call(n)}},b),null)}}}),lG=$n({name:"Footer",inheritAttrs:!1,props:["stickyOffsets","flattenColumns"],setup(e,t){let{slots:r}=t;const n=TC();return XWt(uc({stickyOffsets:ws(e,"stickyOffsets"),flattenColumns:ws(e,"flattenColumns"),scrollColumnIndex:vt(()=>{const i=e.flattenColumns.length-1,a=e.flattenColumns[i];return a!=null&&a.scrollbar?i:null})})),()=>{var i;const{prefixCls:a}=n;return De("tfoot",{class:`${a}-summary`},[(i=r.default)===null||i===void 0?void 0:i.call(r)])}}}),tYt=qWt;function rYt(e){let{prefixCls:t,record:r,onExpand:n,expanded:i,expandable:a}=e;const o=`${t}-row-expand-icon`;if(!a)return De("span",{class:[o,`${t}-row-spaced`]},null);const s=l=>{n(r,l),l.stopPropagation()};return De("span",{class:{[o]:!0,[`${t}-row-expanded`]:i,[`${t}-row-collapsed`]:!i},onClick:s},null)}function nYt(e,t,r){const n=[];function i(a){(a||[]).forEach((o,s)=>{n.push(t(o,s)),i(o[r])})}return i(e),n}const iYt=$n({name:"StickyScrollBar",inheritAttrs:!1,props:["offsetScroll","container","scrollBodyRef","scrollBodySizeInfo"],emits:["scroll"],setup(e,t){let{emit:r,expose:n}=t;const i=TC(),a=sn(0),o=sn(0),s=sn(0);ks(()=>{a.value=e.scrollBodySizeInfo.scrollWidth||0,o.value=e.scrollBodySizeInfo.clientWidth||0,s.value=a.value&&o.value*(o.value/a.value)},{flush:"post"});const l=sn(),[u,c]=sct({scrollLeft:0,isHiddenScrollBar:!0}),A=Hn({delta:0,x:0}),f=sn(!1),h=()=>{f.value=!1},g=N=>{A.value={delta:N.pageX-u.value.scrollLeft,x:0},f.value=!0,N.preventDefault()},p=N=>{const{buttons:P}=N||(window==null?void 0:window.event);if(!f.value||P===0){f.value&&(f.value=!1);return}let j=A.value.x+N.pageX-A.value.x-A.value.delta;j<=0&&(j=0),j+s.value>=o.value&&(j=o.value-s.value),r("scroll",{scrollLeft:j/o.value*(a.value+2)}),A.value.x=N.pageX},m=()=>{if(!e.scrollBodyRef.value)return;const N=ATe(e.scrollBodyRef.value).top,P=N+e.scrollBodyRef.value.offsetHeight,j=e.container===window?document.documentElement.scrollTop+window.innerHeight:ATe(e.container).top+e.container.clientHeight;P-AW()<=j||N>=j-e.offsetScroll?c(z=>$e($e({},z),{isHiddenScrollBar:!0})):c(z=>$e($e({},z),{isHiddenScrollBar:!1}))};n({setScrollLeft:N=>{c(P=>$e($e({},P),{scrollLeft:N/a.value*o.value||0}))}});let C=null,E=null,_=null,F=null;Is(()=>{C=Ym(document.body,"mouseup",h,!1),E=Ym(document.body,"mousemove",p,!1),_=Ym(window,"resize",m,!1)}),rEe(()=>{il(()=>{m()})}),Is(()=>{setTimeout(()=>{di([s,f],()=>{m()},{immediate:!0,flush:"post"})})}),di(()=>e.container,()=>{F==null||F.remove(),F=Ym(e.container,"scroll",m,!1)},{immediate:!0,flush:"post"}),el(()=>{C==null||C.remove(),E==null||E.remove(),F==null||F.remove(),_==null||_.remove()}),di(()=>$e({},u.value),(N,P)=>{N.isHiddenScrollBar!==(P==null?void 0:P.isHiddenScrollBar)&&!N.isHiddenScrollBar&&c(j=>{const z=e.scrollBodyRef.value;return z?$e($e({},j),{scrollLeft:z.scrollLeft/z.scrollWidth*z.clientWidth}):j})},{immediate:!0});const M=AW();return()=>{if(a.value<=o.value||!s.value||u.value.isHiddenScrollBar)return null;const{prefixCls:N}=i;return De("div",{style:{height:`${M}px`,width:`${o.value}px`,bottom:`${e.offsetScroll}px`},class:`${N}-sticky-scroll`},[De("div",{onMousedown:g,ref:l,class:Vn(`${N}-sticky-scroll-bar`,{[`${N}-sticky-scroll-bar-active`]:f.value}),style:{width:`${s.value}px`,transform:`translate3d(${u.value.scrollLeft}px, 0, 0)`}},null)])}}}),TTe=kC()?window:null;function aYt(e,t){return vt(()=>{const{offsetHeader:r=0,offsetSummary:n=0,offsetScroll:i=0,getContainer:a=()=>TTe}=typeof e.value=="object"?e.value:{},o=a()||TTe,s=!!e.value;return{isSticky:s,stickyClassName:s?`${t.value}-sticky-holder`:"",offsetHeader:r,offsetSummary:n,offsetScroll:i,container:o}})}function oYt(e,t){return vt(()=>{const r=[],n=e.value,i=t.value;for(let a=0;aa.isSticky&&!e.fixHeader?0:a.scrollbarSize),s=Hn(),l=p=>{const{currentTarget:m,deltaX:b}=p;b&&(i("scroll",{currentTarget:m,scrollLeft:m.scrollLeft+b}),p.preventDefault())},u=Hn();Is(()=>{il(()=>{u.value=Ym(s.value,"wheel",l)})}),el(()=>{var p;(p=u.value)===null||p===void 0||p.remove()});const c=vt(()=>e.flattenColumns.every(p=>p.width&&p.width!==0&&p.width!=="0px")),A=Hn([]),f=Hn([]);ks(()=>{const p=e.flattenColumns[e.flattenColumns.length-1],m={fixed:p?p.fixed:null,scrollbar:!0,customHeaderCell:()=>({class:`${a.prefixCls}-cell-scrollbar`})};A.value=o.value?[...e.columns,m]:e.columns,f.value=o.value?[...e.flattenColumns,m]:e.flattenColumns});const h=vt(()=>{const{stickyOffsets:p,direction:m}=e,{right:b,left:C}=p;return $e($e({},p),{left:m==="rtl"?[...C.map(E=>E+o.value),0]:C,right:m==="rtl"?b:[...b.map(E=>E+o.value),0],isSticky:a.isSticky})}),g=oYt(ws(e,"colWidths"),ws(e,"columCount"));return()=>{var p;const{noData:m,columCount:b,stickyTopOffset:C,stickyBottomOffset:E,stickyClassName:_,maxContentScroll:F}=e,{isSticky:M}=a;return De("div",{style:$e({overflow:"hidden"},M?{top:`${C}px`,bottom:`${E}px`}:{}),ref:s,class:Vn(r.class,{[_]:!!_})},[De("table",{style:{tableLayout:"fixed",visibility:m||g.value?null:"hidden"}},[(!m||!F||c.value)&&De(lct,{colWidths:g.value?[...g.value,o.value]:[],columCount:b+1,columns:f.value},null),(p=n.default)===null||p===void 0?void 0:p.call(n,$e($e({},e),{stickyOffsets:h.value,columns:A.value,flattenColumns:f.value}))])])}}});function FTe(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n[i,ws(e,i)])))}const sYt=[],lYt={},Zye="rc-table-internal-hook",uYt=$n({name:"Table",inheritAttrs:!1,props:["prefixCls","data","columns","rowKey","tableLayout","scroll","rowClassName","title","footer","id","showHeader","components","customRow","customHeaderRow","direction","expandFixed","expandColumnWidth","expandedRowKeys","defaultExpandedRowKeys","expandedRowRender","expandRowByClick","expandIcon","onExpand","onExpandedRowsChange","onUpdate:expandedRowKeys","defaultExpandAllRows","indentSize","expandIconColumnIndex","expandedRowClassName","childrenColumnName","rowExpandable","sticky","transformColumns","internalHooks","internalRefs","canExpandable","onUpdateInternalRefs","transformCellText"],emits:["expand","expandedRowsChange","updateInternalRefs","update:expandedRowKeys"],setup(e,t){let{attrs:r,slots:n,emit:i}=t;const a=vt(()=>e.data||sYt),o=vt(()=>!!a.value.length),s=vt(()=>bWt(e.components,{})),l=(Xt,Er)=>Jut(s.value,Xt)||Er,u=vt(()=>{const Xt=e.rowKey;return typeof Xt=="function"?Xt:Er=>Er&&Er[Xt]}),c=vt(()=>e.expandIcon||rYt),A=vt(()=>e.childrenColumnName||"children"),f=vt(()=>e.expandedRowRender?"row":e.canExpandable||a.value.some(Xt=>Xt&&typeof Xt=="object"&&Xt[A.value])?"nest":!1),h=sn([]);ks(()=>{e.defaultExpandedRowKeys&&(h.value=e.defaultExpandedRowKeys),e.defaultExpandAllRows&&(h.value=nYt(a.value,u.value,A.value))})();const p=vt(()=>new Set(e.expandedRowKeys||h.value||[])),m=Xt=>{const Er=u.value(Xt,a.value.indexOf(Xt));let on;const wn=p.value.has(Er);wn?(p.value.delete(Er),on=[...p.value]):on=[...p.value,Er],h.value=on,i("expand",!wn,Xt),i("update:expandedRowKeys",on),i("expandedRowsChange",on)},b=Hn(0),[C,E]=zWt($e($e({},BM(e)),{expandable:vt(()=>!!e.expandedRowRender),expandedKeys:p,getRowKey:u,onTriggerExpand:m,expandIcon:c}),vt(()=>e.internalHooks===Zye?e.transformColumns:null)),_=vt(()=>({columns:C.value,flattenColumns:E.value})),F=Hn(),M=Hn(),N=Hn(),P=Hn({scrollWidth:0,clientWidth:0}),j=Hn(),[z,W]=Hu(!1),[Y,ee]=Hu(!1),[q,ae]=sct(new Map),se=vt(()=>zJ(E.value)),de=vt(()=>se.value.map(Xt=>q.value.get(Xt))),Ae=vt(()=>E.value.length),be=VWt(de,Ae,ws(e,"direction")),Le=vt(()=>e.scroll&&Yye(e.scroll.y)),Ne=vt(()=>e.scroll&&Yye(e.scroll.x)||!!e.expandFixed),ue=vt(()=>Ne.value&&E.value.some(Xt=>{let{fixed:Er}=Xt;return Er})),Ke=Hn(),Pe=aYt(ws(e,"sticky"),ws(e,"prefixCls")),je=uc({}),Ye=vt(()=>{const Xt=Object.values(je)[0];return(Le.value||Pe.value.isSticky)&&Xt}),me=(Xt,Er)=>{Er?je[Xt]=Er:delete je[Xt]},Se=Hn({}),et=Hn({}),nt=Hn({});ks(()=>{Le.value&&(et.value={overflowY:"scroll",maxHeight:nk(e.scroll.y)}),Ne.value&&(Se.value={overflowX:"auto"},Le.value||(et.value={overflowY:"hidden"}),nt.value={width:e.scroll.x===!0?"auto":nk(e.scroll.x),minWidth:"100%"})});const tt=(Xt,Er)=>{lJ(F.value)&&ae(on=>{if(on.get(Xt)!==Er){const wn=new Map(on);return wn.set(Xt,Er),wn}return on})},[ft,st]=KWt();function Re(Xt,Er){if(!Er)return;if(typeof Er=="function"){Er(Xt);return}const on=Er.$el||Er;on.scrollLeft!==Xt&&(on.scrollLeft=Xt)}const dt=Xt=>{let{currentTarget:Er,scrollLeft:on}=Xt;var wn;const jr=e.direction==="rtl",ur=typeof on=="number"?on:Er.scrollLeft,Hr=Er||lYt;if((!st()||st()===Hr)&&(ft(Hr),Re(ur,M.value),Re(ur,N.value),Re(ur,j.value),Re(ur,(wn=Ke.value)===null||wn===void 0?void 0:wn.setScrollLeft)),Er){const{scrollWidth:Lr,clientWidth:Un}=Er;jr?(W(-ur0)):(W(ur>0),ee(ur{Ne.value&&N.value?dt({currentTarget:N.value}):(W(!1),ee(!1))};let Ce;const Be=Xt=>{Xt!==b.value&&(Oe(),b.value=F.value?F.value.offsetWidth:Xt)},We=Xt=>{let{width:Er}=Xt;if(clearTimeout(Ce),b.value===0){Be(Er);return}Ce=setTimeout(()=>{Be(Er)},100)};di([Ne,()=>e.data,()=>e.columns],()=>{Ne.value&&Oe()},{flush:"post"});const[mt,Tt]=Hu(0);xWt(),Is(()=>{il(()=>{var Xt,Er;Oe(),Tt(pTt(N.value).width),P.value={scrollWidth:((Xt=N.value)===null||Xt===void 0?void 0:Xt.scrollWidth)||0,clientWidth:((Er=N.value)===null||Er===void 0?void 0:Er.clientWidth)||0}})}),lm(()=>{il(()=>{var Xt,Er;const on=((Xt=N.value)===null||Xt===void 0?void 0:Xt.scrollWidth)||0,wn=((Er=N.value)===null||Er===void 0?void 0:Er.clientWidth)||0;(P.value.scrollWidth!==on||P.value.clientWidth!==wn)&&(P.value={scrollWidth:on,clientWidth:wn})})}),ks(()=>{e.internalHooks===Zye&&e.internalRefs&&e.onUpdateInternalRefs({body:N.value?N.value.$el||N.value:null})},{flush:"post"});const bt=vt(()=>e.tableLayout?e.tableLayout:ue.value?e.scroll.x==="max-content"?"auto":"fixed":Le.value||Pe.value.isSticky||E.value.some(Xt=>{let{ellipsis:Er}=Xt;return Er})?"fixed":"auto"),qt=()=>{var Xt;return o.value?null:((Xt=n.emptyText)===null||Xt===void 0?void 0:Xt.call(n))||"No Data"};mWt(uc($e($e({},BM(FTe(e,"prefixCls","direction","transformCellText"))),{getComponent:l,scrollbarSize:mt,fixedInfoList:vt(()=>E.value.map((Xt,Er)=>Ixe(Er,Er,E.value,be.value,e.direction))),isSticky:vt(()=>Pe.value.isSticky),summaryCollect:me}))),NWt(uc($e($e({},BM(FTe(e,"rowClassName","expandedRowClassName","expandRowByClick","expandedRowRender","expandIconColumnIndex","indentSize"))),{columns:C,flattenColumns:E,tableLayout:bt,expandIcon:c,expandableType:f,onTriggerExpand:m}))),UWt({onColumnResize:tt}),RWt({componentWidth:b,fixHeader:Le,fixColumn:ue,horizonScroll:Ne});const cr=()=>De(jWt,{data:a.value,measureColumnWidth:Le.value||Ne.value||Pe.value.isSticky,expandedKeys:p.value,rowExpandable:e.rowExpandable,getRowKey:u.value,customRow:e.customRow,childrenColumnName:A.value},{emptyNode:qt}),Gt=()=>De(lct,{colWidths:E.value.map(Xt=>{let{width:Er}=Xt;return Er}),columns:E.value},null);return()=>{var Xt;const{prefixCls:Er,scroll:on,tableLayout:wn,direction:jr,title:ur=n.title,footer:Hr=n.footer,id:Lr,showHeader:Un,customHeaderRow:en}=e,{isSticky:Kn,offsetHeader:qr,offsetSummary:Gi,offsetScroll:za,stickyClassName:xa,container:Wa}=Pe.value,$i=l(["table"],"table"),Ji=l(["body"]),ci=(Xt=n.summary)===null||Xt===void 0?void 0:Xt.call(n,{pageData:a.value});let Ni=()=>null;const oo={colWidths:de.value,columCount:E.value.length,stickyOffsets:be.value,customHeaderRow:en,fixHeader:Le.value,scroll:on};if(Le.value||Kn){let Me=()=>null;typeof Ji=="function"?(Me=()=>Ji(a.value,{scrollbarSize:mt.value,ref:N,onScroll:dt}),oo.colWidths=E.value.map((Ge,ct)=>{let{width:Dt}=Ge;const Pt=ct===C.value.length-1?Dt-mt.value:Dt;return typeof Pt=="number"&&!Number.isNaN(Pt)?Pt:0})):Me=()=>De("div",{style:$e($e({},Se.value),et.value),onScroll:dt,ref:N,class:Vn(`${Er}-body`)},[De($i,{style:$e($e({},nt.value),{tableLayout:bt.value})},{default:()=>[Gt(),cr(),!Ye.value&&ci&&De(lG,{stickyOffsets:be.value,flattenColumns:E.value},{default:()=>[ci]})]})]);const pe=$e($e($e({noData:!a.value.length,maxContentScroll:Ne.value&&on.x==="max-content"},oo),_.value),{direction:jr,stickyClassName:xa,onScroll:dt});Ni=()=>De(ls,null,[Un!==!1&&De(DTe,Ot(Ot({},pe),{},{stickyTopOffset:qr,class:`${Er}-header`,ref:M}),{default:Ge=>De(ls,null,[De(_Te,Ge,null),Ye.value==="top"&&De(lG,Ge,{default:()=>[ci]})])}),Me(),Ye.value&&Ye.value!=="top"&&De(DTe,Ot(Ot({},pe),{},{stickyBottomOffset:Gi,class:`${Er}-summary`,ref:j}),{default:Ge=>De(lG,Ge,{default:()=>[ci]})}),Kn&&N.value&&De(iYt,{ref:Ke,offsetScroll:za,scrollBodyRef:N,onScroll:dt,container:Wa,scrollBodySizeInfo:P.value},null)])}else Ni=()=>De("div",{style:$e($e({},Se.value),et.value),class:Vn(`${Er}-content`),onScroll:dt,ref:N},[De($i,{style:$e($e({},nt.value),{tableLayout:bt.value})},{default:()=>[Gt(),Un!==!1&&De(_Te,Ot(Ot({},oo),_.value),null),cr(),ci&&De(lG,{stickyOffsets:be.value,flattenColumns:E.value},{default:()=>[ci]})]})]);const Ft=H5(r,{aria:!0,data:!0}),ze=()=>De("div",Ot(Ot({},Ft),{},{class:Vn(Er,{[`${Er}-rtl`]:jr==="rtl",[`${Er}-ping-left`]:z.value,[`${Er}-ping-right`]:Y.value,[`${Er}-layout-fixed`]:wn==="fixed",[`${Er}-fixed-header`]:Le.value,[`${Er}-fixed-column`]:ue.value,[`${Er}-scroll-horizontal`]:Ne.value,[`${Er}-has-fix-left`]:E.value[0]&&E.value[0].fixed,[`${Er}-has-fix-right`]:E.value[Ae.value-1]&&E.value[Ae.value-1].fixed==="right",[r.class]:r.class}),style:r.style,id:Lr,ref:F}),[ur&&De(Xye,{class:`${Er}-title`},{default:()=>[ur(a.value)]}),De("div",{class:`${Er}-container`},[Ni()]),Hr&&De(Xye,{class:`${Er}-footer`},{default:()=>[Hr(a.value)]})]);return Ne.value?De(YE,{onResize:We},{default:ze}):ze()}}});function cYt(){const e=$e({},arguments.length<=0?void 0:arguments[0]);for(let t=1;t{const i=r[n];i!==void 0&&(e[n]=i)})}return e}const ebe=10;function AYt(e,t){const r={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(i=>{const a=e[i];typeof a!="function"&&(r[i]=a)}),r}function fYt(e,t,r){const n=vt(()=>t.value&&typeof t.value=="object"?t.value:{}),i=vt(()=>n.value.total||0),[a,o]=Hu(()=>({current:"defaultCurrent"in n.value?n.value.defaultCurrent:1,pageSize:"defaultPageSize"in n.value?n.value.defaultPageSize:ebe})),s=vt(()=>{const c=cYt(a.value,n.value,{total:i.value>0?i.value:e.value}),A=Math.ceil((i.value||e.value)/c.pageSize);return c.current>A&&(c.current=A||1),c}),l=(c,A)=>{t.value!==!1&&o({current:c??1,pageSize:A||s.value.pageSize})},u=(c,A)=>{var f,h;t.value&&((h=(f=n.value).onChange)===null||h===void 0||h.call(f,c,A)),l(c,A),r(c,A||s.value.pageSize)};return[vt(()=>t.value===!1?{}:$e($e({},s.value),{onChange:u})),l]}function hYt(e,t,r){const n=sn({});di([e,t,r],()=>{const a=new Map,o=r.value,s=t.value;function l(u){u.forEach((c,A)=>{const f=o(c,A);a.set(f,c),c&&typeof c=="object"&&s in c&&l(c[s]||[])})}l(e.value),n.value={kvMap:a}},{deep:!0,immediate:!0});function i(a){return n.value.kvMap.get(a)}return[i]}const cE={},tbe="SELECT_ALL",rbe="SELECT_INVERT",nbe="SELECT_NONE",dYt=[];function cct(e,t){let r=[];return(t||[]).forEach(n=>{r.push(n),n&&typeof n=="object"&&e in n&&(r=[...r,...cct(e,n[e])])}),r}function gYt(e,t){const r=vt(()=>{const j=e.value||{},{checkStrictly:z=!0}=j;return $e($e({},j),{checkStrictly:z})}),[n,i]=Vg(r.value.selectedRowKeys||r.value.defaultSelectedRowKeys||dYt,{value:vt(()=>r.value.selectedRowKeys)}),a=sn(new Map),o=j=>{if(r.value.preserveSelectedRowKeys){const z=new Map;j.forEach(W=>{let Y=t.getRecordByKey(W);!Y&&a.value.has(W)&&(Y=a.value.get(W)),z.set(W,Y)}),a.value=z}};ks(()=>{o(n.value)});const s=vt(()=>r.value.checkStrictly?null:KBe(t.data.value,{externalGetKey:t.getRowKey.value,childrenPropName:t.childrenColumnName.value}).keyEntities),l=vt(()=>cct(t.childrenColumnName.value,t.pageData.value)),u=vt(()=>{const j=new Map,z=t.getRowKey.value,W=r.value.getCheckboxProps;return l.value.forEach((Y,ee)=>{const q=z(Y,ee),ae=(W?W(Y):null)||{};j.set(q,ae)}),j}),{maxLevel:c,levelEntities:A}=Nlt(s),f=j=>{var z;return!!(!((z=u.value.get(t.getRowKey.value(j)))===null||z===void 0)&&z.disabled)},h=vt(()=>{if(r.value.checkStrictly)return[n.value||[],[]];const{checkedKeys:j,halfCheckedKeys:z}=h9(n.value,!0,s.value,c.value,A.value,f);return[j||[],z]}),g=vt(()=>h.value[0]),p=vt(()=>h.value[1]),m=vt(()=>{const j=r.value.type==="radio"?g.value.slice(0,1):g.value;return new Set(j)}),b=vt(()=>r.value.type==="radio"?new Set:new Set(p.value)),[C,E]=Hu(null),_=j=>{let z,W;o(j);const{preserveSelectedRowKeys:Y,onChange:ee}=r.value,{getRecordByKey:q}=t;Y?(z=j,W=j.map(ae=>a.value.get(ae))):(z=[],W=[],j.forEach(ae=>{const se=q(ae);se!==void 0&&(z.push(ae),W.push(se))})),i(z),ee==null||ee(z,W)},F=(j,z,W,Y)=>{const{onSelect:ee}=r.value,{getRecordByKey:q}=t;if(ee){const ae=W.map(se=>q(se));ee(q(j),z,ae,Y)}_(W)},M=vt(()=>{const{onSelectInvert:j,onSelectNone:z,selections:W,hideSelectAll:Y}=r.value,{data:ee,pageData:q,getRowKey:ae,locale:se}=t;return!W||Y?null:(W===!0?[tbe,rbe,nbe]:W).map(Ae=>Ae===tbe?{key:"all",text:se.value.selectionAll,onSelect(){_(ee.value.map((be,Le)=>ae.value(be,Le)).filter(be=>{const Le=u.value.get(be);return!(Le!=null&&Le.disabled)||m.value.has(be)}))}}:Ae===rbe?{key:"invert",text:se.value.selectInvert,onSelect(){const be=new Set(m.value);q.value.forEach((Ne,ue)=>{const Ke=ae.value(Ne,ue),Pe=u.value.get(Ke);Pe!=null&&Pe.disabled||(be.has(Ke)?be.delete(Ke):be.add(Ke))});const Le=Array.from(be);j&&(BA(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),j(Le)),_(Le)}}:Ae===nbe?{key:"none",text:se.value.selectNone,onSelect(){z==null||z(),_(Array.from(m.value).filter(be=>{const Le=u.value.get(be);return Le==null?void 0:Le.disabled}))}}:Ae)}),N=vt(()=>l.value.length);return[j=>{var z;const{onSelectAll:W,onSelectMultiple:Y,columnWidth:ee,type:q,fixed:ae,renderCell:se,hideSelectAll:de,checkStrictly:Ae}=r.value,{prefixCls:be,getRecordByKey:Le,getRowKey:Ne,expandType:ue,getPopupContainer:Ke}=t;if(!e.value)return j.filter(Be=>Be!==cE);let Pe=j.slice();const je=new Set(m.value),Ye=l.value.map(Ne.value).filter(Be=>!u.value.get(Be).disabled),me=Ye.every(Be=>je.has(Be)),Se=Ye.some(Be=>je.has(Be)),et=()=>{const Be=[];me?Ye.forEach(mt=>{je.delete(mt),Be.push(mt)}):Ye.forEach(mt=>{je.has(mt)||(je.add(mt),Be.push(mt))});const We=Array.from(je);W==null||W(!me,We.map(mt=>Le(mt)),Be.map(mt=>Le(mt))),_(We)};let nt;if(q!=="radio"){let Be;if(M.value){const qt=De(i1,{getPopupContainer:Ke.value},{default:()=>[M.value.map((cr,Gt)=>{const{key:Xt,text:Er,onSelect:on}=cr;return De(i1.Item,{key:Xt||Gt,onClick:()=>{on==null||on(Ye)}},{default:()=>[Er]})})]});Be=De("div",{class:`${be.value}-selection-extra`},[De(FE,{overlay:qt,getPopupContainer:Ke.value},{default:()=>[De("span",null,[De(j7,null,null)])]})])}const We=l.value.map((qt,cr)=>{const Gt=Ne.value(qt,cr),Xt=u.value.get(Gt)||{};return $e({checked:je.has(Gt)},Xt)}).filter(qt=>{let{disabled:cr}=qt;return cr}),mt=!!We.length&&We.length===N.value,Tt=mt&&We.every(qt=>{let{checked:cr}=qt;return cr}),bt=mt&&We.some(qt=>{let{checked:cr}=qt;return cr});nt=!de&&De("div",{class:`${be.value}-selection`},[De(RE,{checked:mt?Tt:!!N.value&&me,indeterminate:mt?!Tt&&bt:!me&&Se,onChange:et,disabled:N.value===0||mt,"aria-label":Be?"Custom selection":"Select all",skipGroup:!0},null),Be])}let tt;q==="radio"?tt=Be=>{let{record:We,index:mt}=Be;const Tt=Ne.value(We,mt),bt=je.has(Tt);return{node:De(Gv,Ot(Ot({},u.value.get(Tt)),{},{checked:bt,onClick:qt=>qt.stopPropagation(),onChange:qt=>{je.has(Tt)||F(Tt,!0,[Tt],qt.nativeEvent)}}),null),checked:bt}}:tt=Be=>{let{record:We,index:mt}=Be;var Tt;const bt=Ne.value(We,mt),qt=je.has(bt),cr=b.value.has(bt),Gt=u.value.get(bt);let Xt;return ue.value==="nest"?(Xt=cr,BA(typeof(Gt==null?void 0:Gt.indeterminate)!="boolean","Table","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):Xt=(Tt=Gt==null?void 0:Gt.indeterminate)!==null&&Tt!==void 0?Tt:cr,{node:De(RE,Ot(Ot({},Gt),{},{indeterminate:Xt,checked:qt,skipGroup:!0,onClick:Er=>Er.stopPropagation(),onChange:Er=>{let{nativeEvent:on}=Er;const{shiftKey:wn}=on;let jr=-1,ur=-1;if(wn&&Ae){const Hr=new Set([C.value,bt]);Ye.some((Lr,Un)=>{if(Hr.has(Lr))if(jr===-1)jr=Un;else return ur=Un,!0;return!1})}if(ur!==-1&&jr!==ur&&Ae){const Hr=Ye.slice(jr,ur+1),Lr=[];qt?Hr.forEach(en=>{je.has(en)&&(Lr.push(en),je.delete(en))}):Hr.forEach(en=>{je.has(en)||(Lr.push(en),je.add(en))});const Un=Array.from(je);Y==null||Y(!qt,Un.map(en=>Le(en)),Lr.map(en=>Le(en))),_(Un)}else{const Hr=g.value;if(Ae){const Lr=qt?Sw(Hr,bt):oE(Hr,bt);F(bt,!qt,Lr,on)}else{const Lr=h9([...Hr,bt],!0,s.value,c.value,A.value,f),{checkedKeys:Un,halfCheckedKeys:en}=Lr;let Kn=Un;if(qt){const qr=new Set(Un);qr.delete(bt),Kn=h9(Array.from(qr),{checked:!1,halfCheckedKeys:en},s.value,c.value,A.value,f).checkedKeys}F(bt,!qt,Kn,on)}}E(bt)}}),null),checked:qt}};const ft=Be=>{let{record:We,index:mt}=Be;const{node:Tt,checked:bt}=tt({record:We,index:mt});return se?se(bt,We,mt,Tt):Tt};if(!Pe.includes(cE))if(Pe.findIndex(Be=>{var We;return((We=Be[p9])===null||We===void 0?void 0:We.columnType)==="EXPAND_COLUMN"})===0){const[Be,...We]=Pe;Pe=[Be,cE,...We]}else Pe=[cE,...Pe];const st=Pe.indexOf(cE);Pe=Pe.filter((Be,We)=>Be!==cE||We===st);const Re=Pe[st-1],dt=Pe[st+1];let Oe=ae;Oe===void 0&&((dt==null?void 0:dt.fixed)!==void 0?Oe=dt.fixed:(Re==null?void 0:Re.fixed)!==void 0&&(Oe=Re.fixed)),Oe&&Re&&((z=Re[p9])===null||z===void 0?void 0:z.columnType)==="EXPAND_COLUMN"&&Re.fixed===void 0&&(Re.fixed=Oe);const Ce={fixed:Oe,width:ee,className:`${be.value}-selection-column`,title:r.value.columnTitle||nt,customRender:ft,[p9]:{class:`${be.value}-selection-col`}};return Pe.map(Be=>Be===cE?Ce:Be)},m]}var pYt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i0&&arguments[0]!==void 0?arguments[0]:[];const t=sf(e),r=[];return t.forEach(n=>{var i,a,o,s;if(!n)return;const l=n.key,u=((i=n.props)===null||i===void 0?void 0:i.style)||{},c=((a=n.props)===null||a===void 0?void 0:a.class)||"",A=n.props||{};for(const[m,b]of Object.entries(A))A[pL(m)]=b;const f=n.children||{},{default:h}=f,g=pYt(f,["default"]),p=$e($e($e({},g),A),{style:u,class:c});if(l&&(p.key=l),!((o=n.type)===null||o===void 0)&&o.__ANT_TABLE_COLUMN_GROUP)p.children=Act(typeof h=="function"?h():h);else{const m=(s=n.children)===null||s===void 0?void 0:s.default;p.customRender=p.customRender||m}r.push(p)}),r}const FK="ascend",voe="descend";function TW(e){return typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1}function RTe(e){return typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1}function vYt(e,t){return t?e[e.indexOf(t)+1]:e[0]}function ibe(e,t,r){let n=[];function i(a,o){n.push({column:a,key:E6(a,o),multiplePriority:TW(a),sortOrder:a.sortOrder})}return(e||[]).forEach((a,o)=>{const s=DL(o,r);a.children?("sortOrder"in a&&i(a,s),n=[...n,...ibe(a.children,t,s)]):a.sorter&&("sortOrder"in a?i(a,s):t&&a.defaultSortOrder&&n.push({column:a,key:E6(a,s),multiplePriority:TW(a),sortOrder:a.defaultSortOrder}))}),n}function fct(e,t,r,n,i,a,o,s){return(t||[]).map((l,u)=>{const c=DL(u,s);let A=l;if(A.sorter){const f=A.sortDirections||i,h=A.showSorterTooltip===void 0?o:A.showSorterTooltip,g=E6(A,c),p=r.find(j=>{let{key:z}=j;return z===g}),m=p?p.sortOrder:null,b=vYt(f,m),C=f.includes(FK)&&De(exe,{class:Vn(`${e}-column-sorter-up`,{active:m===FK}),role:"presentation"},null),E=f.includes(voe)&&De(ZBe,{role:"presentation",class:Vn(`${e}-column-sorter-down`,{active:m===voe})},null),{cancelSort:_,triggerAsc:F,triggerDesc:M}=a||{};let N=_;b===voe?N=M:b===FK&&(N=F);const P=typeof h=="object"?h:{title:N};A=$e($e({},A),{className:Vn(A.className,{[`${e}-column-sort`]:m}),title:j=>{const z=De("div",{class:`${e}-column-sorters`},[De("span",{class:`${e}-column-title`},[Exe(l.title,j)]),De("span",{class:Vn(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(C&&E)})},[De("span",{class:`${e}-column-sorter-inner`},[C,E])])]);return h?De(BL,P,{default:()=>[z]}):z},customHeaderCell:j=>{const z=l.customHeaderCell&&l.customHeaderCell(j)||{},W=z.onClick,Y=z.onKeydown;return z.onClick=ee=>{n({column:l,key:g,sortOrder:b,multiplePriority:TW(l)}),W&&W(ee)},z.onKeydown=ee=>{ee.keyCode===yi.ENTER&&(n({column:l,key:g,sortOrder:b,multiplePriority:TW(l)}),Y==null||Y(ee))},m&&(z["aria-sort"]=m==="ascend"?"ascending":"descending"),z.class=Vn(z.class,`${e}-column-has-sorters`),z.tabindex=0,z}})}return"children"in A&&(A=$e($e({},A),{children:fct(e,A.children,r,n,i,a,o,c)})),A})}function MTe(e){const{column:t,sortOrder:r}=e;return{column:t,order:r,field:t.dataIndex,columnKey:t.key}}function OTe(e){const t=e.filter(r=>{let{sortOrder:n}=r;return n}).map(MTe);return t.length===0&&e.length?$e($e({},MTe(e[e.length-1])),{column:void 0}):t.length<=1?t[0]||{}:t}function abe(e,t,r){const n=t.slice().sort((o,s)=>s.multiplePriority-o.multiplePriority),i=e.slice(),a=n.filter(o=>{let{column:{sorter:s},sortOrder:l}=o;return RTe(s)&&l});return a.length?i.sort((o,s)=>{for(let l=0;l{const s=o[r];return s?$e($e({},o),{[r]:abe(s,t,r)}):o}):i}function mYt(e){let{prefixCls:t,mergedColumns:r,onSorterChange:n,sortDirections:i,tableLocale:a,showSorterTooltip:o}=e;const[s,l]=Hu(ibe(r.value,!0)),u=vt(()=>{let g=!0;const p=ibe(r.value,!1);if(!p.length)return s.value;const m=[];function b(E){g?m.push(E):m.push($e($e({},E),{sortOrder:null}))}let C=null;return p.forEach(E=>{C===null?(b(E),E.sortOrder&&(E.multiplePriority===!1?g=!1:C=!0)):(C&&E.multiplePriority!==!1||(g=!1),b(E))}),m}),c=vt(()=>{const g=u.value.map(p=>{let{column:m,sortOrder:b}=p;return{column:m,order:b}});return{sortColumns:g,sortColumn:g[0]&&g[0].column,sortOrder:g[0]&&g[0].order}});function A(g){let p;g.multiplePriority===!1||!u.value.length||u.value[0].multiplePriority===!1?p=[g]:p=[...u.value.filter(m=>{let{key:b}=m;return b!==g.key}),g],l(p),n(OTe(p),p)}const f=g=>fct(t.value,g,u.value,A,i.value,a.value,o.value),h=vt(()=>OTe(u.value));return[f,u,c,h]}const yYt=e=>{const{keyCode:t}=e;t===yi.ENTER&&e.stopPropagation()},bYt=(e,t)=>{let{slots:r}=t;var n;return De("div",{onClick:i=>i.stopPropagation(),onKeydown:yYt},[(n=r.default)===null||n===void 0?void 0:n.call(r)])},NTe=$n({compatConfig:{MODE:3},name:"FilterSearch",inheritAttrs:!1,props:{value:Us(),onChange:pi(),filterSearch:$l([Boolean,Function]),tablePrefixCls:Us(),locale:To()},setup(e){return()=>{const{value:t,onChange:r,filterSearch:n,tablePrefixCls:i,locale:a}=e;return n?De("div",{class:`${i}-filter-dropdown-search`},[De(pg,{placeholder:a.filterSearchPlaceholder,onChange:r,value:t,htmlSize:1,class:`${i}-filter-dropdown-search-input`},{prefix:()=>De(wL,null,null)})]):null}}});var LTe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);ie.motion?e.motion:xJ()),l=(u,c)=>{var A,f,h,g;c==="appear"?(f=(A=s.value)===null||A===void 0?void 0:A.onAfterEnter)===null||f===void 0||f.call(A,u):c==="leave"&&((g=(h=s.value)===null||h===void 0?void 0:h.onAfterLeave)===null||g===void 0||g.call(h,u)),o.value||e.onMotionEnd(),o.value=!0};return di(()=>e.motionNodes,()=>{e.motionNodes&&e.motionType==="hide"&&i.value&&il(()=>{i.value=!1})},{immediate:!0,flush:"post"}),Is(()=>{e.motionNodes&&e.onMotionStart()}),el(()=>{e.motionNodes&&l()}),()=>{const{motion:u,motionNodes:c,motionType:A,active:f,eventKey:h}=e,g=LTe(e,["motion","motionNodes","motionType","active","eventKey"]);return c?De(nm,Ot(Ot({},s.value),{},{appear:A==="show",onAfterAppear:p=>l(p,"appear"),onAfterLeave:p=>l(p,"leave")}),{default:()=>[rp(De("div",{class:`${a.value.prefixCls}-treenode-motion`},[c.map(p=>{const m=LTe(p.data,[]),{title:b,key:C,isStart:E,isEnd:_}=p;return delete m.children,De(kye,Ot(Ot({},m),{},{title:b,active:f,data:p.data,key:C,eventKey:C,isStart:E,isEnd:_}),n)})]),[[_y,i.value]])]}):De(kye,Ot(Ot({class:r.class,style:r.style},g),{},{active:f,eventKey:h}),n)}}});function CYt(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const r=e.length,n=t.length;if(Math.abs(r-n)!==1)return{add:!1,key:null};function i(a,o){const s=new Map;a.forEach(u=>{s.set(u,!0)});const l=o.filter(u=>!s.has(u));return l.length===1?l[0]:null}return ro.key===r),i=e[n+1],a=t.findIndex(o=>o.key===r);if(i){const o=t.findIndex(s=>s.key===i.key);return t.slice(a+1,o)}return t.slice(a+1)}var UTe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{},B6=`RC_TREE_MOTION_${Math.random()}`,obe={key:B6},hct={key:B6,level:0,index:0,pos:"0",node:obe,nodes:[obe]},jTe={parent:null,children:[],pos:hct.pos,data:obe,title:null,key:B6,isStart:[],isEnd:[]};function GTe(e,t,r,n){return t===!1||!r?e:e.slice(0,Math.ceil(r/n)+1)}function $Te(e){const{key:t,pos:r}=e;return QL(t,r)}function EYt(e){let t=String(e.key),r=e;for(;r.parent;)r=r.parent,t=`${r.key} > ${t}`;return t}const BYt=$n({compatConfig:{MODE:3},name:"NodeList",inheritAttrs:!1,props:xHt,setup(e,t){let{expose:r,attrs:n}=t;const i=Hn(),a=Hn(),{expandedKeys:o,flattenNodes:s}=Dlt();r({scrollTo:p=>{i.value.scrollTo(p)},getIndentWidth:()=>a.value.offsetWidth});const l=sn(s.value),u=sn([]),c=Hn(null);function A(){l.value=s.value,u.value=[],c.value=null,e.onListChangeEnd()}const f=$Be();di([()=>o.value.slice(),s],(p,m)=>{let[b,C]=p,[E,_]=m;const F=CYt(E,b);if(F.key!==null){const{virtual:M,height:N,itemHeight:P}=e;if(F.add){const j=_.findIndex(Y=>{let{key:ee}=Y;return ee===F.key}),z=GTe(PTe(_,C,F.key),M,N,P),W=_.slice();W.splice(j+1,0,jTe),l.value=W,u.value=z,c.value="show"}else{const j=C.findIndex(Y=>{let{key:ee}=Y;return ee===F.key}),z=GTe(PTe(C,_,F.key),M,N,P),W=C.slice();W.splice(j+1,0,jTe),l.value=W,u.value=z,c.value="hide"}}else _!==C&&(l.value=C)}),di(()=>f.value.dragging,p=>{p||A()});const h=vt(()=>e.motion===void 0?l.value:s.value),g=()=>{e.onActiveChange(null)};return()=>{const p=$e($e({},e),n),{prefixCls:m,selectable:b,checkable:C,disabled:E,motion:_,height:F,itemHeight:M,virtual:N,focusable:P,activeItem:j,focused:z,tabindex:W,onKeydown:Y,onFocus:ee,onBlur:q,onListChangeStart:ae,onListChangeEnd:se}=p,de=UTe(p,["prefixCls","selectable","checkable","disabled","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabindex","onKeydown","onFocus","onBlur","onListChangeStart","onListChangeEnd"]);return De(ls,null,[z&&j&&De("span",{style:HTe,"aria-live":"assertive"},[EYt(j)]),De("div",null,[De("input",{style:HTe,disabled:P===!1||E,tabindex:P!==!1?W:null,onKeydown:Y,onFocus:ee,onBlur:q,value:"",onChange:IYt,"aria-label":"for screen reader"},null)]),De("div",{class:`${m}-treenode`,"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},[De("div",{class:`${m}-indent`},[De("div",{ref:a,class:`${m}-indent-unit`},null)])]),De(Fot,Ot(Ot({},Cc(de,["onActiveChange"])),{},{data:h.value,itemKey:$Te,height:F,fullHeight:!1,virtual:N,itemHeight:M,prefixCls:`${m}-list`,ref:i,onVisibleChange:(Ae,be)=>{const Le=new Set(Ae);be.filter(ue=>!Le.has(ue)).some(ue=>$Te(ue)===B6)&&A()}}),{default:Ae=>{const{pos:be}=Ae,Le=UTe(Ae.data,[]),{title:Ne,key:ue,isStart:Ke,isEnd:Pe}=Ae,je=QL(ue,be);return delete Le.key,delete Le.children,De(wYt,Ot(Ot({},Le),{},{eventKey:je,title:Ne,active:!!j&&ue===j.key,data:Ae.data,isStart:Ke,isEnd:Pe,motion:_,motionNodes:ue===B6?u.value:null,motionType:c.value,onMotionStart:ae,onMotionEnd:A,onMousemove:g}),null)}})])}}});function xYt(e){let{dropPosition:t,dropLevelOffset:r,indent:n}=e;const i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:"2px"};switch(t){case-1:i.top=0,i.left=`${-r*n}px`;break;case 1:i.bottom=0,i.left=`${-r*n}px`;break;case 0:i.bottom=0,i.left=`${n}`;break}return De("div",{style:i},null)}const SYt=10,kYt=$n({compatConfig:{MODE:3},name:"Tree",inheritAttrs:!1,props:ju(Rlt(),{prefixCls:"vc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,expandAction:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:xYt,allowDrop:()=>!0}),setup(e,t){let{attrs:r,slots:n,expose:i}=t;const a=sn(!1);let o={};const s=sn(),l=sn([]),u=sn([]),c=sn([]),A=sn([]),f=sn([]),h=sn([]),g={},p=uc({draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null}),m=sn([]);di([()=>e.treeData,()=>e.children],()=>{m.value=e.treeData!==void 0?ll(e.treeData).slice():_ye(ll(e.children))},{immediate:!0,deep:!0});const b=sn({}),C=sn(!1),E=sn(null),_=sn(!1),F=vt(()=>FJ(e.fieldNames)),M=sn();let N=null,P=null,j=null;const z=vt(()=>({expandedKeysSet:W.value,selectedKeysSet:Y.value,loadedKeysSet:ee.value,loadingKeysSet:q.value,checkedKeysSet:ae.value,halfCheckedKeysSet:se.value,dragOverNodeKey:p.dragOverNodeKey,dropPosition:p.dropPosition,keyEntities:b.value})),W=vt(()=>new Set(h.value)),Y=vt(()=>new Set(l.value)),ee=vt(()=>new Set(A.value)),q=vt(()=>new Set(f.value)),ae=vt(()=>new Set(u.value)),se=vt(()=>new Set(c.value));ks(()=>{if(m.value){const ur=KBe(m.value,{fieldNames:F.value});b.value=$e({[B6]:hct},ur.keyEntities)}});let de=!1;di([()=>e.expandedKeys,()=>e.autoExpandParent,b],(ur,Hr)=>{let[Lr,Un]=ur,[en,Kn]=Hr,qr=h.value;if(e.expandedKeys!==void 0||de&&Un!==Kn)qr=e.autoExpandParent||!de&&e.defaultExpandParent?Qye(e.expandedKeys,b.value):e.expandedKeys;else if(!de&&e.defaultExpandAll){const Gi=$e({},b.value);delete Gi[B6],qr=Object.keys(Gi).map(za=>Gi[za].key)}else!de&&e.defaultExpandedKeys&&(qr=e.autoExpandParent||e.defaultExpandParent?Qye(e.defaultExpandedKeys,b.value):e.defaultExpandedKeys);qr&&(h.value=qr),de=!0},{immediate:!0});const Ae=sn([]);ks(()=>{Ae.value=RHt(m.value,h.value,F.value)}),ks(()=>{e.selectable&&(e.selectedKeys!==void 0?l.value=p7e(e.selectedKeys,e):!de&&e.defaultSelectedKeys&&(l.value=p7e(e.defaultSelectedKeys,e)))});const{maxLevel:be,levelEntities:Le}=Nlt(b);ks(()=>{if(e.checkable){let ur;if(e.checkedKeys!==void 0?ur=Xae(e.checkedKeys)||{}:!de&&e.defaultCheckedKeys?ur=Xae(e.defaultCheckedKeys)||{}:m.value&&(ur=Xae(e.checkedKeys)||{checkedKeys:u.value,halfCheckedKeys:c.value}),ur){let{checkedKeys:Hr=[],halfCheckedKeys:Lr=[]}=ur;e.checkStrictly||({checkedKeys:Hr,halfCheckedKeys:Lr}=h9(Hr,!0,b.value,be.value,Le.value)),u.value=Hr,c.value=Lr}}}),ks(()=>{e.loadedKeys&&(A.value=e.loadedKeys)});const Ne=()=>{$e(p,{dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})},ue=ur=>{M.value.scrollTo(ur)};di(()=>e.activeKey,()=>{e.activeKey!==void 0&&(E.value=e.activeKey)},{immediate:!0}),di(E,ur=>{il(()=>{ur!==null&&ue({key:ur})})},{immediate:!0,flush:"post"});const Ke=ur=>{e.expandedKeys===void 0&&(h.value=ur)},Pe=()=>{p.draggingNodeKey!==null&&$e(p,{draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),N=null,j=null},je=(ur,Hr)=>{const{onDragend:Lr}=e;p.dragOverNodeKey=null,Pe(),Lr==null||Lr({event:ur,node:Hr.eventData}),P=null},Ye=ur=>{je(ur,null),window.removeEventListener("dragend",Ye)},me=(ur,Hr)=>{const{onDragstart:Lr}=e,{eventKey:Un,eventData:en}=Hr;P=Hr,N={x:ur.clientX,y:ur.clientY};const Kn=Sw(h.value,Un);p.draggingNodeKey=Un,p.dragChildrenKeys=_Ht(Un,b.value),s.value=M.value.getIndentWidth(),Ke(Kn),window.addEventListener("dragend",Ye),Lr&&Lr({event:ur,node:en})},Se=(ur,Hr)=>{const{onDragenter:Lr,onExpand:Un,allowDrop:en,direction:Kn}=e,{pos:qr,eventKey:Gi}=Hr;if(j!==Gi&&(j=Gi),!P){Ne();return}const{dropPosition:za,dropLevelOffset:xa,dropTargetKey:Wa,dropContainerKey:$i,dropTargetPos:Ji,dropAllowed:ci,dragOverNodeKey:Ni}=g7e(ur,P,Hr,s.value,N,en,Ae.value,b.value,W.value,Kn);if(p.dragChildrenKeys.indexOf(Wa)!==-1||!ci){Ne();return}if(o||(o={}),Object.keys(o).forEach(oo=>{clearTimeout(o[oo])}),P.eventKey!==Hr.eventKey&&(o[qr]=window.setTimeout(()=>{if(p.draggingNodeKey===null)return;let oo=h.value.slice();const Ft=b.value[Hr.eventKey];Ft&&(Ft.children||[]).length&&(oo=oE(h.value,Hr.eventKey)),Ke(oo),Un&&Un(oo,{node:Hr.eventData,expanded:!0,nativeEvent:ur})},800)),P.eventKey===Wa&&xa===0){Ne();return}$e(p,{dragOverNodeKey:Ni,dropPosition:za,dropLevelOffset:xa,dropTargetKey:Wa,dropContainerKey:$i,dropTargetPos:Ji,dropAllowed:ci}),Lr&&Lr({event:ur,node:Hr.eventData,expandedKeys:h.value})},et=(ur,Hr)=>{const{onDragover:Lr,allowDrop:Un,direction:en}=e;if(!P)return;const{dropPosition:Kn,dropLevelOffset:qr,dropTargetKey:Gi,dropContainerKey:za,dropAllowed:xa,dropTargetPos:Wa,dragOverNodeKey:$i}=g7e(ur,P,Hr,s.value,N,Un,Ae.value,b.value,W.value,en);p.dragChildrenKeys.indexOf(Gi)!==-1||!xa||(P.eventKey===Gi&&qr===0?p.dropPosition===null&&p.dropLevelOffset===null&&p.dropTargetKey===null&&p.dropContainerKey===null&&p.dropTargetPos===null&&p.dropAllowed===!1&&p.dragOverNodeKey===null||Ne():Kn===p.dropPosition&&qr===p.dropLevelOffset&&Gi===p.dropTargetKey&&za===p.dropContainerKey&&Wa===p.dropTargetPos&&xa===p.dropAllowed&&$i===p.dragOverNodeKey||$e(p,{dropPosition:Kn,dropLevelOffset:qr,dropTargetKey:Gi,dropContainerKey:za,dropTargetPos:Wa,dropAllowed:xa,dragOverNodeKey:$i}),Lr&&Lr({event:ur,node:Hr.eventData}))},nt=(ur,Hr)=>{j===Hr.eventKey&&!ur.currentTarget.contains(ur.relatedTarget)&&(Ne(),j=null);const{onDragleave:Lr}=e;Lr&&Lr({event:ur,node:Hr.eventData})},tt=function(ur,Hr){let Lr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var Un;const{dragChildrenKeys:en,dropPosition:Kn,dropTargetKey:qr,dropTargetPos:Gi,dropAllowed:za}=p;if(!za)return;const{onDrop:xa}=e;if(p.dragOverNodeKey=null,Pe(),qr===null)return;const Wa=$e($e({},xK(qr,ll(z.value))),{active:((Un=Er.value)===null||Un===void 0?void 0:Un.key)===qr,data:b.value[qr].node});en.indexOf(qr);const $i=zBe(Gi),Ji={event:ur,node:SK(Wa),dragNode:P?P.eventData:null,dragNodesKeys:[P.eventKey].concat(en),dropToGap:Kn!==0,dropPosition:Kn+Number($i[$i.length-1])};Lr||xa==null||xa(Ji),P=null},ft=(ur,Hr)=>{const{expanded:Lr,key:Un}=Hr,en=Ae.value.filter(qr=>qr.key===Un)[0],Kn=SK($e($e({},xK(Un,z.value)),{data:en.data}));Ke(Lr?Sw(h.value,Un):oE(h.value,Un)),qt(ur,Kn)},st=(ur,Hr)=>{const{onClick:Lr,expandAction:Un}=e;Un==="click"&&ft(ur,Hr),Lr&&Lr(ur,Hr)},Re=(ur,Hr)=>{const{onDblclick:Lr,expandAction:Un}=e;(Un==="doubleclick"||Un==="dblclick")&&ft(ur,Hr),Lr&&Lr(ur,Hr)},dt=(ur,Hr)=>{let Lr=l.value;const{onSelect:Un,multiple:en}=e,{selected:Kn}=Hr,qr=Hr[F.value.key],Gi=!Kn;Gi?en?Lr=oE(Lr,qr):Lr=[qr]:Lr=Sw(Lr,qr);const za=b.value,xa=Lr.map(Wa=>{const $i=za[Wa];return $i?$i.node:null}).filter(Wa=>Wa);e.selectedKeys===void 0&&(l.value=Lr),Un&&Un(Lr,{event:"select",selected:Gi,node:Hr,selectedNodes:xa,nativeEvent:ur})},Oe=(ur,Hr,Lr)=>{const{checkStrictly:Un,onCheck:en}=e,Kn=Hr[F.value.key];let qr;const Gi={event:"check",node:Hr,checked:Lr,nativeEvent:ur},za=b.value;if(Un){const xa=Lr?oE(u.value,Kn):Sw(u.value,Kn),Wa=Sw(c.value,Kn);qr={checked:xa,halfChecked:Wa},Gi.checkedNodes=xa.map($i=>za[$i]).filter($i=>$i).map($i=>$i.node),e.checkedKeys===void 0&&(u.value=xa)}else{let{checkedKeys:xa,halfCheckedKeys:Wa}=h9([...u.value,Kn],!0,za,be.value,Le.value);if(!Lr){const $i=new Set(xa);$i.delete(Kn),{checkedKeys:xa,halfCheckedKeys:Wa}=h9(Array.from($i),{checked:!1,halfCheckedKeys:Wa},za,be.value,Le.value)}qr=xa,Gi.checkedNodes=[],Gi.checkedNodesPositions=[],Gi.halfCheckedKeys=Wa,xa.forEach($i=>{const Ji=za[$i];if(!Ji)return;const{node:ci,pos:Ni}=Ji;Gi.checkedNodes.push(ci),Gi.checkedNodesPositions.push({node:ci,pos:Ni})}),e.checkedKeys===void 0&&(u.value=xa,c.value=Wa)}en&&en(qr,Gi)},Ce=ur=>{const Hr=ur[F.value.key],Lr=new Promise((Un,en)=>{const{loadData:Kn,onLoad:qr}=e;if(!Kn||ee.value.has(Hr)||q.value.has(Hr))return null;Kn(ur).then(()=>{const za=oE(A.value,Hr),xa=Sw(f.value,Hr);qr&&qr(za,{event:"load",node:ur}),e.loadedKeys===void 0&&(A.value=za),f.value=xa,Un()}).catch(za=>{const xa=Sw(f.value,Hr);if(f.value=xa,g[Hr]=(g[Hr]||0)+1,g[Hr]>=SYt){const Wa=oE(A.value,Hr);e.loadedKeys===void 0&&(A.value=Wa),Un()}en(za)}),f.value=oE(f.value,Hr)});return Lr.catch(()=>{}),Lr},Be=(ur,Hr)=>{const{onMouseenter:Lr}=e;Lr&&Lr({event:ur,node:Hr})},We=(ur,Hr)=>{const{onMouseleave:Lr}=e;Lr&&Lr({event:ur,node:Hr})},mt=(ur,Hr)=>{const{onRightClick:Lr}=e;Lr&&(ur.preventDefault(),Lr({event:ur,node:Hr}))},Tt=ur=>{const{onFocus:Hr}=e;C.value=!0,Hr&&Hr(ur)},bt=ur=>{const{onBlur:Hr}=e;C.value=!1,Xt(null),Hr&&Hr(ur)},qt=(ur,Hr)=>{let Lr=h.value;const{onExpand:Un,loadData:en}=e,{expanded:Kn}=Hr,qr=Hr[F.value.key];if(_.value)return;Lr.indexOf(qr);const Gi=!Kn;if(Gi?Lr=oE(Lr,qr):Lr=Sw(Lr,qr),Ke(Lr),Un&&Un(Lr,{node:Hr,expanded:Gi,nativeEvent:ur}),Gi&&en){const za=Ce(Hr);za&&za.then(()=>{}).catch(xa=>{const Wa=Sw(h.value,qr);Ke(Wa),Promise.reject(xa)})}},cr=()=>{_.value=!0},Gt=()=>{setTimeout(()=>{_.value=!1})},Xt=ur=>{const{onActiveChange:Hr}=e;E.value!==ur&&(e.activeKey!==void 0&&(E.value=ur),ur!==null&&ue({key:ur}),Hr&&Hr(ur))},Er=vt(()=>E.value===null?null:Ae.value.find(ur=>{let{key:Hr}=ur;return Hr===E.value})||null),on=ur=>{let Hr=Ae.value.findIndex(Un=>{let{key:en}=Un;return en===E.value});Hr===-1&&ur<0&&(Hr=Ae.value.length),Hr=(Hr+ur+Ae.value.length)%Ae.value.length;const Lr=Ae.value[Hr];if(Lr){const{key:Un}=Lr;Xt(Un)}else Xt(null)},wn=vt(()=>SK($e($e({},xK(E.value,z.value)),{data:Er.value.data,active:!0}))),jr=ur=>{const{onKeydown:Hr,checkable:Lr,selectable:Un}=e;switch(ur.which){case yi.UP:{on(-1),ur.preventDefault();break}case yi.DOWN:{on(1),ur.preventDefault();break}}const en=Er.value;if(en&&en.data){const Kn=en.data.isLeaf===!1||!!(en.data.children||[]).length,qr=wn.value;switch(ur.which){case yi.LEFT:{Kn&&W.value.has(E.value)?qt({},qr):en.parent&&Xt(en.parent.key),ur.preventDefault();break}case yi.RIGHT:{Kn&&!W.value.has(E.value)?qt({},qr):en.children&&en.children.length&&Xt(en.children[0].key),ur.preventDefault();break}case yi.ENTER:case yi.SPACE:{Lr&&!qr.disabled&&qr.checkable!==!1&&!qr.disableCheckbox?Oe({},qr,!ae.value.has(E.value)):!Lr&&Un&&!qr.disabled&&qr.selectable!==!1&&dt({},qr);break}}}Hr&&Hr(ur)};return i({onNodeExpand:qt,scrollTo:ue,onKeydown:jr,selectedKeys:vt(()=>l.value),checkedKeys:vt(()=>u.value),halfCheckedKeys:vt(()=>c.value),loadedKeys:vt(()=>A.value),loadingKeys:vt(()=>f.value),expandedKeys:vt(()=>h.value)}),um(()=>{window.removeEventListener("dragend",Ye),a.value=!0}),EHt({expandedKeys:h,selectedKeys:l,loadedKeys:A,loadingKeys:f,checkedKeys:u,halfCheckedKeys:c,expandedKeysSet:W,selectedKeysSet:Y,loadedKeysSet:ee,loadingKeysSet:q,checkedKeysSet:ae,halfCheckedKeysSet:se,flattenNodes:Ae}),()=>{const{draggingNodeKey:ur,dropLevelOffset:Hr,dropContainerKey:Lr,dropTargetKey:Un,dropPosition:en,dragOverNodeKey:Kn}=p,{prefixCls:qr,showLine:Gi,focusable:za,tabindex:xa=0,selectable:Wa,showIcon:$i,icon:Ji=n.icon,switcherIcon:ci,draggable:Ni,checkable:oo,checkStrictly:Ft,disabled:ze,motion:Me,loadData:pe,filterTreeNode:Ge,height:ct,itemHeight:Dt,virtual:Pt,dropIndicatorRender:Vt,onContextmenu:Ar,onScroll:pn,direction:Kr,rootClassName:xn,rootStyle:bn}=e,{class:jn,style:Br}=r,ca=H5($e($e({},e),r),{aria:!0,data:!0});let $r;return Ni?typeof Ni=="object"?$r=Ni:typeof Ni=="function"?$r={nodeDraggable:Ni}:$r={}:$r=!1,De(IHt,{value:{prefixCls:qr,selectable:Wa,showIcon:$i,icon:Ji,switcherIcon:ci,draggable:$r,draggingNodeKey:ur,checkable:oo,customCheckable:n.checkable,checkStrictly:Ft,disabled:ze,keyEntities:b.value,dropLevelOffset:Hr,dropContainerKey:Lr,dropTargetKey:Un,dropPosition:en,dragOverNodeKey:Kn,dragging:ur!==null,indent:s.value,direction:Kr,dropIndicatorRender:Vt,loadData:pe,filterTreeNode:Ge,onNodeClick:st,onNodeDoubleClick:Re,onNodeExpand:qt,onNodeSelect:dt,onNodeCheck:Oe,onNodeLoad:Ce,onNodeMouseEnter:Be,onNodeMouseLeave:We,onNodeContextMenu:mt,onNodeDragStart:me,onNodeDragEnter:Se,onNodeDragOver:et,onNodeDragLeave:nt,onNodeDragEnd:je,onNodeDrop:tt,slots:n}},{default:()=>[De("div",{role:"tree",class:Vn(qr,jn,xn,{[`${qr}-show-line`]:Gi,[`${qr}-focused`]:C.value,[`${qr}-active-focused`]:E.value!==null}),style:bn},[De(BYt,Ot({ref:M,prefixCls:qr,style:Br,disabled:ze,selectable:Wa,checkable:!!oo,motion:Me,height:ct,itemHeight:Dt,virtual:Pt,focusable:za,focused:C.value,tabindex:xa,activeItem:Er.value,onFocus:Tt,onBlur:bt,onKeydown:jr,onActiveChange:Xt,onListChangeStart:cr,onListChangeEnd:Gt,onContextmenu:Ar,onScroll:pn},ca),null)])]})}}});function QYt(e,t,r,n,i){const{isLeaf:a,expanded:o,loading:s}=r;let l=t;if(s)return De(Fy,{class:`${e}-switcher-loading-icon`},null);let u;i&&typeof i=="object"&&(u=i.showLeafIcon);let c=null;const A=`${e}-switcher-icon`;return a?i?u&&n?n(r):(typeof i=="object"&&!u?c=De("span",{class:`${e}-switcher-leaf-line`},null):c=De(PJ,{class:`${e}-switcher-line-icon`},null),c):null:(c=De(XBe,{class:A},null),i&&(c=o?De(lxe,{class:`${e}-switcher-line-icon`},null):De(Axe,{class:`${e}-switcher-line-icon`},null)),typeof t=="function"?l=t($e($e({},r),{defaultIcon:c,switcherCls:A})):l0(l)&&(l=np(l,{class:A})),l||c)}const zTe=4;function _Yt(e){const{dropPosition:t,dropLevelOffset:r,prefixCls:n,indent:i,direction:a="ltr"}=e,o=a==="ltr"?"left":"right",s=a==="ltr"?"right":"left",l={[o]:`${-r*i+zTe}px`,[s]:0};switch(t){case-1:l.top="-3px";break;case 1:l.bottom="-3px";break;default:l.bottom="-3px",l[o]=`${i+zTe}px`;break}return De("div",{style:l,class:`${n}-drop-indicator`},null)}const TYt=new vl("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),DYt=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),FYt=(e,t)=>({[`.${e}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:t.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${t.lineWidthBold}px solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),RYt=(e,t)=>{const{treeCls:r,treeNodeCls:n,treeNodePadding:i,treeTitleHeight:a}=t,o=(a-t.fontSizeLG)/2,s=t.paddingXS;return{[r]:$e($e({},gu(t)),{background:t.colorBgContainer,borderRadius:t.borderRadius,transition:`background-color ${t.motionDurationSlow}`,[`&${r}-rtl`]:{[`${r}-switcher`]:{"&_close":{[`${r}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${r}-active-focused)`]:$e({},JE(t)),[`${r}-list-holder-inner`]:{alignItems:"flex-start"},[`&${r}-block-node`]:{[`${r}-list-holder-inner`]:{alignItems:"stretch",[`${r}-node-content-wrapper`]:{flex:"auto"},[`${n}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:i,insetInlineStart:0,border:`1px solid ${t.colorPrimary}`,opacity:0,animationName:TYt,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${n}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${i}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${r}-node-content-wrapper`]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${r}-node-content-wrapper`]:$e({},JE(t)),[`&:not(${n}-disabled).filter-node ${r}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${r}-draggable-icon`]:{width:a,lineHeight:`${a}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${t.motionDurationSlow}`,[`${n}:hover &`]:{opacity:.45}},[`&${n}-disabled`]:{[`${r}-draggable-icon`]:{visibility:"hidden"}}}},[`${r}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:a}},[`${r}-draggable-icon`]:{visibility:"hidden"},[`${r}-switcher`]:$e($e({},DYt(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:a,margin:0,lineHeight:`${a}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${r}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:a/2,bottom:-i,marginInlineStart:-1,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:a/2*.8,height:a/2,borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${r}-checkbox`]:{top:"initial",marginInlineEnd:s,marginBlockStart:o},[`${r}-node-content-wrapper, ${r}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:a,margin:0,padding:`0 ${t.paddingXS/2}px`,color:"inherit",lineHeight:`${a}px`,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:t.controlItemBgHover},[`&${r}-node-selected`]:{backgroundColor:t.controlItemBgActive},[`${r}-iconEle`]:{display:"inline-block",width:a,height:a,lineHeight:`${a}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${r}-unselectable ${r}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${r}-node-content-wrapper`]:$e({lineHeight:`${a}px`,userSelect:"none"},FYt(e,t)),[`${n}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${t.colorPrimary}`}},"&-show-line":{[`${r}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:a/2,bottom:-i,borderInlineEnd:`1px solid ${t.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${r}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${n}-leaf-last`]:{[`${r}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${a/2}px !important`}}}}})}},MYt=e=>{const{treeCls:t,treeNodeCls:r,treeNodePadding:n}=e;return{[`${t}${t}-directory`]:{[r]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:n,insetInlineStart:0,transition:`background-color ${e.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:e.controlItemBgHover}},"> *":{zIndex:1},[`${t}-switcher`]:{transition:`color ${e.motionDurationMid}`},[`${t}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${t}-node-selected`]:{color:e.colorTextLightSolid,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:e.colorPrimary},[`${t}-switcher`]:{color:e.colorTextLightSolid},[`${t}-node-content-wrapper`]:{color:e.colorTextLightSolid,background:"transparent"}}}}}},OYt=(e,t)=>{const r=`.${e}`,n=`${r}-treenode`,i=t.paddingXS/2,a=t.controlHeightSM,o=Al(t,{treeCls:r,treeNodeCls:n,treeNodePadding:i,treeTitleHeight:a});return[RYt(e,o),MYt(o)]},NYt=Gu("Tree",(e,t)=>{let{prefixCls:r}=t;return[{[e.componentCls]:Jlt(`${r}-checkbox`,e)},OYt(r,e),BJ(e)]}),dct=()=>{const e=Rlt();return $e($e({},e),{showLine:$l([Boolean,Object]),multiple:Pa(),autoExpandParent:Pa(),checkStrictly:Pa(),checkable:Pa(),disabled:Pa(),defaultExpandAll:Pa(),defaultExpandParent:Pa(),defaultExpandedKeys:nc(),expandedKeys:nc(),checkedKeys:$l([Array,Object]),defaultCheckedKeys:nc(),selectedKeys:nc(),defaultSelectedKeys:nc(),selectable:Pa(),loadedKeys:nc(),draggable:Pa(),showIcon:Pa(),icon:pi(),switcherIcon:cn.any,prefixCls:String,replaceFields:To(),blockNode:Pa(),openAnimation:cn.any,onDoubleclick:e.onDblclick,"onUpdate:selectedKeys":pi(),"onUpdate:checkedKeys":pi(),"onUpdate:expandedKeys":pi()})},RK=$n({compatConfig:{MODE:3},name:"ATree",inheritAttrs:!1,props:ju(dct(),{checkable:!1,selectable:!0,showIcon:!1,blockNode:!1}),slots:Object,setup(e,t){let{attrs:r,expose:n,emit:i,slots:a}=t;e.treeData===void 0&&a.default;const{prefixCls:o,direction:s,virtual:l}=gs("tree",e),[u,c]=NYt(o),A=Hn();n({treeRef:A,onNodeExpand:function(){var m;(m=A.value)===null||m===void 0||m.onNodeExpand(...arguments)},scrollTo:m=>{var b;(b=A.value)===null||b===void 0||b.scrollTo(m)},selectedKeys:vt(()=>{var m;return(m=A.value)===null||m===void 0?void 0:m.selectedKeys}),checkedKeys:vt(()=>{var m;return(m=A.value)===null||m===void 0?void 0:m.checkedKeys}),halfCheckedKeys:vt(()=>{var m;return(m=A.value)===null||m===void 0?void 0:m.halfCheckedKeys}),loadedKeys:vt(()=>{var m;return(m=A.value)===null||m===void 0?void 0:m.loadedKeys}),loadingKeys:vt(()=>{var m;return(m=A.value)===null||m===void 0?void 0:m.loadingKeys}),expandedKeys:vt(()=>{var m;return(m=A.value)===null||m===void 0?void 0:m.expandedKeys})}),ks(()=>{BA(e.replaceFields===void 0,"Tree","`replaceFields` is deprecated, please use fieldNames instead")});const h=(m,b)=>{i("update:checkedKeys",m),i("check",m,b)},g=(m,b)=>{i("update:expandedKeys",m),i("expand",m,b)},p=(m,b)=>{i("update:selectedKeys",m),i("select",m,b)};return()=>{const{showIcon:m,showLine:b,switcherIcon:C=a.switcherIcon,icon:E=a.icon,blockNode:_,checkable:F,selectable:M,fieldNames:N=e.replaceFields,motion:P=e.openAnimation,itemHeight:j=28,onDoubleclick:z,onDblclick:W}=e,Y=$e($e($e({},r),Cc(e,["onUpdate:checkedKeys","onUpdate:expandedKeys","onUpdate:selectedKeys","onDoubleclick"])),{showLine:!!b,dropIndicatorRender:_Yt,fieldNames:N,icon:E,itemHeight:j}),ee=a.default?Cg(a.default()):void 0;return u(De(kYt,Ot(Ot({},Y),{},{virtual:l.value,motion:P,ref:A,prefixCls:o.value,class:Vn({[`${o.value}-icon-hide`]:!m,[`${o.value}-block-node`]:_,[`${o.value}-unselectable`]:!M,[`${o.value}-rtl`]:s.value==="rtl"},r.class,c.value),direction:s.value,checkable:F,selectable:M,switcherIcon:q=>QYt(o.value,C,q,a.leafIcon,b),onCheck:h,onExpand:g,onSelect:p,onDblclick:W||z,children:ee}),$e($e({},a),{checkable:()=>De("span",{class:`${o.value}-checkbox-inner`},null)})))}}});var AE;(function(e){e[e.None=0]="None",e[e.Start=1]="Start",e[e.End=2]="End"})(AE||(AE={}));function Bxe(e,t,r){function n(i){const a=i[t.key],o=i[t.children];r(a,i)!==!1&&Bxe(o||[],t,r)}e.forEach(n)}function LYt(e){let{treeData:t,expandedKeys:r,startKey:n,endKey:i,fieldNames:a={title:"title",key:"key",children:"children"}}=e;const o=[];let s=AE.None;if(n&&n===i)return[n];if(!n||!i)return[];function l(u){return u===n||u===i}return Bxe(t,a,u=>{if(s===AE.End)return!1;if(l(u)){if(o.push(u),s===AE.None)s=AE.Start;else if(s===AE.Start)return s=AE.End,!1}else s===AE.Start&&o.push(u);return r.includes(u)}),o}function moe(e,t,r){const n=[...t],i=[];return Bxe(e,r,(a,o)=>{const s=n.indexOf(a);return s!==-1&&(i.push(o),n.splice(s,1)),!!n.length}),i}var PYt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i$e($e({},dct()),{expandAction:$l([Boolean,String])});function HYt(e){const{isLeaf:t,expanded:r}=e;return De(t?PJ:r?oxe:sxe,null,null)}const yoe=$n({compatConfig:{MODE:3},name:"ADirectoryTree",inheritAttrs:!1,props:ju(UYt(),{showIcon:!0,expandAction:"click"}),slots:Object,setup(e,t){let{attrs:r,slots:n,emit:i,expose:a}=t;var o;const s=Hn(e.treeData||_ye(Cg((o=n.default)===null||o===void 0?void 0:o.call(n))));di(()=>e.treeData,()=>{s.value=e.treeData}),lm(()=>{il(()=>{var j;e.treeData===void 0&&n.default&&(s.value=_ye(Cg((j=n.default)===null||j===void 0?void 0:j.call(n))))})});const l=Hn(),u=Hn(),c=vt(()=>FJ(e.fieldNames)),A=Hn();a({scrollTo:j=>{var z;(z=A.value)===null||z===void 0||z.scrollTo(j)},selectedKeys:vt(()=>{var j;return(j=A.value)===null||j===void 0?void 0:j.selectedKeys}),checkedKeys:vt(()=>{var j;return(j=A.value)===null||j===void 0?void 0:j.checkedKeys}),halfCheckedKeys:vt(()=>{var j;return(j=A.value)===null||j===void 0?void 0:j.halfCheckedKeys}),loadedKeys:vt(()=>{var j;return(j=A.value)===null||j===void 0?void 0:j.loadedKeys}),loadingKeys:vt(()=>{var j;return(j=A.value)===null||j===void 0?void 0:j.loadingKeys}),expandedKeys:vt(()=>{var j;return(j=A.value)===null||j===void 0?void 0:j.expandedKeys})});const h=()=>{const{keyEntities:j}=KBe(s.value,{fieldNames:c.value});let z;return e.defaultExpandAll?z=Object.keys(j):e.defaultExpandParent?z=Qye(e.expandedKeys||e.defaultExpandedKeys||[],j):z=e.expandedKeys||e.defaultExpandedKeys,z},g=Hn(e.selectedKeys||e.defaultSelectedKeys||[]),p=Hn(h());di(()=>e.selectedKeys,()=>{e.selectedKeys!==void 0&&(g.value=e.selectedKeys)},{immediate:!0}),di(()=>e.expandedKeys,()=>{e.expandedKeys!==void 0&&(p.value=e.expandedKeys)},{immediate:!0});const b=sst((j,z)=>{const{isLeaf:W}=z;W||j.shiftKey||j.metaKey||j.ctrlKey||A.value.onNodeExpand(j,z)},200,{leading:!0}),C=(j,z)=>{e.expandedKeys===void 0&&(p.value=j),i("update:expandedKeys",j),i("expand",j,z)},E=(j,z)=>{const{expandAction:W}=e;W==="click"&&b(j,z),i("click",j,z)},_=(j,z)=>{const{expandAction:W}=e;(W==="dblclick"||W==="doubleclick")&&b(j,z),i("doubleclick",j,z),i("dblclick",j,z)},F=(j,z)=>{const{multiple:W}=e,{node:Y,nativeEvent:ee}=z,q=Y[c.value.key],ae=$e($e({},z),{selected:!0}),se=(ee==null?void 0:ee.ctrlKey)||(ee==null?void 0:ee.metaKey),de=ee==null?void 0:ee.shiftKey;let Ae;W&&se?(Ae=j,l.value=q,u.value=Ae,ae.selectedNodes=moe(s.value,Ae,c.value)):W&&de?(Ae=Array.from(new Set([...u.value||[],...LYt({treeData:s.value,expandedKeys:p.value,startKey:q,endKey:l.value,fieldNames:c.value})])),ae.selectedNodes=moe(s.value,Ae,c.value)):(Ae=[q],l.value=q,u.value=Ae,ae.selectedNodes=moe(s.value,Ae,c.value)),i("update:selectedKeys",Ae),i("select",Ae,ae),e.selectedKeys===void 0&&(g.value=Ae)},M=(j,z)=>{i("update:checkedKeys",j),i("check",j,z)},{prefixCls:N,direction:P}=gs("tree",e);return()=>{const j=Vn(`${N.value}-directory`,{[`${N.value}-directory-rtl`]:P.value==="rtl"},r.class),{icon:z=n.icon,blockNode:W=!0}=e,Y=PYt(e,["icon","blockNode"]);return De(RK,Ot(Ot(Ot({},r),{},{icon:z||HYt,ref:A,blockNode:W},Y),{},{prefixCls:N.value,class:j,expandedKeys:p.value,selectedKeys:g.value,onSelect:F,onClick:E,onDblclick:_,onExpand:C,onCheck:M}),n)}}}),boe=kye,jYt=$e(RK,{DirectoryTree:yoe,TreeNode:boe,install:e=>(e.component(RK.name,RK),e.component(boe.name,boe),e.component(yoe.name,yoe),e)});function KTe(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const n=new Set;function i(a,o){let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;const l=n.has(a);if(BEe(!l,"Warning: There may be circular references"),l)return!1;if(a===o)return!0;if(r&&s>1)return!1;n.add(a);const u=s+1;if(Array.isArray(a)){if(!Array.isArray(o)||a.length!==o.length)return!1;for(let c=0;ci(a[A],o[A],u))}return!1}return i(e,t)}const{SubMenu:GYt,Item:$Yt}=i1;function zYt(e){return e.some(t=>{let{children:r}=t;return r&&r.length>0})}function gct(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function pct(e){let{filters:t,prefixCls:r,filteredKeys:n,filterMultiple:i,searchValue:a,filterSearch:o}=e;return t.map((s,l)=>{const u=String(s.value);if(s.children)return De(GYt,{key:u||l,title:s.text,popupClassName:`${r}-dropdown-submenu`},{default:()=>[pct({filters:s.children,prefixCls:r,filteredKeys:n,filterMultiple:i,searchValue:a,filterSearch:o})]});const c=i?RE:Gv,A=De($Yt,{key:s.value!==void 0?u:l},{default:()=>[De(c,{checked:n.includes(u)},null),De("span",null,[s.text])]});return a.trim()?typeof o=="function"?o(a,s)?A:void 0:gct(a,s.text)?A:void 0:A})}const KYt=$n({name:"FilterDropdown",props:["tablePrefixCls","prefixCls","dropdownPrefixCls","column","filterState","filterMultiple","filterMode","filterSearch","columnKey","triggerFilter","locale","getPopupContainer"],setup(e,t){let{slots:r}=t;const n=Cxe(),i=vt(()=>{var ue;return(ue=e.filterMode)!==null&&ue!==void 0?ue:"menu"}),a=vt(()=>{var ue;return(ue=e.filterSearch)!==null&&ue!==void 0?ue:!1}),o=vt(()=>e.column.filterDropdownOpen||e.column.filterDropdownVisible),s=vt(()=>e.column.onFilterDropdownOpenChange||e.column.onFilterDropdownVisibleChange),l=sn(!1),u=vt(()=>{var ue;return!!(e.filterState&&(!((ue=e.filterState.filteredKeys)===null||ue===void 0)&&ue.length||e.filterState.forceFiltered))}),c=vt(()=>{var ue;return VJ((ue=e.column)===null||ue===void 0?void 0:ue.filters)}),A=vt(()=>{const{filterDropdown:ue,slots:Ke={},customFilterDropdown:Pe}=e.column;return ue||Ke.filterDropdown&&n.value[Ke.filterDropdown]||Pe&&n.value.customFilterDropdown}),f=vt(()=>{const{filterIcon:ue,slots:Ke={}}=e.column;return ue||Ke.filterIcon&&n.value[Ke.filterIcon]||n.value.customFilterIcon}),h=ue=>{var Ke;l.value=ue,(Ke=s.value)===null||Ke===void 0||Ke.call(s,ue)},g=vt(()=>typeof o.value=="boolean"?o.value:l.value),p=vt(()=>{var ue;return(ue=e.filterState)===null||ue===void 0?void 0:ue.filteredKeys}),m=sn([]),b=ue=>{let{selectedKeys:Ke}=ue;m.value=Ke},C=(ue,Ke)=>{let{node:Pe,checked:je}=Ke;e.filterMultiple?b({selectedKeys:ue}):b({selectedKeys:je&&Pe.key?[Pe.key]:[]})};di(p,()=>{l.value&&b({selectedKeys:p.value||[]})},{immediate:!0});const E=sn([]),_=sn(),F=ue=>{_.value=setTimeout(()=>{E.value=ue})},M=()=>{clearTimeout(_.value)};el(()=>{clearTimeout(_.value)});const N=sn(""),P=ue=>{const{value:Ke}=ue.target;N.value=Ke};di(l,()=>{l.value||(N.value="")});const j=ue=>{const{column:Ke,columnKey:Pe,filterState:je}=e,Ye=ue&&ue.length?ue:null;if(Ye===null&&(!je||!je.filteredKeys)||KTe(Ye,je==null?void 0:je.filteredKeys,!0))return null;e.triggerFilter({column:Ke,key:Pe,filteredKeys:Ye})},z=()=>{h(!1),j(m.value)},W=function(){let{confirm:ue,closeDropdown:Ke}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};ue&&j([]),Ke&&h(!1),N.value="",e.column.filterResetToDefaultFilteredValue?m.value=(e.column.defaultFilteredValue||[]).map(Pe=>String(Pe)):m.value=[]},Y=function(){let{closeDropdown:ue}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};ue&&h(!1),j(m.value)},ee=ue=>{ue&&p.value!==void 0&&(m.value=p.value||[]),h(ue),!ue&&!A.value&&z()},{direction:q}=gs("",e),ae=ue=>{if(ue.target.checked){const Ke=c.value;m.value=Ke}else m.value=[]},se=ue=>{let{filters:Ke}=ue;return(Ke||[]).map((Pe,je)=>{const Ye=String(Pe.value),me={title:Pe.text,key:Pe.value!==void 0?Ye:je};return Pe.children&&(me.children=se({filters:Pe.children})),me})},de=ue=>{var Ke;return $e($e({},ue),{text:ue.title,value:ue.key,children:((Ke=ue.children)===null||Ke===void 0?void 0:Ke.map(Pe=>de(Pe)))||[]})},Ae=vt(()=>se({filters:e.column.filters})),be=vt(()=>Vn({[`${e.dropdownPrefixCls}-menu-without-submenu`]:!zYt(e.column.filters||[])})),Le=()=>{const ue=m.value,{column:Ke,locale:Pe,tablePrefixCls:je,filterMultiple:Ye,dropdownPrefixCls:me,getPopupContainer:Se,prefixCls:et}=e;return(Ke.filters||[]).length===0?De(ak,{image:ak.PRESENTED_IMAGE_SIMPLE,description:Pe.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}},null):i.value==="tree"?De(ls,null,[De(NTe,{filterSearch:a.value,value:N.value,onChange:P,tablePrefixCls:je,locale:Pe},null),De("div",{class:`${je}-filter-dropdown-tree`},[Ye?De(RE,{class:`${je}-filter-dropdown-checkall`,onChange:ae,checked:ue.length===c.value.length,indeterminate:ue.length>0&&ue.length[Pe.filterCheckall]}):null,De(jYt,{checkable:!0,selectable:!1,blockNode:!0,multiple:Ye,checkStrictly:!Ye,class:`${me}-menu`,onCheck:C,checkedKeys:ue,selectedKeys:ue,showIcon:!1,treeData:Ae.value,autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:N.value.trim()?nt=>typeof a.value=="function"?a.value(N.value,de(nt)):gct(N.value,nt.title):void 0},null)])]):De(ls,null,[De(NTe,{filterSearch:a.value,value:N.value,onChange:P,tablePrefixCls:je,locale:Pe},null),De(i1,{multiple:Ye,prefixCls:`${me}-menu`,class:be.value,onClick:M,onSelect:b,onDeselect:b,selectedKeys:ue,getPopupContainer:Se,openKeys:E.value,onOpenChange:F},{default:()=>pct({filters:Ke.filters||[],filterSearch:a.value,prefixCls:et,filteredKeys:m.value,filterMultiple:Ye,searchValue:N.value})})])},Ne=vt(()=>{const ue=m.value;return e.column.filterResetToDefaultFilteredValue?KTe((e.column.defaultFilteredValue||[]).map(Ke=>String(Ke)),ue,!0):ue.length===0});return()=>{var ue;const{tablePrefixCls:Ke,prefixCls:Pe,column:je,dropdownPrefixCls:Ye,locale:me,getPopupContainer:Se}=e;let et;typeof A.value=="function"?et=A.value({prefixCls:`${Ye}-custom`,setSelectedKeys:ft=>b({selectedKeys:ft}),selectedKeys:m.value,confirm:Y,clearFilters:W,filters:je.filters,visible:g.value,column:je.__originColumn__,close:()=>{h(!1)}}):A.value?et=A.value:et=De(ls,null,[Le(),De("div",{class:`${Pe}-dropdown-btns`},[De(ep,{type:"link",size:"small",disabled:Ne.value,onClick:()=>W()},{default:()=>[me.filterReset]}),De(ep,{type:"primary",size:"small",onClick:z},{default:()=>[me.filterConfirm]})])]);const nt=De(bYt,{class:`${Pe}-dropdown`},{default:()=>[et]});let tt;return typeof f.value=="function"?tt=f.value({filtered:u.value,column:je.__originColumn__}):f.value?tt=f.value:tt=De(axe,null,null),De("div",{class:`${Pe}-column`},[De("span",{class:`${Ke}-column-title`},[(ue=r.default)===null||ue===void 0?void 0:ue.call(r)]),De(FE,{overlay:nt,trigger:["click"],open:g.value,onOpenChange:ee,getPopupContainer:Se,placement:q.value==="rtl"?"bottomLeft":"bottomRight"},{default:()=>[De("span",{role:"button",tabindex:-1,class:Vn(`${Pe}-trigger`,{active:u.value}),onClick:ft=>{ft.stopPropagation()}},[tt])]})])}}});function sbe(e,t,r){let n=[];return(e||[]).forEach((i,a)=>{var o,s;const l=DL(a,r),u=i.filterDropdown||((o=i==null?void 0:i.slots)===null||o===void 0?void 0:o.filterDropdown)||i.customFilterDropdown;if(i.filters||u||"onFilter"in i)if("filteredValue"in i){let c=i.filteredValue;u||(c=(s=c==null?void 0:c.map(String))!==null&&s!==void 0?s:c),n.push({column:i,key:E6(i,l),filteredKeys:c,forceFiltered:i.filtered})}else n.push({column:i,key:E6(i,l),filteredKeys:t&&i.defaultFilteredValue?i.defaultFilteredValue:void 0,forceFiltered:i.filtered});"children"in i&&(n=[...n,...sbe(i.children,t,l)])}),n}function vct(e,t,r,n,i,a,o,s){return r.map((l,u)=>{var c;const A=DL(u,s),{filterMultiple:f=!0,filterMode:h,filterSearch:g}=l;let p=l;const m=l.filterDropdown||((c=l==null?void 0:l.slots)===null||c===void 0?void 0:c.filterDropdown)||l.customFilterDropdown;if(p.filters||m){const b=E6(p,A),C=n.find(E=>{let{key:_}=E;return b===_});p=$e($e({},p),{title:E=>De(KYt,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:p,columnKey:b,filterState:C,filterMultiple:f,filterMode:h,filterSearch:g,triggerFilter:a,locale:i,getPopupContainer:o},{default:()=>[Exe(l.title,E)]})})}return"children"in p&&(p=$e($e({},p),{children:vct(e,t,p.children,n,i,a,o,A)})),p})}function VJ(e){let t=[];return(e||[]).forEach(r=>{let{value:n,children:i}=r;t.push(n),i&&(t=[...t,...VJ(i)])}),t}function VTe(e){const t={};return e.forEach(r=>{let{key:n,filteredKeys:i,column:a}=r;var o;const s=a.filterDropdown||((o=a==null?void 0:a.slots)===null||o===void 0?void 0:o.filterDropdown)||a.customFilterDropdown,{filters:l}=a;if(s)t[n]=i||null;else if(Array.isArray(i)){const u=VJ(l);t[n]=u.filter(c=>i.includes(String(c)))}else t[n]=null}),t}function WTe(e,t){return t.reduce((r,n)=>{const{column:{onFilter:i,filters:a},filteredKeys:o}=n;return i&&o&&o.length?r.filter(s=>o.some(l=>{const u=VJ(a),c=u.findIndex(f=>String(f)===String(l)),A=c!==-1?u[c]:l;return i(A,s)})):r},e)}function VYt(e){let{prefixCls:t,dropdownPrefixCls:r,mergedColumns:n,locale:i,onFilterChange:a,getPopupContainer:o}=e;const[s,l]=Hu(sbe(n.value,!0)),u=vt(()=>{const h=sbe(n.value,!1);if(h.length===0)return h;let g=!0,p=!0;if(h.forEach(m=>{let{filteredKeys:b}=m;b!==void 0?g=!1:p=!1}),g){const m=(n.value||[]).map((b,C)=>E6(b,DL(C)));return s.value.filter(b=>{let{key:C}=b;return m.includes(C)}).map(b=>{const C=n.value[m.findIndex(E=>E===b.key)];return $e($e({},b),{column:$e($e({},b.column),C),forceFiltered:C.filtered})})}return BA(p,"Table","Columns should all contain `filteredValue` or not contain `filteredValue`."),h}),c=vt(()=>VTe(u.value)),A=h=>{const g=u.value.filter(p=>{let{key:m}=p;return m!==h.key});g.push(h),l(g),a(VTe(g),g)};return[h=>vct(t.value,r.value,h,u.value,i.value,A,o.value),u,c]}function mct(e,t){return e.map(r=>{const n=$e({},r);return n.title=Exe(n.title,t),"children"in n&&(n.children=mct(n.children,t)),n})}function WYt(e){return[r=>mct(r,e.value)]}function YYt(e){return function(r){let{prefixCls:n,onExpand:i,record:a,expanded:o,expandable:s}=r;const l=`${n}-row-expand-icon`;return De("button",{type:"button",onClick:u=>{i(a,u),u.stopPropagation()},class:Vn(l,{[`${l}-spaced`]:!s,[`${l}-expanded`]:s&&o,[`${l}-collapsed`]:s&&!o}),"aria-label":o?e.collapse:e.expand,"aria-expanded":o},null)}}function yct(e,t){const r=t.value;return e.map(n=>{var i;if(n===cE||n===s3)return n;const a=$e({},n),{slots:o={}}=a;return a.__originColumn__=n,BA(!("slots"in a),"Table","`column.slots` is deprecated. Please use `v-slot:headerCell` `v-slot:bodyCell` instead."),Object.keys(o).forEach(s=>{const l=o[s];a[s]===void 0&&r[l]&&(a[s]=r[l])}),t.value.headerCell&&!(!((i=n.slots)===null||i===void 0)&&i.title)&&(a.title=Jq(t.value,"headerCell",{title:n.title,column:n},()=>[n.title])),"children"in a&&Array.isArray(a.children)&&(a.children=yct(a.children,t)),a})}function qYt(e){return[r=>yct(r,e)]}const JYt=e=>{const{componentCls:t}=e,r=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`,n=(i,a,o)=>({[`&${t}-${i}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"> table > tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`-${a}px -${o+e.lineWidth}px`}}}}}});return{[`${t}-wrapper`]:{[`${t}${t}-bordered`]:$e($e($e({[`> ${t}-title`]:{border:r,borderBottom:0},[`> ${t}-container`]:{borderInlineStart:r,[` > ${t}-content, > ${t}-header, > ${t}-body, > ${t}-summary `]:{"> table":{"\n > thead > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:r},"> thead":{"> tr:not(:last-child) > th":{borderBottom:r},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${t}-cell-fix-right-first::after`]:{borderInlineEnd:r}},"> tbody > tr > td":{[`> ${t}-expanded-row-fixed`]:{margin:`-${e.tablePaddingVertical}px -${e.tablePaddingHorizontal+e.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:e.lineWidth,bottom:0,borderInlineEnd:r,content:'""'}}}}},[` > ${t}-content, > ${t}-header `]:{"> table":{borderTop:r}}},[`&${t}-scroll-horizontal`]:{[`> ${t}-container > ${t}-body`]:{"> table > tbody":{[` > tr${t}-expanded-row, > tr${t}-placeholder `]:{"> td":{borderInlineEnd:0}}}}}},n("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle)),n("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall)),{[`> ${t}-footer`]:{border:r,borderTop:0}}),[`${t}-cell`]:{[`${t}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${e.lineWidth}px 0 ${e.lineWidth}px ${e.tableHeaderBg}`}}}}},XYt=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:$e($e({},qE),{wordBreak:"keep-all",[` &${t}-cell-fix-left-last, &${t}-cell-fix-right-first `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},ZYt=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-tbody > tr${t}-placeholder`]:{textAlign:"center",color:e.colorTextDisabled,"&:hover > td":{background:e.colorBgContainer}}}}},eqt=e=>{const{componentCls:t,antCls:r,controlInteractiveSize:n,motionDurationSlow:i,lineWidth:a,paddingXS:o,lineType:s,tableBorderColor:l,tableExpandIconBg:u,tableExpandColumnWidth:c,borderRadius:A,fontSize:f,fontSizeSM:h,lineHeight:g,tablePaddingVertical:p,tablePaddingHorizontal:m,tableExpandedRowBg:b,paddingXXS:C}=e,E=n/2-a,_=E*2+a*3,F=`${a}px ${s} ${l}`,M=C-a;return{[`${t}-wrapper`]:{[`${t}-expand-icon-col`]:{width:c},[`${t}-row-expand-icon-cell`]:{textAlign:"center",[`${t}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${t}-row-indent`]:{height:1,float:"left"},[`${t}-row-expand-icon`]:$e($e({},m_t(e)),{position:"relative",float:"left",boxSizing:"border-box",width:_,height:_,padding:0,color:"inherit",lineHeight:`${_}px`,background:u,border:F,borderRadius:A,transform:`scale(${n/_})`,transition:`all ${i}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${i} ease-out`,content:'""'},"&::before":{top:E,insetInlineEnd:M,insetInlineStart:M,height:a},"&::after":{top:M,bottom:M,insetInlineStart:E,width:a,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${t}-row-indent + ${t}-row-expand-icon`]:{marginTop:(f*g-a*3)/2-Math.ceil((h*1.4-a*3)/2),marginInlineEnd:o},[`tr${t}-expanded-row`]:{"&, &:hover":{"> td":{background:b}},[`${r}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`-${p}px -${m}px`,padding:`${p}px ${m}px`}}}},tqt=e=>{const{componentCls:t,antCls:r,iconCls:n,tableFilterDropdownWidth:i,tableFilterDropdownSearchWidth:a,paddingXXS:o,paddingXS:s,colorText:l,lineWidth:u,lineType:c,tableBorderColor:A,tableHeaderIconColor:f,fontSizeSM:h,tablePaddingHorizontal:g,borderRadius:p,motionDurationSlow:m,colorTextDescription:b,colorPrimary:C,tableHeaderFilterActiveBg:E,colorTextDisabled:_,tableFilterDropdownBg:F,tableFilterDropdownHeight:M,controlItemBgHover:N,controlItemBgActive:P,boxShadowSecondary:j}=e,z=`${r}-dropdown`,W=`${t}-filter-dropdown`,Y=`${r}-tree`,ee=`${u}px ${c} ${A}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-o,marginInline:`${o}px ${-g/2}px`,padding:`0 ${o}px`,color:f,fontSize:h,borderRadius:p,cursor:"pointer",transition:`all ${m}`,"&:hover":{color:b,background:E},"&.active":{color:C}}}},{[`${r}-dropdown`]:{[W]:$e($e({},gu(e)),{minWidth:i,backgroundColor:F,borderRadius:p,boxShadow:j,[`${z}-menu`]:{maxHeight:M,overflowX:"hidden",border:0,boxShadow:"none","&:empty::after":{display:"block",padding:`${s}px 0`,color:_,fontSize:h,textAlign:"center",content:'"Not Found"'}},[`${W}-tree`]:{paddingBlock:`${s}px 0`,paddingInline:s,[Y]:{padding:0},[`${Y}-treenode ${Y}-node-content-wrapper:hover`]:{backgroundColor:N},[`${Y}-treenode-checkbox-checked ${Y}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:P}}},[`${W}-search`]:{padding:s,borderBottom:ee,"&-input":{input:{minWidth:a},[n]:{color:_}}},[`${W}-checkall`]:{width:"100%",marginBottom:o,marginInlineStart:o},[`${W}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${s-u}px ${s}px`,overflow:"hidden",backgroundColor:"inherit",borderTop:ee}})}},{[`${r}-dropdown ${W}, ${W}-submenu`]:{[`${r}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:l},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},rqt=e=>{const{componentCls:t,lineWidth:r,colorSplit:n,motionDurationSlow:i,zIndexTableFixed:a,tableBg:o,zIndexTableSticky:s}=e,l=n;return{[`${t}-wrapper`]:{[` ${t}-cell-fix-left, ${t}-cell-fix-right `]:{position:"sticky !important",zIndex:a,background:o},[` ${t}-cell-fix-left-first::after, ${t}-cell-fix-left-last::after `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-r,width:30,transform:"translateX(100%)",transition:`box-shadow ${i}`,content:'""',pointerEvents:"none"},[`${t}-cell-fix-left-all::after`]:{display:"none"},[` ${t}-cell-fix-right-first::after, ${t}-cell-fix-right-last::after `]:{position:"absolute",top:0,bottom:-r,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${i}`,content:'""',pointerEvents:"none"},[`${t}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:s+1,width:30,transition:`box-shadow ${i}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${t}-ping-left`]:{[`&:not(${t}-has-fix-left) ${t}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${l}`}},[` ${t}-cell-fix-left-first::after, ${t}-cell-fix-left-last::after `]:{boxShadow:`inset 10px 0 8px -8px ${l}`},[`${t}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${t}-ping-right`]:{[`&:not(${t}-has-fix-right) ${t}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${l}`}},[` ${t}-cell-fix-right-first::after, ${t}-cell-fix-right-last::after `]:{boxShadow:`inset -10px 0 8px -8px ${l}`}}}}},nqt=e=>{const{componentCls:t,antCls:r}=e;return{[`${t}-wrapper`]:{[`${t}-pagination${r}-pagination`]:{margin:`${e.margin}px 0`},[`${t}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},iqt=e=>{const{componentCls:t,tableRadius:r}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${r}px ${r}px 0 0`},[`${t}-title + ${t}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,table:{borderRadius:0,"> thead > tr:first-child":{"th:first-child":{borderRadius:0},"th:last-child":{borderRadius:0}}}},"&-container":{borderStartStartRadius:r,borderStartEndRadius:r,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:r},"> *:last-child":{borderStartEndRadius:r}}},"&-footer":{borderRadius:`0 0 ${r}px ${r}px`}}}}},aqt=e=>{const{componentCls:t}=e;return{[`${t}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${t}-pagination-left`]:{justifyContent:"flex-end"},[`${t}-pagination-right`]:{justifyContent:"flex-start"},[`${t}-row-expand-icon`]:{"&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}}}}},oqt=e=>{const{componentCls:t,antCls:r,iconCls:n,fontSizeIcon:i,paddingXS:a,tableHeaderIconColor:o,tableHeaderIconColorHover:s}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:e.tableSelectionColumnWidth},[`${t}-bordered ${t}-selection-col`]:{width:e.tableSelectionColumnWidth+a*2},[` table tr th${t}-selection-column, table tr td${t}-selection-column `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${r}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:e.zIndexTableFixed+1},[`table tr th${t}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${t}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${t}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${e.tablePaddingHorizontal/4}px`,[n]:{color:o,fontSize:i,verticalAlign:"baseline","&:hover":{color:s}}}}}},sqt=e=>{const{componentCls:t}=e,r=(n,i,a,o)=>({[`${t}${t}-${n}`]:{fontSize:o,[` ${t}-title, ${t}-footer, ${t}-thead > tr > th, ${t}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td `]:{padding:`${i}px ${a}px`},[`${t}-filter-trigger`]:{marginInlineEnd:`-${a/2}px`},[`${t}-expanded-row-fixed`]:{margin:`-${i}px -${a}px`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:`-${i}px`,marginInline:`${e.tableExpandColumnWidth-a}px -${a}px`}},[`${t}-selection-column`]:{paddingInlineStart:`${a/4}px`}}});return{[`${t}-wrapper`]:$e($e({},r("middle",e.tablePaddingVerticalMiddle,e.tablePaddingHorizontalMiddle,e.tableFontSizeMiddle)),r("small",e.tablePaddingVerticalSmall,e.tablePaddingHorizontalSmall,e.tableFontSizeSmall))}},lqt=e=>{const{componentCls:t}=e;return{[`${t}-wrapper ${t}-resize-handle`]:{position:"absolute",top:0,height:"100% !important",bottom:0,left:" auto !important",right:" -8px",cursor:"col-resize",touchAction:"none",userSelect:"auto",width:"16px",zIndex:1,"&-line":{display:"block",width:"1px",marginLeft:"7px",height:"100% !important",backgroundColor:e.colorPrimary,opacity:0},"&:hover &-line":{opacity:1}},[`${t}-wrapper ${t}-resize-handle.dragging`]:{overflow:"hidden",[`${t}-resize-handle-line`]:{opacity:1},"&:before":{position:"absolute",top:0,bottom:0,content:'" "',width:"200vw",transform:"translateX(-50%)",opacity:0}}}},uqt=e=>{const{componentCls:t,marginXXS:r,fontSizeIcon:n,tableHeaderIconColor:i,tableHeaderIconColorHover:a}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[` &${t}-cell-fix-left:hover, &${t}-cell-fix-right:hover `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorter`]:{marginInlineStart:r,color:i,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:n,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:a}}}},cqt=e=>{const{componentCls:t,opacityLoading:r,tableScrollThumbBg:n,tableScrollThumbBgHover:i,tableScrollThumbSize:a,tableScrollBg:o,zIndexTableSticky:s}=e,l=`${e.lineWidth}px ${e.lineType} ${e.tableBorderColor}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${a}px !important`,zIndex:s,display:"flex",alignItems:"center",background:o,borderTop:l,opacity:r,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:a,backgroundColor:n,borderRadius:100,transition:`all ${e.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:i}}}}}}},YTe=e=>{const{componentCls:t,lineWidth:r,tableBorderColor:n}=e,i=`${r}px ${e.lineType} ${n}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},[`div${t}-summary`]:{boxShadow:`0 -${r}px 0 ${n}`}}}},Aqt=e=>{const{componentCls:t,fontWeightStrong:r,tablePaddingVertical:n,tablePaddingHorizontal:i,lineWidth:a,lineType:o,tableBorderColor:s,tableFontSize:l,tableBg:u,tableRadius:c,tableHeaderTextColor:A,motionDurationMid:f,tableHeaderBg:h,tableHeaderCellSplitColor:g,tableRowHoverBg:p,tableSelectedRowBg:m,tableSelectedRowHoverBg:b,tableFooterTextColor:C,tableFooterBg:E,paddingContentVerticalLG:_,wireframe:F}=e,M=`${a}px ${o} ${s}`;return{[`${t}-wrapper`]:$e($e({clear:"both",maxWidth:"100%"},y6()),{[t]:$e($e({},gu(e)),{fontSize:l,background:u,borderRadius:`${c}px ${c}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${c}px ${c}px 0 0`,borderCollapse:"separate",borderSpacing:0},[` ${t}-thead > tr > th, ${t}-tbody > tr > td, tfoot > tr > th, tfoot > tr > td `]:{position:"relative",padding:`${_}px ${i}px`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${n}px ${i}px`},[`${t}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:A,fontWeight:r,textAlign:"start",background:h,borderBottom:M,transition:`background ${f} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${t}-selection-column):not(${t}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:g,transform:"translateY(-50%)",transition:`background-color ${f}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}:not(${t}-bordered)`]:{[`${t}-tbody`]:{"> tr":{"> td":{borderTop:M,borderBottom:"transparent"},"&:last-child > td":{borderBottom:M},[`&:first-child > td, &${t}-measure-row + tr > td`]:{borderTop:"none",borderTopColor:"transparent"}}}},[`${t}${t}-bordered`]:{[`${t}-tbody`]:{"> tr":{"> td":{borderBottom:M}}}},[`${t}-tbody`]:{"> tr":{"> td":{transition:`background ${f}, border-color ${f}`,[` > ${t}-wrapper:only-child, > ${t}-expanded-row-fixed > ${t}-wrapper:only-child `]:{[t]:{marginBlock:`-${n}px`,marginInline:`${e.tableExpandColumnWidth-i}px -${i}px`,[`${t}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},[` &${t}-row:hover > td, > td${t}-cell-row-hover `]:{background:p},[`&${t}-row-selected`]:{"> td":{background:m},"&:hover > td":{background:b}}}},[`${t}:not(${t}-bordered) ${t}-tbody > tr`]:F?void 0:{[`&${t}-row:hover, &${t}-row${t}-row-selected`]:{[`+ tr${t}-row > td`]:{borderTopColor:"transparent"}},[`&${t}-row:last-child:hover > td, &${t}-row${t}-row-selected:last-child > td`]:{borderBottomColor:"transparent"},[` &${t}-row:hover > td, > td${t}-cell-row-hover, &${t}-row${t}-row-selected > td `]:{borderTopColor:"transparent","&:first-child":{borderStartStartRadius:c,borderEndStartRadius:c},"&:last-child":{borderStartEndRadius:c,borderEndEndRadius:c}}},[`${t}-footer`]:{padding:`${n}px ${i}px`,color:C,background:E}})}},fqt=Gu("Table",e=>{const{controlItemBgActive:t,controlItemBgActiveHover:r,colorTextPlaceholder:n,colorTextHeading:i,colorSplit:a,colorBorderSecondary:o,fontSize:s,padding:l,paddingXS:u,paddingSM:c,controlHeight:A,colorFillAlter:f,colorIcon:h,colorIconHover:g,opacityLoading:p,colorBgContainer:m,borderRadiusLG:b,colorFillContent:C,colorFillSecondary:E,controlInteractiveSize:_}=e,F=new Rc(h),M=new Rc(g),N=t,P=2,j=new Rc(E).onBackground(m).toHexString(),z=new Rc(C).onBackground(m).toHexString(),W=new Rc(f).onBackground(m).toHexString(),Y=Al(e,{tableFontSize:s,tableBg:m,tableRadius:b,tablePaddingVertical:l,tablePaddingHorizontal:l,tablePaddingVerticalMiddle:c,tablePaddingHorizontalMiddle:u,tablePaddingVerticalSmall:u,tablePaddingHorizontalSmall:u,tableBorderColor:o,tableHeaderTextColor:i,tableHeaderBg:W,tableFooterTextColor:i,tableFooterBg:W,tableHeaderCellSplitColor:o,tableHeaderSortBg:j,tableHeaderSortHoverBg:z,tableHeaderIconColor:F.clone().setAlpha(F.getAlpha()*p).toRgbString(),tableHeaderIconColorHover:M.clone().setAlpha(M.getAlpha()*p).toRgbString(),tableBodySortBg:W,tableFixedHeaderSortActiveBg:j,tableHeaderFilterActiveBg:C,tableFilterDropdownBg:m,tableRowHoverBg:W,tableSelectedRowBg:N,tableSelectedRowHoverBg:r,zIndexTableFixed:P,zIndexTableSticky:P+1,tableFontSizeMiddle:s,tableFontSizeSmall:s,tableSelectionColumnWidth:A,tableExpandIconBg:m,tableExpandColumnWidth:_+2*e.padding,tableExpandedRowBg:f,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:n,tableScrollThumbBgHover:i,tableScrollBg:a});return[Aqt(Y),nqt(Y),YTe(Y),uqt(Y),tqt(Y),JYt(Y),iqt(Y),eqt(Y),YTe(Y),ZYt(Y),oqt(Y),rqt(Y),cqt(Y),XYt(Y),sqt(Y),lqt(Y),aqt(Y)]}),hqt=[],bct=()=>({prefixCls:Us(),columns:nc(),rowKey:$l([String,Function]),tableLayout:Us(),rowClassName:$l([String,Function]),title:pi(),footer:pi(),id:Us(),showHeader:Pa(),components:To(),customRow:pi(),customHeaderRow:pi(),direction:Us(),expandFixed:$l([Boolean,String]),expandColumnWidth:Number,expandedRowKeys:nc(),defaultExpandedRowKeys:nc(),expandedRowRender:pi(),expandRowByClick:Pa(),expandIcon:pi(),onExpand:pi(),onExpandedRowsChange:pi(),"onUpdate:expandedRowKeys":pi(),defaultExpandAllRows:Pa(),indentSize:Number,expandIconColumnIndex:Number,showExpandColumn:Pa(),expandedRowClassName:pi(),childrenColumnName:Us(),rowExpandable:pi(),sticky:$l([Boolean,Object]),dropdownPrefixCls:String,dataSource:nc(),pagination:$l([Boolean,Object]),loading:$l([Boolean,Object]),size:Us(),bordered:Pa(),locale:To(),onChange:pi(),onResizeColumn:pi(),rowSelection:To(),getPopupContainer:pi(),scroll:To(),sortDirections:nc(),showSorterTooltip:$l([Boolean,Object],!0),transformCellText:pi()}),dqt=$n({name:"InteralTable",inheritAttrs:!1,props:ju($e($e({},bct()),{contextSlots:To()}),{rowKey:"key"}),setup(e,t){let{attrs:r,slots:n,expose:i,emit:a}=t;BA(!(typeof e.rowKey=="function"&&e.rowKey.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected."),wWt(vt(()=>e.contextSlots)),CWt({onResizeColumn:(Oe,Ce)=>{a("resizeColumn",Oe,Ce)}});const o=gBe(),s=vt(()=>{const Oe=new Set(Object.keys(o.value).filter(Ce=>o.value[Ce]));return e.columns.filter(Ce=>!Ce.responsive||Ce.responsive.some(Be=>Oe.has(Be)))}),{size:l,renderEmpty:u,direction:c,prefixCls:A,configProvider:f}=gs("table",e),[h,g]=fqt(A),p=vt(()=>{var Oe;return e.transformCellText||((Oe=f.transformCellText)===null||Oe===void 0?void 0:Oe.value)}),[m]=SC("Table",r2.Table,ws(e,"locale")),b=vt(()=>e.dataSource||hqt),C=vt(()=>f.getPrefixCls("dropdown",e.dropdownPrefixCls)),E=vt(()=>e.childrenColumnName||"children"),_=vt(()=>b.value.some(Oe=>Oe==null?void 0:Oe[E.value])?"nest":e.expandedRowRender?"row":null),F=uc({body:null}),M=Oe=>{$e(F,Oe)},N=vt(()=>typeof e.rowKey=="function"?e.rowKey:Oe=>Oe==null?void 0:Oe[e.rowKey]),[P]=hYt(b,E,N),j={},z=function(Oe,Ce){let Be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{pagination:We,scroll:mt,onChange:Tt}=e,bt=$e($e({},j),Oe);Be&&(j.resetPagination(),bt.pagination.current&&(bt.pagination.current=1),We&&We.onChange&&We.onChange(1,bt.pagination.pageSize)),mt&&mt.scrollToFirstRowOnChange!==!1&&F.body&&O_t(0,{getContainer:()=>F.body}),Tt==null||Tt(bt.pagination,bt.filters,bt.sorter,{currentDataSource:WTe(abe(b.value,bt.sorterStates,E.value),bt.filterStates),action:Ce})},W=(Oe,Ce)=>{z({sorter:Oe,sorterStates:Ce},"sort",!1)},[Y,ee,q,ae]=mYt({prefixCls:A,mergedColumns:s,onSorterChange:W,sortDirections:vt(()=>e.sortDirections||["ascend","descend"]),tableLocale:m,showSorterTooltip:ws(e,"showSorterTooltip")}),se=vt(()=>abe(b.value,ee.value,E.value)),de=(Oe,Ce)=>{z({filters:Oe,filterStates:Ce},"filter",!0)},[Ae,be,Le]=VYt({prefixCls:A,locale:m,dropdownPrefixCls:C,mergedColumns:s,onFilterChange:de,getPopupContainer:ws(e,"getPopupContainer")}),Ne=vt(()=>WTe(se.value,be.value)),[ue]=qYt(ws(e,"contextSlots")),Ke=vt(()=>{const Oe={},Ce=Le.value;return Object.keys(Ce).forEach(Be=>{Ce[Be]!==null&&(Oe[Be]=Ce[Be])}),$e($e({},q.value),{filters:Oe})}),[Pe]=WYt(Ke),je=(Oe,Ce)=>{z({pagination:$e($e({},j.pagination),{current:Oe,pageSize:Ce})},"paginate")},[Ye,me]=fYt(vt(()=>Ne.value.length),ws(e,"pagination"),je);ks(()=>{j.sorter=ae.value,j.sorterStates=ee.value,j.filters=Le.value,j.filterStates=be.value,j.pagination=e.pagination===!1?{}:AYt(Ye.value,e.pagination),j.resetPagination=me});const Se=vt(()=>{if(e.pagination===!1||!Ye.value.pageSize)return Ne.value;const{current:Oe=1,total:Ce,pageSize:Be=ebe}=Ye.value;return BA(Oe>0,"Table","`current` should be positive number."),Ne.value.lengthBe?Ne.value.slice((Oe-1)*Be,Oe*Be):Ne.value:Ne.value.slice((Oe-1)*Be,Oe*Be)});ks(()=>{il(()=>{const{total:Oe,pageSize:Ce=ebe}=Ye.value;Ne.value.lengthCe&&BA(!1,"Table","`dataSource` length is less than `pagination.total` but large than `pagination.pageSize`. Please make sure your config correct data with async mode.")})},{flush:"post"});const et=vt(()=>e.showExpandColumn===!1?-1:_.value==="nest"&&e.expandIconColumnIndex===void 0?e.rowSelection?1:0:e.expandIconColumnIndex>0&&e.rowSelection?e.expandIconColumnIndex-1:e.expandIconColumnIndex),nt=Hn();di(()=>e.rowSelection,()=>{nt.value=e.rowSelection?$e({},e.rowSelection):e.rowSelection},{deep:!0,immediate:!0});const[tt,ft]=gYt(nt,{prefixCls:A,data:Ne,pageData:Se,getRowKey:N,getRecordByKey:P,expandType:_,childrenColumnName:E,locale:m,getPopupContainer:vt(()=>e.getPopupContainer)}),st=(Oe,Ce,Be)=>{let We;const{rowClassName:mt}=e;return typeof mt=="function"?We=Vn(mt(Oe,Ce,Be)):We=Vn(mt),Vn({[`${A.value}-row-selected`]:ft.value.has(N.value(Oe,Ce))},We)};i({selectedKeySet:ft});const Re=vt(()=>typeof e.indentSize=="number"?e.indentSize:15),dt=Oe=>Pe(tt(Ae(Y(ue(Oe)))));return()=>{var Oe;const{expandIcon:Ce=n.expandIcon||YYt(m.value),pagination:Be,loading:We,bordered:mt}=e;let Tt,bt;if(Be!==!1&&(!((Oe=Ye.value)===null||Oe===void 0)&&Oe.total)){let Xt;Ye.value.size?Xt=Ye.value.size:Xt=l.value==="small"||l.value==="middle"?"small":void 0;const Er=jr=>De(TVt,Ot(Ot({},Ye.value),{},{class:[`${A.value}-pagination ${A.value}-pagination-${jr}`,Ye.value.class],size:Xt}),null),on=c.value==="rtl"?"left":"right",{position:wn}=Ye.value;if(wn!==null&&Array.isArray(wn)){const jr=wn.find(Lr=>Lr.includes("top")),ur=wn.find(Lr=>Lr.includes("bottom")),Hr=wn.every(Lr=>`${Lr}`=="none");!jr&&!ur&&!Hr&&(bt=Er(on)),jr&&(Tt=Er(jr.toLowerCase().replace("top",""))),ur&&(bt=Er(ur.toLowerCase().replace("bottom","")))}else bt=Er(on)}let qt;typeof We=="boolean"?qt={spinning:We}:typeof We=="object"&&(qt=$e({spinning:!0},We));const cr=Vn(`${A.value}-wrapper`,{[`${A.value}-wrapper-rtl`]:c.value==="rtl"},r.class,g.value),Gt=Cc(e,["columns"]);return h(De("div",{class:cr,style:r.style},[De(GM,Ot({spinning:!1},qt),{default:()=>[Tt,De(uYt,Ot(Ot(Ot({},r),Gt),{},{expandedRowKeys:e.expandedRowKeys,defaultExpandedRowKeys:e.defaultExpandedRowKeys,expandIconColumnIndex:et.value,indentSize:Re.value,expandIcon:Ce,columns:s.value,direction:c.value,prefixCls:A.value,class:Vn({[`${A.value}-middle`]:l.value==="middle",[`${A.value}-small`]:l.value==="small",[`${A.value}-bordered`]:mt,[`${A.value}-empty`]:b.value.length===0}),data:Se.value,rowKey:N.value,rowClassName:st,internalHooks:Zye,internalRefs:F,onUpdateInternalRefs:M,transformColumns:dt,transformCellText:p.value}),$e($e({},n),{emptyText:()=>{var Xt,Er;return((Xt=n.emptyText)===null||Xt===void 0?void 0:Xt.call(n))||((Er=e.locale)===null||Er===void 0?void 0:Er.emptyText)||u("Table")}})),bt]})]))}}}),woe=$n({name:"ATable",inheritAttrs:!1,props:ju(bct(),{rowKey:"key"}),slots:Object,setup(e,t){let{attrs:r,slots:n,expose:i}=t;const a=Hn();return i({table:a}),()=>{var o;const s=e.columns||Act((o=n.default)===null||o===void 0?void 0:o.call(n));return De(dqt,Ot(Ot(Ot({ref:a},r),e),{},{columns:s,expandedRowRender:n.expandedRowRender,contextSlots:$e({},n)}),n)}}}),Coe=$n({name:"ATableColumn",slots:Object,render(){return null}}),Ioe=$n({name:"ATableColumnGroup",slots:Object,__ANT_TABLE_COLUMN_GROUP:!0,render(){return null}}),lbe=JWt,ube=eYt,Eoe=$e(tYt,{Cell:ube,Row:lbe,name:"ATableSummary"}),EZr=$e(woe,{SELECTION_ALL:tbe,SELECTION_INVERT:rbe,SELECTION_NONE:nbe,SELECTION_COLUMN:cE,EXPAND_COLUMN:s3,Column:Coe,ColumnGroup:Ioe,Summary:Eoe,install:e=>(e.component(Eoe.name,Eoe),e.component(ube.name,ube),e.component(lbe.name,lbe),e.component(woe.name,woe),e.component(Coe.name,Coe),e.component(Ioe.name,Ioe),e)}),Boe=()=>({format:String,showNow:Pa(),showHour:Pa(),showMinute:Pa(),showSecond:Pa(),use12Hours:Pa(),hourStep:Number,minuteStep:Number,secondStep:Number,hideDisabledOptions:Pa(),popupClassName:String,status:Us()});function gqt(e){const t=_ut(e,$e($e({},Boe()),{order:{type:Boolean,default:!0}})),{TimePicker:r,RangePicker:n}=t,i=$n({name:"ATimePicker",inheritAttrs:!1,props:$e($e($e($e({},kW()),Sut()),Boe()),{addon:{type:Function}}),slots:Object,setup(o,s){let{slots:l,expose:u,emit:c,attrs:A}=s;const f=o,h=im();BA(!(l.addon||f.addon),"TimePicker","`addon` is deprecated. Please use `v-slot:renderExtraFooter` instead.");const g=Hn();u({focus:()=>{var _;(_=g.value)===null||_===void 0||_.focus()},blur:()=>{var _;(_=g.value)===null||_===void 0||_.blur()}});const p=(_,F)=>{c("update:value",_),c("change",_,F),h.onFieldChange()},m=_=>{c("update:open",_),c("openChange",_)},b=_=>{c("focus",_)},C=_=>{c("blur",_),h.onFieldBlur()},E=_=>{c("ok",_)};return()=>{const{id:_=h.id.value}=f;return De(r,Ot(Ot(Ot({},A),Cc(f,["onUpdate:value","onUpdate:open"])),{},{id:_,dropdownClassName:f.popupClassName,mode:void 0,ref:g,renderExtraFooter:f.addon||l.addon||f.renderExtraFooter||l.renderExtraFooter,onChange:p,onOpenChange:m,onFocus:b,onBlur:C,onOk:E}),l)}}}),a=$n({name:"ATimeRangePicker",inheritAttrs:!1,props:$e($e($e($e({},kW()),kut()),Boe()),{order:{type:Boolean,default:!0}}),slots:Object,setup(o,s){let{slots:l,expose:u,emit:c,attrs:A}=s;const f=o,h=Hn(),g=im();u({focus:()=>{var M;(M=h.value)===null||M===void 0||M.focus()},blur:()=>{var M;(M=h.value)===null||M===void 0||M.blur()}});const p=(M,N)=>{c("update:value",M),c("change",M,N),g.onFieldChange()},m=M=>{c("update:open",M),c("openChange",M)},b=M=>{c("focus",M)},C=M=>{c("blur",M),g.onFieldBlur()},E=(M,N)=>{c("panelChange",M,N)},_=M=>{c("ok",M)},F=(M,N,P)=>{c("calendarChange",M,N,P)};return()=>{const{id:M=g.id.value}=f;return De(n,Ot(Ot(Ot({},A),Cc(f,["onUpdate:open","onUpdate:value"])),{},{id:M,dropdownClassName:f.popupClassName,picker:"time",mode:void 0,ref:h,onChange:p,onOpenChange:m,onFocus:b,onBlur:C,onPanelChange:E,onOk:_,onCalendarChange:F}),l)}}});return{TimePicker:i,TimeRangePicker:a}}const{TimePicker:uG,TimeRangePicker:xoe}=gqt(Vst),BZr=$e(uG,{TimePicker:uG,TimeRangePicker:xoe,install:e=>(e.component(uG.name,uG),e.component(xoe.name,xoe),e)});function pqt(e,t){const r=`cannot ${e.method} ${e.action} ${t.status}'`,n=new Error(r);return n.status=t.status,n.method=e.method,n.url=e.action,n}function qTe(e){const t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function vqt(e){const t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(a){a.total>0&&(a.percent=a.loaded/a.total*100),e.onProgress(a)});const r=new FormData;e.data&&Object.keys(e.data).forEach(i=>{const a=e.data[i];if(Array.isArray(a)){a.forEach(o=>{r.append(`${i}[]`,o)});return}r.append(i,a)}),e.file instanceof Blob?r.append(e.filename,e.file,e.file.name):r.append(e.filename,e.file),t.onerror=function(a){e.onError(a)},t.onload=function(){return t.status<200||t.status>=300?e.onError(pqt(e,t),qTe(t)):e.onSuccess(qTe(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);const n=e.headers||{};return n["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(n).forEach(i=>{n[i]!==null&&t.setRequestHeader(i,n[i])}),t.send(r),{abort(){t.abort()}}}const mqt=+new Date;let yqt=0;function Soe(){return`vc-upload-${mqt}-${++yqt}`}const koe=(e,t)=>{if(e&&t){const r=Array.isArray(t)?t:t.split(","),n=e.name||"",i=e.type||"",a=i.replace(/\/.*$/,"");return r.some(o=>{const s=o.trim();if(/^\*(\/\*)?$/.test(o))return!0;if(s.charAt(0)==="."){const l=n.toLowerCase(),u=s.toLowerCase();let c=[u];return(u===".jpg"||u===".jpeg")&&(c=[".jpg",".jpeg"]),c.some(A=>l.endsWith(A))}return/\/\*$/.test(s)?a===s.replace(/\/.*$/,""):!!(i===s||/^\w+$/.test(s))})}return!0};function bqt(e,t){const r=e.createReader();let n=[];function i(){r.readEntries(a=>{const o=Array.prototype.slice.apply(a);n=n.concat(o),!o.length?t(n):i()})}i()}const wqt=(e,t,r)=>{const n=(i,a)=>{i.path=a||"",i.isFile?i.file(o=>{r(o)&&(i.fullPath&&!o.webkitRelativePath&&(Object.defineProperties(o,{webkitRelativePath:{writable:!0}}),o.webkitRelativePath=i.fullPath.replace(/^\//,""),Object.defineProperties(o,{webkitRelativePath:{writable:!1}})),t([o]))}):i.isDirectory&&bqt(i,o=>{o.forEach(s=>{n(s,`${a}${i.name}/`)})})};e.forEach(i=>{n(i.webkitGetAsEntry())})},wct=()=>({capture:[Boolean,String],multipart:{type:Boolean,default:void 0},name:String,disabled:{type:Boolean,default:void 0},componentTag:String,action:[String,Function],method:String,directory:{type:Boolean,default:void 0},data:[Object,Function],headers:Object,accept:String,multiple:{type:Boolean,default:void 0},onBatchStart:Function,onReject:Function,onStart:Function,onError:Function,onSuccess:Function,onProgress:Function,beforeUpload:Function,customRequest:Function,withCredentials:{type:Boolean,default:void 0},openFileDialogOnClick:{type:Boolean,default:void 0},prefixCls:String,id:String,onMouseenter:Function,onMouseleave:Function,onClick:Function});var Cqt=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(c){try{u(n.next(c))}catch(A){o(A)}}function l(c){try{u(n.throw(c))}catch(A){o(A)}}function u(c){c.done?a(c.value):i(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})},Iqt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);iCqt(this,void 0,void 0,function*(){const{beforeUpload:_}=e;let F=C;if(_){try{F=yield _(C,E)}catch{F=!1}if(F===!1)return{origin:C,parsedFile:null,action:null,data:null}}const{action:M}=e;let N;typeof M=="function"?N=yield M(C):N=M;const{data:P}=e;let j;typeof P=="function"?j=yield P(C):j=P;const z=(typeof F=="object"||typeof F=="string")&&F?F:C;let W;z instanceof File?W=z:W=new File([z],C.name,{type:C.type});const Y=W;return Y.uid=C.uid,{origin:C,data:j,parsedFile:Y,action:N}}),c=C=>{let{data:E,origin:_,action:F,parsedFile:M}=C;if(!l)return;const{onStart:N,customRequest:P,name:j,headers:z,withCredentials:W,method:Y}=e,{uid:ee}=_,q=P||vqt,ae={action:F,filename:j,data:E,file:M,headers:z,withCredentials:W,method:Y||"post",onProgress:se=>{const{onProgress:de}=e;de==null||de(se,M)},onSuccess:(se,de)=>{const{onSuccess:Ae}=e;Ae==null||Ae(se,M,de),delete o[ee]},onError:(se,de)=>{const{onError:Ae}=e;Ae==null||Ae(se,de,M),delete o[ee]}};N(_),o[ee]=q(ae)},A=()=>{a.value=Soe()},f=C=>{if(C){const E=C.uid?C.uid:C;o[E]&&o[E].abort&&o[E].abort(),delete o[E]}else Object.keys(o).forEach(E=>{o[E]&&o[E].abort&&o[E].abort(),delete o[E]})};Is(()=>{l=!0}),el(()=>{l=!1,f()});const h=C=>{const E=[...C],_=E.map(F=>(F.uid=Soe(),u(F,E)));Promise.all(_).then(F=>{const{onBatchStart:M}=e;M==null||M(F.map(N=>{let{origin:P,parsedFile:j}=N;return{file:P,parsedFile:j}})),F.filter(N=>N.parsedFile!==null).forEach(N=>{c(N)})})},g=C=>{const{accept:E,directory:_}=e,{files:F}=C.target,M=[...F].filter(N=>!_||koe(N,E));h(M),A()},p=C=>{const E=s.value;if(!E)return;const{onClick:_}=e;E.click(),_&&_(C)},m=C=>{C.key==="Enter"&&p(C)},b=C=>{const{multiple:E}=e;if(C.preventDefault(),C.type!=="dragover")if(e.directory)wqt(Array.prototype.slice.call(C.dataTransfer.items),h,_=>koe(_,e.accept));else{const _=mOt(Array.prototype.slice.call(C.dataTransfer.files),N=>koe(N,e.accept));let F=_[0];const M=_[1];E===!1&&(F=F.slice(0,1)),h(F),M.length&&e.onReject&&e.onReject(M)}};return i({abort:f}),()=>{var C;const{componentTag:E,prefixCls:_,disabled:F,id:M,multiple:N,accept:P,capture:j,directory:z,openFileDialogOnClick:W,onMouseenter:Y,onMouseleave:ee}=e,q=Iqt(e,["componentTag","prefixCls","disabled","id","multiple","accept","capture","directory","openFileDialogOnClick","onMouseenter","onMouseleave"]),ae={[_]:!0,[`${_}-disabled`]:F,[n.class]:!!n.class},se=z?{directory:"directory",webkitdirectory:"webkitdirectory"}:{};return De(E,Ot(Ot({},F?{}:{onClick:W?p:()=>{},onKeydown:W?m:()=>{},onMouseenter:Y,onMouseleave:ee,onDrop:b,onDragover:b,tabindex:"0"}),{},{class:ae,role:"button",style:n.style}),{default:()=>[De("input",Ot(Ot(Ot({},H5(q,{aria:!0,data:!0})),{},{id:M,type:"file",ref:s,onClick:Ae=>Ae.stopPropagation(),key:a.value,style:{display:"none"},accept:P},se),{},{multiple:N,onChange:g},j!=null?{capture:j}:{}),null),(C=r.default)===null||C===void 0?void 0:C.call(r)]})}}});function Qoe(){}const JTe=$n({compatConfig:{MODE:3},name:"Upload",inheritAttrs:!1,props:ju(wct(),{componentTag:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:Qoe,onError:Qoe,onSuccess:Qoe,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0}),setup(e,t){let{slots:r,attrs:n,expose:i}=t;const a=Hn();return i({abort:s=>{var l;(l=a.value)===null||l===void 0||l.abort(s)}}),()=>De(Eqt,Ot(Ot(Ot({},e),n),{},{ref:a}),r)}});function Cct(){return{capture:$l([Boolean,String]),type:Us(),name:String,defaultFileList:nc(),fileList:nc(),action:$l([String,Function]),directory:Pa(),data:$l([Object,Function]),method:Us(),headers:To(),showUploadList:$l([Boolean,Object]),multiple:Pa(),accept:String,beforeUpload:pi(),onChange:pi(),"onUpdate:fileList":pi(),onDrop:pi(),listType:Us(),onPreview:pi(),onDownload:pi(),onReject:pi(),onRemove:pi(),remove:pi(),supportServerRender:Pa(),disabled:Pa(),prefixCls:String,customRequest:pi(),withCredentials:Pa(),openFileDialogOnClick:Pa(),locale:To(),id:String,previewFile:pi(),transformFile:pi(),iconRender:pi(),isImageUrl:pi(),progress:To(),itemRender:pi(),maxCount:Number,height:$l([Number,String]),removeIcon:pi(),downloadIcon:pi(),previewIcon:pi()}}function Bqt(){return{listType:Us(),onPreview:pi(),onDownload:pi(),onRemove:pi(),items:nc(),progress:To(),prefixCls:Us(),showRemoveIcon:Pa(),showDownloadIcon:Pa(),showPreviewIcon:Pa(),removeIcon:pi(),downloadIcon:pi(),previewIcon:pi(),locale:To(void 0),previewFile:pi(),iconRender:pi(),isImageUrl:pi(),appendAction:pi(),appendActionVisible:Pa(),itemRender:pi()}}function cG(e){return $e($e({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function AG(e,t){const r=[...t],n=r.findIndex(i=>{let{uid:a}=i;return a===e.uid});return n===-1?r.push(e):r[n]=e,r}function _oe(e,t){const r=e.uid!==void 0?"uid":"name";return t.filter(n=>n[r]===e[r])[0]}function xqt(e,t){const r=e.uid!==void 0?"uid":"name",n=t.filter(i=>i[r]!==e[r]);return n.length===t.length?null:n}const Sqt=function(){const t=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[""])[0]},Ict=e=>e.indexOf("image/")===0,kqt=e=>{if(e.type&&!e.thumbUrl)return Ict(e.type);const t=e.thumbUrl||e.url||"",r=Sqt(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(r)?!0:!(/^data:/.test(t)||r)},Fx=200;function Qqt(e){return new Promise(t=>{if(!e.type||!Ict(e.type)){t("");return}const r=document.createElement("canvas");r.width=Fx,r.height=Fx,r.style.cssText=`position: fixed; left: 0; top: 0; width: ${Fx}px; height: ${Fx}px; z-index: 9999; display: none;`,document.body.appendChild(r);const n=r.getContext("2d"),i=new Image;if(i.onload=()=>{const{width:a,height:o}=i;let s=Fx,l=Fx,u=0,c=0;a>o?(l=o*(Fx/a),c=-(l-s)/2):(s=a*(Fx/o),u=-(s-l)/2),n.drawImage(i,u,c,s,l);const A=r.toDataURL();document.body.removeChild(r),t(A)},i.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const a=new FileReader;a.addEventListener("load",()=>{a.result&&(i.src=a.result)}),a.readAsDataURL(e)}else i.src=window.URL.createObjectURL(e)})}const _qt=()=>({prefixCls:String,locale:To(void 0),file:To(),items:nc(),listType:Us(),isImgUrl:pi(),showRemoveIcon:Pa(),showDownloadIcon:Pa(),showPreviewIcon:Pa(),removeIcon:pi(),downloadIcon:pi(),previewIcon:pi(),iconRender:pi(),actionIconRender:pi(),itemRender:pi(),onPreview:pi(),onClose:pi(),onDownload:pi(),progress:To()}),Tqt=$n({compatConfig:{MODE:3},name:"ListItem",inheritAttrs:!1,props:_qt(),setup(e,t){let{slots:r,attrs:n}=t;var i;const a=sn(!1),o=sn();Is(()=>{o.value=setTimeout(()=>{a.value=!0},300)}),el(()=>{clearTimeout(o.value)});const s=sn((i=e.file)===null||i===void 0?void 0:i.status);di(()=>{var c;return(c=e.file)===null||c===void 0?void 0:c.status},c=>{c!=="removed"&&(s.value=c)});const{rootPrefixCls:l}=gs("upload",e),u=vt(()=>p5(`${l.value}-fade`));return()=>{var c,A;const{prefixCls:f,locale:h,listType:g,file:p,items:m,progress:b,iconRender:C=r.iconRender,actionIconRender:E=r.actionIconRender,itemRender:_=r.itemRender,isImgUrl:F,showPreviewIcon:M,showRemoveIcon:N,showDownloadIcon:P,previewIcon:j=r.previewIcon,removeIcon:z=r.removeIcon,downloadIcon:W=r.downloadIcon,onPreview:Y,onDownload:ee,onClose:q}=e,{class:ae,style:se}=n,de=C({file:p});let Ae=De("div",{class:`${f}-text-icon`},[de]);if(g==="picture"||g==="picture-card")if(s.value==="uploading"||!p.thumbUrl&&!p.url){const st={[`${f}-list-item-thumbnail`]:!0,[`${f}-list-item-file`]:s.value!=="uploading"};Ae=De("div",{class:st},[de])}else{const st=F!=null&&F(p)?De("img",{src:p.thumbUrl||p.url,alt:p.name,class:`${f}-list-item-image`,crossorigin:p.crossOrigin},null):de,Re={[`${f}-list-item-thumbnail`]:!0,[`${f}-list-item-file`]:F&&!F(p)};Ae=De("a",{class:Re,onClick:dt=>Y(p,dt),href:p.url||p.thumbUrl,target:"_blank",rel:"noopener noreferrer"},[st])}const be={[`${f}-list-item`]:!0,[`${f}-list-item-${s.value}`]:!0},Le=typeof p.linkProps=="string"?JSON.parse(p.linkProps):p.linkProps,Ne=N?E({customIcon:z?z({file:p}):De(txe,null,null),callback:()=>q(p),prefixCls:f,title:h.removeFile}):null,ue=P&&s.value==="done"?E({customIcon:W?W({file:p}):De(rxe,null,null),callback:()=>ee(p),prefixCls:f,title:h.downloadFile}):null,Ke=g!=="picture-card"&&De("span",{key:"download-delete",class:[`${f}-list-item-actions`,{picture:g==="picture"}]},[ue,Ne]),Pe=`${f}-list-item-name`,je=p.url?[De("a",Ot(Ot({key:"view",target:"_blank",rel:"noopener noreferrer",class:Pe,title:p.name},Le),{},{href:p.url,onClick:st=>Y(p,st)}),[p.name]),Ke]:[De("span",{key:"view",class:Pe,onClick:st=>Y(p,st),title:p.name},[p.name]),Ke],Ye={pointerEvents:"none",opacity:.5},me=M?De("a",{href:p.url||p.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:p.url||p.thumbUrl?void 0:Ye,onClick:st=>Y(p,st),title:h.previewFile},[j?j({file:p}):De(LJ,null,null)]):null,Se=g==="picture-card"&&s.value!=="uploading"&&De("span",{class:`${f}-list-item-actions`},[me,s.value==="done"&&ue,Ne]),et=De("div",{class:be},[Ae,je,Se,a.value&&De(nm,u.value,{default:()=>[rp(De("div",{class:`${f}-list-item-progress`},["percent"in p?De(vWt,Ot(Ot({},b),{},{type:"line",percent:p.percent}),null):null]),[[_y,s.value==="uploading"]])]})]),nt={[`${f}-list-item-container`]:!0,[`${ae}`]:!!ae},tt=p.response&&typeof p.response=="string"?p.response:((c=p.error)===null||c===void 0?void 0:c.statusText)||((A=p.error)===null||A===void 0?void 0:A.message)||h.uploadError,ft=s.value==="error"?De(BL,{title:tt,getPopupContainer:st=>st.parentNode},{default:()=>[et]}):et;return De("div",{class:nt,style:se},[_?_({originNode:ft,file:p,fileList:m,actions:{download:ee.bind(null,p),preview:Y.bind(null,p),remove:q.bind(null,p)}}):ft])}}}),Dqt=(e,t)=>{let{slots:r}=t;var n;return Cg((n=r.default)===null||n===void 0?void 0:n.call(r))[0]},Fqt=$n({compatConfig:{MODE:3},name:"AUploadList",props:ju(Bqt(),{listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:Qqt,isImageUrl:kqt,items:[],appendActionVisible:!0}),setup(e,t){let{slots:r,expose:n}=t;const i=sn(!1),a=sA();Is(()=>{i.value==!0}),ks(()=>{e.listType!=="picture"&&e.listType!=="picture-card"||(e.items||[]).forEach(p=>{typeof document>"u"||typeof window>"u"||!window.FileReader||!window.File||!(p.originFileObj instanceof File||p.originFileObj instanceof Blob)||p.thumbUrl!==void 0||(p.thumbUrl="",e.previewFile&&e.previewFile(p.originFileObj).then(m=>{p.thumbUrl=m||"",a.update()}))})});const o=(p,m)=>{if(e.onPreview)return m==null||m.preventDefault(),e.onPreview(p)},s=p=>{typeof e.onDownload=="function"?e.onDownload(p):p.url&&window.open(p.url)},l=p=>{var m;(m=e.onRemove)===null||m===void 0||m.call(e,p)},u=p=>{let{file:m}=p;const b=e.iconRender||r.iconRender;if(b)return b({file:m,listType:e.listType});const C=m.status==="uploading",E=e.isImageUrl&&e.isImageUrl(m)?De(cxe,null,null):De(ixe,null,null);let _=De(C?Fy:uxe,null,null);return e.listType==="picture"?_=C?De(Fy,null,null):E:e.listType==="picture-card"&&(_=C?e.locale.uploading:E),_},c=p=>{const{customIcon:m,callback:b,prefixCls:C,title:E}=p,_={type:"text",size:"small",title:E,onClick:()=>{b()},class:`${C}-list-item-action`};return l0(m)?De(ep,_,{icon:()=>m}):De(ep,_,{default:()=>[De("span",null,[m])]})};n({handlePreview:o,handleDownload:s});const{prefixCls:A,rootPrefixCls:f}=gs("upload",e),h=vt(()=>({[`${A.value}-list`]:!0,[`${A.value}-list-${e.listType}`]:!0})),g=vt(()=>{const p=$e({},xJ(`${f.value}-motion-collapse`));delete p.onAfterAppear,delete p.onAfterEnter,delete p.onAfterLeave;const m=$e($e({},dJ(`${A.value}-${e.listType==="picture-card"?"animate-inline":"animate"}`)),{class:h.value,appear:i.value});return e.listType!=="picture-card"?$e($e({},p),m):m});return()=>{const{listType:p,locale:m,isImageUrl:b,items:C=[],showPreviewIcon:E,showRemoveIcon:_,showDownloadIcon:F,removeIcon:M,previewIcon:N,downloadIcon:P,progress:j,appendAction:z,itemRender:W,appendActionVisible:Y}=e,ee=z==null?void 0:z();return De(gL,Ot(Ot({},g.value),{},{tag:"div"}),{default:()=>[C.map(q=>{const{uid:ae}=q;return De(Tqt,{key:ae,locale:m,prefixCls:A.value,file:q,items:C,progress:j,listType:p,isImgUrl:b,showPreviewIcon:E,showRemoveIcon:_,showDownloadIcon:F,onPreview:o,onDownload:s,onClose:l,removeIcon:M,previewIcon:N,downloadIcon:P,itemRender:W},$e($e({},r),{iconRender:u,actionIconRender:c}))}),z?rp(De(Dqt,{key:"__ant_upload_appendAction"},{default:()=>ee}),[[_y,!!Y]]):null]})}}}),Rqt=e=>{const{componentCls:t,iconCls:r}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:`${e.padding}px 0`},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[r]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${e.marginXXS}px`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{cursor:"not-allowed",[`p${t}-drag-icon ${r}, p${t}-text, p${t}-hint `]:{color:e.colorTextDisabled}}}}}},Mqt=e=>{const{componentCls:t,antCls:r,iconCls:n,fontSize:i,lineHeight:a}=e,o=`${t}-list-item`,s=`${o}-actions`,l=`${o}-action`,u=Math.round(i*a);return{[`${t}-wrapper`]:{[`${t}-list`]:$e($e({},y6()),{lineHeight:e.lineHeight,[o]:{position:"relative",height:e.lineHeight*i,marginTop:e.marginXS,fontSize:i,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,"&:hover":{backgroundColor:e.controlItemBgHover},[`${o}-name`]:$e($e({},qE),{padding:`0 ${e.paddingXS}px`,lineHeight:a,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{[l]:{opacity:0},[`${l}${r}-btn-sm`]:{height:u,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[` ${l}:focus, &.picture ${l} `]:{opacity:1},[n]:{color:e.colorTextDescription,transition:`all ${e.motionDurationSlow}`},[`&:hover ${n}`]:{color:e.colorText}},[`${t}-icon ${n}`]:{color:e.colorTextDescription,fontSize:i},[`${o}-progress`]:{position:"absolute",bottom:-e.uploadProgressOffset,width:"100%",paddingInlineStart:i+e.paddingXS,fontSize:i,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${o}:hover ${l}`]:{opacity:1,color:e.colorText},[`${o}-error`]:{color:e.colorError,[`${o}-name, ${t}-icon ${n}`]:{color:e.colorError},[s]:{[`${n}, ${n}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},XTe=new vl("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),ZTe=new vl("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}}),Oqt=e=>{const{componentCls:t}=e,r=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${r}-appear, ${r}-enter, ${r}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${r}-appear, ${r}-enter`]:{animationName:XTe},[`${r}-leave`]:{animationName:ZTe}}},XTe,ZTe]},Nqt=e=>{const{componentCls:t,iconCls:r,uploadThumbnailSize:n,uploadProgressOffset:i}=e,a=`${t}-list`,o=`${a}-item`;return{[`${t}-wrapper`]:{[`${a}${a}-picture, ${a}${a}-picture-card`]:{[o]:{position:"relative",height:n+e.lineWidth*2+e.paddingXS*2,padding:e.paddingXS,border:`${e.lineWidth}px ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${o}-thumbnail`]:$e($e({},qE),{width:n,height:n,lineHeight:`${n+e.paddingSM}px`,textAlign:"center",flex:"none",[r]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${o}-progress`]:{bottom:i,width:`calc(100% - ${e.paddingSM*2}px)`,marginTop:0,paddingInlineStart:n+e.paddingXS}},[`${o}-error`]:{borderColor:e.colorError,[`${o}-thumbnail ${r}`]:{"svg path[fill='#e6f7ff']":{fill:e.colorErrorBg},"svg path[fill='#1890ff']":{fill:e.colorError}}},[`${o}-uploading`]:{borderStyle:"dashed",[`${o}-name`]:{marginBottom:i}}}}}},Lqt=e=>{const{componentCls:t,iconCls:r,fontSizeLG:n,colorTextLightSolid:i}=e,a=`${t}-list`,o=`${a}-item`,s=e.uploadPicCardSize;return{[`${t}-wrapper${t}-picture-card-wrapper`]:$e($e({},y6()),{display:"inline-block",width:"100%",[`${t}${t}-select`]:{width:s,height:s,marginInlineEnd:e.marginXS,marginBottom:e.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${e.lineWidth}px dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card`]:{[`${a}-item-container`]:{display:"inline-block",width:s,height:s,marginBlock:`0 ${e.marginXS}px`,marginInline:`0 ${e.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[o]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${e.paddingXS*2}px)`,height:`calc(100% - ${e.paddingXS*2}px)`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${o}:hover`]:{[`&::before, ${o}-actions`]:{opacity:1}},[`${o}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`${r}-eye, ${r}-download, ${r}-delete`]:{zIndex:10,width:n,margin:`0 ${e.marginXXS}px`,fontSize:n,cursor:"pointer",transition:`all ${e.motionDurationSlow}`}},[`${o}-actions, ${o}-actions:hover`]:{[`${r}-eye, ${r}-download, ${r}-delete`]:{color:new Rc(i).setAlpha(.65).toRgbString(),"&:hover":{color:i}}},[`${o}-thumbnail, ${o}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${o}-name`]:{display:"none",textAlign:"center"},[`${o}-file + ${o}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${e.paddingXS*2}px)`},[`${o}-uploading`]:{[`&${o}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${r}-eye, ${r}-download, ${r}-delete`]:{display:"none"}},[`${o}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${e.paddingXS*2}px)`,paddingInlineStart:0}}})}},Pqt=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},Uqt=e=>{const{componentCls:t,colorTextDisabled:r}=e;return{[`${t}-wrapper`]:$e($e({},gu(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-disabled`]:{color:r,cursor:"not-allowed"}})}},Hqt=Gu("Upload",e=>{const{fontSizeHeading3:t,fontSize:r,lineHeight:n,lineWidth:i,controlHeightLG:a}=e,o=Math.round(r*n),s=Al(e,{uploadThumbnailSize:t*2,uploadProgressOffset:o/2+i,uploadPicCardSize:a*2.55});return[Uqt(s),Rqt(s),Nqt(s),Lqt(s),Mqt(s),Oqt(s),Pqt(s),BJ(s)]});var jqt=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(c){try{u(n.next(c))}catch(A){o(A)}}function l(c){try{u(n.throw(c))}catch(A){o(A)}}function u(c){c.done?a(c.value):i(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})},Gqt=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{var W;return(W=A.value)!==null&&W!==void 0?W:l.value}),[h,g]=Vg(e.defaultFileList||[],{value:ws(e,"fileList"),postState:W=>{const Y=Date.now();return(W??[]).map((ee,q)=>(!ee.uid&&!Object.isFrozen(ee)&&(ee.uid=`__AUTO__${Y}_${q}__`),ee))}}),p=Hn("drop"),m=Hn(null);Is(()=>{BA(e.fileList!==void 0||n.value===void 0,"Upload","`value` is not a valid prop, do you mean `fileList`?"),BA(e.transformFile===void 0,"Upload","`transformFile` is deprecated. Please use `beforeUpload` directly."),BA(e.remove===void 0,"Upload","`remove` props is deprecated. Please use `remove` event.")});const b=(W,Y,ee)=>{var q,ae;let se=[...Y];e.maxCount===1?se=se.slice(-1):e.maxCount&&(se=se.slice(0,e.maxCount)),g(se);const de={file:W,fileList:se};ee&&(de.event=ee),(q=e["onUpdate:fileList"])===null||q===void 0||q.call(e,de.fileList),(ae=e.onChange)===null||ae===void 0||ae.call(e,de),a.onFieldChange()},C=(W,Y)=>jqt(this,void 0,void 0,function*(){const{beforeUpload:ee,transformFile:q}=e;let ae=W;if(ee){const se=yield ee(W,Y);if(se===!1)return!1;if(delete W[$R],se===$R)return Object.defineProperty(W,$R,{value:!0,configurable:!0}),!1;typeof se=="object"&&se&&(ae=se)}return q&&(ae=yield q(ae)),ae}),E=W=>{const Y=W.filter(ae=>!ae.file[$R]);if(!Y.length)return;const ee=Y.map(ae=>cG(ae.file));let q=[...h.value];ee.forEach(ae=>{q=AG(ae,q)}),ee.forEach((ae,se)=>{let de=ae;if(Y[se].parsedFile)ae.status="uploading";else{const{originFileObj:Ae}=ae;let be;try{be=new File([Ae],Ae.name,{type:Ae.type})}catch{be=new Blob([Ae],{type:Ae.type}),be.name=Ae.name,be.lastModifiedDate=new Date,be.lastModified=new Date().getTime()}be.uid=ae.uid,de=be}b(de,q)})},_=(W,Y,ee)=>{try{typeof W=="string"&&(W=JSON.parse(W))}catch{}if(!_oe(Y,h.value))return;const q=cG(Y);q.status="done",q.percent=100,q.response=W,q.xhr=ee;const ae=AG(q,h.value);b(q,ae)},F=(W,Y)=>{if(!_oe(Y,h.value))return;const ee=cG(Y);ee.status="uploading",ee.percent=W.percent;const q=AG(ee,h.value);b(ee,q,W)},M=(W,Y,ee)=>{if(!_oe(ee,h.value))return;const q=cG(ee);q.error=W,q.response=Y,q.status="error";const ae=AG(q,h.value);b(q,ae)},N=W=>{let Y;const ee=e.onRemove||e.remove;Promise.resolve(typeof ee=="function"?ee(W):ee).then(q=>{var ae,se;if(q===!1)return;const de=xqt(W,h.value);de&&(Y=$e($e({},W),{status:"removed"}),(ae=h.value)===null||ae===void 0||ae.forEach(Ae=>{const be=Y.uid!==void 0?"uid":"name";Ae[be]===Y[be]&&!Object.isFrozen(Ae)&&(Ae.status="removed")}),(se=m.value)===null||se===void 0||se.abort(Y),b(Y,de))})},P=W=>{var Y;p.value=W.type,W.type==="drop"&&((Y=e.onDrop)===null||Y===void 0||Y.call(e,W))};i({onBatchStart:E,onSuccess:_,onProgress:F,onError:M,fileList:h,upload:m});const[j]=SC("Upload",r2.Upload,vt(()=>e.locale)),z=(W,Y)=>{const{removeIcon:ee,previewIcon:q,downloadIcon:ae,previewFile:se,onPreview:de,onDownload:Ae,isImageUrl:be,progress:Le,itemRender:Ne,iconRender:ue,showUploadList:Ke}=e,{showDownloadIcon:Pe,showPreviewIcon:je,showRemoveIcon:Ye}=typeof Ke=="boolean"?{}:Ke;return Ke?De(Fqt,{prefixCls:o.value,listType:e.listType,items:h.value,previewFile:se,onPreview:de,onDownload:Ae,onRemove:N,showRemoveIcon:!f.value&&Ye,showPreviewIcon:je,showDownloadIcon:Pe,removeIcon:ee,previewIcon:q,downloadIcon:ae,iconRender:ue,locale:j.value,isImageUrl:be,progress:Le,itemRender:Ne,appendActionVisible:Y,appendAction:W},$e({},r)):W==null?void 0:W()};return()=>{var W,Y,ee;const{listType:q,type:ae}=e,{class:se,style:de}=n,Ae=Gqt(n,["class","style"]),be=$e($e($e({onBatchStart:E,onError:M,onProgress:F,onSuccess:_},Ae),e),{id:(W=e.id)!==null&&W!==void 0?W:a.id.value,prefixCls:o.value,beforeUpload:C,onChange:void 0,disabled:f.value});delete be.remove,(!r.default||f.value)&&delete be.id;const Le={[`${o.value}-rtl`]:s.value==="rtl"};if(ae==="drag"){const Pe=Vn(o.value,{[`${o.value}-drag`]:!0,[`${o.value}-drag-uploading`]:h.value.some(je=>je.status==="uploading"),[`${o.value}-drag-hover`]:p.value==="dragover",[`${o.value}-disabled`]:f.value,[`${o.value}-rtl`]:s.value==="rtl"},n.class,c.value);return u(De("span",Ot(Ot({},n),{},{class:Vn(`${o.value}-wrapper`,Le,se,c.value)}),[De("div",{class:Pe,onDrop:P,onDragover:P,onDragleave:P,style:n.style},[De(JTe,Ot(Ot({},be),{},{ref:m,class:`${o.value}-btn`}),Ot({default:()=>[De("div",{class:`${o.value}-drag-container`},[(Y=r.default)===null||Y===void 0?void 0:Y.call(r)])]},r))]),z()]))}const Ne=Vn(o.value,{[`${o.value}-select`]:!0,[`${o.value}-select-${q}`]:!0,[`${o.value}-disabled`]:f.value,[`${o.value}-rtl`]:s.value==="rtl"}),ue=sf((ee=r.default)===null||ee===void 0?void 0:ee.call(r)),Ke=Pe=>De("div",{class:Ne,style:Pe},[De(JTe,Ot(Ot({},be),{},{ref:m}),r)]);return u(q==="picture-card"?De("span",Ot(Ot({},n),{},{class:Vn(`${o.value}-wrapper`,`${o.value}-picture-card-wrapper`,Le,n.class,c.value)}),[z(Ke,!!ue.length)]):De("span",Ot(Ot({},n),{},{class:Vn(`${o.value}-wrapper`,Le,n.class,c.value)}),[Ke(ue.length?void 0:{display:"none"}),z()]))}}});var eDe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{const{height:i}=e,a=eDe(e,["height"]),{style:o}=n,s=eDe(n,["style"]),l=$e($e($e({},a),s),{type:"drag",style:$e($e({},o),{height:typeof i=="number"?`${i}px`:i})});return De(MK,l,r)}}}),xZr=$e(MK,{Dragger:Toe,LIST_IGNORE:$R,install(e){return e.component(MK.name,MK),e.component(Toe.name,Toe),e}});function $qt(){return Ect().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Ect(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const zqt=typeof Proxy=="function",Kqt="devtools-plugin:setup",Vqt="plugin:settings:set";let N_,cbe;function Wqt(){var e;return N_!==void 0||(typeof window<"u"&&window.performance?(N_=!0,cbe=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(N_=!0,cbe=globalThis.perf_hooks.performance):N_=!1),N_}function Yqt(){return Wqt()?cbe.now():Date.now()}class qqt{constructor(t,r){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=r;const n={};if(t.settings)for(const o in t.settings){const s=t.settings[o];n[o]=s.defaultValue}const i=`__vue-devtools-plugin-settings__${t.id}`;let a=Object.assign({},n);try{const o=localStorage.getItem(i),s=JSON.parse(o);Object.assign(a,s)}catch{}this.fallbacks={getSettings(){return a},setSettings(o){try{localStorage.setItem(i,JSON.stringify(o))}catch{}a=o},now(){return Yqt()}},r&&r.on(Vqt,(o,s)=>{o===this.plugin.id&&this.fallbacks.setSettings(s)}),this.proxiedOn=new Proxy({},{get:(o,s)=>this.target?this.target.on[s]:(...l)=>{this.onQueue.push({method:s,args:l})}}),this.proxiedTarget=new Proxy({},{get:(o,s)=>this.target?this.target[s]:s==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(s)?(...l)=>(this.targetQueue.push({method:s,args:l,resolve:()=>{}}),this.fallbacks[s](...l)):(...l)=>new Promise(u=>{this.targetQueue.push({method:s,args:l,resolve:u})})})}async setRealTarget(t){this.target=t;for(const r of this.onQueue)this.target.on[r.method](...r.args);for(const r of this.targetQueue)r.resolve(await this.target[r.method](...r.args))}}function Jqt(e,t){const r=e,n=Ect(),i=$qt(),a=zqt&&r.enableEarlyProxy;if(i&&(n.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!a))i.emit(Kqt,e,t);else{const o=a?new qqt(r,i):null;(n.__VUE_DEVTOOLS_PLUGINS__=n.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:r,setupFn:t,proxy:o}),o&&t(o.proxiedTarget)}}/*! * vue-router v4.5.0 * (c) 2024 Eduardo San Martin Morote * @license MIT */const M8=typeof document<"u";function Bct(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Xqt(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Bct(e.default)}const bc=Object.assign;function Doe(e,t){const r={};for(const n in t){const i=t[n];r[n]=i2(i)?i.map(e):e(i)}return r}const $M=()=>{},i2=Array.isArray,xct=/#/g,Zqt=/&/g,eJt=/\//g,tJt=/=/g,rJt=/\?/g,Sct=/\+/g,nJt=/%5B/g,iJt=/%5D/g,kct=/%5E/g,aJt=/%60/g,Qct=/%7B/g,oJt=/%7C/g,_ct=/%7D/g,sJt=/%20/g;function xxe(e){return encodeURI(""+e).replace(oJt,"|").replace(nJt,"[").replace(iJt,"]")}function lJt(e){return xxe(e).replace(Qct,"{").replace(_ct,"}").replace(kct,"^")}function Abe(e){return xxe(e).replace(Sct,"%2B").replace(sJt,"+").replace(xct,"%23").replace(Zqt,"%26").replace(aJt,"`").replace(Qct,"{").replace(_ct,"}").replace(kct,"^")}function uJt(e){return Abe(e).replace(tJt,"%3D")}function cJt(e){return xxe(e).replace(xct,"%23").replace(rJt,"%3F")}function AJt(e){return e==null?"":cJt(e).replace(eJt,"%2F")}function JO(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const fJt=/\/$/,hJt=e=>e.replace(fJt,"");function Foe(e,t,r="/"){let n,i={},a="",o="";const s=t.indexOf("#");let l=t.indexOf("?");return s=0&&(l=-1),l>-1&&(n=t.slice(0,l),a=t.slice(l+1,s>-1?s:t.length),i=e(a)),s>-1&&(n=n||t.slice(0,s),o=t.slice(s,t.length)),n=vJt(n??t,r),{fullPath:n+(a&&"?")+a+o,path:n,query:i,hash:JO(o)}}function dJt(e,t){const r=t.query?e(t.query):"";return t.path+(r&&"?")+r+(t.hash||"")}function tDe(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function gJt(e,t,r){const n=t.matched.length-1,i=r.matched.length-1;return n>-1&&n===i&&J9(t.matched[n],r.matched[i])&&Tct(t.params,r.params)&&e(t.query)===e(r.query)&&t.hash===r.hash}function J9(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Tct(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(!pJt(e[r],t[r]))return!1;return!0}function pJt(e,t){return i2(e)?rDe(e,t):i2(t)?rDe(t,e):e===t}function rDe(e,t){return i2(t)?e.length===t.length&&e.every((r,n)=>r===t[n]):e.length===1&&e[0]===t}function vJt(e,t){if(e.startsWith("/"))return e;if(!e)return t;const r=t.split("/"),n=e.split("/"),i=n[n.length-1];(i===".."||i===".")&&n.push("");let a=r.length-1,o,s;for(o=0;o1&&a--;else break;return r.slice(0,a).join("/")+"/"+n.slice(o).join("/")}const Rx={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var XO;(function(e){e.pop="pop",e.push="push"})(XO||(XO={}));var zM;(function(e){e.back="back",e.forward="forward",e.unknown=""})(zM||(zM={}));function mJt(e){if(!e)if(M8){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),hJt(e)}const yJt=/^[^#]+#/;function bJt(e,t){return e.replace(yJt,"#")+t}function wJt(e,t){const r=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-r.left-(t.left||0),top:n.top-r.top-(t.top||0)}}const WJ=()=>({left:window.scrollX,top:window.scrollY});function CJt(e){let t;if("el"in e){const r=e.el,n=typeof r=="string"&&r.startsWith("#"),i=typeof r=="string"?n?document.getElementById(r.slice(1)):document.querySelector(r):r;if(!i)return;t=wJt(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function nDe(e,t){return(history.state?history.state.position-t:-1)+e}const fbe=new Map;function IJt(e,t){fbe.set(e,t)}function EJt(e){const t=fbe.get(e);return fbe.delete(e),t}let BJt=()=>location.protocol+"//"+location.host;function Dct(e,t){const{pathname:r,search:n,hash:i}=t,a=e.indexOf("#");if(a>-1){let s=i.includes(e.slice(a))?e.slice(a).length:1,l=i.slice(s);return l[0]!=="/"&&(l="/"+l),tDe(l,"")}return tDe(r,e)+n+i}function xJt(e,t,r,n){let i=[],a=[],o=null;const s=({state:f})=>{const h=Dct(e,location),g=r.value,p=t.value;let m=0;if(f){if(r.value=h,t.value=f,o&&o===g){o=null;return}m=p?f.position-p.position:0}else n(h);i.forEach(b=>{b(r.value,g,{delta:m,type:XO.pop,direction:m?m>0?zM.forward:zM.back:zM.unknown})})};function l(){o=r.value}function u(f){i.push(f);const h=()=>{const g=i.indexOf(f);g>-1&&i.splice(g,1)};return a.push(h),h}function c(){const{history:f}=window;f.state&&f.replaceState(bc({},f.state,{scroll:WJ()}),"")}function A(){for(const f of a)f();a=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",c,{passive:!0}),{pauseListeners:l,listen:u,destroy:A}}function iDe(e,t,r,n=!1,i=!1){return{back:e,current:t,forward:r,replaced:n,position:window.history.length,scroll:i?WJ():null}}function SJt(e){const{history:t,location:r}=window,n={value:Dct(e,r)},i={value:t.state};i.value||a(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(l,u,c){const A=e.indexOf("#"),f=A>-1?(r.host&&document.querySelector("base")?e:e.slice(A))+l:BJt()+e+l;try{t[c?"replaceState":"pushState"](u,"",f),i.value=u}catch(h){console.error(h),r[c?"replace":"assign"](f)}}function o(l,u){const c=bc({},t.state,iDe(i.value.back,l,i.value.forward,!0),u,{position:i.value.position});a(l,c,!0),n.value=l}function s(l,u){const c=bc({},i.value,t.state,{forward:l,scroll:WJ()});a(c.current,c,!0);const A=bc({},iDe(n.value,l,null),{position:c.position+1},u);a(l,A,!1),n.value=l}return{location:n,state:i,push:s,replace:o}}function kJt(e){e=mJt(e);const t=SJt(e),r=xJt(e,t.state,t.location,t.replace);function n(a,o=!0){o||r.pauseListeners(),history.go(a)}const i=bc({location:"",base:e,go:n,createHref:bJt.bind(null,e)},t,r);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function SZr(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),kJt(e)}function QJt(e){return typeof e=="string"||e&&typeof e=="object"}function Fct(e){return typeof e=="string"||typeof e=="symbol"}const Rct=Symbol("");var aDe;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(aDe||(aDe={}));function X9(e,t){return bc(new Error,{type:e,[Rct]:!0},t)}function qI(e,t){return e instanceof Error&&Rct in e&&(t==null||!!(e.type&t))}const oDe="[^/]+?",_Jt={sensitive:!1,strict:!1,start:!0,end:!0},TJt=/[.+*?^${}()[\]/\\]/g;function DJt(e,t){const r=bc({},_Jt,t),n=[];let i=r.start?"^":"";const a=[];for(const u of e){const c=u.length?[]:[90];r.strict&&!u.length&&(i+="/");for(let A=0;At.length?t.length===1&&t[0]===80?1:-1:0}function Mct(e,t){let r=0;const n=e.score,i=t.score;for(;r0&&t[t.length-1]<0}const RJt={type:0,value:""},MJt=/[a-zA-Z0-9_]/;function OJt(e){if(!e)return[[]];if(e==="/")return[[RJt]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${r})/"${u}": ${h}`)}let r=0,n=r;const i=[];let a;function o(){a&&i.push(a),a=[]}let s=0,l,u="",c="";function A(){u&&(r===0?a.push({type:0,value:u}):r===1||r===2||r===3?(a.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function f(){u+=l}for(;s{o(E)}:$M}function o(A){if(Fct(A)){const f=n.get(A);f&&(n.delete(A),r.splice(r.indexOf(f),1),f.children.forEach(o),f.alias.forEach(o))}else{const f=r.indexOf(A);f>-1&&(r.splice(f,1),A.record.name&&n.delete(A.record.name),A.children.forEach(o),A.alias.forEach(o))}}function s(){return r}function l(A){const f=HJt(A,r);r.splice(f,0,A),A.record.name&&!cDe(A)&&n.set(A.record.name,A)}function u(A,f){let h,g={},p,m;if("name"in A&&A.name){if(h=n.get(A.name),!h)throw X9(1,{location:A});m=h.record.name,g=bc(lDe(f.params,h.keys.filter(E=>!E.optional).concat(h.parent?h.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),A.params&&lDe(A.params,h.keys.map(E=>E.name))),p=h.stringify(g)}else if(A.path!=null)p=A.path,h=r.find(E=>E.re.test(p)),h&&(g=h.parse(p),m=h.record.name);else{if(h=f.name?n.get(f.name):r.find(E=>E.re.test(f.path)),!h)throw X9(1,{location:A,currentLocation:f});m=h.record.name,g=bc({},f.params,A.params),p=h.stringify(g)}const b=[];let C=h;for(;C;)b.unshift(C.record),C=C.parent;return{name:m,path:p,params:g,matched:b,meta:UJt(b)}}e.forEach(A=>a(A));function c(){r.length=0,n.clear()}return{addRoute:a,resolve:u,removeRoute:o,clearRoutes:c,getRoutes:s,getRecordMatcher:i}}function lDe(e,t){const r={};for(const n of t)n in e&&(r[n]=e[n]);return r}function uDe(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:PJt(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function PJt(e){const t={},r=e.props||!1;if("component"in e)t.default=r;else for(const n in e.components)t[n]=typeof r=="object"?r[n]:r;return t}function cDe(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function UJt(e){return e.reduce((t,r)=>bc(t,r.meta),{})}function ADe(e,t){const r={};for(const n in e)r[n]=n in t?t[n]:e[n];return r}function HJt(e,t){let r=0,n=t.length;for(;r!==n;){const a=r+n>>1;Mct(e,t[a])<0?n=a:r=a+1}const i=jJt(e);return i&&(n=t.lastIndexOf(i,n-1)),n}function jJt(e){let t=e;for(;t=t.parent;)if(Oct(t)&&Mct(e,t)===0)return t}function Oct({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function GJt(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;ia&&Abe(a)):[n&&Abe(n)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+r,a!=null&&(t+="="+a))})}return t}function $Jt(e){const t={};for(const r in e){const n=e[r];n!==void 0&&(t[r]=i2(n)?n.map(i=>i==null?null:""+i):n==null?n:""+n)}return t}const zJt=Symbol(""),hDe=Symbol(""),YJ=Symbol(""),Sxe=Symbol(""),hbe=Symbol("");function MF(){let e=[];function t(n){return e.push(n),()=>{const i=e.indexOf(n);i>-1&&e.splice(i,1)}}function r(){e=[]}return{add:t,list:()=>e.slice(),reset:r}}function l3(e,t,r,n,i,a=o=>o()){const o=n&&(n.enterCallbacks[i]=n.enterCallbacks[i]||[]);return()=>new Promise((s,l)=>{const u=f=>{f===!1?l(X9(4,{from:r,to:t})):f instanceof Error?l(f):QJt(f)?l(X9(2,{from:t,to:f})):(o&&n.enterCallbacks[i]===o&&typeof f=="function"&&o.push(f),s())},c=a(()=>e.call(n&&n.instances[i],t,r,u));let A=Promise.resolve(c);e.length<3&&(A=A.then(u)),A.catch(f=>l(f))})}function Roe(e,t,r,n,i=a=>a()){const a=[];for(const o of e)for(const s in o.components){let l=o.components[s];if(!(t!=="beforeRouteEnter"&&!o.instances[s]))if(Bct(l)){const c=(l.__vccOpts||l)[t];c&&a.push(l3(c,r,n,o,s,i))}else{let u=l();a.push(()=>u.then(c=>{if(!c)throw new Error(`Couldn't resolve component "${s}" at "${o.path}"`);const A=Xqt(c)?c.default:c;o.mods[s]=c,o.components[s]=A;const h=(A.__vccOpts||A)[t];return h&&l3(h,r,n,o,s,i)()}))}}return a}function dDe(e){const t=Wo(YJ),r=Wo(Sxe),n=vt(()=>{const l=bA(e.to);return t.resolve(l)}),i=vt(()=>{const{matched:l}=n.value,{length:u}=l,c=l[u-1],A=r.matched;if(!c||!A.length)return-1;const f=A.findIndex(J9.bind(null,c));if(f>-1)return f;const h=gDe(l[u-2]);return u>1&&gDe(c)===h&&A[A.length-1].path!==h?A.findIndex(J9.bind(null,l[u-2])):f}),a=vt(()=>i.value>-1&&qJt(r.params,n.value.params)),o=vt(()=>i.value>-1&&i.value===r.matched.length-1&&Tct(r.params,n.value.params));function s(l={}){if(YJt(l)){const u=t[bA(e.replace)?"replace":"push"](bA(e.to)).catch($M);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:n,href:vt(()=>n.value.href),isActive:a,isExactActive:o,navigate:s}}function KJt(e){return e.length===1?e[0]:e}const VJt=$n({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:dDe,setup(e,{slots:t}){const r=uc(dDe(e)),{options:n}=Wo(YJ),i=vt(()=>({[pDe(e.activeClass,n.linkActiveClass,"router-link-active")]:r.isActive,[pDe(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:r.isExactActive}));return()=>{const a=t.default&&KJt(t.default(r));return e.custom?a:WE("a",{"aria-current":r.isExactActive?e.ariaCurrentValue:null,href:r.href,onClick:r.navigate,class:i.value},a)}}}),WJt=VJt;function YJt(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function qJt(e,t){for(const r in t){const n=t[r],i=e[r];if(typeof n=="string"){if(n!==i)return!1}else if(!i2(i)||i.length!==n.length||n.some((a,o)=>a!==i[o]))return!1}return!0}function gDe(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const pDe=(e,t,r)=>e??t??r,JJt=$n({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:r}){const n=Wo(hbe),i=vt(()=>e.route||n.value),a=Wo(hDe,0),o=vt(()=>{let u=bA(a);const{matched:c}=i.value;let A;for(;(A=c[u])&&!A.components;)u++;return u}),s=vt(()=>i.value.matched[o.value]);Es(hDe,vt(()=>o.value+1)),Es(zJt,s),Es(hbe,i);const l=Hn();return di(()=>[l.value,s.value,e.name],([u,c,A],[f,h,g])=>{c&&(c.instances[A]=u,h&&h!==c&&u&&u===f&&(c.leaveGuards.size||(c.leaveGuards=h.leaveGuards),c.updateGuards.size||(c.updateGuards=h.updateGuards))),u&&c&&(!h||!J9(c,h)||!f)&&(c.enterCallbacks[A]||[]).forEach(p=>p(u))},{flush:"post"}),()=>{const u=i.value,c=e.name,A=s.value,f=A&&A.components[c];if(!f)return vDe(r.default,{Component:f,route:u});const h=A.props[c],g=h?h===!0?u.params:typeof h=="function"?h(u):h:null,m=WE(f,bc({},g,t,{onVnodeUnmounted:b=>{b.component.isUnmounted&&(A.instances[c]=null)},ref:l}));return vDe(r.default,{Component:m,route:u})||m}}});function vDe(e,t){if(!e)return null;const r=e(t);return r.length===1?r[0]:r}const XJt=JJt;function kZr(e){const t=LJt(e.routes,e),r=e.parseQuery||GJt,n=e.stringifyQuery||fDe,i=e.history,a=MF(),o=MF(),s=MF(),l=sn(Rx);let u=Rx;M8&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Doe.bind(null,me=>""+me),A=Doe.bind(null,AJt),f=Doe.bind(null,JO);function h(me,Se){let et,nt;return Fct(me)?(et=t.getRecordMatcher(me),nt=Se):nt=me,t.addRoute(nt,et)}function g(me){const Se=t.getRecordMatcher(me);Se&&t.removeRoute(Se)}function p(){return t.getRoutes().map(me=>me.record)}function m(me){return!!t.getRecordMatcher(me)}function b(me,Se){if(Se=bc({},Se||l.value),typeof me=="string"){const Re=Foe(r,me,Se.path),dt=t.resolve({path:Re.path},Se),Oe=i.createHref(Re.fullPath);return bc(Re,dt,{params:f(dt.params),hash:JO(Re.hash),redirectedFrom:void 0,href:Oe})}let et;if(me.path!=null)et=bc({},me,{path:Foe(r,me.path,Se.path).path});else{const Re=bc({},me.params);for(const dt in Re)Re[dt]==null&&delete Re[dt];et=bc({},me,{params:A(Re)}),Se.params=A(Se.params)}const nt=t.resolve(et,Se),tt=me.hash||"";nt.params=c(f(nt.params));const ft=dJt(n,bc({},me,{hash:lJt(tt),path:nt.path})),st=i.createHref(ft);return bc({fullPath:ft,hash:tt,query:n===fDe?$Jt(me.query):me.query||{}},nt,{redirectedFrom:void 0,href:st})}function C(me){return typeof me=="string"?Foe(r,me,l.value.path):bc({},me)}function E(me,Se){if(u!==me)return X9(8,{from:Se,to:me})}function _(me){return N(me)}function F(me){return _(bc(C(me),{replace:!0}))}function M(me){const Se=me.matched[me.matched.length-1];if(Se&&Se.redirect){const{redirect:et}=Se;let nt=typeof et=="function"?et(me):et;return typeof nt=="string"&&(nt=nt.includes("?")||nt.includes("#")?nt=C(nt):{path:nt},nt.params={}),bc({query:me.query,hash:me.hash,params:nt.path!=null?{}:me.params},nt)}}function N(me,Se){const et=u=b(me),nt=l.value,tt=me.state,ft=me.force,st=me.replace===!0,Re=M(et);if(Re)return N(bc(C(Re),{state:typeof Re=="object"?bc({},tt,Re.state):tt,force:ft,replace:st}),Se||et);const dt=et;dt.redirectedFrom=Se;let Oe;return!ft&&gJt(n,nt,et)&&(Oe=X9(16,{to:dt,from:nt}),Ne(nt,nt,!0,!1)),(Oe?Promise.resolve(Oe):z(dt,nt)).catch(Ce=>qI(Ce)?qI(Ce,2)?Ce:Le(Ce):Ae(Ce,dt,nt)).then(Ce=>{if(Ce){if(qI(Ce,2))return N(bc({replace:st},C(Ce.to),{state:typeof Ce.to=="object"?bc({},tt,Ce.to.state):tt,force:ft}),Se||dt)}else Ce=Y(dt,nt,!0,st,tt);return W(dt,nt,Ce),Ce})}function P(me,Se){const et=E(me,Se);return et?Promise.reject(et):Promise.resolve()}function j(me){const Se=Pe.values().next().value;return Se&&typeof Se.runWithContext=="function"?Se.runWithContext(me):me()}function z(me,Se){let et;const[nt,tt,ft]=ZJt(me,Se);et=Roe(nt.reverse(),"beforeRouteLeave",me,Se);for(const Re of nt)Re.leaveGuards.forEach(dt=>{et.push(l3(dt,me,Se))});const st=P.bind(null,me,Se);return et.push(st),Ye(et).then(()=>{et=[];for(const Re of a.list())et.push(l3(Re,me,Se));return et.push(st),Ye(et)}).then(()=>{et=Roe(tt,"beforeRouteUpdate",me,Se);for(const Re of tt)Re.updateGuards.forEach(dt=>{et.push(l3(dt,me,Se))});return et.push(st),Ye(et)}).then(()=>{et=[];for(const Re of ft)if(Re.beforeEnter)if(i2(Re.beforeEnter))for(const dt of Re.beforeEnter)et.push(l3(dt,me,Se));else et.push(l3(Re.beforeEnter,me,Se));return et.push(st),Ye(et)}).then(()=>(me.matched.forEach(Re=>Re.enterCallbacks={}),et=Roe(ft,"beforeRouteEnter",me,Se,j),et.push(st),Ye(et))).then(()=>{et=[];for(const Re of o.list())et.push(l3(Re,me,Se));return et.push(st),Ye(et)}).catch(Re=>qI(Re,8)?Re:Promise.reject(Re))}function W(me,Se,et){s.list().forEach(nt=>j(()=>nt(me,Se,et)))}function Y(me,Se,et,nt,tt){const ft=E(me,Se);if(ft)return ft;const st=Se===Rx,Re=M8?history.state:{};et&&(nt||st?i.replace(me.fullPath,bc({scroll:st&&Re&&Re.scroll},tt)):i.push(me.fullPath,tt)),l.value=me,Ne(me,Se,et,st),Le()}let ee;function q(){ee||(ee=i.listen((me,Se,et)=>{if(!je.listening)return;const nt=b(me),tt=M(nt);if(tt){N(bc(tt,{replace:!0,force:!0}),nt).catch($M);return}u=nt;const ft=l.value;M8&&IJt(nDe(ft.fullPath,et.delta),WJ()),z(nt,ft).catch(st=>qI(st,12)?st:qI(st,2)?(N(bc(C(st.to),{force:!0}),nt).then(Re=>{qI(Re,20)&&!et.delta&&et.type===XO.pop&&i.go(-1,!1)}).catch($M),Promise.reject()):(et.delta&&i.go(-et.delta,!1),Ae(st,nt,ft))).then(st=>{st=st||Y(nt,ft,!1),st&&(et.delta&&!qI(st,8)?i.go(-et.delta,!1):et.type===XO.pop&&qI(st,20)&&i.go(-1,!1)),W(nt,ft,st)}).catch($M)}))}let ae=MF(),se=MF(),de;function Ae(me,Se,et){Le(me);const nt=se.list();return nt.length?nt.forEach(tt=>tt(me,Se,et)):console.error(me),Promise.reject(me)}function be(){return de&&l.value!==Rx?Promise.resolve():new Promise((me,Se)=>{ae.add([me,Se])})}function Le(me){return de||(de=!me,q(),ae.list().forEach(([Se,et])=>me?et(me):Se()),ae.reset()),me}function Ne(me,Se,et,nt){const{scrollBehavior:tt}=e;if(!M8||!tt)return Promise.resolve();const ft=!et&&EJt(nDe(me.fullPath,0))||(nt||!et)&&history.state&&history.state.scroll||null;return il().then(()=>tt(me,Se,ft)).then(st=>st&&CJt(st)).catch(st=>Ae(st,me,Se))}const ue=me=>i.go(me);let Ke;const Pe=new Set,je={currentRoute:l,listening:!0,addRoute:h,removeRoute:g,clearRoutes:t.clearRoutes,hasRoute:m,getRoutes:p,resolve:b,options:e,push:_,replace:F,go:ue,back:()=>ue(-1),forward:()=>ue(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:se.add,isReady:be,install(me){const Se=this;me.component("RouterLink",WJt),me.component("RouterView",XJt),me.config.globalProperties.$router=Se,Object.defineProperty(me.config.globalProperties,"$route",{enumerable:!0,get:()=>bA(l)}),M8&&!Ke&&l.value===Rx&&(Ke=!0,_(i.location).catch(tt=>{}));const et={};for(const tt in Rx)Object.defineProperty(et,tt,{get:()=>l.value[tt],enumerable:!0});me.provide(YJ,Se),me.provide(Sxe,WIe(et)),me.provide(hbe,l);const nt=me.unmount;Pe.add(me),me.unmount=function(){Pe.delete(me),Pe.size<1&&(u=Rx,ee&&ee(),ee=null,l.value=Rx,Ke=!1,de=!1),nt()}}};function Ye(me){return me.reduce((Se,et)=>Se.then(()=>j(et)),Promise.resolve())}return je}function ZJt(e,t){const r=[],n=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;oJ9(u,s))?n.push(s):r.push(s));const l=e.matched[o];l&&(t.matched.find(u=>J9(u,l))||i.push(l))}return[r,n,i]}function QZr(){return Wo(YJ)}function _Zr(e){return Wo(Sxe)}const eXt="modulepreload",tXt=function(e){return"/"+e},mDe={},dbe=function(t,r,n){let i=Promise.resolve();if(r&&r.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),s=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.allSettled(r.map(l=>{if(l=tXt(l),l in mDe)return;mDe[l]=!0;const u=l.endsWith(".css"),c=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${c}`))return;const A=document.createElement("link");if(A.rel=u?"stylesheet":eXt,u||(A.as="script"),A.crossOrigin="",A.href=l,s&&A.setAttribute("nonce",s),document.head.appendChild(A),u)return new Promise((f,h)=>{A.addEventListener("load",f),A.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${l}`)))})}))}function a(o){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o}return i.then(o=>{for(const s of o||[])s.status==="rejected"&&a(s.reason);return t().catch(a)})};/*! * vuex v4.0.2 * (c) 2021 Evan You * @license MIT */var Nct="store";function TZr(e){return e===void 0&&(e=null),Wo(e!==null?e:Nct)}function Y7(e,t){Object.keys(e).forEach(function(r){return t(e[r],r)})}function rXt(e){return e!==null&&typeof e=="object"}function nXt(e){return e&&typeof e.then=="function"}function iXt(e,t){return function(){return e(t)}}function Lct(e,t,r){return t.indexOf(e)<0&&(r&&r.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function Pct(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var r=e.state;qJ(e,r,[],e._modules.root,!0),kxe(e,r,t)}function kxe(e,t,r){var n=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,a={};Y7(i,function(o,s){a[s]=iXt(o,e),Object.defineProperty(e.getters,s,{get:function(){return a[s]()},enumerable:!0})}),e._state=uc({data:t}),e.strict&&uXt(e),n&&r&&e._withCommit(function(){n.data=null})}function qJ(e,t,r,n,i){var a=!r.length,o=e._modules.getNamespace(r);if(n.namespaced&&(e._modulesNamespaceMap[o],e._modulesNamespaceMap[o]=n),!a&&!i){var s=Qxe(t,r.slice(0,-1)),l=r[r.length-1];e._withCommit(function(){s[l]=n.state})}var u=n.context=aXt(e,o,r);n.forEachMutation(function(c,A){var f=o+A;oXt(e,f,c,u)}),n.forEachAction(function(c,A){var f=c.root?A:o+A,h=c.handler||c;sXt(e,f,h,u)}),n.forEachGetter(function(c,A){var f=o+A;lXt(e,f,c,u)}),n.forEachChild(function(c,A){qJ(e,t,r.concat(A),c,i)})}function aXt(e,t,r){var n=t==="",i={dispatch:n?e.dispatch:function(a,o,s){var l=DW(a,o,s),u=l.payload,c=l.options,A=l.type;return(!c||!c.root)&&(A=t+A),e.dispatch(A,u)},commit:n?e.commit:function(a,o,s){var l=DW(a,o,s),u=l.payload,c=l.options,A=l.type;(!c||!c.root)&&(A=t+A),e.commit(A,u,c)}};return Object.defineProperties(i,{getters:{get:n?function(){return e.getters}:function(){return Uct(e,t)}},state:{get:function(){return Qxe(e.state,r)}}}),i}function Uct(e,t){if(!e._makeLocalGettersCache[t]){var r={},n=t.length;Object.keys(e.getters).forEach(function(i){if(i.slice(0,n)===t){var a=i.slice(n);Object.defineProperty(r,a,{get:function(){return e.getters[i]},enumerable:!0})}}),e._makeLocalGettersCache[t]=r}return e._makeLocalGettersCache[t]}function oXt(e,t,r,n){var i=e._mutations[t]||(e._mutations[t]=[]);i.push(function(o){r.call(e,n.state,o)})}function sXt(e,t,r,n){var i=e._actions[t]||(e._actions[t]=[]);i.push(function(o){var s=r.call(e,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:e.getters,rootState:e.state},o);return nXt(s)||(s=Promise.resolve(s)),e._devtoolHook?s.catch(function(l){throw e._devtoolHook.emit("vuex:error",l),l}):s})}function lXt(e,t,r,n){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(a){return r(n.state,n.getters,a.state,a.getters)})}function uXt(e){di(function(){return e._state.data},function(){},{deep:!0,flush:"sync"})}function Qxe(e,t){return t.reduce(function(r,n){return r[n]},e)}function DW(e,t,r){return rXt(e)&&e.type&&(r=t,t=e,e=e.type),{type:e,payload:t,options:r}}var cXt="vuex bindings",yDe="vuex:mutations",Moe="vuex:actions",L_="vuex",AXt=0;function fXt(e,t){Jqt({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[cXt]},function(r){r.addTimelineLayer({id:yDe,label:"Vuex Mutations",color:bDe}),r.addTimelineLayer({id:Moe,label:"Vuex Actions",color:bDe}),r.addInspector({id:L_,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),r.on.getInspectorTree(function(n){if(n.app===e&&n.inspectorId===L_)if(n.filter){var i=[];$ct(i,t._modules.root,n.filter,""),n.rootNodes=i}else n.rootNodes=[Gct(t._modules.root,"")]}),r.on.getInspectorState(function(n){if(n.app===e&&n.inspectorId===L_){var i=n.nodeId;Uct(t,i),n.state=gXt(vXt(t._modules,i),i==="root"?t.getters:t._makeLocalGettersCache,i)}}),r.on.editInspectorState(function(n){if(n.app===e&&n.inspectorId===L_){var i=n.nodeId,a=n.path;i!=="root"&&(a=i.split("/").filter(Boolean).concat(a)),t._withCommit(function(){n.set(t._state.data,a,n.state.value)})}}),t.subscribe(function(n,i){var a={};n.payload&&(a.payload=n.payload),a.state=i,r.notifyComponentUpdate(),r.sendInspectorTree(L_),r.sendInspectorState(L_),r.addTimelineEvent({layerId:yDe,event:{time:Date.now(),title:n.type,data:a}})}),t.subscribeAction({before:function(n,i){var a={};n.payload&&(a.payload=n.payload),n._id=AXt++,n._time=Date.now(),a.state=i,r.addTimelineEvent({layerId:Moe,event:{time:n._time,title:n.type,groupId:n._id,subtitle:"start",data:a}})},after:function(n,i){var a={},o=Date.now()-n._time;a.duration={_custom:{type:"duration",display:o+"ms",tooltip:"Action duration",value:o}},n.payload&&(a.payload=n.payload),a.state=i,r.addTimelineEvent({layerId:Moe,event:{time:Date.now(),title:n.type,groupId:n._id,subtitle:"end",data:a}})}})})}var bDe=8702998,hXt=6710886,dXt=16777215,Hct={label:"namespaced",textColor:dXt,backgroundColor:hXt};function jct(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function Gct(e,t){return{id:t||"root",label:jct(t),tags:e.namespaced?[Hct]:[],children:Object.keys(e._children).map(function(r){return Gct(e._children[r],t+r+"/")})}}function $ct(e,t,r,n){n.includes(r)&&e.push({id:n||"root",label:n.endsWith("/")?n.slice(0,n.length-1):n||"Root",tags:t.namespaced?[Hct]:[]}),Object.keys(t._children).forEach(function(i){$ct(e,t._children[i],r,n+i+"/")})}function gXt(e,t,r){t=r==="root"?t:t[r];var n=Object.keys(t),i={state:Object.keys(e.state).map(function(o){return{key:o,editable:!0,value:e.state[o]}})};if(n.length){var a=pXt(t);i.getters=Object.keys(a).map(function(o){return{key:o.endsWith("/")?jct(o):o,editable:!1,value:gbe(function(){return a[o]})}})}return i}function pXt(e){var t={};return Object.keys(e).forEach(function(r){var n=r.split("/");if(n.length>1){var i=t,a=n.pop();n.forEach(function(o){i[o]||(i[o]={_custom:{value:{},display:o,tooltip:"Module",abstract:!0}}),i=i[o]._custom.value}),i[a]=gbe(function(){return e[r]})}else t[r]=gbe(function(){return e[r]})}),t}function vXt(e,t){var r=t.split("/").filter(function(n){return n});return r.reduce(function(n,i,a){var o=n[i];if(!o)throw new Error('Missing module "'+i+'" for path "'+t+'".');return a===r.length-1?o:o._children},t==="root"?e:e.root._children)}function gbe(e){try{return e()}catch(t){return t}}var h2=function(t,r){this.runtime=r,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=(typeof n=="function"?n():n)||{}},zct={namespaced:{configurable:!0}};zct.namespaced.get=function(){return!!this._rawModule.namespaced};h2.prototype.addChild=function(t,r){this._children[t]=r};h2.prototype.removeChild=function(t){delete this._children[t]};h2.prototype.getChild=function(t){return this._children[t]};h2.prototype.hasChild=function(t){return t in this._children};h2.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)};h2.prototype.forEachChild=function(t){Y7(this._children,t)};h2.prototype.forEachGetter=function(t){this._rawModule.getters&&Y7(this._rawModule.getters,t)};h2.prototype.forEachAction=function(t){this._rawModule.actions&&Y7(this._rawModule.actions,t)};h2.prototype.forEachMutation=function(t){this._rawModule.mutations&&Y7(this._rawModule.mutations,t)};Object.defineProperties(h2.prototype,zct);var nQ=function(t){this.register([],t,!1)};nQ.prototype.get=function(t){return t.reduce(function(r,n){return r.getChild(n)},this.root)};nQ.prototype.getNamespace=function(t){var r=this.root;return t.reduce(function(n,i){return r=r.getChild(i),n+(r.namespaced?i+"/":"")},"")};nQ.prototype.update=function(t){Kct([],this.root,t)};nQ.prototype.register=function(t,r,n){var i=this;n===void 0&&(n=!0);var a=new h2(r,n);if(t.length===0)this.root=a;else{var o=this.get(t.slice(0,-1));o.addChild(t[t.length-1],a)}r.modules&&Y7(r.modules,function(s,l){i.register(t.concat(l),s,n)})};nQ.prototype.unregister=function(t){var r=this.get(t.slice(0,-1)),n=t[t.length-1],i=r.getChild(n);i&&i.runtime&&r.removeChild(n)};nQ.prototype.isRegistered=function(t){var r=this.get(t.slice(0,-1)),n=t[t.length-1];return r?r.hasChild(n):!1};function Kct(e,t,r){if(t.update(r),r.modules)for(var n in r.modules){if(!t.getChild(n))return;Kct(e.concat(n),t.getChild(n),r.modules[n])}}function DZr(e){return new Am(e)}var Am=function(t){var r=this;t===void 0&&(t={});var n=t.plugins;n===void 0&&(n=[]);var i=t.strict;i===void 0&&(i=!1);var a=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new nQ(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=a;var o=this,s=this,l=s.dispatch,u=s.commit;this.dispatch=function(f,h){return l.call(o,f,h)},this.commit=function(f,h,g){return u.call(o,f,h,g)},this.strict=i;var c=this._modules.root.state;qJ(this,c,[],this._modules.root),kxe(this,c),n.forEach(function(A){return A(r)})},_xe={state:{configurable:!0}};Am.prototype.install=function(t,r){t.provide(r||Nct,this),t.config.globalProperties.$store=this;var n=this._devtools!==void 0?this._devtools:!1;n&&fXt(t,this)};_xe.state.get=function(){return this._state.data};_xe.state.set=function(e){};Am.prototype.commit=function(t,r,n){var i=this,a=DW(t,r,n),o=a.type,s=a.payload,l={type:o,payload:s},u=this._mutations[o];u&&(this._withCommit(function(){u.forEach(function(A){A(s)})}),this._subscribers.slice().forEach(function(c){return c(l,i.state)}))};Am.prototype.dispatch=function(t,r){var n=this,i=DW(t,r),a=i.type,o=i.payload,s={type:a,payload:o},l=this._actions[a];if(l){try{this._actionSubscribers.slice().filter(function(c){return c.before}).forEach(function(c){return c.before(s,n.state)})}catch{}var u=l.length>1?Promise.all(l.map(function(c){return c(o)})):l[0](o);return new Promise(function(c,A){u.then(function(f){try{n._actionSubscribers.filter(function(h){return h.after}).forEach(function(h){return h.after(s,n.state)})}catch{}c(f)},function(f){try{n._actionSubscribers.filter(function(h){return h.error}).forEach(function(h){return h.error(s,n.state,f)})}catch{}A(f)})})}};Am.prototype.subscribe=function(t,r){return Lct(t,this._subscribers,r)};Am.prototype.subscribeAction=function(t,r){var n=typeof t=="function"?{before:t}:t;return Lct(n,this._actionSubscribers,r)};Am.prototype.watch=function(t,r,n){var i=this;return di(function(){return t(i.state,i.getters)},r,Object.assign({},n))};Am.prototype.replaceState=function(t){var r=this;this._withCommit(function(){r._state.data=t})};Am.prototype.registerModule=function(t,r,n){n===void 0&&(n={}),typeof t=="string"&&(t=[t]),this._modules.register(t,r),qJ(this,this.state,t,this._modules.get(t),n.preserveState),kxe(this,this.state)};Am.prototype.unregisterModule=function(t){var r=this;typeof t=="string"&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var n=Qxe(r.state,t.slice(0,-1));delete n[t[t.length-1]]}),Pct(this)};Am.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),this._modules.isRegistered(t)};Am.prototype.hotUpdate=function(t){this._modules.update(t),Pct(this,!0)};Am.prototype._withCommit=function(t){var r=this._committing;this._committing=!0,t(),this._committing=r};Object.defineProperties(Am.prototype,_xe);var mXt=Symbol("iconContext"),Vct=function(){return Wo(mXt,{prefixCls:Hn("anticon"),rootClassName:Hn(""),csp:Hn()})};function Txe(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function yXt(e,t){return e&&e.contains?e.contains(t):!1}var wDe="data-vc-order",bXt="vc-icon-key",pbe=new Map;function Wct(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):bXt}function Dxe(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function wXt(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Yct(e){return Array.from((pbe.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function qct(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Txe())return null;var r=t.csp,n=t.prepend,i=document.createElement("style");i.setAttribute(wDe,wXt(n)),r&&r.nonce&&(i.nonce=r.nonce),i.innerHTML=e;var a=Dxe(t),o=a.firstChild;if(n){if(n==="queue"){var s=Yct(a).filter(function(l){return["prepend","prependQueue"].includes(l.getAttribute(wDe))});if(s.length)return a.insertBefore(i,s[s.length-1].nextSibling),i}a.insertBefore(i,o)}else a.appendChild(i);return i}function CXt(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=Dxe(t);return Yct(r).find(function(n){return n.getAttribute(Wct(t))===e})}function IXt(e,t){var r=pbe.get(e);if(!r||!yXt(document,r)){var n=qct("",t),i=n.parentNode;pbe.set(e,i),e.removeChild(n)}}function EXt(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=Dxe(r);IXt(n,r);var i=CXt(t,r);if(i)return r.csp&&r.csp.nonce&&i.nonce!==r.csp.nonce&&(i.nonce=r.csp.nonce),i.innerHTML!==e&&(i.innerHTML=e),i;var a=qct(e,r);return a.setAttribute(Wct(r),t),a}function CDe(e){for(var t=1;t * { 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 Zct(e){return e&&e.getRootNode&&e.getRootNode()}function SXt(e){return Txe()?Zct(e)instanceof ShadowRoot:!1}function kXt(e){return SXt(e)?Zct(e):null}var QXt=function(){var t=Vct(),r=t.prefixCls,n=t.csp,i=sA(),a=xXt;r&&(a=a.replace(/anticon/g,r.value)),il(function(){if(Txe()){var o=i.vnode.el,s=kXt(o);EXt(a,"@ant-design-vue-icons",{prepend:!0,csp:n.value,attachTo:s})}})},_Xt=["icon","primaryColor","secondaryColor"];function TXt(e,t){if(e==null)return{};var r=DXt(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function DXt(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}function OK(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function qXt(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a=0)&&(r[i]=e[i]);return r}eAt(a_t.primary);var Yc=function(t,r){var n,i=xDe({},t,r.attrs),a=i.class,o=i.icon,s=i.spin,l=i.rotate,u=i.tabindex,c=i.twoToneColor,A=i.onClick,f=YXt(i,GXt),h=Vct(),g=h.prefixCls,p=h.rootClassName,m=(n={},zR(n,p.value,!!p.value),zR(n,g.value,!0),zR(n,"".concat(g.value,"-").concat(o.name),!!o.name),zR(n,"".concat(g.value,"-spin"),!!s||o.name==="loading"),n),b=u;b===void 0&&A&&(b=-1);var C=l?{msTransform:"rotate(".concat(l,"deg)"),transform:"rotate(".concat(l,"deg)")}:void 0,E=Xct(c),_=$Xt(E,2),F=_[0],M=_[1];return De("span",xDe({role:"img","aria-label":o.name},f,{onClick:A,class:[m,a],tabindex:b}),[De($5,{icon:o,primaryColor:F,secondaryColor:M,style:C},null),De(jXt,null,null)])};Yc.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]};Yc.displayName="AntdIcon";Yc.inheritAttrs=!1;Yc.getTwoToneColor=HXt;Yc.setTwoToneColor=eAt;function SDe(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=Array(t);r0?(r[0]=(s*o+c*n+l*a-u*i)*2/A,r[1]=(l*o+c*i+u*n-s*a)*2/A,r[2]=(u*o+c*a+s*i-l*n)*2/A):(r[0]=(s*o+c*n+l*a-u*i)*2,r[1]=(l*o+c*i+u*n-s*a)*2,r[2]=(u*o+c*a+s*i-l*n)*2),NAt(e,t,r),e}function FW(e,t){return e[0]=t[12],e[1]=t[13],e[2]=t[14],e}function t7(e,t){var r=t[0],n=t[1],i=t[2],a=t[4],o=t[5],s=t[6],l=t[8],u=t[9],c=t[10];return e[0]=Math.sqrt(r*r+n*n+i*i),e[1]=Math.sqrt(a*a+o*o+s*s),e[2]=Math.sqrt(l*l+u*u+c*c),e}function RW(e,t){var r=new cd(3);t7(r,t);var n=1/r[0],i=1/r[1],a=1/r[2],o=t[0]*n,s=t[1]*i,l=t[2]*a,u=t[4]*n,c=t[5]*i,A=t[6]*a,f=t[8]*n,h=t[9]*i,g=t[10]*a,p=o+c+g,m=0;return p>0?(m=Math.sqrt(p+1)*2,e[3]=.25*m,e[0]=(A-h)/m,e[1]=(f-l)/m,e[2]=(s-u)/m):o>c&&o>g?(m=Math.sqrt(1+o-c-g)*2,e[3]=(A-h)/m,e[0]=.25*m,e[1]=(s+u)/m,e[2]=(f+l)/m):c>g?(m=Math.sqrt(1+c-o-g)*2,e[3]=(f-l)/m,e[0]=(s+u)/m,e[1]=.25*m,e[2]=(A+h)/m):(m=Math.sqrt(1+g-o-c)*2,e[3]=(s-u)/m,e[0]=(f+l)/m,e[1]=(A+h)/m,e[2]=.25*m),e}function PZt(e,t,r,n){t[0]=n[12],t[1]=n[13],t[2]=n[14];var i=n[0],a=n[1],o=n[2],s=n[4],l=n[5],u=n[6],c=n[8],A=n[9],f=n[10];r[0]=Math.sqrt(i*i+a*a+o*o),r[1]=Math.sqrt(s*s+l*l+u*u),r[2]=Math.sqrt(c*c+A*A+f*f);var h=1/r[0],g=1/r[1],p=1/r[2],m=i*h,b=a*g,C=o*p,E=s*h,_=l*g,F=u*p,M=c*h,N=A*g,P=f*p,j=m+_+P,z=0;return j>0?(z=Math.sqrt(j+1)*2,e[3]=.25*z,e[0]=(F-N)/z,e[1]=(M-C)/z,e[2]=(b-E)/z):m>_&&m>P?(z=Math.sqrt(1+m-_-P)*2,e[3]=(F-N)/z,e[0]=.25*z,e[1]=(b+E)/z,e[2]=(M+C)/z):_>P?(z=Math.sqrt(1+_-m-P)*2,e[3]=(M-C)/z,e[0]=(b+E)/z,e[1]=.25*z,e[2]=(F+N)/z):(z=Math.sqrt(1+P-m-_)*2,e[3]=(b-E)/z,e[0]=(M+C)/z,e[1]=(F+N)/z,e[2]=.25*z),e}function UZt(e,t,r,n){var i=t[0],a=t[1],o=t[2],s=t[3],l=i+i,u=a+a,c=o+o,A=i*l,f=i*u,h=i*c,g=a*u,p=a*c,m=o*c,b=s*l,C=s*u,E=s*c,_=n[0],F=n[1],M=n[2];return e[0]=(1-(g+m))*_,e[1]=(f+E)*_,e[2]=(h-C)*_,e[3]=0,e[4]=(f-E)*F,e[5]=(1-(A+m))*F,e[6]=(p+b)*F,e[7]=0,e[8]=(h+C)*M,e[9]=(p-b)*M,e[10]=(1-(A+g))*M,e[11]=0,e[12]=r[0],e[13]=r[1],e[14]=r[2],e[15]=1,e}function VM(e,t,r,n,i){var a=t[0],o=t[1],s=t[2],l=t[3],u=a+a,c=o+o,A=s+s,f=a*u,h=a*c,g=a*A,p=o*c,m=o*A,b=s*A,C=l*u,E=l*c,_=l*A,F=n[0],M=n[1],N=n[2],P=i[0],j=i[1],z=i[2],W=(1-(p+b))*F,Y=(h+_)*F,ee=(g-E)*F,q=(h-_)*M,ae=(1-(f+b))*M,se=(m+C)*M,de=(g+E)*N,Ae=(m-C)*N,be=(1-(f+p))*N;return e[0]=W,e[1]=Y,e[2]=ee,e[3]=0,e[4]=q,e[5]=ae,e[6]=se,e[7]=0,e[8]=de,e[9]=Ae,e[10]=be,e[11]=0,e[12]=r[0]+P-(W*P+q*j+de*z),e[13]=r[1]+j-(Y*P+ae*j+Ae*z),e[14]=r[2]+z-(ee*P+se*j+be*z),e[15]=1,e}function Rxe(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=r+r,s=n+n,l=i+i,u=r*o,c=n*o,A=n*s,f=i*o,h=i*s,g=i*l,p=a*o,m=a*s,b=a*l;return e[0]=1-A-g,e[1]=c+b,e[2]=f-m,e[3]=0,e[4]=c-b,e[5]=1-u-g,e[6]=h+p,e[7]=0,e[8]=f+m,e[9]=h-p,e[10]=1-u-A,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e}function HZt(e,t,r,n,i,a,o){var s=1/(r-t),l=1/(i-n),u=1/(a-o);return e[0]=a*2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a*2*l,e[6]=0,e[7]=0,e[8]=(r+t)*s,e[9]=(i+n)*l,e[10]=(o+a)*u,e[11]=-1,e[12]=0,e[13]=0,e[14]=o*a*2*u,e[15]=0,e}function LAt(e,t,r,n,i){var a=1/Math.tan(t/2);if(e[0]=a/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,i!=null&&i!==1/0){var o=1/(n-i);e[10]=(i+n)*o,e[14]=2*i*n*o}else e[10]=-1,e[14]=-2*n;return e}var jZt=LAt;function GZt(e,t,r,n,i){var a=1/Math.tan(t/2);if(e[0]=a/r,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=a,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,i!=null&&i!==1/0){var o=1/(n-i);e[10]=i*o,e[14]=i*n*o}else e[10]=-1,e[14]=-n;return e}function $Zt(e,t,r,n){var i=Math.tan(t.upDegrees*Math.PI/180),a=Math.tan(t.downDegrees*Math.PI/180),o=Math.tan(t.leftDegrees*Math.PI/180),s=Math.tan(t.rightDegrees*Math.PI/180),l=2/(o+s),u=2/(i+a);return e[0]=l,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=u,e[6]=0,e[7]=0,e[8]=-((o-s)*l*.5),e[9]=(i-a)*u*.5,e[10]=n/(r-n),e[11]=-1,e[12]=0,e[13]=0,e[14]=n*r/(r-n),e[15]=0,e}function PAt(e,t,r,n,i,a,o){var s=1/(t-r),l=1/(n-i),u=1/(a-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=2*u,e[11]=0,e[12]=(t+r)*s,e[13]=(i+n)*l,e[14]=(o+a)*u,e[15]=1,e}var UAt=PAt;function HAt(e,t,r,n,i,a,o){var s=1/(t-r),l=1/(n-i),u=1/(a-o);return e[0]=-2*s,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=-2*l,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=u,e[11]=0,e[12]=(t+r)*s,e[13]=(i+n)*l,e[14]=a*u,e[15]=1,e}function jAt(e,t,r,n){var i,a,o,s,l,u,c,A,f,h,g=t[0],p=t[1],m=t[2],b=n[0],C=n[1],E=n[2],_=r[0],F=r[1],M=r[2];return Math.abs(g-_)0&&(h=1/Math.sqrt(h),c*=h,A*=h,f*=h);var g=l*f-u*A,p=u*c-s*f,m=s*A-l*c;return h=g*g+p*p+m*m,h>0&&(h=1/Math.sqrt(h),g*=h,p*=h,m*=h),e[0]=g,e[1]=p,e[2]=m,e[3]=0,e[4]=A*m-f*p,e[5]=f*g-c*m,e[6]=c*p-A*g,e[7]=0,e[8]=c,e[9]=A,e[10]=f,e[11]=0,e[12]=i,e[13]=a,e[14]=o,e[15]=1,e}function KZt(e){return"mat4("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+", "+e[6]+", "+e[7]+", "+e[8]+", "+e[9]+", "+e[10]+", "+e[11]+", "+e[12]+", "+e[13]+", "+e[14]+", "+e[15]+")"}function VZt(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]+e[3]*e[3]+e[4]*e[4]+e[5]*e[5]+e[6]*e[6]+e[7]*e[7]+e[8]*e[8]+e[9]*e[9]+e[10]*e[10]+e[11]*e[11]+e[12]*e[12]+e[13]*e[13]+e[14]*e[14]+e[15]*e[15])}function WZt(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e[3]=t[3]+r[3],e[4]=t[4]+r[4],e[5]=t[5]+r[5],e[6]=t[6]+r[6],e[7]=t[7]+r[7],e[8]=t[8]+r[8],e[9]=t[9]+r[9],e[10]=t[10]+r[10],e[11]=t[11]+r[11],e[12]=t[12]+r[12],e[13]=t[13]+r[13],e[14]=t[14]+r[14],e[15]=t[15]+r[15],e}function GAt(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e[3]=t[3]-r[3],e[4]=t[4]-r[4],e[5]=t[5]-r[5],e[6]=t[6]-r[6],e[7]=t[7]-r[7],e[8]=t[8]-r[8],e[9]=t[9]-r[9],e[10]=t[10]-r[10],e[11]=t[11]-r[11],e[12]=t[12]-r[12],e[13]=t[13]-r[13],e[14]=t[14]-r[14],e[15]=t[15]-r[15],e}function YZt(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*r,e[5]=t[5]*r,e[6]=t[6]*r,e[7]=t[7]*r,e[8]=t[8]*r,e[9]=t[9]*r,e[10]=t[10]*r,e[11]=t[11]*r,e[12]=t[12]*r,e[13]=t[13]*r,e[14]=t[14]*r,e[15]=t[15]*r,e}function qZt(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e[3]=t[3]+r[3]*n,e[4]=t[4]+r[4]*n,e[5]=t[5]+r[5]*n,e[6]=t[6]+r[6]*n,e[7]=t[7]+r[7]*n,e[8]=t[8]+r[8]*n,e[9]=t[9]+r[9]*n,e[10]=t[10]+r[10]*n,e[11]=t[11]+r[11]*n,e[12]=t[12]+r[12]*n,e[13]=t[13]+r[13]*n,e[14]=t[14]+r[14]*n,e[15]=t[15]+r[15]*n,e}function Cbe(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]&&e[3]===t[3]&&e[4]===t[4]&&e[5]===t[5]&&e[6]===t[6]&&e[7]===t[7]&&e[8]===t[8]&&e[9]===t[9]&&e[10]===t[10]&&e[11]===t[11]&&e[12]===t[12]&&e[13]===t[13]&&e[14]===t[14]&&e[15]===t[15]}function JZt(e,t){var r=e[0],n=e[1],i=e[2],a=e[3],o=e[4],s=e[5],l=e[6],u=e[7],c=e[8],A=e[9],f=e[10],h=e[11],g=e[12],p=e[13],m=e[14],b=e[15],C=t[0],E=t[1],_=t[2],F=t[3],M=t[4],N=t[5],P=t[6],j=t[7],z=t[8],W=t[9],Y=t[10],ee=t[11],q=t[12],ae=t[13],se=t[14],de=t[15];return Math.abs(r-C)<=NA*Math.max(1,Math.abs(r),Math.abs(C))&&Math.abs(n-E)<=NA*Math.max(1,Math.abs(n),Math.abs(E))&&Math.abs(i-_)<=NA*Math.max(1,Math.abs(i),Math.abs(_))&&Math.abs(a-F)<=NA*Math.max(1,Math.abs(a),Math.abs(F))&&Math.abs(o-M)<=NA*Math.max(1,Math.abs(o),Math.abs(M))&&Math.abs(s-N)<=NA*Math.max(1,Math.abs(s),Math.abs(N))&&Math.abs(l-P)<=NA*Math.max(1,Math.abs(l),Math.abs(P))&&Math.abs(u-j)<=NA*Math.max(1,Math.abs(u),Math.abs(j))&&Math.abs(c-z)<=NA*Math.max(1,Math.abs(c),Math.abs(z))&&Math.abs(A-W)<=NA*Math.max(1,Math.abs(A),Math.abs(W))&&Math.abs(f-Y)<=NA*Math.max(1,Math.abs(f),Math.abs(Y))&&Math.abs(h-ee)<=NA*Math.max(1,Math.abs(h),Math.abs(ee))&&Math.abs(g-q)<=NA*Math.max(1,Math.abs(g),Math.abs(q))&&Math.abs(p-ae)<=NA*Math.max(1,Math.abs(p),Math.abs(ae))&&Math.abs(m-se)<=NA*Math.max(1,Math.abs(m),Math.abs(se))&&Math.abs(b-de)<=NA*Math.max(1,Math.abs(b),Math.abs(de))}var $At=i0,XZt=GAt;const ZZt=Object.freeze(Object.defineProperty({__proto__:null,add:WZt,adjoint:MZt,clone:SAt,copy:e7,create:$c,decompose:PZt,determinant:_At,equals:JZt,exactEquals:Cbe,frob:VZt,fromQuat:Rxe,fromQuat2:LZt,fromRotation:RAt,fromRotationTranslation:NAt,fromRotationTranslationScale:UZt,fromRotationTranslationScaleOrigin:VM,fromScaling:uk,fromTranslation:m3,fromValues:kAt,fromXRotation:MAt,fromYRotation:OAt,fromZRotation:wbe,frustum:HZt,getRotation:RW,getScaling:t7,getTranslation:FW,identity:m5,invert:$w,lookAt:jAt,mul:$At,multiply:i0,multiplyScalar:YZt,multiplyScalarAndAdd:qZt,ortho:UAt,orthoNO:PAt,orthoZO:HAt,perspective:jZt,perspectiveFromFieldOfView:$Zt,perspectiveNO:LAt,perspectiveZO:GZt,rotate:OZt,rotateX:DAt,rotateY:FAt,rotateZ:NZt,scale:TAt,set:bbe,str:KZt,sub:XZt,subtract:GAt,targetTo:zZt,translate:v9,transpose:QAt},Symbol.toStringTag,{value:"Module"}));function Jl(){var e=new cd(3);return cd!=Float32Array&&(e[0]=0,e[1]=0,e[2]=0),e}function sE(e){var t=new cd(3);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function mE(e){var t=e[0],r=e[1],n=e[2];return Math.sqrt(t*t+r*r+n*n)}function yA(e,t,r){var n=new cd(3);return n[0]=e,n[1]=t,n[2]=r,n}function zw(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function Xp(e,t,r,n){return e[0]=t,e[1]=r,e[2]=n,e}function Z3(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e}function Ibe(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function eer(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e}function ter(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e}function rer(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e}function MW(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function ner(e,t){var r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2];return Math.sqrt(r*r+n*n+i*i)}function Vk(e,t){var r=t[0],n=t[1],i=t[2],a=r*r+n*n+i*i;return a>0&&(a=1/Math.sqrt(a)),e[0]=t[0]*a,e[1]=t[1]*a,e[2]=t[2]*a,e}function Kw(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function LK(e,t,r){var n=t[0],i=t[1],a=t[2],o=r[0],s=r[1],l=r[2];return e[0]=i*l-a*s,e[1]=a*o-n*l,e[2]=n*s-i*o,e}function Ebe(e,t,r,n){var i=t[0],a=t[1],o=t[2];return e[0]=i+n*(r[0]-i),e[1]=a+n*(r[1]-a),e[2]=o+n*(r[2]-o),e}function a0(e,t,r){var n=t[0],i=t[1],a=t[2],o=r[3]*n+r[7]*i+r[11]*a+r[15];return o=o||1,e[0]=(r[0]*n+r[4]*i+r[8]*a+r[12])/o,e[1]=(r[1]*n+r[5]*i+r[9]*a+r[13])/o,e[2]=(r[2]*n+r[6]*i+r[10]*a+r[14])/o,e}function ier(e,t,r){var n=t[0],i=t[1],a=t[2];return e[0]=n*r[0]+i*r[3]+a*r[6],e[1]=n*r[1]+i*r[4]+a*r[7],e[2]=n*r[2]+i*r[5]+a*r[8],e}function aer(e,t,r){var n=r[0],i=r[1],a=r[2],o=r[3],s=t[0],l=t[1],u=t[2],c=i*u-a*l,A=a*s-n*u,f=n*l-i*s;return c=c+c,A=A+A,f=f+f,e[0]=s+o*c+i*f-a*A,e[1]=l+o*A+a*c-n*f,e[2]=u+o*f+n*A-i*c,e}function OF(e,t){var r=e[0],n=e[1],i=e[2],a=t[0],o=t[1],s=t[2];return Math.abs(r-a)<=NA*Math.max(1,Math.abs(r),Math.abs(a))&&Math.abs(n-o)<=NA*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-s)<=NA*Math.max(1,Math.abs(i),Math.abs(s))}var oer=Ibe,ZDe=ner,zAt=mE;(function(){var e=Jl();return function(t,r,n,i,a,o){var s,l;for(r||(r=3),n||(n=0),i?l=Math.min(i*r+n,t.length):l=t.length,s=n;s0&&(o=1/Math.sqrt(o)),e[0]=r*o,e[1]=n*o,e[2]=i*o,e[3]=a*o,e}function xE(e,t,r){var n=t[0],i=t[1],a=t[2],o=t[3];return e[0]=r[0]*n+r[4]*i+r[8]*a+r[12]*o,e[1]=r[1]*n+r[5]*i+r[9]*a+r[13]*o,e[2]=r[2]*n+r[6]*i+r[10]*a+r[14]*o,e[3]=r[3]*n+r[7]*i+r[11]*a+r[15]*o,e}(function(){var e=Vw();return function(t,r,n,i,a,o){var s,l;for(r||(r=4),n||(n=0),i?l=Math.min(i*r+n,t.length):l=t.length,s=n;sNA?(f=Math.acos(h),g=Math.sin(f),p=Math.sin((1-n)*f)/g,m=Math.sin(n*f)/g):(p=1-n,m=n),e[0]=p*i+m*l,e[1]=p*a+m*u,e[2]=p*o+m*c,e[3]=p*s+m*A,e}function Loe(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=r*r+n*n+i*i+a*a,s=o?1/o:0;return e[0]=-r*s,e[1]=-n*s,e[2]=-i*s,e[3]=a*s,e}function cer(e,t){var r=t[0]+t[4]+t[8],n;if(r>0)n=Math.sqrt(r+1),e[3]=.5*n,n=.5/n,e[0]=(t[5]-t[7])*n,e[1]=(t[6]-t[2])*n,e[2]=(t[1]-t[3])*n;else{var i=0;t[4]>t[0]&&(i=1),t[8]>t[i*3+i]&&(i=2);var a=(i+1)%3,o=(i+2)%3;n=Math.sqrt(t[i*3+i]-t[a*3+a]-t[o*3+o]+1),e[i]=.5*n,n=.5/n,e[3]=(t[a*3+o]-t[o*3+a])*n,e[a]=(t[a*3+i]+t[i*3+a])*n,e[o]=(t[o*3+i]+t[i*3+o])*n}return e}function fG(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:DZt,a=Math.PI/360;t*=a,n*=a,r*=a;var o=Math.sin(t),s=Math.cos(t),l=Math.sin(r),u=Math.cos(r),c=Math.sin(n),A=Math.cos(n);switch(i){case"xyz":e[0]=o*u*A+s*l*c,e[1]=s*l*A-o*u*c,e[2]=s*u*c+o*l*A,e[3]=s*u*A-o*l*c;break;case"xzy":e[0]=o*u*A-s*l*c,e[1]=s*l*A-o*u*c,e[2]=s*u*c+o*l*A,e[3]=s*u*A+o*l*c;break;case"yxz":e[0]=o*u*A+s*l*c,e[1]=s*l*A-o*u*c,e[2]=s*u*c-o*l*A,e[3]=s*u*A+o*l*c;break;case"yzx":e[0]=o*u*A+s*l*c,e[1]=s*l*A+o*u*c,e[2]=s*u*c-o*l*A,e[3]=s*u*A-o*l*c;break;case"zxy":e[0]=o*u*A-s*l*c,e[1]=s*l*A+o*u*c,e[2]=s*u*c+o*l*A,e[3]=s*u*A-o*l*c;break;case"zyx":e[0]=o*u*A-s*l*c,e[1]=s*l*A+o*u*c,e[2]=s*u*c-o*l*A,e[3]=s*u*A+o*l*c;break;default:throw new Error("Unknown angle order "+i)}return e}var Aer=KR,hG=ser,KAt=ler,eFe=e5,OW=uer;(function(){var e=Jl(),t=yA(1,0,0),r=yA(0,1,0);return function(n,i,a){var o=Kw(i,a);return o<-.999999?(LK(e,t,i),zAt(e)<1e-6&&LK(e,r,i),Vk(e,e),S3(n,e,Math.PI),n):o>.999999?(n[0]=0,n[1]=0,n[2]=0,n[3]=1,n):(LK(e,i,a),n[0]=e[0],n[1]=e[1],n[2]=e[2],n[3]=1+o,OW(n,n))}})();(function(){var e=rd(),t=rd();return function(r,n,i,a,o,s){return Noe(e,n,o,s),Noe(t,i,a,s),Noe(r,e,t,2*s*(1-s)),r}})();(function(){var e=xAt();return function(t,r,n,i){return e[0]=n[0],e[3]=n[1],e[6]=n[2],e[1]=i[0],e[4]=i[1],e[7]=i[2],e[2]=-r[0],e[5]=-r[1],e[8]=-r[2],OW(t,cer(t,e))}})();function Mxe(){var e=new cd(2);return cd!=Float32Array&&(e[0]=0,e[1]=0),e}function fer(e,t){return e[0]=t[0],e[1]=t[1],e}function her(e,t,r){return e[0]=t,e[1]=r,e}function der(e,t){var r=t[0],n=t[1],i=r*r+n*n;return i>0&&(i=1/Math.sqrt(i)),e[0]=t[0]*i,e[1]=t[1]*i,e}function ger(e,t){return e[0]*t[0]+e[1]*t[1]}function per(e,t){return e[0]===t[0]&&e[1]===t[1]}(function(){var e=Mxe();return function(t,r,n,i,a,o){var s,l;for(r||(r=2),n||(n=0),i?l=Math.min(i*r+n,t.length):l=t.length,s=n;s-1:!1},mer=function(e,t){if(!ZO(e))return e;for(var r=[],n=0;nr?r:e};function go(e){return typeof e=="number"}var Ber=1e-5;function WM(e,t,r){return r===void 0&&(r=Ber),e===t||Math.abs(e-t)n&&(r=a,n=o)}return r}},Ser=function(e,t){if(fm(e)){for(var r,n=1/0,i=0;ii&&(n=r,o(1),++t),r[s]=l}function o(s){t=0,r=Object.create(null),s||(n=Object.create(null))}return o(),{clear:o,has:function(s){return r[s]!==void 0||n[s]!==void 0},get:function(s){var l=r[s];if(l!==void 0)return l;if((l=n[s])!==void 0)return a(s,l),l},set:function(s,l){r[s]!==void 0?r[s]=l:a(s,l)}}}var Poe=new Map;function xbe(e,t,r){r===void 0&&(r=128);var n=function(){for(var i=[],a=0;at?(n&&(clearTimeout(n),n=null),s=c,o=e.apply(i,a),n||(i=a=null)):!n&&r.trailing!==!1&&(n=setTimeout(l,A)),o};return u.cancel=function(){clearTimeout(n),s=0,n=i=a=null},u};var dG={};const Ger=function(e){return e=e||"g",dG[e]?dG[e]+=1:dG[e]=1,e+dG[e]},Uoe=function(){},Sbe=function(e){return e};var kbe=function(e,t){return kbe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},kbe(e,t)};function _l(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");kbe(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var qi=function(){return qi=Object.assign||function(t){for(var r,n=1,i=arguments.length;n=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Zr(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,a=[],o;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)a.push(i.value)}catch(s){o={error:s}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(o)throw o.error}}return a}function $er(){for(var e=0,t=0,r=arguments.length;t7){e[r].shift();for(var n=e[r],i=r;n.length;)t[r]="A",e.splice(i+=1,0,["C"].concat(n.splice(0,6)));e.splice(r,1)}}var YM={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0};function eft(e){return Array.isArray(e)&&e.every(function(t){var r=t[0].toLowerCase();return YM[r]===t.length-1&&"achlmqstvz".includes(r)})}function tft(e){return eft(e)&&e.every(function(t){var r=t[0];return r===r.toUpperCase()})}function rft(e){return tft(e)&&e.every(function(t){var r=t[0];return"ACLMQZ".includes(r)})}function rFe(e){for(var t=e.pathValue[e.segmentStart],r=t.toLowerCase(),n=e.data;n.length>=YM[r]&&(r==="m"&&n.length>2?(e.segments.push([t].concat(n.splice(0,2))),r="l",t=t==="m"?"l":"L"):e.segments.push([t].concat(n.splice(0,YM[r]))),!!YM[r]););}function Ker(e){var t=e.index,r=e.pathValue,n=r.charCodeAt(t);if(n===48){e.param=0,e.index+=1;return}if(n===49){e.param=1,e.index+=1;return}e.err='[path-util]: invalid Arc flag "'.concat(r[t],'", expecting 0 or 1 at index ').concat(t)}function Ver(e){return e>=48&&e<=57||e===43||e===45||e===46}function P_(e){return e>=48&&e<=57}function Wer(e){var t=e.max,r=e.pathValue,n=e.index,i=n,a=!1,o=!1,s=!1,l=!1,u;if(i>=t){e.err="[path-util]: Invalid path value at index ".concat(i,', "pathValue" is missing param');return}if(u=r.charCodeAt(i),(u===43||u===45)&&(i+=1,u=r.charCodeAt(i)),!P_(u)&&u!==46){e.err="[path-util]: Invalid path value at index ".concat(i,', "').concat(r[i],'" is not a number');return}if(u!==46){if(a=u===48,i+=1,u=r.charCodeAt(i),a&&i=5760&&t.includes(e)}function PK(e){for(var t=e.pathValue,r=e.max;e.index0;o-=1){if(Jer(i)&&(o===3||o===4)?Ker(e):Wer(e),e.err.length)return;e.data.push(e.param),PK(e),e.index=e.max||!Ver(r.charCodeAt(e.index)))break}rFe(e)}var Zer=function(){function e(t){this.pathValue=t,this.segments=[],this.max=t.length,this.index=0,this.param=0,this.segmentStart=0,this.data=[],this.err=""}return e}();function etr(e){if(eft(e))return[].concat(e);var t=new Zer(e);for(PK(t);t.index1&&(z=Math.sqrt(z),f*=z,h*=z);var W=f*f,Y=h*h,ee=(a===o?-1:1)*Math.sqrt(Math.abs((W*Y-W*j*j-Y*P*P)/(W*j*j+Y*P*P)));M=ee*f*j/h+(c+g)/2,N=ee*-h*P/f+(A+p)/2,_=Math.asin(((A-N)/h*Math.pow(10,9)>>0)/Math.pow(10,9)),F=Math.asin(((p-N)/h*Math.pow(10,9)>>0)/Math.pow(10,9)),_=cF&&(_-=Math.PI*2),!o&&F>_&&(F-=Math.PI*2)}var q=F-_;if(Math.abs(q)>m){var ae=F,se=g,de=p;F=_+m*(o&&F>_?1:-1),g=M+f*Math.cos(F),p=N+h*Math.sin(F),C=Nxe(g,p,f,h,i,0,o,se,de,[F,ae,M,N])}q=F-_;var Ae=Math.cos(_),be=Math.sin(_),Le=Math.cos(F),Ne=Math.sin(F),ue=Math.tan(q/4),Ke=4/3*f*ue,Pe=4/3*h*ue,je=[c,A],Ye=[c+Ke*be,A-Pe*Ae],me=[g+Ke*Ne,p-Pe*Le],Se=[g,p];if(Ye[0]=2*je[0]-Ye[0],Ye[1]=2*je[1]-Ye[1],u)return Ye.concat(me,Se,C);C=Ye.concat(me,Se,C);for(var et=[],nt=0,tt=C.length;nt=a)o={x:r,y:n};else{var s=u3([e,t],[r,n],i/a),l=s[0],u=s[1];o={x:l,y:u}}return{length:a,point:o,min:{x:Math.min(e,r),y:Math.min(t,n)},max:{x:Math.max(e,r),y:Math.max(t,n)}}}function iFe(e,t){var r=e.x,n=e.y,i=t.x,a=t.y,o=r*i+n*a,s=Math.sqrt((Math.pow(r,2)+Math.pow(n,2))*(Math.pow(i,2)+Math.pow(a,2))),l=r*a-n*i<0?-1:1,u=l*Math.acos(o/s);return u}function ltr(e,t,r,n,i,a,o,s,l,u){var c=Math.abs,A=Math.sin,f=Math.cos,h=Math.sqrt,g=Math.PI,p=c(r),m=c(n),b=(i%360+360)%360,C=b*(g/180);if(e===s&&t===l)return{x:e,y:t};if(p===0||m===0)return _be(e,t,s,l,u).point;var E=(e-s)/2,_=(t-l)/2,F={x:f(C)*E+A(C)*_,y:-A(C)*E+f(C)*_},M=Math.pow(F.x,2)/Math.pow(p,2)+Math.pow(F.y,2)/Math.pow(m,2);M>1&&(p*=h(M),m*=h(M));var N=Math.pow(p,2)*Math.pow(m,2)-Math.pow(p,2)*Math.pow(F.y,2)-Math.pow(m,2)*Math.pow(F.x,2),P=Math.pow(p,2)*Math.pow(F.y,2)+Math.pow(m,2)*Math.pow(F.x,2),j=N/P;j=j<0?0:j;var z=(a!==o?1:-1)*h(j),W={x:z*(p*F.y/m),y:z*(-(m*F.x)/p)},Y={x:f(C)*W.x-A(C)*W.y+(e+s)/2,y:A(C)*W.x+f(C)*W.y+(t+l)/2},ee={x:(F.x-W.x)/p,y:(F.y-W.y)/m},q=iFe({x:1,y:0},ee),ae={x:(-F.x-W.x)/p,y:(-F.y-W.y)/m},se=iFe(ee,ae);!o&&se>0?se-=2*g:o&&se<0&&(se+=2*g),se%=2*g;var de=q+se*u,Ae=p*f(de),be=m*A(de),Le={x:f(C)*Ae-A(C)*be+Y.x,y:A(C)*Ae+f(C)*be+Y.y};return Le}function utr(e,t,r,n,i,a,o,s,l,u,c){var A,f=c.bbox,h=f===void 0?!0:f,g=c.length,p=g===void 0?!0:g,m=c.sampleSize,b=m===void 0?30:m,C=typeof u=="number",E=e,_=t,F=0,M=[E,_,F],N=[E,_],P=0,j={x:0,y:0},z=[{x:E,y:_}];C&&u<=0&&(j={x:E,y:_});for(var W=0;W<=b;W+=1){if(P=W/b,A=ltr(e,t,r,n,i,a,o,s,l,P),E=A.x,_=A.y,h&&z.push({x:E,y:_}),p&&(F+=Uv(N,[E,_])),N=[E,_],C&&F>=u&&u>M[2]){var Y=(F-u)/(F-M[2]);j={x:N[0]*(1-Y)+M[0]*Y,y:N[1]*(1-Y)+M[1]*Y}}M=[E,_,F]}return C&&u>=F&&(j={x:s,y:l}),{length:F,point:j,min:{x:Math.min.apply(null,z.map(function(ee){return ee.x})),y:Math.min.apply(null,z.map(function(ee){return ee.y}))},max:{x:Math.max.apply(null,z.map(function(ee){return ee.x})),y:Math.max.apply(null,z.map(function(ee){return ee.y}))}}}function ctr(e,t,r,n,i,a,o,s,l){var u=1-l;return{x:Math.pow(u,3)*e+3*Math.pow(u,2)*l*r+3*u*Math.pow(l,2)*i+Math.pow(l,3)*o,y:Math.pow(u,3)*t+3*Math.pow(u,2)*l*n+3*u*Math.pow(l,2)*a+Math.pow(l,3)*s}}function nft(e,t,r,n,i,a,o,s,l,u){var c,A=u.bbox,f=A===void 0?!0:A,h=u.length,g=h===void 0?!0:h,p=u.sampleSize,m=p===void 0?10:p,b=typeof l=="number",C=e,E=t,_=0,F=[C,E,_],M=[C,E],N=0,P={x:0,y:0},j=[{x:C,y:E}];b&&l<=0&&(P={x:C,y:E});for(var z=0;z<=m;z+=1){if(N=z/m,c=ctr(e,t,r,n,i,a,o,s,N),C=c.x,E=c.y,f&&j.push({x:C,y:E}),g&&(_+=Uv(M,[C,E])),M=[C,E],b&&_>=l&&l>F[2]){var W=(_-l)/(_-F[2]);P={x:M[0]*(1-W)+F[0]*W,y:M[1]*(1-W)+F[1]*W}}F=[C,E,_]}return b&&l>=_&&(P={x:o,y:s}),{length:_,point:P,min:{x:Math.min.apply(null,j.map(function(Y){return Y.x})),y:Math.min.apply(null,j.map(function(Y){return Y.y}))},max:{x:Math.max.apply(null,j.map(function(Y){return Y.x})),y:Math.max.apply(null,j.map(function(Y){return Y.y}))}}}function Atr(e,t,r,n,i,a,o){var s=1-o;return{x:Math.pow(s,2)*e+2*s*o*r+Math.pow(o,2)*i,y:Math.pow(s,2)*t+2*s*o*n+Math.pow(o,2)*a}}function ftr(e,t,r,n,i,a,o,s){var l,u=s.bbox,c=u===void 0?!0:u,A=s.length,f=A===void 0?!0:A,h=s.sampleSize,g=h===void 0?10:h,p=typeof o=="number",m=e,b=t,C=0,E=[m,b,C],_=[m,b],F=0,M={x:0,y:0},N=[{x:m,y:b}];p&&o<=0&&(M={x:m,y:b});for(var P=0;P<=g;P+=1){if(F=P/g,l=Atr(e,t,r,n,i,a,F),m=l.x,b=l.y,c&&N.push({x:m,y:b}),f&&(C+=Uv(_,[m,b])),_=[m,b],p&&C>=o&&o>E[2]){var j=(C-o)/(C-E[2]);M={x:_[0]*(1-j)+E[0]*j,y:_[1]*(1-j)+E[1]*j}}E=[m,b,C]}return p&&o>=C&&(M={x:i,y:a}),{length:C,point:M,min:{x:Math.min.apply(null,N.map(function(z){return z.x})),y:Math.min.apply(null,N.map(function(z){return z.y}))},max:{x:Math.max.apply(null,N.map(function(z){return z.x})),y:Math.max.apply(null,N.map(function(z){return z.y}))}}}function ift(e,t,r){for(var n,i,a,o,s,l,u=UW(e),c=typeof t=="number",A,f=[],h,g=0,p=0,m=0,b=0,C,E=[],_=[],F=0,M={x:0,y:0},N=M,P=M,j=M,z=0,W=0,Y=u.length;W=t&&(j=P),_.push(N),E.push(M),z+=F,l=h!=="Z"?C.slice(-2):[m,b],g=l[0],p=l[1];return c&&t>=z&&(j={x:g,y:p}),{length:z,point:j,min:{x:Math.min.apply(null,E.map(function(ee){return ee.x})),y:Math.min.apply(null,E.map(function(ee){return ee.y}))},max:{x:Math.max.apply(null,_.map(function(ee){return ee.x})),y:Math.max.apply(null,_.map(function(ee){return ee.y}))}}}function htr(e,t){return ift(e,void 0,qi(qi({},t),{bbox:!1,length:!0})).length}function dtr(e){var t=e.length,r=t-1;return e.map(function(n,i){return e.map(function(a,o){var s=i+o,l;return o===0||e[s]&&e[s][0]==="M"?(l=e[s],["M"].concat(l.slice(-2))):(s>=t&&(s-=r),e[s])})})}function gtr(e,t){var r=e.length-1,n=[],i=0,a=0,o=dtr(e);return o.forEach(function(s,l){e.slice(1).forEach(function(u,c){a+=Uv(e[(l+c)%r].slice(-2),t[c%r].slice(-2))}),n[l]=a,a=0}),i=n.indexOf(Math.min.apply(null,n)),o[i]}function ptr(e,t,r,n,i,a,o,s){return 3*((s-t)*(r+i)-(o-e)*(n+a)+n*(e-i)-r*(t-a)+s*(i+e/3)-o*(a+t/3))/20}function vtr(e){var t=0,r=0,n=0;return Qbe(e).map(function(i){var a;switch(i[0]){case"M":return t=i[1],r=i[2],0;default:var o=i.slice(1),s=o[0],l=o[1],u=o[2],c=o[3],A=o[4],f=o[5];return n=ptr(t,r,s,l,u,c,A,f),a=i.slice(-2),t=a[0],r=a[1],n}}).reduce(function(i,a){return i+a},0)}function aFe(e){return vtr(e)>=0}function mtr(e,t,r){return ift(e,t,qi(qi({},r),{bbox:!1,length:!0})).point}var ytr=50;function btr(e,t){t===void 0&&(t=.5);var r=e.slice(0,2),n=e.slice(2,4),i=e.slice(4,6),a=e.slice(6,8),o=u3(r,n,t),s=u3(n,i,t),l=u3(i,a,t),u=u3(o,s,t),c=u3(s,l,t),A=u3(u,c,t);return[["C"].concat(o,u,A),["C"].concat(c,l,a)]}function oFe(e){return e.map(function(t,r,n){var i=r&&n[r-1].slice(-2).concat(t.slice(1)),a=r?nft(i[0],i[1],i[2],i[3],i[4],i[5],i[6],i[7],i[8],{bbox:!1}).length:0,o;return r?o=a?btr(i):[t,t]:o=[t],{s:t,ss:o,l:a}})}function aft(e,t,r,n){if(n===void 0&&(n=0),n>ytr)return console.warn("Maximum recursion depth reached in equalizeSegments"),[e,t];var i=oFe(e),a=oFe(t),o=i.length,s=a.length,l=i.filter(function(b){return b.l}).length,u=a.filter(function(b){return b.l}).length,c=i.filter(function(b){return b.l}).reduce(function(b,C){var E=C.l;return b+E},0)/l||0,A=a.filter(function(b){return b.l}).reduce(function(b,C){var E=C.l;return b+E},0)/u||0,f=r||Math.max(o,s),h=[c,A],g=[f-o,f-s],p=0,m=[i,a].map(function(b,C){return b.l===f?b.map(function(E){return E.s}):b.map(function(E,_){return p=_&&g[C]&&E.l>=h[C],g[C]-=p?1:0,p?E.ss:[E.s]}).flat()});return m[0].length===m[1].length?m:aft(m[0],m[1],f,n+1)}function Tbe(e){var t=document.createElement("div");t.innerHTML=e;var r=t.childNodes[0];return r&&t.contains(r)&&t.removeChild(r),r}function wtr(e,t){for(;!{}.hasOwnProperty.call(e,t)&&(e=Z9(e))!==null;);return e}function Dbe(){return Dbe=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=wtr(e,t);if(n){var i=Object.getOwnPropertyDescriptor(n,t);return i.get?i.get.call(arguments.length<3?e:r):i.value}},Dbe.apply(null,arguments)}function sFe(e,t,r,n){var i=Dbe(Z9(e.prototype),t,r);return typeof i=="function"?function(a){return i.apply(r,a)}:i}/*! * @antv/g-math * @description Geometry util * @version 3.0.1 * @date 5/9/2025, 8:18:51 AM * @author AntVis * @docs https://g.antv.antgroup.com/ */function ME(e,t,r,n){var i=e-r,a=t-n;return Math.sqrt(i*i+a*a)}function oft(e,t){var r=Math.min.apply(Math,ou(e)),n=Math.min.apply(Math,ou(t)),i=Math.max.apply(Math,ou(e)),a=Math.max.apply(Math,ou(t));return{x:r,y:n,width:i-r,height:a-n}}function Ctr(e,t,r){return Math.atan(-t/e*Math.tan(r))}function Itr(e,t,r){return Math.atan(t/(e*Math.tan(r)))}function Etr(e,t,r,n,i,a){return r*Math.cos(i)*Math.cos(a)-n*Math.sin(i)*Math.sin(a)+e}function Btr(e,t,r,n,i,a){return r*Math.sin(i)*Math.cos(a)+n*Math.cos(i)*Math.sin(a)+t}function xtr(e,t,r,n,i,a,o){for(var s=Ctr(r,n,i),l=1/0,u=-1/0,c=[a,o],A=-Math.PI*2;A<=Math.PI*2;A+=Math.PI){var f=s+A;au&&(u=g)}for(var p=Itr(r,n,i),m=1/0,b=-1/0,C=[a,o],E=-Math.PI*2;E<=Math.PI*2;E+=Math.PI){var _=p+E;ab&&(b=M)}return{x:l,y:m,width:u-l,height:b-m}}var Str=1e-4;function sft(e,t,r,n,i,a){var o=-1,s=1/0,l=[r,n],u=20;a&&a>200&&(u=a/10);for(var c=1/u,A=c/10,f=0;f<=u;f++){var h=f*c,g=[i.apply(void 0,ou(e.concat([h]))),i.apply(void 0,ou(t.concat([h])))],p=ME(l[0],l[1],g[0],g[1]);p=0&&F=0&&l<=1&&s.push(l));else{var A=a*a-4*i*o;WM(A,0)?s.push(-a/(2*i)):A>0&&(c=Math.sqrt(A),l=(-a+c)/(2*i),u=(-a-c)/(2*i),l>=0&&l<=1&&s.push(l),u>=0&&u<=1&&s.push(u))}return s}function Qtr(e,t,r,n,i,a,o,s){for(var l=[e,o],u=[t,s],c=lFe(e,r,i,o),A=lFe(t,n,a,s),f=0;f=0?[i]:[]}function Ftr(e,t,r,n,i,a){var o=cFe(e,r,i)[0],s=cFe(t,n,a)[0],l=[e,i],u=[t,a];return o!==void 0&&l.push(Rbe(e,r,i,o)),s!==void 0&&u.push(Rbe(t,n,a,s)),oft(l,u)}function Rtr(e,t,r,n,i,a,o,s){return sft([e,r,i],[t,n,a],o,s,Rbe)}function Mtr(e,t,r,n,i,a,o,s){var l=Rtr(e,t,r,n,i,a,o,s);return ME(l.x,l.y,o,s)}function Jg(){Jg=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(se,de,Ae){se[de]=Ae.value},a=typeof Symbol=="function"?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",l=a.toStringTag||"@@toStringTag";function u(se,de,Ae){return Object.defineProperty(se,de,{value:Ae,enumerable:!0,configurable:!0,writable:!0}),se[de]}try{u({},"")}catch{u=function(Ae,be,Le){return Ae[be]=Le}}function c(se,de,Ae,be){var Le=de&&de.prototype instanceof b?de:b,Ne=Object.create(Le.prototype),ue=new q(be||[]);return i(Ne,"_invoke",{value:z(se,Ae,ue)}),Ne}function A(se,de,Ae){try{return{type:"normal",arg:se.call(de,Ae)}}catch(be){return{type:"throw",arg:be}}}t.wrap=c;var f="suspendedStart",h="suspendedYield",g="executing",p="completed",m={};function b(){}function C(){}function E(){}var _={};u(_,o,function(){return this});var F=Object.getPrototypeOf,M=F&&F(F(ae([])));M&&M!==r&&n.call(M,o)&&(_=M);var N=E.prototype=b.prototype=Object.create(_);function P(se){["next","throw","return"].forEach(function(de){u(se,de,function(Ae){return this._invoke(de,Ae)})})}function j(se,de){function Ae(Le,Ne,ue,Ke){var Pe=A(se[Le],se,Ne);if(Pe.type!=="throw"){var je=Pe.arg,Ye=je.value;return Ye&&Tu(Ye)=="object"&&n.call(Ye,"__await")?de.resolve(Ye.__await).then(function(me){Ae("next",me,ue,Ke)},function(me){Ae("throw",me,ue,Ke)}):de.resolve(Ye).then(function(me){je.value=me,ue(je)},function(me){return Ae("throw",me,ue,Ke)})}Ke(Pe.arg)}var be;i(this,"_invoke",{value:function(Ne,ue){function Ke(){return new de(function(Pe,je){Ae(Ne,ue,Pe,je)})}return be=be?be.then(Ke,Ke):Ke()}})}function z(se,de,Ae){var be=f;return function(Le,Ne){if(be===g)throw Error("Generator is already running");if(be===p){if(Le==="throw")throw Ne;return{value:e,done:!0}}for(Ae.method=Le,Ae.arg=Ne;;){var ue=Ae.delegate;if(ue){var Ke=W(ue,Ae);if(Ke){if(Ke===m)continue;return Ke}}if(Ae.method==="next")Ae.sent=Ae._sent=Ae.arg;else if(Ae.method==="throw"){if(be===f)throw be=p,Ae.arg;Ae.dispatchException(Ae.arg)}else Ae.method==="return"&&Ae.abrupt("return",Ae.arg);be=g;var Pe=A(se,de,Ae);if(Pe.type==="normal"){if(be=Ae.done?p:h,Pe.arg===m)continue;return{value:Pe.arg,done:Ae.done}}Pe.type==="throw"&&(be=p,Ae.method="throw",Ae.arg=Pe.arg)}}}function W(se,de){var Ae=de.method,be=se.iterator[Ae];if(be===e)return de.delegate=null,Ae==="throw"&&se.iterator.return&&(de.method="return",de.arg=e,W(se,de),de.method==="throw")||Ae!=="return"&&(de.method="throw",de.arg=new TypeError("The iterator does not provide a '"+Ae+"' method")),m;var Le=A(be,se.iterator,de.arg);if(Le.type==="throw")return de.method="throw",de.arg=Le.arg,de.delegate=null,m;var Ne=Le.arg;return Ne?Ne.done?(de[se.resultName]=Ne.value,de.next=se.nextLoc,de.method!=="return"&&(de.method="next",de.arg=e),de.delegate=null,m):Ne:(de.method="throw",de.arg=new TypeError("iterator result is not an object"),de.delegate=null,m)}function Y(se){var de={tryLoc:se[0]};1 in se&&(de.catchLoc=se[1]),2 in se&&(de.finallyLoc=se[2],de.afterLoc=se[3]),this.tryEntries.push(de)}function ee(se){var de=se.completion||{};de.type="normal",delete de.arg,se.completion=de}function q(se){this.tryEntries=[{tryLoc:"root"}],se.forEach(Y,this),this.reset(!0)}function ae(se){if(se||se===""){var de=se[o];if(de)return de.call(se);if(typeof se.next=="function")return se;if(!isNaN(se.length)){var Ae=-1,be=function Le(){for(;++Ae=0;--Le){var Ne=this.tryEntries[Le],ue=Ne.completion;if(Ne.tryLoc==="root")return be("end");if(Ne.tryLoc<=this.prev){var Ke=n.call(Ne,"catchLoc"),Pe=n.call(Ne,"finallyLoc");if(Ke&&Pe){if(this.prev=0;--be){var Le=this.tryEntries[be];if(Le.tryLoc<=this.prev&&n.call(Le,"finallyLoc")&&this.prev=0;--Ae){var be=this.tryEntries[Ae];if(be.finallyLoc===de)return this.complete(be.completion,be.afterLoc),ee(be),m}},catch:function(de){for(var Ae=this.tryEntries.length-1;Ae>=0;--Ae){var be=this.tryEntries[Ae];if(be.tryLoc===de){var Le=be.completion;if(Le.type==="throw"){var Ne=Le.arg;ee(be)}return Ne}}throw Error("illegal catch attempt")},delegateYield:function(de,Ae,be){return this.delegate={iterator:ae(de),resultName:Ae,nextLoc:be},this.method==="next"&&(this.arg=e),m}},t}function AFe(e,t,r,n,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void r(u)}s.done?t(l):Promise.resolve(l).then(n,i)}function ap(e){return function(){var t=this,r=arguments;return new Promise(function(n,i){var a=e.apply(t,r);function o(l){AFe(a,n,i,o,s,"next",l)}function s(l){AFe(a,n,i,o,s,"throw",l)}o(void 0)})}}function ck(e,t){var r=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Fxe(e))||t){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(u){throw u},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var u=r.next();return o=u.done,u},e:function(u){s=!0,a=u},f:function(){try{o||r.return==null||r.return()}finally{if(s)throw a}}}}function Otr(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}function iQ(e,t){if(e==null)return{};var r,n,i=Otr(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;nN;){if(P-N>600){var z=P-N+1,W=M-N+1,Y=Math.log(z),ee=.5*Math.exp(2*Y/3),q=.5*Math.sqrt(Y*ee*(z-ee)/z)*(W-z/2<0?-1:1),ae=Math.max(N,Math.floor(M-W*ee/z+q)),se=Math.min(P,Math.floor(M+(z-W)*ee/z+q));n(F,M,ae,se,j)}var de=F[M],Ae=N,be=P;for(i(F,N,M),j(F[P],de)>0&&i(F,N,P);Ae0;)be--}j(F[N],de)===0?i(F,N,be):(be++,i(F,be,P)),be<=M&&(N=be+1),M<=be&&(P=be-1)}}function i(F,M,N){var P=F[M];F[M]=F[N],F[N]=P}function a(F,M){return FM?1:0}var o=function(M){M===void 0&&(M=9),this._maxEntries=Math.max(4,M),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()};o.prototype.all=function(){return this._all(this.data,[])},o.prototype.search=function(M){var N=this.data,P=[];if(!C(M,N))return P;for(var j=this.toBBox,z=[];N;){for(var W=0;W=0&&z[N].children.length>this._maxEntries;)this._split(z,N),N--;this._adjustParentBBoxes(j,z,N)},o.prototype._split=function(M,N){var P=M[N],j=P.children.length,z=this._minEntries;this._chooseSplitAxis(P,z,j);var W=this._chooseSplitIndex(P,z,j),Y=E(P.children.splice(W,P.children.length-W));Y.height=P.height,Y.leaf=P.leaf,l(P,this.toBBox),l(Y,this.toBBox),N?M[N-1].children.push(Y):this._splitRoot(P,Y)},o.prototype._splitRoot=function(M,N){this.data=E([M,N]),this.data.height=M.height+1,this.data.leaf=!1,l(this.data,this.toBBox)},o.prototype._chooseSplitIndex=function(M,N,P){for(var j,z=1/0,W=1/0,Y=N;Y<=P-N;Y++){var ee=u(M,0,Y,this.toBBox),q=u(M,Y,P,this.toBBox),ae=m(ee,q),se=h(ee)+h(q);ae=N;se--){var de=M.children[se];c(Y,M.leaf?z(de):de),ee+=g(Y)}return ee},o.prototype._adjustParentBBoxes=function(M,N,P){for(var j=P;j>=0;j--)c(N[j],M)},o.prototype._condense=function(M){for(var N=M.length-1,P=void 0;N>=0;N--)M[N].children.length===0?N>0?(P=M[N-1].children,P.splice(P.indexOf(M[N]),1)):this.clear():l(M[N],this.toBBox)};function s(F,M,N){if(!N)return M.indexOf(F);for(var P=0;P=F.minX&&M.maxY>=F.minY}function E(F){return{children:F,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function _(F,M,N,P,j){for(var z=[M,N];z.length;)if(N=z.pop(),M=z.pop(),!(N-M<=P)){var W=M+Math.ceil((N-M)/P/2)*P;r(F,W,M,N,j),z.push(M,W,W,N)}}return o})})(cft);var Ltr=cft.exports,Ci=function(e){return e.GROUP="g",e.FRAGMENT="fragment",e.CIRCLE="circle",e.ELLIPSE="ellipse",e.IMAGE="image",e.RECT="rect",e.LINE="line",e.POLYLINE="polyline",e.POLYGON="polygon",e.TEXT="text",e.PATH="path",e.HTML="html",e.MESH="mesh",e}({}),UK=function(e){return e[e.ZERO=0]="ZERO",e[e.NEGATIVE_ONE=1]="NEGATIVE_ONE",e}({}),z5=function(){function e(){aa(this,e),this.plugins=[]}return oa(e,[{key:"addRenderingPlugin",value:function(r){this.plugins.push(r),this.context.renderingPlugins.push(r)}},{key:"removeAllRenderingPlugins",value:function(){var r=this;this.plugins.forEach(function(n){var i=r.context.renderingPlugins.indexOf(n);i>=0&&r.context.renderingPlugins.splice(i,1)})}}])}(),Ptr=function(){function e(t){aa(this,e),this.clipSpaceNearZ=UK.NEGATIVE_ONE,this.plugins=[],this.config=Ot({enableDirtyCheck:!0,enableCulling:!1,enableAutoRendering:!0,enableDirtyRectangleRendering:!0,enableDirtyRectangleRenderingDebug:!1,enableSizeAttenuation:!0,enableRenderingOptimization:!1},t)}return oa(e,[{key:"registerPlugin",value:function(r){var n=this.plugins.findIndex(function(i){return i===r});n===-1&&this.plugins.push(r)}},{key:"unregisterPlugin",value:function(r){var n=this.plugins.findIndex(function(i){return i===r});n>-1&&this.plugins.splice(n,1)}},{key:"getPlugins",value:function(){return this.plugins}},{key:"getPlugin",value:function(r){return this.plugins.find(function(n){return n.name===r})}},{key:"getConfig",value:function(){return this.config}},{key:"setConfig",value:function(r){Object.assign(this.config,r)}}])}(),joe=Z3,U_=zw,Utr=rer,Htr=ter,fFe=MW,Goe=oer,nA=function(){function e(){aa(this,e),this.center=[0,0,0],this.halfExtents=[0,0,0],this.min=[0,0,0],this.max=[0,0,0]}return oa(e,[{key:"update",value:function(r,n){U_(this.center,r),U_(this.halfExtents,n),Goe(this.min,this.center,this.halfExtents),joe(this.max,this.center,this.halfExtents)}},{key:"setMinMax",value:function(r,n){joe(this.center,n,r),fFe(this.center,this.center,.5),Goe(this.halfExtents,n,r),fFe(this.halfExtents,this.halfExtents,.5),U_(this.min,r),U_(this.max,n)}},{key:"getMin",value:function(){return this.min}},{key:"getMax",value:function(){return this.max}},{key:"add",value:function(r){if(!e.isEmpty(r)){if(e.isEmpty(this)){this.setMinMax(r.getMin(),r.getMax());return}var n=this.center,i=n[0],a=n[1],o=n[2],s=this.halfExtents,l=s[0],u=s[1],c=s[2],A=i-l,f=i+l,h=a-u,g=a+u,p=o-c,m=o+c,b=r.center,C=b[0],E=b[1],_=b[2],F=r.halfExtents,M=F[0],N=F[1],P=F[2],j=C-M,z=C+M,W=E-N,Y=E+N,ee=_-P,q=_+P;jf&&(f=z),Wg&&(g=Y),eem&&(m=q),n[0]=(A+f)*.5,n[1]=(h+g)*.5,n[2]=(p+m)*.5,s[0]=(f-A)*.5,s[1]=(g-h)*.5,s[2]=(m-p)*.5,this.min[0]=A,this.min[1]=h,this.min[2]=p,this.max[0]=f,this.max[1]=g,this.max[2]=m}}},{key:"setFromTransformedAABB",value:function(r,n){var i=this.center,a=this.halfExtents,o=r.center,s=r.halfExtents,l=n[0],u=n[4],c=n[8],A=n[1],f=n[5],h=n[9],g=n[2],p=n[6],m=n[10],b=Math.abs(l),C=Math.abs(u),E=Math.abs(c),_=Math.abs(A),F=Math.abs(f),M=Math.abs(h),N=Math.abs(g),P=Math.abs(p),j=Math.abs(m);i[0]=n[12]+l*o[0]+u*o[1]+c*o[2],i[1]=n[13]+A*o[0]+f*o[1]+h*o[2],i[2]=n[14]+g*o[0]+p*o[1]+m*o[2],a[0]=b*s[0]+C*s[1]+E*s[2],a[1]=_*s[0]+F*s[1]+M*s[2],a[2]=N*s[0]+P*s[1]+j*s[2],Goe(this.min,i,a),joe(this.max,i,a)}},{key:"intersects",value:function(r){var n=this.getMax(),i=this.getMin(),a=r.getMax(),o=r.getMin();return i[0]<=a[0]&&n[0]>=o[0]&&i[1]<=a[1]&&n[1]>=o[1]&&i[2]<=a[2]&&n[2]>=o[2]}},{key:"intersection",value:function(r){if(!this.intersects(r))return null;var n=new e,i=Utr([0,0,0],this.getMin(),r.getMin()),a=Htr([0,0,0],this.getMax(),r.getMax());return n.setMinMax(i,a),n}},{key:"getNegativeFarPoint",value:function(r){return r.pnVertexFlag===273?U_([0,0,0],this.min):r.pnVertexFlag===272?[this.min[0],this.min[1],this.max[2]]:r.pnVertexFlag===257?[this.min[0],this.max[1],this.min[2]]:r.pnVertexFlag===256?[this.min[0],this.max[1],this.max[2]]:r.pnVertexFlag===17?[this.max[0],this.min[1],this.min[2]]:r.pnVertexFlag===16?[this.max[0],this.min[1],this.max[2]]:r.pnVertexFlag===1?[this.max[0],this.max[1],this.min[2]]:[this.max[0],this.max[1],this.max[2]]}},{key:"getPositiveFarPoint",value:function(r){return r.pnVertexFlag===273?U_([0,0,0],this.max):r.pnVertexFlag===272?[this.max[0],this.max[1],this.min[2]]:r.pnVertexFlag===257?[this.max[0],this.min[1],this.max[2]]:r.pnVertexFlag===256?[this.max[0],this.min[1],this.min[2]]:r.pnVertexFlag===17?[this.min[0],this.max[1],this.max[2]]:r.pnVertexFlag===16?[this.min[0],this.max[1],this.min[2]]:r.pnVertexFlag===1?[this.min[0],this.min[1],this.max[2]]:[this.min[0],this.min[1],this.min[2]]}}],[{key:"isEmpty",value:function(r){return!r||r.halfExtents[0]===0&&r.halfExtents[1]===0&&r.halfExtents[2]===0}}])}(),jtr=function(){function e(t,r){aa(this,e),this.distance=t||0,this.normal=r||yA(0,1,0),this.updatePNVertexFlag()}return oa(e,[{key:"updatePNVertexFlag",value:function(){this.pnVertexFlag=(+(this.normal[0]>=0)<<8)+(+(this.normal[1]>=0)<<4)+ +(this.normal[2]>=0)}},{key:"distanceToPoint",value:function(r){return Kw(r,this.normal)-this.distance}},{key:"normalize",value:function(){var r=1/zAt(this.normal);MW(this.normal,this.normal,r),this.distance*=r}},{key:"intersectsLine",value:function(r,n,i){var a=this.distanceToPoint(r),o=this.distanceToPoint(n),s=a/(a-o),l=s>=0&&s<=1;return l&&i&&Ebe(i,r,n,s),l}}])}(),H_=function(e){return e[e.OUTSIDE=4294967295]="OUTSIDE",e[e.INSIDE=0]="INSIDE",e[e.INDETERMINATE=2147483647]="INDETERMINATE",e}({}),Gtr=function(){function e(t){if(aa(this,e),this.planes=[],t)this.planes=t;else for(var r=0;r<6;r++)this.planes.push(new jtr)}return oa(e,[{key:"extractFromVPMatrix",value:function(r){var n=gl(r,16),i=n[0],a=n[1],o=n[2],s=n[3],l=n[4],u=n[5],c=n[6],A=n[7],f=n[8],h=n[9],g=n[10],p=n[11],m=n[12],b=n[13],C=n[14],E=n[15];Xp(this.planes[0].normal,s-i,A-l,p-f),this.planes[0].distance=E-m,Xp(this.planes[1].normal,s+i,A+l,p+f),this.planes[1].distance=E+m,Xp(this.planes[2].normal,s+a,A+u,p+h),this.planes[2].distance=E+b,Xp(this.planes[3].normal,s-a,A-u,p-h),this.planes[3].distance=E-b,Xp(this.planes[4].normal,s-o,A-c,p-g),this.planes[4].distance=E-C,Xp(this.planes[5].normal,s+o,A+c,p+g),this.planes[5].distance=E+C,this.planes.forEach(function(_){_.normalize(),_.updatePNVertexFlag()})}}])}(),Wg=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;aa(this,e),this.x=0,this.y=0,this.x=t,this.y=r}return oa(e,[{key:"clone",value:function(){return new e(this.x,this.y)}},{key:"copyFrom",value:function(r){this.x=r.x,this.y=r.y}}])}(),n7=function(){function e(t,r,n,i){aa(this,e),this.x=t,this.y=r,this.width=n,this.height=i,this.left=t,this.right=t+n,this.top=r,this.bottom=r+i}return oa(e,[{key:"toJSON",value:function(){}}],[{key:"fromRect",value:function(r){return new e(r.x,r.y,r.width,r.height)}},{key:"applyTransform",value:function(r,n){var i=KR(r.x,r.y,0,1),a=KR(r.x+r.width,r.y,0,1),o=KR(r.x,r.y+r.height,0,1),s=KR(r.x+r.width,r.y+r.height,0,1),l=Vw(),u=Vw(),c=Vw(),A=Vw();xE(l,i,n),xE(u,a,n),xE(c,o,n),xE(A,s,n);var f=Math.min(l[0],u[0],c[0],A[0]),h=Math.min(l[1],u[1],c[1],A[1]),g=Math.max(l[0],u[0],c[0],A[0]),p=Math.max(l[1],u[1],c[1],A[1]);return e.fromRect({x:f,y:h,width:g-f,height:p-h})}}])}(),Tc="Method not implemented.",j_="Use document.documentElement instead.",$tr="Cannot append a destroyed element.";function m9(e){return e===void 0?0:e>360||e<-360?e%360:e}var $oe=Jl();function N0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;return Array.isArray(e)&&e.length===3?n?sE(e):zw($oe,e):go(e)?n?yA(e,t,r):Xp($oe,e,t,r):n?yA(e[0],e[1]||t,e[2]||r):Xp($oe,e[0],e[1]||t,e[2]||r)}var ztr=Math.PI/180;function Fc(e){return e*ztr}var Ktr=180/Math.PI;function Hv(e){return e*Ktr}function Vtr(e){return 360*e}var HW=Math.PI/2;function Wtr(e,t){var r=t[0],n=t[1],i=t[2],a=t[3],o=r*r,s=n*n,l=i*i,u=a*a,c=o+s+l+u,A=r*a-n*i;return A>.499995*c?(e[0]=HW,e[1]=2*Math.atan2(n,r),e[2]=0):A<-.499995*c?(e[0]=-HW,e[1]=2*Math.atan2(n,r),e[2]=0):(e[0]=Math.asin(2*(r*i-a*n)),e[1]=Math.atan2(2*(r*a+n*i),1-2*(l+u)),e[2]=Math.atan2(2*(r*n+i*a),1-2*(s+l))),e}function Ytr(e,t){var r,n,i=t7(Jl(),t),a=gl(i,3),o=a[0],s=a[1],l=a[2],u=Math.asin(-t[2]/o);return u-HW?(r=Math.atan2(t[6]/s,t[10]/l),n=Math.atan2(t[1]/o,t[0]/o)):(n=0,r=-Math.atan2(t[4]/s,t[5]/s)):(n=0,r=Math.atan2(t[4]/s,t[5]/s)),e[0]=r,e[1]=u,e[2]=n,e}function zoe(e,t){return t.length===16?Ytr(e,t):Wtr(e,t)}function qtr(e,t,r,n,i){var a=Math.cos(e),o=Math.sin(e);return RZt(n*a,i*o,0,-n*o,i*a,0,t,r,1)}function Jtr(e,t,r,n,i,a,o){var s=arguments.length>7&&arguments[7]!==void 0?arguments[7]:!1,l=2*a,u=r-t,c=n-i,A=l/u,f=l/c,h=(r+t)/u,g=(n+i)/c,p,m,b=o-a,C=o*a;return s?(p=-o/b,m=-C/b):(p=-(o+a)/b,m=-2*C/b),e[0]=A,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=f,e[6]=0,e[7]=0,e[8]=h,e[9]=g,e[10]=p,e[11]=-1,e[12]=0,e[13]=0,e[14]=m,e[15]=0,e}function hFe(e){var t=e[0],r=e[1],n=e[3],i=e[4],a=Math.sqrt(t*t+r*r),o=Math.sqrt(n*n+i*i),s=t*i-r*n;if(s<0&&(tGs[1][2]&&(a[0]=-a[0]),Gs[0][2]>Gs[2][0]&&(a[1]=-a[1]),Gs[1][0]>Gs[0][1]&&(a[2]=-a[2]),!0}function Ztr(e,t){var r=t[15];if(r===0)return!1;for(var n=1/r,i=0;i<16;i++)e[i]=t[i]*n;return!0}function err(e,t){e[0][0]=t[0],e[0][1]=t[1],e[0][2]=t[2],e[1][0]=t[4],e[1][1]=t[5],e[1][2]=t[6],e[2][0]=t[8],e[2][1]=t[9],e[2][2]=t[10]}function Koe(e,t,r,n,i){e[0]=t[0]*n+r[0]*i,e[1]=t[1]*n+r[1]*i,e[2]=t[2]*n+r[2]*i}var _c=function(e){return e[e.ORBITING=0]="ORBITING",e[e.EXPLORING=1]="EXPLORING",e[e.TRACKING=2]="TRACKING",e}({}),Mbe=function(e){return e[e.DEFAULT=0]="DEFAULT",e[e.ROTATIONAL=1]="ROTATIONAL",e[e.TRANSLATIONAL=2]="TRANSLATIONAL",e[e.CINEMATIC=3]="CINEMATIC",e}({}),ay=function(e){return e[e.ORTHOGRAPHIC=0]="ORTHOGRAPHIC",e[e.PERSPECTIVE=1]="PERSPECTIVE",e}({}),Aft={UPDATED:"updated"},gFe=2e-4,fft=function(){function e(){aa(this,e),this.clipSpaceNearZ=UK.NEGATIVE_ONE,this.eventEmitter=new BAt,this.matrix=$c(),this.right=yA(1,0,0),this.up=yA(0,1,0),this.forward=yA(0,0,1),this.position=yA(0,0,1),this.focalPoint=yA(0,0,0),this.distanceVector=yA(0,0,-1),this.distance=1,this.azimuth=0,this.elevation=0,this.roll=0,this.relAzimuth=0,this.relElevation=0,this.relRoll=0,this.dollyingStep=0,this.maxDistance=1/0,this.minDistance=-1/0,this.zoom=1,this.rotateWorld=!1,this.fov=30,this.near=.1,this.far=1e3,this.aspect=1,this.projectionMatrix=$c(),this.projectionMatrixInverse=$c(),this.jitteredProjectionMatrix=void 0,this.enableUpdate=!0,this.type=_c.EXPLORING,this.trackingMode=Mbe.DEFAULT,this.projectionMode=ay.PERSPECTIVE,this.frustum=new Gtr,this.orthoMatrix=$c()}return oa(e,[{key:"isOrtho",value:function(){return this.projectionMode===ay.ORTHOGRAPHIC}},{key:"getProjectionMode",value:function(){return this.projectionMode}},{key:"getPerspective",value:function(){return this.jitteredProjectionMatrix||this.projectionMatrix}},{key:"getPerspectiveInverse",value:function(){return this.projectionMatrixInverse}},{key:"getFrustum",value:function(){return this.frustum}},{key:"getPosition",value:function(){return this.position}},{key:"getFocalPoint",value:function(){return this.focalPoint}},{key:"getDollyingStep",value:function(){return this.dollyingStep}},{key:"getNear",value:function(){return this.near}},{key:"getFar",value:function(){return this.far}},{key:"getZoom",value:function(){return this.zoom}},{key:"getOrthoMatrix",value:function(){return this.orthoMatrix}},{key:"getView",value:function(){return this.view}},{key:"setEnableUpdate",value:function(r){this.enableUpdate=r}},{key:"setType",value:function(r,n){return this.type=r,this.type===_c.EXPLORING?this.setWorldRotation(!0):this.setWorldRotation(!1),this._getAngles(),this.type===_c.TRACKING&&n!==void 0&&this.setTrackingMode(n),this}},{key:"setProjectionMode",value:function(r){return this.projectionMode=r,this}},{key:"setTrackingMode",value:function(r){if(this.type!==_c.TRACKING)throw new Error("Impossible to set a tracking mode if the camera is not of tracking type");return this.trackingMode=r,this}},{key:"setWorldRotation",value:function(r){return this.rotateWorld=r,this._getAngles(),this}},{key:"getViewTransform",value:function(){return $w($c(),this.matrix)}},{key:"getWorldTransform",value:function(){return this.matrix}},{key:"jitterProjectionMatrix",value:function(r,n){var i=m3($c(),[r,n,0]);this.jitteredProjectionMatrix=i0($c(),i,this.projectionMatrix)}},{key:"clearJitterProjectionMatrix",value:function(){this.jitteredProjectionMatrix=void 0}},{key:"setMatrix",value:function(r){return this.matrix=r,this._update(),this}},{key:"setProjectionMatrix",value:function(r){this.projectionMatrix=r}},{key:"setFov",value:function(r){return this.setPerspective(this.near,this.far,r,this.aspect),this}},{key:"setAspect",value:function(r){return this.setPerspective(this.near,this.far,this.fov,r),this}},{key:"setNear",value:function(r){return this.projectionMode===ay.PERSPECTIVE?this.setPerspective(r,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,r,this.far),this}},{key:"setFar",value:function(r){return this.projectionMode===ay.PERSPECTIVE?this.setPerspective(this.near,r,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,r),this}},{key:"setViewOffset",value:function(r,n,i,a,o,s){return this.aspect=r/n,this.view===void 0&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=r,this.view.fullHeight=n,this.view.offsetX=i,this.view.offsetY=a,this.view.width=o,this.view.height=s,this.projectionMode===ay.PERSPECTIVE?this.setPerspective(this.near,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far),this}},{key:"clearViewOffset",value:function(){return this.view!==void 0&&(this.view.enabled=!1),this.projectionMode===ay.PERSPECTIVE?this.setPerspective(this.near,this.far,this.fov,this.aspect):this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far),this}},{key:"setZoom",value:function(r){return this.zoom=r,this.projectionMode===ay.ORTHOGRAPHIC?this.setOrthographic(this.left,this.rright,this.top,this.bottom,this.near,this.far):this.projectionMode===ay.PERSPECTIVE&&this.setPerspective(this.near,this.far,this.fov,this.aspect),this}},{key:"setZoomByViewportPoint",value:function(r,n){var i=this.canvas.viewport2Canvas({x:n[0],y:n[1]}),a=i.x,o=i.y,s=this.roll;this.rotate(0,0,-s),this.setPosition(a,o),this.setFocalPoint(a,o),this.setZoom(r),this.rotate(0,0,s);var l=this.canvas.viewport2Canvas({x:n[0],y:n[1]}),u=l.x,c=l.y,A=yA(u-a,c-o,0),f=Kw(A,this.right)/mE(this.right),h=Kw(A,this.up)/mE(this.up),g=this.getPosition(),p=gl(g,2),m=p[0],b=p[1],C=this.getFocalPoint(),E=gl(C,2),_=E[0],F=E[1];return this.setPosition(m-f,b-h),this.setFocalPoint(_-f,F-h),this}},{key:"setPerspective",value:function(r,n,i,a){var o;this.projectionMode=ay.PERSPECTIVE,this.fov=i,this.near=r,this.far=n,this.aspect=a;var s=this.near*Math.tan(Fc(.5*this.fov))/this.zoom,l=2*s,u=this.aspect*l,c=-.5*u;if((o=this.view)!==null&&o!==void 0&&o.enabled){var A=this.view.fullWidth,f=this.view.fullHeight;c+=this.view.offsetX*u/A,s-=this.view.offsetY*l/f,u*=this.view.width/A,l*=this.view.height/f}return Jtr(this.projectionMatrix,c,c+u,s-l,s,r,this.far,this.clipSpaceNearZ===UK.ZERO),$w(this.projectionMatrixInverse,this.projectionMatrix),this.triggerUpdate(),this}},{key:"setOrthographic",value:function(r,n,i,a,o,s){var l;this.projectionMode=ay.ORTHOGRAPHIC,this.rright=n,this.left=r,this.top=i,this.bottom=a,this.near=o,this.far=s;var u=(this.rright-this.left)/(2*this.zoom),c=(this.top-this.bottom)/(2*this.zoom),A=(this.rright+this.left)/2,f=(this.top+this.bottom)/2,h=A-u,g=A+u,p=f+c,m=f-c;if((l=this.view)!==null&&l!==void 0&&l.enabled){var b=(this.rright-this.left)/this.view.fullWidth/this.zoom,C=(this.top-this.bottom)/this.view.fullHeight/this.zoom;h+=b*this.view.offsetX,g=h+b*this.view.width,p-=C*this.view.offsetY,m=p-C*this.view.height}return this.clipSpaceNearZ===UK.NEGATIVE_ONE?UAt(this.projectionMatrix,h,g,p,m,o,s):HAt(this.projectionMatrix,h,g,p,m,o,s),$w(this.projectionMatrixInverse,this.projectionMatrix),this._getOrthoMatrix(),this.triggerUpdate(),this}},{key:"setPosition",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.position[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.position[2],a=N0(r,n,i);return this._setPosition(a),this.setFocalPoint(this.focalPoint),this.triggerUpdate(),this}},{key:"setFocalPoint",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.focalPoint[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.focalPoint[2],a=yA(0,1,0);if(this.focalPoint=N0(r,n,i),this.trackingMode===Mbe.CINEMATIC){var o=Ibe(Jl(),this.focalPoint,this.position);r=o[0],n=o[1],i=o[2];var s=mE(o),l=Hv(Math.asin(n/s)),u=90+Hv(Math.atan2(i,r)),c=$c();FAt(c,c,Fc(u)),DAt(c,c,Fc(l)),a=a0(Jl(),[0,1,0],c)}return $w(this.matrix,jAt($c(),this.position,this.focalPoint,a)),this._getAxes(),this._getDistance(),this._getAngles(),this.triggerUpdate(),this}},{key:"getDistance",value:function(){return this.distance}},{key:"getDistanceVector",value:function(){return this.distanceVector}},{key:"setDistance",value:function(r){if(this.distance===r||r<0)return this;this.distance=r,this.distance>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?pG(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?pG(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=orr.exec(e))?new qv(t[1],t[2],t[3],1):(t=srr.exec(e))?new qv(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=lrr.exec(e))?pG(t[1],t[2],t[3],t[4]):(t=urr.exec(e))?pG(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=crr.exec(e))?IFe(t[1],t[2]/100,t[3]/100,1):(t=Arr.exec(e))?IFe(t[1],t[2]/100,t[3]/100,t[4]):vFe.hasOwnProperty(e)?bFe(vFe[e]):e==="transparent"?new qv(NaN,NaN,NaN,0):null}function bFe(e){return new qv(e>>16&255,e>>8&255,e&255,1)}function pG(e,t,r,n){return n<=0&&(e=t=r=NaN),new qv(e,t,r,n)}function drr(e){return e instanceof ML||(e=XJ(e)),e?(e=e.rgb(),new qv(e.r,e.g,e.b,e.opacity)):new qv}function grr(e,t,r,n){return arguments.length===1?drr(e):new qv(e,t,r,n??1)}function qv(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Lxe(qv,grr,dft(ML,{brighter(e){return e=e==null?GW:Math.pow(GW,e),new qv(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?rN:Math.pow(rN,e),new qv(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new qv(Wk(this.r),Wk(this.g),Wk(this.b),$W(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:wFe,formatHex:wFe,formatHex8:prr,formatRgb:CFe,toString:CFe}));function wFe(){return`#${wk(this.r)}${wk(this.g)}${wk(this.b)}`}function prr(){return`#${wk(this.r)}${wk(this.g)}${wk(this.b)}${wk((isNaN(this.opacity)?1:this.opacity)*255)}`}function CFe(){const e=$W(this.opacity);return`${e===1?"rgb(":"rgba("}${Wk(this.r)}, ${Wk(this.g)}, ${Wk(this.b)}${e===1?")":`, ${e})`}`}function $W(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Wk(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function wk(e){return e=Wk(e),(e<16?"0":"")+e.toString(16)}function IFe(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new jb(e,t,r,n)}function gft(e){if(e instanceof jb)return new jb(e.h,e.s,e.l,e.opacity);if(e instanceof ML||(e=XJ(e)),!e)return new jb;if(e instanceof jb)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,s=a-i,l=(a+i)/2;return s?(t===a?o=(r-n)/s+(r0&&l<1?0:o,new jb(o,s,l,e.opacity)}function vrr(e,t,r,n){return arguments.length===1?gft(e):new jb(e,t,r,n??1)}function jb(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Lxe(jb,vrr,dft(ML,{brighter(e){return e=e==null?GW:Math.pow(GW,e),new jb(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?rN:Math.pow(rN,e),new jb(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new qv(Voe(e>=240?e-240:e+120,i,n),Voe(e,i,n),Voe(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new jb(EFe(this.h),vG(this.s),vG(this.l),$W(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=$W(this.opacity);return`${e===1?"hsl(":"hsla("}${EFe(this.h)}, ${vG(this.s)*100}%, ${vG(this.l)*100}%${e===1?")":`, ${e})`}`}}));function EFe(e){return e=(e||0)%360,e<0?e+360:e}function vG(e){return Math.max(0,Math.min(1,e||0))}function Voe(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}function Qh(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError("Expected a function");var r=function(){for(var i=arguments.length,a=new Array(i),o=0;o=i7.kUnitType&&this.getType()<=i7.kClampType}}],[{key:"isAngle",value:function(r){return r===qa.kDegrees||r===qa.kRadians||r===qa.kGradians||r===qa.kTurns}},{key:"isLength",value:function(r){return r>=qa.kEms&&r1&&arguments[1]!==void 0?arguments[1]:"",n="";return Number.isFinite(t)?n="NaN":t>0?n="infinity":n="-infinity",n+=r},Nbe=function(t){return Err(Irr(t))},vg=function(e){function t(r){var n,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qa.kNumber;aa(this,t),n=kl(this,t);var a;return typeof i=="string"?a=Crr(i):a=i,n.unit=a,n.value=r,n}return Ql(t,e),oa(t,[{key:"clone",value:function(){return new t(this.value,this.unit)}},{key:"equals",value:function(n){var i=n;return this.value===i.value&&this.unit===i.unit}},{key:"getType",value:function(){return i7.kUnitType}},{key:"convertTo",value:function(n){if(this.unit===n)return new t(this.value,this.unit);var i=Nbe(this.unit);if(i!==Nbe(n)||i===qa.kUnknown)return null;var a=BFe(this.unit)/BFe(n);return new t(this.value*a,n)}},{key:"buildCSSText",value:function(n,i,a){var o;switch(this.unit){case qa.kUnknown:break;case qa.kInteger:o=Number(this.value).toFixed(0);break;case qa.kNumber:case qa.kPercentage:case qa.kEms:case qa.kRems:case qa.kPixels:case qa.kDegrees:case qa.kRadians:case qa.kGradians:case qa.kMilliseconds:case qa.kSeconds:case qa.kTurns:{var s=-999999,l=999999,u=this.value,c=Obe(this.unit);if(ul){var A=Obe(this.unit);!Number.isFinite(u)||Number.isNaN(u)?o=xrr(u,A):o=u+(A||"")}else o="".concat(u).concat(c)}}return a+=o,a}}])}(ZJ),Rb=new vg(0,"px");new vg(1,"px");var S6=new vg(0,"deg"),Pxe=function(e){function t(r,n,i){var a,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;return aa(this,t),a=kl(this,t,["rgb"]),a.r=r,a.g=n,a.b=i,a.alpha=o,a.isNone=s,a}return Ql(t,e),oa(t,[{key:"clone",value:function(){return new t(this.r,this.g,this.b,this.alpha)}},{key:"buildCSSText",value:function(n,i,a){return"".concat(a,"rgba(").concat(this.r,",").concat(this.g,",").concat(this.b,",").concat(this.alpha,")")}}])}(Brr),xFe=new Py("unset"),Srr=new Py("initial"),krr=new Py("inherit"),Woe={"":xFe,unset:xFe,initial:Srr,inherit:krr},Qrr=function(t){return Woe[t]||(Woe[t]=new Py(t)),Woe[t]},pft=new Pxe(0,0,0,0,!0),vft=new Pxe(0,0,0,0),_rr=Qh(function(e,t,r,n){return new Pxe(e,t,r,n)},function(e,t,r,n){return"rgba(".concat(e,",").concat(t,",").concat(r,",").concat(n,")")}),HA=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:qa.kNumber;return new vg(t,r)};new vg(50,"%");function Trr(e){var t=e.type,r=e.value;return t==="hex"?"#".concat(r):t==="literal"?r:t==="rgb"?"rgb(".concat(r.join(","),")"):"rgba(".concat(r.join(","),")")}var Drr=function(){var e={linearGradient:/^(linear\-gradient)/i,repeatingLinearGradient:/^(repeating\-linear\-gradient)/i,radialGradient:/^(radial\-gradient)/i,repeatingRadialGradient:/^(repeating\-radial\-gradient)/i,conicGradient:/^(conic\-gradient)/i,sideOrCorner:/^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,extentKeywords:/^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,positionKeywords:/^(left|center|right|top|bottom)/i,pixelValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,percentageValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,emValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,angleValue:/^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,startCall:/^\(/,endCall:/^\)/,comma:/^,/,hexColor:/^\#([0-9a-fA-F]+)/,literalColor:/^([a-zA-Z]+)/,rgbColor:/^rgb/i,rgbaColor:/^rgba/i,number:/^(([0-9]*\.[0-9]+)|([0-9]+\.?))/},t="";function r(de){throw new Error("".concat(t,": ").concat(de))}function n(){var de=i();return t.length>0&&r("Invalid input not EOF"),de}function i(){return E(a)}function a(){return o("linear-gradient",e.linearGradient,l)||o("repeating-linear-gradient",e.repeatingLinearGradient,l)||o("radial-gradient",e.radialGradient,A)||o("repeating-radial-gradient",e.repeatingRadialGradient,A)||o("conic-gradient",e.conicGradient,A)}function o(de,Ae,be){return s(Ae,function(Le){var Ne=be();return Ne&&(ae(e.comma)||r("Missing comma before color stops")),{type:de,orientation:Ne,colorStops:E(_)}})}function s(de,Ae){var be=ae(de);if(be){ae(e.startCall)||r("Missing (");var Le=Ae(be);return ae(e.endCall)||r("Missing )"),Le}}function l(){return u()||c()}function u(){return q("directional",e.sideOrCorner,1)}function c(){return q("angular",e.angleValue,1)}function A(){var de,Ae=f(),be;return Ae&&(de=[],de.push(Ae),be=t,ae(e.comma)&&(Ae=f(),Ae?de.push(Ae):t=be)),de}function f(){var de=h()||g();if(de)de.at=m();else{var Ae=p();if(Ae){de=Ae;var be=m();be&&(de.at=be)}else{var Le=b();Le&&(de={type:"default-radial",at:Le})}}return de}function h(){var de=q("shape",/^(circle)/i,0);return de&&(de.style=ee()||p()),de}function g(){var de=q("shape",/^(ellipse)/i,0);return de&&(de.style=W()||p()),de}function p(){return q("extent-keyword",e.extentKeywords,1)}function m(){if(q("position",/^at/,0)){var de=b();return de||r("Missing positioning value"),de}}function b(){var de=C();if(de.x||de.y)return{type:"position",value:de}}function C(){return{x:W(),y:W()}}function E(de){var Ae=de(),be=[];if(Ae)for(be.push(Ae);ae(e.comma);)Ae=de(),Ae?be.push(Ae):r("One extra comma");return be}function _(){var de=F();return de||r("Expected color definition"),de.length=W(),de}function F(){return N()||j()||P()||M()}function M(){return q("literal",e.literalColor,0)}function N(){return q("hex",e.hexColor,1)}function P(){return s(e.rgbColor,function(){return{type:"rgb",value:E(z)}})}function j(){return s(e.rgbaColor,function(){return{type:"rgba",value:E(z)}})}function z(){return ae(e.number)[1]}function W(){return q("%",e.percentageValue,1)||Y()||ee()}function Y(){return q("position-keyword",e.positionKeywords,1)}function ee(){return q("px",e.pixelValue,1)||q("em",e.emValue,1)}function q(de,Ae,be){var Le=ae(Ae);if(Le)return{type:de,value:Le[be]}}function ae(de){var Ae=/^[\n\r\t\s]+/.exec(t);Ae&&se(Ae[0].length);var be=de.exec(t);return be&&se(be[0].length),be}function se(de){t=t.substring(de)}return function(de){return t=de,n()}}();function Frr(e,t,r,n){var i=Fc(n.value),a=0,o=0,s=a+t/2,l=o+r/2,u=Math.abs(t*Math.cos(i))+Math.abs(r*Math.sin(i)),c=e[0]+s-Math.cos(i)*u/2,A=e[1]+l-Math.sin(i)*u/2,f=e[0]+s+Math.cos(i)*u/2,h=e[1]+l+Math.sin(i)*u/2;return{x1:c,y1:A,x2:f,y2:h}}function Rrr(e,t,r,n,i,a){var o=n.value,s=i.value;n.unit===qa.kPercentage&&(o=n.value/100*t),i.unit===qa.kPercentage&&(s=i.value/100*r);var l=Math.max(Uv([0,0],[o,s]),Uv([0,r],[o,s]),Uv([t,r],[o,s]),Uv([t,0],[o,s]));return a&&(a instanceof vg?l=a.value:a instanceof Py&&(a.value==="closest-side"?l=Math.min(o,t-o,s,r-s):a.value==="farthest-side"?l=Math.max(o,t-o,s,r-s):a.value==="closest-corner"&&(l=Math.min(Uv([0,0],[o,s]),Uv([0,r],[o,s]),Uv([t,r],[o,s]),Uv([t,0],[o,s]))))),{x:o+e[0],y:s+e[1],r:l}}var Mrr=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,Orr=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,Nrr=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,mft=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function Lrr(e){var t,r=e.length;if(e[r-1].length=(t=e[r-1].length)!==null&&t!==void 0?t:{type:"%",value:"100"},r>1){var n;e[0].length=(n=e[0].length)!==null&&n!==void 0?n:{type:"%",value:"0"}}for(var i=0,a=Number(e[0].length.value),o=1;o-1||e.indexOf("radial")>-1){var t=Drr(e);return t.map(function(s){var l=s.type,u=s.orientation,c=s.colorStops;Lrr(c);var A=c.map(function(E){return{offset:HA(Number(E.length.value),"%"),color:Trr(E)}});if(l==="linear-gradient")return new mG(k3.LinearGradient,{angle:u?Urr(u):S6,steps:A});if(l==="radial-gradient"&&(u||(u=[{type:"shape",value:"circle"}]),u[0].type==="shape"&&u[0].value==="circle")){var f=Hrr(u[0].at),h=f.cx,g=f.cy,p;if(u[0].style){var m=u[0].style,b=m.type,C=m.value;b==="extent-keyword"?p=Qrr(C):p=HA(C,b)}return new mG(k3.RadialGradient,{cx:h,cy:g,size:p,steps:A})}})}var r=e[0];if(e[1]==="("||e[2]==="("){if(r==="l"){var n=Mrr.exec(e);if(n){var i,a=((i=n[2].match(mft))===null||i===void 0?void 0:i.map(function(s){return s.split(":")}))||[];return[new mG(k3.LinearGradient,{angle:HA(parseFloat(n[1]),"deg"),steps:a.map(function(s){var l=gl(s,2),u=l[0],c=l[1];return{offset:HA(Number(u)*100,"%"),color:c}})})]}}else if(r==="r"){var o=Grr(e);if(o)if(_u(o))e=o;else return[new mG(k3.RadialGradient,o)]}else if(r==="p")return $rr(e)}});function Grr(e){var t=Orr.exec(e);if(t){var r,n=((r=t[4].match(mft))===null||r===void 0?void 0:r.map(function(i){return i.split(":")}))||[];return{cx:HA(50,"%"),cy:HA(50,"%"),steps:n.map(function(i){var a=gl(i,2),o=a[0],s=a[1];return{offset:HA(Number(o)*100,"%"),color:s}})}}return null}function $rr(e){var t=Nrr.exec(e);if(t){var r=t[1],n=t[2];switch(r){case"a":r="repeat";break;case"x":r="repeat-x";break;case"y":r="repeat-y";break;case"n":r="no-repeat";break;default:r="no-repeat"}return{image:n,repetition:r}}return null}function k6(e){return e&&!!e.image}function zW(e){return e&&!ds(e.r)&&!ds(e.g)&&!ds(e.b)}var qM=Qh(function(e){if(k6(e))return Ot({repetition:"repeat"},e);if(ds(e)&&(e=""),e==="transparent")return vft;if(e==="currentColor")e="black";else if(e==="none")return pft;var t=jrr(e);if(t)return t;var r=XJ(e),n=[0,0,0,0];return r!==null&&(n[0]=r.r||0,n[1]=r.g||0,n[2]=r.b||0,n[3]=r.opacity),_rr.apply(void 0,n)});function zrr(e,t){if(!(!zW(e)||!zW(t)))return[[Number(e.r),Number(e.g),Number(e.b),Number(e.alpha)],[Number(t.r),Number(t.g),Number(t.b),Number(t.alpha)],function(r){var n=r.slice();if(n[3])for(var i=0;i<3;i++)n[i]=Math.round(Sf(n[i],0,255));return n[3]=Sf(n[3],0,1),"rgba(".concat(n.join(","),")")}]}function OL(e,t){if(ds(t))return HA(0,"px");if(t="".concat(t).trim().toLowerCase(),isFinite(Number(t))){if("px".search(e)>=0)return HA(Number(t),"px");if("deg".search(e)>=0)return HA(Number(t),"deg")}var r=[];t=t.replace(e,function(i){return r.push(i),"U".concat(i)});var n="U(".concat(e.source,")");return r.map(function(i){return HA(Number(t.replace(new RegExp("U".concat(i),"g"),"").replace(new RegExp(n,"g"),"*0")),i)})[0]}var yft=function(t){return OL(new RegExp("px","g"),t)},Krr=Qh(yft),Vrr=function(t){return OL(new RegExp("%","g"),t)};Qh(Vrr);var bft=function(t){return go(t)||isFinite(Number(t))?HA(Number(t)||0,"px"):OL(new RegExp("px|%|em|rem","g"),t)},Lbe=Qh(bft),wft=function(t){return OL(new RegExp("deg|rad|grad|turn","g"),t)},Wrr=Qh(wft);function Yrr(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,a="",o=e.value||0,s=t.value||0,l=Nbe(e.unit),u=e.convertTo(l),c=t.convertTo(l);return u&&c?(o=u.value,s=c.value,a=Obe(e.unit)):(vg.isLength(e.unit)||vg.isLength(t.unit))&&(o=Gm(e,i,r),s=Gm(t,i,r),a="px"),[o,s,function(A){return A+a}]}function jv(e){var t=0;return e.unit===qa.kDegrees?t=e.value:e.unit===qa.kRadians?t=Hv(Number(e.value)):e.unit===qa.kTurns?t=Vtr(Number(e.value)):e.value&&(t=e.value),t}function SFe(e,t){var r;return Array.isArray(e)?r=e.map(function(n){return Number(n)}):_u(e)?r=e.split(" ").map(function(n){return Number(n)}):go(e)&&(r=[e]),t===2?r.length===1?[r[0],r[0]]:[r[0],r[1]]:t===4?r.length===1?[r[0],r[0],r[0],r[0]]:r.length===2?[r[0],r[1],r[0],r[1]]:r.length===3?[r[0],r[1],r[2],r[1]]:[r[0],r[1],r[2],r[3]]:t==="even"&&r.length%2===1?[].concat(ou(r),ou(r)):r}function Gm(e,t,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e.unit===qa.kPixels)return Number(e.value);if(e.unit===qa.kPercentage&&r){var i=r.nodeName===Ci.GROUP?r.getLocalBounds():r.getGeometryBounds();return(n?i.min[t]:0)+e.value/100*i.halfExtents[t]*2}return 0}var qrr=function(t){return OL(/deg|rad|grad|turn|px|%/g,t)},Jrr=["blur","brightness","drop-shadow","contrast","grayscale","sepia","saturate","hue-rotate","invert"];function Xrr(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";if(e=e.toLowerCase().trim(),e==="none")return[];for(var t=/\s*([\w-]+)\(([^)]*)\)/g,r=[],n,i=0;n=t.exec(e);){if(n.index!==i)return[];if(i=n.index+n[0].length,Jrr.indexOf(n[1])>-1&&r.push({name:n[1],params:n[2].split(" ").map(function(a){return qrr(a)||qM(a)})}),t.lastIndex===e.length)return r}return[]}function Cft(e){return e.toString()}var Ift=function(t){return typeof t=="number"?HA(t):/^\s*[-+]?(\d*\.)?\d+\s*$/.test(t)?HA(Number(t)):HA(0)},Pbe=Qh(Ift);Qh(function(e){return _u(e)?e.split(" ").map(Pbe):e.map(Pbe)});function Uxe(e,t){return[e,t,Cft]}function Hxe(e,t){return function(r,n){return[r,n,function(i){return Cft(Sf(i,e,t))}]}}function Eft(e,t){if(e.length===t.length)return[e,t,function(r){return r}]}function Ube(e){return e.parsedStyle.d.totalLength===0&&(e.parsedStyle.d.totalLength=htr(e.parsedStyle.d.absolutePath)),e.parsedStyle.d.totalLength}function Zrr(e){return e.parsedStyle.points.totalLength===0&&(e.parsedStyle.points.totalLength=Dtr(e.parsedStyle.points.points)),e.parsedStyle.points.totalLength}function enr(e){for(var t=0;t0&&r.push(n),{polygons:t,polylines:r}}function KW(e,t){return e[0]===t[0]&&e[1]===t[1]}function nnr(e,t){for(var r=[],n=[],i=[],a=0;aMath.PI/2?Math.PI-u:u,c=c>Math.PI/2?Math.PI-c:c;var A={xExtra:Math.cos(l/2-u)*(t/2*(1/Math.sin(l/2)))-t/2||0,yExtra:Math.cos(c-l/2)*(t/2*(1/Math.sin(l/2)))-t/2||0};return A}function kFe(e,t){return[t[0]+(t[0]-e[0]),t[1]+(t[1]-e[1])]}var QFe=function(t,r){var n=t.x*r.x+t.y*r.y,i=Math.sqrt((Math.pow(t.x,2)+Math.pow(t.y,2))*(Math.pow(r.x,2)+Math.pow(r.y,2))),a=t.x*r.y-t.y*r.x<0?-1:1,o=a*Math.acos(n/i);return o},_Fe=function(t,r,n,i,a,o,s,l){r=Math.abs(r),n=Math.abs(n),i=YAt(i,360);var u=Fc(i);if(t.x===s.x&&t.y===s.y)return{x:t.x,y:t.y,ellipticalArcAngle:0};if(r===0||n===0)return{x:0,y:0,ellipticalArcAngle:0};var c=(t.x-s.x)/2,A=(t.y-s.y)/2,f={x:Math.cos(u)*c+Math.sin(u)*A,y:-Math.sin(u)*c+Math.cos(u)*A},h=Math.pow(f.x,2)/Math.pow(r,2)+Math.pow(f.y,2)/Math.pow(n,2);h>1&&(r*=Math.sqrt(h),n*=Math.sqrt(h));var g=Math.pow(r,2)*Math.pow(n,2)-Math.pow(r,2)*Math.pow(f.y,2)-Math.pow(n,2)*Math.pow(f.x,2),p=Math.pow(r,2)*Math.pow(f.y,2)+Math.pow(n,2)*Math.pow(f.x,2),m=g/p;m=m<0?0:m;var b=(a!==o?1:-1)*Math.sqrt(m),C={x:b*(r*f.y/n),y:b*(-(n*f.x)/r)},E={x:Math.cos(u)*C.x-Math.sin(u)*C.y+(t.x+s.x)/2,y:Math.sin(u)*C.x+Math.cos(u)*C.y+(t.y+s.y)/2},_={x:(f.x-C.x)/r,y:(f.y-C.y)/n},F=QFe({x:1,y:0},_),M={x:(-f.x-C.x)/r,y:(-f.y-C.y)/n},N=QFe(_,M);!o&&N>0?N-=2*Math.PI:o&&N<0&&(N+=2*Math.PI),N%=2*Math.PI;var P=F+N*l,j=r*Math.cos(P),z=n*Math.sin(P),W={x:Math.cos(u)*j-Math.sin(u)*z+E.x,y:Math.sin(u)*j+Math.cos(u)*z+E.y,ellipticalArcStartAngle:F,ellipticalArcEndAngle:F+N,ellipticalArcAngle:P,ellipticalArcCenter:E,resultantRx:r,resultantRy:n};return W};function inr(e){for(var t=[],r=null,n=null,i=null,a=0,o=e.length,s=0;s2&&arguments[2]!==void 0?arguments[2]:!0,n=e.arcParams,i=n.rx,a=i===void 0?0:i,o=n.ry,s=o===void 0?0:o,l=n.xRotation,u=n.arcFlag,c=n.sweepFlag,A=_Fe({x:e.prePoint[0],y:e.prePoint[1]},a,s,l,!!u,!!c,{x:e.currentPoint[0],y:e.currentPoint[1]},t),f=_Fe({x:e.prePoint[0],y:e.prePoint[1]},a,s,l,!!u,!!c,{x:e.currentPoint[0],y:e.currentPoint[1]},r?t+.005:t-.005),h=f.x-A.x,g=f.y-A.y,p=Math.sqrt(h*h+g*g);return{x:-h/p,y:-g/p}}function bG(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Hbe(e,t){return bG(e)*bG(t)?(e[0]*t[0]+e[1]*t[1])/(bG(e)*bG(t)):1}function DFe(e,t){return(e[0]*t[1]1&&(r*=Math.sqrt(h),n*=Math.sqrt(h));var g=r*r*(f*f)+n*n*(A*A),p=g?Math.sqrt((r*r*(n*n)-g)/g):1;a===o&&(p*=-1),isNaN(p)&&(p=0);var m=n?p*r*f/n:0,b=r?p*-n*A/r:0,C=(s+u)/2+Math.cos(i)*m-Math.sin(i)*b,E=(l+c)/2+Math.sin(i)*m+Math.cos(i)*b,_=[(A-m)/r,(f-b)/n],F=[(-1*A-m)/r,(-1*f-b)/n],M=DFe([1,0],_),N=DFe(_,F);return Hbe(_,F)<=-1&&(N=Math.PI),Hbe(_,F)>=1&&(N=0),o===0&&N>0&&(N-=2*Math.PI),o===1&&N<0&&(N+=2*Math.PI),{cx:C,cy:E,rx:KW(e,[u,c])?0:r,ry:KW(e,[u,c])?0:n,startAngle:M,endAngle:M+N,xRotation:i,arcFlag:a,sweepFlag:o}}var Bft=function(t){if(t===""||Array.isArray(t)&&t.length===0)return{absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:{x:0,y:0,width:0,height:0}};var r;try{r=UW(t)}catch{r=UW(""),console.error("[g]: Invalid SVG Path definition: ".concat(t))}enr(r);var n=tnr(r),i=rnr(r),a=i.polygons,o=i.polylines,s=inr(r),l=nnr(s,0),u=l.x,c=l.y,A=l.width,f=l.height;return{absolutePath:r,hasArc:n,segments:s,polygons:a,polylines:o,totalLength:0,rect:{x:Number.isFinite(u)?u:0,y:Number.isFinite(c)?c:0,width:Number.isFinite(A)?A:0,height:Number.isFinite(f)?f:0}}},onr=Qh(Bft);function xft(e){return _u(e)?onr(e):Bft(e)}function snr(e,t,r){var n=e.curve,i=t.curve;(!n||n.length===0)&&(n=Qbe(e.absolutePath,!1),e.curve=n),(!i||i.length===0)&&(i=Qbe(t.absolutePath,!1),t.curve=i);var a=[n,i];n.length!==i.length&&(a=aft(n,i));var o=aFe(a[0])!==aFe(a[1])?str(a[0]):otr(a[0]);return[o,gtr(a[1],o),function(s){return s}]}function lnr(e,t){var r;return _u(e)?r=e.split(" ").map(function(n){var i=n.split(","),a=gl(i,2),o=a[0],s=a[1];return[Number(o),Number(s)]}):r=e,{points:r,totalLength:0,segments:[]}}function unr(e,t){return[e.points,t.points,function(r){return r}]}var xf=null,b9=/\s*(\w+)\(([^)]*)\)/g;function Fv(e){return function(t){var r=0;return e.map(function(n){return n===xf?t[r++]:n})}}function A4(e){return e}var iN={matrix:["NNNNNN",[xf,xf,0,0,xf,xf,0,0,0,0,1,0,xf,xf,0,1],A4],matrix3d:["NNNNNNNNNNNNNNNN",A4],rotate:["A"],rotateX:["A"],rotateY:["A"],rotateZ:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",Fv([xf,xf,new vg(1)]),A4],scaleX:["N",Fv([xf,new vg(1),new vg(1)]),Fv([xf,new vg(1)])],scaleY:["N",Fv([new vg(1),xf,new vg(1)]),Fv([new vg(1),xf])],scaleZ:["N",Fv([new vg(1),new vg(1),xf])],scale3d:["NNN",A4],skew:["Aa",null,A4],skewX:["A",null,Fv([xf,S6])],skewY:["A",null,Fv([S6,xf])],translate:["Tt",Fv([xf,xf,Rb]),A4],translateX:["T",Fv([xf,Rb,Rb]),Fv([xf,Rb])],translateY:["T",Fv([Rb,xf,Rb]),Fv([Rb,xf])],translateZ:["L",Fv([Rb,Rb,xf])],translate3d:["TTL",A4]};function Sft(e){for(var t=[],r=e.length,n=0;n2&&arguments[2]!==void 0?arguments[2]:{skipUpdateAttribute:!1,skipParse:!1,forceUpdateGeometry:!1,usedAttributes:[],memoize:!0};Object.assign(r.attributes,n);var a=r.parsedStyle.clipPath,o=r.parsedStyle.offsetPath;Inr(r,n);var s=!!i.forceUpdateGeometry;if(!s){for(var l in n)if(wnr.has(l)){s=!0;break}}var u=_ft(r);u.has("fill")&&n.fill&&(r.parsedStyle.fill=qM(n.fill)),u.has("stroke")&&n.stroke&&(r.parsedStyle.stroke=qM(n.stroke)),u.has("shadowColor")&&n.shadowColor&&(r.parsedStyle.shadowColor=qM(n.shadowColor)),u.has("filter")&&n.filter&&(r.parsedStyle.filter=Xrr(n.filter)),u.has("radius")&&!ds(n.radius)&&(r.parsedStyle.radius=SFe(n.radius,4)),u.has("lineDash")&&!ds(n.lineDash)&&(r.parsedStyle.lineDash=SFe(n.lineDash,"even")),u.has("points")&&n.points&&(r.parsedStyle.points=lnr(n.points)),u.has("d")&&n.d===""&&(r.parsedStyle.d=Ot({},hft)),u.has("d")&&n.d&&(r.parsedStyle.d=xft(n.d)),u.has("textTransform")&&n.textTransform&&this.runtime.CSSPropertySyntaxFactory[Va.TEXT_TRANSFORM].calculator(null,null,{value:n.textTransform},r,null),u.has("clipPath")&&!rl(n.clipPath)&&this.runtime.CSSPropertySyntaxFactory[Va.DEFINED_PATH].calculator("clipPath",a,n.clipPath,r,this.runtime),u.has("offsetPath")&&n.offsetPath&&this.runtime.CSSPropertySyntaxFactory[Va.DEFINED_PATH].calculator("offsetPath",o,n.offsetPath,r,this.runtime),u.has("transform")&&n.transform&&(r.parsedStyle.transform=kft(n.transform)),u.has("transformOrigin")&&n.transformOrigin&&(r.parsedStyle.transformOrigin=bnr(n.transformOrigin)),u.has("markerStart")&&n.markerStart&&(r.parsedStyle.markerStart=this.runtime.CSSPropertySyntaxFactory[Va.MARKER].calculator(null,n.markerStart,n.markerStart,null,null)),u.has("markerEnd")&&n.markerEnd&&(r.parsedStyle.markerEnd=this.runtime.CSSPropertySyntaxFactory[Va.MARKER].calculator(null,n.markerEnd,n.markerEnd,null,null)),u.has("markerMid")&&n.markerMid&&(r.parsedStyle.markerMid=this.runtime.CSSPropertySyntaxFactory[Va.MARKER].calculator("",n.markerMid,n.markerMid,null,null)),u.has("zIndex")&&!ds(n.zIndex)&&this.runtime.CSSPropertySyntaxFactory[Va.Z_INDEX].postProcessor(r),u.has("offsetDistance")&&!ds(n.offsetDistance)&&this.runtime.CSSPropertySyntaxFactory[Va.OFFSET_DISTANCE].postProcessor(r),u.has("transform")&&n.transform&&this.runtime.CSSPropertySyntaxFactory[Va.TRANSFORM].postProcessor(r),u.has("transformOrigin")&&n.transformOrigin&&this.runtime.CSSPropertySyntaxFactory[Va.TRANSFORM_ORIGIN].postProcessor(r),s&&(r.geometry.dirty=!0,r.dirty(!0,!0),i.forceUpdateGeometry||this.runtime.sceneGraphService.dirtyToRoot(r))}},{key:"updateGeometry",value:function(r){var n=r.nodeName,i=this.runtime.geometryUpdaterFactory[n];if(i){var a=r.geometry;a.contentBounds||(a.contentBounds=new nA),a.renderBounds||(a.renderBounds=new nA);var o=r.parsedStyle,s=i.update(o,r),l=s.cx,u=l===void 0?0:l,c=s.cy,A=c===void 0?0:c,f=s.cz,h=f===void 0?0:f,g=s.hwidth,p=g===void 0?0:g,m=s.hheight,b=m===void 0?0:m,C=s.hdepth,E=C===void 0?0:C,_=[Math.abs(p),Math.abs(b),E],F=o.stroke,M=o.lineWidth,N=M===void 0?1:M,P=o.increasedLineWidthForHitTesting,j=P===void 0?0:P,z=o.shadowType,W=z===void 0?"outer":z,Y=o.shadowColor,ee=o.filter,q=ee===void 0?[]:ee,ae=o.transformOrigin,se=[u,A,h];a.contentBounds.update(se,_);var de=n===Ci.POLYLINE||n===Ci.POLYGON||n===Ci.PATH?Math.SQRT2:.5,Ae=F&&!F.isNone;if(Ae){var be=((N||0)+(j||0))*de;_[0]+=be,_[1]+=be}if(a.renderBounds.update(se,_),Y&&W&&W!=="inner"){var Le=a.renderBounds,Ne=Le.min,ue=Le.max,Ke=o.shadowBlur,Pe=o.shadowOffsetX,je=o.shadowOffsetY,Ye=Ke||0,me=Pe||0,Se=je||0,et=Ne[0]-Ye+me,nt=ue[0]+Ye+me,tt=Ne[1]-Ye+Se,ft=ue[1]+Ye+Se;Ne[0]=Math.min(Ne[0],et),ue[0]=Math.max(ue[0],nt),Ne[1]=Math.min(Ne[1],tt),ue[1]=Math.max(ue[1],ft),a.renderBounds.setMinMax(Ne,ue)}q.forEach(function(Ce){var Be=Ce.name,We=Ce.params;if(Be==="blur"){var mt=We[0].value;a.renderBounds.update(a.renderBounds.center,Z3(a.renderBounds.halfExtents,a.renderBounds.halfExtents,[mt,mt,0]))}else if(Be==="drop-shadow"){var Tt=We[0].value,bt=We[1].value,qt=We[2].value,cr=a.renderBounds,Gt=cr.min,Xt=cr.max,Er=Gt[0]-qt+Tt,on=Xt[0]+qt+Tt,wn=Gt[1]-qt+bt,jr=Xt[1]+qt+bt;Gt[0]=Math.min(Gt[0],Er),Xt[0]=Math.max(Xt[0],on),Gt[1]=Math.min(Gt[1],wn),Xt[1]=Math.max(Xt[1],jr),a.renderBounds.setMinMax(Gt,Xt)}}),r.geometry.dirty=!1;var st=p<0,Re=b<0,dt=(st?-1:1)*(ae?Gm(ae[0],0,r,!0):0),Oe=(Re?-1:1)*(ae?Gm(ae[1],1,r,!0):0);(dt||Oe)&&r.setOrigin(dt,Oe)}}},{key:"updateSizeAttenuation",value:function(r,n){r.style.isSizeAttenuation?(r.style.rawLineWidth||(r.style.rawLineWidth=r.style.lineWidth),r.style.lineWidth=(r.style.rawLineWidth||1)/n,r.nodeName===Ci.CIRCLE&&(r.style.rawR||(r.style.rawR=r.style.r),r.style.r=(r.style.rawR||1)/n)):(r.style.rawLineWidth&&(r.style.lineWidth=r.style.rawLineWidth,delete r.style.rawLineWidth),r.nodeName===Ci.CIRCLE&&r.style.rawR&&(r.style.r=r.style.rawR,delete r.style.rawR))}}])}();function Inr(e,t){var r=_ft(e);for(var n in t)r.has(n)&&(e.parsedStyle[n]=t[n])}function _ft(e){return e.constructor.PARSED_STYLE_LIST}var Enr=function(){function e(){aa(this,e),this.mixer=Uxe}return oa(e,[{key:"calculator",value:function(r,n,i,a){return jv(i)}}])}(),Bnr=function(){function e(){aa(this,e)}return oa(e,[{key:"calculator",value:function(r,n,i,a,o){return i instanceof Py&&(i=null),o.sceneGraphService.updateDisplayObjectDependency(r,n,i,a),r==="clipPath"&&a.forEach(function(s){s.childNodes.length===0&&o.sceneGraphService.dirtyToRoot(s)}),i}}])}(),xnr=function(){function e(){aa(this,e),this.parser=qM,this.mixer=zrr}return oa(e,[{key:"calculator",value:function(r,n,i,a){return i instanceof Py?i.value==="none"?pft:vft:i}}])}(),Snr=function(){function e(){aa(this,e)}return oa(e,[{key:"calculator",value:function(r,n,i){return i instanceof Py?[]:i}}])}();function MFe(e){var t=e.parsedStyle,r=t.fontSize;return ds(r)?null:r}var jbe=function(){function e(){aa(this,e),this.mixer=Uxe}return oa(e,[{key:"calculator",value:function(r,n,i,a,o){if(go(i))return i;if(vg.isRelativeUnit(i.unit)){if(i.unit===qa.kPercentage)return 0;if(i.unit===qa.kEms){if(a.parentNode){var s=MFe(a.parentNode);if(s)return s*=i.value,s}return 0}if(i.unit===qa.kRems){var l;if(a!=null&&(l=a.ownerDocument)!==null&&l!==void 0&&l.documentElement){var u=MFe(a.ownerDocument.documentElement);if(u)return u*=i.value,u}return 0}}else return i.value}}])}(),knr=function(){function e(){aa(this,e),this.mixer=Eft}return oa(e,[{key:"calculator",value:function(r,n,i){return i.map(function(a){return a.value})}}])}(),Qnr=function(){function e(){aa(this,e),this.mixer=Eft}return oa(e,[{key:"calculator",value:function(r,n,i){return i.map(function(a){return a.value})}}])}(),_nr=function(){function e(){aa(this,e)}return oa(e,[{key:"calculator",value:function(r,n,i,a){var o;i instanceof Py&&(i=null);var s=(o=i)===null||o===void 0?void 0:o.cloneNode(!0);return s&&(s.style.isMarker=!0),s}}])}(),Tnr=function(){function e(){aa(this,e),this.mixer=Uxe}return oa(e,[{key:"calculator",value:function(r,n,i){return i.value}}])}(),Dnr=function(){function e(){aa(this,e),this.mixer=Hxe(0,1)}return oa(e,[{key:"calculator",value:function(r,n,i){return i.value}},{key:"postProcessor",value:function(r){var n=r.parsedStyle,i=n.offsetPath,a=n.offsetDistance;if(i){var o=i.nodeName;if(o===Ci.LINE||o===Ci.PATH||o===Ci.POLYLINE){var s=i.getPoint(a);s&&r.setLocalPosition(s.x,s.y)}}}}])}(),Fnr=function(){function e(){aa(this,e),this.mixer=Hxe(0,1)}return oa(e,[{key:"calculator",value:function(r,n,i){return i.value}}])}(),Rnr=function(){function e(){aa(this,e),this.parser=xft,this.mixer=snr}return oa(e,[{key:"calculator",value:function(r,n,i){return i instanceof Py&&i.value==="unset"?{absolutePath:[],hasArc:!1,segments:[],polygons:[],polylines:[],curve:null,totalLength:0,rect:new n7(0,0,0,0)}:i}}])}(),Mnr=oa(function e(){aa(this,e),this.mixer=unr}),Onr=function(e){function t(){var r;aa(this,t);for(var n=arguments.length,i=new Array(n),a=0;a>>1;Tft(e[i],t)<0?r=i+1:n=i}return r}function Tft(e,t){var r=Number(e.parsedStyle.zIndex||0),n=Number(t.parsedStyle.zIndex||0);if(r===n){var i=e.parentNode;if(i){var a=i.childNodes||[];return a.indexOf(e)-a.indexOf(t)}}return r-n}function Dft(e){var t=e;do{var r,n=(r=t.parsedStyle)===null||r===void 0?void 0:r.clipPath;if(n)return t;t=t.parentElement}while(t!==null);return null}var OFe="px";function jnr(e,t,r){Gxe&&e.style&&(e.style.width=t+OFe,e.style.height=r+OFe)}function Fft(e,t){if(Gxe)return document.defaultView.getComputedStyle(e,null).getPropertyValue(t)}function Gnr(e){var t=Fft(e,"width");return t==="auto"?e.offsetWidth:parseFloat(t)}function $nr(e){var t=Fft(e,"height");return t==="auto"?e.offsetHeight:parseFloat(t)}var znr=1,Knr={touchstart:"pointerdown",touchend:"pointerup",touchendoutside:"pointerupoutside",touchmove:"pointermove",touchcancel:"pointercancel"},Gbe=typeof performance=="object"&&performance.now?performance:Date;function VW(e){return e.nodeName===Ci.FRAGMENT?!0:e.getRootNode().nodeName===Ci.FRAGMENT}function aQ(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"auto",t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,n=!1,i=!1,a=!!t&&!t.isNone,o=!!r&&!r.isNone;return e==="visiblepainted"||e==="painted"||e==="auto"?(n=a,i=o):e==="visiblefill"||e==="fill"?n=!0:e==="visiblestroke"||e==="stroke"?i=!0:(e==="visible"||e==="all")&&(n=!0,i=!0),[n,i]}var Vnr=1,Wnr=function(){return Vnr++},iC=typeof self=="object"&&self.self===self?self:typeof global=="object"&&global.global===global?global:{},Ynr=Date.now(),qnr=function(){return iC.performance&&typeof iC.performance.now=="function"?iC.performance.now():Date.now()-Ynr},VR={},NFe=Date.now(),Jnr=function(t){if(typeof t!="function")throw new TypeError("".concat(t," is not a function"));var r=Date.now(),n=r-NFe,i=n>16?0:16-n,a=Wnr();return VR[a]=t,Object.keys(VR).length>1||setTimeout(function(){NFe=r;var o=VR;VR={},Object.keys(o).forEach(function(s){return o[s](qnr())})},i),a},Xnr=function(t){delete VR[t]},Znr=["","webkit","moz","ms","o"],Rft=function(t){return typeof t!="string"?Jnr:t===""?iC.requestAnimationFrame:iC["".concat(t,"RequestAnimationFrame")]},eir=function(t){return typeof t!="string"?Xnr:t===""?iC.cancelAnimationFrame:iC["".concat(t,"CancelAnimationFrame")]||iC["".concat(t,"CancelRequestAnimationFrame")]},tir=function(t,r){for(var n=0;t[n]!==void 0;){if(r(t[n]))return t[n];n+=1}},Mft=tir(Znr,function(e){return!!Rft(e)}),$xe=Rft(Mft),Oft=eir(Mft);iC.requestAnimationFrame=$xe;iC.cancelAnimationFrame=Oft;var rir=function(){function e(){aa(this,e),this.callbacks=[]}return oa(e,[{key:"getCallbacksNum",value:function(){return this.callbacks.length}},{key:"tapPromise",value:function(r,n){this.callbacks.push(n)}},{key:"promise",value:function(){for(var r=arguments.length,n=new Array(r),i=0;i=0;c--){var A=u[c].trim();!air.test(A)&&iir.indexOf(A)<0&&(A='"'.concat(A,'"')),u[c]=A}return"".concat(a," ").concat(o," ").concat(s," ").concat(l," ").concat(u.join(","))},function(e){var t=LFe(e),r=t.fontSize,n=t.fontFamily,i=t.fontStyle,a=t.fontVariant,o=t.fontWeight;return"".concat(i,"_").concat(a,"_").concat(o,"_").concat(r,"_").concat(n)}),oir=1e-6,PF=function(t){return Math.max(t,oir)};function ese(e,t,r){return m5(e),e[4]=Math.tan(t),e[1]=Math.tan(r),e}var ph=$c(),sir=$c(),lir={scale:function(t){uk(ph,[t[0].value,t[1].value,1].map(function(r){return PF(r)}))},scaleX:function(t){uk(ph,[t[0].value,1,1].map(function(r){return PF(r)}))},scaleY:function(t){uk(ph,[1,t[0].value,1].map(function(r){return PF(r)}))},scaleZ:function(t){uk(ph,[1,1,t[0].value].map(function(r){return PF(r)}))},scale3d:function(t){uk(ph,[t[0].value,t[1].value,t[2].value].map(function(r){return PF(r)}))},translate:function(t){m3(ph,[t[0].value,t[1].value,0])},translateX:function(t){m3(ph,[t[0].value,0,0])},translateY:function(t){m3(ph,[0,t[0].value,0])},translateZ:function(t){m3(ph,[0,0,t[0].value])},translate3d:function(t){m3(ph,[t[0].value,t[1].value,t[2].value])},rotate:function(t){wbe(ph,Fc(jv(t[0])))},rotateX:function(t){MAt(ph,Fc(jv(t[0])))},rotateY:function(t){OAt(ph,Fc(jv(t[0])))},rotateZ:function(t){wbe(ph,Fc(jv(t[0])))},rotate3d:function(t){RAt(ph,Fc(jv(t[3])),[t[0].value,t[1].value,t[2].value])},skew:function(t){ese(ph,Fc(t[0].value),Fc(t[1].value))},skewX:function(t){ese(ph,Fc(t[0].value),0)},skewY:function(t){ese(ph,0,Fc(t[0].value))},matrix:function(t){bbe(ph,t[0].value,t[1].value,0,0,t[2].value,t[3].value,0,0,0,0,1,0,t[4].value,t[5].value,0,1)},matrix3d:function(t){bbe.apply(ZZt,[ph].concat(ou(t.map(function(r){return r.value}))))}},uir=yA(1,1,1),cir=Jl(),UFe={translate:function(t,r){fa.sceneGraphService.setLocalScale(t,uir,!1),fa.sceneGraphService.setLocalEulerAngles(t,cir,void 0,void 0,!1),fa.sceneGraphService.setLocalPosition(t,[r[0].value,r[1].value,0],!1),fa.sceneGraphService.dirtyLocalTransform(t,t.transformable)}};function Nft(e,t){if(e.length){if(e.length===1&&UFe[e[0].t]){UFe[e[0].t](t,e[0].d);return}for(var r=m5(sir),n=0;n1&&arguments[1]!==void 0?arguments[1]:!1,i=arguments.length>2?arguments[2]:void 0;if(i)return this.dispatchEventToSelf(r),!0;var a;if(this.document)a=this;else if(this.defaultView)a=this.defaultView;else{var o;a=(o=this.ownerDocument)===null||o===void 0?void 0:o.defaultView}if(a){if(r.manager=a.getEventService(),!r.manager)return!1;r.defaultPrevented=!1,r.path?r.path.length=0:r.page=[],n||(r.target=this),r.manager.dispatchEvent(r,r.type,n)}else this.dispatchEventToSelf(r);return!r.defaultPrevented}}])}(),af=function(e){function t(){var r;aa(this,t);for(var n=arguments.length,i=new Array(n),a=0;a0&&arguments[0]!==void 0?arguments[0]:{};return this.parentNode?this.parentNode.getRootNode(n):n.composed&&this.host?this.host.getRootNode(n):this}},{key:"hasChildNodes",value:function(){return this.childNodes.length>0}},{key:"isDefaultNamespace",value:function(n){throw new Error(Tc)}},{key:"lookupNamespaceURI",value:function(n){throw new Error(Tc)}},{key:"lookupPrefix",value:function(n){throw new Error(Tc)}},{key:"normalize",value:function(){throw new Error(Tc)}},{key:"isEqualNode",value:function(n){return this===n}},{key:"isSameNode",value:function(n){return this.isEqualNode(n)}},{key:"parent",get:function(){return this.parentNode}},{key:"parentElement",get:function(){return null}},{key:"nextSibling",get:function(){return null}},{key:"previousSibling",get:function(){return null}},{key:"firstChild",get:function(){return this.childNodes.length>0?this.childNodes[0]:null}},{key:"lastChild",get:function(){return this.childNodes.length>0?this.childNodes[this.childNodes.length-1]:null}},{key:"compareDocumentPosition",value:function(n){if(n===this)return 0;for(var i=n,a=this,o=[i],s=[a];(l=i.parentNode)!==null&&l!==void 0?l:a.parentNode;){var l;i=i.parentNode?(o.push(i.parentNode),i.parentNode):i,a=a.parentNode?(s.push(a.parentNode),a.parentNode):a}if(i!==a)return t.DOCUMENT_POSITION_DISCONNECTED|t.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|t.DOCUMENT_POSITION_PRECEDING;var u=o.length>s.length?o:s,c=u===o?s:o;if(u[u.length-c.length]===c[0])return u===o?t.DOCUMENT_POSITION_CONTAINED_BY|t.DOCUMENT_POSITION_FOLLOWING:t.DOCUMENT_POSITION_CONTAINS|t.DOCUMENT_POSITION_PRECEDING;for(var A=u.length-c.length,f=c.length-1;f>=0;f--){var h=c[f],g=u[A+f];if(g!==h){var p=h.parentNode.childNodes;return p.indexOf(h)0&&i;)i=i.parentNode,n--;return i}},{key:"forEach",value:function(n){for(var i=[this];i.length>0;){var a=i.pop(),o=n(a);if(o===!1)break;for(var s=a.childNodes.length-1;s>=0;s--)i.push(a.childNodes[s])}}}],[{key:"isNode",value:function(n){return!!n.childNodes}}])}(Pft);af.DOCUMENT_POSITION_DISCONNECTED=1;af.DOCUMENT_POSITION_PRECEDING=2;af.DOCUMENT_POSITION_FOLLOWING=4;af.DOCUMENT_POSITION_CONTAINS=8;af.DOCUMENT_POSITION_CONTAINED_BY=16;af.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32;var Iir=2048,Eir=function(){function e(t,r){var n=this;aa(this,e),this.nativeHTMLMap=new WeakMap,this.cursor="default",this.mappingTable={},this.mappingState={trackingData:{}},this.eventPool=new Map,this.tmpMatrix=$c(),this.tmpVec3=Jl(),this.onPointerDown=function(i){var a=n.createPointerEvent(i);if(n.dispatchEvent(a,"pointerdown"),a.pointerType==="touch")n.dispatchEvent(a,"touchstart");else if(a.pointerType==="mouse"||a.pointerType==="pen"){var o=a.button===2;n.dispatchEvent(a,o?"rightdown":"mousedown")}var s=n.trackingData(i.pointerId);s.pressTargetsByButton[i.button]=a.composedPath(),n.freeEvent(a)},this.onPointerUp=function(i){var a=Gbe.now(),o=n.createPointerEvent(i,void 0,void 0,n.context.config.alwaysTriggerPointerEventOnCanvas?n.rootTarget:void 0);if(n.dispatchEvent(o,"pointerup"),o.pointerType==="touch")n.dispatchEvent(o,"touchend");else if(o.pointerType==="mouse"||o.pointerType==="pen"){var s=o.button===2;n.dispatchEvent(o,s?"rightup":"mouseup")}var l=n.trackingData(i.pointerId),u=n.findMountedTarget(l.pressTargetsByButton[i.button]),c=u;if(u&&!o.composedPath().includes(u)){for(var A=u;A&&!o.composedPath().includes(A);){if(o.currentTarget=A,n.notifyTarget(o,"pointerupoutside"),o.pointerType==="touch")n.notifyTarget(o,"touchendoutside");else if(o.pointerType==="mouse"||o.pointerType==="pen"){var f=o.button===2;n.notifyTarget(o,f?"rightupoutside":"mouseupoutside")}af.isNode(A)&&(A=A.parentNode)}delete l.pressTargetsByButton[i.button],c=A}if(c){var h,g=n.clonePointerEvent(o,"click");g.target=c,g.path=[],l.clicksByButton[i.button]||(l.clicksByButton[i.button]={clickCount:0,target:g.target,timeStamp:a});var p=n.context.renderingContext.root.ownerDocument.defaultView,m=l.clicksByButton[i.button];m.target===g.target&&a-m.timeStamp=1;a--)if(r.currentTarget=i[a],this.notifyTarget(r,n),r.propagationStopped||r.propagationImmediatelyStopped)return;if(r.eventPhase=r.AT_TARGET,r.currentTarget=r.target,this.notifyTarget(r,n),!(r.propagationStopped||r.propagationImmediatelyStopped)){var o=i.indexOf(r.currentTarget);r.eventPhase=r.BUBBLING_PHASE;for(var s=o+1;so||i>s?null:!l&&this.pickHandler(r)||this.rootTarget||null}},{key:"isNativeEventFromCanvas",value:function(r,n){var i,a=n==null?void 0:n.target;if((i=a)!==null&&i!==void 0&&i.shadowRoot&&(a=n.composedPath()[0]),a){if(a===r)return!0;if(r&&r.contains)return r.contains(a)}return n!=null&&n.composedPath?n.composedPath().indexOf(r)>-1:!1}},{key:"getExistedHTML",value:function(r){if(r.nativeEvent.composedPath)for(var n=0,i=r.nativeEvent.composedPath();n=0;i--){var a=r[i];if(a===this.rootTarget||af.isNode(a)&&a.parentNode===n)n=r[i];else break}return n}},{key:"getCursor",value:function(r){for(var n=r;n;){var i=Unr(n)&&n.getAttribute("cursor");if(i)return i;n=af.isNode(n)&&n.parentNode}}}])}(),zxe=function(){function e(){aa(this,e)}return oa(e,[{key:"getOrCreateCanvas",value:function(r,n){if(this.canvas)return this.canvas;if(r||fa.offscreenCanvas)this.canvas=r||fa.offscreenCanvas,this.context=this.canvas.getContext("2d",Ot({willReadFrequently:!0},n));else try{this.canvas=new window.OffscreenCanvas(0,0),this.context=this.canvas.getContext("2d",Ot({willReadFrequently:!0},n)),(!this.context||!this.context.measureText)&&(this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"))}catch{this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d",Ot({willReadFrequently:!0},n))}return this.canvas.width=10,this.canvas.height=10,this.canvas}},{key:"getOrCreateContext",value:function(r,n){return this.context?this.context:(this.getOrCreateCanvas(r,n),this.context)}}],[{key:"createCanvas",value:function(){try{return new window.OffscreenCanvas(0,0)}catch{}try{return document.createElement("canvas")}catch{}return null}}])}(),w9=function(e){return e[e.CAMERA_CHANGED=0]="CAMERA_CHANGED",e[e.DISPLAY_OBJECT_CHANGED=1]="DISPLAY_OBJECT_CHANGED",e[e.NONE=2]="NONE",e}({}),Bir=function(){function e(t,r){aa(this,e),this.inited=!1,this.stats={total:0,rendered:0},this.zIndexCounter=0,this.hooks={init:new k0,initAsync:new rir,dirtycheck:new Zoe,cull:new Zoe,beginFrame:new k0,beforeRender:new k0,render:new k0,afterRender:new k0,endFrame:new k0,destroy:new k0,pick:new nir,pickSync:new Zoe,pointerDown:new k0,pointerUp:new k0,pointerMove:new k0,pointerOut:new k0,pointerOver:new k0,pointerWheel:new k0,pointerCancel:new k0,click:new k0},this.globalRuntime=t,this.context=r}return oa(e,[{key:"init",value:function(r){var n=this,i=Ot(Ot({},this.globalRuntime),this.context);this.context.renderingPlugins.forEach(function(a){a.apply(i,n.globalRuntime)}),this.hooks.init.call(),this.hooks.initAsync.getCallbacksNum()===0?(this.inited=!0,r()):this.hooks.initAsync.promise().then(function(){n.inited=!0,r()}).catch(function(a){})}},{key:"getStats",value:function(){return this.stats}},{key:"disableDirtyRectangleRendering",value:function(){var r=this.context.config.renderer,n=r.getConfig(),i=n.enableDirtyRectangleRendering;return!i||this.context.renderingContext.renderReasons.has(w9.CAMERA_CHANGED)}},{key:"render",value:function(r,n,i){var a=this;this.stats.total=0,this.stats.rendered=0,this.zIndexCounter=0;var o=this.context.renderingContext;if(this.globalRuntime.sceneGraphService.syncHierarchy(o.root),this.globalRuntime.sceneGraphService.triggerPendingEvents(),o.renderReasons.size&&this.inited){o.dirtyRectangleRenderingDisabled=this.disableDirtyRectangleRendering();var s=o.renderReasons.size===1&&o.renderReasons.has(w9.CAMERA_CHANGED),l=!r.disableRenderHooks||!s;l&&this.renderDisplayObject(o.root,r,o),this.hooks.beginFrame.call(n),l&&o.renderListCurrentFrame.forEach(function(u){a.hooks.beforeRender.call(u),a.hooks.render.call(u),a.hooks.afterRender.call(u)}),this.hooks.endFrame.call(n),o.renderListCurrentFrame=[],o.renderReasons.clear(),i()}}},{key:"renderDisplayObject",value:function(r,n,i){var a=this,o=n.renderer.getConfig(),s=o.enableDirtyCheck,l=o.enableCulling;function u(p){var m=p.renderable,b=p.sortable,C=s?m.dirty||i.dirtyRectangleRenderingDisabled?p:null:p,E=null;C&&(E=l?a.hooks.cull.call(C,a.context.camera):C,E&&(a.stats.rendered+=1,i.renderListCurrentFrame.push(E))),p.dirty(!1),b.renderOrder=a.zIndexCounter,a.zIndexCounter+=1,a.stats.total+=1,b.dirty&&(a.sort(p,b),b.dirty=!1,b.dirtyChildren=[],b.dirtyReason=void 0)}for(var c=[r];c.length>0;){var A,f=c.pop();u(f);for(var h=((A=f.sortable)===null||A===void 0||(A=A.sorted)===null||A===void 0?void 0:A.length)>0?f.sortable.sorted:f.childNodes,g=h.length-1;g>=0;g--)c.push(h[g])}}},{key:"sort",value:function(r,n){var i,a;(n==null||(i=n.sorted)===null||i===void 0?void 0:i.length)>0&&n.dirtyReason!==jW.Z_INDEX_CHANGED?n.dirtyChildren.forEach(function(o){var s=n.sorted.indexOf(o);s>-1&&n.sorted.splice(s,1);var l=r.childNodes.indexOf(o);if(l>-1)if(n.sorted.length===0)n.sorted.push(o);else{var u=Hnr(n.sorted,o);n.sorted.splice(u,0,o)}}):n.sorted=r.childNodes.slice().sort(Tft),((a=n.sorted)===null||a===void 0?void 0:a.length)>0&&r.childNodes.filter(function(o){return o.parsedStyle.zIndex}).length===0&&(n.sorted=[])}},{key:"destroy",value:function(){this.inited=!1,this.hooks.destroy.call(),this.globalRuntime.sceneGraphService.clearPendingEvents()}},{key:"dirtify",value:function(){this.context.renderingContext.renderReasons.add(w9.DISPLAY_OBJECT_CHANGED)}}])}(),xir=/\[\s*(.*)=(.*)\s*\]/,Sir=function(){function e(){aa(this,e)}return oa(e,[{key:"selectOne",value:function(r,n){var i=this;if(r.startsWith("."))return n.find(function(l){return((l==null?void 0:l.classList)||[]).indexOf(i.getIdOrClassname(r))>-1});if(r.startsWith("#"))return n.find(function(l){return l.id===i.getIdOrClassname(r)});if(r.startsWith("[")){var a=this.getAttribute(r),o=a.name,s=a.value;return o?n.find(function(l){return n!==l&&(o==="name"?l.name===s:i.attributeToString(l,o)===s)}):null}return n.find(function(l){return n!==l&&l.nodeName===r})}},{key:"selectAll",value:function(r,n){var i=this;if(r.startsWith("."))return n.findAll(function(l){return n!==l&&((l==null?void 0:l.classList)||[]).indexOf(i.getIdOrClassname(r))>-1});if(r.startsWith("#"))return n.findAll(function(l){return n!==l&&l.id===i.getIdOrClassname(r)});if(r.startsWith("[")){var a=this.getAttribute(r),o=a.name,s=a.value;return o?n.findAll(function(l){return n!==l&&(o==="name"?l.name===s:i.attributeToString(l,o)===s)}):[]}return n.findAll(function(l){return n!==l&&l.nodeName===r})}},{key:"is",value:function(r,n){if(r.startsWith("."))return n.className===this.getIdOrClassname(r);if(r.startsWith("#"))return n.id===this.getIdOrClassname(r);if(r.startsWith("[")){var i=this.getAttribute(r),a=i.name,o=i.value;return a==="name"?n.name===o:this.attributeToString(n,a)===o}return n.nodeName===r}},{key:"getIdOrClassname",value:function(r){return r.substring(1)}},{key:"getAttribute",value:function(r){var n=r.match(xir),i="",a="";return n&&n.length>2&&(i=n[1].replace(/"/g,""),a=n[2].replace(/"/g,"")),{name:i,value:a}}},{key:"attributeToString",value:function(r,n){if(!r.getAttribute)return"";var i=r.getAttribute(n);return ds(i)?"":i.toString?i.toString():""}}])}(),Gl=function(e){return e.ATTR_MODIFIED="DOMAttrModified",e.INSERTED="DOMNodeInserted",e.MOUNTED="DOMNodeInsertedIntoDocument",e.REMOVED="removed",e.UNMOUNTED="DOMNodeRemovedFromDocument",e.REPARENT="reparent",e.DESTROY="destroy",e.BOUNDS_CHANGED="bounds-changed",e.CULLED="culled",e}({}),vC=function(e){function t(r,n,i,a,o,s,l,u){var c;return aa(this,t),c=kl(this,t,[null]),c.relatedNode=n,c.prevValue=i,c.newValue=a,c.attrName=o,c.attrChange=s,c.prevParsedValue=l,c.newParsedValue=u,c.type=r,c}return Ql(t,e),oa(t)}(eX);vC.ADDITION=2;vC.MODIFICATION=1;vC.REMOVAL=3;var kir=new vC(Gl.REPARENT,null,"","","",0,"",""),Qir=Mxe(),wG=Jl(),_ir=yA(1,1,1),Tir=$c(),Dir=Mxe(),f4=Jl(),Fir=$c(),h4=rd(),Rir=Jl(),Mir=rd(),Oir=Jl(),UF=Jl(),d4=Jl(),CG=$c(),HFe=rd(),jFe=rd(),IG=rd(),EG={affectChildren:!0},Nir=function(){function e(t){aa(this,e),this.pendingEvents=new Map,this.boundsChangedEvent=new nd(Gl.BOUNDS_CHANGED),this.displayObjectDependencyMap=new WeakMap,this.runtime=t}return oa(e,[{key:"matches",value:function(r,n){return this.runtime.sceneGraphSelector.is(r,n)}},{key:"querySelector",value:function(r,n){return this.runtime.sceneGraphSelector.selectOne(r,n)}},{key:"querySelectorAll",value:function(r,n){return this.runtime.sceneGraphSelector.selectAll(r,n)}},{key:"attach",value:function(r,n,i){var a,o=!1;r.parentNode&&(o=r.parentNode!==n,this.detach(r));var s=r.nodeName===Ci.FRAGMENT,l=VW(n);r.parentNode=n;var u=s?r.childNodes:[r];go(i)?u.forEach(function(p){n.childNodes.splice(i,0,p),p.parentNode=n}):u.forEach(function(p){n.childNodes.push(p),p.parentNode=n});var c=n,A=c.sortable;if((A!=null&&(a=A.sorted)!==null&&a!==void 0&&a.length||A.dirty||r.parsedStyle.zIndex)&&(A.dirtyChildren.indexOf(r)===-1&&A.dirtyChildren.push(r),A.dirty=!0,A.dirtyReason=jW.ADDED),!l){if(s)this.dirtifyFragment(r);else{var f=r.transformable;f&&this.dirtyWorldTransform(r,f)}if(o){var h,g=((h=n.ownerDocument)===null||h===void 0||(h=h.defaultView)===null||h===void 0||(h=h.getConfig())===null||h===void 0||(h=h.future)===null||h===void 0?void 0:h.experimentalCancelEventPropagation)===!0;r.dispatchEvent(kir,g,g)}}}},{key:"detach",value:function(r){var n,i;if(r.parentNode){var a=r.transformable,o=r.parentNode,s=o.sortable;(s!=null&&(n=s.sorted)!==null&&n!==void 0&&n.length||(i=r.style)!==null&&i!==void 0&&i.zIndex)&&(s.dirtyChildren.indexOf(r)===-1&&s.dirtyChildren.push(r),s.dirty=!0,s.dirtyReason=jW.REMOVED);var l=r.parentNode.childNodes.indexOf(r);l>-1&&r.parentNode.childNodes.splice(l,1),a&&this.dirtyWorldTransform(r,a),r.parentNode=null}}},{key:"getLocalPosition",value:function(r){return r.transformable.localPosition}},{key:"getLocalRotation",value:function(r){return r.transformable.localRotation}},{key:"getLocalScale",value:function(r){return r.transformable.localScale}},{key:"getLocalSkew",value:function(r){return r.transformable.localSkew}},{key:"getLocalTransform",value:function(r){var n=r.transformable;return pFe(n),n.localTransform}},{key:"setLocalPosition",value:function(r,n){var i,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=r.transformable;UF[0]=n[0],UF[1]=n[1],UF[2]=(i=n[2])!==null&&i!==void 0?i:0,!OF(o.localPosition,UF)&&(zw(o.localPosition,UF),a&&this.dirtyLocalTransform(r,o))}},{key:"translateLocal",value:function(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;typeof n=="number"&&(n=yA(n,i,a));var o=r.transformable;OF(n,wG)||(aer(n,n,o.localRotation),Z3(o.localPosition,o.localPosition,n),this.dirtyLocalTransform(r,o))}},{key:"setLocalRotation",value:function(r,n,i,a,o){var s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;typeof n=="number"&&(n=KAt(h4,n,i,a,o));var l=r.transformable;hG(l.localRotation,n),s&&this.dirtyLocalTransform(r,l)}},{key:"rotateLocal",value:function(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;typeof n=="number"&&(n=yA(n,i,a));var o=r.transformable;fG(jFe,n[0],n[1],n[2]),eFe(o.localRotation,o.localRotation,jFe),this.dirtyLocalTransform(r,o)}},{key:"setLocalScale",value:function(r,n){var i,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=r.transformable;Xp(f4,n[0],n[1],(i=n[2])!==null&&i!==void 0?i:o.localScale[2]),!OF(f4,o.localScale)&&(zw(o.localScale,f4),a&&this.dirtyLocalTransform(r,o))}},{key:"scaleLocal",value:function(r,n){var i,a=r.transformable;eer(a.localScale,a.localScale,Xp(f4,n[0],n[1],(i=n[2])!==null&&i!==void 0?i:1)),this.dirtyLocalTransform(r,a)}},{key:"setLocalSkew",value:function(r,n,i){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;typeof n=="number"&&(n=her(Dir,n,i));var o=r.transformable;fer(o.localSkew,n),a&&this.dirtyLocalTransform(r,o)}},{key:"setLocalEulerAngles",value:function(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0;typeof n=="number"&&(n=yA(n,i,a));var s=r.transformable;fG(s.localRotation,n[0],n[1],n[2]),o&&this.dirtyLocalTransform(r,s)}},{key:"setLocalTransform",value:function(r,n){var i=FW(Rir,n),a=RW(Mir,n),o=t7(Oir,n);this.setLocalScale(r,o,!1),this.setLocalPosition(r,i,!1),this.setLocalRotation(r,a,void 0,void 0,void 0,!1),this.dirtyLocalTransform(r,r.transformable)}},{key:"resetLocalTransform",value:function(r){this.setLocalScale(r,_ir,!1),this.setLocalPosition(r,wG,!1),this.setLocalEulerAngles(r,wG,void 0,void 0,!1),this.setLocalSkew(r,Qir,void 0,!1),this.dirtyLocalTransform(r,r.transformable)}},{key:"getPosition",value:function(r){var n=r.transformable;return FW(n.position,this.getWorldTransform(r,n))}},{key:"getRotation",value:function(r){var n=r.transformable;return RW(n.rotation,this.getWorldTransform(r,n))}},{key:"getScale",value:function(r){var n=r.transformable;return t7(n.scaling,this.getWorldTransform(r,n))}},{key:"getOrigin",value:function(r){return r.getGeometryBounds(),r.transformable.origin}},{key:"getWorldTransform",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:r.transformable;return!n.localDirtyFlag&&!n.dirtyFlag||(r.parentNode&&r.parentNode.transformable&&this.getWorldTransform(r.parentNode),this.internalUpdateTransform(r)),n.worldTransform}},{key:"setPosition",value:function(r,n){var i,a=r.transformable;if(d4[0]=n[0],d4[1]=n[1],d4[2]=(i=n[2])!==null&&i!==void 0?i:0,!OF(this.getPosition(r),d4)){if(zw(a.position,d4),r.parentNode===null||!r.parentNode.transformable)zw(a.localPosition,d4);else{var o=r.parentNode.transformable;e7(CG,o.worldTransform),$w(CG,CG),a0(a.localPosition,d4,CG)}this.dirtyLocalTransform(r,a)}}},{key:"translate",value:function(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;typeof n=="number"&&(n=Xp(f4,n,i,a)),!OF(n,wG)&&(Z3(f4,this.getPosition(r),n),this.setPosition(r,f4))}},{key:"setRotation",value:function(r,n,i,a,o){var s=r.transformable;if(typeof n=="number"&&(n=Aer(n,i,a,o)),r.parentNode===null||!r.parentNode.transformable)this.setLocalRotation(r,n);else{var l=this.getRotation(r.parentNode);hG(h4,l),Loe(h4,h4),e5(s.localRotation,h4,n),OW(s.localRotation,s.localRotation),this.dirtyLocalTransform(r,s)}}},{key:"rotate",value:function(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;typeof n=="number"&&(n=yA(n,i,a));var o=r.transformable;if(r.parentNode===null||!r.parentNode.transformable)this.rotateLocal(r,n);else{var s=h4;fG(s,n[0],n[1],n[2]);var l=this.getRotation(r),u=this.getRotation(r.parentNode);hG(IG,u),Loe(IG,IG),e5(s,IG,s),e5(o.localRotation,s,l),OW(o.localRotation,o.localRotation),this.dirtyLocalTransform(r,o)}}},{key:"setOrigin",value:function(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;typeof n=="number"&&(n=[n,i,a]);var o=r.transformable;if(!(n[0]===o.origin[0]&&n[1]===o.origin[1]&&n[2]===o.origin[2])){var s=o.origin;s[0]=n[0],s[1]=n[1],s[2]=n[2]||0,this.dirtyLocalTransform(r,o)}}},{key:"setEulerAngles",value:function(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;typeof n=="number"&&(n=yA(n,i,a));var o=r.transformable;if(r.parentNode===null||!r.parentNode.transformable)this.setLocalEulerAngles(r,n);else{fG(o.localRotation,n[0],n[1],n[2]);var s=this.getRotation(r.parentNode);hG(HFe,Loe(h4,s)),eFe(o.localRotation,o.localRotation,HFe),this.dirtyLocalTransform(r,o)}}},{key:"getTransformedGeometryBounds",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=arguments.length>2?arguments[2]:void 0,a=this.getGeometryBounds(r,n);if(!nA.isEmpty(a)){var o=i||new nA;return o.setFromTransformedAABB(a,this.getWorldTransform(r)),o}return null}},{key:"getGeometryBounds",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,i=r,a=i.geometry;a.dirty&&fa.styleValueRegistry.updateGeometry(r);var o=n?a.renderBounds:a.contentBounds||null;return o||new nA}},{key:"getBounds",value:function(r){var n=this,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=r,o=a.renderable;if(!o.boundsDirty&&!i&&o.bounds)return o.bounds;if(!o.renderBoundsDirty&&i&&o.renderBounds)return o.renderBounds;var s=i?o.renderBounds:o.bounds,l=this.getTransformedGeometryBounds(r,i,s),u=r.childNodes;if(u.forEach(function(f){var h=n.getBounds(f,i);h&&(l?l.add(h):(l=s||new nA,l.update(h.center,h.halfExtents)))}),l||(l=new nA),i){var c=Dft(r);if(c){var A=c.parsedStyle.clipPath.getBounds(i);l?A&&(l=A.intersection(l)):l.update(A.center,A.halfExtents)}}return i?(o.renderBounds=l,o.renderBoundsDirty=!1):(o.bounds=l,o.boundsDirty=!1),l}},{key:"getLocalBounds",value:function(r){if(r.parentNode){var n=Tir;r.parentNode.transformable&&(n=$w(Fir,this.getWorldTransform(r.parentNode)));var i=this.getBounds(r);if(!nA.isEmpty(i)){var a=new nA;return a.setFromTransformedAABB(i,n),a}}return this.getBounds(r)}},{key:"getBoundingClientRect",value:function(r){var n,i,a=this.getGeometryBounds(r);nA.isEmpty(a)||(i=new nA,i.setFromTransformedAABB(a,this.getWorldTransform(r)));var o=(n=r.ownerDocument)===null||n===void 0||(n=n.defaultView)===null||n===void 0?void 0:n.getContextService().getBoundingClientRect();if(i){var s=i.getMin(),l=gl(s,2),u=l[0],c=l[1],A=i.getMax(),f=gl(A,2),h=f[0],g=f[1];return new n7(u+((o==null?void 0:o.left)||0),c+((o==null?void 0:o.top)||0),h-u,g-c)}return new n7((o==null?void 0:o.left)||0,(o==null?void 0:o.top)||0,0,0)}},{key:"internalUpdateTransform",value:function(r){var n,i=(n=r.parentNode)===null||n===void 0?void 0:n.transformable;pFe(r.transformable),irr(r.transformable,i)}},{key:"internalUpdateElement",value:function(r,n){var i,a,o,s,l=((i=r.ownerDocument)===null||i===void 0||(i=i.defaultView)===null||i===void 0||(i=i.getConfig())===null||i===void 0||(i=i.future)===null||i===void 0?void 0:i.experimentalAttributeUpdateOptimization)===!0,u=n[n.length-1],c=(u==null?void 0:u.transformDirty)||((a=r.transformable)===null||a===void 0?void 0:a.localDirtyFlag);if(r.transformable){var A;(A=r.transformable).dirtyFlag||(A.dirtyFlag=c)}if(this.internalUpdateTransform(r),c){var f;(f=r.dirty)===null||f===void 0||f.call(r,!0,!0)}var h=((o=r.renderable)===null||o===void 0?void 0:o.boundsDirty)||((s=r.renderable)===null||s===void 0?void 0:s.renderBoundsDirty);if((c||h)&&(u==null?void 0:u.shapeUpdated)===!1&&l)for(var g=n.length-1;g>=0;){var p,m,b=n[g];if(b.shapeUpdated)break;(p=(m=b.node).dirty)===null||p===void 0||p.call(m,!0,!0),b.shapeUpdated=!0,g-=1}return c}},{key:"syncHierarchy",value:function(r){for(var n,i,a=[r],o=r.parentNode?[{node:r.parentNode,transformDirty:((n=r.parentNode.transformable)===null||n===void 0?void 0:n.localDirtyFlag)||((i=r.parentNode.transformable)===null||i===void 0?void 0:i.dirtyFlag),shapeUpdated:!1}]:[];a.length>0;){for(var s=a.pop(),l=o[o.length-1];o.length>0&&s.parentNode!==l.node;)l=o.pop();var u=this.internalUpdateElement(s,o);if(s.childNodes.length>0){for(var c=s.childNodes.length-1;c>=0;c--)a.push(s.childNodes[c]);o.push({node:s,transformDirty:u,shapeUpdated:!1})}}}},{key:"dirtyLocalTransform",value:function(r,n){VW(r)||n.localDirtyFlag||(n.localDirtyFlag=!0,n.dirtyFlag||this.dirtyWorldTransform(r,n))}},{key:"dirtyWorldTransform",value:function(r,n){this.dirtifyWorldInternal(r,n),this.dirtyToRoot(r,!0)}},{key:"dirtifyWorldInternal",value:function(r,n){var i,a=this,o=((i=r.ownerDocument)===null||i===void 0||(i=i.defaultView)===null||i===void 0||(i=i.getConfig())===null||i===void 0||(i=i.future)===null||i===void 0?void 0:i.experimentalAttributeUpdateOptimization)===!0;n.dirtyFlag||(n.dirtyFlag=!0,r.dirty(!0,!0),o||r.childNodes.forEach(function(s){var l=s.transformable;a.dirtifyWorldInternal(s,l)}))}},{key:"dirtyToRoot",value:function(r){for(var n,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=r,o=((n=r.ownerDocument)===null||n===void 0||(n=n.defaultView)===null||n===void 0||(n=n.getConfig())===null||n===void 0||(n=n.future)===null||n===void 0?void 0:n.experimentalAttributeUpdateOptimization)===!0;a;){var s,l;if((s=(l=a).dirty)===null||s===void 0||s.call(l,!0,!0),o)break;a=a.parentNode}i&&r.forEach(function(u){var c;(c=u.dirty)===null||c===void 0||c.call(u,!0,!0)}),this.informDependentDisplayObjects(r),this.pendingEvents.set(r,i)}},{key:"dirtifyFragment",value:function(r){var n,i,a=r.transformable;a&&(a.dirtyFlag=!0,a.localDirtyFlag=!0),(n=(i=r).dirty)===null||n===void 0||n.call(i,!0,!0);for(var o=r.childNodes.length,s=0;sthis.capacity){var i=this.cache.keys().next().value;this.cache.delete(i)}}},{key:"len",value:function(){return this.cache.size}},{key:"clear",value:function(){this.cache.clear()}}])}(),g4={MetricsString:"|ÉqÅ",BaselineSymbol:"M",BaselineMultiplier:1.4,HeightMultiplier:2,Newlines:[10,13],BreakingSpaces:[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288]},$Fe=/[a-zA-Z0-9\u00C0-\u00D6\u00D8-\u00f6\u00f8-\u00ff!"#$%&'()*+,-./:;]/,Lir=/[!%),.:;?\]}¢°·'""†‡›℃∶、。〃〆〕〗〞﹚﹜!"%'),.:;?!]}~]/,Pir=/[$(£¥·'"〈《「『【〔〖〝﹙﹛$(.[{£¥]/,Uir=/[!),.:;?\]}¢·–—'"•"、。〆〞〕〉》」︰︱︲︳﹐﹑﹒﹓﹔﹕﹖﹘﹚﹜!),.:;?︶︸︺︼︾﹀﹂﹗]|}、]/,Hir=/[([{£¥'"‵〈《「『〔〝︴﹙﹛({︵︷︹︻︽︿﹁﹃﹏]/,jir=/[)\]}〕〉》」』】〙〗〟'"⦆»ヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻‐゠–〜?!‼⁇⁈⁉・、:;,。.]/,Gir=/[([{〔〈《「『【〘〖〝'"⦅«—...‥〳〴〵]/,$ir=/[!%),.:;?\]}¢°'"†‡℃〆〈《「『〕!%),.:;?]}]/,zir=/[$([{£¥'"々〇〉》」〔$([{⦆¥₩#]/,Kir=new RegExp("".concat(Lir.source,"|").concat(Uir.source,"|").concat(jir.source,"|").concat($ir.source)),Vir=new RegExp("".concat(Pir.source,"|").concat(Hir.source,"|").concat(Gir.source,"|").concat(zir.source)),Wir=function(){function e(t){var r=this;aa(this,e),this.fontMetricsCache={},this.shouldBreakByKinsokuShorui=function(n,i){return r.isBreakingSpace(i)?!1:!!(n&&(Vir.exec(i)||Kir.exec(n)))},this.trimByKinsokuShorui=function(n){var i=ou(n),a=i[i.length-2];if(!a)return n;var o=a[a.length-1];return i[i.length-2]=a.slice(0,-1),i[i.length-1]=o+i[i.length-1],i},this.runtime=t,this.charWidthCache=new GFe(100)}return oa(e,[{key:"measureFont",value:function(r,n){if(this.fontMetricsCache[r])return this.fontMetricsCache[r];var i={ascent:0,descent:0,fontSize:0},a=this.runtime.offscreenCanvasCreator.getOrCreateCanvas(n),o=this.runtime.offscreenCanvasCreator.getOrCreateContext(n,{willReadFrequently:!0});o.font=r;var s=g4.MetricsString+g4.BaselineSymbol,l=Math.ceil(o.measureText(s).width),u=Math.ceil(o.measureText(g4.BaselineSymbol).width),c=g4.HeightMultiplier*u;u=u*g4.BaselineMultiplier|0,a.width=l,a.height=c,o.fillStyle="#f00",o.fillRect(0,0,l,c),o.font=r,o.textBaseline="alphabetic",o.fillStyle="#000",o.fillText(s,0,u);var A=o.getImageData(0,0,l||1,c||1).data,f=A.length,h=l*4,g=0,p=0,m=!1;for(g=0;gu;--g){for(var C=0;CNe&&be>=Le;)be-=1,Ae=Ae.slice(0,-1);return{lineTxt:Ae,txtLastCharIndex:be}}function W(Ae,be){if(!(j<=0||j>m)){if(!C[Ae]){C[Ae]=b;return}var Le=z(C[Ae],be,F+1,m-j);C[Ae]=Le.lineTxt+b}}for(var Y=0;Y=h){Ym){W(E,Y-1),n.isOverflowing=!0;break}if(_>0&&_+se>m){var de=z(C[E],Y-1,F+1,m);if(de.txtLastCharIndex!==Y-1){if(C[E]=de.lineTxt,de.txtLastCharIndex===o.length-1)break;Y=de.txtLastCharIndex+1,ee=o[Y],q=o[Y-1],ae=o[Y+1],se=P(ee)}if(E+1>=h){W(E,Y-1),n.isOverflowing=!0;break}if(F=Y-1,E+=1,_=0,C[E]="",this.isBreakingSpace(ee))continue;this.canBreakInLastChar(ee)||(C=this.trimToBreakable(C),_=this.sumTextWidthByCache(C[E]||"",P)),this.shouldBreakByKinsokuShorui(ee,ae)&&(C=this.trimByKinsokuShorui(C),_+=P(q||""))}_+=se,C[E]+=ee}return C.join(` `)}},{key:"isBreakingSpace",value:function(r){return typeof r!="string"?!1:g4.BreakingSpaces.indexOf(r.charCodeAt(0))>=0}},{key:"isNewline",value:function(r){return typeof r!="string"?!1:g4.Newlines.indexOf(r.charCodeAt(0))>=0}},{key:"trimToBreakable",value:function(r){var n=ou(r),i=n[n.length-2],a=this.findBreakableIndex(i);if(a===-1||!i)return n;var o=i.slice(a,a+1),s=this.isBreakingSpace(o),l=a+1,u=a+(s?0:1);return n[n.length-1]+=i.slice(l,i.length),n[n.length-2]=i.slice(0,u),n}},{key:"canBreakInLastChar",value:function(r){return!(r&&$Fe.test(r))}},{key:"sumTextWidthByCache",value:function(r,n){return r.split("").reduce(function(i,a){return i+n(a)},0)}},{key:"findBreakableIndex",value:function(r){for(var n=r.length-1;n>=0;n--)if(!$Fe.test(r[n]))return n;return-1}},{key:"getFromCache",value:function(r,n,i,a){var o=i.get(r);if(typeof o!="number"){var s=r.length*n,l=a.measureText(r);o=l.width+s,i.put(r,o)}return o}},{key:"clearCache",value:function(){this.fontMetricsCache={},this.charWidthCache.clear()}}])}(),fa={},Yir=function(e){var t=new yir,r=new mir;return e={},uo(uo(uo(uo(uo(uo(uo(uo(uo(uo(e,Ci.FRAGMENT,null),Ci.CIRCLE,new dir),Ci.ELLIPSE,new gir),Ci.RECT,t),Ci.IMAGE,t),Ci.GROUP,new wir),Ci.LINE,new pir),Ci.TEXT,new bir(fa)),Ci.POLYLINE,r),Ci.POLYGON,r),uo(uo(uo(e,Ci.PATH,new vir),Ci.HTML,new Cir),Ci.MESH,null)}(),qir=function(e){var t=new xnr,r=new jbe;return e={},uo(uo(uo(uo(uo(uo(uo(uo(uo(uo(e,Va.PERCENTAGE,null),Va.NUMBER,new Tnr),Va.ANGLE,new Enr),Va.DEFINED_PATH,new Bnr),Va.PAINT,t),Va.COLOR,t),Va.FILTER,new Snr),Va.LENGTH,r),Va.LENGTH_PERCENTAGE,r),Va.LENGTH_PERCENTAGE_12,new knr),uo(uo(uo(uo(uo(uo(uo(uo(uo(uo(e,Va.LENGTH_PERCENTAGE_14,new Qnr),Va.COORDINATE,new jbe),Va.OFFSET_DISTANCE,new Dnr),Va.OPACITY_VALUE,new Fnr),Va.PATH,new Rnr),Va.LIST_OF_POINTS,new Mnr),Va.SHADOW_BLUR,new Onr),Va.TEXT,new Nnr),Va.TEXT_TRANSFORM,new Lnr),Va.TRANSFORM,new Air),uo(uo(uo(e,Va.TRANSFORM_ORIGIN,new fir),Va.Z_INDEX,new hir),Va.MARKER,new _nr)}(),Jir=function(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}};fa.CameraContribution=fft;fa.AnimationTimeline=null;fa.EasingFunction=null;fa.offscreenCanvasCreator=new zxe;fa.sceneGraphSelector=new Sir;fa.sceneGraphService=new Nir(fa);fa.textService=new Wir(fa);fa.geometryUpdaterFactory=Yir;fa.CSSPropertySyntaxFactory=qir;fa.styleValueRegistry=new Cnr(fa);fa.layoutRegistry=null;fa.globalThis=Jir();fa.enableStyleSyntax=!0;fa.enableSizeAttenuation=!1;var Xir=0,zbe=new vC(Gl.INSERTED,null,"","","",0,"",""),Kbe=new vC(Gl.REMOVED,null,"","","",0,"",""),Uft=new nd(Gl.DESTROY),Zir=function(e){function t(){var r;aa(this,t);for(var n=arguments.length,i=new Array(n),a=0;a0&&arguments[0]!==void 0?arguments[0]:!0,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;this.renderable.dirty=n,i&&(this.renderable.boundsDirty=n,this.renderable.renderBoundsDirty=n)}},{key:"className",get:function(){return this.getAttribute("class")||""},set:function(n){this.setAttribute("class",n)}},{key:"classList",get:function(){return this.className.split(" ").filter(function(n){return n!==""})}},{key:"tagName",get:function(){return this.nodeName}},{key:"children",get:function(){return this.childNodes}},{key:"childElementCount",get:function(){return this.childNodes.length}},{key:"firstElementChild",get:function(){return this.firstChild}},{key:"lastElementChild",get:function(){return this.lastChild}},{key:"parentElement",get:function(){return this.parentNode}},{key:"nextSibling",get:function(){if(this.parentNode){var n=this.parentNode.childNodes.indexOf(this);return this.parentNode.childNodes[n+1]||null}return null}},{key:"previousSibling",get:function(){if(this.parentNode){var n=this.parentNode.childNodes.indexOf(this);return this.parentNode.childNodes[n-1]||null}return null}},{key:"cloneNode",value:function(n){throw new Error(Tc)}},{key:"appendChild",value:function(n,i){var a;if(n.destroyed)throw new Error($tr);return fa.sceneGraphService.attach(n,this,i),(a=this.ownerDocument)!==null&&a!==void 0&&a.defaultView&&(!VW(this)&&n.nodeName===Ci.FRAGMENT?this.ownerDocument.defaultView.mountFragment(n):this.ownerDocument.defaultView.mountChildren(n)),this.isMutationObserved&&(zbe.relatedNode=this,n.dispatchEvent(zbe)),n}},{key:"insertBefore",value:function(n,i){if(!i)this.appendChild(n);else{n.parentElement&&n.parentElement.removeChild(n);var a=this.childNodes.indexOf(i);a===-1?this.appendChild(n):this.appendChild(n,a)}return n}},{key:"replaceChild",value:function(n,i){var a=this.childNodes.indexOf(i);return this.removeChild(i),this.appendChild(n,a),i}},{key:"removeChild",value:function(n){var i,a,o=((i=this.ownerDocument)===null||i===void 0||(i=i.defaultView)===null||i===void 0||(i=i.getConfig().future)===null||i===void 0?void 0:i.experimentalCancelEventPropagation)===!0;return Kbe.relatedNode=this,n.dispatchEvent(Kbe,o,o),(a=n.ownerDocument)!==null&&a!==void 0&&a.defaultView&&n.ownerDocument.defaultView.unmountChildren(n),fa.sceneGraphService.detach(n),n}},{key:"removeChildren",value:function(){for(var n=this.childNodes.length-1;n>=0;n--){var i=this.childNodes[n];this.removeChild(i)}}},{key:"destroyChildren",value:function(){for(var n=this.childNodes.length-1;n>=0;n--){var i=this.childNodes[n];i.childNodes.length>0&&i.destroyChildren(),i.destroy()}}},{key:"matches",value:function(n){return fa.sceneGraphService.matches(n,this)}},{key:"getElementById",value:function(n){return fa.sceneGraphService.querySelector("#".concat(n),this)}},{key:"getElementsByName",value:function(n){return fa.sceneGraphService.querySelectorAll('[name="'.concat(n,'"]'),this)}},{key:"getElementsByClassName",value:function(n){return fa.sceneGraphService.querySelectorAll(".".concat(n),this)}},{key:"getElementsByTagName",value:function(n){return fa.sceneGraphService.querySelectorAll(n,this)}},{key:"querySelector",value:function(n){return fa.sceneGraphService.querySelector(n,this)}},{key:"querySelectorAll",value:function(n){return fa.sceneGraphService.querySelectorAll(n,this)}},{key:"closest",value:function(n){var i=this;do{if(fa.sceneGraphService.matches(n,i))return i;i=i.parentElement}while(i!==null);return null}},{key:"find",value:function(n){var i=this,a=null;return this.forEach(function(o){return o!==i&&n(o)?(a=o,!1):!0}),a}},{key:"findAll",value:function(n){var i=this,a=[];return this.forEach(function(o){o!==i&&n(o)&&a.push(o)}),a}},{key:"after",value:function(){var n=this;if(this.parentNode){for(var i=this.parentNode.childNodes.indexOf(this),a=arguments.length,o=new Array(a),s=0;s0&&arguments[0]!==void 0?arguments[0]:{},i={forceUpdateGeometry:!0};fa.styleValueRegistry.processProperties(this,n,i),this.dirty()}},{key:"setAttribute",value:function(n,i){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!0;rl(i)||(a||i!==this.attributes[n])&&(this.internalSetAttribute(n,i,{memoize:o}),sFe(t,"setAttribute",this)([n,i]))}},{key:"internalSetAttribute",value:function(n,i){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.attributes[n],s=this.parsedStyle[n];fa.styleValueRegistry.processProperties(this,uo({},n,i),a),this.dirty();var l=this.parsedStyle[n];if(this.isConnected)if(kw.relatedNode=this,kw.prevValue=o,kw.newValue=i,kw.attrName=n,kw.prevParsedValue=s,kw.newParsedValue=l,this.isMutationObserved)this.dispatchEvent(kw);else{var u,c=((u=this.ownerDocument.defaultView.getConfig().future)===null||u===void 0?void 0:u.experimentalCancelEventPropagation)===!0;kw.target=this,this.ownerDocument.defaultView.dispatchEvent(kw,!0,c)}if(this.isCustomElement&&this.isConnected||!this.isCustomElement){var A,f;(A=(f=this).attributeChangedCallback)===null||A===void 0||A.call(f,n,o,i,s,l)}}},{key:"getBBox",value:function(){var n=this.getBounds(),i=n.getMin(),a=gl(i,2),o=a[0],s=a[1],l=n.getMax(),u=gl(l,2),c=u[0],A=u[1];return new n7(o,s,c-o,A-s)}},{key:"setOrigin",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return fa.sceneGraphService.setOrigin(this,N0(n,i,a,!1)),this}},{key:"getOrigin",value:function(){return fa.sceneGraphService.getOrigin(this)}},{key:"setPosition",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return fa.sceneGraphService.setPosition(this,N0(n,i,a,!1)),this}},{key:"setLocalPosition",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return fa.sceneGraphService.setLocalPosition(this,N0(n,i,a,!1)),this}},{key:"translate",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return fa.sceneGraphService.translate(this,N0(n,i,a,!1)),this}},{key:"translateLocal",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return fa.sceneGraphService.translateLocal(this,N0(n,i,a,!1)),this}},{key:"getPosition",value:function(){return fa.sceneGraphService.getPosition(this)}},{key:"getLocalPosition",value:function(){return fa.sceneGraphService.getLocalPosition(this)}},{key:"scale",value:function(n,i,a){return this.scaleLocal(n,i,a)}},{key:"scaleLocal",value:function(n,i,a){return typeof n=="number"&&(i=i||n,a=a||n,n=N0(n,i,a,!1)),fa.sceneGraphService.scaleLocal(this,n),this}},{key:"setLocalScale",value:function(n,i,a){return typeof n=="number"&&(i=i||n,a=a||n,n=N0(n,i,a,!1)),fa.sceneGraphService.setLocalScale(this,n),this}},{key:"getLocalScale",value:function(){return fa.sceneGraphService.getLocalScale(this)}},{key:"getScale",value:function(){return fa.sceneGraphService.getScale(this)}},{key:"getEulerAngles",value:function(){var n=zoe(HF,fa.sceneGraphService.getWorldTransform(this)),i=gl(n,3),a=i[2];return Hv(a)}},{key:"getLocalEulerAngles",value:function(){var n=zoe(HF,fa.sceneGraphService.getLocalRotation(this)),i=gl(n,3),a=i[2];return Hv(a)}},{key:"setEulerAngles",value:function(n){return fa.sceneGraphService.setEulerAngles(this,0,0,n),this}},{key:"setLocalEulerAngles",value:function(n){return fa.sceneGraphService.setLocalEulerAngles(this,0,0,n),this}},{key:"rotateLocal",value:function(n,i,a){return ds(i)&&ds(a)?fa.sceneGraphService.rotateLocal(this,0,0,n):fa.sceneGraphService.rotateLocal(this,n,i,a),this}},{key:"rotate",value:function(n,i,a){return ds(i)&&ds(a)?fa.sceneGraphService.rotate(this,0,0,n):fa.sceneGraphService.rotate(this,n,i,a),this}},{key:"setRotation",value:function(n,i,a,o){return fa.sceneGraphService.setRotation(this,n,i,a,o),this}},{key:"setLocalRotation",value:function(n,i,a,o){return fa.sceneGraphService.setLocalRotation(this,n,i,a,o),this}},{key:"setLocalSkew",value:function(n,i){return fa.sceneGraphService.setLocalSkew(this,n,i),this}},{key:"getRotation",value:function(){return fa.sceneGraphService.getRotation(this)}},{key:"getLocalRotation",value:function(){return fa.sceneGraphService.getLocalRotation(this)}},{key:"getLocalSkew",value:function(){return fa.sceneGraphService.getLocalSkew(this)}},{key:"getLocalTransform",value:function(){return fa.sceneGraphService.getLocalTransform(this)}},{key:"getWorldTransform",value:function(){return fa.sceneGraphService.getWorldTransform(this)}},{key:"setLocalTransform",value:function(n){return fa.sceneGraphService.setLocalTransform(this,n),this}},{key:"resetLocalTransform",value:function(){fa.sceneGraphService.resetLocalTransform(this)}},{key:"getAnimations",value:function(){return this.activeAnimations}},{key:"animate",value:function(n,i){var a,o=(a=this.ownerDocument)===null||a===void 0?void 0:a.timeline;return o?o.play(this,n,i):null}},{key:"isVisible",value:function(){var n;return((n=this.parsedStyle)===null||n===void 0?void 0:n.visibility)!=="hidden"}},{key:"interactive",get:function(){return this.isInteractive()},set:function(n){this.style.pointerEvents=n?"auto":"none"}},{key:"isInteractive",value:function(){var n;return((n=this.parsedStyle)===null||n===void 0?void 0:n.pointerEvents)!=="none"}},{key:"isCulled",value:function(){return!!(this.cullable&&this.cullable.enable&&!this.cullable.visible)}},{key:"toFront",value:function(){return this.parentNode&&(this.style.zIndex=Math.max.apply(Math,ou(this.parentNode.children.map(function(n){return Number(n.style.zIndex)})))+1),this}},{key:"toBack",value:function(){return this.parentNode&&(this.style.zIndex=Math.min.apply(Math,ou(this.parentNode.children.map(function(n){return Number(n.style.zIndex)})))-1),this}},{key:"getConfig",value:function(){return this.config}},{key:"attr",value:function(){for(var n=this,i=arguments.length,a=new Array(i),o=0;o1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return this.setPosition(n,i,a),this}},{key:"move",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return this.setPosition(n,i,a),this}},{key:"setZIndex",value:function(n){return this.style.zIndex=n,this}}])}(Zir);SA.PARSED_STYLE_LIST=new Set(["class","className","clipPath","cursor","display","draggable","droppable","fill","fillOpacity","fillRule","filter","increasedLineWidthForHitTesting","lineCap","lineDash","lineDashOffset","lineJoin","lineWidth","miterLimit","hitArea","offsetDistance","offsetPath","offsetX","offsetY","opacity","pointerEvents","shadowColor","shadowType","shadowBlur","shadowOffsetX","shadowOffsetY","stroke","strokeOpacity","strokeWidth","strokeLinecap","strokeLineJoin","strokeDasharray","strokeDashoffset","transform","transformOrigin","textTransform","visibility","zIndex"]);var IB=function(e){function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return aa(this,t),kl(this,t,[Ot({type:Ci.CIRCLE},r)])}return Ql(t,e),oa(t)}(SA);IB.PARSED_STYLE_LIST=new Set([].concat(ou(SA.PARSED_STYLE_LIST),["cx","cy","cz","r","isBillboard","isSizeAttenuation"]));var rar=["style"],Kxe=function(e){function t(){var r,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=n.style,a=iQ(n,rar);return aa(this,t),r=kl(this,t,[Ot({style:i},a)]),r.isCustomElement=!0,r}return Ql(t,e),oa(t)}(SA);Kxe.PARSED_STYLE_LIST=new Set(["class","className","clipPath","cursor","draggable","droppable","opacity","pointerEvents","transform","transformOrigin","zIndex","visibility"]);var NL=function(e){function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return aa(this,t),kl(this,t,[Ot({type:Ci.ELLIPSE},r)])}return Ql(t,e),oa(t)}(SA);NL.PARSED_STYLE_LIST=new Set([].concat(ou(SA.PARSED_STYLE_LIST),["cx","cy","cz","rx","ry","isBillboard","isSizeAttenuation"]));var nar=function(e){function t(){return aa(this,t),kl(this,t,[{type:Ci.FRAGMENT}])}return Ql(t,e),oa(t)}(SA);nar.PARSED_STYLE_LIST=new Set(["class","className"]);var zd=function(e){function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return aa(this,t),kl(this,t,[Ot({type:Ci.GROUP},r)])}return Ql(t,e),oa(t)}(SA);zd.PARSED_STYLE_LIST=new Set(["class","className","clipPath","cursor","draggable","droppable","opacity","pointerEvents","transform","transformOrigin","zIndex","visibility"]);var iar=["style"],LL=function(e){function t(){var r,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=n.style,a=iQ(n,iar);return aa(this,t),r=kl(this,t,[Ot({type:Ci.HTML,style:i},a)]),r.cullable.enable=!1,r}return Ql(t,e),oa(t,[{key:"getDomElement",value:function(){return this.parsedStyle.$el}},{key:"getClientRects",value:function(){return[this.getBoundingClientRect()]}},{key:"getLocalBounds",value:function(){if(this.parentNode){var n=$w($c(),this.parentNode.getWorldTransform()),i=this.getBounds();if(!nA.isEmpty(i)){var a=new nA;return a.setFromTransformedAABB(i,n),a}}return this.getBounds()}}])}(SA);LL.PARSED_STYLE_LIST=new Set([].concat(ou(SA.PARSED_STYLE_LIST),["x","y","$el","innerHTML","width","height"]));var PL=function(e){function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return aa(this,t),kl(this,t,[Ot({type:Ci.IMAGE},r)])}return Ql(t,e),oa(t)}(SA);PL.PARSED_STYLE_LIST=new Set([].concat(ou(SA.PARSED_STYLE_LIST),["x","y","z","src","width","height","isBillboard","billboardRotation","isSizeAttenuation","keepAspectRatio"]));var aar=["style"],Q6=function(e){function t(){var r,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=n.style,a=iQ(n,aar);aa(this,t),r=kl(this,t,[Ot({type:Ci.LINE,style:Ot({x1:0,y1:0,x2:0,y2:0,z1:0,z2:0},i)},a)]),r.markerStartAngle=0,r.markerEndAngle=0;var o=r.parsedStyle,s=o.markerStart,l=o.markerEnd;return s&&Uu(s)&&(r.markerStartAngle=s.getLocalEulerAngles(),r.appendChild(s)),l&&Uu(l)&&(r.markerEndAngle=l.getLocalEulerAngles(),r.appendChild(l)),r.transformMarker(!0),r.transformMarker(!1),r}return Ql(t,e),oa(t,[{key:"attributeChangedCallback",value:function(n,i,a,o,s){n==="x1"||n==="y1"||n==="x2"||n==="y2"||n==="markerStartOffset"||n==="markerEndOffset"?(this.transformMarker(!0),this.transformMarker(!1)):n==="markerStart"?(o&&Uu(o)&&(this.markerStartAngle=0,o.remove()),s&&Uu(s)&&(this.markerStartAngle=s.getLocalEulerAngles(),this.appendChild(s),this.transformMarker(!0))):n==="markerEnd"&&(o&&Uu(o)&&(this.markerEndAngle=0,o.remove()),s&&Uu(s)&&(this.markerEndAngle=s.getLocalEulerAngles(),this.appendChild(s),this.transformMarker(!1)))}},{key:"transformMarker",value:function(n){var i=this.parsedStyle,a=i.markerStart,o=i.markerEnd,s=i.markerStartOffset,l=i.markerEndOffset,u=i.x1,c=i.x2,A=i.y1,f=i.y2,h=n?a:o;if(!(!h||!Uu(h))){var g=0,p,m,b,C,E,_;n?(b=u,C=A,p=c-u,m=f-A,E=s||0,_=this.markerStartAngle):(b=c,C=f,p=u-c,m=A-f,E=l||0,_=this.markerEndAngle),g=Math.atan2(m,p),h.setLocalEulerAngles(g*180/Math.PI+_),h.setLocalPosition(b+Math.cos(g)*E,C+Math.sin(g)*E)}}},{key:"getPoint",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=this.parsedStyle,o=a.x1,s=a.y1,l=a.x2,u=a.y2,c=uft(o,s,l,u,n),A=c.x,f=c.y,h=a0(Jl(),yA(A,f,0),i?this.getWorldTransform():this.getLocalTransform());return new Wg(h[0],h[1])}},{key:"getPointAtLength",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return this.getPoint(n/this.getTotalLength(),i)}},{key:"getTotalLength",value:function(){var n=this.parsedStyle,i=n.x1,a=n.y1,o=n.x2,s=n.y2;return lft(i,a,o,s)}}])}(SA);Q6.PARSED_STYLE_LIST=new Set([].concat(ou(SA.PARSED_STYLE_LIST),["x1","y1","x2","y2","z1","z2","isBillboard","isSizeAttenuation","markerStart","markerEnd","markerStartOffset","markerEndOffset"]));var oar=["style"],Jm=function(e){function t(){var r,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=n.style,a=iQ(n,oar);aa(this,t),r=kl(this,t,[Ot({type:Ci.PATH,style:i,initialParsedStyle:{miterLimit:4,d:Ot({},hft)}},a)]),r.markerStartAngle=0,r.markerEndAngle=0,r.markerMidList=[];var o=r.parsedStyle,s=o.markerStart,l=o.markerEnd,u=o.markerMid;return s&&Uu(s)&&(r.markerStartAngle=s.getLocalEulerAngles(),r.appendChild(s)),u&&Uu(u)&&r.placeMarkerMid(u),l&&Uu(l)&&(r.markerEndAngle=l.getLocalEulerAngles(),r.appendChild(l)),r.transformMarker(!0),r.transformMarker(!1),r}return Ql(t,e),oa(t,[{key:"attributeChangedCallback",value:function(n,i,a,o,s){n==="d"?(this.transformMarker(!0),this.transformMarker(!1),this.placeMarkerMid(this.parsedStyle.markerMid)):n==="markerStartOffset"||n==="markerEndOffset"?(this.transformMarker(!0),this.transformMarker(!1)):n==="markerStart"?(o&&Uu(o)&&(this.markerStartAngle=0,o.remove()),s&&Uu(s)&&(this.markerStartAngle=s.getLocalEulerAngles(),this.appendChild(s),this.transformMarker(!0))):n==="markerEnd"?(o&&Uu(o)&&(this.markerEndAngle=0,o.remove()),s&&Uu(s)&&(this.markerEndAngle=s.getLocalEulerAngles(),this.appendChild(s),this.transformMarker(!1))):n==="markerMid"&&this.placeMarkerMid(s)}},{key:"transformMarker",value:function(n){var i=this.parsedStyle,a=i.markerStart,o=i.markerEnd,s=i.markerStartOffset,l=i.markerEndOffset,u=n?a:o;if(!(!u||!Uu(u))){var c=0,A,f,h,g,p,m;if(n){var b=this.getStartTangent(),C=gl(b,2),E=C[0],_=C[1];h=_[0],g=_[1],A=E[0]-_[0],f=E[1]-_[1],p=s||0,m=this.markerStartAngle}else{var F=this.getEndTangent(),M=gl(F,2),N=M[0],P=M[1];h=P[0],g=P[1],A=N[0]-P[0],f=N[1]-P[1],p=l||0,m=this.markerEndAngle}c=Math.atan2(f,A),u.setLocalEulerAngles(c*180/Math.PI+m),u.setLocalPosition(h+Math.cos(c)*p,g+Math.sin(c)*p)}}},{key:"placeMarkerMid",value:function(n){var i=this.parsedStyle.d.segments;if(this.markerMidList.forEach(function(c){c.remove()}),n&&Uu(n))for(var a=1;a1&&arguments[1]!==void 0?arguments[1]:!1,a=this.parsedStyle.d.absolutePath,o=mtr(a,n),s=o.x,l=o.y,u=a0(Jl(),yA(s,l,0),i?this.getWorldTransform():this.getLocalTransform());return new Wg(u[0],u[1])}},{key:"getPoint",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return this.getPointAtLength(n*Ube(this),i)}},{key:"getStartTangent",value:function(){var n=this.parsedStyle.d.segments,i=[];if(n.length>1){var a=n[0].currentPoint,o=n[1].currentPoint,s=n[1].startTangent;i=[],s?(i.push([a[0]-s[0],a[1]-s[1]]),i.push([a[0],a[1]])):(i.push([o[0],o[1]]),i.push([a[0],a[1]]))}return i}},{key:"getEndTangent",value:function(){var n=this.parsedStyle.d.segments,i=n.length,a=[];if(i>1){var o=n[i-2].currentPoint,s=n[i-1].currentPoint,l=n[i-1].endTangent;a=[],l?(a.push([s[0]-l[0],s[1]-l[1]]),a.push([s[0],s[1]])):(a.push([o[0],o[1]]),a.push([s[0],s[1]]))}return a}}])}(SA);Jm.PARSED_STYLE_LIST=new Set([].concat(ou(SA.PARSED_STYLE_LIST),["d","markerStart","markerMid","markerEnd","markerStartOffset","markerEndOffset","isBillboard","isSizeAttenuation"]));var sar=["style"],oQ=function(e){function t(){var r,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=n.style,a=iQ(n,sar);aa(this,t),r=kl(this,t,[Ot({type:Ci.POLYGON,style:i,initialParsedStyle:{points:{points:[],totalLength:0,segments:[]},miterLimit:4,isClosed:!0}},a)]),r.markerStartAngle=0,r.markerEndAngle=0,r.markerMidList=[];var o=r.parsedStyle,s=o.markerStart,l=o.markerEnd,u=o.markerMid;return s&&Uu(s)&&(r.markerStartAngle=s.getLocalEulerAngles(),r.appendChild(s)),u&&Uu(u)&&r.placeMarkerMid(u),l&&Uu(l)&&(r.markerEndAngle=l.getLocalEulerAngles(),r.appendChild(l)),r.transformMarker(!0),r.transformMarker(!1),r}return Ql(t,e),oa(t,[{key:"attributeChangedCallback",value:function(n,i,a,o,s){n==="points"?(this.transformMarker(!0),this.transformMarker(!1),this.placeMarkerMid(this.parsedStyle.markerMid)):n==="markerStartOffset"||n==="markerEndOffset"?(this.transformMarker(!0),this.transformMarker(!1)):n==="markerStart"?(o&&Uu(o)&&(this.markerStartAngle=0,o.remove()),s&&Uu(s)&&(this.markerStartAngle=s.getLocalEulerAngles(),this.appendChild(s),this.transformMarker(!0))):n==="markerEnd"?(o&&Uu(o)&&(this.markerEndAngle=0,o.remove()),s&&Uu(s)&&(this.markerEndAngle=s.getLocalEulerAngles(),this.appendChild(s),this.transformMarker(!1))):n==="markerMid"&&this.placeMarkerMid(s)}},{key:"transformMarker",value:function(n){var i=this.parsedStyle,a=i.markerStart,o=i.markerEnd,s=i.markerStartOffset,l=i.markerEndOffset,u=i.points,c=u||{},A=c.points,f=n?a:o;if(!(!f||!Uu(f)||!A)){var h=0,g,p,m,b,C,E;if(m=A[0][0],b=A[0][1],n)g=A[1][0]-A[0][0],p=A[1][1]-A[0][1],C=s||0,E=this.markerStartAngle;else{var _=A.length;this.parsedStyle.isClosed?(g=A[_-1][0]-A[0][0],p=A[_-1][1]-A[0][1]):(m=A[_-1][0],b=A[_-1][1],g=A[_-2][0]-A[_-1][0],p=A[_-2][1]-A[_-1][1]),C=l||0,E=this.markerEndAngle}h=Math.atan2(p,g),f.setLocalEulerAngles(h*180/Math.PI+E),f.setLocalPosition(m+Math.cos(h)*C,b+Math.sin(h)*C)}}},{key:"placeMarkerMid",value:function(n){var i=this.parsedStyle.points,a=i||{},o=a.points;if(this.markerMidList.forEach(function(A){A.remove()}),this.markerMidList=[],n&&Uu(n)&&o)for(var s=1;s<(this.parsedStyle.isClosed?o.length:o.length-1);s++){var l=o[s][0],u=o[s][1],c=s===1?n:n.cloneNode(!0);this.markerMidList.push(c),this.appendChild(c),c.setLocalPosition(l,u)}}}])}(SA);oQ.PARSED_STYLE_LIST=new Set([].concat(ou(SA.PARSED_STYLE_LIST),["points","markerStart","markerMid","markerEnd","markerStartOffset","markerEndOffset","isClosed","isBillboard","isSizeAttenuation"]));var lar=["style"],tX=function(e){function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=r.style,i=iQ(r,lar);return aa(this,t),kl(this,t,[Ot({type:Ci.POLYLINE,style:n,initialParsedStyle:{points:{points:[],totalLength:0,segments:[]},miterLimit:4,isClosed:!1}},i)])}return Ql(t,e),oa(t,[{key:"getTotalLength",value:function(){return Zrr(this)}},{key:"getPointAtLength",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return this.getPoint(n/this.getTotalLength(),i)}},{key:"getPoint",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=this.parsedStyle.points.points;if(this.parsedStyle.points.segments.length===0){var o=[],s=0,l,u,c=this.getTotalLength();a.forEach(function(b,C){a[C+1]&&(l=[0,0],l[0]=s/c,u=lft(b[0],b[1],a[C+1][0],a[C+1][1]),s+=u,l[1]=s/c,o.push(l))}),this.parsedStyle.points.segments=o}var A=0,f=0;this.parsedStyle.points.segments.forEach(function(b,C){n>=b[0]&&n<=b[1]&&(A=(n-b[0])/(b[1]-b[0]),f=C)});var h=uft(a[f][0],a[f][1],a[f+1][0],a[f+1][1],A),g=h.x,p=h.y,m=a0(Jl(),yA(g,p,0),i?this.getWorldTransform():this.getLocalTransform());return new Wg(m[0],m[1])}},{key:"getStartTangent",value:function(){var n=this.parsedStyle.points.points,i=[];return i.push([n[1][0],n[1][1]]),i.push([n[0][0],n[0][1]]),i}},{key:"getEndTangent",value:function(){var n=this.parsedStyle.points.points,i=n.length-1,a=[];return a.push([n[i-1][0],n[i-1][1]]),a.push([n[i][0],n[i][1]]),a}}])}(oQ);tX.PARSED_STYLE_LIST=new Set([].concat(ou(oQ.PARSED_STYLE_LIST),["points","markerStart","markerMid","markerEnd","markerStartOffset","markerEndOffset","isBillboard"]));var op=function(e){function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return aa(this,t),kl(this,t,[Ot({type:Ci.RECT},r)])}return Ql(t,e),oa(t)}(SA);op.PARSED_STYLE_LIST=new Set([].concat(ou(SA.PARSED_STYLE_LIST),["x","y","z","width","height","isBillboard","isSizeAttenuation","radius"]));var uar=["style"],sQ=function(e){function t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=r.style,i=iQ(r,uar);return aa(this,t),kl(this,t,[Ot({type:Ci.TEXT,style:Ot({fill:"black"},n)},i)])}return Ql(t,e),oa(t,[{key:"getComputedTextLength",value:function(){var n;return this.getGeometryBounds(),((n=this.parsedStyle.metrics)===null||n===void 0?void 0:n.maxLineWidth)||0}},{key:"getLineBoundingRects",value:function(){var n;return this.getGeometryBounds(),((n=this.parsedStyle.metrics)===null||n===void 0?void 0:n.lineMetrics)||[]}},{key:"isOverflowing",value:function(){return this.getGeometryBounds(),!!this.parsedStyle.isOverflowing}}])}(SA);sQ.PARSED_STYLE_LIST=new Set([].concat(ou(SA.PARSED_STYLE_LIST),["x","y","z","isBillboard","billboardRotation","isSizeAttenuation","text","textAlign","textBaseline","fontStyle","fontSize","fontFamily","fontWeight","fontVariant","lineHeight","letterSpacing","leading","wordWrap","wordWrapWidth","maxLines","textOverflow","isOverflowing","textPath","textDecorationLine","textDecorationColor","textDecorationStyle","textPathSide","textPathStartOffset","metrics","dx","dy"]));var car=function(){function e(){aa(this,e),this.registry={},this.define(Ci.CIRCLE,IB),this.define(Ci.ELLIPSE,NL),this.define(Ci.RECT,op),this.define(Ci.IMAGE,PL),this.define(Ci.LINE,Q6),this.define(Ci.GROUP,zd),this.define(Ci.PATH,Jm),this.define(Ci.POLYGON,oQ),this.define(Ci.POLYLINE,tX),this.define(Ci.TEXT,sQ),this.define(Ci.HTML,LL)}return oa(e,[{key:"define",value:function(r,n){this.registry[r]=n}},{key:"get",value:function(r){return this.registry[r]}}])}(),Hft=function(e){function t(){var r;aa(this,t),r=kl(this,t),r.defaultView=null,r.ownerDocument=null,r.nodeName="document";try{r.timeline=new fa.AnimationTimeline(r)}catch{}var n={};return jxe.forEach(function(i){var a=i.n,o=i.inh,s=i.d;o&&s&&(n[a]=xo(s)?s(Ci.GROUP):s)}),r.documentElement=new zd({id:"g-root",style:n}),r.documentElement.ownerDocument=r,r.documentElement.parentNode=r,r.childNodes=[r.documentElement],r}return Ql(t,e),oa(t,[{key:"children",get:function(){return this.childNodes}},{key:"childElementCount",get:function(){return this.childNodes.length}},{key:"firstElementChild",get:function(){return this.firstChild}},{key:"lastElementChild",get:function(){return this.lastChild}},{key:"createElement",value:function(n,i){if(n==="svg")return this.documentElement;var a=this.defaultView.customElements.get(n);a||(console.warn("Unsupported tagName: ",n),a=n==="tspan"?sQ:zd);var o=new a(i);return o.ownerDocument=this,o}},{key:"createElementNS",value:function(n,i,a){return this.createElement(i,a)}},{key:"cloneNode",value:function(n){throw new Error(Tc)}},{key:"destroy",value:function(){try{this.documentElement.destroyChildren(),this.timeline.destroy()}catch{}}},{key:"elementsFromBBox",value:function(n,i,a,o){var s=this.defaultView.context.rBushRoot,l=s.search({minX:n,minY:i,maxX:a,maxY:o}),u=[];return l.forEach(function(c){var A=c.displayObject,f=A.parsedStyle.pointerEvents,h=f===void 0?"auto":f,g=["auto","visiblepainted","visiblefill","visiblestroke","visible"].includes(h);(!g||g&&A.isVisible())&&!A.isCulled()&&A.isInteractive()&&u.push(A)}),u.sort(function(c,A){return A.sortable.renderOrder-c.sortable.renderOrder}),u}},{key:"elementFromPointSync",value:function(n,i){var a=this.defaultView.canvas2Viewport({x:n,y:i}),o=a.x,s=a.y,l=this.defaultView.getConfig(),u=l.width,c=l.height;if(o<0||s<0||o>u||s>c)return null;var A=this.defaultView.viewport2Client({x:o,y:s}),f=A.x,h=A.y,g=this.defaultView.getRenderingService().hooks.pickSync.call({topmost:!0,position:{x:n,y:i,viewportX:o,viewportY:s,clientX:f,clientY:h},picked:[]}),p=g.picked;return p&&p[0]||this.documentElement}},{key:"elementFromPoint",value:function(){var r=ap(Jg().mark(function i(a,o){var s,l,u,c,A,f,h,g,p,m,b;return Jg().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:if(s=this.defaultView.canvas2Viewport({x:a,y:o}),l=s.x,u=s.y,c=this.defaultView.getConfig(),A=c.width,f=c.height,!(l<0||u<0||l>A||u>f)){C.next=1;break}return C.abrupt("return",null);case 1:return h=this.defaultView.viewport2Client({x:l,y:u}),g=h.x,p=h.y,C.next=2,this.defaultView.getRenderingService().hooks.pick.promise({topmost:!0,position:{x:a,y:o,viewportX:l,viewportY:u,clientX:g,clientY:p},picked:[]});case 2:return m=C.sent,b=m.picked,C.abrupt("return",b&&b[0]||this.documentElement);case 3:case"end":return C.stop()}},i,this)}));function n(i,a){return r.apply(this,arguments)}return n}()},{key:"elementsFromPointSync",value:function(n,i){var a=this.defaultView.canvas2Viewport({x:n,y:i}),o=a.x,s=a.y,l=this.defaultView.getConfig(),u=l.width,c=l.height;if(o<0||s<0||o>u||s>c)return[];var A=this.defaultView.viewport2Client({x:o,y:s}),f=A.x,h=A.y,g=this.defaultView.getRenderingService().hooks.pickSync.call({topmost:!1,position:{x:n,y:i,viewportX:o,viewportY:s,clientX:f,clientY:h},picked:[]}),p=g.picked;return p[p.length-1]!==this.documentElement&&p.push(this.documentElement),p}},{key:"elementsFromPoint",value:function(){var r=ap(Jg().mark(function i(a,o){var s,l,u,c,A,f,h,g,p,m,b;return Jg().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:if(s=this.defaultView.canvas2Viewport({x:a,y:o}),l=s.x,u=s.y,c=this.defaultView.getConfig(),A=c.width,f=c.height,!(l<0||u<0||l>A||u>f)){C.next=1;break}return C.abrupt("return",[]);case 1:return h=this.defaultView.viewport2Client({x:l,y:u}),g=h.x,p=h.y,C.next=2,this.defaultView.getRenderingService().hooks.pick.promise({topmost:!1,position:{x:a,y:o,viewportX:l,viewportY:u,clientX:g,clientY:p},picked:[]});case 2:return m=C.sent,b=m.picked,b[b.length-1]!==this.documentElement&&b.push(this.documentElement),C.abrupt("return",b);case 3:case"end":return C.stop()}},i,this)}));function n(i,a){return r.apply(this,arguments)}return n}()},{key:"appendChild",value:function(n,i){throw new Error(j_)}},{key:"insertBefore",value:function(n,i){throw new Error(j_)}},{key:"removeChild",value:function(n,i){throw new Error(j_)}},{key:"replaceChild",value:function(n,i,a){throw new Error(j_)}},{key:"append",value:function(){throw new Error(j_)}},{key:"prepend",value:function(){throw new Error(j_)}},{key:"getElementById",value:function(n){return this.documentElement.getElementById(n)}},{key:"getElementsByName",value:function(n){return this.documentElement.getElementsByName(n)}},{key:"getElementsByTagName",value:function(n){return this.documentElement.getElementsByTagName(n)}},{key:"getElementsByClassName",value:function(n){return this.documentElement.getElementsByClassName(n)}},{key:"querySelector",value:function(n){return this.documentElement.querySelector(n)}},{key:"querySelectorAll",value:function(n){return this.documentElement.querySelectorAll(n)}},{key:"find",value:function(n){return this.documentElement.find(n)}},{key:"findAll",value:function(n){return this.documentElement.findAll(n)}}])}(af),jft=function(){function e(t){aa(this,e),this.strategies=t}return oa(e,[{key:"apply",value:function(r){var n=r.config,i=r.camera,a=r.renderingService,o=r.renderingContext,s=this.strategies;a.hooks.cull.tap(e.tag,function(l){if(l){var u,c=l.cullable;if(s.length===0?c.visible=o.unculledEntities.indexOf(l.entity)>-1:c.visible=s.every(function(f){return f.isVisible(i,l)}),!l.isCulled()&&l.isVisible())return l;var A=((u=n.future)===null||u===void 0?void 0:u.experimentalCancelEventPropagation)===!0;return l.dispatchEvent(new nd(Gl.CULLED),A,A),null}return l}),a.hooks.afterRender.tap(e.tag,function(l){l.cullable.visibilityPlaneMask=-1})}}])}();jft.tag="Culling";var Gft=function(){function e(){var t=this;aa(this,e),this.autoPreventDefault=!1,this.rootPointerEvent=new WW(null),this.rootWheelEvent=new $be(null),this.onPointerMove=function(r){var n,i=(n=t.context.renderingContext.root)===null||n===void 0||(n=n.ownerDocument)===null||n===void 0?void 0:n.defaultView;if(!(i.supportsTouchEvents&&r.pointerType==="touch")){var a=t.normalizeToPointerEvent(r,i),o=ck(a),s;try{for(o.s();!(s=o.n()).done;){var l=s.value,u=t.bootstrapEvent(t.rootPointerEvent,l,i,r);t.context.eventService.mapEvent(u)}}catch(c){o.e(c)}finally{o.f()}t.setCursor(t.context.eventService.cursor)}},this.onClick=function(r){var n,i=(n=t.context.renderingContext.root)===null||n===void 0||(n=n.ownerDocument)===null||n===void 0?void 0:n.defaultView,a=t.normalizeToPointerEvent(r,i),o=ck(a),s;try{for(o.s();!(s=o.n()).done;){var l=s.value,u=t.bootstrapEvent(t.rootPointerEvent,l,i,r);t.context.eventService.mapEvent(u)}}catch(c){o.e(c)}finally{o.f()}t.setCursor(t.context.eventService.cursor)}}return oa(e,[{key:"apply",value:function(r){var n=this;this.context=r;var i=r.renderingService,a=this.context.renderingContext.root.ownerDocument.defaultView;this.context.eventService.setPickHandler(function(o){var s=n.context.renderingService.hooks.pickSync.call({position:o,picked:[],topmost:!0}),l=s.picked;return l[0]||null}),i.hooks.pointerWheel.tap(e.tag,function(o){var s=n.normalizeWheelEvent(o);n.context.eventService.mapEvent(s)}),i.hooks.pointerDown.tap(e.tag,function(o){if(!(a.supportsTouchEvents&&o.pointerType==="touch")){var s=n.normalizeToPointerEvent(o,a);if(n.autoPreventDefault&&s[0].isNormalized){var l=o.cancelable||!("cancelable"in o);l&&o.preventDefault()}var u=ck(s),c;try{for(u.s();!(c=u.n()).done;){var A=c.value,f=n.bootstrapEvent(n.rootPointerEvent,A,a,o);n.context.eventService.mapEvent(f)}}catch(h){u.e(h)}finally{u.f()}n.setCursor(n.context.eventService.cursor)}}),i.hooks.pointerUp.tap(e.tag,function(o){if(!(a.supportsTouchEvents&&o.pointerType==="touch")){var s=n.context.contextService.getDomElement(),l=n.context.eventService.isNativeEventFromCanvas(s,o),u=l?"":"outside",c=n.normalizeToPointerEvent(o,a),A=ck(c),f;try{for(A.s();!(f=A.n()).done;){var h=f.value,g=n.bootstrapEvent(n.rootPointerEvent,h,a,o);g.type+=u,n.context.eventService.mapEvent(g)}}catch(p){A.e(p)}finally{A.f()}n.setCursor(n.context.eventService.cursor)}}),i.hooks.pointerMove.tap(e.tag,this.onPointerMove),i.hooks.pointerOver.tap(e.tag,this.onPointerMove),i.hooks.pointerOut.tap(e.tag,this.onPointerMove),i.hooks.click.tap(e.tag,this.onClick),i.hooks.pointerCancel.tap(e.tag,function(o){var s=n.normalizeToPointerEvent(o,a),l=ck(s),u;try{for(l.s();!(u=l.n()).done;){var c=u.value,A=n.bootstrapEvent(n.rootPointerEvent,c,a,o);n.context.eventService.mapEvent(A)}}catch(f){l.e(f)}finally{l.f()}n.setCursor(n.context.eventService.cursor)})}},{key:"bootstrapEvent",value:function(r,n,i,a){r.view=i,r.originalEvent=null,r.nativeEvent=a,r.pointerId=n.pointerId,r.width=n.width,r.height=n.height,r.isPrimary=n.isPrimary,r.pointerType=n.pointerType,r.pressure=n.pressure,r.tangentialPressure=n.tangentialPressure,r.tiltX=n.tiltX,r.tiltY=n.tiltY,r.twist=n.twist,this.transferMouseData(r,n);var o=this.context.eventService.client2Viewport({x:n.clientX,y:n.clientY}),s=o.x,l=o.y;r.viewport.x=s,r.viewport.y=l;var u=this.context.eventService.viewport2Canvas(r.viewport),c=u.x,A=u.y;return r.canvas.x=c,r.canvas.y=A,r.global.copyFrom(r.canvas),r.offset.copyFrom(r.canvas),r.isTrusted=a.isTrusted,r.type==="pointerleave"&&(r.type="pointerout"),r.type.startsWith("mouse")&&(r.type=r.type.replace("mouse","pointer")),r.type.startsWith("touch")&&(r.type=Knr[r.type]||r.type),r}},{key:"normalizeWheelEvent",value:function(r){var n=this.rootWheelEvent;this.transferMouseData(n,r),n.deltaMode=r.deltaMode,n.deltaX=r.deltaX,n.deltaY=r.deltaY,n.deltaZ=r.deltaZ;var i=this.context.eventService.client2Viewport({x:r.clientX,y:r.clientY}),a=i.x,o=i.y;n.viewport.x=a,n.viewport.y=o;var s=this.context.eventService.viewport2Canvas(n.viewport),l=s.x,u=s.y;return n.canvas.x=l,n.canvas.y=u,n.global.copyFrom(n.canvas),n.offset.copyFrom(n.canvas),n.nativeEvent=r,n.type=r.type,n}},{key:"transferMouseData",value:function(r,n){r.isTrusted=n.isTrusted,r.srcElement=n.srcElement,r.timeStamp=Gbe.now(),r.type=n.type,r.altKey=n.altKey,r.metaKey=n.metaKey,r.shiftKey=n.shiftKey,r.ctrlKey=n.ctrlKey,r.button=n.button,r.buttons=n.buttons,r.client.x=n.clientX,r.client.y=n.clientY,r.movement.x=n.movementX,r.movement.y=n.movementY,r.page.x=n.pageX,r.page.y=n.pageY,r.screen.x=n.screenX,r.screen.y=n.screenY,r.relatedTarget=null}},{key:"setCursor",value:function(r){this.context.contextService.applyCursorStyle(r||this.context.config.cursor||"default")}},{key:"normalizeToPointerEvent",value:function(r,n){var i=[];if(n.isTouchEvent(r))for(var a=0;a-1,l=0,u=a.length;l1&&arguments[1]!==void 0?arguments[1]:!1;if(r.isConnected){var i=r.rBushNode;i.aabb&&this.rBush.remove(i.aabb);var a=r.getRenderBounds();if(a){var o=r.renderable;n&&(o.dirtyRenderBounds||(o.dirtyRenderBounds=new nA),o.dirtyRenderBounds.update(a.center,a.halfExtents));var s=a.getMin(),l=gl(s,2),u=l[0],c=l[1],A=a.getMax(),f=gl(A,2),h=f[0],g=f[1];i.aabb||(i.aabb={}),i.aabb.displayObject=r,i.aabb.minX=u,i.aabb.minY=c,i.aabb.maxX=h,i.aabb.maxY=g}if(i.aabb&&!isNaN(i.aabb.maxX)&&!isNaN(i.aabb.maxX)&&!isNaN(i.aabb.minX)&&!isNaN(i.aabb.minY))return i.aabb}}},{key:"syncRTree",value:function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(!(!n&&(this.syncing||this.syncTasks.size===0))){this.syncing=!0;var i=[],a=new Set,o=function(l){if(!a.has(l)&&l.renderable){var u=r.syncNode(l,n);u&&(i.push(u),a.add(l))}};this.syncTasks.forEach(function(s,l){s&&l.forEach(o);for(var u=l;u;)o(u),u=u.parentElement}),this.rBush.load(i),i.length=0,this.syncing=!1}}}])}();$ft.tag="Prepare";var Km=function(e){return e.READY="ready",e.BEFORE_RENDER="beforerender",e.RERENDER="rerender",e.AFTER_RENDER="afterrender",e.BEFORE_DESTROY="beforedestroy",e.AFTER_DESTROY="afterdestroy",e.RESIZE="resize",e.DIRTY_RECTANGLE="dirtyrectangle",e.RENDERER_CHANGED="rendererchanged",e}({}),zFe=500,har=.1,dar=1e3,BG=new nd(Gl.MOUNTED),xG=new nd(Gl.UNMOUNTED),tse=new nd(Km.BEFORE_RENDER),KFe=new nd(Km.RERENDER),rse=new nd(Km.AFTER_RENDER),Vbe=function(e){function t(r){var n;aa(this,t),n=kl(this,t),n.Element=SA,n.inited=!1,n.context={};var i=r.container,a=r.canvas,o=r.renderer,s=r.width,l=r.height,u=r.background,c=r.cursor,A=r.supportsMutipleCanvasesInOneContainer,f=r.cleanUpOnDestroy,h=f===void 0?!0:f,g=r.offscreenCanvas,p=r.devicePixelRatio,m=r.requestAnimationFrame,b=r.cancelAnimationFrame,C=r.createImage,E=r.supportsTouchEvents,_=r.supportsPointerEvents,F=r.isTouchEvent,M=r.isMouseEvent,N=r.dblClickSpeed,P=s,j=l,z=p||Gxe&&window.devicePixelRatio||1;return z=z>=1?Math.ceil(z):1,a&&(P=s||Gnr(a)||a.width/z,j=l||$nr(a)||a.height/z),n.customElements=new car,n.devicePixelRatio=z,n.requestAnimationFrame=m??$xe.bind(fa.globalThis),n.cancelAnimationFrame=b??Oft.bind(fa.globalThis),n.createImage=C??function(){return new window.Image},n.supportsTouchEvents=E??"ontouchstart"in fa.globalThis,n.supportsPointerEvents=_??!!fa.globalThis.PointerEvent,n.isTouchEvent=F??function(W){return n.supportsTouchEvents&&W instanceof fa.globalThis.TouchEvent},n.isMouseEvent=M??function(W){return!fa.globalThis.MouseEvent||W instanceof fa.globalThis.MouseEvent&&(!n.supportsPointerEvents||!(W instanceof fa.globalThis.PointerEvent))},g&&(fa.offscreenCanvas=g),n.document=new Hft,n.document.defaultView=n,A||Pnr(i,n,h),n.initRenderingContext(Ot(Ot({},r),{},{width:P,height:j,background:u??"transparent",cursor:c??"default",cleanUpOnDestroy:h,devicePixelRatio:z,requestAnimationFrame:n.requestAnimationFrame,cancelAnimationFrame:n.cancelAnimationFrame,createImage:n.createImage,supportsTouchEvents:n.supportsTouchEvents,supportsPointerEvents:n.supportsPointerEvents,isTouchEvent:n.isTouchEvent,isMouseEvent:n.isMouseEvent,dblClickSpeed:N??200})),n.initDefaultCamera(P,j,o.clipSpaceNearZ),n.initRenderer(o,!0),n}return Ql(t,e),oa(t,[{key:"initRenderingContext",value:function(n){this.context.config=n,this.context.renderingContext={root:this.document.documentElement,unculledEntities:[],renderListCurrentFrame:[],renderReasons:new Set,force:!1,dirty:!1}}},{key:"initDefaultCamera",value:function(n,i,a){var o=this,s=new fa.CameraContribution;s.clipSpaceNearZ=a,s.setType(_c.EXPLORING,Mbe.DEFAULT).setPosition(n/2,i/2,zFe).setFocalPoint(n/2,i/2,0).setOrthographic(n/-2,n/2,i/2,i/-2,har,dar),s.canvas=this,s.eventEmitter.on(Aft.UPDATED,function(){o.context.renderingContext.renderReasons.add(w9.CAMERA_CHANGED),fa.enableSizeAttenuation&&o.getConfig().renderer.getConfig().enableSizeAttenuation&&o.updateSizeAttenuation()}),this.context.camera=s}},{key:"updateSizeAttenuation",value:function(){var n=this.getCamera().getZoom();this.document.documentElement.forEach(function(i){fa.styleValueRegistry.updateSizeAttenuation(i,n)})}},{key:"getConfig",value:function(){return this.context.config}},{key:"getRoot",value:function(){return this.document.documentElement}},{key:"getCamera",value:function(){return this.context.camera}},{key:"getContextService",value:function(){return this.context.contextService}},{key:"getEventService",value:function(){return this.context.eventService}},{key:"getRenderingService",value:function(){return this.context.renderingService}},{key:"getRenderingContext",value:function(){return this.context.renderingContext}},{key:"getStats",value:function(){return this.getRenderingService().getStats()}},{key:"ready",get:function(){var n=this;return this.readyPromise||(this.readyPromise=new Promise(function(i){n.resolveReadyPromise=function(){i(n)}}),this.inited&&this.resolveReadyPromise()),this.readyPromise}},{key:"destroy",value:function(){var n,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,a=arguments.length>1?arguments[1]:void 0;Qh.clearCache();var o=((n=this.getConfig().future)===null||n===void 0?void 0:n.experimentalCancelEventPropagation)===!0;a||this.dispatchEvent(new nd(Km.BEFORE_DESTROY),o,o),this.frameId&&this.cancelAnimationFrame(this.frameId);var s=this.getRoot();i&&(this.unmountChildren(s),this.document.destroy(),this.getEventService().destroy()),this.getRenderingService().destroy(),this.getContextService().destroy(),this.context.rBushRoot&&this.context.rBushRoot.clear(),a||this.dispatchEvent(new nd(Km.AFTER_DESTROY),o,o);var l=function(c){c.currentTarget=null,c.manager=null,c.target=null,c.relatedNode=null};l(BG),l(xG),l(tse),l(KFe),l(rse),l(kw),l(zbe),l(Kbe),l(Uft),fa.textService.clearCache()}},{key:"changeSize",value:function(n,i){this.resize(n,i)}},{key:"resize",value:function(n,i){var a,o=this.context.config;o.width=n,o.height=i,this.getContextService().resize(n,i);var s=this.context.camera,l=s.getProjectionMode();s.setPosition(n/2,i/2,zFe).setFocalPoint(n/2,i/2,0),l===ay.ORTHOGRAPHIC?s.setOrthographic(n/-2,n/2,i/2,i/-2,s.getNear(),s.getFar()):s.setAspect(n/i);var u=((a=o.future)===null||a===void 0?void 0:a.experimentalCancelEventPropagation)===!0;this.dispatchEvent(new nd(Km.RESIZE,{width:n,height:i}),u,u)}},{key:"appendChild",value:function(n,i){return this.document.documentElement.appendChild(n,i)}},{key:"insertBefore",value:function(n,i){return this.document.documentElement.insertBefore(n,i)}},{key:"removeChild",value:function(n){return this.document.documentElement.removeChild(n)}},{key:"removeChildren",value:function(){this.document.documentElement.removeChildren()}},{key:"destroyChildren",value:function(){this.document.documentElement.destroyChildren()}},{key:"render",value:function(n){var i,a=this;n&&(tse.detail=n,rse.detail=n);var o=((i=this.getConfig().future)===null||i===void 0?void 0:i.experimentalCancelEventPropagation)===!0;this.dispatchEvent(tse,o,o);var s=this.getRenderingService();s.render(this.getConfig(),n,function(){a.dispatchEvent(KFe,o,o)}),this.dispatchEvent(rse,o,o)}},{key:"run",value:function(){var n=this,i=function(o,s){n.render(s),n.frameId=n.requestAnimationFrame(i)};i()}},{key:"initRenderer",value:function(n){var i=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!n)throw new Error("Renderer is required.");this.inited=!1,this.readyPromise=void 0,this.context.rBushRoot=new Ltr,this.context.renderingPlugins=[],this.context.renderingPlugins.push(new Gft,new $ft,new jft([new far])),this.loadRendererContainerModule(n),this.context.contextService=new this.context.ContextService(Ot(Ot({},fa),this.context)),this.context.renderingService=new Bir(fa,this.context),this.context.eventService=new Eir(fa,this.context),this.context.eventService.init(),this.context.contextService.init?(this.context.contextService.init(),this.initRenderingService(n,a,!0)):this.context.contextService.initAsync().then(function(){i.initRenderingService(n,a)}).catch(function(o){console.error(o)})}},{key:"initRenderingService",value:function(n){var i=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.context.renderingService.init(function(){var s;i.inited=!0;var l=((s=i.getConfig().future)===null||s===void 0?void 0:s.experimentalCancelEventPropagation)===!0;a?o?i.requestAnimationFrame(function(){i.dispatchEvent(new nd(Km.READY),l,l)}):i.dispatchEvent(new nd(Km.READY),l,l):i.dispatchEvent(new nd(Km.RENDERER_CHANGED),l,l),i.readyPromise&&i.resolveReadyPromise(),a||i.getRoot().forEach(function(u){var c,A;(c=(A=u).dirty)===null||c===void 0||c.call(A,!0,!0)}),i.mountChildren(i.getRoot()),n.getConfig().enableAutoRendering&&i.run()})}},{key:"loadRendererContainerModule",value:function(n){var i=this,a=n.getPlugins();a.forEach(function(o){o.context=i.context,o.init(fa)})}},{key:"setRenderer",value:function(n){var i=this.getConfig();if(i.renderer!==n){var a=i.renderer;i.renderer=n,this.destroy(!1,!0),ou((a==null?void 0:a.getPlugins())||[]).reverse().forEach(function(o){o.destroy(fa)}),this.initRenderer(n)}}},{key:"setCursor",value:function(n){var i=this.getConfig();i.cursor=n,this.getContextService().applyCursorStyle(n)}},{key:"unmountChildren",value:function(n){var i=this;if(n.childNodes.forEach(function(s){i.unmountChildren(s)}),this.inited){if(n.isMutationObserved)n.dispatchEvent(xG);else{var a,o=((a=this.getConfig().future)===null||a===void 0?void 0:a.experimentalCancelEventPropagation)===!0;xG.target=n,this.dispatchEvent(xG,!0,o)}n!==this.document.documentElement&&(n.ownerDocument=null),n.isConnected=!1}n.isCustomElement&&n.disconnectedCallback&&n.disconnectedCallback()}},{key:"mountChildren",value:function(n){var i=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:VW(n);if(this.inited){if(!n.isConnected&&(n.ownerDocument=this.document,n.isConnected=!0,!a))if(n.isMutationObserved)n.dispatchEvent(BG);else{var o,s=((o=this.getConfig().future)===null||o===void 0?void 0:o.experimentalCancelEventPropagation)===!0;BG.target=n,this.dispatchEvent(BG,!0,s)}}else console.warn("[g]: You are trying to call `canvas.appendChild` before canvas' initialization finished. You can either await `canvas.ready` or listen to `CanvasEvent.READY` manually.","appended child: ",n.nodeName);n.childNodes.forEach(function(l){i.mountChildren(l,a)}),n.isCustomElement&&n.connectedCallback&&n.connectedCallback()}},{key:"mountFragment",value:function(n){this.mountChildren(n,!1)}},{key:"client2Viewport",value:function(n){return this.getEventService().client2Viewport(n)}},{key:"viewport2Client",value:function(n){return this.getEventService().viewport2Client(n)}},{key:"viewport2Canvas",value:function(n){return this.getEventService().viewport2Canvas(n)}},{key:"canvas2Viewport",value:function(n){return this.getEventService().canvas2Viewport(n)}},{key:"getPointByClient",value:function(n,i){return this.client2Viewport({x:n,y:i})}},{key:"getClientByPoint",value:function(n,i){return this.viewport2Client({x:n,y:i})}}])}(Pft);/*! * @antv/g-camera-api * @description A simple implementation of Camera API. * @version 2.0.41 * @date 7/30/2025, 1:34:37 PM * @author AntVis * @docs https://g.antv.antgroup.com/ */var gar=function(e){function t(){var r;aa(this,t);for(var n=arguments.length,i=new Array(n),a=0;a90)return this;this.computeMatrix()}return this._getAxes(),this.type===_c.ORBITING||this.type===_c.EXPLORING?this._getPosition():this.type===_c.TRACKING&&this._getFocalPoint(),this._update(),this}},{key:"pan",value:function(n,i){var a=N0(n,i,0),o=sE(this.position);return Z3(o,o,MW(Jl(),this.right,a[0])),Z3(o,o,MW(Jl(),this.up,a[1])),this._setPosition(o),this.triggerUpdate(),this}},{key:"dolly",value:function(n){var i=this.forward,a=sE(this.position),o=n*this.dollyingStep,s=this.distance+n*this.dollyingStep;return o=Math.max(Math.min(s,this.maxDistance),this.minDistance)-this.distance,a[0]+=o*i[0],a[1]+=o*i[1],a[2]+=o*i[2],this._setPosition(a),this.type===_c.ORBITING||this.type===_c.EXPLORING?this._getDistance():this.type===_c.TRACKING&&Z3(this.focalPoint,a,this.distanceVector),this.triggerUpdate(),this}},{key:"cancelLandmarkAnimation",value:function(){this.landmarkAnimationID!==void 0&&this.canvas.cancelAnimationFrame(this.landmarkAnimationID)}},{key:"createLandmark",value:function(n){var i,a,o,s,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=l.position,c=u===void 0?this.position:u,A=l.focalPoint,f=A===void 0?this.focalPoint:A,h=l.roll,g=l.zoom,p=new fa.CameraContribution;p.setType(this.type,void 0),p.setPosition(c[0],(i=c[1])!==null&&i!==void 0?i:this.position[1],(a=c[2])!==null&&a!==void 0?a:this.position[2]),p.setFocalPoint(f[0],(o=f[1])!==null&&o!==void 0?o:this.focalPoint[1],(s=f[2])!==null&&s!==void 0?s:this.focalPoint[2]),p.setRoll(h??this.roll),p.setZoom(g??this.zoom);var m={name:n,matrix:SAt(p.getWorldTransform()),right:sE(p.right),up:sE(p.up),forward:sE(p.forward),position:sE(p.getPosition()),focalPoint:sE(p.getFocalPoint()),distanceVector:sE(p.getDistanceVector()),distance:p.getDistance(),dollyingStep:p.getDollyingStep(),azimuth:p.getAzimuth(),elevation:p.getElevation(),roll:p.getRoll(),relAzimuth:p.relAzimuth,relElevation:p.relElevation,relRoll:p.relRoll,zoom:p.getZoom()};return this.landmarks.push(m),m}},{key:"gotoLandmark",value:function(n){var i=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=_u(n)?this.landmarks.find(function(W){return W.name===n}):n;if(o){var s=go(a)?{duration:a}:a,l=s.easing,u=l===void 0?"linear":l,c=s.duration,A=c===void 0?100:c,f=s.easingFunction,h=f===void 0?void 0:f,g=s.onfinish,p=g===void 0?void 0:g,m=s.onframe,b=m===void 0?void 0:m,C=.01;this.cancelLandmarkAnimation();var E=o.position,_=o.focalPoint,F=o.zoom,M=o.roll,N=h||fa.EasingFunction(u),P,j=function(){i.setFocalPoint(_),i.setPosition(E),i.setRoll(M),i.setZoom(F),i.computeMatrix(),i.triggerUpdate(),p==null||p()};if(A===0)return j();var z=function(Y){P===void 0&&(P=Y);var ee=Y-P;if(ee>=A){j();return}var q=N(ee/A),ae=Jl(),se=Jl(),de=1,Ae=0;Ebe(ae,i.focalPoint,_,q),Ebe(se,i.position,E,q),Ae=i.roll*(1-q)+M*q,de=i.zoom*(1-q)+F*q,i.setFocalPoint(ae),i.setPosition(se),i.setRoll(Ae),i.setZoom(de);var be=ZDe(ae,_)+ZDe(se,E);if(be<=C&&F===void 0&&M===void 0)return j();i.computeMatrix(),i.triggerUpdate(),ee0&&Number(this._currentTime)>=this._totalDuration||this._playbackRate<0&&Number(this._currentTime)<=0)}},{key:"totalDuration",get:function(){return this._totalDuration}},{key:"_needsTick",get:function(){return this.pending||this.playState==="running"||!this._finishedFlag}},{key:"updatePromises",value:function(){var r;if((r=this.effect.target)!==null&&r!==void 0&&r.destroyed)return this.readyPromise=void 0,this.finishedPromise=void 0,!1;var n=this.oldPlayState,i=this.pending?"pending":this.playState;return this.readyPromise&&i!==n&&(i==="idle"?(this.rejectReadyPromise(),this.readyPromise=void 0):n==="pending"?this.resolveReadyPromise():i==="pending"&&(this.readyPromise=void 0)),this.finishedPromise&&i!==n&&(i==="idle"?(this.rejectFinishedPromise(),this.finishedPromise=void 0):i==="finished"?this.resolveFinishedPromise():n==="finished"&&(this.finishedPromise=void 0)),this.oldPlayState=i,this.readyPromise||this.finishedPromise}},{key:"play",value:function(){this.updatePromises(),this._paused=!1,(this._isFinished||this._idle)&&(this.rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this.ensureAlive(),this.timeline.applyDirtiedAnimation(this),this.timeline.animations.indexOf(this)===-1&&this.timeline.animations.push(this),this.updatePromises()}},{key:"pause",value:function(){this.updatePromises(),this.currentTime&&(this._holdTime=this.currentTime),!this._isFinished&&!this._paused&&!this._idle?this.currentTimePending=!0:this._idle&&(this.rewind(),this._idle=!1),this._startTime=null,this._paused=!0,this.updatePromises()}},{key:"finish",value:function(){this.updatePromises(),!this._idle&&(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this.currentTimePending=!1,this.timeline.applyDirtiedAnimation(this),this.updatePromises())}},{key:"cancel",value:function(){var r=this;if(this.updatePromises(),!!this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this.effect.update(null),this.timeline.applyDirtiedAnimation(this),this.updatePromises(),this.oncancel)){var n=new nse(null,this,this.currentTime,null);setTimeout(function(){r.oncancel(n)})}}},{key:"reverse",value:function(){this.updatePromises();var r=this.currentTime;this.playbackRate*=-1,this.play(),r!==null&&(this.currentTime=r),this.updatePromises()}},{key:"updatePlaybackRate",value:function(r){this.playbackRate=r}},{key:"targetAnimations",value:function(){var r,n=(r=this.effect)===null||r===void 0?void 0:r.target;return n.getAnimations()}},{key:"markTarget",value:function(){var r=this.targetAnimations();r.indexOf(this)===-1&&r.push(this)}},{key:"unmarkTarget",value:function(){var r=this.targetAnimations(),n=r.indexOf(this);n!==-1&&r.splice(n,1)}},{key:"tick",value:function(r,n){!this._idle&&!this._paused&&(this._startTime===null?n&&(this.startTime=r-this._currentTime/this.playbackRate):this._isFinished||this.tickCurrentTime((r-this._startTime)*this.playbackRate)),n&&(this.currentTimePending=!1,this.fireEvents(r))}},{key:"rewind",value:function(){if(this.playbackRate>=0)this.currentTime=0;else if(this._totalDuration<1/0)this.currentTime=this._totalDuration;else throw new Error("Unable to rewind negative playback rate animation with infinite duration")}},{key:"persist",value:function(){throw new Error(Tc)}},{key:"addEventListener",value:function(r,n,i){throw new Error(Tc)}},{key:"removeEventListener",value:function(r,n,i){throw new Error(Tc)}},{key:"dispatchEvent",value:function(r){throw new Error(Tc)}},{key:"commitStyles",value:function(){throw new Error(Tc)}},{key:"ensureAlive",value:function(){if(this.playbackRate<0&&this.currentTime===0){var r;this._inEffect=!!((r=this.effect)!==null&&r!==void 0&&r.update(-1))}else{var n;this._inEffect=!!((n=this.effect)!==null&&n!==void 0&&n.update(this.currentTime))}!this._inTimeline&&(this._inEffect||!this._finishedFlag)&&(this._inTimeline=!0,this.timeline.animations.push(this))}},{key:"tickCurrentTime",value:function(r,n){r!==this._currentTime&&(this._currentTime=r,this._isFinished&&!n&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this.ensureAlive())}},{key:"fireEvents",value:function(r){var n=this;if(this._isFinished){if(!this._finishedFlag){if(this.onfinish){var i=new nse(null,this,this.currentTime,r);setTimeout(function(){n.onfinish&&n.onfinish(i)})}this._finishedFlag=!0}}else{if(this.onframe&&this.playState==="running"){var a=new nse(null,this,this.currentTime,r);this.onframe(a)}this._finishedFlag=!1}}}])}(),yar=4,bar=.001,war=1e-7,Car=10,WR=11,SG=1/(WR-1),Iar=typeof Float32Array=="function",zft=function(t,r){return 1-3*r+3*t},Kft=function(t,r){return 3*r-6*t},Vft=function(t){return 3*t},YW=function(t,r,n){return((zft(r,n)*t+Kft(r,n))*t+Vft(r))*t},Wft=function(t,r,n){return 3*zft(r,n)*t*t+2*Kft(r,n)*t+Vft(r)},Ear=function(t,r,n,i,a){var o,s,l=0;do s=r+(n-r)/2,o=YW(s,i,a)-t,o>0?n=s:r=s;while(Math.abs(o)>war&&++l=0&&t<=1&&n>=0&&n<=1))throw new Error("bezier x values must be in [0, 1] range");if(t===r&&n===i)return function(l){return l};for(var a=Iar?new Float32Array(WR):new Array(WR),o=0;o=bar?Bar(u,g,t,n):p===0?g:Ear(u,c,c+SG,t,n)};return function(l){return l===0||l===1?l:YW(s(l),r,i)}},xar=function(t){return t=t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())}),t.charAt(0)==="-"?t.substring(1):t},kG=function(t){return Math.pow(t,2)},QG=function(t){return Math.pow(t,3)},_G=function(t){return Math.pow(t,4)},TG=function(t){return Math.pow(t,5)},DG=function(t){return Math.pow(t,6)},FG=function(t){return 1-Math.cos(t*Math.PI/2)},RG=function(t){return 1-Math.sqrt(1-t*t)},MG=function(t){return t*t*(3*t-2)},OG=function(t){for(var r,n=4;t<((r=Math.pow(2,--n))-1)/11;);return 1/Math.pow(4,3-n)-7.5625*Math.pow((r*3-2)/22-t,2)},NG=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=gl(r,2),i=n[0],a=i===void 0?1:i,o=n[1],s=o===void 0?.5:o,l=Sf(Number(a),1,10),u=Sf(Number(s),.1,2);return t===0||t===1?t:-l*Math.pow(2,10*(t-1))*Math.sin((t-1-u/(Math.PI*2)*Math.asin(1/l))*(Math.PI*2)/u)},jF=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,i=gl(r,4),a=i[0],o=a===void 0?1:a,s=i[1],l=s===void 0?100:s,u=i[2],c=u===void 0?10:u,A=i[3],f=A===void 0?0:A;o=Sf(o,.1,1e3),l=Sf(l,.1,1e3),c=Sf(c,.1,1e3),f=Sf(f,.1,1e3);var h=Math.sqrt(l/o),g=c/(2*Math.sqrt(l*o)),p=g<1?h*Math.sqrt(1-g*g):0,m=1,b=g<1?(g*h+-f)/p:-f+h,C=n?n*t/1e3:t;return g<1?C=Math.exp(-C*g*h)*(m*Math.cos(p*C)+b*Math.sin(p*C)):C=(m+b*C)*Math.exp(-C*h),t===0||t===1?t:1-C},ise=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=r,i=gl(n,2),a=i[0],o=a===void 0?10:a,s=i[1],l=s==="start"?Math.ceil:Math.floor;return l(Sf(t,0,1)*o)/o},VFe=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=gl(r,4),i=n[0],a=n[1],o=n[2],s=n[3];return Vxe(i,a,o,s)(t)},LG=Vxe(.42,0,1,1),q1=function(t){return function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0;return 1-t(1-r,n,i)}},J1=function(t){return function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0;return r<.5?t(r*2,n,i)/2:1-t(r*-2+2,n,i)/2}},X1=function(t){return function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0;return r<.5?(1-t(1-r*2,n,i))/2:(t(r*2-1,n,i)+1)/2}},WFe={steps:ise,"step-start":function(t){return ise(t,[1,"start"])},"step-end":function(t){return ise(t,[1,"end"])},linear:function(t){return t},"cubic-bezier":VFe,ease:function(t){return VFe(t,[.25,.1,.25,1])},in:LG,out:q1(LG),"in-out":J1(LG),"out-in":X1(LG),"in-quad":kG,"out-quad":q1(kG),"in-out-quad":J1(kG),"out-in-quad":X1(kG),"in-cubic":QG,"out-cubic":q1(QG),"in-out-cubic":J1(QG),"out-in-cubic":X1(QG),"in-quart":_G,"out-quart":q1(_G),"in-out-quart":J1(_G),"out-in-quart":X1(_G),"in-quint":TG,"out-quint":q1(TG),"in-out-quint":J1(TG),"out-in-quint":X1(TG),"in-expo":DG,"out-expo":q1(DG),"in-out-expo":J1(DG),"out-in-expo":X1(DG),"in-sine":FG,"out-sine":q1(FG),"in-out-sine":J1(FG),"out-in-sine":X1(FG),"in-circ":RG,"out-circ":q1(RG),"in-out-circ":J1(RG),"out-in-circ":X1(RG),"in-back":MG,"out-back":q1(MG),"in-out-back":J1(MG),"out-in-back":X1(MG),"in-bounce":OG,"out-bounce":q1(OG),"in-out-bounce":J1(OG),"out-in-bounce":X1(OG),"in-elastic":NG,"out-elastic":q1(NG),"in-out-elastic":J1(NG),"out-in-elastic":X1(NG),spring:jF,"spring-in":jF,"spring-out":q1(jF),"spring-in-out":J1(jF),"spring-out-in":X1(jF)},Sar=function(t){return xar(t).replace(/^ease-/,"").replace(/(\(|\s).+/,"").toLowerCase().trim()},kar=function(t){return WFe[Sar(t)]||WFe.linear},Qar=function(t){return t},_ar=1,Tar=.5,YFe=0;function qFe(e,t){return function(r){if(r>=1)return 1;var n=1/e;return r+=t*n,r-r%n}}var PG="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",Dar=new RegExp("cubic-bezier\\(".concat(PG,",").concat(PG,",").concat(PG,",").concat(PG,"\\)")),Far=/steps\(\s*(\d+)\s*\)/,Rar=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/;function Wxe(e){var t=Dar.exec(e);if(t)return Vxe.apply(void 0,ou(t.slice(1).map(Number)));var r=Far.exec(e);if(r)return qFe(Number(r[1]),YFe);var n=Rar.exec(e);return n?qFe(Number(n[1]),{start:_ar,middle:Tar,end:YFe}[n[2]]):kar(e)}function Mar(e){return Math.abs(Oar(e)/(e.playbackRate||1))}function Oar(e){var t;return e.duration===0||e.iterations===0?0:(e.duration==="auto"?0:Number(e.duration))*((t=e.iterations)!==null&&t!==void 0?t:1)}var Yft=0,Yxe=1,rX=2,qft=3;function Nar(e,t,r){if(t===null)return Yft;var n=r.endTime;return t=Math.min(r.delay+e+r.endDelay,n)?rX:qft}function Lar(e,t,r,n,i){switch(n){case Yxe:return t==="backwards"||t==="both"?0:null;case qft:return r-i;case rX:return t==="forwards"||t==="both"?e:null;case Yft:return null}}function Par(e,t,r,n,i){var a=i;return e===0?t!==Yxe&&(a+=r):a+=n/e,a}function Uar(e,t,r,n,i,a){var o=e===1/0?t%1:e%1;return o===0&&r===rX&&n!==0&&(i!==0||a===0)&&(o=1),o}function Har(e,t,r,n){return e===rX&&t===1/0?1/0:r===1?Math.floor(n)-1:Math.floor(n)}function jar(e,t,r){var n=e;if(e!=="normal"&&e!=="reverse"){var i=t;e==="alternate-reverse"&&(i+=1),n="normal",i!==1/0&&i%2!==0&&(n="reverse")}return n==="normal"?r:1-r}function Gar(e,t,r){var n=Nar(e,t,r),i=Lar(e,r.fill,t,n,r.delay);if(i===null)return null;var a=r.duration==="auto"?0:r.duration,o=Par(a,n,r.iterations,i,r.iterationStart),s=Uar(o,r.iterationStart,n,r.iterations,i,a),l=Har(n,r.iterations,s,o),u=jar(r.direction,l,s);return r.currentIteration=l,r.progress=u,r.easingFunction(u)}function $ar(e,t,r){var n=zar(e,t),i=Kar(n,r);return function(a,o){if(o!==null)i.filter(function(l){return o>=l.applyFrom&&o1)throw new Error("Keyframe offsets must be between 0 and 1.");u.computedOffset=A}}else if(c==="composite"&&["replace","add","accumulate","auto"].indexOf(A)===-1)throw new Error("".concat(A," compositing is not supported"));u[c]=A}return u.offset===void 0&&(u.offset=null),u.easing===void 0&&(u.easing=(t==null?void 0:t.easing)||"linear"),u.composite===void 0&&(u.composite="auto"),u}),n=!0,i=-1/0,a=0;a=0&&Number(l.offset)<=1});function s(){var l,u=r,c=u.length;if(r[c-1].computedOffset=Number((l=r[c-1].offset)!==null&&l!==void 0?l:1),c>1){var A;r[0].computedOffset=Number((A=r[0].offset)!==null&&A!==void 0?A:0)}for(var f=0,h=Number(r[0].computedOffset),g=1;g{console.debug(SE(e))},info:e=>{console.info(SE(e))},warn:e=>{console.warn(SE(e))},error:e=>{console.error(SE(e))}};function Zft(e){const{theme:t}=e;if(!t)return{};const r=eB(aN.THEME,t);return r||(DC.warn(`The theme of ${t} is not registered.`),{})}function qxe(e,t){if(Array.isArray(e)&&e.length===0)return null;const r=Array.isArray(e)?e[0]:e,n=Array.isArray(e)?e.slice(1):t||[];return new Proxy(r,{get(i,a){return typeof i[a]=="function"&&!["onframe","onfinish"].includes(a)?(...o)=>{i[a](...o),n.forEach(s=>{var l;return(l=s[a])===null||l===void 0?void 0:l.call(s,...o)})}:a==="finished"?Promise.all([r.finished,...n.map(o=>o.finished)]):Reflect.get(i,a)},set(i,a,o){return["onframe","onfinish"].includes(a)||n.forEach(s=>{s[a]=o}),Reflect.set(i,a,o)}})}function Ybe(e){const t=e.reduce((n,i)=>(Object.entries(i).forEach(([a,o])=>{n[a]===void 0?n[a]=[o]:n[a].push(o)}),n),{});Object.entries(t).forEach(([n,i])=>{(i.length!==e.length||i.some(a=>ds(a))||i.every(a=>!["sourceNode","targetNode","childrenNode"].includes(n)&&Qf(a,i[0])))&&delete t[n]});const r=Object.entries(t).reduce((n,[i,a])=>(a.forEach((o,s)=>{n[s]?n[s][i]=o:n[s]={[i]:o}}),n),[]);return e.length!==0&&r.length===0&&r.push({_:0},{_:0}),r}function oN(e){switch(e){case"opacity":return 1;case"x":case"y":case"z":case"zIndex":return 0;case"visibility":return"visible";case"collapsed":return!1;case"states":return[];default:return}}function eht(e,t){const{animation:r}=e;if(r===!1||t===!1)return!1;const n=Object.assign({},nor);return Bh(r)&&Object.assign(n,r),Bh(t)&&Object.assign(n,t),n}function sor(e){if(typeof e=="string"){const t=eB(aN.ANIMATION,e);return t||(DC.warn(`The animation of ${e} is not registered.`),[])}return e}function lor(e,t,r,n){var i,a;const{animation:o}=e;if(o===!1||n===!1)return[];const s=(i=e==null?void 0:e[t])===null||i===void 0?void 0:i.animation;if(s===!1)return[];const l=s==null?void 0:s[r];if(l===!1)return[];const u=(a=Zft(e)[t])===null||a===void 0?void 0:a.animation,c=(f=[])=>sor(f).map(h=>Object.assign(Object.assign(Object.assign(Object.assign({},ior),Bh(o)&&o),h),Bh(n)&&n));if(l)return c(l);if(!u)return[];const A=u[r];return A===!1?[]:c(A)}function tht(e,t,r,n=[]){if(!n&&e===0&&t===0&&r===0)return null;if(Array.isArray(n)){let a=-1;const o=[];for(let s=0;s{if(!r.length)return null;const[n,i]=t,a=u=>{var c;if(u){const A=e.getShape(u);if(!A)return null;const f=`get${PW(u)}Style`,h=((c=e==null?void 0:e[f])===null||c===void 0?void 0:c.bind(e))||(m=>m),g=(h==null?void 0:h(n))||{},p=(h==null?void 0:h(i))||{};return{shape:A,fromStyle:g,toStyle:p}}else return{shape:e,fromStyle:n,toStyle:i}};let o;const s=r.map(u=>{var{fields:c,shape:A,states:f}=u,h=uor(u,["fields","shape","states"]);const g=a(A);if(!g)return null;const{shape:p,fromStyle:m,toStyle:b}=g,C=[{},{}];if(c.forEach(_=>{var F,M;Object.assign(C[0],{[_]:(F=m[_])!==null&&F!==void 0?F:oN(_)}),Object.assign(C[1],{[_]:(M=b[_])!==null&&M!==void 0?M:oN(_)})}),C.some(_=>Object.keys(_).some(F=>["x","y","z"].includes(F)))){const{x:_=0,y:F=0,z:M,transform:N=""}=p.attributes||{};C.forEach(P=>{var j,z,W;P.transform=tht((j=P.x)!==null&&j!==void 0?j:_,(z=P.y)!==null&&z!==void 0?z:F,(W=P.z)!==null&&W!==void 0?W:M,N)})}const E=p.animate(Ybe(C),h);return A===void 0&&(o=E),E}).filter(Boolean),l=o||(s==null?void 0:s[0]);return l?qxe(l,s.filter(u=>u!==u)):null},Aor=[{fields:["opacity"]}],hor=[{fields:["x","y"]}],rht=[{fields:["x","y"]}],dor=rht,nht=[{fields:["sourceNode","targetNode"]}],gor=nht,iht=[{fields:["childrenNode","x","y"]}],por=iht;function vor(e){return"source"in e&&"target"in e}function mor(e){return e.length===2}function a7(e){return e instanceof Float32Array?!0:Array.isArray(e)&&(e.length===2||e.length===3)?e.every(t=>typeof t=="number"):!1}function mC(e,t,r){return e>=t&&e<=r}function FC(e=0){if(Array.isArray(e)){const[t=0,r=t,n=t,i=r]=e;return[t,r,n,i]}return[e,e,e,e]}function yor(e=0){const t=FC(e);return t[0]+t[2]}function RC(e){return e.max[0]-e.min[0]}function MC(e){return e.max[1]-e.min[1]}function K5(e){return[RC(e),MC(e)]}function Q3(e,t){const r=a7(e)?Jxe(e):e.getShape("key").getBounds();return t?V5(r,t):r}function Jxe(e){const[t,r,n=0]=e,i=new nA;return i.setMinMax([t,r,n],[t,r,n]),i}function V5(e,t){const[r,n,i,a]=FC(t),[o,s,l]=e.min,[u,c,A]=e.max,f=new nA;return f.setMinMax([o-a,s-r,l],[u+n,c+i,A]),f}function UL(e){if(e.length===0)return new nA;if(e.length===1)return e[0];const t=new nA;t.setMinMax(e[0].min,e[0].max);for(let r=1;r=o&&i<=l&&n>=s&&a<=u}function a2(e,t){return mC(e[0],t.min[0],t.max[0])&&mC(e[1],t.min[1],t.max[1])}function aht(e,t,r=!1){const{min:[n,i],max:[a,o]}=t,s=(e[1]===i||e[1]===o)&&(r||mC(e[0],n,a)),l=(e[0]===n||e[0]===a)&&(r||mC(e[1],i,o));return s||l}function wor(e,t){return!a2(e,t)}function JW(e,t){const{center:r}=t;return e[0]===r[0]&&e[1]===r[1]}function JM(e,t){const[r,n]=e,[i,a]=t.min,[o,s]=t.max,l=r-i,u=o-r,c=n-a,A=s-n,f=Math.min(l,u,c,A);return f===l?"left":f===u?"right":f===c?"top":f===A?"bottom":"left"}function Yk(e,t){const r=y5(e);if(a2(e,t))switch(JM(e,t)){case"left":r[0]=t.min[0];break;case"right":r[0]=t.max[0];break;case"top":r[1]=t.min[1];break;case"bottom":r[1]=t.max[1];break}else{const[n,i]=e,[a,o]=t.min,[s,l]=t.max;r[0]=mC(n,a,s)?n:nc[_.id]+W?(c[z]=c[_.id]+W,A[z]=[_.id]):c[z]===c[_.id]+W&&A[z].push(_.id)})},g=0;g0&&i>r;){a=0;for(var p=0;p0&&(f+=g[F]/M)}h[b]=n*f,a+=h[b]}}a=(1-a)/A,i=0;for(var p=0;p=this.maxStep},e.prototype.peek=function(){return this.isEmpty()?null:this.linkedList.head.value},e.prototype.push=function(t){this.linkedList.prepend(t),this.length>this.maxStep&&this.linkedList.deleteTail()},e.prototype.pop=function(){var t=this.linkedList.deleteHead();return t?t.value:null},e.prototype.toArray=function(){return this.linkedList.toArray().map(function(t){return t.value})},e.prototype.clear=function(){for(;!this.isEmpty();)this.pop()},e})();function Gn(e){if(e.id!==void 0)return e.id;if(e.source!==void 0&&e.target!==void 0)return`${e.source}-${e.target}`;throw new Error(SE("The datum does not have available id."))}function HG(e){return e.combo}function cht(e,t){const r={nodes:(e.nodes||[]).map(Gn),edges:(e.edges||[]).map(Gn),combos:(e.combos||[]).map(Gn)};return t?Object.values(r).flat():r}const Aht=(e,t,r)=>{var n;switch(r.type){case"degree":{const i=new Map;return(n=e.nodes)===null||n===void 0||n.forEach(a=>{const o=t(Gn(a),r.direction).length;i.set(Gn(a),o)}),i}case"betweenness":return Uor(e,r.directed,r.weightPropertyName);case"closeness":return Hor(e,r.directed,r.weightPropertyName);case"eigenvector":return Gor(e,r.directed);case"pagerank":return jor(e,r.epsilon,r.linkProb);default:return fht(e)}},fht=e=>{var t;const r=new Map;return(t=e.nodes)===null||t===void 0||t.forEach(n=>{r.set(Gn(n),0)}),r},Uor=(e,t,r)=>{const n=fht(e),{nodes:i=[]}=e;return i.forEach(a=>{i.forEach(o=>{if(a!==o){const{allPath:s}=uht(e,Gn(a),Gn(o),t,r),l=s.length;s.flat().forEach(u=>{u!==Gn(a)&&u!==Gn(o)&&n.set(u,n.get(u)+1/l)})}})}),n},Hor=(e,t,r)=>{const n=new Map,{nodes:i=[]}=e;return i.forEach(a=>{const o=i.reduce((s,l)=>{if(a!==l){const{length:u}=uht(e,Gn(a),Gn(l),t,r);s+=u}return s},0);n.set(Gn(a),1/o)}),n},jor=(e,t,r)=>{var n;const i=new Map,a=Por(e,t,r);return(n=e.nodes)===null||n===void 0||n.forEach(o=>{i.set(Gn(o),a[Gn(o)])}),i},Gor=(e,t)=>{const{nodes:r=[]}=e,n=$or(e,t),i=zor(n,r.length),a=new Map;return r.forEach((o,s)=>{a.set(Gn(o),i[s])}),a},$or=(e,t)=>{const{nodes:r=[],edges:n=[]}=e,i=Array(r.length).fill(null).map(()=>Array(r.length).fill(0));return n.forEach(({source:a,target:o})=>{const s=r.findIndex(u=>Gn(u)===a),l=r.findIndex(u=>Gn(u)===o);t?i[s][l]=1:(i[s][l]=1,i[l][s]=1)}),i},zor=(e,t,r=100,n=1e-6)=>{let i=Array(t).fill(1),a=1/0;for(let o=0;on;o++){const s=Array(t).fill(0);for(let u=0;uu+c*c,0));for(let u=0;uu+(c-i[A])*c,0)),i=s}return i};function t5(e,t,r,n=Qf){const i=new Map(e.map(f=>[r(f),f])),a=new Map(t.map(f=>[r(f),f])),o=new Set(i.keys()),s=new Set(a.keys()),l=[],u=[],c=[],A=[];return s.forEach(f=>{o.has(f)?n(i.get(f),a.get(f))?A.push(a.get(f)):u.push(a.get(f)):l.push(a.get(f))}),o.forEach(f=>{s.has(f)||c.push(i.get(f))}),{enter:l,exit:c,keep:A,update:u}}function _6(e,t,r){const n=i=>{r&&!r(i)||(i.style.visibility=t)};e.forEach(i=>{n(i)})}function Kor(e,t,r){const n={},i=a=>(a in n||(n[a]=0),`${t}-${a}-${n[a]++}`);return r.map(a=>typeof a=="string"?{type:a,key:i(a)}:typeof a=="function"?a.call(e):a.key?a:Object.assign(Object.assign({},a),{key:i(a.type)}))}class Zxe{constructor(t){this.extensions=[],this.extensionMap={},this.context=t}setExtensions(t){const r=Kor(this.context.graph,this.category,t),{enter:n,update:i,exit:a,keep:o}=t5(this.extensions,r,s=>s.key);this.createExtensions(n),this.updateExtensions([...i,...o]),this.destroyExtensions(a),this.extensions=r}createExtension(t){const{category:r}=this,{key:n,type:i}=t,a=eB(r,i);if(!a)return DC.warn(`The extension ${i} of ${r} is not registered.`);const o=new a(this.context,t);o.initialized=!0,this.extensionMap[n]=o}createExtensions(t){t.forEach(r=>this.createExtension(r))}updateExtension(t){const{key:r}=t,n=this.extensionMap[r];n&&n.update(t)}updateExtensions(t){t.forEach(r=>this.updateExtension(r))}destroyExtension(t){const r=this.extensionMap[t];r&&(r.initialized&&!r.destroyed&&r.destroy(),delete this.extensionMap[t])}destroyExtensions(t){t.forEach(({key:r})=>this.destroyExtension(r))}destroy(){this.destroyExtensions(this.extensions),this.context={},this.extensions=[],this.extensionMap={}}}class e3e{constructor(t,r){this.events=[],this.initialized=!1,this.destroyed=!1,this.context=t,this.options=r}update(t){this.options=Object.assign(this.options,t)}destroy(){this.context={},this.options={},this.destroyed=!0}}class g1 extends e3e{}class nX extends g1{constructor(t,r){super(t,Object.assign({},nX.defaultOptions,r)),this.isOverlapping=(n,i)=>i.some(a=>n.intersects(a)),this.occupiedBounds=[],this.detectLabelCollision=n=>{const i=this.context.viewport,a={show:[],hide:[]};return this.occupiedBounds=[],n.forEach(o=>{const s=o.getShape("label").getRenderBounds();i.isInViewport(s,!0)&&!this.isOverlapping(s,this.occupiedBounds)?(a.show.push(o),this.occupiedBounds.push(V5(s,this.options.padding))):a.hide.push(o)}),a},this.hideLabelIfExceedViewport=(n,i)=>{const{exit:a}=t5(n,i,o=>o.id);a==null||a.forEach(this.hideLabel)},this.nodeCentralities=new Map,this.sortNodesByCentrality=(n,i)=>{const{model:a}=this.context,o=a.getData(),s=a.getRelatedEdgesData.bind(a);return n.map(u=>(this.nodeCentralities.has(u.id)||(this.nodeCentralities=Aht(o,s,i)),{node:u,centrality:this.nodeCentralities.get(u.id)})).sort((u,c)=>c.centrality-u.centrality).map(u=>u.node)},this.sortLabelElementsInView=n=>{const{sort:i,sortNode:a,sortCombo:o,sortEdge:s}=this.options,{model:l}=this.context;if(xo(i))return n.sort((p,m)=>i(l.getElementDataById(p.id),l.getElementDataById(m.id)));const{node:u=[],edge:c=[],combo:A=[]}=JJ(n,p=>p.type),f=xo(o)?A.sort((p,m)=>o(...l.getComboData([p.id,m.id]))):A,h=xo(a)?u.sort((p,m)=>a(...l.getNodeData([p.id,m.id]))):this.sortNodesByCentrality(u,a),g=xo(s)?c.sort((p,m)=>s(...l.getEdgeData([p.id,m.id]))):c;return[...f,...h,...g]},this.labelElementsInView=[],this.isFirstRender=!0,this.onToggleVisibility=n=>{var i;if(((i=n.data)===null||i===void 0?void 0:i.stage)==="zIndex")return;if(!this.validate(n)){this.hiddenElements.size>0&&(this.hiddenElements.forEach(this.showLabel),this.hiddenElements.clear());return}const a=this.isFirstRender?this.getLabelElements():this.getLabelElementsInView();this.hideLabelIfExceedViewport(this.labelElementsInView,a),this.labelElementsInView=a;const o=this.sortLabelElementsInView(this.labelElementsInView),{show:s,hide:l}=this.detectLabelCollision(o);for(let u=s.length-1;u>=0;u--)this.showLabel(s[u]);l.forEach(this.hideLabel)},this.hiddenElements=new Map,this.hideLabel=n=>{const i=n.getShape("label");i&&_6(i,"hidden"),this.hiddenElements.set(n.id,n)},this.showLabel=n=>{const i=n.getShape("label");i&&_6(i,"visible"),n.toFront(),this.hiddenElements.delete(n.id)},this.onTransform=XAt(this.onToggleVisibility,this.options.throttle,{leading:!0}),this.enableToggle=!0,this.toggle=n=>{this.enableToggle&&this.onToggleVisibility(n)},this.onBeforeRender=()=>{this.enableToggle=!1},this.onAfterRender=n=>{this.onToggleVisibility(n),this.enableToggle=!0},this.bindEvents()}update(t){this.unbindEvents(),super.update(t),this.bindEvents(),this.onToggleVisibility({})}getLabelElements(){const{elementMap:t}=this.context.element,r=[];for(const n in t){const i=t[n];i.isVisible()&&i.getShape("label")&&r.push(i)}return r}getLabelElementsInView(){const t=this.context.viewport;return this.getLabelElements().filter(r=>t.isInViewport(r.getShape("key").getRenderBounds()))}bindEvents(){const{graph:t}=this.context;t.on(Ta.BEFORE_RENDER,this.onBeforeRender),t.on(Ta.AFTER_RENDER,this.onAfterRender),t.on(Ta.AFTER_DRAW,this.toggle),t.on(Ta.AFTER_LAYOUT,this.toggle),t.on(Ta.AFTER_TRANSFORM,this.onTransform)}unbindEvents(){const{graph:t}=this.context;t.off(Ta.BEFORE_RENDER,this.onBeforeRender),t.off(Ta.AFTER_RENDER,this.onAfterRender),t.off(Ta.AFTER_DRAW,this.toggle),t.off(Ta.AFTER_LAYOUT,this.toggle),t.off(Ta.AFTER_TRANSFORM,this.onTransform)}validate(t){if(this.destroyed)return!1;const{enable:r}=this.options;return xo(r)?r(t):!!r}destroy(){this.unbindEvents(),super.destroy()}}nX.defaultOptions={enable:!0,throttle:100,padding:0,sortNode:{type:"degree"}};const rRe=[0,0,0];function cl(e,t){return e.map((r,n)=>r+t[n])}function Oc(e,t){return e.map((r,n)=>r-t[n])}function Gb(e,t){return typeof t=="number"?e.map(r=>r*t):e.map((r,n)=>r*t[n])}function o2(e,t){return typeof t=="number"?e.map(r=>r/t):e.map((r,n)=>r/t[n])}function Vor(e,t){return e.reduce((r,n,i)=>r+n*t[i],0)}function Wor(e,t){const r=sN(e),n=sN(t);return[r[1]*n[2]-r[2]*n[1],r[2]*n[0]-r[0]*n[2],r[0]*n[1]-r[1]*n[0]]}function _3(e,t){return e.map(r=>r*t)}function CA(e,t){return Math.sqrt(e.reduce((r,n,i)=>r+Math.pow(n-t[i]||0,2),0))}function XW(e,t){return e.reduce((r,n,i)=>r+Math.abs(n-t[i]),0)}function OE(e){const t=e.reduce((r,n)=>r+Math.pow(n,2),0);return e.map(r=>r/Math.sqrt(t))}function t3e(e,t,r=!1){const n=e[0]*t[1]-e[1]*t[0];let i=Math.acos(Gb(e,t).reduce((a,o)=>a+o,0)/(CA(e,rRe)*CA(t,rRe)));return r&&n<0&&(i=2*Math.PI-i),i}function iX(e,t=!0){return t?[-e[1],e[0]]:[e[1],-e[0]]}function ase(e,t){return e.map(r=>r%t)}function T6(e){return[e[0],e[1]]}function sN(e){return mor(e)?[e[0],e[1],0]:e}function hht(e){const[t,r]=e;return!t&&!r?0:Math.atan2(r,t)}function dht(e,t){const[r,n]=e,[i,a]=t,o=Oc(r,n),s=Oc(i,a);return Wor(o,s).every(l=>l===0)}function r3e(e,t,r=!1){if(dht(e,t))return;const[n,i]=e,[a,o]=t,s=((n[0]-a[0])*(a[1]-o[1])-(n[1]-a[1])*(a[0]-o[0]))/((n[0]-i[0])*(a[1]-o[1])-(n[1]-i[1])*(a[0]-o[0])),l=o[0]-a[0]?(n[0]-a[0]+s*(i[0]-n[0]))/(o[0]-a[0]):(n[1]-a[1]+s*(i[1]-n[1]))/(o[1]-a[1]);if(!(!r&&(!mC(s,0,1)||!mC(l,0,1))))return[n[0]+s*(i[0]-n[0]),n[1]+s*(i[1]-n[1])]}function ght(e){if(Array.isArray(e))return mC(e[0],0,1)&&mC(e[1],0,1)?e:[.5,.5];const t=e.split("-"),r=t.includes("left")?0:t.includes("right")?1:.5,n=t.includes("top")?0:t.includes("bottom")?1:.5;return[r,n]}function Ld(e){const{x:t=0,y:r=0,z:n=0}=e.style||{};return[+t,+r,+n]}function Yor(e){const{x:t,y:r,z:n}=e.style||{};return t!==void 0||r!==void 0||n!==void 0}function qor(e,t){const[r,n]=t,{min:i,max:a}=e;return[i[0]+r*(a[0]-i[0]),i[1]+n*(a[1]-i[1])]}function yE(e,t="center"){const r=ght(t);return qor(e,r)}function Yg(e){var t;return[e.x,e.y,(t=e.z)!==null&&t!==void 0?t:0]}function $b(e){var t;return{x:e[0],y:e[1],z:(t=e[2])!==null&&t!==void 0?t:0}}function GF(e,t=0){return e.map(r=>parseFloat(r.toFixed(t)))}function r5(e,t,r,n=!1){if(Qf(e,t))return e;const i=n?Oc(e,t):Oc(t,e),a=OE(i),o=[a[0]*r,a[1]*r];return cl(T6(e),o)}function pht(e,t){return e[1]===t[1]}function Jor(e,t){return e[0]===t[0]}function Xor(e,t){return pht(e,t)||Jor(e,t)}function vht(e,t,r){return dht([e,t],[t,r])}function mht(e,t){return[2*t[0]-e[0],2*t[1]-e[1]]}function yht(e,t,r,n=!0,i=!1){for(let a=0;aa!=h>a&&i<(f-c)*(a-A)/(h-A)+c&&(o=!o)}return o}function esr(e,t,r=!1){const n=yE(t,"center"),i=[yE(t,"left-top"),yE(t,"right-top"),yE(t,"right-bottom"),yE(t,"left-bottom")];return yht(e,n,i,!1,r).point}function aX(e,t,r=!1){const n=t.center,i=r?mht(e,n):e,a=Oc(i,t.center),o=Math.atan2(a[1],a[0]);if(isNaN(o))return n;const s=RC(t)/2,l=MC(t)/2,u=n[0]+s*Math.cos(o),c=n[1]+l*Math.sin(o);return[u,c]}function tsr(e,t){let r=1/0,n=[e[0],t[0]];return e.forEach(i=>{t.forEach(a=>{const o=CA(i,a);o{const a=nsr(e,i);a1?c=1:c<0&&(c=0);const A=r+c*l,f=n+c*u;return[A,f]}function isr(e){const t=e.reduce((r,n)=>cl(r,n),[0,0]);return o2(t,e.length)}function n3e(e,t=!0){const r=isr(e);return e.sort(([n,i],[a,o])=>{const s=Math.atan2(i-r[1],n-r[0]),l=Math.atan2(o-r[1],a-r[0]);return t?l-s:s-l})}function nRe(e,t){return[e,[e[0],t[1]],t,[t[0],e[1]]]}class vh{constructor(t,r,n){if(this.phase=r,this.pointerByTouch=[],this.initialDistance=null,this.emitter=t,vh.instance)return vh.callbacks[this.phase].push(n),vh.instance;this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.bindEvents(),vh.instance=this,vh.callbacks[this.phase].push(n)}bindEvents(){const{emitter:t}=this;t.on(Ei.POINTER_DOWN,this.onPointerDown),t.on(Ei.POINTER_MOVE,this.onPointerMove),t.on(Ei.POINTER_UP,this.onPointerUp)}updatePointerPosition(t,r,n){const i=this.pointerByTouch.findIndex(a=>a.pointerId===t);i>=0&&(this.pointerByTouch[i]={x:r,y:n,pointerId:t})}onPointerDown(t){const{x:r,y:n}=t.client||{};if(!(r===void 0||n===void 0)&&(this.pointerByTouch.push({x:r,y:n,pointerId:t.pointerId}),t.pointerType==="touch"&&this.pointerByTouch.length===2)){vh.isPinching=!0;const i=this.pointerByTouch[0].x-this.pointerByTouch[1].x,a=this.pointerByTouch[0].y-this.pointerByTouch[1].y;this.initialDistance=Math.sqrt(i*i+a*a),vh.callbacks.pinchstart.forEach(o=>o(t,{scale:0}))}}onPointerMove(t){if(this.pointerByTouch.length!==2||this.initialDistance===null)return;const{x:r,y:n}=t.client||{};if(r===void 0||n===void 0)return;this.updatePointerPosition(t.pointerId,r,n);const i=this.pointerByTouch[0].x-this.pointerByTouch[1].x,a=this.pointerByTouch[0].y-this.pointerByTouch[1].y,s=Math.sqrt(i*i+a*a)/this.initialDistance;vh.callbacks.pinchmove.forEach(l=>l(t,{scale:(s-1)*5}))}onPointerUp(t){var r;vh.callbacks.pinchend.forEach(n=>n(t,{scale:0})),vh.isPinching=!1,this.initialDistance=null,this.pointerByTouch=[],(r=vh.instance)===null||r===void 0||r.tryDestroy()}destroy(){this.emitter.off(Ei.POINTER_DOWN,this.onPointerDown),this.emitter.off(Ei.POINTER_MOVE,this.onPointerMove),this.emitter.off(Ei.POINTER_UP,this.onPointerUp),vh.instance=null}off(t,r){const n=vh.callbacks[t].indexOf(r);n>-1&&vh.callbacks[t].splice(n,1),this.tryDestroy()}tryDestroy(){Object.values(vh.callbacks).every(t=>t.length===0)&&this.destroy()}}vh.isPinching=!1;vh.instance=null;vh.callbacks={pinchstart:[],pinchmove:[],pinchend:[]};const iRe=e=>e.map(t=>_u(t)?t.toLocaleLowerCase():t);class q7{constructor(t){this.map=new Map,this.boundHandlePinch=()=>{},this.recordKey=new Set,this.onKeyDown=r=>{r!=null&&r.key&&(this.recordKey.add(r.key),this.trigger(r))},this.onKeyUp=r=>{r!=null&&r.key&&this.recordKey.delete(r.key)},this.onWheel=r=>{this.triggerExtendKey(Ei.WHEEL,r)},this.onDrag=r=>{this.triggerExtendKey(Ei.DRAG,r)},this.handlePinch=(r,n)=>{this.triggerExtendKey(Ei.PINCH,Object.assign(Object.assign({},r),n))},this.onFocus=()=>{this.recordKey.clear()},this.emitter=t,this.bindEvents()}bind(t,r){t.length!==0&&(t.includes(Ei.PINCH)&&!this.pinchHandler&&(this.boundHandlePinch=this.handlePinch.bind(this),this.pinchHandler=new vh(this.emitter,"pinchmove",this.boundHandlePinch)),this.map.set(t,r))}unbind(t,r){this.map.forEach((n,i)=>{Qf(i,t)&&(!r||r===n)&&this.map.delete(i)})}unbindAll(){this.map.clear()}match(t){const r=iRe(Array.from(this.recordKey)).sort(),n=iRe(t).sort();return Qf(r,n)}bindEvents(){var t;const{emitter:r}=this;r.on(Ei.KEY_DOWN,this.onKeyDown),r.on(Ei.KEY_UP,this.onKeyUp),r.on(Ei.WHEEL,this.onWheel),r.on(Ei.DRAG,this.onDrag),(t=globalThis.addEventListener)===null||t===void 0||t.call(globalThis,"focus",this.onFocus)}trigger(t){this.map.forEach((r,n)=>{this.match(n)&&r(t)})}triggerExtendKey(t,r){this.map.forEach((n,i)=>{i.includes(t)&&Qf(Array.from(this.recordKey),i.filter(a=>a!==t))&&n(r)})}destroy(){var t,r;this.unbindAll(),this.emitter.off(Ei.KEY_DOWN,this.onKeyDown),this.emitter.off(Ei.KEY_UP,this.onKeyUp),this.emitter.off(Ei.WHEEL,this.onWheel),this.emitter.off(Ei.DRAG,this.onDrag),(t=this.pinchHandler)===null||t===void 0||t.off("pinchmove",this.boundHandlePinch),(r=globalThis.removeEventListener)===null||r===void 0||r.call(globalThis,"blur",this.onFocus)}}class HL extends g1{constructor(t,r){super(t,ip({},HL.defaultOptions,r)),this.shortcut=new q7(t.graph),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.clearStates=this.clearStates.bind(this),this.bindEvents()}onPointerDown(t){if(!this.validate(t)||!this.isKeydown()||this.startPoint)return;const{canvas:r,graph:n}=this.context,i=Object.assign({},this.options.style);this.options.style.lineWidth&&(i.lineWidth=+this.options.style.lineWidth/n.getZoom()),this.rectShape=new op({id:"g6-brush-select",style:i}),r.appendChild(this.rectShape),this.startPoint=[t.canvas.x,t.canvas.y]}onPointerMove(t){var r;if(!this.startPoint)return;const{immediately:n,mode:i}=this.options;this.endPoint=ZW(t),(r=this.rectShape)===null||r===void 0||r.attr({x:Math.min(this.endPoint[0],this.startPoint[0]),y:Math.min(this.endPoint[1],this.startPoint[1]),width:Math.abs(this.endPoint[0]-this.startPoint[0]),height:Math.abs(this.endPoint[1]-this.startPoint[1])}),n&&i==="default"&&this.updateElementsStates(nRe(this.startPoint,this.endPoint))}onPointerUp(t){if(this.startPoint){if(!this.endPoint){this.clearBrush();return}this.endPoint=ZW(t),this.updateElementsStates(nRe(this.startPoint,this.endPoint)),this.clearBrush()}}clearStates(){this.endPoint||this.clearElementsStates()}clearElementsStates(){const{graph:t}=this.context,r=Object.values(t.getData()).reduce((n,i)=>Object.assign({},n,i.reduce((a,o)=>{var s;const l=(s=o.states||[])===null||s===void 0?void 0:s.filter(u=>u!==this.options.state);return a[Gn(o)]=l,a},{})),{});t.setElementState(r,this.options.animation)}updateElementsStates(t){const{graph:r}=this.context,{enableElements:n,state:i,mode:a,onSelect:o}=this.options,s=this.selector(r,t,n);let l={};switch(a){case"union":s.forEach(u=>{l[u]=[...r.getElementState(u),i]});break;case"diff":s.forEach(u=>{const c=r.getElementState(u);l[u]=c.includes(i)?c.filter(A=>A!==i):[...c,i]});break;case"intersect":s.forEach(u=>{const c=r.getElementState(u);l[u]=c.includes(i)?[i]:[]});break;case"default":default:s.forEach(u=>{l[u]=[i]});break}xo(o)&&(l=o(l)),r.setElementState(l,this.options.animation)}selector(t,r,n){if(!n||n.length===0)return[];const i=[],a=t.getData();if(n.forEach(o=>{a[`${o}s`].forEach(s=>{const l=Gn(s);t.getElementVisibility(l)!=="hidden"&&Zor(t.getElementPosition(l),r)&&i.push(l)})}),n.includes("edge")){const o=a.edges;o==null||o.forEach(s=>{const{source:l,target:u}=s;i.includes(l)&&i.includes(u)&&i.push(Gn(s))})}return i}clearBrush(){var t;(t=this.rectShape)===null||t===void 0||t.remove(),this.rectShape=void 0,this.startPoint=void 0,this.endPoint=void 0}isKeydown(){const{trigger:t}=this.options,r=Array.isArray(t)?t:[t];return this.shortcut.match(r.filter(n=>n!=="drag"))}validate(t){if(this.destroyed)return!1;const{enable:r}=this.options;return xo(r)?r(t):!!r}bindEvents(){const{graph:t}=this.context;t.on(Ei.POINTER_DOWN,this.onPointerDown),t.on(Ei.POINTER_MOVE,this.onPointerMove),t.on(Ei.POINTER_UP,this.onPointerUp),t.on(ZE.CLICK,this.clearStates)}unbindEvents(){const{graph:t}=this.context;t.off(Ei.POINTER_DOWN,this.onPointerDown),t.off(Ei.POINTER_MOVE,this.onPointerMove),t.off(Ei.POINTER_UP,this.onPointerUp),t.off(ZE.CLICK,this.clearStates)}update(t){this.unbindEvents(),this.options=ip(this.options,t),this.bindEvents()}destroy(){this.unbindEvents(),super.destroy()}}HL.defaultOptions={animation:!1,enable:!0,enableElements:["node","combo","edge"],immediately:!1,mode:"default",state:"selected",trigger:["shift"],style:{width:0,height:0,lineWidth:1,fill:"#1677FF",stroke:"#1677FF",fillOpacity:.1,zIndex:2,pointerEvents:"none"}};const ZW=e=>[e.canvas.x,e.canvas.y],tB=.8,D6=["node","edge","combo"];function C9(e,t,r,n,i=0){n==="TB"&&t(e,i);const a=r(e);if(a)for(const o of a)C9(o,t,r,n,i+1);n==="BT"&&t(e,i)}function asr(e,t,r){const n=[[e,0]];for(;n.length;){const[i,a]=n.shift();t(i,a);const o=r(i);if(o)for(const s of o)n.push([s,a+1])}}function wht(e,t,r,n,i="both"){if(t==="combo"||t==="node")return ose(e,r,n,i);const a=e.getEdgeData(r);if(!a)return[];const o=ose(e,a.source,n-1,i),s=ose(e,a.target,n-1,i);return Array.from(new Set([...o,...s,r]))}function ose(e,t,r,n="both"){const i=new Set,a=new Set,o=new Set;return asr(t,(s,l)=>{l>r||(o.add(s),e.getRelatedEdgesData(s,n).forEach(u=>{const c=Gn(u);!a.has(c)&&le.getRelatedEdgesData(s,n).map(l=>l.source===s?l.target:l.source).filter(l=>i.has(l)?!1:(i.add(l),!0))),Array.from(o)}function sse(e){return e.states||[]}var jG=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(c){try{u(n.next(c))}catch(A){o(A)}}function l(c){try{u(n.throw(c))}catch(A){o(A)}}function u(c){c.done?a(c.value):i(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};class oX extends g1{constructor(t,r){super(t,Object.assign({},oX.defaultOptions,r)),this.onClickSelect=n=>jG(this,void 0,void 0,function*(){var i,a;this.validate(n)&&(yield this.updateState(n),(a=(i=this.options).onClick)===null||a===void 0||a.call(i,n))}),this.onClickCanvas=n=>jG(this,void 0,void 0,function*(){var i,a;this.validate(n)&&(yield this.clearState(),(a=(i=this.options).onClick)===null||a===void 0||a.call(i,n))}),this.shortcut=new q7(t.graph),this.bindEvents()}bindEvents(){const{graph:t}=this.context;this.unbindEvents(),D6.forEach(r=>{t.on(`${r}:${Ei.CLICK}`,this.onClickSelect)}),t.on(ZE.CLICK,this.onClickCanvas)}get isMultipleSelect(){const{multiple:t,trigger:r}=this.options;return t&&this.shortcut.match(r)}getNeighborIds(t){const{target:r,targetType:n}=t,{graph:i}=this.context,{degree:a}=this.options;return wht(i,n,r.id,typeof a=="function"?a(t):a).filter(o=>o!==r.id)}updateState(t){return jG(this,void 0,void 0,function*(){const{state:r,unselectedState:n,neighborState:i,animation:a}=this.options;if(!r&&!i&&!n)return;const{target:o}=t,{graph:s}=this.context,l=s.getElementData(o.id),u=sse(l).includes(r)?"unselect":"select",c={},A=this.isMultipleSelect,f=[o.id],h=this.getNeighborIds(t);if(A)if(Object.assign(c,this.getDataStates()),u==="select"){const g=(p,m)=>{p.forEach(b=>{const C=new Set(s.getElementState(b));C.add(m),C.delete(n),c[b]=Array.from(C)})};g(f,r),g(h,i),n&&Object.keys(c).forEach(p=>{const m=c[p];!m.includes(r)&&!m.includes(i)&&!m.includes(n)&&c[p].push(n)})}else{const g=c[o.id];c[o.id]=g.filter(p=>p!==r&&p!==i),g.includes(n)||c[o.id].push(n),h.forEach(p=>{c[p]=c[p].filter(m=>m!==i),c[p].includes(r)||c[p].push(n)})}else if(u==="select"){Object.assign(c,this.getClearStates(!!n));const g=(p,m)=>{p.forEach(b=>{c[b]||(c[b]=s.getElementState(b)),c[b].push(m)})};g(f,r),g(h,i),n&&Object.keys(c).forEach(p=>{!f.includes(p)&&!h.includes(p)&&c[p].push(n)})}else Object.assign(c,this.getClearStates());yield s.setElementState(c,a)})}getDataStates(){const{graph:t}=this.context,{nodes:r,edges:n,combos:i}=t.getData(),a={};return[...r,...n,...i].forEach(o=>{a[Gn(o)]=sse(o)}),a}getClearStates(t=!1){const{graph:r}=this.context,{state:n,unselectedState:i,neighborState:a}=this.options,o=new Set([n,i,a]),{nodes:s,edges:l,combos:u}=r.getData(),c={};return[...s,...l,...u].forEach(A=>{const f=sse(A),h=f.filter(g=>!o.has(g));(t||h.length!==f.length)&&(c[Gn(A)]=h)}),c}clearState(){return jG(this,void 0,void 0,function*(){const{graph:t}=this.context;yield t.setElementState(this.getClearStates(),this.options.animation)})}validate(t){if(this.destroyed)return!1;const{enable:r}=this.options;return xo(r)?r(t):!!r}unbindEvents(){const{graph:t}=this.context;D6.forEach(r=>{t.off(`${r}:${Ei.CLICK}`,this.onClickSelect)}),t.off(ZE.CLICK,this.onClickCanvas)}destroy(){this.unbindEvents(),super.destroy()}}oX.defaultOptions={animation:!0,enable:!0,multiple:!1,trigger:["shift"],state:"selected",neighborState:"selected",unselectedState:void 0,degree:0};function Wv(e){var t;return!!(!((t=e.style)===null||t===void 0)&&t.collapsed)}function eY(e,t){if(!e.startsWith(t))return!1;const r=e[t.length];return r>="A"&&r<="Z"}function osr(e,t){return`${t}${PW(e)}`}function ssr(e,t,r=!0){if(!t||!eY(e,t))return e;const n=e.slice(t.length);return r?ker(n):n}function sd(e,t){const r=Object.entries(e).reduce((n,[i,a])=>(i==="className"||i==="class"||eY(i,t)&&Object.assign(n,{[ssr(i,t)]:a}),n),{});if("opacity"in e){const n=osr("opacity",t),i=e.opacity;if(n in e){const a=e[n];Object.assign(r,{opacity:i*a})}else Object.assign(r,{opacity:i})}return r}function qbe(e,t){const r=t.length;return Object.keys(e).reduce((n,i)=>{if(i.startsWith(t)){const a=i.slice(r);n[a]=e[i]}return n},{})}function Cht(e,t){const r=typeof t=="string"?[t]:t,n={};return Object.keys(e).forEach(i=>{r.find(a=>i.startsWith(a))||(n[i]=e[i])}),n}function a1(e=0){if(typeof e=="number")return[e,e,e];const[t,r=t,n=t]=e;return[t,r,n]}var lsr=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);itypeof a=="function"?[i,a.call(n,r)]:[i,a]))}function Eg(e,t){const r=(e==null?void 0:e.style)||{},n=(t==null?void 0:t.style)||{};for(const i in r)i in n||(n[i]=r[i]);return Object.assign({},e,t,{style:n})}function usr(e){return lsr(e,["x","y","z","class","className","transform","transformOrigin","zIndex","visibility"])}function csr(e,t){const r=a1(e);let n={};return t.text&&!t.fontSize&&(n={fontSize:Math.min(...r)*.5}),t.src&&(!t.width||!t.height)&&(n={width:r[0]*.5,height:r[1]*.5}),n}function oRe(e){if(e)return typeof e=="string"||typeof e=="function"||Array.isArray(e)?{type:"group",field:t=>t.id,color:e,invert:!1}:e}function Asr(e,t){if(!t)return{};const{type:r,color:n,field:i,invert:a}=t,o=l=>{const u=typeof n=="string"?eB("palette",n):n;if(typeof u=="function"){const c={};return l.forEach(([A,f])=>{c[A]=u(a?1-f:f)}),c}else if(Array.isArray(u)){const c=a?[...u].reverse():u,A={};return l.forEach(([f,h])=>{A[f]=c[h%u.length]}),A}return{}},s=(l,u)=>{var c;return typeof l=="string"?(c=u.data)===null||c===void 0?void 0:c[l]:l==null?void 0:l(u)};if(r==="group"){const l=JJ(e,f=>{if(!i)return"default";const h=s(i,f);return h?String(h):"default"}),u=Object.keys(l),c=o(u.map((f,h)=>[f,h])),A={};return Object.entries(l).forEach(([f,h])=>{h.forEach(g=>{A[Gn(g)]=c[f]})}),A}else if(r==="value"){const[l,u]=e.reduce(([A,f],h)=>{const g=s(i,h);if(typeof g!="number")throw new Error(SE(`Palette field ${i} is not a number`));return[Math.min(A,g),Math.max(f,g)]},[1/0,-1/0]),c=u-l;return o(e.map(A=>[A.id,(s(i,A)-l)/c]))}}function Iht(e){const t=typeof e=="string"?eB("palette",e):e;if(typeof t!="function")return t}function Eht(e,t){let r=2*e;return typeof t=="string"?r=e*Number(t.replace("%",""))/100:typeof t=="number"&&(r=t),isNaN(r)&&(r=2*e),r}function Bht(e,t,r=1,n=!1){const i=n?r:1,a=(e.max[0]-e.min[0])*i;return Eht(a,t)}function fsr(e,t,r=1){const n=CA(e[0],e[1])*r;return Eht(n,t)}class jL extends Kxe{constructor(t){sRe(t.style),super(t),this.shapeMap={},this.animateMap={},this.render(this.attributes,this),this.setVisibility(),this.bindEvents()}get parsedAttributes(){return this.attributes}upsert(t,r,n,i,a){var o,s,l,u,c,A,f,h;const g=this.shapeMap[t];if(n===!1){g&&((o=a==null?void 0:a.beforeDestroy)===null||o===void 0||o.call(a,g),i.removeChild(g),delete this.shapeMap[t],(s=a==null?void 0:a.afterDestroy)===null||s===void 0||s.call(a,g));return}const p=typeof r=="string"?eB(aN.SHAPE,r):r;if(!p)throw new Error(SE(`Shape ${r} not found`));if(!g||g.destroyed||!(g instanceof p)){g&&((l=a==null?void 0:a.beforeDestroy)===null||l===void 0||l.call(a,g),g==null||g.destroy(),(u=a==null?void 0:a.afterDestroy)===null||u===void 0||u.call(a,g)),(c=a==null?void 0:a.beforeCreate)===null||c===void 0||c.call(a);const m=new p({className:t,style:n});return i.appendChild(m),this.shapeMap[t]=m,(A=a==null?void 0:a.afterCreate)===null||A===void 0||A.call(a,m),m}return(f=a==null?void 0:a.beforeUpdate)===null||f===void 0||f.call(a,g),i2e(g,n),(h=a==null?void 0:a.afterUpdate)===null||h===void 0||h.call(a,g),g}update(t={}){const r=Object.assign({},this.attributes,t);sRe(r),our(this,r),this.render(r,this),this.setVisibility()}bindEvents(){}getGraphicStyle(t){return usr(t)}get compositeShapes(){return[["badges","badge-"],["ports","port-"]]}animate(t,r){if(t.length===0)return null;const n=[];if(t[0].x!==void 0||t[0].y!==void 0||t[0].z!==void 0){const{x:a=0,y:o=0,z:s=0}=this.attributes;t.forEach(l=>{const{x:u=a,y:c=o,z:A=s}=l;Object.assign(l,{transform:A?[["translate3d",u,c,A]]:[["translate",u,c]]})})}const i=super.animate(t,r);if(i&&(lse(this,i),n.push(i)),Array.isArray(t)&&t.length>0){const a=["transform","transformOrigin","x","y","z","zIndex"];if(Object.keys(t[0]).some(o=>!a.includes(o))){Object.entries(this.shapeMap).forEach(([s,l])=>{const u=`get${PW(s)}Style`,c=this[u];if(xo(c)){const A=t.map(h=>c.call(this,Object.assign(Object.assign({},this.attributes),h))),f=l.animate(Ybe(A),r);f&&(lse(l,f),n.push(f))}});const o=(s,l)=>{if(!Uw(s)){const u=`get${PW(l)}Style`,c=this[u];if(xo(c)){const A=t.map(f=>c.call(this,Object.assign(Object.assign({},this.attributes),f)));Object.entries(A[0]).map(([f])=>{const h=A.map(p=>p[f]),g=s[f];if(g){const p=g.animate(Ybe(h),r);p&&(lse(g,p),n.push(p))}})}}};this.compositeShapes.forEach(([s,l])=>{const u=qbe(this.shapeMap,l);o(u,s)})}}return qxe(n)}getShape(t){return this.shapeMap[t]}setVisibility(){const{visibility:t}=this.attributes;_6(this,t)}destroy(){this.shapeMap={},this.animateMap={},super.destroy()}}function lse(e,t){t==null||t.finished.then(()=>{const r=e.activeAnimations.findIndex(n=>n===t);r>-1&&e.activeAnimations.splice(r,1)})}function sRe(e){if(!e)return{};if("x"in e||"y"in e||"z"in e){const{x:t=0,y:r=0,z:n,transform:i}=e,a=tht(t,r,n,i);a&&(e.transform=a)}return e}var hsr=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{r.push([i===0?"M":"L",...n])}),t&&r.push(["Z"]),r}const lRe={M:["x","y"],m:["dx","dy"],H:["x"],h:["dx"],V:["y"],v:["dy"],L:["x","y"],l:["dx","dy"],Z:[],z:[],C:["x1","y1","x2","y2","x","y"],c:["dx1","dy1","dx2","dy2","dx","dy"],S:["x2","y2","x","y"],s:["dx2","dy2","dx","dy"],Q:["x1","y1","x","y"],q:["dx1","dy1","dx","dy"],T:["x","y"],t:["dx","dy"],A:["rx","ry","rotation","large-arc","sweep","x","y"],a:["rx","ry","rotation","large-arc","sweep","dx","dy"]};function gsr(e){const t=e.replace(/[\n\r]/g,"").replace(/-/g," -").replace(/(\d*\.)(\d+)(?=\.)/g,"$1$2 ").trim().split(/\s*,|\s+/),r=[];let n="",i={};for(;t.length>0;){let a=t.shift();a in lRe?n=a:t.unshift(a),i={type:n},lRe[n].forEach(l=>{a=t.shift(),i[l]=a}),n==="M"?n="L":n==="m"&&(n="l");const[o,...s]=Object.values(i);r.push([o,...s.map(Number)])}return r}function psr(e){const t=[];return(typeof e=="string"?gsr(e):e).forEach(n=>{const i=n[0];if(i==="Z"){t.push(t[0]);return}if(i!=="A")for(let a=1;a{if(e.length<2)return[["M",0,0],["L",0,0]];const t=e[0],r=e[1],n=e[e.length-1],i=e[e.length-2];e.unshift(i,n),e.push(t,r);const a=[["M",n[0],n[1]]];for(let o=1;o{const m=g,b=c[(p+1)%c.length];return Qf(m,b)?null:[m,b]}).filter(Boolean),f=rsr([s,l],A),h=bht([s,l],f);if(h&&f&&(u.transform=[["translate",h[0]+r,h[1]+n]],o)){const g=Math.atan((f[0][1]-f[1][1])/(f[0][0]-f[1][0]));u.transform.push(["rotate",g/Math.PI*180]),u.textAlign="center",(t==="right"||t==="left")&&(g>0?u.textBaseline=t==="right"?"bottom":"top":u.textBaseline=t==="right"?"top":"bottom")}return u}var msr=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{n!=null&&n.children.length&&n.children.forEach(i=>{t.push(i),r(i)})};return r(e),t}function bsr(e){const t=[];let r=e.parentNode;for(;r;)t.push(r),r=r.parentNode;return t}let i3e=class extends PL{constructor(t){super(t),this.onMounted=()=>{this.handleRadius()},this.onAttrModified=()=>{this.handleRadius()},O8=this,this.isMutationObserved=!0,this.addEventListener(Gl.MOUNTED,this.onMounted),this.addEventListener(Gl.ATTR_MODIFIED,this.onAttrModified)}handleRadius(){const{radius:t,clipPath:r,width:n=0,height:i=0}=this.attributes;if(t&&n&&i){const[a,o]=this.getBounds().min,s={x:a,y:o,radius:t,width:n,height:i};if(r)Object.assign(this.parsedStyle.clipPath.style,s);else{const l=new op({style:s});this.style.clipPath=l}}else r&&(this.style.clipPath=null)}};const Jbe=new WeakMap;let O8=null;const a3e=e=>{if(O8&&bsr(O8).includes(e)){const t=Jbe.get(e);t?t.includes(O8)||t.push(O8):Jbe.set(e,[O8])}},o3e=e=>{const t=Jbe.get(e);t&&t.forEach(r=>r.handleRadius())};class Sht extends jL{constructor(t){super(t)}isImage(){const{src:t}=this.attributes;return!!t}getIconStyle(t=this.attributes){const{width:r=0,height:n=0}=t,i=this.getGraphicStyle(t);return this.isImage()?Object.assign({x:-r/2,y:-n/2},i):Object.assign({textBaseline:"middle",textAlign:"center"},i)}render(t=this.attributes,r=this){this.upsert("icon",this.isImage()?i3e:sQ,this.getIconStyle(t),r)}}class kht extends jL{get context(){return this.config.context}get parsedAttributes(){return this.attributes}onframe(){}animate(t,r){const n=super.animate(t,r);return n&&(n.onframe=()=>this.onframe(),n.finished.then(()=>this.onframe())),n}}var GG=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{i[A]=!1}),t.badge===!1||!(!((r=t.badges)===null||r===void 0)&&r.length))return i;const{badges:a=[],badgePalette:o,opacity:s=1}=t,l=GG(t,["badges","badgePalette","opacity"]),u=Iht(o),c=sd(this.getGraphicStyle(l),"badge");return a.forEach((A,f)=>{i[f]=Object.assign(Object.assign({backgroundFill:u?u[f%(u==null?void 0:u.length)]:void 0,opacity:s},c),this.getBadgeStyle(A))}),i}getBadgeStyle(t){const r=this.getShape("key"),{placement:n="top",offsetX:i,offsetY:a}=t,o=GG(t,["placement","offsetX","offsetY"]),s=ERe(r.getLocalBounds(),n,i,a,!0);return Object.assign(Object.assign({},s),o)}getPortsStyle(t){var r;const n=this.getPorts(),i={};if(Object.keys(n).forEach(s=>{i[s]=!1}),t.port===!1||!(!((r=t.ports)===null||r===void 0)&&r.length))return i;const a=sd(this.getGraphicStyle(t),"port"),{ports:o=[]}=t;return o.forEach((s,l)=>{const u=s.key||l,c=Object.assign(Object.assign({},a),s);if(tdt(c))i[u]=!1;else{const[A,f]=this.getPortXY(t,s);i[u]=Object.assign({transform:[["translate",A,f]]},c)}}),i}getPortXY(t,r){const{placement:n="left"}=r,i=this.getShape("key");return A3e(wsr(this.context,i),n)}getPorts(){return qbe(this.shapeMap,"port-")}getCenter(){return this.getShape("key").getBounds().center}getIntersectPoint(t,r=!1){const n=this.getShape("key").getBounds();return esr(t,n,r)}drawHaloShape(t,r){const n=this.getHaloStyle(t),i=this.getShape("key");this.upsert("halo",i.constructor,n,r)}drawIconShape(t,r){const n=this.getIconStyle(t);this.upsert("icon",Sht,n,r),a3e(this)}drawBadgeShapes(t,r){const n=this.getBadgesStyle(t);Object.keys(n).forEach(i=>{const a=n[i];this.upsert(`badge-${i}`,J7,a,r)})}drawPortShapes(t,r){const n=this.getPortsStyle(t);Object.keys(n).forEach(i=>{const a=n[i],o=`port-${i}`;this.upsert(o,IB,a,r)})}drawLabelShape(t,r){const n=this.getLabelStyle(t);this.upsert("label",W5,n,r)}_drawKeyShape(t,r){return this.drawKeyShape(t,r)}render(t=this.parsedAttributes,r=this){this._drawKeyShape(t,r),this.getShape("key")&&(this.drawHaloShape(t,r),this.drawIconShape(t,r),this.drawBadgeShapes(t,r),this.drawLabelShape(t,r),this.drawPortShapes(t,r))}update(t){super.update(t),t&&("x"in t||"y"in t||"z"in t)&&o3e(this)}onframe(){this.drawBadgeShapes(this.parsedAttributes,this),this.drawLabelShape(this.parsedAttributes,this)}}d2.defaultStyleProps={x:0,y:0,size:32,droppable:!0,draggable:!0,port:!0,ports:[],portZIndex:2,portLinkToCenter:!1,badge:!0,badges:[],badgeZIndex:3,halo:!1,haloDroppable:!1,haloLineDash:0,haloLineWidth:12,haloStrokeOpacity:.25,haloPointerEvents:"none",haloZIndex:-1,icon:!0,iconZIndex:1,label:!0,labelIsBillboard:!0,labelMaxWidth:"200%",labelPlacement:"bottom",labelWordWrap:!1,labelZIndex:0};function wsr(e,t){if(!e)return t.getLocalBounds();const r=e.canvas.getLayer(),n=t.cloneNode();_6(n,"hidden"),r.appendChild(n);const i=n.getLocalBounds();return n.destroy(),i}let $L=class Qht extends d2{constructor(t){super(Eg({style:Qht.defaultStyleProps},t))}drawKeyShape(t,r){return this.upsert("key",IB,this.getKeyStyle(t),r)}getKeyStyle(t){const r=super.getKeyStyle(t);return Object.assign(Object.assign({},r),{r:Math.min(...this.getSize(t))/2})}getIconStyle(t){const r=super.getIconStyle(t),{r:n}=this.getShape("key").attributes,i=n*2*tB;return r?Object.assign({width:i,height:i},r):!1}getIntersectPoint(t,r=!1){const n=this.getShape("key").getBounds();return aX(t,n,r)}};$L.defaultStyleProps={size:32};let sX=class extends d2{constructor(t){super(t)}get parsedAttributes(){return this.attributes}drawKeyShape(t,r){return this.upsert("key",oQ,this.getKeyStyle(t),r)}getKeyStyle(t){const r=super.getKeyStyle(t);return Object.assign(Object.assign({},r),{points:this.getPoints(t)})}getIntersectPoint(t,r=!1){var n,i;const{points:a}=this.getShape("key").attributes,o=[+(((n=this.attributes)===null||n===void 0?void 0:n.x)||0),+(((i=this.attributes)===null||i===void 0?void 0:i.y)||0)];return yht(t,o,a,!0,r).point}},Csr=class extends sX{constructor(t){super(t)}getPoints(t){const[r,n]=this.getSize(t);return aur(r,n)}};var Isr=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);igo(A)?{value:A}:A),a=sd(this.getGraphicStyle(t),"donut"),o=Iht(t.donutPalette);if(!o)return;const s=i.reduce((A,f)=>{var h;return A+((h=f.value)!==null&&h!==void 0?h:0)},0),l=this.parseOuterR(),u=this.parseInnerR();let c=0;i.forEach((A,f)=>{const{value:h=0,color:g=o[f%o.length]}=A,p=Isr(A,["value","color"]),m=(s===0?1/i.length:h/s)*360;this.upsert(`round${f}`,Jm,Object.assign(Object.assign(Object.assign({},a),{d:xsr(l,u,c,c+m),fill:g}),p),r),c+=m})}render(t,r=this){super.render(t,r),this.drawDonutShape(t,r)}}lX.defaultStyleProps={innerR:"50%",donuts:[],donutPalette:"tableau"};const $G=(e,t,r,n)=>[e+Math.sin(n)*r,t-Math.cos(n)*r],Esr=(e,t,r,n)=>n<=0||r<=n?[["M",e-r,t],["A",r,r,0,1,1,e+r,t],["A",r,r,0,1,1,e-r,t],["Z"]]:[["M",e-r,t],["A",r,r,0,1,1,e+r,t],["A",r,r,0,1,1,e-r,t],["Z"],["M",e+n,t],["A",n,n,0,1,0,e-n,t],["A",n,n,0,1,0,e+n,t],["Z"]],Bsr=(e,t,r,n,i,a)=>{const[o,s]=[i/360*2*Math.PI,a/360*2*Math.PI],l=[$G(e,t,n,o),$G(e,t,r,o),$G(e,t,r,s),$G(e,t,n,s)],u=s-o>Math.PI?1:0;return[["M",l[0][0],l[0][1]],["L",l[1][0],l[1][1]],["A",r,r,0,u,1,l[2][0],l[2][1]],["L",l[3][0],l[3][1]],["A",n,n,0,u,0,l[0][0],l[0][1]],["Z"]]},xsr=(e=0,t=0,r,n)=>{const[i,a]=[0,0];return Math.abs(r-n)%360<1e-6?Esr(i,a,e,t):Bsr(i,a,e,t,r,n)};let _ht=class Tht extends d2{constructor(t){super(Eg({style:Tht.defaultStyleProps},t))}drawKeyShape(t,r){return this.upsert("key",NL,this.getKeyStyle(t),r)}getKeyStyle(t){const r=super.getKeyStyle(t),[n,i]=this.getSize(t);return Object.assign(Object.assign({},r),{rx:n/2,ry:i/2})}getIconStyle(t){const r=super.getIconStyle(t),{rx:n,ry:i}=this.getShape("key").attributes,a=Math.min(+n,+i)*2*tB;return r?Object.assign({width:a,height:a},r):!1}getIntersectPoint(t,r=!1){const n=this.getShape("key").getBounds();return aX(t,n,r)}};_ht.defaultStyleProps={size:[45,35]};class Ssr extends sX{constructor(t){super(t)}getOuterR(t){return t.outerR||Math.min(...this.getSize(t))/2}getPoints(t){return sur(this.getOuterR(t))}getIconStyle(t){const r=super.getIconStyle(t),n=this.getOuterR(t)*tB;return r?Object.assign({width:n,height:n},r):!1}}/*! * @antv/g-plugin-canvas-path-generator * @description A G plugin of path generator with Canvas2D API * @version 2.1.22 * @date 7/30/2025, 1:35:25 PM * @author AntVis * @docs https://g.antv.antgroup.com/ */function ksr(e,t){var r=t.cx,n=r===void 0?0:r,i=t.cy,a=i===void 0?0:i,o=t.r;e.arc(n,a,o,0,Math.PI*2,!1)}function Qsr(e,t){var r=t.cx,n=r===void 0?0:r,i=t.cy,a=i===void 0?0:i,o=t.rx,s=t.ry;if(e.ellipse)e.ellipse(n,a,o,s,0,0,Math.PI*2,!1);else{var l=o>s?o:s,u=o>s?1:o/s,c=o>s?s/o:1;e.save(),e.scale(u,c),e.arc(n,a,l,0,Math.PI*2)}}function _sr(e,t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2,o=t.markerStart,s=t.markerEnd,l=t.markerStartOffset,u=t.markerEndOffset,c=0,A=0,f=0,h=0,g=0,p,m;o&&Uu(o)&&l&&(p=i-r,m=a-n,g=Math.atan2(m,p),c=Math.cos(g)*(l||0),A=Math.sin(g)*(l||0)),s&&Uu(s)&&u&&(p=r-i,m=n-a,g=Math.atan2(m,p),f=Math.cos(g)*(u||0),h=Math.sin(g)*(u||0)),e.moveTo(r+c,n+A),e.lineTo(i+f,a+h)}function Tsr(e,t){var r=t.markerStart,n=t.markerEnd,i=t.markerStartOffset,a=t.markerEndOffset,o=t.d,s=o.absolutePath,l=o.segments,u=0,c=0,A=0,f=0,h=0,g,p;if(r&&Uu(r)&&i){var m=r.parentNode.getStartTangent(),b=gl(m,2),C=b[0],E=b[1];g=C[0]-E[0],p=C[1]-E[1],h=Math.atan2(p,g),u=Math.cos(h)*(i||0),c=Math.sin(h)*(i||0)}if(n&&Uu(n)&&a){var _=n.parentNode.getEndTangent(),F=gl(_,2),M=F[0],N=F[1];g=M[0]-N[0],p=M[1]-N[1],h=Math.atan2(p,g),A=Math.cos(h)*(a||0),f=Math.sin(h)*(a||0)}for(var P=0;PYe?je:Ye,ft=je>Ye?1:je/Ye,st=je>Ye?Ye/je:1;e.translate(Ke,Pe),e.rotate(et),e.scale(ft,st),e.arc(0,0,tt,me,Se,!!(1-nt)),e.scale(1/ft,1/st),e.rotate(-et),e.translate(-Ke,-Pe)}ee&&e.lineTo(j[6]+A,j[7]+f);break}case"Z":e.closePath();break}}}function Dsr(e,t){var r=t.markerStart,n=t.markerEnd,i=t.markerStartOffset,a=t.markerEndOffset,o=t.points.points,s=o.length,l=o[0][0],u=o[0][1],c=o[s-1][0],A=o[s-1][1],f=0,h=0,g=0,p=0,m=0,b,C;r&&Uu(r)&&i&&(b=o[1][0]-o[0][0],C=o[1][1]-o[0][1],m=Math.atan2(C,b),f=Math.cos(m)*(i||0),h=Math.sin(m)*(i||0)),n&&Uu(n)&&a&&(b=o[s-1][0]-o[0][0],C=o[s-1][1]-o[0][1],m=Math.atan2(C,b),g=Math.cos(m)*(a||0),p=Math.sin(m)*(a||0)),e.moveTo(l+(f||g),u+(h||p));for(var E=1;E0?1:-1,h=l>0?1:-1,g=f+h===0,p=o.map(function(F){return Sf(F,0,Math.min(Math.abs(u)/2,Math.abs(c)/2))}),m=gl(p,4),b=m[0],C=m[1],E=m[2],_=m[3];e.moveTo(f*b+n,a),e.lineTo(u-f*C+n,a),C!==0&&e.arc(u-f*C+n,h*C+a,C,-h*Math.PI/2,f>0?0:Math.PI,g),e.lineTo(u+n,c-h*E+a),E!==0&&e.arc(u-f*E+n,c-h*E+a,E,f>0?0:Math.PI,h>0?Math.PI/2:1.5*Math.PI,g),e.lineTo(f*_+n,c+a),_!==0&&e.arc(f*_+n,c-h*_+a,_,h>0?Math.PI/2:-Math.PI/2,f>0?Math.PI:0,g),e.lineTo(n,h*b+a),b!==0&&e.arc(f*b+n,h*b+a,b,f>0?Math.PI:0,h>0?Math.PI*1.5:Math.PI/2,g)}}var Msr=function(e){function t(){var r;aa(this,t);for(var n=arguments.length,i=new Array(n),a=0;a=l-b&&C<=l+b:!1}function zG(e,t,r,n){return e/(r*r)+t/(n*n)}function Hsr(e,t,r){var n=e.parsedStyle,i=n.cx,a=i===void 0?0:i,o=n.cy,s=o===void 0?0:o,l=n.rx,u=n.ry,c=n.fill,A=n.stroke,f=n.lineWidth,h=f===void 0?1:f,g=n.increasedLineWidthForHitTesting,p=g===void 0?0:g,m=n.pointerEvents,b=m===void 0?"auto":m,C=t.x,E=t.y,_=aQ(b,c,A),F=gl(_,2),M=F[0],N=F[1],P=(h+p)/2,j=(C-a)*(C-a),z=(E-s)*(E-s);return M&&N||r?zG(j,z,l+P,u+P)<=1:M?zG(j,z,l,u)<=1:N?zG(j,z,l-P,u-P)>=1&&zG(j,z,l+P,u+P)<=1:!1}function Ik(e,t,r,n,i,a){return i>=e&&i<=e+r&&a>=t&&a<=t+n}function jsr(e,t,r,n,i,a,o){var s=i/2;return Ik(e-s,t-s,r,i,a,o)||Ik(e+r-s,t-s,i,n,a,o)||Ik(e+s,t+n-s,r,i,a,o)||Ik(e-s,t+s,i,n,a,o)}function KG(e,t,r,n,i,a,o,s){var l=(Math.atan2(s-t,o-e)+Math.PI*2)%(Math.PI*2),u={x:e+r*Math.cos(l),y:t+r*Math.sin(l)};return ME(u.x,u.y,o,s)<=a/2}function T3(e,t,r,n,i,a,o){var s=Math.min(e,r),l=Math.max(e,r),u=Math.min(t,n),c=Math.max(t,n),A=i/2;return a>=s-A&&a<=l+A&&o>=u-A&&o<=c+A?ktr(e,t,r,n,a,o)<=i/2:!1}function Fht(e,t,r,n,i){var a=e.length;if(a<2)return!1;for(var o=0;o0!=use(s[1]-r)>0&&use(t-(r-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(n=!n)}return n}function uRe(e,t,r){for(var n=!1,i=0;i=i.min[0]&&t.y>=i.min[1]&&t.x<=i.max[0]&&t.y<=i.max[1]}var elr=function(e){function t(){var r;aa(this,t);for(var n=arguments.length,i=new Array(n),a=0;a0&&arguments[0]!==void 0?arguments[0]:e.api;e.rafId&&(r.cancelAnimationFrame(e.rafId),e.rafId=null)}},{key:"executeTask",value:function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:e.api;cse.length<=0&&Ase.length<=0||(Ase.forEach(function(n){return n()}),Ase=cse.splice(0,e.TASK_NUM_PER_FRAME),e.rafId=r.requestAnimationFrame(function(){e.executeTask(r)}))}},{key:"sliceImage",value:function(r,n,i,a){for(var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:e.api,l=r.naturalWidth||r.width,u=r.naturalHeight||r.height,c=n-o,A=i-o,f=Math.ceil(l/c),h=Math.ceil(u/A),g={tileSize:[n,i],gridSize:[h,f],tiles:Array(h).fill(null).map(function(){return Array(f).fill(null)})},p=function(C){for(var E=function(M){cse.push(function(){var N=M*c,P=C*A,j=[Math.min(n,l-N),Math.min(i,u-P)],z=j[0],W=j[1],Y=s.createCanvas();Y.width=n,Y.height=i;var ee=Y.getContext("2d");ee.drawImage(r,N,P,z,W,0,0,z,W),g.tiles[C][M]={x:N,y:P,tileX:M,tileY:C,data:Y},a()})},_=0;_z&&ae>W,F&&(typeof F.resetTransform=="function"?F.resetTransform():F.setTransform(1,0,0,1,0,0),i.clearFullScreen&&i.clearRect(F,0,0,N*M,P*M,o.background))},C=function(_,F){for(var M=[_];M.length>0;){var N,P=M.pop();P.isVisible()&&!P.isCulled()&&(f?i.renderDisplayObjectOptimized(P,F,i.context,pw(i,hh)[hh],n):i.renderDisplayObject(P,F,i.context,pw(i,hh)[hh],n));for(var j=((N=P.sortable)===null||N===void 0||(N=N.sorted)===null||N===void 0?void 0:N.length)>0?P.sortable.sorted:P.childNodes,z=j.length-1;z>=0;z--)M.push(j[z])}};l.hooks.endFrame.tap(e.tag,function(){if(b(),u.root.childNodes.length===0){i.clearFullScreenLastFrame=!0;return}f=o.renderer.getConfig().enableRenderingOptimization,pw(i,hh)[hh]={restoreStack:[],prevObject:null,currentContext:pw(i,hh)[hh].currentContext},pw(i,hh)[hh].currentContext.clear(),i.clearFullScreenLastFrame=!1;var E=h.getContext(),_=h.getDPR();if(uk(i.dprMatrix,[_,_,1]),i0(i.vpMatrix,i.dprMatrix,s.getOrthoMatrix()),i.clearFullScreen)f?(E.save(),C(u.root,E),E.restore()):C(u.root,E),i.removedRBushNodeAABBs=[];else{var F=i.safeMergeAABB.apply(i,[i.mergeDirtyAABBs(i.renderQueue)].concat(ou(i.removedRBushNodeAABBs.map(function(Ye){var me=Ye.minX,Se=Ye.minY,et=Ye.maxX,nt=Ye.maxY,tt=new nA;return tt.setMinMax([me,Se,0],[et,nt,0]),tt}))));if(i.removedRBushNodeAABBs=[],nA.isEmpty(F)){i.renderQueue=[];return}var M=i.convertAABB2Rect(F),N=M.x,P=M.y,j=M.width,z=M.height,W=a0(i.vec3a,[N,P,0],i.vpMatrix),Y=a0(i.vec3b,[N+j,P,0],i.vpMatrix),ee=a0(i.vec3c,[N,P+z,0],i.vpMatrix),q=a0(i.vec3d,[N+j,P+z,0],i.vpMatrix),ae=Math.min(W[0],Y[0],q[0],ee[0]),se=Math.min(W[1],Y[1],q[1],ee[1]),de=Math.max(W[0],Y[0],q[0],ee[0]),Ae=Math.max(W[1],Y[1],q[1],ee[1]),be=Math.floor(ae),Le=Math.floor(se),Ne=Math.ceil(de-ae),ue=Math.ceil(Ae-se);E.save(),i.clearRect(E,be,Le,Ne,ue,o.background),E.beginPath(),E.rect(be,Le,Ne,ue),E.clip(),E.setTransform(i.vpMatrix[0],i.vpMatrix[1],i.vpMatrix[4],i.vpMatrix[5],i.vpMatrix[12],i.vpMatrix[13]);var Ke=o.renderer.getConfig(),Pe=Ke.enableDirtyRectangleRenderingDebug;Pe&&g.dispatchEvent(new nd(Km.DIRTY_RECTANGLE,{dirtyRect:{x:be,y:Le,width:Ne,height:ue}}));var je=i.searchDirtyObjects(F);je.sort(function(Ye,me){return Ye.sortable.renderOrder-me.sortable.renderOrder}).forEach(function(Ye){Ye&&Ye.isVisible()&&!Ye.isCulled()&&i.renderDisplayObject(Ye,E,i.context,pw(i,hh)[hh],n)}),E.restore(),i.renderQueue.forEach(function(Ye){i.saveDirtyAABB(Ye)}),i.renderQueue=[]}pw(i,hh)[hh].restoreStack.forEach(function(){E.restore()}),pw(i,hh)[hh].restoreStack=[]}),l.hooks.render.tap(e.tag,function(E){i.clearFullScreen||i.renderQueue.push(E)})}},{key:"clearRect",value:function(r,n,i,a,o,s){r.clearRect(n,i,a,o),s&&(r.fillStyle=s,r.fillRect(n,i,a,o))}},{key:"renderDisplayObjectOptimized",value:function(r,n,i,a,o){var s=r.nodeName,l=!1,u=!1,c=this.context.styleRendererFactory[s],A=this.pathGeneratorFactory[s],f=r.parsedStyle.clipPath;if(f){l=!a.prevObject||!Cbe(f.getWorldTransform(),a.prevObject.getWorldTransform()),l&&(this.applyWorldTransform(n,f),a.prevObject=null);var h=this.pathGeneratorFactory[f.nodeName];h&&(n.save(),u=!0,n.beginPath(),h(n,f.parsedStyle),n.closePath(),n.clip())}if(c){l=!a.prevObject||!Cbe(r.getWorldTransform(),a.prevObject.getWorldTransform()),l&&this.applyWorldTransform(n,r);var g=!a.prevObject;if(!g){var p=a.prevObject.nodeName;s===Ci.TEXT?g=p!==Ci.TEXT:s===Ci.IMAGE?g=p!==Ci.IMAGE:g=p===Ci.TEXT||p===Ci.IMAGE}c.applyStyleToContext(n,r,g,a),a.prevObject=r}A&&(n.beginPath(),A(n,r.parsedStyle),s!==Ci.LINE&&s!==Ci.PATH&&s!==Ci.POLYLINE&&n.closePath()),c&&c.drawToContext(n,r,pw(this,hh)[hh],this,o),u&&n.restore(),r.dirty(!1)}},{key:"renderDisplayObject",value:function(r,n,i,a,o){var s=r.nodeName,l=a.restoreStack[a.restoreStack.length-1];l&&!(r.compareDocumentPosition(l)&af.DOCUMENT_POSITION_CONTAINS)&&(n.restore(),a.restoreStack.pop());var u=this.context.styleRendererFactory[s],c=this.pathGeneratorFactory[s],A=r.parsedStyle.clipPath;if(A){this.applyWorldTransform(n,A);var f=this.pathGeneratorFactory[A.nodeName];f&&(n.save(),a.restoreStack.push(r),n.beginPath(),f(n,A.parsedStyle),n.closePath(),n.clip())}u&&(this.applyWorldTransform(n,r),n.save(),this.applyAttributesToContext(n,r)),c&&(n.beginPath(),c(n,r.parsedStyle),s!==Ci.LINE&&s!==Ci.PATH&&s!==Ci.POLYLINE&&n.closePath()),u&&(u.render(n,r.parsedStyle,r,i,this,o),n.restore()),r.dirty(!1)}},{key:"applyAttributesToContext",value:function(r,n){var i=n.parsedStyle,a=i.stroke,o=i.fill,s=i.opacity,l=i.lineDash,u=i.lineDashOffset;l&&r.setLineDash(l),ds(u)||(r.lineDashOffset=u),ds(s)||(r.globalAlpha*=s),!ds(a)&&!Array.isArray(a)&&!a.isNone&&(r.strokeStyle=n.attributes.stroke),!ds(o)&&!Array.isArray(o)&&!o.isNone&&(r.fillStyle=n.attributes.fill)}},{key:"convertAABB2Rect",value:function(r){var n=r.getMin(),i=r.getMax(),a=Math.floor(n[0]),o=Math.floor(n[1]),s=Math.ceil(i[0]),l=Math.ceil(i[1]),u=s-a,c=l-o;return{x:a,y:o,width:u,height:c}}},{key:"mergeDirtyAABBs",value:function(r){var n=new nA;return r.forEach(function(i){var a=i.getRenderBounds();n.add(a);var o=i.renderable.dirtyRenderBounds;o&&n.add(o)}),n}},{key:"searchDirtyObjects",value:function(r){var n=r.getMin(),i=gl(n,2),a=i[0],o=i[1],s=r.getMax(),l=gl(s,2),u=l[0],c=l[1],A=this.rBush.search({minX:a,minY:o,maxX:u,maxY:c});return A.map(function(f){var h=f.displayObject;return h})}},{key:"saveDirtyAABB",value:function(r){var n=r.renderable;n.dirtyRenderBounds||(n.dirtyRenderBounds=new nA);var i=r.getRenderBounds();i&&n.dirtyRenderBounds.update(i.center,i.halfExtents)}},{key:"applyWorldTransform",value:function(r,n,i){i?(e7(this.tmpMat4,n.getLocalTransform()),i0(this.tmpMat4,i,this.tmpMat4),i0(this.tmpMat4,this.vpMatrix,this.tmpMat4)):(e7(this.tmpMat4,n.getWorldTransform()),i0(this.tmpMat4,this.vpMatrix,this.tmpMat4)),r.setTransform(this.tmpMat4[0],this.tmpMat4[1],this.tmpMat4[4],this.tmpMat4[5],this.tmpMat4[12],this.tmpMat4[13])}},{key:"safeMergeAABB",value:function(){for(var r=new nA,n=arguments.length,i=new Array(n),a=0;a0;if(A){if(i||n.attributes.stroke!==a.prevObject.attributes.stroke){var f=!ds(s.stroke)&&!Array.isArray(s.stroke)&&!s.stroke.isNone?n.attributes.stroke:Zh.strokeStyle;Bf(r,"strokeStyle",f,a.currentContext)}(i||s.lineWidth!==o.lineWidth)&&Bf(r,"lineWidth",ds(s.lineWidth)?Zh.lineWidth:s.lineWidth,a.currentContext),(i||s.lineDash!==o.lineDash)&&Bf(r,"lineDash",s.lineDash||Zh.lineDash,a.currentContext),(i||s.lineDashOffset!==o.lineDashOffset)&&Bf(r,"lineDashOffset",ds(s.lineDashOffset)?Zh.lineDashOffset:s.lineDashOffset,a.currentContext);for(var h=0;h4&&arguments[4]!==void 0?arguments[4]:!1;if(n){Bf(r,"shadowColor",Zh.shadowColor,a.currentContext);for(var s=0;s-1&&Bf(r,"filter",u.replace(/drop-shadow\([^)]*\)/,"").trim()||Zh.filter,a.currentContext)}else Bf(r,"filter",Zh.filter,a.currentContext)}},{key:"fillToContext",value:function(r,n,i,a,o){var s=this,l=n.parsedStyle,u=l.fill,c=l.fillRule,A=null;if(Array.isArray(u)&&u.length>0)u.forEach(function(h){var g=Bf(r,"fillStyle",rY(h,n,r,s.imagePool),i.currentContext);A=A??g,c?r.fill(c):r.fill()});else{if(k6(u)){var f=tY(u,n,r,n.ownerDocument.defaultView.context,a,o,this.imagePool);f&&(r.fillStyle=f,A=!0)}c?r.fill(c):r.fill()}A!==null&&Bf(r,"fillStyle",A,i.currentContext)}},{key:"strokeToContext",value:function(r,n,i,a,o){var s=this,l=n.parsedStyle.stroke,u=null;if(Array.isArray(l)&&l.length>0)l.forEach(function(f){var h=Bf(r,"strokeStyle",rY(f,n,r,s.imagePool),i.currentContext);u=u??h,r.stroke()});else{if(k6(l)){var c=tY(l,n,r,n.ownerDocument.defaultView.context,a,o,this.imagePool);if(c){var A=Bf(r,"strokeStyle",c,i.currentContext);u=u??A}}r.stroke()}u!==null&&Bf(r,"strokeStyle",u,i.currentContext)}},{key:"drawToContext",value:function(r,n,i,a,o){var s,l=n.nodeName,u=n.parsedStyle,c=u.opacity,A=c===void 0?Zh.globalAlpha:c,f=u.fillOpacity,h=f===void 0?Zh.fillOpacity:f,g=u.strokeOpacity,p=g===void 0?Zh.strokeOpacity:g,m=u.lineWidth,b=m===void 0?Zh.lineWidth:m,C=u.fill&&!u.fill.isNone,E=u.stroke&&!u.stroke.isNone&&b>0;if(!(!C&&!E)){var _=!ds(u.shadowColor)&&u.shadowBlur>0,F=u.shadowType==="inner",M=((s=u.fill)===null||s===void 0?void 0:s.alpha)===0,N=!!(u.filter&&u.filter.length),P=_&&E&&(l===Ci.PATH||l===Ci.LINE||l===Ci.POLYLINE||M||F),j=null;if(C){P||this.applyShadowAndFilterStyleToContext(r,n,_,i);var z=A*h;j=Bf(r,"globalAlpha",z,i.currentContext),this.fillToContext(r,n,i,a,o),P||this.clearShadowAndFilterStyleForContext(r,_,N,i)}if(E){var W=!1,Y=A*p,ee=Bf(r,"globalAlpha",Y,i.currentContext);if(j=C?j:ee,P&&(this.applyShadowAndFilterStyleToContext(r,n,_,i),W=!0,F)){var q=r.globalCompositeOperation;r.globalCompositeOperation="source-atop",this.strokeToContext(r,n,i,a,o),r.globalCompositeOperation=q,this.clearShadowAndFilterStyleForContext(r,_,N,i,!0)}this.strokeToContext(r,n,i,a,o),W&&this.clearShadowAndFilterStyleForContext(r,_,N,i)}j!==null&&Bf(r,"globalAlpha",j,i.currentContext)}}}])}(),l3e=function(e){function t(){return aa(this,t),kl(this,t,arguments)}return Ql(t,e),oa(t,[{key:"render",value:function(n,i,a,o,s,l){var u=i.fill,c=i.fillRule,A=i.opacity,f=A===void 0?1:A,h=i.fillOpacity,g=h===void 0?1:h,p=i.stroke,m=i.strokeOpacity,b=m===void 0?1:m,C=i.lineWidth,E=C===void 0?1:C,_=i.lineCap,F=i.lineJoin,M=i.shadowType,N=i.shadowColor,P=i.shadowBlur,j=i.filter,z=i.miterLimit,W=u&&!u.isNone,Y=p&&!p.isNone&&E>0,ee=(u==null?void 0:u.alpha)===0,q=!!(j&&j.length),ae=!ds(N)&&P>0,se=a.nodeName,de=M==="inner",Ae=Y&&ae&&(se===Ci.PATH||se===Ci.LINE||se===Ci.POLYLINE||ee||de);W&&(n.globalAlpha=f*g,Ae||nY(a,n,ae),Nht(n,a,u,c,o,s,l,this.imagePool),Ae||this.clearShadowAndFilter(n,q,ae)),Y&&(n.globalAlpha=f*b,n.lineWidth=E,ds(z)||(n.miterLimit=z),ds(_)||(n.lineCap=_),ds(F)||(n.lineJoin=F),Ae&&(de&&(n.globalCompositeOperation="source-atop"),nY(a,n,!0),de&&(Zbe(n,a,p,o,s,l,this.imagePool),n.globalCompositeOperation=Zh.globalCompositeOperation,this.clearShadowAndFilter(n,q,!0))),Zbe(n,a,p,o,s,l,this.imagePool))}},{key:"clearShadowAndFilter",value:function(n,i,a){if(a&&(n.shadowColor="transparent",n.shadowBlur=0),i){var o=n.filter;!ds(o)&&o.indexOf("drop-shadow")>-1&&(n.filter=o.replace(/drop-shadow\([^)]*\)/,"").trim()||"none")}}}])}(alr);function nY(e,t,r){var n=e.parsedStyle,i=n.filter,a=n.shadowColor,o=n.shadowBlur,s=n.shadowOffsetX,l=n.shadowOffsetY;i&&i.length&&(t.filter=e.style.filter),r&&(t.shadowColor=a.toString(),t.shadowBlur=o||0,t.shadowOffsetX=s||0,t.shadowOffsetY=l||0)}function Nht(e,t,r,n,i,a,o,s){var l=arguments.length>8&&arguments[8]!==void 0?arguments[8]:!1;Array.isArray(r)?r.forEach(function(u){e.fillStyle=rY(u,t,e,s),l||(n?e.fill(n):e.fill())}):(k6(r)&&(e.fillStyle=tY(r,t,e,i,a,o,s)),l||(n?e.fill(n):e.fill()))}function Zbe(e,t,r,n,i,a,o){var s=arguments.length>7&&arguments[7]!==void 0?arguments[7]:!1;Array.isArray(r)?r.forEach(function(l){e.strokeStyle=rY(l,t,e,o),s||e.stroke()}):(k6(r)&&(e.strokeStyle=tY(r,t,e,n,i,a,o)),s||e.stroke())}function olr(e,t){var r=gl(e,4),n=r[0],i=r[1],a=r[2],o=r[3],s=gl(t,4),l=s[0],u=s[1],c=s[2],A=s[3],f=Math.max(n,l),h=Math.max(i,u),g=Math.min(n+a,l+c),p=Math.min(i+o,u+A);return g<=f||p<=h?null:[f,h,g-f,p-h]}function slr(e,t){var r=a0(Jl(),[e[0],e[1],0],t),n=a0(Jl(),[e[0]+e[2],e[1],0],t),i=a0(Jl(),[e[0],e[1]+e[3],0],t),a=a0(Jl(),[e[0]+e[2],e[1]+e[3],0],t);return[Math.min(r[0],n[0],i[0],a[0]),Math.min(r[1],n[1],i[1],a[1]),Math.max(r[0],n[0],i[0],a[0])-Math.min(r[0],n[0],i[0],a[0]),Math.max(r[1],n[1],i[1],a[1])-Math.min(r[1],n[1],i[1],a[1])]}var llr=function(e){function t(){return aa(this,t),kl(this,t,arguments)}return Ql(t,e),oa(t,[{key:"renderDownSampled",value:function(n,i,a,o){var s=o.src,l=o.imageCache;if(!l.downSampled){this.imagePool.createDownSampledImage(s,a).then(function(){a.ownerDocument&&(a.dirty(),a.ownerDocument.defaultView.context.renderingService.dirtify())}).catch(function(u){console.error(u)});return}n.drawImage(l.downSampled,Math.floor(o.drawRect[0]),Math.floor(o.drawRect[1]),Math.ceil(o.drawRect[2]),Math.ceil(o.drawRect[3]))}},{key:"renderTile",value:function(n,i,a,o){var s=o.src,l=o.imageCache,u=o.imageRect,c=o.drawRect,A=l.size,f=n.getTransform(),h=f.a,g=f.b,p=f.c,m=f.d,b=f.e,C=f.f;if(n.resetTransform(),!(l!=null&&l.gridSize)){this.imagePool.createImageTiles(s,[],function(){a.ownerDocument&&(a.dirty(),a.ownerDocument.defaultView.context.renderingService.dirtify())},a).catch(function(ae){console.error(ae)});return}for(var E=[A[0]/u[2],A[1]/u[3]],_=[l.tileSize[0]/E[0],l.tileSize[1]/E[1]],F=[Math.floor((c[0]-u[0])/_[0]),Math.ceil((c[0]+c[2]-u[0])/_[0])],M=F[0],N=F[1],P=[Math.floor((c[1]-u[1])/_[1]),Math.ceil((c[1]+c[3]-u[1])/_[1])],j=P[0],z=P[1],W=j;W<=z;W++)for(var Y=M;Y<=N;Y++){var ee=l.tiles[W][Y];if(ee){var q=[Math.floor(u[0]+ee.tileX*_[0]),Math.floor(u[1]+ee.tileY*_[1]),Math.ceil(_[0]),Math.ceil(_[1])];n.drawImage(ee.data,q[0],q[1],q[2],q[3])}}n.setTransform(h,g,p,m,b,C)}},{key:"render",value:function(n,i,a){var o=i.x,s=o===void 0?0:o,l=i.y,u=l===void 0?0:l,c=i.width,A=i.height,f=i.src,h=i.shadowColor,g=i.shadowBlur,p=this.imagePool.getImageSync(f,a),m=p==null?void 0:p.img,b=c,C=A;if(m){b||(b=m.width),C||(C=m.height);var E=!ds(h)&&g>0;nY(a,n,E);try{var _=a.ownerDocument.defaultView.getContextService().getDomElement(),F=_.width,M=_.height,N=n.getTransform(),P=N.a,j=N.b,z=N.c,W=N.d,Y=N.e,ee=N.f,q=kAt(P,z,0,0,j,W,0,0,0,0,1,0,Y,ee,0,1),ae=slr([s,u,b,C],q),se=olr([0,0,F,M],ae);if(!se)return;if(!a.ownerDocument.defaultView.getConfig().enableLargeImageOptimization){t.renderFull(n,i,a,{image:m,drawRect:[s,u,b,C]});return}var de=ae[2]/p.size[0];if(de<(p.downSamplingRate||.5)){this.renderDownSampled(n,i,a,{src:f,imageCache:p,drawRect:[s,u,b,C]});return}if(!s3e.isSupportTile){t.renderFull(n,i,a,{image:m,drawRect:[s,u,b,C]});return}this.renderTile(n,i,a,{src:f,imageCache:p,imageRect:ae,drawRect:se})}catch{}}}},{key:"drawToContext",value:function(n,i,a,o,s){this.render(n,i.parsedStyle,i)}}],[{key:"renderFull",value:function(n,i,a,o){n.drawImage(o.image,Math.floor(o.drawRect[0]),Math.floor(o.drawRect[1]),Math.ceil(o.drawRect[2]),Math.ceil(o.drawRect[3]))}}])}(l3e),ulr=function(e){function t(){return aa(this,t),kl(this,t,arguments)}return Ql(t,e),oa(t,[{key:"render",value:function(n,i,a,o,s,l){a.getBounds();var u=i.lineWidth,c=u===void 0?1:u,A=i.textAlign,f=A===void 0?"start":A,h=i.textBaseline,g=h===void 0?"alphabetic":h,p=i.lineJoin,m=p===void 0?"miter":p,b=i.miterLimit,C=b===void 0?10:b,E=i.letterSpacing,_=E===void 0?0:E,F=i.stroke,M=i.fill,N=i.fillRule,P=i.fillOpacity,j=P===void 0?1:P,z=i.strokeOpacity,W=z===void 0?1:z,Y=i.opacity,ee=Y===void 0?1:Y,q=i.metrics,ae=i.x,se=ae===void 0?0:ae,de=i.y,Ae=de===void 0?0:de,be=i.dx,Le=i.dy,Ne=i.shadowColor,ue=i.shadowBlur,Ke=q.font,Pe=q.lines,je=q.height,Ye=q.lineHeight,me=q.lineMetrics;n.font=Ke,n.lineWidth=c,n.textAlign=f==="middle"?"center":f;var Se=g;Se==="alphabetic"&&(Se="bottom"),n.lineJoin=m,ds(C)||(n.miterLimit=C);var et=Ae;g==="middle"?et+=-je/2-Ye/2:g==="bottom"||g==="alphabetic"||g==="ideographic"?et+=-je:(g==="top"||g==="hanging")&&(et+=-Ye);var nt=se+(be||0);et+=Le||0,Pe.length===1&&(Se==="bottom"?(Se="middle",et-=.5*je):Se==="top"&&(Se="middle",et+=.5*je)),n.textBaseline=Se;var tt=!ds(Ne)&&ue>0;nY(a,n,tt);for(var ft=0;ft0&&arguments[0]!==void 0?arguments[0]:{};return aa(this,t),r=kl(this,t),r.name="canvas-renderer",r.options=n,r}return Ql(t,e),oa(t,[{key:"init",value:function(){var n,i=Ot({dirtyObjectNumThreshold:500,dirtyObjectRatioThreshold:.8},this.options),a=this.context.imagePool,o=new l3e(a),s=(n={},uo(uo(uo(uo(uo(uo(uo(uo(uo(uo(n,Ci.CIRCLE,o),Ci.ELLIPSE,o),Ci.RECT,o),Ci.IMAGE,new llr(a)),Ci.TEXT,new ulr(a)),Ci.LINE,o),Ci.POLYLINE,o),Ci.POLYGON,o),Ci.PATH,o),Ci.GROUP,void 0),uo(uo(uo(n,Ci.HTML,void 0),Ci.MESH,void 0),Ci.FRAGMENT,void 0));this.context.defaultStyleRendererFactory=s,this.context.styleRendererFactory=s,this.addRenderingPlugin(new Oht(i))}},{key:"destroy",value:function(){this.removeAllRenderingPlugins(),delete this.context.defaultStyleRendererFactory,delete this.context.styleRendererFactory}}])}(z5);/*! * @antv/g-plugin-dom-interaction * @description A G plugin * @version 2.1.27 * @date 7/30/2025, 1:35:38 PM * @author AntVis * @docs https://g.antv.antgroup.com/ */var Lht=function(){function e(){aa(this,e)}return oa(e,[{key:"apply",value:function(r,n){var i=this,a=r.renderingService,o=r.renderingContext,s=r.config;this.context=r;var l=o.root.ownerDocument.defaultView,u=function(P){a.hooks.pointerMove.call(P)},c=function(P){a.hooks.pointerUp.call(P)},A=function(P){a.hooks.pointerDown.call(P)},f=function(P){a.hooks.pointerOver.call(P)},h=function(P){a.hooks.pointerOut.call(P)},g=function(P){a.hooks.pointerCancel.call(P)},p=function(P){a.hooks.pointerWheel.call(P)},m=function(P){a.hooks.click.call(P)},b=function(P){n.globalThis.document.addEventListener("pointermove",u,!0),P.addEventListener("pointerdown",A,!0),P.addEventListener("pointerleave",h,!0),P.addEventListener("pointerover",f,!0),n.globalThis.addEventListener("pointerup",c,!0),n.globalThis.addEventListener("pointercancel",g,!0)},C=function(P){P.addEventListener("touchstart",A,!0),P.addEventListener("touchend",c,!0),P.addEventListener("touchmove",u,!0),P.addEventListener("touchcancel",g,!0)},E=function(P){n.globalThis.document.addEventListener("mousemove",u,!0),P.addEventListener("mousedown",A,!0),P.addEventListener("mouseout",h,!0),P.addEventListener("mouseover",f,!0),n.globalThis.addEventListener("mouseup",c,!0)},_=function(P){n.globalThis.document.removeEventListener("pointermove",u,!0),P.removeEventListener("pointerdown",A,!0),P.removeEventListener("pointerleave",h,!0),P.removeEventListener("pointerover",f,!0),n.globalThis.removeEventListener("pointerup",c,!0),n.globalThis.removeEventListener("pointercancel",g,!0)},F=function(P){P.removeEventListener("touchstart",A,!0),P.removeEventListener("touchend",c,!0),P.removeEventListener("touchmove",u,!0),P.removeEventListener("touchcancel",g,!0)},M=function(P){n.globalThis.document.removeEventListener("mousemove",u,!0),P.removeEventListener("mousedown",A,!0),P.removeEventListener("mouseout",h,!0),P.removeEventListener("mouseover",f,!0),n.globalThis.removeEventListener("mouseup",c,!0)};a.hooks.init.tap(e.tag,function(){var N=i.context.contextService.getDomElement();n.globalThis.navigator.msPointerEnabled?(N.style.msContentZooming="none",N.style.msTouchAction="none"):l.supportsPointerEvents&&(N.style.touchAction="none"),l.supportsPointerEvents?b(N):E(N),l.supportsTouchEvents&&C(N),s.useNativeClickEvent&&N.addEventListener("click",m,!0),N.addEventListener("wheel",p,{passive:!0,capture:!0})}),a.hooks.destroy.tap(e.tag,function(){var N=i.context.contextService.getDomElement();n.globalThis.navigator.msPointerEnabled?(N.style.msContentZooming="",N.style.msTouchAction=""):l.supportsPointerEvents&&(N.style.touchAction=""),l.supportsPointerEvents?_(N):M(N),l.supportsTouchEvents&&F(N),s.useNativeClickEvent&&N.removeEventListener("click",m,!0),N.removeEventListener("wheel",p,!0)})}}])}();Lht.tag="DOMInteraction";var Alr=function(e){function t(){var r;aa(this,t);for(var n=arguments.length,i=new Array(n),a=0;a1&&arguments[1]!==void 0?arguments[1]:[0,0,0];return"matrix(".concat([r[0],r[1],r[4],r[5],r[12]+n[0],r[13]+n[1]].join(","),")")}},{key:"apply",value:function(r,n){var i=this,a=r.camera,o=r.renderingContext,s=r.renderingService;this.context=r;var l=o.root.ownerDocument.defaultView,u=l.context.eventService.nativeHTMLMap,c=function(b,C){C.style.transform=i.joinTransformMatrix(b.getWorldTransform(),b.getOrigin())},A=function(b){var C=b.target;if(C.nodeName===Ci.HTML){i.$camera||(i.$camera=i.createCamera(a));var E=i.getOrCreateEl(C);i.$camera.appendChild(E),Object.keys(C.attributes).forEach(function(_){i.updateAttribute(_,C)}),c(C,E),u.set(E,C)}},f=function(b){var C=b.target;if(C.nodeName===Ci.HTML&&i.$camera){var E=i.getOrCreateEl(C);E&&(E.remove(),u.delete(E))}},h=function(b){var C=b.target;if(C.nodeName===Ci.HTML){var E=b.attrName;i.updateAttribute(E,C)}},g=function(b){var C=b.target,E=C.nodeName===Ci.FRAGMENT?C.childNodes:[C];E.forEach(function(_){if(_.nodeName===Ci.HTML){var F=i.getOrCreateEl(_);c(_,F)}})},p=function(){if(i.$camera){var b=i.context.config,C=b.width,E=b.height;i.$camera.parentElement.style.width="".concat(C||0,"px"),i.$camera.parentElement.style.height="".concat(E||0,"px")}};s.hooks.init.tap(e.tag,function(){l.addEventListener(Km.RESIZE,p),l.addEventListener(Gl.MOUNTED,A),l.addEventListener(Gl.UNMOUNTED,f),l.addEventListener(Gl.ATTR_MODIFIED,h),l.addEventListener(Gl.BOUNDS_CHANGED,g)}),s.hooks.endFrame.tap(e.tag,function(){i.$camera&&o.renderReasons.has(w9.CAMERA_CHANGED)&&(i.$camera.style.transform=i.joinTransformMatrix(a.getOrthoMatrix()))}),s.hooks.destroy.tap(e.tag,function(){i.$camera&&i.$camera.remove(),l.removeEventListener(Km.RESIZE,p),l.removeEventListener(Gl.MOUNTED,A),l.removeEventListener(Gl.UNMOUNTED,f),l.removeEventListener(Gl.ATTR_MODIFIED,h),l.removeEventListener(Gl.BOUNDS_CHANGED,g)})}},{key:"createCamera",value:function(r){var n=this.context.config,i=n.document,a=n.width,o=n.height,s=this.context.contextService.getDomElement(),l=s.parentNode;if(l){var u=flr,c=l.querySelector("#".concat(u));if(!c){var A=(i||document).createElement("div");A.style.overflow="hidden",A.style.pointerEvents="none",A.style.position="absolute",A.style.left="0px",A.style.top="0px",A.style.width="".concat(a||0,"px"),A.style.height="".concat(o||0,"px");var f=(i||document).createElement("div");c=f,f.id=u,f.style.position="absolute",f.style.left="".concat(s.offsetLeft||0,"px"),f.style.top="".concat(s.offsetTop||0,"px"),f.style.transformOrigin="left top",f.style.transform=this.joinTransformMatrix(r.getOrthoMatrix()),f.style.pointerEvents="none",f.style.width="100%",f.style.height="100%",A.appendChild(f),l.appendChild(A)}return c}return null}},{key:"getOrCreateEl",value:function(r){var n=this.context.config.document,i=this.displayObjectHTMLElementMap.get(r);return i||(i=(n||document).createElement("div"),r.parsedStyle.$el=i,this.displayObjectHTMLElementMap.set(r,i),r.id&&(i.id=r.id),r.name&&i.setAttribute("name",r.name),r.className&&(i.className=r.className),i.style.position="absolute",i.style["will-change"]="transform",i.style.transform=this.joinTransformMatrix(r.getWorldTransform(),r.getOrigin())),i}},{key:"updateAttribute",value:function(r,n){var i=this.getOrCreateEl(n);switch(r){case"innerHTML":var a=n.parsedStyle.innerHTML;_u(a)?i.innerHTML=a:(i.innerHTML="",i.appendChild(a));break;case"x":i.style.left="".concat(n.parsedStyle.x,"px");break;case"y":i.style.top="".concat(n.parsedStyle.y,"px");break;case"transformOrigin":var o=n.parsedStyle.transformOrigin;i.style["transform-origin"]="".concat(o[0].buildCSSText(null,null,"")," ").concat(o[1].buildCSSText(null,null,""));break;case"width":var s=n.parsedStyle.width;i.style.width=go(s)?"".concat(s,"px"):s.toString();break;case"height":var l=n.parsedStyle.height;i.style.height=go(l)?"".concat(l,"px"):l.toString();break;case"zIndex":var u=n.parsedStyle.zIndex;i.style["z-index"]="".concat(u);break;case"visibility":var c=n.parsedStyle.visibility;i.style.visibility=c;break;case"pointerEvents":var A=n.parsedStyle.pointerEvents,f=A===void 0?"auto":A;i.style.pointerEvents=f;break;case"opacity":var h=n.parsedStyle.opacity;i.style.opacity="".concat(h);break;case"fill":var g=n.parsedStyle.fill,p="";zW(g)?g.isNone?p="transparent":p=n.getAttribute("fill"):Array.isArray(g)?p=n.getAttribute("fill"):k6(g),i.style.background=p;break;case"stroke":var m=n.parsedStyle.stroke,b="";zW(m)?m.isNone?b="transparent":b=n.getAttribute("stroke"):Array.isArray(m)?b=n.getAttribute("stroke"):k6(m),i.style["border-color"]=b,i.style["border-style"]="solid";break;case"lineWidth":var C=n.parsedStyle.lineWidth;i.style["border-width"]="".concat(C||0,"px");break;case"lineDash":i.style["border-style"]="dashed";break;case"filter":var E=n.style.filter;i.style.filter=E;break;default:!ds(n.style[r])&&n.style[r]!==""&&(i.style[r]=n.style[r])}}}])}();Pht.tag="HTMLRendering";var hlr=function(e){function t(){var r;aa(this,t);for(var n=arguments.length,i=new Array(n),a=0;a0&&s[0]!==void 0?s[0]:{},a=i.type,o=i.encoderOptions,l.abrupt("return",this.context.canvas.toDataURL(a,o));case 1:case"end":return l.stop()}},n,this)}));function r(){return t.apply(this,arguments)}return r}()}])}(),glr=function(e){function t(){var r;aa(this,t);for(var n=arguments.length,i=new Array(n),a=0;a{const n=this.context.canvas,i=n.context.renderingContext.root.ownerDocument.defaultView;this.normalizeToPointerEvent(r,i).forEach(o=>{const s=this.bootstrapEvent(this.rootPointerEvent,o,i,r);tN(n.context.eventService,"mappingTable.pointerupoutside",[]),n.context.eventService.mapEvent(s)})}}get eventService(){return this.context.canvas.context.eventService}get events(){return[Ei.CLICK,Ei.POINTER_DOWN,Ei.POINTER_MOVE,Ei.POINTER_UP,Ei.POINTER_OVER,Ei.POINTER_LEAVE]}getDomElement(){return this.getShape("key").getDomElement()}render(t=this.parsedAttributes,r=this){this.drawKeyShape(t,r),this.drawPortShapes(t,r)}getKeyStyle(t){const r=x6(t,["dx","dy","innerHTML","pointerEvents","cursor"]),{dx:n=0,dy:i=0}=r,a=plr(r,["dx","dy"]),[o,s]=this.getSize(t);return Object.assign(Object.assign({x:n,y:i},a),{width:o,height:s})}drawKeyShape(t,r){const n=this.getKeyStyle(t),{x:i,y:a,width:o=0,height:s=0}=n,l=this.upsert("key-container",op,{x:i,y:a,width:o,height:s,opacity:0},r);return this.upsert("key",LL,n,l)}connectedCallback(){if(!(this.context.canvas.getRenderer("main")instanceof lN))return;const n=this.getDomElement();this.events.forEach(i=>{n.addEventListener(i,this.forwardEvents)})}attributeChangedCallback(t,r,n){t==="zIndex"&&r!==n&&(this.getDomElement().style.zIndex=n)}destroy(){const t=this.getDomElement();this.events.forEach(r=>{t.removeEventListener(r,this.forwardEvents)}),super.destroy()}normalizeToPointerEvent(t,r){const n=[];if(r.isTouchEvent(t))for(let i=0;ithis.context.element.getElement(o)).filter(Boolean);if(i.length===0){const o=new nA,{x:s=0,y:l=0,size:u}=t,[c,A]=a1(u);return o.setMinMax([s-c/2,l-A/2,0],[s+c/2,l+A/2,0]),o}const a=UL(i.map(o=>o.getBounds()));return n?V5(a,n):a}drawCollapsedMarkerShape(t,r){const n=this.getCollapsedMarkerStyle(t);this.upsert("collapsed-marker",Sht,n,r),a3e(this)}getCollapsedMarkerStyle(t){if(!t.collapsed||!t.collapsedMarker)return!1;const r=sd(this.getGraphicStyle(t),"collapsedMarker"),{type:n}=r,i=hRe(r,["type"]),a=this.getShape("key"),[o,s]=yE(a.getLocalBounds(),"center"),l=Object.assign(Object.assign({},i),{x:o,y:s});if(n){const u=this.getCollapsedMarkerText(n,t);Object.assign(l,{text:u})}return l}getCollapsedMarkerText(t,r){const{childrenData:n=[]}=r,{model:i}=this.context;return t==="descendant-count"?i.getDescendantsData(this.id).length.toString():t==="child-count"?n.length.toString():t==="node-count"?i.getDescendantsData(this.id).filter(a=>i.getElementType(Gn(a))==="node").length.toString():xo(t)?t(n):""}getComboPosition(t){const{x:r=0,y:n=0,collapsed:i,childrenData:a=[]}=t;if(a.length===0)return[+r,+n,0];if(i){const{model:o}=this.context,s=o.getDescendantsData(this.id).filter(l=>!o.isCombo(Gn(l)));if(s.length>0&&s.some(Yor)){const l=s.reduce((u,c)=>cl(u,Ld(c)),[0,0,0]);return o2(l,s.length)}return[+r,+n,0]}return this.getContentBBox(t).center}getComboStyle(t){const[r,n]=this.getComboPosition(t);return{x:r,y:n,transform:[["translate",r,n]]}}updateComboPosition(t){const r=this.getComboStyle(t);Object.assign(this.style,r);const{x:n,y:i}=r;this.context.model.syncNodeLikeDatum({id:this.id,style:{x:n,y:i}}),o3e(this)}render(t,r=this){super.render(t,r),this.drawCollapsedMarkerShape(t,r)}update(t={}){super.update(t),this.updateComboPosition(this.parsedAttributes)}onframe(){super.onframe(),this.attributes.collapsed||this.updateComboPosition(this.parsedAttributes),this.drawKeyShape(this.parsedAttributes,this)}animate(t,r){const n=super.animate(this.attributes.collapsed?t:t.map(i=>{var a=hRe(i,["x","y","z","transform"]);return a}),r);return n&&new Proxy(n,{set:(i,a,o)=>(a==="currentTime"&&Promise.resolve().then(()=>this.onframe()),Reflect.set(i,a,o))})}}X7.defaultStyleProps={childrenNode:[],droppable:!0,draggable:!0,collapsed:!1,collapsedSize:32,collapsedMarker:!0,collapsedMarkerZIndex:1,collapsedMarkerFontSize:12,collapsedMarkerTextAlign:"center",collapsedMarkerTextBaseline:"middle",collapsedMarkerType:"child-count"};class ylr extends X7{constructor(t){super(t)}drawKeyShape(t,r){return this.upsert("key",IB,this.getKeyStyle(t),r)}getKeyStyle(t){const{collapsed:r}=t,n=super.getKeyStyle(t),[i]=this.getKeySize(t);return Object.assign(Object.assign(Object.assign({},n),r&&sd(n,"collapsed")),{r:i/2})}getCollapsedKeySize(t){const[r,n]=a1(t.collapsedSize),i=Math.max(r,n)/2;return[i*2,i*2,0]}getExpandedKeySize(t){const r=this.getContentBBox(t),[n,i]=K5(r),a=Math.sqrt(Math.pow(n,2)+Math.pow(i,2))/2;return[a*2,a*2,0]}getIntersectPoint(t,r=!1){const n=this.getShape("key").getBounds();return aX(t,n,r)}}class blr extends X7{constructor(t){super(t)}drawKeyShape(t,r){return this.upsert("key",op,this.getKeyStyle(t),r)}getKeyStyle(t){const r=super.getKeyStyle(t),[n,i]=this.getKeySize(t);return Object.assign(Object.assign(Object.assign({},r),t.collapsed&&sd(r,"collapsed")),{width:n,height:i,x:-n/2,y:-i/2})}}const wlr={padding:10};function dRe(e,t,r,n,i,a){const{padding:o}=Object.assign(wlr,a),s=Q3(r,o),l=Q3(n,o),u=[e,...i,t];let c=null;const A=[];for(let f=0,h=u.length;fa?"N":"S":n===a?r>i?"W":"E":null}function e2e(e,t){return t==="N"||t==="S"?MC(e):RC(e)}function pRe(e,t,r){const n=[e[0],t[1]],i=[t[0],e[1]],a=z0(e,n),o=z0(e,i),s=r?Clr[r]:null,l=a===r||a!==s&&o!==r?n:i;return{points:[l],direction:z0(l,t)}}function HK(e,t,r){if(JW(e,r)){const n=uN(e,t,r);return{points:[n],direction:z0(n,t)}}else{const n=Yk(e,r),a=["left","right"].includes(JM(e,r))?[t[0],n[1]]:[n[0],t[1]];return{points:[a],direction:z0(a,t)}}}function $ht(e,t,r,n){const i=JW(t,r)?t:Yk(t,r),a=[[i[0],e[1]],[e[0],i[1]]],o=a.filter(l=>wor(l,r)&&!aht(l,r,!0)),s=o.filter(l=>z0(l,e)!==n);if(s.length>0){const l=s.find(u=>z0(e,u)===n)||s[0];return{points:[l],direction:z0(l,t)}}else{const l=yer(a,o)[0],u=r5(t,l,e2e(r,n)/2);return{points:[uN(u,e,r),u],direction:z0(u,t)}}}function Ilr(e,t,r,n){let i=HK(e,t,r);const a=sN(i.points[0]);if(a2(a,n)){i=HK(t,e,n);const o=sN(i.points[0]);if(a2(o,r)){const s=r5(e,a,e2e(r,z0(e,a))/2),l=r5(t,o,e2e(n,z0(t,o))/2),u=[(s[0]+l[0])/2,(s[1]+l[1])/2],c=HK(e,u,r),A=$ht(u,t,n,c.direction);i.points=[c.points[0],A.points[0]],i.direction=A.direction}}return i}function fse(e,t,r,n,i){const o=UL([r,n]),s=CA(t,o.center)>CA(e,o.center),[l,u]=s?[t,e]:[e,t],c=MC(o)+RC(o);let A;if(i){const g=[l[0]+c*Math.cos(gRe[i]),l[1]+c*Math.sin(gRe[i])];A=r5(Yk(g,o),g,.01)}else A=r5(Yk(l,o),l,-.01);let f=uN(A,u,o),h=[GF(A,2),GF(f,2)];if(Qf(GF(A),GF(f))){const g=t3e(Oc(A,l),[1,0,0])+Math.PI/2;f=[u[0]+c*Math.cos(g),u[1]+c*Math.sin(g),0],f=GF(r5(Yk(f,o),u,-.01),2);const p=uN(A,f,o);h=[A,p,f]}return{points:s?h.reverse():h,direction:z0(s?A:f,t)}}function uN(e,t,r){let n=[e[0],t[1]];return a2(n,r)&&(n=[t[0],e[1]]),n}function zht(e,t,r,n,i){let l=typeof t=="number"?t:.5;t==="start"&&(l=0),t==="end"&&(l=.99);const u=Yg(e.getPoint(l)),c=Yg(e.getPoint(l+.01));let A=t==="start"?"left":t==="end"?"right":"center";if(pht(u,c)||!r){const[b,C]=vRe(e,l,n,i);return{transform:[["translate",b,C]],textAlign:A}}let f=Math.atan2(c[1]-u[1],c[0]-u[0]);c[0]{const c=o[u-1]||i,A=o[u+1]||a;if(!vht(c,l,A)&&t){const[f,h]=klr(c,l,A,t);s.push(["L",f[0],f[1]],["Q",l[0],l[1],h[0],h[1]],["L",h[0],h[1]])}else s.push(["L",l[0],l[1]])}),s.push(["L",a[0],a[1]]),r&&s.push(["Z"]),s}function klr(e,t,r,n){const i=XW(e,t),a=XW(r,t),o=Math.min(n,Math.min(i,a)/2),s=[t[0]-o/i*(t[0]-e[0]),t[1]-o/i*(t[1]-e[1])],l=[t[0]-o/a*(t[0]-r[0]),t[1]-o/a*(t[1]-r[1])];return[s,l]}const Qlr=e=>{const t=Math.PI/2,r=MC(e)/2,n=RC(e)/2,i=Math.atan2(r,n)/2,a=Math.atan2(n,r)/2;return{top:[-t-a,-t+a],"top-right":[-t+a,-i],"right-top":[-t+a,-i],right:[-i,i],"bottom-right":[i,t-a],"right-bottom":[i,t-a],bottom:[t-a,t+a],"bottom-left":[t+a,Math.PI-i],"left-bottom":[t+a,Math.PI-i],left:[Math.PI-i,Math.PI+i],"top-left":[Math.PI+i,-t-a],"left-top":[Math.PI+i,-t-a]}};function Vht(e,t,r,n,i){const a=Q3(e),o=e.getCenter();let s=n&&b5(n),l=i&&b5(i);if(!s||!l){const u=Qlr(a),c=u[t][0],A=u[t][1],[f,h]=K5(a),g=Math.max(f,h),p=cl(o,[g*Math.cos(c),g*Math.sin(c),0]),m=cl(o,[g*Math.cos(A),g*Math.sin(A),0]);s=n2e(e,p),l=n2e(e,m),r||([s,l]=[l,s])}return[s,l]}function _lr(e,t,r,n,i,a){const o=e.getPorts()[i||a],s=e.getPorts()[a||i];let[l,u]=Vht(e,t,r,o,s);const c=Tlr(e,l,u,n);return o&&(l=cN(o,c[0])),s&&(u=cN(s,c.at(-1))),Kht(l,u,c)}function Tlr(e,t,r,n){const i=e.getCenter();if(Qf(t,r)){const a=Oc(t,i),o=[n*Math.sign(a[0])||n/2,n*Math.sign(a[1])||-n/2,0];return[cl(t,o),cl(r,Gb(o,[1,-1,1]))]}return[r5(i,t,CA(i,t)+n),r5(i,r,CA(i,r)+n)]}function Dlr(e,t,r,n,i,a,o){const s=f3e(e),l=s[a||o],u=s[o||a];let[c,A]=Vht(e,r,n,l,u);const f=Flr(e,c,A,i);return l&&(c=cN(l,f[0])),u&&(A=cN(u,f.at(-1))),u3e([c,...f,A],t)}function Flr(e,t,r,n){const i=[],a=Q3(e);if(Qf(t,r))switch(JM(t,a)){case"left":i.push([t[0]-n,t[1]]),i.push([t[0]-n,t[1]+n]),i.push([t[0],t[1]+n]);break;case"right":i.push([t[0]+n,t[1]]),i.push([t[0]+n,t[1]+n]),i.push([t[0],t[1]+n]);break;case"top":i.push([t[0],t[1]-n]),i.push([t[0]+n,t[1]-n]),i.push([t[0]+n,t[1]]);break;case"bottom":i.push([t[0],t[1]+n]),i.push([t[0]+n,t[1]+n]),i.push([t[0]+n,t[1]]);break}else{const o=JM(t,a),s=JM(r,a);if(o===s){const l=o;let u,c;switch(l){case"left":u=Math.min(t[0],r[0])-n,i.push([u,t[1]]),i.push([u,r[1]]);break;case"right":u=Math.max(t[0],r[0])+n,i.push([u,t[1]]),i.push([u,r[1]]);break;case"top":c=Math.min(t[1],r[1])-n,i.push([t[0],c]),i.push([r[0],c]);break;case"bottom":c=Math.max(t[1],r[1])+n,i.push([t[0],c]),i.push([r[0],c]);break}}else{const l=(f,h)=>({left:[h[0]-n,h[1]],right:[h[0]+n,h[1]],top:[h[0],h[1]-n],bottom:[h[0],h[1]+n]})[f],u=l(o,t),c=l(s,r),A=uN(u,c,a);i.push(u,A,c)}}return i}function r2e(e,t){const r=new Set,n=new Set,i=new Set;return e.forEach(a=>{t(a).forEach(s=>{r.add(s),e.includes(s.source)&&e.includes(s.target)?n.add(s):i.add(s)})}),{edges:Array.from(r),internal:Array.from(n),external:Array.from(i)}}function mRe(e,t){const r=[];let n=e;for(;n;){r.push(n);const i=t(Gn(n));if(i)n=i;else break}if(r.some(i=>{var a;return(a=i.style)===null||a===void 0?void 0:a.collapsed})){const i=r.reverse().findIndex(Wv);return r[i]||r.at(-1)}return e}function Rlr(e,t){return t||(e<4?10:e===4?12:e*2.5)}const Mlr=(e,t)=>{const r=Math.max(e,t)/2;return[["M",-e/2,0],["A",r,r,0,1,0,2*r-e/2,0],["A",r,r,0,1,0,-e/2,0],["Z"]]},Wht=(e,t)=>[["M",-e/2,0],["L",e/2,-t/2],["L",e/2,t/2],["Z"]],Olr=(e,t)=>[["M",-e/2,0],["L",0,-t/2],["L",e/2,0],["L",0,t/2],["Z"]],Nlr=(e,t)=>[["M",-e/2,0],["L",e/2,-t/2],["L",4*e/5-e/2,0],["L",e/2,t/2],["Z"]],Llr=(e,t)=>[["M",-e/2,-t/2],["L",e/2,-t/2],["L",e/2,t/2],["L",-e/2,t/2],["Z"]],Plr=(e,t)=>{const r=e/2,n=e/7,i=e-n;return[["M",-r,0],["L",0,-t/2],["L",0,t/2],["Z"],["M",i-r,-t/2],["L",i+n-r,-t/2],["L",i+n-r,t/2],["L",i-r,t/2],["Z"]]},Ulr=(e,t)=>[["M",e/2,-t/2],["L",-e/2,0],["L",e/2,0],["L",-e/2,0],["L",e/2,t/2]],Hlr=Object.freeze(Object.defineProperty({__proto__:null,circle:Mlr,diamond:Olr,rect:Llr,simple:Ulr,triangle:Wht,triangleRect:Plr,vee:Nlr},Symbol.toStringTag,{value:"Module"}));var YG=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{u in i&&(l[u]=i[u])}),l}getLoopPath(t){const{sourcePort:r,targetPort:n}=t,i=this.sourceNode,a=Q3(i),o=Math.max(RC(a),MC(a)),{placement:s,clockwise:l,dist:u=o}=sd(this.getGraphicStyle(t),"loop");return _lr(i,s,l,u,r,n)}getEndpoints(t,r=!0,n=[]){const{sourcePort:i,targetPort:a}=t,{sourceNode:o,targetNode:s}=this,[l,u]=Zlr(o,s,i,a);if(!r){const h=l?b5(l):o.getCenter(),g=u?b5(u):s.getCenter();return[h,g]}const c=typeof n=="function"?n():n,A=IRe(l||o,c[0]||u||s),f=IRe(u||s,c[c.length-1]||l||o);return[A,f]}getHaloStyle(t){if(t.halo===!1)return!1;const r=this.getKeyStyle(t),n=sd(this.getGraphicStyle(t),"halo");return Object.assign(Object.assign({},r),n)}getLabelStyle(t){if(t.label===!1||!t.labelText)return!1;const r=sd(this.getGraphicStyle(t),"label"),{placement:n,offsetX:i,offsetY:a,autoRotate:o,maxWidth:s}=r,l=YG(r,["placement","offsetX","offsetY","autoRotate","maxWidth"]),u=zht(this.shapeMap.key,n,o,i,a),c=this.shapeMap.key.getLocalBounds(),A=fsr([c.min,c.max],s);return Object.assign({wordWrapWidth:A},u,l)}getBadgeStyle(t){if(t.badge===!1||!t.badgeText)return!1;const r=sd(t,"badge"),{offsetX:n,offsetY:i,placement:a}=r,o=YG(r,["offsetX","offsetY","placement"]);return Object.assign(o,Elr(this.shapeMap,a,t.labelPlacement,n,i))}drawArrow(t,r){var n;const i=r==="start",o=t[r==="start"?"startArrow":"endArrow"],s=this.shapeMap.key;if(o){const l=this.getArrowStyle(t,i),[u,c,A]=i?["markerStart","markerStartOffset","startArrowOffset"]:["markerEnd","markerEndOffset","endArrowOffset"],f=s.parsedStyle[u];if(f)f.attr(l);else{const h=l.src?PL:Jm,g=new h({style:l});s.style[u]=g}s.style[c]=t[A]||l.width/2+ +l.lineWidth}else{const l=i?"markerStart":"markerEnd";(n=s.style[l])===null||n===void 0||n.destroy(),s.style[l]=null}}getArrowStyle(t,r){const n=this.getShape("key").attributes,i=r?"startArrow":"endArrow",a=sd(this.getGraphicStyle(t),i),{size:o,type:s}=a,l=YG(a,["size","type"]),[u,c]=a1(Rlr(n.lineWidth,o)),f=(xo(s)?s:Hlr[s]||Wht)(u,c);return Object.assign(x6(n,["stroke","strokeOpacity","fillOpacity"]),{width:u,height:c},Object.assign({},f&&{d:f,fill:s==="simple"?"":n.stroke}),l)}drawLabelShape(t,r){const n=this.getLabelStyle(t);this.upsert("label",W5,n,r)}drawHaloShape(t,r){const n=this.getHaloStyle(t);this.upsert("halo",Jm,n,r)}drawBadgeShape(t,r){const n=this.getBadgeStyle(t);this.upsert("badge",J7,n,r)}drawSourceArrow(t){this.drawArrow(t,"start")}drawTargetArrow(t){this.drawArrow(t,"end")}drawKeyShape(t,r){const n=this.getKeyStyle(t);return this.upsert("key",Jm,n,r)}render(t=this.parsedAttributes,r=this){this.drawKeyShape(t,r),this.getShape("key")&&(this.drawSourceArrow(t),this.drawTargetArrow(t),this.drawLabelShape(t,r),this.drawHaloShape(t,r),this.drawBadgeShape(t,r))}onframe(){this.drawKeyShape(this.parsedAttributes,this),this.drawSourceArrow(this.parsedAttributes),this.drawTargetArrow(this.parsedAttributes),this.drawHaloShape(this.parsedAttributes,this),this.drawLabelShape(this.parsedAttributes,this),this.drawBadgeShape(this.parsedAttributes,this)}animate(t,r){const n=super.animate(t,r);return n&&new Proxy(n,{set:(i,a,o)=>(a==="currentTime"&&Promise.resolve().then(()=>this.onframe()),Reflect.set(i,a,o))})}}Y5.defaultStyleProps={badge:!0,badgeOffsetX:0,badgeOffsetY:0,badgePlacement:"suffix",isBillboard:!0,label:!0,labelAutoRotate:!0,labelIsBillboard:!0,labelMaxWidth:"80%",labelOffsetX:4,labelOffsetY:0,labelPlacement:"center",labelTextBaseline:"middle",labelWordWrap:!1,halo:!1,haloDroppable:!1,haloLineDash:0,haloLineWidth:12,haloPointerEvents:"none",haloStrokeOpacity:.25,haloZIndex:-1,loop:!0,startArrow:!1,startArrowLineDash:0,startArrowLineJoin:"round",startArrowLineWidth:1,startArrowTransformOrigin:"center",startArrowType:"vee",endArrow:!1,endArrowLineDash:0,endArrowLineJoin:"round",endArrowLineWidth:1,endArrowTransformOrigin:"center",endArrowType:"vee",loopPlacement:"top",loopClockwise:!0};class lQ extends Y5{constructor(t){super(Eg({style:lQ.defaultStyleProps},t))}getKeyPath(t){const[r,n]=this.getEndpoints(t),{controlPoints:i,curvePosition:a,curveOffset:o}=t,s=this.getControlPoints(r,n,xlr(a),Blr(o),i);return Kht(r,n,s)}getControlPoints(t,r,n,i,a){return(a==null?void 0:a.length)===2?a:[t2e(t,r,n[0],i[0]),t2e(t,r,n[1],i[1])]}}lQ.defaultStyleProps={curvePosition:.5,curveOffset:20};class cX extends lQ{constructor(t){super(Eg({style:cX.defaultStyleProps},t))}getControlPoints(t,r,n,i){const a=r[0]-t[0];return[[t[0]+a*n[0]+i[0],t[1]],[r[0]-a*n[1]+i[1],r[1]]]}}cX.defaultStyleProps={curvePosition:[.5,.5],curveOffset:[0,0]};class AX extends lQ{constructor(t){super(Eg({style:AX.defaultStyleProps},t))}get ref(){return this.context.model.getRootsData()[0]}getEndpoints(t){if(this.sourceNode.id===this.ref.id)return super.getEndpoints(t);const r=Ld(this.ref),n=this.sourceNode.getIntersectPoint(r,!0),i=this.targetNode.getIntersectPoint(r);return[n,i]}toRadialCoordinate(t){const r=Ld(this.ref),n=CA(t,r),i=hht(Oc(t,r));return[n,i]}getControlPoints(t,r,n,i){const[a,o]=this.toRadialCoordinate(t),[s]=this.toRadialCoordinate(r),l=s-a;return[[t[0]+(l*n[0]+i[0])*Math.cos(o),t[1]+(l*n[0]+i[0])*Math.sin(o)],[r[0]-(l*n[1]-i[0])*Math.cos(o),r[1]-(l*n[1]-i[0])*Math.sin(o)]]}}AX.defaultStyleProps={curvePosition:.5,curveOffset:20};class fX extends lQ{constructor(t){super(Eg({style:fX.defaultStyleProps},t))}getControlPoints(t,r,n,i){const a=r[1]-t[1];return[[t[0],t[1]+a*n[0]+i[0]],[r[0],r[1]-a*n[1]+i[1]]]}}fX.defaultStyleProps={curvePosition:[.5,.5],curveOffset:[0,0]};let Yht=class qht extends Y5{constructor(t){super(Eg({style:qht.defaultStyleProps},t))}getKeyPath(t){const[r,n]=this.getEndpoints(t);return[["M",r[0],r[1]],["L",n[0],n[1]]]}};Yht.defaultStyleProps={};const jlr={enableObstacleAvoidance:!1,offset:10,maxAllowedDirectionChange:Math.PI/2,maximumLoops:3e3,gridSize:5,startDirections:["top","right","bottom","left"],endDirections:["top","right","bottom","left"],directionMap:{right:{stepX:1,stepY:0},left:{stepX:-1,stepY:0},bottom:{stepX:0,stepY:1},top:{stepX:0,stepY:-1}},penalties:{0:0,90:0},distFunc:XW},dE=e=>`${Math.round(e[0])}|||${Math.round(e[1])}`;function Ek(e,t){const r=n=>Math.round(n/t);return go(e)?r(e):e.map(r)}function Glr(e,t){const r=Math.abs(e-t);return r>Math.PI?2*Math.PI-r:r}function yRe(e,t){const r=t[0]-e[0],n=t[1]-e[1];return!r&&!n?0:Math.atan2(n,r)}function Jht(e,t,r,n){const i=yRe(e,t),a=r[dE(e)],s=yRe(a||n,e);return Glr(s,i)}const $lr=(e,t)=>{const{offset:r,gridSize:n}=t,i={};return e.forEach(a=>{if(!a||a.destroyed||!a.isVisible())return;const o=V5(a.getRenderBounds(),r);for(let s=Ek(o.min[0],n);s<=Ek(o.max[0],n);s+=1)for(let l=Ek(o.min[1],n);l<=Ek(o.max[1],n);l+=1)i[`${s}|||${l}`]=!0}),i};function bRe(e,t,r){return Math.min(...t.map(n=>r(e,n)))}function zlr(e,t,r){let n=e[0],i=r(e[0],t);for(let a=0;a{if(!t)return[e];const{directionMap:i,offset:a}=n,o=V5(t.getRenderBounds(),a),s=Object.keys(i).reduce((l,u)=>{if(r.includes(u)){const c=i[u],[A,f]=K5(o),h=[e[0]+c.stepX*A,e[1]+c.stepY*f],g=Eor(o);for(let p=0;pEk(l,n.gridSize))},Klr=(e,t,r,n,i,a,o)=>{const s=[];let l=[a[0]===n[0]?n[0]:e[0]*o,a[1]===n[1]?n[1]:e[1]*o];s.unshift(l);let u=e,c=t[dE(u)];for(;c;){const h=c,g=u;Jht(h,g,t,r)&&(l=[h[0]===g[0]?l[0]:h[0]*o,h[1]===g[1]?l[1]:h[1]*o],s.unshift(l)),c=t[dE(h)],u=h}const A=i.map(h=>[h[0]*o,h[1]*o]),f=zlr(A,l,XW);return s.unshift(f),s};function Vlr(e,t,r,n){const i=T6(e.getCenter()),a=T6(t.getCenter()),o=Object.assign(jlr,n),{gridSize:s}=o,l=o.enableObstacleAvoidance?r:[e,t],u=$lr(l,o),c=Ek(i,s),A=Ek(a,s),f=wRe(i,e,o.startDirections,o),h=wRe(a,t,o.endDirections,o);f.forEach(P=>delete u[dE(P)]),h.forEach(P=>delete u[dE(P)]);const g={},p={},m={},b={},C={},E=new Wlr;for(let P=0;PdE(P));let F=o.maximumLoops,M,N=1/0;for(const[P,j]of Object.entries(g))C[P]<=N&&(N=C[P],M=j);for(;Object.keys(g).length>0&&F>0;){const P=E.minId(!1);if(P)M=g[P];else break;const j=dE(M);if(_.includes(j))return Klr(M,m,c,a,f,A,s);delete g[j],E.remove(j),p[j]=!0;for(const z of Object.values(o.directionMap)){const W=cl(M,[z.stepX,z.stepY]),Y=dE(W);if(p[Y])continue;const ee=Jht(M,W,m,c);if(ee>o.maxAllowedDirectionChange||u[Y])continue;g[Y]||(g[Y]=W);const q=o.penalties[ee],ae=o.distFunc(M,W)+(isNaN(q)?s:q),se=b[j]+ae,de=b[Y];de&&se>=de||(m[Y]=M,b[Y]=se,C[Y]=se+bRe(W,h,o.distFunc),E.add({id:Y,value:C[Y]}))}F-=1}return[]}class Wlr{constructor(){this.arr=[],this.map={},this.arr=[],this.map={}}_innerAdd(t,r){let n=0,i=r-1;for(;i-n>1;){const a=Math.floor((n+i)/2);if(this.arr[a].value>t.value)i=a;else if(this.arr[a].value=0;r--)this.map[this.arr[r].id]?t=this.arr[r].id:this.arr.splice(r,1);return t}_findFirstId(){for(;this.arr.length;){const t=this.arr.shift();if(this.map[t.id])return t.id}}minId(t){return t?this._clearAndGetMinId():this._findFirstId()}}let Xht=class Zht extends Y5{constructor(t){super(Eg({style:Zht.defaultStyleProps},t))}getControlPoints(t){const{router:r}=t,{sourceNode:n,targetNode:i}=this,[a,o]=this.getEndpoints(t,!1);let s=[];if(!r)s=t.controlPoints;else if(r.type==="shortest-path"){const l=this.context.element.getNodes();s=Vlr(n,i,l,r),s.length||(s=dRe(a,o,n,i,t.controlPoints,{padding:r.offset}))}else r.type==="orth"&&(s=dRe(a,o,n,i,t.controlPoints,r));return s}getPoints(t){const r=this.getControlPoints(t),[n,i]=this.getEndpoints(t,!0,r);return[n,...r,i]}getKeyPath(t){const r=this.getPoints(t);return u3e(r,t.radius)}getLoopPath(t){const{sourcePort:r,targetPort:n,radius:i}=t,a=this.sourceNode,o=Q3(a),s=Math.max(RC(o),MC(o))/4,{placement:l,clockwise:u,dist:c=s}=sd(this.getGraphicStyle(t),"loop");return Dlr(a,i,l,u,c,r,n)}};Xht.defaultStyleProps={radius:0,controlPoints:[],router:!1};class hX extends Y5{constructor(t){super(Eg({style:hX.defaultStyleProps},t))}getKeyPath(t){const{curvePosition:r,curveOffset:n}=t,[i,a]=this.getEndpoints(t),o=t.controlPoint||t2e(i,a,r,n);return Slr(i,a,o)}}hX.defaultStyleProps={curvePosition:.5,curveOffset:30};var Ylr=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{var a;const{key:o,placement:s}=n;tdt(n)&&(t[a=o||i]||(t[a]=yE(e.getShape("key").getBounds(),s)))}),t}function tdt(e){const{r:t}=e;return!t||Number(t)===0}function b5(e){return a7(e)?e:e.getPosition()}function Zlr(e,t,r,n){const i=CRe(e,t,r,n),a=CRe(t,e,n,r);return[i,a]}function CRe(e,t,r,n){const i=f3e(e);if(r)return i[r];const a=Object.values(i);if(a.length===0)return;const o=a.map(u=>b5(u)),s=eur(t,n),[l]=tsr(o,s);return a.find(u=>b5(u)===l)}function eur(e,t){const r=f3e(e);if(t)return[b5(r[t])];const n=Object.values(r);return n.length>0?n.map(i=>b5(i)):[e.getCenter()]}function IRe(e,t){return c3e(e)||zL(e)?n2e(e,t):cN(e,t)}function cN(e,t){if(!e||!t)return[0,0,0];if(a7(e))return e;if(e.attributes.linkToCenter)return e.getPosition();const r=a7(t)?t:zL(t)?t.getCenter():t.getPosition();return aX(r,e.getBounds())}function n2e(e,t){if(!e||!t)return[0,0,0];const r=a7(t)?t:zL(t)?t.getCenter():t.getPosition();return e.getIntersectPoint(r)||e.getCenter()}function ERe(e,t="bottom",r=0,n=0,i=!1){const a=t.split("-"),[o,s]=yE(e,t),[l,u]=i?["bottom","top"]:["top","bottom"],c=a.includes("top")?u:a.includes("bottom")?l:"middle",A=a.includes("left")?"right":a.includes("right")?"left":"center";return{transform:[["translate",o+r,s+n]],textBaseline:c,textAlign:A}}function tur(e,t){return[[0,-e],[t*Math.cos(3*Math.PI/10),-t*Math.sin(3*Math.PI/10)],[e*Math.cos(Math.PI/10),-e*Math.sin(Math.PI/10)],[t*Math.cos(Math.PI/10),t*Math.sin(Math.PI/10)],[e*Math.cos(3*Math.PI/10),e*Math.sin(3*Math.PI/10)],[0,t],[-e*Math.cos(3*Math.PI/10),e*Math.sin(3*Math.PI/10)],[-t*Math.cos(Math.PI/10),t*Math.sin(Math.PI/10)],[-e*Math.cos(Math.PI/10),-e*Math.sin(Math.PI/10)],[-t*Math.cos(3*Math.PI/10),-t*Math.sin(3*Math.PI/10)]]}function rur(e,t){const r={};return r.top=[0,-e],r.left=[-e*Math.cos(Math.PI/10),-e*Math.sin(Math.PI/10)],r["left-bottom"]=[-e*Math.cos(3*Math.PI/10),e*Math.sin(3*Math.PI/10)],r.bottom=[0,t],r["right-bottom"]=[e*Math.cos(3*Math.PI/10),e*Math.sin(3*Math.PI/10)],r.right=r.default=[e*Math.cos(Math.PI/10),-e*Math.sin(Math.PI/10)],r}function nur(e,t,r){const n=t/2,i=e/2,a={up:[[-i,n],[i,n],[0,-n]],left:[[-i,0],[i,n],[i,-n]],right:[[-i,n],[-i,-n],[i,0]],down:[[-i,-n],[i,-n],[0,n]]};return a[r]||a.up}function iur(e,t,r){const n=t/2,i=e/2,a={};return r==="down"?(a.bottom=a.default=[0,n],a.right=[i,-n],a.left=[-i,-n]):r==="left"?(a.top=[i,-n],a.bottom=[i,n],a.left=a.default=[-i,0]):r==="right"?(a.top=[-i,-n],a.bottom=[-i,n],a.right=a.default=[i,0]):(a.left=[-i,n],a.top=a.default=[0,-n],a.right=[i,n]),a}function aur(e,t){return[[0,-t/2],[e/2,0],[0,t/2],[-e/2,0]]}function rdt(e){return G0(e,["style","visibility"])!=="hidden"}function our(e,t){const{zIndex:r,transform:n,transformOrigin:i,visibility:a,cursor:o,clipPath:s,component:l}=t,u=Ylr(t,["zIndex","transform","transformOrigin","visibility","cursor","clipPath","component"]);Object.assign(e.attributes,u),n&&e.setAttribute("transform",n),go(r)&&e.setAttribute("zIndex",r),i&&e.setAttribute("transformOrigin",i),a&&e.setAttribute("visibility",a),o&&e.setAttribute("cursor",o),s&&e.setAttribute("clipPath",s),l&&e.setAttribute("component",l)}function i2e(e,t){"update"in e?e.update(t):e.attr(t)}function sur(e){return[[0,e],[e*Math.sqrt(3)/2,e/2],[e*Math.sqrt(3)/2,-e/2],[0,-e],[-e*Math.sqrt(3)/2,-e/2],[-e*Math.sqrt(3)/2,e/2]]}function lur(e){tN(e,"__to_be_destroyed__",!0)}function KL(e){return G0(e,"__to_be_destroyed__",!1)}var uur=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(c){try{u(n.next(c))}catch(A){o(A)}}function l(c){try{u(n.throw(c))}catch(A){o(A)}}function u(c){c.done?a(c.value):i(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};class dX extends g1{constructor(t,r){super(t,Object.assign({},dX.defaultOptions,r)),this.onCollapseExpand=n=>uur(this,void 0,void 0,function*(){if(!this.validate(n))return;const{target:i}=n;if(!qlr(i))return;const a=i.id,{model:o,graph:s}=this.context,l=o.getElementDataById(a);if(!l)return!1;const{onCollapse:u,onExpand:c,animation:A,align:f}=this.options;Wv(l)?(yield s.expandElement(a,{animation:A,align:f}),c==null||c(a)):(yield s.collapseElement(a,{animation:A,align:f}),u==null||u(a))}),this.bindEvents()}update(t){this.unbindEvents(),super.update(t),this.bindEvents()}bindEvents(){const{graph:t}=this.context,{trigger:r}=this.options;t.on(`node:${r}`,this.onCollapseExpand),t.on(`combo:${r}`,this.onCollapseExpand)}unbindEvents(){const{graph:t}=this.context,{trigger:r}=this.options;t.off(`node:${r}`,this.onCollapseExpand),t.off(`combo:${r}`,this.onCollapseExpand)}validate(t){if(this.destroyed)return!1;const{enable:r}=this.options;return xo(r)?r(t):!!r}destroy(){this.unbindEvents(),super.destroy()}}dX.defaultOptions={enable:!0,animation:!0,trigger:Ei.DBLCLICK,align:!0};var qG=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(c){try{u(n.next(c))}catch(A){o(A)}}function l(c){try{u(n.throw(c))}catch(A){o(A)}}function u(c){c.done?a(c.value):i(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};const cur="g6-create-edge-assist-edge-id",JG="g6-create-edge-assist-node-id";class gX extends g1{constructor(t,r){super(t,Object.assign({},gX.defaultOptions,r)),this.drop=n=>qG(this,void 0,void 0,function*(){const{targetType:i}=n;["combo","node"].includes(i)&&this.source?yield this.handleCreateEdge(n):yield this.cancelEdge()}),this.handleCreateEdge=n=>qG(this,void 0,void 0,function*(){var i,a,o;if(!this.validate(n))return;const{graph:s,canvas:l,batch:u,element:c}=this.context,{style:A}=this.options;if(this.source){this.createEdge(n),yield this.cancelEdge();return}u.startBatch(),l.setCursor("crosshair"),this.source=this.getSelectedNodeIDs([n.target.id])[0];const f=s.getElementData(this.source);s.addNodeData([{id:JG,style:{visibility:"hidden",ports:[{key:"port-1",placement:[.5,.5]}],x:(i=f.style)===null||i===void 0?void 0:i.x,y:(a=f.style)===null||a===void 0?void 0:a.y}}]),s.addEdgeData([{id:cur,source:this.source,target:JG,style:Object.assign({pointerEvents:"none"},A)}]),yield(o=c.draw({animation:!1}))===null||o===void 0?void 0:o.finished}),this.updateAssistEdge=n=>qG(this,void 0,void 0,function*(){var i;if(!this.source)return;const{model:a,element:o}=this.context;a.translateNodeTo(JG,[n.canvas.x,n.canvas.y]),yield(i=o.draw({animation:!1,silence:!0}))===null||i===void 0?void 0:i.finished}),this.createEdge=n=>{var i,a;const{graph:o}=this.context,{style:s,onFinish:l,onCreate:u}=this.options;if(((i=n.target)===null||i===void 0?void 0:i.id)===void 0||this.source===void 0)return;const A=(a=this.getSelectedNodeIDs([n.target.id]))===null||a===void 0?void 0:a[0],f=`${this.source}-${A}-${Ger()}`,h=u({id:f,source:this.source,target:A,style:s});h&&(o.addEdgeData([h]),l(h))},this.cancelEdge=()=>qG(this,void 0,void 0,function*(){var n;if(!this.source)return;const{graph:i,element:a,batch:o}=this.context;i.removeNodeData([JG]),this.source=void 0,yield(n=a.draw({animation:!1}))===null||n===void 0?void 0:n.finished,o.endBatch()}),this.bindEvents()}update(t){super.update(t),this.bindEvents()}bindEvents(){const{graph:t}=this.context,{trigger:r}=this.options;this.unbindEvents(),r==="click"?(t.on(py.CLICK,this.handleCreateEdge),t.on(Ck.CLICK,this.handleCreateEdge),t.on(ZE.CLICK,this.cancelEdge),t.on(qW.CLICK,this.cancelEdge)):(t.on(py.DRAG_START,this.handleCreateEdge),t.on(Ck.DRAG_START,this.handleCreateEdge),t.on(Ei.POINTER_UP,this.drop)),t.on(Ei.POINTER_MOVE,this.updateAssistEdge)}getSelectedNodeIDs(t){return Array.from(new Set(this.context.graph.getElementDataByState("node",this.options.state).map(r=>r.id).concat(t)))}validate(t){if(this.destroyed)return!1;const{enable:r}=this.options;return xo(r)?r(t):!!r}unbindEvents(){const{graph:t}=this.context;t.off(py.CLICK,this.handleCreateEdge),t.off(Ck.CLICK,this.handleCreateEdge),t.off(ZE.CLICK,this.cancelEdge),t.off(qW.CLICK,this.cancelEdge),t.off(py.DRAG_START,this.handleCreateEdge),t.off(Ck.DRAG_START,this.handleCreateEdge),t.off(Ei.POINTER_UP,this.drop),t.off(Ei.POINTER_MOVE,this.updateAssistEdge)}destroy(){this.unbindEvents(),super.destroy()}}gX.defaultOptions={animation:!0,enable:!0,style:{},trigger:"drag",onCreate:e=>e,onFinish:()=>{}};var BRe=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(c){try{u(n.next(c))}catch(A){o(A)}}function l(c){try{u(n.throw(c))}catch(A){o(A)}}function u(c){c.done?a(c.value):i(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};class pX extends g1{constructor(t,r){super(t,Object.assign({},pX.defaultOptions,r)),this.isDragging=!1,this.onDragStart=n=>{this.validate(n)&&(this.isDragging=!0,this.context.canvas.setCursor("grabbing"))},this.onDrag=n=>{var i,a,o,s;if(!this.isDragging||vh.isPinching)return;const l=(a=(i=n.movement)===null||i===void 0?void 0:i.x)!==null&&a!==void 0?a:n.dx,u=(s=(o=n.movement)===null||o===void 0?void 0:o.y)!==null&&s!==void 0?s:n.dy;l|u&&this.translate([l,u],!1)},this.onDragEnd=()=>{var n,i;this.isDragging=!1,this.context.canvas.setCursor(this.defaultCursor),(i=(n=this.options).onFinish)===null||i===void 0||i.call(n)},this.invokeOnFinish=FL(()=>{var n,i;(i=(n=this.options).onFinish)===null||i===void 0||i.call(n)},300),this.shortcut=new q7(t.graph),this.bindEvents(),this.defaultCursor=this.context.canvas.getConfig().cursor||"default"}update(t){this.unbindEvents(),super.update(t),this.bindEvents()}bindEvents(){const{trigger:t}=this.options;if(Bh(t)){const{up:r=[],down:n=[],left:i=[],right:a=[]}=t;this.shortcut.bind(r,o=>this.onTranslate([0,1],o)),this.shortcut.bind(n,o=>this.onTranslate([0,-1],o)),this.shortcut.bind(i,o=>this.onTranslate([1,0],o)),this.shortcut.bind(a,o=>this.onTranslate([-1,0],o))}else{const{graph:r}=this.context;r.on(Ei.DRAG_START,this.onDragStart),r.on(Ei.DRAG,this.onDrag),r.on(Ei.DRAG_END,this.onDragEnd)}}onTranslate(t,r){return BRe(this,void 0,void 0,function*(){if(!this.validate(r))return;const{sensitivity:n}=this.options,i=n*-1;yield this.translate(Gb(t,i),this.options.animation),this.invokeOnFinish()})}translate(t,r){return BRe(this,void 0,void 0,function*(){t=this.clampByDirection(t),t=this.clampByRange(t),t=this.clampByRotation(t),yield this.context.graph.translateBy(t,r)})}clampByRotation([t,r]){const n=this.context.graph.getRotation();if(n%360===0)return[t,r];const i=n*Math.PI/180,a=Math.cos(i),o=Math.sin(i);return[t*a-r*o,t*o+r*a]}clampByDirection([t,r]){const{direction:n}=this.options;return n==="x"?r=0:n==="y"&&(t=0),[t,r]}clampByRange([t,r]){const{viewport:n,canvas:i}=this.context,[a,o]=i.getSize(),[s,l,u,c]=FC(this.options.range),A=[o*s,a*l,o*u,a*c],f=V5(Jxe(n.getCanvasCenter()),A),h=Oc(n.getViewportCenter(),[t,r,0]);if(!a2(h,f)){const{min:[g,p],max:[m,b]}=f;(h[0]0||h[0]>m&&t<0)&&(t=0),(h[1]0||h[1]>b&&r<0)&&(r=0)}return[t,r]}validate(t){if(this.destroyed)return!1;const{enable:r}=this.options;return typeof r=="function"?r(t):!!r}unbindEvents(){this.shortcut.unbindAll();const{graph:t}=this.context;t.off(Ei.DRAG_START,this.onDragStart),t.off(Ei.DRAG,this.onDrag),t.off(Ei.DRAG_END,this.onDragEnd)}destroy(){this.shortcut.destroy(),this.unbindEvents(),this.context.canvas.setCursor(this.defaultCursor),super.destroy()}}pX.defaultOptions={enable:e=>"targetType"in e?e.targetType==="canvas":!0,sensitivity:10,direction:"both",range:1/0};var xRe=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(c){try{u(n.next(c))}catch(A){o(A)}}function l(c){try{u(n.throw(c))}catch(A){o(A)}}function u(c){c.done?a(c.value):i(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};class VL extends g1{constructor(t,r){super(t,Object.assign({},VL.defaultOptions,r)),this.enable=!1,this.enableElements=["node","combo"],this.target=[],this.shadowOrigin=[0,0],this.hiddenEdges=[],this.isDragging=!1,this.onDrop=n=>xRe(this,void 0,void 0,function*(){var i;if(this.options.dropEffect!=="link")return;const{model:a,element:o}=this.context,s=n.target.id;this.target.forEach(l=>{const u=a.getParentData(l,Gc);u&&Gn(u)===s&&a.refreshComboData(s),a.setParent(l,s,Gc)}),yield(i=o==null?void 0:o.draw({animation:!0}))===null||i===void 0?void 0:i.finished}),this.setCursor=n=>{if(this.isDragging)return;const{type:i}=n,{canvas:a}=this.context,{cursor:o}=this.options;i===Ei.POINTER_ENTER?a.setCursor((o==null?void 0:o.grab)||"grab"):a.setCursor((o==null?void 0:o.default)||"default")},this.onDragStart=this.onDragStart.bind(this),this.onDrag=this.onDrag.bind(this),this.onDragEnd=this.onDragEnd.bind(this),this.onDrop=this.onDrop.bind(this),this.bindEvents()}update(t){this.unbindEvents(),super.update(t),this.bindEvents()}bindEvents(){const{graph:t,canvas:r}=this.context,n=r.getLayer().getContextService().$canvas;n&&(n.addEventListener("blur",this.onDragEnd),n.addEventListener("contextmenu",this.onDragEnd)),this.enableElements.forEach(i=>{t.on(`${i}:${Ei.DRAG_START}`,this.onDragStart),t.on(`${i}:${Ei.DRAG}`,this.onDrag),t.on(`${i}:${Ei.DRAG_END}`,this.onDragEnd),t.on(`${i}:${Ei.POINTER_ENTER}`,this.setCursor),t.on(`${i}:${Ei.POINTER_LEAVE}`,this.setCursor)}),["link"].includes(this.options.dropEffect)&&(t.on(Ck.DROP,this.onDrop),t.on(ZE.DROP,this.onDrop))}getSelectedNodeIDs(t){return Array.from(new Set(this.context.graph.getElementDataByState("node",this.options.state).map(r=>r.id).concat(t)))}getDelta(t){const r=this.context.graph.getZoom();return o2([t.dx,t.dy],r)}onDragStart(t){var r;if(this.enable=this.validate(t),!this.enable)return;const{batch:n,canvas:i,graph:a}=this.context;i.setCursor(((r=this.options.cursor)===null||r===void 0?void 0:r.grabbing)||"grabbing"),this.isDragging=!0,n.startBatch();const o=t.target.id;a.getElementState(o).includes(this.options.state)?this.target=this.getSelectedNodeIDs([o]):this.target=[o],this.hideEdge(),this.context.graph.frontElement(this.target),this.options.shadow&&this.createShadow(this.target)}onDrag(t){if(!this.enable)return;const r=this.getDelta(t);this.options.shadow?this.moveShadow(r):this.moveElement(this.target,r)}onDragEnd(){var t,r,n;if(!this.enable)return;if(this.enable=!1,this.options.shadow){if(!this.shadow)return;this.shadow.style.visibility="hidden";const{x:o=0,y:s=0}=this.shadow.attributes,[l,u]=Oc([+o,+s],this.shadowOrigin);this.moveElement(this.target,[l,u])}this.showEdges(),(r=(t=this.options).onFinish)===null||r===void 0||r.call(t,this.target);const{batch:i,canvas:a}=this.context;i.endBatch(),a.setCursor(((n=this.options.cursor)===null||n===void 0?void 0:n.grab)||"grab"),this.isDragging=!1,this.target=[]}validate(t){if(this.destroyed||KL(t.target)||this.context.graph.isCollapsingExpanding)return!1;const{enable:r}=this.options;return xo(r)?r(t):!!r}moveElement(t,r){return xRe(this,void 0,void 0,function*(){const{graph:n,model:i}=this.context,{dropEffect:a}=this.options;a==="move"&&t.forEach(o=>i.refreshComboData(o)),n.translateElementBy(Object.fromEntries(t.map(o=>[o,r])),!1)})}moveShadow(t){if(!this.shadow)return;const{x:r=0,y:n=0}=this.shadow.attributes,[i,a]=t;this.shadow.attr({x:+r+i,y:+n+a})}createShadow(t){const r=sd(this.options,"shadow"),n=UL(t.map(u=>this.context.element.getElement(u).getBounds())),[i,a]=n.min;this.shadowOrigin=[i,a];const[o,s]=K5(n),l={width:o,height:s,x:i,y:a};this.shadow?this.shadow.attr(Object.assign(Object.assign(Object.assign({},r),l),{visibility:"visible"})):(this.shadow=new op({style:Object.assign(Object.assign(Object.assign({$layer:"transient"},r),l),{pointerEvents:"none"})}),this.context.canvas.appendChild(this.shadow))}showEdges(){this.options.shadow||this.hiddenEdges.length===0||(this.context.graph.showElement(this.hiddenEdges),this.hiddenEdges=[])}hideEdge(){const{hideEdge:t,shadow:r}=this.options;if(t==="none"||r)return;const{graph:n}=this.context;t==="all"?this.hiddenEdges=n.getEdgeData().map(Gn):this.hiddenEdges=Array.from(new Set(this.target.map(i=>n.getRelatedEdgesData(i,t).map(Gn)).flat())),n.hideElement(this.hiddenEdges)}unbindEvents(){const{graph:t,canvas:r}=this.context,n=r.getLayer().getContextService().$canvas;n&&(n.removeEventListener("blur",this.onDragEnd),n.removeEventListener("contextmenu",this.onDragEnd)),this.enableElements.forEach(i=>{t.off(`${i}:${Ei.DRAG_START}`,this.onDragStart),t.off(`${i}:${Ei.DRAG}`,this.onDrag),t.off(`${i}:${Ei.DRAG_END}`,this.onDragEnd),t.off(`${i}:${Ei.POINTER_ENTER}`,this.setCursor),t.off(`${i}:${Ei.POINTER_LEAVE}`,this.setCursor)}),t.off(`combo:${Ei.DROP}`,this.onDrop),t.off(`canvas:${Ei.DROP}`,this.onDrop)}destroy(){var t;this.unbindEvents(),(t=this.shadow)===null||t===void 0||t.destroy(),super.destroy()}}VL.defaultOptions={animation:!0,enable:e=>["node","combo"].includes(e.targetType),dropEffect:"move",state:"selected",hideEdge:"none",shadow:!1,shadowZIndex:100,shadowFill:"#F3F9FF",shadowFillOpacity:.5,shadowStroke:"#1890FF",shadowStrokeOpacity:.9,shadowLineDash:[5,5],cursor:{default:"default",grab:"grab",grabbing:"grabbing"}};var Aur="*",vX=function(){function e(){this._events={}}return e.prototype.on=function(t,r,n){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:r,once:!!n}),this},e.prototype.once=function(t,r){return this.on(t,r,!0)},e.prototype.emit=function(t){for(var r=this,n=[],i=1;i{t.has(o.id)||(t.add(o.id),e.push(o))})}return!1}function iY(e,t,r,n){if(r(e))return!0;t.add(e.id);for(const a of n(e.id))if(!t.has(a.id)&&iY(a,t,r,n))return!0;return!1}const SRe=()=>!0;let fur=class{constructor(t){RA(this,"graph");RA(this,"nodeFilter");RA(this,"edgeFilter");RA(this,"cacheEnabled");RA(this,"inEdgesMap",new Map);RA(this,"outEdgesMap",new Map);RA(this,"bothEdgesMap",new Map);RA(this,"allNodesMap",new Map);RA(this,"allEdgesMap",new Map);RA(this,"clearCache",()=>{this.inEdgesMap.clear(),this.outEdgesMap.clear(),this.bothEdgesMap.clear(),this.allNodesMap.clear(),this.allEdgesMap.clear()});RA(this,"refreshCache",()=>{this.clearCache(),this.updateCache(this.graph.getAllNodes().map(t=>t.id))});RA(this,"updateCache",t=>{const r=new Set;t.forEach(n=>{const i=this.bothEdgesMap.get(n);if(i&&i.forEach(a=>r.add(a.id)),!this.hasNode(n))this.inEdgesMap.delete(n),this.outEdgesMap.delete(n),this.bothEdgesMap.delete(n),this.allNodesMap.delete(n);else{const a=this.graph.getRelatedEdges(n,"in").filter(this.edgeFilter),o=this.graph.getRelatedEdges(n,"out").filter(this.edgeFilter),s=Array.from(new Set([...a,...o]));s.forEach(l=>r.add(l.id)),this.inEdgesMap.set(n,a),this.outEdgesMap.set(n,o),this.bothEdgesMap.set(n,s),this.allNodesMap.set(n,this.graph.getNode(n))}}),r.forEach(n=>{this.hasEdge(n)?this.allEdgesMap.set(n,this.graph.getEdge(n)):this.allEdgesMap.delete(n)})});RA(this,"handleGraphChanged",t=>{const r=new Set;t.changes.forEach(n=>{switch(n.type){case"NodeAdded":r.add(n.value.id);break;case"NodeDataUpdated":r.add(n.id);break;case"EdgeAdded":r.add(n.value.source),r.add(n.value.target);break;case"EdgeUpdated":(n.propertyName==="source"||n.propertyName==="target")&&(r.add(n.oldValue),r.add(n.newValue));break;case"EdgeDataUpdated":if(t.graph.hasEdge(n.id)){const i=t.graph.getEdge(n.id);r.add(i.source),r.add(i.target)}break;case"EdgeRemoved":r.add(n.value.source),r.add(n.value.target);break;case"NodeRemoved":r.add(n.value.id);break}}),this.updateCache(r)});this.graph=t.graph;const r=t.nodeFilter||SRe,n=t.edgeFilter||SRe;this.nodeFilter=r,this.edgeFilter=i=>{const{source:a,target:o}=this.graph.getEdgeDetail(i.id);return!r(a)||!r(o)?!1:n(i,a,o)},t.cache==="auto"?(this.cacheEnabled=!0,this.startAutoCache()):t.cache==="manual"?this.cacheEnabled=!0:this.cacheEnabled=!1}startAutoCache(){this.refreshCache(),this.graph.on("changed",this.handleGraphChanged)}stopAutoCache(){this.graph.off("changed",this.handleGraphChanged)}checkNodeExistence(t){this.getNode(t)}hasNode(t){if(!this.graph.hasNode(t))return!1;const r=this.graph.getNode(t);return this.nodeFilter(r)}areNeighbors(t,r){return this.checkNodeExistence(t),this.getNeighbors(r).some(n=>n.id===t)}getNode(t){const r=this.graph.getNode(t);if(!this.nodeFilter(r))throw new Error("Node not found for id: "+t);return r}getRelatedEdges(t,r){return this.checkNodeExistence(t),this.cacheEnabled?r==="in"?this.inEdgesMap.get(t):r==="out"?this.outEdgesMap.get(t):this.bothEdgesMap.get(t):this.graph.getRelatedEdges(t,r).filter(this.edgeFilter)}getDegree(t,r){return this.getRelatedEdges(t,r).length}getSuccessors(t){const n=this.getRelatedEdges(t,"out").map(i=>this.getNode(i.target));return Array.from(new Set(n))}getPredecessors(t){const n=this.getRelatedEdges(t,"in").map(i=>this.getNode(i.source));return Array.from(new Set(n))}getNeighbors(t){const r=this.getPredecessors(t),n=this.getSuccessors(t);return Array.from(new Set([...r,...n]))}hasEdge(t){if(!this.graph.hasEdge(t))return!1;const r=this.graph.getEdge(t);return this.edgeFilter(r)}getEdge(t){const r=this.graph.getEdge(t);if(!this.edgeFilter(r))throw new Error("Edge not found for id: "+t);return r}getEdgeDetail(t){const r=this.getEdge(t);return{edge:r,source:this.getNode(r.source),target:this.getNode(r.target)}}hasTreeStructure(t){return this.graph.hasTreeStructure(t)}getRoots(t){return this.graph.getRoots(t).filter(this.nodeFilter)}getChildren(t,r){return this.checkNodeExistence(t),this.graph.getChildren(t,r).filter(this.nodeFilter)}getParent(t,r){this.checkNodeExistence(t);const n=this.graph.getParent(t,r);return!n||!this.nodeFilter(n)?null:n}getAllNodes(){return this.cacheEnabled?Array.from(this.allNodesMap.values()):this.graph.getAllNodes().filter(this.nodeFilter)}getAllEdges(){return this.cacheEnabled?Array.from(this.allEdgesMap.values()):this.graph.getAllEdges().filter(this.edgeFilter)}bfs(t,r,n="out"){const i={in:this.getPredecessors.bind(this),out:this.getSuccessors.bind(this),both:this.getNeighbors.bind(this)}[n];a2e([this.getNode(t)],new Set,r,i)}dfs(t,r,n="out"){const i={in:this.getPredecessors.bind(this),out:this.getSuccessors.bind(this),both:this.getNeighbors.bind(this)}[n];iY(this.getNode(t),new Set,r,i)}},Kd=class ndt extends vX{constructor(r){super();RA(this,"nodeMap",new Map);RA(this,"edgeMap",new Map);RA(this,"inEdgesMap",new Map);RA(this,"outEdgesMap",new Map);RA(this,"bothEdgesMap",new Map);RA(this,"treeIndices",new Map);RA(this,"changes",[]);RA(this,"batchCount",0);RA(this,"onChanged",()=>{});RA(this,"batch",r=>{this.batchCount+=1,r(),this.batchCount-=1,this.batchCount||this.commit()});r&&(r.nodes&&this.addNodes(r.nodes),r.edges&&this.addEdges(r.edges),r.tree&&this.addTree(r.tree),r.onChanged&&(this.onChanged=r.onChanged))}commit(){const r=this.changes;this.changes=[];const n={graph:this,changes:r};this.emit("changed",n),this.onChanged(n)}reduceChanges(r){let n=[];return r.forEach(i=>{switch(i.type){case"NodeRemoved":{let a=!1;n=n.filter(o=>{if(o.type==="NodeAdded"){const s=o.value.id===i.value.id;return s&&(a=!0),!s}else{if(o.type==="NodeDataUpdated")return o.id!==i.value.id;if(o.type==="TreeStructureChanged")return o.nodeId!==i.value.id}return!0}),a||n.push(i);break}case"EdgeRemoved":{let a=!1;n=n.filter(o=>{if(o.type==="EdgeAdded"){const s=o.value.id===i.value.id;return s&&(a=!0),!s}else if(o.type==="EdgeDataUpdated"||o.type==="EdgeUpdated")return o.id!==i.value.id;return!0}),a||n.push(i);break}case"NodeDataUpdated":case"EdgeDataUpdated":case"EdgeUpdated":{const a=n.findIndex(s=>s.type===i.type&&s.id===i.id&&(i.propertyName===void 0||s.propertyName===i.propertyName)),o=n[a];o?i.propertyName!==void 0?o.newValue=i.newValue:(n.splice(a,1),n.push(i)):n.push(i);break}case"TreeStructureDetached":{n=n.filter(a=>a.type==="TreeStructureAttached"||a.type==="TreeStructureChanged"?a.treeKey!==i.treeKey:!0),n.push(i);break}case"TreeStructureChanged":{const a=n.find(o=>o.type==="TreeStructureChanged"&&o.treeKey===i.treeKey&&o.nodeId===i.nodeId);a?a.newParentId=i.newParentId:n.push(i);break}default:n.push(i);break}}),n}checkNodeExistence(r){this.getNode(r)}hasNode(r){return this.nodeMap.has(r)}areNeighbors(r,n){return this.getNeighbors(n).some(i=>i.id===r)}getNode(r){const n=this.nodeMap.get(r);if(!n)throw new Error("Node not found for id: "+r);return n}getRelatedEdges(r,n){if(this.checkNodeExistence(r),n==="in"){const i=this.inEdgesMap.get(r);return Array.from(i)}else if(n==="out"){const i=this.outEdgesMap.get(r);return Array.from(i)}else{const i=this.bothEdgesMap.get(r);return Array.from(i)}}getDegree(r,n){return this.getRelatedEdges(r,n).length}getSuccessors(r){const i=this.getRelatedEdges(r,"out").map(a=>this.getNode(a.target));return Array.from(new Set(i))}getPredecessors(r){const i=this.getRelatedEdges(r,"in").map(a=>this.getNode(a.source));return Array.from(new Set(i))}getNeighbors(r){const n=this.getPredecessors(r),i=this.getSuccessors(r);return Array.from(new Set([...n,...i]))}doAddNode(r){if(this.hasNode(r.id))throw new Error("Node already exists: "+r.id);this.nodeMap.set(r.id,r),this.inEdgesMap.set(r.id,new Set),this.outEdgesMap.set(r.id,new Set),this.bothEdgesMap.set(r.id,new Set),this.treeIndices.forEach(n=>{n.childrenMap.set(r.id,new Set)}),this.changes.push({type:"NodeAdded",value:r})}addNodes(r){this.batch(()=>{for(const n of r)this.doAddNode(n)})}addNode(r){this.addNodes([r])}doRemoveNode(r){const n=this.getNode(r),i=this.bothEdgesMap.get(r);i==null||i.forEach(a=>this.doRemoveEdge(a.id)),this.nodeMap.delete(r),this.treeIndices.forEach(a=>{var s,l;(s=a.childrenMap.get(r))==null||s.forEach(u=>{a.parentMap.delete(u.id)});const o=a.parentMap.get(r);o&&((l=a.childrenMap.get(o.id))==null||l.delete(n)),a.parentMap.delete(r),a.childrenMap.delete(r)}),this.bothEdgesMap.delete(r),this.inEdgesMap.delete(r),this.outEdgesMap.delete(r),this.changes.push({type:"NodeRemoved",value:n})}removeNodes(r){this.batch(()=>{r.forEach(n=>this.doRemoveNode(n))})}removeNode(r){this.removeNodes([r])}updateNodeDataProperty(r,n,i){const a=this.getNode(r);this.batch(()=>{const o=a.data[n],s=i;a.data[n]=s,this.changes.push({type:"NodeDataUpdated",id:r,propertyName:n,oldValue:o,newValue:s})})}mergeNodeData(r,n){this.batch(()=>{Object.entries(n).forEach(([i,a])=>{this.updateNodeDataProperty(r,i,a)})})}updateNodeData(...r){const n=r[0],i=this.getNode(n);if(typeof r[1]=="string"){this.updateNodeDataProperty(n,r[1],r[2]);return}let a;if(typeof r[1]=="function"){const o=r[1];a=o(i.data)}else typeof r[1]=="object"&&(a=r[1]);this.batch(()=>{const o=i.data,s=a;i.data=a,this.changes.push({type:"NodeDataUpdated",id:n,oldValue:o,newValue:s})})}checkEdgeExistence(r){if(!this.hasEdge(r))throw new Error("Edge not found for id: "+r)}hasEdge(r){return this.edgeMap.has(r)}getEdge(r){return this.checkEdgeExistence(r),this.edgeMap.get(r)}getEdgeDetail(r){const n=this.getEdge(r);return{edge:n,source:this.getNode(n.source),target:this.getNode(n.target)}}doAddEdge(r){if(this.hasEdge(r.id))throw new Error("Edge already exists: "+r.id);this.checkNodeExistence(r.source),this.checkNodeExistence(r.target),this.edgeMap.set(r.id,r);const n=this.inEdgesMap.get(r.target),i=this.outEdgesMap.get(r.source),a=this.bothEdgesMap.get(r.source),o=this.bothEdgesMap.get(r.target);n.add(r),i.add(r),a.add(r),o.add(r),this.changes.push({type:"EdgeAdded",value:r})}addEdges(r){this.batch(()=>{for(const n of r)this.doAddEdge(n)})}addEdge(r){this.addEdges([r])}doRemoveEdge(r){const n=this.getEdge(r),i=this.outEdgesMap.get(n.source),a=this.inEdgesMap.get(n.target),o=this.bothEdgesMap.get(n.source),s=this.bothEdgesMap.get(n.target);i.delete(n),a.delete(n),o.delete(n),s.delete(n),this.edgeMap.delete(r),this.changes.push({type:"EdgeRemoved",value:n})}removeEdges(r){this.batch(()=>{r.forEach(n=>this.doRemoveEdge(n))})}removeEdge(r){this.removeEdges([r])}updateEdgeSource(r,n){const i=this.getEdge(r);this.checkNodeExistence(n);const a=i.source,o=n;this.outEdgesMap.get(a).delete(i),this.bothEdgesMap.get(a).delete(i),this.outEdgesMap.get(o).add(i),this.bothEdgesMap.get(o).add(i),i.source=n,this.batch(()=>{this.changes.push({type:"EdgeUpdated",id:r,propertyName:"source",oldValue:a,newValue:o})})}updateEdgeTarget(r,n){const i=this.getEdge(r);this.checkNodeExistence(n);const a=i.target,o=n;this.inEdgesMap.get(a).delete(i),this.bothEdgesMap.get(a).delete(i),this.inEdgesMap.get(o).add(i),this.bothEdgesMap.get(o).add(i),i.target=n,this.batch(()=>{this.changes.push({type:"EdgeUpdated",id:r,propertyName:"target",oldValue:a,newValue:o})})}updateEdgeDataProperty(r,n,i){const a=this.getEdge(r);this.batch(()=>{const o=a.data[n],s=i;a.data[n]=s,this.changes.push({type:"EdgeDataUpdated",id:r,propertyName:n,oldValue:o,newValue:s})})}updateEdgeData(...r){const n=r[0],i=this.getEdge(n);if(typeof r[1]=="string"){this.updateEdgeDataProperty(n,r[1],r[2]);return}let a;if(typeof r[1]=="function"){const o=r[1];a=o(i.data)}else typeof r[1]=="object"&&(a=r[1]);this.batch(()=>{const o=i.data,s=a;i.data=a,this.changes.push({type:"EdgeDataUpdated",id:n,oldValue:o,newValue:s})})}mergeEdgeData(r,n){this.batch(()=>{Object.entries(n).forEach(([i,a])=>{this.updateEdgeDataProperty(r,i,a)})})}checkTreeExistence(r){if(!this.hasTreeStructure(r))throw new Error("Tree structure not found for treeKey: "+r)}hasTreeStructure(r){return this.treeIndices.has(r)}attachTreeStructure(r){this.treeIndices.has(r)||(this.treeIndices.set(r,{parentMap:new Map,childrenMap:new Map}),this.batch(()=>{this.changes.push({type:"TreeStructureAttached",treeKey:r})}))}detachTreeStructure(r){this.checkTreeExistence(r),this.treeIndices.delete(r),this.batch(()=>{this.changes.push({type:"TreeStructureDetached",treeKey:r})})}addTree(r,n){this.batch(()=>{this.attachTreeStructure(n);const i=[],a=Array.isArray(r)?r:[r];for(;a.length;){const o=a.shift();i.push(o),o.children&&a.push(...o.children)}this.addNodes(i),i.forEach(o=>{var s;(s=o.children)==null||s.forEach(l=>{this.setParent(l.id,o.id,n)})})})}getRoots(r){return this.checkTreeExistence(r),this.getAllNodes().filter(n=>!this.getParent(n.id,r))}getChildren(r,n){this.checkNodeExistence(r),this.checkTreeExistence(n);const a=this.treeIndices.get(n).childrenMap.get(r);return Array.from(a||[])}getParent(r,n){return this.checkNodeExistence(r),this.checkTreeExistence(n),this.treeIndices.get(n).parentMap.get(r)||null}getAncestors(r,n){const i=[];let a=this.getNode(r),o;for(;o=this.getParent(a.id,n);)i.push(o),a=o;return i}setParent(r,n,i){var c,A;this.checkTreeExistence(i);const a=this.treeIndices.get(i);if(!a)return;const o=this.getNode(r),s=a.parentMap.get(r);if((s==null?void 0:s.id)===n)return;if(n==null){s&&((c=a.childrenMap.get(s.id))==null||c.delete(o)),a.parentMap.delete(r);return}const l=this.getNode(n);a.parentMap.set(r,l),s&&((A=a.childrenMap.get(s.id))==null||A.delete(o));let u=a.childrenMap.get(l.id);u||(u=new Set,a.childrenMap.set(l.id,u)),u.add(o),this.batch(()=>{this.changes.push({type:"TreeStructureChanged",treeKey:i,nodeId:r,oldParentId:s==null?void 0:s.id,newParentId:l.id})})}dfsTree(r,n,i){const a=o=>this.getChildren(o,i);return iY(this.getNode(r),new Set,n,a)}bfsTree(r,n,i){const a=o=>this.getChildren(o,i);return a2e([this.getNode(r)],new Set,n,a)}getAllNodes(){return Array.from(this.nodeMap.values())}getAllEdges(){return Array.from(this.edgeMap.values())}bfs(r,n,i="out"){const a={in:this.getPredecessors.bind(this),out:this.getSuccessors.bind(this),both:this.getNeighbors.bind(this)}[i];return a2e([this.getNode(r)],new Set,n,a)}dfs(r,n,i="out"){const a={in:this.getPredecessors.bind(this),out:this.getSuccessors.bind(this),both:this.getNeighbors.bind(this)}[i];return iY(this.getNode(r),new Set,n,a)}clone(){const r=this.getAllNodes().map(a=>({...a,data:{...a.data}})),n=this.getAllEdges().map(a=>({...a,data:{...a.data}})),i=new ndt({nodes:r,edges:n});return this.treeIndices.forEach(({parentMap:a,childrenMap:o},s)=>{const l=new Map;a.forEach((c,A)=>{l.set(A,i.getNode(c.id))});const u=new Map;o.forEach((c,A)=>{u.set(A,new Set(Array.from(c).map(f=>i.getNode(f.id))))}),i.treeIndices.set(s,{parentMap:l,childrenMap:u})}),i}toJSON(){return JSON.stringify({nodes:this.getAllNodes(),edges:this.getAllEdges()})}createView(r){return new fur({graph:this,...r})}};class mX{constructor(t,r){this.context=t,this.options=r||{}}}var hur=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(c){try{u(n.next(c))}catch(A){o(A)}}function l(c){try{u(n.throw(c))}catch(A){o(A)}}function u(c){c.done?a(c.value):i(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})},dur=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{const a=i.data._isCombo?n.combos:n.nodes,{x:o,y:s,z:l=0}=i.data;a==null||a.push({id:i.id,style:{x:o,y:s,z:l}})}),r.forEach(i=>{const{id:a,source:o,target:s,data:{points:l=[],controlPoints:u=l.slice(1,l.length-1)}}=i;n.edges.push({id:a,source:o,target:s,style:Object.assign({},u!=null&&u.length?{controlPoints:u.map(Yg)}:{})})}),n}function vur(e,t){class r extends mX{constructor(i,a){if(super(i,a),this.instance=new e({}),this.id=this.instance.id,"stop"in this.instance&&"tick"in this.instance){const o=this.instance;this.stop=o.stop.bind(o),this.tick=s=>{const l=o.tick(s);return jK(l)}}}execute(i,a){return hur(this,void 0,void 0,function*(){return jK(yield this.instance.execute(this.graphData2LayoutModel(i),this.transformOptions(ip({},this.options,a))))})}transformOptions(i){if(!("onTick"in i))return i;const a=i.onTick;return i.onTick=o=>a(jK(o)),i}graphData2LayoutModel(i){const{nodes:a=[],edges:o=[],combos:s=[]}=i,l=a.map(h=>{const g=Gn(h),{data:p,style:m,combo:b}=h,C=dur(h,["data","style","combo"]),E={id:g,data:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},p),{data:p}),b?{parentId:b}:{}),{style:m}),C)};return m!=null&&m.x&&Object.assign(E.data,{x:m.x}),m!=null&&m.y&&Object.assign(E.data,{y:m.y}),m!=null&&m.z&&Object.assign(E.data,{z:m.z}),E}),u=new Map(l.map(h=>[h.id,h])),c=o.filter(h=>{const{source:g,target:p}=h;return u.has(g)&&u.has(p)}).map(h=>{const{source:g,target:p,data:m,style:b}=h;return{id:Gn(h),source:g,target:p,data:Object.assign({},m),style:Object.assign({},b)}}),A=s.map(h=>({id:Gn(h),data:Object.assign({_isCombo:!0},h.data),style:Object.assign({},h.style)})),f=new Kd({nodes:[...l,...A],edges:c});return t.model.model.hasTreeStructure(Gc)&&(f.attachTreeStructure(Gc),l.forEach(h=>{const g=t.model.model.getParent(h.id,Gc);g&&f.hasNode(g.id)&&f.setParent(h.id,g.id,Gc)})),f}}return r}function hse(e,t,...r){if(t in e)return e[t](...r);if("instance"in e){const n=e.instance;if(t in n)return n[t](...r)}return null}function kRe(e,t){if(t in e)return e[t];if("instance"in e){const r=e.instance;if(t in r)return r[t]}return null}var mur=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(c){try{u(n.next(c))}catch(A){o(A)}}function l(c){try{u(n.throw(c))}catch(A){o(A)}}function u(c){c.done?a(c.value):i(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};class yur extends VL{get forceLayoutInstance(){return this.context.layout.getLayoutInstance().find(t=>["d3-force","d3-force-3d"].includes(t==null?void 0:t.id))}validate(t){return this.context.layout?this.forceLayoutInstance?super.validate(t):(DC.warn("DragElementForce only works with d3-force or d3-force-3d layout"),!1):!1}moveElement(t,r){return mur(this,void 0,void 0,function*(){const n=this.forceLayoutInstance;this.context.graph.getNodeData(t).forEach((i,a)=>{const{x:o=0,y:s=0}=i.style||{};n&&hse(n,"setFixedPosition",t[a],[...cl([+o,+s],r)])})})}onDragStart(t){if(this.enable=this.validate(t),!this.enable)return;this.target=this.getSelectedNodeIDs([t.target.id]),this.hideEdge(),this.context.graph.frontElement(this.target);const r=this.forceLayoutInstance;r&&kRe(r,"simulation").alphaTarget(.3).restart(),this.context.graph.getNodeData(this.target).forEach(n=>{const{x:i=0,y:a=0}=n.style||{};r&&hse(r,"setFixedPosition",Gn(n),[+i,+a])})}onDrag(t){if(!this.enable)return;const r=this.getDelta(t);this.moveElement(this.target,r)}onDragEnd(){const t=this.forceLayoutInstance;t&&kRe(t,"simulation").alphaTarget(0),!this.options.fixed&&this.context.graph.getNodeData(this.target).forEach(r=>{t&&hse(t,"setFixedPosition",Gn(r),[null,null,null])})}}var QRe=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(c){try{u(n.next(c))}catch(A){o(A)}}function l(c){try{u(n.throw(c))}catch(A){o(A)}}function u(c){c.done?a(c.value):i(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};class yX extends g1{constructor(t,r){super(t,Object.assign({},yX.defaultOptions,r)),this.isZoomEvent=n=>!!(n.data&&"scale"in n.data),this.relatedEdgeToUpdate=new Set,this.zoom=this.context.graph.getZoom(),this.fixElementSize=n=>QRe(this,void 0,void 0,function*(){if(!this.validate(n))return;const{graph:i}=this.context,{state:a,nodeFilter:o,edgeFilter:s,comboFilter:l}=this.options,u=(a?i.getElementDataByState("node",a):i.getNodeData()).filter(o),c=(a?i.getElementDataByState("edge",a):i.getEdgeData()).filter(s),A=(a?i.getElementDataByState("combo",a):i.getComboData()).filter(l),f=this.isZoomEvent(n)?this.zoom=Math.max(.01,Math.min(n.data.scale,10)):this.zoom,h=[...u,...A];h.length>0&&h.forEach(g=>this.fixNodeLike(g,f)),this.updateRelatedEdges(),c.length>0&&c.forEach(g=>this.fixEdge(g,f))}),this.cachedStyles=new Map,this.getOriginalFieldValue=(n,i,a)=>{var o;const s=this.cachedStyles.get(n)||[],l=((o=s.find(u=>u.shape===i))===null||o===void 0?void 0:o.style)||{};return a in l||(l[a]=i.attributes[a],this.cachedStyles.set(n,[...s.filter(u=>u.shape!==i),{shape:i,style:l}])),l[a]},this.scaleEntireElement=(n,i,a)=>{i.setLocalScale(1/a);const o=this.cachedStyles.get(n)||[];o.push({shape:i}),this.cachedStyles.set(n,o)},this.scaleSpecificShapes=(n,i,a)=>{const o=ysr(n);(Array.isArray(a)?a:[a]).forEach(l=>{const{shape:u,fields:c}=l,A=typeof u=="function"?u(o):n.getShape(u);if(A){if(!c){this.scaleEntireElement(n.id,A,i);return}c.forEach(f=>{const h=this.getOriginalFieldValue(n.id,A,f);go(h)&&(A.style[f]=h/i)})}})},this.skipIfExceedViewport=n=>{const{viewport:i}=this.context;return!(i!=null&&i.isInViewport(n.getRenderBounds(),!1,30))},this.fixNodeLike=(n,i)=>{const a=Gn(n),{element:o,model:s}=this.context,l=o.getElement(a);if(!l||this.skipIfExceedViewport(l))return;s.getRelatedEdgesData(a).forEach(A=>this.relatedEdgeToUpdate.add(Gn(A)));const c=this.options[l.type];if(!c){this.scaleEntireElement(a,l,i);return}this.scaleSpecificShapes(l,i,c)},this.fixEdge=(n,i)=>{const a=Gn(n),o=this.context.element.getElement(a);if(!o||this.skipIfExceedViewport(o))return;const s=this.options.edge;if(!s){o.style.transformOrigin="center",this.scaleEntireElement(a,o,i);return}this.scaleSpecificShapes(o,i,s)},this.updateRelatedEdges=()=>{const{element:n}=this.context;this.relatedEdgeToUpdate.size>0&&this.relatedEdgeToUpdate.forEach(i=>{const a=n.getElement(i);a==null||a.update({})}),this.relatedEdgeToUpdate.clear()},this.resetTransform=n=>QRe(this,void 0,void 0,function*(){var i;!((i=n.data)===null||i===void 0)&&i.firstRender||(this.options.reset?this.restoreCachedStyles():this.fixElementSize({data:{scale:this.zoom}}))}),this.bindEvents()}restoreCachedStyles(){if(this.cachedStyles.size>0){this.cachedStyles.forEach(i=>{i.forEach(({shape:a,style:o})=>{if(Uw(o))a.setLocalScale(1);else{if(this.options.state)return;Object.entries(o).forEach(([s,l])=>a.style[s]=l)}})});const{graph:t,element:r}=this.context,n=Object.keys(Object.fromEntries(this.cachedStyles)).filter(i=>i&&t.getElementType(i)==="node");if(n.length>0){const i=new Set;n.forEach(a=>{t.getRelatedEdgesData(a).forEach(o=>i.add(Gn(o)))}),i.forEach(a=>{const o=r==null?void 0:r.getElement(a);o==null||o.update({})})}}}bindEvents(){const{graph:t}=this.context;t.on(Ta.AFTER_DRAW,this.resetTransform),t.on(Ta.AFTER_TRANSFORM,this.fixElementSize)}unbindEvents(){const{graph:t}=this.context;t.off(Ta.AFTER_DRAW,this.resetTransform),t.off(Ta.AFTER_TRANSFORM,this.fixElementSize)}validate(t){if(this.destroyed)return!1;const{enable:r}=this.options;return xo(r)?r(t):!!r}destroy(){this.unbindEvents(),super.destroy()}}yX.defaultOptions={enable:e=>e.data.scale<1,nodeFilter:()=>!0,edgeFilter:()=>!0,comboFilter:()=>!0,edge:[{shape:"key",fields:["lineWidth"]},{shape:"halo",fields:["lineWidth"]},{shape:"label"}],reset:!1};var bur=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(c){try{u(n.next(c))}catch(A){o(A)}}function l(c){try{u(n.throw(c))}catch(A){o(A)}}function u(c){c.done?a(c.value):i(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};class bX extends g1{constructor(t,r){super(t,Object.assign({},bX.defaultOptions,r)),this.focus=n=>bur(this,void 0,void 0,function*(){if(!this.validate(n))return;const{graph:i}=this.context;yield i.focusElement(n.target.id,this.options.animation)}),this.bindEvents()}bindEvents(){const{graph:t}=this.context;this.unbindEvents(),D6.forEach(r=>{t.on(`${r}:${Ei.CLICK}`,this.focus)})}validate(t){if(this.destroyed)return!1;const{enable:r}=this.options;return xo(r)?r(t):!!r}unbindEvents(){const{graph:t}=this.context;D6.forEach(r=>{t.off(`${r}:${Ei.CLICK}`,this.focus)})}destroy(){this.unbindEvents(),super.destroy()}}bX.defaultOptions={animation:{easing:"ease-in",duration:500},enable:!0};class wX extends g1{constructor(t,r){super(t,Object.assign({},wX.defaultOptions,r)),this.isFrozen=!1,this.toggleFrozen=n=>{this.isFrozen=n.type==="dragstart"},this.hoverElement=n=>{if(!this.validate(n))return;const i=n.type===Ei.POINTER_ENTER;this.updateElementsState(n,i);const{onHover:a,onHoverEnd:o}=this.options;i?a==null||a(n):o==null||o(n)},this.updateElementsState=(n,i)=>{if(!this.options.state&&!this.options.inactiveState)return;const{graph:a}=this.context,{state:o,animation:s,inactiveState:l}=this.options,u=this.getActiveIds(n),c={};if(o&&Object.assign(c,this.getElementsState(u,o,i)),l){const A=cht(a.getData(),!0).filter(f=>!u.includes(f));Object.assign(c,this.getElementsState(A,l,i))}a.setElementState(c,s)},this.getElementsState=(n,i,a)=>{const{graph:o}=this.context,s={};return n.forEach(l=>{const u=o.getElementState(l);a?s[l]=u.includes(i)?u:[...u,i]:s[l]=u.filter(c=>c!==i)}),s},this.bindEvents()}bindEvents(){const{graph:t}=this.context;this.unbindEvents(),D6.forEach(n=>{t.on(`${n}:${Ei.POINTER_ENTER}`,this.hoverElement),t.on(`${n}:${Ei.POINTER_LEAVE}`,this.hoverElement)});const r=this.context.canvas.document;r.addEventListener(`${Ei.DRAG_START}`,this.toggleFrozen),r.addEventListener(`${Ei.DRAG_END}`,this.toggleFrozen)}getActiveIds(t){const{graph:r}=this.context,{degree:n,direction:i}=this.options,a=t.target.id;return n?wht(r,t.targetType,a,typeof n=="function"?n(t):n,i):[a]}validate(t){if(this.destroyed||this.isFrozen||KL(t.target)||this.context.graph.isCollapsingExpanding)return!1;const{enable:r}=this.options;return xo(r)?r(t):!!r}unbindEvents(){const{graph:t}=this.context;D6.forEach(n=>{t.off(`${n}:${Ei.POINTER_ENTER}`,this.hoverElement),t.off(`${n}:${Ei.POINTER_LEAVE}`,this.hoverElement)});const r=this.context.canvas.document;r.removeEventListener(`${Ei.DRAG_START}`,this.toggleFrozen),r.removeEventListener(`${Ei.DRAG_END}`,this.toggleFrozen)}destroy(){this.unbindEvents(),super.destroy()}}wX.defaultOptions={animation:!1,enable:!0,degree:0,direction:"both",state:"active",inactiveState:void 0};class wur extends HL{onPointerDown(t){if(!super.validate(t)||!super.isKeydown()||this.points)return;const{canvas:r}=this.context;this.pathShape=new Jm({id:"g6-lasso-select",style:this.options.style}),r.appendChild(this.pathShape),this.points=[ZW(t)]}onPointerMove(t){var r;if(!this.points)return;const{immediately:n,mode:i}=this.options;this.points.push(ZW(t)),(r=this.pathShape)===null||r===void 0||r.setAttribute("d",dsr(this.points)),n&&i==="default"&&this.points.length>2&&super.updateElementsStates(this.points)}onPointerUp(){if(this.points){if(this.points.length<2){this.clearLasso();return}super.updateElementsStates(this.points),this.clearLasso()}}clearLasso(){var t;(t=this.pathShape)===null||t===void 0||t.remove(),this.pathShape=void 0,this.points=void 0}}class CX extends g1{constructor(t,r){super(t,Object.assign({},CX.defaultOptions,r)),this.hiddenShapes=[],this.isVisible=!0,this.setElementsVisibility=(n,i,a)=>{n.filter(Boolean).forEach(o=>{i==="hidden"&&!o.isVisible()?this.hiddenShapes.push(o):i==="visible"&&this.hiddenShapes.includes(o)?this.hiddenShapes.splice(this.hiddenShapes.indexOf(o),1):_6(o,i,a)})},this.filterShapes=(n,i)=>{if(xo(i))return o=>!i(n,o);const a=i==null?void 0:i[n];return o=>o.className?!(a!=null&&a.includes(o.className)):!0},this.hideShapes=n=>{if(!this.validate(n)||!this.isVisible)return;const{element:i}=this.context,{shapes:a={}}=this.options;this.setElementsVisibility(i.getNodes(),"hidden",this.filterShapes("node",a)),this.setElementsVisibility(i.getEdges(),"hidden",this.filterShapes("edge",a)),this.setElementsVisibility(i.getCombos(),"hidden",this.filterShapes("combo",a)),this.isVisible=!1},this.showShapes=FL(n=>{if(!this.validate(n)||this.isVisible)return;const{element:i}=this.context;this.setElementsVisibility(i.getNodes(),"visible"),this.setElementsVisibility(i.getEdges(),"visible"),this.setElementsVisibility(i.getCombos(),"visible"),this.isVisible=!0},this.options.debounce),this.bindEvents()}bindEvents(){const{graph:t}=this.context;t.on(Ta.BEFORE_TRANSFORM,this.hideShapes),t.on(Ta.AFTER_TRANSFORM,this.showShapes)}unbindEvents(){const{graph:t}=this.context;t.off(Ta.BEFORE_TRANSFORM,this.hideShapes),t.off(Ta.AFTER_TRANSFORM,this.showShapes)}validate(t){if(this.destroyed)return!1;const{enable:r}=this.options;return xo(r)?r(t):!!r}update(t){this.unbindEvents(),super.update(t),this.bindEvents()}destroy(){this.unbindEvents(),super.destroy()}}CX.defaultOptions={enable:!0,debounce:200,shapes:e=>e==="node"};var _Re=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(c){try{u(n.next(c))}catch(A){o(A)}}function l(c){try{u(n.throw(c))}catch(A){o(A)}}function u(c){c.done?a(c.value):i(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};class IX extends g1{constructor(t,r){super(t,Object.assign({},IX.defaultOptions,r)),this.onWheel=n=>_Re(this,void 0,void 0,function*(){this.options.preventDefault&&n.preventDefault();const i=n.deltaX,a=n.deltaY;yield this.scroll([-i,-a],n)}),this.shortcut=new q7(t.graph),this.bindEvents()}update(t){super.update(t),this.bindEvents()}bindEvents(){var t,r;const{trigger:n}=this.options;if(this.shortcut.unbindAll(),Bh(n)){(t=this.graphDom)===null||t===void 0||t.removeEventListener(Ei.WHEEL,this.onWheel);const{up:i=[],down:a=[],left:o=[],right:s=[]}=n;this.shortcut.bind(i,l=>this.scroll([0,-10],l)),this.shortcut.bind(a,l=>this.scroll([0,10],l)),this.shortcut.bind(o,l=>this.scroll([-10,0],l)),this.shortcut.bind(s,l=>this.scroll([10,0],l))}else(r=this.graphDom)===null||r===void 0||r.addEventListener(Ei.WHEEL,this.onWheel,{passive:!1})}get graphDom(){return this.context.graph.getCanvas().getContextService().getDomElement()}formatDisplacement(t){const{sensitivity:r}=this.options;return t=Gb(t,r),t=this.clampByDirection(t),t=this.clampByRange(t),t}clampByDirection([t,r]){const{direction:n}=this.options;return n==="x"?r=0:n==="y"&&(t=0),[t,r]}clampByRange([t,r]){const{viewport:n,canvas:i}=this.context,[a,o]=i.getSize(),[s,l,u,c]=FC(this.options.range),A=[o*s,a*l,o*u,a*c],f=V5(Jxe(n.getCanvasCenter()),A),h=Oc(n.getViewportCenter(),[t,r,0]);if(!a2(h,f)){const{min:[g,p],max:[m,b]}=f;(h[0]0||h[0]>m&&t<0)&&(t=0),(h[1]0||h[1]>b&&r<0)&&(r=0)}return[t,r]}scroll(t,r){return _Re(this,void 0,void 0,function*(){if(!this.validate(r))return;const{onFinish:n}=this.options,i=this.context.graph,a=this.formatDisplacement(t);yield i.translateBy(a,!1),n==null||n()})}validate(t){if(this.destroyed)return!1;const{enable:r}=this.options;return xo(r)?r(t):!!r}destroy(){var t;this.shortcut.destroy(),(t=this.graphDom)===null||t===void 0||t.removeEventListener(Ei.WHEEL,this.onWheel),super.destroy()}}IX.defaultOptions={enable:!0,sensitivity:1,preventDefault:!0,range:1/0};var TRe=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(c){try{u(n.next(c))}catch(A){o(A)}}function l(c){try{u(n.throw(c))}catch(A){o(A)}}function u(c){c.done?a(c.value):i(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};class EX extends g1{constructor(t,r){super(t,Object.assign({},EX.defaultOptions,r)),this.zoom=(n,i,a)=>TRe(this,void 0,void 0,function*(){if(!this.validate(i))return;const{graph:o}=this.context;let s=this.options.origin;!s&&"viewport"in i&&(s=Yg(i.viewport));const{sensitivity:l,onFinish:u}=this.options,c=1+Sf(n,-50,50)*l/100,A=o.getZoom();yield o.zoomTo(A*c,a,s),u==null||u()}),this.onReset=()=>TRe(this,void 0,void 0,function*(){yield this.context.graph.zoomTo(1,this.options.animation)}),this.preventDefault=n=>{this.options.preventDefault&&n.preventDefault()},this.shortcut=new q7(t.graph),this.bindEvents()}update(t){super.update(t),this.bindEvents()}bindEvents(){const{trigger:t}=this.options;if(this.shortcut.unbindAll(),Array.isArray(t))if(t.includes(Ei.PINCH))this.shortcut.bind([Ei.PINCH],r=>{this.zoom(r.scale,r,!1)});else{const r=this.context.canvas.getContainer();r==null||r.addEventListener(Ei.WHEEL,this.preventDefault),this.shortcut.bind([...t,Ei.WHEEL],n=>{const{deltaX:i,deltaY:a}=n;this.zoom(-(a??i),n,!1)})}if(typeof t=="object"){const{zoomIn:r=[],zoomOut:n=[],reset:i=[]}=t;this.shortcut.bind(r,a=>this.zoom(10,a,this.options.animation)),this.shortcut.bind(n,a=>this.zoom(-10,a,this.options.animation)),this.shortcut.bind(i,this.onReset)}}validate(t){if(this.destroyed)return!1;const{enable:r}=this.options;return xo(r)?r(t):!!r}destroy(){var t;this.shortcut.destroy(),(t=this.context.canvas.getContainer())===null||t===void 0||t.removeEventListener(Ei.WHEEL,this.preventDefault),super.destroy()}}EX.defaultOptions={animation:{duration:200},enable:!0,sensitivity:1,trigger:[],preventDefault:!0};var dse,DRe;function q5(){if(DRe)return dse;DRe=1;function e(t,r,n,i){return i===void 0&&(i="height"),n==="center"?(t[i]+r[i])/2:t.height}return dse={assign:Object.assign,getHeight:e},dse}var gse,FRe;function idt(){if(FRe)return gse;FRe=1;var e=q5(),t=18,r=t*2,n=t,i={getId:function(l){return l.id||l.name},getPreH:function(l){return l.preH||0},getPreV:function(l){return l.preV||0},getHGap:function(l){return l.hgap||n},getVGap:function(l){return l.vgap||n},getChildren:function(l){return l.children},getHeight:function(l){return l.height||r},getWidth:function(l){var u=l.label||" ";return l.width||u.split("").length*t}};function a(s,l){var u=this;if(u.vgap=u.hgap=0,s instanceof a)return s;u.data=s;var c=l.getHGap(s),A=l.getVGap(s);return u.preH=l.getPreH(s),u.preV=l.getPreV(s),u.width=l.getWidth(s),u.height=l.getHeight(s),u.width+=u.preH,u.height+=u.preV,u.id=l.getId(s),u.x=u.y=0,u.depth=0,u.children||(u.children=[]),u.addGap(c,A),u}e.assign(a.prototype,{isRoot:function(){return this.depth===0},isLeaf:function(){return this.children.length===0},addGap:function(l,u){var c=this;c.hgap+=l,c.vgap+=u,c.width+=2*l,c.height+=2*u},eachNode:function(l){for(var u=this,c=[u],A;A=c.shift();)l(A),c=A.children.concat(c)},DFTraverse:function(l){this.eachNode(l)},BFTraverse:function(l){for(var u=this,c=[u],A;A=c.shift();)l(A),c=c.concat(A.children)},getBoundingBox:function(){var l={left:Number.MAX_VALUE,top:Number.MAX_VALUE,width:0,height:0};return this.eachNode(function(u){l.left=Math.min(l.left,u.x),l.top=Math.min(l.top,u.y),l.width=Math.max(l.width,u.x+u.width),l.height=Math.max(l.height,u.y+u.height)}),l},translate:function(l,u){l===void 0&&(l=0),u===void 0&&(u=0),this.eachNode(function(c){c.x+=l,c.y+=u,c.x+=c.preH,c.y+=c.preV})},right2left:function(){var l=this,u=l.getBoundingBox();l.eachNode(function(c){c.x=c.x-(c.x-u.left)*2-c.width}),l.translate(u.width,0)},bottom2top:function(){var l=this,u=l.getBoundingBox();l.eachNode(function(c){c.y=c.y-(c.y-u.top)*2-c.height}),l.translate(0,u.height)}});function o(s,l,u){l===void 0&&(l={}),l=e.assign({},i,l);var c=new a(s,l),A=[c],f;if(!u&&!s.collapsed){for(;f=A.shift();)if(!f.data.collapsed){var h=l.getChildren(f.data),g=h?h.length:0;if(f.children=new Array(g),h&&g)for(var p=0;pz.low&&(z=z.nxt);var ae=Y+W.prelim+W.w-(q+ee.prelim);ae>0&&(q+=ae,f(P,j,z.index,ae));var se=p(W),de=p(ee);se<=de&&(W=g(W),W!==null&&(Y+=W.mod)),se>=de&&(ee=h(ee),ee!==null&&(q+=ee.mod))}!W&&ee?m(P,j,ee,q):W&&!ee&&b(P,j,W,Y)}function f(P,j,z,W){P.c[j].mod+=W,P.c[j].msel+=W,P.c[j].mser+=W,_(P,j,z,W)}function h(P){return P.cs===0?P.tl:P.c[0]}function g(P){return P.cs===0?P.tr:P.c[P.cs-1]}function p(P){return P.y+P.h}function m(P,j,z,W){var Y=P.c[0].el;Y.tl=z;var ee=W-z.mod-P.c[0].msel;Y.mod+=ee,Y.prelim-=ee,P.c[0].el=P.c[j].el,P.c[0].msel=P.c[j].msel}function b(P,j,z,W){var Y=P.c[j].er;Y.tr=z;var ee=W-z.mod-P.c[j].mser;Y.mod+=ee,Y.prelim-=ee,P.c[j].er=P.c[j-1].er,P.c[j].mser=P.c[j-1].mser}function C(P){P.prelim=(P.c[0].prelim+P.c[0].mod+P.c[P.cs-1].mod+P.c[P.cs-1].prelim+P.c[P.cs-1].w)/2-P.w/2}function E(P,j){j+=P.mod,P.x=P.prelim+j,F(P);for(var z=0;z=z.low;)z=z.nxt;return{low:P,index:j,nxt:z}}a(o,l);var N=e.fromNode(o,l);return u(N),E(N,0),i(N,o,l),n(o,l),o},vse}var mse,ORe;function adt(){if(ORe)return mse;ORe=1;var e=idt();return mse=function(t,r){for(var n=e(t.data,r,!0),i=e(t.data,r,!0),a=t.children.length,o=Math.round(a/2),s=r.getSide||function(A,f){return f-1},i=t[0];yse=function(o,s,l){var u=s.direction||i;if(s.isHorizontal=n(u),t.indexOf(u)===-1)throw new TypeError("Invalid direction: "+u);if(u===t[0])l(o,s);else if(u===t[1])l(o,s),o.right2left();else if(u===t[2])l(o,s);else if(u===t[3])l(o,s),o.bottom2top();else if(u===t[4]||u===t[5]){var c=e(o,s),A=c.left,f=c.right;l(A,s),l(f,s),s.isHorizontal?A.right2left():A.bottom2top(),f.translate(A.x-f.x,A.y-f.y),o.x=A.x,o.y=f.y;var h=o.getBoundingBox();s.isHorizontal?h.top<0&&o.translate(0,-h.top):h.left<0&&o.translate(-h.left,0)}var g=s.fixedRoot;return g===void 0&&(g=!0),g&&o.translate(-(o.x+o.width/2+o.hgap),-(o.y+o.height/2+o.vgap)),a(o,s),o};function a(o,s){if(s.radial){var l=s.isHorizontal?["x","y"]:["y","x"],u=l[0],c=l[1],A={x:1/0,y:1/0},f={x:-1/0,y:-1/0},h=0;o.DFTraverse(function(m){h++;var b=m.x,C=m.y;A.x=Math.min(A.x,b),A.y=Math.min(A.y,C),f.x=Math.max(f.x,b),f.y=Math.max(f.y,C)});var g=f[c]-A[c];if(g===0)return;var p=Math.PI*2/h;o.DFTraverse(function(m){var b=(m[c]-A[c])/g*(Math.PI*2-p)+p,C=m[u]-o[u];m.x=Math.cos(b)*C,m.y=Math.sin(b)*C})}}return yse}var bse,LRe;function Iur(){if(LRe)return bse;LRe=1;function e(u,c){u.prototype=Object.create(c.prototype),u.prototype.constructor=u,t(u,c)}function t(u,c){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(A,f){return A.__proto__=f,A},t(u,c)}var r=BX(),n=Cur(),i=h3e(),a=q5(),o=function(u){function c(){return u.apply(this,arguments)||this}e(c,u);var A=c.prototype;return A.execute=function(){var h=this;return i(h.rootNode,h.options,n)},c}(r),s={};function l(u,c){return c=a.assign({},s,c),new o(u,c).execute()}return bse=l,bse}var wse,PRe;function Eur(){if(PRe)return wse;PRe=1;var e=q5();function t(i,a){a===void 0&&(a=[]);var o=this;o.x=o.y=0,o.leftChild=o.rightChild=null,o.height=0,o.children=a}var r={isHorizontal:!0,nodeSep:20,nodeSize:20,rankSep:200,subTreeSep:10};function n(i,a,o){o?(a.x=i.x,a.y=i.y):(a.x=i.y,a.y=i.x),i.children.forEach(function(s,l){n(s,a.children[l],o)})}return wse=function(i,a){a===void 0&&(a={}),a=e.assign({},r,a);var o=0;function s(f){if(!f)return null;f.width=0,f.depth&&f.depth>o&&(o=f.depth);var h=f.children,g=h.length,p=new t(f.height,[]);return h.forEach(function(m,b){var C=s(m);p.children.push(C),b===0&&(p.leftChild=C),b===g-1&&(p.rightChild=C)}),p.originNode=f,p.isLeaf=f.isLeaf(),p}function l(f){if(f.isLeaf||f.children.length===0)f.drawingDepth=o;else{var h=f.children.map(function(p){return l(p)}),g=Math.min.apply(null,h);f.drawingDepth=g-1}return f.drawingDepth}var u;function c(f){f.x=f.drawingDepth*a.rankSep,f.isLeaf?(f.y=0,u&&(f.y=u.y+u.height+a.nodeSep,f.originNode.parent!==u.originNode.parent&&(f.y+=a.subTreeSep)),u=f):(f.children.forEach(function(h){c(h)}),f.y=(f.leftChild.y+f.rightChild.y)/2)}var A=s(i);return l(A),c(A),n(A,i,a.isHorizontal),i},wse}var Cse,URe;function Bur(){if(URe)return Cse;URe=1;function e(u,c){u.prototype=Object.create(c.prototype),u.prototype.constructor=u,t(u,c)}function t(u,c){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(A,f){return A.__proto__=f,A},t(u,c)}var r=BX(),n=Eur(),i=h3e(),a=q5(),o=function(u){function c(){return u.apply(this,arguments)||this}e(c,u);var A=c.prototype;return A.execute=function(){var h=this;return h.rootNode.width=0,i(h.rootNode,h.options,n)},c}(r),s={};function l(u,c){return c=a.assign({},s,c),new o(u,c).execute()}return Cse=l,Cse}var Ise,HRe;function xur(){if(HRe)return Ise;HRe=1;var e=q5();function t(r,n,i,a,o){var s=(typeof i=="function"?i(r):i)*r.depth;if(!a)try{if(r.id===r.parent.children[0].id){r.x+=s,r.y=n?n.y:0;return}}catch{}if(r.x+=s,n){if(r.y=n.y+e.getHeight(n,r,o),n.parent&&r.parent.id!==n.parent.id){var l=n.parent,u=l.y+e.getHeight(l,r,o);r.y=u>r.y?u:r.y}}else r.y=0}return Ise=function(r,n,i,a){var o=null;r.eachNode(function(s){t(s,o,n,i,a),o=s})},Ise}var Ese,jRe;function Sur(){if(jRe)return Ese;jRe=1;function e(A,f){A.prototype=Object.create(f.prototype),A.prototype.constructor=A,t(A,f)}function t(A,f){return t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(h,g){return h.__proto__=g,h},t(A,f)}var r=BX(),n=xur(),i=adt(),a=q5(),o=["LR","RL","H"],s=o[0],l=function(A){function f(){return A.apply(this,arguments)||this}e(f,A);var h=f.prototype;return h.execute=function(){var p=this,m=p.options,b=p.rootNode;m.isHorizontal=!0;var C=m.indent,E=C===void 0?20:C,_=m.dropCap,F=_===void 0?!0:_,M=m.direction,N=M===void 0?s:M,P=m.align;if(N&&o.indexOf(N)===-1)throw new TypeError("Invalid direction: "+N);if(N===o[0])n(b,E,F,P);else if(N===o[1])n(b,E,F,P),b.right2left();else if(N===o[2]){var j=i(b,m),z=j.left,W=j.right;n(z,E,F,P),z.right2left(),n(W,E,F,P);var Y=z.getBoundingBox();W.translate(Y.width,0),b.x=W.x-b.width/2}return b},f}(r),u={};function c(A,f){return f=a.assign({},u,f),new l(A,f).execute()}return Ese=c,Ese}var Bse,GRe;function kur(){if(GRe)return Bse;GRe=1;var e=q5();function t(i,a){var o=0;return i.children.length?i.children.forEach(function(s){o+=t(s,a)}):o=i.height,i._subTreeSep=a.getSubTreeSep(i.data),i.totalHeight=Math.max(i.height,o)+2*i._subTreeSep,i.totalHeight}function r(i){var a=i.children,o=a.length;if(o){a.forEach(function(f){r(f)});var s=a[0],l=a[o-1],u=l.y-s.y+l.height,c=0;if(a.forEach(function(f){c+=f.totalHeight}),u>i.height)i.y=s.y+u/2-i.height/2;else if(a.length!==1||i.height>c){var A=i.y+(i.height-u)/2-s.y;a.forEach(function(f){f.translate(0,A)})}else i.y=(s.y+s.height/2+l.y+l.height/2)/2-i.height/2}}var n={getSubTreeSep:function(){return 0}};return Bse=function(i,a){a===void 0&&(a={}),a=e.assign({},n,a),i.parent={x:0,width:0,height:0,y:0},i.BFTraverse(function(o){o.x=o.parent.x+o.parent.width}),i.parent=null,t(i,a),i.startY=0,i.y=i.totalHeight/2-i.height/2,i.eachNode(function(o){var s=o.children,l=s.length;if(l){var u=s[0];if(u.startY=o.startY+o._subTreeSep,l===1)u.y=o.y+o.height/2-u.height/2;else{u.y=u.startY+u.totalHeight/2-u.height/2;for(var c=1;c{if(e!=="next"&&e!=="prev")return t},KRe=e=>{e.prev.next=e.next,e.next.prev=e.prev,delete e.next,delete e.prev};let Dur=class{constructor(){const t={};t.prev=t,t.next=t.prev,this.shortcut=t}dequeue(){const t=this.shortcut,r=t.prev;if(r&&r!==t)return KRe(r),r}enqueue(t){const r=this.shortcut;t.prev&&t.next&&KRe(t),t.next=r.next,r.next.prev=t,r.next=t,t.prev=r}toString(){const t=[],r=this.shortcut;let n=r.prev;for(;n!==r;)t.push(JSON.stringify(n,Tur)),n=n==null?void 0:n.prev;return`[${t.join(", ")}]`}};class Fur extends Dur{}const Rur=(e,t)=>{var r;if(e.getAllNodes().length<=1)return[];const n=Our(e,t);return(r=Mur(n.graph,n.buckets,n.zeroIdx).map(a=>e.getRelatedEdges(a.v,"out").filter(({target:o})=>o===a.w)))===null||r===void 0?void 0:r.flat()},Mur=(e,t,r)=>{let n=[];const i=t[t.length-1],a=t[0];let o;for(;e.getAllNodes().length;){for(;o=a.dequeue();)kse(e,t,r,o);for(;o=i.dequeue();)kse(e,t,r,o);if(e.getAllNodes().length){for(let s=t.length-2;s>0;--s)if(o=t[s].dequeue(),o){n=n.concat(kse(e,t,r,o,!0));break}}}return n},kse=(e,t,r,n,i)=>{var a,o;const s=[];return e.hasNode(n.v)&&((a=e.getRelatedEdges(n.v,"in"))===null||a===void 0||a.forEach(l=>{const u=l.data.weight,c=e.getNode(l.source);i&&s.push({v:l.source,w:l.target,in:0,out:0}),c.data.out===void 0&&(c.data.out=0),c.data.out-=u,o2e(t,r,Object.assign({v:c.id},c.data))}),(o=e.getRelatedEdges(n.v,"out"))===null||o===void 0||o.forEach(l=>{const u=l.data.weight,c=l.target,A=e.getNode(c);A.data.in===void 0&&(A.data.in=0),A.data.in-=u,o2e(t,r,Object.assign({v:A.id},A.data))}),e.removeNode(n.v)),i?s:void 0},Our=(e,t)=>{const r=new Kd;let n=0,i=0;e.getAllNodes().forEach(l=>{r.addNode({id:l.id,data:{v:l.id,in:0,out:0}})}),e.getAllEdges().forEach(l=>{const u=r.getRelatedEdges(l.source,"out").find(A=>A.target===l.target),c=(t==null?void 0:t(l))||1;u?r.updateEdgeData(u==null?void 0:u.id,Object.assign(Object.assign({},u.data),{weight:u.data.weight+c})):r.addEdge({id:l.id,source:l.source,target:l.target,data:{weight:c}}),i=Math.max(i,r.getNode(l.source).data.out+=c),n=Math.max(n,r.getNode(l.target).data.in+=c)});const a=[],o=i+n+3;for(let l=0;l{o2e(a,s,Object.assign({v:l.id},r.getNode(l.id).data))}),{buckets:a,zeroIdx:s,graph:r}},o2e=(e,t,r)=>{r.out?r.in?e[r.out-r.in+t].enqueue(r):e[e.length-1].enqueue(r):e[0].enqueue(r)},Nur=(e,t)=>{const n=t==="greedy"?Rur(e,(i=>a=>a.data.weight||1)()):Lur(e);n==null||n.forEach(i=>{const a=i.data;e.removeEdge(i.id),a.forwardName=i.data.name,a.reversed=!0,e.addEdge({id:i.id,source:i.target,target:i.source,data:Object.assign({},a)})})},Lur=e=>{const t=[],r={},n={},i=a=>{n[a]||(n[a]=!0,r[a]=!0,e.getRelatedEdges(a,"out").forEach(o=>{r[o.target]?t.push(o):i(o.target)}),delete r[a])};return e.getAllNodes().forEach(a=>i(a.id)),t},Pur=e=>{e.getAllEdges().forEach(t=>{const r=t.data;if(r.reversed){e.removeEdge(t.id);const n=r.forwardName;delete r.reversed,delete r.forwardName,e.addEdge({id:t.id,source:t.target,target:t.source,data:Object.assign(Object.assign({},r),{forwardName:n})})}})},Uur=(e,t)=>Number(e)-Number(t),Z7=(e,t,r,n)=>{let i;do i=`${n}${Math.random()}`;while(e.hasNode(i));return r.dummy=t,e.addNode({id:i,data:r}),i},Hur=e=>{const t=new Kd;return e.getAllNodes().forEach(r=>{t.addNode(Object.assign({},r))}),e.getAllEdges().forEach(r=>{const n=t.getRelatedEdges(r.source,"out").find(i=>i.target===r.target);n?t.updateEdgeData(n==null?void 0:n.id,Object.assign(Object.assign({},n.data),{weight:n.data.weight+r.data.weight||0,minlen:Math.max(n.data.minlen,r.data.minlen||1)})):t.addEdge({id:r.id,source:r.source,target:r.target,data:{weight:r.data.weight||0,minlen:r.data.minlen||1}})}),t},odt=e=>{const t=new Kd;return e.getAllNodes().forEach(r=>{e.getChildren(r.id).length||t.addNode(Object.assign({},r))}),e.getAllEdges().forEach(r=>{t.addEdge(r)}),t},jur=(e,t)=>e==null?void 0:e.reduce((r,n,i)=>(r[n]=t[i],r),{}),VRe=(e,t)=>{const r=Number(e.x),n=Number(e.y),i=Number(t.x)-r,a=Number(t.y)-n;let o=Number(e.width)/2,s=Number(e.height)/2;if(!i&&!a)return{x:0,y:0};let l,u;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),l=s*i/a,u=s):(i<0&&(o=-o),l=o,u=o*a/i),{x:r+l,y:n+u}},AN=e=>{const t=[],r=sdt(e)+1;for(let n=0;n{const i=n.data.rank;i!==void 0&&t[i]&&t[i].push(n.id)});for(let n=0;nUur(e.getNode(i).data.order,e.getNode(a).data.order));return t},Gur=e=>{const t=e.getAllNodes().filter(n=>n.data.rank!==void 0).map(n=>n.data.rank),r=Math.min(...t);e.getAllNodes().forEach(n=>{n.data.hasOwnProperty("rank")&&r!==1/0&&(n.data.rank-=r)})},$ur=(e,t=0)=>{const r=e.getAllNodes(),n=r.filter(s=>s.data.rank!==void 0).map(s=>s.data.rank),i=Math.min(...n),a=[];r.forEach(s=>{const l=(s.data.rank||0)-i;a[l]||(a[l]=[]),a[l].push(s.id)});let o=0;for(let s=0;s{const c=e.getNode(u);c&&(c.data.rank=c.data.rank||0,c.data.rank+=o)}))}},WRe=(e,t,r,n)=>{const i={width:0,height:0};return go(r)&&go(n)&&(i.rank=r,i.order=n),Z7(e,"border",i,t)},sdt=e=>{let t;return e.getAllNodes().forEach(r=>{const n=r.data.rank;n!==void 0&&(t===void 0||n>t)&&(t=n)}),t||(t=0),t},zur=(e,t)=>{const r={lhs:[],rhs:[]};return e==null||e.forEach(n=>{t(n)?r.lhs.push(n):r.rhs.push(n)}),r},d3e=(e,t)=>e.reduce((r,n)=>{const i=t(r),a=t(n);return i>a?n:r}),ldt=(e,t,r,n,i,a)=>{n.includes(t.id)||(n.push(t.id),r||a.push(t.id),i(t.id).forEach(o=>ldt(e,o,r,n,i,a)),r&&a.push(t.id))},udt=(e,t,r,n)=>{const i=Array.isArray(t)?t:[t],a=l=>e.getNeighbors(l),o=[],s=[];return i.forEach(l=>{if(e.hasNode(l.id))ldt(e,l,r==="post",s,a,o);else throw new Error(`Graph does not have node: ${l}`)}),o},Kur=e=>{const t=r=>{const n=e.getChildren(r),i=e.getNode(r);if(n!=null&&n.length&&n.forEach(a=>t(a.id)),i.data.hasOwnProperty("minRank")){i.data.borderLeft=[],i.data.borderRight=[];for(let a=i.data.minRank,o=i.data.maxRank+1;at(r.id))},YRe=(e,t,r,n,i,a)=>{const o={rank:a,borderType:t,width:0,height:0},s=i.data[t][a-1],l=Z7(e,"border",o,r);i.data[t][a]=l,e.setParent(l,n),s&&e.addEdge({id:`e${Math.random()}`,source:s,target:l,data:{weight:1}})},Vur=(e,t)=>{const r=t.toLowerCase();(r==="lr"||r==="rl")&&cdt(e)},Wur=(e,t)=>{const r=t.toLowerCase();(r==="bt"||r==="rl")&&Yur(e),(r==="lr"||r==="rl")&&(qur(e),cdt(e))},cdt=e=>{e.getAllNodes().forEach(t=>{qRe(t)}),e.getAllEdges().forEach(t=>{qRe(t)})},qRe=e=>{const t=e.data.width;e.data.width=e.data.height,e.data.height=t},Yur=e=>{e.getAllNodes().forEach(t=>{Qse(t.data)}),e.getAllEdges().forEach(t=>{var r;(r=t.data.points)===null||r===void 0||r.forEach(n=>Qse(n)),t.data.hasOwnProperty("y")&&Qse(t.data)})},Qse=e=>{e!=null&&e.y&&(e.y=-e.y)},qur=e=>{e.getAllNodes().forEach(t=>{_se(t.data)}),e.getAllEdges().forEach(t=>{var r;(r=t.data.points)===null||r===void 0||r.forEach(n=>_se(n)),t.data.hasOwnProperty("x")&&_se(t.data)})},_se=e=>{const t=e.x;e.x=e.y,e.y=t},Jur=e=>{const t=Z7(e,"root",{},"_root"),r=Xur(e);let n=Math.max(...Object.values(r));Math.abs(n)===1/0&&(n=1);const i=n-1,a=2*i+1;e.getAllEdges().forEach(s=>{s.data.minlen*=a});const o=Zur(e)+1;return e.getRoots().forEach(s=>{Adt(e,t,a,o,i,r,s.id)}),{nestingRoot:t,nodeRankFactor:a}},Adt=(e,t,r,n,i,a,o)=>{const s=e.getChildren(o);if(!(s!=null&&s.length)){o!==t&&e.addEdge({id:`e${Math.random()}`,source:t,target:o,data:{weight:0,minlen:r}});return}const l=WRe(e,"_bt"),u=WRe(e,"_bb"),c=e.getNode(o);e.setParent(l,o),c.data.borderTop=l,e.setParent(u,o),c.data.borderBottom=u,s==null||s.forEach(A=>{Adt(e,t,r,n,i,a,A.id);const f=A.data.borderTop?A.data.borderTop:A.id,h=A.data.borderBottom?A.data.borderBottom:A.id,g=A.data.borderTop?n:2*n,p=f!==h?1:i-a[o]+1;e.addEdge({id:`e${Math.random()}`,source:l,target:f,data:{minlen:p,weight:g,nestingEdge:!0}}),e.addEdge({id:`e${Math.random()}`,source:h,target:u,data:{minlen:p,weight:g,nestingEdge:!0}})}),e.getParent(o)||e.addEdge({id:`e${Math.random()}`,source:t,target:l,data:{weight:0,minlen:i+a[o]}})},Xur=e=>{const t={},r=(n,i)=>{const a=e.getChildren(n);a==null||a.forEach(o=>r(o.id,i+1)),t[n]=i};return e.getRoots().forEach(n=>r(n.id,1)),t},Zur=e=>{let t=0;return e.getAllEdges().forEach(r=>{t+=r.data.weight}),t},ecr=(e,t)=>{t&&e.removeNode(t),e.getAllEdges().forEach(r=>{r.data.nestingEdge&&e.removeEdge(r.id)})},tcr="edge",fdt="edge-label",rcr=(e,t)=>{e.getAllEdges().forEach(r=>ncr(e,r,t))},ncr=(e,t,r)=>{let n=t.source,i=e.getNode(n).data.rank;const a=t.target,o=e.getNode(a).data.rank,s=t.data.labelRank;if(o===i+1)return;e.removeEdge(t.id);let l,u,c;for(c=0,++i;i{t.forEach(r=>{let n=e.getNode(r);const{data:i}=n,a=i.originalEdge;let o;a&&e.addEdge(a);let s=r;for(;n.data.dummy;)o=e.getSuccessors(s)[0],e.removeNode(s),a.data.points.push({x:n.data.x,y:n.data.y}),n.data.dummy===fdt&&(a.data.x=n.data.x,a.data.y=n.data.y,a.data.width=n.data.width,a.data.height=n.data.height),s=o.id,n=e.getNode(s)})},acr=(e,t,r)=>{const n={};let i;r==null||r.forEach(a=>{let o=e.getParent(a),s,l;for(;o;){if(s=e.getParent(o.id),s?(l=n[s.id],n[s.id]=o.id):(l=i,i=o.id),l&&l!==o.id){t.hasNode(l)||t.addNode({id:l,data:{}}),t.hasNode(o.id)||t.addNode({id:o.id,data:{}}),t.hasEdge(`e${l}-${o.id}`)||t.addEdge({id:`e${l}-${o.id}`,source:l,target:o.id,data:{}});return}o=s}})},ocr=(e,t,r)=>{const n=scr(e),i=new Kd({tree:[{id:n,children:[],data:{}}]});return e.getAllNodes().forEach(a=>{const o=e.getParent(a.id);(a.data.rank===t||a.data.minRank<=t&&t<=a.data.maxRank)&&(i.hasNode(a.id)||i.addNode(Object.assign({},a)),o!=null&&o.id&&!i.hasNode(o==null?void 0:o.id)&&i.addNode(Object.assign({},o)),i.setParent(a.id,(o==null?void 0:o.id)||n),e.getRelatedEdges(a.id,r).forEach(s=>{const l=s.source===a.id?s.target:s.source;i.hasNode(l)||i.addNode(Object.assign({},e.getNode(l)));const u=i.getRelatedEdges(l,"out").find(({target:A})=>A===a.id),c=u!==void 0?u.data.weight:0;u?i.updateEdgeData(u.id,Object.assign(Object.assign({},u.data),{weight:s.data.weight+c})):i.addEdge({id:s.id,source:l,target:a.id,data:{weight:s.data.weight+c}})}),a.data.hasOwnProperty("minRank")&&i.updateNodeData(a.id,Object.assign(Object.assign({},a.data),{borderLeft:a.data.borderLeft[t],borderRight:a.data.borderRight[t]})))}),i},scr=e=>{let t;for(;e.hasNode(t=`_root${Math.random()}`););return t},lcr=(e,t,r)=>{const n=jur(r,r.map((c,A)=>A)),a=t.map(c=>{const A=e.getRelatedEdges(c,"out").map(f=>({pos:n[f.target]||0,weight:f.data.weight}));return A==null?void 0:A.sort((f,h)=>f.pos-h.pos)}).flat().filter(c=>c!==void 0);let o=1;for(;o{if(c){let A=c.pos+o;l[A]+=c.weight;let f=0;for(;A>0;)A%2&&(f+=l[A+1]),A=A-1>>1,l[A]+=c.weight;u+=c.weight*f}}),u},JRe=(e,t)=>{let r=0;for(let n=1;n<(t==null?void 0:t.length);n+=1)r+=lcr(e,t[n-1],t[n]);return r},XRe=e=>{const t={},r=e.getAllNodes(),n=r.map(u=>{var c;return(c=u.data.rank)!==null&&c!==void 0?c:-1/0}),i=Math.max(...n),a=[];for(let u=0;ue.getNode(u.id).data.rank-e.getNode(c.id).data.rank),l=o.filter(u=>e.getNode(u.id).data.fixorder!==void 0).sort((u,c)=>e.getNode(u.id).data.fixorder-e.getNode(c.id).data.fixorder);return l==null||l.forEach(u=>{isNaN(e.getNode(u.id).data.rank)||a[e.getNode(u.id).data.rank].push(u.id),t[u.id]=!0}),o==null||o.forEach(u=>e.dfsTree(u.id,c=>{if(t.hasOwnProperty(c.id))return!0;t[c.id]=!0,isNaN(c.data.rank)||a[c.data.rank].push(c.id)})),a},ucr=(e,t)=>t.map(r=>{const n=e.getRelatedEdges(r,"in");if(!(n!=null&&n.length))return{v:r};const i={sum:0,weight:0};return n==null||n.forEach(a=>{const o=e.getNode(a.source);i.sum+=a.data.weight*o.data.order,i.weight+=a.data.weight}),{v:r,barycenter:i.sum/i.weight,weight:i.weight}}),ccr=(e,t)=>{var r,n,i;const a={};e==null||e.forEach((s,l)=>{a[s.v]={i:l,indegree:0,in:[],out:[],vs:[s.v]};const u=a[s.v];s.barycenter!==void 0&&(u.barycenter=s.barycenter,u.weight=s.weight)}),(r=t.getAllEdges())===null||r===void 0||r.forEach(s=>{const l=a[s.source],u=a[s.target];l!==void 0&&u!==void 0&&(u.indegree++,l.out.push(a[s.target]))});const o=(i=(n=Object.values(a)).filter)===null||i===void 0?void 0:i.call(n,s=>!s.indegree);return Acr(o)},Acr=e=>{var t,r;const n=[],i=l=>u=>{u.merged||(u.barycenter===void 0||l.barycenter===void 0||u.barycenter>=l.barycenter)&&fcr(l,u)},a=l=>u=>{u.in.push(l),--u.indegree===0&&e.push(u)};for(;e!=null&&e.length;){const l=e.pop();n.push(l),(t=l.in.reverse())===null||t===void 0||t.forEach(u=>i(l)(u)),(r=l.out)===null||r===void 0||r.forEach(u=>a(l)(u))}const o=n.filter(l=>!l.merged),s=["vs","i","barycenter","weight"];return o.map(l=>{const u={};return s==null||s.forEach(c=>{l[c]!==void 0&&(u[c]=l[c])}),u})},fcr=(e,t)=>{var r;let n=0,i=0;e.weight&&(n+=e.barycenter*e.weight,i+=e.weight),t.weight&&(n+=t.barycenter*t.weight,i+=t.weight),e.vs=(r=t.vs)===null||r===void 0?void 0:r.concat(e.vs),e.barycenter=n/i,e.weight=i,e.i=Math.min(t.i,e.i),t.merged=!0},hcr=(e,t,r,n)=>{const i=zur(e,f=>{const h=f.hasOwnProperty("fixorder")&&!isNaN(f.fixorder);return n?!h&&f.hasOwnProperty("barycenter"):h||f.hasOwnProperty("barycenter")}),a=i.lhs,o=i.rhs.sort((f,h)=>-f.i- -h.i),s=[];let l=0,u=0,c=0;a==null||a.sort(dcr(!!t,!!r)),c=ZRe(s,o,c),a==null||a.forEach(f=>{var h;c+=(h=f.vs)===null||h===void 0?void 0:h.length,s.push(f.vs),l+=f.barycenter*f.weight,u+=f.weight,c=ZRe(s,o,c)});const A={vs:s.flat()};return u&&(A.barycenter=l/u,A.weight=u),A},ZRe=(e,t,r)=>{let n=r,i;for(;t.length&&(i=t[t.length-1]).i<=n;)t.pop(),e==null||e.push(i.vs),n++;return n},dcr=(e,t)=>(r,n)=>{if(r.fixorder!==void 0&&n.fixorder!==void 0)return r.fixorder-n.fixorder;if(r.barycentern.barycenter)return 1;if(t&&r.order!==void 0&&n.order!==void 0){if(r.ordern.order)return 1}return e?n.i-r.i:r.i-n.i},hdt=(e,t,r,n,i,a)=>{var o,s,l,u;let c=e.getChildren(t).map(C=>C.id);const A=e.getNode(t),f=A?A.data.borderLeft:void 0,h=A?A.data.borderRight:void 0,g={};f&&(c=c==null?void 0:c.filter(C=>C!==f&&C!==h));const p=ucr(e,c||[]);p==null||p.forEach(C=>{var E;if(!((E=e.getChildren(C.v))===null||E===void 0)&&E.length){const _=hdt(e,C.v,r,n,a);g[C.v]=_,_.hasOwnProperty("barycenter")&&pcr(C,_)}});const m=ccr(p,r);gcr(m,g),(o=m.filter(C=>C.vs.length>0))===null||o===void 0||o.forEach(C=>{const E=e.getNode(C.vs[0]);E&&(C.fixorder=E.data.fixorder,C.order=E.data.order)});const b=hcr(m,n,i,a);if(f&&(b.vs=[f,b.vs,h].flat(),!((s=e.getPredecessors(f))===null||s===void 0)&&s.length)){const C=e.getNode(((l=e.getPredecessors(f))===null||l===void 0?void 0:l[0].id)||""),E=e.getNode(((u=e.getPredecessors(h))===null||u===void 0?void 0:u[0].id)||"");b.hasOwnProperty("barycenter")||(b.barycenter=0,b.weight=0),b.barycenter=(b.barycenter*b.weight+C.data.order+E.data.order)/(b.weight+2),b.weight+=2}return b},gcr=(e,t)=>{e==null||e.forEach(r=>{var n;const i=(n=r.vs)===null||n===void 0?void 0:n.map(a=>t[a]?t[a].vs:a);r.vs=i.flat()})},pcr=(e,t)=>{e.barycenter!==void 0?(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight):(e.barycenter=t.barycenter,e.weight=t.weight)},vcr=(e,t)=>{const r=sdt(e),n=[],i=[];for(let c=1;c-1;c--)i.push(c);const a=eMe(e,n,"in"),o=eMe(e,i,"out");let s=XRe(e);Tse(e,s);let l=Number.POSITIVE_INFINITY,u;for(let c=0,A=0;A<4;++c,++A){tMe(c%2?a:o,c%4>=2,!1,t),s=AN(e);const f=JRe(e,s);f=2,!0,t),s=AN(e);const f=JRe(e,s);ft.map(n=>ocr(e,n,r)),tMe=(e,t,r,n)=>{const i=new Kd;e==null||e.forEach(a=>{var o;const s=a.getRoots()[0].id,l=hdt(a,s,i,t,r,n);for(let u=0;u<((o=l.vs)===null||o===void 0?void 0:o.length);u++){const c=a.getNode(l.vs[u]);c&&(c.data.order=u)}acr(a,i,l.vs)})},Tse=(e,t)=>{t==null||t.forEach(r=>{r==null||r.forEach((n,i)=>{e.getNode(n).data.order=i})})},mcr=(e,t)=>{const n=e.getAllNodes().filter(o=>{var s;return!(!((s=e.getChildren(o.id))===null||s===void 0)&&s.length)}).map(o=>o.data.rank),i=Math.max(...n),a=[];for(let o=0;o{const s=e.getNode(o);!s||s.data.dummy||isNaN(s.data.rank)||(s.data.fixorder=a[s.data.rank].length,a[s.data.rank].push(o))})},ycr=e=>{const t={};let r=0;const n=i=>{const a=r;e.getChildren(i).forEach(o=>n(o.id)),t[i]={low:a,lim:r++}};return e.getRoots().forEach(i=>n(i.id)),t},bcr=(e,t,r,n)=>{var i,a;const o=[],s=[],l=Math.min(t[r].low,t[n].low),u=Math.max(t[r].lim,t[n].lim);let c,A;c=r;do c=(i=e.getParent(c))===null||i===void 0?void 0:i.id,o.push(c);while(c&&(t[c].low>l||u>t[c].lim));for(A=c,c=n;c&&c!==A;)s.push(c),c=(a=e.getParent(c))===null||a===void 0?void 0:a.id;return{lca:A,path:o.concat(s.reverse())}},wcr=(e,t)=>{const r=ycr(e);t.forEach(n=>{var i,a;let o=n,s=e.getNode(o);const l=s.data.originalEdge;if(!l)return;const u=bcr(e,r,l.source,l.target),c=u.path,A=u.lca;let f=0,h=c[f],g=!0;for(;o!==l.target;){if(s=e.getNode(o),g){for(;h!==A&&((i=e.getNode(h))===null||i===void 0?void 0:i.data.maxRank){const r={},n=(i,a)=>{let o=0,s=0;const l=i.length,u=a==null?void 0:a[(a==null?void 0:a.length)-1];return a==null||a.forEach((c,A)=>{var f;const h=Ecr(e,c),g=h?e.getNode(h.id).data.order:l;(h||c===u)&&((f=a.slice(s,A+1))===null||f===void 0||f.forEach(p=>{var m;(m=e.getPredecessors(p))===null||m===void 0||m.forEach(b=>{var C;const E=e.getNode(b.id),_=E.data.order;(_{const r={};function n(s,l,u,c,A){var f,h;let g;for(let p=l;p{const b=e.getNode(m.id);b.data.dummy&&(b.data.orderA)&&ddt(r,m.id,g)}))}function i(s){return JSON.stringify(s.slice(1))}function a(s,l){const u=i(s);l.get(u)||(n(...s),l.set(u,!0))}const o=(s,l)=>{let u=-1,c,A=0;const f=new Map;return l==null||l.forEach((h,g)=>{var p;if(((p=e.getNode(h))===null||p===void 0?void 0:p.data.dummy)==="border"){const m=e.getPredecessors(h)||[];m.length&&(c=e.getNode(m[0].id).data.order,a([l,A,g,u,c],f),A=g,u=c)}a([l,A,l.length,c,s.length],f)}),l};return t!=null&&t.length&&t.reduce(o),r},Ecr=(e,t)=>{var r,n;if(!((r=e.getNode(t))===null||r===void 0)&&r.data.dummy)return(n=e.getPredecessors(t))===null||n===void 0?void 0:n.find(i=>e.getNode(i.id).data.dummy)},ddt=(e,t,r)=>{let n=t,i=r;if(n>i){const o=n;n=i,i=o}let a=e[n];a||(e[n]=a={}),a[i]=!0},Bcr=(e,t,r)=>{let n=t,i=r;if(n>i){const a=t;n=i,i=a}return!!e[n]},xcr=(e,t,r,n)=>{const i={},a={},o={};return t==null||t.forEach(s=>{s==null||s.forEach((l,u)=>{i[l]=l,a[l]=l,o[l]=u})}),t==null||t.forEach(s=>{let l=-1;s==null||s.forEach(u=>{let c=n(u).map(A=>A.id);if(c.length){c=c.sort((f,h)=>o[f]-o[h]);const A=(c.length-1)/2;for(let f=Math.floor(A),h=Math.ceil(A);f<=h;++f){const g=c[f];a[u]===u&&l{var s;const l={},u=kcr(e,t,r,i,a,o),c=o?"borderLeft":"borderRight",A=(g,p)=>{let m=u.getAllNodes(),b=m.pop();const C={};for(;b;)C[b.id]?g(b.id):(C[b.id]=!0,m.push(b),m=m.concat(p(b.id))),b=m.pop()},f=g=>{l[g]=(u.getRelatedEdges(g,"in")||[]).reduce((p,m)=>Math.max(p,(l[m.source]||0)+m.data.weight),0)},h=g=>{const p=(u.getRelatedEdges(g,"out")||[]).reduce((b,C)=>Math.min(b,(l[C.target]||0)-C.data.weight),Number.POSITIVE_INFINITY),m=e.getNode(g);p!==Number.POSITIVE_INFINITY&&m.data.borderType!==c&&(l[g]=Math.max(l[g],p))};return A(f,u.getPredecessors.bind(u)),A(h,u.getSuccessors.bind(u)),(s=Object.values(n))===null||s===void 0||s.forEach(g=>{l[g]=l[r[g]]}),l},kcr=(e,t,r,n,i,a)=>{const o=new Kd,s=Dcr(n,i,a);return t==null||t.forEach(l=>{let u;l==null||l.forEach(c=>{const A=r[c];if(o.hasNode(A)||o.addNode({id:A,data:{}}),u){const f=r[u],h=o.getRelatedEdges(f,"out").find(g=>g.target===A);h?o.updateEdgeData(h.id,Object.assign(Object.assign({},h.data),{weight:Math.max(s(e,c,u),h.data.weight||0)})):o.addEdge({id:`e${Math.random()}`,source:f,target:A,data:{weight:Math.max(s(e,c,u),0)}})}u=c})}),o},Qcr=(e,t)=>d3e(Object.values(t),r=>{var n;let i=Number.NEGATIVE_INFINITY,a=Number.POSITIVE_INFINITY;return(n=Object.keys(r))===null||n===void 0||n.forEach(o=>{const s=r[o],l=Fcr(e,o)/2;i=Math.max(s+l,i),a=Math.min(s-l,a)}),i-a});function _cr(e,t){const r=Object.values(t),n=Math.min(...r),i=Math.max(...r);["u","d"].forEach(a=>{["l","r"].forEach(o=>{const s=a+o,l=e[s];let u;if(l===t)return;const c=Object.values(l);u=o==="l"?n-Math.min(...c):i-Math.max(...c),u&&(e[s]={},Object.keys(l).forEach(A=>{e[s][A]=l[A]+u}))})})}const Tcr=(e,t)=>{const r={};return Object.keys(e.ul).forEach(n=>{if(t)r[n]=e[t.toLowerCase()][n];else{const i=Object.values(e).map(a=>a[n]);r[n]=(i[0]+i[1])/2}}),r},Dcr=(e,t,r)=>(n,i,a)=>{const o=n.getNode(i),s=n.getNode(a);let l=0,u=0;if(l+=o.data.width/2,o.data.hasOwnProperty("labelpos"))switch((o.data.labelpos||"").toLowerCase()){case"l":u=-o.data.width/2;break;case"r":u=o.data.width/2;break}if(u&&(l+=r?u:-u),u=0,l+=(o.data.dummy?t:e)/2,l+=(s.data.dummy?t:e)/2,l+=s.data.width/2,s.data.labelpos)switch((s.data.labelpos||"").toLowerCase()){case"l":u=s.data.width/2;break;case"r":u=-s.data.width/2;break}return u&&(l+=r?u:-u),u=0,l},Fcr=(e,t)=>e.getNode(t).data.width||0,Rcr=(e,t)=>{const{ranksep:r=0}=t,n=AN(e);let i=0;n==null||n.forEach(a=>{const o=a.map(l=>e.getNode(l).data.height),s=Math.max(...o,0);a==null||a.forEach(l=>{e.getNode(l).data.y=i+s/2}),i+=s+r})},Mcr=(e,t)=>{const{align:r,nodesep:n=0,edgesep:i=0}=t,a=AN(e),o=Object.assign(Ccr(e,a),Icr(e,a)),s={};let l=[];["u","d"].forEach(c=>{l=c==="u"?a:Object.values(a).reverse(),["l","r"].forEach(A=>{A==="r"&&(l=l.map(p=>Object.values(p).reverse()));const f=(c==="u"?e.getPredecessors:e.getSuccessors).bind(e),h=xcr(e,l,o,f),g=Scr(e,l,h.root,h.align,n,i,A==="r");A==="r"&&Object.keys(g).forEach(p=>g[p]=-g[p]),s[c+A]=g})});const u=Qcr(e,s);return u&&_cr(s,u),Tcr(s,r)},Ocr=(e,t)=>{var r;const n=odt(e);Rcr(n,t);const i=Mcr(n,t);(r=Object.keys(i))===null||r===void 0||r.forEach(a=>{n.getNode(a).data.x=i[a]})},gdt=e=>{const t={},r=n=>{var i;const a=e.getNode(n);if(!a)return 0;if(t[n])return a.data.rank;t[n]=!0;let o;return(i=e.getRelatedEdges(n,"out"))===null||i===void 0||i.forEach(s=>{const l=r(s.target),u=s.data.minlen,c=l-u;c&&(o===void 0||ce.getRelatedEdges(n.id,"in").length===0).forEach(n=>r(n.id))},Ncr=e=>{const t={};let r;const n=o=>{var s;const l=e.getNode(o);if(!l)return 0;if(t[o])return l.data.rank;t[o]=!0;let u;return(s=e.getRelatedEdges(o,"out"))===null||s===void 0||s.forEach(c=>{const A=n(c.target),f=c.data.minlen,h=A-f;h&&(u===void 0||he.getRelatedEdges(o.id,"in").length===0).forEach(o=>{o&&n(o.id)}),r===void 0&&(r=0);const i={},a=(o,s)=>{var l;const u=e.getNode(o),c=isNaN(u.data.layer)?s:u.data.layer;(u.data.rank===void 0||u.data.rank{a(A.target,c+A.data.minlen)}))};e.getAllNodes().forEach(o=>{const s=o.data;s&&(isNaN(s.layer)?s.rank-=r:a(o.id,s.layer))})},w5=(e,t)=>e.getNode(t.target).data.rank-e.getNode(t.source).data.rank-t.data.minlen,Lcr=e=>{const t=new Kd({tree:[]}),r=e.getAllNodes()[0],n=e.getAllNodes().length;t.addNode(r);let i,a;for(;Pcr(t,e){const r=n=>{t.getRelatedEdges(n,"both").forEach(i=>{const a=i.source,o=n===a?i.target:a;!e.hasNode(o)&&!w5(t,i)&&(e.addNode({id:o,data:{}}),e.addEdge({id:i.id,source:n,target:o,data:{}}),r(o))})};return e.getAllNodes().forEach(n=>r(n.id)),e.getAllNodes().length},Ucr=e=>{const t=new Kd({tree:[]}),r=e.getAllNodes()[0],n=e.getAllNodes().length;t.addNode(r);let i,a;for(;Hcr(t,e){const r=n=>{var i;(i=t.getRelatedEdges(n,"both"))===null||i===void 0||i.forEach(a=>{const o=a.source,s=n===o?a.target:o;!e.hasNode(s)&&(t.getNode(s).data.layer!==void 0||!w5(t,a))&&(e.addNode({id:s,data:{}}),e.addEdge({id:a.id,source:n,target:s,data:{}}),r(s))})};return e.getAllNodes().forEach(n=>r(n.id)),e.getAllNodes().length},pdt=(e,t)=>d3e(t.getAllEdges(),r=>e.hasNode(r.source)!==e.hasNode(r.target)?w5(t,r):1/0),vdt=(e,t,r)=>{e.getAllNodes().forEach(n=>{const i=t.getNode(n.id);i.data.rank||(i.data.rank=0),i.data.rank+=r})},jcr=e=>{const t=Hur(e);gdt(t);const r=Lcr(t);ydt(r),mdt(r,t);let n,i;for(;n=zcr(r);)i=Kcr(r,t,n),Vcr(r,t,n,i)},mdt=(e,t)=>{let r=udt(e,e.getAllNodes(),"post");r=r.slice(0,(r==null?void 0:r.length)-1),r.forEach(n=>{Gcr(e,t,n)})},Gcr=(e,t,r)=>{const i=e.getNode(r).data.parent,a=e.getRelatedEdges(r,"both").find(o=>o.target===i||o.source===i);a.data.cutvalue=$cr(e,t,r)},$cr=(e,t,r)=>{const i=e.getNode(r).data.parent;let a=!0,o=t.getRelatedEdges(r,"out").find(l=>l.target===i),s=0;return o||(a=!1,o=t.getRelatedEdges(i,"out").find(l=>l.target===r)),s=o.data.weight,t.getRelatedEdges(r,"both").forEach(l=>{const u=l.source===r,c=u?l.target:l.source;if(c!==i){const A=u===a,f=l.data.weight;if(s+=A?f:-f,Ycr(e,r,c)){const h=e.getRelatedEdges(r,"both").find(g=>g.source===c||g.target===c).data.cutvalue;s+=A?-h:h}}}),s},ydt=(e,t=e.getAllNodes()[0].id)=>{bdt(e,{},1,t)},bdt=(e,t,r,n,i)=>{var a;const o=r;let s=r;const l=e.getNode(n);return t[n]=!0,(a=e.getNeighbors(n))===null||a===void 0||a.forEach(u=>{t[u.id]||(s=bdt(e,t,s,u.id,n))}),l.data.low=o,l.data.lim=s++,i?l.data.parent=i:delete l.data.parent,s},zcr=e=>e.getAllEdges().find(t=>t.data.cutvalue<0),Kcr=(e,t,r)=>{let n=r.source,i=r.target;t.getRelatedEdges(n,"out").find(c=>c.target===i)||(n=r.target,i=r.source);const a=e.getNode(n),o=e.getNode(i);let s=a,l=!1;a.data.lim>o.data.lim&&(s=o,l=!0);const u=t.getAllEdges().filter(c=>l===rMe(e.getNode(c.source),s)&&l!==rMe(e.getNode(c.target),s));return d3e(u,c=>w5(t,c))},Vcr=(e,t,r,n)=>{const i=e.getRelatedEdges(r.source,"both").find(a=>a.source===r.target||a.target===r.target);i&&e.removeEdge(i.id),e.addEdge({id:`e${Math.random()}`,source:n.source,target:n.target,data:{}}),ydt(e),mdt(e,t),Wcr(e,t)},Wcr=(e,t)=>{const r=e.getAllNodes().find(i=>!i.data.parent);let n=udt(e,r,"pre");n=n.slice(1),n.forEach(i=>{const a=e.getNode(i).data.parent;let o=t.getRelatedEdges(i,"out").find(l=>l.target===a),s=!1;!o&&t.hasNode(a)&&(o=t.getRelatedEdges(a,"out").find(l=>l.target===i),s=!0),t.getNode(i).data.rank=(t.hasNode(a)&&t.getNode(a).data.rank||0)+(s?o==null?void 0:o.data.minlen:-(o==null?void 0:o.data.minlen))})},Ycr=(e,t,r)=>e.getRelatedEdges(t,"both").find(n=>n.source===r||n.target===r),rMe=(e,t)=>t.data.low<=e.data.lim&&e.data.lim<=t.data.lim,qcr=(e,t)=>{switch(t){case"network-simplex":Xcr(e);break;case"tight-tree":nMe(e);break;case"longest-path":Jcr(e);break;default:nMe(e)}},Jcr=gdt,nMe=e=>{Ncr(e),Ucr(e)},Xcr=e=>{jcr(e)},Zcr=(e,t)=>{const{edgeLabelSpace:r,keepNodeOrder:n,prevGraph:i,rankdir:a,ranksep:o}=t;!n&&i&&tAr(e,i);const s=sAr(e);r&&(t.ranksep=lAr(s,{rankdir:a,ranksep:o}));let l;try{l=eAr(s,t)}catch(u){if(u.message==="Not possible to find intersection inside of the rectangle"){console.error(`The following error may be caused by improper layer setting, please make sure your manual layer setting does not violate the graph's structure: `,u);return}throw u}return rAr(e,s),l},eAr=(e,t)=>{const{acyclicer:r,ranker:n,rankdir:i="tb",nodeOrder:a,keepNodeOrder:o,align:s,nodesep:l=50,edgesep:u=20,ranksep:c=50}=t;vAr(e),Nur(e,r);const{nestingRoot:A,nodeRankFactor:f}=Jur(e);qcr(odt(e),n),uAr(e),$ur(e,f),ecr(e,A),Gur(e),cAr(e),AAr(e);const h=[];rcr(e,h),wcr(e,h),Kur(e),o&&mcr(e,a),vcr(e,o),mAr(e),Vur(e,i),Ocr(e,{align:s,nodesep:l,edgesep:u,ranksep:c}),yAr(e),pAr(e),icr(e,h),dAr(e),Wur(e,i);const{width:g,height:p}=fAr(e);return hAr(e),gAr(e),Pur(e),{width:g,height:p}},tAr=(e,t)=>{e.getAllNodes().forEach(r=>{const n=e.getNode(r.id);if(t.hasNode(r.id)){const i=t.getNode(r.id);n.data.fixorder=i.data._order,delete i.data._order}else delete n.data.fixorder})},rAr=(e,t)=>{e.getAllNodes().forEach(r=>{var n;const i=e.getNode(r.id);if(i){const a=t.getNode(r.id);i.data.x=a.data.x,i.data.y=a.data.y,i.data._order=a.data.order,i.data._rank=a.data.rank,!((n=t.getChildren(r.id))===null||n===void 0)&&n.length&&(i.data.width=a.data.width,i.data.height=a.data.height)}}),e.getAllEdges().forEach(r=>{const n=e.getEdge(r.id),i=t.getEdge(r.id);n.data.points=i?i.data.points:[],i&&i.data.hasOwnProperty("x")&&(n.data.x=i.data.x,n.data.y=i.data.y)})},nAr=["width","height","layer","fixorder"],iAr={width:0,height:0},aAr=["minlen","weight","width","height","labeloffset"],oAr={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},Dse=["labelpos"],sAr=e=>{const t=new Kd({tree:[]});return e.getAllNodes().forEach(r=>{const n=aMe(e.getNode(r.id).data),i=Object.assign(Object.assign({},iAr),n),a=iMe(i,nAr);t.hasNode(r.id)||t.addNode({id:r.id,data:Object.assign({},a)});const o=e.hasTreeStructure("combo")?e.getParent(r.id,"combo"):e.getParent(r.id);ds(o)||(t.hasNode(o.id)||t.addNode(Object.assign({},o)),t.setParent(r.id,o.id))}),e.getAllEdges().forEach(r=>{const n=aMe(e.getEdge(r.id).data),i={};Dse==null||Dse.forEach(a=>{n[a]!==void 0&&(i[a]=n[a])}),t.addEdge({id:r.id,source:r.source,target:r.target,data:Object.assign({},oAr,iMe(n,aAr),i)})}),t},lAr=(e,t)=>{const{ranksep:r=0,rankdir:n}=t;return e.getAllNodes().forEach(i=>{isNaN(i.data.layer)||i.data.layer||(i.data.layer=0)}),e.getAllEdges().forEach(i=>{var a;i.data.minlen*=2,((a=i.data.labelpos)===null||a===void 0?void 0:a.toLowerCase())!=="c"&&(n==="TB"||n==="BT"?i.data.width+=i.data.labeloffset:i.data.height+=i.data.labeloffset)}),r/2},uAr=e=>{e.getAllEdges().forEach(t=>{if(t.data.width&&t.data.height){const r=e.getNode(t.source),n=e.getNode(t.target),i={e:t,rank:(n.data.rank-r.data.rank)/2+r.data.rank};Z7(e,"edge-proxy",i,"_ep")}})},cAr=e=>{let t=0;return e.getAllNodes().forEach(r=>{var n,i;r.data.borderTop&&(r.data.minRank=(n=e.getNode(r.data.borderTop))===null||n===void 0?void 0:n.data.rank,r.data.maxRank=(i=e.getNode(r.data.borderBottom))===null||i===void 0?void 0:i.data.rank,t=Math.max(t,r.data.maxRank||-1/0))}),t},AAr=e=>{e.getAllNodes().forEach(t=>{t.data.dummy==="edge-proxy"&&(e.getEdge(t.data.e.id).data.labelRank=t.data.rank,e.removeNode(t.id))})},fAr=(e,t)=>{let r,n=0,i,a=0;const{marginx:o=0,marginy:s=0}={},l=u=>{if(!u.data)return;const c=u.data.x,A=u.data.y,f=u.data.width,h=u.data.height;!isNaN(c)&&!isNaN(f)&&(r===void 0&&(r=c-f/2),r=Math.min(r,c-f/2),n=Math.max(n,c+f/2)),!isNaN(A)&&!isNaN(h)&&(i===void 0&&(i=A-h/2),i=Math.min(i,A-h/2),a=Math.max(a,A+h/2))};return e.getAllNodes().forEach(u=>{l(u)}),e.getAllEdges().forEach(u=>{u!=null&&u.data.hasOwnProperty("x")&&l(u)}),r-=o,i-=s,e.getAllNodes().forEach(u=>{u.data.x-=r,u.data.y-=i}),e.getAllEdges().forEach(u=>{var c;(c=u.data.points)===null||c===void 0||c.forEach(A=>{A.x-=r,A.y-=i}),u.data.hasOwnProperty("x")&&(u.data.x-=r),u.data.hasOwnProperty("y")&&(u.data.y-=i)}),{width:n-r+o,height:a-i+s}},hAr=e=>{e.getAllEdges().forEach(t=>{const r=e.getNode(t.source),n=e.getNode(t.target);let i,a;t.data.points?(i=t.data.points[0],a=t.data.points[t.data.points.length-1]):(t.data.points=[],i={x:n.data.x,y:n.data.y},a={x:r.data.x,y:r.data.y}),t.data.points.unshift(VRe(r.data,i)),t.data.points.push(VRe(n.data,a))})},dAr=e=>{e.getAllEdges().forEach(t=>{if(t.data.hasOwnProperty("x"))switch((t.data.labelpos==="l"||t.data.labelpos==="r")&&(t.data.width-=t.data.labeloffset),t.data.labelpos){case"l":t.data.x-=t.data.width/2+t.data.labeloffset;break;case"r":t.data.x+=t.data.width/2+t.data.labeloffset;break}})},gAr=e=>{e.getAllEdges().forEach(t=>{var r;t.data.reversed&&((r=t.data.points)===null||r===void 0||r.reverse())})},pAr=e=>{e.getAllNodes().forEach(t=>{var r,n,i;if(!((r=e.getChildren(t.id))===null||r===void 0)&&r.length){const a=e.getNode(t.id),o=e.getNode(a.data.borderTop),s=e.getNode(a.data.borderBottom),l=e.getNode(a.data.borderLeft[((n=a.data.borderLeft)===null||n===void 0?void 0:n.length)-1]),u=e.getNode(a.data.borderRight[((i=a.data.borderRight)===null||i===void 0?void 0:i.length)-1]);a.data.width=Math.abs((u==null?void 0:u.data.x)-(l==null?void 0:l.data.x))||10,a.data.height=Math.abs((s==null?void 0:s.data.y)-(o==null?void 0:o.data.y))||10,a.data.x=((l==null?void 0:l.data.x)||0)+a.data.width/2,a.data.y=((o==null?void 0:o.data.y)||0)+a.data.height/2}}),e.getAllNodes().forEach(t=>{t.data.dummy==="border"&&e.removeNode(t.id)})},vAr=e=>{e.getAllEdges().forEach(t=>{if(t.source===t.target){const r=e.getNode(t.source);r.data.selfEdges||(r.data.selfEdges=[]),r.data.selfEdges.push(t),e.removeEdge(t.id)}})},mAr=e=>{const t=AN(e);t==null||t.forEach(r=>{let n=0;r==null||r.forEach((i,a)=>{var o;const s=e.getNode(i);s.data.order=a+n,(o=s.data.selfEdges)===null||o===void 0||o.forEach(l=>{Z7(e,"selfedge",{width:l.data.width,height:l.data.height,rank:s.data.rank,order:a+ ++n,e:l},"_se")}),delete s.data.selfEdges})})},yAr=e=>{e.getAllNodes().forEach(t=>{const r=e.getNode(t.id);if(r.data.dummy==="selfedge"){const n=e.getNode(r.data.e.source),i=n.data.x+n.data.width/2,a=n.data.y,o=r.data.x-i,s=n.data.height/2;e.hasEdge(r.data.e.id)?e.updateEdgeData(r.data.e.id,r.data.e.data):e.addEdge({id:r.data.e.id,source:r.data.e.source,target:r.data.e.target,data:r.data.e.data}),e.removeNode(t.id),r.data.e.data.points=[{x:i+2*o/3,y:a-s},{x:i+5*o/6,y:a-s},{y:a,x:i+o},{x:i+5*o/6,y:a+s},{x:i+2*o/3,y:a+s}],r.data.e.data.x=r.data.x,r.data.e.data.y=r.data.y}})},iMe=(e,t)=>{const r={};return t==null||t.forEach(n=>{e[n]!==void 0&&(r[n]=+e[n])}),r},aMe=(e={})=>{const t={};return Object.keys(e).forEach(r=>{t[r.toLowerCase()]=e[r]}),t},bE=Array.isArray,wdt=e=>{const t=[],r=e.length;for(let n=0;nt[i][n]+t[n][a]&&(t[i][a]=t[i][n]+t[n][a]);return t},Cdt=(e,t)=>{const{nodes:r,edges:n}=e,i=[],a={};if(!r)throw new Error("invalid nodes data!");return r&&r.forEach((o,s)=>{a[o.id]=s;const l=[];i.push(l)}),n==null||n.forEach(o=>{const{source:s,target:l}=o,u=a[s],c=a[l];u===void 0||c===void 0||(i[u][c]=1,i[c][u]=1)}),i},bAr=(e,t)=>{const r=[];return e.forEach(n=>{const i=[];n.forEach(a=>{i.push(a*t)}),r.push(i)}),r},wAr=e=>{let t=1/0,r=1/0,n=-1/0,i=-1/0;return e.forEach(a=>{let o=a.data.size;bE(o)?o.length===1&&(o=[o[0],o[0]]):go(o)?o=[o,o]:(o===void 0||isNaN(o))&&(o=[30,30]);const s=[o[0]/2,o[1]/2],l=a.data.x-s[0],u=a.data.x+s[0],c=a.data.y-s[1],A=a.data.y+s[1];t>l&&(t=l),r>c&&(r=c),nMath.sqrt((e.x-t.x)*(e.x-t.x)+(e.y-t.y)*(e.y-t.y)),s2e=(e,t,r,n="TB",i,a={})=>{if(!(t!=null&&t.length))return;const{stopBranchFn:o,stopAllFn:s}=a;for(let l=0;l{if(e===null)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof Array){const t=[];return e.forEach(r=>{t.push(r)}),t.map(r=>l2e(r))}if(typeof e=="object"){const t={};return Object.keys(e).forEach(r=>{t[r]=l2e(e[r])}),t}return e},Xm=(e,t)=>{const r=l2e(e);return r.data=r.data||{},t&&(go(r.data.x)||(r.data.x=Math.random()*t[0]),go(r.data.y)||(r.data.y=Math.random()*t[1])),r};function WL(e){if(!e)return[0,0,0];if(go(e))return[e,e,e];if(e.length===0)return[0,0,0];const[t,r=t,n=t]=e;return[t,r,n]}function qk(e,t){let r;return xo(t)?r=t:go(t)?r=()=>t:r=()=>e,r}function g3e(e,t,r=!0){return!t&&t!==0?n=>{const{size:i}=n.data||{};return i?Array.isArray(i)?r?Math.max(...i)||e:i:Bh(i)&&i.width&&i.height?r?Math.max(i.width,i.height)||e:[i.width,i.height]:i:e}:xo(t)?t:go(t)?()=>t:Array.isArray(t)?()=>r?Math.max(...t)||e:t:Bh(t)&&t.width&&t.height?()=>r?Math.max(t.width,t.height)||e:[t.width,t.height]:()=>e}const p3e=(e,t,r=10)=>{let n;const i=typeof t=="function"?t:()=>t||0;return e?Array.isArray(e)?n=o=>e:xo(e)?n=e:n=o=>e:n=o=>{var s,l,u;if(!((s=o.data)===null||s===void 0)&&s.bboxSize)return(l=o.data)===null||l===void 0?void 0:l.bboxSize;if(!((u=o.data)===null||u===void 0)&&u.size){const c=o.data.size;return Array.isArray(c)?c:Bh(c)?[c.width,c.height]:c}return r},o=>{const s=n(o),l=i(o);return Math.max(...WL(s))+l}},CAr={rankdir:"TB",nodesep:50,ranksep:50,edgeLabelSpace:!0,ranker:"tight-tree",controlPoints:!1,radial:!1,focusNode:null};class IAr{constructor(t={}){this.options=t,this.id="antv-dagre",this.options=Object.assign(Object.assign({},CAr),t)}execute(t,r){return Ml(this,void 0,void 0,function*(){return this.genericDagreLayout(!1,t,r)})}assign(t,r){return Ml(this,void 0,void 0,function*(){yield this.genericDagreLayout(!0,t,r)})}genericDagreLayout(t,r,n){return Ml(this,void 0,void 0,function*(){const i=Object.assign(Object.assign({},this.options),n),{nodeSize:a,align:o,rankdir:s="TB",ranksep:l,nodesep:u,ranksepFunc:c,nodesepFunc:A,edgeLabelSpace:f,ranker:h,nodeOrder:g,begin:p,controlPoints:m,radial:b,sortByCombo:C,preset:E}=i,_=new Kd({tree:[]}),F=qk(l||50,c),M=qk(u||50,A);let N=M,P=F;(s==="LR"||s==="RL")&&(N=F,P=M);const j=g3e(10,a,!1),z=r.getAllNodes(),W=r.getAllEdges();z.forEach(Ae=>{const be=WL(j(Ae)),Le=P(Ae),Ne=N(Ae),ue=be[0]+2*Ne,Ke=be[1]+2*Le,Pe=Ae.data.layer;go(Pe)?_.addNode({id:Ae.id,data:{width:ue,height:Ke,layer:Pe}}):_.addNode({id:Ae.id,data:{width:ue,height:Ke}})}),C&&(_.attachTreeStructure("combo"),z.forEach(Ae=>{const{parentId:be}=Ae.data;be!==void 0&&_.hasNode(be)&&_.setParent(Ae.id,be,"combo")})),W.forEach(Ae=>{_.addEdge({id:Ae.id,source:Ae.source,target:Ae.target,data:{weight:Ae.data.weight||1}})});let Y;E!=null&&E.length&&(Y=new Kd({nodes:E})),Zcr(_,{prevGraph:Y,edgeLabelSpace:f,keepNodeOrder:!!g,nodeOrder:g||[],acyclicer:"greedy",ranker:h,rankdir:s,nodesep:u,align:o});const ee=[0,0];if(p){let Ae=1/0,be=1/0;_.getAllNodes().forEach(Le=>{Ae>Le.data.x&&(Ae=Le.data.x),be>Le.data.y&&(be=Le.data.y)}),_.getAllEdges().forEach(Le=>{var Ne;(Ne=Le.data.points)===null||Ne===void 0||Ne.forEach(ue=>{Ae>ue.x&&(Ae=ue.x),be>ue.y&&(be=ue.y)})}),ee[0]=p[0]-Ae,ee[1]=p[1]-be}const q=s==="LR"||s==="RL";if(!b){const Ae=new Set,Le=s==="BT"||s==="RL"?(Pe,je)=>je-Pe:(Pe,je)=>Pe-je;_.getAllNodes().forEach(Pe=>{Pe.data.x=Pe.data.x+ee[0],Pe.data.y=Pe.data.y+ee[1],Ae.add(q?Pe.data.x:Pe.data.y)});const Ne=Array.from(Ae).sort(Le),ue=q?(Pe,je)=>Pe.x!==je.x:(Pe,je)=>Pe.y!==je.y,Ke=q?(Pe,je,Ye)=>{const me=Math.max(je.y,Ye.y),Se=Math.min(je.y,Ye.y);return Pe.filter(et=>et.y<=me&&et.y>=Se)}:(Pe,je,Ye)=>{const me=Math.max(je.x,Ye.x),Se=Math.min(je.x,Ye.x);return Pe.filter(et=>et.x<=me&&et.x>=Se)};_.getAllEdges().forEach((Pe,je)=>{var Ye;f&&m&&Pe.data.type!=="loop"&&(Pe.data.controlPoints=EAr((Ye=Pe.data.points)===null||Ye===void 0?void 0:Ye.map(({x:me,y:Se})=>({x:me+ee[0],y:Se+ee[1]})),_.getNode(Pe.source),_.getNode(Pe.target),Ne,q,ue,Ke))})}let ae=[];ae=_.getAllNodes().map(Ae=>Xm(Ae));const se=_.getAllEdges();return t&&(ae.forEach(Ae=>{r.mergeNodeData(Ae.id,{x:Ae.data.x,y:Ae.data.y})}),se.forEach(Ae=>{r.mergeEdgeData(Ae.id,{controlPoints:Ae.data.controlPoints})})),{nodes:ae,edges:se}})}}const EAr=(e,t,r,n,i,a,o)=>{let s=(e==null?void 0:e.slice(1,e.length-1))||[];if(t&&r){let{x:l,y:u}=t.data,{x:c,y:A}=r.data;if(i&&(l=t.data.y,u=t.data.x,c=r.data.y,A=r.data.x),A!==u&&l!==c){const f=n.indexOf(u),h=n[f+1];if(h){const m=s[0],b=i?{x:(u+h)/2,y:(m==null?void 0:m.y)||c}:{x:(m==null?void 0:m.x)||c,y:(u+h)/2};(!m||a(m,b))&&s.unshift(b)}const g=n.indexOf(A),p=Math.abs(g-f);if(p===1)s=o(s,t.data,r.data),s.length||s.push(i?{x:(u+A)/2,y:l}:{x:l,y:(u+A)/2});else if(p>1){const m=n[g-1];if(m){const b=s[s.length-1],C=i?{x:(A+m)/2,y:(b==null?void 0:b.y)||c}:{x:(b==null?void 0:b.x)||l,y:(A+m)/2};(!b||a(b,C))&&s.push(C)}}}}return s},uQ=(e,t,r)=>{const n=e.getAllNodes(),i=e.getAllEdges();if(!(n!=null&&n.length))return{nodes:[],edges:i};if(n.length===1)return t&&e.mergeNodeData(n[0].id,{x:r[0],y:r[1]}),{nodes:[Object.assign(Object.assign({},n[0]),{data:Object.assign(Object.assign({},n[0].data),{x:r[0],y:r[1]})})],edges:i}},BAr={radius:null,startRadius:null,endRadius:null,startAngle:0,endAngle:2*Math.PI,clockwise:!0,divisions:1,ordering:null,angleRatio:1};class xAr{constructor(t={}){this.options=t,this.id="circular",this.options=Object.assign(Object.assign({},BAr),t)}execute(t,r){return Ml(this,void 0,void 0,function*(){return this.genericCircularLayout(!1,t,r)})}assign(t,r){return Ml(this,void 0,void 0,function*(){yield this.genericCircularLayout(!0,t,r)})}genericCircularLayout(t,r,n){return Ml(this,void 0,void 0,function*(){const i=Object.assign(Object.assign({},this.options),n),{width:a,height:o,center:s,divisions:l,startAngle:u=0,endAngle:c=2*Math.PI,angleRatio:A,ordering:f,clockwise:h,nodeSpacing:g,nodeSize:p}=i,m=r.getAllNodes(),b=r.getAllEdges(),[C,E,_]=kAr(a,o,s),F=m==null?void 0:m.length;if(!F||F===1)return uQ(r,t,_);const M=(c-u)/F;let{radius:N,startRadius:P,endRadius:j}=i;if(g){const q=qk(10,g),ae=g3e(10,p);let se=-1/0;m.forEach(Ae=>{const be=ae(Ae);se{be===0?de+=se||10:de+=(q(Ae)||0)+(se||10)}),N=de/(2*Math.PI)}else!N&&!P&&!j?N=Math.min(E,C)/2:!P&&j?P=j:P&&!j&&(j=P);const z=M*A;let W=[];f==="topology"?W=sMe(r,m):f==="topology-directed"?W=sMe(r,m,!0):f==="degree"?W=SAr(r,m):W=m.map(q=>Xm(q));const Y=Math.ceil(F/l);for(let q=0;q{r.mergeNodeData(q.id,{x:q.data.x,y:q.data.y})}),{nodes:W,edges:b}})}}const sMe=(e,t,r=!1)=>{const n=[Xm(t[0])],i={},a=t.length;i[t[0].id]=!0;let o=0;return t.forEach((s,l)=>{if(l!==0)if((l===a-1||e.getDegree(s.id,"both")!==e.getDegree(t[l+1].id,"both")||e.areNeighbors(n[o].id,s.id))&&!i[s.id])n.push(Xm(s)),i[s.id]=!0,o++;else{const u=r?e.getSuccessors(n[o].id):e.getNeighbors(n[o].id);let c=!1;for(let f=0;f{r.push(Xm(n))}),r.sort((n,i)=>e.getDegree(n.id,"both")-e.getDegree(i.id,"both")),r}const kAr=(e,t,r)=>{let n=e,i=t,a=r;return!n&&typeof window<"u"&&(n=window.innerWidth),!i&&typeof window<"u"&&(i=window.innerHeight),a||(a=[n/2,i/2]),[n,i,a]},QAr={nodeSize:30,nodeSpacing:10,preventOverlap:!1,sweep:void 0,equidistant:!1,startAngle:3/2*Math.PI,clockwise:!0,maxLevelDiff:void 0,sortBy:"degree"};class u2e{constructor(t={}){this.options=t,this.id="concentric",this.options=Object.assign(Object.assign({},QAr),t)}execute(t,r){return Ml(this,void 0,void 0,function*(){return this.genericConcentricLayout(!1,t,r)})}assign(t,r){return Ml(this,void 0,void 0,function*(){yield this.genericConcentricLayout(!0,t,r)})}genericConcentricLayout(t,r,n){return Ml(this,void 0,void 0,function*(){const i=Object.assign(Object.assign({},this.options),n),{center:a,width:o,height:s,sortBy:l,maxLevelDiff:u,sweep:c,clockwise:A,equidistant:f,preventOverlap:h,startAngle:g=3/2*Math.PI,nodeSize:p,nodeSpacing:m}=i,b=r.getAllNodes(),C=r.getAllEdges(),E=!o&&typeof window<"u"?window.innerWidth:o,_=!s&&typeof window<"u"?window.innerHeight:s,F=a||[E/2,_/2];if(!(b!=null&&b.length)||b.length===1)return uQ(r,t,F);const M=[];let N,P=0;bE(p)?N=Math.max(p[0],p[1]):xo(p)?(N=-1/0,b.forEach(Ae=>{const be=Math.max(...WL(p(Ae)));be>N&&(N=be)})):N=p,bE(m)?P=Math.max(m[0],m[1]):go(m)&&(P=m),b.forEach(Ae=>{const be=Xm(Ae);M.push(be);let Le=N;const{data:Ne}=be;bE(Ne.size)?Le=Math.max(Ne.size[0],Ne.size[1]):go(Ne.size)?Le=Ne.size:Bh(Ne.size)&&(Le=Math.max(Ne.size.width,Ne.size.height)),N=Math.max(N,Le),xo(m)&&(P=Math.max(m(Ae),P))});const j={};M.forEach((Ae,be)=>{j[Ae.id]=be});let z=l;(!_u(z)||M[0].data[z]===void 0)&&(z="degree"),z==="degree"?M.sort((Ae,be)=>r.getDegree(be.id,"both")-r.getDegree(Ae.id,"both")):M.sort((Ae,be)=>be.data[z]-Ae.data[z]);const W=M[0],Y=(u||(z==="degree"?r.getDegree(W.id,"both"):W.data[z]))/4,ee=[{nodes:[]}];let q=ee[0];M.forEach(Ae=>{if(q.nodes.length>0){const be=Math.abs(z==="degree"?r.getDegree(q.nodes[0].id,"both")-r.getDegree(Ae.id,"both"):q.nodes[0].data[z]-Ae.data[z]);Y&&be>=Y&&(q={nodes:[]},ee.push(q))}q.nodes.push(Ae)});let ae=N+P;if(!h){const Ae=ee.length>0&&ee[0].nodes.length>1,Le=(Math.min(E,_)/2-ae)/(ee.length+(Ae?1:0));ae=Math.min(ae,Le)}let se=0;if(ee.forEach(Ae=>{const be=c===void 0?2*Math.PI-2*Math.PI/Ae.nodes.length:c;if(Ae.dTheta=be/Math.max(1,Ae.nodes.length-1),Ae.nodes.length>1&&h){const Le=Math.cos(Ae.dTheta)-Math.cos(0),Ne=Math.sin(Ae.dTheta)-Math.sin(0),ue=Math.sqrt(ae*ae/(Le*Le+Ne*Ne));se=Math.max(ue,se)}Ae.r=se,se+=ae}),f){let Ae=0,be=0;for(let Le=0;Le{Ne===0&&(be=Le.r||0),Le.r=be,be+=Ae})}return ee.forEach(Ae=>{const be=Ae.dTheta||0,Le=Ae.r||0;Ae.nodes.forEach((Ne,ue)=>{const Ke=g+(A?1:-1)*be*ue;Ne.data.x=F[0]+Le*Math.cos(Ke),Ne.data.y=F[1]+Le*Math.sin(Ke)})}),t&&M.forEach(Ae=>r.mergeNodeData(Ae.id,{x:Ae.data.x,y:Ae.data.y})),{nodes:M,edges:C}})}}function _Ar(e){const t=+this._x.call(null,e),r=+this._y.call(null,e);return Idt(this.cover(t,r),t,r,e)}function Idt(e,t,r,n){if(isNaN(t)||isNaN(r))return e;var i,a=e._root,o={data:n},s=e._x0,l=e._y0,u=e._x1,c=e._y1,A,f,h,g,p,m,b,C;if(!a)return e._root=o,e;for(;a.length;)if((p=t>=(A=(s+u)/2))?s=A:u=A,(m=r>=(f=(l+c)/2))?l=f:c=f,i=a,!(a=a[b=m<<1|p]))return i[b]=o,e;if(h=+e._x.call(null,a.data),g=+e._y.call(null,a.data),t===h&&r===g)return o.next=a,i?i[b]=o:e._root=o,e;do i=i?i[b]=new Array(4):e._root=new Array(4),(p=t>=(A=(s+u)/2))?s=A:u=A,(m=r>=(f=(l+c)/2))?l=f:c=f;while((b=m<<1|p)===(C=(g>=f)<<1|h>=A));return i[C]=a,i[b]=o,e}function TAr(e){var t,r,n=e.length,i,a,o=new Array(n),s=new Array(n),l=1/0,u=1/0,c=-1/0,A=-1/0;for(r=0;rc&&(c=i),aA&&(A=a));if(l>c||u>A)return this;for(this.cover(l,u).cover(c,A),r=0;re||e>=i||n>t||t>=a;)switch(u=(tc||(s=g.y0)>A||(l=g.x1)=b)<<1|e>=m)&&(g=f[f.length-1],f[f.length-1]=f[f.length-1-p],f[f.length-1-p]=g)}else{var C=e-+this._x.call(null,h.data),E=t-+this._y.call(null,h.data),_=C*C+E*E;if(_=(f=(o+l)/2))?o=f:l=f,(p=A>=(h=(s+u)/2))?s=h:u=h,t=r,!(r=r[m=p<<1|g]))return this;if(!r.length)break;(t[m+1&3]||t[m+2&3]||t[m+3&3])&&(n=t,b=m)}for(;r.data!==e;)if(i=r,!(r=r.next))return this;return(a=r.next)&&delete r.next,i?(a?i.next=a:delete i.next,this):t?(a?t[m]=a:delete t[m],(r=t[0]||t[1]||t[2]||t[3])&&r===(t[3]||t[2]||t[1]||t[0])&&!r.length&&(n?n[b]=r:this._root=r),this):(this._root=a,this)}function NAr(e){for(var t=0,r=e.length;t=(g=(l+A)/2))?l=g:A=g,(F=r>=(p=(u+f)/2))?u=p:f=p,(M=n>=(m=(c+h)/2))?c=m:h=m,a=o,!(o=o[N=M<<2|F<<1|_]))return a[N]=s,e;if(b=+e._x.call(null,o.data),C=+e._y.call(null,o.data),E=+e._z.call(null,o.data),t===b&&r===C&&n===E)return s.next=o,a?a[N]=s:e._root=s,e;do a=a?a[N]=new Array(8):e._root=new Array(8),(_=t>=(g=(l+A)/2))?l=g:A=g,(F=r>=(p=(u+f)/2))?u=p:f=p,(M=n>=(m=(c+h)/2))?c=m:h=m;while((N=M<<2|F<<1|_)===(P=(E>=m)<<2|(C>=p)<<1|b>=g));return a[P]=o,a[N]=s,e}function VAr(e){Array.isArray(e)||(e=Array.from(e));const t=e.length,r=new Float64Array(t),n=new Float64Array(t),i=new Float64Array(t);let a=1/0,o=1/0,s=1/0,l=-1/0,u=-1/0,c=-1/0;for(let A=0,f,h,g,p;Al&&(l=h),gu&&(u=g),pc&&(c=p));if(a>l||o>u||s>c)return this;this.cover(a,o,s).cover(l,u,c);for(let A=0;Ae||e>=o||i>t||t>=s||a>r||r>=l;)switch(f=(rg||(u=E.y0)>p||(c=E.z0)>m||(A=E.x1)=N)<<2|(t>=M)<<1|e>=F)&&(E=b[b.length-1],b[b.length-1]=b[b.length-1-_],b[b.length-1-_]=E)}else{var P=e-+this._x.call(null,C.data),j=t-+this._y.call(null,C.data),z=r-+this._z.call(null,C.data),W=P*P+j*j+z*z;if(WMath.sqrt((e-n)**2+(t-i)**2+(r-a)**2);function ZAr(e,t,r,n){const i=[],a=e-n,o=t-n,s=r-n,l=e+n,u=t+n,c=r+n;return this.visit((A,f,h,g,p,m,b)=>{if(!A.length)do{const C=A.data;XAr(e,t,r,this._x(C),this._y(C),this._z(C))<=n&&i.push(C)}while(A=A.next);return f>l||h>u||g>c||p=(p=(o+u)/2))?o=p:u=p,(E=h>=(m=(s+c)/2))?s=m:c=m,(_=g>=(b=(l+A)/2))?l=b:A=b,t=r,!(r=r[F=_<<2|E<<1|C]))return this;if(!r.length)break;(t[F+1&7]||t[F+2&7]||t[F+3&7]||t[F+4&7]||t[F+5&7]||t[F+6&7]||t[F+7&7])&&(n=t,M=F)}for(;r.data!==e;)if(i=r,!(r=r.next))return this;return(a=r.next)&&delete r.next,i?(a?i.next=a:delete i.next,this):t?(a?t[F]=a:delete t[F],(r=t[0]||t[1]||t[2]||t[3]||t[4]||t[5]||t[6]||t[7])&&r===(t[7]||t[6]||t[5]||t[4]||t[3]||t[2]||t[1]||t[0])&&!r.length&&(n?n[M]=r:this._root=r),this):(this._root=a,this)}function tfr(e){for(var t=0,r=e.length;t{const{nodeStrength:f,x:h,y:g,z:p,size:m}=c.data;return{x:h,y:g,z:p,size:m,index:A,id:c.id,vx:0,vy:0,vz:0,weight:a*f}}),l=(i===2?xX(s,c=>c.x,c=>c.y):Bdt(s,c=>c.x,c=>c.y,c=>c.z)).visitAfter(dfr),u=new Map;return s.forEach(c=>{u.set(c.id,c),pfr(c,l,i)}),s.map((c,A)=>{const{id:f,data:h}=o[A],{mass:g=1}=h;n[f]={x:c.vx/g,y:c.vy/g,z:c.vz/g}}),n}function dfr(e){let t=0,r=0,n=0,i=0,a=0;const o=e.length;if(o){for(let s=0;s{var s;if(((s=e.data)===null||s===void 0?void 0:s.id)===a.id)return;const l=[r,n,i][o-1],u=a.x-e.x||Fse,c=a.y-e.y||Fse,A=a.z-e.z||Fse,f=[u,c,A],h=l-t;let g=0;for(let b=0;bgfr(n,i,a,o,s,e,r))}const vfr={dimensions:2,maxIteration:500,gravity:10,factor:1,edgeStrength:50,nodeStrength:1e3,coulombDisScale:.005,damping:.9,maxSpeed:200,minMovement:.4,interval:.02,linkDistance:200,clusterNodeStrength:20,preventOverlap:!0,distanceThresholdMode:"mean"};class xdt{constructor(t={}){this.options=t,this.id="force",this.timeInterval=0,this.judgingDistance=0,this.running=!1,this.options=Object.assign(Object.assign({},vfr),t)}execute(t,r){return Ml(this,void 0,void 0,function*(){return this.genericForceLayout(!1,t,r)})}assign(t,r){return Ml(this,void 0,void 0,function*(){yield this.genericForceLayout(!0,t,r)})}stop(){this.timeInterval&&typeof window<"u"&&window.clearInterval(this.timeInterval),this.running=!1}tick(t=this.options.maxIteration||1){if(this.lastResult)return this.lastResult;for(let n=0;(this.judgingDistance>this.lastOptions.minMovement||n<1)&&nthis.lastGraph.mergeNodeData(n.id,{x:n.data.x,y:n.data.y,z:this.options.dimensions===3?n.data.z:void 0})),r}genericForceLayout(t,r,n){return Ml(this,void 0,void 0,function*(){const i=Object.assign(Object.assign({},this.options),n),a=r.getAllNodes(),o=r.getAllEdges(),s=this.formatOptions(i,r),{dimensions:l,width:u,height:c,nodeSize:A,getMass:f,nodeStrength:h,edgeStrength:g,linkDistance:p}=s,m=a.map((P,j)=>Object.assign(Object.assign({},P),{data:Object.assign(Object.assign({},P.data),{x:go(P.data.x)?P.data.x:Math.random()*u,y:go(P.data.y)?P.data.y:Math.random()*c,z:go(P.data.z)?P.data.z:Math.random()*Math.sqrt(u*c),size:A(P)||30,mass:f(P),nodeStrength:h(P)})})),b=o.map(P=>Object.assign(Object.assign({},P),{data:Object.assign(Object.assign({},P.data),{edgeStrength:g(P),linkDistance:p(P,r.getNode(P.source),r.getNode(P.target))})}));if(!(a!=null&&a.length))return this.lastResult={nodes:[],edges:o},{nodes:[],edges:o};const C={};a.forEach((P,j)=>{C[P.id]={x:0,y:0,z:0}});const E=new Kd({nodes:m,edges:b});this.formatCentripetal(s,E);const{maxIteration:_,minMovement:F,onTick:M}=s;if(this.lastLayoutNodes=m,this.lastLayoutEdges=b,this.lastAssign=t,this.lastGraph=r,this.lastCalcGraph=E,this.lastOptions=s,this.lastVelMap=C,typeof window>"u")return;let N=0;return new Promise(P=>{this.timeInterval=window.setInterval(()=>{(!a||!this.running)&&P({nodes:Rse(r,m),edges:o}),this.runOneStep(E,r,N,C,s),this.updatePosition(r,E,C,s),t&&m.forEach(j=>r.mergeNodeData(j.id,{x:j.data.x,y:j.data.y,z:l===3?j.data.z:void 0})),M==null||M({nodes:Rse(r,m),edges:o}),N++,(N>=_||this.judgingDistance{let u=1;go(l==null?void 0:l.data.mass)&&(u=l==null?void 0:l.data.mass);const c=r.getDegree(l.id,"both");return!c||c<5?u:c*5*u}),n.nodeSize=p3e(t.nodeSize,t.nodeSpacing);const s=t.linkDistance?qk(1,t.linkDistance):l=>1+n.nodeSize(r.getNode(l.source))+n.nodeSize(r.getNode(l.target));return n.linkDistance=s,n.nodeStrength=qk(1,t.nodeStrength),n.edgeStrength=qk(1,t.edgeStrength),n}formatCentripetal(t,r){const{dimensions:n,centripetalOptions:i,center:a,clusterNodeStrength:o,leafCluster:s,clustering:l,nodeClusterBy:u}=t,c=r.getAllNodes(),A=i||{leaf:2,single:2,others:1,center:b=>({x:a[0],y:a[1],z:n===3?a[2]:void 0})};typeof o!="function"&&(t.clusterNodeStrength=b=>o);let f,h;if(s&&u&&(f=cMe(r,u),h=Array.from(new Set(c==null?void 0:c.map(b=>b.data[u])))||[],t.centripetalOptions=Object.assign(A,{single:100,leaf:b=>{const{siblingLeaves:C,sameTypeLeaves:E}=f[b.id]||{};return(E==null?void 0:E.length)===(C==null?void 0:C.length)||(h==null?void 0:h.length)===1?1:t.clusterNodeStrength(b)},others:1,center:b=>{const C=r.getDegree(b.id,"both");if(!C)return{x:100,y:100,z:0};let E;if(C===1){const{sameTypeLeaves:_=[]}=f[b.id]||{};_.length===1?E=void 0:_.length>1&&(E=AMe(_))}else E=void 0;return{x:E==null?void 0:E.x,y:E==null?void 0:E.y,z:E==null?void 0:E.z}}})),l&&u){f||(f=cMe(r,u)),h||(h=Array.from(new Set(c.map(C=>C.data[u])))),h=h.filter(C=>C!==void 0);const b={};h.forEach(C=>{const E=c.filter(_=>_.data[u]===C).map(_=>r.getNode(_.id));b[C]=AMe(E)}),t.centripetalOptions=Object.assign(A,{single:C=>t.clusterNodeStrength(C),leaf:C=>t.clusterNodeStrength(C),others:C=>t.clusterNodeStrength(C),center:C=>{const E=b[C.data[u]];return{x:E==null?void 0:E.x,y:E==null?void 0:E.y,z:E==null?void 0:E.z}}})}const{leaf:g,single:p,others:m}=t.centripetalOptions||{};g&&typeof g!="function"&&(t.centripetalOptions.leaf=()=>g),p&&typeof p!="function"&&(t.centripetalOptions.single=()=>p),m&&typeof m!="function"&&(t.centripetalOptions.others=()=>m)}runOneStep(t,r,n,i,a){const o={},s=t.getAllNodes(),l=t.getAllEdges();if(!(s!=null&&s.length))return;const{monitor:u}=a;if(this.calRepulsive(t,o,a),l&&this.calAttractive(t,o,a),this.calGravity(t,r,o,a),this.updateVelocity(t,o,i,a),u){const c=this.calTotalEnergy(o,s);u({energy:c,nodes:r.getAllNodes(),edges:r.getAllEdges(),iterations:n})}}calTotalEnergy(t,r){if(!(r!=null&&r.length))return 0;let n=0;return r.forEach((i,a)=>{const o=t[i.id].x,s=t[i.id].y,l=this.options.dimensions===3?t[i.id].z:0,u=o*o+s*s+l*l,{mass:c=1}=i.data;n+=c*u*.5}),n}calRepulsive(t,r,n){const{dimensions:i,factor:a,coulombDisScale:o}=n;hfr(t,a,o*o,r,i)}calAttractive(t,r,n){const{dimensions:i,nodeSize:a}=n;t.getAllEdges().forEach((o,s)=>{const{source:l,target:u}=o,c=t.getNode(l),A=t.getNode(u);if(!c||!A)return;let f=A.data.x-c.data.x,h=A.data.y-c.data.y,g=i===3?A.data.z-c.data.z:0;!f&&!h&&(f=Math.random()*.01,h=Math.random()*.01,i===3&&!g&&(g=Math.random()*.01));const p=Math.sqrt(f*f+h*h+g*g);if(p{const{id:p,data:m}=g,{mass:b,x:C,y:E,z:_}=m,F=r.getNode(p);let M=0,N=0,P=0,j=f;const z=t.getDegree(p,"in"),W=t.getDegree(p,"out"),Y=t.getDegree(p,"both"),ee=a==null?void 0:a(F,Y);if(ee){const[q,ae,se]=ee;M=C-q,N=E-ae,j=se}else M=C-A[0],N=E-A[1],P=_-A[2];if(j&&(n[p].x-=j*M/b,n[p].y-=j*N/b,n[p].z-=j*P/b),h){const{leaf:q,single:ae,others:se,center:de}=h,{x:Ae,y:be,z:Le,centerStrength:Ne}=(de==null?void 0:de(F,s,l,u,c))||{x:0,y:0,z:0,centerStrength:0};if(!go(Ae)||!go(be))return;const ue=(C-Ae)/b,Ke=(E-be)/b,Pe=(_-Le)/b;if(Ne&&(n[p].x-=Ne*ue,n[p].y-=Ne*Ke,n[p].z-=Ne*Pe),Y===0){const Ye=ae(F);if(!Ye)return;n[p].x-=Ye*ue,n[p].y-=Ye*Ke,n[p].z-=Ye*Pe;return}if(z===0||W===0){const Ye=q(F,s,l);if(!Ye)return;n[p].x-=Ye*ue,n[p].y-=Ye*Ke,n[p].z-=Ye*Pe;return}const je=se(F);if(!je)return;n[p].x-=je*ue,n[p].y-=je*Ke,n[p].z-=je*Pe}})}updateVelocity(t,r,n,i){const{damping:a,maxSpeed:o,interval:s,dimensions:l}=i,u=t.getAllNodes();u!=null&&u.length&&u.forEach(c=>{const{id:A}=c;let f=(n[A].x+r[A].x*s)*a||.01,h=(n[A].y+r[A].y*s)*a||.01,g=l===3?(n[A].z+r[A].z*s)*a||.01:0;const p=Math.sqrt(f*f+h*h+g*g);if(p>o){const m=o/p;f=m*f,h=m*h,g=m*g}n[A]={x:f,y:h,z:g}})}updatePosition(t,r,n,i){const{distanceThresholdMode:a,interval:o,dimensions:s}=i,l=r.getAllNodes();if(!(l!=null&&l.length)){this.judgingDistance=0;return}let u=0;a==="max"?this.judgingDistance=-1/0:a==="min"&&(this.judgingDistance=1/0),l.forEach(c=>{const{id:A}=c,f=t.getNode(A);if(go(f.data.fx)&&go(f.data.fy)){r.mergeNodeData(A,{x:f.data.fx,y:f.data.fy,z:s===3?f.data.fz:void 0});return}const h=n[A].x*o,g=n[A].y*o,p=s===3?n[A].z*o:0;r.mergeNodeData(A,{x:c.data.x+h,y:c.data.y+g,z:c.data.z+p});const m=Math.sqrt(h*h+g*g+p*p);switch(a){case"max":this.judgingDistancem&&(this.judgingDistance=m);break;default:u=u+m;break}}),(!a||a==="mean")&&(this.judgingDistance=u/l.length)}}const cMe=(e,t)=>{const r=e.getAllNodes();if(!(r!=null&&r.length))return{};const n={};return r.forEach((i,a)=>{e.getDegree(i.id,"both")===1&&(n[i.id]=mfr(e,"leaf",i,t))}),n},mfr=(e,t,r,n)=>{const i=e.getDegree(r.id,"in"),a=e.getDegree(r.id,"out");let o=r,s=[];i===0?(o=e.getSuccessors(r.id)[0],s=e.getNeighbors(o.id)):a===0&&(o=e.getPredecessors(r.id)[0],s=e.getNeighbors(o.id)),s=s.filter(u=>e.getDegree(u.id,"in")===0||e.getDegree(u.id,"out")===0);const l=yfr(e,t,n,r,s);return{coreNode:o,siblingLeaves:s,sameTypeLeaves:l}},yfr=(e,t,r,n,i)=>{const a=n.data[r]||"";let o=(i==null?void 0:i.filter(s=>s.data[r]===a))||[];return o=o.filter(s=>e.getDegree(s.id,"in")===0||e.getDegree(s.id,"out")===0),o},AMe=e=>{const t={x:0,y:0};e.forEach(n=>{const{x:i,y:a}=n.data;t.x+=i||0,t.y+=a||0});const r=e.length||1;return{x:t.x/r,y:t.y/r}},Rse=(e,t)=>t.map(r=>{const{id:n,data:i}=r,a=e.getNode(n);return Object.assign(Object.assign({},a),{data:Object.assign(Object.assign({},a.data),{x:i.x,y:i.y,z:i.z})})});var iu={};const bfr=Object.prototype.toString;function fN(e){const t=bfr.call(e);return t.endsWith("Array]")&&!t.includes("Big")}const wfr=Object.freeze(Object.defineProperty({__proto__:null,isAnyArray:fN},Symbol.toStringTag,{value:"Module"})),Cfr=N7(wfr);function Ifr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!fN(e))throw new TypeError("input must be an array");if(e.length===0)throw new TypeError("input must not be empty");var r=t.fromIndex,n=r===void 0?0:r,i=t.toIndex,a=i===void 0?e.length:i;if(n<0||n>=e.length||!Number.isInteger(n))throw new Error("fromIndex must be a positive integer smaller than length");if(a<=n||a>e.length||!Number.isInteger(a))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var o=e[n],s=n+1;so&&(o=e[s]);return o}function Efr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!fN(e))throw new TypeError("input must be an array");if(e.length===0)throw new TypeError("input must not be empty");var r=t.fromIndex,n=r===void 0?0:r,i=t.toIndex,a=i===void 0?e.length:i;if(n<0||n>=e.length||!Number.isInteger(n))throw new Error("fromIndex must be a positive integer smaller than length");if(a<=n||a>e.length||!Number.isInteger(a))throw new Error("toIndex must be an integer greater than fromIndex and at most equal to length");for(var o=e[n],s=n+1;s1&&arguments[1]!==void 0?arguments[1]:{};if(fN(e)){if(e.length===0)throw new TypeError("input must not be empty")}else throw new TypeError("input must be an array");var r;if(t.output!==void 0){if(!fN(t.output))throw new TypeError("output option must be an array if specified");r=t.output}else r=new Array(e.length);var n=Efr(e),i=Ifr(e);if(n===i)throw new RangeError("minimum and maximum input values are equal. Cannot rescale a constant array");var a=t.min,o=a===void 0?t.autoMinMax?n:0:a,s=t.max,l=s===void 0?t.autoMinMax?i:1:s;if(o>=l)throw new RangeError("min option must be smaller than max option");for(var u=(l-o)/(i-n),c=0;c=0&&Me?` ${l(Ft,ze-1)}`:l(Ft,ze)).padEnd(ze)}function l(Ft,ze){let Me=Ft.toString();if(Me.length<=ze)return Me;let pe=Ft.toFixed(ze);if(pe.length>ze&&(pe=Ft.toFixed(Math.max(0,ze-(pe.length-ze)))),pe.length<=ze&&!pe.startsWith("0.000")&&!pe.startsWith("-0.000"))return pe;let Ge=Ft.toExponential(ze);return Ge.length>ze&&(Ge=Ft.toExponential(Math.max(0,ze-(Ge.length-ze)))),Ge.slice(0)}function u(Ft,ze){Ft.prototype.add=function(pe){return typeof pe=="number"?this.addS(pe):this.addM(pe)},Ft.prototype.addS=function(pe){for(let Ge=0;Ge>pe);return this},Ft.prototype.signPropagatingRightShiftM=function(pe){if(pe=ze.checkMatrix(pe),this.rows!==pe.rows||this.columns!==pe.columns)throw new RangeError("Matrices dimensions must be equal");for(let Ge=0;Ge>pe.get(Ge,ct));return this},Ft.signPropagatingRightShift=function(pe,Ge){return new ze(pe).signPropagatingRightShift(Ge)},Ft.prototype.rightShift=function(pe){return typeof pe=="number"?this.rightShiftS(pe):this.rightShiftM(pe)},Ft.prototype.rightShiftS=function(pe){for(let Ge=0;Ge>>pe);return this},Ft.prototype.rightShiftM=function(pe){if(pe=ze.checkMatrix(pe),this.rows!==pe.rows||this.columns!==pe.columns)throw new RangeError("Matrices dimensions must be equal");for(let Ge=0;Ge>>pe.get(Ge,ct));return this},Ft.rightShift=function(pe,Ge){return new ze(pe).rightShift(Ge)},Ft.prototype.zeroFillRightShift=Ft.prototype.rightShift,Ft.prototype.zeroFillRightShiftS=Ft.prototype.rightShiftS,Ft.prototype.zeroFillRightShiftM=Ft.prototype.rightShiftM,Ft.zeroFillRightShift=Ft.rightShift,Ft.prototype.not=function(){for(let pe=0;pepe)throw new RangeError("Row index out of range")}function A(Ft,ze,Me){let pe=Me?Ft.columns:Ft.columns-1;if(ze<0||ze>pe)throw new RangeError("Column index out of range")}function f(Ft,ze){if(ze.to1DArray&&(ze=ze.to1DArray()),ze.length!==Ft.columns)throw new RangeError("vector size must be the same as the number of columns");return ze}function h(Ft,ze){if(ze.to1DArray&&(ze=ze.to1DArray()),ze.length!==Ft.rows)throw new RangeError("vector size must be the same as the number of rows");return ze}function g(Ft,ze){if(!e.isAnyArray(ze))throw new TypeError("row indices must be an array");for(let Me=0;Me=Ft.rows)throw new RangeError("row indices are out of range")}function p(Ft,ze){if(!e.isAnyArray(ze))throw new TypeError("column indices must be an array");for(let Me=0;Me=Ft.columns)throw new RangeError("column indices are out of range")}function m(Ft,ze,Me,pe,Ge){if(arguments.length!==5)throw new RangeError("expected 4 arguments");if(C("startRow",ze),C("endRow",Me),C("startColumn",pe),C("endColumn",Ge),ze>Me||pe>Ge||ze<0||ze>=Ft.rows||Me<0||Me>=Ft.rows||pe<0||pe>=Ft.columns||Ge<0||Ge>=Ft.columns)throw new RangeError("Submatrix indices are out of range")}function b(Ft,ze=0){let Me=[];for(let pe=0;pe=ct)throw new RangeError("min must be smaller than max");let Pt=ct-Ge,Vt=new je(ze,Me);for(let Ar=0;Arpe?(ct=!0,pe=Me):(Ge=!1,ct=!0);ze++}return Ge}isReducedEchelonForm(){let ze=0,Me=0,pe=-1,Ge=!0,ct=!1;for(;zepe?(ct=!0,pe=Me):(Ge=!1,ct=!0);for(let Dt=Me+1;Dtze.get(Ge,pe)&&(Ge=ct);if(ze.get(Ge,pe)===0)pe++;else{ze.swapRows(Me,Ge);let ct=ze.get(Me,pe);for(let Dt=pe;Dt=0;)if(ze.maxRow(Ge)===0)Ge--;else{let ct=0,Dt=!1;for(;ctMe[pe]&&(Me[pe]=this.get(pe,Ge));return Me}case"column":{const Me=new Array(this.columns).fill(Number.NEGATIVE_INFINITY);for(let pe=0;peMe[Ge]&&(Me[Ge]=this.get(pe,Ge));return Me}case void 0:{let Me=this.get(0,0);for(let pe=0;peMe&&(Me=this.get(pe,Ge));return Me}default:throw new Error(`invalid option: ${ze}`)}}maxIndex(){E(this);let ze=this.get(0,0),Me=[0,0];for(let pe=0;peze&&(ze=this.get(pe,Ge),Me[0]=pe,Me[1]=Ge);return Me}min(ze){if(this.isEmpty())return NaN;switch(ze){case"row":{const Me=new Array(this.rows).fill(Number.POSITIVE_INFINITY);for(let pe=0;peMe&&(Me=this.get(ze,pe));return Me}maxRowIndex(ze){c(this,ze),E(this);let Me=this.get(ze,0),pe=[ze,0];for(let Ge=1;GeMe&&(Me=this.get(ze,Ge),pe[1]=Ge);return pe}minRow(ze){if(c(this,ze),this.isEmpty())return NaN;let Me=this.get(ze,0);for(let pe=1;peMe&&(Me=this.get(pe,ze));return Me}maxColumnIndex(ze){A(this,ze),E(this);let Me=this.get(0,ze),pe=[0,ze];for(let Ge=1;GeMe&&(Me=this.get(Ge,ze),pe[0]=Ge);return pe}minColumn(ze){if(A(this,ze),this.isEmpty())return NaN;let Me=this.get(0,ze);for(let pe=1;pe=1;Ge/=2)Ge&1&&(Me=Me.mmul(pe)),pe=pe.mmul(pe);return Me}strassen2x2(ze){ze=je.checkMatrix(ze);let Me=new je(2,2);const pe=this.get(0,0),Ge=ze.get(0,0),ct=this.get(0,1),Dt=ze.get(0,1),Pt=this.get(1,0),Vt=ze.get(1,0),Ar=this.get(1,1),pn=ze.get(1,1),Kr=(pe+Ar)*(Ge+pn),xn=(Pt+Ar)*Ge,bn=pe*(Dt-pn),jn=Ar*(Vt-Ge),Br=(pe+ct)*pn,ca=(Pt-pe)*(Ge+Dt),$r=(ct-Ar)*(Vt+pn),Pi=Kr+jn-Br+$r,va=bn+Br,Fi=xn+jn,Jr=Kr-xn+bn+ca;return Me.set(0,0,Pi),Me.set(0,1,va),Me.set(1,0,Fi),Me.set(1,1,Jr),Me}strassen3x3(ze){ze=je.checkMatrix(ze);let Me=new je(3,3);const pe=this.get(0,0),Ge=this.get(0,1),ct=this.get(0,2),Dt=this.get(1,0),Pt=this.get(1,1),Vt=this.get(1,2),Ar=this.get(2,0),pn=this.get(2,1),Kr=this.get(2,2),xn=ze.get(0,0),bn=ze.get(0,1),jn=ze.get(0,2),Br=ze.get(1,0),ca=ze.get(1,1),$r=ze.get(1,2),Pi=ze.get(2,0),va=ze.get(2,1),Fi=ze.get(2,2),Jr=(pe+Ge+ct-Dt-Pt-pn-Kr)*ca,vi=(pe-Dt)*(-bn+ca),oi=Pt*(-xn+bn+Br-ca-$r-Pi+Fi),ma=(-pe+Dt+Pt)*(xn-bn+ca),rs=(Dt+Pt)*(-xn+bn),vn=pe*xn,gi=(-pe+Ar+pn)*(xn-jn+$r),ka=(-pe+Ar)*(jn-$r),xi=(Ar+pn)*(-xn+jn),Ks=(pe+Ge+ct-Pt-Vt-Ar-pn)*$r,Vs=pn*(-xn+jn+Br-ca-$r-Pi+va),Ms=(-ct+pn+Kr)*(ca+Pi-va),Ws=(ct-Kr)*(ca-va),uu=ct*Pi,Ya=(pn+Kr)*(-Pi+va),Zl=(-ct+Pt+Vt)*($r+Pi-Fi),qc=(ct-Vt)*($r-Fi),Ic=(Pt+Vt)*(-Pi+Fi),as=Ge*Br,Yo=Vt*va,zo=Dt*jn,yl=Ar*bn,ns=Kr*Fi,GA=vn+uu+as,dd=Jr+ma+rs+vn+Ms+uu+Ya,$A=vn+gi+xi+Ks+uu+Zl+Ic,Xo=vi+oi+ma+vn+uu+Zl+qc,Oh=vi+ma+rs+vn+Yo,zA=uu+Zl+qc+Ic+zo,KA=vn+gi+ka+Vs+Ms+Ws+uu,al=Ms+Ws+uu+Ya+yl,Sg=vn+gi+ka+xi+ns;return Me.set(0,0,GA),Me.set(0,1,dd),Me.set(0,2,$A),Me.set(1,0,Xo),Me.set(1,1,Oh),Me.set(1,2,zA),Me.set(2,0,KA),Me.set(2,1,al),Me.set(2,2,Sg),Me}mmulStrassen(ze){ze=je.checkMatrix(ze);let Me=this.clone(),pe=Me.rows,Ge=Me.columns,ct=ze.rows,Dt=ze.columns;Ge!==ct&&console.warn(`Multiplying ${pe} x ${Ge} and ${ct} x ${Dt} matrix: dimensions do not match.`);function Pt(Kr,xn,bn){let jn=Kr.rows,Br=Kr.columns;if(jn===xn&&Br===bn)return Kr;{let ca=ue.zeros(xn,bn);return ca=ca.setSubMatrix(Kr,0,0),ca}}let Vt=Math.max(pe,ct),Ar=Math.max(Ge,Dt);Me=Pt(Me,Vt,Ar),ze=Pt(ze,Vt,Ar);function pn(Kr,xn,bn,jn){if(bn<=512||jn<=512)return Kr.mmul(xn);bn%2===1&&jn%2===1?(Kr=Pt(Kr,bn+1,jn+1),xn=Pt(xn,bn+1,jn+1)):bn%2===1?(Kr=Pt(Kr,bn+1,jn),xn=Pt(xn,bn+1,jn)):jn%2===1&&(Kr=Pt(Kr,bn,jn+1),xn=Pt(xn,bn,jn+1));let Br=parseInt(Kr.rows/2,10),ca=parseInt(Kr.columns/2,10),$r=Kr.subMatrix(0,Br-1,0,ca-1),Pi=xn.subMatrix(0,Br-1,0,ca-1),va=Kr.subMatrix(0,Br-1,ca,Kr.columns-1),Fi=xn.subMatrix(0,Br-1,ca,xn.columns-1),Jr=Kr.subMatrix(Br,Kr.rows-1,0,ca-1),vi=xn.subMatrix(Br,xn.rows-1,0,ca-1),oi=Kr.subMatrix(Br,Kr.rows-1,ca,Kr.columns-1),ma=xn.subMatrix(Br,xn.rows-1,ca,xn.columns-1),rs=pn(ue.add($r,oi),ue.add(Pi,ma),Br,ca),vn=pn(ue.add(Jr,oi),Pi,Br,ca),gi=pn($r,ue.sub(Fi,ma),Br,ca),ka=pn(oi,ue.sub(vi,Pi),Br,ca),xi=pn(ue.add($r,va),ma,Br,ca),Ks=pn(ue.sub(Jr,$r),ue.add(Pi,Fi),Br,ca),Vs=pn(ue.sub(va,oi),ue.add(vi,ma),Br,ca),Ms=ue.add(rs,ka);Ms.sub(xi),Ms.add(Vs);let Ws=ue.add(gi,xi),uu=ue.add(vn,ka),Ya=ue.sub(rs,vn);Ya.add(gi),Ya.add(Ks);let Zl=ue.zeros(2*Ms.rows,2*Ms.columns);return Zl=Zl.setSubMatrix(Ms,0,0),Zl=Zl.setSubMatrix(Ws,Ms.rows,0),Zl=Zl.setSubMatrix(uu,0,Ms.columns),Zl=Zl.setSubMatrix(Ya,Ms.rows,Ms.columns),Zl.subMatrix(0,bn-1,0,jn-1)}return pn(Me,ze,Vt,Ar)}scaleRows(ze={}){if(typeof ze!="object")throw new TypeError("options must be an object");const{min:Me=0,max:pe=1}=ze;if(!Number.isFinite(Me))throw new TypeError("min must be a number");if(!Number.isFinite(pe))throw new TypeError("max must be a number");if(Me>=pe)throw new RangeError("min must be smaller than max");let Ge=new je(this.rows,this.columns);for(let ct=0;ct0&&t(Dt,{min:Me,max:pe,output:Dt}),Ge.setRow(ct,Dt)}return Ge}scaleColumns(ze={}){if(typeof ze!="object")throw new TypeError("options must be an object");const{min:Me=0,max:pe=1}=ze;if(!Number.isFinite(Me))throw new TypeError("min must be a number");if(!Number.isFinite(pe))throw new TypeError("max must be a number");if(Me>=pe)throw new RangeError("min must be smaller than max");let Ge=new je(this.rows,this.columns);for(let ct=0;ctpe||Me<0||Me>=this.columns||pe<0||pe>=this.columns)throw new RangeError("Argument out of range");let Ge=new je(ze.length,pe-Me+1);for(let ct=0;ct=this.rows)throw new RangeError(`Row index out of range: ${ze[ct]}`);Ge.set(ct,Dt-Me,this.get(ze[ct],Dt))}return Ge}subMatrixColumn(ze,Me,pe){if(Me===void 0&&(Me=0),pe===void 0&&(pe=this.rows-1),Me>pe||Me<0||Me>=this.rows||pe<0||pe>=this.rows)throw new RangeError("Argument out of range");let Ge=new je(pe-Me+1,ze.length);for(let ct=0;ct=this.columns)throw new RangeError(`Column index out of range: ${ze[ct]}`);Ge.set(Dt-Me,ct,this.get(Dt,ze[ct]))}return Ge}setSubMatrix(ze,Me,pe){if(ze=je.checkMatrix(ze),ze.isEmpty())return this;let Ge=Me+ze.rows-1,ct=pe+ze.columns-1;m(this,Me,Ge,pe,ct);for(let Dt=0;Dttypeof ze=="number")}ue.random=ue.rand,ue.randomInt=ue.randInt,ue.diagonal=ue.diag,ue.prototype.diagonal=ue.prototype.diag,ue.identity=ue.eye,ue.prototype.negate=ue.prototype.neg,ue.prototype.tensorProduct=ue.prototype.kroneckerProduct;const ci=class ci extends ue{constructor(Me,pe){super();oae(this,$i);RA(this,"data");if(ci.isMatrix(Me))sae(this,$i,c2e).call(this,Me.rows,Me.columns),ci.copy(Me,this);else if(Number.isInteger(Me)&&Me>=0)sae(this,$i,c2e).call(this,Me,pe);else if(e.isAnyArray(Me)){const Ge=Me;if(Me=Ge.length,pe=Me?Ge[0].length:0,typeof pe!="number")throw new TypeError("Data must be a 2D array with at least one element");this.data=[];for(let ct=0;ct"u"&&(pe=Me,Me=this.columns),A(this,Me,!0),pe=h(this,pe);for(let Ge=0;Ge=0)for(let Ge=0;Ge=0)Sj(this,Ni,new je(Me,Me));else if(Sj(this,Ni,new je(Me)),!this.isSymmetric())throw new TypeError("not symmetric data")}get size(){return yb(this,Ni).size}get rows(){return yb(this,Ni).rows}get columns(){return yb(this,Ni).columns}get diagonalSize(){return this.rows}static isSymmetricMatrix(Me){return je.isMatrix(Me)&&Me.klassType==="SymmetricMatrix"}static zeros(Me){return new this(Me)}static ones(Me){return new this(Me).fill(1)}clone(){const Me=new oo(this.diagonalSize);for(const[pe,Ge,ct]of this.upperRightEntries())Me.set(pe,Ge,ct);return Me}toMatrix(){return new je(this)}get(Me,pe){return yb(this,Ni).get(Me,pe)}set(Me,pe,Ge){return yb(this,Ni).set(Me,pe,Ge),yb(this,Ni).set(pe,Me,Ge),this}removeCross(Me){return yb(this,Ni).removeRow(Me),yb(this,Ni).removeColumn(Me),this}addCross(Me,pe){pe===void 0&&(pe=Me,Me=this.diagonalSize);const Ge=pe.slice();return Ge.splice(Me,1),yb(this,Ni).addRow(Me,Ge),yb(this,Ni).addColumn(Me,pe),this}applyMask(Me){if(Me.length!==this.diagonalSize)throw new RangeError("Mask size do not match with matrix size");const pe=[];for(const[Ge,ct]of Me.entries())ct||pe.push(Ge);pe.reverse();for(const Ge of pe)this.removeCross(Ge);return this}toCompact(){const{diagonalSize:Me}=this,pe=new Array(Me*(Me+1)/2);for(let Ge=0,ct=0,Dt=0;Dt=Me&&(Ge=++ct);return pe}static fromCompact(Me){const pe=Me.length,Ge=(Math.sqrt(8*pe+1)-1)/2;if(!Number.isInteger(Ge))throw new TypeError(`This array is not a compact representation of a Symmetric Matrix, ${JSON.stringify(Me)}`);const ct=new oo(Ge);for(let Dt=0,Pt=0,Vt=0;Vt=Ge&&(Dt=++Pt);return ct}*upperRightEntries(){for(let Me=0,pe=0;Me=this.diagonalSize&&(pe=++Me)}}*upperRightValues(){for(let Me=0,pe=0;Me=this.diagonalSize&&(pe=++Me)}};Ni=new WeakMap;let Ye=oo;Ye.prototype.klassType="SymmetricMatrix";class me extends Ye{static isDistanceMatrix(ze){return Ye.isSymmetricMatrix(ze)&&ze.klassSubType==="DistanceMatrix"}constructor(ze){if(super(ze),!this.isDistance())throw new TypeError("Provided arguments do no produce a distance matrix")}set(ze,Me,pe){return ze===Me&&(pe=0),super.set(ze,Me,pe)}addCross(ze,Me){return Me===void 0&&(Me=ze,ze=this.diagonalSize),Me=Me.slice(),Me[ze]=0,super.addCross(ze,Me)}toSymmetricMatrix(){return new Ye(this)}clone(){const ze=new me(this.diagonalSize);for(const[Me,pe,Ge]of this.upperRightEntries())Me!==pe&&ze.set(Me,pe,Ge);return ze}toCompact(){const{diagonalSize:ze}=this,Me=(ze-1)*ze/2,pe=new Array(Me);for(let Ge=1,ct=0,Dt=0;Dt=ze&&(Ge=++ct+1);return pe}static fromCompact(ze){const Me=ze.length;if(Me===0)return new this(0);const pe=(Math.sqrt(8*Me+1)+1)/2;if(!Number.isInteger(pe))throw new TypeError(`This array is not a compact representation of a DistanceMatrix, ${JSON.stringify(ze)}`);const Ge=new this(pe);for(let ct=1,Dt=0,Pt=0;Pt=pe&&(ct=++Dt+1);return Ge}}me.prototype.klassSubType="DistanceMatrix";class Se extends ue{constructor(ze,Me,pe){super(),this.matrix=ze,this.rows=Me,this.columns=pe}}class et extends Se{constructor(ze,Me){A(ze,Me),super(ze,ze.rows,1),this.column=Me}set(ze,Me,pe){return this.matrix.set(ze,this.column,pe),this}get(ze){return this.matrix.get(ze,this.column)}}class nt extends Se{constructor(ze,Me){p(ze,Me),super(ze,ze.rows,Me.length),this.columnIndices=Me}set(ze,Me,pe){return this.matrix.set(ze,this.columnIndices[Me],pe),this}get(ze,Me){return this.matrix.get(ze,this.columnIndices[Me])}}class tt extends Se{constructor(ze){super(ze,ze.rows,ze.columns)}set(ze,Me,pe){return this.matrix.set(ze,this.columns-Me-1,pe),this}get(ze,Me){return this.matrix.get(ze,this.columns-Me-1)}}class ft extends Se{constructor(ze){super(ze,ze.rows,ze.columns)}set(ze,Me,pe){return this.matrix.set(this.rows-ze-1,Me,pe),this}get(ze,Me){return this.matrix.get(this.rows-ze-1,Me)}}class st extends Se{constructor(ze,Me){c(ze,Me),super(ze,1,ze.columns),this.row=Me}set(ze,Me,pe){return this.matrix.set(this.row,Me,pe),this}get(ze,Me){return this.matrix.get(this.row,Me)}}class Re extends Se{constructor(ze,Me){g(ze,Me),super(ze,Me.length,ze.columns),this.rowIndices=Me}set(ze,Me,pe){return this.matrix.set(this.rowIndices[ze],Me,pe),this}get(ze,Me){return this.matrix.get(this.rowIndices[ze],Me)}}class dt extends Se{constructor(ze,Me,pe){g(ze,Me),p(ze,pe),super(ze,Me.length,pe.length),this.rowIndices=Me,this.columnIndices=pe}set(ze,Me,pe){return this.matrix.set(this.rowIndices[ze],this.columnIndices[Me],pe),this}get(ze,Me){return this.matrix.get(this.rowIndices[ze],this.columnIndices[Me])}}class Oe extends Se{constructor(ze,Me,pe,Ge,ct){m(ze,Me,pe,Ge,ct),super(ze,pe-Me+1,ct-Ge+1),this.startRow=Me,this.startColumn=Ge}set(ze,Me,pe){return this.matrix.set(this.startRow+ze,this.startColumn+Me,pe),this}get(ze,Me){return this.matrix.get(this.startRow+ze,this.startColumn+Me)}}class Ce extends Se{constructor(ze){super(ze,ze.columns,ze.rows)}set(ze,Me,pe){return this.matrix.set(Me,ze,pe),this}get(ze,Me){return this.matrix.get(Me,ze)}}class Be extends ue{constructor(ze,Me={}){const{rows:pe=1}=Me;if(ze.length%pe!==0)throw new Error("the data length is not divisible by the number of rows");super(),this.rows=pe,this.columns=ze.length/pe,this.data=ze}set(ze,Me,pe){let Ge=this._calculateIndex(ze,Me);return this.data[Ge]=pe,this}get(ze,Me){let pe=this._calculateIndex(ze,Me);return this.data[pe]}_calculateIndex(ze,Me){return ze*this.columns+Me}}class We extends ue{constructor(ze){super(),this.data=ze,this.rows=ze.length,this.columns=ze[0].length}set(ze,Me,pe){return this.data[ze][Me]=pe,this}get(ze,Me){return this.data[ze][Me]}}function mt(Ft,ze){if(e.isAnyArray(Ft))return Ft[0]&&e.isAnyArray(Ft[0])?new We(Ft):new Be(Ft,ze);throw new Error("the argument is not an array")}class Tt{constructor(ze){ze=We.checkMatrix(ze);let Me=ze.clone(),pe=Me.rows,Ge=Me.columns,ct=new Float64Array(pe),Dt=1,Pt,Vt,Ar,pn,Kr,xn,bn,jn,Br;for(Pt=0;PtMath.abs(jn[pn])&&(pn=Pt);if(pn!==Vt){for(Ar=0;Ar=0;Ar--){for(Vt=0;VtDt?Ge.set(ct,Dt,ze.get(ct,Dt)):ct===Dt?Ge.set(ct,Dt,1):Ge.set(ct,Dt,0);return Ge}get upperTriangularMatrix(){let ze=this.LU,Me=ze.rows,pe=ze.columns,Ge=new je(Me,pe);for(let ct=0;ctMath.abs(ze)?(Me=ze/Ft,Math.abs(Ft)*Math.sqrt(1+Me*Me)):ze!==0?(Me=Ft/ze,Math.abs(ze)*Math.sqrt(1+Me*Me)):0}class qt{constructor(ze){ze=We.checkMatrix(ze);let Me=ze.clone(),pe=ze.rows,Ge=ze.columns,ct=new Float64Array(Ge),Dt,Pt,Vt,Ar;for(Vt=0;Vt=0;Ar--){for(Vt=0;Vt=0;Pt--){for(ct=0;ct=0;vn--)if(jn[vn]!==0){for(let gi=vn+1;gi=0;vn--){if(vn0;){let vn,gi;for(vn=oi-2;vn>=-1&&vn!==-1;vn--){const ka=Number.MIN_VALUE+rs*Math.abs(jn[vn]+Math.abs(jn[vn+1]));if(Math.abs($r[vn])<=ka||Number.isNaN($r[vn])){$r[vn]=0;break}}if(vn===oi-2)gi=4;else{let ka;for(ka=oi-1;ka>=vn&&ka!==vn;ka--){let xi=(ka!==oi?Math.abs($r[ka]):0)+(ka!==vn+1?Math.abs($r[ka-1]):0);if(Math.abs(jn[ka])<=rs*xi){jn[ka]=0;break}}ka===vn?gi=3:ka===oi-1?gi=1:(gi=2,vn=ka)}switch(vn++,gi){case 1:{let ka=$r[oi-2];$r[oi-2]=0;for(let xi=oi-2;xi>=vn;xi--){let Ks=bt(jn[xi],ka),Vs=jn[xi]/Ks,Ms=ka/Ks;if(jn[xi]=Ks,xi!==vn&&(ka=-Ms*$r[xi-1],$r[xi-1]=Vs*$r[xi-1]),Ar)for(let Ws=0;Ws=jn[vn+1]);){let ka=jn[vn];if(jn[vn]=jn[vn+1],jn[vn+1]=ka,Ar&&vnMe&&ct.set(pn,Kr,ze.get(pn,Kr)/this.s[Kr]);let Dt=this.U,Pt=Dt.rows,Vt=Dt.columns,Ar=new je(pe,Pt);for(let pn=0;pnze&&Me++;return Me}get diagonal(){return Array.from(this.s)}get threshold(){return Number.EPSILON/2*Math.max(this.m,this.n)*this.s[0]}get leftSingularVectors(){return this.U}get rightSingularVectors(){return this.V}get diagonalMatrix(){return je.diag(this.s)}}function Gt(Ft,ze=!1){return Ft=We.checkMatrix(Ft),ze?new cr(Ft).inverse():Xt(Ft,je.eye(Ft.rows))}function Xt(Ft,ze,Me=!1){return Ft=We.checkMatrix(Ft),ze=We.checkMatrix(ze),Me?new cr(Ft).solve(ze):Ft.isSquare()?new Tt(Ft).solve(ze):new qt(Ft).solve(ze)}function Er(Ft){if(Ft=je.checkMatrix(Ft),Ft.isSquare()){if(Ft.columns===0)return 1;let ze,Me,pe,Ge;if(Ft.columns===2)return ze=Ft.get(0,0),Me=Ft.get(0,1),pe=Ft.get(1,0),Ge=Ft.get(1,1),ze*Ge-Me*pe;if(Ft.columns===3){let ct,Dt,Pt;return ct=new dt(Ft,[1,2],[1,2]),Dt=new dt(Ft,[1,2],[0,2]),Pt=new dt(Ft,[1,2],[0,1]),ze=Ft.get(0,0),Me=Ft.get(0,1),pe=Ft.get(0,2),ze*Er(ct)-Me*Er(Dt)+pe*Er(Pt)}else return new Tt(Ft).determinant}else throw Error("determinant can only be calculated for a square matrix")}function on(Ft,ze){let Me=[];for(let pe=0;peGe)return new Array(ze.rows+1).fill(0);{let ct=ze.addRow(Me,[0]);for(let Dt=0;Dtze?ct[Dt]=1/ct[Dt]:ct[Dt]=0;return Ge.mmul(je.diag(ct).mmul(pe.transpose()))}function Hr(Ft,ze=Ft,Me={}){Ft=new je(Ft);let pe=!1;if(typeof ze=="object"&&!je.isMatrix(ze)&&!e.isAnyArray(ze)?(Me=ze,ze=Ft,pe=!0):ze=new je(ze),Ft.rows!==ze.rows)throw new TypeError("Both matrices must have the same number of rows");const{center:Ge=!0}=Me;Ge&&(Ft=Ft.center("column"),pe||(ze=ze.center("column")));const ct=Ft.transpose().mmul(ze);for(let Dt=0;Dt0?Ge.set(ct,ct+1,Me[ct]):Me[ct]<0&&Ge.set(ct,ct-1,Me[ct])}return Ge}}function en(Ft,ze,Me,pe){let Ge,ct,Dt,Pt,Vt,Ar,pn,Kr;for(Vt=0;Vt0;Pt--){for(Kr=0,Dt=0,Ar=0;Ar0&&(ct=-ct),ze[Pt]=Kr*ct,Dt=Dt-Ge*ct,Me[Pt-1]=Ge-ct,Vt=0;VtAr)do{for(Ge=Me[Ar],Kr=(Me[Ar+1]-Ge)/(2*ze[Ar]),xn=bt(Kr,1),Kr<0&&(xn=-xn),Me[Ar]=ze[Ar]/(Kr+xn),Me[Ar+1]=ze[Ar]*(Kr+xn),bn=Me[Ar+1],ct=Ge-Me[Ar],Dt=Ar+2;Dt=Ar;Dt--)for(ca=Br,Br=jn,va=Pi,Ge=jn*ze[Dt],ct=jn*Kr,xn=bt(Kr,ze[Dt]),ze[Dt+1]=Pi*xn,Pi=ze[Dt]/xn,jn=Kr/xn,Kr=jn*Me[Dt]-Pi*Ge,Me[Dt+1]=ct+Pi*(jn*Ge+Pi*Me[Dt]),Vt=0;Vtvi*Jr);Me[Ar]=Me[Ar]+Fi,ze[Ar]=0}for(Dt=0;Dt=Kr;Ar--)Me[Ar]=ze.get(Ar,Kr-1)/xn,Vt+=Me[Ar]*Me[Ar];for(Pt=Math.sqrt(Vt),Me[Kr]>0&&(Pt=-Pt),Vt=Vt-Me[Kr]*Pt,Me[Kr]=Me[Kr]-Pt,pn=Kr;pn=Kr;Ar--)Dt+=Me[Ar]*ze.get(Ar,pn);for(Dt=Dt/Vt,Ar=Kr;Ar<=ct;Ar++)ze.set(Ar,pn,ze.get(Ar,pn)-Dt*Me[Ar])}for(Ar=0;Ar<=ct;Ar++){for(Dt=0,pn=ct;pn>=Kr;pn--)Dt+=Me[pn]*ze.get(Ar,pn);for(Dt=Dt/Vt,pn=Kr;pn<=ct;pn++)ze.set(Ar,pn,ze.get(Ar,pn)-Dt*Me[pn])}Me[Kr]=xn*Me[Kr],ze.set(Kr,Kr-1,xn*Pt)}}for(Ar=0;Ar=Ge+1;Kr--)if(ze.get(Kr,Kr-1)!==0){for(Ar=Kr+1;Ar<=ct;Ar++)Me[Ar]=ze.get(Ar,Kr-1);for(pn=Kr;pn<=ct;pn++){for(Pt=0,Ar=Kr;Ar<=ct;Ar++)Pt+=Me[Ar]*pe.get(Ar,pn);for(Pt=Pt/Me[Kr]/ze.get(Kr,Kr-1),Ar=Kr;Ar<=ct;Ar++)pe.set(Ar,pn,pe.get(Ar,pn)+Pt*Me[Ar])}}}function Gi(Ft,ze,Me,pe,Ge){let ct=Ft-1,Dt=0,Pt=Ft-1,Vt=Number.EPSILON,Ar=0,pn=0,Kr=0,xn=0,bn=0,jn=0,Br=0,ca=0,$r,Pi,va,Fi,Jr,vi,oi,ma,rs,vn,gi,ka,xi,Ks,Vs;for($r=0;$rPt)&&(Me[$r]=Ge.get($r,$r),ze[$r]=0),Pi=Math.max($r-1,0);Pi=Dt;){for(Fi=ct;Fi>Dt&&(jn=Math.abs(Ge.get(Fi-1,Fi-1))+Math.abs(Ge.get(Fi,Fi)),jn===0&&(jn=pn),!(Math.abs(Ge.get(Fi,Fi-1))=0){for(Br=Kr>=0?Kr+Br:Kr-Br,Me[ct-1]=ma+Br,Me[ct]=Me[ct-1],Br!==0&&(Me[ct]=ma-oi/Br),ze[ct-1]=0,ze[ct]=0,ma=Ge.get(ct,ct-1),jn=Math.abs(ma)+Math.abs(Br),Kr=ma/jn,xn=Br/jn,bn=Math.sqrt(Kr*Kr+xn*xn),Kr=Kr/bn,xn=xn/bn,Pi=ct-1;Pi0)){for(jn=Math.sqrt(jn),rs=Fi&&(Br=Ge.get(Jr,Jr),bn=ma-Br,jn=rs-Br,Kr=(bn*jn-oi)/Ge.get(Jr+1,Jr)+Ge.get(Jr,Jr+1),xn=Ge.get(Jr+1,Jr+1)-Br-bn-jn,bn=Ge.get(Jr+2,Jr+1),jn=Math.abs(Kr)+Math.abs(xn)+Math.abs(bn),Kr=Kr/jn,xn=xn/jn,bn=bn/jn,!(Jr===Fi||Math.abs(Ge.get(Jr,Jr-1))*(Math.abs(xn)+Math.abs(bn))Jr+2&&Ge.set($r,$r-3,0);for(va=Jr;va<=ct-1&&(Ks=va!==ct-1,va!==Jr&&(Kr=Ge.get(va,va-1),xn=Ge.get(va+1,va-1),bn=Ks?Ge.get(va+2,va-1):0,ma=Math.abs(Kr)+Math.abs(xn)+Math.abs(bn),ma!==0&&(Kr=Kr/ma,xn=xn/ma,bn=bn/ma)),ma!==0);va++)if(jn=Math.sqrt(Kr*Kr+xn*xn+bn*bn),Kr<0&&(jn=-jn),jn!==0){for(va!==Jr?Ge.set(va,va-1,-jn*ma):Fi!==Jr&&Ge.set(va,va-1,-Ge.get(va,va-1)),Kr=Kr+jn,ma=Kr/jn,rs=xn/jn,Br=bn/jn,xn=xn/Kr,bn=bn/Kr,Pi=va;Pi=0;ct--)if(Kr=Me[ct],xn=ze[ct],xn===0)for(Fi=ct,Ge.set(ct,ct,1),$r=ct-1;$r>=0;$r--){for(oi=Ge.get($r,$r)-Kr,bn=0,Pi=Fi;Pi<=ct;Pi++)bn=bn+Ge.get($r,Pi)*Ge.get(Pi,ct);if(ze[$r]<0)Br=oi,jn=bn;else if(Fi=$r,ze[$r]===0?Ge.set($r,ct,oi!==0?-bn/oi:-bn/(Vt*pn)):(ma=Ge.get($r,$r+1),rs=Ge.get($r+1,$r),xn=(Me[$r]-Kr)*(Me[$r]-Kr)+ze[$r]*ze[$r],vi=(ma*jn-Br*bn)/xn,Ge.set($r,ct,vi),Ge.set($r+1,ct,Math.abs(ma)>Math.abs(Br)?(-bn-oi*vi)/ma:(-jn-rs*vi)/Br)),vi=Math.abs(Ge.get($r,ct)),Vt*vi*vi>1)for(Pi=$r;Pi<=ct;Pi++)Ge.set(Pi,ct,Ge.get(Pi,ct)/vi)}else if(xn<0)for(Fi=ct-1,Math.abs(Ge.get(ct,ct-1))>Math.abs(Ge.get(ct-1,ct))?(Ge.set(ct-1,ct-1,xn/Ge.get(ct,ct-1)),Ge.set(ct-1,ct,-(Ge.get(ct,ct)-Kr)/Ge.get(ct,ct-1))):(Vs=za(0,-Ge.get(ct-1,ct),Ge.get(ct-1,ct-1)-Kr,xn),Ge.set(ct-1,ct-1,Vs[0]),Ge.set(ct-1,ct,Vs[1])),Ge.set(ct,ct-1,0),Ge.set(ct,ct,1),$r=ct-2;$r>=0;$r--){for(vn=0,gi=0,Pi=Fi;Pi<=ct;Pi++)vn=vn+Ge.get($r,Pi)*Ge.get(Pi,ct-1),gi=gi+Ge.get($r,Pi)*Ge.get(Pi,ct);if(oi=Ge.get($r,$r)-Kr,ze[$r]<0)Br=oi,bn=vn,jn=gi;else if(Fi=$r,ze[$r]===0?(Vs=za(-vn,-gi,oi,xn),Ge.set($r,ct-1,Vs[0]),Ge.set($r,ct,Vs[1])):(ma=Ge.get($r,$r+1),rs=Ge.get($r+1,$r),ka=(Me[$r]-Kr)*(Me[$r]-Kr)+ze[$r]*ze[$r]-xn*xn,xi=(Me[$r]-Kr)*2*xn,ka===0&&xi===0&&(ka=Vt*pn*(Math.abs(oi)+Math.abs(xn)+Math.abs(ma)+Math.abs(rs)+Math.abs(Br))),Vs=za(ma*bn-Br*vn+xn*gi,ma*jn-Br*gi-xn*vn,ka,xi),Ge.set($r,ct-1,Vs[0]),Ge.set($r,ct,Vs[1]),Math.abs(ma)>Math.abs(Br)+Math.abs(xn)?(Ge.set($r+1,ct-1,(-vn-oi*Ge.get($r,ct-1)+xn*Ge.get($r,ct))/ma),Ge.set($r+1,ct,(-gi-oi*Ge.get($r,ct)-xn*Ge.get($r,ct-1))/ma)):(Vs=za(-bn-rs*Ge.get($r,ct-1),-jn-rs*Ge.get($r,ct),Br,xn),Ge.set($r+1,ct-1,Vs[0]),Ge.set($r+1,ct,Vs[1]))),vi=Math.max(Math.abs(Ge.get($r,ct-1)),Math.abs(Ge.get($r,ct))),Vt*vi*vi>1)for(Pi=$r;Pi<=ct;Pi++)Ge.set(Pi,ct-1,Ge.get(Pi,ct-1)/vi),Ge.set(Pi,ct,Ge.get(Pi,ct)/vi)}for($r=0;$rPt)for(Pi=$r;Pi=Dt;Pi--)for($r=Dt;$r<=Pt;$r++){for(Br=0,va=Dt;va<=Math.min(Pi,Pt);va++)Br=Br+pe.get($r,va)*Ge.get(va,Pi);pe.set($r,Pi,Br)}}}function za(Ft,ze,Me,pe){let Ge,ct;return Math.abs(Me)>Math.abs(pe)?(Ge=pe/Me,ct=Me+Ge*pe,[(Ft+Ge*ze)/ct,(ze-Ge*Ft)/ct]):(Ge=Me/pe,ct=pe+Ge*Me,[(Ge*Ft+ze)/ct,(Ge*ze-Ft)/ct])}class xa{constructor(ze){if(ze=We.checkMatrix(ze),!ze.isSymmetric())throw new Error("Matrix is not symmetric");let Me=ze,pe=Me.rows,Ge=new je(pe,pe),ct=!0,Dt,Pt,Vt;for(Pt=0;Pt0),Ge.set(Pt,Pt,Math.sqrt(Math.max(Ar,0))),Vt=Pt+1;Vt=0;Vt--)for(Pt=0;PtDt;bn++)Kr=ze.transpose().mmul(Pt).div(Pt.transpose().mmul(Pt).get(0,0)),Kr=Kr.div(Kr.norm()),Ar=ze.mmul(Kr).div(Kr.transpose().mmul(Kr).get(0,0)),bn>0&&(Vt=Ar.clone().sub(xn).pow(2).sum()),xn=Ar.clone(),pe?(pn=pe.transpose().mmul(Ar).div(Ar.transpose().mmul(Ar).get(0,0)),pn=pn.div(pn.norm()),Pt=pe.mmul(pn).div(pn.transpose().mmul(pn).get(0,0))):Pt=Ar;if(pe){let bn=ze.transpose().mmul(Ar).div(Ar.transpose().mmul(Ar).get(0,0));bn=bn.div(bn.norm());let jn=ze.clone().sub(Ar.clone().mmul(bn.transpose())),Br=Pt.transpose().mmul(Ar).div(Ar.transpose().mmul(Ar).get(0,0)),ca=pe.clone().sub(Ar.clone().mulS(Br.get(0,0)).mmul(pn.transpose()));this.t=Ar,this.p=bn.transpose(),this.w=Kr.transpose(),this.q=pn,this.u=Pt,this.s=Ar.transpose().mmul(Ar),this.xResidual=jn,this.yResidual=ca,this.betas=Br}else this.w=Kr.transpose(),this.s=Ar.transpose().mmul(Ar).sqrt(),Ge?this.t=Ar.clone().div(this.s.get(0,0)):this.t=Ar,this.xResidual=ze.sub(Ar.mmul(Kr.transpose()))}}return iu.AbstractMatrix=ue,iu.CHO=xa,iu.CholeskyDecomposition=xa,iu.DistanceMatrix=me,iu.EVD=Un,iu.EigenvalueDecomposition=Un,iu.LU=Tt,iu.LuDecomposition=Tt,iu.Matrix=je,iu.MatrixColumnSelectionView=nt,iu.MatrixColumnView=et,iu.MatrixFlipColumnView=tt,iu.MatrixFlipRowView=ft,iu.MatrixRowSelectionView=Re,iu.MatrixRowView=st,iu.MatrixSelectionView=dt,iu.MatrixSubView=Oe,iu.MatrixTransposeView=Ce,iu.NIPALS=Wa,iu.Nipals=Wa,iu.QR=qt,iu.QrDecomposition=qt,iu.SVD=cr,iu.SingularValueDecomposition=cr,iu.SymmetricMatrix=Ye,iu.WrapperMatrix1D=Be,iu.WrapperMatrix2D=We,iu.correlation=Lr,iu.covariance=Hr,iu.default=je,iu.determinant=Er,iu.inverse=Gt,iu.linearDependencies=jr,iu.pseudoInverse=ur,iu.solve=Xt,iu.wrap=mt,iu}var SX=kfr();const hMe=A0(SX),D3=SX.Matrix,Sdt=SX.SingularValueDecomposition;hMe.Matrix?hMe.Matrix:SX.Matrix;const Qfr={center:[0,0],linkDistance:50};class kdt{constructor(t={}){this.options=t,this.id="mds",this.options=Object.assign(Object.assign({},Qfr),t)}execute(t,r){return Ml(this,void 0,void 0,function*(){return this.genericMDSLayout(!1,t,r)})}assign(t,r){return Ml(this,void 0,void 0,function*(){yield this.genericMDSLayout(!0,t,r)})}genericMDSLayout(t,r,n){return Ml(this,void 0,void 0,function*(){const i=Object.assign(Object.assign({},this.options),n),{center:a=[0,0],linkDistance:o=50}=i,s=r.getAllNodes(),l=r.getAllEdges();if(!(s!=null&&s.length)||s.length===1)return uQ(r,t,a);const u=Cdt({nodes:s,edges:l}),c=wdt(u);_fr(c);const A=bAr(c,o),f=Tfr(A),h=[];return f.forEach((p,m)=>{const b=Xm(s[m]);b.data.x=p[0]+a[0],b.data.y=p[1]+a[1],h.push(b)}),t&&h.forEach(p=>r.mergeNodeData(p.id,{x:p.data.x,y:p.data.y})),{nodes:h,edges:l}})}}const _fr=e=>{let t=-999999;e.forEach(r=>{r.forEach(n=>{n!==1/0&&t{r.forEach((i,a)=>{i===1/0&&(e[n][a]=t)})})},Tfr=e=>{const r=D3.mul(D3.pow(e,2),-.5),n=r.mean("row"),i=r.mean("column"),a=r.mean();r.add(a).subRowVector(n).subColumnVector(i);const o=new Sdt(r),s=D3.sqrt(o.diagonalMatrix).diagonal();return o.leftSingularVectors.toJSON().map(l=>D3.mul([l],[s]).toJSON()[0].splice(0,2))};function A2e(e){return!!e.tick&&!!e.stop}const Dfr={gForce:!0,force2:!0,d3force:!0,fruchterman:!0,forceAtlas2:!0,force:!0,"graphin-force":!0},Ffr={center:[0,0],comboPadding:10,treeKey:"combo"};class Rfr{constructor(t={}){this.options=t,this.id="comboCombined",this.options=Object.assign(Object.assign({},Ffr),t)}execute(t,r){return Ml(this,void 0,void 0,function*(){return this.genericComboCombinedLayout(!1,t,r)})}assign(t,r){return Ml(this,void 0,void 0,function*(){yield this.genericComboCombinedLayout(!0,t,r)})}genericComboCombinedLayout(t,r,n){return Ml(this,void 0,void 0,function*(){const i=this.initVals(Object.assign(Object.assign({},this.options),n)),{center:a,treeKey:o,outerLayout:s}=i,l=r.getAllNodes().filter(P=>!P.data._isCombo),u=r.getAllNodes().filter(P=>P.data._isCombo),c=r.getAllEdges(),A=l==null?void 0:l.length;if(!A||A===1)return uQ(r,t,a);const f=[],h=new Map;l.forEach(P=>{h.set(P.id,P)});const g=new Map;u.forEach(P=>{g.set(P.id,P)});const p=new Map,m=this.getInnerGraphs(r,o,h,g,c,i,p);yield Promise.all(m);const b=new Map,C=[],E=new Map;let _=!0;r.getRoots(o).forEach(P=>{const j=p.get(P.id),z=g.get(P.id)||h.get(P.id),W={id:P.id,data:Object.assign(Object.assign({},P.data),{x:j.data.x||z.data.x,y:j.data.y||z.data.y,fx:j.data.fx||z.data.fx,fy:j.data.fy||z.data.fy,mass:j.data.mass||z.data.mass,size:j.data.size})};C.push(W),b.set(P.id,!0),!isNaN(W.data.x)&&W.data.x!==0&&!isNaN(W.data.y)&&W.data.y!==0?_=!1:(W.data.x=Math.random()*100,W.data.y=Math.random()*100),s2e(r,[P],Y=>{Y.id!==P.id&&E.set(Y.id,P.id)},"TB",o)});const F=[];c.forEach(P=>{const j=E.get(P.source)||P.source,z=E.get(P.target)||P.target;j!==z&&b.has(j)&&b.has(z)&&F.push({id:P.id,source:j,target:z,data:{}})});let M;if(C!=null&&C.length){if(C.length===1)C[0].data.x=a[0],C[0].data.y=a[1];else{const P=new Kd({nodes:C,edges:F}),j=s||new xdt;_&&Dfr[j.id]&&(yield(C.length<100?new kdt:new u2e).assign(P));const z=Object.assign({center:a,kg:5,preventOverlap:!0,animate:!1},j.id==="force"?{gravity:1,factor:4,linkDistance:(W,Y,ee)=>{const q=Math.max(...Y.data.size)||32,ae=Math.max(...ee.data.size)||32;return q/2+ae/2+200}}:{});M=yield dMe(j,P,z)}p.forEach(P=>{var j;const z=M.nodes.find(ee=>ee.id===P.id);if(z){const{x:ee,y:q}=z.data;P.data.visited=!0,P.data.x=ee,P.data.y=q,f.push({id:P.id,data:{x:ee,y:q}})}const{x:W,y:Y}=P.data;(j=P.data.nodes)===null||j===void 0||j.forEach(ee=>{f.push({id:ee.id,data:{x:ee.data.x+W,y:ee.data.y+Y}})})}),p.forEach(({data:P})=>{const{x:j,y:z,visited:W,nodes:Y}=P;Y==null||Y.forEach(ee=>{if(!W){const q=f.find(ae=>ae.id===ee.id);q.data.x+=j||0,q.data.y+=z||0}})})}return t&&f.forEach(P=>{r.mergeNodeData(P.id,{x:P.data.x,y:P.data.y})}),{nodes:f,edges:c}})}initVals(t){const r=Object.assign({},t),{nodeSize:n,spacing:i,comboPadding:a}=t;let o,s;if(go(i)?s=()=>i:xo(i)?s=i:s=()=>0,r.spacing=s,!n)o=u=>{const c=s(u);return u.size?bE(u.size)?((u.size[0]>u.size[1]?u.size[0]:u.size[1])+c)/2:Bh(u.size)?((u.size.width>u.size.height?u.size.width:u.size.height)+c)/2:(u.size+c)/2:32+c/2};else if(xo(n))o=u=>{const c=n(u),A=s(u);return bE(u.size)?((u.size[0]>u.size[1]?u.size[0]:u.size[1])+A)/2:((c||32)+A)/2};else if(bE(n)){const c=(n[0]>n[1]?n[0]:n[1])/2;o=A=>c+s(A)/2}else{const u=n/2;o=c=>u+s(c)/2}r.nodeSize=o;let l;return go(a)?l=()=>a:bE(a)?l=()=>Math.max.apply(null,a):xo(a)?l=a:l=()=>0,r.comboPadding=l,r}getInnerGraphs(t,r,n,i,a,o,s){const{nodeSize:l,comboPadding:u,spacing:c,innerLayout:A}=o,f=A||new u2e({}),h={center:[0,0],preventOverlap:!0,nodeSpacing:c},g=[],p=m=>{let b=(u==null?void 0:u(m))||10;return bE(b)&&(b=Math.max(...b)),{size:b?[b*2,b*2]:[30,30],padding:b}};return t.getRoots(r).forEach(m=>{s.set(m.id,{id:m.id,data:{nodes:[],size:p(m).size}});let b=Promise.resolve();s2e(t,[m],C=>{var E;if(!C.data._isCombo)return;const{size:_,padding:F}=p(C);if(!(!((E=t.getChildren(C.id,r))===null||E===void 0)&&E.length))s.set(C.id,{id:C.id,data:Object.assign(Object.assign({},C.data),{size:_})});else{const M=s.get(C.id);s.set(C.id,{id:C.id,data:Object.assign({nodes:[]},M==null?void 0:M.data)});const N=new Map,P=t.getChildren(C.id,r).map(W=>{if(W.data._isCombo)return s.has(W.id)||s.set(W.id,{id:W.id,data:Object.assign({},W.data)}),N.set(W.id,!0),s.get(W.id);const Y=n.get(W.id)||i.get(W.id);return N.set(W.id,!0),{id:W.id,data:Object.assign(Object.assign({},Y.data),W.data)}}),j={nodes:P,edges:a.filter(W=>N.has(W.source)&&N.has(W.target))};let z=1/0;P.forEach(W=>{var Y;let{size:ee}=W.data;ee||(ee=((Y=s.get(W.id))===null||Y===void 0?void 0:Y.data.size)||(l==null?void 0:l(W))||[30,30]),go(ee)&&(ee=[ee,ee]);const[q,ae]=ee;z>q&&(z=q),z>ae&&(z=ae),W.data.size=ee}),b=b.then(()=>Ml(this,void 0,void 0,function*(){const W=new Kd(j);yield dMe(f,W,h,!0);const{minX:Y,minY:ee,maxX:q,maxY:ae}=wAr(P),se={x:(q+Y)/2,y:(ae+ee)/2};j.nodes.forEach(Ae=>{Ae.data.x-=se.x,Ae.data.y-=se.y});const de=[Math.max(q-Y,z)+F*2,Math.max(ae-ee,z)+F*2];s.get(C.id).data.size=de,s.get(C.id).data.nodes=P}))}return!0},"BT",r),g.push(b)}),g}}function dMe(e,t,r,n){var i;return Ml(this,void 0,void 0,function*(){return A2e(e)?(e.execute(t,r),e.stop(),e.tick((i=r.iterations)!==null&&i!==void 0?i:300)):n?yield e.assign(t,r):yield e.execute(t,r)})}function Mfr(e,t){var r,n=1;e==null&&(e=0),t==null&&(t=0);function i(){var a,o=r.length,s,l=0,u=0;for(a=0;af.index){var W=h-P.x-P.vx,Y=g-P.y-P.vy,ee=W*W+Y*Y;eeh+z||Mg+z||Nu.r&&(u.r=u[c].r)}function l(){if(t){var u,c=t.length,A;for(r=new Array(c),u=0;u[t(F,M,o),F])),_;for(m=0,s=new Array(b);m{}};function Qdt(){for(var e=0,t=arguments.length,r={},n;e=0&&(n=r.slice(i+1),r=r.slice(0,i)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:n}})}GK.prototype=Qdt.prototype={constructor:GK,on:function(e,t){var r=this._,n=jfr(e+"",r),i,a=-1,o=n.length;if(arguments.length<2){for(;++a0)for(var r=new Array(i),n=0,i,a;n=0&&e._call.call(void 0,t),e=e._next;--o7}function vMe(){F6=(oY=hN.now())+kX,o7=YR=0;try{zfr()}finally{o7=0,Vfr(),F6=0}}function Kfr(){var e=hN.now(),t=e-oY;t>_dt&&(kX-=t,oY=e)}function Vfr(){for(var e,t=aY,r,n=1/0;t;)t._call?(n>t._time&&(n=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:aY=r);qR=e,h2e(n)}function h2e(e){if(!o7){YR&&(YR=clearTimeout(YR));var t=e-F6;t>24?(e<1/0&&(YR=setTimeout(vMe,e-hN.now()-kX)),$F&&($F=clearInterval($F))):($F||(oY=hN.now(),$F=setInterval(Kfr,_dt)),o7=1,Tdt(vMe))}}const Wfr=1664525,Yfr=1013904223,mMe=4294967296;function qfr(){let e=1;return()=>(e=(Wfr*e+Yfr)%mMe)/mMe}function Jfr(e){return e.x}function Xfr(e){return e.y}var Zfr=10,ehr=Math.PI*(3-Math.sqrt(5));function thr(e){var t,r=1,n=.001,i=1-Math.pow(n,1/300),a=0,o=.6,s=new Map,l=Fdt(A),u=Qdt("tick","end"),c=qfr();e==null&&(e=[]);function A(){f(),u.call("tick",t),r1?(m==null?s.delete(p):s.set(p,g(m)),t):s.get(p)},find:function(p,m,b){var C=0,E=e.length,_,F,M,N,P;for(b==null?b=1/0:b*=b,C=0;C1?(u.on(p,m),t):u.on(p)}}}function rhr(){var e,t,r,n,i=Ud(-30),a,o=1,s=1/0,l=.81;function u(h){var g,p=e.length,m=xX(e,Jfr,Xfr).visitAfter(A);for(n=h,g=0;g=s)return;(h.data!==t||h.next)&&(b===0&&(b=F3(r),_+=b*b),C===0&&(C=F3(r),_+=C*C),_r.id},manyBody:{},center:{x:0,y:0}},this.context={options:{},assign:!1,nodes:[],edges:[]},ip(this.options,t),this.options.forceSimulation&&(this.simulation=this.options.forceSimulation)}execute(t,r){return Ml(this,void 0,void 0,function*(){return this.genericLayout(!1,t,r)})}assign(t,r){return Ml(this,void 0,void 0,function*(){yield this.genericLayout(!0,t,r)})}stop(){this.simulation.stop()}tick(t){return this.simulation.tick(t),this.getResult()}restart(){this.simulation.restart()}setFixedPosition(t,r){const n=this.context.nodes.find(i=>i.id===t);n&&r.forEach((i,a)=>{if(typeof i=="number"||i===null){const o=["fx","fy","fz"][a];n[o]=i}})}getOptions(t){var r,n;const i=ip({},this.options,t);return i.collide&&((r=i.collide)===null||r===void 0?void 0:r.radius)===void 0&&(i.collide=i.collide||{},i.collide.radius=(n=i.nodeSize)!==null&&n!==void 0?n:10),i.iterations===void 0&&(i.link&&i.link.iterations===void 0&&(i.iterations=i.link.iterations),i.collide&&i.collide.iterations===void 0&&(i.iterations=i.collide.iterations)),this.context.options=i,i}genericLayout(t,r,n){var i;return Ml(this,void 0,void 0,function*(){const a=this.getOptions(n),o=r.getAllNodes().map(({id:c,data:A})=>Object.assign(Object.assign({id:c},A),x6(A.data,this.config.inputNodeAttrs))),s=r.getAllEdges().map(c=>Object.assign({},c));Object.assign(this.context,{assign:t,nodes:o,edges:s,graph:r});const l=new Promise(c=>{this.resolver=c}),u=this.setSimulation(a);return u.nodes(o),(i=u.force("link"))===null||i===void 0||i.links(s),l})}getResult(){const{assign:t,nodes:r,edges:n,graph:i}=this.context,a=r.map(s=>({id:s.id,data:Object.assign(Object.assign({},s.data),x6(s,this.config.outputNodeAttrs))})),o=n.map(({id:s,source:l,target:u,data:c})=>({id:s,source:typeof l=="object"?l.id:l,target:typeof u=="object"?u.id:u,data:c}));return t&&a.forEach(s=>i.mergeNodeData(s.id,s.data)),{nodes:a,edges:o}}initSimulation(){return thr()}setSimulation(t){const r=this.simulation||this.options.forceSimulation||this.initSimulation();return this.simulation||(this.simulation=r.on("tick",()=>{var n;return(n=t.onTick)===null||n===void 0?void 0:n.call(t,this.getResult())}).on("end",()=>{var n;return(n=this.resolver)===null||n===void 0?void 0:n.call(this,this.getResult())})),yMe(r,this.config.simulationAttrs.map(n=>[n,t[n]])),Object.entries(this.forceMap).forEach(([n,i])=>{const a=n;if(t[n]){let o=r.force(a);o||(o=i(),r.force(a,o)),yMe(o,Object.entries(t[a]))}else r.force(a,null)}),r}}const yMe=(e,t)=>t.reduce((r,[n,i])=>!r[n]||i===void 0?r:r[n].call(e,i),e);function y3e(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Mse,bMe;function shr(){if(bMe)return Mse;bMe=1;function e(){this.__data__=[],this.size=0}return Mse=e,Mse}var Ose,wMe;function eT(){if(wMe)return Ose;wMe=1;function e(t,r){return t===r||t!==t&&r!==r}return Ose=e,Ose}var Nse,CMe;function QX(){if(CMe)return Nse;CMe=1;var e=eT();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return Nse=t,Nse}var Lse,IMe;function lhr(){if(IMe)return Lse;IMe=1;var e=QX(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var s=a.length-1;return o==s?a.pop():r.call(a,o,1),--this.size,!0}return Lse=n,Lse}var Pse,EMe;function uhr(){if(EMe)return Pse;EMe=1;var e=QX();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Pse=t,Pse}var Use,BMe;function chr(){if(BMe)return Use;BMe=1;var e=QX();function t(r){return e(this.__data__,r)>-1}return Use=t,Use}var Hse,xMe;function Ahr(){if(xMe)return Hse;xMe=1;var e=QX();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return Hse=t,Hse}var jse,SMe;function _X(){if(SMe)return jse;SMe=1;var e=shr(),t=lhr(),r=uhr(),n=chr(),i=Ahr();function a(o){var s=-1,l=o==null?0:o.length;for(this.clear();++s-1&&n%1==0&&n-1&&r%1==0&&r<=e}return Nle=t,Nle}var Lle,EOe;function Lhr(){if(EOe)return Lle;EOe=1;var e=cQ(),t=I3e(),r=OC(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",s="[object Error]",l="[object Function]",u="[object Map]",c="[object Number]",A="[object Object]",f="[object RegExp]",h="[object Set]",g="[object String]",p="[object WeakMap]",m="[object ArrayBuffer]",b="[object DataView]",C="[object Float32Array]",E="[object Float64Array]",_="[object Int8Array]",F="[object Int16Array]",M="[object Int32Array]",N="[object Uint8Array]",P="[object Uint8ClampedArray]",j="[object Uint16Array]",z="[object Uint32Array]",W={};W[C]=W[E]=W[_]=W[F]=W[M]=W[N]=W[P]=W[j]=W[z]=!0,W[n]=W[i]=W[m]=W[a]=W[b]=W[o]=W[s]=W[l]=W[u]=W[c]=W[A]=W[f]=W[h]=W[g]=W[p]=!1;function Y(ee){return r(ee)&&t(ee.length)&&!!W[e(ee)]}return Lle=Y,Lle}var Ple,BOe;function NX(){if(BOe)return Ple;BOe=1;function e(t){return function(r){return t(r)}}return Ple=e,Ple}var XR={exports:{}};XR.exports;var xOe;function E3e(){return xOe||(xOe=1,function(e,t){var r=Rdt(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,s=function(){try{var l=i&&i.require&&i.require("util").types;return l||o&&o.binding&&o.binding("util")}catch{}}();e.exports=s}(XR,XR.exports)),XR.exports}var Ule,SOe;function XL(){if(SOe)return Ule;SOe=1;var e=Lhr(),t=NX(),r=E3e(),n=r&&r.isTypedArray,i=n?t(n):e;return Ule=i,Ule}var Hle,kOe;function Ndt(){if(kOe)return Hle;kOe=1;var e=Mhr(),t=JL(),r=hd(),n=rT(),i=OX(),a=XL(),o=Object.prototype,s=o.hasOwnProperty;function l(u,c){var A=r(u),f=!A&&t(u),h=!A&&!f&&n(u),g=!A&&!f&&!h&&a(u),p=A||f||h||g,m=p?e(u.length,String):[],b=m.length;for(var C in u)(c||s.call(u,C))&&!(p&&(C=="length"||h&&(C=="offset"||C=="parent")||g&&(C=="buffer"||C=="byteLength"||C=="byteOffset")||i(C,b)))&&m.push(C);return m}return Hle=l,Hle}var jle,QOe;function LX(){if(QOe)return jle;QOe=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return jle=t,jle}var Gle,_Oe;function Ldt(){if(_Oe)return Gle;_Oe=1;function e(t,r){return function(n){return t(r(n))}}return Gle=e,Gle}var $le,TOe;function Phr(){if(TOe)return $le;TOe=1;var e=Ldt(),t=e(Object.keys,Object);return $le=t,$le}var zle,DOe;function B3e(){if(DOe)return zle;DOe=1;var e=LX(),t=Phr(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var s in Object(a))n.call(a,s)&&s!="constructor"&&o.push(s);return o}return zle=i,zle}var Kle,FOe;function EB(){if(FOe)return Kle;FOe=1;var e=YL(),t=I3e();function r(n){return n!=null&&t(n.length)&&!e(n)}return Kle=r,Kle}var Vle,ROe;function J5(){if(ROe)return Vle;ROe=1;var e=Ndt(),t=B3e(),r=EB();function n(i){return r(i)?e(i):t(i)}return Vle=n,Vle}var Wle,MOe;function Uhr(){if(MOe)return Wle;MOe=1;var e=qL(),t=J5();function r(n,i){return n&&e(i,t(i),n)}return Wle=r,Wle}var Yle,OOe;function Hhr(){if(OOe)return Yle;OOe=1;function e(t){var r=[];if(t!=null)for(var n in Object(t))r.push(n);return r}return Yle=e,Yle}var qle,NOe;function jhr(){if(NOe)return qle;NOe=1;var e=Uy(),t=LX(),r=Hhr(),n=Object.prototype,i=n.hasOwnProperty;function a(o){if(!e(o))return r(o);var s=t(o),l=[];for(var u in o)u=="constructor"&&(s||!i.call(o,u))||l.push(u);return l}return qle=a,qle}var Jle,LOe;function fQ(){if(LOe)return Jle;LOe=1;var e=Ndt(),t=jhr(),r=EB();function n(i){return r(i)?e(i,!0):t(i)}return Jle=n,Jle}var Xle,POe;function Ghr(){if(POe)return Xle;POe=1;var e=qL(),t=fQ();function r(n,i){return n&&e(i,t(i),n)}return Xle=r,Xle}var ZR={exports:{}};ZR.exports;var UOe;function Pdt(){return UOe||(UOe=1,function(e,t){var r=g2(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a?r.Buffer:void 0,s=o?o.allocUnsafe:void 0;function l(u,c){if(c)return u.slice();var A=u.length,f=s?s(A):new u.constructor(A);return u.copy(f),f}e.exports=l}(ZR,ZR.exports)),ZR.exports}var Zle,HOe;function Udt(){if(HOe)return Zle;HOe=1;function e(t,r){var n=-1,i=t.length;for(r||(r=Array(i));++nh))return!1;var p=A.get(o),m=A.get(s);if(p&&m)return p==s&&m==o;var b=-1,C=!0,E=l&i?new e:void 0;for(A.set(o,s),A.set(s,o);++b0&&a(c)?i>1?r(c,i-1,a,o,s):e(s,c):o||(s[s.length]=c)}return s}return $ce=r,$ce}var zce,FLe;function Udr(){if(FLe)return zce;FLe=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return zce=e,zce}var Kce,RLe;function vgt(){if(RLe)return Kce;RLe=1;var e=Udr(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var o=arguments,s=-1,l=t(o.length-i,0),u=Array(l);++s0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return Wce=n,Wce}var Yce,NLe;function mgt(){if(NLe)return Yce;NLe=1;var e=Hdr(),t=jdr(),r=t(e);return Yce=r,Yce}var qce,LLe;function $X(){if(LLe)return qce;LLe=1;var e=hQ(),t=vgt(),r=mgt();function n(i,a){return r(t(i,a,e),i+"")}return qce=n,qce}var Jce,PLe;function ygt(){if(PLe)return Jce;PLe=1;function e(t,r,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o-1}return tAe=t,tAe}var rAe,$Le;function Vdr(){if($Le)return rAe;$Le=1;function e(t,r,n){for(var i=-1,a=t==null?0:t.length;++i=o){var b=u?null:i(l);if(b)return a(b);g=!1,f=n,m=new e}else m=u?[]:p;e:for(;++A1?h.setNode(g,A):h.setNode(g)}),this},i.prototype.setNode=function(c,A){return e.has(this._nodes,c)?(arguments.length>1&&(this._nodes[c]=A),this):(this._nodes[c]=arguments.length>1?A:this._defaultNodeLabelFn(c),this._isCompound&&(this._parent[c]=r,this._children[c]={},this._children[r][c]=!0),this._in[c]={},this._preds[c]={},this._out[c]={},this._sucs[c]={},++this._nodeCount,this)},i.prototype.node=function(c){return this._nodes[c]},i.prototype.hasNode=function(c){return e.has(this._nodes,c)},i.prototype.removeNode=function(c){var A=this;if(e.has(this._nodes,c)){var f=function(h){A.removeEdge(A._edgeObjs[h])};delete this._nodes[c],this._isCompound&&(this._removeFromParentsChildList(c),delete this._parent[c],e.each(this.children(c),function(h){A.setParent(h)}),delete this._children[c]),e.each(e.keys(this._in[c]),f),delete this._in[c],delete this._preds[c],e.each(e.keys(this._out[c]),f),delete this._out[c],delete this._sucs[c],--this._nodeCount}return this},i.prototype.setParent=function(c,A){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(e.isUndefined(A))A=r;else{A+="";for(var f=A;!e.isUndefined(f);f=this.parent(f))if(f===c)throw new Error("Setting "+A+" as parent of "+c+" would create a cycle");this.setNode(A)}return this.setNode(c),this._removeFromParentsChildList(c),this._parent[c]=A,this._children[A][c]=!0,this},i.prototype._removeFromParentsChildList=function(c){delete this._children[this._parent[c]][c]},i.prototype.parent=function(c){if(this._isCompound){var A=this._parent[c];if(A!==r)return A}},i.prototype.children=function(c){if(e.isUndefined(c)&&(c=r),this._isCompound){var A=this._children[c];if(A)return e.keys(A)}else{if(c===r)return this.nodes();if(this.hasNode(c))return[]}},i.prototype.predecessors=function(c){var A=this._preds[c];if(A)return e.keys(A)},i.prototype.successors=function(c){var A=this._sucs[c];if(A)return e.keys(A)},i.prototype.neighbors=function(c){var A=this.predecessors(c);if(A)return e.union(A,this.successors(c))},i.prototype.isLeaf=function(c){var A;return this.isDirected()?A=this.successors(c):A=this.neighbors(c),A.length===0},i.prototype.filterNodes=function(c){var A=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});A.setGraph(this.graph());var f=this;e.each(this._nodes,function(p,m){c(m)&&A.setNode(m,p)}),e.each(this._edgeObjs,function(p){A.hasNode(p.v)&&A.hasNode(p.w)&&A.setEdge(p,f.edge(p))});var h={};function g(p){var m=f.parent(p);return m===void 0||A.hasNode(m)?(h[p]=m,m):m in h?h[m]:g(m)}return this._isCompound&&e.each(A.nodes(),function(p){A.setParent(p,g(p))}),A},i.prototype.setDefaultEdgeLabel=function(c){return e.isFunction(c)||(c=e.constant(c)),this._defaultEdgeLabelFn=c,this},i.prototype.edgeCount=function(){return this._edgeCount},i.prototype.edges=function(){return e.values(this._edgeObjs)},i.prototype.setPath=function(c,A){var f=this,h=arguments;return e.reduce(c,function(g,p){return h.length>1?f.setEdge(g,p,A):f.setEdge(g,p),p}),this},i.prototype.setEdge=function(){var c,A,f,h,g=!1,p=arguments[0];typeof p=="object"&&p!==null&&"v"in p?(c=p.v,A=p.w,f=p.name,arguments.length===2&&(h=arguments[1],g=!0)):(c=p,A=arguments[1],f=arguments[3],arguments.length>2&&(h=arguments[2],g=!0)),c=""+c,A=""+A,e.isUndefined(f)||(f=""+f);var m=s(this._isDirected,c,A,f);if(e.has(this._edgeLabels,m))return g&&(this._edgeLabels[m]=h),this;if(!e.isUndefined(f)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(c),this.setNode(A),this._edgeLabels[m]=g?h:this._defaultEdgeLabelFn(c,A,f);var b=l(this._isDirected,c,A,f);return c=b.v,A=b.w,Object.freeze(b),this._edgeObjs[m]=b,a(this._preds[A],c),a(this._sucs[c],A),this._in[A][m]=b,this._out[c][m]=b,this._edgeCount++,this},i.prototype.edge=function(c,A,f){var h=arguments.length===1?u(this._isDirected,arguments[0]):s(this._isDirected,c,A,f);return this._edgeLabels[h]},i.prototype.hasEdge=function(c,A,f){var h=arguments.length===1?u(this._isDirected,arguments[0]):s(this._isDirected,c,A,f);return e.has(this._edgeLabels,h)},i.prototype.removeEdge=function(c,A,f){var h=arguments.length===1?u(this._isDirected,arguments[0]):s(this._isDirected,c,A,f),g=this._edgeObjs[h];return g&&(c=g.v,A=g.w,delete this._edgeLabels[h],delete this._edgeObjs[h],o(this._preds[A],c),o(this._sucs[c],A),delete this._in[A][h],delete this._out[c][h],this._edgeCount--),this},i.prototype.inEdges=function(c,A){var f=this._in[c];if(f){var h=e.values(f);return A?e.filter(h,function(g){return g.v===A}):h}},i.prototype.outEdges=function(c,A){var f=this._out[c];if(f){var h=e.values(f);return A?e.filter(h,function(g){return g.w===A}):h}},i.prototype.nodeEdges=function(c,A){var f=this.inEdges(c,A);if(f)return f.concat(this.outEdges(c,A))};function a(c,A){c[A]?c[A]++:c[A]=1}function o(c,A){--c[A]||delete c[A]}function s(c,A,f,h){var g=""+A,p=""+f;if(!c&&g>p){var m=g;g=p,p=m}return g+n+p+n+(e.isUndefined(h)?t:h)}function l(c,A,f,h){var g=""+A,p=""+f;if(!c&&g>p){var m=g;g=p,p=m}var b={v:g,w:p};return h&&(b.name=h),b}function u(c,A){return s(c,A.v,A.w,A.name)}return AAe}var fAe,ePe;function Zdr(){return ePe||(ePe=1,fAe="2.1.8"),fAe}var hAe,tPe;function egr(){return tPe||(tPe=1,hAe={Graph:M3e(),version:Zdr()}),hAe}var dAe,rPe;function tgr(){if(rPe)return dAe;rPe=1;var e=Hy(),t=M3e();dAe={write:r,read:a};function r(o){var s={options:{directed:o.isDirected(),multigraph:o.isMultigraph(),compound:o.isCompound()},nodes:n(o),edges:i(o)};return e.isUndefined(o.graph())||(s.value=e.clone(o.graph())),s}function n(o){return e.map(o.nodes(),function(s){var l=o.node(s),u=o.parent(s),c={v:s};return e.isUndefined(l)||(c.value=l),e.isUndefined(u)||(c.parent=u),c})}function i(o){return e.map(o.edges(),function(s){var l=o.edge(s),u={v:s.v,w:s.w};return e.isUndefined(s.name)||(u.name=s.name),e.isUndefined(l)||(u.value=l),u})}function a(o){var s=new t(o.options).setGraph(o.value);return e.each(o.nodes,function(l){s.setNode(l.v,l.value),l.parent&&s.setParent(l.v,l.parent)}),e.each(o.edges,function(l){s.setEdge({v:l.v,w:l.w,name:l.name},l.value)}),s}return dAe}var gAe,nPe;function rgr(){if(nPe)return gAe;nPe=1;var e=Hy();gAe=t;function t(r){var n={},i=[],a;function o(s){e.has(n,s)||(n[s]=!0,a.push(s),e.each(r.successors(s),o),e.each(r.predecessors(s),o))}return e.each(r.nodes(),function(s){a=[],o(s),a.length&&i.push(a)}),i}return gAe}var pAe,iPe;function Cgt(){if(iPe)return pAe;iPe=1;var e=Hy();pAe=t;function t(){this._arr=[],this._keyIndices={}}return t.prototype.size=function(){return this._arr.length},t.prototype.keys=function(){return this._arr.map(function(r){return r.key})},t.prototype.has=function(r){return e.has(this._keyIndices,r)},t.prototype.priority=function(r){var n=this._keyIndices[r];if(n!==void 0)return this._arr[n].priority},t.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key},t.prototype.add=function(r,n){var i=this._keyIndices;if(r=String(r),!e.has(i,r)){var a=this._arr,o=a.length;return i[r]=o,a.push({key:r,priority:n}),this._decrease(o),!0}return!1},t.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var r=this._arr.pop();return delete this._keyIndices[r.key],this._heapify(0),r.key},t.prototype.decrease=function(r,n){var i=this._keyIndices[r];if(n>this._arr[i].priority)throw new Error("New priority is greater than current priority. Key: "+r+" Old: "+this._arr[i].priority+" New: "+n);this._arr[i].priority=n,this._decrease(i)},t.prototype._heapify=function(r){var n=this._arr,i=2*r,a=i+1,o=r;i>1,!(n[a].priority0&&(A=c.removeMin(),f=u[A],f.distance!==Number.POSITIVE_INFINITY);)l(A).forEach(h);return u}return vAe}var mAe,oPe;function ngr(){if(oPe)return mAe;oPe=1;var e=Igt(),t=Hy();mAe=r;function r(n,i,a){return t.transform(n.nodes(),function(o,s){o[s]=e(n,s,i,a)},{})}return mAe}var yAe,sPe;function Egt(){if(sPe)return yAe;sPe=1;var e=Hy();yAe=t;function t(r){var n=0,i=[],a={},o=[];function s(l){var u=a[l]={onStack:!0,lowlink:n,index:n++};if(i.push(l),r.successors(l).forEach(function(f){e.has(a,f)?a[f].onStack&&(u.lowlink=Math.min(u.lowlink,a[f].index)):(s(f),u.lowlink=Math.min(u.lowlink,a[f].lowlink))}),u.lowlink===u.index){var c=[],A;do A=i.pop(),a[A].onStack=!1,c.push(A);while(l!==A);o.push(c)}}return r.nodes().forEach(function(l){e.has(a,l)||s(l)}),o}return yAe}var bAe,lPe;function igr(){if(lPe)return bAe;lPe=1;var e=Hy(),t=Egt();bAe=r;function r(n){return e.filter(t(n),function(i){return i.length>1||i.length===1&&n.hasEdge(i[0],i[0])})}return bAe}var wAe,uPe;function agr(){if(uPe)return wAe;uPe=1;var e=Hy();wAe=r;var t=e.constant(1);function r(i,a,o){return n(i,a||t,o||function(s){return i.outEdges(s)})}function n(i,a,o){var s={},l=i.nodes();return l.forEach(function(u){s[u]={},s[u][u]={distance:0},l.forEach(function(c){u!==c&&(s[u][c]={distance:Number.POSITIVE_INFINITY})}),o(u).forEach(function(c){var A=c.v===u?c.w:c.v,f=a(c);s[u][A]={distance:f,predecessor:u}})}),l.forEach(function(u){var c=s[u];l.forEach(function(A){var f=s[A];l.forEach(function(h){var g=f[u],p=c[h],m=f[h],b=g.distance+p.distance;b0;){if(u=l.removeMin(),e.has(s,u))o.setEdge(u,s[u]);else{if(A)throw new Error("Input graph is not connected: "+i);A=!0}i.nodeEdges(u).forEach(c)}return o}return SAe}var kAe,pPe;function cgr(){return pPe||(pPe=1,kAe={components:rgr(),dijkstra:Igt(),dijkstraAll:ngr(),findCycles:igr(),floydWarshall:agr(),isAcyclic:ogr(),postorder:sgr(),preorder:lgr(),prim:ugr(),tarjan:Egt(),topsort:Bgt()}),kAe}var QAe,vPe;function Agr(){if(vPe)return QAe;vPe=1;var e=egr();return QAe={Graph:e.Graph,json:tgr(),alg:cgr(),version:e.version},QAe}var _Ae,mPe;function s2(){if(mPe)return _Ae;mPe=1;var e;if(typeof y3e=="function")try{e=Agr()}catch{}return e||(e=window.graphlib),_Ae=e,_Ae}var TAe,yPe;function fgr(){if(yPe)return TAe;yPe=1;var e=Jdt(),t=1,r=4;function n(i){return e(i,t|r)}return TAe=n,TAe}var DAe,bPe;function zX(){if(bPe)return DAe;bPe=1;var e=eT(),t=EB(),r=OX(),n=Uy();function i(a,o,s){if(!n(s))return!1;var l=typeof o;return(l=="number"?t(s)&&r(o,s.length):l=="string"&&o in s)?e(s[o],a):!1}return DAe=i,DAe}var FAe,wPe;function hgr(){if(wPe)return FAe;wPe=1;var e=$X(),t=eT(),r=zX(),n=fQ(),i=Object.prototype,a=i.hasOwnProperty,o=e(function(s,l){s=Object(s);var u=-1,c=l.length,A=c>2?l[2]:void 0;for(A&&r(l[0],l[1],A)&&(c=1);++u-1?l[u?a[c]:c]:void 0}}return RAe=n,RAe}var MAe,IPe;function ggr(){if(IPe)return MAe;IPe=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return MAe=t,MAe}var OAe,EPe;function pgr(){if(EPe)return OAe;EPe=1;var e=ggr(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return OAe=r,OAe}var NAe,BPe;function vgr(){if(BPe)return NAe;BPe=1;var e=pgr(),t=Uy(),r=iT(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;function l(u){if(typeof u=="number")return u;if(r(u))return n;if(t(u)){var c=typeof u.valueOf=="function"?u.valueOf():u;u=t(c)?c+"":c}if(typeof u!="string")return u===0?u:+u;u=e(u);var A=a.test(u);return A||o.test(u)?s(u.slice(2),A?2:8):i.test(u)?n:+u}return NAe=l,NAe}var LAe,xPe;function Sgt(){if(xPe)return LAe;xPe=1;var e=vgr(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*r}return i===i?i:0}return LAe=n,LAe}var PAe,SPe;function mgr(){if(SPe)return PAe;SPe=1;var e=Sgt();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return PAe=t,PAe}var UAe,kPe;function ygr(){if(kPe)return UAe;kPe=1;var e=ygt(),t=BB(),r=mgr(),n=Math.max;function i(a,o,s){var l=a==null?0:a.length;if(!l)return-1;var u=s==null?0:r(s);return u<0&&(u=n(l+u,0)),e(a,t(o,3),u)}return UAe=i,UAe}var HAe,QPe;function bgr(){if(QPe)return HAe;QPe=1;var e=dgr(),t=ygr(),r=e(t);return HAe=r,HAe}var jAe,_Pe;function kgt(){if(_Pe)return jAe;_Pe=1;var e=R3e();function t(r){var n=r==null?0:r.length;return n?e(r,1):[]}return jAe=t,jAe}var GAe,TPe;function wgr(){if(TPe)return GAe;TPe=1;var e=_3e(),t=Xdt(),r=fQ();function n(i,a){return i==null?i:e(i,t(a),r)}return GAe=n,GAe}var $Ae,DPe;function Cgr(){if(DPe)return $Ae;DPe=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return $Ae=e,$Ae}var zAe,FPe;function Igr(){if(FPe)return zAe;FPe=1;var e=RX(),t=T3e(),r=BB();function n(i,a){var o={};return a=r(a,3),t(i,function(s,l,u){e(o,l,a(s,l,u))}),o}return zAe=n,zAe}var KAe,RPe;function O3e(){if(RPe)return KAe;RPe=1;var e=iT();function t(r,n,i){for(var a=-1,o=r.length;++ar}return VAe=e,VAe}var WAe,OPe;function Bgr(){if(OPe)return WAe;OPe=1;var e=O3e(),t=Egr(),r=hQ();function n(i){return i&&i.length?e(i,r,t):void 0}return WAe=n,WAe}var YAe,NPe;function Qgt(){if(NPe)return YAe;NPe=1;var e=RX(),t=eT();function r(n,i,a){(a!==void 0&&!t(n[i],a)||a===void 0&&!(i in n))&&e(n,i,a)}return YAe=r,YAe}var qAe,LPe;function xgr(){if(LPe)return qAe;LPe=1;var e=cQ(),t=PX(),r=OC(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,s=a.hasOwnProperty,l=o.call(Object);function u(c){if(!r(c)||e(c)!=n)return!1;var A=t(c);if(A===null)return!0;var f=s.call(A,"constructor")&&A.constructor;return typeof f=="function"&&f instanceof f&&o.call(f)==l}return qAe=u,qAe}var JAe,PPe;function _gt(){if(PPe)return JAe;PPe=1;function e(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}return JAe=e,JAe}var XAe,UPe;function Sgr(){if(UPe)return XAe;UPe=1;var e=qL(),t=fQ();function r(n){return e(n,t(n))}return XAe=r,XAe}var ZAe,HPe;function kgr(){if(HPe)return ZAe;HPe=1;var e=Qgt(),t=Pdt(),r=Wdt(),n=Udt(),i=qdt(),a=JL(),o=hd(),s=bgt(),l=rT(),u=YL(),c=Uy(),A=xgr(),f=XL(),h=_gt(),g=Sgr();function p(m,b,C,E,_,F,M){var N=h(m,C),P=h(b,C),j=M.get(P);if(j){e(m,C,j);return}var z=F?F(N,P,C+"",m,b,M):void 0,W=z===void 0;if(W){var Y=o(P),ee=!Y&&l(P),q=!Y&&!ee&&f(P);z=P,Y||ee||q?o(N)?z=N:s(N)?z=n(N):ee?(W=!1,z=t(P,!0)):q?(W=!1,z=r(P,!0)):z=[]:A(P)||a(P)?(z=N,a(N)?z=g(N):(!c(N)||u(N))&&(z=i(P))):W=!1}W&&(M.set(P,z),_(z,P,E,F,M),M.delete(P)),e(m,C,z)}return ZAe=p,ZAe}var efe,jPe;function Qgr(){if(jPe)return efe;jPe=1;var e=FX(),t=Qgt(),r=_3e(),n=kgr(),i=Uy(),a=fQ(),o=_gt();function s(l,u,c,A,f){l!==u&&r(u,function(h,g){if(f||(f=new e),i(h))n(l,u,g,c,s,A,f);else{var p=A?A(o(l,g),h,g+"",l,u,f):void 0;p===void 0&&(p=h),t(l,g,p)}},a)}return efe=s,efe}var tfe,GPe;function _gr(){if(GPe)return tfe;GPe=1;var e=$X(),t=zX();function r(n){return e(function(i,a){var o=-1,s=a.length,l=s>1?a[s-1]:void 0,u=s>2?a[2]:void 0;for(l=n.length>3&&typeof l=="function"?(s--,l):void 0,u&&t(a[0],a[1],u)&&(l=s<3?void 0:l,s=1),i=Object(i);++on||s&&l&&c&&!u&&!A||a&&l&&c||!i&&c||!o)return 1;if(!a&&!s&&!A&&r=u)return c;var A=i[a];return c*(A=="desc"?-1:1)}}return r.index-n.index}return vfe=t,vfe}var mfe,oUe;function Kgr(){if(oUe)return mfe;oUe=1;var e=HX(),t=GX(),r=BB(),n=dgt(),i=Ggr(),a=NX(),o=zgr(),s=hQ(),l=hd();function u(c,A,f){A.length?A=e(A,function(p){return l(p)?function(m){return t(m,p.length===1?p[0]:p)}:p}):A=[s];var h=-1;A=e(A,a(r));var g=n(c,function(p,m,b){var C=e(A,function(E){return E(p)});return{criteria:C,index:++h,value:p}});return i(g,function(p,m){return o(p,m,f)})}return mfe=u,mfe}var yfe,sUe;function Vgr(){if(sUe)return yfe;sUe=1;var e=R3e(),t=Kgr(),r=$X(),n=zX(),i=r(function(a,o){if(a==null)return[];var s=o.length;return s>1&&n(a,o[0],o[1])?o=[]:s>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return yfe=i,yfe}var bfe,lUe;function Wgr(){if(lUe)return bfe;lUe=1;var e=sgt(),t=0;function r(n){var i=++t;return e(n)+i}return bfe=r,bfe}var wfe,uUe;function Ygr(){if(uUe)return wfe;uUe=1;function e(t,r,n){for(var i=-1,a=t.length,o=r.length,s={};++i0;--m)if(p=c[m].dequeue(),p){f=f.concat(o(u,c,A,p,!0));break}}}return f}function o(u,c,A,f,h){var g=h?[]:void 0;return e.forEach(u.inEdges(f.v),function(p){var m=u.edge(p),b=u.node(p.v);h&&g.push({v:p.v,w:p.w}),b.out-=m,l(c,A,b)}),e.forEach(u.outEdges(f.v),function(p){var m=u.edge(p),b=p.w,C=u.node(b);C.in-=m,l(c,A,C)}),u.removeNode(f.v),g}function s(u,c){var A=new t,f=0,h=0;e.forEach(u.nodes(),function(m){A.setNode(m,{v:m,in:0,out:0})}),e.forEach(u.edges(),function(m){var b=A.edge(m.v,m.w)||0,C=c(m),E=b+C;A.setEdge(m.v,m.w,E),h=Math.max(h,A.node(m.v).out+=C),f=Math.max(f,A.node(m.w).in+=C)});var g=e.range(h+f+3).map(function(){return new r}),p=f+1;return e.forEach(A.nodes(),function(m){l(g,p,A.node(m))}),{graph:A,buckets:g,zeroIdx:p}}function l(u,c,A){A.out?A.in?u[A.out-A.in+c].enqueue(A):u[u.length-1].enqueue(A):u[0].enqueue(A)}return Bfe}var xfe,dUe;function Zgr(){if(dUe)return xfe;dUe=1;var e=uf(),t=Xgr();xfe={run:r,undo:i};function r(a){var o=a.graph().acyclicer==="greedy"?t(a,s(a)):n(a);e.forEach(o,function(l){var u=a.edge(l);a.removeEdge(l),u.forwardName=l.name,u.reversed=!0,a.setEdge(l.w,l.v,u,e.uniqueId("rev"))});function s(l){return function(u){return l.edge(u).weight}}}function n(a){var o=[],s={},l={};function u(c){e.has(l,c)||(l[c]=!0,s[c]=!0,e.forEach(a.outEdges(c),function(A){e.has(s,A.w)?o.push(A):u(A.w)}),delete s[c])}return e.forEach(a.nodes(),u),o}function i(a){e.forEach(a.edges(),function(o){var s=a.edge(o);if(s.reversed){a.removeEdge(o);var l=s.forwardName;delete s.reversed,delete s.forwardName,a.setEdge(o.w,o.v,s,l)}})}return xfe}var Sfe,gUe;function Zv(){if(gUe)return Sfe;gUe=1;var e=uf(),t=s2().Graph;Sfe={addDummyNode:r,simplify:n,asNonCompoundGraph:i,successorWeights:a,predecessorWeights:o,intersectRect:s,buildLayerMatrix:l,normalizeRanks:u,removeEmptyRanks:c,addBorderNode:A,maxRank:f,partition:h,time:g,notime:p};function r(m,b,C,E){var _;do _=e.uniqueId(E);while(m.hasNode(_));return C.dummy=b,m.setNode(_,C),_}function n(m){var b=new t().setGraph(m.graph());return e.forEach(m.nodes(),function(C){b.setNode(C,m.node(C))}),e.forEach(m.edges(),function(C){var E=b.edge(C.v,C.w)||{weight:0,minlen:1},_=m.edge(C);b.setEdge(C.v,C.w,{weight:E.weight+_.weight,minlen:Math.max(E.minlen,_.minlen)})}),b}function i(m){var b=new t({multigraph:m.isMultigraph()}).setGraph(m.graph());return e.forEach(m.nodes(),function(C){m.children(C).length||b.setNode(C,m.node(C))}),e.forEach(m.edges(),function(C){b.setEdge(C,m.edge(C))}),b}function a(m){var b=e.map(m.nodes(),function(C){var E={};return e.forEach(m.outEdges(C),function(_){E[_.w]=(E[_.w]||0)+m.edge(_).weight}),E});return e.zipObject(m.nodes(),b)}function o(m){var b=e.map(m.nodes(),function(C){var E={};return e.forEach(m.inEdges(C),function(_){E[_.v]=(E[_.v]||0)+m.edge(_).weight}),E});return e.zipObject(m.nodes(),b)}function s(m,b){var C=m.x,E=m.y,_=b.x-C,F=b.y-E,M=m.width/2,N=m.height/2;if(!_&&!F)throw new Error("Not possible to find intersection inside of the rectangle");var P,j;return Math.abs(F)*M>Math.abs(_)*N?(F<0&&(N=-N),P=N*_/F,j=N):(_<0&&(M=-M),P=M,j=M*F/_),{x:C+P,y:E+j}}function l(m){var b=e.map(e.range(f(m)+1),function(){return[]});return e.forEach(m.nodes(),function(C){var E=m.node(C),_=E.rank;e.isUndefined(_)||(b[_][E.order]=C)}),b}function u(m){var b=e.min(e.map(m.nodes(),function(C){return m.node(C).rank}));e.forEach(m.nodes(),function(C){var E=m.node(C);e.has(E,"rank")&&(E.rank-=b)})}function c(m){var b=e.min(e.map(m.nodes(),function(F){return m.node(F).rank})),C=[];e.forEach(m.nodes(),function(F){var M=m.node(F).rank-b;C[M]||(C[M]=[]),C[M].push(F)});var E=0,_=m.graph().nodeRankFactor;e.forEach(C,function(F,M){e.isUndefined(F)&&M%_!==0?--E:E&&e.forEach(F,function(N){m.node(N).rank+=E})})}function A(m,b,C,E){var _={width:0,height:0};return arguments.length>=4&&(_.rank=C,_.order=E),r(m,"border",_,b)}function f(m){return e.max(e.map(m.nodes(),function(b){var C=m.node(b).rank;if(!e.isUndefined(C))return C}))}function h(m,b){var C={lhs:[],rhs:[]};return e.forEach(m,function(E){b(E)?C.lhs.push(E):C.rhs.push(E)}),C}function g(m,b){var C=e.now();try{return b()}finally{console.log(m+" time: "+(e.now()-C)+"ms")}}function p(m,b){return b()}return Sfe}var kfe,pUe;function epr(){if(pUe)return kfe;pUe=1;var e=uf(),t=Zv();kfe={run:r,undo:i};function r(a){a.graph().dummyChains=[],e.forEach(a.edges(),function(o){n(a,o)})}function n(a,o){var s=o.v,l=a.node(s).rank,u=o.w,c=a.node(u).rank,A=o.name,f=a.edge(o),h=f.labelRank;if(c!==l+1){a.removeEdge(o);var g,p,m;for(m=0,++l;lj.lim&&(z=j,W=!0);var Y=e.filter(_.edges(),function(ee){return W===C(E,E.node(ee.v),z)&&W!==C(E,E.node(ee.w),z)});return e.minBy(Y,function(ee){return r(_,ee)})}function p(E,_,F,M){var N=F.v,P=F.w;E.removeEdge(N,P),E.setEdge(M.v,M.w,{}),A(E),l(E,_),m(E,_)}function m(E,_){var F=e.find(E.nodes(),function(N){return!_.node(N).parent}),M=i(E,F);M=M.slice(1),e.forEach(M,function(N){var P=E.node(N).parent,j=_.edge(N,P),z=!1;j||(j=_.edge(P,N),z=!0),_.node(N).rank=_.node(P).rank+(z?j.minlen:-j.minlen)})}function b(E,_,F){return E.hasEdge(_,F)}function C(E,_,F){return F.low<=_.lim&&_.lim<=F.lim}return Tfe}var Dfe,bUe;function rpr(){if(bUe)return Dfe;bUe=1;var e=sY(),t=e.longestPath,r=Dgt(),n=tpr();Dfe=i;function i(l){switch(l.graph().ranker){case"network-simplex":s(l);break;case"tight-tree":o(l);break;case"longest-path":a(l);break;default:s(l)}}var a=t;function o(l){t(l),r(l)}function s(l){n(l)}return Dfe}var Ffe,wUe;function npr(){if(wUe)return Ffe;wUe=1;var e=uf();Ffe=t;function t(i){var a=n(i);e.forEach(i.graph().dummyChains,function(o){for(var s=i.node(o),l=s.edgeObj,u=r(i,a,l.v,l.w),c=u.path,A=u.lca,f=0,h=c[f],g=!0;o!==l.w;){if(s=i.node(o),g){for(;(h=c[f])!==A&&i.node(h).maxRankc||A>a[f].lim));for(h=f,f=s;(f=i.parent(f))!==h;)u.push(f);return{path:l.concat(u.reverse()),lca:h}}function n(i){var a={},o=0;function s(l){var u=o;e.forEach(i.children(l),s),a[l]={low:u,lim:o++}}return e.forEach(i.children(),s),a}return Ffe}var Rfe,CUe;function ipr(){if(CUe)return Rfe;CUe=1;var e=uf(),t=Zv();Rfe={run:r,cleanup:o};function r(s){var l=t.addDummyNode(s,"root",{},"_root"),u=i(s),c=e.max(e.values(u))-1,A=2*c+1;s.graph().nestingRoot=l,e.forEach(s.edges(),function(h){s.edge(h).minlen*=A});var f=a(s)+1;e.forEach(s.children(),function(h){n(s,l,A,f,c,u,h)}),s.graph().nodeRankFactor=A}function n(s,l,u,c,A,f,h){var g=s.children(h);if(!g.length){h!==l&&s.setEdge(l,h,{weight:0,minlen:u});return}var p=t.addBorderNode(s,"_bt"),m=t.addBorderNode(s,"_bb"),b=s.node(h);s.setParent(p,h),b.borderTop=p,s.setParent(m,h),b.borderBottom=m,e.forEach(g,function(C){n(s,l,u,c,A,f,C);var E=s.node(C),_=E.borderTop?E.borderTop:C,F=E.borderBottom?E.borderBottom:C,M=E.borderTop?c:2*c,N=_!==F?1:A-f[h]+1;s.setEdge(p,_,{weight:M,minlen:N,nestingEdge:!0}),s.setEdge(F,m,{weight:M,minlen:N,nestingEdge:!0})}),s.parent(h)||s.setEdge(l,p,{weight:0,minlen:A+f[h]})}function i(s){var l={};function u(c,A){var f=s.children(c);f&&f.length&&e.forEach(f,function(h){u(h,A+1)}),l[c]=A}return e.forEach(s.children(),function(c){u(c,1)}),l}function a(s){return e.reduce(s.edges(),function(l,u){return l+s.edge(u).weight},0)}function o(s){var l=s.graph();s.removeNode(l.nestingRoot),delete l.nestingRoot,e.forEach(s.edges(),function(u){var c=s.edge(u);c.nestingEdge&&s.removeEdge(u)})}return Rfe}var Mfe,IUe;function apr(){if(IUe)return Mfe;IUe=1;var e=uf(),t=Zv();Mfe=r;function r(i){function a(o){var s=i.children(o),l=i.node(o);if(s.length&&e.forEach(s,a),e.has(l,"minRank")){l.borderLeft=[],l.borderRight=[];for(var u=l.minRank,c=l.maxRank+1;u0;)h%2&&(g+=c[h+1]),h=h-1>>1,c[h]+=f.weight;A+=f.weight*g})),A}return Lfe}var Pfe,SUe;function upr(){if(SUe)return Pfe;SUe=1;var e=uf();Pfe=t;function t(r,n){return e.map(n,function(i){var a=r.inEdges(i);if(a.length){var o=e.reduce(a,function(s,l){var u=r.edge(l),c=r.node(l.v);return{sum:s.sum+u.weight*c.order,weight:s.weight+u.weight}},{sum:0,weight:0});return{v:i,barycenter:o.sum/o.weight,weight:o.weight}}else return{v:i}})}return Pfe}var Ufe,kUe;function cpr(){if(kUe)return Ufe;kUe=1;var e=uf();Ufe=t;function t(i,a){var o={};e.forEach(i,function(l,u){var c=o[l.v]={indegree:0,in:[],out:[],vs:[l.v],i:u};e.isUndefined(l.barycenter)||(c.barycenter=l.barycenter,c.weight=l.weight)}),e.forEach(a.edges(),function(l){var u=o[l.v],c=o[l.w];!e.isUndefined(u)&&!e.isUndefined(c)&&(c.indegree++,u.out.push(o[l.w]))});var s=e.filter(o,function(l){return!l.indegree});return r(s)}function r(i){var a=[];function o(u){return function(c){c.merged||(e.isUndefined(c.barycenter)||e.isUndefined(u.barycenter)||c.barycenter>=u.barycenter)&&n(u,c)}}function s(u){return function(c){c.in.push(u),--c.indegree===0&&i.push(c)}}for(;i.length;){var l=i.pop();a.push(l),e.forEach(l.in.reverse(),o(l)),e.forEach(l.out,s(l))}return e.map(e.filter(a,function(u){return!u.merged}),function(u){return e.pick(u,["vs","i","barycenter","weight"])})}function n(i,a){var o=0,s=0;i.weight&&(o+=i.barycenter*i.weight,s+=i.weight),a.weight&&(o+=a.barycenter*a.weight,s+=a.weight),i.vs=a.vs.concat(i.vs),i.barycenter=o/s,i.weight=s,i.i=Math.min(a.i,i.i),a.merged=!0}return Ufe}var Hfe,QUe;function Apr(){if(QUe)return Hfe;QUe=1;var e=uf(),t=Zv();Hfe=r;function r(a,o){var s=t.partition(a,function(p){return e.has(p,"barycenter")}),l=s.lhs,u=e.sortBy(s.rhs,function(p){return-p.i}),c=[],A=0,f=0,h=0;l.sort(i(!!o)),h=n(c,u,h),e.forEach(l,function(p){h+=p.vs.length,c.push(p.vs),A+=p.barycenter*p.weight,f+=p.weight,h=n(c,u,h)});var g={vs:e.flatten(c,!0)};return f&&(g.barycenter=A/f,g.weight=f),g}function n(a,o,s){for(var l;o.length&&(l=e.last(o)).i<=s;)o.pop(),a.push(l.vs),s++;return s}function i(a){return function(o,s){return o.barycenters.barycenter?1:a?s.i-o.i:o.i-s.i}}return Hfe}var jfe,_Ue;function fpr(){if(_Ue)return jfe;_Ue=1;var e=uf(),t=upr(),r=cpr(),n=Apr();jfe=i;function i(s,l,u,c){var A=s.children(l),f=s.node(l),h=f?f.borderLeft:void 0,g=f?f.borderRight:void 0,p={};h&&(A=e.filter(A,function(F){return F!==h&&F!==g}));var m=t(s,A);e.forEach(m,function(F){if(s.children(F.v).length){var M=i(s,F.v,u,c);p[F.v]=M,e.has(M,"barycenter")&&o(F,M)}});var b=r(m,u);a(b,p);var C=n(b,c);if(h&&(C.vs=e.flatten([h,C.vs,g],!0),s.predecessors(h).length)){var E=s.node(s.predecessors(h)[0]),_=s.node(s.predecessors(g)[0]);e.has(C,"barycenter")||(C.barycenter=0,C.weight=0),C.barycenter=(C.barycenter*C.weight+E.order+_.order)/(C.weight+2),C.weight+=2}return C}function a(s,l){e.forEach(s,function(u){u.vs=e.flatten(u.vs.map(function(c){return l[c]?l[c].vs:c}),!0)})}function o(s,l){e.isUndefined(s.barycenter)?(s.barycenter=l.barycenter,s.weight=l.weight):(s.barycenter=(s.barycenter*s.weight+l.barycenter*l.weight)/(s.weight+l.weight),s.weight+=l.weight)}return jfe}var Gfe,TUe;function hpr(){if(TUe)return Gfe;TUe=1;var e=uf(),t=s2().Graph;Gfe=r;function r(i,a,o){var s=n(i),l=new t({compound:!0}).setGraph({root:s}).setDefaultNodeLabel(function(u){return i.node(u)});return e.forEach(i.nodes(),function(u){var c=i.node(u),A=i.parent(u);(c.rank===a||c.minRank<=a&&a<=c.maxRank)&&(l.setNode(u),l.setParent(u,A||s),e.forEach(i[o](u),function(f){var h=f.v===u?f.w:f.v,g=l.edge(h,u),p=e.isUndefined(g)?0:g.weight;l.setEdge(h,u,{weight:i.edge(f).weight+p})}),e.has(c,"minRank")&&l.setNode(u,{borderLeft:c.borderLeft[a],borderRight:c.borderRight[a]}))}),l}function n(i){for(var a;i.hasNode(a=e.uniqueId("_root")););return a}return Gfe}var $fe,DUe;function dpr(){if(DUe)return $fe;DUe=1;var e=uf();$fe=t;function t(r,n,i){var a={},o;e.forEach(i,function(s){for(var l=r.parent(s),u,c;l;){if(u=r.parent(l),u?(c=a[u],a[u]=l):(c=o,o=l),c&&c!==l){n.setEdge(c,l);return}l=u}})}return $fe}var zfe,FUe;function gpr(){if(FUe)return zfe;FUe=1;var e=uf(),t=spr(),r=lpr(),n=fpr(),i=hpr(),a=dpr(),o=s2().Graph,s=Zv();zfe=l;function l(f){var h=s.maxRank(f),g=u(f,e.range(1,h+1),"inEdges"),p=u(f,e.range(h-1,-1,-1),"outEdges"),m=t(f);A(f,m);for(var b=Number.POSITIVE_INFINITY,C,E=0,_=0;_<4;++E,++_){c(E%2?g:p,E%4>=2),m=s.buildLayerMatrix(f);var F=r(f,m);Fz)&&o(E,ee,W)})})}function F(M,N){var P=-1,j,z=0;return e.forEach(N,function(W,Y){if(b.node(W).dummy==="border"){var ee=b.predecessors(W);ee.length&&(j=b.node(ee[0]).order,_(N,z,Y,P,j),z=Y,P=j)}_(N,z,N.length,j,M.length)}),N}return e.reduce(C,F),E}function a(b,C){if(b.node(C).dummy)return e.find(b.predecessors(C),function(E){return b.node(E).dummy})}function o(b,C,E){if(C>E){var _=C;C=E,E=_}var F=b[C];F||(b[C]=F={}),F[E]=!0}function s(b,C,E){if(C>E){var _=C;C=E,E=_}return e.has(b[C],E)}function l(b,C,E,_){var F={},M={},N={};return e.forEach(C,function(P){e.forEach(P,function(j,z){F[j]=j,M[j]=j,N[j]=z})}),e.forEach(C,function(P){var j=-1;e.forEach(P,function(z){var W=_(z);if(W.length){W=e.sortBy(W,function(se){return N[se]});for(var Y=(W.length-1)/2,ee=Math.floor(Y),q=Math.ceil(Y);ee<=q;++ee){var ae=W[ee];M[z]===z&&j({}));const o=r.getAllNodes(),s=r.getAllEdges();[...o,...s].some(({id:u})=>go(u))&&console.error("Dagre layout only support string id, it will convert number to string."),r.getAllNodes().forEach(u=>{const{id:c}=u,A=Object.assign({},u.data);if(i!==void 0){const[f,h]=WL(xo(i)?i(u):i);Object.assign(A,{width:f,height:h})}a.setNode(c.toString(),A)}),r.getAllEdges().forEach(({id:u,source:c,target:A})=>{a.setEdge(c.toString(),A.toString(),{id:u})}),Cpr.layout(a);const l={nodes:[],edges:[]};return a.nodes().forEach(u=>{const c=a.node(u);l.nodes.push({id:u,data:c}),t&&r.mergeNodeData(u,c)}),a.edges().forEach(u=>{const c=a.edge(u),{id:A}=c,f=lf(c,["id"]),{v:h,w:g}=u;l.edges.push({id:A,source:h,target:g,data:f}),t&&r.mergeEdgeData(A,f)}),l})}}KX.defaultOptions={};class N3e{constructor(t){this.id=t.id||0,this.rx=t.rx,this.ry=t.ry,this.fx=0,this.fy=0,this.mass=t.mass,this.degree=t.degree,this.g=t.g||0}distanceTo(t){const r=this.rx-t.rx,n=this.ry-t.ry;return Math.hypot(r,n)}setPos(t,r){this.rx=t,this.ry=r}resetForce(){this.fx=0,this.fy=0}addForce(t){const r=t.rx-this.rx,n=t.ry-this.ry;let i=Math.hypot(r,n);i=i<1e-4?1e-4:i;const a=this.g*(this.degree+1)*(t.degree+1)/i;this.fx+=a*r/i,this.fy+=a*n/i}in(t){return t.contains(this.rx,this.ry)}add(t){const r=this.mass+t.mass,n=(this.rx*this.mass+t.rx*t.mass)/r,i=(this.ry*this.mass+t.ry*t.mass)/r,a=this.degree+t.degree,o={rx:n,ry:i,mass:r,degree:a};return new N3e(o)}}class Z8{constructor(t){this.xmid=t.xmid,this.ymid=t.ymid,this.length=t.length,this.massCenter=t.massCenter||[0,0],this.mass=t.mass||1}getLength(){return this.length}contains(t,r){const n=this.length/2;return t<=this.xmid+n&&t>=this.xmid-n&&r<=this.ymid+n&&r>=this.ymid-n}NW(){const t=this.xmid-this.length/4,r=this.ymid+this.length/4,n=this.length/2,i={xmid:t,ymid:r,length:n};return new Z8(i)}NE(){const t=this.xmid+this.length/4,r=this.ymid+this.length/4,n=this.length/2,i={xmid:t,ymid:r,length:n};return new Z8(i)}SW(){const t=this.xmid-this.length/4,r=this.ymid-this.length/4,n=this.length/2,i={xmid:t,ymid:r,length:n};return new Z8(i)}SE(){const t=this.xmid+this.length/4,r=this.ymid-this.length/4,n=this.length/2,i={xmid:t,ymid:r,length:n};return new Z8(i)}}class e9{constructor(t){this.body=null,this.quad=null,this.NW=null,this.NE=null,this.SW=null,this.SE=null,this.theta=.5,t!=null&&(this.quad=t)}insert(t){if(this.body==null){this.body=t;return}this._isExternal()?(this.quad&&(this.NW=new e9(this.quad.NW()),this.NE=new e9(this.quad.NE()),this.SW=new e9(this.quad.SW()),this.SE=new e9(this.quad.SE())),this._putBody(this.body),this._putBody(t),this.body=this.body.add(t)):(this.body=this.body.add(t),this._putBody(t))}_putBody(t){this.quad&&(t.in(this.quad.NW())&&this.NW?this.NW.insert(t):t.in(this.quad.NE())&&this.NE?this.NE.insert(t):t.in(this.quad.SW())&&this.SW?this.SW.insert(t):t.in(this.quad.SE())&&this.SE&&this.SE.insert(t))}_isExternal(){return this.NW==null&&this.NE==null&&this.SW==null&&this.SE==null}updateForce(t){if(!(this.body==null||t===this.body))if(this._isExternal())t.addForce(this.body);else{const r=this.quad?this.quad.getLength():0,n=this.body.distanceTo(t);r/nXm(b,[s,l])),g=i.filter(b=>{const{source:C,target:E}=b;return C!==E}),p=new Kd({nodes:h,edges:g}),m=this.getSizes(p,A);if(this.run(p,r,c,m,t,o),u){for(let C=0;C250&&(n.barnesHut=!0),l===void 0&&r>100&&(n.prune=!0),u===0&&!l?(n.maxIteration=250,r<=200&&r>100?n.maxIteration=1e3:r>200&&(n.maxIteration=1200)):u===0&&l&&(n.maxIteration=100,r<=200&&r>100?n.maxIteration=500:r>200&&(n.maxIteration=950)),c||(n.kr=50,r>100&&r<=500?n.kr=20:r>500&&(n.kr=1)),A||(n.kg=20,r>100&&r<=500?n.kg=10:r>500&&(n.kg=1)),n}run(t,r,n,i,a,o){const{kr:s,barnesHut:l,onTick:u}=o,c=t.getAllNodes();let A=0,f=n;const h={},g={},p={};for(let m=0;m0;)A=this.oneStep(t,{iter:f,preventOverlapIters:50,krPrime:100,sg:A,forces:h,preForces:g,bodies:p,sizes:i},o),f--,u==null||u({nodes:c,edges:r.getAllEdges()});return t}oneStep(t,r,n){const{iter:i,preventOverlapIters:a,krPrime:o,sg:s,preForces:l,bodies:u,sizes:c}=r;let{forces:A}=r;const{preventOverlap:f,barnesHut:h}=n,g=t.getAllNodes();for(let p=0;pa||!f)?A=this.getOptRepGraForces(t,A,u,n):A=this.getRepGraForces(t,i,a,A,o,c,n),this.updatePos(t,A,l,s,n)}getAttrForces(t,r,n,i,a,o){const{preventOverlap:s,dissuadeHubs:l,mode:u,prune:c}=o,A=t.getAllEdges();for(let f=0;f0&&(F=_,M=_),a[h][0]+=F*E[0],a[g][0]-=M*E[0],a[h][1]+=F*E[1],a[g][1]-=M*E[1]}return a}getOptRepGraForces(t,r,n,i){const{kg:a,center:o,prune:s}=i,l=t.getAllNodes(),u=l.length;let c=9e10,A=-9e10,f=9e10,h=-9e10;for(let C=0;C=A&&(A=_.x),_.x<=c&&(c=_.x),_.y>=h&&(h=_.y),_.y<=f&&(f=_.y))}const g=Math.max(A-c,h-f),p={xmid:(A+c)/2,ymid:(h+f)/2,length:g,massCenter:o,mass:u},m=new Z8(p),b=new e9(m);for(let C=0;C0&&(z=u*(b+1)*(N+1)/j),i[m.id][0]-=z*P[0],i[M.id][0]+=z*P[0],i[m.id][1]-=z*P[1],i[M.id][1]+=z*P[1]}const C=[m.data.x-A[0],m.data.y-A[1]],E=Math.hypot(C[0],C[1]);C[0]=C[0]/E,C[1]=C[1]/E;const _=c*(b+1);i[m.id][0]-=_*C[0],i[m.id][1]-=_*C[1]}return i}updatePos(t,r,n,i,a){const{ks:o,tao:s,prune:l,ksmax:u}=a,c=t.getAllNodes(),A=c.length,f=[],h=[];let g=0,p=0,m=i;for(let C=0;C1.5*b?1.5*b:m);for(let C=0;CP?P:M;const j=M*r[E][0],z=M*r[E][1];t.mergeNodeData(E,{x:_.x+j,y:_.y+z})}return m}}const Bpr={maxIteration:1e3,gravity:10,speed:5,clustering:!1,clusterGravity:10,width:300,height:300,nodeClusterBy:"cluster"},xpr=800;class Spr{constructor(t={}){this.options=t,this.id="fruchterman",this.timeInterval=0,this.running=!1,this.options=Object.assign(Object.assign({},Bpr),t)}execute(t,r){return Ml(this,void 0,void 0,function*(){return this.genericFruchtermanLayout(!1,t,r)})}assign(t,r){return Ml(this,void 0,void 0,function*(){yield this.genericFruchtermanLayout(!0,t,r)})}stop(){this.timeInterval&&typeof window<"u"&&window.clearInterval(this.timeInterval),this.running=!1}tick(t=this.options.maxIteration||1){if(this.lastResult)return this.lastResult;for(let n=0;nthis.lastGraph.mergeNodeData(n.id,{x:n.data.x,y:n.data.y,z:this.options.dimensions===3?n.data.z:void 0})),r}genericFruchtermanLayout(t,r,n){return Ml(this,void 0,void 0,function*(){if(this.running)return;const i=this.formatOptions(n),{dimensions:a,width:o,height:s,center:l,clustering:u,nodeClusterBy:c,maxIteration:A,onTick:f}=i,h=r.getAllNodes(),g=r.getAllEdges();if(!(h!=null&&h.length)){const E={nodes:[],edges:g};return this.lastResult=E,E}if(h.length===1){t&&r.mergeNodeData(h[0].id,{x:l[0],y:l[1],z:a===3?l[2]:void 0});const E={nodes:[Object.assign(Object.assign({},h[0]),{data:Object.assign(Object.assign({},h[0].data),{x:l[0],y:l[1],z:a===3?l[2]:void 0})})],edges:g};return this.lastResult=E,E}const p=h.map(E=>Xm(E,[o,s])),m=new Kd({nodes:p,edges:g}),b={};if(u&&p.forEach(E=>{const _=E.data[c];b[_]||(b[_]={name:_,cx:0,cy:0,count:0})}),this.lastLayoutNodes=p,this.lastLayoutEdges=g,this.lastAssign=t,this.lastGraph=m,this.lastOptions=i,this.lastClusterMap=b,typeof window>"u")return;let C=0;return new Promise(E=>{this.timeInterval=window.setInterval(()=>{if(!this.running){E({nodes:p,edges:g});return}this.runOneStep(m,b,i),t&&p.forEach(({id:_,data:F})=>r.mergeNodeData(_,{x:F.x,y:F.y,z:a===3?F.z:void 0})),f==null||f({nodes:p,edges:g}),C++,C>=A&&(window.clearInterval(this.timeInterval),E({nodes:p,edges:g}))},0),this.running=!0})})}formatOptions(t={}){const r=Object.assign(Object.assign({},this.options),t),{clustering:n,nodeClusterBy:i}=r,{center:a,width:o,height:s}=r;return r.width=!o&&typeof window<"u"?window.innerWidth:o,r.height=!s&&typeof window<"u"?window.innerHeight:s,r.center=a||[r.width/2,r.height/2],r.clustering=n&&!!i,r}runOneStep(t,r,n){const{dimensions:i,height:a,width:o,gravity:s,center:l,speed:u,clustering:c,nodeClusterBy:A,clusterGravity:f}=n,h=a*o,g=Math.sqrt(h)/10,p=t.getAllNodes(),m=h/(p.length+1),b=Math.sqrt(m),C={};if(this.applyCalculate(t,C,b,m),c){for(const _ in r)r[_].cx=0,r[_].cy=0,r[_].count=0;p.forEach(_=>{const{data:F}=_,M=r[F[A]];go(F.x)&&(M.cx+=F.x),go(F.y)&&(M.cy+=F.y),M.count++});for(const _ in r)r[_].cx/=r[_].count,r[_].cy/=r[_].count;const E=f||s;p.forEach((_,F)=>{const{id:M,data:N}=_;if(!go(N.x)||!go(N.y))return;const P=r[N[A]],j=Math.sqrt((N.x-P.cx)*(N.x-P.cx)+(N.y-P.cy)*(N.y-P.cy)),z=b*E;C[M].x-=z*(N.x-P.cx)/j,C[M].y-=z*(N.y-P.cy)/j})}p.forEach((E,_)=>{const{id:F,data:M}=E;if(!go(M.x)||!go(M.y))return;const N=.01*b*s;C[F].x-=N*(M.x-l[0]),C[F].y-=N*(M.y-l[1]),i===3&&(C[F].z-=N*(M.z-l[2]))}),p.forEach((E,_)=>{const{id:F,data:M}=E;if(go(M.fx)&&go(M.fy)){M.x=M.fx,M.y=M.fy,i===3&&(M.z=M.fz);return}if(!go(M.x)||!go(M.y))return;const N=Math.sqrt(C[F].x*C[F].x+C[F].y*C[F].y+(i===3?C[F].z*C[F].z:0));if(N>0){const P=Math.min(g*(u/xpr),N);t.mergeNodeData(F,{x:M.x+C[F].x/N*P,y:M.y+C[F].y/N*P,z:i===3?M.z+C[F].z/N*P:void 0})}})}applyCalculate(t,r,n,i){this.calRepulsive(t,r,i),this.calAttractive(t,r,n)}calRepulsive(t,r,n){const i=t.getAllNodes();i.forEach(({data:a,id:o},s)=>{r[o]={x:0,y:0,z:0},i.forEach(({data:l,id:u},c)=>{if(s<=c||!go(a.x)||!go(l.x)||!go(a.y)||!go(l.y))return;let A=a.x-l.x,f=a.y-l.y,h=this.options.dimensions===3?a.z-l.z:0,g=A*A+f*f+h*h;g===0&&(g=1,A=.01,f=.01,h=.01);const p=n/g,m=A*p,b=f*p,C=h*p;r[o].x+=m,r[o].y+=b,r[u].x-=m,r[u].y-=b,this.options.dimensions===3&&(r[o].z+=C,r[u].z-=C)})})}calAttractive(t,r,n){t.getAllEdges().forEach(a=>{const{source:o,target:s}=a;if(!o||!s||o===s)return;const{data:l}=t.getNode(o),{data:u}=t.getNode(s);if(!go(u.x)||!go(l.x)||!go(u.y)||!go(l.y))return;const c=u.x-l.x,A=u.y-l.y,f=this.options.dimensions===3?u.z-l.z:0,h=Math.sqrt(c*c+A*A+f*f)/n,g=c*h,p=A*h,m=f*h;r[o].x+=g,r[o].y+=p,r[s].x-=g,r[s].y-=p,this.options.dimensions===3&&(r[o].z+=m,r[s].z-=m)})}}const kpr={begin:[0,0],preventOverlap:!0,preventOverlapPadding:10,condense:!1,rows:void 0,cols:void 0,position:void 0,sortBy:"degree",nodeSize:30,width:300,height:300};class Qpr{constructor(t={}){this.options=t,this.id="grid",this.options=Object.assign(Object.assign({},kpr),t)}execute(t,r){return Ml(this,void 0,void 0,function*(){return this.genericGridLayout(!1,t,r)})}assign(t,r){return Ml(this,void 0,void 0,function*(){yield this.genericGridLayout(!0,t,r)})}genericGridLayout(t,r,n){return Ml(this,void 0,void 0,function*(){const i=Object.assign(Object.assign({},this.options),n),{begin:a=[0,0],condense:o,preventOverlapPadding:s,preventOverlap:l,rows:u,cols:c,nodeSpacing:A,nodeSize:f,width:h,height:g,position:p}=i;let{sortBy:m}=i;const b=r.getAllNodes(),C=r.getAllEdges(),E=b==null?void 0:b.length;if(!E||E===1)return uQ(r,t,a);const _=b.map(ae=>Xm(ae));m!=="id"&&(!_u(m)||_[0].data[m]===void 0)&&(m="degree"),m==="degree"?_.sort((ae,se)=>r.getDegree(se.id,"both")-r.getDegree(ae.id,"both")):m==="id"?_.sort((ae,se)=>go(se.id)&&go(ae.id)?se.id-ae.id:`${ae.id}`.localeCompare(`${se.id}`)):_.sort((ae,se)=>se.data[m]-ae.data[m]);const F=!h&&typeof window<"u"?window.innerWidth:h,M=!g&&typeof window<"u"?window.innerHeight:g,N=E,P={rows:u,cols:c};if(u!=null&&c!=null)P.rows=u,P.cols=c;else if(u!=null&&c==null)P.rows=u,P.cols=Math.ceil(N/P.rows);else if(u==null&&c!=null)P.cols=c,P.rows=Math.ceil(N/P.cols);else{const ae=Math.sqrt(N*M/F);P.rows=Math.round(ae),P.cols=Math.round(F/M*ae)}if(P.rows=Math.max(P.rows,1),P.cols=Math.max(P.cols,1),P.cols*P.rows>N){const ae=ZG(P),se=e$(P);(ae-1)*se>=N?ZG(P,ae-1):(se-1)*ae>=N&&e$(P,se-1)}else for(;P.cols*P.rows=N?e$(P,se+1):ZG(P,ae+1)}let j=o?0:F/P.cols,z=o?0:M/P.rows;if(l||A){const ae=qk(10,A),se=g3e(30,f,!1);_.forEach(de=>{(!de.data.x||!de.data.y)&&(de.data.x=0,de.data.y=0);const Ae=r.getNode(de.id),[be,Le]=WL(se(Ae)||30),Ne=ae!==void 0?ae(de):s,ue=be+Ne,Ke=Le+Ne;j=Math.max(j,ue),z=Math.max(z,Ke)})}const W={},Y={row:0,col:0},ee={};for(let ae=0;ae<_.length;ae++){const se=_[ae];let de;if(p&&(de=p(r.getNode(se.id))),de&&(de.row!==void 0||de.col!==void 0)){const Ae={row:de.row,col:de.col};if(Ae.col===void 0)for(Ae.col=0;d2e(W,Ae);)Ae.col++;else if(Ae.row===void 0)for(Ae.row=0;d2e(W,Ae);)Ae.row++;ee[se.id]=Ae,Rgt(W,Ae)}_pr(se,a,j,z,ee,P,Y,W)}const q={nodes:_,edges:C};return t&&_.forEach(ae=>{r.mergeNodeData(ae.id,{x:ae.data.x,y:ae.data.y})}),q})}}const ZG=(e,t)=>{let r;const n=e.rows||5,i=e.cols||5;return t==null?r=Math.min(n,i):Math.min(n,i)===e.rows?e.rows=t:e.cols=t,r},e$=(e,t)=>{let r;const n=e.rows||5,i=e.cols||5;return t==null?r=Math.max(n,i):Math.max(n,i)===e.rows?e.rows=t:e.cols=t,r},d2e=(e,t)=>e[`c-${t.row}-${t.col}`]||!1,Rgt=(e,t)=>e[`c-${t.row}-${t.col}`]=!0,UUe=(e,t)=>{const r=e.cols||5;t.col++,t.col>=r&&(t.col=0,t.row++)},_pr=(e,t,r,n,i,a,o,s)=>{let l,u;const c=i[e.id];if(c)l=c.col*r+r/2+t[0],u=c.row*n+n/2+t[1];else{for(;d2e(s,o);)UUe(a,o);l=o.col*r+r/2+t[0],u=o.row*n+n/2+t[1],Rgt(s,o),UUe(a,o)}e.data.x=l,e.data.y=u},Tpr=(e,t,r)=>{try{const n=D3.mul(D3.pow(t,2),-.5),i=n.mean("row"),a=n.mean("column"),o=n.mean();n.add(o).subRowVector(i).subColumnVector(a);const s=new Sdt(n),l=D3.sqrt(s.diagonalMatrix).diagonal();return s.leftSingularVectors.toJSON().map(u=>D3.mul([u],[l]).toJSON()[0].splice(0,e))}catch{const i=[];for(let a=0;a{const r=Object.assign(Object.assign({},Fpr),t),{positions:n,iterations:i,width:a,k:o,speed:s=100,strictRadial:l,focusIdx:u,radii:c=[],nodeSizeFunc:A}=r,f=e.getAllNodes(),h=[],g=a/10;for(let p=0;p{h[b]={x:0,y:0}}),Mpr(f,n,h,o,c,A),Opr(n,h,s,l,u,g,a,c);return n},Mpr=(e,t,r,n,i,a)=>{t.forEach((o,s)=>{r[s]={x:0,y:0},t.forEach((l,u)=>{if(s===u||i[s]!==i[u])return;let c=o.x-l.x,A=o.y-l.y,f=Math.sqrt(c*c+A*A);if(f===0){f=1;const h=s>u?1:-1;c=.01*h,A=.01*h}if(f{const l=a||o/10;return n&&t.forEach((u,c)=>{const A=e[c].x-e[i].x,f=e[c].y-e[i].y,h=Math.sqrt(A*A+f*f);let g=f/h,p=-A/h;const m=Math.sqrt(u.x*u.x+u.y*u.y);let b=Math.acos((g*u.x+p*u.y)/m);b>Math.PI/2&&(b-=Math.PI/2,g*=-1,p*=-1);const C=Math.cos(b)*m;u.x=g*C,u.y=p*C}),e.forEach((u,c)=>{if(c===i)return;const A=Math.sqrt(t[c].x*t[c].x+t[c].y*t[c].y);if(A>0&&c!==i){const f=Math.min(l*(r/Dpr),A);if(u.x+=t[c].x/A*f,u.y+=t[c].y/A*f,n){let h=u.x-e[i].x,g=u.y-e[i].y;const p=Math.sqrt(h*h+g*g);h=h/p*s[c],g=g/p*s[c],u.x=e[i].x+h,u.y=e[i].y+g}}}),e},Npr={maxIteration:1e3,focusNode:null,unitRadius:null,linkDistance:50,preventOverlap:!1,strictRadial:!0,maxPreventOverlapIteration:200,sortStrength:10};class Lpr{constructor(t={}){this.options=t,this.id="radial",this.options=Object.assign(Object.assign({},Npr),t)}execute(t,r){return Ml(this,void 0,void 0,function*(){return this.genericRadialLayout(!1,t,r)})}assign(t,r){return Ml(this,void 0,void 0,function*(){yield this.genericRadialLayout(!0,t,r)})}genericRadialLayout(t,r,n){return Ml(this,void 0,void 0,function*(){const i=Object.assign(Object.assign({},this.options),n),{width:a,height:o,center:s,focusNode:l,unitRadius:u,nodeSize:c,nodeSpacing:A,strictRadial:f,preventOverlap:h,maxPreventOverlapIteration:g,sortBy:p,linkDistance:m=50,sortStrength:b=10,maxIteration:C=1e3}=i,E=r.getAllNodes(),_=r.getAllEdges(),F=!a&&typeof window<"u"?window.innerWidth:a,M=!o&&typeof window<"u"?window.innerHeight:o,N=s||[F/2,M/2];if(!(E!=null&&E.length)||E.length===1)return uQ(r,t,N);let P=E[0];if(_u(l)){for(let me=0;meN[0]?N[0]:F-N[0],ae=M-N[1]>N[1]?N[1]:M-N[1];q===0&&(q=F/2),ae===0&&(ae=M/2);const se=Math.min(q,ae),de=Math.max(...ee),Ae=[],be=u||se/de;ee.forEach((me,Se)=>{Ae[Se]=me*be});const Le=Ppr(E,W,m,Ae,be,p,b),Ne=Upr(Le),ue=Tpr(m,Le,m);let Ke=ue.map(([me,Se])=>({x:(isNaN(me)?Math.random()*m:me)-ue[j][0],y:(isNaN(Se)?Math.random()*m:Se)-ue[j][1]}));this.run(C,Ke,Ne,Le,Ae,j);let Pe;if(h){Pe=p3e(c,A);const me={nodes:E,nodeSizeFunc:Pe,positions:Ke,radii:Ae,height:M,width:F,strictRadial:!!f,focusIdx:j,iterations:g||200,k:Ke.length/4.5};Ke=Rpr(r,me)}const je=[];return Ke.forEach((me,Se)=>{const et=Xm(E[Se]);et.data.x=me.x+N[0],et.data.y=me.y+N[1],je.push(et)}),t&&je.forEach(me=>r.mergeNodeData(me.id,{x:me.data.x,y:me.data.y})),{nodes:je,edges:_}})}run(t,r,n,i,a,o){for(let s=0;s<=t;s++){const l=s/t;this.oneIteration(l,r,a,i,n,o)}}oneIteration(t,r,n,i,a,o){const s=1-t;r.forEach((l,u)=>{const c=oMe(l,{x:0,y:0}),A=c===0?0:1/c;if(u===o)return;let f=0,h=0,g=0;r.forEach((m,b)=>{if(u===b)return;const C=oMe(l,m),E=C===0?0:1/C,_=i[b][u];g+=a[u][b],f+=a[u][b]*(m.x+_*(l.x-m.x)*E),h+=a[u][b]*(m.y+_*(l.y-m.y)*E)});const p=n[u]===0?0:1/n[u];g*=s,g+=t*p*p,f*=s,f+=t*p*l.x*A,l.x=f/g,h*=s,h+=t*p*l.y*A,l.y=h/g})}}const Ppr=(e,t,r,n,i,a,o)=>{if(!e)return[];const s=[];{const l={};t.forEach((u,c)=>{const A=[];u.forEach((f,h)=>{var g,p;if(c===h)A.push(0);else if(n[c]===n[h])if(a==="data")A.push(f*(Math.abs(c-h)*o)/(n[c]/i));else if(a){let m,b;if(l[e[c].id])m=l[e[c].id];else{const C=(a==="id"?e[c].id:(g=e[c].data)===null||g===void 0?void 0:g[a])||0;_u(C)?m=C.charCodeAt(0):m=C,l[e[c].id]=m}if(l[e[h].id])b=l[e[h].id];else{const C=(a==="id"?e[h].id:(p=e[h].data)===null||p===void 0?void 0:p[a])||0;_u(C)?b=C.charCodeAt(0):b=C,l[e[h].id]=b}A.push(f*(Math.abs(m-b)*o)/(n[c]/i))}else A.push(f*r/(n[c]/i));else{const m=(r+i)/2;A.push(f*m)}}),s.push(A)})}return s},Upr=e=>{const t=e.length,r=e[0].length,n=[];for(let i=0;i{let r=-1;return e.forEach((n,i)=>{n.id===t&&(r=i)}),Math.max(r,0)},jpr=(e,t,r)=>{const n=e.length;for(let i=0;i{let r=0;for(let n=0;nr?e[t][n]:r);return r},$pr={center:[0,0],width:300,height:300};class zpr{constructor(t={}){this.options=t,this.id="random",this.options=Object.assign(Object.assign({},$pr),t)}execute(t,r){return Ml(this,void 0,void 0,function*(){return this.genericRandomLayout(!1,t,r)})}assign(t,r){return Ml(this,void 0,void 0,function*(){yield this.genericRandomLayout(!0,t,r)})}genericRandomLayout(t,r,n){return Ml(this,void 0,void 0,function*(){const i=Object.assign(Object.assign({},this.options),n),{center:a,width:o,height:s}=i,l=r.getAllNodes(),u=.9,c=!o&&typeof window<"u"?window.innerWidth:o,A=!s&&typeof window<"u"?window.innerHeight:s,f=a||[c/2,A/2],h=[];return l&&l.forEach(p=>{h.push({id:p.id,data:{x:(Math.random()-.5)*u*c+f[0],y:(Math.random()-.5)*u*A+f[1]}})}),t&&h.forEach(p=>r.mergeNodeData(p.id,{x:p.data.x,y:p.data.y})),{nodes:h,edges:r.getAllEdges()}})}}/** * @license * Copyright 2019 Google LLC * SPDX-License-Identifier: Apache-2.0 */const Mgt=Symbol("Comlink.proxy"),Kpr=Symbol("Comlink.endpoint"),Ogt=Symbol("Comlink.releaseProxy"),Xfe=Symbol("Comlink.finalizer"),$K=Symbol("Comlink.thrown"),Ngt=e=>typeof e=="object"&&e!==null||typeof e=="function",Vpr={canHandle:e=>Ngt(e)&&e[Mgt],serialize(e){const{port1:t,port2:r}=new MessageChannel;return Pgt(e,t),[r,[r]]},deserialize(e){return e.start(),Hgt(e)}},Wpr={canHandle:e=>Ngt(e)&&$K in e,serialize({value:e}){let t;return e instanceof Error?t={isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:t={isError:!1,value:e},[t,[]]},deserialize(e){throw e.isError?Object.assign(new Error(e.value.message),e.value):e.value}},Lgt=new Map([["proxy",Vpr],["throw",Wpr]]);function Ypr(e,t){for(const r of e)if(t===r||r==="*"||r instanceof RegExp&&r.test(t))return!0;return!1}function Pgt(e,t=globalThis,r=["*"]){t.addEventListener("message",function n(i){if(!i||!i.data)return;if(!Ypr(r,i.origin)){console.warn(`Invalid origin '${i.origin}' for comlink proxy`);return}const{id:a,type:o,path:s}=Object.assign({path:[]},i.data),l=(i.data.argumentList||[]).map(Ak);let u;try{const c=s.slice(0,-1).reduce((f,h)=>f[h],e),A=s.reduce((f,h)=>f[h],e);switch(o){case"GET":u=A;break;case"SET":c[s.slice(-1)[0]]=Ak(i.data.value),u=!0;break;case"APPLY":u=A.apply(c,l);break;case"CONSTRUCT":{const f=new A(...l);u=t0r(f)}break;case"ENDPOINT":{const{port1:f,port2:h}=new MessageChannel;Pgt(e,h),u=e0r(f,[f])}break;case"RELEASE":u=void 0;break;default:return}}catch(c){u={value:c,[$K]:0}}Promise.resolve(u).catch(c=>({value:c,[$K]:0})).then(c=>{const[A,f]=cY(c);t.postMessage(Object.assign(Object.assign({},A),{id:a}),f),o==="RELEASE"&&(t.removeEventListener("message",n),Ugt(t),Xfe in e&&typeof e[Xfe]=="function"&&e[Xfe]())}).catch(c=>{const[A,f]=cY({value:new TypeError("Unserializable return value"),[$K]:0});t.postMessage(Object.assign(Object.assign({},A),{id:a}),f)})}),t.start&&t.start()}function qpr(e){return e.constructor.name==="MessagePort"}function Ugt(e){qpr(e)&&e.close()}function Hgt(e,t){const r=new Map;return e.addEventListener("message",function(i){const{data:a}=i;if(!a||!a.id)return;const o=r.get(a.id);if(o)try{o(a)}finally{r.delete(a.id)}}),g2e(e,r,[],t)}function t$(e){if(e)throw new Error("Proxy has been released and is not useable")}function jgt(e){return N8(e,new Map,{type:"RELEASE"}).then(()=>{Ugt(e)})}const lY=new WeakMap,uY="FinalizationRegistry"in globalThis&&new FinalizationRegistry(e=>{const t=(lY.get(e)||0)-1;lY.set(e,t),t===0&&jgt(e)});function Jpr(e,t){const r=(lY.get(t)||0)+1;lY.set(t,r),uY&&uY.register(e,t,e)}function Xpr(e){uY&&uY.unregister(e)}function g2e(e,t,r=[],n=function(){}){let i=!1;const a=new Proxy(n,{get(o,s){if(t$(i),s===Ogt)return()=>{Xpr(a),jgt(e),t.clear(),i=!0};if(s==="then"){if(r.length===0)return{then:()=>a};const l=N8(e,t,{type:"GET",path:r.map(u=>u.toString())}).then(Ak);return l.then.bind(l)}return g2e(e,t,[...r,s])},set(o,s,l){t$(i);const[u,c]=cY(l);return N8(e,t,{type:"SET",path:[...r,s].map(A=>A.toString()),value:u},c).then(Ak)},apply(o,s,l){t$(i);const u=r[r.length-1];if(u===Kpr)return N8(e,t,{type:"ENDPOINT"}).then(Ak);if(u==="bind")return g2e(e,t,r.slice(0,-1));const[c,A]=HUe(l);return N8(e,t,{type:"APPLY",path:r.map(f=>f.toString()),argumentList:c},A).then(Ak)},construct(o,s){t$(i);const[l,u]=HUe(s);return N8(e,t,{type:"CONSTRUCT",path:r.map(c=>c.toString()),argumentList:l},u).then(Ak)}});return Jpr(a,e),a}function Zpr(e){return Array.prototype.concat.apply([],e)}function HUe(e){const t=e.map(cY);return[t.map(r=>r[0]),Zpr(t.map(r=>r[1]))]}const Ggt=new WeakMap;function e0r(e,t){return Ggt.set(e,t),e}function t0r(e){return Object.assign(e,{[Mgt]:!0})}function cY(e){for(const[t,r]of Lgt)if(r.canHandle(e)){const[n,i]=r.serialize(e);return[{type:"HANDLER",name:t,value:n},i]}return[{type:"RAW",value:e},Ggt.get(e)||[]]}function Ak(e){switch(e.type){case"HANDLER":return Lgt.get(e.name).deserialize(e.value);case"RAW":return e.value}}function N8(e,t,r,n){return new Promise(i=>{const a=r0r();t.set(a,i),e.start&&e.start(),e.postMessage(Object.assign({id:a},r),n)})}function r0r(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}class n0r extends vX{constructor(t,r,n){super(),this.graph=t,this.layout=r,this.options=n,this.spawnWorker()}spawnWorker(){this.proxy=Hgt(new Worker(new URL("/assets/worker-De2MZRr5.js",import.meta.url),{type:"module"})),this.running&&(this.running=!1,this.execute())}execute(){var t;return Ml(this,void 0,void 0,function*(){if(this.running)return this;this.running=!0;const r=this.layout.options,n=lf(r,["onTick"]),i={};Object.keys(n).forEach(l=>{xo(n[l])||(i[l]=n[l])});const a={layout:{id:this.layout.id,options:i,iterations:(t=this.options)===null||t===void 0?void 0:t.iterations},nodes:this.graph.getAllNodes(),edges:this.graph.getAllEdges()},o=new Float32Array([0]),[s]=yield this.proxy.calculateLayout(a,[o]);return s})}stop(){return this.running=!1,this.proxy.stopLayout(),this}kill(){this.proxy[Ogt]()}isRunning(){return this.running}}var i0r=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(c){try{u(n.next(c))}catch(A){o(A)}}function l(c){try{u(n.throw(c))}catch(A){o(A)}}function u(c){c.done?a(c.value):i(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};class VX extends mX{constructor(){super(...arguments),this.id="fishbone"}getRoot(){const t=this.context.model.getRootsData();if(!(Uw(t)||t.length>2))return t[0]}formatSize(t){const r=typeof t=="function"?t:()=>t;return n=>a1(r(n))}doLayout(t,r){const{hGap:n,getRibSep:i,vGap:a,nodeSize:o,height:s}=r,{model:l}=this.context,u=this.formatSize(o);let c=u(t)[0]+i(t);const A=(E,_=0)=>{var F;return _+=n*((E.children||[]).length+1),(F=E.children)===null||F===void 0||F.forEach(M=>{var N;(N=l.getNodeLikeDatum(M).children)===null||N===void 0||N.forEach(j=>{const z=l.getNodeLikeDatum(j);_=A(z,_)})}),_},f=E=>{if(E.depth===1)return c;const _=l.getParentData(E.id,"tree");if(G_(E)){const F=l.getParentData(_.id,"tree"),M=p(E)-p(F);return f(_)+M*n/a}else{const F=(_.children||[]).indexOf(E.id),M=l.getNodeData((_.children||[]).slice(F));return h(_)-M.reduce((N,P)=>N+A(P),0)-u(_)[0]/2}},h=xbe(E=>{if(Zfe(E))return u(E)[0]/2;const _=l.getParentData(E.id,"tree");if(G_(E))return f(E)+A(E)+u(E)[0]/2;{const F=p(E)-p(_),M=n/a;return f(E)+F*M}},E=>E.id),g=E=>p(l.getParentData(E,"tree")),p=xbe(E=>{if(Zfe(E))return s/2;if(G_(E)){const _=l.getParentData(E.id,"tree"),F=_.children.indexOf(E.id);if(F===0)return g(_.id)+a;const M=l.getNodeLikeDatum(_.children[F-1]);if(Uw(M.children))return p(M)+a;const N=l.getDescendantsData(M.id);return Math.max(...N.map(P=>G_(P)?g(P.id):p(P)))+a}else{if(Uw(E.children))return g(E.id)+a;const _=l.getNodeLikeDatum(E.children.slice(-1)[0]);if(Uw(_.children))return p(_)+a;const F=l.getDescendantsData(E.id).slice(-1)[0];return(G_(F)?g(F.id):p(F))+a}},E=>E.id);let m=0;const b={nodes:[],edges:[]},C=E=>{var _;(_=E.children)===null||_===void 0||_.forEach(j=>C(l.getNodeLikeDatum(j)));const F=p(E),M=h(E);if(b.nodes.push({id:E.id,x:M,y:F}),Zfe(E))return;const N=l.getRelatedEdgesData(E.id,"in")[0],P=[f(E),G_(E)?F:g(E.id)];b.edges.push({id:Gn(N),controlPoints:[P],relatedNodeId:E.id}),m=Math.max(m,M+i(E)),E.depth===1&&(c=m)};return C(t),b}placeAlterative(t,r){const n=(r.children||[]).filter((s,l)=>l%2!==0);if(n.length===0)return t;const{model:i}=this.context,a=t.nodes.find(s=>s.id===r.id).y,o=s=>{const l=i.getAncestorsData(s,"tree");if(Uw(l))return!1;const u=l.length===1?s:l[l.length-2].id;return n.includes(u)};t.nodes.forEach(s=>{o(s.id)&&(s.y=2*a-s.y)}),t.edges.forEach(s=>{o(s.relatedNodeId)&&(s.controlPoints=s.controlPoints.map(l=>[l[0],2*a-l[1]]))})}rightToLeft(t,r){return t.nodes.forEach(n=>n.x=r.width-n.x),t.edges.forEach(n=>{n.controlPoints=n.controlPoints.map(i=>[r.width-i[0],i[1]])}),t}execute(t,r){return i0r(this,void 0,void 0,function*(){const n=Object.assign(Object.assign(Object.assign({},VX.defaultOptions),this.options),r),{direction:i,nodeSize:a}=n,o=this.getRoot();if(!o)return t;const s=this.formatSize(a);n.vGap||(n.vGap=Math.max(...(t.nodes||[]).map(f=>s(f)[1]))),n.hGap||(n.hGap=Math.max(...(t.nodes||[]).map(f=>s(f)[0])));let l=this.doLayout(o,n);this.placeAlterative(l,o),i==="RL"&&(l=this.rightToLeft(l,n));const{model:u}=this.context,c=[],A=[];return l.nodes.forEach(f=>{const{id:h,x:g,y:p}=f,m=u.getNodeLikeDatum(h);c.push(jUe(m,{x:g,y:p}))}),l.edges.forEach(f=>{const{id:h,controlPoints:g}=f,p=u.getEdgeDatum(h);A.push(jUe(p,{controlPoints:g}))}),{nodes:c,edges:A}})}}VX.defaultOptions={direction:"RL",getRibSep:()=>60};const jUe=(e,t)=>Object.assign(Object.assign({},e),{style:Object.assign(Object.assign({},e.style||{}),t)}),Zfe=e=>e.depth===0,G_=e=>(e.depth||(e.depth=0))%2===0;var a0r=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(c){try{u(n.next(c))}catch(A){o(A)}}function l(c){try{u(n.throw(c))}catch(A){o(A)}}function u(c){c.done?a(c.value):i(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};class WX extends mX{constructor(){super(...arguments),this.id="snake"}formatSize(t,r){const n=typeof r=="function"?r:()=>r;return t.reduce((i,a)=>{const[o,s]=a1(n(a))||[0,0];return[Math.max(i[0],o),Math.max(i[1],s)]},[0,0])}validate(t){const{nodes:r=[],edges:n=[]}=t,i={},a={},o={};r.forEach(f=>{i[f.id]=0,a[f.id]=0,o[f.id]=[]}),n.forEach(f=>{i[f.target]++,a[f.source]++,o[f.source].push(f.target)});const s=new Set,l=f=>{s.has(f)||(s.add(f),o[f].forEach(l))};if(l(r[0].id),s.size!==r.length)return!1;const u=r.filter(f=>i[f.id]===0),c=r.filter(f=>a[f.id]===0);return!(u.length!==1||c.length!==1||r.filter(f=>i[f.id]===1&&a[f.id]===1).length!==r.length-2)}execute(t,r){return a0r(this,void 0,void 0,function*(){var n;if(!this.validate(t))return t;const{nodeSize:i,padding:a,sortBy:o,cols:s,colGap:l,rowGap:u,clockwise:c,width:A,height:f}=Object.assign({},WX.defaultOptions,this.options,r),[h,g,p,m]=FC(a),b=this.formatSize(t.nodes||[],i),C=Math.ceil((t.nodes||[]).length/s);let E=l||(A-m-g-s*b[0])/(s-1),_=u||(f-h-p-C*b[1])/(C-1);return(_===1/0||_<0)&&(_=0),(E===1/0||E<0)&&(E=0),{nodes:((o?(n=t.nodes)===null||n===void 0?void 0:n.sort(o):o0r(t))||[]).map((N,P)=>{const j=Math.floor(P/s),z=P%s,W=c?j%2===0?z:s-1-z:j%2===0?s-1-z:z,Y=m+W*(b[0]+E)+b[0]/2,ee=h+j*(b[1]+_)+b[1]/2;return{id:N.id,style:{x:Y,y:ee}}})}})}}WX.defaultOptions={padding:0,cols:5,clockwise:!0};function o0r(e){const{nodes:t=[],edges:r=[]}=e,n={},i={};t.forEach(s=>{n[s.id]=0,i[s.id]=[]}),r.forEach(s=>{n[s.target]++,i[s.source].push(s.target)});const a=[],o=[];for(t.forEach(s=>{n[s.id]===0&&a.push(s.id)});a.length>0;){const s=a.shift(),l=t.find(u=>u.id===s);o.push(l),i[s].forEach(u=>{n[u]--,n[u]===0&&a.push(u)})}return o}const s0r=["rgb(158, 1, 66)","rgb(213, 62, 79)","rgb(244, 109, 67)","rgb(253, 174, 97)","rgb(254, 224, 139)","rgb(255, 255, 191)","rgb(230, 245, 152)","rgb(171, 221, 164)","rgb(102, 194, 165)","rgb(50, 136, 189)","rgb(94, 79, 162)"],l0r=["rgb(78, 121, 167)","rgb(242, 142, 44)","rgb(225, 87, 89)","rgb(118, 183, 178)","rgb(89, 161, 79)","rgb(237, 201, 73)","rgb(175, 122, 161)","rgb(255, 157, 167)","rgb(156, 117, 95)","rgb(186, 176, 171)"],u0r=["rgb(255, 245, 235)","rgb(254, 230, 206)","rgb(253, 208, 162)","rgb(253, 174, 107)","rgb(253, 141, 60)","rgb(241, 105, 19)","rgb(217, 72, 1)","rgb(166, 54, 3)","rgb(127, 39, 4)"],c0r=["rgb(247, 252, 245)","rgb(229, 245, 224)","rgb(199, 233, 192)","rgb(161, 217, 155)","rgb(116, 196, 118)","rgb(65, 171, 93)","rgb(35, 139, 69)","rgb(0, 109, 44)","rgb(0, 68, 27)"],A0r=["rgb(247, 251, 255)","rgb(222, 235, 247)","rgb(198, 219, 239)","rgb(158, 202, 225)","rgb(107, 174, 214)","rgb(66, 146, 198)","rgb(33, 113, 181)","rgb(8, 81, 156)","rgb(8, 48, 107)"];class Ap extends e3e{}function aT(e,t=!0,r){const n=document.createElement("div");return n.setAttribute("class",`g6-${e}`),Object.assign(n.style,{position:"absolute",display:"block"}),t&&Object.assign(n.style,{position:"unset",gridArea:"1 / 1 / 2 / 2",inset:"0px",height:"100%",width:"100%",overflow:"hidden",pointerEvents:"none"}),r&&Object.assign(n.style,r),n}function p2e(e,t="div",r={},n="",i=document.body){const a=document.getElementById(e);a&&a.remove();const o=document.createElement(t);return o.innerHTML=n,o.id=e,Object.assign(o.style,r),i.appendChild(o),o}var f0r=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(c){try{u(n.next(c))}catch(A){o(A)}}function l(c){try{u(n.throw(c))}catch(A){o(A)}}function u(c){c.done?a(c.value):i(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};class YX extends Ap{constructor(t,r){super(t,Object.assign({},YX.defaultOptions,r)),this.$element=aT("background"),this.context.canvas.getContainer().prepend(this.$element),this.update(r)}update(t){const r=Object.create(null,{update:{get:()=>super.update}});return f0r(this,void 0,void 0,function*(){r.update.call(this,t),Object.assign(this.$element.style,Oxe(this.options,["key","type"]))})}destroy(){super.destroy(),this.$element.remove()}}YX.defaultOptions={transition:"background 0.5s",backgroundSize:"cover",zIndex:"-1"};function L3e(e,t,r,n,i,a){const o=e,s=t,l=r-o,u=n-s;let c=i-o,A=a-s,f=c*l+A*u,h=0;f<=0?h=0:(c=l-c,A=u-A,f=c*l+A*u,f<=0?h=0:h=f*f/(l*l+u*u));const g=c*c+A*A-h;return g<0?0:g}function R3(e,t,r,n){return(e-r)*(e-r)+(t-n)*(t-n)}function GUe(e,t,r,n,i){return R3(e,t,r,n)r;if(e===0)return Math.round;const t=Math.pow(10,e);return r=>Math.round(r*t)/t}function $gt(e){const t=Math.min(e.x1,e.x2),r=Math.max(e.x1,e.x2),n=Math.min(e.y1,e.y2),i=Math.max(e.y1,e.y2);return{x:t,y:n,x2:r,y2:i,width:r-t,height:i-n}}let o0=class zgt{constructor(t,r,n,i){this.x1=t,this.y1=r,this.x2=n,this.y2=i}equals(t){return this.x1===t.x1&&this.y1===t.y1&&this.x2===t.x2&&this.y2===t.y2}draw(t){t.moveTo(this.x1,this.y1),t.lineTo(this.x2,this.y2)}toString(){return`Line(from=(${this.x1},${this.y1}),to=(${this.x2},${this.y2}))`}static from(t){return new zgt(t.x1,t.y1,t.x2,t.y2)}cuts(t,r){if(this.y1===this.y2||rthis.y1&&r>=this.y2||t>this.x1&&t>=this.x2)return!1;if(tthis.x2+n)return!1}else if(tthis.x1+n)return!1;if(this.y1this.y2+n)return!1}else if(rthis.y1+n)return!1;return!0}};var $f;(function(e){e[e.POINT=1]="POINT",e[e.PARALLEL=2]="PARALLEL",e[e.COINCIDENT=3]="COINCIDENT",e[e.NONE=4]="NONE"})($f||($f={}));class ehe{constructor(t,r=0,n=0){this.state=t,this.x=r,this.y=n}}function r$(e,t){const r=(t.x2-t.x1)*(e.y1-t.y1)-(t.y2-t.y1)*(e.x1-t.x1),n=(e.x2-e.x1)*(e.y1-t.y1)-(e.y2-e.y1)*(e.x1-t.x1),i=(t.y2-t.y1)*(e.x2-e.x1)-(t.x2-t.x1)*(e.y2-e.y1);if(i){const a=r/i,o=n/i;return 0<=a&&a<=1&&0<=o&&o<=1?new ehe($f.POINT,e.x1+a*(e.x2-e.x1),e.y1+a*(e.y2-e.y1)):new ehe($f.NONE)}return new ehe(r===0||n===0?$f.COINCIDENT:$f.PARALLEL)}function Kgt(e,t){const r=(t.x2-t.x1)*(e.y1-t.y1)-(t.y2-t.y1)*(e.x1-t.x1),n=(e.x2-e.x1)*(e.y1-t.y1)-(e.y2-e.y1)*(e.x1-t.x1),i=(t.y2-t.y1)*(e.x2-e.x1)-(t.x2-t.x1)*(e.y2-e.y1);if(i){const a=r/i,o=n/i;if(0<=a&&a<=1&&0<=o&&o<=1)return a}return Number.POSITIVE_INFINITY}function d0r(e,t){function r(i,a,o,s){let l=Kgt(t,new o0(i,a,o,s));return l=Math.abs(l-.5),l>=0&&l<=1?1:0}let n=r(e.x,e.y,e.x2,e.y);return n+=r(e.x,e.y,e.x,e.y2),n>1||(n+=r(e.x,e.y2,e.x2,e.y2),n>1)?!0:(n+=r(e.x2,e.y,e.x2,e.y2),n>0)}var Vf;(function(e){e[e.LEFT=0]="LEFT",e[e.TOP=1]="TOP",e[e.RIGHT=2]="RIGHT",e[e.BOTTOM=3]="BOTTOM"})(Vf||(Vf={}));function zK(e,t,r){const n=new Set;return e.width<=0?(n.add(Vf.LEFT),n.add(Vf.RIGHT)):te.x+e.width&&n.add(Vf.RIGHT),e.height<=0?(n.add(Vf.TOP),n.add(Vf.BOTTOM)):re.y+e.height&&n.add(Vf.BOTTOM),n}function Vgt(e,t){let r=t.x1,n=t.y1;const i=t.x2,a=t.y2,o=Array.from(zK(e,i,a));if(o.length===0)return!0;let s=zK(e,r,n);for(;s.size!==0;){for(const l of o)if(s.has(l))return!1;if(s.has(Vf.RIGHT)||s.has(Vf.LEFT)){let l=e.x;s.has(Vf.RIGHT)&&(l+=e.width),n=n+(l-r)*(a-n)/(i-r),r=l}else{let l=e.y;s.has(Vf.BOTTOM)&&(l+=e.height),r=r+(l-n)*(i-r)/(a-n),n=l}s=zK(e,r,n)}return!0}function g0r(e,t){let r=Number.POSITIVE_INFINITY,n=0;function i(a,o,s,l){let u=Kgt(t,new o0(a,o,s,l));u=Math.abs(u-.5),u>=0&&u<=1&&(n++,u1||(i(e.x,e.y2,e.x2,e.y2),n>1)?r:(i(e.x2,e.y,e.x2,e.y2),n===0?-1:r)}function p0r(e,t){let r=0;const n=r$(e,new o0(t.x,t.y,t.x2,t.y));r+=n.state===$f.POINT?1:0;const i=r$(e,new o0(t.x,t.y,t.x,t.y2));r+=i.state===$f.POINT?1:0;const a=r$(e,new o0(t.x,t.y2,t.x2,t.y2));r+=a.state===$f.POINT?1:0;const o=r$(e,new o0(t.x2,t.y,t.x2,t.y2));return r+=o.state===$f.POINT?1:0,{top:n,left:i,bottom:a,right:o,count:r}}class Kp{constructor(t,r,n,i){this.x=t,this.y=r,this.width=n,this.height=i}get x2(){return this.x+this.width}get y2(){return this.y+this.height}get cx(){return this.x+this.width/2}get cy(){return this.y+this.height/2}get radius(){return Math.max(this.width,this.height)/2}static from(t){return new Kp(t.x,t.y,t.width,t.height)}equals(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height}clone(){return new Kp(this.x,this.y,this.width,this.height)}add(t){const r=Math.min(this.x,t.x),n=Math.min(this.y,t.y),i=Math.max(this.x2,t.x+t.width),a=Math.max(this.y2,t.y+t.height);this.x=r,this.y=n,this.width=i-r,this.height=a-n}addPoint(t){const r=Math.min(this.x,t.x),n=Math.min(this.y,t.y),i=Math.max(this.x2,t.x),a=Math.max(this.y2,t.y);this.x=r,this.y=n,this.width=i-r,this.height=a-n}toString(){return`Rectangle[x=${this.x}, y=${this.y}, w=${this.width}, h=${this.height}]`}draw(t){t.rect(this.x,this.y,this.width,this.height)}containsPt(t,r){return t>=this.x&&t<=this.x2&&r>=this.y&&r<=this.y2}get area(){return this.width*this.height}intersects(t){return this.area<=0||t.width<=0||t.height<=0?!1:t.x+t.width>this.x&&t.y+t.height>this.y&&t.x=this.width?this.width-1:t}boundY(t){return t=this.height?this.height-1:t}scaleX(t){return this.boundX(Math.floor((t-this.pixelX)/this.pixelGroup))}scaleY(t){return this.boundY(Math.floor((t-this.pixelY)/this.pixelGroup))}scale(t){const r=this.scaleX(t.x),n=this.scaleY(t.y),i=this.boundX(Math.ceil((t.x+t.width-this.pixelX)/this.pixelGroup)),a=this.boundY(Math.ceil((t.y+t.height-this.pixelY)/this.pixelGroup)),o=i-r,s=a-n;return new Kp(r,n,o,s)}invertScaleX(t){return Math.round(t*this.pixelGroup+this.pixelX)}invertScaleY(t){return Math.round(t*this.pixelGroup+this.pixelY)}addPadding(t,r){const n=Math.ceil(r/this.pixelGroup),i=this.boundX(t.x-n),a=this.boundY(t.y-n),o=this.boundX(t.x2+n),s=this.boundY(t.y2+n),l=o-i,u=s-a;return new Kp(i,a,l,u)}get(t,r){return t<0||r<0||t>=this.width||r>=this.height?Number.NaN:this.area[t+r*this.width]}inc(t,r,n){t<0||r<0||t>=this.width||r>=this.height||(this.area[t+r*this.width]+=n)}set(t,r,n){t<0||r<0||t>=this.width||r>=this.height||(this.area[t+r*this.width]=n)}incArea(t,r){if(t.width<=0||t.height<=0||r===0)return;const n=this.width,i=t.width,a=Math.max(0,t.i),o=Math.max(0,t.j),s=Math.min(t.i+t.width,n),l=Math.min(t.j+t.height,this.height);if(!(l<=0||s<=0||a>=n||l>=this.height))for(let u=o;uMath.min(o,s),Number.POSITIVE_INFINITY),i=this.area.reduce((o,s)=>Math.max(o,s),Number.NEGATIVE_INFINITY),a=o=>(o-n)/(i-n);t.scale(this.pixelGroup,this.pixelGroup);for(let o=0;or?"black":"white",t.fillRect(i,a,1,1)}t.restore()}}}function Ygt(e,t){const r=n=>({x:n.x-t,y:n.y-t,width:n.width+2*t,height:n.height+2*t});return Array.isArray(e)?e.map(r):r(e)}function zUe(e,t,r){return qgt(Object.assign($gt(e),{distSquare:(n,i)=>L3e(e.x1,e.y1,e.x2,e.y2,n,i)}),t,r)}function qgt(e,t,r){const n=Ygt(e,r),i=t.scale(n),a=t.createSub(i,n);return m0r(a,t,r,(o,s)=>e.distSquare(o,s)),a}function m0r(e,t,r,n){const i=r*r;for(let a=0;a{const s=i.slice(0,o);return w0r(t,a,s,r,n)}).flat()}function w0r(e,t,r,n,i){const a=MA(t.cx,t.cy),o=E0r(a,r,e);if(o==null)return[];const s=new o0(a.x,a.y,o.cx,o.cy),l=C0r(s,e,n,i);return I0r(l,e)}function C0r(e,t,r,n){const i=[],a=[];a.push(e);let o=!0;for(let s=0;s0;){const l=a.pop(),u=Jgt(t,l),c=u?p0r(l,u):null;if(!u||!c||c.count!==2){o||i.push(l);continue}let A=n,f=i$(u,A,c,!0),h=Mx(f,a)||Mx(f,i),g=n$(f,t);for(;!h&&g&&A>=1;)A/=1.5,f=i$(u,A,c,!0),h=Mx(f,a)||Mx(f,i),g=n$(f,t);if(f&&!h&&!g&&(a.push(new o0(l.x1,l.y1,f.x,f.y)),a.push(new o0(f.x,f.y,l.x2,l.y2)),o=!0),o)continue;A=n,f=i$(u,A,c,!1);let p=Mx(f,a)||Mx(f,i);for(g=n$(f,t);!p&&g&&A>=1;)A/=1.5,f=i$(u,A,c,!1),p=Mx(f,a)||Mx(f,i),g=n$(f,t);f&&!p&&(a.push(new o0(l.x1,l.y1,f.x,f.y)),a.push(new o0(f.x,f.y,l.x2,l.y2)),o=!0),o||i.push(l)}for(;a.length>0;)i.push(a.pop());return i}function I0r(e,t){const r=[];for(;e.length>0;){const n=e.pop();if(e.length===0){r.push(n);break}const i=e.pop(),a=new o0(n.x1,n.y1,i.x2,i.y2);Jgt(t,a)?(r.push(n),e.push(i)):e.push(a)}return r}function E0r(e,t,r){let n=Number.POSITIVE_INFINITY;return t.reduce((i,a)=>{const o=R3(e.x,e.y,a.cx,a.cy);if(o>n)return i;const s=new o0(e.x,e.y,a.cx,a.cy),l=x0r(r,s);return o*(l+1)*(l+1){t+=n.cx,r+=n.cy}),t/=e.length,r/=e.length,e.map(n=>{const i=t-n.cx,a=r-n.cy,o=i*i+a*a;return[n,o]}).sort((n,i)=>n[1]-i[1]).map(n=>n[0])}function n$(e,t){return t.some(r=>r.containsPt(e.x,e.y))}function Mx(e,t){return t.some(r=>!!(GUe(r.x1,r.y1,e.x,e.y,.001)||GUe(r.x2,r.y2,e.x,e.y,.001)))}function Jgt(e,t){let r=Number.POSITIVE_INFINITY,n=null;for(const i of e){if(!Vgt(i,t))continue;const a=g0r(i,t);a>=0&&aVgt(n,t)&&d0r(n,t)?r+1:r,0)}function i$(e,t,r,n){const i=r.top,a=r.left,o=r.bottom,s=r.right;if(n){if(a.state===$f.POINT){if(i.state===$f.POINT)return MA(e.x-t,e.y-t);if(o.state===$f.POINT)return MA(e.x-t,e.y2+t);const f=e.width*e.height;return e.width*((a.y-e.y+(s.y-e.y))*.5)s.y?MA(e.x-t,e.y-t):MA(e.x2+t,e.y-t):a.yo.x?MA(e.x-t,e.y-t):MA(e.x-t,e.y2+t):i.xs.y?MA(e.x2+t,e.y2+t):MA(e.x-t,e.y2+t):a.yo.x?MA(e.x2+t,e.y2+t):MA(e.x2+t,e.y-t):i.xn)return!1}return!0}function k0r(e=0){return t=>{if(e<0||t.length<3)return t;const r=[];let n=0;const i=e*e;for(;n{if(o.length<3)return o;const s=[],l=o.closed,u=o.length+3-1+(l?0:2);s.push(a(o,2-(l?0:2),0));for(let c=2-(l?0:2);c{let r=e,n=t.length;if(r>1)for(n=Math.floor(t.length/r);n<3&&r>1;)r-=1,n=Math.floor(t.length/r);const i=[];for(let a=0,o=0;o=n?this.closed?this.get(t-n):this.points[n-1]:this.points[r]}get length(){return this.points.length}toString(t=1/0){const r=this.points;if(r.length===0)return"";const n=typeof t=="function"?t:h0r(t);let i="M";for(const a of r)i+=`${n(a.x)},${n(a.y)} L`;return i=i.slice(0,-1),this.closed&&(i+=" Z"),i}draw(t){const r=this.points;if(r.length!==0){t.beginPath(),t.moveTo(r[0].x,r[0].y);for(const n of r)t.lineTo(n.x,n.y);this.closed&&t.closePath()}}sample(t){return T0r(t)(this)}simplify(t){return k0r(t)(this)}bSplines(t){return _0r(t)(this)}apply(t){return t(this)}containsElements(t){const r=v0r(this.points);return r?t.every(n=>r.containsPt(n.cx,n.cy)&&this.withinArea(n.cx,n.cy)):!1}withinArea(t,r){if(this.length===0)return!1;let n=0;const i=this.points[0],a=new o0(i.x,i.y,i.x,i.y);for(let o=1;ot?c+A:c}function a(l,u){let c=zF;return c=i(l,u,c,1),c=i(l+1,u,c,2),c=i(l,u+1,c,4),c=i(l+1,u+1,c,8),Number.isNaN(c)?-1:c}let o=a$;function s(l,u){let c=l,A=u,f=e.invertScaleX(c),h=e.invertScaleY(A);for(let g=0;gKUe(n.raw,t));return r<0?!1:(this.members.splice(r,1),this.dirty.add(Mb.MEMBERS),!0)}removeNonMember(t){const r=this.nonMembers.findIndex(n=>KUe(n.raw,t));return r<0?!1:(this.nonMembers.splice(r,1),this.dirty.add(Mb.NON_MEMBERS),!0)}removeEdge(t){const r=this.edges.findIndex(n=>n.obj.equals(t));return r<0?!1:(this.edges.splice(r,1),this.dirty.add(Mb.NON_MEMBERS),!0)}pushNonMember(...t){if(t.length!==0){this.dirty.add(Mb.NON_MEMBERS);for(const r of t)this.nonMembers.push({raw:r,obj:XM(r)?$Ue.from(r):Kp.from(r),area:null})}}pushEdge(...t){if(t.length!==0){this.dirty.add(Mb.EDGES);for(const r of t)this.edges.push({raw:r,obj:o0.from(r),area:null})}}update(){const t=this.dirty.has(Mb.MEMBERS),r=this.dirty.has(Mb.NON_MEMBERS);let n=this.dirty.has(Mb.EDGES);this.dirty.clear();const i=this.members.map(u=>u.obj);if(this.o.virtualEdges&&(t||r)){const u=this.nonMembers.map(f=>f.obj),c=b0r(i,u,this.o.maxRoutingIterations,this.o.morphBuffer),A=new Map(this.virtualEdges.map(f=>[f.obj.toString(),f.area]));this.virtualEdges=c.map(f=>{var h;return{raw:f,obj:f,area:(h=A.get(f.toString()))!==null&&h!==void 0?h:null}}),n=!0}let a=!1;if(t||n){const u=this.virtualEdges.concat(this.edges).map(h=>h.obj),c=M0r(i,u),A=Math.max(this.o.edgeR1,this.o.nodeR1)+this.o.morphBuffer,f=Kp.from(Ygt(c,A));f.equals(this.activeRegion)||(a=!0,this.activeRegion=f)}if(a){const u=Math.ceil(this.activeRegion.width/this.o.pixelGroup),c=Math.ceil(this.activeRegion.height/this.o.pixelGroup);this.activeRegion.x!==this.potentialArea.pixelX||this.activeRegion.y!==this.potentialArea.pixelY?(this.potentialArea=Jk.fromPixelRegion(this.activeRegion,this.o.pixelGroup),this.members.forEach(A=>A.area=null),this.nonMembers.forEach(A=>A.area=null),this.edges.forEach(A=>A.area=null),this.virtualEdges.forEach(A=>A.area=null)):(u!==this.potentialArea.width||c!==this.potentialArea.height)&&(this.potentialArea=Jk.fromPixelRegion(this.activeRegion,this.o.pixelGroup))}const o=new Map,s=u=>{if(u.area){const c=`${u.obj.width}x${u.obj.height}x${u.obj instanceof Kp?"R":"C"}`;o.set(c,u.area)}},l=u=>{if(u.area)return;const c=`${u.obj.width}x${u.obj.height}x${u.obj instanceof Kp?"R":"C"}`;if(o.has(c)){const f=o.get(c);u.area=this.potentialArea.copy(f,{x:u.obj.x-this.o.nodeR1,y:u.obj.y-this.o.nodeR1});return}const A=u.obj instanceof Kp?y0r(u.obj,this.potentialArea,this.o.nodeR1):qgt(u.obj,this.potentialArea,this.o.nodeR1);u.area=A,o.set(c,A)};this.members.forEach(s),this.nonMembers.forEach(s),this.members.forEach(l),this.nonMembers.forEach(u=>{this.activeRegion.intersects(u.obj)?l(u):u.area=null}),this.edges.forEach(u=>{u.area||(u.area=zUe(u.obj,this.potentialArea,this.o.edgeR1))}),this.virtualEdges.forEach(u=>{u.area||(u.area=zUe(u.obj,this.potentialArea,this.o.edgeR1))})}drawMembers(t){for(const r of this.members)r.obj.draw(t)}drawNonMembers(t){for(const r of this.nonMembers)r.obj.draw(t)}drawEdges(t){for(const r of this.edges)r.obj.draw(t)}drawPotentialArea(t,r=!0){this.potentialArea.draw(t,r)}compute(){if(this.members.length===0)return new oT([]);this.dirty.size>0&&this.update();const{o:t,potentialArea:r}=this,n=this.members.map(s=>s.area),i=this.virtualEdges.concat(this.edges).map(s=>s.area),a=this.nonMembers.filter(s=>s.area!=null).map(s=>s.area),o=this.members.map(s=>s.obj);return R0r(r,n,i,a,s=>s.containsElements(o),t)}};function R0r(e,t,r,n,i,a={}){const o=Object.assign({},qX,a);let s=o.threshold,l=o.memberInfluenceFactor,u=o.edgeInfluenceFactor,c=o.nonMemberInfluenceFactor;const A=(o.nodeR0-o.nodeR1)*(o.nodeR0-o.nodeR1),f=(o.edgeR0-o.edgeR1)*(o.edgeR0-o.edgeR1);for(let h=0;h0)c*=.8;else break}return new oT([])}function M0r(e,t){if(e.length===0)return new Kp(0,0,0,0);const r=Kp.from(e[0]);for(const n of e)r.add(n);for(const n of t)r.add($gt(n));return r}var O0r=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{const{style:n,bubbleSetOptions:i}=this.parseOptions();Qf(this.bubbleSetOptions,i)||this.init(),this.bubbleSetOptions=Object.assign({},i);const a=Object.assign(Object.assign({},n),{d:this.getPath()});this.shape?this.shape.update(a):(this.shape=new GL({style:a}),this.context.canvas.appendChild(this.shape))},this.updateBubbleSetsPath=n=>{if(!this.shape)return;const i=Gn(n.data);[...this.options.members,...this.options.avoidMembers].includes(i)&&this.shape.update(Object.assign(Object.assign({},this.parseOptions().style),{d:this.getPath(i)}))},this.getPath=n=>{const{graph:i}=this.context,a=this.options.members,o=[...this.members.keys()],s=this.options.avoidMembers,l=[...this.avoidMembers.keys()];if(!n&&Qf(a,o)&&Qf(s,l))return this.path;const{enter:u=[],exit:c=[]}=t5(o,a,m=>m),{enter:A=[],exit:f=[]}=t5(l,s,m=>m);n&&(c.push(n),u.push(n));const h=(m,b,C)=>{m.forEach(E=>{const _=C?this.members:this.avoidMembers,F=C?"pushMember":"pushNonMember",M=C?"removeMember":"removeNonMember";if(b){let N;i.getElementType(E)==="edge"?([N]=L0r(i,E),this.bubbleSets.pushEdge(N)):([N]=N0r(i,E),this.bubbleSets[F](N)),_.set(E,N)}else{const N=_.get(E);N&&(i.getElementType(E)==="edge"?this.bubbleSets.removeEdge(N):this.bubbleSets[M](N),_.delete(E))}})};h(c,!1,!0),h(u,!0,!0),h(f,!1,!1),h(A,!0,!1);const p=this.bubbleSets.compute().sample(8).simplify(0).bSplines().simplify(0);return this.path=xht(p.points.map(Yg)),this.path},this.bindEvents(),this.bubbleSets=new VUe(this.options)}bindEvents(){this.context.graph.on(Ta.AFTER_RENDER,this.drawBubbleSets),this.context.graph.on(Ta.AFTER_ELEMENT_UPDATE,this.updateBubbleSetsPath)}init(){this.bubbleSets=new VUe(this.options),this.members=new Map,this.avoidMembers=new Map}parseOptions(){const t=this.options,{type:r,key:n,members:i,avoidMembers:a}=t,o=O0r(t,["type","key","members","avoidMembers"]),s=Object.keys(o).reduce((l,u)=>(u in qX?l.bubbleSetOptions[u]=o[u]:l.style[u]=o[u],l),{style:{},bubbleSetOptions:{}});return Object.assign({type:r,key:n,members:i,avoidMembers:a},s)}addMember(t){const r=Array.isArray(t)?t:[t];r.some(n=>this.options.avoidMembers.includes(n))&&(this.options.avoidMembers=this.options.avoidMembers.filter(n=>!r.includes(n))),this.options.members=[...new Set([...this.options.members,...r])],this.drawBubbleSets()}removeMember(t){const r=Array.isArray(t)?t:[t];this.options.members=this.options.members.filter(n=>!r.includes(n)),this.drawBubbleSets()}updateMember(t){this.options.members=xo(t)?t(this.options.members):t,this.drawBubbleSets()}getMember(){return this.options.members}addAvoidMember(t){const r=Array.isArray(t)?t:[t];r.some(n=>this.options.members.includes(n))&&(this.options.members=this.options.members.filter(n=>!r.includes(n))),this.options.avoidMembers=[...new Set([...this.options.avoidMembers,...r])],this.drawBubbleSets()}removeAvoidMember(t){const r=Array.isArray(t)?t:[t];this.options.avoidMembers.some(n=>r.includes(n))&&(this.options.avoidMembers=this.options.avoidMembers.filter(n=>!r.includes(n)),this.drawBubbleSets())}updateAvoidMember(t){this.options.avoidMembers=Array.isArray(t)?t:[t],this.drawBubbleSets()}getAvoidMember(){return this.options.avoidMembers}destroy(){this.context.graph.off(Ta.AFTER_RENDER,this.drawBubbleSets),this.context.graph.off(Ta.AFTER_ELEMENT_UPDATE,this.updateBubbleSetsPath),this.shape.destroy(),super.destroy()}}JX.defaultOptions=Object.assign({members:[],avoidMembers:[],fill:"lightblue",fillOpacity:.2,stroke:"blue",strokeOpacity:.2},qX);const N0r=(e,t)=>(Array.isArray(t)?t:[t]).map(n=>{const i=e.getElementRenderBounds(n);return new Kp(i.min[0],i.min[1],RC(i),MC(i))}),L0r=(e,t)=>(Array.isArray(t)?t:[t]).map(n=>{const i=e.getEdgeData(n),a=e.getElementPosition(i.source),o=e.getElementPosition(i.target);return o0.from({x1:a[0],y1:a[1],x2:o[0],y2:o[1]})});function P0r(e){return`
    ${e.map(t=>`
  • ${t.name}
  • `).join("")}
`}const U0r=` .g6-contextmenu { font-size: 12px; background-color: rgba(255, 255, 255, 0.96); border-radius: 4px; overflow: hidden; box-shadow: rgba(0, 0, 0, 0.12) 0px 6px 12px 0px; transition: visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1) 0s, left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s; } .g6-contextmenu-ul { max-width: 256px; min-width: 96px; list-style: none; padding: 0; margin: 0; } .g6-contextmenu-li { padding: 8px 12px; cursor: pointer; user-select: none; } .g6-contextmenu-li:hover { background-color: #f5f5f5; cursor: pointer; } `;var WUe=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(c){try{u(n.next(c))}catch(A){o(A)}}function l(c){try{u(n.throw(c))}catch(A){o(A)}}function u(c){c.done?a(c.value):i(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};class XX extends Ap{constructor(t,r){super(t,Object.assign({},XX.defaultOptions,r)),this.targetElement=null,this.onTriggerEvent=n=>{var i;(i=n.preventDefault)===null||i===void 0||i.call(n),this.show(n)},this.onMenuItemClick=n=>{const{onClick:i,trigger:a}=this.options;if(n.target instanceof HTMLElement&&n.target.className.includes("g6-contextmenu-li")){const o=n.target.getAttribute("value");i==null||i(o,n.target,this.targetElement),this.hide()}a!=="click"&&this.hide()},this.initElement(),this.update(r)}initElement(){this.$element=aT("contextmenu",!1,{zIndex:"99"});const{className:t}=this.options;t&&this.$element.classList.add(t),this.context.canvas.getContainer().appendChild(this.$element),p2e("g6-contextmenu-css","style",{},U0r,document.head)}show(t){return WUe(this,void 0,void 0,function*(){const{enable:r,offset:n}=this.options;if(typeof r=="function"&&!r(t)||!r){this.hide();return}const i=yield this.getDOMContent(t);i instanceof HTMLElement?(this.$element.innerHTML="",this.$element.appendChild(i)):this.$element.innerHTML=i;const a=this.context.graph.getCanvas().getContainer().getBoundingClientRect();this.$element.style.left=`${t.client.x-a.left+n[0]}px`,this.$element.style.top=`${t.client.y-a.top+n[1]}px`,this.$element.style.display="block",this.targetElement=t.target})}hide(){this.$element.style.display="none",this.targetElement=null}update(t){this.unbindEvents(),super.update(t),this.bindEvents()}destroy(){this.unbindEvents(),super.destroy(),this.$element.remove()}getDOMContent(t){return WUe(this,void 0,void 0,function*(){const{getContent:r,getItems:n}=this.options;return n?P0r(yield n(t)):yield r(t)})}bindEvents(){const{graph:t}=this.context,{trigger:r}=this.options;t.on(`canvas:${r}`,this.onTriggerEvent),t.on(`node:${r}`,this.onTriggerEvent),t.on(`edge:${r}`,this.onTriggerEvent),t.on(`combo:${r}`,this.onTriggerEvent),document.addEventListener("click",this.onMenuItemClick)}unbindEvents(){const{graph:t}=this.context,{trigger:r}=this.options;t.off(`canvas:${r}`,this.onTriggerEvent),t.off(`node:${r}`,this.onTriggerEvent),t.off(`edge:${r}`,this.onTriggerEvent),t.off(`combo:${r}`,this.onTriggerEvent),document.removeEventListener("click",this.onMenuItemClick)}}XX.defaultOptions={trigger:"contextmenu",offset:[4,4],loadingContent:'
Loading...
',getContent:()=>"It is a empty context menu.",enable:()=>!0};class ZX extends Ap{constructor(t,r){super(t,Object.assign({},ZX.defaultOptions,r)),this.edgeBundles={},this.edgePoints={},this.onBundle=()=>{const{model:n,element:i}=this.context,a=n.getEdgeData();this.divideEdges(this.options.divisions);const{cycles:o,iterRate:s,divRate:l}=this.options;let{lambda:u,divisions:c,iterations:A}=this.options;for(let f=0;f{var m;if(p.source===p.target)return;const b=Gn(p);g[b]=this.getEdgeForces(p,c,u);for(let C=0;C{const h=Gn(f),g=i.getElement(h);g==null||g.update({d:u3e(this.edgePoints[h])})})},this.bindEvents()}get nodeMap(){const t=this.context.model.getNodeData();return Object.fromEntries(t.map(r=>[Gn(r),T6(Ld(r))]))}divideEdges(t){this.context.model.getEdgeData().forEach(n=>{var i;const a=Gn(n);(i=this.edgePoints)[a]||(i[a]=[]);const o=this.nodeMap[n.source],s=this.nodeMap[n.target];if(t===1)this.edgePoints[a].push(o),this.edgePoints[a].push(o2(cl(o,s),2)),this.edgePoints[a].push(s);else{const u=(this.edgePoints[a].length===0?CA(o,s):z0r(this.edgePoints[a]))/(t+1);let c=u;const A=[o];for(let f=1;fc;){const m=c/p,b=cl(h,Gb(Oc(g,h),m));A.push(b),p-=c,c=u}c-=p}A.push(s),this.edgePoints[a]=A}})}getVectorPosition(t){const r=this.nodeMap[t.source],n=this.nodeMap[t.target],[i,a]=Oc(n,r),o=CA(r,n);return{source:r,target:n,vx:i,vy:a,length:o}}measureEdgeCompatibility(t,r){const n=this.getVectorPosition(t),i=this.getVectorPosition(r),a=H0r(n,i),o=j0r(n,i),s=G0r(n,i),l=$0r(n,i);return a*o*s*l}getEdgeBundles(){const t={},r=this.options.bundleThreshold,n=this.context.model.getEdgeData();return n.forEach((i,a)=>{n.forEach((o,s)=>{var l,u;if(s<=a)return;this.measureEdgeCompatibility(i,o)>=r&&(t[l=Gn(i)]||(t[l]=[]),t[Gn(i)].push(o),t[u=Gn(o)]||(t[u]=[]),t[Gn(o)].push(i))})}),t}getSpringForce(t,r){const{pre:n,cur:i,next:a}=t;return Gb(Oc(cl(n,a),Gb(i,2)),r)}getElectrostaticForce(t,r){Uw(this.edgeBundles)&&(this.edgeBundles=this.getEdgeBundles());const n=this.edgeBundles[Gn(r)];let i=[0,0];return n==null||n.forEach(a=>{const o=this.edgePoints[Gn(a)][t],s=this.edgePoints[Gn(r)][t],l=Oc(o,s),u=CA(o,s);i=cl(i,Gb(l,1/u))}),i}getEdgeForces(t,r,n){const i=this.nodeMap[t.source],a=this.nodeMap[t.target],o=this.options.K/(CA(i,a)*(r+1)),s=[[0,0]],l=Gn(t);for(let u=1;uMath.abs(Vor([e.vx,e.vy],[t.vx,t.vy])/(e.length*t.length)),j0r=(e,t)=>{const r=(e.length+t.length)/2;return 2/(r/Math.min(e.length,t.length)+Math.max(e.length,t.length)/r)},G0r=(e,t)=>{const r=(e.length+t.length)/2,n=o2(cl(e.source,e.target),2),i=o2(cl(t.source,t.target),2);return r/(r+CA(n,i))},YUe=(e,t)=>{if(t.source[0]===t.target[0])return[t.source[0],e[1]];if(t.source[1]===t.target[1])return[e[0],t.source[1]];const r=(t.source[1]-t.target[1])/(t.source[0]-t.target[0]),n=(r*r*t.source[0]+r*(e[1]-t.source[1])+e[0])/(r*r+1),i=r*(n-t.source[0])+t.source[1];return[n,i]},qUe=(e,t)=>{const r=YUe(t.source,e),n=YUe(t.target,e),i=o2(cl(r,n),2),a=o2(cl(e.source,e.target),2);return CA(r,n)===0?0:Math.max(0,1-2*CA(a,i)/CA(r,n))},$0r=(e,t)=>Math.min(qUe(e,t),qUe(t,e)),z0r=e=>{let t=0;for(let r=1;r{if(this.options.trigger==="drag"&&this.isLensOn)return;const i=Yg(n.canvas);this.renderLens(i),this.renderFocusElements()},this.renderLens=n=>{const i=Object.assign({},K0r,this.options.style);this.isLensOn||(this.lens=new $L({style:i}),this.canvas.appendChild(this.lens)),Object.assign(i,$b(n),{size:this.r*2}),this.lens.update(i)},this.getFilterData=()=>{const{filter:n}=this.options,{model:i}=this.context,a=i.getData();if(!n)return a;const{nodes:o,edges:s,combos:l}=a;return{nodes:o.filter(u=>n(Gn(u),"node")),edges:s.filter(u=>n(Gn(u),"edge")),combos:l.filter(u=>n(Gn(u),"combo"))}},this.getFocusElements=n=>{const{nodes:i,edges:a}=this.getFilterData(),o=i.filter(u=>CA(Ld(u),n)Gn(u)),l=a.filter(u=>{const{source:c,target:A}=u,f=s.includes(c),h=s.includes(A);switch(this.options.nodeType){case"both":return f&&h;case"either":return f!==h;case"source":return f&&!h;case"target":return!f&&h;default:return!1}});return{nodes:o,edges:l}},this.renderFocusElements=()=>{const{element:n,graph:i}=this.context;if(!this.isLensOn)return;const a=this.lens.getCenter(),{nodes:o,edges:s}=this.getFocusElements(a),l=new Set,u=c=>{const A=Gn(c);l.add(A);const f=n.getElement(A);if(!f)return;const h=this.shapes.get(A)||f.cloneNode();h.setPosition(f.getPosition()),h.id=f.id,this.shapes.has(A)?Object.entries(f.attributes).forEach(([m,b])=>{h.style[m]!==b&&(h.style[m]=b)}):(this.canvas.appendChild(h),this.shapes.set(A,h));const g=i.getElementType(A),p=this.getElementStyle(g,c);h.update(p)};o.forEach(u),s.forEach(u),this.shapes.forEach((c,A)=>{l.has(A)||(c.destroy(),this.shapes.delete(A))})},this.scaleRByWheel=n=>{var i;this.options.preventDefault&&n.preventDefault();const{clientX:a,clientY:o,deltaX:s,deltaY:l}=n,{graph:u,canvas:c}=this.context,A=u.getCanvasByClient([a,o]),f=(i=this.lens)===null||i===void 0?void 0:i.getCenter();if(!this.isLensOn||CA(A,f)>this.r)return;const{maxR:h,minR:g}=this.options,p=s+l>0?1/(1-JUe):1-JUe,m=Math.min(...c.getSize())/2;this.r=Math.max(g||0,Math.min(h||m,this.r*p)),this.renderLens(f),this.renderFocusElements()},this.isLensDragging=!1,this.onDragStart=n=>{var i;const a=Yg(n.canvas),o=(i=this.lens)===null||i===void 0?void 0:i.getCenter();!this.isLensOn||CA(a,o)>this.r||(this.isLensDragging=!0)},this.onDrag=n=>{if(!this.isLensDragging)return;const i=Yg(n.canvas);this.renderLens(i),this.renderFocusElements()},this.onDragEnd=()=>{this.isLensDragging=!1},this.bindEvents()}get canvas(){return this.context.canvas.getLayer("transient")}get isLensOn(){return this.lens&&!this.lens.destroyed}getElementStyle(t,r){const n=t==="node"?this.options.nodeStyle:this.options.edgeStyle;return typeof n=="function"?n(r):n}get graphDom(){return this.context.graph.getCanvas().getContextService().getDomElement()}bindEvents(){var t;const{graph:r}=this.context,{trigger:n,scaleRBy:i}=this.options,a=r.getCanvas().getLayer();["click","drag"].includes(n)&&a.addEventListener(Ei.CLICK,this.onEdgeFilter),n==="pointermove"?a.addEventListener(Ei.POINTER_MOVE,this.onEdgeFilter):n==="drag"&&(a.addEventListener(Ei.DRAG_START,this.onDragStart),a.addEventListener(Ei.DRAG,this.onDrag),a.addEventListener(Ei.DRAG_END,this.onDragEnd)),i==="wheel"&&((t=this.graphDom)===null||t===void 0||t.addEventListener(Ei.WHEEL,this.scaleRByWheel,{passive:!1}))}unbindEvents(){var t;const{graph:r}=this.context,{trigger:n,scaleRBy:i}=this.options,a=r.getCanvas().getLayer();["click","drag"].includes(n)&&a.removeEventListener(Ei.CLICK,this.onEdgeFilter),n==="pointermove"?a.removeEventListener(Ei.POINTER_MOVE,this.onEdgeFilter):n==="drag"&&(a.removeEventListener(Ei.DRAG_START,this.onDragStart),a.removeEventListener(Ei.DRAG,this.onDrag),a.removeEventListener(Ei.DRAG_END,this.onDragEnd)),i==="wheel"&&((t=this.graphDom)===null||t===void 0||t.removeEventListener(Ei.WHEEL,this.scaleRByWheel))}update(t){var r;this.unbindEvents(),super.update(t),this.r=(r=t.r)!==null&&r!==void 0?r:this.r,this.bindEvents()}destroy(){this.unbindEvents(),this.isLensOn&&this.lens.destroy(),this.shapes.forEach((t,r)=>{t.destroy(),this.shapes.delete(r)}),super.destroy()}}eZ.defaultOptions={trigger:"pointermove",r:60,nodeType:"both",filter:()=>!0,style:{lineWidth:2},nodeStyle:{label:!1},edgeStyle:{label:!0},scaleRBy:"wheel",preventDefault:!0};const V0r={fill:"#ccc",fillOpacity:.1,lineWidth:2,stroke:"#000",strokeOpacity:.8,labelFontSize:12},XUe=.05,ZUe=.1;class tZ extends Ap{constructor(t,r){super(t,Object.assign({},tZ.defaultOptions,r)),this.r=this.options.r,this.d=this.options.d,this.onCreateFisheye=n=>{if(this.options.trigger==="drag"&&this.isLensOn)return;const i=Yg(n.canvas);this.onMagnify(i)},this.onMagnify=n=>{n.some(isNaN)||(this.renderLens(n),this.renderFocusElements())},this.renderLens=n=>{const i=Object.assign({},V0r,this.options.style);this.isLensOn||(this.lens=new $L({style:i}),this.canvas.appendChild(this.lens)),Object.assign(i,$b(n),{size:this.r*2,label:this.options.showDPercent,labelText:this.getDPercent()}),this.lens.update(i)},this.getDPercent=()=>{const{minD:n,maxD:i}=this.options;return`${Math.round((this.d-n)/(i-n)*100)}%`},this.prevMagnifiedStyleMap=new Map,this.prevOriginStyleMap=new Map,this.renderFocusElements=()=>{if(!this.isLensOn)return;const{graph:n}=this.context,i=this.lens.getCenter(),a=(this.d+1)*this.r,o=new Map,s=new Map;n.getNodeData().forEach(u=>{const c=Ld(u),A=CA(c,i);if(A>this.r)return;const f=a*A/(this.d*A+this.r),[h,g]=c,[p,m]=i,b=(h-p)/A,C=(g-m)/A,E=[p+f*b,m+f*C],_=Gn(u),F=this.getNodeStyle(u),M=x6(n.getElementRenderStyle(_),Object.keys(F));o.set(_,Object.assign(Object.assign({},$b(E)),F)),s.set(_,Object.assign(Object.assign({},$b(c)),M))}),this.updateStyle(o,s)},this.getNodeStyle=n=>{const{nodeStyle:i}=this.options;return typeof i=="function"?i(n):i},this.updateStyle=(n,i)=>{const{graph:a,element:o}=this.context,{enter:s,exit:l,keep:u}=t5(Array.from(this.prevMagnifiedStyleMap.keys()),Array.from(n.keys()),f=>f),c=new Set,A=(f,h)=>{const g=o.getElement(f);g==null||g.update(h),a.getRelatedEdgesData(f).forEach(p=>{c.add(Gn(p))})};[...s,...u].forEach(f=>{A(f,n.get(f))}),l.forEach(f=>{A(f,this.prevOriginStyleMap.get(f)),this.prevOriginStyleMap.delete(f)}),c.forEach(f=>{const h=o.getElement(f);h==null||h.update({})}),this.prevMagnifiedStyleMap=n,i.forEach((f,h)=>{this.prevOriginStyleMap.has(h)||this.prevOriginStyleMap.set(h,f)})},this.isWheelValid=n=>{if(this.options.preventDefault&&n.preventDefault(),!this.isLensOn)return!1;const{clientX:i,clientY:a}=n,o=this.context.graph.getCanvasByClient([i,a]),s=this.lens.getCenter();return!(CA(o,s)>this.r)},this.scaleR=n=>{const{maxR:i,minR:a}=this.options,o=n?1/(1-XUe):1-XUe,s=Math.min(...this.context.canvas.getSize())/2;this.r=Math.max(a||0,Math.min(i||s,this.r*o))},this.scaleD=n=>{const{maxD:i,minD:a}=this.options,o=n?this.d+ZUe:this.d-ZUe;this.d=Math.max(a,Math.min(i,o))},this.scaleRByWheel=n=>{if(!this.isWheelValid(n))return;const{deltaX:i,deltaY:a}=n;this.scaleR(i+a>0);const o=this.lens.getCenter();this.onMagnify(o)},this.scaleDByWheel=n=>{if(!this.isWheelValid(n))return;const{deltaX:i,deltaY:a}=n;this.scaleD(i+a>0);const o=this.lens.getCenter();this.onMagnify(o)},this.isDragValid=n=>{if(this.options.preventDefault&&n.preventDefault(),!this.isLensOn)return!1;const i=Yg(n.canvas),a=this.lens.getCenter();return!(CA(i,a)>this.r)},this.isLensDragging=!1,this.onDragStart=n=>{this.isDragValid(n)&&(this.isLensDragging=!0)},this.onDrag=n=>{if(!this.isLensDragging)return;const i=Yg(n.canvas);this.onMagnify(i)},this.onDragEnd=()=>{this.isLensDragging=!1},this.scaleRByDrag=n=>{if(!this.isLensDragging)return;const{dx:i,dy:a}=n;this.scaleR(i-a>0);const o=this.lens.getCenter();this.onMagnify(o)},this.scaleDByDrag=n=>{if(!this.isLensDragging)return;const{dx:i,dy:a}=n;this.scaleD(i-a>0);const o=this.lens.getCenter();this.onMagnify(o)},this.bindEvents()}get canvas(){return this.context.canvas.getLayer("transient")}get isLensOn(){return this.lens&&!this.lens.destroyed}get graphDom(){return this.context.graph.getCanvas().getContextService().getDomElement()}bindEvents(){var t;const{graph:r}=this.context,{trigger:n,scaleRBy:i,scaleDBy:a}=this.options,o=r.getCanvas().getLayer();if(["click","drag"].includes(n)&&o.addEventListener(Ei.CLICK,this.onCreateFisheye),n==="pointermove"&&o.addEventListener(Ei.POINTER_MOVE,this.onCreateFisheye),n==="drag"||i==="drag"||a==="drag"){o.addEventListener(Ei.DRAG_START,this.onDragStart),o.addEventListener(Ei.DRAG_END,this.onDragEnd);const s=n==="drag"?this.onDrag:i==="drag"?this.scaleRByDrag:this.scaleDByDrag;o.addEventListener(Ei.DRAG,s)}if(i==="wheel"||a==="wheel"){const s=i==="wheel"?this.scaleRByWheel:this.scaleDByWheel;(t=this.graphDom)===null||t===void 0||t.addEventListener(Ei.WHEEL,s,{passive:!1})}}unbindEvents(){var t;const{graph:r}=this.context,{trigger:n,scaleRBy:i,scaleDBy:a}=this.options,o=r.getCanvas().getLayer();if(["click","drag"].includes(n)&&o.removeEventListener(Ei.CLICK,this.onCreateFisheye),n==="pointermove"&&o.removeEventListener(Ei.POINTER_MOVE,this.onCreateFisheye),n==="drag"||i==="drag"||a==="drag"){o.removeEventListener(Ei.DRAG_START,this.onDragStart),o.removeEventListener(Ei.DRAG_END,this.onDragEnd);const s=n==="drag"?this.onDrag:i==="drag"?this.scaleRByDrag:this.scaleDByDrag;o.removeEventListener(Ei.DRAG,s)}if(i==="wheel"||a==="wheel"){const s=i==="wheel"?this.scaleRByWheel:this.scaleDByWheel;(t=this.graphDom)===null||t===void 0||t.removeEventListener(Ei.WHEEL,s)}}update(t){var r,n;this.unbindEvents(),super.update(t),this.r=(r=t.r)!==null&&r!==void 0?r:this.r,this.d=(n=t.d)!==null&&n!==void 0?n:this.d,this.bindEvents()}destroy(){var t;this.unbindEvents(),this.isLensOn&&((t=this.lens)===null||t===void 0||t.destroy()),this.prevMagnifiedStyleMap.clear(),this.prevOriginStyleMap.clear(),super.destroy()}}tZ.defaultOptions={trigger:"pointermove",r:120,d:1.5,maxD:5,minD:0,showDPercent:!0,style:{},nodeStyle:{label:!0},preventDefault:!0};class rZ extends Ap{constructor(t,r){super(t,Object.assign({},rZ.defaultOptions,r)),this.$el=this.context.canvas.getContainer(),this.graphSize=[0,0],this.onFullscreenChange=()=>{var n,i,a,o;const s=!!document.fullscreenElement;this.options.autoFit&&this.setGraphSize(s),s?(i=(n=this.options).onEnter)===null||i===void 0||i.call(n):(o=(a=this.options).onExit)===null||o===void 0||o.call(a)},this.shortcut=new q7(t.graph),this.bindEvents(),this.style=document.createElement("style"),document.head.appendChild(this.style),this.style.innerHTML=` :not(:root):fullscreen::backdrop { background: transparent; } `}bindEvents(){this.unbindEvents(),this.shortcut.unbindAll();const{request:t=[],exit:r=[]}=this.options.trigger;this.shortcut.bind(t,this.request),this.shortcut.bind(r,this.exit),["webkitfullscreenchange","mozfullscreenchange","fullscreenchange","MSFullscreenChange"].forEach(i=>{document.addEventListener(i,this.onFullscreenChange,!1)})}unbindEvents(){this.shortcut.unbindAll(),["webkitfullscreenchange","mozfullscreenchange","fullscreenchange","MSFullscreenChange"].forEach(r=>{document.removeEventListener(r,this.onFullscreenChange,!1)})}setGraphSize(t=!0){var r,n;let i,a;t?(i=((r=globalThis.screen)===null||r===void 0?void 0:r.width)||0,a=((n=globalThis.screen)===null||n===void 0?void 0:n.height)||0,this.graphSize=this.context.graph.getSize()):[i,a]=this.graphSize,this.context.graph.setSize(i,a),this.context.graph.render()}request(){document.fullscreenElement||!W0r()||this.$el.requestFullscreen().catch(t=>{DC.warn(`Error attempting to enable full-screen: ${t.message} (${t.name})`)})}exit(){document.fullscreenElement&&document.exitFullscreen()}update(t){this.unbindEvents(),super.update(t),this.bindEvents()}destroy(){this.exit(),this.style.remove(),super.destroy()}}rZ.defaultOptions={trigger:{},autoFit:!0};function W0r(){return document.fullscreenEnabled||Reflect.get(document,"webkitFullscreenEnabled")||Reflect.get(document,"mozFullscreenEnabled")||Reflect.get(document,"msFullscreenEnabled")}class nZ extends Ap{constructor(t,r){super(t,Object.assign({},nZ.defaultOptions,r)),this.$element=aT("grid-line",!0),this.offset=[0,0],this.currentScale=1,this.followZoom=i=>{const{data:{scale:a,origin:o}}=i;if(!a)return;const s=this.currentScale;this.currentScale=a;const l=a/s,u=Gb(o||this.context.graph.getCanvasCenter(),1-l),c=this.baseSize*a,A=Gb(this.offset,l),f=ase(A,c),h=cl(f,u);this.$element.style.backgroundSize=`${c}px ${c}px`,this.$element.style.backgroundPosition=`${h[0]}px ${h[1]}px`,this.offset=ase(h,c)},this.followTranslate=i=>{if(!this.options.follow)return;const{data:{translate:a}}=i;a&&this.updateOffset(a)},this.onTransform=i=>{const a=this.parseFollow(this.options.follow);a.zoom&&this.followZoom(i),a.translate&&this.followTranslate(i)},this.context.canvas.getContainer().prepend(this.$element),this.baseSize=this.options.size,this.updateStyle(),this.bindEvents()}update(t){super.update(t),t.size!==void 0&&(this.baseSize=t.size),this.updateStyle()}bindEvents(){const{graph:t}=this.context;t.on(Ta.AFTER_TRANSFORM,this.onTransform)}updateStyle(){const{stroke:t,lineWidth:r,border:n,borderLineWidth:i,borderStroke:a,borderStyle:o}=this.options,s=this.baseSize*this.currentScale;Object.assign(this.$element.style,{border:n?`${i}px ${o} ${a}`:"none",backgroundImage:`linear-gradient(${t} ${r}px, transparent ${r}px), linear-gradient(90deg, ${t} ${r}px, transparent ${r}px)`,backgroundSize:`${s}px ${s}px`,backgroundRepeat:"repeat"})}updateOffset(t){const r=this.baseSize*this.currentScale;this.offset=ase(cl(this.offset,t),r),this.$element.style.backgroundPosition=`${this.offset[0]}px ${this.offset[1]}px`}parseFollow(t){var r,n;return eN(t)?{translate:t,zoom:t}:{translate:(r=t==null?void 0:t.translate)!==null&&r!==void 0?r:!1,zoom:(n=t==null?void 0:t.zoom)!==null&&n!==void 0?n:!1}}destroy(){this.context.graph.off(Ta.AFTER_TRANSFORM,this.onTransform),this.$element.remove(),super.destroy()}}nZ.defaultOptions={border:!0,borderLineWidth:1,borderStroke:"#eee",borderStyle:"solid",lineWidth:1,size:20,stroke:"#eee"};function P3e(e){const t={Added:new Map,Updated:new Map,Removed:new Map};return e.forEach(r=>{const{type:n,value:i}=r,a=Gn(i);if(n==="NodeAdded"||n==="EdgeAdded"||n==="ComboAdded")t.Added.set(a,r);else if(n==="NodeUpdated"||n==="EdgeUpdated"||n==="ComboUpdated")if(t.Added.has(a))t.Added.set(a,{type:n.replace("Updated","Added"),value:i});else if(t.Updated.has(a)){const{original:o}=t.Updated.get(a);t.Updated.set(a,{type:n,value:i,original:o})}else t.Removed.has(a)||t.Updated.set(a,r);else(n==="NodeRemoved"||n==="EdgeRemoved"||n==="ComboRemoved")&&(t.Added.has(a)?t.Added.delete(a):(t.Updated.has(a)&&t.Updated.delete(a),t.Removed.set(a,r)))}),[...Array.from(t.Added.values()),...Array.from(t.Updated.values()),...Array.from(t.Removed.values())]}function Xgt(e){const{NodeAdded:t=[],NodeUpdated:r=[],NodeRemoved:n=[],EdgeAdded:i=[],EdgeUpdated:a=[],EdgeRemoved:o=[],ComboAdded:s=[],ComboUpdated:l=[],ComboRemoved:u=[]}=JJ(e,c=>c.type);return{add:{nodes:t,edges:i,combos:s},update:{nodes:r,edges:a,combos:l},remove:{nodes:n,edges:o,combos:u}}}function Zgt(e,t){for(const r in e)Bh(e[r])&&!Array.isArray(e[r])&&e[r]!==null?(t[r]||(t[r]={}),Zgt(e[r],t[r])):t[r]===void 0&&(t[r]=oN(r))}function Y0r(e,t=!1,r){const n={animation:t,current:{add:{},update:{},remove:{}},original:{add:{},update:{},remove:{}}},{add:i,update:a,remove:o}=Xgt(P3e(e));return["nodes","edges","combos"].forEach(s=>{a[s]&&a[s].forEach(l=>{var u,c;const A=Object.assign({},l.value);let f=Object.assign({},l.original);if(r){const h=r.graph.getElementType(Gn(l.original)),g=h==="edge"?"stroke":"fill",p=r.element.getElementComputedStyle(h,l.original);f=Object.assign(Object.assign({},l.original),{style:Object.assign({[g]:p[g]},l.original.style)})}Zgt(A,f),(u=n.current.update)[s]||(u[s]=[]),n.current.update[s].push(A),(c=n.original.update)[s]||(c[s]=[]),n.original.update[s].push(f)}),i[s]&&i[s].forEach(l=>{var u,c;const A=Object.assign({},l.value);(u=n.current.add)[s]||(u[s]=[]),n.current.add[s].push(A),(c=n.original.remove)[s]||(c[s]=[]),n.original.remove[s].push(A)}),o[s]&&o[s].forEach(l=>{var u,c;const A=Object.assign({},l.value);(u=n.current.remove)[s]||(u[s]=[]),n.current.remove[s].push(A),(c=n.original.add)[s]||(c[s]=[]),n.original.add[s].push(A)})}),n}class iZ extends Ap{constructor(t,r){super(t,Object.assign({},iZ.defaultOptions,r)),this.batchChanges=null,this.batchAnimation=!1,this.undoStack=[],this.redoStack=[],this.freezed=!1,this.executeCommand=(i,a=!0)=>{var o,s,l;this.freezed=!0,(s=(o=this.options).executeCommand)===null||s===void 0||s.call(o,i);const u=a?i.original:i.current;this.context.graph.addData(u.add),this.context.graph.updateData(u.update),this.context.graph.removeData(cht(u.remove,!1)),(l=this.context.element)===null||l===void 0||l.draw({silence:!0,animation:i.animation}),this.freezed=!1},this.addCommand=i=>{var a;if(!this.freezed){if(i.type===Ta.AFTER_DRAW){const{dataChanges:o=[],animation:s=!0}=i.data;if(!((a=this.context.batch)===null||a===void 0)&&a.isBatching){if(!this.batchChanges)return;this.batchChanges.push(o),this.batchAnimation&&(this.batchAnimation=s);return}this.batchChanges=[o],this.batchAnimation=s}this.undoStackPush(Y0r(this.batchChanges.flat(),this.batchAnimation,this.context)),this.notify(c3.ADD,this.undoStack[this.undoStack.length-1])}},this.initBatchCommand=i=>{const{initiate:a}=i.data;this.batchAnimation=!1,a?this.batchChanges=[]:this.undoStack.pop()||(this.batchChanges=null)},this.emitter=new vX;const{graph:n}=this.context;n.on(Ta.AFTER_DRAW,this.addCommand),n.on(Ta.BATCH_START,this.initBatchCommand),n.on(Ta.BATCH_END,this.addCommand)}canUndo(){return this.undoStack.length>0}canRedo(){return this.redoStack.length>0}undo(){var t,r,n,i;const a=this.undoStack.pop();if(a){if(this.executeCommand(a),((r=(t=this.options).beforeAddCommand)===null||r===void 0?void 0:r.call(t,a,!1))===!1)return;this.redoStack.push(a),(i=(n=this.options).afterAddCommand)===null||i===void 0||i.call(n,a,!1),this.notify(c3.UNDO,a)}return this}redo(){const t=this.redoStack.pop();return t&&(this.executeCommand(t,!1),this.undoStackPush(t),this.notify(c3.REDO,t)),this}undoAndCancel(){const t=this.undoStack.pop();return t&&(this.executeCommand(t,!1),this.redoStack=[],this.notify(c3.CANCEL,t)),this}undoStackPush(t){var r,n,i,a;const{stackSize:o}=this.options;o!==0&&this.undoStack.length>=o&&this.undoStack.shift(),((n=(r=this.options).beforeAddCommand)===null||n===void 0?void 0:n.call(r,t,!0))!==!1&&(this.undoStack.push(t),(a=(i=this.options).afterAddCommand)===null||a===void 0||a.call(i,t,!0))}clear(){this.undoStack=[],this.redoStack=[],this.batchChanges=null,this.batchAnimation=!1,this.notify(c3.CLEAR,null)}notify(t,r){this.emitter.emit(t,{cmd:r}),this.emitter.emit(c3.CHANGE,{cmd:r})}on(t,r){this.emitter.on(t,r)}destroy(){const{graph:t}=this.context;t.off(Ta.AFTER_DRAW,this.addCommand),t.off(Ta.BATCH_START,this.initBatchCommand),t.off(Ta.BATCH_END,this.addCommand),this.emitter.off(),super.destroy(),this.undoStack=[],this.redoStack=[]}}iZ.defaultOptions={stackSize:0};const rhe={toXy(e,t){if(!t)return[...e];const r=t[0].slice(1),n=t[1].slice(1);return e.map(i=>[i[r],i[n]])},fromXy(e,t){if(!t)return[...e];const r=t[0].slice(1),n=t[1].slice(1);return e.map(([i,a])=>({[r]:i,[n]:a}))}};let q0r=class{constructor(t,r){this._cells=[],this._cellSize=r,this._reverseCellSize=1/r;for(const n of t){const i=this.coordToCellNum(n[0]),a=this.coordToCellNum(n[1]);this._cells[i]||(this._cells[i]=[]),this._cells[i][a]||(this._cells[i][a]=[]),this._cells[i][a].push(n)}}cellPoints(t,r){var n;return((n=this._cells[t])===null||n===void 0?void 0:n[r])||[]}rangePoints(t){const r=this.coordToCellNum(t[0]),n=this.coordToCellNum(t[1]),i=this.coordToCellNum(t[2]),a=this.coordToCellNum(t[3]),o=[];for(let s=r;s<=i;s++)for(let l=n;l<=a;l++){const u=this.cellPoints(s,l);for(const c of u)o.push(c)}return o}removePoint(t){const r=this.coordToCellNum(t[0]),n=this.coordToCellNum(t[1]),i=this._cells[r][n],a=i.findIndex(([o,s])=>o===t[0]&&s===t[1]);return a>-1&&i.splice(a,1),i}trunc(t){return Math.trunc(t)}coordToCellNum(t){return this.trunc(t*this._reverseCellSize)}extendBbox(t,r){return[t[0]-r*this._cellSize,t[1]-r*this._cellSize,t[2]+r*this._cellSize,t[3]+r*this._cellSize]}};function J0r(e,t){return new q0r(e,t)}const eHe=+(Math.pow(2,27)+1);function KK(e,t,r){const n=e*t,i=eHe*e,a=i-e,o=i-a,s=e-o,l=eHe*t,u=l-t,c=l-u,A=t-c,g=n-o*c-s*c-o*A,p=s*A-g;return r?(r[0]=p,r[1]=n,r):[p,n]}function X0r(e,t,r){const n=e+t,i=n-e,a=n-i,o=t-i,s=e-a;return r[0]=s+o,r[1]=n,r}function Z0r(e,t){const r=e.length;if(r===1){const s=KK(e[0],t);return s[0]?s:[s[1]]}const n=new Array(2*r),i=[.1,.1],a=[.1,.1];let o=0;KK(e[0],t,i),i[0]&&(n[o++]=i[0]);for(let s=1;s=n?(g=c,s+=1,s=n?(g=c,s+=1,s0){if(a<=0)return o;s=i+a}else if(i<0){if(a>=0)return o;s=-(i+a)}else return o;const l=ivr*s;return o>=l||o<=-l?o:uvr(t,r,n)},function(t,r,n,i){const a=t[0]-i[0],o=r[0]-i[0],s=n[0]-i[0],l=t[1]-i[1],u=r[1]-i[1],c=n[1]-i[1],A=t[2]-i[2],f=r[2]-i[2],h=n[2]-i[2],g=o*c,p=s*u,m=s*l,b=a*c,C=a*u,E=o*l,_=A*(g-p)+f*(m-b)+h*(C-E),F=(Math.abs(g)+Math.abs(p))*Math.abs(A)+(Math.abs(m)+Math.abs(b))*Math.abs(f)+(Math.abs(C)+Math.abs(E))*Math.abs(h),M=avr*F;return _>M||-_>M?_:cvr(t,r,n,i)}];function Avr(e){let t=fk[e.length];return t||(t=fk[e.length]=aZ(e.length)),t.apply(void 0,...e)}function fvr(e,t,r,n,i,a,o){return function(...l){switch(l.length){case 0:case 1:return 0;case 2:return n(l[0],l[1]);case 3:return i(l[0],l[1],l[2]);case 4:return a(l[0],l[1],l[2],l[3]);case 5:return o(l[0],l[1],l[2],l[3],l[4])}return e(l)}}function hvr(){for(;fk.length<=tHe;)fk.push(aZ(fk.length));const e=fvr(void 0,Avr,...fk);for(let t=0;t<=tHe;++t)e[t]=fk[t];return e}const eM=hvr(),rHe=eM[3];function dvr(e){const t=e.length;if(t<3){const s=new Array(t);for(let l=0;l{const u=e[s][0]-e[l][0];return u||e[s][1]-e[l][1]});const n=[r[0],r[1]],i=[r[0],r[1]];for(let s=2;s1&&rHe(e[n[c-2]],e[n[c-1]],u)<=0;)c-=1,n.pop();for(n.push(l),c=i.length;c>1&&rHe(e[i[c-2]],e[i[c-1]],u)>=0;)c-=1,i.pop();i.push(l)}const a=new Array(i.length+n.length-2);let o=0;for(let s=0,l=n.length;s0;--s)a[o++]=i[s];return a}function gvr(e,t,r,n){for(let i=0;i<2;++i){const a=e[i],o=t[i],[s,l]=[Math.min(a,o),Math.max(a,o)],u=r[i],c=n[i],[A,f]=[Math.min(u,c),Math.max(u,c)];if(f0&&a>0||i<0&&a<0)return!1;const o=eM(r,e,t),s=eM(n,e,t);return o>0&&s>0||o<0&&s<0?!1:i===0&&a===0&&o===0&&s===0?gvr(e,t,r,n):!0}function vvr(e){const t=[e[0]];let r=e[0];for(let n=1;n=0;a--)e[a][0]n&&(n=e[a][0]),e[a][1]>i&&(i=e[a][1]);return[n-t,i-r]}function bvr(e){return[Math.min(e[0][0],e[1][0]),Math.min(e[0][1],e[1][1]),Math.max(e[0][0],e[1][0]),Math.max(e[0][1],e[1][1])]}function wvr(e,t,r){let n=null,i=aHe,a=aHe,o,s;for(let l=0;li&&s>a&&!iHe([e[0],t[l]],r)&&!iHe([e[1],t[l]],r)&&(i=o,a=s,n=t[l]);return n}function ept(e,t,r,n,i){let a=!1;for(let o=0;oA||r[1]>f));A>=r[0]&&f>=r[1]&&i.add(l),h!==null&&(e.splice(o+1,0,h),n.removePoint(h),a=!0)}return a?ept(e,t,r,n,i):e}function Cvr(e,t,r){const n=t||20,i=vvr(mvr(rhe.toXy(e,r)));if(i.length<4){const A=i.concat([i[0]]);return r?rhe.fromXy(A,r):A}const a=yvr(i),o=[a[0]*oHe,a[1]*oHe],s=dvr(i).reverse().map(A=>i[A]);s.push(s[0]);const l=i.filter(function(A){return s.indexOf(A)<0}),u=Math.ceil(1/(i.length/(a[0]*a[1]))),c=ept(s,Math.pow(n,2),o,J0r(l,u),new Set);return r?rhe.fromXy(c,r):c}const aHe=Math.cos(90/(180/Math.PI)),oHe=.6;function Ivr(e,t,r){if(e.length===1)return Evr(e[0],t,r);if(e.length===2)return sHe(e,t,r);if(e.length===3){const[n,i,a]=n3e(e);if(vht(n,i,a))return sHe([n,a],t,r)}switch(r){case"smooth":return xvr(e,t);case"sharp":return Svr(e,t);case"rounded":default:return Bvr(e,t)}}const Evr=(e,t,r)=>{if(r==="sharp")return[["M",e[0]-t,e[1]-t],["L",e[0]+t,e[1]-t],["L",e[0]+t,e[1]+t],["L",e[0]-t,e[1]+t],["Z"]];const n=[t,t,0,0,0];return[["M",e[0],e[1]-t],["A",...n,e[0],e[1]+t],["A",...n,e[0],e[1]-t]]},sHe=(e,t,r)=>{const n=[t,t,0,0,0],i=r==="sharp"?cl(e[0],_3(OE(Oc(e[0],e[1])),t)):e[0],a=r==="sharp"?cl(e[1],_3(OE(Oc(e[1],e[0])),t)):e[1],o=_3(OE(iX(Oc(i,a),!1)),t),s=_3(o,-1),l=cl(i,o),u=cl(a,o),c=cl(a,s),A=cl(i,s);return r==="sharp"?[["M",l[0],l[1]],["L",u[0],u[1]],["L",c[0],c[1]],["L",A[0],A[1]],["Z"]]:[["M",l[0],l[1]],["L",u[0],u[1]],["A",...n,c[0],c[1]],["L",A[0],A[1]],["A",...n,l[0],l[1]]]},Bvr=(e,t)=>{const r=n3e(e).map((s,l)=>{const u=(l-2+e.length)%e.length,c=(l-1+e.length)%e.length,A=(l+1)%e.length,f=e[u],h=e[c],g=e[A],p=Oc(f,h),m=Oc(h,s),b=Oc(s,g),C=(N,P)=>t3e(N,P,!0)_3(OE(iX(N,!1)),t),M=F(m);return[{p:T6(E?cl(h,F(p)):cl(h,M)),concave:E&&h},{p:T6(_?cl(s,F(b)):cl(s,M)),concave:_&&s}]}),n=[t,t,0,0,0],i=r.findIndex((s,l)=>!r[(l-1+r.length)%r.length][0].concave&&!r[(l-1+r.length)%r.length][1].concave&&!s[0].concave&&!s[0].concave&&!s[1].concave),a=r.slice(i).concat(r.slice(0,i));let o=[];return a.flatMap((s,l)=>{const u=[],c=a[r.length-1];return l===0&&u.push(["M",...c[1].p]),s[0].concave?o.push(s[0].p,s[1].p):u.push(["A",...n,...s[0].p]),s[1].concave?o.unshift(s[1].p):u.push(["L",...s[1].p]),o.length===3&&(u.pop(),u.push(["C",...o.flat()]),o=[]),u})},xvr=(e,t)=>{const r=n3e(e).map((n,i)=>{const a=e[(i+1)%e.length];return{p:n,v:OE(Oc(a,n))}});return r.forEach((n,i)=>{const a=i>0?i-1:e.length-1,o=r[a].v,s=OE(cl(o,_3(n.v,t3e(o,n.v,!0)n.p))},Svr=(e,t)=>{const n=e.map((a,o)=>{const s=e[o===0?e.length-1:o-1],l=sN(_3(OE(iX(Oc(s,a),!1)),t));return[cl(s,l),cl(a,l)]}).flat();return n.map((a,o)=>{if(o%2===0)return null;const s=[n[(o-1)%n.length],n[o%n.length]],l=[n[(o+1)%n.length],n[(o+2)%n.length]];return r3e(s,l,!0)}).filter(Boolean).map((a,o)=>[o===0?"M":"L",a[0],a[1]]).concat([["Z"]])};var kvr=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{if(!this.shape)this.shape=new GL({style:this.getHullStyle()}),this.context.canvas.appendChild(this.shape);else{const n=!Qf(this.optionsCache,this.options);this.shape.update(this.getHullStyle(n))}this.optionsCache=Object.assign({},this.options)},this.updateHullPath=n=>{this.shape&&this.options.members.includes(Gn(n.data))&&this.shape.update({d:this.getHullPath(!0)})},this.getHullPath=(n=!1)=>{const{graph:i}=this.context,a=this.getMember();if(a.length===0)return"";const o=a.map(u=>i.getNodeData(u)),s=Cvr(o.map(Ld),this.options.concavity).slice(1).reverse(),l=s.flatMap(u=>o.filter(c=>Qf(Ld(c),u)).map(Gn));return Qf(l,this.hullMemberIds)&&!n?this.path:(this.hullMemberIds=l,this.path=Ivr(s,this.getPadding(),this.options.corner),this.path)},this.bindEvents()}bindEvents(){this.context.graph.on(Ta.AFTER_RENDER,this.drawHull),this.context.graph.on(Ta.AFTER_ELEMENT_UPDATE,this.updateHullPath)}unbindEvents(){this.context.graph.off(Ta.AFTER_RENDER,this.drawHull),this.context.graph.off(Ta.AFTER_ELEMENT_UPDATE,this.updateHullPath)}getHullStyle(t){const r=this.options,n=kvr(r,["members","padding","corner"]);return Object.assign(Object.assign({},n),{d:this.getHullPath(t)})}getPadding(){const{graph:t}=this.context;return this.hullMemberIds.reduce((n,i)=>{const{halfExtents:a}=t.getElementRenderBounds(i),o=Math.max(a[0],a[1]);return Math.max(n,o)},0)+this.options.padding}addMember(t){const r=Array.isArray(t)?t:[t];this.options.members=[...new Set([...this.options.members,...r])],this.shape.update({d:this.getHullPath()})}removeMember(t){const r=Array.isArray(t)?t:[t];this.options.members=this.options.members.filter(n=>!r.includes(n)),r.some(n=>this.hullMemberIds.includes(n))&&this.shape.update({d:this.getHullPath()})}updateMember(t){this.options.members=xo(t)?t(this.options.members):t,this.shape.update(this.getHullStyle(!0))}getMember(){return this.options.members}destroy(){this.unbindEvents(),this.shape.destroy(),this.hullMemberIds=[],super.destroy()}}oZ.defaultOptions={members:[],padding:10,corner:"rounded",concavity:1/0,fill:"lightblue",fillOpacity:.2,labelOpacity:1,stroke:"blue",strokeOpacity:.2};function tpt(e,t){t(e),e.children&&e.children.forEach(function(r){r&&tpt(r,t)})}function eP(e){sZ(e,!0)}function zb(e){sZ(e,!1)}function sZ(e,t){var r=t?"visible":"hidden";tpt(e,function(n){n.attr("visibility",r)})}var Qvr=function(e){_l(t,e);function t(){for(var r=[],n=0;n=this.left&&t<=this.right&&r>=this.top&&r<=this.bottom},e}();function h1(e,t){return xo(e)?e.apply(void 0,Do([],Zr(t),!1)):e}var p2=function(e,t){var r=function(i){return"".concat(t,"-").concat(i)},n=Object.fromEntries(Object.entries(e).map(function(i){var a=Zr(i,2),o=a[0],s=a[1],l=r(s);return[o,{name:l,class:".".concat(l),id:"#".concat(l),toString:function(){return l}}]}));return Object.assign(n,{prefix:r}),n},Tvr=5,ipt=function(e,t,r,n){r===void 0&&(r=0),n===void 0&&(n=Tvr),Object.entries(t).forEach(function(i){var a=Zr(i,2),o=a[0],s=a[1],l=e;Object.prototype.hasOwnProperty.call(t,o)&&(s?r7(s)?(r7(e[o])||(l[o]={}),rt&&e="A"&&r<="Z"};function ul(e,t,r){r===void 0&&(r=!1);var n={};return Object.entries(e).forEach(function(i){var a=Zr(i,2),o=a[0],s=a[1];if(!(o==="className"||o==="class")){if(l$(o,"show")&&l$(hHe(o,"show"),t)!==r)o===Zvr(t,"show")?n[o]=s:n[o.replace(new RegExp(G3e(t)),"")]=s;else if(!l$(o,"show")&&l$(o,t)!==r){var l=hHe(o,t);l==="filter"&&typeof s=="function"||(n[l]=s)}}}),n}function L8(e,t){return Object.entries(e).reduce(function(r,n){var i=Zr(n,2),a=i[0],o=i[1];return a.startsWith("show")?r["show".concat(t).concat(a.slice(4))]=o:r["".concat(t).concat(G3e(a))]=o,r},{})}function nB(e,t){t===void 0&&(t=["x","y","class","className"]);var r=["transform","transformOrigin","anchor","visibility","pointerEvents","zIndex","cursor","clipPath","clipPathTargets","offsetPath","offsetPathTargets","offsetDistance","draggable","droppable"],n={},i={};return Object.entries(e).forEach(function(a){var o=Zr(a,2),s=o[0],l=o[1];t.includes(s)||(r.indexOf(s)!==-1?i[s]=l:n[s]=l)}),[n,i]}function Ov(e,t){var r={YYYY:e.getFullYear(),MM:e.getMonth()+1,DD:e.getDate(),HH:e.getHours(),mm:e.getMinutes(),ss:e.getSeconds()},n=t;return Object.keys(r).forEach(function(i){var a=r[i];n=n.replace(i,i==="YYYY"?"".concat(a):"".concat(a).padStart(2,"0"))}),n}function tmr(e,t,r){var n=e.getBBox(),i=n.width,a=n.height,o=Zr([t,r].map(function(u,c){var A;return u.includes("%")?parseFloat(((A=u.match(/[+-]?([0-9]*[.])?[0-9]+/))===null||A===void 0?void 0:A[0])||"0")/100*(c===0?i:a):u}),2),s=o[0],l=o[1];return[s,l]}function upt(e,t){if(t)try{var r=/translate\(([+-]*[\d]+[%]*),[ ]*([+-]*[\d]+[%]*)\)/g,n=t.replace(r,function(i,a,o){return"translate(".concat(tmr(e,a,o),")")});e.attr("transform",n)}catch{}}function rmr(e){var t;return((t=e[0])===null||t===void 0?void 0:t.map(function(r,n){return e.map(function(i){return i[n]})}))||[]}var dHe=function(e,t){if(t==null){e.innerHTML="";return}e.replaceChildren?Array.isArray(t)?e.replaceChildren.apply(e,Do([],Zr(t),!1)):e.replaceChildren(t):(e.innerHTML="",Array.isArray(t)?t.forEach(function(r){return e.appendChild(r)}):e.appendChild(t))};function nmr(){sZ(this,this.attributes.visibility!=="hidden")}var _f=function(e){_l(t,e);function t(r,n){n===void 0&&(n={});var i=e.call(this,Ad({},{style:n},r))||this;return i.initialized=!1,i._defaultOptions=n,i}return Object.defineProperty(t.prototype,"offscreenGroup",{get:function(){return this._offscreen||(this._offscreen=rpt(this)),this._offscreen},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"defaultOptions",{get:function(){return this._defaultOptions},enumerable:!1,configurable:!0}),t.prototype.connectedCallback=function(){this.render(this.attributes,this),this.bindEvents(this.attributes,this),this.initialized=!0},t.prototype.disconnectedCallback=function(){var r;(r=this._offscreen)===null||r===void 0||r.destroy()},t.prototype.attributeChangedCallback=function(r){r==="visibility"&&nmr.call(this)},t.prototype.update=function(r,n){var i;return this.attr(Ad({},this.attributes,r||{})),(i=this.render)===null||i===void 0?void 0:i.call(this,this.attributes,this,n)},t.prototype.clear=function(){this.removeChildren()},t.prototype.bindEvents=function(r,n){},t.prototype.getSubShapeStyle=function(r){r.x,r.y,r.transform,r.transformOrigin,r.class,r.className,r.zIndex;var n=lf(r,["x","y","transform","transformOrigin","class","className","zIndex"]);return n},t}(Kxe),cpt=function(e,t,r){return[["M",e-r,t],["A",r,r,0,1,0,e+r,t],["A",r,r,0,1,0,e-r,t],["Z"]]},imr=cpt,amr=function(e,t,r){return[["M",e-r,t-r],["L",e+r,t-r],["L",e+r,t+r],["L",e-r,t+r],["Z"]]},omr=function(e,t,r){return[["M",e-r,t],["L",e,t-r],["L",e+r,t],["L",e,t+r],["Z"]]},smr=function(e,t,r){var n=r*Math.sin(.3333333333333333*Math.PI);return[["M",e-r,t+n],["L",e,t-n],["L",e+r,t+n],["Z"]]},lmr=function(e,t,r){var n=r*Math.sin(.3333333333333333*Math.PI);return[["M",e-r,t-n],["L",e+r,t-n],["L",e,t+n],["Z"]]},umr=function(e,t,r){var n=r/2*Math.sqrt(3);return[["M",e,t-r],["L",e+n,t-r/2],["L",e+n,t+r/2],["L",e,t+r],["L",e-n,t+r/2],["L",e-n,t-r/2],["Z"]]},cmr=function(e,t,r){var n=r-1.5;return[["M",e-r,t-n],["L",e+r,t+n],["L",e+r,t-n],["L",e-r,t+n],["Z"]]},Apt=function(e,t,r){return[["M",e,t+r],["L",e,t-r]]},Amr=function(e,t,r){return[["M",e-r,t-r],["L",e+r,t+r],["M",e+r,t-r],["L",e-r,t+r]]},fmr=function(e,t,r){return[["M",e-r/2,t-r],["L",e+r/2,t-r],["M",e,t-r],["L",e,t+r],["M",e-r/2,t+r],["L",e+r/2,t+r]]},hmr=function(e,t,r){return[["M",e-r,t],["L",e+r,t],["M",e,t-r],["L",e,t+r]]},dmr=function(e,t,r){return[["M",e-r,t],["L",e+r,t]]},fpt=function(e,t,r){return[["M",e-r,t],["L",e+r,t]]},gmr=fpt,pmr=function(e,t,r){return[["M",e-r,t],["A",r/2,r/2,0,1,1,e,t],["A",r/2,r/2,0,1,0,e+r,t]]},vmr=function(e,t,r){return[["M",e-r-1,t-2.5],["L",e,t-2.5],["L",e,t+2.5],["L",e+r+1,t+2.5]]},mmr=function(e,t,r){return[["M",e-r-1,t+2.5],["L",e,t+2.5],["L",e,t-2.5],["L",e+r+1,t-2.5]]},ymr=function(e,t,r){return[["M",e-(r+1),t+2.5],["L",e-r/2,t+2.5],["L",e-r/2,t-2.5],["L",e+r/2,t-2.5],["L",e+r/2,t+2.5],["L",e+r+1,t+2.5]]};function bmr(e,t){return[["M",e-5,t+2.5],["L",e-5,t],["L",e,t],["L",e,t-3],["L",e,t+3],["L",e+6.5,t+3]]}var wmr=function(e,t,r){return[["M",e-r,t-r],["L",e+r,t],["L",e-r,t+r],["Z"]]};function Cmr(e){var t="default";if(Bh(e)&&e instanceof Image)t="image";else if(xo(e))t="symbol";else if(_u(e)){var r=new RegExp("data:(image|text)");e.match(r)?t="base64":/^(https?:\/\/(([a-zA-Z0-9]+-?)+[a-zA-Z0-9]+\.)+[a-zA-Z]+)(:\d+)?(\/.*)?(\?.*)?(#.*)?$/.test(e)?t="url":t="symbol"}return t}function Imr(e){var t=Cmr(e);return["base64","url","image"].includes(t)?"image":e&&t==="symbol"?"path":null}var Kc=function(e){_l(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n){var i=r.x,a=i===void 0?0:i,o=r.y,s=o===void 0?0:o,l=this.getSubShapeStyle(r),u=l.symbol,c=l.size,A=c===void 0?16:c,f=lf(l,["symbol","size"]),h=Imr(u);o1(!!h,So(n),function(g){g.maybeAppendByClassName("marker",h).attr("className","marker ".concat(h,"-marker")).call(function(p){if(h==="image"){var m=A*2;p.styles({img:u,width:m,height:m,x:a-A,y:s-A})}else{var m=A/2,b=xo(u)?u:t.getSymbol(u);p.styles(qi({d:b==null?void 0:b(a,s,m)},f))}})})},t.MARKER_SYMBOL_MAP=new Map,t.registerSymbol=function(r,n){t.MARKER_SYMBOL_MAP.set(r,n)},t.getSymbol=function(r){return t.MARKER_SYMBOL_MAP.get(r)},t.getSymbols=function(){return Array.from(t.MARKER_SYMBOL_MAP.keys())},t}(_f);Kc.registerSymbol("cross",Amr);Kc.registerSymbol("hyphen",dmr);Kc.registerSymbol("line",Apt);Kc.registerSymbol("plus",hmr);Kc.registerSymbol("tick",fmr);Kc.registerSymbol("circle",cpt);Kc.registerSymbol("point",imr);Kc.registerSymbol("bowtie",cmr);Kc.registerSymbol("hexagon",umr);Kc.registerSymbol("square",amr);Kc.registerSymbol("diamond",omr);Kc.registerSymbol("triangle",smr);Kc.registerSymbol("triangle-down",lmr);Kc.registerSymbol("line",Apt);Kc.registerSymbol("dot",fpt);Kc.registerSymbol("dash",gmr);Kc.registerSymbol("smooth",pmr);Kc.registerSymbol("hv",vmr);Kc.registerSymbol("vh",mmr);Kc.registerSymbol("hvh",ymr);Kc.registerSymbol("vhv",bmr);function fY(e,...t){return t.reduce((r,n)=>i=>r(n(i)),e)}function y2e(e,t){return t-e?r=>(r-e)/(t-e):r=>.5}function Emr(e,t){const r=tt?e:t;return i=>Math.min(Math.max(r,i),n)}function Bmr(e,t,r,n,i){let a=r||0,o=n||e.length;const s=l=>l;for(;at?o=l:a=l+1}return a}const gHe=Math.sqrt(50),pHe=Math.sqrt(10),vHe=Math.sqrt(2);function VK(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log(n)/Math.LN10),a=n/10**i;return i>=0?(a>=gHe?10:a>=pHe?5:a>=vHe?2:1)*10**i:-(10**-i)/(a>=gHe?10:a>=pHe?5:a>=vHe?2:1)}const xmr=(e,t,r=5)=>{const n=[e,t];let i=0,a=n.length-1,o=n[i],s=n[a],l;return s0?(o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l,l=VK(o,s,r)):l<0&&(o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l,l=VK(o,s,r)),l>0?(n[i]=Math.floor(o/l)*l,n[a]=Math.ceil(s/l)*l):l<0&&(n[i]=Math.ceil(o*l)/l,n[a]=Math.floor(s*l)/l),n};function mHe(e){return!rl(e)&&!Fer(e)&&!Number.isNaN(e)}var ihe={exports:{}},ahe,yHe;function Smr(){return yHe||(yHe=1,ahe={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}),ahe}var ohe={exports:{}},she,bHe;function kmr(){return bHe||(bHe=1,she=function(t){return!t||typeof t=="string"?!1:t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&t.constructor.name!=="String")}),she}var wHe;function Qmr(){if(wHe)return ohe.exports;wHe=1;var e=kmr(),t=Array.prototype.concat,r=Array.prototype.slice,n=ohe.exports=function(a){for(var o=[],s=0,l=a.length;s=4&&l[3]!==1&&(u=", "+l[3]),"hwb("+l[0]+", "+l[1]+"%, "+l[2]+"%"+u+")"},a.to.keyword=function(l){return n[l.slice(0,3)]};function o(l,u,c){return Math.min(Math.max(u,l),c)}function s(l){var u=Math.round(l).toString(16).toUpperCase();return u.length<2?"0"+u:u}return ihe.exports}var Tmr=_mr();const Dmr=A0(Tmr);function lhe(e,t,r){let n=r;return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Fmr(e){const t=e[0]/360,r=e[1]/100,n=e[2]/100,i=e[3];if(r===0)return[n*255,n*255,n*255,i];const a=n<.5?n*(1+r):n+r-n*r,o=2*n-a,s=lhe(o,a,t+1/3),l=lhe(o,a,t),u=lhe(o,a,t-1/3);return[s*255,l*255,u*255,i]}function IHe(e){const t=Dmr.get(e);if(!t)return null;const{model:r,value:n}=t;return r==="rgb"?n:r==="hsl"?Fmr(n):null}const hY=(e,t)=>r=>e*(1-r)+t*r,Rmr=(e,t)=>{const r=IHe(e),n=IHe(t);return r===null||n===null?r?()=>e:()=>t:i=>{const a=new Array(4);for(let c=0;c<4;c+=1){const A=r[c],f=n[c];a[c]=A*(1-i)+f*i}const[o,s,l,u]=a;return`rgba(${Math.round(o)}, ${Math.round(s)}, ${Math.round(l)}, ${u})`}},Mmr=(e,t)=>typeof e=="number"&&typeof t=="number"?hY(e,t):typeof e=="string"&&typeof t=="string"?Rmr(e,t):()=>e,Omr=(e,t)=>{const r=hY(e,t);return n=>Math.round(r(n))};function EHe({map:e,initKey:t},r){const n=t(r);return e.has(n)?e.get(n):r}function Nmr({map:e,initKey:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function Lmr({map:e,initKey:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function Pmr(e){return typeof e=="object"?e.valueOf():e}class BHe extends Map{constructor(t){if(super(),this.map=new Map,this.initKey=Pmr,t!==null)for(const[r,n]of t)this.set(r,n)}get(t){return super.get(EHe({map:this.map,initKey:this.initKey},t))}has(t){return super.has(EHe({map:this.map,initKey:this.initKey},t))}set(t,r){return super.set(Nmr({map:this.map,initKey:this.initKey},t),r)}delete(t){return super.delete(Lmr({map:this.map,initKey:this.initKey},t))}}class hpt{constructor(t){this.options=ip({},this.getDefaultOptions()),this.update(t)}getOptions(){return this.options}update(t={}){this.options=ip({},this.options,t),this.rescale(t)}rescale(t){}}const $3e=Symbol("defaultUnknown");function xHe(e,t,r){for(let n=0;n`${t}`:typeof e=="object"?t=>JSON.stringify(t):t=>t}class z3e extends hpt{getDefaultOptions(){return{domain:[],range:[],unknown:$3e}}constructor(t){super(t)}map(t){return this.domainIndexMap.size===0&&xHe(this.domainIndexMap,this.getDomain(),this.domainKey),SHe({value:this.domainKey(t),mapper:this.domainIndexMap,from:this.getDomain(),to:this.getRange(),notFoundReturn:this.options.unknown})}invert(t){return this.rangeIndexMap.size===0&&xHe(this.rangeIndexMap,this.getRange(),this.rangeKey),SHe({value:this.rangeKey(t),mapper:this.rangeIndexMap,from:this.getRange(),to:this.getDomain(),notFoundReturn:this.options.unknown})}rescale(t){const[r]=this.options.domain,[n]=this.options.range;if(this.domainKey=kHe(r),this.rangeKey=kHe(n),!this.rangeIndexMap){this.rangeIndexMap=new Map,this.domainIndexMap=new Map;return}(!t||t.range)&&this.rangeIndexMap.clear(),(!t||t.domain||t.compare)&&(this.domainIndexMap.clear(),this.sortedDomain=void 0)}clone(){return new z3e(this.options)}getRange(){return this.options.range}getDomain(){if(this.sortedDomain)return this.sortedDomain;const{domain:t,compare:r}=this.options;return this.sortedDomain=r?[...t].sort(r):t,this.sortedDomain}}function Umr(e){const t=Math.min(...e);return e.map(r=>r/t)}function Hmr(e,t){const r=e.length,n=t-r;return n>0?[...e,...new Array(n).fill(1)]:n<0?e.slice(0,t):e}function jmr(e){return Math.round(e*1e12)/1e12}function Gmr(e){const{domain:t,range:r,paddingOuter:n,paddingInner:i,flex:a,round:o,align:s}=e,l=t.length,u=Hmr(a,l),[c,A]=r,f=A-c,h=2/l*n+1-1/l*i,g=f/h,p=g*i/l,m=g-l*p,b=Umr(u),C=b.reduce((Y,ee)=>Y+ee),E=m/C,_=new BHe(t.map((Y,ee)=>{const q=b[ee]*E;return[Y,o?Math.floor(q):q]})),F=new BHe(t.map((Y,ee)=>{const ae=b[ee]*E+p;return[Y,o?Math.floor(ae):ae]})),M=Array.from(F.values()).reduce((Y,ee)=>Y+ee),P=(f-(M-M/l*i))*s,j=c+P;let z=o?Math.round(j):j;const W=new Array(l);for(let Y=0;Yf+E*c);return{valueStep:c,valueBandWidth:A,adjustedRange:b}}class K3e extends z3e{getDefaultOptions(){return{domain:[],range:[0,1],align:.5,round:!1,paddingInner:0,paddingOuter:0,padding:0,unknown:$3e,flex:[]}}constructor(t){super(t)}clone(){return new K3e(this.options)}getStep(t){return this.valueStep===void 0?1:typeof this.valueStep=="number"?this.valueStep:t===void 0?Array.from(this.valueStep.values())[0]:this.valueStep.get(t)}getBandWidth(t){return this.valueBandWidth===void 0?1:typeof this.valueBandWidth=="number"?this.valueBandWidth:t===void 0?Array.from(this.valueBandWidth.values())[0]:this.valueBandWidth.get(t)}getRange(){return this.adjustedRange}getPaddingInner(){const{padding:t,paddingInner:r}=this.options;return t>0?t:r}getPaddingOuter(){const{padding:t,paddingOuter:r}=this.options;return t>0?t:r}rescale(){super.rescale();const{align:t,domain:r,range:n,round:i,flex:a}=this.options,{adjustedRange:o,valueBandWidth:s,valueStep:l}=$mr({align:t,range:n,round:i,flex:a,paddingInner:this.getPaddingInner(),paddingOuter:this.getPaddingOuter(),domain:r});this.valueStep=l,this.valueBandWidth=s,this.adjustedRange=o}}const zmr=(e,t,r)=>{let n,i,a=e,o=t;if(a===o&&r>0)return[a];let s=VK(a,o,r);if(s===0||!Number.isFinite(s))return[];if(s>0){a=Math.ceil(a/s),o=Math.floor(o/s),i=new Array(n=Math.ceil(o-a+1));for(let l=0;l{const[n,i]=e,[a,o]=t;let s,l;return n{const n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=e[0]>e[n],s=o?[...e].reverse():e,l=o?[...t].reverse():t;for(let u=0;u{const c=Bmr(e,u,1,n)-1,A=i[c],f=a[c];return fY(f,A)(u)}},QHe=(e,t,r,n)=>(Math.min(e.length,t.length)>2?Vmr:Kmr)(e,t,n?Omr:r);class Wmr extends hpt{getDefaultOptions(){return{domain:[0,1],range:[0,1],nice:!1,clamp:!1,round:!1,interpolate:hY,tickCount:5}}map(t){return mHe(t)?this.output(t):this.options.unknown}invert(t){return mHe(t)?this.input(t):this.options.unknown}nice(){if(!this.options.nice)return;const[t,r,n,...i]=this.getTickMethodOptions();this.options.domain=this.chooseNice()(t,r,n,...i)}getTicks(){const{tickMethod:t}=this.options,[r,n,i,...a]=this.getTickMethodOptions();return t(r,n,i,...a)}getTickMethodOptions(){const{domain:t,tickCount:r}=this.options,n=t[0],i=t[t.length-1];return[n,i,r]}chooseNice(){return xmr}rescale(){this.nice();const[t,r]=this.chooseTransforms();this.composeOutput(t,this.chooseClamp(t)),this.composeInput(t,r,this.chooseClamp(r))}chooseClamp(t){const{clamp:r,range:n}=this.options,i=this.options.domain.map(t),a=Math.min(i.length,n.length);return r?Emr(i[0],i[a-1]):Sbe}composeOutput(t,r){const{domain:n,range:i,round:a,interpolate:o}=this.options,s=QHe(n.map(t),i,o,a);this.output=fY(s,r,t)}composeInput(t,r,n){const{domain:i,range:a}=this.options,o=QHe(a,i.map(t),hY);this.input=fY(r,n,o)}}class ZM extends Wmr{getDefaultOptions(){return{domain:[0,1],range:[0,1],unknown:void 0,nice:!1,clamp:!1,round:!1,interpolate:Mmr,tickMethod:zmr,tickCount:5}}chooseTransforms(){return[Sbe,Sbe]}clone(){return new ZM(this.options)}}var Ymr=function(e){_l(t,e);function t(r){var n=this,i=r.style,a=lf(r,["style"]);return n=e.call(this,ip({},{type:"column"},qi({style:i},a)))||this,n.columnsGroup=new zd({name:"columns"}),n.appendChild(n.columnsGroup),n.render(),n}return t.prototype.render=function(){var r=this.attributes,n=r.columns,i=r.x,a=r.y;this.columnsGroup.style.transform="translate(".concat(i,", ").concat(a,")"),So(this.columnsGroup).selectAll(".column").data(n.flat()).join(function(o){return o.append("rect").attr("className","column").each(function(s){this.attr(s)})},function(o){return o.each(function(s){this.attr(s)})},function(o){return o.remove()})},t.prototype.update=function(r){this.attr(Ad({},this.attributes,r)),this.render()},t.prototype.clear=function(){this.removeChildren()},t}(SA),qmr=function(e){_l(t,e);function t(r){var n=this,i=r.style,a=lf(r,["style"]);return n=e.call(this,ip({},{type:"lines"},qi({style:i},a)))||this,n.linesGroup=n.appendChild(new zd),n.areasGroup=n.appendChild(new zd),n.render(),n}return t.prototype.render=function(){var r=this.attributes,n=r.lines,i=r.areas,a=r.x,o=r.y;this.style.transform="translate(".concat(a,", ").concat(o,")"),n&&this.renderLines(n),i&&this.renderAreas(i)},t.prototype.clear=function(){this.linesGroup.removeChildren(),this.areasGroup.removeChildren()},t.prototype.update=function(r){this.attr(Ad({},this.attributes,r)),this.render()},t.prototype.renderLines=function(r){So(this.linesGroup).selectAll(".line").data(r).join(function(n){return n.append("path").attr("className","line").each(function(i){this.attr(i)})},function(n){return n.each(function(i){this.attr(i)})},function(n){return n.remove()})},t.prototype.renderAreas=function(r){So(this.linesGroup).selectAll(".area").data(r).join(function(n){return n.append("path").attr("className","area").each(function(i){this.attr(i)})},function(n){return n.each(function(i){this.style(i)})},function(n){return n.remove()})},t}(SA);function Jmr(e,t){var r,n=t.x,i=t.y,a=Zr(i.getOptions().range||[0,0],2),o=a[0],s=a[1];return s>o&&(r=Zr([o,s],2),s=r[0],o=r[1]),e.map(function(l){var u=l.map(function(c,A){return[n.map(A),Sf(i.map(c),s,o)]});return u})}function gN(e,t){t===void 0&&(t=!1);var r=t?e.length-1:0,n=e.map(function(i,a){return Do([a===r?"M":"L"],Zr(i),!1)});return t?n.reverse():n}function dY(e,t){if(t===void 0&&(t=!1),e.length<=2)return gN(e);for(var r=[],n=e.length,i=0;i=0;i-=1){var a=e[i],o=gN(a),s=void 0;if(i===0)s=V3e(o,t,r);else{var l=e[i-1],u=gN(l,!0);u[0][0]="L",s=Do(Do(Do([],Zr(o),!1),Zr(u),!1),[["Z"]],!1)}n.push(s)}return n}function e1r(e,t,r){for(var n=[],i=e.length-1;i>=0;i-=1){var a=e[i],o=dY(a),s=void 0;if(i===0)s=V3e(o,t,r);else{var l=e[i-1],u=dY(l,!0),c=a[0];u[0][0]="L",s=Do(Do(Do([],Zr(o),!1),Zr(u),!1),[Do(["M"],Zr(c),!1),["Z"]],!1)}n.push(s)}return n}function _He(e){return e.length===0?[0,0]:[LW(Ser(e,function(t){return LW(t)||0})),NW(xer(e,function(t){return NW(t)||0}))]}function THe(e){for(var t=y5(e),r=t[0].length,n=Zr([Array(r).fill(0),Array(r).fill(0)],2),i=n[0],a=n[1],o=0;o=0?(s[l]+=i[l],i[l]=s[l]):(s[l]+=a[l],a[l]=s[l]);return t}var t1r=function(e){_l(t,e);function t(r){return e.call(this,r,{type:"line",x:0,y:0,width:200,height:20,isStack:!1,color:["#83daad","#edbf45","#d2cef9","#e290b3","#6f63f4"],smooth:!0,lineLineWidth:1,areaOpacity:0,isGroup:!1,columnLineWidth:1,columnStroke:"#fff",scale:1,spacing:0})||this}return Object.defineProperty(t.prototype,"rawData",{get:function(){var r=this.attributes.data;if(!r||(r==null?void 0:r.length)===0)return[[]];var n=y5(r);return go(n[0])?[n]:n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return this.attributes.isStack?THe(this.rawData):this.rawData},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scales",{get:function(){return this.createScales(this.data)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"baseline",{get:function(){var r=this.scales.y,n=Zr(r.getOptions().domain||[0,0],2),i=n[0],a=n[1];return a<0?r.map(a):r.map(i<0?0:i)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"containerShape",{get:function(){var r=this.attributes,n=r.width,i=r.height;return{width:n,height:i}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"linesStyle",{get:function(){var r=this,n=this.attributes,i=n.type,a=n.isStack,o=n.smooth;if(i!=="line")throw new Error("linesStyle can only be used in line type");var s=ul(this.attributes,"area"),l=ul(this.attributes,"line"),u=this.containerShape.width,c=this.data;if(c[0].length===0)return{lines:[],areas:[]};var A=this.scales,f=A.x,h=A.y,g=Jmr(c,{type:"line",x:f,y:h}),p=[];{var m=this.baseline;a?p=o?e1r(g,u,m):Zmr(g,u,m):p=Xmr(g,o,u,m)}return{lines:g.map(function(b,C){return qi({stroke:r.getColor(C),d:o?dY(b):gN(b)},l)}),areas:p.map(function(b,C){return qi({d:b,fill:r.getColor(C)},s)})}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"columnsStyle",{get:function(){var r=this,n=ul(this.attributes,"column"),i=this.attributes,a=i.isStack,o=i.type,s=i.scale;if(o!=="column")throw new Error("columnsStyle can only be used in column type");var l=this.containerShape.height,u=this.rawData;if(!u)return{columns:[]};a&&(u=THe(u));var c=this.createScales(u),A=c.x,f=c.y,h=Zr(_He(u),2),g=h[0],p=h[1],m=new ZM({domain:[0,p-(g>0?0:g)],range:[0,l*s]}),b=A.getBandWidth(),C=this.rawData;return{columns:u.map(function(E,_){return E.map(function(F,M){var N=b/u.length,P=function(){return{x:A.map(M)+N*_,y:F>=0?f.map(F):f.map(0),width:N,height:m.map(Math.abs(F))}},j=function(){return{x:A.map(M),y:f.map(F),width:b,height:m.map(C[_][M])}};return qi(qi({fill:r.getColor(_)},n),a?j():P())})})}},enumerable:!1,configurable:!0}),t.prototype.render=function(r,n){Yvr(n,".container","rect").attr("className","container").node();var i=r.type,a=r.x,o=r.y,s="spark".concat(i),l=qi({x:a,y:o},i==="line"?this.linesStyle:this.columnsStyle);So(n).selectAll(".spark").data([i]).join(function(u){return u.append(function(c){return c==="line"?new qmr({className:s,style:l}):new Ymr({className:s,style:l})}).attr("className","spark ".concat(s))},function(u){return u.update(l)},function(u){return u.remove()})},t.prototype.getColor=function(r){var n=this.attributes.color;return fm(n)?n[r%n.length]:xo(n)?n.call(null,r):n},t.prototype.createScales=function(r){var n,i,a=this.attributes,o=a.type,s=a.scale,l=a.range,u=l===void 0?[]:l,c=a.spacing,A=this.containerShape,f=A.width,h=A.height,g=Zr(_He(r),2),p=g[0],m=g[1],b=new ZM({domain:[(n=u[0])!==null&&n!==void 0?n:p,(i=u[1])!==null&&i!==void 0?i:m],range:[h,h*(1-s)]});return o==="line"?{type:o,x:new ZM({domain:[0,r[0].length-1],range:[0,f]}),y:b}:{type:o,x:new K3e({domain:r[0].map(function(C,E){return E}),range:[0,f],paddingInner:c,paddingOuter:c/2,align:.5}),y:b}},t.tag="sparkline",t}(_f);function r1r(e){return typeof e=="boolean"?!1:"enter"in e&&"update"in e&&"exit"in e}function DHe(e){if(!e)return{enter:!1,update:!1,exit:!1};var t=["enter","update","exit"],r=Object.fromEntries(Object.entries(e).filter(function(n){var i=Zr(n,1),a=i[0];return!t.includes(a)}));return Object.fromEntries(t.map(function(n){return r1r(e)?e[n]===!1?[n,!1]:[n,qi(qi({},e[n]),r)]:[n,r]}))}function sT(e,t){e?e.finished.then(t):t()}function n1r(e,t){e.length===0?t():Promise.all(e.map(function(r){return r==null?void 0:r.finished})).then(t)}function dpt(e,t){"update"in e?e.update(t):e.attr(t)}function gpt(e,t,r){if(t.length===0)return null;if(!r){var n=t.slice(-1)[0];return dpt(e,{style:n}),null}return e.animate(t,r)}function i1r(e,t){return!(e.nodeName!=="text"||t.nodeName!=="text"||e.attributes.text!==t.attributes.text)}function a1r(e,t,r,n){if(n===void 0&&(n="destroy"),i1r(e,t))return e.remove(),[null];var i=function(){n==="destroy"?e.destroy():n==="hide"&&zb(e),t.isVisible()&&eP(t)};if(!r)return i(),[null];var a=r.duration,o=a===void 0?0:a,s=r.delay,l=s===void 0?0:s,u=Math.ceil(+o/2),c=+o/4,A=Zr(e.getGeometryBounds().center,2),f=A[0],h=A[1],g=Zr(t.getGeometryBounds().center,2),p=g[0],m=g[1],b=Zr([(f+p)/2-f,(h+m)/2-h],2),C=b[0],E=b[1],_=e.style.opacity,F=_===void 0?1:_,M=t.style.opacity,N=M===void 0?1:M,P=e.style.transform||"",j=t.style.transform||"",z=e.animate([{opacity:F,transform:"translate(0, 0) ".concat(P)},{opacity:0,transform:"translate(".concat(C,", ").concat(E,") ").concat(P)}],qi(qi({fill:"both"},r),{duration:l+u+c})),W=t.animate([{opacity:0,transform:"translate(".concat(-C,", ").concat(-E,") ").concat(j),offset:.01},{opacity:N,transform:"translate(0, 0) ".concat(j)}],qi(qi({fill:"both"},r),{duration:u+c,delay:l+u-c}));return sT(W,i),[z,W]}function Xb(e,t,r){var n={},i={};return Object.entries(t).forEach(function(a){var o=Zr(a,2),s=o[0],l=o[1];if(!ds(l)){var u=e.style[s]||e.parsedStyle[s]||0;u!==l&&(n[s]=u,i[s]=l)}}),r?gpt(e,[n,i],qi({fill:"both"},r)):(dpt(e,i),null)}function lZ(e,t){return e.style.opacity||(e.style.opacity=1),Xb(e,{opacity:0},t)}var ppt={fill:"#fff",lineWidth:1,radius:2,size:10,stroke:"#bfbfbf",strokeOpacity:1,zIndex:0},vpt={fill:"#000",fillOpacity:.45,fontSize:12,textAlign:"center",textBaseline:"middle",zIndex:1},mpt={x:0,y:0,orientation:"horizontal",showLabel:!0,type:"start"},vw=p2({foreground:"foreground",handle:"handle",selection:"selection",sparkline:"sparkline",sparklineGroup:"sparkline-group",track:"track",brushArea:"brush-area"},"slider"),y3=p2({labelGroup:"label-group",label:"label",iconGroup:"icon-group",icon:"icon",iconRect:"icon-rect",iconLine:"icon-line"},"handle"),o1r=function(e){_l(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n){var i=r.x,a=r.y,o=r.size,s=o===void 0?10:o,l=r.radius,u=l===void 0?s/4:l,c=r.orientation,A=lf(r,["x","y","size","radius","orientation"]),f=s,h=f*2.4,g=So(n).maybeAppendByClassName(y3.iconRect,"rect").styles(qi(qi({},A),{width:f,height:h,radius:u,x:i-f/2,y:a-h/2,transformOrigin:"center"})),p=i+1/3*f-f/2,m=i+2/3*f-f/2,b=a+1/4*h-h/2,C=a+3/4*h-h/2;g.maybeAppendByClassName("".concat(y3.iconLine,"-1"),"line").styles(qi({x1:p,x2:p,y1:b,y2:C},A)),g.maybeAppendByClassName("".concat(y3.iconLine,"-2"),"line").styles(qi({x1:m,x2:m,y1:b,y2:C},A)),c==="vertical"&&(g.node().style.transform="rotate(90)")},t}(_f),s1r=function(e){_l(t,e);function t(r){return e.call(this,r,mpt)||this}return t.prototype.renderLabel=function(r){var n=this,i=this.attributes,a=i.x,o=i.y,s=i.showLabel,l=ul(this.attributes,"label"),u=l.x,c=u===void 0?0:u,A=l.y,f=A===void 0?0:A,h=l.transform,g=l.transformOrigin,p=lf(l,["x","y","transform","transformOrigin"]),m=Zr(nB(p,[]),2),b=m[0],C=m[1],E=So(r).maybeAppendByClassName(y3.labelGroup,"g").styles(C),_=qi(qi({},vpt),b),F=_.text,M=lf(_,["text"]);o1(!!s,E,function(N){n.label=N.maybeAppendByClassName(y3.label,"text").styles(qi(qi({},M),{x:a+c,y:o+f,transform:h,transformOrigin:g,text:"".concat(F)})),n.label.on("mousedown",function(P){P.stopPropagation()}),n.label.on("touchstart",function(P){P.stopPropagation()})})},t.prototype.renderIcon=function(r){var n=this.attributes,i=n.x,a=n.y,o=n.orientation,s=n.type,l=qi(qi({x:i,y:a,orientation:o},ppt),ul(this.attributes,"icon")),u=this.attributes.iconShape,c=u===void 0?function(){return new o1r({style:l})}:u,A=So(r).maybeAppendByClassName(y3.iconGroup,"g");A.selectAll(y3.icon.class).data([c]).join(function(f){return f.append(typeof c=="string"?c:function(){return c(s)}).attr("className",y3.icon.name)},function(f){return f.update(l)},function(f){return f.remove()})},t.prototype.render=function(r,n){this.renderIcon(n),this.renderLabel(n)},t}(_f),l1r=function(e){_l(t,e);function t(r){var n=e.call(this,r,qi(qi(qi({x:0,y:0,animate:{duration:100,fill:"both"},brushable:!0,formatter:function(i){return i.toString()},handleSpacing:2,orientation:"horizontal",padding:0,autoFitLabel:!0,scrollable:!0,selectionFill:"#5B8FF9",selectionFillOpacity:.45,selectionZIndex:2,showHandle:!0,showLabel:!0,slidable:!0,trackFill:"#416180",trackLength:200,trackOpacity:.05,trackSize:20,trackZIndex:-1,values:[0,1],type:"range",selectionType:"select",handleIconOffset:0},L8(mpt,"handle")),L8(ppt,"handleIcon")),L8(vpt,"handleLabel")))||this;return n.range=[0,1],n.onDragStart=function(i){return function(a){a.stopPropagation(),n.target=i,n.prevPos=n.getOrientVal(lHe(a));var o=n.availableSpace,s=o.x,l=o.y,u=n.getBBox(),c=u.x,A=u.y;n.selectionStartPos=n.getRatio(n.prevPos-n.getOrientVal([s,l])-n.getOrientVal([+c,+A])),n.selectionWidth=0,document.addEventListener("pointermove",n.onDragging),document.addEventListener("pointerup",n.onDragEnd)}},n.onDragging=function(i){var a=n.attributes,o=a.slidable,s=a.brushable,l=a.type;i.stopPropagation();var u=n.getOrientVal(lHe(i)),c=u-n.prevPos;if(c){var A=n.getRatio(c);switch(n.target){case"start":o&&n.setValuesOffset(A);break;case"end":o&&n.setValuesOffset(0,A);break;case"selection":o&&n.setValuesOffset(A,A);break;case"track":if(!s)return;n.selectionWidth+=A,l==="range"?n.innerSetValues([n.selectionStartPos,n.selectionStartPos+n.selectionWidth].sort(),!0):n.innerSetValues([0,n.selectionStartPos+n.selectionWidth],!0);break}n.prevPos=u}},n.onDragEnd=function(){document.removeEventListener("pointermove",n.onDragging),document.removeEventListener("pointermove",n.onDragging),document.removeEventListener("pointerup",n.onDragEnd),n.target="",n.updateHandlesPosition(!1)},n.onValueChange=function(i){var a=n.attributes,o=a.onChange,s=a.type,l=s==="range"?i:i[1],u=s==="range"?n.getValues():n.getValues()[1],c=new nd("valuechange",{detail:{oldValue:l,value:u}});n.dispatchEvent(c),o==null||o(u)},n.selectionStartPos=0,n.selectionWidth=0,n.prevPos=0,n.target="",n}return Object.defineProperty(t.prototype,"values",{get:function(){return this.attributes.values},set:function(r){this.attributes.values=this.clampValues(r)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sparklineStyle",{get:function(){var r=this.attributes.orientation;if(r!=="horizontal")return null;var n=ul(this.attributes,"sparkline");return qi(qi({zIndex:0},this.availableSpace),n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shape",{get:function(){var r=this.attributes,n=r.trackLength,i=r.trackSize,a=Zr(this.getOrientVal([[n,i],[i,n]]),2),o=a[0],s=a[1];return{width:o,height:s}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"availableSpace",{get:function(){var r=this.attributes;r.x,r.y;var n=r.padding,i=Zr(sp(n),4),a=i[0],o=i[1],s=i[2],l=i[3],u=this.shape,c=u.width,A=u.height;return{x:l,y:a,width:c-(l+o),height:A-(a+s)}},enumerable:!1,configurable:!0}),t.prototype.getValues=function(){return this.values},t.prototype.setValues=function(r,n){r===void 0&&(r=[0,0]),n===void 0&&(n=!1),this.attributes.values=r;var i=n===!1?!1:this.attributes.animate;this.updateSelectionArea(i),this.updateHandlesPosition(i)},t.prototype.updateSelectionArea=function(r){var n=this.calcSelectionArea();this.foregroundGroup.selectAll(vw.selection.class).each(function(i,a){Xb(this,n[a],r)})},t.prototype.updateHandlesPosition=function(r){this.attributes.showHandle&&(this.startHandle&&Xb(this.startHandle,this.getHandleStyle("start"),r),this.endHandle&&Xb(this.endHandle,this.getHandleStyle("end"),r))},t.prototype.innerSetValues=function(r,n){r===void 0&&(r=[0,0]),n===void 0&&(n=!1);var i=this.values,a=this.clampValues(r);this.attributes.values=a,this.setValues(a),n&&this.onValueChange(i)},t.prototype.renderTrack=function(r){var n=this.attributes,i=n.x,a=n.y,o=ul(this.attributes,"track");this.trackShape=So(r).maybeAppendByClassName(vw.track,"rect").styles(qi(qi({x:i,y:a},this.shape),o))},t.prototype.renderBrushArea=function(r){var n=this.attributes,i=n.x,a=n.y,o=n.brushable;this.brushArea=So(r).maybeAppendByClassName(vw.brushArea,"rect").styles(qi({x:i,y:a,fill:"transparent",cursor:o?"crosshair":"default"},this.shape))},t.prototype.renderSparkline=function(r){var n=this,i=this.attributes,a=i.x,o=i.y,s=i.orientation,l=So(r).maybeAppendByClassName(vw.sparklineGroup,"g");o1(s==="horizontal",l,function(u){var c=qi(qi({},n.sparklineStyle),{x:a,y:o});u.maybeAppendByClassName(vw.sparkline,function(){return new t1r({style:c})}).update(c)})},t.prototype.renderHandles=function(){var r=this,n,i=this.attributes,a=i.showHandle,o=i.type,s=o==="range"?["start","end"]:["end"],l=a?s:[],u=this;(n=this.foregroundGroup)===null||n===void 0||n.selectAll(vw.handle.class).data(l.map(function(c){return{type:c}}),function(c){return c.type}).join(function(c){return c.append(function(A){var f=A.type;return new s1r({style:r.getHandleStyle(f)})}).each(function(A){var f=A.type;this.attr("class","".concat(vw.handle.name," ").concat(f,"-handle"));var h="".concat(f,"Handle");u[h]=this,this.addEventListener("pointerdown",u.onDragStart(f))})},function(c){return c.each(function(A){var f=A.type;this.update(u.getHandleStyle(f))})},function(c){return c.each(function(A){var f=A.type,h="".concat(f,"Handle");u[h]=void 0}).remove()})},t.prototype.renderSelection=function(r){var n=this.attributes,i=n.x,a=n.y,o=n.type,s=n.selectionType;this.foregroundGroup=So(r).maybeAppendByClassName(vw.foreground,"g");var l=ul(this.attributes,"selection"),u=function(A){return A.style("visibility",function(f){return f.show?"visible":"hidden"}).style("cursor",function(f){return s==="select"?"grab":s==="invert"?"crosshair":"default"}).styles(qi(qi({},l),{transform:"translate(".concat(i,", ").concat(a,")")}))},c=this;this.foregroundGroup.selectAll(vw.selection.class).data(o==="value"?[]:this.calcSelectionArea().map(function(A,f){return{style:qi({},A),index:f,show:s==="select"?f===1:f!==1}}),function(A){return A.index}).join(function(A){return A.append("rect").attr("className",vw.selection.name).call(u).each(function(f,h){var g=this;h===1?(c.selectionShape=So(this),this.on("pointerdown",function(p){g.attr("cursor","grabbing"),c.onDragStart("selection")(p)}),c.dispatchCustomEvent(this,"pointerenter","selectionMouseenter"),c.dispatchCustomEvent(this,"pointerleave","selectionMouseleave"),c.dispatchCustomEvent(this,"click","selectionClick"),this.addEventListener("pointerdown",function(){g.attr("cursor","grabbing")}),this.addEventListener("pointerup",function(){g.attr("cursor","pointer")}),this.addEventListener("pointerover",function(){g.attr("cursor","pointer")})):this.on("pointerdown",c.onDragStart("track"))})},function(A){return A.call(u)},function(A){return A.remove()}),this.updateSelectionArea(!1),this.renderHandles()},t.prototype.render=function(r,n){this.renderTrack(n),this.renderSparkline(n),this.renderBrushArea(n),this.renderSelection(n)},t.prototype.clampValues=function(r,n){var i;n===void 0&&(n=4);var a=Zr(this.range,2),o=a[0],s=a[1],l=Zr(this.getValues().map(function(m){return uHe(m,n)}),2),u=l[0],c=l[1],A=Array.isArray(r)?r:[u,r??c],f=Zr((A||[u,c]).map(function(m){return uHe(m,n)}),2),h=f[0],g=f[1];if(this.attributes.type==="value")return[0,Sf(g,o,s)];h>g&&(i=Zr([g,h],2),h=i[0],g=i[1]);var p=g-h;return p>s-o?[o,s]:hs?c===s&&u===h?[h,s]:[s-p,s]:[h,g]},t.prototype.calcSelectionArea=function(r){var n=Zr(this.clampValues(r),2),i=n[0],a=n[1],o=this.availableSpace,s=o.x,l=o.y,u=o.width,c=o.height;return this.getOrientVal([[{y:l,height:c,x:s,width:i*u},{y:l,height:c,x:i*u+s,width:(a-i)*u},{y:l,height:c,x:a*u,width:(1-a)*u}],[{x:s,width:u,y:l,height:i*c},{x:s,width:u,y:i*c+l,height:(a-i)*c},{x:s,width:u,y:a*c,height:(1-a)*c}]])},t.prototype.calcHandlePosition=function(r){var n=this.attributes.handleIconOffset,i=this.availableSpace,a=i.x,o=i.y,s=i.width,l=i.height,u=Zr(this.clampValues(),2),c=u[0],A=u[1],f=r==="start"?-n:n,h=(r==="start"?c:A)*this.getOrientVal([s,l])+f;return{x:a+this.getOrientVal([h,s/2]),y:o+this.getOrientVal([l/2,h])}},t.prototype.inferTextStyle=function(r){var n=this.attributes.orientation;return n==="horizontal"?{}:r==="start"?{transformOrigin:"left center",transform:"rotate(90)",textAlign:"start"}:r==="end"?{transformOrigin:"right center",transform:"rotate(90)",textAlign:"end"}:{}},t.prototype.calcHandleText=function(r){var n,i=this.attributes,a=i.type,o=i.orientation,s=i.formatter,l=i.autoFitLabel,u=ul(this.attributes,"handle"),c=ul(u,"label"),A=u.spacing,f=this.getHandleSize(),h=this.clampValues(),g=r==="start"?h[0]:h[1],p=s(g),m=new U3e({style:qi(qi(qi({},c),this.inferTextStyle(r)),{text:p})}),b=m.getBBox(),C=b.width,E=b.height;if(m.destroy(),!l){if(a==="value")return{text:p,x:0,y:-E-A};var _=A+f+(o==="horizontal"?C/2:0);return n={text:p},n[o==="horizontal"?"x":"y"]=r==="start"?-_:_,n}var F=0,M=0,N=this.availableSpace,P=N.width,j=N.height,z=this.calcSelectionArea()[1],W=z.x,Y=z.y,ee=z.width,q=z.height,ae=A+f;if(o==="horizontal"){var se=ae+C/2;if(r==="start"){var de=W-ae-C;F=de>0?-se:se}else{var Ae=P-W-ee-ae>C;F=Ae?se:-se}}else{var be=ae,Le=E+ae;r==="start"?M=Y-f>E?-Le:be:M=j-(Y+q)-f>E?Le:-be}return{x:F,y:M,text:p}},t.prototype.getHandleLabelStyle=function(r){var n=ul(this.attributes,"handleLabel");return qi(qi(qi({},n),this.calcHandleText(r)),this.inferTextStyle(r))},t.prototype.getHandleIconStyle=function(){var r=this.attributes.handleIconShape,n=ul(this.attributes,"handleIcon"),i=this.getOrientVal(["ew-resize","ns-resize"]),a=this.getHandleSize();return qi({cursor:i,shape:r,size:a},n)},t.prototype.getHandleStyle=function(r){var n=this.attributes,i=n.x,a=n.y,o=n.showLabel,s=n.showLabelOnInteraction,l=n.orientation,u=this.calcHandlePosition(r),c=u.x,A=u.y,f=this.calcHandleText(r),h=o;return!o&&s&&(this.target?h=!0:h=!1),qi(qi(qi({},L8(this.getHandleIconStyle(),"icon")),L8(qi(qi({},this.getHandleLabelStyle(r)),f),"label")),{transform:"translate(".concat(c+i,", ").concat(A+a,")"),orientation:l,showLabel:h,type:r,zIndex:3})},t.prototype.getHandleSize=function(){var r=this.attributes,n=r.handleIconSize,i=r.width,a=r.height;return n||Math.floor((this.getOrientVal([+a,+i])+4)/2.4)},t.prototype.getOrientVal=function(r){var n=Zr(r,2),i=n[0],a=n[1],o=this.attributes.orientation;return o==="horizontal"?i:a},t.prototype.setValuesOffset=function(r,n,i){n===void 0&&(n=0),i===void 0&&(i=!1);var a=this.attributes.type,o=Zr(this.getValues(),2),s=o[0],l=o[1],u=a==="range"?r:0,c=[s+u,l+n].sort();i?this.setValues(c):this.innerSetValues(c,!0)},t.prototype.getRatio=function(r){var n=this.availableSpace,i=n.width,a=n.height;return r/this.getOrientVal([i,a])},t.prototype.dispatchCustomEvent=function(r,n,i){var a=this;r.on(n,function(o){o.stopPropagation(),a.dispatchEvent(new nd(i,{detail:o}))})},t.prototype.bindEvents=function(){this.addEventListener("wheel",this.onScroll);var r=this.brushArea;this.dispatchCustomEvent(r,"click","trackClick"),this.dispatchCustomEvent(r,"pointerenter","trackMouseenter"),this.dispatchCustomEvent(r,"pointerleave","trackMouseleave"),r.on("pointerdown",this.onDragStart("track"))},t.prototype.onScroll=function(r){var n=this.attributes.scrollable;if(n){var i=r.deltaX,a=r.deltaY,o=a||i,s=this.getRatio(o);this.setValuesOffset(s,s,!0)}},t.tag="slider",t}(_f),W3e={data:[],animate:{enter:!1,update:{duration:100,easing:"ease-in-out-sine",fill:"both"},exit:{duration:100,fill:"both"}},showArrow:!0,showGrid:!0,showLabel:!0,showLine:!0,showTick:!0,showTitle:!0,showTrunc:!1,dataThreshold:100,lineLineWidth:1,lineStroke:"black",crossPadding:10,titleFill:"black",titleFontSize:12,titlePosition:"lb",titleSpacing:0,titleTextAlign:"center",titleTextBaseline:"middle",lineArrow:function(){return new Jm({style:{d:[["M",10,10],["L",-10,0],["L",10,-10],["L",0,0],["L",10,10],["Z"]],fill:"black",transformOrigin:"center"}})},labelAlign:"parallel",labelDirection:"positive",labelFontSize:12,labelSpacing:0,gridConnect:"line",gridControlAngles:[],gridDirection:"positive",gridLength:0,gridType:"segment",lineArrowOffset:15,lineArrowSize:10,tickDirection:"positive",tickLength:5,tickLineWidth:1,tickStroke:"black",labelOverlap:[]};ip({},W3e,{style:{type:"arc"}});ip({},W3e,{style:{}});var Mc=p2({mainGroup:"main-group",gridGroup:"grid-group",grid:"grid",lineGroup:"line-group",line:"line",tickGroup:"tick-group",tick:"tick",tickItem:"tick-item",labelGroup:"label-group",label:"label",labelItem:"label-item",titleGroup:"title-group",title:"title",lineFirst:"line-first",lineSecond:"line-second"},"axis"),l7=p2({lineGroup:"line-group",line:"line",regionGroup:"region-group",region:"region"},"grid");function ypt(e){return e.reduce(function(t,r,n){return t.push(Do([n===0?"M":"L"],Zr(r),!1)),t},[])}function u1r(e,t,r){var n=t.connect,i=n===void 0?"line":n,a=t.center;if(i==="line")return ypt(e);if(!a)return[];var o=dN(e[0],a),s=r?0:1;return e.reduce(function(l,u,c){return c===0?l.push(Do(["M"],Zr(u),!1)):l.push(Do(["A",o,o,0,0,s],Zr(u),!1)),l},[])}function b2e(e,t,r){return t.type==="surround"?u1r(e,t,r):ypt(e)}function c1r(e,t,r){var n=r.type,i=r.connect,a=r.center,o=r.closed,s=o?[["Z"]]:[],l=Zr([b2e(e,r),b2e(t.slice().reverse(),r,!0)],2),u=l[0],c=l[1],A=Zr([e[0],t.slice(-1)[0]],2),f=A[0],h=A[1],g=function(C,E){return[u,C,c,E,s].flat()};if(i==="line"||n==="surround")return g([Do(["L"],Zr(h),!1)],[Do(["L"],Zr(f),!1)]);if(!a)throw new Error("Arc grid need to specified center");var p=Zr([dN(h,a),dN(f,a)],2),m=p[0],b=p[1];return g([Do(["A",m,m,0,0,1],Zr(h),!1),Do(["L"],Zr(h),!1)],[Do(["A",b,b,0,0,0],Zr(f),!1),Do(["L"],Zr(f),!1)])}function A1r(e,t,r,n){var i=r.animate,a=r.isBillboard,o=t.map(function(s,l){return{id:s.id||"grid-line-".concat(l),d:b2e(s.points,r)}});return e.selectAll(l7.line.class).data(o,function(s){return s.id}).join(function(s){return s.append("path").each(function(l,u){var c=h1(AHe(qi({d:l.d},n)),[l,u,o]);this.attr(qi({class:l7.line.name,stroke:"#D9D9D9",lineWidth:1,lineDash:[4,4],isBillboard:a},c))})},function(s){return s.transition(function(l,u){var c=h1(AHe(qi({d:l.d},n)),[l,u,o]);return Xb(this,c,i.update)})},function(s){return s.transition(function(){var l=this,u=lZ(this,i.exit);return sT(u,function(){return l.remove()}),u})}).transitions()}function f1r(e,t,r){var n=r.animate,i=r.connect,a=r.areaFill;if(t.length<2||!a||!i)return[];for(var o=Array.isArray(a)?a:[a,"transparent"],s=function(g){return o[g%o.length]},l=[],u=0;u180?1:0,P=e>t?0:1;return"M".concat(g,",").concat(p,",A").concat(s,",").concat(l,",0,").concat(N,",").concat(P,",").concat(b,",").concat(C)}function v1r(e){var t=e.attributes,r=t.startAngle,n=t.endAngle,i=t.center,a=t.radius;return Do(Do([r,n],Zr(i),!1),[a],!1)}function m1r(e,t,r,n){var i=t.startAngle,a=t.endAngle,o=t.center,s=t.radius;return e.selectAll(Mc.line.class).data([{d:FHe.apply(void 0,Do(Do([i,a],Zr(o),!1),[s],!1))}],function(l,u){return u}).join(function(l){return l.append("path").attr("className",Mc.line.name).styles(t).styles({d:function(u){return u.d}})},function(l){return l.transition(function(){var u=this,c=Pvr(this,v1r(this),Do(Do([i,a],Zr(o),!1),[s],!1),n.update);if(c){var A=function(){var f=G0(u.attributes,"__keyframe_data__");u.style.d=FHe.apply(void 0,Do([],Zr(f),!1))};c.onframe=A,c.onfinish=A}return c}).styles(t)},function(l){return l.remove()}).styles(r).transitions()}function y1r(e,t){t.truncRange,t.truncShape,t.lineExtension}function b1r(e,t,r){r===void 0&&(r=[0,0]);var n=Zr([e,t,r],3),i=Zr(n[0],2),a=i[0],o=i[1],s=Zr(n[1],2),l=s[0],u=s[1],c=Zr(n[2],2),A=c[0],f=c[1],h=Zr([l-a,u-o],2),g=h[0],p=h[1],m=Math.sqrt(Math.pow(g,2)+Math.pow(p,2)),b=Zr([-A/m,f/m],2),C=b[0],E=b[1];return[C*g,C*p,E*g,E*p]}function RHe(e){var t=Zr(e,2),r=Zr(t[0],2),n=r[0],i=r[1],a=Zr(t[1],2),o=a[0],s=a[1];return{x1:n,y1:i,x2:o,y2:s}}function w1r(e,t,r,n){var i=t.showTrunc,a=t.startPos,o=t.endPos,s=t.truncRange,l=t.lineExtension,u=Zr([a,o],2),c=Zr(u[0],2),A=c[0],f=c[1],h=Zr(u[1],2),g=h[0],p=h[1],m=Zr(l?b1r(a,o,l):new Array(4).fill(0),4),b=m[0],C=m[1],E=m[2],_=m[3],F=function(Ae){return e.selectAll(Mc.line.class).data(Ae,function(be,Le){return Le}).join(function(be){return be.append("line").attr("className",function(Le){return"".concat(Mc.line.name," ").concat(Le.className)}).styles(r).transition(function(Le){return Xb(this,RHe(Le.line),!1)})},function(be){return be.styles(r).transition(function(Le){var Ne=Le.line;return Xb(this,RHe(Ne),n.update)})},function(be){return be.remove()}).transitions()};if(!i||!s)return F([{line:[[A+b,f+C],[g+E,p+_]],className:Mc.line.name}]);var M=Zr(s,2),N=M[0],P=M[1],j=g-A,z=p-f,W=Zr([A+j*N,f+z*N],2),Y=W[0],ee=W[1],q=Zr([A+j*P,f+z*P],2),ae=q[0],se=q[1],de=F([{line:[[A+b,f+C],[Y,ee]],className:Mc.lineFirst.name},{line:[[ae,se],[g+E,p+_]],className:Mc.lineSecond.name}]);return y1r(e,t),de}function C1r(e,t,r,n){var i=r.showArrow,a=r.showTrunc,o=r.lineArrow,s=r.lineArrowOffset,l=r.lineArrowSize,u;if(t==="arc"?u=e.select(Mc.line.class):a?u=e.select(Mc.lineSecond.class):u=e.select(Mc.line.class),!i||!o||r.type==="arc"&&Ipt(r.startAngle,r.endAngle)){var c=u.node();c&&(c.style.markerEnd=void 0);return}var A=rB(o);A.attr(n),j3e(A,l),u.style("markerEnd",A).style("markerEndOffset",-s)}function I1r(e,t,r){var n=t.type,i,a=ul(t,"line");return n==="linear"?i=w1r(e,t,cHe(a,"arrow"),r):i=m1r(e,t,cHe(a,"arrow"),r),C1r(e,n,t,a),i}function E1r(e,t){return q3e(e,t.gridDirection,t)}function Ept(e){var t=e.type,r=e.gridCenter;return t==="linear"?r:r||e.center}function B1r(e,t){var r=t.gridLength;return e.map(function(n,i){var a=n.value,o=Zr(cZ(a,t),2),s=o[0],l=o[1],u=Zr(wE(E1r(a,t),r),2),c=u[0],A=u[1];return{id:i,points:[[s,l],[s+c,l+A]]}})}function x1r(e,t){var r=t.gridControlAngles,n=Ept(t);if(!n)throw new Error("grid center is not provide");if(e.length<2)throw new Error("Invalid grid data");if(!r||r.length===0)throw new Error("Invalid gridControlAngles");var i=Zr(n,2),a=i[0],o=i[1];return e.map(function(s,l){var u=s.value,c=Zr(cZ(u,t),2),A=c[0],f=c[1],h=Zr([A-a,f-o],2),g=h[0],p=h[1],m=[];return r.forEach(function(b){var C=s7(b),E=Zr([Math.cos(C),Math.sin(C)],2),_=E[0],F=E[1],M=g*_-p*F+a,N=g*F+p*_+o;m.push([M,N])}),{points:m,id:l}})}function S1r(e,t,r,n){var i=ul(r,"grid"),a=i.type,o=i.areaFill,s=Ept(r),l=Y3e(t,r.gridFilter),u=a==="segment"?B1r(l,r):x1r(l,r),c=qi(qi({},i),{center:s,areaFill:xo(o)?l.map(function(A,f){return h1(o,[A,f,l])}):o,animate:n,data:u});return e.selectAll(Mc.grid.class).data([1]).join(function(A){return A.append(function(){return new d1r({style:c})}).attr("className",Mc.grid.name)},function(A){return A.transition(function(){return this.update(c)})},function(A){return A.remove()}).transitions()}var w2e=function(){function e(t,r,n,i){this.set(t,r,n,i)}return Object.defineProperty(e.prototype,"left",{get:function(){return this.x1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){return this.y1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){return this.x2},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bottom",{get:function(){return this.y2},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this.defined("x2")&&this.defined("x1")?this.x2-this.x1:void 0},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.defined("y2")&&this.defined("y1")?this.y2-this.y1:void 0},enumerable:!1,configurable:!0}),e.prototype.rotatedPoints=function(t,r,n){var i=this,a=i.x1,o=i.y1,s=i.x2,l=i.y2,u=Math.cos(t),c=Math.sin(t),A=r-r*u+n*c,f=n-r*c-n*u,h=[[u*a-c*l+A,c*a+u*l+f],[u*s-c*l+A,c*s+u*l+f],[u*a-c*o+A,c*a+u*o+f],[u*s-c*o+A,c*s+u*o+f]];return h},e.prototype.set=function(t,r,n,i){return n0,C=n-l,E=i-u,_=f*E-h*C;if(_<0===b)return!1;var F=g*E-p*C;return!(F<0===b||_>m===b||F>m===b)}function F1r(e,t){var r=[[e[0],e[1],e[2],e[3]],[e[2],e[3],e[4],e[5]],[e[4],e[5],e[6],e[7]],[e[6],e[7],e[0],e[1]]];return r.some(function(n){return D1r(t,n)})}function R1r(e,t,r){var n,i,a=C2e(e,r).flat(1),o=C2e(t,r).flat(1),s=[[a[0],a[1],a[2],a[3]],[a[0],a[1],a[4],a[5]],[a[4],a[5],a[6],a[7]],[a[2],a[3],a[6],a[7]]];try{for(var l=RL(s),u=l.next();!u.done;u=l.next()){var c=u.value;if(F1r(o,c))return!0}}catch(A){n={error:A}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}return!1}function M1r(e,t){var r=e.type,n=e.labelDirection,i=e.crossSize;if(!i)return!1;if(r==="arc"){var a=e.center,o=e.radius,s=Zr(a,2),l=s[0],u=s[1],c=n==="negative"?0:i,A=-o-c,f=o+c,h=Zr(sp(t),4),g=h[0],p=h[1],m=h[2],b=h[3];return new w2e(l+A-b,u+A-g,l+f+p,u+f+m)}var C=Zr(e.startPos,2),E=C[0],_=C[1],F=Zr(e.endPos,2),M=F[0],N=F[1],P=Zr(Cpt(e)?[-t,0,t,0]:[0,t,0,-t],4),j=P[0],z=P[1],W=P[2],Y=P[3],ee=tP(0,e),q=wE(ee,i),ae=new w2e(E,_,M,N);return ae.x1+=Y,ae.y1+=j,ae.x2+=z+q[0],ae.y2+=W+q[1],ae}function AZ(e,t,r){var n,i,a=t.crossPadding,o=new Set,s=null,l=M1r(t,a),u=function(g){return l?T1r(l,g):!0},c=function(g,p){return!g||!g.firstChild?!0:!R1r(g.firstChild,p.firstChild,sp(r))};try{for(var A=RL(e),f=A.next();!f.done;f=A.next()){var h=f.value;u(h)?!s||c(s,h)?s=h:(o.add(s),o.add(h)):o.add(h)}}catch(g){n={error:g}}finally{try{f&&!f.done&&(i=A.return)&&i.call(A)}finally{if(n)throw n.error}}return Array.from(o)}function uhe(e,t){return t===void 0&&(t={}),ds(e)?0:typeof e=="number"?e:Math.floor(Fvr(e,t))}function O1r(e,t,r,n){if(!(e.length<=0)){var i=t.suffix,a=i===void 0?"...":i,o=t.minLength,s=t.maxLength,l=s===void 0?1/0:s,u=t.step,c=u===void 0?" ":u,A=t.margin,f=A===void 0?[0,0,0,0]:A,h=apt(n.getTextShape(e[0])),g=uhe(c,h),p=o?uhe(o,h):g,m=uhe(l,h);(ds(m)||m===1/0)&&(m=Math.max.apply(null,e.map(function(M){return M.getBBox().width})));var b=e.slice(),C=Zr(f,4);C[0],C[1],C[2],C[3];for(var E=function(M){if(b.forEach(function(N){n.ellipsis(n.getTextShape(N),M,a)}),b=AZ(e,r,f),b.length<1)return{value:void 0}},_=m;_>p+g;_-=g){var F=E(_);if(typeof F=="object")return F.value}}}var N1r={parity:function(e,t){var r=t.seq,n=r===void 0?2:r;return e.filter(function(i,a){return a%n?(zb(i),!1):!0})}},L1r=function(e){return e.filter(Dvr)};function P1r(e,t,r,n){var i=e.length,a=t.keepHeader,o=t.keepTail;if(!(i<=1||i===2&&a&&o)){var s=N1r.parity,l=function(E){return E.forEach(n.show),E},u=2,c=e.slice(),A=e.slice(),f=Math.min.apply(Math,Do([1],Zr(e.map(function(E){return E.getBBox().width})),!1));if(r.type==="linear"&&(J3e(r)||Cpt(r))){var h=fHe(e[0]).left,g=fHe(e[i-1]).right,p=Math.abs(g-h)||1;u=Math.max(Math.floor(i*f/p),u)}var m,b;for(a&&(m=c.splice(0,1)[0]),o&&(b=c.splice(-1,1)[0],c.reverse()),l(c);us)){if(r.type==="linear"&&J3e(r)){if(b(s),p())return}else for(var C=g;C<=s;C++)if(b(C),p())return;u&&b(h)}}var G1r=new Map([["hide",P1r],["rotate",U1r],["ellipsis",O1r],["wrap",j1r]]);function $1r(e,t,r){return t.labelOverlap.length<1?!1:r==="hide"?!_vr(e[0]):r==="rotate"?!e.some(function(n){var i;return!!(!((i=n.attr("transform"))===null||i===void 0)&&i.includes("rotate"))}):r==="ellipsis"||r==="wrap"?e.filter(function(n){return n.querySelector("text")}).length>=1:!0}function z1r(e,t,r,n){var i=t.labelOverlap,a=i===void 0?[]:i;a.length&&a.forEach(function(o){var s=o.type,l=G1r.get(s);$1r(e,t,s)&&(l==null||l(e,o,t,n,r))})}function K1r(){for(var e=[],t=0;t2?[e[0]]:e.split("")}function iyr(e,t){var r=e.attributes,n=r.position,i=r.spacing,a=r.inset,o=r.text,s=e.getBBox(),l=t.getBBox(),u=fZ(n),c=Zr(sp(o?i:0),4),A=c[0],f=c[1],h=c[2],g=c[3],p=Zr(sp(a),4),m=p[0],b=p[1],C=p[2],E=p[3],_=Zr([g+f,A+h],2),F=_[0],M=_[1],N=Zr([E+b,m+C],2),P=N[0],j=N[1];if(u[0]==="l")return new K0(s.x,s.y,l.width+s.width+F+P,Math.max(l.height+j,s.height));if(u[0]==="t")return new K0(s.x,s.y,Math.max(l.width+P,s.width),l.height+s.height+M+j);var z=Zr([t.attributes.width||l.width,t.attributes.height||l.height],2),W=z[0],Y=z[1];return new K0(l.x,l.y,W+s.width+F+P,Y+s.height+M+j)}function ayr(e,t){var r=Object.entries(t).reduce(function(n,i){var a=Zr(i,2),o=a[0],s=a[1],l=e.node().attr(o);return l||(n[o]=s),n},{});e.styles(r)}function oyr(e){var t,r,n,i,a=e,o=a.width,s=a.height,l=a.position,u=Zr([+o/2,+s/2],2),c=u[0],A=u[1],f=Zr([+c,+A,"center","middle"],4),h=f[0],g=f[1],p=f[2],m=f[3],b=fZ(l);return b.includes("l")&&(t=Zr([0,"start"],2),h=t[0],p=t[1]),b.includes("r")&&(r=Zr([+o,"end"],2),h=r[0],p=r[1]),b.includes("t")&&(n=Zr([0,"top"],2),g=n[0],m=n[1]),b.includes("b")&&(i=Zr([+s,"bottom"],2),g=i[0],m=i[1]),{x:h,y:g,textAlign:p,textBaseline:m}}var syr=function(e){_l(t,e);function t(r){return e.call(this,r,{text:"",width:0,height:0,fill:"#4a505a",fontWeight:"bold",fontSize:12,fontFamily:"sans-serif",inset:0,spacing:0,position:"top-left"})||this}return t.prototype.getAvailableSpace=function(){var r=this,n=this.attributes,i=n.width,a=n.height,o=n.position,s=n.spacing,l=n.inset,u=r.querySelector(PHe.text.class);if(!u)return new K0(0,0,+i,+a);var c=u.getBBox(),A=c.width,f=c.height,h=Zr(sp(s),4),g=h[0],p=h[1],m=h[2],b=h[3],C=Zr([0,0,+i,+a],4),E=C[0],_=C[1],F=C[2],M=C[3],N=fZ(o);if(N.includes("i"))return new K0(E,_,F,M);N.forEach(function(se,de){var Ae,be,Le,Ne;se==="t"&&(Ae=Zr(de===0?[f+m,+a-f-m]:[0,+a],2),_=Ae[0],M=Ae[1]),se==="r"&&(be=Zr([+i-A-b],1),F=be[0]),se==="b"&&(Le=Zr([+a-f-g],1),M=Le[0]),se==="l"&&(Ne=Zr(de===0?[A+p,+i-A-p]:[0,+i],2),E=Ne[0],F=Ne[1])});var P=Zr(sp(l),4),j=P[0],z=P[1],W=P[2],Y=P[3],ee=Zr([Y+z,j+W],2),q=ee[0],ae=ee[1];return new K0(E+Y,_+j,F-q,M-ae)},t.prototype.getBBox=function(){return this.title?this.title.getBBox():new K0(0,0,0,0)},t.prototype.render=function(r,n){var i=this;r.width,r.height,r.position,r.spacing;var a=lf(r,["width","height","position","spacing"]),o=Zr(nB(a),1),s=o[0],l=oyr(r),u=l.x,c=l.y,A=l.textAlign,f=l.textBaseline;o1(!!a.text,So(n),function(h){i.title=h.maybeAppendByClassName(PHe.text,"text").styles(s).call(ayr,{x:u,y:c,textAlign:A,textBaseline:f}).node()})},t}(_f);function lyr(e,t,r){var n=r.titlePosition,i=n===void 0?"lb":n,a=r.titleSpacing,o=fZ(i),s=e.node().getLocalBounds(),l=Zr(s.min,2),u=l[0],c=l[1],A=Zr(s.halfExtents,2),f=A[0],h=A[1],g=Zr(t.node().getLocalBounds().halfExtents,2),p=g[0],m=g[1],b=Zr([u+f,c+h],2),C=b[0],E=b[1],_=Zr(sp(a),4),F=_[0],M=_[1],N=_[2],P=_[3];if(["start","end"].includes(i)&&r.type==="linear"){var j=r.startPos,z=r.endPos,W=Zr(i==="start"?[j,z]:[z,j],2),Y=W[0],ee=W[1],q=lpt([-ee[0]+Y[0],-ee[1]+Y[1]]),ae=Zr(wE(q,F),2),se=ae[0],de=ae[1];return{x:Y[0]+se,y:Y[1]+de}}return o.includes("t")&&(E-=h+m+F),o.includes("r")&&(C+=f+p+M),o.includes("l")&&(C-=f+p+P),o.includes("b")&&(E+=h+m+N),{x:C,y:E}}function uyr(e,t,r){var n=e.getGeometryBounds().halfExtents,i=n[1]*2;if(t==="vertical"){if(r==="left")return"rotate(-90) translate(0, ".concat(i/2,")");if(r==="right")return"rotate(-90) translate(0, -".concat(i/2,")")}return""}function UHe(e,t,r,n,i){var a=ul(n,"title"),o=Zr(nB(a),2),s=o[0],l=o[1],u=l.transform,c=l.transformOrigin,A=lf(l,["transform","transformOrigin"]);t.styles(A);var f=u||uyr(e.node(),s.direction,s.position);e.styles(qi(qi({},s),{transformOrigin:c})),upt(e.node(),f);var h=lyr(So(r._offscreen||r.querySelector(Mc.mainGroup.class)),t,n),g=h.x,p=h.y,m=Xb(t.node(),{transform:"translate(".concat(g,", ").concat(p,")")},i);return m}function cyr(e,t,r,n){var i=r.titleText;return e.selectAll(Mc.title.class).data([{title:i}].filter(function(a){return!!a.title}),function(a,o){return a.title}).join(function(a){return a.append(function(){return rB(i)}).attr("className",Mc.title.name).transition(function(){return UHe(So(this),e,t,r,n.enter)})},function(a){return a.transition(function(){return UHe(So(this),e,t,r,n.update)})},function(a){return a.remove()}).transitions()}function HHe(e,t,r,n){var i=e.showLine,a=e.showTick,o=e.showLabel,s=t.maybeAppendByClassName(Mc.lineGroup,"g"),l=o1(i,s,function(h){return I1r(h,e,n)})||[],u=t.maybeAppendByClassName(Mc.tickGroup,"g"),c=o1(a,u,function(h){return nyr(h,r,e,n)})||[],A=t.maybeAppendByClassName(Mc.labelGroup,"g"),f=o1(o,A,function(h){return X1r(h,r,e,n,t.node())})||[];return Do(Do(Do([],Zr(l),!1),Zr(c),!1),Zr(f),!1).filter(function(h){return!!h})}var Ayr=function(e){_l(t,e);function t(r){return e.call(this,r,W3e)||this}return t.prototype.render=function(r,n,i){var a=this,o=r.titleText,s=r.data,l=r.animate,u=r.showTitle,c=r.showGrid,A=r.dataThreshold,f=r.truncRange,h=zvr(s,A).filter(function(F){var M=F.value;return!(f&&M>f[0]&&M1?{width:55,height:0}:{width:0,height:0}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageShape",{get:function(){var r=this.pageViews,n=Zr(rmr(r.map(function(A){var f=A.getBBox(),h=f.width,g=f.height;return[h,g]})).map(function(A){return Math.max.apply(Math,Do([],Zr(A),!1))}),2),i=n[0],a=n[1],o=this.attributes,s=o.pageWidth,l=s===void 0?i:s,u=o.pageHeight,c=u===void 0?a:u;return{pageWidth:l,pageHeight:c}},enumerable:!1,configurable:!0}),t.prototype.getContainer=function(){return this.playWindow},Object.defineProperty(t.prototype,"totalPages",{get:function(){return this.pageViews.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currPage",{get:function(){return this.innerCurrPage},enumerable:!1,configurable:!0}),t.prototype.getBBox=function(){var r=e.prototype.getBBox.call(this),n=r.x,i=r.y,a=this.controllerShape,o=this.pageShape,s=o.pageWidth,l=o.pageHeight;return new K0(n,i,s+a.width,l)},t.prototype.goTo=function(r){var n=this,i=this.attributes.animate,a=this,o=a.currPage,s=a.playState,l=a.playWindow,u=a.pageViews;if(s!=="idle"||r<0||u.length<=0||r>=u.length)return null;u[o].setLocalPosition(0,0),this.prepareFollowingPage(r);var c=Zr(this.getFollowingPageDiff(r),2),A=c[0],f=c[1];this.playState="running";var h=gpt(l,[{transform:"translate(0, 0)"},{transform:"translate(".concat(-A,", ").concat(-f,")")}],i);return sT(h,function(){n.innerCurrPage=r,n.playState="idle",n.setVisiblePages([r]),n.updatePageInfo()}),h},t.prototype.prev=function(){var r=this.attributes.loop,n=this.pageViews.length,i=this.currPage;if(!r&&i<=0)return null;var a=r?(i-1+n)%n:Sf(i-1,0,n);return this.goTo(a)},t.prototype.next=function(){var r=this.attributes.loop,n=this.pageViews.length,i=this.currPage;if(!r&&i>=n-1)return null;var a=r?(i+1)%n:Sf(i+1,0,n);return this.goTo(a)},t.prototype.renderClipPath=function(r){var n=this.pageShape,i=n.pageWidth,a=n.pageHeight;if(!i||!a){this.contentGroup.style.clipPath=void 0;return}this.clipPath=r.maybeAppendByClassName(Z1.clipPath,"rect").styles({width:i,height:a}),this.contentGroup.attr("clipPath",this.clipPath.node())},t.prototype.setVisiblePages=function(r){this.playWindow.children.forEach(function(n,i){r.includes(i)?eP(n):zb(n)})},t.prototype.adjustControllerLayout=function(){var r=this,n=r.prevBtnGroup,i=r.nextBtnGroup,a=r.pageInfoGroup,o=this.attributes,s=o.orientation,l=o.controllerPadding,u=a.getBBox(),c=u.width;u.height;var A=Zr(s==="horizontal"?[-180,0]:[-90,90],2),f=A[0],h=A[1];n.setLocalEulerAngles(f),i.setLocalEulerAngles(h);var g=n.getBBox(),p=g.width,m=g.height,b=i.getBBox(),C=b.width,E=b.height,_=Math.max(p,c,C),F=s==="horizontal"?{offset:[[0,0],[p/2+l,0],[p+c+l*2,0]],textAlign:"start"}:{offset:[[_/2,-m-l],[_/2,0],[_/2,E+l]],textAlign:"center"},M=Zr(F.offset,3),N=Zr(M[0],2),P=N[0],j=N[1],z=Zr(M[1],2),W=z[0],Y=z[1],ee=Zr(M[2],2),q=ee[0],ae=ee[1],se=F.textAlign,de=a.querySelector("text");de&&(de.style.textAlign=se),n.setLocalPosition(P,j),a.setLocalPosition(W,Y),i.setLocalPosition(q,ae)},t.prototype.updatePageInfo=function(){var r,n=this,i=n.currPage,a=n.pageViews,o=n.attributes.formatter;a.length<2||((r=this.pageInfoGroup.querySelector(Z1.pageInfo.class))===null||r===void 0||r.attr("text",o(i+1,a.length)),this.adjustControllerLayout())},t.prototype.getFollowingPageDiff=function(r){var n=this.currPage;if(n===r)return[0,0];var i=this.attributes.orientation,a=this.pageShape,o=a.pageWidth,s=a.pageHeight,l=r=2,u=r.maybeAppendByClassName(Z1.controller,"g");if(sZ(u.node(),l),!!l){var c=ul(this.attributes,"button"),A=ul(this.attributes,"pageNum"),f=Zr(nB(c),2),h=f[0],g=f[1],p=h.size,m=lf(h,["size"]),b=!u.select(Z1.prevBtnGroup.class).node(),C=u.maybeAppendByClassName(Z1.prevBtnGroup,"g").styles(g);this.prevBtnGroup=C.node();var E=C.maybeAppendByClassName(Z1.prevBtn,"path"),_=u.maybeAppendByClassName(Z1.nextBtnGroup,"g").styles(g);this.nextBtnGroup=_.node();var F=_.maybeAppendByClassName(Z1.nextBtn,"path");[E,F].forEach(function(N){N.styles(qi(qi({},m),{transformOrigin:"center"})),j3e(N.node(),p)});var M=u.maybeAppendByClassName(Z1.pageInfoGroup,"g");this.pageInfoGroup=M.node(),M.maybeAppendByClassName(Z1.pageInfo,"text").styles(A),this.updatePageInfo(),u.node().setLocalPosition(o+i,s/2),b&&(this.prevBtnGroup.addEventListener("click",function(){n.prev()}),this.nextBtnGroup.addEventListener("click",function(){n.next()}))}},t.prototype.render=function(r,n){var i=r.x,a=i===void 0?0:i,o=r.y,s=o===void 0?0:o;this.attr("transform","translate(".concat(a,", ").concat(s,")"));var l=So(n);this.renderClipPath(l),this.renderController(l),this.setVisiblePages([this.defaultPage]),this.goTo(this.defaultPage)},t.prototype.bindEvents=function(){var r=this,n=FL(function(){return r.render(r.attributes,r)},50);this.playWindow.addEventListener(Gl.INSERTED,n),this.playWindow.addEventListener(Gl.REMOVED,n)},t}(_f);function hyr(e,t,r){var n=1.4,i=n*r;return[["M",e-r,t-i],["L",e+r,t-i],["L",e+r,t+i],["L",e-r,t+i],["Z"]]}var kpt=1.4,Qpt=.4;function dyr(e,t,r){var n=r,i=n*kpt,a=n/2,o=n/6,s=e+i*Qpt;return[["M",e,t],["L",s,t+a],["L",e+i,t+a],["L",e+i,t-a],["L",s,t-a],["Z"],["M",s,t+o],["L",e+i-2,t+o],["M",s,t-o],["L",e+i-2,t-o]]}function gyr(e,t,r){var n=r,i=n*kpt,a=n/2,o=n/6,s=t+i*Qpt;return[["M",e,t],["L",e-a,s],["L",e-a,t+i],["L",e+a,t+i],["L",e+a,s],["Z"],["M",e-o,s],["L",e-o,t+i-2],["M",e+o,s],["L",e+o,t+i-2]]}Kc.registerSymbol("hiddenHandle",hyr);Kc.registerSymbol("verticalHandle",dyr);Kc.registerSymbol("horizontalHandle",gyr);function E2e(e,t,r){return e===void 0&&(e="horizontal"),e==="horizontal"?t:r}var jl,pyr="component-poptip",wl={CONTAINER:"component-poptip",ARROW:"component-poptip-arrow",TEXT:"component-poptip-text"},jHe=(jl={},jl[".".concat(wl.CONTAINER)]={visibility:"visible",position:"absolute","background-color":"rgba(0, 0, 0)","box-shadow":"0px 0px 10px #aeaeae","border-radius":"3px",color:"#fff",opacity:.8,"font-size":"12px",padding:"4px 6px",display:"flex","justify-content":"center","align-items":"center","z-index":8,transition:"visibility 50ms"},jl[".".concat(wl.TEXT)]={"text-align":"center"},jl[".".concat(wl.CONTAINER,"[data-position='top']")]={transform:"translate(-50%, -100%)"},jl[".".concat(wl.CONTAINER,"[data-position='left']")]={transform:"translate(-100%, -50%)"},jl[".".concat(wl.CONTAINER,"[data-position='right']")]={transform:"translate(0, -50%)"},jl[".".concat(wl.CONTAINER,"[data-position='bottom']")]={transform:"translate(-50%, 0)"},jl[".".concat(wl.CONTAINER,"[data-position='top-left']")]={transform:"translate(0,-100%)"},jl[".".concat(wl.CONTAINER,"[data-position='top-right']")]={transform:"translate(-100%,-100%)"},jl[".".concat(wl.CONTAINER,"[data-position='left-top']")]={transform:"translate(-100%, 0)"},jl[".".concat(wl.CONTAINER,"[data-position='left-bottom']")]={transform:"translate(-100%, -100%)"},jl[".".concat(wl.CONTAINER,"[data-position='right-top']")]={transform:"translate(0, 0)"},jl[".".concat(wl.CONTAINER,"[data-position='right-bottom']")]={transform:"translate(0, -100%)"},jl[".".concat(wl.CONTAINER,"[data-position='bottom-left']")]={transform:"translate(0, 0)"},jl[".".concat(wl.CONTAINER,"[data-position='bottom-right']")]={transform:"translate(-100%, 0)"},jl[".".concat(wl.ARROW)]={width:"4px",height:"4px",transform:"rotate(45deg)","background-color":"rgba(0, 0, 0)",position:"absolute","z-index":-1},jl[".".concat(wl.CONTAINER,"[data-position='top']")]={transform:"translate(-50%, calc(-100% - 5px))"},jl["[data-position='top'] .".concat(wl.ARROW)]={bottom:"-2px"},jl[".".concat(wl.CONTAINER,"[data-position='left']")]={transform:"translate(calc(-100% - 5px), -50%)"},jl["[data-position='left'] .".concat(wl.ARROW)]={right:"-2px"},jl[".".concat(wl.CONTAINER,"[data-position='right']")]={transform:"translate(5px, -50%)"},jl["[data-position='right'] .".concat(wl.ARROW)]={left:"-2px"},jl[".".concat(wl.CONTAINER,"[data-position='bottom']")]={transform:"translate(-50%, 5px)"},jl["[data-position='bottom'] .".concat(wl.ARROW)]={top:"-2px"},jl[".".concat(wl.CONTAINER,"[data-position='top-left']")]={transform:"translate(0, calc(-100% - 5px))"},jl["[data-position='top-left'] .".concat(wl.ARROW)]={left:"10px",bottom:"-2px"},jl[".".concat(wl.CONTAINER,"[data-position='top-right']")]={transform:"translate(-100%, calc(-100% - 5px))"},jl["[data-position='top-right'] .".concat(wl.ARROW)]={right:"10px",bottom:"-2px"},jl[".".concat(wl.CONTAINER,"[data-position='left-top']")]={transform:"translate(calc(-100% - 5px), 0)"},jl["[data-position='left-top'] .".concat(wl.ARROW)]={right:"-2px",top:"8px"},jl[".".concat(wl.CONTAINER,"[data-position='left-bottom']")]={transform:"translate(calc(-100% - 5px), -100%)"},jl["[data-position='left-bottom'] .".concat(wl.ARROW)]={right:"-2px",bottom:"8px"},jl[".".concat(wl.CONTAINER,"[data-position='right-top']")]={transform:"translate(5px, 0)"},jl["[data-position='right-top'] .".concat(wl.ARROW)]={left:"-2px",top:"8px"},jl[".".concat(wl.CONTAINER,"[data-position='right-bottom']")]={transform:"translate(5px, -100%)"},jl["[data-position='right-bottom'] .".concat(wl.ARROW)]={left:"-2px",bottom:"8px"},jl[".".concat(wl.CONTAINER,"[data-position='bottom-left']")]={transform:"translate(0, 5px)"},jl["[data-position='bottom-left'] .".concat(wl.ARROW)]={top:"-2px",left:"8px"},jl[".".concat(wl.CONTAINER,"[data-position='bottom-right']")]={transform:"translate(-100%, 5px)"},jl["[data-position='bottom-right'] .".concat(wl.ARROW)]={top:"-2px",right:"8px"},jl),vyr=void 0;function myr(e,t,r,n,i,a){if(i===void 0&&(i=!1),a===void 0&&(a=!1),a)return[e,t];var o=r.getBoundingClientRect(),s=o.x,l=o.y,u=o.width,c=o.height;switch(n){case"top":return i?[s+u/2,l]:[e,l];case"left":return i?[s,l+c/2]:[s,t];case"bottom":return i?[s+u/2,l+c]:[e,l+c];case"right":return i?[s+u,l+c/2]:[s+u,t];case"top-right":case"right-top":return[s+u,l];case"left-bottom":case"bottom-left":return[s,l+c];case"right-bottom":case"bottom-right":return[s+u,l+c];case"top-left":case"left-top":default:return[s,l]}}var yyr=function(e){var t;return function(){for(var r=[],n=0;n');r.innerHTML=s,_u(a)?r.innerHTML+=a:a&&Oer(a)&&r.appendChild(a),o&&(r.getElementsByClassName(wl.TEXT)[0].textContent=o),this.applyStyles(),this.container.style.visibility=this.visibility},t.prototype.applyStyles=function(){var r=Ad({},jHe,this.style.domStyles),n=Object.entries(r).reduce(function(a,o){var s=Zr(o,2),l=s[0],u=s[1],c=Object.entries(u).reduce(function(A,f){var h=Zr(f,2),g=h[0],p=h[1];return"".concat(A).concat(g,": ").concat(p,";")},"");return"".concat(a).concat(l,"{").concat(c,"}")},"");if(this.domStyles!==n){this.domStyles=n;var i=this.container.querySelector("style");i&&this.container.removeChild(i),i=document.createElement("style"),i.innerHTML=n,this.container.appendChild(i)}},t.prototype.setOffsetPosition=function(r,n,i){i===void 0&&(i=this.style.offset);var a=Zr(i,2),o=a[0],s=o===void 0?0:o,l=a[1],u=l===void 0?0:l;this.container.style.left="".concat(r+s,"px"),this.container.style.top="".concat(n+u,"px")},t.tag="poptip",t.defaultOptions={style:{x:0,y:0,width:0,height:0,target:null,visibility:"hidden",text:"",position:"top",follow:!1,offset:[0,0],domStyles:jHe,template:'
')}},t}(_f),T0=p2({layout:"flex",markerGroup:"marker-group",marker:"marker",labelGroup:"label-group",label:"label",valueGroup:"value-group",value:"value",backgroundGroup:"background-group",background:"background"},"legend-category-item"),Iyr={offset:[0,20],domStyles:{".component-poptip":{opacity:"1",padding:"8px 12px",background:"#fff",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.15)"},".component-poptip-arrow":{display:"none"},".component-poptip-text":{color:"#000",lineHeight:"20px"}}};function Eyr(e){var t=e.querySelector(T0.marker.class);return t?t.style:{}}var Byr=function(e){_l(t,e);function t(r){return e.call(this,r,{span:[1,1],marker:function(){return new IB({style:{r:6}})},markerSize:10,labelFill:"#646464",valueFill:"#646464",labelFontSize:12,valueFontSize:12,labelTextBaseline:"middle",valueTextBaseline:"middle"})||this}return Object.defineProperty(t.prototype,"showValue",{get:function(){var r=this.attributes.valueText;return r?typeof r=="string"||typeof r=="number"?r!=="":typeof r=="function"?!0:r.attr("text")!=="":!1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"actualSpace",{get:function(){var r=this.labelGroup,n=this.valueGroup,i=this.attributes.markerSize,a=r.node().getBBox(),o=a.width,s=a.height,l=n.node().getBBox(),u=l.width,c=l.height;return{markerWidth:i,labelWidth:o,valueWidth:u,height:Math.max(i,s,c)}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"span",{get:function(){var r=this.attributes.span;if(!r)return[1,1];var n=Zr(sp(r),2),i=n[0],a=n[1],o=this.showValue?a:0,s=i+o;return[i/s,o/s]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shape",{get:function(){var r,n=this.attributes,i=n.markerSize,a=n.width,o=this.actualSpace,s=o.markerWidth,l=o.height,u=this.actualSpace,c=u.labelWidth,A=u.valueWidth,f=Zr(this.spacing,2),h=f[0],g=f[1];if(a){var p=a-i-h-g,m=Zr(this.span,2),b=m[0],C=m[1];r=Zr([b*p,C*p],2),c=r[0],A=r[1]}var E=s+c+A+h+g;return{width:E,height:l,markerWidth:s,labelWidth:c,valueWidth:A}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"spacing",{get:function(){var r=this.attributes.spacing;if(!r)return[0,0];var n=Zr(sp(r),2),i=n[0],a=n[1];return this.showValue?[i,a]:[i,0]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"layout",{get:function(){var r=this.shape,n=r.markerWidth,i=r.labelWidth,a=r.valueWidth,o=r.width,s=r.height,l=Zr(this.spacing,2),u=l[0],c=l[1];return{height:s,width:o,markerWidth:n,labelWidth:i,valueWidth:a,position:[n/2,n+u,n+i+u+c]}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scaleSize",{get:function(){var r=Eyr(this.markerGroup.node()),n=this.attributes,i=n.markerSize,a=n.markerStrokeWidth,o=a===void 0?r.strokeWidth:a,s=n.markerLineWidth,l=s===void 0?r.lineWidth:s,u=n.markerStroke,c=u===void 0?r.stroke:u,A=+(o||l||(c?1:0))*Math.sqrt(2),f=this.markerGroup.node().getBBox(),h=f.width,g=f.height;return(1-A/Math.max(h,g))*i},enumerable:!1,configurable:!0}),t.prototype.renderMarker=function(r){var n=this,i=this.attributes.marker,a=ul(this.attributes,"marker");this.markerGroup=r.maybeAppendByClassName(T0.markerGroup,"g").style("zIndex",0),o1(!!i,this.markerGroup,function(){var o,s=n.markerGroup.node(),l=(o=s.childNodes)===null||o===void 0?void 0:o[0],u=typeof i=="string"?new Kc({style:{symbol:i},className:T0.marker.name}):i();l?u.nodeName===l.nodeName?l instanceof Kc?l.update(qi(qi({},a),{symbol:i})):(Jvr(l,u),So(l).styles(a)):(l.remove(),So(u).attr("className",T0.marker.name).styles(a),s.appendChild(u)):(u instanceof Kc||So(u).attr("className",T0.marker.name).styles(a),s.appendChild(u)),n.markerGroup.node().scale(1/n.markerGroup.node().getScale()[0]);var c=j3e(n.markerGroup.node(),n.scaleSize);n.markerGroup.node().style._transform="scale(".concat(c,")")})},t.prototype.renderLabel=function(r){var n=ul(this.attributes,"label"),i=n.text,a=lf(n,["text"]);this.labelGroup=r.maybeAppendByClassName(T0.labelGroup,"g").style("zIndex",0),this.labelGroup.maybeAppendByClassName(T0.label,function(){return rB(i)}).styles(a)},t.prototype.renderValue=function(r){var n=this,i=ul(this.attributes,"value"),a=i.text,o=lf(i,["text"]);this.valueGroup=r.maybeAppendByClassName(T0.valueGroup,"g").style("zIndex",0),o1(this.showValue,this.valueGroup,function(){n.valueGroup.maybeAppendByClassName(T0.value,function(){return rB(a)}).styles(o)})},t.prototype.createPoptip=function(){var r=this.attributes.poptip,n=r||{};n.render;var i=lf(n,["render"]),a=new Cyr({style:Ad(Iyr,i)});return this.poptipGroup=a,a},t.prototype.bindPoptip=function(r){var n=this,i=this.attributes.poptip;if(i){var a=this.poptipGroup||this.createPoptip();a.bind(r,function(){var o=n.attributes,s=o.labelText,l=o.valueText,u=o.markerFill,c=typeof s=="string"?s:s==null?void 0:s.attr("text"),A=typeof l=="string"?l:l==null?void 0:l.attr("text");if(typeof i.render=="function")return{html:i.render({label:c,value:A,color:u})};var f="";return(typeof c=="string"||typeof c=="number")&&(f+='
'.concat(c,"
")),(typeof A=="string"||typeof A=="number")&&(f+='
'.concat(A,"
")),{html:f}})}},t.prototype.renderPoptip=function(r){var n=this,i=this.attributes.poptip;if(i){var a=r.maybeAppendByClassName(T0.value,"g").node(),o=r.maybeAppendByClassName(T0.label,"g").node();[a,o].forEach(function(s){s&&n.bindPoptip(s)})}},t.prototype.renderBackground=function(r){var n=this.shape,i=n.width,a=n.height,o=ul(this.attributes,"background");this.background=r.maybeAppendByClassName(T0.backgroundGroup,"g").style("zIndex",-1),this.background.maybeAppendByClassName(T0.background,"rect").styles(qi({width:i,height:a},o))},t.prototype.adjustLayout=function(){var r=this.layout,n=r.labelWidth,i=r.valueWidth,a=r.height,o=Zr(r.position,3),s=o[0],l=o[1],u=o[2],c=a/2;this.markerGroup.styles({transform:"translate(".concat(s,", ").concat(c,")").concat(this.markerGroup.node().style._transform)}),this.labelGroup.styles({transform:"translate(".concat(l,", ").concat(c,")")}),m2e(this.labelGroup.select(T0.label.class).node(),Math.ceil(n)),this.showValue&&(this.valueGroup.styles({transform:"translate(".concat(u,", ").concat(c,")")}),m2e(this.valueGroup.select(T0.value.class).node(),Math.ceil(i)))},t.prototype.render=function(r,n){var i=So(n),a=r.x,o=a===void 0?0:a,s=r.y,l=s===void 0?0:s;i.styles({transform:"translate(".concat(o,", ").concat(l,")")}),this.renderMarker(i),this.renderLabel(i),this.renderValue(i),this.renderBackground(i),this.renderPoptip(i),this.adjustLayout()},t}(_f),m4=p2({page:"item-page",navigator:"navigator",item:"item"},"items"),GHe=function(e,t,r){return r===void 0&&(r=!0),e?t(e):r},xyr=function(e){_l(t,e);function t(r){var n=e.call(this,r,{data:[],gridRow:1/0,gridCol:void 0,padding:0,width:1e3,height:100,rowPadding:0,colPadding:0,layout:"flex",orientation:"horizontal",click:Uoe,mouseenter:Uoe,mouseleave:Uoe})||this;return n.navigatorShape=[0,0],n}return Object.defineProperty(t.prototype,"pageViews",{get:function(){return this.navigator.getContainer()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"grid",{get:function(){var r=this.attributes,n=r.gridRow,i=r.gridCol,a=r.data;if(!n&&!i)throw new Error("gridRow and gridCol can not be set null at the same time");return n&&i?[n,i]:n?[n,a.length]:[a.length,i]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"renderData",{get:function(){var r=this.attributes,n=r.data,i=r.layout,a=r.poptip,o=ul(this.attributes,"item"),s=n.map(function(l,u){var c=l.id,A=c===void 0?u:c,f=l.label,h=l.value;return{id:"".concat(A),index:u,style:qi({layout:i,labelText:f,valueText:h,poptip:a},Object.fromEntries(Object.entries(o).map(function(g){var p=Zr(g,2),m=p[0],b=p[1];return[m,h1(b,[l,u,n])]})))}});return s},enumerable:!1,configurable:!0}),t.prototype.getGridLayout=function(){var r=this,n=this.attributes,i=n.orientation,a=n.width,o=n.rowPadding,s=n.colPadding,l=Zr(this.navigatorShape,1),u=l[0],c=Zr(this.grid,2),A=c[0],f=c[1],h=f*A,g=0;return this.pageViews.children.map(function(p,m){var b,C,E=Math.floor(m/h),_=m%h,F=r.ifHorizontal(f,A),M=[Math.floor(_/F),_%F];i==="vertical"&&M.reverse();var N=Zr(M,2),P=N[0],j=N[1],z=(a-u-(f-1)*s)/f,W=p.getBBox().height,Y=Zr([0,0],2),ee=Y[0],q=Y[1];return i==="horizontal"?(b=Zr([g,P*(W+o)],2),ee=b[0],q=b[1],g=j===f-1?0:g+z+s):(C=Zr([j*(z+s),g],2),ee=C[0],q=C[1],g=P===A-1?0:g+W+o),{page:E,index:m,row:P,col:j,pageIndex:_,width:z,height:W,x:ee,y:q}})},t.prototype.getFlexLayout=function(){var r=this.attributes,n=r.width,i=r.height,a=r.rowPadding,o=r.colPadding,s=Zr(this.navigatorShape,1),l=s[0],u=Zr(this.grid,2),c=u[0],A=u[1],f=Zr([n-l,i],2),h=f[0],g=f[1],p=Zr([0,0,0,0,0,0,0,0],8),m=p[0],b=p[1],C=p[2],E=p[3],_=p[4],F=p[5],M=p[6],N=p[7];return this.pageViews.children.map(function(P,j){var z,W,Y,ee,q=P.getBBox(),ae=q.width,se=q.height,de=M===0?0:o,Ae=M+de+ae;if(Ae<=h&&GHe(_,function(Le){return Le0?(this.navigatorShape=[55,0],r.call(this)):n},enumerable:!1,configurable:!0}),t.prototype.ifHorizontal=function(r,n){var i=this.attributes.orientation;return E2e(i,r,n)},t.prototype.flattenPage=function(r){r.querySelectorAll(m4.item.class).forEach(function(n){r.appendChild(n)}),r.querySelectorAll(m4.page.class).forEach(function(n){var i=r.removeChild(n);i.destroy()})},t.prototype.renderItems=function(r){var n=this.attributes,i=n.click,a=n.mouseenter,o=n.mouseleave;this.flattenPage(r);var s=this.dispatchCustomEvent.bind(this);So(r).selectAll(m4.item.class).data(this.renderData,function(l){return l.id}).join(function(l){return l.append(function(u){var c=u.style;return new Byr({style:c})}).attr("className",m4.item.name).on("click",function(){i==null||i(this),s("itemClick",{item:this})}).on("pointerenter",function(){a==null||a(this),s("itemMouseenter",{item:this})}).on("pointerleave",function(){o==null||o(this),s("itemMouseleave",{item:this})})},function(l){return l.each(function(u){var c=u.style;this.update(c)})},function(l){return l.remove()})},t.prototype.relayoutNavigator=function(){var r,n=this.attributes,i=n.layout,a=n.width,o=((r=this.pageViews.children[0])===null||r===void 0?void 0:r.getBBox().height)||0,s=Zr(this.navigatorShape,2),l=s[0],u=s[1];this.navigator.update(i==="grid"?{pageWidth:a-l,pageHeight:o-u}:{})},t.prototype.adjustLayout=function(){var r=this,n=Object.entries(Mvr(this.itemsLayout,"page")).map(function(a){var o=Zr(a,2),s=o[0],l=o[1];return{page:s,layouts:l}}),i=Do([],Zr(this.navigator.getContainer().children),!1);n.forEach(function(a){var o=a.layouts,s=r.pageViews.appendChild(new zd({className:m4.page.name}));o.forEach(function(l){var u=l.x,c=l.y,A=l.index,f=l.width,h=l.height,g=i[A];s.appendChild(g),tN(g,"__layout__",l),g.update({x:u,y:c,width:f,height:h})})}),this.relayoutNavigator()},t.prototype.renderNavigator=function(r){var n=this.attributes.orientation,i=ul(this.attributes,"nav"),a=Ad({orientation:n},i),o=this;return r.selectAll(m4.navigator.class).data(["nav"]).join(function(s){return s.append(function(){return new fyr({style:a})}).attr("className",m4.navigator.name).each(function(){o.navigator=this})},function(s){return s.each(function(){this.update(a)})},function(s){return s.remove()}),this.navigator},t.prototype.getBBox=function(){return this.navigator.getBBox()},t.prototype.render=function(r,n){var i=this.attributes.data;if(!(!i||i.length===0)){var a=this.renderNavigator(So(n));this.renderItems(a.getContainer()),this.adjustLayout()}},t.prototype.dispatchCustomEvent=function(r,n){var i=new nd(r,{detail:n});this.dispatchEvent(i)},t}(_f),KF=p2({markerGroup:"marker-group",marker:"marker",labelGroup:"label-group",label:"label"},"handle"),_pt={showLabel:!0,formatter:function(e){return e.toString()},markerSize:25,markerStroke:"#c5c5c5",markerFill:"#fff",markerLineWidth:1,labelFontSize:12,labelFill:"#c5c5c5",labelText:"",orientation:"vertical",spacing:0};(function(e){_l(t,e);function t(r){return e.call(this,r,_pt)||this}return t.prototype.render=function(r,n){var i=So(n).maybeAppendByClassName(KF.markerGroup,"g");this.renderMarker(i);var a=So(n).maybeAppendByClassName(KF.labelGroup,"g");this.renderLabel(a)},t.prototype.renderMarker=function(r){var n=this,i=this.attributes,a=i.orientation,o=i.markerSymbol,s=o===void 0?E2e(a,"horizontalHandle","verticalHandle"):o;o1(!!s,r,function(l){var u=ul(n.attributes,"marker"),c=qi({symbol:s},u);n.marker=l.maybeAppendByClassName(KF.marker,function(){return new Kc({style:c})}).update(c)})},t.prototype.renderLabel=function(r){var n=this,i=this.attributes,a=i.showLabel,o=i.orientation,s=i.spacing,l=s===void 0?0:s,u=i.formatter;o1(a,r,function(c){var A,f=ul(n.attributes,"label"),h=f.text,g=lf(f,["text"]),p=((A=c.select(KF.marker.class))===null||A===void 0?void 0:A.node().getBBox())||{},m=p.width,b=m===void 0?0:m,C=p.height,E=C===void 0?0:C,_=Zr(E2e(o,[0,E+l,"center","top"],[b+l,0,"start","middle"]),4),F=_[0],M=_[1],N=_[2],P=_[3];c.maybeAppendByClassName(KF.label,"text").styles(qi(qi({},g),{x:F,y:M,text:u(h).toString(),textAlign:N,textBaseline:P}))})},t})(_f);var Tpt={showTitle:!0,padding:0,orientation:"horizontal",backgroundFill:"transparent",titleText:"",titleSpacing:4,titlePosition:"top-left",titleFill:"#2C3542",titleFontWeight:"bold",titleFontFamily:"sans-serif",titleFontSize:12},Syr=Ad({},Tpt,{});Ad({},Tpt,L8(_pt,"handle"),{color:["#d0e3fa","#acc7f6","#8daaf2","#6d8eea","#4d73cd","#325bb1","#5a3e75","#8c3c79","#e23455","#e7655b"],indicatorBackgroundFill:"#262626",indicatorLabelFill:"white",indicatorLabelFontSize:12,indicatorVisibility:"hidden",labelAlign:"value",labelDirection:"positive",labelSpacing:5,showHandle:!0,showIndicator:!0,showLabel:!0,slidable:!0,titleText:"",type:"continuous"});var VF=p2({title:"title",titleGroup:"title-group",items:"items",itemsGroup:"items-group",contentGroup:"content-group",ribbonGroup:"ribbon-group",ribbon:"ribbon",handlesGroup:"handles-group",handle:"handle",startHandle:"start-handle",endHandle:"end-handle",labelGroup:"label-group",label:"label",indicator:"indicator"},"legend"),kyr=function(e){_l(t,e);function t(r){return e.call(this,r,Syr)||this}return t.prototype.renderTitle=function(r,n,i){var a=this.attributes,o=a.showTitle,s=a.titleText,l=ul(this.attributes,"title"),u=Zr(nB(l),2),c=u[0],A=u[1];this.titleGroup=r.maybeAppendByClassName(VF.titleGroup,"g").styles(A);var f=qi(qi({width:n,height:i},c),{text:o?s:""});this.title=this.titleGroup.maybeAppendByClassName(VF.title,function(){return new syr({style:f})}).update(f)},t.prototype.renderItems=function(r,n){var i=n.x,a=n.y,o=n.width,s=n.height,l=ul(this.attributes,"title",!0),u=Zr(nB(l),2),c=u[0],A=u[1],f=qi(qi({},c),{width:o,height:s,x:0,y:0});this.itemsGroup=r.maybeAppendByClassName(VF.itemsGroup,"g").styles(qi(qi({},A),{transform:"translate(".concat(i,", ").concat(a,")")}));var h=this;this.itemsGroup.selectAll(VF.items.class).data(["items"]).join(function(g){return g.append(function(){return new xyr({style:f})}).attr("className",VF.items.name).each(function(){h.items=So(this)})},function(g){return g.update(f)},function(g){return g.remove()})},t.prototype.adjustLayout=function(){var r=this.attributes.showTitle;if(r){var n=this.title.node().getAvailableSpace(),i=n.x,a=n.y;this.itemsGroup.node().style.transform="translate(".concat(i,", ").concat(a,")")}},Object.defineProperty(t.prototype,"availableSpace",{get:function(){var r=this.attributes,n=r.showTitle,i=r.width,a=r.height;return n?this.title.node().getAvailableSpace():new K0(0,0,i,a)},enumerable:!1,configurable:!0}),t.prototype.getBBox=function(){var r,n,i=(r=this.title)===null||r===void 0?void 0:r.node(),a=(n=this.items)===null||n===void 0?void 0:n.node();return!i||!a?e.prototype.getBBox.call(this):iyr(i,a)},t.prototype.render=function(r,n){var i=this.attributes,a=i.width,o=i.height,s=i.x,l=s===void 0?0:s,u=i.y,c=u===void 0?0:u,A=So(n);n.style.transform="translate(".concat(l,", ").concat(c,")"),this.renderTitle(A,a,o),this.renderItems(A,this.availableSpace),this.adjustLayout()},t}(_f),Qyr={backgroundFill:"#262626",backgroundLineCap:"round",backgroundLineWidth:1,backgroundStroke:"#333",backgroundZIndex:-1,formatter:function(e){return e.toString()},labelFill:"#fff",labelFontSize:12,labelTextBaseline:"middle",padding:[2,4],position:"right",radius:0,zIndex:999},che=p2({background:"background",labelGroup:"label-group",label:"label"},"indicator"),_yr=function(e){_l(t,e);function t(r){var n=e.call(this,r,Qyr)||this;return n.point=[0,0],n.group=n.appendChild(new zd({})),n.isMutationObserved=!0,n}return t.prototype.renderBackground=function(){if(this.label){var r=this.attributes,n=r.position,i=r.padding,a=Zr(sp(i),4),o=a[0],s=a[1],l=a[2],u=a[3],c=this.label.node().getLocalBounds(),A=c.min,f=c.max,h=new K0(A[0]-u,A[1]-o,f[0]+s-A[0]+u,f[1]+l-A[1]+o),g=this.getPath(n,h),p=ul(this.attributes,"background");this.background=So(this.group).maybeAppendByClassName(che.background,"path").styles(qi(qi({},p),{d:g})),this.group.appendChild(this.label.node())}},t.prototype.renderLabel=function(){var r=this.attributes,n=r.formatter,i=r.labelText,a=ul(this.attributes,"label"),o=Zr(nB(a),2),s=o[0],l=o[1];s.text;var u=lf(s,["text"]);if(this.label=So(this.group).maybeAppendByClassName(che.labelGroup,"g").styles(l),!!i){var c=this.label.maybeAppendByClassName(che.label,function(){return rB(n(i))}).style("text",n(i).toString());c.selectAll("text").styles(u)}},t.prototype.adjustLayout=function(){var r=Zr(this.point,2),n=r[0],i=r[1],a=this.attributes,o=a.x,s=a.y;this.group.attr("transform","translate(".concat(o-n,", ").concat(s-i,")"))},t.prototype.getPath=function(r,n){var i=this.attributes.radius,a=n.x,o=n.y,s=n.width,l=n.height,u=[["M",a+i,o],["L",a+s-i,o],["A",i,i,0,0,1,a+s,o+i],["L",a+s,o+l-i],["A",i,i,0,0,1,a+s-i,o+l],["L",a+i,o+l],["A",i,i,0,0,1,a,o+l-i],["L",a,o+i],["A",i,i,0,0,1,a+i,o],["Z"]],c={top:4,right:6,bottom:0,left:2},A=c[r],f=this.createCorner([u[A].slice(-2),u[A+1].slice(-2)]);return u.splice.apply(u,Do([A+1,1],Zr(f),!1)),u[0][0]="M",u},t.prototype.createCorner=function(r,n){n===void 0&&(n=10);var i=.8,a=qvr.apply(void 0,Do([],Zr(r),!1)),o=Zr(r,2),s=Zr(o[0],2),l=s[0],u=s[1],c=Zr(o[1],2),A=c[0],f=c[1],h=Zr(a?[A-l,[l,A]]:[f-u,[u,f]],2),g=h[0],p=Zr(h[1],2),m=p[0],b=p[1],C=g/2,E=g/Math.abs(g),_=n*E,F=_/2,M=_*Math.sqrt(3)/2*i,N=Zr([m,m+C-F,m+C,m+C+F,b],5),P=N[0],j=N[1],z=N[2],W=N[3],Y=N[4];return a?(this.point=[z,u-M],[["L",P,u],["L",j,u],["L",z,u-M],["L",W,u],["L",Y,u]]):(this.point=[l+M,z],[["L",l,P],["L",l,j],["L",l+M,z],["L",l,W],["L",l,Y]])},t.prototype.applyVisibility=function(){var r=this.attributes.visibility;r==="hidden"?zb(this):eP(this)},t.prototype.bindEvents=function(){this.label.on(Gl.BOUNDS_CHANGED,this.renderBackground)},t.prototype.render=function(){this.renderLabel(),this.renderBackground(),this.adjustLayout(),this.applyVisibility()},t}(_f);function B2e(e){return e===void 0&&(e=""),{CONTAINER:"".concat(e,"tooltip"),TITLE:"".concat(e,"tooltip-title"),LIST:"".concat(e,"tooltip-list"),LIST_ITEM:"".concat(e,"tooltip-list-item"),NAME:"".concat(e,"tooltip-list-item-name"),MARKER:"".concat(e,"tooltip-list-item-marker"),NAME_LABEL:"".concat(e,"tooltip-list-item-name-label"),VALUE:"".concat(e,"tooltip-list-item-value"),CROSSHAIR_X:"".concat(e,"tooltip-crosshair-x"),CROSSHAIR_Y:"".concat(e,"tooltip-crosshair-y")}}var $He={overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis"};function Tyr(e){var t;e===void 0&&(e="");var r=B2e(e);return t={},t[".".concat(r.CONTAINER)]={position:"absolute",visibility:"visible","z-index":8,transition:"visibility 0.2s cubic-bezier(0.23, 1, 0.32, 1), left 0.4s cubic-bezier(0.23, 1, 0.32, 1), top 0.4s cubic-bezier(0.23, 1, 0.32, 1)","background-color":"rgba(255, 255, 255, 0.96)","box-shadow":"0 6px 12px 0 rgba(0, 0, 0, 0.12)","border-radius":"4px",color:"rgba(0, 0, 0, 0.65)","font-size":"12px","line-height":"20px",padding:"12px","min-width":"120px","max-width":"360px","font-family":"Roboto-Regular"},t[".".concat(r.TITLE)]={color:"rgba(0, 0, 0, 0.45)"},t[".".concat(r.LIST)]={margin:"0px","list-style-type":"none",padding:"0px"},t[".".concat(r.LIST_ITEM)]={"list-style-type":"none",display:"flex","line-height":"2em","align-items":"center","justify-content":"space-between","white-space":"nowrap"},t[".".concat(r.MARKER)]={width:"8px",height:"8px","border-radius":"50%",display:"inline-block","margin-right":"4px"},t[".".concat(r.NAME)]={display:"flex","align-items":"center","max-width":"216px"},t[".".concat(r.NAME_LABEL)]=qi({flex:1},$He),t[".".concat(r.VALUE)]=qi({display:"inline-block",float:"right",flex:1,"text-align":"right","min-width":"28px","margin-left":"30px",color:"rgba(0, 0, 0, 0.85)"},$He),t[".".concat(r.CROSSHAIR_X)]={position:"absolute",width:"1px","background-color":"rgba(0, 0, 0, 0.25)"},t[".".concat(r.CROSSHAIR_Y)]={position:"absolute",height:"1px","background-color":"rgba(0, 0, 0, 0.25)"},t}var Dyr=function(e){_l(t,e);function t(r){var n=this,i,a,o=(a=(i=r.style)===null||i===void 0?void 0:i.template)===null||a===void 0?void 0:a.prefixCls,s=B2e(o);return n=e.call(this,r,{data:[],x:0,y:0,visibility:"visible",title:"",position:"bottom-right",offset:[5,5],enterable:!1,container:{x:0,y:0},bounding:null,template:{prefixCls:"",container:'
'),title:'
'),item:'
  • {name} {value}
  • `)},style:Tyr(o)})||this,n.timestamp=-1,n.prevCustomContentKey=n.attributes.contentKey,n.initShape(),n.render(n.attributes,n),n}return Object.defineProperty(t.prototype,"HTMLTooltipElement",{get:function(){return this.element},enumerable:!1,configurable:!0}),t.prototype.getContainer=function(){return this.element},Object.defineProperty(t.prototype,"elementSize",{get:function(){var r=this.element.offsetWidth,n=this.element.offsetHeight;return{width:r,height:n}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HTMLTooltipItemsElements",{get:function(){var r=this.attributes,n=r.data,i=r.template;return n.map(function(a,o){var s=a.name,l=s===void 0?"":s,u=a.color,c=u===void 0?"black":u,A=a.index,f=lf(a,["name","color","index"]),h=qi({name:l,color:c,index:A??o},f);return Tbe(Qer(i.item,h))})},enumerable:!1,configurable:!0}),t.prototype.render=function(r,n){this.renderHTMLTooltipElement(),this.updatePosition()},t.prototype.destroy=function(){var r;(r=this.element)===null||r===void 0||r.remove(),e.prototype.destroy.call(this)},t.prototype.show=function(r,n){var i=this;if(r!==void 0&&n!==void 0){var a=this.element.style.visibility==="hidden",o=function(){i.attributes.x=r??i.attributes.x,i.attributes.y=n??i.attributes.y,i.updatePosition()};a?this.closeTransition(o):o()}this.element.style.visibility="visible"},t.prototype.hide=function(r,n){r===void 0&&(r=0),n===void 0&&(n=0);var i=this.attributes.enterable;i&&this.isCursorEntered(r,n)||(this.element.style.visibility="hidden")},t.prototype.initShape=function(){var r=this.attributes.template;this.element=Tbe(r.container),this.id&&this.element.setAttribute("id",this.id)},t.prototype.renderCustomContent=function(){if(!(this.prevCustomContentKey!==void 0&&this.prevCustomContentKey===this.attributes.contentKey)){this.prevCustomContentKey=this.attributes.contentKey;var r=this.attributes.content;r&&(typeof r=="string"?this.element.innerHTML=r:dHe(this.element,r))}},t.prototype.renderHTMLTooltipElement=function(){var r,n,i=this.attributes,a=i.template,o=i.title,s=i.enterable,l=i.style,u=i.content,c=B2e(a.prefixCls),A=this.element;if(this.element.style.pointerEvents=s?"auto":"none",u)this.renderCustomContent();else{o?(A.innerHTML=a.title,A.getElementsByClassName(c.TITLE)[0].innerHTML=o):(n=(r=A.getElementsByClassName(c.TITLE))===null||r===void 0?void 0:r[0])===null||n===void 0||n.remove();var f=this.HTMLTooltipItemsElements,h=document.createElement("ul");h.className=c.LIST,dHe(h,f);var g=this.element.querySelector(".".concat(c.LIST));g?g.replaceWith(h):A.appendChild(h)}emr(A,l)},t.prototype.getRelativeOffsetFromCursor=function(r){var n=this.attributes,i=n.position,a=n.offset,o=r||i,s=o.split("-"),l={left:[-1,0],right:[1,0],top:[0,-1],bottom:[0,1]},u=this.elementSize,c=u.width,A=u.height,f=[-c/2,-A/2];return s.forEach(function(h){var g=Zr(f,2),p=g[0],m=g[1],b=Zr(l[h],2),C=b[0],E=b[1];f=[p+(c/2+a[0])*C,m+(A/2+a[1])*E]}),f},t.prototype.setOffsetPosition=function(r){var n=Zr(r,2),i=n[0],a=n[1],o=this.attributes,s=o.x,l=s===void 0?0:s,u=o.y,c=u===void 0?0:u,A=o.container,f=A.x,h=A.y;this.element.style.left="".concat(+l+f+i,"px"),this.element.style.top="".concat(+c+h+a,"px")},t.prototype.updatePosition=function(){var r=this.attributes.showDelay,n=r===void 0?60:r,i=Date.now();this.timestamp>0&&i-this.timestampC+_,top:mE+F},N=[];c.split("-").forEach(function(j){M[j]?N.push(b[j]):N.push(j)});var P=N.join("-");return this.getRelativeOffsetFromCursor(P)},t.prototype.isCursorEntered=function(r,n){if(this.element){var i=this.element.getBoundingClientRect(),a=i.x,o=i.y,s=i.width,l=i.height;return new K0(a,o,s,l).isPointIn(r,n)}return!1},t.prototype.closeTransition=function(r){var n=this,i=this.element.style.transition;this.element.style.transition="none",r(),setTimeout(function(){n.element.style.transition=i},10)},t.tag="tooltip",t}(_f),Fyr=function(e){_l(t,e);function t(r){var n=e.call(this,Ad({},t.defaultOptions,r))||this;return n.hoverColor="#f5f5f5",n.selectedColor="#e6f7ff",n.background=n.appendChild(new op({})),n.label=n.background.appendChild(new zd({})),n}return Object.defineProperty(t.prototype,"padding",{get:function(){return sp(this.style.padding)},enumerable:!1,configurable:!0}),t.prototype.renderLabel=function(){var r=this.style,n=r.label,i=r.value,a=ul(this.attributes,"label");So(this.label).maybeAppend(".label",function(){return rB(n)}).attr("className","label").styles(a),this.label.attr("__data__",i)},t.prototype.renderBackground=function(){var r=this.label.getBBox(),n=Zr(this.padding,4),i=n[0],a=n[1],o=n[2],s=n[3],l=r.width,u=r.height,c=l+s+a,A=u+i+o,f=ul(this.attributes,"background"),h=this.style,g=h.width,p=g===void 0?0:g,m=h.height,b=m===void 0?0:m,C=h.selected;this.background.attr(qi(qi({},f),{width:Math.max(c,p),height:Math.max(A,b),fill:C?this.selectedColor:"#fff"})),this.label.attr({transform:"translate(".concat(s,", ").concat((A-u)/2,")")})},t.prototype.render=function(){this.renderLabel(),this.renderBackground()},t.prototype.bindEvents=function(){var r=this;this.addEventListener("pointerenter",function(){r.style.selected||r.background.attr("fill",r.hoverColor)}),this.addEventListener("pointerleave",function(){r.style.selected||r.background.attr("fill",r.style.backgroundFill)});var n=this;this.addEventListener("click",function(){var i=r.style,a=i.label,o=i.value,s=i.onClick;s==null||s(o,{label:a,value:o},n)})},t.defaultOptions={style:{value:"",label:"",cursor:"pointer"}},t}(_f),Ryr=function(e){_l(t,e);function t(r){var n,i,a=e.call(this,Ad({},t.defaultOptions,r))||this;a.currentValue=(n=t.defaultOptions.style)===null||n===void 0?void 0:n.defaultValue,a.isPointerInSelect=!1,a.select=a.appendChild(new op({className:"select",style:{cursor:"pointer",width:0,height:0}})),a.dropdown=a.appendChild(new op({className:"dropdown"}));var o=a.style.defaultValue;return o&&(!((i=a.style.options)===null||i===void 0)&&i.some(function(s){return s.value===o}))&&(a.currentValue=o),a}return t.prototype.setValue=function(r){this.currentValue=r,this.render()},t.prototype.getValue=function(){return this.currentValue},Object.defineProperty(t.prototype,"dropdownPadding",{get:function(){return sp(this.style.dropdownPadding)},enumerable:!1,configurable:!0}),t.prototype.renderSelect=function(){var r=this,n,i=this.style,a=i.x,o=i.y,s=i.width,l=i.height,u=i.bordered,c=i.showDropdownIcon,A=ul(this.attributes,"select"),f=ul(this.attributes,"placeholder");this.select.attr(qi(qi({x:a,y:o,width:s,height:l},A),{fill:"#fff",strokeWidth:u?1:0}));var h=this.dropdownPadding,g=10;c&&So(this.select).maybeAppend(".dropdown-icon","path").style("d","M-5,-3.5 L0,3.5 L5,-3.5").style("transform","translate(".concat(a+s-g-h[1]-h[3],", ").concat(o+l/2,")")).style("lineWidth",1).style("stroke",this.select.style.stroke);var p=(n=this.style.options)===null||n===void 0?void 0:n.find(function(E){return E.value===r.currentValue}),m=qi({x:a+h[3]},f);So(this.select).selectAll(".placeholder").data(p?[]:[1]).join(function(E){return E.append("text").attr("className","placeholder").styles(m).style("y",function(){var _=this.getBBox();return o+(l-_.height)/2})},function(E){return E.styles(m)},function(E){return E.remove()});var b=ul(this.attributes,"optionLabel"),C=qi({x:a+h[3]},b);So(this.select).selectAll(".value").data(p?[p]:[]).join(function(E){return E.append(function(_){return rB(_.label)}).attr("className","value").styles(C).style("y",function(){var _=this.getBBox();return o+(l-_.height)/2})},function(E){return E.styles(C)},function(E){return E.remove()})},t.prototype.renderDropdown=function(){var r=this,n,i,a=this.style,o=a.x,s=a.y,l=a.width,u=a.height,c=a.options,A=a.onSelect,f=a.open,h=ul(this.attributes,"dropdown"),g=ul(this.attributes,"option"),p=this.dropdownPadding;So(this.dropdown).maybeAppend(".dropdown-container","g").attr("className","dropdown-container").selectAll(".dropdown-item").data(c,function(C){return C.value}).join(function(C){return C.append(function(E){return new Fyr({className:"dropdown-item",style:qi(qi(qi({},E),g),{width:l-p[1]-p[3],selected:E.value===r.currentValue,onClick:function(_,F,M){r.setValue(_),A==null||A(_,F,M),r.dispatchEvent(new nd("change",{detail:{value:_,option:F,item:M}})),zb(r.dropdown)}})})}).each(function(E,_){var F,M=(F=this.parentNode)===null||F===void 0?void 0:F.children,N=M.reduce(function(P,j,z){return z<_&&(P+=j.getBBox().height),P},0);this.attr("transform","translate(".concat(p[3],", ").concat(p[0]+N,")"))})},function(C){return C.update(function(E){return{selected:E.value===r.currentValue}})},function(C){return C.remove()});var m=(i=(n=this.dropdown.getElementsByClassName("dropdown-container"))===null||n===void 0?void 0:n[0])===null||i===void 0?void 0:i.getBBox(),b=h.spacing;this.dropdown.attr(qi({transform:"translate(".concat(o,", ").concat(s+u+b,")"),width:m.width+p[1]+p[3],height:m.height+p[0]+p[2]},h)),!f&&zb(this.dropdown)},t.prototype.render=function(){this.renderSelect(),this.renderDropdown()},t.prototype.bindEvents=function(){var r=this;this.addEventListener("click",function(n){n.stopPropagation()}),this.select.addEventListener("click",function(){r.dropdown.style.visibility==="visible"?zb(r.dropdown):eP(r.dropdown)}),this.addEventListener("pointerenter",function(){r.isPointerInSelect=!0}),this.addEventListener("pointerleave",function(){r.isPointerInSelect=!1}),document==null||document.addEventListener("click",function(){r.isPointerInSelect||zb(r.dropdown)})},t.defaultOptions={style:{x:0,y:0,width:140,height:32,options:[],bordered:!0,defaultValue:"",selectRadius:8,selectStroke:"#d9d9d9",showDropdownIcon:!0,placeholderText:"请选择",placeholderFontSize:12,placeholderTextBaseline:"top",placeholderFill:"#c2c2c2",dropdownFill:"#fff",dropdownStroke:"#d9d9d9",dropdownRadius:8,dropdownShadowBlur:4,dropdownShadowColor:"rgba(0, 0, 0, 0.08)",dropdownPadding:8,dropdownSpacing:10,optionPadding:[8,12],optionFontSize:12,optionTextBaseline:"top",optionBackgroundFill:"#fff",optionBackgroundRadius:4,optionLabelFontSize:12,optionLabelTextBaseline:"top"}},t}(_f),v2=function(e){_l(t,e);function t(r){var n=e.call(this,Ad({},{style:{backgroundOpacity:t.backgroundOpacities.default}},t.defaultOptions,r))||this;return n.showBackground=!0,n.background=n.appendChild(new op({})),n.icon=n.appendChild(new zd({})),n}return Object.defineProperty(t.prototype,"label",{get:function(){return"BaseIcon"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lineWidth",{get:function(){return Math.log10(this.attributes.size)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"padding",{get:function(){return sp(this.attributes.size/5)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"iconSize",{get:function(){var r=this.attributes.size,n=Zr(this.padding,4),i=n[0],a=n[1],o=n[2],s=n[3];return Math.max(r-Math.max(s+a,i+o),this.lineWidth*2+1)},enumerable:!1,configurable:!0}),t.prototype.renderBackground=function(){var r=this.attributes,n=r.x,i=r.y,a=r.size,o=a/2,s=ul(this.attributes,"background");this.background.attr(qi({x:n-o,y:i-o,width:a,height:a},s))},t.prototype.showIndicator=function(){if(this.label){var r=this.attributes.size,n=this.background.getBBox(),i=n.x,a=n.y;this.indicator.update({x:i+r/2,y:a-5,labelText:this.label,visibility:"visible"})}},t.prototype.hideIndicator=function(){this.indicator.update({visibility:"hidden"})},t.prototype.connectedCallback=function(){var r;e.prototype.connectedCallback.call(this);var n=this.attributes.size,i=this.background.getBBox(),a=i.x,o=i.y,s=(r=this.ownerDocument)===null||r===void 0?void 0:r.defaultView;s&&(this.indicator=s.appendChild(new _yr({style:{x:a+n/2,y:o-n/2,visibility:"hidden",position:"top",radius:3,zIndex:100}})))},t.prototype.disconnectedCallback=function(){this.indicator.destroy()},t.prototype.render=function(){this.renderIcon(),this.showBackground&&this.renderBackground()},t.prototype.bindEvents=function(){var r=this,n=this.attributes.onClick;if(this.addEventListener("click",function(){n==null||n(r)}),this.showBackground){var i=function(){return r.background.attr({opacity:t.backgroundOpacities.default})},a=function(){return r.background.attr({opacity:t.backgroundOpacities.hover})},o=function(){return r.background.attr({opacity:t.backgroundOpacities.active})};this.addEventListener("pointerenter",function(){a(),r.showIndicator()}),this.addEventListener("pointerleave",function(){i(),r.hideIndicator()}),this.addEventListener("pointerdown",function(){o()}),this.addEventListener("pointerup",function(){i()})}},t.tag="IconBase",t.defaultOptions={style:{x:0,y:0,size:10,color:"#565758",backgroundRadius:4,backgroundFill:"#e2e2e2"}},t.backgroundOpacities={default:0,hover:.8,active:1},t}(_f),pN=function(e,t){return t===void 0&&(t="#565758"),new Jm({style:{fill:t,d:"M ".concat(e,",").concat(e," L -").concat(e,",0 L ").concat(e,",-").concat(e," Z"),transformOrigin:"center"}})},Myr=function(e){_l(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.arcPath=function(r,n,i){var a=Zr([i,i],2),o=a[0],s=a[1],l=function(p){return[r+i*Math.cos(p),n+i*Math.sin(p)]},u=Zr(l(-5/4*Math.PI),2),c=u[0],A=u[1],f=Zr(l(1/4*Math.PI),2),h=f[0],g=f[1];return"M".concat(c,",").concat(A,",A").concat(o,",").concat(s,",0,1,1,").concat(h,",").concat(g)},Object.defineProperty(t.prototype,"label",{get:function(){return"重置"},enumerable:!1,configurable:!0}),t.prototype.renderIcon=function(){var r=this.attributes,n=r.x,i=r.y,a=r.color,o=this.iconSize,s=this.lineWidth,l=s+.5;So(this.icon).maybeAppend(".reset","path").styles({stroke:a,lineWidth:s,d:this.arcPath(n,i,o/2-s),markerStart:pN(l,a)})},t}(v2),Oyr=function(e){_l(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"label",{get:function(){return"快退"},enumerable:!1,configurable:!0}),t.prototype.renderIcon=function(){var r=this.attributes,n=r.x,i=r.y,a=r.color,o=this.iconSize,s=o/2,l=o/2/Math.pow(3,.5),u=[[n,i],[n,i-l],[n-s,i],[n,i+l],[n,i],[n+s,i-l],[n+s,i+l],[n,i]];So(this.icon).maybeAppend(".backward","polygon").styles({points:u,fill:a})},t}(v2),Nyr=function(e){_l(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"label",{get:function(){return"快进"},enumerable:!1,configurable:!0}),t.prototype.renderIcon=function(){var r=this.attributes,n=r.x,i=r.y,a=r.color,o=this.iconSize,s=o/2,l=o/2/Math.pow(3,.5),u=[[n,i],[n,i-l],[n+s,i],[n,i+l],[n,i],[n-s,i-l],[n-s,i+l],[n,i]];So(this.icon).maybeAppend(".forward","polygon").styles({points:u,fill:a})},t}(v2),Lyr=function(e){_l(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"label",{get:function(){return"播放"},enumerable:!1,configurable:!0}),t.prototype.renderIcon=function(){var r=this.attributes,n=r.x,i=r.y,a=r.color,o=this.iconSize,s=o/3*Math.pow(3,.5)*.8,l=[[n+s,i],[n-s/2,i-o/2*.8],[n-s/2,i+o/2*.8],[n+s,i]];So(this.icon).maybeAppend(".play","polygon").styles({points:l,fill:a})},t}(v2),Pyr=function(e){_l(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"label",{get:function(){return"暂停"},enumerable:!1,configurable:!0}),t.prototype.renderIcon=function(){var r=this.attributes,n=r.x,i=r.y,a=r.color,o=this.iconSize,s=o/3,l=[[n-s,i-o/2],[n-s,i+o/2],[n-s/2,i+o/2],[n-s/2,i-o/2],[n-s,i-o/2],[n+s/2,i-o/2],[n+s/2,i+o/2],[n+s,i+o/2],[n+s,i-o/2]];So(this.icon).maybeAppend(".pause","polygon").styles({points:l,fill:a})},t}(v2),Uyr=function(e){_l(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"label",{get:function(){return"范围时间"},enumerable:!1,configurable:!0}),t.prototype.renderIcon=function(){var r=this.attributes,n=r.x,i=r.y,a=r.color,o=this,s=o.iconSize,l=o.lineWidth,u=l;So(this.icon).maybeAppend(".left-line","line").styles({x1:n-s/2,y1:i-s/2,x2:n-s/2,y2:i+s/2,stroke:a,lineWidth:l}),So(this.icon).maybeAppend(".right-line","line").styles({x1:n+s/2,y1:i-s/2,x2:n+s/2,y2:i+s/2,stroke:a,lineWidth:l}),So(this.icon).maybeAppend(".left-arrow","line").styles({x1:n,y1:i,x2:n-s/2+u*2,y2:i,stroke:a,lineWidth:l,markerEnd:pN(l*2,a)}),So(this.icon).maybeAppend(".right-arrow","line").styles({x1:n,y1:i,x2:n+s/2-u*2,y2:i,stroke:a,lineWidth:l,markerEnd:pN(l*2,a)})},t}(v2),Hyr=function(e){_l(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"label",{get:function(){return"单一时间"},enumerable:!1,configurable:!0}),t.prototype.renderIcon=function(){var r=this.attributes,n=r.x,i=r.y,a=r.color,o=this,s=o.iconSize,l=o.lineWidth;So(this.icon).maybeAppend(".line","line").styles({x1:n,y1:i-s/2,x2:n,y2:i+s/2,stroke:a,lineWidth:l});var u=l;So(this.icon).maybeAppend(".left-arrow","line").styles({x1:n-s/2-u*2,y1:i,x2:n-u*2,y2:i,stroke:a,lineWidth:l,markerEnd:pN(l*2,a)}),So(this.icon).maybeAppend(".right-arrow","line").styles({x1:n+s/2+u*2,y1:i,x2:n+u*2,y2:i,stroke:a,lineWidth:l,markerEnd:pN(l*2,a)})},t}(v2),Dpt=function(e){return[[-e/2,-e/2],[-e/2,e/2],[e/2,e/2]]},jyr=function(e){_l(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"label",{get:function(){return"折线图"},enumerable:!1,configurable:!0}),t.prototype.renderIcon=function(){var r=this.attributes,n=r.x,i=r.y,a=r.color,o=this,s=o.iconSize,l=o.lineWidth,u=l,c=(s-u*2-l)/4,A=(s-u*2-l)/2,f=Zr([n-s/2+u,i+s/2-u*2],2),h=f[0],g=f[1];So(this.icon).maybeAppend(".coordinate","polyline").styles({points:Dpt(s).map(function(p){var m=Zr(p,2),b=m[0],C=m[1];return[b+n,C+i]}),stroke:a,lineWidth:l}),So(this.icon).maybeAppend(".line","polyline").styles({points:[[h,g],[h+c,g-A],[h+c*2,g],[h+c*4,g-A*2]],stroke:a,lineWidth:l})},t}(v2),Gyr=function(e){_l(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return Object.defineProperty(t.prototype,"label",{get:function(){return"条形图"},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"data",{get:function(){return[1,4,2,4,3]},enumerable:!1,configurable:!0}),t.prototype.renderIcon=function(){var r=this.data,n=this.attributes,i=n.x,a=n.y,o=n.color,s=this,l=s.iconSize,u=s.lineWidth,c=u,A=(l-c)/r.length,f=(l-c*2)/4,h=Zr([i-l/2+c*2,a+l/2-c],2),g=h[0],p=h[1];So(this.icon).maybeAppend(".coordinate","polyline").styles({points:Dpt(l).map(function(m){var b=Zr(m,2),C=b[0],E=b[1];return[C+i,E+a]}),stroke:o,lineWidth:u}),So(this.icon).maybeAppend(".bars","g").selectAll(".column").data(this.data.map(function(m,b){return{value:m,index:b}})).join(function(m){return m.append("line").attr("className","column").style("x1",function(b){var C=b.index;return g+A*C}).style("y1",p).style("x2",function(b){var C=b.index;return g+A*C}).style("y2",function(b){var C=b.value;return p-f*C}).styles({y1:p,stroke:o,lineWidth:u})})},t}(v2),$yr=function(e){_l(t,e);function t(r){var n=e.call(this,Ad({},{style:{color:"#d8d9d9"}},r))||this;return n.showBackground=!1,n}return t.prototype.renderIcon=function(){var r=this.attributes,n=r.x,i=r.y,a=r.color,o=this,s=o.iconSize,l=o.lineWidth;So(this.icon).maybeAppend(".split","line").styles({x1:n,y1:i-s/2,x2:n,y2:i+s/2,stroke:a,lineWidth:l})},t}(v2),x2e=function(e){_l(t,e);function t(){var r=e.apply(this,Do([],Zr(arguments),!1))||this;return r.showBackground=!1,r}return Object.defineProperty(t.prototype,"padding",{get:function(){return sp(0)},enumerable:!1,configurable:!0}),t.prototype.renderIcon=function(){var r=this.iconSize,n=this.attributes,i=n.x,a=n.y,o=n.speed,s=o===void 0?1:o,l=Oxe(this.attributes,["x","y","transform","transformOrigin","width","height","size","color","speed"]),u=Sf(r,20,1/0),c=20,A=qi(qi({},l),{x:i-u/2,y:a-c/2,width:u,height:c,defaultValue:s,bordered:!1,showDropdownIcon:!1,selectRadius:2,dropdownPadding:this.padding,dropdownRadius:2,dropdownSpacing:r/5,placeholderFontSize:r/2,optionPadding:0,optionLabelFontSize:r/2,optionBackgroundRadius:1,options:[{label:"1x",value:1},{label:"1.5x",value:1.5},{label:"2x",value:2}]});So(this.icon).maybeAppend(".speed",function(){return new Ryr({style:A})}).attr("className","speed").each(function(){this.update(A)})},t.tag="SpeedSelect",t}(v2),X3e=function(e){_l(t,e);function t(r){var n=e.call(this,r)||this;return n.icon=n.appendChild(new zd({})),n.currentType=n.attributes.type,n}return t.prototype.getType=function(){return this.currentType},t.prototype.render=function(){var r=this,n=this.attributes;n.onChange;var i=lf(n,["onChange"]);So(this.icon).selectAll(".icon").data([this.currentType]).join(function(a){return a.append(function(o){var s,l=(s=r.toggles.find(function(u){var c=Zr(u,1),A=c[0];return A===o}))===null||s===void 0?void 0:s[1];if(!l)throw new Error("Invalid type: ".concat(o));return new l({})}).attr("className","icon").styles(i,!1).update({})},function(a){return a.styles({restStyles:i}).update({})},function(a){return a.remove()})},t.prototype.bindEvents=function(){var r=this,n=this.attributes.onChange;this.addEventListener("click",function(i){i.preventDefault(),i.stopPropagation();var a=(r.toggles.findIndex(function(s){var l=Zr(s,1),u=l[0];return u===r.currentType})+1)%r.toggles.length,o=r.toggles[a][0];n==null||n(r.currentType),r.currentType=o,r.render()})},t.tag="ToggleIcon",t}(_f),S2e=function(e){_l(t,e);function t(r){var n=e.call(this,Ad({},{style:{type:"play"}},r))||this;return n.toggles=[["play",Lyr],["pause",Pyr]],n}return t}(X3e),k2e=function(e){_l(t,e);function t(r){var n=e.call(this,Ad({},{style:{type:"range"}},r))||this;return n.toggles=[["range",Uyr],["value",Hyr]],n}return t}(X3e),Q2e=function(e){_l(t,e);function t(r){var n=e.call(this,Ad({},{style:{type:"column"}},r))||this;return n.toggles=[["line",jyr],["column",Gyr]],n}return t}(X3e),zyr={reset:Myr,speed:x2e,backward:Oyr,playPause:S2e,forward:Nyr,selectionType:k2e,chartType:Q2e,split:$yr},Kyr=function(e){_l(t,e);function t(r){var n=e.call(this,Ad({},t.defaultOptions,r))||this;return n.background=n.appendChild(new op({})),n.functions=n.appendChild(new zd({})),n}return Object.defineProperty(t.prototype,"padding",{get:function(){return sp(this.attributes.padding)},enumerable:!1,configurable:!0}),t.prototype.renderBackground=function(){var r=this.style,n=r.x,i=r.y,a=r.width,o=r.height,s=ul(this.attributes,"background");this.background.attr(qi({x:n,y:i,width:a,height:o},s))},t.prototype.renderFunctions=function(){var r=this,n,i=this.attributes,a=i.functions,o=i.iconSize,s=i.iconSpacing,l=i.x,u=i.y,c=i.width,A=i.height,f=i.align,h=Zr(this.padding,4),g=h[1],p=h[3],m=a.reduce(function(E,_){return E.length&&_.length?E.concat.apply(E,Do(["split"],Zr(_),!1)):E.concat.apply(E,Do([],Zr(_),!1))},[]),b=m.length*(o+s)-s,C={left:p+o/2,center:(c-b)/2+o/2,right:c-b-p-g+o/2}[f]||0;(n=this.speedSelect)===null||n===void 0||n.destroy(),this.functions.removeChildren(),m.forEach(function(E,_){var F,M=zyr[E],N={x:l+_*(o+s)+C,y:u+A/2,size:o};if(M===x2e?(N.speed=r.attributes.speed,N.onSelect=function(j){return r.handleFunctionChange(E,{value:j})}):[S2e,k2e,Q2e].includes(M)?(N.onChange=function(j){return r.handleFunctionChange(E,{value:j})},M===S2e&&(N.type=r.attributes.state==="play"?"pause":"play"),M===k2e&&(N.type=r.attributes.selectionType==="range"?"value":"range"),M===Q2e&&(N.type=r.attributes.chartType==="line"?"column":"line")):N.onClick=function(){return r.handleFunctionChange(E,{value:E})},M===x2e){var P=(F=r.ownerDocument)===null||F===void 0?void 0:F.defaultView;P&&(r.speedSelect=new M({style:qi(qi({},N),{zIndex:100})}),P.appendChild(r.speedSelect))}else r.functions.appendChild(new M({style:N}))})},t.prototype.disconnectedCallback=function(){var r;e.prototype.disconnectedCallback.call(this),(r=this.speedSelect)===null||r===void 0||r.destroy()},t.prototype.render=function(){this.renderBackground(),this.renderFunctions()},t.prototype.handleFunctionChange=function(r,n){var i=this.attributes.onChange;i==null||i(r,n)},t.defaultOptions={style:{x:0,y:0,width:300,height:40,padding:0,align:"center",iconSize:25,iconSpacing:0,speed:1,state:"pause",chartType:"line",selectionType:"range",backgroundFill:"#fbfdff",backgroundStroke:"#ebedf0",functions:[["reset","speed"],["backward","playPause","forward"],["selectionType","chartType"]]}},t}(_f),Vyr=function(e){_l(t,e);function t(r){var n=e.call(this,Ad({},t.defaultOptions,r))||this;return n.bindEvents(),n}return t.prototype.bindEvents=function(){var r=this;this.addEventListener("mouseenter",function(){r.attr("lineWidth",Math.ceil(+(r.style.r||0)/2))}),this.addEventListener("mouseleave",function(){r.attr("lineWidth",0)})},t.defaultOptions={style:{r:5,fill:"#3f7cf7",lineWidth:0,stroke:"#3f7cf7",strokeOpacity:.5,cursor:"pointer"}},t}(IB),Wyr=function(e){_l(t,e);function t(r){return e.call(this,Ad({},t.defaultOptions,r))||this}return t.prototype.renderBackground=function(){var r=this.attributes,n=r.x,i=r.y,a=r.width,o=r.height,s=ul(this.attributes,"background");So(this).maybeAppend("background","rect").attr("className","background").styles(qi({x:n-a/2,y:i-o/2,width:a,height:o},s))},t.prototype.renderIcon=function(){var r=this.attributes,n=r.x,i=r.y,a=r.iconSize,o=ul(this.attributes,"icon"),s=1,l=a/2;So(this).maybeAppend("icon-left-line","line").attr("className","icon-left-line").styles(qi({x1:n-s,y1:i-l,x2:n-s,y2:i+l},o)),So(this).maybeAppend("icon-right-line","line").attr("className","icon-right-line").styles(qi({x1:n+s,y1:i-l,x2:n+s,y2:i+l},o))},t.prototype.renderBorder=function(){var r=this.attributes,n=r.x,i=r.y,a=r.width,o=r.height,s=r.type,l=ul(this.attributes,"border"),u=s==="start"?+a/2:-a/2;So(this).maybeAppend("border","line").attr("className","border").styles(qi({x1:u+n,y1:i-o/2,x2:u+n,y2:i+o/2},l))},t.prototype.render=function(){this.renderBackground(),this.renderIcon(),this.renderBorder()},t.defaultOptions={style:{x:0,y:0,width:10,height:50,iconSize:10,type:"start",backgroundFill:"#fff",backgroundFillOpacity:.5,iconStroke:"#9a9a9a",iconLineWidth:1,borderStroke:"#e8e8e8",borderLineWidth:1}},t}(_f);function Yyr(e,t){return typeof e=="number"?Fpt(e):qyr(e,t)}function qyr(e,t){var r=new Date(e);switch(t){case"half-hour":case"hour":case"four-hour":return[0,6,12,18].includes(r.getHours())&&r.getMinutes()===0?Ov(r,`HH:mm YYYY-MM-DD`):Ov(r,"HH:mm");case"half-day":return r.getHours()<12?`AM `.concat(Ov(r,"YYYY-MM-DD")):"PM";case"day":return[1,10,20].includes(r.getDate())?Ov(r,`DD YYYY-MM`):Ov(r,"DD");case"week":return r.getDate()<=7?Ov(r,`DD YYYY-MM`):Ov(r,"DD");case"month":return[0,6].includes(r.getMonth())?Ov(r,`MM月 YYYY`):Ov(r,"MM月");case"season":return[0].includes(r.getMonth())?Ov(r,`MM月 YYYY`):Ov(r,"MM月");case"year":return Ov(r,"YYYY");default:return Ov(r,"YYYY-MM-DD HH:mm")}}function Fpt(e){var t=String(Math.floor(e/3600)).padStart(2,"0"),r=String(Math.floor(e%3600/60)).padStart(2,"0"),n=String(Math.floor(e%60)).padStart(2,"0");return e<3600?"".concat(r,":").concat(n):"".concat(t,":").concat(r,":").concat(n)}var Jyr=function(e){_l(t,e);function t(r){var n=e.call(this,Ad({},t.defaultOptions,r))||this;n.axis=n.appendChild(new Ayr({style:{type:"linear",startPos:[0,0],endPos:[0,0],data:[],showArrow:!1,animate:!1}})),n.timeline=n.appendChild(new l1r({style:{onChange:function(A){n.handleSliderChange(A)}}})),n.controller=n.appendChild(new Kyr({})),n.states={},n.handleSliderChange=function(A){var f=function(){var h=n.states.values;return Array.isArray(h)?Do([],Zr(h),!1):h}();n.setBySliderValues(A),n.dispatchOnChange(f)};var i=n.attributes,a=i.selectionType,o=i.chartType,s=i.speed,l=i.state,u=i.playMode,c=i.values;return n.states={chartType:o,playMode:u,selectionType:a,speed:s,state:l},n.setByTimebarValues(c),n}return Object.defineProperty(t.prototype,"data",{get:function(){var r=this.attributes.data,n=function(i,a){return i.timea.time?1:0};return r.sort(n)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"space",{get:function(){var r=this.attributes,n=r.x,i=r.y,a=r.width,o=r.height,s=r.type,l=r.controllerHeight,u=Sf(+o-l,0,+o),c=new K0(n,i+ +o-l,+a,l),A,f=0;s==="chart"?(f=35,A=new K0(n,i+u-f,+a,f)):A=new K0;var h=s==="time"?10:u,g=new K0(n,i+(s==="time"?u:u-h),+a,h-f);return{axisBBox:A,controllerBBox:c,timelineBBox:g}},enumerable:!1,configurable:!0}),t.prototype.setBySliderValues=function(r){var n,i,a=this.data,o=Zr(Array.isArray(r)?r:[0,r],2),s=o[0],l=o[1],u=a.length,c=a[Math.floor(s*u)],A=a[Math.ceil(l*u)-(Array.isArray(r)?0:1)];this.states.values=[(n=c==null?void 0:c.time)!==null&&n!==void 0?n:a[0].time,(i=A==null?void 0:A.time)!==null&&i!==void 0?i:1/0]},t.prototype.setByTimebarValues=function(r){var n,i,a,o=this.data,s=Zr(Array.isArray(r)?r:[void 0,r],2),l=s[0],u=s[1],c=o.find(function(f){var h=f.time;return h===l}),A=o.find(function(f){var h=f.time;return h===u});this.states.values=[(n=c==null?void 0:c.time)!==null&&n!==void 0?n:(i=o[0])===null||i===void 0?void 0:i.time,(a=A==null?void 0:A.time)!==null&&a!==void 0?a:1/0]},t.prototype.setByIndex=function(r){var n,i,a,o,s=this.data,l=Zr(r,2),u=l[0],c=l[1];this.states.values=[(i=(n=s[u])===null||n===void 0?void 0:n.time)!==null&&i!==void 0?i:s[0].time,(o=(a=this.data[c])===null||a===void 0?void 0:a.time)!==null&&o!==void 0?o:1/0]},Object.defineProperty(t.prototype,"sliderValues",{get:function(){var r=this.states,n=r.values,i=r.selectionType,a=Zr(Array.isArray(n)?n:[void 0,n],2),o=a[0],s=a[1],l=this.data,u=l.length,c=i==="value",A=function(){var h=l.findIndex(function(g){var p=g.time;return p===o});return c?0:h>-1?h/u:0},f=function(){if(s===1/0)return 1;var h=l.findIndex(function(g){var p=g.time;return p===s});return h>-1?h/u:c?.5:1};return[A(),f()]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"values",{get:function(){var r=this.states,n=r.values,i=r.selectionType,a=Zr(Array.isArray(n)?n:[this.data[0].time,n],2),o=a[0],s=a[1];return i==="value"?s:[o,s]},enumerable:!1,configurable:!0}),t.prototype.getDatumByRatio=function(r){var n=this.data,i=n.length,a=Math.floor(r*(i-1));return n[a]},Object.defineProperty(t.prototype,"chartHandleIconShape",{get:function(){var r=this.states.selectionType,n=this.space.timelineBBox.height;return r==="range"?function(i){return new Wyr({style:{type:i,height:n,iconSize:n/6}})}:function(){return new Q6({style:{x1:0,y1:-n/2,x2:0,y2:n/2,lineWidth:2,stroke:"#c8c8c8"}})}},enumerable:!1,configurable:!0}),t.prototype.getChartStyle=function(r){var n=this,i=r.x,a=r.y,o=r.width,s=r.height,l=this.states,u=l.selectionType,c=l.chartType,A=this.data,f=this.attributes,h=f.type,g=f.labelFormatter,p=ul(this.attributes,"chart");p.type;var m=lf(p,["type"]),b=u==="range";if(h==="time")return qi({handleIconShape:function(){return new Vyr({})},selectionFill:"#2e7ff8",selectionFillOpacity:1,showLabelOnInteraction:!0,handleLabelDy:b?-15:0,autoFitLabel:b,handleSpacing:b?-15:0,trackFill:"#edeeef",trackLength:o,trackOpacity:.5,trackRadius:s/2,trackSize:s/2,type:u,values:this.sliderValues,formatter:function(_){if(g)return g(_);var F=n.getDatumByRatio(_).time;return typeof F=="number"?Fpt(F):Ov(F,"YYYY-MM-DD HH:mm:ss")},transform:"translate(".concat(i,", ").concat(a,")"),zIndex:1},m);var C=u==="range"?5:0,E=A.map(function(_){var F=_.value;return F});return qi({handleIconOffset:C,handleIconShape:this.chartHandleIconShape,selectionFill:"#fff",selectionFillOpacity:.5,selectionType:"invert",sparklineSpacing:.1,sparklineColumnLineWidth:0,sparklineColor:"#d4e5fd",sparklineAreaOpacity:1,sparklineAreaLineWidth:0,sparklineData:E,sparklineType:c,sparklineScale:.8,trackLength:o,trackSize:s,type:u,values:this.sliderValues,transform:"translate(".concat(i,", ").concat(a,")"),zIndex:1},m)},t.prototype.renderChart=function(r){r===void 0&&(r=this.space.timelineBBox),this.timeline.update(this.getChartStyle(r))},t.prototype.updateSelection=function(){this.timeline.setValues(this.sliderValues,!0),this.handleSliderChange(this.sliderValues)},t.prototype.getAxisStyle=function(r){var n=this.data,i=this.attributes,a=i.interval,o=i.labelFormatter,s=ul(this.attributes,"axis"),l=r.x,u=r.y,c=r.width,A=Do(Do([],Zr(n),!1),[{time:0}],!1).map(function(h,g,p){var m=h.time;return{label:"".concat(m),value:g/(p.length-1),time:m}}),f=qi({startPos:[l,u],endPos:[l+c,u],data:A,labelFilter:function(h,g){return ga?l==="value"?[0,0]:u==="acc"?[N(F),N(F)]:[0,N(M-F)]:F<0?u==="acc"?[0,N(M)]:[N(F+a-M),a]:[N(F),N(M)]},C=b(m);return this.setByIndex(C),this.updateSelection(),C},t.prototype.internalBackward=function(r){var n,i,a=this.moveSelection("backward",r);return r||((i=(n=this.attributes)===null||n===void 0?void 0:n.onBackward)===null||i===void 0||i.call(n),this.dispatchOnChange()),a},t.prototype.backward=function(){this.internalBackward()},t.prototype.internalPlay=function(r){var n=this,i,a,o=this.data,s=this.attributes.loop,l=this.states.speed,u=l===void 0?1:l;this.playInterval=window.setInterval(function(){var c=n.internalForward();c[1]===o.length&&!s&&(n.internalPause(),n.renderController())},1e3/u),this.states.state="play",!r&&((a=(i=this.attributes)===null||i===void 0?void 0:i.onPlay)===null||a===void 0||a.call(i))},t.prototype.play=function(){this.internalPlay()},t.prototype.internalPause=function(r){var n,i;clearInterval(this.playInterval),this.states.state="pause",!r&&((i=(n=this.attributes)===null||n===void 0?void 0:n.onPause)===null||i===void 0||i.call(n))},t.prototype.pause=function(){this.internalPause()},t.prototype.internalForward=function(r){var n,i,a=this.moveSelection("forward",r);return r||((i=(n=this.attributes)===null||n===void 0?void 0:n.onForward)===null||i===void 0||i.call(n),this.dispatchOnChange()),a},t.prototype.forward=function(){this.internalForward()},t.prototype.handleSpeedChange=function(r){var n,i;this.states.speed=r;var a=this.states.state;a==="play"&&(this.internalPause(!0),this.internalPlay(!0)),(i=(n=this.attributes)===null||n===void 0?void 0:n.onSpeedChange)===null||i===void 0||i.call(n,r)},t.prototype.handleSelectionTypeChange=function(r){var n,i;this.states.selectionType=r,this.renderChart(),(i=(n=this.attributes)===null||n===void 0?void 0:n.onSelectionTypeChange)===null||i===void 0||i.call(n,r)},t.prototype.handleChartTypeChange=function(r){var n,i;this.states.chartType=r,this.renderChart(),(i=(n=this.attributes)===null||n===void 0?void 0:n.onChartTypeChange)===null||i===void 0||i.call(n,r)},t.prototype.render=function(){var r=this.space,n=r.axisBBox,i=r.controllerBBox,a=r.timelineBBox;this.renderController(i),this.renderAxis(n),this.renderChart(a),this.states.state==="play"&&this.internalPlay()},t.prototype.destroy=function(){e.prototype.destroy.call(this),this.internalPause(!0)},t.defaultOptions={style:{x:0,y:0,axisLabelFill:"#6e6e6e",axisLabelTextAlign:"left",axisLabelTextBaseline:"top",axisLabelTransform:"translate(5, -12)",axisLineLineWidth:1,axisLineStroke:"#cacdd1",axisTickLength:15,axisTickLineWidth:1,axisTickStroke:"#cacdd1",chartShowLabel:!1,chartType:"line",controllerAlign:"center",controllerHeight:40,data:[],interval:"day",loop:!1,playMode:"acc",selectionType:"range",type:"time"}},t}(_f);function Z3e(e){const{width:t,height:r,renderer:n}=e,i=Xyr(e),a=new Vbe({width:t,height:r,container:i,renderer:n||new lN});return[i,a]}function Xyr(e){var t;const{container:r,className:n,graphCanvas:i}=e;if(r)return typeof r=="string"?document.getElementById(r):r;const a=aT(n,!1),{width:o,height:s,containerStyle:l}=e,[u,c]=Zyr(e);return Object.assign(a.style,Object.assign({position:"absolute",left:u+"px",top:c+"px",width:o+"px",height:s+"px"},l)),(t=i.getContainer())===null||t===void 0||t.appendChild(a),a}function Zyr(e){const{width:t,height:r,placement:n,graphCanvas:i}=e,[a,o]=i.getSize(),[s,l]=ght(n);return[s*(a-t),l*(o-r)]}var ebr=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{const{graph:n}=this.context;n.on(Ta.AFTER_DRAW,this.createElement)},this.changeState=(n,i)=>{const{graph:a}=this.context,{typePrefix:o}=this,s=G0(n,[o,"id"]),l=G0(n,[o,"style","labelText"]),[u]=s.split("__"),c=this.fieldMap[u].get(l)||[];a.setElementState(Object.fromEntries(c==null?void 0:c.map(A=>[A,i])))},this.click=n=>{if(this.options.trigger==="hover")return;const i=G0(n,[this.typePrefix,"id"]);this.selectedItems.includes(i)?(this.selectedItems=this.selectedItems.filter(a=>a!==i),this.changeState(n,[])):(this.selectedItems.push(i),this.changeState(n,"selected"))},this.mouseleave=n=>{this.options.trigger!=="click"&&(this.selectedItems=[],this.changeState(n,[]))},this.mouseenter=n=>{if(this.options.trigger==="click")return;const i=G0(n,[this.typePrefix,"id"]);this.selectedItems.includes(i)?this.selectedItems=this.selectedItems.filter(a=>a!==i):(this.selectedItems.push(i),this.changeState(n,"active"))},this.setFieldMap=(n,i,a)=>{if(!n)return;const o=this.fieldMap[a];if(o)if(!o.has(n))o.set(n,[i]);else{const s=o.get(n);s&&(s.push(i),o.set(n,s))}},this.getEvents=()=>({mouseenter:this.mouseenter,mouseleave:this.mouseleave,click:this.click}),this.getMarkerData=(n,i)=>{if(!n)return[];const{model:a,element:o}=this.context,{nodes:s,edges:l,combos:u}=a.getData(),c={},A=m=>xo(n)?n(m):n,f={node:"circle",edge:"line",combo:"rect"},h={circle:"circle",ellipse:"circle",image:"bowtie",rect:"square",star:"cross",triangle:"triangle",diamond:"diamond",cubic:"dot",line:"hyphen",polyline:"hyphen",quadratic:"hv","cubic-horizontal":"hyphen","cubic-vertical":"line"},g=(m,b)=>o==null?void 0:o.getElementComputedStyle(m,b),p=(m,b)=>{m.forEach(C=>{const{id:E}=C,_=G0(C,["data",A(C)]),F=(o==null?void 0:o.getElementType(b,C))||"circle",M=g(b,C),N=(b==="edge"?M==null?void 0:M.stroke:M==null?void 0:M.fill)||"#1783ff";E&&_&&_.replace(/\s+/g,"")&&(this.setFieldMap(_,E,b),c[_]||(c[_]={id:`${b}__${E}`,label:_,marker:h[F]||f[b],elementType:b,lineWidth:1,stroke:N,fill:N}))})};switch(i){case"node":p(s,"node");break;case"edge":p(l,"edge");break;case"combo":p(u,"combo");break;default:return[]}return Object.values(c)},this.createElement=()=>{if(this.draw){this.updateElement();return}const n=this.options,{width:i,height:a,nodeField:o,edgeField:s,comboField:l,trigger:u,position:c,container:A,containerStyle:f,className:h}=n,g=ebr(n,["width","height","nodeField","edgeField","comboField","trigger","position","container","containerStyle","className"]),p=this.getMarkerData(o,"node"),m=this.getMarkerData(s,"edge"),b=this.getMarkerData(l,"combo"),C=[...p,...b,...m],E=Object.assign({width:i,height:a,data:C,itemMarkerLineWidth:({lineWidth:M})=>M,itemMarker:({marker:M})=>M,itemMarkerStroke:({stroke:M})=>M,itemMarkerFill:({fill:M})=>M,gridCol:p.length},g,this.getEvents()),_=new kyr({className:"legend",style:E});this.category=_,this.upsertCanvas().appendChild(_),this.draw=!0},this.bindEvents()}update(t){super.update(t),this.clear(),this.createElement()}clear(){var t,r;(t=this.canvas)===null||t===void 0||t.destroy(),(r=this.container)===null||r===void 0||r.remove(),this.canvas=void 0,this.container=void 0,this.draw=!1}updateElement(){this.category&&this.category.update({itemMarkerOpacity:({id:t})=>!this.selectedItems.length||this.selectedItems.includes(t)?1:.5,itemLabelOpacity:({id:t})=>!this.selectedItems.length||this.selectedItems.includes(t)?1:.5})}upsertCanvas(){if(this.canvas)return this.canvas;const t=this.context.canvas,[r,n]=t.getSize(),{width:i=r,height:a=n,position:o,container:s,containerStyle:l,className:u}=this.options,[c,A]=Z3e({width:i,height:a,graphCanvas:t,container:s,containerStyle:l,placement:o,className:"legend"});return this.container=c,u&&c.classList.add(u),this.canvas=A,this.canvas}destroy(){this.clear(),this.context.graph.off(Ta.AFTER_DRAW,this.createElement),super.destroy()}}hZ.defaultOptions={position:"bottom",trigger:"hover",orientation:"horizontal",layout:"flex",itemSpacing:4,rowPadding:10,colPadding:10,itemMarkerSize:16,itemLabelFontSize:16,width:240,height:160};class dZ extends Ap{constructor(t,r){super(t,Object.assign({},dZ.defaultOptions,r)),this.onDraw=n=>{var i;!((i=n==null?void 0:n.data)===null||i===void 0)&&i.render||this.onRender()},this.shapes=new Map,this.landmarkMap=new Map,this.mask=null,this.isMaskDragging=!1,this.onMaskDragStart=n=>{this.mask&&(this.isMaskDragging=!0,this.mask.setPointerCapture(n.pointerId),this.mask.addEventListener("pointermove",this.onMaskDrag),this.mask.addEventListener("pointerup",this.onMaskDragEnd),this.mask.addEventListener("pointercancel",this.onMaskDragEnd))},this.onMaskDrag=n=>{if(!this.mask||!this.isMaskDragging)return;const{size:[i,a]}=this.options,{movementX:o,movementY:s}=n,{left:l,top:u,width:c,height:A}=this.mask.style,[,,f,h]=this.maskBBox;let g=parseInt(l)+o,p=parseInt(u)+s,m=parseInt(c),b=parseInt(A);g<0&&(g=0),p<0&&(p=0),g+m>i&&(g=Nx(i-m,0)),p+b>a&&(p=Nx(a-b,0)),m0?(g=Nx(g-o,0),m=Ox(m+o,i)):o<0&&(m=Ox(m-o,i))),b0?(p=Nx(p-s,0),b=Ox(b+s,a)):s<0&&(b=Ox(b-s,a))),Object.assign(this.mask.style,{left:g+"px",top:p+"px",width:m+"px",height:b+"px"});const C=parseInt(l)-g,E=parseInt(u)-p;if(C===0&&E===0)return;const _=this.context.canvas.getCamera().getZoom(),F=this.canvas.getCamera().getZoom(),M=_/F;this.context.graph.translateBy([C*M,E*M],!1)},this.onMaskDragEnd=n=>{this.mask&&(this.isMaskDragging=!1,this.mask.releasePointerCapture(n.pointerId),this.mask.removeEventListener("pointermove",this.onMaskDrag),this.mask.removeEventListener("pointerup",this.onMaskDragEnd),this.mask.removeEventListener("pointercancel",this.onMaskDragEnd))},this.onTransform=XAt(()=>{this.isMaskDragging||(this.updateMask(),this.setCamera())},32,{leading:!0}),this.setOnRender(),this.bindEvents()}update(t){this.unbindEvents(),super.update(t),"delay"in t&&this.setOnRender(),this.bindEvents()}setOnRender(){this.onRender=FL(()=>{this.renderMinimap(),this.renderMask()},this.options.delay)}bindEvents(){const{graph:t}=this.context;t.on(Ta.AFTER_DRAW,this.onDraw),t.on(Ta.AFTER_RENDER,this.onRender),t.on(Ta.AFTER_ANIMATE,this.onRender),t.on(Ta.AFTER_TRANSFORM,this.onTransform)}unbindEvents(){const{graph:t}=this.context;t.off(Ta.AFTER_DRAW,this.onDraw),t.off(Ta.AFTER_RENDER,this.onRender),t.off(Ta.AFTER_ANIMATE,this.onRender),t.off(Ta.AFTER_TRANSFORM,this.onTransform)}renderMinimap(){const t=this.getElements(),r=this.initCanvas();this.setShapes(r,t)}getElements(){const{filter:t}=this.options,{model:r,element:n}=this.context,i=r.getData(),a={nodes:i.nodes.filter(u=>n==null?void 0:n.getElement(Gn(u))),edges:i.edges.filter(u=>{const c=n==null?void 0:n.getElement(Gn(u));return c&&rdt(c)}),combos:i.combos.filter(u=>n==null?void 0:n.getElement(Gn(u)))};if(!t)return a;const{nodes:o,edges:s,combos:l}=a;return{nodes:o.filter(u=>t(Gn(u),"node")),edges:s.filter(u=>t(Gn(u),"edge")),combos:l.filter(u=>t(Gn(u),"combo"))}}setShapes(t,r){const{nodes:n,edges:i,combos:a}=r,{shape:o}=this.options,{element:s}=this.context;if(o==="key"){const u=new Set,c=A=>{const f=Gn(A);u.add(f);const h=s.getElement(f);if(!h)return;const g=h.getShape("key"),p=this.shapes.get(f)||g.cloneNode();p.setPosition(g.getPosition()),h.style.zIndex&&(p.style.zIndex=h.style.zIndex),p.id=h.id,this.shapes.has(f)?Object.entries(g.attributes).forEach(([m,b])=>{p.style[m]!==b&&(p.style[m]=b)}):(t.appendChild(p),this.shapes.set(f,p))};i.forEach(c),a.forEach(c),n.forEach(c),this.shapes.forEach((A,f)=>{u.has(f)||(t.removeChild(A),this.shapes.delete(f))});return}const l=(u,c)=>{const f=s.getElement(u).getPosition();return c.setPosition(f),c};t.removeChildren(),i.forEach(u=>t.appendChild(o(Gn(u),"edge"))),a.forEach(u=>{t.appendChild(l(Gn(u),o(Gn(u),"combo")))}),n.forEach(u=>{t.appendChild(l(Gn(u),o(Gn(u),"node")))})}initCanvas(){const{renderer:t,size:[r,n]}=this.options;if(this.canvas){const{width:i,height:a}=this.canvas.getConfig();(r!==i||n!==a)&&this.canvas.resize(r,n),t&&this.canvas.setRenderer(t)}else{const{className:i,position:a,container:o,containerStyle:s}=this.options,[l,u]=Z3e({renderer:t,width:r,height:n,placement:a,className:"minimap",container:o,containerStyle:s,graphCanvas:this.context.canvas});i&&l.classList.add(i),this.container=l,this.canvas=u}return this.setCamera(),this.canvas}createLandmark(t,r,n){const i=`${t.join(",")}-${r.join(",")}-${n}`;if(this.landmarkMap.has(i))return this.landmarkMap.get(i);const o=this.canvas.getCamera().createLandmark(i,{position:t,focalPoint:r,zoom:n});return this.landmarkMap.set(i,o),o}setCamera(){var t;const{canvas:r}=this.context,n=(t=this.canvas)===null||t===void 0?void 0:t.getCamera();if(!n)return;const{size:[i,a],padding:o}=this.options,[s,l,u,c]=FC(o),{min:A,max:f,center:h}=r.getBounds("elements"),g=f[0]-A[0],p=f[1]-A[1],m=i-c-l,b=a-s-u,C=m/g,E=b/p,_=Math.min(C,E),F=this.createLandmark(h,h,_);n.gotoLandmark(F,0)}get maskBBox(){const{canvas:t}=this.context,r=t.getSize(),n=t.getCanvasByViewport([0,0]),i=t.getCanvasByViewport(r),a=this.canvas.canvas2Viewport($b(n)),o=this.canvas.canvas2Viewport($b(i)),s=o.x-a.x,l=o.y-a.y;return[a.x,a.y,s,l]}calculateMaskBBox(){const{size:[t,r]}=this.options;let[n,i,a,o]=this.maskBBox;return n<0&&(a=Ox(a+n,t),n=0),i<0&&(o=Ox(o+i,r),i=0),n+a>t&&(a=Nx(t-n,0)),i+o>r&&(o=Nx(r-i,0)),[Ox(n,t),Ox(i,r),Nx(a,0),Nx(o,0)]}renderMask(){const{maskStyle:t}=this.options;this.mask||(this.mask=document.createElement("div"),this.mask.addEventListener("pointerdown",this.onMaskDragStart),this.mask.draggable=!0,this.mask.addEventListener("dragstart",r=>r.preventDefault&&r.preventDefault())),this.container.appendChild(this.mask),Object.assign(this.mask.style,Object.assign(Object.assign({},t),{cursor:"move",position:"absolute",pointerEvents:"auto"})),this.updateMask()}updateMask(){if(!this.mask)return;const[t,r,n,i]=this.calculateMaskBBox();Object.assign(this.mask.style,{top:r+"px",left:t+"px",width:n+"px",height:i+"px"})}destroy(){var t,r,n;this.unbindEvents(),(t=this.canvas)===null||t===void 0||t.destroy(),(r=this.mask)===null||r===void 0||r.remove(),(n=this.container)===null||n===void 0||n.remove(),super.destroy()}}dZ.defaultOptions={size:[240,160],shape:"key",padding:10,position:"right-bottom",maskStyle:{border:"1px solid #ddd",background:"rgba(0, 0, 0, 0.1)"},containerStyle:{border:"1px solid #ddd",background:"#fff"},delay:128};const Ox=(e,t)=>Math.min(e,t),Nx=(e,t)=>Math.max(e,t);var Ahe=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(c){try{u(n.next(c))}catch(A){o(A)}}function l(c){try{u(n.throw(c))}catch(A){o(A)}}function u(c){c.done?a(c.value):i(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};const fhe={x1:0,y1:0,x2:0,y2:0,visibility:"hidden"};class gZ extends Ap{constructor(t,r){super(t,Object.assign({},gZ.defaultOptions,r)),this.initSnapline=()=>{const n=this.context.canvas.getLayer("transient");this.horizontalLine||(this.horizontalLine=n.appendChild(new Q6({style:Object.assign(Object.assign({},fhe),this.options.horizontalLineStyle)}))),this.verticalLine||(this.verticalLine=n.appendChild(new Q6({style:Object.assign(Object.assign({},fhe),this.options.verticalLineStyle)})))},this.isHorizontalSticking=!1,this.isVerticalSticking=!1,this.enableStick=!0,this.autoSnapToLine=(n,i,a)=>Ahe(this,void 0,void 0,function*(){const{verticalX:o,horizontalY:s}=a,{tolerance:l}=this.options,{min:[u,c],max:[A,f],center:[h,g]}=i;let p=0,m=0;o!==null&&(Rp(A,o){const{target:i}=n,a=.5;if(this.isHorizontalSticking||this.isVerticalSticking){const[o,s]=this.getDelta(n);if(this.isHorizontalSticking&&this.isVerticalSticking&&Math.abs(o)<=a&&Math.abs(s)<=a)return this.context.graph.translateElementBy({[i.id]:[-o,-s]},!1),!1;if(this.isHorizontalSticking&&Math.abs(s)<=a)return this.context.graph.translateElementBy({[i.id]:[0,-s]},!1),!1;if(this.isVerticalSticking&&Math.abs(o)<=a)return this.context.graph.translateElementBy({[i.id]:[-o,0]},!1),!1;this.isHorizontalSticking=!1,this.isVerticalSticking=!1,this.enableStick=!1,setTimeout(()=>{this.enableStick=!0},200)}return this.enableStick},this.calcSnaplineMetadata=(n,i)=>{const{tolerance:a,shape:o}=this.options,{min:[s,l],max:[u,c],center:[A,f]}=i;let h=null,g=null,p=null,m=null,b=null,C=null;return this.getNodes().some(E=>{if(Qf(n.id,E.id))return!1;const _=zHe(E,o).getRenderBounds(),{min:[F,M],max:[N,P],center:[j,z]}=_;return h===null&&(Rp(j,A){this.initSnapline()},this.onDrag=n=>Ahe(this,void 0,void 0,function*(){const{target:i}=n;if(this.options.autoSnap&&!this.enableSnap(n))return;const a=zHe(i,this.options.shape).getRenderBounds(),o=this.calcSnaplineMetadata(i,a);this.hideSnapline(),(o.verticalX!==null||o.horizontalY!==null)&&this.updateSnapline(o),this.options.autoSnap&&(yield this.autoSnapToLine(i.id,a,o))}),this.onDragEnd=()=>{this.hideSnapline()},this.bindEvents()}getNodes(){var t;const{filter:r}=this.options,i=(((t=this.context.element)===null||t===void 0?void 0:t.getNodes())||[]).filter(a=>{var o;return rdt(a)&&((o=this.context.viewport)===null||o===void 0?void 0:o.isInViewport(a.getRenderBounds()))});return r?i.filter(a=>r(a)):i}hideSnapline(){this.horizontalLine.style.visibility="hidden",this.verticalLine.style.visibility="hidden"}getLineWidth(t){const{lineWidth:r}=this.options[`${t}LineStyle`];return+(r||fhe.lineWidth||1)/this.context.graph.getZoom()}updateSnapline(t){const{verticalX:r,verticalMinY:n,verticalMaxY:i,horizontalY:a,horizontalMinX:o,horizontalMaxX:s}=t,[l,u]=this.context.canvas.getSize(),{offset:c}=this.options;a!==null?Object.assign(this.horizontalLine.style,{x1:c===1/0?0:o-c,y1:a,x2:c===1/0?l:s+c,y2:a,visibility:"visible",lineWidth:this.getLineWidth("horizontal")}):this.horizontalLine.style.visibility="hidden",r!==null?Object.assign(this.verticalLine.style,{x1:r,y1:c===1/0?0:n-c,x2:r,y2:c===1/0?u:i+c,visibility:"visible",lineWidth:this.getLineWidth("vertical")}):this.verticalLine.style.visibility="hidden"}getDelta(t){const r=this.context.graph.getZoom();return o2([t.dx,t.dy],r)}bindEvents(){return Ahe(this,void 0,void 0,function*(){const{graph:t}=this.context;t.on(py.DRAG_START,this.onDragStart),t.on(py.DRAG,this.onDrag),t.on(py.DRAG_END,this.onDragEnd)})}unbindEvents(){const{graph:t}=this.context;t.off(py.DRAG_START,this.onDragStart),t.off(py.DRAG,this.onDrag),t.off(py.DRAG_END,this.onDragEnd)}destroyElements(){var t,r;(t=this.horizontalLine)===null||t===void 0||t.destroy(),(r=this.verticalLine)===null||r===void 0||r.destroy()}destroy(){this.destroyElements(),this.unbindEvents(),super.destroy()}}gZ.defaultOptions={tolerance:5,offset:20,autoSnap:!0,shape:"key",verticalLineStyle:{stroke:"#1783FF"},horizontalLineStyle:{stroke:"#1783FF"},filter:()=>!0};const Rp=(e,t)=>Math.abs(e-t),zHe=(e,t)=>typeof t=="function"?t(e):e.getShape(t);var tbr=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(c){try{u(n.next(c))}catch(A){o(A)}}function l(c){try{u(n.throw(c))}catch(A){o(A)}}function u(c){c.done?a(c.value):i(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})},rbr=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{var g;const p=Object.assign(Object.assign({x:f[0]/2-l/2,y:h,onChange:m=>{const b=(fm(m)?m:[m,m]).map(C=>Der(C)?C.getTime():C);this.options.mode==="modify"?this.filterElements(b):this.hiddenElements(b),n==null||n(b)}},A),{data:a.map(m=>go(m)?{time:m,value:0}:m),width:l,height:u,type:i});this.timebar?this.timebar.update(p):(this.timebar=new Jyr({style:p}),(g=this.canvas)===null||g===void 0||g.appendChild(this.timebar))})}upsertCanvas(){if(this.canvas)return this.canvas;const{className:t,height:r,position:n}=this.options,i=this.context.canvas,[a]=i.getSize(),[o,,s]=this.padding,[l,u]=Z3e({width:a,height:r+o+s,graphCanvas:i,className:"timebar",placement:n});return this.container=l,t&&l.classList.add(t),this.canvas=u,this.canvas}filterElements(t){return tbr(this,void 0,void 0,function*(){var r;if(!this.originalData)return;const{elementTypes:n,getTime:i}=this.options,{graph:a,element:o}=this.context,s=KHe(this.originalData);n.forEach(u=>{const c=`${u}s`;s[c]=(this.originalData[c]||[]).filter(A=>{const f=i(A);return!!VHe(f,t)})});const l=[...s.nodes,...s.combos].map(u=>Gn(u));s.edges=s.edges.filter(u=>{const c=u.source,A=u.target;return l.includes(c)&&l.includes(A)}),a.setData(s),yield(r=o.draw({animation:!1,silence:!0}))===null||r===void 0?void 0:r.finished})}hiddenElements(t){const{graph:r}=this.context,{elementTypes:n,getTime:i}=this.options,a=[],o=[];n.forEach(s=>{var l;const u=`${s}s`;(((l=this.originalData)===null||l===void 0?void 0:l[u])||[]).forEach(A=>{const f=Gn(A),h=i(A);VHe(h,t)?o.push(f):a.push(f)})}),r.hideElement(a,!1),r.showElement(o,!1)}destroy(){var t,r,n;const{graph:i}=this.context;this.originalData&&i.setData(Object.assign({},this.originalData)),(t=this.timebar)===null||t===void 0||t.destroy(),(r=this.canvas)===null||r===void 0||r.destroy(),(n=this.container)===null||n===void 0||n.remove(),this.originalData=void 0,this.container=void 0,this.timebar=void 0,this.canvas=void 0,super.destroy()}}pZ.defaultOptions={position:"bottom",enable:!0,timebarType:"time",className:"g6-timebar",width:450,height:60,zIndex:3,elementTypes:["node"],padding:10,mode:"modify",getTime:e=>ibr(e,nbr,void 0),loop:!1};const KHe=e=>{const{nodes:t=[],edges:r=[],combos:n=[]}=e;return{nodes:[...t],edges:[...r],combos:[...n]}},VHe=(e,t)=>{if(go(t))return e===t;const[r,n]=t;return e>=r&&e<=n},ibr=(e,t,r)=>{var n;for(let i=0;i{t[n]="8px"}),t.flexDirection=e.startsWith("top")||e.startsWith("bottom")?"row":"column",t}const obr=` .g6-toolbar { position: absolute; z-index: 100; display: flex; flex-direction: row; align-items: center; justify-content: center; border-radius: 4px; box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1); opacity: 0.65; } .g6-toolbar .g6-toolbar-item { display: inline-block; width: 16px; height: 16px; padding: 4px; cursor: pointer; box-sizing: content-box; } .g6-toolbar .g6-toolbar-item:hover { background-color: #f0f0f0; } .g6-toolbar .g6-toolbar-item svg { display: inline-block; width: 100%; height: 100%; pointer-events: none; } `,sbr=` `;var WHe=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(c){try{u(n.next(c))}catch(A){o(A)}}function l(c){try{u(n.throw(c))}catch(A){o(A)}}function u(c){c.done?a(c.value):i(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};class vZ extends Ap{constructor(t,r){super(t,Object.assign({},vZ.defaultOptions,r)),this.$element=aT("toolbar",!1),this.onToolbarItemClick=i=>{const{onClick:a}=this.options;if(i.target instanceof Element&&i.target.className.includes("g6-toolbar-item")){const o=i.target.getAttribute("value");a==null||a(o,i.target)}};const n=this.context.canvas.getContainer();this.$element.style.display="flex",n.appendChild(this.$element),p2e("g6-toolbar-css","style",{},obr,document.head),p2e("g6-toolbar-svgicon","div",{display:"none"},sbr),this.$element.addEventListener("click",this.onToolbarItemClick),this.update(r)}update(t){const r=Object.create(null,{update:{get:()=>super.update}});return WHe(this,void 0,void 0,function*(){r.update.call(this,t);const{className:n,position:i,style:a}=this.options;this.$element.className=`g6-toolbar ${n||""}`,Object.assign(this.$element.style,a,abr(i)),this.$element.innerHTML=yield this.getDOMContent()})}destroy(){this.$element.removeEventListener("click",this.onToolbarItemClick),this.$element.remove(),super.destroy()}getDOMContent(){return WHe(this,void 0,void 0,function*(){return(yield this.options.getItems()).map(r=>{var n;return`
    `}).join("")})}}vZ.defaultOptions={position:"top-left"};var YHe=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(c){try{u(n.next(c))}catch(A){o(A)}}function l(c){try{u(n.throw(c))}catch(A){o(A)}}function u(c){c.done?a(c.value):i(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};class mZ extends Ap{constructor(t,r){super(t,Object.assign({},mZ.defaultOptions,r)),this.currentTarget=null,this.tooltipElement=null,this.container=null,this.isEnable=(n,i)=>{const{enable:a}=this.options;return typeof a=="function"?a(n,i):a},this.onClick=n=>{const{target:{id:i}}=n;this.currentTarget===i?this.hide(n):this.show(n)},this.onPointerMove=n=>{const{target:i}=n;!this.currentTarget||i.id===this.currentTarget||this.show(n)},this.onPointerLeave=n=>{this.hide(n)},this.onCanvasMove=n=>{this.hide(n)},this.onPointerOver=n=>{this.show(n)},this.showById=n=>YHe(this,void 0,void 0,function*(){const i={target:{id:n}};yield this.show(i)}),this.getElementData=(n,i)=>{const{model:a}=this.context;switch(i){case"node":return a.getNodeData([n]);case"edge":return a.getEdgeData([n]);case"combo":return a.getComboData([n]);default:return[]}},this.show=n=>YHe(this,void 0,void 0,function*(){var i,a;const{client:o,target:{id:s}}=n;if(KL(n.target))return;const l=this.context.graph.getElementType(s),{getContent:u,title:c}=this.options,A=this.getElementData(s,l);if(!this.tooltipElement||!this.isEnable(n,A))return;let f={};if(u){if(f.content=yield u(n,A),!f.content)return}else{const p=this.context.graph.getElementRenderStyle(s),m=l==="node"?p.fill:p.stroke;f={title:c||l,data:A.map(b=>({name:"ID",value:b.id||`${b.source} -> ${b.target}`,color:m}))}}this.currentTarget=s;let h,g;if(o)h=o.x,g=o.y;else{const p=G0(A,"0.style",{x:0,y:0});h=p.x,g=p.y}(a=(i=this.options).onOpenChange)===null||a===void 0||a.call(i,!0),this.tooltipElement.update(Object.assign(Object.assign(Object.assign({},this.tooltipStyleProps),{x:h,y:g,style:{".tooltip":{visibility:"visible"}}}),f))}),this.hide=n=>{var i,a,o,s,l;if(!n){(a=(i=this.options).onOpenChange)===null||a===void 0||a.call(i,!1),(o=this.tooltipElement)===null||o===void 0||o.hide(),this.currentTarget=null;return}if(!this.tooltipElement||!this.currentTarget)return;const{client:{x:u,y:c}}=n;(l=(s=this.options).onOpenChange)===null||l===void 0||l.call(s,!1),this.tooltipElement.hide(u,c),this.currentTarget=null},this.initTooltip=()=>{var n;const i=new Dyr({className:"tooltip",style:this.tooltipStyleProps});return(n=this.container)===null||n===void 0||n.appendChild(i.HTMLTooltipElement),i},this.render(),this.bindEvents()}getEvents(){return this.options.trigger==="click"?{"node:click":this.onClick,"edge:click":this.onClick,"combo:click":this.onClick,"canvas:click":this.onPointerLeave,contextmenu:this.onPointerLeave,drag:this.onPointerLeave}:{"node:pointerover":this.onPointerOver,"node:pointermove":this.onPointerMove,"canvas:pointermove":this.onCanvasMove,"edge:pointerover":this.onPointerOver,"edge:pointermove":this.onPointerMove,"combo:pointerover":this.onPointerOver,"combo:pointermove":this.onPointerMove,contextmenu:this.onPointerLeave,"node:drag":this.onPointerLeave}}update(t){var r;this.unbindEvents(),super.update(t),this.tooltipElement&&((r=this.container)===null||r===void 0||r.removeChild(this.tooltipElement.HTMLTooltipElement)),this.tooltipElement=this.initTooltip(),this.bindEvents()}render(){const{canvas:t}=this.context,r=t.getContainer();r&&(this.container=r,this.tooltipElement=this.initTooltip())}unbindEvents(){const{graph:t}=this.context,r=this.getEvents();Object.keys(r).forEach(n=>{t.off(n,r[n])})}bindEvents(){const{graph:t}=this.context,r=this.getEvents();Object.keys(r).forEach(n=>{t.on(n,r[n])})}get tooltipStyleProps(){const{canvas:t}=this.context,{center:r}=t.getBounds(),n=t.getContainer(),{top:i,left:a}=n.getBoundingClientRect(),{style:o,position:s,enterable:l,container:u={x:-a,y:-i},title:c,offset:A}=this.options,[f,h]=r,[g,p]=t.getSize();return{x:f,y:h,container:u,title:c,bounding:{x:0,y:0,width:g,height:p},position:s,enterable:l,offset:A,style:o}}destroy(){var t;this.unbindEvents(),this.tooltipElement&&((t=this.container)===null||t===void 0||t.removeChild(this.tooltipElement.HTMLTooltipElement)),super.destroy()}}mZ.defaultOptions={trigger:"hover",position:"top-right",enterable:!1,enable:!0,offset:[10,10],style:{".tooltip":{visibility:"hidden"}}};var Rpt=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(c){try{u(n.next(c))}catch(A){o(A)}}function l(c){try{u(n.throw(c))}catch(A){o(A)}}function u(c){c.done?a(c.value):i(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};let $_;function Mpt(e,t){return $_||($_=document.createElement("canvas")),$_.width=e,$_.height=t,$_.getContext("2d").clearRect(0,0,e,t),$_}function lbr(e,t,r,n){return Rpt(this,void 0,void 0,function*(){const i=Mpt(e,t),a=i.getContext("2d"),{rotate:o,opacity:s,textFill:l,textFontSize:u,textFontFamily:c,textFontVariant:A,textFontWeight:f,textAlign:h,textBaseline:g}=n;return a.textAlign=h,a.textBaseline=g,a.translate(e/2,t/2),a.font=`${u}px ${c} ${A} ${f}`,o&&a.rotate(o),s&&(a.globalAlpha=s),l&&(a.fillStyle=l,a.fillText(`${r}`,0,0)),i.toDataURL()})}function ubr(e,t,r,n){return Rpt(this,void 0,void 0,function*(){const i=Mpt(e,t),a=i.getContext("2d"),{rotate:o,opacity:s}=n;o&&a.rotate(o),s&&(a.globalAlpha=s);const l=new Image;return l.crossOrigin="anonymous",l.src=r,new Promise(u=>{l.onload=function(){const c=e>l.width?(e-l.width)/2:0,A=t>l.height?(t-l.height)/2:0;a.drawImage(l,0,0,l.width,l.height,c,A,e-c*2,t-A*2),u(i.toDataURL())}})})}var cbr=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(c){try{u(n.next(c))}catch(A){o(A)}}function l(c){try{u(n.throw(c))}catch(A){o(A)}}function u(c){c.done?a(c.value):i(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})},Abr=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);isuper.update}});return cbr(this,void 0,void 0,function*(){r.update.call(this,t);const n=this.options,{width:i,height:a,text:o,imageURL:s}=n,l=Abr(n,["width","height","text","imageURL"]);Object.keys(l).forEach(c=>{c.startsWith("background")&&(this.$element.style[c]=t[c])});const u=s?yield ubr(i,a,s,l):yield lbr(i,a,o,l);this.$element.style.backgroundImage=`url(${u})`})}destroy(){super.destroy(),this.$element.remove()}}yZ.defaultOptions={width:200,height:100,opacity:.2,rotate:Math.PI/12,text:"",textFill:"#000",textFontSize:16,textAlign:"center",textBaseline:"middle",backgroundRepeat:"repeat"};const fbr=["#7E92B5","#F4664A","#FFBE3A"],hbr={type:"group",color:["#1783FF","#00C9C9","#F08F56","#D580FF","#7863FF","#DB9D0D","#60C42D","#FF80CA","#2491B3","#17C76F"]},dbr={type:"group",color:["#99ADD1","#1783FF","#00C9C9","#F08F56","#D580FF","#7863FF","#DB9D0D","#60C42D","#FF80CA","#2491B3","#17C76F"]};function Opt(e){const{bgColor:t,textColor:r,nodeColor:n,nodeColorDisabled:i,nodeStroke:a,nodeHaloStrokeOpacityActive:o=.15,nodeHaloStrokeOpacitySelected:s=.25,nodeOpacityDisabled:l=.06,nodeIconOpacityInactive:u=.85,nodeOpacityInactive:c=.25,nodeBadgePalette:A=fbr,nodePaletteOptions:f=hbr,edgeColor:h,edgeColorDisabled:g,edgePaletteOptions:p=dbr,comboColor:m,comboColorDisabled:b,comboStroke:C,comboStrokeDisabled:E,edgeColorInactive:_}=e;return{background:t,node:{palette:f,style:{donutOpacity:1,badgeBackgroundOpacity:1,badgeFill:"#fff",badgeFontSize:8,badgePadding:[0,4],badgePalette:A,fill:n,fillOpacity:1,halo:!1,iconFill:"#fff",iconOpacity:1,labelBackground:!1,labelBackgroundFill:t,labelBackgroundLineWidth:0,labelBackgroundOpacity:.75,labelFill:r,labelFillOpacity:.85,labelLineHeight:16,labelPadding:[0,2],labelFontSize:12,labelFontWeight:400,labelOpacity:1,labelOffsetY:2,lineWidth:0,portFill:n,portLineWidth:1,portStroke:a,portStrokeOpacity:.65,size:32,stroke:a,strokeOpacity:1,zIndex:2},state:{selected:{halo:!0,haloLineWidth:24,haloStrokeOpacity:s,labelFontSize:12,labelFontWeight:"bold",lineWidth:4,stroke:a},active:{halo:!0,haloLineWidth:12,haloStrokeOpacity:o},highlight:{labelFontWeight:"bold",lineWidth:4,stroke:a,strokeOpacity:.85},inactive:{badgeBackgroundOpacity:c,donutOpacity:c,fillOpacity:c,iconOpacity:u,labelFill:r,labelFillOpacity:c,strokeOpacity:c},disabled:{badgeBackgroundOpacity:.25,donutOpacity:l,fill:i,fillOpacity:l,iconFill:i,iconOpacity:.25,labelFill:r,labelFillOpacity:.25,strokeOpacity:l}},animation:{enter:"fade",exit:"fade",show:"fade",hide:"fade",expand:"node-expand",collapse:"node-collapse",update:[{fields:["x","y","fill","stroke"]}],translate:[{fields:["x","y"]}]}},edge:{palette:p,style:{badgeBackgroundFill:h,badgeFill:"#fff",badgeFontSize:8,badgeOffsetX:10,fillOpacity:1,halo:!1,haloLineWidth:12,haloStrokeOpacity:1,increasedLineWidthForHitTesting:2,labelBackground:!1,labelBackgroundFill:t,labelBackgroundLineWidth:0,labelBackgroundOpacity:.75,labelBackgroundPadding:[4,4,4,4],labelFill:r,labelFontSize:12,labelFontWeight:400,labelOpacity:1,labelPlacement:"center",labelTextBaseline:"middle",lineWidth:1,stroke:h,strokeOpacity:1,zIndex:1},state:{selected:{halo:!0,haloStrokeOpacity:.25,labelFontSize:14,labelFontWeight:"bold",lineWidth:3},active:{halo:!0,haloStrokeOpacity:.15},highlight:{labelFontWeight:"bold",lineWidth:3},inactive:{stroke:_,fillOpacity:.08,labelOpacity:.25,strokeOpacity:.08,badgeBackgroundOpacity:.25},disabled:{stroke:g,fillOpacity:.45,strokeOpacity:.45,labelOpacity:.25,badgeBackgroundOpacity:.45}},animation:{enter:"fade",exit:"fade",expand:"path-in",collapse:"path-out",show:"fade",hide:"fade",update:[{fields:["sourceNode","targetNode"]},{fields:["stroke"],shape:"key"}],translate:[{fields:["sourceNode","targetNode"]}]}},combo:{style:{collapsedMarkerFill:t,collapsedMarkerFontSize:12,collapsedMarkerFillOpacity:1,collapsedSize:32,collapsedFillOpacity:1,fill:m,halo:!1,haloLineWidth:12,haloStroke:C,haloStrokeOpacity:.25,labelBackground:!1,labelBackgroundFill:t,labelBackgroundLineWidth:0,labelBackgroundOpacity:.75,labelBackgroundPadding:[2,4,2,4],labelFill:r,labelFontSize:12,labelFontWeight:400,labelOpacity:1,lineDash:0,lineWidth:1,fillOpacity:.04,strokeOpacity:1,padding:10,stroke:C},state:{selected:{halo:!0,labelFontSize:14,labelFontWeight:700,lineWidth:4},active:{halo:!0},highlight:{labelFontWeight:700,lineWidth:4},inactive:{fillOpacity:.65,labelOpacity:.25,strokeOpacity:.65},disabled:{fill:b,fillOpacity:.25,labelOpacity:.25,stroke:E,strokeOpacity:.25}},animation:{enter:"fade",exit:"fade",show:"fade",hide:"fade",expand:"combo-expand",collapse:"combo-collapse",update:[{fields:["x","y"]},{fields:["fill","stroke","lineWidth"],shape:"key"}],translate:[{fields:["x","y"]}]}}}}const gbr={type:"group",color:["#637088","#0F55A6","#008383","#9C5D38","#8B53A6","#4E40A6","#8F6608","#3E801D","#A65383","#175E75","#0F8248"]},pbr={bgColor:"#000000",comboColor:"#fdfdfd",comboColorDisabled:"#d0e4ff",comboStroke:"#99add1",comboStrokeDisabled:"#969696",edgeColor:"#637088",edgeColorDisabled:"#637088",edgeColorInactive:"#D0E4FF",edgePaletteOptions:gbr,nodeColor:"#1783ff",nodeColorDisabled:"#D0E4FF",nodeHaloStrokeOpacityActive:.25,nodeHaloStrokeOpacitySelected:.45,nodeIconOpacityInactive:.45,nodeOpacityDisabled:.25,nodeOpacityInactive:.45,nodeStroke:"#d0e4ff",textColor:"#ffffff"},vbr=Opt(pbr),mbr={bgColor:"#ffffff",comboColor:"#99ADD1",comboColorDisabled:"#f0f0f0",comboStroke:"#99add1",comboStrokeDisabled:"#d9d9d9",edgeColor:"#99add1",edgeColorDisabled:"#d9d9d9",edgeColorInactive:"#1B324F",nodeColor:"#1783ff",nodeColorDisabled:"#1B324F",nodeHaloStrokeOpacityActive:.15,nodeHaloStrokeOpacitySelected:.25,nodeIconOpacityInactive:.85,nodeOpacityDisabled:.06,nodeOpacityInactive:.25,nodeStroke:"#000000",textColor:"#000000"},ybr=Opt(mbr);class X5 extends e3e{beforeDraw(t,r){return t}afterLayout(t,r){}}class bbr extends X5{beforeDraw(t){const{model:r}=this.context,n=t.add.combos,i=a=>{const o=[];return a.forEach((s,l)=>{const c=r.getAncestorsData(l,"combo").map(A=>Gn(A)).reverse();o.push([l,s,c.length])}),new Map(o.sort(([,,s],[,,l])=>l-s).map(([s,l])=>[s,l]))};return t.add.combos=i(n),t.update.combos=i(t.update.combos),t}}function Zm(e,t,r,n,i){const a=Gn(n),o=`${r}s`,s=i?n:e.add[o].get(a)||e.update[o].get(a)||e.remove[o].get(a)||n;Object.entries(e).forEach(([l,u])=>{t===l?u[o].set(a,s):u[o].delete(a)})}function WK(e,t){return Object.keys(e).every(r=>e[r]===t[r])}class wbr extends X5{beforeDraw(t,r){if(r.stage==="visibility"||!this.context.model.model.hasTreeStructure(Gc))return t;const{model:n}=this.context,{add:i,update:a}=t,o=[...t.update.combos.entries(),...t.add.combos.entries()];for(;o.length;){const[s,l]=o.pop();if(Wv(l)){const u=n.getDescendantsData(s),c=u.map(Gn),{internal:A,external:f}=r2e(c,h=>n.getRelatedEdgesData(h));u.forEach(h=>{const g=Gn(h),p=o.findIndex(([b])=>b===g);p!==-1&&o.splice(p,1);const m=n.getElementType(g);Zm(t,"remove",m,h)}),A.forEach(h=>Zm(t,"remove","edge",h)),f.forEach(h=>{var g;const p=Gn(h);((g=this.context.element)===null||g===void 0?void 0:g.getElement(p))?a.edges.set(p,h):i.edges.set(p,h)})}else{const u=n.getChildrenData(s),c=u.map(Gn),{edges:A}=r2e(c,f=>n.getRelatedEdgesData(f));[...u,...A].forEach(f=>{var h;const g=Gn(f),p=n.getElementType(g);((h=this.context.element)===null||h===void 0?void 0:h.getElement(g))?Zm(t,"update",p,f):Zm(t,"add",p,f),p==="combo"&&o.push([g,f])})}}return t}}const qHe=(e,t,r,n)=>{const i=`${r}s`,a=Gn(n);!e.add[i].has(a)&&!e.update[i].has(a)&&e[t][i].set(Gn(n),n)};class Cbr extends X5{getElement(t){return this.context.element.getElement(t)}handleExpand(t,r){if(qHe(r,"add","node",t),Wv(t))return;const n=Gn(t);qHe(r,"add","node",t),this.context.model.getRelatedEdgesData(n).forEach(o=>{Zm(r,"add","edge",o)}),this.context.model.getChildrenData(n).forEach(o=>{this.handleExpand(o,r)})}beforeDraw(t){const{graph:r,model:n}=this.context;if(!n.model.hasTreeStructure(Vm))return t;const{add:{nodes:i,edges:a},update:{nodes:o}}=t,s=new Map,l=new Map;i.forEach((c,A)=>{Wv(c)&&s.set(A,c)}),a.forEach(c=>{if(r.getElementType(c.source)!=="node")return;const A=r.getNodeData(c.source);Wv(A)&&s.set(c.source,A)}),o.forEach((c,A)=>{const f=this.getElement(A);if(!f)return;const h=f.attributes.collapsed;Wv(c)?h||s.set(A,c):h&&l.set(A,c)});const u=new Set;return s.forEach((c,A)=>{n.getDescendantsData(A).forEach(h=>{const g=Gn(h);if(u.has(g))return;Zm(t,"remove","node",h),n.getRelatedEdgesData(g).forEach(m=>{Zm(t,"remove","edge",m)}),u.add(g)})}),l.forEach((c,A)=>{if(n.getAncestorsData(A,Vm).some(Wv)){Zm(t,"remove","node",c);return}this.handleExpand(c,t)}),t}}function Ibr(e,t,r){Wbe[e][t]&&DC.warn(`The extension ${t} of ${e} has been registered before, and will be overridden.`),Object.assign(Wbe[e],{[t]:r})}/*! * @antv/g-plugin-dragndrop * @description A G plugin for Drag n Drop implemented with PointerEvents * @version 2.0.38 * @date 7/30/2025, 1:35:41 PM * @author AntVis * @docs https://g.antv.antgroup.com/ */var Npt=function(){function e(t){aa(this,e),this.dragndropPluginOptions=t}return oa(e,[{key:"apply",value:function(r){var n=this,i=r.renderingService,a=r.renderingContext,o=a.root.ownerDocument,s=o.defaultView,l=function(c){var A=c.target,f=A===o,h=f&&n.dragndropPluginOptions.isDocumentDraggable?o:A.closest&&A.closest("[draggable=true]");if(h){var g=!1,p=c.timeStamp,m=[c.clientX,c.clientY],b=null,C=[c.clientX,c.clientY],E=function(){var F=ap(Jg().mark(function M(N){var P,j,z,W,Y,ee;return Jg().wrap(function(q){for(;;)switch(q.prev=q.next){case 0:if(g){q.next=2;break}if(P=N.timeStamp-p,j=Uv([N.clientX,N.clientY],m),!(P<=n.dragndropPluginOptions.dragstartTimeThreshold||j<=n.dragndropPluginOptions.dragstartDistanceThreshold)){q.next=1;break}return q.abrupt("return");case 1:N.type="dragstart",h.dispatchEvent(N),g=!0;case 2:if(N.type="drag",N.dx=N.clientX-C[0],N.dy=N.clientY-C[1],h.dispatchEvent(N),C=[N.clientX,N.clientY],f){q.next=4;break}return z=n.dragndropPluginOptions.overlap==="pointer"?[N.canvasX,N.canvasY]:A.getBounds().center,q.next=3,o.elementsFromPoint(z[0],z[1]);case 3:W=q.sent,Y=W[W.indexOf(A)+1],ee=(Y==null?void 0:Y.closest("[droppable=true]"))||(n.dragndropPluginOptions.isDocumentDroppable?o:null),b!==ee&&(b&&(N.type="dragleave",N.target=b,b.dispatchEvent(N)),ee&&(N.type="dragenter",N.target=ee,ee.dispatchEvent(N)),b=ee,b&&(N.type="dragover",N.target=b,b.dispatchEvent(N)));case 4:case"end":return q.stop()}},M)}));return function(N){return F.apply(this,arguments)}}();s.addEventListener("pointermove",E);var _=function(M){if(g){M.detail={preventClick:!0};var N=M.clone();b&&(N.type="drop",N.target=b,b.dispatchEvent(N)),N.type="dragend",h.dispatchEvent(N),g=!1}s.removeEventListener("pointermove",E)};A.addEventListener("pointerup",_,{once:!0}),A.addEventListener("pointerupoutside",_,{once:!0})}};i.hooks.init.tap(e.tag,function(){s.addEventListener("pointerdown",l)}),i.hooks.destroy.tap(e.tag,function(){s.removeEventListener("pointerdown",l)})}}])}();Npt.tag="Dragndrop";var Ebr=function(e){function t(){var r,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return aa(this,t),r=kl(this,t),r.name="dragndrop",r.options=n,r}return Ql(t,e),oa(t,[{key:"init",value:function(){this.addRenderingPlugin(new Npt(Ot({overlap:"pointer",isDocumentDraggable:!1,isDocumentDroppable:!1,dragstartDistanceThreshold:0,dragstartTimeThreshold:0},this.options)))}},{key:"destroy",value:function(){this.removeAllRenderingPlugins()}},{key:"setOptions",value:function(n){Object.assign(this.plugins[0].dragndropPluginOptions,n)}}])}(z5),JHe=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(c){try{u(n.next(c))}catch(A){o(A)}}function l(c){try{u(n.throw(c))}catch(A){o(A)}}function u(c){c.done?a(c.value):i(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})},XHe=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{const f=new Vbe(Object.assign(Object.assign({},s),{supportsMutipleCanvasesInOneContainer:o,renderer:u[A],background:o?A==="background"?i:void 0:i}));return[A,f]}));nje(c),this.extends={config:this.config,renderer:n,renderers:u,layers:c}}get ready(){return Promise.all(Object.entries(this.getLayers()).map(([,t])=>t.ready))}resize(t,r){Object.assign(this.extends.config,{width:t,height:r}),Object.values(this.getLayers()).forEach(n=>{const i=n.getCamera(),a=i.getPosition(),o=i.getFocalPoint();n.resize(t,r),i.setPosition(a),i.setFocalPoint(o)})}getBounds(t){return UL(Object.values(this.getLayers()).map(r=>t?r.getRoot().childNodes.find(i=>i.classList.includes(t)):r.getRoot()).filter(r=>(r==null?void 0:r.childNodes.length)>0).map(r=>r.getBounds()))}getContainer(){const t=this.extends.config.container;return typeof t=="string"?document.getElementById(t):t}getSize(){return[this.extends.config.width||0,this.extends.config.height||0]}appendChild(t,r){var n;const i=((n=t.style)===null||n===void 0?void 0:n.$layer)||"main";return this.getLayer(i).appendChild(t,r)}setRenderer(t){if(t===this.extends.renderer)return;const r=rje(t,this.config.enableMultiLayer?eje:ZHe);this.extends.renderers=r,Object.entries(r).forEach(([n,i])=>this.getLayer(n).setRenderer(i)),nje(this.getLayers())}getCanvasByViewport(t){return Yg(this.getLayer().viewport2Canvas($b(t)))}getViewportByCanvas(t){return Yg(this.getLayer().canvas2Viewport($b(t)))}getViewportByClient(t){return Yg(this.getLayer().client2Viewport($b(t)))}getClientByViewport(t){return Yg(this.getLayer().viewport2Client($b(t)))}getClientByCanvas(t){return this.getClientByViewport(this.getViewportByCanvas(t))}getCanvasByClient(t){const r=this.getLayer(),n=r.client2Viewport($b(t));return Yg(r.viewport2Canvas(n))}toDataURL(){return JHe(this,arguments,void 0,function*(t={}){const r=globalThis.devicePixelRatio||1,{mode:n="viewport"}=t,i=XHe(t,["mode"]);let[a,o,s,l]=[0,0,0,0];if(n==="viewport")[s,l]=this.getSize();else if(n==="overall"){const b=this.getBounds(),C=K5(b);[a,o]=b.min,[s,l]=C}const u=Tbe('
    '),c=new Vbe({width:s,height:l,renderer:new lN,devicePixelRatio:r,container:u,background:this.extends.config.background});yield c.ready,c.appendChild(this.getLayer("background").getRoot().cloneNode(!0)),c.appendChild(this.getRoot().cloneNode(!0));const A=this.getLayer("label").getRoot().cloneNode(!0),f=c.viewport2Canvas({x:0,y:0}),h=this.getCanvasByViewport([0,0]);A.translate([h[0]-f.x,h[1]-f.y]),A.scale(1/this.getCamera().getZoom()),c.appendChild(A),c.appendChild(this.getLayer("transient").getRoot().cloneNode(!0));const g=this.getCamera(),p=c.getCamera();if(n==="viewport")p.setZoom(g.getZoom()),p.setPosition(g.getPosition()),p.setFocalPoint(g.getFocalPoint());else if(n==="overall"){const[b,C,E]=p.getPosition(),[_,F,M]=p.getFocalPoint();p.setPosition([b+a,C+o,E]),p.setFocalPoint([_+a,F+o,M])}const m=c.getContextService();return new Promise(b=>{c.addEventListener(Km.RERENDER,()=>JHe(this,void 0,void 0,function*(){yield new Promise(E=>setTimeout(E,300));const C=yield m.toDataURL(i);b(C)}))})})}destroy(){Object.values(this.getLayers()).forEach(t=>{t.getCamera().cancelLandmarkAnimation(),t.destroy()})}}function rje(e,t){return Object.fromEntries(t.map(r=>{const n=(e==null?void 0:e(r))||new lN;return n instanceof lN&&n.setConfig({enableDirtyRectangleRendering:!1}),r==="main"?n.registerPlugin(new Ebr({isDocumentDraggable:!0,isDocumentDroppable:!0,dragstartDistanceThreshold:10,dragstartTimeThreshold:100})):n.unregisterPlugin(n.getPlugin("dom-interaction")),[r,n]}))}function nje(e){Object.entries(e).forEach(([t,r])=>{const n=r.getContextService().getDomElement();n!=null&&n.style&&(n.style.gridArea="1 / 1 / 2 / 2",n.style.outline="none",n.tabIndex=1,t!=="main"&&(n.style.pointerEvents="none")),n!=null&&n.parentElement&&(n.parentElement.style.display="grid",n.parentElement.style.isolation="isolate")})}const z_=e=>e?parseInt(e):0;function xbr(e){const t=getComputedStyle(e),r=e.clientWidth||z_(t.width),n=e.clientHeight||z_(t.height),i=z_(t.paddingLeft)+z_(t.paddingRight),a=z_(t.paddingTop)+z_(t.paddingBottom);return[r-i,n-a]}function ije(e){if(!e)return[0,0];let t=640,r=480;const[n,i]=xbr(e);t=n||t,r=i||r;const a=1,o=1;return[Math.max(go(t)?t:a,a),Math.max(go(r)?r:o,o)]}class bZ{constructor(t){this.type=t}}class id extends bZ{constructor(t,r){super(t),this.data=r}}class ly extends bZ{constructor(t,r,n,i){super(t),this.animationType=r,this.animation=n,this.data=i}}class K_ extends bZ{constructor(t,r,n){super(t),this.elementType=r,this.data=n}}class u$ extends bZ{constructor(t,r){super(t),this.data=r}}function Md(e,t){e.emit(t.type,t)}function Sbr(e){if(!e)return null;if(e instanceof Hft)return{type:"canvas",element:e};let t=e;for(;t;){if(zL(t))return{type:"node",element:t};if(edt(t))return{type:"edge",element:t};if(c3e(t))return{type:"combo",element:t};t=t.parentElement}return null}function aje(e){var t;return((t=e==null?void 0:e.style)===null||t===void 0?void 0:t.zIndex)||0}const eO="cachedStyle",e5e=e=>`__${e}__`;function kbr(e,t){const r=Array.isArray(t)?t:[t];G0(e,eO)||tN(e,eO,{}),r.forEach(n=>{tN(G0(e,eO),e5e(n),e.attributes[n])})}function oje(e,t){return G0(e,[eO,e5e(t)])}function Qbr(e,t){return e5e(t)in(G0(e,eO)||{})}let _br=class{constructor(t){this.tasks=[],this.animations=new Set,this.context=t}getTasks(){const t=[...this.tasks];return this.tasks=[],t}add(t,r){this.tasks.push([t,r])}animate(t,r,n){var i,a,o;(i=r==null?void 0:r.before)===null||i===void 0||i.call(r);const s=this.getTasks().map(([u,c])=>{var A,f,h;const{element:g,elementType:p,stage:m}=u,b=lor(this.context.options,p,m,t);(A=c==null?void 0:c.before)===null||A===void 0||A.call(c);const C=b.length?cor(g,this.inferStyle(u,n),b):null;return C?((f=c==null?void 0:c.beforeAnimate)===null||f===void 0||f.call(c,C),C.finished.then(()=>{var E,_;(E=c==null?void 0:c.afterAnimate)===null||E===void 0||E.call(c,C),(_=c==null?void 0:c.after)===null||_===void 0||_.call(c),this.animations.delete(C)})):(h=c==null?void 0:c.after)===null||h===void 0||h.call(c),C}).filter(Boolean);s.forEach(u=>this.animations.add(u));const l=qxe(s);return l?((a=r==null?void 0:r.beforeAnimate)===null||a===void 0||a.call(r,l),l.finished.then(()=>{var u,c;(u=r==null?void 0:r.afterAnimate)===null||u===void 0||u.call(r,l),(c=r==null?void 0:r.after)===null||c===void 0||c.call(r),this.release()})):(o=r==null?void 0:r.after)===null||o===void 0||o.call(r),l}inferStyle(t,r){var n,i;const{element:a,elementType:o,stage:s,originalStyle:l,updatedStyle:u={}}=t;t.modifiedStyle||(t.modifiedStyle=Object.assign(Object.assign({},l),u));const{modifiedStyle:c}=t,A={},f={};if(s==="enter")Object.assign(A,{opacity:0});else if(s==="exit")Object.assign(f,{opacity:0});else if(s==="show")Object.assign(A,{opacity:0}),Object.assign(f,{opacity:(n=oje(a,"opacity"))!==null&&n!==void 0?n:oN("opacity")});else if(s==="hide")Object.assign(A,{opacity:(i=oje(a,"opacity"))!==null&&i!==void 0?i:oN("opacity")}),Object.assign(f,{opacity:0});else if(s==="collapse"){const{collapse:h}=r||{},{target:g,descendants:p,position:m}=h;if(o==="node"){if(p.includes(a.id)){const[b,C,E]=m;Object.assign(f,{x:b,y:C,z:E})}}else if(o==="combo"){if(a.id===g||p.includes(a.id)){const[b,C]=m;Object.assign(f,{x:b,y:C,childrenNode:l.childrenNode})}}else o==="edge"&&Object.assign(f,{sourceNode:c.sourceNode,targetNode:c.targetNode})}else if(s==="expand"){const{expand:h}=r||{},{target:g,descendants:p,position:m}=h;if(o==="node"){if(a.id===g||p.includes(a.id)){const[b,C,E]=m;Object.assign(A,{x:b,y:C,z:E})}}else if(o==="combo"){if(a.id===g||p.includes(a.id)){const[b,C,E]=m;Object.assign(A,{x:b,y:C,z:E,childrenNode:c.childrenNode})}}else o==="edge"&&Object.assign(A,{sourceNode:c.sourceNode,targetNode:c.targetNode})}return[Object.keys(A).length>0?Object.assign({},l,A):l,Object.keys(f).length>0?Object.assign({},c,f):c]}stop(){this.animations.forEach(t=>t.cancel())}clear(){this.tasks=[]}release(){var t,r;const{canvas:n}=this.context,i=(r=(t=n.document)===null||t===void 0?void 0:t.timeline)===null||r===void 0?void 0:r.animationsWithPromises;i&&(n.document.timeline.animationsWithPromises=i.filter(a=>a.playState!=="finished"))}destroy(){this.stop(),this.animations.clear(),this.tasks=[]}};class Tbr{constructor(t){this.batchCount=0,this.context=t}emit(t){const{graph:r}=this.context;r.emit(t.type,t)}startBatch(t=!0){this.batchCount++,this.batchCount===1&&this.emit(new id(Ta.BATCH_START,{initiate:t}))}endBatch(){this.batchCount--,this.batchCount===0&&this.emit(new id(Ta.BATCH_END))}get isBatching(){return this.batchCount>0}destroy(){this.context=null}}class Dbr extends Zxe{constructor(t){super(t),this.currentTarget=null,this.currentTargetType=null,this.category="behavior",this.forwardCanvasEvents=r=>{const{target:n}=r,i=Sbr(n);if(!i)return;const{graph:a,canvas:o}=this.context,{type:s,element:l}=i;if("destroyed"in l&&(KL(l)||l.destroyed))return;const{type:u,detail:c,button:A}=r,f=Object.assign(Object.assign({},r),{target:l,targetType:s,originalTarget:n});u===Ei.POINTER_MOVE&&(this.currentTarget!==l&&(this.currentTarget&&a.emit(`${this.currentTargetType}:${Ei.POINTER_LEAVE}`,Object.assign(Object.assign({},f),{type:Ei.POINTER_LEAVE,target:this.currentTarget,targetType:this.currentTargetType})),l&&(Object.assign(f,{type:Ei.POINTER_ENTER}),a.emit(`${s}:${Ei.POINTER_ENTER}`,f))),this.currentTarget=l,this.currentTargetType=s),u===Ei.CLICK&&A===2||(a.emit(`${s}:${u}`,f),a.emit(u,f)),u===Ei.CLICK&&c===2&&(Object.assign(f,{type:Ei.DBLCLICK}),a.emit(`${s}:${Ei.DBLCLICK}`,f),a.emit(Ei.DBLCLICK,f)),u===Ei.POINTER_DOWN&&A===2&&(Object.assign(f,{type:Ei.CONTEXT_MENU,preventDefault:()=>{var h;(h=o.getContainer())===null||h===void 0||h.addEventListener(Ei.CONTEXT_MENU,g=>g.preventDefault(),{once:!0})}}),a.emit(`${s}:${Ei.CONTEXT_MENU}`,f),a.emit(Ei.CONTEXT_MENU,f))},this.forwardContainerEvents=r=>{this.context.graph.emit(r.type,r)},this.forwardEvents(),this.setBehaviors(this.context.options.behaviors||[])}setBehaviors(t){this.setExtensions(t)}forwardEvents(){const t=this.context.canvas.getContainer();t&&[X8.KEY_DOWN,X8.KEY_UP].forEach(n=>{t.addEventListener(n,this.forwardContainerEvents)});const r=this.context.canvas.document;r&&[Ei.CLICK,Ei.DBLCLICK,Ei.POINTER_OVER,Ei.POINTER_LEAVE,Ei.POINTER_ENTER,Ei.POINTER_MOVE,Ei.POINTER_OUT,Ei.POINTER_DOWN,Ei.POINTER_UP,Ei.CONTEXT_MENU,Ei.DRAG_START,Ei.DRAG,Ei.DRAG_END,Ei.DRAG_ENTER,Ei.DRAG_OVER,Ei.DRAG_LEAVE,Ei.DROP,Ei.WHEEL].forEach(n=>{r.addEventListener(n,this.forwardCanvasEvents)})}destroy(){const t=this.context.canvas.getContainer();t&&[X8.KEY_DOWN,X8.KEY_UP].forEach(r=>{t.removeEventListener(r,this.forwardContainerEvents)}),this.context.canvas.document.removeAllEventListeners(),super.destroy()}}var vN=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);ig.length!==p.length?!1:g.every((m,b)=>m===p[b]),h=(g,p)=>{const m=Object.keys(g),b=Object.keys(p);return m.length!==b.length?!1:m.every(C=>g[C]===p[C])};return!(!h(o,A)||!f(a,c)||!f(r,s)||!h(n,l)||!h(i,u))}var Fbr=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i0}silence(t){this.isTraceless=!0,t(),this.isTraceless=!1}isCombo(t){return this.comboIds.has(t)||this.latestRemovedComboIds.has(t)}getData(){return{nodes:this.getNodeData(),edges:this.getEdgeData(),combos:this.getComboData()}}getNodeData(t){return this.model.getAllNodes().reduce((r,n)=>{const i=hg(n);return this.isCombo(Gn(i))||(t===void 0||t.includes(Gn(i)))&&r.push(i),r},[])}getEdgeDatum(t){return hg(this.model.getEdge(t))}getEdgeData(t){return this.model.getAllEdges().reduce((r,n)=>{const i=hg(n);return(t===void 0||t.includes(Gn(i)))&&r.push(i),r},[])}getComboData(t){return this.model.getAllNodes().reduce((r,n)=>{const i=hg(n);return this.isCombo(Gn(i))&&(t===void 0||t.includes(Gn(i)))&&r.push(i),r},[])}getRootsData(t=Vm){return this.model.getRoots(t).map(hg)}getAncestorsData(t,r){const{model:n}=this;return!n.hasNode(t)||!n.hasTreeStructure(r)?[]:n.getAncestors(t,r).map(hg)}getDescendantsData(t){const r=this.getElementDataById(t),n=[];return C9(r,i=>{i!==r&&n.push(i)},i=>this.getChildrenData(Gn(i)),"TB"),n}getParentData(t,r){const{model:n}=this;if(!r){DC.warn("The hierarchy structure key is not specified");return}if(!n.hasNode(t)||!n.hasTreeStructure(r))return;const i=n.getParent(t,r);return i?hg(i):void 0}getChildrenData(t){const r=this.getElementType(t)==="node"?Vm:Gc,{model:n}=this;return!n.hasNode(t)||!n.hasTreeStructure(r)?[]:n.getChildren(t,r).map(hg)}getElementsDataByType(t){return t==="node"?this.getNodeData():t==="edge"?this.getEdgeData():t==="combo"?this.getComboData():[]}getElementDataById(t){return this.getElementType(t)==="edge"?this.getEdgeDatum(t):this.getNodeLikeDatum(t)}getNodeLikeDatum(t){const r=this.model.getNode(t);return hg(r)}getNodeLikeData(t){return this.model.getAllNodes().reduce((r,n)=>{const i=hg(n);return t?t.includes(Gn(i))&&r.push(i):r.push(i),r},[])}getElementDataByState(t,r){return this.getElementsDataByType(t).filter(i=>{var a;return(a=i.states)===null||a===void 0?void 0:a.includes(r)})}getElementState(t){var r;return((r=this.getElementDataById(t))===null||r===void 0?void 0:r.states)||[]}hasNode(t){return this.model.hasNode(t)&&!this.isCombo(t)}hasEdge(t){return this.model.hasEdge(t)}hasCombo(t){return this.model.hasNode(t)&&this.isCombo(t)}getRelatedEdgesData(t,r="both"){return this.model.getRelatedEdges(t,r).map(hg)}getNeighborNodesData(t){return this.model.getNeighbors(t).map(hg)}setData(t){const{nodes:r=[],edges:n=[],combos:i=[]}=t,{nodes:a,edges:o,combos:s}=this.getData(),l=t5(a,r,A=>Gn(A),V_),u=t5(o,n,A=>Gn(A),V_),c=t5(s,i,A=>Gn(A),V_);this.batch(()=>{const A={nodes:l.enter,edges:u.enter,combos:c.enter};this.addData(A),this.computeZIndex(A,"add",!0);const f={nodes:l.update,edges:u.update,combos:c.update};this.updateData(f),this.computeZIndex(f,"update",!0);const h={nodes:l.exit.map(Gn),edges:u.exit.map(Gn),combos:c.exit.map(Gn)};this.removeData(h)})}addData(t){const{nodes:r,edges:n,combos:i}=t;this.batch(()=>{this.addComboData(i),this.addNodeData(r),this.addEdgeData(n)}),this.computeZIndex(t,"add")}addNodeData(t=[]){t.length&&(this.model.addNodes(t.map(r=>(this.pushChange({value:r,type:OA.NodeAdded}),dhe(r)))),this.updateNodeLikeHierarchy(t),this.computeZIndex({nodes:t},"add"))}addEdgeData(t=[]){t.length&&(this.model.addEdges(t.map(r=>(this.pushChange({value:r,type:OA.EdgeAdded}),dhe(r)))),this.computeZIndex({edges:t},"add"))}addComboData(t=[]){if(!t.length)return;const{model:r}=this;r.hasTreeStructure(Gc)||r.attachTreeStructure(Gc),r.addNodes(t.map(n=>(this.comboIds.add(Gn(n)),this.pushChange({value:n,type:OA.ComboAdded}),dhe(n)))),this.updateNodeLikeHierarchy(t),this.computeZIndex({combos:t},"add")}addChildrenData(t,r){const n=this.getNodeLikeDatum(t),i=r.map(Gn);this.addNodeData(r),this.updateNodeData([{id:t,children:[...n.children||[],...i]}]),this.addEdgeData(i.map(a=>({source:t,target:a})))}computeZIndex(t,r,n=!1){!n&&this.isBatching()||this.batch(()=>{const{nodes:i=[],edges:a=[],combos:o=[]}=t;o.forEach(s=>{var l,u,c;const A=Gn(s);if(r==="add"&&go((l=s.style)===null||l===void 0?void 0:l.zIndex)||r==="update"&&!("combo"in s))return;const f=this.getParentData(A,Gc),h=f?((c=(u=f.style)===null||u===void 0?void 0:u.zIndex)!==null&&c!==void 0?c:0)+1:0;this.preventUpdateNodeLikeHierarchy(()=>{this.updateComboData([{id:A,style:{zIndex:h}}])})}),i.forEach(s=>{var l,u,c;const A=Gn(s);if(r==="add"&&go((l=s.style)===null||l===void 0?void 0:l.zIndex)||r==="update"&&!("combo"in s)&&!("children"in s))return;let f=0;const h=this.getParentData(A,Gc);if(h)f=(((u=h.style)===null||u===void 0?void 0:u.zIndex)||0)+1;else{const g=this.getParentData(A,Vm);g&&(f=((c=g==null?void 0:g.style)===null||c===void 0?void 0:c.zIndex)||0)}this.preventUpdateNodeLikeHierarchy(()=>{this.updateNodeData([{id:A,style:{zIndex:f}}])})}),a.forEach(s=>{var l,u,c,A,f;if(go((l=s.style)===null||l===void 0?void 0:l.zIndex))return;let{id:h,source:g,target:p}=s;if(!h)h=Gn(s);else{const C=this.getEdgeDatum(h);g=C.source,p=C.target}if(!g||!p)return;const m=((c=(u=this.getNodeLikeDatum(g))===null||u===void 0?void 0:u.style)===null||c===void 0?void 0:c.zIndex)||0,b=((f=(A=this.getNodeLikeDatum(p))===null||A===void 0?void 0:A.style)===null||f===void 0?void 0:f.zIndex)||0;this.updateEdgeData([{id:Gn(s),style:{zIndex:Math.max(m,b)-1}}])})})}getFrontZIndex(t){var r;const n=this.getElementType(t),i=this.getElementDataById(t),a=this.getData();if(Object.assign(a,{[`${n}s`]:a[`${n}s`].filter(o=>Gn(o)!==t)}),n==="combo"&&!Wv(i)){const o=new Set(this.getAncestorsData(t,Gc).map(Gn));a.nodes=a.nodes.filter(s=>!o.has(Gn(s))),a.combos=a.combos.filter(s=>!o.has(Gn(s))),a.edges=a.edges.filter(({source:s,target:l})=>!o.has(s)&&!o.has(l))}return Math.max(((r=i.style)===null||r===void 0?void 0:r.zIndex)||0,0,...Object.values(a).flat().map(o=>{var s;return(((s=o==null?void 0:o.style)===null||s===void 0?void 0:s.zIndex)||0)+1}))}updateNodeLikeHierarchy(t){if(!this.enableUpdateNodeLikeHierarchy)return;const{model:r}=this;t.forEach(n=>{const i=Gn(n),a=HG(n);a!==void 0&&(r.hasTreeStructure(Gc)||r.attachTreeStructure(Gc),a===null&&this.refreshComboData(i),this.setParent(i,HG(n),Gc));const o=n.children||[];if(o.length){r.hasTreeStructure(Vm)||r.attachTreeStructure(Vm);const s=o.filter(l=>r.hasNode(l));s.forEach(l=>this.setParent(l,i,Vm)),s.length!==o.length&&this.updateNodeData([{id:i,children:s}])}})}preventUpdateNodeLikeHierarchy(t){this.enableUpdateNodeLikeHierarchy=!1,t(),this.enableUpdateNodeLikeHierarchy=!0}updateData(t){const{nodes:r,edges:n,combos:i}=t;this.batch(()=>{this.updateNodeData(r),this.updateComboData(i),this.updateEdgeData(n)}),this.computeZIndex(t,"update")}updateNodeData(t=[]){if(!t.length)return;const{model:r}=this;this.batch(()=>{const n=[];t.forEach(i=>{const a=Gn(i),o=hg(r.getNode(a));if(V_(o,i))return;const s=Lx(o,i);this.pushChange({value:s,original:o,type:OA.NodeUpdated}),r.mergeNodeData(a,s),n.push(s)}),this.updateNodeLikeHierarchy(n)}),this.computeZIndex({nodes:t},"update")}refreshData(){const{nodes:t,edges:r,combos:n}=this.getData();t.forEach(i=>{this.pushChange({value:i,original:i,type:OA.NodeUpdated})}),r.forEach(i=>{this.pushChange({value:i,original:i,type:OA.EdgeUpdated})}),n.forEach(i=>{this.pushChange({value:i,original:i,type:OA.ComboUpdated})})}syncNodeLikeDatum(t){const{model:r}=this,n=Gn(t);if(!r.hasNode(n))return;const i=hg(r.getNode(n)),a=Lx(i,t);r.mergeNodeData(n,a)}syncEdgeDatum(t){const{model:r}=this,n=Gn(t);if(!r.hasEdge(n))return;const i=hg(r.getEdge(n)),a=Lx(i,t);r.mergeEdgeData(n,a)}updateEdgeData(t=[]){if(!t.length)return;const{model:r}=this;this.batch(()=>{t.forEach(n=>{const i=Gn(n),a=hg(r.getEdge(i));if(V_(a,n))return;n.source&&a.source!==n.source&&r.updateEdgeSource(i,n.source),n.target&&a.target!==n.target&&r.updateEdgeTarget(i,n.target);const o=Lx(a,n);this.pushChange({value:o,original:a,type:OA.EdgeUpdated}),r.mergeEdgeData(i,o)})}),this.computeZIndex({edges:t},"update")}updateComboData(t=[]){if(!t.length)return;const{model:r}=this;r.batch(()=>{const n=[];t.forEach(i=>{const a=Gn(i),o=hg(r.getNode(a));if(V_(o,i))return;const s=Lx(o,i);this.pushChange({value:s,original:o,type:OA.ComboUpdated}),r.mergeNodeData(a,s),n.push(s)}),this.updateNodeLikeHierarchy(n)}),this.computeZIndex({combos:t},"update")}setParent(t,r,n,i=!0){if(t===r)return;const a=this.getNodeLikeDatum(t),o=HG(a);if(o!==r&&n===Gc){const s={id:t,combo:r};this.isCombo(t)?this.syncNodeLikeDatum(s):this.syncNodeLikeDatum(s)}this.model.setParent(t,r,n),i&&n===Gc&&Ier([o,r]).forEach(s=>{s!==void 0&&this.refreshComboData(s)})}refreshComboData(t){const r=this.getComboData([t])[0],n=this.getAncestorsData(t,Gc);r&&this.pushChange({value:r,original:r,type:OA.ComboUpdated}),n.forEach(i=>{this.pushChange({value:i,original:i,type:OA.ComboUpdated})})}getElementPosition(t){const r=this.getElementDataById(t);return Ld(r)}translateNodeLikeBy(t,r){this.isCombo(t)?this.translateComboBy(t,r):this.translateNodeBy(t,r)}translateNodeLikeTo(t,r){this.isCombo(t)?this.translateComboTo(t,r):this.translateNodeTo(t,r)}translateNodeBy(t,r){const n=this.getElementPosition(t),i=cl(n,[...r,0].slice(0,3));this.translateNodeTo(t,i)}translateNodeTo(t,r){const[n=0,i=0,a=0]=r;this.preventUpdateNodeLikeHierarchy(()=>{this.updateNodeData([{id:t,style:{x:n,y:i,z:a}}])})}translateComboBy(t,r){const[n=0,i=0,a=0]=r;if([n,i,a].some(isNaN)||[n,i,a].every(l=>l===0))return;const o=this.getComboData([t])[0];if(!o)return;const s=new Set;C9(o,l=>{const u=Gn(l);if(s.has(u))return;s.add(u);const[c,A,f]=Ld(l),h=Lx(l,{style:{x:c+n,y:A+i,z:f+a}});this.pushChange({value:h,original:l,type:this.isCombo(u)?OA.ComboUpdated:OA.NodeUpdated}),this.model.mergeNodeData(u,h)},l=>this.getChildrenData(Gn(l)),"BT")}translateComboTo(t,r){var n;if(r.some(isNaN))return;const[i=0,a=0,o=0]=r,s=(n=this.getComboData([t]))===null||n===void 0?void 0:n[0];if(!s)return;const[l,u,c]=Ld(s),A=i-l,f=a-u,h=o-c;C9(s,g=>{const p=Gn(g),[m,b,C]=Ld(g),E=Lx(g,{style:{x:m+A,y:b+f,z:C+h}});this.pushChange({value:E,original:g,type:this.isCombo(p)?OA.ComboUpdated:OA.NodeUpdated}),this.model.mergeNodeData(p,E)},g=>this.getChildrenData(Gn(g)),"BT")}removeData(t){const{nodes:r,edges:n,combos:i}=t;this.batch(()=>{this.removeEdgeData(n),this.removeNodeData(r),this.removeComboData(i),this.latestRemovedComboIds=new Set(i)})}removeNodeData(t=[]){t.length&&this.batch(()=>{t.forEach(r=>{this.removeEdgeData(this.getRelatedEdgesData(r).map(Gn)),this.pushChange({value:this.getNodeData([r])[0],type:OA.NodeRemoved}),this.removeNodeLikeHierarchy(r)}),this.model.removeNodes(t)})}removeEdgeData(t=[]){t.length&&(t.forEach(r=>this.pushChange({value:this.getEdgeData([r])[0],type:OA.EdgeRemoved})),this.model.removeEdges(t))}removeComboData(t=[]){t.length&&this.batch(()=>{t.forEach(r=>{this.pushChange({value:this.getComboData([r])[0],type:OA.ComboRemoved}),this.removeNodeLikeHierarchy(r),this.comboIds.delete(r)}),this.model.removeNodes(t)})}removeNodeLikeHierarchy(t){if(this.model.hasTreeStructure(Gc)){const r=HG(this.getNodeLikeDatum(t));this.setParent(t,void 0,Gc,!1),this.model.getChildren(t,Gc).forEach(n=>{const i=hg(n),a=Gn(i);this.setParent(Gn(i),r,Gc,!1);const o=Lx(i,{id:Gn(i),combo:r});this.pushChange({value:o,original:i,type:this.isCombo(a)?OA.ComboUpdated:OA.NodeUpdated}),this.model.mergeNodeData(Gn(i),o)}),ds(r)||this.refreshComboData(r)}}getElementType(t){if(this.model.hasNode(t))return this.isCombo(t)?"combo":"node";if(this.model.hasEdge(t))return"edge";throw new Error(SE(`Unknown element type of id: ${t}`))}destroy(){const{model:t}=this,r=t.getAllNodes(),n=t.getAllEdges();t.removeEdges(n.map(i=>i.id)),t.removeNodes(r.map(i=>i.id)),this.context={}}}var WF=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(c){try{u(n.next(c))}catch(A){o(A)}}function l(c){try{u(n.throw(c))}catch(A){o(A)}}function u(c){c.done?a(c.value):i(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};class Obr{constructor(t){this.elementMap={},this.shapeTypeMap={},this.paletteStyle={},this.defaultStyle={},this.stateStyle={},this.visibilityCache=new WeakMap,this.context=t}init(){this.initContainer()}initContainer(){if(!this.container||this.container.destroyed){const{canvas:t}=this.context;this.container=t.appendChild(new zd({className:"elements"}))}}emit(t,r){r.silence||Md(this.context.graph,t)}forEachElementData(t){D6.forEach(r=>{const n=this.context.model.getElementsDataByType(r);t(r,n)})}getElementType(t,r){var n;const{options:i,graph:a}=this.context,o=((n=i[t])===null||n===void 0?void 0:n.type)||r.type;return o?typeof o=="string"?o:o.call(a,r):t==="edge"?"line":"circle"}getTheme(t){return Zft(this.context.options)[t]||{}}getThemeStyle(t){return this.getTheme(t).style||{}}getThemeStateStyle(t,r){const{state:n={}}=this.getTheme(t);return Object.assign({},...r.map(i=>n[i]||{}))}computePaletteStyle(){const{options:t}=this.context;this.paletteStyle={},this.forEachElementData((r,n)=>{var i,a;const o=Object.assign({},oRe((i=this.getTheme(r))===null||i===void 0?void 0:i.palette),oRe((a=t[r])===null||a===void 0?void 0:a.palette));o!=null&&o.field&&Object.assign(this.paletteStyle,Asr(n,o))})}getPaletteStyle(t,r){const n=this.paletteStyle[r];return n?t==="edge"?{stroke:n}:{fill:n}:{}}computeElementDefaultStyle(t,r){var n;const{options:i}=this.context,a=((n=i[t])===null||n===void 0?void 0:n.style)||{};"transform"in a&&Array.isArray(a.transform)&&(a.transform=[...a.transform]),this.defaultStyle[Gn(r.datum)]=aRe(a,r)}computeElementsDefaultStyle(t){const{graph:r}=this.context;this.forEachElementData((n,i)=>{const a=i.length;for(let o=0;othis.getElementStateStyle(t,i,n)))}computeElementsStatesStyle(t){const{graph:r}=this.context;this.forEachElementData((n,i)=>{const a=i.length;for(let o=0;othis.elementMap[t])}getEdges(){return this.context.model.getEdgeData().map(t=>this.elementMap[Gn(t)])}getCombos(){return this.context.model.getComboData().map(({id:t})=>this.elementMap[t])}getElementComputedStyle(t,r){const n=Gn(r),i=this.getThemeStyle(t),a=this.getPaletteStyle(t,n),o=r.style||{},s=this.getDefaultStyle(n),l=this.getThemeStateStyle(t,this.getElementState(n)),u=this.getStateStyle(n),c=Object.assign({},i,a,o,s,l,u);if(t==="combo"){const A=this.context.model.getChildrenData(n),h=!!c.collapsed?[]:A.map(Gn).filter(g=>this.getElement(g));Object.assign(c,{childrenNode:h,childrenData:A})}return c}getDrawData(t){this.init();const r=this.computeChangesAndDrawData(t);if(!r)return null;const{type:n="draw",stage:i=n}=t;return this.markDestroyElement(r.drawData),this.computeStyle(i),{type:n,stage:i,data:r}}draw(t={animation:!0}){const r=this.getDrawData(t);if(!r)return;const{data:{drawData:{add:n,update:i,remove:a}}}=r;return this.destroyElements(a,t),this.createElements(n,t),this.updateElements(i,t),this.setAnimationTask(t,r)}preLayoutDraw(){return WF(this,arguments,void 0,function*(t={animation:!0}){var r,n;const i=this.getDrawData(t);if(!i)return;const{data:{drawData:a}}=i;yield(n=(r=this.context.layout)===null||r===void 0?void 0:r.preLayout)===null||n===void 0?void 0:n.call(r,a);const{add:o,update:s,remove:l}=a;return this.destroyElements(l,t),this.createElements(o,t),this.updateElements(s,t),this.setAnimationTask(t,i)})}setAnimationTask(t,r){const{animation:n,silence:i}=t,{data:{dataChanges:a,drawData:o},stage:s,type:l}=r;return this.context.animation.animate(n,i?{}:{before:()=>this.emit(new id(Ta.BEFORE_DRAW,{dataChanges:a,animation:n,stage:s,render:l==="render"}),t),beforeAnimate:u=>this.emit(new ly(Ta.BEFORE_ANIMATE,Pv.DRAW,u,o),t),afterAnimate:u=>this.emit(new ly(Ta.AFTER_ANIMATE,Pv.DRAW,u,o),t),after:()=>this.emit(new id(Ta.AFTER_DRAW,{dataChanges:a,animation:n,stage:s,render:l==="render",firstRender:this.context.graph.rendered===!1}),t)})}computeChangesAndDrawData(t){const{model:r}=this.context,n=r.getChanges(),i=P3e(n);if(i.length===0)return null;const{NodeAdded:a=[],NodeUpdated:o=[],NodeRemoved:s=[],EdgeAdded:l=[],EdgeUpdated:u=[],EdgeRemoved:c=[],ComboAdded:A=[],ComboUpdated:f=[],ComboRemoved:h=[]}=JJ(i,b=>b.type),g=b=>new Map(b.map(C=>{const E=C.value;return[Gn(E),E]})),p={add:{nodes:g(a),edges:g(l),combos:g(A)},update:{nodes:g(o),edges:g(u),combos:g(f)},remove:{nodes:g(s),edges:g(c),combos:g(h)}},m=this.transformData(p,t);return r.clearChanges(),{dataChanges:n,drawData:m}}transformData(t,r){const n=this.context.transform.getTransformInstance();return Object.values(n).reduce((i,a)=>a.beforeDraw(i,r),t)}createElement(t,r,n){var i;const a=Gn(r);if(this.getElement(a))return;const s=this.getElementType(t,r),l=this.getElementComputedStyle(t,r),u=eB(t,s);if(!u)return DC.warn(`The element ${s} of ${t} is not registered.`);this.emit(new K_(Ta.BEFORE_ELEMENT_CREATE,t,r),n);const c=this.container.appendChild(new u({id:a,context:this.context,style:l}));this.shapeTypeMap[a]=s,this.elementMap[a]=c;const{stage:A="enter"}=n;(i=this.context.animation)===null||i===void 0||i.add({element:c,elementType:t,stage:A,originalStyle:Object.assign({},c.attributes),updatedStyle:l},{after:()=>{var f;this.emit(new K_(Ta.AFTER_ELEMENT_CREATE,t,r),n),(f=c.onCreate)===null||f===void 0||f.call(c)}})}createElements(t,r){const{nodes:n,edges:i,combos:a}=t;[["node",n],["combo",a],["edge",i]].forEach(([s,l])=>{l.forEach(u=>this.createElement(s,u,r))})}getUpdateStageStyle(t,r,n){const{stage:i="update"}=n;if(i==="translate")if(t==="node"||t==="combo"){const{style:{x:a=0,y:o=0,z:s=0}={}}=r;return{x:a,y:o,z:s}}else return{};return this.getElementComputedStyle(t,r)}updateElement(t,r,n){var i;const a=Gn(r),{stage:o="update"}=n,s=this.getElement(a);if(!s)return()=>null;this.emit(new K_(Ta.BEFORE_ELEMENT_UPDATE,t,r),n);const l=this.getElementType(t,r),u=this.getUpdateStageStyle(t,r,n);this.shapeTypeMap[a]!==l&&(s.destroy(),delete this.shapeTypeMap[a],delete this.elementMap[a],this.createElement(t,r,{animation:!1,silence:!0}));const c=o!=="visibility"?o:u.visibility==="hidden"?"hide":"show";c==="hide"&&delete u.visibility,(i=this.context.animation)===null||i===void 0||i.add({element:s,elementType:t,stage:c,originalStyle:Object.assign({},s.attributes),updatedStyle:u},{before:()=>{const A=this.elementMap[a];o!=="collapse"&&i2e(A,u),o==="visibility"&&(Qbr(A,"opacity")||kbr(A,"opacity"),this.visibilityCache.set(A,c==="show"?"visible":"hidden"),c==="show"&&_6(A,"visible"))},after:()=>{var A;const f=this.elementMap[a];o==="collapse"&&i2e(f,u),c==="hide"&&_6(f,this.visibilityCache.get(f)),this.emit(new K_(Ta.AFTER_ELEMENT_UPDATE,t,r),n),(A=f.onUpdate)===null||A===void 0||A.call(f)}})}updateElements(t,r){const{nodes:n,edges:i,combos:a}=t;[["node",n],["combo",a],["edge",i]].forEach(([s,l])=>{l.forEach(u=>this.updateElement(s,u,r))})}markDestroyElement(t){Object.values(t.remove).forEach(r=>{r.forEach(n=>{const i=Gn(n),a=this.getElement(i);a&&lur(a)})})}destroyElement(t,r,n){var i;const{stage:a="exit"}=n,o=Gn(r),s=this.elementMap[o];if(!s)return()=>null;this.emit(new K_(Ta.BEFORE_ELEMENT_DESTROY,t,r),n),(i=this.context.animation)===null||i===void 0||i.add({element:s,elementType:t,stage:a,originalStyle:Object.assign({},s.attributes),updatedStyle:{}},{after:()=>{var l;this.clearElement(o),s.destroy(),(l=s.onDestroy)===null||l===void 0||l.call(s),this.emit(new K_(Ta.AFTER_ELEMENT_DESTROY,t,r),n)}})}destroyElements(t,r){const{nodes:n,edges:i,combos:a}=t;[["combo",a],["edge",i],["node",n]].forEach(([s,l])=>{l.forEach(u=>this.destroyElement(s,u,r))})}clearElement(t){delete this.paletteStyle[t],delete this.defaultStyle[t],delete this.stateStyle[t],delete this.elementMap[t],delete this.shapeTypeMap[t]}alignLayoutResultToElement(t,r){var n,i;const a=(n=t.nodes)===null||n===void 0?void 0:n.find(o=>Gn(o)===r);if(a){const o=Ld(this.context.model.getNodeLikeDatum(r)),s=Ld(a),l=Oc(o,s);(i=t.nodes)===null||i===void 0||i.forEach(u=>{var c,A,f;!((c=u.style)===null||c===void 0)&&c.x&&(u.style.x+=l[0]),!((A=u.style)===null||A===void 0)&&A.y&&(u.style.y+=l[1]),!((f=u.style)===null||f===void 0)&&f.z&&(u.style.z+=l[2]||0)})}}collapseNode(t,r){return WF(this,void 0,void 0,function*(){var n;const{animation:i}=r;this.context;const a=this.computeChangesAndDrawData({stage:"collapse",animation:i});if(!a)return;const{drawData:o}=a,{add:s,remove:l,update:u}=o;this.markDestroyElement(o);const c={animation:i,stage:"collapse",data:o};this.destroyElements(l,c),this.createElements(s,c),this.updateElements(u,c),yield(n=this.context.animation.animate(i,{beforeAnimate:A=>this.emit(new ly(Ta.BEFORE_ANIMATE,Pv.COLLAPSE,A,o),c),afterAnimate:A=>this.emit(new ly(Ta.AFTER_ANIMATE,Pv.COLLAPSE,A,o),c)},{collapse:{target:t,descendants:Array.from(l.nodes).map(([,A])=>Gn(A)),position:Ld(u.nodes.get(t))}}))===null||n===void 0?void 0:n.finished})}expandNode(t,r){return WF(this,void 0,void 0,function*(){var n;const{model:i,layout:a}=this.context,{animation:o,align:s}=r,l=Ld(i.getNodeData([t])[0]),u=this.computeChangesAndDrawData({stage:"expand",animation:o});if(this.createElements(u.drawData.add,{animation:!1,stage:"expand",target:t}),this.context.animation.clear(),this.computeStyle("expand"),!u)return;const{drawData:c}=u,{update:A,add:f}=c,h={animation:o,stage:"expand",data:c};f.edges.forEach(g=>A.edges.set(Gn(g),g)),f.nodes.forEach(g=>A.nodes.set(Gn(g),g)),this.updateElements(A,h),yield(n=this.context.animation.animate(o,{beforeAnimate:g=>this.emit(new ly(Ta.BEFORE_ANIMATE,Pv.EXPAND,g,c),h),afterAnimate:g=>this.emit(new ly(Ta.AFTER_ANIMATE,Pv.EXPAND,g,c),h)},{expand:{target:t,descendants:Array.from(f.nodes).map(([,g])=>Gn(g)),position:l}}))===null||n===void 0?void 0:n.finished})}collapseCombo(t,r){return WF(this,void 0,void 0,function*(){var n;const{model:i,element:a}=this.context;if(i.getAncestorsData(t,Gc).some(p=>Wv(p)))return;const o=a.getElement(t),s=o.getComboPosition(Object.assign(Object.assign({},o.attributes),{collapsed:!0})),l=this.computeChangesAndDrawData({stage:"collapse",animation:r});if(!l)return;const{dataChanges:u,drawData:c}=l;this.markDestroyElement(c);const{update:A,remove:f}=c,h={animation:r,stage:"collapse",data:c};this.destroyElements(f,h),this.updateElements(A,h);const g=p=>Array.from(p).map(([,m])=>Gn(m));yield(n=this.context.animation.animate(r,{before:()=>this.emit(new id(Ta.BEFORE_DRAW,{dataChanges:u,animation:r}),h),beforeAnimate:p=>this.emit(new ly(Ta.BEFORE_ANIMATE,Pv.COLLAPSE,p,c),h),afterAnimate:p=>this.emit(new ly(Ta.AFTER_ANIMATE,Pv.COLLAPSE,p,c),h),after:()=>this.emit(new id(Ta.AFTER_DRAW,{dataChanges:u,animation:r}),h)},{collapse:{target:t,descendants:[...g(f.nodes),...g(f.combos)],position:s}}))===null||n===void 0?void 0:n.finished})}expandCombo(t,r){return WF(this,void 0,void 0,function*(){var n;const{model:i}=this.context,a=Ld(i.getComboData([t])[0]);this.computeStyle("expand");const o=this.computeChangesAndDrawData({stage:"expand",animation:r});if(!o)return;const{dataChanges:s,drawData:l}=o,{add:u,update:c}=l,A={animation:r,stage:"expand",data:l,target:t};this.createElements(u,A),this.updateElements(c,A);const f=h=>Array.from(h).map(([,g])=>Gn(g));yield(n=this.context.animation.animate(r,{before:()=>this.emit(new id(Ta.BEFORE_DRAW,{dataChanges:s,animation:r}),A),beforeAnimate:h=>this.emit(new ly(Ta.BEFORE_ANIMATE,Pv.EXPAND,h,l),A),afterAnimate:h=>this.emit(new ly(Ta.AFTER_ANIMATE,Pv.EXPAND,h,l),A),after:()=>this.emit(new id(Ta.AFTER_DRAW,{dataChanges:s,animation:r}),A)},{expand:{target:t,descendants:[...f(u.nodes),...f(u.combos)],position:a}}))===null||n===void 0?void 0:n.finished})}clear(){this.container.destroy(),this.initContainer(),this.elementMap={},this.shapeTypeMap={},this.defaultStyle={},this.stateStyle={},this.paletteStyle={}}destroy(){this.clear(),this.container.destroy(),this.context={}}}var W_=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(c){try{u(n.next(c))}catch(A){o(A)}}function l(c){try{u(n.throw(c))}catch(A){o(A)}}function u(c){c.done?a(c.value):i(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})},Nbr=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i{const A=Gn(c),f=l.nodes.get(A);s.syncNodeLikeDatum(c),f&&Object.assign(f.style,c.style)}),(i=u==null?void 0:u.edges)===null||i===void 0||i.forEach(c=>{const A=Gn(c),f=l.edges.get(A);s.syncEdgeDatum(c),f&&Object.assign(f.style,c.style)}),(a=u==null?void 0:u.combos)===null||a===void 0||a.forEach(c=>{const A=Gn(c),f=l.combos.get(A);s.syncNodeLikeDatum(c),f&&Object.assign(f.style,c.style)}),Md(o,new id(Ta.AFTER_LAYOUT,{type:"pre"})),this.transformDataAfterLayout("pre",t)})}postLayout(){return W_(this,arguments,void 0,function*(t=this.options){if(!t)return;const r=Array.isArray(t)?t:[t],{graph:n}=this.context;Md(n,new id(Ta.BEFORE_LAYOUT,{type:"post"}));for(let i=0;ii.afterLayout(t,r))}simulate(){return W_(this,void 0,void 0,function*(){if(!this.options)return{};const t=Array.isArray(this.options)?this.options:[this.options];let r={};for(let n=0;n{this.updateElementPosition(u,!1)}}):(s.execute(t),s.stop(),s.tick(o));const l=yield s.execute(t);if(i){const u=this.updateElementPosition(l,i);yield u==null?void 0:u.finished}return l})}treeLayout(t,r,n){return W_(this,void 0,void 0,function*(){const{type:i,animation:a}=r,o=eB("layout",i);if(!o)return{};const{nodes:s=[],edges:l=[]}=t,u=new Kd({nodes:s.map(g=>({id:Gn(g),data:g.data||{}})),edges:l.map(g=>({id:Gn(g),source:g.source,target:g.target,data:g.data||{}}))});Rbr(u);const c={nodes:[],edges:[]},A={nodes:[],edges:[]};u.getRoots(Vm).forEach(g=>{C9(g,E=>{E.children=u.getSuccessors(E.id)},E=>u.getSuccessors(E.id),"TB");const p=o(g,r),{x:m,y:b,z:C=0}=p;C9(p,E=>{const{id:_,x:F,y:M,z:N=0}=E;c.nodes.push({id:_,style:{x:m,y:b,z:C}}),A.nodes.push({id:_,style:{x:F,y:M,z:N}})},E=>E.children,"TB")});const h=this.inferTreeLayoutOffset(A);if(sje(A,h),a){sje(c,h),this.updateElementPosition(c,!1);const g=this.updateElementPosition(A,a);yield g==null?void 0:g.finished}return A})}inferTreeLayoutOffset(t){var r;let[n,i]=[1/0,-1/0],[a,o]=[1/0,-1/0];(r=t.nodes)===null||r===void 0||r.forEach(p=>{const{x:m=0,y:b=0}=p.style||{};n=Math.min(n,m),i=Math.max(i,m),a=Math.min(a,b),o=Math.max(o,b)});const{canvas:s}=this.context,l=s.getSize(),[u,c]=s.getCanvasByViewport([0,0]),[A,f]=s.getCanvasByViewport(l);if(n>=u&&i<=A&&a>=c&&o<=f)return[0,0];const h=(u+A)/2,g=(c+f)/2;return[h-(n+i)/2,g-(a+o)/2]}stopLayout(){this.instance&&A2e(this.instance)&&(this.instance.stop(),this.instance=void 0),this.supervisor&&(this.supervisor.stop(),this.supervisor=void 0),this.animationResult&&(this.animationResult.finish(),this.animationResult=void 0)}getLayoutData(t){const{nodeFilter:r=()=>!0,preLayout:n=!1,isLayoutInvisibleNodes:i=!1}=t,{nodes:a,edges:o,combos:s}=this.context.model.getData(),{element:l,model:u}=this.context,c=p=>l.getElement(p),A=n?p=>{var m;return!i&&(((m=p.style)===null||m===void 0?void 0:m.visibility)==="hidden"||u.getAncestorsData(p.id,Vm).some(Wv)||u.getAncestorsData(p.id,Gc).some(Wv))?!1:r(p)}:p=>{const m=Gn(p),b=c(m);return!b||KL(b)?!1:r(p)},f=a.filter(A),h=new Map(f.map(p=>[Gn(p),p]));s.forEach(p=>h.set(Gn(p),p));const g=o.filter(({source:p,target:m})=>h.has(p)&&h.has(m));return{nodes:f,edges:g,combos:s}}initGraphLayout(t){var r;const{element:n,viewport:i}=this.context,{type:a,enableWorker:o,animation:s,iterations:l}=t,u=Nbr(t,["type","enableWorker","animation","iterations"]),[c,A]=i.getCanvasSize(),f=[c/2,A/2],h=(r=t==null?void 0:t.nodeSize)!==null&&r!==void 0?r:C=>{const E=n==null?void 0:n.getElement(C.id);return E?E.attributes.size:n==null?void 0:n.getElementComputedStyle("node",C).size},g=eB("layout",a);if(!g)return DC.warn(`The layout of ${a} is not registered.`);const p=Object.getPrototypeOf(g.prototype)===mX.prototype?g:vur(g,this.context),m=new p(this.context),b={nodeSize:h,width:c,height:A,center:f};switch(m.id){case"d3-force":case"d3-force-3d":Object.assign(b,{center:{x:c/2,y:A/2,z:0}});break}return ip(m.options,b,u),m}updateElementPosition(t,r){const{model:n,element:i}=this.context;return i?(n.updateData(t),i.draw({animation:r,silence:!0})):null}destroy(){var t;this.stopLayout(),this.context={},(t=this.supervisor)===null||t===void 0||t.kill(),this.supervisor=void 0,this.instance=void 0,this.instances=[],this.animationResult=void 0}}const sje=(e,t)=>{var r;const[n,i]=t;(r=e.nodes)===null||r===void 0||r.forEach(a=>{if(a.style){const{x:o=0,y:s=0}=a.style;a.style.x=o+n,a.style.y=s+i}else a.style={x:n,y:i}})};function Pbr(e){return[Ubr].reduce((r,n)=>n(r),e)}function Ubr(e){return!e.layout||Array.isArray(e.layout)||"preLayout"in e.layout||["antv-dagre","combo-combined","compact-box","circular","concentric","dagre","fishbone","grid","indented","mds","radial","random","snake","dendrogram","mindmap"].includes(e.layout.type)&&(e.layout.preLayout=!0),e}class Hbr extends Zxe{constructor(t){super(t),this.category="plugin",this.setPlugins(this.context.options.plugins||[])}setPlugins(t){this.setExtensions(t)}getPluginInstance(t){const r=this.extensionMap[t];if(r)return r;DC.warn(`Cannot find the plugin ${t}, will try to find it by type.`);const n=this.extensions.find(i=>i.type===t);if(n)return this.extensionMap[n.key]}}const c$=["update-related-edges","collapse-expand-node","collapse-expand-combo","get-edge-actual-ends","arrange-draw-order"];class jbr extends Zxe{constructor(t){super(t),this.category="transform",this.setTransforms(this.context.options.transforms||[])}getTransforms(){}setTransforms(t){this.setExtensions([...c$.slice(0,c$.length-1),...t,c$[c$.length-1]])}getTransformInstance(t){return t?this.extensionMap[t]:this.extensionMap}}var YF=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(c){try{u(n.next(c))}catch(A){o(A)}}function l(c){try{u(n.throw(c))}catch(A){o(A)}}function u(c){c.done?a(c.value):i(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};class Gbr{get padding(){return FC(this.context.options.padding)}get paddingOffset(){const[t,r,n,i]=this.padding,[a,o,s]=[(i-r)/2,(t-n)/2,0];return[a,o,s]}constructor(t){this.landmarkCounter=0,this.context=t;const[r,n]=this.paddingOffset,{zoom:i,rotation:a,x:o=r,y:s=n}=t.options;this.transform({mode:"absolute",scale:i,translate:[o,s],rotate:a},!1)}get camera(){const{canvas:t}=this.context;return new Proxy(t.getCamera(),{get:(r,n)=>{const a=Object.entries(t.getLayers()).filter(([s])=>!["main"].includes(s)).map(([,s])=>s.getCamera()),o=r[n];if(typeof o=="function")return(...s)=>{const l=o.apply(r,s);return a.forEach(u=>{u[n].apply(u,s)}),l}}})}createLandmark(t){return this.camera.createLandmark(`landmark-${this.landmarkCounter++}`,t)}getAnimation(t){const r=eht(this.context.options,t);return r?x6(Object.assign({},r),["easing","duration"]):!1}getCanvasSize(){const{canvas:t}=this.context,{width:r=0,height:n=0}=t.getConfig();return[r,n]}getCanvasCenter(){const{canvas:t}=this.context,{width:r=0,height:n=0}=t.getConfig();return[r/2,n/2,0]}getViewportCenter(){const[t,r]=this.camera.getPosition();return[t,r,0]}getGraphCenter(){return this.context.graph.getViewportByCanvas(this.getCanvasCenter())}getZoom(){return this.camera.getZoom()}getRotation(){return this.camera.getRoll()}getTranslateOptions(t){const{camera:r}=this,{mode:n,translate:i=[]}=t,a=this.getZoom(),o=r.getPosition(),s=r.getFocalPoint(),[l,u]=this.getCanvasCenter(),[c=0,A=0,f=0]=i,h=o2([-c,-A,-f],a);return n==="relative"?{position:cl(o,h),focalPoint:cl(s,h)}:{position:cl([l,u,o[2]],h),focalPoint:cl([l,u,s[2]],h)}}getRotateOptions(t){const{mode:r,rotate:n=0}=t;return{roll:r==="relative"?this.camera.getRoll()+n:n}}getZoomOptions(t){const{zoomRange:r}=this.context.options,n=this.camera.getZoom(),{mode:i,scale:a=1}=t;return Sf(i==="relative"?n*a:a,...r)}transform(t,r){return YF(this,void 0,void 0,function*(){const{graph:n}=this.context,{translate:i,rotate:a,scale:o,origin:s}=t;this.cancelAnimation();const l=this.getAnimation(r);if(Md(n,new u$(Ta.BEFORE_TRANSFORM,t)),!a&&o&&!i&&s&&!l){this.camera.setZoomByViewportPoint(this.getZoomOptions(t),s),Md(n,new u$(Ta.AFTER_TRANSFORM,t));return}const u={};if(i&&Object.assign(u,this.getTranslateOptions(t)),go(a)&&Object.assign(u,this.getRotateOptions(t)),go(o)&&Object.assign(u,{zoom:this.getZoomOptions(t)}),l)return Md(n,new ly(Ta.BEFORE_ANIMATE,Pv.TRANSFORM,null,t)),new Promise(c=>{this.transformResolver=c,this.camera.gotoLandmark(this.createLandmark(u),Object.assign(Object.assign({},l),{onfinish:()=>{Md(n,new ly(Ta.AFTER_ANIMATE,Pv.TRANSFORM,null,t)),Md(n,new u$(Ta.AFTER_TRANSFORM,t)),this.transformResolver=void 0,c()}}))});this.camera.gotoLandmark(this.createLandmark(u),{duration:0}),Md(n,new u$(Ta.AFTER_TRANSFORM,t))})}fitView(t,r){return YF(this,void 0,void 0,function*(){const[n,i,a,o]=this.padding,{when:s="always",direction:l="both"}=t||{},[u,c]=this.context.canvas.getSize(),A=u-o-i,f=c-n-a,h=this.context.canvas.getBounds(),g=this.getBBoxInViewport(h),[p,m]=K5(g),b=l==="x"&&p>=A||l==="y"&&m>=f||l==="both"&&p>=A&&m>=f;if(s==="overflow"&&!b)return yield this.fitCenter({animation:r});const C=A/p,E=f/m,_=l==="x"?C:l==="y"?E:Math.min(C,E),F=this.getAnimation(r);yield this.transform({mode:"relative",scale:_,translate:cl(Oc(this.getCanvasCenter(),this.getBBoxInViewport(h).center),o2(this.paddingOffset,_))},F)})}fitCenter(t){return YF(this,void 0,void 0,function*(){const r=this.context.canvas.getBounds();yield this.focus(r,t)})}focusElements(t){return YF(this,arguments,void 0,function*(r,n={}){const{element:i}=this.context;if(!i)return;const a=s=>n.shapes?s.getShape(n.shapes).getRenderBounds():s.getRenderBounds(),o=UL(r.map(s=>a(i.getElement(s))));yield this.focus(o,n)})}focus(t,r){return YF(this,void 0,void 0,function*(){const n=this.context.graph.getViewportByCanvas(t.center),i=r.position||this.getCanvasCenter(),a=Oc(i,n);yield this.transform({mode:"relative",translate:cl(a,this.paddingOffset)},r.animation)})}getBBoxInViewport(t){const{min:r,max:n}=t,{graph:i}=this.context,[a,o]=i.getViewportByCanvas(r),[s,l]=i.getViewportByCanvas(n),u=new nA;return u.setMinMax([a,o,0],[s,l,0]),u}isInViewport(t,r=!1,n=0){const{graph:i}=this.context,a=this.getCanvasSize(),[o,s]=i.getCanvasByViewport([0,0]),[l,u]=i.getCanvasByViewport(a);let c=new nA;return c.setMinMax([o,s,0],[l,u,0]),n&&(c=V5(c,n)),a7(t)?a2(t,c):r?bor(t,c):c.intersects(t)}cancelAnimation(){var t,r;!((t=this.camera.landmarks)===null||t===void 0)&&t.length&&this.camera.cancelLandmarkAnimation(),(r=this.transformResolver)===null||r===void 0||r.call(this)}}var tA=function(e,t,r,n){function i(a){return a instanceof r?a:new r(function(o){o(a)})}return new(r||(r=Promise))(function(a,o){function s(c){try{u(n.next(c))}catch(A){o(A)}}function l(c){try{u(n.throw(c))}catch(A){o(A)}}function u(c){c.done?a(c.value):i(c.value).then(s,l)}u((n=n.apply(e,t||[])).next())})};let $br=class Lpt extends vX{constructor(t){var r;super(),this.options={},this.rendered=!1,this.destroyed=!1,this.context={model:new Mbr},this.isCollapsingExpanding=!1,this.onResize=FL(()=>{this.resize()},300),this._setOptions(Object.assign({},Lpt.defaultOptions,t),!0),this.context.graph=this,this.options.autoResize&&((r=globalThis.addEventListener)===null||r===void 0||r.call(globalThis,"resize",this.onResize))}getOptions(){return this.options}setOptions(t){this._setOptions(t,!1)}_setOptions(t,r){if(this.updateCanvas(t),Object.assign(this.options,Pbr(t)),r){const{data:f}=t;f&&this.addData(f);return}const{behaviors:n,combo:i,data:a,edge:o,layout:s,node:l,plugins:u,theme:c,transforms:A}=t;n&&this.setBehaviors(n),a&&this.setData(a),l&&this.setNode(l),o&&this.setEdge(o),i&&this.setCombo(i),s&&this.setLayout(s),c&&this.setTheme(c),u&&this.setPlugins(u),A&&this.setTransforms(A)}getSize(){return this.context.canvas?this.context.canvas.getSize():[this.options.width||0,this.options.height||0]}setSize(t,r){t&&(this.options.width=t),r&&(this.options.height=r),this.resize(t,r)}setZoomRange(t){this.options.zoomRange=t}getZoomRange(){return this.options.zoomRange}setNode(t){this.options.node=t,this.context.model.refreshData()}setEdge(t){this.options.edge=t,this.context.model.refreshData()}setCombo(t){this.options.combo=t,this.context.model.refreshData()}getTheme(){return this.options.theme}setTheme(t){this.options.theme=xo(t)?t(this.getTheme()):t}setLayout(t){this.options.layout=xo(t)?t(this.getLayout()):t}getLayout(){return this.options.layout}setBehaviors(t){var r;this.options.behaviors=xo(t)?t(this.getBehaviors()):t,(r=this.context.behavior)===null||r===void 0||r.setBehaviors(this.options.behaviors)}updateBehavior(t){this.setBehaviors(r=>r.map(n=>typeof n=="object"&&n.key===t.key?Object.assign(Object.assign({},n),t):n))}getBehaviors(){return this.options.behaviors||[]}setPlugins(t){var r;this.options.plugins=xo(t)?t(this.getPlugins()):t,(r=this.context.plugin)===null||r===void 0||r.setPlugins(this.options.plugins)}updatePlugin(t){this.setPlugins(r=>r.map(n=>typeof n=="object"&&n.key===t.key?Object.assign(Object.assign({},n),t):n))}getPlugins(){return this.options.plugins||[]}getPluginInstance(t){return this.context.plugin.getPluginInstance(t)}setTransforms(t){var r;this.options.transforms=xo(t)?t(this.getTransforms()):t,(r=this.context.transform)===null||r===void 0||r.setTransforms(this.options.transforms)}updateTransform(t){this.setTransforms(r=>r.map(n=>typeof n=="object"&&n.key===t.key?Object.assign(Object.assign({},n),t):n)),this.context.model.refreshData()}getTransforms(){return this.options.transforms||[]}getData(){return this.context.model.getData()}getElementData(t){return Array.isArray(t)?t.map(r=>this.context.model.getElementDataById(r)):this.context.model.getElementDataById(t)}getNodeData(t){return t===void 0?this.context.model.getNodeData():Array.isArray(t)?this.context.model.getNodeData(t):this.context.model.getNodeLikeDatum(t)}getEdgeData(t){return t===void 0?this.context.model.getEdgeData():Array.isArray(t)?this.context.model.getEdgeData(t):this.context.model.getEdgeDatum(t)}getComboData(t){return t===void 0?this.context.model.getComboData():Array.isArray(t)?this.context.model.getComboData(t):this.context.model.getNodeLikeDatum(t)}setData(t){this.context.model.setData(xo(t)?t(this.getData()):t)}addData(t){this.context.model.addData(xo(t)?t(this.getData()):t)}addNodeData(t){this.context.model.addNodeData(xo(t)?t(this.getNodeData()):t)}addEdgeData(t){this.context.model.addEdgeData(xo(t)?t(this.getEdgeData()):t)}addComboData(t){this.context.model.addComboData(xo(t)?t(this.getComboData()):t)}addChildrenData(t,r){this.context.model.addChildrenData(t,r)}updateData(t){this.context.model.updateData(xo(t)?t(this.getData()):t)}updateNodeData(t){this.context.model.updateNodeData(xo(t)?t(this.getNodeData()):t)}updateEdgeData(t){this.context.model.updateEdgeData(xo(t)?t(this.getEdgeData()):t)}updateComboData(t){this.context.model.updateComboData(xo(t)?t(this.getComboData()):t)}removeData(t){this.context.model.removeData(xo(t)?t(this.getData()):t)}removeNodeData(t){this.context.model.removeNodeData(xo(t)?t(this.getNodeData()):t)}removeEdgeData(t){this.context.model.removeEdgeData(xo(t)?t(this.getEdgeData()):t)}removeComboData(t){this.context.model.removeComboData(xo(t)?t(this.getComboData()):t)}getElementType(t){return this.context.model.getElementType(t)}getRelatedEdgesData(t,r="both"){return this.context.model.getRelatedEdgesData(t,r)}getNeighborNodesData(t){return this.context.model.getNeighborNodesData(t)}getAncestorsData(t,r){return this.context.model.getAncestorsData(t,r)}getParentData(t,r){return this.context.model.getParentData(t,r)}getChildrenData(t){return this.context.model.getChildrenData(t)}getDescendantsData(t){return this.context.model.getDescendantsData(t)}getElementDataByState(t,r){return this.context.model.getElementDataByState(t,r)}initCanvas(){return tA(this,void 0,void 0,function*(){var t;if(this.context.canvas)return yield this.context.canvas.ready;const{container:r="container",width:n,height:i,renderer:a,cursor:o,background:s,canvas:l,devicePixelRatio:u=(t=globalThis.devicePixelRatio)!==null&&t!==void 0?t:1}=this.options;if(r instanceof tje)this.context.canvas=r,o&&r.setCursor(o),a&&r.setRenderer(a),yield r.ready;else{const c=_u(r)?document.getElementById(r):r,A=ije(c);this.emit(Ta.BEFORE_CANVAS_INIT,{container:c,width:n,height:i});const f=Object.assign(Object.assign({},l),{container:c,width:n||A[0],height:i||A[1],background:s,renderer:a,cursor:o,devicePixelRatio:u}),h=new tje(f);this.context.canvas=h,yield h.ready,this.emit(Ta.AFTER_CANVAS_INIT,{canvas:h})}})}updateCanvas(t){var r,n;const{renderer:i,cursor:a,height:o,width:s}=t,l=this.context.canvas;l&&(i&&(this.emit(Ta.BEFORE_RENDERER_CHANGE,{renderer:this.options.renderer}),l.setRenderer(i),this.emit(Ta.AFTER_RENDERER_CHANGE,{renderer:i})),a&&l.setCursor(a),(go(s)||go(o))&&this.setSize((r=s??this.options.width)!==null&&r!==void 0?r:0,(n=o??this.options.height)!==null&&n!==void 0?n:0))}initRuntime(){this.context.options=this.options,this.context.batch||(this.context.batch=new Tbr(this.context)),this.context.plugin||(this.context.plugin=new Hbr(this.context)),this.context.viewport||(this.context.viewport=new Gbr(this.context)),this.context.transform||(this.context.transform=new jbr(this.context)),this.context.element||(this.context.element=new Obr(this.context)),this.context.animation||(this.context.animation=new _br(this.context)),this.context.layout||(this.context.layout=new Lbr(this.context)),this.context.behavior||(this.context.behavior=new Dbr(this.context))}prepare(){return tA(this,void 0,void 0,function*(){if(yield Promise.resolve(),this.destroyed){console.error(SE("The graph instance has been destroyed"));return}yield this.initCanvas(),this.initRuntime()})}render(){return tA(this,void 0,void 0,function*(){if(yield this.prepare(),Md(this,new id(Ta.BEFORE_RENDER)),this.options.layout)if(!this.rendered&&pur(this.options.layout)){const t=yield this.context.element.preLayoutDraw({type:"render"});yield Promise.all([t==null?void 0:t.finished,this.autoFit()])}else{const t=this.context.element.draw({type:"render"});yield Promise.all([t==null?void 0:t.finished,this.context.layout.postLayout()]),yield this.autoFit()}else{const t=this.context.element.draw({type:"render"});yield Promise.all([t==null?void 0:t.finished,this.autoFit()])}this.rendered=!0,Md(this,new id(Ta.AFTER_RENDER))})}draw(){return tA(this,void 0,void 0,function*(){var t;yield this.prepare(),yield(t=this.context.element.draw())===null||t===void 0?void 0:t.finished})}layout(t){return tA(this,void 0,void 0,function*(){yield this.context.layout.postLayout(t)})}stopLayout(){this.context.layout.stopLayout()}clear(){return tA(this,void 0,void 0,function*(){const{model:t,element:r}=this.context;t.setData({}),t.clearChanges(),r==null||r.clear()})}destroy(){var t;Md(this,new id(Ta.BEFORE_DESTROY));const{layout:r,animation:n,element:i,model:a,canvas:o,behavior:s,plugin:l}=this.context;l==null||l.destroy(),s==null||s.destroy(),r==null||r.destroy(),n==null||n.destroy(),i==null||i.destroy(),a.destroy(),o==null||o.destroy(),this.options={},this.context={},this.off(),(t=globalThis.removeEventListener)===null||t===void 0||t.call(globalThis,"resize",this.onResize),this.destroyed=!0,Md(this,new id(Ta.AFTER_DESTROY))}getCanvas(){return this.context.canvas}resize(t,r){var n;const i=ije((n=this.context.canvas)===null||n===void 0?void 0:n.getContainer()),a=[t||i[0],r||i[1]];if(!this.context.canvas)return;const o=this.context.canvas.getSize();Qf(a,o)||(Md(this,new id(Ta.BEFORE_SIZE_CHANGE,{size:a})),this.context.canvas.resize(...a),Md(this,new id(Ta.AFTER_SIZE_CHANGE,{size:a})))}fitView(t,r){return tA(this,void 0,void 0,function*(){var n;yield(n=this.context.viewport)===null||n===void 0?void 0:n.fitView(t,r)})}fitCenter(t){return tA(this,void 0,void 0,function*(){var r;yield(r=this.context.viewport)===null||r===void 0?void 0:r.fitCenter({animation:t})})}autoFit(){return tA(this,void 0,void 0,function*(){const{autoFit:t}=this.context.options;if(t)if(_u(t))t==="view"?yield this.fitView():t==="center"&&(yield this.fitCenter());else{const{type:r,animation:n}=t;r==="view"?yield this.fitView(t.options,n):r==="center"&&(yield this.fitCenter(n))}})}focusElement(t,r){return tA(this,void 0,void 0,function*(){var n;yield(n=this.context.viewport)===null||n===void 0?void 0:n.focusElements(Array.isArray(t)?t:[t],{animation:r})})}zoomBy(t,r,n){return tA(this,void 0,void 0,function*(){yield this.context.viewport.transform({mode:"relative",scale:t,origin:n},r)})}zoomTo(t,r,n){return tA(this,void 0,void 0,function*(){yield this.context.viewport.transform({mode:"absolute",scale:t,origin:n},r)})}getZoom(){return this.context.viewport.getZoom()}rotateBy(t,r,n){return tA(this,void 0,void 0,function*(){yield this.context.viewport.transform({mode:"relative",rotate:t,origin:n},r)})}rotateTo(t,r,n){return tA(this,void 0,void 0,function*(){yield this.context.viewport.transform({mode:"absolute",rotate:t,origin:n},r)})}getRotation(){return this.context.viewport.getRotation()}translateBy(t,r){return tA(this,void 0,void 0,function*(){yield this.context.viewport.transform({mode:"relative",translate:t},r)})}translateTo(t,r){return tA(this,void 0,void 0,function*(){yield this.context.viewport.transform({mode:"absolute",translate:t},r)})}getPosition(){return Oc([0,0],this.getCanvasByViewport([0,0]))}translateElementBy(t,r){return tA(this,arguments,void 0,function*(n,i,a=!0){var o,s;const[l,u]=Bh(n)?[n,(o=i)!==null&&o!==void 0?o:!0]:[{[n]:i},a];Object.entries(l).forEach(([c,A])=>this.context.model.translateNodeLikeBy(c,A)),yield(s=this.context.element.draw({animation:u,stage:"translate"}))===null||s===void 0?void 0:s.finished})}translateElementTo(t,r){return tA(this,arguments,void 0,function*(n,i,a=!0){var o,s;const[l,u]=Bh(n)?[n,(o=i)!==null&&o!==void 0?o:!0]:[{[n]:i},a];Object.entries(l).forEach(([c,A])=>this.context.model.translateNodeLikeTo(c,A)),yield(s=this.context.element.draw({animation:u,stage:"translate"}))===null||s===void 0?void 0:s.finished})}getElementPosition(t){return this.context.model.getElementPosition(t)}getElementRenderStyle(t){return Oxe(this.context.element.getElement(t).attributes,["context"])}setElementVisibility(t,r){return tA(this,arguments,void 0,function*(n,i,a=!0){var o,s;const[l,u]=Bh(n)?[n,(o=i)!==null&&o!==void 0?o:!0]:[{[n]:i},a],c={nodes:[],edges:[],combos:[]};Object.entries(l).forEach(([h,g])=>{const p=this.getElementType(h);c[`${p}s`].push({id:h,style:{visibility:g}})});const{model:A,element:f}=this.context;A.preventUpdateNodeLikeHierarchy(()=>{A.updateData(c)}),yield(s=f.draw({animation:u,stage:"visibility"}))===null||s===void 0?void 0:s.finished})}showElement(t,r){return tA(this,void 0,void 0,function*(){const n=Array.isArray(t)?t:[t];yield this.setElementVisibility(Object.fromEntries(n.map(i=>[i,"visible"])),r)})}hideElement(t,r){return tA(this,void 0,void 0,function*(){const n=Array.isArray(t)?t:[t];yield this.setElementVisibility(Object.fromEntries(n.map(i=>[i,"hidden"])),r)})}getElementVisibility(t){var r,n;const i=this.context.element.getElement(t);return(n=(r=i==null?void 0:i.style)===null||r===void 0?void 0:r.visibility)!==null&&n!==void 0?n:"visible"}setElementZIndex(t,r){return tA(this,void 0,void 0,function*(){var n;const i={nodes:[],edges:[],combos:[]},a=Bh(t)?t:{[t]:r};Object.entries(a).forEach(([l,u])=>{const c=this.getElementType(l);i[`${c}s`].push({id:l,style:{zIndex:u}})});const{model:o,element:s}=this.context;o.preventUpdateNodeLikeHierarchy(()=>o.updateData(i)),yield(n=s.draw({animation:!1,stage:"zIndex"}))===null||n===void 0?void 0:n.finished})}frontElement(t){return tA(this,void 0,void 0,function*(){const r=Array.isArray(t)?t:[t],{model:n}=this.context,i={};r.map(a=>{const o=n.getFrontZIndex(a);if(n.getElementType(a)==="combo"){const l=n.getAncestorsData(a,Gc).at(-1)||this.getComboData(a),u=[l,...n.getDescendantsData(Gn(l))],c=o-aje(l);u.forEach(f=>{i[Gn(f)]=this.getElementZIndex(Gn(f))+c});const{internal:A}=r2e(u.map(Gn),f=>n.getRelatedEdgesData(f));A.forEach(f=>{const h=Gn(f);i[h]=this.getElementZIndex(h)+c})}else i[a]=o}),yield this.setElementZIndex(i)})}getElementZIndex(t){return aje(this.context.model.getElementDataById(t))}setElementState(t,r){return tA(this,arguments,void 0,function*(n,i,a=!0){var o,s;const[l,u]=Bh(n)?[n,(o=i)!==null&&o!==void 0?o:!0]:[{[n]:i},a],c=f=>f?Array.isArray(f)?f:[f]:[],A={nodes:[],edges:[],combos:[]};Object.entries(l).forEach(([f,h])=>{const g=this.getElementType(f);A[`${g}s`].push({id:f,states:c(h)})}),this.updateData(A),yield(s=this.context.element.draw({animation:u,stage:"state"}))===null||s===void 0?void 0:s.finished})}getElementState(t){return this.context.model.getElementState(t)}getElementRenderBounds(t){return this.context.element.getElement(t).getRenderBounds()}collapseElement(t){return tA(this,arguments,void 0,function*(r,n=!0){const{model:i,element:a}=this.context;if(Wv(i.getNodeLikeData([r])[0])||this.isCollapsingExpanding)return;typeof n=="boolean"&&(n={animation:n,align:!0});const o=i.getElementType(r);yield this.frontElement(r),this.isCollapsingExpanding=!0,i.updateData(o==="node"?{nodes:[{id:r,style:{collapsed:!0}}]}:{combos:[{id:r,style:{collapsed:!0}}]}),o==="node"?yield a.collapseNode(r,n):o==="combo"&&(yield a.collapseCombo(r,!!n.animation)),this.isCollapsingExpanding=!1})}expandElement(t){return tA(this,arguments,void 0,function*(r,n=!0){const{model:i,element:a}=this.context;if(!Wv(i.getNodeLikeData([r])[0])||this.isCollapsingExpanding)return;typeof n=="boolean"&&(n={animation:n,align:!0});const o=i.getElementType(r);this.isCollapsingExpanding=!0,i.updateData(o==="node"?{nodes:[{id:r,style:{collapsed:!1}}]}:{combos:[{id:r,style:{collapsed:!1}}]}),o==="node"?yield a.expandNode(r,n):o==="combo"&&(yield a.expandCombo(r,!!n.animation)),this.isCollapsingExpanding=!1})}setElementCollapsibility(t,r){const n=this.getElementType(t);n==="node"?this.updateNodeData([{id:t,style:{collapsed:r}}]):n==="combo"&&this.updateComboData([{id:t,style:{collapsed:r}}])}toDataURL(){return tA(this,arguments,void 0,function*(t={}){return this.context.canvas.toDataURL(t)})}getCanvasByViewport(t){return this.context.canvas.getCanvasByViewport(t)}getViewportByCanvas(t){return this.context.canvas.getViewportByCanvas(t)}getClientByCanvas(t){return this.context.canvas.getClientByCanvas(t)}getCanvasByClient(t){return this.context.canvas.getCanvasByClient(t)}getViewportCenter(){return this.context.viewport.getViewportCenter()}getCanvasCenter(){return this.context.viewport.getCanvasCenter()}on(t,r,n){return super.on(t,r,n)}once(t,r){return super.once(t,r)}off(t,r){return super.off(t,r)}};$br.defaultOptions={autoResize:!1,theme:"light",rotation:0,zoom:1,zoomRange:[.01,10]};class zbr extends X5{beforeDraw(t){const{add:r,update:n}=t,{model:i}=this.context;return[...r.edges.entries(),...n.edges.entries()].forEach(([,a])=>{Ppt(i,a)}),t}}const Ppt=(e,t)=>{const{source:r,target:n}=t,i=e.getElementDataById(r),a=e.getElementDataById(n),o=mRe(i,A=>e.getParentData(A,Gc)),s=mRe(a,A=>e.getParentData(A,Gc)),l=Gn(o),u=Gn(s),c={sourceNode:l,targetNode:u};return t.style?Object.assign(t.style,c):t.style=c,t},Kbr=(e,t,r)=>{const[n,i]=t,[a,o]=r;if(i===n)return a;const s=(e-n)/(i-n);return a+s*(o-a)},Vbr=(e,t,r)=>{const[n,i]=t,[a,o]=r,s=Math.log(e-n+1)/Math.log(i-n+1);return a+s*(o-a)},Wbr=(e,t,r,n=2)=>{const[i,a]=t,[o,s]=r,l=Math.pow((e-i)/(a-i),n);return o+l*(s-o)},Ybr=(e,t,r)=>{const[n,i]=t,[a,o]=r,s=Math.sqrt((e-n)/(i-n));return a+s*(o-a)};class wZ extends X5{constructor(t,r){super(t,ip({},wZ.defaultOptions,r)),this.assignSizeByCentrality=(n,i,a,o,s,l)=>{const u=[i,a],c=[o[0],s[0]],A=[o[1],s[1]],f=[o[2],s[2]],h=(g,p)=>{if(typeof l=="function")return l(g,u,p);switch(l){case"linear":return Kbr(g,u,p);case"log":return Vbr(g,u,p);case"pow":return Wbr(g,u,p,2);case"sqrt":return Ybr(g,u,p);default:return p[0]}};return[h(n,c),h(n,A),h(n,f)]}}beforeDraw(t){const{model:r}=this.context,n=r.getNodeData(),i=a1(this.options.maxSize),a=a1(this.options.minSize),o=this.getCentralities(this.options.centrality),s=o.size>0?Math.max(...o.values()):0,l=o.size>0?Math.min(...o.values()):0;return n.forEach(u=>{var c;const A=this.assignSizeByCentrality(o.get(Gn(u))||0,l,s,a,i,this.options.scale),f=(c=this.context.element)===null||c===void 0?void 0:c.getElement(Gn(u)),h={size:A};this.assignLabelStyle(h,A,u,f),(!f||!WK(h,f.attributes))&&Zm(t,f?"update":"add","node",ip(u,{style:h}),!0)}),t}assignLabelStyle(t,r,n,i){var a;const o=i?i.config.style:(a=this.context.element)===null||a===void 0?void 0:a.getElementComputedStyle("node",n);if(Object.assign(t,x6(o,["labelFontSize","labelLineHeight"])),this.options.mapLabelSize){const s=this.getLabelSizeByNodeSize(r,1/0,Number(t.labelFontSize));Object.assign(t,{labelFontSize:s,labelLineHeight:s+yor(t.labelPadding)})}return t}getLabelSizeByNodeSize(t,r,n){const i=Math.min(...t)/2,[a,o]=Array.isArray(this.options.mapLabelSize)?this.options.mapLabelSize:[n,r];return Math.min(o,Math.max(i,a))}getCentralities(t){const{model:r}=this.context,n=r.getData();if(typeof t=="function")return t(n);const i=r.getRelatedEdgesData.bind(r);return Aht(n,i,t)}}wZ.defaultOptions={centrality:{type:"degree"},maxSize:80,minSize:20,scale:"linear",mapLabelSize:!1};class CZ extends X5{constructor(t,r){super(t,Object.assign({},CZ.defaultOptions,r))}get ref(){return this.context.model.getRootsData()[0]}afterLayout(){var t;const r=Ld(this.ref),{graph:n,model:i}=this.context;(t=i.getData().nodes)===null||t===void 0||t.forEach(o=>{var s;if(Gn(o)===Gn(this.ref))return;const l=hht(Oc(Ld(o),r)),u=Math.abs(l)>Math.PI/2,c=!o.children||o.children.length===0,A=Gn(o),f=(s=this.context.element)===null||s===void 0?void 0:s.getElement(A);if(!f||!f.isVisible())return;const h=a1(n.getElementRenderStyle(A).size)[0]/2,g=(c?1:-1)*(h+this.options.offset),p=[["translate",g*Math.cos(l),g*Math.sin(l)],["rotate",u?Hv(l)+180:Hv(l)]];i.updateNodeData([{id:Gn(o),style:{labelTextAlign:u===c?"right":"left",labelTextBaseline:"middle",labelTransform:p}}])}),n.draw()}}CZ.defaultOptions={offset:5};const qbr="quadratic",lje=["top","top-right","right","right-bottom","bottom","bottom-left","left","left-top"];class IZ extends X5{constructor(t,r){super(t,Object.assign({},IZ.defaultOptions,r)),this.cacheMergeStyle=new Map,this.getAffectedParallelEdges=n=>{const{add:{edges:i},update:{nodes:a,edges:o,combos:s},remove:{edges:l}}=n,{model:u}=this.context,c=new Map,A=(g,p)=>{u.getRelatedEdgesData(p).forEach(b=>!c.has(Gn(b))&&c.set(Gn(b),b))};a.forEach(A),s.forEach(A);const f=g=>{const p=u.getEdgeData().map(b=>Ppt(u,b));Jbr(g,p).forEach(b=>!c.has(Gn(b))&&c.set(Gn(b),b))};if(l.size&&l.forEach(f),i.size&&i.forEach(f),o.size){const g=Xgt(P3e(u.getChanges())).update.edges;o.forEach(p=>{var m;f(p);const b=(m=g.find(C=>Gn(C.value)===Gn(p)))===null||m===void 0?void 0:m.original;b&&!t5e(p,b)&&f(b)})}Uw(this.options.edges)||c.forEach((g,p)=>!this.options.edges.includes(p)&&c.delete(p));const h=u.getEdgeData().map(Gn);return new Map([...c].sort((g,p)=>h.indexOf(g[0])-h.indexOf(p[0])))},this.applyBundlingStyle=(n,i,a)=>{const{edgeMap:o,reverses:s}=uje(i);o.forEach(l=>{l.forEach((u,c,A)=>{var f;const h=A.length,g=u.style||{};if(u.source===u.target){const b=lje.length;g.loopPlacement=lje[c%b],g.loopDist=Math.floor(c/b)*a+50}else if(h===1)g.curveOffset=0;else{const b=(c%2===0?1:-1)*(s[`${u.source}|${u.target}|${c}`]?-1:1);g.curveOffset=h%2===1?b*Math.ceil(c/2)*a*2:b*(Math.floor(c/2)*a*2+a)}const p=Object.assign(u,{type:qbr,style:g}),m=(f=this.context.element)===null||f===void 0?void 0:f.getElement(Gn(u));(!m||!WK(p.style,m.attributes))&&Zm(n,m?"update":"add","edge",p,!0)})})},this.resetEdgeStyle=n=>{const i=n.style||{},a=this.cacheMergeStyle.get(Gn(n))||{};return Object.keys(a).forEach(o=>{Qf(i[o],a[o])&&(n[o]?i[o]=n[o]:delete i[o])}),Object.assign(n,{style:i})},this.applyMergingStyle=(n,i)=>{const{edgeMap:a,reverses:o}=uje(i);a.forEach(s=>{var l;if(s.length===1){const c=s[0],A=(l=this.context.element)===null||l===void 0?void 0:l.getElement(Gn(c)),f=this.resetEdgeStyle(c);(!A||!WK(f,A.attributes))&&Zm(n,A?"update":"add","edge",f);return}const u=s.map(({source:c,target:A,style:f={}},h)=>{const{startArrow:g,endArrow:p}=f,m={},[b,C]=o[`${c}|${A}|${h}`]?["endArrow","startArrow"]:["startArrow","endArrow"];return eN(g)&&(m[b]=g),eN(p)&&(m[C]=p),m}).reduce((c,A)=>Object.assign(Object.assign({},c),A),{});s.forEach((c,A,f)=>{var h;if(A!==0){Zm(n,"remove","edge",c);return}const g=Object.assign({},xo(this.options.style)?this.options.style(f):this.options.style,{childrenData:f});this.cacheMergeStyle.set(Gn(c),g);const p=Object.assign(Object.assign({},c),{type:"line",style:Object.assign(Object.assign(Object.assign({},c.style),u),g)}),m=(h=this.context.element)===null||h===void 0?void 0:h.getElement(Gn(c));(!m||!WK(p.style,m.attributes))&&Zm(n,m?"update":"add","edge",p,!0)})})}}beforeDraw(t){const r=this.getAffectedParallelEdges(t);return r.size===0||(this.options.mode==="bundle"?this.applyBundlingStyle(t,r,this.options.distance):this.applyMergingStyle(t,r)),t}}IZ.defaultOptions={mode:"bundle",distance:15};const uje=e=>{const t=new Map,r=new Set,n={},i=new Map;for(const[a,o]of e){if(r.has(a))continue;const{source:s,target:l}=o,u=`${s}-${l}`;t.has(u)||(t.set(u,[]),i.set(u,new Set));const c=t.get(u),A=i.get(u);c&&A&&!A.has(a)&&(c.push(o),A.add(a),r.add(a));for(const[f,h]of e)if(!(r.has(f)||f===a)&&t5e(o,h)){const g=t.get(u),p=i.get(u);g&&p&&!p.has(f)&&(g.push(h),p.add(f),s===h.target&&l===h.source&&(n[`${h.source}|${h.target}|${g.length-1}`]=!0),r.add(f))}}return{edgeMap:t,reverses:n}},Jbr=(e,t,r)=>t.filter(n=>t5e(n,e)),t5e=(e,t)=>{const{sourceNode:r,targetNode:n}=e.style||{},{sourceNode:i,targetNode:a}=t.style||{};return r===i&&n===a||r===a&&n===i};class Xbr extends X5{beforeDraw(t,r){const{stage:n}=r;if(n==="visibility")return t;const{model:i}=this.context,{update:{nodes:a,edges:o,combos:s}}=t,l=(u,c)=>{i.getRelatedEdgesData(c).forEach(f=>!o.has(Gn(f))&&o.set(Gn(f),f))};return a.forEach(l),s.forEach(l),t}}const Zbr={animation:{"combo-collapse":iht,"combo-expand":por,"node-collapse":rht,"node-expand":dor,"path-in":nht,"path-out":gor,fade:Aor,translate:hor},behavior:{"brush-select":HL,"click-select":oX,"collapse-expand":dX,"create-edge":gX,"drag-canvas":pX,"drag-element-force":yur,"drag-element":VL,"fix-element-size":yX,"focus-element":bX,"hover-activate":wX,"lasso-select":wur,"auto-adapt-label":nX,"optimize-viewport-transform":CX,"scroll-canvas":IX,"zoom-canvas":EX},combo:{circle:ylr,rect:blr},edge:{cubic:lQ,line:Yht,polyline:Xht,quadratic:hX,"cubic-horizontal":cX,"cubic-radial":AX,"cubic-vertical":fX},layout:{"antv-dagre":IAr,"combo-combined":Rfr,"compact-box":XG.compactBox,"d3-force":ohr,"force-atlas2":Epr,circular:xAr,concentric:u2e,dagre:KX,dendrogram:XG.dendrogram,fishbone:VX,force:xdt,fruchterman:Spr,grid:Qpr,indented:XG.indented,mds:kdt,mindmap:XG.mindmap,radial:Lpr,random:zpr,snake:WX},node:{circle:$L,diamond:Csr,ellipse:_ht,hexagon:Ssr,html:uX,image:Uht,rect:vlr,star:mlr,donut:lX,triangle:jht},palette:{spectral:s0r,tableau:l0r,oranges:u0r,greens:c0r,blues:A0r},theme:{dark:vbr,light:ybr},plugin:{"bubble-sets":JX,"edge-bundling":ZX,"edge-filter-lens":eZ,"grid-line":nZ,background:YX,contextmenu:XX,fisheye:tZ,fullscreen:rZ,history:iZ,hull:oZ,legend:hZ,minimap:dZ,snapline:gZ,timebar:pZ,toolbar:vZ,tooltip:mZ,watermark:yZ},transform:{"arrange-draw-order":bbr,"collapse-expand-combo":wbr,"collapse-expand-node":Cbr,"get-edge-actual-ends":zbr,"map-node-size":wZ,"place-radial-labels":CZ,"process-parallel-edges":IZ,"update-related-edges":Xbr},shape:{circle:IB,ellipse:NL,group:zd,html:LL,image:i3e,line:Q6,path:Jm,polygon:oQ,polyline:tX,rect:op,text:sQ,label:W5,badge:J7}};function e2r(){Object.entries(Zbr).forEach(([e,t])=>{Object.entries(t).forEach(([r,n])=>{Ibr(e,r,n)})})}e2r();/*! ***************************************************************************** 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 _2e=function(e,t){return _2e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},_2e(e,t)};function Wn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");_2e(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var t2r=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),r2r=function(){function e(){this.browser=new t2r,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow=typeof window<"u"}return e}(),nl=new r2r;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(nl.wxa=!0,nl.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?nl.worker=!0:!nl.hasGlobalWindow||"Deno"in window?(nl.node=!0,nl.svgSupported=!0):n2r(navigator.userAgent,nl);function n2r(e,t){var r=t.browser,n=e.match(/Firefox\/([\d.]+)/),i=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);n&&(r.firefox=!0,r.version=n[1]),i&&(r.ie=!0,r.version=i[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}var r5e=12,Upt="sans-serif",C5=r5e+"px "+Upt,i2r=20,a2r=100,o2r="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function s2r(e){var t={};if(typeof JSON>"u")return t;for(var r=0;r=0)s=o*r.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",n[l]+":0",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function k2r(e,t,r){for(var n=r?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=e[u].getBoundingClientRect(),A=2*u,f=c.left,h=c.top;o.push(f,h),l=l&&a&&f===a[A]&&h===a[A+1],s.push(e[u].offsetLeft,e[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=r?hje(s,o):hje(o,s))}function Vpt(e){return e.nodeName.toUpperCase()==="CANVAS"}var Q2r=/([&<>"'])/g,_2r={"&":"&","<":"<",">":">",'"':""","'":"'"};function P0(e){return e==null?"":(e+"").replace(Q2r,function(t,r){return _2r[r]})}var T2r=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,phe=[],D2r=nl.browser.firefox&&+nl.browser.version.split(".")[0]<39;function L2e(e,t,r,n){return r=r||{},n?gje(e,t,r):D2r&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):gje(e,t,r),r}function gje(e,t,r){if(nl.domSupported&&e.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(Vpt(e)){var a=e.getBoundingClientRect();r.zrX=n-a.left,r.zrY=i-a.top;return}else if(N2e(phe,e,n,i)){r.zrX=phe[0],r.zrY=phe[1];return}}r.zrX=r.zrY=0}function u5e(e){return e||window.event}function cy(e,t,r){if(t=u5e(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&L2e(e,o,t,r)}else{L2e(e,t,t,r);var a=F2r(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&T2r.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function F2r(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,n=e.deltaY;if(r==null||n==null)return t;var i=Math.abs(n!==0?n:r),a=n>0?-1:n<0?1:r>0?-1:1;return 3*i*a}function P2e(e,t,r,n){e.addEventListener(t,r,n)}function R2r(e,t,r,n){e.removeEventListener(t,r,n)}var iB=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0};function pje(e){return e.which===2||e.which===3}var M2r=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,n){return this._doTrack(t,r,n),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:r,event:t},o=0,s=i.length;o1&&n&&n.length>1){var a=vje(n)/vje(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=O2r(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function s1(){return[1,0,0,1,0,0]}function SZ(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function c5e(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function LE(e,t,r){var n=t[0]*r[0]+t[2]*r[1],i=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],l=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=n,e[1]=i,e[2]=a,e[3]=o,e[4]=s,e[5]=l,e}function bC(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function gQ(e,t,r,n){n===void 0&&(n=[0,0]);var i=t[0],a=t[2],o=t[4],s=t[1],l=t[3],u=t[5],c=Math.sin(r),A=Math.cos(r);return e[0]=i*A+s*c,e[1]=-i*c+s*A,e[2]=a*A+l*c,e[3]=-a*c+A*l,e[4]=A*(o-n[0])+c*(u-n[1])+n[0],e[5]=A*(u-n[1])-c*(o-n[0])+n[1],e}function A5e(e,t,r){var n=r[0],i=r[1];return e[0]=t[0]*n,e[1]=t[1]*i,e[2]=t[2]*n,e[3]=t[3]*i,e[4]=t[4]*n,e[5]=t[5]*i,e}function cT(e,t){var r=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=r*o-a*n;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-n*l,e[3]=r*l,e[4]=(n*s-o*i)*l,e[5]=(a*i-r*s)*l,e):null}function N2r(e){var t=s1();return c5e(t,e),t}var Cs=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,n=this.y-t.y;return Math.sqrt(r*r+n*n)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,n=this.y-t.y;return r*r+n*n},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var r=this.x,n=this.y;return this.x=t[0]*r+t[2]*n+t[4],this.y=t[1]*r+t[3]*n+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,n){t.x=r,t.y=n},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,n){t.x=r.x+n.x,t.y=r.y+n.y},e.sub=function(t,r,n){t.x=r.x-n.x,t.y=r.y-n.y},e.scale=function(t,r,n){t.x=r.x*n,t.y=r.y*n},e.scaleAndAdd=function(t,r,n,i){t.x=r.x+n.x*i,t.y=r.y+n.y*i},e.lerp=function(t,r,n,i){var a=1-i;t.x=a*r.x+i*n.x,t.y=a*r.y+i*n.y},e}(),f$=Math.min,h$=Math.max,y4=new Cs,b4=new Cs,w4=new Cs,C4=new Cs,qF=new Cs,JF=new Cs,xs=function(){function e(t,r,n,i){n<0&&(t=t+n,n=-n),i<0&&(r=r+i,i=-i),this.x=t,this.y=r,this.width=n,this.height=i}return e.prototype.union=function(t){var r=f$(t.x,this.x),n=f$(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=h$(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=h$(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=r,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,n=t.width/r.width,i=t.height/r.height,a=s1();return bC(a,a,[-r.x,-r.y]),A5e(a,a,[n,i]),bC(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,c=t.y,A=t.y+t.height,f=!(ag&&(g=E,pg&&(g=_,b=n.x&&t<=n.x+n.width&&r>=n.y&&r<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,n){if(!n){t!==r&&e.copy(t,r);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=r.x*i+o,t.y=r.y*a+s,t.width=r.width*i,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}y4.x=w4.x=r.x,y4.y=C4.y=r.y,b4.x=C4.x=r.x+r.width,b4.y=w4.y=r.y+r.height,y4.transform(n),C4.transform(n),b4.transform(n),w4.transform(n),t.x=f$(y4.x,b4.x,w4.x,C4.x),t.y=f$(y4.y,b4.y,w4.y,C4.y);var l=h$(y4.x,b4.x,w4.x,C4.x),u=h$(y4.y,b4.y,w4.y,C4.y);t.width=l-t.x,t.height=u-t.y},e}(),Wpt="silent";function L2r(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:P2r}}function P2r(){iB(this.event)}var U2r=function(e){Vc(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(jy),XF=function(){function e(t,r){this.x=t,this.y=r}return e}(),H2r=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],mhe=new xs(0,0,0,0),Ypt=function(e){Vc(t,e);function t(r,n,i,a,o){var s=e.call(this)||this;return s._hovered=new XF(0,0),s.storage=r,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new U2r,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new E2r(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(Mt(H2r,function(n){r.on&&r.on(n,this[n],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var n=r.zrX,i=r.zrY,a=qpt(this,n,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 XF(n,i):this.findHover(n,i),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(l,"mousemove",r),u&&u!==s&&this.dispatchToElement(l,"mouseover",r)},t.prototype.mouseout=function(r){var n=r.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new XF(0,0)},t.prototype.dispatch=function(r,n){var i=this[r];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var n=this.proxy;n.setCursor&&n.setCursor(r)},t.prototype.dispatchToElement=function(r,n,i){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+n,s=L2r(n,r,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},t.prototype.findHover=function(r,n,i){var a=this.storage.getDisplayList(),o=new XF(r,n);if(mje(a,o,r,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new xs(r-u,n-u,l,l),A=a.length-1;A>=0;A--){var f=a[A];f!==i&&!f.ignore&&!f.ignoreCoarsePointer&&(!f.parent||!f.parent.ignoreCoarsePointer)&&(mhe.copy(f.getBoundingRect()),f.transform&&mhe.applyTransform(f.transform),mhe.intersect(c)&&s.push(f))}if(s.length)for(var h=4,g=Math.PI/12,p=Math.PI*2,m=0;m4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function j2r(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var n=e,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,r))return!1}n.silent&&(i=!0);var s=n.__hostTarget;n=s||n.parent}return i?Wpt:!0}return!1}function mje(e,t,r,n,i){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==i&&!o.ignore&&(s=j2r(o,r,n))&&(!t.topTarget&&(t.topTarget=o),s!==Wpt)){t.target=o;break}}}function qpt(e,t,r){var n=e.painter;return t<0||t>n.getWidth()||r<0||r>n.getHeight()}var Jpt=32,ZF=7;function G2r(e){for(var t=0;e>=Jpt;)t|=e&1,e>>=1;return e+t}function yje(e,t,r,n){var i=t+1;if(i===r)return 1;if(n(e[i++],e[t])<0){for(;i=0;)i++;return i-t}function $2r(e,t,r){for(r--;t>>1,i(a,e[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;u>0;)e[o+u]=e[o+u-1],u--}e[o]=a}}function yhe(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])>0){for(s=n-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(e,t[r+c])>0?o=c+1:l=c}return l}function bhe(e,t,r,n,i,a){var o=0,s=0,l=1;if(a(e,t[r+i])<0){for(s=i+1;ls&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o>>1);a(e,t[r+c])<0?l=c:o=c+1}return l}function z2r(e,t){var r=ZF,n,i,a=0,o=[];n=[],i=[];function s(h,g){n[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]=ZF||N>=ZF);if(P)break;F<0&&(F=0),F+=2}if(r=F,r<1&&(r=1),g===1){for(b=0;b=0;b--)e[M+b]=e[F+b];e[_]=o[E];return}for(var N=r;;){var P=0,j=0,z=!1;do if(t(o[E],e[C])<0){if(e[_--]=e[C--],P++,j=0,--g===0){z=!0;break}}else if(e[_--]=o[E--],j++,P=0,--m===1){z=!0;break}while((P|j)=0;b--)e[M+b]=e[F+b];if(g===0){z=!0;break}}if(e[_--]=o[E--],--m===1){z=!0;break}if(j=m-yhe(e[C],o,0,m,m-1,t),j!==0){for(_-=j,E-=j,m-=j,M=_+1,F=E+1,b=0;b=ZF||j>=ZF);if(z)break;N<0&&(N=0),N+=2}if(r=N,r<1&&(r=1),m===1){for(_-=g,C-=g,M=_+1,F=C+1,b=g-1;b>=0;b--)e[M+b]=e[F+b];e[_]=o[E]}else{if(m===0)throw new Error;for(F=_-(m-1),b=0;bs&&(l=s),bje(e,r,r+l,r+a,t),a=l}o.pushRun(r,a),o.mergeRuns(),i-=a,r+=a}while(i!==0);o.forceMergeRuns()}}var Wm=1,iM=2,P8=4,wje=!1;function whe(){wje||(wje=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Cje(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var K2r=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Cje}return e.prototype.traverse=function(t,r){for(var n=0;n0&&(c.__clipPaths=[]),isNaN(c.z)&&(whe(),c.z=0),isNaN(c.z2)&&(whe(),c.z2=0),isNaN(c.zlevel)&&(whe(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var A=t.getDecalElement&&t.getDecalElement();A&&this._updateAndAddDisplayable(A,r,n);var f=t.getTextGuideLine();f&&this._updateAndAddDisplayable(f,r,n);var h=t.getTextContent();h&&this._updateAndAddDisplayable(h,r,n)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,n=t.length;r=0&&this._roots.splice(i,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),pY;pY=nl.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var rO={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)))},elasticOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/n)+1)},elasticInOut:function(e){var t,r=.1,n=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=n/4):t=n*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/n)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-rO.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?rO.bounceIn(e*2)*.5:rO.bounceOut(e*2-1)*.5+.5}},d$=Math.pow,n5=Math.sqrt,vY=1e-8,Xpt=1e-4,Ije=n5(3),g$=1/3,Hw=dQ(),vy=dQ(),I9=dQ();function L3(e){return e>-vY&&evY||e<-vY}function Fd(e,t,r,n,i){var a=1-i;return a*a*(a*e+3*i*t)+i*i*(i*n+3*a*r)}function Eje(e,t,r,n,i){var a=1-i;return 3*(((t-e)*a+2*(r-t)*i)*a+(n-r)*i*i)}function mY(e,t,r,n,i,a){var o=n+3*(t-r)-e,s=3*(r-t*2+e),l=3*(t-e),u=e-i,c=s*s-3*o*l,A=s*l-9*o*u,f=l*l-3*s*u,h=0;if(L3(c)&&L3(A))if(L3(s))a[0]=0;else{var g=-l/s;g>=0&&g<=1&&(a[h++]=g)}else{var p=A*A-4*c*f;if(L3(p)){var m=A/c,g=-s/o+m,b=-m/2;g>=0&&g<=1&&(a[h++]=g),b>=0&&b<=1&&(a[h++]=b)}else if(p>0){var C=n5(p),E=c*s+1.5*o*(-A+C),_=c*s+1.5*o*(-A-C);E<0?E=-d$(-E,g$):E=d$(E,g$),_<0?_=-d$(-_,g$):_=d$(_,g$);var g=(-s-(E+_))/(3*o);g>=0&&g<=1&&(a[h++]=g)}else{var F=(2*c*s-3*o*A)/(2*n5(c*c*c)),M=Math.acos(F)/3,N=n5(c),P=Math.cos(M),g=(-s-2*N*P)/(3*o),b=(-s+N*(P+Ije*Math.sin(M)))/(3*o),j=(-s+N*(P-Ije*Math.sin(M)))/(3*o);g>=0&&g<=1&&(a[h++]=g),b>=0&&b<=1&&(a[h++]=b),j>=0&&j<=1&&(a[h++]=j)}}return h}function e0t(e,t,r,n,i){var a=6*r-12*t+6*e,o=9*t+3*n-3*e-9*r,s=3*t-3*e,l=0;if(L3(o)){if(Zpt(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var c=a*a-4*o*s;if(L3(c))i[0]=-a/(2*o);else if(c>0){var A=n5(c),u=(-a+A)/(2*o),f=(-a-A)/(2*o);u>=0&&u<=1&&(i[l++]=u),f>=0&&f<=1&&(i[l++]=f)}}return l}function E5(e,t,r,n,i,a){var o=(t-e)*i+e,s=(r-t)*i+t,l=(n-r)*i+r,u=(s-o)*i+o,c=(l-s)*i+s,A=(c-u)*i+u;a[0]=e,a[1]=o,a[2]=u,a[3]=A,a[4]=A,a[5]=c,a[6]=l,a[7]=n}function t0t(e,t,r,n,i,a,o,s,l,u,c){var A,f=.005,h=1/0,g,p,m,b;Hw[0]=l,Hw[1]=u;for(var C=0;C<1;C+=.05)vy[0]=Fd(e,r,i,o,C),vy[1]=Fd(t,n,a,s,C),m=Xk(Hw,vy),m=0&&m=0&&u<=1&&(i[l++]=u)}}else{var c=o*o-4*a*s;if(L3(c)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(c>0){var A=n5(c),u=(-o+A)/(2*a),f=(-o-A)/(2*a);u>=0&&u<=1&&(i[l++]=u),f>=0&&f<=1&&(i[l++]=f)}}return l}function r0t(e,t,r){var n=e+r-2*t;return n===0?.5:(e-t)/n}function bN(e,t,r,n,i){var a=(t-e)*n+e,o=(r-t)*n+t,s=(o-a)*n+a;i[0]=e,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=r}function n0t(e,t,r,n,i,a,o,s,l){var u,c=.005,A=1/0;Hw[0]=o,Hw[1]=s;for(var f=0;f<1;f+=.05){vy[0]=mg(e,r,i,f),vy[1]=mg(t,n,a,f);var h=Xk(Hw,vy);h=0&&h=1?1:mY(0,n,a,1,l,s)&&Fd(0,i,o,1,s[0])}}}var J2r=function(){function e(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Xf,this.ondestroy=t.ondestroy||Xf,this.onrestart=t.onrestart||Xf,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;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%n;this._startTime=t-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Bo(t)?t:rO[t]||f5e(t)},e}(),i0t=function(){function e(t){this.value=t}return e}(),X2r=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new i0t(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,n=t.next;r?r.next=n:this.head=n,n?n.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),rP=function(){function e(t){this._list=new X2r,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=r:s=new i0t(r),s.key=t,n.insertEntry(s),i[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],n=this._list;if(r!=null)return r!==n.tail&&(n.remove(r),n.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),Bje={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 Zb(e){return e=Math.round(e),e<0?0:e>255?255:e}function Z2r(e){return e=Math.round(e),e<0?0:e>360?360:e}function wN(e){return e<0?0:e>1?1:e}function Che(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Zb(parseFloat(t)/100*255):Zb(parseInt(t,10))}function Zk(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?wN(parseFloat(t)/100):wN(parseFloat(t))}function Ihe(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function P3(e,t,r){return e+(t-e)*r}function oy(e,t,r,n,i){return e[0]=t,e[1]=r,e[2]=n,e[3]=i,e}function H2e(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var a0t=new rP(20),p$=null;function q_(e,t){p$&&H2e(p$,t),p$=a0t.put(e,p$||t.slice())}function l1(e,t){if(e){t=t||[];var r=a0t.get(e);if(r)return H2e(t,r);e=e+"";var n=e.replace(/ /g,"").toLowerCase();if(n in Bje)return H2e(t,Bje[n]),q_(e,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){oy(t,0,0,0,1);return}return oy(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),q_(e,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){oy(t,0,0,0,1);return}return oy(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),q_(e,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),c=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?oy(t,+u[0],+u[1],+u[2],1):oy(t,0,0,0,1);c=Zk(u.pop());case"rgb":if(u.length>=3)return oy(t,Che(u[0]),Che(u[1]),Che(u[2]),u.length===3?c:Zk(u[3])),q_(e,t),t;oy(t,0,0,0,1);return;case"hsla":if(u.length!==4){oy(t,0,0,0,1);return}return u[3]=Zk(u[3]),j2e(u,t),q_(e,t),t;case"hsl":if(u.length!==3){oy(t,0,0,0,1);return}return j2e(u,t),q_(e,t),t;default:return}}oy(t,0,0,0,1)}}function j2e(e,t){var r=(parseFloat(e[0])%360+360)%360/360,n=Zk(e[1]),i=Zk(e[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],oy(t,Zb(Ihe(o,a,r+1/3)*255),Zb(Ihe(o,a,r)*255),Zb(Ihe(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function ewr(e){if(e){var t=e[0]/255,r=e[1]/255,n=e[2]/255,i=Math.min(t,r,n),a=Math.max(t,r,n),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-t)/6+o/2)/o,A=((a-r)/6+o/2)/o,f=((a-n)/6+o/2)/o;t===a?l=f-A:r===a?l=1/3+c-f:n===a&&(l=2/3+A-c),l<0&&(l+=1),l>1&&(l-=1)}var h=[l*360,u,s];return e[3]!=null&&h.push(e[3]),h}}function G2e(e,t){var r=l1(e);if(r){for(var n=0;n<3;n++)t<0?r[n]=r[n]*(1-t)|0:r[n]=(255-r[n])*t+r[n]|0,r[n]>255?r[n]=255:r[n]<0&&(r[n]=0);return PE(r,r.length===4?"rgba":"rgb")}}function Ehe(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){r=r||[];var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=t[i],s=t[a],l=n-i;return r[0]=Zb(P3(o[0],s[0],l)),r[1]=Zb(P3(o[1],s[1],l)),r[2]=Zb(P3(o[2],s[2],l)),r[3]=wN(P3(o[3],s[3],l)),r}}function twr(e,t,r){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var n=e*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=l1(t[i]),s=l1(t[a]),l=n-i,u=PE([Zb(P3(o[0],s[0],l)),Zb(P3(o[1],s[1],l)),Zb(P3(o[2],s[2],l)),wN(P3(o[3],s[3],l))],"rgba");return r?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function nO(e,t,r,n){var i=l1(e);if(e)return i=ewr(i),t!=null&&(i[0]=Z2r(t)),r!=null&&(i[1]=Zk(r)),n!=null&&(i[2]=Zk(n)),PE(j2e(i),"rgba")}function yY(e,t){var r=l1(e);if(r&&t!=null)return r[3]=wN(t),PE(r,"rgba")}function PE(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function bY(e,t){var r=l1(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var xje=new rP(100);function $2e(e){if(Oa(e)){var t=xje.get(e);return t||(t=G2e(e,-.1),xje.put(e,t)),t}else if(BZ(e)){var r=si({},e);return r.colorStops=Ti(e.colorStops,function(n){return{offset:n.offset,color:G2e(n.color,-.1)}}),r}return e}var wY=Math.round;function CN(e){var t;if(!e||e==="transparent")e="none";else if(typeof e=="string"&&e.indexOf("rgba")>-1){var r=l1(e);r&&(e="rgb("+r[0]+","+r[1]+","+r[2]+")",t=r[3])}return{color:e,opacity:t??1}}var Sje=1e-4;function U3(e){return e-Sje}function v$(e){return wY(e*1e3)/1e3}function z2e(e){return wY(e*1e4)/1e4}function rwr(e){return"matrix("+v$(e[0])+","+v$(e[1])+","+v$(e[2])+","+v$(e[3])+","+z2e(e[4])+","+z2e(e[5])+")"}var nwr={left:"start",right:"end",center:"middle",middle:"middle"};function iwr(e,t,r){return r==="top"?e+=t/2:r==="bottom"&&(e-=t/2),e}function awr(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function owr(e){var t=e.style,r=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),r[0],r[1]].join(",")}function o0t(e){return e&&!!e.image}function swr(e){return e&&!!e.svgElement}function h5e(e){return o0t(e)||swr(e)}function s0t(e){return e.type==="linear"}function l0t(e){return e.type==="radial"}function u0t(e){return e&&(e.type==="linear"||e.type==="radial")}function kZ(e){return"url(#"+e+")"}function c0t(e){var t=e.getGlobalScale(),r=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(r)/Math.log(10)),1)}function A0t(e){var t=e.x||0,r=e.y||0,n=(e.rotation||0)*YK,i=ts(e.scaleX,1),a=ts(e.scaleY,1),o=e.skewX||0,s=e.skewY||0,l=[];return(t||r)&&l.push("translate("+t+"px,"+r+"px)"),n&&l.push("rotate("+n+")"),(i!==1||a!==1)&&l.push("scale("+i+","+a+")"),(o||s)&&l.push("skew("+wY(o*YK)+"deg, "+wY(s*YK)+"deg)"),l.join(" ")}var lwr=function(){return nl.hasGlobalWindow&&Bo(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}}(),K2e=Array.prototype.slice;function fE(e,t,r){return(t-e)*r+e}function Bhe(e,t,r,n){for(var i=t.length,a=0;an?t:e,a=Math.min(r,n),o=i[a-1]||{color:[0,0,0,0],offset:0},s=a;so;if(s)n.length=o;else for(var l=a;l=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,n){this._needsSort=!0;var i=this.keyframes,a=i.length,o=!1,s=Qje,l=r;if(u0(r)){var u=fwr(r);s=u,(u===1&&!Xl(r[0])||u===2&&!Xl(r[0][0]))&&(o=!0)}else if(Xl(r)&&!mN(r))s=y$;else if(Oa(r))if(!isNaN(+r))s=y$;else{var c=l1(r);c&&(l=c,s=aM)}else if(BZ(r)){var A=si({},l);A.colorStops=Ti(r.colorStops,function(h){return{offset:h.offset,color:l1(h.color)}}),s0t(r)?s=V2e:l0t(r)&&(s=W2e),l=A}a===0?this.valType=s:(s!==this.valType||s===Qje)&&(o=!0),this.discrete=this.discrete||o;var f={time:t,value:l,rawValue:r,percent:0};return n&&(f.easing=n,f.easingFunc=Bo(n)?n:rO[n]||f5e(n)),i.push(f),f},e.prototype.prepare=function(t,r){var n=this.keyframes;this._needsSort&&n.sort(function(p,m){return p.time-m.time});for(var i=this.valType,a=n.length,o=n[a-1],s=this.discrete,l=b$(i),u=_je(i),c=0;c=0&&!(o[c].percent<=r);c--);c=f(c,s-2)}else{for(c=A;cr);c++);c=f(c-1,s-2)}g=o[c+1],h=o[c]}if(h&&g){this._lastFr=c,this._lastFrP=r;var m=g.percent-h.percent,b=m===0?1:f((r-h.percent)/m,1);g.easingFunc&&(b=g.easingFunc(b));var C=n?this._additiveValue:u?eR:t[l];if((b$(a)||u)&&!C&&(C=this._additiveValue=[]),this.discrete)t[l]=b<1?h.rawValue:g.rawValue;else if(b$(a))a===eV?Bhe(C,h[i],g[i],b):uwr(C,h[i],g[i],b);else if(_je(a)){var E=h[i],_=g[i],F=a===V2e;t[l]={type:F?"linear":"radial",x:fE(E.x,_.x,b),y:fE(E.y,_.y,b),colorStops:Ti(E.colorStops,function(N,P){var j=_.colorStops[P];return{offset:fE(N.offset,j.offset,b),color:ZK(Bhe([],N.color,j.color,b))}}),global:_.global},F?(t[l].x2=fE(E.x2,_.x2,b),t[l].y2=fE(E.y2,_.y2,b)):t[l].r=fE(E.r,_.r,b)}else if(u)Bhe(C,h[i],g[i],b),n||(t[l]=ZK(C));else{var M=fE(h[i],g[i],b);n?this._additiveValue=M:t[l]=M}n&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,n=this.propName,i=this._additiveValue;r===y$?t[n]=t[n]+i:r===aM?(l1(t[n],eR),m$(eR,eR,i,1),t[n]=ZK(eR)):r===eV?m$(t[n],t[n],i,1):r===f0t&&kje(t[n],t[n],i,1)},e}(),d5e=function(){function e(t,r,n,i){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&i){a5e("Can' use additive animation on looped animation.");return}this._additiveAnimators=i,this._allowDiscrete=n}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,n){return this.whenWithKeys(t,r,pl(r),n)},e.prototype.whenWithKeys=function(t,r,n,i){for(var a=this._tracks,o=0;o0&&l.addKeyframe(0,iO(u),i),this._trackKeys.push(s)}l.addKeyframe(t,iO(r[s]),i)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,n=0;n0)){this._started=1;for(var r=this,n=[],i=this._maxTime||0,a=0;a1){var s=o.pop();a.addKeyframe(s.time,t[i]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}();function t9(){return new Date().getTime()}var dwr=function(e){Vc(t,e);function t(r){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,r=r||{},n.stage=r.stage||{},n}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var n=r.getClip();n&&this.addClip(n)},t.prototype.removeClip=function(r){if(r.animation){var n=r.prev,i=r.next;n?n.next=i:this._head=i,i?i.prev=n:this._tail=n,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var n=r.getClip();n&&this.removeClip(n),r.animation=null},t.prototype.update=function(r){for(var n=t9()-this._pausedTime,i=n-this._time,a=this._head;a;){var o=a.next,s=a.step(n,i);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=n,r||(this.trigger("frame",i),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function n(){r._running&&(pY(n),!r._paused&&r.update())}pY(n)},t.prototype.start=function(){this._running||(this._time=t9(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=t9(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=t9()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var n=r.next;r.prev=r.next=r.animation=null,r=n}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,n){n=n||{},this.start();var i=new d5e(r,n.loop);return this.addAnimator(i),i},t}(jy),gwr=300,xhe=nl.domSupported,She=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},n=Ti(e,function(i){var a=i.replace("mouse","pointer");return r.hasOwnProperty(a)?a:i});return{mouse:e,touch:t,pointer:n}}(),Tje={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Dje=!1;function Y2e(e){var t=e.pointerType;return t==="pen"||t==="touch"}function pwr(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function khe(e){e&&(e.zrByTouch=!0)}function vwr(e,t){return cy(e.dom,new mwr(e,t),!0)}function h0t(e,t){for(var r=t,n=!1;r&&r.nodeType!==9&&!(n=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return n}var mwr=function(){function e(t,r){this.stopPropagation=Xf,this.stopImmediatePropagation=Xf,this.preventDefault=Xf,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),Ob={mousedown:function(e){e=cy(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=cy(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=cy(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=cy(this.dom,e);var t=e.toElement||e.relatedTarget;h0t(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Dje=!0,e=cy(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Dje||(e=cy(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=cy(this.dom,e),khe(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),Ob.mousemove.call(this,e),Ob.mousedown.call(this,e)},touchmove:function(e){e=cy(this.dom,e),khe(e),this.handler.processGesture(e,"change"),Ob.mousemove.call(this,e)},touchend:function(e){e=cy(this.dom,e),khe(e),this.handler.processGesture(e,"end"),Ob.mouseup.call(this,e),+new Date-+this.__lastTouchMomentMje||e<-Mje}var E4=[],J_=[],_he=s1(),The=Math.abs,kE=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return I4(this.rotation)||I4(this.x)||I4(this.y)||I4(this.scaleX-1)||I4(this.scaleY-1)||I4(this.skewX)||I4(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),n=this.transform;if(!(r||t)){n&&(Rje(n),this.invTransform=null);return}n=n||s1(),r?this.getLocalTransform(n):Rje(n),t&&(r?LE(n,t,n):c5e(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(E4);var n=E4[0]<0?-1:1,i=E4[1]<0?-1:1,a=((E4[0]-n)*r+n)/E4[0]||0,o=((E4[1]-i)*r+i)/E4[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||s1(),cT(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),a=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||s1(),LE(J_,t.invTransform,r),r=J_);var n=this.originX,i=this.originY;(n||i)&&(_he[4]=n,_he[5]=i,LE(J_,r,_he),J_[4]-=n,J_[5]-=i,r=J_),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var n=[t,r],i=this.invTransform;return i&&tp(n,n,i),n},e.prototype.transformCoordToGlobal=function(t,r){var n=[t,r],i=this.transform;return i&&tp(n,n,i),n},e.prototype.getLineScale=function(){var t=this.transform;return t&&The(t[0]-1)>1e-10&&The(t[3]-1)>1e-10?Math.sqrt(The(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){g0t(this,t)},e.getLocalTransform=function(t,r){r=r||[];var n=t.originX||0,i=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,l=t.anchorY,u=t.rotation||0,c=t.x,A=t.y,f=t.skewX?Math.tan(t.skewX):0,h=t.skewY?Math.tan(-t.skewY):0;if(n||i||s||l){var g=n+s,p=i+l;r[4]=-g*a-f*p*o,r[5]=-p*o-h*g*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=h*a,r[2]=f*o,u&&gQ(r,r,u),r[4]+=n+c,r[5]+=i+A,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),wC=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function g0t(e,t){for(var r=0;r=0?parseFloat(e)/100*t:parseFloat(e):e}function IY(e,t,r){var n=t.position||"inside",i=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,l=r.x,u=r.y,c="left",A="top";if(n instanceof Array)l+=l2(n[0],r.width),u+=l2(n[1],r.height),c=null,A=null;else switch(n){case"left":l-=i,u+=s,c="right",A="middle";break;case"right":l+=i+o,u+=s,A="middle";break;case"top":l+=o/2,u-=i,c="center",A="bottom";break;case"bottom":l+=o/2,u+=a+i,c="center";break;case"inside":l+=o/2,u+=s,c="center",A="middle";break;case"insideLeft":l+=i,u+=s,A="middle";break;case"insideRight":l+=o-i,u+=s,c="right",A="middle";break;case"insideTop":l+=o/2,u+=i,c="center";break;case"insideBottom":l+=o/2,u+=a-i,c="center",A="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,A="bottom";break;case"insideBottomRight":l+=o-i,u+=a-i,c="right",A="bottom";break}return e=e||{},e.x=l,e.y=u,e.align=c,e.verticalAlign=A,e}var Dhe="__zr_normal__",Fhe=wC.concat(["ignore"]),Iwr=yC(wC,function(e,t){return e[t]=!0,e},{ignore:!1}),X_={},Ewr=new xs(0,0,0,0),_Z=function(){function e(t){this.id=Gpt(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,n){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,a=r.innerTransformable,o=void 0,s=void 0,l=!1;a.parent=i?this:null;var u=!1;if(a.copyTransform(r),n.position!=null){var c=Ewr;n.layoutRect?c.copy(n.layoutRect):c.copy(this.getBoundingRect()),i||c.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(X_,n,c):IY(X_,n,c),a.x=X_.x,a.y=X_.y,o=X_.align,s=X_.verticalAlign;var A=n.origin;if(A&&n.rotation!=null){var f=void 0,h=void 0;A==="center"?(f=c.width*.5,h=c.height*.5):(f=l2(A[0],c.width),h=l2(A[1],c.height)),u=!0,a.originX=-a.x+f+(i?0:c.x),a.originY=-a.y+h+(i?0:c.y)}}n.rotation!=null&&(a.rotation=n.rotation);var g=n.offset;g&&(a.x+=g[0],a.y+=g[1],u||(a.originX=-g[0],a.originY=-g[1]));var p=n.inside==null?typeof n.position=="string"&&n.position.indexOf("inside")>=0:n.inside,m=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),b=void 0,C=void 0,E=void 0;p&&this.canBeInsideText()?(b=n.insideFill,C=n.insideStroke,(b==null||b==="auto")&&(b=this.getInsideTextFill()),(C==null||C==="auto")&&(C=this.getInsideTextStroke(b),E=!0)):(b=n.outsideFill,C=n.outsideStroke,(b==null||b==="auto")&&(b=this.getOutsideFill()),(C==null||C==="auto")&&(C=this.getOutsideStroke(b),E=!0)),b=b||"#000",(b!==m.fill||C!==m.stroke||E!==m.autoStroke||o!==m.align||s!==m.verticalAlign)&&(l=!0,m.fill=b,m.stroke=C,m.autoStroke=E,m.align=o,m.verticalAlign=s,r.setDefaultTextStyle(m)),r.__dirty|=Wm,l&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Z2e:X2e},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),n=typeof r=="string"&&l1(r);n||(n=[255,255,255,1]);for(var i=n[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(a?0:255)*(1-i);return n[3]=1,PE(n,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},si(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(Mo(t))for(var n=t,i=pl(n),a=0;a0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(Dhe,!1,t)},e.prototype.useState=function(t,r,n,i){var a=t===Dhe,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,l=this.stateTransition;if(!(Rs(s,t)>=0&&(r||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){a5e("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var c=!!(u&&u.hoverLayer||i);c&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,u,this._normalState,r,!n&&!this.__inHover&&l&&l.duration>0,l);var A=this._textContent,f=this._textGuide;return A&&A.useState(t,r,n,c),f&&f.useState(t,r,n,c),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Wm),u}}},e.prototype.useStates=function(t,r,n){if(!t.length)this.clearStates();else{var i=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var l=0;l0,g);var p=this._textContent,m=this._textGuide;p&&p.useStates(t,r,f),m&&m.useStates(t,r,f),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Wm)}},e.prototype.isSilent=function(){for(var t=this.silent,r=this.parent;!t&&r;){if(r.silent){t=!0;break}r=r.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(r,1),this.useStates(n)}},e.prototype.replaceState=function(t,r,n){var i=this.currentStates.slice(),a=Rs(i,t),o=Rs(i,r)>=0;a>=0?o?i.splice(a,1):i[a]=r:n&&!o&&i.push(r),this.useStates(i)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},n,i=0;i=0&&a.splice(o,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var n=this.animators,i=n.length,a=[],o=0;o0&&r.during&&a[0].during(function(g,p){r.during(p)});for(var f=0;f0||i.force&&!o.length){var P=void 0,j=void 0,z=void 0;if(s){j={},f&&(P={});for(var _=0;_=0&&(i.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,n){var i=Rs(this._children,r);return i>=0&&this.replaceAt(n,i),this},t.prototype.replaceAt=function(r,n){var i=this._children,a=i[n];if(r&&r!==this&&r.parent!==this&&r!==a){i[n]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var n=this.__zr;n&&n!==r.__zr&&r.addSelfToZr(n),n&&n.refresh()},t.prototype.remove=function(r){var n=this.__zr,i=this._children,a=Rs(i,r);return a<0?this:(i.splice(a,1),r.parent=null,n&&r.removeSelfFromZr(n),n&&n.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,n=this.__zr,i=0;i0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){if(!this._disposed)return this.handler.findHover(t,r)},e.prototype.on=function(t,r,n){return this._disposed||this.handler.on(t,r,n),this},e.prototype.off=function(t,r){this._disposed||this.handler.off(t,r)},e.prototype.trigger=function(t,r){this._disposed||this.handler.trigger(t,r)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),r=0;r0){if(e<=i)return o;if(e>=a)return s}else{if(e>=i)return o;if(e<=a)return s}else{if(e===i)return o;if(e===a)return s}return(e-i)/l*u+o}function Ba(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%";break}return Oa(e)?Mwr(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function kf(e,t,r){return t==null&&(t=10),t=Math.min(Math.max(0,t),m0t),e=(+e).toFixed(t),r?e:+e}function Cy(e){return e.sort(function(t,r){return t-r}),e}function Ww(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,r=0;r<15;r++,t*=10)if(Math.round(e*t)/t===e)return r}return Owr(e)}function Owr(e){var t=e.toString().toLowerCase(),r=t.indexOf("e"),n=r>0?+t.slice(r+1):0,i=r>0?r:t.length,a=t.indexOf("."),o=a<0?0:i-1-a;return Math.max(0,o-n)}function y0t(e,t){var r=Math.log,n=Math.LN10,i=Math.floor(r(e[1]-e[0])/n),a=Math.round(r(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-i+a,0),20);return isFinite(o)?o:20}function Nwr(e,t){var r=yC(e,function(h,g){return h+(isNaN(g)?0:g)},0);if(r===0)return[];for(var n=Math.pow(10,t),i=Ti(e,function(h){return(isNaN(h)?0:h)/r*n*100}),a=n*100,o=Ti(i,function(h){return Math.floor(h)}),s=yC(o,function(h,g){return h+g},0),l=Ti(i,function(h,g){return h-o[g]});su&&(u=l[A],c=A);++o[c],l[c]=0,++s}return Ti(o,function(h){return h/n})}function Lwr(e,t){var r=Math.max(Ww(e),Ww(t)),n=e+t;return r>m0t?n:kf(n,r)}var Uje=9007199254740991;function b0t(e){var t=Math.PI*2;return(e%t+t)%t}function IN(e){return e>-Pje&&e=10&&t++,t}function w0t(e,t){var r=g5e(e),n=Math.pow(10,r),i=e/n,a;return i<1.5?a=1:i<2.5?a=2:i<4?a=3:i<7?a=5:a=10,e=a*n,r>=-20?+e.toFixed(r<0?-r:0):e}function Ohe(e,t){var r=(e.length-1)*t+1,n=Math.floor(r),i=+e[n-1],a=r-n;return a?i+a*(e[n]-i):i}function Hje(e){e.sort(function(l,u){return s(l,u,0)?-1:1});for(var t=-1/0,r=1,n=0;n=0||a&&Rs(a,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[e[s][0]]=u)}}return o}}var cCr=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],ACr=O6(cCr),fCr=function(){function e(){}return e.prototype.getAreaStyle=function(t,r){return ACr(this,t,r)},e}(),rwe=new rP(50);function hCr(e){if(typeof e=="string"){var t=rwe.get(e);return t&&t.image}else return e}function y5e(e,t,r,n,i){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=rwe.get(e),o={hostEl:r,cb:n,cbPayload:i};return a?(t=a.image,!DZ(t)&&a.pending.push(o)):(t=I5.loadImage(e,zje,zje),t.__zrImageSrc=e,rwe.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function zje(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=o;l++)s-=o;var u=u1(r,t);return u>s&&(r="",u=0),s=e-u,i.ellipsis=r,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=e,i}function F0t(e,t,r){var n=r.containerWidth,i=r.font,a=r.contentWidth;if(!n){e.textLine="",e.isTruncated=!1;return}var o=u1(t,i);if(o<=n){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=r.maxIterations){t+=r.ellipsis;break}var l=s===0?gCr(t,a,r.ascCharWidth,r.cnCharWidth):o>0?Math.floor(t.length*a/o):0;t=t.substr(0,l),o=u1(t,i)}t===""&&(t=r.placeholder),e.textLine=t,e.isTruncated=!0}function gCr(e,t,r,n){for(var i=0,a=0,o=e.length;ag&&u){var p=Math.floor(g/s);c=c||f.length>p,f=f.slice(0,p)}if(e&&a&&A!=null)for(var m=D0t(A,i,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),b={},C=0;Cs&&Lhe(r,e.substring(s,u),t,o),Lhe(r,l[2],t,o,l[1]),s=Nhe.lastIndex}si){var ee=r.lines.length;M>0?(E.tokens=E.tokens.slice(0,M),b(E,F,_),r.lines=r.lines.slice(0,C+1)):r.lines=r.lines.slice(0,C),r.isTruncated=r.isTruncated||r.lines.length0&&g+n.accumWidth>n.width&&(c=t.split(` `),u=!0),n.accumWidth=g}else{var p=R0t(t,l,n.width,n.breakAll,n.accumWidth);n.accumWidth=p.accumWidth+h,A=p.linesWidths,c=p.lines}}else c=t.split(` `);for(var m=0;m=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var wCr=yC(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function CCr(e){return bCr(e)?!!wCr[e]:!0}function R0t(e,t,r,n,i){for(var a=[],o=[],s="",l="",u=0,c=0,A=0;Ar:i+c+h>r){c?(s||l)&&(g?(s||(s=l,l="",u=0,c=u),a.push(s),o.push(c-u),l+=f,u+=h,s="",c=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(c),s=f,c=h)):g?(a.push(l),o.push(u),l=f,u=h):(a.push(f),o.push(h));continue}c+=h,g?(l+=f,u+=h):(l&&(s+=l,l="",u=0),s+=f)}return!a.length&&!s&&(s=e,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 nwe="__zr_style_"+Math.round(Math.random()*10),e6={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},FZ={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};e6[nwe]=!0;var Vje=["z","z2","invisible"],ICr=["invisible"],Ry=function(e){Vc(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var n=pl(r),i=0;i1e-4){s[0]=e-r,s[1]=t-n,l[0]=e+r,l[1]=t+n;return}if(w$[0]=jhe(i)*r+e,w$[1]=Hhe(i)*n+t,C$[0]=jhe(a)*r+e,C$[1]=Hhe(a)*n+t,u(s,w$,C$),c(l,w$,C$),i=i%x4,i<0&&(i=i+x4),a=a%x4,a<0&&(a=a+x4),i>a&&!o?a+=x4:ii&&(I$[0]=jhe(h)*r+e,I$[1]=Hhe(h)*n+t,u(s,I$,s),c(l,I$,l))}var mc={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},S4=[],k4=[],mw=[],Px=[],yw=[],bw=[],Ghe=Math.min,$he=Math.max,Q4=Math.cos,_4=Math.sin,JI=Math.abs,iwe=Math.PI,Zx=iwe*2,zhe=typeof Float32Array<"u",tR=[];function Khe(e){var t=Math.round(e/iwe*1e8)/1e8;return t%2*iwe}function b5e(e,t){var r=Khe(e[0]);r<0&&(r+=Zx);var n=r-e[0],i=e[1];i+=n,!t&&i-r>=Zx?i=r+Zx:t&&r-i>=Zx?i=r-Zx:!t&&r>i?i=r+(Zx-Khe(r-i)):t&&r0&&(this._ux=JI(n/CY/t)||0,this._uy=JI(n/CY/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(mc.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var n=JI(t-this._xi),i=JI(r-this._yi),a=n>this._ux||i>this._uy;if(this.addData(mc.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){return this._drawPendingPt(),this.addData(mc.C,t,r,n,i,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,n,i,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,n,i){return this._drawPendingPt(),this.addData(mc.Q,t,r,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,r,n,i),this._xi=n,this._yi=i,this},e.prototype.arc=function(t,r,n,i,a,o){this._drawPendingPt(),tR[0]=i,tR[1]=a,b5e(tR,o),i=tR[0],a=tR[1];var s=a-i;return this.addData(mc.A,t,r,n,n,i,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,n,i,a,o),this._xi=Q4(a)*n+t,this._yi=_4(a)*n+r,this},e.prototype.arcTo=function(t,r,n,i,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,n,i,a),this},e.prototype.rect=function(t,r,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,n,i),this.addData(mc.R,t,r,n,i),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(mc.Z);var t=this._ctx,r=this._x0,n=this._y0;return t&&t.closePath(),this._xi=r,this._yi=n,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&zhe&&(this.data=new Float32Array(r));for(var n=0;nc.length&&(this._expandData(),c=this.data);for(var A=0;A0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){mw[0]=mw[1]=yw[0]=yw[1]=Number.MAX_VALUE,Px[0]=Px[1]=bw[0]=bw[1]=-Number.MAX_VALUE;var t=this.data,r=0,n=0,i=0,a=0,o;for(o=0;on||JI(E)>i||f===r-1)&&(p=Math.sqrt(C*C+E*E),a=m,o=b);break}case mc.C:{var _=t[f++],F=t[f++],m=t[f++],b=t[f++],M=t[f++],N=t[f++];p=V2r(a,o,_,F,m,b,M,N,10),a=M,o=N;break}case mc.Q:{var _=t[f++],F=t[f++],m=t[f++],b=t[f++];p=Y2r(a,o,_,F,m,b,10),a=m,o=b;break}case mc.A:var P=t[f++],j=t[f++],z=t[f++],W=t[f++],Y=t[f++],ee=t[f++],q=ee+Y;f+=1,g&&(s=Q4(Y)*z+P,l=_4(Y)*W+j),p=$he(z,W)*Ghe(Zx,Math.abs(ee)),a=Q4(q)*z+P,o=_4(q)*W+j;break;case mc.R:{s=a=t[f++],l=o=t[f++];var ae=t[f++],se=t[f++];p=ae*2+se*2;break}case mc.Z:{var C=s-a,E=l-o;p=Math.sqrt(C*C+E*E),a=s,o=l;break}}p>=0&&(u[A++]=p,c+=p)}return this._pathLen=c,c},e.prototype.rebuildPath=function(t,r){var n=this.data,i=this._ux,a=this._uy,o=this._len,s,l,u,c,A,f,h=r<1,g,p,m=0,b=0,C,E=0,_,F;if(!(h&&(this._pathSegLen||this._calculateLength(),g=this._pathSegLen,p=this._pathLen,C=r*p,!C)))e:for(var M=0;M0&&(t.lineTo(_,F),E=0),N){case mc.M:s=u=n[M++],l=c=n[M++],t.moveTo(u,c);break;case mc.L:{A=n[M++],f=n[M++];var j=JI(A-u),z=JI(f-c);if(j>i||z>a){if(h){var W=g[b++];if(m+W>C){var Y=(C-m)/W;t.lineTo(u*(1-Y)+A*Y,c*(1-Y)+f*Y);break e}m+=W}t.lineTo(A,f),u=A,c=f,E=0}else{var ee=j*j+z*z;ee>E&&(_=A,F=f,E=ee)}break}case mc.C:{var q=n[M++],ae=n[M++],se=n[M++],de=n[M++],Ae=n[M++],be=n[M++];if(h){var W=g[b++];if(m+W>C){var Y=(C-m)/W;E5(u,q,se,Ae,Y,S4),E5(c,ae,de,be,Y,k4),t.bezierCurveTo(S4[1],k4[1],S4[2],k4[2],S4[3],k4[3]);break e}m+=W}t.bezierCurveTo(q,ae,se,de,Ae,be),u=Ae,c=be;break}case mc.Q:{var q=n[M++],ae=n[M++],se=n[M++],de=n[M++];if(h){var W=g[b++];if(m+W>C){var Y=(C-m)/W;bN(u,q,se,Y,S4),bN(c,ae,de,Y,k4),t.quadraticCurveTo(S4[1],k4[1],S4[2],k4[2]);break e}m+=W}t.quadraticCurveTo(q,ae,se,de),u=se,c=de;break}case mc.A:var Le=n[M++],Ne=n[M++],ue=n[M++],Ke=n[M++],Pe=n[M++],je=n[M++],Ye=n[M++],me=!n[M++],Se=ue>Ke?ue:Ke,et=JI(ue-Ke)>.001,nt=Pe+je,tt=!1;if(h){var W=g[b++];m+W>C&&(nt=Pe+je*(C-m)/W,tt=!0),m+=W}if(et&&t.ellipse?t.ellipse(Le,Ne,ue,Ke,Ye,Pe,nt,me):t.arc(Le,Ne,Se,Pe,nt,me),tt)break e;P&&(s=Q4(Pe)*ue+Le,l=_4(Pe)*Ke+Ne),u=Q4(nt)*ue+Le,c=_4(nt)*Ke+Ne;break;case mc.R:s=u=n[M],l=c=n[M+1],A=n[M++],f=n[M++];var ft=n[M++],st=n[M++];if(h){var W=g[b++];if(m+W>C){var Re=C-m;t.moveTo(A,f),t.lineTo(A+Ghe(Re,ft),f),Re-=ft,Re>0&&t.lineTo(A+ft,f+Ghe(Re,st)),Re-=st,Re>0&&t.lineTo(A+$he(ft-Re,0),f+st),Re-=ft,Re>0&&t.lineTo(A,f+$he(st-Re,0));break e}m+=W}t.rect(A,f,ft,st);break;case mc.Z:if(h){var W=g[b++];if(m+W>C){var Y=(C-m)/W;t.lineTo(u*(1-Y)+s*Y,c*(1-Y)+l*Y);break e}m+=W}t.closePath(),u=s,c=l}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=mc,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function A3(e,t,r,n,i,a,o){if(i===0)return!1;var s=i,l=0,u=e;if(o>t+s&&o>n+s||oe+s&&a>r+s||at+A&&c>n+A&&c>a+A&&c>s+A||ce+A&&u>r+A&&u>i+A&&u>o+A||ut+u&&l>n+u&&l>a+u||le+u&&s>r+u&&s>i+u||sr||c+ui&&(i+=rR);var f=Math.atan2(l,s);return f<0&&(f+=rR),f>=n&&f<=i||f+rR>=n&&f+rR<=i}function hE(e,t,r,n,i,a){if(a>t&&a>n||ai?s:0}var Ux=IC.CMD,T4=Math.PI*2,_Cr=1e-4;function TCr(e,t){return Math.abs(e-t)<_Cr}var M0=[-1,-1,-1],hy=[-1,-1];function DCr(){var e=hy[0];hy[0]=hy[1],hy[1]=e}function FCr(e,t,r,n,i,a,o,s,l,u){if(u>t&&u>n&&u>a&&u>s||u1&&DCr(),h=Fd(t,n,a,s,hy[0]),f>1&&(g=Fd(t,n,a,s,hy[1]))),f===2?mt&&s>n&&s>a||s=0&&u<=1){for(var c=0,A=mg(t,n,a,u),f=0;fr||s<-r)return 0;var l=Math.sqrt(r*r-s*s);M0[0]=-l,M0[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=T4-1e-4){n=0,i=T4;var c=a?1:-1;return o>=M0[0]+e&&o<=M0[1]+e?c:0}if(n>i){var A=n;n=i,i=A}n<0&&(n+=T4,i+=T4);for(var f=0,h=0;h<2;h++){var g=M0[h];if(g+e>o){var p=Math.atan2(s,g),c=a?1:-1;p<0&&(p=T4+p),(p>=n&&p<=i||p+T4>=n&&p+T4<=i)&&(p>Math.PI/2&&p1&&(r||(s+=hE(l,u,c,A,n,i))),m&&(l=a[g],u=a[g+1],c=l,A=u),p){case Ux.M:c=a[g++],A=a[g++],l=c,u=A;break;case Ux.L:if(r){if(A3(l,u,a[g],a[g+1],t,n,i))return!0}else s+=hE(l,u,a[g],a[g+1],n,i)||0;l=a[g++],u=a[g++];break;case Ux.C:if(r){if(kCr(l,u,a[g++],a[g++],a[g++],a[g++],a[g],a[g+1],t,n,i))return!0}else s+=FCr(l,u,a[g++],a[g++],a[g++],a[g++],a[g],a[g+1],n,i)||0;l=a[g++],u=a[g++];break;case Ux.Q:if(r){if(M0t(l,u,a[g++],a[g++],a[g],a[g+1],t,n,i))return!0}else s+=RCr(l,u,a[g++],a[g++],a[g],a[g+1],n,i)||0;l=a[g++],u=a[g++];break;case Ux.A:var b=a[g++],C=a[g++],E=a[g++],_=a[g++],F=a[g++],M=a[g++];g+=1;var N=!!(1-a[g++]);f=Math.cos(F)*E+b,h=Math.sin(F)*_+C,m?(c=f,A=h):s+=hE(l,u,f,h,n,i);var P=(n-b)*_/E+b;if(r){if(QCr(b,C,_,F,F+M,N,t,P,i))return!0}else s+=MCr(b,C,_,F,F+M,N,P,i);l=Math.cos(F+M)*E+b,u=Math.sin(F+M)*_+C;break;case Ux.R:c=l=a[g++],A=u=a[g++];var j=a[g++],z=a[g++];if(f=c+j,h=A+z,r){if(A3(c,A,f,A,t,n,i)||A3(f,A,f,h,t,n,i)||A3(f,h,c,h,t,n,i)||A3(c,h,c,A,t,n,i))return!0}else s+=hE(f,A,f,h,n,i),s+=hE(c,h,c,A,n,i);break;case Ux.Z:if(r){if(A3(l,u,c,A,t,n,i))return!0}else s+=hE(l,u,c,A,n,i);l=c,u=A;break}}return!r&&!TCr(u,A)&&(s+=hE(l,u,c,A,n,i)||0),s!==0}function OCr(e,t,r){return O0t(e,0,!1,t,r)}function NCr(e,t,r,n){return O0t(e,t,!0,r,n)}var EY=Qo({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},e6),LCr={style:Qo({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},FZ.style)},Vhe=wC.concat(["invisible","culling","z","z2","zlevel","parent"]),tl=function(e){Vc(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(l){r.buildPath(l,r.shape)}),i.silent=!0;var a=i.style;for(var o in n)a[o]!==n[o]&&(a[o]=n[o]);a.fill=n.fill?n.decal:null,a.decal=null,a.shadowColor=null,n.strokeFirst&&(a.stroke=null);for(var s=0;s.5?X2e:n>.2?Cwr:Z2e}else if(r)return Z2e}return X2e},t.prototype.getInsideTextStroke=function(r){var n=this.style.fill;if(Oa(n)){var i=this.__zr,a=!!(i&&i.isDarkMode()),o=bY(r,0)0))},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,n=this.style,i=!r;if(i){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&P8)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||i){s.copy(r);var l=n.strokeNoScale?this.getLineScale():1,u=n.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 r},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect(),o=this.style;if(r=i[0],n=i[1],a.contain(r,n)){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)),NCr(s,l/u,r,n)))return!0}if(this.hasFill())return OCr(s,r,n)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=P8,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,n){r==="shape"?this.setShape(n):e.prototype.attrKV.call(this,r,n)},t.prototype.setShape=function(r,n){var i=this.shape;return i||(i=this.shape={}),typeof r=="string"?i[r]=n:si(i,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&P8)},t.prototype.createStyle=function(r){return xZ(EY,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var n=this._normalState;r.shape&&!n.shape&&(n.shape=si({},this.shape))},t.prototype._applyStateObj=function(r,n,i,a,o,s){e.prototype._applyStateObj.call(this,r,n,i,a,o,s);var l=!(n&&a),u;if(n&&n.shape?o?a?u=n.shape:(u=si({},i.shape),si(u,n.shape)):(u=si({},a?this.shape:i.shape),si(u,n.shape)):l&&(u=i.shape),u)if(o){this.shape=si({},this.shape);for(var c={},A=pl(u),f=0;f0},t.prototype.hasFill=function(){var r=this.style,n=r.fill;return n!=null&&n!=="none"},t.prototype.createStyle=function(r){return xZ(PCr,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var n=r.text;n!=null?n+="":n="";var i=nP(n,r.font,r.textAlign,r.textBaseline);if(i.x+=r.x||0,i.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;i.x-=a/2,i.y-=a/2,i.width+=a,i.height+=a}this._rect=i}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(Ry);c7.prototype.type="tspan";var UCr=Qo({x:0,y:0},e6),HCr={style:Qo({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},FZ.style)};function jCr(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var Bg=function(e){Vc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return xZ(UCr,r)},t.prototype._getSize=function(r){var n=this.style,i=n[r];if(i!=null)return i;var a=jCr(n.image)?n.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=n[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return HCr},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new xs(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(Ry);Bg.prototype.type="image";function GCr(e,t){var r=t.x,n=t.y,i=t.width,a=t.height,o=t.r,s,l,u,c;i<0&&(r=r+i,i=-i),a<0&&(n=n+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 A;s+l>i&&(A=s+l,s*=i/A,l*=i/A),u+c>i&&(A=u+c,u*=i/A,c*=i/A),l+u>a&&(A=l+u,l*=a/A,u*=a/A),s+c>a&&(A=s+c,s*=a/A,c*=a/A),e.moveTo(r+s,n),e.lineTo(r+i-l,n),l!==0&&e.arc(r+i-l,n+l,l,-Math.PI/2,0),e.lineTo(r+i,n+a-u),u!==0&&e.arc(r+i-u,n+a-u,u,0,Math.PI/2),e.lineTo(r+c,n+a),c!==0&&e.arc(r+c,n+a-c,c,Math.PI/2,Math.PI),e.lineTo(r,n+s),s!==0&&e.arc(r+s,n+s,s,Math.PI,Math.PI*1.5)}var r9=Math.round;function N0t(e,t,r){if(t){var n=t.x1,i=t.x2,a=t.y1,o=t.y2;e.x1=n,e.x2=i,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(r9(n*2)===r9(i*2)&&(e.x1=e.x2=xk(n,s,!0)),r9(a*2)===r9(o*2)&&(e.y1=e.y2=xk(a,s,!0))),e}}function L0t(e,t,r){if(t){var n=t.x,i=t.y,a=t.width,o=t.height;e.x=n,e.y=i,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=xk(n,s,!0),e.y=xk(i,s,!0),e.width=Math.max(xk(n+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(xk(i+o,s,!1)-e.y,o===0?0:1)),e}}function xk(e,t,r){if(!t)return e;var n=r9(e*2);return(n+r9(t))%2===0?n/2:(n+(r?1:-1))/2}var $Cr=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),zCr={},Ol=function(e){Vc(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new $Cr},t.prototype.buildPath=function(r,n){var i,a,o,s;if(this.subPixelOptimize){var l=L0t(zCr,n,this.style);i=l.x,a=l.y,o=l.width,s=l.height,l.r=n.r,n=l}else i=n.x,a=n.y,o=n.width,s=n.height;n.r?GCr(r,n):r.rect(i,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(tl);Ol.prototype.type="rect";var Xje={fill:"#000"},Zje=2,KCr={style:Qo({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},FZ.style)},zl=function(e){Vc(t,e);function t(r){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Xje,n.attr(r),n}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r0,Y=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),ee=o.calculatedLineHeight,q=0;q=0&&(q=M[ee],q.align==="right");)this._placeToken(q,r,P,b,Y,"right",E),j-=q.width,Y-=q.width,ee--;for(W+=(a-(W-m)-(C-Y)-j)/2;z<=ee;)q=M[z],this._placeToken(q,r,P,b,W+q.width/2,"center",E),W+=q.width,z++;b+=P}},t.prototype._placeToken=function(r,n,i,a,o,s,l){var u=n.rich[r.styleName]||{};u.text=r.text;var c=r.verticalAlign,A=a+i/2;c==="top"?A=a+r.height/2:c==="bottom"&&(A=a+i-r.height/2);var f=!r.isLineHolder&&Whe(u);f&&this._renderBackground(u,n,s==="right"?o-r.width:s==="center"?o-r.width/2:o,A-r.height/2,r.width,r.height);var h=!!u.backgroundColor,g=r.textPadding;g&&(o=aGe(o,s,g),A-=r.height/2-g[0]-r.innerHeight/2);var p=this._getOrCreateChild(c7),m=p.createStyle();p.useStyle(m);var b=this._defaultStyle,C=!1,E=0,_=iGe("fill"in u?u.fill:"fill"in n?n.fill:(C=!0,b.fill)),F=nGe("stroke"in u?u.stroke:"stroke"in n?n.stroke:!h&&!l&&(!b.autoStroke||C)?(E=Zje,b.stroke):null),M=u.textShadowBlur>0||n.textShadowBlur>0;m.text=r.text,m.x=o,m.y=A,M&&(m.shadowBlur=u.textShadowBlur||n.textShadowBlur||0,m.shadowColor=u.textShadowColor||n.textShadowColor||"transparent",m.shadowOffsetX=u.textShadowOffsetX||n.textShadowOffsetX||0,m.shadowOffsetY=u.textShadowOffsetY||n.textShadowOffsetY||0),m.textAlign=s,m.textBaseline="middle",m.font=r.font||C5,m.opacity=aC(u.opacity,n.opacity,1),tGe(m,u),F&&(m.lineWidth=aC(u.lineWidth,n.lineWidth,E),m.lineDash=ts(u.lineDash,n.lineDash),m.lineDashOffset=n.lineDashOffset||0,m.stroke=F),_&&(m.fill=_);var N=r.contentWidth,P=r.contentHeight;p.setBoundingRect(new xs(oM(m.x,N,m.textAlign),U8(m.y,P,m.textBaseline),N,P))},t.prototype._renderBackground=function(r,n,i,a,o,s){var l=r.backgroundColor,u=r.borderWidth,c=r.borderColor,A=l&&l.image,f=l&&!A,h=r.borderRadius,g=this,p,m;if(f||r.lineHeight||u&&c){p=this._getOrCreateChild(Ol),p.useStyle(p.createStyle()),p.style.fill=null;var b=p.shape;b.x=i,b.y=a,b.width=o,b.height=s,b.r=h,p.dirtyShape()}if(f){var C=p.style;C.fill=l||null,C.fillOpacity=ts(r.fillOpacity,1)}else if(A){m=this._getOrCreateChild(Bg),m.onload=function(){g.dirtyStyle()};var E=m.style;E.image=l.image,E.x=i,E.y=a,E.width=o,E.height=s}if(u&&c){var C=p.style;C.lineWidth=u,C.stroke=c,C.strokeOpacity=ts(r.strokeOpacity,1),C.lineDash=r.borderDash,C.lineDashOffset=r.borderDashOffset||0,p.strokeContainThreshold=0,p.hasFill()&&p.hasStroke()&&(C.strokeFirst=!0,C.lineWidth*=2)}var _=(p||m).style;_.shadowBlur=r.shadowBlur||0,_.shadowColor=r.shadowColor||"transparent",_.shadowOffsetX=r.shadowOffsetX||0,_.shadowOffsetY=r.shadowOffsetY||0,_.opacity=aC(r.opacity,n.opacity,1)},t.makeFont=function(r){var n="";return U0t(r)&&(n=[r.fontStyle,r.fontWeight,P0t(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),n&&Kb(n)||r.textFont||r.font},t}(Ry),VCr={left:!0,right:1,center:1},WCr={top:1,bottom:1,middle:1},eGe=["fontStyle","fontWeight","fontSize","fontFamily"];function P0t(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?r5e+"px":e+"px"}function tGe(e,t){for(var r=0;r=0,a=!1;if(e instanceof tl){var o=H0t(e),s=i&&o.selectFill||o.normalFill,l=i&&o.selectStroke||o.normalStroke;if(Z_(s)||Z_(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(a=!0,n=si({},n),u=si({},u),u.fill=s):!Z_(u.fill)&&Z_(s)?(a=!0,n=si({},n),u=si({},u),u.fill=$2e(s)):!Z_(u.stroke)&&Z_(l)&&(a||(n=si({},n),u=si({},u)),u.stroke=$2e(l)),n.style=u}}if(n&&n.z2==null){a||(n=si({},n));var c=e.z2EmphasisLift;n.z2=e.z2+(c??fT)}return n}function tIr(e,t,r){if(r&&r.z2==null){r=si({},r);var n=e.z2SelectLift;r.z2=e.z2+(n??qCr)}return r}function rIr(e,t,r){var n=Rs(e.currentStates,t)>=0,i=e.style.opacity,a=n?null:ZCr(e,["opacity"],t,{opacity:1});r=r||{};var o=r.style||{};return o.opacity==null&&(r=si({},r),o=si({opacity:n?i:a.opacity*.1},o),r.style=o),r}function Yhe(e,t){var r=this.states[e];if(this.style){if(e==="emphasis")return eIr(this,e,t,r);if(e==="blur")return rIr(this,e,r);if(e==="select")return tIr(this,e,r)}return r}function N6(e){e.stateProxy=Yhe;var t=e.getTextContent(),r=e.getTextGuideLine();t&&(t.stateProxy=Yhe),r&&(r.stateProxy=Yhe)}function cGe(e,t){!W0t(e,t)&&!e.__highByOuter&&xB(e,j0t)}function AGe(e,t){!W0t(e,t)&&!e.__highByOuter&&xB(e,G0t)}function oB(e,t){e.__highByOuter|=1<<(t||0),xB(e,j0t)}function sB(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&xB(e,G0t)}function z0t(e){xB(e,I5e)}function E5e(e){xB(e,$0t)}function K0t(e){xB(e,JCr)}function V0t(e){xB(e,XCr)}function W0t(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Y0t(e){var t=e.getModel(),r=[],n=[];t.eachComponent(function(i,a){var o=w5e(a),s=i==="series",l=s?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){$0t(u)}),s&&r.push(a)),o.isBlured=!1}),Mt(n,function(i){i&&i.toggleBlurSeries&&i.toggleBlurSeries(r,!1,t)})}function owe(e,t,r,n){var i=n.getModel();r=r||"coordinateSystem";function a(u,c){for(var A=0;A0){var s={dataIndex:o,seriesIndex:r.seriesIndex};a!=null&&(s.dataType=a),t.push(s)}})}),t}function r6(e,t,r){Sk(e,!0),xB(e,N6),lwe(e,t,r)}function lIr(e){Sk(e,!1)}function jA(e,t,r,n){n?lIr(e):r6(e,t,r)}function lwe(e,t,r){var n=Vo(e);t!=null?(n.focus=t,n.blurScope=r):n.focus&&(n.focus=null)}var hGe=["emphasis","blur","select"],uIr={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function lp(e,t,r,n){r=r||"itemStyle";for(var i=0;i1&&(o*=qhe(g),s*=qhe(g));var p=(i===a?-1:1)*qhe((o*o*(s*s)-o*o*(h*h)-s*s*(f*f))/(o*o*(h*h)+s*s*(f*f)))||0,m=p*o*h/s,b=p*-s*f/o,C=(e+r)/2+B$(A)*m-E$(A)*b,E=(t+n)/2+E$(A)*m+B$(A)*b,_=vGe([1,0],[(f-m)/o,(h-b)/s]),F=[(f-m)/o,(h-b)/s],M=[(-1*f-m)/o,(-1*h-b)/s],N=vGe(F,M);if(cwe(F,M)<=-1&&(N=nR),cwe(F,M)>=1&&(N=0),N<0){var P=Math.round(N/nR*1e6)/1e6;N=nR*2+P%2*nR}c.addData(u,C,E,o,s,_,N,A,a)}var gIr=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,pIr=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function vIr(e){var t=new IC;if(!e)return t;var r=0,n=0,i=r,a=n,o,s=IC.CMD,l=e.match(gIr);if(!l)return t;for(var u=0;uq*q+ae*ae&&(P=z,j=W),{cx:P,cy:j,x0:-c,y0:-A,x1:P*(i/F-1),y1:j*(i/F-1)}}function EIr(e){var t;if(Bi(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function BIr(e,t){var r,n=sM(t.r,0),i=sM(t.r0||0,0),a=n>0,o=i>0;if(!(!a&&!o)){if(a||(n=i,i=0),i>n){var s=n;n=i,i=s}var l=t.startAngle,u=t.endAngle;if(!(isNaN(l)||isNaN(u))){var c=t.cx,A=t.cy,f=!!t.clockwise,h=yGe(u-l),g=h>Jhe&&h%Jhe;if(g>Qb&&(h=g),!(n>Qb))e.moveTo(c,A);else if(h>Jhe-Qb)e.moveTo(c+n*t8(l),A+n*D4(l)),e.arc(c,A,n,l,u,!f),i>Qb&&(e.moveTo(c+i*t8(u),A+i*D4(u)),e.arc(c,A,i,u,l,f));else{var p=void 0,m=void 0,b=void 0,C=void 0,E=void 0,_=void 0,F=void 0,M=void 0,N=void 0,P=void 0,j=void 0,z=void 0,W=void 0,Y=void 0,ee=void 0,q=void 0,ae=n*t8(l),se=n*D4(l),de=i*t8(u),Ae=i*D4(u),be=h>Qb;if(be){var Le=t.cornerRadius;Le&&(r=EIr(Le),p=r[0],m=r[1],b=r[2],C=r[3]);var Ne=yGe(n-i)/2;if(E=ww(Ne,b),_=ww(Ne,C),F=ww(Ne,p),M=ww(Ne,m),j=N=sM(E,_),z=P=sM(F,M),(N>Qb||P>Qb)&&(W=n*t8(u),Y=n*D4(u),ee=i*t8(l),q=i*D4(l),hQb){var et=ww(b,j),nt=ww(C,j),tt=x$(ee,q,ae,se,n,et,f),ft=x$(W,Y,de,Ae,n,nt,f);e.moveTo(c+tt.cx+tt.x0,A+tt.cy+tt.y0),j0&&e.arc(c+tt.cx,A+tt.cy,et,Mp(tt.y0,tt.x0),Mp(tt.y1,tt.x1),!f),e.arc(c,A,n,Mp(tt.cy+tt.y1,tt.cx+tt.x1),Mp(ft.cy+ft.y1,ft.cx+ft.x1),!f),nt>0&&e.arc(c+ft.cx,A+ft.cy,nt,Mp(ft.y1,ft.x1),Mp(ft.y0,ft.x0),!f))}else e.moveTo(c+ae,A+se),e.arc(c,A,n,l,u,!f);if(!(i>Qb)||!be)e.lineTo(c+de,A+Ae);else if(z>Qb){var et=ww(p,z),nt=ww(m,z),tt=x$(de,Ae,W,Y,i,-nt,f),ft=x$(ae,se,ee,q,i,-et,f);e.lineTo(c+tt.cx+tt.x0,A+tt.cy+tt.y0),z0&&e.arc(c+tt.cx,A+tt.cy,nt,Mp(tt.y0,tt.x0),Mp(tt.y1,tt.x1),!f),e.arc(c,A,i,Mp(tt.cy+tt.y1,tt.cx+tt.x1),Mp(ft.cy+ft.y1,ft.cx+ft.x1),f),et>0&&e.arc(c+ft.cx,A+ft.cy,et,Mp(ft.y1,ft.x1),Mp(ft.y0,ft.x0),!f))}else e.lineTo(c+de,A+Ae),e.arc(c,A,i,u,l,f)}e.closePath()}}}var xIr=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),Z0=function(e){Vc(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new xIr},t.prototype.buildPath=function(r,n){BIr(r,n)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(tl);Z0.prototype.type="sector";var SIr=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),oP=function(e){Vc(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new SIr},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.PI*2;r.moveTo(i+n.r,a),r.arc(i,a,n.r,0,o,!1),r.moveTo(i+n.r0,a),r.arc(i,a,n.r0,0,o,!0)},t}(tl);oP.prototype.type="ring";function kIr(e,t,r,n){var i=[],a=[],o=[],s=[],l,u,c,A;if(n){c=[1/0,1/0],A=[-1/0,-1/0];for(var f=0,h=e.length;f=2){if(n){var a=kIr(i,n,r,t.smoothConstraint);e.moveTo(i[0][0],i[0][1]);for(var o=i.length,s=0;s<(r?o:o-1);s++){var l=a[s*2],u=a[s*2+1],c=i[(s+1)%o];e.bezierCurveTo(l[0],l[1],u[0],u[1],c[0],c[1])}}else{e.moveTo(i[0][0],i[0][1]);for(var s=1,A=i.length;sR4[1]){if(s=!1,a)return s;var c=Math.abs(R4[0]-F4[1]),A=Math.abs(F4[0]-R4[1]);Math.min(c,A)>i.len()&&(c0){var A=c.duration,f=c.delay,h=c.easing,g={duration:A,delay:f||0,easing:h,done:a,force:!!a||!!o,setToFinal:!u,scope:e,during:o};s?t.animateFrom(r,g):t.animateTo(r,g)}else t.stopAnimation(),!s&&t.attr(r),o&&o(1),a&&a()}function su(e,t,r,n,i,a){k5e("update",e,t,r,n,i,a)}function oA(e,t,r,n,i,a){k5e("enter",e,t,r,n,i,a)}function E9(e){if(!e.__zr)return!0;for(var t=0;tMath.abs(a[1])?a[0]>0?"right":"left":a[1]>0?"bottom":"top"}function CGe(e){return!e.isGroup}function jIr(e){return e.shape!=null}function uP(e,t,r){if(!e||!t)return;function n(o){var s={};return o.traverse(function(l){CGe(l)&&l.anid&&(s[l.anid]=l)}),s}function i(o){var s={x:o.x,y:o.y,rotation:o.rotation};return jIr(o)&&(s.shape=si({},o.shape)),s}var a=n(e);t.traverse(function(o){if(CGe(o)&&o.anid){var s=a[o.anid];if(s){var l=i(o);o.attr(i(s)),su(o,l,r,Vo(o).dataIndex)}}})}function uvt(e,t){return Ti(e,function(r){var n=r[0];n=SY(n,t.x),n=kY(n,t.x+t.width);var i=r[1];return i=SY(i,t.y),i=kY(i,t.y+t.height),[n,i]})}function GIr(e,t){var r=SY(e.x,t.x),n=kY(e.x+e.width,t.x+t.width),i=SY(e.y,t.y),a=kY(e.y+e.height,t.y+t.height);if(n>=r&&a>=i)return{x:r,y:i,width:n-r,height:a-i}}function cP(e,t,r){var n=si({rectHover:!0},t),i=n.style={strokeNoScale:!0};if(r=r||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(i.image=e.slice(8),Qo(i,r),new Bg(n)):PZ(e.replace("path://",""),n,r,"center")}function lM(e,t,r,n,i){for(var a=0,o=i[i.length-1];a1)return!1;var m=Xhe(h,g,c,A)/f;return!(m<0||m>1)}function Xhe(e,t,r,n){return e*n-r*t}function $Ir(e){return e<=1e-6&&e>=-1e-6}function pQ(e){var t=e.itemTooltipOption,r=e.componentModel,n=e.itemName,i=Oa(t)?{formatter:t}:t,a=r.mainType,o=r.componentIndex,s={componentType:a,name:n,$vars:["name"]};s[a+"Index"]=o;var l=e.formatterParamsExtra;l&&Mt(pl(l),function(c){Xa(s,c)||(s[c]=l[c],s.$vars.push(c))});var u=Vo(e.el);u.componentMainType=a,u.componentIndex=o,u.tooltipConfig={name:n,option:Qo({content:n,encodeHTMLContent:!0,formatterParams:s},i)}}function IGe(e,t){var r;e.isGroup&&(r=t(e)),r||e.traverse(t)}function Z5(e,t){if(e)if(Bi(e))for(var r=0;r=0&&s.push(l)}),s}}function eS(e,t){return ys(ys({},e,!0),t,!0)}const rEr={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:". "}}}},nEr={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 _Y="ZH",T5e="EN",B9=T5e,oV={},D5e={},pvt=nl.domSupported?function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||B9).toUpperCase();return e.indexOf(_Y)>-1?_Y:B9}():B9;function vvt(e,t){e=e.toUpperCase(),D5e[e]=new Du(t),oV[e]=t}function iEr(e){if(Oa(e)){var t=oV[e.toUpperCase()]||{};return e===_Y||e===T5e?No(t):ys(No(t),No(oV[B9]),!1)}else return ys(No(e),No(oV[B9]),!1)}function hwe(e){return D5e[e]}function aEr(){return D5e[B9]}vvt(T5e,rEr);vvt(_Y,nEr);var F5e=1e3,R5e=F5e*60,cO=R5e*60,wy=cO*24,kGe=wy*365,uM={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}"},Q$="{yyyy}-{MM}-{dd}",QGe={year:"{yyyy}",month:"{yyyy}-{MM}",day:Q$,hour:Q$+" "+uM.hour,minute:Q$+" "+uM.minute,second:Q$+" "+uM.second,millisecond:uM.none},tde=["year","month","day","hour","minute","second","millisecond"],mvt=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Hx(e,t){return e+="","0000".substr(0,t-e.length)+e}function x9(e){switch(e){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return e}}function oEr(e){return e===x9(e)}function sEr(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function jZ(e,t,r,n){var i=CC(e),a=i[M5e(r)](),o=i[S9(r)]()+1,s=Math.floor((o-1)/3)+1,l=i[GZ(r)](),u=i["get"+(r?"UTC":"")+"Day"](),c=i[kN(r)](),A=(c-1)%12+1,f=i[$Z(r)](),h=i[zZ(r)](),g=i[KZ(r)](),p=c>=12?"pm":"am",m=p.toUpperCase(),b=n instanceof Du?n:hwe(n||pvt)||aEr(),C=b.getModel("time"),E=C.get("month"),_=C.get("monthAbbr"),F=C.get("dayOfWeek"),M=C.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,m+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Hx(a%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,E[o-1]).replace(/{MMM}/g,_[o-1]).replace(/{MM}/g,Hx(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Hx(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,F[u]).replace(/{ee}/g,M[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Hx(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Hx(A+"",2)).replace(/{h}/g,A+"").replace(/{mm}/g,Hx(f,2)).replace(/{m}/g,f+"").replace(/{ss}/g,Hx(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Hx(g,3)).replace(/{S}/g,g+"")}function lEr(e,t,r,n,i){var a=null;if(Oa(r))a=r;else if(Bo(r))a=r(e.value,t,{level:e.level});else{var o=si({},uM);if(e.level>0)for(var s=0;s=0;--s)if(l[u]){a=l[u];break}a=a||o.none}if(Bi(a)){var A=e.level==null?0:e.level>=0?e.level:a.length+e.level;A=Math.min(A,a.length-1),a=a[A]}}return jZ(new Date(e.value),a,i,n)}function yvt(e,t){var r=CC(e),n=r[S9(t)]()+1,i=r[GZ(t)](),a=r[kN(t)](),o=r[$Z(t)](),s=r[zZ(t)](),l=r[KZ(t)](),u=l===0,c=u&&s===0,A=c&&o===0,f=A&&a===0,h=f&&i===1,g=h&&n===1;return g?"year":h?"month":f?"day":A?"hour":c?"minute":u?"second":"millisecond"}function _Ge(e,t,r){var n=Xl(e)?CC(e):e;switch(t=t||yvt(e,r),t){case"year":return n[M5e(r)]();case"half-year":return n[S9(r)]()>=6?1:0;case"quarter":return Math.floor((n[S9(r)]()+1)/4);case"month":return n[S9(r)]();case"day":return n[GZ(r)]();case"half-day":return n[kN(r)]()/24;case"hour":return n[kN(r)]();case"minute":return n[$Z(r)]();case"second":return n[zZ(r)]();case"millisecond":return n[KZ(r)]()}}function M5e(e){return e?"getUTCFullYear":"getFullYear"}function S9(e){return e?"getUTCMonth":"getMonth"}function GZ(e){return e?"getUTCDate":"getDate"}function kN(e){return e?"getUTCHours":"getHours"}function $Z(e){return e?"getUTCMinutes":"getMinutes"}function zZ(e){return e?"getUTCSeconds":"getSeconds"}function KZ(e){return e?"getUTCMilliseconds":"getMilliseconds"}function uEr(e){return e?"setUTCFullYear":"setFullYear"}function bvt(e){return e?"setUTCMonth":"setMonth"}function wvt(e){return e?"setUTCDate":"setDate"}function Cvt(e){return e?"setUTCHours":"setHours"}function Ivt(e){return e?"setUTCMinutes":"setMinutes"}function Evt(e){return e?"setUTCSeconds":"setSeconds"}function Bvt(e){return e?"setUTCMilliseconds":"setMilliseconds"}function xvt(e){if(!C0t(e))return Oa(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Svt(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(r,n){return n.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var pT=l5e;function dwe(e,t,r){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function i(c){return c&&Kb(c)?c:"-"}function a(c){return!!(c!=null&&!isNaN(c)&&isFinite(c))}var o=t==="time",s=e instanceof Date;if(o||s){var l=o?CC(e):e;if(isNaN(+l)){if(s)return"-"}else return jZ(l,n,r)}if(t==="ordinal")return T2e(e)?i(e):Xl(e)&&a(e)?e+"":"-";var u=aB(e);return a(u)?xvt(u):T2e(e)?i(e):typeof e=="boolean"?e+"":"-"}var TGe=["a","b","c","d","e","f","g"],rde=function(e,t){return"{"+e+(t??"")+"}"};function kvt(e,t,r){Bi(t)||(t=[t]);var n=t.length;if(!n)return"";for(var i=t[0].$vars||[],a=0;a':'';var o=r.markerId||"markerX";return{renderMode:a,content:"{"+o+"|} ",style:i==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function L6(e,t){return t=t||"transparent",Oa(e)?e:Mo(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function TY(e,t){if(t==="_blank"||t==="blank"){var r=window.open();r.opener=null,r.location.href=e}else window.open(e,t)}var sV=Mt,Qvt=["left","right","top","bottom","width","height"],kk=[["width","left","right"],["height","top","bottom"]];function O5e(e,t,r,n,i){var a=0,o=0;n==null&&(n=1/0),i==null&&(i=1/0);var s=0;t.eachChild(function(l,u){var c=l.getBoundingRect(),A=t.childAt(u+1),f=A&&A.getBoundingRect(),h,g;if(e==="horizontal"){var p=c.width+(f?-f.x+c.x:0);h=a+p,h>n||l.newline?(a=0,h=p,o+=s+r,s=c.height):s=Math.max(s,c.height)}else{var m=c.height+(f?-f.y+c.y:0);g=o+m,g>i||l.newline?(a+=s+r,o=0,g=m,s=c.width):s=Math.max(s,c.width)}l.newline||(l.x=a,l.y=o,l.markRedraw(),e==="horizontal"?a=h+r:o=g+r)})}var i6=O5e;us(O5e,"vertical");us(O5e,"horizontal");function fEr(e,t,r){var n=t.width,i=t.height,a=Ba(e.left,n),o=Ba(e.top,i),s=Ba(e.right,n),l=Ba(e.bottom,i);return(isNaN(a)||isNaN(parseFloat(e.left)))&&(a=0),(isNaN(s)||isNaN(parseFloat(e.right)))&&(s=n),(isNaN(o)||isNaN(parseFloat(e.top)))&&(o=0),(isNaN(l)||isNaN(parseFloat(e.bottom)))&&(l=i),r=pT(r||0),{width:Math.max(s-a-r[1]-r[3],0),height:Math.max(l-o-r[0]-r[2],0)}}function fd(e,t,r){r=pT(r||0);var n=t.width,i=t.height,a=Ba(e.left,n),o=Ba(e.top,i),s=Ba(e.right,n),l=Ba(e.bottom,i),u=Ba(e.width,n),c=Ba(e.height,i),A=r[2]+r[0],f=r[1]+r[3],h=e.aspect;switch(isNaN(u)&&(u=n-s-f-a),isNaN(c)&&(c=i-l-A-o),h!=null&&(isNaN(u)&&isNaN(c)&&(h>n/i?u=n*.8:c=i*.8),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(a)&&(a=n-s-u-f),isNaN(o)&&(o=i-l-c-A),e.left||e.right){case"center":a=n/2-u/2-r[3];break;case"right":a=n-u-f;break}switch(e.top||e.bottom){case"middle":case"center":o=i/2-c/2-r[0];break;case"bottom":o=i-c-A;break}a=a||0,o=o||0,isNaN(u)&&(u=n-f-a-(s||0)),isNaN(c)&&(c=i-A-o-(l||0));var g=new xs(a+r[3],o+r[0],u,c);return g.margin=r,g}function VZ(e,t,r,n,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||e,a.x=e.x,a.y=e.y,!o&&!s)return!1;var u;if(l==="raw")u=e.type==="group"?new xs(0,0,+t.width||0,+t.height||0):e.getBoundingRect();else if(u=e.getBoundingRect(),e.needLocalTransform()){var c=e.getLocalTransform();u=u.clone(),u.applyTransform(c)}var A=fd(Qo({width:u.width,height:u.height},t),r,n),f=o?A.x-u.x:0,h=s?A.y-u.y:0;return l==="raw"?(a.x=f,a.y=h):(a.x+=f,a.y+=h),a===e&&e.markRedraw(),!0}function hEr(e,t){return e[kk[t][0]]!=null||e[kk[t][1]]!=null&&e[kk[t][2]]!=null}function QN(e){var t=e.layoutMode||e.constructor.layoutMode;return Mo(t)?t:t?{type:t}:null}function x5(e,t,r){var n=r&&r.ignoreSize;!Bi(n)&&(n=[n,n]);var i=o(kk[0],0),a=o(kk[1],1);u(kk[0],e,i),u(kk[1],e,a);function o(c,A){var f={},h=0,g={},p=0,m=2;if(sV(c,function(E){g[E]=e[E]}),sV(c,function(E){s(t,E)&&(f[E]=g[E]=t[E]),l(f,E)&&h++,l(g,E)&&p++}),n[A])return l(t,c[1])?g[c[2]]=null:l(t,c[2])&&(g[c[1]]=null),g;if(p===m||!h)return g;if(h>=m)return f;for(var b=0;b=0;l--)s=ys(s,i[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(r,n){var i=r+"Index",a=r+"Id";return iP(this.ecModel,r,{index:this.get(i,!0),id:this.get(a,!0)},n)},t.prototype.getBoxLayoutParams=function(){var r=this;return{left:r.get("left"),top:r.get("top"),right:r.get("right"),bottom:r.get("bottom"),width:r.get("width"),height:r.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(r){this.option.zlevel=r},t.protoInitialize=function(){var r=t.prototype;r.type="component",r.id="",r.name="",r.mainType="",r.subType="",r.componentIndex=0}(),t}(Du);T0t(dl,Du);TZ(dl);eEr(dl);tEr(dl,gEr);function gEr(e){var t=[];return Mt(dl.getClassesByMainType(e),function(r){t=t.concat(r.dependencies||r.prototype.dependencies||[])}),t=Ti(t,function(r){return Yw(r).main}),e!=="dataset"&&Rs(t,"dataset")<=0&&t.unshift("dataset"),t}var Tvt="";typeof navigator<"u"&&(Tvt=navigator.platform||"");var r8="rgba(0, 0, 0, 0.2)";const pEr={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:r8,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:r8,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:r8,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:r8,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:r8,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:r8,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Tvt.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 Dvt=ao(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Gy="original",c0="arrayRows",$y="objectRows",NC="keyedColumns",i5="typedArray",Fvt="unknown",oC="column",mT="row",$g={Must:1,Might:2,Not:3},Rvt=Nl();function vEr(e){Rvt(e).datasetMap=ao()}function Mvt(e,t,r){var n={},i=L5e(t);if(!i||!e)return n;var a=[],o=[],s=t.ecModel,l=Rvt(s).datasetMap,u=i.uid+"_"+r.seriesLayoutBy,c,A;e=e.slice(),Mt(e,function(p,m){var b=Mo(p)?p:e[m]={name:p};b.type==="ordinal"&&c==null&&(c=m,A=g(b)),n[b.name]=[]});var f=l.get(u)||l.set(u,{categoryWayDim:A,valueWayDim:0});Mt(e,function(p,m){var b=p.name,C=g(p);if(c==null){var E=f.valueWayDim;h(n[b],E,C),h(o,E,C),f.valueWayDim+=C}else if(c===m)h(n[b],0,C),h(a,0,C);else{var E=f.categoryWayDim;h(n[b],E,C),h(o,E,C),f.categoryWayDim+=C}});function h(p,m,b){for(var C=0;Ct)return e[n];return e[r-1]}function Lvt(e,t,r,n,i,a,o){a=a||e;var s=t(a),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(i))return u[i];var c=o==null||!n?r:CEr(n,o);if(c=c||r,!(!c||!c.length)){var A=c[l];return i&&(u[i]=A),s.paletteIdx=(l+1)%c.length,A}}function IEr(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var _$,iR,FGe,RGe="\0_ec_inner",EEr=1,U5e=function(e){Wn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r,n,i,a,o,s){a=a||{},this.option=null,this._theme=new Du(a),this._locale=new Du(o),this._optionManager=s},t.prototype.setOption=function(r,n,i){var a=NGe(n);this._optionManager.setOption(r,i,a),this._resetOption(null,a)},t.prototype.resetOption=function(r,n){return this._resetOption(r,NGe(n))},t.prototype._resetOption=function(r,n){var i=!1,a=this._optionManager;if(!r||r==="recreate"){var o=a.mountOption(r==="recreate");!this.option||r==="recreate"?FGe(this,o):(this.restoreData(),this._mergeOption(o,n)),i=!0}if((r==="timeline"||r==="media")&&this.restoreData(),!r||r==="recreate"||r==="timeline"){var s=a.getTimelineOption(this);s&&(i=!0,this._mergeOption(s,n))}if(!r||r==="recreate"||r==="media"){var l=a.getMediaOption(this);l.length&&Mt(l,function(u){i=!0,this._mergeOption(u,n)},this)}return i},t.prototype.mergeOption=function(r){this._mergeOption(r,null)},t.prototype._mergeOption=function(r,n){var i=this.option,a=this._componentsMap,o=this._componentsCount,s=[],l=ao(),u=n&&n.replaceMergeMainTypeMap;vEr(this),Mt(r,function(A,f){A!=null&&(dl.hasClass(f)?f&&(s.push(f),l.set(f,!0)):i[f]=i[f]==null?No(A):ys(i[f],A,!0))}),u&&u.each(function(A,f){dl.hasClass(f)&&!l.get(f)&&(s.push(f),l.set(f,!0))}),dl.topologicalTravel(s,dl.getAllClassMainTypes(),c,this);function c(A){var f=bEr(this,A,ic(r[A])),h=a.get(A),g=h?u&&u.get(A)?"replaceMerge":"normalMerge":"replaceAll",p=S0t(h,f,g);Ywr(p,A,dl),i[A]=null,a.set(A,null),o.set(A,0);var m=[],b=[],C=0,E;Mt(p,function(_,F){var M=_.existing,N=_.newOption;if(!N)M&&(M.mergeOption({},this),M.optionUpdated({},!1));else{var P=A==="series",j=dl.getClass(A,_.keyInfo.subType,!P);if(!j)return;if(A==="tooltip"){if(E)return;E=!0}if(M&&M.constructor===j)M.name=_.keyInfo.name,M.mergeOption(N,this),M.optionUpdated(N,!1);else{var z=si({componentIndex:F},_.keyInfo);M=new j(N,this,this,z),si(M,z),_.brandNew&&(M.__requireNewView=!0),M.init(N,this,this),M.optionUpdated(null,!0)}}M?(m.push(M.option),b.push(M),C++):(m.push(void 0),b.push(void 0))},this),i[A]=m,a.set(A,b),o.set(A,C),A==="series"&&_$(this)}this._seriesIndices||_$(this)},t.prototype.getOption=function(){var r=No(this.option);return Mt(r,function(n,i){if(dl.hasClass(i)){for(var a=ic(n),o=a.length,s=!1,l=o-1;l>=0;l--)a[l]&&!EN(a[l])?s=!0:(a[l]=null,!s&&o--);a.length=o,r[i]=a}}),delete r[RGe],r},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(r){this._payload=r},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(r,n){var i=this._componentsMap.get(r);if(i){var a=i[n||0];if(a)return a;if(n==null){for(var o=0;o=t:r==="max"?e<=t:e===t}function FEr(e,t){return e.join(",")===t.join(",")}var wb=Mt,_N=Mo,LGe=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function ide(e){var t=e&&e.itemStyle;if(t)for(var r=0,n=LGe.length;r=0;m--){var b=e[m];if(s||(g=b.data.rawIndexOf(b.stackedByDimension,h)),g>=0){var C=b.data.getByRawIndex(b.stackResultDimension,g);if(l==="all"||l==="positive"&&C>0||l==="negative"&&C<0||l==="samesign"&&f>=0&&C>0||l==="samesign"&&f<=0&&C<0){f=Lwr(f,C),p=C;break}}}return n[0]=f,n[1]=p,n})})}var WZ=function(){function e(t){this.data=t.data||(t.sourceFormat===NC?{}:[]),this.sourceFormat=t.sourceFormat||Fvt,this.seriesLayoutBy=t.seriesLayoutBy||oC,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var r=this.dimensionsDefine=t.dimensionsDefine;if(r)for(var n=0;np&&(p=E)}h[0]=g,h[1]=p}},i=function(){return this._data?this._data.length/this._dimSize:0};zGe=(t={},t[c0+"_"+oC]={pure:!0,appendData:a},t[c0+"_"+mT]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[$y]={pure:!0,appendData:a},t[NC]={pure:!0,appendData:function(o){var s=this._data;Mt(o,function(l,u){for(var c=s[u]||(s[u]=[]),A=0;A<(l||[]).length;A++)c.push(l[A])})}},t[Gy]={appendData:a},t[i5]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(o){for(var s=0;s=0&&(p=o.interpolatedValue[m])}return p!=null?p+"":""})}},e.prototype.getRawValue=function(t,r){return f7(this.getData(r),t)},e.prototype.formatTooltip=function(t,r,n){},e}();function YGe(e){var t,r;return Mo(e)?e.type&&(r=e):t=e,{text:t,frag:r}}function AO(e){return new qEr(e)}var qEr=function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var r=this._upstream,n=t&&t.skip;if(this._dirty&&r){var i=this.context;i.data=i.outputData=r.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!n&&(a=this._plan(this.context));var o=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(a="reset");function c(C){return!(C>=1)&&(C=1),C}var A;(this._dirty||a==="reset")&&(this._dirty=!1,A=this._doReset(n)),this._modBy=l,this._modDataCount=u;var f=t&&t.step;if(r?this._dueEnd=r._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var h=this._dueIndex,g=Math.min(f!=null?this._dueIndex+f:1/0,this._dueEnd);if(!n&&(A||h1&&n>0?s:o}};return a;function o(){return t=e?null:lt},gte:function(e,t){return e>=t}},XEr=function(){function e(t,r){if(!Xl(r)){var n="";wu(n)}this._opFn=Yvt[t],this._rvalFloat=aB(r)}return e.prototype.evaluate=function(t){return Xl(t)?this._opFn(t,this._rvalFloat):this._opFn(aB(t),this._rvalFloat)},e}(),qvt=function(){function e(t,r){var n=t==="desc";this._resultLT=n?1:-1,r==null&&(r=n?"min":"max"),this._incomparable=r==="min"?-1/0:1/0}return e.prototype.evaluate=function(t,r){var n=Xl(t)?t:aB(t),i=Xl(r)?r:aB(r),a=isNaN(n),o=isNaN(i);if(a&&(n=this._incomparable),o&&(i=this._incomparable),a&&o){var s=Oa(t),l=Oa(r);s&&(n=l?t:0),l&&(i=s?r:0)}return ni?-this._resultLT:0},e}(),ZEr=function(){function e(t,r){this._rval=r,this._isEQ=t,this._rvalTypeof=typeof r,this._rvalFloat=aB(r)}return e.prototype.evaluate=function(t){var r=t===this._rval;if(!r){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(r=aB(t)===this._rvalFloat)}return this._isEQ?r:!r},e}();function eBr(e,t){return e==="eq"||e==="ne"?new ZEr(e==="eq",t):Xa(Yvt,e)?new XEr(e,t):null}var tBr=function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,r){},e.prototype.retrieveValueFromItem=function(t,r){},e.prototype.convertValue=function(t,r){return a5(t,r)},e}();function rBr(e,t){var r=new tBr,n=e.data,i=r.sourceFormat=e.sourceFormat,a=e.startIndex,o="";e.seriesLayoutBy!==oC&&wu(o);var s=[],l={},u=e.dimensionsDefine;if(u)Mt(u,function(p,m){var b=p.name,C={index:m,name:b,displayName:p.displayName};if(s.push(C),b!=null){var E="";Xa(l,b)&&wu(E),l[b]=C}});else for(var c=0;c65535?cBr:ABr}function i8(){return[1/0,-1/0]}function fBr(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function XGe(e,t,r,n,i){var a=Zvt[r||"float"];if(i){var o=e[t],s=o&&o.length;if(s!==n){for(var l=new a(n),u=0;um[1]&&(m[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},e.prototype._initDataFromProvider=function(t,r,n){for(var i=this._provider,a=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=Ti(o,function(C){return C.property}),c=0;cb[1]&&(b[1]=m)}}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=r,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,r){if(!(r>=0&&r=0&&r=this._rawCount||t<0)return-1;if(!this._indices)return t;var r=this._indices,n=r[t];if(n!=null&&nt)a=o-1;else return o}return-1},e.prototype.indicesOfNearest=function(t,r,n){var i=this._chunks,a=i[t],o=[];if(!a)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,c=0,A=this.count();c=0&&l<0)&&(s=g,l=h,u=0),h===l&&(o[u++]=c))}return o.length=u,o},e.prototype.getIndices=function(){var t,r=this._indices;if(r){var n=r.constructor,i=this._count;if(n===Array){t=new n(i);for(var a=0;a=A&&C<=f||isNaN(C))&&(l[u++]=p),p++}g=!0}else if(a===2){for(var m=h[i[0]],E=h[i[1]],_=t[i[1]][0],F=t[i[1]][1],b=0;b=A&&C<=f||isNaN(C))&&(M>=_&&M<=F||isNaN(M))&&(l[u++]=p),p++}g=!0}}if(!g)if(a===1)for(var b=0;b=A&&C<=f||isNaN(C))&&(l[u++]=N)}else for(var b=0;bt[z][1])&&(P=!1)}P&&(l[u++]=r.getRawIndex(b))}return ub[1]&&(b[1]=m)}}}},e.prototype.lttbDownSample=function(t,r){var n=this.clone([t],!0),i=n._chunks,a=i[t],o=this.count(),s=0,l=Math.floor(1/r),u=this.getRawIndex(0),c,A,f,h=new(n8(this._rawCount))(Math.min((Math.ceil(o/l)+2)*2,o));h[s++]=u;for(var g=1;gc&&(c=A,f=_)}W>0&&Ws&&(p=s-c);for(var m=0;mg&&(g=C,h=c+m)}var E=this.getRawIndex(A),_=this.getRawIndex(h);Ac-g&&(l=c-g,s.length=l);for(var p=0;pA[1]&&(A[1]=b),f[h++]=C}return a._count=h,a._indices=f,a._updateGetRawIdx(),a},e.prototype.each=function(t,r){if(this._count)for(var n=t.length,i=this._chunks,a=0,o=this.count();al&&(l=A)}return o=[s,l],this._extent[t]=o,o},e.prototype.getRawDataItem=function(t){var r=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(r);for(var n=[],i=this._chunks,a=0;a=0?this._indices[t]:-1},e.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},e.internalField=function(){function t(r,n,i,a){return a5(r[a],this._dimensions[a])}sde={arrayRows:t,objectRows:function(r,n,i,a){return a5(r[n],this._dimensions[a])},keyedColumns:t,original:function(r,n,i,a){var o=r&&(r.value==null?r:r.value);return a5(o instanceof Array?o[a]:o,this._dimensions[a])},typedArray:function(r,n,i,a){return r[a]}}}(),e}(),emt=function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,r){this._sourceList=t,this._upstreamSignList=r,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,r=this._getUpstreamSourceManagers(),n=!!r.length,i,a;if(T$(t)){var o=t,s=void 0,l=void 0,u=void 0;if(n){var c=r[0];c.prepareSource(),u=c.getSource(),s=u.data,l=u.sourceFormat,a=[c._getVersionSign()]}else s=o.get("data",!0),l=am(s)?i5:Gy,a=[];var A=this._getSourceMetaRawOption()||{},f=u&&u.metaRawOption||{},h=ts(A.seriesLayoutBy,f.seriesLayoutBy)||null,g=ts(A.sourceHeader,f.sourceHeader),p=ts(A.dimensions,f.dimensions),m=h!==f.seriesLayoutBy||!!g!=!!f.sourceHeader||p;i=m?[vwe(s,{seriesLayoutBy:h,sourceHeader:g,dimensions:p},l)]:[]}else{var b=t;if(n){var C=this._applyTransform(r);i=C.sourceList,a=C.upstreamSignList}else{var E=b.get("source",!0);i=[vwe(E,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(i,a)},e.prototype._applyTransform=function(t){var r=this._sourceHost,n=r.get("transform",!0),i=r.get("fromTransformResult",!0);if(i!=null){var a="";t.length!==1&&e$e(a)}var o,s=[],l=[];return Mt(t,function(u){u.prepareSource();var c=u.getSource(i||0),A="";i!=null&&!c&&e$e(A),s.push(c),l.push(u._getVersionSign())}),n?o=lBr(n,s,{datasetIndex:r.componentIndex}):i!=null&&(o=[GEr(s[0])]),{sourceList:o,upstreamSignList:l}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),r=0;r1||r>0&&!e.noHeader;return Mt(e.blocks,function(i){var a=imt(i);a>=t&&(t=a+ +(n&&(!a||ywe(i)&&!i.noHeader)))}),t}return 0}function pBr(e,t,r,n){var i=t.noHeader,a=mBr(imt(t)),o=[],s=t.blocks||[];J0(!s||Bi(s)),s=s||[];var l=e.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Xa(u,l)){var c=new qvt(u[l],null);s.sort(function(p,m){return c.evaluate(p.sortParam,m.sortParam)})}else l==="seriesDesc"&&s.reverse()}Mt(s,function(p,m){var b=t.valueFormatter,C=nmt(p)(b?si(si({},e),{valueFormatter:b}):e,p,m>0?a.html:0,n);C!=null&&o.push(C)});var A=e.renderMode==="richText"?o.join(a.richText):bwe(n,o.join(""),i?r:a.html);if(i)return A;var f=dwe(t.header,"ordinal",e.useUTC),h=rmt(n,e.renderMode).nameStyle,g=tmt(n);return e.renderMode==="richText"?amt(e,f,h)+a.richText+A:bwe(n,'
    '+P0(f)+"
    "+A,r)}function vBr(e,t,r,n){var i=e.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=e.useUTC,c=t.valueFormatter||e.valueFormatter||function(_){return _=Bi(_)?_:[_],Ti(_,function(F,M){return dwe(F,Bi(h)?h[M]:h,u)})};if(!(a&&o)){var A=s?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",i),f=a?"":dwe(l,"ordinal",u),h=t.valueType,g=o?[]:c(t.value,t.dataIndex),p=!s||!a,m=!s&&a,b=rmt(n,i),C=b.nameStyle,E=b.valueStyle;return i==="richText"?(s?"":A)+(a?"":amt(e,f,C))+(o?"":wBr(e,g,p,m,E)):bwe(n,(s?"":A)+(a?"":yBr(f,!s,C))+(o?"":bBr(g,p,m,E)),r)}}function t$e(e,t,r,n,i,a){if(e){var o=nmt(e),s={useUTC:i,renderMode:r,orderMode:n,markupStyleCreator:t,valueFormatter:e.valueFormatter};return o(s,e,0,a)}}function mBr(e){return{html:dBr[e],richText:gBr[e]}}function bwe(e,t,r){var n='
    ',i="margin: "+r+"px 0 0",a=tmt(e);return'
    '+t+n+"
    "}function yBr(e,t,r){var n=t?"margin-left:2px":"";return''+P0(e)+""}function bBr(e,t,r,n){var i=r?"10px":"20px",a=t?"float:right;margin-left:"+i:"";return e=Bi(e)?e:[e],''+Ti(e,function(o){return P0(o)}).join("  ")+""}function amt(e,t,r){return e.markupStyleCreator.wrapRichTextStyle(t,r)}function wBr(e,t,r,n,i){var a=[i],o=n?10:20;return r&&a.push({padding:[0,0,0,o],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Bi(t)?t.join(" "):t,a)}function omt(e,t){var r=e.getData().getItemVisual(t,"style"),n=r[e.visualDrawType];return L6(n)}function smt(e,t){var r=e.get("padding");return r??(t==="richText"?[8,10]:10)}var lde=function(){function e(){this.richTextStyles={},this._nextStyleNameId=I0t()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,r,n){var i=n==="richText"?this._generateStyleName():null,a=AEr({color:r,type:t,renderMode:n,markerId:i});return Oa(a)?a:(this.richTextStyles[i]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,r){var n={};Bi(r)?Mt(r,function(a){return si(n,a)}):si(n,r);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},e}();function lmt(e){var t=e.series,r=e.dataIndex,n=e.multipleSeries,i=t.getData(),a=i.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(r),l=Bi(s),u=omt(t,r),c,A,f,h;if(o>1||l&&!o){var g=CBr(s,t,r,a,u);c=g.inlineValues,A=g.inlineValueTypes,f=g.blocks,h=g.inlineValues[0]}else if(o){var p=i.getDimensionInfo(a[0]);h=c=f7(i,r,a[0]),A=p.type}else h=c=l?s[0]:s;var m=p5e(t),b=m&&t.name||"",C=i.getName(r),E=n?b:C;return Wd("section",{header:b,noHeader:n||!m,sortParam:h,blocks:[Wd("nameValue",{markerType:"item",markerColor:u,name:E,noName:!Kb(E),value:c,valueType:A,dataIndex:r})].concat(f||[])})}function CBr(e,t,r,n,i){var a=t.getData(),o=yC(e,function(A,f,h){var g=a.getDimensionInfo(h);return A=A||g&&g.tooltip!==!1&&g.displayName!=null},!1),s=[],l=[],u=[];n.length?Mt(n,function(A){c(f7(a,r,A),A)}):Mt(e,c);function c(A,f){var h=a.getDimensionInfo(f);!h||h.otherDims.tooltip===!1||(o?u.push(Wd("nameValue",{markerType:"subItem",markerColor:i,name:h.displayName,value:A,valueType:h.type})):(s.push(A),l.push(h.type)))}return{inlineValues:s,inlineValueTypes:l,blocks:u}}var jx=Nl();function D$(e,t){return e.getName(t)||e.getId(t)}var lV="__universalTransitionEnabled",Lc=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r._selectedDataIndicesMap={},r}return t.prototype.init=function(r,n,i){this.seriesIndex=this.componentIndex,this.dataTask=AO({count:EBr,reset:BBr}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(r,i);var a=jx(this).sourceManager=new emt(this);a.prepareSource();var o=this.getInitialData(r,i);n$e(o,this),this.dataTask.context.data=o,jx(this).dataBeforeProcessed=o,r$e(this),this._initSelectedMapFromData(o)},t.prototype.mergeDefaultAndTheme=function(r,n){var i=QN(this),a=i?vT(r):{},o=this.subType;dl.hasClass(o)&&(o+="Series"),ys(r,n.getTheme().get(this.subType)),ys(r,this.getDefaultOption()),R6(r,"label",["show"]),this.fillDataTextStyle(r.data),i&&x5(r,a,i)},t.prototype.mergeOption=function(r,n){r=ys(this.option,r,!0),this.fillDataTextStyle(r.data);var i=QN(this);i&&x5(this.option,r,i);var a=jx(this).sourceManager;a.dirty(),a.prepareSource();var o=this.getInitialData(r,n);n$e(o,this),this.dataTask.dirty(),this.dataTask.context.data=o,jx(this).dataBeforeProcessed=o,r$e(this),this._initSelectedMapFromData(o)},t.prototype.fillDataTextStyle=function(r){if(r&&!am(r))for(var n=["show"],i=0;ithis.getShallow("animationThreshold")&&(n=!1),!!n},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(r,n,i){var a=this.ecModel,o=P5e.prototype.getColorFromPalette.call(this,r,n,i);return o||(o=a.getColorFromPalette(r,n,i)),o},t.prototype.coordDimToDataDim=function(r){return this.getRawData().mapDimensionsAll(r)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(r,n){this._innerSelect(this.getData(n),r)},t.prototype.unselect=function(r,n){var i=this.option.selectedMap;if(i){var a=this.option.selectedMode,o=this.getData(n);if(a==="series"||i==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var s=0;s=0&&i.push(o)}return i},t.prototype.isSelected=function(r,n){var i=this.option.selectedMap;if(!i)return!1;var a=this.getData(n);return(i==="all"||i[D$(a,r)])&&!a.getItemModel(r).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[lV])return!0;var r=this.option.universalTransition;return r?r===!0?!0:r&&r.enabled:!1},t.prototype._innerSelect=function(r,n){var i,a,o=this.option,s=o.selectedMode,l=n.length;if(!(!s||!l)){if(s==="series")o.selectedMap="all";else if(s==="multiple"){Mo(o.selectedMap)||(o.selectedMap={});for(var u=o.selectedMap,c=0;c0&&this._innerSelect(r,n)}},t.registerClass=function(r){return dl.registerClass(r)},t.protoInitialize=function(){var r=t.prototype;r.type="series.__base__",r.seriesIndex=0,r.ignoreStyleOnData=!1,r.hasSymbolVisual=!1,r.defaultSymbol="circle",r.visualStyleAccessPath="itemStyle",r.visualDrawType="fill"}(),t}(dl);Th(Lc,YZ);Th(Lc,P5e);T0t(Lc,dl);function r$e(e){var t=e.name;p5e(e)||(e.name=IBr(e)||t)}function IBr(e){var t=e.getRawData(),r=t.mapDimensionsAll("seriesName"),n=[];return Mt(r,function(i){var a=t.getDimensionInfo(i);a.displayName&&n.push(a.displayName)}),n.join(" ")}function EBr(e){return e.model.getRawData().count()}function BBr(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),xBr}function xBr(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function n$e(e,t){Mt(yN(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(r){e.wrapMethod(r,us(SBr,t))})}function SBr(e,t){var r=wwe(e);return r&&r.setOutputEnd((t||this).count()),t}function wwe(e){var t=(e.ecModel||{}).scheduler,r=t&&t.getPipeline(e.uid);if(r){var n=r.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(e.uid))}return n}}var xA=function(){function e(){this.group=new $o,this.uid=gT("viewComponent")}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){},e.prototype.updateLayout=function(t,r,n,i){},e.prototype.updateVisual=function(t,r,n,i){},e.prototype.toggleBlurSeries=function(t,r,n){},e.prototype.eachRendered=function(t){var r=this.group;r&&r.traverse(t)},e}();m5e(xA);TZ(xA);function yT(){var e=Nl();return function(t){var r=e(t),n=t.pipelineContext,i=!!r.large,a=!!r.progressiveRender,o=r.large=!!(n&&n.large),s=r.progressiveRender=!!(n&&n.progressiveRender);return(i!==o||a!==s)&&"reset"}}var umt=Nl(),kBr=yT(),cc=function(){function e(){this.group=new $o,this.uid=gT("viewChart"),this.renderTask=AO({plan:QBr,reset:_Br}),this.renderTask.context={view:this}}return e.prototype.init=function(t,r){},e.prototype.render=function(t,r,n,i){},e.prototype.highlight=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&a$e(a,i,"emphasis")},e.prototype.downplay=function(t,r,n,i){var a=t.getData(i&&i.dataType);a&&a$e(a,i,"normal")},e.prototype.remove=function(t,r){this.group.removeAll()},e.prototype.dispose=function(t,r){},e.prototype.updateView=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateLayout=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.updateVisual=function(t,r,n,i){this.render(t,r,n,i)},e.prototype.eachRendered=function(t){Z5(this.group,t)},e.markUpdateMethod=function(t,r){umt(t).updateMethod=r},e.protoInitialize=function(){var t=e.prototype;t.type="chart"}(),e}();function i$e(e,t,r){e&&xN(e)&&(t==="emphasis"?oB:sB)(e,r)}function a$e(e,t,r){var n=M6(e,t),i=t&&t.highlightKey!=null?AIr(t.highlightKey):null;n!=null?Mt(ic(n),function(a){i$e(e.getItemGraphicEl(a),r,i)}):e.eachItemGraphicEl(function(a){i$e(a,r,i)})}m5e(cc);TZ(cc);function QBr(e){return kBr(e.model)}function _Br(e){var t=e.model,r=e.ecModel,n=e.api,i=e.payload,a=t.pipelineContext.progressiveRender,o=e.view,s=i&&umt(i).updateMethod,l=a?"incrementalPrepareRender":s&&o[s]?s:"render";return l!=="render"&&o[l](t,r,n,i),TBr[l]}var TBr={incrementalPrepareRender:{progress:function(e,t){t.view.incrementalRender(e,t.model,t.ecModel,t.api,t.payload)}},render:{forceFirstProgress:!0,progress:function(e,t){t.view.render(t.model,t.ecModel,t.api,t.payload)}}},DY="\0__throttleOriginMethod",o$e="\0__throttleRate",s$e="\0__throttleType";function z5e(e,t,r){var n,i=0,a=0,o=null,s,l,u,c;t=t||0;function A(){a=new Date().getTime(),o=null,e.apply(l,u||[])}var f=function(){for(var h=[],g=0;g=0?A():o=setTimeout(A,-s),i=n};return f.clear=function(){o&&(clearTimeout(o),o=null)},f.debounceNextCall=function(h){c=h},f}function bT(e,t,r,n){var i=e[t];if(i){var a=i[DY]||i,o=i[s$e],s=i[o$e];if(s!==r||o!==n){if(r==null||!n)return e[t]=a;i=e[t]=z5e(a,r,n==="debounce"),i[DY]=a,i[s$e]=n,i[o$e]=r}return i}}function TN(e,t){var r=e[t];r&&r[DY]&&(r.clear&&r.clear(),e[t]=r[DY])}var l$e=Nl(),u$e={itemStyle:O6(gvt,!0),lineStyle:O6(dvt,!0)},DBr={lineStyle:"stroke",itemStyle:"fill"};function cmt(e,t){var r=e.visualStyleMapper||u$e[t];return r||(console.warn("Unknown style type '"+t+"'."),u$e.itemStyle)}function Amt(e,t){var r=e.visualDrawType||DBr[t];return r||(console.warn("Unknown style type '"+t+"'."),"fill")}var FBr={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=e.getModel(n),a=cmt(e,n),o=a(i),s=i.getShallow("decal");s&&(r.setVisual("decal",s),s.dirty=!0);var l=Amt(e,n),u=o[l],c=Bo(u)?u:null,A=o.fill==="auto"||o.stroke==="auto";if(!o[l]||c||A){var f=e.getColorFromPalette(e.name,null,t.getSeriesCount());o[l]||(o[l]=f,r.setVisual("colorFromPalette",!0)),o.fill=o.fill==="auto"||Bo(o.fill)?f:o.fill,o.stroke=o.stroke==="auto"||Bo(o.stroke)?f:o.stroke}if(r.setVisual("style",o),r.setVisual("drawType",l),!t.isSeriesFiltered(e)&&c)return r.setVisual("colorFromPalette",!1),{dataEach:function(h,g){var p=e.getDataParams(g),m=si({},o);m[l]=c(p),h.setItemVisual(g,"style",m)}}}},oR=new Du,RBr={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var r=e.getData(),n=e.visualStyleAccessPath||"itemStyle",i=cmt(e,n),a=r.getVisual("drawType");return{dataEach:r.hasItemOption?function(o,s){var l=o.getRawDataItem(s);if(l&&l[n]){oR.option=l[n];var u=i(oR),c=o.ensureUniqueItemVisual(s,"style");si(c,u),oR.option.decal&&(o.setItemVisual(s,"decal",oR.option.decal),oR.option.decal.dirty=!0),a in u&&o.setItemVisual(s,"colorFromPalette",!1)}}:null}}}},MBr={performRawSeries:!0,overallReset:function(e){var t=ao();e.eachSeries(function(r){var n=r.getColorBy();if(!r.isColorBySeries()){var i=r.type+"-"+n,a=t.get(i);a||(a={},t.set(i,a)),l$e(r).scope=a}}),e.eachSeries(function(r){if(!(r.isColorBySeries()||e.isSeriesFiltered(r))){var n=r.getRawData(),i={},a=r.getData(),o=l$e(r).scope,s=r.visualStyleAccessPath||"itemStyle",l=Amt(r,s);a.each(function(u){var c=a.getRawIndex(u);i[c]=u}),n.each(function(u){var c=i[u],A=a.getItemVisual(c,"colorFromPalette");if(A){var f=a.ensureUniqueItemVisual(c,"style"),h=n.getName(u)||u+"",g=n.count();f[l]=r.getColorFromPalette(h,o,g)}})}})}},F$=Math.PI;function OBr(e,t){t=t||{},Qo(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var r=new $o,n=new Ol({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});r.add(n);var i=new zl({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),a=new Ol({style:{fill:"none"},textContent:i,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});r.add(a);var o;return t.showSpinner&&(o=new LZ({shape:{startAngle:-F$/2,endAngle:-F$/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),o.animateShape(!0).when(1e3,{endAngle:F$*3/2}).start("circularInOut"),o.animateShape(!0).when(1e3,{startAngle:F$*3/2}).delay(300).start("circularInOut"),r.add(o)),r.resize=function(){var s=i.getBoundingRect().width,l=t.showSpinner?t.spinnerRadius:0,u=(e.getWidth()-l*2-(t.showSpinner&&s?10:0)-s)/2-(t.showSpinner&&s?0:5+s/2)+(t.showSpinner?0:s/2)+(s?0:l),c=e.getHeight()/2;t.showSpinner&&o.setShape({cx:u,cy:c}),a.setShape({x:u-l,y:c-l,width:l*2,height:l*2}),n.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},r.resize(),r}var fmt=function(){function e(t,r,n,i){this._stageTaskMap=ao(),this.ecInstance=t,this.api=r,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return e.prototype.restoreData=function(t,r){t.restoreData(r),this._stageTaskMap.each(function(n){var i=n.overallTask;i&&i.dirty()})},e.prototype.getPerformArgs=function(t,r){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,a=!r&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex,o=a?n.step:null,s=i&&i.modDataCount,l=s!=null?Math.ceil(s/o):null;return{step:o,modBy:l,modDataCount:s}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,r){var n=this._pipelineMap.get(t.uid),i=t.getData(),a=i.count(),o=n.progressiveEnabled&&r.incrementalPrepareRender&&a>=n.threshold,s=t.get("large")&&a>=t.get("largeThreshold"),l=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=n.context={progressiveRender:o,modDataCount:l,large:s}},e.prototype.restorePipelines=function(t){var r=this,n=r._pipelineMap=ao();t.eachSeries(function(i){var a=i.getProgressive(),o=i.uid;n.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}),r._pipe(i,i.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,r=this.api.getModel(),n=this.api;Mt(this._allHandlers,function(i){var a=t.get(i.uid)||t.set(i.uid,{}),o="";J0(!(i.reset&&i.overallReset),o),i.reset&&this._createSeriesStageTask(i,a,r,n),i.overallReset&&this._createOverallStageTask(i,a,r,n)},this)},e.prototype.prepareView=function(t,r,n,i){var a=t.renderTask,o=a.context;o.model=r,o.ecModel=n,o.api=i,a.__block=!t.incrementalPrepareRender,this._pipe(r,a)},e.prototype.performDataProcessorTasks=function(t,r){this._performStageTasks(this._dataProcessorHandlers,t,r,{block:!0})},e.prototype.performVisualTasks=function(t,r,n){this._performStageTasks(this._visualHandlers,t,r,n)},e.prototype._performStageTasks=function(t,r,n,i){i=i||{};var a=!1,o=this;Mt(t,function(l,u){if(!(i.visualType&&i.visualType!==l.visualType)){var c=o._stageTaskMap.get(l.uid),A=c.seriesTaskMap,f=c.overallTask;if(f){var h,g=f.agentStubMap;g.each(function(m){s(i,m)&&(m.dirty(),h=!0)}),h&&f.dirty(),o.updatePayload(f,n);var p=o.getPerformArgs(f,i.block);g.each(function(m){m.perform(p)}),f.perform(p)&&(a=!0)}else A&&A.each(function(m,b){s(i,m)&&m.dirty();var C=o.getPerformArgs(m,i.block);C.skip=!l.performRawSeries&&r.isSeriesFiltered(m.context.model),o.updatePayload(m,n),m.perform(C)&&(a=!0)})}});function s(l,u){return l.setDirty&&(!l.dirtyMap||l.dirtyMap.get(u.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var r;t.eachSeries(function(n){r=n.dataTask.perform()||r}),this.unfinished=r||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var r=t.tail;do{if(r.__block){t.blockIndex=r.__idxInPipeline;break}r=r.getUpstream()}while(r)})},e.prototype.updatePayload=function(t,r){r!=="remain"&&(t.context.payload=r)},e.prototype._createSeriesStageTask=function(t,r,n,i){var a=this,o=r.seriesTaskMap,s=r.seriesTaskMap=ao(),l=t.seriesType,u=t.getTargetSeries;t.createOnAllSeries?n.eachRawSeries(c):l?n.eachRawSeriesByType(l,c):u&&u(n,i).each(c);function c(A){var f=A.uid,h=s.set(f,o&&o.get(f)||AO({plan:HBr,reset:jBr,count:$Br}));h.context={model:A,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(A,h)}},e.prototype._createOverallStageTask=function(t,r,n,i){var a=this,o=r.overallTask=r.overallTask||AO({reset:NBr});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:a};var s=o.agentStubMap,l=o.agentStubMap=ao(),u=t.seriesType,c=t.getTargetSeries,A=!0,f=!1,h="";J0(!t.createOnAllSeries,h),u?n.eachRawSeriesByType(u,g):c?c(n,i).each(g):(A=!1,Mt(n.getSeries(),g));function g(p){var m=p.uid,b=l.set(m,s&&s.get(m)||(f=!0,AO({reset:LBr,onDirty:UBr})));b.context={model:p,overallProgress:A},b.agent=o,b.__block=A,a._pipe(p,b)}f&&o.dirty()},e.prototype._pipe=function(t,r){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=r),i.tail&&i.tail.pipe(r),i.tail=r,r.__idxInPipeline=i.count++,r.__pipeline=i},e.wrapStageHandler=function(t,r){return Bo(t)&&(t={overallReset:t,seriesType:zBr(t)}),t.uid=gT("stageHandler"),r&&(t.visualType=r),t},e}();function NBr(e){e.overallReset(e.ecModel,e.api,e.payload)}function LBr(e){return e.overallProgress&&PBr}function PBr(){this.agent.dirty(),this.getDownstream().dirty()}function UBr(){this.agent&&this.agent.dirty()}function HBr(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function jBr(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=ic(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Ti(t,function(r,n){return hmt(n)}):GBr}var GBr=hmt(0);function hmt(e){return function(t,r){var n=r.data,i=r.resetDefines[e];if(i&&i.dataEach)for(var a=t.start;a0&&h===u.length-f.length){var g=u.slice(0,h);g!=="data"&&(r.mainType=g,r[f.toLowerCase()]=l,c=!0)}}s.hasOwnProperty(u)&&(n[u]=l,c=!0),c||(i[u]=l)})}return{cptQuery:r,dataQuery:n,otherQuery:i}},e.prototype.filter=function(t,r){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,a=n.packedEvent,o=n.model,s=n.view;if(!o||!s)return!0;var l=r.cptQuery,u=r.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(t,r.otherQuery,i,a));function c(A,f,h,g){return A[h]==null||f[g||h]===A[h]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e}(),Cwe=["symbol","symbolSize","symbolRotate","symbolOffset"],h$e=Cwe.concat(["symbolKeepAspect"]),WBr={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var r=e.getData();if(e.legendIcon&&r.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var n={},i={},a=!1,o=0;o=0&&_k(l)?l:.5;var u=e.createRadialGradient(o,s,0,o,s,l);return u}function Iwe(e,t,r){for(var n=t.type==="radial"?uxr(e,t,r):lxr(e,t,r),i=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Xl(e)?[e]:Bi(e)?e:null}function V5e(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&Axr(t.lineDash,t.lineWidth),n=t.lineDashOffset;if(r){var i=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;i&&i!==1&&(r=Ti(r,function(a){return a/i}),n/=i)}return[r,n]}var fxr=new IC(!0);function MY(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function d$e(e){return typeof e=="string"&&e!=="none"}function OY(e){var t=e.fill;return t!=null&&t!=="none"}function g$e(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function p$e(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function Ewe(e,t,r){var n=y5e(t.image,t.__image,r);if(DZ(n)){var i=e.createPattern(n,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*YK),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function hxr(e,t,r,n){var i,a=MY(r),o=OY(r),s=r.strokePercent,l=s<1,u=!t.path;(!t.silent||l)&&u&&t.createPathProxy();var c=t.path||fxr,A=t.__dirty;if(!n){var f=r.fill,h=r.stroke,g=o&&!!f.colorStops,p=a&&!!h.colorStops,m=o&&!!f.image,b=a&&!!h.image,C=void 0,E=void 0,_=void 0,F=void 0,M=void 0;(g||p)&&(M=t.getBoundingRect()),g&&(C=A?Iwe(e,f,M):t.__canvasFillGradient,t.__canvasFillGradient=C),p&&(E=A?Iwe(e,h,M):t.__canvasStrokeGradient,t.__canvasStrokeGradient=E),m&&(_=A||!t.__canvasFillPattern?Ewe(e,f,t):t.__canvasFillPattern,t.__canvasFillPattern=_),b&&(F=A||!t.__canvasStrokePattern?Ewe(e,h,t):t.__canvasStrokePattern,t.__canvasStrokePattern=_),g?e.fillStyle=C:m&&(_?e.fillStyle=_:o=!1),p?e.strokeStyle=E:b&&(F?e.strokeStyle=F:a=!1)}var N=t.getGlobalScale();c.setScale(N[0],N[1],t.segmentIgnoreThreshold);var P,j;e.setLineDash&&r.lineDash&&(i=V5e(t),P=i[0],j=i[1]);var z=!0;(u||A&P8)&&(c.setDPR(e.dpr),l?c.setContext(null):(c.setContext(e),z=!1),c.reset(),t.buildPath(c,t.shape,n),c.toStatic(),t.pathUpdated()),z&&c.rebuildPath(e,l?s:1),P&&(e.setLineDash(P),e.lineDashOffset=j),n||(r.strokeFirst?(a&&p$e(e,r),o&&g$e(e,r)):(o&&g$e(e,r),a&&p$e(e,r))),P&&e.setLineDash([])}function dxr(e,t,r){var n=t.__image=y5e(r.image,t.__image,t,t.onload);if(!(!n||!DZ(n))){var i=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),l=n.width/n.height;if(o==null&&s!=null?o=s*l:s==null&&o!=null?s=o/l:o==null&&s==null&&(o=n.width,s=n.height),r.sWidth&&r.sHeight){var u=r.sx||0,c=r.sy||0;e.drawImage(n,u,c,r.sWidth,r.sHeight,i,a,o,s)}else if(r.sx&&r.sy){var u=r.sx,c=r.sy,A=o-u,f=s-c;e.drawImage(n,u,c,A,f,i,a,o,s)}else e.drawImage(n,i,a,o,s)}}function gxr(e,t,r){var n,i=r.text;if(i!=null&&(i+=""),i){e.font=r.font||C5,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(n=V5e(t),a=n[0],o=n[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(MY(r)&&e.strokeText(i,r.x,r.y),OY(r)&&e.fillText(i,r.x,r.y)):(OY(r)&&e.fillText(i,r.x,r.y),MY(r)&&e.strokeText(i,r.x,r.y)),a&&e.setLineDash([])}}var v$e=["shadowBlur","shadowOffsetX","shadowOffsetY"],m$e=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function ymt(e,t,r,n,i){var a=!1;if(!n&&(r=r||{},t===r))return!1;if(n||t.opacity!==r.opacity){Yv(e,i),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?e6.opacity:o}(n||t.blend!==r.blend)&&(a||(Yv(e,i),a=!0),e.globalCompositeOperation=t.blend||e6.blend);for(var s=0;s0&&r.unfinished);r.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(r,n,i){if(!this[Op]){if(this._disposed){this.id;return}var a,o,s;if(Mo(n)&&(i=n.lazyUpdate,a=n.silent,o=n.replaceMerge,s=n.transition,n=n.notMerge),this[Op]=!0,!this._model||n){var l=new QEr(this._api),u=this._theme,c=this._model=new U5e;c.scheduler=this._scheduler,c.ssr=this._ssr,c.init(null,null,null,u,this._locale,l)}this._model.setOption(r,{replaceMerge:o},xwe);var A={seriesTransition:s,optionChanged:!0};if(i)this[Mv]={silent:a,updateParams:A},this[Op]=!1,this.getZr().wakeUp();else{try{o8(this),Gx.update.call(this,null,A)}catch(f){throw this[Mv]=null,this[Op]=!1,f}this._ssr||this._zr.flush(),this[Mv]=null,this[Op]=!1,sR.call(this,a),lR.call(this,a)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||nl.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(r){return this.renderToCanvas(r)},t.prototype.renderToCanvas=function(r){r=r||{};var n=this._zr.painter;return n.getRenderedCanvas({backgroundColor:r.backgroundColor||this._model.get("backgroundColor"),pixelRatio:r.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(r){r=r||{};var n=this._zr.painter;return n.renderToString({useViewBox:r.useViewBox})},t.prototype.getSvgDataURL=function(){if(nl.svgSupported){var r=this._zr,n=r.storage.getDisplayList();return Mt(n,function(i){i.stopAnimation(null,!0)}),r.painter.toDataURL()}},t.prototype.getDataURL=function(r){if(this._disposed){this.id;return}r=r||{};var n=r.excludeComponents,i=this._model,a=[],o=this;Mt(n,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(r).toDataURL("image/"+(r&&r.type||"png"));return Mt(a,function(l){l.group.ignore=!1}),s},t.prototype.getConnectedDataURL=function(r){if(this._disposed){this.id;return}var n=r.type==="svg",i=this.group,a=Math.min,o=Math.max,s=1/0;if(Uxr[i]){var l=s,u=s,c=-s,A=-s,f=[],h=r&&r.pixelRatio||this.getDevicePixelRatio();Mt(D$e,function(E,_){if(E.group===i){var F=n?E.getZr().painter.getSvgDom().innerHTML:E.renderToCanvas(No(r)),M=E.getDom().getBoundingClientRect();l=a(M.left,l),u=a(M.top,u),c=o(M.right,c),A=o(M.bottom,A),f.push({dom:F,left:M.left,top:M.top})}}),l*=h,u*=h,c*=h,A*=h;var g=c-l,p=A-u,m=I5.createCanvas(),b=Lje(m,{renderer:n?"svg":"canvas"});if(b.resize({width:g,height:p}),n){var C="";return Mt(f,function(E){var _=E.left-l,F=E.top-u;C+=''+E.dom+""}),b.painter.getSvgRoot().innerHTML=C,r.connectedBackgroundColor&&b.painter.setBackgroundColor(r.connectedBackgroundColor),b.refreshImmediately(),b.painter.toDataURL()}else return r.connectedBackgroundColor&&b.add(new Ol({shape:{x:0,y:0,width:g,height:p},style:{fill:r.connectedBackgroundColor}})),Mt(f,function(E){var _=new Bg({style:{x:E.left*h-l,y:E.top*h-u,image:E.dom}});b.add(_)}),b.refreshImmediately(),m.toDataURL("image/"+(r&&r.type||"png"))}else return this.getDataURL(r)},t.prototype.convertToPixel=function(r,n){return fde(this,"convertToPixel",r,n)},t.prototype.convertFromPixel=function(r,n){return fde(this,"convertFromPixel",r,n)},t.prototype.containPixel=function(r,n){if(this._disposed){this.id;return}var i=this._model,a,o=oO(i,r);return Mt(o,function(s,l){l.indexOf("Models")>=0&&Mt(s,function(u){var c=u.coordinateSystem;if(c&&c.containPoint)a=a||!!c.containPoint(n);else if(l==="seriesModels"){var A=this._chartsMap[u.__viewId];A&&A.containPoint&&(a=a||A.containPoint(n,u))}},this)},this),!!a},t.prototype.getVisual=function(r,n){var i=this._model,a=oO(i,r,{defaultMainType:"series"}),o=a.seriesModel,s=o.getData(),l=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?s.indexOfRawIndex(a.dataIndex):null;return l!=null?K5e(s,l,n):fP(s,n)},t.prototype.getViewOfComponentModel=function(r){return this._componentsMap[r.__viewId]},t.prototype.getViewOfSeriesModel=function(r){return this._chartsMap[r.__viewId]},t.prototype._initEvents=function(){var r=this;Mt(Pxr,function(n){var i=function(a){var o=r.getModel(),s=a.target,l,u=n==="globalout";if(u?l={}:s&&Qk(s,function(g){var p=Vo(g);if(p&&p.dataIndex!=null){var m=p.dataModel||o.getSeriesByIndex(p.seriesIndex);return l=m&&m.getDataParams(p.dataIndex,p.dataType,s)||{},!0}else if(p.eventData)return l=si({},p.eventData),!0},!0),l){var c=l.componentType,A=l.componentIndex;(c==="markLine"||c==="markPoint"||c==="markArea")&&(c="series",A=l.seriesIndex);var f=c&&A!=null&&o.getComponent(c,A),h=f&&r[f.mainType==="series"?"_chartsMap":"_componentsMap"][f.__viewId];l.event=a,l.type=n,r._$eventProcessor.eventInfo={targetEl:s,packedEvent:l,model:f,view:h},r.trigger(n,l)}};i.zrEventfulCallAtLast=!0,r._zr.on(n,i,r)}),Mt(LY,function(n,i){r._messageCenter.on(i,function(a){this.trigger(i,a)},r)}),Mt(["selectchanged"],function(n){r._messageCenter.on(n,function(i){this.trigger(n,i)},r)}),qBr(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var r=this.getDom();r&&eCr(this.getDom(),Hxr,"");var n=this,i=n._api,a=n._model;Mt(n._componentsViews,function(o){o.dispose(a,i)}),Mt(n._chartsViews,function(o){o.dispose(a,i)}),n._zr.dispose(),n._dom=n._model=n._chartsMap=n._componentsMap=n._chartsViews=n._componentsViews=n._scheduler=n._api=n._zr=n._throttledZrFlush=n._theme=n._coordSysMgr=n._messageCenter=null,delete D$e[n.id]},t.prototype.resize=function(r){if(!this[Op]){if(this._disposed){this.id;return}this._zr.resize(r);var n=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!n){var i=n.resetOption("media"),a=r&&r.silent;this[Mv]&&(a==null&&(a=this[Mv].silent),i=!0,this[Mv]=null),this[Op]=!0;try{i&&o8(this),Gx.update.call(this,{type:"resize",animation:si({duration:0},r&&r.animation)})}catch(o){throw this[Op]=!1,o}this[Op]=!1,sR.call(this,a),lR.call(this,a)}}},t.prototype.showLoading=function(r,n){if(this._disposed){this.id;return}if(Mo(r)&&(n=r,r=""),r=r||"default",this.hideLoading(),!!Swe[r]){var i=Swe[r](this._api,n),a=this._zr;this._loadingFX=i,a.add(i)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(r){var n=si({},r);return n.type=LY[r.type],n},t.prototype.dispatchAction=function(r,n){if(this._disposed){this.id;return}if(Mo(n)||(n={silent:!!n}),!!NY[r.type]&&this._model){if(this[Op]){this._pendingActions.push(r);return}var i=n.silent;dde.call(this,r,i);var a=n.flush;a?this._zr.flush():a!==!1&&nl.browser.weChat&&this._throttledZrFlush(),sR.call(this,i),lR.call(this,i)}},t.prototype.updateLabelLayout=function(){Qw.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(r){if(this._disposed){this.id;return}var n=r.seriesIndex,i=this.getModel(),a=i.getSeriesByIndex(n);a.appendData(r),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=function(){o8=function(A){var f=A._scheduler;f.restorePipelines(A._model),f.prepareStageTasks(),Ade(A,!0),Ade(A,!1),f.plan()},Ade=function(A,f){for(var h=A._model,g=A._scheduler,p=f?A._componentsViews:A._chartsViews,m=f?A._componentsMap:A._chartsMap,b=A._zr,C=A._api,E=0;Ef.get("hoverLayerThreshold")&&!nl.node&&!nl.worker&&f.eachSeries(function(m){if(!m.preventUsingHoverLayer){var b=A._chartsMap[m.__viewId];b.__alive&&b.eachRendered(function(C){C.states.emphasis&&(C.states.emphasis.hoverLayer=!0)})}})}function o(A,f){var h=A.get("blendMode")||null;f.eachRendered(function(g){g.isGroup||(g.style.blend=h)})}function s(A,f){if(!A.preventAutoZ){var h=A.get("z")||0,g=A.get("zlevel")||0;f.eachRendered(function(p){return l(p,h,g,-1/0),!0})}}function l(A,f,h,g){var p=A.getTextContent(),m=A.getTextGuideLine(),b=A.isGroup;if(b)for(var C=A.childrenRef(),E=0;E0?{duration:p,delay:h.get("delay"),easing:h.get("easing")}:null;f.eachRendered(function(b){if(b.states&&b.states.emphasis){if(E9(b))return;if(b instanceof tl&&fIr(b),b.__dirty){var C=b.prevStates;C&&b.useStates(C)}if(g){b.stateTransition=m;var E=b.getTextContent(),_=b.getTextGuideLine();E&&(E.stateTransition=m),_&&(_.stateTransition=m)}b.__dirty&&i(b)}})}_$e=function(A){return new(function(f){Wn(h,f);function h(){return f!==null&&f.apply(this,arguments)||this}return h.prototype.getCoordinateSystems=function(){return A._coordSysMgr.getCoordinateSystems()},h.prototype.getComponentByElement=function(g){for(;g;){var p=g.__ecComponentInfo;if(p!=null)return A._model.getComponent(p.mainType,p.index);g=g.parent}},h.prototype.enterEmphasis=function(g,p){oB(g,p),ey(A)},h.prototype.leaveEmphasis=function(g,p){sB(g,p),ey(A)},h.prototype.enterBlur=function(g){z0t(g),ey(A)},h.prototype.leaveBlur=function(g){E5e(g),ey(A)},h.prototype.enterSelect=function(g){K0t(g),ey(A)},h.prototype.leaveSelect=function(g){V0t(g),ey(A)},h.prototype.getModel=function(){return A.getModel()},h.prototype.getViewOfComponentModel=function(g){return A.getViewOfComponentModel(g)},h.prototype.getViewOfSeriesModel=function(g){return A.getViewOfSeriesModel(g)},h}(Pvt))(A)}}(),t}(jy),Y5e=Lxr.prototype;Y5e.on=Qmt("on");Y5e.off=Qmt("off");Y5e.one=function(e,t,r){var n=this;function i(){for(var a=[],o=0;o=0)){F$e.push(r);var a=fmt.wrapStageHandler(r,i);a.__prio=t,a.__raw=r,e.push(a)}}function Lmt(e,t){Swe[e]=t}function Kxr(e,t,r){var n=Bxr("registerMap");n&&n(e,t,r)}var Vxr=sBr;yQ(W5e,FBr);yQ(JZ,RBr);yQ(JZ,MBr);yQ(W5e,WBr);yQ(JZ,YBr);yQ(kmt,Ixr);Omt(Hvt);Nmt(kxr,HEr);Lmt("default",OBr);LC({type:t6,event:t6,update:t6},Xf);LC({type:nV,event:nV,update:nV},Xf);LC({type:sO,event:sO,update:sO},Xf);LC({type:iV,event:iV,update:iV},Xf);LC({type:lO,event:lO,update:lO},Xf);Mmt("light",KBr);Mmt("dark",pmt);var R$e=[],Wxr={registerPreprocessor:Omt,registerProcessor:Nmt,registerPostInit:jxr,registerPostUpdate:Gxr,registerUpdateLifecycle:q5e,registerAction:LC,registerCoordinateSystem:$xr,registerLayout:zxr,registerVisual:yQ,registerTransform:Vxr,registerLoading:Lmt,registerMap:Kxr,registerImpl:Exr,PRIORITY:Nxr,ComponentModel:dl,ComponentView:xA,SeriesModel:Lc,ChartView:cc,registerComponentModel:function(e){dl.registerClass(e)},registerComponentView:function(e){xA.registerClass(e)},registerSeriesModel:function(e){Lc.registerClass(e)},registerChartView:function(e){cc.registerClass(e)},registerSubTypeDefaulter:function(e,t){dl.registerSubTypeDefaulter(e,t)},registerPainter:function(e,t){Dwr(e,t)}};function zs(e){if(Bi(e)){Mt(e,function(t){zs(t)});return}Rs(R$e,e)>=0||(R$e.push(e),Bo(e)&&(e={install:e}),e.install(Wxr))}function uR(e){return e==null?0:e.length||1}function M$e(e){return e}var lB=function(){function e(t,r,n,i,a,o){this._old=t,this._new=r,this._oldKeyGetter=n||M$e,this._newKeyGetter=i||M$e,this.context=a,this._diffModeMultiple=o==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,r=this._new,n={},i=new Array(t.length),a=new Array(r.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(r,n,a,"_newKeyGetter");for(var o=0;o1){var c=l.shift();l.length===1&&(n[s]=l[0]),this._update&&this._update(c,o)}else u===1?(n[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(a,n)},e.prototype._executeMultiple=function(){var t=this._old,r=this._new,n={},i={},a=[],o=[];this._initIndexMap(t,n,a,"_oldKeyGetter"),this._initIndexMap(r,i,o,"_newKeyGetter");for(var s=0;s1&&f===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(A===1&&f>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(A===1&&f===1)this._update&&this._update(c,u),i[l]=null;else if(A>1&&f>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(A>1)for(var h=0;h1)for(var s=0;s30}var cR=Mo,$x=Ti,e3r=typeof Int32Array>"u"?Array:Int32Array,t3r="e\0\0",O$e=-1,r3r=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],n3r=["_approximateExtent"],N$e,L$,AR,fR,vde,hR,mde,W0=function(){function e(t,r){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;Umt(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},l=!1,u={},c=0;c=r)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===Gy;if(l&&!i.pure)for(var u=[],c=t;c0},e.prototype.ensureUniqueItemVisual=function(t,r){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[r];return a==null&&(a=this.getVisual(r),Bi(a)?a=a.slice():cR(a)&&(a=si({},a)),i[r]=a),a},e.prototype.setItemVisual=function(t,r,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,cR(r)?si(i,r):i[r]=n},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,r){cR(t)?si(this._layout,t):this._layout[t]=r},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,r,n){this._itemLayouts[t]=n?si(this._itemLayouts[t]||{},r):r},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,r){var n=this.hostModel&&this.hostModel.seriesIndex;awe(n,this.dataType,t,r),this._graphicEls[t]=r},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,r){Mt(this._graphicEls,function(n,i){n&&t&&t.call(r,n,i)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:$x(this.dimensions,this._getDimInfo,this),this.hostModel)),vde(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,r){var n=this[t];Bo(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return r.apply(this,[i].concat(s5e(arguments)))})},e.internalField=function(){N$e=function(t){var r=t._invertedIndicesMap;Mt(r,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=r[i]=new e3r(o.categories.length);for(var l=0;l1&&(l+="__ec__"+c),i[r]=l}}}(),e}();function hP(e,t){H5e(e)||(e=j5e(e)),t=t||{};var r=t.coordDimensions||[],n=t.dimensionsDefine||e.dimensionsDefine||[],i=ao(),a=[],o=a3r(e,r,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Gmt(o),l=n===e.dimensionsDefine,u=l?jmt(e):Hmt(n),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(e,o));for(var A=ao(c),f=new Xvt(o),h=0;h0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function a3r(e,t,r,n){var i=Math.max(e.dimensionsDetectedCount||1,t.length,r.length,n||0);return Mt(t,function(a){var o;Mo(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function o3r(e,t,r){if(r||t.hasKey(e)){for(var n=0;t.hasKey(e+n);)n++;e+=n}return t.set(e,!0),e}var s3r=function(){function e(t){this.coordSysDims=[],this.axisMap=ao(),this.categoryAxisMap=ao(),this.coordSysName=t}return e}();function l3r(e){var t=e.get("coordinateSystem"),r=new s3r(t),n=u3r[t];if(n)return n(e,r,r.axisMap,r.categoryAxisMap),r}var u3r={cartesian2d:function(e,t,r,n){var i=e.getReferringComponents("xAxis",Sh).models[0],a=e.getReferringComponents("yAxis",Sh).models[0];t.coordSysDims=["x","y"],r.set("x",i),r.set("y",a),s8(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),s8(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,r,n){var i=e.getReferringComponents("singleAxis",Sh).models[0];t.coordSysDims=["single"],r.set("single",i),s8(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(e,t,r,n){var i=e.getReferringComponents("polar",Sh).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],r.set("radius",a),r.set("angle",o),s8(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),s8(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,r,n){t.coordSysDims=["lng","lat"]},parallel:function(e,t,r,n){var i=e.ecModel,a=i.getComponent("parallel",e.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();Mt(a.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];r.set(c,u),s8(u)&&(n.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})}};function s8(e){return e.get("type")==="category"}function c3r(e,t,r){r=r||{};var n=r.byIndex,i=r.stackedCoordDimension,a,o,s;A3r(t)?a=t:(o=t.schema,a=o.dimensions,s=t.store);var l=!!(e&&e.get("stack")),u,c,A,f;if(Mt(a,function(C,E){Oa(C)&&(a[E]=C={name:C}),l&&!C.isExtraCoord&&(!n&&!u&&C.ordinalMeta&&(u=C),!c&&C.type!=="ordinal"&&C.type!=="time"&&(!i||i===C.coordDim)&&(c=C))}),c&&!n&&!u&&(n=!0),c){A="__\0ecstackresult_"+e.id,f="__\0ecstackedover_"+e.id,u&&(u.createInvertedIndices=!0);var h=c.coordDim,g=c.type,p=0;Mt(a,function(C){C.coordDim===h&&p++});var m={name:A,coordDim:h,coordDimIndex:p,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},b={name:f,coordDim:f,coordDimIndex:p+1,type:g,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};o?(s&&(m.storeDimIndex=s.ensureCalculationDimension(f,g),b.storeDimIndex=s.ensureCalculationDimension(A,g)),o.appendCalculationDimension(m),o.appendCalculationDimension(b)):(a.push(m),a.push(b))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:n,stackedOverDimension:f,stackResultDimension:A}}function A3r(e){return!Umt(e.schema)}function S5(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function $mt(e,t){return S5(e,t)?e.getCalculationInfo("stackResultDimension"):t}function f3r(e,t){var r=e.get("coordinateSystem"),n=AP.get(r),i;return t&&t.coordSysDims&&(i=Ti(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var l=s.get("type");o.type=UY(l)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function h3r(e,t,r){var n,i;return r&&Mt(e,function(a,o){var s=a.coordDim,l=r.categoryAxisMap.get(s);l&&(n==null&&(n=o),a.ordinalMeta=l.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(e[n].otherDims.itemName=0),n}function kB(e,t,r){r=r||{};var n=t.getSourceManager(),i,a=!1;e?(a=!0,i=j5e(e)):(i=n.getSource(),a=i.sourceFormat===Gy);var o=l3r(t),s=f3r(t,o),l=r.useEncodeDefaulter,u=Bo(l)?l:l?us(Mvt,s,t):null,c={coordDimensions:s,generateCoord:r.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!a},A=hP(i,c),f=h3r(A.dimensions,r.createInvertedIndices,o),h=a?null:n.getSharedDataStore(A),g=c3r(t,{schema:A,store:h}),p=new W0(A,t);p.setCalculationInfo(g);var m=f!=null&&d3r(i)?function(b,C,E,_){return _===f?E:this.defaultDimValueGetter(b,C,E,_)}:null;return p.hasItemOption=!1,p.initData(a?i:h,null,m),p}function d3r(e){if(e.sourceFormat===Gy){var t=g3r(e.data||[]);return!Bi(AT(t))}}function g3r(e){for(var t=0;tr[1]&&(r[1]=t[1])},e.prototype.unionExtentFromData=function(t,r){this.unionExtent(t.getApproximateExtent(r))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,r){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(r)||(n[1]=r)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e}();TZ(PC);var p3r=0,kwe=function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++p3r}return e.createByAxisModel=function(t){var r=t.option,n=r.data,i=n&&Ti(n,v3r);return new e({categories:i,needCollect:!i,deduplication:r.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var r,n=this._needCollect;if(!Oa(t)&&!n)return t;if(n&&!this._deduplication)return r=this.categories.length,this.categories[r]=t,r;var i=this._getOrCreateMap();return r=i.get(t),r==null&&(n?(r=this.categories.length,this.categories[r]=t,i.set(t,r)):r=NaN),r},e.prototype._getOrCreateMap=function(){return this._map||(this._map=ao(this.categories))},e}();function v3r(e){return Mo(e)&&e.value!=null?e.value:e+""}function Qwe(e){return e.type==="interval"||e.type==="log"}function m3r(e,t,r,n){var i={},a=e[1]-e[0],o=i.interval=w0t(a/t);r!=null&&on&&(o=i.interval=n);var s=i.intervalPrecision=zmt(o),l=i.niceTickExtent=[kf(Math.ceil(e[0]/o)*o,s),kf(Math.floor(e[1]/o)*o,s)];return y3r(l,e),i}function yde(e){var t=Math.pow(10,g5e(e)),r=e/t;return r?r===2?r=3:r===3?r=5:r*=2:r=1,kf(r*t)}function zmt(e){return Ww(e)+2}function L$e(e,t,r){e[t]=Math.max(Math.min(e[t],r[1]),r[0])}function y3r(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),L$e(e,0,t),L$e(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function XZ(e,t){return e>=t[0]&&e<=t[1]}function ZZ(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function eee(e,t){return e*(t[1]-t[0])+t[0]}var tee=function(e){Wn(t,e);function t(r){var n=e.call(this,r)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new kwe({})),Bi(i)&&(i=new kwe({categories:Ti(i,function(a){return Mo(a)?a.value:a})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return t.prototype.parse=function(r){return r==null?NaN:Oa(r)?this._ordinalMeta.getOrdinal(r):Math.round(r)},t.prototype.contain=function(r){return r=this.parse(r),XZ(r,this._extent)&&this._ordinalMeta.categories[r]!=null},t.prototype.normalize=function(r){return r=this._getTickNumber(this.parse(r)),ZZ(r,this._extent)},t.prototype.scale=function(r){return r=Math.round(eee(r,this._extent)),this.getRawOrdinalNumber(r)},t.prototype.getTicks=function(){for(var r=[],n=this._extent,i=n[0];i<=n[1];)r.push({value:i}),i++;return r},t.prototype.getMinorTicks=function(r){},t.prototype.setSortInfo=function(r){if(r==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var n=r.ordinalNumbers,i=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=Math.min(s,n.length);o=0&&r=0&&r=r},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(PC);PC.registerClass(tee);var L4=kf,uB=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="interval",r._interval=0,r._intervalPrecision=2,r}return t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return XZ(r,this._extent)},t.prototype.normalize=function(r){return ZZ(r,this._extent)},t.prototype.scale=function(r){return eee(r,this._extent)},t.prototype.setExtent=function(r,n){var i=this._extent;isNaN(r)||(i[0]=parseFloat(r)),isNaN(n)||(i[1]=parseFloat(n))},t.prototype.unionExtent=function(r){var n=this._extent;r[0]n[1]&&(n[1]=r[1]),this.setExtent(n[0],n[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(r){this._interval=r,this._niceExtent=this._extent.slice(),this._intervalPrecision=zmt(r)},t.prototype.getTicks=function(r){var n=this._interval,i=this._extent,a=this._niceExtent,o=this._intervalPrecision,s=[];if(!n)return s;var l=1e4;i[0]l)return[];var c=s.length?s[s.length-1].value:a[1];return i[1]>c&&(r?s.push({value:L4(c+n,o)}):s.push({value:i[1]})),s},t.prototype.getMinorTicks=function(r){for(var n=this.getTicks(!0),i=[],a=this.getExtent(),o=1;oa[0]&&h0&&(a=a===null?s:Math.min(a,s))}r[n]=a}}return r}function Ymt(e){var t=C3r(e),r=[];return Mt(e,function(n){var i=n.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=t[l],c=Math.abs(o[1]-o[0]),A=a.scale.getExtent(),f=Math.abs(A[1]-A[0]);s=u?c/f*u:c}else{var h=n.getData();s=Math.abs(o[1]-o[0])/h.count()}var g=Ba(n.get("barWidth"),s),p=Ba(n.get("barMaxWidth"),s),m=Ba(n.get("barMinWidth")||(e1t(n)?.5:1),s),b=n.get("barGap"),C=n.get("barCategoryGap");r.push({bandWidth:s,barWidth:g,barMaxWidth:p,barMinWidth:m,barGap:b,barCategoryGap:C,axisKey:X5e(a),stackId:Vmt(n)})}),qmt(r)}function qmt(e){var t={};Mt(e,function(n,i){var a=n.axisKey,o=n.bandWidth,s=t[a]||{bandWidth:o,remainedWidth:o,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},l=s.stacks;t[a]=s;var u=n.stackId;l[u]||s.autoWidthCount++,l[u]=l[u]||{width:0,maxWidth:0};var c=n.barWidth;c&&!l[u].width&&(l[u].width=c,c=Math.min(s.remainedWidth,c),s.remainedWidth-=c);var A=n.barMaxWidth;A&&(l[u].maxWidth=A);var f=n.barMinWidth;f&&(l[u].minWidth=f);var h=n.barGap;h!=null&&(s.gap=h);var g=n.barCategoryGap;g!=null&&(s.categoryGap=g)});var r={};return Mt(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=n.categoryGap;if(s==null){var l=pl(a).length;s=Math.max(35-l*4,15)+"%"}var u=Ba(s,o),c=Ba(n.gap,1),A=n.remainedWidth,f=n.autoWidthCount,h=(A-u)/(f+(f-1)*c);h=Math.max(h,0),Mt(a,function(b){var C=b.maxWidth,E=b.minWidth;if(b.width){var _=b.width;C&&(_=Math.min(_,C)),E&&(_=Math.max(_,E)),b.width=_,A-=_+c*_,f--}else{var _=h;C&&C<_&&(_=Math.min(C,A)),E&&E>_&&(_=E),_!==h&&(b.width=_,A-=_+c*_,f--)}}),h=(A-u)/(f+(f-1)*c),h=Math.max(h,0);var g=0,p;Mt(a,function(b,C){b.width||(b.width=h),p=b,g+=b.width*(1+c)}),p&&(g-=p.width*c);var m=-g/2;Mt(a,function(b,C){r[i][C]=r[i][C]||{bandWidth:o,offset:m,width:b.width},m+=b.width*(1+c)})}),r}function I3r(e,t,r){if(e&&t){var n=e[X5e(t)];return n}}function Jmt(e,t){var r=Wmt(e,t),n=Ymt(r);Mt(r,function(i){var a=i.getData(),o=i.coordinateSystem,s=o.getBaseAxis(),l=Vmt(i),u=n[X5e(s)][l],c=u.offset,A=u.width;a.setLayout({bandWidth:u.bandWidth,offset:c,size:A})})}function Xmt(e){return{seriesType:e,plan:yT(),reset:function(t){if(Zmt(t)){var r=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),a=n.getOtherAxis(i),o=r.getDimensionIndex(r.mapDimension(a.dim)),s=r.getDimensionIndex(r.mapDimension(i.dim)),l=t.get("showBackground",!0),u=r.mapDimension(a.dim),c=r.getCalculationInfo("stackResultDimension"),A=S5(r,u)&&!!r.getCalculationInfo("stackedOnSeries"),f=a.isHorizontal(),h=E3r(i,a),g=e1t(t),p=t.get("barMinHeight")||0,m=c&&r.getDimensionIndex(c),b=r.getLayout("size"),C=r.getLayout("offset");return{progress:function(E,_){for(var F=E.count,M=g&&qw(F*3),N=g&&l&&qw(F*3),P=g&&qw(F),j=n.master.getRect(),z=f?j.width:j.height,W,Y=_.getStore(),ee=0;(W=E.next())!=null;){var q=Y.get(A?m:o,W),ae=Y.get(s,W),se=h,de=void 0;A&&(de=+q-Y.get(o,W));var Ae=void 0,be=void 0,Le=void 0,Ne=void 0;if(f){var ue=n.dataToPoint([q,ae]);if(A){var Ke=n.dataToPoint([de,ae]);se=Ke[0]}Ae=se,be=ue[1]+C,Le=ue[0]-se,Ne=b,Math.abs(Le)0?r:1:r))}var B3r=function(e,t,r,n){for(;r>>1;e[i][1]i&&(this._approxInterval=i);var s=P$.length,l=Math.min(B3r(P$,this._approxInterval,0,s),s-1);this._interval=P$[l][1],this._minLevelUnit=P$[Math.max(l-1,0)][0]},t.prototype.parse=function(r){return Xl(r)?r:+CC(r)},t.prototype.contain=function(r){return XZ(this.parse(r),this._extent)},t.prototype.normalize=function(r){return ZZ(this.parse(r),this._extent)},t.prototype.scale=function(r){return eee(r,this._extent)},t.type="time",t}(uB),P$=[["second",F5e],["minute",R5e],["hour",cO],["quarter-day",cO*6],["half-day",cO*12],["day",wy*1.2],["half-week",wy*3.5],["week",wy*7],["month",wy*31],["quarter",wy*95],["half-year",kGe/2],["year",kGe]];function x3r(e,t,r,n){var i=CC(t),a=CC(r),o=function(g){return _Ge(i,g,n)===_Ge(a,g,n)},s=function(){return o("year")},l=function(){return s()&&o("month")},u=function(){return l()&&o("day")},c=function(){return u()&&o("hour")},A=function(){return c()&&o("minute")},f=function(){return A()&&o("second")},h=function(){return f()&&o("millisecond")};switch(e){case"year":return s();case"month":return l();case"day":return u();case"hour":return c();case"minute":return A();case"second":return f();case"millisecond":return h()}}function S3r(e,t){return e/=wy,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function k3r(e){var t=30*wy;return e/=t,e>6?6:e>3?3:e>2?2:1}function Q3r(e){return e/=cO,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function P$e(e,t){return e/=t?R5e:F5e,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function _3r(e){return w0t(e)}function T3r(e,t,r){var n=new Date(e);switch(x9(t)){case"year":case"month":n[bvt(r)](0);case"day":n[wvt(r)](1);case"hour":n[Cvt(r)](0);case"minute":n[Ivt(r)](0);case"second":n[Evt(r)](0),n[Bvt(r)](0)}return n.getTime()}function D3r(e,t,r,n){var i=1e4,a=mvt,o=0;function s(z,W,Y,ee,q,ae,se){for(var de=new Date(W),Ae=W,be=de[ee]();Ae1&&ae===0&&Y.unshift({value:Y[0].value-Ae})}}for(var ae=0;ae=n[0]&&C<=n[1]&&A++)}var E=(n[1]-n[0])/t;if(A>E*1.5&&f>E/1.5||(u.push(m),A>E||e===a[h]))break}c=[]}}}for(var _=Cu(Ti(u,function(z){return Cu(z,function(W){return W.value>=n[0]&&W.value<=n[1]&&!W.notAdd})}),function(z){return z.length>0}),F=[],M=_.length-1,h=0;h<_.length;++h)for(var N=_[h],P=0;P0;)a*=10;var s=[kf(M3r(n[0]/a)*a),kf(R3r(n[1]/a)*a)];this._interval=a,this._niceExtent=s}},t.prototype.calcNiceExtent=function(r){fO.calcNiceExtent.call(this,r),this._fixMin=r.fixMin,this._fixMax=r.fixMax},t.prototype.parse=function(r){return r},t.prototype.contain=function(r){return r=Cb(r)/Cb(this.base),XZ(r,this._extent)},t.prototype.normalize=function(r){return r=Cb(r)/Cb(this.base),ZZ(r,this._extent)},t.prototype.scale=function(r){return r=eee(r,this._extent),U$(this.base,r)},t.type="log",t}(PC),t1t=eSe.prototype;t1t.getMinorTicks=fO.getMinorTicks;t1t.getLabel=fO.getLabel;function H$(e,t){return F3r(e,Ww(t))}PC.registerClass(eSe);var O3r=function(){function e(t,r,n){this._prepareParams(t,r,n)}return e.prototype._prepareParams=function(t,r,n){n[1]0&&l>0&&!u&&(s=0),s<0&&l<0&&!c&&(l=0));var f=this._determinedMin,h=this._determinedMax;return f!=null&&(s=f,u=!0),h!=null&&(l=h,c=!0),{min:s,max:l,minFixed:u,maxFixed:c,isBlank:A}},e.prototype.modifyDataMinMax=function(t,r){this[L3r[t]]=r},e.prototype.setDeterminedMinMax=function(t,r){var n=N3r[t];this[n]=r},e.prototype.freeze=function(){this.frozen=!0},e}(),N3r={min:"_determinedMin",max:"_determinedMax"},L3r={min:"_dataMin",max:"_dataMax"};function r1t(e,t,r){var n=e.rawExtentInfo;return n||(n=new O3r(e,t,r),e.rawExtentInfo=n,n)}function j$(e,t){return t==null?null:mN(t)?NaN:e.parse(t)}function n1t(e,t){var r=e.type,n=r1t(e,t,e.getExtent()).calculate();e.setBlank(n.isBlank);var i=n.min,a=n.max,o=t.ecModel;if(o&&r==="time"){var s=Wmt("bar",o),l=!1;if(Mt(s,function(A){l=l||A.getBaseAxis()===t.axis}),l){var u=Ymt(s),c=P3r(i,a,t,u);i=c.min,a=c.max}}return{extent:[i,a],fixMin:n.minFixed,fixMax:n.maxFixed}}function P3r(e,t,r,n){var i=r.axis.getExtent(),a=Math.abs(i[1]-i[0]),o=I3r(n,r.axis);if(o===void 0)return{min:e,max:t};var s=1/0;Mt(o,function(h){s=Math.min(h.offset,s)});var l=-1/0;Mt(o,function(h){l=Math.max(h.offset+h.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=t-e,A=1-(s+l)/a,f=c/A-c;return t+=f*(l/u),e-=f*(s/u),{min:e,max:t}}function d7(e,t){var r=t,n=n1t(e,r),i=n.extent,a=r.get("splitNumber");e instanceof eSe&&(e.base=r.get("logBase"));var o=e.type,s=r.get("interval"),l=o==="interval"||o==="time";e.setExtent(i[0],i[1]),e.calcNiceExtent({splitNumber:a,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?r.get("minInterval"):null,maxInterval:l?r.get("maxInterval"):null}),s!=null&&e.setInterval&&e.setInterval(s)}function ree(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new tee({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new Z5e({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(PC.getClass(t)||uB)}}function U3r(e){var t=e.scale.getExtent(),r=t[0],n=t[1];return!(r>0&&n>0||r<0&&n<0)}function CT(e){var t=e.getLabelModel().get("formatter"),r=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?function(n){return function(i,a){return e.scale.getFormattedLabel(i,a,n)}}(t):Oa(t)?function(n){return function(i){var a=e.scale.getLabel(i),o=n.replace("{value}",a??"");return o}}(t):Bo(t)?function(n){return function(i,a){return r!=null&&(a=i.value-r),n(tSe(e,i),a,i.level!=null?{level:i.level}:null)}}(t):function(n){return e.scale.getLabel(n)}}function tSe(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function H3r(e){var t=e.model,r=e.scale;if(!(!t.get(["axisLabel","show"])||r.isBlank())){var n,i,a=r.getExtent();r instanceof tee?i=r.count():(n=r.getTicks(),i=n.length);var o=e.getLabelModel(),s=CT(e),l,u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;ce[1]&&(e[1]=i[1])})}var dP=function(){function e(){}return e.prototype.getNeedCrossZero=function(){var t=this.option;return!t.scale},e.prototype.getCoordSysModel=function(){},e}(),$3r=1e-8;function H$e(e,t){return Math.abs(e-t)<$3r}function hk(e,t,r){var n=0,i=e[0];if(!i)return!1;for(var a=1;ai&&(n=o,i=l)}if(n)return K3r(n.exterior);var u=this.getBoundingRect();return[u.x+u.width/2,u.y+u.height/2]},t.prototype.getBoundingRect=function(r){var n=this._rect;if(n&&!r)return n;var i=[1/0,1/0],a=[-1/0,-1/0],o=this.geometries;return Mt(o,function(s){s.type==="polygon"?j$e(s.exterior,i,a,r):Mt(s.points,function(l){j$e(l,i,a,r)})}),isFinite(i[0])&&isFinite(i[1])&&isFinite(a[0])&&isFinite(a[1])||(i[0]=i[1]=a[0]=a[1]=0),n=new xs(i[0],i[1],a[0]-i[0],a[1]-i[1]),r||(this._rect=n),n},t.prototype.contain=function(r){var n=this.getBoundingRect(),i=this.geometries;if(!n.contain(r[0],r[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,n.push([s/r,l/r])}return n}function Y3r(e,t){return e=W3r(e),Ti(Cu(e.features,function(r){return r.geometry&&r.properties&&r.geometry.coordinates.length>0}),function(r){var n=r.properties,i=r.geometry,a=[];switch(i.type){case"Polygon":var o=i.coordinates;a.push(new G$e(o[0],o.slice(1)));break;case"MultiPolygon":Mt(i.coordinates,function(l){l[0]&&a.push(new G$e(l[0],l.slice(1)))});break;case"LineString":a.push(new $$e([i.coordinates]));break;case"MultiLineString":a.push(new $$e(i.coordinates))}var s=new o1t(n[t||"name"],a,n.cp);return s.properties=n,s})}var RN=Nl();function l1t(e,t){var r=Ti(t,function(n){return e.scale.parse(n)});return e.type==="time"&&r.length>0&&(r.sort(),r.unshift(r[0]),r.push(r[r.length-1])),r}function q3r(e){var t=e.getLabelModel().get("customValues");if(t){var r=CT(e),n=e.scale.getExtent(),i=l1t(e,t),a=Cu(i,function(o){return o>=n[0]&&o<=n[1]});return{labels:Ti(a,function(o){var s={value:o};return{formattedLabel:r(s),rawLabel:e.scale.getLabel(s),tickValue:o}})}}return e.type==="category"?X3r(e):e5r(e)}function J3r(e,t){var r=e.getTickModel().get("customValues");if(r){var n=e.scale.getExtent(),i=l1t(e,r);return{ticks:Cu(i,function(a){return a>=n[0]&&a<=n[1]})}}return e.type==="category"?Z3r(e,t):{ticks:Ti(e.scale.getTicks(),function(a){return a.value})}}function X3r(e){var t=e.getLabelModel(),r=u1t(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:r.labelCategoryInterval}:r}function u1t(e,t){var r=c1t(e,"labels"),n=rSe(t),i=A1t(r,n);if(i)return i;var a,o;return Bo(n)?a=d1t(e,n):(o=n==="auto"?t5r(e):n,a=h1t(e,o)),f1t(r,n,{labels:a,labelCategoryInterval:o})}function Z3r(e,t){var r=c1t(e,"ticks"),n=rSe(t),i=A1t(r,n);if(i)return i;var a,o;if((!t.get("show")||e.scale.isBlank())&&(a=[]),Bo(n))a=d1t(e,n,!0);else if(n==="auto"){var s=u1t(e,e.getLabelModel());o=s.labelCategoryInterval,a=Ti(s.labels,function(l){return l.tickValue})}else o=n,a=h1t(e,o,!0);return f1t(r,n,{ticks:a,tickCategoryInterval:o})}function e5r(e){var t=e.scale.getTicks(),r=CT(e);return{labels:Ti(t,function(n,i){return{level:n.level,formattedLabel:r(n,i),rawLabel:e.scale.getLabel(n),tickValue:n.value}})}}function c1t(e,t){return RN(e)[t]||(RN(e)[t]=[])}function A1t(e,t){for(var r=0;r40&&(s=Math.max(1,Math.floor(o/40)));for(var l=a[0],u=e.dataToCoord(l+1)-e.dataToCoord(l),c=Math.abs(u*Math.cos(n)),A=Math.abs(u*Math.sin(n)),f=0,h=0;l<=a[1];l+=s){var g=0,p=0,m=nP(r({value:l}),t.font,"center","top");g=m.width*1.3,p=m.height*1.3,f=Math.max(f,g,7),h=Math.max(h,p,7)}var b=f/c,C=h/A;isNaN(b)&&(b=1/0),isNaN(C)&&(C=1/0);var E=Math.max(0,Math.floor(Math.min(b,C))),_=RN(e.model),F=e.getExtent(),M=_.lastAutoInterval,N=_.lastTickCount;return M!=null&&N!=null&&Math.abs(M-E)<=1&&Math.abs(N-o)<=1&&M>E&&_.axisExtent0===F[0]&&_.axisExtent1===F[1]?E=M:(_.lastTickCount=o,_.lastAutoInterval=E,_.axisExtent0=F[0],_.axisExtent1=F[1]),E}function n5r(e){var t=e.getLabelModel();return{axisRotate:e.getRotate?e.getRotate():e.isHorizontal&&!e.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function h1t(e,t,r){var n=CT(e),i=e.scale,a=i.getExtent(),o=e.getLabelModel(),s=[],l=Math.max((t||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 A=i1t(e),f=o.get("showMinLabel")||A,h=o.get("showMaxLabel")||A;f&&u!==a[0]&&p(a[0]);for(var g=u;g<=a[1];g+=l)p(g);h&&g-l!==a[1]&&p(a[1]);function p(m){var b={value:m};s.push(r?m:{formattedLabel:n(b),rawLabel:i.getLabel(b),tickValue:m})}return s}function d1t(e,t,r){var n=e.scale,i=CT(e),a=[];return Mt(n.getTicks(),function(o){var s=n.getLabel(o),l=o.value;t(o.value,s)&&a.push(r?l:{formattedLabel:i(o),rawLabel:s,tickValue:l})}),a}var z$e=[0,1],y2=function(){function e(t,r,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=r,this._extent=n||[0,0]}return e.prototype.contain=function(t){var r=this._extent,n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return t>=n&&t<=i},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return y0t(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,r){var n=this._extent;n[0]=t,n[1]=r},e.prototype.dataToCoord=function(t,r){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&i.type==="ordinal"&&(n=n.slice(),K$e(n,i.count())),Qu(t,z$e,n,r)},e.prototype.coordToData=function(t,r){var n=this._extent,i=this.scale;this.onBand&&i.type==="ordinal"&&(n=n.slice(),K$e(n,i.count()));var a=Qu(t,n,z$e,r);return this.scale.scale(a)},e.prototype.pointToData=function(t,r){},e.prototype.getTicksCoords=function(t){t=t||{};var r=t.tickModel||this.getTickModel(),n=J3r(this,r),i=n.ticks,a=Ti(i,function(s){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(s):s),tickValue:s}},this),o=r.get("alignWithLabel");return i5r(this,a,o,t.clamp),a},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),r=t.get("splitNumber");r>0&&r<100||(r=5);var n=this.scale.getMinorTicks(r),i=Ti(n,function(a){return Ti(a,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},e.prototype.getViewLabels=function(){return q3r(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,r=this.scale.getExtent(),n=r[1]-r[0]+(this.onBand?1:0);n===0&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},e.prototype.calculateCategoryInterval=function(){return r5r(this)},e}();function K$e(e,t){var r=e[1]-e[0],n=t,i=r/n/2;e[0]+=i,e[1]-=i}function i5r(e,t,r,n){var i=t.length;if(!e.onBand||r||!i)return;var a=e.getExtent(),o,s;if(i===1)t[0].coord=a[0],o=t[1]={coord:a[1],tickValue:t[0].tickValue};else{var l=t[i-1].tickValue-t[0].tickValue,u=(t[i-1].coord-t[0].coord)/l;Mt(t,function(h){h.coord-=u/2});var c=e.scale.getExtent();s=1+c[1]-t[i-1].tickValue,o={coord:t[i-1].coord+u*s,tickValue:c[1]+1},t.push(o)}var A=a[0]>a[1];f(t[0].coord,a[0])&&(n?t[0].coord=a[0]:t.shift()),n&&f(a[0],t[0].coord)&&t.unshift({coord:a[0]}),f(a[1],o.coord)&&(n?o.coord=a[1]:t.pop()),n&&f(o.coord,a[1])&&t.push({coord:a[1]});function f(h,g){return h=kf(h),g=kf(g),A?h>g:hi&&(i+=dR);var h=Math.atan2(s,o);if(h<0&&(h+=dR),h>=n&&h<=i||h+dR>=n&&h+dR<=i)return l[0]=c,l[1]=A,u-r;var g=r*Math.cos(n)+e,p=r*Math.sin(n)+t,m=r*Math.cos(i)+e,b=r*Math.sin(i)+t,C=(g-o)*(g-o)+(p-s)*(p-s),E=(m-o)*(m-o)+(b-s)*(b-s);return C0){t=t/180*Math.PI,Vb.fromArray(e[0]),Dc.fromArray(e[1]),Kf.fromArray(e[2]),Cs.sub(Jw,Vb,Dc),Cs.sub(jw,Kf,Dc);var r=Jw.len(),n=jw.len();if(!(r<.001||n<.001)){Jw.scale(1/r),jw.scale(1/n);var i=Jw.dot(jw),a=Math.cos(t);if(a1&&Cs.copy(O0,Kf),O0.toArray(e[1])}}}}function c5r(e,t,r){if(r<=180&&r>0){r=r/180*Math.PI,Vb.fromArray(e[0]),Dc.fromArray(e[1]),Kf.fromArray(e[2]),Cs.sub(Jw,Dc,Vb),Cs.sub(jw,Kf,Dc);var n=Jw.len(),i=jw.len();if(!(n<.001||i<.001)){Jw.scale(1/n),jw.scale(1/i);var a=Jw.dot(t),o=Math.cos(r);if(a=l)Cs.copy(O0,Kf);else{O0.scaleAndAdd(jw,s/Math.tan(Math.PI/2-c));var A=Kf.x!==Dc.x?(O0.x-Dc.x)/(Kf.x-Dc.x):(O0.y-Dc.y)/(Kf.y-Dc.y);if(isNaN(A))return;A<0?Cs.copy(O0,Dc):A>1&&Cs.copy(O0,Kf)}O0.toArray(e[1])}}}}function Cde(e,t,r,n){var i=r==="normal",a=i?e:e.ensureState(r);a.ignore=t;var o=n.get("smooth");o&&o===!0&&(o=.3),a.shape=a.shape||{},o>0&&(a.shape.smooth=o);var s=n.getModel("lineStyle").getLineStyle();i?e.useStyle(s):a.style=s}function A5r(e,t){var r=t.smooth,n=t.points;if(n)if(e.moveTo(n[0][0],n[0][1]),r>0&&n.length>=3){var i=M3(n[0],n[1]),a=M3(n[1],n[2]);if(!i||!a){e.lineTo(n[1][0],n[1][1]),e.lineTo(n[2][0],n[2][1]);return}var o=Math.min(i,a)*r,s=JK([],n[1],n[0],o/i),l=JK([],n[1],n[2],o/a),u=JK([],s,l,.5);e.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),e.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c0){E(j*P,0,o);var z=j+M;z<0&&_(-z*P,1)}else _(-M*P,1)}}function E(M,N,P){M!==0&&(u=!0);for(var j=N;j0)for(var z=0;z0;z--){var q=P[z-1]*ee;E(-q,z,o)}}}function F(M){var N=M<0?-1:1;M=Math.abs(M);for(var P=Math.ceil(M/(o-1)),j=0;j0?E(P,0,j+1):E(-P,o-j-1,o),M-=P,M<=0)return}return u}function f5r(e,t,r,n){return m1t(e,"x","width",t,r)}function y1t(e,t,r,n){return m1t(e,"y","height",t,r)}function b1t(e){var t=[];e.sort(function(p,m){return m.priority-p.priority});var r=new xs(0,0,0,0);function n(p){if(!p.ignore){var m=p.ensureState("emphasis");m.ignore==null&&(m.ignore=!1)}p.ignore=!0}for(var i=0;i=0&&n.attr(a.oldLayoutSelect),Rs(f,"emphasis")>=0&&n.attr(a.oldLayoutEmphasis)),su(n,u,r,l)}else if(n.attr(u),!dT(n).valueAnimation){var A=ts(n.style.opacity,1);n.style.opacity=0,oA(n,{style:{opacity:A}},r,l)}if(a.oldLayout=u,n.states.select){var h=a.oldLayoutSelect={};G$(h,u,$$),G$(h,n.states.select,$$)}if(n.states.emphasis){var g=a.oldLayoutEmphasis={};G$(g,u,$$),G$(g,n.states.emphasis,$$)}hvt(n,l,c,r,r)}if(i&&!i.ignore&&!i.invisible){var a=g5r(i),o=a.oldLayout,p={points:i.shape.points};o?(i.attr({shape:o}),su(i,{shape:p},r)):(i.setShape(p),i.style.strokePercent=0,oA(i,{style:{strokePercent:1}},r)),a.oldLayout=p}},e}(),Ede=Nl();function v5r(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){var i=Ede(r).labelManager;i||(i=Ede(r).labelManager=new p5r),i.clearLabels()}),e.registerUpdateLifecycle("series:layoutlabels",function(t,r,n){var i=Ede(r).labelManager;n.updatedSeries.forEach(function(a){i.addLabelsOfSeries(r.getViewOfSeriesModel(a))}),i.updateLayoutConfig(r),i.layout(r),i.processLabelsOverall()})}var Bde=Math.sin,xde=Math.cos,w1t=Math.PI,U4=Math.PI*2,m5r=180/w1t,C1t=function(){function e(){}return e.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},e.prototype.moveTo=function(t,r){this._add("M",t,r)},e.prototype.lineTo=function(t,r){this._add("L",t,r)},e.prototype.bezierCurveTo=function(t,r,n,i,a,o){this._add("C",t,r,n,i,a,o)},e.prototype.quadraticCurveTo=function(t,r,n,i){this._add("Q",t,r,n,i)},e.prototype.arc=function(t,r,n,i,a,o){this.ellipse(t,r,n,n,0,i,a,o)},e.prototype.ellipse=function(t,r,n,i,a,o,s,l){var u=s-o,c=!l,A=Math.abs(u),f=U3(A-U4)||(c?u>=U4:-u>=U4),h=u>0?u%U4:u%U4+U4,g=!1;f?g=!0:U3(A)?g=!1:g=h>=w1t==!!c;var p=t+n*xde(o),m=r+i*Bde(o);this._start&&this._add("M",p,m);var b=Math.round(a*m5r);if(f){var C=1/this._p,E=(c?1:-1)*(U4-C);this._add("A",n,i,b,1,+c,t+n*xde(o+E),r+i*Bde(o+E)),C>.01&&this._add("A",n,i,b,0,+c,p,m)}else{var _=t+n*xde(s),F=r+i*Bde(s);this._add("A",n,i,b,+g,+c,_,F)}},e.prototype.rect=function(t,r,n,i){this._add("M",t,r),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(t,r,n,i,a,o,s,l,u){for(var c=[],A=this._p,f=1;f"}function S5r(e){return""}function oSe(e,t){t=t||{};var r=t.newline?` `:"";function n(i){var a=i.children,o=i.tag,s=i.attrs,l=i.text;return x5r(o,s)+(o!=="style"?P0(l):l||"")+(a?""+r+Ti(a,function(u){return n(u)}).join(r)+r:"")+S5r(o)}return n(e)}function k5r(e,t,r){r=r||{};var n=r.newline?` `:"",i=" {"+n,a=n+"}",o=Ti(pl(e),function(l){return l+i+Ti(pl(e[l]),function(u){return u+":"+e[l][u]+";"}).join(n)+a}).join(n),s=Ti(pl(t),function(l){return"@keyframes "+l+i+Ti(pl(t[l]),function(u){return u+i+Ti(pl(t[l][u]),function(c){var A=t[l][u][c];return c==="d"&&(A='path("'+A+'")'),c+":"+A+";"}).join(n)+a}).join(n)+a}).join(n);return!o&&!s?"":[""].join(n)}function Dwe(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function q$e(e,t,r,n){return jd("svg","root",{width:e,height:t,xmlns:I1t,"xmlns:xlink":E1t,version:"1.1",baseProfile:"full",viewBox:n?"0 0 "+e+" "+t:!1},r)}var Q5r=0;function x1t(){return Q5r++}var J$e={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"},W4="transform-origin";function _5r(e,t,r){var n=si({},e.shape);si(n,t),e.buildPath(r,n);var i=new C1t;return i.reset(c0t(e)),r.rebuildPath(i,1),i.generateStr(),i.getStr()}function T5r(e,t){var r=t.originX,n=t.originY;(r||n)&&(e[W4]=r+"px "+n+"px")}var D5r={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function S1t(e,t){var r=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[r]=e,r}function F5r(e,t,r){var n=e.shape.paths,i={},a,o;if(Mt(n,function(l){var u=Dwe(r.zrId);u.animation=!0,nee(l,{},u,!0);var c=u.cssAnims,A=u.cssNodes,f=pl(c),h=f.length;if(h){o=f[h-1];var g=c[o];for(var p in g){var m=g[p];i[p]=i[p]||{d:""},i[p].d+=m.d||""}for(var b in A){var C=A[b].animation;C.indexOf(o)>=0&&(a=C)}}}),!!a){t.d=!1;var s=S1t(i,r);return a.replace(o,s)}}function X$e(e){return Oa(e)?J$e[e]?"cubic-bezier("+J$e[e]+")":f5e(e)?e:"":""}function nee(e,t,r,n){var i=e.animators,a=i.length,o=[];if(e instanceof S5e){var s=F5r(e,t,r);if(s)o.push(s);else if(!a)return}else if(!a)return;for(var l={},u=0;u0}).length){var me=S1t(N,r);return me+" "+C[0]+" both"}}for(var m in l){var s=p(l[m]);s&&o.push(s)}if(o.length){var b=r.zrId+"-cls-"+x1t();r.cssNodes["."+b]={animation:o.join(",")},t.class=b}}function R5r(e,t,r){if(!e.ignore)if(e.isSilent()){var n={"pointer-events":"none"};Z$e(n,t,r)}else{var i=e.states.emphasis&&e.states.emphasis.style?e.states.emphasis.style:{},a=i.fill;if(!a){var o=e.style&&e.style.fill,s=e.states.select&&e.states.select.style&&e.states.select.style.fill,l=e.currentStates.indexOf("select")>=0&&s||o;l&&(a=$2e(l))}var u=i.lineWidth;if(u){var c=!i.strokeNoScale&&e.transform?e.transform[0]:1;u=u/c}var n={cursor:"pointer"};a&&(n.fill=a),i.stroke&&(n.stroke=i.stroke),u&&(n["stroke-width"]=u),Z$e(n,t,r)}}function Z$e(e,t,r,n){var i=JSON.stringify(e),a=r.cssStyleCache[i];a||(a=r.zrId+"-cls-"+x1t(),r.cssStyleCache[i]=a,r.cssNodes["."+a+":hover"]=e),t.class=t.class?t.class+" "+a:a}var MN=Math.round;function k1t(e){return e&&Oa(e.src)}function Q1t(e){return e&&Bo(e.toDataURL)}function sSe(e,t,r,n){I5r(function(i,a){var o=i==="fill"||i==="stroke";o&&u0t(a)?T1t(t,e,i,n):o&&h5e(a)?D1t(r,e,i,n):e[i]=a,o&&n.ssr&&a==="none"&&(e["pointer-events"]="visible")},t,r,!1),H5r(r,e,n)}function lSe(e,t){var r=Fwr(t);r&&(r.each(function(n,i){n!=null&&(e[(Y$e+i).toLowerCase()]=n+"")}),t.isSilent()&&(e[Y$e+"silent"]="true"))}function eze(e){return U3(e[0]-1)&&U3(e[1])&&U3(e[2])&&U3(e[3]-1)}function M5r(e){return U3(e[4])&&U3(e[5])}function uSe(e,t,r){if(t&&!(M5r(t)&&eze(t))){var n=1e4;e.transform=eze(t)?"translate("+MN(t[4]*n)/n+" "+MN(t[5]*n)/n+")":rwr(t)}}function tze(e,t,r){for(var n=e.points,i=[],a=0;a"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";J0(f,m),J0(h,m)}else if(f==null||h==null){var b=function(z,W){if(z){var Y=z.elm,ee=f||W.width,q=h||W.height;z.tag==="pattern"&&(u?(q=1,ee/=a.width):c&&(ee=1,q/=a.height)),z.attrs.width=ee,z.attrs.height=q,Y&&(Y.setAttribute("width",ee),Y.setAttribute("height",q))}},C=y5e(g,null,e,function(z){l||b(M,z),b(A,z)});C&&C.width&&C.height&&(f=f||C.width,h=h||C.height)}A=jd("image","img",{href:g,width:f,height:h}),o.width=f,o.height=h}else i.svgElement&&(A=No(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(A){var E,_;l?E=_=1:u?(_=1,E=o.width/a.width):c?(E=1,_=o.height/a.height):o.patternUnits="userSpaceOnUse",E!=null&&!isNaN(E)&&(o.width=E),_!=null&&!isNaN(_)&&(o.height=_);var F=A0t(i);F&&(o.patternTransform=F);var M=jd("pattern","",o,[A]),N=oSe(M),P=n.patternCache,j=P[N];j||(j=n.zrId+"-p"+n.patternIdx++,P[N]=j,o.id=j,M=n.defs[j]=jd("pattern",j,o,[A])),t[r]=kZ(j)}}function j5r(e,t,r){var n=r.clipPathCache,i=r.defs,a=n[e.id];if(!a){a=r.zrId+"-c"+r.clipPathIdx++;var o={id:a};n[e.id]=a,i[a]=jd("clipPath",a,o,[_1t(e,r)])}t["clip-path"]=kZ(a)}function ize(e){return document.createTextNode(e)}function dk(e,t,r){e.insertBefore(t,r)}function aze(e,t){e.removeChild(t)}function oze(e,t){e.appendChild(t)}function F1t(e){return e.parentNode}function R1t(e){return e.nextSibling}function Sde(e,t){e.textContent=t}var sze=58,G5r=120,$5r=jd("","");function Fwe(e){return e===void 0}function Nw(e){return e!==void 0}function z5r(e,t,r){for(var n={},i=t;i<=r;++i){var a=e[i].key;a!==void 0&&(n[a]=i)}return n}function AM(e,t){var r=e.key===t.key,n=e.tag===t.tag;return n&&r}function ON(e){var t,r=e.children,n=e.tag;if(Nw(n)){var i=e.elm=B1t(n);if(cSe($5r,e),Bi(r))for(t=0;ta?(g=r[l+1]==null?null:r[l+1].elm,M1t(e,g,r,i,l)):$Y(e,t,n,a))}function H8(e,t){var r=t.elm=e.elm,n=e.children,i=t.children;e!==t&&(cSe(e,t),Fwe(t.text)?Nw(n)&&Nw(i)?n!==i&&K5r(r,n,i):Nw(i)?(Nw(e.text)&&Sde(r,""),M1t(r,null,i,0,i.length-1)):Nw(n)?$Y(r,n,0,n.length-1):Nw(e.text)&&Sde(r,""):e.text!==t.text&&(Nw(n)&&$Y(r,n,0,n.length-1),Sde(r,t.text)))}function V5r(e,t){if(AM(e,t))H8(e,t);else{var r=e.elm,n=F1t(r);ON(t),n!==null&&(dk(n,t.elm,R1t(r)),$Y(n,[e],0,0))}return t}var W5r=0,Y5r=function(){function e(t,r,n){if(this.type="svg",this.refreshHover=lze(),this.configLayer=lze(),this.storage=r,this._opts=n=si({},n),this.root=t,this._id="zr"+W5r++,this._oldVNode=q$e(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var a=this._svgDom=this._oldVNode.elm=B1t("svg");cSe(null,this._oldVNode),i.appendChild(a),t.appendChild(i)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",V5r(this._oldVNode,t),this._oldVNode=t}},e.prototype.renderOneToVNode=function(t){return nze(t,Dwe(this._id))},e.prototype.renderToVNode=function(t){t=t||{};var r=this.storage.getDisplayList(!0),n=this._width,i=this._height,a=Dwe(this._id);a.animation=t.animation,a.willUpdate=t.willUpdate,a.compress=t.compress,a.emphasis=t.emphasis,a.ssr=this._opts.ssr;var o=[],s=this._bgVNode=q5r(n,i,this._backgroundColor,a);s&&o.push(s);var l=t.compress?null:this._mainVNode=jd("g","main",{},[]);this._paintList(r,a,l?l.children:o),l&&o.push(l);var u=Ti(pl(a.defs),function(f){return a.defs[f]});if(u.length&&o.push(jd("defs","defs",{},u)),t.animation){var c=k5r(a.cssNodes,a.cssAnims,{newline:!0});if(c){var A=jd("style","stl",{},[],c);o.push(A)}}return q$e(n,i,o,t.useViewBox)},e.prototype.renderToString=function(t){return t=t||{},oSe(this.renderToVNode({animation:ts(t.cssAnimation,!0),emphasis:ts(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:ts(t.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(t,r,n){for(var i=t.length,a=[],o=0,s,l,u=0,c=0;c=0&&!(f&&l&&f[p]===l[p]);p--);for(var m=g-1;m>p;m--)o--,s=a[o-1];for(var b=p+1;b=s)}}for(var A=this.__startIndex;A15)break}}q.prevElClipPaths&&b.restore()};if(C)if(C.length===0)P=m.__endIndex;else for(var z=h.dpr,W=0;W0&&t>i[0]){for(l=0;lt);l++);s=n[i[l]]}if(i.splice(l+1,0,t),n[t]=r,!r.virtual)if(s){var u=s.dom;u.nextSibling?o.insertBefore(r.dom,u.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.painter||(r.painter=this)}},e.prototype.eachLayer=function(t,r){for(var n=this._zlevelList,i=0;i0?z$:0),this._needsManuallyCompositing),c.__builtin__||a5e("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,r(l),a=c),i.__dirty&Wm&&!i.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=l))}r(l),this.eachBuiltinLayer(function(A,f){!A.__used&&A.getElementCount()>0&&(A.__dirty=!0,A.__startIndex=A.__endIndex=A.__drawIndex=0),A.__dirty&&A.__drawIndex<0&&(A.__drawIndex=A.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,Mt(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var n=this._layerConfig;n[t]?ys(n[t],r,!0):n[t]=r;for(var i=0;i-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),n},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(Lc);function g7(e,t){var r=e.mapDimensionsAll("defaultedLabel"),n=r.length;if(n===1){var i=f7(e,t,r[0]);return i!=null?i+"":null}else if(n){for(var a=[],o=0;o=0&&n.push(t[a])}return n.join(" ")}var gP=function(e){Wn(t,e);function t(r,n,i,a){var o=e.call(this)||this;return o.updateData(r,n,i,a),o}return t.prototype._createSymbol=function(r,n,i,a,o){this.removeAll();var s=_h(r,-1,-1,2,2,null,o);s.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),s.drift=iSr,this._symbolType=r,this.add(s)},t.prototype.stopSymbolAnimation=function(r){this.childAt(0).stopAnimation(null,r)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){oB(this.childAt(0))},t.prototype.downplay=function(){sB(this.childAt(0))},t.prototype.setZ=function(r,n){var i=this.childAt(0);i.zlevel=r,i.z=n},t.prototype.setDraggable=function(r,n){var i=this.childAt(0);i.draggable=r,i.cursor=!n&&r?"move":i.cursor},t.prototype.updateData=function(r,n,i,a){this.silent=!1;var o=r.getItemVisual(n,"symbol")||"circle",s=r.hostModel,l=t.getSymbolSize(r,n),u=o!==this._symbolType,c=a&&a.disableAnimation;if(u){var A=r.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,r,n,l,A)}else{var f=this.childAt(0);f.silent=!1;var h={scaleX:l[0]/2,scaleY:l[1]/2};c?f.attr(h):su(f,h,s,n),u2(f)}if(this._updateCommon(r,n,l,i,a),u){var f=this.childAt(0);if(!c){var h={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:f.style.opacity}};f.scaleX=f.scaleY=0,f.style.opacity=0,oA(f,h,s,n)}}c&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(r,n,i,a,o){var s=this.childAt(0),l=r.hostModel,u,c,A,f,h,g,p,m,b;if(a&&(u=a.emphasisItemStyle,c=a.blurItemStyle,A=a.selectItemStyle,f=a.focus,h=a.blurScope,p=a.labelStatesModels,m=a.hoverScale,b=a.cursorStyle,g=a.emphasisDisabled),!a||r.hasItemOption){var C=a&&a.itemModel?a.itemModel:r.getItemModel(n),E=C.getModel("emphasis");u=E.getModel("itemStyle").getItemStyle(),A=C.getModel(["select","itemStyle"]).getItemStyle(),c=C.getModel(["blur","itemStyle"]).getItemStyle(),f=E.get("focus"),h=E.get("blurScope"),g=E.get("disabled"),p=Vd(C),m=E.getShallow("scale"),b=C.getShallow("cursor")}var _=r.getItemVisual(n,"symbolRotate");s.attr("rotation",(_||0)*Math.PI/180||0);var F=mQ(r.getItemVisual(n,"symbolOffset"),i);F&&(s.x=F[0],s.y=F[1]),b&&s.attr("cursor",b);var M=r.getItemVisual(n,"style"),N=M.fill;if(s instanceof Bg){var P=s.style;s.useStyle(si({image:P.image,x:P.x,y:P.y,width:P.width,height:P.height},M))}else s.__isEmptyBrush?s.useStyle(si({},M)):s.useStyle(M),s.style.decal=null,s.setColor(N,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var j=r.getItemVisual(n,"liftZ"),z=this._z2;j!=null?z==null&&(this._z2=s.z2,s.z2+=j):z!=null&&(s.z2=z,this._z2=null);var W=o&&o.useNameLabel;up(s,p,{labelFetcher:l,labelDataIndex:n,defaultText:Y,inheritColor:N,defaultOpacity:M.opacity});function Y(ae){return W?r.getName(ae):g7(r,ae)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var ee=s.ensureState("emphasis");ee.style=u,s.ensureState("select").style=A,s.ensureState("blur").style=c;var q=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;ee.scaleX=this._sizeX*q,ee.scaleY=this._sizeY*q,this.setSymbolScale(1),jA(this,f,h,g)},t.prototype.setSymbolScale=function(r){this.scaleX=this.scaleY=r},t.prototype.fadeOut=function(r,n,i){var a=this.childAt(0),o=Vo(this).dataIndex,s=i&&i.animation;if(this.silent=a.silent=!0,i&&i.fadeLabel){var l=a.getTextContent();l&&B5(l,{style:{opacity:0}},n,{dataIndex:o,removeOpt:s,cb:function(){a.removeTextContent()}})}else a.removeTextContent();B5(a,{style:{opacity:0},scaleX:0,scaleY:0},n,{dataIndex:o,cb:r,removeOpt:s})},t.getSymbolSize=function(r,n){return wT(r.getItemVisual(n,"symbolSize"))},t}($o);function iSr(e,t){this.parent.drift(e,t)}function Qde(e,t,r,n){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(n.isIgnore&&n.isIgnore(r))&&!(n.clipShape&&!n.clipShape.contain(t[0],t[1]))&&e.getItemVisual(r,"symbol")!=="none"}function Aze(e){return e!=null&&!Mo(e)&&(e={isIgnore:e}),e||{}}function fze(e){var t=e.hostModel,r=t.getModel("emphasis");return{emphasisItemStyle:r.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:r.get("focus"),blurScope:r.get("blurScope"),emphasisDisabled:r.get("disabled"),hoverScale:r.get("scale"),labelStatesModels:Vd(t),cursorStyle:t.get("cursor")}}var pP=function(){function e(t){this.group=new $o,this._SymbolCtor=t||gP}return e.prototype.updateData=function(t,r){this._progressiveEls=null,r=Aze(r);var n=this.group,i=t.hostModel,a=this._data,o=this._SymbolCtor,s=r.disableAnimation,l=fze(t),u={disableAnimation:s},c=r.getSymbolPoint||function(A){return t.getItemLayout(A)};a||n.removeAll(),t.diff(a).add(function(A){var f=c(A);if(Qde(t,f,A,r)){var h=new o(t,A,l,u);h.setPosition(f),t.setItemGraphicEl(A,h),n.add(h)}}).update(function(A,f){var h=a.getItemGraphicEl(f),g=c(A);if(!Qde(t,g,A,r)){n.remove(h);return}var p=t.getItemVisual(A,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==p)n.remove(h),h=new o(t,A,l,u),h.setPosition(g);else{h.updateData(t,A,l,u);var b={x:g[0],y:g[1]};s?h.attr(b):su(h,b,i)}n.add(h),t.setItemGraphicEl(A,h)}).remove(function(A){var f=a.getItemGraphicEl(A);f&&f.fadeOut(function(){n.remove(f)},i)}).execute(),this._getSymbolPoint=c,this._data=t},e.prototype.updateLayout=function(){var t=this,r=this._data;r&&r.eachItemGraphicEl(function(n,i){var a=t._getSymbolPoint(i);n.setPosition(a),n.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=fze(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r,n){this._progressiveEls=[],n=Aze(n);function i(l){l.isGroup||(l.incremental=!0,l.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a0?r=n[0]:n[1]<0&&(r=n[1]),r}function L1t(e,t,r,n){var i=NaN;e.stacked&&(i=r.get(r.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=e.valueStart);var a=e.baseDataOffset,o=[];return o[a]=r.get(e.baseDim,n),o[1-a]=i,t.dataToPoint(o)}function oSr(e,t){var r=[];return t.diff(e).add(function(n){r.push({cmd:"+",idx:n})}).update(function(n,i){r.push({cmd:"=",idx:i,idx1:n})}).remove(function(n){r.push({cmd:"-",idx:n})}).execute(),r}function sSr(e,t,r,n,i,a,o,s){for(var l=oSr(e,t),u=[],c=[],A=[],f=[],h=[],g=[],p=[],m=N1t(i,t,o),b=e.getLayout("points")||[],C=t.getLayout("points")||[],E=0;E=i||p<0)break;if(a6(b,C)){if(l){p+=a;continue}break}if(p===r)e[a>0?"moveTo":"lineTo"](b,C),A=b,f=C;else{var E=b-u,_=C-c;if(E*E+_*_<.5){p+=a;continue}if(o>0){for(var F=p+a,M=t[F*2],N=t[F*2+1];M===b&&N===C&&m=n||a6(M,N))h=b,g=C;else{z=M-u,W=N-c;var q=b-u,ae=M-b,se=C-c,de=N-C,Ae=void 0,be=void 0;if(s==="x"){Ae=Math.abs(q),be=Math.abs(ae);var Le=z>0?1:-1;h=b-Le*Ae*o,g=C,Y=b+Le*be*o,ee=C}else if(s==="y"){Ae=Math.abs(se),be=Math.abs(de);var Ne=W>0?1:-1;h=b,g=C-Ne*Ae*o,Y=b,ee=C+Ne*be*o}else Ae=Math.sqrt(q*q+se*se),be=Math.sqrt(ae*ae+de*de),j=be/(be+Ae),h=b-z*o*(1-j),g=C-W*o*(1-j),Y=b+z*o*j,ee=C+W*o*j,Y=zx(Y,Kx(M,b)),ee=zx(ee,Kx(N,C)),Y=Kx(Y,zx(M,b)),ee=Kx(ee,zx(N,C)),z=Y-b,W=ee-C,h=b-z*Ae/be,g=C-W*Ae/be,h=zx(h,Kx(u,b)),g=zx(g,Kx(c,C)),h=Kx(h,zx(u,b)),g=Kx(g,zx(c,C)),z=b-h,W=C-g,Y=b+z*be/Ae,ee=C+W*be/Ae}e.bezierCurveTo(A,f,h,g,b,C),A=Y,f=ee}else e.lineTo(b,C)}u=b,c=C,p+=a}return m}var P1t=function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e}(),lSr=function(e){Wn(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polyline",n}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new P1t},t.prototype.buildPath=function(r,n){var i=n.points,a=0,o=i.length/2;if(n.connectNulls){for(;o>0&&a6(i[o*2-2],i[o*2-1]);o--);for(;a=0){var _=u?(g-l)*E+l:(h-s)*E+s;return u?[r,_]:[_,r]}s=h,l=g;break;case o.C:h=a[A++],g=a[A++],p=a[A++],m=a[A++],b=a[A++],C=a[A++];var F=u?mY(s,h,p,b,r,c):mY(l,g,m,C,r,c);if(F>0)for(var M=0;M=0){var _=u?Fd(l,g,m,C,N):Fd(s,h,p,b,N);return u?[r,_]:[_,r]}}s=b,l=C;break}}},t}(tl),uSr=function(e){Wn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(P1t),U1t=function(e){Wn(t,e);function t(r){var n=e.call(this,r)||this;return n.type="ec-polygon",n}return t.prototype.getDefaultShape=function(){return new uSr},t.prototype.buildPath=function(r,n){var i=n.points,a=n.stackedOnPoints,o=0,s=i.length/2,l=n.smoothMonotone;if(n.connectNulls){for(;s>0&&a6(i[s*2-2],i[s*2-1]);s--);for(;ot){a?r.push(o(a,l,t)):i&&r.push(o(i,l,0),o(i,l,t));break}else i&&(r.push(o(i,l,0)),i=null),r.push(l),a=l}return r}function fSr(e,t,r){var n=e.getVisual("visualMeta");if(!(!n||!n.length||!e.count())&&t.type==="cartesian2d"){for(var i,a,o=n.length-1;o>=0;o--){var s=e.getDimensionInfo(n[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){a=n[o];break}}if(a){var l=t.getAxis(i),u=Ti(a.stops,function(E){return{coord:l.toGlobalCoord(l.dataToCoord(E.value)),color:E.color}}),c=u.length,A=a.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),A.reverse());var f=ASr(u,i==="x"?r.getWidth():r.getHeight()),h=f.length;if(!h&&c)return u[0].coord<0?A[1]?A[1]:u[c-1].color:A[0]?A[0]:u[0].color;var g=10,p=f[0].coord-g,m=f[h-1].coord+g,b=m-p;if(b<.001)return"transparent";Mt(f,function(E){E.offset=(E.coord-p)/b}),f.push({offset:h?f[h-1].offset:.5,color:A[1]||"transparent"}),f.unshift({offset:h?f[0].offset:.5,color:A[0]||"transparent"});var C=new lP(0,0,0,0,f,!0);return C[i]=p,C[i+"2"]=m,C}}}function hSr(e,t,r){var n=e.get("showAllSymbol"),i=n==="auto";if(!(n&&!i)){var a=r.getAxesByScale("ordinal")[0];if(a&&!(i&&dSr(a,t))){var o=t.mapDimension(a.dim),s={};return Mt(a.getViewLabels(),function(l){var u=a.scale.getRawOrdinalNumber(l.tickValue);s[u]=1}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function dSr(e,t){var r=e.getExtent(),n=Math.abs(r[1]-r[0])/e.scale.count();isNaN(n)&&(n=0);for(var i=t.count(),a=Math.max(1,Math.round(i/5)),o=0;on)return!1;return!0}function gSr(e,t){return isNaN(e)||isNaN(t)}function pSr(e){for(var t=e.length/2;t>0&&gSr(e[t*2-2],e[t*2-1]);t--);return t-1}function vze(e,t){return[e[t*2],e[t*2+1]]}function vSr(e,t,r){for(var n=e.length/2,i=r==="x"?0:1,a,o,s=0,l=-1,u=0;u=t||a>=t&&o<=t){l=u;break}s=u,a=o}return{range:[s,l],t:(t-a)/(o-a)}}function G1t(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&r.get(["emphasis","lineStyle","width"])==="bolder"){var be=g.getState("emphasis").style;be.lineWidth=+g.style.lineWidth+1}Vo(g).seriesIndex=r.seriesIndex,jA(g,se,de,Ae);var Le=pze(r.get("smooth")),Ne=r.get("smoothMonotone");if(g.setShape({smooth:Le,smoothMonotone:Ne,connectNulls:N}),p){var ue=s.getCalculationInfo("stackedOnSeries"),Ke=0;p.useStyle(Qo(u.getAreaStyle(),{fill:Y,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),ue&&(Ke=pze(ue.get("smooth"))),p.setShape({smooth:Le,stackedOnSmooth:Ke,smoothMonotone:Ne,connectNulls:N}),lp(p,r,"areaStyle"),Vo(p).seriesIndex=r.seriesIndex,jA(p,se,de,Ae)}var Pe=this._changePolyState;s.eachItemGraphicEl(function(je){je&&(je.onHoverStateChange=Pe)}),this._polyline.onHoverStateChange=Pe,this._data=s,this._coordSys=a,this._stackedOnPoints=F,this._points=c,this._step=z,this._valueOrigin=E,r.get("triggerLineEvent")&&(this.packEventData(r,g),p&&this.packEventData(r,p))},t.prototype.packEventData=function(r,n){Vo(n).eventData={componentType:"series",componentSubType:"line",componentIndex:r.componentIndex,seriesIndex:r.seriesIndex,seriesName:r.name,seriesType:"line"}},t.prototype.highlight=function(r,n,i,a){var o=r.getData(),s=M6(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],A=l[s*2+1];if(isNaN(c)||isNaN(A)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,A))return;var f=r.get("zlevel")||0,h=r.get("z")||0;u=new gP(o,s),u.x=c,u.y=A,u.setZ(f,h);var g=u.getSymbolPath().getTextContent();g&&(g.zlevel=f,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 cc.prototype.highlight.call(this,r,n,i,a)},t.prototype.downplay=function(r,n,i,a){var o=r.getData(),s=M6(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 cc.prototype.downplay.call(this,r,n,i,a)},t.prototype._changePolyState=function(r){var n=this._polygon;BY(this._polyline,r),n&&BY(n,r)},t.prototype._newPolyline=function(r){var n=this._polyline;return n&&this._lineGroup.remove(n),n=new lSr({shape:{points:r},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(n),this._polyline=n,n},t.prototype._newPolygon=function(r,n){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new U1t({shape:{points:r,stackedOnPoints:n},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(r,n,i){var a,o,s=n.getBaseAxis(),l=s.inverse;n.type==="cartesian2d"?(a=s.isHorizontal(),o=!1):n.type==="polar"&&(a=s.dim==="angle",o=!0);var u=r.hostModel,c=u.get("animationDuration");Bo(c)&&(c=c(null));var A=u.get("animationDelay")||0,f=Bo(A)?A(null):A;r.eachItemGraphicEl(function(h,g){var p=h;if(p){var m=[h.x,h.y],b=void 0,C=void 0,E=void 0;if(i)if(o){var _=i,F=n.pointToCoord(m);a?(b=_.startAngle,C=_.endAngle,E=-F[1]/180*Math.PI):(b=_.r0,C=_.r,E=F[0])}else{var M=i;a?(b=M.x,C=M.x+M.width,E=h.x):(b=M.y+M.height,C=M.y,E=h.y)}var N=C===b?0:(E-b)/(C-b);l&&(N=1-N);var P=Bo(A)?A(g):c*N+f,j=p.getSymbolPath(),z=j.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:P}),z&&z.animateFrom({style:{opacity:0}},{duration:300,delay:P}),j.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(r,n,i){var a=r.getModel("endLabel");if(G1t(r)){var o=r.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 zl({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=pSr(l);c>=0&&(up(s,Vd(r,"endLabel"),{inheritColor:i,labelFetcher:r,labelDataIndex:c,defaultText:function(A,f,h){return h!=null?O1t(o,h):g7(o,A)},enableTextSetter:!0},mSr(a,n)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(r,n,i,a,o,s,l){var u=this._endLabel,c=this._polyline;if(u){r<1&&a.originalX==null&&(a.originalX=u.x,a.originalY=u.y);var A=i.getLayout("points"),f=i.hostModel,h=f.get("connectNulls"),g=s.get("precision"),p=s.get("distance")||0,m=l.getBaseAxis(),b=m.isHorizontal(),C=m.inverse,E=n.shape,_=C?b?E.x:E.y+E.height:b?E.x+E.width:E.y,F=(b?p:0)*(C?-1:1),M=(b?0:-p)*(C?-1:1),N=b?"x":"y",P=vSr(A,_,N),j=P.range,z=j[1]-j[0],W=void 0;if(z>=1){if(z>1&&!h){var Y=vze(A,j[0]);u.attr({x:Y[0]+F,y:Y[1]+M}),o&&(W=f.getRawValue(j[0]))}else{var Y=c.getPointOn(_,N);Y&&u.attr({x:Y[0]+F,y:Y[1]+M});var ee=f.getRawValue(j[0]),q=f.getRawValue(j[1]);o&&(W=Q0t(i,g,ee,q,P.t))}a.lastFrameIndex=j[0]}else{var ae=r===1||a.lastFrameIndex>0?j[0]:0,Y=vze(A,ae);o&&(W=f.getRawValue(ae)),u.attr({x:Y[0]+F,y:Y[1]+M})}if(o){var se=dT(u);typeof se.setLabelText=="function"&&se.setLabelText(W)}}},t.prototype._doUpdateAnimation=function(r,n,i,a,o,s,l){var u=this._polyline,c=this._polygon,A=r.hostModel,f=sSr(this._data,r,this._stackedOnPoints,n,this._coordSys,i,this._valueOrigin),h=f.current,g=f.stackedOnCurrent,p=f.next,m=f.stackedOnNext;if(o&&(g=Vx(f.stackedOnCurrent,f.current,i,o,l),h=Vx(f.current,null,i,o,l),m=Vx(f.stackedOnNext,f.next,i,o,l),p=Vx(f.next,null,i,o,l)),gze(h,p)>3e3||c&&gze(g,m)>3e3){u.stopAnimation(),u.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:m}));return}u.shape.__points=f.current,u.shape.points=h;var b={shape:{points:p}};f.current!==h&&(b.shape.__points=f.next),u.stopAnimation(),su(u,b,A),c&&(c.setShape({points:h,stackedOnPoints:g}),c.stopAnimation(),su(c,{shape:{stackedOnPoints:m}},A),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var C=[],E=f.status,_=0;_t&&(t=e[r]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,r=0;r10&&o.type==="cartesian2d"&&a){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),A=n.getDevicePixelRatio(),f=Math.abs(c[1]-c[0])*(A||1),h=Math.round(s/f);if(isFinite(h)&&h>1){a==="lttb"?t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/h)):a==="minmax"&&t.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/h));var g=void 0;Oa(a)?g=bSr[a]:Bo(a)&&(g=a),g&&t.setData(i.downSample(i.mapDimension(u.dim),1/h,g,wSr))}}}}}function CSr(e){e.registerChartView(ySr),e.registerSeriesModel(nSr),e.registerLayout(mP("line",!0)),e.registerVisual({seriesType:"line",reset:function(t){var r=t.getData(),n=t.getModel("lineStyle").getLineStyle();n&&!n.stroke&&(n.stroke=r.getVisual("style").fill),r.setVisual("legendLineStyle",n)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,$1t("line"))}var NN=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return kB(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(r,n,i){var a=this.coordinateSystem;if(a&&a.clampData){var o=a.clampData(r),s=a.dataToPoint(o);if(i)Mt(a.getAxes(),function(f,h){if(f.type==="category"&&n!=null){var g=f.getTicksCoords(),p=f.getTickModel().get("alignWithLabel"),m=o[h],b=n[h]==="x1"||n[h]==="y1";if(b&&!p&&(m+=1),g.length<2)return;if(g.length===2){s[h]=f.toGlobalCoord(f.getExtent()[b?1:0]);return}for(var C=void 0,E=void 0,_=1,F=0;Fm){E=(M+C)/2;break}F===1&&(_=N-g[0].tickValue)}E==null&&(C?C&&(E=g[g.length-1].coord):E=g[0].coord),s[h]=f.toGlobalCoord(E)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),A=a.getBaseAxis().isHorizontal()?0:1;s[A]+=u+c/2}return s}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(Lc);Lc.registerClass(NN);var ISr=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(){return kB(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.getProgressiveThreshold=function(){var r=this.get("progressiveThreshold"),n=this.get("largeThreshold");return n>r&&(r=n),r},t.prototype.brushSelector=function(r,n,i){return i.rect(n.getItemLayout(r))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=eS(NN.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}),t}(NN),ESr=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),zY=function(e){Wn(t,e);function t(r){var n=e.call(this,r)||this;return n.type="sausage",n}return t.prototype.getDefaultShape=function(){return new ESr},t.prototype.buildPath=function(r,n){var i=n.cx,a=n.cy,o=Math.max(n.r0||0,0),s=Math.max(n.r,0),l=(s-o)*.5,u=o+l,c=n.startAngle,A=n.endAngle,f=n.clockwise,h=Math.PI*2,g=f?A-cMath.PI/2&&cs)return!0;s=A}return!1},t.prototype._isOrderDifferentInView=function(r,n){for(var i=n.scale,a=i.getExtent(),o=Math.max(0,a[0]),s=Math.min(a[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(r.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(r,n,i,a){if(this._isOrderChangedWithinSameData(r,n,i)){var o=this._dataSort(r,i,n);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(r,n,i){var a=n.baseAxis,o=this._dataSort(r,a,function(s){return r.get(r.mapDimension(n.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:o})},t.prototype.remove=function(r,n){this._clear(this._model),this._removeOnRenderedListener(n)},t.prototype.dispose=function(r,n){this._removeOnRenderedListener(n)},t.prototype._removeOnRenderedListener=function(r){this._onRendered&&(r.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(r){var n=this.group,i=this._data;r&&r.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(a){SN(a,r,Vo(a).dataIndex)})):n.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(cc),mze={cartesian2d:function(e,t){var r=t.width<0?-1:1,n=t.height<0?-1:1;r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height);var i=e.x+e.width,a=e.y+e.height,o=Tde(t.x,e.x),s=Dde(t.x+t.width,i),l=Tde(t.y,e.y),u=Dde(t.y+t.height,a),c=si?s:o,t.y=A&&l>a?u:l,t.width=c?0:s-o,t.height=A?0:u-l,r<0&&(t.x+=t.width,t.width=-t.width),n<0&&(t.y+=t.height,t.height=-t.height),c||A},polar:function(e,t){var r=t.r0<=t.r?1:-1;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}var i=Dde(t.r,e.r),a=Tde(t.r0,e.r0);t.r=i,t.r0=a;var o=i-a<0;if(r<0){var n=t.r;t.r=t.r0,t.r0=n}return o}},yze={cartesian2d:function(e,t,r,n,i,a,o,s,l){var u=new Ol({shape:si({},n),z2:1});if(u.__dataIndex=r,u.name="item",a){var c=u.shape,A=i?"height":"width";c[A]=0}return u},polar:function(e,t,r,n,i,a,o,s,l){var u=!i&&l?zY:Z0,c=new u({shape:n,z2:1});c.name="item";var A=z1t(i);if(c.calculateTextPosition=BSr(A,{isRoundCap:u===zY}),a){var f=c.shape,h=i?"r":"endAngle",g={};f[h]=i?n.r0:n.startAngle,g[h]=n[h],(s?su:oA)(c,{shape:g},a)}return c}};function QSr(e,t){var r=e.get("realtimeSort",!0),n=t.getBaseAxis();if(r&&n.type==="category"&&t.type==="cartesian2d")return{baseAxis:n,otherAxis:t.getOtherAxis(n)}}function bze(e,t,r,n,i,a,o,s){var l,u;a?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(o?su:oA)(r,{shape:l},t,i,null);var c=t?e.baseAxis.model:null;(o?su:oA)(r,{shape:u},c,i)}function wze(e,t){for(var r=0;r0?1:-1,o=n.height>0?1:-1;return{x:n.x+a*i/2,y:n.y+o*i/2,width:n.width-a*i,height:n.height-o*i}},polar:function(e,t,r){var n=e.getItemLayout(t);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function DSr(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function z1t(e){return function(t){var r=t?"Arc":"Angle";return function(n){switch(n){case"start":case"insideStart":case"end":case"insideEnd":return n+r;default:return n}}}(e)}function Ize(e,t,r,n,i,a,o,s){var l=t.getItemVisual(r,"style");if(s){if(!a.get("roundCap")){var c=e.shape,A=Dk(n.getModel("itemStyle"),c,!0);si(c,A),e.setShape(c)}}else{var u=n.get(["itemStyle","borderRadius"])||0;e.setShape("r",u)}e.useStyle(l);var f=n.getShallow("cursor");f&&e.attr("cursor",f);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=Vd(n);up(e,g,{labelFetcher:a,labelDataIndex:r,defaultText:g7(a.getData(),r),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var p=e.getTextContent();if(s&&p){var m=n.get(["label","position"]);e.textConfig.inside=m==="middle"?!0:null,xSr(e,m==="outside"?h:m,z1t(o),n.get(["label","rotate"]))}fvt(p,g,a.getRawValue(r),function(C){return O1t(t,C)});var b=n.getModel(["emphasis"]);jA(e,b.get("focus"),b.get("blurScope"),b.get("disabled")),lp(e,n),DSr(i)&&(e.style.fill="none",e.style.stroke="none",Mt(e.states,function(C){C.style&&(C.style.fill=C.style.stroke="none")}))}function FSr(e,t){var r=e.get(["itemStyle","borderColor"]);if(!r||r==="none")return 0;var n=e.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(n,i,a)}var RSr=function(){function e(){}return e}(),Eze=function(e){Wn(t,e);function t(r){var n=e.call(this,r)||this;return n.type="largeBar",n}return t.prototype.getDefaultShape=function(){return new RSr},t.prototype.buildPath=function(r,n){for(var i=n.points,a=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c=0?r:null},30,!1);function MSr(e,t,r){for(var n=e.baseDimIdx,i=1-n,a=e.shape.points,o=e.largeDataIndices,s=[],l=[],u=e.barWidth,c=0,A=a.length/3;c=s[0]&&t<=s[0]+l[0]&&r>=s[1]&&r<=s[1]+l[1])return o[c]}return-1}function K1t(e,t,r){if(bQ(r,"cartesian2d")){var n=t,i=r.getArea();return{x:e?n.x:i.x,y:e?i.y:n.y,width:e?n.width:i.width,height:e?i.height:n.height}}else{var i=r.getArea(),a=t;return{cx:i.cx,cy:i.cy,r0:e?i.r0:a.r0,r:e?i.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function OSr(e,t,r){var n=e.type==="polar"?Z0:Ol;return new n({shape:K1t(t,r,e),silent:!0,z2:0})}function NSr(e){e.registerChartView(kSr),e.registerSeriesModel(ISr),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,us(Jmt,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Xmt("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,$1t("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,r){var n=t.componentType||"series";r.eachComponent({mainType:n,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})})}var Sze=Math.PI*2,Y$=Math.PI/180;function V1t(e,t){return fd(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function W1t(e,t){var r=V1t(e,t),n=e.get("center"),i=e.get("radius");Bi(i)||(i=[0,i]);var a=Ba(r.width,t.getWidth()),o=Ba(r.height,t.getHeight()),s=Math.min(a,o),l=Ba(i[0],s/2),u=Ba(i[1],s/2),c,A,f=e.coordinateSystem;if(f){var h=f.dataToPoint(n);c=h[0]||0,A=h[1]||0}else Bi(n)||(n=[n,n]),c=Ba(n[0],a)+r.x,A=Ba(n[1],o)+r.y;return{cx:c,cy:A,r0:l,r:u}}function LSr(e,t,r){t.eachSeriesByType(e,function(n){var i=n.getData(),a=i.mapDimension("value"),o=V1t(n,r),s=W1t(n,r),l=s.cx,u=s.cy,c=s.r,A=s.r0,f=-n.get("startAngle")*Y$,h=n.get("endAngle"),g=n.get("padAngle")*Y$;h=h==="auto"?f-Sze:-h*Y$;var p=n.get("minAngle")*Y$,m=p+g,b=0;i.each(a,function(de){!isNaN(de)&&b++});var C=i.getSum(a),E=Math.PI/(C||b)*2,_=n.get("clockwise"),F=n.get("roseType"),M=n.get("stillShowZeroSum"),N=i.getDataExtent(a);N[0]=0;var P=_?1:-1,j=[f,h],z=P*g/2;b5e(j,!_),f=j[0],h=j[1];var W=Y1t(n);W.startAngle=f,W.endAngle=h,W.clockwise=_;var Y=Math.abs(h-f),ee=Y,q=0,ae=f;if(i.setLayout({viewRect:o,r:c}),i.each(a,function(de,Ae){var be;if(isNaN(de)){i.setItemLayout(Ae,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:l,cy:u,r0:A,r:F?NaN:c});return}F!=="area"?be=C===0&&M?E:de*E:be=Y/b,bebe?(Ne=ae+P*be/2,ue=Ne):(Ne=ae+z,ue=Le-z),i.setItemLayout(Ae,{angle:be,startAngle:Ne,endAngle:ue,clockwise:_,cx:l,cy:u,r0:A,r:F?Qu(de,N,[A,c]):c}),ae=Le}),eer?b:m,F=Math.abs(E.label.y-r);if(F>=_.maxY){var M=E.label.x-t-E.len2*i,N=n+E.len,P=Math.abs(M)e.unconstrainedWidth?null:h:null;n.setStyle("width",g)}var p=n.getBoundingRect();a.width=p.width;var m=(n.style.margin||0)+2.1;a.height=p.height+m,a.y-=(a.height-A)/2}}}function Fde(e){return e.position==="center"}function HSr(e){var t=e.getData(),r=[],n,i,a=!1,o=(e.get("minShowLabelAngle")||0)*PSr,s=t.getLayout("viewRect"),l=t.getLayout("r"),u=s.width,c=s.x,A=s.y,f=s.height;function h(M){M.ignore=!0}function g(M){if(!M.ignore)return!0;for(var N in M.states)if(M.states[N].ignore===!1)return!0;return!1}t.each(function(M){var N=t.getItemGraphicEl(M),P=N.shape,j=N.getTextContent(),z=N.getTextGuideLine(),W=t.getItemModel(M),Y=W.getModel("label"),ee=Y.get("position")||W.get(["emphasis","label","position"]),q=Y.get("distanceToLabelLine"),ae=Y.get("alignTo"),se=Ba(Y.get("edgeDistance"),u),de=Y.get("bleedMargin"),Ae=W.getModel("labelLine"),be=Ae.get("length");be=Ba(be,u);var Le=Ae.get("length2");if(Le=Ba(Le,u),Math.abs(P.endAngle-P.startAngle)0?"right":"left":ue>0?"left":"right"}var dt=Math.PI,Oe=0,Ce=Y.get("rotate");if(Xl(Ce))Oe=Ce*(dt/180);else if(ee==="center")Oe=0;else if(Ce==="radial"||Ce===!0){var Be=ue<0?-Ne+dt:-Ne;Oe=Be}else if(Ce==="tangential"&&ee!=="outside"&&ee!=="outer"){var We=Math.atan2(ue,Ke);We<0&&(We=dt*2+We);var mt=Ke>0;mt&&(We=dt+We),Oe=We-dt}if(a=!!Oe,j.x=Pe,j.y=je,j.rotation=Oe,j.setStyle({verticalAlign:"middle"}),Se){j.setStyle({align:me});var qt=j.states.select;qt&&(qt.x+=j.x,qt.y+=j.y)}else{var Tt=j.getBoundingRect().clone();Tt.applyTransform(j.getComputedTransform());var bt=(j.style.margin||0)+2.1;Tt.y-=bt/2,Tt.height+=bt,r.push({label:j,labelLine:z,position:ee,len:be,len2:Le,minTurnAngle:Ae.get("minTurnAngle"),maxSurfaceAngle:Ae.get("maxSurfaceAngle"),surfaceNormal:new Cs(ue,Ke),linePoints:Ye,textAlign:me,labelDistance:q,labelAlignTo:ae,edgeDistance:se,bleedMargin:de,rect:Tt,unconstrainedWidth:Tt.width,labelStyleWidth:j.style.width})}N.setTextConfig({inside:Se})}}),!a&&e.get("avoidLabelOverlap")&&USr(r,n,i,l,u,f,c,A);for(var p=0;p0){for(var c=o.getItemLayout(0),A=1;isNaN(c&&c.startAngle)&&A=a.r0}},t.type="pie",t}(cc);function IT(e,t,r){t=Bi(t)&&{coordDimensions:t}||si({encodeDefine:e.getEncode()},t);var n=e.getSource(),i=hP(n,t).dimensions,a=new W0(i,e);return a.initData(n,r),a}var bP=function(){function e(t,r){this._getDataWithEncodedVisual=t,this._getRawData=r}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var r=this._getRawData();return r.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var r=this._getDataWithEncodedVisual();return r.indexOfName(t)},e.prototype.getItemVisual=function(t,r){var n=this._getDataWithEncodedVisual();return n.getItemVisual(t,r)},e}(),$Sr=Nl(),zSr=function(e){Wn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new bP(Ga(this.getData,this),Ga(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return IT(this,{coordDimensions:["value"],encodeDefaulter:us(N5e,this)})},t.prototype.getDataParams=function(r){var n=this.getData(),i=$Sr(n),a=i.seats;if(!a){var o=[];n.each(n.mapDimension("value"),function(l){o.push(l)}),a=i.seats=Nwr(o,n.hostModel.get("percentPrecision"))}var s=e.prototype.getDataParams.call(this,r);return s.percent=a[r]||0,s.$vars.push("percent"),s},t.prototype._defaultLabelLine=function(r){R6(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.type="series.pie",t.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"},t}(Lc);function KSr(e){return{seriesType:e,reset:function(t,r){var n=t.getData();n.filterSelf(function(i){var a=n.mapDimension("value"),o=n.get(a,i);return!(Xl(o)&&!isNaN(o)&&o<0)})}}}function VSr(e){e.registerChartView(GSr),e.registerSeriesModel(zSr),mmt("pie",e.registerAction),e.registerLayout(us(LSr,"pie")),e.registerProcessor(yP("pie")),e.registerProcessor(KSr("pie"))}var WSr=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.getInitialData=function(r,n){return kB(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?5e3:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?1e4:this.get("progressiveThreshold"))},t.prototype.brushSelector=function(r,n,i){return i.point(n.getItemLayout(r))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.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"}},t}(Lc),J1t=4,YSr=function(){function e(){}return e}(),qSr=function(e){Wn(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.getDefaultShape=function(){return new YSr},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(r,n){var i=n.points,a=n.size,o=this.symbolProxy,s=o.shape,l=r.getContext?r.getContext():r,u=l&&a[0]=0;u--){var c=u*2,A=a[c]-s/2,f=a[c+1]-l/2;if(r>=A&&n>=f&&r<=A+s&&n<=f+l)return u}return-1},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.points,a=n.size,o=a[0],s=a[1],l=1/0,u=1/0,c=-1/0,A=-1/0,f=0;f=0&&(u.dataIndex=A+(t.startIndex||0))})},e.prototype.remove=function(){this._clear()},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),XSr=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.updateData(a,{clipShape:this._getClipShape(r)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateSymbolDraw(a,r);o.incrementalPrepareUpdate(a),this._finished=!1},t.prototype.incrementalRender=function(r,n,i){this._symbolDraw.incrementalUpdate(r,n.getData(),{clipShape:this._getClipShape(n)}),this._finished=r.end===n.getData().count()},t.prototype.updateTransform=function(r,n,i){var a=r.getData();if(this.group.dirty(),!this._finished||a.count()>1e4)return{update:!0};var o=mP("").reset(r,n,i);o.progress&&o.progress({start:0,end:a.count(),count:a.count()},a),this._symbolDraw.updateLayout(a)},t.prototype.eachRendered=function(r){this._symbolDraw&&this._symbolDraw.eachRendered(r)},t.prototype._getClipShape=function(r){if(r.get("clip",!0)){var n=r.coordinateSystem;return n&&n.getArea&&n.getArea(.1)}},t.prototype._updateSymbolDraw=function(r,n){var i=this._symbolDraw,a=n.pipelineContext,o=a.large;return(!i||o!==this._isLargeDraw)&&(i&&i.remove(),i=this._symbolDraw=o?new JSr:new pP,this._isLargeDraw=o,this.group.removeAll()),this.group.add(i.group),i},t.prototype.remove=function(r,n){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(cc),ZSr=function(e){Wn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(dl),Mwe=function(e){Wn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Sh).models[0]},t.type="cartesian2dAxis",t}(dl);Th(Mwe,dP);var X1t={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},e4r=ys({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},X1t),ASe=ys({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}}},X1t),t4r=ys({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},ASe),r4r=Qo({logBase:10},ASe);const Z1t={category:e4r,value:ASe,time:t4r,log:r4r};var n4r={value:1,category:1,time:1,log:1};function p7(e,t,r,n){Mt(n4r,function(i,a){var o=ys(ys({},Z1t[a],!0),n,!0),s=function(l){Wn(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+a,c}return u.prototype.mergeDefaultAndTheme=function(c,A){var f=QN(this),h=f?vT(c):{},g=A.getTheme();ys(c,g.get(a+"Axis")),ys(c,this.getDefaultOption()),c.type=Qze(c),f&&x5(c,h,f)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=kwe.createByAxisModel(this))},u.prototype.getCategories=function(c){var A=this.option;if(A.type==="category")return c?A.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.type=t+"Axis."+a,u.defaultOption=o,u}(r);e.registerComponentModel(s)}),e.registerSubTypeDefaulter(t+"Axis",Qze)}function Qze(e){return e.type||(e.data?"category":"value")}var i4r=function(){function e(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return e.prototype.getAxis=function(t){return this._axes[t]},e.prototype.getAxes=function(){return Ti(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Cu(this.getAxes(),function(r){return r.scale.type===t})},e.prototype.addAxis=function(t){var r=t.dim;this._axes[r]=t,this._dimList.push(r)},e}(),Owe=["x","y"];function _ze(e){return e.type==="interval"||e.type==="time"}var a4r=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="cartesian2d",r.dimensions=Owe,r}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var r=this.getAxis("x").scale,n=this.getAxis("y").scale;if(!(!_ze(r)||!_ze(n))){var i=r.getExtent(),a=n.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,A=(s[1]-o[1])/u,f=o[0]-i[0]*c,h=o[1]-a[0]*A,g=this._transform=[c,0,0,A,f,h];this._invTransform=cT([],g)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(r){var n=this.getAxis("x"),i=this.getAxis("y");return n.contain(n.toLocalCoord(r[0]))&&i.contain(i.toLocalCoord(r[1]))},t.prototype.containData=function(r){return this.getAxis("x").containData(r[0])&&this.getAxis("y").containData(r[1])},t.prototype.containZone=function(r,n){var i=this.dataToPoint(r),a=this.dataToPoint(n),o=this.getArea(),s=new xs(i[0],i[1],a[0]-i[0],a[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(r,n,i){i=i||[];var a=r[0],o=r[1];if(this._transform&&a!=null&&isFinite(a)&&o!=null&&isFinite(o))return tp(i,r,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(a,n)),i[1]=l.toGlobalCoord(l.dataToCoord(o,n)),i},t.prototype.clampData=function(r,n){var i=this.getAxis("x").scale,a=this.getAxis("y").scale,o=i.getExtent(),s=a.getExtent(),l=i.parse(r[0]),u=a.parse(r[1]);return n=n||[],n[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),n[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),n},t.prototype.pointToData=function(r,n){var i=[];if(this._invTransform)return tp(i,r,this._invTransform);var a=this.getAxis("x"),o=this.getAxis("y");return i[0]=a.coordToData(a.toLocalCoord(r[0]),n),i[1]=o.coordToData(o.toLocalCoord(r[1]),n),i},t.prototype.getOtherAxis=function(r){return this.getAxis(r.dim==="x"?"y":"x")},t.prototype.getArea=function(r){r=r||0;var n=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),a=Math.min(n[0],n[1])-r,o=Math.min(i[0],i[1])-r,s=Math.max(n[0],n[1])-a+r,l=Math.max(i[0],i[1])-o+r;return new xs(a,o,s,l)},t}(i4r),o4r=function(e){Wn(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.index=0,s.type=a||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var r=this.position;return r==="top"||r==="bottom"},t.prototype.getGlobalExtent=function(r){var n=this.getExtent();return n[0]=this.toGlobalCoord(n[0]),n[1]=this.toGlobalCoord(n[1]),r&&n[0]>n[1]&&n.reverse(),n},t.prototype.pointToData=function(r,n){return this.coordToData(this.toLocalCoord(r[this.dim==="x"?0:1]),n)},t.prototype.setCategorySortInfo=function(r){if(this.type!=="category")return!1;this.model.option.categorySortInfo=r,this.scale.setSortInfo(r)},t}(y2);function Nwe(e,t,r){r=r||{};var n=e.coordinateSystem,i=t.axis,a={},o=i.getAxesOnZeroOf()[0],s=i.position,l=o?"onZero":s,u=i.dim,c=n.getRect(),A=[c.x,c.x+c.width,c.y,c.y+c.height],f={left:0,right:1,top:0,bottom:1,onZero:2},h=t.get("offset")||0,g=u==="x"?[A[2]-h,A[3]+h]:[A[0]-h,A[1]+h];if(o){var p=o.toGlobalCoord(o.dataToCoord(0));g[f.onZero]=Math.max(Math.min(p,g[1]),g[0])}a.position=[u==="y"?g[f[l]]:A[0],u==="x"?g[f[l]]:A[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[f[s]]-g[f.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),bg(r.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var b=t.get(["axisLabel","rotate"]);return a.labelRotate=l==="top"?-b:b,a.z2=1,a}function Tze(e){return e.get("coordinateSystem")==="cartesian2d"}function Dze(e){var t={xAxisModel:null,yAxisModel:null};return Mt(t,function(r,n){var i=n.replace(/Model$/,""),a=e.getReferringComponents(i,Sh).models[0];t[n]=a}),t}var Rde=Math.log;function eyt(e,t,r){var n=uB.prototype,i=n.getTicks.call(r),a=n.getTicks.call(r,!0),o=i.length-1,s=n.getInterval.call(r),l=n1t(e,t),u=l.extent,c=l.fixMin,A=l.fixMax;if(e.type==="log"){var f=Rde(e.base);u=[Rde(u[0])/f,Rde(u[1])/f]}e.setExtent(u[0],u[1]),e.calcNiceExtent({splitNumber:o,fixMin:c,fixMax:A});var h=n.getExtent.call(e);c&&(u[0]=h[0]),A&&(u[1]=h[1]);var g=n.getInterval.call(e),p=u[0],m=u[1];if(c&&A)g=(m-p)/o;else if(c)for(m=u[0]+g*o;mu[0]&&isFinite(p)&&isFinite(u[0]);)g=yde(g),p=u[1]-g*o;else{var b=e.getTicks().length-1;b>o&&(g=yde(g));var C=g*o;m=Math.ceil(u[1]/g)*g,p=kf(m-C),p<0&&u[0]>=0?(p=0,m=kf(C)):m>0&&u[1]<=0&&(m=0,p=-kf(C))}var E=(i[0].value-a[0].value)/s,_=(i[o].value-a[o].value)/s;n.setExtent.call(e,p+g*E,m+g*_),n.setInterval.call(e,g),(E||_)&&n.setNiceExtent.call(e,p+g,m-g)}var s4r=function(){function e(t,r,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Owe,this._initCartesian(t,r,n),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,r){var n=this._axesMap;this._updateScale(t,this.model);function i(o){var s,l=pl(o),u=l.length;if(u){for(var c=[],A=u-1;A>=0;A--){var f=+l[A],h=o[f],g=h.model,p=h.scale;Qwe(p)&&g.get("alignTicks")&&g.get("interval")==null?c.push(h):(d7(p,g),Qwe(p)&&(s=h))}c.length&&(s||(s=c.pop(),d7(s.scale,s.model)),Mt(c,function(m){eyt(m.scale,m.model,s.scale)}))}}i(n.x),i(n.y);var a={};Mt(n.x,function(o){Fze(n,"y",o,a)}),Mt(n.y,function(o){Fze(n,"x",o,a)}),this.resize(this.model,r)},e.prototype.resize=function(t,r,n){var i=t.getBoxLayoutParams(),a=!n&&t.get("containLabel"),o=fd(i,{width:r.getWidth(),height:r.getHeight()});this._rect=o;var s=this._axesList;l(),a&&(Mt(s,function(u){if(!u.model.get(["axisLabel","inside"])){var c=H3r(u);if(c){var A=u.isHorizontal()?"height":"width",f=u.model.get(["axisLabel","margin"]);o[A]-=c[A]+f,u.position==="top"?o.y+=c.height+f:u.position==="left"&&(o.x+=c.width+f)}}}),l()),Mt(this._coordsList,function(u){u.calcAffineTransform()});function l(){Mt(s,function(u){var c=u.isHorizontal(),A=c?[0,o.width]:[0,o.height],f=u.inverse?1:0;u.setExtent(A[f],A[1-f]),l4r(u,c?o.x:o.y)})}},e.prototype.getAxis=function(t,r){var n=this._axesMap[t];if(n!=null)return n[r||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,r){if(t!=null&&r!=null){var n="x"+t+"y"+r;return this._coordsMap[n]}Mo(t)&&(r=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,a=this._coordsList;i0?"top":"bottom",a="center"):IN(i-H3)?(o=n>0?"bottom":"top",a="center"):(o="middle",i>0&&i0?"right":"left":a=n>0?"left":"right"),{rotation:i,textAlign:a,textVerticalAlign:o}},e.makeAxisEventDataBase=function(t){var r={componentType:t.mainType,componentIndex:t.componentIndex};return r[t.mainType+"Index"]=t.componentIndex,r},e.isLabelSilent=function(t){var r=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||r&&r.show)},e}(),Mze={axisLine:function(e,t,r,n){var i=t.get(["axisLine","show"]);if(i==="auto"&&e.handleAutoShown&&(i=e.handleAutoShown("axisLine")),!!i){var a=t.axis.getExtent(),o=n.transform,s=[a[0],0],l=[a[1],0],u=s[0]>l[0];o&&(tp(s,s,o),tp(l,l,o));var c=si({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),A=new Hd({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});A7(A.shape,A.style.lineWidth),A.anid="line",r.add(A);var f=t.get(["axisLine","symbol"]);if(f!=null){var h=t.get(["axisLine","symbolSize"]);Oa(f)&&(f=[f,f]),(Oa(h)||Xl(h))&&(h=[h,h]);var g=mQ(t.get(["axisLine","symbolOffset"])||0,h),p=h[0],m=h[1];Mt([{rotate:e.rotation+Math.PI/2,offset:g[0],r:0},{rotate:e.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(b,C){if(f[C]!=="none"&&f[C]!=null){var E=_h(f[C],-p/2,-m/2,p,m,c.stroke,!0),_=b.r+b.offset,F=u?l:s;E.attr({rotation:b.rotate,x:F[0]+_*Math.cos(e.rotation),y:F[1]-_*Math.sin(e.rotation),silent:!0,z2:11}),r.add(E)}})}}},axisTickLabel:function(e,t,r,n){var i=A4r(r,n,t,e),a=h4r(r,n,t,e);if(c4r(t,a,i),f4r(r,n,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var o=v1t(Ti(a,function(s){return{label:s,priority:s.z2,defaultAttr:{ignore:s.ignore}}}));b1t(o)}},axisName:function(e,t,r,n){var i=bg(e.axisName,t.get("name"));if(i){var a=t.get("nameLocation"),o=e.nameDirection,s=t.getModel("nameTextStyle"),l=t.get("nameGap")||0,u=t.axis.getExtent(),c=u[0]>u[1]?-1:1,A=[a==="start"?u[0]-c*l:a==="end"?u[1]+c*l:(u[0]+u[1])/2,Nze(a)?e.labelOffset+o*l:0],f,h=t.get("nameRotate");h!=null&&(h=h*H3/180);var g;Nze(a)?f=Y0.innerTextLayout(e.rotation,h??e.rotation,o):(f=u4r(e.rotation,a,h||0,u),g=e.axisNameAvailableWidth,g!=null&&(g=Math.abs(g/Math.sin(f.rotation)),!isFinite(g)&&(g=null)));var p=s.getFont(),m=t.get("nameTruncate",!0)||{},b=m.ellipsis,C=bg(e.nameTruncateMaxWidth,m.maxWidth,g),E=new zl({x:A[0],y:A[1],rotation:f.rotation,silent:Y0.isLabelSilent(t),style:Nc(s,{text:i,font:p,overflow:"truncate",width:C,ellipsis:b,fill:s.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:s.get("align")||f.textAlign,verticalAlign:s.get("verticalAlign")||f.textVerticalAlign}),z2:1});if(pQ({el:E,componentModel:t,itemName:i}),E.__fullText=i,E.anid="name",t.get("triggerEvent")){var _=Y0.makeAxisEventDataBase(t);_.targetType="axisName",_.name=i,Vo(E).eventData=_}n.add(E),E.updateTransform(),r.add(E),E.decomposeTransform()}}};function u4r(e,t,r,n){var i=b0t(r-e),a,o,s=n[0]>n[1],l=t==="start"&&!s||t!=="start"&&s;return IN(i-H3/2)?(o=l?"bottom":"top",a="center"):IN(i-H3*1.5)?(o=l?"top":"bottom",a="center"):(o="middle",iH3/2?a=l?"left":"right":a=l?"right":"left"),{rotation:i,textAlign:a,textVerticalAlign:o}}function c4r(e,t,r){if(!i1t(e.axis)){var n=e.get(["axisLabel","showMinLabel"]),i=e.get(["axisLabel","showMaxLabel"]);t=t||[],r=r||[];var a=t[0],o=t[1],s=t[t.length-1],l=t[t.length-2],u=r[0],c=r[1],A=r[r.length-1],f=r[r.length-2];n===!1?(ty(a),ty(u)):Oze(a,o)&&(n?(ty(o),ty(c)):(ty(a),ty(u))),i===!1?(ty(s),ty(A)):Oze(l,s)&&(i?(ty(l),ty(f)):(ty(s),ty(A)))}}function ty(e){e&&(e.ignore=!0)}function Oze(e,t){var r=e&&e.getBoundingRect().clone(),n=t&&t.getBoundingRect().clone();if(!(!r||!n)){var i=SZ([]);return gQ(i,i,-e.rotation),r.applyTransform(LE([],i,e.getLocalTransform())),n.applyTransform(LE([],i,t.getLocalTransform())),r.intersect(n)}}function Nze(e){return e==="middle"||e==="center"}function tyt(e,t,r,n,i){for(var a=[],o=[],s=[],l=0;l=0||e===t}function y4r(e){var t=fSe(e);if(t){var r=t.axisPointerModel,n=t.axis.scale,i=r.option,a=r.get("status"),o=r.get("value");o!=null&&(o=n.parse(o));var s=Lwe(r);a==null&&(i.status=s?"show":"hide");var l=n.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 p=l;g.color!=null&&(p=Qo({color:g.color},l));var m=ys(No(g),{boundaryGap:r,splitNumber:n,scale:i,axisLine:a,axisTick:o,axisLabel:s,name:g.text,showName:u,nameLocation:"end",nameGap:A,nameTextStyle:p,triggerEvent:f},!1);if(Oa(c)){var b=m.name;m.name=c.replace("{value}",b??"")}else Bo(c)&&(m.name=c(m.name,m));var C=new Du(m,null,this.ecModel);return Th(C,dP.prototype),C.mainType="radar",C.componentIndex=this.componentIndex,C},this);this._indicatorModels=h},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.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:ys({lineStyle:{color:"#bbb"}},gR.axisLine),axisLabel:q$(gR.axisLabel,!1),axisTick:q$(gR.axisTick,!1),splitLine:q$(gR.splitLine,!0),splitArea:q$(gR.splitArea,!0),indicator:[]},t}(dl),D4r=["axisLine","axisTickLabel","axisName"],F4r=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=this.group;a.removeAll(),this._buildAxes(r),this._buildSplitLineAndArea(r)},t.prototype._buildAxes=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes(),a=Ti(i,function(o){var s=o.model.get("showName")?o.name:"",l=new Y0(o.model,{axisName:s,position:[n.cx,n.cy],rotation:o.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return l});Mt(a,function(o){Mt(D4r,o.add,o),this.group.add(o.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(r){var n=r.coordinateSystem,i=n.getIndicatorAxes();if(!i.length)return;var a=r.get("shape"),o=r.getModel("splitLine"),s=r.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),A=s.get("show"),f=l.get("color"),h=u.get("color"),g=Bi(f)?f:[f],p=Bi(h)?h:[h],m=[],b=[];function C(ae,se,de){var Ae=de%se.length;return ae[Ae]=ae[Ae]||[],Ae}if(a==="circle")for(var E=i[0].getTicksCoords(),_=n.cx,F=n.cy,M=0;M3?1.4:o>1?1.2:1.1,c=a>0?u:1/u;Nde(this,"zoom","zoomOnMouseWheel",r,{scale:c,originX:s,originY:l,isAvailableBehavior:null})}if(i){var A=Math.abs(a),f=(a>0?1:-1)*(A>3?.4:A>1?.15:.05);Nde(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:f,originX:s,originY:l,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(r){if(!Gze(this._zr,"globalPan")){var n=r.pinchScale>1?1.1:1/1.1;Nde(this,"zoom",null,r,{scale:n,originX:r.pinchX,originY:r.pinchY,isAvailableBehavior:null})}},t}(jy);function Nde(e,t,r,n,i){e.pointerChecker&&e.pointerChecker(n,i.originX,i.originY)&&(iB(n.event),syt(e,t,r,n,i))}function syt(e,t,r,n,i){i.isAvailableBehavior=Ga(cV,null,r,n),e.trigger(t,i)}function cV(e,t,r){var n=r[e];return!e||n&&(!Oa(n)||t.event[n+"Key"])}function dSe(e,t,r){var n=e.target;n.x+=t,n.y+=r,n.dirty()}function gSe(e,t,r,n){var i=e.target,a=e.zoomLimit,o=e.zoom=e.zoom||1;if(o*=t,a){var s=a.min||0,l=a.max||1/0;o=Math.max(Math.min(l,o),s)}var u=o/e.zoom;e.zoom=o,i.x-=(r-i.x)*(u-1),i.y-=(n-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var U4r={axisPointer:1,tooltip:1,brush:1};function iee(e,t,r){var n=t.getComponentByElement(e.topTarget),i=n&&n.coordinateSystem;return n&&n!==r&&!U4r.hasOwnProperty(n.mainType)&&i&&i.model!==r}function lyt(e){if(Oa(e)){var t=new DOMParser;e=t.parseFromString(e,"text/xml")}var r=e;for(r.nodeType===9&&(r=r.firstChild);r.nodeName.toLowerCase()!=="svg"||r.nodeType!==1;)r=r.nextSibling;return r}var Lde,KY={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"},$ze=pl(KY),VY={"alignment-baseline":"textBaseline","stop-color":"stopColor"},zze=pl(VY),H4r=function(){function e(){this._defs={},this._root=null}return e.prototype.parse=function(t,r){r=r||{};var n=lyt(t);this._defsUsePending=[];var i=new $o;this._root=i;var a=[],o=n.getAttribute("viewBox")||"",s=parseFloat(n.getAttribute("width")||r.width),l=parseFloat(n.getAttribute("height")||r.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),Pm(n,i,null,!0,!1);for(var u=n.firstChild;u;)this._parseNode(u,i,a,null,!1,!1),u=u.nextSibling;$4r(this._defs,this._defsUsePending),this._defsUsePending=[];var c,A;if(o){var f=aee(o);f.length>=4&&(c={x:parseFloat(f[0]||0),y:parseFloat(f[1]||0),width:parseFloat(f[2]),height:parseFloat(f[3])})}if(c&&s!=null&&l!=null&&(A=cyt(c,{x:0,y:0,width:s,height:l}),!r.ignoreViewBox)){var h=i;i=new $o,i.add(h),h.scaleX=h.scaleY=A.scale,h.x=A.x,h.y=A.y}return!r.ignoreRootClip&&s!=null&&l!=null&&i.setClipPath(new Ol({shape:{x:0,y:0,width:s,height:l}})),{root:i,width:s,height:l,viewBoxRect:c,viewBoxTransform:A,named:a}},e.prototype._parseNode=function(t,r,n,i,a,o){var s=t.nodeName.toLowerCase(),l,u=i;if(s==="defs"&&(a=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=r;else{if(!a){var c=Lde[s];if(c&&Xa(Lde,s)){l=c.call(this,t,r);var A=t.getAttribute("name");if(A){var f={name:A,namedFrom:null,svgNodeTagLower:s,el:l};n.push(f),s==="g"&&(u=f)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:l});r.add(l)}}var h=Kze[s];if(h&&Xa(Kze,s)){var g=h.call(this,t),p=t.getAttribute("id");p&&(this._defs[p]=g)}}if(l&&l.isGroup)for(var m=t.firstChild;m;)m.nodeType===1?this._parseNode(m,l,n,u,a,o):m.nodeType===3&&o&&this._parseText(m,l),m=m.nextSibling},e.prototype._parseText=function(t,r){var n=new c7({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});ry(r,n),Pm(t,n,this._defsUsePending,!1,!1),j4r(n,r);var i=n.style,a=i.fontSize;a&&a<9&&(i.fontSize=9,n.scaleX*=a/9,n.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=n.getBoundingRect();return this._textX+=s.width,r.add(n),n},e.internalField=function(){Lde={g:function(t,r){var n=new $o;return ry(r,n),Pm(t,n,this._defsUsePending,!1,!1),n},rect:function(t,r){var n=new Ol;return ry(r,n),Pm(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,r){var n=new SB;return ry(r,n),Pm(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,r){var n=new Hd;return ry(r,n),Pm(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,r){var n=new NZ;return ry(r,n),Pm(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,r){var n=t.getAttribute("points"),i;n&&(i=Yze(n));var a=new ev({shape:{points:i||[]},silent:!0});return ry(r,a),Pm(t,a,this._defsUsePending,!1,!1),a},polyline:function(t,r){var n=t.getAttribute("points"),i;n&&(i=Yze(n));var a=new nv({shape:{points:i||[]},silent:!0});return ry(r,a),Pm(t,a,this._defsUsePending,!1,!1),a},image:function(t,r){var n=new Bg;return ry(r,n),Pm(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,r){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(a),this._textY=parseFloat(i)+parseFloat(o);var s=new $o;return ry(r,s),Pm(t,s,this._defsUsePending,!1,!0),s},tspan:function(t,r){var n=t.getAttribute("x"),i=t.getAttribute("y");n!=null&&(this._textX=parseFloat(n)),i!=null&&(this._textY=parseFloat(i));var a=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",s=new $o;return ry(r,s),Pm(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(a),this._textY+=parseFloat(o),s},path:function(t,r){var n=t.getAttribute("d")||"",i=evt(n);return ry(r,i),Pm(t,i,this._defsUsePending,!1,!1),i.silent=!0,i}}}(),e}(),Kze={lineargradient:function(e){var t=parseInt(e.getAttribute("x1")||"0",10),r=parseInt(e.getAttribute("y1")||"0",10),n=parseInt(e.getAttribute("x2")||"10",10),i=parseInt(e.getAttribute("y2")||"0",10),a=new lP(t,r,n,i);return Vze(e,a),Wze(e,a),a},radialgradient:function(e){var t=parseInt(e.getAttribute("cx")||"0",10),r=parseInt(e.getAttribute("cy")||"0",10),n=parseInt(e.getAttribute("r")||"0",10),i=new ivt(t,r,n);return Vze(e,i),Wze(e,i),i}};function Vze(e,t){var r=e.getAttribute("gradientUnits");r==="userSpaceOnUse"&&(t.global=!0)}function Wze(e,t){for(var r=e.firstChild;r;){if(r.nodeType===1&&r.nodeName.toLocaleLowerCase()==="stop"){var n=r.getAttribute("offset"),i=void 0;n&&n.indexOf("%")>0?i=parseInt(n,10)/100:n?i=parseFloat(n):i=0;var a={};uyt(r,a,a);var o=a.stopColor||r.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:i,color:o})}r=r.nextSibling}}function ry(e,t){e&&e.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),Qo(t.__inheritedStyle,e.__inheritedStyle))}function Yze(e){for(var t=aee(e),r=[],n=0;n0;a-=2){var o=n[a],s=n[a-1],l=aee(o);switch(i=i||s1(),s){case"translate":bC(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":A5e(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":gQ(i,i,-parseFloat(l[0])*Pde,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*Pde);LE(i,[1,0,u,1,0,0],i);break;case"skewY":var c=Math.tan(parseFloat(l[0])*Pde);LE(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}}t.setLocalTransform(i)}}var Jze=/([^\s:;]+)\s*:\s*([^:;]+)/g;function uyt(e,t,r){var n=e.getAttribute("style");if(n){Jze.lastIndex=0;for(var i;(i=Jze.exec(n))!=null;){var a=i[1],o=Xa(KY,a)?KY[a]:null;o&&(t[o]=i[2]);var s=Xa(VY,a)?VY[a]:null;s&&(r[s]=i[2])}}}function W4r(e,t,r){for(var n=0;n<$ze.length;n++){var i=$ze[n],a=e.getAttribute(i);a!=null&&(t[KY[i]]=a)}for(var n=0;n0,m={api:n,geo:l,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:f};l.resourceType==="geoJSON"?this._buildGeoJSON(m):l.resourceType==="geoSVG"&&this._buildSVG(m),this._updateController(t,r,n),this._updateMapSelectHandler(t,u,n,i)},e.prototype._buildGeoJSON=function(t){var r=this._regionsGroupByName=ao(),n=ao(),i=this._regionsGroup,a=t.transformInfoRaw,o=t.mapOrGeoModel,s=t.data,l=t.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 A(h){for(var g=[],p=!u&&l&&l.project,m=0;m=0)&&(f=i);var h=o?{normal:{align:"center",verticalAlign:"middle"}}:null;up(t,Vd(n),{labelFetcher:f,labelDataIndex:A,defaultText:r},h);var g=t.getTextContent();if(g&&(Ayt(g).ignore=g.ignore,t.textConfig&&o)){var p=t.getBoundingRect().clone();t.textConfig.layoutRect=p,t.textConfig.position=[(o[0]-p.x)/p.width*100+"%",(o[1]-p.y)/p.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function rKe(e,t,r,n,i,a){e.data?e.data.setItemGraphicEl(a,t):Vo(t).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:r,region:n&&n.option||{}}}function nKe(e,t,r,n,i){e.data||pQ({el:t,componentModel:i,itemName:r,itemTooltipOption:n.get("tooltip")})}function iKe(e,t,r,n,i){t.highDownSilentOnTouch=!!i.get("selectedMode");var a=n.getModel("emphasis"),o=a.get("focus");return jA(t,o,a.get("blurScope"),a.get("disabled")),e.isGeo&&cIr(t,i,r),o}function aKe(e,t,r){var n=[],i;function a(){i=[]}function o(){i.length&&(n.push(i),i=[])}var s=t({polygonStart:a,polygonEnd:o,lineStart:a,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&i.push([l,u])},sphere:function(){}});return!r&&s.polygonStart(),Mt(e,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},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.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"},t}(Lc);function dkr(e,t){var r={};return Mt(e,function(n){n.each(n.mapDimension("value"),function(i,a){var o="ec-"+n.getName(a);r[o]=r[o]||[],isNaN(i)||r[o].push(i)})}),e[0].map(e[0].mapDimension("value"),function(n,i){for(var a="ec-"+e[0].getName(i),o=0,s=1/0,l=-1/0,u=r[a].length,c=0;c1?(_.width=E,_.height=E/m):(_.height=E,_.width=E*m),_.y=C[1]-_.height/2,_.x=C[0]-_.width/2;else{var F=e.getBoxLayoutParams();F.aspect=m,_=fd(F,{width:g,height:p})}this.setViewRect(_.x,_.y,_.width,_.height),this.setCenter(e.get("center"),t),this.setZoom(e.get("zoom"))}function mkr(e,t){Mt(t.get("geoCoord"),function(r,n){e.addGeoCoord(n,r)})}var ykr=function(){function e(){this.dimensions=hyt}return e.prototype.create=function(t,r){var n=[];function i(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}t.eachComponent("geo",function(o,s){var l=o.get("map"),u=new Hwe(l+s,l,si({nameMap:o.get("nameMap")},i(o)));u.zoomLimit=o.get("scaleLimit"),n.push(u),o.coordinateSystem=u,u.model=o,u.resize=uKe,u.resize(o,r)}),t.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=n[l]}});var a={};return t.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();a[s]=a[s]||[],a[s].push(o)}}),Mt(a,function(o,s){var l=Ti(o,function(c){return c.get("nameMap")}),u=new Hwe(s,s,si({nameMap:o5e(l)},i(o[0])));u.zoomLimit=bg.apply(null,Ti(o,function(c){return c.get("scaleLimit")})),n.push(u),u.resize=uKe,u.resize(o[0],r),Mt(o,function(c){c.coordinateSystem=u,mkr(u,c)})}),n},e.prototype.getFilledRegions=function(t,r,n,i){for(var a=(t||[]).slice(),o=ao(),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},r.push(s)}}function Bkr(e,t){var r=e.isExpand?e.children:[],n=e.parentNode.children,i=e.hierNode.i?n[e.hierNode.i-1]:null;if(r.length){kkr(e);var a=(r[0].hierNode.prelim+r[r.length-1].hierNode.prelim)/2;i?(e.hierNode.prelim=i.hierNode.prelim+t(e,i),e.hierNode.modifier=e.hierNode.prelim-a):e.hierNode.prelim=a}else i&&(e.hierNode.prelim=i.hierNode.prelim+t(e,i));e.parentNode.hierNode.defaultAncestor=Qkr(e,i,e.parentNode.hierNode.defaultAncestor||n[0],t)}function xkr(e){var t=e.hierNode.prelim+e.parentNode.hierNode.modifier;e.setLayout({x:t},!0),e.hierNode.modifier+=e.parentNode.hierNode.modifier}function AKe(e){return arguments.length?e:Dkr}function fM(e,t){return e-=Math.PI/2,{x:t*Math.cos(e),y:t*Math.sin(e)}}function Skr(e,t){return fd(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function kkr(e){for(var t=e.children,r=t.length,n=0,i=0;--r>=0;){var a=t[r];a.hierNode.prelim+=n,a.hierNode.modifier+=n,i+=a.hierNode.change,n+=a.hierNode.shift+i}}function Qkr(e,t,r,n){if(t){for(var i=e,a=e,o=a.parentNode.children[0],s=t,l=i.hierNode.modifier,u=a.hierNode.modifier,c=o.hierNode.modifier,A=s.hierNode.modifier;s=Ude(s),a=Hde(a),s&&a;){i=Ude(i),o=Hde(o),i.hierNode.ancestor=e;var f=s.hierNode.prelim+A-a.hierNode.prelim-u+n(s,a);f>0&&(Tkr(_kr(s,e,r),e,f),u+=f,l+=f),A+=s.hierNode.modifier,u+=a.hierNode.modifier,l+=i.hierNode.modifier,c+=o.hierNode.modifier}s&&!Ude(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=A-l),a&&!Hde(o)&&(o.hierNode.thread=a,o.hierNode.modifier+=u-c,r=e)}return r}function Ude(e){var t=e.children;return t.length&&e.isExpand?t[t.length-1]:e.hierNode.thread}function Hde(e){var t=e.children;return t.length&&e.isExpand?t[0]:e.hierNode.thread}function _kr(e,t,r){return e.hierNode.ancestor.parentNode===t.parentNode?e.hierNode.ancestor:r}function Tkr(e,t,r){var n=r/(t.hierNode.i-e.hierNode.i);t.hierNode.change-=n,t.hierNode.shift+=r,t.hierNode.modifier+=r,t.hierNode.prelim+=r,e.hierNode.change+=n}function Dkr(e,t){return e.parentNode===t.parentNode?1:2}var Fkr=function(){function e(){this.parentPoint=[],this.childPoints=[]}return e}(),Rkr=function(e){Wn(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Fkr},t.prototype.buildPath=function(r,n){var i=n.childPoints,a=i.length,o=n.parentPoint,s=i[0],l=i[a-1];if(a===1){r.moveTo(o[0],o[1]),r.lineTo(s[0],s[1]);return}var u=n.orient,c=u==="TB"||u==="BT"?0:1,A=1-c,f=Ba(n.forkPosition,1),h=[];h[c]=o[c],h[A]=o[A]+(l[A]-o[A])*f,r.moveTo(o[0],o[1]),r.lineTo(h[0],h[1]),r.moveTo(s[0],s[1]),h[c]=s[c],r.lineTo(h[0],h[1]),h[c]=l[c],r.lineTo(h[0],h[1]),r.lineTo(l[0],l[1]);for(var g=1;gC.x,F||(_=_-Math.PI));var N=F?"left":"right",P=s.getModel("label"),j=P.get("rotate"),z=j*(Math.PI/180),W=m.getTextContent();W&&(m.setTextConfig({position:P.get("position")||N,rotation:j==null?-_:z,origin:"center"}),W.setStyle("verticalAlign","middle"))}var Y=s.get(["emphasis","focus"]),ee=Y==="relative"?yN(o.getAncestorsIndices(),o.getDescendantIndices()):Y==="ancestor"?o.getAncestorsIndices():Y==="descendant"?o.getDescendantIndices():null;ee&&(Vo(r).focus=ee),Okr(i,o,c,r,g,h,p,n),r.__edge&&(r.onHoverStateChange=function(q){if(q!=="blur"){var ae=o.parentNode&&e.getItemGraphicEl(o.parentNode.dataIndex);ae&&ae.hoverState===aP||BY(r.__edge,q)}})}function Okr(e,t,r,n,i,a,o,s){var l=t.getModel(),u=e.get("edgeShape"),c=e.get("layout"),A=e.getOrient(),f=e.get(["lineStyle","curveness"]),h=e.get("edgeForkPosition"),g=l.getModel("lineStyle").getLineStyle(),p=n.__edge;if(u==="curve")t.parentNode&&t.parentNode!==r&&(p||(p=n.__edge=new sP({shape:jwe(c,A,f,i,i)})),su(p,{shape:jwe(c,A,f,a,o)},e));else if(u==="polyline"&&c==="orthogonal"&&t!==r&&t.children&&t.children.length!==0&&t.isExpand===!0){for(var m=t.children,b=[],C=0;Cr&&(r=i.height)}this.height=r+1},e.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var r=0,n=this.children,i=n.length;r=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,r)},e.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},e.prototype.getModel=function(t){if(!(this.dataIndex<0)){var r=this.hostTree,n=r.data.getItemModel(this.dataIndex);return n.getModel(t)}},e.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},e.prototype.setVisual=function(t,r){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,r)},e.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},e.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},e.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},e.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,r=0;r=0){var n=r.getData().tree.root,i=e.targetNode;if(Oa(i)&&(i=n.getNodeById(i)),i&&n.contains(i))return{node:i};var a=e.targetNodeId;if(a!=null&&(i=n.getNodeById(a)))return{node:i}}}function yyt(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()}function bSe(e,t){var r=yyt(e);return Rs(r,t)>=0}function oee(e,t){for(var r=[];e;){var n=e.dataIndex;r.push({name:e.name,dataIndex:n,value:t.getRawValue(n)}),e=e.parentNode}return r.reverse(),r}var zkr=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.hasSymbolVisual=!0,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r){var n={name:r.name,children:r.data},i=r.leaves||{},a=new Du(i,this,this.ecModel),o=ySe.createTree(n,this,s);function s(A){A.wrapMethod("getItemModel",function(f,h){var g=o.getNodeByDataIndex(h);return g&&g.children.length&&g.isExpand||(f.parentModel=a),f})}var l=0;o.eachNode("preorder",function(A){A.depth>l&&(l=A.depth)});var u=r.expandAndCollapse,c=u&&r.initialTreeDepth>=0?r.initialTreeDepth:l;return o.root.eachNode("preorder",function(A){var f=A.hostTree.data.getRawDataItem(A.dataIndex);A.isExpand=f&&f.collapsed!=null?!f.collapsed:A.depth<=c}),o.data},t.prototype.getOrient=function(){var r=this.get("orient");return r==="horizontal"?r="LR":r==="vertical"&&(r="TB"),r},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.formatTooltip=function(r,n,i){for(var a=this.getData().tree,o=a.root.children[0],s=a.getNodeByDataIndex(r),l=s.getValue(),u=s.name;s&&s!==o;)u=s.parentNode.name+"."+u,s=s.parentNode;return Wd("nameValue",{name:u,value:l,noValue:isNaN(l)||l==null})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=oee(i,this),n.collapsed=!i.isExpand,n},t.type="series.tree",t.layoutMode="box",t.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},t}(Lc);function Kkr(e,t,r){for(var n=[e],i=[],a;a=n.pop();)if(i.push(a),a.isExpand){var o=a.children;if(o.length)for(var s=0;s=0;a--)r.push(i[a])}}function Vkr(e,t){e.eachSeriesByType("tree",function(r){Wkr(r,t)})}function Wkr(e,t){var r=Skr(e,t);e.layoutInfo=r;var n=e.get("layout"),i=0,a=0,o=null;n==="radial"?(i=2*Math.PI,a=Math.min(r.height,r.width)/2,o=AKe(function(E,_){return(E.parentNode===_.parentNode?1:2)/E.depth})):(i=r.width,a=r.height,o=AKe());var s=e.getData().tree.root,l=s.children[0];if(l){Ekr(s),Kkr(l,Bkr,o),s.hierNode.modifier=-l.hierNode.prelim,vR(l,xkr);var u=l,c=l,A=l;vR(l,function(E){var _=E.getLayout().x;_c.getLayout().x&&(c=E),E.depth>A.depth&&(A=E)});var f=u===c?1:o(u,c)/2,h=f-u.getLayout().x,g=0,p=0,m=0,b=0;if(n==="radial")g=i/(c.getLayout().x+f+h),p=a/(A.depth-1||1),vR(l,function(E){m=(E.getLayout().x+h)*g,b=(E.depth-1)*p;var _=fM(m,b);E.setLayout({x:_.x,y:_.y,rawX:m,rawY:b},!0)});else{var C=e.getOrient();C==="RL"||C==="LR"?(p=a/(c.getLayout().x+f+h),g=i/(A.depth-1||1),vR(l,function(E){b=(E.getLayout().x+h)*p,m=C==="LR"?(E.depth-1)*g:i-(E.depth-1)*g,E.setLayout({x:m,y:b},!0)})):(C==="TB"||C==="BT")&&(g=i/(c.getLayout().x+f+h),p=a/(A.depth-1||1),vR(l,function(E){m=(E.getLayout().x+h)*g,b=C==="TB"?(E.depth-1)*p:a-(E.depth-1)*p,E.setLayout({x:m,y:b},!0)}))}}}function Ykr(e){e.eachSeriesByType("tree",function(t){var r=t.getData(),n=r.tree;n.eachNode(function(i){var a=i.getModel(),o=a.getModel("itemStyle").getItemStyle(),s=r.ensureUniqueItemVisual(i.dataIndex,"style");si(s,o)})})}function qkr(e){e.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"tree",query:t},function(n){var i=t.dataIndex,a=n.getData().tree,o=a.getNodeByDataIndex(i);o.isExpand=!o.isExpand})}),e.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(t,r,n){r.eachComponent({mainType:"series",subType:"tree",query:t},function(i){var a=i.coordinateSystem,o=vSe(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}function Jkr(e){e.registerChartView(Mkr),e.registerSeriesModel(zkr),e.registerLayout(Vkr),e.registerVisual(Ykr),qkr(e)}var pKe=["treemapZoomToNode","treemapRender","treemapMove"];function Xkr(e){for(var t=0;t1;)a=a.parentNode;var o=pwe(e.ecModel,a.name||a.dataIndex+"",n);i.setVisual("decal",o)})}var Zkr=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.preventUsingHoverLayer=!0,r}return t.prototype.getInitialData=function(r,n){var i={name:r.name,children:r.data};wyt(i);var a=r.levels||[],o=this.designatedVisualItemStyle={},s=new Du({itemStyle:o},this,n);a=r.levels=e6r(a,n);var l=Ti(a||[],function(A){return new Du(A,s,n)},this),u=ySe.createTree(i,this,c);function c(A){A.wrapMethod("getItemModel",function(f,h){var g=u.getNodeByDataIndex(h),p=g?l[g.depth]:null;return f.parentModel=p||s,f})}return u.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(r,n,i){var a=this.getData(),o=this.getRawValue(r),s=a.getName(r);return Wd("nameValue",{name:s,value:o})},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treeAncestors=oee(i,this),n.treePathInfo=n.treeAncestors,n},t.prototype.setLayoutInfo=function(r){this.layoutInfo=this.layoutInfo||{},si(this.layoutInfo,r)},t.prototype.mapIdToIndex=function(r){var n=this._idIndexMap;n||(n=this._idIndexMap=ao(),this._idIndexMapCount=0);var i=n.get(r);return i==null&&n.set(r,i=this._idIndexMapCount++),i},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){byt(this)},t.type="series.treemap",t.layoutMode="box",t.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:[]},t}(Lc);function wyt(e){var t=0;Mt(e.children,function(n){wyt(n);var i=n.value;Bi(i)&&(i=i[0]),t+=i});var r=e.value;Bi(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),Bi(e.value)?e.value[0]=r:e.value=r}function e6r(e,t){var r=ic(t.get("color")),n=ic(t.get(["aria","decal","decals"]));if(r){e=e||[];var i,a;Mt(e,function(s){var l=new Du(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=e[0]||(e[0]={});return i||(o.color=r.slice()),!a&&n&&(o.decal=n.slice()),e}}var t6r=8,vKe=8,jde=5,r6r=function(){function e(t){this.group=new $o,t.add(this.group)}return e.prototype.render=function(t,r,n,i){var a=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),!(!a.get("show")||!n)){var s=a.getModel("itemStyle"),l=a.getModel("emphasis"),u=s.getModel("textStyle"),c=l.getModel(["itemStyle","textStyle"]),A={pos:{left:a.get("left"),right:a.get("right"),top:a.get("top"),bottom:a.get("bottom")},box:{width:r.getWidth(),height:r.getHeight()},emptyItemWidth:a.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,A,u),this._renderContent(t,A,s,l,u,c,i),VZ(o,A.pos,A.box)}},e.prototype._prepare=function(t,r,n){for(var i=t;i;i=i.parentNode){var a=ld(i.getModel().get("name"),""),o=n.getTextRect(a),s=Math.max(o.width+t6r*2,r.emptyItemWidth);r.totalWidth+=s+vKe,r.renderList.push({node:i,text:a,width:s})}},e.prototype._renderContent=function(t,r,n,i,a,o,s){for(var l=0,u=r.emptyItemWidth,c=t.get(["breadcrumb","height"]),A=fEr(r.pos,r.box),f=r.totalWidth,h=r.renderList,g=i.getModel("itemStyle").getItemStyle(),p=h.length-1;p>=0;p--){var m=h[p],b=m.node,C=m.width,E=m.text;f>A.width&&(f-=C-u,C=u,E=null);var _=new ev({shape:{points:n6r(l,0,C,c,p===h.length-1,p===0)},style:Qo(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new zl({style:Nc(a,{text:E})}),textConfig:{position:"inside"},z2:fT*1e4,onclick:us(s,b)});_.disableLabelAnimation=!0,_.getTextContent().ensureState("emphasis").style=Nc(o,{text:E}),_.ensureState("emphasis").style=g,jA(_,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(_),i6r(_,t,b),l+=C+vKe}},e.prototype.remove=function(){this.group.removeAll()},e}();function n6r(e,t,r,n,i,a){var o=[[i?e:e-jde,t],[e+r,t],[e+r,t+n],[i?e:e-jde,t+n]];return!a&&o.splice(2,0,[e+r+jde,t+n/2]),!i&&o.push([e,t+n/2]),o}function i6r(e,t,r){Vo(e).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:r&&r.dataIndex,name:r&&r.name},treePathInfo:r&&oee(r,t)}}var a6r=function(){function e(){this._storage=[],this._elExistsMap={}}return e.prototype.add=function(t,r,n,i,a){return this._elExistsMap[t.id]?!1:(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:r,duration:n,delay:i,easing:a}),!0)},e.prototype.finished=function(t){return this._finishedCallback=t,this},e.prototype.start=function(){for(var t=this,r=this._storage.length,n=function(){r--,r<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,a=this._storage.length;iyKe||Math.abs(r.dy)>yKe)){var n=this.seriesModel.getData().tree.root;if(!n)return;var i=n.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+r.dx,y:i.y+r.dy,width:i.width,height:i.height}})}},t.prototype._onZoom=function(r){var n=r.originX,i=r.originY,a=r.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 xs(s.x,s.y,s.width,s.height),u=null,c=this._controllerHost;u=c.zoomLimit;var A=c.zoom=c.zoom||1;if(A*=a,u){var f=u.min||0,h=u.max||1/0;A=Math.max(Math.min(h,A),f)}var g=A/c.zoom;c.zoom=A;var p=this.seriesModel.layoutInfo;n-=p.x,i-=p.y;var m=s1();bC(m,m,[-n,-i]),A5e(m,m,[g,g]),bC(m,m,[n,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}})}},t.prototype._initEvents=function(r){var n=this;r.on("click",function(i){if(n._state==="ready"){var a=n.seriesModel.get("nodeClick",!0);if(a){var o=n.findTarget(i.offsetX,i.offsetY);if(o){var s=o.node;if(s.getLayout().isLeafRoot)n._rootToNode(o);else if(a==="zoomToNode")n._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&&TY(u,c)}}}}},this)},t.prototype._renderBreadcrumb=function(r,n,i){var a=this;i||(i=r.get("leafDepth",!0)!=null?{node:r.getViewRoot()}:this.findTarget(n.getWidth()/2,n.getHeight()/2),i||(i={node:r.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new r6r(this.group))).render(r,n,i.node,function(o){a._state!=="animating"&&(bSe(r.getViewRoot(),o)?a._rootToNode({node:o}):a._zoomToNode({node:o}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=mR(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(r){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype._rootToNode=function(r){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:r.node})},t.prototype.findTarget=function(r,n){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(r,n),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},t.type="treemap",t}(cc);function mR(){return{nodeGroup:[],background:[],content:[]}}function A6r(e,t,r,n,i,a,o,s,l,u){if(!o)return;var c=o.getLayout(),A=e.getData(),f=o.getModel();if(A.setItemGraphicEl(o.dataIndex,null),!c||!c.isInView)return;var h=c.width,g=c.height,p=c.borderWidth,m=c.invisible,b=o.getRawIndex(),C=s&&s.getRawIndex(),E=o.viewChildren,_=c.upperHeight,F=E&&E.length,M=f.getModel("itemStyle"),N=f.getModel(["emphasis","itemStyle"]),P=f.getModel(["blur","itemStyle"]),j=f.getModel(["select","itemStyle"]),z=M.get("borderRadius")||0,W=je("nodeGroup",Gwe);if(!W)return;if(l.add(W),W.x=c.x||0,W.y=c.y||0,W.markRedraw(),WY(W).nodeWidth=h,WY(W).nodeHeight=g,c.isAboveViewRoot)return W;var Y=je("background",mKe,u,l6r);Y&&Le(W,Y,F&&c.upperLabelHeight);var ee=f.getModel("emphasis"),q=ee.get("focus"),ae=ee.get("blurScope"),se=ee.get("disabled"),de=q==="ancestor"?o.getAncestorsIndices():q==="descendant"?o.getDescendantIndices():q;if(F)xN(W)&&Sk(W,!1),Y&&(Sk(Y,!se),A.setItemGraphicEl(o.dataIndex,Y),lwe(Y,de,ae));else{var Ae=je("content",mKe,u,u6r);Ae&&Ne(W,Ae),Y.disableMorphing=!0,Y&&xN(Y)&&Sk(Y,!1),Sk(W,!se),A.setItemGraphicEl(o.dataIndex,W);var be=f.getShallow("cursor");be&&Ae.attr("cursor",be),lwe(W,de,ae)}return W;function Le(Se,et,nt){var tt=Vo(et);if(tt.dataIndex=o.dataIndex,tt.seriesIndex=e.seriesIndex,et.setShape({x:0,y:0,width:h,height:g,r:z}),m)ue(et);else{et.invisible=!1;var ft=o.getVisual("style"),st=ft.stroke,Re=CKe(M);Re.fill=st;var dt=q4(N);dt.fill=N.get("borderColor");var Oe=q4(P);Oe.fill=P.get("borderColor");var Ce=q4(j);if(Ce.fill=j.get("borderColor"),nt){var Be=h-2*p;Ke(et,st,ft.opacity,{x:p,y:0,width:Be,height:_})}else et.removeTextContent();et.setStyle(Re),et.ensureState("emphasis").style=dt,et.ensureState("blur").style=Oe,et.ensureState("select").style=Ce,N6(et)}Se.add(et)}function Ne(Se,et){var nt=Vo(et);nt.dataIndex=o.dataIndex,nt.seriesIndex=e.seriesIndex;var tt=Math.max(h-2*p,0),ft=Math.max(g-2*p,0);if(et.culling=!0,et.setShape({x:p,y:p,width:tt,height:ft,r:z}),m)ue(et);else{et.invisible=!1;var st=o.getVisual("style"),Re=st.fill,dt=CKe(M);dt.fill=Re,dt.decal=st.decal;var Oe=q4(N),Ce=q4(P),Be=q4(j);Ke(et,Re,st.opacity,null),et.setStyle(dt),et.ensureState("emphasis").style=Oe,et.ensureState("blur").style=Ce,et.ensureState("select").style=Be,N6(et)}Se.add(et)}function ue(Se){!Se.invisible&&a.push(Se)}function Ke(Se,et,nt,tt){var ft=f.getModel(tt?wKe:bKe),st=ld(f.get("name"),null),Re=ft.getShallow("show");up(Se,Vd(f,tt?wKe:bKe),{defaultText:Re?st:null,inheritColor:et,defaultOpacity:nt,labelFetcher:e,labelDataIndex:o.dataIndex});var dt=Se.getTextContent();if(dt){var Oe=dt.style,Ce=l5e(Oe.padding||0);tt&&(Se.setTextConfig({layoutRect:tt}),dt.disableLabelLayout=!0),dt.beforeUpdate=function(){var We=Math.max((tt?tt.width:Se.shape.width)-Ce[1]-Ce[3],0),mt=Math.max((tt?tt.height:Se.shape.height)-Ce[0]-Ce[2],0);(Oe.width!==We||Oe.height!==mt)&&dt.setStyle({width:We,height:mt})},Oe.truncateMinChar=2,Oe.lineOverflow="truncate",Pe(Oe,tt,c);var Be=dt.getState("emphasis");Pe(Be?Be.style:null,tt,c)}}function Pe(Se,et,nt){var tt=Se?Se.text:null;if(!et&&nt.isLeafRoot&&tt!=null){var ft=e.get("drillDownIcon",!0);Se.text=ft?ft+" "+tt:tt}}function je(Se,et,nt,tt){var ft=C!=null&&r[Se][C],st=i[Se];return ft?(r[Se][C]=null,Ye(st,ft)):m||(ft=new et,ft instanceof Ry&&(ft.z2=f6r(nt,tt)),me(st,ft)),t[Se][b]=ft}function Ye(Se,et){var nt=Se[b]={};et instanceof Gwe?(nt.oldX=et.x,nt.oldY=et.y):nt.oldShape=si({},et.shape)}function me(Se,et){var nt=Se[b]={},tt=o.parentNode,ft=et instanceof $o;if(tt&&(!n||n.direction==="drillDown")){var st=0,Re=0,dt=i.background[tt.getRawIndex()];!n&&dt&&dt.oldShape&&(st=dt.oldShape.width,Re=dt.oldShape.height),ft?(nt.oldX=0,nt.oldY=Re):nt.oldShape={x:st,y:Re,width:0,height:0}}nt.fadein=!ft}}function f6r(e,t){return e*s6r+t}var UN=Mt,h6r=Mo,YY=-1,Gd=function(){function e(t){var r=t.mappingMethod,n=t.type,i=this.option=No(t);this.type=n,this.mappingMethod=r,this._normalizeData=p6r[r];var a=e.visualHandlers[n];this.applyVisual=a.applyVisual,this.getColorMapper=a.getColorMapper,this._normalizedToVisual=a._normalizedToVisual[r],r==="piecewise"?(Gde(i),d6r(i)):r==="category"?i.categories?g6r(i):Gde(i,!0):(J0(r!=="linear"||i.dataExtent),Gde(i))}return e.prototype.mapValueToVisual=function(t){var r=this._normalizeData(t);return this._normalizedToVisual(r,t)},e.prototype.getNormalizer=function(){return Ga(this._normalizeData,this)},e.listVisualTypes=function(){return pl(e.visualHandlers)},e.isValidType=function(t){return e.visualHandlers.hasOwnProperty(t)},e.eachVisual=function(t,r,n){Mo(t)?Mt(t,r,n):r.call(n,t)},e.mapVisual=function(t,r,n){var i,a=Bi(t)?[]:Mo(t)?{}:(i=!0,null);return e.eachVisual(t,function(o,s){var l=r.call(n,o,s);i?a=l:a[s]=l}),a},e.retrieveVisuals=function(t){var r={},n;return t&&UN(e.visualHandlers,function(i,a){t.hasOwnProperty(a)&&(r[a]=t[a],n=!0)}),n?r:null},e.prepareVisualTypes=function(t){if(Bi(t))t=t.slice();else if(h6r(t)){var r=[];UN(t,function(n,i){r.push(i)}),t=r}else return[];return t.sort(function(n,i){return i==="color"&&n!=="color"&&n.indexOf("color")===0?1:-1}),t},e.dependsOn=function(t,r){return r==="color"?!!(t&&t.indexOf(r)===0):t===r},e.findPieceIndex=function(t,r,n){for(var i,a=1/0,o=0,s=r.length;o=0;a--)n[a]==null&&(delete r[t[a]],t.pop())}function Gde(e,t){var r=e.visual,n=[];Mo(r)?UN(r,function(a){n.push(a)}):r!=null&&n.push(r);var i={color:1,symbol:1};!t&&n.length===1&&!i.hasOwnProperty(e.type)&&(n[1]=n[0]),Cyt(e,n)}function X$(e){return{applyVisual:function(t,r,n){var i=this.mapValueToVisual(t);n("color",e(r("color"),i))},_normalizedToVisual:$we([0,1])}}function IKe(e){var t=this.option.visual;return t[Math.round(Qu(e,[0,1],[0,t.length-1],!0))]||{}}function yR(e){return function(t,r,n){n(e,this.mapValueToVisual(t))}}function hM(e){var t=this.option.visual;return t[this.option.loop&&e!==YY?e%t.length:e]}function J4(){return this.option.visual[0]}function $we(e){return{linear:function(t){return Qu(t,e,this.option.visual,!0)},category:hM,piecewise:function(t,r){var n=zwe.call(this,r);return n==null&&(n=Qu(t,e,this.option.visual,!0)),n},fixed:J4}}function zwe(e){var t=this.option,r=t.pieceList;if(t.hasSpecialVisual){var n=Gd.findPieceIndex(e,r),i=r[n];if(i&&i.visual)return i.visual[this.type]}}function Cyt(e,t){return e.visual=t,e.type==="color"&&(e.parsedVisual=Ti(t,function(r){var n=l1(r);return n||[0,0,0,1]})),t}var p6r={linear:function(e){return Qu(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,r=Gd.findPieceIndex(e,t,!0);if(r!=null)return Qu(r,[0,t.length-1],[0,1],!0)},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return t??YY},fixed:Xf};function Z$(e,t,r){return e?t<=r:t=r.length||p===r[p.depth]){var b=C6r(i,l,p,m,g,n);Eyt(p,b,r,n)}})}}}function y6r(e,t,r){var n=si({},t),i=r.designatedVisualItemStyle;return Mt(["color","colorAlpha","colorSaturation"],function(a){i[a]=t[a];var o=e.get(a);i[a]=null,o!=null&&(n[a]=o)}),n}function EKe(e){var t=$de(e,"color");if(t){var r=$de(e,"colorAlpha"),n=$de(e,"colorSaturation");return n&&(t=nO(t,null,null,n)),r&&(t=yY(t,r)),t}}function b6r(e,t){return t!=null?nO(t,null,null,e):null}function $de(e,t){var r=e[t];if(r!=null&&r!=="none")return r}function w6r(e,t,r,n,i,a){if(!(!a||!a.length)){var o=zde(t,"color")||i.color!=null&&i.color!=="none"&&(zde(t,"colorAlpha")||zde(t,"colorSaturation"));if(o){var s=t.get("visualMin"),l=t.get("visualMax"),u=r.dataExtent.slice();s!=null&&su[1]&&(u[1]=l);var c=t.get("colorMappingBy"),A={type:o.name,dataExtent:u,visual:o.range};A.type==="color"&&(c==="index"||c==="id")?(A.mappingMethod="category",A.loop=!0):A.mappingMethod="linear";var f=new Gd(A);return Iyt(f).drColorMappingBy=c,f}}}function zde(e,t){var r=e.get(t);return Bi(r)&&r.length?{name:t,range:r}:null}function C6r(e,t,r,n,i,a){var o=si({},t);if(i){var s=i.type,l=s==="color"&&Iyt(i).drColorMappingBy,u=l==="index"?n:l==="id"?a.mapIdToIndex(r.getId()):r.getValue(e.get("visualDimension"));o[s]=i.mapValueToVisual(u)}return o}var HN=Math.max,qY=Math.min,BKe=bg,wSe=Mt,Byt=["itemStyle","borderWidth"],I6r=["itemStyle","gapWidth"],E6r=["upperLabel","show"],B6r=["upperLabel","height"];const x6r={seriesType:"treemap",reset:function(e,t,r,n){var i=r.getWidth(),a=r.getHeight(),o=e.option,s=fd(e.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),l=o.size||[],u=Ba(BKe(s.width,l[0]),i),c=Ba(BKe(s.height,l[1]),a),A=n&&n.type,f=["treemapZoomToNode","treemapRootToNode"],h=PN(n,f,e),g=A==="treemapRender"||A==="treemapMove"?n.rootRect:null,p=e.getViewRoot(),m=yyt(p);if(A!=="treemapMove"){var b=A==="treemapZoomToNode"?D6r(e,h,p,u,c):g?[g.width,g.height]:[u,c],C=o.sort;C&&C!=="asc"&&C!=="desc"&&(C="desc");var E={squareRatio:o.squareRatio,sort:C,leafDepth:o.leafDepth};p.hostTree.clearLayouts();var _={x:0,y:0,width:b[0],height:b[1],area:b[0]*b[1]};p.setLayout(_),xyt(p,E,!1,0),_=p.getLayout(),wSe(m,function(M,N){var P=(m[N+1]||p).getValue();M.setLayout(si({dataExtent:[P,P],borderWidth:0,upperHeight:0},_))})}var F=e.getData().tree.root;F.setLayout(F6r(s,g,h),!0),e.setLayoutInfo(s),Syt(F,new xs(-s.x,-s.y,i,a),m,p,0)}};function xyt(e,t,r,n){var i,a;if(!e.isRemoved()){var o=e.getLayout();i=o.width,a=o.height;var s=e.getModel(),l=s.get(Byt),u=s.get(I6r)/2,c=kyt(s),A=Math.max(l,c),f=l-u,h=A-u;e.setLayout({borderWidth:l,upperHeight:A,upperLabelHeight:c},!0),i=HN(i-2*f,0),a=HN(a-f-h,0);var g=i*a,p=S6r(e,s,g,t,r,n);if(p.length){var m={x:f,y:h,width:i,height:a},b=qY(i,a),C=1/0,E=[];E.area=0;for(var _=0,F=p.length;_=0;l--){var u=i[n==="asc"?o-l-1:l].getValue();u/r*ts[1]&&(s[1]=u)})),{sum:n,dataExtent:s}}function T6r(e,t,r){for(var n=0,i=1/0,a=0,o=void 0,s=e.length;an&&(n=o));var l=e.area*e.area,u=t*t*r;return l?HN(u*n/l,l/(u*i)):1/0}function xKe(e,t,r,n,i){var a=t===r.width?0:1,o=1-a,s=["x","y"],l=["width","height"],u=r[s[a]],c=t?e.area/t:0;(i||c>r[l[o]])&&(c=r[l[o]]);for(var A=0,f=e.length;AUje&&(u=Uje),a=s}un&&(n=t);var a=n%2?n+2:n+3;i=[];for(var o=0;o0&&(F[0]=-F[0],F[1]=-F[1]);var N=_[0]<0?-1:1;if(a.__position!=="start"&&a.__position!=="end"){var P=-Math.atan2(_[1],_[0]);A[0].8?"left":f[0]<-.8?"right":"center",p=f[1]>.8?"top":f[1]<-.8?"bottom":"middle";break;case"start":a.x=-f[0]*b+c[0],a.y=-f[1]*C+c[1],g=f[0]>.8?"right":f[0]<-.8?"left":"center",p=f[1]>.8?"bottom":f[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":a.x=b*N+c[0],a.y=c[1]+j,g=_[0]<0?"right":"left",a.originX=-b*N,a.originY=-j;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":a.x=M[0],a.y=M[1]+j,g="center",a.originY=-j;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":a.x=-b*N+A[0],a.y=A[1]+j,g=_[0]>=0?"right":"left",a.originX=b*N,a.originY=-j;break}a.scaleX=a.scaleY=o,a.setStyle({verticalAlign:a.__verticalAlign||p,align:a.__align||g})}},t}($o),xSe=function(){function e(t){this.group=new $o,this._LineCtor=t||BSe}return e.prototype.updateData=function(t){var r=this;this._progressiveEls=null;var n=this,i=n.group,a=n._lineData;n._lineData=t,a||i.removeAll();var o=DKe(t);t.diff(a).add(function(s){r._doAdd(t,s,o)}).update(function(s,l){r._doUpdate(a,t,l,s,o)}).remove(function(s){i.remove(a.getItemGraphicEl(s))}).execute()},e.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(r,n){r.updateLayout(t,n)},this)},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=DKe(t),this._lineData=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,r){this._progressiveEls=[];function n(s){!s.isGroup&&!J6r(s)&&(s.incremental=!0,s.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i0}function DKe(e){var t=e.hostModel,r=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:r.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:r.get("disabled"),blurScope:r.get("blurScope"),focus:r.get("focus"),labelStatesModels:Vd(t)}}function FKe(e){return isNaN(e[0])||isNaN(e[1])}function qde(e){return e&&!FKe(e[0])&&!FKe(e[1])}var Jde=[],Xde=[],Zde=[],c8=mg,ege=Xk,RKe=Math.abs;function MKe(e,t,r){for(var n=e[0],i=e[1],a=e[2],o=1/0,s,l=r*r,u=.1,c=.1;c<=.9;c+=.1){Jde[0]=c8(n[0],i[0],a[0],c),Jde[1]=c8(n[1],i[1],a[1],c);var A=RKe(ege(Jde,t)-l);A=0?s=s+u:s=s-u:g>=0?s=s-u:s=s+u}return s}function tge(e,t){var r=[],n=bN,i=[[],[],[]],a=[[],[]],o=[];t/=2,e.eachEdge(function(s,l){var u=s.getLayout(),c=s.getVisual("fromSymbol"),A=s.getVisual("toSymbol");u.__original||(u.__original=[NE(u[0]),NE(u[1])],u[2]&&u.__original.push(NE(u[2])));var f=u.__original;if(u[2]!=null){if(F0(i[0],f[0]),F0(i[1],f[2]),F0(i[2],f[1]),c&&c!=="none"){var h=gM(s.node1),g=MKe(i,f[0],h*t);n(i[0][0],i[1][0],i[2][0],g,r),i[0][0]=r[3],i[1][0]=r[4],n(i[0][1],i[1][1],i[2][1],g,r),i[0][1]=r[3],i[1][1]=r[4]}if(A&&A!=="none"){var h=gM(s.node2),g=MKe(i,f[1],h*t);n(i[0][0],i[1][0],i[2][0],g,r),i[1][0]=r[1],i[2][0]=r[2],n(i[0][1],i[1][1],i[2][1],g,r),i[1][1]=r[1],i[2][1]=r[2]}F0(u[0],i[0]),F0(u[1],i[2]),F0(u[2],i[1])}else{if(F0(a[0],f[0]),F0(a[1],f[1]),Bk(o,a[1],a[0]),uT(o,o),c&&c!=="none"){var h=gM(s.node1);F2e(a[0],a[0],o,h*t)}if(A&&A!=="none"){var h=gM(s.node2);F2e(a[1],a[1],o,-h*t)}F0(u[0],a[0]),F0(u[1],a[1])}})}function OKe(e){return e.type==="view"}var X6r=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){var i=new pP,a=new xSe,o=this.group;this._controller=new wP(n.getZr()),this._controllerHost={target:o},o.add(i.group),o.add(a.group),this._symbolDraw=i,this._lineDraw=a,this._firstRender=!0},t.prototype.render=function(r,n,i){var a=this,o=r.coordinateSystem;this._model=r;var s=this._symbolDraw,l=this._lineDraw,u=this.group;if(OKe(o)){var c={x:o.x,y:o.y,scaleX:o.scaleX,scaleY:o.scaleY};this._firstRender?u.attr(c):su(u,c,r)}tge(r.getGraph(),dM(r));var A=r.getData();s.updateData(A);var f=r.getEdgeData();l.updateData(f),this._updateNodeAndLinkScale(),this._updateController(r,n,i),clearTimeout(this._layoutTimeout);var h=r.forceLayout,g=r.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,g);var p=r.get("layout");A.graph.eachNode(function(E){var _=E.dataIndex,F=E.getGraphicEl(),M=E.getModel();if(F){F.off("drag").off("dragend");var N=M.get("draggable");N&&F.on("drag",function(j){switch(p){case"force":h.warmUp(),!a._layouting&&a._startForceLayoutIteration(h,g),h.setFixed(_),A.setItemLayout(_,[F.x,F.y]);break;case"circular":A.setItemLayout(_,[F.x,F.y]),E.setLayout({fixed:!0},!0),ESe(r,"symbolSize",E,[j.offsetX,j.offsetY]),a.updateLayout(r);break;case"none":default:A.setItemLayout(_,[F.x,F.y]),ISe(r.getGraph(),r),a.updateLayout(r);break}}).on("dragend",function(){h&&h.setUnfixed(_)}),F.setDraggable(N,!!M.get("cursor"));var P=M.get(["emphasis","focus"]);P==="adjacency"&&(Vo(F).focus=E.getAdjacentDataIndices())}}),A.graph.eachEdge(function(E){var _=E.getGraphicEl(),F=E.getModel().get(["emphasis","focus"]);_&&F==="adjacency"&&(Vo(_).focus={edge:[E.dataIndex],node:[E.node1.dataIndex,E.node2.dataIndex]})});var m=r.get("layout")==="circular"&&r.get(["circular","rotateLabel"]),b=A.getLayout("cx"),C=A.getLayout("cy");A.graph.eachNode(function(E){Dyt(E,m,b,C)}),this._firstRender=!1},t.prototype.dispose=function(){this.remove(),this._controller&&this._controller.dispose(),this._controllerHost=null},t.prototype._startForceLayoutIteration=function(r,n){var i=this;(function a(){r.step(function(o){i.updateLayout(i._model),(i._layouting=!o)&&(n?i._layoutTimeout=setTimeout(a,16):a())})})()},t.prototype._updateController=function(r,n,i){var a=this,o=this._controller,s=this._controllerHost,l=this.group;if(o.setPointerChecker(function(u,c,A){var f=l.getBoundingRect();return f.applyTransform(l.transform),f.contain(c,A)&&!iee(u,i,r)}),!OKe(r.coordinateSystem)){o.disable();return}o.enable(r.get("roam")),s.zoomLimit=r.get("scaleLimit"),s.zoom=r.coordinateSystem.getZoom(),o.off("pan").off("zoom").on("pan",function(u){dSe(s,u.dx,u.dy),i.dispatchAction({seriesId:r.id,type:"graphRoam",dx:u.dx,dy:u.dy})}).on("zoom",function(u){gSe(s,u.scale,u.originX,u.originY),i.dispatchAction({seriesId:r.id,type:"graphRoam",zoom:u.scale,originX:u.originX,originY:u.originY}),a._updateNodeAndLinkScale(),tge(r.getGraph(),dM(r)),a._lineDraw.updateLayout(),i.updateLabelLayout()})},t.prototype._updateNodeAndLinkScale=function(){var r=this._model,n=r.getData(),i=dM(r);n.eachItemGraphicEl(function(a,o){a&&a.setSymbolScale(i)})},t.prototype.updateLayout=function(r){tge(r.getGraph(),dM(r)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},t.prototype.remove=function(){clearTimeout(this._layoutTimeout),this._layouting=!1,this._layoutTimeout=null,this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},t.type="graph",t}(cc);function A8(e){return"_EC_"+e}var Z6r=function(){function e(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return e.prototype.isDirected=function(){return this._directed},e.prototype.addNode=function(t,r){t=t==null?""+r:""+t;var n=this._nodesMap;if(!n[A8(t)]){var i=new X4(t,r);return i.hostGraph=this,this.nodes.push(i),n[A8(t)]=i,i}},e.prototype.getNodeByIndex=function(t){var r=this.data.getRawIndex(t);return this.nodes[r]},e.prototype.getNodeById=function(t){return this._nodesMap[A8(t)]},e.prototype.addEdge=function(t,r,n){var i=this._nodesMap,a=this._edgesMap;if(Xl(t)&&(t=this.nodes[t]),Xl(r)&&(r=this.nodes[r]),t instanceof X4||(t=i[A8(t)]),r instanceof X4||(r=i[A8(r)]),!(!t||!r)){var o=t.id+"-"+r.id,s=new Ryt(t,r,n);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),r.inEdges.push(s)),t.edges.push(s),t!==r&&r.edges.push(s),this.edges.push(s),a[o]=s,s}},e.prototype.getEdgeByIndex=function(t){var r=this.edgeData.getRawIndex(t);return this.edges[r]},e.prototype.getEdge=function(t,r){t instanceof X4&&(t=t.id),r instanceof X4&&(r=r.id);var n=this._edgesMap;return this._directed?n[t+"-"+r]:n[t+"-"+r]||n[r+"-"+t]},e.prototype.eachNode=function(t,r){for(var n=this.nodes,i=n.length,a=0;a=0&&t.call(r,n[a],a)},e.prototype.eachEdge=function(t,r){for(var n=this.edges,i=n.length,a=0;a=0&&n[a].node1.dataIndex>=0&&n[a].node2.dataIndex>=0&&t.call(r,n[a],a)},e.prototype.breadthFirstTraverse=function(t,r,n,i){if(r instanceof X4||(r=this._nodesMap[A8(r)]),!!r){for(var a=n==="out"?"outEdges":n==="in"?"inEdges":"edges",o=0;o=0&&l.node2.dataIndex>=0});for(var a=0,o=i.length;a=0&&this[e][t].setItemVisual(this.dataIndex,r,n)},getVisual:function(r){return this[e][t].getItemVisual(this.dataIndex,r)},setLayout:function(r,n){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,r,n)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}}Th(X4,Myt("hostGraph","data"));Th(Ryt,Myt("hostGraph","edgeData"));function Oyt(e,t,r,n,i){for(var a=new Z6r(n),o=0;o "+f)),u++)}var h=r.get("coordinateSystem"),g;if(h==="cartesian2d"||h==="polar")g=kB(e,r);else{var p=AP.get(h),m=p?p.dimensions||[]:[];Rs(m,"value")<0&&m.concat(["value"]);var b=hP(e,{coordDimensions:m,encodeDefine:r.getEncode()}).dimensions;g=new W0(b,r),g.initData(e)}var C=new W0(["value"],r);return C.initData(l,s),i&&i(g,C),vyt({mainData:g,struct:a,structAttr:"graph",datas:{node:g,edge:C},datasAttr:{node:"data",edge:"edgeData"}}),a.update(),a}var eQr=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new bP(i,i),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(r.edges||r.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(r){e.prototype.mergeDefaultAndTheme.apply(this,arguments),R6(r,"edgeLabel",["show"])},t.prototype.getInitialData=function(r,n){var i=r.edges||r.links||[],a=r.data||r.nodes||[],o=this;{U6r(this);var s=Oyt(a,i,this,!0,l);return Mt(s.edges,function(u){H6r(u.node1,u.node2,this,u.dataIndex)},this),s.data}function l(u,c){u.wrapMethod("getItemModel",function(g){var p=o._categoriesModels,m=g.getShallow("category"),b=p[m];return b&&(b.parentModel=g.parentModel,g.parentModel=b),g});var A=Du.prototype.getModel;function f(g,p){var m=A.call(this,g,p);return m.resolveParentPath=h,m}c.wrapMethod("getItemModel",function(g){return g.resolveParentPath=h,g.getModel=f,g});function h(g){if(g&&(g[0]==="label"||g[1]==="label")){var p=g.slice();return g[0]==="label"?p[0]="edgeLabel":g[1]==="label"&&(p[1]="edgeLabel"),p}return g}}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(r,n,i){if(i==="edge"){var a=this.getData(),o=this.getDataParams(r,i),s=a.graph.getEdgeByIndex(r),l=a.getName(s.node1.dataIndex),u=a.getName(s.node2.dataIndex),c=[];return l!=null&&c.push(l),u!=null&&c.push(u),Wd("nameValue",{name:c.join(" > "),value:o.value,noValue:o.value==null})}var A=lmt({series:this,dataIndex:r,multipleSeries:n});return A},t.prototype._updateCategoriesData=function(){var r=Ti(this.option.categories||[],function(i){return i.value!=null?i:si({value:0},i)}),n=new W0(["value"],this);n.initData(r),this._categoriesData=n,this._categoriesModels=n.mapArray(function(i){return n.getItemModel(i)})},t.prototype.setZoom=function(r){this.option.zoom=r},t.prototype.setCenter=function(r){this.option.center=r},t.prototype.isAnimationEnabled=function(){return e.prototype.isAnimationEnabled.call(this)&&!(this.get("layout")==="force"&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.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"}}},t}(Lc),tQr={type:"graphRoam",event:"graphRoam",update:"none"};function rQr(e){e.registerChartView(X6r),e.registerSeriesModel(eQr),e.registerProcessor(M6r),e.registerVisual(O6r),e.registerVisual(N6r),e.registerLayout(j6r),e.registerLayout(e.PRIORITY.VISUAL.POST_CHART_LAYOUT,$6r),e.registerLayout(K6r),e.registerCoordinateSystem("graphView",{dimensions:CP.dimensions,create:W6r}),e.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},Xf),e.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},Xf),e.registerAction(tQr,function(t,r,n){r.eachComponent({mainType:"series",query:t},function(i){var a=i.coordinateSystem,o=vSe(a,t,void 0,n);i.setCenter&&i.setCenter(o.center),i.setZoom&&i.setZoom(o.zoom)})})}var nQr=function(){function e(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0}return e}(),iQr=function(e){Wn(t,e);function t(r){var n=e.call(this,r)||this;return n.type="pointer",n}return t.prototype.getDefaultShape=function(){return new nQr},t.prototype.buildPath=function(r,n){var i=Math.cos,a=Math.sin,o=n.r,s=n.width,l=n.angle,u=n.x-i(l)*s*(s>=o/3?1:2),c=n.y-a(l)*s*(s>=o/3?1:2);l=n.angle-Math.PI/2,r.moveTo(u,c),r.lineTo(n.x+i(l)*s,n.y+a(l)*s),r.lineTo(n.x+i(n.angle)*o,n.y+a(n.angle)*o),r.lineTo(n.x-i(l)*s,n.y-a(l)*s),r.lineTo(u,c)},t}(tl);function aQr(e,t){var r=e.get("center"),n=t.getWidth(),i=t.getHeight(),a=Math.min(n,i),o=Ba(r[0],t.getWidth()),s=Ba(r[1],t.getHeight()),l=Ba(e.get("radius"),a/2);return{cx:o,cy:s,r:l}}function tz(e,t){var r=e==null?"":e+"";return t&&(Oa(t)?r=t.replace("{value}",r):Bo(t)&&(r=t(e))),r}var oQr=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){this.group.removeAll();var a=r.get(["axisLine","lineStyle","color"]),o=aQr(r,i);this._renderMain(r,n,i,a,o),this._data=r.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(r,n,i,a,o){var s=this.group,l=r.get("clockwise"),u=-r.get("startAngle")/180*Math.PI,c=-r.get("endAngle")/180*Math.PI,A=r.getModel("axisLine"),f=A.get("roundCap"),h=f?zY:Z0,g=A.get("show"),p=A.getModel("lineStyle"),m=p.get("width"),b=[u,c];b5e(b,!l),u=b[0],c=b[1];for(var C=c-u,E=u,_=[],F=0;g&&F=j&&(z===0?0:a[z-1][0])Math.PI/2&&(Pe+=Math.PI)):Ke==="tangential"?Pe=-P-Math.PI/2:Xl(Ke)&&(Pe=Ke*Math.PI/180),Pe===0?A.add(new zl({style:Nc(E,{text:be,x:Ne,y:ue,verticalAlign:ae<-.8?"top":ae>.8?"bottom":"middle",align:q<-.4?"left":q>.4?"right":"center"},{inheritColor:Le}),silent:!0})):A.add(new zl({style:Nc(E,{text:be,x:Ne,y:ue,verticalAlign:"middle",align:"center"},{inheritColor:Le}),silent:!0,originX:Ne,originY:ue,rotation:Pe}))}if(C.get("show")&&se!==_){var de=C.get("distance");de=de?de+c:c;for(var je=0;je<=F;je++){q=Math.cos(P),ae=Math.sin(P);var Ye=new Hd({shape:{x1:q*(g-de)+f,y1:ae*(g-de)+h,x2:q*(g-N-de)+f,y2:ae*(g-N-de)+h},silent:!0,style:Y});Y.stroke==="auto"&&Ye.setStyle({stroke:a((se+je/F)/_)}),A.add(Ye),P+=z}P-=z}else P+=j}},t.prototype._renderPointer=function(r,n,i,a,o,s,l,u,c){var A=this.group,f=this._data,h=this._progressEls,g=[],p=r.get(["pointer","show"]),m=r.getModel("progress"),b=m.get("show"),C=r.getData(),E=C.mapDimension("value"),_=+r.get("min"),F=+r.get("max"),M=[_,F],N=[s,l];function P(z,W){var Y=C.getItemModel(z),ee=Y.getModel("pointer"),q=Ba(ee.get("width"),o.r),ae=Ba(ee.get("length"),o.r),se=r.get(["pointer","icon"]),de=ee.get("offsetCenter"),Ae=Ba(de[0],o.r),be=Ba(de[1],o.r),Le=ee.get("keepAspect"),Ne;return se?Ne=_h(se,Ae-q/2,be-ae,q,ae,null,Le):Ne=new iQr({shape:{angle:-Math.PI/2,width:q,r:ae,x:Ae,y:be}}),Ne.rotation=-(W+Math.PI/2),Ne.x=o.cx,Ne.y=o.cy,Ne}function j(z,W){var Y=m.get("roundCap"),ee=Y?zY:Z0,q=m.get("overlap"),ae=q?m.get("width"):c/C.count(),se=q?o.r-ae:o.r-(z+1)*ae,de=q?o.r:o.r-z*ae,Ae=new ee({shape:{startAngle:s,endAngle:W,cx:o.cx,cy:o.cy,clockwise:u,r0:se,r:de}});return q&&(Ae.z2=Qu(C.get(E,z),[_,F],[100,0],!0)),Ae}(b||p)&&(C.diff(f).add(function(z){var W=C.get(E,z);if(p){var Y=P(z,s);oA(Y,{rotation:-((isNaN(+W)?N[0]:Qu(W,M,N,!0))+Math.PI/2)},r),A.add(Y),C.setItemGraphicEl(z,Y)}if(b){var ee=j(z,s),q=m.get("clip");oA(ee,{shape:{endAngle:Qu(W,M,N,q)}},r),A.add(ee),awe(r.seriesIndex,C.dataType,z,ee),g[z]=ee}}).update(function(z,W){var Y=C.get(E,z);if(p){var ee=f.getItemGraphicEl(W),q=ee?ee.rotation:s,ae=P(z,q);ae.rotation=q,su(ae,{rotation:-((isNaN(+Y)?N[0]:Qu(Y,M,N,!0))+Math.PI/2)},r),A.add(ae),C.setItemGraphicEl(z,ae)}if(b){var se=h[W],de=se?se.shape.endAngle:s,Ae=j(z,de),be=m.get("clip");su(Ae,{shape:{endAngle:Qu(Y,M,N,be)}},r),A.add(Ae),awe(r.seriesIndex,C.dataType,z,Ae),g[z]=Ae}}).execute(),C.each(function(z){var W=C.getItemModel(z),Y=W.getModel("emphasis"),ee=Y.get("focus"),q=Y.get("blurScope"),ae=Y.get("disabled");if(p){var se=C.getItemGraphicEl(z),de=C.getItemVisual(z,"style"),Ae=de.fill;if(se instanceof Bg){var be=se.style;se.useStyle(si({image:be.image,x:be.x,y:be.y,width:be.width,height:be.height},de))}else se.useStyle(de),se.type!=="pointer"&&se.setColor(Ae);se.setStyle(W.getModel(["pointer","itemStyle"]).getItemStyle()),se.style.fill==="auto"&&se.setStyle("fill",a(Qu(C.get(E,z),M,[0,1],!0))),se.z2EmphasisLift=0,lp(se,W),jA(se,ee,q,ae)}if(b){var Le=g[z];Le.useStyle(C.getItemVisual(z,"style")),Le.setStyle(W.getModel(["progress","itemStyle"]).getItemStyle()),Le.z2EmphasisLift=0,lp(Le,W),jA(Le,ee,q,ae)}}),this._progressEls=g)},t.prototype._renderAnchor=function(r,n){var i=r.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=_h(s,n.cx-o/2+Ba(l[0],n.r),n.cy-o/2+Ba(l[1],n.r),o,o,null,u);c.z2=i.get("showAbove")?1:0,c.setStyle(i.getModel("itemStyle").getItemStyle()),this.group.add(c)}},t.prototype._renderTitleAndDetail=function(r,n,i,a,o){var s=this,l=r.getData(),u=l.mapDimension("value"),c=+r.get("min"),A=+r.get("max"),f=new $o,h=[],g=[],p=r.isAnimationEnabled(),m=r.get(["pointer","showAbove"]);l.diff(this._data).add(function(b){h[b]=new zl({silent:!0}),g[b]=new zl({silent:!0})}).update(function(b,C){h[b]=s._titleEls[C],g[b]=s._detailEls[C]}).execute(),l.each(function(b){var C=l.getItemModel(b),E=l.get(u,b),_=new $o,F=a(Qu(E,[c,A],[0,1],!0)),M=C.getModel("title");if(M.get("show")){var N=M.get("offsetCenter"),P=o.cx+Ba(N[0],o.r),j=o.cy+Ba(N[1],o.r),z=h[b];z.attr({z2:m?0:2,style:Nc(M,{x:P,y:j,text:l.getName(b),align:"center",verticalAlign:"middle"},{inheritColor:F})}),_.add(z)}var W=C.getModel("detail");if(W.get("show")){var Y=W.get("offsetCenter"),ee=o.cx+Ba(Y[0],o.r),q=o.cy+Ba(Y[1],o.r),ae=Ba(W.get("width"),o.r),se=Ba(W.get("height"),o.r),de=r.get(["progress","show"])?l.getItemVisual(b,"style").fill:F,z=g[b],Ae=W.get("formatter");z.attr({z2:m?0:2,style:Nc(W,{x:ee,y:q,text:tz(E,Ae),width:isNaN(ae)?null:ae,height:isNaN(se)?null:se,align:"center",verticalAlign:"middle"},{inheritColor:de})}),fvt(z,{normal:W},E,function(Le){return tz(Le,Ae)}),p&&hvt(z,b,l,r,{getFormattedLabel:function(Le,Ne,ue,Ke,Pe,je){return tz(je?je.interpolatedValue:E,Ae)}}),_.add(z)}f.add(_)}),this.group.add(f),this._titleEls=h,this._detailEls=g},t.type="gauge",t}(cc),sQr=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="itemStyle",r}return t.prototype.getInitialData=function(r,n){return IT(this,["value"])},t.type="series.gauge",t.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}},t}(Lc);function lQr(e){e.registerChartView(oQr),e.registerSeriesModel(sQr)}var uQr=["itemStyle","opacity"],cQr=function(e){Wn(t,e);function t(r,n){var i=e.call(this)||this,a=i,o=new nv,s=new zl;return a.setTextContent(s),i.setTextGuideLine(o),i.updateData(r,n,!0),i}return t.prototype.updateData=function(r,n,i){var a=this,o=r.hostModel,s=r.getItemModel(n),l=r.getItemLayout(n),u=s.getModel("emphasis"),c=s.get(uQr);c=c??1,i||u2(a),a.useStyle(r.getItemVisual(n,"style")),a.style.lineJoin="round",i?(a.setShape({points:l.points}),a.style.opacity=0,oA(a,{style:{opacity:c}},o,n)):su(a,{style:{opacity:c},shape:{points:l.points}},o,n),lp(a,s),this._updateLabel(r,n),jA(this,u.get("focus"),u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r,n){var i=this,a=this.getTextGuideLine(),o=i.getTextContent(),s=r.hostModel,l=r.getItemModel(n),u=r.getItemLayout(n),c=u.label,A=r.getItemVisual(n,"style"),f=A.fill;up(o,Vd(l),{labelFetcher:r.hostModel,labelDataIndex:n,defaultOpacity:A.opacity,defaultText:r.getName(n)},{normal:{align:c.textAlign,verticalAlign:c.verticalAlign}}),i.setTextConfig({local:!0,inside:!!c.inside,insideStroke:f,outsideFill:f});var h=c.linePoints;a.setShape({points:h}),i.textGuideLineConfig={anchor:h?new Cs(h[0][0],h[0][1]):null},su(o,{style:{x:c.x,y:c.y}},s,n),o.attr({rotation:c.rotation,originX:c.x,originY:c.y,z2:10}),nSe(i,iSe(l),{stroke:f})},t}(ev),AQr=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreLabelLineUpdate=!0,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this._data,s=this.group;a.diff(o).add(function(l){var u=new cQr(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);SN(u,r,l)}).execute(),this._data=a},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(cc),fQr=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new bP(Ga(this.getData,this),Ga(this.getRawData,this)),this._defaultLabelLine(r)},t.prototype.getInitialData=function(r,n){return IT(this,{coordDimensions:["value"],encodeDefaulter:us(N5e,this)})},t.prototype._defaultLabelLine=function(r){R6(r,"labelLine",["show"]);var n=r.labelLine,i=r.emphasis.labelLine;n.show=n.show&&r.label.show,i.show=i.show&&r.emphasis.label.show},t.prototype.getDataParams=function(r){var n=this.getData(),i=e.prototype.getDataParams.call(this,r),a=n.mapDimension("value"),o=n.getSum(a);return i.percent=o?+(n.get(a,r)/o*100).toFixed(2):0,i.$vars.push("percent"),i},t.type="series.funnel",t.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"}}},t}(Lc);function hQr(e,t){return fd(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function dQr(e,t){for(var r=e.mapDimension("value"),n=e.mapArray(r,function(l){return l}),i=[],a=t==="ascending",o=0,s=e.count();o_Qr)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]);i.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(e){if(!(this._mouseDownPoint||!nge(this,"mousemove"))){var t=this._model,r=t.coordinateSystem.getSlidedAxisExpandWindow([e.offsetX,e.offsetY]),n=r.behavior;n==="jump"&&this._throttledDispatchExpand.debounceNextCall(t.get("axisExpandDebounce")),this._throttledDispatchExpand(n==="none"?null:{axisExpandWindow:r.axisExpandWindow,animation:n==="jump"?null:{duration:0}})}}};function nge(e,t){var r=e._model;return r.get("axisExpandable")&&r.get("axisExpandTriggerOn")===t}var FQr=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){e.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(r){var n=this.option;r&&ys(n,r,!0),this._initDimensions()},t.prototype.contains=function(r,n){var i=r.get("parallelIndex");return i!=null&&n.getComponent("parallel",i)===this},t.prototype.setAxisExpand=function(r){Mt(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(n){r.hasOwnProperty(n)&&(this.option[n]=r[n])},this)},t.prototype._initDimensions=function(){var r=this.dimensions=[],n=this.parallelAxisIndex=[],i=Cu(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(a){return(a.get("parallelIndex")||0)===this.componentIndex},this);Mt(i,function(a){r.push("dim"+a.get("dim")),n.push(a.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.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},t}(dl),RQr=function(e){Wn(t,e);function t(r,n,i,a,o){var s=e.call(this,r,n,i)||this;return s.type=a||"value",s.axisIndex=o,s}return t.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},t}(y2);function CQ(e,t,r,n,i,a){e=e||0;var o=r[1]-r[0];if(i!=null&&(i=f8(i,[0,o])),a!=null&&(a=Math.max(a,i??0)),n==="all"){var s=Math.abs(t[1]-t[0]);s=f8(s,[0,o]),i=a=f8(s,[i,a]),n=0}t[0]=f8(t[0],r),t[1]=f8(t[1],r);var l=ige(t,n);t[n]+=e;var u=i||0,c=r.slice();l.sign<0?c[0]+=u:c[1]-=u,t[n]=f8(t[n],c);var A;return A=ige(t,n),i!=null&&(A.sign!==l.sign||A.spana&&(t[1-n]=t[n]+A.sign*a),t}function ige(e,t){var r=e[t]-e[1-t];return{span:Math.abs(r),sign:r>0?-1:r<0?1:t?-1:1}}function f8(e,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,e))}var age=Mt,Lyt=Math.min,Pyt=Math.max,PKe=Math.floor,MQr=Math.ceil,UKe=kf,OQr=Math.PI,NQr=function(){function e(t,r,n){this.type="parallel",this._axesMap=ao(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,r,n)}return e.prototype._init=function(t,r,n){var i=t.dimensions,a=t.parallelAxisIndex;age(i,function(o,s){var l=a[s],u=r.getComponent("parallelAxis",l),c=this._axesMap.set(o,new RQr(o,ree(u),[0,0],u.get("type"),l)),A=c.type==="category";c.onBand=A&&u.get("boundaryGap"),c.inverse=u.get("inverse"),u.axis=c,c.model=u,c.coordinateSystem=u.coordinateSystem=this},this)},e.prototype.update=function(t,r){this._updateAxesFromSeries(this._model,t)},e.prototype.containPoint=function(t){var r=this._makeLayoutInfo(),n=r.axisBase,i=r.layoutBase,a=r.pixelDimIndex,o=t[1-a],s=t[a];return o>=n&&o<=n+r.axisLength&&s>=i&&s<=i+r.layoutLength},e.prototype.getModel=function(){return this._model},e.prototype._updateAxesFromSeries=function(t,r){r.eachSeries(function(n){if(t.contains(n,r)){var i=n.getData();age(this.dimensions,function(a){var o=this._axesMap.get(a);o.scale.unionExtentFromData(i,i.mapDimension(a)),d7(o.scale,o.model)},this)}},this)},e.prototype.resize=function(t,r){this._rect=fd(t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()}),this._layoutAxes()},e.prototype.getRect=function(){return this._rect},e.prototype._makeLayoutInfo=function(){var t=this._model,r=this._rect,n=["x","y"],i=["width","height"],a=t.get("layout"),o=a==="horizontal"?0:1,s=r[i[o]],l=[0,s],u=this.dimensions.length,c=rz(t.get("axisExpandWidth"),l),A=rz(t.get("axisExpandCount")||0,[0,u]),f=t.get("axisExpandable")&&u>3&&u>A&&A>1&&c>0&&s>0,h=t.get("axisExpandWindow"),g;if(h)g=rz(h[1]-h[0],l),h[1]=h[0]+g;else{g=rz(c*(A-1),l);var p=t.get("axisExpandCenter")||PKe(u/2);h=[c*p-g/2],h[1]=h[0]+g}var m=(s-g)/(u-A);m<3&&(m=0);var b=[PKe(UKe(h[0]/c,1))+1,MQr(UKe(h[1]/c,1))-1],C=m/c*h[0];return{layout:a,pixelDimIndex:o,layoutBase:r[n[o]],layoutLength:s,axisBase:r[n[1-o]],axisLength:r[i[1-o]],axisExpandable:f,axisExpandWidth:c,axisCollapseWidth:m,axisExpandWindow:h,axisCount:u,winInnerIndices:b,axisExpandWindow0Pos:C}},e.prototype._layoutAxes=function(){var t=this._rect,r=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),a=i.layout;r.each(function(o){var s=[0,i.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),age(n,function(o,s){var l=(i.axisExpandable?PQr:LQr)(s,i),u={horizontal:{x:l.position,y:i.axisLength},vertical:{x:0,y:l.position}},c={horizontal:OQr/2,vertical:0},A=[u[a].x+t.x,u[a].y+t.y],f=c[a],h=s1();gQ(h,h,f),bC(h,h,A),this._axesLayout[o]={position:A,rotation:f,transform:h,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},e.prototype.getAxis=function(t){return this._axesMap.get(t)},e.prototype.dataToPoint=function(t,r){return this.axisCoordToPoint(this._axesMap.get(r).dataToCoord(t),r)},e.prototype.eachActiveState=function(t,r,n,i){n==null&&(n=0),i==null&&(i=t.count());var a=this._axesMap,o=this.dimensions,s=[],l=[];Mt(o,function(m){s.push(t.mapDimension(m)),l.push(a.get(m).model)});for(var u=this.hasAxisBrushed(),c=n;ca*(1-A[0])?(u="jump",l=s-a*(1-A[2])):(l=s-a*A[1])>=0&&(l=s-a*(1-A[1]))<=0&&(l=0),l*=r.axisExpandWidth/c,l?CQ(l,i,o,"all"):u="none";else{var h=i[1]-i[0],g=o[1]*s/h;i=[Pyt(0,g-h/2)],i[1]=Lyt(o[1],i[0]+h),i[0]=i[1]-h}return{axisExpandWindow:i,behavior:u}},e}();function rz(e,t){return Lyt(Pyt(e,t[0]),t[1])}function LQr(e,t){var r=t.layoutLength/(t.axisCount-1);return{position:r*e,axisNameAvailableWidth:r,axisLabelShow:!0}}function PQr(e,t){var r=t.layoutLength,n=t.axisExpandWidth,i=t.axisCount,a=t.axisCollapseWidth,o=t.winInnerIndices,s,l=a,u=!1,c;return e=0;i--)Cy(n[i])},t.prototype.getActiveState=function(r){var n=this.activeIntervals;if(!n.length)return"normal";if(r==null||isNaN(+r))return"inactive";if(n.length===1){var i=n[0];if(i[0]<=r&&r<=i[1])return"active"}else for(var a=0,o=n.length;a$Qr}function zyt(e){var t=e.length-1;return t<0&&(t=0),[e[0],e[t]]}function Kyt(e,t,r,n){var i=new $o;return i.add(new Ol({name:"main",style:TSe(r),silent:!0,draggable:!0,cursor:"move",drift:us(GKe,e,t,i,["n","s","w","e"]),ondragend:us(U6,t,{isEnd:!0})})),Mt(n,function(a){i.add(new Ol({name:a.join(""),style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:us(GKe,e,t,i,a),ondragend:us(U6,t,{isEnd:!0})}))}),i}function Vyt(e,t,r,n){var i=n.brushStyle.lineWidth||0,a=v7(i,zQr),o=r[0][0],s=r[1][0],l=o-i/2,u=s-i/2,c=r[0][1],A=r[1][1],f=c-a+i/2,h=A-a+i/2,g=c-o,p=A-s,m=g+i,b=p+i;ZI(e,t,"main",o,s,g,p),n.transformable&&(ZI(e,t,"w",l,u,a,b),ZI(e,t,"e",f,u,a,b),ZI(e,t,"n",l,u,m,a),ZI(e,t,"s",l,h,m,a),ZI(e,t,"nw",l,u,a,a),ZI(e,t,"ne",f,u,a,a),ZI(e,t,"sw",l,h,a,a),ZI(e,t,"se",f,h,a,a))}function Jwe(e,t){var r=t.__brushOption,n=r.transformable,i=t.childAt(0);i.useStyle(TSe(r)),i.attr({silent:!n,cursor:n?"move":"default"}),Mt([["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]],function(a){var o=t.childOfName(a.join("")),s=a.length===1?Xwe(e,a[0]):JQr(e,a);o&&o.attr({silent:!n,invisible:!n,cursor:n?VQr[s]+"-resize":null})})}function ZI(e,t,r,n,i,a,o){var s=t.childOfName(r);s&&s.setShape(ZQr(DSe(e,t,[[n,i],[n+a,i+o]])))}function TSe(e){return Qo({strokeNoScale:!0},e.brushStyle)}function Wyt(e,t,r,n){var i=[GN(e,r),GN(t,n)],a=[v7(e,r),v7(t,n)];return[[i[0],a[0]],[i[1],a[1]]]}function qQr(e){return n6(e.group)}function Xwe(e,t){var r={w:"left",e:"right",n:"top",s:"bottom"},n={left:"w",right:"e",top:"n",bottom:"s"},i=UZ(r[t],qQr(e));return n[i]}function JQr(e,t){var r=[Xwe(e,t[0]),Xwe(e,t[1])];return(r[0]==="e"||r[0]==="w")&&r.reverse(),r.join("")}function GKe(e,t,r,n,i,a){var o=r.__brushOption,s=e.toRectRange(o.range),l=Yyt(t,i,a);Mt(n,function(u){var c=KQr[u];s[c[0]][c[1]]+=l[c[0]]}),o.range=e.fromRectRange(Wyt(s[0][0],s[1][0],s[0][1],s[1][1])),kSe(t,r),U6(t,{isEnd:!1})}function XQr(e,t,r,n){var i=t.__brushOption.range,a=Yyt(e,r,n);Mt(i,function(o){o[0]+=a[0],o[1]+=a[1]}),kSe(e,t),U6(e,{isEnd:!1})}function Yyt(e,t,r){var n=e.group,i=n.transformCoordToLocal(t,r),a=n.transformCoordToLocal(0,0);return[i[0]-a[0],i[1]-a[1]]}function DSe(e,t,r){var n=$yt(e,t);return n&&n!==P6?n.clipPath(r,e._transform):No(r)}function ZQr(e){var t=GN(e[0][0],e[1][0]),r=GN(e[0][1],e[1][1]),n=v7(e[0][0],e[1][0]),i=v7(e[0][1],e[1][1]);return{x:t,y:r,width:n-t,height:i-r}}function e_r(e,t,r){if(!(!e._brushType||r_r(e,t.offsetX,t.offsetY))){var n=e._zr,i=e._covers,a=_Se(e,t,r);if(!e._dragging)for(var o=0;on.getWidth()||r<0||r>n.getHeight()}var lee={lineX:KKe(0),lineY:KKe(1),rect:{createCover:function(e,t){function r(n){return n}return Kyt({toRectRange:r,fromRectRange:r},e,t,[["w"],["e"],["n"],["s"],["s","e"],["s","w"],["n","e"],["n","w"]])},getCreatingRange:function(e){var t=zyt(e);return Wyt(t[1][0],t[1][1],t[0][0],t[0][1])},updateCoverShape:function(e,t,r,n){Vyt(e,t,r,n)},updateCommon:Jwe,contain:eCe},polygon:{createCover:function(e,t){var r=new $o;return r.add(new nv({name:"main",style:TSe(t),silent:!0})),r},getCreatingRange:function(e){return e},endCreating:function(e,t){t.remove(t.childAt(0)),t.add(new ev({name:"main",draggable:!0,drift:us(XQr,e,t),ondragend:us(U6,e,{isEnd:!0})}))},updateCoverShape:function(e,t,r,n){t.childAt(0).setShape({points:DSe(e,t,r)})},updateCommon:Jwe,contain:eCe}};function KKe(e){return{createCover:function(t,r){return Kyt({toRectRange:function(n){var i=[n,[0,100]];return e&&i.reverse(),i},fromRectRange:function(n){return n[e]}},t,r,[[["w"],["e"]],[["n"],["s"]]][e])},getCreatingRange:function(t){var r=zyt(t),n=GN(r[0][e],r[1][e]),i=v7(r[0][e],r[1][e]);return[n,i]},updateCoverShape:function(t,r,n,i){var a,o=$yt(t,r);if(o!==P6&&o.getLinearBrushOtherExtent)a=o.getLinearBrushOtherExtent(e);else{var s=t._zr;a=[0,[s.getWidth(),s.getHeight()][1-e]]}var l=[n,a];e&&l.reverse(),Vyt(t,r,l,i)},updateCommon:Jwe,contain:eCe}}function Jyt(e){return e=FSe(e),function(t){return uvt(t,e)}}function Xyt(e,t){return e=FSe(e),function(r){var n=t??r,i=n?e.width:e.height,a=n?e.x:e.y;return[a,a+(i||0)]}}function Zyt(e,t,r){var n=FSe(e);return function(i,a){return n.contain(a[0],a[1])&&!iee(i,t,r)}}function FSe(e){return xs.create(e)}var n_r=["axisLine","axisTickLabel","axisName"],i_r=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){e.prototype.init.apply(this,arguments),(this._brushController=new SSe(n.getZr())).on("brush",Ga(this._onBrush,this))},t.prototype.render=function(r,n,i,a){if(!a_r(r,n,a)){this.axisModel=r,this.api=i,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new $o,this.group.add(this._axisGroup),!!r.get("show")){var s=s_r(r,n),l=s.coordinateSystem,u=r.getAreaSelectStyle(),c=u.width,A=r.axis.dim,f=l.getAxisLayout(A),h=si({strokeContainThreshold:c},f),g=new Y0(r,h);Mt(n_r,g.add,g),this._axisGroup.add(g.getGroup()),this._refreshBrushController(h,u,r,s,c,i),uP(o,this._axisGroup,r)}}},t.prototype._refreshBrushController=function(r,n,i,a,o,s){var l=i.axis.getExtent(),u=l[1]-l[0],c=Math.min(30,Math.abs(u)*.1),A=xs.create({x:l[0],y:-o/2,width:u,height:o});A.x-=c,A.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:r.rotation,x:r.position[0],y:r.position[1]}).setPanels([{panelId:"pl",clipPath:Jyt(A),isTargetByCursor:Zyt(A,s,a),getLinearBrushOtherExtent:Xyt(A,0)}]).enableBrush({brushType:"lineX",brushStyle:n,removeOnClick:!0}).updateCovers(o_r(i))},t.prototype._onBrush=function(r){var n=r.areas,i=this.axisModel,a=i.axis,o=Ti(n,function(s){return[a.coordToData(s.range[0],!0),a.coordToData(s.range[1],!0)]});(!i.option.realtime===r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:i.id,intervals:o})},t.prototype.dispose=function(){this._brushController.dispose()},t.type="parallelAxis",t}(xA);function a_r(e,t,r){return r&&r.type==="axisAreaSelect"&&t.findComponents({mainType:"parallelAxis",query:r})[0]===e}function o_r(e){var t=e.axis;return Ti(e.activeIntervals,function(r){return{brushType:"lineX",panelId:"pl",range:[t.dataToCoord(r[0],!0),t.dataToCoord(r[1],!0)]}})}function s_r(e,t){return t.getComponent("parallel",e.get("parallelIndex"))}var l_r={type:"axisAreaSelect",event:"axisAreaSelected"};function u_r(e){e.registerAction(l_r,function(t,r){r.eachComponent({mainType:"parallelAxis",query:t},function(n){n.axis.model.setActiveIntervals(t.intervals)})}),e.registerAction("parallelAxisExpand",function(t,r){r.eachComponent({mainType:"parallel",query:t},function(n){n.setAxisExpand(t)})})}var c_r={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function ebt(e){e.registerComponentView(TQr),e.registerComponentModel(FQr),e.registerCoordinateSystem("parallel",HQr),e.registerPreprocessor(SQr),e.registerComponentModel(Ywe),e.registerComponentView(i_r),p7(e,"parallel",Ywe,c_r),u_r(e)}function A_r(e){zs(ebt),e.registerChartView(yQr),e.registerSeriesModel(CQr),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,xQr)}var f_r=function(){function e(){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 e}(),h_r=function(e){Wn(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new f_r},t.prototype.buildPath=function(r,n){var i=n.extent;r.moveTo(n.x1,n.y1),r.bezierCurveTo(n.cpx1,n.cpy1,n.cpx2,n.cpy2,n.x2,n.y2),n.orient==="vertical"?(r.lineTo(n.x2+i,n.y2),r.bezierCurveTo(n.cpx2+i,n.cpy2,n.cpx1+i,n.cpy1,n.x1+i,n.y1)):(r.lineTo(n.x2,n.y2+i),r.bezierCurveTo(n.cpx2,n.cpy2+i,n.cpx1,n.cpy1+i,n.x1,n.y1+i)),r.closePath()},t.prototype.highlight=function(){oB(this)},t.prototype.downplay=function(){sB(this)},t}(tl),d_r=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._focusAdjacencyDisabled=!1,r}return t.prototype.render=function(r,n,i){var a=this,o=r.getGraph(),s=this.group,l=r.layoutInfo,u=l.width,c=l.height,A=r.getData(),f=r.getData("edge"),h=r.get("orient");this._model=r,s.removeAll(),s.x=l.x,s.y=l.y,o.eachEdge(function(g){var p=new h_r,m=Vo(p);m.dataIndex=g.dataIndex,m.seriesIndex=r.seriesIndex,m.dataType="edge";var b=g.getModel(),C=b.getModel("lineStyle"),E=C.get("curveness"),_=g.node1.getLayout(),F=g.node1.getModel(),M=F.get("localX"),N=F.get("localY"),P=g.node2.getLayout(),j=g.node2.getModel(),z=j.get("localX"),W=j.get("localY"),Y=g.getLayout(),ee,q,ae,se,de,Ae,be,Le;p.shape.extent=Math.max(1,Y.dy),p.shape.orient=h,h==="vertical"?(ee=(M!=null?M*u:_.x)+Y.sy,q=(N!=null?N*c:_.y)+_.dy,ae=(z!=null?z*u:P.x)+Y.ty,se=W!=null?W*c:P.y,de=ee,Ae=q*(1-E)+se*E,be=ae,Le=q*E+se*(1-E)):(ee=(M!=null?M*u:_.x)+_.dx,q=(N!=null?N*c:_.y)+Y.sy,ae=z!=null?z*u:P.x,se=(W!=null?W*c:P.y)+Y.ty,de=ee*(1-E)+ae*E,Ae=q,be=ee*E+ae*(1-E),Le=se),p.setShape({x1:ee,y1:q,x2:ae,y2:se,cpx1:de,cpy1:Ae,cpx2:be,cpy2:Le}),p.useStyle(C.getItemStyle()),VKe(p.style,h,g);var Ne=""+b.get("value"),ue=Vd(b,"edgeLabel");up(p,ue,{labelFetcher:{getFormattedLabel:function(je,Ye,me,Se,et,nt){return r.getFormattedLabel(je,Ye,"edge",Se,aC(et,ue.normal&&ue.normal.get("formatter"),Ne),nt)}},labelDataIndex:g.dataIndex,defaultText:Ne}),p.setTextConfig({position:"inside"});var Ke=b.getModel("emphasis");lp(p,b,"lineStyle",function(je){var Ye=je.getItemStyle();return VKe(Ye,h,g),Ye}),s.add(p),f.setItemGraphicEl(g.dataIndex,p);var Pe=Ke.get("focus");jA(p,Pe==="adjacency"?g.getAdjacentDataIndices():Pe==="trajectory"?g.getTrajectoryDataIndices():Pe,Ke.get("blurScope"),Ke.get("disabled"))}),o.eachNode(function(g){var p=g.getLayout(),m=g.getModel(),b=m.get("localX"),C=m.get("localY"),E=m.getModel("emphasis"),_=m.get(["itemStyle","borderRadius"])||0,F=new Ol({shape:{x:b!=null?b*u:p.x,y:C!=null?C*c:p.y,width:p.dx,height:p.dy,r:_},style:m.getModel("itemStyle").getItemStyle(),z2:10});up(F,Vd(m),{labelFetcher:{getFormattedLabel:function(N,P){return r.getFormattedLabel(N,P,"node")}},labelDataIndex:g.dataIndex,defaultText:g.id}),F.disableLabelAnimation=!0,F.setStyle("fill",g.getVisual("color")),F.setStyle("decal",g.getVisual("style").decal),lp(F,m),s.add(F),A.setItemGraphicEl(g.dataIndex,F),Vo(F).dataType="node";var M=E.get("focus");jA(F,M==="adjacency"?g.getAdjacentDataIndices():M==="trajectory"?g.getTrajectoryDataIndices():M,E.get("blurScope"),E.get("disabled"))}),A.eachItemGraphicEl(function(g,p){var m=A.getItemModel(p);m.get("draggable")&&(g.drift=function(b,C){a._focusAdjacencyDisabled=!0,this.shape.x+=b,this.shape.y+=C,this.dirty(),i.dispatchAction({type:"dragNode",seriesId:r.id,dataIndex:A.getRawIndex(p),localX:this.shape.x/u,localY:this.shape.y/c})},g.ondragend=function(){a._focusAdjacencyDisabled=!1},g.draggable=!0,g.cursor="move")}),!this._data&&r.isAnimationEnabled()&&s.setClipPath(g_r(s.getBoundingRect(),r,function(){s.removeClipPath()})),this._data=r.getData()},t.prototype.dispose=function(){},t.type="sankey",t}(cc);function VKe(e,t,r){switch(e.fill){case"source":e.fill=r.node1.getVisual("color"),e.decal=r.node1.getVisual("style").decal;break;case"target":e.fill=r.node2.getVisual("color"),e.decal=r.node2.getVisual("style").decal;break;case"gradient":var n=r.node1.getVisual("color"),i=r.node2.getVisual("color");Oa(n)&&Oa(i)&&(e.fill=new lP(0,0,+(t==="horizontal"),+(t==="vertical"),[{color:n,offset:0},{color:i,offset:1}]))}}function g_r(e,t,r){var n=new Ol({shape:{x:e.x-10,y:e.y-10,width:0,height:e.height+20}});return oA(n,{shape:{width:e.width+20}},t,r),n}var p_r=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){var i=r.edges||r.links||[],a=r.data||r.nodes||[],o=r.levels||[];this.levelModels=[];for(var s=this.levelModels,l=0;l=0&&(s[o[l].depth]=new Du(o[l],this,n));var u=Oyt(a,i,this,!0,c);return u.data;function c(A,f){A.wrapMethod("getItemModel",function(h,g){var p=h.parentModel,m=p.getData().getItemLayout(g);if(m){var b=m.depth,C=p.levelModels[b];C&&(h.parentModel=C)}return h}),f.wrapMethod("getItemModel",function(h,g){var p=h.parentModel,m=p.getGraph().getEdgeByIndex(g),b=m.node1.getLayout();if(b){var C=b.depth,E=p.levelModels[C];E&&(h.parentModel=E)}return h})}},t.prototype.setNodePosition=function(r,n){var i=this.option.data||this.option.nodes,a=i[r];a.localX=n[0],a.localY=n[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(r,n,i){function a(h){return isNaN(h)||h==null}if(i==="edge"){var o=this.getDataParams(r,i),s=o.data,l=o.value,u=s.source+" -- "+s.target;return Wd("nameValue",{name:u,value:l,noValue:a(l)})}else{var c=this.getGraph().getNodeByIndex(r),A=c.getLayout().value,f=this.getDataParams(r,i).data.name;return Wd("nameValue",{name:f!=null?f+"":null,value:A,noValue:a(A)})}},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(r,n){var i=e.prototype.getDataParams.call(this,r,n);if(i.value==null&&n==="node"){var a=this.getGraph().getNodeByIndex(r),o=a.getLayout().value;i.value=o}return i},t.type="series.sankey",t.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},t}(Lc);function v_r(e,t){e.eachSeriesByType("sankey",function(r){var n=r.get("nodeWidth"),i=r.get("nodeGap"),a=m_r(r,t);r.layoutInfo=a;var o=a.width,s=a.height,l=r.getGraph(),u=l.nodes,c=l.edges;b_r(u);var A=Cu(u,function(p){return p.getLayout().value===0}),f=A.length!==0?0:r.get("layoutIterations"),h=r.get("orient"),g=r.get("nodeAlign");y_r(u,c,n,i,o,s,f,h,g)})}function m_r(e,t){return fd(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function y_r(e,t,r,n,i,a,o,s,l){w_r(e,t,r,i,a,s,l),B_r(e,t,a,i,n,o,s),R_r(e,s)}function b_r(e){Mt(e,function(t){var r=o5(t.outEdges,JY),n=o5(t.inEdges,JY),i=t.getValue()||0,a=Math.max(r,n,i);t.setLayout({value:a},!0)})}function w_r(e,t,r,n,i,a,o){for(var s=[],l=[],u=[],c=[],A=0,f=0;f=0;b&&m.depth>h&&(h=m.depth),p.setLayout({depth:b?m.depth:A},!0),a==="vertical"?p.setLayout({dy:r},!0):p.setLayout({dx:r},!0);for(var C=0;CA-1?h:A-1;o&&o!=="left"&&C_r(e,o,a,N);var P=a==="vertical"?(i-r)/N:(n-r)/N;E_r(e,P,a)}function tbt(e){var t=e.hostGraph.data.getRawDataItem(e.dataIndex);return t.depth!=null&&t.depth>=0}function C_r(e,t,r,n){if(t==="right"){for(var i=[],a=e,o=0;a.length;){for(var s=0;s0;a--)l*=.99,k_r(s,l,o),oge(s,i,r,n,o),F_r(s,l,o),oge(s,i,r,n,o)}function x_r(e,t){var r=[],n=t==="vertical"?"y":"x",i=twe(e,function(a){return a.getLayout()[n]});return i.keys.sort(function(a,o){return a-o}),Mt(i.keys,function(a){r.push(i.buckets.get(a))}),r}function S_r(e,t,r,n,i,a){var o=1/0;Mt(e,function(s){var l=s.length,u=0;Mt(s,function(A){u+=A.getLayout().value});var c=a==="vertical"?(n-(l-1)*i)/u:(r-(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()[f]+t;var g=i==="vertical"?n:r;if(u=c-t-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=A-2;h>=0;--h)l=o[h],u=l.getLayout()[a]+l.getLayout()[f]+t-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 k_r(e,t,r){Mt(e.slice().reverse(),function(n){Mt(n,function(i){if(i.outEdges.length){var a=o5(i.outEdges,Q_r,r)/o5(i.outEdges,JY);if(isNaN(a)){var o=i.outEdges.length;a=o?o5(i.outEdges,__r,r)/o:0}if(r==="vertical"){var s=i.getLayout().x+(a-k5(i,r))*t;i.setLayout({x:s},!0)}else{var l=i.getLayout().y+(a-k5(i,r))*t;i.setLayout({y:l},!0)}}})})}function Q_r(e,t){return k5(e.node2,t)*e.getValue()}function __r(e,t){return k5(e.node2,t)}function T_r(e,t){return k5(e.node1,t)*e.getValue()}function D_r(e,t){return k5(e.node1,t)}function k5(e,t){return t==="vertical"?e.getLayout().x+e.getLayout().dx/2:e.getLayout().y+e.getLayout().dy/2}function JY(e){return e.getValue()}function o5(e,t,r){for(var n=0,i=e.length,a=-1;++ao&&(o=l)}),Mt(n,function(s){var l=new Gd({type:"color",mappingMethod:"linear",dataExtent:[a,o],visual:t.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&&Mt(i,function(s){var l=s.getModel().get("lineStyle");s.setVisual("style",l)})})}function O_r(e){e.registerChartView(d_r),e.registerSeriesModel(p_r),e.registerLayout(v_r),e.registerVisual(M_r),e.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(t,r){r.eachComponent({mainType:"series",subType:"sankey",query:t},function(n){n.setNodePosition(t.dataIndex,[t.localX,t.localY])})})}var rbt=function(){function e(){}return e.prototype._hasEncodeRule=function(t){var r=this.getEncode();return r&&r.get(t)!=null},e.prototype.getInitialData=function(t,r){var n,i=r.getComponent("xAxis",this.get("xAxisIndex")),a=r.getComponent("yAxis",this.get("yAxisIndex")),o=i.get("type"),s=a.get("type"),l;o==="category"?(t.layout="horizontal",n=i.getOrdinalMeta(),l=!this._hasEncodeRule("x")):s==="category"?(t.layout="vertical",n=a.getOrdinalMeta(),l=!this._hasEncodeRule("y")):t.layout=t.layout||"horizontal";var u=["x","y"],c=t.layout==="horizontal"?0:1,A=this._baseAxisDim=u[c],f=u[1-c],h=[i,a],g=h[c].get("type"),p=h[1-c].get("type"),m=t.data;if(m&&l){var b=[];Mt(m,function(_,F){var M;Bi(_)?(M=_.slice(),_.unshift(F)):Bi(_.value)?(M=si({},_),M.value=M.value.slice(),_.value.unshift(F)):M=_,b.push(M)}),t.data=b}var C=this.defaultValueDimensions,E=[{name:A,type:UY(g),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:f,type:UY(p),dimsDef:C.slice()}];return IT(this,{coordDimensions:E,dimensionsCount:C.length+1,encodeDefaulter:us(Mvt,E,this)})},e.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},e}(),nbt=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],r.visualDrawType="stroke",r}return t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.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},t}(Lc);Th(nbt,rbt,!0);var N_r=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this.group,s=this._data;this._data||o.removeAll();var l=r.get("layout")==="horizontal"?1:0;a.diff(s).add(function(u){if(a.hasValue(u)){var c=a.getItemLayout(u),A=WKe(c,a,u,l,!0);a.setItemGraphicEl(u,A),o.add(A)}}).update(function(u,c){var A=s.getItemGraphicEl(c);if(!a.hasValue(u)){o.remove(A);return}var f=a.getItemLayout(u);A?(u2(A),ibt(f,A,a,u)):A=WKe(f,a,u,l),o.add(A),a.setItemGraphicEl(u,A)}).remove(function(u){var c=s.getItemGraphicEl(u);c&&o.remove(c)}).execute(),this._data=a},t.prototype.remove=function(r){var n=this.group,i=this._data;this._data=null,i&&i.eachItemGraphicEl(function(a){a&&n.remove(a)})},t.type="boxplot",t}(cc),L_r=function(){function e(){}return e}(),P_r=function(e){Wn(t,e);function t(r){var n=e.call(this,r)||this;return n.type="boxplotBoxPath",n}return t.prototype.getDefaultShape=function(){return new L_r},t.prototype.buildPath=function(r,n){var i=n.points,a=0;for(r.moveTo(i[a][0],i[a][1]),a++;a<4;a++)r.lineTo(i[a][0],i[a][1]);for(r.closePath();ap){var _=[b,E];n.push(_)}}}return{boxData:r,outliers:n}}var K_r={type:"echarts:boxplot",transform:function(t){var r=t.upstream;if(r.sourceFormat!==c0){var n="";wu(n)}var i=z_r(r.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:i.boxData},{data:i.outliers}]}};function V_r(e){e.registerSeriesModel(nbt),e.registerChartView(N_r),e.registerLayout(H_r),e.registerTransform(K_r)}var W_r=["itemStyle","borderColor"],Y_r=["itemStyle","borderColor0"],q_r=["itemStyle","borderColorDoji"],J_r=["itemStyle","color"],X_r=["itemStyle","color0"];function RSe(e,t){return t.get(e>0?J_r:X_r)}function MSe(e,t){return t.get(e===0?q_r:e>0?W_r:Y_r)}var Z_r={seriesType:"candlestick",plan:yT(),performRawSeries:!0,reset:function(e,t){if(!t.isSeriesFiltered(e)){var r=e.pipelineContext.large;return!r&&{progress:function(n,i){for(var a;(a=n.next())!=null;){var o=i.getItemModel(a),s=i.getItemLayout(a).sign,l=o.getItemStyle();l.fill=RSe(s,o),l.stroke=MSe(s,o)||l.fill;var u=i.ensureUniqueItemVisual(a,"style");si(u,l)}}}}}},e8r=["color","borderColor"],t8r=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(r),this._isLargeDraw?this._renderLarge(r):this._renderNormal(r)},t.prototype.incrementalPrepareRender=function(r,n,i){this._clear(),this._updateDrawMode(r)},t.prototype.incrementalRender=function(r,n,i,a){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(r,n):this._incrementalRenderNormal(r,n)},t.prototype.eachRendered=function(r){Z5(this._progressiveEls||this.group,r)},t.prototype._updateDrawMode=function(r){var n=r.pipelineContext.large;(this._isLargeDraw==null||n!==this._isLargeDraw)&&(this._isLargeDraw=n,this._clear())},t.prototype._renderNormal=function(r){var n=r.getData(),i=this._data,a=this.group,o=n.getLayout("isSimpleBox"),s=r.get("clip",!0),l=r.coordinateSystem,u=l.getArea&&l.getArea();this._data||a.removeAll(),n.diff(i).add(function(c){if(n.hasValue(c)){var A=n.getItemLayout(c);if(s&&YKe(u,A))return;var f=sge(A,c,!0);oA(f,{shape:{points:A.ends}},r,c),lge(f,n,c,o),a.add(f),n.setItemGraphicEl(c,f)}}).update(function(c,A){var f=i.getItemGraphicEl(A);if(!n.hasValue(c)){a.remove(f);return}var h=n.getItemLayout(c);if(s&&YKe(u,h)){a.remove(f);return}f?(su(f,{shape:{points:h.ends}},r,c),u2(f)):f=sge(h),lge(f,n,c,o),a.add(f),n.setItemGraphicEl(c,f)}).remove(function(c){var A=i.getItemGraphicEl(c);A&&a.remove(A)}).execute(),this._data=n},t.prototype._renderLarge=function(r){this._clear(),qKe(r,this.group);var n=r.get("clip",!0)?vP(r.coordinateSystem,!1,r):null;n?this.group.setClipPath(n):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(r,n){for(var i=n.getData(),a=i.getLayout("isSimpleBox"),o;(o=r.next())!=null;){var s=i.getItemLayout(o),l=sge(s);lge(l,i,o,a),l.incremental=!0,this.group.add(l),this._progressiveEls.push(l)}},t.prototype._incrementalRenderLarge=function(r,n){qKe(n,this.group,this._progressiveEls,!0)},t.prototype.remove=function(r){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(cc),r8r=function(){function e(){}return e}(),n8r=function(e){Wn(t,e);function t(r){var n=e.call(this,r)||this;return n.type="normalCandlestickBox",n}return t.prototype.getDefaultShape=function(){return new r8r},t.prototype.buildPath=function(r,n){var i=n.points;this.__simpleBox?(r.moveTo(i[4][0],i[4][1]),r.lineTo(i[6][0],i[6][1])):(r.moveTo(i[0][0],i[0][1]),r.lineTo(i[1][0],i[1][1]),r.lineTo(i[2][0],i[2][1]),r.lineTo(i[3][0],i[3][1]),r.closePath(),r.moveTo(i[4][0],i[4][1]),r.lineTo(i[5][0],i[5][1]),r.moveTo(i[6][0],i[6][1]),r.lineTo(i[7][0],i[7][1]))},t}(tl);function sge(e,t,r){var n=e.ends;return new n8r({shape:{points:r?i8r(n,e):n},z2:100})}function YKe(e,t){for(var r=!0,n=0;nF?W[a]:z[a],ends:q,brushRect:be(M,N,E)})}function de(Ne,ue){var Ke=[];return Ke[i]=ue,Ke[a]=Ne,isNaN(ue)||isNaN(Ne)?[NaN,NaN]:t.dataToPoint(Ke)}function Ae(Ne,ue,Ke){var Pe=ue.slice(),je=ue.slice();Pe[i]=aV(Pe[i]+n/2,1,!1),je[i]=aV(je[i]-n/2,1,!0),Ke?Ne.push(Pe,je):Ne.push(je,Pe)}function be(Ne,ue,Ke){var Pe=de(Ne,Ke),je=de(ue,Ke);return Pe[i]-=n/2,je[i]-=n/2,{x:Pe[0],y:Pe[1],width:n,height:je[1]-Pe[1]}}function Le(Ne){return Ne[i]=aV(Ne[i],1),Ne}}function g(p,m){for(var b=qw(p.count*4),C=0,E,_=[],F=[],M,N=m.getStore(),P=!!e.get(["itemStyle","borderColorDoji"]);(M=p.next())!=null;){var j=N.get(s,M),z=N.get(u,M),W=N.get(c,M),Y=N.get(A,M),ee=N.get(f,M);if(isNaN(j)||isNaN(Y)||isNaN(ee)){b[C++]=NaN,C+=3;continue}b[C++]=JKe(N,M,z,W,c,P),_[i]=j,_[a]=Y,E=t.dataToPoint(_,null,F),b[C++]=E?E[0]:NaN,b[C++]=E?E[1]:NaN,_[a]=ee,E=t.dataToPoint(_,null,F),b[C++]=E?E[1]:NaN}m.setLayout("largePoints",b)}}};function JKe(e,t,r,n,i,a){var o;return r>n?o=-1:r0?e.get(i,t-1)<=n?1:-1:1,o}function l8r(e,t){var r=e.getBaseAxis(),n,i=r.type==="category"?r.getBandWidth():(n=r.getExtent(),Math.abs(n[1]-n[0])/t.count()),a=Ba(ts(e.get("barMaxWidth"),i),i),o=Ba(ts(e.get("barMinWidth"),1),i),s=e.get("barWidth");return s!=null?Ba(s,i):Math.max(Math.min(i/2,a),o)}function u8r(e){e.registerChartView(t8r),e.registerSeriesModel(abt),e.registerPreprocessor(o8r),e.registerVisual(Z_r),e.registerLayout(s8r)}function XKe(e,t){var r=t.rippleEffectColor||t.color;e.eachChild(function(n){n.attr({z:t.z,zlevel:t.zlevel,style:{stroke:t.brushType==="stroke"?r:null,fill:t.brushType==="fill"?r:null}})})}var c8r=function(e){Wn(t,e);function t(r,n){var i=e.call(this)||this,a=new gP(r,n),o=new $o;return i.add(a),i.add(o),i.updateData(r,n),i}return t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(r){for(var n=r.symbolType,i=r.color,a=r.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 f=void 0;Bo(A)?f=A(i):f=A,a.__t>0&&(f=-s*a.__t),this._animateSymbol(a,s,f,l,u)}this._period=s,this._loop=l,this._roundTrip=u}},t.prototype._animateSymbol=function(r,n,i,a,o){if(n>0){r.__t=0;var s=this,l=r.animate("",a).when(o?n*2:n,{__t:o?2:1}).delay(i).during(function(){s._updateSymbolPosition(r)});a||l.done(function(){s.remove(r)}),l.start()}},t.prototype._getLineLength=function(r){return M3(r.__p1,r.__cp1)+M3(r.__cp1,r.__p2)},t.prototype._updateAnimationPoints=function(r,n){r.__p1=n[0],r.__p2=n[1],r.__cp1=n[2]||[(n[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2]},t.prototype.updateData=function(r,n,i){this.childAt(0).updateData(r,n,i),this._updateEffectSymbol(r,n)},t.prototype._updateSymbolPosition=function(r){var n=r.__p1,i=r.__p2,a=r.__cp1,o=r.__t<1?r.__t:2-r.__t,s=[r.x,r.y],l=s.slice(),u=mg,c=U2e;s[0]=u(n[0],a[0],i[0],o),s[1]=u(n[1],a[1],i[1],o);var A=r.__t<1?c(n[0],a[0],i[0],o):c(i[0],a[0],n[0],1-o),f=r.__t<1?c(n[1],a[1],i[1],o):c(i[1],a[1],n[1],1-o);r.rotation=-Math.atan2(f,A)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(r.__lastT!==void 0&&r.__lastT=0&&!(a[l]<=n);l--);l=Math.min(l,o-2)}else{for(l=s;ln);l++);l=Math.min(l-1,o-2)}var c=(n-a[l])/(a[l+1]-a[l]),A=i[l],f=i[l+1];r.x=A[0]*(1-c)+c*f[0],r.y=A[1]*(1-c)+c*f[1];var h=r.__t<1?f[0]-A[0]:A[0]-f[0],g=r.__t<1?f[1]-A[1]:A[1]-f[1];r.rotation=-Math.atan2(g,h)-Math.PI/2,this._lastFrame=l,this._lastFramePercent=n,r.ignore=!1}},t}(obt),g8r=function(){function e(){this.polyline=!1,this.curveness=0,this.segs=[]}return e}(),p8r=function(e){Wn(t,e);function t(r){var n=e.call(this,r)||this;return n._off=0,n.hoverDataIdx=-1,n}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new g8r},t.prototype.buildPath=function(r,n){var i=n.segs,a=n.curveness,o;if(n.polyline)for(o=this._off;o0){r.moveTo(i[o++],i[o++]);for(var l=1;l0){var h=(u+A)/2-(c-f)*a,g=(c+f)/2-(A-u)*a;r.quadraticCurveTo(h,g,A,f)}else r.lineTo(A,f)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(r,n){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 A=a[u++],f=a[u++],h=1;h0){var m=(A+g)/2-(f-p)*o,b=(f+p)/2-(g-A)*o;if(M0t(A,f,m,b,g,p,s,r,n))return l}else if(A3(A,f,g,p,s,r,n))return l;l++}return-1},t.prototype.contain=function(r,n){var i=this.transformCoordToLocal(r,n),a=this.getBoundingRect();if(r=i[0],n=i[1],a.contain(r,n)){var o=this.hoverDataIdx=this.findDataIndex(r,n);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var r=this._rect;if(!r){for(var n=this.shape,i=n.segs,a=1/0,o=1/0,s=-1/0,l=-1/0,u=0;u0&&(o.dataIndex=l+t.__startIndex)})},e.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},e}(),lbt={seriesType:"lines",plan:yT(),reset:function(e){var t=e.coordinateSystem;if(t){var r=e.get("polyline"),n=e.pipelineContext.large;return{progress:function(i,a){var o=[];if(n){var s=void 0,l=i.end-i.start;if(r){for(var u=0,c=i.start;c0&&(c||u.configLayer(s,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(l/10+.9,1),0)})),o.updateData(a);var A=r.get("clip",!0)&&vP(r.coordinateSystem,!1,r);A?this.group.setClipPath(A):this.group.removeClipPath(),this._lastZlevel=s,this._finished=!0},t.prototype.incrementalPrepareRender=function(r,n,i){var a=r.getData(),o=this._updateLineDraw(a,r);o.incrementalPrepareUpdate(a),this._clearLayer(i),this._finished=!1},t.prototype.incrementalRender=function(r,n,i){this._lineDraw.incrementalUpdate(r,n.getData()),this._finished=r.end===n.getData().count()},t.prototype.eachRendered=function(r){this._lineDraw&&this._lineDraw.eachRendered(r)},t.prototype.updateTransform=function(r,n,i){var a=r.getData(),o=r.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var s=lbt.reset(r,n,i);s.progress&&s.progress({start:0,end:a.count(),count:a.count()},a),this._lineDraw.updateLayout(),this._clearLayer(i)},t.prototype._updateLineDraw=function(r,n){var i=this._lineDraw,a=this._showEffect(n),o=!!n.get("polyline"),s=n.pipelineContext,l=s.large;return(!i||a!==this._hasEffet||o!==this._isPolyline||l!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=l?new v8r:new xSe(o?a?d8r:sbt:a?obt:BSe),this._hasEffet=a,this._isPolyline=o,this._isLargeDraw=l),this.group.add(i.group),i},t.prototype._showEffect=function(r){return!!r.get(["effect","show"])},t.prototype._clearLayer=function(r){var n=r.getZr(),i=n.painter.getType()==="svg";!i&&this._lastZlevel!=null&&n.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(r,n){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(n)},t.prototype.dispose=function(r,n){this.remove(r,n)},t.type="lines",t}(cc),y8r=typeof Uint32Array>"u"?Array:Uint32Array,b8r=typeof Float64Array>"u"?Array:Float64Array;function ZKe(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=Ti(t,function(r){var n=[r[0].coord,r[1].coord],i={coords:n};return r[0].name&&(i.fromName=r[0].name),r[1].name&&(i.toName=r[1].name),o5e([i,r[0],r[1]])}))}var w8r=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.visualStyleAccessPath="lineStyle",r.visualDrawType="stroke",r}return t.prototype.init=function(r){r.data=r.data||[],ZKe(r);var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count)),e.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(r){if(ZKe(r),r.data){var n=this._processFlatCoordsArray(r.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(r.data=new Float32Array(n.count))}e.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(r){var n=this._processFlatCoordsArray(r.data);n.flatCoords&&(this._flatCoords?(this._flatCoords=yN(this._flatCoords,n.flatCoords),this._flatCoordsOffset=yN(this._flatCoordsOffset,n.flatCoordsOffset)):(this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset),r.data=new Float32Array(n.count)),this.getRawData().appendData(r.data)},t.prototype._getCoordsFromItemModel=function(r){var n=this.getData().getItemModel(r),i=n.option instanceof Array?n.option:n.getShallow("coords");return i},t.prototype.getLineCoordsCount=function(r){return this._flatCoordsOffset?this._flatCoordsOffset[r*2+1]:this._getCoordsFromItemModel(r).length},t.prototype.getLineCoords=function(r,n){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[r*2],a=this._flatCoordsOffset[r*2+1],o=0;o ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var r=this.option.progressive;return r??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var r=this.option.progressiveThreshold;return r??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var r=this.getModel("effect"),n=r.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:r.get("show")&&n>0?n+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.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}},t}(Lc);function nz(e){return e instanceof Array||(e=[e,e]),e}var C8r={seriesType:"lines",reset:function(e){var t=nz(e.get("symbol")),r=nz(e.get("symbolSize")),n=e.getData();n.setVisual("fromSymbol",t&&t[0]),n.setVisual("toSymbol",t&&t[1]),n.setVisual("fromSymbolSize",r&&r[0]),n.setVisual("toSymbolSize",r&&r[1]);function i(a,o){var s=a.getItemModel(o),l=nz(s.getShallow("symbol",!0)),u=nz(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:n.hasItemOption?i:null}}};function I8r(e){e.registerChartView(m8r),e.registerSeriesModel(w8r),e.registerLayout(lbt),e.registerVisual(C8r)}var E8r=256,B8r=function(){function e(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=I5.createCanvas();this.canvas=t}return e.prototype.update=function(t,r,n,i,a,o){var s=this._getBrush(),l=this._getGradient(a,"inRange"),u=this._getGradient(a,"outOfRange"),c=this.pointSize+this.blurSize,A=this.canvas,f=A.getContext("2d"),h=t.length;A.width=r,A.height=n;for(var g=0;g0){var Y=o(E)?l:u;E>0&&(E=E*z+P),F[M++]=Y[W],F[M++]=Y[W+1],F[M++]=Y[W+2],F[M++]=Y[W+3]*E*256}else M+=4}return f.putImageData(_,0,0),A},e.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=I5.createCanvas()),r=this.pointSize+this.blurSize,n=r*2;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-r,r,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),t},e.prototype._getGradient=function(t,r){for(var n=this._gradientPixels,i=n[r]||(n[r]=new Uint8ClampedArray(256*4)),a=[0,0,0,0],o=0,s=0;s<256;s++)t[r](s/255,!0,a),i[o++]=a[0],i[o++]=a[1],i[o++]=a[2],i[o++]=a[3];return i},e}();function x8r(e,t,r){var n=e[1]-e[0];t=Ti(t,function(o){return{interval:[(o.interval[0]-e[0])/n,(o.interval[1]-e[0])/n]}});var i=t.length,a=0;return function(o){var s;for(s=a;s=0;s--){var l=t[s].interval;if(l[0]<=o&&o<=l[1]){a=s;break}}return s>=0&&s=t[0]&&n<=t[1]}}function eVe(e){var t=e.dimensions;return t[0]==="lng"&&t[1]==="lat"}var k8r=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a;n.eachComponent("visualMap",function(s){s.eachTargetSeries(function(l){l===r&&(a=s)})}),this._progressiveEls=null,this.group.removeAll();var o=r.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(r,i,0,r.getData().count()):eVe(o)&&this._renderOnGeo(o,r,a,i)},t.prototype.incrementalPrepareRender=function(r,n,i){this.group.removeAll()},t.prototype.incrementalRender=function(r,n,i,a){var o=n.coordinateSystem;o&&(eVe(o)?this.render(n,i,a):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(n,a,r.start,r.end,!0)))},t.prototype.eachRendered=function(r){Z5(this._progressiveEls||this.group,r)},t.prototype._renderOnCartesianAndCalendar=function(r,n,i,a,o){var s=r.coordinateSystem,l=bQ(s,"cartesian2d"),u,c,A,f;if(l){var h=s.getAxis("x"),g=s.getAxis("y");u=h.getBandWidth()+.5,c=g.getBandWidth()+.5,A=h.scale.getExtent(),f=g.scale.getExtent()}for(var p=this.group,m=r.getData(),b=r.getModel(["emphasis","itemStyle"]).getItemStyle(),C=r.getModel(["blur","itemStyle"]).getItemStyle(),E=r.getModel(["select","itemStyle"]).getItemStyle(),_=r.get(["itemStyle","borderRadius"]),F=Vd(r),M=r.getModel("emphasis"),N=M.get("focus"),P=M.get("blurScope"),j=M.get("disabled"),z=l?[m.mapDimension("x"),m.mapDimension("y"),m.mapDimension("value")]:[m.mapDimension("time"),m.mapDimension("value")],W=i;WA[1]||aef[1])continue;var se=s.dataToPoint([q,ae]);Y=new Ol({shape:{x:se[0]-u/2,y:se[1]-c/2,width:u,height:c},style:ee})}else{if(isNaN(m.get(z[1],W)))continue;Y=new Ol({z2:1,shape:s.dataToRect([m.get(z[0],W)]).contentShape,style:ee})}if(m.hasItemOption){var de=m.getItemModel(W),Ae=de.getModel("emphasis");b=Ae.getModel("itemStyle").getItemStyle(),C=de.getModel(["blur","itemStyle"]).getItemStyle(),E=de.getModel(["select","itemStyle"]).getItemStyle(),_=de.get(["itemStyle","borderRadius"]),N=Ae.get("focus"),P=Ae.get("blurScope"),j=Ae.get("disabled"),F=Vd(de)}Y.shape.r=_;var be=r.getRawValue(W),Le="-";be&&be[2]!=null&&(Le=be[2]+""),up(Y,F,{labelFetcher:r,labelDataIndex:W,defaultOpacity:ee.opacity,defaultText:Le}),Y.ensureState("emphasis").style=b,Y.ensureState("blur").style=C,Y.ensureState("select").style=E,jA(Y,N,P,j),Y.incremental=o,o&&(Y.states.emphasis.hoverLayer=!0),p.add(Y),m.setItemGraphicEl(W,Y),this._progressiveEls&&this._progressiveEls.push(Y)}},t.prototype._renderOnGeo=function(r,n,i,a){var o=i.targetVisuals.inRange,s=i.targetVisuals.outOfRange,l=n.getData(),u=this._hmLayer||this._hmLayer||new B8r;u.blurSize=n.get("blurSize"),u.pointSize=n.get("pointSize"),u.minOpacity=n.get("minOpacity"),u.maxOpacity=n.get("maxOpacity");var c=r.getViewRect().clone(),A=r.getRoamTransform();c.applyTransform(A);var f=Math.max(c.x,0),h=Math.max(c.y,0),g=Math.min(c.width+c.x,a.getWidth()),p=Math.min(c.height+c.y,a.getHeight()),m=g-f,b=p-h,C=[l.mapDimension("lng"),l.mapDimension("lat"),l.mapDimension("value")],E=l.mapArray(C,function(N,P,j){var z=r.dataToPoint([N,P]);return z[0]-=f,z[1]-=h,z.push(j),z}),_=i.getExtent(),F=i.type==="visualMap.continuous"?S8r(_,i.option.range):x8r(_,i.getPieceList(),i.option.selected);u.update(E,m,b,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:s.color.getColorMapper()},F);var M=new Bg({style:{width:m,height:b,x:f,y:h,image:u.canvas},silent:!0});this.group.add(M)},t.type="heatmap",t}(cc),Q8r=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.getInitialData=function(r,n){return kB(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var r=AP.get(this.get("coordinateSystem"));if(r&&r.dimensions)return r.dimensions[0]==="lng"&&r.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t}(Lc);function _8r(e){e.registerChartView(k8r),e.registerSeriesModel(Q8r)}var T8r=["itemStyle","borderWidth"],tVe=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],Age=new SB,D8r=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=this.group,o=r.getData(),s=this._data,l=r.coordinateSystem,u=l.getBaseAxis(),c=u.isHorizontal(),A=l.master.getRect(),f={ecSize:{width:i.getWidth(),height:i.getHeight()},seriesModel:r,coordSys:l,coordSysExtent:[[A.x,A.x+A.width],[A.y,A.y+A.height]],isHorizontal:c,valueDim:tVe[+c],categoryDim:tVe[1-+c]};o.diff(s).add(function(g){if(o.hasValue(g)){var p=nVe(o,g),m=rVe(o,g,p,f),b=iVe(o,f,m);o.setItemGraphicEl(g,b),a.add(b),oVe(b,f,m)}}).update(function(g,p){var m=s.getItemGraphicEl(p);if(!o.hasValue(g)){a.remove(m);return}var b=nVe(o,g),C=rVe(o,g,b,f),E=dbt(o,C);m&&E!==m.__pictorialShapeStr&&(a.remove(m),o.setItemGraphicEl(g,null),m=null),m?P8r(m,f,C):m=iVe(o,f,C,!0),o.setItemGraphicEl(g,m),m.__pictorialSymbolMeta=C,a.add(m),oVe(m,f,C)}).remove(function(g){var p=s.getItemGraphicEl(g);p&&aVe(s,g,p.__pictorialSymbolMeta.animationModel,p)}).execute();var h=r.get("clip",!0)?vP(r.coordinateSystem,!1,r):null;return h?a.setClipPath(h):a.removeClipPath(),this._data=o,this.group},t.prototype.remove=function(r,n){var i=this.group,a=this._data;r.get("animation")?a&&a.eachItemGraphicEl(function(o){aVe(a,Vo(o).dataIndex,r,o)}):i.removeAll()},t.type="pictorialBar",t}(cc);function rVe(e,t,r,n){var i=e.getItemLayout(t),a=r.get("symbolRepeat"),o=r.get("symbolClip"),s=r.get("symbolPosition")||"start",l=r.get("symbolRotate"),u=(l||0)*Math.PI/180||0,c=r.get("symbolPatternSize")||2,A=r.isAnimationEnabled(),f={dataIndex:t,layout:i,itemModel:r,symbolType:e.getItemVisual(t,"symbol")||"circle",style:e.getItemVisual(t,"style"),symbolClip:o,symbolRepeat:a,symbolRepeatDirection:r.get("symbolRepeatDirection"),symbolPatternSize:c,rotation:u,animationModel:A?r:null,hoverScale:A&&r.get(["emphasis","scale"]),z2:r.getShallow("z",!0)||0};F8r(r,a,i,n,f),R8r(e,t,i,a,o,f.boundingLength,f.pxSign,c,n,f),M8r(r,f.symbolScale,u,n,f);var h=f.symbolSize,g=mQ(r.get("symbolOffset"),h);return O8r(r,h,i,a,o,g,s,f.valueLineWidth,f.boundingLength,f.repeatCutLength,n,f),f}function F8r(e,t,r,n,i){var a=n.valueDim,o=e.get("symbolBoundingData"),s=n.coordSys.getOtherAxis(n.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=1-+(r[a.wh]<=0),c;if(Bi(o)){var A=[fge(s,o[0])-l,fge(s,o[1])-l];A[1]=0?1:-1:c>0?1:-1}function fge(e,t){return e.toGlobalCoord(e.dataToCoord(e.scale.parse(t)))}function R8r(e,t,r,n,i,a,o,s,l,u){var c=l.valueDim,A=l.categoryDim,f=Math.abs(r[A.wh]),h=e.getItemVisual(t,"symbolSize"),g;Bi(h)?g=h.slice():h==null?g=["100%","100%"]:g=[h,h],g[A.index]=Ba(g[A.index],f),g[c.index]=Ba(g[c.index],n?f:Math.abs(a)),u.symbolSize=g;var p=u.symbolScale=[g[0]/s,g[1]/s];p[c.index]*=(l.isHorizontal?-1:1)*o}function M8r(e,t,r,n,i){var a=e.get(T8r)||0;a&&(Age.attr({scaleX:t[0],scaleY:t[1],rotation:r}),Age.updateTransform(),a/=Age.getLineScale(),a*=t[n.valueDim.index]),i.valueLineWidth=a||0}function O8r(e,t,r,n,i,a,o,s,l,u,c,A){var f=c.categoryDim,h=c.valueDim,g=A.pxSign,p=Math.max(t[h.index]+s,0),m=p;if(n){var b=Math.abs(l),C=bg(e.get("symbolMargin"),"15%")+"",E=!1;C.lastIndexOf("!")===C.length-1&&(E=!0,C=C.slice(0,C.length-1));var _=Ba(C,t[h.index]),F=Math.max(p+_*2,0),M=E?0:_*2,N=C0t(n),P=N?n:sVe((b+M)/F),j=b-P*p;_=j/2/(E?P:Math.max(P-1,1)),F=p+_*2,M=E?0:_*2,!N&&n!=="fixed"&&(P=u?sVe((Math.abs(u)+M)/F):0),m=P*F-M,A.repeatTimes=P,A.symbolMargin=_}var z=g*(m/2),W=A.pathPosition=[];W[f.index]=r[f.wh]/2,W[h.index]=o==="start"?z:o==="end"?l-z:l/2,a&&(W[0]+=a[0],W[1]+=a[1]);var Y=A.bundlePosition=[];Y[f.index]=r[f.xy],Y[h.index]=r[h.xy];var ee=A.barRectShape=si({},r);ee[h.wh]=g*Math.max(Math.abs(r[h.wh]),Math.abs(W[h.index]+z)),ee[f.wh]=r[f.wh];var q=A.clipShape={};q[f.xy]=-r[f.xy],q[f.wh]=c.ecSize[f.wh],q[h.xy]=0,q[h.wh]=r[h.wh]}function ubt(e){var t=e.symbolPatternSize,r=_h(e.symbolType,-t/2,-t/2,t,t);return r.attr({culling:!0}),r.type!=="image"&&r.setStyle({strokeNoScale:!0}),r}function cbt(e,t,r,n){var i=e.__pictorialBundle,a=r.symbolSize,o=r.valueLineWidth,s=r.pathPosition,l=t.valueDim,u=r.repeatTimes||0,c=0,A=a[t.valueDim.index]+o+r.symbolMargin*2;for(OSe(e,function(p){p.__pictorialAnimationIndex=c,p.__pictorialRepeatTimes=u,c0:b<0)&&(C=u-1-p),m[l.index]=A*(C-u/2+.5)+s[l.index],{x:m[0],y:m[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation}}}function Abt(e,t,r,n){var i=e.__pictorialBundle,a=e.__pictorialMainPath;a?k9(a,null,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:r.symbolScale[0],scaleY:r.symbolScale[1],rotation:r.rotation},r,n):(a=e.__pictorialMainPath=ubt(r),i.add(a),k9(a,{x:r.pathPosition[0],y:r.pathPosition[1],scaleX:0,scaleY:0,rotation:r.rotation},{scaleX:r.symbolScale[0],scaleY:r.symbolScale[1]},r,n))}function fbt(e,t,r){var n=si({},t.barRectShape),i=e.__pictorialBarRect;i?k9(i,null,{shape:n},t,r):(i=e.__pictorialBarRect=new Ol({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),i.disableMorphing=!0,e.add(i))}function hbt(e,t,r,n){if(r.symbolClip){var i=e.__pictorialClipPath,a=si({},r.clipShape),o=t.valueDim,s=r.animationModel,l=r.dataIndex;if(i)su(i,{shape:a},s,l);else{a[o.wh]=0,i=new Ol({shape:a}),e.__pictorialBundle.setClipPath(i),e.__pictorialClipPath=i;var u={};u[o.wh]=r.clipShape[o.wh],vQ[n?"updateProps":"initProps"](i,{shape:u},s,l)}}}function nVe(e,t){var r=e.getItemModel(t);return r.getAnimationDelayParams=N8r,r.isAnimationEnabled=L8r,r}function N8r(e){return{index:e.__pictorialAnimationIndex,count:e.__pictorialRepeatTimes}}function L8r(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function iVe(e,t,r,n){var i=new $o,a=new $o;return i.add(a),i.__pictorialBundle=a,a.x=r.bundlePosition[0],a.y=r.bundlePosition[1],r.symbolRepeat?cbt(i,t,r):Abt(i,t,r),fbt(i,r,n),hbt(i,t,r,n),i.__pictorialShapeStr=dbt(e,r),i.__pictorialSymbolMeta=r,i}function P8r(e,t,r){var n=r.animationModel,i=r.dataIndex,a=e.__pictorialBundle;su(a,{x:r.bundlePosition[0],y:r.bundlePosition[1]},n,i),r.symbolRepeat?cbt(e,t,r,!0):Abt(e,t,r,!0),fbt(e,r,!0),hbt(e,t,r,!0)}function aVe(e,t,r,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var a=[];OSe(n,function(o){a.push(o)}),n.__pictorialMainPath&&a.push(n.__pictorialMainPath),n.__pictorialClipPath&&(r=null),Mt(a,function(o){B5(o,{scaleX:0,scaleY:0},r,t,function(){n.parent&&n.parent.remove(n)})}),e.setItemGraphicEl(t,null)}function dbt(e,t){return[e.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function OSe(e,t,r){Mt(e.__pictorialBundle.children(),function(n){n!==e.__pictorialBarRect&&t.call(r,n)})}function k9(e,t,r,n,i,a){t&&e.attr(t),n.symbolClip&&!i?r&&e.attr(r):r&&vQ[i?"updateProps":"initProps"](e,r,n.animationModel,n.dataIndex,a)}function oVe(e,t,r){var n=r.dataIndex,i=r.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"),A=a.get("blurScope"),f=a.get("scale");OSe(e,function(p){if(p instanceof Bg){var m=p.style;p.useStyle(si({image:m.image,x:m.x,y:m.y,width:m.width,height:m.height},r.style))}else p.useStyle(r.style);var b=p.ensureState("emphasis");b.style=o,f&&(b.scaleX=p.scaleX*1.1,b.scaleY=p.scaleY*1.1),p.ensureState("blur").style=s,p.ensureState("select").style=l,u&&(p.cursor=u),p.z2=r.z2});var h=t.valueDim.posDesc[+(r.boundingLength>0)],g=e.__pictorialBarRect;g.ignoreClip=!0,up(g,Vd(i),{labelFetcher:t.seriesModel,labelDataIndex:n,defaultText:g7(t.seriesModel.getData(),n),inheritColor:r.style.fill,defaultOpacity:r.style.opacity,defaultOutsidePosition:h}),jA(e,c,A,a.get("disabled"))}function sVe(e){var t=Math.round(e);return Math.abs(e-t)<1e-4?t:Math.ceil(e)}var U8r=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.hasSymbolVisual=!0,r.defaultSymbol="roundRect",r}return t.prototype.getInitialData=function(r){return r.stack=null,e.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=eS(NN.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"}}}),t}(NN);function H8r(e){e.registerChartView(D8r),e.registerSeriesModel(U8r),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,us(Jmt,"pictorialBar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Xmt("pictorialBar"))}var j8r=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._layers=[],r}return t.prototype.render=function(r,n,i){var a=r.getData(),o=this,s=this.group,l=r.getLayerSeries(),u=a.getLayout("layoutInfo"),c=u.rect,A=u.boundaryGap;s.x=0,s.y=c.y+A[0];function f(m){return m.name}var h=new lB(this._layersSeries||[],l,f,f),g=[];h.add(Ga(p,this,"add")).update(Ga(p,this,"update")).remove(Ga(p,this,"remove")).execute();function p(m,b,C){var E=o._layers;if(m==="remove"){s.remove(E[b]);return}for(var _=[],F=[],M,N=l[b].indices,P=0;Pa&&(a=s),n.push(s)}for(var u=0;ua&&(a=A)}return{y0:i,max:a}}function V8r(e){e.registerChartView(j8r),e.registerSeriesModel($8r),e.registerLayout(z8r),e.registerProcessor(yP("themeRiver"))}var W8r=2,Y8r=4,uVe=function(e){Wn(t,e);function t(r,n,i,a){var o=e.call(this)||this;o.z2=W8r,o.textConfig={inside:!0},Vo(o).seriesIndex=n.seriesIndex;var s=new zl({z2:Y8r,silent:r.getModel().get(["label","silent"])});return o.setTextContent(s),o.updateData(!0,r,n,i,a),o}return t.prototype.updateData=function(r,n,i,a,o){this.node=n,n.piece=this,i=i||this._seriesModel,a=a||this._ecModel;var s=this;Vo(s).dataIndex=n.dataIndex;var l=n.getModel(),u=l.getModel("emphasis"),c=n.getLayout(),A=si({},c);A.label=null;var f=n.getVisual("style");f.lineJoin="bevel";var h=n.getVisual("decal");h&&(f.decal=h7(h,o));var g=Dk(l.getModel("itemStyle"),A,!0);si(A,g),Mt(X0,function(C){var E=s.ensureState(C),_=l.getModel([C,"itemStyle"]);E.style=_.getItemStyle();var F=Dk(_,A);F&&(E.shape=F)}),r?(s.setShape(A),s.shape.r=c.r0,oA(s,{shape:{r:c.r}},i,n.dataIndex)):(su(s,{shape:A},i),u2(s)),s.useStyle(f),this._updateLabel(i);var p=l.getShallow("cursor");p&&s.attr("cursor",p),this._seriesModel=i||this._seriesModel,this._ecModel=a||this._ecModel;var m=u.get("focus"),b=m==="relative"?yN(n.getAncestorsIndices(),n.getDescendantIndices()):m==="ancestor"?n.getAncestorsIndices():m==="descendant"?n.getDescendantIndices():m;jA(this,b,u.get("blurScope"),u.get("disabled"))},t.prototype._updateLabel=function(r){var n=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),A=this,f=A.getTextContent(),h=this.node.dataIndex,g=a.get("minAngle")/180*Math.PI,p=a.get("show")&&!(g!=null&&Math.abs(s)q&&!IN(se-q)&&se0?(o.virtualPiece?o.virtualPiece.updateData(!1,C,r,n,i):(o.virtualPiece=new uVe(C,r,n,i),c.add(o.virtualPiece)),E.piece.off("click"),o.virtualPiece.on("click",function(_){o._rootToNode(E.parentNode)})):o.virtualPiece&&(c.remove(o.virtualPiece),o.virtualPiece=null)}},t.prototype._initEvents=function(){var r=this;this.group.off("click"),this.group.on("click",function(n){var i=!1,a=r.seriesModel.getViewRoot();a.eachNode(function(o){if(!i&&o.piece&&o.piece===n.target){var s=o.getModel().get("nodeClick");if(s==="rootToNode")r._rootToNode(o);else if(s==="link"){var l=o.getModel(),u=l.get("link");if(u){var c=l.get("target",!0)||"_blank";TY(u,c)}}i=!0}})})},t.prototype._rootToNode=function(r){r!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:tCe,from:this.uid,seriesId:this.seriesModel.id,targetNode:r})},t.prototype.containPoint=function(r,n){var i=n.getData(),a=i.getItemLayout(0);if(a){var o=r[0]-a.cx,s=r[1]-a.cy,l=Math.sqrt(o*o+s*s);return l<=a.r&&l>=a.r0}},t.type="sunburst",t}(cc),Z8r=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.ignoreStyleOnData=!0,r}return t.prototype.getInitialData=function(r,n){var i={name:r.name,children:r.data};gbt(i);var a=this._levelModels=Ti(r.levels||[],function(l){return new Du(l,this,n)},this),o=ySe.createTree(i,this,s);function s(l){l.wrapMethod("getItemModel",function(u,c){var A=o.getNodeByDataIndex(c),f=a[A.depth];return f&&(u.parentModel=f),u})}return o.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(r){var n=e.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(r);return n.treePathInfo=oee(i,this),n},t.prototype.getLevelModel=function(r){return this._levelModels&&this._levelModels[r.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(r){r?this._viewRoot=r:r=this._viewRoot;var n=this.getRawData().tree.root;(!r||r!==n&&!n.contains(r))&&(this._viewRoot=n)},t.prototype.enableAriaDecal=function(){byt(this)},t.type="series.sunburst",t.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"},t}(Lc);function gbt(e){var t=0;Mt(e.children,function(n){gbt(n);var i=n.value;Bi(i)&&(i=i[0]),t+=i});var r=e.value;Bi(r)&&(r=r[0]),(r==null||isNaN(r))&&(r=t),r<0&&(r=0),Bi(e.value)?e.value[0]=r:e.value=r}var AVe=Math.PI/180;function e9r(e,t,r){t.eachSeriesByType(e,function(n){var i=n.get("center"),a=n.get("radius");Bi(a)||(a=[0,a]),Bi(i)||(i=[i,i]);var o=r.getWidth(),s=r.getHeight(),l=Math.min(o,s),u=Ba(i[0],o),c=Ba(i[1],s),A=Ba(a[0],l/2),f=Ba(a[1],l/2),h=-n.get("startAngle")*AVe,g=n.get("minAngle")*AVe,p=n.getData().tree.root,m=n.getViewRoot(),b=m.depth,C=n.get("sort");C!=null&&pbt(m,C);var E=0;Mt(m.children,function(se){!isNaN(se.getValue())&&E++});var _=m.getValue(),F=Math.PI/(_||E)*2,M=m.depth>0,N=m.height-(M?-1:1),P=(f-A)/(N||1),j=n.get("clockwise"),z=n.get("stillShowZeroSum"),W=j?1:-1,Y=function(se,de){if(se){var Ae=de;if(se!==p){var be=se.getValue(),Le=_===0&&z?F:be*F;Le1;)o=o.parentNode;var s=i.getColorFromPalette(o.name||o.dataIndex+"",t);return n.depth>1&&Oa(s)&&(s=G2e(s,(n.depth-1)/(a-1)*.5)),s}e.eachSeriesByType("sunburst",function(n){var i=n.getData(),a=i.tree;a.eachNode(function(o){var s=o.getModel(),l=s.getModel("itemStyle").getItemStyle();l.fill||(l.fill=r(o,n,a.root.height));var u=i.ensureUniqueItemVisual(o.dataIndex,"style");si(u,l)})})}function n9r(e){e.registerChartView(X8r),e.registerSeriesModel(Z8r),e.registerLayout(us(e9r,"sunburst")),e.registerProcessor(us(yP,"sunburst")),e.registerVisual(r9r),J8r(e)}var fVe={color:"fill",borderColor:"stroke"},i9r={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},UE=Nl(),a9r=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(r,n){return kB(null,this)},t.prototype.getDataParams=function(r,n,i){var a=e.prototype.getDataParams.call(this,r,n);return i&&(a.info=UE(i).info),a},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(Lc);function o9r(e,t){return t=t||[0,0],Ti(["x","y"],function(r,n){var i=this.getAxis(r),a=t[n],o=e[n]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(a-o)-i.dataToCoord(a+o))},this)}function s9r(e){var t=e.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:Ga(o9r,e)}}}function l9r(e,t){return t=t||[0,0],Ti([0,1],function(r){var n=t[r],i=e[r]/2,a=[],o=[];return a[r]=n-i,o[r]=n+i,a[1-r]=o[1-r]=t[1-r],Math.abs(this.dataToPoint(a)[r]-this.dataToPoint(o)[r])},this)}function u9r(e){var t=e.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:e.getZoom()},api:{coord:function(r){return e.dataToPoint(r)},size:Ga(l9r,e)}}}function c9r(e,t){var r=this.getAxis(),n=t instanceof Array?t[0]:t,i=(e instanceof Array?e[0]:e)/2;return r.type==="category"?r.getBandWidth():Math.abs(r.dataToCoord(n-i)-r.dataToCoord(n+i))}function A9r(e){var t=e.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(r){return e.dataToPoint(r)},size:Ga(c9r,e)}}}function f9r(e,t){return t=t||[0,0],Ti(["Radius","Angle"],function(r,n){var i="get"+r+"Axis",a=this[i](),o=t[n],s=e[n]/2,l=a.type==="category"?a.getBandWidth():Math.abs(a.dataToCoord(o-s)-a.dataToCoord(o+s));return r==="Angle"&&(l=l*Math.PI/180),l},this)}function h9r(e){var t=e.getRadiusAxis(),r=e.getAngleAxis(),n=t.getExtent();return n[0]>n[1]&&n.reverse(),{coordSys:{type:"polar",cx:e.cx,cy:e.cy,r:n[1],r0:n[0]},api:{coord:function(i){var a=t.dataToRadius(i[0]),o=r.dataToAngle(i[1]),s=e.coordToPoint([a,o]);return s.push(a,o*Math.PI/180),s},size:Ga(f9r,e)}}}function d9r(e){var t=e.getRect(),r=e.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:e.getCellWidth(),cellHeight:e.getCellHeight(),rangeInfo:{start:r.start,end:r.end,weeks:r.weeks,dayCount:r.allDay}},api:{coord:function(n,i){return e.dataToPoint(n,i)}}}}function vbt(e,t,r,n){return e&&(e.legacy||e.legacy!==!1&&!r&&!n&&t!=="tspan"&&(t==="text"||Xa(e,"text")))}function mbt(e,t,r){var n=e,i,a,o;if(t==="text")o=n;else{o={},Xa(n,"text")&&(o.text=n.text),Xa(n,"rich")&&(o.rich=n.rich),Xa(n,"textFill")&&(o.fill=n.textFill),Xa(n,"textStroke")&&(o.stroke=n.textStroke),Xa(n,"fontFamily")&&(o.fontFamily=n.fontFamily),Xa(n,"fontSize")&&(o.fontSize=n.fontSize),Xa(n,"fontStyle")&&(o.fontStyle=n.fontStyle),Xa(n,"fontWeight")&&(o.fontWeight=n.fontWeight),a={type:"text",style:o,silent:!0},i={};var s=Xa(n,"textPosition");r?i.position=s?n.textPosition:"inside":s&&(i.position=n.textPosition),Xa(n,"textPosition")&&(i.position=n.textPosition),Xa(n,"textOffset")&&(i.offset=n.textOffset),Xa(n,"textRotation")&&(i.rotation=n.textRotation),Xa(n,"textDistance")&&(i.distance=n.textDistance)}return hVe(o,e),Mt(o.rich,function(l){hVe(l,l)}),{textConfig:i,textContent:a}}function hVe(e,t){t&&(t.font=t.textFont||t.font,Xa(t,"textStrokeWidth")&&(e.lineWidth=t.textStrokeWidth),Xa(t,"textAlign")&&(e.align=t.textAlign),Xa(t,"textVerticalAlign")&&(e.verticalAlign=t.textVerticalAlign),Xa(t,"textLineHeight")&&(e.lineHeight=t.textLineHeight),Xa(t,"textWidth")&&(e.width=t.textWidth),Xa(t,"textHeight")&&(e.height=t.textHeight),Xa(t,"textBackgroundColor")&&(e.backgroundColor=t.textBackgroundColor),Xa(t,"textPadding")&&(e.padding=t.textPadding),Xa(t,"textBorderColor")&&(e.borderColor=t.textBorderColor),Xa(t,"textBorderWidth")&&(e.borderWidth=t.textBorderWidth),Xa(t,"textBorderRadius")&&(e.borderRadius=t.textBorderRadius),Xa(t,"textBoxShadowColor")&&(e.shadowColor=t.textBoxShadowColor),Xa(t,"textBoxShadowBlur")&&(e.shadowBlur=t.textBoxShadowBlur),Xa(t,"textBoxShadowOffsetX")&&(e.shadowOffsetX=t.textBoxShadowOffsetX),Xa(t,"textBoxShadowOffsetY")&&(e.shadowOffsetY=t.textBoxShadowOffsetY))}function dVe(e,t,r){var n=e;n.textPosition=n.textPosition||r.position||"inside",r.offset!=null&&(n.textOffset=r.offset),r.rotation!=null&&(n.textRotation=r.rotation),r.distance!=null&&(n.textDistance=r.distance);var i=n.textPosition.indexOf("inside")>=0,a=e.fill||"#000";gVe(n,t);var o=n.textFill==null;return i?o&&(n.textFill=r.insideFill||"#fff",!n.textStroke&&r.insideStroke&&(n.textStroke=r.insideStroke),!n.textStroke&&(n.textStroke=a),n.textStrokeWidth==null&&(n.textStrokeWidth=2)):(o&&(n.textFill=e.fill||r.outsideFill||"#000"),!n.textStroke&&r.outsideStroke&&(n.textStroke=r.outsideStroke)),n.text=t.text,n.rich=t.rich,Mt(t.rich,function(s){gVe(s,s)}),n}function gVe(e,t){t&&(Xa(t,"fill")&&(e.textFill=t.fill),Xa(t,"stroke")&&(e.textStroke=t.fill),Xa(t,"lineWidth")&&(e.textStrokeWidth=t.lineWidth),Xa(t,"font")&&(e.font=t.font),Xa(t,"fontStyle")&&(e.fontStyle=t.fontStyle),Xa(t,"fontWeight")&&(e.fontWeight=t.fontWeight),Xa(t,"fontSize")&&(e.fontSize=t.fontSize),Xa(t,"fontFamily")&&(e.fontFamily=t.fontFamily),Xa(t,"align")&&(e.textAlign=t.align),Xa(t,"verticalAlign")&&(e.textVerticalAlign=t.verticalAlign),Xa(t,"lineHeight")&&(e.textLineHeight=t.lineHeight),Xa(t,"width")&&(e.textWidth=t.width),Xa(t,"height")&&(e.textHeight=t.height),Xa(t,"backgroundColor")&&(e.textBackgroundColor=t.backgroundColor),Xa(t,"padding")&&(e.textPadding=t.padding),Xa(t,"borderColor")&&(e.textBorderColor=t.borderColor),Xa(t,"borderWidth")&&(e.textBorderWidth=t.borderWidth),Xa(t,"borderRadius")&&(e.textBorderRadius=t.borderRadius),Xa(t,"shadowColor")&&(e.textBoxShadowColor=t.shadowColor),Xa(t,"shadowBlur")&&(e.textBoxShadowBlur=t.shadowBlur),Xa(t,"shadowOffsetX")&&(e.textBoxShadowOffsetX=t.shadowOffsetX),Xa(t,"shadowOffsetY")&&(e.textBoxShadowOffsetY=t.shadowOffsetY),Xa(t,"textShadowColor")&&(e.textShadowColor=t.textShadowColor),Xa(t,"textShadowBlur")&&(e.textShadowBlur=t.textShadowBlur),Xa(t,"textShadowOffsetX")&&(e.textShadowOffsetX=t.textShadowOffsetX),Xa(t,"textShadowOffsetY")&&(e.textShadowOffsetY=t.textShadowOffsetY))}var ybt={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},pVe=pl(ybt);yC(wC,function(e,t){return e[t]=1,e},{});wC.join(", ");var XY=["","style","shape","extra"],m7=Nl();function NSe(e,t,r,n,i){var a=e+"Animation",o=hT(e,n,i)||{},s=m7(t).userDuring;return o.duration>0&&(o.during=s?Ga(y9r,{el:t,userDuring:s}):null,o.setToFinal=!0,o.scope=e),si(o,r[a]),o}function AV(e,t,r,n){n=n||{};var i=n.dataIndex,a=n.isInit,o=n.clearStyle,s=r.isAnimationEnabled(),l=m7(e),u=t.style;l.userDuring=t.during;var c={},A={};if(w9r(e,t,A),mVe("shape",t,A),mVe("extra",t,A),!a&&s&&(b9r(e,t,c),vVe("shape",e,t,c),vVe("extra",e,t,c),C9r(e,t,u,c)),A.style=u,g9r(e,A,o),v9r(e,t),s)if(a){var f={};Mt(XY,function(g){var p=g?t[g]:t;p&&p.enterFrom&&(g&&(f[g]=f[g]||{}),si(g?f[g]:f,p.enterFrom))});var h=NSe("enter",e,t,r,i);h.duration>0&&e.animateFrom(f,h)}else p9r(e,t,i||0,r,c);bbt(e,t),u?e.dirty():e.markRedraw()}function bbt(e,t){for(var r=m7(e).leaveToProps,n=0;n0&&e.animateFrom(i,a)}}function v9r(e,t){Xa(t,"silent")&&(e.silent=t.silent),Xa(t,"ignore")&&(e.ignore=t.ignore),e instanceof Ry&&Xa(t,"invisible")&&(e.invisible=t.invisible),e instanceof tl&&Xa(t,"autoBatch")&&(e.autoBatch=t.autoBatch)}var _w={},m9r={setTransform:function(e,t){return _w.el[e]=t,this},getTransform:function(e){return _w.el[e]},setShape:function(e,t){var r=_w.el,n=r.shape||(r.shape={});return n[e]=t,r.dirtyShape&&r.dirtyShape(),this},getShape:function(e){var t=_w.el.shape;if(t)return t[e]},setStyle:function(e,t){var r=_w.el,n=r.style;return n&&(n[e]=t,r.dirtyStyle&&r.dirtyStyle()),this},getStyle:function(e){var t=_w.el.style;if(t)return t[e]},setExtra:function(e,t){var r=_w.el.extra||(_w.el.extra={});return r[e]=t,this},getExtra:function(e){var t=_w.el.extra;if(t)return t[e]}};function y9r(){var e=this,t=e.el;if(t){var r=m7(t).userDuring,n=e.userDuring;if(r!==n){e.el=e.userDuring=null;return}_w.el=t,n(m9r)}}function vVe(e,t,r,n){var i=r[e];if(i){var a=t[e],o;if(a){var s=r.transition,l=i.transition;if(l)if(!o&&(o=n[e]={}),o6(l))si(o,a);else for(var u=ic(l),c=0;c=0){!o&&(o=n[e]={});for(var h=pl(a),c=0;c=0)){var f=e.getAnimationStyleProps(),h=f?f.style:null;if(h){!a&&(a=n.style={});for(var g=pl(r),u=0;u=0?t.getStore().get(de,ae):void 0}var Ae=t.get(se.name,ae),be=se&&se.ordinalMeta;return be?be.categories[Ae]:Ae}function M(q,ae){ae==null&&(ae=u);var se=t.getItemVisual(ae,"style"),de=se&&se.fill,Ae=se&&se.opacity,be=C(ae,j3).getItemStyle();de!=null&&(be.fill=de),Ae!=null&&(be.opacity=Ae);var Le={inheritColor:Oa(de)?de:"#000"},Ne=E(ae,j3),ue=Nc(Ne,null,Le,!1,!0);ue.text=Ne.getShallow("show")?ts(e.getFormattedLabel(ae,j3),g7(t,ae)):null;var Ke=QY(Ne,Le,!1);return j(q,be),be=dVe(be,ue,Ke),q&&P(be,q),be.legacy=!0,be}function N(q,ae){ae==null&&(ae=u);var se=C(ae,HE).getItemStyle(),de=E(ae,HE),Ae=Nc(de,null,null,!0,!0);Ae.text=de.getShallow("show")?aC(e.getFormattedLabel(ae,HE),e.getFormattedLabel(ae,j3),g7(t,ae)):null;var be=QY(de,null,!0);return j(q,se),se=dVe(se,Ae,be),q&&P(se,q),se.legacy=!0,se}function P(q,ae){for(var se in ae)Xa(ae,se)&&(q[se]=ae[se])}function j(q,ae){q&&(q.textFill&&(ae.textFill=q.textFill),q.textPosition&&(ae.textPosition=q.textPosition))}function z(q,ae){if(ae==null&&(ae=u),Xa(fVe,q)){var se=t.getItemVisual(ae,"style");return se?se[fVe[q]]:null}if(Xa(i9r,q))return t.getItemVisual(ae,q)}function W(q){if(a.type==="cartesian2d"){var ae=a.getBaseAxis();return w3r(Qo({axis:ae},q))}}function Y(){return r.getCurrentSeriesIndices()}function ee(q){return _5e(q,r)}}function D9r(e){var t={};return Mt(e.dimensions,function(r){var n=e.getDimensionInfo(r);if(!n.isExtraCoord){var i=n.coordDim,a=t[i]=t[i]||[];a[n.coordDimIndex]=e.getDimensionIndex(r)}}),t}function pge(e,t,r,n,i,a,o){if(!n){a.remove(t);return}var s=jSe(e,t,r,n,i,a);return s&&o.setItemGraphicEl(r,s),s&&jA(s,n.focus,n.blurScope,n.emphasisDisabled),s}function jSe(e,t,r,n,i,a){var o=-1,s=t;t&&Ebt(t,n,i)&&(o=Rs(a.childrenRef(),t),t=null);var l=!t,u=t;u?u.clearStates():(u=USe(n),s&&k9r(s,u)),n.morph===!1?u.disableMorphing=!0:u.disableMorphing&&(u.disableMorphing=!1),ny.normal.cfg=ny.normal.conOpt=ny.emphasis.cfg=ny.emphasis.conOpt=ny.blur.cfg=ny.blur.conOpt=ny.select.cfg=ny.select.conOpt=null,ny.isLegacy=!1,R9r(u,r,n,i,l,ny),F9r(u,r,n,i,l),HSe(e,u,r,n,ny,i,l),Xa(n,"info")&&(UE(u).info=n.info);for(var c=0;c=0?a.replaceAt(u,o):a.add(u),u}function Ebt(e,t,r){var n=UE(e),i=t.type,a=t.shape,o=t.style;return r.isUniversalTransitionEnabled()||i!=null&&i!==n.customGraphicType||i==="path"&&P9r(a)&&Bbt(a)!==n.customPathData||i==="image"&&Xa(o,"image")&&o.image!==n.customImagePath}function F9r(e,t,r,n,i){var a=r.clipPath;if(a===!1)e&&e.getClipPath()&&e.removeClipPath();else if(a){var o=e.getClipPath();o&&Ebt(o,a,n)&&(o=null),o||(o=USe(a),e.setClipPath(o)),HSe(null,o,t,a,null,n,i)}}function R9r(e,t,r,n,i,a){if(!e.isGroup){bVe(r,null,a),bVe(r,HE,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=e.getTextContent();if(o===!1)c&&e.removeTextContent();else{o=a.normal.conOpt=o||{type:"text"},c?c.clearStates():(c=USe(o),e.setTextContent(c)),HSe(null,c,t,o,null,n,i);for(var A=o&&o.style,f=0;f=c;h--){var g=t.childAt(h);O9r(t,g,i)}}}function O9r(e,t,r){t&&uee(t,UE(e).option,r)}function N9r(e){new lB(e.oldChildren,e.newChildren,wVe,wVe,e).add(CVe).update(CVe).remove(L9r).execute()}function wVe(e,t){var r=e&&e.name;return r??x9r+t}function CVe(e,t){var r=this.context,n=e!=null?r.newChildren[e]:null,i=t!=null?r.oldChildren[t]:null;jSe(r.api,i,r.dataIndex,n,r.seriesModel,r.group)}function L9r(e){var t=this.context,r=t.oldChildren[e];r&&uee(r,UE(r).option,t.seriesModel)}function Bbt(e){return e&&(e.pathData||e.d)}function P9r(e){return e&&(Xa(e,"pathData")||Xa(e,"d"))}function U9r(e){e.registerChartView(Q9r),e.registerSeriesModel(a9r)}var gk=Nl(),IVe=No,vge=Ga,$Se=function(){function e(){this._dragging=!1,this.animationThreshold=15}return e.prototype.render=function(t,r,n,i){var a=r.get("value"),o=r.get("status");if(this._axisModel=t,this._axisPointerModel=r,this._api=n,!(!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,t,r,n);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=c;var A=this._moveAnimation=this.determineAnimation(t,r);if(!s)s=this._group=new $o,this.createPointerEl(s,u,t,r),this.createLabelEl(s,u,t,r),n.getZr().add(s);else{var f=us(EVe,r,A);this.updatePointerEl(s,u,f),this.updateLabelEl(s,u,f,r)}xVe(s,r,!0),this._renderHandle(a)}},e.prototype.remove=function(t){this.clear(t)},e.prototype.dispose=function(t){this.clear(t)},e.prototype.determineAnimation=function(t,r){var n=r.get("animation"),i=t.axis,a=i.type==="category",o=r.get("snap");if(!o&&!a)return!1;if(n==="auto"||n==null){var s=this.animationThreshold;if(a&&i.getBandWidth()>s)return!0;if(o){var l=fSe(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return n===!0},e.prototype.makeElOption=function(t,r,n,i,a){},e.prototype.createPointerEl=function(t,r,n,i){var a=r.pointer;if(a){var o=gk(t).pointerEl=new vQ[a.type](IVe(r.pointer));t.add(o)}},e.prototype.createLabelEl=function(t,r,n,i){if(r.label){var a=gk(t).labelEl=new zl(IVe(r.label));t.add(a),BVe(a,i)}},e.prototype.updatePointerEl=function(t,r,n){var i=gk(t).pointerEl;i&&r.pointer&&(i.setStyle(r.pointer.style),n(i,{shape:r.pointer.shape}))},e.prototype.updateLabelEl=function(t,r,n,i){var a=gk(t).labelEl;a&&(a.setStyle(r.label.style),n(a,{x:r.label.x,y:r.label.y}),BVe(a,i))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var r=this._axisPointerModel,n=this._api.getZr(),i=this._handle,a=r.getModel("handle"),o=r.get("status");if(!a.get("show")||!o||o==="hide"){i&&n.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=cP(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){iB(u.event)},onmousedown:vge(this._onHandleDragMove,this,0,0),drift:vge(this._onHandleDragMove,this),ondragend:vge(this._onHandleDragEnd,this)}),n.add(i)),xVe(i,r,!1),i.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=a.get("size");Bi(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,bT(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},e.prototype._moveHandleToValue=function(t,r){EVe(this._axisPointerModel,!r&&this._moveAnimation,this._handle,mge(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,r){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(mge(n),[t,r],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(mge(i)),gk(n).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var r=this._payloadInfo,n=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:r.cursorPoint[0],y:r.cursorPoint[1],tooltipOption:r.tooltipOption,axesInfo:[{axisDim:n.axis.dim,axisIndex:n.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var r=this._axisPointerModel.get("value");this._moveHandleToValue(r),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var r=t.getZr(),n=this._group,i=this._handle;r&&n&&(this._lastGraphicKey=null,n&&r.remove(n),i&&r.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),TN(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,r,n){return n=n||0,{x:t[n],y:t[1-n],width:r[n],height:r[1-n]}},e}();function EVe(e,t,r,n){xbt(gk(r).lastProp,n)||(gk(r).lastProp=n,t?su(r,n,e):(r.stopAnimation(),r.attr(n)))}function xbt(e,t){if(Mo(e)&&Mo(t)){var r=!0;return Mt(t,function(n,i){r=r&&xbt(e[i],n)}),!!r}else return e===t}function BVe(e,t){e[t.get(["label","show"])?"show":"hide"]()}function mge(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function xVe(e,t,r){var n=t.get("z"),i=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(n!=null&&(a.z=n),i!=null&&(a.zlevel=i),a.silent=r)})}function zSe(e){var t=e.get("type"),r=e.getModel(t+"Style"),n;return t==="line"?(n=r.getLineStyle(),n.fill=null):t==="shadow"&&(n=r.getAreaStyle(),n.stroke=null),n}function Sbt(e,t,r,n,i){var a=r.get("value"),o=kbt(a,t.axis,t.ecModel,r.get("seriesDataIndices"),{precision:r.get(["label","precision"]),formatter:r.get(["label","formatter"])}),s=r.getModel("label"),l=pT(s.get("padding")||0),u=s.getFont(),c=nP(o,u),A=i.position,f=c.width+l[1]+l[3],h=c.height+l[0]+l[2],g=i.align;g==="right"&&(A[0]-=f),g==="center"&&(A[0]-=f/2);var p=i.verticalAlign;p==="bottom"&&(A[1]-=h),p==="middle"&&(A[1]-=h/2),H9r(A,f,h,n);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=t.get(["axisLine","lineStyle","color"])),e.label={x:A[0],y:A[1],style:Nc(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function H9r(e,t,r,n){var i=n.getWidth(),a=n.getHeight();e[0]=Math.min(e[0]+t,i)-t,e[1]=Math.min(e[1]+r,a)-r,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function kbt(e,t,r,n,i){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:i.precision}),o=i.formatter;if(o){var s={value:tSe(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};Mt(n,function(l){var u=r.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,A=u&&u.getDataParams(c);A&&s.seriesData.push(A)}),Oa(o)?a=o.replace("{value}",a):Bo(o)&&(a=o(s))}return a}function KSe(e,t,r){var n=s1();return gQ(n,n,r.rotation),bC(n,n,r.position),e2([e.dataToCoord(t),(r.labelOffset||0)+(r.labelDirection||1)*(r.labelMargin||0)],n)}function Qbt(e,t,r,n,i,a){var o=Y0.innerTextLayout(r.rotation,0,r.labelDirection);r.labelMargin=i.get(["label","margin"]),Sbt(t,n,i,a,{position:KSe(n.axis,e,r),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function VSe(e,t,r){return r=r||0,{x1:e[r],y1:e[1-r],x2:t[r],y2:t[1-r]}}function _bt(e,t,r){return r=r||0,{x:e[r],y:e[1-r],width:t[r],height:t[1-r]}}function SVe(e,t,r,n,i,a){return{cx:e,cy:t,r0:r,r:n,startAngle:i,endAngle:a,clockwise:!0}}var j9r=function(e){Wn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.grid,u=a.get("type"),c=kVe(l,s).getOtherAxis(s).getGlobalExtent(),A=s.toGlobalCoord(s.dataToCoord(n,!0));if(u&&u!=="none"){var f=zSe(a),h=G9r[u](s,A,c);h.style=f,r.graphicKey=h.type,r.pointer=h}var g=Nwe(l.model,i);Qbt(n,r,g,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=Nwe(n.axis.grid.model,n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=KSe(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=kVe(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,A=[r.x,r.y];A[c]+=n[c],A[c]=Math.min(l[1],A[c]),A[c]=Math.max(l[0],A[c]);var f=(u[1]+u[0])/2,h=[f,f];h[c]=A[c];var g=[{verticalAlign:"middle"},{align:"center"}];return{x:A[0],y:A[1],rotation:r.rotation,cursorPoint:h,tooltipOption:g[c]}},t}($Se);function kVe(e,t){var r={};return r[t.dim+"AxisIndex"]=t.index,e.getCartesian(r)}var G9r={line:function(e,t,r){var n=VSe([t,r[0]],[t,r[1]],QVe(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=Math.max(1,e.getBandWidth()),i=r[1]-r[0];return{type:"Rect",shape:_bt([t-n/2,r[0]],[n,i],QVe(e))}}};function QVe(e){return e.dim==="x"?0:1}var $9r=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t}(dl),QE=Nl(),z9r=Mt;function Tbt(e,t,r){if(!nl.node){var n=t.getZr();QE(n).records||(QE(n).records={}),K9r(n,t);var i=QE(n).records[e]||(QE(n).records[e]={});i.handler=r}}function K9r(e,t){if(QE(e).initialized)return;QE(e).initialized=!0,r("click",us(_Ve,"click")),r("mousemove",us(_Ve,"mousemove")),r("globalout",W9r);function r(n,i){e.on(n,function(a){var o=Y9r(t);z9r(QE(e).records,function(s){s&&i(s,a,o.dispatchAction)}),V9r(o.pendings,t)})}}function V9r(e,t){var r=e.showTip.length,n=e.hideTip.length,i;r?i=e.showTip[r-1]:n&&(i=e.hideTip[n-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function W9r(e,t,r){e.handler("leave",null,r)}function _Ve(e,t,r,n){t.handler(e,r,n)}function Y9r(e){var t={showTip:[],hideTip:[]},r=function(n){var i=t[n.type];i?i.push(n):(n.dispatchAction=r,e.dispatchAction(n))};return{dispatchAction:r,pendings:t}}function iCe(e,t){if(!nl.node){var r=t.getZr(),n=(QE(r).records||{})[e];n&&(QE(r).records[e]=null)}}var q9r=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=n.getComponent("tooltip"),o=r.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";Tbt("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})})},t.prototype.remove=function(r,n){iCe("axisPointer",n)},t.prototype.dispose=function(r,n){iCe("axisPointer",n)},t.type="axisPointer",t}(xA);function Dbt(e,t){var r=[],n=e.seriesIndex,i;if(n==null||!(i=t.getSeriesByIndex(n)))return{point:[]};var a=i.getData(),o=M6(a,e);if(o==null||o<0||Bi(o))return{point:[]};var s=a.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)r=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(e.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),A=c.dim,f=u.dim,h=A==="x"||A==="radius"?1:0,g=a.mapDimension(f),p=[];p[h]=a.get(g,o),p[1-h]=a.get(a.getCalculationInfo("stackResultDimension"),o),r=l.dataToPoint(p)||[]}else r=l.dataToPoint(a.getValues(Ti(l.dimensions,function(b){return a.mapDimension(b)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),r=[m.x+m.width/2,m.y+m.height/2]}return{point:r,el:s}}var TVe=Nl();function J9r(e,t,r){var n=e.currTrigger,i=[e.x,e.y],a=e,o=e.dispatchAction||Ga(r.dispatchAction,r),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){fV(i)&&(i=Dbt({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var l=fV(i),u=a.axesInfo,c=s.axesInfo,A=n==="leave"||fV(i),f={},h={},g={list:[],map:{}},p={showPointer:us(Z9r,h),showTooltip:us(e7r,g)};Mt(s.coordSysMap,function(b,C){var E=l||b.containPoint(i);Mt(s.coordSysAxesInfo[C],function(_,F){var M=_.axis,N=i7r(u,_);if(!A&&E&&(!u||N)){var P=N&&N.value;P==null&&!l&&(P=M.pointToData(i)),P!=null&&DVe(_,P,p,!1,f)}})});var m={};return Mt(c,function(b,C){var E=b.linkGroup;E&&!h[C]&&Mt(E.axesInfo,function(_,F){var M=h[F];if(_!==b&&M){var N=M.value;E.mapper&&(N=b.axis.scale.parse(E.mapper(N,FVe(_),FVe(b)))),m[b.key]=N}})}),Mt(m,function(b,C){DVe(c[C],b,p,!0,f)}),t7r(h,c,f),r7r(g,i,e,o),n7r(c,o,r),f}}function DVe(e,t,r,n,i){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){r.showPointer(e,t);return}var o=X9r(t,e),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&si(i,s[0]),!n&&e.snap&&a.containData(l)&&l!=null&&(t=l),r.showPointer(e,t,s),r.showTooltip(e,o,l)}}function X9r(e,t){var r=t.axis,n=r.dim,i=e,a=[],o=Number.MAX_VALUE,s=-1;return Mt(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(n),A,f;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,e,r);f=h.dataIndices,A=h.nestestValue}else{if(f=l.getData().indicesOfNearest(c[0],e,r.type==="category"?.5:null),!f.length)return;A=l.getData().get(c[0],f[0])}if(!(A==null||!isFinite(A))){var g=e-A,p=Math.abs(g);p<=o&&((p=0&&s<0)&&(o=p,s=g,i=A,a.length=0),Mt(f,function(m){a.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:a,snapToValue:i}}function Z9r(e,t,r,n){e[t.key]={value:r,payloadBatch:n}}function e7r(e,t,r,n){var i=r.payloadBatch,a=t.axis,o=a.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=LN(l),c=e.map[u];c||(c=e.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},e.list.push(c)),c.dataByAxis.push({axisDim:a.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function t7r(e,t,r){var n=r.axesInfo=[];Mt(t,function(i,a){var o=i.axisPointerModel.option,s=e[a];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&n.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function r7r(e,t,r,n){if(fV(t)||!e.list.length){n({type:"hideTip"});return}var i=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:r.tooltipOption,position:r.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:e.list})}function n7r(e,t,r){var n=r.getZr(),i="axisPointerLastHighlights",a=TVe(n)[i]||{},o=TVe(n)[i]={};Mt(e,function(u,c){var A=u.axisPointerModel.option;A.status==="show"&&u.triggerEmphasis&&Mt(A.seriesDataIndices,function(f){var h=f.seriesIndex+" | "+f.dataIndex;o[h]=f})});var s=[],l=[];Mt(a,function(u,c){!o[c]&&l.push(u)}),Mt(o,function(u,c){!a[c]&&s.push(u)}),l.length&&r.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&r.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function i7r(e,t){for(var r=0;r<(e||[]).length;r++){var n=e[r];if(t.axis.dim===n.axisDim&&t.axis.model.componentIndex===n.axisIndex)return n}}function FVe(e){var t=e.axis.model,r={},n=r.axisDim=e.axis.dim;return r.axisIndex=r[n+"AxisIndex"]=t.componentIndex,r.axisName=r[n+"AxisName"]=t.name,r.axisId=r[n+"AxisId"]=t.id,r}function fV(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function IP(e){wQ.registerAxisPointerClass("CartesianAxisPointer",j9r),e.registerComponentModel($9r),e.registerComponentView(q9r),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var r=t.axisPointer.link;r&&!Bi(r)&&(t.axisPointer.link=[r])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,r){t.getComponent("axisPointer").coordSysAxesInfo=d4r(t,r)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},J9r)}function a7r(e){zs(oyt),zs(IP)}var o7r=function(e){Wn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,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(),A=s.dataToCoord(n),f=a.get("type");if(f&&f!=="none"){var h=zSe(a),g=l7r[f](s,l,A,c);g.style=h,r.graphicKey=g.type,r.pointer=g}var p=a.get(["label","margin"]),m=s7r(n,i,a,l,p);Sbt(r,i,a,o,m)},t}($Se);function s7r(e,t,r,n,i){var a=t.axis,o=a.dataToCoord(e),s=n.getAngleAxis().getExtent()[0];s=s/180*Math.PI;var l=n.getRadiusAxis().getExtent(),u,c,A;if(a.dim==="radius"){var f=s1();gQ(f,f,s),bC(f,f,[n.cx,n.cy]),u=e2([o,-i],f);var h=t.getModel("axisLabel").get("rotate")||0,g=Y0.innerTextLayout(s,h*Math.PI/180,-1);c=g.textAlign,A=g.textVerticalAlign}else{var p=l[1];u=n.coordToPoint([p+i,o]);var m=n.cx,b=n.cy;c=Math.abs(u[0]-m)/p<.3?"center":u[0]>m?"left":"right",A=Math.abs(u[1]-b)/p<.3?"middle":u[1]>b?"top":"bottom"}return{position:u,align:c,verticalAlign:A}}var l7r={line:function(e,t,r,n){return e.dim==="angle"?{type:"Line",shape:VSe(t.coordToPoint([n[0],r]),t.coordToPoint([n[1],r]))}:{type:"Circle",shape:{cx:t.cx,cy:t.cy,r}}},shadow:function(e,t,r,n){var i=Math.max(1,e.getBandWidth()),a=Math.PI/180;return e.dim==="angle"?{type:"Sector",shape:SVe(t.cx,t.cy,n[0],n[1],(-r-i/2)*a,(-r+i/2)*a)}:{type:"Sector",shape:SVe(t.cx,t.cy,r-i/2,r+i/2,0,Math.PI*2)}}},u7r=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.findAxisModel=function(r){var n,i=this.ecModel;return i.eachComponent(r,function(a){a.getCoordSysModel()===this&&(n=a)},this),n},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(dl),WSe=function(e){Wn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",Sh).models[0]},t.type="polarAxis",t}(dl);Th(WSe,dP);var c7r=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="angleAxis",t}(WSe),A7r=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="radiusAxis",t}(WSe),YSe=function(e){Wn(t,e);function t(r,n){return e.call(this,"radius",r,n)||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t}(y2);YSe.prototype.dataToRadius=y2.prototype.dataToCoord;YSe.prototype.radiusToData=y2.prototype.coordToData;var f7r=Nl(),qSe=function(e){Wn(t,e);function t(r,n){return e.call(this,"angle",r,n||[0,360])||this}return t.prototype.pointToData=function(r,n){return this.polar.pointToData(r,n)[this.dim==="radius"?0:1]},t.prototype.calculateCategoryInterval=function(){var r=this,n=r.getLabelModel(),i=r.scale,a=i.getExtent(),o=i.count();if(a[1]-a[0]<1)return 0;var s=a[0],l=r.dataToCoord(s+1)-r.dataToCoord(s),u=Math.abs(l),c=nP(s==null?"":s+"",n.getFont(),"center","top"),A=Math.max(c.height,7),f=A/u;isNaN(f)&&(f=1/0);var h=Math.max(0,Math.floor(f)),g=f7r(r.model),p=g.lastAutoInterval,m=g.lastTickCount;return p!=null&&m!=null&&Math.abs(p-h)<=1&&Math.abs(m-o)<=1&&p>h?h=p:(g.lastTickCount=o,g.lastAutoInterval=h),h},t}(y2);qSe.prototype.dataToAngle=y2.prototype.dataToCoord;qSe.prototype.angleToData=y2.prototype.coordToData;var Fbt=["radius","angle"],h7r=function(){function e(t){this.dimensions=Fbt,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new YSe,this._angleAxis=new qSe,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return e.prototype.containPoint=function(t){var r=this.pointToCoord(t);return this._radiusAxis.contain(r[0])&&this._angleAxis.contain(r[1])},e.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},e.prototype.getAxis=function(t){var r="_"+t+"Axis";return this[r]},e.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},e.prototype.getAxesByScale=function(t){var r=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&r.push(n),i.scale.type===t&&r.push(i),r},e.prototype.getAngleAxis=function(){return this._angleAxis},e.prototype.getRadiusAxis=function(){return this._radiusAxis},e.prototype.getOtherAxis=function(t){var r=this._angleAxis;return t===r?this._radiusAxis:r},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},e.prototype.getTooltipAxes=function(t){var r=t!=null&&t!=="auto"?this.getAxis(t):this.getBaseAxis();return{baseAxes:[r],otherAxes:[this.getOtherAxis(r)]}},e.prototype.dataToPoint=function(t,r){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],r),this._angleAxis.dataToAngle(t[1],r)])},e.prototype.pointToData=function(t,r){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],r),this._angleAxis.angleToData(n[1],r)]},e.prototype.pointToCoord=function(t){var r=t[0]-this.cx,n=t[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(r*r+n*n);r/=l,n/=l;for(var u=Math.atan2(-n,r)/Math.PI*180,c=us;)u+=c*360;return[l,u]},e.prototype.coordToPoint=function(t){var r=t[0],n=t[1]/180*Math.PI,i=Math.cos(n)*r+this.cx,a=-Math.sin(n)*r+this.cy;return[i,a]},e.prototype.getArea=function(){var t=this.getAngleAxis(),r=this.getRadiusAxis(),n=r.getExtent().slice();n[0]>n[1]&&n.reverse();var i=t.getExtent(),a=Math.PI/180,o=1e-4;return{cx:this.cx,cy:this.cy,r0:n[0],r:n[1],startAngle:-i[0]*a,endAngle:-i[1]*a,clockwise:t.inverse,contain:function(s,l){var u=s-this.cx,c=l-this.cy,A=u*u+c*c,f=this.r,h=this.r0;return f!==h&&A-o<=f*f&&A+o>=h*h}}},e.prototype.convertToPixel=function(t,r,n){var i=RVe(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=RVe(r);return i===this?this.pointToData(n):null},e}();function RVe(e){var t=e.seriesModel,r=e.polarModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function d7r(e,t,r){var n=t.get("center"),i=r.getWidth(),a=r.getHeight();e.cx=Ba(n[0],i),e.cy=Ba(n[1],a);var o=e.getRadiusAxis(),s=Math.min(i,a)/2,l=t.get("radius");l==null?l=[0,"100%"]:Bi(l)||(l=[0,l]);var u=[Ba(l[0],s),Ba(l[1],s)];o.inverse?o.setExtent(u[1],u[0]):o.setExtent(u[0],u[1])}function g7r(e,t){var r=this,n=r.getAngleAxis(),i=r.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),e.eachSeries(function(s){if(s.coordinateSystem===r){var l=s.getData();Mt(HY(l,"radius"),function(u){i.scale.unionExtentFromData(l,u)}),Mt(HY(l,"angle"),function(u){n.scale.unionExtentFromData(l,u)})}}),d7(n.scale,n.model),d7(i.scale,i.model),n.type==="category"&&!n.onBand){var a=n.getExtent(),o=360/n.scale.count();n.inverse?a[1]+=o:a[1]-=o,n.setExtent(a[0],a[1])}}function p7r(e){return e.mainType==="angleAxis"}function MVe(e,t){var r;if(e.type=t.get("type"),e.scale=ree(t),e.onBand=t.get("boundaryGap")&&e.type==="category",e.inverse=t.get("inverse"),p7r(t)){e.inverse=e.inverse!==t.get("clockwise");var n=t.get("startAngle"),i=(r=t.get("endAngle"))!==null&&r!==void 0?r:n+(e.inverse?-360:360);e.setExtent(n,i)}t.axis=e,e.model=t}var v7r={dimensions:Fbt,create:function(e,t){var r=[];return e.eachComponent("polar",function(n,i){var a=new h7r(i+"");a.update=g7r;var o=a.getRadiusAxis(),s=a.getAngleAxis(),l=n.findAxisModel("radiusAxis"),u=n.findAxisModel("angleAxis");MVe(o,l),MVe(s,u),d7r(a,n,t),r.push(a),n.coordinateSystem=a,a.model=n}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="polar"){var i=n.getReferringComponents("polar",Sh).models[0];n.coordinateSystem=i.coordinateSystem}}),r}},m7r=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function iz(e,t,r){t[1]>t[0]&&(t=t.slice().reverse());var n=e.coordToPoint([t[0],r]),i=e.coordToPoint([t[1],r]);return{x1:n[0],y1:n[1],x2:i[0],y2:i[1]}}function az(e){var t=e.getRadiusAxis();return t.inverse?0:1}function OVe(e){var t=e[0],r=e[e.length-1];t&&r&&Math.abs(Math.abs(t.coord-r.coord)-360)<1e-4&&e.pop()}var y7r=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.axisPointerClass="PolarAxisPointer",r}return t.prototype.render=function(r,n){if(this.group.removeAll(),!!r.get("show")){var i=r.axis,a=i.polar,o=a.getRadiusAxis().getExtent(),s=i.getTicksCoords(),l=i.getMinorTicksCoords(),u=Ti(i.getViewLabels(),function(c){c=No(c);var A=i.scale,f=A.type==="ordinal"?A.getRawOrdinalNumber(c.tickValue):c.tickValue;return c.coord=i.dataToCoord(f),c});OVe(u),OVe(s),Mt(m7r,function(c){r.get([c,"show"])&&(!i.scale.isBlank()||c==="axisLine")&&b7r[c](this.group,r,a,s,l,o,u)},this)}},t.type="angleAxis",t}(wQ),b7r={axisLine:function(e,t,r,n,i,a){var o=t.getModel(["axisLine","lineStyle"]),s=r.getAngleAxis(),l=Math.PI/180,u=s.getExtent(),c=az(r),A=c?0:1,f,h=Math.abs(u[1]-u[0])===360?"Circle":"Arc";a[A]===0?f=new vQ[h]({shape:{cx:r.cx,cy:r.cy,r:a[c],startAngle:-u[0]*l,endAngle:-u[1]*l,clockwise:s.inverse},style:o.getLineStyle(),z2:1,silent:!0}):f=new oP({shape:{cx:r.cx,cy:r.cy,r:a[c],r0:a[A]},style:o.getLineStyle(),z2:1,silent:!0}),f.style.fill=null,e.add(f)},axisTick:function(e,t,r,n,i,a){var o=t.getModel("axisTick"),s=(o.get("inside")?-1:1)*o.get("length"),l=a[az(r)],u=Ti(n,function(c){return new Hd({shape:iz(r,[l,l+s],c.coord)})});e.add(by(u,{style:Qo(o.getModel("lineStyle").getLineStyle(),{stroke:t.get(["axisLine","lineStyle","color"])})}))},minorTick:function(e,t,r,n,i,a){if(i.length){for(var o=t.getModel("axisTick"),s=t.getModel("minorTick"),l=(o.get("inside")?-1:1)*s.get("length"),u=a[az(r)],c=[],A=0;Ab?"left":"right",_=Math.abs(m[1]-C)/p<.3?"middle":m[1]>C?"top":"bottom";if(s&&s[g]){var F=s[g];Mo(F)&&F.textStyle&&(h=new Du(F.textStyle,l,l.ecModel))}var M=new zl({silent:Y0.isLabelSilent(t),style:Nc(h,{x:m[0],y:m[1],fill:h.getTextColor()||t.get(["axisLine","lineStyle","color"]),text:A.formattedLabel,align:E,verticalAlign:_})});if(e.add(M),c){var N=Y0.makeAxisEventDataBase(t);N.targetType="axisLabel",N.value=A.rawLabel,Vo(M).eventData=N}},this)},splitLine:function(e,t,r,n,i,a){var o=t.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=0;l=l instanceof Array?l:[l];for(var c=[],A=0;A=0?"p":"n",ae=j;F&&(n[c][ee]||(n[c][ee]={p:j,n:j}),ae=n[c][ee][q]);var se=void 0,de=void 0,Ae=void 0,be=void 0;if(g.dim==="radius"){var Le=g.dataToCoord(Y)-j,Ne=l.dataToCoord(ee);Math.abs(Le)=be})}}})}function S7r(e){var t={};Mt(e,function(n,i){var a=n.getData(),o=n.coordinateSystem,s=o.getBaseAxis(),l=Mbt(o,s),u=s.getExtent(),c=s.type==="category"?s.getBandWidth():Math.abs(u[1]-u[0])/a.count(),A=t[l]||{bandWidth:c,remainedWidth:c,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},f=A.stacks;t[l]=A;var h=Rbt(n);f[h]||A.autoWidthCount++,f[h]=f[h]||{width:0,maxWidth:0};var g=Ba(n.get("barWidth"),c),p=Ba(n.get("barMaxWidth"),c),m=n.get("barGap"),b=n.get("barCategoryGap");g&&!f[h].width&&(g=Math.min(A.remainedWidth,g),f[h].width=g,A.remainedWidth-=g),p&&(f[h].maxWidth=p),m!=null&&(A.gap=m),b!=null&&(A.categoryGap=b)});var r={};return Mt(t,function(n,i){r[i]={};var a=n.stacks,o=n.bandWidth,s=Ba(n.categoryGap,o),l=Ba(n.gap,1),u=n.remainedWidth,c=n.autoWidthCount,A=(u-s)/(c+(c-1)*l);A=Math.max(A,0),Mt(a,function(p,m){var b=p.maxWidth;b&&b=r.y&&t[1]<=r.y+r.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=r.y&&t[0]<=r.y+r.height},e.prototype.pointToData=function(t){var r=this.getAxis();return[r.coordToData(r.toLocalCoord(t[r.orient==="horizontal"?0:1]))]},e.prototype.dataToPoint=function(t){var r=this.getAxis(),n=this.getRect(),i=[],a=r.orient==="horizontal"?0:1;return t instanceof Array&&(t=t[0]),i[a]=r.toGlobalCoord(r.dataToCoord(+t)),i[1-a]=a===0?n.y+n.height/2:n.x+n.width/2,i},e.prototype.convertToPixel=function(t,r,n){var i=NVe(r);return i===this?this.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,r,n){var i=NVe(r);return i===this?this.pointToData(n):null},e}();function NVe(e){var t=e.seriesModel,r=e.singleAxisModel;return r&&r.coordinateSystem||t&&t.coordinateSystem}function L7r(e,t){var r=[];return e.eachComponent("singleAxis",function(n,i){var a=new N7r(n,e,t);a.name="single_"+i,a.resize(n,t),n.coordinateSystem=a,r.push(a)}),e.eachSeries(function(n){if(n.get("coordinateSystem")==="singleAxis"){var i=n.getReferringComponents("singleAxis",Sh).models[0];n.coordinateSystem=i&&i.coordinateSystem}}),r}var P7r={create:L7r,dimensions:Obt},LVe=["x","y"],U7r=["width","height"],H7r=function(e){Wn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(r,n,i,a,o){var s=i.axis,l=s.coordinateSystem,u=yge(l,1-tq(s)),c=l.dataToPoint(n)[0],A=a.get("type");if(A&&A!=="none"){var f=zSe(a),h=j7r[A](s,c,u);h.style=f,r.graphicKey=h.type,r.pointer=h}var g=aCe(i);Qbt(n,r,g,i,a,o)},t.prototype.getHandleTransform=function(r,n,i){var a=aCe(n,{labelInside:!1});a.labelMargin=i.get(["handle","margin"]);var o=KSe(n.axis,r,a);return{x:o[0],y:o[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(r,n,i,a){var o=i.axis,s=o.coordinateSystem,l=tq(o),u=yge(s,l),c=[r.x,r.y];c[l]+=n[l],c[l]=Math.min(u[1],c[l]),c[l]=Math.max(u[0],c[l]);var A=yge(s,1-l),f=(A[1]+A[0])/2,h=[f,f];return h[l]=c[l],{x:c[0],y:c[1],rotation:r.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},t}($Se),j7r={line:function(e,t,r){var n=VSe([t,r[0]],[t,r[1]],tq(e));return{type:"Line",subPixelOptimize:!0,shape:n}},shadow:function(e,t,r){var n=e.getBandWidth(),i=r[1]-r[0];return{type:"Rect",shape:_bt([t-n/2,r[0]],[n,i],tq(e))}}};function tq(e){return e.isHorizontal()?0:1}function yge(e,t){var r=e.getRect();return[r[LVe[t]],r[LVe[t]]+r[U7r[t]]]}var G7r=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="single",t}(xA);function $7r(e){zs(IP),wQ.registerAxisPointerClass("SingleAxisPointer",H7r),e.registerComponentView(G7r),e.registerComponentView(R7r),e.registerComponentModel(hV),p7(e,"single",hV,hV.defaultOption),e.registerCoordinateSystem("single",P7r)}var z7r=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n,i){var a=vT(r);e.prototype.init.apply(this,arguments),PVe(r,a)},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),PVe(this.option,r)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.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}},t}(dl);function PVe(e,t){var r=e.cellSize,n;Bi(r)?n=r:n=e.cellSize=[r,r],n.length===1&&(n[1]=n[0]);var i=Ti([0,1],function(a){return hEr(t,a)&&(n[a]="auto"),n[a]!=null&&n[a]!=="auto"});x5(e,t,{type:"box",ignoreSize:i})}var K7r=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){var a=this.group;a.removeAll();var o=r.coordinateSystem,s=o.getRangeInfo(),l=o.getOrient(),u=n.getLocaleModel();this._renderDayRect(r,s,a),this._renderLines(r,s,l,a),this._renderYearText(r,s,l,a),this._renderMonthText(r,u,l,a),this._renderWeekText(r,u,s,l,a)},t.prototype._renderDayRect=function(r,n,i){for(var a=r.coordinateSystem,o=r.getModel("itemStyle").getItemStyle(),s=a.getCellWidth(),l=a.getCellHeight(),u=n.start.time;u<=n.end.time;u=a.getNextNDay(u,1).time){var c=a.dataToRect([u],!1).tl,A=new Ol({shape:{x:c[0],y:c[1],width:s,height:l},cursor:"default",style:o});i.add(A)}},t.prototype._renderLines=function(r,n,i,a){var o=this,s=r.coordinateSystem,l=r.getModel(["splitLine","lineStyle"]).getLineStyle(),u=r.get(["splitLine","show"]),c=l.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var A=n.start,f=0;A.time<=n.end.time;f++){g(A.formatedDate),f===0&&(A=s.getDateInfo(n.start.y+"-"+n.start.m));var h=A.date;h.setMonth(h.getMonth()+1),A=s.getDateInfo(h)}g(s.getNextNDay(n.end.time,1).formatedDate);function g(p){o._firstDayOfMonth.push(s.getDateInfo(p)),o._firstDayPoints.push(s.dataToRect([p],!1).tl);var m=o._getLinePointsOfOneWeek(r,p,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)},t.prototype._getEdgesPoints=function(r,n,i){var a=[r[0].slice(),r[r.length-1].slice()],o=i==="horizontal"?0:1;return a[0][o]=a[0][o]-n/2,a[1][o]=a[1][o]+n/2,a},t.prototype._drawSplitline=function(r,n,i){var a=new nv({z2:20,shape:{points:r},style:n});i.add(a)},t.prototype._getLinePointsOfOneWeek=function(r,n,i){for(var a=r.coordinateSystem,o=a.getDateInfo(n),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},t.prototype._formatterLabel=function(r,n){return Oa(r)&&r?cEr(r,n):Bo(r)?r(n):n.nameMap},t.prototype._yearTextPositionControl=function(r,n,i,a,o){var s=n[0],l=n[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]}}},t.prototype._renderYearText=function(r,n,i,a){var o=r.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,A=(u[0][1]+u[1][1])/2,f=i==="horizontal"?0:1,h={top:[c,u[f][1]],bottom:[c,u[1-f][1]],left:[u[1-f][0],A],right:[u[f][0],A]},g=n.start.y;+n.end.y>+n.start.y&&(g=g+"-"+n.end.y);var p=o.get("formatter"),m={start:n.start.y,end:n.end.y,nameMap:g},b=this._formatterLabel(p,m),C=new zl({z2:30,style:Nc(o,{text:b}),silent:o.get("silent")});C.attr(this._yearTextPositionControl(C,h[l],i,l,s)),a.add(C)}},t.prototype._monthTextPositionControl=function(r,n,i,a,o){var s="left",l="top",u=r[0],c=r[1];return i==="horizontal"?(c=c+o,n&&(s="center"),a==="start"&&(l="bottom")):(u=u+o,n&&(l="middle"),a==="start"&&(s="right")),{x:u,y:c,align:s,verticalAlign:l}},t.prototype._renderMonthText=function(r,n,i,a){var o=r.getModel("monthLabel");if(o.get("show")){var s=o.get("nameMap"),l=o.get("margin"),u=o.get("position"),c=o.get("align"),A=[this._tlpoints,this._blpoints];(!s||Oa(s))&&(s&&(n=hwe(s)||n),s=n.get(["time","monthAbbr"])||[]);var f=u==="start"?0:1,h=i==="horizontal"?0:1;l=u==="start"?-l:l;for(var g=c==="center",p=o.get("silent"),m=0;m=i.start.time&&n.times.end.time&&r.reverse(),r},e.prototype._getRangeInfo=function(t){var r=[this.getDateInfo(t[0]),this.getDateInfo(t[1])],n;r[0].time>r[1].time&&(n=!0,r.reverse());var i=Math.floor(r[1].time/bge)-Math.floor(r[0].time/bge)+1,a=new Date(r[0].time),o=a.getDate(),s=r[1].date.getDate();a.setDate(o+i-1);var l=a.getDate();if(l!==s)for(var u=a.getTime()-r[1].time>0?1:-1;(l=a.getDate())!==s&&(a.getTime()-r[1].time)*u>0;)i-=u,a.setDate(l-u);var c=Math.floor((i+r[0].day+6)/7),A=n?-c+1:c-1;return n&&r.reverse(),{range:[r[0].formatedDate,r[1].formatedDate],start:r[0],end:r[1],allDay:i,weeks:c,nthWeek:A,fweek:r[0].day,lweek:r[1].day}},e.prototype._getDateByWeeksAndDay=function(t,r,n){var i=this._getRangeInfo(n);if(t>i.weeks||t===0&&ri.lweek)return null;var a=(t-1)*7-i.fweek+r,o=new Date(i.start.time);return o.setDate(+i.start.d+a),this.getDateInfo(o)},e.create=function(t,r){var n=[];return t.eachComponent("calendar",function(i){var a=new e(i);n.push(a),i.coordinateSystem=a}),t.eachSeries(function(i){i.get("coordinateSystem")==="calendar"&&(i.coordinateSystem=n[i.get("calendarIndex")||0])}),n},e.dimensions=["time","value"],e}();function UVe(e){var t=e.calendarModel,r=e.seriesModel,n=t?t.coordinateSystem:r?r.coordinateSystem:null;return n}function W7r(e){e.registerComponentModel(z7r),e.registerComponentView(K7r),e.registerCoordinateSystem("calendar",V7r)}function Y7r(e,t){var r=e.existing;if(t.id=e.keyInfo.id,!t.type&&r&&(t.type=r.type),t.parentId==null){var n=t.parentOption;n?t.parentId=n.id:r&&(t.parentId=r.parentId)}t.parentOption=null}function HVe(e,t){var r;return Mt(t,function(n){e[n]!=null&&e[n]!=="auto"&&(r=!0)}),r}function q7r(e,t,r){var n=si({},r),i=e[t],a=r.$action||"merge";a==="merge"?i?(ys(i,n,!0),x5(i,n,{ignoreSize:!0}),_vt(r,i),oz(r,i),oz(r,i,"shape"),oz(r,i,"style"),oz(r,i,"extra"),r.clipPath=i.clipPath):e[t]=n:a==="replace"?e[t]=n:a==="remove"&&i&&(e[t]=null)}var Nbt=["transition","enterFrom","leaveTo"],J7r=Nbt.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function oz(e,t,r){if(r&&(!e[r]&&t[r]&&(e[r]={}),e=e[r],t=t[r]),!(!e||!t))for(var n=r?Nbt:J7r,i=0;i=0;c--){var A=i[c],f=ld(A.id,null),h=f!=null?o.get(f):null;if(h){var g=h.parent,b=dy(g),C=g===a?{width:s,height:l}:{width:b.width,height:b.height},E={},_=VZ(h,A,C,null,{hv:A.hv,boundingMode:A.bounding},E);if(!dy(h).isNew&&_){for(var F=A.transition,M={},N=0;N=0)?M[P]=j:h[P]=j}su(h,M,r,0)}else h.attr(E)}}},t.prototype._clear=function(){var r=this,n=this._elMap;n.each(function(i){dV(i,dy(i).option,n,r._lastGraphicModel)}),this._elMap=ao()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(xA);function oCe(e){var t=Xa(jVe,e)?jVe[e]:Q5e(e),r=new t({});return dy(r).type=e,r}function GVe(e,t,r,n){var i=oCe(r);return t.add(i),n.set(e,i),dy(i).id=e,dy(i).isNew=!0,i}function dV(e,t,r,n){var i=e&&e.parent;i&&(e.type==="group"&&e.traverse(function(a){dV(a,t,r,n)}),uee(e,t,n),r.removeKey(dy(e).id))}function $Ve(e,t,r,n){e.isGroup||Mt([["cursor",Ry.prototype.cursor],["zlevel",n||0],["z",r||0],["z2",0]],function(i){var a=i[0];Xa(t,a)?e[a]=ts(t[a],i[1]):e[a]==null&&(e[a]=i[1])}),Mt(pl(t),function(i){if(i.indexOf("on")===0){var a=t[i];e[i]=Bo(a)?a:null}}),Xa(t,"draggable")&&(e.draggable=t.draggable),t.name!=null&&(e.name=t.name),t.id!=null&&(e.id=t.id)}function tTr(e){return e=si({},e),Mt(["id","parentId","$action","hv","bounding","textContent","clipPath"].concat(Qvt),function(t){delete e[t]}),e}function rTr(e,t,r){var n=Vo(e).eventData;!e.silent&&!e.ignore&&!n&&(n=Vo(e).eventData={componentType:"graphic",componentIndex:t.componentIndex,name:e.name}),n&&(n.info=r.info)}function nTr(e){e.registerComponentModel(Z7r),e.registerComponentView(eTr),e.registerPreprocessor(function(t){var r=t.graphic;Bi(r)?!r[0]||!r[0].elements?t.graphic=[{elements:r}]:t.graphic=[t.graphic[0]]:r&&!r.elements&&(t.graphic=[{elements:[r]}])})}var zVe=["x","y","radius","angle","single"],iTr=["cartesian2d","polar","singleAxis"];function aTr(e){var t=e.get("coordinateSystem");return Rs(iTr,t)>=0}function G3(e){return e+"Axis"}function oTr(e,t){var r=ao(),n=[],i=ao();e.eachComponent({mainType:"dataZoom",query:t},function(c){i.get(c.uid)||s(c)});var a;do a=!1,e.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),n.push(c),u(c)}function l(c){var A=!1;return c.eachTargetAxis(function(f,h){var g=r.get(f);g&&g[h]&&(A=!0)}),A}function u(c){c.eachTargetAxis(function(A,f){(r.get(A)||r.set(A,[]))[f]=!0})}return n}function Lbt(e){var t=e.ecModel,r={infoList:[],infoMap:ao()};return e.eachTargetAxis(function(n,i){var a=t.getComponent(G3(n),i);if(a){var o=a.getCoordSysModel();if(o){var s=o.uid,l=r.infoMap.get(s);l||(l={model:o,axisModels:[]},r.infoList.push(l),r.infoMap.set(s,l)),l.axisModels.push(a)}}}),r}var wge=function(){function e(){this.indexList=[],this.indexMap=[]}return e.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},e}(),$N=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._autoThrottle=!0,r._noTarget=!0,r._rangePropMode=["percent","percent"],r}return t.prototype.init=function(r,n,i){var a=KVe(r);this.settledOption=a,this.mergeDefaultAndTheme(r,i),this._doInit(a)},t.prototype.mergeOption=function(r){var n=KVe(r);ys(this.option,r,!0),ys(this.settledOption,n,!0),this._doInit(n)},t.prototype._doInit=function(r){var n=this.option;this._setDefaultThrottle(r),this._updateRangeUse(r);var i=this.settledOption;Mt([["start","startValue"],["end","endValue"]],function(a,o){this._rangePropMode[o]==="value"&&(n[a[0]]=i[a[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var r=this.get("orient",!0),n=this._targetAxisInfoMap=ao(),i=this._fillSpecifiedTargetAxis(n);i?this._orient=r||this._makeAutoOrientByTargetAxis():(this._orient=r||"horizontal",this._fillAutoTargetAxisByOrient(n,this._orient)),this._noTarget=!0,n.each(function(a){a.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(r){var n=!1;return Mt(zVe,function(i){var a=this.getReferringComponents(G3(i),Zwr);if(a.specified){n=!0;var o=new wge;Mt(a.models,function(s){o.add(s.componentIndex)}),r.set(i,o)}},this),n},t.prototype._fillAutoTargetAxisByOrient=function(r,n){var i=this.ecModel,a=!0;if(a){var o=n==="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)===n}});l(s,"single")}function l(u,c){var A=u[0];if(A){var f=new wge;if(f.add(A.componentIndex),r.set(c,f),a=!1,c==="x"||c==="y"){var h=A.getReferringComponents("grid",Sh).models[0];h&&Mt(u,function(g){A.componentIndex!==g.componentIndex&&h===g.getReferringComponents("grid",Sh).models[0]&&f.add(g.componentIndex)})}}}a&&Mt(zVe,function(u){if(a){var c=i.findComponents({mainType:G3(u),filter:function(f){return f.get("type",!0)==="category"}});if(c[0]){var A=new wge;A.add(c[0].componentIndex),r.set(u,A),a=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var r;return this.eachTargetAxis(function(n){!r&&(r=n)},this),r==="y"?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(r){if(r.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var n=this.ecModel.option;this.option.throttle=n.animation&&n.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(r){var n=this._rangePropMode,i=this.get("rangeMode");Mt([["start","startValue"],["end","endValue"]],function(a,o){var s=r[a[0]]!=null,l=r[a[1]]!=null;s&&!l?n[o]="percent":!s&&l?n[o]="value":i?n[o]=i[o]:s&&(n[o]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var r;return this.eachTargetAxis(function(n,i){r==null&&(r=this.ecModel.getComponent(G3(n),i))},this),r},t.prototype.eachTargetAxis=function(r,n){this._targetAxisInfoMap.each(function(i,a){Mt(i.indexList,function(o){r.call(n,a,o)})})},t.prototype.getAxisProxy=function(r,n){var i=this.getAxisModel(r,n);if(i)return i.__dzAxisProxy},t.prototype.getAxisModel=function(r,n){var i=this._targetAxisInfoMap.get(r);if(i&&i.indexMap[n])return this.ecModel.getComponent(G3(r),n)},t.prototype.setRawRange=function(r){var n=this.option,i=this.settledOption;Mt([["start","startValue"],["end","endValue"]],function(a){(r[a[0]]!=null||r[a[1]]!=null)&&(n[a[0]]=i[a[0]]=r[a[0]],n[a[1]]=i[a[1]]=r[a[1]])},this),this._updateRangeUse(r)},t.prototype.setCalculatedRange=function(r){var n=this.option;Mt(["start","startValue","end","endValue"],function(i){n[i]=r[i]})},t.prototype.getPercentRange=function(){var r=this.findRepresentativeAxisProxy();if(r)return r.getDataPercentWindow()},t.prototype.getValueRange=function(r,n){if(r==null&&n==null){var i=this.findRepresentativeAxisProxy();if(i)return i.getDataValueWindow()}else return this.getAxisProxy(r,n).getDataValueWindow()},t.prototype.findRepresentativeAxisProxy=function(r){if(r)return r.__dzAxisProxy;for(var n,i=this._targetAxisInfoMap.keys(),a=0;ao[1];if(E&&!_&&!F)return!0;E&&(m=!0),_&&(g=!0),F&&(p=!0)}return m&&g&&p})}else j8(c,function(h){if(a==="empty")l.setData(u=u.map(h,function(p){return s(p)?p:NaN}));else{var g={};g[h]=o,u.selectRange(g)}});j8(c,function(h){u.setApproximateExtent(o,h)})}});function s(l){return l>=o[0]&&l<=o[1]}},e.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},r=this._dataZoomModel,n=this._dataExtent;j8(["min","max"],function(i){var a=r.get(i+"Span"),o=r.get(i+"ValueSpan");o!=null&&(o=this.getAxisModel().axis.scale.parse(o)),o!=null?a=Qu(n[0]+o,n,[0,100],!0):a!=null&&(o=Qu(a,[0,100],n,!0)-n[0]),t[i+"Span"]=a,t[i+"ValueSpan"]=o},this)},e.prototype._setAxisModel=function(){var t=this.getAxisModel(),r=this._percentWindow,n=this._valueWindow;if(r){var i=y0t(n,[0,500]);i=Math.min(i,20);var a=t.axis.scale.rawExtentInfo;r[0]!==0&&a.setDeterminedMinMax("min",+n[0].toFixed(i)),r[1]!==100&&a.setDeterminedMinMax("max",+n[1].toFixed(i)),a.freeze()}},e}();function cTr(e,t,r){var n=[1/0,-1/0];j8(r,function(o){G3r(n,o.getData(),t)});var i=e.getAxisModel(),a=r1t(i.axis.scale,i,n).calculate();return[a.min,a.max]}var ATr={getTargetSeries:function(e){function t(i){e.eachComponent("dataZoom",function(a){a.eachTargetAxis(function(o,s){var l=e.getComponent(G3(o),s);i(o,s,l,a)})})}t(function(i,a,o,s){o.__dzAxisProxy=null});var r=[];t(function(i,a,o,s){o.__dzAxisProxy||(o.__dzAxisProxy=new uTr(i,a,s,e),r.push(o.__dzAxisProxy))});var n=ao();return Mt(r,function(i){Mt(i.getTargetSeriesModels(),function(a){n.set(a.uid,a)})}),n},overallReset:function(e,t){e.eachComponent("dataZoom",function(r){r.eachTargetAxis(function(n,i){r.getAxisProxy(n,i).reset(r)}),r.eachTargetAxis(function(n,i){r.getAxisProxy(n,i).filterData(r,t)})}),e.eachComponent("dataZoom",function(r){var n=r.findRepresentativeAxisProxy();if(n){var i=n.getDataPercentWindow(),a=n.getDataValueWindow();r.setCalculatedRange({start:i[0],end:i[1],startValue:a[0],endValue:a[1]})}})}};function fTr(e){e.registerAction("dataZoom",function(t,r){var n=oTr(r,t);Mt(n,function(i){i.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}var WVe=!1;function XSe(e){WVe||(WVe=!0,e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,ATr),fTr(e),e.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function hTr(e){e.registerComponentModel(sTr),e.registerComponentView(lTr),XSe(e)}var my=function(){function e(){}return e}(),Pbt={};function G8(e,t){Pbt[e]=t}function Ubt(e){return Pbt[e]}var dTr=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(){e.prototype.optionUpdated.apply(this,arguments);var r=this.ecModel;Mt(this.option.feature,function(n,i){var a=Ubt(i);a&&(a.getDefaultOption&&(a.defaultOption=a.getDefaultOption(r)),ys(n,a.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.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"}},t}(dl);function gTr(e,t,r){var n=t.getBoxLayoutParams(),i=t.get("padding"),a={width:r.getWidth(),height:r.getHeight()},o=fd(n,a,i);i6(t.get("orient"),e,t.get("itemGap"),o.width,o.height),VZ(e,n,a,i)}function Hbt(e,t){var r=pT(t.get("padding")),n=t.getItemStyle(["color","opacity"]);return n.fill=t.get("backgroundColor"),e=new Ol({shape:{x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2],r:t.get("borderRadius")},style:n,silent:!0,z2:-1}),e}var pTr=function(e){Wn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i,a){var o=this.group;if(o.removeAll(),!r.get("show"))return;var s=+r.get("itemSize"),l=r.get("orient")==="vertical",u=r.get("feature")||{},c=this._features||(this._features={}),A=[];Mt(u,function(g,p){A.push(p)}),new lB(this._featureNames||[],A).add(f).update(f).remove(us(f,null)).execute(),this._featureNames=A;function f(g,p){var m=A[g],b=A[p],C=u[m],E=new Du(C,r,r.ecModel),_;if(a&&a.newTitle!=null&&a.featureName===m&&(C.title=a.newTitle),m&&!b){if(vTr(m))_={onclick:E.option.onclick,featureName:m};else{var F=Ubt(m);if(!F)return;_=new F}c[m]=_}else if(_=c[b],!_)return;_.uid=gT("toolbox-feature"),_.model=E,_.ecModel=n,_.api=i;var M=_ instanceof my;if(!m&&b){M&&_.dispose&&_.dispose(n,i);return}if(!E.get("show")||M&&_.unusable){M&&_.remove&&_.remove(n,i);return}h(E,_,m),E.setIconStatus=function(N,P){var j=this.option,z=this.iconPaths;j.iconStatus=j.iconStatus||{},j.iconStatus[N]=P,z[N]&&(P==="emphasis"?oB:sB)(z[N])},_ instanceof my&&_.render&&_.render(E,n,i,a)}function h(g,p,m){var b=g.getModel("iconStyle"),C=g.getModel(["emphasis","iconStyle"]),E=p instanceof my&&p.getIcons?p.getIcons():g.get("icon"),_=g.get("title")||{},F,M;Oa(E)?(F={},F[m]=E):F=E,Oa(_)?(M={},M[m]=_):M=_;var N=g.iconPaths={};Mt(F,function(P,j){var z=cP(P,{},{x:-s/2,y:-s/2,width:s,height:s});z.setStyle(b.getItemStyle());var W=z.ensureState("emphasis");W.style=C.getItemStyle();var Y=new zl({style:{text:M[j],align:C.get("textAlign"),borderRadius:C.get("textBorderRadius"),padding:C.get("textPadding"),fill:null,font:_5e({fontStyle:C.get("textFontStyle"),fontFamily:C.get("textFontFamily"),fontSize:C.get("textFontSize"),fontWeight:C.get("textFontWeight")},n)},ignore:!0});z.setTextContent(Y),pQ({el:z,componentModel:r,itemName:j,formatterParamsExtra:{title:M[j]}}),z.__title=M[j],z.on("mouseover",function(){var ee=C.getItemStyle(),q=l?r.get("right")==null&&r.get("left")!=="right"?"right":"left":r.get("bottom")==null&&r.get("top")!=="bottom"?"bottom":"top";Y.setStyle({fill:C.get("textFill")||ee.fill||ee.stroke||"#000",backgroundColor:C.get("textBackgroundColor")}),z.setTextConfig({position:C.get("textPosition")||q}),Y.ignore=!r.get("showTitle"),i.enterEmphasis(this)}).on("mouseout",function(){g.get(["iconStatus",j])!=="emphasis"&&i.leaveEmphasis(this),Y.hide()}),(g.get(["iconStatus",j])==="emphasis"?oB:sB)(z),o.add(z),z.on("click",Ga(p.onclick,p,n,i,j)),N[j]=z})}gTr(o,r,i),o.add(Hbt(o.getBoundingRect(),r)),l||o.eachChild(function(g){var p=g.__title,m=g.ensureState("emphasis"),b=m.textConfig||(m.textConfig={}),C=g.getTextContent(),E=C&&C.ensureState("emphasis");if(E&&!Bo(E)&&p){var _=E.style||(E.style={}),F=nP(p,zl.makeFont(_)),M=g.x+o.x,N=g.y+o.y+s,P=!1;N+F.height>i.getHeight()&&(b.position="top",P=!0);var j=P?-5-F.height:s+10;M+F.width/2>i.getWidth()?(b.position=["100%",j],_.align="right"):M-F.width/2<0&&(b.position=[0,j],_.align="left")}})},t.prototype.updateView=function(r,n,i,a){Mt(this._features,function(o){o instanceof my&&o.updateView&&o.updateView(o.model,n,i,a)})},t.prototype.remove=function(r,n){Mt(this._features,function(i){i instanceof my&&i.remove&&i.remove(r,n)}),this.group.removeAll()},t.prototype.dispose=function(r,n){Mt(this._features,function(i){i instanceof my&&i.dispose&&i.dispose(r,n)})},t.type="toolbox",t}(xA);function vTr(e){return e.indexOf("my")===0}var mTr=function(e){Wn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){var i=this.model,a=i.get("name")||r.get("title.0.text")||"echarts",o=n.getZr().painter.getType()==="svg",s=o?"svg":i.get("type",!0)||"png",l=n.getConnectedDataURL({type:s,backgroundColor:i.get("backgroundColor",!0)||r.get("backgroundColor")||"#fff",connectedBackgroundColor:i.get("connectedBackgroundColor"),excludeComponents:i.get("excludeComponents"),pixelRatio:i.get("pixelRatio")}),u=nl.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 A=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});c.dispatchEvent(A)}else if(window.navigator.msSaveOrOpenBlob||o){var f=l.split(","),h=f[0].indexOf("base64")>-1,g=o?decodeURIComponent(f[1]):f[1];h&&(g=window.atob(g));var p=a+"."+s;if(window.navigator.msSaveOrOpenBlob){for(var m=g.length,b=new Uint8Array(m);m--;)b[m]=g.charCodeAt(m);var C=new Blob([b]);window.navigator.msSaveOrOpenBlob(C,p)}else{var E=document.createElement("iframe");document.body.appendChild(E);var _=E.contentWindow,F=_.document;F.open("image/svg+xml","replace"),F.write(g),F.close(),_.focus(),F.execCommand("SaveAs",!0,p),document.body.removeChild(E)}}else{var M=i.get("lang"),N='',P=window.open();P.document.write(N),P.document.title=a}},t.getDefaultOption=function(r){var n={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:r.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:r.getLocaleModel().get(["toolbox","saveAsImage","lang"])};return n},t}(my),YVe="__ec_magicType_stack__",yTr=[["line","bar"],["stack"]],bTr=function(e){Wn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getIcons=function(){var r=this.model,n=r.get("icon"),i={};return Mt(r.get("type"),function(a){n[a]&&(i[a]=n[a])}),i},t.getDefaultOption=function(r){var n={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:r.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}};return n},t.prototype.onclick=function(r,n,i){var a=this.model,o=a.get(["seriesIndex",i]);if(qVe[i]){var s={series:[]},l=function(A){var f=A.subType,h=A.id,g=qVe[i](f,h,A,a);g&&(Qo(g,A.option),s.series.push(g));var p=A.coordinateSystem;if(p&&p.type==="cartesian2d"&&(i==="line"||i==="bar")){var m=p.getAxesByScale("ordinal")[0];if(m){var b=m.dim,C=b+"Axis",E=A.getReferringComponents(C,Sh).models[0],_=E.componentIndex;s[C]=s[C]||[];for(var F=0;F<=_;F++)s[C][_]=s[C][_]||{};s[C][_].boundaryGap=i==="bar"}}};Mt(yTr,function(A){Rs(A,i)>=0&&Mt(A,function(f){a.setIconStatus(f,"normal")})}),a.setIconStatus(i,"emphasis"),r.eachComponent({mainType:"series",query:o==null?null:{seriesIndex:o}},l);var u,c=i;i==="stack"&&(u=ys({stack:a.option.title.tiled,tiled:a.option.title.stack},a.option.title),a.get(["iconStatus",i])!=="emphasis"&&(c="tiled")),n.dispatchAction({type:"changeMagicType",currentType:c,newOption:s,newTitle:u,featureName:"magicType"})}},t}(my),qVe={line:function(e,t,r,n){if(e==="bar")return ys({id:t,type:"line",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(e,t,r,n){if(e==="line")return ys({id:t,type:"bar",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(e,t,r,n){var i=r.get("stack")===YVe;if(e==="line"||e==="bar")return n.setIconStatus("stack",i?"normal":"emphasis"),ys({id:t,stack:i?"":YVe},n.get(["option","stack"])||{},!0)}};LC({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)});var cee=new Array(60).join("-"),y7=" ";function wTr(e){var t={},r=[],n=[];return e.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;t[s]||(t[s]={categoryAxis:o,valueAxis:a.getOtherAxis(o),series:[]},n.push({axisDim:o.dim,axisIndex:o.index})),t[s].series.push(i)}else r.push(i)}else r.push(i)}),{seriesGroupByCategoryAxis:t,other:r,meta:n}}function CTr(e){var t=[];return Mt(e,function(r,n){var i=r.categoryAxis,a=r.valueAxis,o=a.dim,s=[" "].concat(Ti(r.series,function(h){return h.name})),l=[i.model.getCategories()];Mt(r.series,function(h){var g=h.getRawData();l.push(h.getRawData().mapArray(g.mapDimension(o),function(p){return p}))});for(var u=[s.join(y7)],c=0;c=0)return!0}var sCe=new RegExp("["+y7+"]+","g");function xTr(e){for(var t=e.split(/\n+/g),r=rq(t.shift()).split(sCe),n=[],i=Ti(r,function(l){return{name:l,data:[]}}),a=0;a=0;a--){var o=r[a];if(o[i])break}if(a<0){var s=e.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(s){var l=s.getPercentRange();r[0][i]={dataZoomId:i,start:l[0],end:l[1]}}}}),r.push(t)}function DTr(e){var t=ZSe(e),r=t[t.length-1];t.length>1&&t.pop();var n={};return jbt(r,function(i,a){for(var o=t.length-1;o>=0;o--)if(i=t[o][a],i){n[a]=i;break}}),n}function FTr(e){Gbt(e).snapshots=null}function RTr(e){return ZSe(e).length}function ZSe(e){var t=Gbt(e);return t.snapshots||(t.snapshots=[{}]),t.snapshots}var MTr=function(e){Wn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.onclick=function(r,n){FTr(r),n.dispatchAction({type:"restore",from:this.uid})},t.getDefaultOption=function(r){var n={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:r.getLocaleModel().get(["toolbox","restore","title"])};return n},t}(my);LC({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")});var OTr=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"],e4e=function(){function e(t,r,n){var i=this;this._targetInfoList=[];var a=JVe(r,t);Mt(NTr,function(o,s){(!n||!n.include||Rs(n.include,s)>=0)&&o(a,i._targetInfoList)})}return e.prototype.setOutputRanges=function(t,r){return this.matchOutputRanges(t,r,function(n,i,a){if((n.coordRanges||(n.coordRanges=[])).push(i),!n.coordRange){n.coordRange=i;var o=Cge[n.brushType](0,a,i);n.__rangeOffset={offset:tWe[n.brushType](o.values,n.range,[1,1]),xyMinMax:o.xyMinMax}}}),t},e.prototype.matchOutputRanges=function(t,r,n){Mt(t,function(i){var a=this.findTargetInfo(i,r);a&&a!==!0&&Mt(a.coordSyses,function(o){var s=Cge[i.brushType](1,o,i.range,!0);n(i,s.values,o,r)})},this)},e.prototype.setInputRanges=function(t,r){Mt(t,function(n){var i=this.findTargetInfo(n,r);if(n.range=n.range||[],i&&i!==!0){n.panelId=i.panelId;var a=Cge[n.brushType](0,i.coordSys,n.coordRange),o=n.__rangeOffset;n.range=o?tWe[n.brushType](a.values,o.offset,LTr(a.xyMinMax,o.xyMinMax)):a.values}},this)},e.prototype.makePanelOpts=function(t,r){return Ti(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:r?r(n):null,clipPath:Jyt(i),isTargetByCursor:Zyt(i,t,n.coordSysModel),getLinearBrushOtherExtent:Xyt(i)}})},e.prototype.controlSeries=function(t,r,n){var i=this.findTargetInfo(t,n);return i===!0||i&&Rs(i.coordSyses,r.coordinateSystem)>=0},e.prototype.findTargetInfo=function(t,r){for(var n=this._targetInfoList,i=JVe(r,t),a=0;ae[1]&&e.reverse(),e}function JVe(e,t){return oO(e,t,{includeMainTypes:OTr})}var NTr={grid:function(e,t){var r=e.xAxisModels,n=e.yAxisModels,i=e.gridModels,a=ao(),o={},s={};!r&&!n&&!i||(Mt(r,function(l){var u=l.axis.grid.model;a.set(u.id,u),o[u.id]=!0}),Mt(n,function(l){var u=l.axis.grid.model;a.set(u.id,u),s[u.id]=!0}),Mt(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=[];Mt(u.getCartesians(),function(A,f){(Rs(r,A.getAxis("x").model)>=0||Rs(n,A.getAxis("y").model)>=0)&&c.push(A)}),t.push({panelId:"grid--"+l.id,gridModel:l,coordSysModel:l,coordSys:c[0],coordSyses:c,getPanelRect:ZVe.grid,xAxisDeclared:o[l.id],yAxisDeclared:s[l.id]})}))},geo:function(e,t){Mt(e.geoModels,function(r){var n=r.coordinateSystem;t.push({panelId:"geo--"+r.id,geoModel:r,coordSysModel:r,coordSys:n,coordSyses:[n],getPanelRect:ZVe.geo})})}},XVe=[function(e,t){var r=e.xAxisModel,n=e.yAxisModel,i=e.gridModel;return!i&&r&&(i=r.axis.grid.model),!i&&n&&(i=n.axis.grid.model),i&&i===t.gridModel},function(e,t){var r=e.geoModel;return r&&r===t.geoModel}],ZVe={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var e=this.coordSys,t=e.getBoundingRect().clone();return t.applyTransform(n6(e)),t}},Cge={lineX:us(eWe,0),lineY:us(eWe,1),rect:function(e,t,r,n){var i=e?t.pointToData([r[0][0],r[1][0]],n):t.dataToPoint([r[0][0],r[1][0]],n),a=e?t.pointToData([r[0][1],r[1][1]],n):t.dataToPoint([r[0][1],r[1][1]],n),o=[lCe([i[0],a[0]]),lCe([i[1],a[1]])];return{values:o,xyMinMax:o}},polygon:function(e,t,r,n){var i=[[1/0,-1/0],[1/0,-1/0]],a=Ti(r,function(o){var s=e?t.pointToData(o,n):t.dataToPoint(o,n);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 eWe(e,t,r,n){var i=r.getAxis(["x","y"][e]),a=lCe(Ti([0,1],function(s){return t?i.coordToData(i.toLocalCoord(n[s]),!0):i.toGlobalCoord(i.dataToCoord(n[s]))})),o=[];return o[e]=a,o[1-e]=[NaN,NaN],{values:a,xyMinMax:o}}var tWe={lineX:us(rWe,0),lineY:us(rWe,1),rect:function(e,t,r){return[[e[0][0]-r[0]*t[0][0],e[0][1]-r[0]*t[0][1]],[e[1][0]-r[1]*t[1][0],e[1][1]-r[1]*t[1][1]]]},polygon:function(e,t,r){return Ti(e,function(n,i){return[n[0]-r[0]*t[i][0],n[1]-r[1]*t[i][1]]})}};function rWe(e,t,r,n){return[t[0]-n[e]*r[0],t[1]-n[e]*r[1]]}function LTr(e,t){var r=nWe(e),n=nWe(t),i=[r[0]/n[0],r[1]/n[1]];return isNaN(i[0])&&(i[0]=1),isNaN(i[1])&&(i[1]=1),i}function nWe(e){return e?[e[0][1]-e[0][0],e[1][1]-e[1][0]]:[NaN,NaN]}var uCe=Mt,PTr=Wwr("toolbox-dataZoom_"),UTr=function(e){Wn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i,a){this._brushController||(this._brushController=new SSe(i.getZr()),this._brushController.on("brush",Ga(this._onBrush,this)).mount()),GTr(r,n,this,a,i),jTr(r,n)},t.prototype.onclick=function(r,n,i){HTr[i].call(this)},t.prototype.remove=function(r,n){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(r,n){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(r){var n=r.areas;if(!r.isEnd||!n.length)return;var i={},a=this.ecModel;this._brushController.updateCovers([]);var o=new e4e(t4e(this.model),a,{include:["grid"]});o.matchOutputRanges(n,a,function(u,c,A){if(A.type==="cartesian2d"){var f=u.brushType;f==="rect"?(s("x",A,c[0]),s("y",A,c[1])):s({lineX:"x",lineY:"y"}[f],A,c)}}),TTr(a,i),this._dispatchZoomAction(i);function s(u,c,A){var f=c.getAxis(u),h=f.model,g=l(u,h,a),p=g.findRepresentativeAxisProxy(h).getMinMaxSpan();(p.minValueSpan!=null||p.maxValueSpan!=null)&&(A=CQ(0,A.slice(),f.scale.getExtent(),0,p.minValueSpan,p.maxValueSpan)),g&&(i[g.id]={dataZoomId:g.id,startValue:A[0],endValue:A[1]})}function l(u,c,A){var f;return A.eachComponent({mainType:"dataZoom",subType:"select"},function(h){var g=h.getAxisModel(u,c.componentIndex);g&&(f=h)}),f}},t.prototype._dispatchZoomAction=function(r){var n=[];uCe(r,function(i,a){n.push(No(i))}),n.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:n})},t.getDefaultOption=function(r){var n={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:r.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}};return n},t}(my),HTr={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(DTr(this.ecModel))}};function t4e(e){var t={xAxisIndex:e.get("xAxisIndex",!0),yAxisIndex:e.get("yAxisIndex",!0),xAxisId:e.get("xAxisId",!0),yAxisId:e.get("yAxisId",!0)};return t.xAxisIndex==null&&t.xAxisId==null&&(t.xAxisIndex="all"),t.yAxisIndex==null&&t.yAxisId==null&&(t.yAxisIndex="all"),t}function jTr(e,t){e.setIconStatus("back",RTr(t)>1?"emphasis":"normal")}function GTr(e,t,r,n,i){var a=r._isZoomActive;n&&n.type==="takeGlobalCursor"&&(a=n.key==="dataZoomSelect"?n.dataZoomSelectActive:!1),r._isZoomActive=a,e.setIconStatus("zoom",a?"emphasis":"normal");var o=new e4e(t4e(e),t,{include:["grid"]}),s=o.makePanelOpts(i,function(l){return l.xAxisDeclared&&!l.yAxisDeclared?"lineX":!l.xAxisDeclared&&l.yAxisDeclared?"lineY":"rect"});r._brushController.setPanels(s).enableBrush(a&&s.length?{brushType:"auto",brushStyle:e.getModel("brushStyle").getItemStyle()}:!1)}yEr("dataZoom",function(e){var t=e.getComponent("toolbox",0),r=["feature","dataZoom"];if(!t||t.get(r)==null)return;var n=t.getModel(r),i=[],a=t4e(n),o=oO(e,a);uCe(o.xAxisModels,function(l){return s(l,"xAxis","xAxisIndex")}),uCe(o.yAxisModels,function(l){return s(l,"yAxis","yAxisIndex")});function s(l,u,c){var A=l.componentIndex,f={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:PTr+u+A};f[c]=A,i.push(f)}return i});function $Tr(e){e.registerComponentModel(dTr),e.registerComponentView(pTr),G8("saveAsImage",mTr),G8("magicType",bTr),G8("dataView",QTr),G8("dataZoom",UTr),G8("restore",MTr),zs(hTr)}var zTr=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t}(dl);function $bt(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function zbt(e){if(nl.domSupported){for(var t=document.documentElement.style,r=0,n=e.length;r-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,A=o+i,f=A*Math.abs(Math.cos(c))+A*Math.abs(Math.sin(c)),h=Math.round(((f-Math.SQRT2*i)/2+Math.SQRT2*i-(f-A)/2)*100)/100;s+=";"+a+":-"+h+"px";var g=t+" solid "+i+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+g,"border-right:"+g,"background-color:"+n+";"];return'
    '}function XTr(e,t){var r="cubic-bezier(0.23,1,0.32,1)",n=" "+e/2+"s "+r,i="opacity"+n+",visibility"+n;return t||(n=" "+e+"s "+r,i+=nl.transformSupported?","+r4e+n:",left"+n+",top"+n),WTr+":"+i}function iWe(e,t,r){var n=e.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!nl.transformSupported)return r?"top:"+i+";left:"+n+";":[["top",i],["left",n]];var a=nl.transform3dSupported,o="translate"+(a?"3d":"")+"("+n+","+i+(a?",0":"")+")";return r?"top:0;left:0;"+r4e+":"+o+";":[["top",0],["left",0],[Kbt,o]]}function ZTr(e){var t=[],r=e.get("fontSize"),n=e.getTextColor();n&&t.push("color:"+n),t.push("font:"+e.getFont());var i=ts(e.get("lineHeight"),Math.round(r*3/2));r&&t.push("line-height:"+i+"px");var a=e.get("textShadowColor"),o=e.get("textShadowBlur")||0,s=e.get("textShadowOffsetX")||0,l=e.get("textShadowOffsetY")||0;return a&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+a),Mt(["decoration","align"],function(u){var c=e.get(u);c&&t.push("text-"+u+":"+c)}),t.join(";")}function eDr(e,t,r){var n=[],i=e.get("transitionDuration"),a=e.get("backgroundColor"),o=e.get("shadowBlur"),s=e.get("shadowColor"),l=e.get("shadowOffsetX"),u=e.get("shadowOffsetY"),c=e.getModel("textStyle"),A=smt(e,"html"),f=l+"px "+u+"px "+o+"px "+s;return n.push("box-shadow:"+f),t&&i&&n.push(XTr(i,r)),a&&n.push("background-color:"+a),Mt(["width","color","radius"],function(h){var g="border-"+h,p=Svt(g),m=e.get(p);m!=null&&n.push(g+":"+m+(h==="color"?"":"px"))}),n.push(ZTr(c)),A!=null&&n.push("padding:"+pT(A).join("px ")+"px"),n.join(";")+";"}function aWe(e,t,r,n,i){var a=t&&t.painter;if(r){var o=a&&a.getViewportRoot();o&&x2r(e,o,r,n,i)}else{e[0]=n,e[1]=i;var s=a&&a.getViewportRootOffset();s&&(e[0]+=s.offsetLeft,e[1]+=s.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var tDr=function(){function e(t,r){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,nl.wxa)return null;var n=document.createElement("div");n.domBelongToZr=!0,this.el=n;var i=this._zr=t.getZr(),a=r.appendTo,o=a&&(Oa(a)?document.querySelector(a):u7(a)?a:Bo(a)&&a(t.getDom()));aWe(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(n),this._api=t,this._container=o;var s=this;n.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},n.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();cy(c,l,!0),u.dispatch("mousemove",l)}},n.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var r=this._api.getDom(),n=VTr(r,"position"),i=r.style;i.position!=="absolute"&&n!=="absolute"&&(i.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},e.prototype.show=function(t,r){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var n=this.el,i=n.style,a=this._styleCoord;n.innerHTML?i.cssText=YTr+eDr(t,!this._firstShow,this._longHide)+iWe(a[0],a[1],!0)+("border-color:"+L6(r)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,r,n,i,a){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(Oa(a)&&n.get("trigger")==="item"&&!$bt(n)&&(s=JTr(n,i,a)),Oa(t))o.innerHTML=t+s;else if(t){o.innerHTML="",Bi(t)||(t=[t]);for(var l=0;l=0?this._tryShow(a,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var r=this._tooltipModel,n=this._ecModel,i=this._api,a=r.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(r,n,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(r,n,i,a){if(!(a.from===this.uid||nl.node||!i.getDom())){var o=lWe(a,i);this._ticket="";var s=a.dataByCoordSys,l=lDr(a,n,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=nDr;c.x=a.x,c.y=a.y,c.update(),Vo(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(r,n,i,a))return;var A=Dbt(a,n),f=A.point[0],h=A.point[1];f!=null&&h!=null&&this._tryShow({offsetX:f,offsetY:h,target:A.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))}},t.prototype.manuallyHideTip=function(r,n,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(lWe(a,i))},t.prototype._manuallyAxisShowTip=function(r,n,i,a){var o=a.seriesIndex,s=a.dataIndex,l=n.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=n.getSeriesByIndex(o);if(u){var c=u.getData(),A=bR([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(A.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:a.position}),!0}}},t.prototype._tryShow=function(r,n){var i=r.target,a=this._tooltipModel;if(a){this._lastX=r.offsetX,this._lastY=r.offsetY;var o=r.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,r);else if(i){var s=Vo(i);if(s.ssrType==="legend")return;this._lastDataByCoordSys=null;var l,u;Qk(i,function(c){if(Vo(c).dataIndex!=null)return l=c,!0;if(Vo(c).tooltipConfig!=null)return u=c,!0},!0),l?this._showSeriesItemTooltip(r,l,n):u?this._showComponentItemTooltip(r,u,n):this._hide(n)}else this._lastDataByCoordSys=null,this._hide(n)}},t.prototype._showOrMove=function(r,n){var i=r.get("showDelay");n=Ga(n,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(n,i):n()},t.prototype._showAxisTooltip=function(r,n){var i=this._ecModel,a=this._tooltipModel,o=[n.offsetX,n.offsetY],s=bR([n.tooltipOption],a),l=this._renderMode,u=[],c=Wd("section",{blocks:[],noHeader:!0}),A=[],f=new lde;Mt(r,function(C){Mt(C.dataByAxis,function(E){var _=i.getComponent(E.axisDim+"Axis",E.axisIndex),F=E.value;if(!(!_||F==null)){var M=kbt(F,_.axis,i,E.seriesDataIndices,E.valueLabelOpt),N=Wd("section",{header:M,noHeader:!Kb(M),sortBlocks:!0,blocks:[]});c.blocks.push(N),Mt(E.seriesDataIndices,function(P){var j=i.getSeriesByIndex(P.seriesIndex),z=P.dataIndexInside,W=j.getDataParams(z);if(!(W.dataIndex<0)){W.axisDim=E.axisDim,W.axisIndex=E.axisIndex,W.axisType=E.axisType,W.axisId=E.axisId,W.axisValue=tSe(_.axis,{value:F}),W.axisValueLabel=M,W.marker=f.makeTooltipMarker("item",L6(W.color),l);var Y=YGe(j.formatTooltip(z,!0,null)),ee=Y.frag;if(ee){var q=bR([j],a).get("valueFormatter");N.blocks.push(q?si({valueFormatter:q},ee):ee)}Y.text&&A.push(Y.text),u.push(W)}})}})}),c.blocks.reverse(),A.reverse();var h=n.position,g=s.get("order"),p=t$e(c,f,l,g,i.get("useUTC"),s.get("textStyle"));p&&A.unshift(p);var m=l==="richText"?` `:"
    ",b=A.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(r,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,b,u,Math.random()+"",o[0],o[1],h,null,f)})},t.prototype._showSeriesItemTooltip=function(r,n,i){var a=this._ecModel,o=Vo(n),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,A=o.dataType,f=u.getData(A),h=this._renderMode,g=r.positionDefault,p=bR([f.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,g?{position:g}:null),m=p.get("trigger");if(!(m!=null&&m!=="item")){var b=u.getDataParams(c,A),C=new lde;b.marker=C.makeTooltipMarker("item",L6(b.color),h);var E=YGe(u.formatTooltip(c,!1,A)),_=p.get("order"),F=p.get("valueFormatter"),M=E.frag,N=M?t$e(F?si({valueFormatter:F},M):M,C,h,_,a.get("useUTC"),p.get("textStyle")):E.text,P="item_"+u.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,N,b,P,r.offsetX,r.offsetY,r.position,r.target,C)}),i({type:"showTip",dataIndexInside:c,dataIndex:f.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(r,n,i){var a=this._renderMode==="html",o=Vo(n),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Oa(l)){var c=l;l={content:c,formatter:c},u=!0}u&&a&&l.content&&(l=No(l),l.content=P0(l.content));var A=[l],f=this._ecModel.getComponent(o.componentMainType,o.componentIndex);f&&A.push(f),A.push({formatter:l.content});var h=r.positionDefault,g=bR(A,this._tooltipModel,h?{position:h}:null),p=g.get("content"),m=Math.random()+"",b=new lde;this._showOrMove(g,function(){var C=No(g.get("formatterParams")||{});this._showTooltipContent(g,p,C,m,r.offsetX,r.offsetY,r.position,n,b)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(r,n,i,a,o,s,l,u,c){if(this._ticket="",!(!r.get("showContent")||!r.get("show"))){var A=this._tooltipContent;A.setEnterable(r.get("enterable"));var f=r.get("formatter");l=l||r.get("position");var h=n,g=this._getNearestPoint([o,s],i,r.get("trigger"),r.get("borderColor")),p=g.color;if(f)if(Oa(f)){var m=r.ecModel.get("useUTC"),b=Bi(i)?i[0]:i,C=b&&b.axisType&&b.axisType.indexOf("time")>=0;h=f,C&&(h=jZ(b.axisValue,h,m)),h=kvt(h,i,!0)}else if(Bo(f)){var E=Ga(function(_,F){_===this._ticket&&(A.setContent(F,c,r,p,l),this._updatePosition(r,l,o,s,A,i,u))},this);this._ticket=a,h=f(i,a,E)}else h=f;A.setContent(h,c,r,p,l),A.show(r,p),this._updatePosition(r,l,o,s,A,i,u)}},t.prototype._getNearestPoint=function(r,n,i,a){if(i==="axis"||Bi(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!Bi(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(r,n,i,a,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();n=n||r.get("position");var A=o.getSize(),f=r.get("align"),h=r.get("verticalAlign"),g=l&&l.getBoundingRect().clone();if(l&&g.applyTransform(l.transform),Bo(n)&&(n=n([i,a],s,o.el,g,{viewSize:[u,c],contentSize:A.slice()})),Bi(n))i=Ba(n[0],u),a=Ba(n[1],c);else if(Mo(n)){var p=n;p.width=A[0],p.height=A[1];var m=fd(p,{width:u,height:c});i=m.x,a=m.y,f=null,h=null}else if(Oa(n)&&l){var b=sDr(n,g,A,r.get("borderWidth"));i=b[0],a=b[1]}else{var b=aDr(i,a,o,u,c,f?null:20,h?null:20);i=b[0],a=b[1]}if(f&&(i-=uWe(f)?A[0]/2:f==="right"?A[0]:0),h&&(a-=uWe(h)?A[1]/2:h==="bottom"?A[1]:0),$bt(r)){var b=oDr(i,a,o,u,c);i=b[0],a=b[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(r,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===r.length;return o&&Mt(i,function(s,l){var u=s.dataByAxis||[],c=r[l]||{},A=c.dataByAxis||[];o=o&&u.length===A.length,o&&Mt(u,function(f,h){var g=A[h]||{},p=f.seriesDataIndices||[],m=g.seriesDataIndices||[];o=o&&f.value===g.value&&f.axisType===g.axisType&&f.axisId===g.axisId&&p.length===m.length,o&&Mt(p,function(b,C){var E=m[C];o=o&&b.seriesIndex===E.seriesIndex&&b.dataIndex===E.dataIndex}),a&&Mt(f.seriesDataIndices,function(b){var C=b.seriesIndex,E=n[C],_=a[C];E&&_&&_.data!==E.data&&(o=!1)})})}),this._lastDataByCoordSys=r,this._cbParamsList=n,!!o},t.prototype._hide=function(r){this._lastDataByCoordSys=null,r({type:"hideTip",from:this.uid})},t.prototype.dispose=function(r,n){nl.node||!n.getDom()||(TN(this,"_updatePosition"),this._tooltipContent.dispose(),iCe("itemTooltip",n))},t.type="tooltip",t}(xA);function bR(e,t,r){var n=t.ecModel,i;r?(i=new Du(r,n,n),i=new Du(t.option,i,n)):i=t;for(var a=e.length-1;a>=0;a--){var o=e[a];o&&(o instanceof Du&&(o=o.get("tooltip",!0)),Oa(o)&&(o={formatter:o}),o&&(i=new Du(o,i,n)))}return i}function lWe(e,t){return e.dispatchAction||Ga(t.dispatchAction,t)}function aDr(e,t,r,n,i,a,o){var s=r.getSize(),l=s[0],u=s[1];return a!=null&&(e+l+a+2>n?e-=l+a:e+=a),o!=null&&(t+u+o>i?t-=u+o:t+=o),[e,t]}function oDr(e,t,r,n,i){var a=r.getSize(),o=a[0],s=a[1];return e=Math.min(e+o,n)-o,t=Math.min(t+s,i)-s,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function sDr(e,t,r,n){var i=r[0],a=r[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=t.width,c=t.height;switch(e){case"inside":s=t.x+u/2-i/2,l=t.y+c/2-a/2;break;case"top":s=t.x+u/2-i/2,l=t.y-a-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+c+o;break;case"left":s=t.x-i-o,l=t.y+c/2-a/2;break;case"right":s=t.x+u+o,l=t.y+c/2-a/2}return[s,l]}function uWe(e){return e==="center"||e==="middle"}function lDr(e,t,r){var n=v5e(e).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=iP(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=r.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=Vo(u).tooltipConfig;if(c&&c.name===e.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function uDr(e){zs(IP),e.registerComponentModel(zTr),e.registerComponentView(iDr),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Xf),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Xf)}var cDr=["rect","polygon","keep","clear"];function ADr(e,t){var r=ic(e?e.brush:[]);if(r.length){var n=[];Mt(r,function(l){var u=l.hasOwnProperty("toolbox")?l.toolbox:[];u instanceof Array&&(n=n.concat(u))});var i=e&&e.toolbox;Bi(i)&&(i=i[0]),i||(i={feature:{}},e.toolbox=[i]);var a=i.feature||(i.feature={}),o=a.brush||(a.brush={}),s=o.type||(o.type=[]);s.push.apply(s,n),fDr(s),t&&!s.length&&s.push.apply(s,cDr)}}function fDr(e){var t={};Mt(e,function(r){t[r]=1}),e.length=0,Mt(t,function(r,n){e.push(n)})}var cWe=Mt;function AWe(e){if(e){for(var t in e)if(e.hasOwnProperty(t))return!0}}function cCe(e,t,r){var n={};return cWe(t,function(a){var o=n[a]=i();cWe(e[a],function(s,l){if(Gd.isValidType(l)){var u={type:l,visual:s};r&&r(u,a),o[l]=new Gd(u),l==="opacity"&&(u=No(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new Gd(u))}})}),n;function i(){var a=function(){};a.prototype.__hidden=a.prototype;var o=new a;return o}}function Wbt(e,t,r){var n;Mt(r,function(i){t.hasOwnProperty(i)&&AWe(t[i])&&(n=!0)}),n&&Mt(r,function(i){t.hasOwnProperty(i)&&AWe(t[i])?e[i]=No(t[i]):delete e[i]})}function hDr(e,t,r,n,i,a){var o={};Mt(e,function(A){var f=Gd.prepareVisualTypes(t[A]);o[A]=f});var s;function l(A){return K5e(r,s,A)}function u(A,f){vmt(r,s,A,f)}r.each(c);function c(A,f){s=A;var h=r.getRawDataItem(s);if(!(h&&h.visualMap===!1))for(var g=n.call(i,A),p=t[g],m=o[g],b=0,C=m.length;bt[0][1]&&(t[0][1]=a[0]),a[1]t[1][1]&&(t[1][1]=a[1])}return t&&pWe(t)}};function pWe(e){return new xs(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var wDr=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){this.ecModel=r,this.api=n,this.model,(this._brushController=new SSe(n.getZr())).on("brush",Ga(this._onBrush,this)).mount()},t.prototype.render=function(r,n,i,a){this.model=r,this._updateController(r,n,i,a)},t.prototype.updateTransform=function(r,n,i,a){Ybt(n),this._updateController(r,n,i,a)},t.prototype.updateVisual=function(r,n,i,a){this.updateTransform(r,n,i,a)},t.prototype.updateView=function(r,n,i,a){this._updateController(r,n,i,a)},t.prototype._updateController=function(r,n,i,a){(!a||a.$from!==r.id)&&this._brushController.setPanels(r.brushTargetManager.makePanelOpts(i)).enableBrush(r.brushOption).updateCovers(r.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(r){var n=this.model.id,i=this.model.brushTargetManager.setOutputRanges(r.areas,this.ecModel);(!r.isEnd||r.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:No(i),$from:n}),r.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:No(i),$from:n})},t.type="brush",t}(xA),CDr="#ddd",IDr=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.areas=[],r.brushOption={},r}return t.prototype.optionUpdated=function(r,n){var i=this.option;!n&&Wbt(i,r,["inBrush","outOfBrush"]);var a=i.inBrush=i.inBrush||{};i.outOfBrush=i.outOfBrush||{color:CDr},a.hasOwnProperty("liftZ")||(a.liftZ=5)},t.prototype.setAreas=function(r){r&&(this.areas=Ti(r,function(n){return vWe(this.option,n)},this))},t.prototype.setBrushOption=function(r){this.brushOption=vWe(this.option,r),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.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},t}(dl);function vWe(e,t){return ys({brushType:e.brushType,brushMode:e.brushMode,transformable:e.transformable,brushStyle:new Du(e.brushStyle).getItemStyle(),removeOnClick:e.removeOnClick,z:e.z},t,!0)}var EDr=["rect","polygon","lineX","lineY","keep","clear"],BDr=function(e){Wn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.render=function(r,n,i){var a,o,s;n.eachComponent({mainType:"brush"},function(l){a=l.brushType,o=l.brushOption.brushMode||"single",s=s||!!l.areas.length}),this._brushType=a,this._brushMode=o,Mt(r.get("type",!0),function(l){r.setIconStatus(l,(l==="keep"?o==="multiple":l==="clear"?s:l===a)?"emphasis":"normal")})},t.prototype.updateView=function(r,n,i){this.render(r,n,i)},t.prototype.getIcons=function(){var r=this.model,n=r.get("icon",!0),i={};return Mt(r.get("type",!0),function(a){n[a]&&(i[a]=n[a])}),i},t.prototype.onclick=function(r,n,i){var a=this._brushType,o=this._brushMode;i==="clear"?(n.dispatchAction({type:"axisAreaSelect",intervals:[]}),n.dispatchAction({type:"brush",command:"clear",areas:[]})):n.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:i==="keep"?a:a===i?!1:i,brushMode:i==="keep"?o==="multiple"?"single":"multiple":o}})},t.getDefaultOption=function(r){var n={show:!0,type:EDr.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:r.getLocaleModel().get(["toolbox","brush","title"])};return n},t}(my);function xDr(e){e.registerComponentView(wDr),e.registerComponentModel(IDr),e.registerPreprocessor(ADr),e.registerVisual(e.PRIORITY.VISUAL.BRUSH,pDr),e.registerAction({type:"brush",event:"brush",update:"updateVisual"},function(t,r){r.eachComponent({mainType:"brush",query:t},function(n){n.setAreas(t.areas)})}),e.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},Xf),e.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},Xf),G8("brush",BDr)}var SDr=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode={type:"box",ignoreSize:!0},r}return t.type="title",t.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"}},t}(dl),kDr=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.render=function(r,n,i){if(this.group.removeAll(),!!r.get("show")){var a=this.group,o=r.getModel("textStyle"),s=r.getModel("subtextStyle"),l=r.get("textAlign"),u=ts(r.get("textBaseline"),r.get("textVerticalAlign")),c=new zl({style:Nc(o,{text:r.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),A=c.getBoundingRect(),f=r.get("subtext"),h=new zl({style:Nc(s,{text:f,fill:s.getTextColor(),y:A.height+r.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),g=r.get("link"),p=r.get("sublink"),m=r.get("triggerEvent",!0);c.silent=!g&&!m,h.silent=!p&&!m,g&&c.on("click",function(){TY(g,"_"+r.get("target"))}),p&&h.on("click",function(){TY(p,"_"+r.get("subtarget"))}),Vo(c).eventData=Vo(h).eventData=m?{componentType:"title",componentIndex:r.componentIndex}:null,a.add(c),f&&a.add(h);var b=a.getBoundingRect(),C=r.getBoxLayoutParams();C.width=b.width,C.height=b.height;var E=fd(C,{width:i.getWidth(),height:i.getHeight()},r.get("padding"));l||(l=r.get("left")||r.get("right"),l==="middle"&&(l="center"),l==="right"?E.x+=E.width:l==="center"&&(E.x+=E.width/2)),u||(u=r.get("top")||r.get("bottom"),u==="center"&&(u="middle"),u==="bottom"?E.y+=E.height:u==="middle"&&(E.y+=E.height/2),u=u||"top"),a.x=E.x,a.y=E.y,a.markRedraw();var _={align:l,verticalAlign:u};c.setStyle(_),h.setStyle(_),b=a.getBoundingRect();var F=E.margin,M=r.getItemStyle(["color","opacity"]);M.fill=r.get("backgroundColor");var N=new Ol({shape:{x:b.x-F[3],y:b.y-F[0],width:b.width+F[1]+F[3],height:b.height+F[0]+F[2],r:r.get("borderRadius")},style:M,subPixelOptimize:!0,silent:!0});a.add(N)}},t.type="title",t}(xA);function QDr(e){e.registerComponentModel(SDr),e.registerComponentView(kDr)}var mWe=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.layoutMode="box",r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i),this._initData()},t.prototype.mergeOption=function(r){e.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(r){r==null&&(r=this.option.currentIndex);var n=this._data.count();this.option.loop?r=(r%n+n)%n:(r>=n&&(r=n-1),r<0&&(r=0)),this.option.currentIndex=r},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(r){this.option.autoPlay=!!r},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var r=this.option,n=r.data||[],i=r.axisType,a=this._names=[],o;i==="category"?(o=[],Mt(n,function(u,c){var A=ld(AT(u),""),f;Mo(u)?(f=No(u),f.value=c):f=c,o.push(f),a.push(A)})):o=n;var s={category:"ordinal",time:"time",value:"number"}[i]||"number",l=this._data=new W0([{name:"value",type:s}],this);l.initData(o,a)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if(this.get("axisType")==="category")return this._names.slice()},t.type="timeline",t.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:[]},t}(dl),qbt=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline.slider",t.defaultOption=eS(mWe.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:[]}),t}(mWe);Th(qbt,YZ.prototype);var _Dr=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="timeline",t}(xA),TDr=function(e){Wn(t,e);function t(r,n,i,a){var o=e.call(this,r,n,i)||this;return o.type=a||"value",o}return t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return this.model.get("orient")==="horizontal"},t}(y2),Ege=Math.PI,yWe=Nl(),DDr=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(r,n){this.api=n},t.prototype.render=function(r,n,i){if(this.model=r,this.api=i,this.ecModel=n,this.group.removeAll(),r.get("show",!0)){var a=this._layout(r,i),o=this._createGroup("_mainGroup"),s=this._createGroup("_labelGroup"),l=this._axis=this._createAxis(a,r);r.formatTooltip=function(u){var c=l.scale.getLabel({value:u});return Wd("nameValue",{noName:!0,value:c})},Mt(["AxisLine","AxisTick","Control","CurrentPointer"],function(u){this["_render"+u](a,o,l,r)},this),this._renderAxisLabel(a,s,l,r),this._position(a,r)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(r,n){var i=r.get(["label","position"]),a=r.get("orient"),o=RDr(r,n),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:Ege/2},A=a==="vertical"?o.height:o.width,f=r.getModel("controlStyle"),h=f.get("show",!0),g=h?f.get("itemSize"):0,p=h?f.get("itemGap"):0,m=g+p,b=r.get(["label","rotate"])||0;b=b*Ege/180;var C,E,_,F=f.get("position",!0),M=h&&f.get("showPlayBtn",!0),N=h&&f.get("showPrevBtn",!0),P=h&&f.get("showNextBtn",!0),j=0,z=A;F==="left"||F==="bottom"?(M&&(C=[0,0],j+=m),N&&(E=[j,0],j+=m),P&&(_=[z-g,0],z-=m)):(M&&(C=[z-g,0],z-=m),N&&(E=[0,0],j+=m),P&&(_=[z-g,0],z-=m));var W=[j,z];return r.get("inverse")&&W.reverse(),{viewRect:o,mainLength:A,orient:a,rotation:c[a],labelRotation:b,labelPosOpt:s,labelAlign:r.get(["label","align"])||l[a],labelBaseline:r.get(["label","verticalAlign"])||r.get(["label","baseline"])||u[a],playPosition:C,prevBtnPosition:E,nextBtnPosition:_,axisExtent:W,controlSize:g,controlGap:p}},t.prototype._position=function(r,n){var i=this._mainGroup,a=this._labelGroup,o=r.viewRect;if(r.orient==="vertical"){var s=s1(),l=o.x,u=o.y+o.height;bC(s,s,[-l,-u]),gQ(s,s,-Ege/2),bC(s,s,[l,u]),o=o.clone(),o.applyTransform(s)}var c=C(o),A=C(i.getBoundingRect()),f=C(a.getBoundingRect()),h=[i.x,i.y],g=[a.x,a.y];g[0]=h[0]=c[0][0];var p=r.labelPosOpt;if(p==null||Oa(p)){var m=p==="+"?0:1;E(h,A,c,1,m),E(g,f,c,1,1-m)}else{var m=p>=0?0:1;E(h,A,c,1,m),g[1]=h[1]+p}i.setPosition(h),a.setPosition(g),i.rotation=a.rotation=r.rotation,b(i),b(a);function b(_){_.originX=c[0][0]-_.x,_.originY=c[1][0]-_.y}function C(_){return[[_.x,_.x+_.width],[_.y,_.y+_.height]]}function E(_,F,M,N,P){_[N]+=M[N][P]-F[N][P]}},t.prototype._createAxis=function(r,n){var i=n.getData(),a=n.get("axisType"),o=FDr(n,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 TDr("value",o,r.axisExtent,a);return l.model=n,l},t.prototype._createGroup=function(r){var n=this[r]=new $o;return this.group.add(n),n},t.prototype._renderAxisLine=function(r,n,i,a){var o=i.getExtent();if(a.get(["lineStyle","show"])){var s=new Hd({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:si({lineCap:"round"},a.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});n.add(s);var l=this._progressLine=new Hd({shape:{x1:o[0],x2:this._currentPointer?this._currentPointer.x:o[0],y1:0,y2:0},style:Qo({lineCap:"round",lineWidth:s.style.lineWidth},a.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});n.add(l)}},t.prototype._renderAxisTick=function(r,n,i,a){var o=this,s=a.getData(),l=i.scale.getTicks();this._tickSymbols=[],Mt(l,function(u){var c=i.dataToCoord(u.value),A=s.getItemModel(u.value),f=A.getModel("itemStyle"),h=A.getModel(["emphasis","itemStyle"]),g=A.getModel(["progress","itemStyle"]),p={x:c,y:0,onclick:Ga(o._changeTimeline,o,u.value)},m=bWe(A,f,n,p);m.ensureState("emphasis").style=h.getItemStyle(),m.ensureState("progress").style=g.getItemStyle(),r6(m);var b=Vo(m);A.get("tooltip")?(b.dataIndex=u.value,b.dataModel=a):b.dataIndex=b.dataModel=null,o._tickSymbols.push(m)})},t.prototype._renderAxisLabel=function(r,n,i,a){var o=this,s=i.getLabelModel();if(s.get("show")){var l=a.getData(),u=i.getViewLabels();this._tickLabels=[],Mt(u,function(c){var A=c.tickValue,f=l.getItemModel(A),h=f.getModel("label"),g=f.getModel(["emphasis","label"]),p=f.getModel(["progress","label"]),m=i.dataToCoord(c.tickValue),b=new zl({x:m,y:0,rotation:r.labelRotation-r.rotation,onclick:Ga(o._changeTimeline,o,A),silent:!1,style:Nc(h,{text:c.formattedLabel,align:r.labelAlign,verticalAlign:r.labelBaseline})});b.ensureState("emphasis").style=Nc(g),b.ensureState("progress").style=Nc(p),n.add(b),r6(b),yWe(b).dataIndex=A,o._tickLabels.push(b)})}},t.prototype._renderControl=function(r,n,i,a){var o=r.controlSize,s=r.rotation,l=a.getModel("controlStyle").getItemStyle(),u=a.getModel(["emphasis","controlStyle"]).getItemStyle(),c=a.getPlayState(),A=a.get("inverse",!0);f(r.nextBtnPosition,"next",Ga(this._changeTimeline,this,A?"-":"+")),f(r.prevBtnPosition,"prev",Ga(this._changeTimeline,this,A?"+":"-")),f(r.playPosition,c?"stop":"play",Ga(this._handlePlayClick,this,!c),!0);function f(h,g,p,m){if(h){var b=l2(ts(a.get(["controlStyle",g+"BtnSize"]),o),o),C=[0,-b/2,b,b],E=MDr(a,g+"Icon",C,{x:h[0],y:h[1],originX:o/2,originY:0,rotation:m?-s:0,rectHover:!0,style:l,onclick:p});E.ensureState("emphasis").style=u,n.add(E),r6(E)}}},t.prototype._renderCurrentPointer=function(r,n,i,a){var o=a.getData(),s=a.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(A){A.draggable=!0,A.drift=Ga(u._handlePointerDrag,u),A.ondragend=Ga(u._handlePointerDragend,u),wWe(A,u._progressLine,s,i,a,!0)},onUpdate:function(A){wWe(A,u._progressLine,s,i,a)}};this._currentPointer=bWe(l,l,this._mainGroup,{},this._currentPointer,c)},t.prototype._handlePlayClick=function(r){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:r,from:this.uid})},t.prototype._handlePointerDrag=function(r,n,i){this._clearTimer(),this._pointerChangeTimeline([i.offsetX,i.offsetY])},t.prototype._handlePointerDragend=function(r){this._pointerChangeTimeline([r.offsetX,r.offsetY],!0)},t.prototype._pointerChangeTimeline=function(r,n){var i=this._toAxisCoord(r)[0],a=this._axis,o=Cy(a.getExtent().slice());i>o[1]&&(i=o[1]),i=0&&(o[a]=+o[a].toFixed(f)),[o,A]}var Bge={min:us(uz,"min"),max:us(uz,"max"),average:us(uz,"average"),median:us(uz,"median")};function zN(e,t){if(t){var r=e.getData(),n=e.coordinateSystem,i=n&&n.dimensions;if(!HDr(t)&&!Bi(t.coord)&&Bi(i)){var a=Jbt(t,r,n,e);if(t=No(t),t.type&&Bge[t.type]&&a.baseAxis&&a.valueAxis){var o=Rs(i,a.baseAxis.dim),s=Rs(i,a.valueAxis.dim),l=Bge[t.type](r,a.baseDataDim,a.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!Bi(i))t.coord=[];else for(var u=t.coord,c=0;c<2;c++)Bge[u[c]]&&(u[c]=i4e(r,r.mapDimension(i[c]),u[c]));return t}}function Jbt(e,t,r,n){var i={};return e.valueIndex!=null||e.valueDim!=null?(i.valueDataDim=e.valueIndex!=null?t.getDimension(e.valueIndex):e.valueDim,i.valueAxis=r.getAxis(jDr(n,i.valueDataDim)),i.baseAxis=r.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=n.getBaseAxis(),i.valueAxis=r.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function jDr(e,t){var r=e.getData().getDimensionInfo(t);return r&&r.coordDim}function KN(e,t){return e&&e.containData&&t.coord&&!fCe(t)?e.containData(t.coord):!0}function GDr(e,t,r){return e&&e.containZone&&t.coord&&r.coord&&!fCe(t)&&!fCe(r)?e.containZone(t.coord,r.coord):!0}function Xbt(e,t){return e?function(r,n,i,a){var o=a<2?r.coord&&r.coord[a]:r.value;return a5(o,t[a])}:function(r,n,i,a){return a5(r.value,t[a])}}function i4e(e,t,r){if(r==="average"){var n=0,i=0;return e.each(t,function(a,o){isNaN(a)||(n+=a,i++)}),n/i}else return r==="median"?e.getMedian(t):e.getDataExtent(t)[r==="max"?1:0]}var xge=Nl(),a4e=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.init=function(){this.markerGroupMap=ao()},t.prototype.render=function(r,n,i){var a=this,o=this.markerGroupMap;o.each(function(s){xge(s).keep=!1}),n.eachSeries(function(s){var l=AB.getMarkerModelFromSeries(s,a.type);l&&a.renderSeries(s,l,n,i)}),o.each(function(s){!xge(s).keep&&a.group.remove(s.group)})},t.prototype.markKeep=function(r){xge(r).keep=!0},t.prototype.toggleBlurSeries=function(r,n){var i=this;Mt(r,function(a){var o=AB.getMarkerModelFromSeries(a,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(n?z0t(l):E5e(l))})}})},t.type="marker",t}(xA);function IWe(e,t,r){var n=t.coordinateSystem;e.each(function(i){var a=e.getItemModel(i),o,s=Ba(a.get("x"),r.getWidth()),l=Ba(a.get("y"),r.getHeight());if(!isNaN(s)&&!isNaN(l))o=[s,l];else if(t.getMarkerPosition)o=t.getMarkerPosition(e.getValues(e.dimensions,i));else if(n){var u=e.get(n.dimensions[0],i),c=e.get(n.dimensions[1],i);o=n.dataToPoint([u,c])}isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),e.setItemLayout(i,o)})}var $Dr=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=AB.getMarkerModelFromSeries(a,"markPoint");o&&(IWe(o.getData(),a,i),this.markerGroupMap.get(a.id).updateLayout())},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new pP),A=zDr(o,r,n);n.setData(A),IWe(n.getData(),r,a),A.each(function(f){var h=A.getItemModel(f),g=h.getShallow("symbol"),p=h.getShallow("symbolSize"),m=h.getShallow("symbolRotate"),b=h.getShallow("symbolOffset"),C=h.getShallow("symbolKeepAspect");if(Bo(g)||Bo(p)||Bo(m)||Bo(b)){var E=n.getRawValue(f),_=n.getDataParams(f);Bo(g)&&(g=g(E,_)),Bo(p)&&(p=p(E,_)),Bo(m)&&(m=m(E,_)),Bo(b)&&(b=b(E,_))}var F=h.getModel("itemStyle").getItemStyle(),M=fP(l,"color");F.fill||(F.fill=M),A.setItemVisual(f,{symbol:g,symbolSize:p,symbolRotate:m,symbolOffset:b,symbolKeepAspect:C,style:F})}),c.updateData(A),this.group.add(c.group),A.eachItemGraphicEl(function(f){f.traverse(function(h){Vo(h).dataModel=n})}),this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markPoint",t}(a4e);function zDr(e,t,r){var n;e?n=Ti(e&&e.dimensions,function(s){var l=t.getData().getDimensionInfo(t.getData().mapDimension(s))||{};return si(si({},l),{name:s,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new W0(n,r),a=Ti(r.get("data"),us(zN,t));e&&(a=Cu(a,us(KN,e)));var o=Xbt(!!e,n);return i.initData(a,null,o),i}function KDr(e){e.registerComponentModel(UDr),e.registerComponentView($Dr),e.registerPreprocessor(function(t){n4e(t.series,"markPoint")&&(t.markPoint=t.markPoint||{})})}var VDr=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,i){return new t(r,n,i)},t.type="markLine",t.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"},t}(AB),cz=Nl(),WDr=function(e,t,r,n){var i=e.getData(),a;if(Bi(n))a=n;else{var o=n.type;if(o==="min"||o==="max"||o==="average"||o==="median"||n.xAxis!=null||n.yAxis!=null){var s=void 0,l=void 0;if(n.yAxis!=null||n.xAxis!=null)s=t.getAxis(n.yAxis!=null?"y":"x"),l=bg(n.yAxis,n.xAxis);else{var u=Jbt(n,i,t,e);s=u.valueAxis;var c=$mt(i,u.valueDataDim);l=i4e(i,c,o)}var A=s.dim==="x"?0:1,f=1-A,h=No(n),g={coord:[]};h.type=null,h.coord=[],h.coord[f]=-1/0,g.coord[f]=1/0;var p=r.get("precision");p>=0&&Xl(l)&&(l=+l.toFixed(Math.min(p,20))),h.coord[A]=g.coord[A]=l,a=[h,g,{type:o,valueIndex:n.valueIndex,value:l}]}else a=[]}var m=[zN(e,a[0]),zN(e,a[1]),si({},a[2])];return m[2].type=m[2].type||null,ys(m[2],m[0]),ys(m[2],m[1]),m};function nq(e){return!isNaN(e)&&!isFinite(e)}function EWe(e,t,r,n){var i=1-e,a=n.dimensions[e];return nq(t[i])&&nq(r[i])&&t[e]===r[e]&&n.getAxis(a).containData(t[e])}function YDr(e,t){if(e.type==="cartesian2d"){var r=t[0].coord,n=t[1].coord;if(r&&n&&(EWe(1,r,n,e)||EWe(0,r,n,e)))return!0}return KN(e,t[0])&&KN(e,t[1])}function Sge(e,t,r,n,i){var a=n.coordinateSystem,o=e.getItemModel(t),s,l=Ba(o.get("x"),i.getWidth()),u=Ba(o.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition)s=n.getMarkerPosition(e.getValues(e.dimensions,t));else{var c=a.dimensions,A=e.get(c[0],t),f=e.get(c[1],t);s=a.dataToPoint([A,f])}if(bQ(a,"cartesian2d")){var h=a.getAxis("x"),g=a.getAxis("y"),c=a.dimensions;nq(e.get(c[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[r?0:1]):nq(e.get(c[1],t))&&(s[1]=g.toGlobalCoord(g.getExtent()[r?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}e.setItemLayout(t,s)}var qDr=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=AB.getMarkerModelFromSeries(a,"markLine");if(o){var s=o.getData(),l=cz(o).from,u=cz(o).to;l.each(function(c){Sge(l,c,!0,a,i),Sge(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)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new xSe);this.group.add(c.group);var A=JDr(o,r,n),f=A.from,h=A.to,g=A.line;cz(n).from=f,cz(n).to=h,n.setData(g);var p=n.get("symbol"),m=n.get("symbolSize"),b=n.get("symbolRotate"),C=n.get("symbolOffset");Bi(p)||(p=[p,p]),Bi(m)||(m=[m,m]),Bi(b)||(b=[b,b]),Bi(C)||(C=[C,C]),A.from.each(function(_){E(f,_,!0),E(h,_,!1)}),g.each(function(_){var F=g.getItemModel(_).getModel("lineStyle").getLineStyle();g.setItemLayout(_,[f.getItemLayout(_),h.getItemLayout(_)]),F.stroke==null&&(F.stroke=f.getItemVisual(_,"style").fill),g.setItemVisual(_,{fromSymbolKeepAspect:f.getItemVisual(_,"symbolKeepAspect"),fromSymbolOffset:f.getItemVisual(_,"symbolOffset"),fromSymbolRotate:f.getItemVisual(_,"symbolRotate"),fromSymbolSize:f.getItemVisual(_,"symbolSize"),fromSymbol:f.getItemVisual(_,"symbol"),toSymbolKeepAspect:h.getItemVisual(_,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(_,"symbolOffset"),toSymbolRotate:h.getItemVisual(_,"symbolRotate"),toSymbolSize:h.getItemVisual(_,"symbolSize"),toSymbol:h.getItemVisual(_,"symbol"),style:F})}),c.updateData(g),A.line.eachItemGraphicEl(function(_){Vo(_).dataModel=n,_.traverse(function(F){Vo(F).dataModel=n})});function E(_,F,M){var N=_.getItemModel(F);Sge(_,F,M,r,a);var P=N.getModel("itemStyle").getItemStyle();P.fill==null&&(P.fill=fP(l,"color")),_.setItemVisual(F,{symbolKeepAspect:N.get("symbolKeepAspect"),symbolOffset:ts(N.get("symbolOffset",!0),C[M?0:1]),symbolRotate:ts(N.get("symbolRotate",!0),b[M?0:1]),symbolSize:ts(N.get("symbolSize"),m[M?0:1]),symbol:ts(N.get("symbol",!0),p[M?0:1]),style:P})}this.markKeep(c),c.group.silent=n.get("silent")||r.get("silent")},t.type="markLine",t}(a4e);function JDr(e,t,r){var n;e?n=Ti(e&&e.dimensions,function(u){var c=t.getData().getDimensionInfo(t.getData().mapDimension(u))||{};return si(si({},c),{name:u,ordinalMeta:null})}):n=[{name:"value",type:"float"}];var i=new W0(n,r),a=new W0(n,r),o=new W0([],r),s=Ti(r.get("data"),us(WDr,t,e,r));e&&(s=Cu(s,us(YDr,e)));var l=Xbt(!!e,n);return i.initData(Ti(s,function(u){return u[0]}),null,l),a.initData(Ti(s,function(u){return u[1]}),null,l),o.initData(Ti(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:a,line:o}}function XDr(e){e.registerComponentModel(VDr),e.registerComponentView(qDr),e.registerPreprocessor(function(t){n4e(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var ZDr=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.createMarkerModelFromSeries=function(r,n,i){return new t(r,n,i)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(AB),Az=Nl(),eFr=function(e,t,r,n){var i=n[0],a=n[1];if(!(!i||!a)){var o=zN(e,i),s=zN(e,a),l=o.coord,u=s.coord;l[0]=bg(l[0],-1/0),l[1]=bg(l[1],-1/0),u[0]=bg(u[0],1/0),u[1]=bg(u[1],1/0);var c=o5e([{},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 iq(e){return!isNaN(e)&&!isFinite(e)}function BWe(e,t,r,n){var i=1-e;return iq(t[i])&&iq(r[i])}function tFr(e,t){var r=t.coord[0],n=t.coord[1],i={coord:r,x:t.x0,y:t.y0},a={coord:n,x:t.x1,y:t.y1};return bQ(e,"cartesian2d")?r&&n&&(BWe(1,r,n)||BWe(0,r,n))?!0:GDr(e,i,a):KN(e,i)||KN(e,a)}function xWe(e,t,r,n,i){var a=n.coordinateSystem,o=e.getItemModel(t),s,l=Ba(o.get(r[0]),i.getWidth()),u=Ba(o.get(r[1]),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(n.getMarkerPosition){var c=e.getValues(["x0","y0"],t),A=e.getValues(["x1","y1"],t),f=a.clampData(c),h=a.clampData(A),g=[];r[0]==="x0"?g[0]=f[0]>h[0]?A[0]:c[0]:g[0]=f[0]>h[0]?c[0]:A[0],r[1]==="y0"?g[1]=f[1]>h[1]?A[1]:c[1]:g[1]=f[1]>h[1]?c[1]:A[1],s=n.getMarkerPosition(g,r,!0)}else{var p=e.get(r[0],t),m=e.get(r[1],t),b=[p,m];a.clampData&&a.clampData(b,b),s=a.dataToPoint(b,!0)}if(bQ(a,"cartesian2d")){var C=a.getAxis("x"),E=a.getAxis("y"),p=e.get(r[0],t),m=e.get(r[1],t);iq(p)?s[0]=C.toGlobalCoord(C.getExtent()[r[0]==="x0"?0:1]):iq(m)&&(s[1]=E.toGlobalCoord(E.getExtent()[r[1]==="y0"?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}return s}var SWe=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],rFr=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.updateTransform=function(r,n,i){n.eachSeries(function(a){var o=AB.getMarkerModelFromSeries(a,"markArea");if(o){var s=o.getData();s.each(function(l){var u=Ti(SWe,function(A){return xWe(s,l,A,a,i)});s.setItemLayout(l,u);var c=s.getItemGraphicEl(l);c.setShape("points",u)})}},this)},t.prototype.renderSeries=function(r,n,i,a){var o=r.coordinateSystem,s=r.id,l=r.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,{group:new $o});this.group.add(c.group),this.markKeep(c);var A=nFr(o,r,n);n.setData(A),A.each(function(f){var h=Ti(SWe,function(P){return xWe(A,f,P,r,a)}),g=o.getAxis("x").scale,p=o.getAxis("y").scale,m=g.getExtent(),b=p.getExtent(),C=[g.parse(A.get("x0",f)),g.parse(A.get("x1",f))],E=[p.parse(A.get("y0",f)),p.parse(A.get("y1",f))];Cy(C),Cy(E);var _=!(m[0]>C[1]||m[1]E[1]||b[1]=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t}(dl),h8=us,dCe=Mt,fz=$o,Zbt=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.newlineDisabled=!1,r}return t.prototype.init=function(){this.group.add(this._contentGroup=new fz),this.group.add(this._selectorGroup=new fz),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(r,n,i){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!r.get("show",!0)){var o=r.get("align"),s=r.get("orient");(!o||o==="auto")&&(o=r.get("left")==="right"&&s==="vertical"?"right":"left");var l=r.get("selector",!0),u=r.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,r,n,i,l,s,u);var c=r.getBoxLayoutParams(),A={width:i.getWidth(),height:i.getHeight()},f=r.get("padding"),h=fd(c,A,f),g=this.layoutInner(r,o,h,a,l,u),p=fd(Qo({width:g.width,height:g.height},c),A,f);this.group.x=p.x-g.x,this.group.y=p.y-g.y,this.group.markRedraw(),this.group.add(this._backgroundEl=Hbt(g,r))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(r,n,i,a,o,s,l){var u=this.getContentGroup(),c=ao(),A=n.get("selectedMode"),f=[];i.eachRawSeries(function(h){!h.get("legendHoverLink")&&f.push(h.id)}),dCe(n.getData(),function(h,g){var p=h.get("name");if(!this.newlineDisabled&&(p===""||p===` `)){var m=new fz;m.newline=!0,u.add(m);return}var b=i.getSeriesByName(p)[0];if(!c.get(p))if(b){var C=b.getData(),E=C.getVisual("legendLineStyle")||{},_=C.getVisual("legendIcon"),F=C.getVisual("style"),M=this._createItem(b,p,g,h,n,r,E,F,_,A,a);M.on("click",h8(kWe,p,null,a,f)).on("mouseover",h8(gCe,b.name,null,a,f)).on("mouseout",h8(pCe,b.name,null,a,f)),i.ssr&&M.eachChild(function(N){var P=Vo(N);P.seriesIndex=b.seriesIndex,P.dataIndex=g,P.ssrType="legend"}),c.set(p,!0)}else i.eachRawSeries(function(N){if(!c.get(p)&&N.legendVisualProvider){var P=N.legendVisualProvider;if(!P.containName(p))return;var j=P.indexOfName(p),z=P.getItemVisual(j,"style"),W=P.getItemVisual(j,"legendIcon"),Y=l1(z.fill);Y&&Y[3]===0&&(Y[3]=.2,z=si(si({},z),{fill:PE(Y,"rgba")}));var ee=this._createItem(N,p,g,h,n,r,{},z,W,A,a);ee.on("click",h8(kWe,null,p,a,f)).on("mouseover",h8(gCe,null,p,a,f)).on("mouseout",h8(pCe,null,p,a,f)),i.ssr&&ee.eachChild(function(q){var ae=Vo(q);ae.seriesIndex=N.seriesIndex,ae.dataIndex=g,ae.ssrType="legend"}),c.set(p,!0)}},this)},this),o&&this._createSelector(o,n,a,s,l)},t.prototype._createSelector=function(r,n,i,a,o){var s=this.getSelectorGroup();dCe(r,function(u){var c=u.type,A=new zl({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(A);var f=n.getModel("selectorLabel"),h=n.getModel(["emphasis","selectorLabel"]);up(A,{normal:f,emphasis:h},{defaultText:u.title}),r6(A)})},t.prototype._createItem=function(r,n,i,a,o,s,l,u,c,A,f){var h=r.visualDrawType,g=o.get("itemWidth"),p=o.get("itemHeight"),m=o.isSelected(n),b=a.get("symbolRotate"),C=a.get("symbolKeepAspect"),E=a.get("icon");c=E||c||"roundRect";var _=oFr(c,a,l,u,h,m,f),F=new fz,M=a.getModel("textStyle");if(Bo(r.getLegendIcon)&&(!E||E==="inherit"))F.add(r.getLegendIcon({itemWidth:g,itemHeight:p,icon:c,iconRotate:b,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:C}));else{var N=E==="inherit"&&r.getData().getVisual("symbol")?b==="inherit"?r.getData().getVisual("symbolRotate"):b:0;F.add(sFr({itemWidth:g,itemHeight:p,icon:c,iconRotate:N,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:C}))}var P=s==="left"?g+5:-5,j=s,z=o.get("formatter"),W=n;Oa(z)&&z?W=z.replace("{name}",n??""):Bo(z)&&(W=z(n));var Y=m?M.getTextColor():a.get("inactiveColor");F.add(new zl({style:Nc(M,{text:W,x:P,y:p/2,fill:Y,align:j,verticalAlign:"middle"},{inheritColor:Y})}));var ee=new Ol({shape:F.getBoundingRect(),style:{fill:"transparent"}}),q=a.getModel("tooltip");return q.get("show")&&pQ({el:ee,componentModel:o,itemName:n,itemTooltipOption:q.option}),F.add(ee),F.eachChild(function(ae){ae.silent=!0}),ee.silent=!A,this.getContentGroup().add(F),r6(F),F.__legendDataIndex=i,F},t.prototype.layoutInner=function(r,n,i,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();i6(r.get("orient"),l,r.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),A=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){i6("horizontal",u,r.get("selectorItemGap",!0));var f=u.getBoundingRect(),h=[-f.x,-f.y],g=r.get("selectorButtonGap",!0),p=r.getOrient().index,m=p===0?"width":"height",b=p===0?"height":"width",C=p===0?"y":"x";s==="end"?h[p]+=c[m]+g:A[p]+=f[m]+g,h[1-p]+=c[b]/2-f[b]/2,u.x=h[0],u.y=h[1],l.x=A[0],l.y=A[1];var E={x:0,y:0};return E[m]=c[m]+g+f[m],E[b]=Math.max(c[b],f[b]),E[C]=Math.min(0,f[C]+h[1-p]),E}else return l.x=A[0],l.y=A[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(xA);function oFr(e,t,r,n,i,a,o){function s(m,b){m.lineWidth==="auto"&&(m.lineWidth=b.lineWidth>0?2:0),dCe(m,function(C,E){m[E]==="inherit"&&(m[E]=b[E])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=e.lastIndexOf("empty",0)===0?"fill":"stroke",A=l.getShallow("decal");u.decal=!A||A==="inherit"?n.decal:h7(A,o),u.fill==="inherit"&&(u.fill=n[i]),u.stroke==="inherit"&&(u.stroke=n[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?n:r).opacity),s(u,n);var f=t.getModel("lineStyle"),h=f.getLineStyle();if(s(h,r),u.fill==="auto"&&(u.fill=n.fill),u.stroke==="auto"&&(u.stroke=n.fill),h.stroke==="auto"&&(h.stroke=n.fill),!a){var g=t.get("inactiveBorderWidth"),p=u[c];u.lineWidth=g==="auto"?n.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=f.get("inactiveColor"),h.lineWidth=f.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function sFr(e){var t=e.icon||"roundRect",r=_h(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return r.setStyle(e.itemStyle),r.rotation=(e.iconRotate||0)*Math.PI/180,r.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(r.style.stroke=r.style.fill,r.style.fill="#fff",r.style.lineWidth=2),r}function kWe(e,t,r,n){pCe(e,t,r,n),r.dispatchAction({type:"legendToggleSelect",name:e??t}),gCe(e,t,r,n)}function e2t(e){for(var t=e.getZr().storage.getDisplayList(),r,n=0,i=t.length;ni[o],m=[-h.x,-h.y];n||(m[a]=c[u]);var b=[0,0],C=[-g.x,-g.y],E=ts(r.get("pageButtonGap",!0),r.get("itemGap",!0));if(p){var _=r.get("pageButtonPosition",!0);_==="end"?C[a]+=i[o]-g[o]:b[a]+=g[o]+E}C[1-a]+=h[s]/2-g[s]/2,c.setPosition(m),A.setPosition(b),f.setPosition(C);var F={x:0,y:0};if(F[o]=p?i[o]:h[o],F[s]=Math.max(h[s],g[s]),F[l]=Math.min(0,g[l]+C[1-a]),A.__rectSize=i[o],p){var M={x:0,y:0};M[o]=Math.max(i[o]-g[o]-E,0),M[s]=F[s],A.setClipPath(new Ol({shape:M})),A.__rectSize=M[o]}else f.eachChild(function(P){P.attr({invisible:!0,silent:!0})});var N=this._getPageInfo(r);return N.pageIndex!=null&&su(c,{x:N.contentPosition[0],y:N.contentPosition[1]},p?r:null),this._updatePageInfoView(r,N),F},t.prototype._pageGo=function(r,n,i){var a=this._getPageInfo(n)[r];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(r,n){var i=this._controllerGroup;Mt(["pagePrev","pageNext"],function(c){var A=c+"DataIndex",f=n[A]!=null,h=i.childOfName(c);h&&(h.setStyle("fill",f?r.get("pageIconColor",!0):r.get("pageIconInactiveColor",!0)),h.cursor=f?"pointer":"default")});var a=i.childOfName("pageText"),o=r.get("pageFormatter"),s=n.pageIndex,l=s!=null?s+1:0,u=n.pageCount;a&&o&&a.setStyle("text",Oa(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(r){var n=r.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=r.getOrient().index,s=kge[o],l=Qge[o],u=this._findTargetItemIndex(n),c=i.children(),A=c[u],f=c.length,h=f?1:0,g={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!A)return g;var p=_(A);g.contentPosition[o]=-p.s;for(var m=u+1,b=p,C=p,E=null;m<=f;++m)E=_(c[m]),(!E&&C.e>b.s+a||E&&!F(E,b.s))&&(C.i>b.i?b=C:b=E,b&&(g.pageNextDataIndex==null&&(g.pageNextDataIndex=b.i),++g.pageCount)),C=E;for(var m=u-1,b=p,C=p,E=null;m>=-1;--m)E=_(c[m]),(!E||!F(C,E.s))&&b.i=N&&M.s<=N+a}},t.prototype._findTargetItemIndex=function(r){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var l=o.__legendDataIndex;a==null&&l!=null&&(a=s),l===r&&(n=s)}),n??a},t.type="legend.scroll",t}(Zbt);function fFr(e){e.registerAction("legendScroll","legendscroll",function(t,r){var n=t.scrollDataIndex;n!=null&&r.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function hFr(e){zs(t2t),e.registerComponentModel(cFr),e.registerComponentView(AFr),fFr(e)}function dFr(e){zs(t2t),zs(hFr)}var gFr=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.inside",t.defaultOption=eS($N.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}($N),o4e=Nl();function pFr(e,t,r){o4e(e).coordSysRecordMap.each(function(n){var i=n.dataZoomInfoMap.get(t.uid);i&&(i.getRange=r)})}function vFr(e,t){for(var r=o4e(e).coordSysRecordMap,n=r.keys(),i=0;in[r+t]&&(t=s),i=i&&o.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}function CFr(e){e.registerProcessor(e.PRIORITY.PROCESSOR.FILTER,function(t,r){var n=o4e(r),i=n.coordSysRecordMap||(n.coordSysRecordMap=ao());i.each(function(a){a.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(a){var o=Lbt(a);Mt(o.infoList,function(s){var l=s.model.uid,u=i.get(l)||i.set(l,mFr(r,s.model)),c=u.dataZoomInfoMap||(u.dataZoomInfoMap=ao());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){r2t(i,a);return}var c=wFr(l);o.enable(c.controlType,c.opt),o.setPointerChecker(a.containsPoint),bT(a,"dispatchAction",s.model.get("throttle",!0),"fixRate")})})}var IFr=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="dataZoom.inside",r}return t.prototype.render=function(r,n,i){if(e.prototype.render.apply(this,arguments),r.noTarget()){this._clear();return}this.range=r.getPercentRange(),pFr(i,r,{pan:Ga(_ge.pan,this),zoom:Ga(_ge.zoom,this),scrollMove:Ga(_ge.scrollMove,this)})},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){vFr(this.api,this.dataZoomModel),this.range=null},t.type="dataZoom.inside",t}(JSe),_ge={zoom:function(e,t,r,n){var i=this.range,a=i.slice(),o=e.axisModels[0];if(o){var s=Tge[t](null,[n.originX,n.originY],o,r,e),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/n.scale,0);a[0]=(a[0]-l)*u+l,a[1]=(a[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(CQ(0,a,[0,100],0,c.minSpan,c.maxSpan),this.range=a,i[0]!==a[0]||i[1]!==a[1])return a}},pan:DWe(function(e,t,r,n,i,a){var o=Tge[n]([a.oldX,a.oldY],[a.newX,a.newY],t,i,r);return o.signal*(e[1]-e[0])*o.pixel/o.pixelLength}),scrollMove:DWe(function(e,t,r,n,i,a){var o=Tge[n]([0,0],[a.scrollDelta,a.scrollDelta],t,i,r);return o.signal*(e[1]-e[0])*a.scrollDelta})};function DWe(e){return function(t,r,n,i){var a=this.range,o=a.slice(),s=t.axisModels[0];if(s){var l=e(o,s,t,r,n,i);if(CQ(l,o,[0,100],"all"),this.range=o,a[0]!==o[0]||a[1]!==o[1])return o}}}var Tge={grid:function(e,t,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem.getRect();return e=e||[0,0],a.dim==="x"?(o.pixel=t[0]-e[0],o.pixelLength=s.width,o.pixelStart=s.x,o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=s.height,o.pixelStart=s.y,o.signal=a.inverse?-1:1),o},polar:function(e,t,r,n,i){var a=r.axis,o={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return e=e?s.pointToCoord(e):[0,0],t=s.pointToCoord(t),r.mainType==="radiusAxis"?(o.pixel=t[0]-e[0],o.pixelLength=l[1]-l[0],o.pixelStart=l[0],o.signal=a.inverse?1:-1):(o.pixel=t[1]-e[1],o.pixelLength=u[1]-u[0],o.pixelStart=u[0],o.signal=a.inverse?-1:1),o},singleAxis:function(e,t,r,n,i){var a=r.axis,o=i.model.coordinateSystem.getRect(),s={};return e=e||[0,0],a.orient==="horizontal"?(s.pixel=t[0]-e[0],s.pixelLength=o.width,s.pixelStart=o.x,s.signal=a.inverse?1:-1):(s.pixel=t[1]-e[1],s.pixelLength=o.height,s.pixelStart=o.y,s.signal=a.inverse?-1:1),s}};function n2t(e){XSe(e),e.registerComponentModel(gFr),e.registerComponentView(IFr),CFr(e)}var EFr=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=eS($N.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:{handleLabel:{show:!0},handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),t}($N),IR=Ol,FWe=7,BFr=1,Dge=30,xFr=7,ER="horizontal",RWe="vertical",SFr=5,kFr=["line","bar","candlestick","scatter"],QFr={easing:"cubicOut",duration:100,delay:0},_Fr=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._displayables={},r}return t.prototype.init=function(r,n){this.api=n,this._onBrush=Ga(this._onBrush,this),this._onBrushEnd=Ga(this._onBrushEnd,this)},t.prototype.render=function(r,n,i,a){if(e.prototype.render.apply(this,arguments),bT(this,"_dispatchZoomAction",r.get("throttle"),"fixRate"),this._orient=r.getOrient(),r.get("show")===!1){this.group.removeAll();return}if(r.noTarget()){this._clear(),this.group.removeAll();return}(!a||a.type!=="dataZoom"||a.from!==this.uid)&&this._buildView(),this._updateView()},t.prototype.dispose=function(){this._clear(),e.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){TN(this,"_dispatchZoomAction");var r=this.api.getZr();r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var r=this.group;r.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var n=this._displayables.sliderGroup=new $o;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),r.add(n),this._positionGroup()},t.prototype._resetLocation=function(){var r=this.dataZoomModel,n=this.api,i=r.get("brushSelect"),a=i?xFr:0,o=this._findCoordRect(),s={width:n.getWidth(),height:n.getHeight()},l=this._orient===ER?{right:s.width-o.x-o.width,top:s.height-Dge-FWe-a,width:o.width,height:Dge}:{right:FWe,top:o.y,width:Dge,height:o.height},u=vT(r.option);Mt(["right","top","width","height"],function(A){u[A]==="ph"&&(u[A]=l[A])});var c=fd(u,s);this._location={x:c.x,y:c.y},this._size=[c.width,c.height],this._orient===RWe&&this._size.reverse()},t.prototype._positionGroup=function(){var r=this.group,n=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===ER&&!o?{scaleY:l?1:-1,scaleX:1}:i===ER&&o?{scaleY:l?1:-1,scaleX:-1}:i===RWe&&!o?{scaleY:l?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:l?-1:1,scaleX:-1,rotation:Math.PI/2});var u=r.getBoundingRect([s]);r.x=n.x-u.x,r.y=n.y-u.y,r.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var r=this.dataZoomModel,n=this._size,i=this._displayables.sliderGroup,a=r.get("brushSelect");i.add(new IR({silent:!0,shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:r.get("backgroundColor")},z2:-40}));var o=new IR({shape:{x:0,y:0,width:n[0],height:n[1]},style:{fill:"transparent"},z2:0,onclick:Ga(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)},t.prototype._renderDataShadow=function(){var r=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],!r)return;var n=this._size,i=this._shadowSize||[],a=r.series,o=a.getRawData(),s=a.getShadowDim&&a.getShadowDim(),l=s&&o.getDimensionInfo(s)?a.getShadowDim():r.otherDim;if(l==null)return;var u=this._shadowPolygonPts,c=this._shadowPolylinePts;if(o!==this._shadowData||l!==this._shadowDim||n[0]!==i[0]||n[1]!==i[1]){var A=o.getDataExtent(l),f=(A[1]-A[0])*.3;A=[A[0]-f,A[1]+f];var h=[0,n[1]],g=[0,n[0]],p=[[n[0],0],[0,0]],m=[],b=g[1]/(o.count()-1),C=0,E=Math.round(o.count()/n[0]),_;o.each([l],function(j,z){if(E>0&&z%E){C+=b;return}var W=j==null||isNaN(j)||j==="",Y=W?0:Qu(j,A,h,!0);W&&!_&&z?(p.push([p[p.length-1][0],0]),m.push([m[m.length-1][0],0])):!W&&_&&(p.push([C,0]),m.push([C,0])),p.push([C,Y]),m.push([C,Y]),C+=b,_=W}),u=this._shadowPolygonPts=p,c=this._shadowPolylinePts=m}this._shadowData=o,this._shadowDim=l,this._shadowSize=[n[0],n[1]];var F=this.dataZoomModel;function M(j){var z=F.getModel(j?"selectedDataBackground":"dataBackground"),W=new $o,Y=new ev({shape:{points:u},segmentIgnoreThreshold:1,style:z.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),ee=new nv({shape:{points:c},segmentIgnoreThreshold:1,style:z.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return W.add(Y),W.add(ee),W}for(var N=0;N<3;N++){var P=M(N===1);this._displayables.sliderGroup.add(P),this._displayables.dataShadowSegs.push(P)}},t.prototype._prepareDataShadowInfo=function(){var r=this.dataZoomModel,n=r.get("showDataShadow");if(n!==!1){var i,a=this.ecModel;return r.eachTargetAxis(function(o,s){var l=r.getAxisProxy(o,s).getTargetSeriesModels();Mt(l,function(u){if(!i&&!(n!==!0&&Rs(kFr,u.get("type"))<0)){var c=a.getComponent(G3(o),s).axis,A=TFr(o),f,h=u.coordinateSystem;A!=null&&h.getOtherAxis&&(f=h.getOtherAxis(c).inverse),A=u.getData().mapDimension(A),i={thisAxis:c,series:u,thisDim:o,otherDim:A,otherAxisInverse:f}}},this)},this),i}},t.prototype._renderHandle=function(){var r=this.group,n=this._displayables,i=n.handles=[null,null],a=n.handleLabels=[null,null],o=this._displayables.sliderGroup,s=this._size,l=this.dataZoomModel,u=this.api,c=l.get("borderRadius")||0,A=l.get("brushSelect"),f=n.filler=new IR({silent:A,style:{fill:l.get("fillerColor")},textConfig:{position:"inside"}});o.add(f),o.add(new IR({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:BFr,fill:"rgba(0,0,0,0)"}})),Mt([0,1],function(E){var _=l.get("handleIcon");!RY[_]&&_.indexOf("path://")<0&&_.indexOf("image://")<0&&(_="path://"+_);var F=_h(_,-1,0,2,2,null,!0);F.attr({cursor:MWe(this._orient),draggable:!0,drift:Ga(this._onDragMove,this,E),ondragend:Ga(this._onDragEnd,this),onmouseover:Ga(this._showDataInfo,this,!0),onmouseout:Ga(this._showDataInfo,this,!1),z2:5});var M=F.getBoundingRect(),N=l.get("handleSize");this._handleHeight=Ba(N,this._size[1]),this._handleWidth=M.width/M.height*this._handleHeight,F.setStyle(l.getModel("handleStyle").getItemStyle()),F.style.strokeNoScale=!0,F.rectHover=!0,F.ensureState("emphasis").style=l.getModel(["emphasis","handleStyle"]).getItemStyle(),r6(F);var P=l.get("handleColor");P!=null&&(F.style.fill=P),o.add(i[E]=F);var j=l.getModel("textStyle"),z=l.get("handleLabel")||{},W=z.show||!1;r.add(a[E]=new zl({silent:!0,invisible:!W,style:Nc(j,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:j.getTextColor(),font:j.getFont()}),z2:10}))},this);var h=f;if(A){var g=Ba(l.get("moveHandleSize"),s[1]),p=n.moveHandle=new Ol({style:l.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:s[1]-.5,height:g}}),m=g*.8,b=n.moveHandleIcon=_h(l.get("moveHandleIcon"),-m/2,-m/2,m,m,"#fff",!0);b.silent=!0,b.y=s[1]+g/2-.5,p.ensureState("emphasis").style=l.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var C=Math.min(s[1]/2,Math.max(g,10));h=n.moveZone=new Ol({invisible:!0,shape:{y:s[1]-C,height:g+C}}),h.on("mouseover",function(){u.enterEmphasis(p)}).on("mouseout",function(){u.leaveEmphasis(p)}),o.add(p),o.add(b),o.add(h)}h.attr({draggable:!0,cursor:MWe(this._orient),drift:Ga(this._onDragMove,this,"all"),ondragstart:Ga(this._showDataInfo,this,!0),ondragend:Ga(this._onDragEnd,this),onmouseover:Ga(this._showDataInfo,this,!0),onmouseout:Ga(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var r=this._range=this.dataZoomModel.getPercentRange(),n=this._getViewExtent();this._handleEnds=[Qu(r[0],[0,100],n,!0),Qu(r[1],[0,100],n,!0)]},t.prototype._updateInterval=function(r,n){var i=this.dataZoomModel,a=this._handleEnds,o=this._getViewExtent(),s=i.findRepresentativeAxisProxy().getMinMaxSpan(),l=[0,100];CQ(n,a,o,i.get("zoomLock")?"all":r,s.minSpan!=null?Qu(s.minSpan,l,o,!0):null,s.maxSpan!=null?Qu(s.maxSpan,l,o,!0):null);var u=this._range,c=this._range=Cy([Qu(a[0],o,l,!0),Qu(a[1],o,l,!0)]);return!u||u[0]!==c[0]||u[1]!==c[1]},t.prototype._updateView=function(r){var n=this._displayables,i=this._handleEnds,a=Cy(i.slice()),o=this._size;Mt([0,1],function(h){var g=n.handles[h],p=this._handleHeight;g.attr({scaleX:p/2,scaleY:p/2,x:i[h]+(h?-1:1),y:o[1]/2-p/2})},this),n.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]};n.moveHandle&&(n.moveHandle.setShape(s),n.moveZone.setShape(s),n.moveZone.getBoundingRect(),n.moveHandleIcon&&n.moveHandleIcon.attr("x",s.x+s.width/2));for(var l=n.dataShadowSegs,u=[0,a[0],a[1],o[0]],c=0;cn[0]||i[1]<0||i[1]>n[1])){var a=this._handleEnds,o=(a[0]+a[1])/2,s=this._updateInterval("all",i[0]-o);this._updateView(),s&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(r){var n=r.offsetX,i=r.offsetY;this._brushStart=new Cs(n,i),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(r){if(this._brushing){var n=this._displayables.brushRect;if(this._brushing=!1,!!n){n.attr("ignore",!0);var i=n.shape,a=+new Date;if(!(a-this._brushStartTime<200&&Math.abs(i.width)<5)){var o=this._getViewExtent(),s=[0,100];this._range=Cy([Qu(i.x,o,s,!0),Qu(i.x+i.width,o,s,!0)]),this._handleEnds=[i.x,i.x+i.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(r){this._brushing&&(iB(r.event),this._updateBrushRect(r.offsetX,r.offsetY))},t.prototype._updateBrushRect=function(r,n){var i=this._displayables,a=this.dataZoomModel,o=i.brushRect;o||(o=i.brushRect=new IR({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(r,n),c=l.transformCoordToLocal(s.x,s.y),A=this._size;u[0]=Math.max(Math.min(A[0],u[0]),0),o.setShape({x:c[0],y:0,width:u[0]-c[0],height:A[1]})},t.prototype._dispatchZoomAction=function(r){var n=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:r?QFr:null,start:n[0],end:n[1]})},t.prototype._findCoordRect=function(){var r,n=Lbt(this.dataZoomModel).infoList;if(!r&&n.length){var i=n[0].model.coordinateSystem;r=i.getRect&&i.getRect()}if(!r){var a=this.api.getWidth(),o=this.api.getHeight();r={x:a*.2,y:o*.2,width:a*.6,height:o*.6}}return r},t.type="dataZoom.slider",t}(JSe);function TFr(e){var t={x:"y",y:"x",radius:"angle",angle:"radius"};return t[e]}function MWe(e){return e==="vertical"?"ns-resize":"ew-resize"}function i2t(e){e.registerComponentModel(EFr),e.registerComponentView(_Fr),XSe(e)}function DFr(e){zs(n2t),zs(i2t)}var a2t={get:function(e,t,r){var n=No((FFr[e]||{})[t]);return r&&Bi(n)?n[n.length-1]:n}},FFr={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]}},OWe=Gd.mapVisual,RFr=Gd.eachVisual,MFr=Bi,NWe=Mt,OFr=Cy,NFr=Qu,aq=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r.stateList=["inRange","outOfRange"],r.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],r.layoutMode={type:"box",ignoreSize:!0},r.dataBound=[-1/0,1/0],r.targetVisuals={},r.controllerVisuals={},r}return t.prototype.init=function(r,n,i){this.mergeDefaultAndTheme(r,i)},t.prototype.optionUpdated=function(r,n){var i=this.option;!n&&Wbt(i,r,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(r){var n=this.stateList;r=Ga(r,this),this.controllerVisuals=cCe(this.option.controller,n,r),this.targetVisuals=cCe(this.option.target,n,r)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var r=this.option.seriesIndex,n=[];return r==null||r==="all"?this.ecModel.eachSeries(function(i,a){n.push(a)}):n=ic(r),n},t.prototype.eachTargetSeries=function(r,n){Mt(this.getTargetSeriesIndices(),function(i){var a=this.ecModel.getSeriesByIndex(i);a&&r.call(n,a)},this)},t.prototype.isTargetSeries=function(r){var n=!1;return this.eachTargetSeries(function(i){i===r&&(n=!0)}),n},t.prototype.formatValueText=function(r,n,i){var a=this.option,o=a.precision,s=this.dataBound,l=a.formatter,u;i=i||["<",">"],Bi(r)&&(r=r.slice(),u=!0);var c=n?r:u?[A(r[0]),A(r[1])]:A(r);if(Oa(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(Bo(l))return u?l(r[0],r[1]):l(r);if(u)return r[0]===s[0]?i[0]+" "+c[1]:r[1]===s[1]?i[1]+" "+c[0]:c[0]+" - "+c[1];return c;function A(f){return f===s[0]?"min":f===s[1]?"max":(+f).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var r=this.option,n=OFr([r.min,r.max]);this._dataExtent=n},t.prototype.getDataDimensionIndex=function(r){var n=this.option.dimension;if(n!=null)return r.getDimensionIndex(n);for(var i=r.dimensions,a=i.length-1;a>=0;a--){var o=i[a],s=r.getDimensionInfo(o);if(!s.isCalculationCoord)return s.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var r=this.ecModel,n=this.option,i={inRange:n.inRange,outOfRange:n.outOfRange},a=n.target||(n.target={}),o=n.controller||(n.controller={});ys(a,i),ys(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(A){MFr(n.color)&&!A.inRange&&(A.inRange={color:n.color.slice().reverse()}),A.inRange=A.inRange||{color:r.get("gradientColor")}}function u(A,f,h){var g=A[f],p=A[h];g&&!p&&(p=A[h]={},NWe(g,function(m,b){if(Gd.isValidType(b)){var C=a2t.get(b,"inactive",s);C!=null&&(p[b]=C,b==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function c(A){var f=(A.inRange||{}).symbol||(A.outOfRange||{}).symbol,h=(A.inRange||{}).symbolSize||(A.outOfRange||{}).symbolSize,g=this.get("inactiveColor"),p=this.getItemSymbol(),m=p||"roundRect";NWe(this.stateList,function(b){var C=this.itemSize,E=A[b];E||(E=A[b]={color:s?g:[g]}),E.symbol==null&&(E.symbol=f&&No(f)||(s?m:[m])),E.symbolSize==null&&(E.symbolSize=h&&No(h)||(s?C[0]:[C[0],C[0]])),E.symbol=OWe(E.symbol,function(M){return M==="none"?m:M});var _=E.symbolSize;if(_!=null){var F=-1/0;RFr(_,function(M){M>F&&(F=M)}),E.symbolSize=OWe(_,function(M){return NFr(M,[0,F],[0,C[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(r){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(r){return null},t.prototype.getVisualMeta=function(r){return null},t.type="visualMap",t.dependencies=["series"],t.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"}},t}(dl),LWe=[20,140],LFr=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){e.prototype.resetItemSize.apply(this,arguments);var r=this.itemSize;(r[0]==null||isNaN(r[0]))&&(r[0]=LWe[0]),(r[1]==null||isNaN(r[1]))&&(r[1]=LWe[1])},t.prototype._resetRange=function(){var r=this.getExtent(),n=this.option.range;!n||n.auto?(r.auto=1,this.option.range=r):Bi(n)&&(n[0]>n[1]&&n.reverse(),n[0]=Math.max(n[0],r[0]),n[1]=Math.min(n[1],r[1]))},t.prototype.completeVisualOption=function(){e.prototype.completeVisualOption.apply(this,arguments),Mt(this.stateList,function(r){var n=this.option.controller[r].symbolSize;n&&n[0]!==n[1]&&(n[0]=n[1]/3)},this)},t.prototype.setSelected=function(r){this.option.range=r.slice(),this._resetRange()},t.prototype.getSelected=function(){var r=this.getExtent(),n=Cy((this.get("range")||[]).slice());return n[0]>r[1]&&(n[0]=r[1]),n[1]>r[1]&&(n[1]=r[1]),n[0]=i[1]||r<=n[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[];return this.eachTargetSeries(function(i){var a=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){r[0]<=s&&s<=r[1]&&a.push(l)},this),n.push({seriesId:i.id,dataIndex:a})},this),n},t.prototype.getVisualMeta=function(r){var n=PWe(this,"outOfRange",this.getExtent()),i=PWe(this,"inRange",this.option.range.slice()),a=[];function o(h,g){a.push({value:h,color:r(h,g)})}for(var s=0,l=0,u=i.length,c=n.length;lr[1])break;a.push({color:this.getControllerVisual(l,"color",n),offset:s/i})}return a.push({color:this.getControllerVisual(r[1],"color",n),offset:1}),a},t.prototype._createBarPoints=function(r,n){var i=this.visualMapModel.itemSize;return[[i[0]-n[0],r[0]],[i[0],r[0]],[i[0],r[1]],[i[0]-n[1],r[1]]]},t.prototype._createBarGroup=function(r){var n=this._orient,i=this.visualMapModel.get("inverse");return new $o(n==="horizontal"&&!i?{scaleX:r==="bottom"?1:-1,rotation:Math.PI/2}:n==="horizontal"&&i?{scaleX:r==="bottom"?-1:1,rotation:-Math.PI/2}:n==="vertical"&&!i?{scaleX:r==="left"?1:-1,scaleY:-1}:{scaleX:r==="left"?1:-1})},t.prototype._updateHandle=function(r,n){if(this._useHandle){var i=this._shapes,a=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=a.itemSize,u=a.getExtent(),c=this._applyTransform("left",i.mainGroup);PFr([0,1],function(A){var f=o[A];f.setStyle("fill",n.handlesColor[A]),f.y=r[A];var h=Tw(r[A],[0,l[1]],u,!0),g=this.getControllerVisual(h,"symbolSize");f.scaleX=f.scaleY=g/l[0],f.x=l[0]-g/2;var p=e2(i.handleLabelPoints[A],n6(f,this.group));if(this._orient==="horizontal"){var m=c==="left"||c==="top"?(l[0]-g)/2:(l[0]-g)/-2;p[1]+=m}s[A].setStyle({x:p[0],y:p[1],text:a.formatValueText(this._dataInterval[A]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(r,n,i,a){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,A=c.indicator;if(A){A.attr("invisible",!1);var f={convertOpacityToAlpha:!0},h=this.getControllerVisual(r,"color",f),g=this.getControllerVisual(r,"symbolSize"),p=Tw(r,s,u,!0),m=l[0]-g/2,b={x:A.x,y:A.y};A.y=p,A.x=m;var C=e2(c.indicatorLabelPoint,n6(A,this.group)),E=c.indicatorLabel;E.attr("invisible",!1);var _=this._applyTransform("left",c.mainGroup),F=this._orient,M=F==="horizontal";E.setStyle({text:(i||"")+o.formatValueText(n),verticalAlign:M?_:"middle",align:M?"center":_});var N={x:m,y:p,style:{fill:h}},P={style:{x:C[0],y:C[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var j={duration:100,easing:"cubicInOut",additive:!0};A.x=b.x,A.y=b.y,A.animateTo(N,j),E.animateTo(P,j)}else A.attr(N),E.attr(P);this._firstShowIndicator=!1;var z=this._shapes.handleLabels;if(z)for(var W=0;Wo[1]&&(A[1]=1/0),n&&(A[0]===-1/0?this._showIndicator(c,A[1],"< ",l):A[1]===1/0?this._showIndicator(c,A[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var f=this._hoverLinkDataIndices,h=[];(n||GWe(i))&&(h=this._hoverLinkDataIndices=i.findTargetDataIndices(A));var g=Jwr(f,h);this._dispatchHighDown("downplay",gV(g[0],i)),this._dispatchHighDown("highlight",gV(g[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(r){var n;if(Qk(r.target,function(l){var u=Vo(l);if(u.dataIndex!=null)return n=u,!0},!0),!!n){var i=this.ecModel.getSeriesByIndex(n.seriesIndex),a=this.visualMapModel;if(a.isTargetSeries(i)){var o=i.getData(n.dataType),s=o.getStore().get(a.getDataDimensionIndex(o),n.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var r=this._shapes;r.indicator&&r.indicator.attr("invisible",!0),r.indicatorLabel&&r.indicatorLabel.attr("invisible",!0);var n=this._shapes.handleLabels;if(n)for(var i=0;i=0&&(a.dimension=o,n.push(a))}}),e.getData().setVisual("visualMeta",n)}}];function VFr(e,t,r,n){for(var i=t.targetVisuals[n],a=Gd.prepareVisualTypes(i),o={color:fP(e.getData(),"color")},s=0,l=a.length;s0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),e.registerAction($Fr,zFr),Mt(KFr,function(t){e.registerVisual(e.PRIORITY.VISUAL.COMPONENT,t)}),e.registerPreprocessor(WFr))}function u2t(e){e.registerComponentModel(LFr),e.registerComponentView(jFr),l2t(e)}var YFr=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r._pieceList=[],r}return t.prototype.optionUpdated=function(r,n){e.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],qFr[this._mode].call(this,this._pieceList),this._resetSelected(r,n);var a=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=No(a)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=Ti(this._pieceList,function(l){return l=No(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var r=this.option,n={},i=Gd.listVisualTypes(),a=this.isCategory();Mt(r.pieces,function(s){Mt(i,function(l){s.hasOwnProperty(l)&&(n[l]=1)})}),Mt(n,function(s,l){var u=!1;Mt(this.stateList,function(c){u=u||o(r,c,l)||o(r.target,c,l)},this),!u&&Mt(this.stateList,function(c){(r[c]||(r[c]={}))[l]=a2t.get(l,c==="inRange"?"active":"inactive",a)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}e.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(r,n){var i=this.option,a=this._pieceList,o=(n?i:r).selected||{};if(i.selected=o,Mt(a,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),i.selectedMode==="single"){var s=!1;Mt(a,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(r){return this._mode==="categories"?r.value+"":r.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var r=this.option;return r.pieces&&r.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(r){this.option.selected=No(r)},t.prototype.getValueState=function(r){var n=Gd.findPieceIndex(r,this._pieceList);return n!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[n])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(r){var n=[],i=this._pieceList;return this.eachTargetSeries(function(a){var o=[],s=a.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=Gd.findPieceIndex(l,i);c===r&&o.push(u)},this),n.push({seriesId:a.id,dataIndex:o})},this),n},t.prototype.getRepresentValue=function(r){var n;if(this.isCategory())n=r.value;else if(r.value!=null)n=r.value;else{var i=r.interval||[];n=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return n},t.prototype.getVisualMeta=function(r){if(this.isCategory())return;var n=[],i=["",""],a=this;function o(c,A){var f=a.getRepresentValue({interval:c});A||(A=a.getValueState(f));var h=r(f,A);c[0]===-1/0?i[0]=h:c[1]===1/0?i[1]=h:n.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 Mt(s,function(c){var A=c.interval;A&&(A[0]>u&&o([u,A[0]],"outOfRange"),o(A.slice()),u=A[1])},this),{stops:n,outerColors:i}},t.type="visualMap.piecewise",t.defaultOption=eS(aq.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}),t}(aq),qFr={splitNumber:function(e){var t=this.option,r=Math.min(t.precision,20),n=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var a=(n[1]-n[0])/i;+a.toFixed(r)!==a&&r<5;)r++;t.precision=r,a=+a.toFixed(r),t.minOpen&&e.push({interval:[-1/0,n[0]],close:[0,0]});for(var o=0,s=n[0];o","≥"][n[0]]];r.text=r.text||this.formatValueText(r.value!=null?r.value:r.interval,!1,i)},this)}};function VWe(e,t){var r=e.inverse;(e.orient==="vertical"?!r:r)&&t.reverse()}var JFr=function(e){Wn(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type=t.type,r}return t.prototype.doRender=function(){var r=this.group;r.removeAll();var n=this.visualMapModel,i=n.get("textGap"),a=n.textStyleModel,o=a.getFont(),s=a.getTextColor(),l=this._getItemAlign(),u=n.itemSize,c=this._getViewData(),A=c.endsText,f=bg(n.get("showLabel",!0),!A),h=!n.get("selectedMode");A&&this._renderEndsText(r,A[0],u,f,l),Mt(c.viewPieceList,function(g){var p=g.piece,m=new $o;m.onclick=Ga(this._onItemClick,this,p),this._enableHoverLink(m,g.indexInModelPieceList);var b=n.getRepresentValue(p);if(this._createItemSymbol(m,b,[0,0,u[0],u[1]],h),f){var C=this.visualMapModel.getValueState(b);m.add(new zl({style:{x:l==="right"?-i:u[0]+i,y:u[1]/2,text:p.text,verticalAlign:"middle",align:l,font:o,fill:s,opacity:C==="outOfRange"?.5:1},silent:h}))}r.add(m)},this),A&&this._renderEndsText(r,A[1],u,f,l),i6(n.get("orient"),r,n.get("itemGap")),this.renderBackground(r),this.positionGroup(r)},t.prototype._enableHoverLink=function(r,n){var i=this;r.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:gV(s.findTargetDataIndices(n),s)})}},t.prototype._getItemAlign=function(){var r=this.visualMapModel,n=r.option;if(n.orient==="vertical")return s2t(r,this.api,r.itemSize);var i=n.align;return(!i||i==="auto")&&(i="left"),i},t.prototype._renderEndsText=function(r,n,i,a,o){if(n){var s=new $o,l=this.visualMapModel.textStyleModel;s.add(new zl({style:Nc(l,{x:a?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:a?o:"center",text:n})})),r.add(s)}},t.prototype._getViewData=function(){var r=this.visualMapModel,n=Ti(r.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=r.get("text"),a=r.get("orient"),o=r.get("inverse");return(a==="horizontal"?o:!o)?n.reverse():i&&(i=i.slice().reverse()),{viewPieceList:n,endsText:i}},t.prototype._createItemSymbol=function(r,n,i,a){var o=_h(this.getControllerVisual(n,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(n,"color"));o.silent=a,r.add(o)},t.prototype._onItemClick=function(r){var n=this.visualMapModel,i=n.option,a=i.selectedMode;if(a){var o=No(i.selected),s=n.getSelectedMapKey(r);a==="single"||a===!0?(o[s]=!0,Mt(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})}},t.type="visualMap.piecewise",t}(o2t);function c2t(e){e.registerComponentModel(YFr),e.registerComponentView(JFr),l2t(e)}function XFr(e){zs(u2t),zs(c2t)}var ZFr={label:{enabled:!0},decal:{show:!1}},WWe=Nl(),eRr={};function tRr(e,t){var r=e.getModel("aria");if(!r.get("enabled"))return;var n=No(ZFr);ys(n.label,e.getLocaleModel().get("aria"),!1),ys(r.option,n,!1),i(),a();function i(){var u=r.getModel("decal"),c=u.get("show");if(c){var A=ao();e.eachSeries(function(f){if(!f.isColorBySeries()){var h=A.get(f.type);h||(h={},A.set(f.type,h)),WWe(f).scope=h}}),e.eachRawSeries(function(f){if(e.isSeriesFiltered(f))return;if(Bo(f.enableAriaDecal)){f.enableAriaDecal();return}var h=f.getData();if(f.isColorBySeries()){var C=pwe(f.ecModel,f.name,eRr,e.getSeriesCount()),E=h.getVisual("decal");h.setVisual("decal",_(E,C))}else{var g=f.getRawData(),p={},m=WWe(f).scope;h.each(function(F){var M=h.getRawIndex(F);p[M]=F});var b=g.count();g.each(function(F){var M=p[F],N=g.getName(F)||F+"",P=pwe(f.ecModel,N,m,b),j=h.getItemVisual(M,"decal");h.setItemVisual(M,"decal",_(j,P))})}function _(F,M){var N=F?si(si({},M),F):M;return N.dirty=!0,N}})}}function a(){var u=t.getZr().dom;if(u){var c=e.getLocaleModel().get("aria"),A=r.getModel("label");if(A.option=Qo(A.option,c),!!A.get("enabled")){if(u.setAttribute("role","img"),A.get("description")){u.setAttribute("aria-label",A.get("description"));return}var f=e.getSeriesCount(),h=A.get(["data","maxCount"])||10,g=A.get(["series","maxCount"])||10,p=Math.min(f,g),m;if(!(f<1)){var b=s();if(b){var C=A.get(["general","withTitle"]);m=o(C,{title:b})}else m=A.get(["general","withoutTitle"]);var E=[],_=f>1?A.get(["series","multiple","prefix"]):A.get(["series","single","prefix"]);m+=o(_,{seriesCount:f}),e.eachSeries(function(P,j){if(j1?A.get(["series","multiple",Y]):A.get(["series","single",Y]),z=o(z,{seriesId:P.seriesIndex,seriesName:P.get("name"),seriesType:l(P.subType)});var ee=P.getData();if(ee.count()>h){var q=A.get(["data","partialData"]);z+=o(q,{displayCnt:h})}else z+=A.get(["data","allData"]);for(var ae=A.get(["data","separator","middle"]),se=A.get(["data","separator","end"]),de=A.get(["data","excludeDimensionId"]),Ae=[],be=0;be":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},iRr=function(){function e(t){var r=this._condVal=Oa(t)?new RegExp(t):v2r(t)?t:null;if(r==null){var n="";wu(n)}}return e.prototype.evaluate=function(t){var r=typeof t;return Oa(r)?this._condVal.test(t):Xl(r)?this._condVal.test(t+""):!1},e}(),aRr=function(){function e(){}return e.prototype.evaluate=function(){return this.value},e}(),oRr=function(){function e(){}return e.prototype.evaluate=function(){for(var t=this.children,r=0;r2&&n.push(i),i=[ee,q]}function c(ee,q,ae,se){i9(ee,ae)&&i9(q,se)||i.push(ee,q,ae,se,ae,se)}function A(ee,q,ae,se,de,Ae){var be=Math.abs(q-ee),Le=Math.tan(be/4)*4/3,Ne=qP:W2&&n.push(i),n}function mCe(e,t,r,n,i,a,o,s,l,u){if(i9(e,r)&&i9(t,n)&&i9(i,o)&&i9(a,s)){l.push(o,s);return}var c=2/u,A=c*c,f=o-e,h=s-t,g=Math.sqrt(f*f+h*h);f/=g,h/=g;var p=r-e,m=n-t,b=i-o,C=a-s,E=p*p+m*m,_=b*b+C*C;if(E=0&&P=0){l.push(o,s);return}var j=[],z=[];E5(e,r,i,o,.5,j),E5(t,n,a,s,.5,z),mCe(j[0],z[0],j[1],z[1],j[2],z[2],j[3],z[3],l,u),mCe(j[4],z[4],j[5],z[5],j[6],z[6],j[7],z[7],l,u)}function bRr(e,t){var r=vCe(e),n=[];t=t||1;for(var i=0;i0)for(var u=0;uMath.abs(u),A=f2t([l,u],c?0:1,t),f=(c?s:u)/A.length,h=0;hi,o=f2t([n,i],a?0:1,t),s=a?"width":"height",l=a?"height":"width",u=a?"x":"y",c=a?"y":"x",A=e[s]/o.length,f=0;f1?null:new Cs(p*l+e,p*u+t)}function IRr(e,t,r){var n=new Cs;Cs.sub(n,r,t),n.normalize();var i=new Cs;Cs.sub(i,e,t);var a=i.dot(n);return a}function g8(e,t){var r=e[e.length-1];r&&r[0]===t[0]&&r[1]===t[1]||e.push(t)}function ERr(e,t,r){for(var n=e.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),ERr(t,u,c)}function oq(e,t,r,n){if(r===1)n.push(t);else{var i=Math.floor(r/2),a=e(t);oq(e,a[0],i,n),oq(e,a[1],r-i,n)}return n}function BRr(e,t){for(var r=[],n=0;n0;u/=2){var c=0,A=0;(e&u)>0&&(c=1),(t&u)>0&&(A=1),s+=u*u*(3*c^A),A===0&&(c===1&&(e=u-1-e,t=u-1-t),l=e,e=t,t=l)}return s}function uq(e){var t=1/0,r=1/0,n=-1/0,i=-1/0,a=Ti(e,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),A=l.y+l.height/2+(u?u[5]:0);return t=Math.min(c,t),r=Math.min(A,r),n=Math.max(c,n),i=Math.max(A,i),[c,A]}),o=Ti(a,function(s,l){return{cp:s,z:RRr(s[0],s[1],t,r,n,i),path:e[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function g2t(e){return kRr(e.path,e.count)}function yCe(){return{fromIndividuals:[],toIndividuals:[],count:0}}function MRr(e,t,r){var n=[];function i(F){for(var M=0;M=0;i--)if(!r[i].many.length){var l=r[s].many;if(l.length<=1)if(s)s=0;else return r;var a=l.length,u=Math.ceil(a/2);r[i].many=l.slice(u,a),r[s].many=l.slice(0,u),s++}return r}var NRr={clone:function(e){for(var t=[],r=1-Math.pow(1-e.path.style.opacity,1/e.count),n=0;n0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;nYe(e)&&(u=e,c=t),nYe(t)&&(u=t,c=e);function A(b,C,E,_,F){var M=b.many,N=b.one;if(M.length===1&&!F){var P=C?M[0]:N,j=C?N:M[0];if(sq(P))A({many:[P],one:j},!0,E,_,!0);else{var z=s?Qo({delay:s(E,_)},l):l;l4e(P,j,z),a(P,j,P,j,z)}}else for(var W=Qo({dividePath:NRr[r],individualDelay:s&&function(de,Ae,be,Le){return s(de+E,_)}},l),Y=C?MRr(M,N,W):ORr(N,M,W),ee=Y.fromIndividuals,q=Y.toIndividuals,ae=ee.length,se=0;set.length,h=u?iYe(c,u):iYe(f?t:e,[f?e:t]),g=0,p=0;pp2t))for(var a=n.getIndices(),o=0;o0&&M.group.traverse(function(P){P instanceof tl&&!P.animators.length&&P.animateFrom({style:{opacity:0}},N)})})}function uYe(e){var t=e.getModel("universalTransition").get("seriesKey");return t||e.id}function cYe(e){return Bi(e)?e.sort().join(","):e}function f3(e){if(e.hostModel)return e.hostModel.getModel("universalTransition").get("divideShape")}function $Rr(e,t){var r=ao(),n=ao(),i=ao();return Mt(e.oldSeries,function(a,o){var s=e.oldDataGroupIds[o],l=e.oldData[o],u=uYe(a),c=cYe(u);n.set(c,{dataGroupId:s,data:l}),Bi(u)&&Mt(u,function(A){i.set(A,{key:c,dataGroupId:s,data:l})})}),Mt(t.updatedSeries,function(a){if(a.isUniversalTransitionEnabled()&&a.isAnimationEnabled()){var o=a.get("dataGroupId"),s=a.getData(),l=uYe(a),u=cYe(l),c=n.get(u);if(c)r.set(u,{oldSeries:[{dataGroupId:c.dataGroupId,divide:f3(c.data),data:c.data}],newSeries:[{dataGroupId:o,divide:f3(s),data:s}]});else if(Bi(l)){var A=[];Mt(l,function(g){var p=n.get(g);p.data&&A.push({dataGroupId:p.dataGroupId,divide:f3(p.data),data:p.data})}),A.length&&r.set(u,{oldSeries:A,newSeries:[{dataGroupId:o,data:s,divide:f3(s)}]})}else{var f=i.get(l);if(f){var h=r.get(f.key);h||(h={oldSeries:[{dataGroupId:f.dataGroupId,data:f.data,divide:f3(f.data)}],newSeries:[]},r.set(f.key,h)),h.newSeries.push({dataGroupId:o,data:s,divide:f3(s)})}}}}),r}function AYe(e,t){for(var r=0;r=0&&i.push({dataGroupId:t.oldDataGroupIds[s],data:t.oldData[s],divide:f3(t.oldData[s]),groupIdDim:o.dimension})}),Mt(ic(e.to),function(o){var s=AYe(r.updatedSeries,o);if(s>=0){var l=r.updatedSeries[s].getData();a.push({dataGroupId:t.oldDataGroupIds[s],data:l,divide:f3(l),groupIdDim:o.dimension})}}),i.length>0&&a.length>0&&v2t(i,a,n)}function KRr(e){e.registerUpdateLifecycle("series:beforeupdate",function(t,r,n){Mt(ic(n.seriesTransition),function(i){Mt(ic(i.to),function(a){for(var o=n.updatedSeries,s=0;st=>{const r=VRr.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),b2=e=>(e=e.toLowerCase(),t=>fee(t)===e),hee=e=>t=>typeof t===e,{isArray:ET}=Array,VN=hee("undefined");function WRr(e){return e!==null&&!VN(e)&&e.constructor!==null&&!VN(e.constructor)&&em(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const b2t=b2("ArrayBuffer");function YRr(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&b2t(e.buffer),t}const qRr=hee("string"),em=hee("function"),w2t=hee("number"),dee=e=>e!==null&&typeof e=="object",JRr=e=>e===!0||e===!1,pV=e=>{if(fee(e)!=="object")return!1;const t=u4e(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(y2t in e)&&!(Aee in e)},XRr=b2("Date"),ZRr=b2("File"),eMr=b2("Blob"),tMr=b2("FileList"),rMr=e=>dee(e)&&em(e.pipe),nMr=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||em(e.append)&&((t=fee(e))==="formdata"||t==="object"&&em(e.toString)&&e.toString()==="[object FormData]"))},iMr=b2("URLSearchParams"),[aMr,oMr,sMr,lMr]=["ReadableStream","Request","Response","Headers"].map(b2),uMr=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function EP(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let n,i;if(typeof e!="object"&&(e=[e]),ET(e))for(n=0,i=e.length;n0;)if(i=r[n],t===i.toLowerCase())return i;return null}const Fk=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,I2t=e=>!VN(e)&&e!==Fk;function bCe(){const{caseless:e}=I2t(this)&&this||{},t={},r=(n,i)=>{const a=e&&C2t(t,i)||i;pV(t[a])&&pV(n)?t[a]=bCe(t[a],n):pV(n)?t[a]=bCe({},n):ET(n)?t[a]=n.slice():t[a]=n};for(let n=0,i=arguments.length;n(EP(t,(i,a)=>{r&&em(i)?e[a]=m2t(i,r):e[a]=i},{allOwnKeys:n}),e),AMr=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),fMr=(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},hMr=(e,t,r,n)=>{let i,a,o;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!n||n(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=r!==!1&&u4e(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},dMr=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;const n=e.indexOf(t,r);return n!==-1&&n===r},gMr=e=>{if(!e)return null;if(ET(e))return e;let t=e.length;if(!w2t(t))return null;const r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},pMr=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&u4e(Uint8Array)),vMr=(e,t)=>{const n=(e&&e[Aee]).call(e);let i;for(;(i=n.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},mMr=(e,t)=>{let r;const n=[];for(;(r=e.exec(t))!==null;)n.push(r);return n},yMr=b2("HTMLFormElement"),bMr=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),fYe=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),wMr=b2("RegExp"),E2t=(e,t)=>{const r=Object.getOwnPropertyDescriptors(e),n={};EP(r,(i,a)=>{let o;(o=t(i,a,e))!==!1&&(n[a]=o||i)}),Object.defineProperties(e,n)},CMr=e=>{E2t(e,(t,r)=>{if(em(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=e[r];if(em(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},IMr=(e,t)=>{const r={},n=i=>{i.forEach(a=>{r[a]=!0})};return ET(e)?n(e):n(String(e).split(t)),r},EMr=()=>{},BMr=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function xMr(e){return!!(e&&em(e.append)&&e[y2t]==="FormData"&&e[Aee])}const SMr=e=>{const t=new Array(10),r=(n,i)=>{if(dee(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[i]=n;const a=ET(n)?[]:{};return EP(n,(o,s)=>{const l=r(o,i+1);!VN(l)&&(a[s]=l)}),t[i]=void 0,a}}return n};return r(e,0)},kMr=b2("AsyncFunction"),QMr=e=>e&&(dee(e)||em(e))&&em(e.then)&&em(e.catch),B2t=((e,t)=>e?setImmediate:t?((r,n)=>(Fk.addEventListener("message",({source:i,data:a})=>{i===Fk&&a===r&&n.length&&n.shift()()},!1),i=>{n.push(i),Fk.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",em(Fk.postMessage)),_Mr=typeof queueMicrotask<"u"?queueMicrotask.bind(Fk):typeof process<"u"&&process.nextTick||B2t,TMr=e=>e!=null&&em(e[Aee]),wi={isArray:ET,isArrayBuffer:b2t,isBuffer:WRr,isFormData:nMr,isArrayBufferView:YRr,isString:qRr,isNumber:w2t,isBoolean:JRr,isObject:dee,isPlainObject:pV,isReadableStream:aMr,isRequest:oMr,isResponse:sMr,isHeaders:lMr,isUndefined:VN,isDate:XRr,isFile:ZRr,isBlob:eMr,isRegExp:wMr,isFunction:em,isStream:rMr,isURLSearchParams:iMr,isTypedArray:pMr,isFileList:tMr,forEach:EP,merge:bCe,extend:cMr,trim:uMr,stripBOM:AMr,inherits:fMr,toFlatObject:hMr,kindOf:fee,kindOfTest:b2,endsWith:dMr,toArray:gMr,forEachEntry:vMr,matchAll:mMr,isHTMLForm:yMr,hasOwnProperty:fYe,hasOwnProp:fYe,reduceDescriptors:E2t,freezeMethods:CMr,toObjectSet:IMr,toCamelCase:bMr,noop:EMr,toFiniteNumber:BMr,findKey:C2t,global:Fk,isContextDefined:I2t,isSpecCompliantForm:xMr,toJSONObject:SMr,isAsyncFn:kMr,isThenable:QMr,setImmediate:B2t,asap:_Mr,isIterable:TMr};function Rl(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}wi.inherits(Rl,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:wi.toJSONObject(this.config),code:this.code,status:this.status}}});const x2t=Rl.prototype,S2t={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{S2t[e]={value:e}});Object.defineProperties(Rl,S2t);Object.defineProperty(x2t,"isAxiosError",{value:!0});Rl.from=(e,t,r,n,i,a)=>{const o=Object.create(x2t);return wi.toFlatObject(e,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),Rl.call(o,e.message,t,r,n,i),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};const DMr=null;function wCe(e){return wi.isPlainObject(e)||wi.isArray(e)}function k2t(e){return wi.endsWith(e,"[]")?e.slice(0,-2):e}function hYe(e,t,r){return e?e.concat(t).map(function(i,a){return i=k2t(i),!r&&a?"["+i+"]":i}).join(r?".":""):t}function FMr(e){return wi.isArray(e)&&!e.some(wCe)}const RMr=wi.toFlatObject(wi,{},null,function(t){return/^is[A-Z]/.test(t)});function gee(e,t,r){if(!wi.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=wi.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,m){return!wi.isUndefined(m[p])});const n=r.metaTokens,i=r.visitor||c,a=r.dots,o=r.indexes,l=(r.Blob||typeof Blob<"u"&&Blob)&&wi.isSpecCompliantForm(t);if(!wi.isFunction(i))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(wi.isDate(g))return g.toISOString();if(!l&&wi.isBlob(g))throw new Rl("Blob is not supported. Use a Buffer instead.");return wi.isArrayBuffer(g)||wi.isTypedArray(g)?l&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function c(g,p,m){let b=g;if(g&&!m&&typeof g=="object"){if(wi.endsWith(p,"{}"))p=n?p:p.slice(0,-2),g=JSON.stringify(g);else if(wi.isArray(g)&&FMr(g)||(wi.isFileList(g)||wi.endsWith(p,"[]"))&&(b=wi.toArray(g)))return p=k2t(p),b.forEach(function(E,_){!(wi.isUndefined(E)||E===null)&&t.append(o===!0?hYe([p],_,a):o===null?p:p+"[]",u(E))}),!1}return wCe(g)?!0:(t.append(hYe(m,p,a),u(g)),!1)}const A=[],f=Object.assign(RMr,{defaultVisitor:c,convertValue:u,isVisitable:wCe});function h(g,p){if(!wi.isUndefined(g)){if(A.indexOf(g)!==-1)throw Error("Circular reference detected in "+p.join("."));A.push(g),wi.forEach(g,function(b,C){(!(wi.isUndefined(b)||b===null)&&i.call(t,b,wi.isString(C)?C.trim():C,p,f))===!0&&h(b,p?p.concat(C):[C])}),A.pop()}}if(!wi.isObject(e))throw new TypeError("data must be an object");return h(e),t}function dYe(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function c4e(e,t){this._pairs=[],e&&gee(e,this,t)}const Q2t=c4e.prototype;Q2t.append=function(t,r){this._pairs.push([t,r])};Q2t.toString=function(t){const r=t?function(n){return t.call(this,n,dYe)}:dYe;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function MMr(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function _2t(e,t,r){if(!t)return e;const n=r&&r.encode||MMr;wi.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let a;if(i?a=i(t,r):a=wi.isURLSearchParams(t)?t.toString():new c4e(t,r).toString(n),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class gYe{constructor(){this.handlers=[]}use(t,r,n){return this.handlers.push({fulfilled:t,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){wi.forEach(this.handlers,function(n){n!==null&&t(n)})}}const T2t={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},OMr=typeof URLSearchParams<"u"?URLSearchParams:c4e,NMr=typeof FormData<"u"?FormData:null,LMr=typeof Blob<"u"?Blob:null,PMr={isBrowser:!0,classes:{URLSearchParams:OMr,FormData:NMr,Blob:LMr},protocols:["http","https","file","blob","url","data"]},A4e=typeof window<"u"&&typeof document<"u",CCe=typeof navigator=="object"&&navigator||void 0,UMr=A4e&&(!CCe||["ReactNative","NativeScript","NS"].indexOf(CCe.product)<0),HMr=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",jMr=A4e&&window.location.href||"http://localhost",GMr=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:A4e,hasStandardBrowserEnv:UMr,hasStandardBrowserWebWorkerEnv:HMr,navigator:CCe,origin:jMr},Symbol.toStringTag,{value:"Module"})),e0={...GMr,...PMr};function $Mr(e,t){return gee(e,new e0.classes.URLSearchParams,Object.assign({visitor:function(r,n,i,a){return e0.isNode&&wi.isBuffer(r)?(this.append(n,r.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function zMr(e){return wi.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function KMr(e){const t={},r=Object.keys(e);let n;const i=r.length;let a;for(n=0;n=r.length;return o=!o&&wi.isArray(i)?i.length:o,l?(wi.hasOwnProp(i,o)?i[o]=[i[o],n]:i[o]=n,!s):((!i[o]||!wi.isObject(i[o]))&&(i[o]=[]),t(r,n,i[o],a)&&wi.isArray(i[o])&&(i[o]=KMr(i[o])),!s)}if(wi.isFormData(e)&&wi.isFunction(e.entries)){const r={};return wi.forEachEntry(e,(n,i)=>{t(zMr(n),i,r,0)}),r}return null}function VMr(e,t,r){if(wi.isString(e))try{return(t||JSON.parse)(e),wi.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(0,JSON.stringify)(e)}const BP={transitional:T2t,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,a=wi.isObject(t);if(a&&wi.isHTMLForm(t)&&(t=new FormData(t)),wi.isFormData(t))return i?JSON.stringify(D2t(t)):t;if(wi.isArrayBuffer(t)||wi.isBuffer(t)||wi.isStream(t)||wi.isFile(t)||wi.isBlob(t)||wi.isReadableStream(t))return t;if(wi.isArrayBufferView(t))return t.buffer;if(wi.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(a){if(n.indexOf("application/x-www-form-urlencoded")>-1)return $Mr(t,this.formSerializer).toString();if((s=wi.isFileList(t))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return gee(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||i?(r.setContentType("application/json",!1),VMr(t)):t}],transformResponse:[function(t){const r=this.transitional||BP.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if(wi.isResponse(t)||wi.isReadableStream(t))return t;if(t&&wi.isString(t)&&(n&&!this.responseType||i)){const o=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?Rl.from(s,Rl.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:e0.classes.FormData,Blob:e0.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};wi.forEach(["delete","get","head","post","put","patch"],e=>{BP.headers[e]={}});const WMr=wi.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),YMr=e=>{const t={};let r,n,i;return e&&e.split(` `).forEach(function(o){i=o.indexOf(":"),r=o.substring(0,i).trim().toLowerCase(),n=o.substring(i+1).trim(),!(!r||t[r]&&WMr[r])&&(r==="set-cookie"?t[r]?t[r].push(n):t[r]=[n]:t[r]=t[r]?t[r]+", "+n:n)}),t},pYe=Symbol("internals");function BR(e){return e&&String(e).trim().toLowerCase()}function vV(e){return e===!1||e==null?e:wi.isArray(e)?e.map(vV):String(e)}function qMr(e){const t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(e);)t[n[1]]=n[2];return t}const JMr=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Nge(e,t,r,n,i){if(wi.isFunction(n))return n.call(this,t,r);if(i&&(t=r),!!wi.isString(t)){if(wi.isString(n))return t.indexOf(n)!==-1;if(wi.isRegExp(n))return n.test(t)}}function XMr(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,n)=>r.toUpperCase()+n)}function ZMr(e,t){const r=wi.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(i,a,o){return this[n].call(this,t,i,a,o)},configurable:!0})})}class tm{constructor(t){t&&this.set(t)}set(t,r,n){const i=this;function a(s,l,u){const c=BR(l);if(!c)throw new Error("header name must be a non-empty string");const A=wi.findKey(i,c);(!A||i[A]===void 0||u===!0||u===void 0&&i[A]!==!1)&&(i[A||l]=vV(s))}const o=(s,l)=>wi.forEach(s,(u,c)=>a(u,c,l));if(wi.isPlainObject(t)||t instanceof this.constructor)o(t,r);else if(wi.isString(t)&&(t=t.trim())&&!JMr(t))o(YMr(t),r);else if(wi.isObject(t)&&wi.isIterable(t)){let s={},l,u;for(const c of t){if(!wi.isArray(c))throw TypeError("Object iterator must return a key-value pair");s[u=c[0]]=(l=s[u])?wi.isArray(l)?[...l,c[1]]:[l,c[1]]:c[1]}o(s,r)}else t!=null&&a(r,t,n);return this}get(t,r){if(t=BR(t),t){const n=wi.findKey(this,t);if(n){const i=this[n];if(!r)return i;if(r===!0)return qMr(i);if(wi.isFunction(r))return r.call(this,i,n);if(wi.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=BR(t),t){const n=wi.findKey(this,t);return!!(n&&this[n]!==void 0&&(!r||Nge(this,this[n],n,r)))}return!1}delete(t,r){const n=this;let i=!1;function a(o){if(o=BR(o),o){const s=wi.findKey(n,o);s&&(!r||Nge(n,n[s],s,r))&&(delete n[s],i=!0)}}return wi.isArray(t)?t.forEach(a):a(t),i}clear(t){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const a=r[n];(!t||Nge(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const r=this,n={};return wi.forEach(this,(i,a)=>{const o=wi.findKey(n,a);if(o){r[o]=vV(i),delete r[a];return}const s=t?XMr(a):String(a).trim();s!==a&&delete r[a],r[s]=vV(i),n[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const r=Object.create(null);return wi.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=t&&wi.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){const n=new this(t);return r.forEach(i=>n.set(i)),n}static accessor(t){const n=(this[pYe]=this[pYe]={accessors:{}}).accessors,i=this.prototype;function a(o){const s=BR(o);n[s]||(ZMr(i,o),n[s]=!0)}return wi.isArray(t)?t.forEach(a):a(t),this}}tm.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);wi.reduceDescriptors(tm.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(n){this[r]=n}}});wi.freezeMethods(tm);function Lge(e,t){const r=this||BP,n=t||r,i=tm.from(n.headers);let a=n.data;return wi.forEach(e,function(s){a=s.call(r,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function F2t(e){return!!(e&&e.__CANCEL__)}function BT(e,t,r){Rl.call(this,e??"canceled",Rl.ERR_CANCELED,t,r),this.name="CanceledError"}wi.inherits(BT,Rl,{__CANCEL__:!0});function R2t(e,t,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new Rl("Request failed with status code "+r.status,[Rl.ERR_BAD_REQUEST,Rl.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function eOr(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function tOr(e,t){e=e||10;const r=new Array(e),n=new Array(e);let i=0,a=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=n[a];o||(o=u),r[i]=l,n[i]=u;let A=a,f=0;for(;A!==i;)f+=r[A++],A=A%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),u-o{r=c,i=null,a&&(clearTimeout(a),a=null),e.apply(null,u)};return[(...u)=>{const c=Date.now(),A=c-r;A>=n?o(u,c):(i=u,a||(a=setTimeout(()=>{a=null,o(i)},n-A)))},()=>i&&o(i)]}const cq=(e,t,r=3)=>{let n=0;const i=tOr(50,250);return rOr(a=>{const o=a.loaded,s=a.lengthComputable?a.total:void 0,l=o-n,u=i(l),c=o<=s;n=o;const A={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&c?(s-o)/u:void 0,event:a,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(A)},r)},vYe=(e,t)=>{const r=e!=null;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},mYe=e=>(...t)=>wi.asap(()=>e(...t)),nOr=e0.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,e0.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(e0.origin),e0.navigator&&/(msie|trident)/i.test(e0.navigator.userAgent)):()=>!0,iOr=e0.hasStandardBrowserEnv?{write(e,t,r,n,i,a){const o=[e+"="+encodeURIComponent(t)];wi.isNumber(r)&&o.push("expires="+new Date(r).toGMTString()),wi.isString(n)&&o.push("path="+n),wi.isString(i)&&o.push("domain="+i),a===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function aOr(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function oOr(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function M2t(e,t,r){let n=!aOr(t);return e&&(n||r==!1)?oOr(e,t):t}const yYe=e=>e instanceof tm?{...e}:e;function H6(e,t){t=t||{};const r={};function n(u,c,A,f){return wi.isPlainObject(u)&&wi.isPlainObject(c)?wi.merge.call({caseless:f},u,c):wi.isPlainObject(c)?wi.merge({},c):wi.isArray(c)?c.slice():c}function i(u,c,A,f){if(wi.isUndefined(c)){if(!wi.isUndefined(u))return n(void 0,u,A,f)}else return n(u,c,A,f)}function a(u,c){if(!wi.isUndefined(c))return n(void 0,c)}function o(u,c){if(wi.isUndefined(c)){if(!wi.isUndefined(u))return n(void 0,u)}else return n(void 0,c)}function s(u,c,A){if(A in t)return n(u,c);if(A in e)return n(void 0,u)}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(u,c,A)=>i(yYe(u),yYe(c),A,!0)};return wi.forEach(Object.keys(Object.assign({},e,t)),function(c){const A=l[c]||i,f=A(e[c],t[c],c);wi.isUndefined(f)&&A!==s||(r[c]=f)}),r}const O2t=e=>{const t=H6({},e);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;t.headers=o=tm.from(o),t.url=_2t(M2t(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(wi.isFormData(r)){if(e0.hasStandardBrowserEnv||e0.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[u,...c]=l?l.split(";").map(A=>A.trim()).filter(Boolean):[];o.setContentType([u||"multipart/form-data",...c].join("; "))}}if(e0.hasStandardBrowserEnv&&(n&&wi.isFunction(n)&&(n=n(t)),n||n!==!1&&nOr(t.url))){const u=i&&a&&iOr.read(a);u&&o.set(i,u)}return t},sOr=typeof XMLHttpRequest<"u",lOr=sOr&&function(e){return new Promise(function(r,n){const i=O2t(e);let a=i.data;const o=tm.from(i.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=i,c,A,f,h,g;function p(){h&&h(),g&&g(),i.cancelToken&&i.cancelToken.unsubscribe(c),i.signal&&i.signal.removeEventListener("abort",c)}let m=new XMLHttpRequest;m.open(i.method.toUpperCase(),i.url,!0),m.timeout=i.timeout;function b(){if(!m)return;const E=tm.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders()),F={data:!s||s==="text"||s==="json"?m.responseText:m.response,status:m.status,statusText:m.statusText,headers:E,config:e,request:m};R2t(function(N){r(N),p()},function(N){n(N),p()},F),m=null}"onloadend"in m?m.onloadend=b:m.onreadystatechange=function(){!m||m.readyState!==4||m.status===0&&!(m.responseURL&&m.responseURL.indexOf("file:")===0)||setTimeout(b)},m.onabort=function(){m&&(n(new Rl("Request aborted",Rl.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new Rl("Network Error",Rl.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let _=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const F=i.transitional||T2t;i.timeoutErrorMessage&&(_=i.timeoutErrorMessage),n(new Rl(_,F.clarifyTimeoutError?Rl.ETIMEDOUT:Rl.ECONNABORTED,e,m)),m=null},a===void 0&&o.setContentType(null),"setRequestHeader"in m&&wi.forEach(o.toJSON(),function(_,F){m.setRequestHeader(F,_)}),wi.isUndefined(i.withCredentials)||(m.withCredentials=!!i.withCredentials),s&&s!=="json"&&(m.responseType=i.responseType),u&&([f,g]=cq(u,!0),m.addEventListener("progress",f)),l&&m.upload&&([A,h]=cq(l),m.upload.addEventListener("progress",A),m.upload.addEventListener("loadend",h)),(i.cancelToken||i.signal)&&(c=E=>{m&&(n(!E||E.type?new BT(null,e,m):E),m.abort(),m=null)},i.cancelToken&&i.cancelToken.subscribe(c),i.signal&&(i.signal.aborted?c():i.signal.addEventListener("abort",c)));const C=eOr(i.url);if(C&&e0.protocols.indexOf(C)===-1){n(new Rl("Unsupported protocol "+C+":",Rl.ERR_BAD_REQUEST,e));return}m.send(a||null)})},uOr=(e,t)=>{const{length:r}=e=e?e.filter(Boolean):[];if(t||r){let n=new AbortController,i;const a=function(u){if(!i){i=!0,s();const c=u instanceof Error?u:this.reason;n.abort(c instanceof Rl?c:new BT(c instanceof Error?c.message:c))}};let o=t&&setTimeout(()=>{o=null,a(new Rl(`timeout ${t} of ms exceeded`,Rl.ETIMEDOUT))},t);const s=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(a):u.removeEventListener("abort",a)}),e=null)};e.forEach(u=>u.addEventListener("abort",a));const{signal:l}=n;return l.unsubscribe=()=>wi.asap(s),l}},cOr=function*(e,t){let r=e.byteLength;if(r{const i=AOr(e,t);let a=0,o,s=l=>{o||(o=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:u,value:c}=await i.next();if(u){s(),l.close();return}let A=c.byteLength;if(r){let f=a+=A;r(f)}l.enqueue(new Uint8Array(c))}catch(u){throw s(u),u}},cancel(l){return s(l),i.return()}},{highWaterMark:2})},pee=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",N2t=pee&&typeof ReadableStream=="function",hOr=pee&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),L2t=(e,...t)=>{try{return!!e(...t)}catch{return!1}},dOr=N2t&&L2t(()=>{let e=!1;const t=new Request(e0.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),wYe=64*1024,ICe=N2t&&L2t(()=>wi.isReadableStream(new Response("").body)),Aq={stream:ICe&&(e=>e.body)};pee&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Aq[t]&&(Aq[t]=wi.isFunction(e[t])?r=>r[t]():(r,n)=>{throw new Rl(`Response type '${t}' is not supported`,Rl.ERR_NOT_SUPPORT,n)})})})(new Response);const gOr=async e=>{if(e==null)return 0;if(wi.isBlob(e))return e.size;if(wi.isSpecCompliantForm(e))return(await new Request(e0.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(wi.isArrayBufferView(e)||wi.isArrayBuffer(e))return e.byteLength;if(wi.isURLSearchParams(e)&&(e=e+""),wi.isString(e))return(await hOr(e)).byteLength},pOr=async(e,t)=>{const r=wi.toFiniteNumber(e.getContentLength());return r??gOr(t)},vOr=pee&&(async e=>{let{url:t,method:r,data:n,signal:i,cancelToken:a,timeout:o,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:c,withCredentials:A="same-origin",fetchOptions:f}=O2t(e);u=u?(u+"").toLowerCase():"text";let h=uOr([i,a&&a.toAbortSignal()],o),g;const p=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let m;try{if(l&&dOr&&r!=="get"&&r!=="head"&&(m=await pOr(c,n))!==0){let F=new Request(t,{method:"POST",body:n,duplex:"half"}),M;if(wi.isFormData(n)&&(M=F.headers.get("content-type"))&&c.setContentType(M),F.body){const[N,P]=vYe(m,cq(mYe(l)));n=bYe(F.body,wYe,N,P)}}wi.isString(A)||(A=A?"include":"omit");const b="credentials"in Request.prototype;g=new Request(t,{...f,signal:h,method:r.toUpperCase(),headers:c.normalize().toJSON(),body:n,duplex:"half",credentials:b?A:void 0});let C=await fetch(g);const E=ICe&&(u==="stream"||u==="response");if(ICe&&(s||E&&p)){const F={};["status","statusText","headers"].forEach(j=>{F[j]=C[j]});const M=wi.toFiniteNumber(C.headers.get("content-length")),[N,P]=s&&vYe(M,cq(mYe(s),!0))||[];C=new Response(bYe(C.body,wYe,N,()=>{P&&P(),p&&p()}),F)}u=u||"text";let _=await Aq[wi.findKey(Aq,u)||"text"](C,e);return!E&&p&&p(),await new Promise((F,M)=>{R2t(F,M,{data:_,headers:tm.from(C.headers),status:C.status,statusText:C.statusText,config:e,request:g})})}catch(b){throw p&&p(),b&&b.name==="TypeError"&&/Load failed|fetch/i.test(b.message)?Object.assign(new Rl("Network Error",Rl.ERR_NETWORK,e,g),{cause:b.cause||b}):Rl.from(b,b&&b.code,e,g)}}),ECe={http:DMr,xhr:lOr,fetch:vOr};wi.forEach(ECe,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const CYe=e=>`- ${e}`,mOr=e=>wi.isFunction(e)||e===null||e===!1,P2t={getAdapter:e=>{e=wi.isArray(e)?e:[e];const{length:t}=e;let r,n;const i={};for(let a=0;a`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?a.length>1?`since : `+a.map(CYe).join(` `):" "+CYe(a[0]):"as no adapter specified";throw new Rl("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:ECe};function Pge(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new BT(null,e)}function IYe(e){return Pge(e),e.headers=tm.from(e.headers),e.data=Lge.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),P2t.getAdapter(e.adapter||BP.adapter)(e).then(function(n){return Pge(e),n.data=Lge.call(e,e.transformResponse,n),n.headers=tm.from(n.headers),n},function(n){return F2t(n)||(Pge(e),n&&n.response&&(n.response.data=Lge.call(e,e.transformResponse,n.response),n.response.headers=tm.from(n.response.headers))),Promise.reject(n)})}const U2t="1.9.0",vee={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{vee[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const EYe={};vee.transitional=function(t,r,n){function i(a,o){return"[Axios v"+U2t+"] Transitional option '"+a+"'"+o+(n?". "+n:"")}return(a,o,s)=>{if(t===!1)throw new Rl(i(o," has been removed"+(r?" in "+r:"")),Rl.ERR_DEPRECATED);return r&&!EYe[o]&&(EYe[o]=!0,console.warn(i(o," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(a,o,s):!0}};vee.spelling=function(t){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${t}`),!0)};function yOr(e,t,r){if(typeof e!="object")throw new Rl("options must be an object",Rl.ERR_BAD_OPTION_VALUE);const n=Object.keys(e);let i=n.length;for(;i-- >0;){const a=n[i],o=t[a];if(o){const s=e[a],l=s===void 0||o(s,a,e);if(l!==!0)throw new Rl("option "+a+" must be "+l,Rl.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Rl("Unknown option "+a,Rl.ERR_BAD_OPTION)}}const mV={assertOptions:yOr,validators:vee},Iw=mV.validators;class s6{constructor(t){this.defaults=t||{},this.interceptors={request:new gYe,response:new gYe}}async request(t,r){try{return await this._request(t,r)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?a&&!String(n.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(n.stack+=` `+a):n.stack=a}catch{}}throw n}}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=H6(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:a}=r;n!==void 0&&mV.assertOptions(n,{silentJSONParsing:Iw.transitional(Iw.boolean),forcedJSONParsing:Iw.transitional(Iw.boolean),clarifyTimeoutError:Iw.transitional(Iw.boolean)},!1),i!=null&&(wi.isFunction(i)?r.paramsSerializer={serialize:i}:mV.assertOptions(i,{encode:Iw.function,serialize:Iw.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),mV.assertOptions(r,{baseUrl:Iw.spelling("baseURL"),withXsrfToken:Iw.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let o=a&&wi.merge(a.common,a[r.method]);a&&wi.forEach(["delete","get","head","post","put","patch","common"],g=>{delete a[g]}),r.headers=tm.concat(o,a);const s=[];let l=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(r)===!1||(l=l&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});const u=[];this.interceptors.response.forEach(function(p){u.push(p.fulfilled,p.rejected)});let c,A=0,f;if(!l){const g=[IYe.bind(this),void 0];for(g.unshift.apply(g,s),g.push.apply(g,u),f=g.length,c=Promise.resolve(r);A{if(!n._listeners)return;let a=n._listeners.length;for(;a-- >0;)n._listeners[a](i);n._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{n.subscribe(s),a=s}).then(i);return o.cancel=function(){n.unsubscribe(a)},o},t(function(a,o,s){n.reason||(n.reason=new BT(a,o,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const t=new AbortController,r=n=>{t.abort(n)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new f4e(function(i){t=i}),cancel:t}}}function bOr(e){return function(r){return e.apply(null,r)}}function wOr(e){return wi.isObject(e)&&e.isAxiosError===!0}const BCe={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(BCe).forEach(([e,t])=>{BCe[t]=e});function H2t(e){const t=new s6(e),r=m2t(s6.prototype.request,t);return wi.extend(r,s6.prototype,t,{allOwnKeys:!0}),wi.extend(r,t,null,{allOwnKeys:!0}),r.create=function(i){return H2t(H6(e,i))},r}const Yd=H2t(BP);Yd.Axios=s6;Yd.CanceledError=BT;Yd.CancelToken=f4e;Yd.isCancel=F2t;Yd.VERSION=U2t;Yd.toFormData=gee;Yd.AxiosError=Rl;Yd.Cancel=Yd.CanceledError;Yd.all=function(t){return Promise.all(t)};Yd.spread=bOr;Yd.isAxiosError=wOr;Yd.mergeConfig=H6;Yd.AxiosHeaders=tm;Yd.formToJSON=e=>D2t(wi.isHTMLForm(e)?new FormData(e):e);Yd.getAdapter=P2t.getAdapter;Yd.HttpStatusCode=BCe;Yd.default=Yd;const BYe={};function COr(e){let t=BYe[e];if(t)return t;t=BYe[e]=[];for(let r=0;r<128;r++){const n=String.fromCharCode(r);t.push(n)}for(let r=0;r=55296&&c<=57343?i+="���":i+=String.fromCharCode(c),a+=6;continue}}if((s&248)===240&&a+91114111?i+="����":(A-=65536,i+=String.fromCharCode(55296+(A>>10),56320+(A&1023))),a+=9;continue}}i+="�"}return i})}b7.defaultChars=";/?:@&=+$,#";b7.componentChars="";const xYe={};function IOr(e){let t=xYe[e];if(t)return t;t=xYe[e]=[];for(let r=0;r<128;r++){const n=String.fromCharCode(r);/^[0-9a-z]$/i.test(n)?t.push(n):t.push("%"+("0"+r.toString(16).toUpperCase()).slice(-2))}for(let r=0;r"u"&&(r=!0);const n=IOr(t);let i="";for(let a=0,o=e.length;a=55296&&s<=57343){if(s>=55296&&s<=56319&&a+1=56320&&l<=57343){i+=encodeURIComponent(e[a]+e[a+1]),a++;continue}}i+="%EF%BF%BD";continue}i+=encodeURIComponent(e[a])}return i}xP.defaultChars=";/?:@&=+$,-_.!~*'()#";xP.componentChars="-_.!~*'()";function h4e(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function fq(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const EOr=/^([a-z0-9.+-]+:)/i,BOr=/:[0-9]*$/,xOr=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,SOr=["<",">",'"',"`"," ","\r",` `," "],kOr=["{","}","|","\\","^","`"].concat(SOr),QOr=["'"].concat(kOr),SYe=["%","/","?",";","#"].concat(QOr),kYe=["/","?","#"],_Or=255,QYe=/^[+a-z0-9A-Z_-]{0,63}$/,TOr=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,_Ye={javascript:!0,"javascript:":!0},TYe={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function d4e(e,t){if(e&&e instanceof fq)return e;const r=new fq;return r.parse(e,t),r}fq.prototype.parse=function(e,t){let r,n,i,a=e;if(a=a.trim(),!t&&e.split("#").length===1){const u=xOr.exec(a);if(u)return this.pathname=u[1],u[2]&&(this.search=u[2]),this}let o=EOr.exec(a);if(o&&(o=o[0],r=o.toLowerCase(),this.protocol=o,a=a.substr(o.length)),(t||o||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(i=a.substr(0,2)==="//",i&&!(o&&_Ye[o])&&(a=a.substr(2),this.slashes=!0)),!_Ye[o]&&(i||o&&!TYe[o])){let u=-1;for(let g=0;g127?C+="x":C+=b[E];if(!C.match(QYe)){const E=g.slice(0,p),_=g.slice(p+1),F=b.match(TOr);F&&(E.push(F[1]),_.unshift(F[2])),_.length&&(a=_.join(".")+a),this.hostname=E.join(".");break}}}}this.hostname.length>_Or&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const s=a.indexOf("#");s!==-1&&(this.hash=a.substr(s),a=a.slice(0,s));const l=a.indexOf("?");return l!==-1&&(this.search=a.substr(l),a=a.slice(0,l)),a&&(this.pathname=a),TYe[r]&&this.hostname&&!this.pathname&&(this.pathname=""),this};fq.prototype.parseHost=function(e){let t=BOr.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const DOr=Object.freeze(Object.defineProperty({__proto__:null,decode:b7,encode:xP,format:h4e,parse:d4e},Symbol.toStringTag,{value:"Module"})),j2t=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,G2t=/[\0-\x1F\x7F-\x9F]/,FOr=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,g4e=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,$2t=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,z2t=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,ROr=Object.freeze(Object.defineProperty({__proto__:null,Any:j2t,Cc:G2t,Cf:FOr,P:g4e,S:$2t,Z:z2t},Symbol.toStringTag,{value:"Module"})),MOr=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),OOr=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var Uge;const NOr=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),LOr=(Uge=String.fromCodePoint)!==null&&Uge!==void 0?Uge:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function POr(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=NOr.get(e))!==null&&t!==void 0?t:e}var yg;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(yg||(yg={}));const UOr=32;var $3;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})($3||($3={}));function xCe(e){return e>=yg.ZERO&&e<=yg.NINE}function HOr(e){return e>=yg.UPPER_A&&e<=yg.UPPER_F||e>=yg.LOWER_A&&e<=yg.LOWER_F}function jOr(e){return e>=yg.UPPER_A&&e<=yg.UPPER_Z||e>=yg.LOWER_A&&e<=yg.LOWER_Z||xCe(e)}function GOr(e){return e===yg.EQUALS||jOr(e)}var gg;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(gg||(gg={}));var b3;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(b3||(b3={}));class $Or{constructor(t,r,n){this.decodeTree=t,this.emitCodePoint=r,this.errors=n,this.state=gg.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=b3.Strict}startEntity(t){this.decodeMode=t,this.state=gg.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,r){switch(this.state){case gg.EntityStart:return t.charCodeAt(r)===yg.NUM?(this.state=gg.NumericStart,this.consumed+=1,this.stateNumericStart(t,r+1)):(this.state=gg.NamedEntity,this.stateNamedEntity(t,r));case gg.NumericStart:return this.stateNumericStart(t,r);case gg.NumericDecimal:return this.stateNumericDecimal(t,r);case gg.NumericHex:return this.stateNumericHex(t,r);case gg.NamedEntity:return this.stateNamedEntity(t,r)}}stateNumericStart(t,r){return r>=t.length?-1:(t.charCodeAt(r)|UOr)===yg.LOWER_X?(this.state=gg.NumericHex,this.consumed+=1,this.stateNumericHex(t,r+1)):(this.state=gg.NumericDecimal,this.stateNumericDecimal(t,r))}addToNumericResult(t,r,n,i){if(r!==n){const a=n-r;this.result=this.result*Math.pow(i,a)+parseInt(t.substr(r,a),i),this.consumed+=a}}stateNumericHex(t,r){const n=r;for(;r>14;for(;r>14,a!==0){if(o===yg.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==b3.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:r,decodeTree:n}=this,i=(n[r]&$3.VALUE_LENGTH)>>14;return this.emitNamedEntityData(r,i,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,r,n){const{decodeTree:i}=this;return this.emitCodePoint(r===1?i[t]&~$3.VALUE_LENGTH:i[t+1],n),r===3&&this.emitCodePoint(i[t+2],n),n}end(){var t;switch(this.state){case gg.NamedEntity:return this.result!==0&&(this.decodeMode!==b3.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case gg.NumericDecimal:return this.emitNumericEntity(0,2);case gg.NumericHex:return this.emitNumericEntity(0,3);case gg.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case gg.EntityStart:return 0}}}function K2t(e){let t="";const r=new $Or(e,n=>t+=LOr(n));return function(i,a){let o=0,s=0;for(;(s=i.indexOf("&",s))>=0;){t+=i.slice(o,s),r.startEntity(a);const u=r.write(i,s+1);if(u<0){o=s+r.end();break}o=s+u,s=u===0?o+1:o}const l=t+i.slice(o);return t="",l}}function zOr(e,t,r,n){const i=(t&$3.BRANCH_LENGTH)>>7,a=t&$3.JUMP_TABLE;if(i===0)return a!==0&&n===a?r:-1;if(a){const l=n-a;return l<0||l>=i?-1:e[r+l]-1}let o=r,s=o+i-1;for(;o<=s;){const l=o+s>>>1,u=e[l];if(un)s=l-1;else return e[l+i]}return-1}const KOr=K2t(MOr);K2t(OOr);function V2t(e,t=b3.Legacy){return KOr(e,t)}function VOr(e){return Object.prototype.toString.call(e)}function p4e(e){return VOr(e)==="[object String]"}const WOr=Object.prototype.hasOwnProperty;function YOr(e,t){return WOr.call(e,t)}function mee(e){return Array.prototype.slice.call(arguments,1).forEach(function(r){if(r){if(typeof r!="object")throw new TypeError(r+"must be object");Object.keys(r).forEach(function(n){e[n]=r[n]})}}),e}function W2t(e,t,r){return[].concat(e.slice(0,t),r,e.slice(t+1))}function v4e(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function hq(e){if(e>65535){e-=65536;const t=55296+(e>>10),r=56320+(e&1023);return String.fromCharCode(t,r)}return String.fromCharCode(e)}const Y2t=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,qOr=/&([a-z#][a-z0-9]{1,31});/gi,JOr=new RegExp(Y2t.source+"|"+qOr.source,"gi"),XOr=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function ZOr(e,t){if(t.charCodeAt(0)===35&&XOr.test(t)){const n=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return v4e(n)?hq(n):e}const r=V2t(e);return r!==e?r:e}function eNr(e){return e.indexOf("\\")<0?e:e.replace(Y2t,"$1")}function w7(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(JOr,function(t,r,n){return r||ZOr(t,n)})}const tNr=/[&<>"]/,rNr=/[&<>"]/g,nNr={"&":"&","<":"<",">":">",'"':"""};function iNr(e){return nNr[e]}function _5(e){return tNr.test(e)?e.replace(rNr,iNr):e}const aNr=/[.?*+^$[\]\\(){}|-]/g;function oNr(e){return e.replace(aNr,"\\$&")}function IA(e){switch(e){case 9:case 32:return!0}return!1}function WN(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function YN(e){return g4e.test(e)||$2t.test(e)}function qN(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function yee(e){return e=e.trim().replace(/\s+/g," "),"ẞ".toLowerCase()==="Ṿ"&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const sNr={mdurl:DOr,ucmicro:ROr},lNr=Object.freeze(Object.defineProperty({__proto__:null,arrayReplaceAt:W2t,assign:mee,escapeHtml:_5,escapeRE:oNr,fromCodePoint:hq,has:YOr,isMdAsciiPunct:qN,isPunctChar:YN,isSpace:IA,isString:p4e,isValidEntityCode:v4e,isWhiteSpace:WN,lib:sNr,normalizeReference:yee,unescapeAll:w7,unescapeMd:eNr},Symbol.toStringTag,{value:"Module"}));function uNr(e,t,r){let n,i,a,o;const s=e.posMax,l=e.pos;for(e.pos=t+1,n=1;e.pos32))return a;if(n===41){if(o===0)break;o--}i++}return t===i||o!==0||(a.str=w7(e.slice(t,i)),a.pos=i,a.ok=!0),a}function ANr(e,t,r,n){let i,a=t;const o={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(n)o.str=n.str,o.marker=n.marker;else{if(a>=r)return o;let s=e.charCodeAt(a);if(s!==34&&s!==39&&s!==40)return o;t++,a++,s===40&&(s=41),o.marker=s}for(;a"+_5(a.content)+""};UC.code_block=function(e,t,r,n,i){const a=e[t];return""+_5(e[t].content)+` `};UC.fence=function(e,t,r,n,i){const a=e[t],o=a.info?w7(a.info).trim():"";let s="",l="";if(o){const c=o.split(/(\s+)/g);s=c[0],l=c.slice(2).join("")}let u;if(r.highlight?u=r.highlight(a.content,s,l)||_5(a.content):u=_5(a.content),u.indexOf("${u} `}return`
    ${u}
    `};UC.image=function(e,t,r,n,i){const a=e[t];return a.attrs[a.attrIndex("alt")][1]=i.renderInlineAsText(a.children,r,n),i.renderToken(e,t,r)};UC.hardbreak=function(e,t,r){return r.xhtmlOut?`
    `:`
    `};UC.softbreak=function(e,t,r){return r.breaks?r.xhtmlOut?`
    `:`
    `:` `};UC.text=function(e,t){return _5(e[t].content)};UC.html_block=function(e,t){return e[t].content};UC.html_inline=function(e,t){return e[t].content};function xT(){this.rules=mee({},UC)}xT.prototype.renderAttrs=function(t){let r,n,i;if(!t.attrs)return"";for(i="",r=0,n=t.attrs.length;r `:">",a};xT.prototype.renderInline=function(e,t,r){let n="";const i=this.rules;for(let a=0,o=e.length;a=0&&(n=this.attrs[r][1]),n};w2.prototype.attrJoin=function(t,r){const n=this.attrIndex(t);n<0?this.attrPush([t,r]):this.attrs[n][1]=this.attrs[n][1]+" "+r};function q2t(e,t,r){this.src=e,this.env=r,this.tokens=[],this.inlineMode=!1,this.md=t}q2t.prototype.Token=w2;const hNr=/\r\n?|\n/g,dNr=/\0/g;function gNr(e){let t;t=e.src.replace(hNr,` `),t=t.replace(dNr,"�"),e.src=t}function pNr(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}function vNr(e){const t=e.tokens;for(let r=0,n=t.length;r\s]/i.test(e)}function yNr(e){return/^<\/a\s*>/i.test(e)}function bNr(e){const t=e.tokens;if(e.md.options.linkify)for(let r=0,n=t.length;r=0;o--){const s=i[o];if(s.type==="link_close"){for(o--;i[o].level!==s.level&&i[o].type!=="link_open";)o--;continue}if(s.type==="html_inline"&&(mNr(s.content)&&a>0&&a--,yNr(s.content)&&a++),!(a>0)&&s.type==="text"&&e.md.linkify.test(s.content)){const l=s.content;let u=e.md.linkify.match(l);const c=[];let A=s.level,f=0;u.length>0&&u[0].index===0&&o>0&&i[o-1].type==="text_special"&&(u=u.slice(1));for(let h=0;hf){const F=new e.Token("text","",0);F.content=l.slice(f,b),F.level=A,c.push(F)}const C=new e.Token("link_open","a",1);C.attrs=[["href",p]],C.level=A++,C.markup="linkify",C.info="auto",c.push(C);const E=new e.Token("text","",0);E.content=m,E.level=A,c.push(E);const _=new e.Token("link_close","a",-1);_.level=--A,_.markup="linkify",_.info="auto",c.push(_),f=u[h].lastIndex}if(f=0;r--){const n=e[r];n.type==="text"&&!t&&(n.content=n.content.replace(CNr,ENr)),n.type==="link_open"&&n.info==="auto"&&t--,n.type==="link_close"&&n.info==="auto"&&t++}}function xNr(e){let t=0;for(let r=e.length-1;r>=0;r--){const n=e[r];n.type==="text"&&!t&&J2t.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/mg,"$1—").replace(/(^|\s)--(?=\s|$)/mg,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/mg,"$1–")),n.type==="link_open"&&n.info==="auto"&&t--,n.type==="link_close"&&n.info==="auto"&&t++}}function SNr(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(wNr.test(e.tokens[t].content)&&BNr(e.tokens[t].children),J2t.test(e.tokens[t].content)&&xNr(e.tokens[t].children))}const kNr=/['"]/,DYe=/['"]/g,FYe="’";function hz(e,t,r){return e.slice(0,t)+r+e.slice(t+1)}function QNr(e,t){let r;const n=[];for(let i=0;i=0&&!(n[r].level<=o);r--);if(n.length=r+1,a.type!=="text")continue;let s=a.content,l=0,u=s.length;e:for(;l=0)g=s.charCodeAt(c.index-1);else for(r=i-1;r>=0&&!(e[r].type==="softbreak"||e[r].type==="hardbreak");r--)if(e[r].content){g=e[r].content.charCodeAt(e[r].content.length-1);break}let p=32;if(l=48&&g<=57&&(f=A=!1),A&&f&&(A=m,f=b),!A&&!f){h&&(a.content=hz(a.content,c.index,FYe));continue}if(f)for(r=n.length-1;r>=0;r--){let _=n[r];if(n[r].level=0;t--)e.tokens[t].type!=="inline"||!kNr.test(e.tokens[t].content)||QNr(e.tokens[t].children,e)}function TNr(e){let t,r;const n=e.tokens,i=n.length;for(let a=0;a0&&this.level++,this.tokens.push(n),n};HC.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};HC.prototype.skipEmptyLines=function(t){for(let r=this.lineMax;tr;)if(!IA(this.src.charCodeAt(--t)))return t+1;return t};HC.prototype.skipChars=function(t,r){for(let n=this.src.length;tn;)if(r!==this.src.charCodeAt(--t))return t+1;return t};HC.prototype.getLines=function(t,r,n,i){if(t>=r)return"";const a=new Array(r-t);for(let o=0,s=t;sn?a[o]=new Array(l-n+1).join(" ")+this.src.slice(c,A):a[o]=this.src.slice(c,A)}return a.join("")};HC.prototype.Token=w2;const DNr=65536;function jge(e,t){const r=e.bMarks[t]+e.tShift[t],n=e.eMarks[t];return e.src.slice(r,n)}function RYe(e){const t=[],r=e.length;let n=0,i=e.charCodeAt(n),a=!1,o=0,s="";for(;nr)return!1;let i=t+1;if(e.sCount[i]=4)return!1;let a=e.bMarks[i]+e.tShift[i];if(a>=e.eMarks[i])return!1;const o=e.src.charCodeAt(a++);if(o!==124&&o!==45&&o!==58||a>=e.eMarks[i])return!1;const s=e.src.charCodeAt(a++);if(s!==124&&s!==45&&s!==58&&!IA(s)||o===45&&IA(s))return!1;for(;a=4)return!1;u=RYe(l),u.length&&u[0]===""&&u.shift(),u.length&&u[u.length-1]===""&&u.pop();const A=u.length;if(A===0||A!==c.length)return!1;if(n)return!0;const f=e.parentType;e.parentType="table";const h=e.md.block.ruler.getRules("blockquote"),g=e.push("table_open","table",1),p=[t,0];g.map=p;const m=e.push("thead_open","thead",1);m.map=[t,t+1];const b=e.push("tr_open","tr",1);b.map=[t,t+1];for(let _=0;_=4||(u=RYe(l),u.length&&u[0]===""&&u.shift(),u.length&&u[u.length-1]===""&&u.pop(),E+=A-u.length,E>DNr))break;if(i===t+2){const M=e.push("tbody_open","tbody",1);M.map=C=[t+2,0]}const F=e.push("tr_open","tr",1);F.map=[i,i+1];for(let M=0;M=4){n++,i=n;continue}break}e.line=i;const a=e.push("code_block","code",0);return a.content=e.getLines(t,i,4+e.blkIndent,!1)+` `,a.map=[t,e.line],!0}function MNr(e,t,r,n){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||i+3>a)return!1;const o=e.src.charCodeAt(i);if(o!==126&&o!==96)return!1;let s=i;i=e.skipChars(i,o);let l=i-s;if(l<3)return!1;const u=e.src.slice(s,i),c=e.src.slice(i,a);if(o===96&&c.indexOf(String.fromCharCode(o))>=0)return!1;if(n)return!0;let A=t,f=!1;for(;A++,!(A>=r||(i=s=e.bMarks[A]+e.tShift[A],a=e.eMarks[A],i=4)&&(i=e.skipChars(i,o),!(i-s=4||e.src.charCodeAt(i)!==62)return!1;if(n)return!0;const s=[],l=[],u=[],c=[],A=e.md.block.ruler.getRules("blockquote"),f=e.parentType;e.parentType="blockquote";let h=!1,g;for(g=t;g=a)break;if(e.src.charCodeAt(i++)===62&&!E){let F=e.sCount[g]+1,M,N;e.src.charCodeAt(i)===32?(i++,F++,N=!1,M=!0):e.src.charCodeAt(i)===9?(M=!0,(e.bsCount[g]+F)%4===3?(i++,F++,N=!1):N=!0):M=!1;let P=F;for(s.push(e.bMarks[g]),e.bMarks[g]=i;i=a,l.push(e.bsCount[g]),e.bsCount[g]=e.sCount[g]+1+(M?1:0),u.push(e.sCount[g]),e.sCount[g]=P-F,c.push(e.tShift[g]),e.tShift[g]=i-e.bMarks[g];continue}if(h)break;let _=!1;for(let F=0,M=A.length;F";const b=[t,0];m.map=b,e.md.block.tokenize(e,t,g);const C=e.push("blockquote_close","blockquote",-1);C.markup=">",e.lineMax=o,e.parentType=f,b[1]=e.line;for(let E=0;E=4)return!1;let a=e.bMarks[t]+e.tShift[t];const o=e.src.charCodeAt(a++);if(o!==42&&o!==45&&o!==95)return!1;let s=1;for(;a=n)return-1;let a=e.src.charCodeAt(i++);if(a<48||a>57)return-1;for(;;){if(i>=n)return-1;if(a=e.src.charCodeAt(i++),a>=48&&a<=57){if(i-r>=10)return-1;continue}if(a===41||a===46)break;return-1}return i=4||e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]=e.blkIndent&&(c=!0);let A,f,h;if((h=OYe(e,l))>=0){if(A=!0,o=e.bMarks[l]+e.tShift[l],f=Number(e.src.slice(o,h-1)),c&&f!==1)return!1}else if((h=MYe(e,l))>=0)A=!1;else return!1;if(c&&e.skipSpaces(h)>=e.eMarks[l])return!1;if(n)return!0;const g=e.src.charCodeAt(h-1),p=e.tokens.length;A?(s=e.push("ordered_list_open","ol",1),f!==1&&(s.attrs=[["start",f]])):s=e.push("bullet_list_open","ul",1);const m=[l,0];s.map=m,s.markup=String.fromCharCode(g);let b=!1;const C=e.md.block.ruler.getRules("list"),E=e.parentType;for(e.parentType="list";l=i?N=1:N=F-_,N>4&&(N=1);const P=_+N;s=e.push("list_item_open","li",1),s.markup=String.fromCharCode(g);const j=[l,0];s.map=j,A&&(s.info=e.src.slice(o,h-1));const z=e.tight,W=e.tShift[l],Y=e.sCount[l],ee=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=P,e.tight=!0,e.tShift[l]=M-e.bMarks[l],e.sCount[l]=F,M>=i&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,r):e.md.block.tokenize(e,l,r,!0),(!e.tight||b)&&(u=!1),b=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=ee,e.tShift[l]=W,e.sCount[l]=Y,e.tight=z,s=e.push("list_item_close","li",-1),s.markup=String.fromCharCode(g),l=e.line,j[1]=l,l>=r||e.sCount[l]=4)break;let q=!1;for(let ae=0,se=C.length;ae=4||e.src.charCodeAt(i)!==91)return!1;function s(C){const E=e.lineMax;if(C>=E||e.isEmpty(C))return null;let _=!1;if(e.sCount[C]-e.blkIndent>3&&(_=!0),e.sCount[C]<0&&(_=!0),!_){const N=e.md.block.ruler.getRules("reference"),P=e.parentType;e.parentType="reference";let j=!1;for(let z=0,W=N.length;z"u"&&(e.env.references={}),typeof e.env.references[b]>"u"&&(e.env.references[b]={title:m,href:A}),e.line=o),!0):!1}const HNr=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],jNr="[a-zA-Z_:][a-zA-Z0-9:._-]*",GNr="[^\"'=<>`\\x00-\\x20]+",$Nr="'[^']*'",zNr='"[^"]*"',KNr="(?:"+GNr+"|"+$Nr+"|"+zNr+")",VNr="(?:\\s+"+jNr+"(?:\\s*=\\s*"+KNr+")?)",X2t="<[A-Za-z][A-Za-z0-9\\-]*"+VNr+"*\\s*\\/?>",Z2t="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",WNr="",YNr="<[?][\\s\\S]*?[?]>",qNr="]*>",JNr="",XNr=new RegExp("^(?:"+X2t+"|"+Z2t+"|"+WNr+"|"+YNr+"|"+qNr+"|"+JNr+")"),ZNr=new RegExp("^(?:"+X2t+"|"+Z2t+")"),v8=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp("^|$))","i"),/^$/,!0],[new RegExp(ZNr.source+"\\s*$"),/^$/,!1]];function eLr(e,t,r,n){let i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(i)!==60)return!1;let o=e.src.slice(i,a),s=0;for(;s=4)return!1;let o=e.src.charCodeAt(i);if(o!==35||i>=a)return!1;let s=1;for(o=e.src.charCodeAt(++i);o===35&&i6||ii&&IA(e.src.charCodeAt(l-1))&&(a=l),e.line=t+1;const u=e.push("heading_open","h"+String(s),1);u.markup="########".slice(0,s),u.map=[t,e.line];const c=e.push("inline","",0);c.content=e.src.slice(i,a).trim(),c.map=[t,e.line],c.children=[];const A=e.push("heading_close","h"+String(s),-1);return A.markup="########".slice(0,s),!0}function rLr(e,t,r){const n=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const i=e.parentType;e.parentType="paragraph";let a=0,o,s=t+1;for(;s3)continue;if(e.sCount[s]>=e.blkIndent){let h=e.bMarks[s]+e.tShift[s];const g=e.eMarks[s];if(h=g))){a=o===61?1:2;break}}if(e.sCount[s]<0)continue;let f=!1;for(let h=0,g=n.length;h3||e.sCount[a]<0)continue;let u=!1;for(let c=0,A=n.length;c=r||e.sCount[o]=a){e.line=r;break}const l=e.line;let u=!1;for(let c=0;c=e.line)throw new Error("block rule didn't increment state.line");break}if(!u)throw new Error("none of the block rules matched");e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),o=e.line,o0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(n),this.tokens_meta.push(i),n};SP.prototype.scanDelims=function(e,t){const r=this.posMax,n=this.src.charCodeAt(e),i=e>0?this.src.charCodeAt(e-1):32;let a=e;for(;a0)return!1;const r=e.pos,n=e.posMax;if(r+3>n||e.src.charCodeAt(r)!==58||e.src.charCodeAt(r+1)!==47||e.src.charCodeAt(r+2)!==47)return!1;const i=e.pending.match(oLr);if(!i)return!1;const a=i[1],o=e.md.linkify.matchAtStart(e.src.slice(r-a.length));if(!o)return!1;let s=o.url;if(s.length<=a.length)return!1;s=s.replace(/\*+$/,"");const l=e.md.normalizeLink(s);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-a.length);const u=e.push("link_open","a",1);u.attrs=[["href",l]],u.markup="linkify",u.info="auto";const c=e.push("text","",0);c.content=e.md.normalizeLinkText(s);const A=e.push("link_close","a",-1);A.markup="linkify",A.info="auto"}return e.pos+=s.length-a.length,!0}function lLr(e,t){let r=e.pos;if(e.src.charCodeAt(r)!==10)return!1;const n=e.pending.length-1,i=e.posMax;if(!t)if(n>=0&&e.pending.charCodeAt(n)===32)if(n>=1&&e.pending.charCodeAt(n-1)===32){let a=n-1;for(;a>=1&&e.pending.charCodeAt(a-1)===32;)a--;e.pending=e.pending.slice(0,a),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(r++;r?@[]^_`{|}~-".split("").forEach(function(e){y4e[e.charCodeAt(0)]=1});function uLr(e,t){let r=e.pos;const n=e.posMax;if(e.src.charCodeAt(r)!==92||(r++,r>=n))return!1;let i=e.src.charCodeAt(r);if(i===10){for(t||e.push("hardbreak","br",0),r++;r=55296&&i<=56319&&r+1=56320&&s<=57343&&(a+=e.src[r+1],r++)}const o="\\"+a;if(!t){const s=e.push("text_special","",0);i<256&&y4e[i]!==0?s.content=a:s.content=o,s.markup=o,s.info="escape"}return e.pos=r+1,!0}function cLr(e,t){let r=e.pos;if(e.src.charCodeAt(r)!==96)return!1;const i=r;r++;const a=e.posMax;for(;r=0;n--){const i=t[n];if(i.marker!==95&&i.marker!==42||i.end===-1)continue;const a=t[i.end],o=n>0&&t[n-1].end===i.end+1&&t[n-1].marker===i.marker&&t[n-1].token===i.token-1&&t[i.end+1].token===a.token+1,s=String.fromCharCode(i.marker),l=e.tokens[i.token];l.type=o?"strong_open":"em_open",l.tag=o?"strong":"em",l.nesting=1,l.markup=o?s+s:s,l.content="";const u=e.tokens[a.token];u.type=o?"strong_close":"em_close",u.tag=o?"strong":"em",u.nesting=-1,u.markup=o?s+s:s,u.content="",o&&(e.tokens[t[n-1].token].content="",e.tokens[t[i.end+1].token].content="",n--)}}function dLr(e){const t=e.tokens_meta,r=e.tokens_meta.length;LYe(e,e.delimiters);for(let n=0;n=A)return!1;if(l=g,i=e.md.helpers.parseLinkDestination(e.src,g,e.posMax),i.ok){for(o=e.md.normalizeLink(i.str),e.md.validateLink(o)?g=i.pos:o="",l=g;g=A||e.src.charCodeAt(g)!==41)&&(u=!0),g++}if(u){if(typeof e.env.references>"u")return!1;if(g=0?n=e.src.slice(l,g++):g=h+1):g=h+1,n||(n=e.src.slice(f,h)),a=e.env.references[yee(n)],!a)return e.pos=c,!1;o=a.href,s=a.title}if(!t){e.pos=f,e.posMax=h;const p=e.push("link_open","a",1),m=[["href",o]];p.attrs=m,s&&m.push(["title",s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=g,e.posMax=A,!0}function pLr(e,t){let r,n,i,a,o,s,l,u,c="";const A=e.pos,f=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const h=e.pos+2,g=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(g<0)return!1;if(a=g+1,a=f)return!1;for(u=a,s=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),s.ok&&(c=e.md.normalizeLink(s.str),e.md.validateLink(c)?a=s.pos:c=""),u=a;a=f||e.src.charCodeAt(a)!==41)return e.pos=A,!1;a++}else{if(typeof e.env.references>"u")return!1;if(a=0?i=e.src.slice(u,a++):a=g+1):a=g+1,i||(i=e.src.slice(h,g)),o=e.env.references[yee(i)],!o)return e.pos=A,!1;c=o.href,l=o.title}if(!t){n=e.src.slice(h,g);const p=[];e.md.inline.parse(n,e.md,e.env,p);const m=e.push("image","img",0),b=[["src",c],["alt",""]];m.attrs=b,m.children=p,m.content=n,l&&b.push(["title",l])}return e.pos=a,e.posMax=f,!0}const vLr=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,mLr=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function yLr(e,t){let r=e.pos;if(e.src.charCodeAt(r)!==60)return!1;const n=e.pos,i=e.posMax;for(;;){if(++r>=i)return!1;const o=e.src.charCodeAt(r);if(o===60)return!1;if(o===62)break}const a=e.src.slice(n+1,r);if(mLr.test(a)){const o=e.md.normalizeLink(a);if(!e.md.validateLink(o))return!1;if(!t){const s=e.push("link_open","a",1);s.attrs=[["href",o]],s.markup="autolink",s.info="auto";const l=e.push("text","",0);l.content=e.md.normalizeLinkText(a);const u=e.push("link_close","a",-1);u.markup="autolink",u.info="auto"}return e.pos+=a.length+2,!0}if(vLr.test(a)){const o=e.md.normalizeLink("mailto:"+a);if(!e.md.validateLink(o))return!1;if(!t){const s=e.push("link_open","a",1);s.attrs=[["href",o]],s.markup="autolink",s.info="auto";const l=e.push("text","",0);l.content=e.md.normalizeLinkText(a);const u=e.push("link_close","a",-1);u.markup="autolink",u.info="auto"}return e.pos+=a.length+2,!0}return!1}function bLr(e){return/^\s]/i.test(e)}function wLr(e){return/^<\/a\s*>/i.test(e)}function CLr(e){const t=e|32;return t>=97&&t<=122}function ILr(e,t){if(!e.md.options.html)return!1;const r=e.posMax,n=e.pos;if(e.src.charCodeAt(n)!==60||n+2>=r)return!1;const i=e.src.charCodeAt(n+1);if(i!==33&&i!==63&&i!==47&&!CLr(i))return!1;const a=e.src.slice(n).match(XNr);if(!a)return!1;if(!t){const o=e.push("html_inline","",0);o.content=a[0],bLr(o.content)&&e.linkLevel++,wLr(o.content)&&e.linkLevel--}return e.pos+=a[0].length,!0}const ELr=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,BLr=/^&([a-z][a-z0-9]{1,31});/i;function xLr(e,t){const r=e.pos,n=e.posMax;if(e.src.charCodeAt(r)!==38||r+1>=n)return!1;if(e.src.charCodeAt(r+1)===35){const a=e.src.slice(r).match(ELr);if(a){if(!t){const o=a[1][0].toLowerCase()==="x"?parseInt(a[1].slice(1),16):parseInt(a[1],10),s=e.push("text_special","",0);s.content=v4e(o)?hq(o):hq(65533),s.markup=a[0],s.info="entity"}return e.pos+=a[0].length,!0}}else{const a=e.src.slice(r).match(BLr);if(a){const o=V2t(a[0]);if(o!==a[0]){if(!t){const s=e.push("text_special","",0);s.content=o,s.markup=a[0],s.info="entity"}return e.pos+=a[0].length,!0}}}return!1}function PYe(e){const t={},r=e.length;if(!r)return;let n=0,i=-2;const a=[];for(let o=0;ol;u-=a[u]+1){const A=e[u];if(A.marker===s.marker&&A.open&&A.end<0){let f=!1;if((A.close||s.open)&&(A.length+s.length)%3===0&&(A.length%3!==0||s.length%3!==0)&&(f=!0),!f){const h=u>0&&!e[u-1].open?a[u-1]+1:0;a[o]=o-u+h,a[u]=h,s.open=!1,A.end=o,A.close=!1,c=-1,i=-2;break}}}c!==-1&&(t[s.marker][(s.open?3:0)+(s.length||0)%3]=c)}}function SLr(e){const t=e.tokens_meta,r=e.tokens_meta.length;PYe(e.delimiters);for(let n=0;n0&&n++,i[t].type==="text"&&t+1=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;o||e.pos++,a[t]=e.pos};kP.prototype.tokenize=function(e){const t=this.ruler.getRules(""),r=t.length,n=e.posMax,i=e.md.options.maxNesting;for(;e.pos=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(o){if(e.pos>=n)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};kP.prototype.parse=function(e,t,r,n){const i=new this.State(e,t,r,n);this.tokenize(i);const a=this.ruler2.getRules(""),o=a.length;for(let s=0;s|$))",t.tpl_email_fuzzy="(^|"+r+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function SCe(e){return Array.prototype.slice.call(arguments,1).forEach(function(r){r&&Object.keys(r).forEach(function(n){e[n]=r[n]})}),e}function wee(e){return Object.prototype.toString.call(e)}function _Lr(e){return wee(e)==="[object String]"}function TLr(e){return wee(e)==="[object Object]"}function DLr(e){return wee(e)==="[object RegExp]"}function UYe(e){return wee(e)==="[object Function]"}function FLr(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const rwt={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function RLr(e){return Object.keys(e||{}).reduce(function(t,r){return t||rwt.hasOwnProperty(r)},!1)}const MLr={"http:":{validate:function(e,t,r){const n=e.slice(t);return r.re.http||(r.re.http=new RegExp("^\\/\\/"+r.re.src_auth+r.re.src_host_port_strict+r.re.src_path,"i")),r.re.http.test(n)?n.match(r.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,r){const n=e.slice(t);return r.re.no_http||(r.re.no_http=new RegExp("^"+r.re.src_auth+"(?:localhost|(?:(?:"+r.re.src_domain+")\\.)+"+r.re.src_domain_root+")"+r.re.src_port+r.re.src_host_terminator+r.re.src_path,"i")),r.re.no_http.test(n)?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:n.match(r.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,r){const n=e.slice(t);return r.re.mailto||(r.re.mailto=new RegExp("^"+r.re.src_email_name+"@"+r.re.src_host_strict,"i")),r.re.mailto.test(n)?n.match(r.re.mailto)[0].length:0}}},OLr="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",NLr="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function LLr(e){e.__index__=-1,e.__text_cache__=""}function PLr(e){return function(t,r){const n=t.slice(r);return e.test(n)?n.match(e)[0].length:0}}function HYe(){return function(e,t){t.normalize(e)}}function dq(e){const t=e.re=QLr(e.__opts__),r=e.__tlds__.slice();e.onCompile(),e.__tlds_replaced__||r.push(OLr),r.push(t.src_xn),t.src_tlds=r.join("|");function n(s){return s.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(n(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(n(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(n(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(n(t.tpl_host_fuzzy_test),"i");const i=[];e.__compiled__={};function a(s,l){throw new Error('(LinkifyIt) Invalid schema "'+s+'": '+l)}Object.keys(e.__schemas__).forEach(function(s){const l=e.__schemas__[s];if(l===null)return;const u={validate:null,link:null};if(e.__compiled__[s]=u,TLr(l)){DLr(l.validate)?u.validate=PLr(l.validate):UYe(l.validate)?u.validate=l.validate:a(s,l),UYe(l.normalize)?u.normalize=l.normalize:l.normalize?a(s,l):u.normalize=HYe();return}if(_Lr(l)){i.push(s);return}a(s,l)}),i.forEach(function(s){e.__compiled__[e.__schemas__[s]]&&(e.__compiled__[s].validate=e.__compiled__[e.__schemas__[s]].validate,e.__compiled__[s].normalize=e.__compiled__[e.__schemas__[s]].normalize)}),e.__compiled__[""]={validate:null,normalize:HYe()};const o=Object.keys(e.__compiled__).filter(function(s){return s.length>0&&e.__compiled__[s]}).map(FLr).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+o+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+o+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),LLr(e)}function ULr(e,t){const r=e.__index__,n=e.__last_index__,i=e.__text_cache__.slice(r,n);this.schema=e.__schema__.toLowerCase(),this.index=r+t,this.lastIndex=n+t,this.raw=i,this.text=i,this.url=i}function kCe(e,t){const r=new ULr(e,t);return e.__compiled__[r.schema].normalize(r,e),r}function d1(e,t){if(!(this instanceof d1))return new d1(e,t);t||RLr(e)&&(t=e,e={}),this.__opts__=SCe({},rwt,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=SCe({},MLr,e),this.__compiled__={},this.__tlds__=NLr,this.__tlds_replaced__=!1,this.re={},dq(this)}d1.prototype.add=function(t,r){return this.__schemas__[t]=r,dq(this),this};d1.prototype.set=function(t){return this.__opts__=SCe(this.__opts__,t),this};d1.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let r,n,i,a,o,s,l,u,c;if(this.re.schema_test.test(t)){for(l=this.re.schema_search,l.lastIndex=0;(r=l.exec(t))!==null;)if(a=this.testSchemaAt(t,r[2],l.lastIndex),a){this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+a;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(u=t.search(this.re.host_fuzzy_test),u>=0&&(this.__index__<0||u=0&&(i=t.match(this.re.email_fuzzy))!==null&&(o=i.index+i[1].length,s=i.index+i[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=s))),this.__index__>=0};d1.prototype.pretest=function(t){return this.re.pretest.test(t)};d1.prototype.testSchemaAt=function(t,r,n){return this.__compiled__[r.toLowerCase()]?this.__compiled__[r.toLowerCase()].validate(t,n,this):0};d1.prototype.match=function(t){const r=[];let n=0;this.__index__>=0&&this.__text_cache__===t&&(r.push(kCe(this,n)),n=this.__last_index__);let i=n?t.slice(n):t;for(;this.test(i);)r.push(kCe(this,n)),i=i.slice(this.__last_index__),n+=this.__last_index__;return r.length?r:null};d1.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const r=this.re.schema_at_start.exec(t);if(!r)return null;const n=this.testSchemaAt(t,r[2],r[0].length);return n?(this.__schema__=r[2],this.__index__=r.index+r[1].length,this.__last_index__=r.index+r[0].length+n,kCe(this,0)):null};d1.prototype.tlds=function(t,r){return t=Array.isArray(t)?t:[t],r?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(n,i,a){return n!==a[i-1]}).reverse(),dq(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,dq(this),this)};d1.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};d1.prototype.onCompile=function(){};const Q9=2147483647,Xw=36,b4e=1,JN=26,HLr=38,jLr=700,nwt=72,iwt=128,awt="-",GLr=/^xn--/,$Lr=/[^\0-\x7F]/,zLr=/[\x2E\u3002\uFF0E\uFF61]/g,KLr={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},zge=Xw-b4e,Zw=Math.floor,Kge=String.fromCharCode;function h3(e){throw new RangeError(KLr[e])}function VLr(e,t){const r=[];let n=e.length;for(;n--;)r[n]=t(e[n]);return r}function owt(e,t){const r=e.split("@");let n="";r.length>1&&(n=r[0]+"@",e=r[1]),e=e.replace(zLr,".");const i=e.split("."),a=VLr(i,t).join(".");return n+a}function swt(e){const t=[];let r=0;const n=e.length;for(;r=55296&&i<=56319&&rString.fromCodePoint(...e),YLr=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:Xw},jYe=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},lwt=function(e,t,r){let n=0;for(e=r?Zw(e/jLr):e>>1,e+=Zw(e/t);e>zge*JN>>1;n+=Xw)e=Zw(e/zge);return Zw(n+(zge+1)*e/(e+HLr))},uwt=function(e){const t=[],r=e.length;let n=0,i=iwt,a=nwt,o=e.lastIndexOf(awt);o<0&&(o=0);for(let s=0;s=128&&h3("not-basic"),t.push(e.charCodeAt(s));for(let s=o>0?o+1:0;s=r&&h3("invalid-input");const f=YLr(e.charCodeAt(s++));f>=Xw&&h3("invalid-input"),f>Zw((Q9-n)/c)&&h3("overflow"),n+=f*c;const h=A<=a?b4e:A>=a+JN?JN:A-a;if(fZw(Q9/g)&&h3("overflow"),c*=g}const u=t.length+1;a=lwt(n-l,u,l==0),Zw(n/u)>Q9-i&&h3("overflow"),i+=Zw(n/u),n%=u,t.splice(n++,0,i)}return String.fromCodePoint(...t)},cwt=function(e){const t=[];e=swt(e);const r=e.length;let n=iwt,i=0,a=nwt;for(const l of e)l<128&&t.push(Kge(l));const o=t.length;let s=o;for(o&&t.push(awt);s=n&&cZw((Q9-i)/u)&&h3("overflow"),i+=(l-n)*u,n=l;for(const c of e)if(cQ9&&h3("overflow"),c===n){let A=i;for(let f=Xw;;f+=Xw){const h=f<=a?b4e:f>=a+JN?JN:f-a;if(A=0))try{t.hostname=Awt.toASCII(t.hostname)}catch{}return xP(h4e(t))}function oPr(e){const t=d4e(e,!0);if(t.hostname&&(!t.protocol||fwt.indexOf(t.protocol)>=0))try{t.hostname=Awt.toUnicode(t.hostname)}catch{}return b7(h4e(t),b7.defaultChars+"%")}function c2(e,t){if(!(this instanceof c2))return new c2(e,t);t||p4e(e)||(t=e||{},e="default"),this.inline=new kP,this.block=new bee,this.core=new m4e,this.renderer=new xT,this.linkify=new d1,this.validateLink=iPr,this.normalizeLink=aPr,this.normalizeLinkText=oPr,this.utils=lNr,this.helpers=mee({},fNr),this.options={},this.configure(e),t&&this.set(t)}c2.prototype.set=function(e){return mee(this.options,e),this};c2.prototype.configure=function(e){const t=this;if(p4e(e)){const r=e;if(e=tPr[r],!e)throw new Error('Wrong `markdown-it` preset "'+r+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(r){e.components[r].rules&&t[r].ruler.enableOnly(e.components[r].rules),e.components[r].rules2&&t[r].ruler2.enableOnly(e.components[r].rules2)}),this};c2.prototype.enable=function(e,t){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(i){r=r.concat(this[i].ruler.enable(e,!0))},this),r=r.concat(this.inline.ruler2.enable(e,!0));const n=e.filter(function(i){return r.indexOf(i)<0});if(n.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+n);return this};c2.prototype.disable=function(e,t){let r=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(i){r=r.concat(this[i].ruler.disable(e,!0))},this),r=r.concat(this.inline.ruler2.disable(e,!0));const n=e.filter(function(i){return r.indexOf(i)<0});if(n.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+n);return this};c2.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this};c2.prototype.parse=function(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const r=new this.core.State(e,this,t);return this.core.process(r),r.tokens};c2.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};c2.prototype.parseInline=function(e,t){const r=new this.core.State(e,this,t);return r.inlineMode=!0,this.core.process(r),r.tokens};c2.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var Vge={exports:{}},t0=Uint8Array,t1=Uint16Array,w4e=Int32Array,Cee=new t0([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Iee=new t0([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),QCe=new t0([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),hwt=function(e,t){for(var r=new t1(31),n=0;n<31;++n)r[n]=t+=1<>1|(PA&21845)<<1;Wx=(Wx&52428)>>2|(Wx&13107)<<2,Wx=(Wx&61680)>>4|(Wx&3855)<<4,TCe[PA]=((Wx&65280)>>8|(Wx&255)<<8)>>1}var sC=function(e,t,r){for(var n=e.length,i=0,a=new t1(t);i>l]=u}else for(s=new t1(n),i=0;i>15-e[i]);return s},T5=new t0(288);for(var PA=0;PA<144;++PA)T5[PA]=8;for(var PA=144;PA<256;++PA)T5[PA]=9;for(var PA=256;PA<280;++PA)T5[PA]=7;for(var PA=280;PA<288;++PA)T5[PA]=8;var XN=new t0(32);for(var PA=0;PA<32;++PA)XN[PA]=5;var lPr=sC(T5,9,0),uPr=sC(T5,9,1),cPr=sC(XN,5,0),APr=sC(XN,5,1),Wge=function(e){for(var t=e[0],r=1;rt&&(t=e[r]);return t},Ib=function(e,t,r){var n=t/8|0;return(e[n]|e[n+1]<<8)>>(t&7)&r},Yge=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},C4e=function(e){return(e+7)/8|0},vwt=function(e,t,r){return(r==null||r>e.length)&&(r=e.length),new t0(e.subarray(t,r))},fPr=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Lb=function(e,t,r){var n=new Error(t||fPr[e]);if(n.code=e,Error.captureStackTrace&&Error.captureStackTrace(n,Lb),!r)throw n;return n},hPr=function(e,t,r,n){var i=e.length,a=0;if(!i||t.f&&!t.l)return r||new t0(0);var o=!r,s=o||t.i!=2,l=t.i;o&&(r=new t0(i*3));var u=function(tt){var ft=r.length;if(tt>ft){var st=new t0(Math.max(ft*2,tt));st.set(r),r=st}},c=t.f||0,A=t.p||0,f=t.b||0,h=t.l,g=t.d,p=t.m,m=t.n,b=i*8;do{if(!h){c=Ib(e,A,1);var C=Ib(e,A+1,3);if(A+=3,C)if(C==1)h=uPr,g=APr,p=9,m=5;else if(C==2){var M=Ib(e,A,31)+257,N=Ib(e,A+10,15)+4,P=M+Ib(e,A+5,31)+1;A+=14;for(var j=new t0(P),z=new t0(19),W=0;W>4;if(E<16)j[W++]=E;else{var se=0,de=0;for(E==16?(de=3+Ib(e,A,3),A+=2,se=j[W-1]):E==17?(de=3+Ib(e,A,7),A+=3):E==18&&(de=11+Ib(e,A,127),A+=7);de--;)j[W++]=se}}var Ae=j.subarray(0,M),be=j.subarray(M);p=Wge(Ae),m=Wge(be),h=sC(Ae,p,1),g=sC(be,m,1)}else Lb(1);else{var E=C4e(A)+4,_=e[E-4]|e[E-3]<<8,F=E+_;if(F>i){l&&Lb(0);break}s&&u(f+_),r.set(e.subarray(E,F),f),t.b=f+=_,t.p=A=F*8,t.f=c;continue}if(A>b){l&&Lb(0);break}}s&&u(f+131072);for(var Le=(1<>4;if(A+=se&15,A>b){l&&Lb(0);break}if(se||Lb(2),Ke<256)r[f++]=Ke;else if(Ke==256){ue=A,h=null;break}else{var Pe=Ke-254;if(Ke>264){var W=Ke-257,je=Cee[W];Pe=Ib(e,A,(1<>4;Ye||Lb(3),A+=Ye&15;var be=sPr[me];if(me>3){var je=Iee[me];be+=Yge(e,A)&(1<b){l&&Lb(0);break}s&&u(f+131072);var Se=f+Pe;if(f>8},xR=function(e,t,r){r<<=t&7;var n=t/8|0;e[n]|=r,e[n+1]|=r>>8,e[n+2]|=r>>16},qge=function(e,t){for(var r=[],n=0;nf&&(f=a[n].s);var h=new t1(f+1),g=DCe(r[c-1],h,0);if(g>t){var n=0,p=0,m=g-t,b=1<t)p+=b-(1<>=m;p>0;){var E=a[n].s;h[E]=0&&p;--n){var _=a[n].s;h[_]==t&&(--h[_],++p)}g=t}return{t:new t0(h),l:g}},DCe=function(e,t,r){return e.s==-1?Math.max(DCe(e.l,t,r+1),DCe(e.r,t,r+1)):t[e.s]=r},$Ye=function(e){for(var t=e.length;t&&!e[--t];);for(var r=new t1(++t),n=0,i=e[0],a=1,o=function(l){r[n++]=l},s=1;s<=t;++s)if(e[s]==i&&s!=t)++a;else{if(!i&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(i),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(i);a=1,i=e[s]}return{c:r.subarray(0,n),n:t}},SR=function(e,t){for(var r=0,n=0;n>8,e[i+2]=e[i]^255,e[i+3]=e[i+1]^255;for(var a=0;a4&&!z[QCe[Y-1]];--Y);var ee=u+5<<3,q=SR(i,T5)+SR(a,XN)+o,ae=SR(i,f)+SR(a,p)+o+14+3*Y+SR(N,z)+2*N[16]+3*N[17]+7*N[18];if(l>=0&&ee<=q&&ee<=ae)return mwt(t,c,e.subarray(l,l+u));var se,de,Ae,be;if(eE(t,c,1+(ae15&&(eE(t,c,Ke[P]>>5&127),c+=Ke[P]>>12)}}else se=lPr,de=T5,Ae=cPr,be=XN;for(var P=0;P255){var Pe=je>>18&31;xR(t,c,se[Pe+257]),c+=de[Pe+257],Pe>7&&(eE(t,c,je>>23&31),c+=Cee[Pe]);var Ye=je&31;xR(t,c,Ae[Ye]),c+=be[Ye],Ye>3&&(xR(t,c,je>>5&8191),c+=Iee[Ye])}else xR(t,c,se[je]),c+=de[je]}return xR(t,c,se[256]),c+de[256]},dPr=new w4e([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),ywt=new t0(0),gPr=function(e,t,r,n,i,a){var o=a.z||e.length,s=new t0(n+o+5*(1+Math.ceil(o/7e3))+i),l=s.subarray(n,s.length-i),u=a.l,c=(a.r||0)&7;if(t){c&&(l[0]=a.r>>3);for(var A=dPr[t-1],f=A>>13,h=A&8191,g=(1<7e3||z>24576)&&(se>423||!u)){c=zYe(e,l,0,_,F,M,P,z,Y,j-Y,c),z=N=P=0,Y=j;for(var de=0;de<286;++de)F[de]=0;for(var de=0;de<30;++de)M[de]=0}var Ae=2,be=0,Le=h,Ne=q-ae&32767;if(se>2&&ee==E(j-Ne))for(var ue=Math.min(f,se)-1,Ke=Math.min(32767,j),Pe=Math.min(258,se);Ne<=Ke&&--Le&&q!=ae;){if(e[j+Ae]==e[j+Ae-Ne]){for(var je=0;jeAe){if(Ae=je,be=Ne,je>ue)break;for(var Ye=Math.min(Ne,je-2),me=0,de=0;deme&&(me=nt,ae=Se)}}}q=ae,ae=p[q],Ne+=q-ae&32767}if(be){_[z++]=268435456|_Ce[Ae]<<18|GYe[be];var tt=_Ce[Ae]&31,ft=GYe[be]&31;P+=Cee[tt]+Iee[ft],++F[257+tt],++M[ft],W=j+Ae,++N}else _[z++]=e[j],++F[e[j]]}}for(j=Math.max(j,W);j=o&&(l[c/8|0]=u,st=o),c=mwt(l,c+1,e.subarray(j,st))}a.i=o}return vwt(s,0,n+C4e(c)+i)},bwt=function(){var e=1,t=0;return{p:function(r){for(var n=e,i=t,a=r.length|0,o=0;o!=a;){for(var s=Math.min(o+2655,a);o>16),i=(i&65535)+15*(i>>16)}e=n,t=i},d:function(){return e%=65521,t%=65521,(e&255)<<24|(e&65280)<<8|(t&255)<<8|t>>8}}},pPr=function(e,t,r,n,i){if(!i&&(i={l:1},t.dictionary)){var a=t.dictionary.subarray(-32768),o=new t0(a.length+e.length);o.set(a),o.set(e,a.length),e=o,i.w=a.length}return gPr(e,t.level==null?6:t.level,t.mem==null?i.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+t.mem,r,n,i)},wwt=function(e,t,r){for(;r;++t)e[t]=r,r>>>=8},vPr=function(e,t){var r=t.level,n=r==0?0:r<6?1:r==9?3:2;if(e[0]=120,e[1]=n<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var i=bwt();i.p(t.dictionary),wwt(e,2,i.d())}},mPr=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&Lb(6,"invalid zlib data"),(e[1]>>5&1)==+!t&&Lb(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function FCe(e,t){t||(t={});var r=bwt();r.p(e);var n=pPr(e,t,t.dictionary?6:2,4);return vPr(n,t),wwt(n,n.length-4,r.d()),n}function yPr(e,t){return hPr(e.subarray(mPr(e,t),-4),{i:2},t,t)}var bPr=typeof TextDecoder<"u"&&new TextDecoder,wPr=0;try{bPr.decode(ywt,{stream:!0}),wPr=1}catch{}var $s=function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this}();function Jge(){$s.console&&typeof $s.console.log=="function"&&$s.console.log.apply($s.console,arguments)}var rA={log:Jge,warn:function(e){$s.console&&(typeof $s.console.warn=="function"?$s.console.warn.apply($s.console,arguments):Jge.call(null,arguments))},error:function(e){$s.console&&(typeof $s.console.error=="function"?$s.console.error.apply($s.console,arguments):Jge(e))}};function Xge(e,t,r){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){ek(n.response,t,r)},n.onerror=function(){rA.error("could not download file")},n.send()}function KYe(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function gz(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var gO,RCe,ek=$s.saveAs||((typeof window>"u"?"undefined":Tu(window))!=="object"||window!==$s?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,t,r){var n=$s.URL||$s.webkitURL,i=document.createElement("a");t=t||e.name||"download",i.download=t,i.rel="noopener",typeof e=="string"?(i.href=e,i.origin!==location.origin?KYe(i.href)?Xge(e,t,r):gz(i,i.target="_blank"):gz(i)):(i.href=n.createObjectURL(e),setTimeout(function(){n.revokeObjectURL(i.href)},4e4),setTimeout(function(){gz(i)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,r){if(t=t||e.name||"download",typeof e=="string")if(KYe(e))Xge(e,t,r);else{var n=document.createElement("a");n.href=e,n.target="_blank",setTimeout(function(){gz(n)})}else navigator.msSaveOrOpenBlob(function(i,a){return a===void 0?a={autoBom:!1}:Tu(a)!=="object"&&(rA.warn("Deprecated: Expected third argument to be a object"),a={autoBom:!a}),a.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(i.type)?new Blob(["\uFEFF",i],{type:i.type}):i}(e,r),t)}:function(e,t,r,n){if((n=n||open("","_blank"))&&(n.document.title=n.document.body.innerText="downloading..."),typeof e=="string")return Xge(e,t,r);var i=e.type==="application/octet-stream",a=/constructor/i.test($s.HTMLElement)||$s.safari,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a)&&(typeof FileReader>"u"?"undefined":Tu(FileReader))==="object"){var s=new FileReader;s.onloadend=function(){var c=s.result;c=o?c:c.replace(/^data:[^;]*;/,"data:attachment/file;"),n?n.location.href=c:location=c,n=null},s.readAsDataURL(e)}else{var l=$s.URL||$s.webkitURL,u=l.createObjectURL(e);n?n.location=u:location.href=u,n=null,setTimeout(function(){l.revokeObjectURL(u)},4e4)}});/** * A class to parse color values * @author Stoyan Stefanov * {@link http://www.phpied.com/rgb-color-parser-in-javascript/} * @license Use it if you like it */function Cwt(e){var t;e=e||"",this.ok=!1,e.charAt(0)=="#"&&(e=e.substr(1,6)),e={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",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",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:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",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",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var r=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(s){return[parseInt(s[1]),parseInt(s[2]),parseInt(s[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(s){return[parseInt(s[1],16),parseInt(s[2],16),parseInt(s[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(s){return[parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16),parseInt(s[3]+s[3],16)]}}],n=0;n255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var s=this.r.toString(16),l=this.g.toString(16),u=this.b.toString(16);return s.length==1&&(s="0"+s),l.length==1&&(l="0"+l),u.length==1&&(u="0"+u),"#"+s+l+u}}/** * @license * Joseph Myers does not specify a particular license for his work. * * Author: Joseph Myers * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js * * Modified by: Owen Leong */function Zge(e,t){var r=e[0],n=e[1],i=e[2],a=e[3];r=Np(r,n,i,a,t[0],7,-680876936),a=Np(a,r,n,i,t[1],12,-389564586),i=Np(i,a,r,n,t[2],17,606105819),n=Np(n,i,a,r,t[3],22,-1044525330),r=Np(r,n,i,a,t[4],7,-176418897),a=Np(a,r,n,i,t[5],12,1200080426),i=Np(i,a,r,n,t[6],17,-1473231341),n=Np(n,i,a,r,t[7],22,-45705983),r=Np(r,n,i,a,t[8],7,1770035416),a=Np(a,r,n,i,t[9],12,-1958414417),i=Np(i,a,r,n,t[10],17,-42063),n=Np(n,i,a,r,t[11],22,-1990404162),r=Np(r,n,i,a,t[12],7,1804603682),a=Np(a,r,n,i,t[13],12,-40341101),i=Np(i,a,r,n,t[14],17,-1502002290),r=Lp(r,n=Np(n,i,a,r,t[15],22,1236535329),i,a,t[1],5,-165796510),a=Lp(a,r,n,i,t[6],9,-1069501632),i=Lp(i,a,r,n,t[11],14,643717713),n=Lp(n,i,a,r,t[0],20,-373897302),r=Lp(r,n,i,a,t[5],5,-701558691),a=Lp(a,r,n,i,t[10],9,38016083),i=Lp(i,a,r,n,t[15],14,-660478335),n=Lp(n,i,a,r,t[4],20,-405537848),r=Lp(r,n,i,a,t[9],5,568446438),a=Lp(a,r,n,i,t[14],9,-1019803690),i=Lp(i,a,r,n,t[3],14,-187363961),n=Lp(n,i,a,r,t[8],20,1163531501),r=Lp(r,n,i,a,t[13],5,-1444681467),a=Lp(a,r,n,i,t[2],9,-51403784),i=Lp(i,a,r,n,t[7],14,1735328473),r=Pp(r,n=Lp(n,i,a,r,t[12],20,-1926607734),i,a,t[5],4,-378558),a=Pp(a,r,n,i,t[8],11,-2022574463),i=Pp(i,a,r,n,t[11],16,1839030562),n=Pp(n,i,a,r,t[14],23,-35309556),r=Pp(r,n,i,a,t[1],4,-1530992060),a=Pp(a,r,n,i,t[4],11,1272893353),i=Pp(i,a,r,n,t[7],16,-155497632),n=Pp(n,i,a,r,t[10],23,-1094730640),r=Pp(r,n,i,a,t[13],4,681279174),a=Pp(a,r,n,i,t[0],11,-358537222),i=Pp(i,a,r,n,t[3],16,-722521979),n=Pp(n,i,a,r,t[6],23,76029189),r=Pp(r,n,i,a,t[9],4,-640364487),a=Pp(a,r,n,i,t[12],11,-421815835),i=Pp(i,a,r,n,t[15],16,530742520),r=Up(r,n=Pp(n,i,a,r,t[2],23,-995338651),i,a,t[0],6,-198630844),a=Up(a,r,n,i,t[7],10,1126891415),i=Up(i,a,r,n,t[14],15,-1416354905),n=Up(n,i,a,r,t[5],21,-57434055),r=Up(r,n,i,a,t[12],6,1700485571),a=Up(a,r,n,i,t[3],10,-1894986606),i=Up(i,a,r,n,t[10],15,-1051523),n=Up(n,i,a,r,t[1],21,-2054922799),r=Up(r,n,i,a,t[8],6,1873313359),a=Up(a,r,n,i,t[15],10,-30611744),i=Up(i,a,r,n,t[6],15,-1560198380),n=Up(n,i,a,r,t[13],21,1309151649),r=Up(r,n,i,a,t[4],6,-145523070),a=Up(a,r,n,i,t[11],10,-1120210379),i=Up(i,a,r,n,t[2],15,718787259),n=Up(n,i,a,r,t[9],21,-343485551),e[0]=z3(r,e[0]),e[1]=z3(n,e[1]),e[2]=z3(i,e[2]),e[3]=z3(a,e[3])}function Eee(e,t,r,n,i,a){return t=z3(z3(t,e),z3(n,a)),z3(t<>>32-i,r)}function Np(e,t,r,n,i,a,o){return Eee(t&r|~t&n,e,t,i,a,o)}function Lp(e,t,r,n,i,a,o){return Eee(t&n|r&~n,e,t,i,a,o)}function Pp(e,t,r,n,i,a,o){return Eee(t^r^n,e,t,i,a,o)}function Up(e,t,r,n,i,a,o){return Eee(r^(t|~n),e,t,i,a,o)}function Iwt(e){var t,r=e.length,n=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)Zge(n,CPr(e.substring(t-64,t)));e=e.substring(t-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t>2]|=e.charCodeAt(t)<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(Zge(n,i),t=0;t<16;t++)i[t]=0;return i[14]=8*r,Zge(n,i),n}function CPr(e){var t,r=[];for(t=0;t<64;t+=4)r[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return r}gO=$s.atob.bind($s),RCe=$s.btoa.bind($s);var VYe="0123456789abcdef".split("");function IPr(e){for(var t="",r=0;r<4;r++)t+=VYe[e>>8*r+4&15]+VYe[e>>8*r&15];return t}function EPr(e){return String.fromCharCode((255&e)>>0,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function MCe(e){return Iwt(e).map(EPr).join("")}var BPr=function(e){for(var t=0;t>16)+(t>>16)+(r>>16)<<16|65535&r}return e+t&4294967295}/** * @license * FPDF is released under a permissive license: there is no usage restriction. * You may embed it freely in your application (commercial or not), with or * without modifications. * * Reference: http://www.fpdf.org/en/script/script37.php */function OCe(e,t){var r,n,i,a;if(e!==r){for(var o=(i=e,a=1+(256/e.length>>0),new Array(a+1).join(i)),s=[],l=0;l<256;l++)s[l]=l;var u=0;for(l=0;l<256;l++){var c=s[l];u=(u+c+o.charCodeAt(l))%256,s[l]=s[u],s[u]=c}r=e,n=s}else s=n;var A=t.length,f=0,h=0,g="";for(l=0;l€/\f©þdSiz";var a=(t+this.padding).substr(0,32),o=(r+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,o),this.P=-(1+(255^i)),this.encryptionKey=MCe(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=OCe(this.encryptionKey,this.padding)}function z8(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",r=e.length,n=0;n126?t+="#"+("0"+i.toString(16)).slice(-2):t+=e[n]}return t}function YYe(e){if(Tu(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(r,n,i){if(i=i||!1,typeof r!="string"||typeof n!="function"||typeof i!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(r)||(t[r]={});var a=Math.random().toString(35);return t[r][a]=[n,!!i],a},this.unsubscribe=function(r){for(var n in t)if(t[n][r])return delete t[n][r],Object.keys(t[n]).length===0&&delete t[n],!0;return!1},this.publish=function(r){if(t.hasOwnProperty(r)){var n=Array.prototype.slice.call(arguments,1),i=[];for(var a in t[r]){var o=t[r][a];try{o[0].apply(e,n)}catch(s){$s.console&&rA.error("jsPDF PubSub Error",s.message,s)}o[1]&&i.push(a)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function ZN(e){if(!(this instanceof ZN))return new ZN(e);var t="opacity,stroke-opacity".split(",");for(var r in e)e.hasOwnProperty(r)&&t.indexOf(r)>=0&&(this[r]=e[r]);this.id="",this.objectNumber=-1}function Ewt(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function w3(e,t,r,n,i){if(!(this instanceof w3))return new w3(e,t,r,n,i);this.type=e==="axial"?2:3,this.coords=t,this.colors=r,Ewt.call(this,n,i)}function Rk(e,t,r,n,i){if(!(this instanceof Rk))return new Rk(e,t,r,n,i);this.boundingBox=e,this.xStep=t,this.yStep=r,this.stream="",this.cloneIndex=0,Ewt.call(this,n,i)}function Ds(e){var t,r=typeof arguments[0]=="string"?arguments[0]:"p",n=arguments[1],i=arguments[2],a=arguments[3],o=[],s=1,l=16,u="S",c=null;Tu(e=e||{})==="object"&&(r=e.orientation,n=e.unit||n,i=e.format||i,a=e.compress||e.compressPdf||a,(c=e.encryption||null)!==null&&(c.userPassword=c.userPassword||"",c.ownerPassword=c.ownerPassword||"",c.userPermissions=c.userPermissions||[]),s=typeof e.userUnit=="number"?Math.abs(e.userUnit):1,e.precision!==void 0&&(t=e.precision),e.floatPrecision!==void 0&&(l=e.floatPrecision),u=e.defaultPathOperation||"S"),o=e.filters||(a===!0?["FlateEncode"]:o),n=n||"mm",r=(""+(r||"P")).toLowerCase();var A=e.putOnlyUsedFonts||!1,f={},h={internal:{},__private__:{}};h.__private__.PubSub=YYe;var g="1.3",p=h.__private__.getPdfVersion=function(){return g};h.__private__.setPdfVersion=function(Xe){g=Xe};var m={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};h.__private__.getPageFormats=function(){return m};var b=h.__private__.getPageFormat=function(Xe){return m[Xe]};i=i||"a4";var C={COMPAT:"compat",ADVANCED:"advanced"},E=C.COMPAT;function _(){this.saveGraphicsState(),Oe(new pe(ur,0,0,-ur,0,sr()*ur).toString()+" cm"),this.setFontSize(this.getFontSize()/ur),u="n",E=C.ADVANCED}function F(){this.restoreGraphicsState(),u="S",E=C.COMPAT}var M=h.__private__.combineFontStyleAndFontWeight=function(Xe,Qt){if(Xe=="bold"&&Qt=="normal"||Xe=="bold"&&Qt==400||Xe=="normal"&&Qt=="italic"||Xe=="bold"&&Qt=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return Qt&&(Xe=Qt==400||Qt==="normal"?Xe==="italic"?"italic":"normal":Qt!=700&&Qt!=="bold"||Xe!=="normal"?(Qt==700?"bold":Qt)+""+Xe:"bold"),Xe};h.advancedAPI=function(Xe){var Qt=E===C.COMPAT;return Qt&&_.call(this),typeof Xe!="function"||(Xe(this),Qt&&F.call(this)),this},h.compatAPI=function(Xe){var Qt=E===C.ADVANCED;return Qt&&F.call(this),typeof Xe!="function"||(Xe(this),Qt&&_.call(this)),this},h.isAdvancedAPI=function(){return E===C.ADVANCED};var N,P=function(Xe){if(E!==C.ADVANCED)throw new Error(Xe+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},j=h.roundToPrecision=h.__private__.roundToPrecision=function(Xe,Qt){var xr=t||Qt;if(isNaN(Xe)||isNaN(xr))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return Xe.toFixed(xr).replace(/0+$/,"")};N=h.hpf=h.__private__.hpf=typeof l=="number"?function(Xe){if(isNaN(Xe))throw new Error("Invalid argument passed to jsPDF.hpf");return j(Xe,l)}:l==="smart"?function(Xe){if(isNaN(Xe))throw new Error("Invalid argument passed to jsPDF.hpf");return j(Xe,Xe>-1&&Xe<1?16:5)}:function(Xe){if(isNaN(Xe))throw new Error("Invalid argument passed to jsPDF.hpf");return j(Xe,16)};var z=h.f2=h.__private__.f2=function(Xe){if(isNaN(Xe))throw new Error("Invalid argument passed to jsPDF.f2");return j(Xe,2)},W=h.__private__.f3=function(Xe){if(isNaN(Xe))throw new Error("Invalid argument passed to jsPDF.f3");return j(Xe,3)},Y=h.scale=h.__private__.scale=function(Xe){if(isNaN(Xe))throw new Error("Invalid argument passed to jsPDF.scale");return E===C.COMPAT?Xe*ur:E===C.ADVANCED?Xe:void 0},ee=function(Xe){return E===C.COMPAT?sr()-Xe:E===C.ADVANCED?Xe:void 0},q=function(Xe){return Y(ee(Xe))};h.__private__.setPrecision=h.setPrecision=function(Xe){typeof parseInt(Xe,10)=="number"&&(t=parseInt(Xe,10))};var ae,se="00000000000000000000000000000000",de=h.__private__.getFileId=function(){return se},Ae=h.__private__.setFileId=function(Xe){return se=Xe!==void 0&&/^[a-fA-F0-9]{32}$/.test(Xe)?Xe.toUpperCase():se.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),c!==null&&(Jc=new $8(c.userPermissions,c.userPassword,c.ownerPassword,se)),se};h.setFileId=function(Xe){return Ae(Xe),this},h.getFileId=function(){return de()};var be=h.__private__.convertDateToPDFDate=function(Xe){var Qt=Xe.getTimezoneOffset(),xr=Qt<0?"+":"-",Qr=Math.floor(Math.abs(Qt/60)),yn=Math.abs(Qt%60),Wr=[xr,Pe(Qr),"'",Pe(yn),"'"].join("");return["D:",Xe.getFullYear(),Pe(Xe.getMonth()+1),Pe(Xe.getDate()),Pe(Xe.getHours()),Pe(Xe.getMinutes()),Pe(Xe.getSeconds()),Wr].join("")},Le=h.__private__.convertPDFDateToDate=function(Xe){var Qt=parseInt(Xe.substr(2,4),10),xr=parseInt(Xe.substr(6,2),10)-1,Qr=parseInt(Xe.substr(8,2),10),yn=parseInt(Xe.substr(10,2),10),Wr=parseInt(Xe.substr(12,2),10),tn=parseInt(Xe.substr(14,2),10);return new Date(Qt,xr,Qr,yn,Wr,tn,0)},Ne=h.__private__.setCreationDate=function(Xe){var Qt;if(Xe===void 0&&(Xe=new Date),Xe instanceof Date)Qt=be(Xe);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(Xe))throw new Error("Invalid argument passed to jsPDF.setCreationDate");Qt=Xe}return ae=Qt},ue=h.__private__.getCreationDate=function(Xe){var Qt=ae;return Xe==="jsDate"&&(Qt=Le(ae)),Qt};h.setCreationDate=function(Xe){return Ne(Xe),this},h.getCreationDate=function(Xe){return ue(Xe)};var Ke,Pe=h.__private__.padd2=function(Xe){return("0"+parseInt(Xe)).slice(-2)},je=h.__private__.padd2Hex=function(Xe){return("00"+(Xe=Xe.toString())).substr(Xe.length)},Ye=0,me=[],Se=[],et=0,nt=[],tt=[],ft=!1,st=Se,Re=function(){Ye=0,et=0,Se=[],me=[],nt=[],Kr=Vt(),xn=Vt()};h.__private__.setCustomOutputDestination=function(Xe){ft=!0,st=Xe};var dt=function(Xe){ft||(st=Xe)};h.__private__.resetCustomOutputDestination=function(){ft=!1,st=Se};var Oe=h.__private__.out=function(Xe){return Xe=Xe.toString(),et+=Xe.length+1,st.push(Xe),st},Ce=h.__private__.write=function(Xe){return Oe(arguments.length===1?Xe.toString():Array.prototype.join.call(arguments," "))},Be=h.__private__.getArrayBuffer=function(Xe){for(var Qt=Xe.length,xr=new ArrayBuffer(Qt),Qr=new Uint8Array(xr);Qt--;)Qr[Qt]=Xe.charCodeAt(Qt);return xr},We=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];h.__private__.getStandardFonts=function(){return We};var mt=e.fontSize||16;h.__private__.setFontSize=h.setFontSize=function(Xe){return mt=E===C.ADVANCED?Xe/ur:Xe,this};var Tt,bt=h.__private__.getFontSize=h.getFontSize=function(){return E===C.COMPAT?mt:mt*ur},qt=e.R2L||!1;h.__private__.setR2L=h.setR2L=function(Xe){return qt=Xe,this},h.__private__.getR2L=h.getR2L=function(){return qt};var cr,Gt=h.__private__.setZoomMode=function(Xe){var Qt=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(Xe))Tt=Xe;else if(isNaN(Xe)){if(Qt.indexOf(Xe)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+Xe+'" is not recognized.');Tt=Xe}else Tt=parseInt(Xe,10)};h.__private__.getZoomMode=function(){return Tt};var Xt,Er=h.__private__.setPageMode=function(Xe){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(Xe)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+Xe+'" is not recognized.');cr=Xe};h.__private__.getPageMode=function(){return cr};var on=h.__private__.setLayoutMode=function(Xe){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(Xe)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+Xe+'" is not recognized.');Xt=Xe};h.__private__.getLayoutMode=function(){return Xt},h.__private__.setDisplayMode=h.setDisplayMode=function(Xe,Qt,xr){return Gt(Xe),on(Qt),Er(xr),this};var wn={title:"",subject:"",author:"",keywords:"",creator:""};h.__private__.getDocumentProperty=function(Xe){if(Object.keys(wn).indexOf(Xe)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return wn[Xe]},h.__private__.getDocumentProperties=function(){return wn},h.__private__.setDocumentProperties=h.setProperties=h.setDocumentProperties=function(Xe){for(var Qt in wn)wn.hasOwnProperty(Qt)&&Xe[Qt]&&(wn[Qt]=Xe[Qt]);return this},h.__private__.setDocumentProperty=function(Xe,Qt){if(Object.keys(wn).indexOf(Xe)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return wn[Xe]=Qt};var jr,ur,Hr,Lr,Un,en={},Kn={},qr=[],Gi={},za={},xa={},Wa={},$i=null,Ji=0,ci=[],Ni=new YYe(h),oo=e.hotfixes||[],Ft={},ze={},Me=[],pe=function Xe(Qt,xr,Qr,yn,Wr,tn){if(!(this instanceof Xe))return new Xe(Qt,xr,Qr,yn,Wr,tn);isNaN(Qt)&&(Qt=1),isNaN(xr)&&(xr=0),isNaN(Qr)&&(Qr=0),isNaN(yn)&&(yn=1),isNaN(Wr)&&(Wr=0),isNaN(tn)&&(tn=0),this._matrix=[Qt,xr,Qr,yn,Wr,tn]};Object.defineProperty(pe.prototype,"sx",{get:function(){return this._matrix[0]},set:function(Xe){this._matrix[0]=Xe}}),Object.defineProperty(pe.prototype,"shy",{get:function(){return this._matrix[1]},set:function(Xe){this._matrix[1]=Xe}}),Object.defineProperty(pe.prototype,"shx",{get:function(){return this._matrix[2]},set:function(Xe){this._matrix[2]=Xe}}),Object.defineProperty(pe.prototype,"sy",{get:function(){return this._matrix[3]},set:function(Xe){this._matrix[3]=Xe}}),Object.defineProperty(pe.prototype,"tx",{get:function(){return this._matrix[4]},set:function(Xe){this._matrix[4]=Xe}}),Object.defineProperty(pe.prototype,"ty",{get:function(){return this._matrix[5]},set:function(Xe){this._matrix[5]=Xe}}),Object.defineProperty(pe.prototype,"a",{get:function(){return this._matrix[0]},set:function(Xe){this._matrix[0]=Xe}}),Object.defineProperty(pe.prototype,"b",{get:function(){return this._matrix[1]},set:function(Xe){this._matrix[1]=Xe}}),Object.defineProperty(pe.prototype,"c",{get:function(){return this._matrix[2]},set:function(Xe){this._matrix[2]=Xe}}),Object.defineProperty(pe.prototype,"d",{get:function(){return this._matrix[3]},set:function(Xe){this._matrix[3]=Xe}}),Object.defineProperty(pe.prototype,"e",{get:function(){return this._matrix[4]},set:function(Xe){this._matrix[4]=Xe}}),Object.defineProperty(pe.prototype,"f",{get:function(){return this._matrix[5]},set:function(Xe){this._matrix[5]=Xe}}),Object.defineProperty(pe.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(pe.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(pe.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(pe.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),pe.prototype.join=function(Xe){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(N).join(Xe)},pe.prototype.multiply=function(Xe){var Qt=Xe.sx*this.sx+Xe.shy*this.shx,xr=Xe.sx*this.shy+Xe.shy*this.sy,Qr=Xe.shx*this.sx+Xe.sy*this.shx,yn=Xe.shx*this.shy+Xe.sy*this.sy,Wr=Xe.tx*this.sx+Xe.ty*this.shx+this.tx,tn=Xe.tx*this.shy+Xe.ty*this.sy+this.ty;return new pe(Qt,xr,Qr,yn,Wr,tn)},pe.prototype.decompose=function(){var Xe=this.sx,Qt=this.shy,xr=this.shx,Qr=this.sy,yn=this.tx,Wr=this.ty,tn=Math.sqrt(Xe*Xe+Qt*Qt),Oi=(Xe/=tn)*xr+(Qt/=tn)*Qr;xr-=Xe*Oi,Qr-=Qt*Oi;var Li=Math.sqrt(xr*xr+Qr*Qr);return Oi/=Li,Xe*(Qr/=Li)>16&255,Qr=Li>>8&255,yn=255&Li}if(Qr===void 0||Wr===void 0&&xr===Qr&&Qr===yn)if(typeof xr=="string")Qt=xr+" "+tn[0];else switch(Xe.precision){case 2:Qt=z(xr/255)+" "+tn[0];break;case 3:default:Qt=W(xr/255)+" "+tn[0]}else if(Wr===void 0||Tu(Wr)==="object"){if(Wr&&!isNaN(Wr.a)&&Wr.a===0)return Qt=["1.","1.","1.",tn[1]].join(" ");if(typeof xr=="string")Qt=[xr,Qr,yn,tn[1]].join(" ");else switch(Xe.precision){case 2:Qt=[z(xr/255),z(Qr/255),z(yn/255),tn[1]].join(" ");break;default:case 3:Qt=[W(xr/255),W(Qr/255),W(yn/255),tn[1]].join(" ")}}else if(typeof xr=="string")Qt=[xr,Qr,yn,Wr,tn[2]].join(" ");else switch(Xe.precision){case 2:Qt=[z(xr),z(Qr),z(yn),z(Wr),tn[2]].join(" ");break;case 3:default:Qt=[W(xr),W(Qr),W(yn),W(Wr),tn[2]].join(" ")}return Qt},Br=h.__private__.getFilters=function(){return o},ca=h.__private__.putStream=function(Xe){var Qt=(Xe=Xe||{}).data||"",xr=Xe.filters||Br(),Qr=Xe.alreadyAppliedFilters||[],yn=Xe.addLength1||!1,Wr=Qt.length,tn=Xe.objectId,Oi=function(Os){return Os};if(c!==null&&tn===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");c!==null&&(Oi=Jc.encryptor(tn,0));var Li={};xr===!0&&(xr=["FlateEncode"]);var Mi=Xe.additionalKeyValues||[],po=(Li=Ds.API.processDataByFilters!==void 0?Ds.API.processDataByFilters(Qt,xr):{data:Qt,reverseChain:[]}).reverseChain+(Array.isArray(Qr)?Qr.join(" "):Qr.toString());if(Li.data.length!==0&&(Mi.push({key:"Length",value:Li.data.length}),yn===!0&&Mi.push({key:"Length1",value:Wr})),po.length!=0)if(po.split("/").length-1==1)Mi.push({key:"Filter",value:po});else{Mi.push({key:"Filter",value:"["+po+"]"});for(var es=0;es>"),Li.data.length!==0&&(Oe("stream"),Oe(Oi(Li.data)),Oe("endstream"))},$r=h.__private__.putPage=function(Xe){var Qt=Xe.number,xr=Xe.data,Qr=Xe.objId,yn=Xe.contentsObjId;Ar(Qr,!0),Oe("<>"),Oe("endobj");var Wr=xr.join(` `);return E===C.ADVANCED&&(Wr+=` Q`),Ar(yn,!0),ca({data:Wr,filters:Br(),objectId:yn}),Oe("endobj"),Qr},Pi=h.__private__.putPages=function(){var Xe,Qt,xr=[];for(Xe=1;Xe<=Ji;Xe++)ci[Xe].objId=Vt(),ci[Xe].contentsObjId=Vt();for(Xe=1;Xe<=Ji;Xe++)xr.push($r({number:Xe,data:tt[Xe],objId:ci[Xe].objId,contentsObjId:ci[Xe].contentsObjId,mediaBox:ci[Xe].mediaBox,cropBox:ci[Xe].cropBox,bleedBox:ci[Xe].bleedBox,trimBox:ci[Xe].trimBox,artBox:ci[Xe].artBox,userUnit:ci[Xe].userUnit,rootDictionaryObjId:Kr,resourceDictionaryObjId:xn}));Ar(Kr,!0),Oe("<>"),Oe("endobj"),Ni.publish("postPutPages")},va=function(Xe){Ni.publish("putFont",{font:Xe,out:Oe,newObject:Pt,putStream:ca}),Xe.isAlreadyPutted!==!0&&(Xe.objectNumber=Pt(),Oe("<<"),Oe("/Type /Font"),Oe("/BaseFont /"+z8(Xe.postScriptName)),Oe("/Subtype /Type1"),typeof Xe.encoding=="string"&&Oe("/Encoding /"+Xe.encoding),Oe("/FirstChar 32"),Oe("/LastChar 255"),Oe(">>"),Oe("endobj"))},Fi=function(){for(var Xe in en)en.hasOwnProperty(Xe)&&(A===!1||A===!0&&f.hasOwnProperty(Xe))&&va(en[Xe])},Jr=function(Xe){Xe.objectNumber=Pt();var Qt=[];Qt.push({key:"Type",value:"/XObject"}),Qt.push({key:"Subtype",value:"/Form"}),Qt.push({key:"BBox",value:"["+[N(Xe.x),N(Xe.y),N(Xe.x+Xe.width),N(Xe.y+Xe.height)].join(" ")+"]"}),Qt.push({key:"Matrix",value:"["+Xe.matrix.toString()+"]"});var xr=Xe.pages[1].join(` `);ca({data:xr,additionalKeyValues:Qt,objectId:Xe.objectNumber}),Oe("endobj")},vi=function(){for(var Xe in Ft)Ft.hasOwnProperty(Xe)&&Jr(Ft[Xe])},oi=function(Xe,Qt){var xr,Qr=[],yn=1/(Qt-1);for(xr=0;xr<1;xr+=yn)Qr.push(xr);if(Qr.push(1),Xe[0].offset!=0){var Wr={offset:0,color:Xe[0].color};Xe.unshift(Wr)}if(Xe[Xe.length-1].offset!=1){var tn={offset:1,color:Xe[Xe.length-1].color};Xe.push(tn)}for(var Oi="",Li=0,Mi=0;MiXe[Li+1].offset;)Li++;var po=Xe[Li].offset,es=(xr-po)/(Xe[Li+1].offset-po),_o=Xe[Li].color,Lo=Xe[Li+1].color;Oi+=je(Math.round((1-es)*_o[0]+es*Lo[0]).toString(16))+je(Math.round((1-es)*_o[1]+es*Lo[1]).toString(16))+je(Math.round((1-es)*_o[2]+es*Lo[2]).toString(16))}return Oi.trim()},ma=function(Xe,Qt){Qt||(Qt=21);var xr=Pt(),Qr=oi(Xe.colors,Qt),yn=[];yn.push({key:"FunctionType",value:"0"}),yn.push({key:"Domain",value:"[0.0 1.0]"}),yn.push({key:"Size",value:"["+Qt+"]"}),yn.push({key:"BitsPerSample",value:"8"}),yn.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),yn.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),ca({data:Qr,additionalKeyValues:yn,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:xr}),Oe("endobj"),Xe.objectNumber=Pt(),Oe("<< /ShadingType "+Xe.type),Oe("/ColorSpace /DeviceRGB");var Wr="/Coords ["+N(parseFloat(Xe.coords[0]))+" "+N(parseFloat(Xe.coords[1]))+" ";Xe.type===2?Wr+=N(parseFloat(Xe.coords[2]))+" "+N(parseFloat(Xe.coords[3])):Wr+=N(parseFloat(Xe.coords[2]))+" "+N(parseFloat(Xe.coords[3]))+" "+N(parseFloat(Xe.coords[4]))+" "+N(parseFloat(Xe.coords[5])),Oe(Wr+="]"),Xe.matrix&&Oe("/Matrix ["+Xe.matrix.toString()+"]"),Oe("/Function "+xr+" 0 R"),Oe("/Extend [true true]"),Oe(">>"),Oe("endobj")},rs=function(Xe,Qt){var xr=Vt(),Qr=Pt();Qt.push({resourcesOid:xr,objectOid:Qr}),Xe.objectNumber=Qr;var yn=[];yn.push({key:"Type",value:"/Pattern"}),yn.push({key:"PatternType",value:"1"}),yn.push({key:"PaintType",value:"1"}),yn.push({key:"TilingType",value:"1"}),yn.push({key:"BBox",value:"["+Xe.boundingBox.map(N).join(" ")+"]"}),yn.push({key:"XStep",value:N(Xe.xStep)}),yn.push({key:"YStep",value:N(Xe.yStep)}),yn.push({key:"Resources",value:xr+" 0 R"}),Xe.matrix&&yn.push({key:"Matrix",value:"["+Xe.matrix.toString()+"]"}),ca({data:Xe.stream,additionalKeyValues:yn,objectId:Xe.objectNumber}),Oe("endobj")},vn=function(Xe){var Qt;for(Qt in Gi)Gi.hasOwnProperty(Qt)&&(Gi[Qt]instanceof w3?ma(Gi[Qt]):Gi[Qt]instanceof Rk&&rs(Gi[Qt],Xe))},gi=function(Xe){for(var Qt in Xe.objectNumber=Pt(),Oe("<<"),Xe)switch(Qt){case"opacity":Oe("/ca "+z(Xe[Qt]));break;case"stroke-opacity":Oe("/CA "+z(Xe[Qt]))}Oe(">>"),Oe("endobj")},ka=function(){var Xe;for(Xe in xa)xa.hasOwnProperty(Xe)&&gi(xa[Xe])},xi=function(){for(var Xe in Oe("/XObject <<"),Ft)Ft.hasOwnProperty(Xe)&&Ft[Xe].objectNumber>=0&&Oe("/"+Xe+" "+Ft[Xe].objectNumber+" 0 R");Ni.publish("putXobjectDict"),Oe(">>")},Ks=function(){Jc.oid=Pt(),Oe("<<"),Oe("/Filter /Standard"),Oe("/V "+Jc.v),Oe("/R "+Jc.r),Oe("/U <"+Jc.toHexString(Jc.U)+">"),Oe("/O <"+Jc.toHexString(Jc.O)+">"),Oe("/P "+Jc.P),Oe(">>"),Oe("endobj")},Vs=function(){for(var Xe in Oe("/Font <<"),en)en.hasOwnProperty(Xe)&&(A===!1||A===!0&&f.hasOwnProperty(Xe))&&Oe("/"+Xe+" "+en[Xe].objectNumber+" 0 R");Oe(">>")},Ms=function(){if(Object.keys(Gi).length>0){for(var Xe in Oe("/Shading <<"),Gi)Gi.hasOwnProperty(Xe)&&Gi[Xe]instanceof w3&&Gi[Xe].objectNumber>=0&&Oe("/"+Xe+" "+Gi[Xe].objectNumber+" 0 R");Ni.publish("putShadingPatternDict"),Oe(">>")}},Ws=function(Xe){if(Object.keys(Gi).length>0){for(var Qt in Oe("/Pattern <<"),Gi)Gi.hasOwnProperty(Qt)&&Gi[Qt]instanceof h.TilingPattern&&Gi[Qt].objectNumber>=0&&Gi[Qt].objectNumber>")}},uu=function(){if(Object.keys(xa).length>0){var Xe;for(Xe in Oe("/ExtGState <<"),xa)xa.hasOwnProperty(Xe)&&xa[Xe].objectNumber>=0&&Oe("/"+Xe+" "+xa[Xe].objectNumber+" 0 R");Ni.publish("putGStateDict"),Oe(">>")}},Ya=function(Xe){Ar(Xe.resourcesOid,!0),Oe("<<"),Oe("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Vs(),Ms(),Ws(Xe.objectOid),uu(),xi(),Oe(">>"),Oe("endobj")},Zl=function(){var Xe=[];Fi(),ka(),vi(),vn(Xe),Ni.publish("putResources"),Xe.forEach(Ya),Ya({resourcesOid:xn,objectOid:Number.MAX_SAFE_INTEGER}),Ni.publish("postPutResources")},qc=function(){Ni.publish("putAdditionalObjects");for(var Xe=0;Xe>8&&(Li=!0);Xe=Oi.join("")}for(xr=Xe.length;Li===void 0&&xr!==0;)Xe.charCodeAt(xr-1)>>8&&(Li=!0),xr--;if(!Li)return Xe;for(Oi=Qt.noBOM?[]:[254,255],xr=0,Qr=Xe.length;xr>8)>>8)throw new Error("Character at position "+xr+" of string '"+Xe+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Oi.push(po),Oi.push(Mi-(po<<8))}return String.fromCharCode.apply(void 0,Oi)},ns=h.__private__.pdfEscape=h.pdfEscape=function(Xe,Qt){return yl(Xe,Qt).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},GA=h.__private__.beginPage=function(Xe){tt[++Ji]=[],ci[Ji]={objId:0,contentsObjId:0,userUnit:Number(s),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(Xe[0]),topRightY:Number(Xe[1])}},Xo(Ji),dt(tt[Ke])},dd=function(Xe,Qt){var xr,Qr,yn;switch(r=Qt||r,typeof Xe=="string"&&(xr=b(Xe.toLowerCase()),Array.isArray(xr)&&(Qr=xr[0],yn=xr[1])),Array.isArray(Xe)&&(Qr=Xe[0]*ur,yn=Xe[1]*ur),isNaN(Qr)&&(Qr=i[0],yn=i[1]),(Qr>14400||yn>14400)&&(rA.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),Qr=Math.min(14400,Qr),yn=Math.min(14400,yn)),i=[Qr,yn],r.substr(0,1)){case"l":yn>Qr&&(i=[yn,Qr]);break;case"p":Qr>yn&&(i=[yn,Qr])}GA(i),Et(it),Oe(br),Dn!==0&&Oe(Dn+" J"),Yn!==0&&Oe(Yn+" j"),Ni.publish("addPage",{pageNumber:Ji})},$A=function(Xe){Xe>0&&Xe<=Ji&&(tt.splice(Xe,1),ci.splice(Xe,1),Ji--,Ke>Ji&&(Ke=Ji),this.setPage(Ke))},Xo=function(Xe){Xe>0&&Xe<=Ji&&(Ke=Xe)},Oh=h.__private__.getNumberOfPages=h.getNumberOfPages=function(){return tt.length-1},zA=function(Xe,Qt,xr){var Qr,yn=void 0;return xr=xr||{},Xe=Xe!==void 0?Xe:en[jr].fontName,Qt=Qt!==void 0?Qt:en[jr].fontStyle,Qr=Xe.toLowerCase(),Kn[Qr]!==void 0&&Kn[Qr][Qt]!==void 0?yn=Kn[Qr][Qt]:Kn[Xe]!==void 0&&Kn[Xe][Qt]!==void 0?yn=Kn[Xe][Qt]:xr.disableWarning===!1&&rA.warn("Unable to look up font label for font '"+Xe+"', '"+Qt+"'. Refer to getFontList() for available fonts."),yn||xr.noFallback||(yn=Kn.times[Qt])==null&&(yn=Kn.times.normal),yn},KA=h.__private__.putInfo=function(){var Xe=Pt(),Qt=function(Qr){return Qr};for(var xr in c!==null&&(Qt=Jc.encryptor(Xe,0)),Oe("<<"),Oe("/Producer ("+ns(Qt("jsPDF "+Ds.version))+")"),wn)wn.hasOwnProperty(xr)&&wn[xr]&&Oe("/"+xr.substr(0,1).toUpperCase()+xr.substr(1)+" ("+ns(Qt(wn[xr]))+")");Oe("/CreationDate ("+ns(Qt(ae))+")"),Oe(">>"),Oe("endobj")},al=h.__private__.putCatalog=function(Xe){var Qt=(Xe=Xe||{}).rootDictionaryObjId||Kr;switch(Pt(),Oe("<<"),Oe("/Type /Catalog"),Oe("/Pages "+Qt+" 0 R"),Tt||(Tt="fullwidth"),Tt){case"fullwidth":Oe("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Oe("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Oe("/OpenAction [3 0 R /Fit]");break;case"original":Oe("/OpenAction [3 0 R /XYZ null null 1]");break;default:var xr=""+Tt;xr.substr(xr.length-1)==="%"&&(Tt=parseInt(Tt)/100),typeof Tt=="number"&&Oe("/OpenAction [3 0 R /XYZ null null "+z(Tt)+"]")}switch(Xt||(Xt="continuous"),Xt){case"continuous":Oe("/PageLayout /OneColumn");break;case"single":Oe("/PageLayout /SinglePage");break;case"two":case"twoleft":Oe("/PageLayout /TwoColumnLeft");break;case"tworight":Oe("/PageLayout /TwoColumnRight")}cr&&Oe("/PageMode /"+cr),Ni.publish("putCatalog"),Oe(">>"),Oe("endobj")},Sg=h.__private__.putTrailer=function(){Oe("trailer"),Oe("<<"),Oe("/Size "+(Ye+1)),Oe("/Root "+Ye+" 0 R"),Oe("/Info "+(Ye-1)+" 0 R"),c!==null&&Oe("/Encrypt "+Jc.oid+" 0 R"),Oe("/ID [ <"+se+"> <"+se+"> ]"),Oe(">>")},th=h.__private__.putHeader=function(){Oe("%PDF-"+g),Oe("%ºß¬à")},Jd=h.__private__.putXRef=function(){var Xe="0000000000";Oe("xref"),Oe("0 "+(Ye+1)),Oe("0000000000 65535 f ");for(var Qt=1;Qt<=Ye;Qt++)typeof me[Qt]=="function"?Oe((Xe+me[Qt]()).slice(-10)+" 00000 n "):me[Qt]!==void 0?Oe((Xe+me[Qt]).slice(-10)+" 00000 n "):Oe("0000000000 00000 n ")},VA=h.__private__.buildDocument=function(){Re(),dt(Se),Ni.publish("buildDocument"),th(),Pi(),qc(),Zl(),c!==null&&Ks(),KA(),al();var Xe=et;return Jd(),Sg(),Oe("startxref"),Oe(""+Xe),Oe("%%EOF"),dt(tt[Ke]),Se.join(` `)},f0=h.__private__.getBlob=function(Xe){return new Blob([Be(Xe)],{type:"application/pdf"})},Nh=h.output=h.__private__.output=zo(function(Xe,Qt){switch(typeof(Qt=Qt||{})=="string"?Qt={filename:Qt}:Qt.filename=Qt.filename||"generated.pdf",Xe){case void 0:return VA();case"save":h.save(Qt.filename);break;case"arraybuffer":return Be(VA());case"blob":return f0(VA());case"bloburi":case"bloburl":if($s.URL!==void 0&&typeof $s.URL.createObjectURL=="function")return $s.URL&&$s.URL.createObjectURL(f0(VA()))||void 0;rA.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var xr="",Qr=VA();try{xr=RCe(Qr)}catch{xr=RCe(unescape(encodeURIComponent(Qr)))}return"data:application/pdf;filename="+Qt.filename+";base64,"+xr;case"pdfobjectnewwindow":if(Object.prototype.toString.call($s)==="[object Window]"){var yn="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",Wr=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';Qt.pdfObjectUrl&&(yn=Qt.pdfObjectUrl,Wr="");var tn='